From e9edd9ff6ce1fab3bd481ade1e2b9a84a6b7a901 Mon Sep 17 00:00:00 2001 From: dmitry-vsl Date: Sat, 18 Oct 2025 01:16:06 +0000 Subject: [PATCH] deploy: leporello-js/app@295e4e307ee16e223ad7db39f9e6c8486993f916 --- service_worker.js | 11 +- src/launch.js | 472 +++++++++++++++++++++++----------------------- styles.css | 131 +++++++++++-- 3 files changed, 355 insertions(+), 259 deletions(-) diff --git a/service_worker.js b/service_worker.js index cfe2026..a291fed 100644 --- a/service_worker.js +++ b/service_worker.js @@ -54,10 +54,16 @@ const serve_response_from_dir = async event => { } else if(dir_handle != null) { file = await read_file(dir_handle, path) } else { + /* Get app_window */ let client = await self.clients.get(event.clientId) + /* + After open_app_window, event.clientId is empty string, and client is + null. Try to find main window and get dir_handle from it. + + TODO better use event.resultingClientId + */ if(client == null) { - // Try to find main window and get dir_handle from it for(const c of await self.clients.matchAll()) { if(new URL(c.url).pathname == '/') { client = c @@ -65,9 +71,6 @@ const serve_response_from_dir = async event => { } } - - // client is null for app_window initial page load, and is app_window for - // js scripts if(client == null) { // User probably reloaded app_window by manually hitting F5 after IDE // window was closed diff --git a/src/launch.js b/src/launch.js index 99d6992..93087d8 100644 --- a/src/launch.js +++ b/src/launch.js @@ -1,40 +1,40 @@ -var ote=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(P,Q)=>(typeof require<"u"?require:P)[Q]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var Ygt=(x,P)=>()=>(x&&(P=x(x=0)),P);var yyt={};var X4e=Ygt(()=>{define("vs/language/typescript/tsWorker",["require"],x=>{"use strict";var P=(()=>{var Q=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,dt=(nh,Ni)=>{for(var bt in Ni)Q(nh,bt,{get:Ni[bt],enumerable:!0})},Mt=(nh,Ni,bt,Ps)=>{if(Ni&&typeof Ni=="object"||typeof Ni=="function")for(let xa of Ee(Ni))!Oe.call(nh,xa)&&xa!==bt&&Q(nh,xa,{get:()=>Ni[xa],enumerable:!(Ps=ae(Ni,xa))||Ps.enumerable});return nh},zt=nh=>Mt(Q({},"__esModule",{value:!0}),nh),wt={};dt(wt,{TypeScriptWorker:()=>QS,create:()=>vL});var lr={};dt(lr,{EndOfLineState:()=>gs,IndentStyle:()=>md,ScriptKind:()=>Gd,ScriptTarget:()=>by,TokenClass:()=>kC,createClassifier:()=>oa,createLanguageService:()=>Zo,displayPartsToString:()=>fs,flattenDiagnosticMessageText:()=>Za,typescript:()=>Ol});var $r=void 0,ni={exports:{}},Rr=(()=>{var nh=Object.defineProperty,Ni=Object.getOwnPropertyNames,bt=(e,t)=>function(){return e&&(t=(0,e[Ni(e)[0]])(e=0)),t},Ps=(e,t)=>function(){return t||(0,e[Ni(e)[0]])((t={exports:{}}).exports,t),t.exports},xa=(e,t)=>{for(var r in t)nh(e,r,{get:t[r],enumerable:!0})},g_,qp,xG,Nze=bt({"src/compiler/corePublic.ts"(){"use strict";g_="5.4",qp="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 uEe(e,t){for(let r=0;rr(i,t[o]))}function Xte(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 FC(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Jb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Qte(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 Lze(e,t){let r=[];for(let i of e)yf(r,i,t);return r}function _0(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Mze(e,t,r):Lze(e,t)}function kze(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 Vm(e,t,r=Iy){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&R.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&R.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:So(e)?So(t)?bo(e,t):Tn(e,t):So(t)?Tn(t,e):[e,t]}function tne(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:tne(t,r),i=i===void 0?t.length:tne(t,i);for(let o=r;or(e[i],e[o])||el(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 Ey(e,t){let r=SL(e);return pEe(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 ru(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 As(e,t){return Tv.call(e,t)}function _W(e,t){return Tv.call(e,t)?e[t]:void 0}function jh(e){let t=[];for(let r in e)Tv.call(e,r)&&t.push(r);return t}function fEe(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)Tv.call(e,r)&&t.push(e[r]);return t}function nne(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())So(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(!So(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(So(p))zo(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(So(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function So(e){return Array.isArray(e)}function dI(e){return So(e)?e:[e]}function Co(e){return typeof e=="string"}function Ty(e){return typeof e=="number"}function ii(e,t){return e!==void 0&&t(e)?e:void 0}function ta(e,t){return e!==void 0&&t(e)?e:R.fail(`Invalid cast. The supplied value ${e} did not pass the test '${R.getFunctionName(t)}'.`)}function Ja(e){}function jm(){return!1}function Ay(){return!0}function qb(){}function Zs(e){return e}function one(e){return e.toLowerCase()}function oh(e){return gne.test(e)?e.replace(gne,one):e}function jo(){throw new Error("Not implemented")}function Eu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ah(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 mEe(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 ane(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 _Ee(e,t,r,i,o){if(o){let s=[];for(let l=0;lru(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 Iy(e,t){return e===t}function Xb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function eT(e,t){return Iy(e,t)}function hEe(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 sne(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 hEe(e,t)}function Ex(e){return e?vW:Vd}function lne(){return $G}function cne(e){$G!==e&&($G=e,yne=void 0)}function xL(e,t){return(yne||(yne=vEe($G)))(e,t)}function dne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Ev(e,t){return el(e?1:0,t?1:0)}function VC(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=Wze(e,d,o-.1);if(p===void 0)continue;R.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?Xb(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 une(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 Fze(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function ao(e,t,r){return r?Xb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function jC(e,t){return ao(e,t)?e.substr(t.length):e}function JG(e,t,r=Zs){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 Um(...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 gEe(e){}function pI(e){return e===void 0?void 0:[e]}function TW(e,t,r,i,o,s){s=s||Ja;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||{}),xy=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=tne(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||{}),vEe=(()=>{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,R,Bze=bt({"src/compiler/debug.ts"(){"use strict";Qo(),Qo(),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 Wt(yi){i(2,yi)}on.warn=Wt;function In(yi){i(3,yi)}on.log=In;function li(yi){i(4,yi)}on.trace=li})(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 Wt of jh(s)){let In=s[Wt];In!==void 0&&e[Wt]!==In.assertion&&on>=In.level&&(e[Wt]=In,s[Wt]=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]=Ja,!1)}function m(on,Ye){let Wt=new Error(on?`Debug Failure. ${on}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Wt,Ye||m),Wt}e.fail=m;function y(on,Ye,Wt){return m(`${Ye||"Unexpected node."}\r -Node ${he(on.kind)} was unexpected.`,Wt||y)}e.failBadSyntaxKind=y;function E(on,Ye,Wt,In){on||(Ye=Ye?`False expression: ${Ye}`:"False expression.",Wt&&(Ye+=`\r -Verbose Debug Information: `+(typeof Wt=="string"?Wt:Wt())),m(Ye,In||E))}e.assert=E;function S(on,Ye,Wt,In,li){if(on!==Ye){let yi=Wt?In?`${Wt} ${In}`:Wt:"";m(`Expected ${on} === ${Ye}. ${yi}`,li||S)}}e.assertEqual=S;function A(on,Ye,Wt,In){on>=Ye&&m(`Expected ${on} < ${Ye}. ${Wt||""}`,In||A)}e.assertLessThan=A;function N(on,Ye,Wt){on>Ye&&m(`Expected ${on} <= ${Ye}`,Wt||N)}e.assertLessThanOrEqual=N;function D(on,Ye,Wt){on= ${Ye}`,Wt||D)}e.assertGreaterThanOrEqual=D;function w(on,Ye,Wt){on==null&&m(Ye,Wt||w)}e.assertIsDefined=w;function j(on,Ye,Wt){return w(on,Ye,Wt||j),on}e.checkDefined=j;function K(on,Ye,Wt){for(let In of on)w(In,Ye,Wt||K)}e.assertEachIsDefined=K;function Y(on,Ye,Wt){return K(on,Ye,Wt||Y),on}e.checkEachDefined=Y;function B(on,Ye="Illegal value:",Wt){let In=typeof on=="object"&&As(on,"kind")&&As(on,"pos")?"SyntaxKind: "+he(on.kind):JSON.stringify(on);return m(`${Ye} ${In}`,Wt||B)}e.assertNever=B;function ce(on,Ye,Wt,In){h(1,"assertEachNode")&&E(Ye===void 0||oo(on,Ye),Wt||"Unexpected node.",()=>`Node array did not pass test '${re(Ye)}'.`,In||ce)}e.assertEachNode=ce;function z(on,Ye,Wt,In){h(1,"assertNode")&&E(on!==void 0&&(Ye===void 0||Ye(on)),Wt||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||z)}e.assertNode=z;function ee(on,Ye,Wt,In){h(1,"assertNotNode")&&E(on===void 0||Ye===void 0||!Ye(on),Wt||"Unexpected node.",()=>`Node ${he(on.kind)} should not have passed test '${re(Ye)}'.`,In||ee)}e.assertNotNode=ee;function me(on,Ye,Wt,In){h(1,"assertOptionalNode")&&E(Ye===void 0||on===void 0||Ye(on),Wt||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re(Ye)}'.`,In||me)}e.assertOptionalNode=me;function ge(on,Ye,Wt,In){h(1,"assertOptionalToken")&&E(Ye===void 0||on===void 0||on.kind===Ye,Wt||"Unexpected node.",()=>`Node ${he(on?.kind)} was not a '${he(Ye)}' token.`,In||ge)}e.assertOptionalToken=ge;function q(on,Ye,Wt){h(1,"assertMissingNode")&&E(on===void 0,Ye||"Unexpected node.",()=>`Node ${he(on.kind)} was unexpected'.`,Wt||q)}e.assertMissingNode=q;function J(on){}e.type=J;function re(on){if(typeof on!="function")return"";if(As(on,"name"))return on.name;{let Ye=Function.prototype.toString.call(on),Wt=/^function\s+([\w$]+)\s*\(/.exec(Ye);return Wt?Wt[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,Wt){let In=ne(Ye);if(on===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(Wt){let li=[],yi=on;for(let[$i,Ao]of In){if($i>on)break;$i!==0&&$i&on&&(li.push(Ao),yi&=~$i)}if(yi===0)return li.join("|")}else for(let[li,yi]of In)if(li===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 Wt=[];for(let li in on){let yi=on[li];typeof yi=="number"&&Wt.push([yi,li])}let In=Ey(Wt,(li,yi)=>el(li[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 Ie(on){return xe(on,CW,!0)}e.formatModifierFlags=Ie;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 Ft(on){return xe(on,NL,!0)}e.formatFlowFlags=Ft;function _t(on){return xe(on,NW,!0)}e.formatRelationComparisonResult=_t;function Je(on){return xe(on,P3,!0)}e.formatCheckMode=Je;function ft(on){return xe(on,M3,!0)}e.formatSignatureCheckMode=ft;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",Wt=this.flags&-2048;return`${Ye}${Wt?` (${Ft(Wt)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,NL,!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 Yt;function qt(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"?(Yt||(Yt=Object.create(Array.prototype),qt(Yt)),Object.setPrototypeOf(on,Yt)):qt(on))}e.attachNodeArrayDebugInfo=hi;function uo(){if(en)return;let on=new WeakMap,Ye=new WeakMap;Object.defineProperties(od.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let In=this.flags&33554432?"TransientSymbol":"Symbol",li=this.flags&-33554433;return`${In} '${vl(this)}'${li?` (${Et(li)})`:""}`}},__debugFlags:{get(){return Et(this.flags)}}}),Object.defineProperties(od.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",li=this.flags&524288?this.objectFlags&-1344:0;return`${In}${this.symbol?` '${vl(this.symbol)}'`:""}${li?` (${tt(li)})`:""}`}},__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(od.getSignatureConstructor().prototype,{__debugFlags:{get(){return ze(this.flags)}},__debugSignatureToString:{value(){var In;return(In=this.checker)==null?void 0:In.signatureToString(this)}}});let Wt=[od.getNodeConstructor(),od.getIdentifierConstructor(),od.getTokenConstructor(),od.getSourceFileConstructor()];for(let In of Wt)As(In.prototype,"__debugKind")||Object.defineProperties(In.prototype,{__tsDebuggerDisplay:{value(){return`${il(this)?"GeneratedIdentifier":Fe(this)?`Identifier '${yr(this)}'`:Ki(this)?`PrivateIdentifier '${yr(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`:ml(this)?"TypeParameterDeclaration":To(this)?"ParameterDeclaration":Nl(this)?"ConstructorDeclaration":Zp(this)?"GetAccessorDeclaration":hp(this)?"SetAccessorDeclaration":XI(this)?"CallSignatureDeclaration":Lk(this)?"ConstructSignatureDeclaration":V0(this)?"IndexSignatureDeclaration":kk(this)?"TypePredicateNode":If(this)?"TypeReferenceNode":gh(this)?"FunctionTypeNode":RR(this)?"ConstructorTypeNode":YI(this)?"TypeQueryNode":gp(this)?"TypeLiteralNode":wk(this)?"ArrayTypeNode":$I(this)?"TupleTypeNode":O4(this)?"OptionalTypeNode":W4(this)?"RestTypeNode":Kv(this)?"UnionTypeNode":QI(this)?"IntersectionTypeNode":ZI(this)?"ConditionalTypeNode":CT(this)?"InferTypeNode":NT(this)?"ParenthesizedTypeNode":Ok(this)?"ThisTypeNode":PT(this)?"TypeOperatorNode":MT(this)?"IndexedAccessTypeNode":CR(this)?"MappedTypeNode":Jv(this)?"LiteralTypeNode":DR(this)?"NamedTupleMember":ig(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 Ie(Hie(this))}},__debugTransformFlags:{get(){return De(this.transformFlags)}},__debugIsParseTreeNode:{get(){return eN(this)}},__debugEmitFlags:{get(){return Le(Fa(this))}},__debugGetText:{value(li){if(qs(this))return"";let yi=Ye.get(this);if(yi===void 0){let $i=Ro(this),Ao=$i&&Gn($i);yi=Ao?T0(Ao,$i,li):"",Ye.set(this,yi)}return yi}}});en=!0}e.enableDebugInfo=uo;function Li(on){let Ye=on&7,Wt=Ye===0?"in out":Ye===3?"[bivariant]":Ye===2?"in":Ye===1?"out":Ye===4?"[independent]":"";return on&8?Wt+=" (unmeasurable)":on&16&&(Wt+=" (unreliable)"),Wt}e.formatVariance=Li;class Eo{__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"),(Wt,In)=>`${Wt.__debugTypeToString()} -> ${typeof In=="string"?In:In.__debugTypeToString()}`).join(", ");case 2:return RG(this.sources,this.targets,(Wt,In)=>`${Wt.__debugTypeToString()} -> ${In().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +var ote=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(P,Q)=>(typeof require<"u"?require:P)[Q]}):x)(function(x){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+x+'" is not supported')});var eyt=(x,P)=>()=>(x&&(P=x(x=0)),P);var vyt={};var Q4e=eyt(()=>{define("vs/language/typescript/tsWorker",["require"],x=>{"use strict";var P=(()=>{var Q=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,Oe=Object.prototype.hasOwnProperty,dt=(nh,Ni)=>{for(var bt in Ni)Q(nh,bt,{get:Ni[bt],enumerable:!0})},Mt=(nh,Ni,bt,Ms)=>{if(Ni&&typeof Ni=="object"||typeof Ni=="function")for(let Ra of Ee(Ni))!Oe.call(nh,Ra)&&Ra!==bt&&Q(nh,Ra,{get:()=>Ni[Ra],enumerable:!(Ms=ae(Ni,Ra))||Ms.enumerable});return nh},Ft=nh=>Mt(Q({},"__esModule",{value:!0}),nh),zt={};dt(zt,{TypeScriptWorker:()=>vv,create:()=>SL});var Yn={};dt(Yn,{EndOfLineState:()=>ns,IndentStyle:()=>El,ScriptKind:()=>Nl,ScriptTarget:()=>Vh,TokenClass:()=>eT,createClassifier:()=>Vo,createLanguageService:()=>Sa,displayPartsToString:()=>ca,flattenDiagnosticMessageText:()=>hs,typescript:()=>Fl});var Jr=void 0,ti={exports:{}},ci=(()=>{var nh=Object.defineProperty,Ni=Object.getOwnPropertyNames,bt=(e,t)=>function(){return e&&(t=(0,e[Ni(e)[0]])(e=0)),t},Ms=(e,t)=>function(){return t||(0,e[Ni(e)[0]])((t={exports:{}}).exports,t),t.exports},Ra=(e,t)=>{for(var r in t)nh(e,r,{get:t[r],enumerable:!0})},g_,Jp,xG,kze=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 zl(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function ql(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 _Ee(e,t){for(let r=0;rr(i,t[o]))}function Jte(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 jC(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function Jb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Yte(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 Wze(e,t){let r=[];for(let i of e)yf(r,i,t);return r}function h0(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Oze(e,t,r):Wze(e,t)}function Fze(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 Vm(e,t,r=Iy){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&R.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;ol&&R.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 Sx(e,t){return e===void 0?t:t===void 0?e:So(e)?So(t)?bo(e,t):Tn(e,t):So(t)?Tn(t,e):[e,t]}function Zte(e,t){return t<0?e.length+t:t}function Ur(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:Zte(t,r),i=i===void 0?t.length:Zte(t,i);for(let o=r;or(e[i],e[o])||el(i,o))}function tT(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 Ey(e,t){let r=IL(e);return hEe(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 ru(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 Is(e,t){return Av.call(e,t)}function gW(e,t){return Av.call(e,t)?e[t]:void 0}function Uh(e){let t=[];for(let r in e)Av.call(e,r)&&t.push(r);return t}function gEe(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 uI(e){let t=[];for(let r in e)Av.call(e,r)&&t.push(e[r]);return t}function ene(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())So(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(!So(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(So(p))zo(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(So(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function So(e){return Array.isArray(e)}function pI(e){return So(e)?e:[e]}function Co(e){return typeof e=="string"}function Ty(e){return typeof e=="number"}function ri(e,t){return e!==void 0&&t(e)?e:void 0}function ta(e,t){return e!==void 0&&t(e)?e:R.fail(`Invalid cast. The supplied value ${e} did not pass the test '${R.getFunctionName(t)}'.`)}function qa(e){}function jm(){return!1}function Ay(){return!0}function qb(){}function Zs(e){return e}function rne(e){return e.toLowerCase()}function oh(e){return _ne.test(e)?e.replace(_ne,rne):e}function Uo(){throw new Error("Not implemented")}function Eu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ah(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 yEe(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 ine(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 vEe(e,t,r,i,o){if(o){let s=[];for(let l=0;lru(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 Iy(e,t){return e===t}function Xb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function nT(e,t){return Iy(e,t)}function bEe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function EW(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function one(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function jd(e,t){return bEe(e,t)}function Ax(e){return e?EW:jd}function ane(){return $G}function sne(e){$G!==e&&($G=e,hne=void 0)}function CL(e,t){return(hne||(hne=TEe($G)))(e,t)}function lne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Sv(e,t){return el(e?1:0,t?1:0)}function JC(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=Gze(e,d,o-.1);if(p===void 0)continue;R.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 Sl(e,t,r){let i=e.length-t.length;return i>=0&&(r?Xb(e.slice(i),t):e.indexOf(t,i)===i)}function Ix(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):e}function cne(e,t){return Sl(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 xx(e,t){for(let r=0;rr===t)}function Vze(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function ao(e,t,r){return r?Xb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function qC(e,t){return ao(e,t)?e.substr(t.length):e}function JG(e,t,r=Zs){return ao(r(e),r(t))?e.substring(t.length):void 0}function SW({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ao(r,e)&&Sl(r,t)}function TW(e,t){return r=>e(r)&&t(r)}function Um(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function AW(e){return(...t)=>!e(...t)}function EEe(e){}function mI(e){return e===void 0?void 0:[e]}function IW(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||{}),xy=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=Zte(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||{}),TEe=(()=>{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,R,Uze=bt({"src/compiler/debug.ts"(){"use strict";Zo(),Zo(),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,$e){e.loggingHost&&r(on)&&e.loggingHost.log(on,$e)}function o(on){i(3,on)}e.log=o,(on=>{function $e(yi){i(1,yi)}on.error=$e;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 $e=t;if(t=on,on>$e)for(let Ot of Uh(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,$e){return p(on)?!0:(s[$e]={level:on,assertion:e[$e]},e[$e]=qa,!1)}function m(on,$e){let Ot=new Error(on?`Debug Failure. ${on}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Ot,$e||m),Ot}e.fail=m;function y(on,$e,Ot){return m(`${$e||"Unexpected node."}\r +Node ${he(on.kind)} was unexpected.`,Ot||y)}e.failBadSyntaxKind=y;function E(on,$e,Ot,In){on||($e=$e?`False expression: ${$e}`:"False expression.",Ot&&($e+=`\r +Verbose Debug Information: `+(typeof Ot=="string"?Ot:Ot())),m($e,In||E))}e.assert=E;function S(on,$e,Ot,In,si){if(on!==$e){let yi=Ot?In?`${Ot} ${In}`:Ot:"";m(`Expected ${on} === ${$e}. ${yi}`,si||S)}}e.assertEqual=S;function A(on,$e,Ot,In){on>=$e&&m(`Expected ${on} < ${$e}. ${Ot||""}`,In||A)}e.assertLessThan=A;function N(on,$e,Ot){on>$e&&m(`Expected ${on} <= ${$e}`,Ot||N)}e.assertLessThanOrEqual=N;function D(on,$e,Ot){on<$e&&m(`Expected ${on} >= ${$e}`,Ot||D)}e.assertGreaterThanOrEqual=D;function w(on,$e,Ot){on==null&&m($e,Ot||w)}e.assertIsDefined=w;function j(on,$e,Ot){return w(on,$e,Ot||j),on}e.checkDefined=j;function K(on,$e,Ot){for(let In of on)w(In,$e,Ot||K)}e.assertEachIsDefined=K;function Y(on,$e,Ot){return K(on,$e,Ot||Y),on}e.checkEachDefined=Y;function B(on,$e="Illegal value:",Ot){let In=typeof on=="object"&&Is(on,"kind")&&Is(on,"pos")?"SyntaxKind: "+he(on.kind):JSON.stringify(on);return m(`${$e} ${In}`,Ot||B)}e.assertNever=B;function ce(on,$e,Ot,In){h(1,"assertEachNode")&&E($e===void 0||oo(on,$e),Ot||"Unexpected node.",()=>`Node array did not pass test '${re($e)}'.`,In||ce)}e.assertEachNode=ce;function z(on,$e,Ot,In){h(1,"assertNode")&&E(on!==void 0&&($e===void 0||$e(on)),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re($e)}'.`,In||z)}e.assertNode=z;function ee(on,$e,Ot,In){h(1,"assertNotNode")&&E(on===void 0||$e===void 0||!$e(on),Ot||"Unexpected node.",()=>`Node ${he(on.kind)} should not have passed test '${re($e)}'.`,In||ee)}e.assertNotNode=ee;function me(on,$e,Ot,In){h(1,"assertOptionalNode")&&E($e===void 0||on===void 0||$e(on),Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re($e)}'.`,In||me)}e.assertOptionalNode=me;function ge(on,$e,Ot,In){h(1,"assertOptionalToken")&&E($e===void 0||on===void 0||on.kind===$e,Ot||"Unexpected node.",()=>`Node ${he(on?.kind)} was not a '${he($e)}' token.`,In||ge)}e.assertOptionalToken=ge;function q(on,$e,Ot){h(1,"assertMissingNode")&&E(on===void 0,$e||"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(Is(on,"name"))return on.name;{let $e=Function.prototype.toString.call(on),Ot=/^function\s+([\w$]+)\s*\(/.exec($e);return Ot?Ot[1]:""}}e.getFunctionName=re;function pe(on){return`{ name: ${Vi(on.escapedName)}; flags: ${Et(on.flags)}; declarations: ${mn(on.declarations,$e=>he($e.kind))} }`}e.formatSymbol=pe;function xe(on=0,$e,Ot){let In=ne($e);if(on===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(Ot){let si=[],yi=on;for(let[$i,Ao]of In){if($i>on)break;$i!==0&&$i&on&&(si.push(Ao),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 $e=fe.get(on);if($e)return $e;let Ot=[];for(let si in on){let yi=on[si];typeof yi=="number"&&Ot.push([yi,si])}let In=Ey(Ot,(si,yi)=>el(si[0],yi[0]));return fe.set(on,In),In}function he(on){return xe(on,CW,!1)}e.formatSyntaxKind=he;function Ce(on){return xe(on,VW,!1)}e.formatSnippetKind=Ce;function Ge(on){return xe(on,BW,!1)}e.formatScriptKind=Ge;function ve(on){return xe(on,NW,!0)}e.formatNodeFlags=ve;function Ie(on){return xe(on,PW,!0)}e.formatModifierFlags=Ie;function De(on){return xe(on,GW,!0)}e.formatTransformFlags=De;function Le(on){return xe(on,jW,!0)}e.formatEmitFlags=Le;function Et(on){return xe(on,OW,!0)}e.formatSymbolFlags=Et;function be(on){return xe(on,WW,!0)}e.formatTypeFlags=be;function ze(on){return xe(on,zW,!0)}e.formatSignatureFlags=ze;function tt(on){return xe(on,FW,!0)}e.formatObjectFlags=tt;function Wt(on){return xe(on,LL,!0)}e.formatFlowFlags=Wt;function _t(on){return xe(on,MW,!0)}e.formatRelationComparisonResult=_t;function Je(on){return xe(on,L3,!0)}e.formatCheckMode=Je;function ft(on){return xe(on,k3,!0)}e.formatSignatureCheckMode=ft;function Zt(on){return xe(on,M3,!0)}e.formatTypeFacts=Zt;let en=!1,Dn;function Kn(on){"__debugFlowFlags"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value(){let $e=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`${$e}${Ot?` (${Wt(Ot)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,LL,!0)}},__debugToString:{value(){return Sr(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 Yt;function qt(on){"__tsDebuggerDisplay"in on||Object.defineProperties(on,{__tsDebuggerDisplay:{value($e){return $e=String($e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${$e}`}}})}function hi(on){en&&(typeof Object.setPrototypeOf=="function"?(Yt||(Yt=Object.create(Array.prototype),qt(Yt)),Object.setPrototypeOf(on,Yt)):qt(on))}e.attachNodeArrayDebugInfo=hi;function uo(){if(en)return;let on=new WeakMap,$e=new WeakMap;Object.defineProperties(ld.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(ld.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(ld.getSignatureConstructor().prototype,{__debugFlags:{get(){return ze(this.flags)}},__debugSignatureToString:{value(){var In;return(In=this.checker)==null?void 0:In.signatureToString(this)}}});let Ot=[ld.getNodeConstructor(),ld.getIdentifierConstructor(),ld.getTokenConstructor(),ld.getSourceFileConstructor()];for(let In of Ot)Is(In.prototype,"__debugKind")||Object.defineProperties(In.prototype,{__tsDebuggerDisplay:{value(){return`${il(this)?"GeneratedIdentifier":Fe(this)?`Identifier '${vr(this)}'`:Ki(this)?`PrivateIdentifier '${vr(this)}'`:Ca(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:mp(this)?`NumericLiteral ${this.text}`:L4(this)?`BigIntLiteral ${this.text}n`:ml(this)?"TypeParameterDeclaration":To(this)?"ParameterDeclaration":Ml(this)?"ConstructorDeclaration":Qp(this)?"GetAccessorDeclaration":hp(this)?"SetAccessorDeclaration":$I(this)?"CallSignatureDeclaration":Ok(this)?"ConstructSignatureDeclaration":j0(this)?"IndexSignatureDeclaration":Wk(this)?"TypePredicateNode":If(this)?"TypeReferenceNode":gh(this)?"FunctionTypeNode":NR(this)?"ConstructorTypeNode":QI(this)?"TypeQueryNode":gp(this)?"TypeLiteralNode":Fk(this)?"ArrayTypeNode":ZI(this)?"TupleTypeNode":F4(this)?"OptionalTypeNode":z4(this)?"RestTypeNode":Jv(this)?"UnionTypeNode":e1(this)?"IntersectionTypeNode":t1(this)?"ConditionalTypeNode":PT(this)?"InferTypeNode":MT(this)?"ParenthesizedTypeNode":zk(this)?"ThisTypeNode":LT(this)?"TypeOperatorNode":kT(this)?"IndexedAccessTypeNode":MR(this)?"MappedTypeNode":qv(this)?"LiteralTypeNode":PR(this)?"NamedTupleMember":og(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 Ie(jie(this))}},__debugTransformFlags:{get(){return De(this.transformFlags)}},__debugIsParseTreeNode:{get(){return oN(this)}},__debugEmitFlags:{get(){return Le(za(this))}},__debugGetText:{value(si){if(qs(this))return"";let yi=$e.get(this);if(yi===void 0){let $i=Ro(this),Ao=$i&&Gn($i);yi=Ao?A0(Ao,$i,si):"",$e.set(this,yi)}return yi}}});en=!0}e.enableDebugInfo=uo;function Li(on){let $e=on&7,Ot=$e===0?"in out":$e===3?"[bivariant]":$e===2?"in":$e===1?"out":$e===4?"[independent]":"";return on&8?Ot+=" (unmeasurable)":on&16&&(Ot+=" (unreliable)"),Ot}e.formatVariance=Li;class Eo{__debugToString(){var $e;switch(this.kind){case 3:return(($e=this.debugInfo)==null?void 0:$e.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=Eo;function Qn(on){return e.isDebugging?Object.setPrototypeOf(on,Eo.prototype):on}e.attachDebugPrototypeIfDebug=Qn;function Ur(on){return console.log(Er(on))}e.printControlFlowGraph=Ur;function Er(on){let Ye=-1;function Wt(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 li;(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"})(li||(li={}));let yi=2032,$i=882,Ao=Object.create(null),ua=[],za=[],vn=G(on,new Set);for(let ie of ua)ie.text=un(ie.flowNode,ie.circular),Tt(ie);let kn=He(vn),Be=pt(kn);return Bt(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 se(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=Wt(ie),We=Ao[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(Ao[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};za.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 pt(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 Bt(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];Bt(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 T0(H,ie,!1)}function un(ie,H){let ue=hn(ie.flags);if(H&&(ue=`${ue}#${Wt(ie)}`),se(ie))ie.node&&(ue+=` (${dn(ie.node)})`);else if(ct(ie)){let We=[];for(let Ne=ie.clauseStart;NeMath.max(Dt,Kt.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 Kt=ke(Dt);for(let wn=0;wn0&&(gi|=1),wn0&&(gi|=1),wn0?Ne[Dt-1][Kt]:0,wn=Kt>0?Ne[Dt][Kt-1]:0,Bn=Ne[Dt][Kt];Bn||(En&8&&(Bn|=12),wn&2&&(Bn|=3),Ne[Dt][Kt]=Bn)}for(let Dt=0;Dt{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,Ao=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=pt(kn);return Bt(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 se(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=Ao[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(Ao[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 pt(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 Bt(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];Bt(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 A0(H,ie,!1)}function un(ie,H){let ue=hn(ie.flags);if(H&&(ue=`${ue}#${Ot(ie)}`),se(ie))ie.node&&(ue+=` (${dn(ie.node)})`);else if(ct(ie)){let We=[];for(let Ne=ie.clauseStart;NeMath.max(Dt,Kt.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 Kt=ke(Dt);for(let wn=0;wn0&&(gi|=1),wn0&&(gi|=1),wn0?Ne[Dt-1][Kt]:0,wn=Kt>0?Ne[Dt][Kt-1]:0,Bn=Ne[Dt][Kt];Bn||(En&8&&(Bn|=12),wn&2&&(Bn|=3),Ne[Dt][Kt]=Bn)}for(let Dt=0;Dt0?ie.repeat(H):"";let ue="";for(;ue.length=",i.version)),jf(o.major)||r.push(jf(o.minor)?sh("<",o.version.increment("major")):jf(o.patch)?sh("<",o.version.increment("minor")):sh("<=",o.version)),!0):!1}function jze(e,t,r){let i=vne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(jf(s))(e==="<"||e===">")&&r.push(sh("<",fm.zero));else switch(e){case"~":r.push(sh(">=",o)),r.push(sh("<",o.increment(jf(l)?"major":"minor")));break;case"^":r.push(sh(">=",o)),r.push(sh("<",o.increment(o.major>0||jf(l)?"major":o.minor>0||jf(d)?"minor":"patch")));break;case"<":case">=":r.push(jf(l)||jf(d)?sh(e,o.with({prerelease:"0"})):sh(e,o));break;case"<=":case">":r.push(jf(l)?sh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):jf(d)?sh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):sh(e,o));break;case"=":case void 0:jf(l)||jf(d)?(r.push(sh(">=",o.with({prerelease:"0"}))),r.push(sh("<",o.increment(jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(sh("=",o));break;default:return!1}return!0}function jf(e){return e==="*"||e==="x"||e==="X"}function sh(e,t){return{operator:e,operand:t}}function Uze(e,t){if(t.length===0)return!0;for(let r of t)if(Hze(e,r))return!0;return!1}function Hze(e,t){for(let r of t)if(!Kze(e,r.operator,r.operand))return!1;return!0}function Kze(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 R.assertNever(t)}}function Jze(e){return mn(e,qze).join(" || ")||"*"}function qze(e){return mn(e,Xze).join(" ")}function Xze(e){return`${e.operator}${e.operand}`}var SEe,TEe,AEe,IEe,xEe,bne,ZG,fm,RL,REe,DEe,CEe,NEe,PEe,Yze=bt({"src/compiler/semver.ts"(){"use strict";Qo(),SEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,TEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,AEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,IEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,xEe=/^[a-z0-9-]+$/i,bne=/^(0|[1-9]\d*)$/,ZG=class nW{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=R.checkDefined(bEe(t),"Invalid version")),R.assert(t>=0,"Invalid argument: major"),R.assert(r>=0,"Invalid argument: minor"),R.assert(i>=0,"Invalid argument: patch");let l=o?So(o)?o:o.split("."):Xe,d=s?So(s)?s:s.split("."):Xe;R.assert(oo(l,p=>AEe.test(p)),"Invalid argument: prerelease"),R.assert(oo(d,p=>xEe.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=bEe(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new nW(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:el(this.major,t.major)||el(this.minor,t.minor)||el(this.patch,t.patch)||Gze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new nW(this.major+1,0,0);case"minor":return new nW(this.major,this.minor+1,0);case"patch":return new nW(this.major,this.minor,this.patch+1);default:return R.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 nW(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,RL=class V4e{constructor(t){this._alternatives=t?R.checkDefined(EEe(t),"Invalid range spec."):Xe}static tryParse(t){let r=EEe(t);if(r){let i=new V4e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new fm(t)),Uze(t,this._alternatives)}toString(){return Jze(this._alternatives)}},REe=/\|\|/g,DEe=/\s+/g,CEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,NEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,PEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function MEe(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 $ze(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&MEe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Qze(){if(qG())try{let{performance:e,PerformanceObserver:t}=$r("perf_hooks");if(MEe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function Ene(){return e9}var e9,Sne,Js,Zze=bt({"src/compiler/performanceCore.ts"(){"use strict";Qo(),e9=$ze()||Qze(),Sne=e9?.performance,Js=Sne?()=>Sne.now():Date.now?Date.now:()=>+new Date}}),xW,iu,e7e=bt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";xW=$r(e)}catch{xW=void 0}iu=xW?.logEvent?xW:void 0}});function LEe(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&&tl(t)}function s(){--i===0?(tl(r),Yp(e,t,r)):i<0&&R.fail("enter/exit count does not match.")}}function tl(e){if(Ax){let t=UC.get(e)??0;UC.set(e,t+1),Ix.set(e,Js()),tT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Yp(e,t,r){if(Ax){let i=(r!==void 0?Ix.get(r):void 0)??Js(),o=(t!==void 0?Ix.get(t):void 0)??Tne,s=xx.get(e)||0;xx.set(e,s+(i-o)),tT?.measure(e,t,r)}}function t7e(e){return UC.get(e)||0}function n7e(e){return xx.get(e)||0}function r7e(e){xx.forEach((t,r)=>e(r,t))}function i7e(e){Ix.forEach((t,r)=>e(r))}function o7e(e){e!==void 0?xx.delete(e):xx.clear(),tT?.clearMeasures(e)}function a7e(e){e!==void 0?(UC.delete(e),Ix.delete(e)):(UC.clear(),Ix.clear()),tT?.clearMarks(e)}function s7e(){return Ax}function l7e(e=_d){var t;return Ax||(Ax=!0,DL||(DL=Ene()),DL&&(Tne=DL.performance.timeOrigin,(DL.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(tT=DL.performance))),!0}function c7e(){Ax&&(Ix.clear(),UC.clear(),xx.clear(),tT=void 0,Ax=!1)}var DL,tT,n9,Ax,Tne,Ix,UC,xx,d7e=bt({"src/compiler/performance.ts"(){"use strict";Qo(),n9={enter:Ja,exit:Ja},Ax=!1,Tne=Js(),Ix=new Map,UC=new Map,xx=new Map}}),Ane={};xa(Ane,{clearMarks:()=>a7e,clearMeasures:()=>o7e,createTimer:()=>t9,createTimerIf:()=>LEe,disable:()=>c7e,enable:()=>l7e,forEachMark:()=>i7e,forEachMeasure:()=>r7e,getCount:()=>t7e,getDuration:()=>n7e,isEnabled:()=>s7e,mark:()=>tl,measure:()=>Yp,nullTimer:()=>n9});var nT=bt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";d7e()}}),rr,CL,Ine,xne,u7e=bt({"src/compiler/tracing.ts"(){"use strict";Qo(),nT(),(e=>{let t,r=0,i=0,o,s=[],l,d=[];function p(z,ee,me){if(R.assert(!rr,"Tracing already started"),t===void 0)try{t=$r("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(ee,"legend.json")),t.existsSync(ee)||t.mkdirSync(ee,{recursive:!0});let ge=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",q=Yr(ee,`trace${ge}.json`),J=Yr(ee,`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*Js(),pid:1,tid:1};t.writeSync(i,`[ +`;function It(Dt,Kt){ue[Dt]+=Kt}}function Me(ie){switch(ie){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function Nt(ie,H){if(ie.fill)ie.fill(H);else for(let ue=0;ue0?ie.repeat(H):"";let ue="";for(;ue.length=",i.version)),jf(o.major)||r.push(jf(o.minor)?sh("<",o.version.increment("major")):jf(o.patch)?sh("<",o.version.increment("minor")):sh("<=",o.version)),!0):!1}function Jze(e,t,r){let i=gne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(jf(s))(e==="<"||e===">")&&r.push(sh("<",fm.zero));else switch(e){case"~":r.push(sh(">=",o)),r.push(sh("<",o.increment(jf(l)?"major":"minor")));break;case"^":r.push(sh(">=",o)),r.push(sh("<",o.increment(o.major>0||jf(l)?"major":o.minor>0||jf(d)?"minor":"patch")));break;case"<":case">=":r.push(jf(l)||jf(d)?sh(e,o.with({prerelease:"0"})):sh(e,o));break;case"<=":case">":r.push(jf(l)?sh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):jf(d)?sh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):sh(e,o));break;case"=":case void 0:jf(l)||jf(d)?(r.push(sh(">=",o.with({prerelease:"0"}))),r.push(sh("<",o.increment(jf(l)?"major":"minor").with({prerelease:"0"})))):r.push(sh("=",o));break;default:return!1}return!0}function jf(e){return e==="*"||e==="x"||e==="X"}function sh(e,t){return{operator:e,operand:t}}function qze(e,t){if(t.length===0)return!0;for(let r of t)if(Xze(e,r))return!0;return!1}function Xze(e,t){for(let r of t)if(!Yze(e,r.operator,r.operand))return!1;return!0}function Yze(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 R.assertNever(t)}}function $ze(e){return mn(e,Qze).join(" || ")||"*"}function Qze(e){return mn(e,Zze).join(" ")}function Zze(e){return`${e.operator}${e.operand}`}var xEe,REe,DEe,CEe,NEe,yne,ZG,fm,NL,PEe,MEe,LEe,kEe,wEe,e7e=bt({"src/compiler/semver.ts"(){"use strict";Zo(),xEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,REe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,DEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,CEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,NEe=/^[a-z0-9-]+$/i,yne=/^(0|[1-9]\d*)$/,ZG=class rW{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=R.checkDefined(AEe(t),"Invalid version")),R.assert(t>=0,"Invalid argument: major"),R.assert(r>=0,"Invalid argument: minor"),R.assert(i>=0,"Invalid argument: patch");let l=o?So(o)?o:o.split("."):Xe,d=s?So(s)?s:s.split("."):Xe;R.assert(oo(l,p=>DEe.test(p)),"Invalid argument: prerelease"),R.assert(oo(d,p=>NEe.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=AEe(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new rW(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:el(this.major,t.major)||el(this.minor,t.minor)||el(this.patch,t.patch)||Hze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new rW(this.major+1,0,0);case"minor":return new rW(this.major,this.minor+1,0);case"patch":return new rW(this.major,this.minor,this.patch+1);default:return R.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 rW(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,NL=class H4e{constructor(t){this._alternatives=t?R.checkDefined(IEe(t),"Invalid range spec."):Xe}static tryParse(t){let r=IEe(t);if(r){let i=new H4e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new fm(t)),qze(t,this._alternatives)}toString(){return $ze(this._alternatives)}},PEe=/\|\|/g,MEe=/\s+/g,LEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,kEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,wEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function OEe(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 t7e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&OEe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function n7e(){if(qG())try{let{performance:e,PerformanceObserver:t}=Jr("perf_hooks");if(OEe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function vne(){return e9}var e9,bne,Js,r7e=bt({"src/compiler/performanceCore.ts"(){"use strict";Zo(),e9=t7e()||n7e(),bne=e9?.performance,Js=bne?()=>bne.now():Date.now?Date.now:()=>+new Date}}),DW,iu,i7e=bt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";DW=Jr(e)}catch{DW=void 0}iu=DW?.logEvent?DW:void 0}});function WEe(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&&tl(t)}function s(){--i===0?(tl(r),Xp(e,t,r)):i<0&&R.fail("enter/exit count does not match.")}}function tl(e){if(Rx){let t=XC.get(e)??0;XC.set(e,t+1),Dx.set(e,Js()),rT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Xp(e,t,r){if(Rx){let i=(r!==void 0?Dx.get(r):void 0)??Js(),o=(t!==void 0?Dx.get(t):void 0)??Ene,s=Cx.get(e)||0;Cx.set(e,s+(i-o)),rT?.measure(e,t,r)}}function o7e(e){return XC.get(e)||0}function a7e(e){return Cx.get(e)||0}function s7e(e){Cx.forEach((t,r)=>e(r,t))}function l7e(e){Dx.forEach((t,r)=>e(r))}function c7e(e){e!==void 0?Cx.delete(e):Cx.clear(),rT?.clearMeasures(e)}function d7e(e){e!==void 0?(XC.delete(e),Dx.delete(e)):(XC.clear(),Dx.clear()),rT?.clearMarks(e)}function u7e(){return Rx}function p7e(e=gd){var t;return Rx||(Rx=!0,PL||(PL=vne()),PL&&(Ene=PL.performance.timeOrigin,(PL.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(rT=PL.performance))),!0}function f7e(){Rx&&(Dx.clear(),XC.clear(),Cx.clear(),rT=void 0,Rx=!1)}var PL,rT,n9,Rx,Ene,Dx,XC,Cx,m7e=bt({"src/compiler/performance.ts"(){"use strict";Zo(),n9={enter:qa,exit:qa},Rx=!1,Ene=Js(),Dx=new Map,XC=new Map,Cx=new Map}}),Sne={};Ra(Sne,{clearMarks:()=>d7e,clearMeasures:()=>c7e,createTimer:()=>t9,createTimerIf:()=>WEe,disable:()=>f7e,enable:()=>p7e,forEachMark:()=>l7e,forEachMeasure:()=>s7e,getCount:()=>o7e,getDuration:()=>a7e,isEnabled:()=>u7e,mark:()=>tl,measure:()=>Xp,nullTimer:()=>n9});var iT=bt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";m7e()}}),ir,ML,Tne,Ane,_7e=bt({"src/compiler/tracing.ts"(){"use strict";Zo(),iT(),(e=>{let t,r=0,i=0,o,s=[],l,d=[];function p(z,ee,me){if(R.assert(!ir,"Tracing already started"),t===void 0)try{t=Jr("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(ee,"legend.json")),t.existsSync(ee)||t.mkdirSync(ee,{recursive:!0});let ge=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",q=Yr(ee,`trace${ge}.json`),J=Yr(ee,`types${ge}.json`);d.push({configFilePath:me,tracePath:q,typesPath:J}),i=t.openSync(q,"w"),ir=e;let re={cat:"__metadata",ph:"M",ts:1e3*Js(),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(){R.assert(rr,"Tracing is not in progress"),R.assert(!!s.length==(o!=="server")),t.writeSync(i,` +`))}e.startTracing=p;function h(){R.assert(ir,"Tracing is not in progress"),R.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,ee,me){K("I",z,ee,me,'"s":"g"')}e.instant=E;let S=[];function A(z,ee,me,ge=!1){ge&&K("B",z,ee,me),S.push({phase:z,name:ee,args:me,time:1e3*Js(),separateBeginAndEnd:ge})}e.push=A;function N(z){R.assert(S.length>0),j(S.length-1,1e3*Js(),z),S.length--}e.pop=N;function D(){let z=1e3*Js();for(let ee=S.length-1;ee>=0;ee--)j(ee,z);S.length=0}e.popAll=D;let w=1e3*10;function j(z,ee,me){let{phase:ge,name:q,args:J,time:re,separateBeginAndEnd:pe}=S[z];pe?(R.assert(!me,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ge,q,J,void 0,ee)):w-re%w<=ee-re&&K("X",ge,q,{...J,results:me},`"dur":${ee-re}`,re)}function K(z,ee,me,ge,q,J=1e3*Js()){o==="server"&&ee==="checkTypes"||(tl("beginTracing"),t.writeSync(i,`, -{"pid":1,"tid":1,"ph":"${z}","cat":"${ee}","ts":${J},"name":"${me}"`),q&&t.writeSync(i,`,${q}`),ge&&t.writeSync(i,`,"args":${JSON.stringify(ge)}`),t.writeSync(i,"}"),tl("endTracing"),Yp("Tracing","beginTracing","endTracing"))}function Y(z){let ee=Gn(z);return ee?{path:ee.path,start:me(ys(ee,z.pos)),end:me(ys(ee,z.end))}:void 0;function me(ge){return{line:ge.line+1,character:ge.character+1}}}function B(z){var ee,me,ge,q,J,re,pe,xe,fe,ne,he,Ce,Ge,ve,Ie,De,Le,Et,be;tl("beginDumpTypes");let ze=d[d.length-1].typesPath,tt=t.openSync(ze,"w"),Ft=new Map;t.writeSync(tt,"[");let _t=z.length;for(let Je=0;Je<_t;Je++){let ft=z[Je],Zt=ft.objectFlags,en=ft.aliasSymbol??ft.symbol,Dn;if(Zt&16|ft.flags&2944)try{Dn=(ee=ft.checker)==null?void 0:ee.typeToString(ft)}catch{Dn=void 0}let Kn={};if(ft.flags&8388608){let Ur=ft;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=ft;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 Yt={};if(ft.flags&16777216){let Ur=ft;Yt={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 qt={};if(ft.flags&33554432){let Ur=ft;qt={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=ft;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=ft;uo={evolvingArrayElementType:Ur.elementType.id,evolvingArrayFinalType:(Ie=Ur.finalArrayType)==null?void 0:Ie.id}}let Li,Eo=ft.checker.getRecursionIdentity(ft);Eo&&(Li=Ft.get(Eo),Li||(Li=Ft.size,Ft.set(Eo,Li)));let Qn={id:ft.id,intrinsicName:ft.intrinsicName,symbolName:en?.escapedName&&Vi(en.escapedName),recursionId:Li,isTuple:Zt&8?!0:void 0,unionTypes:ft.flags&1048576?(De=ft.types)==null?void 0:De.map(Ur=>Ur.id):void 0,intersectionTypes:ft.flags&2097152?ft.types.map(Ur=>Ur.id):void 0,aliasTypeArguments:(Le=ft.aliasTypeArguments)==null?void 0:Le.map(Ur=>Ur.id),keyofType:ft.flags&4194304?(Et=ft.type)==null?void 0:Et.id:void 0,...Kn,...pn,...Yt,...qt,...hi,...uo,destructuringPattern:Y(ft.pattern),firstDeclaration:Y((be=en?.declarations)==null?void 0:be[0]),flags:R.formatTypeFlags(ft.flags).split("|"),display:Dn};t.writeSync(tt,JSON.stringify(Qn)),Je<_t-1&&t.writeSync(tt,`, +`),t.closeSync(i),ir=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,ee,me){K("I",z,ee,me,'"s":"g"')}e.instant=E;let S=[];function A(z,ee,me,ge=!1){ge&&K("B",z,ee,me),S.push({phase:z,name:ee,args:me,time:1e3*Js(),separateBeginAndEnd:ge})}e.push=A;function N(z){R.assert(S.length>0),j(S.length-1,1e3*Js(),z),S.length--}e.pop=N;function D(){let z=1e3*Js();for(let ee=S.length-1;ee>=0;ee--)j(ee,z);S.length=0}e.popAll=D;let w=1e3*10;function j(z,ee,me){let{phase:ge,name:q,args:J,time:re,separateBeginAndEnd:pe}=S[z];pe?(R.assert(!me,"`results` are not supported for events with `separateBeginAndEnd`"),K("E",ge,q,J,void 0,ee)):w-re%w<=ee-re&&K("X",ge,q,{...J,results:me},`"dur":${ee-re}`,re)}function K(z,ee,me,ge,q,J=1e3*Js()){o==="server"&&ee==="checkTypes"||(tl("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${z}","cat":"${ee}","ts":${J},"name":"${me}"`),q&&t.writeSync(i,`,${q}`),ge&&t.writeSync(i,`,"args":${JSON.stringify(ge)}`),t.writeSync(i,"}"),tl("endTracing"),Xp("Tracing","beginTracing","endTracing"))}function Y(z){let ee=Gn(z);return ee?{path:ee.path,start:me(ys(ee,z.pos)),end:me(ys(ee,z.end))}:void 0;function me(ge){return{line:ge.line+1,character:ge.character+1}}}function B(z){var ee,me,ge,q,J,re,pe,xe,fe,ne,he,Ce,Ge,ve,Ie,De,Le,Et,be;tl("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 ft=z[Je],Zt=ft.objectFlags,en=ft.aliasSymbol??ft.symbol,Dn;if(Zt&16|ft.flags&2944)try{Dn=(ee=ft.checker)==null?void 0:ee.typeToString(ft)}catch{Dn=void 0}let Kn={};if(ft.flags&8388608){let jr=ft;Kn={indexedAccessObjectType:(me=jr.objectType)==null?void 0:me.id,indexedAccessIndexType:(ge=jr.indexType)==null?void 0:ge.id}}let pn={};if(Zt&4){let jr=ft;pn={instantiatedType:(q=jr.target)==null?void 0:q.id,typeArguments:(J=jr.resolvedTypeArguments)==null?void 0:J.map(Sr=>Sr.id),referenceLocation:Y(jr.node)}}let Yt={};if(ft.flags&16777216){let jr=ft;Yt={conditionalCheckType:(re=jr.checkType)==null?void 0:re.id,conditionalExtendsType:(pe=jr.extendsType)==null?void 0:pe.id,conditionalTrueType:((xe=jr.resolvedTrueType)==null?void 0:xe.id)??-1,conditionalFalseType:((fe=jr.resolvedFalseType)==null?void 0:fe.id)??-1}}let qt={};if(ft.flags&33554432){let jr=ft;qt={substitutionBaseType:(ne=jr.baseType)==null?void 0:ne.id,constraintType:(he=jr.constraint)==null?void 0:he.id}}let hi={};if(Zt&1024){let jr=ft;hi={reverseMappedSourceType:(Ce=jr.source)==null?void 0:Ce.id,reverseMappedMappedType:(Ge=jr.mappedType)==null?void 0:Ge.id,reverseMappedConstraintType:(ve=jr.constraintType)==null?void 0:ve.id}}let uo={};if(Zt&256){let jr=ft;uo={evolvingArrayElementType:jr.elementType.id,evolvingArrayFinalType:(Ie=jr.finalArrayType)==null?void 0:Ie.id}}let Li,Eo=ft.checker.getRecursionIdentity(ft);Eo&&(Li=Wt.get(Eo),Li||(Li=Wt.size,Wt.set(Eo,Li)));let Zn={id:ft.id,intrinsicName:ft.intrinsicName,symbolName:en?.escapedName&&Vi(en.escapedName),recursionId:Li,isTuple:Zt&8?!0:void 0,unionTypes:ft.flags&1048576?(De=ft.types)==null?void 0:De.map(jr=>jr.id):void 0,intersectionTypes:ft.flags&2097152?ft.types.map(jr=>jr.id):void 0,aliasTypeArguments:(Le=ft.aliasTypeArguments)==null?void 0:Le.map(jr=>jr.id),keyofType:ft.flags&4194304?(Et=ft.type)==null?void 0:Et.id:void 0,...Kn,...pn,...Yt,...qt,...hi,...uo,destructuringPattern:Y(ft.pattern),firstDeclaration:Y((be=en?.declarations)==null?void 0:be[0]),flags:R.formatTypeFlags(ft.flags).split("|"),display:Dn};t.writeSync(tt,JSON.stringify(Zn)),Je<_t-1&&t.writeSync(tt,`, `)}t.writeSync(tt,`] -`),t.closeSync(tt),tl("endDumpTypes"),Yp("Dump types","beginDumpTypes","endDumpTypes")}function ce(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=ce})(CL||(CL={})),Ine=CL.startTracing,xne=CL.dumpLegend}});function rT(e,t=!0){let r=PL[e.category];return t?r.toLowerCase():r}var RW,DW,CW,r9,NW,PW,i9,NL,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,PL,Dx,w9,O9,W9,F9,HC,z9,B9,G9,FW,V9,j9,U9,H9,K9,zW,BW,GW,J9,q9,X9,Y9,$9,Q9,Z9,eV,ML,tV,kEe=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||{}),NL=(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))(NL||{}),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||{}),PL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(PL||{}),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||{}),HC=(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))(HC||{}),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||{}),ML={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 KC(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):(R.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 OEe(e,D,j,K,Y);function Y(B,ce,z){z?(B.unchangedPolls=0,D!==r&&(D[ce]=void 0,S(B))):B.unchangedPolls!==kL[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 m7e(e,t,r,i){let o=Xp(),s=i?new Map:void 0,l=new Map,d=Cd(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=ai(A)||".",D=l.get(N)||h(ai(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(!Co(N))return;let D=_o(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 _7e(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=OEe(e,t,r,UW[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function WEe(e,t,r,i,o){let l=Cd(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 h7e(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 LL(e){return Pne(e)}function Dne(e){Pne=e}function g7e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:d}){let p=new Map,h=Xp(),m=new Map,y,E=Ex(!t),S=Cd(t);return(z,ee,me,ge)=>me?A(z,ge,ee):e(z,ee,me,ge);function A(z,ee,me){let ge=S(z),q=p.get(ge);q?q.refCount++:(q={watcher:e(z,re=>{B(re,ee)||(ee?.synchronousWatchDirectory?(N(ge,re),Y(z,ge,ee)):D(z,ge,re,ee))},!1,ee),refCount:1,childWatches:Xe},p.set(ge,q),Y(z,ge,ee));let J=me&&{dirName:z,callback:me};return J&&h.add(ge,J),{dirName:z,close:()=>{let re=R.checkDefined(p.get(ge));J&&h.remove(ge,J),re.refCount--,!re.refCount&&(p.delete(ge),Rf(re),re.childWatches.forEach(Km))}}}function N(z,ee,me){let ge,q;Co(ee)?ge=ee:q=ee,h.forEach((J,re)=>{if(!(q&&q.get(re)===!0)&&(re===z||ao(z,re)&&z[re.length]===rl))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,ee,me,ge){let q=p.get(ee);if(q&&o(z,1)){w(z,ee,me,ge);return}N(ee,me),K(q)}function w(z,ee,me,ge){let q=m.get(ee);q?q.fileNames.push(me):m.set(ee,{dirName:z,options:ge,fileNames:[me]}),y&&(d(y),y=void 0),y=l(j,1e3,"timerToUpdateChildWatches")}function j(){y=void 0,LL(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let z=Js(),ee=new Map;for(;!y&&m.size;){let ge=m.entries().next();R.assert(!ge.done);let{value:[q,{dirName:J,options:re,fileNames:pe}]}=ge;m.delete(q);let xe=Y(J,q,re);N(q,ee,xe?void 0:pe)}LL(`sysLog:: invokingWatchers:: Elapsed:: ${Js()-z}ms:: ${m.size}`),h.forEach((ge,q)=>{let J=ee.get(q);J&&ge.forEach(({callback:re,dirName:pe})=>{So(J)?J.forEach(re):re(pe)})});let me=Js()-z;LL(`sysLog:: Elapsed:: ${me}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(z){if(!z)return;let ee=z.childWatches;z.childWatches=Xe;for(let me of ee)me.close(),K(p.get(S(me.dirName)))}function Y(z,ee,me){let ge=p.get(ee);if(!ge)return!1;let q,J=TW(o(z,1)?to(i(z),xe=>{let fe=_o(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,Km,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,ee){return gt(wL,me=>ce(z,me))||FEe(z,ee,t,r)}function ce(z,ee){return z.includes(ee)?!0:t?!1:S(z).includes(ee)}}function y7e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function v7e(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 FEe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(l3(e,t?.excludeFiles,r,i())||l3(e,t?.excludeDirectories,r,i()))}function zEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?ma(Yr(e,l)):e;(!l||!FEe(d,r,i,o))&&t(d)}}}function Cne({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,ee=!1;return{watchFile:me,watchDirectory:pe};function me(ve,Ie,De,Le){Le=J(Le,E);let Et=R.checkDefined(Le.watchFile);switch(Et){case 0:return ne(ve,Ie,250,void 0);case 1:return ne(ve,Ie,De,void 0);case 2:return ge()(ve,Ie,De,void 0);case 3:return q()(ve,Ie,void 0,void 0);case 4:return he(ve,0,v7e(ve,Ie,t),!1,De,Nw(Le));case 5:return ce||(ce=m7e(he,l,t,N)),ce(ve,Ie,De,Nw(Le));default:R.assertNever(Et)}}function ge(){return Y||(Y=f7e({getModifiedTime:t,setTimeout:r}))}function q(){return B||(B=_7e({getModifiedTime:t,setTimeout:r}))}function J(ve,Ie){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":Ie=!0;default:return Ie?re(5,1,ve):{watchFile:4}}}function re(ve,Ie,De){let Le=De?.fallbackPolling;return{watchFile:ve,fallbackPolling:Le===void 0?Ie:Le}}function pe(ve,Ie,De,Le){return p?he(ve,1,zEe(ve,Ie,Le,l,d),De,500,Nw(Le)):(z||(z=g7e({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:xe,realpath:m,setTimeout:r,clearTimeout:i})),z(ve,Ie,De,Le))}function xe(ve,Ie,De,Le){R.assert(!De);let Et=fe(Le),be=R.checkDefined(Et.watchDirectory);switch(be){case 1:return ne(ve,()=>Ie(ve),500,void 0);case 2:return ge()(ve,()=>Ie(ve),500,void 0);case 3:return q()(ve,()=>Ie(ve),void 0,void 0);case 0:return he(ve,1,zEe(ve,Ie,Le,l,d),De,500,Nw(Et));default:R.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 Ie=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ie!==void 0?Ie:void 0}}}function ne(ve,Ie,De,Le){return WEe(w,l,ve,Ie,Et=>e(ve,Et,De,Le))}function he(ve,Ie,De,Le,Et,be){return WEe(Le?K:j,l,ve,De,ze=>Ce(ve,Ie,ze,Le,Et,be))}function Ce(ve,Ie,De,Le,Et,be){let ze,tt;A&&(ze=ve.substring(ve.lastIndexOf(rl)),tt=ze.slice(rl.length));let Ft=s(ve,Ie)?Je():en();return{close:()=>{Ft&&(Ft.close(),Ft=void 0)}};function _t(Dn){Ft&&(D(`sysLog:: ${ve}:: Changing watcher to ${Dn===Je?"Present":"Missing"}FileSystemEntryWatcher`),Ft.close(),Ft=Dn())}function Je(){if(ee)return D(`sysLog:: ${ve}:: Defaulting to watchFile`),Zt();try{let Dn=(Ie===1||!N?o:Ge)(ve,Le,A?ft:De);return Dn.on("error",()=>{De("rename",""),_t(en)}),Dn}catch(Dn){return ee||(ee=Dn.code==="ENOSPC"),D(`sysLog:: ${ve}:: Changing to watchFile`),Zt()}}function ft(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 Yt=t(ve)||Mp;pn&&De(Dn,pn,Yt),De(Dn,Kn,Yt),A?_t(Yt===Mp?en:Je):Yt===Mp&&_t(en)}else pn&&De(Dn,pn),De(Dn,Kn)}function Zt(){return me(ve,y7e(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,Ie,De){let Le=t(ve)||Mp;return o(ve,Ie,(Et,be,ze)=>{Et==="change"&&(ze||(ze=t(ve)||Mp),ze.getTime()===Le.getTime())||(Le=ze||t(ve)||Mp,De(Et,be,Le))})}}function Nne(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 BEe(e){_d=e}var rV,VW,Mp,jW,UW,kL,wL,Pne,iV,_d,b7e=bt({"src/compiler/sys.ts"(){"use strict";Qo(),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=Rne(jW),kL=Rne(jW),wL=["/node_modules/.","/.git","/.#"],Pne=Ja,iV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(iV||{}),_d=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=$r("fs"),s=$r("path"),l=$r("os"),d;try{d=$r("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=$r("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=Eu(()=>process.cwd()),{watchFile:K,watchDirectory:Y}=Cne({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:LL}),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:Ie,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?Ft:KC,createSHA256Hash:d?Ft: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||zo(process.execArgv,"--cpu-prof")||zo(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{$r("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 ft=Ise(Je,_t,B);return{module:$r(ft),modulePath:ft,error:void 0}}catch(ft){return{module:void 0,modulePath:void 0,error:ft}}}};return B;function ce(_t){return o.statSync(_t,{throwIfNoEntry:!1})}function z(_t,Je){if(p)return Je(),!1;let ft=$r("inspector");if(!ft||!ft.Session)return Je(),!1;let Zt=new ft.Session;return Zt.connect(),Zt.post("Profiler.enable",()=>{Zt.post("Profiler.start",()=>{p=Zt,h=_t,Je()})}),!0}function ee(_t){let Je=0,ft=new Map,Zt=Nd(s.dirname(D)),en=`file://${lh(Zt)===1?"":"/"}${Zt}`;for(let Dn of _t.nodes)if(Dn.callFrame.url){let Kn=Nd(Dn.callFrame.url);mm(en,Kn,A)?Dn.callFrame.url=_I(en,Kn,en,Cd(A),!0):i.test(Kn)||(Dn.callFrame.url=(ft.has(Kn)?ft:ft.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",(ft,{profile:Zt})=>{var en;if(!ft){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(ee(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 ft=Je.toUpperCase();return Je===ft?Je.toLowerCase():ft})}function re(_t,Je,ft){o.watchFile(_t,{persistent:!0,interval:ft},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,ft){return o.watch(_t,w?{persistent:!0,recursive:!!Je}:{persistent:!0},ft)}function xe(_t,Je){let ft;try{ft=o.readFileSync(_t)}catch{return}let Zt=ft.length;if(Zt>=2&&ft[0]===254&&ft[1]===255){Zt&=-2;for(let en=0;en=2&&ft[0]===255&&ft[1]===254?ft.toString("utf16le",2):Zt>=3&&ft[0]===239&&ft[1]===187&&ft[2]===191?ft.toString("utf8",3):ft.toString("utf8")}function fe(_t,Je){var ft,Zt;(ft=iu)==null||ft.logStartReadFile(_t);let en=xe(_t,Je);return(Zt=iu)==null||Zt.logStopReadFile(),en}function ne(_t,Je,ft){var Zt;(Zt=iu)==null||Zt.logEvent("WriteFile: "+_t),ft&&(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=iu)==null||Je.logEvent("ReadDir: "+(_t||"."));try{let ft=o.readdirSync(_t||".",{withFileTypes:!0}),Zt=[],en=[];for(let Dn of ft){let Kn=typeof Dn=="string"?Dn:Dn.name;if(Kn==="."||Kn==="..")continue;let pn;if(typeof Dn=="string"||Dn.isSymbolicLink()){let Yt=Yr(_t,Kn);try{if(pn=ce(Yt),!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,ft,Zt,en){return lU(_t,Je,ft,Zt,A,process.cwd(),en,he,Et)}function Ge(_t,Je){let ft=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=ft}}function ve(_t){return Ge(_t,0)}function Ie(_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 ft=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=ce(_t))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=ft}}function ze(_t,Je){try{o.utimesSync(_t,Je,Je)}catch{return}}function tt(_t){try{return o.unlinkSync(_t)}catch{return}}function Ft(_t){let Je=d.createHash("sha256");return Je.update(_t),Je.digest("hex")}}let r;return qG()&&(r=t()),r&&Nne(r),r})(),_d&&_d.getEnvironmentVariable&&(p7e(_d),R.setAssertionLevel(/^development$/i.test(_d.getEnvironmentVariable("NODE_ENV"))?1:0)),_d&&_d.debugMode&&(R.isDebugging=!0)}});function oV(e){return e===47||e===92}function Mne(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 JC(e){return HW(e)!==0}function Lp(e){return/^\.\.?($|[\\/])/.test(e)}function sV(e){return!JC(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 Ry(e){return e.length>0&&oV(e.charCodeAt(e.length-1))}function GEe(e){return e>=97&&e<=122||e>=65&&e<=90}function E7e(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?rl:zL,2);return i<0?e.length:i+1}if(GEe(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(wne);if(r!==-1){let i=r+wne.length,o=e.indexOf(rl,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&GEe(e.charCodeAt(o+1))){let d=E7e(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 lh(e){let t=HW(e);return t<0?~t:t}function ai(e){e=Nd(e);let t=lh(e);return t===e.length?e:(e=Yb(e),e.slice(0,Math.max(t,e.lastIndexOf(rl))))}function nc(e,t,r){if(e=Nd(e),lh(e)===e.length)return"";e=Yb(e);let o=e.slice(Math.max(lh(e),e.lastIndexOf(rl)+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 VEe(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 S7e(e,t,r){if(typeof t=="string")return VEe(e,t,r)||"";for(let i of t){let o=VEe(e,i,r);if(o)return o}return""}function Cx(e,t,r){if(t)return S7e(Yb(e),t,r?Xb:eT);let i=nc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function T7e(e,t){let r=e.substring(0,t),i=e.substring(t).split(rl);return i.length&&!Qs(i)&&i.pop(),[r,...i]}function Wc(e,t=""){return e=Yr(t,e),T7e(e,lh(e))}function Av(e,t){return e.length===0?"":(e[0]&&Fc(e[0]))+e.slice(1,t).join(rl)}function Nd(e){return e.includes("\\")?e.replace(HEe,rl):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=Nd(e));for(let r of t)r&&(r=Nd(r),!e||lh(r)!==0?e=r:e=Fc(e)+r);return e}function Iv(e,...t){return ma(gt(t)?Yr(e,...t):Nd(e))}function OL(e,t){return iT(Wc(e,t))}function _o(e,t){return Av(OL(e,t))}function ma(e){if(e=Nd(e),!JW.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!JW.test(e)))return e;let r=Av(iT(Wc(e)));return r&&Ry(e)?Fc(r):r}function A7e(e){return e.length===0?"":e.slice(1).join(rl)}function lV(e,t){return A7e(OL(e,t))}function nl(e,t,r){let i=cp(e)?ma(e):_o(e,t);return r(i)}function Yb(e){return Ry(e)?e.substr(0,e.length-1):e}function Fc(e){return Ry(e)?e:e+rl}function g0(e){return!JC(e)&&!Lp(e)?"./"+e:e}function WL(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 Lne(e,t){let r=CH(e);return r?e.slice(0,e.length-r.length)+(ao(t,".")?t:"."+t):WL(e,t)}function kne(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,lh(e)),o=t.substring(0,lh(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(Wc(e)),h=iT(Wc(t)),m=Math.min(p.length,h.length);for(let y=1;y0==lh(t)>0,"Paths must either both be absolute or both be relative");let s=dV(e,t,(typeof r=="boolean"?r:!1)?Xb:eT,typeof r=="function"?r:Zs);return Av(s)}function qC(e,t,r){return cp(e)?_I(t,e,t,r,!1):e}function FL(e,t,r){return g0(_m(ai(e),t,r))}function _I(e,t,r,i,o){let s=dV(Iv(r,e),Iv(r,t),eT,i),l=s[0];if(o&&cp(l)){let d=l.charAt(0)===rl?"file://":"file:///";s[0]=d+l}return Av(s)}function hm(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=ai(e);if(i===e)return;e=i}}function KW(e){return El(e,"/node_modules")}var rl,zL,wne,HEe,JW,I7e=bt({"src/compiler/path.ts"(){"use strict";Qo(),rl="/",zL="\\",wne="://",HEe=/\\/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,x7e=bt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";kEe(),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 ou(e){return e>=80}function One(e){return e===32||ou(e)}function BL(e,t){if(e=2?BL(e,ZEe):t===1?BL(e,$Ee):BL(e,XEe)}function R7e(e,t){return t>=2?BL(e,e0e):t===1?BL(e,QEe):BL(e,YEe)}function D7e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function da(e){return i0e[e]}function y0(e){return Bne.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 GL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):XW(Rg(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:R.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?EL(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 $C(e){return e>=48&&e<=57}function KEe(e){return $C(e)||e>=65&&e<=70||e>=97&&e<=102}function C7e(e){return e<=1114111}function YW(e){return e>=48&&e<=55}function Wne(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(Jm(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&&Dg(l)){t++;continue}break}return t}}function QC(e,t){if(R.assert(t>=0),t===0||jd(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+QW=0&&r127&&Dg(A)){y&&jd(A)&&(m=!0),r++;continue}break e}}return y&&(S=o(d,p,h,m,s,S)),S}function jL(e,t,r,i){return fV(!1,e,t,!1,r,i)}function UL(e,t,r,i){return fV(!1,e,t,!0,r,i)}function Fne(e,t,r,i,o){return fV(!0,e,t,!1,r,i,o)}function zne(e,t,r,i,o){return fV(!0,e,t,!0,r,i,o)}function JEe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Uh(e,t){return Fne(e,t,JEe,void 0,void 0)}function $b(e,t){return zne(e,t,JEe,void 0,void 0)}function $W(e){let t=mV.exec(e);if(t)return t[0]}function Hh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&qW(e,t)}function Qb(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&&R7e(e,t)}function $p(e,t,r){let i=xv(e,0);if(!Hh(i,t))return!1;for(let o=Zb(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:ft,scanJsxIdentifier:Yt,scanJsxAttributeValue:qt,reScanJsxAttributeValue:hi,reScanJsxToken:Zt,reScanLessThanToken:en,reScanHashToken:Dn,reScanQuestionToken:Kn,reScanInvalidIdentifier:Le,scanJsxToken:pn,scanJsDocToken:Li,scanJSDocCommentTextToken:uo,scan:Ie,getText:on,clearCommentDirectives:Ye,setText:Wt,setScriptTarget:li,setLanguageVariant:yi,setScriptKind:$i,setJSDocParsingMode:Ao,setOnError:In,resetTokenState:ua,setTextPos:ua,setInJSDocType:za,tryScan:Er,lookAhead:Ur,scanRange:Qn};return R.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($C(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(!ee())A|=8192,kn=""+ +S;else if(!S)kn="0";else{S=""+parseInt(S,8),A|=32;let se=E===41,ke=(se?"-":"")+"0o"+(+S).toString(8);return se&&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 se=p,ke=B();ke?(ct=d.substring(lt,se)+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 se=ve();return z(vn),se}}function z(vn,kn){if(!Hh(xv(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 ee(){let vn=p,kn=!0;for(;$C(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&&se<=70)se+=32;else if(!(se>=48&&se<=57||se>=97&&se<=102))break;ct.push(se),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||!$C(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&&Qb(Be,e)){p+=3,A|=8,vn+=xe(),kn=p;continue}if(Be=fe(),!(Be>=0&&Qb(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=qEe.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,!$C(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=HN(S)+"n"),p++,10):(S=""+(A&128?parseInt(S.slice(2),2):A&256?parseInt(S.slice(2),8):+S),9)}function Ie(){m=p,A=0;let vn=!1;for(;;){if(y=p,p>=h)return E=1;let kn=xv(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&&Hh(Be,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let ct=fe();return ct>=0&&Hh(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=xv(d,p+1);if(lt===92){p++;let ke=ne();if(ke>=0&&Hh(ke,e))return p+=3,A|=8,S="#"+xe()+he(),E=81;let st=fe();if(st>=0&&Hh(st,e))return p+=6,A|=1024,S="#"+String.fromCharCode(st)+he(),E=81;p--}return Hh(lt,e)?(p++,Et(lt,e)):(S="#",Y(f.Invalid_character,p++,Zb(kn))),E=81;default:let Rt=Et(kn,e);if(Rt)return E=Rt;if(y_(kn)){p+=Zb(kn);continue}else if(jd(kn)){A|=1,p+=Zb(kn);continue}let se=Zb(kn);return Y(f.Invalid_character,p,se),p+=se,E=0}}}function De(){switch(j){case 0:return!0;case 1:return!1}return w!==3&&w!==4?!0:j===3?!1:r0e.test(d.slice(m,p))}function Le(){R.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,A=0;let vn=xv(d,p),kn=Et(vn,99);return kn?E=kn:(p+=Zb(vn),E)}function Et(vn,kn){let Be=vn;if(Hh(Be,kn)){for(p+=Zb(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;Dg(kn)||(Be=p)}p++}return S=d.substring(m,p),Be===-1?13:12}function Yt(){if(ou(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=xv(d,p);switch(p+=Zb(vn),vn){case 9:case 11:case 12:case 32:for(;p=0&&Hh(kn,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let Be=fe();return Be>=0&&Hh(Be,e)?(p+=6,A|=1024,S=String.fromCharCode(Be)+he(),E=Ce()):(p++,E=0)}if(Hh(vn,e)){let kn=vn;for(;p=0),p=vn,m=vn,y=vn,E=0,S=void 0,A=0}function za(vn){D+=vn?1:-1}}function xv(e,t){return e.codePointAt(t)}function Zb(e){return e>=65536?2:1}function N7e(e){if(R.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 o0e(e)}var HL,qEe,Bne,XEe,YEe,$Ee,QEe,ZEe,e0e,t0e,n0e,r0e,i0e,QW,mV,o0e,P7e=bt({"src/compiler/scanner.ts"(){"use strict";Qo(),HL={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},qEe=new Map(Object.entries(HL)),Bne=new Map(Object.entries({...HL,"{":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})),XEe=[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],YEe=[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],$Ee=[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],QEe=[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],ZEe=[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],e0e=[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],t0e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,n0e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,r0e=/@(?:see|link)/i,i0e=D7e(Bne),QW=7,mV=/^#!.*/,o0e=String.fromCodePoint?e=>String.fromCodePoint(e):N7e}});function qc(e){return Lp(e)||cp(e)}function Mx(e){return zC(e,zN)}function KL(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 Gne(e){return e.length===0}function _V(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Vne(e,t){return t.start>=e.start&&Jl(t)<=Jl(e)}function a0e(e,t){return jne(e,t)!==void 0}function jne(e,t){let r=Hne(e,t);return r&&r.length===0?void 0:r}function s0e(e,t){return qL(e.start,e.length,t.start,t.length)}function ZW(e,t,r){return qL(e.start,e.length,t,r)}function qL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Une(e,t){return t<=Jl(e)&&t>=e.start}function Hne(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 hd(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 hd(e,t-e)}function ZC(e){return hd(e.span.start,e.newLength)}function Kne(e){return Gne(e.span)&&e.newLength===0}function XL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Jne(e){if(e.length===0)return u2;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 yr(e){return Vi(e.escapedText)}function tE(e){let t=y0(e.escapedText);return t?ii(t,Wu):void 0}function vl(e){return e.valueDeclaration&&su(e.valueDeclaration)?yr(e.valueDeclaration.name):Vi(e.escapedName)}function d0e(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=No(e);return t&&Fe(t)?t:void 0}function YL(e,t){return!!(au(e)&&Fe(e.name)&&yr(e.name)===yr(t)||Pl(e)&>(e.declarationList.declarations,r=>YL(r,t)))}function $ne(e){return e.name||d0e(e)}function au(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 $ne(e);case 347:return d0e(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 No(e){if(e!==void 0)return eF(e)||(Ls(e)||zs(e)||$c(e)?tF(e):void 0)}function tF(e){if(e.parent){if(mc(e.parent)||qa(e.parent))return e.parent.name;if(ur(e.parent)&&e===e.parent.right){if(Fe(e.parent.left))return e.parent.left;if(Ms(e.parent.left))return YF(e.parent.left)}else if(Oi(e.parent)&&Fe(e.parent.name))return e.parent.name}else return}function Rv(e){if(bf(e))return jr(e.modifiers,vd)}function v0(e){if(Qr(e,98303))return jr(e.modifiers,Sa)}function u0e(e,t){if(e.name)if(Fe(e.name)){let r=e.name.escapedText;return QL(e.parent,t).filter(i=>$m(i)&&Fe(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);R.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=QL(e.parent,t).filter($m);if(rnm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Zne(e){return p0e(e,!1)}function ere(e){return p0e(e,!0)}function tre(e){return!!Uf(e,$m)}function nre(e){return Uf(e,a1)}function rre(e){return rF(e,K4)}function yV(e){return Uf(e,Dae)}function f0e(e){return Uf(e,cH)}function ire(e){return Uf(e,cH,!0)}function m0e(e){return Uf(e,dH)}function ore(e){return Uf(e,dH,!0)}function _0e(e){return Uf(e,uH)}function are(e){return Uf(e,uH,!0)}function h0e(e){return Uf(e,pH)}function sre(e){return Uf(e,pH,!0)}function lre(e){return Uf(e,U4,!0)}function vV(e){return Uf(e,fH)}function cre(e){return Uf(e,fH,!0)}function bV(e){return Uf(e,Bk)}function nF(e){return Uf(e,mH)}function dre(e){return Uf(e,H4)}function g0e(e){return Uf(e,nm)}function EV(e){return Uf(e,J4)}function nE(e){let t=Uf(e,gP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function rE(e){let t=Uf(e,gP);return!t&&To(e)&&(t=Vr(kx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function $L(e){let t=dre(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=nE(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(gp(i)){let o=Vr(i.members,XI);return o&&o.type}if(gh(i)||kR(i))return i.type}}function QL(e,t){var r;if(!B2(e))return Xe;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=gj(e,t);R.assert(o.length<2||o[0]!==o[1]),i=va(o,s=>Ym(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function iE(e){return QL(e,!1)}function y0e(e){return QL(e,!0)}function Uf(e,t,r){return Vr(QL(e,r),t)}function rF(e,t){return iE(e).filter(t)}function v0e(e,t){return iE(e).filter(r=>r.kind===t)}function ZL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:L7e(t)).join("")}function L7e(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 Dv(e){if(vE(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 R.assert(e.parent.kind===327),va(e.parent.tags,t=>nm(t)?t.typeParameters:void 0);if(e.typeParameters||zae(e)&&e.typeParameters)return e.typeParameters;if(ir(e)){let t=d6(e);if(t.length)return t;let r=rE(e);if(r&&gh(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 Kh(e){return e.kind===80||e.kind===81}function iF(e){return e.kind===178||e.kind===177}function oF(e){return wr(e)&&!!(e.flags&64)}function SV(e){return Xs(e)&&!!(e.flags&64)}function oT(e){return ra(e)&&!!(e.flags&64)}function Ud(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function tN(e){return Ud(e)&&!t1(e)&&!!e.questionDotToken}function aF(e){return tN(e.parent)&&e.parent.expression===e}function nN(e){return!Ud(e.parent)||tN(e.parent)||e!==e.parent.expression}function TV(e){return e.kind===226&&e.operatorToken.kind===61}function Cg(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 rN(e){return e.kind===252||e.kind===251}function AV(e){return e.kind===280||e.kind===279}function ure(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function IV(e){return ure(e)||e.kind===307||e.kind===311}function iN(e){return e.kind===355||e.kind===348}function b0e(e){return e2(e.kind)}function e2(e){return e>=166}function xV(e){return e>=0&&e<=165}function gI(e){return xV(e.kind)}function b0(e){return As(e,"pos")&&As(e,"end")}function oN(e){return 9<=e&&e<=15}function E0(e){return oN(e.kind)}function RV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Cv(e){return 15<=e&&e<=18}function pre(e){return Cv(e.kind)}function lF(e){let t=e.kind;return t===17||t===18}function yI(e){return Qu(e)||Kd(e)}function t2(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 fre(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 oE(e){return t2(e)||fre(e)}function DV(e){return e.kind===11||Cv(e.kind)}function mre(e){return Da(e)||Fe(e)}function il(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 n2(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function su(e){return(Vo(e)||bI(e))&&Ki(e.name)}function Ox(e){return wr(e)&&Ki(e.name)}function Ny(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 aN(e){return!!(MI(e)&31)}function CV(e){return aN(e)||e===126||e===164||e===129}function Sa(e){return Ny(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 Xo(e){return!!e&&vI(e.kind)}function Wx(e){return!!e&&(vI(e.kind)||Al(e))}function Fs(e){return e&&E0e(e.kind)}function sN(e){return e.kind===112||e.kind===97}function E0e(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 E0e(e)}}function NV(e){return Yi(e)||N_(e)||Uo(e)&&Xo(e.parent)}function Xc(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function Nv(e){return e&&(e.kind===177||e.kind===178)}function ku(e){return Vo(e)&&I_(e)}function _re(e){return ir(e)&&j6(e)?(!C0(e)||!zv(e.expression))&&!yT(e,!0):e.parent&&di(e.parent)&&Vo(e)&&!I_(e)}function bI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function S0e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function ol(e){return Sa(e)||vd(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)||Xc(e)}function Ng(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 hre(e){switch(e.kind){case 184:case 185:return!0}return!1}function Yo(e){if(e){let t=e.kind;return t===207||t===206}return!1}function lN(e){let t=e.kind;return t===209||t===210}function dF(e){let t=e.kind;return t===208||t===232}function r2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function gre(e){return Oi(e)||To(e)||o2(e)||a2(e)}function i2(e){return PV(e)||MV(e)}function PV(e){switch(e.kind){case 206:case 210:return!0}return!1}function o2(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 a2(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Pc(e,!0)}function yre(e){let t=e.kind;return t===211||t===166||t===205}function vre(e){let t=e.kind;return t===211||t===166}function LV(e){return S0(e)||z0(e)}function S0(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 T0e(gm(e).kind)}function T0e(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 A0e(gm(e).kind)}function A0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return T0e(e)}}function bre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Ere(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return E0(e)}}function ht(e){return k7e(gm(e).kind)}function k7e(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 A0e(e)}}function cT(e){let t=e.kind;return t===216||t===234}function I0e(e){return oH(e)||B4(e)}function Pv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Pv(e.statement,t)}return!1}function Sre(e){return Ml(e)||Xl(e)}function Tre(e){return gt(e,Sre)}function uF(e){return!h2(e)&&!Ml(e)&&!Qr(e,32)&&!Pd(e)}function s2(e){return h2(e)||Ml(e)||Qr(e,32)}function Fx(e){return e.kind===249||e.kind===250}function pF(e){return Uo(e)||ht(e)}function wV(e){return Uo(e)}function vf(e){return Vc(e)||ht(e)}function Are(e){let t=e.kind;return t===268||t===267||t===80}function x0e(e){let t=e.kind;return t===268||t===267}function R0e(e){let t=e.kind;return t===80||t===267}function OV(e){let t=e.kind;return t===275||t===274}function l2(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 ch(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 w7e(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 Ire(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 xre(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):w7e(e.kind)}function Rre(e){return Ire(e.kind)}function c2(e){return xre(e.kind)}function Hi(e){let t=e.kind;return xre(t)||Ire(t)||O7e(e)}function O7e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!R0(e)}function Dre(e){let t=e.kind;return xre(t)||Ire(t)||t===241}function Cre(e){let t=e.kind;return t===283||t===166||t===80}function cN(e){let t=e.kind;return t===110||t===80||t===211||t===295}function d2(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 Nre(e){let t=e.kind;return t===11||t===294}function lu(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)||vE(e)}function Bx(e){return e.kind>=334&&e.kind<=357}function Py(e){return e.kind===178}function Mv(e){return e.kind===177}function kp(e){if(!B2(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function hF(e){return!!e.type}function Lv(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||Ng(e)}function gF(e){return e.kind===183||e.kind===233}function Pre(e){let t=Mre;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?bo($b(l,Na(l,s.end+1,!1,!0)),Uh(l,e.pos)):$b(l,Na(l,e.pos,!1,!0));return gt(d)&&D0e(Ka(d),t)}let i=r&&ij(r,t);return!!gn(i,o=>D0e(o,t))}var u2,BV,Mre,W7e=bt({"src/compiler/utilitiesPublic.ts"(){"use strict";Qo(),u2=XL(hd(0,0),0),BV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Mre=1073741823}});function dl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Lre(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 dh(e){return(e.flags&33554432)!==0}function F7e(){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&&Dg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ja,decreaseIndent:Ja,clear:()=>e=""}}function yF(e,t){return e.configFilePath!==t.configFilePath||kre(e,t)}function kre(e,t){return Gx(e,t,d3)}function wre(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 Ore(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 zc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function uh(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 dN(e){let t=hk.getText();try{return e(hk),hk.getText()}finally{hk.clear(),hk.writeKeyword(t)}}function p2(e){return e.end-e.pos}function GV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Wre(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&&z7e(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&&(pu(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(Sh+"@types/")?`@types/${qR(o)}`:o]]),p=d?Fo(void 0,d[0],...d[1]):t.typesPackageExists(o)?Fo(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)?Fo(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):Fo(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 z7e(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 kv(e){return`${EF(e)}@${e.version}`}function Fre(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){R.assert(e.length===t.length);for(let o=0;o=0),Rg(t)[e]}function C0e(e){let t=Gn(e),r=ys(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function m2(e,t){R.assert(e>=0);let r=Rg(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(R.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 Bre(e,t){return ml(e)?t===e.expression:Al(e)?t===e.modifiers:_p(e)?t===e.initializer:Vo(e)?t===e.questionToken&&ku(e):mc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||_2(e.modifiers,t,ol):Zu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||_2(e.modifiers,t,ol):Ul(e)?t===e.exclamationToken:Nl(e)?t===e.typeParameters||t===e.type||_2(e.typeParameters,t,ml):Zp(e)?t===e.typeParameters||_2(e.typeParameters,t,ml):hp(e)?t===e.typeParameters||t===e.type||_2(e.typeParameters,t,ml):zk(e)?t===e.modifiers||_2(e.modifiers,t,ol):!1}function _2(e,t,r){return!e||So(t)||!r(t)?!1:zo(e,t)}function N0e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${ys(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Oo(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 aE(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)?aE(e.jsDoc[0],t):e.kind===358&&e._children.length>0?aE(e._children[0],t,r):Na((t||Gn(e)).text,e.pos,!1,!1,R2(e))}function HV(e,t){let r=!Fl(e)&&Am(e)?sI(e.modifiers,vd):void 0;return r?Na((t||Gn(e)).text,r.end):aE(e,t)}function T0(e,t,r=!1){return uN(e.text,t,r)}function G7e(e){return!!Fn(e,Q0)}function IF(e){return!!(Xl(e)&&e.exportClause&&vh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function uN(e,t,r=!1){if(Fl(t))return"";let i=e.substring(r?t.pos:Na(e,t.pos),t.end);return G7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` -`)),i}function uc(e,t=!1){return T0(Gn(e),e,t)}function V7e(e){return e.pos}function jx(e,t){return Sy(e,t,V7e,el)}function Fa(e){let t=e.emitNode;return t&&t.flags||0}function ym(e){let t=e.emitNode;return t&&t.internalFlags||0}function Vre(e,t,r){if(t&&j7e(e,r))return T0(t,e);switch(e.kind){case 11:{let i=r&2?wj:r&1||Fa(e)&16777216?Zh:$2;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||Fa(e)&16777216?Zh:$2,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 R.fail(`Literal kind '${e.kind}' not accounted for.`)}function j7e(e,t){if(qs(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 jre(e){return Co(e)?'"'+$2(e)+'"':""+e}function Ure(e){return nc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function KV(e){return(Cy(e)&7)!==0||JV(e)}function JV(e){let t=A_(e);return t.kind===260&&t.parent.kind===299}function Pd(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 Hre(e){return ql(e)||Fe(e)}function pN(e){return U7e(e.valueDeclaration)}function U7e(e){return!!e&&e.kind===267&&!e.body}function Kre(e){return e.kind===312||e.kind===267||Wx(e)}function E_(e){return!!(e.flags&2048)}function A0(e){return Pd(e)&&XV(e)}function XV(e){switch(e.parent.kind){case 312:return oc(e.parent);case 268:return Pd(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=>!A0(r)&&!(ql(r)&&E_(r)))}function H7e(e){return e===1||e===100||e===199}function TI(e,t){return oc(e)||H7e(Md(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:uu(t,"alwaysStrict")||wae(e.statements)?!0:oc(e)||em(t)?Md(t)>=5?!0:!t.noImplicitUseStrict:!1}function QV(e){return!!(e.flags&33554432)||Qr(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(R.type(e),e.kind){case 345:case 353:case 330:return!0;default:return tj(e)}}function tj(e){switch(R.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 Jre(e){return pT(e)||D0(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 qre(e){return h2(e)||ql(e)||ig(e)||Op(e)}function h2(e){return pT(e)||Xl(e)}function nj(e){return Fn(e.parent,t=>!!(mK(t)&1))}function ph(e){return Fn(e.parent,t=>ZV(t,t.parent))}function Xre(e,t){let r=ph(e);for(;r;)t(r),r=ph(r)}function Is(e){return!e||p2(e)===0?"(Missing)":uc(e)}function Yre(e){return e.declaration?Is(e.declaration.parameters[0].name):void 0}function g2(e){return e.kind===167&&!Qp(e.expression)}function fN(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 fl(e.text);case 167:return Qp(e.expression)?fl(e.expression.text):void 0;case 295:return FI(e);default:return R.assertNever(e)}}function Ux(e){return R.checkDefined(fN(e))}function up(e){switch(e.kind){case 110:return"this";case 81:case 80:return p2(e)===0?yr(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):R.assertNever(e.name);case 318:return up(e.left)+up(e.right);case 295:return up(e.namespace)+":"+up(e.name);default:return R.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 Yc(e,o,t.end-o,r,...i)}function Kf(e,t,r,...i){let o=fT(e,t);return Yc(e,o.start,o.length,r,...i)}function Pg(e,t,r,i){let o=fT(e,t);return DF(e,o.start,o.length,r,i)}function y2(e,t,r,i){let o=Na(e.text,t.pos);return DF(e,o,t.end-o,r,i)}function $re(e,t,r){R.assertGreaterThanOrEqual(t,0),R.assertGreaterThanOrEqual(r,0),R.assertLessThanOrEqual(t,e.length),R.assertLessThanOrEqual(t+r,e.length)}function DF(e,t,r,i,o){return $re(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 Qre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Zre(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function fh(e,t){let r=Dy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return dc(i,r.getTokenEnd())}function eie(e,t){let r=Dy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function K7e(e,t){let r=Na(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=ys(e,t.body.pos),{line:o}=ys(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 fh(e,s)}case 238:{let s=Na(e.text,t.expression.end);return fh(e,s)}case 357:{let s=Na(e.text,t.tagName.pos);return fh(e,s)}}if(r===void 0)return fh(e,t.pos);R.assert(!Ym(r));let i=Fl(r),o=i||UI(t)?r.pos:Na(e.text,r.pos);return i?(R.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(R.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.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 I0(e){return!!(eE(e)&4096)}function CF(e){return!!(eE(e)&8&&!dp(e,e.parent))}function v2(e){return(Cy(e)&7)===6}function b2(e){return(Cy(e)&7)===4}function Kx(e){return(Cy(e)&7)===2}function NF(e){return(Cy(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 cP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Ov(e){return ig(e)&&Jv(e.argument)&&Da(e.argument.literal)}function vm(e){return e.kind===244&&e.expression.kind===11}function E2(e){return!!(Fa(e)&2097152)}function PF(e){return E2(e)&&Ec(e)}function J7e(e){return Fe(e.name)&&!e.initializer}function MF(e){return E2(e)&&Pl(e)&&oo(e.declarationList.declarations,J7e)}function ij(e,t){return e.kind!==12?Uh(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?bo($b(t,e.pos),Uh(t,e.pos)):Uh(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 Xh(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 k0e(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),R.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 k0e(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 zo(t.typeArguments,e)}}}return!1}function k0e(e){return K4(e.parent)||a1(e.parent)||ef(e.parent)&&!f6(e)}function w0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function x0(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 Bo(i,r)}}}function tie(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(Xo(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Xh(i)||Bo(i,r)}}}function aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?rh(e.typeArguments):void 0}function nie(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 rie(e){return qx(e)||Nv(e)}function mN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function iie(e){return ir(e)?Ma(e.parent)&&ur(e.parent.parent)&&zl(e.parent.parent)===2||LF(e.parent):!1}function LF(e){return ir(e)?ur(e)&&zl(e)===1:!1}function oie(e){return(Oi(e)?Kx(e)&&Fe(e.name)&&mN(e):Vo(e)?NN(e)&&pc(e):_p(e)&&NN(e))||LF(e)}function aie(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 R0(e){return e&&e.kind===241&&Xo(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 sie(e){return e&&e.kind===1}function O0e(e){return e&&e.kind===0}function Xx(e,t,r,i){return gn(e?.properties,o=>{if(!mc(o))return;let s=fN(o.name);return t===s||i&&i===s?r(o):void 0})}function lie(e,t,r){return Xx(e,t,i=>fu(i.initializer)?Vr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function _N(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ii(t,Ma)}}function wF(e,t,r){return S2(e,t,i=>fu(i.initializer)?Vr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function S2(e,t,r){return Xx(_N(e),t,r)}function Wp(e){return Fn(e.parent,Xo)}function cie(e){return Fn(e.parent,Fs)}function id(e){return Fn(e.parent,di)}function die(e){return Fn(e.parent,t=>di(t)||Xo(t)?"quit":Al(t))}function OF(e){return Fn(e.parent,Wx)}function WF(e){let t=Fn(e.parent,r=>di(r)?"quit":vd(r));return t&&di(t.parent)?id(t.parent):id(t??e)}function wu(e,t,r){for(R.assert(e.kind!==312);;){if(e=e.parent,!e)return R.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Xc(e.parent.parent)?e=e.parent.parent:Xc(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 uie(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=wu(e,!0,!1);return Yi(t)}function pie(e){let t=wu(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function T2(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&&Xc(e.parent.parent)?e=e.parent.parent:Xc(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 W0e(e){return e.kind===108||Ou(e)}function Ou(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function A2(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function zF(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function fie(e){return!!e&&(Zu(e)||mc(e))&&ur(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function I2(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&&au(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):di(r)&&!O0(t)&&!Gj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Sc(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&L0(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 x2(e,t,r,i){return Yx(e,t,r,i)||hN(e,t,r)}function hN(e,t,r){switch(t.kind){case 263:return gt(t.members,i=>x2(e,i,t,r));case 231:return!e&>(t.members,i=>x2(e,i,t,r));case 174:case 178:case 176:return gt(t.parameters,i=>Yx(e,i,t,r));default:return!1}}function My(e,t){if(Yx(e,t))return!0;let r=eg(t);return!!r&&hN(e,r,t)}function lj(e,t,r){let i;if(Nv(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(!k0(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 Yh(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!ef(e.parent)&&!a1(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||SI(e.parent)||hP(e.parent)||yE(e.parent)||$x(e);case 318:for(;yE(e.parent);)e=e.parent;return e.parent.kind===186||SI(e.parent)||hP(e.parent)||yE(e.parent)||$x(e);case 81:return ur(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||SI(e.parent)||hP(e.parent)||yE(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&&!Xh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Yh(t)}}function jF(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function mie(e){return vh(e)&&!!e.parent.moduleSpecifier}function sE(e){return e.kind===271&&e.moduleReference.kind===283}function gN(e){return R.assert(sE(e)),e.moduleReference.expression}function dj(e){return D0(e)&&hR(e.initializer).arguments[0]}function Qx(e){return e.kind===271&&e.moduleReference.kind!==283}function cu(e){return ir(e)}function F0e(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 R2(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 Su(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 z0e(e,!1)}function D0(e){return z0e(e,!0)}function _ie(e){return qa(e)&&D0(e.parent.parent)}function z0e(e,t){return Oi(e)&&!!e.initializer&&Su(t?hR(e.initializer):e.initializer,!0)}function pj(e){return Pl(e)&&e.declarationList.declarations.length>0&&oo(e.declarationList.declarations,t=>KF(t))}function D2(e){return e===39||e===34}function JF(e,t){return T0(t,e).charCodeAt(0)===34}function yN(e){return ur(e)||Ms(e)||Fe(e)||ra(e)}function C2(e){return ir(e)&&e.initializer&&ur(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 N2(e){let t=C2(e);return t&&lE(t,zv(e.name))}function q7e(e,t){return gn(e.properties,r=>mc(r)&&Fe(r.name)&&r.name.escapedText==="value"&&r.initializer&&lE(r.initializer,t))}function AI(e){if(e&&e.parent&&ur(e.parent)&&e.parent.operatorToken.kind===64){let t=zv(e.parent.left);return lE(e.parent.right,t)||X7e(e.parent.left,e.parent.right,t)}if(e&&ra(e)&&gT(e)){let t=q7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function lE(e,t){if(ra(e)){let r=ms(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 X7e(e,t,r){let i=ur(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&lE(t.right,r);if(i&&Zx(e,t.left))return i}function hie(e){let t=Oi(e.parent)?e.parent.name:ur(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&lE(e.right,zv(t))&&Bl(t)&&Zx(t,e.left)}function fj(e){if(ur(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&ur(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Fe(t.left))return t.left}else if(Oi(e.parent))return e.parent.name}function Zx(e,t){return T_(e)&&T_(t)?Xf(e)===Xf(t):Kh(e)&&qF(t)&&(t.expression.kind===110||Fe(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?Zx(e,L2(t)):qF(e)&&qF(t)?Mg(e)===Mg(t)&&Zx(e.expression,t.expression):!1}function P2(e){for(;Pc(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 $h(e){return(wr(e)||M2(e))&&mj(e.expression)&&Mg(e)==="exports"}function zl(e){let t=Y7e(e);return t===5||ir(e)?t:0}function gT(e){return Nn(e.arguments)===3&&wr(e.expression)&&Fe(e.expression.expression)&&yr(e.expression.expression)==="Object"&&yr(e.expression.name)==="defineProperty"&&Qp(e.arguments[1])&&yT(e.arguments[0],!0)}function qF(e){return wr(e)||M2(e)}function M2(e){return Xs(e)&&Qp(e.argumentExpression)}function C0(e,t){return wr(e)&&(!t&&e.expression.kind===110||Fe(e.name)&&yT(e.expression,!0))||XF(e,t)}function XF(e,t){return M2(e)&&(!t&&e.expression.kind===110||Bl(e.expression)||C0(e.expression,!0))}function yT(e,t){return Bl(e)||C0(e,t)}function L2(e){return wr(e)?e.name:e.argumentExpression}function Y7e(e){if(ra(e)){if(!gT(e))return 0;let t=e.arguments[0];return hT(t)||$h(t)?8:C0(t)&&Mg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ms(e.left)||$7e(P2(e))?0:yT(e.left.expression,!0)&&Mg(e.left)==="prototype"&&Ma(_j(e))?6:k2(e.left)}function $7e(e){return e1(e)&&mp(e.expression)&&e.expression.text==="0"}function YF(e){if(wr(e))return e.name;let t=ms(e.argumentExpression);return mp(t)||as(t)?t:e}function Mg(e){let t=YF(e);if(t){if(Fe(t))return t.escapedText;if(as(t)||mp(t))return fl(t.text)}}function k2(e){if(e.expression.kind===110)return 4;if($h(e))return 2;if(yT(e.expression,!0)){if(zv(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"&&Mg(t)==="exports")&&C0(e))return 1;if(yT(e,!0)||Xs(e)&&n6(e))return 5}return 0}function _j(e){for(;ur(e.right);)e=e.right;return e.right}function w2(e){return ur(e)&&zl(e)===3}function gie(e){return ir(e)&&e.parent&&e.parent.kind===244&&(!Xs(e)||M2(e))&&!!nE(e.parent)}function O2(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!ir(t)&&!(r.flags&33554432))&&yN(r)&&!yN(t)||r.kind!==t.kind&&Hre(r))&&(e.valueDeclaration=t)}function yie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&Xo(t.initializer)}function eR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Fn(e.initializer,i=>Su(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ii(e.moduleSpecifier,as);case 271:return ii((r=ii(e.moduleReference,bh))==null?void 0:r.expression,as);case 273:case 280:return ii(e.parent.moduleSpecifier,as);case 274:case 281:return ii(e.parent.parent.moduleSpecifier,as);case 276:return ii(e.parent.parent.parent.moduleSpecifier,as);case 205:return Ov(e)?e.argument.literal:void 0;default:R.assertNever(e)}}function vN(e){return W2(e)||R.failBadSyntaxKind(e.parent)}function W2(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Op(e.parent)||Su(e.parent,!1)?e.parent:void 0;case 201:return R.assert(Da(e)),ii(e.parent.parent,ig);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 Ov(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 R.assertNever(e)}}function nR(e){switch(e.kind){case 272:return e.importClause&&ii(e.importClause.namedBindings,Yv);case 271:return e;case 278:return e.exportClause&&ii(e.exportClause,vh);default:return R.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=Yv(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)?Jc(e.parameters):void 0,r=ii(t&&t.name,Fe);return!!r&&r.escapedText==="new"}function qf(e){return e.kind===353||e.kind===345||e.kind===347}function F2(e){return qf(e)||Tm(e)}function Q7e(e){return Qc(e)&&ur(e.expression)&&e.expression.operatorToken.kind===64?P2(e.expression):void 0}function B0e(e){return Qc(e)&&ur(e.expression)&&zl(e.expression)!==0&&ur(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 Pl(e)?Jc(e.declarationList.declarations):void 0}function G0e(e){return ql(e)&&e.body&&e.body.kind===267?e.body:void 0}function z2(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 B2(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)&&Lv(e)&&kp(e.initializer)&&(r=Hr(r,V0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(kp(i)&&(r=Hr(r,V0e(e,i.jsDoc))),i.kind===169){r=Hr(r,(t?Qne:kx)(i));break}if(i.kind===168){r=Hr(r,(t?ere:Zne)(i));break}i=yj(i)}return r||Xe}function V0e(e,t){let r=Ka(t);return va(t,i=>{if(i===r){let o=jr(i.tags,s=>Z7e(e,s));return i.tags===o?[i]:o}else return jr(i.tags,wR)})}function Z7e(e,t){return!(gP(t)||J4(t))||!t.parent||!Ym(t.parent)||!Fu(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||G0e(t)||Pc(e))return t;if(t.parent&&(RI(t.parent)===e||Pc(t)))return t.parent;if(t.parent&&t.parent.parent&&(RI(t.parent.parent)||hj(t.parent.parent)===e||B0e(t.parent.parent)))return t.parent.parent}function G2(e){if(e.symbol)return e.symbol;if(!Fe(e.name))return;let t=e.name.escapedText,r=cE(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(Ym(e.parent)&&e.parent.tags){let t=Vr(e.parent.tags,qf);if(t)return t}return cE(e)}function vj(e){return rF(e,wR)}function cE(e){let t=dE(e);if(t)return _p(t)&&t.type&&Xo(t.type)?t.type:Xo(t)?t:void 0}function dE(e){let t=vT(e);if(t)return B0e(t)||Q7e(t)||hj(t)||RI(t)||G0e(t)||t}function vT(e){let t=iR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Qs(r.jsDoc))return r}function iR(e){return Fn(e.parent,Ym)}function vie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Vr(r,i=>i.name.escapedText===t)}function j0e(e){return!!e.typeArguments}function bie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return wy(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=bie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||PN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Qh(e){return!!bie(e)}function eBe(e){let t=ms(e.right);return t.kind===226&&AH(t.operatorToken.kind)}function bj(e){let t=bie(e);return!!t&&Pc(t,!0)&&eBe(t)}function Eie(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 Sie(e){return Ls(e)||zs(e)||bI(e)||Ec(e)||Nl(e)}function U0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function V2(e){return U0e(e,196)}function Ly(e){return U0e(e,217)}function Tie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function j2(e){for(;NT(e);)e=e.type;return e}function ms(e,t){return Yl(e,t?17:1)}function Ej(e){return e.kind!==211&&e.kind!==212?!1:(e=Ly(e.parent),e&&e.kind===220)}function N0(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Lg(e){return!Yi(e)&&!Yo(e)&&Hd(e.parent)&&e.parent.name===e}function bN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Xa(t))return t.parent;case 80:if(Hd(t))return t.name===e?t:void 0;if(Au(t)){let r=t.parent;return $m(r)&&r.name===t?r:void 0}else{let r=t.parent;return ur(r)&&zl(r)!==0&&(r.left.symbol||r.symbol)&&No(r)===e?r:void 0}case 81:return Hd(t)&&t.name===e?t:void 0;default:return}}function U2(e){return Qp(e)&&e.parent.kind===167&&Hd(e.parent.parent)}function Aie(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 H0e(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)&&(ur(e)&&zl(e)===2&&oR(e)||wr(e)&&ur(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&H2(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 H2(e){return Bl(e)||$c(e)}function oR(e){let t=Tj(e);return H2(t)}function Tj(e){return Ml(e)?e.expression:e.right}function Iie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function S_(e){let t=P0(e);if(t&&ir(e)){let r=nre(e);if(r)return r.class}return t}function P0(e){let t=K2(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function aR(e){if(ir(e))return rre(e).map(t=>t.class);{let t=K2(e.heritageClauses,119);return t?.types}}function EN(e){return mu(e)?SN(e)||Xe:di(e)&&bo(pI(S_(e)),aR(e))||Xe}function SN(e){let t=K2(e.heritageClauses,96);return t?t.types:void 0}function K2(e,t){if(e){for(let r of e)if(r.token===t)return r}}function uE(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 K0e(e){return 119<=e&&e<=127}function CI(e){let t=y0(e);return t!==void 0&&Ij(t)}function J0e(e){let t=y0(e);return t!==void 0&&Wu(t)}function xj(e){let t=tE(e);return!!t&&!e6(t)}function sR(e){return 2<=e&&e<=7}function Bc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Qr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function TN(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Qr(e,1024)}return!1}function Qp(e){return as(e)||mp(e)}function t6(e){return Xv(e)&&(e.operator===40||e.operator===41)&&mp(e.operand)}function Wv(e){let t=No(e);return!!t&&n6(t)}function n6(e){if(!(e.kind===167||e.kind===212))return!1;let t=Xs(e)?ms(e.argumentExpression):e.expression;return!Qp(t)&&!t6(t)}function bT(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return fl(e.text);case 167:let t=e.expression;return Qp(t)?fl(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 R.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 Kh(e)?yr(e):Xm(e)?ZN(e):e.text}function AN(e){return Kh(e)?e.escapedText:Xm(e)?FI(e):fl(e.text)}function q0e(e){return`__@${ba(e)}@${e.escapedName}`}function J2(e,t){return`__#${ba(e)}@${t}`}function q2(e){return ao(e.escapedName,"__@")}function xie(e){return ao(e.escapedName,"__#")}function X0e(e){return e.kind===80&&e.escapedText==="Symbol"}function Rie(e){return Fe(e)?yr(e)==="__proto__":Da(e)&&e.text==="__proto__"}function IN(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!Rie(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 IN(e.initializer,t);case 304:return IN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return IN(e.initializer,t);case 226:return IN(e.right,t);case 277:return IN(e.expression,t)}}function Dj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function M0(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 qs(e){return Jm(e.pos)||Jm(e.end)}function Y0e(e){return Ro(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 xN(e){let t=Mj(e),r=e.kind===214&&e.arguments!==void 0;return X2(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 X2(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 Y2(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 Y2(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=Sy(h,p,Zs,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),bv(t,p.file.fileName,Vd))):(i&&(i=!1,e=e.slice()),h=e),bv(h,p,T6)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=OC(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Lj(e){return e.replace(SSe,"\\${")}function Die(e){return!!((e.templateFlags||0)&2048)}function kj(e){return e&&!!(HI(e)?Die(e):Die(e.head)||gt(e.templateSpans,t=>Die(t.literal)))}function $0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function tBe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return xSe.get(e)||$0e(e.charCodeAt(0))}function Zh(e,t){let r=t===96?ISe:t===39?ASe:TSe;return e.replace(r,tBe)}function $2(e,t){return e=Zh(e,t),Foe.test(e)?e.replace(Foe,r=>$0e(r.charCodeAt(0))):e}function nBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rBe(e){return e.charCodeAt(0)===0?"�":CSe.get(e)||nBe(e.charCodeAt(0))}function wj(e,t){let r=t===39?DSe:RSe;return e.replace(r,rBe)}function Yf(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&iBe(e.charCodeAt(0))?e.substring(1,t-1):e}function iBe(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=eP[1];for(let r=eP.length;r<=e;r++)eP.push(eP[r-1]+t);return eP[e]}function uR(){return eP[1].length}function Q2(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+Ka(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&&Dg(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 ky(e){return Cd(pR(e))}function i6(e,t,r){return t.moduleName||Wj(e,t.fileName,r&&r.fileName)}function Q0e(e,t){return e.getCanonicalFileName(_o(t,e.getCurrentDirectory()))}function Cie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=tR(r);if(!(o&&as(o)&&!Lp(o.text)&&!Q0e(e,i.path).includes(Q0e(e,Fc(e.getCommonSourceDirectory())))))return i6(e,i)}function Wj(e,t,r){let i=p=>e.getCanonicalFileName(p),o=nl(r?ai(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=_o(t,e.getCurrentDirectory()),l=_I(o,s,o,i,!1),d=Tu(l);return r?g0(d):d}function Nie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Tu(l6(e,t,i.outDir)):o=Tu(e),o+r}function Pie(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 Tu(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 Mie(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 Ds(e){return e.outFile||e.out}function s6(e,t){var r;if(e.paths)return e.baseUrl??R.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(Ds(i)){let o=Md(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&&cu(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(Ds(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=_o(VP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=c6(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(xg(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=_o(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Yr(t,s)}function RN(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 Z0e(e,t,r){if(e.length>lh(e)&&!r(e)){let i=ai(e);Z0e(i,t,r),t(e)}}function zj(e,t,r,i,o,s){try{i(e,t,r)}catch{Z0e(ai(ma(e)),o,s),i(e,t,r)}}function DN(e,t){let r=Rg(e);return XC(r,t)}function ST(e,t){return XC(e,t)}function eg(e){return Vr(e.members,t=>Nl(t)&&Hf(t.body))}function CN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&k0(e.parameters[0]);return e.parameters[t?1:0]}}function Lie(e){let t=CN(e);return t&&t.type}function L0(e){if(e.parameters.length&&!vE(e)){let t=e.parameters[0];if(k0(t))return t}}function k0(e){return w0(e.name)}function w0(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(!w0(e))return!1;for(;Au(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 Wv(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:R.fail("Accessor has wrong kind")):gn(e,l=>{if(Nv(l)&&na(l)===na(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 gd(e){if(!ir(e)&&Ec(e))return;let t=e.type;return t||!ir(e)?t:iN(e)?e.typeExpression&&e.typeExpression.type:rE(e)}function kie(e){return e.type}function $f(e){return vE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(ir(e)?$L(e):void 0)}function d6(e){return va(iE(e),t=>oBe(t)?t.typeParameters:void 0)}function oBe(e){return nm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(qf)||e.parent.tags.some(wR)))}function wie(e){let t=CN(e);return t&&gd(t)}function Oie(e,t,r,i){Wie(e,t,r.pos,i)}function Wie(e,t,r,i){i&&i.length&&r!==i[0].pos&&ST(e,r)!==ST(e,i[0].pos)&&t.writeLine()}function Fie(e,t,r,i){r!==i&&ST(e,r)!==ST(e,i)&&t.writeLine()}function zie(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 Bie(e,t,r,i,o,s,l){let d,p;if(l?o.pos===0&&(d=jr(Uh(e,o.pos),h)):d=Uh(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,Ka(m).end);ST(t,Na(e,o.pos))>=E+2&&(Oie(t,r,o,d),zie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ka(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("")}aBe(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function aBe(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 eSe(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|=tSe(e)|268435456),nSe(e.modifierFlagsCache)):sBe(e.modifierFlagsCache))}function du(e){return jie(e,!0)}function Uie(e){return jie(e,!0,!0)}function Fv(e){return jie(e,!1)}function tSe(e){let t=0;return e.parent&&!To(e)&&(ir(e)&&(ire(e)&&(t|=8388608),ore(e)&&(t|=16777216),are(e)&&(t|=33554432),sre(e)&&(t|=67108864),lre(e)&&(t|=134217728)),cre(e)&&(t|=65536)),t}function sBe(e){return e&65535}function nSe(e){return e&131071|(e&260046848)>>>23}function lBe(e){return nSe(tSe(e))}function Hie(e){return Vj(e)|lBe(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 rSe(e){return e===57||e===56}function Kie(e){return rSe(e)||e===54}function PN(e){return e===76||e===77||e===78}function jj(e){return ur(e)&&PN(e.operatorToken.kind)}function Z2(e){return rSe(e)||e===61}function ek(e){return ur(e)&&Z2(e.operatorToken.kind)}function wy(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(Gy(e)){if(ef(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(a1(e.parent)){let t=dE(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Pc(e,t){return ur(e)&&(t?e.operatorToken.kind===64:wy(e.operatorToken.kind))&&Yu(e.left)}function iSe(e){return Pc(e.parent)&&e.parent.left===e}function Oy(e){if(Pc(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||tk(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 MN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&MN(e.expression)||e.kind===217&&MN(e.expression)}function tk(e){return wr(e)&&Fe(e.name)&&Bl(e.expression)}function nk(e){if(wr(e)){let t=nk(e.expression);if(t!==void 0)return t+"."+up(e.name)}else if(Xs(e)){let t=nk(e.expression);if(t!==void 0&&rc(e.argumentExpression))return t+"."+bT(e.argumentExpression)}else{if(Fe(e))return Vi(e.escapedText);if(Xm(e))return ZN(e)}}function zv(e){return C0(e)&&Mg(e)==="prototype"}function LN(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&&(wr(e.parent)&&e.parent.name===e||Xs(e.parent)&&e.parent.argumentExpression===e)}function Jie(e){return Au(e.parent)&&e.parent.right===e||wr(e.parent)&&e.parent.name===e||yE(e.parent)&&e.parent.right===e}function m6(e){return ur(e)&&e.operatorToken.kind===104}function qie(e){return m6(e.parent)&&e===e.parent.right}function Jj(e){return e.kind===210&&e.properties.length===0}function Xie(e){return e.kind===209&&e.elements.length===0}function mR(e){if(!(!cBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function cBe(e){return e&&Nn(e.declarations)>0&&Qr(e.declarations[0],2048)}function _6(e){return Vr(kSe,t=>Sl(e,t))}function dBe(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)):R.assert(!1,"Unexpected code point")}return t}function Yie(e){let t="",r=dBe(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 uBe(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 uBe(i)}function qj(e,t){let r=Co(t)?t:t.readFile(e);if(!r)return;let i=WH(e,r);return i.error?void 0:i.config}function kN(e,t){return qj(e,t)||{}}function h6(e){try{return JSON.parse(e)}catch{return}}function Hm(e,t){return!t.directoryExists||t.directoryExists(e)}function Wy(e){switch(e.newLine){case 0:return NSe;case 1:case void 0:return PSe}}function Ef(e,t=e){return R.assert(t>=e||t===-1),{pos:e,end:t}}function g6(e,t){return Ef(e.pos,t)}function pE(e,t){return Ef(t,e.end)}function kg(e){let t=Am(e)?sI(e.modifiers,vd):void 0;return t&&!Jm(t.end)?pE(e,t.end):e}function R_(e){if(Vo(e)||Ul(e))return pE(e,e.name.pos);let t=Am(e)?Qs(e.modifiers):void 0;return t&&!Jm(t.end)?pE(e,t.end):kg(e)}function oSe(e){return e.pos===e.end}function Xj(e,t){return Ef(e,e+da(t).length)}function IT(e,t){return eoe(e,e,t)}function y6(e,t,r){return Sf(wN(e,r,!1),wN(t,r,!1),r)}function Zie(e,t,r){return Sf(e.end,t.end,r)}function eoe(e,t,r){return Sf(wN(e,r,!1),t.end,r)}function rk(e,t,r){return Sf(e.end,wN(t,r,!1),r)}function Yj(e,t,r,i){let o=wN(t,r,i);return YC(r,e.end,o)}function aSe(e,t,r){return YC(r,e.end,t.end)}function toe(e,t){return!Sf(e.pos,e.end,t)}function Sf(e,t,r){return YC(r,e,t)===0}function wN(e,t,r){return Jm(e.pos)?-1:Na(t.text,e.pos,!1,r)}function noe(e,t,r,i){let o=Na(r.text,e,!1,i),s=pBe(o,t,r);return YC(r,s??t,o)}function roe(e,t,r,i){let o=Na(r.text,e,!1,i);return YC(r,e,Math.min(t,o))}function pBe(e,t=0,r){for(;e-- >t;)if(!Dg(r.text.charCodeAt(e)))return e}function $j(e){let t=Ro(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function ON(e){return jr(e.declarations,ik)}function ik(e){return Oi(e)&&e.initializer!==void 0}function sSe(e){return e.watch&&As(e,"watch")}function Km(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,Zp)||e.valueDeclaration,i=eE(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 yd(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 WN(e)===1}function LI(e){return WN(e)!==0}function WN(e){let{parent:t}=e;switch(t?.kind){case 217:return WN(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&&wy(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:WN(t);case 303:{let s=WN(t.parent);return e===t.name?fBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:WN(t.parent);case 209:return WN(t);default:return 0}}function fBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return R.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 tg(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 FN(e,t,r){tg(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function ioe(e){if(e.flags&32){let t=wg(e);return!!t&&Qr(t,64)}return!1}function wg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function kr(e){return e.flags&3899393?e.objectFlags:0}function lSe(e,t){return!!hm(e,r=>t(r)?!0:void 0)}function b6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&zk(e.declarations[0])}function ooe({moduleSpecifier:e}){return Da(e)?e.text:uc(e)}function Zj(e){let t;return Bo(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 di(e)||mu(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 Ms(e){return e.kind===211||e.kind===212}function tU(e){return e.kind===211?e.name:(R.assert(e.kind===212),e.argumentExpression)}function aoe(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(;Ms(e);)e=e.expression;return e}function soe(e,t){if(Ms(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(Ms(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 mBe(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 _Be(e,t){this.flags=t,(R.isDebugging||rr)&&(this.checker=e)}function hBe(e,t){this.flags=t,R.isDebugging&&(this.checker=e)}function loe(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 gBe(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 yBe(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 vBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function coe(e){zoe.push(e),e(od)}function doe(e){Object.assign(od,e),gn(zoe,t=>t(od))}function ng(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+R.checkDefined(t[+i]))}function uoe(e){q6=e}function poe(e){!q6&&e&&(q6=e())}function ko(e){return q6&&q6[e.key]||e.message}function yR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),$re(t,r,i);let l=ko(o);return gt(s)&&(l=ng(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function bBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function cSe(e,t){let r=t.fileName||"",i=t.text.length;R.assertEqual(e.fileName,r),R.assertLessThanOrEqual(e.start,i),R.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)bBe(s)&&s.fileName===r?(R.assertLessThanOrEqual(s.start,i),R.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(cSe(s,t))):o.relatedInformation.push(s)}return o}function wI(e,t){let r=[];for(let i of e)r.push(cSe(i,t));return r}function Yc(e,t,r,i,...o){$re(e.text,t,r);let s=ko(i);return gt(o)&&(s=ng(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=ko(e);return gt(t)&&(r=ng(r,t)),r}function jl(e,...t){let r=ko(e);return gt(t)&&(r=ng(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 Fo(e,t,...r){let i=ko(t);return gt(r)&&(i=ng(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function foe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function dSe(e){return e.file?e.file.path:void 0}function zN(e,t){return T6(e,t)||EBe(e,t)||0}function T6(e,t){return Vd(dSe(e),dSe(t))||el(e.start,t.start)||el(e.length,t.length)||el(e.code,t.code)||uSe(e.messageText,t.messageText)||0}function EBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?el(e.relatedInformation.length,t.relatedInformation.length)||gn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return zN(r,o)})||0:e.relatedInformation?-1:1}function uSe(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 ok(e){return e===4||e===2||e===1||e===6?1:0}function pSe(e){if(e.transformFlags&2)return lu(e)||q0(e)?e:Bo(e,pSe)}function SBe(e){return e.isDeclarationFile?void 0:pSe(e)}function TBe(e){return(e.impliedNodeFormat===99||bc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function ak(e){switch(xU(e)){case 3:return o=>{o.externalModuleIndicator=Yk(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Yk(o)};case 2:let t=[Yk];(e.jsx===4||e.jsx===5)&&t.push(SBe),t.push(TBe);let r=Um(...t);return o=>void(o.externalModuleIndicator=r(o))}}function obt(e){return e}function A6(e){return e>=5&&e<=99}function I6(e){switch(Md(e)){case 0:case 4:case 3:return!1}return!0}function rU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function moe(e){return e.allowUnreachableCode===!1}function _oe(e){return e.allowUnusedLabels===!1}function OI(e){return e>=3&&e<=99||e===100}function uu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function hoe(e){return e.useDefineForClassFields!==!1&&ns(e)>=9}function goe(e,t){return Gx(t,e,KH)}function yoe(e,t){return Gx(t,e,JH)}function voe(e,t){return Gx(t,e,qH)}function x6(e,t){return t.strictFlag?uu(e,t.name):t.allowJsFlag?jv(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=So(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=nl(d,e,t);qN(h)||(h=Fc(h),p!==!1&&!r?.has(h)&&(i||(i=Xp())).add(p.realPath,d),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(d,p,h){R.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(nl(m,e,t),h);let[y,E]=ABe(h,m,e,t)||Xe;y&&E&&d.setSymlinkedDirectory(E,{real:Fc(y),realPath:Fc(nl(y,e,t))})}}function ABe(e,t,r,i){let o=Wc(_o(e,r)),s=Wc(_o(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!fSe(o[o.length-2],i)&&!fSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Av(o),Av(s)]:void 0}function fSe(e,t){return e!==void 0&&(t(e)==="node_modules"||ao(e,"@"))}function IBe(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:IBe(i)}function mSe(e){return e.replace(RU,xBe)}function xBe(e){return"\\"+e}function BN(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 boe(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=OL(e,t),h=Ka(p);if(r!=="exclude"&&h==="**")return;p[0]=Yb(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+=rl),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 Eoe(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:BN(r,s,"files"),includeDirectoryPattern:BN(r,s,"directories"),excludePattern:BN(t,s,"exclude"),basePaths:RBe(e,r,i)}}function Bv(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=>Bv(w,o)),y=h.includeDirectoryPattern&&Bv(h.includeDirectoryPattern,o),E=h.excludePattern&&Bv(h.excludePattern,o),S=m?m.map(()=>[]):[[]],A=new Map,N=Cd(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 ee=Yr(w,z),me=Yr(j,z);if(!(t&&!bc(ee,t))&&!(E&&E.test(me)))if(!m)S[0].push(ee);else{let ge=Kl(m,q=>q.test(me));ge!==-1&&S[ge].push(ee)}}if(!(K!==void 0&&(K--,K===0)))for(let z of ZS(ce,Vd)){let ee=Yr(w,z),me=Yr(j,z);(!y||y.test(me))&&(!E||!E.test(me))&&D(ee,me,K)}}}function RBe(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(DBe(l))}o.sort(Ex(!r));for(let s of o)oo(i,l=>!mm(l,s,e,!r))&&i.push(s)}return i}function DBe(e){let t=Xte(e,MSe);return t<0?mI(e)?Yb(ai(e)):e:e.substring(0,e.lastIndexOf(rl,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 GN(e,t){let r=e&&jv(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&&CBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function sk(e,t){return!e||!_E(e)?t:t===$6?wSe:t===TR?LSe:[...t,[".json"]]}function CBe(e){return e===1||e===2}function W0(e){return gt(AR,t=>Sl(e,t))}function WI(e){return gt(PU,t=>Sl(e,t))}function Soe({imports:e},t=Um(W0,WI)){return Wl(e,({text:r})=>Lp(r)&&!bc(r,bk)?t(r):void 0)||!1}function Toe(e,t,r,i){let o=pu(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 Soe(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:cu(i)?NBe(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,bk))continue;if(WI(h.text))return 3;W0(h.text)&&(d=!0)}return d?2:0}}function NBe(e){let t=0,r;for(let i of e.statements){if(t>3)break;pj(i)?r=bo(r,i.declarationList.declarations.map(o=>o.initializer)):Qc(i)&&Su(i.expression,!0)?r=Tn(r,i.expression):t++}return r||Xe}function Aoe(e,t,r){if(!e)return!1;let i=GN(t,r);for(let o of pm(sk(t,i)))if(Sl(e,o))return!0;return!1}function _Se(e){let t=e.match(/\//g);return t?t.length:0}function lk(e,t){return el(_Se(e),_Se(t))}function Tu(e){for(let t of kU){let r=Ioe(e,t);if(r!==void 0)return r}return e}function Ioe(e,t){return Sl(e,t)?ck(e,t):void 0}function ck(e,t){return e.substring(0,e.length-t.length)}function fE(e,t){return WL(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(jh(e),t=>vR(t))}function Jm(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 VN(e){return O6(e)||e===".json"}function jN(e){let t=Og(e);return t!==void 0?t:R.fail(`File ${e} has unknown extension.`)}function hSe(e){return Og(e)!==void 0}function Og(e){return Vr(kU,t=>Sl(e,t))}function dk(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;Co(i)||r.push(i)}return KG(r,i=>i,t)}function dU(e,t){let r=e.indexOf(t);return R.assert(r!==-1),e.slice(r)}function Pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),R.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function xoe(e,t){R.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:aE(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 UN(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&&rne(e,t,W6)}function HN(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 F0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Roe(e){if(F6(e,!1))return fU(e)}function fU(e){let t=e.startsWith("-"),r=HN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function F6(e,t){if(e==="")return!1;let r=Dy(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===F0({negative:s,base10Value:HN(r.getTokenValue())}))}function mE(e){return!!(e.flags&33554432)||jF(e)||LBe(e)||MBe(e)||!(Yh(e)||PBe(e))}function PBe(e){return Fe(e)&&Zu(e.parent)&&e.parent.name===e}function MBe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Qr(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function LBe(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 Doe(e){return If(e)&&Fe(e.typeName)}function Coe(e,t=Iy){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function Moe(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 d2(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 Xc(e)?t.members:void 0;case 266:return $0(e)?t.members:void 0;case 312:return t.statements}}function z6(e){if(!e.typeParameters){if(gt(e.parameters,t=>!gd(t)))return!0;if(e.kind!==219){let t=Jc(e.parameters);if(!(t&&k0(t)))return!0}}return!1}function XN(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Loe(e){return e.kind===260&&e.parent.kind===299}function z0(e){return e.kind===218||e.kind===219}function B0(e){return e.replace(/\$/gm,()=>"\\$")}function rg(e){return(+e).toString()===e}function B6(e,t,r,i,o){let s=o&&e==="new";return!s&&$p(e,t)?L.createIdentifier(e):!i&&!s&&rg(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function YN(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(Sh,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(Sh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function gSe(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 uk(e){return gE(e)||Pl(e)||Ec(e)||Sc(e)||mu(e)||SR(e)||ql(e)&&!A0(e)&&!E_(e)}function pk(e){if(!iN(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&&Hh(e.charCodeAt(1),t):Hh(r,t)}function koe(e){var t;return((t=jU(e))==null?void 0:t.kind)===0}function fk(e){return ir(e)&&(e.type&&e.type.kind===323||kx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function $N(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||fk(e);case 355:case 348:return pk(e);default:return!1}}function woe(e){let t=e.kind;return(t===211||t===212)&&t1(e.expression)}function hU(e){return ir(e)&&Fu(e)&&kp(e)&&!!EV(e)}function gU(e){return R.checkDefined(V6(e))}function V6(e){let t=EV(e);return t&&t.typeExpression&&t.typeExpression.type}function QN(e){return Fe(e)?e.escapedText:FI(e)}function mk(e){return Fe(e)?yr(e):ZN(e)}function Ooe(e){let t=e.kind;return t===80||t===295}function FI(e){return`${e.namespace.escapedText}:${yr(e.name)}`}function ZN(e){return`${yr(e.namespace)}:${yr(e.name)}`}function yU(e){return Fe(e)?yr(e):ZN(e)}function Qf(e){return!!(e.flags&8576)}function Zf(e){return e.flags&8192?e.escapedName:e.flags&384?fl(""+e.value):R.fail()}function j6(e){return!!e&&(wr(e)||Xs(e)||ur(e))}function Woe(e){return e===void 0?!1:!!QR(e.attributes)}function zI(e,t){return OSe.call(e,"*",t)}function U6(e){return Fe(e.name)?e.name.escapedText:fl(e.name.text)}var H6,Vv,_k,K6,hk,J6,vU,bU,ySe,vSe,EU,bSe,ESe,SU,TU,AU,IU,SSe,TSe,ASe,ISe,xSe,Foe,RSe,DSe,CSe,eP,xT,NSe,PSe,od,zoe,q6,fc,ns,Md,pu,xU,em,_h,RT,X6,Y6,_E,Af,G0,tP,gk,jv,nP,RU,MSe,DU,CU,Boe,Goe,Voe,NU,TR,PU,LSe,kSe,MU,AR,$6,wSe,yk,vk,bk,LU,kU,Q6,OSe,wBe=bt({"src/compiler/utilities.ts"(){"use strict";Qo(),H6=[],Vv="tslib",_k=160,K6=1e6,hk=F7e(),J6=Eu(()=>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*/,ySe=/^(\/\/\/\s*/,vSe=/^(\/\/\/\s*/,EU=/^(\/\/\/\s*/,bSe=/^\/\/\/\s*/,ESe=/^(\/\/\/\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||{}),SSe=/\$\{/g,TSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ASe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ISe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,xSe=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"})),Foe=/[^\u0000-\u007F]/g,RSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,DSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,CSe=new Map(Object.entries({'"':""","'":"'"})),eP=[""," "],xT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",NSe=`\r -`,PSe=` -`,od={getNodeConstructor:()=>loe,getTokenConstructor:()=>gBe,getIdentifierConstructor:()=>yBe,getPrivateIdentifierConstructor:()=>loe,getSourceFileConstructor:()=>loe,getSymbolConstructor:()=>mBe,getTypeConstructor:()=>_Be,getSignatureConstructor:()=>hBe,getSourceMapSourceConstructor:()=>vBe},zoe=[],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=>uu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>uu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>uu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>uu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>uu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>uu(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>uu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>uu(e,"useUnknownInCatchVariables")}},ns=fc.target.computeValue,Md=fc.module.computeValue,pu=fc.moduleResolution.computeValue,xU=fc.moduleDetection.computeValue,em=fc.isolatedModules.computeValue,_h=fc.esModuleInterop.computeValue,RT=fc.allowSyntheticDefaultImports.computeValue,X6=fc.resolvePackageJsonExports.computeValue,Y6=fc.resolvePackageJsonImports.computeValue,_E=fc.resolveJsonModule.computeValue,Af=fc.declaration.computeValue,G0=fc.preserveConstEnums.computeValue,tP=fc.incremental.computeValue,gk=fc.declarationMap.computeValue,jv=fc.allowJs.computeValue,nP=fc.useDefineForClassFields.computeValue,RU=/[^\w\s/]/g,MSe=[42,63],DU=["node_modules","bower_components","jspm_packages"],CU=`(?!(${DU.join("|")})(/|$))`,Boe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Eoe(e,Boe.singleAsteriskRegexFragment)},Goe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Eoe(e,Goe.singleAsteriskRegexFragment)},Voe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Eoe(e,Voe.singleAsteriskRegexFragment)},NU={files:Boe,directories:Goe,exclude:Voe},TR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],PU=pm(TR),LSe=[...TR,[".json"]],kSe=[".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"]],wSe=[...$6,[".json"]],yk=[".d.ts",".d.cts",".d.mts"],vk=[".ts",".cts",".mts",".tsx"],bk=[".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},OSe=String.prototype.replace}});function joe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:d,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=od.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=od.getIdentifierConstructor()))(m,-1,-1)}function d(m){return new(i||(i=od.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=od.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=od.getNodeConstructor()))(m,-1,-1)}}var OBe=bt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Qo()}});function Uoe(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:ee,parenthesizeConstituentTypesOfUnionType:ge,parenthesizeConstituentTypeOfUnionType:me,parenthesizeConstituentTypesOfIntersectionType:J,parenthesizeConstituentTypeOfIntersectionType:q,parenthesizeOperandOfTypeOperator:re,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:ne,parenthesizeTypeOfOptionalType:Ce,parenthesizeTypeArguments:Ie,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=X2(226,De),tt=Pj(226,De),Ft=gm(Le);if(!Et&&Le.kind===219&&ze>3)return!0;let _t=xN(Ft);switch(el(_t,ze)){case-1:return!(!Et&&tt===1&&Le.kind===229);case 1:return!1;case 0:if(Et)return tt===1;if(ur(Ft)&&Ft.operatorToken.kind===De){if(l(De))return!1;if(De===40){let ft=be?d(be):0;if(oN(ft)&&ft===d(Ft))return!1}}return Nj(Ft)===0}}function l(De){return De===42||De===52||De===51||De===53||De===28}function d(De){if(De=gm(De),oN(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=oN(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 yP(De)?e.createParenthesizedExpression(De):De}function E(De){let Le=X2(227,58),Et=gm(De),be=xN(Et);return el(be,Le)!==1?e.createParenthesizedExpression(De):De}function S(De){let Le=gm(De);return yP(Le)?e.createParenthesizedExpression(De):De}function A(De){let Le=gm(De),Et=yP(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=Nc(De,Y);return at(e.createNodeArray(Le,De.hasTrailingComma),De)}function Y(De){let Le=gm(De),Et=xN(Le),be=X2(226,28);return Et>be?De:at(e.createParenthesizedExpression(De),De)}function B(De){let Le=gm(De);if(ra(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!Uo(De)&&(yP(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 ee(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(Nc(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(Nc(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(Nc(De,ne))}function ne(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return LR(De)?De.postfix:DR(De)||gh(De)||RR(De)||PT(De)?he(De.type):ZI(De)?he(De.falseType):Kv(De)||QI(De)?he(Ka(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 hre(De)&&De.typeParameters?e.createParenthesizedType(De):De}function ve(De,Le){return Le===0?Ge(De):De}function Ie(De){if(gt(De))return e.createNodeArray(Nc(De,ve))}}var wU,WBe=bt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Qo(),wU={getParenthesizeLeftSideOfBinaryForOperator:e=>Zs,getParenthesizeRightSideOfBinaryForOperator:e=>Zs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Zs,parenthesizeConditionOfConditionalExpression:Zs,parenthesizeBranchOfConditionalExpression:Zs,parenthesizeExpressionOfExportDefault:Zs,parenthesizeExpressionOfNew:e=>ta(e,Yu),parenthesizeLeftSideOfAccess:e=>ta(e,Yu),parenthesizeOperandOfPostfixUnary:e=>ta(e,Yu),parenthesizeOperandOfPrefixUnary:e=>ta(e,kV),parenthesizeExpressionsOfCommaDelimitedList:e=>ta(e,b0),parenthesizeExpressionForDisallowedComma:Zs,parenthesizeExpressionOfExpressionStatement:Zs,parenthesizeConciseBodyOfArrowFunction:Zs,parenthesizeCheckTypeOfConditionalType:Zs,parenthesizeExtendsTypeOfConditionalType:Zs,parenthesizeConstituentTypesOfUnionType:e=>ta(e,b0),parenthesizeConstituentTypeOfUnionType:Zs,parenthesizeConstituentTypesOfIntersectionType:e=>ta(e,b0),parenthesizeConstituentTypeOfIntersectionType:Zs,parenthesizeOperandOfTypeOperator:Zs,parenthesizeOperandOfReadonlyTypeOperator:Zs,parenthesizeNonArrayTypeOfPostfixType:Zs,parenthesizeElementTypesOfTupleType:e=>ta(e,b0),parenthesizeElementTypeOfTupleType:Zs,parenthesizeTypeOfOptionalType:Zs,parenthesizeTypeArguments:e=>e&&ta(e,b0),parenthesizeLeadingTypeArgument:Zs}}});function Hoe(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(Uo(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 R.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((y=v0(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),rP(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),rP(m)&&t4(E,!0),E}function o(m){if(qa(m)){if(m.dotDotDotToken)return R.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 ta(m,ht)}function s(m){if(qa(m)){if(m.dotDotDotToken)return R.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 R.assertNode(m.name,Fe),xr(at(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return ta(m,Ng)}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):ta(m,Ma)}function p(m){return j0(m)?xr(at(e.createArrayLiteralExpression(mn(m.elements,o)),m),m):ta(m,fu)}function h(m){return Yo(m)?l(m):ta(m,ht)}}var OU,FBe=bt({"src/compiler/factory/nodeConverters.ts"(){"use strict";Qo(),OU={convertToFunctionBlock:jo,convertToFunctionExpression:jo,convertToClassExpression:jo,convertToArrayAssignmentElement:jo,convertToObjectAssignmentElement:jo,convertToAssignmentPattern:jo,convertToObjectAssignmentPattern:jo,convertToArrayAssignmentPattern:jo,convertToAssignmentElementTarget:jo}}});function WSe(e){Joe.push(e)}function Ek(e,t){let r=e&8?Zs:xr,i=Eu(()=>e&1?wU:Uoe(w)),o=Eu(()=>e&2?OU:Hoe(w)),s=ah(v=>(C,F)=>Se(C,v,F)),l=ah(v=>C=>rt(v,C)),d=ah(v=>C=>Gt(C,v)),p=ah(v=>()=>VD(v)),h=ah(v=>C=>mA(v,C)),m=ah(v=>(C,F)=>bS(v,C,F)),y=ah(v=>(C,F)=>jD(v,C,F)),E=ah(v=>(C,F)=>Ys(v,C,F)),S=ah(v=>(C,F)=>UE(v,C,F)),A=ah(v=>(C,F,le)=>Lf(v,C,F,le)),N=ah(v=>(C,F,le)=>hb(v,C,F,le)),D=ah(v=>(C,F,le,Ke)=>gb(v,C,F,le,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:Ft,createTrue:_t,createFalse:Je,createModifier:ft,createModifiersFromModifierFlags:Zt,createQualifiedName:en,updateQualifiedName:Dn,createComputedPropertyName:Kn,updateComputedPropertyName:pn,createTypeParameterDeclaration:Yt,updateTypeParameterDeclaration:qt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:Li,updateDecorator:Eo,createPropertySignature:Qn,updatePropertySignature:Ur,createPropertyDeclaration:on,updatePropertyDeclaration:Ye,createMethodSignature:Wt,updateMethodSignature:In,createMethodDeclaration:li,updateMethodDeclaration:yi,createConstructorDeclaration:vn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:ct,updateGetAccessorDeclaration:lt,createSetAccessorDeclaration:se,updateSetAccessorDeclaration:ke,createCallSignature:G,updateCallSignature:et,createConstructSignature:Tt,updateConstructSignature:He,createIndexSignature:pt,updateIndexSignature:Bt,createClassStaticBlockDeclaration:Ao,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:ho,updateTupleTypeNode:Pi,createNamedTupleMember:Ri,updateNamedTupleMember:Kr,createOptionalTypeNode:Io,updateOptionalTypeNode:xn,createRestTypeNode:ws,updateRestTypeNode:$l,createUnionTypeNode:Bs,updateUnionTypeNode:_l,createIntersectionTypeNode:sd,updateIntersectionTypeNode:mo,createConditionalTypeNode:la,updateConditionalTypeNode:ld,createInferTypeNode:Ss,updateInferTypeNode:Ca,createImportTypeNode:ac,updateImportTypeNode:xl,createParenthesizedType:sl,updateParenthesizedType:Mo,createThisTypeNode:tn,createTypeOperatorNode:Gs,updateTypeOperatorNode:ed,createIndexedAccessTypeNode:cd,updateIndexedAccessTypeNode:Ep,createMappedTypeNode:Cs,updateMappedTypeNode:Ac,createLiteralTypeNode:de,updateLiteralTypeNode:$,createTemplateLiteralType:pl,updateTemplateLiteralType:Nf,createObjectBindingPattern:Pe,updateObjectBindingPattern:yt,createArrayBindingPattern:cn,updateArrayBindingPattern:vr,createBindingElement:fr,updateBindingElement:zr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Cr,createObjectLiteralExpression:Ko,updateObjectLiteralExpression:bl,createPropertyAccessExpression:e&4?(v,C)=>cr(Vs(v,C),262144):Vs,updatePropertyAccessExpression:hc,createPropertyAccessChain:e&4?(v,C,F)=>cr(bs(v,C,F),262144):bs,updatePropertyAccessChain:Uc,createElementAccessExpression:wc,updateElementAccessExpression:im,createElementAccessChain:_u,updateElementAccessChain:Re,createCallExpression:Un,updateCallExpression:go,createCallChain:Jo,updateCallChain:$o,createNewExpression:Ql,updateNewExpression:gc,createTaggedTemplateExpression:ll,updateTaggedTemplateExpression:hl,createTypeAssertion:Gl,updateTypeAssertion:Zl,createParenthesizedExpression:Hc,updateParenthesizedExpression:cf,createFunctionExpression:Bu,updateFunctionExpression:Du,createArrowFunction:Pf,updateArrowFunction:z_,createDeleteExpression:Ih,updateDeleteExpression:Ug,createTypeOfExpression:Wd,updateTypeOfExpression:Hg,createVoidExpression:Sp,updateVoidExpression:cg,createAwaitExpression:Gu,updateAwaitExpression:Z,createPrefixUnaryExpression:rt,updatePrefixUnaryExpression:Ot,createPostfixUnaryExpression:Gt,updatePostfixUnaryExpression:O,createBinaryExpression:Se,updateBinaryExpression:jt,createConditionalExpression:Zn,updateConditionalExpression:oi,createTemplateExpression:Xr,updateTemplateExpression:no,createTemplateHead:Tp,createTemplateMiddle:Vu,createTemplateTail:ab,createNoSubstitutionTemplateLiteral:ls,createTemplateLiteralLikeNode:Ic,createYieldExpression:Dm,updateYieldExpression:Cm,createSpreadElement:Ui,updateSpreadElement:Kg,createClassExpression:Zy,updateClassExpression:Nm,createOmittedExpression:fS,createExpressionWithTypeArguments:mS,updateExpressionWithTypeArguments:df,createAsExpression:B_,updateAsExpression:uf,createNonNullExpression:Jg,updateNonNullExpression:we,createSatisfiesExpression:qe,updateSatisfiesExpression:Pt,createNonNullChain:Vt,updateNonNullChain:_n,createMetaProperty:Jn,updateMetaProperty:fn,createTemplateSpan:qn,updateTemplateSpan:mi,createSemicolonClassElement:or,createBlock:ri,updateBlock:dr,createVariableStatement:qo,updateVariableStatement:Ua,createEmptyStatement:$d,createExpressionStatement:ud,updateExpressionStatement:qg,createIfStatement:kE,updateIfStatement:w1,createDoStatement:wE,updateDoStatement:kD,createWhileStatement:wD,updateWhileStatement:OD,createForStatement:oA,updateForStatement:_S,createForInStatement:O1,updateForInStatement:WD,createForOfStatement:W1,updateForOfStatement:F1,createContinueStatement:z1,updateContinueStatement:B1,createBreakStatement:aA,updateBreakStatement:G1,createReturnStatement:hS,updateReturnStatement:gS,createWithStatement:sb,updateWithStatement:lb,createSwitchStatement:dg,updateSwitchStatement:OE,createLabeledStatement:$a,updateLabeledStatement:sA,createThrowStatement:FD,updateThrowStatement:WE,createTryStatement:Xg,updateTryStatement:xh,createDebuggerStatement:Mf,createVariableDeclaration:ju,updateVariableDeclaration:Ap,createVariableDeclarationList:np,updateVariableDeclarationList:ev,createFunctionDeclaration:lA,updateFunctionDeclaration:zD,createClassDeclaration:cb,updateClassDeclaration:FE,createInterfaceDeclaration:j1,updateInterfaceDeclaration:yc,createTypeAliasDeclaration:tv,updateTypeAliasDeclaration:U1,createEnumDeclaration:e_,updateEnumDeclaration:cA,createModuleDeclaration:Ve,updateModuleDeclaration:t_,createModuleBlock:pd,updateModuleBlock:zE,createCaseBlock:H1,updateCaseBlock:db,createNamespaceExportDeclaration:nv,updateNamespaceExportDeclaration:rv,createImportEqualsDeclaration:Ha,updateImportEqualsDeclaration:n_,createImportDeclaration:dA,updateImportDeclaration:uA,createImportClause:BE,updateImportClause:pA,createAssertClause:om,updateAssertClause:am,createAssertEntry:Yg,updateAssertEntry:K1,createImportTypeAssertionContainer:r_,updateImportTypeAssertionContainer:BD,createImportAttributes:yS,updateImportAttributes:qi,createImportAttribute:Zr,updateImportAttribute:Rh,createNamespaceImport:Uu,updateNamespaceImport:TM,createNamespaceExport:$g,updateNamespaceExport:AM,createNamedImports:ub,updateNamedImports:gl,createImportSpecifier:Bp,updateImportSpecifier:ug,createExportAssignment:sm,updateExportAssignment:pb,createExportDeclaration:Pm,updateExportDeclaration:Qg,createNamedExports:fA,updateNamedExports:pg,createExportSpecifier:J1,updateExportSpecifier:fg,createMissingDeclaration:G_,createExternalModuleReference:iv,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:fb,updateJSDocTypeLiteral:UD,createJSDocTypeExpression:hA,updateJSDocTypeExpression:IM,createJSDocSignature:mr,updateJSDocSignature:td,createJSDocTemplateTag:V_,updateJSDocTemplateTag:ar,createJSDocTypedefTag:gA,updateJSDocTypedefTag:GE,createJSDocParameterTag:Kc,updateJSDocParameterTag:Dh,createJSDocPropertyTag:Lm,updateJSDocPropertyTag:ES,createJSDocCallbackTag:SS,updateJSDocCallbackTag:mb,createJSDocOverloadTag:Zg,updateJSDocOverloadTag:yA,createJSDocAugmentsTag:km,updateJSDocAugmentsTag:VE,createJSDocImplementsTag:mg,updateJSDocImplementsTag:rp,createJSDocSeeTag:_b,updateJSDocSeeTag:q1,createJSDocNameReference:jE,updateJSDocNameReference:HD,createJSDocMemberName:TS,updateJSDocMemberName:vA,createJSDocLink:Gp,updateJSDocLink:bA,createJSDocLinkCode:Vl,updateJSDocLinkCode:Oc,createJSDocLinkPlain:EA,updateJSDocLinkPlain:Sd,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:nd,updateJSDocUnknownTag:X1,createJSDocText:TA,updateJSDocText:js,createJSDocComment:KD,updateJSDocComment:HE,createJsxElement:AS,updateJsxElement:xM,createJsxSelfClosingElement:hu,updateJsxSelfClosingElement:ey,createJsxOpeningElement:j_,updateJsxOpeningElement:Y1,createJsxClosingElement:Ip,updateJsxClosingElement:$1,createJsxFragment:ip,createJsxText:av,updateJsxText:AA,createJsxOpeningFragment:JD,createJsxJsxClosingFragment:qD,updateJsxFragment:Q1,createJsxAttribute:IA,updateJsxAttribute:XD,createJsxAttributes:yb,updateJsxAttributes:xp,createJsxSpreadAttribute:Ch,updateJsxSpreadAttribute:YD,createJsxExpression:xA,updateJsxExpression:es,createJsxNamespacedName:Sr,updateJsxNamespacedName:ff,createCaseClause:Cu,updateCaseClause:IS,createDefaultClause:$D,updateDefaultClause:KE,createHeritageClause:xS,updateHeritageClause:RA,createCatchClause:_g,updateCatchClause:i_,createPropertyAssignment:mf,updatePropertyAssignment:wm,createShorthandPropertyAssignment:hg,updateShorthandPropertyAssignment:gg,createSpreadAssignment:sc,updateSpreadAssignment:QD,createEnumMember:kf,updateEnumMember:Nh,createSourceFile:_f,updateSourceFile:Ns,createRedirectedSourceFile:RS,createBundle:DS,updateBundle:CS,createUnparsedSource:ny,createUnparsedPrologue:qE,createUnparsedPrepend:I,createUnparsedTextLike:oe,createUnparsedSyntheticReference:ut,createInputFiles:nn,createSyntheticExpression:Lr,createSyntaxList:wi,createNotEmittedStatement:vi,createPartiallyEmittedExpression:Zi,updatePartiallyEmittedExpression:_a,createCommaListExpression:Nu,updateCommaListExpression:wf,createSyntheticReferenceExpression:bb,updateSyntheticReferenceExpression:Si,cloneNode:Sb,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:NS,createVoidZero:U_,createExportDefault:Mh,createExternalModuleExport:ZD,createTypeCheck:NA,createIsNotTypeCheck:UB,createMethodCall:Tb,createGlobalMethodCall:o_,createFunctionBindCall:c8,createFunctionCallCall:d8,createFunctionApplyCall:XE,createArraySliceCall:RM,createArrayConcatCall:Lh,createObjectDefinePropertyCall:nx,createObjectGetOwnPropertyDescriptorCall:u8,createReflectGetCall:H_,createReflectSetCall:X,createPropertyDescriptor:Ue,createCallBinding:Ci,createAssignmentTargetWrapper:_i,inlineExpressions:Xi,getInternalName:xs,getLocalName:Ya,getExportName:Of,getDeclarationName:K_,getNamespaceMemberName:yg,getExternalModuleOrNamespaceExportName:ry,restoreOuterExpressions:Ut,restoreEnclosingLabel:Or,createUseStrictPrologue:op,copyPrologue:iy,copyStandardPrologue:PA,copyCustomPrologue:eC,ensureUseStrict:DM,liftToBlock:CM,mergeLexicalEnvironment:oy,replaceModifiers:Ib,replaceDecoratorsAndModifiers:tC,replacePropertyName:jp};return gn(Joe,v=>v(w)),w;function j(v,C){if(v===void 0||v===Xe)v=[];else if(b0(v)){if(C===void 0||v.hasTrailingComma===C)return v.transformFlags===void 0&&FSe(v),R.attachNodeArrayDebugInfo(v),v;let Ke=v.slice();return Ke.pos=v.pos,Ke.end=v.end,Ke.hasTrailingComma=C,Ke.transformFlags=v.transformFlags,R.attachNodeArrayDebugInfo(Ke),Ke}let F=v.length,le=F>=1&&F<=4?v.slice():v;return le.pos=-1,le.end=-1,le.hasTrailingComma=!!C,le.transformFlags=0,FSe(le),R.attachNodeArrayDebugInfo(le),le}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;R.assert(F.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let le=Y(9);return le.text=F,le.numericLiteralFlags=C,C&384&&(le.transformFlags|=1024),le}function z(v){let C=Et(10);return C.text=typeof v=="string"?v:F0(v)+"n",C.transformFlags|=32,C}function ee(v,C){let F=Y(11);return F.text=v,F.singleQuote=C,F}function me(v,C,F){let le=ee(v,C);return le.hasExtendedUnicodeEscape=F,F&&(le.transformFlags|=1024),le}function ge(v){let C=ee(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 av(C,!1);case 13:return av(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,le){let Ke=re(fl(v));return Rk(Ke,{flags:C,id:e4,prefix:F,suffix:le}),e4++,Ke}function xe(v,C,F){C===void 0&&v&&(C=y0(v)),C===80&&(C=void 0);let le=re(fl(v));return F&&(le.flags|=256),le.escapedText==="await"&&(le.transformFlags|=67108864),le.flags&256&&(le.transformFlags|=1024),le}function fe(v,C,F,le){let Ke=1;C&&(Ke|=8);let Ht=pe("",Ke,F,le);return v&&v(Ht),Ht}function ne(v){let C=2;return v&&(C|=8),pe("",C,void 0,void 0)}function he(v,C=0,F,le){return R.assert(!(C&7),"Argument out of range: flags"),R.assert((C&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(v,3|C,F,le)}function Ce(v,C=0,F,le){R.assert(!(C&7),"Argument out of range: flags");let Ke=v?Kh(v)?bE(!1,F,v,le,yr):`generated@${rs(v)}`:"";(F||le)&&(C|=16);let Ht=pe(Ke,4|C,F,le);return Ht.original=v,Ht}function Ge(v){let C=t.createBasePrivateIdentifierNode(81);return C.escapedText=v,C.transformFlags|=16777216,C}function ve(v){return ao(v,"#")||R.fail("First character of private identifier must be #: "+v),Ge(fl(v))}function Ie(v,C,F,le){let Ke=Ge(fl(v));return Rk(Ke,{flags:C,id:e4,prefix:F,suffix:le}),e4++,Ke}function De(v,C,F){v&&!ao(v,"#")&&R.fail("First character of private identifier must be #: "+v);let le=8|(v?3:1);return Ie(v??"",le,C,F)}function Le(v,C,F){let le=Kh(v)?bE(!0,C,v,F,yr):`#generated@${rs(v)}`,Ht=Ie(le,4|(C||F?16:0),C,F);return Ht.original=v,Ht}function Et(v){return t.createBaseTokenNode(v)}function be(v){R.assert(v>=0&&v<=165,"Invalid token"),R.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),R.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),R.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 Ft(){return be(106)}function _t(){return be(112)}function Je(){return be(97)}function ft(v){return be(v)}function Zt(v){let C=[];return v&32&&C.push(ft(95)),v&128&&C.push(ft(138)),v&2048&&C.push(ft(90)),v&4096&&C.push(ft(87)),v&1&&C.push(ft(125)),v&2&&C.push(ft(123)),v&4&&C.push(ft(124)),v&64&&C.push(ft(128)),v&256&&C.push(ft(126)),v&16&&C.push(ft(164)),v&8&&C.push(ft(148)),v&512&&C.push(ft(129)),v&1024&&C.push(ft(134)),v&8192&&C.push(ft(103)),v&16384&&C.push(ft(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)|Sk(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 Yt(v,C,F,le){let Ke=Y(168);return Ke.modifiers=Ba(v),Ke.name=lc(C),Ke.constraint=F,Ke.default=le,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function qt(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.constraint!==le||v.default!==Ke?tr(Yt(C,F,le,Ke),v):v}function hi(v,C,F,le,Ke,Ht){let hr=Y(169);return hr.modifiers=Ba(v),hr.dotDotDotToken=C,hr.name=lc(F),hr.questionToken=le,hr.type=Ke,hr.initializer=rx(Ht),w0(hr.name)?hr.transformFlags=1:hr.transformFlags=ja(hr.modifiers)|br(hr.dotDotDotToken)|Uv(hr.name)|br(hr.questionToken)|br(hr.initializer)|(hr.questionToken??hr.type?1:0)|(hr.dotDotDotToken??hr.initializer?1024:0)|(x_(hr.modifiers)&31?8192:0),hr.jsDoc=void 0,hr}function uo(v,C,F,le,Ke,Ht,hr){return v.modifiers!==C||v.dotDotDotToken!==F||v.name!==le||v.questionToken!==Ke||v.type!==Ht||v.initializer!==hr?tr(hi(C,F,le,Ke,Ht,hr),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 Eo(v,C){return v.expression!==C?tr(Li(C),v):v}function Qn(v,C,F,le){let Ke=Y(171);return Ke.modifiers=Ba(v),Ke.name=lc(C),Ke.type=le,Ke.questionToken=F,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function Ur(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.questionToken!==le||v.type!==Ke?Er(Qn(C,F,le,Ke),v):v}function Er(v,C){return v!==C&&(v.initializer=C.initializer),tr(v,C)}function on(v,C,F,le,Ke){let Ht=Y(172);Ht.modifiers=Ba(v),Ht.name=lc(C),Ht.questionToken=F&&Hv(F)?F:void 0,Ht.exclamationToken=F&&Mk(F)?F:void 0,Ht.type=le,Ht.initializer=rx(Ke);let hr=Ht.flags&33554432||x_(Ht.modifiers)&128;return Ht.transformFlags=ja(Ht.modifiers)|Uv(Ht.name)|br(Ht.initializer)|(hr||Ht.questionToken||Ht.exclamationToken||Ht.type?1:0)|(Xa(Ht.name)||x_(Ht.modifiers)&256&&Ht.initializer?8192:0)|16777216,Ht.jsDoc=void 0,Ht}function Ye(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.questionToken!==(le!==void 0&&Hv(le)?le:void 0)||v.exclamationToken!==(le!==void 0&&Mk(le)?le:void 0)||v.type!==Ke||v.initializer!==Ht?tr(on(C,F,le,Ke,Ht),v):v}function Wt(v,C,F,le,Ke,Ht){let hr=Y(173);return hr.modifiers=Ba(v),hr.name=lc(C),hr.questionToken=F,hr.typeParameters=Ba(le),hr.parameters=Ba(Ke),hr.type=Ht,hr.transformFlags=1,hr.jsDoc=void 0,hr.locals=void 0,hr.nextContainer=void 0,hr.typeArguments=void 0,hr}function In(v,C,F,le,Ke,Ht,hr){return v.modifiers!==C||v.name!==F||v.questionToken!==le||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==hr?B(Wt(C,F,le,Ke,Ht,hr),v):v}function li(v,C,F,le,Ke,Ht,hr,eo){let Us=Y(174);if(Us.modifiers=Ba(v),Us.asteriskToken=C,Us.name=lc(F),Us.questionToken=le,Us.exclamationToken=void 0,Us.typeParameters=Ba(Ke),Us.parameters=j(Ht),Us.type=hr,Us.body=eo,!Us.body)Us.transformFlags=1;else{let a_=x_(Us.modifiers)&1024,Rb=!!Us.asteriskToken,Om=a_&&Rb;Us.transformFlags=ja(Us.modifiers)|br(Us.asteriskToken)|Uv(Us.name)|br(Us.questionToken)|ja(Us.typeParameters)|ja(Us.parameters)|br(Us.type)|br(Us.body)&-67108865|(Om?128:a_?256:Rb?2048:0)|(Us.questionToken||Us.typeParameters||Us.type?1:0)|1024}return Us.typeArguments=void 0,Us.jsDoc=void 0,Us.locals=void 0,Us.nextContainer=void 0,Us.flowNode=void 0,Us.endFlowNode=void 0,Us.returnFlowNode=void 0,Us}function yi(v,C,F,le,Ke,Ht,hr,eo,Us){return v.modifiers!==C||v.asteriskToken!==F||v.name!==le||v.questionToken!==Ke||v.typeParameters!==Ht||v.parameters!==hr||v.type!==eo||v.body!==Us?$i(li(C,F,le,Ke,Ht,hr,eo,Us),v):v}function $i(v,C){return v!==C&&(v.exclamationToken=C.exclamationToken),tr(v,C)}function Ao(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?za(Ao(C),v):v}function za(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function vn(v,C,F){let le=Y(176);return le.modifiers=Ba(v),le.parameters=j(C),le.body=F,le.transformFlags=ja(le.modifiers)|ja(le.parameters)|br(le.body)&-67108865|1024,le.typeParameters=void 0,le.type=void 0,le.typeArguments=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.returnFlowNode=void 0,le}function kn(v,C,F,le){return v.modifiers!==C||v.parameters!==F||v.body!==le?Be(vn(C,F,le),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,le,Ke){let Ht=Y(177);return Ht.modifiers=Ba(v),Ht.name=lc(C),Ht.parameters=j(F),Ht.type=le,Ht.body=Ke,Ht.body?Ht.transformFlags=ja(Ht.modifiers)|Uv(Ht.name)|ja(Ht.parameters)|br(Ht.type)|br(Ht.body)&-67108865|(Ht.type?1:0):Ht.transformFlags=1,Ht.typeArguments=void 0,Ht.typeParameters=void 0,Ht.jsDoc=void 0,Ht.locals=void 0,Ht.nextContainer=void 0,Ht.flowNode=void 0,Ht.endFlowNode=void 0,Ht.returnFlowNode=void 0,Ht}function lt(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.type!==Ke||v.body!==Ht?Rt(ct(C,F,le,Ke,Ht),v):v}function Rt(v,C){return v!==C&&(v.typeParameters=C.typeParameters),B(v,C)}function se(v,C,F,le){let Ke=Y(178);return Ke.modifiers=Ba(v),Ke.name=lc(C),Ke.parameters=j(F),Ke.body=le,Ke.body?Ke.transformFlags=ja(Ke.modifiers)|Uv(Ke.name)|ja(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,le,Ke){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.body!==Ke?st(se(C,F,le,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 le=Y(179);return le.typeParameters=Ba(v),le.parameters=Ba(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function et(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?B(G(C,F,le),v):v}function Tt(v,C,F){let le=Y(180);return le.typeParameters=Ba(v),le.parameters=Ba(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function He(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?B(Tt(C,F,le),v):v}function pt(v,C,F){let le=Y(181);return le.modifiers=Ba(v),le.parameters=Ba(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function Bt(v,C,F,le){return v.parameters!==F||v.type!==le||v.modifiers!==C?B(pt(C,F,le),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 le=K(182);return le.assertsModifier=v,le.parameterName=lc(C),le.type=F,le.transformFlags=1,le}function Me(v,C,F,le){return v.assertsModifier!==C||v.parameterName!==F||v.type!==le?tr(U(C,F,le),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 le=Y(184);return le.typeParameters=Ba(v),le.parameters=Ba(C),le.type=F,le.transformFlags=1,le.modifiers=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function H(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?ue(ie(C,F,le),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):R.fail("Incorrect number of arguments specified.")}function Ne(v,C,F,le){let Ke=Y(185);return Ke.modifiers=Ba(v),Ke.typeParameters=Ba(C),Ke.parameters=Ba(F),Ke.type=le,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?Kt(...v):v.length===4?En(...v):R.fail("Incorrect number of arguments specified.")}function Kt(v,C,F,le,Ke){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==le||v.type!==Ke?B(We(C,F,le,Ke),v):v}function En(v,C,F,le){return Kt(v,v.modifiers,C,F,le)}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 ho(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(ho(C),v):v}function Ri(v,C,F,le){let Ke=Y(202);return Ke.dotDotDotToken=v,Ke.name=C,Ke.questionToken=F,Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function Kr(v,C,F,le,Ke){return v.dotDotDotToken!==C||v.name!==F||v.questionToken!==le||v.type!==Ke?tr(Ri(C,F,le,Ke),v):v}function Io(v){let C=K(190);return C.type=i().parenthesizeTypeOfOptionalType(v),C.transformFlags=1,C}function xn(v,C){return v.type!==C?tr(Io(C),v):v}function ws(v){let C=K(191);return C.type=v,C.transformFlags=1,C}function $l(v,C){return v.type!==C?tr(ws(C),v):v}function Po(v,C,F){let le=K(v);return le.types=w.createNodeArray(F(C)),le.transformFlags=1,le}function ss(v,C,F){return v.types!==C?tr(Po(v.kind,C,F),v):v}function Bs(v){return Po(192,v,i().parenthesizeConstituentTypesOfUnionType)}function _l(v,C){return ss(v,C,i().parenthesizeConstituentTypesOfUnionType)}function sd(v){return Po(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function mo(v,C){return ss(v,C,i().parenthesizeConstituentTypesOfIntersectionType)}function la(v,C,F,le){let Ke=K(194);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(C),Ke.trueType=F,Ke.falseType=le,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function ld(v,C,F,le,Ke){return v.checkType!==C||v.extendsType!==F||v.trueType!==le||v.falseType!==Ke?tr(la(C,F,le,Ke),v):v}function Ss(v){let C=K(195);return C.typeParameter=v,C.transformFlags=1,C}function Ca(v,C){return v.typeParameter!==C?tr(Ss(C),v):v}function pl(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(pl(C,F),v):v}function ac(v,C,F,le,Ke=!1){let Ht=K(205);return Ht.argument=v,Ht.attributes=C,Ht.assertions&&Ht.assertions.assertClause&&Ht.attributes&&(Ht.assertions.assertClause=Ht.attributes),Ht.qualifier=F,Ht.typeArguments=le&&i().parenthesizeTypeArguments(le),Ht.isTypeOf=Ke,Ht.transformFlags=1,Ht}function xl(v,C,F,le,Ke,Ht=v.isTypeOf){return v.argument!==C||v.attributes!==F||v.qualifier!==le||v.typeArguments!==Ke||v.isTypeOf!==Ht?tr(ac(C,F,le,Ke,Ht),v):v}function sl(v){let C=K(196);return C.type=v,C.transformFlags=1,C}function Mo(v,C){return v.type!==C?tr(sl(C),v):v}function tn(){let v=K(197);return v.transformFlags=1,v}function Gs(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 ed(v,C){return v.type!==C?tr(Gs(v.operator,C),v):v}function cd(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(cd(C,F),v):v}function Cs(v,C,F,le,Ke,Ht){let hr=Y(200);return hr.readonlyToken=v,hr.typeParameter=C,hr.nameType=F,hr.questionToken=le,hr.type=Ke,hr.members=Ht&&j(Ht),hr.transformFlags=1,hr.locals=void 0,hr.nextContainer=void 0,hr}function Ac(v,C,F,le,Ke,Ht,hr){return v.readonlyToken!==C||v.typeParameter!==F||v.nameType!==le||v.questionToken!==Ke||v.type!==Ht||v.members!==hr?tr(Cs(C,F,le,Ke,Ht,hr),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|=ja(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|=ja(C.elements)|1024|524288,C}function vr(v,C){return v.elements!==C?tr(cn(C),v):v}function fr(v,C,F,le){let Ke=Y(208);return Ke.dotDotDotToken=v,Ke.propertyName=lc(C),Ke.name=lc(F),Ke.initializer=rx(le),Ke.transformFlags|=br(Ke.dotDotDotToken)|Uv(Ke.propertyName)|Uv(Ke.name)|br(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function zr(v,C,F,le,Ke){return v.propertyName!==F||v.dotDotDotToken!==C||v.name!==le||v.initializer!==Ke?tr(fr(C,F,le,Ke),v):v}function Di(v,C){let F=K(209),le=v&&Qs(v),Ke=j(v,le&&Gc(le)?!0:void 0);return F.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Ke),F.multiLine=C,F.transformFlags|=ja(F.elements),F}function Cr(v,C){return v.elements!==C?tr(Di(C,v.multiLine),v):v}function Ko(v,C){let F=Y(210);return F.properties=j(v),F.multiLine=C,F.transformFlags|=ja(F.properties),F.jsDoc=void 0,F}function bl(v,C){return v.properties!==C?tr(Ko(C,v.multiLine),v):v}function jc(v,C,F){let le=Y(211);return le.expression=v,le.questionDotToken=C,le.name=F,le.transformFlags=br(le.expression)|br(le.questionDotToken)|(Fe(le.name)?Sk(le.name):br(le.name)|536870912),le.jsDoc=void 0,le.flowNode=void 0,le}function Vs(v,C){let F=jc(i().parenthesizeLeftSideOfAccess(v,!1),void 0,lc(C));return sP(v)&&(F.transformFlags|=384),F}function hc(v,C,F){return oF(v)?Uc(v,C,v.questionDotToken,ta(F,Fe)):v.expression!==C||v.name!==F?tr(Vs(C,F),v):v}function bs(v,C,F){let le=jc(i().parenthesizeLeftSideOfAccess(v,!0),C,lc(F));return le.flags|=64,le.transformFlags|=32,le}function Uc(v,C,F,le){return R.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==C||v.questionDotToken!==F||v.name!==le?tr(bs(C,F,le),v):v}function tp(v,C,F){let le=Y(212);return le.expression=v,le.questionDotToken=C,le.argumentExpression=F,le.transformFlags|=br(le.expression)|br(le.questionDotToken)|br(le.argumentExpression),le.jsDoc=void 0,le.flowNode=void 0,le}function wc(v,C){let F=tp(i().parenthesizeLeftSideOfAccess(v,!1),void 0,$E(C));return sP(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(wc(C,F),v):v}function _u(v,C,F){let le=tp(i().parenthesizeLeftSideOfAccess(v,!0),C,$E(F));return le.flags|=64,le.transformFlags|=32,le}function Re(v,C,F,le){return R.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==C||v.questionDotToken!==F||v.argumentExpression!==le?tr(_u(C,F,le),v):v}function Lt(v,C,F,le){let Ke=Y(213);return Ke.expression=v,Ke.questionDotToken=C,Ke.typeArguments=F,Ke.arguments=le,Ke.transformFlags|=br(Ke.expression)|br(Ke.questionDotToken)|ja(Ke.typeArguments)|ja(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),Ou(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Un(v,C,F){let le=Lt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ba(C),i().parenthesizeExpressionsOfCommaDelimitedList(j(F)));return lP(le.expression)&&(le.transformFlags|=8388608),le}function go(v,C,F,le){return oT(v)?$o(v,C,v.questionDotToken,F,le):v.expression!==C||v.typeArguments!==F||v.arguments!==le?tr(Un(C,F,le),v):v}function Jo(v,C,F,le){let Ke=Lt(i().parenthesizeLeftSideOfAccess(v,!0),C,Ba(F),i().parenthesizeExpressionsOfCommaDelimitedList(j(le)));return Ke.flags|=64,Ke.transformFlags|=32,Ke}function $o(v,C,F,le,Ke){return R.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==C||v.questionDotToken!==F||v.typeArguments!==le||v.arguments!==Ke?tr(Jo(C,F,le,Ke),v):v}function Ql(v,C,F){let le=Y(214);return le.expression=i().parenthesizeExpressionOfNew(v),le.typeArguments=Ba(C),le.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,le.transformFlags|=br(le.expression)|ja(le.typeArguments)|ja(le.arguments)|32,le.typeArguments&&(le.transformFlags|=1),le}function gc(v,C,F,le){return v.expression!==C||v.typeArguments!==F||v.arguments!==le?tr(Ql(C,F,le),v):v}function ll(v,C,F){let le=K(215);return le.tag=i().parenthesizeLeftSideOfAccess(v,!1),le.typeArguments=Ba(C),le.template=F,le.transformFlags|=br(le.tag)|ja(le.typeArguments)|br(le.template)|1024,le.typeArguments&&(le.transformFlags|=1),kj(le.template)&&(le.transformFlags|=128),le}function hl(v,C,F,le){return v.tag!==C||v.typeArguments!==F||v.template!==le?tr(ll(C,F,le),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 Hc(v){let C=K(217);return C.expression=v,C.transformFlags=br(C.expression),C.jsDoc=void 0,C}function cf(v,C){return v.expression!==C?tr(Hc(C),v):v}function Bu(v,C,F,le,Ke,Ht,hr){let eo=Y(218);eo.modifiers=Ba(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ba(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=hr;let Us=x_(eo.modifiers)&1024,a_=!!eo.asteriskToken,Rb=Us&&a_;return eo.transformFlags=ja(eo.modifiers)|br(eo.asteriskToken)|Uv(eo.name)|ja(eo.typeParameters)|ja(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(Rb?128:Us?256:a_?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 Du(v,C,F,le,Ke,Ht,hr,eo){return v.name!==le||v.modifiers!==C||v.asteriskToken!==F||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==hr||v.body!==eo?B(Bu(C,F,le,Ke,Ht,hr,eo),v):v}function Pf(v,C,F,le,Ke,Ht){let hr=Y(219);hr.modifiers=Ba(v),hr.typeParameters=Ba(C),hr.parameters=j(F),hr.type=le,hr.equalsGreaterThanToken=Ke??be(39),hr.body=i().parenthesizeConciseBodyOfArrowFunction(Ht);let eo=x_(hr.modifiers)&1024;return hr.transformFlags=ja(hr.modifiers)|ja(hr.typeParameters)|ja(hr.parameters)|br(hr.type)|br(hr.equalsGreaterThanToken)|br(hr.body)&-67108865|(hr.typeParameters||hr.type?1:0)|(eo?16640:0)|1024,hr.typeArguments=void 0,hr.jsDoc=void 0,hr.locals=void 0,hr.nextContainer=void 0,hr.flowNode=void 0,hr.endFlowNode=void 0,hr.returnFlowNode=void 0,hr}function z_(v,C,F,le,Ke,Ht,hr){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==le||v.type!==Ke||v.equalsGreaterThanToken!==Ht||v.body!==hr?B(Pf(C,F,le,Ke,Ht,hr),v):v}function Ih(v){let C=K(220);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Ug(v,C){return v.expression!==C?tr(Ih(C),v):v}function Wd(v){let C=K(221);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function Hg(v,C){return v.expression!==C?tr(Wd(C),v):v}function Sp(v){let C=K(222);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression),C}function cg(v,C){return v.expression!==C?tr(Sp(C),v):v}function Gu(v){let C=K(223);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=br(C.expression)|256|128|2097152,C}function Z(v,C){return v.expression!==C?tr(Gu(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)&&!il(F.operand)&&!zg(F.operand)&&(F.transformFlags|=268435456),F}function Ot(v,C){return v.operand!==C?tr(rt(v.operator,C),v):v}function Gt(v,C){let F=K(225);return F.operator=C,F.operand=i().parenthesizeOperandOfPostfixUnary(v),F.transformFlags|=br(F.operand),Fe(F.operand)&&!il(F.operand)&&!zg(F.operand)&&(F.transformFlags|=268435456),F}function O(v,C){return v.operand!==C?tr(Gt(C,v.operator),v):v}function Se(v,C,F){let le=Y(226),Ke=NM(C),Ht=Ke.kind;return le.left=i().parenthesizeLeftSideOfBinary(Ht,v),le.operatorToken=Ke,le.right=i().parenthesizeRightSideOfBinary(Ht,le.left,F),le.transformFlags|=br(le.left)|br(le.operatorToken)|br(le.right),Ht===61?le.transformFlags|=32:Ht===64?Ma(le.left)?le.transformFlags|=5248|nt(le.left):fu(le.left)&&(le.transformFlags|=5120|nt(le.left)):Ht===43||Ht===68?le.transformFlags|=512:PN(Ht)&&(le.transformFlags|=16),Ht===103&&Ki(le.left)&&(le.transformFlags|=536870912),le.jsDoc=void 0,le}function nt(v){return Xk(v)?65536:0}function jt(v,C,F,le){return v.left!==C||v.operatorToken!==F||v.right!==le?tr(Se(C,F,le),v):v}function Zn(v,C,F,le,Ke){let Ht=K(227);return Ht.condition=i().parenthesizeConditionOfConditionalExpression(v),Ht.questionToken=C??be(58),Ht.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),Ht.colonToken=le??be(59),Ht.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),Ht.transformFlags|=br(Ht.condition)|br(Ht.questionToken)|br(Ht.whenTrue)|br(Ht.colonToken)|br(Ht.whenFalse),Ht}function oi(v,C,F,le,Ke,Ht){return v.condition!==C||v.questionToken!==F||v.whenTrue!==le||v.colonToken!==Ke||v.whenFalse!==Ht?tr(Zn(C,F,le,Ke,Ht),v):v}function Xr(v,C){let F=K(228);return F.head=v,F.templateSpans=j(C),F.transformFlags|=br(F.head)|ja(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,le=0){R.assert(!(le&-7177),"Unsupported template flags.");let Ke;if(F!==void 0&&F!==C&&(Ke=zBe(v,F),typeof Ke=="object"))return R.fail("Invalid raw text");if(C===void 0){if(Ke===void 0)return R.fail("Arguments 'text' and 'rawText' may not both be undefined.");C=Ke}else Ke!==void 0&&R.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 kl(v,C,F,le){let Ke=Et(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=le&7176,Ke.transformFlags=ka(Ke.templateFlags),Ke}function dd(v,C,F,le){let Ke=Y(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=le&7176,Ke.transformFlags=ka(Ke.templateFlags),Ke}function Ic(v,C,F,le){return v===15?dd(v,C,F,le):kl(v,C,F,le)}function Tp(v,C,F){return v=La(16,v,C,F),Ic(16,v,C,F)}function Vu(v,C,F){return v=La(16,v,C,F),Ic(17,v,C,F)}function ab(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),dd(15,v,C,F)}function Dm(v,C){R.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 Kg(v,C){return v.expression!==C?tr(Ui(C),v):v}function Zy(v,C,F,le,Ke){let Ht=Y(231);return Ht.modifiers=Ba(v),Ht.name=lc(C),Ht.typeParameters=Ba(F),Ht.heritageClauses=Ba(le),Ht.members=j(Ke),Ht.transformFlags|=ja(Ht.modifiers)|Uv(Ht.name)|ja(Ht.typeParameters)|ja(Ht.heritageClauses)|ja(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.jsDoc=void 0,Ht}function Nm(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?tr(Zy(C,F,le,Ke,Ht),v):v}function fS(){return K(232)}function mS(v,C){let F=K(233);return F.expression=i().parenthesizeLeftSideOfAccess(v,!1),F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags|=br(F.expression)|ja(F.typeArguments)|1024,F}function df(v,C,F){return v.expression!==C||v.typeArguments!==F?tr(mS(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 uf(v,C,F){return v.expression!==C||v.type!==F?tr(B_(C,F),v):v}function Jg(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(Jg(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 Vt(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 R.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==C?tr(Vt(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 R.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 mi(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 ri(v,C){let F=K(241);return F.statements=j(v),F.multiLine=C,F.transformFlags|=ja(F.statements),F.jsDoc=void 0,F.locals=void 0,F.nextContainer=void 0,F}function dr(v,C){return v.statements!==C?tr(ri(C,v.multiLine),v):v}function qo(v,C){let F=K(243);return F.modifiers=Ba(v),F.declarationList=So(C)?np(C):C,F.transformFlags|=ja(F.modifiers)|br(F.declarationList),x_(F.modifiers)&128&&(F.transformFlags=1),F.jsDoc=void 0,F.flowNode=void 0,F}function Ua(v,C,F){return v.modifiers!==C||v.declarationList!==F?tr(qo(C,F),v):v}function $d(){let v=K(242);return v.jsDoc=void 0,v}function ud(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 qg(v,C){return v.expression!==C?tr(ud(C),v):v}function kE(v,C,F){let le=K(245);return le.expression=v,le.thenStatement=xb(C),le.elseStatement=xb(F),le.transformFlags|=br(le.expression)|br(le.thenStatement)|br(le.elseStatement),le.jsDoc=void 0,le.flowNode=void 0,le}function w1(v,C,F,le){return v.expression!==C||v.thenStatement!==F||v.elseStatement!==le?tr(kE(C,F,le),v):v}function wE(v,C){let F=K(246);return F.statement=xb(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(wE(C,F),v):v}function wD(v,C){let F=K(247);return F.expression=v,F.statement=xb(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,le){let Ke=K(248);return Ke.initializer=v,Ke.condition=C,Ke.incrementor=F,Ke.statement=xb(le),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 _S(v,C,F,le,Ke){return v.initializer!==C||v.condition!==F||v.incrementor!==le||v.statement!==Ke?tr(oA(C,F,le,Ke),v):v}function O1(v,C,F){let le=K(249);return le.initializer=v,le.expression=C,le.statement=xb(F),le.transformFlags|=br(le.initializer)|br(le.expression)|br(le.statement),le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.flowNode=void 0,le}function WD(v,C,F,le){return v.initializer!==C||v.expression!==F||v.statement!==le?tr(O1(C,F,le),v):v}function W1(v,C,F,le){let Ke=K(250);return Ke.awaitModifier=v,Ke.initializer=C,Ke.expression=i().parenthesizeExpressionForDisallowedComma(F),Ke.statement=xb(le),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,le,Ke){return v.awaitModifier!==C||v.initializer!==F||v.expression!==le||v.statement!==Ke?tr(W1(C,F,le,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 hS(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 gS(v,C){return v.expression!==C?tr(hS(C),v):v}function sb(v,C){let F=K(254);return F.expression=v,F.statement=xb(C),F.transformFlags|=br(F.expression)|br(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function lb(v,C,F){return v.expression!==C||v.statement!==F?tr(sb(C,F),v):v}function dg(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 OE(v,C,F){return v.expression!==C||v.caseBlock!==F?tr(dg(C,F),v):v}function $a(v,C){let F=K(256);return F.label=lc(v),F.statement=xb(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($a(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 WE(v,C){return v.expression!==C?tr(FD(C),v):v}function Xg(v,C,F){let le=K(258);return le.tryBlock=v,le.catchClause=C,le.finallyBlock=F,le.transformFlags|=br(le.tryBlock)|br(le.catchClause)|br(le.finallyBlock),le.jsDoc=void 0,le.flowNode=void 0,le}function xh(v,C,F,le){return v.tryBlock!==C||v.catchClause!==F||v.finallyBlock!==le?tr(Xg(C,F,le),v):v}function Mf(){let v=K(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function ju(v,C,F,le){let Ke=Y(260);return Ke.name=lc(v),Ke.exclamationToken=C,Ke.type=F,Ke.initializer=rx(le),Ke.transformFlags|=Uv(Ke.name)|br(Ke.initializer)|(Ke.exclamationToken??Ke.type?1:0),Ke.jsDoc=void 0,Ke}function Ap(v,C,F,le,Ke){return v.name!==C||v.type!==le||v.exclamationToken!==F||v.initializer!==Ke?tr(ju(C,F,le,Ke),v):v}function np(v,C=0){let F=K(261);return F.flags|=C&7,F.declarations=j(v),F.transformFlags|=ja(F.declarations)|4194304,C&7&&(F.transformFlags|=263168),C&4&&(F.transformFlags|=4),F}function ev(v,C){return v.declarations!==C?tr(np(C,v.flags),v):v}function lA(v,C,F,le,Ke,Ht,hr){let eo=Y(262);if(eo.modifiers=Ba(v),eo.asteriskToken=C,eo.name=lc(F),eo.typeParameters=Ba(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=hr,!eo.body||x_(eo.modifiers)&128)eo.transformFlags=1;else{let Us=x_(eo.modifiers)&1024,a_=!!eo.asteriskToken,Rb=Us&&a_;eo.transformFlags=ja(eo.modifiers)|br(eo.asteriskToken)|Uv(eo.name)|ja(eo.typeParameters)|ja(eo.parameters)|br(eo.type)|br(eo.body)&-67108865|(Rb?128:Us?256:a_?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,le,Ke,Ht,hr,eo){return v.modifiers!==C||v.asteriskToken!==F||v.name!==le||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==hr||v.body!==eo?V1(lA(C,F,le,Ke,Ht,hr,eo),v):v}function V1(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),B(v,C)}function cb(v,C,F,le,Ke){let Ht=Y(263);return Ht.modifiers=Ba(v),Ht.name=lc(C),Ht.typeParameters=Ba(F),Ht.heritageClauses=Ba(le),Ht.members=j(Ke),x_(Ht.modifiers)&128?Ht.transformFlags=1:(Ht.transformFlags|=ja(Ht.modifiers)|Uv(Ht.name)|ja(Ht.typeParameters)|ja(Ht.heritageClauses)|ja(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.transformFlags&8192&&(Ht.transformFlags|=1)),Ht.jsDoc=void 0,Ht}function FE(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?tr(cb(C,F,le,Ke,Ht),v):v}function j1(v,C,F,le,Ke){let Ht=Y(264);return Ht.modifiers=Ba(v),Ht.name=lc(C),Ht.typeParameters=Ba(F),Ht.heritageClauses=Ba(le),Ht.members=j(Ke),Ht.transformFlags=1,Ht.jsDoc=void 0,Ht}function yc(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?tr(j1(C,F,le,Ke,Ht),v):v}function tv(v,C,F,le){let Ke=Y(265);return Ke.modifiers=Ba(v),Ke.name=lc(C),Ke.typeParameters=Ba(F),Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function U1(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.type!==Ke?tr(tv(C,F,le,Ke),v):v}function e_(v,C,F){let le=Y(266);return le.modifiers=Ba(v),le.name=lc(C),le.members=j(F),le.transformFlags|=ja(le.modifiers)|br(le.name)|ja(le.members)|1,le.transformFlags&=-67108865,le.jsDoc=void 0,le}function cA(v,C,F,le){return v.modifiers!==C||v.name!==F||v.members!==le?tr(e_(C,F,le),v):v}function Ve(v,C,F,le=0){let Ke=Y(267);return Ke.modifiers=Ba(v),Ke.flags|=le&2088,Ke.name=C,Ke.body=F,x_(Ke.modifiers)&128?Ke.transformFlags=1:Ke.transformFlags|=ja(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 t_(v,C,F,le){return v.modifiers!==C||v.name!==F||v.body!==le?tr(Ve(C,F,le,v.flags),v):v}function pd(v){let C=K(268);return C.statements=j(v),C.transformFlags|=ja(C.statements),C.jsDoc=void 0,C}function zE(v,C){return v.statements!==C?tr(pd(C),v):v}function H1(v){let C=K(269);return C.clauses=j(v),C.transformFlags|=ja(C.clauses),C.locals=void 0,C.nextContainer=void 0,C}function db(v,C){return v.clauses!==C?tr(H1(C),v):v}function nv(v){let C=Y(270);return C.name=lc(v),C.transformFlags|=Sk(C.name)|1,C.modifiers=void 0,C.jsDoc=void 0,C}function rv(v,C){return v.name!==C?SM(nv(C),v):v}function SM(v,C){return v!==C&&(v.modifiers=C.modifiers),tr(v,C)}function Ha(v,C,F,le){let Ke=Y(271);return Ke.modifiers=Ba(v),Ke.name=lc(F),Ke.isTypeOnly=C,Ke.moduleReference=le,Ke.transformFlags|=ja(Ke.modifiers)|Sk(Ke.name)|br(Ke.moduleReference),bh(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function n_(v,C,F,le,Ke){return v.modifiers!==C||v.isTypeOnly!==F||v.name!==le||v.moduleReference!==Ke?tr(Ha(C,F,le,Ke),v):v}function dA(v,C,F,le){let Ke=K(272);return Ke.modifiers=Ba(v),Ke.importClause=C,Ke.moduleSpecifier=F,Ke.attributes=Ke.assertClause=le,Ke.transformFlags|=br(Ke.importClause)|br(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function uA(v,C,F,le,Ke){return v.modifiers!==C||v.importClause!==F||v.moduleSpecifier!==le||v.attributes!==Ke?tr(dA(C,F,le,Ke),v):v}function BE(v,C,F){let le=Y(273);return le.isTypeOnly=v,le.name=C,le.namedBindings=F,le.transformFlags|=br(le.name)|br(le.namedBindings),v&&(le.transformFlags|=1),le.transformFlags&=-67108865,le}function pA(v,C,F,le){return v.isTypeOnly!==C||v.name!==F||v.namedBindings!==le?tr(BE(C,F,le),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 Yg(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(Yg(C,F),v):v}function r_(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(r_(C,F),v):v}function yS(v,C,F){let le=K(300);return le.token=F??118,le.elements=j(v),le.multiLine=C,le.transformFlags|=4,le}function qi(v,C,F){return v.elements!==C||v.multiLine!==F?tr(yS(C,F,v.token),v):v}function Zr(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function Rh(v,C,F){return v.name!==C||v.value!==F?tr(Zr(C,F),v):v}function Uu(v){let C=Y(274);return C.name=v,C.transformFlags|=br(C.name),C.transformFlags&=-67108865,C}function TM(v,C){return v.name!==C?tr(Uu(C),v):v}function $g(v){let C=Y(280);return C.name=v,C.transformFlags|=br(C.name)|32,C.transformFlags&=-67108865,C}function AM(v,C){return v.name!==C?tr($g(C),v):v}function ub(v){let C=K(275);return C.elements=j(v),C.transformFlags|=ja(C.elements),C.transformFlags&=-67108865,C}function gl(v,C){return v.elements!==C?tr(ub(C),v):v}function Bp(v,C,F){let le=Y(276);return le.isTypeOnly=v,le.propertyName=C,le.name=F,le.transformFlags|=br(le.propertyName)|br(le.name),le.transformFlags&=-67108865,le}function ug(v,C,F,le){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==le?tr(Bp(C,F,le),v):v}function sm(v,C,F){let le=Y(277);return le.modifiers=Ba(v),le.isExportEquals=C,le.expression=C?i().parenthesizeRightSideOfBinary(64,void 0,F):i().parenthesizeExpressionOfExportDefault(F),le.transformFlags|=ja(le.modifiers)|br(le.expression),le.transformFlags&=-67108865,le.jsDoc=void 0,le}function pb(v,C,F){return v.modifiers!==C||v.expression!==F?tr(sm(C,v.isExportEquals,F),v):v}function Pm(v,C,F,le,Ke){let Ht=Y(278);return Ht.modifiers=Ba(v),Ht.isTypeOnly=C,Ht.exportClause=F,Ht.moduleSpecifier=le,Ht.attributes=Ht.assertClause=Ke,Ht.transformFlags|=ja(Ht.modifiers)|br(Ht.exportClause)|br(Ht.moduleSpecifier),Ht.transformFlags&=-67108865,Ht.jsDoc=void 0,Ht}function Qg(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.isTypeOnly!==F||v.exportClause!==le||v.moduleSpecifier!==Ke||v.attributes!==Ht?vS(Pm(C,F,le,Ke,Ht),v):v}function vS(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|=ja(C.elements),C.transformFlags&=-67108865,C}function pg(v,C){return v.elements!==C?tr(fA(C),v):v}function J1(v,C,F){let le=K(281);return le.isTypeOnly=v,le.propertyName=lc(C),le.name=lc(F),le.transformFlags|=br(le.propertyName)|br(le.name),le.transformFlags&=-67108865,le.jsDoc=void 0,le}function fg(v,C,F,le){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==le?tr(J1(C,F,le),v):v}function G_(){let v=Y(282);return v.jsDoc=void 0,v}function iv(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(iv(C),v):v}function VD(v){return K(v)}function jD(v,C,F=!1){let le=mA(v,F?C&&i().parenthesizeNonArrayTypeOfPostfixType(C):C);return le.postfix=F,le}function mA(v,C){let F=K(v);return F.type=C,F}function Ys(v,C,F){return C.type!==F?tr(jD(v,F,C.postfix),C):C}function bS(v,C,F){return C.type!==F?tr(mA(v,F),C):C}function _A(v,C){let F=Y(324);return F.parameters=Ba(v),F.type=C,F.transformFlags=ja(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 fb(v,C=!1){let F=Y(329);return F.jsDocPropertyTags=Ba(v),F.isArrayType=C,F}function UD(v,C,F){return v.jsDocPropertyTags!==C||v.isArrayType!==F?tr(fb(C,F),v):v}function hA(v){let C=K(316);return C.type=v,C}function IM(v,C){return v.type!==C?tr(hA(C),v):v}function mr(v,C,F){let le=Y(330);return le.typeParameters=Ba(v),le.parameters=j(C),le.type=F,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le}function td(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?tr(mr(C,F,le),v):v}function Qi(v){let C=WU(v.kind);return v.tagName.escapedText===fl(C)?v.tagName:xe(C)}function pf(v,C,F){let le=K(v);return le.tagName=C,le.comment=F,le}function ov(v,C,F){let le=Y(v);return le.tagName=C,le.comment=F,le}function V_(v,C,F,le){let Ke=pf(352,v??xe("template"),le);return Ke.constraint=C,Ke.typeParameters=j(F),Ke}function ar(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.constraint!==F||v.typeParameters!==le||v.comment!==Ke?tr(V_(C,F,le,Ke),v):v}function gA(v,C,F,le){let Ke=ov(353,v??xe("typedef"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function GE(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?tr(gA(C,F,le,Ke),v):v}function Kc(v,C,F,le,Ke,Ht){let hr=ov(348,v??xe("param"),Ht);return hr.typeExpression=le,hr.name=C,hr.isNameFirst=!!Ke,hr.isBracketed=F,hr}function Dh(v,C=Qi(v),F,le,Ke,Ht,hr){return v.tagName!==C||v.name!==F||v.isBracketed!==le||v.typeExpression!==Ke||v.isNameFirst!==Ht||v.comment!==hr?tr(Kc(C,F,le,Ke,Ht,hr),v):v}function Lm(v,C,F,le,Ke,Ht){let hr=ov(355,v??xe("prop"),Ht);return hr.typeExpression=le,hr.name=C,hr.isNameFirst=!!Ke,hr.isBracketed=F,hr}function ES(v,C=Qi(v),F,le,Ke,Ht,hr){return v.tagName!==C||v.name!==F||v.isBracketed!==le||v.typeExpression!==Ke||v.isNameFirst!==Ht||v.comment!==hr?tr(Lm(C,F,le,Ke,Ht,hr),v):v}function SS(v,C,F,le){let Ke=ov(345,v??xe("callback"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function mb(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?tr(SS(C,F,le,Ke),v):v}function Zg(v,C,F){let le=pf(346,v??xe("overload"),F);return le.typeExpression=C,le}function yA(v,C=Qi(v),F,le){return v.tagName!==C||v.typeExpression!==F||v.comment!==le?tr(Zg(C,F,le),v):v}function km(v,C,F){let le=pf(335,v??xe("augments"),F);return le.class=C,le}function VE(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?tr(km(C,F,le),v):v}function mg(v,C,F){let le=pf(336,v??xe("implements"),F);return le.class=C,le}function _b(v,C,F){let le=pf(354,v??xe("see"),F);return le.name=C,le}function q1(v,C,F,le){return v.tagName!==C||v.name!==F||v.comment!==le?tr(_b(C,F,le),v):v}function jE(v){let C=K(317);return C.name=v,C}function HD(v,C){return v.name!==C?tr(jE(C),v):v}function TS(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(TS(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 Oc(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 Sd(v,C,F){return v.name!==C?tr(EA(C,F),v):v}function rp(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?tr(mg(C,F,le),v):v}function UE(v,C,F){return pf(v,C??xe(WU(v)),F)}function Lf(v,C,F=Qi(C),le){return C.tagName!==F||C.comment!==le?tr(UE(v,F,le),C):C}function hb(v,C,F,le){let Ke=pf(v,C??xe(WU(v)),le);return Ke.typeExpression=F,Ke}function gb(v,C,F=Qi(C),le,Ke){return C.tagName!==F||C.typeExpression!==le||C.comment!==Ke?tr(hb(v,F,le,Ke),C):C}function nd(v,C){return pf(334,v,C)}function X1(v,C,F){return v.tagName!==C||v.comment!==F?tr(nd(C,F),v):v}function Vp(v,C,F){let le=ov(347,v??xe(WU(347)),F);return le.typeExpression=C,le.locals=void 0,le.nextContainer=void 0,le}function SA(v,C=Qi(v),F,le){return v.tagName!==C||v.typeExpression!==F||v.comment!==le?tr(Vp(C,F,le),v):v}function TA(v){let C=K(328);return C.text=v,C}function js(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=Ba(C),F}function HE(v,C,F){return v.comment!==C||v.tags!==F?tr(KD(C,F),v):v}function AS(v,C,F){let le=K(284);return le.openingElement=v,le.children=j(C),le.closingElement=F,le.transformFlags|=br(le.openingElement)|ja(le.children)|br(le.closingElement)|2,le}function xM(v,C,F,le){return v.openingElement!==C||v.children!==F||v.closingElement!==le?tr(AS(C,F,le),v):v}function hu(v,C,F){let le=K(285);return le.tagName=v,le.typeArguments=Ba(C),le.attributes=F,le.transformFlags|=br(le.tagName)|ja(le.typeArguments)|br(le.attributes)|2,le.typeArguments&&(le.transformFlags|=1),le}function ey(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?tr(hu(C,F,le),v):v}function j_(v,C,F){let le=K(286);return le.tagName=v,le.typeArguments=Ba(C),le.attributes=F,le.transformFlags|=br(le.tagName)|ja(le.typeArguments)|br(le.attributes)|2,C&&(le.transformFlags|=1),le}function Y1(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?tr(j_(C,F,le),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 le=K(288);return le.openingFragment=v,le.children=j(C),le.closingFragment=F,le.transformFlags|=br(le.openingFragment)|ja(le.children)|br(le.closingFragment)|2,le}function Q1(v,C,F,le){return v.openingFragment!==C||v.children!==F||v.closingFragment!==le?tr(ip(C,F,le),v):v}function av(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(av(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 yb(v){let C=Y(292);return C.properties=j(v),C.transformFlags|=ja(C.properties)|2,C}function xp(v,C){return v.properties!==C?tr(yb(C),v):v}function Ch(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(Ch(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 ff(v,C,F){return v.namespace!==C||v.name!==F?tr(Sr(C,F),v):v}function Cu(v,C){let F=K(296);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.statements=j(C),F.transformFlags|=br(F.expression)|ja(F.statements),F.jsDoc=void 0,F}function IS(v,C,F){return v.expression!==C||v.statements!==F?tr(Cu(C,F),v):v}function $D(v){let C=K(297);return C.statements=j(v),C.transformFlags=ja(C.statements),C}function KE(v,C){return v.statements!==C?tr($D(C),v):v}function xS(v,C){let F=K(298);switch(F.token=v,F.types=j(C),F.transformFlags|=ja(F.types),v){case 96:F.transformFlags|=1024;break;case 119:F.transformFlags|=1;break;default:return R.assertNever(v)}return F}function RA(v,C){return v.types!==C?tr(xS(v.token,C),v):v}function _g(v,C){let F=K(299);return F.variableDeclaration=PM(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 i_(v,C,F){return v.variableDeclaration!==C||v.block!==F?tr(_g(C,F),v):v}function mf(v,C){let F=Y(303);return F.name=lc(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Uv(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?ty(mf(C,F),v):v}function ty(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken),tr(v,C)}function hg(v,C){let F=Y(304);return F.name=lc(v),F.objectAssignmentInitializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Sk(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 gg(v,C,F){return v.name!==C||v.objectAssignmentInitializer!==F?Z1(hg(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 Nh(v,C,F){return v.name!==C||v.initializer!==F?tr(kf(C,F),v):v}function _f(v,C,F){let le=t.createBaseSourceFileNode(312);return le.statements=j(v),le.endOfFileToken=C,le.flags|=F,le.text="",le.fileName="",le.path="",le.resolvedPath="",le.originalFileName="",le.languageVersion=0,le.languageVariant=0,le.scriptKind=0,le.isDeclarationFile=!1,le.hasNoDefaultLib=!1,le.transformFlags|=ja(le.statements)|br(le.endOfFileToken),le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.nodeCount=0,le.identifierCount=0,le.symbolCount=0,le.parseDiagnostics=void 0,le.bindDiagnostics=void 0,le.bindSuggestionDiagnostics=void 0,le.lineMap=void 0,le.externalModuleIndicator=void 0,le.setExternalModuleIndicator=void 0,le.pragmas=void 0,le.checkJsDirective=void 0,le.referencedFiles=void 0,le.typeReferenceDirectives=void 0,le.libReferenceDirectives=void 0,le.amdDependencies=void 0,le.commentDirectives=void 0,le.identifiers=void 0,le.packageJsonLocations=void 0,le.packageJsonScope=void 0,le.imports=void 0,le.moduleAugmentations=void 0,le.ambientModuleNames=void 0,le.classifiableNames=void 0,le.impliedNodeFormat=void 0,le}function RS(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 JE(v){let C=RS(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(!(As(C,F)||!As(v,F))){if(F==="emitNode"){C.emitNode=void 0;continue}C[F]=v[F]}return C}function DA(v){let C=v.redirectInfo?JE(v):ex(v);return r(C,v),C}function hf(v,C,F,le,Ke,Ht,hr){let eo=DA(v);return eo.statements=j(C),eo.isDeclarationFile=F,eo.referencedFiles=le,eo.typeReferenceDirectives=Ke,eo.hasNoDefaultLib=Ht,eo.libReferenceDirectives=hr,eo.transformFlags=ja(eo.statements)|br(eo.endOfFileToken),eo}function Ns(v,C,F=v.isDeclarationFile,le=v.referencedFiles,Ke=v.typeReferenceDirectives,Ht=v.hasNoDefaultLib,hr=v.libReferenceDirectives){return v.statements!==C||v.isDeclarationFile!==F||v.referencedFiles!==le||v.typeReferenceDirectives!==Ke||v.hasNoDefaultLib!==Ht||v.libReferenceDirectives!==hr?tr(hf(v,C,F,le,Ke,Ht,hr),v):v}function DS(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 CS(v,C,F=Xe){return v.sourceFiles!==C||v.prepends!==F?tr(DS(C,F),v):v}function ny(v,C,F){let le=K(314);return le.prologues=v,le.syntheticReferences=C,le.texts=F,le.fileName="",le.text="",le.referencedFiles=Xe,le.libReferenceDirectives=Xe,le.getLineAndCharacterOfPosition=Ke=>ys(le,Ke),le}function vb(v,C){let F=K(v);return F.data=C,F}function qE(v){return vb(307,v)}function I(v,C){let F=vb(308,v);return F.texts=C,F}function oe(v,C){return vb(C?310:309,v)}function ut(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 Lr(v,C=!1,F){let le=K(237);return le.type=v,le.isSpread=C,le.tupleNameSource=F,le}function wi(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(qs(v)&&!eN(v)&&!v.original&&!v.emitNode&&!v.id){if(dP(v))return v.elements;if(ur(v)&&aae(v.operatorToken))return[v.left,v.right]}return v}function Nu(v){let C=K(361);return C.elements=j(Yte(v,Qd)),C.transformFlags|=ja(C.elements),C}function wf(v,C){return v.elements!==C?tr(Nu(C),v):v}function bb(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(bb(C,F),v):v}function Ph(v){let C=re(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Rk(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&&By(C,F),C}function tx(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Rk(C,{...v.emitNode.autoGenerate}),C}function Eb(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),C}function Sb(v){if(v===void 0)return v;if(Yi(v))return DA(v);if(il(v))return Ph(v);if(Fe(v))return Vn(v);if(aT(v))return tx(v);if(Ki(v))return Eb(v);let C=e2(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)As(C,F)||!As(v,F)||(C[F]=v[F]);return C}function CA(v,C,F){return Un(Bu(void 0,void 0,void 0,void 0,C?[C]:[],void 0,ri(v,!0)),void 0,F?[F]:[])}function NS(v,C,F){return Un(Pf(void 0,void 0,C?[C]:[],void 0,void 0,ri(v,!0)),void 0,F?[F]:[])}function U_(){return Sp(ce("0"))}function Mh(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,Ft()):C==="undefined"?w.createStrictEquality(v,U_()):w.createStrictEquality(Wd(v),me(C))}function UB(v,C){return C==="null"?w.createStrictInequality(v,Ft()):C==="undefined"?w.createStrictInequality(v,U_()):w.createStrictInequality(Wd(v),me(C))}function Tb(v,C,F){return oT(v)?Jo(bs(v,void 0,C),void 0,void 0,F):Un(Vs(v,C),void 0,F)}function c8(v,C,F){return Tb(v,"bind",[C,...F])}function d8(v,C,F){return Tb(v,"call",[C,...F])}function XE(v,C,F){return Tb(v,"apply",[C,F])}function o_(v,C,F){return Tb(xe(v),C,F)}function RM(v,C){return Tb(v,"slice",C===void 0?[]:[$E(C)])}function Lh(v,C){return Tb(v,"concat",C)}function nx(v,C,F){return o_("Object","defineProperty",[v,$E(C),F])}function u8(v,C){return o_("Object","getOwnPropertyDescriptor",[v,$E(C)])}function H_(v,C,F){return o_("Reflect","get",F?[v,C,F]:[v,C])}function X(v,C,F,le){return o_("Reflect","set",le?[v,C,F,le]:[v,C,F])}function Ae(v,C,F){return F?(v.push(mf(C,F)),!0):!1}function Ue(v,C){let F=[];Ae(F,"enumerable",$E(v.enumerable)),Ae(F,"configurable",$E(v.configurable));let le=Ae(F,"writable",$E(v.writable));le=Ae(F,"value",v.value)||le;let Ke=Ae(F,"get",v.get);return Ke=Ae(F,"set",v.set)||Ke,R.assert(!(le&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ko(F,!C)}function St(v,C){switch(v.kind){case 217:return cf(v,C);case 216:return Zl(v,v.type,C);case 234:return uf(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 Fu(v)&&qs(v)&&qs(zy(v))&&qs(C_(v))&&!gt(IR(v))&&!gt(xk(v))}function Ut(v,C,F=15){return v&&$4(v,F)&&!xt(v)?St(v,Ut(v.expression,C)):C}function Or(v,C,F){if(!C)return v;let le=sA(C,C.label,K0(C.statement)?Or(v,C.statement):v);return F&&F(C),le}function Wi(v,C){let F=ms(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,le=!1){let Ke=Yl(v,15),Ht,hr;return Ou(Ke)?(Ht=tt(),hr=Ke):sP(Ke)?(Ht=tt(),hr=F!==void 0&&F<2?at(xe("_super"),Ke):Ke):Fa(Ke)&8192?(Ht=U_(),hr=i().parenthesizeLeftSideOfAccess(Ke,!1)):wr(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),hr=Vs(at(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.name),at(hr,Ke)):(Ht=Ke.expression,hr=Ke):Xs(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),hr=wc(at(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.argumentExpression),at(hr,Ke)):(Ht=Ke.expression,hr=Ke):(Ht=U_(),hr=i().parenthesizeLeftSideOfAccess(v,!1)),{target:hr,thisArg:Ht}}function _i(v,C){return Vs(Hc(Ko([se(void 0,"value",[hi(void 0,void 0,v,void 0,void 0,void 0)],ri([ud(C)]))])),"value")}function Xi(v){return v.length>10?Nu(v):ru(v,w.createComma)}function cs(v,C,F,le=0,Ke){let Ht=Ke?v&&eF(v):No(v);if(Ht&&Fe(Ht)&&!il(Ht)){let hr=Va(at(Sb(Ht),Ht),Ht.parent);return le|=Fa(Ht),F||(le|=96),C||(le|=3072),le&&cr(hr,le),hr}return Ce(v)}function xs(v,C,F){return cs(v,C,F,98304)}function Ya(v,C,F,le){return cs(v,C,F,32768,le)}function Of(v,C,F){return cs(v,C,F,16384)}function K_(v,C,F){return cs(v,C,F)}function yg(v,C,F,le){let Ke=Vs(v,qs(C)?C:Sb(C));at(Ke,C);let Ht=0;return le||(Ht|=96),F||(Ht|=3072),Ht&&cr(Ke,Ht),Ke}function ry(v,C,F,le){return v&&Qr(C,32)?yg(v,cs(C),F,le):Of(C,F,le)}function iy(v,C,F,le){let Ke=PA(v,C,0,F);return eC(v,C,Ke,le)}function Ab(v){return Da(v.expression)&&v.expression.text==="use strict"}function op(){return Jd(ud(me("use strict")))}function PA(v,C,F=0,le){R.assert(C.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1,Ht=v.length;for(;Feo&&a_.splice(Ke,0,...C.slice(eo,Us)),eo>hr&&a_.splice(le,0,...C.slice(hr,eo)),hr>Ht&&a_.splice(F,0,...C.slice(Ht,hr)),Ht>0)if(F===0)a_.splice(0,0,...C.slice(0,Ht));else{let Rb=new Map;for(let Om=0;Om=0;Om--){let QE=C[Om];Rb.has(QE.expression.text)||a_.unshift(QE)}}return b0(v)?at(j(a_,v.hasTrailingComma),v):v}function Ib(v,C){let F;return typeof C=="number"?F=Zt(C):F=C,ml(v)?qt(v,F,v.name,v.constraint,v.default):To(v)?uo(v,F,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):RR(v)?Kt(v,F,v.typeParameters,v.parameters,v.type):_p(v)?Ur(v,F,v.name,v.questionToken,v.type):Vo(v)?Ye(v,F,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):hh(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):Nl(v)?kn(v,F,v.parameters,v.body):Zp(v)?lt(v,F,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,F,v.name,v.parameters,v.body):V0(v)?Bt(v,F,v.parameters,v.type):Ls(v)?Du(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):zs(v)?z_(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):$c(v)?Nm(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Pl(v)?Ua(v,F,v.declarationList):Ec(v)?zD(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Sc(v)?FE(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):mu(v)?yc(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Tm(v)?U1(v,F,v.name,v.typeParameters,v.type):gE(v)?cA(v,F,v.name,v.members):ql(v)?t_(v,F,v.name,v.body):Zc(v)?n_(v,F,v.isTypeOnly,v.name,v.moduleReference):Mc(v)?uA(v,F,v.importClause,v.moduleSpecifier,v.attributes):Ml(v)?pb(v,F,v.expression):Xl(v)?Qg(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):R.assertNever(v)}function tC(v,C){return To(v)?uo(v,C,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Vo(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):Zp(v)?lt(v,C,v.name,v.parameters,v.type,v.body):hp(v)?ke(v,C,v.name,v.parameters,v.body):$c(v)?Nm(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):Sc(v)?FE(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):R.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 Ba(v){return v?j(v):void 0}function lc(v){return typeof v=="string"?xe(v):v}function $E(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 NM(v){return typeof v=="number"?be(v):v}function xb(v){return v&&oH(v)?at(r($d(),v),v):v}function PM(v){return typeof v=="string"||v&&!Oi(v)?ju(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 R.fail(`Unsupported kind: ${R.formatSyntaxKind(e)}`)}}function zBe(e,t){switch(Fy||(Fy=Dy(99,!1,0)),e){case 15:Fy.setText("`"+t+"`");break;case 16:Fy.setText("`"+t+"${");break;case 17:Fy.setText("}"+t+"${");break;case 18:Fy.setText("}"+t+"`");break}let r=Fy.scan();if(r===20&&(r=Fy.reScanTemplateToken(!1)),Fy.isUnterminated())return Fy.setText(void 0),qoe;let i;switch(r){case 15:case 16:case 17:case 18:i=Fy.getTokenValue();break}return i===void 0||Fy.scan()!==1?(Fy.setText(void 0),qoe):(Fy.setText(void 0),i)}function Uv(e){return e&&Fe(e)?Sk(e):br(e)}function Sk(e){return br(e)&-67108865}function BBe(e,t){return t|e.transformFlags&134234112}function br(e){if(!e)return 0;let t=e.transformFlags&~Koe(e.kind);return au(e)&&rc(e.name)?BBe(e.name,t):t}function ja(e){return e?e.transformFlags:0}function FSe(e){let t=0;for(let r of e)t|=br(r);e.transformFlags=t}function Koe(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;Co(e)?(s="",l=e,d=e.length,p=t,h=r):(R.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&&(R.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?VBe(R.checkDefined(o)):GBe(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})):(R.assert(!E),S.text=l??"",S.sourceMapText=h),S}function GBe(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:R.assertNever(E)}if(!h){let E=L.createUnparsedTextLike(void 0,!1);JN(E,0,typeof r=="function"?r():r),h=[E]}let y=Eh.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 VBe(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:R.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 zSe(e,t,r,i,o,s){return Co(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=Eh.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(R.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=Eh.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 BSe(e,t,r){return new(VSe||(VSe=od.getSourceMapSourceConstructor()))(e,t,r)}function xr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=jBe(r,e.emitNode))}return e}function jBe(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=UBe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(let N of m)t.helpers=Ig(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 UBe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var e4,GU,Joe,Fy,qoe,Tk,GSe,L,VSe,HBe=bt({"src/compiler/factory/nodeFactory.ts"(){"use strict";Qo(),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||{}),Joe=[],qoe={},Tk=joe(),GSe={createBaseSourceFileNode:e=>Z6(Tk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Z6(Tk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Z6(Tk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Z6(Tk.createBaseTokenNode(e)),createBaseNode:e=>Z6(Tk.createBaseNode(e))},L=Ek(4,GSe)}});function Ld(e){if(e.emitNode)R.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(eN(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Gn(Ro(Gn(e)))??R.fail("Could not determine parsed source file.");Ld(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function VU(e){var t,r;let i=(r=(t=Gn(Ro(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Ak(e){let t=Ld(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function cr(e,t){return Ld(e).flags=t,e}function D_(e,t){let r=Ld(e);return r.flags=r.flags|t,e}function Ik(e,t){return Ld(e).internalFlags=t,e}function BI(e,t){let r=Ld(e);return r.internalFlags=r.internalFlags|t,e}function zy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ra(e,t){return Ld(e).sourceMapRange=t,e}function jSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Xoe(e,t,r){let i=Ld(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function rP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function t4(e,t){return Ld(e).startsOnNewLine=t,e}function C_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ic(e,t){return Ld(e).commentRange=t,e}function IR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function hE(e,t){return Ld(e).leadingComments=t,e}function iP(e,t,r,i){return hE(e,Tn(IR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function xk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function GI(e,t){return Ld(e).trailingComments=t,e}function n4(e,t,r,i){return GI(e,Tn(xk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Yoe(e,t){hE(e,IR(t)),GI(e,xk(t));let r=Ld(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function $oe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Qoe(e,t){let r=Ld(e);return r.constantValue=t,e}function VI(e,t){let r=Ld(e);return r.helpers=Tn(r.helpers,t),e}function Wg(e,t){if(gt(t)){let r=Ld(e);for(let i of t)r.helpers=Ig(r.helpers,i)}return e}function USe(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 Zoe(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!gt(o))return;let s=Ld(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=Ld(e);return r.snippetElement=t,e}function HU(e){return Ld(e).internalFlags|=4,e}function eae(e,t){let r=Ld(e);return r.typeNode=t,e}function tae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function By(e,t){return Ld(e).identifierTypeArguments=t,e}function DT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Rk(e,t){return Ld(e).autoGenerate=t,e}function HSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function nae(e,t){return Ld(e).generatedImportReference=t,e}function rae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var KBe=bt({"src/compiler/factory/emitNode.ts"(){"use strict";Qo()}});function iae(e){let t=e.factory,r=Eu(()=>Ik(t.createTrue(),8)),i=Eu(()=>Ik(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:ee,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:Ie,createClassPrivateFieldInHelper:De,createAddDisposableResourceHelper:Le,createDisposeResourcesHelper:Et};function o(be){return cr(t.createIdentifier(be),8196)}function s(be,ze,tt,Ft){e.requestEmitHelper(i4);let _t=[];return _t.push(t.createArrayLiteralExpression(be,!0)),_t.push(ze),tt&&(_t.push(tt),Ft&&_t.push(Ft)),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,Ft,_t,Je){return e.requestEmitHelper(s4),t.createCallExpression(o("__esDecorate"),void 0,[be??t.createNull(),ze??t.createNull(),tt,A(Ft),_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,Ft){e.requestEmitHelper(f4);let _t=[],Je=0;for(let ft=0;ft{let i="";for(let o=0;oe.name))}function oP(e,t){return ra(e)&&Fe(e.expression)&&(Fa(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,Dk,A4,I4,x4,R4,D4,C4,N4,KSe,Ck,Nk,JBe=bt({"src/compiler/factory/emitHelpers.ts"(){"use strict";Qo(),qU=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(qU||{}),i4={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`),t.closeSync(tt),tl("endDumpTypes"),Xp("Dump types","beginDumpTypes","endDumpTypes")}function ce(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=ce})(ML||(ML={})),Tne=ML.startTracing,Ane=ML.dumpLegend}});function oT(e,t=!0){let r=kL[e.category];return t?r.toLowerCase():r}var CW,NW,PW,r9,MW,LW,i9,LL,o9,Nx,kW,a9,s9,wW,l9,c9,d9,u9,p9,f9,m9,_9,h9,g9,y9,OW,v9,b9,E9,S9,WW,FW,T9,A9,I9,x9,R9,D9,zW,C9,N9,P9,M9,L9,k9,kL,Px,w9,O9,W9,F9,YC,z9,B9,G9,BW,V9,j9,U9,H9,K9,GW,VW,jW,J9,q9,X9,Y9,$9,Q9,Z9,eV,wL,tV,FEe=bt({"src/compiler/types.ts"(){"use strict";CW=(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))(CW||{}),NW=(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))(NW||{}),PW=(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))(PW||{}),r9=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(r9||{}),MW=(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))(MW||{}),LW=(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))(LW||{}),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||{}),LL=(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))(LL||{}),o9=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(o9||{}),Nx=class{},kW=(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))(kW||{}),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||{}),wW=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(wW||{}),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||{}),OW=(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))(OW||{}),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||{}),FW=(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))(FW||{}),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||{}),zW=(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))(zW||{}),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||{}),kL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(kL||{}),Px=(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))(Px||{}),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||{}),YC=(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))(YC||{}),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||{}),BW=(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))(BW||{}),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||{}),GW=(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))(GW||{}),VW=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(VW||{}),jW=(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))(jW||{}),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||{}),wL={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 $C(e){let t=5381;for(let r=0;r{K.isClosed=!0,fI(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,KW[w.pollingInterval]),w.length?N(w.pollingInterval):(R.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 BEe(e,D,j,K,Y);function Y(B,ce,z){z?(B.unchangedPolls=0,D!==r&&(D[ce]=void 0,S(B))):B.unchangedPolls!==WL[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 y7e(e,t,r,i){let o=qp(),s=i?new Map:void 0,l=new Map,d=Pd(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(!Co(N))return;let D=_o(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 v7e(e){let t=[],r=0,i;return o;function o(d,p){let h={fileName:d,callback:p,mtime:_I(e,d)};return t.push(h),l(),{close:()=>{h.isClosed=!0,fI(t,h)}}}function s(){i=void 0,r=BEe(e,t,r,KW[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function GEe(e,t,r,i,o){let l=Pd(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&&(!xx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Rf(p)))}}}function b7e(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 OL(e){return Cne(e)}function xne(e){Cne=e}function E7e({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=Ax(!t),S=Pd(t);return(z,ee,me,ge)=>me?A(z,ge,ee):e(z,ee,me,ge);function A(z,ee,me){let ge=S(z),q=p.get(ge);q?q.refCount++:(q={watcher:e(z,re=>{B(re,ee)||(ee?.synchronousWatchDirectory?(N(ge,re),Y(z,ge,ee)):D(z,ge,re,ee))},!1,ee),refCount:1,childWatches:Xe},p.set(ge,q),Y(z,ge,ee));let J=me&&{dirName:z,callback:me};return J&&h.add(ge,J),{dirName:z,close:()=>{let re=R.checkDefined(p.get(ge));J&&h.remove(ge,J),re.refCount--,!re.refCount&&(p.delete(ge),Rf(re),re.childWatches.forEach(Km))}}}function N(z,ee,me){let ge,q;Co(ee)?ge=ee:q=ee,h.forEach((J,re)=>{if(!(q&&q.get(re)===!0)&&(re===z||ao(z,re)&&z[re.length]===rl))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,ee,me,ge){let q=p.get(ee);if(q&&o(z,1)){w(z,ee,me,ge);return}N(ee,me),K(q)}function w(z,ee,me,ge){let q=m.get(ee);q?q.fileNames.push(me):m.set(ee,{dirName:z,options:ge,fileNames:[me]}),y&&(d(y),y=void 0),y=l(j,1e3,"timerToUpdateChildWatches")}function j(){y=void 0,OL(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let z=Js(),ee=new Map;for(;!y&&m.size;){let ge=m.entries().next();R.assert(!ge.done);let{value:[q,{dirName:J,options:re,fileNames:pe}]}=ge;m.delete(q);let xe=Y(J,q,re);N(q,ee,xe?void 0:pe)}OL(`sysLog:: invokingWatchers:: Elapsed:: ${Js()-z}ms:: ${m.size}`),h.forEach((ge,q)=>{let J=ee.get(q);J&&ge.forEach(({callback:re,dirName:pe})=>{So(J)?J.forEach(re):re(pe)})});let me=Js()-z;OL(`sysLog:: Elapsed:: ${me}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(z){if(!z)return;let ee=z.childWatches;z.childWatches=Xe;for(let me of ee)me.close(),K(p.get(S(me.dirName)))}function Y(z,ee,me){let ge=p.get(ee);if(!ge)return!1;let q,J=IW(o(z,1)?to(i(z),xe=>{let fe=_o(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,Km,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,ee){return gt(FL,me=>ce(z,me))||VEe(z,ee,t,r)}function ce(z,ee){return z.includes(ee)?!0:t?!1:S(z).includes(ee)}}function S7e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function T7e(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 VEe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(d3(e,t?.excludeFiles,r,i())||d3(e,t?.excludeDirectories,r,i()))}function jEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?ma(Yr(e,l)):e;(!l||!VEe(d,r,i,o))&&t(d)}}}function Rne({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,ee=!1;return{watchFile:me,watchDirectory:pe};function me(ve,Ie,De,Le){Le=J(Le,E);let Et=R.checkDefined(Le.watchFile);switch(Et){case 0:return ne(ve,Ie,250,void 0);case 1:return ne(ve,Ie,De,void 0);case 2:return ge()(ve,Ie,De,void 0);case 3:return q()(ve,Ie,void 0,void 0);case 4:return he(ve,0,T7e(ve,Ie,t),!1,De,Lw(Le));case 5:return ce||(ce=y7e(he,l,t,N)),ce(ve,Ie,De,Lw(Le));default:R.assertNever(Et)}}function ge(){return Y||(Y=g7e({getModifiedTime:t,setTimeout:r}))}function q(){return B||(B=v7e({getModifiedTime:t,setTimeout:r}))}function J(ve,Ie){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":Ie=!0;default:return Ie?re(5,1,ve):{watchFile:4}}}function re(ve,Ie,De){let Le=De?.fallbackPolling;return{watchFile:ve,fallbackPolling:Le===void 0?Ie:Le}}function pe(ve,Ie,De,Le){return p?he(ve,1,jEe(ve,Ie,Le,l,d),De,500,Lw(Le)):(z||(z=E7e({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:xe,realpath:m,setTimeout:r,clearTimeout:i})),z(ve,Ie,De,Le))}function xe(ve,Ie,De,Le){R.assert(!De);let Et=fe(Le),be=R.checkDefined(Et.watchDirectory);switch(be){case 1:return ne(ve,()=>Ie(ve),500,void 0);case 2:return ge()(ve,()=>Ie(ve),500,void 0);case 3:return q()(ve,()=>Ie(ve),void 0,void 0);case 0:return he(ve,1,jEe(ve,Ie,Le,l,d),De,500,Lw(Et));default:R.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 Ie=ve?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ie!==void 0?Ie:void 0}}}function ne(ve,Ie,De,Le){return GEe(w,l,ve,Ie,Et=>e(ve,Et,De,Le))}function he(ve,Ie,De,Le,Et,be){return GEe(Le?K:j,l,ve,De,ze=>Ce(ve,Ie,ze,Le,Et,be))}function Ce(ve,Ie,De,Le,Et,be){let ze,tt;A&&(ze=ve.substring(ve.lastIndexOf(rl)),tt=ze.slice(rl.length));let Wt=s(ve,Ie)?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(ee)return D(`sysLog:: ${ve}:: Defaulting to watchFile`),Zt();try{let Dn=(Ie===1||!N?o:Ge)(ve,Le,A?ft:De);return Dn.on("error",()=>{De("rename",""),_t(en)}),Dn}catch(Dn){return ee||(ee=Dn.code==="ENOSPC"),D(`sysLog:: ${ve}:: Changing to watchFile`),Zt()}}function ft(Dn,Kn){let pn;if(Kn&&Sl(Kn,"~")&&(pn=Kn,Kn=Kn.slice(0,Kn.length-1)),Dn==="rename"&&(!Kn||Kn===tt||Sl(Kn,ze))){let Yt=t(ve)||Mp;pn&&De(Dn,pn,Yt),De(Dn,Kn,Yt),A?_t(Yt===Mp?en:Je):Yt===Mp&&_t(en)}else pn&&De(Dn,pn),De(Dn,Kn)}function Zt(){return me(ve,S7e(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,Ie,De){let Le=t(ve)||Mp;return o(ve,Ie,(Et,be,ze)=>{Et==="change"&&(ze||(ze=t(ve)||Mp),ze.getTime()===Le.getTime())||(Le=ze||t(ve)||Mp,De(Et,be,Le))})}}function Dne(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 UEe(e){gd=e}var rV,UW,Mp,HW,KW,WL,FL,Cne,iV,gd,A7e=bt({"src/compiler/sys.ts"(){"use strict";Zo(),rV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(rV||{}),UW=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(UW||{}),Mp=new Date(0),HW={Low:32,Medium:64,High:256},KW=Ine(HW),WL=Ine(HW),FL=["/node_modules/.","/.git","/.#"],Cne=qa,iV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(iV||{}),gd=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=Jr("fs"),s=Jr("path"),l=Jr("os"),d;try{d=Jr("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=Jr("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=Eu(()=>process.cwd()),{watchFile:K,watchDirectory:Y}=Rne({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:OL}),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:Ie,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:$C,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||zo(process.execArgv,"--cpu-prof")||zo(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{Jr("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 ft=Tse(Je,_t,B);return{module:Jr(ft),modulePath:ft,error:void 0}}catch(ft){return{module:void 0,modulePath:void 0,error:ft}}}};return B;function ce(_t){return o.statSync(_t,{throwIfNoEntry:!1})}function z(_t,Je){if(p)return Je(),!1;let ft=Jr("inspector");if(!ft||!ft.Session)return Je(),!1;let Zt=new ft.Session;return Zt.connect(),Zt.post("Profiler.enable",()=>{Zt.post("Profiler.start",()=>{p=Zt,h=_t,Je()})}),!0}function ee(_t){let Je=0,ft=new Map,Zt=Md(s.dirname(D)),en=`file://${lh(Zt)===1?"":"/"}${Zt}`;for(let Dn of _t.nodes)if(Dn.callFrame.url){let Kn=Md(Dn.callFrame.url);mm(en,Kn,A)?Dn.callFrame.url=gI(en,Kn,en,Pd(A),!0):i.test(Kn)||(Dn.callFrame.url=(ft.has(Kn)?ft:ft.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",(ft,{profile:Zt})=>{var en;if(!ft){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(ee(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 ft=Je.toUpperCase();return Je===ft?Je.toLowerCase():ft})}function re(_t,Je,ft){o.watchFile(_t,{persistent:!0,interval:ft},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,ft){return o.watch(_t,w?{persistent:!0,recursive:!!Je}:{persistent:!0},ft)}function xe(_t,Je){let ft;try{ft=o.readFileSync(_t)}catch{return}let Zt=ft.length;if(Zt>=2&&ft[0]===254&&ft[1]===255){Zt&=-2;for(let en=0;en=2&&ft[0]===255&&ft[1]===254?ft.toString("utf16le",2):Zt>=3&&ft[0]===239&&ft[1]===187&&ft[2]===191?ft.toString("utf8",3):ft.toString("utf8")}function fe(_t,Je){var ft,Zt;(ft=iu)==null||ft.logStartReadFile(_t);let en=xe(_t,Je);return(Zt=iu)==null||Zt.logStopReadFile(),en}function ne(_t,Je,ft){var Zt;(Zt=iu)==null||Zt.logEvent("WriteFile: "+_t),ft&&(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=iu)==null||Je.logEvent("ReadDir: "+(_t||"."));try{let ft=o.readdirSync(_t||".",{withFileTypes:!0}),Zt=[],en=[];for(let Dn of ft){let Kn=typeof Dn=="string"?Dn:Dn.name;if(Kn==="."||Kn==="..")continue;let pn;if(typeof Dn=="string"||Dn.isSymbolicLink()){let Yt=Yr(_t,Kn);try{if(pn=ce(Yt),!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 e4}}function Ce(_t,Je,ft,Zt,en){return lU(_t,Je,ft,Zt,A,process.cwd(),en,he,Et)}function Ge(_t,Je){let ft=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=ft}}function ve(_t){return Ge(_t,0)}function Ie(_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 ft=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=ce(_t))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=ft}}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&&Dne(r),r})(),gd&&gd.getEnvironmentVariable&&(h7e(gd),R.setAssertionLevel(/^development$/i.test(gd.getEnvironmentVariable("NODE_ENV"))?1:0)),gd&&gd.debugMode&&(R.isDebugging=!0)}});function oV(e){return e===47||e===92}function Nne(e){return JW(e)<0}function cp(e){return JW(e)>0}function aV(e){let t=JW(e);return t>0&&t===e.length}function QC(e){return JW(e)!==0}function Lp(e){return/^\.\.?($|[\\/])/.test(e)}function sV(e){return!QC(e)&&!Lp(e)}function hI(e){return ic(e).includes(".")}function Tl(e,t){return e.length>t.length&&Sl(e,t)}function Sc(e,t){for(let r of t)if(Tl(e,r))return!0;return!1}function Ry(e){return e.length>0&&oV(e.charCodeAt(e.length-1))}function HEe(e){return e>=97&&e<=122||e>=65&&e<=90}function I7e(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 JW(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?rl:VL,2);return i<0?e.length:i+1}if(HEe(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(Lne);if(r!==-1){let i=r+Lne.length,o=e.indexOf(rl,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&HEe(e.charCodeAt(o+1))){let d=I7e(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 lh(e){let t=JW(e);return t<0?~t:t}function oi(e){e=Md(e);let t=lh(e);return t===e.length?e:(e=Yb(e),e.slice(0,Math.max(t,e.lastIndexOf(rl))))}function ic(e,t,r){if(e=Md(e),lh(e)===e.length)return"";e=Yb(e);let o=e.slice(Math.max(lh(e),e.lastIndexOf(rl)+1)),s=t!==void 0&&r!==void 0?Mx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function KEe(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 x7e(e,t,r){if(typeof t=="string")return KEe(e,t,r)||"";for(let i of t){let o=KEe(e,i,r);if(o)return o}return""}function Mx(e,t,r){if(t)return x7e(Yb(e),t,r?Xb:nT);let i=ic(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function R7e(e,t){let r=e.substring(0,t),i=e.substring(t).split(rl);return i.length&&!Qs(i)&&i.pop(),[r,...i]}function zc(e,t=""){return e=Yr(t,e),R7e(e,lh(e))}function Iv(e,t){return e.length===0?"":(e[0]&&Bc(e[0]))+e.slice(1,t).join(rl)}function Md(e){return e.includes("\\")?e.replace(XEe,rl):e}function aT(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=Md(e));for(let r of t)r&&(r=Md(r),!e||lh(r)!==0?e=r:e=Bc(e)+r);return e}function xv(e,...t){return ma(gt(t)?Yr(e,...t):Md(e))}function zL(e,t){return aT(zc(e,t))}function _o(e,t){return Iv(zL(e,t))}function ma(e){if(e=Md(e),!XW.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!XW.test(e)))return e;let r=Iv(aT(zc(e)));return r&&Ry(e)?Bc(r):r}function D7e(e){return e.length===0?"":e.slice(1).join(rl)}function lV(e,t){return D7e(zL(e,t))}function nl(e,t,r){let i=cp(e)?ma(e):_o(e,t);return r(i)}function Yb(e){return Ry(e)?e.substr(0,e.length-1):e}function Bc(e){return Ry(e)?e:e+rl}function y0(e){return!QC(e)&&!Lp(e)?"./"+e:e}function BL(e,t,r,i){let o=r!==void 0&&i!==void 0?Mx(e,r,i):Mx(e);return o?e.slice(0,e.length-o.length)+(ao(t,".")?t:"."+t):e}function Pne(e,t){let r=CH(e);return r?e.slice(0,e.length-r.length)+(ao(t,".")?t:"."+t):BL(e,t)}function Mne(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,lh(e)),o=t.substring(0,lh(t)),s=EW(i,o);if(s!==0)return s;let l=e.substring(i.length),d=t.substring(o.length);if(!XW.test(l)&&!XW.test(d))return r(l,d);let p=aT(zc(e)),h=aT(zc(t)),m=Math.min(p.length,h.length);for(let y=1;y0==lh(t)>0,"Paths must either both be absolute or both be relative");let s=dV(e,t,(typeof r=="boolean"?r:!1)?Xb:nT,typeof r=="function"?r:Zs);return Iv(s)}function ZC(e,t,r){return cp(e)?gI(t,e,t,r,!1):e}function GL(e,t,r){return y0(_m(oi(e),t,r))}function gI(e,t,r,i,o){let s=dV(xv(r,e),xv(r,t),nT,i),l=s[0];if(o&&cp(l)){let d=l.charAt(0)===rl?"file://":"file:///";s[0]=d+l}return Iv(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 qW(e){return Sl(e,"/node_modules")}var rl,VL,Lne,XEe,XW,C7e=bt({"src/compiler/path.ts"(){"use strict";Zo(),rl="/",VL="\\",Lne="://",XEe=/\\/g,XW=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});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,N7e=bt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";FEe(),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 ou(e){return e>=80}function kne(e){return e===32||ou(e)}function jL(e,t){if(e=2?jL(e,r0e):t===1?jL(e,t0e):jL(e,ZEe)}function P7e(e,t){return t>=2?jL(e,i0e):t===1?jL(e,n0e):jL(e,e0e)}function M7e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function da(e){return l0e[e]}function v0(e){return Fne.get(e)}function yI(e){let t=[],r=0,i=0;for(;r127&&Ud(o)&&(t.push(i),i=r);break}}return t.push(i),t}function UL(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):$W(Dg(e),t,r,e.text,i)}function $W(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:R.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?AL(e,yI(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 Ud(e){return e===10||e===13||e===8232||e===8233}function nN(e){return e>=48&&e<=57}function YEe(e){return nN(e)||e>=65&&e<=70||e>=97&&e<=102}function L7e(e){return e<=1114111}function QW(e){return e>=48&&e<=55}function wne(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 Pa(e,t,r,i,o){if(Jm(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 rN(e,t){if(R.assert(t>=0),t===0||Ud(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+eF=0&&r127&&Cg(A)){y&&Ud(A)&&(m=!0),r++;continue}break e}}return y&&(S=o(d,p,h,m,s,S)),S}function KL(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 One(e,t,r,i,o){return fV(!0,e,t,!1,r,i,o)}function Wne(e,t,r,i,o){return fV(!0,e,t,!0,r,i,o)}function $Ee(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Hh(e,t){return One(e,t,$Ee,void 0,void 0)}function $b(e,t){return Wne(e,t,$Ee,void 0,void 0)}function ZW(e){let t=mV.exec(e);if(t)return t[0]}function Kh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&YW(e,t)}function Qb(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&&P7e(e,t)}function Yp(e,t,r){let i=Rv(e,0);if(!Kh(i,t))return!1;for(let o=Zb(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:ft,scanJsxIdentifier:Yt,scanJsxAttributeValue:qt,reScanJsxAttributeValue:hi,reScanJsxToken:Zt,reScanLessThanToken:en,reScanHashToken:Dn,reScanQuestionToken:Kn,reScanInvalidIdentifier:Le,scanJsxToken:pn,scanJsDocToken:Li,scanJSDocCommentTextToken:uo,scan:Ie,getText:on,clearCommentDirectives:$e,setText:Ot,setScriptTarget:si,setLanguageVariant:yi,setScriptKind:$i,setJSDocParsingMode:Ao,setOnError:In,resetTokenState:ua,setTextPos:ua,setInJSDocType:Ba,tryScan:Sr,lookAhead:jr,scanRange:Zn};return R.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(nN(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(!ee())A|=8192,kn=""+ +S;else if(!S)kn="0";else{S=""+parseInt(S,8),A|=32;let se=E===41,ke=(se?"-":"")+"0o"+(+S).toString(8);return se&&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 se=p,ke=B();ke?(ct=d.substring(lt,se)+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 se=ve();return z(vn),se}}function z(vn,kn){if(!Kh(Rv(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 ee(){let vn=p,kn=!0;for(;nN(d.charCodeAt(p));)QW(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&&se<=70)se+=32;else if(!(se>=48&&se<=57||se>=97&&se<=102))break;ct.push(se),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||!nN(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,kx(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?"":kx(kn)}function fe(){if(p+5=0&&Qb(Be,e)){p+=3,A|=8,vn+=xe(),kn=p;continue}if(Be=fe(),!(Be>=0&&Qb(Be,e)))break;A|=1024,vn+=d.substring(kn,p),vn+=kx(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=QEe.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,!nN(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=YN(S)+"n"),p++,10):(S=""+(A&128?parseInt(S.slice(2),2):A&256?parseInt(S.slice(2),8):+S),9)}function Ie(){m=p,A=0;let vn=!1;for(;;){if(y=p,p>=h)return E=1;let kn=Rv(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&&Kh(Be,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let ct=fe();return ct>=0&&Kh(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=Rv(d,p+1);if(lt===92){p++;let ke=ne();if(ke>=0&&Kh(ke,e))return p+=3,A|=8,S="#"+xe()+he(),E=81;let st=fe();if(st>=0&&Kh(st,e))return p+=6,A|=1024,S="#"+String.fromCharCode(st)+he(),E=81;p--}return Kh(lt,e)?(p++,Et(lt,e)):(S="#",Y(f.Invalid_character,p++,Zb(kn))),E=81;default:let Rt=Et(kn,e);if(Rt)return E=Rt;if(y_(kn)){p+=Zb(kn);continue}else if(Ud(kn)){A|=1,p+=Zb(kn);continue}let se=Zb(kn);return Y(f.Invalid_character,p,se),p+=se,E=0}}}function De(){switch(j){case 0:return!0;case 1:return!1}return w!==3&&w!==4?!0:j===3?!1:s0e.test(d.slice(m,p))}function Le(){R.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=y=m,A=0;let vn=Rv(d,p),kn=Et(vn,99);return kn?E=kn:(p+=Zb(vn),E)}function Et(vn,kn){let Be=vn;if(Kh(Be,kn)){for(p+=Zb(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 Yt(){if(ou(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=Rv(d,p);switch(p+=Zb(vn),vn){case 9:case 11:case 12:case 32:for(;p=0&&Kh(kn,e))return p+=3,A|=8,S=xe()+he(),E=Ce();let Be=fe();return Be>=0&&Kh(Be,e)?(p+=6,A|=1024,S=String.fromCharCode(Be)+he(),E=Ce()):(p++,E=0)}if(Kh(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 Rv(e,t){return e.codePointAt(t)}function Zb(e){return e>=65536?2:1}function k7e(e){if(R.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 kx(e){return c0e(e)}var qL,QEe,Fne,ZEe,e0e,t0e,n0e,r0e,i0e,o0e,a0e,s0e,l0e,eF,mV,c0e,w7e=bt({"src/compiler/scanner.ts"(){"use strict";Zo(),qL={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},QEe=new Map(Object.entries(qL)),Fne=new Map(Object.entries({...qL,"{":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})),ZEe=[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],e0e=[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],t0e=[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],n0e=[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],r0e=[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],i0e=[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],o0e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,a0e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,s0e=/@(?:see|link)/i,l0e=M7e(Fne),eF=7,mV=/^#!.*/,c0e=String.fromCodePoint?e=>String.fromCodePoint(e):k7e}});function $c(e){return Lp(e)||cp(e)}function wx(e){return UC(e,UN)}function XL(e){switch(rs(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 Xl(e){return e.start+e.length}function zne(e){return e.length===0}function _V(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Bne(e,t){return t.start>=e.start&&Xl(t)<=Xl(e)}function d0e(e,t){return Gne(e,t)!==void 0}function Gne(e,t){let r=jne(e,t);return r&&r.length===0?void 0:r}function u0e(e,t){return $L(e.start,e.length,t.start,t.length)}function tF(e,t,r){return $L(e.start,e.length,t,r)}function $L(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Vne(e,t){return t<=Xl(e)&&t>=e.start}function jne(e,t){let r=Math.max(e.start,t.start),i=Math.min(Xl(e),Xl(t));return r<=i?pc(r,i):void 0}function yd(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function pc(e,t){return yd(e,t-e)}function iN(e){return yd(e.span.start,e.newLength)}function Une(e){return zne(e.span)&&e.newLength===0}function QL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Hne(e){if(e.length===0)return m2;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=Xl(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 vr(e){return Vi(e.escapedText)}function tE(e){let t=v0(e.escapedText);return t?ri(t,Wu):void 0}function vl(e){return e.valueDeclaration&&su(e.valueDeclaration)?vr(e.valueDeclaration.name):Vi(e.escapedName)}function m0e(e){let t=e.parent.parent;if(t){if(Kd(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(Kd(t.statement)||ht(t.statement))return gV(t.statement);break}}}}function gV(e){let t=No(e);return t&&Fe(t)?t:void 0}function ZL(e,t){return!!(au(e)&&Fe(e.name)&&vr(e.name)===vr(t)||Ll(e)&>(e.declarationList.declarations,r=>ZL(r,t)))}function Xne(e){return e.name||m0e(e)}function au(e){return!!e.name}function nF(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(Gl(r)){case 1:case 4:case 5:case 3:return QF(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Xne(e);case 347:return m0e(e);case 277:{let{expression:r}=e;return Fe(r)?r:void 0}case 212:let t=e;if($F(t))return t.argumentExpression}return e.name}function No(e){if(e!==void 0)return nF(e)||(ks(e)||zs(e)||ed(e)?rF(e):void 0)}function rF(e){if(e.parent){if(hc(e.parent)||Xa(e.parent))return e.parent.name;if(pr(e.parent)&&e===e.parent.right){if(Fe(e.parent.left))return e.parent.left;if(Ls(e.parent.left))return QF(e.parent.left)}else if(Oi(e.parent)&&Fe(e.parent.name))return e.parent.name}else return}function Dv(e){if(bf(e))return Vr(e.modifiers,Ed)}function b0(e){if($r(e,98303))return Vr(e.modifiers,Ta)}function _0e(e,t){if(e.name)if(Fe(e.name)){let r=e.name.escapedText;return t2(e.parent,t).filter(i=>$m(i)&&Fe(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);R.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=t2(e.parent,t).filter($m);if(rnm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function $ne(e){return h0e(e,!1)}function Qne(e){return h0e(e,!0)}function Zne(e){return!!Uf(e,$m)}function ere(e){return Uf(e,l1)}function tre(e){return oF(e,q4)}function yV(e){return Uf(e,xae)}function g0e(e){return Uf(e,cH)}function nre(e){return Uf(e,cH,!0)}function y0e(e){return Uf(e,dH)}function rre(e){return Uf(e,dH,!0)}function v0e(e){return Uf(e,uH)}function ire(e){return Uf(e,uH,!0)}function b0e(e){return Uf(e,pH)}function ore(e){return Uf(e,pH,!0)}function are(e){return Uf(e,K4,!0)}function vV(e){return Uf(e,fH)}function sre(e){return Uf(e,fH,!0)}function bV(e){return Uf(e,jk)}function iF(e){return Uf(e,mH)}function lre(e){return Uf(e,J4)}function E0e(e){return Uf(e,nm)}function EV(e){return Uf(e,X4)}function nE(e){let t=Uf(e,SP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function rE(e){let t=Uf(e,SP);return!t&&To(e)&&(t=Gr(Wx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function e2(e){let t=lre(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=nE(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(gp(i)){let o=Gr(i.members,$I);return o&&o.type}if(gh(i)||WR(i))return i.type}}function t2(e,t){var r;if(!j2(e))return Xe;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=gj(e,t);R.assert(o.length<2||o[0]!==o[1]),i=va(o,s=>Ym(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function iE(e){return t2(e,!1)}function S0e(e){return t2(e,!0)}function Uf(e,t,r){return Gr(t2(e,r),t)}function oF(e,t){return iE(e).filter(t)}function T0e(e,t){return iE(e).filter(r=>r.kind===t)}function n2(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:W7e(t)).join("")}function W7e(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 Cv(e){if(vE(e)){if(FR(e.parent)){let t=sR(e.parent);if(t&&Nn(t.tags))return va(t.tags,r=>nm(r)?r.typeParameters:void 0)}return Xe}if(qf(e))return R.assert(e.parent.kind===327),va(e.parent.tags,t=>nm(t)?t.typeParameters:void 0);if(e.typeParameters||Wae(e)&&e.typeParameters)return e.typeParameters;if(or(e)){let t=p6(e);if(t.length)return t;let r=rE(e);if(r&&gh(r)&&r.typeParameters)return r.typeParameters}return Xe}function Fx(e){return e.constraint?e.constraint:nm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Jh(e){return e.kind===80||e.kind===81}function aF(e){return e.kind===178||e.kind===177}function sF(e){return kr(e)&&!!(e.flags&64)}function SV(e){return Xs(e)&&!!(e.flags&64)}function sT(e){return ra(e)&&!!(e.flags&64)}function Hd(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function aN(e){return Hd(e)&&!r1(e)&&!!e.questionDotToken}function lF(e){return aN(e.parent)&&e.parent.expression===e}function sN(e){return!Hd(e.parent)||aN(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 Ql(e,8)}function cF(e){return r1(e)&&!!(e.flags&64)}function lN(e){return e.kind===252||e.kind===251}function AV(e){return e.kind===280||e.kind===279}function cre(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function IV(e){return cre(e)||e.kind===307||e.kind===311}function cN(e){return e.kind===355||e.kind===348}function A0e(e){return r2(e.kind)}function r2(e){return e>=166}function xV(e){return e>=0&&e<=165}function vI(e){return xV(e.kind)}function E0(e){return Is(e,"pos")&&Is(e,"end")}function dN(e){return 9<=e&&e<=15}function S0(e){return dN(e.kind)}function RV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Nv(e){return 15<=e&&e<=18}function dre(e){return Nv(e.kind)}function dF(e){let t=e.kind;return t===17||t===18}function bI(e){return Qu(e)||Jd(e)}function i2(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 ure(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 oE(e){return i2(e)||ure(e)}function DV(e){return e.kind===11||Nv(e.kind)}function pre(e){return Ca(e)||Fe(e)}function il(e){var t;return Fe(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function lT(e){var t;return Ki(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function o2(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function su(e){return(jo(e)||SI(e))&&Ki(e.name)}function zx(e){return kr(e)&&Ki(e.name)}function Ny(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 uN(e){return!!(kI(e)&31)}function CV(e){return uN(e)||e===126||e===164||e===129}function Ta(e){return Ny(e.kind)}function Xu(e){let t=e.kind;return t===166||t===80}function oc(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function cT(e){let t=e.kind;return t===80||t===206||t===207}function Yo(e){return!!e&&EI(e.kind)}function Bx(e){return!!e&&(EI(e.kind)||Il(e))}function Fs(e){return e&&I0e(e.kind)}function pN(e){return e.kind===112||e.kind===97}function I0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function EI(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return I0e(e)}}function NV(e){return Yi(e)||N_(e)||Ho(e)&&Yo(e.parent)}function Qc(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function Pv(e){return e&&(e.kind===177||e.kind===178)}function ku(e){return jo(e)&&I_(e)}function fre(e){return or(e)&&H6(e)?(!N0(e)||!Bv(e.expression))&&!bT(e,!0):e.parent&&di(e.parent)&&jo(e)&&!I_(e)}function SI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function x0e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function ol(e){return Ta(e)||Ed(e)}function dT(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function uF(e){return dT(e)||Qc(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 mre(e){switch(e.kind){case 184:case 185:return!0}return!1}function $o(e){if(e){let t=e.kind;return t===207||t===206}return!1}function fN(e){let t=e.kind;return t===209||t===210}function pF(e){let t=e.kind;return t===208||t===232}function a2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function _re(e){return Oi(e)||To(e)||l2(e)||c2(e)}function s2(e){return PV(e)||MV(e)}function PV(e){switch(e.kind){case 206:case 210:return!0}return!1}function l2(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 c2(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Lc(e,!0)}function hre(e){let t=e.kind;return t===211||t===166||t===205}function gre(e){let t=e.kind;return t===211||t===166}function LV(e){return T0(e)||B0(e)}function T0(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 TI(e){let t=e.kind;return t===228||t===15}function Yu(e){return R0e(gm(e).kind)}function R0e(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 D0e(gm(e).kind)}function D0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return R0e(e)}}function yre(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function vre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return S0(e)}}function ht(e){return F7e(gm(e).kind)}function F7e(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 D0e(e)}}function uT(e){let t=e.kind;return t===216||t===234}function C0e(e){return oH(e)||V4(e)}function Mv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Mv(e.statement,t)}return!1}function bre(e){return kl(e)||$l(e)}function Ere(e){return gt(e,bre)}function fF(e){return!v2(e)&&!kl(e)&&!$r(e,32)&&!Ld(e)}function d2(e){return v2(e)||kl(e)||$r(e,32)}function Gx(e){return e.kind===249||e.kind===250}function mF(e){return Ho(e)||ht(e)}function wV(e){return Ho(e)}function vf(e){return Uc(e)||ht(e)}function Sre(e){let t=e.kind;return t===268||t===267||t===80}function N0e(e){let t=e.kind;return t===268||t===267}function P0e(e){let t=e.kind;return t===80||t===267}function OV(e){let t=e.kind;return t===275||t===274}function u2(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 ch(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 z7e(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 Tre(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 Are(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 Kd(e){return e.kind===168?e.parent&&e.parent.kind!==352||or(e):z7e(e.kind)}function Ire(e){return Tre(e.kind)}function p2(e){return Are(e.kind)}function Hi(e){let t=e.kind;return Are(t)||Tre(t)||B7e(e)}function B7e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!D0(e)}function xre(e){let t=e.kind;return Are(t)||Tre(t)||t===241}function Rre(e){let t=e.kind;return t===283||t===166||t===80}function mN(e){let t=e.kind;return t===110||t===80||t===211||t===295}function f2(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function _F(e){let t=e.kind;return t===291||t===293}function Dre(e){let t=e.kind;return t===11||t===294}function lu(e){let t=e.kind;return t===286||t===285}function hF(e){let t=e.kind;return t===296||t===297}function Vx(e){return e.kind>=316&&e.kind<=357}function gF(e){return e.kind===327||e.kind===326||e.kind===328||AI(e)||jx(e)||BT(e)||vE(e)}function jx(e){return e.kind>=334&&e.kind<=357}function Py(e){return e.kind===178}function Lv(e){return e.kind===177}function kp(e){if(!j2(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function yF(e){return!!e.type}function kv(e){return!!e.initializer}function pT(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 vF(e){return e.kind===183||e.kind===233}function Cre(e){let t=Nre;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?bo($b(l,Pa(l,s.end+1,!1,!0)),Hh(l,e.pos)):$b(l,Pa(l,e.pos,!1,!0));return gt(d)&&M0e(Ja(d),t)}let i=r&&ij(r,t);return!!gn(i,o=>M0e(o,t))}var m2,BV,Nre,G7e=bt({"src/compiler/utilitiesPublic.ts"(){"use strict";Zo(),m2=QL(yd(0,0),0),BV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Nre=1073741823}});function dl(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Pre(e,t){return Vr(e.declarations||Xe,r=>r.kind===t)}function oa(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function dh(e){return(e.flags&33554432)!==0}function V7e(){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 bF(e,t){return e.configFilePath!==t.configFilePath||Mre(e,t)}function Mre(e,t){return Ux(e,t,p3)}function Lre(e,t){return Ux(e,t,XH)}function Ux(e,t,r){return e!==t&&r.some(i=>!z6(D6(e,i),D6(t,i)))}function kre(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 uh(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function EF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function _N(e){let t=vk.getText();try{return e(vk),vk.getText()}finally{vk.clear(),vk.writeKeyword(t)}}function _2(e){return e.end-e.pos}function GV(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function wre(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&&j7e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function SF(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,d=l&&(pu(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(Sh+"@types/")?`@types/${$R(o)}`:o]]),p=d?Fo(void 0,d[0],...d[1]):t.typesPackageExists(o)?Fo(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,$R(o)):t.packageBundlesTypes(o)?Fo(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):Fo(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,$R(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function j7e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function TF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function wv(e){return`${TF(e)}@${e.version}`}function Ore(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){R.assert(e.length===t.length);for(let o=0;o=0),Dg(t)[e]}function L0e(e){let t=Gn(e),r=ys(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function g2(e,t){R.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(R.assert(Ud(o.charCodeAt(l)));s<=l&&Ud(o.charCodeAt(l));)l--;return l}}function IF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Bl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Hf(e){return!Bl(e)}function Fre(e,t){return ml(e)?t===e.expression:Il(e)?t===e.modifiers:_p(e)?t===e.initializer:jo(e)?t===e.questionToken&&ku(e):hc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||y2(e.modifiers,t,ol):Zu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||y2(e.modifiers,t,ol):Kl(e)?t===e.exclamationToken:Ml(e)?t===e.typeParameters||t===e.type||y2(e.typeParameters,t,ml):Qp(e)?t===e.typeParameters||y2(e.typeParameters,t,ml):hp(e)?t===e.typeParameters||t===e.type||y2(e.typeParameters,t,ml):Vk(e)?t===e.modifiers||y2(e.modifiers,t,ol):!1}function y2(e,t,r){return!e||So(t)||!r(t)?!1:zo(e,t)}function k0e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${ys(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Oo(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 aE(e,t,r){return Bl(e)?e.pos:Vx(e)||e.kind===12?Pa((t||Gn(e)).text,e.pos,!1,!0):r&&kp(e)?aE(e.jsDoc[0],t):e.kind===358&&e._children.length>0?aE(e._children[0],t,r):Pa((t||Gn(e)).text,e.pos,!1,!1,N2(e))}function HV(e,t){let r=!Bl(e)&&Am(e)?cI(e.modifiers,Ed):void 0;return r?Pa((t||Gn(e)).text,r.end):aE(e,t)}function A0(e,t,r=!1){return hN(e.text,t,r)}function H7e(e){return!!Fn(e,Z0)}function RF(e){return!!($l(e)&&e.exportClause&&vh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function hN(e,t,r=!1){if(Bl(t))return"";let i=e.substring(r?t.pos:Pa(e,t.pos),t.end);return H7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function fc(e,t=!1){return A0(Gn(e),e,t)}function K7e(e){return e.pos}function Kx(e,t){return Sy(e,t,K7e,el)}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 Bre(e,t,r){if(t&&J7e(e,r))return A0(t,e);switch(e.kind){case 11:{let i=r&2?wj:r&1||za(e)&16777216?eg:ek;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?eg:ek,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 R.fail(`Literal kind '${e.kind}' not accounted for.`)}function J7e(e,t){if(qs(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!L4(e)}function Gre(e){return Co(e)?'"'+ek(e)+'"':""+e}function Vre(e){return ic(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function KV(e){return(Cy(e)&7)!==0||JV(e)}function JV(e){let t=A_(e);return t.kind===260&&t.parent.kind===299}function Ld(e){return Yl(e)&&(e.name.kind===11||E_(e))}function DF(e){return Yl(e)&&e.name.kind===11}function qV(e){return Yl(e)&&Ca(e.name)}function jre(e){return Yl(e)||Fe(e)}function gN(e){return q7e(e.valueDeclaration)}function q7e(e){return!!e&&e.kind===267&&!e.body}function Ure(e){return e.kind===312||e.kind===267||Bx(e)}function E_(e){return!!(e.flags&2048)}function I0(e){return Ld(e)&&XV(e)}function XV(e){switch(e.parent.kind){case 312:return sc(e.parent);case 268:return Ld(e.parent.parent)&&Yi(e.parent.parent.parent)&&!sc(e.parent.parent.parent)}return!1}function YV(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!I0(r)&&!(Yl(r)&&E_(r)))}function X7e(e){return e===1||e===100||e===199}function II(e,t){return sc(e)||X7e(kd(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:uu(t,"alwaysStrict")||Lae(e.statements)?!0:sc(e)||em(t)?kd(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!Bx(t)}return!1}function ej(e){switch(R.type(e),e.kind){case 345:case 353:case 330:return!0;default:return tj(e)}}function tj(e){switch(R.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 mT(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Hre(e){return mT(e)||C0(e)}function CF(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 Kre(e){return v2(e)||Yl(e)||og(e)||Op(e)}function v2(e){return mT(e)||$l(e)}function nj(e){return Fn(e.parent,t=>!!(mK(t)&1))}function ph(e){return Fn(e.parent,t=>ZV(t,t.parent))}function Jre(e,t){let r=ph(e);for(;r;)t(r),r=ph(r)}function xs(e){return!e||_2(e)===0?"(Missing)":fc(e)}function qre(e){return e.declaration?xs(e.declaration.parameters[0].name):void 0}function b2(e){return e.kind===167&&!$p(e.expression)}function yN(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 fl(e.text);case 167:return $p(e.expression)?fl(e.expression.text):void 0;case 295:return BI(e);default:return R.assertNever(e)}}function Jx(e){return R.checkDefined(yN(e))}function up(e){switch(e.kind){case 110:return"this";case 81:case 80:return _2(e)===0?vr(e):fc(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):R.assertNever(e.name);case 318:return up(e.left)+up(e.right);case 295:return up(e.namespace)+":"+up(e.name);default:return R.assertNever(e)}}function Pr(e,t,...r){let i=Gn(e);return Kf(i,e,t,...r)}function qx(e,t,r,...i){let o=Pa(e.text,t.pos);return Zc(e,o,t.end-o,r,...i)}function Kf(e,t,r,...i){let o=_T(e,t);return Zc(e,o.start,o.length,r,...i)}function Mg(e,t,r,i){let o=_T(e,t);return NF(e,o.start,o.length,r,i)}function E2(e,t,r,i){let o=Pa(e.text,t.pos);return NF(e,o,t.end-o,r,i)}function Xre(e,t,r){R.assertGreaterThanOrEqual(t,0),R.assertGreaterThanOrEqual(r,0),R.assertLessThanOrEqual(t,e.length),R.assertLessThanOrEqual(t+r,e.length)}function NF(e,t,r,i,o){return Xre(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 Yre(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function $re(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function fh(e,t){let r=Dy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return pc(i,r.getTokenEnd())}function Qre(e,t){let r=Dy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function Y7e(e,t){let r=Pa(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=ys(e,t.body.pos),{line:o}=ys(e,t.body.end);if(i0?t.statements[0].pos:t.end;return pc(s,l)}case 253:case 229:{let s=Pa(e.text,t.pos);return fh(e,s)}case 238:{let s=Pa(e.text,t.expression.end);return fh(e,s)}case 357:{let s=Pa(e.text,t.tagName.pos);return fh(e,s)}}if(r===void 0)return fh(e,t.pos);R.assert(!Ym(r));let i=Bl(r),o=i||KI(t)?r.pos:Pa(e.text,r.pos);return i?(R.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(R.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),R.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),pc(o,r.end)}function wp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Jf(e){return e.scriptKind===6}function x0(e){return!!(eE(e)&4096)}function PF(e){return!!(eE(e)&8&&!dp(e,e.parent))}function S2(e){return(Cy(e)&7)===6}function T2(e){return(Cy(e)&7)===4}function Xx(e){return(Cy(e)&7)===2}function MF(e){return(Cy(e)&7)===1}function hT(e){return e.kind===213&&e.expression.kind===108}function Op(e){return e.kind===213&&e.expression.kind===102}function Yx(e){return mP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Wv(e){return og(e)&&qv(e.argument)&&Ca(e.argument.literal)}function vm(e){return e.kind===244&&e.expression.kind===11}function A2(e){return!!(za(e)&2097152)}function LF(e){return A2(e)&&Tc(e)}function $7e(e){return Fe(e.name)&&!e.initializer}function kF(e){return A2(e)&&Ll(e)&&oo(e.declarationList.declarations,$7e)}function ij(e,t){return e.kind!==12?Hh(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?bo($b(t,e.pos),Hh(t,e.pos)):Hh(t,e.pos);return Vr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Yh(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 F0e(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),R.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 F0e(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 zo(t.typeArguments,e)}}}return!1}function F0e(e){return q4(e.parent)||l1(e.parent)||Zp(e.parent)&&!_6(e)}function z0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function R0(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 Bo(i,r)}}}function Zre(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(Yo(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Yh(i)||Bo(i,r)}}}function aj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?rh(e.typeArguments):void 0}function eie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function $x(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 tie(e){return $x(e)||Pv(e)}function vN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function nie(e){return or(e)?La(e.parent)&&pr(e.parent.parent)&&Gl(e.parent.parent)===2||wF(e.parent):!1}function wF(e){return or(e)?pr(e)&&Gl(e)===1:!1}function rie(e){return(Oi(e)?Xx(e)&&Fe(e.name)&&vN(e):jo(e)?wN(e)&&mc(e):_p(e)&&wN(e))||wF(e)}function iie(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 D0(e){return e&&e.kind===241&&Yo(e.parent)}function bm(e){return e&&e.kind===174&&e.parent.kind===210}function OF(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function oie(e){return e&&e.kind===1}function B0e(e){return e&&e.kind===0}function Qx(e,t,r,i){return gn(e?.properties,o=>{if(!hc(o))return;let s=yN(o.name);return t===s||i&&i===s?r(o):void 0})}function aie(e,t,r){return Qx(e,t,i=>fu(i.initializer)?Gr(i.initializer.elements,o=>Ca(o)&&o.text===r):void 0)}function bN(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ri(t,La)}}function WF(e,t,r){return I2(e,t,i=>fu(i.initializer)?Gr(i.initializer.elements,o=>Ca(o)&&o.text===r):void 0)}function I2(e,t,r){return Qx(bN(e),t,r)}function Wp(e){return Fn(e.parent,Yo)}function sie(e){return Fn(e.parent,Fs)}function sd(e){return Fn(e.parent,di)}function lie(e){return Fn(e.parent,t=>di(t)||Yo(t)?"quit":Il(t))}function FF(e){return Fn(e.parent,Bx)}function zF(e){let t=Fn(e.parent,r=>di(r)?"quit":Ed(r));return t&&di(t.parent)?sd(t.parent):sd(t??e)}function wu(e,t,r){for(R.assert(e.kind!==312);;){if(e=e.parent,!e)return R.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Qc(e.parent.parent)?e=e.parent.parent:Qc(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 cie(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 BF(e){Fe(e)&&(Ac(e.parent)||Tc(e.parent))&&e.parent.name===e&&(e=e.parent);let t=wu(e,!0,!1);return Yi(t)}function die(e){let t=wu(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function x2(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&&Qc(e.parent.parent)?e=e.parent.parent:Qc(e.parent)&&(e=e.parent);break}}}function gT(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 G0e(e){return e.kind===108||Ou(e)}function Ou(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function R2(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function GF(e){var t;return!!e&&Oi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function uie(e){return!!e&&(Zu(e)||hc(e))&&pr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function D2(e){switch(e.kind){case 183:return e.typeName;case 233:return Vl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function VF(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 jF(e,t,r,i){if(e&&au(t)&&Ki(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Ac(r):di(r)&&!W0(t)&&!Gj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Ac(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&k0(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function Zx(e,t,r,i){return bf(t)&&jF(e,t,r,i)}function C2(e,t,r,i){return Zx(e,t,r,i)||EN(e,t,r)}function EN(e,t,r){switch(t.kind){case 263:return gt(t.members,i=>C2(e,i,t,r));case 231:return!e&>(t.members,i=>C2(e,i,t,r));case 174:case 178:case 176:return gt(t.parameters,i=>Zx(e,i,t,r));default:return!1}}function My(e,t){if(Zx(e,t))return!0;let r=tg(t);return!!r&&EN(e,r,t)}function lj(e,t,r){let i;if(Pv(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=xT(r.members,t),d=bf(o)?o:s&&bf(s)?s:void 0;if(!d||t!==d)return!1;i=l?.parameters}else Kl(t)&&(i=t.parameters);if(Zx(e,t,r))return!0;if(i){for(let o of i)if(!w0(o)&&Zx(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 eR(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function $h(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)&&!l1(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||AI(e.parent)||EP(e.parent)||yE(e.parent)||eR(e);case 318:for(;yE(e.parent);)e=e.parent;return e.parent.kind===186||AI(e.parent)||EP(e.parent)||yE(e.parent)||eR(e);case 81:return pr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||AI(e.parent)||EP(e.parent)||yE(e.parent)||eR(e))return!0;case 9:case 10:case 11:case 15:case 110:return UF(e);default:return!1}}function UF(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&&!Yh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return $h(t)}}function HF(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function pie(e){return vh(e)&&!!e.parent.moduleSpecifier}function sE(e){return e.kind===271&&e.moduleReference.kind===283}function SN(e){return R.assert(sE(e)),e.moduleReference.expression}function dj(e){return C0(e)&&vR(e.initializer).arguments[0]}function tR(e){return e.kind===271&&e.moduleReference.kind!==283}function cu(e){return or(e)}function V0e(e){return!or(e)}function or(e){return!!e&&!!(e.flags&524288)}function KF(e){return!!e&&!!(e.flags&134217728)}function uj(e){return!Jf(e)}function N2(e){return!!e&&!!(e.flags&16777216)}function JF(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 Su(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||ss(o)}function qF(e){return j0e(e,!1)}function C0(e){return j0e(e,!0)}function fie(e){return Xa(e)&&C0(e.parent.parent)}function j0e(e,t){return Oi(e)&&!!e.initializer&&Su(t?vR(e.initializer):e.initializer,!0)}function pj(e){return Ll(e)&&e.declarationList.declarations.length>0&&oo(e.declarationList.declarations,t=>qF(t))}function P2(e){return e===39||e===34}function XF(e,t){return A0(t,e).charCodeAt(0)===34}function TN(e){return pr(e)||Ls(e)||Fe(e)||ra(e)}function M2(e){return or(e)&&e.initializer&&pr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Vl(e.name)&&nR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function L2(e){let t=M2(e);return t&&lE(t,Bv(e.name))}function Q7e(e,t){return gn(e.properties,r=>hc(r)&&Fe(r.name)&&r.name.escapedText==="value"&&r.initializer&&lE(r.initializer,t))}function xI(e){if(e&&e.parent&&pr(e.parent)&&e.parent.operatorToken.kind===64){let t=Bv(e.parent.left);return lE(e.parent.right,t)||Z7e(e.parent.left,e.parent.right,t)}if(e&&ra(e)&&vT(e)){let t=Q7e(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function lE(e,t){if(ra(e)){let r=ms(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||La(e)&&(e.properties.length===0||t))return e}function Z7e(e,t,r){let i=pr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&lE(t.right,r);if(i&&nR(e,t.left))return i}function mie(e){let t=Oi(e.parent)?e.parent.name:pr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&lE(e.right,Bv(t))&&Vl(t)&&nR(t,e.left)}function fj(e){if(pr(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&pr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Fe(t.left))return t.left}else if(Oi(e.parent))return e.parent.name}function nR(e,t){return T_(e)&&T_(t)?Xf(e)===Xf(t):Jh(e)&&YF(t)&&(t.expression.kind===110||Fe(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?nR(e,O2(t)):YF(e)&&YF(t)?Lg(e)===Lg(t)&&nR(e.expression,t.expression):!1}function k2(e){for(;Lc(e,!0);)e=e.right;return e}function yT(e){return Fe(e)&&e.escapedText==="exports"}function mj(e){return Fe(e)&&e.escapedText==="module"}function Qh(e){return(kr(e)||w2(e))&&mj(e.expression)&&Lg(e)==="exports"}function Gl(e){let t=eBe(e);return t===5||or(e)?t:0}function vT(e){return Nn(e.arguments)===3&&kr(e.expression)&&Fe(e.expression.expression)&&vr(e.expression.expression)==="Object"&&vr(e.expression.name)==="defineProperty"&&$p(e.arguments[1])&&bT(e.arguments[0],!0)}function YF(e){return kr(e)||w2(e)}function w2(e){return Xs(e)&&$p(e.argumentExpression)}function N0(e,t){return kr(e)&&(!t&&e.expression.kind===110||Fe(e.name)&&bT(e.expression,!0))||$F(e,t)}function $F(e,t){return w2(e)&&(!t&&e.expression.kind===110||Vl(e.expression)||N0(e.expression,!0))}function bT(e,t){return Vl(e)||N0(e,t)}function O2(e){return kr(e)?e.name:e.argumentExpression}function eBe(e){if(ra(e)){if(!vT(e))return 0;let t=e.arguments[0];return yT(t)||Qh(t)?8:N0(t)&&Lg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ls(e.left)||tBe(k2(e))?0:bT(e.left.expression,!0)&&Lg(e.left)==="prototype"&&La(_j(e))?6:W2(e.left)}function tBe(e){return n1(e)&&mp(e.expression)&&e.expression.text==="0"}function QF(e){if(kr(e))return e.name;let t=ms(e.argumentExpression);return mp(t)||ss(t)?t:e}function Lg(e){let t=QF(e);if(t){if(Fe(t))return t.escapedText;if(ss(t)||mp(t))return fl(t.text)}}function W2(e){if(e.expression.kind===110)return 4;if(Qh(e))return 2;if(bT(e.expression,!0)){if(Bv(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")&&N0(e))return 1;if(bT(e,!0)||Xs(e)&&i6(e))return 5}return 0}function _j(e){for(;pr(e.right);)e=e.right;return e.right}function F2(e){return pr(e)&&Gl(e)===3}function _ie(e){return or(e)&&e.parent&&e.parent.kind===244&&(!Xs(e)||w2(e))&&!!nE(e.parent)}function z2(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!or(t)&&!(r.flags&33554432))&&TN(r)&&!TN(t)||r.kind!==t.kind&&jre(r))&&(e.valueDeclaration=t)}function hie(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Oi(t)&&t.initializer&&Yo(t.initializer)}function rR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Fn(e.initializer,i=>Su(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ri(e.moduleSpecifier,ss);case 271:return ri((r=ri(e.moduleReference,bh))==null?void 0:r.expression,ss);case 273:case 280:return ri(e.parent.moduleSpecifier,ss);case 274:case 281:return ri(e.parent.parent.moduleSpecifier,ss);case 276:return ri(e.parent.parent.parent.moduleSpecifier,ss);case 205:return Wv(e)?e.argument.literal:void 0;default:R.assertNever(e)}}function AN(e){return B2(e)||R.failBadSyntaxKind(e.parent)}function B2(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Op(e.parent)||Su(e.parent,!1)?e.parent:void 0;case 201:return R.assert(Ca(e)),ri(e.parent.parent,og);default:return}}function iR(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 R.assertNever(e)}}function oR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,$v);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,vh);default:return R.assertNever(e)}}function RI(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function ZF(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=$v(e.namedBindings)?t(e.namedBindings):gn(e.namedBindings.elements,t);if(r)return r}}function DI(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 aR(e){let t=WR(e)?Yc(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 G2(e){return qf(e)||Tm(e)}function nBe(e){return td(e)&&pr(e.expression)&&e.expression.operatorToken.kind===64?k2(e.expression):void 0}function U0e(e){return td(e)&&pr(e.expression)&&Gl(e.expression)!==0&&pr(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=CI(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function CI(e){return Ll(e)?Yc(e.declarationList.declarations):void 0}function H0e(e){return Yl(e)&&e.body&&e.body.kind===267?e.body:void 0}function V2(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 j2(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;$x(e)&&kv(e)&&kp(e.initializer)&&(r=Ur(r,K0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(kp(i)&&(r=Ur(r,K0e(e,i.jsDoc))),i.kind===169){r=Ur(r,(t?Yne:Wx)(i));break}if(i.kind===168){r=Ur(r,(t?Qne:$ne)(i));break}i=yj(i)}return r||Xe}function K0e(e,t){let r=Ja(t);return va(t,i=>{if(i===r){let o=Vr(i.tags,s=>rBe(e,s));return i.tags===o?[i]:o}else return Vr(i.tags,FR)})}function rBe(e,t){return!(SP(t)||X4(t))||!t.parent||!Ym(t.parent)||!Fu(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||H0e(t)||Lc(e))return t;if(t.parent&&(CI(t.parent)===e||Lc(t)))return t.parent;if(t.parent&&t.parent.parent&&(CI(t.parent.parent)||hj(t.parent.parent)===e||U0e(t.parent.parent)))return t.parent.parent}function U2(e){if(e.symbol)return e.symbol;if(!Fe(e.name))return;let t=e.name.escapedText,r=cE(e);if(!r)return;let i=Gr(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function e6(e){if(Ym(e.parent)&&e.parent.tags){let t=Gr(e.parent.tags,qf);if(t)return t}return cE(e)}function vj(e){return oF(e,FR)}function cE(e){let t=dE(e);if(t)return _p(t)&&t.type&&Yo(t.type)?t.type:Yo(t)?t:void 0}function dE(e){let t=ET(e);if(t)return U0e(t)||nBe(t)||hj(t)||CI(t)||H0e(t)||t}function ET(e){let t=sR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Qs(r.jsDoc))return r}function sR(e){return Fn(e.parent,Ym)}function gie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Gr(r,i=>i.name.escapedText===t)}function J0e(e){return!!e.typeArguments}function yie(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return wy(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 NI(e){let t=yie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||ON(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Zh(e){return!!yie(e)}function iBe(e){let t=ms(e.right);return t.kind===226&&AH(t.operatorToken.kind)}function bj(e){let t=yie(e);return!!t&&Lc(t,!0)&&iBe(t)}function vie(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 bie(e){return ks(e)||zs(e)||SI(e)||Tc(e)||Ml(e)}function q0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function H2(e){return q0e(e,196)}function Ly(e){return q0e(e,217)}function Eie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function K2(e){for(;MT(e);)e=e.type;return e}function ms(e,t){return Ql(e,t?17:1)}function Ej(e){return e.kind!==211&&e.kind!==212?!1:(e=Ly(e.parent),e&&e.kind===220)}function P0(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function kg(e){return!Yi(e)&&!$o(e)&&Kd(e.parent)&&e.parent.name===e}function IN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Ya(t))return t.parent;case 80:if(Kd(t))return t.name===e?t:void 0;if(Au(t)){let r=t.parent;return $m(r)&&r.name===t?r:void 0}else{let r=t.parent;return pr(r)&&Gl(r)!==0&&(r.left.symbol||r.symbol)&&No(r)===e?r:void 0}case 81:return Kd(t)&&t.name===e?t:void 0;default:return}}function J2(e){return $p(e)&&e.parent.kind===167&&Kd(e.parent.parent)}function Sie(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 X0e(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&&lR(e)?!0:or(e)&&(pr(e)&&Gl(e)===2&&lR(e)||kr(e)&&pr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&q2(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 q2(e){return Vl(e)||ed(e)}function lR(e){let t=Tj(e);return q2(t)}function Tj(e){return kl(e)?e.expression:e.right}function Tie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function S_(e){let t=M0(e);if(t&&or(e)){let r=ere(e);if(r)return r.class}return t}function M0(e){let t=X2(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function cR(e){if(or(e))return tre(e).map(t=>t.class);{let t=X2(e.heritageClauses,119);return t?.types}}function xN(e){return mu(e)?RN(e)||Xe:di(e)&&bo(mI(S_(e)),cR(e))||Xe}function RN(e){let t=X2(e.heritageClauses,96);return t?t.types:void 0}function X2(e,t){if(e){for(let r of e)if(r.token===t)return r}}function uE(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 t6(e){return Wu(e)||Aj(e)}function n6(e){return 128<=e&&e<=165}function Ij(e){return Wu(e)&&!n6(e)}function Y0e(e){return 119<=e&&e<=127}function PI(e){let t=v0(e);return t!==void 0&&Ij(t)}function $0e(e){let t=v0(e);return t!==void 0&&Wu(t)}function xj(e){let t=tE(e);return!!t&&!n6(t)}function dR(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 DN(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 ss(e)||mp(e)}function r6(e){return Yv(e)&&(e.operator===40||e.operator===41)&&mp(e.operand)}function Fv(e){let t=No(e);return!!t&&i6(t)}function i6(e){if(!(e.kind===167||e.kind===212))return!1;let t=Xs(e)?ms(e.argumentExpression):e.expression;return!$p(t)&&!r6(t)}function ST(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return fl(e.text);case 167:let t=e.expression;return $p(t)?fl(t.text):r6(t)?t.operator===41?da(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return BI(e);default:return R.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 Jh(e)?vr(e):Xm(e)?iP(e):e.text}function CN(e){return Jh(e)?e.escapedText:Xm(e)?BI(e):fl(e.text)}function Q0e(e){return`__@${ba(e)}@${e.escapedName}`}function Y2(e,t){return`__#${ba(e)}@${t}`}function $2(e){return ao(e.escapedName,"__@")}function Aie(e){return ao(e.escapedName,"__#")}function Z0e(e){return e.kind===80&&e.escapedText==="Symbol"}function Iie(e){return Fe(e)?vr(e)==="__proto__":Ca(e)&&e.text==="__proto__"}function NN(e,t){switch(e=Ql(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!Iie(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 NN(e.initializer,t);case 304:return NN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return NN(e.initializer,t);case 226:return NN(e.right,t);case 277:return NN(e.expression,t)}}function Dj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function L0(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 qs(e){return Jm(e.pos)||Jm(e.end)}function eSe(e){return Ro(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 PN(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 Z2(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 Z2(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 uR(e){return Vr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function pR(){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=Sy(h,p,Zs,I6);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),Ev(t,p.file.fileName,jd))):(i&&(i=!1,e=e.slice()),h=e),Ev(h,p,I6)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=GC(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Lj(e){return e.replace(xSe,"\\${")}function xie(e){return!!((e.templateFlags||0)&2048)}function kj(e){return e&&!!(JI(e)?xie(e):xie(e.head)||gt(e.templateSpans,t=>xie(t.literal)))}function tSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function oBe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return NSe.get(e)||tSe(e.charCodeAt(0))}function eg(e,t){let r=t===96?CSe:t===39?DSe:RSe;return e.replace(r,oBe)}function ek(e,t){return e=eg(e,t),Ooe.test(e)?e.replace(Ooe,r=>tSe(r.charCodeAt(0))):e}function aBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sBe(e){return e.charCodeAt(0)===0?"�":LSe.get(e)||aBe(e.charCodeAt(0))}function wj(e,t){let r=t===39?MSe:PSe;return e.replace(r,sBe)}function Yf(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&lBe(e.charCodeAt(0))?e.substring(1,t-1):e}function lBe(e){return e===39||e===34||e===96}function fR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function o6(e){let t=oP[1];for(let r=oP.length;r<=e;r++)oP.push(oP[r-1]+t);return oP[e]}function mR(){return oP[1].length}function tk(e){var t,r,i,o,s,l=!1;function d(D){let w=yI(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=o6(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*mR():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 _R(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function ky(e){return Pd(_R(e))}function a6(e,t,r){return t.moduleName||Wj(e,t.fileName,r&&r.fileName)}function nSe(e,t){return e.getCanonicalFileName(_o(t,e.getCurrentDirectory()))}function Rie(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=iR(r);if(!(o&&ss(o)&&!Lp(o.text)&&!nSe(e,i.path).includes(nSe(e,Bc(e.getCommonSourceDirectory())))))return a6(e,i)}function Wj(e,t,r){let i=p=>e.getCanonicalFileName(p),o=nl(r?oi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=_o(t,e.getCurrentDirectory()),l=gI(o,s,o,i,!1),d=Tu(l);return r?y0(d):d}function Die(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Tu(d6(e,t,i.outDir)):o=Tu(e),o+r}function Cie(e,t){return s6(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function s6(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?u6(e,s,r,i,o):e,d=l6(l);return Tu(l)+d}function l6(e){return Sc(e,[".mjs",".mts"])?".d.mts":Sc(e,[".cjs",".cts"])?".d.cts":Sc(e,[".json"])?".d.json.ts":".d.ts"}function Nie(e){return Sc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Sc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Sc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Cs(e){return e.outFile||e.out}function c6(e,t){var r;if(e.paths)return e.baseUrl??R.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(Cs(i)){let o=kd(i),s=i.emitDeclarationOnly||o===2||o===4;return Vr(e.getSourceFiles(),l=>(s||!sc(l))&&TT(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return Vr(o,s=>TT(s,e,r))}}function TT(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&cu(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(Cs(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=_o(JP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=u6(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Rg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function d6(e,t,r){return u6(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function u6(e,t,r,i,o){let s=_o(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Yr(t,s)}function MN(e,t,r,i,o,s,l){e.writeFile(r,i,o,d=>{t.add(Hl(f.Could_not_write_file_0_Colon_1,r,d))},s,l)}function rSe(e,t,r){if(e.length>lh(e)&&!r(e)){let i=oi(e);rSe(i,t,r),t(e)}}function zj(e,t,r,i,o,s){try{i(e,t,r)}catch{rSe(oi(ma(e)),o,s),i(e,t,r)}}function LN(e,t){let r=Dg(e);return eN(r,t)}function AT(e,t){return eN(e,t)}function tg(e){return Gr(e.members,t=>Ml(t)&&Hf(t.body))}function kN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&w0(e.parameters[0]);return e.parameters[t?1:0]}}function Pie(e){let t=kN(e);return t&&t.type}function k0(e){if(e.parameters.length&&!vE(e)){let t=e.parameters[0];if(w0(t))return t}}function w0(e){return O0(e.name)}function O0(e){return!!e&&e.kind===80&&Bj(e)}function IT(e){return!!Fn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function MI(e){if(!O0(e))return!1;for(;Au(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Bj(e){return e.escapedText==="this"}function xT(e,t){let r,i,o,s;return Fv(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:R.fail("Accessor has wrong kind")):gn(e,l=>{if(Pv(l)&&na(l)===na(t)){let d=ST(l.name),p=ST(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 vd(e){if(!or(e)&&Tc(e))return;let t=e.type;return t||!or(e)?t:cN(e)?e.typeExpression&&e.typeExpression.type:rE(e)}function Mie(e){return e.type}function $f(e){return vE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(or(e)?e2(e):void 0)}function p6(e){return va(iE(e),t=>cBe(t)?t.typeParameters:void 0)}function cBe(e){return nm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(qf)||e.parent.tags.some(FR)))}function Lie(e){let t=kN(e);return t&&vd(t)}function kie(e,t,r,i){wie(e,t,r.pos,i)}function wie(e,t,r,i){i&&i.length&&r!==i[0].pos&&AT(e,r)!==AT(e,i[0].pos)&&t.writeLine()}function Oie(e,t,r,i){r!==i&&AT(e,r)!==AT(e,i)&&t.writeLine()}function Wie(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 Fie(e,t,r,i,o,s,l){let d,p;if(l?o.pos===0&&(d=Vr(Hh(e,o.pos),h)):d=Hh(e,o.pos),d){let m=[],y;for(let E of d){if(y){let S=AT(t,y.end);if(AT(t,E.pos)>=S+2)break}m.push(E),y=E}if(m.length){let E=AT(t,Ja(m).end);AT(t,Pa(e,o.pos))>=E+2&&(kie(t,r,o,d),Wie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ja(m).end})}}return p;function h(m){return xF(e,m.pos)}}function hR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=Lx(t,i),d=t.length,p;for(let h=i,m=l.line;h0){let A=S%mR(),N=o6((S-A)/mR());for(r.rawWrite(N);A;)r.rawWrite(" "),A--}else r.rawWrite("")}dBe(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function dBe(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 iSe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Vj(e)|536870912),r||t&&or(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=oSe(e)|268435456),aSe(e.modifierFlagsCache)):uBe(e.modifierFlagsCache))}function du(e){return Gie(e,!0)}function Vie(e){return Gie(e,!0,!0)}function zv(e){return Gie(e,!1)}function oSe(e){let t=0;return e.parent&&!To(e)&&(or(e)&&(nre(e)&&(t|=8388608),rre(e)&&(t|=16777216),ire(e)&&(t|=33554432),ore(e)&&(t|=67108864),are(e)&&(t|=134217728)),sre(e)&&(t|=65536)),t}function uBe(e){return e&65535}function aSe(e){return e&131071|(e&260046848)>>>23}function pBe(e){return aSe(oSe(e))}function jie(e){return Vj(e)|pBe(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|=kI(r.kind);return t}function kI(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 sSe(e){return e===57||e===56}function Uie(e){return sSe(e)||e===54}function ON(e){return e===76||e===77||e===78}function jj(e){return pr(e)&&ON(e.operatorToken.kind)}function nk(e){return sSe(e)||e===61}function rk(e){return pr(e)&&nk(e.operatorToken.kind)}function wy(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(Gy(e)){if(Zp(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(l1(e.parent)){let t=dE(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Lc(e,t){return pr(e)&&(t?e.operatorToken.kind===64:wy(e.operatorToken.kind))&&Yu(e.left)}function lSe(e){return Lc(e.parent)&&e.parent.left===e}function Oy(e){if(Lc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function _6(e){return Uj(e)!==void 0}function Vl(e){return e.kind===80||ik(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 WN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&WN(e.expression)||e.kind===217&&WN(e.expression)}function ik(e){return kr(e)&&Fe(e.name)&&Vl(e.expression)}function ok(e){if(kr(e)){let t=ok(e.expression);if(t!==void 0)return t+"."+up(e.name)}else if(Xs(e)){let t=ok(e.expression);if(t!==void 0&&oc(e.argumentExpression))return t+"."+ST(e.argumentExpression)}else{if(Fe(e))return Vi(e.escapedText);if(Xm(e))return iP(e)}}function Bv(e){return N0(e)&&Lg(e)==="prototype"}function FN(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||Xs(e.parent)&&e.parent.argumentExpression===e)}function Hie(e){return Au(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e||yE(e.parent)&&e.parent.right===e}function h6(e){return pr(e)&&e.operatorToken.kind===104}function Kie(e){return h6(e.parent)&&e===e.parent.right}function Jj(e){return e.kind===210&&e.properties.length===0}function Jie(e){return e.kind===209&&e.elements.length===0}function gR(e){if(!(!fBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function fBe(e){return e&&Nn(e.declarations)>0&&$r(e.declarations[0],2048)}function g6(e){return Gr(FSe,t=>Tl(e,t))}function mBe(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)):R.assert(!1,"Unexpected code point")}return t}function qie(e){let t="",r=mBe(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+=DT.charAt(s)+DT.charAt(l)+DT.charAt(d)+DT.charAt(p),i+=3;return t}function _Be(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 _Be(i)}function qj(e,t){let r=Co(t)?t:t.readFile(e);if(!r)return;let i=WH(e,r);return i.error?void 0:i.config}function zN(e,t){return qj(e,t)||{}}function y6(e){try{return JSON.parse(e)}catch{return}}function Hm(e,t){return!t.directoryExists||t.directoryExists(e)}function Wy(e){switch(e.newLine){case 0:return kSe;case 1:case void 0:return wSe}}function Ef(e,t=e){return R.assert(t>=e||t===-1),{pos:e,end:t}}function v6(e,t){return Ef(e.pos,t)}function pE(e,t){return Ef(t,e.end)}function wg(e){let t=Am(e)?cI(e.modifiers,Ed):void 0;return t&&!Jm(t.end)?pE(e,t.end):e}function R_(e){if(jo(e)||Kl(e))return pE(e,e.name.pos);let t=Am(e)?Qs(e.modifiers):void 0;return t&&!Jm(t.end)?pE(e,t.end):wg(e)}function cSe(e){return e.pos===e.end}function Xj(e,t){return Ef(e,e+da(t).length)}function RT(e,t){return Qie(e,e,t)}function b6(e,t,r){return Sf(BN(e,r,!1),BN(t,r,!1),r)}function $ie(e,t,r){return Sf(e.end,t.end,r)}function Qie(e,t,r){return Sf(BN(e,r,!1),t.end,r)}function ak(e,t,r){return Sf(e.end,BN(t,r,!1),r)}function Yj(e,t,r,i){let o=BN(t,r,i);return tN(r,e.end,o)}function dSe(e,t,r){return tN(r,e.end,t.end)}function Zie(e,t){return!Sf(e.pos,e.end,t)}function Sf(e,t,r){return tN(r,e,t)===0}function BN(e,t,r){return Jm(e.pos)?-1:Pa(t.text,e.pos,!1,r)}function eoe(e,t,r,i){let o=Pa(r.text,e,!1,i),s=hBe(o,t,r);return tN(r,s??t,o)}function toe(e,t,r,i){let o=Pa(r.text,e,!1,i);return tN(r,e,Math.min(t,o))}function hBe(e,t=0,r){for(;e-- >t;)if(!Cg(r.text.charCodeAt(e)))return e}function $j(e){let t=Ro(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function GN(e){return Vr(e.declarations,sk)}function sk(e){return Oi(e)&&e.initializer!==void 0}function uSe(e){return e.watch&&Is(e,"watch")}function Km(e){e.close()}function Al(e){return e.flags&33554432?e.links.checkFlags:0}function Tf(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Gr(e.declarations,hp)||e.flags&32768&&Gr(e.declarations,Qp)||e.valueDeclaration,i=eE(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Al(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 bd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function yR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function E6(e){return VN(e)===1}function wI(e){return VN(e)!==0}function VN(e){let{parent:t}=e;switch(t?.kind){case 217:return VN(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&&wy(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:VN(t);case 303:{let s=VN(t.parent);return e===t.name?gBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:VN(t.parent);case 209:return VN(t);default:return 0}}function gBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return R.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 ng(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 jN(e,t,r){ng(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function noe(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(di)}function Lr(e){return e.flags&3899393?e.objectFlags:0}function pSe(e,t){return!!hm(e,r=>t(r)?!0:void 0)}function S6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Vk(e.declarations[0])}function roe({moduleSpecifier:e}){return Ca(e)?e.text:fc(e)}function Zj(e){let t;return Bo(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 OI(e){return di(e)||mu(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 Ls(e){return e.kind===211||e.kind===212}function tU(e){return e.kind===211?e.name:(R.assert(e.kind===212),e.argumentExpression)}function ioe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function T6(e){return e.kind===275||e.kind===279}function vR(e){for(;Ls(e);)e=e.expression;return e}function ooe(e,t){if(Ls(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)||ss(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ls(i.expression))return r(i.expression);if(Fe(i.expression))return t(i.expression)}}function bR(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 yBe(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 vBe(e,t){this.flags=t,(R.isDebugging||ir)&&(this.checker=e)}function bBe(e,t){this.flags=t,R.isDebugging&&(this.checker=e)}function aoe(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 EBe(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 SBe(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 TBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function soe(e){Woe.push(e),e(ld)}function loe(e){Object.assign(ld,e),gn(Woe,t=>t(ld))}function rg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+R.checkDefined(t[+i]))}function coe(e){Y6=e}function doe(e){!Y6&&e&&(Y6=e())}function ko(e){return Y6&&Y6[e.key]||e.message}function ER(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Xre(t,r,i);let l=ko(o);return gt(s)&&(l=rg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function ABe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function fSe(e,t){let r=t.fileName||"",i=t.text.length;R.assertEqual(e.fileName,r),R.assertLessThanOrEqual(e.start,i),R.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)ABe(s)&&s.fileName===r?(R.assertLessThanOrEqual(s.start,i),R.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(fSe(s,t))):o.relatedInformation.push(s)}return o}function WI(e,t){let r=[];for(let i of e)r.push(fSe(i,t));return r}function Zc(e,t,r,i,...o){Xre(e.text,t,r);let s=ko(i);return gt(o)&&(s=rg(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=ko(e);return gt(t)&&(r=rg(r,t)),r}function Hl(e,...t){let r=ko(e);return gt(t)&&(r=rg(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 A6(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 Fo(e,t,...r){let i=ko(t);return gt(r)&&(i=rg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function uoe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function mSe(e){return e.file?e.file.path:void 0}function UN(e,t){return I6(e,t)||IBe(e,t)||0}function I6(e,t){return jd(mSe(e),mSe(t))||el(e.start,t.start)||el(e.length,t.length)||el(e.code,t.code)||_Se(e.messageText,t.messageText)||0}function IBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?el(e.relatedInformation.length,t.relatedInformation.length)||gn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return UN(r,o)})||0:e.relatedInformation?-1:1}function _Se(e,t){if(typeof e=="string"&&typeof t=="string")return jd(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=jd(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 lk(e){return e===4||e===2||e===1||e===6?1:0}function hSe(e){if(e.transformFlags&2)return lu(e)||X0(e)?e:Bo(e,hSe)}function xBe(e){return e.isDeclarationFile?void 0:hSe(e)}function RBe(e){return(e.impliedNodeFormat===99||Sc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function ck(e){switch(xU(e)){case 3:return o=>{o.externalModuleIndicator=Zk(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Zk(o)};case 2:let t=[Zk];(e.jsx===4||e.jsx===5)&&t.push(xBe),t.push(RBe);let r=Um(...t);return o=>void(o.externalModuleIndicator=r(o))}}function dbt(e){return e}function x6(e){return e>=5&&e<=99}function R6(e){switch(kd(e)){case 0:case 4:case 3:return!1}return!0}function rU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function poe(e){return e.allowUnreachableCode===!1}function foe(e){return e.allowUnusedLabels===!1}function FI(e){return e>=3&&e<=99||e===100}function uu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function moe(e){return e.useDefineForClassFields!==!1&&rs(e)>=9}function _oe(e,t){return Ux(t,e,KH)}function hoe(e,t){return Ux(t,e,JH)}function goe(e,t){return Ux(t,e,qH)}function D6(e,t){return t.strictFlag?uu(e,t.name):t.allowJsFlag?Uv(e):e[t.name]}function C6(e){let t=e.jsx;return t===2||t===4||t===5}function N6(e,t){let r=t?.pragmas.get("jsximportsource"),i=So(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 P6(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=nl(d,e,t);ZN(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){R.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(nl(m,e,t),h);let[y,E]=DBe(h,m,e,t)||Xe;y&&E&&d.setSymlinkedDirectory(E,{real:Bc(y),realPath:Bc(nl(y,e,t))})}}function DBe(e,t,r,i){let o=zc(_o(e,r)),s=zc(_o(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!gSe(o[o.length-2],i)&&!gSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Iv(o),Iv(s)]:void 0}function gSe(e,t){return e!==void 0&&(t(e)==="node_modules"||ao(e,"@"))}function CBe(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:CBe(i)}function ySe(e){return e.replace(RU,NBe)}function NBe(e){return"\\"+e}function HN(e,t,r){let i=M6(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function M6(e,t,r){if(!(e===void 0||e.length===0))return va(e,i=>i&&L6(i,t,r,NU[r]))}function sU(e){return!/[.*?]/.test(e)}function yoe(e,t,r){let i=e&&L6(e,t,r,NU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function L6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=NU[r]){let l="",d=!1,p=zL(e,t),h=Ja(p);if(r!=="exclude"&&h==="**")return;p[0]=Yb(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+=rl),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 voe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function k6(e,t,r,i,o){e=ma(e),o=ma(o);let s=Yr(o,e);return{includeFilePatterns:mn(M6(r,s,"files"),l=>`^${l}$`),includeFilePattern:HN(r,s,"files"),includeDirectoryPattern:HN(r,s,"directories"),excludePattern:HN(t,s,"exclude"),basePaths:PBe(e,r,i)}}function Gv(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=k6(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(w=>Gv(w,o)),y=h.includeDirectoryPattern&&Gv(h.includeDirectoryPattern,o),E=h.excludePattern&&Gv(h.excludePattern,o),S=m?m.map(()=>[]):[[]],A=new Map,N=Pd(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 tT(B,jd)){let ee=Yr(w,z),me=Yr(j,z);if(!(t&&!Sc(ee,t))&&!(E&&E.test(me)))if(!m)S[0].push(ee);else{let ge=ql(m,q=>q.test(me));ge!==-1&&S[ge].push(ee)}}if(!(K!==void 0&&(K--,K===0)))for(let z of tT(ce,jd)){let ee=Yr(w,z),me=Yr(j,z);(!y||y.test(me))&&(!E||!E.test(me))&&D(ee,me,K)}}}function PBe(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(MBe(l))}o.sort(Ax(!r));for(let s of o)oo(i,l=>!mm(l,s,e,!r))&&i.push(s)}return i}function MBe(e){let t=Jte(e,OSe);return t<0?hI(e)?Yb(oi(e)):e:e.substring(0,e.lastIndexOf(rl,t))}function w6(e,t){return t||O6(e)||3}function O6(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 KN(e,t){let r=e&&Uv(e);if(!t||t.length===0)return r?Z6:xR;let i=r?Z6:xR,o=pm(i);return[...i,...to(t,l=>l.scriptKind===7||r&&LBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function dk(e,t){return!e||!_E(e)?t:t===Z6?zSe:t===xR?WSe:[...t,[".json"]]}function LBe(e){return e===1||e===2}function F0(e){return gt(RR,t=>Tl(e,t))}function zI(e){return gt(PU,t=>Tl(e,t))}function boe({imports:e},t=Um(F0,zI)){return zl(e,({text:r})=>Lp(r)&&!Sc(r,Tk)?t(r):void 0)||!1}function Eoe(e,t,r,i){let o=pu(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return QR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!QR(r))return boe(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:cu(i)?kBe(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||Sc(h.text,Tk))continue;if(zI(h.text))return 3;F0(h.text)&&(d=!0)}return d?2:0}}function kBe(e){let t=0,r;for(let i of e.statements){if(t>3)break;pj(i)?r=bo(r,i.declarationList.declarations.map(o=>o.initializer)):td(i)&&Su(i.expression,!0)?r=Tn(r,i.expression):t++}return r||Xe}function Soe(e,t,r){if(!e)return!1;let i=KN(t,r);for(let o of pm(dk(t,i)))if(Tl(e,o))return!0;return!1}function vSe(e){let t=e.match(/\//g);return t?t.length:0}function uk(e,t){return el(vSe(e),vSe(t))}function Tu(e){for(let t of kU){let r=Toe(e,t);if(r!==void 0)return r}return e}function Toe(e,t){return Tl(e,t)?pk(e,t):void 0}function pk(e,t){return e.substring(0,e.length-t.length)}function fE(e,t){return BL(e,t,kU,!1)}function SR(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(Uh(e),t=>SR(t))}function Jm(e){return!(e>=0)}function F6(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ao(e,".d.")&&Sl(e,".ts")}function JN(e){return F6(e)||e===".json"}function qN(e){let t=Wg(e);return t!==void 0?t:R.fail(`File ${e} has unknown extension.`)}function bSe(e){return Wg(e)!==void 0}function Wg(e){return Gr(kU,t=>Tl(e,t))}function fk(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;Co(i)||r.push(i)}return KG(r,i=>i,t)}function dU(e,t){let r=e.indexOf(t);return R.assert(r!==-1),e.slice(r)}function Ma(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),R.assert(e.relatedInformation!==Xe,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Aoe(e,t){R.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:aE(e),end:e.end}}function pU(e,t){let r=t.pos-1,i=Math.min(e.text.length,Pa(e.text,t.end)+1);return{pos:r,end:i}}function XN(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function z6(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&tne(e,t,z6)}function YN(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 z0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Ioe(e){if(B6(e,!1))return fU(e)}function fU(e){let t=e.startsWith("-"),r=YN(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function B6(e,t){if(e==="")return!1;let r=Dy(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===z0({negative:s,base10Value:YN(r.getTokenValue())}))}function mE(e){return!!(e.flags&33554432)||HF(e)||WBe(e)||OBe(e)||!($h(e)||wBe(e))}function wBe(e){return Fe(e)&&Zu(e.parent)&&e.parent.name===e}function OBe(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 WBe(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 xoe(e){return If(e)&&Fe(e.typeName)}function Roe(e,t=Iy){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;ie.includes(t))}function Noe(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 jT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(jx(e))return BT(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return dT(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 f2(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 Qc(e)?t.members:void 0;case 266:return Q0(e)?t.members:void 0;case 312:return t.statements}}function G6(e){if(!e.typeParameters){if(gt(e.parameters,t=>!vd(t)))return!0;if(e.kind!==219){let t=Yc(e.parameters);if(!(t&&w0(t)))return!0}}return!1}function eP(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Poe(e){return e.kind===260&&e.parent.kind===299}function B0(e){return e.kind===218||e.kind===219}function G0(e){return e.replace(/\$/gm,()=>"\\$")}function ig(e){return(+e).toString()===e}function V6(e,t,r,i,o){let s=o&&e==="new";return!s&&Yp(e,t)?L.createIdentifier(e):!i&&!s&&ig(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function tP(e){return!!(e.flags&262144&&e.isThisType)}function j6(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(Sh,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(Sh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function ESe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function IR(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 mk(e){return gE(e)||Ll(e)||Tc(e)||Ac(e)||mu(e)||IR(e)||Yl(e)&&!I0(e)&&!E_(e)}function _k(e){if(!cN(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&&Kh(e.charCodeAt(1),t):Kh(r,t)}function Moe(e){var t;return((t=jU(e))==null?void 0:t.kind)===0}function hk(e){return or(e)&&(e.type&&e.type.kind===323||Wx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function nP(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||hk(e);case 355:case 348:return _k(e);default:return!1}}function Loe(e){let t=e.kind;return(t===211||t===212)&&r1(e.expression)}function hU(e){return or(e)&&Fu(e)&&kp(e)&&!!EV(e)}function gU(e){return R.checkDefined(U6(e))}function U6(e){let t=EV(e);return t&&t.typeExpression&&t.typeExpression.type}function rP(e){return Fe(e)?e.escapedText:BI(e)}function gk(e){return Fe(e)?vr(e):iP(e)}function koe(e){let t=e.kind;return t===80||t===295}function BI(e){return`${e.namespace.escapedText}:${vr(e.name)}`}function iP(e){return`${vr(e.namespace)}:${vr(e.name)}`}function yU(e){return Fe(e)?vr(e):iP(e)}function Qf(e){return!!(e.flags&8576)}function Zf(e){return e.flags&8192?e.escapedName:e.flags&384?fl(""+e.value):R.fail()}function H6(e){return!!e&&(kr(e)||Xs(e)||pr(e))}function woe(e){return e===void 0?!1:!!tD(e.attributes)}function GI(e,t){return BSe.call(e,"*",t)}function K6(e){return Fe(e.name)?e.name.escapedText:fl(e.name.text)}var J6,jv,yk,q6,vk,X6,vU,bU,SSe,TSe,EU,ASe,ISe,SU,TU,AU,IU,xSe,RSe,DSe,CSe,NSe,Ooe,PSe,MSe,LSe,oP,DT,kSe,wSe,ld,Woe,Y6,_c,rs,kd,pu,xU,em,_h,CT,$6,Q6,_E,Af,V0,aP,bk,Uv,sP,RU,OSe,DU,CU,Foe,zoe,Boe,NU,xR,PU,WSe,FSe,MU,RR,Z6,zSe,Ek,Sk,Tk,LU,kU,e4,BSe,zBe=bt({"src/compiler/utilities.ts"(){"use strict";Zo(),J6=[],jv="tslib",yk=160,q6=1e6,vk=V7e(),X6=Eu(()=>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*/,SSe=/^(\/\/\/\s*/,TSe=/^(\/\/\/\s*/,EU=/^(\/\/\/\s*/,ASe=/^\/\/\/\s*/,ISe=/^(\/\/\/\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||{}),xSe=/\$\{/g,RSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,DSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,CSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,NSe=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"})),Ooe=/[^\u0000-\u007F]/g,PSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,MSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,LSe=new Map(Object.entries({'"':""","'":"'"})),oP=[""," "],DT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",kSe=`\r +`,wSe=` +`,ld={getNodeConstructor:()=>aoe,getTokenConstructor:()=>EBe,getIdentifierConstructor:()=>SBe,getPrivateIdentifierConstructor:()=>aoe,getSourceFileConstructor:()=>aoe,getSymbolConstructor:()=>yBe,getTypeConstructor:()=>vBe,getSignatureConstructor:()=>bBe,getSourceMapSourceConstructor:()=>TBe},Woe=[],_c={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:_c.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(_c.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||(_c.module.computeValue(e)===100||_c.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(_c.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:_c.esModuleInterop.computeValue(e)||_c.module.computeValue(e)===4||_c.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=_c.moduleResolution.computeValue(e);if(!FI(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=_c.moduleResolution.computeValue(e);if(!FI(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:_c.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||_c.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&_c.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?_c.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>uu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>uu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>uu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>uu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>uu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>uu(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>uu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>uu(e,"useUnknownInCatchVariables")}},rs=_c.target.computeValue,kd=_c.module.computeValue,pu=_c.moduleResolution.computeValue,xU=_c.moduleDetection.computeValue,em=_c.isolatedModules.computeValue,_h=_c.esModuleInterop.computeValue,CT=_c.allowSyntheticDefaultImports.computeValue,$6=_c.resolvePackageJsonExports.computeValue,Q6=_c.resolvePackageJsonImports.computeValue,_E=_c.resolveJsonModule.computeValue,Af=_c.declaration.computeValue,V0=_c.preserveConstEnums.computeValue,aP=_c.incremental.computeValue,bk=_c.declarationMap.computeValue,Uv=_c.allowJs.computeValue,sP=_c.useDefineForClassFields.computeValue,RU=/[^\w\s/]/g,OSe=[42,63],DU=["node_modules","bower_components","jspm_packages"],CU=`(?!(${DU.join("|")})(/|$))`,Foe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>voe(e,Foe.singleAsteriskRegexFragment)},zoe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${CU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>voe(e,zoe.singleAsteriskRegexFragment)},Boe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>voe(e,Boe.singleAsteriskRegexFragment)},NU={files:Foe,directories:zoe,exclude:Boe},xR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],PU=pm(xR),WSe=[...xR,[".json"]],FSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],MU=[[".js",".jsx"],[".mjs"],[".cjs"]],RR=pm(MU),Z6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],zSe=[...Z6,[".json"]],Ek=[".d.ts",".d.cts",".d.mts"],Sk=[".ts",".cts",".mts",".tsx"],Tk=[".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"],e4={files:Xe,directories:Xe},BSe=String.prototype.replace}});function Goe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:d,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=ld.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=ld.getIdentifierConstructor()))(m,-1,-1)}function d(m){return new(i||(i=ld.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=ld.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=ld.getNodeConstructor()))(m,-1,-1)}}var BBe=bt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Zo()}});function Voe(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:ee,parenthesizeConstituentTypesOfUnionType:ge,parenthesizeConstituentTypeOfUnionType:me,parenthesizeConstituentTypesOfIntersectionType:J,parenthesizeConstituentTypeOfIntersectionType:q,parenthesizeOperandOfTypeOperator:re,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:ne,parenthesizeTypeOfOptionalType:Ce,parenthesizeTypeArguments:Ie,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=PN(Wt);switch(el(_t,ze)){case-1:return!(!Et&&tt===1&&Le.kind===229);case 1:return!1;case 0:if(Et)return tt===1;if(pr(Wt)&&Wt.operatorToken.kind===De){if(l(De))return!1;if(De===40){let ft=be?d(be):0;if(dN(ft)&&ft===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),dN(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=dN(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 TP(De)?e.createParenthesizedExpression(De):De}function E(De){let Le=Q2(227,58),Et=gm(De),be=PN(Et);return el(be,Le)!==1?e.createParenthesizedExpression(De):De}function S(De){let Le=gm(De);return TP(Le)?e.createParenthesizedExpression(De):De}function A(De){let Le=gm(De),Et=TP(Le);if(!Et)switch(bR(Le,!1).kind){case 231:case 218:Et=!0}return Et?e.createParenthesizedExpression(De):De}function N(De){let Le=bR(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||!Hd(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=Mc(De,Y);return at(e.createNodeArray(Le,De.hasTrailingComma),De)}function Y(De){let Le=gm(De),Et=PN(Le),be=Q2(226,28);return Et>be?De:at(e.createParenthesizedExpression(De),De)}function B(De){let Le=gm(De);if(ra(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=bR(Le,!1).kind;return Et===210||Et===218?at(e.createParenthesizedExpression(De),De):De}function ce(De){return!Ho(De)&&(TP(De)||bR(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 ee(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(Mc(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(Mc(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(Mc(De,ne))}function ne(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return OR(De)?De.postfix:PR(De)||gh(De)||NR(De)||LT(De)?he(De.type):t1(De)?he(De.falseType):Jv(De)||e1(De)?he(Ja(De.types)):PT(De)?!!De.typeParameter.constraint&&he(De.typeParameter.constraint):!1}function Ce(De){return he(De)?e.createParenthesizedType(De):xe(De)}function Ge(De){return mre(De)&&De.typeParameters?e.createParenthesizedType(De):De}function ve(De,Le){return Le===0?Ge(De):De}function Ie(De){if(gt(De))return e.createNodeArray(Mc(De,ve))}}var wU,GBe=bt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Zo(),wU={getParenthesizeLeftSideOfBinaryForOperator:e=>Zs,getParenthesizeRightSideOfBinaryForOperator:e=>Zs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Zs,parenthesizeConditionOfConditionalExpression:Zs,parenthesizeBranchOfConditionalExpression:Zs,parenthesizeExpressionOfExportDefault:Zs,parenthesizeExpressionOfNew:e=>ta(e,Yu),parenthesizeLeftSideOfAccess:e=>ta(e,Yu),parenthesizeOperandOfPostfixUnary:e=>ta(e,Yu),parenthesizeOperandOfPrefixUnary:e=>ta(e,kV),parenthesizeExpressionsOfCommaDelimitedList:e=>ta(e,E0),parenthesizeExpressionForDisallowedComma:Zs,parenthesizeExpressionOfExpressionStatement:Zs,parenthesizeConciseBodyOfArrowFunction:Zs,parenthesizeCheckTypeOfConditionalType:Zs,parenthesizeExtendsTypeOfConditionalType:Zs,parenthesizeConstituentTypesOfUnionType:e=>ta(e,E0),parenthesizeConstituentTypeOfUnionType:Zs,parenthesizeConstituentTypesOfIntersectionType:e=>ta(e,E0),parenthesizeConstituentTypeOfIntersectionType:Zs,parenthesizeOperandOfTypeOperator:Zs,parenthesizeOperandOfReadonlyTypeOperator:Zs,parenthesizeNonArrayTypeOfPostfixType:Zs,parenthesizeElementTypesOfTupleType:e=>ta(e,E0),parenthesizeElementTypeOfTupleType:Zs,parenthesizeTypeOfOptionalType:Zs,parenthesizeTypeArguments:e=>e&&ta(e,E0),parenthesizeLeadingTypeArgument:Zs}}});function joe(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(Ho(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 R.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((y=b0(m))==null?void 0:y.filter(S=>!XI(S)&&!W4(S)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Rr(E,m),at(E,m),lP(m)&&r4(E,!0),E}function i(m){var y;let E=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(S=>!XI(S)&&!W4(S)),m.name,m.typeParameters,m.heritageClauses,m.members);return Rr(E,m),at(E,m),lP(m)&&r4(E,!0),E}function o(m){if(Xa(m)){if(m.dotDotDotToken)return R.assertNode(m.name,Fe),Rr(at(e.createSpreadElement(m.name),m),m);let y=h(m.name);return m.initializer?Rr(at(e.createAssignment(y,m.initializer),m),m):y}return ta(m,ht)}function s(m){if(Xa(m)){if(m.dotDotDotToken)return R.assertNode(m.name,Fe),Rr(at(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let y=h(m.name);return Rr(at(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return R.assertNode(m.name,Fe),Rr(at(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return ta(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)?Rr(at(e.createObjectLiteralExpression(mn(m.elements,s)),m),m):ta(m,La)}function p(m){return U0(m)?Rr(at(e.createArrayLiteralExpression(mn(m.elements,o)),m),m):ta(m,fu)}function h(m){return $o(m)?l(m):ta(m,ht)}}var OU,VBe=bt({"src/compiler/factory/nodeConverters.ts"(){"use strict";Zo(),OU={convertToFunctionBlock:Uo,convertToFunctionExpression:Uo,convertToClassExpression:Uo,convertToArrayAssignmentElement:Uo,convertToObjectAssignmentElement:Uo,convertToAssignmentPattern:Uo,convertToObjectAssignmentPattern:Uo,convertToArrayAssignmentPattern:Uo,convertToAssignmentElementTarget:Uo}}});function GSe(e){Hoe.push(e)}function Ak(e,t){let r=e&8?Zs:Rr,i=Eu(()=>e&1?wU:Voe(w)),o=Eu(()=>e&2?OU:joe(w)),s=ah(v=>(C,F)=>Se(C,v,F)),l=ah(v=>C=>rt(v,C)),d=ah(v=>C=>Gt(C,v)),p=ah(v=>()=>HD(v)),h=ah(v=>C=>hA(v,C)),m=ah(v=>(C,F)=>ES(v,C,F)),y=ah(v=>(C,F)=>KD(v,C,F)),E=ah(v=>(C,F)=>Ys(v,C,F)),S=ah(v=>(C,F)=>UE(v,C,F)),A=ah(v=>(C,F,le)=>Lf(v,C,F,le)),N=ah(v=>(C,F,le)=>gb(v,C,F,le)),D=ah(v=>(C,F,le,Ke)=>yb(v,C,F,le,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:ft,createModifiersFromModifierFlags:Zt,createQualifiedName:en,updateQualifiedName:Dn,createComputedPropertyName:Kn,updateComputedPropertyName:pn,createTypeParameterDeclaration:Yt,updateTypeParameterDeclaration:qt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:Li,updateDecorator:Eo,createPropertySignature:Zn,updatePropertySignature:jr,createPropertyDeclaration:on,updatePropertyDeclaration:$e,createMethodSignature:Ot,updateMethodSignature:In,createMethodDeclaration:si,updateMethodDeclaration:yi,createConstructorDeclaration:vn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:ct,updateGetAccessorDeclaration:lt,createSetAccessorDeclaration:se,updateSetAccessorDeclaration:ke,createCallSignature:G,updateCallSignature:et,createConstructSignature:Tt,updateConstructSignature:He,createIndexSignature:pt,updateIndexSignature:Bt,createClassStaticBlockDeclaration:Ao,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:tr,updateArrayTypeNode:Wr,createTupleTypeNode:ho,updateTupleTypeNode:Pi,createNamedTupleMember:Ri,updateNamedTupleMember:Hr,createOptionalTypeNode:Io,updateOptionalTypeNode:xn,createRestTypeNode:Os,updateRestTypeNode:Zl,createUnionTypeNode:Bs,updateUnionTypeNode:_l,createIntersectionTypeNode:dd,updateIntersectionTypeNode:mo,createConditionalTypeNode:sa,updateConditionalTypeNode:ud,createInferTypeNode:Ss,updateInferTypeNode:Na,createImportTypeNode:lc,updateImportTypeNode:Rl,createParenthesizedType:sl,updateParenthesizedType:Mo,createThisTypeNode:tn,createTypeOperatorNode:Gs,updateTypeOperatorNode:rd,createIndexedAccessTypeNode:pd,updateIndexedAccessTypeNode:Ep,createMappedTypeNode:Ns,updateMappedTypeNode:xc,createLiteralTypeNode:de,updateLiteralTypeNode:$,createTemplateLiteralType:pl,updateTemplateLiteralType:Nf,createObjectBindingPattern:Pe,updateObjectBindingPattern:yt,createArrayBindingPattern:cn,updateArrayBindingPattern:br,createBindingElement:mr,updateBindingElement:Fr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Cr,createObjectLiteralExpression:Jo,updateObjectLiteralExpression:bl,createPropertyAccessExpression:e&4?(v,C)=>dr(Vs(v,C),262144):Vs,updatePropertyAccessExpression:yc,createPropertyAccessChain:e&4?(v,C,F)=>dr(bs(v,C,F),262144):bs,updatePropertyAccessChain:Kc,createElementAccessExpression:Wc,updateElementAccessExpression:im,createElementAccessChain:_u,updateElementAccessChain:Re,createCallExpression:Un,updateCallExpression:go,createCallChain:qo,updateCallChain:Qo,createNewExpression:ec,updateNewExpression:vc,createTaggedTemplateExpression:ll,updateTaggedTemplateExpression:hl,createTypeAssertion:jl,updateTypeAssertion:tc,createParenthesizedExpression:Jc,updateParenthesizedExpression:lf,createFunctionExpression:Bu,updateFunctionExpression:Du,createArrowFunction:Pf,updateArrowFunction:z_,createDeleteExpression:Ih,updateDeleteExpression:Hg,createTypeOfExpression:zd,updateTypeOfExpression:Kg,createVoidExpression:Sp,updateVoidExpression:dg,createAwaitExpression:Gu,updateAwaitExpression:Z,createPrefixUnaryExpression:rt,updatePrefixUnaryExpression:wt,createPostfixUnaryExpression:Gt,updatePostfixUnaryExpression:O,createBinaryExpression:Se,updateBinaryExpression:jt,createConditionalExpression:er,updateConditionalExpression:ii,createTemplateExpression:Xr,updateTemplateExpression:no,createTemplateHead:Tp,createTemplateMiddle:Vu,createTemplateTail:sb,createNoSubstitutionTemplateLiteral:cs,createTemplateLiteralLikeNode:Rc,createYieldExpression:Dm,updateYieldExpression:Cm,createSpreadElement:Ui,updateSpreadElement:Jg,createClassExpression:Zy,updateClassExpression:Nm,createOmittedExpression:mS,createExpressionWithTypeArguments:_S,updateExpressionWithTypeArguments:cf,createAsExpression:B_,updateAsExpression:df,createNonNullExpression:qg,updateNonNullExpression:we,createSatisfiesExpression:qe,updateSatisfiesExpression:Pt,createNonNullChain:Vt,updateNonNullChain:_n,createMetaProperty:Jn,updateMetaProperty:fn,createTemplateSpan:qn,updateTemplateSpan:mi,createSemicolonClassElement:ar,createBlock:ni,updateBlock:ur,createVariableStatement:Xo,updateVariableStatement:Ha,createEmptyStatement:Qd,createExpressionStatement:md,updateExpressionStatement:Xg,createIfStatement:kE,updateIfStatement:W1,createDoStatement:wE,updateDoStatement:WD,createWhileStatement:FD,updateWhileStatement:zD,createForStatement:sA,updateForStatement:hS,createForInStatement:F1,updateForInStatement:BD,createForOfStatement:z1,updateForOfStatement:B1,createContinueStatement:G1,updateContinueStatement:V1,createBreakStatement:lA,updateBreakStatement:j1,createReturnStatement:gS,updateReturnStatement:yS,createWithStatement:lb,updateWithStatement:cb,createSwitchStatement:ug,updateSwitchStatement:OE,createLabeledStatement:Qa,updateLabeledStatement:cA,createThrowStatement:GD,updateThrowStatement:WE,createTryStatement:Yg,updateTryStatement:xh,createDebuggerStatement:Mf,createVariableDeclaration:ju,updateVariableDeclaration:Ap,createVariableDeclarationList:np,updateVariableDeclarationList:ev,createFunctionDeclaration:dA,updateFunctionDeclaration:VD,createClassDeclaration:db,updateClassDeclaration:FE,createInterfaceDeclaration:H1,updateInterfaceDeclaration:bc,createTypeAliasDeclaration:tv,updateTypeAliasDeclaration:K1,createEnumDeclaration:e_,updateEnumDeclaration:uA,createModuleDeclaration:Ve,updateModuleDeclaration:t_,createModuleBlock:_d,updateModuleBlock:zE,createCaseBlock:J1,updateCaseBlock:ub,createNamespaceExportDeclaration:nv,updateNamespaceExportDeclaration:rv,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:n_,createImportDeclaration:pA,updateImportDeclaration:fA,createImportClause:BE,updateImportClause:mA,createAssertClause:om,updateAssertClause:am,createAssertEntry:$g,updateAssertEntry:q1,createImportTypeAssertionContainer:r_,updateImportTypeAssertionContainer:jD,createImportAttributes:vS,updateImportAttributes:qi,createImportAttribute:Qr,updateImportAttribute:Rh,createNamespaceImport:Uu,updateNamespaceImport:DM,createNamespaceExport:Qg,updateNamespaceExport:CM,createNamedImports:pb,updateNamedImports:gl,createImportSpecifier:Bp,updateImportSpecifier:pg,createExportAssignment:sm,updateExportAssignment:fb,createExportDeclaration:Pm,updateExportDeclaration:Zg,createNamedExports:_A,updateNamedExports:fg,createExportSpecifier:X1,updateExportSpecifier:mg,createMissingDeclaration:G_,createExternalModuleReference:iv,updateExternalModuleReference:UD,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:gA,updateJSDocFunctionType:Mm,createJSDocTypeLiteral:mb,updateJSDocTypeLiteral:JD,createJSDocTypeExpression:yA,updateJSDocTypeExpression:NM,createJSDocSignature:_r,updateJSDocSignature:id,createJSDocTemplateTag:V_,updateJSDocTemplateTag:sr,createJSDocTypedefTag:vA,updateJSDocTypedefTag:GE,createJSDocParameterTag:qc,updateJSDocParameterTag:Dh,createJSDocPropertyTag:Lm,updateJSDocPropertyTag:SS,createJSDocCallbackTag:TS,updateJSDocCallbackTag:_b,createJSDocOverloadTag:ey,updateJSDocOverloadTag:bA,createJSDocAugmentsTag:km,updateJSDocAugmentsTag:VE,createJSDocImplementsTag:_g,updateJSDocImplementsTag:rp,createJSDocSeeTag:hb,updateJSDocSeeTag:Y1,createJSDocNameReference:jE,updateJSDocNameReference:qD,createJSDocMemberName:AS,updateJSDocMemberName:EA,createJSDocLink:Gp,updateJSDocLink:SA,createJSDocLinkCode:Ul,updateJSDocLinkCode:Fc,createJSDocLinkPlain:TA,updateJSDocLinkPlain:Ad,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:AA,createJSDocUnknownTag:od,updateJSDocUnknownTag:$1,createJSDocText:IA,updateJSDocText:js,createJSDocComment:XD,updateJSDocComment:HE,createJsxElement:IS,updateJsxElement:PM,createJsxSelfClosingElement:hu,updateJsxSelfClosingElement:ty,createJsxOpeningElement:j_,updateJsxOpeningElement:Q1,createJsxClosingElement:Ip,updateJsxClosingElement:Z1,createJsxFragment:ip,createJsxText:av,updateJsxText:xA,createJsxOpeningFragment:YD,createJsxJsxClosingFragment:$D,updateJsxFragment:ex,createJsxAttribute:RA,updateJsxAttribute:QD,createJsxAttributes:vb,updateJsxAttributes:xp,createJsxSpreadAttribute:Ch,updateJsxSpreadAttribute:ZD,createJsxExpression:DA,updateJsxExpression:es,createJsxNamespacedName:Tr,updateJsxNamespacedName:pf,createCaseClause:Cu,updateCaseClause:xS,createDefaultClause:eC,updateDefaultClause:KE,createHeritageClause:RS,updateHeritageClause:CA,createCatchClause:hg,updateCatchClause:i_,createPropertyAssignment:ff,updatePropertyAssignment:wm,createShorthandPropertyAssignment:gg,updateShorthandPropertyAssignment:yg,createSpreadAssignment:cc,updateSpreadAssignment:tC,createEnumMember:kf,updateEnumMember:Nh,createSourceFile:mf,updateSourceFile:Ps,createRedirectedSourceFile:DS,createBundle:CS,updateBundle:NS,createUnparsedSource:ry,createUnparsedPrologue:qE,createUnparsedPrepend:I,createUnparsedTextLike:oe,createUnparsedSyntheticReference:ut,createInputFiles:nn,createSyntheticExpression:Mr,createSyntaxList:ki,createNotEmittedStatement:vi,createPartiallyEmittedExpression:Zi,updatePartiallyEmittedExpression:_a,createCommaListExpression:Nu,updateCommaListExpression:wf,createSyntheticReferenceExpression:Eb,updateSyntheticReferenceExpression:Si,cloneNode:Tb,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:PA,createImmediatelyInvokedArrowFunction:PS,createVoidZero:U_,createExportDefault:Mh,createExternalModuleExport:nC,createTypeCheck:MA,createIsNotTypeCheck:KB,createMethodCall:Ab,createGlobalMethodCall:o_,createFunctionBindCall:p8,createFunctionCallCall:f8,createFunctionApplyCall:XE,createArraySliceCall:MM,createArrayConcatCall:Lh,createObjectDefinePropertyCall:ix,createObjectGetOwnPropertyDescriptorCall:m8,createReflectGetCall:H_,createReflectSetCall:X,createPropertyDescriptor:Ue,createCallBinding:Ci,createAssignmentTargetWrapper:_i,inlineExpressions:Xi,getInternalName:Rs,getLocalName:$a,getExportName:Of,getDeclarationName:K_,getNamespaceMemberName:vg,getExternalModuleOrNamespaceExportName:iy,restoreOuterExpressions:Ut,restoreEnclosingLabel:wr,createUseStrictPrologue:op,copyPrologue:oy,copyStandardPrologue:LA,copyCustomPrologue:rC,ensureUseStrict:LM,liftToBlock:kM,mergeLexicalEnvironment:ay,replaceModifiers:xb,replaceDecoratorsAndModifiers:iC,replacePropertyName:jp};return gn(Hoe,v=>v(w)),w;function j(v,C){if(v===void 0||v===Xe)v=[];else if(E0(v)){if(C===void 0||v.hasTrailingComma===C)return v.transformFlags===void 0&&VSe(v),R.attachNodeArrayDebugInfo(v),v;let Ke=v.slice();return Ke.pos=v.pos,Ke.end=v.end,Ke.hasTrailingComma=C,Ke.transformFlags=v.transformFlags,R.attachNodeArrayDebugInfo(Ke),Ke}let F=v.length,le=F>=1&&F<=4?v.slice():v;return le.pos=-1,le.end=-1,le.hasTrailingComma=!!C,le.transformFlags=0,VSe(le),R.attachNodeArrayDebugInfo(le),le}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),nr(v,C)}function ce(v,C=0){let F=typeof v=="number"?v+"":v;R.assert(F.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let le=Y(9);return le.text=F,le.numericLiteralFlags=C,C&384&&(le.transformFlags|=1024),le}function z(v){let C=Et(10);return C.text=typeof v=="string"?v:z0(v)+"n",C.transformFlags|=32,C}function ee(v,C){let F=Y(11);return F.text=v,F.singleQuote=C,F}function me(v,C,F){let le=ee(v,C);return le.hasExtendedUnicodeEscape=F,F&&(le.transformFlags|=1024),le}function ge(v){let C=ee(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 av(C,!1);case 13:return av(C,!0);case 14:return q(C);case 15:return Rc(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,le){let Ke=re(fl(v));return Nk(Ke,{flags:C,id:n4,prefix:F,suffix:le}),n4++,Ke}function xe(v,C,F){C===void 0&&v&&(C=v0(v)),C===80&&(C=void 0);let le=re(fl(v));return F&&(le.flags|=256),le.escapedText==="await"&&(le.transformFlags|=67108864),le.flags&256&&(le.transformFlags|=1024),le}function fe(v,C,F,le){let Ke=1;C&&(Ke|=8);let Ht=pe("",Ke,F,le);return v&&v(Ht),Ht}function ne(v){let C=2;return v&&(C|=8),pe("",C,void 0,void 0)}function he(v,C=0,F,le){return R.assert(!(C&7),"Argument out of range: flags"),R.assert((C&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(v,3|C,F,le)}function Ce(v,C=0,F,le){R.assert(!(C&7),"Argument out of range: flags");let Ke=v?Jh(v)?bE(!1,F,v,le,vr):`generated@${is(v)}`:"";(F||le)&&(C|=16);let Ht=pe(Ke,4|C,F,le);return Ht.original=v,Ht}function Ge(v){let C=t.createBasePrivateIdentifierNode(81);return C.escapedText=v,C.transformFlags|=16777216,C}function ve(v){return ao(v,"#")||R.fail("First character of private identifier must be #: "+v),Ge(fl(v))}function Ie(v,C,F,le){let Ke=Ge(fl(v));return Nk(Ke,{flags:C,id:n4,prefix:F,suffix:le}),n4++,Ke}function De(v,C,F){v&&!ao(v,"#")&&R.fail("First character of private identifier must be #: "+v);let le=8|(v?3:1);return Ie(v??"",le,C,F)}function Le(v,C,F){let le=Jh(v)?bE(!0,C,v,F,vr):`#generated@${is(v)}`,Ht=Ie(le,4|(C||F?16:0),C,F);return Ht.original=v,Ht}function Et(v){return t.createBaseTokenNode(v)}function be(v){R.assert(v>=0&&v<=165,"Invalid token"),R.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),R.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),R.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 ft(v){return be(v)}function Zt(v){let C=[];return v&32&&C.push(ft(95)),v&128&&C.push(ft(138)),v&2048&&C.push(ft(90)),v&4096&&C.push(ft(87)),v&1&&C.push(ft(125)),v&2&&C.push(ft(123)),v&4&&C.push(ft(124)),v&64&&C.push(ft(128)),v&256&&C.push(ft(126)),v&16&&C.push(ft(164)),v&8&&C.push(ft(148)),v&512&&C.push(ft(129)),v&1024&&C.push(ft(134)),v&8192&&C.push(ft(103)),v&16384&&C.push(ft(147)),C.length?C:void 0}function en(v,C){let F=K(166);return F.left=v,F.right=dc(C),F.transformFlags|=Er(F.left)|Ik(F.right),F.flowNode=void 0,F}function Dn(v,C,F){return v.left!==C||v.right!==F?nr(en(C,F),v):v}function Kn(v){let C=K(167);return C.expression=i().parenthesizeExpressionOfComputedPropertyName(v),C.transformFlags|=Er(C.expression)|1024|131072,C}function pn(v,C){return v.expression!==C?nr(Kn(C),v):v}function Yt(v,C,F,le){let Ke=Y(168);return Ke.modifiers=Ga(v),Ke.name=dc(C),Ke.constraint=F,Ke.default=le,Ke.transformFlags=1,Ke.expression=void 0,Ke.jsDoc=void 0,Ke}function qt(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.constraint!==le||v.default!==Ke?nr(Yt(C,F,le,Ke),v):v}function hi(v,C,F,le,Ke,Ht){let gr=Y(169);return gr.modifiers=Ga(v),gr.dotDotDotToken=C,gr.name=dc(F),gr.questionToken=le,gr.type=Ke,gr.initializer=ox(Ht),O0(gr.name)?gr.transformFlags=1:gr.transformFlags=Ua(gr.modifiers)|Er(gr.dotDotDotToken)|Hv(gr.name)|Er(gr.questionToken)|Er(gr.initializer)|(gr.questionToken??gr.type?1:0)|(gr.dotDotDotToken??gr.initializer?1024:0)|(x_(gr.modifiers)&31?8192:0),gr.jsDoc=void 0,gr}function uo(v,C,F,le,Ke,Ht,gr){return v.modifiers!==C||v.dotDotDotToken!==F||v.name!==le||v.questionToken!==Ke||v.type!==Ht||v.initializer!==gr?nr(hi(C,F,le,Ke,Ht,gr),v):v}function Li(v){let C=K(170);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=Er(C.expression)|1|8192|33554432,C}function Eo(v,C){return v.expression!==C?nr(Li(C),v):v}function Zn(v,C,F,le){let Ke=Y(171);return Ke.modifiers=Ga(v),Ke.name=dc(C),Ke.type=le,Ke.questionToken=F,Ke.transformFlags=1,Ke.initializer=void 0,Ke.jsDoc=void 0,Ke}function jr(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.questionToken!==le||v.type!==Ke?Sr(Zn(C,F,le,Ke),v):v}function Sr(v,C){return v!==C&&(v.initializer=C.initializer),nr(v,C)}function on(v,C,F,le,Ke){let Ht=Y(172);Ht.modifiers=Ga(v),Ht.name=dc(C),Ht.questionToken=F&&Kv(F)?F:void 0,Ht.exclamationToken=F&&wk(F)?F:void 0,Ht.type=le,Ht.initializer=ox(Ke);let gr=Ht.flags&33554432||x_(Ht.modifiers)&128;return Ht.transformFlags=Ua(Ht.modifiers)|Hv(Ht.name)|Er(Ht.initializer)|(gr||Ht.questionToken||Ht.exclamationToken||Ht.type?1:0)|(Ya(Ht.name)||x_(Ht.modifiers)&256&&Ht.initializer?8192:0)|16777216,Ht.jsDoc=void 0,Ht}function $e(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.questionToken!==(le!==void 0&&Kv(le)?le:void 0)||v.exclamationToken!==(le!==void 0&&wk(le)?le:void 0)||v.type!==Ke||v.initializer!==Ht?nr(on(C,F,le,Ke,Ht),v):v}function Ot(v,C,F,le,Ke,Ht){let gr=Y(173);return gr.modifiers=Ga(v),gr.name=dc(C),gr.questionToken=F,gr.typeParameters=Ga(le),gr.parameters=Ga(Ke),gr.type=Ht,gr.transformFlags=1,gr.jsDoc=void 0,gr.locals=void 0,gr.nextContainer=void 0,gr.typeArguments=void 0,gr}function In(v,C,F,le,Ke,Ht,gr){return v.modifiers!==C||v.name!==F||v.questionToken!==le||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==gr?B(Ot(C,F,le,Ke,Ht,gr),v):v}function si(v,C,F,le,Ke,Ht,gr,eo){let Us=Y(174);if(Us.modifiers=Ga(v),Us.asteriskToken=C,Us.name=dc(F),Us.questionToken=le,Us.exclamationToken=void 0,Us.typeParameters=Ga(Ke),Us.parameters=j(Ht),Us.type=gr,Us.body=eo,!Us.body)Us.transformFlags=1;else{let a_=x_(Us.modifiers)&1024,Db=!!Us.asteriskToken,Om=a_&&Db;Us.transformFlags=Ua(Us.modifiers)|Er(Us.asteriskToken)|Hv(Us.name)|Er(Us.questionToken)|Ua(Us.typeParameters)|Ua(Us.parameters)|Er(Us.type)|Er(Us.body)&-67108865|(Om?128:a_?256:Db?2048:0)|(Us.questionToken||Us.typeParameters||Us.type?1:0)|1024}return Us.typeArguments=void 0,Us.jsDoc=void 0,Us.locals=void 0,Us.nextContainer=void 0,Us.flowNode=void 0,Us.endFlowNode=void 0,Us.returnFlowNode=void 0,Us}function yi(v,C,F,le,Ke,Ht,gr,eo,Us){return v.modifiers!==C||v.asteriskToken!==F||v.name!==le||v.questionToken!==Ke||v.typeParameters!==Ht||v.parameters!==gr||v.type!==eo||v.body!==Us?$i(si(C,F,le,Ke,Ht,gr,eo,Us),v):v}function $i(v,C){return v!==C&&(v.exclamationToken=C.exclamationToken),nr(v,C)}function Ao(v){let C=Y(175);return C.body=v,C.transformFlags=Er(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(Ao(C),v):v}function Ba(v,C){return v!==C&&(v.modifiers=C.modifiers),nr(v,C)}function vn(v,C,F){let le=Y(176);return le.modifiers=Ga(v),le.parameters=j(C),le.body=F,le.transformFlags=Ua(le.modifiers)|Ua(le.parameters)|Er(le.body)&-67108865|1024,le.typeParameters=void 0,le.type=void 0,le.typeArguments=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.returnFlowNode=void 0,le}function kn(v,C,F,le){return v.modifiers!==C||v.parameters!==F||v.body!==le?Be(vn(C,F,le),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,le,Ke){let Ht=Y(177);return Ht.modifiers=Ga(v),Ht.name=dc(C),Ht.parameters=j(F),Ht.type=le,Ht.body=Ke,Ht.body?Ht.transformFlags=Ua(Ht.modifiers)|Hv(Ht.name)|Ua(Ht.parameters)|Er(Ht.type)|Er(Ht.body)&-67108865|(Ht.type?1:0):Ht.transformFlags=1,Ht.typeArguments=void 0,Ht.typeParameters=void 0,Ht.jsDoc=void 0,Ht.locals=void 0,Ht.nextContainer=void 0,Ht.flowNode=void 0,Ht.endFlowNode=void 0,Ht.returnFlowNode=void 0,Ht}function lt(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.type!==Ke||v.body!==Ht?Rt(ct(C,F,le,Ke,Ht),v):v}function Rt(v,C){return v!==C&&(v.typeParameters=C.typeParameters),B(v,C)}function se(v,C,F,le){let Ke=Y(178);return Ke.modifiers=Ga(v),Ke.name=dc(C),Ke.parameters=j(F),Ke.body=le,Ke.body?Ke.transformFlags=Ua(Ke.modifiers)|Hv(Ke.name)|Ua(Ke.parameters)|Er(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,le,Ke){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.body!==Ke?st(se(C,F,le,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 le=Y(179);return le.typeParameters=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function et(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?B(G(C,F,le),v):v}function Tt(v,C,F){let le=Y(180);return le.typeParameters=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function He(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?B(Tt(C,F,le),v):v}function pt(v,C,F){let le=Y(181);return le.modifiers=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function Bt(v,C,F,le){return v.parameters!==F||v.type!==le||v.modifiers!==C?B(pt(C,F,le),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?nr(hn(C,F),v):v}function un(v){return be(v)}function U(v,C,F){let le=K(182);return le.assertsModifier=v,le.parameterName=dc(C),le.type=F,le.transformFlags=1,le}function Me(v,C,F,le){return v.assertsModifier!==C||v.parameterName!==F||v.type!==le?nr(U(C,F,le),v):v}function Nt(v,C){let F=K(183);return F.typeName=dc(v),F.typeArguments=C&&i().parenthesizeTypeArguments(j(C)),F.transformFlags=1,F}function k(v,C,F){return v.typeName!==C||v.typeArguments!==F?nr(Nt(C,F),v):v}function ie(v,C,F){let le=Y(184);return le.typeParameters=Ga(v),le.parameters=Ga(C),le.type=F,le.transformFlags=1,le.modifiers=void 0,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.typeArguments=void 0,le}function H(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?ue(ie(C,F,le),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):R.fail("Incorrect number of arguments specified.")}function Ne(v,C,F,le){let Ke=Y(185);return Ke.modifiers=Ga(v),Ke.typeParameters=Ga(C),Ke.parameters=Ga(F),Ke.type=le,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?Kt(...v):v.length===4?En(...v):R.fail("Incorrect number of arguments specified.")}function Kt(v,C,F,le,Ke){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==le||v.type!==Ke?B(We(C,F,le,Ke),v):v}function En(v,C,F,le){return Kt(v,v.modifiers,C,F,le)}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?nr(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?nr(gi(C),v):v}function tr(v){let C=K(188);return C.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),C.transformFlags=1,C}function Wr(v,C){return v.elementType!==C?nr(tr(C),v):v}function ho(v){let C=K(189);return C.elements=j(i().parenthesizeElementTypesOfTupleType(v)),C.transformFlags=1,C}function Pi(v,C){return v.elements!==C?nr(ho(C),v):v}function Ri(v,C,F,le){let Ke=Y(202);return Ke.dotDotDotToken=v,Ke.name=C,Ke.questionToken=F,Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke}function Hr(v,C,F,le,Ke){return v.dotDotDotToken!==C||v.name!==F||v.questionToken!==le||v.type!==Ke?nr(Ri(C,F,le,Ke),v):v}function Io(v){let C=K(190);return C.type=i().parenthesizeTypeOfOptionalType(v),C.transformFlags=1,C}function xn(v,C){return v.type!==C?nr(Io(C),v):v}function Os(v){let C=K(191);return C.type=v,C.transformFlags=1,C}function Zl(v,C){return v.type!==C?nr(Os(C),v):v}function Po(v,C,F){let le=K(v);return le.types=w.createNodeArray(F(C)),le.transformFlags=1,le}function ls(v,C,F){return v.types!==C?nr(Po(v.kind,C,F),v):v}function Bs(v){return Po(192,v,i().parenthesizeConstituentTypesOfUnionType)}function _l(v,C){return ls(v,C,i().parenthesizeConstituentTypesOfUnionType)}function dd(v){return Po(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function mo(v,C){return ls(v,C,i().parenthesizeConstituentTypesOfIntersectionType)}function sa(v,C,F,le){let Ke=K(194);return Ke.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Ke.extendsType=i().parenthesizeExtendsTypeOfConditionalType(C),Ke.trueType=F,Ke.falseType=le,Ke.transformFlags=1,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function ud(v,C,F,le,Ke){return v.checkType!==C||v.extendsType!==F||v.trueType!==le||v.falseType!==Ke?nr(sa(C,F,le,Ke),v):v}function Ss(v){let C=K(195);return C.typeParameter=v,C.transformFlags=1,C}function Na(v,C){return v.typeParameter!==C?nr(Ss(C),v):v}function pl(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?nr(pl(C,F),v):v}function lc(v,C,F,le,Ke=!1){let Ht=K(205);return Ht.argument=v,Ht.attributes=C,Ht.assertions&&Ht.assertions.assertClause&&Ht.attributes&&(Ht.assertions.assertClause=Ht.attributes),Ht.qualifier=F,Ht.typeArguments=le&&i().parenthesizeTypeArguments(le),Ht.isTypeOf=Ke,Ht.transformFlags=1,Ht}function Rl(v,C,F,le,Ke,Ht=v.isTypeOf){return v.argument!==C||v.attributes!==F||v.qualifier!==le||v.typeArguments!==Ke||v.isTypeOf!==Ht?nr(lc(C,F,le,Ke,Ht),v):v}function sl(v){let C=K(196);return C.type=v,C.transformFlags=1,C}function Mo(v,C){return v.type!==C?nr(sl(C),v):v}function tn(){let v=K(197);return v.transformFlags=1,v}function Gs(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 rd(v,C){return v.type!==C?nr(Gs(v.operator,C),v):v}function pd(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?nr(pd(C,F),v):v}function Ns(v,C,F,le,Ke,Ht){let gr=Y(200);return gr.readonlyToken=v,gr.typeParameter=C,gr.nameType=F,gr.questionToken=le,gr.type=Ke,gr.members=Ht&&j(Ht),gr.transformFlags=1,gr.locals=void 0,gr.nextContainer=void 0,gr}function xc(v,C,F,le,Ke,Ht,gr){return v.readonlyToken!==C||v.typeParameter!==F||v.nameType!==le||v.questionToken!==Ke||v.type!==Ht||v.members!==gr?nr(Ns(C,F,le,Ke,Ht,gr),v):v}function de(v){let C=K(201);return C.literal=v,C.transformFlags=1,C}function $(v,C){return v.literal!==C?nr(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?nr(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 br(v,C){return v.elements!==C?nr(cn(C),v):v}function mr(v,C,F,le){let Ke=Y(208);return Ke.dotDotDotToken=v,Ke.propertyName=dc(C),Ke.name=dc(F),Ke.initializer=ox(le),Ke.transformFlags|=Er(Ke.dotDotDotToken)|Hv(Ke.propertyName)|Hv(Ke.name)|Er(Ke.initializer)|(Ke.dotDotDotToken?32768:0)|1024,Ke.flowNode=void 0,Ke}function Fr(v,C,F,le,Ke){return v.propertyName!==F||v.dotDotDotToken!==C||v.name!==le||v.initializer!==Ke?nr(mr(C,F,le,Ke),v):v}function Di(v,C){let F=K(209),le=v&&Qs(v),Ke=j(v,le&&jc(le)?!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?nr(Di(C,v.multiLine),v):v}function Jo(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?nr(Jo(C,v.multiLine),v):v}function Hc(v,C,F){let le=Y(211);return le.expression=v,le.questionDotToken=C,le.name=F,le.transformFlags=Er(le.expression)|Er(le.questionDotToken)|(Fe(le.name)?Ik(le.name):Er(le.name)|536870912),le.jsDoc=void 0,le.flowNode=void 0,le}function Vs(v,C){let F=Hc(i().parenthesizeLeftSideOfAccess(v,!1),void 0,dc(C));return pP(v)&&(F.transformFlags|=384),F}function yc(v,C,F){return sF(v)?Kc(v,C,v.questionDotToken,ta(F,Fe)):v.expression!==C||v.name!==F?nr(Vs(C,F),v):v}function bs(v,C,F){let le=Hc(i().parenthesizeLeftSideOfAccess(v,!0),C,dc(F));return le.flags|=64,le.transformFlags|=32,le}function Kc(v,C,F,le){return R.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==C||v.questionDotToken!==F||v.name!==le?nr(bs(C,F,le),v):v}function tp(v,C,F){let le=Y(212);return le.expression=v,le.questionDotToken=C,le.argumentExpression=F,le.transformFlags|=Er(le.expression)|Er(le.questionDotToken)|Er(le.argumentExpression),le.jsDoc=void 0,le.flowNode=void 0,le}function Wc(v,C){let F=tp(i().parenthesizeLeftSideOfAccess(v,!1),void 0,$E(C));return pP(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?nr(Wc(C,F),v):v}function _u(v,C,F){let le=tp(i().parenthesizeLeftSideOfAccess(v,!0),C,$E(F));return le.flags|=64,le.transformFlags|=32,le}function Re(v,C,F,le){return R.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==C||v.questionDotToken!==F||v.argumentExpression!==le?nr(_u(C,F,le),v):v}function Lt(v,C,F,le){let Ke=Y(213);return Ke.expression=v,Ke.questionDotToken=C,Ke.typeArguments=F,Ke.arguments=le,Ke.transformFlags|=Er(Ke.expression)|Er(Ke.questionDotToken)|Ua(Ke.typeArguments)|Ua(Ke.arguments),Ke.typeArguments&&(Ke.transformFlags|=1),Ou(Ke.expression)&&(Ke.transformFlags|=16384),Ke}function Un(v,C,F){let le=Lt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ga(C),i().parenthesizeExpressionsOfCommaDelimitedList(j(F)));return fP(le.expression)&&(le.transformFlags|=8388608),le}function go(v,C,F,le){return sT(v)?Qo(v,C,v.questionDotToken,F,le):v.expression!==C||v.typeArguments!==F||v.arguments!==le?nr(Un(C,F,le),v):v}function qo(v,C,F,le){let Ke=Lt(i().parenthesizeLeftSideOfAccess(v,!0),C,Ga(F),i().parenthesizeExpressionsOfCommaDelimitedList(j(le)));return Ke.flags|=64,Ke.transformFlags|=32,Ke}function Qo(v,C,F,le,Ke){return R.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==C||v.questionDotToken!==F||v.typeArguments!==le||v.arguments!==Ke?nr(qo(C,F,le,Ke),v):v}function ec(v,C,F){let le=Y(214);return le.expression=i().parenthesizeExpressionOfNew(v),le.typeArguments=Ga(C),le.arguments=F?i().parenthesizeExpressionsOfCommaDelimitedList(F):void 0,le.transformFlags|=Er(le.expression)|Ua(le.typeArguments)|Ua(le.arguments)|32,le.typeArguments&&(le.transformFlags|=1),le}function vc(v,C,F,le){return v.expression!==C||v.typeArguments!==F||v.arguments!==le?nr(ec(C,F,le),v):v}function ll(v,C,F){let le=K(215);return le.tag=i().parenthesizeLeftSideOfAccess(v,!1),le.typeArguments=Ga(C),le.template=F,le.transformFlags|=Er(le.tag)|Ua(le.typeArguments)|Er(le.template)|1024,le.typeArguments&&(le.transformFlags|=1),kj(le.template)&&(le.transformFlags|=128),le}function hl(v,C,F,le){return v.tag!==C||v.typeArguments!==F||v.template!==le?nr(ll(C,F,le),v):v}function jl(v,C){let F=K(216);return F.expression=i().parenthesizeOperandOfPrefixUnary(C),F.type=v,F.transformFlags|=Er(F.expression)|Er(F.type)|1,F}function tc(v,C,F){return v.type!==C||v.expression!==F?nr(jl(C,F),v):v}function Jc(v){let C=K(217);return C.expression=v,C.transformFlags=Er(C.expression),C.jsDoc=void 0,C}function lf(v,C){return v.expression!==C?nr(Jc(C),v):v}function Bu(v,C,F,le,Ke,Ht,gr){let eo=Y(218);eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=dc(F),eo.typeParameters=Ga(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=gr;let Us=x_(eo.modifiers)&1024,a_=!!eo.asteriskToken,Db=Us&&a_;return eo.transformFlags=Ua(eo.modifiers)|Er(eo.asteriskToken)|Hv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|Er(eo.type)|Er(eo.body)&-67108865|(Db?128:Us?256:a_?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 Du(v,C,F,le,Ke,Ht,gr,eo){return v.name!==le||v.modifiers!==C||v.asteriskToken!==F||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==gr||v.body!==eo?B(Bu(C,F,le,Ke,Ht,gr,eo),v):v}function Pf(v,C,F,le,Ke,Ht){let gr=Y(219);gr.modifiers=Ga(v),gr.typeParameters=Ga(C),gr.parameters=j(F),gr.type=le,gr.equalsGreaterThanToken=Ke??be(39),gr.body=i().parenthesizeConciseBodyOfArrowFunction(Ht);let eo=x_(gr.modifiers)&1024;return gr.transformFlags=Ua(gr.modifiers)|Ua(gr.typeParameters)|Ua(gr.parameters)|Er(gr.type)|Er(gr.equalsGreaterThanToken)|Er(gr.body)&-67108865|(gr.typeParameters||gr.type?1:0)|(eo?16640:0)|1024,gr.typeArguments=void 0,gr.jsDoc=void 0,gr.locals=void 0,gr.nextContainer=void 0,gr.flowNode=void 0,gr.endFlowNode=void 0,gr.returnFlowNode=void 0,gr}function z_(v,C,F,le,Ke,Ht,gr){return v.modifiers!==C||v.typeParameters!==F||v.parameters!==le||v.type!==Ke||v.equalsGreaterThanToken!==Ht||v.body!==gr?B(Pf(C,F,le,Ke,Ht,gr),v):v}function Ih(v){let C=K(220);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=Er(C.expression),C}function Hg(v,C){return v.expression!==C?nr(Ih(C),v):v}function zd(v){let C=K(221);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=Er(C.expression),C}function Kg(v,C){return v.expression!==C?nr(zd(C),v):v}function Sp(v){let C=K(222);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=Er(C.expression),C}function dg(v,C){return v.expression!==C?nr(Sp(C),v):v}function Gu(v){let C=K(223);return C.expression=i().parenthesizeOperandOfPrefixUnary(v),C.transformFlags|=Er(C.expression)|256|128|2097152,C}function Z(v,C){return v.expression!==C?nr(Gu(C),v):v}function rt(v,C){let F=K(224);return F.operator=v,F.operand=i().parenthesizeOperandOfPrefixUnary(C),F.transformFlags|=Er(F.operand),(v===46||v===47)&&Fe(F.operand)&&!il(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function wt(v,C){return v.operand!==C?nr(rt(v.operator,C),v):v}function Gt(v,C){let F=K(225);return F.operator=C,F.operand=i().parenthesizeOperandOfPostfixUnary(v),F.transformFlags|=Er(F.operand),Fe(F.operand)&&!il(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function O(v,C){return v.operand!==C?nr(Gt(C,v.operator),v):v}function Se(v,C,F){let le=Y(226),Ke=wM(C),Ht=Ke.kind;return le.left=i().parenthesizeLeftSideOfBinary(Ht,v),le.operatorToken=Ke,le.right=i().parenthesizeRightSideOfBinary(Ht,le.left,F),le.transformFlags|=Er(le.left)|Er(le.operatorToken)|Er(le.right),Ht===61?le.transformFlags|=32:Ht===64?La(le.left)?le.transformFlags|=5248|nt(le.left):fu(le.left)&&(le.transformFlags|=5120|nt(le.left)):Ht===43||Ht===68?le.transformFlags|=512:ON(Ht)&&(le.transformFlags|=16),Ht===103&&Ki(le.left)&&(le.transformFlags|=536870912),le.jsDoc=void 0,le}function nt(v){return Qk(v)?65536:0}function jt(v,C,F,le){return v.left!==C||v.operatorToken!==F||v.right!==le?nr(Se(C,F,le),v):v}function er(v,C,F,le,Ke){let Ht=K(227);return Ht.condition=i().parenthesizeConditionOfConditionalExpression(v),Ht.questionToken=C??be(58),Ht.whenTrue=i().parenthesizeBranchOfConditionalExpression(F),Ht.colonToken=le??be(59),Ht.whenFalse=i().parenthesizeBranchOfConditionalExpression(Ke),Ht.transformFlags|=Er(Ht.condition)|Er(Ht.questionToken)|Er(Ht.whenTrue)|Er(Ht.colonToken)|Er(Ht.whenFalse),Ht}function ii(v,C,F,le,Ke,Ht){return v.condition!==C||v.questionToken!==F||v.whenTrue!==le||v.colonToken!==Ke||v.whenFalse!==Ht?nr(er(C,F,le,Ke,Ht),v):v}function Xr(v,C){let F=K(228);return F.head=v,F.templateSpans=j(C),F.transformFlags|=Er(F.head)|Ua(F.templateSpans)|1024,F}function no(v,C,F){return v.head!==C||v.templateSpans!==F?nr(Xr(C,F),v):v}function ka(v,C,F,le=0){R.assert(!(le&-7177),"Unsupported template flags.");let Ke;if(F!==void 0&&F!==C&&(Ke=jBe(v,F),typeof Ke=="object"))return R.fail("Invalid raw text");if(C===void 0){if(Ke===void 0)return R.fail("Arguments 'text' and 'rawText' may not both be undefined.");C=Ke}else Ke!==void 0&&R.assert(C===Ke,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return C}function wa(v){let C=1024;return v&&(C|=128),C}function Ol(v,C,F,le){let Ke=Et(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=le&7176,Ke.transformFlags=wa(Ke.templateFlags),Ke}function fd(v,C,F,le){let Ke=Y(v);return Ke.text=C,Ke.rawText=F,Ke.templateFlags=le&7176,Ke.transformFlags=wa(Ke.templateFlags),Ke}function Rc(v,C,F,le){return v===15?fd(v,C,F,le):Ol(v,C,F,le)}function Tp(v,C,F){return v=ka(16,v,C,F),Rc(16,v,C,F)}function Vu(v,C,F){return v=ka(16,v,C,F),Rc(17,v,C,F)}function sb(v,C,F){return v=ka(16,v,C,F),Rc(18,v,C,F)}function cs(v,C,F){return v=ka(16,v,C,F),fd(15,v,C,F)}function Dm(v,C){R.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|=Er(F.expression)|Er(F.asteriskToken)|1024|128|1048576,F}function Cm(v,C,F){return v.expression!==F||v.asteriskToken!==C?nr(Dm(C,F),v):v}function Ui(v){let C=K(230);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=Er(C.expression)|1024|32768,C}function Jg(v,C){return v.expression!==C?nr(Ui(C),v):v}function Zy(v,C,F,le,Ke){let Ht=Y(231);return Ht.modifiers=Ga(v),Ht.name=dc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),Ht.transformFlags|=Ua(Ht.modifiers)|Hv(Ht.name)|Ua(Ht.typeParameters)|Ua(Ht.heritageClauses)|Ua(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.jsDoc=void 0,Ht}function Nm(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?nr(Zy(C,F,le,Ke,Ht),v):v}function mS(){return K(232)}function _S(v,C){let F=K(233);return F.expression=i().parenthesizeLeftSideOfAccess(v,!1),F.typeArguments=C&&i().parenthesizeTypeArguments(C),F.transformFlags|=Er(F.expression)|Ua(F.typeArguments)|1024,F}function cf(v,C,F){return v.expression!==C||v.typeArguments!==F?nr(_S(C,F),v):v}function B_(v,C){let F=K(234);return F.expression=v,F.type=C,F.transformFlags|=Er(F.expression)|Er(F.type)|1,F}function df(v,C,F){return v.expression!==C||v.type!==F?nr(B_(C,F),v):v}function qg(v){let C=K(235);return C.expression=i().parenthesizeLeftSideOfAccess(v,!1),C.transformFlags|=Er(C.expression)|1,C}function we(v,C){return cF(v)?_n(v,C):v.expression!==C?nr(qg(C),v):v}function qe(v,C){let F=K(238);return F.expression=v,F.type=C,F.transformFlags|=Er(F.expression)|Er(F.type)|1,F}function Pt(v,C,F){return v.expression!==C||v.type!==F?nr(qe(C,F),v):v}function Vt(v){let C=K(235);return C.flags|=64,C.expression=i().parenthesizeLeftSideOfAccess(v,!0),C.transformFlags|=Er(C.expression)|1,C}function _n(v,C){return R.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==C?nr(Vt(C),v):v}function Jn(v,C){let F=K(236);switch(F.keywordToken=v,F.name=C,F.transformFlags|=Er(F.name),v){case 105:F.transformFlags|=1024;break;case 102:F.transformFlags|=32;break;default:return R.assertNever(v)}return F.flowNode=void 0,F}function fn(v,C){return v.name!==C?nr(Jn(v.keywordToken,C),v):v}function qn(v,C){let F=K(239);return F.expression=v,F.literal=C,F.transformFlags|=Er(F.expression)|Er(F.literal)|1024,F}function mi(v,C,F){return v.expression!==C||v.literal!==F?nr(qn(C,F),v):v}function ar(){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 ur(v,C){return v.statements!==C?nr(ni(C,v.multiLine),v):v}function Xo(v,C){let F=K(243);return F.modifiers=Ga(v),F.declarationList=So(C)?np(C):C,F.transformFlags|=Ua(F.modifiers)|Er(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?nr(Xo(C,F),v):v}function Qd(){let v=K(242);return v.jsDoc=void 0,v}function md(v){let C=K(244);return C.expression=i().parenthesizeExpressionOfExpressionStatement(v),C.transformFlags|=Er(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function Xg(v,C){return v.expression!==C?nr(md(C),v):v}function kE(v,C,F){let le=K(245);return le.expression=v,le.thenStatement=Rb(C),le.elseStatement=Rb(F),le.transformFlags|=Er(le.expression)|Er(le.thenStatement)|Er(le.elseStatement),le.jsDoc=void 0,le.flowNode=void 0,le}function W1(v,C,F,le){return v.expression!==C||v.thenStatement!==F||v.elseStatement!==le?nr(kE(C,F,le),v):v}function wE(v,C){let F=K(246);return F.statement=Rb(v),F.expression=C,F.transformFlags|=Er(F.statement)|Er(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function WD(v,C,F){return v.statement!==C||v.expression!==F?nr(wE(C,F),v):v}function FD(v,C){let F=K(247);return F.expression=v,F.statement=Rb(C),F.transformFlags|=Er(F.expression)|Er(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function zD(v,C,F){return v.expression!==C||v.statement!==F?nr(FD(C,F),v):v}function sA(v,C,F,le){let Ke=K(248);return Ke.initializer=v,Ke.condition=C,Ke.incrementor=F,Ke.statement=Rb(le),Ke.transformFlags|=Er(Ke.initializer)|Er(Ke.condition)|Er(Ke.incrementor)|Er(Ke.statement),Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke.flowNode=void 0,Ke}function hS(v,C,F,le,Ke){return v.initializer!==C||v.condition!==F||v.incrementor!==le||v.statement!==Ke?nr(sA(C,F,le,Ke),v):v}function F1(v,C,F){let le=K(249);return le.initializer=v,le.expression=C,le.statement=Rb(F),le.transformFlags|=Er(le.initializer)|Er(le.expression)|Er(le.statement),le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le.flowNode=void 0,le}function BD(v,C,F,le){return v.initializer!==C||v.expression!==F||v.statement!==le?nr(F1(C,F,le),v):v}function z1(v,C,F,le){let Ke=K(250);return Ke.awaitModifier=v,Ke.initializer=C,Ke.expression=i().parenthesizeExpressionForDisallowedComma(F),Ke.statement=Rb(le),Ke.transformFlags|=Er(Ke.awaitModifier)|Er(Ke.initializer)|Er(Ke.expression)|Er(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 B1(v,C,F,le,Ke){return v.awaitModifier!==C||v.initializer!==F||v.expression!==le||v.statement!==Ke?nr(z1(C,F,le,Ke),v):v}function G1(v){let C=K(251);return C.label=dc(v),C.transformFlags|=Er(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function V1(v,C){return v.label!==C?nr(G1(C),v):v}function lA(v){let C=K(252);return C.label=dc(v),C.transformFlags|=Er(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function j1(v,C){return v.label!==C?nr(lA(C),v):v}function gS(v){let C=K(253);return C.expression=v,C.transformFlags|=Er(C.expression)|128|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function yS(v,C){return v.expression!==C?nr(gS(C),v):v}function lb(v,C){let F=K(254);return F.expression=v,F.statement=Rb(C),F.transformFlags|=Er(F.expression)|Er(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function cb(v,C,F){return v.expression!==C||v.statement!==F?nr(lb(C,F),v):v}function ug(v,C){let F=K(255);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.caseBlock=C,F.transformFlags|=Er(F.expression)|Er(F.caseBlock),F.jsDoc=void 0,F.flowNode=void 0,F.possiblyExhaustive=!1,F}function OE(v,C,F){return v.expression!==C||v.caseBlock!==F?nr(ug(C,F),v):v}function Qa(v,C){let F=K(256);return F.label=dc(v),F.statement=Rb(C),F.transformFlags|=Er(F.label)|Er(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function cA(v,C,F){return v.label!==C||v.statement!==F?nr(Qa(C,F),v):v}function GD(v){let C=K(257);return C.expression=v,C.transformFlags|=Er(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function WE(v,C){return v.expression!==C?nr(GD(C),v):v}function Yg(v,C,F){let le=K(258);return le.tryBlock=v,le.catchClause=C,le.finallyBlock=F,le.transformFlags|=Er(le.tryBlock)|Er(le.catchClause)|Er(le.finallyBlock),le.jsDoc=void 0,le.flowNode=void 0,le}function xh(v,C,F,le){return v.tryBlock!==C||v.catchClause!==F||v.finallyBlock!==le?nr(Yg(C,F,le),v):v}function Mf(){let v=K(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function ju(v,C,F,le){let Ke=Y(260);return Ke.name=dc(v),Ke.exclamationToken=C,Ke.type=F,Ke.initializer=ox(le),Ke.transformFlags|=Hv(Ke.name)|Er(Ke.initializer)|(Ke.exclamationToken??Ke.type?1:0),Ke.jsDoc=void 0,Ke}function Ap(v,C,F,le,Ke){return v.name!==C||v.type!==le||v.exclamationToken!==F||v.initializer!==Ke?nr(ju(C,F,le,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 ev(v,C){return v.declarations!==C?nr(np(C,v.flags),v):v}function dA(v,C,F,le,Ke,Ht,gr){let eo=Y(262);if(eo.modifiers=Ga(v),eo.asteriskToken=C,eo.name=dc(F),eo.typeParameters=Ga(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=gr,!eo.body||x_(eo.modifiers)&128)eo.transformFlags=1;else{let Us=x_(eo.modifiers)&1024,a_=!!eo.asteriskToken,Db=Us&&a_;eo.transformFlags=Ua(eo.modifiers)|Er(eo.asteriskToken)|Hv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|Er(eo.type)|Er(eo.body)&-67108865|(Db?128:Us?256:a_?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 VD(v,C,F,le,Ke,Ht,gr,eo){return v.modifiers!==C||v.asteriskToken!==F||v.name!==le||v.typeParameters!==Ke||v.parameters!==Ht||v.type!==gr||v.body!==eo?U1(dA(C,F,le,Ke,Ht,gr,eo),v):v}function U1(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),B(v,C)}function db(v,C,F,le,Ke){let Ht=Y(263);return Ht.modifiers=Ga(v),Ht.name=dc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),x_(Ht.modifiers)&128?Ht.transformFlags=1:(Ht.transformFlags|=Ua(Ht.modifiers)|Hv(Ht.name)|Ua(Ht.typeParameters)|Ua(Ht.heritageClauses)|Ua(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.transformFlags&8192&&(Ht.transformFlags|=1)),Ht.jsDoc=void 0,Ht}function FE(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?nr(db(C,F,le,Ke,Ht),v):v}function H1(v,C,F,le,Ke){let Ht=Y(264);return Ht.modifiers=Ga(v),Ht.name=dc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),Ht.transformFlags=1,Ht.jsDoc=void 0,Ht}function bc(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?nr(H1(C,F,le,Ke,Ht),v):v}function tv(v,C,F,le){let Ke=Y(265);return Ke.modifiers=Ga(v),Ke.name=dc(C),Ke.typeParameters=Ga(F),Ke.type=le,Ke.transformFlags=1,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function K1(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.type!==Ke?nr(tv(C,F,le,Ke),v):v}function e_(v,C,F){let le=Y(266);return le.modifiers=Ga(v),le.name=dc(C),le.members=j(F),le.transformFlags|=Ua(le.modifiers)|Er(le.name)|Ua(le.members)|1,le.transformFlags&=-67108865,le.jsDoc=void 0,le}function uA(v,C,F,le){return v.modifiers!==C||v.name!==F||v.members!==le?nr(e_(C,F,le),v):v}function Ve(v,C,F,le=0){let Ke=Y(267);return Ke.modifiers=Ga(v),Ke.flags|=le&2088,Ke.name=C,Ke.body=F,x_(Ke.modifiers)&128?Ke.transformFlags=1:Ke.transformFlags|=Ua(Ke.modifiers)|Er(Ke.name)|Er(Ke.body)|1,Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function t_(v,C,F,le){return v.modifiers!==C||v.name!==F||v.body!==le?nr(Ve(C,F,le,v.flags),v):v}function _d(v){let C=K(268);return C.statements=j(v),C.transformFlags|=Ua(C.statements),C.jsDoc=void 0,C}function zE(v,C){return v.statements!==C?nr(_d(C),v):v}function J1(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 ub(v,C){return v.clauses!==C?nr(J1(C),v):v}function nv(v){let C=Y(270);return C.name=dc(v),C.transformFlags|=Ik(C.name)|1,C.modifiers=void 0,C.jsDoc=void 0,C}function rv(v,C){return v.name!==C?RM(nv(C),v):v}function RM(v,C){return v!==C&&(v.modifiers=C.modifiers),nr(v,C)}function Ka(v,C,F,le){let Ke=Y(271);return Ke.modifiers=Ga(v),Ke.name=dc(F),Ke.isTypeOnly=C,Ke.moduleReference=le,Ke.transformFlags|=Ua(Ke.modifiers)|Ik(Ke.name)|Er(Ke.moduleReference),bh(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function n_(v,C,F,le,Ke){return v.modifiers!==C||v.isTypeOnly!==F||v.name!==le||v.moduleReference!==Ke?nr(Ka(C,F,le,Ke),v):v}function pA(v,C,F,le){let Ke=K(272);return Ke.modifiers=Ga(v),Ke.importClause=C,Ke.moduleSpecifier=F,Ke.attributes=Ke.assertClause=le,Ke.transformFlags|=Er(Ke.importClause)|Er(Ke.moduleSpecifier),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function fA(v,C,F,le,Ke){return v.modifiers!==C||v.importClause!==F||v.moduleSpecifier!==le||v.attributes!==Ke?nr(pA(C,F,le,Ke),v):v}function BE(v,C,F){let le=Y(273);return le.isTypeOnly=v,le.name=C,le.namedBindings=F,le.transformFlags|=Er(le.name)|Er(le.namedBindings),v&&(le.transformFlags|=1),le.transformFlags&=-67108865,le}function mA(v,C,F,le){return v.isTypeOnly!==C||v.name!==F||v.namedBindings!==le?nr(BE(C,F,le),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?nr(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 q1(v,C,F){return v.name!==C||v.value!==F?nr($g(C,F),v):v}function r_(v,C){let F=K(302);return F.assertClause=v,F.multiLine=C,F}function jD(v,C,F){return v.assertClause!==C||v.multiLine!==F?nr(r_(C,F),v):v}function vS(v,C,F){let le=K(300);return le.token=F??118,le.elements=j(v),le.multiLine=C,le.transformFlags|=4,le}function qi(v,C,F){return v.elements!==C||v.multiLine!==F?nr(vS(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 Rh(v,C,F){return v.name!==C||v.value!==F?nr(Qr(C,F),v):v}function Uu(v){let C=Y(274);return C.name=v,C.transformFlags|=Er(C.name),C.transformFlags&=-67108865,C}function DM(v,C){return v.name!==C?nr(Uu(C),v):v}function Qg(v){let C=Y(280);return C.name=v,C.transformFlags|=Er(C.name)|32,C.transformFlags&=-67108865,C}function CM(v,C){return v.name!==C?nr(Qg(C),v):v}function pb(v){let C=K(275);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function gl(v,C){return v.elements!==C?nr(pb(C),v):v}function Bp(v,C,F){let le=Y(276);return le.isTypeOnly=v,le.propertyName=C,le.name=F,le.transformFlags|=Er(le.propertyName)|Er(le.name),le.transformFlags&=-67108865,le}function pg(v,C,F,le){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==le?nr(Bp(C,F,le),v):v}function sm(v,C,F){let le=Y(277);return le.modifiers=Ga(v),le.isExportEquals=C,le.expression=C?i().parenthesizeRightSideOfBinary(64,void 0,F):i().parenthesizeExpressionOfExportDefault(F),le.transformFlags|=Ua(le.modifiers)|Er(le.expression),le.transformFlags&=-67108865,le.jsDoc=void 0,le}function fb(v,C,F){return v.modifiers!==C||v.expression!==F?nr(sm(C,v.isExportEquals,F),v):v}function Pm(v,C,F,le,Ke){let Ht=Y(278);return Ht.modifiers=Ga(v),Ht.isTypeOnly=C,Ht.exportClause=F,Ht.moduleSpecifier=le,Ht.attributes=Ht.assertClause=Ke,Ht.transformFlags|=Ua(Ht.modifiers)|Er(Ht.exportClause)|Er(Ht.moduleSpecifier),Ht.transformFlags&=-67108865,Ht.jsDoc=void 0,Ht}function Zg(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.isTypeOnly!==F||v.exportClause!==le||v.moduleSpecifier!==Ke||v.attributes!==Ht?bS(Pm(C,F,le,Ke,Ht),v):v}function bS(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),nr(v,C)}function _A(v){let C=K(279);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function fg(v,C){return v.elements!==C?nr(_A(C),v):v}function X1(v,C,F){let le=K(281);return le.isTypeOnly=v,le.propertyName=dc(C),le.name=dc(F),le.transformFlags|=Er(le.propertyName)|Er(le.name),le.transformFlags&=-67108865,le.jsDoc=void 0,le}function mg(v,C,F,le){return v.isTypeOnly!==C||v.propertyName!==F||v.name!==le?nr(X1(C,F,le),v):v}function G_(){let v=Y(282);return v.jsDoc=void 0,v}function iv(v){let C=K(283);return C.expression=v,C.transformFlags|=Er(C.expression),C.transformFlags&=-67108865,C}function UD(v,C){return v.expression!==C?nr(iv(C),v):v}function HD(v){return K(v)}function KD(v,C,F=!1){let le=hA(v,F?C&&i().parenthesizeNonArrayTypeOfPostfixType(C):C);return le.postfix=F,le}function hA(v,C){let F=K(v);return F.type=C,F}function Ys(v,C,F){return C.type!==F?nr(KD(v,F,C.postfix),C):C}function ES(v,C,F){return C.type!==F?nr(hA(v,F),C):C}function gA(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?nr(gA(C,F),v):v}function mb(v,C=!1){let F=Y(329);return F.jsDocPropertyTags=Ga(v),F.isArrayType=C,F}function JD(v,C,F){return v.jsDocPropertyTags!==C||v.isArrayType!==F?nr(mb(C,F),v):v}function yA(v){let C=K(316);return C.type=v,C}function NM(v,C){return v.type!==C?nr(yA(C),v):v}function _r(v,C,F){let le=Y(330);return le.typeParameters=Ga(v),le.parameters=j(C),le.type=F,le.jsDoc=void 0,le.locals=void 0,le.nextContainer=void 0,le}function id(v,C,F,le){return v.typeParameters!==C||v.parameters!==F||v.type!==le?nr(_r(C,F,le),v):v}function Qi(v){let C=WU(v.kind);return v.tagName.escapedText===fl(C)?v.tagName:xe(C)}function uf(v,C,F){let le=K(v);return le.tagName=C,le.comment=F,le}function ov(v,C,F){let le=Y(v);return le.tagName=C,le.comment=F,le}function V_(v,C,F,le){let Ke=uf(352,v??xe("template"),le);return Ke.constraint=C,Ke.typeParameters=j(F),Ke}function sr(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.constraint!==F||v.typeParameters!==le||v.comment!==Ke?nr(V_(C,F,le,Ke),v):v}function vA(v,C,F,le){let Ke=ov(353,v??xe("typedef"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function GE(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?nr(vA(C,F,le,Ke),v):v}function qc(v,C,F,le,Ke,Ht){let gr=ov(348,v??xe("param"),Ht);return gr.typeExpression=le,gr.name=C,gr.isNameFirst=!!Ke,gr.isBracketed=F,gr}function Dh(v,C=Qi(v),F,le,Ke,Ht,gr){return v.tagName!==C||v.name!==F||v.isBracketed!==le||v.typeExpression!==Ke||v.isNameFirst!==Ht||v.comment!==gr?nr(qc(C,F,le,Ke,Ht,gr),v):v}function Lm(v,C,F,le,Ke,Ht){let gr=ov(355,v??xe("prop"),Ht);return gr.typeExpression=le,gr.name=C,gr.isNameFirst=!!Ke,gr.isBracketed=F,gr}function SS(v,C=Qi(v),F,le,Ke,Ht,gr){return v.tagName!==C||v.name!==F||v.isBracketed!==le||v.typeExpression!==Ke||v.isNameFirst!==Ht||v.comment!==gr?nr(Lm(C,F,le,Ke,Ht,gr),v):v}function TS(v,C,F,le){let Ke=ov(345,v??xe("callback"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=SH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function _b(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?nr(TS(C,F,le,Ke),v):v}function ey(v,C,F){let le=uf(346,v??xe("overload"),F);return le.typeExpression=C,le}function bA(v,C=Qi(v),F,le){return v.tagName!==C||v.typeExpression!==F||v.comment!==le?nr(ey(C,F,le),v):v}function km(v,C,F){let le=uf(335,v??xe("augments"),F);return le.class=C,le}function VE(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?nr(km(C,F,le),v):v}function _g(v,C,F){let le=uf(336,v??xe("implements"),F);return le.class=C,le}function hb(v,C,F){let le=uf(354,v??xe("see"),F);return le.name=C,le}function Y1(v,C,F,le){return v.tagName!==C||v.name!==F||v.comment!==le?nr(hb(C,F,le),v):v}function jE(v){let C=K(317);return C.name=v,C}function qD(v,C){return v.name!==C?nr(jE(C),v):v}function AS(v,C){let F=K(318);return F.left=v,F.right=C,F.transformFlags|=Er(F.left)|Er(F.right),F}function EA(v,C,F){return v.left!==C||v.right!==F?nr(AS(C,F),v):v}function Gp(v,C){let F=K(331);return F.name=v,F.text=C,F}function SA(v,C,F){return v.name!==C?nr(Gp(C,F),v):v}function Ul(v,C){let F=K(332);return F.name=v,F.text=C,F}function Fc(v,C,F){return v.name!==C?nr(Ul(C,F),v):v}function TA(v,C){let F=K(333);return F.name=v,F.text=C,F}function Ad(v,C,F){return v.name!==C?nr(TA(C,F),v):v}function rp(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?nr(_g(C,F,le),v):v}function UE(v,C,F){return uf(v,C??xe(WU(v)),F)}function Lf(v,C,F=Qi(C),le){return C.tagName!==F||C.comment!==le?nr(UE(v,F,le),C):C}function gb(v,C,F,le){let Ke=uf(v,C??xe(WU(v)),le);return Ke.typeExpression=F,Ke}function yb(v,C,F=Qi(C),le,Ke){return C.tagName!==F||C.typeExpression!==le||C.comment!==Ke?nr(gb(v,F,le,Ke),C):C}function od(v,C){return uf(334,v,C)}function $1(v,C,F){return v.tagName!==C||v.comment!==F?nr(od(C,F),v):v}function Vp(v,C,F){let le=ov(347,v??xe(WU(347)),F);return le.typeExpression=C,le.locals=void 0,le.nextContainer=void 0,le}function AA(v,C=Qi(v),F,le){return v.tagName!==C||v.typeExpression!==F||v.comment!==le?nr(Vp(C,F,le),v):v}function IA(v){let C=K(328);return C.text=v,C}function js(v,C){return v.text!==C?nr(IA(C),v):v}function XD(v,C){let F=K(327);return F.comment=v,F.tags=Ga(C),F}function HE(v,C,F){return v.comment!==C||v.tags!==F?nr(XD(C,F),v):v}function IS(v,C,F){let le=K(284);return le.openingElement=v,le.children=j(C),le.closingElement=F,le.transformFlags|=Er(le.openingElement)|Ua(le.children)|Er(le.closingElement)|2,le}function PM(v,C,F,le){return v.openingElement!==C||v.children!==F||v.closingElement!==le?nr(IS(C,F,le),v):v}function hu(v,C,F){let le=K(285);return le.tagName=v,le.typeArguments=Ga(C),le.attributes=F,le.transformFlags|=Er(le.tagName)|Ua(le.typeArguments)|Er(le.attributes)|2,le.typeArguments&&(le.transformFlags|=1),le}function ty(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?nr(hu(C,F,le),v):v}function j_(v,C,F){let le=K(286);return le.tagName=v,le.typeArguments=Ga(C),le.attributes=F,le.transformFlags|=Er(le.tagName)|Ua(le.typeArguments)|Er(le.attributes)|2,C&&(le.transformFlags|=1),le}function Q1(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?nr(j_(C,F,le),v):v}function Ip(v){let C=K(287);return C.tagName=v,C.transformFlags|=Er(C.tagName)|2,C}function Z1(v,C){return v.tagName!==C?nr(Ip(C),v):v}function ip(v,C,F){let le=K(288);return le.openingFragment=v,le.children=j(C),le.closingFragment=F,le.transformFlags|=Er(le.openingFragment)|Ua(le.children)|Er(le.closingFragment)|2,le}function ex(v,C,F,le){return v.openingFragment!==C||v.children!==F||v.closingFragment!==le?nr(ip(C,F,le),v):v}function av(v,C){let F=K(12);return F.text=v,F.containsOnlyTriviaWhiteSpaces=!!C,F.transformFlags|=2,F}function xA(v,C,F){return v.text!==C||v.containsOnlyTriviaWhiteSpaces!==F?nr(av(C,F),v):v}function YD(){let v=K(289);return v.transformFlags|=2,v}function $D(){let v=K(290);return v.transformFlags|=2,v}function RA(v,C){let F=Y(291);return F.name=v,F.initializer=C,F.transformFlags|=Er(F.name)|Er(F.initializer)|2,F}function QD(v,C,F){return v.name!==C||v.initializer!==F?nr(RA(C,F),v):v}function vb(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?nr(vb(C),v):v}function Ch(v){let C=K(293);return C.expression=v,C.transformFlags|=Er(C.expression)|2,C}function ZD(v,C){return v.expression!==C?nr(Ch(C),v):v}function DA(v,C){let F=K(294);return F.dotDotDotToken=v,F.expression=C,F.transformFlags|=Er(F.dotDotDotToken)|Er(F.expression)|2,F}function es(v,C){return v.expression!==C?nr(DA(v.dotDotDotToken,C),v):v}function Tr(v,C){let F=K(295);return F.namespace=v,F.name=C,F.transformFlags|=Er(F.namespace)|Er(F.name)|2,F}function pf(v,C,F){return v.namespace!==C||v.name!==F?nr(Tr(C,F),v):v}function Cu(v,C){let F=K(296);return F.expression=i().parenthesizeExpressionForDisallowedComma(v),F.statements=j(C),F.transformFlags|=Er(F.expression)|Ua(F.statements),F.jsDoc=void 0,F}function xS(v,C,F){return v.expression!==C||v.statements!==F?nr(Cu(C,F),v):v}function eC(v){let C=K(297);return C.statements=j(v),C.transformFlags=Ua(C.statements),C}function KE(v,C){return v.statements!==C?nr(eC(C),v):v}function RS(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 R.assertNever(v)}return F}function CA(v,C){return v.types!==C?nr(RS(v.token,C),v):v}function hg(v,C){let F=K(299);return F.variableDeclaration=OM(v),F.block=C,F.transformFlags|=Er(F.variableDeclaration)|Er(F.block)|(v?0:64),F.locals=void 0,F.nextContainer=void 0,F}function i_(v,C,F){return v.variableDeclaration!==C||v.block!==F?nr(hg(C,F),v):v}function ff(v,C){let F=Y(303);return F.name=dc(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Hv(F.name)|Er(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),nr(v,C)}function gg(v,C){let F=Y(304);return F.name=dc(v),F.objectAssignmentInitializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Ik(F.name)|Er(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 yg(v,C,F){return v.name!==C||v.objectAssignmentInitializer!==F?tx(gg(C,F),v):v}function tx(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken,v.equalsToken=C.equalsToken),nr(v,C)}function cc(v){let C=Y(305);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=Er(C.expression)|128|65536,C.jsDoc=void 0,C}function tC(v,C){return v.expression!==C?nr(cc(C),v):v}function kf(v,C){let F=Y(306);return F.name=dc(v),F.initializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Er(F.name)|Er(F.initializer)|1,F.jsDoc=void 0,F}function Nh(v,C,F){return v.name!==C||v.initializer!==F?nr(kf(C,F),v):v}function mf(v,C,F){let le=t.createBaseSourceFileNode(312);return le.statements=j(v),le.endOfFileToken=C,le.flags|=F,le.text="",le.fileName="",le.path="",le.resolvedPath="",le.originalFileName="",le.languageVersion=0,le.languageVariant=0,le.scriptKind=0,le.isDeclarationFile=!1,le.hasNoDefaultLib=!1,le.transformFlags|=Ua(le.statements)|Er(le.endOfFileToken),le.locals=void 0,le.nextContainer=void 0,le.endFlowNode=void 0,le.nodeCount=0,le.identifierCount=0,le.symbolCount=0,le.parseDiagnostics=void 0,le.bindDiagnostics=void 0,le.bindSuggestionDiagnostics=void 0,le.lineMap=void 0,le.externalModuleIndicator=void 0,le.setExternalModuleIndicator=void 0,le.pragmas=void 0,le.checkJsDirective=void 0,le.referencedFiles=void 0,le.typeReferenceDirectives=void 0,le.libReferenceDirectives=void 0,le.amdDependencies=void 0,le.commentDirectives=void 0,le.identifiers=void 0,le.packageJsonLocations=void 0,le.packageJsonScope=void 0,le.imports=void 0,le.moduleAugmentations=void 0,le.ambientModuleNames=void 0,le.classifiableNames=void 0,le.impliedNodeFormat=void 0,le}function DS(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 JE(v){let C=DS(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 nx(v){let C=t.createBaseSourceFileNode(312);C.flags|=v.flags&-17;for(let F in v)if(!(Is(C,F)||!Is(v,F))){if(F==="emitNode"){C.emitNode=void 0;continue}C[F]=v[F]}return C}function NA(v){let C=v.redirectInfo?JE(v):nx(v);return r(C,v),C}function _f(v,C,F,le,Ke,Ht,gr){let eo=NA(v);return eo.statements=j(C),eo.isDeclarationFile=F,eo.referencedFiles=le,eo.typeReferenceDirectives=Ke,eo.hasNoDefaultLib=Ht,eo.libReferenceDirectives=gr,eo.transformFlags=Ua(eo.statements)|Er(eo.endOfFileToken),eo}function Ps(v,C,F=v.isDeclarationFile,le=v.referencedFiles,Ke=v.typeReferenceDirectives,Ht=v.hasNoDefaultLib,gr=v.libReferenceDirectives){return v.statements!==C||v.isDeclarationFile!==F||v.referencedFiles!==le||v.typeReferenceDirectives!==Ke||v.hasNoDefaultLib!==Ht||v.libReferenceDirectives!==gr?nr(_f(v,C,F,le,Ke,Ht,gr),v):v}function CS(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 NS(v,C,F=Xe){return v.sourceFiles!==C||v.prepends!==F?nr(CS(C,F),v):v}function ry(v,C,F){let le=K(314);return le.prologues=v,le.syntheticReferences=C,le.texts=F,le.fileName="",le.text="",le.referencedFiles=Xe,le.libReferenceDirectives=Xe,le.getLineAndCharacterOfPosition=Ke=>ys(le,Ke),le}function bb(v,C){let F=K(v);return F.data=C,F}function qE(v){return bb(307,v)}function I(v,C){let F=bb(308,v);return F.texts=C,F}function oe(v,C){return bb(C?310:309,v)}function ut(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 le=K(237);return le.type=v,le.isSpread=C,le.tupleNameSource=F,le}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|=Er(F.expression)|1,at(F,C),F}function _a(v,C){return v.expression!==C?nr(Zi(C,v.original),v):v}function Zd(v){if(qs(v)&&!oN(v)&&!v.original&&!v.emitNode&&!v.id){if(_P(v))return v.elements;if(pr(v)&&iae(v.operatorToken))return[v.left,v.right]}return v}function Nu(v){let C=K(361);return C.elements=j(qte(v,Zd)),C.transformFlags|=Ua(C.elements),C}function wf(v,C){return v.elements!==C?nr(Nu(C),v):v}function Eb(v,C){let F=K(362);return F.expression=v,F.thisArg=C,F.transformFlags|=Er(F.expression)|Er(F.thisArg),F}function Si(v,C,F){return v.expression!==C||v.thisArg!==F?nr(Eb(C,F),v):v}function Ph(v){let C=re(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Nk(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=NT(v);return F&&By(C,F),C}function rx(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Nk(C,{...v.emitNode.autoGenerate}),C}function Sb(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),C}function Tb(v){if(v===void 0)return v;if(Yi(v))return NA(v);if(il(v))return Ph(v);if(Fe(v))return Vn(v);if(lT(v))return rx(v);if(Ki(v))return Sb(v);let C=r2(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)Is(C,F)||!Is(v,F)||(C[F]=v[F]);return C}function PA(v,C,F){return Un(Bu(void 0,void 0,void 0,void 0,C?[C]:[],void 0,ni(v,!0)),void 0,F?[F]:[])}function PS(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 Mh(v){return sm(void 0,!1,v)}function nC(v){return Pm(void 0,!1,_A([X1(!1,void 0,v)]))}function MA(v,C){return C==="null"?w.createStrictEquality(v,Wt()):C==="undefined"?w.createStrictEquality(v,U_()):w.createStrictEquality(zd(v),me(C))}function KB(v,C){return C==="null"?w.createStrictInequality(v,Wt()):C==="undefined"?w.createStrictInequality(v,U_()):w.createStrictInequality(zd(v),me(C))}function Ab(v,C,F){return sT(v)?qo(bs(v,void 0,C),void 0,void 0,F):Un(Vs(v,C),void 0,F)}function p8(v,C,F){return Ab(v,"bind",[C,...F])}function f8(v,C,F){return Ab(v,"call",[C,...F])}function XE(v,C,F){return Ab(v,"apply",[C,F])}function o_(v,C,F){return Ab(xe(v),C,F)}function MM(v,C){return Ab(v,"slice",C===void 0?[]:[$E(C)])}function Lh(v,C){return Ab(v,"concat",C)}function ix(v,C,F){return o_("Object","defineProperty",[v,$E(C),F])}function m8(v,C){return o_("Object","getOwnPropertyDescriptor",[v,$E(C)])}function H_(v,C,F){return o_("Reflect","get",F?[v,C,F]:[v,C])}function X(v,C,F,le){return o_("Reflect","set",le?[v,C,F,le]:[v,C,F])}function Ae(v,C,F){return F?(v.push(ff(C,F)),!0):!1}function Ue(v,C){let F=[];Ae(F,"enumerable",$E(v.enumerable)),Ae(F,"configurable",$E(v.configurable));let le=Ae(F,"writable",$E(v.writable));le=Ae(F,"value",v.value)||le;let Ke=Ae(F,"get",v.get);return Ke=Ae(F,"set",v.set)||Ke,R.assert(!(le&&Ke),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Jo(F,!C)}function St(v,C){switch(v.kind){case 217:return lf(v,C);case 216:return tc(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 Fu(v)&&qs(v)&&qs(zy(v))&&qs(C_(v))&&!gt(DR(v))&&!gt(Ck(v))}function Ut(v,C,F=15){return v&&Z4(v,F)&&!xt(v)?St(v,Ut(v.expression,C)):C}function wr(v,C,F){if(!C)return v;let le=cA(C,C.label,J0(C.statement)?wr(v,C.statement):v);return F&&F(C),le}function Wi(v,C){let F=ms(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,le=!1){let Ke=Ql(v,15),Ht,gr;return Ou(Ke)?(Ht=tt(),gr=Ke):pP(Ke)?(Ht=tt(),gr=F!==void 0&&F<2?at(xe("_super"),Ke):Ke):za(Ke)&8192?(Ht=U_(),gr=i().parenthesizeLeftSideOfAccess(Ke,!1)):kr(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),gr=Vs(at(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.name),at(gr,Ke)):(Ht=Ke.expression,gr=Ke):Xs(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),gr=Wc(at(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.argumentExpression),at(gr,Ke)):(Ht=Ke.expression,gr=Ke):(Ht=U_(),gr=i().parenthesizeLeftSideOfAccess(v,!1)),{target:gr,thisArg:Ht}}function _i(v,C){return Vs(Jc(Jo([se(void 0,"value",[hi(void 0,void 0,v,void 0,void 0,void 0)],ni([md(C)]))])),"value")}function Xi(v){return v.length>10?Nu(v):ru(v,w.createComma)}function ds(v,C,F,le=0,Ke){let Ht=Ke?v&&nF(v):No(v);if(Ht&&Fe(Ht)&&!il(Ht)){let gr=ja(at(Tb(Ht),Ht),Ht.parent);return le|=za(Ht),F||(le|=96),C||(le|=3072),le&&dr(gr,le),gr}return Ce(v)}function Rs(v,C,F){return ds(v,C,F,98304)}function $a(v,C,F,le){return ds(v,C,F,32768,le)}function Of(v,C,F){return ds(v,C,F,16384)}function K_(v,C,F){return ds(v,C,F)}function vg(v,C,F,le){let Ke=Vs(v,qs(C)?C:Tb(C));at(Ke,C);let Ht=0;return le||(Ht|=96),F||(Ht|=3072),Ht&&dr(Ke,Ht),Ke}function iy(v,C,F,le){return v&&$r(C,32)?vg(v,ds(C),F,le):Of(C,F,le)}function oy(v,C,F,le){let Ke=LA(v,C,0,F);return rC(v,C,Ke,le)}function Ib(v){return Ca(v.expression)&&v.expression.text==="use strict"}function op(){return qd(md(me("use strict")))}function LA(v,C,F=0,le){R.assert(C.length===0,"Prologue directives should be at the first statement in the target statements array");let Ke=!1,Ht=v.length;for(;Feo&&a_.splice(Ke,0,...C.slice(eo,Us)),eo>gr&&a_.splice(le,0,...C.slice(gr,eo)),gr>Ht&&a_.splice(F,0,...C.slice(Ht,gr)),Ht>0)if(F===0)a_.splice(0,0,...C.slice(0,Ht));else{let Db=new Map;for(let Om=0;Om=0;Om--){let QE=C[Om];Db.has(QE.expression.text)||a_.unshift(QE)}}return E0(v)?at(j(a_,v.hasTrailingComma),v):v}function xb(v,C){let F;return typeof C=="number"?F=Zt(C):F=C,ml(v)?qt(v,F,v.name,v.constraint,v.default):To(v)?uo(v,F,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):NR(v)?Kt(v,F,v.typeParameters,v.parameters,v.type):_p(v)?jr(v,F,v.name,v.questionToken,v.type):jo(v)?$e(v,F,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):hh(v)?In(v,F,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):Kl(v)?yi(v,F,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Ml(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):j0(v)?Bt(v,F,v.parameters,v.type):ks(v)?Du(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):zs(v)?z_(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):ed(v)?Nm(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Ll(v)?Ha(v,F,v.declarationList):Tc(v)?VD(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Ac(v)?FE(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):mu(v)?bc(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Tm(v)?K1(v,F,v.name,v.typeParameters,v.type):gE(v)?uA(v,F,v.name,v.members):Yl(v)?t_(v,F,v.name,v.body):nd(v)?n_(v,F,v.isTypeOnly,v.name,v.moduleReference):kc(v)?fA(v,F,v.importClause,v.moduleSpecifier,v.attributes):kl(v)?fb(v,F,v.expression):$l(v)?Zg(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):R.assertNever(v)}function iC(v,C){return To(v)?uo(v,C,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):jo(v)?$e(v,C,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):Kl(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):ed(v)?Nm(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):Ac(v)?FE(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):R.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 $e(v,v.modifiers,C,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return jr(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 dc(v){return typeof v=="string"?xe(v):v}function $E(v){return typeof v=="string"?me(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?_t():Je():v}function ox(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function wM(v){return typeof v=="number"?be(v):v}function Rb(v){return v&&oH(v)?at(r(Qd(),v),v):v}function OM(v){return typeof v=="string"||v&&!Oi(v)?ju(v,void 0,void 0,void 0):v}function nr(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 R.fail(`Unsupported kind: ${R.formatSyntaxKind(e)}`)}}function jBe(e,t){switch(Fy||(Fy=Dy(99,!1,0)),e){case 15:Fy.setText("`"+t+"`");break;case 16:Fy.setText("`"+t+"${");break;case 17:Fy.setText("}"+t+"${");break;case 18:Fy.setText("}"+t+"`");break}let r=Fy.scan();if(r===20&&(r=Fy.reScanTemplateToken(!1)),Fy.isUnterminated())return Fy.setText(void 0),Koe;let i;switch(r){case 15:case 16:case 17:case 18:i=Fy.getTokenValue();break}return i===void 0||Fy.scan()!==1?(Fy.setText(void 0),Koe):(Fy.setText(void 0),i)}function Hv(e){return e&&Fe(e)?Ik(e):Er(e)}function Ik(e){return Er(e)&-67108865}function UBe(e,t){return t|e.transformFlags&134234112}function Er(e){if(!e)return 0;let t=e.transformFlags&~Uoe(e.kind);return au(e)&&oc(e.name)?UBe(e.name,t):t}function Ua(e){return e?e.transformFlags:0}function VSe(e){let t=0;for(let r of e)t|=Er(r);e.transformFlags=t}function Uoe(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 t4(e){return e.flags|=16,e}function FU(e,t,r){let i,o,s,l,d,p,h,m,y,E;Co(e)?(s="",l=e,d=e.length,p=t,h=r):(R.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&&(R.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?KBe(R.checkDefined(o)):HBe(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})):(R.assert(!E),S.text=l??"",S.sourceMapText=h),S}function HBe(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=Ur(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:R.assertNever(E)}if(!h){let E=L.createUnparsedTextLike(void 0,!1);QN(E,0,typeof r=="function"?r():r),h=[E]}let y=Eh.createUnparsedSource(i??Xe,void 0,h);return AR(i,y),AR(h,y),AR(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||Xe,y.typeReferenceDirectives=l,y.libReferenceDirectives=d||Xe,y}function KBe(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:R.assertNever(o)}let i=L.createUnparsedSource(Xe,r,t??Xe);return AR(r,i),AR(t,i),i.helpers=mn(e.sources&&e.sources.helpers,o=>JU().get(o)),i}function jSe(e,t,r,i,o,s){return Co(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=Eh.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(R.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?$3(s,A)??!1:!1}return E||void 0}}}),p}function BU(e,t,r,i,o,s,l,d,p,h,m){let y=Eh.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 USe(e,t,r){return new(KSe||(KSe=ld.getSourceMapSourceConstructor()))(e,t,r)}function Rr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=JBe(r,e.emitNode))}return e}function JBe(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=Ur(o.slice(),t.leadingComments)),s&&(t.trailingComments=Ur(s.slice(),t.trailingComments)),l&&(t.commentRange=l),d&&(t.sourceMapRange=d),p&&(t.tokenSourceMapRanges=qBe(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 qBe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var n4,GU,Hoe,Fy,Koe,xk,HSe,L,KSe,XBe=bt({"src/compiler/factory/nodeFactory.ts"(){"use strict";Zo(),n4=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||{}),Hoe=[],Koe={},xk=Goe(),HSe={createBaseSourceFileNode:e=>t4(xk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>t4(xk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>t4(xk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>t4(xk.createBaseTokenNode(e)),createBaseNode:e=>t4(xk.createBaseNode(e))},L=Ak(4,HSe)}});function wd(e){if(e.emitNode)R.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(oN(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Gn(Ro(Gn(e)))??R.fail("Could not determine parsed source file.");wd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function VU(e){var t,r;let i=(r=(t=Gn(Ro(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Rk(e){let t=wd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function dr(e,t){return wd(e).flags=t,e}function D_(e,t){let r=wd(e);return r.flags=r.flags|t,e}function Dk(e,t){return wd(e).internalFlags=t,e}function VI(e,t){let r=wd(e);return r.internalFlags=r.internalFlags|t,e}function zy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Da(e,t){return wd(e).sourceMapRange=t,e}function JSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Joe(e,t,r){let i=wd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function lP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function r4(e,t){return wd(e).startsOnNewLine=t,e}function C_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function ac(e,t){return wd(e).commentRange=t,e}function DR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function hE(e,t){return wd(e).leadingComments=t,e}function cP(e,t,r,i){return hE(e,Tn(DR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Ck(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function jI(e,t){return wd(e).trailingComments=t,e}function i4(e,t,r,i){return jI(e,Tn(Ck(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function qoe(e,t){hE(e,DR(t)),jI(e,Ck(t));let r=wd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Xoe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Yoe(e,t){let r=wd(e);return r.constantValue=t,e}function UI(e,t){let r=wd(e);return r.helpers=Tn(r.helpers,t),e}function Fg(e,t){if(gt(t)){let r=wd(e);for(let i of t)r.helpers=xg(r.helpers,i)}return e}function qSe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?xx(i,t):!1}function o4(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function $oe(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!gt(o))return;let s=wd(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=wd(e);return r.snippetElement=t,e}function HU(e){return wd(e).internalFlags|=4,e}function Qoe(e,t){let r=wd(e);return r.typeNode=t,e}function Zoe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function By(e,t){return wd(e).identifierTypeArguments=t,e}function NT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Nk(e,t){return wd(e).autoGenerate=t,e}function XSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function eae(e,t){return wd(e).generatedImportReference=t,e}function tae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var YBe=bt({"src/compiler/factory/emitNode.ts"(){"use strict";Zo()}});function nae(e){let t=e.factory,r=Eu(()=>Dk(t.createTrue(),8)),i=Eu(()=>Dk(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:ee,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:Ie,createClassPrivateFieldInHelper:De,createAddDisposableResourceHelper:Le,createDisposeResourcesHelper:Et};function o(be){return dr(t.createIdentifier(be),8196)}function s(be,ze,tt,Wt){e.requestEmitHelper(a4);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(s4),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(be),ze])}function d(be,ze,tt){return e.requestEmitHelper(l4),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(c4),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(d4),t.createCallExpression(o("__runInitializers"),void 0,tt?[be,ze,tt]:[be,ze])}function w(be){return rs(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,be):(e.requestEmitHelper(u4),t.createCallExpression(o("__assign"),void 0,be))}function j(be){return e.requestEmitHelper(HI),t.createCallExpression(o("__await"),void 0,[be])}function K(be,ze){return e.requestEmitHelper(HI),e.requestEmitHelper(p4),(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(HI),e.requestEmitHelper(f4),t.createCallExpression(o("__asyncDelegator"),void 0,[be])}function B(be){return e.requestEmitHelper(m4),t.createCallExpression(o("__asyncValues"),void 0,[be])}function ce(be,ze,tt,Wt){e.requestEmitHelper(_4);let _t=[],Je=0;for(let ft=0;ft{let i="";for(let o=0;oe.name))}function dP(e,t){return ra(e)&&Fe(e.expression)&&(za(e.expression)&8192)!==0&&e.expression.escapedText===t}var qU,a4,s4,l4,c4,d4,u4,HI,p4,f4,m4,_4,h4,g4,y4,v4,b4,E4,S4,T4,A4,CR,I4,Pk,x4,R4,D4,C4,N4,P4,M4,YSe,Mk,Lk,$Be=bt({"src/compiler/factory/emitHelpers.ts"(){"use strict";Zo(),qU=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(qU||{}),a4={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:` + };`},s4={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:` + };`},l4={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:` + };`},c4={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"; @@ -61,14 +61,14 @@ ${ue.join(` } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; - };`},l4={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + };`},d4={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:` + };`},u4={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++) { @@ -79,8 +79,8 @@ ${ue.join(` 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:` + };`},HI={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); }`},p4={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[HI],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 = []; @@ -92,19 +92,19 @@ ${ue.join(` function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`},u4={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[jI],text:` + };`},f4={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[HI],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:` + };`},m4={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:` + };`},_4={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) @@ -115,7 +115,7 @@ ${ue.join(` t[p[i]] = s[p[i]]; } return t; - };`},m4={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + };`},h4={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) { @@ -124,7 +124,7 @@ ${ue.join(` 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:` + };`},g4={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || @@ -140,11 +140,11 @@ ${ue.join(` 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:` + })();`},y4={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:` + };`},v4={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; @@ -160,7 +160,7 @@ ${ue.join(` finally { if (e) throw e.error; } } return ar; - };`},y4={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + };`},b4={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)) { @@ -169,14 +169,14 @@ ${ue.join(` } } return to.concat(ar || Array.prototype.slice.call(from)); - };`},v4={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + };`},E4={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:` + };`},S4={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:` + };`},T4={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); @@ -187,7 +187,7 @@ ${ue.join(` } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},S4={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + };`},A4={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; @@ -214,7 +214,7 @@ ${ue.join(` } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } - };`},xR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + };`},CR={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); @@ -225,40 +225,40 @@ ${ue.join(` }) : (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:` + }));`},I4={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; - });`},Dk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xR,T4],priority:2,text:` + });`},Pk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[CR,I4],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:` + };`},x4={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:` + };`},R4={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[CR],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:` + };`},D4={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:` + };`},C4={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:` + };`},N4={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:` + };`},P4={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."); @@ -278,7 +278,7 @@ ${ue.join(` env.stack.push({ async: true }); } return value; - };`},N4={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + };`},M4={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { @@ -303,73 +303,73 @@ ${ue.join(` })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},Ck={name:"typescript:async-super",scoped:!0,text:KU` - const ${"_superIndex"} = name => super[name];`},Nk={name:"typescript:advanced-async-super",scoped:!0,text:KU` + });`},Mk={name:"typescript:async-super",scoped:!0,text:KU` + const ${"_superIndex"} = name => super[name];`},Lk={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 aae(e){return e.kind===28}function $U(e){return e.kind===40}function QU(e){return e.kind===41}function Pk(e){return e.kind===42}function Mk(e){return e.kind===54}function Hv(e){return e.kind===58}function sae(e){return e.kind===59}function k4(e){return e.kind===29}function lae(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 aP(e){return e.kind===134}function cae(e){return e.kind===131}function ZU(e){return e.kind===135}function dae(e){return e.kind===148}function qI(e){return e.kind===126}function uae(e){return e.kind===128}function pae(e){return e.kind===164}function fae(e){return e.kind===129}function sP(e){return e.kind===108}function lP(e){return e.kind===102}function mae(e){return e.kind===84}function Au(e){return e.kind===166}function Xa(e){return e.kind===167}function ml(e){return e.kind===168}function To(e){return e.kind===169}function vd(e){return e.kind===170}function _p(e){return e.kind===171}function Vo(e){return e.kind===172}function hh(e){return e.kind===173}function Ul(e){return e.kind===174}function Al(e){return e.kind===175}function Nl(e){return e.kind===176}function Zp(e){return e.kind===177}function hp(e){return e.kind===178}function XI(e){return e.kind===179}function Lk(e){return e.kind===180}function V0(e){return e.kind===181}function kk(e){return e.kind===182}function If(e){return e.kind===183}function gh(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 wk(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 Kv(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 Ok(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 Jv(e){return e.kind===201}function ig(e){return e.kind===205}function eH(e){return e.kind===204}function _ae(e){return e.kind===203}function tm(e){return e.kind===206}function j0(e){return e.kind===207}function qa(e){return e.kind===208}function fu(e){return e.kind===209}function Ma(e){return e.kind===210}function wr(e){return e.kind===211}function Xs(e){return e.kind===212}function ra(e){return e.kind===213}function U0(e){return e.kind===214}function H0(e){return e.kind===215}function hae(e){return e.kind===216}function Fu(e){return e.kind===217}function Ls(e){return e.kind===218}function zs(e){return e.kind===219}function gae(e){return e.kind===220}function NR(e){return e.kind===221}function e1(e){return e.kind===222}function qv(e){return e.kind===223}function Xv(e){return e.kind===224}function tH(e){return e.kind===225}function ur(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 qm(e){return e.kind===230}function $c(e){return e.kind===231}function Gc(e){return e.kind===232}function Gy(e){return e.kind===233}function Wk(e){return e.kind===234}function nH(e){return e.kind===238}function t1(e){return e.kind===235}function cP(e){return e.kind===236}function JSe(e){return e.kind===237}function B4(e){return e.kind===360}function dP(e){return e.kind===361}function uP(e){return e.kind===239}function yae(e){return e.kind===240}function Uo(e){return e.kind===241}function Pl(e){return e.kind===243}function rH(e){return e.kind===242}function Qc(e){return e.kind===244}function LT(e){return e.kind===245}function qSe(e){return e.kind===246}function XSe(e){return e.kind===247}function kT(e){return e.kind===248}function G4(e){return e.kind===249}function Fk(e){return e.kind===250}function YSe(e){return e.kind===251}function $Se(e){return e.kind===252}function Sm(e){return e.kind===253}function vae(e){return e.kind===254}function pP(e){return e.kind===255}function K0(e){return e.kind===256}function iH(e){return e.kind===257}function wT(e){return e.kind===258}function QSe(e){return e.kind===259}function Oi(e){return e.kind===260}function Vc(e){return e.kind===261}function Ec(e){return e.kind===262}function Sc(e){return e.kind===263}function mu(e){return e.kind===264}function Tm(e){return e.kind===265}function gE(e){return e.kind===266}function ql(e){return e.kind===267}function N_(e){return e.kind===268}function fP(e){return e.kind===269}function zk(e){return e.kind===270}function Zc(e){return e.kind===271}function Mc(e){return e.kind===272}function yh(e){return e.kind===273}function ZSe(e){return e.kind===302}function bae(e){return e.kind===300}function eTe(e){return e.kind===301}function n1(e){return e.kind===300}function Eae(e){return e.kind===301}function Yv(e){return e.kind===274}function vh(e){return e.kind===280}function Fg(e){return e.kind===275}function Qu(e){return e.kind===276}function Ml(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 tTe(e){return e.kind===282}function oH(e){return e.kind===359}function r1(e){return e.kind===362}function bh(e){return e.kind===283}function og(e){return e.kind===284}function OT(e){return e.kind===285}function P_(e){return e.kind===286}function J0(e){return e.kind===287}function q0(e){return e.kind===288}function i1(e){return e.kind===289}function Sae(e){return e.kind===290}function M_(e){return e.kind===291}function X0(e){return e.kind===292}function o1(e){return e.kind===293}function mP(e){return e.kind===294}function Xm(e){return e.kind===295}function MR(e){return e.kind===296}function _P(e){return e.kind===297}function ef(e){return e.kind===298}function Y0(e){return e.kind===299}function mc(e){return e.kind===303}function Zu(e){return e.kind===304}function Vy(e){return e.kind===305}function $0(e){return e.kind===306}function Tae(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 Q0(e){return e.kind===316}function hP(e){return e.kind===317}function yE(e){return e.kind===318}function Aae(e){return e.kind===331}function Iae(e){return e.kind===332}function nTe(e){return e.kind===333}function xae(e){return e.kind===319}function Rae(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 rTe(e){return e.kind===326}function Ym(e){return e.kind===327}function FT(e){return e.kind===329}function vE(e){return e.kind===330}function a1(e){return e.kind===335}function iTe(e){return e.kind===337}function Dae(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 oTe(e){return e.kind===354}function Bk(e){return e.kind===347}function $m(e){return e.kind===348}function H4(e){return e.kind===349}function mH(e){return e.kind===350}function gP(e){return e.kind===351}function nm(e){return e.kind===352}function zT(e){return e.kind===353}function aTe(e){return e.kind===334}function Cae(e){return e.kind===355}function K4(e){return e.kind===336}function J4(e){return e.kind===357}function sTe(e){return e.kind===356}function OR(e){return e.kind===358}var qBe=bt({"src/compiler/factory/nodeTests.ts"(){"use strict";Qo()}});function Gk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function BT(e,t,r,i){if(Xa(r))return at(e.createElementAccessExpression(t,r.expression),i);{let o=at(Kh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return D_(o,128),o}}function Nae(e,t){let r=Eh.createIdentifier(e||"React");return Va(r,Ro(t)),r}function Pae(e,t,r){if(Au(t)){let i=Pae(e,t.left,r),o=e.createIdentifier(yr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Nae(yr(t),r)}function _H(e,t,r,i){return t?Pae(e,t,i):e.createPropertyAccessExpression(Nae(r,i),"createElement")}function XBe(e,t,r,i){return t?Pae(e,t,i):e.createPropertyAccessExpression(Nae(r,i),"Fragment")}function Mae(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 Lae(e,t,r,i,o,s,l){let p=[XBe(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(Vc(t)){let i=Ga(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 lTe(e,t,r){return Uo(t)?e.updateBlock(t,at(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Vk(e,t){if(Au(t)){let r=Vk(e,t.left),i=Va(at(e.cloneNode(t.right),t.right),t.right.parent);return at(e.createPropertyAccessExpression(r,i),t)}else return Va(at(e.cloneNode(t),t),t.parent)}function gH(e,t){return Fe(t)?e.createStringLiteralFromNode(t):Xa(t)?Va(at(e.cloneNode(t.expression),t.expression),t.expression.parent):Va(at(e.cloneNode(t),t),t.parent)}function YBe(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(v0(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&at(xr(e.createFunctionExpression(v0(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function $Be(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),t.initializer),t),t)}function QBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function ZBe(e,t,r){return xr(at(e.createAssignment(BT(e,r,t.name,t.name),xr(at(e.createFunctionExpression(v0(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function kae(e,t,r,i){switch(r.name&&Ki(r.name)&&R.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return YBe(e,t.properties,r,i,!!t.multiLine);case 303:return $Be(e,r,i);case 304:return QBe(e,r,i);case 174:return ZBe(e,r,i)}}function q4(e,t,r,i,o){let s=t.operator;R.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=Xv(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(Fa(e)&65536)!==0}function zg(e){return(Fa(e)&32768)!==0}function X4(e){return(Fa(e)&16384)!==0}function cTe(e){return Da(e.expression)&&e.expression.text==="use strict"}function vH(e){for(let t of e)if(vm(t)){if(cTe(t))return t}else break}function wae(e){let t=Jc(e);return t!==void 0&&vm(t)&&cTe(t)}function jk(e){return e.kind===226&&e.operatorToken.kind===28}function yP(e){return jk(e)||dP(e)}function WR(e){return Fu(e)&&ir(e)&&!!nE(e)}function Y4(e){let t=rE(e);return R.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 Oae(e,t=15){let r=e.parent;for(;$4(r,t);)r=r.parent,R.assert(r);return r}function dTe(e){return Yl(e,6)}function Jd(e){return t4(e,!0)}function Uk(e){let t=Cl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Wae(e){let t=Cl(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=Md(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=Cl(r,Yi),E=Ld(y);E.externalHelpers=!0}}}else{let h=Fae(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(Vv),void 0);return BI(h,2),h}}}function Fae(e,t,r,i,o){if(r.importHelpers&&TI(t,r)){let s=Uk(t);if(s)return s;let l=Md(r),d=(i||_h(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=Cl(t,Yi),h=Ld(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Vv))}}}function FR(e,t,r){let i=nR(t);if(i&&!II(t)&&!IF(t)){let o=i.name;return il(o)?o:e.createIdentifier(T0(r,o)||yr(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 t5e(t,i,e,o,s)||e5e(e,l,r)||e.cloneNode(l)}function e5e(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Hk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ds(i))return e.createStringLiteral(Wj(r,t.fileName))}}function t5e(e,t,r,i,o){return Hk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Kk(e){if(r2(e))return e.initializer;if(mc(e)){let t=e.initializer;return Pc(t,!0)?t.right:void 0}if(Zu(e))return e.objectAssignmentInitializer;if(Pc(e,!0))return e.right;if(qm(e))return Kk(e.expression)}function $v(e){if(r2(e))return e.name;if(Ng(e)){switch(e.kind){case 303:return $v(e.initializer);case 304:return e.name;case 305:return $v(e.expression)}return}return Pc(e,!0)?$v(e.left):qm(e)?$v(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 R.assert(!!t||Vy(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)?R.failBadSyntaxKind(r):Xa(r)&&uTe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ki(r)?R.failBadSyntaxKind(r):Xa(r)&&uTe(r.expression)?r.expression:r}break;case 305:return e.name&&Ki(e.name)?R.failBadSyntaxKind(e.name):e.name}let t=$v(e);if(t&&rc(t))return t}function uTe(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 pTe(e){let t=e.kind;return t===176||t===178}function zae(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 Bae(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Gae(e){return Hv(e)||Mk(e)}function Vae(e){return Fe(e)||Ok(e)}function jae(e){return dae(e)||$U(e)||QU(e)}function Uae(e){return Hv(e)||$U(e)||QU(e)}function Hae(e){return Fe(e)||Da(e)}function fTe(e){let t=e.kind;return t===106||t===112||t===97||E0(e)||Xv(e)}function n5e(e){return e===43}function r5e(e){return e===42||e===44||e===45}function i5e(e){return n5e(e)||r5e(e)}function o5e(e){return e===40||e===41}function a5e(e){return o5e(e)||i5e(e)}function s5e(e){return e===48||e===49||e===50}function AH(e){return s5e(e)||a5e(e)}function l5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function c5e(e){return l5e(e)||AH(e)}function d5e(e){return e===35||e===37||e===36||e===38}function u5e(e){return d5e(e)||c5e(e)}function p5e(e){return e===51||e===52||e===53}function f5e(e){return p5e(e)||u5e(e)}function m5e(e){return e===56||e===57}function _5e(e){return m5e(e)||f5e(e)}function h5e(e){return e===61||_5e(e)||wy(e)}function g5e(e){return h5e(e)||e===28}function Kae(e){return g5e(e.kind)}function e3(e,t,r,i,o,s){let l=new hTe(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 R.assertEqual(A,0),m.value}}function mTe(e){return e===95||e===90}function Jk(e){let t=e.kind;return mTe(t)}function _Te(e){let t=e.kind;return Ny(t)&&!mTe(t)}function Jae(e,t){if(t!==void 0)return t.length===0?t:at(e.createNodeArray([],t.hasTrailingComma),t)}function qk(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(Kh(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"?bE(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function y5e(e,t){return typeof e=="string"?e:v5e(e,R.checkDefined(t))}function v5e(e,t){return aT(e)?t(e).slice(1):il(e)?t(e):Ki(e)?e.escapedText.slice(1):yr(e)}function bE(e,t,r,i,o){return t=BR(t,o),i=BR(i,o),r=y5e(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 qae(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 Xae(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),dP(t)){t=Ka(t.elements);continue}if(jk(t)){t=t.right;continue}if(Pc(t,!0)&&il(t.left))return t;break}}function b5e(e){return Fu(e)&&qs(e)&&!e.emitNode}function n3(e,t){if(b5e(e))n3(e.expression,t);else if(jk(e))n3(e.left,t),n3(e.right,t);else if(dP(e))for(let r of e.elements)n3(r,t);else t.push(e)}function Yae(e){let t=[];return n3(e,t),t}function Xk(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of zR(e)){let r=$v(t);if(r&&lN(r)&&(r.transformFlags&65536||r.transformFlags&128&&Xk(r)))return!0}return!1}var xH,hTe,E5e=bt({"src/compiler/factory/utilities.ts"(){"use strict";Qo(),(e=>{function t(m,y,E,S,A,N,D){let w=y>0?A[y-1]:void 0;return R.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){R.assertEqual(E[y],r),R.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 R.assertEqual(E[y],i),R.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){R.assertEqual(E[y],o),R.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){R.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 R.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:R.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(R.shouldAssert(2))for(;m>=0;)R.assert(y[m]!==E,"Circular traversal detected."),m--}})(xH||(xH={})),hTe=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?mh(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 S5e=bt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Qo()}});function Jt(e,t){return t&&e(t)}function Bi(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 Yk(e){return gn(e.statements,T5e)||A5e(e)}function T5e(e){return Am(e)&&I5e(e,95)||Zc(e)&&bh(e.moduleReference)||Mc(e)||Ml(e)||Xl(e)?e:void 0}function A5e(e){return e.flags&8388608?gTe(e):void 0}function gTe(e){return x5e(e)?e:Bo(e,gTe)}function I5e(e,t){return gt(e.modifiers,r=>r.kind===t)}function x5e(e){return cP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function yTe(e,t,r){return Bi(t,r,e.typeParameters)||Bi(t,r,e.parameters)||Jt(t,e.type)}function vTe(e,t,r){return Bi(t,r,e.types)}function bTe(e,t,r){return Jt(t,e.type)}function ETe(e,t,r){return Bi(t,r,e.elements)}function STe(e,t,r){return Jt(t,e.expression)||Jt(t,e.questionDotToken)||Bi(t,r,e.typeArguments)||Bi(t,r,e.arguments)}function TTe(e,t,r){return Bi(t,r,e.statements)}function ATe(e,t,r){return Jt(t,e.label)}function ITe(e,t,r){return Bi(t,r,e.modifiers)||Jt(t,e.name)||Bi(t,r,e.typeParameters)||Bi(t,r,e.heritageClauses)||Bi(t,r,e.members)}function xTe(e,t,r){return Bi(t,r,e.elements)}function RTe(e,t,r){return Jt(t,e.propertyName)||Jt(t,e.name)}function DTe(e,t,r){return Jt(t,e.tagName)||Bi(t,r,e.typeArguments)||Jt(t,e.attributes)}function vP(e,t,r){return Jt(t,e.type)}function CTe(e,t,r){return Jt(t,e.tagName)||(e.isNameFirst?Jt(t,e.name)||Jt(t,e.typeExpression):Jt(t,e.typeExpression)||Jt(t,e.name))||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function bP(e,t,r){return Jt(t,e.tagName)||Jt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function $ae(e,t,r){return Jt(t,e.name)}function GR(e,t,r){return Jt(t,e.tagName)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function R5e(e,t,r){return Jt(t,e.expression)}function Bo(e,t,r){if(e===void 0||e.kind<=165)return;let i=zTe[e.kind];return i===void 0?void 0:i(e,t,r)}function EP(e,t,r){let i=NTe(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 NTe(s))i.push(p),o.push(s)}}}function NTe(e){let t=[];return Bo(e,r,r),t;function r(i){t.unshift(i)}}function PTe(e){e.externalModuleIndicator=Yk(e)}function $k(e,t,r,i=!1,o){var s,l,d,p;(s=rr)==null||s.push(rr.Phase.Parse,"createSourceFile",{path:e},!0),tl("beforeParse");let h;(l=iu)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=SE.parseSourceFile(e,t,m,void 0,i,6,Ja,S);else{let A=E===void 0?y:N=>(N.impliedNodeFormat=E,(y||PTe)(N));h=SE.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=iu)==null||d.logStopParseSourceFile(),tl("afterParse"),Yp("Parse","beforeParse","afterParse"),(p=rr)==null||p.pop(),h}function l1(e,t){return SE.parseIsolatedEntityName(e,t)}function Qk(e,t){return SE.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 Qae(e,t,r){let i=SE.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&SE.fixupParentReferences(i.jsDoc),i}function MTe(e,t,r){return SE.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function bd(e){return CH(e)!==void 0}function CH(e){let t=Cx(e,yk,!1);if(t)return t;if(Sl(e,".ts")){let r=nc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function D5e(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 Uh(t,0)||Xe){let o=t.substring(i.pos,i.end);N5e(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=D5e(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:R.fail("Unhandled pragma kind")}})}function C5e(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 N5e(e,t,r){let i=t.kind===2&&BTe.exec(r);if(i){let s=i[1].toLowerCase(),l=ML[s];if(!l||!(l.kind&1))return;if(l.args){let d={};for(let p of l.args){let m=C5e(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&>e.exec(r);if(o)return LTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)LTe(e,t,4,l)}}function LTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=ML[o];if(!s||!(s.kind&r))return;let l=i[2],d=P5e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function P5e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(FTe||(FTe=od.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(OTe||(OTe=od.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(WTe||(WTe=od.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(wTe||(wTe=od.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(kTe||(kTe=od.getNodeConstructor()))(e,-1,-1)},Eh=Ek(1,MH),zTe={166:function(t,r,i){return Jt(r,t.left)||Jt(r,t.right)},168:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.constraint)||Jt(r,t.default)||Jt(r,t.expression)},304:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.equalsToken)||Jt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Jt(r,t.expression)},169:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.dotDotDotToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)||Jt(r,t.initializer)},172:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.type)||Jt(r,t.initializer)},171:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)||Jt(r,t.initializer)},303:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.initializer)},260:function(t,r,i){return Jt(r,t.name)||Jt(r,t.exclamationToken)||Jt(r,t.type)||Jt(r,t.initializer)},208:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.propertyName)||Jt(r,t.name)||Jt(r,t.initializer)},181:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},185:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},184:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},179:yTe,180:yTe,174:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},173:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},176:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},177:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},178:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},262:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},218:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},219:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.equalsGreaterThanToken)||Jt(r,t.body)},175:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.body)},183:function(t,r,i){return Jt(r,t.typeName)||Bi(r,i,t.typeArguments)},182:function(t,r,i){return Jt(r,t.assertsModifier)||Jt(r,t.parameterName)||Jt(r,t.type)},186:function(t,r,i){return Jt(r,t.exprName)||Bi(r,i,t.typeArguments)},187:function(t,r,i){return Bi(r,i,t.members)},188:function(t,r,i){return Jt(r,t.elementType)},189:function(t,r,i){return Bi(r,i,t.elements)},192:vTe,193:vTe,194:function(t,r,i){return Jt(r,t.checkType)||Jt(r,t.extendsType)||Jt(r,t.trueType)||Jt(r,t.falseType)},195:function(t,r,i){return Jt(r,t.typeParameter)},205:function(t,r,i){return Jt(r,t.argument)||Jt(r,t.attributes)||Jt(r,t.qualifier)||Bi(r,i,t.typeArguments)},302:function(t,r,i){return Jt(r,t.assertClause)},196:bTe,198:bTe,199:function(t,r,i){return Jt(r,t.objectType)||Jt(r,t.indexType)},200:function(t,r,i){return Jt(r,t.readonlyToken)||Jt(r,t.typeParameter)||Jt(r,t.nameType)||Jt(r,t.questionToken)||Jt(r,t.type)||Bi(r,i,t.members)},201:function(t,r,i){return Jt(r,t.literal)},202:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)},206:ETe,207:ETe,209:function(t,r,i){return Bi(r,i,t.elements)},210:function(t,r,i){return Bi(r,i,t.properties)},211:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.questionDotToken)||Jt(r,t.name)},212:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.questionDotToken)||Jt(r,t.argumentExpression)},213:STe,214:STe,215:function(t,r,i){return Jt(r,t.tag)||Jt(r,t.questionDotToken)||Bi(r,i,t.typeArguments)||Jt(r,t.template)},216:function(t,r,i){return Jt(r,t.type)||Jt(r,t.expression)},217:function(t,r,i){return Jt(r,t.expression)},220:function(t,r,i){return Jt(r,t.expression)},221:function(t,r,i){return Jt(r,t.expression)},222:function(t,r,i){return Jt(r,t.expression)},224:function(t,r,i){return Jt(r,t.operand)},229:function(t,r,i){return Jt(r,t.asteriskToken)||Jt(r,t.expression)},223:function(t,r,i){return Jt(r,t.expression)},225:function(t,r,i){return Jt(r,t.operand)},226:function(t,r,i){return Jt(r,t.left)||Jt(r,t.operatorToken)||Jt(r,t.right)},234:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.type)},235:function(t,r,i){return Jt(r,t.expression)},238:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.type)},236:function(t,r,i){return Jt(r,t.name)},227:function(t,r,i){return Jt(r,t.condition)||Jt(r,t.questionToken)||Jt(r,t.whenTrue)||Jt(r,t.colonToken)||Jt(r,t.whenFalse)},230:function(t,r,i){return Jt(r,t.expression)},241:TTe,268:TTe,312:function(t,r,i){return Bi(r,i,t.statements)||Jt(r,t.endOfFileToken)},243:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.declarationList)},261:function(t,r,i){return Bi(r,i,t.declarations)},244:function(t,r,i){return Jt(r,t.expression)},245:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.thenStatement)||Jt(r,t.elseStatement)},246:function(t,r,i){return Jt(r,t.statement)||Jt(r,t.expression)},247:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.statement)},248:function(t,r,i){return Jt(r,t.initializer)||Jt(r,t.condition)||Jt(r,t.incrementor)||Jt(r,t.statement)},249:function(t,r,i){return Jt(r,t.initializer)||Jt(r,t.expression)||Jt(r,t.statement)},250:function(t,r,i){return Jt(r,t.awaitModifier)||Jt(r,t.initializer)||Jt(r,t.expression)||Jt(r,t.statement)},251:ATe,252:ATe,253:function(t,r,i){return Jt(r,t.expression)},254:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.statement)},255:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.caseBlock)},269:function(t,r,i){return Bi(r,i,t.clauses)},296:function(t,r,i){return Jt(r,t.expression)||Bi(r,i,t.statements)},297:function(t,r,i){return Bi(r,i,t.statements)},256:function(t,r,i){return Jt(r,t.label)||Jt(r,t.statement)},257:function(t,r,i){return Jt(r,t.expression)},258:function(t,r,i){return Jt(r,t.tryBlock)||Jt(r,t.catchClause)||Jt(r,t.finallyBlock)},299:function(t,r,i){return Jt(r,t.variableDeclaration)||Jt(r,t.block)},170:function(t,r,i){return Jt(r,t.expression)},263:ITe,231:ITe,264:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.heritageClauses)||Bi(r,i,t.members)},265:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Jt(r,t.type)},266:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.members)},306:function(t,r,i){return Jt(r,t.name)||Jt(r,t.initializer)},267:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.body)},271:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.moduleReference)},272:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.importClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},273:function(t,r,i){return Jt(r,t.name)||Jt(r,t.namedBindings)},300:function(t,r,i){return Bi(r,i,t.elements)},301:function(t,r,i){return Jt(r,t.name)||Jt(r,t.value)},270:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)},274:function(t,r,i){return Jt(r,t.name)},280:function(t,r,i){return Jt(r,t.name)},275:xTe,279:xTe,278:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.exportClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},276:RTe,281:RTe,277:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.expression)},228:function(t,r,i){return Jt(r,t.head)||Bi(r,i,t.templateSpans)},239:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.literal)},203:function(t,r,i){return Jt(r,t.head)||Bi(r,i,t.templateSpans)},204:function(t,r,i){return Jt(r,t.type)||Jt(r,t.literal)},167:function(t,r,i){return Jt(r,t.expression)},298:function(t,r,i){return Bi(r,i,t.types)},233:function(t,r,i){return Jt(r,t.expression)||Bi(r,i,t.typeArguments)},283:function(t,r,i){return Jt(r,t.expression)},282:function(t,r,i){return Bi(r,i,t.modifiers)},361:function(t,r,i){return Bi(r,i,t.elements)},284:function(t,r,i){return Jt(r,t.openingElement)||Bi(r,i,t.children)||Jt(r,t.closingElement)},288:function(t,r,i){return Jt(r,t.openingFragment)||Bi(r,i,t.children)||Jt(r,t.closingFragment)},285:DTe,286:DTe,292:function(t,r,i){return Bi(r,i,t.properties)},291:function(t,r,i){return Jt(r,t.name)||Jt(r,t.initializer)},293:function(t,r,i){return Jt(r,t.expression)},294:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.expression)},287:function(t,r,i){return Jt(r,t.tagName)},295:function(t,r,i){return Jt(r,t.namespace)||Jt(r,t.name)},190:vP,191:vP,316:vP,322:vP,321:vP,323:vP,325:vP,324:function(t,r,i){return Bi(r,i,t.parameters)||Jt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))||Bi(r,i,t.tags)},354:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.name)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},317:function(t,r,i){return Jt(r,t.name)},318:function(t,r,i){return Jt(r,t.left)||Jt(r,t.right)},348:CTe,355:CTe,337:function(t,r,i){return Jt(r,t.tagName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},336:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},335:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},352:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.constraint)||Bi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},353:function(t,r,i){return Jt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Jt(r,t.typeExpression)||Jt(r,t.fullName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)):Jt(r,t.fullName)||Jt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)))},345:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.fullName)||Jt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},349:bP,351:bP,350:bP,347:bP,357:bP,356:bP,346:bP,330:function(t,r,i){return gn(t.typeParameters,r)||gn(t.parameters,r)||Jt(r,t.type)},331:$ae,332:$ae,333:$ae,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:R5e},(e=>{var t=Dy(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=Ek(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:ee,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,Ie,De,Le,Et,be,ze,tt,Ft,_t,Je,ft,Zt,en,Dn,Kn,pn=!0,Yt=!1;function qt(X,Ae,Ue,St,xt=!1,Ut,Or,Wi=0){var Ci;if(Ut=L6(X,Ut),Ut===6){let Xi=uo(X,Ae,Ue,St,xt);return tw(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,Ae,Ue,St,Ut,Wi);let _i=Qn(Ue,xt,Ut,Or||PTe,Wi);return Eo(),_i}e.parseSourceFile=qt;function hi(X,Ae){Li("",X,Ae,void 0,1,0),Ne();let Ue=Z(!0),St=H()===1&&!ze.length;return Eo(),St?Ue:void 0}e.parseIsolatedEntityName=hi;function uo(X,Ae,Ue=2,St,xt=!1){Li(X,Ae,Ue,St,6,0),Ie=Kn,Ne();let Ut=k(),Or,Wi;if(H()===1)Or=Mo([],Ut,Ut),Wi=pl();else{let Xi;for(;H()!==1;){let Ya;switch(H()){case 23:Ya=SS();break;case 112:case 97:case 106:Ya=pl();break;case 41:Pi(()=>Ne()===9&&Ne()!==59)?Ya=Zr():Ya=Zg();break;case 9:case 11:if(Pi(()=>Ne()!==59)){Ya=Xr();break}default:Ya=Zg();break}Xi&&So(Xi)?Xi.push(Ya):Xi?Xi=[Xi,Ya]:(Xi=Ya,H()!==1&&dn(f.Unexpected_token))}let cs=So(Xi)?tn(j(Xi),Ut):R.checkDefined(Xi),xs=pe(cs);tn(xs,Ut),Or=Mo([xs],Ut),Wi=Ss(1,f.Unexpected_token)}let Ci=Wt(X,2,6,!1,Or,Wi,Ie,Ja);xt&&Ye(Ci),Ci.nodeCount=Je,Ci.identifierCount=Zt,Ci.identifiers=ft,Ci.parseDiagnostics=wI(ze,Ci),tt&&(Ci.jsDocDiagnostics=wI(tt,Ci));let _i=Ci;return Eo(),_i}e.parseJsonText=uo;function Li(X,Ae,Ue,St,xt,Ut){switch(i=od.getNodeConstructor(),o=od.getTokenConstructor(),s=od.getIdentifierConstructor(),l=od.getPrivateIdentifierConstructor(),d=od.getSourceFileConstructor(),ve=ma(X),De=Ae,Le=Ue,Ft=St,Et=xt,be=ok(xt),ze=[],en=0,ft=new Map,Zt=0,Je=0,Ie=0,pn=!0,Et){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}Yt=!1,t.setText(De),t.setOnError(Nt),t.setScriptTarget(Le),t.setLanguageVariant(be),t.setScriptKind(Et),t.setJSDocParsingMode(Ut)}function Eo(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),De=void 0,Le=void 0,Ft=void 0,Et=void 0,be=void 0,Ie=0,ze=void 0,tt=void 0,en=0,ft=void 0,Dn=void 0,pn=!0}function Qn(X,Ae,Ue,St,xt){let Ut=bd(ve);Ut&&(Kn|=33554432),Ie=Kn,Ne();let Or=$o(0,ip);R.assert(H()===1);let Wi=ie(),Ci=Er(pl(),Wi),_i=Wt(ve,X,Ue,Ut,Or,Ci,Ie,St);return NH(_i,De),PH(_i,Xi),_i.commentDirectives=t.getCommentDirectives(),_i.nodeCount=Je,_i.identifierCount=Zt,_i.identifiers=ft,_i.parseDiagnostics=wI(ze,_i),_i.jsDocParsingMode=xt,tt&&(_i.jsDocDiagnostics=wI(tt,_i)),Ae&&Ye(_i),_i;function Xi(cs,xs,Ya){ze.push(yR(ve,De,cs,xs,Ya))}}let Ur=!1;function Er(X,Ae){if(!Ae)return X;R.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 Ae=Ft,Ue=LH.createSyntaxCursor(X);Ft={currentNode:Xi};let St=[],xt=ze;ze=[];let Ut=0,Or=Ci(X.statements,0);for(;Or!==-1;){let cs=X.statements[Ut],xs=X.statements[Or];Hr(St,X.statements,Ut,Or),Ut=_i(X.statements,Or);let Ya=Kl(xt,K_=>K_.start>=cs.pos),Of=Ya>=0?Kl(xt,K_=>K_.start>=xs.pos,Ya):-1;Ya>=0&&Hr(ze,xt,Ya,Of>=0?Of:void 0),ho(()=>{let K_=Kn;for(Kn|=65536,t.resetTokenState(xs.pos),Ne();H()!==1;){let yg=t.getTokenFullStart(),ry=Ql(0,ip);if(St.push(ry),yg===t.getTokenFullStart()&&Ne(),Ut>=0){let iy=X.statements[Ut];if(ry.end===iy.pos)break;ry.end>iy.pos&&(Ut=_i(X.statements,Ut+1))}}Kn=K_},2),Or=Ut>=0?Ci(X.statements,Ut):-1}if(Ut>=0){let cs=X.statements[Ut];Hr(St,X.statements,Ut);let xs=Kl(xt,Ya=>Ya.start>=cs.pos);xs>=0&&Hr(ze,xt,xs)}return Ft=Ae,m.updateSourceFile(X,at(y(St),X.statements));function Wi(cs){return!(cs.flags&65536)&&!!(cs.transformFlags&67108864)}function Ci(cs,xs){for(let Ya=xs;Ya118}function Io(){return H()===80?!0:H()===127&&Tt()||H()===135&&hn()?!1:H()>118}function xn(X,Ae,Ue=!0){return H()===X?(Ue&&Ne(),!0):(Ae?dn(Ae):dn(f._0_expected,da(X)),!1)}let ws=Object.keys(HL).filter(X=>X.length>2);function $l(X){if(H0(X)){U(Na(De,X.template.pos),X.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ae=Fe(X)?yr(X):void 0;if(!Ae||!$p(Ae,Le)){dn(f._0_expected,da(27));return}let Ue=Na(De,X.pos);switch(Ae){case"const":case"let":case"var":U(Ue,X.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Po(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":Po(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Po(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let St=VC(Ae,ws,xt=>xt)??ss(Ae);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 Po(X,Ae,Ue){H()===Ue?dn(Ae):dn(X,t.getTokenValue())}function ss(X){for(let Ae of ws)if(X.length>Ae.length+2&&ao(X,Ae))return`${Ae} ${X.slice(Ae.length)}`}function Bs(X,Ae,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(Ae&&!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 _l(X){return H()===X?(It(),!0):(R.assert(ZF(X)),dn(f._0_expected,da(X)),!1)}function sd(X,Ae,Ue,St){if(H()===Ae){Ne();return}let xt=dn(f._0_expected,da(Ae));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(Ae)))}function mo(X){return H()===X?(Ne(),!0):!1}function la(X){if(H()===X)return pl()}function ld(X){if(H()===X)return Nf()}function Ss(X,Ae,Ue){return la(X)||Gs(X,!1,Ae||f._0_expected,Ue||da(X))}function Ca(X){let Ae=ld(X);return Ae||(R.assert(ZF(X)),Gs(X,!1,f._0_expected,da(X)))}function pl(){let X=k(),Ae=H();return Ne(),tn(w(Ae),X)}function Nf(){let X=k(),Ae=H();return It(),tn(w(Ae),X)}function ac(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function xl(){return ac()?(H()===27&&Ne(),!0):!1}function sl(){return xl()||xn(27)}function Mo(X,Ae,Ue,St){let xt=y(X,St);return mh(xt,Ae,Ue??t.getTokenFullStart()),xt}function tn(X,Ae,Ue){return mh(X,Ae,Ue??t.getTokenFullStart()),Kn&&(X.flags|=Kn),Yt&&(Yt=!1,X.flags|=262144),X}function Gs(X,Ae,Ue,...St){Ae?un(t.getTokenFullStart(),0,Ue,...St):Ue&&dn(Ue,...St);let xt=k(),Ut=X===80?N("",void 0):Cv(X)?m.createTemplateLiteralLikeNode(X,"","",void 0):X===9?E("",void 0):X===11?S("",void 0):X===282?m.createMissingDeclaration():w(X);return tn(Ut,xt)}function ed(X){let Ae=ft.get(X);return Ae===void 0&&ft.set(X,Ae=X),Ae}function cd(X,Ae,Ue){if(X){Zt++;let Wi=k(),Ci=H(),_i=ed(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return ue(),tn(N(_i,Ci,Xi),Wi)}if(H()===81)return dn(Ue||f.Private_identifiers_are_not_allowed_outside_class_bodies),cd(!0);if(H()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return cd(!0);Zt++;let St=H()===1,xt=t.isReservedWord(),Ut=t.getTokenText(),Or=xt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Gs(80,St,Ae||Or,Ut)}function Ep(X){return cd(Kr(),void 0,X)}function Cs(X,Ae){return cd(Io(),X,Ae)}function Ac(X){return cd(ou(H()),X)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&dn(f.Unicode_escape_sequence_cannot_appear_here),cd(ou(H()))}function $(){return ou(H())||H()===11||H()===9}function Pe(){return ou(H())||H()===11}function yt(X){if(H()===11||H()===9){let Ae=Xr();return Ae.text=ed(Ae.text),Ae}return X&&H()===23?vr():H()===81?fr():Ac()}function cn(){return yt(!0)}function vr(){let X=k();xn(23);let Ae=vn(Ve);return xn(24),tn(m.createComputedPropertyName(Ae),X)}function fr(){let X=k(),Ae=D(ed(t.getTokenValue()));return Ne(),tn(Ae,X)}function zr(X){return H()===X&&Ri(Cr)}function Di(){return Ne(),t.hasPrecedingLineBreak()?!1:Vs()}function Cr(){switch(H()){case 87:return Ne()===94;case 95:return Ne(),H()===90?Pi(hc):H()===156?Pi(bl):Ko();case 90:return hc();case 126:case 139:case 153:return Ne(),Vs();default:return Di()}}function Ko(){return H()===60||H()!==42&&H()!==130&&H()!==19&&Vs()}function bl(){return Ne(),Ko()}function jc(){return Ny(H())&&Ri(Cr)}function Vs(){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 bs(X,Ae){if(gc(X))return!0;switch(X){case 0:case 1:case 3:return!(H()===27&&Ae)&&AS();case 2:return H()===84||H()===90;case 4:return Pi(Ua);case 5:return Pi(hg)||H()===27&&!Ae;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(Uc):Ae?Io()&&!_u():U1()&&!_u();case 8:return es();case 10:return H()===28||H()===26||es();case 19:return H()===103||H()===87||Io();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||e_();case 16:return B_(!1);case 17:return B_(!0);case 20:case 21:return H()===28||dg();case 22:return I();case 23:return H()===161&&Pi(qD)?!1:ou(H());case 13:return ou(H())||H()===19;case 14:return!0;case 25:return!0;case 26:return R.fail("ParsingContext.Count used as a context");default:R.assertNever(X,"Non-exhaustive case in 'isListElement'.")}}function Uc(){if(R.assert(H()===19),Ne()===20){let X=Ne();return X===28||X===19||X===96||X===119}return!0}function tp(){return Ne(),Io()}function wc(){return Ne(),ou(H())}function im(){return Ne(),One(H())}function _u(){return H()===119||H()===96?Pi(Re):!1}function Re(){return Ne(),e_()}function Lt(){return Ne(),dg()}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 go();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 go(){return!!(ac()||Yg(H())||H()===39)}function Jo(){R.assert(en,"Missing parsing context");for(let X=0;X<26;X++)if(en&1<=0)}function Hg(X){return X===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Sp(){let X=Mo([],k());return X.isMissingList=!0,X}function cg(X){return!!X.isMissingList}function Gu(X,Ae,Ue,St){if(xn(Ue)){let xt=Wd(X,Ae);return xn(St),xt}return Sp()}function Z(X,Ae){let Ue=k(),St=X?Ac(Ae):Cs(Ae);for(;mo(25)&&H()!==30;)St=tn(m.createQualifiedName(St,Ot(X,!1,!0)),Ue);return St}function rt(X,Ae){return tn(m.createQualifiedName(X,Ae),X.pos)}function Ot(X,Ae,Ue){if(t.hasPrecedingLineBreak()&&ou(H())&&Pi(Vp))return Gs(80,!0,f.Identifier_expected);if(H()===81){let St=fr();return Ae?St:Gs(80,!0,f.Identifier_expected)}return X?Ue?Ac():de():Cs()}function Gt(X){let Ae=k(),Ue=[],St;do St=oi(X),Ue.push(St);while(St.literal.kind===17);return Mo(Ue,Ae)}function O(X){let Ae=k();return tn(m.createTemplateExpression(no(X),Gt(X)),Ae)}function Se(){let X=k();return tn(m.createTemplateLiteralType(no(!1),nt()),X)}function nt(){let X=k(),Ae=[],Ue;do Ue=jt(),Ae.push(Ue);while(Ue.literal.kind===17);return Mo(Ae,X)}function jt(){let X=k();return tn(m.createTemplateLiteralTypeSpan(yc(),Zn(!1)),X)}function Zn(X){return H()===20?(wn(X),La()):Ss(18,f._0_expected,da(20))}function oi(X){let Ae=k();return tn(m.createTemplateSpan(vn(Ve),Zn(X)),Ae)}function Xr(){return kl(H())}function no(X){!X&&t.getTokenFlags()&26656&&wn(!1);let Ae=kl(H());return R.assert(Ae.kind===16,"Template head has wrong token kind"),Ae}function La(){let X=kl(H());return R.assert(X.kind===17||X.kind===18,"Template fragment has wrong token kind"),X}function ka(X){let Ae=X===15||X===18,Ue=t.getTokenText();return Ue.substring(1,Ue.length-(t.isUnterminated()?0:Ae?1:2))}function kl(X){let Ae=k(),Ue=Cv(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()):oN(X)?A(X,t.getTokenValue()):R.fail();return t.hasExtendedUnicodeEscape()&&(Ue.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ue.isUnterminated=!0),Ne(),tn(Ue,Ae)}function dd(){return Z(!0,f.Type_expected)}function Ic(){if(!t.hasPrecedingLineBreak()&&Bn()===30)return Gu(20,yc,30,32)}function Tp(){let X=k();return tn(m.createTypeReferenceNode(dd(),Ic()),X)}function Vu(X){switch(X.kind){case 183:return Fl(X.typeName);case 184:case 185:{let{parameters:Ae,type:Ue}=X;return cg(Ae)||Vu(Ue)}case 196:return Vu(X.type);default:return!1}}function ab(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(lb(),!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 Kg(){let X=k(),Ae=ie();if(Ri(wf)){let Ue=fn(36),St=Vt(59,!1);return Er(tn(m.createJSDocFunctionType(Ue,St),X),Ae)}return tn(m.createTypeReferenceNode(Ac(),void 0),X)}function Zy(){let X=k(),Ae;return(H()===110||H()===105)&&(Ae=Ac(),xn(59)),tn(m.createParameterDeclaration(void 0,void 0,Ae,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 Ae=mo(26),Ue=cb();return t.setInJSDocType(!1),Ae&&(Ue=tn(m.createJSDocVariadicType(Ue),X)),H()===64?(Ne(),tn(m.createJSDocOptionalType(Ue),X)):Ue}function fS(){let X=k();xn(114);let Ae=Z(!0),Ue=t.hasPrecedingLineBreak()?void 0:qE();return tn(m.createTypeQueryNode(Ae,Ue),X)}function mS(){let X=k(),Ae=Nh(!1,!0),Ue=Cs(),St,xt;mo(96)&&(dg()||!e_()?St=yc():xt=ub());let Ut=mo(64)?yc():void 0,Or=m.createTypeParameterDeclaration(Ae,Ue,St,Ut);return Or.expression=xt,tn(Or,X)}function df(){if(H()===30)return Gu(19,mS,30,32)}function B_(X){return H()===26||es()||Ny(H())||H()===60||dg(!X)}function uf(X){let Ae=Sr(f.Private_identifiers_cannot_be_used_as_parameters);return p2(Ae)===0&&!gt(X)&&Ny(H())&&Ne(),Ae}function Jg(){return Kr()||H()===23||H()===19}function we(X){return Pt(X)}function qe(X){return Pt(X,!1)}function Pt(X,Ae=!0){let Ue=k(),St=ie(),xt=X?se(()=>Nh(!0)):ke(()=>Nh(!0));if(H()===110){let Ci=m.createParameterDeclaration(xt,void 0,cd(!0),void 0,tv(),void 0),_i=Jc(xt);return _i&&Me(_i,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Er(tn(Ci,Ue),St)}let Ut=pn;pn=!1;let Or=la(26);if(!Ae&&!Jg())return;let Wi=Er(tn(m.createParameterDeclaration(xt,Or,uf(xt),la(58),tv(),t_()),Ue),St);return pn=Ut,Wi}function Vt(X,Ae){if(_n(X,Ae))return Be(cb)}function _n(X,Ae){return X===39?(xn(X),!0):mo(59)?!0:Ae&&H()===39?(dn(f._0_expected,da(59)),Ne(),!0):!1}function Jn(X,Ae){let Ue=Tt(),St=hn();yi(!!(X&1)),Ao(!!(X&2));let xt=X&32?Wd(17,Zy):Wd(16,()=>Ae?we(St):qe(St));return yi(Ue),Ao(St),xt}function fn(X){if(!xn(21))return Sp();let Ae=Jn(X,!0);return xn(22),Ae}function qn(){mo(28)||sl()}function mi(X){let Ae=k(),Ue=ie();X===180&&xn(105);let St=df(),xt=fn(4),Ut=Vt(59,!0);qn();let Or=X===179?m.createCallSignature(St,xt,Ut):m.createConstructSignature(St,xt,Ut);return Er(tn(Or,Ae),Ue)}function or(){return H()===23&&Pi(ri)}function ri(){if(Ne(),H()===26||H()===24)return!0;if(Ny(H())){if(Ne(),Io())return!0}else if(Io())Ne();else return!1;return H()===59||H()===28?!0:H()!==58?!1:(Ne(),H()===59||H()===28||H()===24)}function dr(X,Ae,Ue){let St=Gu(16,()=>we(!1),23,24),xt=tv();qn();let Ut=m.createIndexSignature(Ue,St,xt);return Er(tn(Ut,X),Ae)}function qo(X,Ae,Ue){let St=cn(),xt=la(58),Ut;if(H()===21||H()===30){let Or=df(),Wi=fn(4),Ci=Vt(59,!0);Ut=m.createMethodSignature(Ue,St,xt,Or,Wi,Ci)}else{let Or=tv();Ut=m.createPropertySignature(Ue,St,xt,Or),H()===64&&(Ut.initializer=t_())}return qn(),Er(tn(Ut,X),Ae)}function Ua(){if(H()===21||H()===30||H()===139||H()===153)return!0;let X=!1;for(;Ny(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 mi(179);if(H()===105&&Pi(ud))return mi(180);let X=k(),Ae=ie(),Ue=Nh(!1);return zr(139)?ty(X,Ae,Ue,177,4):zr(153)?ty(X,Ae,Ue,178,4):or()?dr(X,Ae,Ue):qo(X,Ae,Ue)}function ud(){return Ne(),H()===21||H()===30}function qg(){return Ne()===25}function kE(){switch(Ne()){case 21:case 30:case 25:return!0}return!1}function w1(){let X=k();return tn(m.createTypeLiteralNode(wE()),X)}function wE(){let X;return xn(19)?(X=$o(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(),Ae=Ac();xn(103);let Ue=yc();return tn(m.createTypeParameterDeclaration(void 0,Ae,Ue,void 0),X)}function OD(){let X=k();xn(19);let Ae;(H()===148||H()===40||H()===41)&&(Ae=pl(),Ae.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=pl(),xt.kind!==58&&xn(58));let Ut=tv();sl();let Or=$o(4,$d);return xn(20),tn(m.createMappedTypeNode(Ae,Ue,St,xt,Ut,Or),X)}function oA(){let X=k();if(mo(26))return tn(m.createRestTypeNode(yc()),X);let Ae=yc();if(LR(Ae)&&Ae.pos===Ae.type.pos){let Ue=m.createOptionalTypeNode(Ae.type);return at(Ue,Ae),Ue.flags=Ae.flags,Ue}return Ae}function _S(){return Ne()===59||H()===58&&Ne()===59}function O1(){return H()===26?ou(Ne())&&_S():ou(H())&&_S()}function WD(){if(Pi(O1)){let X=k(),Ae=ie(),Ue=la(26),St=Ac(),xt=la(58);xn(59);let Ut=oA(),Or=m.createNamedTupleMember(Ue,St,xt,Ut);return Er(tn(Or,X),Ae)}return oA()}function W1(){let X=k();return tn(m.createTupleTypeNode(Gu(21,WD,23,24)),X)}function F1(){let X=k();xn(21);let Ae=yc();return xn(22),tn(m.createParenthesizedType(Ae),X)}function z1(){let X;if(H()===128){let Ae=k();Ne();let Ue=tn(w(128),Ae);X=Mo([Ue],Ae)}return X}function B1(){let X=k(),Ae=ie(),Ue=z1(),St=mo(105);R.assert(!Ue||St,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let xt=df(),Ut=fn(4),Or=Vt(39,!1),Wi=St?m.createConstructorTypeNode(Ue,xt,Ut,Or):m.createFunctionTypeNode(xt,Ut,Or);return Er(tn(Wi,X),Ae)}function aA(){let X=pl();return H()===25?void 0:X}function G1(X){let Ae=k();X&&Ne();let Ue=H()===112||H()===97||H()===106?pl():kl(H());return X&&(Ue=tn(m.createPrefixUnaryExpression(41,Ue),Ae)),tn(m.createLiteralTypeNode(Ue),Ae)}function hS(){return Ne(),H()===102}function gS(){Ie|=4194304;let X=k(),Ae=mo(114);xn(102),xn(21);let Ue=yc(),St;if(mo(28)){let Or=t.getTokenStart();xn(19);let Wi=H();if(Wi===118||Wi===132?Ne():dn(f._0_expected,da(118)),xn(59),St=Eb(Wi,!0),!xn(20)){let Ci=Qs(ze);Ci&&Ci.code===f._0_expected.code&&Pa(Ci,yR(ve,De,Or,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xn(22);let xt=mo(25)?dd():void 0,Ut=Ic();return tn(m.createImportTypeNode(Ue,St,xt,Ut,Ae),X)}function sb(){return Ne(),H()===9||H()===10}function lb(){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 Kg();case 54:return Cm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return G1();case 41:return Pi(sb)?G1(!0):Tp();case 116:return pl();case 110:{let X=ls();return H()===142&&!t.hasPrecedingLineBreak()?ab(X):X}case 114:return Pi(hS)?gS():fS();case 19:return Pi(kD)?OD():w1();case 23:return W1();case 21:return F1();case 102:return gS();case 131:return Pi(Vp)?j1():Tp();case 16:return Se();default:return Tp()}}function dg(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(sb);case 21:return!X&&Pi(OE);default:return Io()}}function OE(){return Ne(),H()===22||B_(!1)||dg()}function $a(){let X=k(),Ae=lb();for(;!t.hasPrecedingLineBreak();)switch(H()){case 54:Ne(),Ae=tn(m.createJSDocNonNullableType(Ae,!0),X);break;case 58:if(Pi(Lt))return Ae;Ne(),Ae=tn(m.createJSDocNullableType(Ae,!0),X);break;case 23:if(xn(23),dg()){let Ue=yc();xn(24),Ae=tn(m.createIndexedAccessTypeNode(Ae,Ue),X)}else xn(24),Ae=tn(m.createArrayTypeNode(Ae),X);break;default:return Ae}return Ae}function sA(X){let Ae=k();return xn(X),tn(m.createTypeOperatorNode(X,xh()),Ae)}function FD(){if(mo(96)){let X=ct(yc);if(pt()||H()!==58)return X}}function WE(){let X=k(),Ae=Cs(),Ue=Ri(FD),St=m.createTypeParameterDeclaration(void 0,Ae,Ue);return tn(St,X)}function Xg(){let X=k();return xn(140),tn(m.createInferTypeNode(WE()),X)}function xh(){let X=H();switch(X){case 143:case 158:case 148:return sA(X);case 140:return Xg()}return Be($a)}function Mf(X){if(lA()){let Ae=B1(),Ue;return gh(Ae)?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(Ae,Ue),Ae}}function ju(X,Ae,Ue){let St=k(),xt=X===52,Ut=mo(X),Or=Ut&&Mf(xt)||Ae();if(H()===X||Ut){let Wi=[Or];for(;mo(X);)Wi.push(Mf(xt)||Ae());Or=tn(Ue(Mo(Wi,St)),St)}return Or}function Ap(){return ju(51,xh,m.createIntersectionTypeNode)}function np(){return ju(52,Ap,m.createUnionTypeNode)}function ev(){return Ne(),H()===105}function lA(){return H()===30||H()===21&&Pi(V1)?!0:H()===105||H()===128&&Pi(ev)}function zD(){if(Ny(H())&&Nh(!1),Io()||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 cb(){let X=k(),Ae=Io()&&Ri(FE),Ue=yc();return Ae?tn(m.createTypePredicateNode(void 0,Ae,Ue),X):Ue}function FE(){let X=Cs();if(H()===142&&!t.hasPrecedingLineBreak())return Ne(),X}function j1(){let X=k(),Ae=Ss(131),Ue=H()===110?ls():Cs(),St=mo(142)?yc():void 0;return tn(m.createTypePredicateNode(Ae,Ue,St),X)}function yc(){if(Kn&81920)return ua(81920,yc);if(lA())return B1();let X=k(),Ae=np();if(!pt()&&!t.hasPrecedingLineBreak()&&mo(96)){let Ue=ct(yc);xn(58);let St=Be(yc);xn(59);let xt=Be(yc);return tn(m.createConditionalTypeNode(Ae,Ue,St,xt),X)}return Ae}function tv(){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(kE);default:return Io()}}function e_(){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 r_()?!0:Io()}}function cA(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&e_()}function Ve(){let X=Bt();X&&$i(!1);let Ae=k(),Ue=pd(!0),St;for(;St=la(28);)Ue=yS(Ue,St,pd(!0),Ae);return X&&$i(!0),Ue}function t_(){return mo(64)?pd(!0):void 0}function pd(X){if(zE())return db();let Ae=rv(X)||dA(X);if(Ae)return Ae;let Ue=k(),St=ie(),xt=am(0);return xt.kind===80&&H()===39?nv(Ue,xt,X,St,void 0):Yu(xt)&&wy(Kt())?yS(xt,pl(),pd(X),Ue):om(xt,Ue,X)}function zE(){return H()===127?Tt()?!0:Pi(js):!1}function H1(){return Ne(),!t.hasPrecedingLineBreak()&&Io()}function db(){let X=k();return Ne(),!t.hasPrecedingLineBreak()&&(H()===42||e_())?tn(m.createYieldExpression(la(42),pd(!0)),X):tn(m.createYieldExpression(void 0,void 0),X)}function nv(X,Ae,Ue,St,xt){R.assert(H()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Ut=m.createParameterDeclaration(void 0,void 0,Ae,void 0,void 0,void 0);tn(Ut,Ae.pos);let Or=Mo([Ut],Ut.pos,Ut.end),Wi=Ss(39),Ci=pA(!!xt,Ue),_i=m.createArrowFunction(xt,void 0,Or,void 0,Wi,Ci);return Er(tn(_i,X),St)}function rv(X){let Ae=SM();if(Ae!==0)return Ae===1?BE(!0,!0):Ri(()=>n_(X))}function SM(){return H()===21||H()===30||H()===134?Pi(Ha):H()===39?1:0}function Ha(){if(H()===134&&(Ne(),t.hasPrecedingLineBreak()||H()!==21&&H()!==30))return 0;let X=H(),Ae=Ne();if(X===21){if(Ae===22)switch(Ne()){case 39:case 59:case 19:return 1;default:return 0}if(Ae===23||Ae===19)return 2;if(Ae===26)return 1;if(Ny(Ae)&&Ae!==134&&Pi(tp))return Ne()===130?0:1;if(!Io()&&Ae!==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 R.assert(X===30),!Io()&&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 n_(X){let Ae=t.getTokenStart();if(Dn?.has(Ae))return;let Ue=BE(!1,X);return Ue||(Dn||(Dn=new Set)).add(Ae),Ue}function dA(X){if(H()===134&&Pi(uA)===1){let Ae=k(),Ue=ie(),St=_f(),xt=am(0);return nv(Ae,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 BE(X,Ae){let Ue=k(),St=ie(),xt=_f(),Ut=gt(xt,aP)?2:0,Or=df(),Wi;if(xn(21)){if(X)Wi=Jn(Ut,X);else{let yg=Jn(Ut,X);if(!yg)return;Wi=yg}if(!xn(22)&&!X)return}else{if(!X)return;Wi=Sp()}let Ci=H()===59,_i=Vt(59,!1);if(_i&&!X&&Vu(_i))return;let Xi=_i;for(;Xi?.kind===196;)Xi=Xi.type;let cs=Xi&&kR(Xi);if(!X&&H()!==39&&(cs||H()!==19))return;let xs=H(),Ya=Ss(39),Of=xs===39||xs===19?pA(gt(xt,aP),Ae):Cs();if(!Ae&&Ci&&H()!==59)return;let K_=m.createArrowFunction(xt,Or,Wi,_i,Ya,Of);return Er(tn(K_,Ue),St)}function pA(X,Ae){if(H()===19)return _b(X?2:0);if(H()!==27&&H()!==100&&H()!==86&&AS()&&!cA())return _b(16|(X?2:0));let Ue=pn;pn=!1;let St=X?se(()=>pd(Ae)):ke(()=>pd(Ae));return pn=Ue,St}function om(X,Ae,Ue){let St=la(58);if(!St)return X;let xt;return tn(m.createConditionalExpression(X,St,ua(r,()=>pd(!1)),xt=Ss(59),Hf(xt)?pd(Ue):Gs(80,!1,f._0_expected,da(59))),Ae)}function am(X){let Ae=k(),Ue=ub();return K1(X,Ue,Ae)}function Yg(X){return X===103||X===165}function K1(X,Ae,Ue){for(;;){Kt();let St=Y2(H());if(!(H()===43?St>=X:St>X)||H()===103&&He())break;if(H()===130||H()===152){if(t.hasPrecedingLineBreak())break;{let Ut=H();Ne(),Ae=Ut===152?BD(Ae,yc()):qi(Ae,yc())}}else Ae=yS(Ae,pl(),am(St),Ue)}return Ae}function r_(){return He()&&H()===103?!1:Y2(H())>0}function BD(X,Ae){return tn(m.createSatisfiesExpression(X,Ae),X.pos)}function yS(X,Ae,Ue,St){return tn(m.createBinaryExpression(X,Ae,Ue),St)}function qi(X,Ae){return tn(m.createAsExpression(X,Ae),X.pos)}function Zr(){let X=k();return tn(m.createPrefixUnaryExpression(H(),We(gl)),X)}function Rh(){let X=k();return tn(m.createDeleteExpression(We(gl)),X)}function Uu(){let X=k();return tn(m.createTypeOfExpression(We(gl)),X)}function TM(){let X=k();return tn(m.createVoidExpression(We(gl)),X)}function $g(){return H()===135?hn()?!0:Pi(js):!1}function AM(){let X=k();return tn(m.createAwaitExpression(We(gl)),X)}function ub(){if(Bp()){let Ue=k(),St=ug();return H()===43?K1(Y2(H()),St,Ue):St}let X=H(),Ae=gl();if(H()===43){let Ue=Na(De,Ae.pos),{end:St}=Ae;Ae.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):(R.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 Ae}function gl(){switch(H()){case 40:case 41:case 55:case 54:return Zr();case 91:return Rh();case 114:return Uu();case 116:return TM();case 30:return be===1?Qg(!0,void 0,void 0,!0):Mm();case 135:if($g())return AM();default:return ug()}}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 ug(){if(H()===46||H()===47){let Ae=k();return tn(m.createPrefixUnaryExpression(H(),We(sm)),Ae)}else if(be===1&&H()===30&&Pi(im))return Qg(!0);let X=sm();if(R.assert(Yu(X)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){let Ae=H();return Ne(),tn(m.createPostfixUnaryExpression(X,Ae),X.pos)}return X}function sm(){let X=k(),Ae;return H()===102?Pi(ud)?(Ie|=4194304,Ae=pl()):Pi(qg)?(Ne(),Ne(),Ae=tn(m.createMetaProperty(102,Ac()),X),Ie|=8388608):Ae=pb():Ae=H()===108?Pm():pb(),ov(X,Ae)}function pb(){let X=k(),Ae=GE();return td(X,Ae,!0)}function Pm(){let X=k(),Ae=pl();if(H()===30){let Ue=k(),St=Ri(ar);St!==void 0&&(U(Ue,k(),f.super_may_not_use_type_arguments),Qi()||(Ae=m.createExpressionWithTypeArguments(Ae,St)))}return H()===21||H()===25||H()===23?Ae:(Ss(25,f.super_must_be_followed_by_an_argument_list_or_member_access),tn(Y(Ae,Ot(!0,!0,!0)),X))}function Qg(X,Ae,Ue,St=!1){let xt=k(),Ut=fg(X),Or;if(Ut.kind===286){let Wi=pg(Ut),Ci,_i=Wi[Wi.length-1];if(_i?.kind===284&&!EE(_i.openingElement.tagName,_i.closingElement.tagName)&&EE(Ut.tagName,_i.closingElement.tagName)){let Xi=_i.children.end,cs=tn(m.createJsxElement(_i.openingElement,_i.children,tn(m.createJsxClosingElement(tn(N(""),Xi,Xi)),Xi,Xi)),_i.openingElement.pos,Xi);Wi=Mo([...Wi.slice(0,Wi.length-1),cs],Wi.pos,Xi),Ci=_i.closingElement}else Ci=bS(Ut,X),EE(Ut.tagName,Ci.tagName)||(Ue&&P_(Ue)&&EE(Ci.tagName,Ue.tagName)?Me(Ut.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,uN(De,Ut.tagName)):Me(Ci.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,uN(De,Ut.tagName)));Or=tn(m.createJsxElement(Ut,Wi,Ci),xt)}else Ut.kind===289?Or=tn(m.createJsxFragment(Ut,pg(Ut),_A(X)),xt):(R.assert(Ut.kind===285),Or=Ut);if(!St&&X&&H()===30){let Wi=typeof Ae>"u"?Or.pos:Ae,Ci=Ri(()=>Qg(!0,Wi));if(Ci){let _i=Gs(28,!1);return JN(_i,Ci.pos,0),U(Na(De,Wi),Ci.end,f.JSX_expressions_must_have_one_parent_element),tn(m.createBinaryExpression(Or,_i,Ci),xt)}}return Or}function vS(){let X=k(),Ae=m.createJsxText(t.getTokenValue(),_t===13);return _t=t.scanJsxToken(),tn(Ae,X)}function fA(X,Ae){switch(Ae){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,uN(De,X.tagName))}return;case 31:case 7:return;case 12:case 13:return vS();case 19:return GD(!1);case 30:return Qg(!1,void 0,X);default:return R.assertNever(Ae)}}function pg(X){let Ae=[],Ue=k(),St=en;for(en|=16384;;){let xt=fA(X,_t=t.reScanJsxToken());if(!xt||(Ae.push(xt),P_(X)&&xt?.kind===284&&!EE(xt.openingElement.tagName,xt.closingElement.tagName)&&EE(X.tagName,xt.closingElement.tagName)))break}return en=St,Mo(Ae,Ue)}function J1(){let X=k();return tn(m.createJsxAttributes($o(13,VD)),X)}function fg(X){let Ae=k();if(xn(30),H()===32)return er(),tn(m.createJsxOpeningFragment(),Ae);let Ue=G_(),St=Kn&524288?void 0:qE(),xt=J1(),Ut;return H()===32?(er(),Ut=m.createJsxOpeningElement(Ue,St,xt)):(xn(44),xn(32,void 0,!1)&&(X?Ne():er()),Ut=m.createJsxSelfClosingElement(Ue,St,xt)),tn(Ut,Ae)}function G_(){let X=k(),Ae=iv();if(Xm(Ae))return Ae;let Ue=Ae;for(;mo(25);)Ue=tn(Y(Ue,Ot(!0,!1,!1)),X);return Ue}function iv(){let X=k();xi();let Ae=H()===110,Ue=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ue,de()),X)):Ae?tn(m.createToken(110),X):Ue}function GD(X){let Ae=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),Ae)}function VD(){if(H()===19)return Ys();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 Qg(!0);dn(f.or_JSX_element_expected)}}function mA(){let X=k();xi();let Ae=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ae,de()),X)):Ae}function Ys(){let X=k();xn(19),xn(26);let Ae=Ve();return xn(20),tn(m.createJsxSpreadAttribute(Ae),X)}function bS(X,Ae){let Ue=k();xn(31);let St=G_();return xn(32,void 0,!1)&&(Ae||!EE(X.tagName,St)?Ne():er()),tn(m.createJsxClosingElement(St),Ue)}function _A(X){let Ae=k();return xn(31),xn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(X?Ne():er()),tn(m.createJsxJsxClosingFragment(),Ae)}function Mm(){R.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 Ae=yc();xn(32);let Ue=gl();return tn(m.createTypeAssertion(Ae,Ue),X)}function fb(){return Ne(),ou(H())||H()===23||Qi()}function UD(){return H()===29&&Pi(fb)}function hA(X){if(X.flags&64)return!0;if(t1(X)){let Ae=X.expression;for(;t1(Ae)&&!(Ae.flags&64);)Ae=Ae.expression;if(Ae.flags&64){for(;t1(X);)X.flags|=64,X=X.expression;return!0}}return!1}function IM(X,Ae,Ue){let St=Ot(!0,!0,!0),xt=Ue||hA(Ae),Ut=xt?B(Ae,Ue,St):Y(Ae,St);if(xt&&Ki(Ut.name)&&Me(Ut.name,f.An_optional_chain_cannot_contain_private_identifiers),Gy(Ae)&&Ae.typeArguments){let Or=Ae.typeArguments.pos-1,Wi=Na(De,Ae.typeArguments.end)+1;U(Or,Wi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return tn(Ut,X)}function mr(X,Ae,Ue){let St;if(H()===24)St=Gs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let Ut=vn(Ve);Qp(Ut)&&(Ut.text=ed(Ut.text)),St=Ut}xn(24);let xt=Ue||hA(Ae)?z(Ae,Ue,St):ce(Ae,St);return tn(xt,X)}function td(X,Ae,Ue){for(;;){let St,xt=!1;if(Ue&&UD()?(St=Ss(29),xt=ou(H())):xt=mo(25),xt){Ae=IM(X,Ae,St);continue}if((St||!Bt())&&mo(23)){Ae=mr(X,Ae,St);continue}if(Qi()){Ae=!St&&Ae.kind===233?pf(X,Ae.expression,St,Ae.typeArguments):pf(X,Ae,St,void 0);continue}if(!St){if(H()===54&&!t.hasPrecedingLineBreak()){Ne(),Ae=tn(m.createNonNullExpression(Ae),X);continue}let Ut=Ri(ar);if(Ut){Ae=tn(m.createExpressionWithTypeArguments(Ae,Ut),X);continue}}return Ae}}function Qi(){return H()===15||H()===16}function pf(X,Ae,Ue,St){let xt=m.createTaggedTemplateExpression(Ae,St,H()===15?(wn(!0),Xr()):O(!0));return(Ue||Ae.flags&64)&&(xt.flags|=64),xt.questionDotToken=Ue,tn(xt,X)}function ov(X,Ae){for(;;){Ae=td(X,Ae,!0);let Ue,St=la(29);if(St&&(Ue=Ri(ar),Qi())){Ae=pf(X,Ae,St,Ue);continue}if(Ue||H()===21){!St&&Ae.kind===233&&(Ue=Ae.typeArguments,Ae=Ae.expression);let xt=V_(),Ut=St||hA(Ae)?me(Ae,St,Ue,xt):ee(Ae,Ue,xt);Ae=tn(Ut,X);continue}if(St){let xt=Gs(80,!1,f.Identifier_expected);Ae=tn(B(Ae,St,xt),X)}break}return Ae}function V_(){xn(21);let X=Wd(11,ES);return xn(22),X}function ar(){if(Kn&524288||Bn()!==30)return;Ne();let X=Wd(20,yc);if(Kt()===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()||r_()||!e_()}function GE(){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 pl();case 21:return Kc();case 23:return SS();case 19:return Zg();case 134:if(!Pi(TA))break;return yA();case 60:return JE();case 86:return ex();case 100:return yA();case 105:return VE();case 44:case 69:if(En()===14)return Xr();break;case 16:return O(!1);case 81:return fr()}return Cs(f.Expression_expected)}function Kc(){let X=k(),Ae=ie();xn(21);let Ue=vn(Ve);return xn(22),Er(tn(q(Ue),X),Ae)}function Dh(){let X=k();xn(26);let Ae=pd(!0);return tn(m.createSpreadElement(Ae),X)}function Lm(){return H()===26?Dh():H()===28?tn(m.createOmittedExpression(),k()):pd(!0)}function ES(){return ua(r,Lm)}function SS(){let X=k(),Ae=t.getTokenStart(),Ue=xn(23),St=t.hasPrecedingLineBreak(),xt=Wd(15,Lm);return sd(23,24,Ue,Ae),tn(j(xt,St),X)}function mb(){let X=k(),Ae=ie();if(la(26)){let Xi=pd(!0);return Er(tn(m.createSpreadAssignment(Xi),X),Ae)}let Ue=Nh(!0);if(zr(139))return ty(X,Ae,Ue,177,0);if(zr(153))return ty(X,Ae,Ue,178,0);let St=la(42),xt=Io(),Ut=cn(),Or=la(58),Wi=la(54);if(St||H()===21||H()===30)return i_(X,Ae,Ue,St,Ut,Or,Wi);let Ci;if(xt&&H()!==59){let Xi=la(64),cs=Xi?vn(()=>pd(!0)):void 0;Ci=m.createShorthandPropertyAssignment(Ut,cs),Ci.equalsToken=Xi}else{xn(59);let Xi=vn(()=>pd(!0));Ci=m.createPropertyAssignment(Ut,Xi)}return Ci.modifiers=Ue,Ci.questionToken=Or,Ci.exclamationToken=Wi,Er(tn(Ci,X),Ae)}function Zg(){let X=k(),Ae=t.getTokenStart(),Ue=xn(19),St=t.hasPrecedingLineBreak(),xt=Wd(12,mb,!0);return sd(19,20,Ue,Ae),tn(K(xt,St),X)}function yA(){let X=Bt();$i(!1);let Ae=k(),Ue=ie(),St=Nh(!1);xn(100);let xt=la(42),Ut=xt?1:0,Or=gt(St,aP)?2:0,Wi=Ut&&Or?st(km):Ut?lt(km):Or?se(km):km(),Ci=df(),_i=fn(Ut|Or),Xi=Vt(59,!1),cs=_b(Ut|Or);$i(X);let xs=m.createFunctionExpression(St,xt,Wi,Ci,_i,Xi,cs);return Er(tn(xs,Ae),Ue)}function km(){return Kr()?Ep():void 0}function VE(){let X=k();if(xn(105),mo(25)){let Ut=Ac();return tn(m.createMetaProperty(105,Ut),X)}let Ae=k(),Ue=td(Ae,GE(),!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,uN(De,Ue));let xt=H()===21?V_():void 0;return tn(ge(Ue,St,xt),X)}function mg(X,Ae){let Ue=k(),St=ie(),xt=t.getTokenStart(),Ut=xn(19,Ae);if(Ut||X){let Or=t.hasPrecedingLineBreak(),Wi=$o(1,ip);sd(19,20,Ut,xt);let Ci=Er(tn(J(Wi,Or),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 Or=Sp();return Er(tn(J(Or,void 0),Ue),St)}}function _b(X,Ae){let Ue=Tt();yi(!!(X&1));let St=hn();Ao(!!(X&2));let xt=pn;pn=!1;let Ut=Bt();Ut&&$i(!1);let Or=mg(!!(X&16),Ae);return Ut&&$i(!0),pn=xt,yi(Ue),Ao(St),Or}function q1(){let X=k(),Ae=ie();return xn(27),Er(tn(m.createEmptyStatement(),X),Ae)}function jE(){let X=k(),Ae=ie();xn(101);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);sd(21,22,St,Ue);let Ut=ip(),Or=mo(93)?ip():void 0;return Er(tn(xe(xt,Ut,Or),X),Ae)}function HD(){let X=k(),Ae=ie();xn(92);let Ue=ip();xn(117);let St=t.getTokenStart(),xt=xn(21),Ut=vn(Ve);return sd(21,22,xt,St),mo(27),Er(tn(m.createDoStatement(Ue,Ut),X),Ae)}function TS(){let X=k(),Ae=ie();xn(117);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);sd(21,22,St,Ue);let Ut=ip();return Er(tn(fe(xt,Ut),X),Ae)}function vA(){let X=k(),Ae=ie();xn(99);let Ue=la(135);xn(21);let St;H()!==27&&(H()===115||H()===121||H()===87||H()===160&&Pi(ey)||H()===135&&Pi(Ip)?St=IS(!0):St=kn(Ve));let xt;if(Ue?xn(165):mo(165)){let Ut=vn(()=>pd(!0));xn(22),xt=he(Ue,St,Ut,ip())}else if(mo(103)){let Ut=vn(Ve);xn(22),xt=m.createForInStatement(St,Ut,ip())}else{xn(27);let Ut=H()!==27&&H()!==22?vn(Ve):void 0;xn(27);let Or=H()!==22?vn(Ve):void 0;xn(22),xt=ne(St,Ut,Or,ip())}return Er(tn(xt,X),Ae)}function Gp(X){let Ae=k(),Ue=ie();xn(X===252?83:88);let St=ac()?void 0:Cs();sl();let xt=X===252?m.createBreakStatement(St):m.createContinueStatement(St);return Er(tn(xt,Ae),Ue)}function bA(){let X=k(),Ae=ie();xn(107);let Ue=ac()?void 0:vn(Ve);return sl(),Er(tn(m.createReturnStatement(Ue),X),Ae)}function Vl(){let X=k(),Ae=ie();xn(118);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);sd(21,22,St,Ue);let Ut=za(67108864,ip);return Er(tn(m.createWithStatement(xt,Ut),X),Ae)}function Oc(){let X=k(),Ae=ie();xn(84);let Ue=vn(Ve);xn(59);let St=$o(3,ip);return Er(tn(m.createCaseClause(Ue,St),X),Ae)}function EA(){let X=k();xn(90),xn(59);let Ae=$o(3,ip);return tn(m.createDefaultClause(Ae),X)}function Sd(){return H()===84?Oc():EA()}function rp(){let X=k();xn(19);let Ae=$o(2,Sd);return xn(20),tn(m.createCaseBlock(Ae),X)}function UE(){let X=k(),Ae=ie();xn(109),xn(21);let Ue=vn(Ve);xn(22);let St=rp();return Er(tn(m.createSwitchStatement(Ue,St),X),Ae)}function Lf(){let X=k(),Ae=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),Ae)}function hb(){let X=k(),Ae=ie();xn(113);let Ue=mg(!1),St=H()===85?gb():void 0,xt;return(!St||H()===98)&&(xn(98,f.catch_or_finally_expected),xt=mg(!1)),Er(tn(m.createTryStatement(Ue,St,xt),X),Ae)}function gb(){let X=k();xn(85);let Ae;mo(21)?(Ae=Cu(),xn(22)):Ae=void 0;let Ue=mg(!1);return tn(m.createCatchClause(Ae,Ue),X)}function nd(){let X=k(),Ae=ie();return xn(89),sl(),Er(tn(m.createDebuggerStatement(),X),Ae)}function X1(){let X=k(),Ae=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&&(Ae=!1)),Er(tn(Ue,X),Ae)}function Vp(){return Ne(),ou(H())&&!t.hasPrecedingLineBreak()}function SA(){return Ne(),H()===86&&!t.hasPrecedingLineBreak()}function TA(){return Ne(),H()===100&&!t.hasPrecedingLineBreak()}function js(){return Ne(),(ou(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||ou(H());case 95:let Ae=Ne();if(Ae===156&&(Ae=Pi(Ne)),Ae===64||Ae===42||Ae===19||Ae===90||Ae===130||Ae===60)return!0;continue;case 126:Ne();continue;default:return!1}}function HE(){return Pi(KD)}function AS(){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 HE()||Pi(kE);case 87:case 95:return HE();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 HE()||!Pi(Vp);default:return e_()}}function xM(){return Ne(),Kr()||H()===19||H()===23}function hu(){return Pi(xM)}function ey(){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 mg(!1);case 115:return KE(k(),ie(),void 0);case 121:if(hu())return KE(k(),ie(),void 0);break;case 135:if($1())return KE(k(),ie(),void 0);break;case 160:if(Y1())return KE(k(),ie(),void 0);break;case 100:return xS(k(),ie(),void 0);case 86:return DA(k(),ie(),void 0);case 101:return jE();case 92:return HD();case 117:return TS();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 UE();case 111:return Lf();case 113:case 85:case 98:return hb();case 89:return nd();case 60:return av();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(HE())return av();break}return X1()}function Q1(X){return X.kind===138}function av(){let X=k(),Ae=ie(),Ue=Nh(!0);if(gt(Ue,Q1)){let xt=AA(X);if(xt)return xt;for(let Ut of Ue)Ut.flags|=33554432;return za(33554432,()=>JD(X,Ae,Ue))}else return JD(X,Ae,Ue)}function AA(X){return za(33554432,()=>{let Ae=gc(en,X);if(Ae)return ll(Ae)})}function JD(X,Ae,Ue){switch(H()){case 115:case 121:case 87:case 160:case 135:return KE(X,Ae,Ue);case 100:return xS(X,Ae,Ue);case 86:return DA(X,Ae,Ue);case 120:return ut(X,Ae,Ue);case 156:return nn(X,Ae,Ue);case 94:return wi(X,Ae,Ue);case 162:case 144:case 145:return Qd(X,Ae,Ue);case 102:return Vn(X,Ae,Ue);case 95:switch(Ne(),H()){case 90:case 64:return Lh(X,Ae,Ue);case 130:return Ph(X,Ae,Ue);default:return RM(X,Ae,Ue)}default:if(Ue){let St=Gs(282,!0,f.Declaration_expected);return KN(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()&&(Io()||H()===11)}function yb(X,Ae){if(H()!==19){if(X&4){qn();return}if(ac()){sl();return}}return _b(X,Ae)}function xp(){let X=k();if(H()===28)return tn(m.createOmittedExpression(),X);let Ae=la(26),Ue=Sr(),St=t_();return tn(m.createBindingElement(Ae,void 0,Ue,St),X)}function Ch(){let X=k(),Ae=la(26),Ue=Kr(),St=cn(),xt;Ue&&H()!==59?(xt=St,St=void 0):(xn(59),xt=Sr());let Ut=t_();return tn(m.createBindingElement(Ae,St,xt,Ut),X)}function YD(){let X=k();xn(19);let Ae=vn(()=>Wd(9,Ch));return xn(20),tn(m.createObjectBindingPattern(Ae),X)}function xA(){let X=k();xn(23);let Ae=vn(()=>Wd(10,xp));return xn(24),tn(m.createArrayBindingPattern(Ae),X)}function es(){return H()===19||H()===23||H()===81||Kr()}function Sr(X){return H()===23?xA():H()===19?YD():Ep(X)}function ff(){return Cu(!0)}function Cu(X){let Ae=k(),Ue=ie(),St=Sr(f.Private_identifiers_are_not_allowed_in_variable_declarations),xt;X&&St.kind===80&&H()===54&&!t.hasPrecedingLineBreak()&&(xt=pl());let Ut=tv(),Or=Yg(H())?void 0:t_(),Wi=Ce(St,xt,Ut,Or);return Er(tn(Wi,Ae),Ue)}function IS(X){let Ae=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:R.assert($1()),Ue|=6,Ne();break;default:R.fail()}Ne();let St;if(H()===165&&Pi($D))St=Sp();else{let xt=He();li(X),St=Wd(8,X?Cu:ff),li(xt)}return tn(Ge(St,Ue),Ae)}function $D(){return tp()&&Ne()===22}function KE(X,Ae,Ue){let St=IS(!1);sl();let xt=re(Ue,St);return Er(tn(xt,X),Ae)}function xS(X,Ae,Ue){let St=hn(),xt=x_(Ue);xn(100);let Ut=la(42),Or=xt&2048?km():Ep(),Wi=Ut?1:0,Ci=xt&1024?2:0,_i=df();xt&32&&Ao(!0);let Xi=fn(Wi|Ci),cs=Vt(59,!1),xs=yb(Wi|Ci,f.or_expected);Ao(St);let Ya=m.createFunctionDeclaration(Ue,Ut,Or,_i,Xi,cs,xs);return Er(tn(Ya,X),Ae)}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 _g(X,Ae,Ue){return Ri(()=>{if(RA()){let St=df(),xt=fn(0),Ut=Vt(59,!1),Or=yb(0,f.or_expected),Wi=m.createConstructorDeclaration(Ue,xt,Or);return Wi.typeParameters=St,Wi.type=Ut,Er(tn(Wi,X),Ae)}})}function i_(X,Ae,Ue,St,xt,Ut,Or,Wi){let Ci=St?1:0,_i=gt(Ue,aP)?2:0,Xi=df(),cs=fn(Ci|_i),xs=Vt(59,!1),Ya=yb(Ci|_i,Wi),Of=m.createMethodDeclaration(Ue,St,xt,Ut,Xi,cs,xs,Ya);return Of.exclamationToken=Or,Er(tn(Of,X),Ae)}function mf(X,Ae,Ue,St,xt){let Ut=!xt&&!t.hasPrecedingLineBreak()?la(54):void 0,Or=tv(),Wi=ua(90112,t_);Bs(St,Or,Wi);let Ci=m.createPropertyDeclaration(Ue,St,xt||Ut,Or,Wi);return Er(tn(Ci,X),Ae)}function wm(X,Ae,Ue){let St=la(42),xt=cn(),Ut=la(58);return St||H()===21||H()===30?i_(X,Ae,Ue,St,xt,Ut,void 0,f.or_expected):mf(X,Ae,Ue,xt,Ut)}function ty(X,Ae,Ue,St,xt){let Ut=cn(),Or=df(),Wi=fn(0),Ci=Vt(59,!1),_i=yb(xt),Xi=St===177?m.createGetAccessorDeclaration(Ue,Ut,Wi,Ci,_i):m.createSetAccessorDeclaration(Ue,Ut,Wi,_i);return Xi.typeParameters=Or,hp(Xi)&&(Xi.type=Ci),Er(tn(Xi,X),Ae)}function hg(){let X;if(H()===60)return!0;for(;Ny(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 gg(X,Ae,Ue){Ss(126);let St=Z1(),xt=Er(tn(m.createClassStaticBlockDeclaration(St),X),Ae);return xt.modifiers=Ue,xt}function Z1(){let X=Tt(),Ae=hn();yi(!1),Ao(!0);let Ue=mg(!1);return yi(X),Ao(Ae),Ue}function sc(){if(hn()&&H()===135){let X=k(),Ae=Cs(f.Expression_expected);Ne();let Ue=td(X,Ae,!0);return ov(X,Ue)}return sm()}function QD(){let X=k();if(!mo(60))return;let Ae=Rt(sc);return tn(m.createDecorator(Ae),X)}function kf(X,Ae,Ue){let St=k(),xt=H();if(H()===87&&Ae){if(!Ri(Di))return}else{if(Ue&&H()===126&&Pi(bb))return;if(X&&H()===126)return;if(!jc())return}return tn(w(xt),St)}function Nh(X,Ae,Ue){let St=k(),xt,Ut,Or,Wi=!1,Ci=!1,_i=!1;if(X&&H()===60)for(;Ut=QD();)xt=Tn(xt,Ut);for(;Or=kf(Wi,Ae,Ue);)Or.kind===126&&(Wi=!0),xt=Tn(xt,Or),Ci=!0;if(Ci&&X&&H()===60)for(;Ut=QD();)xt=Tn(xt,Ut),_i=!0;if(_i)for(;Or=kf(Wi,Ae,Ue);)Or.kind===126&&(Wi=!0),xt=Tn(xt,Or);return xt&&Mo(xt,St)}function _f(){let X;if(H()===134){let Ae=k();Ne();let Ue=tn(w(134),Ae);X=Mo([Ue],Ae)}return X}function RS(){let X=k(),Ae=ie();if(H()===27)return Ne(),Er(tn(m.createSemicolonClassElement(),X),Ae);let Ue=Nh(!0,!0,!0);if(H()===126&&Pi(bb))return gg(X,Ae,Ue);if(zr(139))return ty(X,Ae,Ue,177,0);if(zr(153))return ty(X,Ae,Ue,178,0);if(H()===137||H()===11){let St=_g(X,Ae,Ue);if(St)return St}if(or())return dr(X,Ae,Ue);if(ou(H())||H()===11||H()===9||H()===42||H()===23)if(gt(Ue,Q1)){for(let xt of Ue)xt.flags|=33554432;return za(33554432,()=>wm(X,Ae,Ue))}else return wm(X,Ae,Ue);if(Ue){let St=Gs(80,!0,f.Declaration_expected);return mf(X,Ae,Ue,St,void 0)}return R.fail("Should not have attempted to parse class member declaration.")}function JE(){let X=k(),Ae=ie(),Ue=Nh(!0);if(H()===86)return hf(X,Ae,Ue,231);let St=Gs(282,!0,f.Expression_expected);return KN(St,X),St.modifiers=Ue,St}function ex(){return hf(k(),ie(),void 0,231)}function DA(X,Ae,Ue){return hf(X,Ae,Ue,263)}function hf(X,Ae,Ue,St){let xt=hn();xn(86);let Ut=Ns(),Or=df();gt(Ue,JI)&&Ao(!0);let Wi=CS(),Ci;xn(19)?(Ci=oe(),xn(20)):Ci=Sp(),Ao(xt);let _i=St===263?m.createClassDeclaration(Ue,Ut,Or,Wi,Ci):m.createClassExpression(Ue,Ut,Or,Wi,Ci);return Er(tn(_i,X),Ae)}function Ns(){return Kr()&&!DS()?cd(Kr()):void 0}function DS(){return H()===119&&Pi(wc)}function CS(){if(I())return $o(22,ny)}function ny(){let X=k(),Ae=H();R.assert(Ae===96||Ae===119),Ne();let Ue=Wd(7,vb);return tn(m.createHeritageClause(Ae,Ue),X)}function vb(){let X=k(),Ae=sm();if(Ae.kind===233)return Ae;let Ue=qE();return tn(m.createExpressionWithTypeArguments(Ae,Ue),X)}function qE(){return H()===30?Gu(20,yc,30,32):void 0}function I(){return H()===96||H()===119}function oe(){return $o(5,RS)}function ut(X,Ae,Ue){xn(120);let St=Cs(),xt=df(),Ut=CS(),Or=wE(),Wi=m.createInterfaceDeclaration(Ue,St,xt,Ut,Or);return Er(tn(Wi,X),Ae)}function nn(X,Ae,Ue){xn(156),t.hasPrecedingLineBreak()&&dn(f.Line_break_not_permitted_here);let St=Cs(),xt=df();xn(64);let Ut=H()===141&&Ri(aA)||yc();sl();let Or=m.createTypeAliasDeclaration(Ue,St,xt,Ut);return Er(tn(Or,X),Ae)}function Lr(){let X=k(),Ae=ie(),Ue=cn(),St=vn(t_);return Er(tn(m.createEnumMember(Ue,St),X),Ae)}function wi(X,Ae,Ue){xn(94);let St=Cs(),xt;xn(19)?(xt=G(()=>Wd(6,Lr)),xn(20)):xt=Sp();let Ut=m.createEnumDeclaration(Ue,St,xt);return Er(tn(Ut,X),Ae)}function vi(){let X=k(),Ae;return xn(19)?(Ae=$o(1,ip),xn(20)):Ae=Sp(),tn(m.createModuleBlock(Ae),X)}function Zi(X,Ae,Ue,St){let xt=St&32,Ut=St&8?Ac():Cs(),Or=mo(25)?Zi(k(),!1,void 0,8|xt):vi(),Wi=m.createModuleDeclaration(Ue,Ut,Or,St);return Er(tn(Wi,X),Ae)}function _a(X,Ae,Ue){let St=0,xt;H()===162?(xt=Cs(),St|=2048):(xt=Xr(),xt.text=ed(xt.text));let Ut;H()===19?Ut=vi():sl();let Or=m.createModuleDeclaration(Ue,xt,Ut,St);return Er(tn(Or,X),Ae)}function Qd(X,Ae,Ue){let St=0;if(H()===162)return _a(X,Ae,Ue);if(mo(145))St|=32;else if(xn(144),H()===11)return _a(X,Ae,Ue);return Zi(X,Ae,Ue,St)}function Nu(){return H()===149&&Pi(wf)}function wf(){return Ne()===21}function bb(){return Ne()===19}function Si(){return Ne()===44}function Ph(X,Ae,Ue){xn(130),xn(145);let St=Cs();sl();let xt=m.createNamespaceExportDeclaration(St);return xt.modifiers=Ue,Er(tn(xt,X),Ae)}function Vn(X,Ae,Ue){xn(102);let St=t.getTokenFullStart(),xt;Io()&&(xt=Cs());let Ut=!1;if(xt?.escapedText==="type"&&(H()!==161||Io()&&Pi(IA))&&(Io()||Sb())&&(Ut=!0,xt=Io()?Cs():void 0),xt&&!CA())return NS(X,Ae,Ue,xt,Ut);let Or;(xt||H()===42||H()===19)&&(Or=U_(xt,St,Ut),xn(161));let Wi=NA(),Ci=H(),_i;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(_i=Eb(Ci)),sl();let Xi=m.createImportDeclaration(Ue,Or,Wi,_i);return Er(tn(Xi,X),Ae)}function tx(){let X=k(),Ae=ou(H())?Ac():kl(11);xn(59);let Ue=pd(!0);return tn(m.createImportAttribute(Ae,Ue),X)}function Eb(X,Ae){let Ue=k();Ae||xn(X);let St=t.getTokenStart();if(xn(19)){let xt=t.hasPrecedingLineBreak(),Ut=Wd(24,tx,!0);if(!xn(20)){let Or=Qs(ze);Or&&Or.code===f._0_expected.code&&Pa(Or,yR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return tn(m.createImportAttributes(Ut,xt,X),Ue)}else{let xt=Mo([],k(),void 0,!1);return tn(m.createImportAttributes(xt,!1,X),Ue)}}function Sb(){return H()===42||H()===19}function CA(){return H()===28||H()===161}function NS(X,Ae,Ue,St,xt){xn(64);let Ut=Mh();sl();let Or=m.createImportEqualsDeclaration(Ue,xt,St,Ut);return Er(tn(Or,X),Ae)}function U_(X,Ae,Ue){let St;return(!X||mo(28))&&(St=H()===42?UB():Tb(275)),tn(m.createImportClause(Ue,X,St),Ae)}function Mh(){return Nu()?ZD():Z(!1)}function ZD(){let X=k();xn(149),xn(21);let Ae=NA();return xn(22),tn(m.createExternalModuleReference(Ae),X)}function NA(){if(H()===11){let X=Xr();return X.text=ed(X.text),X}else return Ve()}function UB(){let X=k();xn(42),xn(130);let Ae=Cs();return tn(m.createNamespaceImport(Ae),X)}function Tb(X){let Ae=k(),Ue=X===275?m.createNamedImports(Gu(23,d8,19,20)):m.createNamedExports(Gu(23,c8,19,20));return tn(Ue,Ae)}function c8(){let X=ie();return Er(XE(281),X)}function d8(){return XE(276)}function XE(X){let Ae=k(),Ue=Wu(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ut=!1,Or,Wi=!0,Ci=Ac();if(Ci.escapedText==="type")if(H()===130){let cs=Ac();if(H()===130){let xs=Ac();ou(H())?(Ut=!0,Or=cs,Ci=Xi(),Wi=!1):(Or=Ci,Ci=xs,Wi=!1)}else ou(H())?(Or=Ci,Wi=!1,Ci=Xi()):(Ut=!0,Ci=cs)}else ou(H())&&(Ut=!0,Ci=Xi());Wi&&H()===130&&(Or=Ci,xn(130),Ci=Xi()),X===276&&Ue&&U(St,xt,f.Identifier_expected);let _i=X===276?m.createImportSpecifier(Ut,Or,Ci):m.createExportSpecifier(Ut,Or,Ci);return tn(_i,Ae);function Xi(){return Ue=Wu(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ac()}}function o_(X){return tn(m.createNamespaceExport(Ac()),X)}function RM(X,Ae,Ue){let St=hn();Ao(!0);let xt,Ut,Or,Wi=mo(156),Ci=k();mo(42)?(mo(130)&&(xt=o_(Ci)),xn(161),Ut=NA()):(xt=Tb(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(xn(161),Ut=NA()));let _i=H();Ut&&(_i===118||_i===132)&&!t.hasPrecedingLineBreak()&&(Or=Eb(_i)),sl(),Ao(St);let Xi=m.createExportDeclaration(Ue,Wi,xt,Ut,Or);return Er(tn(Xi,X),Ae)}function Lh(X,Ae,Ue){let St=hn();Ao(!0);let xt;mo(64)?xt=!0:xn(90);let Ut=pd(!0);sl(),Ao(St);let Or=m.createExportAssignment(Ue,xt,Ut);return Er(tn(Or,X),Ae)}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 u8;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(u8||(u8={}));let H_;(X=>{function Ae(_i,Xi,cs){Li("file.js",_i,99,void 0,1,0),t.setText(_i,Xi,cs),_t=t.scan();let xs=Ue(),Ya=Wt("file.js",99,1,!1,[],w(1),0,Ja),Of=wI(ze,Ya);return tt&&(Ya.jsDocDiagnostics=wI(tt,Ya)),Eo(),xs?{jsDocTypeExpression:xs,diagnostics:Of}:void 0}X.parseJSDocTypeExpressionForTests=Ae;function Ue(_i){let Xi=k(),cs=(_i?mo:xn)(19),xs=za(16777216,Nm);(!_i||cs)&&_l(20);let Ya=m.createJSDocTypeExpression(xs);return Ye(Ya),tn(Ya,Xi)}X.parseJSDocTypeExpression=Ue;function St(){let _i=k(),Xi=mo(19),cs=k(),xs=Z(!1);for(;H()===81;)gi(),It(),xs=tn(m.createJSDocMemberName(xs,Cs()),cs);Xi&&_l(20);let Ya=m.createJSDocNameReference(xs);return Ye(Ya),tn(Ya,_i)}X.parseJSDocNameReference=St;function xt(_i,Xi,cs){Li("",_i,99,void 0,1,0);let xs=za(16777216,()=>Ci(Xi,cs)),Of=wI(ze,{languageVariant:0,text:_i});return Eo(),xs?{jsDoc:xs,diagnostics:Of}:void 0}X.parseIsolatedJSDocComment=xt;function Ut(_i,Xi,cs){let xs=_t,Ya=ze.length,Of=Yt,K_=za(16777216,()=>Ci(Xi,cs));return Va(K_,_i),Kn&524288&&(tt||(tt=[]),Hr(tt,ze,Ya)),_t=xs,ze.length=Ya,Yt=Of,K_}X.parseJSDocComment=Ut;let Or;(_i=>{_i[_i.BeginningOfLine=0]="BeginningOfLine",_i[_i.SawAsterisk=1]="SawAsterisk",_i[_i.SavingComments=2]="SavingComments",_i[_i.SavingBackticks=3]="SavingBackticks"})(Or||(Or={}));let Wi;(_i=>{_i[_i.Property=1]="Property",_i[_i.Parameter=2]="Parameter",_i[_i.CallbackParameter=4]="CallbackParameter"})(Wi||(Wi={}));function Ci(_i=0,Xi){let cs=De,xs=Xi===void 0?cs.length:_i+Xi;if(Xi=xs-_i,R.assert(_i>=0),R.assert(_i<=xs),R.assert(xs<=cs.length),!RH(cs,_i))return;let Ya,Of,K_,yg,ry,iy=[],Ab=[],op=en;en|=1<<25;let PA=t.scanRange(_i+3,Xi-5,eC);return en=op,PA;function eC(){let Rn=1,Wr,Nr=_i-(cs.lastIndexOf(` -`,_i)+1)+4;function Fi(Ts){Wr||(Wr=Nr),iy.push(Ts),Nr+=Ts.length}for(It();sv(5););sv(4)&&(Rn=0,Nr=0);e:for(;;){switch(H()){case 60:CM(iy),ry||(ry=k()),PM(tC(Nr)),Rn=0,Wr=void 0;break;case 4:iy.push(t.getTokenText()),Rn=0,Nr=0;break;case 42:let Ts=t.getTokenText();Rn===1?(Rn=2,Fi(Ts)):(R.assert(Rn===0),Rn=1,Nr+=Ts.length);break;case 5:R.assert(Rn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Zd=t.getTokenText();Wr!==void 0&&Nr+Zd.length>Wr&&iy.push(Zd.slice(Wr-Nr)),Nr+=Zd.length;break;case 1:break e;case 82:Rn=2,Fi(t.getTokenValue());break;case 19:Rn=2;let kh=t.getTokenFullStart(),Rp=t.getTokenEnd()-1,s_=lc(Rp);if(s_){yg||DM(iy),Ab.push(tn(m.createJSDocText(iy.join("")),yg??_i,kh)),Ab.push(s_),iy=[],yg=t.getTokenEnd();break}default:Rn=2,Fi(t.getTokenText());break}Rn===2?Dt(!1):It()}let Mi=iy.join("").trimEnd();Ab.length&&Mi.length&&Ab.push(tn(m.createJSDocText(Mi),yg??_i,ry)),Ab.length&&Ya&&R.assertIsDefined(ry,"having parsed tags implies that the end of the comment span should be set");let ts=Ya&&Mo(Ya,Of,K_);return tn(m.createJSDocComment(Ab.length?Mo(Ab,_i,ry):Mi.length?Mi:void 0,ts),_i,xs)}function DM(Rn){for(;Rn.length&&(Rn[0]===` -`||Rn[0]==="\r");)Rn.shift()}function CM(Rn){for(;Rn.length;){let Wr=Rn[Rn.length-1].trimEnd();if(Wr==="")Rn.pop();else if(Wr.lengthZd&&(Fi.push(ay.slice(Zd-Rn)),Ts=2),Rn+=ay.length;break;case 19:Ts=2;let Dp=t.getTokenFullStart(),iC=t.getTokenEnd()-1,p8=lc(iC);p8?(Mi.push(tn(m.createJSDocText(Fi.join("")),ts??Nr,Dp)),Mi.push(p8),Fi=[],ts=t.getTokenEnd()):kh(t.getTokenText());break;case 62:Ts===3?Ts=2:Ts=3,kh(t.getTokenText());break;case 82:Ts!==3&&(Ts=2),kh(t.getTokenValue());break;case 42:if(Ts===0){Ts=1,Rn+=1;break}default:Ts!==3&&(Ts=2),kh(t.getTokenText());break}Ts===2||Ts===3?Rp=Dt(Ts===3):Rp=It()}DM(Fi);let s_=Fi.join("").trimEnd();if(Mi.length)return s_.length&&Mi.push(tn(m.createJSDocText(s_),ts??Nr)),Mo(Mi,Nr,t.getTokenEnd());if(s_.length)return s_}function lc(Rn){let Wr=Ri(rx);if(!Wr)return;It(),oy();let Nr=$E(),Fi=[];for(;H()!==20&&H()!==4&&H()!==1;)Fi.push(t.getTokenText()),It();let Mi=Wr==="link"?m.createJSDocLink:Wr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return tn(Mi(Nr,Fi.join("")),Rn,t.getTokenEnd())}function $E(){if(ou(H())){let Rn=k(),Wr=Ac();for(;mo(25);)Wr=tn(m.createQualifiedName(Wr,H()===81?Gs(80,!1):Cs()),Rn);for(;H()===81;)gi(),It(),Wr=tn(m.createJSDocMemberName(Wr,Cs()),Rn);return Wr}}function rx(){if(Ib(),H()===19&&It()===60&&ou(It())){let Rn=t.getTokenValue();if(NM(Rn))return Rn}}function NM(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function xb(Rn,Wr,Nr,Fi){return tn(m.createJSDocUnknownTag(Wr,jp(Rn,k(),Nr,Fi)),Rn)}function PM(Rn){Rn&&(Ya?Ya.push(Rn):(Ya=[Rn],Of=Rn.pos),K_=Rn.end)}function tr(){return Ib(),H()===19?Ue():void 0}function v(){let Rn=sv(23);Rn&&oy();let Wr=sv(62),Nr=rC();return Wr&&Ca(62),Rn&&(oy(),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,Wr,Nr,Fi){let Mi=tr(),ts=!Mi;Ib();let{name:Ts,isBracketed:Zd}=v(),kh=Ib();ts&&!Pi(rx)&&(Mi=tr());let Rp=jp(Rn,k(),Fi,kh),s_=le(Mi,Ts,Nr,Fi);s_&&(Mi=s_,ts=!0);let ay=Nr===1?m.createJSDocPropertyTag(Wr,Ts,Zd,Mi,ts,Rp):m.createJSDocParameterTag(Wr,Ts,Zd,Mi,ts,Rp);return tn(ay,Rn)}function le(Rn,Wr,Nr,Fi){if(Rn&&C(Rn.type)){let Mi=k(),ts,Ts;for(;ts=Ri(()=>JB(Nr,Fi,Wr));)ts.kind===348||ts.kind===355?Ts=Tn(Ts,ts):ts.kind===352&&Me(ts.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ts){let Zd=tn(m.createJSDocTypeLiteral(Ts,Rn.type.kind===188),Mi);return tn(m.createJSDocTypeExpression(Zd),Mi)}}}function Ke(Rn,Wr,Nr,Fi){gt(Ya,H4)&&U(Wr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Wr.escapedText));let Mi=tr();return tn(m.createJSDocReturnTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function Ht(Rn,Wr,Nr,Fi){gt(Ya,gP)&&U(Wr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Wr.escapedText));let Mi=Ue(!0),ts=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocTypeTag(Wr,Mi,ts),Rn)}function hr(Rn,Wr,Nr,Fi){let ts=H()===23||Pi(()=>It()===60&&ou(It())&&NM(t.getTokenValue()))?void 0:St(),Ts=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSeeTag(Wr,ts,Ts),Rn)}function eo(Rn,Wr,Nr,Fi){let Mi=tr(),ts=jp(Rn,k(),Nr,Fi);return tn(m.createJSDocThrowsTag(Wr,Mi,ts),Rn)}function Us(Rn,Wr,Nr,Fi){let Mi=k(),ts=a_(),Ts=t.getTokenFullStart(),Zd=jp(Rn,Ts,Nr,Fi);Zd||(Ts=t.getTokenFullStart());let kh=typeof Zd!="string"?Mo(bo([tn(ts,Mi,Ts)],Zd),Mi):ts.text+Zd;return tn(m.createJSDocAuthorTag(Wr,kh),Rn)}function a_(){let Rn=[],Wr=!1,Nr=t.getToken();for(;Nr!==1&&Nr!==4;){if(Nr===30)Wr=!0;else{if(Nr===60&&!Wr)break;if(Nr===32&&Wr){Rn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Rn.push(t.getTokenText()),Nr=It()}return m.createJSDocText(Rn.join(""))}function Rb(Rn,Wr,Nr,Fi){let Mi=sZ();return tn(m.createJSDocImplementsTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function Om(Rn,Wr,Nr,Fi){let Mi=sZ();return tn(m.createJSDocAugmentsTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function QE(Rn,Wr,Nr,Fi){let Mi=Ue(!1),ts=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSatisfiesTag(Wr,Mi,ts),Rn)}function sZ(){let Rn=mo(19),Wr=k(),Nr=Uhe();t.setInJSDocType(!0);let Fi=qE();t.setInJSDocType(!1);let Mi=m.createExpressionWithTypeArguments(Nr,Fi),ts=tn(Mi,Wr);return Rn&&xn(20),ts}function Uhe(){let Rn=k(),Wr=e0();for(;mo(25);){let Nr=e0();Wr=tn(Y(Wr,Nr),Rn)}return Wr}function ZE(Rn,Wr,Nr,Fi,Mi){return tn(Wr(Nr,jp(Rn,k(),Fi,Mi)),Rn)}function HB(Rn,Wr,Nr,Fi){let Mi=Ue(!0);return oy(),tn(m.createJSDocThisTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function lZ(Rn,Wr,Nr,Fi){let Mi=Ue(!0);return oy(),tn(m.createJSDocEnumTag(Wr,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function MM(Rn,Wr,Nr,Fi){let Mi=tr();Ib();let ts=KB();oy();let Ts=Ba(Nr),Zd;if(!Mi||C(Mi.type)){let Rp,s_,ay,Dp=!1;for(;(Rp=Ri(()=>uZ(Nr)))&&Rp.kind!==352;)if(Dp=!0,Rp.kind===351)if(s_){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 s_=Rp;else ay=Tn(ay,Rp);if(Dp){let iC=Mi&&Mi.type.kind===188,p8=m.createJSDocTypeLiteral(ay,iC);Mi=s_&&s_.typeExpression&&!C(s_.typeExpression.type)?s_.typeExpression:tn(p8,Rn),Zd=Mi.end}}Zd=Zd||Ts!==void 0?k():(ts??Mi??Wr).end,Ts||(Ts=jp(Rn,Zd,Nr,Fi));let kh=m.createJSDocTypedefTag(Wr,Mi,ts,Ts);return tn(kh,Rn,Zd)}function KB(Rn){let Wr=t.getTokenStart();if(!ou(H()))return;let Nr=e0();if(mo(25)){let Fi=KB(!0),Mi=m.createModuleDeclaration(void 0,Nr,Fi,Rn?8:void 0);return tn(Mi,Wr)}return Rn&&(Nr.flags|=4096),Nr}function cZ(Rn){let Wr=k(),Nr,Fi;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}Fi=Tn(Fi,Nr)}return Mo(Fi||[],Wr)}function dZ(Rn,Wr){let Nr=cZ(Wr),Fi=Ri(()=>{if(sv(60)){let Mi=tC(Wr);if(Mi&&Mi.kind===349)return Mi}});return tn(m.createJSDocSignature(void 0,Nr,Fi),Rn)}function Hhe(Rn,Wr,Nr,Fi){let Mi=KB();oy();let ts=Ba(Nr),Ts=dZ(Rn,Nr);ts||(ts=jp(Rn,k(),Nr,Fi));let Zd=ts!==void 0?k():Ts.end;return tn(m.createJSDocCallbackTag(Wr,Ts,Mi,ts),Rn,Zd)}function Khe(Rn,Wr,Nr,Fi){oy();let Mi=Ba(Nr),ts=dZ(Rn,Nr);Mi||(Mi=jp(Rn,k(),Nr,Fi));let Ts=Mi!==void 0?k():ts.end;return tn(m.createJSDocOverloadTag(Wr,ts,Mi),Rn,Ts)}function nC(Rn,Wr){for(;!Fe(Rn)||!Fe(Wr);)if(!Fe(Rn)&&!Fe(Wr)&&Rn.right.escapedText===Wr.right.escapedText)Rn=Rn.left,Wr=Wr.left;else return!1;return Rn.escapedText===Wr.escapedText}function uZ(Rn){return JB(1,Rn)}function JB(Rn,Wr,Nr){let Fi=!0,Mi=!1;for(;;)switch(It()){case 60:if(Fi){let ts=PS(Rn,Wr);return ts&&(ts.kind===348||ts.kind===355)&&Nr&&(Fe(ts.name)||!nC(Nr,ts.name.left))?!1:ts}Mi=!1;break;case 4:Fi=!0,Mi=!1;break;case 42:Mi&&(Fi=!1),Mi=!0;break;case 80:Fi=!1;break;case 1:return!1}}function PS(Rn,Wr){R.assert(H()===60);let Nr=t.getTokenFullStart();It();let Fi=e0(),Mi=Ib(),ts;switch(Fi.escapedText){case"type":return Rn===1&&Ht(Nr,Fi);case"prop":case"property":ts=1;break;case"arg":case"argument":case"param":ts=6;break;case"template":return Cb(Nr,Fi,Wr,Mi);case"this":return HB(Nr,Fi,Wr,Mi);default:return!1}return Rn&ts?F(Nr,Fi,Rn,Wr):!1}function sr(){let Rn=k(),Wr=sv(23);Wr&&oy();let Nr=Nh(!1,!0),Fi=e0(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Mi;if(Wr&&(oy(),xn(64),Mi=za(16777216,Nm),xn(24)),!Fl(Fi))return tn(m.createTypeParameterDeclaration(Nr,Fi,void 0,Mi),Rn)}function Db(){let Rn=k(),Wr=[];do{oy();let Nr=sr();Nr!==void 0&&Wr.push(Nr),Ib()}while(sv(28));return Mo(Wr,Rn)}function Cb(Rn,Wr,Nr,Fi){let Mi=H()===19?Ue():void 0,ts=Db();return tn(m.createJSDocTemplateTag(Wr,Mi,ts,jp(Rn,k(),Nr,Fi)),Rn)}function sv(Rn){return H()===Rn?(It(),!0):!1}function rC(){let Rn=e0();for(mo(23)&&xn(24);mo(25);){let Wr=e0();mo(23)&&xn(24),Rn=rt(Rn,Wr)}return Rn}function e0(Rn){if(!ou(H()))return Gs(80,!Rn,Rn||f.Identifier_expected);Zt++;let Wr=t.getTokenStart(),Nr=t.getTokenEnd(),Fi=H(),Mi=ed(t.getTokenValue()),ts=tn(N(Mi,Fi),Wr,Nr);return It(),ts}}})(H_=e.JSDocParser||(e.JSDocParser={}))})(SE||(SE={})),(e=>{function t(S,A,N,D){if(D=D||R.shouldAssert(2),m(S,A,N,D),Kne(N))return S;if(S.statements.length===0)return SE.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let w=S;R.assert(!w.hasBeenIncrementallyParsed),w.hasBeenIncrementallyParsed=!0,SE.fixupParentReferences(w);let j=S.text,K=y(S),Y=p(S,N);m(S,A,Y,D),R.assert(Y.span.start<=N.span.start),R.assert(Jl(Y.span)===Jl(N.span)),R.assert(Jl(ZC(Y))===Jl(ZC(N)));let B=ZC(Y).length-Y.span.length;d(w,Y.span.start,Jl(Y.span),Jl(ZC(Y)),B,j,A,D);let ce=SE.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 ee of S){let{range:me,type:ge}=ee;if(me.endD){z();let q={range:{pos:me.pos+w,end:me.end+w},type:ge};B=Tn(B,q),Y&&R.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),mh(B,B.pos+N,B.end+N),j&&o(B)&&R.assert(ce===w.substring(B.pos,B.end)),Bo(B,K,Y),kp(B))for(let z of B.jsDoc)K(z);l(B,j)}function Y(B){B._children=void 0,mh(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){R.assert(S.end>=A,"Adjusting an element that was entirely before the change range"),R.assert(S.pos<=N,"Adjusting an element that was entirely after the change range"),R.assert(S.pos<=S.end);let j=Math.min(S.pos,D),K=S.end>=N?S.end+w:Math.min(S.end,D);R.assert(j<=K),S.parent&&(R.assertGreaterThanOrEqual(j,S.parent.pos),R.assertLessThanOrEqual(K,S.parent.end)),mh(S,j,K)}function l(S,A){if(A){let N=S.pos,D=w=>{R.assert(w.pos>=N),N=w.end};if(kp(S))for(let w of S.jsDoc)D(w);Bo(S,D),R.assert(N<=S.end)}}function d(S,A,N,D,w,j,K,Y){B(S);return;function B(z){if(R.assert(z.pos<=z.end),z.pos>N){i(z,!1,w,j,K,Y);return}let ee=z.end;if(ee>=A){if(z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w),Bo(z,B,ce),kp(z))for(let me of z.jsDoc)B(me);l(z,Y);return}R.assert(eeN){i(z,!0,w,j,K,Y);return}let ee=z.end;if(ee>=A){z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w);for(let me of z)B(me);return}R.assert(ee0&&K<=1;K++){let Y=h(S,D);R.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 XL(w,j)}function h(S,A){let N=S,D;if(Bo(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&&(R.assert(w.length-N.span.length+N.newLength===A.length),D||R.shouldAssert(3))){let j=w.substr(0,N.span.start),K=A.substr(0,N.span.start);R.assert(j===K);let Y=w.substring(Jl(N.span),w.length),B=A.substring(Jl(ZC(N)),A.length);R.assert(Y===B)}}function y(S){let A=S.statements,N=0;R.assert(N=ce.pos&&K=ce.pos&&K{S[S.Value=-1]="Value"})(E||(E={}))})(LH||(LH={})),kH=new Map,BTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,GTe=/^\/\/\/?\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 IAe||(IAe=r3(ag))}function Zae(e){return VTe(e,jl)}function VTe(e,t){let r=Oo(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 bAe(e,(t??"").trim(),r)}function ese(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 R.fail(`List of ${e.element.type} is not yet supported.`);default:return to(i,o=>i3(e.element,o,r))}}function jTe(e){return e.name}function tse(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return TE(o,i,t.alternateMode.diagnostic,e);let l=VC(e,t.optionDeclarations,jTe);return l?TE(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):TE(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(;m_d.readFile(S)));if(!Co(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 UTe(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=ese(i,e[t],s);o[i.name]=d||[],d&&t++;break;case"listOrElement":R.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 HTe(e,t){return wH(cw,e,t)}function OH(e,t){return nse(VR,e,t)}function nse(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 KTe(){return RAe||(RAe=r3(p3))}function JTe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=wH(CAe,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 qTe(e,...t){return ta(jl(e,...t).messageText,Co)}function Zk(e,t,r,i,o,s){let l=SP(e,h=>r.readFile(h));if(!Co(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=Qk(e,l),p=r.getCurrentDirectory();return d.path=nl(e,p,Cd(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,nw(d,r,_o(ai(e),p),t,_o(e,p),void 0,s,i,o)}function ew(e,t){let r=SP(e,t);return Co(r)?WH(e,r):{config:{},error:r}}function WH(e,t){let r=Qk(e,t);return{config:ZTe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function rse(e,t){let r=SP(e,t);return Co(r)?Qk(e,r):{fileName:e,parseDiagnostics:[r]}}function SP(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 h0(e,jTe)}function XTe(){return NAe||(NAe=r3(jR))}function YTe(){return PAe||(PAe=FH(ag))}function $Te(){return MAe||(MAe=FH(jR))}function QTe(){return LAe||(LAe=FH(lw))}function L5e(){return yse===void 0&&(yse={name:void 0,type:"object",elementOptions:FH([_se,hse,gse,dw,{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},iw])}),yse}function ZTe(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")),fu(o)){let s=Vr(o.elements,Ma);if(s)return tw(e,s,t,!0,r)}return{}}return tw(e,o,t,!0,r)}function ise(e,t){var r;return tw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function tw(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=g2(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":Co(e.type)?e.type:"string"}function eAe(e,t){if(e){if(rw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return So(t);if(e.type==="listOrElement")return So(t)||eAe(e.element,t);let r=Co(e.type)?e.type:"string";return typeof t===r}return!1}function tAe(e,t,r){var i,o,s;let l=Cd(r.useCaseSensitiveFileNames),d=mn(jr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?w5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ay),A=>FL(_o(t,r.getCurrentDirectory()),_o(A,r.getCurrentDirectory()),l)),p={configFilePath:_o(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=a3(e.options,p),m=e.watchOptions&&O5e(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:k5e(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{...Oo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function k5e(e){if(Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==_3)return e}}function w5e(e,t,r,i){if(!t)return Ay;let o=M6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Bv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&Bv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ay}function nAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return nAe(e.element);default:return e.type}}function BH(e,t){return zc(t,(r,i)=>{if(r===e)return i})}function a3(e,t){return rAe(e,VR(),t)}function O5e(e){return rAe(e,XTe())}function rAe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Cd(r.useCaseSensitiveFileNames);for(let s in e)if(As(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){R.assert(d.type!=="listOrElement");let p=nAe(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,FL(r.configFilePath,_o(l,ai(r.configFilePath)),o)):i.set(s,l)}}return i}function iAe(e,t){let r=oAe(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=use(d);p!==h?s.push(`${l}${d.name}: ${p}`):As(f3,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function oAe(e){let t=gW(e,f3);return a3(t)}function aAe(e,t,r){let i=oAe(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 ag)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:`/* ${ko(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(use(N))},`,m.push({value:D,description:`/* ${N.description&&ko(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}/* ${ko(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=ee==="no-prop"||So(ee)&&ee.length===0,ne=As(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=S2(t,"files",Ie=>Ie.initializer),ve=TE(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=AAe(ge,m,!0,t,"include")),re&&(xe=AAe(re,m,!1,t,"exclude")),{filesSpecs:me,includeSpecs:ge,excludeSpecs:re,validatedFilesSpec:jr(me,Co),validatedIncludeSpecs:pe,validatedExcludeSpecs:xe,pathPatterns:void 0,isDefaultIncludeSpec:J}}function j(ee){let me=AP(N,ee,S,r,p);return uAe(me,TP(E),d)&&m.push(dAe(N,l)),me}function K(ee){let me,ge=ce("references",q=>typeof q=="object","object");if(So(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:_o(q.path,ee),originalPath:q.path,prepend:q.prepend,circular:q.circular});return me}function Y(ee){return So(ee)?ee:void 0}function B(ee){return ce(ee,Co,"string")}function ce(ee,me,ge){if(As(E,ee)&&!rw(E[ee]))if(So(E[ee])){let q=E[ee];return!t&&!oo(q,me)&&m.push(jl(f.Compiler_option_0_requires_a_value_of_type_1,ee,ge)),q}else return z(f.Compiler_option_0_requires_a_value_of_type_1,ee,"Array"),"not-array";return"no-prop"}function z(ee,...me){t||m.push(jl(ee,...me))}}function F5e(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 dAe({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 uAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TP(e){return!As(e,"files")&&!As(e,"references")}function s3(e,t,r,i,o){let s=i.length;return uAe(e,o)?i.push(dAe(r,t)):CG(i,l=>!F5e(l)),s!==i.length}function z5e(e){return!!e.options}function pAe(e,t,r,i,o,s,l,d){var p;i=Nd(i);let h=_o(o||"",i);if(s.includes(h))return l.push(jl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||ise(t,l)};let m=e?B5e(e,r,i,o,l):G5e(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:{}};Co(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=Oo(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=V5e(t,S,r,s,l,d,E);if(A&&z5e(A)){let N=A.raw,D,w=j=>{N[j]&&(E[j]=mn(N[j],K=>cp(K)?K:Yr(D||(D=qC(ai(S),i,Cd(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 B5e(e,t,r,i,o){As(e,"excludes")&&o.push(jl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=yAe(e.compilerOptions,r,o,i),l=vAe(e.typeAcquisition,r,o,i),d=U5e(e.watchOptions,r,o);e.compileOnSave=j5e(e,r,o);let p=e.extends||e.extends===""?fAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function fAe(e,t,r,i,o,s,l,d){let p,h=i?lAe(i,r):r;if(Co(e))p=mAe(e,t,h,o,l,d);else if(So(e)){p=[];for(let m=0;mj.name===S)&&(h=Tn(h,N.name))))}}function mAe(e,t,r,i,o,s){if(e=Nd(e),cp(e)||ao(e,"./")||ao(e,"../")){let d=_o(e,r);if(!t.fileExists(d)&&!El(d,".json")&&(d=`${d}.json`,!t.fileExists(d))){i.push(TE(s,o,f.File_0_not_found,e));return}return d}let l=Dse(e,Yr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(TE(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(TE(s,o,f.File_0_not_found,e))}function V5e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:oh(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=rse(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=pAe(void 0,h,r,ai(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 j5e(e,t,r){if(!As(e,iw.name))return!1;let i=VT(iw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function _Ae(e,t,r){let i=[];return{options:yAe(e,t,i,r),errors:i}}function hAe(e,t,r){let i=[];return{options:vAe(e,t,i,r),errors:i}}function gAe(e){return e&&nc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function yAe(e,t,r,i){let o=gAe(i);return ose(YTe(),e,t,o,cw,r),i&&(o.configFilePath=Nd(i)),o}function jH(e){return{enable:!!e&&nc(e)==="jsconfig.json",include:[],exclude:[]}}function vAe(e,t,r,i){let o=jH(i);return ose(QTe(),e,t,o,mse,r),o}function U5e(e,t,r){return ose($Te(),e,t,void 0,m3,r)}function ose(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(tse(l,o))}return i}}function TE(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(TE(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(eAe(e,t)){let d=e.type;if(d==="list"&&So(t))return EAe(e,t,r,i,o,s,l);if(d==="listOrElement")return So(t)?EAe(e,t,r,i,o,s,l):VT(e.element,t,r,i,o,s,l);if(!Co(e.type))return bAe(e,t,i,s,l);let p=c1(e,t,i,s,l);return rw(p)?p:H5e(e,r,p)}else i.push(TE(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,zH(e)))}function H5e(e,t,r){return e.isFilePath&&(r=_o(r,t),r===""&&(r=".")),r}function c1(e,t,r,i,o){var s;if(rw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(TE(o,i,...l))}function bAe(e,t,r,i,o){if(rw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return c1(e,l,r,i,o);r.push(VTe(e,(d,...p)=>TE(o,i,d,...p)))}function EAe(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 AP(e,t,r,i,o=Xe){t=ma(t);let s=Cd(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,E=GN(r,o),S=sk(r,E);if(h)for(let w of h){let j=_o(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=>Bv(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(q5e(w,l,d,E,s))continue;X5e(w,d,E,s);let j=s(w);!l.has(j)&&!d.has(j)&&d.set(j,w)}let N=Oo(l.values()),D=Oo(d.values());return N.concat(D,Oo(p.values()))}function ase(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=Cd(i);if(s){for(let h of s)if(p(_o(h,r))===e)return!1}return TAe(e,d,i,o,r)}function SAe(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 TAe(e,jr(t,o=>!SAe(o)),r,i)}function TAe(e,t,r,i,o){let s=BN(t,Yr(ma(i),o),"exclude"),l=s&&Bv(s,r);return l?l.test(e)?!0:!mI(e)&&l.test(Fc(e)):!1}function AAe(e,t,r,i,o){return e.filter(l=>{if(!Co(l))return!1;let d=sse(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=wF(i,o,d);return TE(i,p,l,d)}}function sse(e,t){if(R.assert(typeof e=="string"),t&&kAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(SAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function K5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BN(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=J5e(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(fE(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 X5e(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(fE(e,l));t.delete(d)}}function cse(e){let t={};for(let r in e)if(As(e,r)){let i=OH(r);i!==void 0&&(t[r]=dse(e[r],i))}return t}function dse(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(!So(e))return dse(e,t.element);case"list":let r=t.element;return So(e)?to(e,i=>dse(i,r)):"";default:return zc(t.type,(i,o)=>{if(i===e)return o})}}function use(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 use(e.element);case"object":return{};default:let r=mW(e.type.keys());return r!==void 0?r:R.fail("Expected 'option.type' to have entries.")}}var iw,pse,IP,fse,ow,c3,jR,aw,sw,UH,HH,ag,KH,JH,qH,d3,u3,XH,YH,$H,p3,lw,IAe,xAe,f3,cw,RAe,DAe,CAe,mse,NAe,m3,PAe,MAe,LAe,dw,_se,hse,gse,yse,_3,kAe,wAe,Y5e=bt({"src/compiler/commandLineParser.ts"(){"use strict";Qo(),iw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},pse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),IP=new Map(wC(pse.entries(),([e,t])=>[""+t,e])),fse=[["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"]],ow=fse.map(e=>e[0]),c3=new Map(fse),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:sse},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:sse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],aw=[{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}],sw={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},sw,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:pse,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}],ag=[...aw,...HH],KH=ag.filter(e=>!!e.affectsSemanticDiagnostics),JH=ag.filter(e=>!!e.affectsEmit),qH=ag.filter(e=>!!e.affectsDeclarationPath),d3=ag.filter(e=>!!e.affectsModuleResolution),u3=ag.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),XH=ag.filter(e=>!!e.affectsProgramStructure),YH=ag.filter(e=>As(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=[...aw,...$H],lw=[{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}],xAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:KTe},f3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},cw={alternateMode:xAe,getOptionsNameMap:VR,optionDeclarations:ag,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},DAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:VR},CAe={alternateMode:DAe,getOptionsNameMap:KTe,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},mse={optionDeclarations:lw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},m3={getOptionsNameMap:XTe,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},dw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},_se={name:"compilerOptions",type:"object",elementOptions:YTe(),extraKeyDiagnostics:cw},hse={name:"watchOptions",type:"object",elementOptions:$Te(),extraKeyDiagnostics:m3},gse={name:"typeAcquisition",type:"object",elementOptions:QTe(),extraKeyDiagnostics:mse},_3="**/*",kAe=/(^|\/)\*\*\/?$/,wAe=/^[^*?]*(?=\/[^/]*[*?])/}});function yo(e,t,...r){e.trace(nU(t,...r))}function Bg(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+rl.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 OAe(e){if(e)return R.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 $5e(e){let t=[];return e&1&&t.push(...vk),e&2&&t.push(...AR),e&4&&t.push(...yk),e&8&&t.push(".json"),t}function vse(e){if(e)return R.assert(O6(e.extension)),{fileName:e.path,packageId:e.packageId}}function WAe(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!qc(e)){let{resolvedFileName:h,originalPath:m}=BAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return FAe(t,r,i,o,s,l.resultFromCache,d,p)}function FAe(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:bse(s.failedLookupLocations,r),affectingLocations:bse(s.affectingLocations,i),resolutionDiagnostics:bse(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:xP(r),affectingLocations:xP(i),resolutionDiagnostics:xP(o),alternateResult:d}}function xP(e){return e.length?e:void 0}function UR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function bse(e,t){return e?.length?t.length?[...e,...t]:e.slice():xP(t)}function zAe(e,t,r,i){if(!As(e,t)){i.traceEnabled&&yo(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&&yo(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=zAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&yo(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=ma(Yr(r,o));return i.traceEnabled&&yo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function Q5e(e,t,r){return ZH(e,"typings",t,r)||ZH(e,"types",t,r)}function Z5e(e,t,r){return ZH(e,"tsconfig",t,r)}function eGe(e,t,r){return ZH(e,"main",t,r)}function tGe(e,t){let r=zAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&yo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function nGe(e,t){let r=tGe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)As(r,l)&&!RL.tryParse(l)&&yo(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&&yo(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&&yo(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){kse||(kse=new fm(qp));for(let t in e){if(!As(e,t))continue;let r=RL.tryParse(t);if(r!==void 0&&r.test(kse))return{version:t,paths:e[t]}}}function RP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ai(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return rGe(r)}function rGe(e){let t;return hm(ma(e),r=>{let i=Yr(r,lIe);(t??(t=[])).push(i)}),t}function iGe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return xg(e,t,!i)===0}function BAe(e,t,r){let i=hGe(e,t,r),o=iGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function GAe(e,t,r){let i=El(e,"/node_modules/@types")||El(e,"/node_modules/@types/")?oIe(t,r):t;return Yr(e,i)}function Ese(e,t,r,i,o,s,l){R.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=Bg(r,i);o&&(r=o.commandLine.options);let p=t?ai(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!qc(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(yo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),yo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),B(h)),h;let m=RP(r,i);d&&(t===void 0?m===void 0?yo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):yo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?yo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):yo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let y=[],E=[],S=Sse(r);l!==void 0&&(S|=30);let A=pu(r);l===99&&3<=A&&A<=99&&(S|=32);let N=S&8?Qv(r,l):[],D=[],w={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:N,requestContainingDirectory:p,reportDiagnostic:ee=>void D.push(ee),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},j=ce(),K=!0;j||(j=z(),K=!1);let Y;if(j){let{fileName:ee,packageId:me}=j,ge=ee,q;r.preserveSymlinks||({resolvedFileName:ge,originalPath:q}=BAe(ee,i,d)),Y={primary:K,resolvedFileName:ge,originalPath:q,packageId:me,isExternalLibraryImport:AE(ee)}}return h={resolvedTypeReferenceDirective:Y,failedLookupLocations:xP(y),affectingLocations:xP(E),resolutionDiagnostics:xP(D)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),qc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&B(h),h;function B(ee){var me;(me=ee.resolvedTypeReferenceDirective)!=null&&me.resolvedFileName?ee.resolvedTypeReferenceDirective.packageId?yo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ee.resolvedTypeReferenceDirective.resolvedFileName,kv(ee.resolvedTypeReferenceDirective.packageId),ee.resolvedTypeReferenceDirective.primary):yo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ee.resolvedTypeReferenceDirective.resolvedFileName,ee.resolvedTypeReferenceDirective.primary):yo(i,f.Type_reference_directive_0_was_not_resolved,e)}function ce(){if(m&&m.length)return d&&yo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),Wl(m,ee=>{let me=GAe(ee,e,w),ge=Hm(ee,i);if(!ge&&d&&yo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ee),r.typeRoots){let q=JR(4,me,!ge,w);if(q){let J=pw(q.path),re=J?Z0(J,!1,w):void 0;return vse(d1(re,q))}}return vse(Nse(4,me,!ge,w))});d&&yo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function z(){let ee=t&&ai(t);if(ee!==void 0){let me;if(!r.typeRoots||!El(t,tD))if(d&&yo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ee),qc(e)){let{path:ge}=JAe(ee,e);me=iK(4,ge,!1,w,!0)}else{let ge=tIe(4,e,ee,w,void 0,void 0);me=ge&&ge.value}else d&&yo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return vse(me)}else d&&yo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Sse(e){let t=0;switch(pu(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 Qv(e,t){let r=pu(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"),bo(i,e.customConditions)}function eK(e,t,r,i,o){let s=fw(o?.getPackageJsonInfoCache(),i,r);return hm(t,l=>{if(nc(l)!=="node_modules"){let d=Yr(l,"node_modules"),p=Yr(d,e);return Z0(p,!1,s)}})}function y3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RP(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)&&kN(d,t).typings===null)){let h=nc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function v3(e){return!!e?.contents}function Tse(e){return!!e&&!e.contents}function Ase(e){var t;if(e===null||typeof e!="object")return""+e;if(So(e))return`[${(t=e.map(i=>Ase(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)As(e,i)&&(r+=`${i}: ${Ase(e[i])}`);return r+"}"}function tK(e,t){return t.map(r=>Ase(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 oGe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(nl(d,e,t))}function o(d,p){(r||(r=new Map)).set(nl(d,e,t),p)}function s(){r=void 0}function l(){return r}}function VAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function aGe(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=nl(h,e,t);return VAe(o,m,y,()=>u1())}function p(h,m,y,E){var S,A;let N=nl(y,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(N))==null?void 0:A.get(h,m)}}function DP(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=DP(o,s);return t.set(l,[o,s]),l}}function sGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function lGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function cGe(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 R.assert(!qc(y)),(D=(N=s.getMapOfCacheRedirects(A))==null?void 0:N.get(DP(y,E)))==null?void 0:D.get(S)}function h(y,E,S){return R.assert(!qc(y)),VAe(s,S,DP(y,E),m)}function m(){let y=new Map;return{get:E,set:S};function E(N){return y.get(nl(N,e,t))}function S(N,D){let w=nl(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=ai(Y);if(B===Y||y.has(B))break;y.set(B,D),Y=B}}function A(N,D){let w=nl(ai(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=jAe(e,t,r,i,sGe,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function b3(e,t,r,i,o){return jAe(e,t,r,i,lGe,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 UAe(e,t,r,i){let o=ai(t);return r.getFromDirectoryCache(e,i,o,void 0)}function KR(e,t,r,i,o,s,l){var d,p,h;let m=Bg(r,i);s&&(r=s.commandLine.options),m&&(yo(i,f.Resolving_module_0_from_1,e,t),s&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let y=ai(t),E=o?.getFromDirectoryCache(e,l,y,s);if(E)m&&yo(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=pu(r),m&&yo(i,f.Module_resolution_kind_is_not_specified_using_0,Dx[S])):m&&yo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Dx[S]),(d=iu)==null||d.logStartResolveModule(e),S){case 3:E=fGe(e,t,r,i,o,s,l);break;case 99:E=mGe(e,t,r,i,o,s,l);break;case 2:E=Rse(e,t,r,i,o,s,l?Qv(r,l):void 0);break;case 1:E=Mse(e,t,r,i,o,s);break;case 100:E=xse(e,t,r,i,o,s,l?Qv(r,l):void 0);break;default:return R.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=iu)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=iu)==null||h.logStopResolveModule(E&&E.resolvedModule?""+E.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,E),qc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?yo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,kv(E.resolvedModule.packageId)):yo(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):yo(i,f.Module_name_0_was_not_resolved,e)),E}function HAe(e,t,r,i,o){let s=dGe(e,t,i,o);return s?s.value:qc(t)?uGe(e,t,r,i,o):pGe(e,t,i,o)}function dGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!Lp(t)){i.traceEnabled&&(s&&yo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),yo(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 Pse(e,t,p,l,h,r,!1,i)}}function uGe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&yo(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,rl)||(h+=rl);let m=ao(s,h)&&(d===void 0||d.lengthvoid K.push(ee),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&OI(j)&&yo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Y.conditions.map(ee=>`'${ee}'`).join(", "));let B;if(j===2){let ee=l&5,me=l&-6;B=ee&&z(ee,Y)||me&&z(me,Y)||void 0}else B=z(l,Y);let ce;if(Y.resolvedPackageDirectory&&!d&&!qc(t)){let ee=B?.value&&l&5&&!QAe(5,B.value.resolved.extension);if((m=B?.value)!=null&&m.isExternalLibraryImport&&ee&&e&8&&h?.includes("import")){Zv(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:Ja},ge=z(l&5,me);(y=ge?.value)!=null&&y.isExternalLibraryImport&&(ce=ge.value.resolved.path)}else if((!B?.value||ee)&&j===2){Zv(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:Qv(me),reportDiagnostic:Ja},q=z(l&5,ge);(E=q?.value)!=null&&E.isExternalLibraryImport&&(ce=q.value.resolved.path)}}return WAe(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(ee,me){let q=HAe(ee,t,r,(J,re,pe,xe)=>iK(J,re,pe,xe,!0),me);if(q)return tf({resolved:q,isExternalLibraryImport:AE(q.path)});if(qc(t)){let{path:J,parts:re}=JAe(r,t),pe=iK(ee,J,!1,me,!0);return pe&&tf({resolved:pe,isExternalLibraryImport:zo(re,"node_modules")})}else{let J;if(e&2&&ao(t,"#")&&(J=bGe(ee,t,r,me,s,p)),!J&&e&4&&(J=vGe(ee,t,r,me,s,p)),!J){if(t.includes(":")){N&&yo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,h3(ee));return}N&&yo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,h3(ee)),J=tIe(ee,t,r,me,s,p)}return ee&4&&(J??(J=sIe(t,me))),J&&{value:J.value&&{resolved:J.value,isExternalLibraryImport:!0}}}}}function JAe(e,t){let r=Yr(e,t),i=Wc(r),o=Qs(i);return{path:o==="."||o===".."?Fc(ma(r)):ma(r),parts:i}}function hGe(e,t,r){if(!t.realpath)return e;let i=ma(t.realpath(e));return r&&yo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function iK(e,t,r,i,o){if(i.traceEnabled&&yo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,h3(e)),!Ry(t)){if(!r){let l=ai(t);Hm(l,i.host)||(i.traceEnabled&&yo(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?pw(s.path):void 0,d=l?Z0(l,!1,i):void 0;return d1(d,s)}}if(r||Hm(t,i.host)||(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Nse(e,t,r,i,o)}function AE(e){return e.includes(Sh)}function pw(e,t){let r=ma(e),i=r.lastIndexOf(Sh);if(i===-1)return;let o=i+Sh.length,s=qAe(r,o,t);return r.charCodeAt(o)===64&&(s=qAe(r,s,t)),r.slice(0,s)}function qAe(e,t,r){let i=e.indexOf(rl,t+1);return i===-1?r?e.length:t:i}function Cse(e,t,r,i){return QH(JR(e,t,r,i))}function JR(e,t,r,i){let o=XAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=YAe(t,e,"",r,i);if(s)return s}}function XAe(e,t,r,i){if(!nc(t).includes("."))return;let s=Tu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&yo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),YAe(s,e,l,r,i)}function oK(e,t,r,i){return e&1&&bc(t,vk)||e&4&&bc(t,yk)?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:XAe(e,t,r,i)}function YAe(e,t,r,i,o){if(!i){let l=ai(e);l&&(i=!Hm(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&&!bd(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 $Ae(e,t,r);let o=Og(e)??"",s=o?ck(e,o):e;return gn(r.compilerOptions.moduleSuffixes,l=>$Ae(s+l+o,t,r))}function $Ae(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&yo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&yo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Nse(e,t,r,i,o=!0){let s=o?Z0(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=Sse(t),p=fw(i?.getPackageJsonInfoCache(),r,t);p.conditions=Qv(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=_0([Qv(t,99),Qv(t,1)],Vm);for(let y of m){let E={...p,failedLookupLocations:[],conditions:y,host:r},S=gGe(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Ig(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function gGe(e,t,r,i){let o;if(So(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,$5e(i),void 0,[Lne(zI(l,"**/*"),".*")]).forEach(h=>{o=Ig(o,{path:h,ext:Cx(h),resolvedUsingTsExtension:void 0})})}else{let h=Wc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;let m=Yr(e.packageDirectory,l),y=_o(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=oK(i,y,!1,r);if(E)return o=Ig(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(jh(l),h=>{if(h==="default"||zo(r.conditions,h)||hw(r.conditions,h))return s(l[h]),!0})}}function fw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Bg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Xe,requestContainingDirectory:void 0,reportDiagnostic:Ja,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function mw(e,t){let r=Wc(e);for(r.pop();r.length>0;){let i=Z0(Av(r),!1,t);if(i)return i;r.pop()}}function S3(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=nGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function Z0(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&&yo(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&&yo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}let S=Hm(e,h);if(S&&h.fileExists(y)){let A=kN(y,h);m&&yo(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&&yo(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=Z5e(o,t,i):l=e&4&&Q5e(o,t,i)||e&7&&eGe(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?!Hm(ai(l),i.host):void 0,h=r||!Hm(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&&yo(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,qp,E);let S=Pse(e,E,t,s.paths,void 0,d,p||h,i);if(S)return OAe(S.value)}let y=l&&OAe(d(e,l,p,i));if(y)return y;if(!(i.features&32))return JR(e,m,h,i)}function QAe(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 _w(e){let t=e.indexOf(rl);return e[0]==="@"&&(t=e.indexOf(rl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function T3(e){return oo(jh(e),t=>ao(t,"."))}function yGe(e){return!gt(jh(e),t=>ao(t,"."))}function vGe(e,t,r,i,o,s){var l,d;let p=_o(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=mw(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;let m=Wc(t),y=Wc(h.contents.packageJsonContent.name);if(!oo(y,(D,w)=>m[w]===D))return;let E=m.slice(y.length),S=Nn(E)?`.${rl}${E.join(rl)}`:".";if(jv(i.compilerOptions)&&!AE(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"&&yGe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:As(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return eIe(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&&yo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0);let l=ZAe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&yo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),tf(void 0)}}function bGe(e,t,r,i,o,s){var l,d;if(t==="#"||ao(t,"#/"))return i.traceEnabled&&yo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),tf(void 0);let p=_o(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=mw(p,i);if(!h)return i.traceEnabled&&yo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),tf(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&yo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),tf(void 0);let m=ZAe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&yo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),tf(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 ZAe(e,t,r,i,o,s,l,d){let p=eIe(e,t,r,i,o,l,d);if(!El(o,rl)&&!o.includes("*")&&As(s,o)){let y=s[o];return p(y,"",!1,o)}let h=ZS(jr(jh(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 eIe(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&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);if(!ao(p,"./")){if(l&&!ao(p,"../")&&!ao(p,"/")&&!cp(p)){let B=m?p.replace(/\*/g,h):p+h;Zv(t,f.Using_0_subpath_1_with_target_2,"imports",y,B),Zv(t,f.Resolving_module_0_from_1,B,s.packageDirectory+"/");let ce=uw(t.features,B,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return tf(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&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0)}let D=(Lp(p)?Wc(p).slice(1):Wc(p)).slice(1);if(D.includes("..")||D.includes(".")||D.includes("node_modules"))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);let w=Yr(s.packageDirectory,p),j=Wc(h);if(j.includes("..")||j.includes(".")||j.includes("node_modules"))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);t.traceEnabled&&yo(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||tf(d1(s,oK(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Nn(p))return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);for(let N of p){let D=d(N,h,m,y);if(D)return D}}else{Zv(t,f.Entering_conditional_exports);for(let N of jh(p))if(N==="default"||t.conditions.includes(N)||hw(t.conditions,N)){Zv(t,f.Matched_0_condition_1,l?"imports":"exports",N);let D=p[N],w=d(D,h,m,y);if(w)return Zv(t,f.Resolved_under_condition_0,N),Zv(t,f.Exiting_conditional_exports),w;Zv(t,f.Failed_to_resolve_under_condition_0,N)}else Zv(t,f.Saw_non_matching_condition_0,N);Zv(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&yo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),tf(void 0);return t.traceEnabled&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),tf(void 0);function E(N){var D,w;return N===void 0?N:_o(N,(w=(D=t.host).getCurrentDirectory)==null?void 0:w.call(D))}function S(N,D){return Fc(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 ee=ky({useCaseSensitiveFileNames:()=>uK(t)}),me=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ge=E(VP(t.compilerOptions,()=>[],((Y=(K=t.host).getCurrentDirectory)==null?void 0:Y.call(K))||"",ee));me.push(ge)}else if(t.requestContainingDirectory){let ge=E(Yr(t.requestContainingDirectory,"index.ts")),q=E(VP(t.compilerOptions,()=>[ge,E(w)],((ce=(B=t.host).getCurrentDirectory)==null?void 0:ce.call(B))||"",ee));me.push(q);let J=Fc(q);for(;J&&J.length>1;){let re=Wc(J);re.pop();let pe=Av(re);me.unshift(pe),J=Fc(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=Mie(pe);for(let he of ne){if(!QAe(e,he))continue;let Ce=WL(pe,he,fe,!uK(t));if(t.host.fileExists(Ce))return tf(d1(s,oK(e,Ce,!1,t)))}}}}}return;function z(ee){var me,ge;let q=t.compilerOptions.configFile?((ge=(me=t.host).getCurrentDirectory)==null?void 0:ge.call(me))||"":ee,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 hw(e,t){if(!e.includes("types")||!ao(t,"types@"))return!1;let r=RL.tryParse(t.substring(6));return r?r.test(qp):!1}function tIe(e,t,r,i,o,s){return nIe(e,t,r,i,!1,o,s)}function EGe(e,t,r){return nIe(4,e,t,r,!0,void 0,void 0)}function nIe(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){Zv(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 Zv(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,h3(h)),m(h);function m(y){return hm(Nd(r),E=>{if(nc(E)!=="node_modules"){let S=aIe(s,t,d,E,l,i);return S||tf(rIe(y,t,E,i,o,s,l))}})}}function rIe(e,t,r,i,o,s,l){let d=Yr(r,"node_modules"),p=Hm(d,i.host);if(!p&&i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=iIe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=Yr(d,"@types"),m=p;return p&&!Hm(h,i.host)&&(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),iIe(4,oIe(t,i),h,m,i,s,l)}}function iIe(e,t,r,i,o,s,l){var d,p;let h=ma(Yr(r,t)),{packageName:m,rest:y}=_w(t),E=Yr(r,m),S,A=Z0(h,!i,o);if(y!==""&&A&&(!(o.features&8)||!As(((d=S=Z0(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??Z0(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&&yo(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,qp,y);let w=i&&Hm(E,o.host),j=Pse(e,y,E,D.paths,void 0,N,!w,o);if(j)return j.value}return N(e,h,!i,o)}function Pse(e,t,r,i,o,s,l,d){o||(o=w6(i));let p=cU(o,t);if(p){let h=Co(p)?void 0:fne(p,t),m=Co(p)?p:pne(p);return d.traceEnabled&&yo(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&&yo(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let N=Og(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||!Hm(ai(A),d.host),d)})}}}function oIe(e,t){let r=qR(e);return t.traceEnabled&&r!==e&&yo(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(rl,fK);if(t!==e)return t.slice(1)}return e}function CP(e){let t=jC(e,"@types/");return t!==e?gw(t):e}function gw(e){return e.includes(fK)?"@"+e.replace(fK,rl):e}function aIe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&yo(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 Mse(e,t,r,i,o,s){let l=Bg(r,i),d=[],p=[],h=ai(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 WAe(e,E&&E.value,E?.value&&AE(E.value.path),d,p,m,y,o);function S(A){let N=HAe(A,e,h,Cse,y);if(N)return{value:N};if(qc(e)){let D=ma(Yr(h,e));return tf(Cse(A,D,!1,y))}else{let D=hm(h,w=>{let j=aIe(o,e,void 0,w,s,y);if(j)return j;let K=ma(Yr(w,e));return tf(Cse(A,K,!1,y))});if(D)return D;if(A&5){let w=EGe(e,h,y);return A&4&&(w??(w=sIe(e,y))),w}}}}function sIe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=GAe(r,e,t),o=Hm(r,t.host);!o&&t.traceEnabled&&yo(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=pw(s.path),p=d?Z0(d,!1,t):void 0;return tf(d1(p,s))}let l=Nse(4,i,!o,t);if(l)return tf(l)}}function XR(e,t){return!!e.allowImportingTsExtensions||t&&bd(t)}function Lse(e,t,r,i,o,s){let l=Bg(r,i);l&&yo(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=rIe(4,e,o,m,!1,void 0,void 0);return FAe(y,!0,d,p,h,m.resultFromCache,void 0)}function tf(e){return e!==void 0?{value:e}:void 0}function Zv(e,t,...r){e.traceEnabled&&yo(e.host,t,...r)}function uK(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var kse,lIe,pK,Sh,fK,SGe=bt({"src/compiler/moduleNameResolver.ts"(){"use strict";Qo(),lIe=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||{}),Sh="/node_modules/",fK="__"}});function Gg(e,t){return e.body&&!e.body.parent&&(Va(e.body,e),Gv(e.body,!1)),e.body?wse(e.body,t):1}function wse(e,t=new Map){let r=rs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=TGe(e,t);return t.set(r,i),i}function TGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(I0(e))return 2;break;case 272:case 271:if(!Qr(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=AGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Bo(e,o=>{let s=wse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:R.assertNever(s)}}),i}case 267:return Gg(e,t);case 80:if(e.flags&4096)return 0}return 1}function AGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Uo(i)||N_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(YL(l,r)){l.parent||(Va(l,i),Gv(l,!1));let d=wse(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 R.attachFlowNodeDebugInfo(e),e}function Ose(e,t){var r,i;tl("beforeBind"),(r=iu)==null||r.logStartBindFile(""+e.fileName),dIe(e,t),(i=iu)==null||i.logStopBindFile(),tl("afterBind"),Yp("Bind","beforeBind","afterBind")}function IGe(){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,ee,me,ge={flags:1},q={flags:1},J=U();return pe;function re(O,Se,...nt){return Kf(Gn(O)||e,O,Se,...nt)}function pe(O,Se){var nt,jt;e=O,t=Se,r=ns(t),B=xe(e,Se),me=new Set,z=0,ee=od.getSymbolConstructor(),R.attachFlowNodeDebugInfo(ge),R.attachFlowNodeDebugInfo(q),e.locals||((nt=rr)==null||nt.push(rr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Pe(e),(jt=rr)==null||jt.pop(),e.symbolCount=z,e.classifiableNames=me,sd()),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,Se){return uu(Se,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function fe(O,Se){return z++,new ee(O,Se)}function ne(O,Se,nt){O.flags|=nt,Se.symbol=O,O.declarations=Ig(O.declarations,Se),nt&1955&&!O.exports&&(O.exports=aa()),nt&6240&&!O.members&&(O.members=aa()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),nt&111551&&O2(O,Se)}function he(O){if(O.kind===277)return O.isExportEquals?"export=":"default";let Se=No(O);if(Se){if(Pd(O)){let nt=Xf(Se);return E_(O)?"__global":`"${nt}"`}if(Se.kind===167){let nt=Se.expression;if(Qp(nt))return fl(nt.text);if(t6(nt))return da(nt.operator)+nt.operand.text;R.fail("Only computed properties with literal names have declaration names")}if(Ki(Se)){let nt=id(O);if(!nt)return;let jt=nt.symbol;return J2(jt,Se.escapedText)}return Xm(Se)?FI(Se):T_(Se)?AN(Se):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=";R.fail("Unknown binary declaration kind");break;case 324:return rR(O)?"__new":"__call";case 169:return R.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${R.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function Ce(O){return au(O)?Is(O.name):Vi(R.checkDefined(he(O)))}function Ge(O,Se,nt,jt,Zn,oi,Xr){R.assert(Xr||!Wv(nt));let no=Qr(nt,2048)||Kd(nt)&&nt.name.escapedText==="default",La=Xr?"__computed":no&&Se?"default":he(nt),ka;if(La===void 0)ka=fe(0,"__missing");else if(ka=O.get(La),jt&2885600&&me.add(La),!ka)O.set(La,ka=fe(0,La)),oi&&(ka.isReplaceableByMethod=!0);else{if(oi&&!ka.isReplaceableByMethod)return ka;if(ka.flags&Zn){if(ka.isReplaceableByMethod)O.set(La,ka=fe(0,La));else if(!(jt&3&&ka.flags&67108864)){au(nt)&&Va(nt.name,nt);let kl=ka.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,dd=!0;(ka.flags&384||jt&384)&&(kl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,dd=!1);let Ic=!1;Nn(ka.declarations)&&(no||ka.declarations&&ka.declarations.length&&nt.kind===277&&!nt.isExportEquals)&&(kl=f.A_module_cannot_have_multiple_default_exports,dd=!1,Ic=!0);let Tp=[];Tm(nt)&&Fl(nt.type)&&Qr(nt,32)&&ka.flags&2887656&&Tp.push(re(nt,f.Did_you_mean_0,`export type { ${Vi(nt.name.escapedText)} }`));let Vu=No(nt)||nt;gn(ka.declarations,(ls,Dm)=>{let Cm=No(ls)||ls,Ui=dd?re(Cm,kl,Ce(ls)):re(Cm,kl);e.bindDiagnostics.push(Ic?Pa(Ui,re(Vu,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 ab=dd?re(Vu,kl,Ce(nt)):re(Vu,kl);e.bindDiagnostics.push(Pa(ab,...Tp)),ka=fe(0,La)}}}return ne(ka,nt,jt),ka.parent?R.assert(ka.parent===Se,"Existing symbol parent should match new one"):ka.parent=Se,ka}function ve(O,Se,nt){let jt=!!(eE(O)&32)||Ie(O);if(Se&2097152)return O.kind===281||O.kind===271&&jt?Ge(o.symbol.exports,o.symbol,O,Se,nt):(R.assertNode(o,ch),Ge(o.locals,void 0,O,Se,nt));if(qf(O)&&R.assert(ir(O)),!Pd(O)&&(jt||o.flags&128)){if(!ch(o)||!o.locals||Qr(O,2048)&&!he(O))return Ge(o.symbol.exports,o.symbol,O,Se,nt);let Zn=Se&111551?1048576:0,oi=Ge(o.locals,void 0,O,Zn,nt);return oi.exportSymbol=Ge(o.symbol.exports,o.symbol,O,Se,nt),O.localSymbol=oi,oi}else return R.assertNode(o,ch),Ge(o.locals,void 0,O,Se,nt)}function Ie(O){if(O.parent&&ql(O)&&(O=O.parent),!qf(O))return!1;if(!Bk(O)&&O.fullName)return!0;let Se=No(O);return Se?!!(tk(Se.parent)&&Zl(Se.parent)||Hd(Se.parent)&&eE(Se.parent)&32):!1}function De(O,Se){let nt=o,jt=s,Zn=l;if(Se&1?(O.kind!==219&&(s=o),o=l=O,Se&32&&(o.locals=aa(),er(o))):Se&2&&(l=O,Se&32&&(l.locals=void 0)),Se&4){let oi=m,Xr=y,no=E,La=S,ka=D,kl=j,dd=K,Ic=Se&16&&!Qr(O,1024)&&!O.asteriskToken&&!!_T(O)||O.kind===175;Ic||(m=p1({flags:2}),Se&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)&&Se&8&&Hf(O.body)&&(O.flags|=512,K&&(O.flags|=1024),O.endFlowNode=m),O.kind===312&&(O.flags|=Y,O.endFlowNode=m),S&&(qt(S,m),m=Qn(S),(O.kind===176||O.kind===175||ir(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=m)),Ic||(m=oi),y=Xr,E=no,S=La,D=ka,j=kl,K=dd}else Se&64?(h=!1,ze(O),R.assertNotNode(O,Fe),O.flags=h?O.flags|256:O.flags&-257):ze(O);o=nt,s=jt,l=Zn}function Le(O){Et(O,Se=>Se.kind===262?Pe(Se):void 0),Et(O,Se=>Se.kind!==262?Pe(Se):void 0)}function Et(O,Se=Pe){O!==void 0&&gn(O,Se)}function be(O){Bo(O,Pe,Et)}function ze(O){let Se=ce;if(ce=!1,Gt(O)){be(O),yt(O),ce=Se;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=m),O.kind){case 247:$i(O);break;case 246:Ao(O);break;case 248:ua(O);break;case 249:case 250:za(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:se(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(Oy(O)){ce=Se,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=Se;default:be(O);break}yt(O),ce=Se}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 Ft(O){return MN(O)||(wr(O)||t1(O)||Fu(O))&&Ft(O.expression)||ur(O)&&O.operatorToken.kind===28&&Ft(O.right)||Xs(O)&&(Qp(O.argumentExpression)||Bl(O.argumentExpression))&&Ft(O.expression)||Pc(O)&&Ft(O.left)}function _t(O){return Ft(O)||Ud(O)&&_t(O.expression)}function Je(O){if(O.arguments){for(let Se of O.arguments)if(_t(Se))return!0}return!!(O.expression.kind===211&&_t(O.expression.expression))}function ft(O,Se){return NR(O)&&en(O.expression)&&as(Se)}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)||ft(O.right,O.left)||ft(O.left,O.right)||sN(O.right)&&tt(O.left)||sN(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,Se,nt){return p1({flags:1024,target:O,antecedents:Se,antecedent:nt})}function Yt(O){O.flags|=O.flags&2048?4096:2048}function qt(O,Se){!(Se.flags&1)&&!zo(O.antecedents,Se)&&((O.antecedents||(O.antecedents=[])).push(Se),Yt(Se))}function hi(O,Se,nt){return Se.flags&1?Se:nt?(nt.kind===112&&O&64||nt.kind===97&&O&32)&&!aF(nt)&&!TV(nt.parent)?ge:tt(nt)?(Yt(Se),p1({flags:O,antecedent:Se,node:nt})):Se:O&32?Se:ge}function uo(O,Se,nt,jt){return Yt(O),p1({flags:128,antecedent:O,switchStatement:Se,clauseStart:nt,clauseEnd:jt})}function Li(O,Se,nt){Yt(Se);let jt=p1({flags:O,antecedent:Se,node:nt});return D&&qt(D,jt),jt}function Eo(O,Se){return Yt(O),p1({flags:512,antecedent:O,node:Se})}function Qn(O){let Se=O.antecedents;return Se?Se.length===1?Se[0]:O:ge}function Ur(O){let Se=O.parent;switch(Se.kind){case 245:case 247:case 246:return Se.expression===O;case 248:case 227:return Se.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 ek(O)}function on(O){return jj(ms(O))}function Ye(O){for(;Fu(O.parent)||Xv(O.parent)&&O.parent.operator===54;)O=O.parent;return!Ur(O)&&!Er(O.parent)&&!(Ud(O.parent)&&O.parent.expression===O)}function Wt(O,Se,nt,jt){let Zn=A,oi=N;A=nt,N=jt,O(Se),A=Zn,N=oi}function In(O,Se,nt){Wt(Pe,O,Se,nt),(!O||!on(O)&&!Er(O)&&!(Ud(O)&&nN(O)))&&(qt(Se,hi(32,m,O)),qt(nt,hi(64,m,O)))}function li(O,Se,nt){let jt=y,Zn=E;y=Se,E=nt,Pe(O),y=jt,E=Zn}function yi(O,Se){let nt=j;for(;nt&&O.parent.kind===256;)nt.continueTarget=Se,nt=nt.next,O=O.parent;return Se}function $i(O){let Se=yi(O,Kn()),nt=Dn(),jt=Dn();qt(Se,m),m=Se,In(O.expression,nt,jt),m=Qn(nt),li(O.statement,jt,Se),qt(Se,m),m=Qn(jt)}function Ao(O){let Se=Kn(),nt=yi(O,Dn()),jt=Dn();qt(Se,m),m=Se,li(O.statement,jt,nt),qt(nt,m),m=Qn(nt),In(O.expression,Se,jt),m=Qn(jt)}function ua(O){let Se=yi(O,Kn()),nt=Dn(),jt=Dn();Pe(O.initializer),qt(Se,m),m=Se,In(O.condition,nt,jt),m=Qn(nt),li(O.statement,jt,Se),Pe(O.incrementor),qt(Se,m),m=Qn(jt)}function za(O){let Se=yi(O,Kn()),nt=Dn();Pe(O.expression),qt(Se,m),m=Se,O.kind===250&&Pe(O.awaitModifier),qt(nt,m),Pe(O.initializer),O.initializer.kind!==261&&pt(O.initializer),li(O.statement,nt,Se),qt(Se,m),m=Qn(nt)}function vn(O){let Se=Dn(),nt=Dn(),jt=Dn();In(O.expression,Se,nt),m=Qn(Se),Pe(O.thenStatement),qt(jt,m),m=Qn(nt),Pe(O.elseStatement),qt(jt,m),m=Qn(jt)}function kn(O){Pe(O.expression),O.kind===253&&(K=!0,S&&qt(S,m)),m=ge}function Be(O){for(let Se=j;Se;Se=Se.next)if(Se.name===O)return Se}function ct(O,Se,nt){let jt=O.kind===252?Se:nt;jt&&(qt(jt,m),m=ge)}function lt(O){if(Pe(O.label),O.label){let Se=Be(O.label.escapedText);Se&&(Se.referenced=!0,ct(O,Se.breakTarget,Se.continueTarget))}else ct(O,y,E)}function Rt(O){let Se=S,nt=D,jt=Dn(),Zn=Dn(),oi=Dn();if(O.finallyBlock&&(S=Zn),qt(oi,m),D=oi,Pe(O.tryBlock),qt(jt,m),O.catchClause&&(m=Qn(oi),oi=Dn(),qt(oi,m),D=oi,Pe(O.catchClause),qt(jt,m)),S=Se,D=nt,O.finallyBlock){let Xr=Dn();Xr.antecedents=bo(bo(jt.antecedents,oi.antecedents),Zn.antecedents),m=Xr,Pe(O.finallyBlock),m.flags&1?m=ge:(S&&Zn.antecedents&&qt(S,pn(Xr,Zn.antecedents,m)),D&&oi.antecedents&&qt(D,pn(Xr,oi.antecedents,m)),m=jt.antecedents?pn(Xr,jt.antecedents,m):ge)}else m=Qn(jt)}function se(O){let Se=Dn();Pe(O.expression);let nt=y,jt=w;y=Se,w=m,Pe(O.caseBlock),qt(Se,m);let Zn=gn(O.caseBlock.clauses,oi=>oi.kind===297);O.possiblyExhaustive=!Zn&&!Se.antecedents,Zn||qt(Se,uo(w,O,0,0)),y=nt,w=jt,m=Qn(Se)}function ke(O){let Se=O.clauses,nt=O.parent.expression.kind===112||tt(O.parent.expression),jt=ge;for(let Zn=0;ZnXl(nt)||Ml(nt))}function Kr(O){O.flags&33554432&&!Ri(O)?O.flags|=128:O.flags&=-129}function Io(O){if(Kr(O),Pd(O))if(Qr(O,32)&&Cs(O,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),XV(O))xn(O);else{let Se;if(O.name.kind===11){let{text:jt}=O.name;Se=vR(jt),Se===void 0&&Cs(O.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,jt)}let nt=Fr(O,512,110735);e.patternAmbientModules=Tn(e.patternAmbientModules,Se&&!Co(Se)?{pattern:Se,symbol:nt}:void 0)}else{let Se=xn(O);if(Se!==0){let{symbol:nt}=O;nt.constEnumOnlyModule=!(nt.flags&304)&&Se===2&&nt.constEnumOnlyModule!==!1}}}function xn(O){let Se=Gg(O),nt=Se!==0;return Fr(O,nt?512:1024,nt?110735:0),Se}function ws(O){let Se=fe(131072,he(O));ne(Se,O,131072);let nt=fe(2048,"__type");ne(nt,O,2048),nt.members=aa(),nt.members.set(Se.escapedName,Se)}function $l(O){return Bs(O,4096,"__object")}function Po(O){return Bs(O,4096,"__jsxAttributes")}function ss(O,Se,nt){return Fr(O,Se,nt)}function Bs(O,Se,nt){let jt=fe(Se,nt);return Se&106508&&(jt.parent=o.symbol),ne(jt,O,Se),jt}function _l(O,Se,nt){switch(l.kind){case 267:ve(O,Se,nt);break;case 312:if(wp(o)){ve(O,Se,nt);break}default:R.assertNode(l,ch),l.locals||(l.locals=aa(),er(l)),Ge(l.locals,void 0,O,Se,nt)}}function sd(){if(!p)return;let O=o,Se=d,nt=l,jt=i,Zn=m;for(let oi of p){let Xr=oi.parent.parent;o=nj(Xr)||e,l=ph(Xr)||e,m=p1({flags:2}),i=oi,Pe(oi.typeExpression);let no=No(oi);if((Bk(oi)||!oi.fullName)&&no&&tk(no.parent)){let La=Zl(no.parent);if(La){hl(e.symbol,no.parent,La,!!Fn(no,kl=>wr(kl)&&kl.name.escapedText==="prototype"),!1);let ka=o;switch(k2(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=eS(e,no.parent.expression)?e:wr(no.parent.expression)?no.parent.expression.name:no.parent.expression;break;case 0:return R.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&ve(oi,524288,788968),o=ka}}else Bk(oi)||!oi.fullName||oi.fullName.kind===80?(i=oi.parent,_l(oi,524288,788968)):Pe(oi.fullName)}o=O,d=Se,l=nt,i=jt,m=Zn}function mo(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!Aie(O)){let Se=tE(O);if(Se===void 0)return;B&&Se>=119&&Se<=127?e.bindDiagnostics.push(re(O,la(O),Is(O))):Se===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,Is(O))):O.flags&65536&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Is(O))):Se===127&&O.flags&16384&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Is(O)))}}function la(O){return id(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 ld(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(re(O,f.constructor_is_a_reserved_word,Is(O))))}function Ss(O){B&&Yu(O.left)&&wy(O.operatorToken.kind)&&ac(O,O.left)}function Ca(O){B&&O.variableDeclaration&&ac(O,O.variableDeclaration.name)}function pl(O){if(B&&O.expression.kind===80){let Se=fT(e,O.expression);e.bindDiagnostics.push(Yc(e,Se.start,Se.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,Se){if(Se&&Se.kind===80){let nt=Se;if(Nf(nt)){let jt=fT(e,Se);e.bindDiagnostics.push(Yc(e,jt.start,jt.length,xl(O),yr(nt)))}}}function xl(O){return id(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 sl(O){B&&ac(O,O.name)}function Mo(O){return id(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 Se=fT(e,O);e.bindDiagnostics.push(Yc(e,Se.start,Se.length,Mo(O)))}}function Gs(O){B&&ac(O,O.operand)}function ed(O){B&&(O.operator===46||O.operator===47)&&ac(O,O.operand)}function cd(O){B&&Cs(O,f.with_statements_are_not_allowed_in_strict_mode)}function Ep(O){B&&ns(t)>=2&&(Rre(O.statement)||Pl(O.statement))&&Cs(O.label,f.A_label_is_not_allowed_here)}function Cs(O,Se,...nt){let jt=fh(e,O.pos);e.bindDiagnostics.push(Yc(e,jt.start,jt.length,Se,...nt))}function Ac(O,Se,nt){de(O,Se,Se,nt)}function de(O,Se,nt,jt){$(O,{pos:aE(Se,e),end:nt.end},jt)}function $(O,Se,nt){let jt=Yc(e,Se.pos,Se.end-Se.pos,nt);O?e.bindDiagnostics.push(jt):e.bindSuggestionDiagnostics=Tn(e.bindSuggestionDiagnostics,{...jt,category:2})}function Pe(O){if(!O)return;Va(O,i),rr&&(O.tracingPath=e.path);let Se=B;if(fr(O),O.kind>165){let nt=i;i=O;let jt=mK(O);jt===0?ze(O):De(O,jt),i=nt}else{let nt=i;O.kind===1&&(i=O),yt(O),i=nt}B=Se}function yt(O){if(kp(O))if(ir(O))for(let Se of O.jsDoc)Pe(Se);else for(let Se of O.jsDoc)Va(Se,O),Gv(Se,!1)}function cn(O){if(!B)for(let Se of O){if(!vm(Se))return;if(vr(Se)){B=!0;return}}}function vr(O){let Se=T0(e,O.expression);return Se==='"use strict"'||Se==="'use strict'"}function fr(O){switch(O.kind){case 80:if(O.flags&4096){let Xr=O.parent;for(;Xr&&!qf(Xr);)Xr=Xr.parent;_l(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 ld(O);case 211:case 212:let Se=O;m&&Ft(Se)&&(Se.flowNode=m),gie(Se)&&Un(Se),ir(Se)&&e.commonJsModuleIndicator&&$h(Se)&&!I3(l,"module")&&Ge(e.locals,void 0,Se.expression,134217729,111550);break;case 226:switch(zl(O)){case 1:tp(O);break;case 2:wc(O);break;case 3:$o(O.left,O);break;case 6:go(O);break;case 4:_u(O);break;case 5:let Xr=O.left.expression;if(ir(O)&&Fe(Xr)){let no=I3(l,Xr.escapedText);if(zF(no?.valueDeclaration)){_u(O);break}}gc(O);break;case 0:break;default:R.fail("Unknown binary expression special property assignment kind")}return Ss(O);case 299:return Ca(O);case 220:return pl(O);case 225:return Gs(O);case 224:return ed(O);case 254:return cd(O);case 256:return Ep(O);case 197:h=!0;return;case 182:break;case 168:return rt(O);case 169:return Hg(O);case 260:return Wd(O);case 208:return O.flowNode=m,Wd(O);case 172:case 171:return zr(O);case 303:case 304:return Gu(O,4,0);case 306:return Gu(O,8,900095);case 179:case 180:case 181:return Fr(O,131072,0);case 174:case 173:return Gu(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 Gu(O,32768,46015);case 178:return Gu(O,65536,78783);case 184:case 324:case 330:case 185:return ws(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 cg(O);case 213:switch(zl(O)){case 7:return Ql(O);case 8:return Uc(O);case 9:return Jo(O);case 0:break;default:return R.fail("Unknown call expression assignment declaration kind")}ir(O)&&z_(O);break;case 231:case 263:return B=!0,Ih(O);case 264:return _l(O,64,788872);case 265:return _l(O,524288,788968);case 266:return Ug(O);case 267:return Io(O);case 292:return Po(O);case 291:return ss(O,4,0);case 271:case 274:case 276:case 281:return Fr(O,2097152,2097152);case 270:return jc(O);case 273:return hc(O);case 278:return Vs(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 Hg(O);if(O.parent.kind!==329)break;case 355:let Zn=O,oi=Zn.isBracketed||Zn.typeExpression&&Zn.typeExpression.type.kind===323?16777220:4;return Fr(Zn,oi,0);case 353:case 345:case 347:return(p||(p=[])).push(O);case 346:return Pe(O.typeExpression)}}function zr(O){let Se=ku(O),nt=Se?98304:4,jt=Se?13247:0;return Gu(O,nt|(O.questionToken?16777216:0),jt)}function Di(O){return Bs(O,2048,"__type")}function Cr(){if(Kr(e),oc(e))Ko();else if(Jf(e)){Ko();let O=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function Ko(){Bs(e,512,`"${Tu(e.fileName)}"`)}function bl(O){if(!o.symbol||!o.symbol.exports)Bs(O,111551,he(O));else{let Se=oR(O)?2097152:4,nt=Ge(o.symbol.exports,o.symbol,O,Se,-1);O.isExportEquals&&O2(nt,O)}}function jc(O){gt(O.modifiers)&&e.bindDiagnostics.push(re(O,f.Modifiers_cannot_appear_here));let Se=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;Se?e.bindDiagnostics.push(re(O,Se)):(e.symbol.globalExports=e.symbol.globalExports||aa(),Ge(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function Vs(O){!o.symbol||!o.symbol.exports?Bs(O,8388608,he(O)):O.exportClause?vh(O.exportClause)&&(Va(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 bs(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||Ko()),!0)}function Uc(O){if(!bs(O))return;let Se=Pf(O.arguments[0],void 0,(nt,jt)=>(jt&&ne(jt,nt,67110400),jt));Se&&Ge(Se.exports,Se,O,1048580,0)}function tp(O){if(!bs(O))return;let Se=Pf(O.left.expression,void 0,(nt,jt)=>(jt&&ne(jt,nt,67110400),jt));if(Se){let jt=H2(O.right)&&(hT(O.left.expression)||$h(O.left.expression))?2097152:1048580;Va(O.left,O),Ge(Se.exports,Se,O.left,jt,0)}}function wc(O){if(!bs(O))return;let Se=P2(O.right);if(Jj(Se)||o===e&&eS(e,Se))return;if(Ma(Se)&&oo(Se.properties,Zu)){gn(Se.properties,im);return}let nt=oR(O)?2097152:1049092,jt=Ge(e.symbol.exports,e.symbol,O,nt|67108864,0);O2(jt,O)}function im(O){Ge(e.symbol.exports,e.symbol,O,69206016,0)}function _u(O){if(R.assert(ir(O)),ur(O)&&wr(O.left)&&Ki(O.left.name)||wr(O)&&Ki(O.name))return;let nt=wu(O,!1,!1);switch(nt.kind){case 262:case 218:let jt=nt.symbol;if(ur(nt.parent)&&nt.parent.operatorToken.kind===64){let Xr=nt.parent.left;C0(Xr)&&zv(Xr.expression)&&(jt=Du(Xr.expression.expression,s))}jt&&jt.valueDeclaration&&(jt.members=jt.members||aa(),Wv(O)?Re(O,jt,jt.members):Ge(jt.members,jt,O,67108868,0),ne(jt,jt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Zn=nt.parent,oi=na(nt)?Zn.symbol.exports:Zn.symbol.members;Wv(O)?Re(O,Zn.symbol,oi):Ge(oi,Zn.symbol,O,67108868,0,!0);break;case 312:if(Wv(O))break;nt.commonJsModuleIndicator?Ge(nt.symbol.exports,nt.symbol,O,1048580,0):Fr(O,1,111550);break;case 267:break;default:R.failBadSyntaxKind(nt)}}function Re(O,Se,nt){Ge(nt,Se,O,4,0,!0,!0),Lt(O,Se)}function Lt(O,Se){Se&&(Se.assignmentDeclarationMembers||(Se.assignmentDeclarationMembers=new Map)).set(rs(O),O)}function Un(O){O.expression.kind===110?_u(O):C0(O)&&O.parent.parent.kind===312&&(zv(O.expression)?$o(O,O.parent):ll(O))}function go(O){Va(O.left,O),Va(O.right,O),Hc(O.left.expression,O.left,!1,!0)}function Jo(O){let Se=Du(O.arguments[0].expression);Se&&Se.valueDeclaration&&ne(Se,Se.valueDeclaration,32),Gl(O,Se,!0)}function $o(O,Se){let nt=O.expression,jt=nt.expression;Va(jt,nt),Va(nt,O),Va(O,Se),Hc(jt,O,!0,!0)}function Ql(O){let Se=Du(O.arguments[0]),nt=O.parent.parent.kind===312;Se=hl(Se,O.arguments[0],nt,!1,!1),Gl(O,Se,!1)}function gc(O){var Se;let nt=Du(O.left.expression,l)||Du(O.left.expression,o);if(!ir(O)&&!yie(nt))return;let jt=hR(O.left);if(!(Fe(jt)&&((Se=I3(o,jt.escapedText))==null?void 0:Se.flags)&2097152))if(Va(O.left,O),Va(O.right,O),Fe(O.left.expression)&&o===e&&eS(e,O.left.expression))tp(O);else if(Wv(O)){Bs(O,67108868,"__computed");let Zn=hl(nt,O.left.expression,Zl(O.left),!1,!1);Lt(O,Zn)}else ll(ta(O.left,yT))}function ll(O){R.assert(!Fe(O)),Va(O.expression,O),Hc(O.expression,O,!1,!1)}function hl(O,Se,nt,jt,Zn){return O?.flags&2097152||(nt&&!jt&&(O=Pf(Se,O,(no,La,ka)=>{if(La)return ne(La,no,67110400),La;{let kl=ka?ka.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=aa());return Ge(kl,ka,no,67110400,110735)}})),Zn&&O&&O.valueDeclaration&&ne(O,O.valueDeclaration,32)),O}function Gl(O,Se,nt){if(!Se||!cf(Se))return;let jt=nt?Se.members||(Se.members=aa()):Se.exports||(Se.exports=aa()),Zn=0,oi=0;Fs(AI(O))?(Zn=8192,oi=103359):ra(O)&&gT(O)&&(gt(O.arguments[2].properties,Xr=>{let no=No(Xr);return!!no&&Fe(no)&&yr(no)==="set"})&&(Zn|=65540,oi|=78783),gt(O.arguments[2].properties,Xr=>{let no=No(Xr);return!!no&&Fe(no)&&yr(no)==="get"})&&(Zn|=32772,oi|=46015)),Zn===0&&(Zn=4,oi=0),Ge(jt,Se,O,Zn|67108864,oi&-67108865)}function Zl(O){return ur(O.parent)?Bu(O.parent).parent.kind===312:O.parent.parent.kind===312}function Hc(O,Se,nt,jt){let Zn=Du(O,l)||Du(O,o),oi=Zl(Se);Zn=hl(Zn,Se.expression,oi,nt,jt),Gl(Se,Zn,nt)}function cf(O){if(O.flags&1072)return!0;let Se=O.valueDeclaration;if(Se&&ra(Se))return!!AI(Se);let nt=Se?Oi(Se)?Se.initializer:ur(Se)?Se.right:wr(Se)&&ur(Se.parent)?Se.parent.right:void 0:void 0;if(nt=nt&&P2(nt),nt){let jt=zv(Oi(Se)?Se.name:ur(Se)?Se.left:Se);return!!lE(ur(nt)&&(nt.operatorToken.kind===57||nt.operatorToken.kind===61)?nt.right:nt,jt)}return!1}function Bu(O){for(;ur(O.parent);)O=O.parent;return O.parent}function Du(O,Se=o){if(Fe(O))return I3(Se,O.escapedText);{let nt=Du(O.expression);return nt&&nt.exports&&nt.exports.get(Mg(O))}}function Pf(O,Se,nt){if(eS(e,O))return e.symbol;if(Fe(O))return nt(O,Du(O),Se);{let jt=Pf(O.expression,Se,nt),Zn=L2(O);return Ki(Zn)&&R.fail("unexpected PrivateIdentifier"),nt(Zn,jt&&jt.exports&&jt.exports.get(Mg(O)),jt)}}function z_(O){!e.commonJsModuleIndicator&&Su(O,!1)&&bs(O)}function Ih(O){if(O.kind===263)_l(O,32,899503);else{let Zn=O.name?O.name.escapedText:"__class";Bs(O,32,Zn),O.name&&me.add(O.name.escapedText)}let{symbol:Se}=O,nt=fe(4194308,"prototype"),jt=Se.exports.get(nt.escapedName);jt&&(O.name&&Va(O.name,O),e.bindDiagnostics.push(re(jt.declarations[0],f.Duplicate_identifier_0,vl(nt)))),Se.exports.set(nt.escapedName,nt),nt.parent=Se}function Ug(O){return I0(O)?_l(O,128,899967):_l(O,256,899327)}function Wd(O){if(B&&ac(O,O.name),!Yo(O.name)){let Se=O.kind===260?O:O.parent.parent;ir(O)&&D0(Se)&&!nE(O)&&!(eE(O)&32)?Fr(O,2097152,2097152):KV(O)?_l(O,2,111551):M0(O)?Fr(O,1,111551):Fr(O,1,111550)}}function Hg(O){if(!(O.kind===348&&o.kind!==330)&&(B&&!(O.flags&33554432)&&ac(O,O.name),Yo(O.name)?Bs(O,1,"__"+O.parent.parameters.indexOf(O)):Fr(O,1,111551),dp(O,O.parent))){let Se=O.parent.parent;Ge(Se.symbol.members,Se.symbol,O,4|(O.questionToken?16777216:0),0)}}function Sp(O){!e.isDeclarationFile&&!(O.flags&33554432)&&TN(O)&&(Y|=4096),sl(O),B?(tn(O),_l(O,16,110991)):Fr(O,16,110991)}function cg(O){!e.isDeclarationFile&&!(O.flags&33554432)&&TN(O)&&(Y|=4096),m&&(O.flowNode=m),sl(O);let Se=O.name?O.name.escapedText:"__function";return Bs(O,16,Se)}function Gu(O,Se,nt){return!e.isDeclarationFile&&!(O.flags&33554432)&&TN(O)&&(Y|=4096),m&&kF(O)&&(O.flowNode=m),Wv(O)?Bs(O,Se,"__computed"):Fr(O,Se,nt)}function Z(O){let Se=Fn(O,nt=>nt.parent&&ZI(nt.parent)&&nt.parent.extendsType===nt);return Se&&Se.parent}function rt(O){if(nm(O.parent)){let Se=QF(O.parent);Se?(R.assertNode(Se,ch),Se.locals??(Se.locals=aa()),Ge(Se.locals,void 0,O,262144,526824)):Fr(O,262144,526824)}else if(O.parent.kind===195){let Se=Z(O.parent);Se?(R.assertNode(Se,ch),Se.locals??(Se.locals=aa()),Ge(Se.locals,void 0,O,262144,526824)):Bs(O,262144,he(O))}else Fr(O,262144,526824)}function Ot(O){let Se=Gg(O);return Se===1||Se===2&&G0(t)}function Gt(O){if(!(m.flags&1))return!1;if(m===ge&&(c2(O)&&O.kind!==242||O.kind===263||O.kind===267&&Ot(O))&&(m=q,!t.allowUnreachableCode)){let nt=moe(t)&&!(O.flags&33554432)&&(!Pl(O)||!!(Cy(O.declarationList)&7)||O.declarationList.declarations.some(jt=>!!jt.initializer));xGe(O,(jt,Zn)=>de(nt,jt,Zn,f.Unreachable_code_detected))}return!0}}function xGe(e,t){if(Hi(e)&&cIe(e)&&Uo(e.parent)){let{statements:r}=e.parent,i=dU(r,e);LG(i,cIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function cIe(e){return!Ec(e)&&!RGe(e)&&!gE(e)&&!(Pl(e)&&!(Cy(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function RGe(e){switch(e.kind){case 264:case 265:return!0;case 267:return Gg(e)!==1;case 266:return Qr(e,4096);default:return!1}}function eS(e,t){let r=0,i=IL();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),hT(t)||$h(t))return!0;if(Fe(t)){let o=I3(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Pc(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 Xo(e.parent)||Al(e.parent)?0:34}return 0}function I3(e,t){var r,i,o,s;let l=(i=(r=ii(e,ch))==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,dIe,DGe=bt({"src/compiler/binder.ts"(){"use strict";Qo(),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||{}),dIe=IGe()}});function Wse(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{Vh(E),Vh(S)}},walkSymbol:me=>{try{return ee(me),{visitedTypes:cI(E),visitedSymbols:cI(S)}}finally{Vh(E),Vh(S)}}};function A(me){if(!(!me||E[me.id]||(E[me.id]=me,ee(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)ee(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)ee(q)}function ee(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(ee),gn(me.declarations,J=>{if(J.type&&J.type.kind===186){let re=J.type,pe=l(p(re.exprName));ee(pe)}}),!1}}}var CGe=bt({"src/compiler/symbolWalker.ts"(){"use strict";Qo()}});function yw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?qc(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(pu(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:R.assertNever(p)}}};function l(d){if(o!==void 0){if(W0(o))return 2;if(El(o,"/index"))return 1}return Toe(t,d??i.impliedNodeFormat,r,i)}}function NGe(e,t,r,i,o,s,l={}){let d=uIe(e,t,r,i,o,yw({},e,t,s),{},l);if(d!==s)return d}function x3(e,t,r,i,o,s={}){return uIe(e,t,r,i,o,yw({},e,t),{},s)}function PGe(e,t,r,i,o,s={}){let l=gK(t.fileName,i),d=yIe(l,r,i,o,s);return Wl(d,p=>zse(p,l,t,i,e,o,!0,s.overrideImportMode))}function uIe(e,t,r,i,o,s,l,d={}){let p=gK(r,o),h=yIe(p,i,o,l,d);return Wl(h,m=>zse(m,p,t,o,e,l,void 0,d.overrideImportMode))||_Ie(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function MGe(e,t,r,i,o={}){return pIe(e,t,r,i,o)[0]}function pIe(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 fIe(e,t,r,i,o,s,l={}){return mIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function mIe(e,t,r,i,o,s,l={},d){let p=!1,h=wGe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,E,S]=pIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:Xe,computedWithoutCache:p};p=!0,E||(E=vIe(gK(i.fileName,o),y.originalFileName,o));let A=LGe(E,r,i,o,s,l,d);return S?.set(i.path,y.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function LGe(e,t,r,i,o,s={},l){let d=gK(r.fileName,i),p=yw(o,t,r),h=gn(e,N=>gn(i.getFileIncludeReasons().get(nl(N.path,i.getCurrentDirectory(),d.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Xle(r,D.index,t))return;let w=ww(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?zse(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=_Ie(N.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,N.isRedirect);if(!w)continue;N.isRedirect?S=Tn(S,w):sV(w)?AE(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:R.checkDefined(A)}function gK(e,t){e=_o(e,t.getCurrentDirectory());let r=Cd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ai(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function _Ie(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&&FGe(m,e,y,S,A,r)||vw(g0(_m(y,e,S)),A,r);if(!p&&!h&&!Y6(r)||l===0)return d?void 0:N;let D=_o(s6(r,i)||p,i.getCurrentDirectory()),w=TIe(e,D,S);if(!w)return d?void 0:N;let j=d?void 0:WGe(e,y,r,i,o),K=d||j===void 0?h&&bIe(w,h,A,i,r):void 0;if(d)return K;let Y=j??(K===void 0&&p!==void 0?vw(w,A,r):K);if(!Y)return N;if(l===1&&!Lp(Y))return Y;if(l===3&&!Lp(Y)){let B=r.configFilePath?nl(ai(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=nl(e,B,S),z=ao(E,B),ee=ao(ce,B);if(z&&!ee||!z&&ee)return Y;let me=Fse(i,ai(ce)),ge=Fse(i,y),q=!pR(i);return kGe(me,ge,q)?N:Y}return AIe(Y)||R3(N)e.fileExists(Yr(r,"package.json"))?r:void 0)}function gIe(e,t,r,i,o){var s;let l=ky(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=nl(t,d,l),m=r.redirectTargetsMap.get(h)||Xe,E=[...p?[p]:Xe,t,...m].map(w=>_o(w,d)),S=!oo(E,qN);if(!i){let w=gn(E,j=>!(S&&qN(j))&&o(j,p===j));if(w)return w}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),N=_o(t,d);return A&&hm(ai(N),w=>{let j=A.get(Fc(nl(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=Iv(B,Y),z=o(ce,K===p);if(S=!0,z)return z}})})||(i?gn(E,w=>S&&qN(w)?void 0:o(w,w===p)):void 0)}function yIe(e,t,r,i,o={}){var s;let l=nl(e.importingSourceFileName,r.getCurrentDirectory(),ky(r)),d=nl(t,r.getCurrentDirectory(),ky(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=vIe(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function vIe(e,t,r){let i=new Map,o=!1;gIe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=AE(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=Fc(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(hIe),s.push(...p));let h=ai(l);if(h===l)break;l=h}if(i.size){let l=Oo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(hIe),s.push(...l)}return s}function wGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>qV(l)&&(!A0(l)||!qc(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)&&Pd(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 bIe(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:vw(e,[y],o)}));if(Og(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===vw(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=_o(Yr(i,s),void 0),A=WI(r)?Tu(r)+Gse(r,e):void 0;switch(d){case 0:if(A&&xg(A,S,h)===0||xg(r,S,h)===0||y&&xg(y,S,h)===0||E&&xg(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&mm(S,A,h)){let j=_m(S,A,!1);return{moduleFileToTry:_o(Yr(Yr(o,s),j),void 0)}}if(mm(S,r,h)){let j=_m(S,r,!1);return{moduleFileToTry:_o(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 jh(s))if(h==="default"||l.indexOf(h)>=0||hw(l,h)){let m=s[h],y=D3(e,t,r,i,o,m,l,d,p);if(y)return y}}}}function OGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&T3(s)?gn(jh(s),d=>{let p=_o(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 WGe(e,t,r,i,o){var s,l,d;if(!i.readFile||!Y6(r))return;let p=Fse(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(Tse(m)||!i.fileExists(h))return;let y=m?.contents.packageJsonContent||h6(i.readFile(h)),E=y?.imports;if(!E)return;let S=Qv(r,o);return(d=gn(jh(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 FGe(e,t,r,i,o,s){let l=EIe(t,e,i);if(l===void 0)return;let d=EIe(r,e,i),p=va(d,m=>mn(l,y=>g0(_m(m,y,i)))),h=jG(p,lk);if(h)return vw(h,o,s)}function zse({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=yw(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let Y=m.packageRootIndex,B;for(;;){let{moduleFileToTry:ce,packageRootPath:z,blockedByExports:ee,verbatimFromExports:me}=K(Y);if(pu(l)!==1){if(ee)return;if(me)return ce}if(z){S=z,A=!0;break}if(B||(B=ce),Y=e.indexOf(rl,Y+1),Y===-1){S=vw(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=CP(w);return pu(l)===1&&j===w?void 0:j;function K(Y){var B,ce;let z=e.substring(0,Y),ee=Yr(z,"package.json"),me=e,ge=!1,q=(ce=(B=s.getPackageJsonInfoCache)==null?void 0:B.call(s))==null?void 0:ce.getPackageJsonInfo(ee);if(v3(q)||q===void 0&&s.fileExists(ee)){let J=q?.contents.packageJsonContent||h6(s.readFile(ee)),re=h||o.impliedNodeFormat;if(X6(l)){let fe=z.substring(m.topLevelPackageNameIndex+1),ne=CP(fe),he=Qv(l,re),Ce=J?.exports?OGe(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=bIe(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(Co(xe)&&!(ge&&cU(w6(pe.paths),xe))){let fe=nl(xe,z,r),ne=r(me);if(Tu(fe)===Tu(ne))return{packageRootPath:z,moduleFileToTry:me};if(J?.type!=="module"&&!bc(ne,bk)&&ao(ne,fe)&&ai(ne)===Yb(fe)&&Tu(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 zGe(e,t){if(!e.fileExists)return;let r=pm(GN({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 EIe(e,t,r){return to(t,i=>{let o=TIe(e,i,r);return o!==void 0&&AIe(o)?void 0:o})}function vw(e,t,r,i){if(bc(e,[".json",".mjs",".cjs"]))return e;let o=Tu(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))(Vse||{})}}),tS={};xa(tS,{RelativePreference:()=>Vse,countPathComponents:()=>R3,forEachFileNameOfModule:()=>gIe,getModuleSpecifier:()=>x3,getModuleSpecifierPreferences:()=>yw,getModuleSpecifiers:()=>fIe,getModuleSpecifiersWithCacheInfo:()=>mIe,getNodeModulesPackageName:()=>PGe,tryGetJSExtensionForFile:()=>Gse,tryGetModuleSpecifiersFromCache:()=>MGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>SIe,updateModuleSpecifier:()=>NGe});var Use=bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";jse()}});function BGe(){this.flags=0}function rs(e){return e.id||(e.id=Jse,Jse++),e.id}function ba(e){return e.id||(e.id=Kse,Kse++),e.id}function yK(e,t){let r=Gg(e);return r===1||t&&r===2}function Hse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=od.getSymbolConstructor(),p=od.getTypeConstructor(),h=od.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=Md(B),ee=!!B.experimentalDecorators,me=nP(B),ge=hoe(B),q=RT(B),J=uu(B,"strictNullChecks"),re=uu(B,"strictFunctionTypes"),pe=uu(B,"strictBindCallApply"),xe=uu(B,"strictPropertyInitialization"),fe=uu(B,"noImplicitAny"),ne=uu(B,"noImplicitThis"),he=uu(B,"useUnknownInCatchVariables"),Ce=!!B.keyofStringsOnly,Ge=Ce?1:0,ve=B.suppressExcessPropertyErrors?0:8192,Ie=B.exactOptionalPropertyTypes,De=yft(),Le=$ht(),Et=U_(),be=aa(),ze=Ha(4,"undefined");ze.declarations=[];var tt=Ha(1536,"globalThis",8);tt.exports=be,tt.declarations=[],be.set(tt.escapedName,tt);var Ft=Ha(4,"arguments"),_t=Ha(4,"require"),Je=B.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",ft=!B.verbatimModuleSyntax||!!B.importsNotUsedAsValues,Zt,en,Dn=0,Kn,pn=0;let Yt={getNodeCount:()=>ru(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>ru(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>ru(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:ju.size,identity:np.size,subtype:xh.size,strictSubtype:Mf.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===Ft,isUnknownSymbol:n=>n===lt,getMergedSymbol:es,getDiagnostics:K6e,getGlobalDiagnostics:fht,getRecursionIdentity:UZ,getUnmatchedProperties:Eye,getTypeOfSymbolAtLocation:(n,a)=>{let c=Ro(a);return c?adt(n,c):pt},getTypeOfSymbol:sr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Ro(n,To);return c===void 0?R.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(R.assert(dp(c,c.parent)),TM(c,fl(a)))},getDeclaredTypeOfSymbol:$s,getPropertiesOfType:_s,getPropertyOfType:(n,a)=>ha(n,fl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=Ro(c);if(!u)return;let _=fl(a),g=Eee(_,u);return g?ave(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Ue(n,fl(a)),getIndexInfoOfType:(n,a)=>bg(n,a===0?Ne:It),getIndexInfosOfType:gu,getIndexInfosOfIndexSymbol:_ge,getSignaturesOfType:Ho,getIndexTypeOfType:(n,a)=>n0(n,a===0?Ne:It),getIndexType:n=>J_(n),getBaseTypes:Dp,getBaseTypeOfLiteralType:fy,getWidenedType:Hp,getTypeFromTypeNode:n=>{let a=Ro(n,ji);return a?Ti(a):pt},getParameterType:f_,getParameterIdentifierInfoAtPosition:Opt,getPromisedTypeOfPromise:H8,getAwaitedType:n=>eI(n),getReturnTypeOfSignature:ds,isNullableType:F5,getNullableType:S5,getNonNullableType:my,getNonOptionalType:qZ,getTypeArguments:Hs,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=Ro(n);return c?mht(c,a):[]},getSymbolAtLocation:n=>{let a=Ro(n);return a?zm(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Ro(n);return a?Sht(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Ro(n);return a?Tht(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Ro(n,Kd);return a?Aht(a):void 0},getExportSymbolOfSymbol(n){return es(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Ro(n);return a?fx(a):pt},getTypeOfAssignmentPattern:n=>{let a=Ro(n,lN);return a&&$ee(a)||pt},getPropertySymbolOfDestructuringAssignment:n=>{let a=Ro(n,Fe);return a?Iht(a):void 0},signatureToString:(n,a,c,u)=>Ph(n,Ro(a),c,u),typeToString:(n,a,c)=>Vn(n,Ro(a),c),symbolToString:(n,a,c,u)=>Si(n,Ro(a),c,u),typePredicateToString:(n,a,c)=>Mh(n,Ro(a),c),writeSignature:(n,a,c,u,_)=>Ph(n,Ro(a),c,u,_),writeType:(n,a,c,u)=>Vn(n,Ro(a),c,u),writeSymbol:(n,a,c,u,_)=>Si(n,Ro(a),c,u,_),writeTypePredicate:(n,a,c,u)=>Mh(n,Ro(a),c,u),getAugmentedPropertiesOfType:sbe,getRootSymbols:e4e,getSymbolOfExpando:Nee,getContextualType:(n,a)=>{let c=Ro(n,ht);if(c)return a&4?uo(c,()=>Ju(c,a)):Ju(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Ro(n,Ng);return a?Kye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Ro(n,S0);return c&&Hye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Ro(n,fF);return a&&mWe(a,void 0)},isContextSensitive:zf,getTypeOfPropertyOfContextualType:u0,getFullyQualifiedName:Vp,getResolvedSignature:(n,a,c)=>Li(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:qt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>Li(n,a,c,16)),getExpandedParameters:_we,hasEffectiveRestParameter:Bh,containsArgumentsReference:pge,getConstantValue:n=>{let a=Ro(n,o4e);return a?lbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Ro(n,yre);return!!c&&Hut(c,fl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=Ro(n,wr);return!!u&&UWe(u,a,c)},getSignatureFromDeclaration:n=>{let a=Ro(n,Xo);return a?lm(a):void 0},isImplementationOfOverload:n=>{let a=Ro(n,Xo);return a?r4e(a):void 0},getImmediateAliasedSymbol:$ye,getAliasedSymbol:Oc,getEmitResolver:tv,getExportsOfModule:AA,getExportsAndPropertiesOfModule:JD,forEachExportAndPropertyOfModule:qD,getSymbolWalker:Wse(Dat,Ff,ds,Dp,c_,sr,Wm,Pu,Fp,Hs),getAmbientModules:Bgt,getJsxIntrinsicTagNamesAt:Aut,isOptionalParameter:n=>{let a=Ro(n,To);return a?h8(a):!1},tryGetMemberInModuleExports:(n,a)=>IA(fl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>XD(fl(n),a),tryFindAmbientModule:n=>hZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>hZ(n,!1),getApparentType:Mu,getUnionType:ti,isTypeAssignableTo:ya,createAnonymousType:Ns,createSignature:vg,createSymbol:Ha,createIndexInfo:Wh,getAnyType:()=>G,getStringType:()=>Ne,getStringLiteralType:Ku,getNumberType:()=>It,getNumberLiteralType:u_,getBigIntType:()=>Dt,createPromiseType:X5,createArrayType:zd,getElementTypeOfArrayType:E5,getBooleanType:()=>gi,getFalseType:n=>n?Kt:En,getTrueType:n=>n?wn:Bn,getVoidType:()=>er,getUndefinedType:()=>Me,getNullType:()=>ue,getESSymbolType:()=>xi,getNeverType:()=>Fr,getOptionalType:()=>H,getPromiseType:()=>o5(!1),getPromiseLikeType:()=>nOe(!1),getAsyncIterableType:()=>{let n=xZ(!1);if(n!==Mo)return n},isSymbolAccessible:wi,isArrayType:Gf,isTupleType:wa,isArrayLikeType:fv,isEmptyAnonymousObjectType:zh,isTypeInvalidDueToUnionDiscriminant:cat,getExactOptionalProperties:Olt,getAllPossiblePropertiesOfTypes:dat,getSuggestedSymbolForNonexistentProperty:cve,getSuggestionForNonexistentProperty:dve,getSuggestedSymbolForNonexistentJSXAttribute:VWe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>uve(n,fl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Gut(n,fl(a),c),getSuggestedSymbolForNonexistentModule:Tee,getSuggestionForNonexistentExport:Vut,getSuggestedSymbolForNonexistentClassMember:GWe,getBaseConstraintOfType:Fd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?OA(n):void 0,resolveName(n,a,c,u){return gl(a,fl(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Vi(FE(n)),getJsxFragmentFactory:n=>{let a=dbe(n);return a&&Vi(Fp(a).escapedText)},getAccessibleSymbolChain:vb,getTypePredicateOfSignature:Ff,resolveExternalModuleName:n=>{let a=Ro(n,ht);return a&&hu(a,a,!0)},resolveExternalModuleSymbol:Ip,tryGetThisTypeAt:(n,a,c)=>{let u=Ro(n);return u&&Gye(u,a,c)},getTypeArgumentConstraint:n=>{let a=Ro(n,ji);return a&&Yft(a)},getSuggestionDiagnostics:(n,a)=>{let c=Ro(n,Yi)||R.fail("Could not determine parsed source file.");if(UN(c,B,e))return Xe;let u;try{return i=a,obe(c),R.assert(!!(Zr(c).flags&1)),u=Hr(u,sA.getDiagnostics(c.fileName)),l6e(H6e(c),(_,g,T)=>{!Vx(_)&&!U6e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||Xe}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Yt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nr,isDeclarationVisible:o_,isPropertyAccessible:fve,getTypeOnlyAliasDeclaration:Lf,getMemberOverrideModifierStatus:D_t,isTypeParameterPossiblyReferenced:p5,typeHasCallOrConstructSignatures:Qee};function qt(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 Oo(c)}function hi(n,a){if(n=Fn(n,LV),n){let c=[],u=[];for(;n;){let g=Zr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,z0(n)){let T=qi(Sr(n)),M=T.type;u.push([T,M]),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,S0);if(c){let _=n;do Zr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}j=!0;let u=hi(n,a);if(j=!1,c){let _=n;do Zr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function Li(n,a,c,u){let _=Ro(n,S0);Zt=c;let g=_?vC(_,a,u):void 0;return Zt=void 0,g}var Eo=new Map,Qn=new Map,Ur=new Map,Er=new Map,on=new Map,Ye=new Map,Wt=new Map,In=new Map,li=new Map,yi=new Map,$i=new Map,Ao=new Map,ua=new Map,za=new Map,vn=new Map,kn=[],Be=new Map,ct=new Set,lt=Ha(4,"unknown"),Rt=Ha(0,"__resolving__"),se=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"),pt=sc(1,"error"),Bt=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=Ie?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"),Kt=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,Kt.regularType=En,Kt.freshType=Kt,En.regularType=En,En.freshType=Kt;var gi=ti([En,Bn]),xi=sc(4096,"symbol"),er=sc(16384,"void"),Fr=sc(131072,"never"),ho=sc(131072,"never",262144,"silent"),Pi=sc(131072,"never",void 0,"implicit"),Ri=sc(131072,"never",void 0,"unreachable"),Kr=sc(67108864,"object"),Io=ti([Ne,It]),xn=ti([Ne,It,xi]),ws=Ce?Ne:xn,$l=ti([It,Dt]),Po=ti([Ne,It,gi,Dt,ue,Me]),ss=FA(["",""],[It]),Bs=u5(n=>n.flags&262144?clt(n):n,()=>"(restrictive mapper)"),_l=u5(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),sd=sc(131072,"never",void 0,"unique literal"),mo=u5(n=>n.flags&262144?sd:n,()=>"(unique literal mapper)"),la,ld=u5(n=>(la&&(n===Ep||n===Cs||n===Ac)&&la(!0),n),()=>"(unmeasurable reporter)"),Ss=u5(n=>(la&&(n===Ep||n===Cs||n===Ac)&&la(!1),n),()=>"(unreliable reporter)"),Ca=Ns(void 0,K,Xe,Xe,Xe),pl=Ns(void 0,K,Xe,Xe,Xe);pl.objectFlags|=2048;var Nf=Ha(2048,"__type");Nf.members=aa();var ac=Ns(Nf,K,Xe,Xe,Xe),xl=Ns(void 0,K,Xe,Xe,Xe),sl=J?ti([Me,ue,xl]):un,Mo=Ns(void 0,K,Xe,Xe,Xe);Mo.instantiations=new Map;var tn=Ns(void 0,K,Xe,Xe,Xe);tn.objectFlags|=262144;var Gs=Ns(void 0,K,Xe,Xe,Xe),ed=Ns(void 0,K,Xe,Xe,Xe),cd=Ns(void 0,K,Xe,Xe,Xe),Ep=_f(),Cs=_f();Cs.constraint=Ep;var Ac=_f(),de=_f(),$=_f();$.constraint=de;var Pe=r5(1,"<>",0,G),yt=vg(void 0,void 0,void 0,Xe,G,void 0,0,0),cn=vg(void 0,void 0,void 0,Xe,pt,void 0,0,0),vr=vg(void 0,void 0,void 0,Xe,G,void 0,0,0),fr=vg(void 0,void 0,void 0,Xe,ho,void 0,0,0),zr=Wh(It,Ne,!0),Di=new Map,Cr={get yieldType(){return R.fail("Not supported")},get returnType(){return R.fail("Not supported")},get nextType(){return R.fail("Not supported")}},Ko=hv(G,G,G),bl=hv(G,G,un),jc=hv(Fr,G,Me),Vs={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:jat,getGlobalIterableType:xZ,getGlobalIterableIteratorType:Uat,getGlobalGeneratorType:Hat,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:Kat,getGlobalIterableType:Rge,getGlobalIterableIteratorType:Jat,getGlobalGeneratorType:qat,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},bs,Uc=new Map,tp=[],wc,im,_u,Re,Lt,Un,go,Jo,$o,Ql,gc,ll,hl,Gl,Zl,Hc,cf,Bu,Du,Pf,z_,Ih,Ug,Wd,Hg,Sp,cg,Gu,Z,rt,Ot,Gt,O,Se,nt,jt,Zn,oi,Xr,no,La,ka,kl,dd,Ic,Tp,Vu,ab,ls,Dm,Cm,Ui,Kg,Zy,Nm,fS,mS,df=new Map,B_=0,uf=0,Jg=0,we=!1,qe=0,Pt,Vt,_n,Jn=[],fn=[],qn=[],mi=0,or=[],ri=[],dr=0,qo=Ku(""),Ua=u_(0),$d=PZ({negative:!1,base10Value:"0"}),ud=[],qg=[],kE=[],w1=0,wE=!1,kD=0,wD=10,OD=[],oA=[],_S=[],O1=[],WD=[],W1=[],F1=[],z1=[],B1=[],aA=[],G1=[],hS=[],gS=[],sb=[],lb=[],dg=[],OE=[],$a=cR(),sA=cR(),FD=Nh(),WE,Xg,xh=new Map,Mf=new Map,ju=new Map,Ap=new Map,np=new Map,ev=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 Qht(),Yt;function V1(n){return n?vn.get(n):void 0}function cb(n,a){return n&&vn.set(n,a),a}function FE(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 _=So(c)?c[0]:c;if(a.localJsxFragmentFactory=l1(_.arguments.factory,ce),Qe(a.localJsxFragmentFactory,yc,Xu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Fp(a.localJsxFragmentFactory).escapedText}let u=dbe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Fp(u).escapedText}else{let c=j1(a);if(c)return a.localJsxNamespace=c}}return WE||(WE="React",B.jsxFactory?(Xg=l1(B.jsxFactory,ce),Qe(Xg,yc),Xg&&(WE=Fp(Xg).escapedText)):B.reactNamespace&&(WE=fl(B.reactNamespace))),Xg||(Xg=L.createQualifiedName(L.createIdentifier(Vi(WE)),"createElement")),WE}function j1(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=So(a)?a[0]:a;if(n.localJsxFactory=l1(c.arguments.factory,ce),Qe(n.localJsxFactory,yc,Xu),n.localJsxFactory)return n.localJsxNamespace=Fp(n.localJsxFactory).escapedText}}function yc(n){return mh(n,-1,-1),Sn(n,yc,void 0)}function tv(n,a){return K6e(n,a),Le}function U1(n,a,...c){let u=n?Pr(n,a,...c):jl(a,...c),_=$a.lookup(u);return _||($a.add(u),u)}function e_(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 $a.add(u),u}function t_(n,a){n?$a.add(a):sA.add({...a,category:2})}function pd(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Gn(a);t_(n,"message"in c?Yc(_,0,0,c,...u):rj(_,c));return}t_(n,"message"in c?Pr(a,c,...u):Pg(Gn(a),a,c))}function zE(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 db(n){let a=Cu(n);return a&&Nn(n.declarations)>1?a.flags&64?gt(n.declarations,nv):oo(n.declarations,nv):!!n.valueDeclaration&&nv(n.valueDeclaration)||Nn(n.declarations)&&oo(n.declarations,nv)}function nv(n){return!!(JS(n)&536870912)}function rv(n,a,c){let u=Pr(n,f._0_is_deprecated,c);return H1(a,u)}function SM(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 Ha(n,a,c){y++;let u=new d(n|33554432,a);return u.links=new Yse,u.links.checkFlags=c||0,u}function n_(n,a){let c=Ha(1,n);return c.links.type=a,c}function dA(n,a){let c=Ha(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 BE(n,a){a.mergeId||(a.mergeId=qse,qse++),OD[a.mergeId]=n}function pA(n){let a=Ha(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)),BE(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&&O2(n,a.valueDeclaration),Hr(n.declarations,a.declarations),a.members&&(n.members||(n.members=aa()),r_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=aa()),r_(n.exports,a.exports,c)),c||BE(n,a)}else if(n.flags&1024)n!==tt&&Ve(a.declarations&&No(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,M=a.declarations&&Gn(a.declarations[0]),W=n.declarations&&Gn(n.declarations[0]),V=f2(M,B.checkJs),te=f2(W,B.checkJs),ye=Si(a);if(M&&W&&bs&&!_&&M!==W){let _e=xg(M.path,W.path)===-1?M:W,je=_e===M?W:M,mt=FC(bs,`${_e.path}|${je.path}`,()=>({firstFile:_e,secondFile:je,conflictingSymbols:new Map})),At=FC(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,_=>{Yg(_,a,c,u.declarations)})}function Yg(n,a,c,u){let _=(lE(n,!1)?fj(n):No(n))||n,g=U1(_,a,c);for(let T of u||Xe){let M=(lE(T,!1)?fj(T):No(T))||T;if(M===_)continue;g.relatedInformation=g.relatedInformation||[];let W=Pr(M,f._0_was_also_declared_here,c),V=Pr(M,f.and_here);Nn(g.relatedInformation)>=5||gt(g.relatedInformation,te=>zN(te,V)===0||zN(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 r_(c,n),r_(c,a),c}function r_(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])!==_){R.assert(_.symbol.declarations.length>1);return}if(E_(_))r_(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=ey(n,n,g,!0);if(!T)return;if(T=Ip(T),T.flags&1920)if(gt(im,M=>T===M.symbol)){let M=om(_.symbol,T,!0);_u||(_u=new Map),_u.set(n.text,M)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=_.symbol.exports)!=null&&u.size)){let M=Xhe(T,"resolvedExports");for(let[W,V]of Oo(_.symbol.exports.entries()))M.has(W)&&!T.exports.has(W)&&om(M.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 yS(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=>$a.add(Pr(T,g,_))}}function qi(n){if(n.flags&33554432)return n.links;let a=ba(n);return oA[a]??(oA[a]=new Yse)}function Zr(n){let a=rs(n);return _S[a]||(_S[a]=new BGe)}function Rh(n){return n.kind===312&&!wp(n)}function Uu(n,a,c){if(c){let u=es(n.get(a));if(u&&(R.assert((Tl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Sd(u)&c))return u}}function TM(n,a){let c=n.parent,u=n.parent.parent,_=Uu(c.locals,a,111551),g=Uu(Nb(u.symbol),a,111551);return _&&g?[_,g]:R.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function $g(n,a){let c=Gn(n),u=Gn(a),_=ph(n);if(c!==u){if(z&&(c.externalModuleIndicator||u.externalModuleIndicator)||!Ds(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)||Dye(a))return!0;if(n.pos<=a.pos&&!(Vo(n)&&A2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let W=uE(a,208);return W?Fn(W,qa)!==Fn(n,qa)||n.posXa(W)&&W.parent.parent===n);if(Vo(n))return!M(n,a,!1);if(dp(n,n.parent))return!(ge&&id(n)===id(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&&id(n)&&(Vo(n)||dp(n,n.parent))?!M(n,a,!0):!0;return!1;function g(W,V){switch(W.parent.parent.kind){case 243:case 248:case 250:if(bS(V,W,_))return!0;break}let te=W.parent.parent;return Fx(te)&&bS(V,te.expression,_)}function T(W,V){return!!Fn(W,te=>{if(te===_)return"quit";if(Xo(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&&(Vo(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 AM(n,a,c){let u=ns(B),_=a;if(To(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let M=Zr(_);return M.declarationRequiresScopeChange===void 0&&(M.declarationRequiresScopeChange=gn(_.parameters,g)||!1),!M.declarationRequiresScopeChange}return!1;function g(M){return T(M.name)||!!M.initializer&&T(M.initializer)}function T(M){switch(M.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(M.name);case 172:return pc(M)?!ge:T(M.name);default:return TV(M)||Ud(M)?u<7:qa(M)&&M.dotDotDotToken&&tm(M.parent)?u<4:ji(M)?!1:Bo(M,T)||!1}}}function ub(n){return cT(n)&&Cg(n.type)||gP(n)&&Cg(n.typeExpression)}function gl(n,a,c,u,_,g,T=!1,M=!0){return Bp(n,a,c,u,_,g,T,M,Uu)}function Bp(n,a,c,u,_,g,T,M,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"&&ub(n))return;if(l2(n)&&mt&&n.name===mt&&(mt=n,n=n.parent),ch(n)&&n.locals&&!Rh(n)&&(je=W(n.locals,a,c))){let Yn=!0;if(Xo(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&&(AM(je,n,mt)?Yn=!1:je.flags&1&&(Yn=mt.kind===169||mt===n.type&&!!Fn(je.valueDeclaration,To)))):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 xo=mR(je);if(xo&&je.flags&c&&xo.escapedName===a)break e;je=void 0}let $n=Yn.get(a);if($n&&$n.flags===2097152&&(dl($n,281)||dl($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(ff(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!na(n)){let $n=ty(n.parent);$n&&$n.locals&&W($n.locals,a,c&111551)&&(R.assertNode(n,Vo),rn=n)}break;case 263:case 231:case 264:if(je=W(Sr(n).members||K,a,c&788968)){if(!Qg(je,n)){je=void 0;break}if(mt&&na(mt)){u&&Ve(Mn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if($c(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(di($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,(di(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=Ft;break e}break;case 218:if(c&3&&a==="arguments"){je=Ft;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&&(Xc(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&&Yo(mt))&&(sn||(sn=n));break;case 208:mt&&(mt===n.initializer||mt===n.name&&Yo(mt))&&M0(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}pb(n)&&(At=n),mt=n,n=nm(n)?QF(n)||n.parent:($m(n)||H4(n))&&cE(n)||n.parent}if(g&&je&&(!At||je!==At.symbol)&&(je.isReferenced|=c),!je){if(mt&&(R.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&&Su(_e.parent,!1))return _t;function Ln(){return rn&&!ge?(Ve(Mn,Mn&&rn.type&&JL(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,Is(rn.name),Pm(_)),!0):!1}if(je){if(u&&Ln())return}else{u&&r(()=>{if(!Mn||Mn.parent.kind!==331&&!vS(Mn,a,_)&&!Ln()&&!fA(Mn)&&!J1(Mn,a,c)&&!iv(Mn,a)&&!mA(Mn,a,c)&&!GD(Mn,a,c)&&!fg(Mn,a,c)){let Yn,jn;if(_&&(jn=zut(_),jn&&Ve(Mn,u,Pm(_),jn)),!jn&&M&&kD{var Yn;if(Mn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let jn=mf(je);(jn.flags&2||jn.flags&32||jn.flags&384)&&Ys(jn,Mn)}if(je&&On&&(c&111551)===111551&&!(_e.flags&16777216)){let jn=es(je);Nn(jn.declarations)&&oo(jn.declarations,$n=>zk($n)||Yi($n)&&!!$n.symbol.globalExports)&&pd(!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,Is(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,Is(sn.name),Is(Mn))}if(je&&Mn&&c&111551&&je.flags&2097152&&!(je.flags&111551)&&!mE(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,xo=Vi(a);ug(Ve(Mn,$n,xo),jn,xo)}}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 xo=(Yn=$n.declarations)==null?void 0:Yn.find(vo=>vo.kind===276||vo.kind===273||vo.kind===274||vo.kind===271);xo&&!t2(xo)&&Ve(xo,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 ug(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)||(Fs(n)||n.kind===172&&!na(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Qr(n,1024)?!0:!_T(n)}function pb(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 Co(n)?Vi(n):Is(n)}function Qg(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 vS(n,a,c){if(!Fe(n)||n.escapedText!==a||J6e(n)||TT(n))return!1;let u=wu(n,!1,!1),_=u;for(;_;){if(di(_.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&&!na(_)){let M=$s(g).thisType;if(ha(M,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=pg(n);return a&&js(a,64,!0)?(Ve(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,uc(a)),!0):!1}function pg(n){switch(n.kind){case 80:case 211:return n.parent?pg(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(gl(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if(Au(g)){R.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");let T=g.right.escapedText;if(ha($s(_),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 fg(n,a,c){if(c&788584){let u=Vl(gl(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 iv(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&&ef(g)){let T=g.token,M=g.parent.kind;M===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)):M===263&&T===96?Ve(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):M===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(gl(n,a,788544,void 0,void 0,!1)),_=u&&Sd(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=>Xa(u)||_p(u)?!1:gp(u)||"quit");if(c&&c.members.length===1){let u=$s(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(gl(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(gl(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 Ys(n,a){var c;if(R.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(_)||di(_)||_.kind===266);if(u===void 0)return R.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&33554432)&&!$g(u,a)){let _,g=Is(No(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):(R.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 bS(n,a,c){return!!a&&!!Fn(n,u=>u===a||(u===c||Xo(u)&&(!_T(u)||Bc(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,fb)}function fb(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)||ur(n)&&zl(n)===2&&oR(n)||Ms(n)&&ur(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&&D0(n)||n.kind===208&&D0(n.parent.parent)}function UD(n){return H2(n)||Ls(n)&&$_(n)}function hA(n,a){let c=_b(n);if(c){let _=hR(c.expression).arguments[0];return Fe(c.name)?Vl(ha(wwe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){let _=hu(n,dj(n)||gN(n)),g=Ip(_);return rp(n,_,g,!1),g}let u=X1(n.moduleReference,a);return IM(n,u),u}function IM(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 mr(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 td(n){return Ml(n)&&!n.isExportEquals||Qr(n,2048)||Kd(n)||vh(n)}function Qi(n){return as(n)?e.getModeForUsageLocation(Gn(n),n):void 0}function pf(n,a){return n===99&&a===1}function ov(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=pf(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=mr(a,"default",void 0,!0);return!(g&>(g.declarations,td)||mr(a,fl("__esModule"),void 0,c))}return cu(n)?typeof n.externalModuleIndicator!="object"&&!mr(a,fl("__esModule"),void 0,c):av(a)}function ar(n,a){let c=hu(n,n.parent.moduleSpecifier);if(c)return gA(c,n,a)}function gA(n,a,c){var u;let _;pN(n)?_=n:_=mr(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Yi),T=GE(a);if(!T)return _;let M=ov(T),W=V_(g,n,c,T);if(!_&&!W&&!M)if(av(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 yh(a)?Kc(n,a):yA(n,n,a,yI(a)&&a.propertyName||a.name);else if(W||M){let V=Ip(n,c)||Vl(n,c);return rp(a,n,V,!1),V}return rp(a,_,void 0,!1),_}function GE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return bh(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 R.assertNever(n)}}function Kc(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 M=(_=T.declarations)==null?void 0:_.find(W=>{var V,te;return!!(Xl(W)&&W.moduleSpecifier&&((te=(V=hu(W,W.moduleSpecifier))==null?void 0:V.exports)!=null&&te.has("default")))});M&&Pa(g,Pr(M,f.export_Asterisk_does_not_re_export_a_default))}}}function Dh(n,a){let c=n.parent.parent.moduleSpecifier,u=hu(n,c),_=ip(u,c,a,!1);return rp(n,u,_,!1),_}function Lm(n,a){let c=n.parent.moduleSpecifier,u=c&&hu(n,c),_=c&&ip(u,c,a,!1);return rp(n,u,_,!1),_}function ES(n,a){if(n===lt&&a===lt)return lt;if(n.flags&790504)return n;let c=Ha(n.flags|a.flags,n.escapedName);return R.assert(n.declarations||a.declarations),c.declarations=_0(bo(n.declarations,a.declarations),Iy),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 SS(n,a,c,u){var _;if(n.flags&1536){let g=xp(n).get(a.escapedText),T=Vl(g,u),M=(_=qi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return rp(c,g,T,!1,M,a.escapedText),T}}function mb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Vl(ha(Ti(c),a))}}function Zg(n,a,c=!1){var u;let _=dj(n)||n.moduleSpecifier,g=hu(n,_),T=!wr(a)&&a.propertyName||a.name;if(!Fe(T))return;let M=T.escapedText==="default"&&q,W=ip(g,_,!1,M);if(W&&T.escapedText){if(pN(g))return g;let V;g&&g.exports&&g.exports.get("export=")?V=ha(sr(W),T.escapedText,!0):V=mb(W,T.escapedText),V=Vl(V,c);let te=SS(W,T,a,c);if(te===void 0&&T.escapedText==="default"){let _e=(u=g.declarations)==null?void 0:u.find(Yi);(ov(_)||V_(_e,g,c,_))&&(te=Ip(g,c)||Vl(g,c))}let ye=te&&V&&te!==V?ES(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=Is(u),M=Tee(u,a);if(M!==void 0){let W=Si(M),V=Ve(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,W);M.valueDeclaration&&Pa(V,Pr(M.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 M=(T=(g=ii(u.valueDeclaration,ch))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),W=u.exports;if(M){let V=W?.get("export=");if(V)i_(V,M)?VE(n,a,c,_):Ve(a,f.Module_0_has_no_exported_member_1,_,c);else{let te=W?Vr(uge(W),_e=>!!i_(_e,M)):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);M.declarations&&Pa(ye,...mn(M.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 VE(n,a,c,u){if(z>=5){let _=_h(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 _=_h(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 _=_h(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 mg(n,a){if(Qu(n)&&yr(n.propertyName||n.name)==="default"){let T=GE(n),M=T&&hu(n,T);if(M)return gA(M,n,a)}let c=qa(n)?A_(n):n.parent.parent.parent,u=_b(c),_=Zg(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 _b(n){if(Oi(n)&&n.initializer&&wr(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 jE(n,a,c){if(yr(n.propertyName||n.name)==="default"){let _=GE(n),g=_&&hu(n,_);if(g)return gA(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Zg(n.parent.parent,n,c):js(n.propertyName||n.name,a,!1,c);return rp(n,void 0,u,!1),u}function HD(n,a){let c=Ml(n)?n.expression:n.right,u=TS(c,a);return rp(n,void 0,u,!1),u}function TS(n,a){if($c(n))return tc(n).symbol;if(!Xu(n)&&!Bl(n))return;let c=js(n,901119,!0,a);return c||(tc(n),Zr(n).resolvedSymbol)}function vA(n,a){if(ur(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return TS(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 Dh(n,a);case 280:return Lm(n,a);case 276:case 208:return mg(n,a);case 281:return jE(n,901119,a);case 277:case 226:return HD(n,a);case 270:return q1(n,a);case 304:return js(n.name,901119,!0,a);case 303:return TS(n.initializer,a);case 212:case 211:return vA(n,a);default:return R.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)?Oc(n):n}function Oc(n){R.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 R.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 Oc(n)}function Sd(n,a,c){let u=a&&Lf(n),_=u&&Xl(u),g=u&&(_?hu(u.moduleSpecifier,u.moduleSpecifier,!0):Oc(u.symbol)),T=_&&g?Ch(g):void 0,M=c?0:n.flags,W;for(;n.flags&2097152;){let V=mf(Oc(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])),M|=V.flags,n=V}return M}function rp(n,a,c,u,_,g){if(!n||wr(n))return!1;let T=Sr(n);if(oE(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 M=qi(T);return UE(M,a,u)||UE(M,c,u)}function UE(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,oE);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(Ch(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Oc(c.typeOnlyDeclaration.symbol);return Sd(u)&a?c.typeOnlyDeclaration:void 0}}function hb(n){if(!ft)return;let a=Sr(n),c=Oc(a);c&&(c===lt||Sd(a,!0)&111551&&!$8(c))&&gb(a)}function gb(n){R.assert(ft);let a=qi(n);if(!a.referenced){a.referenced=!0;let c=Mm(n);if(!c)return R.fail();Qx(c)&&Sd(Vl(n))&111551&&tc(c.moduleReference)}}function nd(n){let a=qi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function X1(n,a){return n.kind===80&&LN(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?js(n,1920,!1,a):(R.assert(n.parent.kind===271),js(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(;Au(n.parent);)n=n.parent;return n}function TA(n){let a=Fp(n),c=gl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Au(a.parent);){let u=sr(c);if(c=ha(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function js(n,a,c,u,_){if(Fl(n))return;let g=1920|(ir(n)?a&111551:0),T;if(n.kind===80){let M=a===g||qs(n)?f.Cannot_find_namespace_0:D8e(Fp(n)),W=ir(n)&&!qs(n)?KD(n,a):void 0;if(T=es(gl(_||n,n.escapedText,a,c||W?void 0:M,n,!0,!1)),!T)return es(W)}else if(n.kind===166||n.kind===211){let M=n.kind===166?n.left:n.expression,W=n.kind===166?n.right:n.name,V=js(M,g,c,!1,_);if(!V||Fl(W))return;if(V===lt)return V;if(V.valueDeclaration&&ir(V.valueDeclaration)&&pu(B)!==100&&Oi(V.valueDeclaration)&&V.valueDeclaration.initializer&&pFe(V.valueDeclaration.initializer)){let te=V.valueDeclaration.initializer.arguments[0],ye=hu(te,te);if(ye){let _e=Ip(ye);_e&&(V=_e)}}if(T=es(Uu(xp(V),W.escapedText,a)),!T&&V.flags&2097152&&(T=es(Uu(xp(Oc(V)),W.escapedText,a))),!T){if(!c){let te=Vp(V),ye=Is(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=Au(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&&Au(n.parent)){let At=es(Uu(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 R.assertNever(n,"Unknown entity name kind.");return R.assert((Tl(T)&1)===0,"Should never get an instantiated symbol here."),!qs(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&rp(Sj(n),T,void 0,!0),T.flags&a||u?T:Oc(T)}function KD(n,a){if(AZ(n.parent)){let c=HE(n.parent);if(c)return gl(c,n.escapedText,a,void 0,n,!0)}}function HE(n){if(Fn(n,_=>zx(_)||_.flags&16777216?qf(_):"quit"))return;let c=vT(n);if(c&&Qc(c)&&w2(c.expression)){let _=Sr(c.expression.left);if(_)return AS(_)}if(c&&Ls(c)&&w2(c.parent)&&Qc(c.parent.parent)){let _=Sr(c.parent.left);if(_)return AS(_)}if(c&&(bm(c)||mc(c))&&ur(c.parent.parent)&&zl(c.parent.parent)===6){let _=Sr(c.parent.parent.left);if(_)return AS(_)}let u=dE(n);if(u&&Xo(u)){let _=Sr(u);return _&&_.valueDeclaration}}function AS(n){let a=n.parent.valueDeclaration;return a?(yN(a)?AI(a):dT(a)?N2(a):void 0)||a:void 0}function xM(n){let a=n.valueDeclaration;if(!a||!ir(a)||n.flags&524288||lE(a,!1))return;let c=Oi(a)?N2(a):AI(a);if(c){let u=ff(c);if(u)return bve(u,n)}}function hu(n,a,c){let _=pu(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 ey(n,a,c?void 0:_)}function ey(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,M,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,xo=jC(a,"@types/");Ve(u,$n,xo,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=Ov(n)?n:void 0)==null?void 0:T.argument.literal)||(Oi(n)&&n.initializer&&Su(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((M=Fn(n,Op))==null?void 0:M.arguments[0])||((W=Fn(n,Mc))==null?void 0:W.moduleSpecifier)||((V=Fn(n,sE))==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=pu(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&&bd(a)){let $n=((_e=Fn(n,Mc))==null?void 0:_e.importClause)||Fn(n,Um(Zc,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(R.checkDefined(_6(a))))}else if(On.resolvedUsingTsExtension&&!XR(B,sn.fileName)){let $n=((je=Fn(n,Mc))==null?void 0:je.importClause)||Fn(n,Um(Zc,Xl));if(!($n?.isTypeOnly||Fn(n,ig))){let xo=R.checkDefined(_6(a));Ve(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,xo)}}if(Yn.symbol){if(On.isExternalLibraryImport&&!VN(On.extension)&&Y1(!1,u,sn,Mn,On,a),an===3||an===99){let $n=sn.impliedNodeFormat===1&&!Fn(n,Op)||!!Fn(n,Zc),xo=Fn(n,vo=>ig(vo)||Xl(vo)||Mc(vo));if($n&&Yn.impliedNodeFormat===99&&!Woe(xo))if(Fn(n,Zc))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 vo,Wo=Og(sn.fileName);if(Wo===".ts"||Wo===".js"||Wo===".tsx"||Wo===".jsx"){let fo=sn.packageJsonScope,Rc=Wo===".ts"?".mts":Wo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?Rc?vo=Fo(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")):vo=Fo(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?vo=Fo(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):vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}$a.add(Pg(Gn(u),u,Fo(vo,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,xo=>xo.pattern,a);if($n){let xo=_u&&_u.get(a);return es(xo||$n.symbol)}}if(On&&!VN(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),xo=an===3||an===99;if(!_E(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&&xo&&$n){let vo=_o(a,ai(sn.path)),Wo=(mt=zD.find(([fo,Rc])=>e.fileExists(vo+fo)))==null?void 0:mt[1];Wo?Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Wo):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 vo=bF(sn,e,a,Mn,a);pd(!0,u,Fo(vo,c,a))}else Ve(u,c,a)}}return;function jn($n){let xo=ck(a,$n);if(A6(z)||Mn===99){let vo=bd(a)&&XR(B);return xo+($n===".mts"||$n===".d.mts"?vo?".mts":".mjs":$n===".cts"||$n===".d.mts"?vo?".cts":".cjs":vo?".ts":".js")}return xo}}function Y1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let M;!qc(T)&&_&&(M=bF(c,e,T,u,_.name)),pd(n,a,Fo(M,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)&&!dl(g,312)){let M=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,M),g}let T=a.parent;if(Mc(T)&&nR(T)||Op(T)){let M=Op(T)?T.arguments[0]:T.moduleSpecifier,W=sr(g),V=dFe(W,g,n,M);if(V)return Q1(g,V,T);let te=(_=n?.declarations)==null?void 0:_.find(Yi),ye=te&&pf(Qi(M),te.impliedNodeFormat);if(_h(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?uFe(W,g,n,M):Eve(g,g.parent);return Q1(g,je,T)}}}}return g}function Q1(n,a,c){let u=Ha(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 _=c_(a);return u.links.type=Ns(u,_.members,Xe,Xe,_.indexInfos),u}function av(n){return n.exports.get("export=")!==void 0}function AA(n){return uge(Ch(n))}function JD(n){let a=AA(n),c=Ip(n);if(c!==n){let u=sr(c);yb(u)&&Hr(a,_s(u))}return a}function qD(n,a){Ch(n).forEach((_,g)=>{RS(g)||a(_,g)});let u=Ip(n);if(u!==n){let _=sr(u);yb(_)&&lat(_,(g,T)=>{a(g,T)})}}function IA(n,a){let c=Ch(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 yb(_)?ha(_,n):void 0}function yb(n){return!(n.flags&402784252||kr(n)&1||Gf(n)||wa(n))}function xp(n){return n.flags&6256?Xhe(n,"resolvedExports"):n.flags&1536?Ch(n):n.exports||K}function Ch(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 M=c.get(g);M.exportsWithDuplicate?M.exportsWithDuplicate.push(u):M.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,M,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=hu(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)$a.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 M?.isTypeOnly&&(c??(c=new Map),V.forEach((ye,_e)=>c.set(_e,M))),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 ff(n){return b_(n)?Sr(n):void 0}function Cu(n){return es(n.parent&&fZ(n.parent))}function IS(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&ff(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 M of c.imports){if(qs(M))continue;let W=hu(a,M,!0);!W||!_g(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 M of T){if(!oc(M))continue;let W=Sr(M);_g(W,n)&&(g=Tn(g,W))}return _.extendedContainers=g||Xe}function KE(n,a,c){let u=Cu(n);if(u&&!(n.flags&262144))return W(u);let _=to(n.declarations,te=>{if(!Pd(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($c(te)&&ur(te.parent)&&te.parent.operatorToken.kind===64&&Ms(te.parent.left)&&Bl(te.parent.left.expression))return $h(te.parent.left)||hT(te.parent.left.expression)?Sr(Gn(te)):(tc(te.parent.left.expression),Zr(te.parent.left.expression).resolvedSymbol)});if(!Nn(_))return;let g=to(_,te=>_g(te,n)?te:void 0),T=[],M=[];for(let te of g){let[ye,..._e]=W(te);T=Tn(T,ye),M=Hr(M,_e)}return bo(T,M);function W(te){let ye=to(te.declarations,V),_e=a&&$D(n,a),je=xS(te,c);if(a&&te.flags&ny(c)&&vb(te,a,1920,!1))return Tn(bo(bo([te],ye),_e),je);let mt=!(te.flags&ny(c))&&te.flags&788968&&$s(te).flags&524288&&c===111551?CS(a,rn=>zc(rn,sn=>{if(sn.flags&ny(c)&&sr(sn)===$s(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 xS(n,a){let c=!!Nn(n.declarations)&&Ga(n.declarations);if(a&111551&&c&&c.parent&&Oi(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&&i_(u,a)?c:void 0}function _g(n,a){if(n===Cu(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&i_(c,a))return n;let u=xp(n),_=u.get(a.escapedName);return _&&i_(_,a)?_:zc(u,g=>{if(i_(g,a))return g})}function i_(n,a){if(es(Vl(es(n)))===es(Vl(es(a))))return n}function mf(n){return es(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function wm(n,a){return!!(n.flags&111551||n.flags&2097152&&Sd(n,!a)&111551)}function ty(n){let a=n.members;for(let c of a)if(c.kind===176&&Hf(c.body))return c}function hg(n){var a;let c=new p(Yt,n);return m++,c.id=m,(a=rr)==null||a.recordType(c),c}function gg(n,a){let c=hg(n);return c.symbol=a,c}function Z1(n){return new p(Yt,n)}function sc(n,a,c=0,u){QD(a,u);let _=hg(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function QD(n,a){let c=`${n},${a??""}`;st.has(c)&&R.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=gg(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 Nh(){return ti(Oo(EK.keys(),Ku))}function _f(n){return gg(262144,n)}function RS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function JE(n){let a;return n.forEach((c,u)=>{ex(c,u)&&(a||(a=[])).push(c)}),a||Xe}function ex(n,a){return!RS(a)&&wm(n)}function DA(n){let a=JE(n),c=vZ(n);return c?bo(a,[c]):a}function hf(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=JE(a)),g}function Ns(n,a,c,u,_){return hf(kf(16,n),a,c,u,_)}function DS(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=Ns(n.symbol,n.members,n.callSignatures,gt(a)?a:Xe,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function CS(n,a){let c;for(let u=n;u;u=u.parent){if(ch(u)&&u.locals&&!Rh(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,M)=>{T.flags&788968&&(g||(g=aa())).set(M,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(be,void 0,!0)}function ny(n){return n===111551?111551:1920}function vb(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=qi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),M=CS(a,(sn,nr,Mn,an)=>an),W=`${u?0:1}|${M&&rs(M)}|${c}`;if(T.has(W))return T.get(W);let V=ba(n),te=_.get(V);te||_.set(V,te=[]);let ye=CS(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!qE(sn,a,nr)||!!vb(sn.parent,a,ny(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]:zc(sn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(b6(On)&&a&&oc(Gn(a)))&&(!u||gt(On.declarations,sE))&&(!Mn||!gt(On.declarations,mie))&&(nr||!dl(On,281))){let Ln=Oc(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,ny(c)))return[sn].concat(On)}}function qE(n,a,c){let u=!1;return CS(a,_=>{let g=es(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!dl(g,281);return g=T?Oc(g):g,(T?Sd(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 ut(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 Lr(n,a,c,u,_,g){if(!Nn(n))return;let T,M=!1;for(let W of n){let V=vb(W,a,u,!1);if(V){T=W;let _e=Nu(V[0],_);if(_e)return _e}if(g&>(W.declarations,Qd)){if(_){M=!0;continue}return{accessibility:0}}let te=KE(W,a,u),ye=Lr(te,a,c,c===W?ny(u):u,_,g);if(ye)return ye}if(M)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:Si(c,a,u),errorModuleName:T!==c?Si(T,a,1920):void 0}}function wi(n,a,c,u){return vi(n,a,c,u,!0)}function vi(n,a,c,u,_){if(n&&a){let g=Lr([n],a,n,c,u,_);if(g)return g;let T=gn(n.declarations,Zi);if(T){let M=Zi(a);if(T!==M)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 Pd(n)||n.kind===312&&wp(n)}function Qd(n){return xF(n)||n.kind===312&&wp(n)}function Nu(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,M;if(!o_(g)){let W=_A(g);if(W&&!Qr(W,32)&&o_(W.parent))return _(g,W);if(Oi(g)&&Pl(g.parent.parent)&&!Qr(g.parent.parent,32)&&o_(g.parent.parent.parent))return _(g,g.parent.parent);if(RF(g)&&!Qr(g,32)&&o_(g.parent))return _(g,g);if(qa(g)){if(n.flags&2097152&&ir(g)&&((T=g.parent)!=null&&T.parent)&&Oi(g.parent.parent)&&((M=g.parent.parent.parent)!=null&&M.parent)&&Pl(g.parent.parent.parent.parent)&&!Qr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&o_(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let V=Fn(g,Pl);return Qr(V,32)?!0:o_(V.parent)?_(g,V):!1}}return!1}return!0}function _(g,T){return a&&(Zr(g).isVisible=!0,c=Ig(c,T)),!0}}function wf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!Xh(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 bb(n,a){let c=wf(n),u=Fp(n),_=gl(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&w0(u)&&wi(Sr(wu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&Nu(_,!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 _?M(_).getText():dN(M);function M(W){let V=T(n,c,a,g),te=a?.kind===312?YK():iS(),ye=a&&Gn(a);return te.writeNode(4,V,ye,W),W}}function Ph(n,a,c=0,u,_){return _?g(_).getText():dN(g);function g(T){let M;c&262144?M=u===1?185:184:M=u===1?180:179;let W=Et.signatureToSignatureDeclaration(n,M,a,CA(c)|70221824|512),V=Rw(),te=a&&Gn(a);return V.writeNode(4,W,te,Oj(T)),T}}function Vn(n,a,c=1064960,u=Q2("")){let _=B.noErrorTruncation||c&1,g=Et.typeToTypeNode(n,a,CA(c)|70221824|(_?1:0));if(g===void 0)return R.fail("should always get typenode");let T=n!==Bt?iS():XK(),M=a&&Gn(a);T.writeNode(4,g,M,u);let W=u.getText(),V=_?K6*2:_k*2;return V&&W&&W.length>=V?W.substr(0,V-3)+"...":W}function tx(n,a){let c=Sb(n.symbol)?Vn(n,n.symbol.valueDeclaration):Vn(n),u=Sb(a.symbol)?Vn(a,a.symbol.valueDeclaration):Vn(a);return c===u&&(c=Eb(n),u=Eb(a)),[c,u]}function Eb(n){return Vn(n,void 0,64)}function Sb(n){return n&&!!n.valueDeclaration&&ht(n.valueDeclaration)&&!zf(n.valueDeclaration)}function CA(n=0){return n&848330095}function NS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Wf(n.symbol)||!!(n.flags&524288)&&!!(kr(n)&16777216))}function U_(){return{typeToTypeNode:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>u(ot,ui)),indexInfoToIndexSignatureDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>te(ot,ui,void 0)),signatureToSignatureDeclaration:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>ye(ot,Te,Ai)),symbolToEntityName:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>fo(ot,Ai,Te,!1)),symbolToExpression:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>Rc(ot,Ai,Te)),symbolToTypeParameterDeclarations:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>On(ot,ui)),symbolToParameterDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>rn(ot,ui)),typeParameterToDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>mt(ot,ui)),symbolTableToDeclarationStatements:(ot,Te,Cn,Dr,ui)=>a(Te,Cn,Dr,Ai=>yl(ot,Ai,ui)),symbolToNode:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>n(ot,Ai,Te))};function n(ot,Te,Cn){if(Te.flags&1073741824){if(ot.valueDeclaration){let ui=No(ot.valueDeclaration);if(ui&&Xa(ui))return ui}let Dr=qi(ot).nameType;if(Dr&&Dr.flags&9216)return Te.enclosingDeclaration=Dr.symbol.valueDeclaration,L.createComputedPropertyName(Rc(Dr.symbol,Te,Cn))}return Rc(ot,Te,Cn)}function a(ot,Te,Cn,Dr){R.assert(ot===void 0||(ot.flags&16)===0);let ui=Cn?.trackSymbol?Cn.moduleResolverHost:Te&134217728?VGe(e):void 0,Ai={enclosingDeclaration:ot,flags:Te||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,ui);let Ii=Dr(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:_k)}function u(ot,Te){let Cn=Te.flags,Dr=_(ot,Te);return Te.flags=Cn,Dr}function _(ot,Te){var Cn,Dr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=Te.flags&8388608;if(Te.flags&=-8388609,!ot){if(!(Te.flags&262144)){Te.encounteredError=!0;return}return Te.approximateLength+=3,L.createKeywordTypeNode(133)}if(Te.flags&536870912||(ot=d_(ot)),ot.flags&1)return ot.aliasSymbol?L.createTypeReferenceNode($n(ot.aliasSymbol),W(ot.aliasTypeArguments,Te)):ot===Bt?iP(L.createKeywordTypeNode(133),3,"unresolved"):(Te.approximateLength+=3,L.createKeywordTypeNode(ot===dn?141:133));if(ot.flags&2)return L.createKeywordTypeNode(159);if(ot.flags&4)return Te.approximateLength+=6,L.createKeywordTypeNode(154);if(ot.flags&8)return Te.approximateLength+=6,L.createKeywordTypeNode(150);if(ot.flags&64)return Te.approximateLength+=6,L.createKeywordTypeNode(163);if(ot.flags&16&&!ot.aliasSymbol)return Te.approximateLength+=7,L.createKeywordTypeNode(136);if(ot.flags&1056){if(ot.symbol.flags&8){let An=Cu(ot.symbol),ei=xo(An,Te,788968);if($s(An)===ot)return ei;let Gi=vl(ot.symbol);return $p(Gi,0)?bi(ei,L.createTypeReferenceNode(Gi,void 0)):ig(ei)?(ei.isTypeOf=!0,L.createIndexedAccessTypeNode(ei,L.createLiteralTypeNode(L.createStringLiteral(Gi)))):If(ei)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(ei.typeName),L.createLiteralTypeNode(L.createStringLiteral(Gi))):R.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return xo(ot.symbol,Te,788968)}if(ot.flags&128)return Te.approximateLength+=ot.value.length+2,L.createLiteralTypeNode(cr(L.createStringLiteral(ot.value,!!(Te.flags&268435456)),16777216));if(ot.flags&256){let An=ot.value;return Te.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(ot.flags&2048)return Te.approximateLength+=F0(ot.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(ot.value));if(ot.flags&512)return Te.approximateLength+=ot.intrinsicName.length,L.createLiteralTypeNode(ot.intrinsicName==="true"?L.createTrue():L.createFalse());if(ot.flags&8192){if(!(Te.flags&1048576)){if(ut(ot.symbol,Te.enclosingDeclaration))return Te.approximateLength+=6,xo(ot.symbol,Te,111551);Te.tracker.reportInaccessibleUniqueSymbolError&&Te.tracker.reportInaccessibleUniqueSymbolError()}return Te.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(ot.flags&16384)return Te.approximateLength+=4,L.createKeywordTypeNode(116);if(ot.flags&32768)return Te.approximateLength+=9,L.createKeywordTypeNode(157);if(ot.flags&65536)return Te.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(ot.flags&131072)return Te.approximateLength+=5,L.createKeywordTypeNode(146);if(ot.flags&4096)return Te.approximateLength+=6,L.createKeywordTypeNode(155);if(ot.flags&67108864)return Te.approximateLength+=6,L.createKeywordTypeNode(151);if(YN(ot))return Te.flags&4194304&&(!Te.encounteredError&&!(Te.flags&32768)&&(Te.encounteredError=!0),(Dr=(Cn=Te.tracker).reportInaccessibleThisError)==null||Dr.call(Cn)),Te.approximateLength+=4,L.createThisTypeNode();if(!ui&&ot.aliasSymbol&&(Te.flags&16384||oe(ot.aliasSymbol,Te.enclosingDeclaration))){let An=W(ot.aliasTypeArguments,Te);return RS(ot.aliasSymbol.escapedName)&&!(ot.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Nn(An)===1&&ot.aliasSymbol===Jo.symbol?L.createArrayTypeNode(An[0]):xo(ot.aliasSymbol,Te,788968,An)}let Ai=kr(ot);if(Ai&4)return R.assert(!!(ot.flags&524288)),ot.node?Xt(ot,Wn):Wn(ot);if(ot.flags&262144||Ai&3){if(ot.flags&262144&&zo(Te.inferTypeParameters,ot)){Te.approximateLength+=vl(ot.symbol).length+6;let ei,Gi=Pu(ot);if(Gi){let co=zwe(ot,!0);co&&uy(Gi,co)||(Te.approximateLength+=9,ei=Gi&&u(Gi,Te))}return L.createInferTypeNode(je(ot,Te,ei))}if(Te.flags&4&&ot.flags&262144){let ei=Wo(ot,Te);return Te.approximateLength+=yr(ei).length,L.createTypeReferenceNode(L.createIdentifier(yr(ei)),void 0)}if(ot.symbol)return xo(ot.symbol,Te,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],Te);let ei=W(An,Te,!0);if(ei&&ei.length>0)return ot.flags&1048576?L.createUnionTypeNode(ei):L.createIntersectionTypeNode(ei);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(Ai&48)return R.assert(!!(ot.flags&524288)),Qt(ot);if(ot.flags&4194304){let An=ot.type;Te.approximateLength+=6;let ei=u(An,Te);return L.createTypeOperatorNode(143,ei)}if(ot.flags&134217728){let An=ot.texts,ei=ot.types,Gi=L.createTemplateHead(An[0]),co=L.createNodeArray(mn(ei,(ca,vc)=>L.createTemplateLiteralTypeSpan(u(ca,Te),(vcIi(An));if(ot.flags&33554432){let An=u(ot.baseType,Te),ei=OM(ot)&&Age("NoInfer",!1);return ei?xo(ei,Te,788968,[An]):An}return R.fail("Should be unreachable.");function Ii(An){let ei=u(An.checkType,Te);if(Te.approximateLength+=15,Te.flags&4&&An.root.isDistributive&&!(An.checkType.flags&262144)){let Dl=_f(Ha(262144,"T")),os=Wo(Dl,Te),Dc=L.createTypeReferenceNode(os);Te.approximateLength+=37;let Ks=VA(An.root.checkType,Dl,An.mapper),__=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let Ze=u(io(An.root.extendsType,Ks),Te);Te.inferTypeParameters=__;let vt=Br(io(Ti(An.root.node.trueType),Ks)),$t=Br(io(Ti(An.root.node.falseType),Ks));return L.createConditionalTypeNode(ei,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Dc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(os)),u(An.checkType,Te),L.createConditionalTypeNode(Dc,Ze,vt,$t),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}let Gi=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let co=u(An.extendsType,Te);Te.inferTypeParameters=Gi;let ca=Br(i0(An)),vc=Br(o0(An));return L.createConditionalTypeNode(ei,co,ca,vc)}function Br(An){var ei,Gi,co;return An.flags&1048576?(ei=Te.visitedTypes)!=null&&ei.has(yu(An))?(Te.flags&131072||(Te.encounteredError=!0,(co=(Gi=Te.tracker)==null?void 0:Gi.reportCyclicStructureError)==null||co.call(Gi)),g(Te)):Xt(An,ca=>u(ca,Te)):u(An,Te)}function Tr(An){return!!A8(An)}function it(An){return!!An.target&&Tr(An.target)&&!Tr(An)}function kt(An){var ei;R.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)&&Te.flags&4&&!(gf(An).flags&262144&&((ei=Pu(gf(An)))==null?void 0:ei.flags)&4194304);if(aC(An)){if(it(An)&&Te.flags&4){let vt=_f(Ha(262144,"T")),$t=Wo(vt,Te);vc=L.createTypeReferenceNode($t)}ca=L.createTypeOperatorNode(143,vc||u(LA(An),Te))}else if(Dl){let vt=_f(Ha(262144,"T")),$t=Wo(vt,Te);vc=L.createTypeReferenceNode($t),ca=vc}else ca=u(gf(An),Te);let os=je(l_(An),Te,ca),Dc=An.declaration.nameType?u(lv(An),Te):void 0,Ks=u(Gb(sy(An),!!(wh(An)&4)),Te),__=L.createMappedTypeNode(Gi,os,Dc,co,Ks,void 0);Te.approximateLength+=10;let Ze=cr(__,1);if(it(An)&&Te.flags&4){let vt=io(Pu(Ti(An.declaration.typeParameter.constraint.type))||un,An.mapper);return L.createConditionalTypeNode(u(LA(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),vt.flags&2?void 0:u(vt,Te))),Ze,L.createKeywordTypeNode(146))}else if(Dl)return L.createConditionalTypeNode(u(gf(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(vc.typeName),L.createTypeOperatorNode(143,u(LA(An),Te)))),Ze,L.createKeywordTypeNode(146));return Ze}function Qt(An){var ei,Gi;let co=An.id,ca=An.symbol;if(ca){if(!!(kr(An)&8388608)){let Ks=An.node;if(YI(Ks)&&Ti(Ks)===An){let __=wl(Te,Ks);if(__)return __}return(ei=Te.visitedTypes)!=null&&ei.has(co)?g(Te):Xt(An,ln)}let os=NS(An)?788968:111551;if($_(ca.valueDeclaration))return xo(ca,Te,os);if(ca.flags&32&&!lZ(ca)&&!(ca.valueDeclaration&&di(ca.valueDeclaration)&&Te.flags&2048&&(!Sc(ca.valueDeclaration)||wi(ca,Te.enclosingDeclaration,os,!1).accessibility!==0))||ca.flags&896||vc())return xo(ca,Te,os);if((Gi=Te.visitedTypes)!=null&&Gi.has(co)){let Dc=UB(An);return Dc?xo(Dc,Te,788968):g(Te)}else return Xt(An,ln)}else return ln(An);function vc(){var Dl;let os=!!(ca.flags&8192)&>(ca.declarations,Ks=>na(Ks)),Dc=!!(ca.flags&16)&&(ca.parent||gn(ca.declarations,Ks=>Ks.parent.kind===312||Ks.parent.kind===268));if(os||Dc)return(!!(Te.flags&4096)||((Dl=Te.visitedTypes)==null?void 0:Dl.has(co)))&&(!(Te.flags&8)||ut(ca,Te.enclosingDeclaration))}}function Xt(An,ei){var Gi,co,ca;let vc=An.id,Dl=kr(An)&16&&An.symbol&&An.symbol.flags&32,os=kr(An)&4&&An.node?"N"+rs(An.node):An.flags&16777216?"N"+rs(An.root.node):An.symbol?(Dl?"+":"")+ba(An.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),os&&!Te.symbolDepth&&(Te.symbolDepth=new Map);let Dc=Te.enclosingDeclaration&&Zr(Te.enclosingDeclaration),Ks=`${yu(An)}|${Te.flags}`;Dc&&(Dc.serializedTypes||(Dc.serializedTypes=new Map));let __=(Gi=Dc?.serializedTypes)==null?void 0:Gi.get(Ks);if(__)return(co=__.trackedSymbols)==null||co.forEach(([Gr,zi,wo])=>Te.tracker.trackSymbol(Gr,zi,wo)),__.truncating&&(Te.truncating=!0),Te.approximateLength+=__.addedLength,bn(__.node);let Ze;if(os){if(Ze=Te.symbolDepth.get(os)||0,Ze>10)return g(Te);Te.symbolDepth.set(os,Ze+1)}Te.visitedTypes.add(vc);let vt=Te.trackedSymbols;Te.trackedSymbols=void 0;let $t=Te.approximateLength,Hn=ei(An),Ar=Te.approximateLength-$t;return!Te.reportedDiagnostic&&!Te.encounteredError&&((ca=Dc?.serializedTypes)==null||ca.set(Ks,{node:Hn,truncating:Te.truncating,addedLength:Ar,trackedSymbols:Te.trackedSymbols})),Te.visitedTypes.delete(vc),os&&Te.symbolDepth.set(os,Ze),Te.trackedSymbols=vt,Hn;function bn(Gr){return!qs(Gr)&&Ro(Gr)===Gr?Gr:at(L.cloneNode(Sn(Gr,bn,void 0,_r)),Gr)}function _r(Gr,zi,wo,pa,fa){return Gr&&Gr.length===0?at(L.createNodeArray(void 0,Gr.hasTrailingComma),Gr):zn(Gr,zi,wo,pa,fa)}}function ln(An){if(Hu(An)||An.containsError)return kt(An);let ei=c_(An);if(!ei.properties.length&&!ei.indexInfos.length){if(!ei.callSignatures.length&&!ei.constructSignatures.length)return Te.approximateLength+=2,cr(L.createTypeLiteralNode(void 0),1);if(ei.callSignatures.length===1&&!ei.constructSignatures.length){let Dl=ei.callSignatures[0];return ye(Dl,184,Te)}if(ei.constructSignatures.length===1&&!ei.callSignatures.length){let Dl=ei.constructSignatures[0];return ye(Dl,185,Te)}}let Gi=jr(ei.constructSignatures,Dl=>!!(Dl.flags&4));if(gt(Gi)){let Dl=mn(Gi,WA);return ei.callSignatures.length+(ei.constructSignatures.length-Gi.length)+ei.indexInfos.length+(Te.flags&2048?vv(ei.properties,Dc=>!(Dc.flags&4194304)):Nn(ei.properties))&&Dl.push(DS(ei)),u(ga(Dl),Te)}let co=Te.flags;Te.flags|=4194304;let ca=lo(ei);Te.flags=co;let vc=L.createTypeLiteralNode(ca);return Te.approximateLength+=2,cr(vc,Te.flags&1024?0:1),vc}function Wn(An){let ei=Hs(An);if(An.target===Jo||An.target===$o){if(Te.flags&2){let ca=u(ei[0],Te);return L.createTypeReferenceNode(An.target===Jo?"Array":"ReadonlyArray",[ca])}let Gi=u(ei[0],Te),co=L.createArrayTypeNode(Gi);return An.target===Jo?co:L.createTypeOperatorNode(148,co)}else if(An.target.objectFlags&8){if(ei=Nc(ei,(Gi,co)=>Gb(Gi,!!(An.target.elementFlags[co]&2))),ei.length>0){let Gi=dv(An),co=W(ei.slice(0,Gi),Te);if(co){let{labeledElementDeclarations:ca}=An.target;for(let Dl=0;Dl0){let Dc=(An.target.typeParameters||Xe).length;vc=W(ei.slice(co,Dc),Te)}let Dl=Te.flags;Te.flags|=16;let os=xo(An.symbol,Te,788968,vc);return Te.flags=Dl,ca?bi(ca,os):os}}}function bi(An,ei){if(ig(An)){let Gi=An.typeArguments,co=An.qualifier;co&&(Fe(co)?Gi!==DT(co)&&(co=By(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,By(L.cloneNode(co.right),Gi)))),Gi=ei.typeArguments;let ca=pi(ei);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=By(L.cloneNode(co),Gi)):Gi!==DT(co.right)&&(co=L.updateQualifiedName(co,co.left,By(L.cloneNode(co.right),Gi))),Gi=ei.typeArguments;let ca=pi(ei);for(let vc of ca)co=L.createQualifiedName(co,vc);return L.updateTypeReferenceNode(An,co,Gi)}}function pi(An){let ei=An.typeName,Gi=[];for(;!Fe(ei);)Gi.unshift(ei.right),ei=ei.left;return Gi.unshift(ei),Gi}function lo(An){if(c(Te))return[L.createPropertySignature(void 0,"...",void 0,void 0)];let ei=[];for(let ca of An.callSignatures)ei.push(ye(ca,179,Te));for(let ca of An.constructSignatures)ca.flags&4||ei.push(ye(ca,180,Te));for(let ca of An.indexInfos)ei.push(te(ca,Te,An.objectFlags&1024?g(Te):void 0));let Gi=An.properties;if(!Gi)return ei;let co=0;for(let ca of Gi){if(co++,Te.flags&2048){if(ca.flags&4194304)continue;Tf(ca)&6&&Te.tracker.reportPrivateInBaseOfClassExpression&&Te.tracker.reportPrivateInBaseOfClassExpression(Vi(ca.escapedName))}if(c(Te)&&co+2!(Wn.flags&32768)),0);for(let Wn of ln){let bi=ye(Wn,173,Te,{name:Br,questionToken:Tr});Cn.push(Xt(bi))}if(ln.length||!Tr)return}let it;T(ot,Te)?it=g(Te):(ui&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(ot)),it=Ai?Es(Te,Ai,ot,Ii):L.createKeywordTypeNode(133),ui&&Te.reverseMappedStack.pop());let kt=m_(ot)?[L.createToken(148)]:void 0;kt&&(Te.approximateLength+=9);let Qt=L.createPropertySignature(kt,Br,Tr,it);Cn.push(Xt(Qt));function Xt(ln){var Wn;let bi=(Wn=ot.declarations)==null?void 0:Wn.find(pi=>pi.kind===355);if(bi){let pi=ZL(bi.comment);pi&&hE(ln,[{kind:3,text:`* + })(name => super[name], (name, value) => super[name] = value);`}}});function mp(e){return e.kind===9}function L4(e){return e.kind===10}function Ca(e){return e.kind===11}function KI(e){return e.kind===12}function XU(e){return e.kind===14}function JI(e){return e.kind===15}function qI(e){return e.kind===16}function YU(e){return e.kind===17}function k4(e){return e.kind===18}function w4(e){return e.kind===26}function iae(e){return e.kind===28}function $U(e){return e.kind===40}function QU(e){return e.kind===41}function kk(e){return e.kind===42}function wk(e){return e.kind===54}function Kv(e){return e.kind===58}function oae(e){return e.kind===59}function O4(e){return e.kind===29}function aae(e){return e.kind===39}function Fe(e){return e.kind===80}function Ki(e){return e.kind===81}function XI(e){return e.kind===95}function W4(e){return e.kind===90}function uP(e){return e.kind===134}function sae(e){return e.kind===131}function ZU(e){return e.kind===135}function lae(e){return e.kind===148}function YI(e){return e.kind===126}function cae(e){return e.kind===128}function dae(e){return e.kind===164}function uae(e){return e.kind===129}function pP(e){return e.kind===108}function fP(e){return e.kind===102}function pae(e){return e.kind===84}function Au(e){return e.kind===166}function Ya(e){return e.kind===167}function ml(e){return e.kind===168}function To(e){return e.kind===169}function Ed(e){return e.kind===170}function _p(e){return e.kind===171}function jo(e){return e.kind===172}function hh(e){return e.kind===173}function Kl(e){return e.kind===174}function Il(e){return e.kind===175}function Ml(e){return e.kind===176}function Qp(e){return e.kind===177}function hp(e){return e.kind===178}function $I(e){return e.kind===179}function Ok(e){return e.kind===180}function j0(e){return e.kind===181}function Wk(e){return e.kind===182}function If(e){return e.kind===183}function gh(e){return e.kind===184}function NR(e){return e.kind===185}function QI(e){return e.kind===186}function gp(e){return e.kind===187}function Fk(e){return e.kind===188}function ZI(e){return e.kind===189}function PR(e){return e.kind===202}function F4(e){return e.kind===190}function z4(e){return e.kind===191}function Jv(e){return e.kind===192}function e1(e){return e.kind===193}function t1(e){return e.kind===194}function PT(e){return e.kind===195}function MT(e){return e.kind===196}function zk(e){return e.kind===197}function LT(e){return e.kind===198}function kT(e){return e.kind===199}function MR(e){return e.kind===200}function qv(e){return e.kind===201}function og(e){return e.kind===205}function eH(e){return e.kind===204}function fae(e){return e.kind===203}function tm(e){return e.kind===206}function U0(e){return e.kind===207}function Xa(e){return e.kind===208}function fu(e){return e.kind===209}function La(e){return e.kind===210}function kr(e){return e.kind===211}function Xs(e){return e.kind===212}function ra(e){return e.kind===213}function H0(e){return e.kind===214}function K0(e){return e.kind===215}function mae(e){return e.kind===216}function Fu(e){return e.kind===217}function ks(e){return e.kind===218}function zs(e){return e.kind===219}function _ae(e){return e.kind===220}function LR(e){return e.kind===221}function n1(e){return e.kind===222}function Xv(e){return e.kind===223}function Yv(e){return e.kind===224}function tH(e){return e.kind===225}function pr(e){return e.kind===226}function kR(e){return e.kind===227}function B4(e){return e.kind===228}function G4(e){return e.kind===229}function qm(e){return e.kind===230}function ed(e){return e.kind===231}function jc(e){return e.kind===232}function Gy(e){return e.kind===233}function Bk(e){return e.kind===234}function nH(e){return e.kind===238}function r1(e){return e.kind===235}function mP(e){return e.kind===236}function $Se(e){return e.kind===237}function V4(e){return e.kind===360}function _P(e){return e.kind===361}function hP(e){return e.kind===239}function hae(e){return e.kind===240}function Ho(e){return e.kind===241}function Ll(e){return e.kind===243}function rH(e){return e.kind===242}function td(e){return e.kind===244}function wT(e){return e.kind===245}function QSe(e){return e.kind===246}function ZSe(e){return e.kind===247}function OT(e){return e.kind===248}function j4(e){return e.kind===249}function Gk(e){return e.kind===250}function eTe(e){return e.kind===251}function tTe(e){return e.kind===252}function Sm(e){return e.kind===253}function gae(e){return e.kind===254}function gP(e){return e.kind===255}function J0(e){return e.kind===256}function iH(e){return e.kind===257}function WT(e){return e.kind===258}function nTe(e){return e.kind===259}function Oi(e){return e.kind===260}function Uc(e){return e.kind===261}function Tc(e){return e.kind===262}function Ac(e){return e.kind===263}function mu(e){return e.kind===264}function Tm(e){return e.kind===265}function gE(e){return e.kind===266}function Yl(e){return e.kind===267}function N_(e){return e.kind===268}function yP(e){return e.kind===269}function Vk(e){return e.kind===270}function nd(e){return e.kind===271}function kc(e){return e.kind===272}function yh(e){return e.kind===273}function rTe(e){return e.kind===302}function yae(e){return e.kind===300}function iTe(e){return e.kind===301}function i1(e){return e.kind===300}function vae(e){return e.kind===301}function $v(e){return e.kind===274}function vh(e){return e.kind===280}function zg(e){return e.kind===275}function Qu(e){return e.kind===276}function kl(e){return e.kind===277}function $l(e){return e.kind===278}function xf(e){return e.kind===279}function Jd(e){return e.kind===281}function oTe(e){return e.kind===282}function oH(e){return e.kind===359}function o1(e){return e.kind===362}function bh(e){return e.kind===283}function ag(e){return e.kind===284}function FT(e){return e.kind===285}function P_(e){return e.kind===286}function q0(e){return e.kind===287}function X0(e){return e.kind===288}function a1(e){return e.kind===289}function bae(e){return e.kind===290}function M_(e){return e.kind===291}function Y0(e){return e.kind===292}function s1(e){return e.kind===293}function vP(e){return e.kind===294}function Xm(e){return e.kind===295}function wR(e){return e.kind===296}function bP(e){return e.kind===297}function Zp(e){return e.kind===298}function $0(e){return e.kind===299}function hc(e){return e.kind===303}function Zu(e){return e.kind===304}function Vy(e){return e.kind===305}function Q0(e){return e.kind===306}function Eae(e){return e.kind===308}function Yi(e){return e.kind===312}function aH(e){return e.kind===313}function zT(e){return e.kind===314}function Z0(e){return e.kind===316}function EP(e){return e.kind===317}function yE(e){return e.kind===318}function Sae(e){return e.kind===331}function Tae(e){return e.kind===332}function aTe(e){return e.kind===333}function Aae(e){return e.kind===319}function Iae(e){return e.kind===320}function OR(e){return e.kind===321}function U4(e){return e.kind===322}function sH(e){return e.kind===323}function WR(e){return e.kind===324}function H4(e){return e.kind===325}function sTe(e){return e.kind===326}function Ym(e){return e.kind===327}function BT(e){return e.kind===329}function vE(e){return e.kind===330}function l1(e){return e.kind===335}function lTe(e){return e.kind===337}function xae(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 K4(e){return e.kind===344}function FR(e){return e.kind===346}function fH(e){return e.kind===338}function cTe(e){return e.kind===354}function jk(e){return e.kind===347}function $m(e){return e.kind===348}function J4(e){return e.kind===349}function mH(e){return e.kind===350}function SP(e){return e.kind===351}function nm(e){return e.kind===352}function GT(e){return e.kind===353}function dTe(e){return e.kind===334}function Rae(e){return e.kind===355}function q4(e){return e.kind===336}function X4(e){return e.kind===357}function uTe(e){return e.kind===356}function zR(e){return e.kind===358}var QBe=bt({"src/compiler/factory/nodeTests.ts"(){"use strict";Zo()}});function Uk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function VT(e,t,r,i){if(Ya(r))return at(e.createElementAccessExpression(t,r.expression),i);{let o=at(Jh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return D_(o,128),o}}function Dae(e,t){let r=Eh.createIdentifier(e||"React");return ja(r,Ro(t)),r}function Cae(e,t,r){if(Au(t)){let i=Cae(e,t.left,r),o=e.createIdentifier(vr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Dae(vr(t),r)}function _H(e,t,r,i){return t?Cae(e,t,i):e.createPropertyAccessExpression(Dae(r,i),"createElement")}function ZBe(e,t,r,i){return t?Cae(e,t,i):e.createPropertyAccessExpression(Dae(r,i),"Fragment")}function Nae(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)qd(d),l.push(d);else l.push(o[0]);return at(e.createCallExpression(t,void 0,l),s)}function Pae(e,t,r,i,o,s,l){let p=[ZBe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let h of o)qd(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 pTe(e,t,r){return Ho(t)?e.updateBlock(t,at(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Hk(e,t){if(Au(t)){let r=Hk(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 e5e(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:d}=xT(t,r);if(r===s)return at(e.createObjectDefinePropertyCall(i,gH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&at(Rr(e.createFunctionExpression(b0(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&at(Rr(e.createFunctionExpression(b0(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function t5e(e,t,r){return Rr(at(e.createAssignment(VT(e,r,t.name,t.name),t.initializer),t),t)}function n5e(e,t,r){return Rr(at(e.createAssignment(VT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function r5e(e,t,r){return Rr(at(e.createAssignment(VT(e,r,t.name,t.name),Rr(at(e.createFunctionExpression(b0(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Mae(e,t,r,i){switch(r.name&&Ki(r.name)&&R.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return e5e(e,t.properties,r,i,!!t.multiLine);case 303:return t5e(e,r,i);case 304:return n5e(e,r,i);case 174:return r5e(e,r,i)}}function Y4(e,t,r,i,o){let s=t.operator;R.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=Yv(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 $4(e){return(za(e)&16384)!==0}function fTe(e){return Ca(e.expression)&&e.expression.text==="use strict"}function vH(e){for(let t of e)if(vm(t)){if(fTe(t))return t}else break}function Lae(e){let t=Yc(e);return t!==void 0&&vm(t)&&fTe(t)}function Kk(e){return e.kind===226&&e.operatorToken.kind===28}function TP(e){return Kk(e)||_P(e)}function BR(e){return Fu(e)&&or(e)&&!!nE(e)}function Q4(e){let t=rE(e);return R.assertIsDefined(t),t}function Z4(e,t=15){switch(e.kind){case 217:return t&16&&BR(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 Ql(e,t=15){for(;Z4(e,t);)e=e.expression;return e}function kae(e,t=15){let r=e.parent;for(;Z4(r,t);)r=r.parent,R.assert(r);return r}function mTe(e){return Ql(e,6)}function qd(e){return r4(e,!0)}function Jk(e){let t=Pl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function wae(e){let t=Pl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function bH(e,t,r,i,o,s,l){if(i.importHelpers&&II(r,i)){let d,p=kd(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let h=o4(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(jd),d=e.createNamedImports(mn(m,S=>IF(r,S)?e.createImportSpecifier(!1,void 0,e.createIdentifier(S)):e.createImportSpecifier(!1,e.createIdentifier(S),t.getUnscopedHelperName(S))));let y=Pl(r,Yi),E=wd(y);E.externalHelpers=!0}}}else{let h=Oae(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(jv),void 0);return VI(h,2),h}}}function Oae(e,t,r,i,o){if(r.importHelpers&&II(t,r)){let s=Jk(t);if(s)return s;let l=kd(r),d=(i||_h(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!d){let p=o4(t);if(p){for(let h of p)if(!h.scoped){d=!0;break}}}if(d){let p=Pl(t,Yi),h=wd(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(jv))}}}function GR(e,t,r){let i=oR(t);if(i&&!RI(t)&&!RF(t)){let o=i.name;return il(o)?o:e.createIdentifier(A0(r,o)||vr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function c1(e,t,r,i,o,s){let l=iR(t);if(l&&Ca(l))return o5e(t,i,e,o,s)||i5e(e,l,r)||e.cloneNode(l)}function i5e(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function qk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Cs(i))return e.createStringLiteral(Wj(r,t.fileName))}}function o5e(e,t,r,i,o){return qk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Xk(e){if(a2(e))return e.initializer;if(hc(e)){let t=e.initializer;return Lc(t,!0)?t.right:void 0}if(Zu(e))return e.objectAssignmentInitializer;if(Lc(e,!0))return e.right;if(qm(e))return Xk(e.expression)}function Qv(e){if(a2(e))return e.name;if(Pg(e)){switch(e.kind){case 303:return Qv(e.initializer);case 304:return e.name;case 305:return Qv(e.expression)}return}return Lc(e,!0)?Qv(e.left):qm(e)?Qv(e.expression):e}function e3(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function EH(e){let t=t3(e);return R.assert(!!t||Vy(e),"Invalid property name for binding element."),t}function t3(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Ki(r)?R.failBadSyntaxKind(r):Ya(r)&&_Te(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ki(r)?R.failBadSyntaxKind(r):Ya(r)&&_Te(r.expression)?r.expression:r}break;case 305:return e.name&&Ki(e.name)?R.failBadSyntaxKind(e.name):e.name}let t=Qv(e);if(t&&oc(t))return t}function _Te(e){let t=e.kind;return t===11||t===9}function VR(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 hTe(e){let t=e.kind;return t===176||t===178}function Wae(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 Fae(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function zae(e){return Kv(e)||wk(e)}function Bae(e){return Fe(e)||zk(e)}function Gae(e){return lae(e)||$U(e)||QU(e)}function Vae(e){return Kv(e)||$U(e)||QU(e)}function jae(e){return Fe(e)||Ca(e)}function gTe(e){let t=e.kind;return t===106||t===112||t===97||S0(e)||Yv(e)}function a5e(e){return e===43}function s5e(e){return e===42||e===44||e===45}function l5e(e){return a5e(e)||s5e(e)}function c5e(e){return e===40||e===41}function d5e(e){return c5e(e)||l5e(e)}function u5e(e){return e===48||e===49||e===50}function AH(e){return u5e(e)||d5e(e)}function p5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function f5e(e){return p5e(e)||AH(e)}function m5e(e){return e===35||e===37||e===36||e===38}function _5e(e){return m5e(e)||f5e(e)}function h5e(e){return e===51||e===52||e===53}function g5e(e){return h5e(e)||_5e(e)}function y5e(e){return e===56||e===57}function v5e(e){return y5e(e)||g5e(e)}function b5e(e){return e===61||v5e(e)||wy(e)}function E5e(e){return b5e(e)||e===28}function Uae(e){return E5e(e.kind)}function n3(e,t,r,i,o,s){let l=new bTe(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 R.assertEqual(A,0),m.value}}function yTe(e){return e===95||e===90}function Yk(e){let t=e.kind;return yTe(t)}function vTe(e){let t=e.kind;return Ny(t)&&!yTe(t)}function Hae(e,t){if(t!==void 0)return t.length===0?t:at(e.createNodeArray([],t.hasTrailingComma),t)}function $k(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(Jh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function jR(e,t){return typeof e=="object"?bE(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function S5e(e,t){return typeof e=="string"?e:T5e(e,R.checkDefined(t))}function T5e(e,t){return lT(e)?t(e).slice(1):il(e)?t(e):Ki(e)?e.escapedText.slice(1):vr(e)}function bE(e,t,r,i,o){return t=jR(t,o),i=jR(i,o),r=S5e(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 Kae(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 Jae(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 r3(e){let t=e.expression;for(;;){if(t=Ql(t),_P(t)){t=Ja(t.elements);continue}if(Kk(t)){t=t.right;continue}if(Lc(t,!0)&&il(t.left))return t;break}}function A5e(e){return Fu(e)&&qs(e)&&!e.emitNode}function i3(e,t){if(A5e(e))i3(e.expression,t);else if(Kk(e))i3(e.left,t),i3(e.right,t);else if(_P(e))for(let r of e.elements)i3(r,t);else t.push(e)}function qae(e){let t=[];return i3(e,t),t}function Qk(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of VR(e)){let r=Qv(t);if(r&&fN(r)&&(r.transformFlags&65536||r.transformFlags&128&&Qk(r)))return!0}return!1}var xH,bTe,I5e=bt({"src/compiler/factory/utilities.ts"(){"use strict";Zo(),(e=>{function t(m,y,E,S,A,N,D){let w=y>0?A[y-1]:void 0;return R.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){R.assertEqual(E[y],r),R.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 R.assertEqual(E[y],i),R.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){R.assertEqual(E[y],o),R.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){R.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 R.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:R.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(R.shouldAssert(2))for(;m>=0;)R.assert(y[m]!==E,"Circular traversal detected."),m--}})(xH||(xH={})),bTe=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?mh(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 jT(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var x5e=bt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Zo()}});function Jt(e,t){return t&&e(t)}function Bi(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 Zk(e){return gn(e.statements,R5e)||D5e(e)}function R5e(e){return Am(e)&&C5e(e,95)||nd(e)&&bh(e.moduleReference)||kc(e)||kl(e)||$l(e)?e:void 0}function D5e(e){return e.flags&8388608?ETe(e):void 0}function ETe(e){return N5e(e)?e:Bo(e,ETe)}function C5e(e,t){return gt(e.modifiers,r=>r.kind===t)}function N5e(e){return mP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function STe(e,t,r){return Bi(t,r,e.typeParameters)||Bi(t,r,e.parameters)||Jt(t,e.type)}function TTe(e,t,r){return Bi(t,r,e.types)}function ATe(e,t,r){return Jt(t,e.type)}function ITe(e,t,r){return Bi(t,r,e.elements)}function xTe(e,t,r){return Jt(t,e.expression)||Jt(t,e.questionDotToken)||Bi(t,r,e.typeArguments)||Bi(t,r,e.arguments)}function RTe(e,t,r){return Bi(t,r,e.statements)}function DTe(e,t,r){return Jt(t,e.label)}function CTe(e,t,r){return Bi(t,r,e.modifiers)||Jt(t,e.name)||Bi(t,r,e.typeParameters)||Bi(t,r,e.heritageClauses)||Bi(t,r,e.members)}function NTe(e,t,r){return Bi(t,r,e.elements)}function PTe(e,t,r){return Jt(t,e.propertyName)||Jt(t,e.name)}function MTe(e,t,r){return Jt(t,e.tagName)||Bi(t,r,e.typeArguments)||Jt(t,e.attributes)}function AP(e,t,r){return Jt(t,e.type)}function LTe(e,t,r){return Jt(t,e.tagName)||(e.isNameFirst?Jt(t,e.name)||Jt(t,e.typeExpression):Jt(t,e.typeExpression)||Jt(t,e.name))||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function IP(e,t,r){return Jt(t,e.tagName)||Jt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function Xae(e,t,r){return Jt(t,e.name)}function UR(e,t,r){return Jt(t,e.tagName)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function P5e(e,t,r){return Jt(t,e.expression)}function Bo(e,t,r){if(e===void 0||e.kind<=165)return;let i=jTe[e.kind];return i===void 0?void 0:i(e,t,r)}function xP(e,t,r){let i=kTe(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 kTe(s))i.push(p),o.push(s)}}}function kTe(e){let t=[];return Bo(e,r,r),t;function r(i){t.unshift(i)}}function wTe(e){e.externalModuleIndicator=Zk(e)}function ew(e,t,r,i=!1,o){var s,l,d,p;(s=ir)==null||s.push(ir.Phase.Parse,"createSourceFile",{path:e},!0),tl("beforeParse");let h;(l=iu)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=SE.parseSourceFile(e,t,m,void 0,i,6,qa,S);else{let A=E===void 0?y:N=>(N.impliedNodeFormat=E,(y||wTe)(N));h=SE.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=iu)==null||d.logStopParseSourceFile(),tl("afterParse"),Xp("Parse","beforeParse","afterParse"),(p=ir)==null||p.pop(),h}function d1(e,t){return SE.parseIsolatedEntityName(e,t)}function tw(e,t){return SE.parseJsonText(e,t)}function sc(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 Yae(e,t,r){let i=SE.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&SE.fixupParentReferences(i.jsDoc),i}function OTe(e,t,r){return SE.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Sd(e){return CH(e)!==void 0}function CH(e){let t=Mx(e,Ek,!1);if(t)return t;if(Tl(e,".ts")){let r=ic(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function M5e(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 Hh(t,0)||Xe){let o=t.substring(i.pos,i.end);k5e(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(pI(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=M5e(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(pI(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(pI(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:R.fail("Unhandled pragma kind")}})}function L5e(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 k5e(e,t,r){let i=t.kind===2&&UTe.exec(r);if(i){let s=i[1].toLowerCase(),l=wL[s];if(!l||!(l.kind&1))return;if(l.args){let d={};for(let p of l.args){let m=L5e(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&&HTe.exec(r);if(o)return WTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)WTe(e,t,4,l)}}function WTe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=wL[o];if(!s||!(s.kind&r))return;let l=i[2],d=w5e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function w5e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(VTe||(VTe=ld.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(BTe||(BTe=ld.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(GTe||(GTe=ld.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(zTe||(zTe=ld.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(FTe||(FTe=ld.getNodeConstructor()))(e,-1,-1)},Eh=Ak(1,MH),jTe={166:function(t,r,i){return Jt(r,t.left)||Jt(r,t.right)},168:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.constraint)||Jt(r,t.default)||Jt(r,t.expression)},304:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.equalsToken)||Jt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Jt(r,t.expression)},169:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.dotDotDotToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)||Jt(r,t.initializer)},172:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.type)||Jt(r,t.initializer)},171:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)||Jt(r,t.initializer)},303:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Jt(r,t.initializer)},260:function(t,r,i){return Jt(r,t.name)||Jt(r,t.exclamationToken)||Jt(r,t.type)||Jt(r,t.initializer)},208:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.propertyName)||Jt(r,t.name)||Jt(r,t.initializer)},181:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},185:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},184:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},179:STe,180:STe,174:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.exclamationToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},173:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.questionToken)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)},176:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},177:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},178:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},262:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},218:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.asteriskToken)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.body)},219:function(t,r,i){return Bi(r,i,t.modifiers)||Bi(r,i,t.typeParameters)||Bi(r,i,t.parameters)||Jt(r,t.type)||Jt(r,t.equalsGreaterThanToken)||Jt(r,t.body)},175:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.body)},183:function(t,r,i){return Jt(r,t.typeName)||Bi(r,i,t.typeArguments)},182:function(t,r,i){return Jt(r,t.assertsModifier)||Jt(r,t.parameterName)||Jt(r,t.type)},186:function(t,r,i){return Jt(r,t.exprName)||Bi(r,i,t.typeArguments)},187:function(t,r,i){return Bi(r,i,t.members)},188:function(t,r,i){return Jt(r,t.elementType)},189:function(t,r,i){return Bi(r,i,t.elements)},192:TTe,193:TTe,194:function(t,r,i){return Jt(r,t.checkType)||Jt(r,t.extendsType)||Jt(r,t.trueType)||Jt(r,t.falseType)},195:function(t,r,i){return Jt(r,t.typeParameter)},205:function(t,r,i){return Jt(r,t.argument)||Jt(r,t.attributes)||Jt(r,t.qualifier)||Bi(r,i,t.typeArguments)},302:function(t,r,i){return Jt(r,t.assertClause)},196:ATe,198:ATe,199:function(t,r,i){return Jt(r,t.objectType)||Jt(r,t.indexType)},200:function(t,r,i){return Jt(r,t.readonlyToken)||Jt(r,t.typeParameter)||Jt(r,t.nameType)||Jt(r,t.questionToken)||Jt(r,t.type)||Bi(r,i,t.members)},201:function(t,r,i){return Jt(r,t.literal)},202:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.name)||Jt(r,t.questionToken)||Jt(r,t.type)},206:ITe,207:ITe,209:function(t,r,i){return Bi(r,i,t.elements)},210:function(t,r,i){return Bi(r,i,t.properties)},211:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.questionDotToken)||Jt(r,t.name)},212:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.questionDotToken)||Jt(r,t.argumentExpression)},213:xTe,214:xTe,215:function(t,r,i){return Jt(r,t.tag)||Jt(r,t.questionDotToken)||Bi(r,i,t.typeArguments)||Jt(r,t.template)},216:function(t,r,i){return Jt(r,t.type)||Jt(r,t.expression)},217:function(t,r,i){return Jt(r,t.expression)},220:function(t,r,i){return Jt(r,t.expression)},221:function(t,r,i){return Jt(r,t.expression)},222:function(t,r,i){return Jt(r,t.expression)},224:function(t,r,i){return Jt(r,t.operand)},229:function(t,r,i){return Jt(r,t.asteriskToken)||Jt(r,t.expression)},223:function(t,r,i){return Jt(r,t.expression)},225:function(t,r,i){return Jt(r,t.operand)},226:function(t,r,i){return Jt(r,t.left)||Jt(r,t.operatorToken)||Jt(r,t.right)},234:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.type)},235:function(t,r,i){return Jt(r,t.expression)},238:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.type)},236:function(t,r,i){return Jt(r,t.name)},227:function(t,r,i){return Jt(r,t.condition)||Jt(r,t.questionToken)||Jt(r,t.whenTrue)||Jt(r,t.colonToken)||Jt(r,t.whenFalse)},230:function(t,r,i){return Jt(r,t.expression)},241:RTe,268:RTe,312:function(t,r,i){return Bi(r,i,t.statements)||Jt(r,t.endOfFileToken)},243:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.declarationList)},261:function(t,r,i){return Bi(r,i,t.declarations)},244:function(t,r,i){return Jt(r,t.expression)},245:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.thenStatement)||Jt(r,t.elseStatement)},246:function(t,r,i){return Jt(r,t.statement)||Jt(r,t.expression)},247:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.statement)},248:function(t,r,i){return Jt(r,t.initializer)||Jt(r,t.condition)||Jt(r,t.incrementor)||Jt(r,t.statement)},249:function(t,r,i){return Jt(r,t.initializer)||Jt(r,t.expression)||Jt(r,t.statement)},250:function(t,r,i){return Jt(r,t.awaitModifier)||Jt(r,t.initializer)||Jt(r,t.expression)||Jt(r,t.statement)},251:DTe,252:DTe,253:function(t,r,i){return Jt(r,t.expression)},254:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.statement)},255:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.caseBlock)},269:function(t,r,i){return Bi(r,i,t.clauses)},296:function(t,r,i){return Jt(r,t.expression)||Bi(r,i,t.statements)},297:function(t,r,i){return Bi(r,i,t.statements)},256:function(t,r,i){return Jt(r,t.label)||Jt(r,t.statement)},257:function(t,r,i){return Jt(r,t.expression)},258:function(t,r,i){return Jt(r,t.tryBlock)||Jt(r,t.catchClause)||Jt(r,t.finallyBlock)},299:function(t,r,i){return Jt(r,t.variableDeclaration)||Jt(r,t.block)},170:function(t,r,i){return Jt(r,t.expression)},263:CTe,231:CTe,264:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Bi(r,i,t.heritageClauses)||Bi(r,i,t.members)},265:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.typeParameters)||Jt(r,t.type)},266:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Bi(r,i,t.members)},306:function(t,r,i){return Jt(r,t.name)||Jt(r,t.initializer)},267:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.body)},271:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)||Jt(r,t.moduleReference)},272:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.importClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},273:function(t,r,i){return Jt(r,t.name)||Jt(r,t.namedBindings)},300:function(t,r,i){return Bi(r,i,t.elements)},301:function(t,r,i){return Jt(r,t.name)||Jt(r,t.value)},270:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.name)},274:function(t,r,i){return Jt(r,t.name)},280:function(t,r,i){return Jt(r,t.name)},275:NTe,279:NTe,278:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.exportClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},276:PTe,281:PTe,277:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.expression)},228:function(t,r,i){return Jt(r,t.head)||Bi(r,i,t.templateSpans)},239:function(t,r,i){return Jt(r,t.expression)||Jt(r,t.literal)},203:function(t,r,i){return Jt(r,t.head)||Bi(r,i,t.templateSpans)},204:function(t,r,i){return Jt(r,t.type)||Jt(r,t.literal)},167:function(t,r,i){return Jt(r,t.expression)},298:function(t,r,i){return Bi(r,i,t.types)},233:function(t,r,i){return Jt(r,t.expression)||Bi(r,i,t.typeArguments)},283:function(t,r,i){return Jt(r,t.expression)},282:function(t,r,i){return Bi(r,i,t.modifiers)},361:function(t,r,i){return Bi(r,i,t.elements)},284:function(t,r,i){return Jt(r,t.openingElement)||Bi(r,i,t.children)||Jt(r,t.closingElement)},288:function(t,r,i){return Jt(r,t.openingFragment)||Bi(r,i,t.children)||Jt(r,t.closingFragment)},285:MTe,286:MTe,292:function(t,r,i){return Bi(r,i,t.properties)},291:function(t,r,i){return Jt(r,t.name)||Jt(r,t.initializer)},293:function(t,r,i){return Jt(r,t.expression)},294:function(t,r,i){return Jt(r,t.dotDotDotToken)||Jt(r,t.expression)},287:function(t,r,i){return Jt(r,t.tagName)},295:function(t,r,i){return Jt(r,t.namespace)||Jt(r,t.name)},190:AP,191:AP,316:AP,322:AP,321:AP,323:AP,325:AP,324:function(t,r,i){return Bi(r,i,t.parameters)||Jt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))||Bi(r,i,t.tags)},354:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.name)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},317:function(t,r,i){return Jt(r,t.name)},318:function(t,r,i){return Jt(r,t.left)||Jt(r,t.right)},348:LTe,355:LTe,337:function(t,r,i){return Jt(r,t.tagName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},336:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},335:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.class)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},352:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.constraint)||Bi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},353:function(t,r,i){return Jt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Jt(r,t.typeExpression)||Jt(r,t.fullName)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)):Jt(r,t.fullName)||Jt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment)))},345:function(t,r,i){return Jt(r,t.tagName)||Jt(r,t.fullName)||Jt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Bi(r,i,t.comment))},349:IP,351:IP,350:IP,347:IP,357:IP,356:IP,346:IP,330:function(t,r,i){return gn(t.typeParameters,r)||gn(t.parameters,r)||Jt(r,t.type)},331:Xae,332:Xae,333:Xae,329:function(t,r,i){return gn(t.jsDocPropertyTags,r)},334:UR,339:UR,340:UR,341:UR,342:UR,343:UR,338:UR,344:UR,360:P5e},(e=>{var t=Dy(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=Ak(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:ee,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,Ie,De,Le,Et,be,ze,tt,Wt,_t,Je,ft,Zt,en,Dn,Kn,pn=!0,Yt=!1;function qt(X,Ae,Ue,St,xt=!1,Ut,wr,Wi=0){var Ci;if(Ut=w6(X,Ut),Ut===6){let Xi=uo(X,Ae,Ue,St,xt);return iw(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=RW,Xi}Li(X,Ae,Ue,St,Ut,Wi);let _i=Zn(Ue,xt,Ut,wr||wTe,Wi);return Eo(),_i}e.parseSourceFile=qt;function hi(X,Ae){Li("",X,Ae,void 0,1,0),Ne();let Ue=Z(!0),St=H()===1&&!ze.length;return Eo(),St?Ue:void 0}e.parseIsolatedEntityName=hi;function uo(X,Ae,Ue=2,St,xt=!1){Li(X,Ae,Ue,St,6,0),Ie=Kn,Ne();let Ut=k(),wr,Wi;if(H()===1)wr=Mo([],Ut,Ut),Wi=pl();else{let Xi;for(;H()!==1;){let $a;switch(H()){case 23:$a=TS();break;case 112:case 97:case 106:$a=pl();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&&So(Xi)?Xi.push($a):Xi?Xi=[Xi,$a]:(Xi=$a,H()!==1&&dn(f.Unexpected_token))}let ds=So(Xi)?tn(j(Xi),Ut):R.checkDefined(Xi),Rs=pe(ds);tn(Rs,Ut),wr=Mo([Rs],Ut),Wi=Ss(1,f.Unexpected_token)}let Ci=Ot(X,2,6,!1,wr,Wi,Ie,qa);xt&&$e(Ci),Ci.nodeCount=Je,Ci.identifierCount=Zt,Ci.identifiers=ft,Ci.parseDiagnostics=WI(ze,Ci),tt&&(Ci.jsDocDiagnostics=WI(tt,Ci));let _i=Ci;return Eo(),_i}e.parseJsonText=uo;function Li(X,Ae,Ue,St,xt,Ut){switch(i=ld.getNodeConstructor(),o=ld.getTokenConstructor(),s=ld.getIdentifierConstructor(),l=ld.getPrivateIdentifierConstructor(),d=ld.getSourceFileConstructor(),ve=ma(X),De=Ae,Le=Ue,Wt=St,Et=xt,be=lk(xt),ze=[],en=0,ft=new Map,Zt=0,Je=0,Ie=0,pn=!0,Et){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}Yt=!1,t.setText(De),t.setOnError(Nt),t.setScriptTarget(Le),t.setLanguageVariant(be),t.setScriptKind(Et),t.setJSDocParsingMode(Ut)}function Eo(){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,Ie=0,ze=void 0,tt=void 0,en=0,ft=void 0,Dn=void 0,pn=!0}function Zn(X,Ae,Ue,St,xt){let Ut=Sd(ve);Ut&&(Kn|=33554432),Ie=Kn,Ne();let wr=Qo(0,ip);R.assert(H()===1);let Wi=ie(),Ci=Sr(pl(),Wi),_i=Ot(ve,X,Ue,Ut,wr,Ci,Ie,St);return NH(_i,De),PH(_i,Xi),_i.commentDirectives=t.getCommentDirectives(),_i.nodeCount=Je,_i.identifierCount=Zt,_i.identifiers=ft,_i.parseDiagnostics=WI(ze,_i),_i.jsDocParsingMode=xt,tt&&(_i.jsDocDiagnostics=WI(tt,_i)),Ae&&$e(_i),_i;function Xi(ds,Rs,$a){ze.push(ER(ve,De,ds,Rs,$a))}}let jr=!1;function Sr(X,Ae){if(!Ae)return X;R.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),jr&&(jr=!1,X.flags|=536870912),X}function on(X){let Ae=Wt,Ue=LH.createSyntaxCursor(X);Wt={currentNode:Xi};let St=[],xt=ze;ze=[];let Ut=0,wr=Ci(X.statements,0);for(;wr!==-1;){let ds=X.statements[Ut],Rs=X.statements[wr];Ur(St,X.statements,Ut,wr),Ut=_i(X.statements,wr);let $a=ql(xt,K_=>K_.start>=ds.pos),Of=$a>=0?ql(xt,K_=>K_.start>=Rs.pos,$a):-1;$a>=0&&Ur(ze,xt,$a,Of>=0?Of:void 0),ho(()=>{let K_=Kn;for(Kn|=65536,t.resetTokenState(Rs.pos),Ne();H()!==1;){let vg=t.getTokenFullStart(),iy=ec(0,ip);if(St.push(iy),vg===t.getTokenFullStart()&&Ne(),Ut>=0){let oy=X.statements[Ut];if(iy.end===oy.pos)break;iy.end>oy.pos&&(Ut=_i(X.statements,Ut+1))}}Kn=K_},2),wr=Ut>=0?Ci(X.statements,Ut):-1}if(Ut>=0){let ds=X.statements[Ut];Ur(St,X.statements,Ut);let Rs=ql(xt,$a=>$a.start>=ds.pos);Rs>=0&&Ur(ze,xt,Rs)}return Wt=Ae,m.updateSourceFile(X,at(y(St),X.statements));function Wi(ds){return!(ds.flags&65536)&&!!(ds.transformFlags&67108864)}function Ci(ds,Rs){for(let $a=Rs;$a118}function Io(){return H()===80?!0:H()===127&&Tt()||H()===135&&hn()?!1:H()>118}function xn(X,Ae,Ue=!0){return H()===X?(Ue&&Ne(),!0):(Ae?dn(Ae):dn(f._0_expected,da(X)),!1)}let Os=Object.keys(qL).filter(X=>X.length>2);function Zl(X){if(K0(X)){U(Pa(De,X.template.pos),X.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ae=Fe(X)?vr(X):void 0;if(!Ae||!Yp(Ae,Le)){dn(f._0_expected,da(27));return}let Ue=Pa(De,X.pos);switch(Ae){case"const":case"let":case"var":U(Ue,X.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Po(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":Po(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Po(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let St=JC(Ae,Os,xt=>xt)??ls(Ae);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 Po(X,Ae,Ue){H()===Ue?dn(Ae):dn(X,t.getTokenValue())}function ls(X){for(let Ae of Os)if(X.length>Ae.length+2&&ao(X,Ae))return`${Ae} ${X.slice(Ae.length)}`}function Bs(X,Ae,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(Ae&&!lc()){Ue?dn(f._0_expected,da(27)):dn(f.Expected_for_property_initializer);return}if(!Rl()){if(Ue){dn(f._0_expected,da(27));return}Zl(X)}}function _l(X){return H()===X?(It(),!0):(R.assert(t6(X)),dn(f._0_expected,da(X)),!1)}function dd(X,Ae,Ue,St){if(H()===Ae){Ne();return}let xt=dn(f._0_expected,da(Ae));Ue&&xt&&Ma(xt,ER(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,da(X),da(Ae)))}function mo(X){return H()===X?(Ne(),!0):!1}function sa(X){if(H()===X)return pl()}function ud(X){if(H()===X)return Nf()}function Ss(X,Ae,Ue){return sa(X)||Gs(X,!1,Ae||f._0_expected,Ue||da(X))}function Na(X){let Ae=ud(X);return Ae||(R.assert(t6(X)),Gs(X,!1,f._0_expected,da(X)))}function pl(){let X=k(),Ae=H();return Ne(),tn(w(Ae),X)}function Nf(){let X=k(),Ae=H();return It(),tn(w(Ae),X)}function lc(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function Rl(){return lc()?(H()===27&&Ne(),!0):!1}function sl(){return Rl()||xn(27)}function Mo(X,Ae,Ue,St){let xt=y(X,St);return mh(xt,Ae,Ue??t.getTokenFullStart()),xt}function tn(X,Ae,Ue){return mh(X,Ae,Ue??t.getTokenFullStart()),Kn&&(X.flags|=Kn),Yt&&(Yt=!1,X.flags|=262144),X}function Gs(X,Ae,Ue,...St){Ae?un(t.getTokenFullStart(),0,Ue,...St):Ue&&dn(Ue,...St);let xt=k(),Ut=X===80?N("",void 0):Nv(X)?m.createTemplateLiteralLikeNode(X,"","",void 0):X===9?E("",void 0):X===11?S("",void 0):X===282?m.createMissingDeclaration():w(X);return tn(Ut,xt)}function rd(X){let Ae=ft.get(X);return Ae===void 0&&ft.set(X,Ae=X),Ae}function pd(X,Ae,Ue){if(X){Zt++;let Wi=k(),Ci=H(),_i=rd(t.getTokenValue()),Xi=t.hasExtendedUnicodeEscape();return ue(),tn(N(_i,Ci,Xi),Wi)}if(H()===81)return dn(Ue||f.Private_identifiers_are_not_allowed_outside_class_bodies),pd(!0);if(H()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return pd(!0);Zt++;let St=H()===1,xt=t.isReservedWord(),Ut=t.getTokenText(),wr=xt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return Gs(80,St,Ae||wr,Ut)}function Ep(X){return pd(Hr(),void 0,X)}function Ns(X,Ae){return pd(Io(),X,Ae)}function xc(X){return pd(ou(H()),X)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&dn(f.Unicode_escape_sequence_cannot_appear_here),pd(ou(H()))}function $(){return ou(H())||H()===11||H()===9}function Pe(){return ou(H())||H()===11}function yt(X){if(H()===11||H()===9){let Ae=Xr();return Ae.text=rd(Ae.text),Ae}return X&&H()===23?br():H()===81?mr():xc()}function cn(){return yt(!0)}function br(){let X=k();xn(23);let Ae=vn(Ve);return xn(24),tn(m.createComputedPropertyName(Ae),X)}function mr(){let X=k(),Ae=D(rd(t.getTokenValue()));return Ne(),tn(Ae,X)}function Fr(X){return H()===X&&Ri(Cr)}function Di(){return Ne(),t.hasPrecedingLineBreak()?!1:Vs()}function Cr(){switch(H()){case 87:return Ne()===94;case 95:return Ne(),H()===90?Pi(yc):H()===156?Pi(bl):Jo();case 90:return yc();case 126:case 139:case 153:return Ne(),Vs();default:return Di()}}function Jo(){return H()===60||H()!==42&&H()!==130&&H()!==19&&Vs()}function bl(){return Ne(),Jo()}function Hc(){return Ny(H())&&Ri(Cr)}function Vs(){return H()===23||H()===19||H()===42||H()===26||$()}function yc(){return Ne(),H()===86||H()===100||H()===120||H()===60||H()===128&&Pi(AA)||H()===134&&Pi(IA)}function bs(X,Ae){if(vc(X))return!0;switch(X){case 0:case 1:case 3:return!(H()===27&&Ae)&&IS();case 2:return H()===84||H()===90;case 4:return Pi(Ha);case 5:return Pi(gg)||H()===27&&!Ae;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):Ae?Io()&&!_u():K1()&&!_u();case 8:return es();case 10:return H()===28||H()===26||es();case 19:return H()===103||H()===87||Io();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||e_();case 16:return B_(!1);case 17:return B_(!0);case 20:case 21:return H()===28||ug();case 22:return I();case 23:return H()===161&&Pi($D)?!1:ou(H());case 13:return ou(H())||H()===19;case 14:return!0;case 25:return!0;case 26:return R.fail("ParsingContext.Count used as a context");default:R.assertNever(X,"Non-exhaustive case in 'isListElement'.")}}function Kc(){if(R.assert(H()===19),Ne()===20){let X=Ne();return X===28||X===19||X===96||X===119}return!0}function tp(){return Ne(),Io()}function Wc(){return Ne(),ou(H())}function im(){return Ne(),kne(H())}function _u(){return H()===119||H()===96?Pi(Re):!1}function Re(){return Ne(),e_()}function Lt(){return Ne(),ug()}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 go();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 go(){return!!(lc()||$g(H())||H()===39)}function qo(){R.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=Mo([],k());return X.isMissingList=!0,X}function dg(X){return!!X.isMissingList}function Gu(X,Ae,Ue,St){if(xn(Ue)){let xt=zd(X,Ae);return xn(St),xt}return Sp()}function Z(X,Ae){let Ue=k(),St=X?xc(Ae):Ns(Ae);for(;mo(25)&&H()!==30;)St=tn(m.createQualifiedName(St,wt(X,!1,!0)),Ue);return St}function rt(X,Ae){return tn(m.createQualifiedName(X,Ae),X.pos)}function wt(X,Ae,Ue){if(t.hasPrecedingLineBreak()&&ou(H())&&Pi(Vp))return Gs(80,!0,f.Identifier_expected);if(H()===81){let St=mr();return Ae?St:Gs(80,!0,f.Identifier_expected)}return X?Ue?xc():de():Ns()}function Gt(X){let Ae=k(),Ue=[],St;do St=ii(X),Ue.push(St);while(St.literal.kind===17);return Mo(Ue,Ae)}function O(X){let Ae=k();return tn(m.createTemplateExpression(no(X),Gt(X)),Ae)}function Se(){let X=k();return tn(m.createTemplateLiteralType(no(!1),nt()),X)}function nt(){let X=k(),Ae=[],Ue;do Ue=jt(),Ae.push(Ue);while(Ue.literal.kind===17);return Mo(Ae,X)}function jt(){let X=k();return tn(m.createTemplateLiteralTypeSpan(bc(),er(!1)),X)}function er(X){return H()===20?(wn(X),ka()):Ss(18,f._0_expected,da(20))}function ii(X){let Ae=k();return tn(m.createTemplateSpan(vn(Ve),er(X)),Ae)}function Xr(){return Ol(H())}function no(X){!X&&t.getTokenFlags()&26656&&wn(!1);let Ae=Ol(H());return R.assert(Ae.kind===16,"Template head has wrong token kind"),Ae}function ka(){let X=Ol(H());return R.assert(X.kind===17||X.kind===18,"Template fragment has wrong token kind"),X}function wa(X){let Ae=X===15||X===18,Ue=t.getTokenText();return Ue.substring(1,Ue.length-(t.isUnterminated()?0:Ae?1:2))}function Ol(X){let Ae=k(),Ue=Nv(X)?m.createTemplateLiteralLikeNode(X,t.getTokenValue(),wa(X),t.getTokenFlags()&7176):X===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):X===11?S(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):dN(X)?A(X,t.getTokenValue()):R.fail();return t.hasExtendedUnicodeEscape()&&(Ue.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ue.isUnterminated=!0),Ne(),tn(Ue,Ae)}function fd(){return Z(!0,f.Type_expected)}function Rc(){if(!t.hasPrecedingLineBreak()&&Bn()===30)return Gu(20,bc,30,32)}function Tp(){let X=k();return tn(m.createTypeReferenceNode(fd(),Rc()),X)}function Vu(X){switch(X.kind){case 183:return Bl(X.typeName);case 184:case 185:{let{parameters:Ae,type:Ue}=X;return dg(Ae)||Vu(Ue)}case 196:return Vu(X.type);default:return!1}}function sb(X){return Ne(),tn(m.createTypePredicateNode(void 0,X,bc()),X.pos)}function cs(){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(cb(),!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(bc(),!1),X)}function Jg(){let X=k(),Ae=ie();if(Ri(wf)){let Ue=fn(36),St=Vt(59,!1);return Sr(tn(m.createJSDocFunctionType(Ue,St),X),Ae)}return tn(m.createTypeReferenceNode(xc(),void 0),X)}function Zy(){let X=k(),Ae;return(H()===110||H()===105)&&(Ae=xc(),xn(59)),tn(m.createParameterDeclaration(void 0,void 0,Ae,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 Ae=mo(26),Ue=db();return t.setInJSDocType(!1),Ae&&(Ue=tn(m.createJSDocVariadicType(Ue),X)),H()===64?(Ne(),tn(m.createJSDocOptionalType(Ue),X)):Ue}function mS(){let X=k();xn(114);let Ae=Z(!0),Ue=t.hasPrecedingLineBreak()?void 0:qE();return tn(m.createTypeQueryNode(Ae,Ue),X)}function _S(){let X=k(),Ae=Nh(!1,!0),Ue=Ns(),St,xt;mo(96)&&(ug()||!e_()?St=bc():xt=pb());let Ut=mo(64)?bc():void 0,wr=m.createTypeParameterDeclaration(Ae,Ue,St,Ut);return wr.expression=xt,tn(wr,X)}function cf(){if(H()===30)return Gu(19,_S,30,32)}function B_(X){return H()===26||es()||Ny(H())||H()===60||ug(!X)}function df(X){let Ae=Tr(f.Private_identifiers_cannot_be_used_as_parameters);return _2(Ae)===0&&!gt(X)&&Ny(H())&&Ne(),Ae}function qg(){return Hr()||H()===23||H()===19}function we(X){return Pt(X)}function qe(X){return Pt(X,!1)}function Pt(X,Ae=!0){let Ue=k(),St=ie(),xt=X?se(()=>Nh(!0)):ke(()=>Nh(!0));if(H()===110){let Ci=m.createParameterDeclaration(xt,void 0,pd(!0),void 0,tv(),void 0),_i=Yc(xt);return _i&&Me(_i,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Sr(tn(Ci,Ue),St)}let Ut=pn;pn=!1;let wr=sa(26);if(!Ae&&!qg())return;let Wi=Sr(tn(m.createParameterDeclaration(xt,wr,df(xt),sa(58),tv(),t_()),Ue),St);return pn=Ut,Wi}function Vt(X,Ae){if(_n(X,Ae))return Be(db)}function _n(X,Ae){return X===39?(xn(X),!0):mo(59)?!0:Ae&&H()===39?(dn(f._0_expected,da(59)),Ne(),!0):!1}function Jn(X,Ae){let Ue=Tt(),St=hn();yi(!!(X&1)),Ao(!!(X&2));let xt=X&32?zd(17,Zy):zd(16,()=>Ae?we(St):qe(St));return yi(Ue),Ao(St),xt}function fn(X){if(!xn(21))return Sp();let Ae=Jn(X,!0);return xn(22),Ae}function qn(){mo(28)||sl()}function mi(X){let Ae=k(),Ue=ie();X===180&&xn(105);let St=cf(),xt=fn(4),Ut=Vt(59,!0);qn();let wr=X===179?m.createCallSignature(St,xt,Ut):m.createConstructSignature(St,xt,Ut);return Sr(tn(wr,Ae),Ue)}function ar(){return H()===23&&Pi(ni)}function ni(){if(Ne(),H()===26||H()===24)return!0;if(Ny(H())){if(Ne(),Io())return!0}else if(Io())Ne();else return!1;return H()===59||H()===28?!0:H()!==58?!1:(Ne(),H()===59||H()===28||H()===24)}function ur(X,Ae,Ue){let St=Gu(16,()=>we(!1),23,24),xt=tv();qn();let Ut=m.createIndexSignature(Ue,St,xt);return Sr(tn(Ut,X),Ae)}function Xo(X,Ae,Ue){let St=cn(),xt=sa(58),Ut;if(H()===21||H()===30){let wr=cf(),Wi=fn(4),Ci=Vt(59,!0);Ut=m.createMethodSignature(Ue,St,xt,wr,Wi,Ci)}else{let wr=tv();Ut=m.createPropertySignature(Ue,St,xt,wr),H()===64&&(Ut.initializer=t_())}return qn(),Sr(tn(Ut,X),Ae)}function Ha(){if(H()===21||H()===30||H()===139||H()===153)return!0;let X=!1;for(;Ny(H());)X=!0,Ne();return H()===23?!0:($()&&(X=!0,Ne()),X?H()===21||H()===30||H()===58||H()===59||H()===28||lc():!1)}function Qd(){if(H()===21||H()===30)return mi(179);if(H()===105&&Pi(md))return mi(180);let X=k(),Ae=ie(),Ue=Nh(!1);return Fr(139)?ny(X,Ae,Ue,177,4):Fr(153)?ny(X,Ae,Ue,178,4):ar()?ur(X,Ae,Ue):Xo(X,Ae,Ue)}function md(){return Ne(),H()===21||H()===30}function Xg(){return Ne()===25}function kE(){switch(Ne()){case 21:case 30:case 25:return!0}return!1}function W1(){let X=k();return tn(m.createTypeLiteralNode(wE()),X)}function wE(){let X;return xn(19)?(X=Qo(4,Qd),xn(20)):X=Sp(),X}function WD(){return Ne(),H()===40||H()===41?Ne()===148:(H()===148&&Ne(),H()===23&&tp()&&Ne()===103)}function FD(){let X=k(),Ae=xc();xn(103);let Ue=bc();return tn(m.createTypeParameterDeclaration(void 0,Ae,Ue,void 0),X)}function zD(){let X=k();xn(19);let Ae;(H()===148||H()===40||H()===41)&&(Ae=pl(),Ae.kind!==148&&xn(148)),xn(23);let Ue=FD(),St=mo(130)?bc():void 0;xn(24);let xt;(H()===58||H()===40||H()===41)&&(xt=pl(),xt.kind!==58&&xn(58));let Ut=tv();sl();let wr=Qo(4,Qd);return xn(20),tn(m.createMappedTypeNode(Ae,Ue,St,xt,Ut,wr),X)}function sA(){let X=k();if(mo(26))return tn(m.createRestTypeNode(bc()),X);let Ae=bc();if(OR(Ae)&&Ae.pos===Ae.type.pos){let Ue=m.createOptionalTypeNode(Ae.type);return at(Ue,Ae),Ue.flags=Ae.flags,Ue}return Ae}function hS(){return Ne()===59||H()===58&&Ne()===59}function F1(){return H()===26?ou(Ne())&&hS():ou(H())&&hS()}function BD(){if(Pi(F1)){let X=k(),Ae=ie(),Ue=sa(26),St=xc(),xt=sa(58);xn(59);let Ut=sA(),wr=m.createNamedTupleMember(Ue,St,xt,Ut);return Sr(tn(wr,X),Ae)}return sA()}function z1(){let X=k();return tn(m.createTupleTypeNode(Gu(21,BD,23,24)),X)}function B1(){let X=k();xn(21);let Ae=bc();return xn(22),tn(m.createParenthesizedType(Ae),X)}function G1(){let X;if(H()===128){let Ae=k();Ne();let Ue=tn(w(128),Ae);X=Mo([Ue],Ae)}return X}function V1(){let X=k(),Ae=ie(),Ue=G1(),St=mo(105);R.assert(!Ue||St,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let xt=cf(),Ut=fn(4),wr=Vt(39,!1),Wi=St?m.createConstructorTypeNode(Ue,xt,Ut,wr):m.createFunctionTypeNode(xt,Ut,wr);return Sr(tn(Wi,X),Ae)}function lA(){let X=pl();return H()===25?void 0:X}function j1(X){let Ae=k();X&&Ne();let Ue=H()===112||H()===97||H()===106?pl():Ol(H());return X&&(Ue=tn(m.createPrefixUnaryExpression(41,Ue),Ae)),tn(m.createLiteralTypeNode(Ue),Ae)}function gS(){return Ne(),H()===102}function yS(){Ie|=4194304;let X=k(),Ae=mo(114);xn(102),xn(21);let Ue=bc(),St;if(mo(28)){let wr=t.getTokenStart();xn(19);let Wi=H();if(Wi===118||Wi===132?Ne():dn(f._0_expected,da(118)),xn(59),St=Sb(Wi,!0),!xn(20)){let Ci=Qs(ze);Ci&&Ci.code===f._0_expected.code&&Ma(Ci,ER(ve,De,wr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}xn(22);let xt=mo(25)?fd():void 0,Ut=Rc();return tn(m.createImportTypeNode(Ue,St,xt,Ut,Ae),X)}function lb(){return Ne(),H()===9||H()===10}function cb(){switch(H()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ri(lA)||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 j1();case 41:return Pi(lb)?j1(!0):Tp();case 116:return pl();case 110:{let X=cs();return H()===142&&!t.hasPrecedingLineBreak()?sb(X):X}case 114:return Pi(gS)?yS():mS();case 19:return Pi(WD)?zD():W1();case 23:return z1();case 21:return B1();case 102:return yS();case 131:return Pi(Vp)?H1():Tp();case 16:return Se();default:return Tp()}}function ug(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(lb);case 21:return!X&&Pi(OE);default:return Io()}}function OE(){return Ne(),H()===22||B_(!1)||ug()}function Qa(){let X=k(),Ae=cb();for(;!t.hasPrecedingLineBreak();)switch(H()){case 54:Ne(),Ae=tn(m.createJSDocNonNullableType(Ae,!0),X);break;case 58:if(Pi(Lt))return Ae;Ne(),Ae=tn(m.createJSDocNullableType(Ae,!0),X);break;case 23:if(xn(23),ug()){let Ue=bc();xn(24),Ae=tn(m.createIndexedAccessTypeNode(Ae,Ue),X)}else xn(24),Ae=tn(m.createArrayTypeNode(Ae),X);break;default:return Ae}return Ae}function cA(X){let Ae=k();return xn(X),tn(m.createTypeOperatorNode(X,xh()),Ae)}function GD(){if(mo(96)){let X=ct(bc);if(pt()||H()!==58)return X}}function WE(){let X=k(),Ae=Ns(),Ue=Ri(GD),St=m.createTypeParameterDeclaration(void 0,Ae,Ue);return tn(St,X)}function Yg(){let X=k();return xn(140),tn(m.createInferTypeNode(WE()),X)}function xh(){let X=H();switch(X){case 143:case 158:case 148:return cA(X);case 140:return Yg()}return Be(Qa)}function Mf(X){if(dA()){let Ae=V1(),Ue;return gh(Ae)?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(Ae,Ue),Ae}}function ju(X,Ae,Ue){let St=k(),xt=X===52,Ut=mo(X),wr=Ut&&Mf(xt)||Ae();if(H()===X||Ut){let Wi=[wr];for(;mo(X);)Wi.push(Mf(xt)||Ae());wr=tn(Ue(Mo(Wi,St)),St)}return wr}function Ap(){return ju(51,xh,m.createIntersectionTypeNode)}function np(){return ju(52,Ap,m.createUnionTypeNode)}function ev(){return Ne(),H()===105}function dA(){return H()===30||H()===21&&Pi(U1)?!0:H()===105||H()===128&&Pi(ev)}function VD(){if(Ny(H())&&Nh(!1),Io()||H()===110)return Ne(),!0;if(H()===23||H()===19){let X=ze.length;return Tr(),X===ze.length}return!1}function U1(){return Ne(),!!(H()===22||H()===26||VD()&&(H()===59||H()===28||H()===58||H()===64||H()===22&&(Ne(),H()===39)))}function db(){let X=k(),Ae=Io()&&Ri(FE),Ue=bc();return Ae?tn(m.createTypePredicateNode(void 0,Ae,Ue),X):Ue}function FE(){let X=Ns();if(H()===142&&!t.hasPrecedingLineBreak())return Ne(),X}function H1(){let X=k(),Ae=Ss(131),Ue=H()===110?cs():Ns(),St=mo(142)?bc():void 0;return tn(m.createTypePredicateNode(Ae,Ue,St),X)}function bc(){if(Kn&81920)return ua(81920,bc);if(dA())return V1();let X=k(),Ae=np();if(!pt()&&!t.hasPrecedingLineBreak()&&mo(96)){let Ue=ct(bc);xn(58);let St=Be(bc);xn(59);let xt=Be(bc);return tn(m.createConditionalTypeNode(Ae,Ue,St,xt),X)}return Ae}function tv(){return mo(59)?bc():void 0}function K1(){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(kE);default:return Io()}}function e_(){if(K1())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 r_()?!0:Io()}}function uA(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&e_()}function Ve(){let X=Bt();X&&$i(!1);let Ae=k(),Ue=_d(!0),St;for(;St=sa(28);)Ue=vS(Ue,St,_d(!0),Ae);return X&&$i(!0),Ue}function t_(){return mo(64)?_d(!0):void 0}function _d(X){if(zE())return ub();let Ae=rv(X)||pA(X);if(Ae)return Ae;let Ue=k(),St=ie(),xt=am(0);return xt.kind===80&&H()===39?nv(Ue,xt,X,St,void 0):Yu(xt)&&wy(Kt())?vS(xt,pl(),_d(X),Ue):om(xt,Ue,X)}function zE(){return H()===127?Tt()?!0:Pi(js):!1}function J1(){return Ne(),!t.hasPrecedingLineBreak()&&Io()}function ub(){let X=k();return Ne(),!t.hasPrecedingLineBreak()&&(H()===42||e_())?tn(m.createYieldExpression(sa(42),_d(!0)),X):tn(m.createYieldExpression(void 0,void 0),X)}function nv(X,Ae,Ue,St,xt){R.assert(H()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Ut=m.createParameterDeclaration(void 0,void 0,Ae,void 0,void 0,void 0);tn(Ut,Ae.pos);let wr=Mo([Ut],Ut.pos,Ut.end),Wi=Ss(39),Ci=mA(!!xt,Ue),_i=m.createArrowFunction(xt,void 0,wr,void 0,Wi,Ci);return Sr(tn(_i,X),St)}function rv(X){let Ae=RM();if(Ae!==0)return Ae===1?BE(!0,!0):Ri(()=>n_(X))}function RM(){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(),Ae=Ne();if(X===21){if(Ae===22)switch(Ne()){case 39:case 59:case 19:return 1;default:return 0}if(Ae===23||Ae===19)return 2;if(Ae===26)return 1;if(Ny(Ae)&&Ae!==134&&Pi(tp))return Ne()===130?0:1;if(!Io()&&Ae!==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 R.assert(X===30),!Io()&&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 n_(X){let Ae=t.getTokenStart();if(Dn?.has(Ae))return;let Ue=BE(!1,X);return Ue||(Dn||(Dn=new Set)).add(Ae),Ue}function pA(X){if(H()===134&&Pi(fA)===1){let Ae=k(),Ue=ie(),St=mf(),xt=am(0);return nv(Ae,xt,X,Ue,St)}}function fA(){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 BE(X,Ae){let Ue=k(),St=ie(),xt=mf(),Ut=gt(xt,uP)?2:0,wr=cf(),Wi;if(xn(21)){if(X)Wi=Jn(Ut,X);else{let vg=Jn(Ut,X);if(!vg)return;Wi=vg}if(!xn(22)&&!X)return}else{if(!X)return;Wi=Sp()}let Ci=H()===59,_i=Vt(59,!1);if(_i&&!X&&Vu(_i))return;let Xi=_i;for(;Xi?.kind===196;)Xi=Xi.type;let ds=Xi&&WR(Xi);if(!X&&H()!==39&&(ds||H()!==19))return;let Rs=H(),$a=Ss(39),Of=Rs===39||Rs===19?mA(gt(xt,uP),Ae):Ns();if(!Ae&&Ci&&H()!==59)return;let K_=m.createArrowFunction(xt,wr,Wi,_i,$a,Of);return Sr(tn(K_,Ue),St)}function mA(X,Ae){if(H()===19)return hb(X?2:0);if(H()!==27&&H()!==100&&H()!==86&&IS()&&!uA())return hb(16|(X?2:0));let Ue=pn;pn=!1;let St=X?se(()=>_d(Ae)):ke(()=>_d(Ae));return pn=Ue,St}function om(X,Ae,Ue){let St=sa(58);if(!St)return X;let xt;return tn(m.createConditionalExpression(X,St,ua(r,()=>_d(!1)),xt=Ss(59),Hf(xt)?_d(Ue):Gs(80,!1,f._0_expected,da(59))),Ae)}function am(X){let Ae=k(),Ue=pb();return q1(X,Ue,Ae)}function $g(X){return X===103||X===165}function q1(X,Ae,Ue){for(;;){Kt();let St=Z2(H());if(!(H()===43?St>=X:St>X)||H()===103&&He())break;if(H()===130||H()===152){if(t.hasPrecedingLineBreak())break;{let Ut=H();Ne(),Ae=Ut===152?jD(Ae,bc()):qi(Ae,bc())}}else Ae=vS(Ae,pl(),am(St),Ue)}return Ae}function r_(){return He()&&H()===103?!1:Z2(H())>0}function jD(X,Ae){return tn(m.createSatisfiesExpression(X,Ae),X.pos)}function vS(X,Ae,Ue,St){return tn(m.createBinaryExpression(X,Ae,Ue),St)}function qi(X,Ae){return tn(m.createAsExpression(X,Ae),X.pos)}function Qr(){let X=k();return tn(m.createPrefixUnaryExpression(H(),We(gl)),X)}function Rh(){let X=k();return tn(m.createDeleteExpression(We(gl)),X)}function Uu(){let X=k();return tn(m.createTypeOfExpression(We(gl)),X)}function DM(){let X=k();return tn(m.createVoidExpression(We(gl)),X)}function Qg(){return H()===135?hn()?!0:Pi(js):!1}function CM(){let X=k();return tn(m.createAwaitExpression(We(gl)),X)}function pb(){if(Bp()){let Ue=k(),St=pg();return H()===43?q1(Z2(H()),St,Ue):St}let X=H(),Ae=gl();if(H()===43){let Ue=Pa(De,Ae.pos),{end:St}=Ae;Ae.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):(R.assert(t6(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 Ae}function gl(){switch(H()){case 40:case 41:case 55:case 54:return Qr();case 91:return Rh();case 114:return Uu();case 116:return DM();case 30:return be===1?Zg(!0,void 0,void 0,!0):Mm();case 135:if(Qg())return CM();default:return pg()}}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 pg(){if(H()===46||H()===47){let Ae=k();return tn(m.createPrefixUnaryExpression(H(),We(sm)),Ae)}else if(be===1&&H()===30&&Pi(im))return Zg(!0);let X=sm();if(R.assert(Yu(X)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){let Ae=H();return Ne(),tn(m.createPostfixUnaryExpression(X,Ae),X.pos)}return X}function sm(){let X=k(),Ae;return H()===102?Pi(md)?(Ie|=4194304,Ae=pl()):Pi(Xg)?(Ne(),Ne(),Ae=tn(m.createMetaProperty(102,xc()),X),Ie|=8388608):Ae=fb():Ae=H()===108?Pm():fb(),ov(X,Ae)}function fb(){let X=k(),Ae=GE();return id(X,Ae,!0)}function Pm(){let X=k(),Ae=pl();if(H()===30){let Ue=k(),St=Ri(sr);St!==void 0&&(U(Ue,k(),f.super_may_not_use_type_arguments),Qi()||(Ae=m.createExpressionWithTypeArguments(Ae,St)))}return H()===21||H()===25||H()===23?Ae:(Ss(25,f.super_must_be_followed_by_an_argument_list_or_member_access),tn(Y(Ae,wt(!0,!0,!0)),X))}function Zg(X,Ae,Ue,St=!1){let xt=k(),Ut=mg(X),wr;if(Ut.kind===286){let Wi=fg(Ut),Ci,_i=Wi[Wi.length-1];if(_i?.kind===284&&!EE(_i.openingElement.tagName,_i.closingElement.tagName)&&EE(Ut.tagName,_i.closingElement.tagName)){let Xi=_i.children.end,ds=tn(m.createJsxElement(_i.openingElement,_i.children,tn(m.createJsxClosingElement(tn(N(""),Xi,Xi)),Xi,Xi)),_i.openingElement.pos,Xi);Wi=Mo([...Wi.slice(0,Wi.length-1),ds],Wi.pos,Xi),Ci=_i.closingElement}else Ci=ES(Ut,X),EE(Ut.tagName,Ci.tagName)||(Ue&&P_(Ue)&&EE(Ci.tagName,Ue.tagName)?Me(Ut.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,hN(De,Ut.tagName)):Me(Ci.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,hN(De,Ut.tagName)));wr=tn(m.createJsxElement(Ut,Wi,Ci),xt)}else Ut.kind===289?wr=tn(m.createJsxFragment(Ut,fg(Ut),gA(X)),xt):(R.assert(Ut.kind===285),wr=Ut);if(!St&&X&&H()===30){let Wi=typeof Ae>"u"?wr.pos:Ae,Ci=Ri(()=>Zg(!0,Wi));if(Ci){let _i=Gs(28,!1);return QN(_i,Ci.pos,0),U(Pa(De,Wi),Ci.end,f.JSX_expressions_must_have_one_parent_element),tn(m.createBinaryExpression(wr,_i,Ci),xt)}}return wr}function bS(){let X=k(),Ae=m.createJsxText(t.getTokenValue(),_t===13);return _t=t.scanJsxToken(),tn(Ae,X)}function _A(X,Ae){switch(Ae){case 1:if(a1(X))Me(X,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Ue=X.tagName,St=Math.min(Pa(De,Ue.pos),Ue.end);U(St,Ue.end,f.JSX_element_0_has_no_corresponding_closing_tag,hN(De,X.tagName))}return;case 31:case 7:return;case 12:case 13:return bS();case 19:return UD(!1);case 30:return Zg(!1,void 0,X);default:return R.assertNever(Ae)}}function fg(X){let Ae=[],Ue=k(),St=en;for(en|=16384;;){let xt=_A(X,_t=t.reScanJsxToken());if(!xt||(Ae.push(xt),P_(X)&&xt?.kind===284&&!EE(xt.openingElement.tagName,xt.closingElement.tagName)&&EE(X.tagName,xt.closingElement.tagName)))break}return en=St,Mo(Ae,Ue)}function X1(){let X=k();return tn(m.createJsxAttributes(Qo(13,HD)),X)}function mg(X){let Ae=k();if(xn(30),H()===32)return tr(),tn(m.createJsxOpeningFragment(),Ae);let Ue=G_(),St=Kn&524288?void 0:qE(),xt=X1(),Ut;return H()===32?(tr(),Ut=m.createJsxOpeningElement(Ue,St,xt)):(xn(44),xn(32,void 0,!1)&&(X?Ne():tr()),Ut=m.createJsxSelfClosingElement(Ue,St,xt)),tn(Ut,Ae)}function G_(){let X=k(),Ae=iv();if(Xm(Ae))return Ae;let Ue=Ae;for(;mo(25);)Ue=tn(Y(Ue,wt(!0,!1,!1)),X);return Ue}function iv(){let X=k();xi();let Ae=H()===110,Ue=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ue,de()),X)):Ae?tn(m.createToken(110),X):Ue}function UD(X){let Ae=k();if(!xn(19))return;let Ue,St;return H()!==20&&(X||(Ue=sa(26)),St=Ve()),X?xn(20):xn(20,void 0,!1)&&tr(),tn(m.createJsxExpression(Ue,St),Ae)}function HD(){if(H()===19)return Ys();let X=k();return tn(m.createJsxAttribute(hA(),KD()),X)}function KD(){if(H()===64){if(Wr()===11)return Xr();if(H()===19)return UD(!0);if(H()===30)return Zg(!0);dn(f.or_JSX_element_expected)}}function hA(){let X=k();xi();let Ae=de();return mo(59)?(xi(),tn(m.createJsxNamespacedName(Ae,de()),X)):Ae}function Ys(){let X=k();xn(19),xn(26);let Ae=Ve();return xn(20),tn(m.createJsxSpreadAttribute(Ae),X)}function ES(X,Ae){let Ue=k();xn(31);let St=G_();return xn(32,void 0,!1)&&(Ae||!EE(X.tagName,St)?Ne():tr()),tn(m.createJsxClosingElement(St),Ue)}function gA(X){let Ae=k();return xn(31),xn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(X?Ne():tr()),tn(m.createJsxJsxClosingFragment(),Ae)}function Mm(){R.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 Ae=bc();xn(32);let Ue=gl();return tn(m.createTypeAssertion(Ae,Ue),X)}function mb(){return Ne(),ou(H())||H()===23||Qi()}function JD(){return H()===29&&Pi(mb)}function yA(X){if(X.flags&64)return!0;if(r1(X)){let Ae=X.expression;for(;r1(Ae)&&!(Ae.flags&64);)Ae=Ae.expression;if(Ae.flags&64){for(;r1(X);)X.flags|=64,X=X.expression;return!0}}return!1}function NM(X,Ae,Ue){let St=wt(!0,!0,!0),xt=Ue||yA(Ae),Ut=xt?B(Ae,Ue,St):Y(Ae,St);if(xt&&Ki(Ut.name)&&Me(Ut.name,f.An_optional_chain_cannot_contain_private_identifiers),Gy(Ae)&&Ae.typeArguments){let wr=Ae.typeArguments.pos-1,Wi=Pa(De,Ae.typeArguments.end)+1;U(wr,Wi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return tn(Ut,X)}function _r(X,Ae,Ue){let St;if(H()===24)St=Gs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let Ut=vn(Ve);$p(Ut)&&(Ut.text=rd(Ut.text)),St=Ut}xn(24);let xt=Ue||yA(Ae)?z(Ae,Ue,St):ce(Ae,St);return tn(xt,X)}function id(X,Ae,Ue){for(;;){let St,xt=!1;if(Ue&&JD()?(St=Ss(29),xt=ou(H())):xt=mo(25),xt){Ae=NM(X,Ae,St);continue}if((St||!Bt())&&mo(23)){Ae=_r(X,Ae,St);continue}if(Qi()){Ae=!St&&Ae.kind===233?uf(X,Ae.expression,St,Ae.typeArguments):uf(X,Ae,St,void 0);continue}if(!St){if(H()===54&&!t.hasPrecedingLineBreak()){Ne(),Ae=tn(m.createNonNullExpression(Ae),X);continue}let Ut=Ri(sr);if(Ut){Ae=tn(m.createExpressionWithTypeArguments(Ae,Ut),X);continue}}return Ae}}function Qi(){return H()===15||H()===16}function uf(X,Ae,Ue,St){let xt=m.createTaggedTemplateExpression(Ae,St,H()===15?(wn(!0),Xr()):O(!0));return(Ue||Ae.flags&64)&&(xt.flags|=64),xt.questionDotToken=Ue,tn(xt,X)}function ov(X,Ae){for(;;){Ae=id(X,Ae,!0);let Ue,St=sa(29);if(St&&(Ue=Ri(sr),Qi())){Ae=uf(X,Ae,St,Ue);continue}if(Ue||H()===21){!St&&Ae.kind===233&&(Ue=Ae.typeArguments,Ae=Ae.expression);let xt=V_(),Ut=St||yA(Ae)?me(Ae,St,Ue,xt):ee(Ae,Ue,xt);Ae=tn(Ut,X);continue}if(St){let xt=Gs(80,!1,f.Identifier_expected);Ae=tn(B(Ae,St,xt),X)}break}return Ae}function V_(){xn(21);let X=zd(11,SS);return xn(22),X}function sr(){if(Kn&524288||Bn()!==30)return;Ne();let X=zd(20,bc);if(Kt()===32)return Ne(),X&&vA()?X:void 0}function vA(){switch(H()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||r_()||!e_()}function GE(){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 pl();case 21:return qc();case 23:return TS();case 19:return ey();case 134:if(!Pi(IA))break;return bA();case 60:return JE();case 86:return nx();case 100:return bA();case 105:return VE();case 44:case 69:if(En()===14)return Xr();break;case 16:return O(!1);case 81:return mr()}return Ns(f.Expression_expected)}function qc(){let X=k(),Ae=ie();xn(21);let Ue=vn(Ve);return xn(22),Sr(tn(q(Ue),X),Ae)}function Dh(){let X=k();xn(26);let Ae=_d(!0);return tn(m.createSpreadElement(Ae),X)}function Lm(){return H()===26?Dh():H()===28?tn(m.createOmittedExpression(),k()):_d(!0)}function SS(){return ua(r,Lm)}function TS(){let X=k(),Ae=t.getTokenStart(),Ue=xn(23),St=t.hasPrecedingLineBreak(),xt=zd(15,Lm);return dd(23,24,Ue,Ae),tn(j(xt,St),X)}function _b(){let X=k(),Ae=ie();if(sa(26)){let Xi=_d(!0);return Sr(tn(m.createSpreadAssignment(Xi),X),Ae)}let Ue=Nh(!0);if(Fr(139))return ny(X,Ae,Ue,177,0);if(Fr(153))return ny(X,Ae,Ue,178,0);let St=sa(42),xt=Io(),Ut=cn(),wr=sa(58),Wi=sa(54);if(St||H()===21||H()===30)return i_(X,Ae,Ue,St,Ut,wr,Wi);let Ci;if(xt&&H()!==59){let Xi=sa(64),ds=Xi?vn(()=>_d(!0)):void 0;Ci=m.createShorthandPropertyAssignment(Ut,ds),Ci.equalsToken=Xi}else{xn(59);let Xi=vn(()=>_d(!0));Ci=m.createPropertyAssignment(Ut,Xi)}return Ci.modifiers=Ue,Ci.questionToken=wr,Ci.exclamationToken=Wi,Sr(tn(Ci,X),Ae)}function ey(){let X=k(),Ae=t.getTokenStart(),Ue=xn(19),St=t.hasPrecedingLineBreak(),xt=zd(12,_b,!0);return dd(19,20,Ue,Ae),tn(K(xt,St),X)}function bA(){let X=Bt();$i(!1);let Ae=k(),Ue=ie(),St=Nh(!1);xn(100);let xt=sa(42),Ut=xt?1:0,wr=gt(St,uP)?2:0,Wi=Ut&&wr?st(km):Ut?lt(km):wr?se(km):km(),Ci=cf(),_i=fn(Ut|wr),Xi=Vt(59,!1),ds=hb(Ut|wr);$i(X);let Rs=m.createFunctionExpression(St,xt,Wi,Ci,_i,Xi,ds);return Sr(tn(Rs,Ae),Ue)}function km(){return Hr()?Ep():void 0}function VE(){let X=k();if(xn(105),mo(25)){let Ut=xc();return tn(m.createMetaProperty(105,Ut),X)}let Ae=k(),Ue=id(Ae,GE(),!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,hN(De,Ue));let xt=H()===21?V_():void 0;return tn(ge(Ue,St,xt),X)}function _g(X,Ae){let Ue=k(),St=ie(),xt=t.getTokenStart(),Ut=xn(19,Ae);if(Ut||X){let wr=t.hasPrecedingLineBreak(),Wi=Qo(1,ip);dd(19,20,Ut,xt);let Ci=Sr(tn(J(Wi,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 Sr(tn(J(wr,void 0),Ue),St)}}function hb(X,Ae){let Ue=Tt();yi(!!(X&1));let St=hn();Ao(!!(X&2));let xt=pn;pn=!1;let Ut=Bt();Ut&&$i(!1);let wr=_g(!!(X&16),Ae);return Ut&&$i(!0),pn=xt,yi(Ue),Ao(St),wr}function Y1(){let X=k(),Ae=ie();return xn(27),Sr(tn(m.createEmptyStatement(),X),Ae)}function jE(){let X=k(),Ae=ie();xn(101);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);dd(21,22,St,Ue);let Ut=ip(),wr=mo(93)?ip():void 0;return Sr(tn(xe(xt,Ut,wr),X),Ae)}function qD(){let X=k(),Ae=ie();xn(92);let Ue=ip();xn(117);let St=t.getTokenStart(),xt=xn(21),Ut=vn(Ve);return dd(21,22,xt,St),mo(27),Sr(tn(m.createDoStatement(Ue,Ut),X),Ae)}function AS(){let X=k(),Ae=ie();xn(117);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);dd(21,22,St,Ue);let Ut=ip();return Sr(tn(fe(xt,Ut),X),Ae)}function EA(){let X=k(),Ae=ie();xn(99);let Ue=sa(135);xn(21);let St;H()!==27&&(H()===115||H()===121||H()===87||H()===160&&Pi(ty)||H()===135&&Pi(Ip)?St=xS(!0):St=kn(Ve));let xt;if(Ue?xn(165):mo(165)){let Ut=vn(()=>_d(!0));xn(22),xt=he(Ue,St,Ut,ip())}else if(mo(103)){let Ut=vn(Ve);xn(22),xt=m.createForInStatement(St,Ut,ip())}else{xn(27);let Ut=H()!==27&&H()!==22?vn(Ve):void 0;xn(27);let wr=H()!==22?vn(Ve):void 0;xn(22),xt=ne(St,Ut,wr,ip())}return Sr(tn(xt,X),Ae)}function Gp(X){let Ae=k(),Ue=ie();xn(X===252?83:88);let St=lc()?void 0:Ns();sl();let xt=X===252?m.createBreakStatement(St):m.createContinueStatement(St);return Sr(tn(xt,Ae),Ue)}function SA(){let X=k(),Ae=ie();xn(107);let Ue=lc()?void 0:vn(Ve);return sl(),Sr(tn(m.createReturnStatement(Ue),X),Ae)}function Ul(){let X=k(),Ae=ie();xn(118);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);dd(21,22,St,Ue);let Ut=Ba(67108864,ip);return Sr(tn(m.createWithStatement(xt,Ut),X),Ae)}function Fc(){let X=k(),Ae=ie();xn(84);let Ue=vn(Ve);xn(59);let St=Qo(3,ip);return Sr(tn(m.createCaseClause(Ue,St),X),Ae)}function TA(){let X=k();xn(90),xn(59);let Ae=Qo(3,ip);return tn(m.createDefaultClause(Ae),X)}function Ad(){return H()===84?Fc():TA()}function rp(){let X=k();xn(19);let Ae=Qo(2,Ad);return xn(20),tn(m.createCaseBlock(Ae),X)}function UE(){let X=k(),Ae=ie();xn(109),xn(21);let Ue=vn(Ve);xn(22);let St=rp();return Sr(tn(m.createSwitchStatement(Ue,St),X),Ae)}function Lf(){let X=k(),Ae=ie();xn(111);let Ue=t.hasPrecedingLineBreak()?void 0:vn(Ve);return Ue===void 0&&(Zt++,Ue=tn(N(""),k())),Rl()||Zl(Ue),Sr(tn(m.createThrowStatement(Ue),X),Ae)}function gb(){let X=k(),Ae=ie();xn(113);let Ue=_g(!1),St=H()===85?yb():void 0,xt;return(!St||H()===98)&&(xn(98,f.catch_or_finally_expected),xt=_g(!1)),Sr(tn(m.createTryStatement(Ue,St,xt),X),Ae)}function yb(){let X=k();xn(85);let Ae;mo(21)?(Ae=Cu(),xn(22)):Ae=void 0;let Ue=_g(!1);return tn(m.createCatchClause(Ae,Ue),X)}function od(){let X=k(),Ae=ie();return xn(89),sl(),Sr(tn(m.createDebuggerStatement(),X),Ae)}function $1(){let X=k(),Ae=ie(),Ue,St=H()===21,xt=vn(Ve);return Fe(xt)&&mo(59)?Ue=m.createLabeledStatement(xt,ip()):(Rl()||Zl(xt),Ue=pe(xt),St&&(Ae=!1)),Sr(tn(Ue,X),Ae)}function Vp(){return Ne(),ou(H())&&!t.hasPrecedingLineBreak()}function AA(){return Ne(),H()===86&&!t.hasPrecedingLineBreak()}function IA(){return Ne(),H()===100&&!t.hasPrecedingLineBreak()}function js(){return Ne(),(ou(H())||H()===9||H()===10||H()===11)&&!t.hasPrecedingLineBreak()}function XD(){for(;;)switch(H()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Q1();case 135:return Z1();case 120:case 156:return J1();case 144:case 145:return QD();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||ou(H());case 95:let Ae=Ne();if(Ae===156&&(Ae=Pi(Ne)),Ae===64||Ae===42||Ae===19||Ae===90||Ae===130||Ae===60)return!0;continue;case 126:Ne();continue;default:return!1}}function HE(){return Pi(XD)}function IS(){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 HE()||Pi(kE);case 87:case 95:return HE();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 HE()||!Pi(Vp);default:return e_()}}function PM(){return Ne(),Hr()||H()===19||H()===23}function hu(){return Pi(PM)}function ty(){return j_(!0)}function j_(X){return Ne(),X&&H()===165?!1:(Hr()||H()===19)&&!t.hasPrecedingLineBreak()}function Q1(){return Pi(j_)}function Ip(X){return Ne()===160?j_(X):!1}function Z1(){return Pi(Ip)}function ip(){switch(H()){case 27:return Y1();case 19:return _g(!1);case 115:return KE(k(),ie(),void 0);case 121:if(hu())return KE(k(),ie(),void 0);break;case 135:if(Z1())return KE(k(),ie(),void 0);break;case 160:if(Q1())return KE(k(),ie(),void 0);break;case 100:return RS(k(),ie(),void 0);case 86:return NA(k(),ie(),void 0);case 101:return jE();case 92:return qD();case 117:return AS();case 99:return EA();case 88:return Gp(251);case 83:return Gp(252);case 107:return SA();case 118:return Ul();case 109:return UE();case 111:return Lf();case 113:case 85:case 98:return gb();case 89:return od();case 60:return av();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(HE())return av();break}return $1()}function ex(X){return X.kind===138}function av(){let X=k(),Ae=ie(),Ue=Nh(!0);if(gt(Ue,ex)){let xt=xA(X);if(xt)return xt;for(let Ut of Ue)Ut.flags|=33554432;return Ba(33554432,()=>YD(X,Ae,Ue))}else return YD(X,Ae,Ue)}function xA(X){return Ba(33554432,()=>{let Ae=vc(en,X);if(Ae)return ll(Ae)})}function YD(X,Ae,Ue){switch(H()){case 115:case 121:case 87:case 160:case 135:return KE(X,Ae,Ue);case 100:return RS(X,Ae,Ue);case 86:return NA(X,Ae,Ue);case 120:return ut(X,Ae,Ue);case 156:return nn(X,Ae,Ue);case 94:return ki(X,Ae,Ue);case 162:case 144:case 145:return Zd(X,Ae,Ue);case 102:return Vn(X,Ae,Ue);case 95:switch(Ne(),H()){case 90:case 64:return Lh(X,Ae,Ue);case 130:return Ph(X,Ae,Ue);default:return MM(X,Ae,Ue)}default:if(Ue){let St=Gs(282,!0,f.Declaration_expected);return $N(St,X),St.modifiers=Ue,St}return}}function $D(){return Ne()===11}function RA(){return Ne(),H()===161||H()===64}function QD(){return Ne(),!t.hasPrecedingLineBreak()&&(Io()||H()===11)}function vb(X,Ae){if(H()!==19){if(X&4){qn();return}if(lc()){sl();return}}return hb(X,Ae)}function xp(){let X=k();if(H()===28)return tn(m.createOmittedExpression(),X);let Ae=sa(26),Ue=Tr(),St=t_();return tn(m.createBindingElement(Ae,void 0,Ue,St),X)}function Ch(){let X=k(),Ae=sa(26),Ue=Hr(),St=cn(),xt;Ue&&H()!==59?(xt=St,St=void 0):(xn(59),xt=Tr());let Ut=t_();return tn(m.createBindingElement(Ae,St,xt,Ut),X)}function ZD(){let X=k();xn(19);let Ae=vn(()=>zd(9,Ch));return xn(20),tn(m.createObjectBindingPattern(Ae),X)}function DA(){let X=k();xn(23);let Ae=vn(()=>zd(10,xp));return xn(24),tn(m.createArrayBindingPattern(Ae),X)}function es(){return H()===19||H()===23||H()===81||Hr()}function Tr(X){return H()===23?DA():H()===19?ZD():Ep(X)}function pf(){return Cu(!0)}function Cu(X){let Ae=k(),Ue=ie(),St=Tr(f.Private_identifiers_are_not_allowed_in_variable_declarations),xt;X&&St.kind===80&&H()===54&&!t.hasPrecedingLineBreak()&&(xt=pl());let Ut=tv(),wr=$g(H())?void 0:t_(),Wi=Ce(St,xt,Ut,wr);return Sr(tn(Wi,Ae),Ue)}function xS(X){let Ae=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:R.assert(Z1()),Ue|=6,Ne();break;default:R.fail()}Ne();let St;if(H()===165&&Pi(eC))St=Sp();else{let xt=He();si(X),St=zd(8,X?Cu:pf),si(xt)}return tn(Ge(St,Ue),Ae)}function eC(){return tp()&&Ne()===22}function KE(X,Ae,Ue){let St=xS(!1);sl();let xt=re(Ue,St);return Sr(tn(xt,X),Ae)}function RS(X,Ae,Ue){let St=hn(),xt=x_(Ue);xn(100);let Ut=sa(42),wr=xt&2048?km():Ep(),Wi=Ut?1:0,Ci=xt&1024?2:0,_i=cf();xt&32&&Ao(!0);let Xi=fn(Wi|Ci),ds=Vt(59,!1),Rs=vb(Wi|Ci,f.or_expected);Ao(St);let $a=m.createFunctionDeclaration(Ue,Ut,wr,_i,Xi,ds,Rs);return Sr(tn($a,X),Ae)}function CA(){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 hg(X,Ae,Ue){return Ri(()=>{if(CA()){let St=cf(),xt=fn(0),Ut=Vt(59,!1),wr=vb(0,f.or_expected),Wi=m.createConstructorDeclaration(Ue,xt,wr);return Wi.typeParameters=St,Wi.type=Ut,Sr(tn(Wi,X),Ae)}})}function i_(X,Ae,Ue,St,xt,Ut,wr,Wi){let Ci=St?1:0,_i=gt(Ue,uP)?2:0,Xi=cf(),ds=fn(Ci|_i),Rs=Vt(59,!1),$a=vb(Ci|_i,Wi),Of=m.createMethodDeclaration(Ue,St,xt,Ut,Xi,ds,Rs,$a);return Of.exclamationToken=wr,Sr(tn(Of,X),Ae)}function ff(X,Ae,Ue,St,xt){let Ut=!xt&&!t.hasPrecedingLineBreak()?sa(54):void 0,wr=tv(),Wi=ua(90112,t_);Bs(St,wr,Wi);let Ci=m.createPropertyDeclaration(Ue,St,xt||Ut,wr,Wi);return Sr(tn(Ci,X),Ae)}function wm(X,Ae,Ue){let St=sa(42),xt=cn(),Ut=sa(58);return St||H()===21||H()===30?i_(X,Ae,Ue,St,xt,Ut,void 0,f.or_expected):ff(X,Ae,Ue,xt,Ut)}function ny(X,Ae,Ue,St,xt){let Ut=cn(),wr=cf(),Wi=fn(0),Ci=Vt(59,!1),_i=vb(xt),Xi=St===177?m.createGetAccessorDeclaration(Ue,Ut,Wi,Ci,_i):m.createSetAccessorDeclaration(Ue,Ut,Wi,_i);return Xi.typeParameters=wr,hp(Xi)&&(Xi.type=Ci),Sr(tn(Xi,X),Ae)}function gg(){let X;if(H()===60)return!0;for(;Ny(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 lc()}}return!1}function yg(X,Ae,Ue){Ss(126);let St=tx(),xt=Sr(tn(m.createClassStaticBlockDeclaration(St),X),Ae);return xt.modifiers=Ue,xt}function tx(){let X=Tt(),Ae=hn();yi(!1),Ao(!0);let Ue=_g(!1);return yi(X),Ao(Ae),Ue}function cc(){if(hn()&&H()===135){let X=k(),Ae=Ns(f.Expression_expected);Ne();let Ue=id(X,Ae,!0);return ov(X,Ue)}return sm()}function tC(){let X=k();if(!mo(60))return;let Ae=Rt(cc);return tn(m.createDecorator(Ae),X)}function kf(X,Ae,Ue){let St=k(),xt=H();if(H()===87&&Ae){if(!Ri(Di))return}else{if(Ue&&H()===126&&Pi(Eb))return;if(X&&H()===126)return;if(!Hc())return}return tn(w(xt),St)}function Nh(X,Ae,Ue){let St=k(),xt,Ut,wr,Wi=!1,Ci=!1,_i=!1;if(X&&H()===60)for(;Ut=tC();)xt=Tn(xt,Ut);for(;wr=kf(Wi,Ae,Ue);)wr.kind===126&&(Wi=!0),xt=Tn(xt,wr),Ci=!0;if(Ci&&X&&H()===60)for(;Ut=tC();)xt=Tn(xt,Ut),_i=!0;if(_i)for(;wr=kf(Wi,Ae,Ue);)wr.kind===126&&(Wi=!0),xt=Tn(xt,wr);return xt&&Mo(xt,St)}function mf(){let X;if(H()===134){let Ae=k();Ne();let Ue=tn(w(134),Ae);X=Mo([Ue],Ae)}return X}function DS(){let X=k(),Ae=ie();if(H()===27)return Ne(),Sr(tn(m.createSemicolonClassElement(),X),Ae);let Ue=Nh(!0,!0,!0);if(H()===126&&Pi(Eb))return yg(X,Ae,Ue);if(Fr(139))return ny(X,Ae,Ue,177,0);if(Fr(153))return ny(X,Ae,Ue,178,0);if(H()===137||H()===11){let St=hg(X,Ae,Ue);if(St)return St}if(ar())return ur(X,Ae,Ue);if(ou(H())||H()===11||H()===9||H()===42||H()===23)if(gt(Ue,ex)){for(let xt of Ue)xt.flags|=33554432;return Ba(33554432,()=>wm(X,Ae,Ue))}else return wm(X,Ae,Ue);if(Ue){let St=Gs(80,!0,f.Declaration_expected);return ff(X,Ae,Ue,St,void 0)}return R.fail("Should not have attempted to parse class member declaration.")}function JE(){let X=k(),Ae=ie(),Ue=Nh(!0);if(H()===86)return _f(X,Ae,Ue,231);let St=Gs(282,!0,f.Expression_expected);return $N(St,X),St.modifiers=Ue,St}function nx(){return _f(k(),ie(),void 0,231)}function NA(X,Ae,Ue){return _f(X,Ae,Ue,263)}function _f(X,Ae,Ue,St){let xt=hn();xn(86);let Ut=Ps(),wr=cf();gt(Ue,XI)&&Ao(!0);let Wi=NS(),Ci;xn(19)?(Ci=oe(),xn(20)):Ci=Sp(),Ao(xt);let _i=St===263?m.createClassDeclaration(Ue,Ut,wr,Wi,Ci):m.createClassExpression(Ue,Ut,wr,Wi,Ci);return Sr(tn(_i,X),Ae)}function Ps(){return Hr()&&!CS()?pd(Hr()):void 0}function CS(){return H()===119&&Pi(Wc)}function NS(){if(I())return Qo(22,ry)}function ry(){let X=k(),Ae=H();R.assert(Ae===96||Ae===119),Ne();let Ue=zd(7,bb);return tn(m.createHeritageClause(Ae,Ue),X)}function bb(){let X=k(),Ae=sm();if(Ae.kind===233)return Ae;let Ue=qE();return tn(m.createExpressionWithTypeArguments(Ae,Ue),X)}function qE(){return H()===30?Gu(20,bc,30,32):void 0}function I(){return H()===96||H()===119}function oe(){return Qo(5,DS)}function ut(X,Ae,Ue){xn(120);let St=Ns(),xt=cf(),Ut=NS(),wr=wE(),Wi=m.createInterfaceDeclaration(Ue,St,xt,Ut,wr);return Sr(tn(Wi,X),Ae)}function nn(X,Ae,Ue){xn(156),t.hasPrecedingLineBreak()&&dn(f.Line_break_not_permitted_here);let St=Ns(),xt=cf();xn(64);let Ut=H()===141&&Ri(lA)||bc();sl();let wr=m.createTypeAliasDeclaration(Ue,St,xt,Ut);return Sr(tn(wr,X),Ae)}function Mr(){let X=k(),Ae=ie(),Ue=cn(),St=vn(t_);return Sr(tn(m.createEnumMember(Ue,St),X),Ae)}function ki(X,Ae,Ue){xn(94);let St=Ns(),xt;xn(19)?(xt=G(()=>zd(6,Mr)),xn(20)):xt=Sp();let Ut=m.createEnumDeclaration(Ue,St,xt);return Sr(tn(Ut,X),Ae)}function vi(){let X=k(),Ae;return xn(19)?(Ae=Qo(1,ip),xn(20)):Ae=Sp(),tn(m.createModuleBlock(Ae),X)}function Zi(X,Ae,Ue,St){let xt=St&32,Ut=St&8?xc():Ns(),wr=mo(25)?Zi(k(),!1,void 0,8|xt):vi(),Wi=m.createModuleDeclaration(Ue,Ut,wr,St);return Sr(tn(Wi,X),Ae)}function _a(X,Ae,Ue){let St=0,xt;H()===162?(xt=Ns(),St|=2048):(xt=Xr(),xt.text=rd(xt.text));let Ut;H()===19?Ut=vi():sl();let wr=m.createModuleDeclaration(Ue,xt,Ut,St);return Sr(tn(wr,X),Ae)}function Zd(X,Ae,Ue){let St=0;if(H()===162)return _a(X,Ae,Ue);if(mo(145))St|=32;else if(xn(144),H()===11)return _a(X,Ae,Ue);return Zi(X,Ae,Ue,St)}function Nu(){return H()===149&&Pi(wf)}function wf(){return Ne()===21}function Eb(){return Ne()===19}function Si(){return Ne()===44}function Ph(X,Ae,Ue){xn(130),xn(145);let St=Ns();sl();let xt=m.createNamespaceExportDeclaration(St);return xt.modifiers=Ue,Sr(tn(xt,X),Ae)}function Vn(X,Ae,Ue){xn(102);let St=t.getTokenFullStart(),xt;Io()&&(xt=Ns());let Ut=!1;if(xt?.escapedText==="type"&&(H()!==161||Io()&&Pi(RA))&&(Io()||Tb())&&(Ut=!0,xt=Io()?Ns():void 0),xt&&!PA())return PS(X,Ae,Ue,xt,Ut);let wr;(xt||H()===42||H()===19)&&(wr=U_(xt,St,Ut),xn(161));let Wi=MA(),Ci=H(),_i;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(_i=Sb(Ci)),sl();let Xi=m.createImportDeclaration(Ue,wr,Wi,_i);return Sr(tn(Xi,X),Ae)}function rx(){let X=k(),Ae=ou(H())?xc():Ol(11);xn(59);let Ue=_d(!0);return tn(m.createImportAttribute(Ae,Ue),X)}function Sb(X,Ae){let Ue=k();Ae||xn(X);let St=t.getTokenStart();if(xn(19)){let xt=t.hasPrecedingLineBreak(),Ut=zd(24,rx,!0);if(!xn(20)){let wr=Qs(ze);wr&&wr.code===f._0_expected.code&&Ma(wr,ER(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return tn(m.createImportAttributes(Ut,xt,X),Ue)}else{let xt=Mo([],k(),void 0,!1);return tn(m.createImportAttributes(xt,!1,X),Ue)}}function Tb(){return H()===42||H()===19}function PA(){return H()===28||H()===161}function PS(X,Ae,Ue,St,xt){xn(64);let Ut=Mh();sl();let wr=m.createImportEqualsDeclaration(Ue,xt,St,Ut);return Sr(tn(wr,X),Ae)}function U_(X,Ae,Ue){let St;return(!X||mo(28))&&(St=H()===42?KB():Ab(275)),tn(m.createImportClause(Ue,X,St),Ae)}function Mh(){return Nu()?nC():Z(!1)}function nC(){let X=k();xn(149),xn(21);let Ae=MA();return xn(22),tn(m.createExternalModuleReference(Ae),X)}function MA(){if(H()===11){let X=Xr();return X.text=rd(X.text),X}else return Ve()}function KB(){let X=k();xn(42),xn(130);let Ae=Ns();return tn(m.createNamespaceImport(Ae),X)}function Ab(X){let Ae=k(),Ue=X===275?m.createNamedImports(Gu(23,f8,19,20)):m.createNamedExports(Gu(23,p8,19,20));return tn(Ue,Ae)}function p8(){let X=ie();return Sr(XE(281),X)}function f8(){return XE(276)}function XE(X){let Ae=k(),Ue=Wu(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ut=!1,wr,Wi=!0,Ci=xc();if(Ci.escapedText==="type")if(H()===130){let ds=xc();if(H()===130){let Rs=xc();ou(H())?(Ut=!0,wr=ds,Ci=Xi(),Wi=!1):(wr=Ci,Ci=Rs,Wi=!1)}else ou(H())?(wr=Ci,Wi=!1,Ci=Xi()):(Ut=!0,Ci=ds)}else ou(H())&&(Ut=!0,Ci=Xi());Wi&&H()===130&&(wr=Ci,xn(130),Ci=Xi()),X===276&&Ue&&U(St,xt,f.Identifier_expected);let _i=X===276?m.createImportSpecifier(Ut,wr,Ci):m.createExportSpecifier(Ut,wr,Ci);return tn(_i,Ae);function Xi(){return Ue=Wu(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),xc()}}function o_(X){return tn(m.createNamespaceExport(xc()),X)}function MM(X,Ae,Ue){let St=hn();Ao(!0);let xt,Ut,wr,Wi=mo(156),Ci=k();mo(42)?(mo(130)&&(xt=o_(Ci)),xn(161),Ut=MA()):(xt=Ab(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(xn(161),Ut=MA()));let _i=H();Ut&&(_i===118||_i===132)&&!t.hasPrecedingLineBreak()&&(wr=Sb(_i)),sl(),Ao(St);let Xi=m.createExportDeclaration(Ue,Wi,xt,Ut,wr);return Sr(tn(Xi,X),Ae)}function Lh(X,Ae,Ue){let St=hn();Ao(!0);let xt;mo(64)?xt=!0:xn(90);let Ut=_d(!0);sl(),Ao(St);let wr=m.createExportAssignment(Ue,xt,Ut);return Sr(tn(wr,X),Ae)}let ix;(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"})(ix||(ix={}));let m8;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(m8||(m8={}));let H_;(X=>{function Ae(_i,Xi,ds){Li("file.js",_i,99,void 0,1,0),t.setText(_i,Xi,ds),_t=t.scan();let Rs=Ue(),$a=Ot("file.js",99,1,!1,[],w(1),0,qa),Of=WI(ze,$a);return tt&&($a.jsDocDiagnostics=WI(tt,$a)),Eo(),Rs?{jsDocTypeExpression:Rs,diagnostics:Of}:void 0}X.parseJSDocTypeExpressionForTests=Ae;function Ue(_i){let Xi=k(),ds=(_i?mo:xn)(19),Rs=Ba(16777216,Nm);(!_i||ds)&&_l(20);let $a=m.createJSDocTypeExpression(Rs);return $e($a),tn($a,Xi)}X.parseJSDocTypeExpression=Ue;function St(){let _i=k(),Xi=mo(19),ds=k(),Rs=Z(!1);for(;H()===81;)gi(),It(),Rs=tn(m.createJSDocMemberName(Rs,Ns()),ds);Xi&&_l(20);let $a=m.createJSDocNameReference(Rs);return $e($a),tn($a,_i)}X.parseJSDocNameReference=St;function xt(_i,Xi,ds){Li("",_i,99,void 0,1,0);let Rs=Ba(16777216,()=>Ci(Xi,ds)),Of=WI(ze,{languageVariant:0,text:_i});return Eo(),Rs?{jsDoc:Rs,diagnostics:Of}:void 0}X.parseIsolatedJSDocComment=xt;function Ut(_i,Xi,ds){let Rs=_t,$a=ze.length,Of=Yt,K_=Ba(16777216,()=>Ci(Xi,ds));return ja(K_,_i),Kn&524288&&(tt||(tt=[]),Ur(tt,ze,$a)),_t=Rs,ze.length=$a,Yt=Of,K_}X.parseJSDocComment=Ut;let wr;(_i=>{_i[_i.BeginningOfLine=0]="BeginningOfLine",_i[_i.SawAsterisk=1]="SawAsterisk",_i[_i.SavingComments=2]="SavingComments",_i[_i.SavingBackticks=3]="SavingBackticks"})(wr||(wr={}));let Wi;(_i=>{_i[_i.Property=1]="Property",_i[_i.Parameter=2]="Parameter",_i[_i.CallbackParameter=4]="CallbackParameter"})(Wi||(Wi={}));function Ci(_i=0,Xi){let ds=De,Rs=Xi===void 0?ds.length:_i+Xi;if(Xi=Rs-_i,R.assert(_i>=0),R.assert(_i<=Rs),R.assert(Rs<=ds.length),!RH(ds,_i))return;let $a,Of,K_,vg,iy,oy=[],Ib=[],op=en;en|=1<<25;let LA=t.scanRange(_i+3,Xi-5,rC);return en=op,LA;function rC(){let Rn=1,Or,Nr=_i-(ds.lastIndexOf(` +`,_i)+1)+4;function Fi(Ts){Or||(Or=Nr),oy.push(Ts),Nr+=Ts.length}for(It();sv(5););sv(4)&&(Rn=0,Nr=0);e:for(;;){switch(H()){case 60:kM(oy),iy||(iy=k()),OM(iC(Nr)),Rn=0,Or=void 0;break;case 4:oy.push(t.getTokenText()),Rn=0,Nr=0;break;case 42:let Ts=t.getTokenText();Rn===1?(Rn=2,Fi(Ts)):(R.assert(Rn===0),Rn=1,Nr+=Ts.length);break;case 5:R.assert(Rn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let eu=t.getTokenText();Or!==void 0&&Nr+eu.length>Or&&oy.push(eu.slice(Or-Nr)),Nr+=eu.length;break;case 1:break e;case 82:Rn=2,Fi(t.getTokenValue());break;case 19:Rn=2;let kh=t.getTokenFullStart(),Rp=t.getTokenEnd()-1,s_=dc(Rp);if(s_){vg||LM(oy),Ib.push(tn(m.createJSDocText(oy.join("")),vg??_i,kh)),Ib.push(s_),oy=[],vg=t.getTokenEnd();break}default:Rn=2,Fi(t.getTokenText());break}Rn===2?Dt(!1):It()}let Mi=oy.join("").trimEnd();Ib.length&&Mi.length&&Ib.push(tn(m.createJSDocText(Mi),vg??_i,iy)),Ib.length&&$a&&R.assertIsDefined(iy,"having parsed tags implies that the end of the comment span should be set");let ts=$a&&Mo($a,Of,K_);return tn(m.createJSDocComment(Ib.length?Mo(Ib,_i,iy):Mi.length?Mi:void 0,ts),_i,Rs)}function LM(Rn){for(;Rn.length&&(Rn[0]===` +`||Rn[0]==="\r");)Rn.shift()}function kM(Rn){for(;Rn.length;){let Or=Rn[Rn.length-1].trimEnd();if(Or==="")Rn.pop();else if(Or.lengtheu&&(Fi.push(sy.slice(eu-Rn)),Ts=2),Rn+=sy.length;break;case 19:Ts=2;let Dp=t.getTokenFullStart(),sC=t.getTokenEnd()-1,_8=dc(sC);_8?(Mi.push(tn(m.createJSDocText(Fi.join("")),ts??Nr,Dp)),Mi.push(_8),Fi=[],ts=t.getTokenEnd()):kh(t.getTokenText());break;case 62:Ts===3?Ts=2:Ts=3,kh(t.getTokenText());break;case 82:Ts!==3&&(Ts=2),kh(t.getTokenValue());break;case 42:if(Ts===0){Ts=1,Rn+=1;break}default:Ts!==3&&(Ts=2),kh(t.getTokenText());break}Ts===2||Ts===3?Rp=Dt(Ts===3):Rp=It()}LM(Fi);let s_=Fi.join("").trimEnd();if(Mi.length)return s_.length&&Mi.push(tn(m.createJSDocText(s_),ts??Nr)),Mo(Mi,Nr,t.getTokenEnd());if(s_.length)return s_}function dc(Rn){let Or=Ri(ox);if(!Or)return;It(),ay();let Nr=$E(),Fi=[];for(;H()!==20&&H()!==4&&H()!==1;)Fi.push(t.getTokenText()),It();let Mi=Or==="link"?m.createJSDocLink:Or==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return tn(Mi(Nr,Fi.join("")),Rn,t.getTokenEnd())}function $E(){if(ou(H())){let Rn=k(),Or=xc();for(;mo(25);)Or=tn(m.createQualifiedName(Or,H()===81?Gs(80,!1):Ns()),Rn);for(;H()===81;)gi(),It(),Or=tn(m.createJSDocMemberName(Or,Ns()),Rn);return Or}}function ox(){if(xb(),H()===19&&It()===60&&ou(It())){let Rn=t.getTokenValue();if(wM(Rn))return Rn}}function wM(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function Rb(Rn,Or,Nr,Fi){return tn(m.createJSDocUnknownTag(Or,jp(Rn,k(),Nr,Fi)),Rn)}function OM(Rn){Rn&&($a?$a.push(Rn):($a=[Rn],Of=Rn.pos),K_=Rn.end)}function nr(){return xb(),H()===19?Ue():void 0}function v(){let Rn=sv(23);Rn&&ay();let Or=sv(62),Nr=aC();return Or&&Na(62),Rn&&(ay(),sa(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,Fi){let Mi=nr(),ts=!Mi;xb();let{name:Ts,isBracketed:eu}=v(),kh=xb();ts&&!Pi(ox)&&(Mi=nr());let Rp=jp(Rn,k(),Fi,kh),s_=le(Mi,Ts,Nr,Fi);s_&&(Mi=s_,ts=!0);let sy=Nr===1?m.createJSDocPropertyTag(Or,Ts,eu,Mi,ts,Rp):m.createJSDocParameterTag(Or,Ts,eu,Mi,ts,Rp);return tn(sy,Rn)}function le(Rn,Or,Nr,Fi){if(Rn&&C(Rn.type)){let Mi=k(),ts,Ts;for(;ts=Ri(()=>XB(Nr,Fi,Or));)ts.kind===348||ts.kind===355?Ts=Tn(Ts,ts):ts.kind===352&&Me(ts.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ts){let eu=tn(m.createJSDocTypeLiteral(Ts,Rn.type.kind===188),Mi);return tn(m.createJSDocTypeExpression(eu),Mi)}}}function Ke(Rn,Or,Nr,Fi){gt($a,J4)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=nr();return tn(m.createJSDocReturnTag(Or,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function Ht(Rn,Or,Nr,Fi){gt($a,SP)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=Ue(!0),ts=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocTypeTag(Or,Mi,ts),Rn)}function gr(Rn,Or,Nr,Fi){let ts=H()===23||Pi(()=>It()===60&&ou(It())&&wM(t.getTokenValue()))?void 0:St(),Ts=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSeeTag(Or,ts,Ts),Rn)}function eo(Rn,Or,Nr,Fi){let Mi=nr(),ts=jp(Rn,k(),Nr,Fi);return tn(m.createJSDocThrowsTag(Or,Mi,ts),Rn)}function Us(Rn,Or,Nr,Fi){let Mi=k(),ts=a_(),Ts=t.getTokenFullStart(),eu=jp(Rn,Ts,Nr,Fi);eu||(Ts=t.getTokenFullStart());let kh=typeof eu!="string"?Mo(bo([tn(ts,Mi,Ts)],eu),Mi):ts.text+eu;return tn(m.createJSDocAuthorTag(Or,kh),Rn)}function a_(){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 Db(Rn,Or,Nr,Fi){let Mi=sZ();return tn(m.createJSDocImplementsTag(Or,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function Om(Rn,Or,Nr,Fi){let Mi=sZ();return tn(m.createJSDocAugmentsTag(Or,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function QE(Rn,Or,Nr,Fi){let Mi=Ue(!1),ts=Nr!==void 0&&Fi!==void 0?jp(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSatisfiesTag(Or,Mi,ts),Rn)}function sZ(){let Rn=mo(19),Or=k(),Nr=Vhe();t.setInJSDocType(!0);let Fi=qE();t.setInJSDocType(!1);let Mi=m.createExpressionWithTypeArguments(Nr,Fi),ts=tn(Mi,Or);return Rn&&xn(20),ts}function Vhe(){let Rn=k(),Or=e0();for(;mo(25);){let Nr=e0();Or=tn(Y(Or,Nr),Rn)}return Or}function ZE(Rn,Or,Nr,Fi,Mi){return tn(Or(Nr,jp(Rn,k(),Fi,Mi)),Rn)}function JB(Rn,Or,Nr,Fi){let Mi=Ue(!0);return ay(),tn(m.createJSDocThisTag(Or,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function lZ(Rn,Or,Nr,Fi){let Mi=Ue(!0);return ay(),tn(m.createJSDocEnumTag(Or,Mi,jp(Rn,k(),Nr,Fi)),Rn)}function WM(Rn,Or,Nr,Fi){let Mi=nr();xb();let ts=qB();ay();let Ts=Ga(Nr),eu;if(!Mi||C(Mi.type)){let Rp,s_,sy,Dp=!1;for(;(Rp=Ri(()=>uZ(Nr)))&&Rp.kind!==352;)if(Dp=!0,Rp.kind===351)if(s_){let sC=dn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);sC&&Ma(sC,ER(ve,De,0,0,f.The_tag_was_first_specified_here));break}else s_=Rp;else sy=Tn(sy,Rp);if(Dp){let sC=Mi&&Mi.type.kind===188,_8=m.createJSDocTypeLiteral(sy,sC);Mi=s_&&s_.typeExpression&&!C(s_.typeExpression.type)?s_.typeExpression:tn(_8,Rn),eu=Mi.end}}eu=eu||Ts!==void 0?k():(ts??Mi??Or).end,Ts||(Ts=jp(Rn,eu,Nr,Fi));let kh=m.createJSDocTypedefTag(Or,Mi,ts,Ts);return tn(kh,Rn,eu)}function qB(Rn){let Or=t.getTokenStart();if(!ou(H()))return;let Nr=e0();if(mo(25)){let Fi=qB(!0),Mi=m.createModuleDeclaration(void 0,Nr,Fi,Rn?8:void 0);return tn(Mi,Or)}return Rn&&(Nr.flags|=4096),Nr}function cZ(Rn){let Or=k(),Nr,Fi;for(;Nr=Ri(()=>XB(4,Rn));){if(Nr.kind===352){Me(Nr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Fi=Tn(Fi,Nr)}return Mo(Fi||[],Or)}function dZ(Rn,Or){let Nr=cZ(Or),Fi=Ri(()=>{if(sv(60)){let Mi=iC(Or);if(Mi&&Mi.kind===349)return Mi}});return tn(m.createJSDocSignature(void 0,Nr,Fi),Rn)}function jhe(Rn,Or,Nr,Fi){let Mi=qB();ay();let ts=Ga(Nr),Ts=dZ(Rn,Nr);ts||(ts=jp(Rn,k(),Nr,Fi));let eu=ts!==void 0?k():Ts.end;return tn(m.createJSDocCallbackTag(Or,Ts,Mi,ts),Rn,eu)}function Uhe(Rn,Or,Nr,Fi){ay();let Mi=Ga(Nr),ts=dZ(Rn,Nr);Mi||(Mi=jp(Rn,k(),Nr,Fi));let Ts=Mi!==void 0?k():ts.end;return tn(m.createJSDocOverloadTag(Or,ts,Mi),Rn,Ts)}function oC(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 XB(1,Rn)}function XB(Rn,Or,Nr){let Fi=!0,Mi=!1;for(;;)switch(It()){case 60:if(Fi){let ts=MS(Rn,Or);return ts&&(ts.kind===348||ts.kind===355)&&Nr&&(Fe(ts.name)||!oC(Nr,ts.name.left))?!1:ts}Mi=!1;break;case 4:Fi=!0,Mi=!1;break;case 42:Mi&&(Fi=!1),Mi=!0;break;case 80:Fi=!1;break;case 1:return!1}}function MS(Rn,Or){R.assert(H()===60);let Nr=t.getTokenFullStart();It();let Fi=e0(),Mi=xb(),ts;switch(Fi.escapedText){case"type":return Rn===1&&Ht(Nr,Fi);case"prop":case"property":ts=1;break;case"arg":case"argument":case"param":ts=6;break;case"template":return Nb(Nr,Fi,Or,Mi);case"this":return JB(Nr,Fi,Or,Mi);default:return!1}return Rn&ts?F(Nr,Fi,Rn,Or):!1}function lr(){let Rn=k(),Or=sv(23);Or&&ay();let Nr=Nh(!1,!0),Fi=e0(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Mi;if(Or&&(ay(),xn(64),Mi=Ba(16777216,Nm),xn(24)),!Bl(Fi))return tn(m.createTypeParameterDeclaration(Nr,Fi,void 0,Mi),Rn)}function Cb(){let Rn=k(),Or=[];do{ay();let Nr=lr();Nr!==void 0&&Or.push(Nr),xb()}while(sv(28));return Mo(Or,Rn)}function Nb(Rn,Or,Nr,Fi){let Mi=H()===19?Ue():void 0,ts=Cb();return tn(m.createJSDocTemplateTag(Or,Mi,ts,jp(Rn,k(),Nr,Fi)),Rn)}function sv(Rn){return H()===Rn?(It(),!0):!1}function aC(){let Rn=e0();for(mo(23)&&xn(24);mo(25);){let Or=e0();mo(23)&&xn(24),Rn=rt(Rn,Or)}return Rn}function e0(Rn){if(!ou(H()))return Gs(80,!Rn,Rn||f.Identifier_expected);Zt++;let Or=t.getTokenStart(),Nr=t.getTokenEnd(),Fi=H(),Mi=rd(t.getTokenValue()),ts=tn(N(Mi,Fi),Or,Nr);return It(),ts}}})(H_=e.JSDocParser||(e.JSDocParser={}))})(SE||(SE={})),(e=>{function t(S,A,N,D){if(D=D||R.shouldAssert(2),m(S,A,N,D),Une(N))return S;if(S.statements.length===0)return SE.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let w=S;R.assert(!w.hasBeenIncrementallyParsed),w.hasBeenIncrementallyParsed=!0,SE.fixupParentReferences(w);let j=S.text,K=y(S),Y=p(S,N);m(S,A,Y,D),R.assert(Y.span.start<=N.span.start),R.assert(Xl(Y.span)===Xl(N.span)),R.assert(Xl(iN(Y))===Xl(iN(N)));let B=iN(Y).length-Y.span.length;d(w,Y.span.start,Xl(Y.span),Xl(iN(Y)),B,j,A,D);let ce=SE.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,Xl(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 ee of S){let{range:me,type:ge}=ee;if(me.endD){z();let q={range:{pos:me.pos+w,end:me.end+w},type:ge};B=Tn(B,q),Y&&R.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),mh(B,B.pos+N,B.end+N),j&&o(B)&&R.assert(ce===w.substring(B.pos,B.end)),Bo(B,K,Y),kp(B))for(let z of B.jsDoc)K(z);l(B,j)}function Y(B){B._children=void 0,mh(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){R.assert(S.end>=A,"Adjusting an element that was entirely before the change range"),R.assert(S.pos<=N,"Adjusting an element that was entirely after the change range"),R.assert(S.pos<=S.end);let j=Math.min(S.pos,D),K=S.end>=N?S.end+w:Math.min(S.end,D);R.assert(j<=K),S.parent&&(R.assertGreaterThanOrEqual(j,S.parent.pos),R.assertLessThanOrEqual(K,S.parent.end)),mh(S,j,K)}function l(S,A){if(A){let N=S.pos,D=w=>{R.assert(w.pos>=N),N=w.end};if(kp(S))for(let w of S.jsDoc)D(w);Bo(S,D),R.assert(N<=S.end)}}function d(S,A,N,D,w,j,K,Y){B(S);return;function B(z){if(R.assert(z.pos<=z.end),z.pos>N){i(z,!1,w,j,K,Y);return}let ee=z.end;if(ee>=A){if(z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w),Bo(z,B,ce),kp(z))for(let me of z.jsDoc)B(me);l(z,Y);return}R.assert(eeN){i(z,!0,w,j,K,Y);return}let ee=z.end;if(ee>=A){z.intersectsChange=!0,z._children=void 0,s(z,A,N,D,w);for(let me of z)B(me);return}R.assert(ee0&&K<=1;K++){let Y=h(S,D);R.assert(Y.pos<=D);let B=Y.pos;D=Math.max(0,B-1)}let w=pc(D,Xl(A.span)),j=A.newLength+(A.span.start-D);return QL(w,j)}function h(S,A){let N=S,D;if(Bo(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(!Bl(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&&(R.assert(w.length-N.span.length+N.newLength===A.length),D||R.shouldAssert(3))){let j=w.substr(0,N.span.start),K=A.substr(0,N.span.start);R.assert(j===K);let Y=w.substring(Xl(N.span),w.length),B=A.substring(Xl(iN(N)),A.length);R.assert(Y===B)}}function y(S){let A=S.statements,N=0;R.assert(N=ce.pos&&K=ce.pos&&K{S[S.Value=-1]="Value"})(E||(E={}))})(LH||(LH={})),kH=new Map,UTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,HTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function o3(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 HR(){return CAe||(CAe=o3(sg))}function $ae(e){return KTe(e,Hl)}function KTe(e,t){let r=Oo(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 a3(e,t,r){return AAe(e,(t??"").trim(),r)}function Qae(e,t="",r){if(t=t.trim(),ao(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return u1(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return to(i,o=>u1(e.element,parseInt(o),r));case"string":return to(i,o=>u1(e.element,o||"",r));case"boolean":case"object":return R.fail(`List of ${e.element.type} is not yet supported.`);default:return to(i,o=>a3(e.element,o,r))}}function JTe(e){return e.name}function Zae(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return TE(o,i,t.alternateMode.diagnostic,e);let l=JC(e,t.optionDeclarations,JTe);return l?TE(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):TE(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(;mgd.readFile(S)));if(!Co(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 qTe(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]=u1(i,!1,s),t++):(l==="true"&&t++,s.push(Hl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Hl(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(Hl(r.optionTypeMismatchDiagnostic,i.name,zH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=u1(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=u1(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=u1(i,e[t]||"",s),t++;break;case"list":let d=Qae(i,e[t],s);o[i.name]=d||[],d&&t++;break;case"listOrElement":R.fail("listOrElement not supported here");break;default:o[i.name]=a3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function XTe(e,t){return wH(pw,e,t)}function OH(e,t){return ese(HR,e,t)}function ese(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 YTe(){return PAe||(PAe=o3(m3))}function $Te(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=wH(LAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function QTe(e,...t){return ta(Hl(e,...t).messageText,Co)}function nw(e,t,r,i,o,s){let l=RP(e,h=>r.readFile(h));if(!Co(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=tw(e,l),p=r.getCurrentDirectory();return d.path=nl(e,p,Pd(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,ow(d,r,_o(oi(e),p),t,_o(e,p),void 0,s,i,o)}function rw(e,t){let r=RP(e,t);return Co(r)?WH(e,r):{config:{},error:r}}function WH(e,t){let r=tw(e,t);return{config:rAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function tse(e,t){let r=RP(e,t);return Co(r)?tw(e,r):{fileName:e,parseDiagnostics:[r]}}function RP(e,t){let r;try{r=t(e)}catch(i){return Hl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Hl(f.Cannot_read_file_0,e):r}function FH(e){return g0(e,JTe)}function ZTe(){return kAe||(kAe=o3(KR))}function eAe(){return wAe||(wAe=FH(sg))}function tAe(){return OAe||(OAe=FH(KR))}function nAe(){return WAe||(WAe=FH(uw))}function W5e(){return hse===void 0&&(hse={name:void 0,type:"object",elementOptions:FH([fse,mse,_se,fw,{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},sw])}),hse}function rAe(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,ic(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),fu(o)){let s=Gr(o.elements,La);if(s)return iw(e,s,t,!0,r)}return{}}return iw(e,o,t,!0,r)}function nse(e,t){var r;return iw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function iw(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=b2(S.name)?void 0:Jx(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 Vr(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 Ca(h)&&XF(h,e)}}function zH(e){return e.type==="listOrElement"?`${zH(e.element)} or Array`:e.type==="list"?"Array":Co(e.type)?e.type:"string"}function iAe(e,t){if(e){if(aw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return So(t);if(e.type==="listOrElement")return So(t)||iAe(e.element,t);let r=Co(e.type)?e.type:"string";return typeof t===r}return!1}function oAe(e,t,r){var i,o,s;let l=Pd(r.useCaseSensitiveFileNames),d=mn(Vr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?z5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ay),A=>GL(_o(t,r.getCurrentDirectory()),_o(A,r.getCurrentDirectory()),l)),p={configFilePath:_o(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=l3(e.options,p),m=e.watchOptions&&B5e(e.watchOptions),y={compilerOptions:{...s3(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&&s3(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:F5e(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 _c)if(!E.has(A)&>(_c[A].dependencies,N=>E.has(N))){let N=_c[A].computeValue(e.options),D=_c[A].computeValue({});N!==D&&(S[A]=_c[A].computeValue(e.options))}return Tx(y.compilerOptions,s3(l3(S,p))),y}function s3(e){return{...Oo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function F5e(e){if(Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==g3)return e}}function z5e(e,t,r,i){if(!t)return Ay;let o=k6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Gv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&Gv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ay}function aAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return aAe(e.element);default:return e.type}}function BH(e,t){return Gc(t,(r,i)=>{if(r===e)return i})}function l3(e,t){return sAe(e,HR(),t)}function B5e(e){return sAe(e,ZTe())}function sAe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Pd(r.useCaseSensitiveFileNames);for(let s in e)if(Is(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){R.assert(d.type!=="listOrElement");let p=aAe(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,GL(r.configFilePath,_o(l,oi(r.configFilePath)),o)):i.set(s,l)}}return i}function lAe(e,t){let r=cAe(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=cse(d);p!==h?s.push(`${l}${d.name}: ${p}`):Is(_3,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function cAe(e){let t=vW(e,_3);return l3(t)}function dAe(e,t,r){let i=cAe(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 sg)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:`/* ${ko(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(cse(N))},`,m.push({value:D,description:`/* ${N.description&&ko(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}/* ${ko(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=ee==="no-prop"||So(ee)&&ee.length===0,ne=Is(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=I2(t,"files",Ie=>Ie.initializer),ve=TE(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=[g3],J=!0);let pe,xe;return ge&&(pe=DAe(ge,m,!0,t,"include")),re&&(xe=DAe(re,m,!1,t,"exclude")),{filesSpecs:me,includeSpecs:ge,excludeSpecs:re,validatedFilesSpec:Vr(me,Co),validatedIncludeSpecs:pe,validatedExcludeSpecs:xe,pathPatterns:void 0,isDefaultIncludeSpec:J}}function j(ee){let me=CP(N,ee,S,r,p);return _Ae(me,DP(E),d)&&m.push(mAe(N,l)),me}function K(ee){let me,ge=ce("references",q=>typeof q=="object","object");if(So(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:_o(q.path,ee),originalPath:q.path,prepend:q.prepend,circular:q.circular});return me}function Y(ee){return So(ee)?ee:void 0}function B(ee){return ce(ee,Co,"string")}function ce(ee,me,ge){if(Is(E,ee)&&!aw(E[ee]))if(So(E[ee])){let q=E[ee];return!t&&!oo(q,me)&&m.push(Hl(f.Compiler_option_0_requires_a_value_of_type_1,ee,ge)),q}else return z(f.Compiler_option_0_requires_a_value_of_type_1,ee,"Array"),"not-array";return"no-prop"}function z(ee,...me){t||m.push(Hl(ee,...me))}}function V5e(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 mAe({includeSpecs:e,excludeSpecs:t},r){return Hl(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 _Ae(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function DP(e){return!Is(e,"files")&&!Is(e,"references")}function c3(e,t,r,i,o){let s=i.length;return _Ae(e,o)?i.push(mAe(r,t)):CG(i,l=>!V5e(l)),s!==i.length}function j5e(e){return!!e.options}function hAe(e,t,r,i,o,s,l,d){var p;i=Md(i);let h=_o(o||"",i);if(s.includes(h))return l.push(Hl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||nse(t,l)};let m=e?U5e(e,r,i,o,l):H5e(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:{}};Co(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=Oo(E.extendedSourceFiles.keys())),m.options=Tx(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?Tx(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function y(E,S){let A=K5e(t,S,r,s,l,d,E);if(A&&j5e(A)){let N=A.raw,D,w=j=>{N[j]&&(E[j]=mn(N[j],K=>cp(K)?K:Yr(D||(D=ZC(oi(S),i,Pd(r.useCaseSensitiveFileNames))),K)))};w("include"),w("exclude"),w("files"),N.compileOnSave!==void 0&&(E.compileOnSave=N.compileOnSave),Tx(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?Tx({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function U5e(e,t,r,i,o){Is(e,"excludes")&&o.push(Hl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=SAe(e.compilerOptions,r,o,i),l=TAe(e.typeAcquisition,r,o,i),d=q5e(e.watchOptions,r,o);e.compileOnSave=J5e(e,r,o);let p=e.extends||e.extends===""?gAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function gAe(e,t,r,i,o,s,l,d){let p,h=i?pAe(i,r):r;if(Co(e))p=yAe(e,t,h,o,l,d);else if(So(e)){p=[];for(let m=0;mj.name===S)&&(h=Tn(h,N.name))))}}function yAe(e,t,r,i,o,s){if(e=Md(e),cp(e)||ao(e,"./")||ao(e,"../")){let d=_o(e,r);if(!t.fileExists(d)&&!Sl(d,".json")&&(d=`${d}.json`,!t.fileExists(d))){i.push(TE(s,o,f.File_0_not_found,e));return}return d}let l=xse(e,Yr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(TE(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(TE(s,o,f.File_0_not_found,e))}function K5e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:oh(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=tse(t,y=>r.readFile(y)),h.parseDiagnostics.length||(m=hAe(void 0,h,r,oi(t),ic(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 J5e(e,t,r){if(!Is(e,sw.name))return!1;let i=UT(sw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function vAe(e,t,r){let i=[];return{options:SAe(e,t,i,r),errors:i}}function bAe(e,t,r){let i=[];return{options:TAe(e,t,i,r),errors:i}}function EAe(e){return e&&ic(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function SAe(e,t,r,i){let o=EAe(i);return rse(eAe(),e,t,o,pw,r),i&&(o.configFilePath=Md(i)),o}function jH(e){return{enable:!!e&&ic(e)==="jsconfig.json",include:[],exclude:[]}}function TAe(e,t,r,i){let o=jH(i);return rse(nAe(),e,t,o,pse,r),o}function q5e(e,t,r){return rse(tAe(),e,t,void 0,h3,r)}function rse(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=UT(d,t[l],r,s):s.push(Zae(l,o))}return i}}function TE(e,t,r,...i){return e&&t?Kf(e,t,r,...i):Hl(r,...i)}function UT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(TE(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(iAe(e,t)){let d=e.type;if(d==="list"&&So(t))return IAe(e,t,r,i,o,s,l);if(d==="listOrElement")return So(t)?IAe(e,t,r,i,o,s,l):UT(e.element,t,r,i,o,s,l);if(!Co(e.type))return AAe(e,t,i,s,l);let p=u1(e,t,i,s,l);return aw(p)?p:X5e(e,r,p)}else i.push(TE(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,zH(e)))}function X5e(e,t,r){return e.isFilePath&&(r=_o(r,t),r===""&&(r=".")),r}function u1(e,t,r,i,o){var s;if(aw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(TE(o,i,...l))}function AAe(e,t,r,i,o){if(aw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return u1(e,l,r,i,o);r.push(KTe(e,(d,...p)=>TE(o,i,d,...p)))}function IAe(e,t,r,i,o,s,l){return Vr(mn(t,(d,p)=>UT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function CP(e,t,r,i,o=Xe){t=ma(t);let s=Pd(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,E=KN(r,o),S=dk(r,E);if(h)for(let w of h){let j=_o(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(Tl(w,".json")){if(!A){let Y=m.filter(ce=>Sl(ce,".json")),B=mn(M6(Y,t,"files"),ce=>`^${ce}$`);A=B?B.map(ce=>Gv(ce,i.useCaseSensitiveFileNames)):Xe}if(ql(A,Y=>Y.test(w))!==-1){let Y=s(w);!l.has(Y)&&!p.has(Y)&&p.set(Y,w)}continue}if(Q5e(w,l,d,E,s))continue;Z5e(w,d,E,s);let j=s(w);!l.has(j)&&!d.has(j)&&d.set(j,w)}let N=Oo(l.values()),D=Oo(d.values());return N.concat(D,Oo(p.values()))}function ise(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=Pd(i);if(s){for(let h of s)if(p(_o(h,r))===e)return!1}return RAe(e,d,i,o,r)}function xAe(e){let t=ao(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Sl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function d3(e,t,r,i){return RAe(e,Vr(t,o=>!xAe(o)),r,i)}function RAe(e,t,r,i,o){let s=HN(t,Yr(ma(i),o),"exclude"),l=s&&Gv(s,r);return l?l.test(e)?!0:!hI(e)&&l.test(Bc(e)):!1}function DAe(e,t,r,i,o){return e.filter(l=>{if(!Co(l))return!1;let d=ose(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=WF(i,o,d);return TE(i,p,l,d)}}function ose(e,t){if(R.assert(typeof e=="string"),t&&FAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(xAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function Y5e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=HN(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=$5e(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||DSc(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Tl(e,l)&&(l!==".ts"||!Tl(e,".d.ts")))return!1;let d=o(fE(e,l));if(t.has(d)||r.has(d)){if(l===".d.ts"&&(Tl(e,".js")||Tl(e,".jsx")))continue;return!0}}return!1}function Z5e(e,t,r,i){let o=gn(r,s=>Sc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Tl(e,l))return;let d=i(fE(e,l));t.delete(d)}}function sse(e){let t={};for(let r in e)if(Is(e,r)){let i=OH(r);i!==void 0&&(t[r]=lse(e[r],i))}return t}function lse(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(!So(e))return lse(e,t.element);case"list":let r=t.element;return So(e)?to(e,i=>lse(i,r)):"";default:return Gc(t.type,(i,o)=>{if(i===e)return o})}}function cse(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 cse(e.element);case"object":return{};default:let r=hW(e.type.keys());return r!==void 0?r:R.fail("Expected 'option.type' to have entries.")}}var sw,dse,NP,use,lw,u3,KR,cw,dw,UH,HH,sg,KH,JH,qH,p3,f3,XH,YH,$H,m3,uw,CAe,NAe,_3,pw,PAe,MAe,LAe,pse,kAe,h3,wAe,OAe,WAe,fw,fse,mse,_se,hse,g3,FAe,zAe,eGe=bt({"src/compiler/commandLineParser.ts"(){"use strict";Zo(),sw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},dse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),NP=new Map(BC(dse.entries(),([e,t])=>[""+t,e])),use=[["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"]],lw=use.map(e=>e[0]),u3=new Map(use),KR=[{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:ose},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:ose},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],cw=[{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}],dw={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},dw,UH,{name:"lib",type:"list",element:{name:"lib",type:u3,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:dse,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}],sg=[...cw,...HH],KH=sg.filter(e=>!!e.affectsSemanticDiagnostics),JH=sg.filter(e=>!!e.affectsEmit),qH=sg.filter(e=>!!e.affectsDeclarationPath),p3=sg.filter(e=>!!e.affectsModuleResolution),f3=sg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),XH=sg.filter(e=>!!e.affectsProgramStructure),YH=sg.filter(e=>Is(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}],m3=[...cw,...$H],uw=[{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}],NAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:YTe},_3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},pw={alternateMode:NAe,getOptionsNameMap:HR,optionDeclarations:sg,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},MAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:HR},LAe={alternateMode:MAe,getOptionsNameMap:YTe,optionDeclarations:m3,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},pse={optionDeclarations:uw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},h3={getOptionsNameMap:ZTe,optionDeclarations:KR,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},fw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},fse={name:"compilerOptions",type:"object",elementOptions:eAe(),extraKeyDiagnostics:pw},mse={name:"watchOptions",type:"object",elementOptions:tAe(),extraKeyDiagnostics:h3},_se={name:"typeAcquisition",type:"object",elementOptions:nAe(),extraKeyDiagnostics:pse},g3="**/*",FAe=/(^|\/)\*\*\/?$/,zAe=/^[^*?]*(?=\/[^/]*[*?])/}});function yo(e,t,...r){e.trace(nU(t,...r))}function Gg(e,t){return!!e.traceResolution&&t.trace!==void 0}function p1(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+rl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function QH(e){return p1(void 0,e)}function BAe(e){if(e)return R.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function y3(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 tGe(e){let t=[];return e&1&&t.push(...Sk),e&2&&t.push(...RR),e&4&&t.push(...Ek),e&8&&t.push(".json"),t}function gse(e){if(e)return R.assert(F6(e.extension)),{fileName:e.path,packageId:e.packageId}}function GAe(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!$c(e)){let{resolvedFileName:h,originalPath:m}=UAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return VAe(t,r,i,o,s,l.resultFromCache,d,p)}function VAe(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:yse(s.failedLookupLocations,r),affectingLocations:yse(s.affectingLocations,i),resolutionDiagnostics:yse(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=JR(s.failedLookupLocations,r),s.affectingLocations=JR(s.affectingLocations,i),s.resolutionDiagnostics=JR(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:PP(r),affectingLocations:PP(i),resolutionDiagnostics:PP(o),alternateResult:d}}function PP(e){return e.length?e:void 0}function JR(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function yse(e,t){return e?.length?t.length?[...e,...t]:e.slice():PP(t)}function jAe(e,t,r,i){if(!Is(e,t)){i.traceEnabled&&yo(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&&yo(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=jAe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&yo(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=ma(Yr(r,o));return i.traceEnabled&&yo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function nGe(e,t,r){return ZH(e,"typings",t,r)||ZH(e,"types",t,r)}function rGe(e,t,r){return ZH(e,"tsconfig",t,r)}function iGe(e,t,r){return ZH(e,"main",t,r)}function oGe(e,t){let r=jAe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&yo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function aGe(e,t){let r=oGe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Is(r,l)&&!NL.tryParse(l)&&yo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=v3(r);if(!i){t.traceEnabled&&yo(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&&yo(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 v3(e){Mse||(Mse=new fm(Jp));for(let t in e){if(!Is(e,t))continue;let r=NL.tryParse(t);if(r!==void 0&&r.test(Mse))return{version:t,paths:e[t]}}}function MP(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 sGe(r)}function sGe(e){let t;return hm(ma(e),r=>{let i=Yr(r,pIe);(t??(t=[])).push(i)}),t}function lGe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Rg(e,t,!i)===0}function UAe(e,t,r){let i=bGe(e,t,r),o=lGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function HAe(e,t,r){let i=Sl(e,"/node_modules/@types")||Sl(e,"/node_modules/@types/")?cIe(t,r):t;return Yr(e,i)}function vse(e,t,r,i,o,s,l){R.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&&!$c(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(yo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),yo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),B(h)),h;let m=MP(r,i);d&&(t===void 0?m===void 0?yo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):yo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?yo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):yo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&yo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let y=[],E=[],S=bse(r);l!==void 0&&(S|=30);let A=pu(r);l===99&&3<=A&&A<=99&&(S|=32);let N=S&8?Zv(r,l):[],D=[],w={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:N,requestContainingDirectory:p,reportDiagnostic:ee=>void D.push(ee),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},j=ce(),K=!0;j||(j=z(),K=!1);let Y;if(j){let{fileName:ee,packageId:me}=j,ge=ee,q;r.preserveSymlinks||({resolvedFileName:ge,originalPath:q}=UAe(ee,i,d)),Y={primary:K,resolvedFileName:ge,originalPath:q,packageId:me,isExternalLibraryImport:AE(ee)}}return h={resolvedTypeReferenceDirective:Y,failedLookupLocations:PP(y),affectingLocations:PP(E),resolutionDiagnostics:PP(D)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),$c(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&B(h),h;function B(ee){var me;(me=ee.resolvedTypeReferenceDirective)!=null&&me.resolvedFileName?ee.resolvedTypeReferenceDirective.packageId?yo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ee.resolvedTypeReferenceDirective.resolvedFileName,wv(ee.resolvedTypeReferenceDirective.packageId),ee.resolvedTypeReferenceDirective.primary):yo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ee.resolvedTypeReferenceDirective.resolvedFileName,ee.resolvedTypeReferenceDirective.primary):yo(i,f.Type_reference_directive_0_was_not_resolved,e)}function ce(){if(m&&m.length)return d&&yo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),zl(m,ee=>{let me=HAe(ee,e,w),ge=Hm(ee,i);if(!ge&&d&&yo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ee),r.typeRoots){let q=YR(4,me,!ge,w);if(q){let J=_w(q.path),re=J?eS(J,!1,w):void 0;return gse(p1(re,q))}}return gse(Dse(4,me,!ge,w))});d&&yo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function z(){let ee=t&&oi(t);if(ee!==void 0){let me;if(!r.typeRoots||!Sl(t,iD))if(d&&yo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ee),$c(e)){let{path:ge}=$Ae(ee,e);me=iK(4,ge,!1,w,!0)}else{let ge=oIe(4,e,ee,w,void 0,void 0);me=ge&&ge.value}else d&&yo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return gse(me)}else d&&yo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function bse(e){let t=0;switch(pu(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 Zv(e,t){let r=pu(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"),bo(i,e.customConditions)}function eK(e,t,r,i,o){let s=hw(o?.getPackageJsonInfoCache(),i,r);return hm(t,l=>{if(ic(l)!=="node_modules"){let d=Yr(l,"node_modules"),p=Yr(d,e);return eS(p,!1,s)}})}function b3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=MP(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)&&zN(d,t).typings===null)){let h=ic(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function E3(e){return!!e?.contents}function Ese(e){return!!e&&!e.contents}function Sse(e){var t;if(e===null||typeof e!="object")return""+e;if(So(e))return`[${(t=e.map(i=>Sse(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)Is(e,i)&&(r+=`${i}: ${Sse(e[i])}`);return r+"}"}function tK(e,t){return t.map(r=>Sse(D6(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,p3)),E}}function cGe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(nl(d,e,t))}function o(d,p){(r||(r=new Map)).set(nl(d,e,t),p)}function s(){r=void 0}function l(){return r}}function KAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function dGe(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=nl(h,e,t);return KAe(o,m,y,()=>f1())}function p(h,m,y,E){var S,A;let N=nl(y,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(N))==null?void 0:A.get(h,m)}}function LP(e,t){return t===void 0?e:`${t}|${e}`}function f1(){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=LP(o,s);return t.set(l,[o,s]),l}}function uGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function pGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function fGe(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 R.assert(!$c(y)),(D=(N=s.getMapOfCacheRedirects(A))==null?void 0:N.get(LP(y,E)))==null?void 0:D.get(S)}function h(y,E,S){return R.assert(!$c(y)),KAe(s,S,LP(y,E),m)}function m(){let y=new Map;return{get:E,set:S};function E(N){return y.get(nl(N,e,t))}function S(N,D){let w=nl(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=nl(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 qR(e,t,r,i,o){let s=JAe(e,t,r,i,uGe,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function S3(e,t,r,i,o){return JAe(e,t,r,i,pGe,o)}function rK(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function T3(e,t,r,i,o){return XR(e,t,rK(r),i,o)}function qAe(e,t,r,i){let o=oi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function XR(e,t,r,i,o,s,l){var d,p,h;let m=Gg(r,i);s&&(r=s.commandLine.options),m&&(yo(i,f.Resolving_module_0_from_1,e,t),s&&yo(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&&yo(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=pu(r),m&&yo(i,f.Module_resolution_kind_is_not_specified_using_0,Px[S])):m&&yo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Px[S]),(d=iu)==null||d.logStartResolveModule(e),S){case 3:E=gGe(e,t,r,i,o,s,l);break;case 99:E=yGe(e,t,r,i,o,s,l);break;case 2:E=Ise(e,t,r,i,o,s,l?Zv(r,l):void 0);break;case 1:E=Nse(e,t,r,i,o,s);break;case 100:E=Ase(e,t,r,i,o,s,l?Zv(r,l):void 0);break;default:return R.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=iu)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=iu)==null||h.logStopResolveModule(E&&E.resolvedModule?""+E.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(y,s).set(e,l,E),$c(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(y,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?yo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,wv(E.resolvedModule.packageId)):yo(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):yo(i,f.Module_name_0_was_not_resolved,e)),E}function XAe(e,t,r,i,o){let s=mGe(e,t,i,o);return s?s.value:$c(t)?_Ge(e,t,r,i,o):hGe(e,t,i,o)}function mGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!Lp(t)){i.traceEnabled&&(s&&yo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),yo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=c6(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=W6(l)):void 0;return Cse(e,t,p,l,h,r,!1,i)}}function _Ge(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&yo(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);Sl(h,rl)||(h+=rl);let m=ao(s,h)&&(d===void 0||d.lengthvoid K.push(ee),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&FI(j)&&yo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Y.conditions.map(ee=>`'${ee}'`).join(", "));let B;if(j===2){let ee=l&5,me=l&-6;B=ee&&z(ee,Y)||me&&z(me,Y)||void 0}else B=z(l,Y);let ce;if(Y.resolvedPackageDirectory&&!d&&!$c(t)){let ee=B?.value&&l&5&&!nIe(5,B.value.resolved.extension);if((m=B?.value)!=null&&m.isExternalLibraryImport&&ee&&e&8&&h?.includes("import")){eb(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||ee)&&j===2){eb(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:Zv(me),reportDiagnostic:qa},q=z(l&5,ge);(E=q?.value)!=null&&E.isExternalLibraryImport&&(ce=q.value.resolved.path)}}return GAe(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(ee,me){let q=XAe(ee,t,r,(J,re,pe,xe)=>iK(J,re,pe,xe,!0),me);if(q)return ef({resolved:q,isExternalLibraryImport:AE(q.path)});if($c(t)){let{path:J,parts:re}=$Ae(r,t),pe=iK(ee,J,!1,me,!0);return pe&&ef({resolved:pe,isExternalLibraryImport:zo(re,"node_modules")})}else{let J;if(e&2&&ao(t,"#")&&(J=AGe(ee,t,r,me,s,p)),!J&&e&4&&(J=TGe(ee,t,r,me,s,p)),!J){if(t.includes(":")){N&&yo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,y3(ee));return}N&&yo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,y3(ee)),J=oIe(ee,t,r,me,s,p)}return ee&4&&(J??(J=uIe(t,me))),J&&{value:J.value&&{resolved:J.value,isExternalLibraryImport:!0}}}}}function $Ae(e,t){let r=Yr(e,t),i=zc(r),o=Qs(i);return{path:o==="."||o===".."?Bc(ma(r)):ma(r),parts:i}}function bGe(e,t,r){if(!t.realpath)return e;let i=ma(t.realpath(e));return r&&yo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function iK(e,t,r,i,o){if(i.traceEnabled&&yo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,y3(e)),!Ry(t)){if(!r){let l=oi(t);Hm(l,i.host)||(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=YR(e,t,r,i);if(s){let l=o?_w(s.path):void 0,d=l?eS(l,!1,i):void 0;return p1(d,s)}}if(r||Hm(t,i.host)||(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Dse(e,t,r,i,o)}function AE(e){return e.includes(Sh)}function _w(e,t){let r=ma(e),i=r.lastIndexOf(Sh);if(i===-1)return;let o=i+Sh.length,s=QAe(r,o,t);return r.charCodeAt(o)===64&&(s=QAe(r,s,t)),r.slice(0,s)}function QAe(e,t,r){let i=e.indexOf(rl,t+1);return i===-1?r?e.length:t:i}function Rse(e,t,r,i){return QH(YR(e,t,r,i))}function YR(e,t,r,i){let o=ZAe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=eIe(t,e,"",r,i);if(s)return s}}function ZAe(e,t,r,i){if(!ic(t).includes("."))return;let s=Tu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&yo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),eIe(s,e,l,r,i)}function oK(e,t,r,i){return e&1&&Sc(t,Sk)||e&4&&Sc(t,Ek)?aK(t,r,i)!==void 0?{path:t,ext:g6(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Tl(t,".json")?aK(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:ZAe(e,t,r,i)}function eIe(e,t,r,i,o){if(!i){let l=oi(e);l&&(i=!Hm(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&&!Sd(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 tIe(e,t,r);let o=Wg(e)??"",s=o?pk(e,o):e;return gn(r.compilerOptions.moduleSuffixes,l=>tIe(s+l+o,t,r))}function tIe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&yo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&yo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Dse(e,t,r,i,o=!0){let s=o?eS(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&A3(s,i);return p1(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=bse(t),p=hw(i?.getPackageJsonInfoCache(),r,t);p.conditions=Zv(t),p.requestContainingDirectory=e.packageDirectory;let h=lK(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,A3(e,p));if(s=Tn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=h0([Zv(t,99),Zv(t,1)],Vm);for(let y of m){let E={...p,failedLookupLocations:[],conditions:y,host:r},S=EGe(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 EGe(e,t,r,i){let o;if(So(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&I3(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,tGe(i),void 0,[Pne(GI(l,"**/*"),".*")]).forEach(h=>{o=xg(o,{path:h,ext:Mx(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=_o(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(Uh(l),h=>{if(h==="default"||zo(r.conditions,h)||vw(r.conditions,h))return s(l[h]),!0})}}function hw(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 gw(e,t){let r=zc(e);for(r.pop();r.length>0;){let i=eS(Iv(r),!1,t);if(i)return i;r.pop()}}function A3(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=aGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function eS(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(E3(E))return m&&yo(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&&yo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}let S=Hm(e,h);if(S&&h.fileExists(y)){let A=zN(y,h);m&&yo(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&&yo(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=rGe(o,t,i):l=e&4&&nGe(o,t,i)||e&7&&iGe(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?!Hm(oi(l),i.host):void 0,h=r||!Hm(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&&yo(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=Cse(e,E,t,s.paths,void 0,d,p||h,i);if(S)return BAe(S.value)}let y=l&&BAe(d(e,l,p,i));if(y)return y;if(!(i.features&32))return YR(e,m,h,i)}function nIe(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 yw(e){let t=e.indexOf(rl);return e[0]==="@"&&(t=e.indexOf(rl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function I3(e){return oo(Uh(e),t=>ao(t,"."))}function SGe(e){return!gt(Uh(e),t=>ao(t,"."))}function TGe(e,t,r,i,o,s){var l,d;let p=_o(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=gw(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)?`.${rl}${E.join(rl)}`:".";if(Uv(i.compilerOptions)&&!AE(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"&&SGe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Is(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return iIe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(I3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&yo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),ef(void 0);let l=rIe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&yo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),ef(void 0)}}function AGe(e,t,r,i,o,s){var l,d;if(t==="#"||ao(t,"#/"))return i.traceEnabled&&yo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),ef(void 0);let p=_o(Yr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=gw(p,i);if(!h)return i.traceEnabled&&yo(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&&yo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),ef(void 0);let m=rIe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&yo(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 rIe(e,t,r,i,o,s,l,d){let p=iIe(e,t,r,i,o,l,d);if(!Sl(o,rl)&&!o.includes("*")&&Is(s,o)){let y=s[o];return p(y,"",!1,o)}let h=tT(Vr(Uh(s),y=>y.includes("*")||Sl(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(Sl(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(Sl(y,"*"))return!1;let S=y.indexOf("*");return S===-1?!1:ao(E,y.substring(0,S))&&Sl(E,y.substring(S+1))}}function iIe(e,t,r,i,o,s,l){return d;function d(p,h,m,y){if(typeof p=="string"){if(!m&&h.length>0&&!Sl(p,"/"))return t.traceEnabled&&yo(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;eb(t,f.Using_0_subpath_1_with_target_2,"imports",y,B),eb(t,f.Resolving_module_0_from_1,B,s.packageDirectory+"/");let ce=mw(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&&yo(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&&yo(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&&yo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),ef(void 0);t.traceEnabled&&yo(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(p1(s,oK(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Nn(p))return t.traceEnabled&&yo(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{eb(t,f.Entering_conditional_exports);for(let N of Uh(p))if(N==="default"||t.conditions.includes(N)||vw(t.conditions,N)){eb(t,f.Matched_0_condition_1,l?"imports":"exports",N);let D=p[N],w=d(D,h,m,y);if(w)return eb(t,f.Resolved_under_condition_0,N),eb(t,f.Exiting_conditional_exports),w;eb(t,f.Failed_to_resolve_under_condition_0,N)}else eb(t,f.Saw_non_matching_condition_0,N);eb(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&yo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),ef(void 0);return t.traceEnabled&&yo(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:_o(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 ee=ky({useCaseSensitiveFileNames:()=>uK(t)}),me=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ge=E(JP(t.compilerOptions,()=>[],((Y=(K=t.host).getCurrentDirectory)==null?void 0:Y.call(K))||"",ee));me.push(ge)}else if(t.requestContainingDirectory){let ge=E(Yr(t.requestContainingDirectory,"index.ts")),q=E(JP(t.compilerOptions,()=>[ge,E(w)],((ce=(B=t.host).getCurrentDirectory)==null?void 0:ce.call(B))||"",ee));me.push(q);let J=Bc(q);for(;J&&J.length>1;){let re=zc(J);re.pop();let pe=Iv(re);me.unshift(pe),J=Bc(pe)}}me.length>1&&t.reportDiagnostic(Hl(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(Tl(pe,fe)){let ne=Nie(pe);for(let he of ne){if(!nIe(e,he))continue;let Ce=BL(pe,he,fe,!uK(t));if(t.host.fileExists(Ce))return ef(p1(s,oK(e,Ce,!1,t)))}}}}}return;function z(ee){var me,ge;let q=t.compilerOptions.configFile?((ge=(me=t.host).getCurrentDirectory)==null?void 0:ge.call(me))||"":ee,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 vw(e,t){if(!e.includes("types")||!ao(t,"types@"))return!1;let r=NL.tryParse(t.substring(6));return r?r.test(Jp):!1}function oIe(e,t,r,i,o,s){return aIe(e,t,r,i,!1,o,s)}function IGe(e,t,r){return aIe(4,e,t,r,!0,void 0,void 0)}function aIe(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){eb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,y3(p));let y=m(p);if(y)return y}if(h&&!o)return eb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,y3(h)),m(h);function m(y){return hm(Md(r),E=>{if(ic(E)!=="node_modules"){let S=dIe(s,t,d,E,l,i);return S||ef(sIe(y,t,E,i,o,s,l))}})}}function sIe(e,t,r,i,o,s,l){let d=Yr(r,"node_modules"),p=Hm(d,i.host);if(!p&&i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=lIe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=Yr(d,"@types"),m=p;return p&&!Hm(h,i.host)&&(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),lIe(4,cIe(t,i),h,m,i,s,l)}}function lIe(e,t,r,i,o,s,l){var d,p;let h=ma(Yr(r,t)),{packageName:m,rest:y}=yw(t),E=Yr(r,m),S,A=eS(h,!i,o);if(y!==""&&A&&(!(o.features&8)||!Is(((d=S=eS(E,!i,o))==null?void 0:d.contents.packageJsonContent)??Xe,"exports"))){let w=YR(e,h,!i,o);if(w)return QH(w);let j=lK(e,h,!i,o,A.contents.packageJsonContent,A3(A,o));return p1(A,j)}let N=(w,j,K,Y)=>{let B=(y||!(Y.features&32))&&YR(w,j,K,Y)||lK(w,j,K,Y,A&&A.contents.packageJsonContent,A&&A3(A,Y));return!B&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&Y.features&32&&(B=YR(w,Yr(j,"index.js"),K,Y)),p1(A,B)};if(y!==""&&(A=S??eS(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?A3(A,o):void 0;if(D){o.traceEnabled&&yo(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&&Hm(E,o.host),j=Cse(e,y,E,D.paths,void 0,N,!w,o);if(j)return j.value}return N(e,h,!i,o)}function Cse(e,t,r,i,o,s,l,d){o||(o=W6(i));let p=cU(o,t);if(p){let h=Co(p)?void 0:une(p,t),m=Co(p)?p:dne(p);return d.traceEnabled&&yo(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:gn(i[m],E=>{let S=h?GI(E,h):E,A=ma(Yr(r,S));d.traceEnabled&&yo(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||!Hm(oi(A),d.host),d)})}}}function cIe(e,t){let r=$R(e);return t.traceEnabled&&r!==e&&yo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function x3(e){return`@types/${$R(e)}`}function $R(e){if(ao(e,"@")){let t=e.replace(rl,fK);if(t!==e)return t.slice(1)}return e}function kP(e){let t=qC(e,"@types/");return t!==e?bw(t):e}function bw(e){return e.includes(fK)?"@"+e.replace(fK,rl):e}function dIe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&yo(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 Nse(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 GAe(e,E&&E.value,E?.value&&AE(E.value.path),d,p,m,y,o);function S(A){let N=XAe(A,e,h,Rse,y);if(N)return{value:N};if($c(e)){let D=ma(Yr(h,e));return ef(Rse(A,D,!1,y))}else{let D=hm(h,w=>{let j=dIe(o,e,void 0,w,s,y);if(j)return j;let K=ma(Yr(w,e));return ef(Rse(A,K,!1,y))});if(D)return D;if(A&5){let w=IGe(e,h,y);return A&4&&(w??(w=uIe(e,y))),w}}}}function uIe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=HAe(r,e,t),o=Hm(r,t.host);!o&&t.traceEnabled&&yo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=YR(4,i,!o,t);if(s){let d=_w(s.path),p=d?eS(d,!1,t):void 0;return ef(p1(p,s))}let l=Dse(4,i,!o,t);if(l)return ef(l)}}function QR(e,t){return!!e.allowImportingTsExtensions||t&&Sd(t)}function Pse(e,t,r,i,o,s){let l=Gg(r,i);l&&yo(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=sIe(4,e,o,m,!1,void 0,void 0);return VAe(y,!0,d,p,h,m.resultFromCache,void 0)}function ef(e){return e!==void 0?{value:e}:void 0}function eb(e,t,...r){e.traceEnabled&&yo(e.host,t,...r)}function uK(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Mse,pIe,pK,Sh,fK,xGe=bt({"src/compiler/moduleNameResolver.ts"(){"use strict";Zo(),pIe=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||{}),Sh="/node_modules/",fK="__"}});function Vg(e,t){return e.body&&!e.body.parent&&(ja(e.body,e),Vv(e.body,!1)),e.body?Lse(e.body,t):1}function Lse(e,t=new Map){let r=is(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=RGe(e,t);return t.set(r,i),i}function RGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(x0(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=DGe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Bo(e,o=>{let s=Lse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:R.assertNever(s)}}),i}case 267:return Vg(e,t);case 80:if(e.flags&4096)return 0}return 1}function DGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Ho(i)||N_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(ZL(l,r)){l.parent||(ja(l,i),Vv(l,!1));let d=Lse(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 m1(e){return R.attachFlowNodeDebugInfo(e),e}function kse(e,t){var r,i;tl("beforeBind"),(r=iu)==null||r.logStartBindFile(""+e.fileName),mIe(e,t),(i=iu)==null||i.logStopBindFile(),tl("afterBind"),Xp("Bind","beforeBind","afterBind")}function CGe(){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,ee,me,ge={flags:1},q={flags:1},J=U();return pe;function re(O,Se,...nt){return Kf(Gn(O)||e,O,Se,...nt)}function pe(O,Se){var nt,jt;e=O,t=Se,r=rs(t),B=xe(e,Se),me=new Set,z=0,ee=ld.getSymbolConstructor(),R.attachFlowNodeDebugInfo(ge),R.attachFlowNodeDebugInfo(q),e.locals||((nt=ir)==null||nt.push(ir.Phase.Bind,"bindSourceFile",{path:e.path},!0),Pe(e),(jt=ir)==null||jt.pop(),e.symbolCount=z,e.classifiableNames=me,dd()),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,Se){return uu(Se,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function fe(O,Se){return z++,new ee(O,Se)}function ne(O,Se,nt){O.flags|=nt,Se.symbol=O,O.declarations=xg(O.declarations,Se),nt&1955&&!O.exports&&(O.exports=oa()),nt&6240&&!O.members&&(O.members=oa()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),nt&111551&&z2(O,Se)}function he(O){if(O.kind===277)return O.isExportEquals?"export=":"default";let Se=No(O);if(Se){if(Ld(O)){let nt=Xf(Se);return E_(O)?"__global":`"${nt}"`}if(Se.kind===167){let nt=Se.expression;if($p(nt))return fl(nt.text);if(r6(nt))return da(nt.operator)+nt.operand.text;R.fail("Only computed properties with literal names have declaration names")}if(Ki(Se)){let nt=sd(O);if(!nt)return;let jt=nt.symbol;return Y2(jt,Se.escapedText)}return Xm(Se)?BI(Se):T_(Se)?CN(Se):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(Gl(O)===2)return"export=";R.fail("Unknown binary declaration kind");break;case 324:return aR(O)?"__new":"__call";case 169:return R.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${R.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function Ce(O){return au(O)?xs(O.name):Vi(R.checkDefined(he(O)))}function Ge(O,Se,nt,jt,er,ii,Xr){R.assert(Xr||!Fv(nt));let no=$r(nt,2048)||Jd(nt)&&nt.name.escapedText==="default",ka=Xr?"__computed":no&&Se?"default":he(nt),wa;if(ka===void 0)wa=fe(0,"__missing");else if(wa=O.get(ka),jt&2885600&&me.add(ka),!wa)O.set(ka,wa=fe(0,ka)),ii&&(wa.isReplaceableByMethod=!0);else{if(ii&&!wa.isReplaceableByMethod)return wa;if(wa.flags&er){if(wa.isReplaceableByMethod)O.set(ka,wa=fe(0,ka));else if(!(jt&3&&wa.flags&67108864)){au(nt)&&ja(nt.name,nt);let Ol=wa.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,fd=!0;(wa.flags&384||jt&384)&&(Ol=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,fd=!1);let Rc=!1;Nn(wa.declarations)&&(no||wa.declarations&&wa.declarations.length&&nt.kind===277&&!nt.isExportEquals)&&(Ol=f.A_module_cannot_have_multiple_default_exports,fd=!1,Rc=!0);let Tp=[];Tm(nt)&&Bl(nt.type)&&$r(nt,32)&&wa.flags&2887656&&Tp.push(re(nt,f.Did_you_mean_0,`export type { ${Vi(nt.name.escapedText)} }`));let Vu=No(nt)||nt;gn(wa.declarations,(cs,Dm)=>{let Cm=No(cs)||cs,Ui=fd?re(Cm,Ol,Ce(cs)):re(Cm,Ol);e.bindDiagnostics.push(Rc?Ma(Ui,re(Vu,Dm===0?f.Another_export_default_is_here:f.and_here)):Ui),Rc&&Tp.push(re(Cm,f.The_first_export_default_is_here))});let sb=fd?re(Vu,Ol,Ce(nt)):re(Vu,Ol);e.bindDiagnostics.push(Ma(sb,...Tp)),wa=fe(0,ka)}}}return ne(wa,nt,jt),wa.parent?R.assert(wa.parent===Se,"Existing symbol parent should match new one"):wa.parent=Se,wa}function ve(O,Se,nt){let jt=!!(eE(O)&32)||Ie(O);if(Se&2097152)return O.kind===281||O.kind===271&&jt?Ge(o.symbol.exports,o.symbol,O,Se,nt):(R.assertNode(o,ch),Ge(o.locals,void 0,O,Se,nt));if(qf(O)&&R.assert(or(O)),!Ld(O)&&(jt||o.flags&128)){if(!ch(o)||!o.locals||$r(O,2048)&&!he(O))return Ge(o.symbol.exports,o.symbol,O,Se,nt);let er=Se&111551?1048576:0,ii=Ge(o.locals,void 0,O,er,nt);return ii.exportSymbol=Ge(o.symbol.exports,o.symbol,O,Se,nt),O.localSymbol=ii,ii}else return R.assertNode(o,ch),Ge(o.locals,void 0,O,Se,nt)}function Ie(O){if(O.parent&&Yl(O)&&(O=O.parent),!qf(O))return!1;if(!jk(O)&&O.fullName)return!0;let Se=No(O);return Se?!!(ik(Se.parent)&&tc(Se.parent)||Kd(Se.parent)&&eE(Se.parent)&32):!1}function De(O,Se){let nt=o,jt=s,er=l;if(Se&1?(O.kind!==219&&(s=o),o=l=O,Se&32&&(o.locals=oa(),tr(o))):Se&2&&(l=O,Se&32&&(l.locals=void 0)),Se&4){let ii=m,Xr=y,no=E,ka=S,wa=D,Ol=j,fd=K,Rc=Se&16&&!$r(O,1024)&&!O.asteriskToken&&!!gT(O)||O.kind===175;Rc||(m=m1({flags:2}),Se&144&&(m.node=O)),S=Rc||O.kind===176||or(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)&&Se&8&&Hf(O.body)&&(O.flags|=512,K&&(O.flags|=1024),O.endFlowNode=m),O.kind===312&&(O.flags|=Y,O.endFlowNode=m),S&&(qt(S,m),m=Zn(S),(O.kind===176||O.kind===175||or(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=m)),Rc||(m=ii),y=Xr,E=no,S=ka,D=wa,j=Ol,K=fd}else Se&64?(h=!1,ze(O),R.assertNotNode(O,Fe),O.flags=h?O.flags|256:O.flags&-257):ze(O);o=nt,s=jt,l=er}function Le(O){Et(O,Se=>Se.kind===262?Pe(Se):void 0),Et(O,Se=>Se.kind!==262?Pe(Se):void 0)}function Et(O,Se=Pe){O!==void 0&&gn(O,Se)}function be(O){Bo(O,Pe,Et)}function ze(O){let Se=ce;if(ce=!1,Gt(O)){be(O),yt(O),ce=Se;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=m),O.kind){case 247:$i(O);break;case 246:Ao(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:se(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(Oy(O)){ce=Se,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=Se;default:be(O);break}yt(O),ce=Se}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(BR(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 WN(O)||(kr(O)||r1(O)||Fu(O))&&Wt(O.expression)||pr(O)&&O.operatorToken.kind===28&&Wt(O.right)||Xs(O)&&($p(O.argumentExpression)||Vl(O.argumentExpression))&&Wt(O.expression)||Lc(O)&&Wt(O.left)}function _t(O){return Wt(O)||Hd(O)&&_t(O.expression)}function Je(O){if(O.arguments){for(let Se of O.arguments)if(_t(Se))return!0}return!!(O.expression.kind===211&&_t(O.expression.expression))}function ft(O,Se){return LR(O)&&en(O.expression)&&ss(Se)}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)||ft(O.right,O.left)||ft(O.left,O.right)||pN(O.right)&&tt(O.left)||pN(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 m1({flags:4,antecedents:void 0})}function Kn(){return m1({flags:8,antecedents:void 0})}function pn(O,Se,nt){return m1({flags:1024,target:O,antecedents:Se,antecedent:nt})}function Yt(O){O.flags|=O.flags&2048?4096:2048}function qt(O,Se){!(Se.flags&1)&&!zo(O.antecedents,Se)&&((O.antecedents||(O.antecedents=[])).push(Se),Yt(Se))}function hi(O,Se,nt){return Se.flags&1?Se:nt?(nt.kind===112&&O&64||nt.kind===97&&O&32)&&!lF(nt)&&!TV(nt.parent)?ge:tt(nt)?(Yt(Se),m1({flags:O,antecedent:Se,node:nt})):Se:O&32?Se:ge}function uo(O,Se,nt,jt){return Yt(O),m1({flags:128,antecedent:O,switchStatement:Se,clauseStart:nt,clauseEnd:jt})}function Li(O,Se,nt){Yt(Se);let jt=m1({flags:O,antecedent:Se,node:nt});return D&&qt(D,jt),jt}function Eo(O,Se){return Yt(O),m1({flags:512,antecedent:O,node:Se})}function Zn(O){let Se=O.antecedents;return Se?Se.length===1?Se[0]:O:ge}function jr(O){let Se=O.parent;switch(Se.kind){case 245:case 247:case 246:return Se.expression===O;case 248:case 227:return Se.condition===O}return!1}function Sr(O){for(;;)if(O.kind===217)O=O.expression;else if(O.kind===224&&O.operator===54)O=O.operand;else return rk(O)}function on(O){return jj(ms(O))}function $e(O){for(;Fu(O.parent)||Yv(O.parent)&&O.parent.operator===54;)O=O.parent;return!jr(O)&&!Sr(O.parent)&&!(Hd(O.parent)&&O.parent.expression===O)}function Ot(O,Se,nt,jt){let er=A,ii=N;A=nt,N=jt,O(Se),A=er,N=ii}function In(O,Se,nt){Ot(Pe,O,Se,nt),(!O||!on(O)&&!Sr(O)&&!(Hd(O)&&sN(O)))&&(qt(Se,hi(32,m,O)),qt(nt,hi(64,m,O)))}function si(O,Se,nt){let jt=y,er=E;y=Se,E=nt,Pe(O),y=jt,E=er}function yi(O,Se){let nt=j;for(;nt&&O.parent.kind===256;)nt.continueTarget=Se,nt=nt.next,O=O.parent;return Se}function $i(O){let Se=yi(O,Kn()),nt=Dn(),jt=Dn();qt(Se,m),m=Se,In(O.expression,nt,jt),m=Zn(nt),si(O.statement,jt,Se),qt(Se,m),m=Zn(jt)}function Ao(O){let Se=Kn(),nt=yi(O,Dn()),jt=Dn();qt(Se,m),m=Se,si(O.statement,jt,nt),qt(nt,m),m=Zn(nt),In(O.expression,Se,jt),m=Zn(jt)}function ua(O){let Se=yi(O,Kn()),nt=Dn(),jt=Dn();Pe(O.initializer),qt(Se,m),m=Se,In(O.condition,nt,jt),m=Zn(nt),si(O.statement,jt,Se),Pe(O.incrementor),qt(Se,m),m=Zn(jt)}function Ba(O){let Se=yi(O,Kn()),nt=Dn();Pe(O.expression),qt(Se,m),m=Se,O.kind===250&&Pe(O.awaitModifier),qt(nt,m),Pe(O.initializer),O.initializer.kind!==261&&pt(O.initializer),si(O.statement,nt,Se),qt(Se,m),m=Zn(nt)}function vn(O){let Se=Dn(),nt=Dn(),jt=Dn();In(O.expression,Se,nt),m=Zn(Se),Pe(O.thenStatement),qt(jt,m),m=Zn(nt),Pe(O.elseStatement),qt(jt,m),m=Zn(jt)}function kn(O){Pe(O.expression),O.kind===253&&(K=!0,S&&qt(S,m)),m=ge}function Be(O){for(let Se=j;Se;Se=Se.next)if(Se.name===O)return Se}function ct(O,Se,nt){let jt=O.kind===252?Se:nt;jt&&(qt(jt,m),m=ge)}function lt(O){if(Pe(O.label),O.label){let Se=Be(O.label.escapedText);Se&&(Se.referenced=!0,ct(O,Se.breakTarget,Se.continueTarget))}else ct(O,y,E)}function Rt(O){let Se=S,nt=D,jt=Dn(),er=Dn(),ii=Dn();if(O.finallyBlock&&(S=er),qt(ii,m),D=ii,Pe(O.tryBlock),qt(jt,m),O.catchClause&&(m=Zn(ii),ii=Dn(),qt(ii,m),D=ii,Pe(O.catchClause),qt(jt,m)),S=Se,D=nt,O.finallyBlock){let Xr=Dn();Xr.antecedents=bo(bo(jt.antecedents,ii.antecedents),er.antecedents),m=Xr,Pe(O.finallyBlock),m.flags&1?m=ge:(S&&er.antecedents&&qt(S,pn(Xr,er.antecedents,m)),D&&ii.antecedents&&qt(D,pn(Xr,ii.antecedents,m)),m=jt.antecedents?pn(Xr,jt.antecedents,m):ge)}else m=Zn(jt)}function se(O){let Se=Dn();Pe(O.expression);let nt=y,jt=w;y=Se,w=m,Pe(O.caseBlock),qt(Se,m);let er=gn(O.caseBlock.clauses,ii=>ii.kind===297);O.possiblyExhaustive=!er&&!Se.antecedents,er||qt(Se,uo(w,O,0,0)),y=nt,w=jt,m=Zn(Se)}function ke(O){let Se=O.clauses,nt=O.parent.expression.kind===112||tt(O.parent.expression),jt=ge;for(let er=0;er$l(nt)||kl(nt))}function Hr(O){O.flags&33554432&&!Ri(O)?O.flags|=128:O.flags&=-129}function Io(O){if(Hr(O),Ld(O))if($r(O,32)&&Ns(O,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),XV(O))xn(O);else{let Se;if(O.name.kind===11){let{text:jt}=O.name;Se=SR(jt),Se===void 0&&Ns(O.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,jt)}let nt=Wr(O,512,110735);e.patternAmbientModules=Tn(e.patternAmbientModules,Se&&!Co(Se)?{pattern:Se,symbol:nt}:void 0)}else{let Se=xn(O);if(Se!==0){let{symbol:nt}=O;nt.constEnumOnlyModule=!(nt.flags&304)&&Se===2&&nt.constEnumOnlyModule!==!1}}}function xn(O){let Se=Vg(O),nt=Se!==0;return Wr(O,nt?512:1024,nt?110735:0),Se}function Os(O){let Se=fe(131072,he(O));ne(Se,O,131072);let nt=fe(2048,"__type");ne(nt,O,2048),nt.members=oa(),nt.members.set(Se.escapedName,Se)}function Zl(O){return Bs(O,4096,"__object")}function Po(O){return Bs(O,4096,"__jsxAttributes")}function ls(O,Se,nt){return Wr(O,Se,nt)}function Bs(O,Se,nt){let jt=fe(Se,nt);return Se&106508&&(jt.parent=o.symbol),ne(jt,O,Se),jt}function _l(O,Se,nt){switch(l.kind){case 267:ve(O,Se,nt);break;case 312:if(wp(o)){ve(O,Se,nt);break}default:R.assertNode(l,ch),l.locals||(l.locals=oa(),tr(l)),Ge(l.locals,void 0,O,Se,nt)}}function dd(){if(!p)return;let O=o,Se=d,nt=l,jt=i,er=m;for(let ii of p){let Xr=ii.parent.parent;o=nj(Xr)||e,l=ph(Xr)||e,m=m1({flags:2}),i=ii,Pe(ii.typeExpression);let no=No(ii);if((jk(ii)||!ii.fullName)&&no&&ik(no.parent)){let ka=tc(no.parent);if(ka){hl(e.symbol,no.parent,ka,!!Fn(no,Ol=>kr(Ol)&&Ol.name.escapedText==="prototype"),!1);let wa=o;switch(W2(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=tS(e,no.parent.expression)?e:kr(no.parent.expression)?no.parent.expression.name:no.parent.expression;break;case 0:return R.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&ve(ii,524288,788968),o=wa}}else jk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,_l(ii,524288,788968)):Pe(ii.fullName)}o=O,d=Se,l=nt,i=jt,m=er}function mo(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!Sie(O)){let Se=tE(O);if(Se===void 0)return;B&&Se>=119&&Se<=127?e.bindDiagnostics.push(re(O,sa(O),xs(O))):Se===135?sc(e)&&BF(O)?e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,xs(O))):O.flags&65536&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,xs(O))):Se===127&&O.flags&16384&&e.bindDiagnostics.push(re(O,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,xs(O)))}}function sa(O){return sd(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 ud(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(re(O,f.constructor_is_a_reserved_word,xs(O))))}function Ss(O){B&&Yu(O.left)&&wy(O.operatorToken.kind)&&lc(O,O.left)}function Na(O){B&&O.variableDeclaration&&lc(O,O.variableDeclaration.name)}function pl(O){if(B&&O.expression.kind===80){let Se=_T(e,O.expression);e.bindDiagnostics.push(Zc(e,Se.start,Se.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 lc(O,Se){if(Se&&Se.kind===80){let nt=Se;if(Nf(nt)){let jt=_T(e,Se);e.bindDiagnostics.push(Zc(e,jt.start,jt.length,Rl(O),vr(nt)))}}}function Rl(O){return sd(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 sl(O){B&&lc(O,O.name)}function Mo(O){return sd(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&&!Bx(l)){let Se=_T(e,O);e.bindDiagnostics.push(Zc(e,Se.start,Se.length,Mo(O)))}}function Gs(O){B&&lc(O,O.operand)}function rd(O){B&&(O.operator===46||O.operator===47)&&lc(O,O.operand)}function pd(O){B&&Ns(O,f.with_statements_are_not_allowed_in_strict_mode)}function Ep(O){B&&rs(t)>=2&&(Ire(O.statement)||Ll(O.statement))&&Ns(O.label,f.A_label_is_not_allowed_here)}function Ns(O,Se,...nt){let jt=fh(e,O.pos);e.bindDiagnostics.push(Zc(e,jt.start,jt.length,Se,...nt))}function xc(O,Se,nt){de(O,Se,Se,nt)}function de(O,Se,nt,jt){$(O,{pos:aE(Se,e),end:nt.end},jt)}function $(O,Se,nt){let jt=Zc(e,Se.pos,Se.end-Se.pos,nt);O?e.bindDiagnostics.push(jt):e.bindSuggestionDiagnostics=Tn(e.bindSuggestionDiagnostics,{...jt,category:2})}function Pe(O){if(!O)return;ja(O,i),ir&&(O.tracingPath=e.path);let Se=B;if(mr(O),O.kind>165){let nt=i;i=O;let jt=mK(O);jt===0?ze(O):De(O,jt),i=nt}else{let nt=i;O.kind===1&&(i=O),yt(O),i=nt}B=Se}function yt(O){if(kp(O))if(or(O))for(let Se of O.jsDoc)Pe(Se);else for(let Se of O.jsDoc)ja(Se,O),Vv(Se,!1)}function cn(O){if(!B)for(let Se of O){if(!vm(Se))return;if(br(Se)){B=!0;return}}}function br(O){let Se=A0(e,O.expression);return Se==='"use strict"'||Se==="'use strict'"}function mr(O){switch(O.kind){case 80:if(O.flags&4096){let Xr=O.parent;for(;Xr&&!qf(Xr);)Xr=Xr.parent;_l(Xr,524288,788968);break}case 110:return m&&(ht(O)||i.kind===304)&&(O.flowNode=m),mo(O);case 166:m&&HF(O)&&(O.flowNode=m);break;case 236:case 108:O.flowNode=m;break;case 81:return ud(O);case 211:case 212:let Se=O;m&&Wt(Se)&&(Se.flowNode=m),_ie(Se)&&Un(Se),or(Se)&&e.commonJsModuleIndicator&&Qh(Se)&&!R3(l,"module")&&Ge(e.locals,void 0,Se.expression,134217729,111550);break;case 226:switch(Gl(O)){case 1:tp(O);break;case 2:Wc(O);break;case 3:Qo(O.left,O);break;case 6:go(O);break;case 4:_u(O);break;case 5:let Xr=O.left.expression;if(or(O)&&Fe(Xr)){let no=R3(l,Xr.escapedText);if(GF(no?.valueDeclaration)){_u(O);break}}vc(O);break;case 0:break;default:R.fail("Unknown binary expression special property assignment kind")}return Ss(O);case 299:return Na(O);case 220:return pl(O);case 225:return Gs(O);case 224:return rd(O);case 254:return pd(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 zd(O);case 208:return O.flowNode=m,zd(O);case 172:case 171:return Fr(O);case 303:case 304:return Gu(O,4,0);case 306:return Gu(O,8,900095);case 179:case 180:case 181:return Wr(O,131072,0);case 174:case 173:return Gu(O,8192|(O.questionToken?16777216:0),bm(O)?0:103359);case 262:return Sp(O);case 176:return Wr(O,16384,0);case 177:return Gu(O,32768,46015);case 178:return Gu(O,65536,78783);case 184:case 324:case 330:case 185:return Os(O);case 187:case 329:case 200:return Di(O);case 339:return It(O);case 210:return Zl(O);case 218:case 219:return dg(O);case 213:switch(Gl(O)){case 7:return ec(O);case 8:return Kc(O);case 9:return qo(O);case 0:break;default:return R.fail("Unknown call expression assignment declaration kind")}or(O)&&z_(O);break;case 231:case 263:return B=!0,Ih(O);case 264:return _l(O,64,788872);case 265:return _l(O,524288,788968);case 266:return Hg(O);case 267:return Io(O);case 292:return Po(O);case 291:return ls(O,4,0);case 271:case 274:case 276:case 281:return Wr(O,2097152,2097152);case 270:return Hc(O);case 273:return yc(O);case 278:return Vs(O);case 277:return bl(O);case 312:return cn(O.statements),Cr();case 241:if(!Bx(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 er=O,ii=er.isBracketed||er.typeExpression&&er.typeExpression.type.kind===323?16777220:4;return Wr(er,ii,0);case 353:case 345:case 347:return(p||(p=[])).push(O);case 346:return Pe(O.typeExpression)}}function Fr(O){let Se=ku(O),nt=Se?98304:4,jt=Se?13247:0;return Gu(O,nt|(O.questionToken?16777216:0),jt)}function Di(O){return Bs(O,2048,"__type")}function Cr(){if(Hr(e),sc(e))Jo();else if(Jf(e)){Jo();let O=e.symbol;Ge(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function Jo(){Bs(e,512,`"${Tu(e.fileName)}"`)}function bl(O){if(!o.symbol||!o.symbol.exports)Bs(O,111551,he(O));else{let Se=lR(O)?2097152:4,nt=Ge(o.symbol.exports,o.symbol,O,Se,-1);O.isExportEquals&&z2(nt,O)}}function Hc(O){gt(O.modifiers)&&e.bindDiagnostics.push(re(O,f.Modifiers_cannot_appear_here));let Se=Yi(O.parent)?sc(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;Se?e.bindDiagnostics.push(re(O,Se)):(e.symbol.globalExports=e.symbol.globalExports||oa(),Ge(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function Vs(O){!o.symbol||!o.symbol.exports?Bs(O,8388608,he(O)):O.exportClause?vh(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 yc(O){O.name&&Wr(O,2097152,2097152)}function bs(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||Jo()),!0)}function Kc(O){if(!bs(O))return;let Se=Pf(O.arguments[0],void 0,(nt,jt)=>(jt&&ne(jt,nt,67110400),jt));Se&&Ge(Se.exports,Se,O,1048580,0)}function tp(O){if(!bs(O))return;let Se=Pf(O.left.expression,void 0,(nt,jt)=>(jt&&ne(jt,nt,67110400),jt));if(Se){let jt=q2(O.right)&&(yT(O.left.expression)||Qh(O.left.expression))?2097152:1048580;ja(O.left,O),Ge(Se.exports,Se,O.left,jt,0)}}function Wc(O){if(!bs(O))return;let Se=k2(O.right);if(Jj(Se)||o===e&&tS(e,Se))return;if(La(Se)&&oo(Se.properties,Zu)){gn(Se.properties,im);return}let nt=lR(O)?2097152:1049092,jt=Ge(e.symbol.exports,e.symbol,O,nt|67108864,0);z2(jt,O)}function im(O){Ge(e.symbol.exports,e.symbol,O,69206016,0)}function _u(O){if(R.assert(or(O)),pr(O)&&kr(O.left)&&Ki(O.left.name)||kr(O)&&Ki(O.name))return;let nt=wu(O,!1,!1);switch(nt.kind){case 262:case 218:let jt=nt.symbol;if(pr(nt.parent)&&nt.parent.operatorToken.kind===64){let Xr=nt.parent.left;N0(Xr)&&Bv(Xr.expression)&&(jt=Du(Xr.expression.expression,s))}jt&&jt.valueDeclaration&&(jt.members=jt.members||oa(),Fv(O)?Re(O,jt,jt.members):Ge(jt.members,jt,O,67108868,0),ne(jt,jt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let er=nt.parent,ii=na(nt)?er.symbol.exports:er.symbol.members;Fv(O)?Re(O,er.symbol,ii):Ge(ii,er.symbol,O,67108868,0,!0);break;case 312:if(Fv(O))break;nt.commonJsModuleIndicator?Ge(nt.symbol.exports,nt.symbol,O,1048580,0):Wr(O,1,111550);break;case 267:break;default:R.failBadSyntaxKind(nt)}}function Re(O,Se,nt){Ge(nt,Se,O,4,0,!0,!0),Lt(O,Se)}function Lt(O,Se){Se&&(Se.assignmentDeclarationMembers||(Se.assignmentDeclarationMembers=new Map)).set(is(O),O)}function Un(O){O.expression.kind===110?_u(O):N0(O)&&O.parent.parent.kind===312&&(Bv(O.expression)?Qo(O,O.parent):ll(O))}function go(O){ja(O.left,O),ja(O.right,O),Jc(O.left.expression,O.left,!1,!0)}function qo(O){let Se=Du(O.arguments[0].expression);Se&&Se.valueDeclaration&&ne(Se,Se.valueDeclaration,32),jl(O,Se,!0)}function Qo(O,Se){let nt=O.expression,jt=nt.expression;ja(jt,nt),ja(nt,O),ja(O,Se),Jc(jt,O,!0,!0)}function ec(O){let Se=Du(O.arguments[0]),nt=O.parent.parent.kind===312;Se=hl(Se,O.arguments[0],nt,!1,!1),jl(O,Se,!1)}function vc(O){var Se;let nt=Du(O.left.expression,l)||Du(O.left.expression,o);if(!or(O)&&!hie(nt))return;let jt=vR(O.left);if(!(Fe(jt)&&((Se=R3(o,jt.escapedText))==null?void 0:Se.flags)&2097152))if(ja(O.left,O),ja(O.right,O),Fe(O.left.expression)&&o===e&&tS(e,O.left.expression))tp(O);else if(Fv(O)){Bs(O,67108868,"__computed");let er=hl(nt,O.left.expression,tc(O.left),!1,!1);Lt(O,er)}else ll(ta(O.left,bT))}function ll(O){R.assert(!Fe(O)),ja(O.expression,O),Jc(O.expression,O,!1,!1)}function hl(O,Se,nt,jt,er){return O?.flags&2097152||(nt&&!jt&&(O=Pf(Se,O,(no,ka,wa)=>{if(ka)return ne(ka,no,67110400),ka;{let Ol=wa?wa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=oa());return Ge(Ol,wa,no,67110400,110735)}})),er&&O&&O.valueDeclaration&&ne(O,O.valueDeclaration,32)),O}function jl(O,Se,nt){if(!Se||!lf(Se))return;let jt=nt?Se.members||(Se.members=oa()):Se.exports||(Se.exports=oa()),er=0,ii=0;Fs(xI(O))?(er=8192,ii=103359):ra(O)&&vT(O)&&(gt(O.arguments[2].properties,Xr=>{let no=No(Xr);return!!no&&Fe(no)&&vr(no)==="set"})&&(er|=65540,ii|=78783),gt(O.arguments[2].properties,Xr=>{let no=No(Xr);return!!no&&Fe(no)&&vr(no)==="get"})&&(er|=32772,ii|=46015)),er===0&&(er=4,ii=0),Ge(jt,Se,O,er|67108864,ii&-67108865)}function tc(O){return pr(O.parent)?Bu(O.parent).parent.kind===312:O.parent.parent.kind===312}function Jc(O,Se,nt,jt){let er=Du(O,l)||Du(O,o),ii=tc(Se);er=hl(er,Se.expression,ii,nt,jt),jl(Se,er,nt)}function lf(O){if(O.flags&1072)return!0;let Se=O.valueDeclaration;if(Se&&ra(Se))return!!xI(Se);let nt=Se?Oi(Se)?Se.initializer:pr(Se)?Se.right:kr(Se)&&pr(Se.parent)?Se.parent.right:void 0:void 0;if(nt=nt&&k2(nt),nt){let jt=Bv(Oi(Se)?Se.name:pr(Se)?Se.left:Se);return!!lE(pr(nt)&&(nt.operatorToken.kind===57||nt.operatorToken.kind===61)?nt.right:nt,jt)}return!1}function Bu(O){for(;pr(O.parent);)O=O.parent;return O.parent}function Du(O,Se=o){if(Fe(O))return R3(Se,O.escapedText);{let nt=Du(O.expression);return nt&&nt.exports&&nt.exports.get(Lg(O))}}function Pf(O,Se,nt){if(tS(e,O))return e.symbol;if(Fe(O))return nt(O,Du(O),Se);{let jt=Pf(O.expression,Se,nt),er=O2(O);return Ki(er)&&R.fail("unexpected PrivateIdentifier"),nt(er,jt&&jt.exports&&jt.exports.get(Lg(O)),jt)}}function z_(O){!e.commonJsModuleIndicator&&Su(O,!1)&&bs(O)}function Ih(O){if(O.kind===263)_l(O,32,899503);else{let er=O.name?O.name.escapedText:"__class";Bs(O,32,er),O.name&&me.add(O.name.escapedText)}let{symbol:Se}=O,nt=fe(4194308,"prototype"),jt=Se.exports.get(nt.escapedName);jt&&(O.name&&ja(O.name,O),e.bindDiagnostics.push(re(jt.declarations[0],f.Duplicate_identifier_0,vl(nt)))),Se.exports.set(nt.escapedName,nt),nt.parent=Se}function Hg(O){return x0(O)?_l(O,128,899967):_l(O,256,899327)}function zd(O){if(B&&lc(O,O.name),!$o(O.name)){let Se=O.kind===260?O:O.parent.parent;or(O)&&C0(Se)&&!nE(O)&&!(eE(O)&32)?Wr(O,2097152,2097152):KV(O)?_l(O,2,111551):L0(O)?Wr(O,1,111551):Wr(O,1,111550)}}function Kg(O){if(!(O.kind===348&&o.kind!==330)&&(B&&!(O.flags&33554432)&&lc(O,O.name),$o(O.name)?Bs(O,1,"__"+O.parent.parameters.indexOf(O)):Wr(O,1,111551),dp(O,O.parent))){let Se=O.parent.parent;Ge(Se.symbol.members,Se.symbol,O,4|(O.questionToken?16777216:0),0)}}function Sp(O){!e.isDeclarationFile&&!(O.flags&33554432)&&DN(O)&&(Y|=4096),sl(O),B?(tn(O),_l(O,16,110991)):Wr(O,16,110991)}function dg(O){!e.isDeclarationFile&&!(O.flags&33554432)&&DN(O)&&(Y|=4096),m&&(O.flowNode=m),sl(O);let Se=O.name?O.name.escapedText:"__function";return Bs(O,16,Se)}function Gu(O,Se,nt){return!e.isDeclarationFile&&!(O.flags&33554432)&&DN(O)&&(Y|=4096),m&&OF(O)&&(O.flowNode=m),Fv(O)?Bs(O,Se,"__computed"):Wr(O,Se,nt)}function Z(O){let Se=Fn(O,nt=>nt.parent&&t1(nt.parent)&&nt.parent.extendsType===nt);return Se&&Se.parent}function rt(O){if(nm(O.parent)){let Se=e6(O.parent);Se?(R.assertNode(Se,ch),Se.locals??(Se.locals=oa()),Ge(Se.locals,void 0,O,262144,526824)):Wr(O,262144,526824)}else if(O.parent.kind===195){let Se=Z(O.parent);Se?(R.assertNode(Se,ch),Se.locals??(Se.locals=oa()),Ge(Se.locals,void 0,O,262144,526824)):Bs(O,262144,he(O))}else Wr(O,262144,526824)}function wt(O){let Se=Vg(O);return Se===1||Se===2&&V0(t)}function Gt(O){if(!(m.flags&1))return!1;if(m===ge&&(p2(O)&&O.kind!==242||O.kind===263||O.kind===267&&wt(O))&&(m=q,!t.allowUnreachableCode)){let nt=poe(t)&&!(O.flags&33554432)&&(!Ll(O)||!!(Cy(O.declarationList)&7)||O.declarationList.declarations.some(jt=>!!jt.initializer));NGe(O,(jt,er)=>de(nt,jt,er,f.Unreachable_code_detected))}return!0}}function NGe(e,t){if(Hi(e)&&fIe(e)&&Ho(e.parent)){let{statements:r}=e.parent,i=dU(r,e);LG(i,fIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function fIe(e){return!Tc(e)&&!PGe(e)&&!gE(e)&&!(Ll(e)&&!(Cy(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function PGe(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 tS(e,t){let r=0,i=DL();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),yT(t)||Qh(t))return!0;if(Fe(t)){let o=R3(e,t.escapedText);if(o&&o.valueDeclaration&&Oi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Lc(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(OF(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 Yo(e.parent)||Il(e.parent)?0:34}return 0}function R3(e,t){var r,i,o,s;let l=(i=(r=ri(e,ch))==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,mIe,MGe=bt({"src/compiler/binder.ts"(){"use strict";Zo(),iT(),_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||{}),mIe=CGe()}});function wse(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:uI(E),visitedSymbols:uI(S)}}finally{jh(E),jh(S)}},walkSymbol:me=>{try{return ee(me),{visitedTypes:uI(E),visitedSymbols:uI(S)}}finally{jh(E),jh(S)}}};function A(me){if(!(!me||E[me.id]||(E[me.id]=me,ee(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)ee(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)ee(q)}function ee(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(ee),gn(me.declarations,J=>{if(J.type&&J.type.kind===186){let re=J.type,pe=l(p(re.exprName));ee(pe)}}),!1}}}var LGe=bt({"src/compiler/symbolWalker.ts"(){"use strict";Zo()}});function Ew({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?$c(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 QR(r,i.fileName)?[3,2]:[2];if(pu(r)===1)return p===2?[2,1]:[1,2];let h=QR(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:R.assertNever(p)}}};function l(d){if(o!==void 0){if(F0(o))return 2;if(Sl(o,"/index"))return 1}return Eoe(t,d??i.impliedNodeFormat,r,i)}}function kGe(e,t,r,i,o,s,l={}){let d=_Ie(e,t,r,i,o,Ew({},e,t,s),{},l);if(d!==s)return d}function D3(e,t,r,i,o,s={}){return _Ie(e,t,r,i,o,Ew({},e,t),{},s)}function wGe(e,t,r,i,o,s={}){let l=gK(t.fileName,i),d=SIe(l,r,i,o,s);return zl(d,p=>Wse(p,l,t,i,e,o,!0,s.overrideImportMode))}function _Ie(e,t,r,i,o,s,l,d={}){let p=gK(r,o),h=SIe(p,i,o,l,d);return zl(h,m=>Wse(m,p,t,o,e,l,void 0,d.overrideImportMode))||vIe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function OGe(e,t,r,i,o={}){return hIe(e,t,r,i,o)[0]}function hIe(e,t,r,i,o={}){var s;let l=AF(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 gIe(e,t,r,i,o,s,l={}){return yIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function yIe(e,t,r,i,o,s,l={},d){let p=!1,h=zGe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,E,S]=hIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:Xe,computedWithoutCache:p};p=!0,E||(E=TIe(gK(i.fileName,o),y.originalFileName,o));let A=WGe(E,r,i,o,s,l,d);return S?.set(i.path,y.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function WGe(e,t,r,i,o,s={},l){let d=gK(r.fileName,i),p=Ew(o,t,r),h=gn(e,N=>gn(i.getFileIncludeReasons().get(nl(N.path,i.getCurrentDirectory(),d.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Jle(r,D.index,t))return;let w=Fw(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?Wse(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=vIe(N.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,N.isRedirect);if(!w)continue;N.isRedirect?S=Tn(S,w):sV(w)?AE(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:R.checkDefined(A)}function gK(e,t){e=_o(e,t.getCurrentDirectory());let r=Pd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=oi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function vIe(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&&VGe(m,e,y,S,A,r)||Sw(y0(_m(y,e,S)),A,r);if(!p&&!h&&!Q6(r)||l===0)return d?void 0:N;let D=_o(c6(r,i)||p,i.getCurrentDirectory()),w=RIe(e,D,S);if(!w)return d?void 0:N;let j=d?void 0:GGe(e,y,r,i,o),K=d||j===void 0?h&&AIe(w,h,A,i,r):void 0;if(d)return K;let Y=j??(K===void 0&&p!==void 0?Sw(w,A,r):K);if(!Y)return N;if(l===1&&!Lp(Y))return Y;if(l===3&&!Lp(Y)){let B=r.configFilePath?nl(oi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=nl(e,B,S),z=ao(E,B),ee=ao(ce,B);if(z&&!ee||!z&&ee)return Y;let me=Ose(i,oi(ce)),ge=Ose(i,y),q=!_R(i);return FGe(me,ge,q)?N:Y}return DIe(Y)||C3(N)e.fileExists(Yr(r,"package.json"))?r:void 0)}function EIe(e,t,r,i,o){var s;let l=ky(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=nl(t,d,l),m=r.redirectTargetsMap.get(h)||Xe,E=[...p?[p]:Xe,t,...m].map(w=>_o(w,d)),S=!oo(E,ZN);if(!i){let w=gn(E,j=>!(S&&ZN(j))&&o(j,p===j));if(w)return w}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),N=_o(t,d);return A&&hm(oi(N),w=>{let j=A.get(Bc(nl(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=xv(B,Y),z=o(ce,K===p);if(S=!0,z)return z}})})||(i?gn(E,w=>S&&ZN(w)?void 0:o(w,w===p)):void 0)}function SIe(e,t,r,i,o={}){var s;let l=nl(e.importingSourceFileName,r.getCurrentDirectory(),ky(r)),d=nl(t,r.getCurrentDirectory(),ky(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=TIe(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function TIe(e,t,r){let i=new Map,o=!1;EIe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=AE(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(bIe),s.push(...p));let h=oi(l);if(h===l)break;l=h}if(i.size){let l=Oo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(bIe),s.push(...l)}return s}function zGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>qV(l)&&(!I0(l)||!$c(Xf(l.name))));if(i)return i.name.text;let s=to(e.declarations,l=>{var d,p,h,m;if(!Yl(l))return;let y=N(l);if(!((d=y?.parent)!=null&&d.parent&&N_(y.parent)&&Ld(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 AIe(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:Sw(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)&&Sl(A,E)&&s({ending:S,value:A})){let N=A.substring(y.length,A.length-E.length);if(!Lp(N))return GI(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===Sw(e,[l],o,i)}}function N3(e,t,r,i,o,s,l,d,p){if(typeof s=="string"){let h=!_R(t),m=()=>t.getCommonSourceDirectory(),y=p&&JK(r,e,h,m),E=p&&KK(r,e,h,m),S=_o(Yr(i,s),void 0),A=zI(r)?Tu(r)+zse(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:_o(Yr(Yr(o,s),j),void 0)}}if(mm(S,r,h)){let j=_m(S,r,!1);return{moduleFileToTry:_o(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)&&Sl(A,w,h)){let j=A.slice(D.length,A.length-w.length);return{moduleFileToTry:GI(o,j)}}if(ao(r,D,h)&&Sl(r,w,h)){let j=r.slice(D.length,r.length-w.length);return{moduleFileToTry:GI(o,j)}}if(y&&ao(y,D,h)&&Sl(y,w,h)){let j=y.slice(D.length,y.length-w.length);return{moduleFileToTry:GI(o,j)}}if(E&&ao(E,D,h)&&Sl(E,w,h)){let j=E.slice(D.length,E.length-w.length);return{moduleFileToTry:GI(o,j)}}break}}else{if(Array.isArray(s))return gn(s,h=>N3(e,t,r,i,o,h,l,d,p));if(typeof s=="object"&&s!==null){for(let h of Uh(s))if(h==="default"||l.indexOf(h)>=0||vw(l,h)){let m=s[h],y=N3(e,t,r,i,o,m,l,d,p);if(y)return y}}}}function BGe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&I3(s)?gn(Uh(s),d=>{let p=_o(Yr(o,d),void 0),h=Sl(d,"/")?1:d.includes("*")?2:0;return N3(e,t,r,i,p,s[d],l,h,!1)}):N3(e,t,r,i,o,s,l,0,!1)}function GGe(e,t,r,i,o){var s,l,d;if(!i.readFile||!Q6(r))return;let p=Ose(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(Ese(m)||!i.fileExists(h))return;let y=m?.contents.packageJsonContent||y6(i.readFile(h)),E=y?.imports;if(!E)return;let S=Zv(r,o);return(d=gn(Uh(E),A=>{if(!ao(A,"#")||A==="#"||ao(A,"#/"))return;let N=Sl(A,"/")?1:A.includes("*")?2:0;return N3(r,i,e,p,A,E[A],S,N,!0)}))==null?void 0:d.moduleFileToTry}function VGe(e,t,r,i,o,s){let l=IIe(t,e,i);if(l===void 0)return;let d=IIe(r,e,i),p=va(d,m=>mn(l,y=>y0(_m(m,y,i)))),h=jG(p,uk);if(h)return Sw(h,o,s)}function Wse({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=j6(e);if(!m)return;let E=Ew(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let Y=m.packageRootIndex,B;for(;;){let{moduleFileToTry:ce,packageRootPath:z,blockedByExports:ee,verbatimFromExports:me}=K(Y);if(pu(l)!==1){if(ee)return;if(me)return ce}if(z){S=z,A=!0;break}if(B||(B=ce),Y=e.indexOf(rl,Y+1),Y===-1){S=Sw(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=kP(w);return pu(l)===1&&j===w?void 0:j;function K(Y){var B,ce;let z=e.substring(0,Y),ee=Yr(z,"package.json"),me=e,ge=!1,q=(ce=(B=s.getPackageJsonInfoCache)==null?void 0:B.call(s))==null?void 0:ce.getPackageJsonInfo(ee);if(E3(q)||q===void 0&&s.fileExists(ee)){let J=q?.contents.packageJsonContent||y6(s.readFile(ee)),re=h||o.impliedNodeFormat;if($6(l)){let fe=z.substring(m.topLevelPackageNameIndex+1),ne=kP(fe),he=Zv(l,re),Ce=J?.exports?BGe(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?v3(J.typesVersions):void 0;if(pe){let fe=e.slice(z.length+1),ne=AIe(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(Co(xe)&&!(ge&&cU(W6(pe.paths),xe))){let fe=nl(xe,z,r),ne=r(me);if(Tu(fe)===Tu(ne))return{packageRootPath:z,moduleFileToTry:me};if(J?.type!=="module"&&!Sc(ne,Tk)&&ao(ne,fe)&&oi(ne)===Yb(fe)&&Tu(ic(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 jGe(e,t){if(!e.fileExists)return;let r=pm(KN({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 IIe(e,t,r){return to(t,i=>{let o=RIe(e,i,r);return o!==void 0&&DIe(o)?void 0:o})}function Sw(e,t,r,i){if(Sc(e,[".json",".mjs",".cjs"]))return e;let o=Tu(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if(Sc(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))(Bse||{})}}),nS={};Ra(nS,{RelativePreference:()=>Bse,countPathComponents:()=>C3,forEachFileNameOfModule:()=>EIe,getModuleSpecifier:()=>D3,getModuleSpecifierPreferences:()=>Ew,getModuleSpecifiers:()=>gIe,getModuleSpecifiersWithCacheInfo:()=>yIe,getNodeModulesPackageName:()=>wGe,tryGetJSExtensionForFile:()=>zse,tryGetModuleSpecifiersFromCache:()=>OGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>xIe,updateModuleSpecifier:()=>kGe});var Vse=bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Gse()}});function UGe(){this.flags=0}function is(e){return e.id||(e.id=Hse,Hse++),e.id}function ba(e){return e.id||(e.id=Use,Use++),e.id}function yK(e,t){let r=Vg(e);return r===1||t&&r===2}function jse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=ld.getSymbolConstructor(),p=ld.getTypeConstructor(),h=ld.getSignatureConstructor(),m=0,y=0,E=0,S=0,A=0,N=0,D,w,j=!1,K=oa(),Y=[1],B=e.getCompilerOptions(),ce=rs(B),z=kd(B),ee=!!B.experimentalDecorators,me=sP(B),ge=moe(B),q=CT(B),J=uu(B,"strictNullChecks"),re=uu(B,"strictFunctionTypes"),pe=uu(B,"strictBindCallApply"),xe=uu(B,"strictPropertyInitialization"),fe=uu(B,"noImplicitAny"),ne=uu(B,"noImplicitThis"),he=uu(B,"useUnknownInCatchVariables"),Ce=!!B.keyofStringsOnly,Ge=Ce?1:0,ve=B.suppressExcessPropertyErrors?0:8192,Ie=B.exactOptionalPropertyTypes,De=Sft(),Le=tgt(),Et=U_(),be=oa(),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",ft=!B.verbatimModuleSyntax||!!B.importsNotUsedAsValues,Zt,en,Dn=0,Kn,pn=0;let Yt={getNodeCount:()=>ru(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>ru(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>ru(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:ju.size,identity:np.size,subtype:xh.size,strictSubtype:Mf.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===Wt,isUnknownSymbol:n=>n===lt,getMergedSymbol:es,getDiagnostics:Y6e,getGlobalDiagnostics:ght,getRecursionIdentity:UZ,getUnmatchedProperties:vye,getTypeOfSymbolAtLocation:(n,a)=>{let c=Ro(a);return c?ddt(n,c):pt},getTypeOfSymbol:lr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=Ro(n,To);return c===void 0?R.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(R.assert(dp(c,c.parent)),DM(c,fl(a)))},getDeclaredTypeOfSymbol:$s,getPropertiesOfType:_s,getPropertyOfType:(n,a)=>ha(n,fl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=Ro(c);if(!u)return;let _=fl(a),g=Eee(_,u);return g?ive(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Ue(n,fl(a)),getIndexInfoOfType:(n,a)=>Eg(n,a===0?Ne:It),getIndexInfosOfType:gu,getIndexInfosOfIndexSymbol:fge,getSignaturesOfType:Ko,getIndexTypeOfType:(n,a)=>n0(n,a===0?Ne:It),getIndexType:n=>J_(n),getBaseTypes:Dp,getBaseTypeOfLiteralType:my,getWidenedType:Hp,getTypeFromTypeNode:n=>{let a=Ro(n,ji);return a?Ti(a):pt},getParameterType:f_,getParameterIdentifierInfoAtPosition:Bpt,getPromisedTypeOfPromise:q8,getAwaitedType:n=>nI(n),getReturnTypeOfSignature:us,isNullableType:B5,getNullableType:A5,getNonNullableType:_y,getNonOptionalType:qZ,getTypeArguments:Hs,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=Ro(n);return c?yht(c,a):[]},getSymbolAtLocation:n=>{let a=Ro(n);return a?zm(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Ro(n);return a?xht(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Ro(n);return a?Rht(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Ro(n,Jd);return a?Dht(a):void 0},getExportSymbolOfSymbol(n){return es(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Ro(n);return a?_x(a):pt},getTypeOfAssignmentPattern:n=>{let a=Ro(n,fN);return a&&$ee(a)||pt},getPropertySymbolOfDestructuringAssignment:n=>{let a=Ro(n,Fe);return a?Cht(a):void 0},signatureToString:(n,a,c,u)=>Ph(n,Ro(a),c,u),typeToString:(n,a,c)=>Vn(n,Ro(a),c),symbolToString:(n,a,c,u)=>Si(n,Ro(a),c,u),typePredicateToString:(n,a,c)=>Mh(n,Ro(a),c),writeSignature:(n,a,c,u,_)=>Ph(n,Ro(a),c,u,_),writeType:(n,a,c,u)=>Vn(n,Ro(a),c,u),writeSymbol:(n,a,c,u,_)=>Si(n,Ro(a),c,u,_),writeTypePredicate:(n,a,c,u)=>Mh(n,Ro(a),c,u),getAugmentedPropertiesOfType:obe,getRootSymbols:i4e,getSymbolOfExpando:Nee,getContextualType:(n,a)=>{let c=Ro(n,ht);if(c)return a&4?uo(c,()=>Ju(c,a)):Ju(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=Ro(n,Pg);return a?Uye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Ro(n,T0);return c&&jye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Ro(n,_F);return a&&yWe(a,void 0)},isContextSensitive:zf,getTypeOfPropertyOfContextualType:u0,getFullyQualifiedName:Vp,getResolvedSignature:(n,a,c)=>Li(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:qt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>Li(n,a,c,16)),getExpandedParameters:vwe,hasEffectiveRestParameter:Bh,containsArgumentsReference:dge,getConstantValue:n=>{let a=Ro(n,c4e);return a?abe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Ro(n,hre);return!!c&&Xut(c,fl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=Ro(n,kr);return!!u&&qWe(u,a,c)},getSignatureFromDeclaration:n=>{let a=Ro(n,Yo);return a?lm(a):void 0},isImplementationOfOverload:n=>{let a=Ro(n,Yo);return a?s4e(a):void 0},getImmediateAliasedSymbol:Xye,getAliasedSymbol:Fc,getEmitResolver:tv,getExportsOfModule:xA,getExportsAndPropertiesOfModule:YD,forEachExportAndPropertyOfModule:$D,getSymbolWalker:wse(Mat,Ff,us,Dp,c_,lr,Wm,Pu,Fp,Hs),getAmbientModules:Ugt,getJsxIntrinsicTagNamesAt:Dut,isOptionalParameter:n=>{let a=Ro(n,To);return a?v8(a):!1},tryGetMemberInModuleExports:(n,a)=>RA(fl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>QD(fl(n),a),tryFindAmbientModule:n=>hZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>hZ(n,!1),getApparentType:Mu,getUnionType:ei,isTypeAssignableTo:ya,createAnonymousType:Ps,createSignature:bg,createSymbol:Ka,createIndexInfo:Wh,getAnyType:()=>G,getStringType:()=>Ne,getStringLiteralType:Ku,getNumberType:()=>It,getNumberLiteralType:u_,getBigIntType:()=>Dt,createPromiseType:$5,createArrayType:Gd,getElementTypeOfArrayType:T5,getBooleanType:()=>gi,getFalseType:n=>n?Kt:En,getTrueType:n=>n?wn:Bn,getVoidType:()=>tr,getUndefinedType:()=>Me,getNullType:()=>ue,getESSymbolType:()=>xi,getNeverType:()=>Wr,getOptionalType:()=>H,getPromiseType:()=>s5(!1),getPromiseLikeType:()=>aOe(!1),getAsyncIterableType:()=>{let n=xZ(!1);if(n!==Mo)return n},isSymbolAccessible:ki,isArrayType:Gf,isTupleType:Oa,isArrayLikeType:fv,isEmptyAnonymousObjectType:zh,isTypeInvalidDueToUnionDiscriminant:fat,getExactOptionalProperties:Blt,getAllPossiblePropertiesOfTypes:mat,getSuggestedSymbolForNonexistentProperty:sve,getSuggestionForNonexistentProperty:lve,getSuggestedSymbolForNonexistentJSXAttribute:KWe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>cve(n,fl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Hut(n,fl(a),c),getSuggestedSymbolForNonexistentModule:Tee,getSuggestionForNonexistentExport:Kut,getSuggestedSymbolForNonexistentClassMember:HWe,getBaseConstraintOfType:Bd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?FA(n):void 0,resolveName(n,a,c,u){return gl(a,fl(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Vi(FE(n)),getJsxFragmentFactory:n=>{let a=lbe(n);return a&&Vi(Fp(a).escapedText)},getAccessibleSymbolChain:bb,getTypePredicateOfSignature:Ff,resolveExternalModuleName:n=>{let a=Ro(n,ht);return a&&hu(a,a,!0)},resolveExternalModuleSymbol:Ip,tryGetThisTypeAt:(n,a,c)=>{let u=Ro(n);return u&&zye(u,a,c)},getTypeArgumentConstraint:n=>{let a=Ro(n,ji);return a&&emt(a)},getSuggestionDiagnostics:(n,a)=>{let c=Ro(n,Yi)||R.fail("Could not determine parsed source file.");if(XN(c,B,e))return Xe;let u;try{return i=a,rbe(c),R.assert(!!(Qr(c).flags&1)),u=Ur(u,cA.getDiagnostics(c.fileName)),p6e(X6e(c),(_,g,T)=>{!Hx(_)&&!q6e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||Xe}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Yt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nr,isDeclarationVisible:o_,isPropertyAccessible:uve,getTypeOnlyAliasDeclaration:Lf,getMemberOverrideModifierStatus:M_t,isTypeParameterPossiblyReferenced:m5,typeHasCallOrConstructSignatures:Qee};function qt(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 Oo(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,B0(n)){let T=qi(Tr(n)),M=T.type;u.push([T,M]),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,T0);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 _=Ro(n,T0);Zt=c;let g=_?SC(_,a,u):void 0;return Zt=void 0,g}var Eo=new Map,Zn=new Map,jr=new Map,Sr=new Map,on=new Map,$e=new Map,Ot=new Map,In=new Map,si=new Map,yi=new Map,$i=new Map,Ao=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__"),se=new Map,ke=new Map,st=new Set,G=cc(1,"any"),et=cc(1,"any",262144,"auto"),Tt=cc(1,"any",void 0,"wildcard"),He=cc(1,"any",void 0,"blocked string"),pt=cc(1,"error"),Bt=cc(1,"unresolved"),hn=cc(1,"any",65536,"non-inferrable"),dn=cc(1,"intrinsic"),un=cc(2,"unknown"),U=cc(2,"unknown",void 0,"non-null"),Me=cc(32768,"undefined"),Nt=J?Me:cc(32768,"undefined",65536,"widening"),k=cc(32768,"undefined",void 0,"missing"),ie=Ie?k:Me,H=cc(32768,"undefined",void 0,"optional"),ue=cc(65536,"null"),We=J?ue:cc(65536,"null",65536,"widening"),Ne=cc(4,"string"),It=cc(8,"number"),Dt=cc(64,"bigint"),Kt=cc(512,"false",void 0,"fresh"),En=cc(512,"false"),wn=cc(512,"true",void 0,"fresh"),Bn=cc(512,"true");wn.regularType=Bn,wn.freshType=wn,Bn.regularType=Bn,Bn.freshType=wn,Kt.regularType=En,Kt.freshType=Kt,En.regularType=En,En.freshType=Kt;var gi=ei([En,Bn]),xi=cc(4096,"symbol"),tr=cc(16384,"void"),Wr=cc(131072,"never"),ho=cc(131072,"never",262144,"silent"),Pi=cc(131072,"never",void 0,"implicit"),Ri=cc(131072,"never",void 0,"unreachable"),Hr=cc(67108864,"object"),Io=ei([Ne,It]),xn=ei([Ne,It,xi]),Os=Ce?Ne:xn,Zl=ei([It,Dt]),Po=ei([Ne,It,gi,Dt,ue,Me]),ls=BA(["",""],[It]),Bs=f5(n=>n.flags&262144?flt(n):n,()=>"(restrictive mapper)"),_l=f5(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),dd=cc(131072,"never",void 0,"unique literal"),mo=f5(n=>n.flags&262144?dd:n,()=>"(unique literal mapper)"),sa,ud=f5(n=>(sa&&(n===Ep||n===Ns||n===xc)&&sa(!0),n),()=>"(unmeasurable reporter)"),Ss=f5(n=>(sa&&(n===Ep||n===Ns||n===xc)&&sa(!1),n),()=>"(unreliable reporter)"),Na=Ps(void 0,K,Xe,Xe,Xe),pl=Ps(void 0,K,Xe,Xe,Xe);pl.objectFlags|=2048;var Nf=Ka(2048,"__type");Nf.members=oa();var lc=Ps(Nf,K,Xe,Xe,Xe),Rl=Ps(void 0,K,Xe,Xe,Xe),sl=J?ei([Me,ue,Rl]):un,Mo=Ps(void 0,K,Xe,Xe,Xe);Mo.instantiations=new Map;var tn=Ps(void 0,K,Xe,Xe,Xe);tn.objectFlags|=262144;var Gs=Ps(void 0,K,Xe,Xe,Xe),rd=Ps(void 0,K,Xe,Xe,Xe),pd=Ps(void 0,K,Xe,Xe,Xe),Ep=mf(),Ns=mf();Ns.constraint=Ep;var xc=mf(),de=mf(),$=mf();$.constraint=de;var Pe=o5(1,"<>",0,G),yt=bg(void 0,void 0,void 0,Xe,G,void 0,0,0),cn=bg(void 0,void 0,void 0,Xe,pt,void 0,0,0),br=bg(void 0,void 0,void 0,Xe,G,void 0,0,0),mr=bg(void 0,void 0,void 0,Xe,ho,void 0,0,0),Fr=Wh(It,Ne,!0),Di=new Map,Cr={get yieldType(){return R.fail("Not supported")},get returnType(){return R.fail("Not supported")},get nextType(){return R.fail("Not supported")}},Jo=hv(G,G,G),bl=hv(G,G,un),Hc=hv(Wr,G,Me),Vs={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Jat,getGlobalIterableType:xZ,getGlobalIterableIteratorType:qat,getGlobalGeneratorType:Xat,resolveIterationType:(n,a)=>nI(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},yc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Yat,getGlobalIterableType:Ige,getGlobalIterableIteratorType:$at,getGlobalGeneratorType:Qat,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},bs,Kc=new Map,tp=[],Wc,im,_u,Re,Lt,Un,go,qo,Qo,ec,vc,ll,hl,jl,tc,Jc,lf,Bu,Du,Pf,z_,Ih,Hg,zd,Kg,Sp,dg,Gu,Z,rt,wt,Gt,O,Se,nt,jt,er,ii,Xr,no,ka,wa,Ol,fd,Rc,Tp,Vu,sb,cs,Dm,Cm,Ui,Jg,Zy,Nm,mS,_S,cf=new Map,B_=0,df=0,qg=0,we=!1,qe=0,Pt,Vt,_n,Jn=[],fn=[],qn=[],mi=0,ar=[],ni=[],ur=0,Xo=Ku(""),Ha=u_(0),Qd=PZ({negative:!1,base10Value:"0"}),md=[],Xg=[],kE=[],W1=0,wE=!1,WD=0,FD=10,zD=[],sA=[],hS=[],F1=[],BD=[],z1=[],B1=[],G1=[],V1=[],lA=[],j1=[],gS=[],yS=[],lb=[],cb=[],ug=[],OE=[],Qa=pR(),cA=pR(),GD=Nh(),WE,Yg,xh=new Map,Mf=new Map,ju=new Map,Ap=new Map,np=new Map,ev=new Map,dA=oa();dA.set(ze.escapedName,ze);var VD=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",B.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return ngt(),Yt;function U1(n){return n?vn.get(n):void 0}function db(n,a){return n&&vn.set(n,a),a}function FE(n){if(n){let a=Gn(n);if(a)if(a1(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=So(c)?c[0]:c;if(a.localJsxFragmentFactory=d1(_.arguments.factory,ce),Qe(a.localJsxFragmentFactory,bc,Xu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Fp(a.localJsxFragmentFactory).escapedText}let u=lbe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Fp(u).escapedText}else{let c=H1(a);if(c)return a.localJsxNamespace=c}}return WE||(WE="React",B.jsxFactory?(Yg=d1(B.jsxFactory,ce),Qe(Yg,bc),Yg&&(WE=Fp(Yg).escapedText)):B.reactNamespace&&(WE=fl(B.reactNamespace))),Yg||(Yg=L.createQualifiedName(L.createIdentifier(Vi(WE)),"createElement")),WE}function H1(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=So(a)?a[0]:a;if(n.localJsxFactory=d1(c.arguments.factory,ce),Qe(n.localJsxFactory,bc,Xu),n.localJsxFactory)return n.localJsxNamespace=Fp(n.localJsxFactory).escapedText}}function bc(n){return mh(n,-1,-1),Sn(n,bc,void 0)}function tv(n,a){return Y6e(n,a),Le}function K1(n,a,...c){let u=n?Pr(n,a,...c):Hl(a,...c),_=Qa.lookup(u);return _||(Qa.add(u),u)}function e_(n,a,c,...u){let _=Ve(a,c,...u);return _.skippedOn=n,_}function uA(n,a,...c){return n?Pr(n,a,...c):Hl(a,...c)}function Ve(n,a,...c){let u=uA(n,a,...c);return Qa.add(u),u}function t_(n,a){n?Qa.add(a):cA.add({...a,category:2})}function _d(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Gn(a);t_(n,"message"in c?Zc(_,0,0,c,...u):rj(_,c));return}t_(n,"message"in c?Pr(a,c,...u):Mg(Gn(a),a,c))}function zE(n,a,c,...u){let _=Ve(n,c,...u);if(a){let g=Pr(n,f.Did_you_forget_to_use_await);Ma(_,g)}return _}function J1(n,a){let c=Array.isArray(n)?gn(n,vV):vV(n);return c&&Ma(a,Pr(c,f.The_declaration_was_marked_as_deprecated_here)),cA.add(a),a}function ub(n){let a=Cu(n);return a&&Nn(n.declarations)>1?a.flags&64?gt(n.declarations,nv):oo(n.declarations,nv):!!n.valueDeclaration&&nv(n.valueDeclaration)||Nn(n.declarations)&&oo(n.declarations,nv)}function nv(n){return!!(qS(n)&536870912)}function rv(n,a,c){let u=Pr(n,f._0_is_deprecated,c);return J1(a,u)}function RM(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 J1(a,_)}function Ka(n,a,c){y++;let u=new d(n|33554432,a);return u.links=new qse,u.links.checkFlags=c||0,u}function n_(n,a){let c=Ka(1,n);return c.links.type=a,c}function pA(n,a){let c=Ka(4,n);return c.links.type=a,c}function fA(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 BE(n,a){a.mergeId||(a.mergeId=Kse,Kse++),zD[a.mergeId]=n}function mA(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)),BE(a,n),a}function om(n,a,c=!1){if(!(n.flags&fA(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=Ul(n);if(_===lt)return a;n=mA(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&z2(n,a.valueDeclaration),Ur(n.declarations,a.declarations),a.members&&(n.members||(n.members=oa()),r_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=oa()),r_(n.exports,a.exports,c)),c||BE(n,a)}else if(n.flags&1024)n!==tt&&Ve(a.declarations&&No(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,M=a.declarations&&Gn(a.declarations[0]),W=n.declarations&&Gn(n.declarations[0]),V=h2(M,B.checkJs),te=h2(W,B.checkJs),ye=Si(a);if(M&&W&&bs&&!_&&M!==W){let _e=Rg(M.path,W.path)===-1?M:W,je=_e===M?W:M,mt=jC(bs,`${_e.path}|${je.path}`,()=>({firstFile:_e,secondFile:je,conflictingSymbols:new Map})),At=jC(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 _=(lE(n,!1)?fj(n):No(n))||n,g=K1(_,a,c);for(let T of u||Xe){let M=(lE(T,!1)?fj(T):No(T))||T;if(M===_)continue;g.relatedInformation=g.relatedInformation||[];let W=Pr(M,f._0_was_also_declared_here,c),V=Pr(M,f.and_here);Nn(g.relatedInformation)>=5||gt(g.relatedInformation,te=>UN(te,V)===0||UN(te,W)===0)||Ma(g,Nn(g.relatedInformation)?V:W)}}function q1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=oa();return r_(c,n),r_(c,a),c}function r_(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?om(g,u,c):es(u))})}function jD(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){R.assert(_.symbol.declarations.length>1);return}if(E_(_))r_(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,M=>T===M.symbol)){let M=om(_.symbol,T,!0);_u||(_u=new Map),_u.set(n.text,M)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=_.symbol.exports)!=null&&u.size)){let M=Jhe(T,"resolvedExports");for(let[W,V]of Oo(_.symbol.exports.entries()))M.has(W)&&!T.exports.has(W)&&om(M.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 vS(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 sA[a]??(sA[a]=new qse)}function Qr(n){let a=is(n);return hS[a]||(hS[a]=new UGe)}function Rh(n){return n.kind===312&&!wp(n)}function Uu(n,a,c){if(c){let u=es(n.get(a));if(u&&(R.assert((Al(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Ad(u)&c))return u}}function DM(n,a){let c=n.parent,u=n.parent.parent,_=Uu(c.locals,a,111551),g=Uu(Pb(u.symbol),a,111551);return _&&g?[_,g]:R.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),_=ph(n);if(c!==u){if(z&&(c.externalModuleIndicator||u.externalModuleIndicator)||!Cs(B)||IT(a)||n.flags&33554432||T(a,n))return!0;let W=e.getSourceFiles();return W.indexOf(c)<=W.indexOf(u)}if(a.flags&16777216||IT(a)||xye(a))return!0;if(n.pos<=a.pos&&!(jo(n)&&R2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let W=uE(a,208);return W?Fn(W,Xa)!==Fn(n,Xa)||n.posYa(W)&&W.parent.parent===n);if(jo(n))return!M(n,a,!1);if(dp(n,n.parent))return!(ge&&sd(n)===sd(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&&sd(n)&&(jo(n)||dp(n,n.parent))?!M(n,a,!0):!0;return!1;function g(W,V){switch(W.parent.parent.kind){case 243:case 248:case 250:if(ES(V,W,_))return!0;break}let te=W.parent.parent;return Gx(te)&&ES(V,te.expression,_)}function T(W,V){return!!Fn(W,te=>{if(te===_)return"quit";if(Yo(te))return!0;if(Il(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&&(jo(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 CM(n,a,c){let u=rs(B),_=a;if(To(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let M=Qr(_);return M.declarationRequiresScopeChange===void 0&&(M.declarationRequiresScopeChange=gn(_.parameters,g)||!1),!M.declarationRequiresScopeChange}return!1;function g(M){return T(M.name)||!!M.initializer&&T(M.initializer)}function T(M){switch(M.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(M.name);case 172:return mc(M)?!ge:T(M.name);default:return TV(M)||Hd(M)?u<7:Xa(M)&&M.dotDotDotToken&&tm(M.parent)?u<4:ji(M)?!1:Bo(M,T)||!1}}}function pb(n){return uT(n)&&Ng(n.type)||SP(n)&&Ng(n.typeExpression)}function gl(n,a,c,u,_,g,T=!1,M=!0){return Bp(n,a,c,u,_,g,T,M,Uu)}function Bp(n,a,c,u,_,g,T,M,W){var V,te,ye;let _e=n,je,mt,At,rn,sn,rr=!1,Mn=n,an,On=!1;e:for(;n;){if(a==="const"&&pb(n))return;if(u2(n)&&mt&&n.name===mt&&(mt=n,n=n.parent),ch(n)&&n.locals&&!Rh(n)&&(je=W(n.locals,a,c))){let $n=!0;if(Yo(n)&&mt&&mt!==n.body?(c&je.flags&788968&&mt.kind!==327&&($n=je.flags&262144?mt===n.type||mt.kind===169||mt.kind===348||mt.kind===349||mt.kind===168:!1),c&je.flags&3&&(CM(je,n,mt)?$n=!1:je.flags&1&&($n=mt.kind===169||mt===n.type&&!!Fn(je.valueDeclaration,To)))):n.kind===194&&($n=mt===n.trueType),$n)break e;je=void 0}switch(rr=rr||sm(n,mt),n.kind){case 312:if(!wp(n))break;On=!0;case 267:let $n=((V=Tr(n))==null?void 0:V.exports)||K;if(n.kind===312||Yl(n)&&n.flags&33554432&&!E_(n)){if(je=$n.get("default")){let xo=gR(je);if(xo&&je.flags&c&&xo.escapedName===a)break e;je=void 0}let Qn=$n.get(a);if(Qn&&Qn.flags===2097152&&(dl(Qn,281)||dl(Qn,280)))break}if(a!=="default"&&(je=W($n,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=Tr(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(!na(n)){let Qn=ny(n.parent);Qn&&Qn.locals&&W(Qn.locals,a,c&111551)&&(R.assertNode(n,jo),rn=n)}break;case 263:case 231:case 264:if(je=W(Tr(n).members||K,a,c&788968)){if(!Zg(je,n)){je=void 0;break}if(mt&&na(mt)){u&&Ve(Mn,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(ed(n)&&c&32){let Qn=n.name;if(Qn&&a===Qn.escapedText){je=n.symbol;break e}}break;case 233:if(mt===n.expression&&n.parent.token===96){let Qn=n.parent.parent;if(di(Qn)&&(je=W(Tr(Qn).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,(di(an)||an.kind===264)&&(je=W(Tr(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(rs(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 Qn=n.name;if(Qn&&a===Qn.escapedText){je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(Qc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let jn=sR(n);jn&&(n=jn.parent);break;case 169:mt&&(mt===n.initializer||mt===n.name&&$o(mt))&&(sn||(sn=n));break;case 208:mt&&(mt===n.initializer||mt===n.name&&$o(mt))&&L0(n)&&!sn&&(sn=n);break;case 195:if(c&262144){let Qn=n.typeParameter.name;if(Qn&&a===Qn.escapedText){je=n.typeParameter.symbol;break e}}break;case 281:mt&&mt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}fb(n)&&(At=n),mt=n,n=nm(n)?e6(n)||n.parent:($m(n)||J4(n))&&cE(n)||n.parent}if(g&&je&&(!At||je!==At.symbol)&&(je.isReferenced|=c),!je){if(mt&&(R.assertNode(mt,Yi),mt.commonJsModuleIndicator&&a==="exports"&&c&mt.symbol.flags))return mt.symbol;T||(je=W(be,a,c))}if(!je&&_e&&or(_e)&&_e.parent&&Su(_e.parent,!1))return _t;function Ln(){return rn&&!ge?(Ve(Mn,Mn&&rn.type&&YL(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,xs(rn.name),Pm(_)),!0):!1}if(je){if(u&&Ln())return}else{u&&r(()=>{if(!Mn||Mn.parent.kind!==331&&!bS(Mn,a,_)&&!Ln()&&!_A(Mn)&&!X1(Mn,a,c)&&!iv(Mn,a)&&!hA(Mn,a,c)&&!UD(Mn,a,c)&&!mg(Mn,a,c)){let $n,jn;if(_&&(jn=jut(_),jn&&Ve(Mn,u,Pm(_),jn)),!jn&&M&&WD{var $n;if(Mn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let jn=ff(je);(jn.flags&2||jn.flags&32||jn.flags&384)&&Ys(jn,Mn)}if(je&&On&&(c&111551)===111551&&!(_e.flags&16777216)){let jn=es(je);Nn(jn.declarations)&&oo(jn.declarations,Qn=>Vk(Qn)||Yi(Qn)&&!!Qn.symbol.globalExports)&&_d(!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&&!rr&&(c&111551)===111551){let jn=es(fZ(je)),Qn=A_(sn);jn===Tr(sn)?Ve(Mn,f.Parameter_0_cannot_reference_itself,xs(sn.name)):jn.valueDeclaration&&jn.valueDeclaration.pos>sn.pos&&Qn.parent.locals&&W(Qn.parent.locals,jn.escapedName,c)===jn&&Ve(Mn,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,xs(sn.name),xs(Mn))}if(je&&Mn&&c&111551&&je.flags&2097152&&!(je.flags&111551)&&!mE(Mn)){let jn=Lf(je,111551);if(jn){let Qn=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,xo=Vi(a);pg(Ve(Mn,Qn,xo),jn,xo)}}if(B.isolatedModules&&je&&On&&(c&111551)===111551){let Qn=W(be,a,c)===je&&Yi(mt)&&mt.locals&&W(mt.locals,a,-111552);if(Qn){let xo=($n=Qn.declarations)==null?void 0:$n.find(vo=>vo.kind===276||vo.kind===273||vo.kind===274||vo.kind===271);xo&&!i2(xo)&&Ve(xo,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 pg(n,a,c){return a?Ma(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?QI(n)||(Fs(n)||n.kind===172&&!na(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||$r(n,1024)?!0:!gT(n)}function fb(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 Co(n)?Vi(n):xs(n)}function Zg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(nm(c.parent)?ET(c.parent):c.parent)===a)return!(nm(c.parent)&&Gr(c.parent.parent.tags,qf))}return!1}function bS(n,a,c){if(!Fe(n)||n.escapedText!==a||$6e(n)||IT(n))return!1;let u=wu(n,!1,!1),_=u;for(;_;){if(di(_.parent)){let g=Tr(_.parent);if(!g)break;let T=lr(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&&!na(_)){let M=$s(g).thisType;if(ha(M,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Pm(c)),!0}}_=_.parent}return!1}function _A(n){let a=fg(n);return a&&js(a,64,!0)?(Ve(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,fc(a)),!0):!1}function fg(n){switch(n.kind){case 80:case 211:return n.parent?fg(n.parent):void 0;case 233:if(Vl(n.expression))return n.expression;default:return}}function X1(n,a,c){let u=1920|(or(n)?111551:0);if(c===u){let _=Ul(gl(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if(Au(g)){R.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");let T=g.right.escapedText;if(ha($s(_),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 mg(n,a,c){if(c&788584){let u=Ul(gl(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 iv(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 UD(n,a,c){if(c&111551){if(G_(a)){let g=n.parent.parent;if(g&&g.parent&&Zp(g)){let T=g.token,M=g.parent.kind;M===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)):M===263&&T===96?Ve(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):M===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=Ul(gl(n,a,788544,void 0,void 0,!1)),_=u&&Ad(u);if(u&&_!==void 0&&!(_&111551)){let g=Vi(a);return KD(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):HD(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 HD(n,a){let c=Fn(n.parent,u=>Ya(u)||_p(u)?!1:gp(u)||"quit");if(c&&c.members.length===1){let u=$s(a);return!!(u.flags&1048576)&&eG(u,384,!0)}return!1}function KD(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function hA(n,a,c){if(c&111127){if(Ul(gl(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&&Ul(gl(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 Ys(n,a){var c;if(R.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(_)||di(_)||_.kind===266);if(u===void 0)return R.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&33554432)&&!Qg(u,a)){let _,g=xs(No(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):(R.assert(!!(n.flags&128)),em(B)&&(_=Ve(a,f.Enum_0_used_before_its_declaration,g))),_&&Ma(_,Pr(u,f._0_is_declared_here,g))}}function ES(n,a,c){return!!a&&!!Fn(n,u=>u===a||(u===c||Yo(u)&&(!gT(u)||Vc(u)&3)?"quit":!1))}function gA(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&&cI(n.declarations,mb)}function mb(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&&lR(n)||pr(n)&&Gl(n)===2&&lR(n)||Ls(n)&&pr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&JD(n.parent.right)||n.kind===304||n.kind===303&&JD(n.initializer)||n.kind===260&&C0(n)||n.kind===208&&C0(n.parent.parent)}function JD(n){return q2(n)||ks(n)&&$_(n)}function yA(n,a){let c=hb(n);if(c){let _=vR(c.expression).arguments[0];return Fe(c.name)?Ul(ha(zwe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){let _=hu(n,dj(n)||SN(n)),g=Ip(_);return rp(n,_,g,!1),g}let u=$1(n.moduleReference,a);return NM(n,u),u}function NM(n,a){if(rp(n,void 0,a,!1)&&!n.isTypeOnly){let c=Lf(Tr(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);Ma(Ve(n.moduleReference,_),Pr(c,g,T))}}function _r(n,a,c,u){let _=n.exports.get("export="),g=_?ha(lr(_),a,!0):n.exports.get(a),T=Ul(g,u);return rp(c,g,T,!1),T}function id(n){return kl(n)&&!n.isExportEquals||$r(n,2048)||Jd(n)||vh(n)}function Qi(n){return ss(n)?e.getModeForUsageLocation(Gn(n),n):void 0}function uf(n,a){return n===99&&a===1}function ov(n){return Qi(n)===99&&Sl(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=_r(a,"default",void 0,!0);return!(g&>(g.declarations,id)||_r(a,fl("__esModule"),void 0,c))}return cu(n)?typeof n.externalModuleIndicator!="object"&&!_r(a,fl("__esModule"),void 0,c):av(a)}function sr(n,a){let c=hu(n,n.parent.moduleSpecifier);if(c)return vA(c,n,a)}function vA(n,a,c){var u;let _;gN(n)?_=n:_=_r(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Yi),T=GE(a);if(!T)return _;let M=ov(T),W=V_(g,n,c,T);if(!_&&!W&&!M)if(av(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&&Ma(_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 yh(a)?qc(n,a):bA(n,n,a,bI(a)&&a.propertyName||a.name);else if(W||M){let V=Ip(n,c)||Ul(n,c);return rp(a,n,V,!1),V}return rp(a,_,void 0,!1),_}function GE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return bh(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 R.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 M=(_=T.declarations)==null?void 0:_.find(W=>{var V,te;return!!($l(W)&&W.moduleSpecifier&&((te=(V=hu(W,W.moduleSpecifier))==null?void 0:V.exports)!=null&&te.has("default")))});M&&Ma(g,Pr(M,f.export_Asterisk_does_not_re_export_a_default))}}}function Dh(n,a){let c=n.parent.parent.moduleSpecifier,u=hu(n,c),_=ip(u,c,a,!1);return rp(n,u,_,!1),_}function Lm(n,a){let c=n.parent.moduleSpecifier,u=c&&hu(n,c),_=c&&ip(u,c,a,!1);return rp(n,u,_,!1),_}function SS(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 R.assert(n.declarations||a.declarations),c.declarations=h0(bo(n.declarations,a.declarations),Iy),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 TS(n,a,c,u){var _;if(n.flags&1536){let g=xp(n).get(a.escapedText),T=Ul(g,u),M=(_=qi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return rp(c,g,T,!1,M,a.escapedText),T}}function _b(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Ul(ha(Ti(c),a))}}function ey(n,a,c=!1){var u;let _=dj(n)||n.moduleSpecifier,g=hu(n,_),T=!kr(a)&&a.propertyName||a.name;if(!Fe(T))return;let M=T.escapedText==="default"&&q,W=ip(g,_,!1,M);if(W&&T.escapedText){if(gN(g))return g;let V;g&&g.exports&&g.exports.get("export=")?V=ha(lr(W),T.escapedText,!0):V=_b(W,T.escapedText),V=Ul(V,c);let te=TS(W,T,a,c);if(te===void 0&&T.escapedText==="default"){let _e=(u=g.declarations)==null?void 0:u.find(Yi);(ov(_)||V_(_e,g,c,_))&&(te=Ip(g,c)||Ul(g,c))}let ye=te&&V&&te!==V?SS(V,te):te||V;return ye||bA(g,W,n,T),ye}}function bA(n,a,c,u){var _;let g=Vp(n,c),T=xs(u),M=Tee(u,a);if(M!==void 0){let W=Si(M),V=Ve(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,W);M.valueDeclaration&&Ma(V,Pr(M.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 M=(T=(g=ri(u.valueDeclaration,ch))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),W=u.exports;if(M){let V=W?.get("export=");if(V)i_(V,M)?VE(n,a,c,_):Ve(a,f.Module_0_has_no_exported_member_1,_,c);else{let te=W?Gr(cge(W),_e=>!!i_(_e,M)):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);M.declarations&&Ma(ye,...mn(M.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 VE(n,a,c,u){if(z>=5){let _=_h(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(or(n)){let _=_h(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 _=_h(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 _g(n,a){if(Qu(n)&&vr(n.propertyName||n.name)==="default"){let T=GE(n),M=T&&hu(n,T);if(M)return vA(M,n,a)}let c=Xa(n)?A_(n):n.parent.parent.parent,u=hb(c),_=ey(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Fe(g)?Ul(ha(lr(_),g.escapedText),a):(rp(n,void 0,_,!1),_)}function hb(n){if(Oi(n)&&n.initializer&&kr(n.initializer))return n.initializer}function Y1(n,a){if(b_(n.parent)){let c=Ip(n.parent.symbol,a);return rp(n,void 0,c,!1),c}}function jE(n,a,c){if(vr(n.propertyName||n.name)==="default"){let _=GE(n),g=_&&hu(n,_);if(g)return vA(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?ey(n.parent.parent,n,c):js(n.propertyName||n.name,a,!1,c);return rp(n,void 0,u,!1),u}function qD(n,a){let c=kl(n)?n.expression:n.right,u=AS(c,a);return rp(n,void 0,u,!1),u}function AS(n,a){if(ed(n))return rc(n).symbol;if(!Xu(n)&&!Vl(n))return;let c=js(n,901119,!0,a);return c||(rc(n),Qr(n).resolvedSymbol)}function EA(n,a){if(pr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return AS(n.parent.right,a)}function Gp(n,a=!1){switch(n.kind){case 271:case 260:return yA(n,a);case 273:return sr(n,a);case 274:return Dh(n,a);case 280:return Lm(n,a);case 276:case 208:return _g(n,a);case 281:return jE(n,901119,a);case 277:case 226:return qD(n,a);case 270:return Y1(n,a);case 304:return js(n.name,901119,!0,a);case 303:return AS(n.initializer,a);case 212:case 211:return EA(n,a);default:return R.fail()}}function SA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Ul(n,a){return!a&&SA(n)?Fc(n):n}function Fc(n){R.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 R.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 TA(n){if(qi(n).aliasTarget!==Rt)return Fc(n)}function Ad(n,a,c){let u=a&&Lf(n),_=u&&$l(u),g=u&&(_?hu(u.moduleSpecifier,u.moduleSpecifier,!0):Fc(u.symbol)),T=_&&g?Ch(g):void 0,M=c?0:n.flags,W;for(;n.flags&2097152;){let V=ff(Fc(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])),M|=V.flags,n=V}return M}function rp(n,a,c,u,_,g){if(!n||kr(n))return!1;let T=Tr(n);if(oE(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 M=qi(T);return UE(M,a,u)||UE(M,c,u)}function UE(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&&Gr(_.declarations,oE);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?Ul(Ch(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Fc(c.typeOnlyDeclaration.symbol);return Ad(u)&a?c.typeOnlyDeclaration:void 0}}function gb(n){if(!ft)return;let a=Tr(n),c=Fc(a);c&&(c===lt||Ad(a,!0)&111551&&!eW(c))&&yb(a)}function yb(n){R.assert(ft);let a=qi(n);if(!a.referenced){a.referenced=!0;let c=Mm(n);if(!c)return R.fail();tR(c)&&Ad(Ul(n))&111551&&rc(c.moduleReference)}}function od(n){let a=qi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function $1(n,a){return n.kind===80&&FN(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?js(n,1920,!1,a):(R.assert(n.parent.kind===271),js(n,901119,!1,a))}function Vp(n,a){return n.parent?Vp(n.parent,a)+"."+Si(n):Si(n,a,void 0,36)}function AA(n){for(;Au(n.parent);)n=n.parent;return n}function IA(n){let a=Fp(n),c=gl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Au(a.parent);){let u=lr(c);if(c=ha(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function js(n,a,c,u,_){if(Bl(n))return;let g=1920|(or(n)?a&111551:0),T;if(n.kind===80){let M=a===g||qs(n)?f.Cannot_find_namespace_0:M8e(Fp(n)),W=or(n)&&!qs(n)?XD(n,a):void 0;if(T=es(gl(_||n,n.escapedText,a,c||W?void 0:M,n,!0,!1)),!T)return es(W)}else if(n.kind===166||n.kind===211){let M=n.kind===166?n.left:n.expression,W=n.kind===166?n.right:n.name,V=js(M,g,c,!1,_);if(!V||Bl(W))return;if(V===lt)return V;if(V.valueDeclaration&&or(V.valueDeclaration)&&pu(B)!==100&&Oi(V.valueDeclaration)&&V.valueDeclaration.initializer&&hFe(V.valueDeclaration.initializer)){let te=V.valueDeclaration.initializer.arguments[0],ye=hu(te,te);if(ye){let _e=Ip(ye);_e&&(V=_e)}}if(T=es(Uu(xp(V),W.escapedText,a)),!T&&V.flags&2097152&&(T=es(Uu(xp(Fc(V)),W.escapedText,a))),!T){if(!c){let te=Vp(V),ye=xs(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=Au(n)&&AA(n);if(Re&&a&788968&&je&&!LR(je.parent)&&IA(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&&Au(n.parent)){let At=es(Uu(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 R.assertNever(n,"Unknown entity name kind.");return R.assert((Al(T)&1)===0,"Should never get an instantiated symbol here."),!qs(n)&&Xu(n)&&(T.flags&2097152||n.parent.kind===277)&&rp(Sj(n),T,void 0,!0),T.flags&a||u?T:Fc(T)}function XD(n,a){if(AZ(n.parent)){let c=HE(n.parent);if(c)return gl(c,n.escapedText,a,void 0,n,!0)}}function HE(n){if(Fn(n,_=>Vx(_)||_.flags&16777216?qf(_):"quit"))return;let c=ET(n);if(c&&td(c)&&F2(c.expression)){let _=Tr(c.expression.left);if(_)return IS(_)}if(c&&ks(c)&&F2(c.parent)&&td(c.parent.parent)){let _=Tr(c.parent.left);if(_)return IS(_)}if(c&&(bm(c)||hc(c))&&pr(c.parent.parent)&&Gl(c.parent.parent)===6){let _=Tr(c.parent.parent.left);if(_)return IS(_)}let u=dE(n);if(u&&Yo(u)){let _=Tr(u);return _&&_.valueDeclaration}}function IS(n){let a=n.parent.valueDeclaration;return a?(TN(a)?xI(a):pT(a)?L2(a):void 0)||a:void 0}function PM(n){let a=n.valueDeclaration;if(!a||!or(a)||n.flags&524288||lE(a,!1))return;let c=Oi(a)?L2(a):xI(a);if(c){let u=pf(c);if(u)return yve(u,n)}}function hu(n,a,c){let _=pu(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 ss(a)?j_(n,a.text,c,a,u):void 0}function j_(n,a,c,u,_=!1){var g,T,M,W,V,te,ye,_e,je,mt,At;if(ao(a,"@types/")){let Qn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,xo=qC(a,"@types/");Ve(u,Qn,xo,a)}let rn=hZ(a,!0);if(rn)return rn;let sn=Gn(n),rr=ss(n)?n:((g=Yl(n)?n:n.parent&&Yl(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)||(Oi(n)&&n.initializer&&Su(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((M=Fn(n,Op))==null?void 0:M.arguments[0])||((W=Fn(n,kc))==null?void 0:W.moduleSpecifier)||((V=Fn(n,sE))==null?void 0:V.moduleReference.expression)||((te=Fn(n,$l))==null?void 0:te.moduleSpecifier),Mn=rr&&ss(rr)?e.getModeForUsageLocation(sn,rr):sn.impliedNodeFormat,an=pu(B),On=(ye=e.getResolvedModule(sn,a,Mn))==null?void 0:ye.resolvedModule,Ln=On&&yJ(B,On,sn),$n=On&&(!Ln||Ln===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(On.resolvedFileName);if($n){if(Ln&&Ve(u,Ln,a,On.resolvedFileName),On.resolvedUsingTsExtension&&Sd(a)){let Qn=((_e=Fn(n,kc))==null?void 0:_e.importClause)||Fn(n,Um(nd,$l));(Qn&&!Qn.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(R.checkDefined(g6(a))))}else if(On.resolvedUsingTsExtension&&!QR(B,sn.fileName)){let Qn=((je=Fn(n,kc))==null?void 0:je.importClause)||Fn(n,Um(nd,$l));if(!(Qn?.isTypeOnly||Fn(n,og))){let xo=R.checkDefined(g6(a));Ve(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,xo)}}if($n.symbol){if(On.isExternalLibraryImport&&!JN(On.extension)&&Q1(!1,u,sn,Mn,On,a),an===3||an===99){let Qn=sn.impliedNodeFormat===1&&!Fn(n,Op)||!!Fn(n,nd),xo=Fn(n,vo=>og(vo)||$l(vo)||kc(vo));if(Qn&&$n.impliedNodeFormat===99&&!woe(xo))if(Fn(n,nd))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 vo,Wo=Wg(sn.fileName);if(Wo===".ts"||Wo===".js"||Wo===".tsx"||Wo===".jsx"){let fo=sn.packageJsonScope,Cc=Wo===".ts"?".mts":Wo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?Cc?vo=Fo(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,Cc,Yr(fo.packageDirectory,"package.json")):vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Yr(fo.packageDirectory,"package.json")):Cc?vo=Fo(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,Cc):vo=Fo(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,Fo(vo,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($n.symbol)}c&&Ve(u,f.File_0_is_not_a_module,$n.fileName);return}if(im){let Qn=KG(im,xo=>xo.pattern,a);if(Qn){let xo=_u&&_u.get(a);return es(xo||Qn.symbol)}}if(On&&!JN(On.extension)&&Ln===void 0||Ln===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Qn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ve(u,Qn,a,On.resolvedFileName)}else Q1(fe&&!!c,u,sn,Mn,On,a);return}if(c){if(On){let Qn=e.getProjectReferenceRedirect(On.resolvedFileName);if(Qn){Ve(u,f.Output_file_0_has_not_been_built_from_source_file_1,Qn,On.resolvedFileName);return}}if(Ln)Ve(u,Ln,a,On.resolvedFileName);else{let Qn=Lp(a)&&!hI(a),xo=an===3||an===99;if(!_E(B)&&Tl(a,".json")&&an!==1&&R6(B))Ve(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Mn===99&&xo&&Qn){let vo=_o(a,oi(sn.path)),Wo=(mt=VD.find(([fo,Cc])=>e.fileExists(vo+fo)))==null?void 0:mt[1];Wo?Ve(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Wo):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 vo=SF(sn,e,a,Mn,a);_d(!0,u,Fo(vo,c,a))}else Ve(u,c,a)}}return;function jn(Qn){let xo=pk(a,Qn);if(x6(z)||Mn===99){let vo=Sd(a)&&QR(B);return xo+(Qn===".mts"||Qn===".d.mts"?vo?".mts":".mjs":Qn===".cts"||Qn===".d.mts"?vo?".cts":".cjs":vo?".ts":".js")}return xo}}function Q1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let M;!$c(T)&&_&&(M=SF(c,e,T,u,_.name)),_d(n,a,Fo(M,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=Ul(n.exports.get("export="),a),u=Z1(es(c),es(n));return es(u)||n}}function Z1(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:mA(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=oa()),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)&&!dl(g,312)){let M=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,M),g}let T=a.parent;if(kc(T)&&oR(T)||Op(T)){let M=Op(T)?T.arguments[0]:T.moduleSpecifier,W=lr(g),V=mFe(W,g,n,M);if(V)return ex(g,V,T);let te=(_=n?.declarations)==null?void 0:_.find(Yi),ye=te&&uf(Qi(M),te.impliedNodeFormat);if(_h(B)||ye){let _e=i5(W,0);if((!_e||!_e.length)&&(_e=i5(W,1)),_e&&_e.length||ha(W,"default",!0)||ye){let je=W.flags&3670016?_Fe(W,g,n,M):vve(g,g.parent);return ex(g,je,T)}}}}return g}function ex(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 _=c_(a);return u.links.type=Ps(u,_.members,Xe,Xe,_.indexInfos),u}function av(n){return n.exports.get("export=")!==void 0}function xA(n){return cge(Ch(n))}function YD(n){let a=xA(n),c=Ip(n);if(c!==n){let u=lr(c);vb(u)&&Ur(a,_s(u))}return a}function $D(n,a){Ch(n).forEach((_,g)=>{DS(g)||a(_,g)});let u=Ip(n);if(u!==n){let _=lr(u);vb(_)&&pat(_,(g,T)=>{a(g,T)})}}function RA(n,a){let c=Ch(a);if(c)return c.get(n)}function QD(n,a){let c=RA(n,a);if(c)return c;let u=Ip(a);if(u===a)return;let _=lr(u);return vb(_)?ha(_,n):void 0}function vb(n){return!(n.flags&402784252||Lr(n)&1||Gf(n)||Oa(n))}function xp(n){return n.flags&6256?Jhe(n,"resolvedExports"):n.flags&1536?Ch(n):n.exports||K}function Ch(n){let a=qi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=DA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function ZD(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:fc(u.moduleSpecifier)});else if(c&&u&&T&&Ul(T)!==Ul(_)){let M=c.get(g);M.exportsWithDuplicate?M.exportsWithDuplicate.push(u):M.exportsWithDuplicate=[u]}})}function DA(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,M,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=oa(),_e=new Map;if(te.declarations)for(let je of te.declarations){let mt=hu(je,je.moduleSpecifier),At=g(mt,je,W||je.isTypeOnly);ZD(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)))}),ZD(V,ye)}return M?.isTypeOnly&&(c??(c=new Map),V.forEach((ye,_e)=>c.set(_e,M))),V}}function es(n){let a;return n&&n.mergeId&&(a=zD[n.mergeId])?a:n}function Tr(n){return es(n.symbol&&fZ(n.symbol))}function pf(n){return b_(n)?Tr(n):void 0}function Cu(n){return es(n.parent&&fZ(n.parent))}function xS(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 eC(n,a){let c=Gn(a),u=is(c),_=qi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let M of c.imports){if(qs(M))continue;let W=hu(a,M,!0);!W||!hg(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 M of T){if(!sc(M))continue;let W=Tr(M);hg(W,n)&&(g=Tn(g,W))}return _.extendedContainers=g||Xe}function KE(n,a,c){let u=Cu(n);if(u&&!(n.flags&262144))return W(u);let _=to(n.declarations,te=>{if(!Ld(te)&&te.parent){if(Zd(te.parent))return Tr(te.parent);if(N_(te.parent)&&te.parent.parent&&Ip(Tr(te.parent.parent))===n)return Tr(te.parent.parent)}if(ed(te)&&pr(te.parent)&&te.parent.operatorToken.kind===64&&Ls(te.parent.left)&&Vl(te.parent.left.expression))return Qh(te.parent.left)||yT(te.parent.left.expression)?Tr(Gn(te)):(rc(te.parent.left.expression),Qr(te.parent.left.expression).resolvedSymbol)});if(!Nn(_))return;let g=to(_,te=>hg(te,n)?te:void 0),T=[],M=[];for(let te of g){let[ye,..._e]=W(te);T=Tn(T,ye),M=Ur(M,_e)}return bo(T,M);function W(te){let ye=to(te.declarations,V),_e=a&&eC(n,a),je=RS(te,c);if(a&&te.flags&ry(c)&&bb(te,a,1920,!1))return Tn(bo(bo([te],ye),_e),je);let mt=!(te.flags&ry(c))&&te.flags&788968&&$s(te).flags&524288&&c===111551?NS(a,rn=>Gc(rn,sn=>{if(sn.flags&ry(c)&&lr(sn)===$s(te))return sn})):void 0,At=mt?[mt,...ye,te]:[...ye,te];return At=Tn(At,je),At=Ur(At,_e),At}function V(te){return u&&CA(te,u)}}function RS(n,a){let c=!!Nn(n.declarations)&&Va(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(La(c)&&c===c.parent.initializer||gp(c)&&c===c.parent.type))return Tr(c.parent)}function CA(n,a){let c=Zi(n),u=c&&c.exports&&c.exports.get("export=");return u&&i_(u,a)?c:void 0}function hg(n,a){if(n===Cu(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&i_(c,a))return n;let u=xp(n),_=u.get(a.escapedName);return _&&i_(_,a)?_:Gc(u,g=>{if(i_(g,a))return g})}function i_(n,a){if(es(Ul(es(n)))===es(Ul(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&&Ad(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 gg(n){var a;let c=new p(Yt,n);return m++,c.id=m,(a=ir)==null||a.recordType(c),c}function yg(n,a){let c=gg(n);return c.symbol=a,c}function tx(n){return new p(Yt,n)}function cc(n,a,c=0,u){tC(a,u);let _=gg(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function tC(n,a){let c=`${n},${a??""}`;st.has(c)&&R.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=yg(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 Nh(){return ei(Oo(EK.keys(),Ku))}function mf(n){return yg(262144,n)}function DS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function JE(n){let a;return n.forEach((c,u)=>{nx(c,u)&&(a||(a=[])).push(c)}),a||Xe}function nx(n,a){return!DS(a)&&wm(n)}function NA(n){let a=JE(n),c=vZ(n);return c?bo(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=JE(a)),g}function Ps(n,a,c,u,_){return _f(kf(16,n),a,c,u,_)}function CS(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Vr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=Ps(n.symbol,n.members,n.callSignatures,gt(a)?a:Xe,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function NS(n,a){let c;for(let u=n;u;u=u.parent){if(ch(u)&&u.locals&&!Rh(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!wp(u))break;case 267:let _=Tr(u);if(c=a(_?.exports||K,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((Tr(u).members||K).forEach((T,M)=>{T.flags&788968&&(g||(g=oa())).set(M,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 bb(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=qi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),M=NS(a,(sn,rr,Mn,an)=>an),W=`${u?0:1}|${M&&is(M)}|${c}`;if(T.has(W))return T.get(W);let V=ba(n),te=_.get(V);te||_.set(V,te=[]);let ye=NS(a,_e);return T.set(W,ye),ye;function _e(sn,rr,Mn){if(!yf(te,sn))return;let an=At(sn,rr,Mn);return te.pop(),an}function je(sn,rr){return!qE(sn,a,rr)||!!bb(sn.parent,a,ry(rr),u,_)}function mt(sn,rr,Mn){return(n===(rr||sn)||es(n)===es(rr||sn))&&!gt(sn.declarations,Zd)&&(Mn||je(es(sn),c))}function At(sn,rr,Mn){return mt(sn.get(n.escapedName),void 0,rr)?[n]:Gc(sn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(S6(On)&&a&&sc(Gn(a)))&&(!u||gt(On.declarations,sE))&&(!Mn||!gt(On.declarations,pie))&&(rr||!dl(On,281))){let Ln=Fc(On),$n=rn(On,Ln,rr);if($n)return $n}if(On.escapedName===n.escapedName&&On.exportSymbol&&mt(es(On.exportSymbol),void 0,rr))return[n]})||(sn===be?rn(tt,tt,rr):void 0)}function rn(sn,rr,Mn){if(mt(sn,rr,Mn))return[sn];let an=xp(rr),On=an&&_e(an,!0);if(On&&je(sn,ry(c)))return[sn].concat(On)}}function qE(n,a,c){let u=!1;return NS(a,_=>{let g=es(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!dl(g,281);return g=T?Fc(g):g,(T?Ad(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 ut(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,M=!1;for(let W of n){let V=bb(W,a,u,!1);if(V){T=W;let _e=Nu(V[0],_);if(_e)return _e}if(g&>(W.declarations,Zd)){if(_){M=!0;continue}return{accessibility:0}}let te=KE(W,a,u),ye=Mr(te,a,c,c===W?ry(u):u,_,g);if(ye)return ye}if(M)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 M=Zi(a);if(T!==M)return{accessibility:2,errorSymbolName:Si(n,a,c),errorModuleName:Si(T),errorNode:or(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&&Tr(a)}function _a(n){return Ld(n)||n.kind===312&&wp(n)}function Zd(n){return DF(n)||n.kind===312&&wp(n)}function Nu(n,a){let c;if(!oo(Vr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,M;if(!o_(g)){let W=gA(g);if(W&&!$r(W,32)&&o_(W.parent))return _(g,W);if(Oi(g)&&Ll(g.parent.parent)&&!$r(g.parent.parent,32)&&o_(g.parent.parent.parent))return _(g,g.parent.parent);if(CF(g)&&!$r(g,32)&&o_(g.parent))return _(g,g);if(Xa(g)){if(n.flags&2097152&&or(g)&&((T=g.parent)!=null&&T.parent)&&Oi(g.parent.parent)&&((M=g.parent.parent.parent)!=null&&M.parent)&&Ll(g.parent.parent.parent.parent)&&!$r(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&o_(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let V=Fn(g,Ll);return $r(V,32)?!0:o_(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&&!Yh(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 Eb(n,a){let c=wf(n),u=Fp(n),_=gl(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&O0(u)&&ki(Tr(wu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&Nu(_,!0)||{accessibility:1,errorSymbolName:fc(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 _?M(_).getText():_N(M);function M(W){let V=T(n,c,a,g),te=a?.kind===312?YK():oS(),ye=a&&Gn(a);return te.writeNode(4,V,ye,W),W}}function Ph(n,a,c=0,u,_){return _?g(_).getText():_N(g);function g(T){let M;c&262144?M=u===1?185:184:M=u===1?180:179;let W=Et.signatureToSignatureDeclaration(n,M,a,PA(c)|70221824|512),V=Nw(),te=a&&Gn(a);return V.writeNode(4,W,te,Oj(T)),T}}function Vn(n,a,c=1064960,u=tk("")){let _=B.noErrorTruncation||c&1,g=Et.typeToTypeNode(n,a,PA(c)|70221824|(_?1:0));if(g===void 0)return R.fail("should always get typenode");let T=n!==Bt?oS():XK(),M=a&&Gn(a);T.writeNode(4,g,M,u);let W=u.getText(),V=_?q6*2:yk*2;return V&&W&&W.length>=V?W.substr(0,V-3)+"...":W}function rx(n,a){let c=Tb(n.symbol)?Vn(n,n.symbol.valueDeclaration):Vn(n),u=Tb(a.symbol)?Vn(a,a.symbol.valueDeclaration):Vn(a);return c===u&&(c=Sb(n),u=Sb(a)),[c,u]}function Sb(n){return Vn(n,void 0,64)}function Tb(n){return n&&!!n.valueDeclaration&&ht(n.valueDeclaration)&&!zf(n.valueDeclaration)}function PA(n=0){return n&848330095}function PS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Wf(n.symbol)||!!(n.flags&524288)&&!!(Lr(n)&16777216))}function U_(){return{typeToTypeNode:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>u(ot,ui)),indexInfoToIndexSignatureDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>te(ot,ui,void 0)),signatureToSignatureDeclaration:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>ye(ot,Te,Ai)),symbolToEntityName:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>fo(ot,Ai,Te,!1)),symbolToExpression:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>Cc(ot,Ai,Te)),symbolToTypeParameterDeclarations:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>On(ot,ui)),symbolToParameterDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>rn(ot,ui)),typeParameterToDeclaration:(ot,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>mt(ot,ui)),symbolTableToDeclarationStatements:(ot,Te,Cn,Dr,ui)=>a(Te,Cn,Dr,Ai=>yl(ot,Ai,ui)),symbolToNode:(ot,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>n(ot,Ai,Te))};function n(ot,Te,Cn){if(Te.flags&1073741824){if(ot.valueDeclaration){let ui=No(ot.valueDeclaration);if(ui&&Ya(ui))return ui}let Dr=qi(ot).nameType;if(Dr&&Dr.flags&9216)return Te.enclosingDeclaration=Dr.symbol.valueDeclaration,L.createComputedPropertyName(Cc(Dr.symbol,Te,Cn))}return Cc(ot,Te,Cn)}function a(ot,Te,Cn,Dr){R.assert(ot===void 0||(ot.flags&16)===0);let ui=Cn?.trackSymbol?Cn.moduleResolverHost:Te&134217728?KGe(e):void 0,Ai={enclosingDeclaration:ot,flags:Te||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,ui);let Ii=Dr(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?q6:yk)}function u(ot,Te){let Cn=Te.flags,Dr=_(ot,Te);return Te.flags=Cn,Dr}function _(ot,Te){var Cn,Dr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=Te.flags&8388608;if(Te.flags&=-8388609,!ot){if(!(Te.flags&262144)){Te.encounteredError=!0;return}return Te.approximateLength+=3,L.createKeywordTypeNode(133)}if(Te.flags&536870912||(ot=d_(ot)),ot.flags&1)return ot.aliasSymbol?L.createTypeReferenceNode(Qn(ot.aliasSymbol),W(ot.aliasTypeArguments,Te)):ot===Bt?cP(L.createKeywordTypeNode(133),3,"unresolved"):(Te.approximateLength+=3,L.createKeywordTypeNode(ot===dn?141:133));if(ot.flags&2)return L.createKeywordTypeNode(159);if(ot.flags&4)return Te.approximateLength+=6,L.createKeywordTypeNode(154);if(ot.flags&8)return Te.approximateLength+=6,L.createKeywordTypeNode(150);if(ot.flags&64)return Te.approximateLength+=6,L.createKeywordTypeNode(163);if(ot.flags&16&&!ot.aliasSymbol)return Te.approximateLength+=7,L.createKeywordTypeNode(136);if(ot.flags&1056){if(ot.symbol.flags&8){let An=Cu(ot.symbol),Zr=xo(An,Te,788968);if($s(An)===ot)return Zr;let Gi=vl(ot.symbol);return Yp(Gi,0)?bi(Zr,L.createTypeReferenceNode(Gi,void 0)):og(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))):R.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return xo(ot.symbol,Te,788968)}if(ot.flags&128)return Te.approximateLength+=ot.value.length+2,L.createLiteralTypeNode(dr(L.createStringLiteral(ot.value,!!(Te.flags&268435456)),16777216));if(ot.flags&256){let An=ot.value;return Te.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(ot.flags&2048)return Te.approximateLength+=z0(ot.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(ot.value));if(ot.flags&512)return Te.approximateLength+=ot.intrinsicName.length,L.createLiteralTypeNode(ot.intrinsicName==="true"?L.createTrue():L.createFalse());if(ot.flags&8192){if(!(Te.flags&1048576)){if(ut(ot.symbol,Te.enclosingDeclaration))return Te.approximateLength+=6,xo(ot.symbol,Te,111551);Te.tracker.reportInaccessibleUniqueSymbolError&&Te.tracker.reportInaccessibleUniqueSymbolError()}return Te.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(ot.flags&16384)return Te.approximateLength+=4,L.createKeywordTypeNode(116);if(ot.flags&32768)return Te.approximateLength+=9,L.createKeywordTypeNode(157);if(ot.flags&65536)return Te.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(ot.flags&131072)return Te.approximateLength+=5,L.createKeywordTypeNode(146);if(ot.flags&4096)return Te.approximateLength+=6,L.createKeywordTypeNode(155);if(ot.flags&67108864)return Te.approximateLength+=6,L.createKeywordTypeNode(151);if(tP(ot))return Te.flags&4194304&&(!Te.encounteredError&&!(Te.flags&32768)&&(Te.encounteredError=!0),(Dr=(Cn=Te.tracker).reportInaccessibleThisError)==null||Dr.call(Cn)),Te.approximateLength+=4,L.createThisTypeNode();if(!ui&&ot.aliasSymbol&&(Te.flags&16384||oe(ot.aliasSymbol,Te.enclosingDeclaration))){let An=W(ot.aliasTypeArguments,Te);return DS(ot.aliasSymbol.escapedName)&&!(ot.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Nn(An)===1&&ot.aliasSymbol===qo.symbol?L.createArrayTypeNode(An[0]):xo(ot.aliasSymbol,Te,788968,An)}let Ai=Lr(ot);if(Ai&4)return R.assert(!!(ot.flags&524288)),ot.node?Xt(ot,Wn):Wn(ot);if(ot.flags&262144||Ai&3){if(ot.flags&262144&&zo(Te.inferTypeParameters,ot)){Te.approximateLength+=vl(ot.symbol).length+6;let Zr,Gi=Pu(ot);if(Gi){let co=jwe(ot,!0);co&&py(Gi,co)||(Te.approximateLength+=9,Zr=Gi&&u(Gi,Te))}return L.createInferTypeNode(je(ot,Te,Zr))}if(Te.flags&4&&ot.flags&262144){let Zr=Wo(ot,Te);return Te.approximateLength+=vr(Zr).length,L.createTypeReferenceNode(L.createIdentifier(vr(Zr)),void 0)}if(ot.symbol)return xo(ot.symbol,Te,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?nC(ot.types):ot.types;if(Nn(An)===1)return u(An[0],Te);let Zr=W(An,Te,!0);if(Zr&&Zr.length>0)return ot.flags&1048576?L.createUnionTypeNode(Zr):L.createIntersectionTypeNode(Zr);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(Ai&48)return R.assert(!!(ot.flags&524288)),Qt(ot);if(ot.flags&4194304){let An=ot.type;Te.approximateLength+=6;let Zr=u(An,Te);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,(la,Ec)=>L.createTemplateLiteralTypeSpan(u(la,Te),(EcIi(An));if(ot.flags&33554432){let An=u(ot.baseType,Te),Zr=GM(ot)&&Sge("NoInfer",!1);return Zr?xo(Zr,Te,788968,[An]):An}return R.fail("Should be unreachable.");function Ii(An){let Zr=u(An.checkType,Te);if(Te.approximateLength+=15,Te.flags&4&&An.root.isDistributive&&!(An.checkType.flags&262144)){let Cl=mf(Ka(262144,"T")),as=Wo(Cl,Te),Nc=L.createTypeReferenceNode(as);Te.approximateLength+=37;let Ks=UA(An.root.checkType,Cl,An.mapper),__=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let Ze=u(io(An.root.extendsType,Ks),Te);Te.inferTypeParameters=__;let vt=zr(io(Ti(An.root.node.trueType),Ks)),$t=zr(io(Ti(An.root.node.falseType),Ks));return L.createConditionalTypeNode(Zr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Nc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(as)),u(An.checkType,Te),L.createConditionalTypeNode(Nc,Ze,vt,$t),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}let Gi=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let co=u(An.extendsType,Te);Te.inferTypeParameters=Gi;let la=zr(i0(An)),Ec=zr(o0(An));return L.createConditionalTypeNode(Zr,co,la,Ec)}function zr(An){var Zr,Gi,co;return An.flags&1048576?(Zr=Te.visitedTypes)!=null&&Zr.has(yu(An))?(Te.flags&131072||(Te.encounteredError=!0,(co=(Gi=Te.tracker)==null?void 0:Gi.reportCyclicStructureError)==null||co.call(Gi)),g(Te)):Xt(An,la=>u(la,Te)):u(An,Te)}function Ar(An){return!!R8(An)}function it(An){return!!An.target&&Ar(An.target)&&!Ar(An)}function kt(An){var Zr;R.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,la,Ec,Cl=!cC(An)&&!(wA(An).flags&2)&&Te.flags&4&&!(hf(An).flags&262144&&((Zr=Pu(hf(An)))==null?void 0:Zr.flags)&4194304);if(cC(An)){if(it(An)&&Te.flags&4){let vt=mf(Ka(262144,"T")),$t=Wo(vt,Te);Ec=L.createTypeReferenceNode($t)}la=L.createTypeOperatorNode(143,Ec||u(wA(An),Te))}else if(Cl){let vt=mf(Ka(262144,"T")),$t=Wo(vt,Te);Ec=L.createTypeReferenceNode($t),la=Ec}else la=u(hf(An),Te);let as=je(l_(An),Te,la),Nc=An.declaration.nameType?u(lv(An),Te):void 0,Ks=u(Vb(ly(An),!!(wh(An)&4)),Te),__=L.createMappedTypeNode(Gi,as,Nc,co,Ks,void 0);Te.approximateLength+=10;let Ze=dr(__,1);if(it(An)&&Te.flags&4){let vt=io(Pu(Ti(An.declaration.typeParameter.constraint.type))||un,An.mapper);return L.createConditionalTypeNode(u(wA(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Ec.typeName),vt.flags&2?void 0:u(vt,Te))),Ze,L.createKeywordTypeNode(146))}else if(Cl)return L.createConditionalTypeNode(u(hf(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Ec.typeName),L.createTypeOperatorNode(143,u(wA(An),Te)))),Ze,L.createKeywordTypeNode(146));return Ze}function Qt(An){var Zr,Gi;let co=An.id,la=An.symbol;if(la){if(!!(Lr(An)&8388608)){let Ks=An.node;if(QI(Ks)&&Ti(Ks)===An){let __=Wl(Te,Ks);if(__)return __}return(Zr=Te.visitedTypes)!=null&&Zr.has(co)?g(Te):Xt(An,ln)}let as=PS(An)?788968:111551;if($_(la.valueDeclaration))return xo(la,Te,as);if(la.flags&32&&!lZ(la)&&!(la.valueDeclaration&&di(la.valueDeclaration)&&Te.flags&2048&&(!Ac(la.valueDeclaration)||ki(la,Te.enclosingDeclaration,as,!1).accessibility!==0))||la.flags&896||Ec())return xo(la,Te,as);if((Gi=Te.visitedTypes)!=null&&Gi.has(co)){let Nc=KB(An);return Nc?xo(Nc,Te,788968):g(Te)}else return Xt(An,ln)}else return ln(An);function Ec(){var Cl;let as=!!(la.flags&8192)&>(la.declarations,Ks=>na(Ks)),Nc=!!(la.flags&16)&&(la.parent||gn(la.declarations,Ks=>Ks.parent.kind===312||Ks.parent.kind===268));if(as||Nc)return(!!(Te.flags&4096)||((Cl=Te.visitedTypes)==null?void 0:Cl.has(co)))&&(!(Te.flags&8)||ut(la,Te.enclosingDeclaration))}}function Xt(An,Zr){var Gi,co,la;let Ec=An.id,Cl=Lr(An)&16&&An.symbol&&An.symbol.flags&32,as=Lr(An)&4&&An.node?"N"+is(An.node):An.flags&16777216?"N"+is(An.root.node):An.symbol?(Cl?"+":"")+ba(An.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),as&&!Te.symbolDepth&&(Te.symbolDepth=new Map);let Nc=Te.enclosingDeclaration&&Qr(Te.enclosingDeclaration),Ks=`${yu(An)}|${Te.flags}`;Nc&&(Nc.serializedTypes||(Nc.serializedTypes=new Map));let __=(Gi=Nc?.serializedTypes)==null?void 0:Gi.get(Ks);if(__)return(co=__.trackedSymbols)==null||co.forEach(([Br,zi,wo])=>Te.tracker.trackSymbol(Br,zi,wo)),__.truncating&&(Te.truncating=!0),Te.approximateLength+=__.addedLength,bn(__.node);let Ze;if(as){if(Ze=Te.symbolDepth.get(as)||0,Ze>10)return g(Te);Te.symbolDepth.set(as,Ze+1)}Te.visitedTypes.add(Ec);let vt=Te.trackedSymbols;Te.trackedSymbols=void 0;let $t=Te.approximateLength,Hn=Zr(An),Ir=Te.approximateLength-$t;return!Te.reportedDiagnostic&&!Te.encounteredError&&((la=Nc?.serializedTypes)==null||la.set(Ks,{node:Hn,truncating:Te.truncating,addedLength:Ir,trackedSymbols:Te.trackedSymbols})),Te.visitedTypes.delete(Ec),as&&Te.symbolDepth.set(as,Ze),Te.trackedSymbols=vt,Hn;function bn(Br){return!qs(Br)&&Ro(Br)===Br?Br:at(L.cloneNode(Sn(Br,bn,void 0,hr)),Br)}function hr(Br,zi,wo,pa,fa){return Br&&Br.length===0?at(L.createNodeArray(void 0,Br.hasTrailingComma),Br):zn(Br,zi,wo,pa,fa)}}function ln(An){if(Hu(An)||An.containsError)return kt(An);let Zr=c_(An);if(!Zr.properties.length&&!Zr.indexInfos.length){if(!Zr.callSignatures.length&&!Zr.constructSignatures.length)return Te.approximateLength+=2,dr(L.createTypeLiteralNode(void 0),1);if(Zr.callSignatures.length===1&&!Zr.constructSignatures.length){let Cl=Zr.callSignatures[0];return ye(Cl,184,Te)}if(Zr.constructSignatures.length===1&&!Zr.callSignatures.length){let Cl=Zr.constructSignatures[0];return ye(Cl,185,Te)}}let Gi=Vr(Zr.constructSignatures,Cl=>!!(Cl.flags&4));if(gt(Gi)){let Cl=mn(Gi,zA);return Zr.callSignatures.length+(Zr.constructSignatures.length-Gi.length)+Zr.indexInfos.length+(Te.flags&2048?bv(Zr.properties,Nc=>!(Nc.flags&4194304)):Nn(Zr.properties))&&Cl.push(CS(Zr)),u(ga(Cl),Te)}let co=Te.flags;Te.flags|=4194304;let la=lo(Zr);Te.flags=co;let Ec=L.createTypeLiteralNode(la);return Te.approximateLength+=2,dr(Ec,Te.flags&1024?0:1),Ec}function Wn(An){let Zr=Hs(An);if(An.target===qo||An.target===Qo){if(Te.flags&2){let la=u(Zr[0],Te);return L.createTypeReferenceNode(An.target===qo?"Array":"ReadonlyArray",[la])}let Gi=u(Zr[0],Te),co=L.createArrayTypeNode(Gi);return An.target===qo?co:L.createTypeOperatorNode(148,co)}else if(An.target.objectFlags&8){if(Zr=Mc(Zr,(Gi,co)=>Vb(Gi,!!(An.target.elementFlags[co]&2))),Zr.length>0){let Gi=dv(An),co=W(Zr.slice(0,Gi),Te);if(co){let{labeledElementDeclarations:la}=An.target;for(let Cl=0;Cl0){let Nc=(An.target.typeParameters||Xe).length;Ec=W(Zr.slice(co,Nc),Te)}let Cl=Te.flags;Te.flags|=16;let as=xo(An.symbol,Te,788968,Ec);return Te.flags=Cl,la?bi(la,as):as}}}function bi(An,Zr){if(og(An)){let Gi=An.typeArguments,co=An.qualifier;co&&(Fe(co)?Gi!==NT(co)&&(co=By(L.cloneNode(co),Gi)):Gi!==NT(co.right)&&(co=L.updateQualifiedName(co,co.left,By(L.cloneNode(co.right),Gi)))),Gi=Zr.typeArguments;let la=pi(Zr);for(let Ec of la)co=co?L.createQualifiedName(co,Ec):Ec;return L.updateImportTypeNode(An,An.argument,An.attributes,co,Gi,An.isTypeOf)}else{let Gi=An.typeArguments,co=An.typeName;Fe(co)?Gi!==NT(co)&&(co=By(L.cloneNode(co),Gi)):Gi!==NT(co.right)&&(co=L.updateQualifiedName(co,co.left,By(L.cloneNode(co.right),Gi))),Gi=Zr.typeArguments;let la=pi(Zr);for(let Ec of la)co=L.createQualifiedName(co,Ec);return L.updateTypeReferenceNode(An,co,Gi)}}function pi(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(Te))return[L.createPropertySignature(void 0,"...",void 0,void 0)];let Zr=[];for(let la of An.callSignatures)Zr.push(ye(la,179,Te));for(let la of An.constructSignatures)la.flags&4||Zr.push(ye(la,180,Te));for(let la of An.indexInfos)Zr.push(te(la,Te,An.objectFlags&1024?g(Te):void 0));let Gi=An.properties;if(!Gi)return Zr;let co=0;for(let la of Gi){if(co++,Te.flags&2048){if(la.flags&4194304)continue;Tf(la)&6&&Te.tracker.reportPrivateInBaseOfClassExpression&&Te.tracker.reportPrivateInBaseOfClassExpression(Vi(la.escapedName))}if(c(Te)&&co+2!(Wn.flags&32768)),0);for(let Wn of ln){let bi=ye(Wn,173,Te,{name:zr,questionToken:Ar});Cn.push(Xt(bi))}if(ln.length||!Ar)return}let it;T(ot,Te)?it=g(Te):(ui&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(ot)),it=Ai?Es(Te,Ai,ot,Ii):L.createKeywordTypeNode(133),ui&&Te.reverseMappedStack.pop());let kt=m_(ot)?[L.createToken(148)]:void 0;kt&&(Te.approximateLength+=9);let Qt=L.createPropertySignature(kt,zr,Ar,it);Cn.push(Xt(Qt));function Xt(ln){var Wn;let bi=(Wn=ot.declarations)==null?void 0:Wn.find(pi=>pi.kind===355);if(bi){let pi=n2(bi.comment);pi&&hE(ln,[{kind:3,text:`* * `+pi.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ot.valueDeclaration&&ic(ln,ot.valueDeclaration);return ln}}function W(ot,Te,Cn){if(gt(ot)){if(c(Te))if(Cn){if(ot.length>2)return[u(ot[0],Te),L.createTypeReferenceNode(`... ${ot.length-2} more ...`,void 0),u(ot[ot.length-1],Te)]}else return[L.createTypeReferenceNode("...",void 0)];let ui=!(Te.flags&64)?Xp():void 0,Ai=[],Ii=0;for(let Br of ot){if(Ii++,c(Te)&&Ii+2{if(!Coe(Tr,([it],[kt])=>V(it,kt)))for(let[it,kt]of Tr)Ai[kt]=u(it,Te)}),Te.flags=Br}return Ai}}function V(ot,Te){return ot===Te||!!ot.symbol&&ot.symbol===Te.symbol||!!ot.aliasSymbol&&ot.aliasSymbol===Te.aliasSymbol}function te(ot,Te,Cn){let Dr=Yre(ot)||"x",ui=u(ot.keyType,Te),Ai=L.createParameterDeclaration(void 0,void 0,Dr,void 0,ui,void 0);return Cn||(Cn=u(ot.type||G,Te)),!ot.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Dr.length+4,L.createIndexSignature(ot.isReadonly?[L.createToken(148)]:void 0,[Ai],Cn)}function ye(ot,Te,Cn,Dr){var ui;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=_we(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,ei){R.assert(Cn.enclosingDeclaration);let Gi;Zr(Cn.enclosingDeclaration).fakeScopeForSignatureDeclaration===An?Gi=Cn.enclosingDeclaration:Cn.enclosingDeclaration.parent&&Zr(Cn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===An&&(Gi=Cn.enclosingDeclaration.parent),R.assertOptionalNode(Gi,Uo);let co=Gi?.locals??aa(),ca;if(ei((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=Eh.createBlock(Xe);Zr(os).fakeScopeForSignatureDeclaration=An,os.locals=co;let Dc=Cn.enclosingDeclaration;Va(os,Dc),Cn.enclosingDeclaration=os,it=()=>{Cn.enclosingDeclaration=Dc,Dl()}}};var kt=lo;lo("params",An=>{for(let ei of Tr)An(ei.escapedName,ei)}),Cn.flags&4&&lo("typeParams",An=>{for(let ei of ot.typeParameters??Xe){let Gi=Wo(ei,Cn).escapedText;An(Gi,ei.symbol)}})}let Qt=(gt(Tr,lo=>lo!==Tr[Tr.length-1]&&!!(Tl(lo)&32768))?ot.parameters:Tr).map(lo=>rn(lo,Cn,Te===176,Dr?.privateSymbolVisitor,Dr?.bundledImports)),Xt=Cn.flags&33554432?void 0:_e(ot,Cn);Xt&&Qt.unshift(Xt);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?cr(L.createIdentifier(Wn.parameterName),16777216):L.createThisTypeNode(),ei=Wn.type&&u(Wn.type,Cn);ln=L.createTypePredicateNode(lo,An,ei)}else{let lo=ds(ot);lo&&!(Ai&&xt(lo))?ln=Oa(Cn,lo,ot,Dr?.privateSymbolVisitor,Dr?.bundledImports):Ai||(ln=L.createKeywordTypeNode(133))}let bi=Dr?.modifiers;if(Te===185&&ot.flags&4){let lo=x_(bi);bi=L.createModifiersFromModifierFlags(lo|64)}let pi=Te===179?L.createCallSignature(Ii,Qt,ln):Te===180?L.createConstructSignature(Ii,Qt,ln):Te===173?L.createMethodSignature(bi,Dr?.name??L.createIdentifier(""),Dr?.questionToken,Ii,Qt,ln):Te===174?L.createMethodDeclaration(bi,void 0,Dr?.name??L.createIdentifier(""),void 0,Ii,Qt,ln,void 0):Te===176?L.createConstructorDeclaration(bi,Qt,void 0):Te===177?L.createGetAccessorDeclaration(bi,Dr?.name??L.createIdentifier(""),Qt,ln,void 0):Te===178?L.createSetAccessorDeclaration(bi,Dr?.name??L.createIdentifier(""),Qt,void 0):Te===181?L.createIndexSignature(bi,Qt,ln):Te===324?L.createJSDocFunctionType(Qt,ln):Te===184?L.createFunctionTypeNode(Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Te===185?L.createConstructorTypeNode(bi,Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Te===262?L.createFunctionDeclaration(bi,void 0,Dr?.name?ta(Dr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,void 0):Te===218?L.createFunctionExpression(bi,void 0,Dr?.name?ta(Dr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,L.createBlock([])):Te===219?L.createArrowFunction(bi,Ii,Qt,ln,void 0,L.createBlock([])):R.assertNever(Te);if(Br&&(pi.typeArguments=L.createNodeArray(Br)),((ui=ot.declaration)==null?void 0:ui.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(` -`);iP(pi,3,lo,!0)}return it?.(),pi}function _e(ot,Te){if(ot.thisParameter)return rn(ot.thisParameter,Te);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),Te))}}function je(ot,Te,Cn){let Dr=Te.flags;Te.flags&=-513;let ui=L.createModifiersFromModifierFlags(aye(ot)),Ai=Wo(ot,Te),Ii=OA(ot),Br=Ii&&u(Ii,Te);return Te.flags=Dr,L.createTypeParameterDeclaration(ui,Ai,Cn,Br)}function mt(ot,Te,Cn=Pu(ot)){let Dr=Cn&&u(Cn,Te);return je(ot,Te,Dr)}function At(ot){let Te=dl(ot,169);if(Te)return Te;if(!dh(ot))return dl(ot,348)}function rn(ot,Te,Cn,Dr,ui){let Ai=At(ot),Ii=sr(ot);Ai&&i4e(Ai)&&(Ii=Bb(Ii));let Br=Es(Te,Ii,ot,Te.enclosingDeclaration,Dr,ui),Tr=!(Te.flags&8192)&&Cn&&Ai&&Am(Ai)?mn(v0(Ai),L.cloneNode):void 0,kt=Ai&&Jh(Ai)||Tl(ot)&32768?L.createToken(26):void 0,Qt=sn(ot,Ai,Te),ln=Ai&&h8(Ai)||Tl(ot)&16384?L.createToken(58):void 0,Wn=L.createParameterDeclaration(Tr,kt,Qt,ln,Br,void 0);return Te.approximateLength+=vl(ot).length+3,Wn}function sn(ot,Te,Cn){return Te&&Te.name?Te.name.kind===80?cr(L.cloneNode(Te.name),16777216):Te.name.kind===166?cr(L.cloneNode(Te.name.right),16777216):Dr(Te.name):vl(ot);function Dr(ui){return Ai(ui);function Ai(Ii){Cn.tracker.canTrackSymbol&&Xa(Ii)&&qhe(Ii)&&nr(Ii.expression,Cn.enclosingDeclaration,Cn);let Br=Sn(Ii,Ai,void 0,void 0,Ai);return qa(Br)&&(Br=L.updateBindingElement(Br,Br.dotDotDotToken,Br.propertyName,Br.name,void 0)),qs(Br)||(Br=L.cloneNode(Br)),cr(Br,16777217)}}}function nr(ot,Te,Cn){if(!Cn.tracker.canTrackSymbol)return;let Dr=Fp(ot),ui=gl(Dr,Dr.escapedText,1160127,void 0,void 0,!0);ui&&Cn.tracker.trackSymbol(ui,Te,111551)}function Mn(ot,Te,Cn,Dr){return Te.tracker.trackSymbol(ot,Te.enclosingDeclaration,Cn),an(ot,Te,Cn,Dr)}function an(ot,Te,Cn,Dr){let ui;return!(ot.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.flags&134217728)?(ui=R.checkDefined(Ii(ot,Cn,!0)),R.assert(ui&&ui.length>0)):ui=[ot],ui;function Ii(Br,Tr,it){let kt=vb(Br,Te.enclosingDeclaration,Tr,!!(Te.flags&128)),Qt;if(!kt||qE(kt[0],Te.enclosingDeclaration,kt.length===1?Tr:ny(Tr))){let ln=KE(kt?kt[0]:Br,Te.enclosingDeclaration,Tr);if(Nn(ln)){Qt=ln.map(pi=>gt(pi.declarations,Qd)?jn(pi,Te):void 0);let Wn=ln.map((pi,lo)=>lo);Wn.sort(Xt);let bi=Wn.map(pi=>ln[pi]);for(let pi of bi){let lo=Ii(pi,ny(Tr),!1);if(lo){if(pi.exports&&pi.exports.get("export=")&&i_(pi.exports.get("export="),Br)){kt=lo;break}kt=lo.concat(kt||[_g(pi,Br)||Br]);break}}}}if(kt)return kt;if(it||!(Br.flags&6144))return!it&&!Dr&&gn(Br.declarations,Qd)?void 0:[Br];function Xt(ln,Wn){let bi=Qt[ln],pi=Qt[Wn];if(bi&&pi){let lo=Lp(pi);return Lp(bi)===lo?R3(bi)-R3(pi):lo?-1:1}return 0}}}function On(ot,Te){let Cn;return TC(ot).flags&524384&&(Cn=L.createNodeArray(mn(Nr(ot),ui=>mt(ui,Te)))),Cn}function Ln(ot,Te,Cn){var Dr;R.assert(ot&&0<=Te&&TeOb(kt,Tr.links.mapper)),Cn)}else Ii=On(ui,Cn)}return Ii}function Yn(ot){return MT(ot.objectType)?Yn(ot.objectType):ot}function jn(ot,Te,Cn){let Dr=dl(ot,312);if(!Dr){let it=Wl(ot.declarations,kt=>RA(kt,ot));it&&(Dr=dl(it,312))}if(Dr&&Dr.moduleName!==void 0)return Dr.moduleName;if(!Dr){if(Te.tracker.trackReferencedAmbientModule){let it=jr(ot.declarations,Pd);if(Nn(it))for(let kt of it)Te.tracker.trackReferencedAmbientModule(kt,ot)}if(bK.test(ot.escapedName))return ot.escapedName.substring(1,ot.escapedName.length-1)}if(!Te.enclosingDeclaration||!Te.tracker.moduleResolverHost)return bK.test(ot.escapedName)?ot.escapedName.substring(1,ot.escapedName.length-1):Gn(YV(ot)).fileName;let ui=Gn(Cl(Te.enclosingDeclaration)),Ai=Cn||ui?.impliedNodeFormat,Ii=DP(ui.path,Ai),Br=qi(ot),Tr=Br.specifierCache&&Br.specifierCache.get(Ii);if(!Tr){let it=!!Ds(B),{moduleResolverHost:kt}=Te.tracker,Qt=it?{...B,baseUrl:kt.getCommonSourceDirectory()}:B;Tr=Ga(fIe(ot,Yt,Qt,ui,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 Te=L.createIdentifier(Vi(ot.escapedName));return ot.parent?L.createQualifiedName($n(ot.parent),Te):Te}function xo(ot,Te,Cn,Dr){let ui=Mn(ot,Te,Cn,!(Te.flags&16384)),Ai=Cn===111551;if(gt(ui[0].declarations,Qd)){let Tr=ui.length>1?Br(ui,ui.length-1,1):void 0,it=Dr||Ln(ui,0,Te),kt=Gn(Cl(Te.enclosingDeclaration)),Qt=SF(ui[0]),Xt,ln;if((pu(B)===3||pu(B)===99)&&Qt?.impliedNodeFormat===99&&Qt.impliedNodeFormat!==kt?.impliedNodeFormat&&(Xt=jn(ui[0],Te,99),ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),Xt||(Xt=jn(ui[0],Te)),!(Te.flags&67108864)&&pu(B)!==1&&Xt.includes("/node_modules/")){let bi=Xt;if(pu(B)===3||pu(B)===99){let pi=kt?.impliedNodeFormat===99?1:99;Xt=jn(ui[0],Te,pi),Xt.includes("/node_modules/")?Xt=bi:ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(pi===99?"import":"require"))]))}ln||(Te.encounteredError=!0,Te.tracker.reportLikelyUnsafeImportRequiredError&&Te.tracker.reportLikelyUnsafeImportRequiredError(bi))}let Wn=L.createLiteralTypeNode(L.createStringLiteral(Xt));if(Te.tracker.trackExternalModuleSymbolOfImportTypeNode&&Te.tracker.trackExternalModuleSymbolOfImportTypeNode(ui[0]),Te.approximateLength+=Xt.length+10,!Tr||Xu(Tr)){if(Tr){let bi=Fe(Tr)?Tr:Tr.right;By(bi,void 0)}return L.createImportTypeNode(Wn,ln,Tr,it,Ai)}else{let bi=Yn(Tr),pi=bi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(Wn,ln,pi,it,Ai),bi.indexType)}}let Ii=Br(ui,ui.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 By(Tr,void 0),L.createTypeReferenceNode(Ii,it)}function Br(Tr,it,kt){let Qt=it===Tr.length-1?Dr:Ln(Tr,it,Te),Xt=Tr[it],ln=Tr[it-1],Wn;if(it===0)Te.flags|=16777216,Wn=XE(Xt,Te),Te.approximateLength+=(Wn?Wn.length:0)+1,Te.flags^=16777216;else if(ln&&xp(ln)){let pi=xp(ln);zc(pi,(lo,An)=>{if(i_(lo,Xt)&&!f8(An)&&An!=="export=")return Wn=Vi(An),!0})}if(Wn===void 0){let pi=Wl(Xt.declarations,No);if(pi&&Xa(pi)&&Xu(pi.expression)){let lo=Br(Tr,it-1,kt);return Xu(lo)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(lo)),L.createTypeQueryNode(pi.expression)):lo}Wn=XE(Xt,Te)}if(Te.approximateLength+=Wn.length+1,!(Te.flags&16)&&ln&&Nb(ln)&&Nb(ln).get(Xt.escapedName)&&i_(Nb(ln).get(Xt.escapedName),Xt)){let pi=Br(Tr,it-1,kt);return MT(pi)?L.createIndexedAccessTypeNode(pi,L.createLiteralTypeNode(L.createStringLiteral(Wn))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(pi,Qt),L.createLiteralTypeNode(L.createStringLiteral(Wn)))}let bi=cr(L.createIdentifier(Wn),16777216);if(Qt&&By(bi,L.createNodeArray(Qt)),bi.symbol=Xt,it>kt){let pi=Br(Tr,it-1,kt);return Xu(pi)?L.createQualifiedName(pi,bi):R.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bi}}function vo(ot,Te,Cn){let Dr=gl(Te.enclosingDeclaration,ot,788968,void 0,ot,!1);return Dr&&Dr.flags&262144?Dr!==Cn.symbol:!1}function Wo(ot,Te){var Cn,Dr;if(Te.flags&4&&Te.typeParameterNames){let Ai=Te.typeParameterNames.get(yu(ot));if(Ai)return Ai}let ui=fo(ot.symbol,Te,788968,!0);if(!(ui.kind&80))return L.createIdentifier("(Missing type parameter)");if(Te.flags&4){let Ai=ui.escapedText,Ii=((Cn=Te.typeParameterNamesByTextNextNameCount)==null?void 0:Cn.get(Ai))||0,Br=Ai;for(;(Dr=Te.typeParameterNamesByText)!=null&&Dr.has(Br)||vo(Br,Te,ot);)Ii++,Br=`${Ai}_${Ii}`;if(Br!==Ai){let Tr=DT(ui);ui=L.createIdentifier(Br),By(ui,Tr)}(Te.typeParameterNamesByTextNextNameCount||(Te.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Te.typeParameterNames||(Te.typeParameterNames=new Map)).set(yu(ot),ui),(Te.typeParameterNamesByText||(Te.typeParameterNamesByText=new Set)).add(Br)}return ui}function fo(ot,Te,Cn,Dr){let ui=Mn(ot,Te,Cn);return Dr&&ui.length!==1&&!Te.encounteredError&&!(Te.flags&65536)&&(Te.encounteredError=!0),Ai(ui,ui.length-1);function Ai(Ii,Br){let Tr=Ln(Ii,Br,Te),it=Ii[Br];Br===0&&(Te.flags|=16777216);let kt=XE(it,Te);Br===0&&(Te.flags^=16777216);let Qt=cr(L.createIdentifier(kt),16777216);return Tr&&By(Qt,L.createNodeArray(Tr)),Qt.symbol=it,Br>0?L.createQualifiedName(Ai(Ii,Br-1),Qt):Qt}}function Rc(ot,Te,Cn){let Dr=Mn(ot,Te,Cn);return ui(Dr,Dr.length-1);function ui(Ai,Ii){let Br=Ln(Ai,Ii,Te),Tr=Ai[Ii];Ii===0&&(Te.flags|=16777216);let it=XE(Tr,Te);Ii===0&&(Te.flags^=16777216);let kt=it.charCodeAt(0);if(D2(kt)&>(Tr.declarations,Qd))return L.createStringLiteral(jn(Tr,Te));if(Ii===0||_U(it,ce)){let Qt=cr(L.createIdentifier(it),16777216);return Br&&By(Qt,L.createNodeArray(Br)),Qt.symbol=Tr,Ii>0?L.createPropertyAccessExpression(ui(Ai,Ii-1),Qt):Qt}else{kt===91&&(it=it.substring(1,it.length-1),kt=it.charCodeAt(0));let Qt;if(D2(kt)&&!(Tr.flags&8)?Qt=L.createStringLiteral(Yf(it).replace(/\\./g,Xt=>Xt.substring(1)),kt===39):""+ +it===it&&(Qt=L.createNumericLiteral(+it)),!Qt){let Xt=cr(L.createIdentifier(it),16777216);Br&&By(Xt,L.createNodeArray(Br)),Xt.symbol=Tr,Qt=Xt}return L.createElementAccessExpression(ui(Ai,Ii-1),Qt)}}}function Vf(ot){let Te=No(ot);return Te?Xa(Te)?!!(po(Te.expression).flags&402653316):Xs(Te)?!!(po(Te.argumentExpression).flags&402653316):Da(Te):!1}function sp(ot){let Te=No(ot);return!!(Te&&Da(Te)&&(Te.singleQuote||!qs(Te)&&ao(uc(Te,!1),"'")))}function Pn(ot,Te){let Cn=!!Nn(ot.declarations)&&oo(ot.declarations,Vf),Dr=!!Nn(ot.declarations)&&oo(ot.declarations,sp),ui=!!(ot.flags&8192),Ai=Xn(ot,Te,Dr,Cn,ui);if(Ai)return Ai;let Ii=Vi(ot.escapedName);return B6(Ii,ns(B),Dr,Cn,ui)}function Xn(ot,Te,Cn,Dr,ui){let Ai=qi(ot).nameType;if(Ai){if(Ai.flags&384){let Ii=""+Ai.value;return!$p(Ii,ns(B))&&(Dr||!rg(Ii))?L.createStringLiteral(Ii,!!Cn):rg(Ii)&&ao(Ii,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-Ii))):B6(Ii,ns(B),Cn,Dr,ui)}if(Ai.flags&8192)return L.createComputedPropertyName(Rc(Ai.symbol,Te,111551))}}function ro(ot){let Te={...ot};return Te.typeParameterNames&&(Te.typeParameterNames=new Map(Te.typeParameterNames)),Te.typeParameterNamesByText&&(Te.typeParameterNamesByText=new Set(Te.typeParameterNamesByText)),Te.typeParameterSymbolList&&(Te.typeParameterSymbolList=new Set(Te.typeParameterSymbolList)),Te.tracker=new SK(Te,Te.tracker.inner,Te.tracker.moduleResolverHost),Te}function gr(ot,Te){return ot.declarations&&Vr(ot.declarations,Cn=>!!gd(Cn)&&(!Te||!!Fn(Cn,Dr=>Dr===Te)))}function Do(ot,Te){return!(kr(Te)&4)||!If(ot)||Nn(ot.typeArguments)>=Oh(Te.target.typeParameters)}function is(ot){for(;Zr(ot).fakeScopeForSignatureDeclaration;)ot=ot.parent;return ot}function Es(ot,Te,Cn,Dr,ui,Ai){if(!Ut(Te)&&Dr){let Tr=gr(Cn,is(Dr));if(Tr&&!Fs(Tr)&&!Zp(Tr)){let it=gd(Tr);if(Bd(it,Tr,Te)&&Do(it,Te)){let kt=wl(ot,it,ui,Ai);if(kt)return kt}}}let Ii=ot.flags;Te.flags&8192&&Te.symbol===Cn&&(!ot.enclosingDeclaration||gt(Cn.declarations,Tr=>Gn(Tr)===Gn(ot.enclosingDeclaration)))&&(ot.flags|=1048576);let Br=u(Te,ot);return ot.flags=Ii,Br}function Bd(ot,Te,Cn){let Dr=Ti(ot);return Dr===Cn?!0:To(Te)&&Te.questionToken?um(Cn,524288)===Dr:!1}function Oa(ot,Te,Cn,Dr,ui){if(!Ut(Te)&&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)===Te&&Do(Ai,Te)){let it=wl(ot,Ai,Dr,ui);if(it)return it}}}return u(Te,ot)}function Lu(ot,Te,Cn){let Dr=!1,ui=Fp(ot);if(ir(ot)&&(hT(ui)||$h(ui.parent)||Au(ui.parent)&&mj(ui.parent.left)&&hT(ui.parent.right)))return Dr=!0,{introducesError:Dr,node:ot};let Ai=wf(ot),Ii=js(ui,Ai,!0,!0);if(Ii&&(wi(Ii,Te.enclosingDeclaration,Ai,!1).accessibility!==0?Dr=!0:(Te.tracker.trackSymbol(Ii,Te.enclosingDeclaration,Ai),Cn?.(Ii)),Fe(ot))){let Br=$s(Ii),Tr=Ii.flags&262144?Wo(Br,Te):L.cloneNode(ot);return Tr.symbol=Ii,{introducesError:Dr,node:cr(xr(Tr,ot),16777216)}}return{introducesError:Dr,node:ot}}function wl(ot,Te,Cn,Dr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=!1,Ai=Gn(Te),Ii=Qe(Te,Br,ji);if(ui)return;return Ii===Te?at(L.cloneNode(Te),Te):Ii;function Br(Tr){if(xae(Tr)||Tr.kind===326)return L.createKeywordTypeNode(133);if(Rae(Tr))return L.createKeywordTypeNode(159);if(LR(Tr))return L.createUnionTypeNode([Qe(Tr.type,Br,ji),L.createLiteralTypeNode(L.createNull())]);if(sH(Tr))return L.createUnionTypeNode([Qe(Tr.type,Br,ji),L.createKeywordTypeNode(157)]);if(V4(Tr))return Qe(Tr.type,Br);if(j4(Tr))return L.createArrayTypeNode(Qe(Tr.type,Br,ji));if(FT(Tr))return L.createTypeLiteralNode(mn(Tr.jsDocPropertyTags,Xt=>{let ln=Fe(Xt.name)?Xt.name:Xt.name.right,Wn=Ue(Ti(Tr),ln.escapedText),bi=Wn&&Xt.typeExpression&&Ti(Xt.typeExpression.type)!==Wn?u(Wn,ot):void 0;return L.createPropertySignature(void 0,ln,Xt.isBracketed||Xt.typeExpression&&sH(Xt.typeExpression.type)?L.createToken(58):void 0,bi||Xt.typeExpression&&Qe(Xt.typeExpression.type,Br,ji)||L.createKeywordTypeNode(133))}));if(If(Tr)&&Fe(Tr.typeName)&&Tr.typeName.escapedText==="")return xr(L.createKeywordTypeNode(133),Tr);if((Gy(Tr)||If(Tr))&&HF(Tr))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,Qe(Tr.typeArguments[0],Br,ji))],Qe(Tr.typeArguments[1],Br,ji))]);if(kR(Tr))if(rR(Tr)){let Xt;return L.createConstructorTypeNode(void 0,zn(Tr.typeParameters,Br,ml),to(Tr.parameters,(ln,Wn)=>ln.name&&Fe(ln.name)&&ln.name.escapedText==="new"?(Xt=ln.type,void 0):L.createParameterDeclaration(void 0,it(ln),kt(ln,Wn),ln.questionToken,Qe(ln.type,Br,ji),void 0)),Qe(Xt||Tr.type,Br,ji)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(zn(Tr.typeParameters,Br,ml),mn(Tr.parameters,(Xt,ln)=>L.createParameterDeclaration(void 0,it(Xt),kt(Xt,ln),Xt.questionToken,Qe(Xt.type,Br,ji),void 0)),Qe(Tr.type,Br,ji)||L.createKeywordTypeNode(133));if(If(Tr)&&R2(Tr)&&(!Do(Tr,Ti(Tr))||qwe(Tr)||lt===dC(Tr,788968,!0)))return xr(u(Ti(Tr),ot),Tr);if(Ov(Tr)){let Xt=Zr(Tr).resolvedSymbol;return R2(Tr)&&Xt&&(!Tr.isTypeOf&&!(Xt.flags&788968)||!(Nn(Tr.typeArguments)>=Oh(Nr(Xt))))?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:Xt,node:ln}=Lu(Tr,ot,Cn);if(ui=ui||Xt,ln!==Tr)return ln}return Ai&&$I(Tr)&&ys(Ai,Tr.pos).line===ys(Ai,Tr.end).line&&cr(Tr,1),Sn(Tr,Br,void 0);function it(Xt){return Xt.dotDotDotToken||(Xt.type&&j4(Xt.type)?L.createToken(26):void 0)}function kt(Xt,ln){return Xt.name&&Fe(Xt.name)&&Xt.name.escapedText==="this"?"this":it(Xt)?"args":`arg${ln}`}function Qt(Xt,ln){if(Dr){if(ot.tracker&&ot.tracker.moduleResolverHost){let Wn=ube(Xt);if(Wn){let pi={getCanonicalFileName:Cd(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ot.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ot.tracker.moduleResolverHost.getCommonSourceDirectory()},lo=i6(pi,Wn);return L.createStringLiteral(lo)}}}else if(ot.tracker&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ey(ln,ln,void 0);Wn&&ot.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return ln}}}function yl(ot,Te,Cn){var Dr;let ui=us(L.createPropertyDeclaration,174,!0),Ai=us((Ct,Ir,fi,Jr)=>L.createPropertySignature(Ct,Ir,fi,Jr),173,!1),Ii=Te.enclosingDeclaration,Br=[],Tr=new Set,it=[],kt=Te;Te={...kt,usedSymbolNames:new Set(kt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Dr=kt.remappedSymbolReferences)==null?void 0:Dr.entries()),tracker:void 0};let Qt={...kt.tracker.inner,trackSymbol:(Ct,Ir,fi)=>{var Jr,ci;if((Jr=Te.remappedSymbolNames)!=null&&Jr.has(ba(Ct)))return!1;if(wi(Ct,Ir,fi,!1).accessibility===0){let sa=an(Ct,Te,fi);if(!(Ct.flags&4)){let Go=sa[0],Os=Gn(kt.enclosingDeclaration);gt(Go.declarations,ps=>Gn(ps)===Os)&&os(Go)}}else if((ci=kt.tracker.inner)!=null&&ci.trackSymbol)return kt.tracker.inner.trackSymbol(Ct,Ir,fi);return!1}};Te.tracker=new SK(Te,Qt,kt.tracker.moduleResolverHost),zc(ot,(Ct,Ir)=>{let fi=Vi(Ir);Bm(Ct,fi)});let Xt=!Cn,ln=ot.get("export=");return ln&&ot.size>1&&ln.flags&2098688&&(ot=aa(),ot.set("export=",ln)),ca(ot),ei(Br);function Wn(Ct){return!!Ct&&Ct.kind===80}function bi(Ct){return Pl(Ct)?jr(mn(Ct.declarationList.declarations,No),Wn):jr([No(Ct)],Wn)}function pi(Ct){let Ir=Vr(Ct,Ml),fi=Kl(Ct,ql),Jr=fi!==-1?Ct[fi]:void 0;if(Jr&&Ir&&Ir.isExportEquals&&Fe(Ir.expression)&&Fe(Jr.name)&&yr(Jr.name)===yr(Ir.expression)&&Jr.body&&N_(Jr.body)){let ci=jr(Ct,Go=>!!(du(Go)&32)),Qa=Jr.name,sa=Jr.body;if(Nn(ci)&&(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(ci,Go=>bi(Go)),Go=>L.createExportSpecifier(!1,void 0,Go))),void 0)]))),Ct=[...Ct.slice(0,fi),Jr,...Ct.slice(fi+1)]),!Vr(Ct,Go=>Go!==Jr&&YL(Go,Qa))){Br=[];let Go=!gt(sa.statements,Os=>Qr(Os,32)||Ml(Os)||Xl(Os));gn(sa.statements,Os=>{Ks(Os,Go?32:0)}),Ct=[...jr(Ct,Os=>Os!==Jr&&Os!==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,ci=>!Xl(ci)||!!ci.moduleSpecifier||!ci.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(Ir,ci=>ta(ci.exportClause,xf).elements)),void 0)]);let fi=jr(Ct,Jr=>Xl(Jr)&&!!Jr.moduleSpecifier&&!!Jr.exportClause&&xf(Jr.exportClause));if(Nn(fi)>1){let Jr=GC(fi,ci=>Da(ci.moduleSpecifier)?">"+ci.moduleSpecifier.text:">");if(Jr.length!==fi.length)for(let ci of Jr)ci.length>1&&(Ct=[...jr(Ct,Qa=>!ci.includes(Qa)),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(ci,Qa=>ta(Qa.exportClause,xf).elements)),ci[0].moduleSpecifier)])}return Ct}function An(Ct){let Ir=Kl(Ct,fi=>Xl(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&xf(fi.exportClause));if(Ir>=0){let fi=Ct[Ir],Jr=to(fi.exportClause.elements,ci=>{if(!ci.propertyName){let Qa=SL(Ct),sa=jr(Qa,Go=>YL(Ct[Go],ci.name));if(Nn(sa)&&oo(sa,Go=>uk(Ct[Go]))){for(let Go of sa)Ct[Go]=Gi(Ct[Go]);return}}return ci});Nn(Jr)?Ct[Ir]=L.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,L.updateNamedExports(fi.exportClause,Jr),fi.moduleSpecifier,fi.attributes):Sv(Ct,Ir)}return Ct}function ei(Ct){return Ct=pi(Ct),Ct=lo(Ct),Ct=An(Ct),Ii&&(Yi(Ii)&&wp(Ii)||ql(Ii))&&(!gt(Ct,s2)||!Tre(Ct)&>(Ct,uF))&&Ct.push(Gk(L)),Ct}function Gi(Ct){let Ir=(du(Ct)|32)&-129;return L.replaceModifiers(Ct,Ir)}function co(Ct){let Ir=du(Ct)&-33;return L.replaceModifiers(Ct,Ir)}function ca(Ct,Ir,fi){Ir||it.push(new Map),Ct.forEach(Jr=>{vc(Jr,!1,!!fi)}),Ir||(it[it.length-1].forEach(Jr=>{vc(Jr,!0,!!fi)}),it.pop())}function vc(Ct,Ir,fi){let Jr=es(Ct);if(Tr.has(ba(Jr)))return;if(Tr.add(ba(Jr)),!Ir||Nn(Ct.declarations)&>(Ct.declarations,Qa=>!!Fn(Qa,sa=>sa===Ii))){let Qa=Te;Te=ro(Te),Dl(Ct,Ir,fi),Te.reportedDiagnostic&&(kt.reportedDiagnostic=Te.reportedDiagnostic),Te.trackedSymbols&&(Qa.trackedSymbols?R.assert(Te.trackedSymbols===Qa.trackedSymbols):Qa.trackedSymbols=Te.trackedSymbols),Te=Qa}}function Dl(Ct,Ir,fi,Jr=Ct.escapedName){var ci,Qa,sa,Go,Os,ps;let Wa=Vi(Jr),xd=Jr==="default";if(Ir&&!(Te.flags&131072)&&CI(Wa)&&!xd){Te.encounteredError=!0;return}let Rd=xd&&!!(Ct.flags&-113||Ct.flags&16&&Nn(_s(sr(Ct))))&&!(Ct.flags&2097152),bu=!Rd&&!Ir&&CI(Wa)&&!xd;(Rd||bu)&&(Ir=!0);let Hl=(Ir?0:32)|(xd&&!Rd?2048:0),Dd=Ct.flags&1536&&Ct.flags&7&&Jr!=="export=",qu=Dd&&Rs(sr(Ct),Ct);if((Ct.flags&8208||qu)&&bn(sr(Ct),Ct,Bm(Ct,Wa),Hl),Ct.flags&524288&&__(Ct,Wa,Hl),Ct.flags&98311&&Jr!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!qu)if(fi)Aa(Ct)&&(bu=!1,Rd=!1);else{let rd=sr(Ct),Pp=Bm(Ct,Wa);if(rd.symbol&&rd.symbol!==Ct&&rd.symbol.flags&16&>(rd.symbol.declarations,z0)&&((ci=rd.symbol.members)!=null&&ci.size||(Qa=rd.symbol.exports)!=null&&Qa.size))Te.remappedSymbolReferences||(Te.remappedSymbolReferences=new Map),Te.remappedSymbolReferences.set(ba(rd.symbol),Ct),Dl(rd.symbol,Ir,fi,Jr),Te.remappedSymbolReferences.delete(ba(rd.symbol));else if(!(Ct.flags&16)&&Rs(rd,Ct))bn(rd,Ct,Pp,Hl);else{let hx=Ct.flags&2?qM(Ct)?2:1:(sa=Ct.parent)!=null&&sa.valueDeclaration&&Yi((Go=Ct.parent)==null?void 0:Go.valueDeclaration)?2:void 0,Z_=Rd||!(Ct.flags&4)?Pp:h_(Pp,Ct),Ub=Ct.declarations&&Vr(Ct.declarations,Z8=>Oi(Z8));Ub&&Vc(Ub.parent)&&Ub.parent.declarations.length===1&&(Ub=Ub.parent.parent);let Hb=(Os=Ct.declarations)==null?void 0:Os.find(wr);if(Hb&&ur(Hb.parent)&&Fe(Hb.parent.right)&&((ps=rd.symbol)!=null&&ps.valueDeclaration)&&Yi(rd.symbol.valueDeclaration)){let Z8=Pp===Hb.parent.right.escapedText?void 0:Hb.parent.right;Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z8,Pp)])),0),Te.tracker.trackSymbol(rd.symbol,Te.enclosingDeclaration,111551)}else{let Z8=at(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z_,void 0,Es(Te,rd,Ct,Ii,os,Cn))],hx)),Ub);Ks(Z8,Z_!==Pp?Hl&-33:Hl),Z_!==Pp&&!Ir&&(Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z_,Pp)])),0),bu=!1,Rd=!1)}}}if(Ct.flags&384&&Ar(Ct,Wa,Hl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&ur(Ct.valueDeclaration.parent)&&$c(Ct.valueDeclaration.parent.right)?Ei(Ct,Bm(Ct,Wa),Hl):pa(Ct,Bm(Ct,Wa),Hl)),(Ct.flags&1536&&(!Dd||$t(Ct))||qu)&&Hn(Ct,Wa,Hl),Ct.flags&64&&!(Ct.flags&32)&&Ze(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 rd of Ct.declarations){let Pp=hu(rd,rd.moduleSpecifier);Pp&&Ks(L.createExportDeclaration(void 0,rd.isTypeOnly,void 0,L.createStringLiteral(jn(Pp,Te))),0)}Rd?Ks(L.createExportAssignment(void 0,!1,L.createIdentifier(Bm(Ct,Wa))),0):bu&&Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Bm(Ct,Wa),Wa)])),0)}function os(Ct){if(gt(Ct.declarations,M0))return;R.assertIsDefined(it[it.length-1]),h_(Vi(Ct.escapedName),Ct);let Ir=!!(Ct.flags&2097152)&&!gt(Ct.declarations,fi=>!!Fn(fi,Xl)||vh(fi)||Zc(fi)&&!bh(fi.moduleReference));it[Ir?0:it.length-1].set(ba(Ct),Ct)}function Dc(Ct){return Yi(Ct)&&(wp(Ct)||Jf(Ct))||Pd(Ct)&&!E_(Ct)}function Ks(Ct,Ir){if(Am(Ct)){let fi=0,Jr=Te.enclosingDeclaration&&(qf(Te.enclosingDeclaration)?Gn(Te.enclosingDeclaration):Te.enclosingDeclaration);Ir&32&&Jr&&(Dc(Jr)||ql(Jr))&&uk(Ct)&&(fi|=32),Xt&&!(fi&32)&&(!Jr||!(Jr.flags&33554432))&&(gE(Ct)||Pl(Ct)||Ec(Ct)||Sc(Ct)||ql(Ct))&&(fi|=128),Ir&2048&&(Sc(Ct)||mu(Ct)||Ec(Ct))&&(fi|=2048),fi&&(Ct=L.replaceModifiers(Ct,fi|du(Ct)))}Br.push(Ct)}function __(Ct,Ir,fi){var Jr;let ci=rwe(Ct),Qa=qi(Ct).typeParameters,sa=mn(Qa,Rd=>mt(Rd,Te)),Go=(Jr=Ct.declarations)==null?void 0:Jr.find(qf),Os=ZL(Go?Go.comment||Go.parent.comment:void 0),ps=Te.flags;Te.flags|=8388608;let Wa=Te.enclosingDeclaration;Te.enclosingDeclaration=Go;let xd=Go&&Go.typeExpression&&Q0(Go.typeExpression)&&wl(Te,Go.typeExpression.type,os,Cn)||u(ci,Te);Ks(hE(L.createTypeAliasDeclaration(void 0,Bm(Ct,Ir),sa,xd),Os?[{kind:3,text:`* - * `+Os.replace(/\n/g,` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ot.valueDeclaration&&ac(ln,ot.valueDeclaration);return ln}}function W(ot,Te,Cn){if(gt(ot)){if(c(Te))if(Cn){if(ot.length>2)return[u(ot[0],Te),L.createTypeReferenceNode(`... ${ot.length-2} more ...`,void 0),u(ot[ot.length-1],Te)]}else return[L.createTypeReferenceNode("...",void 0)];let ui=!(Te.flags&64)?qp():void 0,Ai=[],Ii=0;for(let zr of ot){if(Ii++,c(Te)&&Ii+2{if(!Roe(Ar,([it],[kt])=>V(it,kt)))for(let[it,kt]of Ar)Ai[kt]=u(it,Te)}),Te.flags=zr}return Ai}}function V(ot,Te){return ot===Te||!!ot.symbol&&ot.symbol===Te.symbol||!!ot.aliasSymbol&&ot.aliasSymbol===Te.aliasSymbol}function te(ot,Te,Cn){let Dr=qre(ot)||"x",ui=u(ot.keyType,Te),Ai=L.createParameterDeclaration(void 0,void 0,Dr,void 0,ui,void 0);return Cn||(Cn=u(ot.type||G,Te)),!ot.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Dr.length+4,L.createIndexSignature(ot.isReadonly?[L.createToken(148)]:void 0,[Ai],Cn)}function ye(ot,Te,Cn,Dr){var ui;let Ai=Cn.flags&256;Ai&&(Cn.flags&=-257),Cn.approximateLength+=3;let Ii,zr;Cn.flags&32&&ot.target&&ot.mapper&&ot.target.typeParameters?zr=ot.target.typeParameters.map(lo=>u(io(lo,ot.mapper),Cn)):Ii=ot.typeParameters&&ot.typeParameters.map(lo=>mt(lo,Cn));let Ar=vwe(ot,!0)[0],it;if(Cn.enclosingDeclaration&&ot.declaration&&ot.declaration!==Cn.enclosingDeclaration&&!or(ot.declaration)&&(gt(Ar)||gt(ot.typeParameters))){let lo=function(An,Zr){R.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),R.assertOptionalNode(Gi,Ho);let co=Gi?.locals??oa(),la;if(Zr((as,Nc)=>{co.has(as)||(la=Tn(la,as),co.set(as,Nc))}),!la)return;let Ec=it;function Cl(){gn(la,as=>co.delete(as)),Ec?.()}if(Gi)it=Cl;else{let as=Eh.createBlock(Xe);Qr(as).fakeScopeForSignatureDeclaration=An,as.locals=co;let Nc=Cn.enclosingDeclaration;ja(as,Nc),Cn.enclosingDeclaration=as,it=()=>{Cn.enclosingDeclaration=Nc,Cl()}}};var kt=lo;lo("params",An=>{for(let Zr of Ar)An(Zr.escapedName,Zr)}),Cn.flags&4&&lo("typeParams",An=>{for(let Zr of ot.typeParameters??Xe){let Gi=Wo(Zr,Cn).escapedText;An(Gi,Zr.symbol)}})}let Qt=(gt(Ar,lo=>lo!==Ar[Ar.length-1]&&!!(Al(lo)&32768))?ot.parameters:Ar).map(lo=>rn(lo,Cn,Te===176,Dr?.privateSymbolVisitor,Dr?.bundledImports)),Xt=Cn.flags&33554432?void 0:_e(ot,Cn);Xt&&Qt.unshift(Xt);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?dr(L.createIdentifier(Wn.parameterName),16777216):L.createThisTypeNode(),Zr=Wn.type&&u(Wn.type,Cn);ln=L.createTypePredicateNode(lo,An,Zr)}else{let lo=us(ot);lo&&!(Ai&&xt(lo))?ln=Wa(Cn,lo,ot,Dr?.privateSymbolVisitor,Dr?.bundledImports):Ai||(ln=L.createKeywordTypeNode(133))}let bi=Dr?.modifiers;if(Te===185&&ot.flags&4){let lo=x_(bi);bi=L.createModifiersFromModifierFlags(lo|64)}let pi=Te===179?L.createCallSignature(Ii,Qt,ln):Te===180?L.createConstructSignature(Ii,Qt,ln):Te===173?L.createMethodSignature(bi,Dr?.name??L.createIdentifier(""),Dr?.questionToken,Ii,Qt,ln):Te===174?L.createMethodDeclaration(bi,void 0,Dr?.name??L.createIdentifier(""),void 0,Ii,Qt,ln,void 0):Te===176?L.createConstructorDeclaration(bi,Qt,void 0):Te===177?L.createGetAccessorDeclaration(bi,Dr?.name??L.createIdentifier(""),Qt,ln,void 0):Te===178?L.createSetAccessorDeclaration(bi,Dr?.name??L.createIdentifier(""),Qt,void 0):Te===181?L.createIndexSignature(bi,Qt,ln):Te===324?L.createJSDocFunctionType(Qt,ln):Te===184?L.createFunctionTypeNode(Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Te===185?L.createConstructorTypeNode(bi,Ii,Qt,ln??L.createTypeReferenceNode(L.createIdentifier(""))):Te===262?L.createFunctionDeclaration(bi,void 0,Dr?.name?ta(Dr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,void 0):Te===218?L.createFunctionExpression(bi,void 0,Dr?.name?ta(Dr.name,Fe):L.createIdentifier(""),Ii,Qt,ln,L.createBlock([])):Te===219?L.createArrowFunction(bi,Ii,Qt,ln,void 0,L.createBlock([])):R.assertNever(Te);if(zr&&(pi.typeArguments=L.createNodeArray(zr)),((ui=ot.declaration)==null?void 0:ui.kind)===330&&ot.declaration.parent.kind===346){let lo=fc(ot.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(An=>An.replace(/^\s+/," ")).join(` +`);cP(pi,3,lo,!0)}return it?.(),pi}function _e(ot,Te){if(ot.thisParameter)return rn(ot.thisParameter,Te);if(ot.declaration&&or(ot.declaration)){let Cn=iF(ot.declaration);if(Cn&&Cn.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,u(Ti(Cn.typeExpression),Te))}}function je(ot,Te,Cn){let Dr=Te.flags;Te.flags&=-513;let ui=L.createModifiersFromModifierFlags(iye(ot)),Ai=Wo(ot,Te),Ii=FA(ot),zr=Ii&&u(Ii,Te);return Te.flags=Dr,L.createTypeParameterDeclaration(ui,Ai,Cn,zr)}function mt(ot,Te,Cn=Pu(ot)){let Dr=Cn&&u(Cn,Te);return je(ot,Te,Dr)}function At(ot){let Te=dl(ot,169);if(Te)return Te;if(!dh(ot))return dl(ot,348)}function rn(ot,Te,Cn,Dr,ui){let Ai=At(ot),Ii=lr(ot);Ai&&l4e(Ai)&&(Ii=Gb(Ii));let zr=Es(Te,Ii,ot,Te.enclosingDeclaration,Dr,ui),Ar=!(Te.flags&8192)&&Cn&&Ai&&Am(Ai)?mn(b0(Ai),L.cloneNode):void 0,kt=Ai&&qh(Ai)||Al(ot)&32768?L.createToken(26):void 0,Qt=sn(ot,Ai,Te),ln=Ai&&v8(Ai)||Al(ot)&16384?L.createToken(58):void 0,Wn=L.createParameterDeclaration(Ar,kt,Qt,ln,zr,void 0);return Te.approximateLength+=vl(ot).length+3,Wn}function sn(ot,Te,Cn){return Te&&Te.name?Te.name.kind===80?dr(L.cloneNode(Te.name),16777216):Te.name.kind===166?dr(L.cloneNode(Te.name.right),16777216):Dr(Te.name):vl(ot);function Dr(ui){return Ai(ui);function Ai(Ii){Cn.tracker.canTrackSymbol&&Ya(Ii)&&Khe(Ii)&&rr(Ii.expression,Cn.enclosingDeclaration,Cn);let zr=Sn(Ii,Ai,void 0,void 0,Ai);return Xa(zr)&&(zr=L.updateBindingElement(zr,zr.dotDotDotToken,zr.propertyName,zr.name,void 0)),qs(zr)||(zr=L.cloneNode(zr)),dr(zr,16777217)}}}function rr(ot,Te,Cn){if(!Cn.tracker.canTrackSymbol)return;let Dr=Fp(ot),ui=gl(Dr,Dr.escapedText,1160127,void 0,void 0,!0);ui&&Cn.tracker.trackSymbol(ui,Te,111551)}function Mn(ot,Te,Cn,Dr){return Te.tracker.trackSymbol(ot,Te.enclosingDeclaration,Cn),an(ot,Te,Cn,Dr)}function an(ot,Te,Cn,Dr){let ui;return!(ot.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.flags&134217728)?(ui=R.checkDefined(Ii(ot,Cn,!0)),R.assert(ui&&ui.length>0)):ui=[ot],ui;function Ii(zr,Ar,it){let kt=bb(zr,Te.enclosingDeclaration,Ar,!!(Te.flags&128)),Qt;if(!kt||qE(kt[0],Te.enclosingDeclaration,kt.length===1?Ar:ry(Ar))){let ln=KE(kt?kt[0]:zr,Te.enclosingDeclaration,Ar);if(Nn(ln)){Qt=ln.map(pi=>gt(pi.declarations,Zd)?jn(pi,Te):void 0);let Wn=ln.map((pi,lo)=>lo);Wn.sort(Xt);let bi=Wn.map(pi=>ln[pi]);for(let pi of bi){let lo=Ii(pi,ry(Ar),!1);if(lo){if(pi.exports&&pi.exports.get("export=")&&i_(pi.exports.get("export="),zr)){kt=lo;break}kt=lo.concat(kt||[hg(pi,zr)||zr]);break}}}}if(kt)return kt;if(it||!(zr.flags&6144))return!it&&!Dr&&gn(zr.declarations,Zd)?void 0:[zr];function Xt(ln,Wn){let bi=Qt[ln],pi=Qt[Wn];if(bi&&pi){let lo=Lp(pi);return Lp(bi)===lo?C3(bi)-C3(pi):lo?-1:1}return 0}}}function On(ot,Te){let Cn;return xC(ot).flags&524384&&(Cn=L.createNodeArray(mn(Nr(ot),ui=>mt(ui,Te)))),Cn}function Ln(ot,Te,Cn){var Dr;R.assert(ot&&0<=Te&&TeWb(kt,Ar.links.mapper)),Cn)}else Ii=On(ui,Cn)}return Ii}function $n(ot){return kT(ot.objectType)?$n(ot.objectType):ot}function jn(ot,Te,Cn){let Dr=dl(ot,312);if(!Dr){let it=zl(ot.declarations,kt=>CA(kt,ot));it&&(Dr=dl(it,312))}if(Dr&&Dr.moduleName!==void 0)return Dr.moduleName;if(!Dr){if(Te.tracker.trackReferencedAmbientModule){let it=Vr(ot.declarations,Ld);if(Nn(it))for(let kt of it)Te.tracker.trackReferencedAmbientModule(kt,ot)}if(bK.test(ot.escapedName))return ot.escapedName.substring(1,ot.escapedName.length-1)}if(!Te.enclosingDeclaration||!Te.tracker.moduleResolverHost)return bK.test(ot.escapedName)?ot.escapedName.substring(1,ot.escapedName.length-1):Gn(YV(ot)).fileName;let ui=Gn(Pl(Te.enclosingDeclaration)),Ai=Cn||ui?.impliedNodeFormat,Ii=LP(ui.path,Ai),zr=qi(ot),Ar=zr.specifierCache&&zr.specifierCache.get(Ii);if(!Ar){let it=!!Cs(B),{moduleResolverHost:kt}=Te.tracker,Qt=it?{...B,baseUrl:kt.getCommonSourceDirectory()}:B;Ar=Va(gIe(ot,Yt,Qt,ui,kt,{importModuleSpecifierPreference:it?"non-relative":"project-relative",importModuleSpecifierEnding:it?"minimal":Ai===99?"js":void 0},{overrideImportMode:Cn})),zr.specifierCache??(zr.specifierCache=new Map),zr.specifierCache.set(Ii,Ar)}return Ar}function Qn(ot){let Te=L.createIdentifier(Vi(ot.escapedName));return ot.parent?L.createQualifiedName(Qn(ot.parent),Te):Te}function xo(ot,Te,Cn,Dr){let ui=Mn(ot,Te,Cn,!(Te.flags&16384)),Ai=Cn===111551;if(gt(ui[0].declarations,Zd)){let Ar=ui.length>1?zr(ui,ui.length-1,1):void 0,it=Dr||Ln(ui,0,Te),kt=Gn(Pl(Te.enclosingDeclaration)),Qt=AF(ui[0]),Xt,ln;if((pu(B)===3||pu(B)===99)&&Qt?.impliedNodeFormat===99&&Qt.impliedNodeFormat!==kt?.impliedNodeFormat&&(Xt=jn(ui[0],Te,99),ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),Xt||(Xt=jn(ui[0],Te)),!(Te.flags&67108864)&&pu(B)!==1&&Xt.includes("/node_modules/")){let bi=Xt;if(pu(B)===3||pu(B)===99){let pi=kt?.impliedNodeFormat===99?1:99;Xt=jn(ui[0],Te,pi),Xt.includes("/node_modules/")?Xt=bi:ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(pi===99?"import":"require"))]))}ln||(Te.encounteredError=!0,Te.tracker.reportLikelyUnsafeImportRequiredError&&Te.tracker.reportLikelyUnsafeImportRequiredError(bi))}let Wn=L.createLiteralTypeNode(L.createStringLiteral(Xt));if(Te.tracker.trackExternalModuleSymbolOfImportTypeNode&&Te.tracker.trackExternalModuleSymbolOfImportTypeNode(ui[0]),Te.approximateLength+=Xt.length+10,!Ar||Xu(Ar)){if(Ar){let bi=Fe(Ar)?Ar:Ar.right;By(bi,void 0)}return L.createImportTypeNode(Wn,ln,Ar,it,Ai)}else{let bi=$n(Ar),pi=bi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(Wn,ln,pi,it,Ai),bi.indexType)}}let Ii=zr(ui,ui.length-1,0);if(kT(Ii))return Ii;if(Ai)return L.createTypeQueryNode(Ii);{let Ar=Fe(Ii)?Ii:Ii.right,it=NT(Ar);return By(Ar,void 0),L.createTypeReferenceNode(Ii,it)}function zr(Ar,it,kt){let Qt=it===Ar.length-1?Dr:Ln(Ar,it,Te),Xt=Ar[it],ln=Ar[it-1],Wn;if(it===0)Te.flags|=16777216,Wn=XE(Xt,Te),Te.approximateLength+=(Wn?Wn.length:0)+1,Te.flags^=16777216;else if(ln&&xp(ln)){let pi=xp(ln);Gc(pi,(lo,An)=>{if(i_(lo,Xt)&&!h8(An)&&An!=="export=")return Wn=Vi(An),!0})}if(Wn===void 0){let pi=zl(Xt.declarations,No);if(pi&&Ya(pi)&&Xu(pi.expression)){let lo=zr(Ar,it-1,kt);return Xu(lo)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(lo)),L.createTypeQueryNode(pi.expression)):lo}Wn=XE(Xt,Te)}if(Te.approximateLength+=Wn.length+1,!(Te.flags&16)&&ln&&Pb(ln)&&Pb(ln).get(Xt.escapedName)&&i_(Pb(ln).get(Xt.escapedName),Xt)){let pi=zr(Ar,it-1,kt);return kT(pi)?L.createIndexedAccessTypeNode(pi,L.createLiteralTypeNode(L.createStringLiteral(Wn))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(pi,Qt),L.createLiteralTypeNode(L.createStringLiteral(Wn)))}let bi=dr(L.createIdentifier(Wn),16777216);if(Qt&&By(bi,L.createNodeArray(Qt)),bi.symbol=Xt,it>kt){let pi=zr(Ar,it-1,kt);return Xu(pi)?L.createQualifiedName(pi,bi):R.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bi}}function vo(ot,Te,Cn){let Dr=gl(Te.enclosingDeclaration,ot,788968,void 0,ot,!1);return Dr&&Dr.flags&262144?Dr!==Cn.symbol:!1}function Wo(ot,Te){var Cn,Dr;if(Te.flags&4&&Te.typeParameterNames){let Ai=Te.typeParameterNames.get(yu(ot));if(Ai)return Ai}let ui=fo(ot.symbol,Te,788968,!0);if(!(ui.kind&80))return L.createIdentifier("(Missing type parameter)");if(Te.flags&4){let Ai=ui.escapedText,Ii=((Cn=Te.typeParameterNamesByTextNextNameCount)==null?void 0:Cn.get(Ai))||0,zr=Ai;for(;(Dr=Te.typeParameterNamesByText)!=null&&Dr.has(zr)||vo(zr,Te,ot);)Ii++,zr=`${Ai}_${Ii}`;if(zr!==Ai){let Ar=NT(ui);ui=L.createIdentifier(zr),By(ui,Ar)}(Te.typeParameterNamesByTextNextNameCount||(Te.typeParameterNamesByTextNextNameCount=new Map)).set(Ai,Ii),(Te.typeParameterNames||(Te.typeParameterNames=new Map)).set(yu(ot),ui),(Te.typeParameterNamesByText||(Te.typeParameterNamesByText=new Set)).add(zr)}return ui}function fo(ot,Te,Cn,Dr){let ui=Mn(ot,Te,Cn);return Dr&&ui.length!==1&&!Te.encounteredError&&!(Te.flags&65536)&&(Te.encounteredError=!0),Ai(ui,ui.length-1);function Ai(Ii,zr){let Ar=Ln(Ii,zr,Te),it=Ii[zr];zr===0&&(Te.flags|=16777216);let kt=XE(it,Te);zr===0&&(Te.flags^=16777216);let Qt=dr(L.createIdentifier(kt),16777216);return Ar&&By(Qt,L.createNodeArray(Ar)),Qt.symbol=it,zr>0?L.createQualifiedName(Ai(Ii,zr-1),Qt):Qt}}function Cc(ot,Te,Cn){let Dr=Mn(ot,Te,Cn);return ui(Dr,Dr.length-1);function ui(Ai,Ii){let zr=Ln(Ai,Ii,Te),Ar=Ai[Ii];Ii===0&&(Te.flags|=16777216);let it=XE(Ar,Te);Ii===0&&(Te.flags^=16777216);let kt=it.charCodeAt(0);if(P2(kt)&>(Ar.declarations,Zd))return L.createStringLiteral(jn(Ar,Te));if(Ii===0||_U(it,ce)){let Qt=dr(L.createIdentifier(it),16777216);return zr&&By(Qt,L.createNodeArray(zr)),Qt.symbol=Ar,Ii>0?L.createPropertyAccessExpression(ui(Ai,Ii-1),Qt):Qt}else{kt===91&&(it=it.substring(1,it.length-1),kt=it.charCodeAt(0));let Qt;if(P2(kt)&&!(Ar.flags&8)?Qt=L.createStringLiteral(Yf(it).replace(/\\./g,Xt=>Xt.substring(1)),kt===39):""+ +it===it&&(Qt=L.createNumericLiteral(+it)),!Qt){let Xt=dr(L.createIdentifier(it),16777216);zr&&By(Xt,L.createNodeArray(zr)),Xt.symbol=Ar,Qt=Xt}return L.createElementAccessExpression(ui(Ai,Ii-1),Qt)}}}function Vf(ot){let Te=No(ot);return Te?Ya(Te)?!!(po(Te.expression).flags&402653316):Xs(Te)?!!(po(Te.argumentExpression).flags&402653316):Ca(Te):!1}function sp(ot){let Te=No(ot);return!!(Te&&Ca(Te)&&(Te.singleQuote||!qs(Te)&&ao(fc(Te,!1),"'")))}function Pn(ot,Te){let Cn=!!Nn(ot.declarations)&&oo(ot.declarations,Vf),Dr=!!Nn(ot.declarations)&&oo(ot.declarations,sp),ui=!!(ot.flags&8192),Ai=Xn(ot,Te,Dr,Cn,ui);if(Ai)return Ai;let Ii=Vi(ot.escapedName);return V6(Ii,rs(B),Dr,Cn,ui)}function Xn(ot,Te,Cn,Dr,ui){let Ai=qi(ot).nameType;if(Ai){if(Ai.flags&384){let Ii=""+Ai.value;return!Yp(Ii,rs(B))&&(Dr||!ig(Ii))?L.createStringLiteral(Ii,!!Cn):ig(Ii)&&ao(Ii,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-Ii))):V6(Ii,rs(B),Cn,Dr,ui)}if(Ai.flags&8192)return L.createComputedPropertyName(Cc(Ai.symbol,Te,111551))}}function ro(ot){let Te={...ot};return Te.typeParameterNames&&(Te.typeParameterNames=new Map(Te.typeParameterNames)),Te.typeParameterNamesByText&&(Te.typeParameterNamesByText=new Set(Te.typeParameterNamesByText)),Te.typeParameterSymbolList&&(Te.typeParameterSymbolList=new Set(Te.typeParameterSymbolList)),Te.tracker=new SK(Te,Te.tracker.inner,Te.tracker.moduleResolverHost),Te}function yr(ot,Te){return ot.declarations&&Gr(ot.declarations,Cn=>!!vd(Cn)&&(!Te||!!Fn(Cn,Dr=>Dr===Te)))}function Do(ot,Te){return!(Lr(Te)&4)||!If(ot)||Nn(ot.typeArguments)>=Oh(Te.target.typeParameters)}function os(ot){for(;Qr(ot).fakeScopeForSignatureDeclaration;)ot=ot.parent;return ot}function Es(ot,Te,Cn,Dr,ui,Ai){if(!Ut(Te)&&Dr){let Ar=yr(Cn,os(Dr));if(Ar&&!Fs(Ar)&&!Qp(Ar)){let it=vd(Ar);if(Vd(it,Ar,Te)&&Do(it,Te)){let kt=Wl(ot,it,ui,Ai);if(kt)return kt}}}let Ii=ot.flags;Te.flags&8192&&Te.symbol===Cn&&(!ot.enclosingDeclaration||gt(Cn.declarations,Ar=>Gn(Ar)===Gn(ot.enclosingDeclaration)))&&(ot.flags|=1048576);let zr=u(Te,ot);return ot.flags=Ii,zr}function Vd(ot,Te,Cn){let Dr=Ti(ot);return Dr===Cn?!0:To(Te)&&Te.questionToken?um(Cn,524288)===Dr:!1}function Wa(ot,Te,Cn,Dr,ui){if(!Ut(Te)&&ot.enclosingDeclaration){let Ai=Cn.declaration&&$f(Cn.declaration),Ii=os(ot.enclosingDeclaration);if(Fn(Ai,zr=>zr===Ii)&&Ai){let zr=Ti(Ai);if((zr.flags&262144&&zr.isThisType?io(zr,Cn.mapper):zr)===Te&&Do(Ai,Te)){let it=Wl(ot,Ai,Dr,ui);if(it)return it}}}return u(Te,ot)}function Lu(ot,Te,Cn){let Dr=!1,ui=Fp(ot);if(or(ot)&&(yT(ui)||Qh(ui.parent)||Au(ui.parent)&&mj(ui.parent.left)&&yT(ui.parent.right)))return Dr=!0,{introducesError:Dr,node:ot};let Ai=wf(ot),Ii=js(ui,Ai,!0,!0);if(Ii&&(ki(Ii,Te.enclosingDeclaration,Ai,!1).accessibility!==0?Dr=!0:(Te.tracker.trackSymbol(Ii,Te.enclosingDeclaration,Ai),Cn?.(Ii)),Fe(ot))){let zr=$s(Ii),Ar=Ii.flags&262144?Wo(zr,Te):L.cloneNode(ot);return Ar.symbol=Ii,{introducesError:Dr,node:dr(Rr(Ar,ot),16777216)}}return{introducesError:Dr,node:ot}}function Wl(ot,Te,Cn,Dr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=!1,Ai=Gn(Te),Ii=Qe(Te,zr,ji);if(ui)return;return Ii===Te?at(L.cloneNode(Te),Te):Ii;function zr(Ar){if(Aae(Ar)||Ar.kind===326)return L.createKeywordTypeNode(133);if(Iae(Ar))return L.createKeywordTypeNode(159);if(OR(Ar))return L.createUnionTypeNode([Qe(Ar.type,zr,ji),L.createLiteralTypeNode(L.createNull())]);if(sH(Ar))return L.createUnionTypeNode([Qe(Ar.type,zr,ji),L.createKeywordTypeNode(157)]);if(U4(Ar))return Qe(Ar.type,zr);if(H4(Ar))return L.createArrayTypeNode(Qe(Ar.type,zr,ji));if(BT(Ar))return L.createTypeLiteralNode(mn(Ar.jsDocPropertyTags,Xt=>{let ln=Fe(Xt.name)?Xt.name:Xt.name.right,Wn=Ue(Ti(Ar),ln.escapedText),bi=Wn&&Xt.typeExpression&&Ti(Xt.typeExpression.type)!==Wn?u(Wn,ot):void 0;return L.createPropertySignature(void 0,ln,Xt.isBracketed||Xt.typeExpression&&sH(Xt.typeExpression.type)?L.createToken(58):void 0,bi||Xt.typeExpression&&Qe(Xt.typeExpression.type,zr,ji)||L.createKeywordTypeNode(133))}));if(If(Ar)&&Fe(Ar.typeName)&&Ar.typeName.escapedText==="")return Rr(L.createKeywordTypeNode(133),Ar);if((Gy(Ar)||If(Ar))&&JF(Ar))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,Qe(Ar.typeArguments[0],zr,ji))],Qe(Ar.typeArguments[1],zr,ji))]);if(WR(Ar))if(aR(Ar)){let Xt;return L.createConstructorTypeNode(void 0,zn(Ar.typeParameters,zr,ml),to(Ar.parameters,(ln,Wn)=>ln.name&&Fe(ln.name)&&ln.name.escapedText==="new"?(Xt=ln.type,void 0):L.createParameterDeclaration(void 0,it(ln),kt(ln,Wn),ln.questionToken,Qe(ln.type,zr,ji),void 0)),Qe(Xt||Ar.type,zr,ji)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(zn(Ar.typeParameters,zr,ml),mn(Ar.parameters,(Xt,ln)=>L.createParameterDeclaration(void 0,it(Xt),kt(Xt,ln),Xt.questionToken,Qe(Xt.type,zr,ji),void 0)),Qe(Ar.type,zr,ji)||L.createKeywordTypeNode(133));if(If(Ar)&&N2(Ar)&&(!Do(Ar,Ti(Ar))||Qwe(Ar)||lt===fC(Ar,788968,!0)))return Rr(u(Ti(Ar),ot),Ar);if(Wv(Ar)){let Xt=Qr(Ar).resolvedSymbol;return N2(Ar)&&Xt&&(!Ar.isTypeOf&&!(Xt.flags&788968)||!(Nn(Ar.typeArguments)>=Oh(Nr(Xt))))?Rr(u(Ti(Ar),ot),Ar):L.updateImportTypeNode(Ar,L.updateLiteralTypeNode(Ar.argument,Qt(Ar,Ar.argument.literal)),Ar.attributes,Ar.qualifier,zn(Ar.typeArguments,zr,ji),Ar.isTypeOf)}if(Xu(Ar)||Vl(Ar)){let{introducesError:Xt,node:ln}=Lu(Ar,ot,Cn);if(ui=ui||Xt,ln!==Ar)return ln}return Ai&&ZI(Ar)&&ys(Ai,Ar.pos).line===ys(Ai,Ar.end).line&&dr(Ar,1),Sn(Ar,zr,void 0);function it(Xt){return Xt.dotDotDotToken||(Xt.type&&H4(Xt.type)?L.createToken(26):void 0)}function kt(Xt,ln){return Xt.name&&Fe(Xt.name)&&Xt.name.escapedText==="this"?"this":it(Xt)?"args":`arg${ln}`}function Qt(Xt,ln){if(Dr){if(ot.tracker&&ot.tracker.moduleResolverHost){let Wn=cbe(Xt);if(Wn){let pi={getCanonicalFileName:Pd(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ot.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ot.tracker.moduleResolverHost.getCommonSourceDirectory()},lo=a6(pi,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 yl(ot,Te,Cn){var Dr;let ui=ps(L.createPropertyDeclaration,174,!0),Ai=ps((Ct,xr,fi,Kr)=>L.createPropertySignature(Ct,xr,fi,Kr),173,!1),Ii=Te.enclosingDeclaration,zr=[],Ar=new Set,it=[],kt=Te;Te={...kt,usedSymbolNames:new Set(kt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Dr=kt.remappedSymbolReferences)==null?void 0:Dr.entries()),tracker:void 0};let Qt={...kt.tracker.inner,trackSymbol:(Ct,xr,fi)=>{var Kr,li;if((Kr=Te.remappedSymbolNames)!=null&&Kr.has(ba(Ct)))return!1;if(ki(Ct,xr,fi,!1).accessibility===0){let aa=an(Ct,Te,fi);if(!(Ct.flags&4)){let Go=aa[0],Ws=Gn(kt.enclosingDeclaration);gt(Go.declarations,fs=>Gn(fs)===Ws)&&as(Go)}}else if((li=kt.tracker.inner)!=null&&li.trackSymbol)return kt.tracker.inner.trackSymbol(Ct,xr,fi);return!1}};Te.tracker=new SK(Te,Qt,kt.tracker.moduleResolverHost),Gc(ot,(Ct,xr)=>{let fi=Vi(xr);Bm(Ct,fi)});let Xt=!Cn,ln=ot.get("export=");return ln&&ot.size>1&&ln.flags&2098688&&(ot=oa(),ot.set("export=",ln)),la(ot),Zr(zr);function Wn(Ct){return!!Ct&&Ct.kind===80}function bi(Ct){return Ll(Ct)?Vr(mn(Ct.declarationList.declarations,No),Wn):Vr([No(Ct)],Wn)}function pi(Ct){let xr=Gr(Ct,kl),fi=ql(Ct,Yl),Kr=fi!==-1?Ct[fi]:void 0;if(Kr&&xr&&xr.isExportEquals&&Fe(xr.expression)&&Fe(Kr.name)&&vr(Kr.name)===vr(xr.expression)&&Kr.body&&N_(Kr.body)){let li=Vr(Ct,Go=>!!(du(Go)&32)),Za=Kr.name,aa=Kr.body;if(Nn(li)&&(Kr=L.updateModuleDeclaration(Kr,Kr.modifiers,Kr.name,aa=L.updateModuleBlock(aa,L.createNodeArray([...Kr.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(mn(va(li,Go=>bi(Go)),Go=>L.createExportSpecifier(!1,void 0,Go))),void 0)]))),Ct=[...Ct.slice(0,fi),Kr,...Ct.slice(fi+1)]),!Gr(Ct,Go=>Go!==Kr&&ZL(Go,Za))){zr=[];let Go=!gt(aa.statements,Ws=>$r(Ws,32)||kl(Ws)||$l(Ws));gn(aa.statements,Ws=>{Ks(Ws,Go?32:0)}),Ct=[...Vr(Ct,Ws=>Ws!==Kr&&Ws!==xr),...zr]}}return Ct}function lo(Ct){let xr=Vr(Ct,Kr=>$l(Kr)&&!Kr.moduleSpecifier&&!!Kr.exportClause&&xf(Kr.exportClause));Nn(xr)>1&&(Ct=[...Vr(Ct,li=>!$l(li)||!!li.moduleSpecifier||!li.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(xr,li=>ta(li.exportClause,xf).elements)),void 0)]);let fi=Vr(Ct,Kr=>$l(Kr)&&!!Kr.moduleSpecifier&&!!Kr.exportClause&&xf(Kr.exportClause));if(Nn(fi)>1){let Kr=KC(fi,li=>Ca(li.moduleSpecifier)?">"+li.moduleSpecifier.text:">");if(Kr.length!==fi.length)for(let li of Kr)li.length>1&&(Ct=[...Vr(Ct,Za=>!li.includes(Za)),L.createExportDeclaration(void 0,!1,L.createNamedExports(va(li,Za=>ta(Za.exportClause,xf).elements)),li[0].moduleSpecifier)])}return Ct}function An(Ct){let xr=ql(Ct,fi=>$l(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&xf(fi.exportClause));if(xr>=0){let fi=Ct[xr],Kr=to(fi.exportClause.elements,li=>{if(!li.propertyName){let Za=IL(Ct),aa=Vr(Za,Go=>ZL(Ct[Go],li.name));if(Nn(aa)&&oo(aa,Go=>mk(Ct[Go]))){for(let Go of aa)Ct[Go]=Gi(Ct[Go]);return}}return li});Nn(Kr)?Ct[xr]=L.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,L.updateNamedExports(fi.exportClause,Kr),fi.moduleSpecifier,fi.attributes):Tv(Ct,xr)}return Ct}function Zr(Ct){return Ct=pi(Ct),Ct=lo(Ct),Ct=An(Ct),Ii&&(Yi(Ii)&&wp(Ii)||Yl(Ii))&&(!gt(Ct,d2)||!Ere(Ct)&>(Ct,fF))&&Ct.push(Uk(L)),Ct}function Gi(Ct){let xr=(du(Ct)|32)&-129;return L.replaceModifiers(Ct,xr)}function co(Ct){let xr=du(Ct)&-33;return L.replaceModifiers(Ct,xr)}function la(Ct,xr,fi){xr||it.push(new Map),Ct.forEach(Kr=>{Ec(Kr,!1,!!fi)}),xr||(it[it.length-1].forEach(Kr=>{Ec(Kr,!0,!!fi)}),it.pop())}function Ec(Ct,xr,fi){let Kr=es(Ct);if(Ar.has(ba(Kr)))return;if(Ar.add(ba(Kr)),!xr||Nn(Ct.declarations)&>(Ct.declarations,Za=>!!Fn(Za,aa=>aa===Ii))){let Za=Te;Te=ro(Te),Cl(Ct,xr,fi),Te.reportedDiagnostic&&(kt.reportedDiagnostic=Te.reportedDiagnostic),Te.trackedSymbols&&(Za.trackedSymbols?R.assert(Te.trackedSymbols===Za.trackedSymbols):Za.trackedSymbols=Te.trackedSymbols),Te=Za}}function Cl(Ct,xr,fi,Kr=Ct.escapedName){var li,Za,aa,Go,Ws,fs;let Fa=Vi(Kr),Dd=Kr==="default";if(xr&&!(Te.flags&131072)&&PI(Fa)&&!Dd){Te.encounteredError=!0;return}let Cd=Dd&&!!(Ct.flags&-113||Ct.flags&16&&Nn(_s(lr(Ct))))&&!(Ct.flags&2097152),bu=!Cd&&!xr&&PI(Fa)&&!Dd;(Cd||bu)&&(xr=!0);let Jl=(xr?0:32)|(Dd&&!Cd?2048:0),Nd=Ct.flags&1536&&Ct.flags&7&&Kr!=="export=",qu=Nd&&Ds(lr(Ct),Ct);if((Ct.flags&8208||qu)&&bn(lr(Ct),Ct,Bm(Ct,Fa),Jl),Ct.flags&524288&&__(Ct,Fa,Jl),Ct.flags&98311&&Kr!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!qu)if(fi)Ia(Ct)&&(bu=!1,Cd=!1);else{let ad=lr(Ct),Pp=Bm(Ct,Fa);if(ad.symbol&&ad.symbol!==Ct&&ad.symbol.flags&16&>(ad.symbol.declarations,B0)&&((li=ad.symbol.members)!=null&&li.size||(Za=ad.symbol.exports)!=null&&Za.size))Te.remappedSymbolReferences||(Te.remappedSymbolReferences=new Map),Te.remappedSymbolReferences.set(ba(ad.symbol),Ct),Cl(ad.symbol,xr,fi,Kr),Te.remappedSymbolReferences.delete(ba(ad.symbol));else if(!(Ct.flags&16)&&Ds(ad,Ct))bn(ad,Ct,Pp,Jl);else{let yx=Ct.flags&2?ZM(Ct)?2:1:(aa=Ct.parent)!=null&&aa.valueDeclaration&&Yi((Go=Ct.parent)==null?void 0:Go.valueDeclaration)?2:void 0,Z_=Cd||!(Ct.flags&4)?Pp:h_(Pp,Ct),Hb=Ct.declarations&&Gr(Ct.declarations,nW=>Oi(nW));Hb&&Uc(Hb.parent)&&Hb.parent.declarations.length===1&&(Hb=Hb.parent.parent);let Kb=(Ws=Ct.declarations)==null?void 0:Ws.find(kr);if(Kb&&pr(Kb.parent)&&Fe(Kb.parent.right)&&((fs=ad.symbol)!=null&&fs.valueDeclaration)&&Yi(ad.symbol.valueDeclaration)){let nW=Pp===Kb.parent.right.escapedText?void 0:Kb.parent.right;Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,nW,Pp)])),0),Te.tracker.trackSymbol(ad.symbol,Te.enclosingDeclaration,111551)}else{let nW=at(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z_,void 0,Es(Te,ad,Ct,Ii,as,Cn))],yx)),Hb);Ks(nW,Z_!==Pp?Jl&-33:Jl),Z_!==Pp&&!xr&&(Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Z_,Pp)])),0),bu=!1,Cd=!1)}}}if(Ct.flags&384&&Ir(Ct,Fa,Jl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&pr(Ct.valueDeclaration.parent)&&ed(Ct.valueDeclaration.parent.right)?Ei(Ct,Bm(Ct,Fa),Jl):pa(Ct,Bm(Ct,Fa),Jl)),(Ct.flags&1536&&(!Nd||$t(Ct))||qu)&&Hn(Ct,Fa,Jl),Ct.flags&64&&!(Ct.flags&32)&&Ze(Ct,Fa,Jl),Ct.flags&2097152&&Ei(Ct,Bm(Ct,Fa),Jl),Ct.flags&4&&Ct.escapedName==="export="&&Ia(Ct),Ct.flags&8388608&&Ct.declarations)for(let ad of Ct.declarations){let Pp=hu(ad,ad.moduleSpecifier);Pp&&Ks(L.createExportDeclaration(void 0,ad.isTypeOnly,void 0,L.createStringLiteral(jn(Pp,Te))),0)}Cd?Ks(L.createExportAssignment(void 0,!1,L.createIdentifier(Bm(Ct,Fa))),0):bu&&Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Bm(Ct,Fa),Fa)])),0)}function as(Ct){if(gt(Ct.declarations,L0))return;R.assertIsDefined(it[it.length-1]),h_(Vi(Ct.escapedName),Ct);let xr=!!(Ct.flags&2097152)&&!gt(Ct.declarations,fi=>!!Fn(fi,$l)||vh(fi)||nd(fi)&&!bh(fi.moduleReference));it[xr?0:it.length-1].set(ba(Ct),Ct)}function Nc(Ct){return Yi(Ct)&&(wp(Ct)||Jf(Ct))||Ld(Ct)&&!E_(Ct)}function Ks(Ct,xr){if(Am(Ct)){let fi=0,Kr=Te.enclosingDeclaration&&(qf(Te.enclosingDeclaration)?Gn(Te.enclosingDeclaration):Te.enclosingDeclaration);xr&32&&Kr&&(Nc(Kr)||Yl(Kr))&&mk(Ct)&&(fi|=32),Xt&&!(fi&32)&&(!Kr||!(Kr.flags&33554432))&&(gE(Ct)||Ll(Ct)||Tc(Ct)||Ac(Ct)||Yl(Ct))&&(fi|=128),xr&2048&&(Ac(Ct)||mu(Ct)||Tc(Ct))&&(fi|=2048),fi&&(Ct=L.replaceModifiers(Ct,fi|du(Ct)))}zr.push(Ct)}function __(Ct,xr,fi){var Kr;let li=swe(Ct),Za=qi(Ct).typeParameters,aa=mn(Za,Cd=>mt(Cd,Te)),Go=(Kr=Ct.declarations)==null?void 0:Kr.find(qf),Ws=n2(Go?Go.comment||Go.parent.comment:void 0),fs=Te.flags;Te.flags|=8388608;let Fa=Te.enclosingDeclaration;Te.enclosingDeclaration=Go;let Dd=Go&&Go.typeExpression&&Z0(Go.typeExpression)&&Wl(Te,Go.typeExpression.type,as,Cn)||u(li,Te);Ks(hE(L.createTypeAliasDeclaration(void 0,Bm(Ct,xr),aa,Dd),Ws?[{kind:3,text:`* + * `+Ws.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Te.flags=ps,Te.enclosingDeclaration=Wa}function Ze(Ct,Ir,fi){let Jr=Wf(Ct),ci=Nr(Ct),Qa=mn(ci,bu=>mt(bu,Te)),sa=Dp(Jr),Go=Nn(sa)?ga(sa):void 0,Os=va(_s(Jr),bu=>Cc(bu,Go)),ps=Gh(0,Jr,Go,179),Wa=Gh(1,Jr,Go,180),xd=gy(Jr,Go),Rd=Nn(sa)?[L.createHeritageClause(96,to(sa,bu=>nI(bu,111551)))]:void 0;Ks(L.createInterfaceDeclaration(void 0,Bm(Ct,Ir),Qa,Rd,[...xd,...Wa,...ps,...Os]),fi)}function vt(Ct){let Ir=Oo(xp(Ct).values()),fi=es(Ct);if(fi!==Ct){let Jr=new Set(Ir);for(let ci of xp(fi).values())Sd(Vl(ci))&111551||Jr.add(ci);Ir=Oo(Jr)}return jr(Ir,Jr=>zi(Jr)&&$p(Jr.escapedName,99))}function $t(Ct){return oo(vt(Ct),Ir=>!(Sd(Vl(Ir))&111551))}function Hn(Ct,Ir,fi){let Jr=vt(Ct),ci=AL(Jr,Go=>Go.parent&&Go.parent===Ct?"real":"merged"),Qa=ci.get("real")||Xe,sa=ci.get("merged")||Xe;if(Nn(Qa)){let Go=Bm(Ct,Ir);Gr(Qa,Go,fi,!!(Ct.flags&67108880))}if(Nn(sa)){let Go=Gn(Te.enclosingDeclaration),Os=Bm(Ct,Ir),ps=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(to(jr(sa,Wa=>Wa.escapedName!=="export="),Wa=>{var xd,Rd;let bu=Vi(Wa.escapedName),Hl=Bm(Wa,bu),Dd=Wa.declarations&&Mm(Wa);if(Go&&(Dd?Go!==Gn(Dd):!gt(Wa.declarations,Pp=>Gn(Pp)===Go))){(Rd=(xd=Te.tracker)==null?void 0:xd.reportNonlocalAugmentation)==null||Rd.call(xd,Go,Ct,Wa);return}let qu=Dd&&Gp(Dd,!0);os(qu||Wa);let rd=qu?Bm(qu,Vi(qu.escapedName)):Hl;return L.createExportSpecifier(!1,bu===rd?void 0:rd,bu)})))]);Ks(L.createModuleDeclaration(void 0,L.createIdentifier(Os),ps,32),0)}}function Ar(Ct,Ir,fi){Ks(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Mve(Ct)?4096:0),Bm(Ct,Ir),mn(jr(_s(sr(Ct)),Jr=>!!(Jr.flags&8)),Jr=>{let ci=Jr.declarations&&Jr.declarations[0]&&$0(Jr.declarations[0])?lbe(Jr.declarations[0]):void 0;return L.createEnumMember(Vi(Jr.escapedName),ci===void 0?void 0:typeof ci=="string"?L.createStringLiteral(ci):L.createNumericLiteral(ci))})),fi)}function bn(Ct,Ir,fi,Jr){let ci=Ho(Ct,0);for(let Qa of ci){let sa=ye(Qa,262,Te,{name:L.createIdentifier(fi),privateSymbolVisitor:os,bundledImports:Cn});Ks(at(sa,_r(Qa)),Jr)}if(!(Ir.flags&1536&&Ir.exports&&Ir.exports.size)){let Qa=jr(_s(Ct),zi);Gr(Qa,fi,Jr,!0)}}function _r(Ct){if(Ct.declaration&&Ct.declaration.parent){if(ur(Ct.declaration.parent)&&zl(Ct.declaration.parent)===5)return Ct.declaration.parent;if(Oi(Ct.declaration.parent)&&Ct.declaration.parent.parent)return Ct.declaration.parent.parent}return Ct.declaration}function Gr(Ct,Ir,fi,Jr){if(Nn(Ct)){let Qa=AL(Ct,Hl=>!Nn(Hl.declarations)||gt(Hl.declarations,Dd=>Gn(Dd)===Gn(Te.enclosingDeclaration))?"local":"remote").get("local")||Xe,sa=Eh.createModuleDeclaration(void 0,L.createIdentifier(Ir),L.createModuleBlock([]),32);Va(sa,Ii),sa.locals=aa(Ct),sa.symbol=Ct[0].parent;let Go=Br;Br=[];let Os=Xt;Xt=!1;let ps={...Te,enclosingDeclaration:sa},Wa=Te;Te=ps,ca(aa(Qa),Jr,!0),Te=Wa,Xt=Os;let xd=Br;Br=Go;let Rd=mn(xd,Hl=>Ml(Hl)&&!Hl.isExportEquals&&Fe(Hl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Hl.expression,L.createIdentifier("default"))])):Hl),bu=oo(Rd,Hl=>Qr(Hl,32))?mn(Rd,co):Rd;sa=L.updateModuleDeclaration(sa,sa.modifiers,sa.name,L.createModuleBlock(bu)),Ks(sa,fi)}}function zi(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&na(Ct.valueDeclaration)&&di(Ct.valueDeclaration.parent))}function wo(Ct){let Ir=to(Ct,fi=>{let Jr=Te.enclosingDeclaration;Te.enclosingDeclaration=fi;let ci=fi.expression;if(Bl(ci)){if(Fe(ci)&&yr(ci)==="")return Qa(void 0);let sa;if({introducesError:sa,node:ci}=Lu(ci,Te,os),sa)return Qa(void 0)}return Qa(L.createExpressionWithTypeArguments(ci,mn(fi.typeArguments,sa=>wl(Te,sa,os,Cn)||u(Ti(sa),Te))));function Qa(sa){return Te.enclosingDeclaration=Jr,sa}});if(Ir.length===Ct.length)return Ir}function pa(Ct,Ir,fi){var Jr,ci;let Qa=(Jr=Ct.declarations)==null?void 0:Jr.find(di),sa=Te.enclosingDeclaration;Te.enclosingDeclaration=Qa||sa;let Go=Nr(Ct),Os=mn(Go,eh=>mt(eh,Te)),ps=Up(Wf(Ct)),Wa=Dp(ps),xd=Qa&&aR(Qa),Rd=xd&&wo(xd)||to(s_(ps),sL),bu=sr(Ct),Hl=!!((ci=bu.symbol)!=null&&ci.valueDeclaration)&&di(bu.symbol.valueDeclaration),Dd=Hl?Rp(bu):G,qu=[...Nn(Wa)?[L.createHeritageClause(96,mn(Wa,eh=>tI(eh,Dd,Ir)))]:[],...Nn(Rd)?[L.createHeritageClause(119,Rd)]:[]],rd=P_t(ps,Wa,_s(ps)),Pp=jr(rd,eh=>{let lL=eh.valueDeclaration;return!!lL&&!(au(lL)&&Ki(lL.name))}),Z_=gt(rd,eh=>{let lL=eh.valueDeclaration;return!!lL&&au(lL)&&Ki(lL.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Xe,Ub=va(Pp,eh=>ui(eh,!1,Wa[0])),Hb=va(jr(_s(bu),eh=>!(eh.flags&4194304)&&eh.escapedName!=="prototype"&&!zi(eh)),eh=>ui(eh,!0,Dd)),qgt=!Hl&&!!Ct.valueDeclaration&&ir(Ct.valueDeclaration)&&!gt(Ho(bu,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Gh(1,bu,Dd,176),Xgt=gy(ps,Wa[0]);Te.enclosingDeclaration=sa,Ks(at(L.createClassDeclaration(void 0,Ir,Os,qu,[...Xgt,...Hb,...qgt,...Ub,...Z_]),Ct.declarations&&jr(Ct.declarations,eh=>Sc(eh)||$c(eh))[0]),fi)}function fa(Ct){return Wl(Ct,Ir=>{if(Qu(Ir)||Kd(Ir))return yr(Ir.propertyName||Ir.name);if(ur(Ir)||Ml(Ir)){let fi=Ml(Ir)?Ir.expression:Ir.right;if(wr(fi))return yr(fi.name)}if(fb(Ir)){let fi=No(Ir);if(fi&&Fe(fi))return yr(fi)}})}function Ei(Ct,Ir,fi){var Jr,ci,Qa,sa,Go,Os;let ps=Mm(Ct);if(!ps)return R.fail();let Wa=es(Gp(ps,!0));if(!Wa)return;let xd=pN(Wa)&&fa(Ct.declarations)||Vi(Wa.escapedName);xd==="export="&&q&&(xd="default");let Rd=Bm(Wa,xd);switch(os(Wa),ps.kind){case 208:if(((ci=(Jr=ps.parent)==null?void 0:Jr.parent)==null?void 0:ci.kind)===260){let Dd=jn(Wa.parent||Wa,Te),{propertyName:qu}=ps;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,qu&&Fe(qu)?L.createIdentifier(yr(qu)):void 0,L.createIdentifier(Ir))])),L.createStringLiteral(Dd),void 0),0);break}R.failBadSyntaxKind(((Qa=ps.parent)==null?void 0:Qa.parent)||ps,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Go=(sa=ps.parent)==null?void 0:sa.parent)==null?void 0:Go.kind)===226&&Lo(Vi(Ct.escapedName),Rd);break;case 260:if(wr(ps.initializer)){let Dd=ps.initializer,qu=L.createUniqueName(Ir),rd=jn(Wa.parent||Wa,Te);Ks(L.createImportEqualsDeclaration(void 0,!1,qu,L.createExternalModuleReference(L.createStringLiteral(rd))),0),Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Ir),L.createQualifiedName(qu,Dd.name)),fi);break}case 271:if(Wa.escapedName==="export="&>(Wa.declarations,Dd=>Yi(Dd)&&Jf(Dd))){Aa(Ct);break}let bu=!(Wa.flags&512)&&!Oi(ps);Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Ir),bu?fo(Wa,Te,-1,!1):L.createExternalModuleReference(L.createStringLiteral(jn(Wa,Te)))),bu?fi:0);break;case 270:Ks(L.createNamespaceExportDeclaration(yr(ps.name)),0);break;case 273:{let Dd=jn(Wa.parent||Wa,Te),qu=Cn?L.createStringLiteral(Dd):ps.parent.moduleSpecifier;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,L.createIdentifier(Ir),void 0),qu,ps.parent.attributes),0);break}case 274:{let Dd=jn(Wa.parent||Wa,Te),qu=Cn?L.createStringLiteral(Dd):ps.parent.parent.moduleSpecifier;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(L.createIdentifier(Ir))),qu,ps.parent.attributes),0);break}case 280:Ks(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(Ir)),L.createStringLiteral(jn(Wa,Te))),0);break;case 276:{let Dd=jn(Wa.parent||Wa,Te),qu=Cn?L.createStringLiteral(Dd):ps.parent.parent.parent.moduleSpecifier;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Ir!==xd?L.createIdentifier(xd):void 0,L.createIdentifier(Ir))])),qu,ps.parent.parent.parent.attributes),0);break}case 281:let Hl=ps.parent.parent.moduleSpecifier;Hl&&((Os=ps.propertyName)==null?void 0:Os.escapedText)==="default"&&(xd="default"),Lo(Vi(Ct.escapedName),Hl?xd:Rd,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):Lo(Ir,Rd);break;default:return R.failBadSyntaxKind(ps,"Unhandled alias declaration kind in symbol serializer!")}}function Lo(Ct,Ir,fi){Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==Ir?Ir:void 0,Ct)]),fi),0)}function Aa(Ct){var Ir;if(Ct.flags&4194304)return!1;let fi=Vi(Ct.escapedName),Jr=fi==="export=",Qa=Jr||fi==="default",sa=Ct.declarations&&Mm(Ct),Go=sa&&Gp(sa,!0);if(Go&&Nn(Go.declarations)&>(Go.declarations,Os=>Gn(Os)===Gn(Ii))){let Os=sa&&(Ml(sa)||ur(sa)?Tj(sa):Iie(sa)),ps=Os&&Bl(Os)?H_t(Os):void 0,Wa=ps&&js(ps,-1,!0,!0,Ii);(Wa||Go)&&os(Wa||Go);let xd=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,Qa)Br.push(L.createExportAssignment(void 0,Jr,Rc(Go,Te,-1)));else if(ps===Os&&ps)Lo(fi,yr(ps));else if(Os&&$c(Os))Lo(fi,Bm(Go,vl(Go)));else{let Rd=h_(fi,Ct);Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Rd),fo(Go,Te,-1,!1)),0),Lo(fi,Rd)}return Te.tracker.disableTrackSymbol=xd,!0}else{let Os=h_(fi,Ct),ps=Hp(sr(es(Ct)));if(Rs(ps,Ct))bn(ps,Ct,Os,Qa?0:32);else{let Wa=((Ir=Te.enclosingDeclaration)==null?void 0:Ir.kind)===267&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2,xd=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Os,void 0,Es(Te,ps,Ct,Ii,os,Cn))],Wa));Ks(xd,Go&&Go.flags&4&&Go.escapedName==="export="?128:fi===Os?32:0)}return Qa?(Br.push(L.createExportAssignment(void 0,Jr,L.createIdentifier(Os))),!0):fi!==Os?(Lo(fi,Os),!0):!1}}function Rs(Ct,Ir){let fi=Gn(Te.enclosingDeclaration);return kr(Ct)&48&&!Nn(gu(Ct))&&!NS(Ct)&&!!(Nn(jr(_s(Ct),zi))||Nn(Ho(Ct,0)))&&!Nn(Ho(Ct,1))&&!gr(Ir,Ii)&&!(Ct.symbol&>(Ct.symbol.declarations,Jr=>Gn(Jr)!==fi))&&!gt(_s(Ct),Jr=>f8(Jr.escapedName))&&!gt(_s(Ct),Jr=>gt(Jr.declarations,ci=>Gn(ci)!==fi))&&oo(_s(Ct),Jr=>$p(vl(Jr),ce)?Jr.flags&98304?Db(Jr)===PS(Jr):!0:!1)}function us(Ct,Ir,fi){return function(ci,Qa,sa){var Go,Os,ps,Wa,xd;let Rd=Tf(ci),bu=!!(Rd&2);if(Qa&&ci.flags&2887656)return[];if(ci.flags&4194304||ci.escapedName==="constructor"||sa&&ha(sa,ci.escapedName)&&m_(ha(sa,ci.escapedName))===m_(ci)&&(ci.flags&16777216)===(ha(sa,ci.escapedName).flags&16777216)&&uy(sr(ci),Ue(sa,ci.escapedName)))return[];let Hl=Rd&-1025|(Qa?256:0),Dd=Pn(ci,Te),qu=(Go=ci.declarations)==null?void 0:Go.find(Um(Vo,Nv,Oi,_p,ur,wr));if(ci.flags&98304&&fi){let rd=[];if(ci.flags&65536){let Pp=ci.declarations&&gn(ci.declarations,Z_=>{if(Z_.kind===178)return Z_;if(ra(Z_)&&gT(Z_))return gn(Z_.arguments[2].properties,Ub=>{let Hb=No(Ub);if(Hb&&Fe(Hb)&&yr(Hb)==="set")return Ub})});R.assert(!!Pp);let hx=Fs(Pp)?lm(Pp).parameters[0]:void 0;rd.push(at(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Dd,[L.createParameterDeclaration(void 0,void 0,hx?sn(hx,At(hx),Te):"value",void 0,bu?void 0:Es(Te,sr(ci),ci,Ii,os,Cn))],void 0),((Os=ci.declarations)==null?void 0:Os.find(Py))||qu))}if(ci.flags&32768){let Pp=Rd&2;rd.push(at(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Hl),Dd,[],Pp?void 0:Es(Te,sr(ci),ci,Ii,os,Cn),void 0),((ps=ci.declarations)==null?void 0:ps.find(Mv))||qu))}return rd}else if(ci.flags&98311)return at(Ct(L.createModifiersFromModifierFlags((m_(ci)?8:0)|Hl),Dd,ci.flags&16777216?L.createToken(58):void 0,bu?void 0:Es(Te,PS(ci),ci,Ii,os,Cn),void 0),((Wa=ci.declarations)==null?void 0:Wa.find(Um(Vo,Oi)))||qu);if(ci.flags&8208){let rd=sr(ci),Pp=Ho(rd,0);if(Hl&2)return at(Ct(L.createModifiersFromModifierFlags((m_(ci)?8:0)|Hl),Dd,ci.flags&16777216?L.createToken(58):void 0,void 0,void 0),((xd=ci.declarations)==null?void 0:xd.find(Fs))||Pp[0]&&Pp[0].declaration||ci.declarations&&ci.declarations[0]);let hx=[];for(let Z_ of Pp){let Ub=ye(Z_,Ir,Te,{name:Dd,questionToken:ci.flags&16777216?L.createToken(58):void 0,modifiers:Hl?L.createModifiersFromModifierFlags(Hl):void 0}),Hb=Z_.declaration&&w2(Z_.declaration.parent)?Z_.declaration.parent:Z_.declaration;hx.push(at(Ub,Hb))}return hx}return R.fail(`Unhandled class member kind! ${ci.__debugFlags||ci.flags}`)}}function Cc(Ct,Ir){return Ai(Ct,!1,Ir)}function Gh(Ct,Ir,fi,Jr){let ci=Ho(Ir,Ct);if(Ct===1){if(!fi&&oo(ci,Go=>Nn(Go.parameters)===0))return[];if(fi){let Go=Ho(fi,1);if(!Nn(Go)&&oo(ci,Os=>Nn(Os.parameters)===0))return[];if(Go.length===ci.length){let Os=!1;for(let ps=0;psu(ci,Te)),Jr=Rc(Ct.target.symbol,Te,788968)):Ct.symbol&&nn(Ct.symbol,Ii,Ir)&&(Jr=Rc(Ct.symbol,Te,788968)),Jr)return L.createExpressionWithTypeArguments(Jr,fi)}function sL(Ct){let Ir=nI(Ct,788968);if(Ir)return Ir;if(Ct.symbol)return L.createExpressionWithTypeArguments(Rc(Ct.symbol,Te,788968),void 0)}function h_(Ct,Ir){var fi,Jr;let ci=Ir?ba(Ir):void 0;if(ci&&Te.remappedSymbolNames.has(ci))return Te.remappedSymbolNames.get(ci);Ir&&(Ct=_x(Ir,Ct));let Qa=0,sa=Ct;for(;(fi=Te.usedSymbolNames)!=null&&fi.has(Ct);)Qa++,Ct=`${sa}_${Qa}`;return(Jr=Te.usedSymbolNames)==null||Jr.add(Ct),ci&&Te.remappedSymbolNames.set(ci,Ct),Ct}function _x(Ct,Ir){if(Ir==="default"||Ir==="__class"||Ir==="__function"){let fi=Te.flags;Te.flags|=16777216;let Jr=XE(Ct,Te);Te.flags=fi,Ir=Jr.length>0&&D2(Jr.charCodeAt(0))?Yf(Jr):Jr}return Ir==="default"?Ir="_default":Ir==="export="&&(Ir="_exports"),Ir=$p(Ir,ce)&&!CI(Ir)?Ir:"_"+Ir.replace(/[^a-zA-Z0-9]/g,"_"),Ir}function Bm(Ct,Ir){let fi=ba(Ct);return Te.remappedSymbolNames.has(fi)?Te.remappedSymbolNames.get(fi):(Ir=_x(Ct,Ir),Te.remappedSymbolNames.set(fi,Ir),Ir)}}}function Mh(n,a,c=16384,u){return u?_(u).getText():dN(_);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)),M=iS(),W=a&&Gn(a);return M.writeNode(4,T,W,g),g}}function ZD(n){let a=[],c=0;for(let u=0;uNo(T)?T:void 0),g=_&&No(_);if(_&&g){if(ra(_)&&gT(_))return vl(n);if(Xa(g)&&!(Tl(n)&4096)){let T=qi(n).nameType;if(T&&T.flags&384){let M=d8(n,a);if(M!==void 0)return M}}return Is(g)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Is(_.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=d8(n,a);return u!==void 0?u:vl(n)}function o_(n){if(n){let c=Zr(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 o_(n.parent.parent);case 260:if(Yo(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(A0(n))return!0;let c=X(n);return!(ite(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Rh(c):o_(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 o_(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 RM(n,a){let c;n.parent&&n.parent.kind===277?c=gl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=jE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(ba(c)),g(c.declarations)),u;function g(T){gn(T,M=>{let W=_A(M)||M;if(a?Zr(M).isVisible=!0:(u=u||[],yf(u,W)),Qx(M)){let V=M.moduleReference,te=Fp(V),ye=gl(M,te.escapedText,901119,void 0,void 0,!1);ye&&_&&Jb(_,ba(ye))&&g(ye.declarations)}})}}function Lh(n,a){let c=nx(n,a);if(c>=0){let{length:u}=ud;for(let _=c;_=w1;c--){if(u8(ud[c],kE[c]))return-1;if(ud[c]===n&&kE[c]===a)return c}return-1}function u8(n,a){switch(a){case 0:return!!qi(n).type;case 5:return!!Zr(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 Zr(n).parameterInitializerContainsUndefined!==void 0}return R.assertNever(a)}function H_(){return ud.pop(),kE.pop(),qg.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 Ae(n){let a=$s(Cu(n));return a.typeParameters?cv(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 Ut(n){return n===pt||!!(n.flags&1&&n.aliasSymbol)}function Or(n,a){if(a!==0)return PA(n,!1,a);let c=Sr(n);return c&&qi(c).type||PA(n,!1,a)}function Wi(n,a,c){if(n=cc(n,W=>!(W.flags&98304)),n.flags&131072)return Ca;if(n.flags&1048576)return cl(n,W=>Wi(W,a,c));let u=ti(mn(a,uv)),_=[],g=[];for(let W of _s(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=ti([u,...g])),u.flags&131072)return n;let W=Zat();return W?cC(W,[n,u]):pt}let T=aa();for(let W of _)T.set(W.escapedName,Hge(W,!1));let M=Ns(c,T,Xe,Xe,gu(n));return M.objectFlags|=4194304,M}function Ci(n){return!!(n.flags&465829888)&&Rl(Fd(n)||un,32768)}function _i(n){let a=Fm(n,Ci)?cl(n,c=>c.flags&465829888?ly(c):c):n;return um(a,524288)}function Xi(n,a){let c=cs(n);return c?Vb(c,a):a}function cs(n){let a=xs(n);if(a&&z2(a)&&a.flowNode){let c=Ya(n);if(c){let u=at(Eh.createStringLiteral(c),n),_=Yu(a)?a:Eh.createParenthesizedExpression(a),g=at(Eh.createElementAccessExpression(_,u),n);return Va(u,g),Va(g,n),_!==a&&Va(_,g),g.flowNode=a.flowNode,g}}}function xs(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 Ya(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=uv(n);return a.flags&384?""+a.value:void 0}function K_(n){let a=n.dotDotDotToken?32:0,c=Or(n.parent.parent,a);return c&&yg(n,c,!1)}function yg(n,a,c){if(xt(a))return a;let u=n.parent;J&&n.flags&33554432&&M0(n)?a=my(a):J&&u.parent.initializer&&!dm(z8e(u.parent.initializer),65536)&&(a=um(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=d_(a),a.flags&2||!k5(a))return Ve(n,f.Rest_types_may_only_be_created_from_object_types),pt;let g=[];for(let T of u.elements)T.dotDotDotToken||g.push(T.propertyName||T.name);_=Wi(a,g,n.symbol)}else{let g=n.propertyName||n.name,T=uv(g),M=Cp(a,T,32,g);_=Xi(n,M)}else{let g=_v(65|(n.dotDotDotToken?0:128),a,Me,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let M=cl(a,W=>W.flags&58982400?ly(W):W);_=ap(M,wa)?cl(M,W=>FM(W,T)):zd(g)}else if(fv(a)){let M=u_(T),W=32|(c||XM(n)?16:0),V=kb(a,M,W,n.name)||pt;_=Xi(n,V)}else _=g}return n.initializer?gd(Lx(n))?J&&!dm($M(n,0),16777216)?_i(_):_:wee(n,ti([_i(_),$M(n,0)],2)):_}function ry(n){let a=rE(n);if(a)return Ti(a)}function iy(n){let a=ms(n,!0);return a.kind===106||a.kind===80&&Wm(a)===ze}function Ab(n){let a=ms(n,!0);return a.kind===209&&a.elements.length===0}function op(n,a=!1,c=!0){return J&&c?Bb(n,a):n}function PA(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){let T=J_(ove(po(n.parent.parent.expression,c)));return T.flags&4456448?SOe(T):Ne}if(Oi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return aG(T)||G}if(Yo(n.parent))return K_(n);let u=Vo(n)&&!I_(n)||_p(n)||Cae(n),_=a&&$N(n),g=eo(n);if(JV(n))return g?xt(g)||g===un?g:pt:he?un:G;if(g)return op(g,u,_);if((fe||ir(n))&&Oi(n)&&!Yo(n.name)&&!(ite(n)&32)&&!(n.flags&33554432)){if(!(JS(n)&6)&&(!n.initializer||iy(n.initializer)))return et;if(n.initializer&&Ab(n.initializer))return Hc}if(To(n)){let T=n.parent;if(T.kind===178&&oC(T)){let V=dl(Sr(n.parent),177);if(V){let te=lm(V),ye=mbe(T);return ye&&n===ye?(R.assert(!ye.type),sr(te.thisParameter)):ds(te)}}let M=Iat(T,n);if(M)return M;let W=n.symbol.escapedName==="this"?lWe(T):cWe(n);if(W)return op(W,!1,_)}if(dT(n)&&n.initializer){if(ir(n)&&!To(n)){let M=Ba(n,Sr(n),N2(n));if(M)return M}let T=wee(n,$M(n,c));return op(T,u,_)}if(Vo(n)&&(fe||ir(n)))if(pc(n)){let T=jr(n.parent.members,Al),M=T.length?oy(n.symbol,T):du(n)&128?jZ(n.symbol):void 0;return M&&op(M,!0,_)}else{let T=ty(n.parent),M=T?Ib(n.symbol,T):du(n)&128?jZ(n.symbol):void 0;return M&&op(M,!0,_)}if(M_(n))return wn;if(Yo(n.name))return C(n.name,!1,!0)}function eC(n){if(n.valueDeclaration&&ur(n.valueDeclaration)){let a=qi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!CM(n)&&oo(n.declarations,c=>ur(c)&&mee(c)&&(c.left.kind!==212||Qp(c.left.argumentExpression))&&!lc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function DM(n){let a=n.valueDeclaration;return a&&Vo(a)&&!gd(a)&&!a.initializer&&(fe||ir(a))}function CM(n){if(n.declarations)for(let a of n.declarations){let c=wu(a,!1,!1);if(c&&(c.kind===176||$_(c)))return c}}function YE(n){let a=Gn(n.declarations[0]),c=Vi(n.escapedName),u=n.declarations.every(g=>ir(g)&&Ms(g)&&$h(g.expression)),_=u?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return u&&Va(_.expression.expression,_.expression),Va(_.expression,_),Va(_,a),_.flowNode=a.endFlowNode,Vb(_,et,Me)}function oy(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);Va(_.expression,_),Va(_,u),_.flowNode=u.returnFlowNode;let g=tC(_,n);if(fe&&(g===et||g===Hc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(g)),!ap(g,F5))return Y8(g)}}function Ib(n,a){let c=ao(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),u=L.createPropertyAccessExpression(L.createThis(),c);Va(u.expression,u),Va(u,a),u.flowNode=a.returnFlowNode;let _=tC(u,n);return fe&&(_===et||_===Hc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(_)),ap(_,F5)?void 0:Y8(_)}function tC(n,a){let c=a?.valueDeclaration&&(!DM(a)||du(a.valueDeclaration)&128)&&jZ(a)||Me;return Vb(n,et,c)}function jp(n,a){let c=AI(n.valueDeclaration);if(c){let M=ir(c)?nE(c):void 0;return M&&M.typeExpression?Ti(M.typeExpression):n.valueDeclaration&&Ba(n.valueDeclaration,n,c)||zS(tc(c))}let u,_=!1,g=!1;if(eC(n)&&(u=Ib(n,CM(n))),!u){let M;if(n.declarations){let W;for(let V of n.declarations){let te=ur(V)||ra(V)?V:Ms(V)?ur(V.parent)?V.parent:V:void 0;if(!te)continue;let ye=Ms(te)?k2(te):zl(te);(ye===4||ur(te)&&mee(te,ye))&&(NM(te)?_=!0:g=!0),ra(te)||(W=lc(W,te,n,V)),W||(M||(M=[])).push(ur(te)||ra(te)?$E(n,a,te,ye):Fr)}u=W}if(!u){if(!Nn(M))return pt;let W=_&&n.declarations?xb(M,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:M;u=ti(V)}}let T=Hp(op(u,!1,g&&!_));return n.valueDeclaration&&ir(n.valueDeclaration)&&cc(T,M=>!!(M.flags&-98305))===Fr?(l0(n.valueDeclaration,G),G):T}function Ba(n,a,c){var u,_;if(!ir(n)||!c||!Ma(c)||c.properties.length)return;let g=aa();for(;ur(n)||wr(n);){let W=ff(n);(u=W?.exports)!=null&&u.size&&r_(g,W.exports),n=ur(n)?n.parent:n.parent.parent}let T=ff(n);(_=T?.exports)!=null&&_.size&&r_(g,T.exports);let M=Ns(a,g,Xe,Xe,Xe);return M.objectFlags|=4096,M}function lc(n,a,c,u){var _;let g=gd(a.parent);if(g){let T=Hp(Ti(g));if(n)!Ut(n)&&!Ut(T)&&!uy(n,T)&&f6e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=IS(c.parent);if(T.valueDeclaration){let M=gd(T.valueDeclaration);if(M){let W=ha(Ti(M),c.escapedName);if(W)return Db(W)}}}return n}function $E(n,a,c,u){if(ra(c)){if(a)return sr(a);let T=tc(c.arguments[2]),M=Ue(T,"value");if(M)return M;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 xve(te)}return G}if(rx(c.left,c.right))return G;let _=u===1&&(wr(c.left)||Xs(c.left))&&($h(c.left.expression)||Fe(c.left.expression)&&hT(c.left.expression)),g=a?sr(a):_?vu(tc(c.right)):zS(tc(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=c_(g),M=aa();vF(T.members,M);let W=M.size;a&&!a.exports&&(a.exports=aa()),(a||n).exports.forEach((te,ye)=>{var _e;let je=M.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=ii(je.valueDeclaration,au))==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=Ha(te.flags|je.flags,ye);mt.links.type=ti([sr(te),sr(je)]),mt.valueDeclaration=je.valueDeclaration,mt.declarations=bo(je.declarations,te.declarations),M.set(ye,mt)}else M.set(ye,om(te,je));else M.set(ye,te)});let V=Ns(W!==M.size?void 0:T.symbol,M,T.callSignatures,T.constructSignatures,T.indexInfos);if(W===M.size&&(g.aliasSymbol&&(V.aliasSymbol=g.aliasSymbol,V.aliasTypeArguments=g.aliasTypeArguments),kr(g)&4)){V.aliasSymbol=g.symbol;let te=Hs(g);V.aliasTypeArguments=Nn(te)?te:void 0}return V.objectFlags|=kr(g)&4096,V.symbol&&V.symbol.flags&32&&g===Wf(V.symbol)&&(V.objectFlags|=16777216),V}return HZ(g)?(l0(c,Zl),Zl):g}function rx(n,a){return wr(n)&&n.expression.kind===110&&EP(a,c=>Td(n,c))}function NM(n){let a=wu(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!w2(a.parent)}function xb(n,a){return R.assert(n.length===a.length),n.filter((c,u)=>{let _=a[u],g=ur(_)?_:ur(_.parent)?_.parent:void 0;return g&&NM(g)})}function PM(n,a,c){if(n.initializer){let u=Yo(n.name)?C(n.name,!0,!1):un;return op(wee(n,$M(n,c?0:1,u)))}return Yo(n.name)?C(n.name,a,c):(c&&!hr(n)&&l0(n,G),a?hn:G)}function tr(n,a,c){let u=aa(),_,g=131200;gn(n.elements,M=>{let W=M.propertyName||M.name;if(M.dotDotDotToken){_=Wh(Ne,G,!1);return}let V=uv(W);if(!Qf(V)){g|=512;return}let te=Zf(V),ye=4|(M.initializer?16777216:0),_e=Ha(ye,te);_e.links.type=PM(M,a,c),_e.links.bindingElement=M,u.set(_e.escapedName,_e)});let T=Ns(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,_=Qs(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return ce>=2?aOe(G):Zl;let T=mn(u,te=>Gc(te)?G:PM(te,a,c)),M=pW(u,te=>!(te===g||Gc(te)||XM(te)),u.length-1)+1,W=mn(u,(te,ye)=>te===g?4:ye>=M?2:1),V=Fh(T,W);return a&&(V=Gwe(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 Ht(PA(n,!0,0),n,a)}function le(n){let a=Zr(n);if(!a.resolvedType){let c=Ha(4096,"__importAttributes"),u=aa();gn(n.elements,g=>{let T=Ha(4,U6(g));T.parent=c,T.links.type=K_t(g),T.links.target=T,u.set(T.escapedName,T)});let _=Ns(c,u,Xe,Xe,Xe);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Ke(n){let a=ff(n),c=Gat(!1);return c&&a&&a===c}function Ht(n,a,c){return n?(n.flags&4096&&Ke(a.parent)&&(n=Kge(a)),c&&ZZ(a,n),n.flags&8192&&(qa(a)||!a.type)&&n.symbol!==Sr(a)&&(n=xi),Hp(n)):(n=To(a)&&a.dotDotDotToken?Zl:G,c&&(hr(a)||l0(a,n)),n)}function hr(n){let a=A_(n),c=a.kind===169?a.parent:a;return tG(c)}function eo(n){let a=gd(n);if(a)return Ti(a)}function Us(n){let a=n.valueDeclaration;return a?(qa(a)&&(a=Lx(a)),To(a)?OZ(a.parent):!1):!1}function a_(n,a){let c=qi(n);if(!c.type){let u=Rb(n,a);return!c.type&&!Us(n)&&!a&&(c.type=u),u}return c.type}function Rb(n,a){if(n.flags&4194304)return Ae(n);if(n===_t)return G;if(n.flags&134217728&&n.valueDeclaration){let _=Sr(Gn(n.valueDeclaration)),g=Ha(_.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),Ns(n,T,Xe,Xe,Xe)}R.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Yi(c)&&Jf(c))return c.statements.length?Hp(zS(po(c.statements[0].expression))):Ca;if(Nv(c))return ZE(n);if(!Lh(n,0))return n.flags&512&&!(n.flags&67108864)?MM(n):qa(c)&&a===1?pt:nC(n);let u;if(c.kind===277)u=Ht(eo(c)||tc(c.expression),c);else if(ur(c)||ir(c)&&(ra(c)||(wr(c)||XF(c))&&ur(c.parent)))u=jp(n);else if(wr(c)||Xs(c)||Fe(c)||as(c)||mp(c)||Sc(c)||Ec(c)||Ul(c)&&!bm(c)||hh(c)||Yi(c)){if(n.flags&9136)return MM(n);u=ur(c.parent)?jp(n):eo(c)||G}else if(mc(c))u=eo(c)||zFe(c);else if(M_(c))u=eo(c)||EWe(c);else if(Zu(c))u=eo(c)||ZM(c.name,0);else if(bm(c))u=eo(c)||BFe(c,0);else if(To(c)||Vo(c)||_p(c)||Oi(c)||qa(c)||iN(c))u=F(c,!0);else if(gE(c))u=MM(n);else if($0(c))u=cZ(n);else return R.fail("Unhandled declaration kind! "+R.formatSyntaxKind(c.kind)+" for "+R.formatSymbol(n));return H_()?u:n.flags&512&&!(n.flags&67108864)?MM(n):qa(c)&&a===1?u:nC(n)}function Om(n){if(n)switch(n.kind){case 177:return $f(n);case 178:return wie(n);case 172:return R.assert(I_(n)),gd(n)}}function QE(n){let a=Om(n);return a&&Ti(a)}function sZ(n){let a=mbe(n);return a&&a.symbol}function Uhe(n){return r0(lm(n))}function ZE(n){let a=qi(n);if(!a.type){if(!Lh(n,0))return pt;let c=dl(n,177),u=dl(n,178),_=ii(dl(n,172),ku),g=c&&ir(c)&&ry(c)||QE(c)||QE(u)||QE(_)||c&&c.body&&Mee(c)||_&&_.initializer&&F(_,!0);g||(u&&!tG(u)?pd(fe,u,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!tG(c)?pd(fe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!tG(_)&&pd(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(!Lh(n,8))return pt;let c=dl(n,178)??ii(dl(n,172),ku),u=QE(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||ZE(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 MM(n){let a=qi(n),c=a;if(!a.type){let u=n.valueDeclaration&&Nee(n.valueDeclaration,!1);if(u){let _=bve(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&&pN(n))return G;if(a&&(a.kind===226||Ms(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(!Lh(n,0))return pt;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?Bb(c,!0):c}function cZ(n){let a=qi(n);return a.type||(a.type=awe(n))}function dZ(n){let a=qi(n);if(!a.type){if(!Lh(n,0))return pt;let c=Oc(n),u=n.declarations&&Gp(Mm(n),!0),_=Wl(u?.declarations,g=>Ml(g)?eo(g):void 0);if(a.type=u?.declarations&&Xee(u.declarations)&&n.declarations.length?YE(u):Xee(n.declarations)?et:_||(Sd(c)&111551?sr(c):pt),!H_())return nC(u??n),a.type=pt}return a.type}function Hhe(n){let a=qi(n);return a.type||(a.type=io(sr(a.target),a.mapper))}function Khe(n){let a=qi(n);return a.writeType||(a.writeType=io(PS(a.target),a.mapper))}function nC(n){let a=n.valueDeclaration;if(a){if(gd(a))return Ve(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),pt;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||(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ti(a.deferralConstituents):ga(a.deferralConstituents)),a.type}function JB(n){let a=qi(n);return!a.writeType&&a.deferralWriteConstituents&&(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ti(a.deferralWriteConstituents):ga(a.deferralWriteConstituents)),a.writeType}function PS(n){let a=Tl(n);return n.flags&4?a&2?a&65536?JB(n)||uZ(n):n.links.writeType||n.links.type:Gb(sr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Khe(n):HB(n):sr(n)}function sr(n,a){let c=Tl(n);return c&65536?uZ(n):c&1?Hhe(n):c&262144?aat(n):c&8192?bct(n):n.flags&7?a_(n,a):n.flags&9136?MM(n):n.flags&8?cZ(n):n.flags&98304?ZE(n):n.flags&2097152?dZ(n):pt}function Db(n){return Gb(sr(n),!!(n.flags&16777216))}function Cb(n,a){return n!==void 0&&a!==void 0&&(kr(n)&4)!==0&&n.target===a}function sv(n){return kr(n)&4?n.target:n}function rC(n,a){return c(n);function c(u){if(kr(u)&7){let _=sv(u);return _===a||gt(Dp(_),c)}else if(u.flags&2097152)return gt(u.types,c);return!1}}function e0(n,a){for(let c of a)n=Ig(n,MA(Sr(c)));return n}function Rn(n,a){for(;;){if(n=n.parent,n&&ur(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 bo(u,LOe(n));let _=e0(u,Dv(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=G2(n);c&&(n=c.valueDeclaration);break;case 327:{let u=Rn(n,a);return n.tags?e0(u,va(n.tags,_=>nm(_)?_.typeParameters:void 0)):u}}}}function Wr(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 R.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)||F2(c))&&(a=e0(a,Dv(c)));return a}function Fi(n){return bo(Wr(n),Nr(n))}function Mi(n){let a=Ho(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(Ho(n,1).length>0)return!0;if(n.flags&8650752){let a=Fd(n);return!!a&&Mi(a)}return!1}function Ts(n){let a=wg(n.symbol);return a&&S_(a)}function Zd(n,a,c){let u=Nn(a),_=ir(c);return jr(Ho(n,1),g=>(_||u>=Oh(g.typeParameters))&&u<=Nn(g.typeParameters))}function kh(n,a,c){let u=Zd(n,a,c),_=mn(a,Ti);return Nc(u,g=>gt(g.typeParameters)?g8(g,_,ir(c)):g)}function Rp(n){if(!n.resolvedBaseConstructorType){let a=wg(n.symbol),c=a&&S_(a),u=Ts(n);if(!u)return n.resolvedBaseConstructorType=Me;if(!Lh(n,1))return pt;let _=po(u.expression);if(c&&u!==c&&(R.assert(!c.typeArguments),po(c.expression)),_.flags&2621440&&c_(_),!H_())return Ve(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=pt;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=wM(_),M=un;if(T){let W=Ho(T,1);W[0]&&(M=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(M)))}return n.resolvedBaseConstructorType=pt}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function s_(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(_);Ut(g)||(a===Xe?a=[g]:a.push(g))}}return a}function ay(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(Lh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[iC(n)]:n.symbol.flags&96?(n.symbol.flags&32&&p8(n),n.symbol.flags&64&&wot(n)):R.fail("type must be class or interface"),!H_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&ay(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function iC(n){let a=Nc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?Cp(c,It):c);return zd(ti(a||Xe),n.readonly)}function p8(n){n.resolvedBaseTypes=H6;let a=Mu(Rp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Xe;let c=Ts(n),u,_=a.symbol?$s(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&kot(_))u=Vwe(c,a.symbol);else if(a.flags&1)u=a;else{let T=kh(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(Ut(u))return n.resolvedBaseTypes=Xe;let g=d_(u);if(!qB(g)){let T=age(void 0,u),M=Fo(T,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Vn(g));return $a.add(Pg(Gn(c.expression),c.expression,M)),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 kot(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Hs(n);return a[c].symbol!==u[c].symbol}return!0}function qB(n){if(n.flags&262144){let a=Fd(n);if(a)return qB(a)}return!!(n.flags&67633153&&!Hu(n)||n.flags&2097152&&oo(n.types,qB))}function wot(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Xe,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&SN(a))for(let c of SN(a)){let u=d_(Ti(c));Ut(u)||(qB(u)?n!==u&&!rC(u,n)?n.resolvedBaseTypes===Xe?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):ay(a,n):Ve(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Oot(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=SN(a);if(c){for(let u of c)if(Bl(u.expression)){let _=js(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,_=bve(n,n.valueDeclaration&&Apt(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=kf(u,n),T=Wr(n),M=Nr(n);(T||M||u===1||!Oot(n))&&(g.objectFlags|=4,g.typeParameters=bo(T,M),g.outerTypeParameters=T,g.localTypeParameters=M,g.instantiations=new Map,g.instantiations.set(cm(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=_f(n),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function rwe(n){var a;let c=qi(n);if(!c.declaredType){if(!Lh(n,2))return pt;let u=R.checkDefined((a=n.declarations)==null?void 0:a.find(F2),"Type alias symbol with no valid declaration found"),_=qf(u)?u.typeExpression:u.type,g=_?Ti(_):pt;if(H_()){let T=Nr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(cm(T),g))}else g=pt,u.kind===347?Ve(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):Ve(au(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?$s(Cu(n.symbol)):n}function iwe(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),M=IC(g),W=cx(M!==void 0?tlt(M,ba(n),T):owe(T));qi(T).declaredType=W,c.push(vu(W))}}}let u=c.length?ti(c,1,n,void 0):owe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function owe(n){let a=gg(32,n),c=gg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function awe(n){let a=qi(n);if(!a.declaredType){let c=iwe(Cu(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function MA(n){let a=qi(n);return a.declaredType||(a.declaredType=_f(n))}function Wot(n){let a=qi(n);return a.declaredType||(a.declaredType=$s(Oc(n)))}function $s(n){return swe(n)||pt}function swe(n){if(n.flags&96)return Wf(n);if(n.flags&524288)return rwe(n);if(n.flags&262144)return MA(n);if(n.flags&384)return iwe(n);if(n.flags&8)return awe(n);if(n.flags&2097152)return Wot(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 Fot(n){let a=wx(n);return!a||XB(a)}function lwe(n){let a=gd(n);return a?XB(a):!Lv(n)}function zot(n){let a=$f(n),c=Dv(n);return(n.kind===176||!!a&&XB(a))&&n.parameters.every(lwe)&&c.every(Fot)}function Bot(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return lwe(a);case 174:case 173:case 176:case 177:case 178:return zot(a)}}return!1}function cwe(n,a,c){let u=aa();for(let _ of n)u.set(_.escapedName,c&&Bot(_)?_:Xge(_,a));return u}function dwe(n,a){for(let c of a){if(uwe(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&ur(u.valueDeclaration)&&!eC(u)&&!die(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function uwe(n){return!!n.valueDeclaration&&su(n.valueDeclaration)&&na(n.valueDeclaration)}function Jhe(n){if(!n.declaredProperties){let a=n.symbol,c=Nb(a);n.declaredProperties=JE(c),n.declaredCallSignatures=Xe,n.declaredConstructSignatures=Xe,n.declaredIndexInfos=Xe,n.declaredCallSignatures=MS(c.get("__call")),n.declaredConstructSignatures=MS(c.get("__new")),n.declaredIndexInfos=Fwe(a)}return n}function qhe(n){if(!Xa(n)&&!Xs(n))return!1;let a=Xa(n)?n.expression:n.argumentExpression;return Bl(a)&&Qf(Xa(n)?Eg(n):tc(a))}function f8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function YB(n){let a=No(n);return!!a&&qhe(a)}function oC(n){return!Wv(n)||YB(n)}function Got(n){return n6(n)&&!qhe(n)}function Vot(n,a,c){R.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 pwe(n,a,c,u){R.assert(!!u.symbol,"The member is expected to have a symbol.");let _=Zr(u);if(!_.resolvedSymbol){_.resolvedSymbol=u.symbol;let g=ur(u)?u.left:u.name,T=Xs(g)?tc(g.argumentExpression):Eg(g);if(Qf(T)){let M=Zf(T),W=u.symbol.flags,V=c.get(M);V||c.set(M,V=Ha(0,M,4096));let te=a&&a.get(M);if(!(n.flags&32)&&(V.flags&uA(W)||te)){let ye=te?bo(te.declarations,V.declarations):V.declarations,_e=!(T.flags&8192)&&Vi(M)||Is(g);gn(ye,je=>Ve(No(je)||je,f.Property_0_was_also_declared_here,_e)),Ve(g||u,f.Duplicate_property_0,_e),V=Ha(0,M,4096)}return V.links.nameType=T,Vot(V,u,W),V.parent?R.assert(V.parent===n,"Existing symbol parent should match new one"):V.parent=n,_.resolvedSymbol=V}}return _.resolvedSymbol}function Xhe(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=nie(W);if(V)for(let te of V)u===pc(te)&&YB(te)&&pwe(n,_,g,te)}let T=IS(n).assignmentDeclarationMembers;if(T){let W=Oo(T.values());for(let V of W){let te=zl(V),ye=te===3||ur(V)&&mee(V,te)||te===9||te===6;u===!ye&&YB(V)&&pwe(n,_,g,V)}}let M=K1(_,g);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let W of n.declarations){let V=qi(W.symbol)[a];if(!M){M=V;continue}V&&V.forEach((te,ye)=>{let _e=M.get(ye);if(!_e)M.set(ye,te);else{if(_e===te)return;M.set(ye,om(_e,te))}})}c[a]=M||K}return c[a]}function Nb(n){return n.flags&6256?Xhe(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):Nb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Up(n,a,c){if(kr(n)&4){let u=n.target,_=Hs(n);return Nn(u.typeParameters)===Nn(_)?cv(u,bo(_,[a||u.thisType])):n}else if(n.flags&2097152){let u=Nc(n.types,_=>Up(_,a,c));return u!==n.types?ga(u):n}return c?Mu(n):n}function fwe(n,a,c,u){let _,g,T,M,W;OG(c,u,0,c.length)?(g=a.symbol?Nb(a.symbol):aa(a.declaredProperties),T=a.declaredCallSignatures,M=a.declaredConstructSignatures,W=a.declaredIndexInfos):(_=Np(c,u),g=cwe(a.declaredProperties,_,c.length===1),T=kZ(a.declaredCallSignatures,_),M=kZ(a.declaredConstructSignatures,_),W=zOe(a.declaredIndexInfos,_));let V=Dp(a);if(V.length){if(a.symbol&&g===Nb(a.symbol)){let ye=aa(a.declaredProperties),_e=mge(a.symbol);_e&&ye.set("__index",_e),g=ye}hf(n,g,T,M,W);let te=Qs(u);for(let ye of V){let _e=te?Up(io(ye,_),te):ye;dwe(g,_s(_e)),T=bo(T,Ho(_e,0)),M=bo(M,Ho(_e,1));let je=_e!==G?gu(_e):[Wh(Ne,G,!1)];W=bo(W,jr(je,mt=>!sge(W,mt.keyType)))}}hf(n,g,T,M,W)}function jot(n){fwe(n,Jhe(n),Xe,Xe)}function Uot(n){let a=Jhe(n.target),c=bo(a.typeParameters,[a.thisType]),u=Hs(n),_=u.length===c.length?u:bo(u,[n]);fwe(n,a,c,_)}function vg(n,a,c,u,_,g,T,M){let W=new h(Yt,M);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 m8(n){let a=vg(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 mwe(n,a){let c=m8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Hot(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]=Kot(n,a))}function Kot(n,a){R.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=m8(n);return c.flags|=a,c}function _we(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,M=>c(M,_,g))}return[n.parameters];function c(_,g,T){let M=Hs(_),W=u(_,T),V=mn(M,(te,ye)=>{let _e=W&&W[ye]?W[ye]:YM(n,g+ye,_),je=_.target.elementFlags[ye],mt=je&12?32768:je&2?16384:0,At=Ha(1,_e,mt);return At.links.type=je&4?zd(te):te,At});return bo(n.parameters.slice(0,g),V)}function u(_,g){let T=new Map;return mn(_.target.labeledElementDeclarations,(M,W)=>{let V=Ive(M,W,g),te=T.get(V);return te===void 0?(T.set(V,1),V):(T.set(V,te+1),`${V}_${te}`)})}}function Jot(n){let a=Rp(n),c=Ho(a,1),u=wg(n.symbol),_=!!u&&Qr(u,64);if(c.length===0)return[vg(void 0,n.localTypeParameters,void 0,Xe,n,void 0,0,_?4:0)];let g=Ts(n),T=ir(g),M=i5(g),W=Nn(M),V=[];for(let te of c){let ye=Oh(te.typeParameters),_e=Nn(te.typeParameters);if(T||W>=ye&&W<=_e){let je=_e?yZ(te,Mb(M,te.typeParameters,ye,T)):m8(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?blt:x8))return g}function qot(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=qot(n,_,u);if(g){let T=_;if(g.length>1){let M=_.thisParameter,W=gn(g,V=>V.thisParameter);if(W){let V=ga(to(g,te=>te.thisParameter&&sr(te.thisParameter)));M=UA(W,V)}T=mwe(_,g),T.thisParameter=M}(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(R.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=T.typeParameters&>(_,M=>!!M.typeParameters&&!hwe(T.typeParameters,M.typeParameters))?void 0:mn(_,M=>$ot(M,T)),!_)break}a=_}return a||Xe}function hwe(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,M=g===n?u:_,W=Bh(n)||Bh(a),V=W&&!Bh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:YM(n,ye),nr=ye>=_?void 0:YM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ha(1|(rn&&!At?16777216:0),Mn||`arg${ye}`,At?32768:rn?16384:0);an.links.type=At?zd(mt):mt,te[ye]=an}if(V){let ye=Ha(1,"args",32768);ye.links.type=zd(f_(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function $ot(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Yot(n,a,u),T=Xot(n.thisParameter,a.thisParameter,u),M=Math.max(n.minArgumentCount,a.minArgumentCount),W=vg(_,c,T,g,void 0,void 0,M,(n.flags|a.flags)&167);return W.compositeKind=1048576,W.compositeSignatures=bo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u?W.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?FS(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(W.mapper=n.mapper),W}function gwe(n){let a=gu(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;oo(n,g=>!!bg(g,_))&&c.push(Wh(_,ti(mn(n,g=>n0(g,_))),gt(n,g=>bg(g,_).isReadonly)))}return c}return Xe}function Qot(n){let a=Yhe(mn(n.types,_=>_===Lt?[cn]:Ho(_,0))),c=Yhe(mn(n.types,_=>Ho(_,1))),u=gwe(n.types);hf(n,K,a,c,u)}function $B(n,a){return n?a?ga([n,a]):n:a}function ywe(n){let a=vv(n,u=>Ho(u,1).length>0),c=mn(n,Mi);if(a>0&&a===vv(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function Zot(n,a,c,u){let _=[];for(let g=0;gM);for(let M=0;M<_.length;M++){let W=n.types[M];if(!g[M]){let V=Ho(W,1);V.length&&T>0&&(V=mn(V,te=>{let ye=m8(te);return ye.resolvedReturnType=Zot(ds(te),_,g,M),ye})),c=vwe(c,V)}a=vwe(a,Ho(W,0)),u=ru(gu(W),(V,te)=>bwe(V,te,!1),u)}hf(n,K,a||Xe,c||Xe,u||Xe)}function vwe(n,a){for(let c of a)(!n||oo(n,u=>!v5(u,c,!1,!1,!1,x8)))&&(n=Tn(n,c));return n}function bwe(n,a,c){if(n)for(let u=0;u{var W;!(M.flags&418)&&!(M.flags&512&&((W=M.declarations)!=null&&W.length)&&oo(M.declarations,Pd))&&T.set(M.escapedName,M)}),c=T}let _;if(hf(n,c,Xe,Xe,Xe),a.flags&32){let T=Wf(a),M=Rp(T);M.flags&11272192?(c=aa(DA(c)),dwe(c,_s(M))):M===G&&(_=Wh(Ne,G,!1))}let g=vZ(c);if(g?u=_ge(g):(_&&(u=Tn(u,_)),a.flags&384&&($s(a).flags&32||gt(n.properties,T=>!!(sr(T).flags&296)))&&(u=Tn(u,zr))),hf(n,c,Xe,Xe,u||Xe),a.flags&8208&&(n.callSignatures=MS(a)),a.flags&32){let T=Wf(a),M=a.members?MS(a.members.get("__constructor")):Xe;a.flags&16&&(M=Hr(M.slice(),to(n.callSignatures,W=>$_(W.declaration)?vg(W.declaration,W.typeParameters,W.thisParameter,W.parameters,T,void 0,W.minArgumentCount,W.flags&167):void 0))),M.length||(M=Jot(T)),n.constructSignatures=M}}function nat(n,a,c){return io(n,Np([a.indexType,a.objectType],[u_(0),Fh([c])]))}function rat(n){let a=gf(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 iat(n){let a=bg(n.source,Ne),c=wh(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[Wh(Ne,tee(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Xe,T=aa(),M=rat(n);for(let W of _s(n.source)){if(M){let ye=uC(W,8576);if(!ya(ye,M))continue}let V=8192|(u&&m_(W)?8:0),te=Ha(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=nat(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)}hf(n,T,Xe,Xe,g)}function QB(n){if(n.flags&4194304){let a=Mu(n.type);return zb(a)?dOe(a):J_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=QB(a);if(c!==a)return $ge(n,VA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return cl(n,QB,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===ac?n:ga(Nc(n.types,QB))}return n}function $he(n){return Tl(n)&4096}function Qhe(n,a,c,u){for(let _ of _s(n))u(uC(_,a));if(n.flags&1)u(Ne);else for(let _ of gu(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function oat(n){let a=aa(),c;hf(n,K,Xe,Xe,Xe);let u=l_(n),_=gf(n),g=n.target||n,T=lv(g),M=_Z(g)!==2,W=sy(g),V=Mu(LA(n)),te=wh(n),ye=Ce?128:8576;aC(n)?Qhe(V,ye,Ce,_e):qA(QB(_),_e),hf(n,a,Xe,Xe,c||Xe);function _e(mt){let At=T?io(T,T8(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=ti([sn.links.nameType,At]),sn.links.keyType=ti([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&&m_(nr)),On=J&&!Mn&&nr&&nr.flags&16777216,Ln=nr?$he(nr):0,Yn=Ha(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=M?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,T8(n.mapper,u,mt)),nr=_8(V,At),Mn=!!(te&1||!(te&2)&&nr?.isReadonly),an=Wh(rn,sn,Mn);c=bwe(c,an,!0)}}}function aat(n){if(!n.links.type){let a=n.links.mappedType;if(!Lh(n,0))return a.containsError=!0,pt;let c=sy(a.target||a),u=T8(a.mapper,l_(a),n.links.keyType),_=io(c,u),g=J&&n.flags&16777216&&!Rl(_,49152)?Bb(_,!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=pt),n.links.type=g}return n.links.type}function l_(n){return n.typeParameter||(n.typeParameter=MA(Sr(n.declaration.typeParameter)))}function gf(n){return n.constraintType||(n.constraintType=Pu(l_(n))||pt)}function lv(n){return n.declaration.nameType?n.nameType||(n.nameType=io(Ti(n.declaration.nameType),n.mapper)):void 0}function sy(n){return n.templateType||(n.templateType=n.declaration.type?io(op(Ti(n.declaration.type),!0,!!(wh(n)&4)),n.mapper):pt)}function Ewe(n){return wx(n.declaration.typeParameter)}function aC(n){let a=Ewe(n);return a.kind===198&&a.operator===143}function LA(n){if(!n.modifiersType)if(aC(n))n.modifiersType=io(Ti(Ewe(n).type),n.mapper);else{let a=Gge(n.declaration),c=gf(a),u=c&&c.flags&262144?Pu(c):c;n.modifiersType=u&&u.flags&4194304?io(u.type,n.mapper):un}return n.modifiersType}function wh(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 Swe(n){let a=wh(n);return a&8?-1:a&4?1:0}function Zhe(n){let a=Swe(n),c=LA(n);return a||(Hu(c)?Swe(c):0)}function sat(n){return!!(kr(n)&32&&wh(n)&4)}function Hu(n){if(kr(n)&32){let a=gf(n);if(GA(a))return!0;let c=lv(n);if(c&&GA(io(c,WS(l_(n),a))))return!0}return!1}function _Z(n){let a=lv(n);return a?ya(a,l_(n))?1:2:0}function c_(n){return n.members||(n.flags&524288?n.objectFlags&4?Uot(n):n.objectFlags&3?jot(n):n.objectFlags&1024?iat(n):n.objectFlags&16?tat(n):n.objectFlags&32?oat(n):R.fail("Unhandled object type "+R.formatObjectFlags(n.objectFlags)):n.flags&1048576?Qot(n):n.flags&2097152?eat(n):R.fail("Unhandled type "+R.formatTypeFlags(n.flags))),n}function Pb(n){return n.flags&524288?c_(n).properties:Xe}function t0(n,a){if(n.flags&524288){let u=c_(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 _s(c))if(!a.has(u.escapedName)){let _=t5(n,u.escapedName,!!(n.flags&2097152));_&&a.set(u.escapedName,_)}if(n.flags&1048576&&gu(c).length===0)break}n.resolvedProperties=JE(a)}return n.resolvedProperties}function _s(n){return n=LM(n),n.flags&3145728?ZB(n):Pb(n)}function lat(n,a){n=LM(n),n.flags&3670016&&c_(n).members.forEach((c,u)=>{ex(c,u)&&a(c,u)})}function cat(n,a){return a.properties.some(u=>{let _=u.name&&(Xm(u.name)?Ku(mk(u.name)):uv(u.name)),g=_&&Qf(_)?Zf(_):void 0,T=g===void 0?void 0:Ue(n,g);return!!T&&C8(T)&&!ya(fx(u),T)})}function dat(n){let a=ti(n);if(!(a.flags&1048576))return sbe(a);let c=aa();for(let u of n)for(let{escapedName:_}of sbe(u))if(!c.has(_)){let g=Cwe(a,_);g&&c.set(_,g)}return Oo(c.values())}function kA(n){return n.flags&262144?Pu(n):n.flags&8388608?pat(n):n.flags&16777216?Iwe(n):Fd(n)}function Pu(n){return e5(n)?wM(n):void 0}function uat(n,a){let c=A8(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=>Qr(u,4096))||n.flags&3145728&>(n.types,u=>wA(u,a))||n.flags&8388608&&wA(n.objectType,a+1)||n.flags&16777216&&wA(Iwe(n),a+1)||n.flags&33554432&&wA(n.baseType,a)||kr(n)&32&&uat(n,a)||zb(n)&&Kl(kS(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&wA(u,a))>=0))}function pat(n){return e5(n)?fat(n):void 0}function ege(n){let a=dy(n,!1);return a!==n?a:kA(n)}function fat(n){if(ige(n))return DZ(n.objectType,n.indexType);let a=ege(n.indexType);if(a&&a!==n.indexType){let u=kb(n.objectType,a,n.accessFlags);if(u)return u}let c=ege(n.objectType);if(c&&c!==n.objectType)return kb(c,n.indexType,n.accessFlags)}function tge(n){if(!n.resolvedDefaultConstraint){let a=Xst(n),c=o0(n);n.resolvedDefaultConstraint=xt(a)?c:xt(c)?a:ti([a,c])}return n.resolvedDefaultConstraint}function Twe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=dy(n.checkType,!1),c=a===n.checkType?kA(a):a;if(c&&c!==n.checkType){let u=$ge(n,VA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function Awe(n){return Twe(n)||tge(n)}function Iwe(n){return e5(n)?Awe(n):void 0}function mat(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||zh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||zh(_))&&(c=Tn(c,_));return h5(ga(c),!1)}}function Fd(n){if(n.flags&464781312||zb(n)){let a=nge(n);return a!==Gs&&a!==ed?a:void 0}return n.flags&4194304?ws:void 0}function ly(n){return Fd(n)||n}function e5(n){return nge(n)!==ed}function nge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!Lh(g,4))return ed;let T,M=UZ(g);if((a.length<10||a.length<50&&!zo(a,M))&&(a.push(M),T=_(dy(g,!1)),a.pop()),!H_()){if(g.flags&262144){let W=hge(g);if(W){let V=Ve(W,f.Type_parameter_0_has_a_circular_constraint,Vn(g));D&&!N0(W,D)&&!N0(D,W)&&Pa(V,Pr(D,f.Circularity_originates_in_type_at_this_location))}}T=ed}g.immediateBaseConstraint=T||Gs}return g.immediateBaseConstraint}function u(g){let T=c(g);return T!==Gs&&T!==ed?T:void 0}function _(g){if(g.flags&262144){let T=wM(g);return g.isThisType||!T?T:u(T)}if(g.flags&3145728){let T=g.types,M=[],W=!1;for(let V of T){let te=u(V);te?(te!==V&&(W=!0),M.push(te)):W=!0}return W?g.flags&1048576&&M.length===T.length?ti(M):g.flags&2097152&&M.length?ga(M):void 0:g}if(g.flags&4194304)return ws;if(g.flags&134217728){let T=g.types,M=to(T,u);return M.length===T.length?FA(g.texts,M):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(ige(g))return u(DZ(g.objectType,g.indexType));let T=u(g.objectType),M=u(g.indexType),W=T&&M&&kb(T,M,g.accessFlags);return W&&u(W)}if(g.flags&16777216){let T=Awe(g);return T&&u(T)}if(g.flags&33554432)return u(Ege(g));if(zb(g)){let T=mn(kS(g),(M,W)=>{let V=M.flags&262144&&g.target.elementFlags[W]&8&&u(M)||M;return V!==M&&ap(V,te=>s0(te)&&!zb(te))?V:M});return Fh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function _at(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Up(n,a,!0))}function rge(n){if(n.default)n.default===cd&&(n.default=ed);else if(n.target){let a=rge(n.target);n.default=a?io(a,n.mapper):Gs}else{n.default=cd;let a=n.symbol&&gn(n.symbol.declarations,u=>ml(u)&&u.default),c=a?Ti(a):Gs;n.default===cd&&(n.default=c)}return n.default}function OA(n){let a=rge(n);return a!==Gs&&a!==ed?a:void 0}function hat(n){return rge(n)!==ed}function xwe(n){return!!(n.symbol&&gn(n.symbol.declarations,a=>ml(a)&&a.default))}function Rwe(n){return n.resolvedApparentType||(n.resolvedApparentType=gat(n))}function gat(n){let a=n.target??n,c=A8(a);if(c&&!a.declaration.nameType){let u=LA(n),_=Hu(u)?Rwe(u):Fd(u);if(_&&ap(_,g=>s0(g)||Dwe(g)))return io(a,VA(c,_,n.mapper))}return n}function Dwe(n){return!!(n.flags&2097152)&&oo(n.types,s0)}function ige(n){let a;return!!(n.flags&8388608&&kr(a=n.objectType)&32&&!Hu(a)&&GA(n.indexType)&&!(wh(a)&8)&&!a.declaration.nameType)}function Mu(n){let a=n.flags&465829888?Fd(n)||un:n,c=kr(a);return c&32?Rwe(a):c&4&&a!==n?Up(a,n):a.flags&2097152?_at(a,n):a.flags&402653316?Ql:a.flags&296?gc:a.flags&2112?est():a.flags&528?ll:a.flags&12288?tOe():a.flags&67108864?Ca:a.flags&4194304?ws:a.flags&2&&!J?Ca:a}function LM(n){return d_(Mu(d_(n)))}function Cwe(n,a,c){var u,_,g;let T,M,W,V=n.flags&1048576,te,ye=4,_e=V?0:8,je=!1;for(let Yn of n.types){let jn=Mu(Yn);if(!(Ut(jn)||jn.flags&131072)){let $n=ha(jn,a,c),xo=$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)&&sye(T,$n,(Wo,fo)=>Wo===fo?-1:0)===-1)je=!!T.parent&&!!Nn(Nr(T.parent));else{M||(M=new Map,M.set(ba(T),T));let Wo=ba($n);M.has(Wo)||M.set(Wo,$n)}V&&m_($n)?_e|=8:!V&&!m_($n)&&(_e&=-9),_e|=(xo&6?0:256)|(xo&4?512:0)|(xo&2?1024:0)|(xo&256?2048:0),rve($n)||(ye=2)}else if(V){let vo=!f8(a)&&ox(jn,a);vo?(_e|=32|(vo.isReadonly?8:0),W=Tn(W,wa(jn)?JZ(jn)||Me:vo.type)):d0(jn)&&!(kr(jn)&2097152)?(_e|=32,W=Tn(W,Me)):_e|=16}}}if(!T||V&&(M||_e&48)&&_e&1536&&!(M&&yat(M.values())))return;if(!M&&!(_e&16)&&!W)if(je){let Yn=(u=ii(T,dh))==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=PS(T),jn}else return T;let mt=M?Oo(M.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=PS(Yn);(Mn||$n!==jn)&&(Mn=Tn(Mn||nr.slice(),$n)),jn!==rn&&(_e|=64),(C8(jn)||zA(jn))&&(_e|=128),jn.flags&131072&&jn!==sd&&(_e|=131072),nr.push(jn)}Hr(nr,W);let Ln=Ha(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?ti(nr):ga(nr),Mn&&(Ln.links.writeType=V?ti(Mn):ga(Mn))),Ln}function Nwe(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=Cwe(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 yat(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{zo(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function t5(n,a,c){let u=Nwe(n,a,c);return u&&!(Tl(u)&16)?u:void 0}function d_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=vat(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(gt(ZB(n),bat)?33554432:0)),n.objectFlags&33554432?Fr:n):n}function vat(n){let a=Nc(n.types,d_);if(a===n.types)return n;let c=ti(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function bat(n){return Pwe(n)||Mwe(n)}function Pwe(n){return!(n.flags&16777216)&&(Tl(n)&131264)===192&&!!(sr(n).flags&131072)}function Mwe(n){return!n.valueDeclaration&&!!(Tl(n)&1024)}function oge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&>(n.types,oge)||n.flags&2097152&&Eat(n))}function Eat(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,mo));return d_(a)!==a}function age(n,a){if(a.flags&2097152&&kr(a)&33554432){let c=Vr(ZB(a),Pwe);if(c)return Fo(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),Mwe);if(u)return Fo(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=LM(n),n.flags&524288){let T=c_(n),M=T.members.get(a);if(M&&!u&&((_=n.symbol)==null?void 0:_.flags)&512&&((g=qi(n.symbol).typeOnlyExportStarMap)!=null&&g.has(a)))return;if(M&&wm(M,u))return M;if(c)return;let W=T===tn?Lt:T.callSignatures.length?Un:T.constructSignatures.length?go:void 0;if(W){let V=t0(W,a);if(V)return V}return t0(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=c_(n);return a===0?c.callSignatures:c.constructSignatures}return Xe}function Ho(n,a){let c=n5(LM(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)&&Sat(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=cl(n,T=>Ob((Lwe(T.symbol.parent)?$o:Jo).typeParameters[0],T.mapper)),g=zd(_,Fm(n,T=>Lwe(T.symbol.parent)));return n.arrayFallbackSignatures=Ho(Ue(g,u),a)}n.arrayFallbackSignatures=c}return c}function Sat(n){return!n||!Jo.symbol||!$o.symbol?!1:!!i_(n,Jo.symbol)||!!i_(n,$o.symbol)}function Lwe(n){return!n||!$o.symbol?!1:!!i_(n,$o.symbol)}function sge(n,a){return Vr(n,c=>c.keyType===a)}function lge(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 _?Wh(un,ga(mn(_,g=>g.type)),ru(_,(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)&&rg(n.value))}function cge(n){return n.flags&3670016?c_(n).indexInfos:Xe}function gu(n){return cge(LM(n))}function bg(n,a){return sge(gu(n),a)}function n0(n,a){var c;return(c=bg(n,a))==null?void 0:c.type}function dge(n,a){return gu(n).filter(c=>ix(a,c.keyType))}function _8(n,a){return lge(gu(n),a)}function ox(n,a){return _8(n,f8(a)?xi:Ku(Vi(a)))}function kwe(n){var a;let c;for(let u of Dv(n))c=Ig(c,MA(u.symbol));return c?.length?c:Ec(n)?(a=kM(n))==null?void 0:a.typeParameters:void 0}function uge(n){let a=[];return n.forEach((c,u)=>{RS(u)||a.push(c)}),a}function hZ(n,a){if(qc(n))return;let c=Uu(be,'"'+n+'"',512);return c&&a?es(c):c}function h8(n){if(xI(n)||pk(n)||fk(n))return!0;if(n.initializer){let c=lm(n.parent),u=n.parent.parameters.indexOf(n);return R.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 Tat(n){return Vo(n)&&!I_(n)&&n.questionToken}function r5(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function Oh(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]=pt;let M=xye(u);for(let W=g;W<_;W++){let V=OA(a[W]);u&&V&&(uy(V,un)||uy(V,Ca))&&(V=G),T[W]=V?io(V,Np(a,T)):M}return T.length=a.length,T}return n&&n.slice()}function lm(n){let a=Zr(n);if(!a.resolvedSignature){let c=[],u=0,_=0,g,T=ir(n)?nF(n):void 0,M=!1,W=_T(n),V=rR(n);!W&&ir(n)&&Sie(n)&&!tre(n)&&!rE(n)&&(u|=32);for(let mt=V?1:0;mtW.arguments.length&&!sn||fk(At)||(_=c.length)}if((n.kind===177||n.kind===178)&&oC(n)&&(!M||!g)){let mt=n.kind===177?178:177,At=dl(Sr(n),mt);At&&(g=sZ(At))}T&&T.typeExpression&&(g=UA(Ha(1,"this"),Ti(T.typeExpression)));let ye=vE(n)?dE(n):n,_e=ye&&Nl(ye)?Wf(es(ye.parent.symbol)):void 0,je=_e?_e.localTypeParameters:kwe(n);(FV(n)||ir(n)&&Aat(n,c))&&(u|=1),(RR(n)&&Qr(n,64)||Nl(n)&&Qr(n.parent,64))&&(u|=4),a.resolvedSignature=vg(n,je,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function Aat(n,a){if(vE(n)||!pge(n))return!1;let c=Qs(n.parameters),u=c?kx(c):iE(n).filter($m),_=Wl(u,T=>T.typeExpression&&j4(T.typeExpression.type)?T.typeExpression.type:void 0),g=Ha(3,"args",32768);return _?g.links.type=zd(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 kM(n){if(!(ir(n)&&Fs(n)))return;let a=nE(n);return a?.typeExpression&&QA(Ti(a.typeExpression))}function Iat(n,a){let c=kM(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?J5(c,u):f_(c,u)}function xat(n){let a=kM(n);return a&&ds(a)}function pge(n){let a=Zr(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===Ft.escapedName&&Q8(u)===Ft;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)&&!Xh(u)&&!!Bo(u,c)}}}function MS(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&&!Nl(u)&&l0(T,G),a.push(lm(T))}continue}}a.push(!z0(u)&&!bm(u)&&kM(u)||lm(u))}}return a}function wwe(n){let a=hu(n,n);if(a){let c=Ip(a);if(c)return sr(c)}return G}function r0(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?dlt(a,n.mapper):Pe}else if(n.compositeSignatures)n.resolvedTypePredicate=Ist(n.compositeSignatures,n.compositeKind)||Pe;else{let a=n.declaration&&$f(n.declaration),c;if(!a){let u=kM(n.declaration);u&&n!==u&&(c=Ff(u))}n.resolvedTypePredicate=a&&kk(a)?Rat(a,n):c||Pe}R.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Pe?void 0:n.resolvedTypePredicate}function Rat(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 Owe(n,a,c){return a!==2097152?ti(n,c):ga(n)}function ds(n){if(!n.resolvedReturnType){if(!Lh(n,3))return pt;let a=n.target?io(ds(n.target),n.mapper):n.compositeSignatures?io(Owe(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=h8e(a):n.flags&16&&(a=Bb(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,_=No(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,Is(_)):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(vE(n)){let c=iR(n);if(c&&Nl(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)&&ry(n);if(c)return c;let u=dl(Sr(n),178),_=QE(u);if(_)return _}return xat(n)}function gZ(n){return n.compositeSignatures&>(n.compositeSignatures,gZ)||!n.resolvedReturnType&&nx(n,3)>=0}function Dat(n){return Wwe(n)||G}function Wwe(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]),c=wa(a)?JZ(a):a;return c&&n0(c,It)}}function g8(n,a,c,u){let _=fge(n,Mb(a,n.typeParameters,Oh(n.typeParameters),c));if(u){let g=XWe(ds(_));if(g){let T=m8(g);T.typeParameters=u;let M=m8(_);return M.resolvedReturnType=WA(T),M}}return _}function fge(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,Cat(n,a),!0)}function Cat(n,a){return Np(n.typeParameters,a)}function y8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Nat(n)):n}function Nat(n){return mC(n,BOe(n.typeParameters),!0)}function Pat(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Mat(n)):n}function Mat(n){return g8(n,mn(n.typeParameters,a=>a.target&&!Pu(a.target)?a.target:a),ir(n.declaration))}function Lat(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=BOe(a),u=Np(a,mn(a,g=>Pu(g)||un)),_=mn(a,g=>io(g,u)||un);for(let g=0;g{bZ(_)&&!sge(a,_)&&a.push(Wh(_,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 hge(n){return to(jr(n.symbol&&n.symbol.declarations,ml),wx)[0]}function zwe(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]=Tie(_.parent.parent);if(T.kind===183&&!a){let M=T,W=Bve(M);if(W){let V=M.typeArguments.indexOf(g);if(V()=>qft(M,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,zd(un));else if(T.kind===204)u=Tn(u,Ne);else if(T.kind===168&&T.parent.kind===200)u=Tn(u,ws);else if(T.kind===200&&T.type&&ms(T.type)===_.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let M=T.parent.checkType,W=Ti(M.type);u=Tn(u,io(W,WS(MA(Sr(M.typeParameter)),M.typeParameter.constraint?Ti(M.typeParameter.constraint):ws)))}}}return u&&ga(u)}function wM(n){if(!n.constraint)if(n.target){let a=Pu(n.target);n.constraint=a?io(a,n.mapper):Gs}else{let a=hge(n);if(!a)n.constraint=zwe(n)||Gs;else{let c=Ti(a);c.flags&1&&!Ut(c)&&(c=a.parent.parent.kind===200?ws:un),n.constraint=c}}return n.constraint===Gs?void 0:n.constraint}function Bwe(n){let a=dl(n.symbol,168),c=nm(a.parent)?QF(a.parent):a.parent;return c&&ff(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|=kr(u));return c&458752}function lC(n,a){return gt(a)&&n===Mo?un:cv(n,a)}function cv(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 Gwe(n){let a=gg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function gge(n,a,c,u,_){if(!u){u=lx(a);let T=fC(u);_=c?pv(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 Hs(n){var a,c;if(!n.resolvedTypeArguments){if(!Lh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>pt))||Xe;let u=n.node,_=u?u.kind===183?bo(n.target.outerTypeParameters,Wee(u,n.target.localTypeParameters)):u.kind===188?[Ti(u.elementType)]:mn(u.elements,Ti):Xe;H_()?n.resolvedTypeArguments=n.mapper?pv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>pt))||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 dv(n){return Nn(n.target.typeParameters)}function Vwe(n,a){let c=$s(es(a)),u=c.localTypeParameters;if(u){let _=Nn(n.typeArguments),g=Oh(u),T=ir(n);if(!(!fe&&T)&&(_u.length)){let V=T&&Gy(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 pt}if(n.kind===183&&lOe(n,Nn(n.typeArguments)!==u.length))return gge(c,n,void 0);let W=bo(c.outerTypeParameters,Mb(i5(n),u,g,T));return cv(c,W)}return LS(n,a)?c:pt}function cC(n,a,c,u){let _=$s(n);if(_===dn){let V=L3.get(n.escapedName);if(V!==void 0&&a&&a.length===1)return V===4?yge(a[0]):sx(n,a[0])}let g=qi(n),T=g.typeParameters,M=cm(a)+ax(c,u),W=g.instantiations.get(M);return W||g.instantiations.set(M,W=jOe(_,Np(T,Mb(a,T,Oh(T),ir(n.valueDeclaration))),c,u)),W}function kat(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=$s(a),u=qi(a).typeParameters;if(u){let _=Nn(n.typeArguments),g=Oh(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),pt;let T=lx(n),M=T&&(jwe(a)||!jwe(T))?T:void 0,W;if(M)W=fC(M);else if(gF(n)){let V=dC(n,2097152,!0);if(V&&V!==lt){let te=Oc(V);te&&te.flags&524288&&(M=te,W=i5(n)||(u?[]:void 0))}}return cC(a,i5(n),M,W)}return LS(n,a)?c:pt}function jwe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(F2);return!!(c&&Wp(c))}function wat(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(Bl(a))return a}}function Uwe(n){return n.parent?`${Uwe(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?`${Uwe(u)}.${c}`:c,g=se.get(_);return g||(se.set(_,g=Ha(524288,c,1048576)),g.parent=u,g.links.declaredType=Bt),g}return lt}function dC(n,a,c){let u=wat(n);if(!u)return lt;let _=js(u,a,c);return _&&_!==lt?_:c?lt:SZ(u)}function TZ(n,a){if(a===lt)return pt;if(a=xM(a)||a,a.flags&96)return Vwe(n,a);if(a.flags&524288)return kat(n,a);let c=swe(a);if(c)return LS(n,a)?vu(c):pt;if(a.flags&111551&&AZ(n)){let u=Oat(n,a);return u||(dC(n,788968),sr(a))}return pt}function Oat(n,a){let c=Zr(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 yge(n){return vge(n)?Hwe(n,un):n}function vge(n){return!!(n.flags&3145728&>(n.types,vge)||n.flags&33554432&&!OM(n)&&vge(n.baseType)||n.flags&524288&&!zh(n)||n.flags&432275456&&!zA(n))}function OM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function bge(n,a){return a.flags&3||a===n||n.flags&1?n:Hwe(n,a)}function Hwe(n,a){let c=`${yu(n)}>${yu(a)}`,u=Ao.get(c);if(u)return u;let _=hg(33554432);return _.baseType=n,_.constraint=a,Ao.set(c,_),_}function Ege(n){return OM(n)?n.baseType:ga([n.constraint,n.baseType])}function Kwe(n){return n.kind===189&&n.elements.length===1}function Jwe(n,a,c){return Kwe(a)&&Kwe(c)?Jwe(n,a.elements[0],c.elements[0]):wb(Ti(a))===wb(n)?Ti(c):void 0}function Wat(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=Jwe(n,_.checkType,_.extendsType);g&&(c=Tn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=Ti(_);if(l_(g)===wb(n)){let T=A8(g);if(T){let M=Pu(T);M&&ap(M,s0)&&(c=Tn(c,ti([It,ss])))}}}a=_}return c?bge(n,ga(c)):n}function AZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function LS(n,a){return n.typeArguments?(Ve(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?Is(n.typeName):C3),!1):!0}function qwe(n){if(Fe(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return LS(n),Ne;case"Number":return LS(n),It;case"Boolean":return LS(n),gi;case"Void":return LS(n),er;case"Undefined":return LS(n),Me;case"Null":return LS(n),ue;case"Function":case"function":return LS(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?[Wh(c,u,!1)]:Xe;return Ns(void 0,K,Xe,Xe,_)}return G}return LS(n),fe?void 0:G}}}function Fat(n){let a=Ti(n.type);return J?S5(a,65536):a}function Sge(n){let a=Zr(n);if(!a.resolvedType){if(Cg(n)&&cT(n.parent))return a.resolvedSymbol=lt,a.resolvedType=tc(n.parent.expression);let c,u,_=788968;AZ(n)&&(u=qwe(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 Xwe(n){let a=Zr(n);if(!a.resolvedType){let c=_Fe(n);a.resolvedType=vu(Hp(c))}return a.resolvedType}function Ywe(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?Mo:Ca;let u=$s(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?Mo:Ca):u:(Ve(c(n),f.Global_type_0_must_be_a_class_or_interface_type,vl(n)),a?Mo:Ca)}function Tge(n,a){return WM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Age(n,a){return WM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function IZ(n,a,c){let u=WM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&($s(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 WM(n,a,c){return gl(void 0,n,a,c,n,!1,!1,!1)}function ec(n,a,c){let u=Age(n,c);return u||c?Ywe(u,a):void 0}function zat(){return Ih||(Ih=ec("TypedPropertyDescriptor",1,!0)||Mo)}function Bat(){return Zn||(Zn=ec("TemplateStringsArray",0,!0)||Ca)}function $we(){return oi||(oi=ec("ImportMeta",0,!0)||Ca)}function Qwe(){if(!Xr){let n=Ha(0,"ImportMetaExpression"),a=$we(),c=Ha(4,"meta",8);c.parent=n,c.links.type=a;let u=aa([c]);n.members=u,Xr=Ns(n,u,Xe,Xe,Xe)}return Xr}function Zwe(n){return no||(no=ec("ImportCallOptions",0,n))||Ca}function Ige(n){return La||(La=ec("ImportAttributes",0,n))||Ca}function eOe(n){return Du||(Du=Tge("Symbol",n))}function Gat(n){return Pf||(Pf=Age("SymbolConstructor",n))}function tOe(){return z_||(z_=ec("Symbol",0,!1))||Ca}function o5(n){return Ug||(Ug=ec("Promise",1,n))||Mo}function nOe(n){return Wd||(Wd=ec("PromiseLike",1,n))||Mo}function xge(n){return Hg||(Hg=Tge("Promise",n))}function Vat(n){return Sp||(Sp=ec("PromiseConstructorLike",0,n))||Ca}function xZ(n){return O||(O=ec("AsyncIterable",1,n))||Mo}function jat(n){return Se||(Se=ec("AsyncIterator",3,n))||Mo}function Uat(n){return nt||(nt=ec("AsyncIterableIterator",1,n))||Mo}function Hat(n){return jt||(jt=ec("AsyncGenerator",3,n))||Mo}function Rge(n){return cg||(cg=ec("Iterable",1,n))||Mo}function Kat(n){return Gu||(Gu=ec("Iterator",3,n))||Mo}function Jat(n){return Z||(Z=ec("IterableIterator",1,n))||Mo}function qat(n){return rt||(rt=ec("Generator",3,n))||Mo}function Xat(n){return Ot||(Ot=ec("IteratorYieldResult",1,n))||Mo}function Yat(n){return Gt||(Gt=ec("IteratorReturnResult",1,n))||Mo}function rOe(n){return ka||(ka=ec("Disposable",0,n))||Ca}function $at(n){return kl||(kl=ec("AsyncDisposable",0,n))||Ca}function iOe(n,a=0){let c=WM(n,788968,void 0);return c&&Ywe(c,a)}function Qat(){return dd||(dd=IZ("Extract",2,!0)||lt),dd===lt?void 0:dd}function Zat(){return Ic||(Ic=IZ("Omit",2,!0)||lt),Ic===lt?void 0:Ic}function Dge(n){return Tp||(Tp=IZ("Awaited",1,n)||(n?lt:void 0)),Tp===lt?void 0:Tp}function est(){return Vu||(Vu=ec("BigInt",0,!1))||Ca}function tst(n){return Dm??(Dm=ec("ClassDecoratorContext",1,n))??Mo}function nst(n){return Cm??(Cm=ec("ClassMethodDecoratorContext",2,n))??Mo}function rst(n){return Ui??(Ui=ec("ClassGetterDecoratorContext",2,n))??Mo}function ist(n){return Kg??(Kg=ec("ClassSetterDecoratorContext",2,n))??Mo}function ost(n){return Zy??(Zy=ec("ClassAccessorDecoratorContext",2,n))??Mo}function ast(n){return Nm??(Nm=ec("ClassAccessorDecoratorTarget",2,n))??Mo}function sst(n){return fS??(fS=ec("ClassAccessorDecoratorResult",2,n))??Mo}function lst(n){return mS??(mS=ec("ClassFieldDecoratorContext",2,n))??Mo}function cst(){return ab||(ab=Tge("NaN",!1))}function dst(){return ls||(ls=IZ("Record",2,!0)||lt),ls===lt?void 0:ls}function v8(n,a){return n!==Mo?cv(n,a):Ca}function oOe(n){return v8(zat(),[n])}function aOe(n){return v8(Rge(!0),[n])}function zd(n,a){return v8(a?$o:Jo,[n])}function Cge(n){switch(n.kind){case 190:return 2;case 191:return sOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?sOe(n):1;default:return 1}}function sOe(n){return d5(n.type)?4:8}function ust(n){let a=mst(n.parent);if(d5(n))return a?$o:Jo;let u=mn(n.elements,Cge);return Nge(u,a,mn(n.elements,pst))}function pst(n){return DR(n)||To(n)?n:void 0}function lOe(n,a){return!!lx(n)||cOe(n)&&(n.kind===188?Lb(n.elementType):n.kind===189?gt(n.elements,Lb):a||gt(n.typeArguments,Lb))}function cOe(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 cOe(a);case 265:return!0}return!1}function Lb(n){switch(n.kind){case 183:return AZ(n)||!!(dC(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&Lb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Lb(n.type);case 191:return n.type.kind!==188||Lb(n.type.elementType);case 192:case 193:return gt(n.types,Lb);case 199:return Lb(n.objectType)||Lb(n.indexType);case 194:return Lb(n.checkType)||Lb(n.extendsType)||Lb(n.trueType)||Lb(n.falseType)}return!1}function fst(n){let a=Zr(n);if(!a.resolvedType){let c=ust(n);if(c===Mo)a.resolvedType=Ca;else if(!(n.kind===189&>(n.elements,u=>!!(Cge(u)&8)))&&lOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:gge(c,n,void 0);else{let u=n.kind===188?[Ti(n.elementType)]:mn(n.elements,Ti);a.resolvedType=Pge(c,u)}}return a.resolvedType}function mst(n){return PT(n)&&n.operator===148}function Fh(n,a,c=!1,u=[]){let _=Nge(a||mn(n,g=>1),c,u);return _===Mo?Ca:n.length?Pge(_,n):_}function Nge(n,a,c){if(n.length===1&&n[0]&4)return a?$o:Jo;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(","):""),_=Eo.get(u);return _||Eo.set(u,_=_st(n,a,c)),_}function _st(n,a,c){let u=n.length,_=vv(n,ye=>!!(ye&9)),g,T=[],M=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))?cl(a[mt],At=>Mge(n,zG(a,mt,At))):pt}let T=[],M=[],W=[],V=-1,te=-1,ye=-1;for(let mt=0;mt=1e4)return Ve(D,Xh(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),pt;gn(sn,(nr,Mn)=>{var an;return je(nr,At.target.elementFlags[Mn],(an=At.target.labeledElementDeclarations)==null?void 0:an[Mn])})}else je(fv(At)&&n0(At,It)||pt,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&&teM[te+At]&8?Cp(mt,It):mt)),T.splice(te+1,ye-te),M.splice(te+1,ye-te),W.splice(te+1,ye-te));let _e=Nge(M,n.readonly,W);return _e===Mo?Ca:M.length?cv(_e,T):_e;function je(mt,At,rn){At&1&&(V=M.length),At&4&&te<0&&(te=M.length),At&6&&(ye=M.length),T.push(At&2?op(mt,!0):mt),M.push(At),W.push(rn)}}function FM(n,a,c=0){let u=n.target,_=dv(n)-c;return a>u.fixedLength?tct(n)||Fh(Xe):Fh(Hs(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function dOe(n){return ti(Tn(nne(n.target.fixedLength,a=>Ku(""+a)),J_(n.target.readonly?$o:Jo)))}function hst(n,a){let c=Kl(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function b8(n,a){return n.elementFlags.length-pW(n.elementFlags,c=>!(c&a))-1}function Lge(n){return n.fixedLength+b8(n,3)}function kS(n){let a=Hs(n),c=dv(n);return a.length===c?a:a.slice(0,c)}function gst(n){return op(Ti(n.type),!0)}function yu(n){return n.id}function cy(n,a){return Sy(n,a,yu,el)>=0}function a5(n,a){let c=Sy(n,a,yu,el);return c<0?(n.splice(~c,0,a),!0):!1}function yst(n,a,c){let u=c.flags;if(!(u&131072))if(a|=u&473694207,u&465829888&&(a|=33554432),u&2097152&&kr(c)&67108864&&(a|=536870912),c===Tt&&(a|=8388608),!J&&u&98304)kr(c)&65536||(a|=4194304);else{let _=n.length,g=_&&c.id>n[_-1].id?~_:Sy(n,c,yu,el);g<0&&n.splice(~g,0,c)}return a}function uOe(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?uOe(n,a|(Ast(_)?1048576:0),_.types):yst(n,a,_),u=_);return a}function vst(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)&&!Hu(V)&&tye(c_(V))),T=n.length,M=T,W=0;for(;M>0;){M--;let V=n[M];if(g||V.flags&469499904){if(V.flags&262144&&ly(V).flags&1048576){q_(V,ti(mn(n,_e=>_e===V?Fr:_e)),Mf)&&Sv(n,M);continue}let te=V.flags&61603840?Vr(_s(V),_e=>p_(sr(_e))):void 0,ye=te&&vu(sr(te));for(let _e of n)if(V!==_e){if(W===1e5&&W/(T-M)*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&&p_(je)&&vu(je)!==ye)continue}if(q_(V,_e,Mf)&&(!(kr(sv(V))&1)||!(kr(sv(_e))&1)||a0(V,_e))){Sv(n,M);break}}}}return ua.set(u,n),n}function bst(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||OS(_)&&cy(n,_.regularType))&&Sv(n,u)}}function Est(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,_=>Sst(u,_))&&Sv(n,c)}}}function Sst(n,a){return a.flags&134217728?ree(n,a):nee(n,a)}function Tst(n){let a=[];for(let c of n)if(c.flags&2097152&&kr(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&&kr(g)&67108864){let T=g.types[0].flags&8650752?0:1;g.types[T]===c&&a5(u,g.types[1-T])}let _=Fd(c);if(ap(_,g=>cy(u,g))){let g=n.length;for(;g>0;){g--;let T=n[g];if(T.flags&2097152&&kr(T)&67108864){let M=T.types[0].flags&8650752?0:1;T.types[M]===c&&cy(u,T.types[1-M])&&Sv(n,g)}}a5(n,c)}}}function Ast(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function pOe(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&&pOe(n,u.types)}}function kge(n,a){let c=Z1(n);return c.types=a,c}function ti(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&&Sv(g,1),(T&402664352||T&16384&&T&32768)&&bst(g,T,!!(a&2)),T&128&&T&402653184&&Est(g),T&536870912&&Tst(g),a===2&&(g=vst(g,!!(T&524288)),!g))return pt;if(g.length===0)return T&65536?T&4194304?ue:We:T&32768?T&4194304?Me:Nt:Fr}if(!_&&T&1048576){let W=[];pOe(W,n);let V=[];for(let ye of g)gt(W,_e=>cy(_e.types,ye))||V.push(ye);if(!c&&W.length===1&&V.length===0)return W[0];if(ru(W,(ye,_e)=>ye+_e.types.length,0)+V.length===g.length){for(let ye of W)a5(V,ye);_=kge(1048576,V)}}let M=(T&36323331?0:32768)|(T&2097152?16777216:0);return Oge(g,M,c,u,_)}function Ist(n,a){let c,u=[];for(let g of n){let T=Ff(g);if(T){if(T.kind!==0&&T.kind!==1||c&&!wge(c,T))return;c=T,u.push(T.type)}else{let M=a!==2097152?ds(g):void 0;if(M!==Kt&&M!==En)return}}if(!c)return;let _=Owe(u,a);return r5(c.kind,c.parameterName,c.parameterIndex,_)}function wge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Oge(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),M=Qn.get(T);return M||(M=hg(1048576),M.objectFlags=a|EZ(n,98304),M.types=n,M.origin=_,M.aliasSymbol=c,M.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(M.flags|=16,M.intrinsicName="boolean"),Qn.set(T,M)),M}function xst(n){let a=Zr(n);if(!a.resolvedType){let c=lx(n);a.resolvedType=ti(mn(n.types,Ti),1,c,fC(c))}return a.resolvedType}function Rst(n,a,c){let u=c.flags;return u&2097152?mOe(n,a,c.types):(zh(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 mOe(n,a,c){for(let u of c)a=Rst(n,a,vu(u));return a}function Dst(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||zh(u)&&a&470302716)&&Sv(n,c)}}function Cst(n,a){for(let c of n)if(!cy(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||!cy(c.types,u))return!1}return!0}function Nst(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(Wb(_,u)){Sv(n,a);break}else if(zA(u))return!0}}return!1}function _Oe(n,a){for(let c=0;c!(u.flags&a))}function Pst(n){let a,c=Kl(n,T=>!!(kr(T)&32768));if(c<0)return!1;let u=c+1;for(;u!!(mt.flags&469893116)||zh(mt))){if(f5(je,_e))return ye;if(!(je.flags&1048576&&Fm(je,mt=>f5(mt,_e)))&&!f5(_e,je))return Fr;M=67108864}}}let W=cm(T)+ax(a,c),V=Er.get(W);if(!V){if(g&1048576)if(Pst(T))V=ga(T,a,c);else if(oo(T,te=>!!(te.flags&1048576&&te.types[0].flags&32768))){let te=gt(T,P8)?k:Me;_Oe(T,32768),V=ti([ga(T),te],1,a,c)}else if(oo(T,te=>!!(te.flags&1048576&&(te.types[0].flags&65536||te.types[1].flags&65536))))_Oe(T,65536),V=ti([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 pt;let te=Lst(T),ye=gt(te,_e=>!!(_e.flags&2097152))&&Wge(te)>Wge(T)?kge(2097152,T):void 0;V=ti(te,1,a,c,ye)}else V=Mst(T,M,a,c);Er.set(W,V)}return V}function hOe(n){return ru(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function s5(n){var a;let c=hOe(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 Lst(n){let a=hOe(n),c=[];for(let u=0;u=0;M--)if(n[M].flags&1048576){let W=n[M].types,V=W.length;_[M]=W[g%V],g=Math.floor(g/V)}let T=ga(_);T.flags&131072||c.push(T)}return c}function gOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?gOe(n.origin):Wge(n.types)}function Wge(n){return ru(n,(a,c)=>a+gOe(c),0)}function kst(n){let a=Zr(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 yOe(n,a){let c=hg(4194304);return c.type=n,c.indexFlags=a,c}function wst(n){let a=Z1(4194304);return a.type=n,a}function vOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=yOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=yOe(n,0))}function bOe(n,a){let c=l_(n),u=gf(n),_=lv(n.target||n);if(!_&&!(a&2))return u;let g=[];if(GA(u)){if(aC(n))return vOe(n,a);qA(u,M)}else if(aC(n)){let W=Mu(LA(n));Qhe(W,8576,!!(a&1),M)}else qA(QB(u),M);let T=a&2?cc(ti(g),W=>!(W.flags&5)):ti(g);if(T.flags&1048576&&u.flags&1048576&&cm(T.types)===cm(u.types))return u;return T;function M(W){let V=_?io(_,T8(n.mapper,c,W)):W;g.push(V===Ne?Io:V)}}function Ost(n){let a=l_(n);return c(lv(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 uv(n){if(Ki(n))return Fr;if(mp(n))return vu(po(n));if(Xa(n))return vu(Eg(n));let a=bT(n);return a!==void 0?Ku(Vi(a)):ht(n)?vu(po(n)):Fr}function uC(n,a,c){if(c||!(Tf(n)&6)){let u=qi(fZ(n)).nameType;if(!u){let _=No(n.valueDeclaration);u=n.escapedName==="default"?Ku("default"):_&&uv(_)||(q2(n)?void 0:Ku(vl(n)))}if(u&&u.flags&a)return u}return Fr}function EOe(n,a){return!!(n.flags&a||n.flags&2097152&>(n.types,c=>EOe(c,a)))}function Wst(n,a,c){let u=c&&(kr(n)&7||n.aliasSymbol)?wst(n):void 0,_=mn(_s(n),T=>uC(T,a)),g=mn(gu(n),T=>T!==zr&&EOe(T.keyType,a)?T.keyType===Ne&&a&8?Io:T.keyType:Fr);return ti(bo(_,g),1,void 0,void 0,u)}function Fge(n,a=0){return!!(n.flags&58982400||zb(n)||Hu(n)&&(!Ost(n)||_Z(n)===2)||n.flags&1048576&&!(a&4)&&oge(n)||n.flags&2097152&&Rl(n,465829888)&>(n.types,zh))}function J_(n,a=Ge){return n=d_(n),OM(n)?yge(J_(n.baseType,a)):Fge(n,a)?vOe(n,a):n.flags&1048576?ga(mn(n.types,c=>J_(c,a))):n.flags&2097152?ti(mn(n.types,c=>J_(c,a))):kr(n)&32?bOe(n,a):n===Tt?Tt:n.flags&2?Fr:n.flags&131073?ws:Wst(n,(a&2?128:402653316)|(a&1?0:12584),a===Ge)}function SOe(n){if(Ce)return n;let a=Qat();return a?cC(a,[n,Ne]):Ne}function Fst(n){let a=SOe(J_(n));return a.flags&131072?Ne:a}function zst(n){let a=Zr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=J_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Kge(V2(n.parent)):pt;break;case 148:a.resolvedType=Ti(n.type);break;default:R.assertNever(n.operator)}return a.resolvedType}function Bst(n){let a=Zr(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)?cl(a[c],V=>FA(n,zG(a,c,V))):pt;if(zo(a,Tt))return Tt;let u=[],_=[],g=n[0];if(!W(n,a))return Ne;if(u.length===0)return Ku(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("")}`,M=yi.get(T);return M||yi.set(T,M=Vst(_,u)),M;function W(V,te){for(let ye=0;yesx(n,c)):a.flags&128?Ku(TOe(n,a.value)):a.flags&134217728?FA(...jst(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||GA(a)?AOe(n,a):l5(a)?AOe(n,FA(["",""],[a])):a}function TOe(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 jst(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 AOe(n,a){let c=`${ba(n)},${yu(a)}`,u=$i.get(c);return u||$i.set(c,u=Ust(n,a)),u}function Ust(n,a){let c=gg(268435456,n);return c.type=a,c}function Hst(n,a,c,u,_){let g=hg(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function E8(n){if(fe)return!1;if(kr(n)&4096)return!0;if(n.flags&1048576)return oo(n.types,E8);if(n.flags&2097152)return gt(n.types,E8);if(n.flags&465829888){let a=nge(n);return a!==n&&E8(a)}return!1}function RZ(n,a){return Qf(n)?Zf(n):a&&rc(a)?bT(a):void 0}function zge(n,a){if(a.flags&8208){let c=Fn(n.parent,u=>!Ms(u))||n.parent;return S0(c)?v_(c)&&Fe(n)&&L8e(c,n):oo(a.declarations,u=>!Xo(u)||nv(u))}return!0}function IOe(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,M=_&&Ki(_)?void 0:RZ(c,_);if(M!==void 0){if(g&256)return u0(a,M)||G;let V=ha(a,M);if(V){if(g&64&&_&&V.declarations&&db(V)&&zge(_,V)){let ye=T?.argumentExpression??(MT(_)?_.indexType:_);rv(ye,V.declarations,M)}if(T){if(B5(V,T,jWe(T.expression,a.symbol)),MFe(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&&(Zr(_).resolvedSymbol=V),OWe(T,V))return et}let te=g&4?PS(V):sr(V);return T&&DI(T)!==1?Vb(T,te):_&&MT(_)&&P8(te)?ti([te,Me]):te}if(ap(a,wa)&&rg(M)){let te=+M;if(_&&ap(a,ye=>!ye.target.hasRestElement)&&!(g&16)){let ye=Bge(_);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),dv(a),Vi(M))}else Ve(ye,f.Property_0_does_not_exist_on_type_1,Vi(M),Vn(a))}if(te>=0)return W(bg(a,It)),f8e(a,te,g&1?k:void 0)}}if(!(c.flags&98304)&&Ad(c,402665900)){if(a.flags&131073)return a;let V=_8(a,c)||bg(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&&!Ad(c,12)){let te=Bge(_);return Ve(te,f.Type_0_cannot_be_used_as_an_index_type,Vn(c)),g&1?ti([V.type,k]):V.type}return W(V),g&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Cu(c.symbol)===a.symbol)?ti([V.type,k]):V.type}if(c.flags&131072)return Fr;if(E8(a))return G;if(T&&!kee(a)){if(d0(a)){if(fe&&c.flags&384)return $a.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 ti(Tn(te,Me))}}if(a.symbol===tt&&M!==void 0&&tt.exports.has(M)&&tt.exports.get(M).flags&418)Ve(T,f.Property_0_does_not_exist_on_type_1,Vi(M),Vn(a));else if(fe&&!B.suppressImplicitAnyIndexErrors&&!(g&128))if(M!==void 0&&BWe(M,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,M,te,te+"["+uc(T.argumentExpression)+"]")}else if(n0(a,It))Ve(T.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let te;if(M!==void 0&&(te=dve(M,a)))te!==void 0&&Ve(T.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,M,Vn(a),te);else{let ye=jut(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=Fo(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=Fo(void 0,f.Property_0_does_not_exist_on_type_1,"["+je+"]",Vn(a))}else c.flags&128||c.flags&256?_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a)):c.flags&12&&(_e=Fo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Vn(c),Vn(a)));_e=Fo(_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)),$a.add(Pg(Gn(T),T,_e))}}}return}}if(E8(a))return G;if(_){let V=Bge(_);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&&(Qh(T)||Ej(T))&&Ve(T,f.Index_signature_in_type_0_only_permits_reading,Vn(a))}}function Bge(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 xOe(n){return!!(n.flags&402653184)&&!zA(n)}function pC(n){return!!S8(n)}function BA(n){return!!(S8(n)&4194304)}function GA(n){return!!(S8(n)&8388608)}function S8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|ru(n.types,(a,c)=>a|S8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|S8(n.baseType)|S8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Hu(n)||zb(n)?4194304:0)|(n.flags&63176704||xOe(n)?8388608:0)}function dy(n,a){return n.flags&8388608?Jst(n,a):n.flags&16777216?qst(n,a):n}function ROe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Fge(n)){let u=mn(n.types,_=>dy(Cp(_,a),c));return n.flags&2097152||c?ga(u):ti(u)}}function Kst(n,a,c){if(a.flags&1048576){let u=mn(a.types,_=>dy(Cp(n,_),c));return c?ga(u):ti(u)}}function Jst(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===ed?n:n[c];n[c]=ed;let u=dy(n.objectType,a),_=dy(n.indexType,a),g=Kst(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=ROe(u,_,a);if(T)return n[c]=T}if(zb(u)&&_.flags&296){let T=jM(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return Hu(u)&&_Z(u)!==2?n[c]=cl(DZ(u,n.indexType),T=>dy(T,a)):n[c]=n}function qst(n,a){let c=n.checkType,u=n.extendsType,_=i0(n),g=o0(n);if(g.flags&131072&&wb(_)===wb(c)){if(c.flags&1||ya(jA(c),jA(u)))return dy(_,a);if(DOe(c,u))return Fr}else if(_.flags&131072&&wb(g)===wb(c)){if(!(c.flags&1)&&ya(jA(c),jA(u)))return Fr;if(c.flags&1||DOe(c,u))return dy(g,a)}return n}function DOe(n,a){return!!(ti([$B(n,a),Fr]).flags&131072)}function DZ(n,a){let c=Np([l_(n)],[a]),u=FS(n.mapper,c);return io(sy(n.target||n),u)}function Cp(n,a,c=0,u,_,g){return kb(n,a,c,u,_,g)||(u?pt:un)}function COe(n,a){return ap(n,c=>{if(c.flags&384){let u=Zf(c);if(rg(u)){let _=+u;return _>=0&&_0&&!gt(n.elements,a=>O4(a)||W4(a)||DR(a)&&!!(a.questionToken||a.dotDotDotToken))}function MOe(n,a){return pC(n)||a&&wa(n)&>(kS(n),pC)}function Vge(n,a,c,u,_){let g,T,M=0;for(;;){if(M===1e3)return Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),pt;let V=io(wb(n.checkType),a),te=io(n.extendsType,a);if(V===pt||te===pt)return pt;if(V===Tt||te===Tt)return Tt;let ye=j2(n.node.checkType),_e=j2(n.node.extendsType),je=POe(ye)&&POe(_e)&&Nn(ye.elements)===Nn(_e.elements),mt=MOe(V,je),At;if(n.inferTypeParameters){let sn=L8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=FS(sn.nonFixingMapper,a)),mt||_y(sn.inferences,V,te,1536),At=a?FS(sn.mapper,a):sn.mapper}let rn=At?io(n.extendsType,At):te;if(!mt&&!MOe(rn,je)){if(!(rn.flags&3)&&(V.flags&1||!ya(I8(V),I8(rn)))){(V.flags&1||c&&!(rn.flags&131072)&&Fm(I8(rn),nr=>ya(nr,I8(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=hg(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?_:pv(n.aliasTypeArguments,a);break}return T?ti(Tn(T,g)):g;function W(V,te){if(V.flags&16777216&&te){let ye=V.root;if(ye.outerTypeParameters){let _e=FS(V.mapper,te),je=mn(ye.outerTypeParameters,rn=>Ob(rn,_e)),mt=Np(ye.outerTypeParameters,je),At=ye.isDistributive?Ob(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&&M++,!0}}return!1}}function i0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ti(n.root.node.trueType),n.mapper))}function o0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ti(n.root.node.falseType),n.mapper))}function Xst(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ti(n.root.node.trueType),n.combinedMapper):i0(n))}function LOe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Tn(a,$s(c)))}),a}function Yst(n){return n.isDistributive&&(p5(n.checkType,n.node.trueType)||p5(n.checkType,n.node.falseType))}function $st(n){let a=Zr(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)),M={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:LOe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=Vge(M,void 0,!1),T&&(M.instantiations=new Map,M.instantiations.set(cm(T),a.resolvedType))}return a.resolvedType}function Qst(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=MA(Sr(n.typeParameter))),a.resolvedType}function kOe(n){return Fe(n)?[n]:Tn(kOe(n.left),n.right)}function Zst(n){var a;let c=Zr(n);if(!c.resolvedType){if(!Ov(n))return Ve(n.argument,f.String_literal_expected),c.resolvedSymbol=lt,c.resolvedType=pt;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=hu(n,n.argument.literal);if(!_)return c.resolvedSymbol=lt,c.resolvedType=pt;let g=!!((a=_.exports)!=null&&a.get("export=")),T=Ip(_,!1);if(Fl(n.qualifier))if(T.flags&u)c.resolvedType=wOe(n,c,T,u);else{let M=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,M,n.argument.literal.text),c.resolvedSymbol=lt,c.resolvedType=pt}else{let M=kOe(n.qualifier),W=T,V;for(;V=M.shift();){let te=M.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:Uu(xp(ye),V.escapedText,te))??_e;if(!mt)return Ve(V,f.Namespace_0_has_no_exported_member_1,Vp(W),Is(V)),c.resolvedType=pt;Zr(V).resolvedSymbol=mt,Zr(V.parent).resolvedSymbol=mt,W=mt}c.resolvedType=wOe(n,c,W,u)}}return c.resolvedType}function wOe(n,a,c,u){let _=Vl(c);return a.resolvedSymbol=_,u===111551?hFe(sr(c),n):TZ(n,_)}function OOe(n){let a=Zr(n);if(!a.resolvedType){let c=lx(n);if(Nb(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=zd(u)),a.resolvedType=u}}return a.resolvedType}function lx(n){let a=n.parent;for(;NT(a)||Q0(a)||PT(a)&&a.operator===148;)a=a.parent;return F2(a)?Sr(a):void 0}function fC(n){return n?Nr(n):void 0}function CZ(n){return!!(n.flags&524288)&&!Hu(n)}function jge(n){return py(n)||!!(n.flags&474058748)}function Uge(n,a){if(!(n.flags&1048576))return n;if(oo(n.types,jge))return Vr(n.types,py)||Ca;let c=Vr(n.types,g=>!jge(g));if(!c||Vr(n.types,g=>g!==c&&!jge(g)))return n;return _(c);function _(g){let T=aa();for(let W of _s(g))if(!(Tf(W)&6)){if(NZ(W)){let V=W.flags&65536&&!(W.flags&32768),ye=Ha(16777220,W.escapedName,$he(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 M=Ns(g.symbol,T,Xe,Xe,gu(g));return M.objectFlags|=131200,M}}function wS(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=Uge(n,_),n.flags&1048576)return s5([n,a])?cl(n,V=>wS(V,a,c,u,_)):pt;if(a=Uge(a,_),a.flags&1048576)return s5([n,a])?cl(a,V=>wS(n,V,c,u,_)):pt;if(a.flags&473960444)return n;if(BA(n)||BA(a)){if(py(n))return a;if(n.flags&2097152){let V=n.types,te=V[V.length-1];if(CZ(te)&&CZ(a))return ga(bo(V.slice(0,V.length-1),[wS(te,a,c,u,_)]))}return ga([n,a])}let g=aa(),T=new Set,M=n===Ca?gu(a):gwe([n,a]);for(let V of _s(a))Tf(V)&6?T.add(V.escapedName):NZ(V)&&g.set(V.escapedName,Hge(V,_));for(let V of _s(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=bo(V.declarations,te.declarations),je=4|V.flags&16777216,mt=Ha(je,V.escapedName),At=sr(V),rn=YZ(At),sn=YZ(ye);mt.links.type=rn===sn?At:ti([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,Hge(V,_));let W=Ns(c,g,Xe,Xe,Nc(M,V=>elt(V,_)));return W.objectFlags|=2228352|u,W}function NZ(n){var a;return!gt(n.declarations,su)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function Hge(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===m_(n))return n;let u=4|n.flags&16777216,_=Ha(u,n.escapedName,$he(n)|(a?8:0));return _.links.type=c?Me:sr(n),_.declarations=n.declarations,_.links.nameType=qi(n).nameType,_.links.syntheticOrigin=n,_}function elt(n,a){return n.isReadonly!==a?Wh(n.keyType,n.type,a,n.declaration):n}function c5(n,a,c,u){let _=gg(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 vu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=cl(n,vu)):n}function OS(n){return!!(n.flags&2976)&&n.freshType===n}function Ku(n){let a;return on.get(n)||(on.set(n,a=c5(128,n)),a)}function u_(n){let a;return Ye.get(n)||(Ye.set(n,a=c5(256,n)),a)}function PZ(n){let a,c=F0(n);return Wt.get(c)||(Wt.set(c,a=c5(2048,n)),a)}function tlt(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 nlt(n){if(n.literal.kind===106)return ue;let a=Zr(n);return a.resolvedType||(a.resolvedType=vu(po(n.literal))),a.resolvedType}function rlt(n){let a=gg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${ba(a.symbol)}`,a}function Kge(n){if(ir(n)&&Q0(n)){let a=vT(n);a&&(n=RI(a)||a)}if(oie(n)){let a=LF(n)?ff(n.left):ff(n);if(a){let c=qi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=rlt(a))}}return xi}function ilt(n){let a=wu(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!na(a)&&(!Nl(a)||N0(n,a.body)))return Wf(Sr(c)).thisType;if(c&&Ma(c)&&ur(c.parent)&&zl(c.parent)===6)return Wf(ff(c.parent.left).parent).thisType;let u=n.flags&16777216?cE(n):void 0;return u&&Ls(u)&&ur(u.parent)&&zl(u.parent)===3?Wf(ff(u.parent.left).parent).thisType:$_(a)&&N0(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),pt)}function MZ(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=ilt(n)),a.resolvedType}function WOe(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 olt(n){let a=Zr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?WOe(n):op(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Wat(FOe(n),n)}function FOe(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 nlt(n);case 183:return Sge(n);case 182:return n.assertsModifier?er:gi;case 233:return Sge(n);case 186:return Xwe(n);case 188:case 189:return fst(n);case 190:return gst(n);case 192:return xst(n);case 193:return kst(n);case 321:return Fat(n);case 323:return op(Ti(n.type));case 202:return olt(n);case 196:case 322:case 316:return Ti(n.type);case 191:return WOe(n);case 325:return sht(n);case 184:case 185:case 187:case 329:case 324:case 330:return OOe(n);case 198:return zst(n);case 199:return NOe(n);case 200:return Gge(n);case 194:return $st(n);case 195:return Qst(n);case 203:return Bst(n);case 205:return Zst(n);case 80:case 166:case 211:let a=zm(n);return a?$s(a):pt;default:return pt}}function LZ(n,a,c){if(n&&n.length)for(let u=0;uu.typeParameter),mn(c,()=>un))}function FS(n,a){return n?wZ(4,n,a):a}function llt(n,a){return n?wZ(5,n,a):a}function VA(n,a,c){return c?wZ(5,WS(n,a),c):WS(n,a)}function T8(n,a,c){return n?wZ(5,n,WS(a,c)):WS(a,c)}function clt(n){return!n.constraint&&!hge(n)||n.constraint===Gs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=_f(n.symbol),n.restrictiveInstantiation.constraint=Gs,n.restrictiveInstantiation)}function qge(n){let a=_f(n.symbol);return a.target=n,a}function dlt(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,qge),a=FS(Np(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=vg(n.declaration,u,n.thisParameter&&Xge(n.thisParameter,a),LZ(n.parameters,a,Xge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Xge(n,a){let c=qi(n);if(c.type&&!c0(c.type)&&(!(n.flags&65536)||c.writeType&&!c0(c.writeType)))return n;Tl(n)&1&&(n=c.target,a=FS(c.mapper,a));let u=Ha(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 ult(n,a,c,u){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],g=Zr(_),T=n.objectFlags&4?g.resolvedType:n.objectFlags&64?n.target:n,M=g.outerTypeParameters;if(!M){let W=Rn(_,!0);if($_(_)){let te=kwe(_);W=Hr(W,te)}M=W||Xe;let V=n.objectFlags&8388612?[_]:n.symbol.declarations;M=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?jr(M,te=>gt(V,ye=>p5(te,ye))):M,g.outerTypeParameters=M}if(M.length){let W=FS(n.mapper,a),V=mn(M,mt=>Ob(mt,W)),te=c||n.aliasSymbol,ye=c?u:pv(n.aliasTypeArguments,a),_e=cm(V)+ax(te,ye);T.instantiations||(T.instantiations=new Map,T.instantiations.set(cm(M)+ax(T.aliasSymbol,T.aliasTypeArguments),T));let je=T.instantiations.get(_e);if(!je){let mt=Np(M,V);je=T.objectFlags&4?gge(n.target,n.node,mt,te,ye):T.objectFlags&32?flt(T,mt,te,ye):Yge(T,mt,te,ye),T.instantiations.set(_e,je);let At=kr(je);if(je.flags&3899393&&!(At&524288)){let rn=gt(V,c0);kr(je)&524288||(At&52?je.objectFlags|=524288|(rn?1048576:0):je.objectFlags|=rn?0:524288)}}return je}return n}function plt(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&&Bo(_.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&&Xh(u)&&plt(u)&&FOe(u)===n;case 186:let _=u.exprName,g=Fp(_);if(!w0(g)){let T=Wm(g),M=n.symbol.declarations[0],W=M.kind===168?M.parent:n.isThisType?M:void 0;if(T.declarations&&W)return gt(T.declarations,V=>N0(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!!Bo(u,c)}}function A8(n){let a=gf(n);if(a.flags&4194304){let c=wb(a.type);if(c.flags&262144)return c}}function flt(n,a,c,u){let _=A8(n);if(_){let T=io(_,a);if(_!==T)return j8e(d_(T),g,c,u)}return io(gf(n),a)===Tt?Tt:Yge(n,a,c,u);function g(T){if(T.flags&61603843&&T!==Tt&&!Ut(T)){if(!n.declaration.nameType){let M;if(Gf(T)||T.flags&1&&nx(_,4)<0&&(M=Pu(_))&&ap(M,s0))return _lt(T,n,VA(_,T,a));if(wa(T))return mlt(T,n,_,a);if(Dwe(T))return ga(mn(T.types,g))}return Yge(n,VA(_,T,a))}return T}}function GOe(n,a){return a&1?!0:a&2?!1:n}function mlt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?VA(c,n,u):u,M=mn(kS(n),(ye,_e)=>{let je=_[_e];return _eye&1?2:ye):W&8?mn(_,ye=>ye&2?1:ye):_,te=GOe(n.target.readonly,wh(a));return zo(M,pt)?pt:Fh(M,V,te,n.target.labeledElementDeclarations)}function _lt(n,a,c){let u=VOe(a,It,!0,c);return Ut(u)?pt:zd(u,GOe(GM(n),wh(a)))}function VOe(n,a,c,u){let _=T8(u,l_(n),a),g=io(sy(n.target||n),_),T=wh(n);return J&&T&4&&!Rl(g,49152)?Bb(g,!0):J&&T&8&&c?um(g,524288):g}function Yge(n,a,c,u){R.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=l_(n),T=qge(g);_.typeParameter=T,a=FS(WS(g,T),a),T.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?u:pv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?EZ(_.aliasTypeArguments):0,_}function $ge(n,a,c,u,_){let g=n.root;if(g.outerTypeParameters){let T=mn(g.outerTypeParameters,V=>Ob(V,a)),M=(c?"C":"")+cm(T)+ax(u,_),W=g.instantiations.get(M);if(!W){let V=Np(g.outerTypeParameters,T),te=g.checkType,ye=g.isDistributive?d_(Ob(te,V)):void 0;W=ye&&te!==ye&&ye.flags&1179648?j8e(ye,_e=>Vge(g,VA(te,_e,V),c),u,_):Vge(g,V,c,u,_),g.instantiations.set(M,W)}return W}return n}function io(n,a){return n&&a?jOe(n,a,void 0,void 0):n}function jOe(n,a,c,u){var _;if(!c0(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),pt;E++,S++,A++;let g=hlt(n,a,c,u);return A--,g}function hlt(n,a,c,u){let _=n.flags;if(_&262144)return Ob(n,a);if(_&524288){let g=n.objectFlags;if(g&52){if(g&4&&!n.node){let T=n.resolvedTypeArguments,M=pv(T,a);return M!==T?Pge(n.target,M):n}return g&1024?glt(n,a):ult(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,M=pv(T,a);if(M===T&&c===n.aliasSymbol)return n;let W=c||n.aliasSymbol,V=c?u:pv(n.aliasTypeArguments,a);return _&2097152||g&&g.flags&2097152?ga(M,W,V):ti(M,1,W,V)}if(_&4194304)return J_(io(n.type,a));if(_&134217728)return FA(n.texts,pv(n.types,a));if(_&268435456)return sx(n.symbol,io(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:pv(n.aliasTypeArguments,a);return Cp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return $ge(n,FS(n.mapper,a),!1,c,u);if(_&33554432){let g=io(n.baseType,a);if(OM(n))return yge(g);let T=io(n.constraint,a);return g.flags&8650752&&pC(T)?bge(g,T):T.flags&3||ya(jA(g),jA(T))?g:g.flags&8650752?bge(g,T):ga([T,g])}return n}function glt(n,a){let c=io(n.mappedType,a);if(!(kr(c)&32))return n;let u=io(n.constraintType,a);if(!(u.flags&4194304))return n;let _=E8e(io(n.source,a),c,u);return _||n}function I8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,_l))}function jA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Bs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function ylt(n,a){return Wh(n.keyType,io(n.type,a),n.isReadonly,n.declaration)}function zf(n){switch(R.assert(n.kind!==174||bm(n)),n.kind){case 218:case 219:case 174:case 262:return UOe(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 UOe(n){return z6(n)||vlt(n)}function vlt(n){return n.typeParameters||$f(n)||!n.body?!1:n.body.kind!==241?zf(n.body):!!x0(n.body,a=>!!a.expression&&zf(a.expression))}function OZ(n){return(z0(n)||bm(n))&&UOe(n)}function HOe(n){if(n.flags&524288){let a=c_(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,HOe));return n}function uy(n,a){return q_(n,a,np)}function x8(n,a){return q_(n,a,np)?-1:0}function Qge(n,a){return q_(n,a,ju)?-1:0}function blt(n,a){return q_(n,a,xh)?-1:0}function Wb(n,a){return q_(n,a,xh)}function f5(n,a){return q_(n,a,Mf)}function ya(n,a){return q_(n,a,ju)}function a0(n,a){return n.flags&1048576?oo(n.types,c=>a0(c,a)):a.flags&1048576?gt(a.types,c=>a0(n,c)):n.flags&2097152?gt(n.types,c=>a0(c,a)):n.flags&58982400?a0(Fd(n)||un,a):zh(a)?!!(n.flags&67633152):a===Re?!!(n.flags&67633152)&&!zh(n):a===Lt?!!(n.flags&524288)&&Pye(n):rC(n,sv(a))||Gf(a)&&!GM(a)&&a0(n,$o)}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,ju,c,u,_,g)}function Fb(n,a,c,u,_,g){return Zge(n,a,ju,c,u,_,g,void 0)}function Zge(n,a,c,u,_,g,T,M){return q_(n,a,c)?!0:!u||!R8(_,n,a,c,g,T,M)?Bf(n,a,c,u,g,T,M):!1}function KOe(n){return!!(n.flags&16777216||n.flags&2097152&>(n.types,KOe))}function R8(n,a,c,u,_,g,T){if(!n||KOe(c))return!1;if(!Bf(a,c,u,void 0)&&Elt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!ub(n))break;case 294:case 217:return R8(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return R8(n.right,a,c,u,_,g,T)}break;case 210:return Clt(n,a,c,u,g,T);case 209:return Rlt(n,a,c,u,g,T);case 292:return xlt(n,a,c,u,g,T);case 219:return Slt(n,a,c,u,g,T)}return!1}function Elt(n,a,c,u,_,g,T){let M=Ho(a,0),W=Ho(a,1);for(let V of[W,M])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 Slt(n,a,c,u,_,g){if(Uo(n.body)||gt(n.parameters,hF))return!1;let T=QA(a);if(!T)return!1;let M=Ho(c,0);if(!Nn(M))return!1;let W=n.body,V=ds(T),te=ti(mn(M,ds));if(!Bf(V,te,u,void 0)){let ye=W&&R8(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)),!(Bc(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 JOe(n,a,c){let u=kb(a,c);if(u)return u;if(a.flags&1048576){let _=t8e(n,a);if(_)return kb(_,c)}}function qOe(n,a){L5(n,a,!1);let c=ZM(n,1);return W8(),c}function _5(n,a,c,u,_,g){let T=!1;for(let M of n){let{errorNode:W,innerExpression:V,nameType:te,errorMessage:ye}=M,_e=JOe(a,c,te);if(!_e||_e.flags&8388608)continue;let je=kb(a,te);if(!je)continue;let mt=RZ(te,void 0);if(!Bf(je,_e,u,void 0)){let At=V&&R8(V,je,_e,u,void 0,_,g);if(T=!0,!At){let rn=g||{},sn=V?qOe(V,je):je;if(Ie&&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));$a.add(nr),rn.errors=[nr]}else{let nr=!!(mt&&(ha(c,mt)||lt).flags&16777216),Mn=!!(mt&&(ha(a,mt)||lt).flags&16777216);_e=Gb(_e,nr),je=Gb(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=_8(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 Tlt(n,a,c,u,_,g){let T=cc(c,KZ),M=cc(c,te=>!KZ(te)),W=M!==Fr?Xve(13,0,M,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?JOe(a,T,je):void 0;if(rn&&!(rn.flags&8388608)&&(At=W?ti([W,rn]):rn),!At)continue;let sn=kb(a,je);if(!sn)continue;let nr=RZ(je,void 0);if(!Bf(sn,At,u,void 0)){let Mn=_e&&R8(_e,sn,At,u,void 0,_,g);if(V=!0,!Mn){let an=g||{},On=_e?qOe(_e,sn):sn;if(Ie&&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));$a.add(Ln),an.errors=[Ln]}else{let Ln=!!(nr&&(ha(T,nr)||lt).flags&16777216),Yn=!!(nr&&(ha(a,nr)||lt).flags&16777216);At=Gb(At,Ln),sn=Gb(sn,Ln&&Yn),Bf(On,At,u,ye,mt,_,an)&&On!==sn&&Bf(sn,At,u,ye,mt,_,an)}}}}return V}function*Alt(n){if(Nn(n.properties))for(let a of n.properties)o1(a)||Qye(mk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Ku(mk(a.name))})}function*Ilt(n,a){if(!Nn(n.children))return;let c=0;for(let u=0;u1,rn,sn;if(Rge(!1)!==Mo){let Mn=aOe(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=Fh(yee(V,0)),an=Ilt(V,W);T=Tlt(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=XOe(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(!M){let V=uc(n.parent.tagName),te=w5(YA(n)),ye=te===void 0?"children":Vi(te),_e=Cp(c,Ku(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;M={...je,key:"!!ALREADY FORMATTED!!",message:nU(je,V,ye,Vn(_e))}}return M}}function*YOe(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=Pat(a),n=YWe(n,a,void 0,T));let te=Kp(n),ye=G8(n),_e=G8(a);(ye||_e)&&io(ye||_e,M);let je=a.declaration?a.declaration.kind:0,mt=!(c&3)&&re&&je!==174&&je!==173&&je!==176,At=-1,rn=r0(n);if(rn&&rn!==er){let Mn=r0(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,zh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function zM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function QOe(n){return n.flags&524288&&!Hu(n)&&_s(n).length===0&&gu(n).length===1&&!!bg(n,Ne)||n.flags&3145728&&oo(n.types,QOe)||!1}function nye(n,a,c){let u=n.flags&8?Cu(n):n,_=a.flags&8?Cu(a):a;if(u===_)return!0;if(u.escapedName!==_.escapedName||!(u.flags&256)||!(_.flags&256))return!1;let g=ba(u)+","+ba(_),T=ev.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let M=sr(_);for(let W of _s(sr(u)))if(W.flags&8){let V=ha(M,W.escapedName);if(!V||!(V.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,vl(W),Vn($s(_),void 0,64)),ev.set(g,6)):ev.set(g,2),!1;let te=IC(dl(W,306)),ye=IC(dl(V,306));if(te!==ye){let _e=typeof te=="string",je=typeof ye=="string";if(te!==void 0&&ye!==void 0){if(!c)ev.set(g,2);else{let mt=_e?`"${Zh(te)}"`:te,At=je?`"${Zh(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),ev.set(g,6)}return!1}if(_e||je){if(!c)ev.set(g,2);else{let mt=te??ye;R.assert(typeof mt=="string");let At=`"${Zh(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),ev.set(g,6)}return!1}}}return ev.set(g,1),!0}function D8(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&&nye(n.symbol,a.symbol,u)||_&1024&&g&1024&&(_&1048576&&g&1048576&&nye(n.symbol,a.symbol,u)||_&2944&&g&2944&&n.value===a.value&&nye(n.symbol,a.symbol,u))||_&32768&&(!J&&!(g&3145728)||g&49152)||_&65536&&(!J&&!(g&3145728)||g&65536)||_&524288&&g&67108864&&!(c===Mf&&zh(n)&&!(kr(n)&8192))||(c===ju||c===Ap)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||Llt(a)))}function q_(n,a,c){if(OS(n)&&(n=n.regularType),OS(a)&&(a=a.regularType),n===a)return!0;if(c!==np){if(c===Ap&&!(a.flags&131072)&&D8(a,n,c)||D8(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 ZOe(n,a){return kr(n)&2048&&Qye(a.escapedName)}function h5(n,a){for(;;){let c=OS(n)?n.regularType:zb(n)?wlt(n,a):kr(n)&4?n.node?cv(n.target,Hs(n)):cye(n)||n:n.flags&3145728?klt(n,a):n.flags&33554432?a?n.baseType:Ege(n):n.flags&25165824?dy(n,a):n;if(c===n)return c;n=c}}function klt(n,a){let c=d_(n);if(c!==n)return c;if(n.flags&2097152&>(n.types,zh)){let u=Nc(n.types,_=>h5(_,a));if(u!==n.types)return ga(u)}return n}function wlt(n,a){let c=kS(n),u=Nc(c,_=>_.flags&25165824?dy(_,a):_);return c!==u?Mge(n.target,u):n}function Bf(n,a,c,u,_,g,T){var M;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;R.assert(c!==np||!u,"no error reporting in identity checking");let jn=gr(n,a,3,!!u,_);if(Ln&&Wo(),nr){let Ze=VZ(n,a,0,c,!1);c.set(Ze,6),(M=rr)==null||M.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&&(foe($t,W),W=$t)}let Ze;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);Ze=Tn(Ze,Ar)}}let vt=Pg(Gn(u),u,W,Ze);V&&Pa(vt,...V),T&&(T.errors||(T.errors=[])).push(vt),(!T||!T.skipLogging)&&$a.add(vt)}return u&&T&&T.skipLogging&&jn===0&&R.assert(!!T.errors,"missed opportunity to interact with error."),jn!==0;function $n(Ze){W=Ze.errorInfo,On=Ze.lastSkippedInfo,Ln=Ze.incompatibleStack,Mn=Ze.overrideNextErrorInfo,an=Ze.skipParentCounter,V=Ze.relatedInfo}function xo(){return{errorInfo:W,lastSkippedInfo:On,incompatibleStack:Ln?.slice(),overrideNextErrorInfo:Mn,skipParentCounter:an,relatedInfo:V?.slice()}}function vo(Ze,...vt){Mn++,On=void 0,(Ln||(Ln=[])).push([Ze,...vt])}function Wo(){let Ze=Ln||[];Ln=void 0;let vt=On;if(On=void 0,Ze.length===1){fo(...Ze[0]),vt&&sp(void 0,...vt);return}let $t="",Hn=[];for(;Ze.length;){let[Ar,...bn]=Ze.pop();switch(Ar.code){case f.Types_of_property_0_are_incompatible.code:{$t.indexOf("new ")===0&&($t=`(${$t})`);let _r=""+bn[0];$t.length===0?$t=`${_r}`:$p(_r,ns(B))?$t=`${$t}.${_r}`:_r[0]==="["&&_r[_r.length-1]==="]"?$t=`${$t}${_r}`:$t=`${$t}[${_r}]`;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 _r=Ar;Ar.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?_r=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&&(_r=f.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([_r,bn[0],bn[1]])}else{let _r=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=`${_r}${$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 R.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 _r=Ar.elidedInCompatabilityPyramid;Ar.elidedInCompatabilityPyramid=!1,fo(Ar,...bn),Ar.elidedInCompatabilityPyramid=_r}vt&&sp(void 0,...vt)}function fo(Ze,...vt){R.assert(!!u),Ln&&Wo(),!Ze.elidedInCompatabilityPyramid&&(an===0?W=Fo(W,Ze,...vt):an--)}function Rc(Ze,...vt){fo(Ze,...vt),an++}function Vf(Ze){R.assert(!!W),V?V.push(Ze):V=[Ze]}function sp(Ze,vt,$t){Ln&&Wo();let[Hn,Ar]=tx(vt,$t),bn=vt,_r=Hn;if(C8(vt)&&!rye($t)&&(bn=fy(vt),R.assert(!ya(bn,$t),"generalized source shouldn't be assignable"),_r=Eb(bn)),($t.flags&8388608&&!(vt.flags&8388608)?$t.objectType.flags:$t.flags)&262144&&$t!==de&&$t!==$){let zi=Fd($t),wo;zi&&(ya(bn,zi)||(wo=ya(vt,zi)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,wo?Hn:_r,Ar,Vn(zi)):(W=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ar,_r))}if(Ze)Ze===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ie&&e8e(vt,$t).length&&(Ze=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)Ze=f.Type_0_is_not_comparable_to_type_1;else if(Hn===Ar)Ze=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ie&&e8e(vt,$t).length)Ze=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 zi=Uut(vt,$t);if(zi){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,_r,Ar,Vn(zi));return}}Ze=f.Type_0_is_not_assignable_to_type_1}fo(Ze,_r,Ar)}function Pn(Ze,vt){let $t=Sb(Ze.symbol)?Vn(Ze,Ze.symbol.valueDeclaration):Vn(Ze),Hn=Sb(vt.symbol)?Vn(vt,vt.symbol.valueDeclaration):Vn(vt);(Ql===Ze&&Ne===vt||gc===Ze&&It===vt||ll===Ze&&gi===vt||tOe()===Ze&&xi===vt)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,$t)}function Xn(Ze,vt,$t){return wa(Ze)?Ze.target.readonly&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Ze),Vn(vt)),!1):s0(vt):GM(Ze)&&b5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Ze),Vn(vt)),!1):wa(vt)?Gf(Ze):!0}function ro(Ze,vt,$t){return gr(Ze,vt,3,$t)}function gr(Ze,vt,$t=3,Hn=!1,Ar,bn=0){if(Ze===vt)return-1;if(Ze.flags&524288&&vt.flags&402784252)return c===Ap&&!(vt.flags&131072)&&D8(vt,Ze,c)||D8(Ze,vt,c,Hn?fo:void 0)?-1:(Hn&&Do(Ze,vt,Ze,vt,Ar),0);let _r=h5(Ze,!1),Gr=h5(vt,!0);if(_r===Gr)return-1;if(c===np)return _r.flags!==Gr.flags?0:_r.flags&67358815?-1:(is(_r,Gr),Ai(_r,Gr,!1,0,$t));if(_r.flags&262144&&kA(_r)===Gr)return-1;if(_r.flags&470302716&&Gr.flags&1048576){let zi=Gr.types,wo=zi.length===2&&zi[0].flags&98304?zi[1]:zi.length===3&&zi[0].flags&98304&&zi[1].flags&98304?zi[2]:void 0;if(wo&&!(wo.flags&98304)&&(Gr=h5(wo,!0),_r===Gr))return-1}if(c===Ap&&!(Gr.flags&131072)&&D8(Gr,_r,c)||D8(_r,Gr,c,Hn?fo:void 0))return-1;if(_r.flags&469499904||Gr.flags&469499904){if(!(bn&2)&&d0(_r)&&kr(_r)&8192&&Bd(_r,Gr,Hn))return Hn&&sp(Ar,_r,vt.aliasSymbol?vt:Gr),0;let wo=(c!==Ap||p_(_r))&&!(bn&2)&&_r.flags&405405692&&_r!==Re&&Gr.flags&2621440&&n8e(Gr)&&(_s(_r).length>0||Qee(_r)),pa=!!(kr(_r)&2048);if(wo&&!Wlt(_r,Gr,pa)){if(Hn){let Lo=Vn(Ze.aliasSymbol?Ze:_r),Aa=Vn(vt.aliasSymbol?vt:Gr),Rs=Ho(_r,0),us=Ho(_r,1);Rs.length>0&&gr(ds(Rs[0]),Gr,1,!1)||us.length>0&&gr(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,Lo,Aa):fo(f.Type_0_has_no_properties_in_common_with_type_1,Lo,Aa)}return 0}is(_r,Gr);let Ei=_r.flags&1048576&&_r.types.length<4&&!(Gr.flags&1048576)||Gr.flags&1048576&&Gr.types.length<4&&!(_r.flags&469499904)?Lu(_r,Gr,Hn,bn):Ai(_r,Gr,Hn,bn,$t);if(Ei)return Ei}return Hn&&Do(Ze,vt,_r,Gr,Ar),0}function Do(Ze,vt,$t,Hn,Ar){var bn,_r;let Gr=!!cye(Ze),zi=!!cye(vt);$t=Ze.aliasSymbol||Gr?Ze:$t,Hn=vt.aliasSymbol||zi?vt:Hn;let wo=Mn>0;if(wo&&Mn--,$t.flags&524288&&Hn.flags&524288){let pa=W;Xn($t,Hn,!0),W!==pa&&(wo=!!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(kr($t)&2048&&Hn.flags&2097152){let pa=Hn.types,fa=VS(nf.IntrinsicAttributes,u),Ei=VS(nf.IntrinsicClassAttributes,u);if(!Ut(fa)&&!Ut(Ei)&&(zo(pa,fa)||zo(pa,Ei)))return}else W=age(W,vt);if(!Ar&&wo){On=[$t,Hn];return}if(sp(Ar,$t,Hn),$t.flags&262144&&((_r=(bn=$t.symbol)==null?void 0:bn.declarations)!=null&&_r[0])&&!kA($t)){let pa=qge($t);if(pa.constraint=io(Hn,WS($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(Ze,vt){if(rr&&Ze.flags&3145728&&vt.flags&3145728){let $t=Ze,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:Ze.id,sourceSize:Ar,targetId:vt.id,targetSize:bn,pos:u?.pos,end:u?.end})}}function Es(Ze,vt){return ti(ru(Ze,(Hn,Ar)=>{var bn;Ar=Mu(Ar);let _r=Ar.flags&3145728?t5(Ar,vt):t0(Ar,vt),Gr=_r&&sr(_r)||((bn=ox(Ar,vt))==null?void 0:bn.type)||Me;return Tn(Hn,Gr)},void 0)||Xe)}function Bd(Ze,vt,$t){var Hn;if(!W5(vt)||!fe&&kr(vt)&4096)return!1;let Ar=!!(kr(Ze)&2048);if((c===ju||c===Ap)&&(KM(Re,vt)||!Ar&&py(vt)))return!1;let bn=vt,_r;vt.flags&1048576&&(bn=v4e(Ze,vt,gr)||Jgt(vt),_r=bn.flags&1048576?bn.types:[bn]);for(let Gr of _s(Ze))if(Oa(Gr,Ze.symbol)&&!ZOe(Ze,Gr)){if(!tve(bn,Gr.escapedName,Ar)){if($t){let zi=cc(bn,W5);if(!u)return R.fail();if(X0(u)||lu(u)||lu(u.parent)){Gr.valueDeclaration&&M_(Gr.valueDeclaration)&&Gn(u)===Gn(Gr.valueDeclaration.name)&&(u=Gr.valueDeclaration.name);let wo=Si(Gr),pa=VWe(wo,zi),fa=pa?Si(pa):void 0;fa?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,wo,Vn(zi),fa):fo(f.Property_0_does_not_exist_on_type_1,wo,Vn(zi))}else{let wo=((Hn=Ze.symbol)==null?void 0:Hn.declarations)&&Jc(Ze.symbol.declarations),pa;if(Gr.valueDeclaration&&Fn(Gr.valueDeclaration,fa=>fa===wo)&&Gn(wo)===Gn(u)){let fa=Gr.valueDeclaration;R.assertNode(fa,Ng);let Ei=fa.name;u=Ei,Fe(Ei)&&(pa=dve(Ei,zi))}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(zi),pa):Rc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Gr),Vn(zi))}}return!0}if(_r&&!gr(sr(Gr),Es(_r,Gr.escapedName),3,$t))return $t&&vo(f.Types_of_property_0_are_incompatible,Si(Gr)),!0}return!1}function Oa(Ze,vt){return Ze.valueDeclaration&&vt.valueDeclaration&&Ze.valueDeclaration.parent===vt.valueDeclaration}function Lu(Ze,vt,$t,Hn){if(Ze.flags&1048576){if(vt.flags&1048576){let Ar=Ze.origin;if(Ar&&Ar.flags&2097152&&vt.aliasSymbol&&zo(Ar.types,vt))return-1;let bn=vt.origin;if(bn&&bn.flags&1048576&&Ze.aliasSymbol&&zo(bn.types,Ze))return-1}return c===Ap?Te(Ze,vt,$t&&!(Ze.flags&402784252),Hn):Dr(Ze,vt,$t&&!(Ze.flags&402784252),Hn)}if(vt.flags&1048576)return yl(M8(Ze),vt,$t&&!(Ze.flags&402784252)&&!(vt.flags&402784252),Hn);if(vt.flags&2097152)return ot(Ze,vt,$t,2);if(c===Ap&&vt.flags&402784252){let Ar=Nc(Ze.types,bn=>bn.flags&465829888?Fd(bn)||un:bn);if(Ar!==Ze.types){if(Ze=ga(Ar),Ze.flags&131072)return 0;if(!(Ze.flags&2097152))return gr(Ze,vt,1,!1)||gr(vt,Ze,1,!1)}}return Te(Ze,vt,!1,1)}function wl(Ze,vt){let $t=-1,Hn=Ze.types;for(let Ar of Hn){let bn=yl(Ar,vt,!1,0);if(!bn)return 0;$t&=bn}return $t}function yl(Ze,vt,$t,Hn){let Ar=vt.types;if(vt.flags&1048576){if(cy(Ar,Ze))return-1;if(c!==Ap&&kr(vt)&32768&&!(Ze.flags&1024)&&(Ze.flags&2688||(c===xh||c===Mf)&&Ze.flags&256)){let _r=Ze===Ze.regularType?Ze.freshType:Ze.regularType,Gr=Ze.flags&128?Ne:Ze.flags&256?It:Ze.flags&2048?Dt:void 0;return Gr&&cy(Ar,Gr)||_r&&cy(Ar,_r)?-1:0}let bn=P8e(vt,Ze);if(bn){let _r=gr(Ze,bn,2,!1,void 0,Hn);if(_r)return _r}}for(let bn of Ar){let _r=gr(Ze,bn,2,!1,void 0,Hn);if(_r)return _r}if($t){let bn=t8e(Ze,vt,gr);bn&&gr(Ze,bn,2,!0,void 0,Hn)}return 0}function ot(Ze,vt,$t,Hn){let Ar=-1,bn=vt.types;for(let _r of bn){let Gr=gr(Ze,_r,2,$t,void 0,Hn);if(!Gr)return 0;Ar&=Gr}return Ar}function Te(Ze,vt,$t,Hn){let Ar=Ze.types;if(Ze.flags&1048576&&cy(Ar,vt))return-1;let bn=Ar.length;for(let _r=0;_r=_r.types.length&&bn.length%_r.types.length===0){let pa=gr(zi,_r.types[Gr%_r.types.length],3,!1,void 0,Hn);if(pa){Ar&=pa;continue}}let wo=gr(zi,vt,1,$t,void 0,Hn);if(!wo)return 0;Ar&=wo}return Ar}function ui(Ze=Xe,vt=Xe,$t=Xe,Hn,Ar){if(Ze.length!==vt.length&&c===np)return 0;let bn=Ze.length<=vt.length?Ze.length:vt.length,_r=-1;for(let Gr=0;Gr(Lo|=us?16:8,Ei(us)));let Aa;return sn===3?((bn=rr)==null||bn.instant(rr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Ze.id,sourceIdStack:_e.map(us=>us.id),targetId:vt.id,targetIdStack:je.map(us=>us.id),depth:At,targetDepth:rn}),Aa=3):((_r=rr)==null||_r.push(rr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ze.id,targetId:vt.id}),Aa=Ii(Ze,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)&&Rs(Aa===-1||Aa===3):(c.set(zi,($t?4:0)|2|Lo),Yn--,Rs(!1)),Aa;function Rs(us){for(let Cc=pa;CcGr!==Ze)&&(bn=gr(_r,vt,1,!1,void 0,Hn))}bn&&!(Hn&2)&&vt.flags&2097152&&!BA(vt)&&Ze.flags&2621440?(bn&=bi(Ze,vt,$t,void 0,!1,0),bn&&d0(Ze)&&kr(Ze)&8192&&(bn&=os(Ze,vt,!1,$t,0))):bn&&CZ(vt)&&!s0(vt)&&Ze.flags&2097152&&Mu(Ze).flags&3670016&&!gt(Ze.types,_r=>_r===vt||!!(kr(_r)&262144))&&(bn&=bi(Ze,vt,$t,void 0,!0,Hn))}return bn&&$n(Ar),bn}function Br(Ze,vt){let $t=Mu(LA(vt)),Hn=[];return Qhe($t,8576,!1,Ar=>void Hn.push(io(Ze,T8(vt.mapper,l_(vt),Ar)))),ti(Hn)}function Tr(Ze,vt,$t,Hn,Ar){let bn,_r,Gr=!1,zi=Ze.flags,wo=vt.flags;if(c===np){if(zi&3145728){let Ei=wl(Ze,vt);return Ei&&(Ei&=wl(vt,Ze)),Ei}if(zi&4194304)return gr(Ze.type,vt.type,3,!1);if(zi&8388608&&(bn=gr(Ze.objectType,vt.objectType,3,!1))&&(bn&=gr(Ze.indexType,vt.indexType,3,!1))||zi&16777216&&Ze.root.isDistributive===vt.root.isDistributive&&(bn=gr(Ze.checkType,vt.checkType,3,!1))&&(bn&=gr(Ze.extendsType,vt.extendsType,3,!1))&&(bn&=gr(i0(Ze),i0(vt),3,!1))&&(bn&=gr(o0(Ze),o0(vt),3,!1))||zi&33554432&&(bn=gr(Ze.baseType,vt.baseType,3,!1))&&(bn&=gr(Ze.constraint,vt.constraint,3,!1)))return bn;if(!(zi&524288))return 0}else if(zi&3145728||wo&3145728){if(bn=Lu(Ze,vt,$t,Hn))return bn;if(!(zi&465829888||zi&524288&&wo&1048576||zi&2097152&&wo&467402752))return 0}if(zi&17301504&&Ze.aliasSymbol&&Ze.aliasTypeArguments&&Ze.aliasSymbol===vt.aliasSymbol&&!(BZ(Ze)||BZ(vt))){let Ei=r8e(Ze.aliasSymbol);if(Ei===Xe)return 1;let Lo=qi(Ze.aliasSymbol).typeParameters,Aa=Oh(Lo),Rs=Mb(Ze.aliasTypeArguments,Lo,Aa,ir(Ze.aliasSymbol.valueDeclaration)),us=Mb(vt.aliasTypeArguments,Lo,Aa,ir(Ze.aliasSymbol.valueDeclaration)),Cc=fa(Rs,us,Ei,Hn);if(Cc!==void 0)return Cc}if(p8e(Ze)&&!Ze.target.readonly&&(bn=gr(Hs(Ze)[0],vt,1))||p8e(vt)&&(vt.target.readonly||b5(Fd(Ze)||Ze))&&(bn=gr(Ze,Hs(vt)[0],2)))return bn;if(wo&262144){if(kr(Ze)&32&&!Ze.declaration.nameType&&gr(J_(vt),gf(Ze),3)&&!(wh(Ze)&4)){let Ei=sy(Ze),Lo=Cp(vt,l_(Ze));if(bn=gr(Ei,Lo,3,$t))return bn}if(c===Ap&&zi&262144){let Ei=Pu(Ze);if(Ei)for(;Ei&&Fm(Ei,Lo=>!!(Lo.flags&262144));){if(bn=gr(Ei,vt,1,!1))return bn;Ei=Pu(Ei)}return 0}}else if(wo&4194304){let Ei=vt.type;if(zi&4194304&&(bn=gr(Ei,Ze.type,3,!1)))return bn;if(wa(Ei)){if(bn=gr(Ze,dOe(Ei),2,$t))return bn}else{let Lo=ege(Ei);if(Lo){if(gr(Ze,J_(Lo,vt.indexFlags|4),2,$t)===-1)return-1}else if(Hu(Ei)){let Aa=lv(Ei),Rs=gf(Ei),us;if(Aa&&aC(Ei)){let Cc=Br(Aa,Ei);us=ti([Cc,Aa])}else us=Aa||Rs;if(gr(Ze,us,2,$t)===-1)return-1}}}else if(wo&8388608){if(zi&8388608){if((bn=gr(Ze.objectType,vt.objectType,3,$t))&&(bn&=gr(Ze.indexType,vt.indexType,3,$t)),bn)return bn;$t&&(_r=W)}if(c===ju||c===Ap){let Ei=vt.objectType,Lo=vt.indexType,Aa=Fd(Ei)||Ei,Rs=Fd(Lo)||Lo;if(!BA(Aa)&&!GA(Rs)){let us=4|(Aa!==Ei?2:0),Cc=kb(Aa,Rs,us);if(Cc){if($t&&_r&&$n(Ar),bn=gr(Ze,Cc,2,$t,void 0,Hn))return bn;$t&&_r&&W&&(W=pa([_r])<=pa([W])?_r:W)}}}$t&&(_r=void 0)}else if(Hu(vt)&&c!==np){let Ei=!!vt.declaration.nameType,Lo=sy(vt),Aa=wh(vt);if(!(Aa&8)){if(!Ei&&Lo.flags&8388608&&Lo.objectType===Ze&&Lo.indexType===l_(vt))return-1;if(!Hu(Ze)){let Rs=Ei?lv(vt):gf(vt),us=J_(Ze,2),Cc=Aa&4,Gh=Cc?$B(Rs,us):void 0;if(Cc?!(Gh.flags&131072):gr(Rs,us,3)){let gy=sy(vt),tI=l_(vt),nI=JM(gy,-98305);if(!Ei&&nI.flags&8388608&&nI.indexType===tI){if(bn=gr(Ze,nI.objectType,2,$t))return bn}else{let sL=Ei?Gh||Rs:Gh?ga([Gh,tI]):tI,h_=Cp(Ze,sL);if(bn=gr(h_,gy,3,$t))return bn}}_r=W,$n(Ar)}}}else if(wo&16777216){if(BM(vt,je,rn,10))return 3;let Ei=vt;if(!Ei.root.inferTypeParameters&&!Yst(Ei.root)&&!(Ze.flags&16777216&&Ze.root===Ei.root)){let Lo=!ya(I8(Ei.checkType),I8(Ei.extendsType)),Aa=!Lo&&ya(jA(Ei.checkType),jA(Ei.extendsType));if((bn=Lo?-1:gr(Ze,i0(Ei),2,!1,void 0,Hn))&&(bn&=Aa?-1:gr(Ze,o0(Ei),2,!1,void 0,Hn),bn))return bn}}else if(wo&134217728){if(zi&134217728){if(c===Ap)return Tct(Ze,vt)?0:-1;io(Ze,ld)}if(ree(Ze,vt))return-1}else if(vt.flags&268435456&&!(Ze.flags&268435456)&&nee(Ze,vt))return-1;if(zi&8650752){if(!(zi&8388608&&wo&8388608)){let Ei=kA(Ze)||un;if(bn=gr(Ei,vt,1,!1,void 0,Hn))return bn;if(bn=gr(Up(Ei,Ze),vt,1,$t&&Ei!==un&&!(wo&zi&262144),void 0,Hn))return bn;if(ige(Ze)){let Lo=kA(Ze.indexType);if(Lo&&(bn=gr(Cp(Ze.objectType,Lo),vt,1,$t)))return bn}}}else if(zi&4194304){let Ei=Fge(Ze.type,Ze.indexFlags)&&kr(Ze.type)&32;if(bn=gr(ws,vt,1,$t&&!Ei))return bn;if(Ei){let Lo=Ze.type,Aa=lv(Lo),Rs=Aa&&aC(Lo)?Br(Aa,Lo):Aa||gf(Lo);if(bn=gr(Rs,vt,1,$t))return bn}}else if(zi&134217728&&!(wo&524288)){if(!(wo&134217728)){let Ei=Fd(Ze);if(Ei&&Ei!==Ze&&(bn=gr(Ei,vt,1,$t)))return bn}}else if(zi&268435456)if(wo&268435456){if(Ze.symbol!==vt.symbol)return 0;if(bn=gr(Ze.type,vt.type,3,$t))return bn}else{let Ei=Fd(Ze);if(Ei&&(bn=gr(Ei,vt,1,$t)))return bn}else if(zi&16777216){if(BM(Ze,_e,At,10))return 3;if(wo&16777216){let Aa=Ze.root.inferTypeParameters,Rs=Ze.extendsType,us;if(Aa){let Cc=L8(Aa,void 0,0,ro);_y(Cc.inferences,vt.extendsType,Rs,1536),Rs=io(Rs,Cc.mapper),us=Cc.mapper}if(uy(Rs,vt.extendsType)&&(gr(Ze.checkType,vt.checkType,3)||gr(vt.checkType,Ze.checkType,3))&&((bn=gr(io(i0(Ze),us),i0(vt),3,$t))&&(bn&=gr(o0(Ze),o0(vt),3,$t)),bn))return bn}let Ei=tge(Ze);if(Ei&&(bn=gr(Ei,vt,1,$t)))return bn;let Lo=!(wo&16777216)&&e5(Ze)?Twe(Ze):void 0;if(Lo&&($n(Ar),bn=gr(Lo,vt,1,$t)))return bn}else{if(c!==xh&&c!==Mf&&sat(vt)&&py(Ze))return-1;if(Hu(vt))return Hu(Ze)&&(bn=it(Ze,vt,$t))?bn:0;let Ei=!!(zi&402784252);if(c!==np)Ze=Mu(Ze),zi=Ze.flags;else if(Hu(Ze))return 0;if(kr(Ze)&4&&kr(vt)&4&&Ze.target===vt.target&&!wa(Ze)&&!(BZ(Ze)||BZ(vt))){if(HZ(Ze))return-1;let Lo=oye(Ze.target);if(Lo===Xe)return 1;let Aa=fa(Hs(Ze),Hs(vt),Lo,Hn);if(Aa!==void 0)return Aa}else{if(GM(vt)?ap(Ze,s0):Gf(vt)&&ap(Ze,Lo=>wa(Lo)&&!Lo.target.readonly))return c!==np?gr(n0(Ze,It)||G,n0(vt,It)||G,3,$t):0;if(zb(Ze)&&wa(vt)&&!zb(vt)){let Lo=ly(Ze);if(Lo!==Ze)return gr(Lo,vt,1,$t)}else if((c===xh||c===Mf)&&py(vt)&&kr(vt)&8192&&!py(Ze))return 0}if(zi&2621440&&wo&524288){let Lo=$t&&W===Ar.errorInfo&&!Ei;if(bn=bi(Ze,vt,Lo,void 0,!1,Hn),bn&&(bn&=lo(Ze,vt,0,Lo,Hn),bn&&(bn&=lo(Ze,vt,1,Lo,Hn),bn&&(bn&=os(Ze,vt,Ei,Lo,Hn)))),Gr&&bn)W=_r||W||Ar.errorInfo;else if(bn)return bn}if(zi&2621440&&wo&1048576){let Lo=JM(vt,36175872);if(Lo.flags&1048576){let Aa=kt(Ze,Lo);if(Aa)return Aa}}}return 0;function pa(Ei){return Ei?ru(Ei,(Lo,Aa)=>Lo+1+pa(Aa.next),0):0}function fa(Ei,Lo,Aa,Rs){if(bn=ui(Ei,Lo,Aa,$t,Rs))return bn;if(gt(Aa,Cc=>!!(Cc&24))){_r=void 0,$n(Ar);return}let us=Lo&&Flt(Lo,Aa);if(Gr=!us,Aa!==Xe&&!us){if(Gr&&!($t&>(Aa,Cc=>(Cc&7)===0)))return 0;_r=W,$n(Ar)}}}function it(Ze,vt,$t){if(c===Ap||(c===np?wh(Ze)===wh(vt):Zhe(Ze)<=Zhe(vt))){let Ar,bn=gf(vt),_r=io(gf(Ze),Zhe(Ze)<0?Ss:ld);if(Ar=gr(bn,_r,3,$t)){let Gr=Np([l_(Ze)],[l_(vt)]);if(io(lv(Ze),Gr)===io(lv(vt),Gr))return Ar&gr(io(sy(Ze),Gr),sy(vt),3,$t)}}return 0}function kt(Ze,vt){var $t;let Hn=_s(Ze),Ar=N8e(Hn,vt);if(!Ar)return 0;let bn=1;for(let fa of Ar)if(bn*=$ct(Db(fa)),bn>25)return($t=rr)==null||$t.instant(rr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ze.id,targetId:vt.id,numCombinations:bn}),0;let _r=new Array(Ar.length),Gr=new Set;for(let fa=0;fafa[Aa],!1,0,J||c===Ap))continue e}yf(wo,Lo,Iy),Ei=!0}if(!Ei)return 0}let pa=-1;for(let fa of wo)if(pa&=bi(Ze,fa,!1,Gr,!1,0),pa&&(pa&=lo(Ze,fa,0,!1,0),pa&&(pa&=lo(Ze,fa,1,!1,0),pa&&!(wa(Ze)&&wa(fa))&&(pa&=os(Ze,fa,!1,!1,0)))),!pa)return pa;return pa}function Qt(Ze,vt){if(!vt||Ze.length===0)return Ze;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(Ze),Vn(vt),mn(bn.slice(0,4),_r=>Si(_r)).join(", "),bn.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Vn(Ze),Vn(vt),mn(bn,_r=>Si(_r)).join(", ")),Ar&&W&&Mn++)}function bi(Ze,vt,$t,Hn,Ar,bn){if(c===np)return pi(Ze,vt,Hn);let _r=-1;if(wa(vt)){if(s0(Ze)){if(!vt.target.readonly&&(GM(Ze)||wa(Ze)&&Ze.target.readonly))return 0;let fa=dv(Ze),Ei=dv(vt),Lo=wa(Ze)?Ze.target.combinedFlags&4:4,Aa=vt.target.combinedFlags&4,Rs=wa(Ze)?Ze.target.minLength:0,us=vt.target.minLength;if(!Lo&&fa=gy?Ei-1-Math.min(Bm,tI):h_,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,h_,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(sL&&((_x&12||Ir&12)&&(sL=!1),sL&&Hn?.has(""+h_)))continue;let fi=Gb(Cc[h_],!!(_x&Ir&2)),Jr=Gh[Ct],ci=_x&8&&Ir&4?zd(Jr):Gb(Jr,!!(Ir&2)),Qa=gr(fi,ci,3,$t,void 0,bn);if(!Qa)return $t&&(Ei>1||fa>1)&&(nI&&h_>=gy&&Bm>=tI&&gy!==fa-tI-1?vo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,gy,fa-tI-1,Ct):vo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,h_,Ct)),0;_r&=Qa}return _r}if(vt.target.combinedFlags&12)return 0}let Gr=(c===xh||c===Mf)&&!d0(Ze)&&!HZ(Ze)&&!wa(Ze),zi=Sye(Ze,vt,Gr,!1);if(zi)return $t&&An(Ze,vt)&&Wn(Ze,vt,zi,Gr),0;if(d0(vt)){for(let fa of Qt(_s(Ze),Hn))if(!t0(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 wo=_s(vt),pa=wa(Ze)&&wa(vt);for(let fa of Qt(wo,Hn)){let Ei=fa.escapedName;if(!(fa.flags&4194304)&&(!pa||rg(Ei)||Ei==="length")&&(!Ar||fa.flags&16777216)){let Lo=ha(Ze,Ei);if(Lo&&Lo!==fa){let Aa=ln(Ze,vt,Lo,fa,Db,$t,bn,c===Ap);if(!Aa)return 0;_r&=Aa}}}return _r}function pi(Ze,vt,$t){if(!(Ze.flags&524288&&vt.flags&524288))return 0;let Hn=Qt(Pb(Ze),$t),Ar=Qt(Pb(vt),$t);if(Hn.length!==Ar.length)return 0;let bn=-1;for(let _r of Hn){let Gr=t0(vt,_r.escapedName);if(!Gr)return 0;let zi=sye(_r,Gr,gr);if(!zi)return 0;bn&=zi}return bn}function lo(Ze,vt,$t,Hn,Ar){var bn,_r;if(c===np)return ca(Ze,vt,$t);if(vt===tn||Ze===tn)return-1;let Gr=Ze.symbol&&$_(Ze.symbol.valueDeclaration),zi=vt.symbol&&$_(vt.symbol.valueDeclaration),wo=Ho(Ze,Gr&&$t===1?0:$t),pa=Ho(vt,zi&&$t===1?0:$t);if($t===1&&wo.length&&pa.length){let Rs=!!(wo[0].flags&4),us=!!(pa[0].flags&4);if(Rs&&!us)return Hn&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!__(wo[0],pa[0],Hn))return 0}let fa=-1,Ei=$t===1?Gi:ei,Lo=kr(Ze),Aa=kr(vt);if(Lo&64&&Aa&64&&Ze.symbol===vt.symbol||Lo&4&&Aa&4&&Ze.target===vt.target){R.assertEqual(wo.length,pa.length);for(let Rs=0;RsPh(gy,void 0,262144,$t);return fo(f.Type_0_is_not_assignable_to_type_1,Gh(us),Gh(Cc)),fo(f.Types_of_construct_signatures_are_incompatible),fa}}else e:for(let Rs of pa){let us=xo(),Cc=Hn;for(let Gh of wo){let gy=co(Gh,Rs,!0,Cc,Ar,Ei(Gh,Rs));if(gy){fa&=gy,$n(us);continue e}Cc=!1}return Cc&&fo(f.Type_0_provides_no_match_for_the_signature_1,Vn(Ze),Ph(Rs,void 0,void 0,$t)),0}return fa}function An(Ze,vt){let $t=n5(Ze,0),Hn=n5(Ze,1),Ar=Pb(Ze);return($t.length||Hn.length)&&!Ar.length?!!(Ho(vt,0).length&&$t.length||Ho(vt,1).length&&Hn.length):!0}function ei(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>vo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>vo(f.Call_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function Gi(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>vo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>vo(f.Construct_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function co(Ze,vt,$t,Hn,Ar,bn){let _r=c===xh?16:c===Mf?24:0;return eye($t?y8(Ze):Ze,$t?y8(vt):vt,_r,Hn,fo,bn,Gr,ld);function Gr(zi,wo,pa){return gr(zi,wo,3,pa,void 0,Ar)}}function ca(Ze,vt,$t){let Hn=Ho(Ze,$t),Ar=Ho(vt,$t);if(Hn.length!==Ar.length)return 0;let bn=-1;for(let _r=0;_rzi.keyType===Ne),Gr=-1;for(let zi of bn){let wo=c!==Mf&&!$t&&_r&&zi.type.flags&1?-1:Hu(Ze)&&_r?gr(sy(Ze),zi.type,3,Hn):Dc(Ze,zi,Hn,Ar);if(!wo)return 0;Gr&=wo}return Gr}function Dc(Ze,vt,$t,Hn){let Ar=_8(Ze,vt.keyType);return Ar?Dl(Ar,vt,$t,Hn):!(Hn&1)&&(c!==Mf||kr(Ze)&8192)&&$Z(Ze)?vc(Ze,vt,$t,Hn):($t&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,Vn(vt.keyType),Vn(Ze)),0)}function Ks(Ze,vt){let $t=gu(Ze),Hn=gu(vt);if($t.length!==Hn.length)return 0;for(let Ar of Hn){let bn=bg(Ze,Ar.keyType);if(!(bn&&gr(bn.type,Ar.type,3)&&bn.isReadonly===Ar.isReadonly))return 0}return-1}function __(Ze,vt,$t){if(!Ze.declaration||!vt.declaration)return!0;let Hn=PI(Ze.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 rye(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!gn(n.types,rye);if(n.flags&465829888){let a=kA(n);if(a&&a!==n)return rye(a)}return p_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function e8e(n,a){return wa(n)&&wa(a)?Xe:_s(a).filter(c=>zZ(Ue(n,c.escapedName),sr(c)))}function zZ(n,a){return!!n&&!!a&&Rl(n,32768)&&!!P8(a)}function Olt(n){return _s(n).filter(a=>P8(sr(a)))}function t8e(n,a,c=Qge){return v4e(n,a,c)||jgt(n,a)||Ugt(n,a)||Hgt(n,a)||Kgt(n,a)}function iye(n,a,c){let u=n.types,_=u.map(T=>T.flags&402784252?0:-1);for(let[T,M]of a){let W=!1;for(let V=0;V_[M]),0):n;return g.flags&131072?n:g}function n8e(n){if(n.flags&524288){let a=c_(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,n8e):!1}function Wlt(n,a,c){for(let u of _s(n))if(tve(a,u.escapedName,c))return!0;return!1}function oye(n){return n===Jo||n===$o||n.objectFlags&8?Y:i8e(n.symbol,n.typeParameters)}function r8e(n){return i8e(n,qi(n).typeParameters)}function i8e(n,a=Xe){var c,u;let _=qi(n);if(!_.variances){(c=rr)==null||c.push(rr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:yu($s(n))});let g=wE;wE||(wE=!0,w1=ud.length),_.variances=Xe;let T=[];for(let M of a){let W=aye(M),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,M,Ep),mt=g5(n,M,Cs);V=(ya(mt,je)?1:0)|(ya(je,mt)?2:0),V===3&&ya(g5(n,M,Ac),je)&&(V=4),la=_e,(te||ye)&&(te&&(V|=8),ye&&(V|=16))}T.push(V)}g||(wE=!1,w1=0),_.variances=T,(u=rr)==null||u.pop({variances:T.map(R.formatVariance)})}return _.variances}function g5(n,a,c){let u=WS(a,c),_=$s(n);if(Ut(_))return _;let g=n.flags&524288?cC(n,pv(qi(n).typeParameters,u)):cv(_,pv(_.typeParameters,u));return ct.add(yu(g)),g}function BZ(n){return ct.has(yu(n))}function aye(n){var a;return ru((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|du(u),0)&28672}function Flt(n,a){for(let c=0;c!!(a.flags&262144)||GZ(a))}function Glt(n,a,c,u){let _=[],g="",T=W(n,0),M=W(a,0);return`${g}${T},${M}${c}`;function W(V,te=0){let ye=""+V.target.id;for(let _e of Hs(V)){if(_e.flags&262144){if(u||zlt(_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)?Glt(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?$s(Cu(n)):void 0}function jZ(n){let a=dx(n),c=a&&Dp(a)[0];return c&&Ue(c,n.escapedName)}function Vlt(n,a){return y5(n,c=>{let u=dx(c);return u?rC(u,a):!1})}function jlt(n,a){return!y5(a,c=>Tf(c)&4?!Vlt(n,dx(c)):!1)}function o8e(n,a,c){return y5(a,u=>Tf(u,c)&4?!rC(n,dx(u)):!1)?void 0:n}function BM(n,a,c,u=3){if(c>=u){if((kr(n)&96)===96&&(n=a8e(n)),n.flags&2097152)return gt(n.types,M=>BM(M,a,c,u));let _=UZ(n),g=0,T=0;for(let M=0;M=T&&(g++,g>=u))return!0;T=W.id}}}return!1}function a8e(n){let a;for(;(kr(n)&96)===96&&(a=LA(n))&&(a.symbol||a.flags&2097152&>(a.types,c=>!!c.symbol));)n=a;return n}function s8e(n,a){return(kr(n)&96)===96&&(n=a8e(n)),n.flags&2097152?gt(n.types,c=>s8e(c,a)):UZ(n)===a}function UZ(n){if(n.flags&524288&&!Aye(n)){if(kr(n)&4&&n.node)return n.node;if(n.symbol&&!(kr(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 Ult(n,a){return sye(n,a,x8)!==0}function sye(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 m_(n)!==m_(a)?0:c(sr(n),sr(a))}function Hlt(n,a,c){let u=Kp(n),_=Kp(a),g=Q_(n),T=Q_(a),M=Bh(n),W=Bh(a);return!!(u===_&&g===T&&M===W||c&&g<=T)}function v5(n,a,c,u,_,g){if(n===a)return-1;if(!Hlt(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?l8e(c.types):c.flags),0)}function qlt(n){if(n.length===1)return n[0];let a=J?Nc(n,u=>cc(u,_=>!(_.flags&98304))):n,c=Jlt(a)?ti(a):ru(a,(u,_)=>Wb(u,_)?_:u);return a===n?c:S5(c,l8e(n)&98304)}function Xlt(n){return ru(n,(a,c)=>Wb(c,a)?c:a)}function Gf(n){return!!(kr(n)&4)&&(n.target===Jo||n.target===$o)}function GM(n){return!!(kr(n)&4)&&n.target===$o}function s0(n){return Gf(n)||wa(n)}function b5(n){return Gf(n)&&!GM(n)||wa(n)&&!n.target.readonly}function E5(n){return Gf(n)?Hs(n)[0]:void 0}function fv(n){return Gf(n)||!(n.flags&98304)&&ya(n,cf)}function lye(n){return b5(n)||!(n.flags&98305)&&ya(n,Zl)}function cye(n){if(!(kr(n)&4)||!(kr(n.target)&3))return;if(kr(n)&33554432)return kr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(kr(a)&1){let _=Ts(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Dp(a);if(c.length!==1||Nb(n.symbol).size)return;let u=Nn(a.typeParameters)?io(c[0],Np(a.typeParameters,Hs(n).slice(0,a.typeParameters.length))):c[0];return Nn(Hs(n))>Nn(a.typeParameters)&&(u=Up(u,Ka(Hs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function c8e(n){return J?n===Pi:n===Nt}function HZ(n){let a=E5(n);return!!a&&c8e(a)}function VM(n){let a;return wa(n)||!!ha(n,"0")||fv(n)&&!!(a=Ue(n,"length"))&&ap(a,c=>!!(c.flags&256))}function KZ(n){return fv(n)||VM(n)}function Ylt(n,a){let c=Ue(n,""+a);if(c)return c;if(ap(n,wa))return f8e(n,a,B.noUncheckedIndexedAccess?Me:void 0)}function $lt(n){return!(n.flags&240544)}function p_(n){return!!(n.flags&109472)}function d8e(n){let a=ly(n);return a.flags&2097152?gt(a.types,p_):p_(a)}function Qlt(n){return n.flags&2097152&&Vr(n.types,p_)||n}function C8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:oo(n.types,p_):p_(n)}function fy(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?Zlt(n):n}function Zlt(n){let a=`B${yu(n)}`;return V1(a)??cb(a,cl(n,fy))}function dye(n){return n.flags&402653312?Ne:n.flags&288?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?cl(n,dye):n}function zS(n){return n.flags&1056&&OS(n)?pZ(n):n.flags&128&&OS(n)?Ne:n.flags&256&&OS(n)?It:n.flags&2048&&OS(n)?Dt:n.flags&512&&OS(n)?gi:n.flags&1048576?cl(n,zS):n}function u8e(n){return n.flags&8192?xi:n.flags&1048576?cl(n,u8e):n}function uye(n,a){return Oee(n,a)||(n=u8e(zS(n))),vu(n)}function ect(n,a,c){if(n&&p_(n)){let u=a?c?H8(a):a:void 0;n=uye(n,u)}return n}function pye(n,a,c,u){if(n&&p_(n)){let _=a?US(c,a,u):void 0;n=uye(n,_)}return n}function wa(n){return!!(kr(n)&4&&n.target.objectFlags&8)}function zb(n){return wa(n)&&!!(n.target.combinedFlags&8)}function p8e(n){return zb(n)&&n.target.elementFlags.length===1}function JZ(n){return jM(n,n.target.fixedLength)}function f8e(n,a,c){return cl(n,u=>{let _=u,g=JZ(_);return g?c&&a>=Lge(_.target)?ti([g,c]):g:Me})}function tct(n){let a=JZ(n);return a&&zd(a)}function jM(n,a,c=0,u=!1,_=!1){let g=dv(n)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function m8e({value:n}){return n.base10Value==="0"}function _8e(n){return cc(n,a=>dm(a,4194304))}function rct(n){return cl(n,ict)}function ict(n){return n.flags&4?qo:n.flags&8?Ua:n.flags&64?$d:n===En||n===Kt||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&m8e(n)?n:Fr}function S5(n,a){let c=a&~n.flags&98304;return c===0?n:ti(c===32768?[n,Me]:c===65536?[n,ue]:[n,Me,ue])}function Bb(n,a=!1){R.assert(J);let c=a?ie:Me;return n===c||n.flags&1048576&&n.types[0]===c?n:ti([n,c])}function oct(n){return Bu||(Bu=WM("NonNullable",524288,void 0)||lt),Bu!==lt?cC(Bu,[n]):ga([n,Ca])}function my(n){return J?JA(n,2097152):n}function h8e(n){return J?ti([n,H]):n}function qZ(n){return J?aee(n,H):n}function XZ(n,a,c){return c?nN(a)?Bb(n):h8e(n):n}function N8(n,a){return aF(a)?my(n):Ud(a)?qZ(n):n}function Gb(n,a){return Ie&&a?aee(n,k):n}function P8(n){return n===k||!!(n.flags&1048576)&&n.types[0]===k}function YZ(n){return Ie?aee(n,k):um(n,524288)}function act(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function $Z(n){let a=kr(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=Ha(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 sct(n,a){let c=aa();for(let u of Pb(n)){let _=sr(u),g=a(_);c.set(u.escapedName,g===_?u:UA(u,g))}return c}function M8(n){if(!(d0(n)&&kr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=sct(n,M8),_=Ns(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function g8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function y8e(n){if(!n.siblings){let a=[];for(let c of y8e(n.parent))if(d0(c)){let u=t0(c,n.propertyName);u&&qA(sr(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function lct(n){if(!n.resolvedProperties){let a=new Map;for(let c of y8e(n))if(d0(c)&&!(kr(c)&2097152))for(let u of _s(c))a.set(u.escapedName,u);n.resolvedProperties=Oo(a.values())}return n.resolvedProperties}function cct(n,a){if(!(n.flags&4))return n;let c=sr(n),u=a&&g8e(a,n.escapedName,void 0),_=fye(c,u);return _===c?n:UA(n,_)}function dct(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 uct(n,a){let c=aa();for(let _ of Pb(n))c.set(_.escapedName,cct(_,a));if(a)for(let _ of lct(a))c.has(_.escapedName)||c.set(_.escapedName,dct(_));let u=Ns(n.symbol,c,Xe,Xe,Nc(gu(n),_=>Wh(_.keyType,Hp(_.type),_.isReadonly)));return u.objectFlags|=kr(n)&266240,u}function Hp(n){return fye(n,void 0)}function fye(n,a){if(kr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=G;else if(d0(n))c=uct(n,a);else if(n.flags&1048576){let u=a||g8e(void 0,void 0,n.types),_=Nc(n.types,g=>g.flags&98304?g:fye(g,u));c=ti(_,gt(_,py)?2:1)}else n.flags&2097152?c=ga(Nc(n.types,Hp)):s0(n)&&(c=cv(n.target,Nc(Hs(n),Hp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function QZ(n){let a=!1;if(kr(n)&65536){if(n.flags&1048576)if(gt(n.types,py))a=!0;else for(let c of n.types)QZ(c)&&(a=!0);if(s0(n))for(let c of Hs(n))QZ(c)&&(a=!0);if(d0(n))for(let c of Pb(n)){let u=sr(c);kr(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 l0(n,a,c){let u=Vn(Hp(a));if(ir(n)&&!dk(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=tE(g.name);if((XI(g.parent)||hh(g.parent)||gh(g.parent))&&g.parent.parameters.includes(g)&&(gl(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&eU(T))){let M="arg"+g.parent.parameters.indexOf(g),W=Is(g.name)+(g.dotDotDotToken?"[]":"");pd(fe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,M,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}pd(fe,n,_,Is(No(n)),u)}function ZZ(n,a,c){r(()=>{fe&&kr(a)&65536&&(!c||!Xye(n))&&(QZ(a)||l0(n,a,c))})}function mye(n,a,c){let u=Kp(n),_=Kp(a),g=B8(n),T=B8(a),M=T?_-1:_,W=g?M:Math.min(u,M),V=r0(n);if(V){let te=r0(a);te&&c(V,te)}for(let te=0;tea.typeParameter),mn(n.inferences,(a,c)=>()=>(a.isFixed||(_ct(n),eee(n.inferences),a.isFixed=!0),Iye(n,c))))}function mct(n){return Jge(mn(n.inferences,a=>a.typeParameter),mn(n.inferences,(a,c)=>()=>Iye(n,c)))}function eee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function gye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function _ct(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?fWe(a,2):Ju(a,2);u&&_y(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function yye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function v8e(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 hct(n){let a=jr(n.inferences,EC);return a.length?hye(mn(a,v8e),n.signature,n.flags,n.compareTypes):void 0}function vye(n){return n&&n.mapper}function c0(n){let a=kr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!b8e(n)&&(a&4&&(n.node||gt(Hs(n),c0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!b8e(n)&>(n.types,c0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function b8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=dl(n.aliasSymbol,265);return!!(a&&Fn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function k8(n,a,c=0){return!!(n===a||n.flags&3145728&>(n.types,u=>k8(u,a,c))||c<3&&n.flags&16777216&&(k8(i0(n),a,c+1)||k8(o0(n),a,c+1)))}function gct(n,a){let c=Ff(n);return c?!!c.type&&k8(c.type,a):k8(ds(n),a)}function yct(n){let a=aa();qA(n,u=>{if(!(u.flags&128))return;let _=fl(u.value),g=Ha(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?[Wh(Ne,Ca,!1)]:Xe;return Ns(void 0,a,Xe,Xe,c)}function E8e(n,a,c){let u=n.id+","+a.id+","+c.id;if(Uc.has(u))return Uc.get(u);let _=n.id+","+(a.target||a).id;if(zo(tp,_))return;tp.push(_);let g=vct(n,a,c);return tp.pop(),Uc.set(u,g),g}function bye(n){return!(kr(n)&262144)||d0(n)&>(_s(n),a=>bye(sr(a)))||wa(n)&>(kS(n),bye)}function vct(n,a,c){if(!(bg(n,Ne)||_s(n).length!==0&&bye(n)))return;if(Gf(n))return zd(tee(Hs(n)[0],a,c),GM(n));if(wa(n)){let _=mn(kS(n),T=>tee(T,a,c)),g=wh(a)&4?Nc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return Fh(_,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 bct(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,l_(a)),_=sy(a),g=yye(u);return _y([g],n,_),S8e(g)||un}function*Eye(n,a,c,u){let _=_s(a);for(let g of _)if(!uwe(g)&&(c||!(g.flags&16777216||Tl(g)&48))){let T=ha(n,g.escapedName);if(!T)yield g;else if(u){let M=sr(g);if(M.flags&109472){let W=sr(T);W.flags&1||vu(W)===vu(M)||(yield g)}}}}function Sye(n,a,c,u){return mW(Eye(n,a,c,u))}function Ect(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 I8e(n,a){if(a.flags&2097152)return oo(a.types,c=>c===ac||I8e(n,c));if(a.flags&4||ya(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&A8e(c,!1)||a.flags&64&&F6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&nee(Ku(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 x8e(n,a){return n.flags&128?R8e([n.value],Xe,a):n.flags&134217728?EL(n.texts,a.texts)?mn(n.types,Ict):R8e(n.texts,n.types,a):void 0}function ree(n,a){let c=x8e(n,a);return!!c&&oo(c,(u,_)=>I8e(u,a.types[_]))}function Ict(n){return n.flags&402653317?n:FA(["",""],[n])}function R8e(n,a,c){let u=n.length-1,_=n[0],g=n[u],T=c.texts,M=T.length-1,W=T[0],V=T[M];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!zo(gr,is)):Pn,Do?jr(Xn,is=>!zo(Do,is)):Xn]}function nr(Pn,Xn,ro){let gr=Pn.length!!On(Do));if(!gr||Xn&&gr!==Xn)return;Xn=gr}return Xn}function Yn(Pn,Xn,ro){let gr=0;if(ro&1048576){let Do,is=Pn.flags&1048576?Pn.types:[Pn],Es=new Array(is.length),Bd=!1;for(let Oa of Xn)if(On(Oa))Do=Oa,gr++;else for(let Lu=0;LuEs[wl]?void 0:Lu);if(Oa.length){_e(ti(Oa),Do);return}}}else for(let Do of Xn)On(Do)?gr++:_e(Pn,Do);if(ro&2097152?gr===1:gr>0)for(let Do of Xn)On(Do)&&je(Pn,Do,1)}function jn(Pn,Xn,ro){if(ro.flags&1048576||ro.flags&2097152){let gr=!1;for(let Do of ro.types)gr=jn(Pn,Xn,Do)||gr;return gr}if(ro.flags&4194304){let gr=On(ro.type);if(gr&&!gr.isFixed&&!T8e(Pn)){let Do=E8e(Pn,Xn,ro);Do&&je(Do,gr.typeParameter,kr(Pn)&262144?16:8)}return!0}if(ro.flags&262144){je(J_(Pn,Pn.pattern?2:0),ro,32);let gr=kA(ro);if(gr&&jn(Pn,Xn,gr))return!0;let Do=mn(_s(Pn),sr),is=mn(gu(Pn),Es=>Es!==zr?Es.type:Fr);return _e(ti(bo(Do,is)),sy(Xn)),!0}return!1}function $n(Pn,Xn){if(Pn.flags&16777216)_e(Pn.checkType,Xn.checkType),_e(Pn.extendsType,Xn.extendsType),_e(i0(Pn),i0(Xn)),_e(o0(Pn),o0(Xn));else{let ro=[i0(Xn),o0(Xn)];At(Pn,ro,Xn.flags,_?64:0)}}function xo(Pn,Xn){let ro=x8e(Pn,Xn),gr=Xn.types;if(ro||oo(Xn.texts,Do=>Do.length===0))for(let Do=0;Doyl|ot.flags,0);if(!(wl&4)){let yl=is.value;wl&296&&!A8e(yl,!0)&&(wl&=-297),wl&2112&&!F6(yl,!0)&&(wl&=-2113);let ot=ru(Lu,(Te,Cn)=>Cn.flags&wl?Te.flags&4?Te:Cn.flags&4?is:Te.flags&134217728?Te:Cn.flags&134217728&&ree(is,Cn)?is:Te.flags&268435456?Te:Cn.flags&268435456&&yl===TOe(Cn.symbol,yl)?is:Te.flags&128?Te:Cn.flags&128&&Cn.value===yl?Cn:Te.flags&8?Te:Cn.flags&8?u_(+yl):Te.flags&32?Te:Cn.flags&32?u_(+yl):Te.flags&256?Te:Cn.flags&256&&Cn.value===+yl?Cn:Te.flags&64?Te:Cn.flags&64?Act(yl):Te.flags&2048?Te:Cn.flags&2048&&F0(Cn.value)===yl?Cn:Te.flags&16?Te:Cn.flags&16?yl==="true"?wn:yl==="false"?Kt:gi:Te.flags&512?Te:Cn.flags&512&&Cn.intrinsicName===yl?Cn:Te.flags&32768?Te:Cn.flags&32768&&Cn.intrinsicName===yl?Cn:Te.flags&65536?Te:Cn.flags&65536&&Cn.intrinsicName===yl?Cn:Te:Te,Fr);if(!(ot.flags&131072)){_e(ot,Es);continue}}}}_e(is,Es)}}function vo(Pn,Xn){_e(gf(Pn),gf(Xn)),_e(sy(Pn),sy(Xn));let ro=lv(Pn),gr=lv(Xn);ro&&gr&&_e(ro,gr)}function Wo(Pn,Xn){var ro,gr;if(kr(Pn)&4&&kr(Xn)&4&&(Pn.target===Xn.target||Gf(Pn)&&Gf(Xn))){nr(Hs(Pn),Hs(Xn),oye(Pn.target));return}if(Hu(Pn)&&Hu(Xn)&&vo(Pn,Xn),kr(Xn)&32&&!Xn.declaration.nameType){let Do=gf(Xn);if(jn(Pn,Xn,Do))return}if(!Sct(Pn,Xn)){if(s0(Pn)){if(wa(Xn)){let Do=dv(Pn),is=dv(Xn),Es=Hs(Xn),Bd=Xn.target.elementFlags;if(wa(Pn)&&nct(Pn,Xn)){for(let wl=0;wl0){let is=Ho(Xn,ro),Es=is.length;for(let Bd=0;Bd1){let a=jr(n,Aye);if(a.length){let c=ti(a,2);return bo(jr(n,u=>!Aye(u)),[c])}}return n}function Nct(n){return n.priority&416?ga(n.contraCandidates):Xlt(n.contraCandidates)}function Pct(n,a){let c=Cct(n.candidates),u=Dct(n.typeParameter)||wA(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!gct(a,n.typeParameter)),g=u?Nc(c,vu):_?Nc(c,zS):c,T=n.priority&416?ti(g,2):qlt(g);return Hp(T)}function Iye(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?Pct(c,n.signature):void 0,M=c.contraCandidates?Nct(c):void 0;if(T||M){let W=T&&(!M||!(T.flags&131072)&>(c.contraCandidates,V=>Wb(T,V))&&oo(n.inferences,V=>V!==c&&Pu(V.typeParameter)!==c.typeParameter||oo(V.candidates,te=>Wb(te,T))));u=W?T:M,_=W?M:T}else if(n.flags&1)u=ho;else{let W=OA(c.typeParameter);W&&(u=io(W,llt(slt(n,a),n.nonFixingMapper)))}}else u=S8e(c);c.inferredType=u||xye(!!(n.flags&2));let g=Pu(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 xye(n){return n?G:un}function Rye(n){let a=[];for(let c=0;cmu(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"}|${yu(a)}|${yu(c)}|${ba(T)}`:void 0}case 110:return`0|${u?rs(u):"-1"}|${yu(a)}|${yu(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)}#${yu(a)}`}}function Td(n,a){switch(a.kind){case 217:case 235:return Td(n,a.expression);case 226:return Pc(a)&&Td(n,a.left)||ur(a)&&a.operatorToken.kind===28&&Td(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)||(Oi(a)||qa(a))&&mf(Wm(n))===Sr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Td(n.expression,a);case 211:case 212:let c=HA(n),u=Ms(a)?HA(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Td(n.expression,a.expression);case 166:return Ms(a)&&n.right.escapedText===HA(a)&&Td(n.left,a.expression);case 226:return ur(n)&&n.operatorToken.kind===28&&Td(n.right,a)}return!1}function HA(n){if(wr(n))return n.name.escapedText;if(Xs(n))return Mct(n);if(qa(n)){let a=Ya(n);return a?fl(a):void 0}if(To(n))return""+n.parent.parameters.indexOf(n)}function Cye(n){return n.flags&8192?n.escapedName:n.flags&384?fl(""+n.value):void 0}function Mct(n){return Qp(n.argumentExpression)?fl(n.argumentExpression.text):Bl(n.argumentExpression)?Lct(n.argumentExpression):void 0}function Lct(n){let a=js(n,111551,!0);if(!a||!(qM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=eo(c);if(u){let _=Cye(u);if(_!==void 0)return _}if(dT(c)&&$g(c,n)){let _=C2(c);if(_){let g=Yo(c.parent)?K_(c):Id(_);return g&&Cye(g)}if($0(c))return Ux(c.name)}}function C8e(n,a){for(;Ms(n);)if(n=n.expression,Td(n,a))return!0;return!1}function KA(n,a){for(;Ud(n);)if(n=n.expression,Td(n,a))return!0;return!1}function UM(n,a){if(n&&n.flags&1048576){let c=Nwe(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 N8e(n,a){let c;for(let u of n)if(UM(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function kct(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Ue(_,a);if(g){if(!C8(g))return;let T=!1;qA(g,M=>{let W=yu(vu(M)),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||kr(n)&32768||vv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=gn(a,_=>_.flags&59506688?gn(_s(_),g=>p_(sr(g))?g.escapedName:void 0):void 0),u=c&&kct(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(yu(vu(a)));return u!==un?u:void 0}function P8e(n,a){let c=T5(n),u=c&&Ue(a,c);return u&&A5(n,u)}function wct(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 M8e(n,a){return Td(n,a)||C8e(n,a)}function L8e(n,a){if(n.arguments){for(let c of n.arguments)if(M8e(a,c)||KA(c,a))return!0}return!!(n.expression.kind===211&&M8e(a,n.expression.expression))}function Nye(n){return(!n.id||n.id<0)&&(n.id=Xse,Xse++),n.id}function Oct(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 Wct(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${yu(n)},${yu(a)}`;return V1(c)??cb(c,Fct(n,a))}function Fct(n,a){let c=cc(n,_=>Oct(a,_)),u=a.flags&512&&OS(a)?cl(c,cx):c;return ya(a,u)?u:n}function Pye(n){let a=c_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Wb(n,Lt))}function HM(n,a){return Mye(n,a)&a}function dm(n,a){return HM(n,a)!==0}function Mye(n,a){n.flags&467927040&&(n=Fd(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=m8e(n);return J?u?12122884:7928580:u?12581636:16775940}return c&16?J?16316168:16774920:c&528?J?n===Kt||n===En?12121864:7927560:n===Kt||n===En?12580616:16774920:c&524288?a&(J?83427327:83886079)?kr(n)&16&&py(n)?J?83427327:83886079:Pye(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?ru(n.types,(u,_)=>u|Mye(_,a),0):c&2097152?zct(n,a):83886079}function zct(n,a){let c=Rl(n,402784252),u=0,_=134217727;for(let g of n.types)if(!(c&&g.flags&524288)){let T=Mye(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=k8e(um(J&&n.flags&2?sl:n,a));if(J)switch(a){case 524288:return cl(c,u=>dm(u,65536)?ga([u,dm(u,131072)&&!Rl(c,65536)?ti([Ca,ue]):Ca]):u);case 1048576:return cl(c,u=>dm(u,131072)?ga([u,dm(u,65536)&&!Rl(c,32768)?ti([Ca,Me]):Ca]):u);case 2097152:case 4194304:return cl(c,u=>dm(u,262144)?oct(u):u)}return c}function k8e(n){return n===sl?un:n}function Lye(n,a){return a?ti([_i(n),Id(a)]):n}function w8e(n,a){var c;let u=uv(a);if(!Qf(u))return pt;let _=Zf(u);return Ue(n,_)||w8((c=ox(n,_))==null?void 0:c.type)||pt}function O8e(n,a){return ap(n,VM)&&Ylt(n,a)||w8(_v(65,n,Me,void 0))||pt}function w8(n){return n&&(B.noUncheckedIndexedAccess?ti([n,k]):n)}function W8e(n){return zd(_v(65,n,Me,void 0)||pt)}function Bct(n){return n.parent.kind===209&&kye(n.parent)||n.parent.kind===303&&kye(n.parent.parent)?Lye(I5(n),n.right):Id(n.right)}function kye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Gct(n,a){return O8e(I5(n),n.elements.indexOf(a))}function Vct(n){return W8e(I5(n.parent))}function F8e(n){return w8e(I5(n.parent),n.name)}function jct(n){return Lye(F8e(n),n.objectAssignmentInitializer)}function I5(n){let{parent:a}=n;switch(a.kind){case 249:return Ne;case 250:return aG(a)||pt;case 226:return Bct(a);case 220:return Me;case 209:return Gct(a,n);case 230:return Vct(a);case 303:return F8e(a);case 304:return jct(a)}return pt}function Uct(n){let a=n.parent,c=B8e(a.parent),u=a.kind===206?w8e(c,n.propertyName||n.name):n.dotDotDotToken?W8e(c):O8e(c,a.elements.indexOf(n));return Lye(u,n.initializer)}function z8e(n){return Zr(n).resolvedType||Id(n)}function Hct(n){return n.initializer?z8e(n.initializer):n.parent.parent.kind===249?Ne:n.parent.parent.kind===250&&aG(n.parent.parent)||pt}function B8e(n){return n.kind===260?Hct(n):Uct(n)}function Kct(n){return n.kind===260&&n.initializer&&Ab(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ab(n.parent.right)}function BS(n){switch(n.kind){case 217:return BS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return BS(n.left);case 28:return BS(n.right)}}return n}function G8e(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?G8e(a):n}function Jct(n){return n.kind===296?vu(Id(n.expression)):Fr}function oee(n){let a=Zr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Jct(c))}return a.switchTypes}function V8e(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&&!zo(a,u)?u:void 0)}return a}function qct(n,a){return n.flags&1048576?!gn(n.types,c=>!zo(a,c)):zo(a,n)}function KM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Xct(n,a))}function Xct(n,a){if(n.flags&1048576){for(let c of n.types)if(!cy(a.types,c))return!1;return!0}return n.flags&1056&&pZ(n)===a?!0:cy(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 Yct(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,M=jr(T,W=>!!(W.flags&1048576)||a(W));if(T.length-M.length===c.length-u.length){if(M.length===1)return M[0];g=kge(1048576,M)}}return Oge(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 $ct(n){return n.flags&1048576?n.types.length:1}function cl(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 M of _){let W=M.flags&1048576?cl(M,a,c):a(M);T||(T=M!==W),W&&(g?g.push(W):g=[W])}return T?g&&ti(g,c?0:1):n}function j8e(n,a,c,u){return n.flags&1048576&&c?ti(mn(n.types,a),1,c,u):cl(n,a)}function JM(n,a){return cc(n,c=>(c.flags&a)!==0)}function U8e(n,a){return Rl(n,134217804)&&Rl(a,402655616)?cl(n,c=>c.flags&4?JM(a,402653316):zA(c)&&!Rl(a,402653188)?JM(a,128):c.flags&8?JM(a,264):c.flags&64?JM(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?ho:n}:n}function Qct(n){let a=kf(256);return a.elementType=n,a}function wye(n){return kn[n.id]||(kn[n.id]=Qct(n))}function H8e(n,a){let c=M8(fy(eG(a)));return KM(c,n.elementType)?n:wye(ti([n.elementType,c]))}function Zct(n){return n.flags&131072?Hc:zd(n.flags&1048576?ti(n.types,2):n)}function edt(n){return n.finalArrayType||(n.finalArrayType=Zct(n.elementType))}function x5(n){return kr(n)&256?edt(n):n}function tdt(n){return kr(n)&256?n.elementType:Fr}function ndt(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(kr(c)&256))return!1;a=!0}return a}function K8e(n){let a=G8e(n),c=a.parent,u=wr(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&&!Qh(c.parent)&&Ad(Id(c.argumentExpression),296);return u||_}function rdt(n){return(Oi(n)||Vo(n)||_p(n)||To(n))&&!!(gd(n)||ir(n)&&Lv(n)&&n.initializer&&z0(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(rdt(c))return sr(n);if(Oi(c)&&c.parent.parent.kind===250){let u=c.parent.parent,_=R5(u.expression,void 0);if(_){let g=u.awaitModifier?15:13;return _v(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=mf(Wm(n));return see(c,a);case 110:return Adt(n);case 108:return Vye(n);case 211:{let u=R5(n.expression,a);if(u){let _=n.name,g;if(Ki(_)){if(!u.symbol)return;g=ha(u,J2(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=Zr(n),c=a.effectsSignature;if(c===void 0){let u;if(ur(n)){let T=gC(n.right);u=Lve(T)}else n.parent.kind===244?u=R5(n.expression,void 0):n.expression.kind!==108&&(Ud(n)?u=X_(N8(po(n.expression),n.expression),n.expression):u=gC(n.expression));let _=Ho(u&&Mu(u)||un,0),g=_.length===1&&!_[0].typeParameters?_[0]:gt(_,J8e)?vC(n):void 0;c=a.effectsSignature=g&&J8e(g)?g:cn}return c===cn?void 0:c}function J8e(n){return!!(Ff(n)||n.declaration&&(sC(n.declaration)||un).flags&131072)}function idt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=ms(a.expression);return Ms(c)?ms(c.expression):void 0}function odt(n){let a=Fn(n,NV),c=Gn(n),u=fh(c,a.statements.pos);$a.add(Yc(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,Vt=a,a}function N5(n){let a=ms(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 Vt;let c=n.flags;if(c&4096){if(!a){let u=Nye(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&&DFe(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=Nye(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 q8e(n){switch(n.kind){case 110:return!0;case 80:if(!NI(n)){let c=Wm(n);return qM(c)||uee(c)&&!X8e(c)}break;case 211:case 212:return q8e(n.expression)&&m_(Zr(n).resolvedSymbol||lt);case 206:case 207:let a=A_(n.parent);return To(a)||Loe(a)?!Oye(a):Oi(a)&&pG(a)}return!1}function Vb(n,a,c=a,u,_=(g=>(g=ii(n,z2))==null?void 0:g.flowNode)()){let g,T=!1,M=0;if(we)return pt;if(!_)return a;qe++;let W=Jg,V=XA(_e(_));Jg=W;let te=kr(V)&256&&K8e(n)?Hc: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(M===2e3)return(kt=rr)==null||kt.instant(rr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:it.id}),we=!0,odt(n),pt;M++;let Qt;for(;;){let Xt=it.flags;if(Xt&4096){for(let Wn=W;Wn=0&&Qt.parameterIndex!(Wn.flags&163840)):kt.kind===221&&KA(kt.expression,n)&&(Xt=is(Xt,it.switchStatement,it.clauseStart,it.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let ln=jn(kt,Xt);ln&&(Xt=vo(Xt,ln,it.switchStatement,it.clauseStart,it.clauseEnd))}return hC(Xt,_C(Qt))}function an(it){let kt=[],Qt=!1,Xt=!1,ln;for(let Wn of it.antecedents){if(!ln&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){ln=Wn;continue}let bi=_e(Wn),pi=XA(bi);if(pi===a&&a===c)return pi;yf(kt,pi),KM(pi,c)||(Qt=!0),_C(bi)&&(Xt=!0)}if(ln){let Wn=_e(ln),bi=XA(Wn);if(!(bi.flags&131072)&&!zo(kt,bi)&&!DFe(ln.switchStatement)){if(bi===a&&a===c)return bi;kt.push(bi),KM(bi,c)||(Qt=!0),_C(Wn)&&(Xt=!0)}}return hC(Ln(kt,Qt?2:1),Xt)}function On(it){let kt=Nye(it),Qt=O1[kt]||(O1[kt]=new Map),Xt=ye();if(!Xt)return a;let ln=Qt.get(Xt);if(ln)return ln;for(let An=B_;An{let An=St(lo,Xt)||un;return!(An.flags&131072)&&!(pi.flags&131072)&&m5(pi,An)})}function xo(it,kt,Qt,Xt,ln){if((Qt===37||Qt===38)&&it.flags&1048576){let Wn=T5(it);if(Wn&&Wn===HA(kt)){let bi=A5(it,Id(Xt));if(bi)return Qt===(ln?37:38)?bi:p_(Ue(bi,Wn)||un)?aee(it,bi):it}}return $n(it,kt,Wn=>ro(Wn,Qt,Xt,ln))}function vo(it,kt,Qt,Xt,ln){if(XtA5(it,pi)||un));if(bi!==un)return bi}return $n(it,kt,Wn=>Es(Wn,Qt,Xt,ln))}function Wo(it,kt,Qt){if(Td(n,kt))return JA(it,Qt?4194304:8388608);J&&Qt&&KA(kt,n)&&(it=JA(it,2097152));let Xt=jn(kt,it);return Xt?$n(it,Xt,ln=>um(ln,Qt?4194304:8388608)):it}function fo(it,kt,Qt){let Xt=ha(it,kt);return Xt?!!(Xt.flags&16777216||Tl(Xt)&48)||Qt:!!ox(it,kt)||!Qt}function Rc(it,kt,Qt){let Xt=Zf(kt);if(Fm(it,Wn=>fo(Wn,Xt,!0)))return cc(it,Wn=>fo(Wn,Xt,Qt));if(Qt){let Wn=dst();if(Wn)return ga([it,cC(Wn,[kt,un])])}return it}function Vf(it,kt,Qt,Xt,ln){return ln=ln!==(Qt.kind===112)!=(Xt!==38&&Xt!==36),Br(it,kt,ln)}function sp(it,kt,Qt){switch(kt.operatorToken.kind){case 64:case 76:case 77:case 78:return Wo(Br(it,kt.right,Qt),kt.left,Qt);case 35:case 36:case 37:case 38:let Xt=kt.operatorToken.kind,ln=BS(kt.left),Wn=BS(kt.right);if(ln.kind===221&&as(Wn))return gr(it,ln,Xt,Wn,Qt);if(Wn.kind===221&&as(ln))return gr(it,Wn,Xt,ln,Qt);if(Td(n,ln))return ro(it,Xt,Wn,Qt);if(Td(n,Wn))return ro(it,Xt,ln,Qt);J&&(KA(ln,n)?it=Xn(it,Xt,Wn,Qt):KA(Wn,n)&&(it=Xn(it,Xt,ln,Qt)));let bi=jn(ln,it);if(bi)return xo(it,bi,Xt,Wn,Qt);let pi=jn(Wn,it);if(pi)return xo(it,pi,Xt,ln,Qt);if(yl(ln))return ot(it,Xt,Wn,Qt);if(yl(Wn))return ot(it,Xt,ln,Qt);if(sN(Wn)&&!Ms(ln))return Vf(it,ln,Wn,Xt,Qt);if(sN(ln)&&!Ms(Wn))return Vf(it,Wn,ln,Xt,Qt);break;case 104:return Te(it,kt,Qt);case 103:if(Ki(kt.left))return Pn(it,kt,Qt);let lo=BS(kt.right);if(P8(it)&&Ms(n)&&Td(n.expression,lo)){let An=Id(kt.left);if(Qf(An)&&HA(n)===Zf(An))return um(it,Qt?524288:65536)}if(Td(n,lo)){let An=Id(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):ti([Br(it,kt.left,!1),Br(it,kt.right,!1)]);case 57:return Qt?ti([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 Xt=BS(kt.right);if(!Td(n,Xt))return it;R.assertNode(kt.left,Ki);let ln=See(kt.left);if(ln===void 0)return it;let Wn=ln.parent,bi=pc(R.checkDefined(ln.valueDeclaration,"should always have a declaration"))?sr(Wn):$s(Wn);return Dr(it,bi,Qt,!0)}function Xn(it,kt,Qt,Xt){let ln=kt===35||kt===37,Wn=kt===35||kt===36?98304:32768,bi=Id(Qt);return ln!==Xt&&ap(bi,lo=>!!(lo.flags&Wn))||ln===Xt&&ap(bi,lo=>!(lo.flags&(3|Wn)))?JA(it,2097152):it}function ro(it,kt,Qt,Xt){if(it.flags&1)return it;(kt===36||kt===38)&&(Xt=!Xt);let ln=Id(Qt),Wn=kt===35||kt===36;if(ln.flags&98304){if(!J)return it;let bi=Wn?Xt?262144:2097152:ln.flags&65536?Xt?131072:1048576:Xt?65536:524288;return JA(it,bi)}if(Xt){if(!Wn&&(it.flags&2||Fm(it,zh))){if(ln.flags&469893116||zh(ln))return ln;if(ln.flags&524288)return Kr}let bi=cc(it,pi=>m5(pi,ln)||Wn&&act(pi,ln));return U8e(bi,ln)}return p_(ln)?cc(it,bi=>!(d8e(bi)&&m5(bi,ln))):it}function gr(it,kt,Qt,Xt,ln){(Qt===36||Qt===38)&&(ln=!ln);let Wn=BS(kt.expression);if(!Td(n,Wn)){J&&KA(Wn,n)&&ln===(Xt.text!=="undefined")&&(it=JA(it,2097152));let bi=jn(Wn,it);return bi?$n(it,bi,pi=>Do(pi,Xt,ln)):it}return Do(it,Xt,ln)}function Do(it,kt,Qt){return Qt?Bd(it,kt.text):JA(it,EK.get(kt.text)||32768)}function is(it,kt,Qt,Xt,ln){return Qt!==Xt&&oo(oee(kt).slice(Qt,Xt),ln)?um(it,2097152):it}function Es(it,kt,Qt,Xt){let ln=oee(kt);if(!ln.length)return it;let Wn=ln.slice(Qt,Xt),bi=Qt===Xt||zo(Wn,Fr);if(it.flags&2&&!bi){let ei;for(let Gi=0;Gim5(pi,ei)),pi);if(!bi)return lo;let An=cc(it,ei=>!(d8e(ei)&&zo(ln,vu(Qlt(ei)))));return lo.flags&131072?An:ti([lo,An])}function Bd(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:ti([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 cl(it,Xt=>q_(Xt,kt,Mf)?dm(Xt,Qt)?Xt:Fr:Wb(kt,Xt)?kt:dm(Xt,Qt)?ga([Xt,kt]):Fr)}function Lu(it,kt,Qt,Xt){let ln=V8e(kt);if(!ln)return it;let Wn=Kl(kt.caseBlock.clauses,lo=>lo.kind===297);if(Qt===Xt||Wn>=Qt&&WnHM(An,lo)===lo)}let pi=ln.slice(Qt,Xt);return ti(mn(pi,lo=>lo?Bd(it,lo):Fr))}function wl(it,kt,Qt,Xt){let ln=Kl(kt.caseBlock.clauses,pi=>pi.kind===297),Wn=Qt===Xt||ln>=Qt&&lnpi.kind===296?Br(it,pi.expression,!0):Fr))}function yl(it){return(wr(it)&&yr(it.name)==="constructor"||Xs(it)&&as(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&Td(n,it.expression)}function ot(it,kt,Qt,Xt){if(Xt?kt!==35&&kt!==37:kt!==36&&kt!==38)return it;let ln=Id(Qt);if(!cbe(ln)&&!ts(ln))return it;let Wn=ha(ln,"prototype");if(!Wn)return it;let bi=sr(Wn),pi=xt(bi)?void 0:bi;if(!pi||pi===Re||pi===Lt)return it;if(xt(it))return pi;return cc(it,An=>lo(An,pi));function lo(An,ei){return An.flags&524288&&kr(An)&1||ei.flags&524288&&kr(ei)&1?An.symbol===ei.symbol:Wb(An,ei)}}function Te(it,kt,Qt){let Xt=BS(kt.left);if(!Td(n,Xt))return Qt&&J&&KA(Xt,n)?JA(it,2097152):it;let ln=kt.right,Wn=Id(ln);if(!a0(Wn,Re))return it;let bi=D5(kt),pi=bi&&Ff(bi);if(pi&&pi.kind===1&&pi.parameterIndex===0)return Dr(it,pi.type,Qt,!0);if(!a0(Wn,Lt))return it;let lo=cl(Wn,Cn);return xt(it)&&(lo===Re||lo===Lt)||!Qt&&!(lo.flags&524288&&!zh(lo))?it:Dr(it,lo,Qt,!0)}function Cn(it){let kt=Ue(it,"prototype");if(kt&&!xt(kt))return kt;let Qt=Ho(it,1);return Qt.length?ti(mn(Qt,Xt=>ds(y8(Xt)))):Ca}function Dr(it,kt,Qt,Xt){let ln=it.flags&1048576?`N${yu(it)},${yu(kt)},${(Qt?1:0)|(Xt?2:0)}`:void 0;return V1(ln)??cb(ln,ui(it,kt,Qt,Xt))}function ui(it,kt,Qt,Xt){if(!Qt){if(it===kt)return Fr;if(Xt)return cc(it,lo=>!a0(lo,kt));let pi=Dr(it,kt,!0,!1);return cc(it,lo=>!KM(lo,pi))}if(it.flags&3||it===kt)return kt;let ln=Xt?a0:Wb,Wn=it.flags&1048576?T5(it):void 0,bi=cl(kt,pi=>{let lo=Wn&&Ue(pi,Wn),An=lo&&A5(it,lo),ei=cl(An||it,Xt?Gi=>a0(Gi,pi)?Gi:a0(pi,Gi)?pi:Fr:Gi=>f5(Gi,pi)?Gi:f5(pi,Gi)?pi:Wb(Gi,pi)?Gi:Wb(pi,Gi)?pi:Fr);return ei.flags&131072?cl(it,Gi=>Rl(Gi,465829888)&&ln(pi,Fd(Gi)||un)?ga([Gi,pi]):Fr):ei});return bi.flags&131072?Wb(kt,it)?kt:ya(it,kt)?it:ya(kt,it)?kt:ga([it,kt]):bi}function Ai(it,kt,Qt){if(L8e(kt,n)){let Xt=Qt||!oT(kt)?D5(kt):void 0,ln=Xt&&Ff(Xt);if(ln&&(ln.kind===0||ln.kind===1))return Ii(it,ln,kt,Qt)}if(P8(it)&&Ms(n)&&wr(kt.expression)){let Xt=kt.expression;if(Td(n.expression,BS(Xt.expression))&&Fe(Xt.name)&&Xt.name.escapedText==="hasOwnProperty"&&kt.arguments.length===1){let ln=kt.arguments[0];if(as(ln)&&HA(n)===fl(ln.text))return um(it,Qt?524288:65536)}}return it}function Ii(it,kt,Qt,Xt){if(kt.type&&!(xt(it)&&(kt.type===Re||kt.type===Lt))){let ln=idt(kt,Qt);if(ln){if(Td(n,ln))return Dr(it,kt.type,Xt,!1);J&&KA(ln,n)&&(Xt&&!dm(kt.type,65536)||!Xt&&ap(kt.type,F5))&&(it=JA(it,2097152));let Wn=jn(ln,it);if(Wn)return $n(it,Wn,bi=>Dr(bi,kt.type,Xt,!1))}}return it}function Br(it,kt,Qt){if(aF(kt)||ur(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(!Td(n,kt)&&N<5){let Xt=Wm(kt);if(qM(Xt)){let ln=Xt.valueDeclaration;if(ln&&Oi(ln)&&!ln.type&&ln.initializer&&q8e(n)){N++;let Wn=Br(it,ln.initializer,Qt);return N--,Wn}}}case 110:case 108:case 211:case 212:return Wo(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(Td(n,kt))return JA(it,Qt?2097152:262144);let Xt=jn(kt,it);return Xt?$n(it,Xt,ln=>um(ln,Qt?2097152:262144)):it}}function adt(n,a){if(n=mf(n),(a.kind===80||a.kind===81)&&(LN(a)&&(a=a.parent),Yh(a)&&(!Qh(a)||LI(a)))){let c=qZ(LI(a)&&a.kind===211?bee(a,void 0,!0):Id(a));if(mf(Zr(a).resolvedSymbol)===n)return c}return Lg(a)&&Py(a.parent)&&Om(a.parent)?HB(a.parent.symbol):Kj(a)&&LI(a.parent)?PS(n):Db(n)}function O8(n){return Fn(n.parent,a=>Xo(a)&&!_T(a)||a.kind===268||a.kind===312||a.kind===172)}function X8e(n){return!Y8e(n,void 0)}function Y8e(n,a){let c=Fn(n.valueDeclaration,dee);if(!c)return!1;let u=Zr(c);return u.flags&131072||(u.flags|=131072,sdt(c)||Q8e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&$8e(a.name))}function sdt(n){return!!Fn(n.parent,a=>dee(a)&&!!(Zr(a).flags&131072))}function dee(n){return Fs(n)||Yi(n)}function Q8e(n){switch(n.kind){case 80:if(Qh(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===_?ldt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=js(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)||Bo(n,Q8e)}function ldt(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 qM(n){return n.flags&3&&(nve(n)&6)!==0}function uee(n){let a=n.valueDeclaration&&A_(n.valueDeclaration);return!!a&&(To(a)||Oi(a)&&(Y0(a.parent)||cdt(a)))}function cdt(n){return!!(n.parent.flags&1)&&!(eE(n)&32||n.parent.parent.kind===243&&Rh(n.parent.parent.parent))}function ddt(n){let a=Zr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Lh(n,9))return nC(n.symbol),!0;let c=!!dm($M(n,0),16777216);if(!H_())return nC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function udt(n,a){return J&&a.kind===169&&a.initializer&&dm(n,16777216)&&!ddt(a)?um(n,524288):n}function pdt(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,eWe)&&GA(Id(c.argumentExpression)))}function Z8e(n){return n.flags&2097152?gt(n.types,Z8e):!!(n.flags&465829888&&ly(n).flags&1146880)}function eWe(n){return n.flags&2097152?gt(n.types,eWe):!!(n.flags&465829888&&!Rl(ly(n),98304))}function fdt(n,a){let c=(Fe(n)||wr(n)||Xs(n))&&!((P_(n.parent)||OT(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Ju(n,8):Ju(n,void 0));return c&&!pC(c)}function Wye(n,a,c){return!(c&&c&2)&&Fm(n,Z8e)&&(pdt(n,a)||fdt(a,c))?cl(n,ly):n}function tWe(n){return!!Fn(n,a=>{let c=a.parent;return c===void 0?"quit":Ml(c)?c.expression===a&&Bl(a):Kd(c)?c.name===a||c.propertyName===a:!1})}function pee(n,a){if(ft&&bA(n,111551)&&!TT(a)){let c=Oc(n);Sd(n,!0)&1160127&&(em(B)||G0(B)&&tWe(a)||!$8(mf(c))?gb(n):nd(n))}}function mdt(n,a,c){var u;let _=sr(n,c),g=n.valueDeclaration;if(g){if(qa(g)&&!g.initializer&&!g.dotDotDotToken&&g.parent.elements.length>=2){let T=g.parent.parent,M=A_(T);if(M.kind===260&&JS(M)&6||M.kind===169){let W=Zr(T);if(!(W.flags&4194304)){W.flags|=4194304;let V=Or(T,0),te=V&&cl(V,ly);if(W.flags&=-4194305,te&&te.flags&1048576&&!(M.kind===169&&Oye(M))){let ye=g.parent,_e=Vb(ye,te,te,void 0,a.flowNode);return _e.flags&131072?Fr:yg(g,_e,!0)}}}}if(To(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&OZ(T)){let M=F8(T);if(M&&M.parameters.length===1&&qd(M)){let W=LM(io(sr(M.parameters[0]),(u=GS(T))==null?void 0:u.nonFixingMapper));if(W.flags&1048576&&ap(W,wa)&&!gt(T.parameters,Oye)){let V=Vb(T,W,W,void 0,a.flowNode),te=T.parameters.indexOf(g)-(L0(T)?1:0);return Cp(V,u_(te))}}}}}return _}function _dt(n,a){if(NI(n))return P5(n);let c=Wm(n);if(c===lt)return pt;if(c===Ft){if(FWe(n))return Ve(n,f.arguments_cannot_be_referenced_in_property_initializers),pt;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):Qr(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)),Zr(an).flags|=512;an&&zs(an);)an=Wp(an),an&&(Zr(an).flags|=512);return sr(c)}gdt(n)&&pee(c,n);let u=mf(c),_=rbe(u,n);db(_)&&zge(n,_)&&_.declarations&&rv(n,_.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32&&di(g)&&g.name!==n){let an=wu(n,!1,!1);for(;an.kind!==312&&an.parent!==g;)an=wu(an,!1,!1);an.kind!==312&&(Zr(g).flags|=262144,Zr(an).flags|=262144,Zr(n).flags|=536870912)}bdt(n,c);let T=mdt(u,n,a),M=DI(n);if(M){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)),pt}if(m_(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)),pt}let W=u.flags&2097152;if(u.flags&3){if(M===1)return bj(n)?fy(T):T}else if(W)g=Mm(c);else return T;if(!g)return T;T=Wye(T,n,a);let V=A_(g).kind===169,te=O8(g),ye=O8(n),_e=ye!==te,je=n.parent&&n.parent.parent&&Vy(n.parent)&&kye(n.parent.parent),mt=c.flags&134217728,At=T===et||T===Hc,rn=At&&n.parent.kind===235;for(;ye!==te&&(ye.kind===218||ye.kind===219||kF(ye))&&(qM(u)&&T!==Hc||uee(u)&&Y8e(u,n));)ye=O8(ye);let sn=V||W||_e||je||mt||hdt(n,g)||T!==et&&T!==Hc&&(!J||(T.flags&16387)!==0||TT(n)||Dye(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,nr=rn?Me:sn?V?udt(T,g):T:At?Me:Bb(T),Mn=rn?my(Vb(n,T,nr,ye)):Vb(n,T,nr,ye);if(!K8e(n)&&(T===et||T===Hc)){if(Mn===et||Mn===Hc)return fe&&(Ve(No(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))),Y8(Mn)}else if(!sn&&!zM(T)&&zM(Mn))return Ve(n,f.Variable_0_is_used_before_being_assigned,Si(c)),T;return M?fy(Mn):Mn}function hdt(n,a){if(qa(a)){let c=Fn(n,qa);return c&&A_(c)===A_(a)}}function gdt(n){var a;let c=n.parent;if(c){if(wr(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 ydt(n,a){return!!Fn(n,c=>c===a?"quit":Xo(c)||c.parent&&Vo(c.parent)&&!pc(c.parent)&&c.parent.initializer===c)}function vdt(n,a){return Fn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Fye(n){return Fn(n,a=>!a||Cj(a)?"quit":Pv(a,!1))}function bdt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=ph(a.valueDeclaration),u=ydt(n,c),_=Fye(c);if(_){if(u){let g=!0;if(kT(c)){let T=uE(a.valueDeclaration,261);if(T&&T.parent===c){let M=vdt(n.parent,c);if(M){let W=Zr(M);W.flags|=8192;let V=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);yf(V,a),M===c.initializer&&(g=!1)}}}g&&(Zr(_).flags|=4096)}if(kT(c)){let g=uE(a.valueDeclaration,261);g&&g.parent===c&&Sdt(n,c)&&(Zr(a.valueDeclaration).flags|=65536)}Zr(a.valueDeclaration).flags|=32768}u&&(Zr(a.valueDeclaration).flags|=16384)}function Edt(n,a){let c=Zr(n);return!!c&&zo(c.capturedBlockScopeBindings,Sr(a))}function Sdt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let u=!1;if(Qh(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 zye(n,a){if(Zr(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;Zr(c).flags|=4}else Zr(a).flags|=4}function nWe(n){return mT(n)?n:Xo(n)?void 0:Bo(n,nWe)}function Bye(n){let a=Sr(n),c=$s(a);return Rp(c)===We}function rWe(n,a,c){let u=a.parent;P0(u)&&!Bye(u)&&z2(n)&&n.flowNode&&!cee(n.flowNode,!1)&&Ve(n,c)}function Tdt(n,a){Vo(a)&&pc(a)&&ee&&a.initializer&&JL(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=wu(n,!0,!0),u=!1,_=!1;for(c.kind===176&&rWe(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=wu(c,!1,!_),u=!0),c.kind===167){c=wu(c,!u,!1),_=!0;continue}break}if(Tdt(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:iWe(n,c)&&Ve(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&ce<2&&zye(n,c);let g=Gye(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 M=Ve(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){let W=Gye(c);W&&W!==T&&Pa(M,Pr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||G}function Gye(n,a=!0,c=wu(n,!1,!1)){let u=ir(n);if(Xo(c)&&(!Uye(n)||L0(c))){let _=Uhe(c)||u&&xdt(c);if(!_){let g=Idt(c);if(u&&g){let T=po(g).symbol;T&&T.members&&T.flags&16&&(_=$s(T).thisType)}else $_(c)&&(_=$s(es(c.symbol)).thisType);_||(_=lWe(c))}if(_)return Vb(n,_)}if(di(c.parent)){let _=Sr(c.parent),g=na(c)?sr(_):$s(_).thisType;return Vb(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 Adt(n){let a=wu(n,!1,!1);if(Xo(a)){let c=lm(a);if(c.thisParameter)return see(c.thisParameter)}if(di(a.parent)){let c=Sr(a.parent);return na(a)?sr(c):$s(c).thisType}}function Idt(n){if(n.kind===218&&ur(n.parent)&&zl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&ur(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&&ur(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)&&ra(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)&&ra(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&zl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function xdt(n){let a=nF(n);if(a&&a.typeExpression)return Ti(a.typeExpression);let c=kM(n);if(c)return r0(c)}function iWe(n,a){return!!Fn(n,c=>Fs(c)?"quit":c.kind===169&&c.parent===a)}function Vye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=T2(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)Qr(u,1024)&&(g=!0),u=T2(u,!0),_=ce<2;u&&Qr(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||!(di(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),pt}if(!a&&c.kind===176&&rWe(n,u,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),na(u)||a?(T=32,!a&&ce>=2&&ce<=8&&(Vo(u)||Al(u))&&Xre(n.parent,ye=>{(!Yi(ye)||wp(ye))&&(Zr(ye).flags|=2097152)})):T=16,Zr(n).flags|=T,u.kind===174&&g&&(Ou(n.parent)&&Qh(n.parent)?Zr(u).flags|=256:Zr(u).flags|=128),_&&zye(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),pt):G;let M=u.parent;if(!P0(M))return Ve(n,f.super_can_only_be_referenced_in_a_derived_class),pt;if(Bye(M))return a?pt:We;let W=$s(Sr(M)),V=W&&Dp(W)[0];if(!V)return pt;if(u.kind===176&&iWe(n,u))return Ve(n,f.super_cannot_be_referenced_in_constructor_arguments),pt;return T===32?Rp(W):Up(V,W.thisType);function te(ye){return a?ye.kind===176:di(ye.parent)||ye.parent.kind===210?na(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 oWe(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 aWe(n){return kr(n)&4&&n.target===Gl?Hs(n)[0]:void 0}function Rdt(n){return cl(n,a=>a.flags&2097152?gn(a.types,aWe):aWe(a))}function sWe(n,a){let c=n,u=a;for(;u;){let _=Rdt(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=p0(c,void 0)}}function lWe(n){if(n.kind===219)return;if(OZ(n)){let c=F8(n);if(c){let u=c.thisParameter;if(u)return sr(u)}}let a=ir(n);if(ne||a){let c=oWe(n);if(c){let _=p0(c,void 0),g=sWe(c,_);return g?io(g,vye(GS(c))):Hp(_?my(_):tc(c))}let u=Ly(n.parent);if(Pc(u)){let _=u.left;if(Ms(_)){let{expression:g}=_;if(a&&Fe(g)){let T=Gn(u);if(T.commonJsModuleIndicator&&Wm(g)===T.symbol)return}return Hp(tc(g))}}}}function cWe(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 hve(_,g,_.length,G,void 0,0);let T=Zr(c),M=T.resolvedSignature;T.resolvedSignature=yt;let W=g<_.length?zS(po(_[g])):n.initializer?void 0:Nt;return T.resolvedSignature=M,W}let u=F8(a);if(u){let _=a.parameters.indexOf(n)-(L0(a)?1:0);return n.dotDotDotToken&&Qs(a.parameters)===n?J5(u,_):jS(u,_)}}function jye(n,a){let c=gd(n)||(ir(n)?V6(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return cWe(n);case 208:return Ddt(n,a);case 172:if(na(n))return Cdt(n,a)}}function Ddt(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=jye(c,a)||c.kind!==208&&c.initializer&&$M(c,n.dotDotDotToken?32:0);if(!_||Yo(u)||g2(u))return;if(c.name.kind===207){let T=jx(n.parent.elements,n);return T<0?void 0:Jye(_,T)}let g=uv(u);if(Qf(g)){let T=Zf(g);return Ue(_,T)}}function Cdt(n,a){let c=ht(n.parent)&&Ju(n.parent,a);if(c)return u0(c,Sr(n).escapedName)}function Ndt(n,a){let c=n.parent;if(Lv(c)&&n===c.initializer){let u=jye(c,a);if(u)return u;if(!(a&8)&&Yo(c.name)&&c.name.elements.length>0)return C(c.name,!0,!1)}}function Pdt(n,a){let c=Wp(n);if(c){let u=fee(c,a);if(u){let _=Bc(c);if(_&1){let g=(_&2)!==0;u.flags&1048576&&(u=cc(u,M=>!!US(1,M,g)));let T=US(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=cl(u,mv);return g&&ti([g,AFe(g)])}return u}}}function Mdt(n,a){let c=Ju(n,a);if(c){let u=mv(c);return u&&ti([u,AFe(u)])}}function Ldt(n,a){let c=Wp(n);if(c){let u=Bc(c),_=fee(c,a);if(_){let g=(u&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=cc(_,T=>!!US(1,T,g))),n.asteriskToken?_:US(0,_,g)}}}function Uye(n){let a=!1;for(;n.parent&&!Xo(n.parent);){if(To(n.parent)&&(a||n.parent.initializer===n))return!0;qa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function dWe(n,a){let c=!!(Bc(a)&2),u=fee(a,void 0);if(u)return US(n,u,c)||void 0}function fee(n,a){let c=sC(n);if(c)return c;let u=Xye(n);if(u&&!gZ(u)){let g=ds(u),T=Bc(n);return T&1?cc(g,M=>!!(M.flags&58998787)||Wve(M,T,void 0)):T&2?cc(g,M=>!!(M.flags&58998787)||!!eL(M)):g}let _=_T(n);if(_)return Ju(_,a)}function uWe(n,a){let u=Dee(n).indexOf(a);return u===-1?void 0:Hye(n,u)}function Hye(n,a){if(Op(n))return a===0?Ne:a===1?Zwe(!1):G;let c=Zr(n).resolvedSignature===vr?vr:vC(n);if(lu(n)&&a===0)return gee(c,n);let u=c.parameters.length-1;return qd(c)&&a>=u?Cp(sr(c.parameters[u]),u_(a-u),256):f_(c,a)}function kdt(n){let a=Cve(n);return a?WA(a):void 0}function wdt(n,a){if(n.parent.kind===215)return uWe(n.parent,a)}function Odt(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?Fdt(c):void 0;case 57:case 61:let T=Ju(c,a);return n===g&&(T&&T.pattern||!T&&!hie(c))?Id(u):T;case 56:case 28:return n===g?Ju(c,a):void 0;default:return}}function Wdt(n){if(b_(n)&&n.symbol)return n.symbol;if(Fe(n))return Wm(n);if(wr(n)){let c=Id(n.expression);return Ki(n.name)?a(c,n.name):ha(c,n.name.escapedText)}if(Xs(n)){let c=tc(n.argumentExpression);if(!Qf(c))return;let u=Id(n.expression);return ha(u,Zf(c))}return;function a(c,u){let _=Eee(u.escapedText,u);return _&&ave(c,_)}}function Fdt(n){var a,c;let u=zl(n);switch(u){case 0:case 4:let _=Wdt(n.left),g=_&&_.valueDeclaration;if(g&&(Vo(g)||_p(g))){let W=gd(g);return W&&io(Ti(W),qi(_).mapper)||(Vo(g)?g.initializer&&Id(n.left):void 0)}return u===0?Id(n.left):pWe(n);case 5:if(mee(n,u))return pWe(n);if(!b_(n.left)||!n.left.symbol)return Id(n.left);{let W=n.left.symbol.valueDeclaration;if(!W)return;let V=ta(n.left,Ms),te=gd(W);if(te)return Ti(te);if(Fe(V.expression)){let ye=V.expression,_e=gl(ye,ye.escapedText,111551,void 0,ye.escapedText,!0);if(_e){let je=_e.valueDeclaration&&gd(_e.valueDeclaration);if(je){let mt=Mg(V);if(mt!==void 0)return u0(Ti(je),mt)}return}}return ir(W)||W===n.left?void 0:Id(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 M=T&&gd(T);return M?Ti(M):void 0;case 7:case 8:case 9:return R.fail("Does not apply");default:return R.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=gl(n.left,c,111551,void 0,void 0,!0,!0);return zF(u?.valueDeclaration)}function pWe(n){if(!n.symbol)return Id(n.left);if(n.symbol.valueDeclaration){let _=gd(n.symbol.valueDeclaration);if(_){let g=Ti(_);if(g)return g}}let a=ta(n.left,Ms);if(!bm(wu(a.expression,!1,!1)))return;let c=P5(a.expression),u=Mg(a);return u!==void 0&&u0(c,u)||void 0}function zdt(n){return!!(Tl(n)&262144&&!n.links.type&&nx(n,0)>=0)}function u0(n,a,c){return cl(n,u=>{var _;if(Hu(u)&&!u.declaration.nameType){let g=gf(u),T=Fd(g)||g,M=c||Ku(Vi(a));if(ya(M,T))return DZ(u,M)}else if(u.flags&3670016){let g=ha(u,a);if(g)return zdt(g)?void 0:Gb(sr(g),!!(g&&g.flags&16777216));if(wa(u)&&rg(a)&&+a>=0){let T=jM(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(_=lge(cge(u),c||Ku(Vi(a))))==null?void 0:_.type}},!0)}function fWe(n,a){if(R.assert(bm(n)),!(n.flags&67108864))return Kye(n,a)}function Kye(n,a){let c=n.parent,u=mc(n)&&jye(n,a);if(u)return u;let _=p0(c,a);if(_){if(oC(n)){let g=Sr(n);return u0(_,g.escapedName,qi(g).nameType)}if(Wv(n)){let g=No(n);if(g&&Xa(g)){let T=po(g.expression),M=Qf(T)&&u0(_,Zf(T));if(M)return M}}if(n.name){let g=uv(n.name);return cl(_,T=>{var M;return(M=lge(cge(T),g))==null?void 0:M.type},!0)}}}function Bdt(n){let a,c;for(let u=0;u{if(wa(g)){if((u===void 0||a_)?c-a:0,M=T>0&&g.target.hasRestElement?b8(g.target,3):0;return T>0&&T<=M?Hs(g)[dv(g)-T]:jM(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||_===void 0?M:Math.min(M,c-_),!1,!0)}return(!u||afv(W)?Cp(W,u_(T)):W,!0))}function jdt(n,a){let c=n.parent;return fF(c)?Ju(n,a):og(c)?Vdt(c,n,a):void 0}function mWe(n,a){if(M_(n)){let c=p0(n.parent,a);return!c||xt(c)?void 0:u0(c,QN(n.name))}else return Ju(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 Udt(n,a){return wct(a,n)||iye(a,bo(mn(jr(n.properties,c=>c.symbol?c.kind===303?M5(c.initializer)&&UM(a,c.symbol.escapedName):c.kind===304?UM(a,c.symbol.escapedName):!1:!1),c=>[()=>eG(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),mn(jr(_s(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&UM(a,c.escapedName)}),c=>[()=>Me,c.escapedName])),ya)}function Hdt(n,a){let c=w5(YA(n));return iye(a,bo(mn(jr(n.properties,u=>!!u.symbol&&u.kind===291&&UM(a,u.symbol.escapedName)&&(!u.initializer||M5(u.initializer))),u=>[u.initializer?()=>eG(u.initializer):()=>wn,u.symbol.escapedName]),mn(jr(_s(a),u=>{var _;if(!(u.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let g=n.parent.parent;return u.escapedName===c&&og(g)&&lR(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&UM(a,u.escapedName)}),u=>[()=>Me,u.escapedName])),ya)}function p0(n,a){let c=bm(n)?fWe(n,a):Ju(n,a),u=_ee(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=cl(u,g=>kr(g)&32?g:Mu(g),!0);return _.flags&1048576&&Ma(n)?Udt(n,_):_.flags&1048576&&X0(n)?Hdt(n,_):_}}function _ee(n,a,c){if(n&&Rl(n,465829888)){let u=GS(a);if(u&&c&1&>(u.inferences,Dft))return hee(n,u.nonFixingMapper);if(u?.returnMapper){let _=hee(n,u.returnMapper);return _.flags&1048576&&cy(_.types,En)&&cy(_.types,Bn)?cc(_,g=>g!==En&&g!==Bn):_}}return n}function hee(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?ti(mn(n.types,c=>hee(c,a)),0):n.flags&2097152?ga(mn(n.types,c=>hee(c,a))):n}function Ju(n,a){var c;if(n.flags&67108864)return;let u=hWe(n,!a);if(u>=0)return fn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Ndt(n,a);case 219:case 253:return Pdt(n,a);case 229:return Ldt(_,a);case 223:return Mdt(_,a);case 213:case 214:return uWe(_,n);case 170:return kdt(_);case 216:case 234:return Cg(_.type)?Ju(_,a):Ti(_.type);case 226:return Odt(n,a);case 303:case 304:return Kye(_,a);case 305:return Ju(_.parent,a);case 209:{let g=_,T=p0(g,a),M=jx(g.elements,n),W=(c=Zr(g)).spreadIndices??(c.spreadIndices=Bdt(g.elements));return Jye(T,M,g.elements.length,W.first,W.last)}case 227:return Gdt(n,a);case 239:return R.assert(_.parent.kind===228),wdt(_.parent,n);case 217:{if(ir(_)){if(hU(_))return Ti(gU(_));let g=nE(_);if(g&&!Cg(g.typeExpression.type))return Ti(g.typeExpression.type)}return Ju(_,a)}case 235:return Ju(_,a);case 238:return Ti(_.type);case 277:return eo(_);case 294:return jdt(_,a);case 291:case 293:return mWe(_,a);case 286:case 285:return Xdt(_,a);case 301:return qdt(_)}}function _We(n){L5(n,Ju(n,void 0),!0)}function L5(n,a,c){Jn[mi]=n,fn[mi]=a,qn[mi]=c,mi++}function W8(){mi--}function hWe(n,a){for(let c=mi-1;c>=0;c--)if(n===Jn[c]&&(a||!qn[c]))return c;return-1}function Kdt(n,a){or[dr]=n,ri[dr]=a,dr++}function Jdt(){dr--}function GS(n){for(let a=dr-1;a>=0;a--)if(N0(n,or[a]))return ri[a]}function qdt(n){return u0(Ige(!1),U6(n))}function Xdt(n,a){if(P_(n)&&a!==4){let c=hWe(n.parent,!a);if(c>=0)return fn[c]}return Hye(n,0)}function gee(n,a){return ZWe(a)!==0?Ydt(n,a):Zdt(n,a)}function Ydt(n,a){let c=Rve(n,un);c=gWe(a,YA(a),c);let u=VS(nf.IntrinsicAttributes,a);return Ut(u)||(c=$B(u,c)),c}function $dt(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 Qdt(n){if(ux(n.tagName)){let c=xWe(n),u=Cee(n,c);return WA(u)}let a=tc(n.tagName);if(a.flags&128){let c=IWe(a,n);if(!c)return pt;let u=Cee(n,c);return WA(u)}return a}function gWe(n,a,c){let u=vut(a);if(u){let _=Qdt(n),g=CWe(u,ir(n),_,c);if(g)return g}return c}function Zdt(n,a){let c=YA(a),u=Eut(c),_=u===void 0?Rve(n,un):u===""?ds(n):$dt(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(_=gWe(a,c,_),xt(_))return _;{let g=_,T=VS(nf.IntrinsicClassAttributes,a);if(!Ut(T)){let W=Nr(T.symbol),V=ds(n),te;if(W){let ye=Mb([V],W,Oh(W),ir(a));te=io(T,Np(W,ye))}else te=T;g=$B(te,g)}let M=VS(nf.IntrinsicAttributes,a);return Ut(M)||(g=$B(M,g)),g}}function eut(n){return uu(B,"noImplicitAny")?ru(n,(a,c)=>a===c||!a?a:hwe(a.typeParameters,c.typeParameters)?rut(a,c):void 0):void 0}function tut(n,a,c){if(!n||!a)return n||a;let u=ti([sr(n),io(sr(a),c)]);return UA(n,u)}function nut(n,a,c){let u=Kp(n),_=Kp(a),g=u>=_?n:a,T=g===n?a:n,M=g===n?u:_,W=Bh(n)||Bh(a),V=W&&!Bh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:YM(n,ye),nr=ye>=_?void 0:YM(a,ye),Mn=sn===nr?sn:sn?nr?void 0:sn:nr,an=Ha(1|(rn&&!At?16777216:0),Mn||`arg${ye}`);an.links.type=At?zd(mt):mt,te[ye]=an}if(V){let ye=Ha(1,"args");ye.links.type=zd(f_(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function rut(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=nut(n,a,u),T=tut(n.thisParameter,a.thisParameter,u),M=Math.max(n.minArgumentCount,a.minArgumentCount),W=vg(_,c,T,g,void 0,void 0,M,(n.flags|a.flags)&167);return W.compositeKind=2097152,W.compositeSignatures=bo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(W.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?FS(n.mapper,u):u),W}function qye(n,a){let c=Ho(n,0),u=jr(c,_=>!iut(_,a));return u.length===1?u[0]:eut(u)}function iut(n,a){let c=0;for(;cVM(_e)||Hu(_e)&&!_e.nameType&&!!A8(_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(fv(mt))g.push(mt),T.push(8);else if(M){let At=n0(mt,It)||qve(65,mt,Me,void 0,!1)||un;g.push(At),T.push(4)}else g.push(_v(33,mt,Me,je.expression)),T.push(4)}else if(Ie&&je.kind===232)ye=!0,g.push(ie),T.push(2);else{let mt=ZM(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=GS(n);R.assert(At),gye(At,je,mt)}}}return W8(),M?Fh(g,T):vWe(c||W||te?Fh(g,T,W&&!(V&&Fm(V,lye))):zd(g.length?ti(Nc(g,(_e,je)=>T[je]&8?kb(_e,It)||G:_e),2):J?Pi:Nt,W))}function vWe(n){if(!(kr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Gwe(n),a.objectFlags|=147456),a}function lut(n){switch(n.kind){case 167:return cut(n);case 80:return rg(n.escapedText);case 9:case 11:return rg(n.text);default:return!1}}function cut(n){return Ad(Eg(n),296)}function Eg(n){let a=Zr(n.expression);if(!a.resolvedType){if((gp(n.parent.parent)||di(n.parent.parent)||mu(n.parent.parent))&&ur(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=pt;if(a.resolvedType=po(n.expression),Vo(n.parent)&&!pc(n.parent)&&$c(n.parent.parent)){let c=ph(n.parent.parent),u=Fye(c);u&&(Zr(u).flags|=4096,Zr(n).flags|=32768,Zr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Ad(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 dut(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return rg(n.escapedName)||c&&au(c)&&lut(c.name)}function bWe(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return q2(n)||c&&au(c)&&Xa(c.name)&&Ad(Eg(c.name),4096)}function Yye(n,a,c,u){let _=[];for(let T=a;T0&&(M=wS(M,On(),n.symbol,At,te),T=[],g=aa(),sn=!1,nr=!1,Mn=!1);let $n=d_(po(Ln.expression,a&2));if(k5($n)){let xo=Uge($n,te);if(_&&SWe(xo,_,Ln),an=T.length,Ut(M))continue;M=wS(M,xo,n.symbol,At,te)}else Ve(Ln,f.Spread_types_may_only_be_created_from_object_types),M=pt;continue}else R.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(W8(),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 _s(W))!g.get(jn.escapedName)&&!ha(M,jn.escapedName)&&(jn.flags&16777216||Ve(jn.valueDeclaration||((c=ii(jn,dh))==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(Ut(M))return pt;if(M!==Ca)return T.length>0&&(M=wS(M,On(),n.symbol,At,te),T=[],g=aa(),sn=!1,nr=!1),cl(M,Ln=>Ln===Ca?On():Ln);return On();function On(){let Ln=[];sn&&Ln.push(Yye(n,an,T,Ne)),nr&&Ln.push(Yye(n,an,T,It)),Mn&&Ln.push(Yye(n,an,T,xi));let Yn=Ns(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=_8e(cl(n,ly));return!!(a.flags&126615553||a.flags&3145728&&oo(a.types,k5))}function put(n){eve(n)}function fut(n,a){return px(n),O5(n)||G}function mut(n){eve(n.openingElement),ux(n.closingElement.tagName)?vee(n.closingElement):po(n.closingElement.tagName),yee(n)}function _ut(n,a){return px(n),O5(n)||G}function hut(n){eve(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 Qye(n){return n.includes("-")}function ux(n){return Fe(n)&&dR(n.escapedText)||Xm(n)}function EWe(n,a){return n.initializer?ZM(n.initializer,a):wn}function gut(n,a=0){let c=n.attributes,u=Ju(c,0),_=J?aa():void 0,g=aa(),T=pl,M=!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=EWe(mt,a);te|=kr(rn)&458752;let sn=Ha(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),QN(mt.name)===ye&&(V=!0),u){let nr=ha(u,At.escapedName);nr&&nr.declarations&&db(nr)&&Fe(mt.name)&&rv(mt.name,nr.declarations,mt.name.escapedText)}if(u&&a&2&&!(a&4)&&zf(mt)){let nr=GS(c);R.assert(nr);let Mn=mt.initializer.expression;gye(nr,Mn,rn)}}else{R.assert(mt.kind===293),g.size>0&&(T=wS(T,je(),c.symbol,te,!1),g=aa());let rn=d_(po(mt.expression,a&2));xt(rn)&&(M=!0),k5(rn)?(T=wS(T,rn,c.symbol,te,!1),_&&SWe(rn,_,mt)):(Ve(mt.expression,f.Spread_types_may_only_be_created_from_object_types),W=W?ga([W,rn]):rn)}}M||g.size>0&&(T=wS(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(!M&&ye&&ye!==""){V&&Ve(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(ye));let At=p0(n.attributes,void 0),rn=At&&u0(At,ye),sn=Ha(4,ye);sn.links.type=mt.length===1?mt[0]:rn&&Fm(rn,VM)?Fh(mt):zd(ti(mt)),sn.valueDeclaration=L.createPropertySignature(void 0,Vi(ye),void 0,void 0),Va(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;let nr=aa();nr.set(ye,sn),T=wS(T,Ns(c.symbol,nr,Xe,Xe,Xe),c.symbol,te,!1)}}if(M)return G;if(W&&T!==pl)return ga([W,T]);return W||(T===pl?je():T);function je(){te|=ve;let mt=Ns(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(ZM(u,a))}return c}function SWe(n,a,c){for(let u of _s(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 yut(n,a){return gut(n.parent,a)}function VS(n,a){let c=YA(a),u=c&&xp(c),_=u&&Uu(u,n,788968);return _?$s(_):pt}function vee(n){let a=Zr(n);if(!a.resolvedSymbol){let c=VS(nf.IntrinsicElements,n);if(Ut(c))return fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(nf.IntrinsicElements)),a.resolvedSymbol=lt;{if(!Fe(n.tagName)&&!Xm(n.tagName))return R.fail();let u=Xm(n.tagName)?FI(n.tagName):n.tagName.escapedText,_=ha(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=Y6e(c,Ku(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."+nf.IntrinsicElements),a.resolvedSymbol=lt)}}return a.resolvedSymbol}function Zye(n){let a=n&&Gn(n),c=a&&Zr(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=pu(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,M=a?.imports[T];M&&R.assert(qs(M)&&M.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let W=j_(M||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&&Zr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=Zye(n);if(!u||u===lt){let _=FE(n);u=gl(n,_,1920,void 0,_,!1)}if(u){let _=Vl(Uu(xp(Vl(u)),nf.JSX,1920));if(_&&_!==lt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Vl(WM(nf.JSX,1920,void 0));if(c!==lt)return c}function TWe(n,a){let c=a&&Uu(a.exports,n,788968),u=c&&$s(c),_=u&&_s(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 vut(n){return n&&Uu(n.exports,nf.LibraryManagedAttributes,788968)}function but(n){return n&&Uu(n.exports,nf.ElementType,788968)}function Eut(n){return TWe(nf.ElementAttributesPropertyNameContainer,n)}function w5(n){return TWe(nf.ElementChildrenAttributeNameContainer,n)}function AWe(n,a){if(n.flags&4)return[yt];if(n.flags&128){let _=IWe(n,a);return _?[Cee(a,_)]:(Ve(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+nf.IntrinsicElements),Xe)}let c=Mu(n),u=Ho(c,1);return u.length===0&&(u=Ho(c,0)),u.length===0&&c.flags&1048576&&(u=Yhe(mn(c.types,_=>AWe(_,a)))),u}function IWe(n,a){let c=VS(nf.IntrinsicElements,a);if(!Ut(c)){let u=n.value,_=ha(c,fl(u));if(_)return sr(_);let g=n0(c,Ne);return g||void 0}return G}function Sut(n,a,c){if(n===1){let _=DWe(c);_&&Bf(a,_,ju,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=RWe(c);_&&Bf(a,_,ju,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=DWe(c),g=RWe(c);if(!_||!g)return;let T=ti([_,g]);Bf(a,T,ju,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=uc(c.tagName);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function xWe(n){var a;R.assert(ux(n.tagName));let c=Zr(n);if(!c.resolvedJsxElementAttributesType){let u=vee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=sr(u)||pt;if(c.jsxFlags&2){let _=Xm(n.tagName)?FI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=ox(VS(nf.IntrinsicElements,n),_))==null?void 0:a.type)||pt}else return c.resolvedJsxElementAttributesType=pt}return c.resolvedJsxElementAttributesType}function RWe(n){let a=VS(nf.ElementClass,n);if(!Ut(a))return a}function O5(n){return VS(nf.Element,n)}function DWe(n){let a=O5(n);if(a)return ti([a,ue])}function Tut(n){let a=YA(n);if(!a)return;let c=but(a);if(!c)return;let u=CWe(c,ir(n));if(!(!u||Ut(u)))return u}function CWe(n,a,...c){let u=$s(n);if(n.flags&524288){let _=qi(n).typeParameters;if(Nn(_)>=c.length){let g=Mb(c,_,c.length,a);return Nn(g)===0?u:cC(n,g)}}if(Nn(u.typeParameters)>=c.length){let _=Mb(c,u.typeParameters,c.length,a);return cv(u,_)}}function Aut(n){let a=VS(nf.IntrinsicElements,n);return a?_s(a):Xe}function Iut(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 eve(n){let a=lu(n);if(a&&ygt(n),Iut(n),!Zye(n)){let c=$a&&B.jsx===2?f.Cannot_find_name_0:void 0,u=FE(n),_=a?n.tagName:n,g;if(i1(n)&&u==="null"||(g=gl(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,ft&&g.flags&2097152&&!Lf(g)&&gb(g)),i1(n)){let T=Gn(n),M=j1(T);M&&gl(_,M,111551,c,M,!0)}}if(a){let c=n,u=vC(c);Pee(u,n);let _=Tut(c);if(_!==void 0){let g=c.tagName,T=ux(g)?Ku(yU(g)):po(g);Bf(T,_,ju,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let M=uc(g);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,M)})}else Sut(ZWe(c),ds(u),c)}}function tve(n,a,c){if(n.flags&524288){if(t0(n,a)||ox(n,a)||f8(a)&&bg(n,Ne)||c&&Qye(a))return!0}else if(n.flags&3145728&&W5(n)){for(let u of n.types)if(tve(u,a,c))return!0}return!1}function W5(n){return!!(n.flags&524288&&!(kr(n)&512)||n.flags&67108864||n.flags&1048576&>(n.types,W5)||n.flags&2097152&&oo(n.types,W5))}function xut(n,a){if(bgt(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 pt}function nve(n){return n.valueDeclaration?JS(n.valueDeclaration):0}function rve(n){if(n.flags&8192||Tl(n)&4)return!0;if(ir(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&ur(a)&&zl(a)===3}}function ive(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 NWe(n,a,c,u,_,T)}function NWe(n,a,c,u,_,g){var T;let M=Tf(_,c);if(a){if(ce<2&&PWe(_))return g&&Ve(g,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(M&64)return g&&Ve(g,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Vn(dx(_))),!1;if(!(M&256)&&((T=_.declarations)!=null&&T.some(_re)))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(M&64&&PWe(_)&&(A2(n)||fie(n)||tm(n.parent)&&zF(n.parent.parent))){let V=wg(Cu(_));if(V&&ght(n))return g&&Ve(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Xf(V.name)),!1}if(!(M&6))return!0;if(M&2){let V=wg(Cu(_));return abe(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=q6e(n,V=>{let te=$s(Sr(V));return o8e(te,_,c)});return!W&&(W=Rut(n),W=W&&o8e(W,_,c),M&256||!W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Vn(dx(_)||u)),!1):M&256?!0:(u.flags&262144&&(u=u.isThisType?Pu(u):Fd(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 Rut(n){let a=Dut(n),c=a?.type&&Ti(a.type);if(c&&c.flags&262144&&(c=Pu(c)),c&&kr(c)&7)return sv(c)}function Dut(n){let a=wu(n,!1,!1);return a&&Xo(a)?L0(a):void 0}function PWe(n){return!!y5(n,a=>!(a.flags&8192))}function gC(n){return X_(po(n),n)}function F5(n){return dm(n,50331648)}function ove(n){return F5(n)?my(n):n}function Cut(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 Nut(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 MWe(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,_),pt}return Ve(a,f.Object_is_of_type_unknown),pt}let u=HM(n,50331648);if(u&50331648){c(a,u);let _=my(n);return _.flags&229376?pt:_}return n}function X_(n,a){return MWe(n,a,Cut)}function LWe(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?Put(n,a):sve(n,n.expression,gC(n.expression),n.name,a,c)}function Put(n,a){let c=po(n.expression),u=N8(c,n.expression);return XZ(sve(n,n.expression,X_(u,n.expression),n.name,a),n,u!==c)}function kWe(n,a){let c=jF(n)&&w0(n.left)?X_(P5(n.left),n.left):gC(n.left);return sve(n,n.left,c,n.right,a)}function wWe(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=id(c)){let{symbol:u}=c,_=J2(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function Mut(n){if(!id(n))return yn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!G4(n.parent)){if(!Yh(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=ur(n.parent)&&n.parent.operatorToken.kind===103;if(!See(n)&&!a)return yn(n,f.Cannot_find_name_0,yr(n))}return!1}function Lut(n){Mut(n);let a=See(n);return a&&B5(a,void 0,!1),G}function See(n){if(!Yh(n))return;let a=Zr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Eee(n.escapedText,n)),a.resolvedSymbol}function ave(n,a){return ha(n,a.escapedName)}function kut(n,a,c){let u,_=_s(n);_&&gn(_,T=>{let M=T.valueDeclaration;if(M&&au(M)&&Ki(M.name)&&M.name.escapedText===a.escapedText)return u=T,!0});let g=Pm(a);if(u){let T=R.checkDefined(u.valueDeclaration),M=R.checkDefined(id(T));if(c?.valueDeclaration){let W=c.valueDeclaration,V=id(W);if(R.assert(!!V),Fn(V,te=>M===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(M.name||C3)),!0}return!1}function OWe(n,a){return(eC(a)||A2(n)&&DM(a))&&wu(n,!0,!1)===CM(a)}function sve(n,a,c,u,_,g){let T=Zr(a).resolvedSymbol,M=DI(n),W=Mu(M!==0||wWe(n)?Hp(c):c),V=xt(W)||W===ho,te;if(Ki(u)){ce<99&&(M!==0&&xc(n,1048576),M!==1&&xc(n,524288));let _e=Eee(u.escapedText,u);if(M&&_e&&_e.valueDeclaration&&Ul(_e.valueDeclaration)&&yn(u,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,yr(u)),V){if(_e)return Ut(W)?pt:W;if(WF(u)===void 0)return yn(u,f.Private_identifiers_are_not_allowed_outside_class_bodies),G}if(te=_e&&ave(c,_e),te===void 0){if(kut(c,u,_e))return pt;let je=WF(u);je&&f2(Gn(je),B.checkJs)&&yn(u,f.Private_field_0_must_be_declared_in_an_enclosing_class,yr(u))}else te.flags&65536&&!(te.flags&32768)&&M!==1&&Ve(n,f.Private_accessor_was_defined_without_a_getter)}else{if(V)return Fe(a)&&T&&pee(T,n),Ut(W)?pt:W;te=ha(W,u.escapedText,kee(W),n.kind===166)}Fe(a)&&T&&(em(B)||!(te&&($8(te)||te.flags&8&&n.parent.kind===306))||G0(B)&&tWe(n))&&pee(T,n);let ye;if(te){let _e=rbe(te,u);if(db(_e)&&zge(n,_e)&&_e.declarations&&rv(u,_e.declarations,u.escapedText),wut(te,n,u),B5(te,n,jWe(a,T)),Zr(n).resolvedSymbol=te,ive(n,a.kind===108,LI(n),W,te),MFe(n,te,M))return Ve(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,yr(u)),pt;ye=OWe(n,te)?et:g||v6(n)?PS(te):sr(te)}else{let _e=!Ki(u)&&(M===0||!BA(c)||YN(c))?ox(W,u.escapedText):void 0;if(!(_e&&_e.type)){let je=lve(n,c.symbol,!0);return!je&&E8(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)&&zWe(u,YN(c)?W:c,je),pt)}_e.isReadonly&&(Qh(n)||Ej(n))&&Ve(n,f.Index_signature_in_type_0_only_permits_reading,Vn(W)),ye=B.noUncheckedIndexedAccess&&!Qh(n)?ti([_e.type,k]):_e.type,B.noPropertyAccessFromIndexSignature&&wr(n)&&Ve(u,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(u.escapedText)),_e.declaration&&nv(_e.declaration)&&rv(u,[_e.declaration],u.escapedText)}return WWe(n,te,ye,u,_)}function lve(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||!di(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||My(!1,a.valueDeclaration);return!(_!==g&&g&&Rh(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&wr(n)&&n.expression.kind===110&&T)}return!1}function WWe(n,a,c,u,_){let g=DI(n);if(g===1)return Gb(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=Wye(c,n,_);let T=!1;if(J&&xe&&Ms(n)&&n.expression.kind===110){let W=a&&a.valueDeclaration;if(W&&w6e(W)&&!na(W)){let V=O8(n);V.kind===176&&V.parent===W.parent&&!(W.flags&33554432)&&(T=!0)}}else J&&a&&a.valueDeclaration&&wr(a.valueDeclaration)&&k2(a.valueDeclaration)&&O8(n)===O8(a.valueDeclaration)&&(T=!0);let M=Vb(n,c,T?Bb(c):c);return T&&!zM(c)&&zM(M)?(Ve(u,f.Property_0_is_used_before_being_assigned,Si(a)),c):g?fy(M):M}function wut(n,a,c){let{valueDeclaration:u}=n;if(!u||Gn(a).isDeclarationFile)return;let _,g=yr(c);FWe(a)&&!Tat(u)&&!(Ms(a)&&Ms(a.expression))&&!$g(u,c)&&!(Ul(u)&&ite(u)&256)&&(me||!Out(n))?_=Ve(c,f.Property_0_is_used_before_its_initialization,g):u.kind===263&&a.parent.kind!==183&&!(u.flags&33554432)&&!$g(u,c)&&(_=Ve(c,f.Class_0_used_before_its_declaration,g)),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}function FWe(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 Uo(a.parent)&&Al(a.parent.parent)?!0:"quit";default:return Yh(a)?!1:"quit"}})}function Out(n){if(!(n.parent.flags&32))return!1;let a=sr(n.parent);for(;;){if(a=a.symbol&&Wut(a),!a)return!1;let c=ha(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Wut(n){let a=Dp(n);if(a.length!==0)return ga(a)}function zWe(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=Fo(u,f.Property_0_does_not_exist_on_type_1,Is(n),Vn(T));break}}if(BWe(n.escapedText,a)){let T=Is(n),M=Vn(a);u=Fo(u,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,M,M+"."+T)}else{let T=H8(a);if(T&&ha(T,n.escapedText))u=Fo(u,f.Property_0_does_not_exist_on_type_1,Is(n),Vn(a)),_=Pr(n,f.Did_you_forget_to_use_await);else{let M=Is(n),W=Vn(a),V=But(M,a);if(V!==void 0)u=Fo(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,M,W,V);else{let te=cve(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=Fo(u,_e,M,W,ye),_=te.valueDeclaration&&Pr(te.valueDeclaration,f._0_is_declared_here,ye)}else{let ye=Fut(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=Fo(age(u,a),ye,M,W)}}}}let g=Pg(Gn(n),n,u);_&&Pa(g,_),t_(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function Fut(n){return B.lib&&!B.lib.includes("dom")&&Yct(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&py(n)}function BWe(n,a){let c=a.symbol&&ha(sr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&na(c.valueDeclaration)}function zut(n){let a=Pm(n),u=J6().get(a);return u&&WG(u.keys())}function But(n,a){let c=Mu(a).symbol;if(!c)return;let u=vl(c),g=J6().get(u);if(g){for(let[T,M]of g)if(zo(M,n))return T}}function GWe(n,a){return z5(n,_s(a),106500)}function cve(n,a){let c=_s(a);if(typeof n!="string"){let u=n.parent;wr(u)&&(c=jr(c,_=>UWe(u,a,_))),n=yr(n)}return z5(n,c,111551)}function VWe(n,a){let c=Co(n)?n:yr(n),u=_s(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 dve(n,a){let c=cve(n,a);return c&&vl(c)}function uve(n,a,c){return R.assert(a!==void 0,"outername should always be defined"),Bp(n,a,c,void 0,a,!1,!1,!0,(_,g,T)=>{R.assertEqual(a,g,"name should equal outerName");let M=Uu(_,g,T);if(M)return M;let W;return _===be?W=to(["string","number","boolean","object","bigint","symbol"],te=>_.has(te.charAt(0).toUpperCase()+te.slice(1))?Ha(524288,te):void 0).concat(Oo(_.values())):W=Oo(_.values()),z5(Vi(g),W,T)})}function Gut(n,a,c){let u=uve(n,a,c);return u&&vl(u)}function Tee(n,a){return a.exports&&z5(yr(n),AA(a),2623475)}function Vut(n,a){let c=Tee(n,a);return c&&vl(c)}function jut(n,a,c){function u(T){let M=t0(n,T);if(M){let W=QA(sr(M));return!!W&&Q_(W)>=1&&ya(c,f_(W,0))}return!1}let _=Qh(a)?"set":"get";if(!u(_))return;let g=nk(a.expression);return g===void 0?g=_:g+="."+_,g}function Uut(n,a){let c=a.types.filter(u=>!!(u.flags&128));return VC(n.value,c,u=>u.value)}function z5(n,a,c){return VC(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&&au(n.valueDeclaration)&&Ki(n.valueDeclaration.name);if(!(!_&&!g)&&!(a&&v6(a)&&!(n.flags&65536))){if(c){let T=Fn(a,Fs);if(T&&T.symbol===n)return}(Tl(n)&1?qi(n).target:n).isReferenced=-1}}function jWe(n,a){return n.kind===110||!!a&&Bl(n)&&a===Wm(Fp(n))}function Hut(n,a){switch(n.kind){case 211:return pve(n,n.expression.kind===108,a,Hp(po(n.expression)));case 166:return pve(n,!1,a,Hp(po(n.left)));case 205:return pve(n,!1,a,Ti(n))}}function UWe(n,a,c){return fve(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function pve(n,a,c,u){if(xt(u))return!0;let _=ha(u,c);return!!_&&fve(n,a,!1,u,_)}function fve(n,a,c,u,_){if(xt(u))return!0;if(_.valueDeclaration&&su(_.valueDeclaration)){let g=id(_.valueDeclaration);return!Ud(n)&&!!Fn(n,T=>T===g)}return NWe(n,a,c,u,_)}function Kut(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!Yo(c.name))return Sr(c)}else if(a.kind===80)return Wm(a)}function Jut(n){return gu(n).length===1&&!!bg(n,It)}function qut(n){let a=ms(n);if(a.kind===80){let c=Wm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&Kut(_)===c&&Jut(Id(_.expression)))return!0;u=_,_=_.parent}}}return!1}function Xut(n,a){return n.flags&64?Yut(n,a):HWe(n,gC(n.expression),a)}function Yut(n,a){let c=po(n.expression),u=N8(c,n.expression);return XZ(HWe(n,X_(u,n.expression),a),n,u!==c)}function HWe(n,a,c){let u=DI(n)!==0||wWe(n)?Hp(a):a,_=n.argumentExpression,g=po(_);if(Ut(u)||u===ho)return u;if(kee(u)&&!as(_))return Ve(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),pt;let T=qut(_)?It:g,M=Qh(n)?4|(BA(u)&&!YN(u)?2:0):32,W=kb(u,T,M,n)||pt;return ZFe(WWe(n,Zr(n).resolvedSymbol,W,_,c),n)}function KWe(n){return v_(n)||H0(n)||lu(n)}function $A(n){return KWe(n)&&gn(n.typeArguments,Ia),n.kind===215?po(n.template):lu(n)?po(n.attributes):ur(n)?po(n.left):v_(n)&&gn(n.arguments,a=>{po(a)}),yt}function Y_(n){return $A(n),cn}function $ut(n,a,c){let u,_,g=0,T,M=-1,W;R.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)?(M++,W=M,g++):W=T,a.splice(W,0,c?Hot(V,c):V)}}function Aee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Iee(n){return Kl(n,Aee)}function JWe(n){return!!(n.flags&16384)}function Qut(n){return!!(n.flags&49155)}function xee(n,a,c,u=!1){let _,g=!1,T=Kp(c),M=Q_(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let W=Ka(n.template.templateSpans);g=Fl(W.literal)||!!W.literal.isUnterminated}else{let W=n.template;R.assert(W.kind===15),g=!!W.isUnterminated}else if(n.kind===170)_=tFe(n,c);else if(n.kind===226)_=1;else if(lu(n)){if(g=n.attributes.end===n.end,g)return!0;_=M===0?a.length:1,T=a.length===0?T:1,M=Math.min(M,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)&&(Bh(c)||WT)return!1;if(g||_>=M)return!0;for(let W=_;W=u&&a.length<=c}function qWe(n,a){let c;return!!(n.target&&(c=jS(n.target,a))&&pC(c))}function QA(n){return z8(n,0,!1)}function XWe(n){return z8(n,0,!1)||z8(n,1,!1)}function z8(n,a,c){if(n.flags&524288){let u=c_(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 YWe(n,a,c,u){let _=L8(n.typeParameters,n,0,u),g=B8(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),M=T?mC(a,T):a;return mye(M,n,(W,V)=>{_y(_.inferences,W,V)}),c||_ye(a,n,(W,V)=>{_y(_.inferences,W,V,128)}),g8(n,Rye(_),ir(a.declaration))}function Zut(n,a,c,u){let _=gee(a,n),g=bC(n.attributes,_,u,c);return _y(u.inferences,g,_),Rye(u)}function $We(n){if(!n)return er;let a=po(n);return qie(n)?a:tN(n.parent)?my(a):Ud(n.parent)?qZ(a):a}function _ve(n,a,c,u,_){if(lu(n))return Zut(n,a,u,_);if(n.kind!==170&&n.kind!==226){let W=oo(a.typeParameters,te=>!!OA(te)),V=Ju(n,W?8:0);if(V){let te=ds(a);if(c0(te)){let ye=GS(n);if(!(!W&&Ju(n,8)!==V)){let At=vye(pct(ye,1)),rn=io(V,At),sn=QA(rn),nr=sn&&sn.typeParameters?WA(fge(sn,sn.typeParameters)):rn;_y(_.inferences,nr,te,128)}let je=L8(a.typeParameters,a,_.flags),mt=io(V,ye&&ye.returnMapper);_y(je.inferences,mt,te),_.returnMapper=gt(je.inferences,EC)?vye(hct(je)):void 0}}}let g=G8(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 M=r0(a);if(M&&c0(M)){let W=eFe(n);_y(_.inferences,$We(W),M)}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 fv(ye)?QWe(ye):zd(_v(33,ye,Me,te.kind===230?te.expression:te),T)}}let M=[],W=[],V=[];for(let te=a;teFo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,ye=u||f.Type_0_does_not_satisfy_the_constraint_1;M||(M=Np(g,T));let _e=T[W];if(!eu(_e,Up(io(V,M),_e),c?a[W]:void 0,ye,te))return}}return T}function ZWe(n){if(ux(n.tagName))return 2;let a=Mu(po(n.tagName));return Nn(Ho(a,1))?0:Nn(Ho(a,0))?1:2}function ept(n,a,c,u,_,g,T){let M=gee(a,n),W=bC(n.attributes,M,void 0,u),V=u&4?M8(W):W;return te()&&Zge(V,M,c,_?n.tagName:void 0,n.attributes,void 0,g,T);function te(){var ye;if(Zye(n))return!0;let _e=(P_(n)||OT(n))&&!(ux(n.tagName)||Xm(n.tagName))?po(n.tagName):void 0;if(!_e)return!0;let je=Ho(_e,0);if(!Nn(je))return!0;let mt=a4e(n);if(!mt)return!0;let At=js(mt,111551,!0,!1,n);if(!At)return!0;let rn=sr(At),sn=Ho(rn,0);if(!Nn(sn))return!0;let nr=!1,Mn=0;for(let On of sn){let Ln=f_(On,0),Yn=Ho(Ln,0);if(Nn(Yn))for(let jn of Yn){if(nr=!0,Bh(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 tpt(n);if(n.kind===226)return[n.left];if(lu(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?zd(M):M,!!(te&12),(V=T.target.labeledElementDeclarations)==null?void 0:V[W]);u.push(ye)}):u.push(g)}return u}return a}function tpt(n){let a=n.expression,c=Cve(n);if(c){let u=[];for(let _ of c.parameters){let g=sr(_);u.push(V5(a,g))}return u}return R.fail()}function tFe(n,a){return B.experimentalDecorators?npt(n,a):2}function npt(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 R.fail()}}function nFe(n){let a=Gn(n),{start:c,length:u}=fT(a,wr(n.expression)?n.expression.name:n.expression);return{start:c,length:u,sourceFile:a}}function j5(n,a,...c){if(ra(n)){let{sourceFile:u,start:_,length:g}=nFe(n);return"message"in a?Yc(u,_,g,a,...c):rj(u,a)}else return"message"in a?Pr(n,a,...c):Pg(Gn(n),n,a)}function rpt(n){return v_(n)?wr(n.expression)?n.expression.name:n.expression:H0(n)?wr(n.tag)?n.tag.name:n.tag:lu(n)?n.tagName:n}function ipt(n){if(!ra(n)||!Fe(n.expression))return!1;let a=gl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!To(c)||!z0(c.parent)||!U0(c.parent.parent)||!Fe(c.parent.parent.expression))return!1;let u=xge(!1);return u?zm(c.parent.parent.expression,!0)===u:!1}function rFe(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,M=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 M=Fo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T);return M=Fo(M,u),y2(Gn(n),c,M)}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 M=Fo(void 0,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_);return M=Fo(M,u),y2(Gn(n),c,M)}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,M=n.kind===170,W=lu(n),V=n.kind===226,te=!j&&!c,ye;!M&&!V&&!mT(n)&&(ye=n.typeArguments,(T||W||n.expression.kind!==108)&&gn(ye,Ia));let _e=c||[];$ut(a,_e,_),R.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=!M&&!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,xh,mt,an)),Mn||(Mn=Ln(_e,ju,mt,an)),Mn)return Mn;if(Mn=apt(n,_e,je,!!c,u),Zr(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=Fo(jn,f.The_last_overload_gave_the_following_error),jn=Fo(jn,f.No_overload_matches_this_call)),g&&(jn=Fo(jn,g));let $n=G5(n,je,Yn,ju,0,!0,()=>jn);if($n)for(let xo of $n)Yn.declaration&&rn.length>3&&Pa(xo,Pr(Yn.declaration,f.The_last_overload_is_declared_here)),On(Yn,xo),$a.add(xo);else R.fail("No error for last overload signature")}else{let Yn=[],jn=0,$n=Number.MAX_VALUE,xo=0,vo=0;for(let sp of rn){let Xn=G5(n,je,sp,ju,0,!0,()=>Fo(void 0,f.Overload_0_of_1_2_gave_the_following_error,vo+1,_e.length,Ph(sp)));Xn?(Xn.length<=$n&&($n=Xn.length,xo=vo),jn=Math.max(jn,Xn.length),Yn.push(Xn)):R.fail("No error for 3 or fewer overload signatures"),vo++}let Wo=jn>1?Yn[xo]:pm(Yn);R.assert(Wo.length>0,"No errors reported for 3 or fewer overload signatures");let fo=Fo(mn(Wo,Qre),f.No_overload_matches_this_call);g&&(fo=Fo(fo,g));let Rc=[...va(Wo,sp=>sp.relatedInformation)],Vf;if(oo(Wo,sp=>sp.start===Wo[0].start&&sp.length===Wo[0].length&&sp.file===Wo[0].file)){let{file:sp,start:Pn,length:Xn}=Wo[0];Vf={file:sp,start:Pn,length:Xn,code:fo.code,category:fo.category,messageText:fo,relatedInformation:Rc}}else Vf=Pg(Gn(n),rpt(n),fo,Rc);On(rn[0],Vf),$a.add(Vf)}else if(sn)$a.add(rFe(n,[sn],je,g));else if(nr)gve(nr,n.typeArguments,!0,g);else{let Yn=jr(a,jn=>mve(jn,ye));Yn.length===0?$a.add(opt(n,a,ye,g)):$a.add(rFe(n,Yn,je,g))}return Mn;function On(Yn,jn){var $n,xo;let vo=rn,Wo=sn,fo=nr,Rc=((xo=($n=Yn.declaration)==null?void 0:$n.symbol)==null?void 0:xo.declarations)||Xe,sp=Rc.length>1?Vr(Rc,Pn=>Fs(Pn)&&Hf(Pn.body)):void 0;if(sp){let Pn=lm(sp),Xn=!Pn.typeParameters;Ln([Pn],ju,Xn)&&Pa(jn,Pr(sp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}rn=vo,sn=Wo,nr=fo}function Ln(Yn,jn,$n,xo=!1){if(rn=void 0,sn=void 0,nr=void 0,$n){let vo=Yn[0];if(gt(ye)||!xee(n,je,vo,xo))return;if(G5(n,je,vo,jn,0,!1,void 0)){rn=[vo];return}return vo}for(let vo=0;vo0),px(n),u||a.length===1||a.some(g=>!!g.typeParameters)?cpt(n,a,c,_):spt(a)}function spt(n){let a=to(n,W=>W.thisParameter),c;a.length&&(c=iFe(a,a.map(K5)));let{min:u,max:_}=xoe(n,lpt),g=[];for(let W=0;W<_;W++){let V=to(n,te=>qd(te)?WjS(te,W))))}let T=to(n,W=>qd(W)?Ka(W.parameters):void 0),M=128;if(T.length!==0){let W=zd(ti(to(n,Wwe),2));g.push(oFe(T,W)),M|=1}return n.some(vK)&&(M|=2),vg(n[0].declaration,void 0,c,g,ga(n.map(ds)),void 0,u,M)}function lpt(n){let a=n.parameters.length;return qd(n)?a-1:a}function iFe(n,a){return oFe(n,ti(a,2))}function oFe(n,a){return UA(Ga(n),a)}function cpt(n,a,c,u){let _=ppt(a,Zt===void 0?c.length:Zt),g=a[_],{typeParameters:T}=g;if(!T)return g;let M=KWe(n)?n.typeArguments:void 0,W=M?yZ(g,dpt(M,T,ir(n))):upt(n,T,g,c,u);return a[_]=W,W}function dpt(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 fpt(n,a,c){if(n.expression.kind===108){let W=Vye(n.expression);if(xt(W)){for(let V of n.arguments)po(V);return yt}if(!Ut(W)){let V=S_(id(n));if(V){let te=kh(W,V.typeArguments,V);return yC(n,te,a,c,0)}}return $A(n)}let u,_=po(n.expression);if(oT(n)){let W=N8(_,n.expression);u=W===_?0:nN(n)?16:8,_=W}else u=0;if(_=MWe(_,n.expression,Nut),_===ho)return fr;let g=Mu(_);if(Ut(g))return Y_(n);let T=Ho(g,0),M=Ho(g,1).length;if(U5(_,g,T.length,M))return!Ut(_)&&n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);if(!T.length){if(M)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))}vve(n.expression,g,0,W)}return Y_(n)}return c&8&&!n.typeArguments&&T.some(mpt)?(VFe(n,c),vr):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 mpt(n){return!!(n.typeParameters&&cbe(ds(n)))}function U5(n,a,c,u){return xt(n)||xt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(d_(a).flags&131072)&&ya(n,Lt)}function _pt(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===ho)return fr;if(u=Mu(u),Ut(u))return Y_(n);if(xt(u))return n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),$A(n);let _=Ho(u,1);if(_.length){if(!hpt(n,_[0]))return Y_(n);if(aFe(_,M=>!!(M.flags&4)))return Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n);let T=u.symbol&&wg(u.symbol);return T&&Qr(T,64)?(Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Y_(n)):yC(n,_,a,c,0)}let g=Ho(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),r0(T)===er&&Ve(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return vve(n.expression,u,1),Y_(n)}function aFe(n,a){return So(n)?gt(n,c=>aFe(c,a)):n.compositeKind===1048576?gt(n.compositeSignatures,a):a(n)}function yve(n,a){let c=Dp(a);if(!Nn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=ywe(_),T=0;for(let M of u.types){if(!g[T]&&kr(M)&3&&(M.symbol===n||yve(n,M)))return!0;T++}return!1}return u.symbol===n?!0:yve(n,u)}function hpt(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=PI(c,6);if(!u||c.kind!==176)return!0;let _=wg(c.parent.symbol),g=$s(c.parent.symbol);if(!abe(n,_)){let T=id(n);if(T&&u&4){let M=fx(T);if(yve(c.parent.symbol,M))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 sFe(n,a,c){let u,_=c===0,g=eI(a),T=g&&Ho(g,c).length>0;if(a.flags&1048576){let W=a.types,V=!1;for(let te of W)if(Ho(te,c).length!==0){if(V=!0,u)break}else if(u||(u=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(te)),u=Fo(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=Fo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Vn(a))),u||(u=Fo(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=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(a));let M=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ra(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:W}=Zr(n);W&&W.flags&32768&&(M=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Fo(u,M),relatedMessage:T?f.Did_you_forget_to_use_await:void 0}}function vve(n,a,c,u){let{messageChain:_,relatedMessage:g}=sFe(n,a,c),T=Pg(Gn(n),n,_);if(g&&Pa(T,Pr(n,g)),ra(n.parent)){let{start:M,length:W}=nFe(n.parent);T.start=M,T.length=W}$a.add(T),lFe(a,c,u?Pa(T,u):T)}function lFe(n,a,c){if(!n.symbol)return;let u=qi(n.symbol).originatingImport;if(u&&!Op(u)){let _=Ho(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 gpt(n,a,c){let u=po(n.tag),_=Mu(u);if(Ut(_))return Y_(n);let g=Ho(_,0),T=Ho(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(!g.length){if(fu(n.parent)){let M=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 $a.add(M),Y_(n)}return vve(n.tag,_,0),Y_(n)}return yC(n,g,a,c,0)}function ypt(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 R.fail()}}function vpt(n,a,c){let u=po(n.expression),_=Mu(u);if(Ut(_))return Y_(n);let g=Ho(_,0),T=Ho(_,1).length;if(U5(u,_,g.length,T))return $A(n);if(Spt(n,g)&&!Fu(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 M=ypt(n);if(!g.length){let W=sFe(n.expression,_,0),V=Fo(W.messageChain,M),te=Pg(Gn(n.expression),n.expression,V);return W.relatedMessage&&Pa(te,Pr(n.expression,W.relatedMessage)),$a.add(te),lFe(_,0,te),Y_(n)}return yC(n,g,a,c,0,M)}function Cee(n,a){let c=YA(n),u=c&&xp(c),_=u&&Uu(u,nf.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)),M=Ha(1,"props");return M.links.type=a,vg(T,void 0,void 0,[M],_?$s(_):pt,void 0,1,0)}function bpt(n,a,c){if(ux(n.tagName)){let T=xWe(n),M=Cee(n,T);return Fb(bC(n.attributes,gee(M,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(gn(n.typeArguments,Ia),$a.add(Hx(Gn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Nn(n.typeArguments)))),M}let u=po(n.tagName),_=Mu(u);if(Ut(_))return Y_(n);let g=AWe(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 Ept(n,a,c){let u=po(n.right);if(!xt(u)){let _=Lve(u);if(_){let g=Mu(_);if(Ut(g))return Y_(n);let T=Ho(g,0),M=Ho(g,1);if(U5(_,g,T.length,M.length))return $A(n);if(T.length)return yC(n,T,a,c,0)}else if(!(Qee(u)||Wb(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 Spt(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)||$Oe(_,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 Ppt(n){let a=po(n.expression),c=N8(a,n.expression);return XZ(my(c),n,c!==a)}function Mpt(n){return n.flags&64?Ppt(n):my(po(n.expression))}function _Fe(n){if(c4e(n),gn(n.typeArguments,Ia),n.kind===233){let c=Ly(n.parent);c.kind===226&&c.operatorToken.kind===104&&N0(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):w0(n.exprName)?P5(n.exprName):po(n.exprName);return hFe(a,n)}function hFe(n,a){let c=a.typeArguments;if(n===ho||Ut(n)||!gt(c))return n;let u=!1,_,g=M(n),T=u?_:n;return T&&$a.add(Hx(Gn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Vn(T))),g;function M(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=c_(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=Ns(Ha(0,"__instantiationExpression"),At.members,rn,sn,At.indexInfos);return nr.objectFlags|=8388608,nr.node=a,nr}}else if(mt.flags&58982400){let At=Fd(mt);if(At){let rn=je(At);if(rn!==At)return rn}}else{if(mt.flags&1048576)return cl(mt,M);if(mt.flags&2097152)return ga(Nc(mt.types,je))}return mt}}function W(V){let te=jr(V,ye=>!!ye.typeParameters&&mve(ye,c));return Nc(te,ye=>{let _e=gve(ye,c,!0);return _e?g8(ye,_e,ir(ye.declaration)):ye})}}function Lpt(n){return Ia(n.type),Tve(n.expression,n.type)}function Tve(n,a,c){let u=po(n,c),_=Ti(a);if(Ut(_))return _;let g=Fn(a.parent,T=>T.kind===238||T.kind===357);return Fb(u,_,g,n,f.Type_0_does_not_satisfy_the_expected_type_1),u}function kpt(n){return Ngt(n),n.keywordToken===105?Ave(n):n.keywordToken===102?wpt(n):R.assertNever(n.keywordToken)}function gFe(n){switch(n.keywordToken){case 102:return Qwe();case 105:let a=Ave(n);return Ut(a)?pt:Qpt(a);default:R.assertNever(n.keywordToken)}}function Ave(n){let a=pie(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"),pt}function wpt(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 R.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?$we():pt}function K5(n){let a=n.valueDeclaration;return op(sr(n),!1,!!a&&(Lv(a)||$N(a)))}function Ive(n,a,c="arg"){return n?(R.assert(Fe(n.name)),n.name.escapedText):`${c}_${a}`}function YM(n,a,c){let u=n.parameters.length-(qd(n)?1:0);if(a=u-1)return a===u-1?g:zd(Cp(g,It));let T=[],M=[],W=[];for(let V=a;V!(W&1)),M=T<0?g.target.fixedLength:T;M>0&&(_=n.parameters.length-1+M)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(u)return _;for(let g=_-1;g>=0;g--){let T=f_(n,g);if(cc(T,JWe).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Bh(n){if(qd(n)){let a=sr(n.parameters[n.parameters.length-1]);return!wa(a)||a.target.hasRestElement}return!1}function B8(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 FM(a,a.target.fixedLength)}}function G8(n){let a=B8(n);return a&&!Gf(a)&&!xt(a)?a:void 0}function xve(n){return Rve(n,Fr)}function Rve(n,a){return n.parameters.length>0?f_(n,0):a}function EFe(n,a,c){let u=n.parameters.length-(qd(n)?1:0);for(let _=0;_=0);let g=Nl(u.parent)?sr(Sr(u.parent.parent)):Q6e(u.parent),T=Nl(u.parent)?Me:Z6e(u.parent),M=u_(_),W=n_("target",g),V=n_("propertyKey",T),te=n_("parameterIndex",M);c.decoratorSignature=J8(void 0,void 0,[W,V,te],er);break}case 174:case 177:case 178:case 172:{let u=a;if(!di(u.parent))break;let _=Q6e(u),g=n_("target",_),T=Z6e(u),M=n_("propertyKey",T),W=Vo(u)?er:oOe(fx(u));if(ce!==0&&(!Vo(a)||I_(a))){let te=oOe(fx(u)),ye=n_("descriptor",te);c.decoratorSignature=J8(void 0,void 0,[g,M,ye],ti([W,er]))}else c.decoratorSignature=J8(void 0,void 0,[g,M],ti([W,er]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Cve(n){return ee?$pt(n):Ypt(n)}function X5(n){let a=o5(!0);return a!==Mo?(n=mv(tL(n))||un,cv(a,[n])):un}function AFe(n){let a=nOe(!0);return a!==Mo?(n=mv(tL(n))||un,cv(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),pt):(xge(!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 Qpt(n){let a=Ha(0,"NewTargetExpression"),c=Ha(4,"target",8);c.parent=a,c.links.type=n;let u=aa([c]);return a.members=u,Ns(a,u,Xe,Xe,Xe)}function Mee(n,a){if(!n.body)return pt;let c=Bc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,M,W=er;if(n.body.kind!==241)g=tc(n.body,a&&a&-9),u&&(g=tL(K8(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=NFe(n,a);V?V.length>0&&(g=ti(V,2)):W=Fr;let{yieldTypes:te,nextTypes:ye}=Zpt(n,a);T=gt(te)?ti(te,2):void 0,M=gt(ye)?ga(ye):void 0}else{let V=NFe(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=ti(V,2)}if(g||T||M){if(T&&ZZ(n,T,3),g&&ZZ(n,g,1),M&&ZZ(n,M,2),g&&p_(g)||T&&p_(T)||M&&p_(M)){let V=Xye(n),te=V?V===lm(n)?_?void 0:g:_ee(ds(V),n,void 0):void 0;_?(T=pye(T,te,0,u),g=pye(g,te,1,u),M=pye(M,te,2,u)):g=ect(g,te,u)}T&&(T=Hp(T)),g&&(g=Hp(g)),M&&(M=Hp(M))}return _?IFe(T||Fr,g||W,M||dWe(2,n)||un,u):u?X5(g||W):g||W}function IFe(n,a,c,u){let _=u?Vs:hc,g=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||un,a=_.resolveIterationType(a,void 0)||un,c=_.resolveIterationType(c,void 0)||un,g===Mo){let T=_.getGlobalIterableIteratorType(!1),M=T!==Mo?g6e(T,_):void 0,W=M?M.returnType:G,V=M?M.nextType:Me;return ya(a,W)&&ya(V,c)?T!==Mo?v8(T,[n]):(_.getGlobalIterableIteratorType(!0),Ca):(_.getGlobalGeneratorType(!0),Ca)}return v8(g,[n,a,c])}function Zpt(n,a){let c=[],u=[],_=(Bc(n)&2)!==0;return tie(n.body,g=>{let T=g.expression?po(g.expression,a):Nt;yf(c,xFe(g,T,G,_));let M;if(g.asteriskToken){let W=Hee(T,_?19:17,g.expression);M=W&&W.nextType}else M=Ju(g,void 0);M&&yf(u,M)}),{yieldTypes:c,nextTypes:u}}function xFe(n,a,c,u){let _=n.expression||n,g=n.asteriskToken?_v(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 RFe(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 DFe(n){let a=Zr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=eft(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function eft(n){if(n.expression.kind===221){let u=V8e(n);if(!u)return!1;let _=ly(tc(n.expression.expression)),g=RFe(0,0,u);return _.flags&3?(556800&g)===556800:!Fm(_,T=>HM(T,g)===g)}let a=tc(n.expression);if(!C8(a))return!1;let c=oee(n);return!c.length||gt(c,$lt)?!1:qct(cl(a,vu),c)}function CFe(n){return n.endFlowNode&&C5(n.endFlowNode)}function NFe(n,a){let c=Bc(n),u=[],_=CFe(n),g=!1;if(x0(n.body,T=>{let M=T.expression;if(M){if(M=ms(M,!0),c&2&&M.kind===223&&(M=ms(M.expression,!0)),M.kind===213&&M.expression.kind===80&&tc(M.expression).symbol===n.symbol){g=!0;return}let W=tc(M,a&&a&-9);c&2&&(W=tL(K8(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||tft(n))))return J&&u.length&&_&&!($_(n)&&u.some(T=>T.symbol===n.symbol))&&yf(u,Me),u}function tft(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Nve(n,a){r(c);return;function c(){let u=Bc(n),_=a&&sG(a,u);if(_&&(Rl(_,16384)||_.flags&32769)||n.kind===173||Fl(n.body)||n.body.kind!==241||!CFe(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 M=ds(lm(n));if(I6e(n,M))return}Ve(T,f.Not_all_code_paths_return_a_value)}}}function PFe(n,a){if(R.assert(n.kind!==174||bm(n)),px(n),Ls(n)&&nL(n,n.name),a&&a&4&&zf(n)){if(!$f(n)&&!z6(n)){let u=F8(n);if(u&&c0(ds(u))){let _=Zr(n);if(_.contextFreeType)return _.contextFreeType;let g=Mee(n,a),T=vg(void 0,void 0,void 0,Xe,g,void 0,0,64),M=Ns(n.symbol,K,[T],Xe,Xe);return M.objectFlags|=262144,_.contextFreeType=M}}return tn}return!nte(n)&&n.kind===218&&pbe(n),nft(n,a),sr(Sr(n))}function nft(n,a){let c=Zr(n);if(!(c.flags&64)){let u=F8(n);if(!(c.flags&64)){c.flags|=64;let _=Jc(Ho(sr(Sr(n)),0));if(!_)return;if(zf(n))if(u){let g=GS(n),T;if(a&&a&2){EFe(_,u,g);let M=B8(u);M&&M.flags&262144&&(T=mC(u,g.nonFixingMapper))}T||(T=g?mC(u,g.mapper):u),Fpt(_,T)}else zpt(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=GS(n);a&&a&2&&EFe(_,u,g)}if(u&&!sC(n)&&!_.resolvedReturnType){let g=Mee(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}j8(n)}}}function rft(n){R.assert(n.kind!==174||bm(n));let a=Bc(n),c=sC(n);if(Nve(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=K8(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);Fb(T,_,g,g)}else Fb(u,_,g,g)}}}function Lee(n,a,c,u=!1){if(!ya(a,$l)){let _=u&&eL(a);return zE(n,!!_&&ya(_,$l),c),!1}return!0}function ift(n){if(!ra(n)||!gT(n))return!1;let a=tc(n.arguments[2]);if(Ue(a,"value")){let _=ha(a,"writable"),g=_&&sr(_);if(!g||g===Kt||g===En)return!0;if(_&&_.valueDeclaration&&mc(_.valueDeclaration)){let T=_.valueDeclaration.initializer,M=po(T);if(M===Kt||M===En)return!0}return!1}return!ha(a,"set")}function m_(n){return!!(Tl(n)&8||n.flags&4&&Tf(n)&8||n.flags&3&&nve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||gt(n.declarations,ift))}function MFe(n,a,c){var u,_;if(c===0)return!1;if(m_(a)){if(a.flags&4&&Ms(n)&&n.expression.kind===110){let g=Wp(n);if(!(g&&(g.kind===176||$_(g))))return!0;if(a.valueDeclaration){let T=ur(a.valueDeclaration),M=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!(M||W||V||te)}}return!0}if(Ms(n)){let g=ms(n.expression);if(g.kind===80){let T=Zr(g).resolvedSymbol;if(T.flags&2097152){let M=Mm(T);return!!M&&M.kind===274}}}return!1}function V8(n,a,c){let u=Yl(n,7);return u.kind!==80&&!Ms(u)?(Ve(n,a),!1):u.flags&64?(Ve(n,c),!1):!0}function oft(n){po(n.expression);let a=ms(n.expression);if(!Ms(a))return Ve(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),gi;wr(a)&&Ki(a.name)&&Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Zr(a),u=mf(c.resolvedSymbol);return u&&(m_(u)?Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):aft(a,u)),gi}function aft(n,a){let c=sr(a);J&&!(c.flags&131075)&&!(Ie?a.flags&16777216:dm(c,16777216))&&Ve(n,f.The_operand_of_a_delete_operator_must_be_optional)}function sft(n){return po(n.expression),FD}function lft(n){return px(n),Nt}function LFe(n){let a=!1,c=OF(n);if(c&&Al(c)){let u=qv(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(!HS(u)){let _;if(!TI(u,B)){_??(_=fh(u,n.pos));let g=qv(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=Yc(u,_.start,_.length,g);$a.add(T),a=!0}switch(z){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=fh(u,n.pos)),$a.add(Yc(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:_??(_=fh(u,n.pos));let g=qv(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;$a.add(Yc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Gn(n);if(!HS(u)){let _=fh(u,n.pos),g=qv(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=Yc(u,_.start,_.length,g);if(c&&c.kind!==176&&!(Bc(c)&2)){let M=Pr(c,f.Did_you_mean_to_mark_this_function_as_async);Pa(T,M)}$a.add(T),a=!0}}return qv(n)&&Uye(n)&&(Ve(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function cft(n){r(()=>LFe(n));let a=po(n.expression),c=K8(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&&!Ut(c)&&!(a.flags&3)&&t_(!1,Pr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function dft(n){let a=po(n.operand);if(a===ho)return ho;switch(n.operand.kind){case 9:switch(n.operator){case 41:return cx(u_(-n.operand.text));case 40:return cx(u_(+n.operand.text))}break;case 10:if(n.operator===41)return cx(PZ({negative:!0,base10Value:HN(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(fy(a))),It):Pve(a);case 54:Jve(a,n.operand);let c=HM(a,12582912);return c===4194304?Kt: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)&&V8(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),Pve(a)}return pt}function uft(n){let a=po(n.operand);return a===ho?ho:(Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&V8(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),Pve(a))}function Pve(n){return Rl(n,2112)?Ad(n,3)||Rl(n,296)?$l:Dt:It}function $5(n,a){if(Rl(n,a))return!0;let c=ly(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 Ad(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)):Ad(n,a,c)}function kee(n){return!!(kr(n)&16)&&!!n.symbol&&Mve(n.symbol)}function Mve(n){return(n.flags&128)!==0}function Lve(n){let a=v6e("hasInstance"),c=t0(n,a);if(c){let u=sr(c);if(u&&Ho(u,0).length!==0)return u}}function pft(n,a,c,u,_){if(c===ho||u===ho)return ho;!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),R.assert(m6(n.parent));let g=vC(n.parent,void 0,_);if(g===vr)return ho;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 fft(n){return Fm(n,a=>a===xl||!!(a.flags&2097152)&&zh(ly(a)))}function mft(n,a,c,u){if(c===ho||u===ho)return ho;if(Ki(n)){if(ce<99&&xc(n,2097152),!Zr(n).resolvedSymbol&&id(n)){let _=lve(n,u.symbol,!0);zWe(n,u,_)}}else eu(X_(c,n),xn,n);return eu(X_(u,a),Kr,a)&&fft(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 _ft(n,a,c){let u=n.properties;if(J&&u.length===0)return X_(a,n);for(let _=0;_FM(V,c)):zd(u);return ZA(M,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)),bft(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?_ft(_,a,u):_.kind===209?hft(_,a,c):gft(_,a,c)}function gft(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 V8(n,_,g)&&Fb(a,u,n,n),Ox(n)&&xc(n.parent,1048576),a}function Z5(n){switch(n=ms(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 wy(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 kve(n,a){return(a.flags&98304)!==0||WZ(n,a)}function yft(){let n=e3(a,c,u,_,g,T);return(_e,je)=>{let mt=n(_e,je);return R.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):(vft(_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 M(je,_e)}function u(_e,je,mt){if(!je.skip){let At=te(je);R.assertIsDefined(At),V(je,At),ye(je,void 0);let rn=_e.kind;if(Z2(rn)){let sn=mt.parent;for(;sn.kind===217||ek(sn);)sn=sn.parent;(rn===56||LT(sn))&&Kve(mt.left,At,LT(sn)?sn.thenStatement:void 0),Jve(At,mt.left)}}}function _(_e,je,mt){if(!je.skip)return M(je,_e)}function g(_e,je){let mt;if(je.skip)mt=te(je);else{let At=W(je);R.assertIsDefined(At);let rn=te(je);R.assertIsDefined(rn),mt=OFe(_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 M(_e,je){if(ur(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 vft(n){let{left:a,operatorToken:c,right:u}=n;c.kind===61&&(ur(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)),ur(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 bft(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;Z2(g)?T=rL(n,u):T=po(n,u);let M=po(c,u);return OFe(n,a,c,T,M,u,_)}function OFe(n,a,c,u,_,g,T){let M=a.kind;switch(M){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===ho||_===ho)return ho;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(Ad(u,3)&&Ad(_,3)||!(Rl(u,2112)||Rl(_,2112)))$n=It;else if(W(u,_)){switch(M){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=pt;return Yn&&jn&&je($n),$n}case 40:case 65:if(u===ho||_===ho)return ho;!Ad(u,402653316)&&!Ad(_,402653316)&&(u=X_(u,n),_=X_(_,c));let On;return Ad(u,296,!0)&&Ad(_,296,!0)?On=It:Ad(u,2112,!0)&&Ad(_,2112,!0)?On=Dt:Ad(u,402653316,!0)||Ad(_,402653316,!0)?On=Ne:(xt(u)||xt(_))&&(On=Ut(u)||Ut(_)?pt:G),On&&!ye(M)?On:On?(M===65&&je(On),On):(rn((jn,$n)=>Ad(jn,402655727)&&Ad($n,402655727)),G);case 30:case 32:case 33:case 34:return ye(M)&&(u=dye(X_(u,n)),_=dye(X_(_,c)),At((Yn,jn)=>{if(xt(Yn)||xt(jn))return!0;let $n=ya(Yn,$l),xo=ya(jn,$l);return $n&&xo||!$n&&!xo&&m5(Yn,jn)})),gi;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((RV(n)||RV(c))&&(!ir(n)||M===37||M===38)){let Yn=M===35||M===37;Ve(T,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Yn?"false":"true")}nr(T,M,n,c),At((Yn,jn)=>kve(Yn,jn)||kve(jn,Yn))}return gi;case 104:return pft(n,c,u,_,g);case 103:return mft(n,c,u,_);case 56:case 77:{let Yn=dm(u,4194304)?ti([rct(J?u:fy(_)),_]):u;return M===77&&je(_),Yn}case 57:case 76:{let Yn=dm(u,8388608)?ti([my(_8e(u)),_],2):u;return M===76&&je(_),Yn}case 61:case 78:{let Yn=dm(u,262144)?ti([my(u),_],2):u;return M===78&&je(_),Yn}case 64:let Ln=ur(n.parent)?zl(n.parent):0;return V(Ln,_),mt(Ln)?((!(_.flags&524288)||Ln!==2&&Ln!==6&&!py(_)&&!Pye(_)&&!(kr(_)&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(vo=>vo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:_V(vo,$n))||Ve(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return R.fail()}function W(an,On){return Ad(an,2112)&&Ad(On,2112)}function V(an,On){if(an===2)for(let Ln of Pb(On)){let Yn=sr(Ln);if(Yn.symbol&&Yn.symbol.flags&32){let jn=Ln.escapedName,$n=gl(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"&&(ra(an.parent.parent)&&an.parent.parent.expression===an.parent||an.parent.parent.kind===215)&&(Ms(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){wy(M)&&r(On);function On(){let Ln=u;if(PP(a.kind)&&n.kind===211&&(Ln=bee(n,void 0,!0)),V8(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(Ie&&wr(n)&&Rl(an,32768)){let jn=Ue(Id(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)}Fb(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=ff(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 vo=mv(u),Wo=mv(_);On=!(vo===u&&Wo===_)&&!!(vo&&Wo)&&an(vo,Wo)}let Yn=u,jn=_;!On&&an&&([Yn,jn]=Eft(u,_,an));let[$n,xo]=tx(Yn,jn);sn(Ln,On,$n,xo)||zE(Ln,On,f.Operator_0_cannot_be_applied_to_types_1_and_2,da(a.kind),$n,xo)}function sn(an,On,Ln,Yn){switch(a.kind){case 37:case 35:case 38:case 36:return zE(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(ms(Ln)),$n=Mn(ms(Yn));if(jn||$n){let xo=Ve(an,f.This_condition_will_always_return_0,da(On===37||On===35?97:112));if(jn&&$n)return;let vo=On===38||On===36?da(54):"",Wo=jn?Yn:Ln,fo=ms(Wo);Pa(xo,Pr(Wo,f.Did_you_mean_0,`${vo}Number.isNaN(${Bl(fo)?up(fo):"..."})`))}}function Mn(an){if(Fe(an)&&an.escapedText==="NaN"){let On=cst();return!!On&&On===Wm(an)}return!1}}function Eft(n,a,c){let u=n,_=a,g=fy(n),T=fy(a);return c(g,T)||(u=g,_=T),[u,_]}function Sft(n){r(_e);let a=Wp(n);if(!a)return G;let c=Bc(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=>Wve(je,c,void 0)));let g=_&&A6e(_,u),T=g&&g.yieldType||G,M=g&&g.nextType||G,W=u?eI(M)||G:M,V=n.expression?po(n.expression):Nt,te=xFe(n,V,W,u);if(_&&te&&Fb(te,T,n.expression||n,n.expression),n.asteriskToken)return Xve(u?19:17,1,V,n.expression)||G;if(_)return US(2,_,u)||G;let ye=dWe(2,a);return ye||(ye=G,r(()=>{if(fe&&!Poe(n)){let je=Ju(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||fd(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),Uye(n)&&Ve(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Tft(n,a){let c=rL(n.condition,a);Kve(n.condition,c,n.whenTrue);let u=po(n.whenTrue,a),_=po(n.whenFalse,a);return ti([u,_],2)}function WFe(n){let a=n.parent;return Fu(a)&&WFe(a)||Xs(a)&&a.argumentExpression===n}function Aft(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,Po)?g:Ne)}if(QM(n)||WFe(n)||Fm(Ju(n,void 0)||un,Ift))return FA(a,c);let u=n.parent.kind!==215&&z6e(n);return u?cx(Ku(u)):Ne}function Ift(n){return!!(n.flags&134217856||n.flags&58982400&&Rl(Fd(n)||un,402653316))}function xft(n){return X0(n)&&!OT(n.parent)?n.parent.parent:n}function bC(n,a,c,u){let _=xft(n);L5(_,a,!1),Kdt(_,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))?vu(g):g;return Jdt(),W8(),T}function tc(n,a){if(a)return po(n,a);let c=Zr(n);if(!c.resolvedType){let u=B_,_=_n;B_=uf,_n=void 0,c.resolvedType=po(n,a),_n=_,B_=u}return c.resolvedType}function FFe(n){return n=ms(n,!0),n.kind===216||n.kind===234||WR(n)}function $M(n,a,c){let u=C2(n);if(ir(n)){let g=V6(n);if(g)return Tve(u,g,a)}let _=Ove(u)||(c?bC(u,c,void 0,a||0):tc(u,a));return To(n)&&n.name.kind===207&&wa(_)&&!_.target.hasRestElement&&dv(_)Oee(n,u))}if(a.flags&58982400){let c=Fd(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 QM(n){let a=n.parent;return cT(a)&&Cg(a.type)||WR(a)&&Cg(Y4(a))||Sve(n)&&wA(Ju(n,0))||(Fu(a)||fu(a)||qm(a))&&QM(a)||(mc(a)||Zu(a)||uP(a))&&QM(a.parent)}function ZM(n,a,c){let u=po(n,a,c);return QM(n)||iie(n)?vu(u):FFe(n)?u:uye(u,_ee(Ju(n,void 0),n,void 0))}function zFe(n,a){return n.name.kind===167&&Eg(n.name),ZM(n.initializer,a)}function BFe(n,a){p4e(n),n.name.kind===167&&Eg(n.name);let c=PFe(n,a);return GFe(n,c,a)}function GFe(n,a,c){if(c&&c&10){let u=z8(a,0,!0),_=z8(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=p0(n,2);if(T){let M=z8(my(T),u?0:1,!1);if(M&&!M.typeParameters){if(c&8)return VFe(n,c),tn;let W=GS(n),V=W.signature&&ds(W.signature),te=V&&XWe(V);if(te&&!te.typeParameters&&!oo(W.inferences,EC)){let ye=Pft(W,g.typeParameters),_e=fge(g,ye),je=mn(W.inferences,mt=>yye(mt.typeParameter));if(mye(_e,M,(mt,At)=>{_y(je,mt,At,0,!0)}),gt(je,EC)&&(_ye(_e,M,(mt,At)=>{_y(je,mt,At)}),!Cft(W.inferences,je)))return Nft(W.inferences,je),W.inferredTypeParameters=bo(W.inferredTypeParameters,ye),WA(_e)}return WA(YWe(g,M,W))}}}}return a}function VFe(n,a){if(a&2){let c=GS(n);c.flags|=4}}function EC(n){return!!(n.candidates||n.contraCandidates)}function Dft(n){return!!(n.candidates||n.contraCandidates||xwe(n.typeParameter))}function Cft(n,a){for(let c=0;cc.symbol.escapedName===a)}function Mft(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(!wve(n,g))return g}}function jFe(n){let a=QA(n);if(a&&!a.typeParameters)return ds(a)}function Lft(n){let a=po(n.expression),c=N8(a,n.expression),u=jFe(a);return u&&XZ(u,n,c!==a)}function Id(n){let a=Ove(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,Noe(n,n.flags|268435456)}return u}function Ove(n){let a=ms(n,!0);if(WR(a)){let c=Y4(a);if(!Cg(c))return Ti(c)}if(a=ms(n),qv(a)){let c=Ove(a.expression);return c?eI(c):void 0}if(ra(a)&&a.expression.kind!==108&&!Su(a,!0)&&!cFe(a))return oT(a)?Lft(a):jFe(gC(a.expression));if(cT(a)&&!Cg(a.type))return Ti(a.type);if(E0(n)||sN(n))return po(n)}function eG(n){let a=Zr(n);if(a.contextFreeType)return a.contextFreeType;L5(n,G,!1);let c=a.contextFreeType=po(n,4);return W8(),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=Oft(n,a,c),M=GFe(n,T,a);return kee(M)&&kft(n,M),D=g,(_=rr)==null||_.pop(),M}function kft(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)&&(R.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!mE(n)&&Ve(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function wft(n,a){if(kp(n)){if(hU(n))return Tve(n.expression,gU(n),a);if(WR(n))return fFe(n,a)}return po(n.expression,a)}function Oft(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return _dt(n,a);case 81:return Lut(n);case 110:return P5(n);case 108:return Vye(n);case 106:return We;case 15:case 11:return Tye(n)?He:cx(Ku(n.text));case 9:return hbe(n),cx(u_(+n.text));case 10:return Fgt(n),cx(PZ({negative:!1,base10Value:HN(n.text)}));case 112:return wn;case 97:return Kt;case 228:return Aft(n);case 14:return hl;case 209:return yWe(n,a,c);case 210:return uut(n,a);case 211:return bee(n,a);case 166:return kWe(n,a);case 212:return Xut(n,a);case 213:if(n.expression.kind===102)return Rpt(n);case 214:return xpt(n,a);case 215:return Dpt(n);case 217:return wft(n,a);case 231:return T_t(n);case 218:case 219:return PFe(n,a);case 221:return sft(n);case 216:case 234:return Cpt(n,a);case 235:return Mpt(n);case 233:return _Fe(n);case 238:return Lpt(n);case 236:return kpt(n);case 220:return oft(n);case 222:return lft(n);case 223:return cft(n);case 224:return dft(n);case 225:return uft(n);case 226:return De(n,a);case 227:return Tft(n,a);case 230:return out(n,a);case 232:return Nt;case 229:return Sft(n);case 237:return aut(n);case 294:return xut(n,a);case 284:return _ut(n,a);case 285:return fut(n,a);case 288:return hut(n);case 292:return yut(n,a);case 286:R.fail("Shouldn't ever directly check a JsxOpeningElement")}return pt}function UFe(n){Tg(n),n.expression&&fd(n.expression,f.Type_expected),Ia(n.constraint),Ia(n.default);let a=MA(Sr(n));Fd(a),hat(a)||Ve(n.default,f.Type_parameter_0_has_a_circular_default,Vn(a));let c=Pu(a),u=OA(a);c&&u&&eu(u,Up(io(c,WS(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),px(n),r(()=>iL(n.name,f.Type_parameter_name_cannot_be_0))}function Wft(n){var a,c;if(mu(n.parent)||di(n.parent)||Tm(n.parent)){let u=MA(Sr(n)),_=aye(u)&24576;if(_){let g=Sr(n.parent);if(Tm(n.parent)&&!(kr($s(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:yu($s(g)),id:yu(u)});let T=g5(g,u,_===16384?$:de),M=g5(g,u,_===16384?de:$),W=u;w=u,eu(T,M,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),w=W,(c=rr)==null||c.pop()}}}}function HFe(n){Tg(n),oG(n);let a=Wp(n);Qr(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&&$N(n)&&Yo(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&&!Yo(n.name)&&!ya(d_(sr(n.symbol)),cf)&&Ve(n,f.A_rest_parameter_must_be_of_an_array_type)}function Fft(n){let a=zft(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=()=>Fo(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(Yo(T)&&KFe(T,_,u.parameterName)){g=!0;break}g||Ve(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function zft(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 KFe(n,a,c){for(let u of n.elements){if(Gc(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)&&KFe(_,a,c))return!0}}function j8(n){n.kind===181?pgt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&nte(n);let a=Bc(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(Dv(n)),b_t(n),gn(n.parameters,HFe),n.type&&Ia(n.type),r(c);function c(){Wmt(n);let u=$f(n),_=u;if(ir(n)){let g=nE(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=Bc(n);if((g&5)===1){let T=Ti(u);T===er?Ve(_,f.A_generator_cannot_have_a_void_type_annotation):Wve(T,g,_)}else(g&3)===2&&hmt(n,u,_)}n.kind!==181&&n.kind!==324&&jb(n)}}function Wve(n,a,c){let u=US(0,n,(a&2)!==0)||G,_=US(1,n,(a&2)!==0)||u,g=US(2,n,(a&2)!==0)||un,T=IFe(u,_,g,!!(a&2));return eu(T,n,c)}function Bft(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)&&!Yo(T.name)&&_(a,T.name,T.name.escapedText,3);else{let T=na(g),M=g.name;if(!M)continue;let W=Ki(M),V=W&&T?16:0,te=W?u:T?c:a,ye=M&&gbe(M);if(ye)switch(g.kind){case 177:_(te,M,ye,1|V);break;case 178:_(te,M,ye,2|V);break;case 172:_(te,M,ye,3|V);break;case 174:_(te,M,ye,8|V);break}}function _(g,T,M,W){let V=g.get(M);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(M,V|W)}else g.set(M,W)}}function Gft(n){for(let a of n.members){let c=a.name;if(na(a)&&c){let _=gbe(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=XE(Sr(n));Ve(c,g,_,T);break}}}}function JFe(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=yr(_);break;default:continue}a.get(u)?(Ve(No(c.symbol.valueDeclaration),f.Duplicate_identifier_0,u),Ve(c.name,f.Duplicate_identifier_0,u)):a.set(u,!0)}}function Fve(n){if(n.kind===264){let c=Sr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=mge(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(yu(_));g?g.declarations.push(u):c.set(yu(_),{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 qFe(n){!Tg(n)&&!kgt(n)&&rte(n.name),oG(n),zve(n),Qr(n,64)&&n.kind===172&&n.initializer&&Ve(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Is(n.name))}function Vft(n){return Ki(n.name)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),qFe(n)}function jft(n){p4e(n)||rte(n.name),Ul(n)&&n.asteriskToken&&Fe(n.name)&&yr(n.name)==="constructor"&&Ve(n.name,f.Class_constructor_may_not_be_a_generator),s6e(n),Qr(n,64)&&n.kind===174&&n.body&&Ve(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Is(n.name)),Ki(n.name)&&!id(n)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),zve(n)}function zve(n){if(Ki(n.name)&&ce<99){for(let a=ph(n);a;a=ph(a))Zr(a).flags|=1048576;if($c(n.parent)){let a=Fye(n.parent);a&&(Zr(n.name).flags|=32768,Zr(a).flags|=4096)}}}function Uft(n){Tg(n),Bo(n,Ia)}function Hft(n){j8(n),Mgt(n)||Lgt(n),Ia(n.body);let a=Sr(n),c=dl(a,n.kind);if(n===c&&zee(a),Fl(n.body))return;r(_);return;function u(g){return su(g)?!0:g.kind===172&&!na(g)&&!!g.initializer}function _(){let g=n.parent;if(P0(g)){zye(n.parent,g);let T=Bye(g),M=nWe(n.body);if(M){if(T&&Ve(M,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ge&&(gt(n.parent.members,u)||gt(n.parameters,V=>Qr(V,31))))if(!Kft(M,n.body))Ve(M,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(Qc(te)&&mT(Yl(te.expression))){V=te;break}if(XFe(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 Kft(n,a){let c=Ly(n.parent);return Qc(c)&&c.parent===a}function XFe(n){return n.kind===108||n.kind===110?!0:uie(n)?!1:!!Bo(n,XFe)}function YFe(n){Fe(n.name)&&yr(n.name)==="constructor"&&di(n.parent)&&Ve(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Ia(n.body),zve(n);function a(){if(!nte(n)&&!Egt(n)&&rte(n.name),nG(n),j8(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&&Eg(n.name),oC(n)){let u=Sr(n),_=dl(u,177),g=dl(u,178);if(_&&g&&!(AC(_)&1)){Zr(_).flags|=1;let T=du(_),M=du(g);(T&64)!==(M&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&&!(M&6)||T&2&&!(M&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=ZE(Sr(n));n.kind===177&&Nve(n,c)}}function Jft(n){nG(n)}function qft(n,a,c){return n.typeArguments&&c{let u=Bve(n);u&&$Fe(n,u)});let c=Zr(n).resolvedSymbol;c&>(c.declarations,u=>SR(u)&&!!(u.flags&536870912))&&rv(H5(n),c.declarations,c.escapedName)}}function Yft(n){let a=ii(n.parent,gF);if(!a)return;let c=Bve(a);if(!c)return;let u=Pu(c[a.typeArguments.indexOf(n)]);return u&&io(u,Np(c,Wee(a,c)))}function $ft(n){Xwe(n)}function Qft(n){gn(n.members,Ia),r(a);function a(){let c=OOe(n);Kee(c,c.symbol),Fve(n),JFe(n)}}function Zft(n){Ia(n.elementType)}function emt(n){let a=!1,c=!1;for(let u of n.elements){let _=Cge(u);if(_&8){let g=Ti(u.type);if(!fv(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 tmt(n){gn(n.types,Ia),Ti(n)}function ZFe(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=Hu(c)&&_Z(c)===2?bOe(c,0):J_(c,0),g=!!bg(c,It);if(ap(u,T=>ya(T,_)||g&&ix(T,It)))return a.kind===212&&Qh(a)&&kr(c)&32&&wh(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 M=qA(Mu(c),W=>ha(W,T));if(M&&Tf(M)&6)return Ve(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(T)),pt}}return Ve(a,f.Type_0_cannot_be_used_to_index_type_1,Vn(u),Vn(c)),pt}function nmt(n){Ia(n.objectType),Ia(n.indexType),ZFe(NOe(n),n)}function rmt(n){imt(n),Ia(n.typeParameter),Ia(n.nameType),Ia(n.type),n.type||l0(n,G);let a=Gge(n),c=lv(a);if(c)eu(c,ws,n.nameType);else{let u=gf(a);eu(u,ws,wx(n.typeParameter))}}function imt(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 omt(n){MZ(n)}function amt(n){Tgt(n),Ia(n.type)}function smt(n){Bo(n,Ia)}function lmt(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),_=Lre(a,168);if(!D6e(_,[u],g=>[g])){let g=Si(a);for(let T of _)Ve(T.name,f.All_declarations_of_0_must_have_identical_constraints,g)}}}jb(n)}function cmt(n){for(let a of n.templateSpans){Ia(a.type);let c=Ti(a.type);eu(c,Po,a.type)}Ti(n)}function dmt(n){Ia(n.argument),n.attributes&&QR(n.attributes,yn),QFe(n)}function umt(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)||su(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(()=>pmt(n))}function pmt(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 xo=Fee(a(an,On),Ln);gn(an,vo=>{let Wo=Fee(vo,Ln)^xo;Wo&32?Ve(No(vo),f.Overload_signatures_must_all_be_exported_or_non_exported):Wo&128?Ve(No(vo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Wo&6?Ve(No(vo)||vo,f.Overload_signatures_must_all_be_public_private_or_protected):Wo&64&&Ve(No(vo),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(No($n),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,g=0,T=_,M=!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=Bo(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||Xa(an.name)&&Xa($n)&&uy(Eg(an.name),Eg($n))||T_(an.name)&&T_($n)&&AN(an.name)===AN($n))){if((an.kind===174||an.kind===173)&&na(an)!==na(Ln)){let vo=na(an)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Ve(jn,vo)}return}if(Hf(Ln.body)){Ve(jn,f.Function_implementation_name_must_be_0,Is(an.name));return}}let Yn=an.name||an;mt?Ve(Yn,f.Constructor_implementation_is_missing):Qr(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,M=M||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)&&Xo(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(No(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(No(On)||On,Ln,vl(n)),...an)})}if(ye&&!ye.body&&!Qr(ye,64)&&!ye.questionToken&&At(ye),V&&(je&&(c(je,te,_,g,T),u(je,te,M,W)),te)){let an=MS(n),On=lm(te);for(let Ln of an)if(!Mlt(On,Ln)){let Yn=Ln.declaration&&vE(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 U8(n){r(()=>fmt(n))}function fmt(n){let a=n.localSymbol;if(!a&&(a=Sr(n),!a.exportSymbol)||dl(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,M=_&g;if(T||M)for(let V of a.declarations){let te=W(V),ye=No(V);te&M?Ve(ye,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Is(ye)):te&T&&Ve(ye,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Is(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 Pd(te)||Gg(te)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let ye=te,_e=Ml(ye)?ye.expression:ye.right;if(!Bl(_e))return 1;te=_e;case 271:case 274:case 273:let je=0,mt=Oc(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 R.failBadSyntaxKind(te)}}}function eL(n,a,c,...u){let _=H8(n,a);return _&&eI(_,a,c,...u)}function H8(n,a,c){if(xt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Cb(n,o5(!1)))return u.promisedTypeOfPromise=Hs(n)[0];if(Q5(ly(n),402915324))return;let _=Ue(n,"then");if(xt(_))return;let g=_?Ho(_,0):Xe;if(g.length===0){a&&Ve(a,f.A_promise_must_have_a_then_method);return}let T,M;for(let te of g){let ye=r0(te);ye&&ye!==er&&!q_(n,ye,xh)?T=ye:M=Tn(M,te)}if(!M){R.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(ti(mn(M,xve)),2097152);if(xt(W))return;let V=Ho(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=ti(mn(V,xve),2)}function K8(n,a,c,u,..._){return(a?eI(n,c,u,..._):mv(n,c,u,..._))||pt}function e6e(n){if(Q5(ly(n),402915324))return!1;let a=Ue(n,"then");return!!a&&Ho(um(a,2097152),0).length>0}function Bee(n){var a;if(n.flags&16777216){let c=Dge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function tL(n){return n.flags&1048576?cl(n,tL):Bee(n)?n.aliasTypeArguments[0]:n}function t6e(n){if(xt(n)||Bee(n))return!1;if(BA(n)){let a=Fd(n);if(a?a.flags&3||py(a)||Fm(a,e6e):Rl(n,8650752))return!0}return!1}function mmt(n){let a=Dge(!0);if(a)return cC(a,[tL(n)])}function _mt(n){if(t6e(n)){let a=mmt(n);if(a)return a}return R.assert(Bee(n)||H8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function eI(n,a,c,...u){let _=mv(n,a,c,...u);return _&&_mt(_)}function mv(n,a,c,...u){if(xt(n)||Bee(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(OE.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 M=a?V=>mv(V,a,c,...u):mv;OE.push(n.id);let W=cl(n,M);return OE.pop(),_.awaitedTypeOfType=W}if(t6e(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=H8(n,void 0,g);if(T){if(n.id===T.id||OE.lastIndexOf(T.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}OE.push(n.id);let M=mv(T,a,c,...u);return OE.pop(),M?_.awaitedTypeOfType=M:void 0}if(e6e(n)){if(a){R.assertIsDefined(c);let M;g.value&&(M=Fo(M,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(g.value))),M=Fo(M,c,...u),$a.add(Pg(Gn(a),a,M))}return}return _.awaitedTypeOfType=n}function hmt(n,a,c){let u=Ti(a);if(ce>=2){if(Ut(u))return;let g=o5(!0);if(g!==Mo&&!Cb(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(mv(u)||er));return}}else{if(ymt(a),Ut(u))return;let g=I2(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=js(g,111551,!0),M=T?sr(T):pt;if(Ut(M)){g.kind===80&&g.escapedText==="Promise"&&sv(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=Vat(!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(M,W,c,V,()=>a===c?void 0:Fo(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=Uu(n.locals,ye.escapedText,111551);if(_e){Ve(_e.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,yr(ye),up(g));return}}K8(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,M,W){if(T===M)Ve(M,g,W);else{let V=Ve(M,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Pa(V,Pr(T,g,W))}}}function gmt(n){let a=vC(n);Pee(a,n);let c=ds(a);if(c.flags&1)return;let u=Cve(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(!ee){_=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 R.failBadSyntaxKind(n.parent)}eu(c,g,n.expression,_)}function J8(n,a,c,u,_,g=c.length,T=0){let M=L.createFunctionTypeNode(void 0,Xe,L.createKeywordTypeNode(133));return vg(M,n,a,c,u,_,g,T)}function Vve(n,a,c,u,_,g,T){let M=J8(n,a,c,u,_,g,T);return WA(M)}function n6e(n){return Vve(void 0,void 0,Xe,n)}function r6e(n){let a=n_("value",n);return Vve(void 0,void 0,[a],er)}function ymt(n){i6e(n&&I2(n),!1)}function i6e(n,a){if(!n)return;let c=Fp(n),u=(n.kind===80?788968:1920)|2097152,_=gl(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(ft&&wm(_)&&!$8(Oc(_))&&!Lf(_))gb(_);else if(a&&em(B)&&Md(B)>=5&&!wm(_)&&!gt(_.declarations,oE)){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,fb);T&&Pa(g,Pr(T,f._0_was_imported_here,yr(c)))}}}function SC(n){let a=jve(n);a&&Xu(a)&&i6e(a,!0)}function jve(n){if(n)switch(n.kind){case 193:case 192:return o6e(n.types);case 194:return o6e([n.trueType,n.falseType]);case 196:case 202:return jve(n.type);case 183:return n.typeName}}function o6e(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=jve(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=gd(n);return Jh(n)?aj(a):a}function nG(n){if(!GT(n)||!bf(n)||!n.modifiers||!GF(ee,n,n.parent,n.parent.parent))return;let a=Vr(n.modifiers,vd);if(a){if(ee?(xc(a,8),n.kind===169&&xc(a,32)):ce<99&&(xc(a,8),Sc(n)?n.name?C6e(n)&&xc(a,8388608):xc(a,8388608):$c(n)||(Ki(n.name)&&(Ul(n)||Nv(n)||ku(n))&&xc(a,8388608),Xa(n.name)&&xc(a,16777216))),B.emitDecoratorMetadata)switch(xc(a,16),n.kind){case 263:let c=eg(n);if(c)for(let T of c.parameters)SC(Gee(T));break;case 177:case 178:let u=n.kind===177?178:177,_=dl(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(gd(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)vd(c)&&gmt(c)}}function vmt(n){r(a);function a(){s6e(n),pbe(n),nL(n,n.name)}}function bmt(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&&iL(n.name,f.Type_alias_name_cannot_be_0),Ia(n.typeExpression),lG(Dv(n))}function Emt(n){Ia(n.constraint);for(let a of n.typeParameters)Ia(a)}function Smt(n){Ia(n.typeExpression)}function Tmt(n){Ia(n.typeExpression);let a=dE(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=a6e(n.class.expression),_=P0(a);if(_){let g=a6e(_.expression);g&&u.escapedText!==g.escapedText&&Ve(u,f.JSDoc_0_1_does_not_match_the_extends_2_clause,yr(n.tagName),yr(u),yr(g))}}function Pmt(n){let a=vT(n);a&&su(a)&&Ve(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function a6e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function s6e(n){var a;nG(n),j8(n);let c=Bc(n);if(n.name&&n.name.kind===167&&Eg(n.name),oC(n)){let g=Sr(n),T=n.localSymbol||g,M=(a=T.declarations)==null?void 0:a.find(W=>W.kind===n.kind&&!(W.flags&524288));n===M&&zee(T),g.parent&&zee(g)}let u=n.kind===173?void 0:n.body;if(Ia(u),Nve(n,sC(n)),r(_),ir(n)){let g=nE(n);g&&g.typeExpression&&!qye(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)&&l0(n,G),c&1&&Hf(u)&&ds(lm(n)))}}function jb(n){r(a);function a(){let c=Gn(n),u=df.get(c.path);u||(u=[],df.set(c.path,u)),u.push(n)}}function l6e(n,a){for(let c of n)switch(c.kind){case 263:case 231:Mmt(c,a),Uve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:u6e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&u6e(c,a),Uve(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Uve(c,a);break;case 195:Lmt(c,a);break;default:R.assertNever(c,"Node should not have been registered for unused identifiers check")}}function c6e(n,a,c){let u=No(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 q8(n){return Fe(n)&&yr(n).charCodeAt(0)===95}function Mmt(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)||au(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&&Qr(_,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:R.fail("Unexpected class member")}}function Lmt(n,a){let{typeParameter:c}=n;Hve(c)&&a(n,1,Pr(n,f._0_is_declared_but_its_value_is_never_read,yr(c.name)))}function Uve(n,a){let c=Sr(n).declarations;if(!c||Ka(c)!==n)return;let u=Dv(n),_=new Set;for(let g of u){if(!Hve(g))continue;let T=yr(g.name),{parent:M}=g;if(M.kind!==195&&M.typeParameters.every(Hve)){if(Jb(_,M)){let W=Gn(M),V=nm(M)?uU(M):pU(W,M.typeParameters),ye=M.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,T]:[f.All_type_parameters_are_unused];a(g,1,Yc(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 Hve(n){return!(es(n.symbol).isReferenced&262144)&&!q8(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 d6e(n){return ii(A_(n),To)}function kmt(n){return qa(n)?tm(n.parent)?!!(n.propertyName&&q8(n.name)):q8(n.name):Pd(n)||(Oi(n)&&Fx(n.parent.parent)||p6e(n))&&q8(n.name)}function u6e(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(!kmt(T))if(p6e(T))rG(c,Omt(T),T,rs);else if(qa(T)&&tm(T.parent)){let M=Ka(T.parent.elements);(T===M||!Ka(T.parent.elements).dotDotDotToken)&&rG(u,T.parent,T,rs)}else if(Oi(T)){let M=JS(T)&7,W=No(T);(M!==4&&M!==6||!W||!q8(W))&&rG(_,T.parent,T,rs)}else{let M=g.valueDeclaration&&d6e(g.valueDeclaration),W=g.valueDeclaration&&No(g.valueDeclaration);M&&W?!dp(M,M.parent)&&!k0(M)&&!q8(W)&&(qa(T)&&j0(T.parent)?rG(u,T.parent,T,rs):a(M,1,Pr(W,f._0_is_declared_but_its_value_is_never_read,vl(g)))):c6e(T,vl(g),a)}}}),c.forEach(([g,T])=>{let M=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===274?1:g.namedBindings.elements.length:0)===T.length)a(M,0,T.length===1?Pr(M,f._0_is_declared_but_its_value_is_never_read,yr(Ga(T).name)):Pr(M,f.All_imports_in_import_declaration_are_unused));else for(let V of T)c6e(V,yr(V.name),a)}),u.forEach(([g,T])=>{let M=d6e(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,M,T.length===1?Pr(g,f._0_is_declared_but_its_value_is_never_read,iG(Ga(T).name)):Pr(g,f.All_destructured_elements_are_unused));else for(let W of T)a(W,M,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(Ga(T).name,f._0_is_declared_but_its_value_is_never_read,iG(Ga(T).name)):Pr(g.parent.kind===243?g.parent:g,f.All_variables_are_unused));else for(let M of T)a(M,0,Pr(M,f._0_is_declared_but_its_value_is_never_read,iG(M.name)))})}function wmt(){var n;for(let a of dg)if(!((n=Sr(a))!=null&&n.isReferenced)){let c=Lx(a);R.assert(M0(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,Is(a.name),Is(a.propertyName));c.type||Pa(u,Yc(Gn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Is(a.propertyName))),$a.add(u)}}function iG(n){switch(n.kind){case 80:return yr(n);case 207:case 206:return iG(ta(Ga(n.elements),qa).name);default:return R.assertNever(n)}}function p6e(n){return n.kind===273||n.kind===276||n.kind===274}function Omt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Vee(n){if(n.kind===241&&hy(n),NV(n)){let a=we;gn(n.statements,Ia),we=a}else gn(n.statements,Ia);n.locals&&jb(n)}function Wmt(n){ce>=2||!FV(n)||n.flags&33554432||Fl(n.body)||gn(n.parameters,a=>{a.name&&!Yo(a.name)&&a.name.escapedText===Ft.escapedName&&e_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function X8(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||(yh(n)||Zc(n)||Qu(n))&&oE(n))return!1;let u=A_(n);return!(To(u)&&Fl(u.parent.body))}function Fmt(n){Fn(n,a=>AC(a)&4?(n.kind!==80?Ve(No(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 zmt(n){Fn(n,a=>AC(a)&8?(n.kind!==80?Ve(No(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 Bmt(n,a){if(z>=5&&!(z>=100&&Gn(n).impliedNodeFormat===1)||!a||!X8(n,a,"require")&&!X8(n,a,"exports")||ql(n)&&Gg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&e_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Is(a),Is(a))}function Gmt(n,a){if(!a||ce>=4||!X8(n,a,"Promise")||ql(n)&&Gg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&c.flags&4096&&e_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Is(a),Is(a))}function Vmt(n,a){ce<=8&&(X8(n,a,"WeakMap")||X8(n,a,"WeakSet"))&&sb.push(n)}function jmt(n){let a=ph(n);AC(a)&1048576&&(R.assert(au(n)&&Fe(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),e_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Umt(n,a){a&&ce>=2&&ce<=8&&X8(n,a,"Reflect")&&lb.push(n)}function Hmt(n){let a=!1;if($c(n)){for(let c of n.members)if(AC(c)&2097152){a=!0;break}}else if(Ls(n))AC(n)&2097152&&(a=!0);else{let c=ph(n);c&&AC(c)&2097152&&(a=!0)}a&&(R.assert(au(n)&&Fe(n.name),"The target of a Reflect collision check should be an identifier"),e_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Is(n.name),"Reflect"))}function nL(n,a){a&&(Bmt(n,a),Gmt(n,a),Vmt(n,a),Umt(n,a),di(n)?(iL(a,f.Class_name_cannot_be_0),n.flags&33554432||v_t(a)):gE(n)&&iL(a,f.Enum_name_cannot_be_0))}function Kmt(n){if(JS(n)&7||M0(n))return;let a=Sr(n);if(a.flags&1){if(!Fe(n.name))return R.fail();let c=gl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&nve(c)&7){let u=uE(c.valueDeclaration,261),_=u.parent.kind===243&&u.parent.parent?u.parent.parent:void 0;if(!(_&&(_.kind===241&&Xo(_.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 Y8(n){return n===et?G:n===Hc?Zl:n}function oG(n){var a;if(nG(n),qa(n)||Ia(n.type),!n.name)return;if(n.name.kind===167&&(Eg(n.name),dT(n)&&n.initializer&&tc(n.initializer)),qa(n)){if(n.propertyName&&Fe(n.name)&&M0(n)&&Fl(Wp(n).body)){dg.push(n);return}tm(n.parent)&&n.dotDotDotToken&&ce<5&&xc(n,4),n.propertyName&&n.propertyName.kind===167&&Eg(n.propertyName);let _=n.parent.parent,g=n.dotDotDotToken?32:0,T=Or(_,g),M=n.propertyName||n.name;if(T&&!Yo(M)){let W=uv(M);if(Qf(W)){let V=Zf(W),te=ha(T,V);te&&(B5(te,void 0,!1),ive(n,!!_.initializer&&_.initializer.kind===108,!1,T,te))}}}if(Yo(n.name)&&(n.name.kind===207&&ce<2&&B.downlevelIteration&&xc(n,512),gn(n.name.elements,Ia)),n.initializer&&M0(n)&&Fl(Wp(n).body)){Ve(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Yo(n.name)){if(Dye(n))return;let _=dT(n)&&n.initializer&&n.parent.parent.kind!==249,g=!gt(n.name.elements,SW(Gc));if(_||g){let T=F(n);if(_){let M=tc(n.initializer);J&&g?LWe(M,n):Fb(M,F(n),n,n.initializer)}g&&(j0(n.name)?_v(65,T,Me,n):J&&LWe(T,n))}return}let c=Sr(n);if(c.flags&2097152&&(D0(n)||_ie(n))){Jee(n);return}let u=Y8(sr(c));if(n===c.valueDeclaration){let _=dT(n)&&C2(n);if(_&&!(ir(n)&&Ma(_)&&(_.properties.length===0||zv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=tc(_);Fb(T,u,n,_,void 0);let M=JS(n)&7;if(M===6){let W=$at(!0),V=rOe(!0);if(W!==Ca&&V!==Ca){let te=ti([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(M===4){let W=rOe(!0);if(W!==Ca){let V=ti([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)&&!m6e(g,n))&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Is(n.name))}else{let _=Y8(F(n));!Ut(u)&&!Ut(_)&&!uy(u,_)&&!(c.flags&67108864)&&f6e(c.valueDeclaration,u,n,_),dT(n)&&n.initializer&&Fb(tc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!m6e(n,c.valueDeclaration)&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Is(n.name))}n.kind!==172&&n.kind!==171&&(U8(n),(n.kind===260||n.kind===208)&&Kmt(n),nL(n,n.name))}function f6e(n,a,c,u){let _=No(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=Is(_),M=Ve(_,g,T,Vn(a),Vn(u));n&&Pa(M,Pr(n,f._0_was_also_declared_here,T))}function m6e(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 Jmt(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}),Dgt(n),oG(n),(c=rr)==null||c.pop()}function qmt(n){return Igt(n),oG(n)}function jee(n){let a=Cy(n)&7;(a===4||a===6)&&xc(n,33554432),gn(n.declarations,Ia)}function Xmt(n){!Tg(n)&&!_be(n.declarationList)&&Cgt(n),jee(n.declarationList)}function Ymt(n){hy(n),po(n.expression)}function $mt(n){hy(n);let a=rL(n.expression);Kve(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 Kve(n,a,c){if(!J)return;u(n,c);function u(g,T){for(g=ms(g),_(g,T);ur(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=ms(g.left),_(g,T)}function _(g,T){let M=ek(g)?ms(g.right):g;if($h(M))return;if(ek(M)){u(M,T);return}let W=M===g?a:rL(M),V=wr(M)&&FFe(M.expression);if(!dm(W,4194304)||V)return;let te=Ho(W,0),ye=!!eL(W);if(te.length===0&&!ye)return;let _e=Fe(M)?M:wr(M)?M.name:void 0,je=_e&&zm(_e);if(!je&&!ye)return;je&&ur(g.parent)&&Zmt(g.parent,je)||je&&T&&Qmt(g,T,_e,je)||(ye?zE(M,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Eb(W)):Ve(M,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Qmt(n,a,c,u){return!!Bo(a,function _(g){if(Fe(g)){let T=zm(g);if(T&&T===u){if(Fe(n)||Fe(c)&&ur(c.parent))return!0;let M=c.parent,W=g.parent;for(;M&&W;){if(Fe(M)&&Fe(W)||M.kind===110&&W.kind===110)return zm(M)===zm(W);if(wr(M)&&wr(W)){if(zm(M.name)!==zm(W.name))return!1;W=W.expression,M=M.expression}else if(ra(M)&&ra(W))W=W.expression,M=M.expression;else return!1}}}return Bo(g,_)})}function Zmt(n,a){for(;ur(n)&&n.operatorToken.kind===56;){if(Bo(n.right,function u(_){if(Fe(_)){let g=zm(_);if(g&&g===a)return!0}return Bo(_,u)}))return!0;n=n.parent}return!1}function e_t(n){hy(n),Ia(n.statement),rL(n.expression)}function t_t(n){hy(n),rL(n.expression),Ia(n.statement)}function Jve(n,a){return n.flags&16384&&Ve(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function rL(n,a){return Jve(po(n,a),n)}function n_t(n){hy(n)||n.initializer&&n.initializer.kind===261&&_be(n.initializer),n.initializer&&(n.initializer.kind===261?jee(n.initializer):po(n.initializer)),n.condition&&rL(n.condition),n.incrementor&&po(n.incrementor),Ia(n.statement),n.locals&&jb(n)}function r_t(n){u4e(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):(Bc(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||pt);else{let _=po(c);V8(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&&Fb(u,_,c,n.expression)}}Ia(n.statement),n.locals&&jb(n)}function i_t(n){u4e(n);let a=ove(po(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&Yo(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(Fst(a),u)?V8(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||!Ad(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&&jb(n)}function aG(n){let a=n.awaitModifier?15:13;return _v(a,gC(n.expression),Me,n.expression)}function _v(n,a,c,u){return xt(a)?a:qve(n,a,c,u,!0)||G}function qve(n,a,c,u,_){let g=(n&2)!==0;if(a===Fr){Zve(u,a,g);return}let T=ce>=2,M=!T&&B.downlevelIteration,W=B.noUncheckedIndexedAccess&&!!(n&128);if(T||M||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?w8(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=ti(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?w8(Ne):Ne}if(!fv(V)){if(u&&!te){let mt=!!(n&4)&&!ye,[At,rn]=je(mt,M);zE(u,rn&&!!eL(V),At,Vn(V))}return ye?W?w8(Ne):Ne:void 0}let _e=n0(V,It);if(ye&&_e)return _e.flags&402653316&&!B.noUncheckedIndexedAccess?Ne:ti(W?[_e,Ne,Me]:[_e,Ne],2);return n&128?w8(_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]:Xve(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]:o_t((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 o_t(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 Xve(n,a,c,u){if(xt(c))return;let _=Hee(c,n,u);return _&&_[RIe(a)]}function hv(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 _6e(n){let a,c,u;for(let _ of n)if(!(_===void 0||_===Cr)){if(_===Ko)return Ko;a=Tn(a,_.yieldType),c=Tn(c,_.returnType),u=Tn(u,_.nextType)}return a||c||u?hv(a&&ti(a),c&&ti(c),u&&ga(u)):Cr}function Uee(n,a){return n[a]}function Sg(n,a,c){return n[a]=c}function Hee(n,a,c){var u,_;if(xt(n))return Ko;if(!(n.flags&1048576)){let V=c?{errors:void 0}:void 0,te=h6e(n,a,c,V);if(te===Cr){if(c){let ye=Zve(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)$a.add(ye);return te}let g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=Uee(n,g);if(T)return T===Cr?void 0:T;let M;for(let V of n.types){let te=c?{errors:void 0}:void 0,ye=h6e(V,a,c,te);if(ye===Cr){if(c){let _e=Zve(c,n,!!(a&2));te?.errors&&Pa(_e,...te.errors)}Sg(n,g,Cr);return}else if((_=te?.errors)!=null&&_.length)for(let _e of te.errors)$a.add(_e);M=Tn(M,ye)}let W=M?_6e(M):Cr;return Sg(n,g,W),W===Cr?void 0:W}function Yve(n,a){if(n===Cr)return Cr;if(n===Ko)return Ko;let{yieldType:c,returnType:u,nextType:_}=n;return a&&Dge(!0),hv(eI(c,a)||G,eI(u,a)||G,_)}function h6e(n,a,c,u){if(xt(n))return Ko;let _=!1;if(a&2){let g=$ve(n,Vs)||y6e(n,Vs);if(g)if(g===Cr&&c)_=!0;else return a&8?Yve(g,c):g}if(a&1){let g=$ve(n,hc)||y6e(n,hc);if(g)if(g===Cr&&c)_=!0;else if(a&2){if(g!==Cr)return g=Yve(g,c),_?g:Sg(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){let g=Qve(n,Vs,c,u,_);if(g!==Cr)return g}if(a&1){let g=Qve(n,hc,c,u,_);if(g!==Cr)return a&2?(g=Yve(g,c),_?g:Sg(n,"iterationTypesOfAsyncIterable",g)):g}return Cr}function $ve(n,a){return Uee(n,a.iterableCacheKey)}function g6e(n,a){let c=$ve(n,a)||Qve(n,a,void 0,void 0,!1);return c===Cr?jc:c}function y6e(n,a){let c;if(Cb(n,c=a.getGlobalIterableType(!1))||Cb(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Hs(n),{returnType:_,nextType:g}=g6e(c,a);return Sg(n,a.iterableCacheKey,hv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}if(Cb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Hs(n);return Sg(n,a.iterableCacheKey,hv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function v6e(n){let a=eOe(!1),c=a&&Ue(sr(a),fl(n));return c&&Qf(c)?Zf(c):`__@${n}`}function Qve(n,a,c,u,_){let g=ha(n,v6e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?sr(g):void 0;if(xt(T))return _?Ko:Sg(n,a.iterableCacheKey,Ko);let M=T?Ho(T,0):void 0;if(!gt(M))return _?Cr:Sg(n,a.iterableCacheKey,Cr);let W=ga(mn(M,ds)),V=b6e(W,a,c,u,_)??Cr;return _?V:Sg(n,a.iterableCacheKey,V)}function Zve(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,_=!!eL(a)||!c&&Fk(n.parent)&&n.parent.expression===n&&xZ(!1)!==Mo&&ya(a,xZ(!1));return zE(n,_,u,Vn(a))}function a_t(n,a,c,u){return b6e(n,a,c,u,!1)}function b6e(n,a,c,u,_){if(xt(n))return Ko;let g=E6e(n,a)||s_t(n,a);return g===Cr&&c&&(g=void 0,_=!0),g??(g=T6e(n,a,c,u,_)),g===Cr?void 0:g}function E6e(n,a){return Uee(n,a.iteratorCacheKey)}function s_t(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Cb(n,c)){let[u]=Hs(n),_=E6e(c,a)||T6e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===Cr?jc:_;return Sg(n,a.iteratorCacheKey,hv(u,g,T))}if(Cb(n,a.getGlobalIteratorType(!1))||Cb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Hs(n);return Sg(n,a.iteratorCacheKey,hv(u,_,g))}}function S6e(n,a){let c=Ue(n,"done")||Kt;return ya(a===0?Kt:wn,c)}function l_t(n){return S6e(n,0)}function c_t(n){return S6e(n,1)}function d_t(n){if(xt(n))return Ko;let a=Uee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Cb(n,Xat(!1))){let T=Hs(n)[0];return Sg(n,"iterationTypesOfIteratorResult",hv(T,void 0,void 0))}if(Cb(n,Yat(!1))){let T=Hs(n)[0];return Sg(n,"iterationTypesOfIteratorResult",hv(void 0,T,void 0))}let c=cc(n,l_t),u=c!==Fr?Ue(c,"value"):void 0,_=cc(n,c_t),g=_!==Fr?Ue(_,"value"):void 0;return!u&&!g?Sg(n,"iterationTypesOfIteratorResult",Cr):Sg(n,"iterationTypesOfIteratorResult",hv(u,g||er,void 0))}function ebe(n,a,c,u,_){var g,T,M,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"?Ko:bl;let ye=te?Ho(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=(M=On.symbol)==null?void 0:M.members)==null?void 0:W.get(c))===te.symbol;if(Ln||Yn){let jn=Ln?an:On,{mapper:$n}=te;return hv(Ob(jn.typeParameters[0],$n),Ob(jn.typeParameters[1],$n),c==="next"?Ob(jn.typeParameters[2],$n):void 0)}}let _e,je;for(let an of ye)c!=="throw"&>(an.parameters)&&(_e=Tn(_e,f_(an,0))),je=Tn(je,ds(an));let mt,At;if(c!=="throw"){let an=_e?ti(_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=d_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)),hv(rn,ti(mt),At)}function T6e(n,a,c,u,_){let g=_6e([ebe(n,a,"next",c,u),ebe(n,a,"return",c,u),ebe(n,a,"throw",c,u)]);return _?g:Sg(n,a.iteratorCacheKey,g)}function US(n,a,c){if(xt(a))return;let u=A6e(a,c);return u&&u[RIe(n)]}function A6e(n,a){if(xt(n))return Ko;let c=a?2:1,u=a?Vs:hc;return Hee(n,c,void 0)||a_t(n,u,void 0,void 0)}function u_t(n){hy(n)||Agt(n)}function sG(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=US(1,n,u);return _?u?mv(tL(_)):_:pt}return u?mv(n)||pt:n}function I6e(n,a){let c=sG(a,Bc(n));return!!(c&&(Rl(c,16384)||c.flags&32769))}function p_t(n){if(hy(n))return;let a=OF(n);if(a&&Al(a)){fd(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){fd(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=lm(a),u=ds(c),_=Bc(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&&!Fb(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,M=_&2?K8(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&&Fb(M,T,n,n.expression)}}else a.kind!==176&&B.noImplicitReturns&&!I6e(a,u)&&Ve(n,f.Not_all_code_paths_return_a_value)}function f_t(n){hy(n)||n.flags&65536&&fd(n,f.with_statements_are_not_allowed_in_an_async_function_block),po(n.expression);let a=Gn(n);if(!HS(a)){let c=fh(a,n.pos).start,u=n.statement.pos;KS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function m_t(n){hy(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 M=po(T.expression);kve(u,M)||$Oe(M,u,T.expression,void 0)}}}),n.caseBlock.locals&&jb(n.caseBlock)}function __t(n){hy(n)||Fn(n.parent,a=>Xo(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 h_t(n){hy(n)||Fe(n.expression)&&!n.expression.escapedText&&zgt(n,f.Line_break_not_permitted_here),n.expression&&po(n.expression)}function g_t(n){hy(n),Vee(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;oG(c);let u=gd(c);if(u){let _=Ti(u);_&&!(_.flags&3)&&fd(u,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)fd(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&uh(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=gu(n);if(u.length===0)return;for(let g of Pb(n))c&&g.flags&4194304||x6e(n,g,uC(g,8576,!0),Db(g));let _=a.valueDeclaration;if(_&&di(_)){for(let g of _.members)if(!na(g)&&!oC(g)){let T=Sr(g);x6e(n,T,Id(g.name.expression),Db(T))}}if(u.length>1)for(let g of u)y_t(n,g)}function x6e(n,a,c,u){let _=a.valueDeclaration,g=No(_);if(g&&Ki(g))return;let T=dge(n,c),M=kr(n)&2?dl(n.symbol,264):void 0,W=_&&_.kind===226||g&&g.kind===167?_:void 0,V=Cu(a)===n.symbol?_:void 0;for(let te of T){let ye=te.declaration&&Cu(Sr(te.declaration))===n.symbol?te.declaration:void 0,_e=V||ye||(M&&!gt(Dp(n),je=>!!t0(je,a.escapedName)&&!!n0(je,te.keyType))?M: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))),$a.add(je)}}}function y_t(n,a){let c=a.declaration,u=dge(n,a.keyType),_=kr(n)&2?dl(n.symbol,264):void 0,g=c&&Cu(Sr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let M=T.declaration&&Cu(Sr(T.declaration))===n.symbol?T.declaration:void 0,W=g||M||(_&&!gt(Dp(n),V=>!!bg(V,a.keyType)&&!!n0(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 iL(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 v_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,HC[z])}function b_t(n){let a=jr(iE(n),$m);if(!Nn(a))return;let c=ir(n),u=new Set,_=new Set;if(gn(n.parameters,({name:T},M)=>{Fe(T)&&u.add(T.escapedText),Yo(T)&&_.add(M)}),pge(n)){let T=a.length-1,M=a[T];c&&M&&Fe(M.name)&&M.typeExpression&&M.typeExpression.type&&!u.has(M.name.escapedText)&&!_.has(T)&&!Gf(Ti(M.typeExpression.type))&&Ve(M.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,yr(M.name))}else gn(a,({name:T,isNameFirst:M},W)=>{_.has(W)||Fe(T)&&u.has(T.escapedText)||(Au(T)?c&&Ve(T,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,up(T),up(T.left)):M||pd(c,T,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,yr(T)))})}function lG(n){let a=!1;if(n)for(let u=0;u{u.default?(a=!0,E_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,Is(u.name))}}}function E_t(n,a,c){u(n);function u(_){if(_.kind===183){let g=Sge(_);if(g.flags&262144)for(let T=c;Tu)return!1;for(let W=0;Wpc(c)&&su(c))&&yn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Qr(n,2048)&&fd(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),N6e(n),gn(n.members,Ia),jb(n)}function N6e(n){cgt(n),nG(n),nL(n,n.name),lG(Dv(n)),U8(n);let a=Sr(n),c=$s(a),u=Up(c),_=sr(a);R6e(a),zee(a),Bft(n),!!(n.flags&33554432)||Gft(n);let T=S_(n);if(T){gn(T.typeArguments,Ia),ce<2&&xc(T.parent,1);let V=P0(n);V&&V!==T&&po(V.expression);let te=Dp(c);te.length&&r(()=>{let ye=te[0],_e=Rp(c),je=Mu(_e);if(R_t(je,T),Ia(T.expression),gt(T.typeArguments)){gn(T.typeArguments,Ia);for(let At of Zd(je,T.typeArguments,T))if(!$Fe(T,At.typeParameters))break}let mt=Up(ye,c.thisType);if(eu(u,mt,void 0)?eu(_,HOe(je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):L6e(n,u,mt,f.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(Mi(_)?Ho(_e,1).some(rn=>rn.flags&4)&&!Qr(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=kh(je,T.typeArguments,T);gn(At,rn=>!$_(rn.declaration)&&!uy(ds(rn),ye))&&Ve(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}N_t(c,ye)})}x_t(n,c,u,_);let M=aR(n);if(M)for(let V of M)(!Bl(V.expression)||Ud(V.expression))&&Ve(V.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Gve(V),r(W(V));r(()=>{Kee(c,a),Kee(_,a,!0),Fve(n),L_t(n)});function W(V){return()=>{let te=d_(Ti(V));if(!Ut(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)||L6e(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 x_t(n,a,c,u){let g=S_(n)&&Dp(a),T=g?.length?Up(Ga(g),a.thisType):void 0,M=Rp(a);for(let W of n.members)Gj(W)||(Nl(W)&&gn(W.parameters,V=>{dp(V,W)&&P6e(n,u,M,T,a,c,V,!0)}),P6e(n,u,M,T,a,c,W,!1))}function P6e(n,a,c,u,_,g,T,M,W=!0){let V=T.name&&zm(T.name)||zm(T);return V?M6e(n,a,c,u,_,g,p6(T),O0(T),na(T),M,vl(V),W?T:void 0):0}function M6e(n,a,c,u,_,g,T,M,W,V,te,ye){let _e=ir(n),je=!!(n.flags&33554432);if(u&&(T||B.noImplicitOverride)){let mt=fl(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=GWe(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,O0);if(T)return 0;if(an){if(M&&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 L6e(n,a,c,u){let _=!1;for(let g of n.members){if(na(g))continue;let T=g.name&&zm(g.name)||zm(g);if(T){let M=ha(a,T.escapedName),W=ha(c,T.escapedName);if(M&&W){let V=()=>Fo(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(M),sr(W),g.name||g,void 0,V)||(_=!0)}}}_||eu(a,c,n.name||n,u)}function R_t(n,a){let c=Ho(n,1);if(c.length){let u=c[0].declaration;if(u&&fp(u,2)){let _=wg(n.symbol);abe(a,_)||Ve(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vp(n.symbol))}}}function D_t(n,a,c){if(!a.name)return 0;let u=Sr(n),_=$s(u),g=Up(_),T=sr(u),W=S_(n)&&Dp(_),V=W?.length?Up(Ga(W),_.thisType):void 0,te=Rp(_),ye=a.parent?p6(a):Qr(a,16);return M6e(n,T,te,V,_,g,ye,O0(a),na(a),!1,vl(c))}function TC(n){return Tl(n)&1?n.links.target:n}function C_t(n){return jr(n.declarations,a=>a.kind===263||a.kind===264)}function N_t(n,a){var c,u,_,g;let T=_s(a),M;e:for(let W of T){let V=TC(W);if(V.flags&4194304)continue;let te=t0(n,V.escapedName);if(!te)continue;let ye=TC(te),_e=Tf(V);if(R.assert(!!ye,"derived should point to something, even if it is the base class' declaration."),ye===V){let je=wg(n.symbol);if(_e&64&&(!je||!Qr(je,64))){for(let mt of Dp(n)){if(mt===a)continue;let At=t0(mt,V.escapedName),rn=At&&TC(At);if(rn&&rn!==V)continue e}M||(M=Ve(je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Vn(n),Vn(a))),je.kind===231?Pa(M,Pr(W.valueDeclaration??(W.declarations&&Ga(W.declarations))??je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Si(W),Vn(a))):Pa(M,Pr(W.valueDeclaration??(W.declarations&&Ga(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=>k6e(Mn,_e)):(u=V.declarations)!=null&&u.every(Mn=>k6e(Mn,_e)))||Tl(V)&262144||ye.valueDeclaration&&ur(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(No(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=ty(wg(n.symbol)),On=Mn.name;if(Mn.exclamationToken||!an||!Fe(On)||!J||!O6e(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(No(ye.valueDeclaration)||ye.valueDeclaration,Ln,Si(V),Vn(a))}}}continue}else if(rve(V)){if(rve(ye)||ye.flags&4)continue;R.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(No(ye.valueDeclaration)||ye.valueDeclaration,mt,Vn(a),Si(V),Vn(n))}}}function k6e(n,a){return a&64&&(!Vo(n)||!n.initializer)||mu(n.parent)}function P_t(n,a,c){if(!Nn(a))return c;let u=new Map;gn(c,_=>{u.set(_.escapedName,_)});for(let _ of a){let g=_s(Up(_,n.thisType));for(let T of g){let M=u.get(T.escapedName);M&&T.parent===M.parent&&u.delete(T.escapedName)}}return Oo(u.values())}function M_t(n,a){let c=Dp(n);if(c.length<2)return!0;let u=new Map;gn(Jhe(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let _=!0;for(let g of c){let T=_s(Up(g,n.thisType));for(let M of T){let W=u.get(M.escapedName);if(!W)u.set(M.escapedName,{prop:M,containingType:g});else if(W.containingType!==n&&!Ult(W.prop,M)){_=!1;let te=Vn(W.containingType),ye=Vn(g),_e=Fo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(M),te,ye);_e=Fo(_e,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Vn(n),te,ye),$a.add(Pg(Gn(a),a,_e))}}}return _}function L_t(n){if(!J||!xe||n.flags&33554432)return;let a=ty(n);for(let c of n.members)if(!(du(c)&128)&&!na(c)&&w6e(c)){let u=c.name;if(Fe(u)||Ki(u)||Xa(u)){let _=sr(Sr(c));_.flags&3||zM(_)||(!a||!O6e(u,_,a))&&Ve(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Is(u))}}}function w6e(n){return n.kind===172&&!O0(n)&&!n.exclamationToken&&!n.initializer}function k_t(n,a,c,u,_){for(let g of c)if(g.pos>=u&&g.pos<=_){let T=L.createPropertyAccessExpression(L.createThis(),n);Va(T.expression,T),Va(T,g),T.flowNode=g.returnFlowNode;let M=Vb(T,a,Bb(a));if(!zM(M))return!0}return!1}function O6e(n,a,c){let u=Xa(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);Va(u.expression,u),Va(u,c),u.flowNode=c.returnFlowNode;let _=Vb(u,a,Bb(a));return!zM(_)}function w_t(n){Tg(n)||hgt(n),lG(n.typeParameters),r(()=>{iL(n.name,f.Interface_name_cannot_be_0),U8(n);let a=Sr(n);R6e(a);let c=dl(a,264);if(n===c){let u=$s(a),_=Up(u);if(M_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)}}JFe(n)}),gn(SN(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),Gve(a)}),gn(n.members,Ia),r(()=>{Fve(n),jb(n)})}function O_t(n){Tg(n),iL(n.name,f.Type_alias_name_cannot_be_0),U8(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),jb(n))}function W6e(n){let a=Zr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=W_t(u,c);Zr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function W_t(n,a){if(g2(n.name))Ve(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=Ux(n.name);rg(c)&&!XN(c)&&Ve(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return F_t(n);if(!(n.parent.flags&33554432&&!I0(n.parent))){if(a!==void 0)return a;Ve(n.name,f.Enum_member_must_have_initializer)}}function F_t(n){let a=I0(n.parent),c=n.initializer,u=oL(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 oL(n,a){switch(n.kind){case 224:let c=oL(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=oL(n.left,a),_=oL(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 z6e(n,a);case 9:return hbe(n),+n.text;case 217:return oL(n.expression,a);case 80:{let T=n;if(XN(T.escapedText)&&js(T,111551,!0)===WM(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(Bl(n)){let T=js(n,111551,!0);if(T){if(T.flags&8)return a?F6e(n,T,a):IC(T.valueDeclaration);if(qM(T)){let M=T.valueDeclaration;if(M&&Oi(M)&&!M.type&&M.initializer&&(!a||M!==a&&$g(M,a)))return oL(M.initializer,M)}}}break;case 212:let g=n.expression;if(Bl(g)&&as(n.argumentExpression)){let T=js(g,111551,!0);if(T&&T.flags&384){let M=fl(n.argumentExpression.text),W=T.exports.get(M);if(W)return a?F6e(n,W,a):IC(W.valueDeclaration)}}break}}function F6e(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 $g(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 z6e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=oL(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function z_t(n){r(()=>B_t(n))}function B_t(n){Tg(n),nL(n,n.name),U8(n),n.members.forEach(G_t),W6e(n);let a=Sr(n),c=dl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=I0(n);gn(a.declarations,g=>{gE(g)&&I0(g)!==_&&Ve(No(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 G_t(n){Ki(n.name)&&Ve(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&po(n.initializer)}function V_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 j_t(n,a){let c=ph(n),u=ph(a);return Rh(c)?Rh(u):Rh(u)?!1:c===u}function U_t(n){n.body&&(Ia(n.body),E_(n)||jb(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=Pd(n),M=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,M))return;Tg(n)||!g&&n.name.kind===11&&yn(n.name,f.Only_ambient_modules_can_use_quoted_names),Fe(n.name)&&nL(n,n.name),U8(n);let W=Sr(n);if(W.flags&512&&!g&&yK(n,G0(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=V_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(A0(n)){if((_||Sr(n).flags&33554432)&&n.body)for(let te of n.body.statements)tbe(te,_)}else Rh(n.parent)?_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qc(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 tbe(n,a){switch(n.kind){case 243:for(let u of n.declarationList.declarations)tbe(u,a);break;case 277:case 278:fd(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:fd(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(Yo(c)){for(let u of c.elements)tbe(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function H_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($h(n.expression)&&!Ki(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function nbe(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&&Pd(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&&qc(a.text)&&!Tb(n))return Ve(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Zc(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=Oc(g);if(T!==lt){if(g=es(g.exportSymbol||g),ir(n)&&!(T.flags&111551)&&!oE(n)){let V=yI(n)?n.propertyName||n.name:au(n)?n.name:n;if(R.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{R.assert(n.kind!==260);let te=Fn(n,Um(Mc,Zc)),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 M=Sd(T),W=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(M&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,oE)&&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)&&!oE(n)&&!(n.flags&33554432)){let V=Lf(g),te=!(M&111551);if(te||V)switch(n.kind){case 273:case 276:case 271:{if(B.preserveValueImports||B.verbatimModuleSyntax){R.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=yr(n.kind===276&&n.propertyName||n.name);ug(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=yr(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);ug(_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=rbe(g,n);db(V)&&V.declarations&&rv(n,V.declarations,V.escapedName)}}}function rbe(n,a){if(!(n.flags&2097152)||db(n)||!Mm(n))return n;let c=Oc(n);if(c===lt)return c;for(;n.flags&2097152;){let u=$ye(n);if(u){if(u===c)break;if(u.declarations&&Nn(u.declarations))if(db(u)){rv(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function qee(n){nL(n,n.name),Jee(n),n.kind===276&&yr(n.propertyName||n.name)==="default"&&_h(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&xc(n,131072)}function B6e(n){var a;let c=n.attributes;if(c){let u=Ige(!0);u!==Ca&&eu(le(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(Mc(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 K_t(n){return vu(tc(n.value))}function J_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(!Tg(n)&&u6(n)&&fd(n,f.An_import_declaration_cannot_have_modifiers),nbe(n)){let a=n.importClause;a&&!Ggt(a)&&(a.name&&qee(a),a.namedBindings&&(a.namedBindings.kind===274?(qee(a.namedBindings),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&_h(B)&&xc(n,65536)):hu(n,n.moduleSpecifier)&&gn(a.namedBindings.elements,qee)))}B6e(n)}}function q_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)&&(Tg(n),Qx(n)||nbe(n)))if(qee(n),Qr(n,32)&&hb(n),n.moduleReference.kind!==283){let a=Oc(Sr(n));if(a!==lt){let c=Sd(a);if(c&111551){let u=Fp(n.moduleReference);js(u,112575).flags&1920||Ve(u,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Is(u))}c&788968&&iL(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 X_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(!Tg(n)&&Gie(n)&&fd(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&xf(n.exportClause)&&Nn(n.exportClause.elements)&&ce===0&&xc(n,4194304),Y_t(n),!n.moduleSpecifier||nbe(n))if(n.exportClause&&!vh(n.exportClause)){gn(n.exportClause.elements,nht);let a=n.parent.kind===268&&Pd(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=hu(n,n.moduleSpecifier);a&&av(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?_h(B)&&xc(n,65536):xc(n,32768))}B6e(n)}}function Y_t(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?y4e(n.exportClause):!1}function cG(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||fd(n,a),!c}function $_t(n){return $F(n,a=>!!Sr(a).isReferenced)}function Q_t(n){return $F(n,a=>!!qi(Sr(a)).constEnumReferenced)}function Z_t(n){return Mc(n)&&n.importClause&&!n.importClause.isTypeOnly&&$_t(n.importClause)&&!ete(n.importClause,!0)&&!Q_t(n.importClause)}function eht(n){return Zc(n)&&bh(n.moduleReference)&&!n.isTypeOnly&&Sr(n).isReferenced&&!ete(n,!1)&&!qi(Sr(n)).constEnumReferenced}function tht(n){if(ft)for(let a of n.statements)(Z_t(a)||eht(a))&&Ve(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function nht(n){if(Jee(n),Af(B)&&RM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)_h(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&yr(n.propertyName||n.name)==="default"&&xc(n,131072);else{let a=n.propertyName||n.name,c=gl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===ze||c===tt||c.declarations&&Rh(X(c.declarations[0]))))Ve(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,yr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&hb(n);let u=c&&(c.flags&2097152?Oc(c):c);(!u||Sd(u)&111551)&&tc(n.propertyName||n.name)}}}function rht(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&&!Pd(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}!Tg(n)&&u6(n)&&fd(n,f.An_export_assignment_cannot_have_modifiers);let u=gd(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=mf(js(g,-1,!0,!0,n));if(T){let M=Lf(T,111551);if(pee(T,g),Sd(T)&111551?(tc(g),!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&M&&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,yr(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,yr(g)),!_&&!(n.flags&33554432)&&em(B)&&!(T.flags&111551)){let W=Sd(T,!1,!0);T.flags&2097152&&W&788968&&!(W&111551)&&(!M||Gn(M)!==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,yr(g),Je):M&&Gn(M)!==Gn(n)&&ug(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,yr(g),Je),M,yr(g))}}else tc(g);Af(B)&&RM(g,!0)}else tc(n.expression);_&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),G6e(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 iht(n){return zc(n.exports,(a,c)=>c!=="export=")}function G6e(n){let a=Sr(n),c=qi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&iht(a)){let g=Mm(u)||u.valueDeclaration;g&&!Tb(g)&&!ir(g)&&Ve(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Ch(a);_&&_.forEach(({declarations:g,flags:T},M)=>{if(M==="__export"||T&1920)return;let W=vv(g,EW(DIe,SW(mu)));if(!(T&524288&&W<=2)&&W>1&&!Xee(g))for(let V of g)IIe(V)&&$a.add(Pr(V,f.Cannot_redeclare_exported_variable_0,Vi(M)))}),c.exportsChecked=!0}}function Xee(n){return n&&n.length>1&&n.every(a=>ir(a)&&Ms(a)&&(hT(a.expression)||$h(a.expression)))}function Ia(n){if(n){let a=D;D=n,S=0,oht(n),D=a}}function oht(n){B2(n)&&gn(n.jsDoc,({comment:c,tags:u})=>{V6e(c),gn(u,_=>{V6e(_.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&&z2(n)&&n.flowNode&&!C5(n.flowNode)&&pd(B.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return UFe(n);case 169:return HFe(n);case 172:return qFe(n);case 171:return Vft(n);case 185:case 184:case 179:case 180:case 181:return j8(n);case 174:case 173:return jft(n);case 175:return Uft(n);case 176:return Hft(n);case 177:case 178:return YFe(n);case 183:return Gve(n);case 182:return Fft(n);case 186:return $ft(n);case 187:return Qft(n);case 188:return Zft(n);case 189:return emt(n);case 192:case 193:return tmt(n);case 196:case 190:case 191:return Ia(n.type);case 197:return omt(n);case 198:return amt(n);case 194:return smt(n);case 195:return lmt(n);case 203:return cmt(n);case 205:return dmt(n);case 202:return umt(n);case 335:return Nmt(n);case 336:return Cmt(n);case 353:case 345:case 347:return bmt(n);case 352:return Emt(n);case 351:return Smt(n);case 331:case 332:case 333:return Amt(n);case 348:return Imt(n);case 355:return xmt(n);case 324:Rmt(n);case 322:case 321:case 319:case 320:case 329:j6e(n),Bo(n,Ia);return;case 325:aht(n);return;case 316:return Ia(n.type);case 340:case 342:case 341:return Pmt(n);case 357:return Tmt(n);case 350:return Dmt(n);case 199:return nmt(n);case 200:return rmt(n);case 262:return vmt(n);case 241:case 268:return Vee(n);case 243:return Xmt(n);case 244:return Ymt(n);case 245:return $mt(n);case 246:return e_t(n);case 247:return t_t(n);case 248:return n_t(n);case 249:return i_t(n);case 250:return r_t(n);case 251:case 252:return u_t(n);case 253:return p_t(n);case 254:return f_t(n);case 255:return m_t(n);case 256:return __t(n);case 257:return h_t(n);case 258:return g_t(n);case 260:return Jmt(n);case 208:return qmt(n);case 263:return I_t(n);case 264:return w_t(n);case 265:return O_t(n);case 266:return z_t(n);case 267:return U_t(n);case 272:return J_t(n);case 271:return q_t(n);case 278:return X_t(n);case 277:return rht(n);case 242:case 259:hy(n);return;case 282:return Jft(n)}}function V6e(n){So(n)&&gn(n,a=>{SI(a)&&Ia(a)})}function j6e(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)?ti(Tn([_,Me],n.postfix?void 0:ue)):_))}else yn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function aht(n){j6e(n),Ia(n.type);let{parent:a}=n;if(To(a)&&kR(a.parent)){Ka(a.parent.parameters)!==a&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}Q0(a)||Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!$m(c)){Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=G2(c);if(!u)return;let _=cE(c);(!_||Ka(_.parameters).symbol!==u)&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function sht(n){let a=Ti(n.type),{parent:c}=n,u=n.parent.parent;if(Q0(n.parent)&&$m(u)){let _=cE(u),g=lH(u.parent.parent);if(_||g){let T=Qs(g?u.parent.parent.typeExpression.parameters:_.parameters),M=G2(u);if(!T||M&&T.symbol===M&&Jh(T))return zd(a)}}return To(c)&&kR(c.parent)?zd(a):op(a)}function px(n){let a=Gn(n),c=Zr(a);c.flags&1?R.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function lht(n){let a=Zr(n);a.deferredNodes&&a.deferredNodes.forEach(cht),a.deferredNodes=void 0}function cht(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:rft(n);break;case 177:case 178:YFe(n);break;case 231:A_t(n);break;case 168:Wft(n);break;case 285:put(n);break;case 284:mut(n);break;case 216:case 234:case 217:Npt(n);break;case 222:po(n.expression);break;case 226:m6(n)&&$A(n);break}D=u,(c=rr)==null||c.pop()}function dht(n){var a,c;(a=rr)==null||a.push(rr.Phase.Check,"checkSourceFile",{path:n.path},!0),tl("beforeCheck"),uht(n),tl("afterCheck"),Yp("Check","beforeCheck","afterCheck"),(c=rr)==null||c.pop()}function U6e(n,a){if(a)return!1;switch(n){case 0:return!!B.noUnusedLocals;case 1:return!!B.noUnusedParameters;default:return R.assertNever(n)}}function H6e(n){return df.get(n.path)||Xe}function uht(n){let a=Zr(n);if(!(a.flags&1)){if(UN(n,B,e))return;Wgt(n),Vh(hS),Vh(gS),Vh(sb),Vh(lb),Vh(dg),gn(n.statements,Ia),Ia(n.endOfFileToken),lht(n),wp(n)&&jb(n),r(()=>{!n.isDeclarationFile&&(B.noUnusedLocals||B.noUnusedParameters)&&l6e(H6e(n),(c,u,_)=>{!Vx(c)&&U6e(u,!!(c.flags&33554432))&&$a.add(_)}),n.isDeclarationFile||wmt()}),B.importsNotUsedAsValues===2&&!n.isDeclarationFile&&oc(n)&&tht(n),wp(n)&&G6e(n),hS.length&&(gn(hS,Fmt),Vh(hS)),gS.length&&(gn(gS,zmt),Vh(gS)),sb.length&&(gn(sb,jmt),Vh(sb)),lb.length&&(gn(lb,Hmt),Vh(lb)),a.flags|=1}}function K6e(n,a){try{return i=a,pht(n)}finally{i=void 0}}function ibe(){for(let n of t)n();t=[]}function obe(n){ibe();let a=r;r=c=>c(),dht(n),r=a}function pht(n){if(n){ibe();let a=$a.getGlobalDiagnostics(),c=a.length;obe(n);let u=$a.getDiagnostics(n.fileName),_=$a.getGlobalDiagnostics();if(_!==a){let g=ene(a,_,zN);return bo(g,u)}else if(c===0&&_.length>0)return bo(_,u);return u}return gn(e.getSourceFiles(),obe),$a.getDiagnostics()}function fht(){return ibe(),$a.getGlobalDiagnostics()}function mht(n,a){if(n.flags&67108864)return[];let c=aa(),u=!1;return _(),c.delete("this"),uge(c);function _(){for(;n;){switch(ch(n)&&n.locals&&!Rh(n)&&T(n.locals,a),n.kind){case 312:if(!oc(n))break;case 267:M(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(Nb(Sr(n)),a&788968);break;case 218:n.name&&g(n.symbol,a);break}aie(n)&&g(Ft,a),u=na(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 M(W,V){V&&W.forEach(te=>{!dl(te,281)&&!dl(te,280)&&te.escapedName!=="default"&&g(te,V)})}}function _ht(n){return n.kind===80&&SR(n.parent)&&No(n.parent)===n}function J6e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function hht(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function q6e(n,a){let c,u=id(n);for(;u&&!(c=a(u));)u=id(u);return c}function ght(n){return!!Fn(n,a=>Nl(a)&&Hf(a.body)||Vo(a)?!0:di(a)||Fs(a)?"quit":!1)}function abe(n,a){return!!q6e(n,c=>c===a)}function yht(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 yht(n)!==void 0}function vht(n){switch(zl(n.parent.parent)){case 1:case 3:return ff(n.parent);case 5:if(wr(n.parent)&&hR(n.parent)===n)return;case 4:case 2:return Sr(n.parent.parent)}}function bht(n){let a=n.parent;for(;Au(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function Eht(n){if(n.expression.kind===110){let a=wu(n,!1,!1);if(Xo(a)){let c=oWe(a);if(c){let u=p0(c,void 0),_=sWe(c,u);return _&&!xt(_)}}}}function X6e(n){if(Lg(n))return ff(n.parent);if(ir(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ki(n)&&!yE(n)&&!Eht(n.parent)){let a=vht(n);if(a)return a}if(n.parent.kind===277&&Bl(n)){let a=js(n,2998271,!0);if(a&&a!==lt)return a}else if(Xu(n)&&Yee(n)){let a=uE(n,271);return R.assert(a!==void 0),X1(n,!0)}if(Xu(n)){let a=bht(n);if(a){Ti(a);let c=Zr(n).resolvedSymbol;return c===lt?void 0:c}}for(;Jie(n);)n=n.parent;if(hht(n)){let a=0;n.parent.kind===233?(a=Xh(n)?788968:111551,f6(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Bl(n)?js(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return G2(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){R.assert(!ir(n));let a=vie(n.parent);return a&&a.symbol}if(Yh(n)){if(Fl(n))return;let a=Fn(n,Um(SI,hP,yE)),c=a?901119:111551;if(n.kind===80){if($x(n)&&ux(n)){let _=vee(n.parent);return _===lt?void 0:_}let u=js(n,c,!0,!0,cE(n));if(!u&&a){let _=Fn(n,Um(di,mu));if(_)return dG(n,!0,Sr(_))}if(u&&a){let _=vT(n);if(_&&$0(_)&&_===u.valueDeclaration)return js(n,c,!0,!0,Gn(_))||u}return u}else{if(Ki(n))return See(n);if(n.kind===211||n.kind===166){let u=Zr(n);return u.resolvedSymbol?u.resolvedSymbol:(n.kind===211?(bee(n,0),u.resolvedSymbol||(u.resolvedSymbol=Y6e(tc(n.expression),uv(n.name)))):kWe(n,0),!u.resolvedSymbol&&a&&Au(n)?dG(n):u.resolvedSymbol)}else if(yE(n))return dG(n)}}else if(J6e(n)){let a=n.parent.kind===183?788968:1920,c=js(n,a,!1,!0);return c&&c!==lt?c:SZ(n)}if(n.parent.kind===182)return js(n,1)}function Y6e(n,a){let c=dge(n,a);if(c.length&&n.members){let u=vZ(c_(n).members);if(c===gu(n))return u;if(u){let _=qi(u),g=to(c,M=>M.declaration),T=mn(g,rs).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(T))return _.filteredIndexSymbolCache.get(T);{let M=Ha(131072,"__index");return M.declarations=to(c,W=>W.declaration),M.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:zm(M.declarations[0].parent),_.filteredIndexSymbolCache.set(T,M),M}}}}function dG(n,a,c){if(Xu(n)){let T=js(n,901119,a,!0,cE(n));if(!T&&Fe(n)&&c&&(T=es(Uu(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):$s(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(xIe(n)){let _=Sr(c);return yI(n.parent)&&n.parent.propertyName===n?$ye(_):_}else if(U2(n))return Sr(c.parent);if(n.kind===80){if(Yee(n))return X6e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=fx(u),g=ha(_,n.escapedText);if(g)return g}else if(cP(c)&&c.name===n)return c.keywordToken===105&&yr(n)==="target"?Ave(c).symbol:c.keywordToken===102&&yr(n)==="meta"?Qwe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!NI(n))return X6e(n);case 110:let _=wu(n,!1,!1);if(Xo(_)){let M=lm(_);if(M.thisParameter)return M.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(sE(n.parent.parent)&&gN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||ir(n)&&Su(n.parent,!1)||Op(n.parent)||Jv(n.parent)&&Ov(n.parent.parent)&&n.parent.parent.argument===n.parent)return hu(n,n,a);if(ra(c)&&gT(c)&&c.arguments[1]===n)return Sr(c);case 9:let T=Xs(c)?c.argumentExpression===n?Id(c.expression):void 0:Jv(c)&&MT(u)?Ti(u.objectType):void 0;return T&&ha(T,fl(n.text));case 90:case 100:case 39:case 86:return ff(n.parent);case 205:return Ov(n)?zm(n.argument.literal,a):void 0;case 95:return Ml(n.parent)?R.checkDefined(n.parent.symbol):void 0;case 102:case 105:return cP(n.parent)?gFe(n.parent).symbol:void 0;case 104:if(ur(n.parent)){let M=Id(n.parent.right),W=Lve(M);return W?.symbol??M.symbol}return;case 236:return po(n).symbol;case 295:if($x(n)&&ux(n)){let M=vee(n.parent);return M===lt?void 0:M}default:return}}}function Sht(n){if(Fe(n)&&wr(n.parent)&&n.parent.name===n){let a=uv(n),c=Id(n.parent.expression),u=c.flags&1048576?c.types:[c];return va(u,_=>jr(gu(_),g=>ix(a,g.keyType)))}}function Tht(n){if(n&&n.kind===304)return js(n.name,2208703)}function Aht(n){return Kd(n)?n.parent.parent.moduleSpecifier?Zg(n.parent.parent,n):js(n.propertyName||n.name,2998271):js(n,2998271)}function fx(n){if(Yi(n)&&!oc(n)||n.flags&67108864)return pt;let a=Hj(n),c=a&&Wf(Sr(a.class));if(Xh(n)){let u=Ti(n);return c?Up(u,c.thisType):u}if(Yh(n))return $6e(n);if(c&&!a.isImplements){let u=Jc(Dp(c));return u?Up(u,c.thisType):pt}if(SR(n)){let u=Sr(n);return $s(u)}if(_ht(n)){let u=zm(n);return u?$s(u):pt}if(qa(n))return PA(n,!0,0)||pt;if(Hd(n)){let u=Sr(n);return u?sr(u):pt}if(xIe(n)){let u=zm(n);return u?sr(u):pt}if(Yo(n))return PA(n.parent,!0,0)||pt;if(Yee(n)){let u=zm(n);if(u){let _=$s(u);return Ut(_)?sr(u):_}}return cP(n.parent)&&n.parent.keywordToken===n.kind?gFe(n.parent):n1(n)?Ige(!1):pt}function $ee(n){if(R.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=aG(n.parent);return ZA(n,_||pt)}if(n.parent.kind===226){let _=Id(n.parent.right);return ZA(n,_||pt)}if(n.parent.kind===303){let _=ta(n.parent.parent,Ma),g=$ee(_)||pt,T=jx(_.properties,n.parent);return kFe(_,g,T)}let a=ta(n.parent,fu),c=$ee(a)||pt,u=_v(65,c,Me,n.parent)||pt;return wFe(a,c,a.elements.indexOf(n),u)}function Iht(n){let a=$ee(ta(n.parent.parent,lN));return a&&ha(a,n.escapedText)}function $6e(n){return LN(n)&&(n=n.parent),vu(Id(n))}function Q6e(n){let a=ff(n.parent);return na(n)?sr(a):$s(a)}function Z6e(n){let a=n.name;switch(a.kind){case 80:return Ku(yr(a));case 9:case 11:return Ku(a.text);case 167:let c=Eg(a);return Ad(c,12288)?c:Ne;default:return R.fail("Unsupported property name.")}}function sbe(n){n=Mu(n);let a=aa(_s(n)),c=Ho(n,0).length?Un:Ho(n,1).length?go:void 0;return c&&gn(_s(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),JE(a)}function Qee(n){return Ho(n,0).length!==0||Ho(n,1).length!==0}function e4e(n){let a=xht(n);return a?va(a,e4e):[n]}function xht(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(Rht(n))}}function Rht(n){let a,c=n;for(;c=qi(c).target;)a=c;return a}function Dht(n){if(il(n))return!1;let a=Ro(n,Fe);if(!a)return!1;let c=a.parent;return c?!((wr(c)||mc(c))&&c.name===a)&&Q8(a)===Ft:!1}function Cht(n){let a=hu(n.parent,n);if(!a||pN(a))return!0;let c=av(a);a=Ip(a);let u=qi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):zc(Ch(a),_)),u.exportsSomeValue;function _(g){return g=Vl(g),g&&!!(Sd(g)&111551)}}function Nht(n){return l2(n.parent)&&n===n.parent.name}function Pht(n,a){var c;let u=Ro(n,Fe);if(u){let _=Q8(u,Nht(u));if(_){if(_.flags&1048576){let T=es(_.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;_=T}let g=Cu(_);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===312){let T=g.valueDeclaration,M=Gn(u);return T!==M?void 0:T}return Fn(u.parent,T=>l2(T)&&Sr(T)===g)}}}}function Mht(n){let a=rae(n);if(a)return a;let c=Ro(n,Fe);if(c){let u=Hht(c);if(bA(u,111551)&&!Lf(u,111551))return Mm(u)}}function Lht(n){return n.valueDeclaration&&qa(n.valueDeclaration)&&Lx(n.valueDeclaration).parent.kind===299}function t4e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=qi(n);if(a.isDeclarationWithCollidingName===void 0){let c=ph(n.valueDeclaration);if(zre(c)||Lht(n)){let u=Zr(n.valueDeclaration);if(gl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let _=u.flags&32768,g=Pv(c,!1),T=c.kind===241&&Pv(c.parent,!1);a.isDeclarationWithCollidingName=!Kre(c)&&(!_||!g&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function kht(n){if(!il(n)){let a=Ro(n,Fe);if(a){let c=Q8(a);if(c&&t4e(c))return c.valueDeclaration}}}function wht(n){let a=Ro(n,Hd);if(a){let c=Sr(a);if(c)return t4e(c)}return!1}function n4e(n){switch(R.assert(ft),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&&(vh(c)||gt(c.elements,n4e));case 277:return n.expression&&n.expression.kind===80?Zee(Sr(n),!0):!0}return!1}function Oht(n){let a=Ro(n,Zc);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=mf(Oc(n));return c===lt?!a||!Lf(n):!!(Sd(n,a,!0)&111551)&&(G0(B)||!$8(c))}function $8(n){return Mve(n)||!!n.constEnumOnlyModule}function ete(n,a){if(R.assert(ft),fb(n)){let c=Sr(n),u=c&&qi(c);if(u?.referenced)return!0;let _=qi(c).aliasTarget;if(_&&du(n)&32&&Sd(_)&111551&&(G0(B)||!$8(_)))return!0}return a?!!Bo(n,c=>ete(c,a)):!1}function r4e(n){if(Hf(n.body)){if(Mv(n)||Py(n))return!1;let a=Sr(n),c=MS(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function i4e(n){return!!J&&!h8(n)&&!$m(n)&&!!n.initializer&&!Qr(n,31)}function Wht(n){return J&&h8(n)&&!n.initializer&&Qr(n,31)}function Fht(n){let a=Ro(n,Ec);if(!a)return!1;let c=Sr(a);return!c||!(c.flags&16)?!1:!!zc(xp(c),u=>u.flags&111551&&j6(u.valueDeclaration))}function zht(n){let a=Ro(n,Ec);if(!a)return Xe;let c=Sr(a);return c&&_s(sr(c))||Xe}function AC(n){var a;let c=n.id||0;return c<0||c>=_S.length?0:((a=_S[c])==null?void 0:a.flags)||0}function IC(n){return W6e(n.parent),Zr(n).enumMemberValue}function o4e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function lbe(n){if(n.kind===306)return IC(n);let a=Zr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(I0(c.parent))return IC(c)}}function cbe(n){return!!(n.flags&524288)&&Ho(n,0).length>0}function Bht(n,a){var c;let u=Ro(n,Xu);if(!u||a&&(a=Ro(a),!a))return 0;let _=!1;if(Au(u)){let te=js(Fp(u),111551,!0,!0,a);_=!!((c=te?.declarations)!=null&&c.every(oE))}let g=js(u,111551,!0,!0,a),T=g&&g.flags&2097152?Oc(g):g;_||(_=!!(g&&Lf(g,111551)));let M=js(u,788968,!0,!0,a),W=M&&M.flags&2097152?Oc(M):M;if(g||_||(_=!!(M&&Lf(M,788968))),T&&T===W){let te=xge(!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=$s(W);return Ut(V)?_?11:0:V.flags&3?11:Ad(V,245760)?2:Ad(V,528)?6:Ad(V,296)?3:Ad(V,2112)?4:Ad(V,402653316)?5:wa(V)?7:Ad(V,12288)?8:cbe(V)?10:Gf(V)?7:11}function Ght(n,a,c,u,_){let g=Ro(n,rie);if(!g)return L.createToken(133);let T=Sr(g),M=T&&!(T.flags&133120)?zS(sr(T)):pt;return M.flags&8192&&M.symbol===T&&(c|=1048576),_&&(M=Bb(M)),Et.typeToTypeNode(M,a,c|1024,u)}function Vht(n,a,c,u){let _=Ro(n,Xo);if(!_)return L.createToken(133);let g=lm(_);return Et.typeToTypeNode(ds(g),a,c|1024,u)}function jht(n,a,c,u){let _=Ro(n,ht);if(!_)return L.createToken(133);let g=Hp($6e(_));return Et.typeToTypeNode(g,a,c|1024,u)}function Uht(n){return be.has(fl(n))}function Q8(n,a){let c=Zr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let _=n.parent;Hd(_)&&n===_.name&&(u=X(_))}return gl(u,n.escapedText,3257279,void 0,void 0,!0)}function Hht(n){let a=Zr(n).resolvedSymbol;return a&&a!==lt?a:gl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Kht(n){if(!il(n)){let a=Ro(n,Fe);if(a){let c=Q8(a);if(c)return mf(c).valueDeclaration}}}function Jht(n){if(!il(n)){let a=Ro(n,Fe);if(a){let c=Q8(a);if(c)return jr(mf(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 qht(n){return CF(n)||Oi(n)&&pG(n)?OS(sr(Sr(n))):!1}function Xht(n,a,c){let u=n.flags&1056?Et.symbolToExpression(n.symbol,111551,a,void 0,c):n===wn?L.createTrue():n===Kt&&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 Yht(n,a){let c=sr(Sr(n));return Xht(c,n,a)}function a4e(n){return n?(FE(n),Gn(n).localJsxFactory||Xg):Xg}function dbe(n){if(n){let a=Gn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=So(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 $ht(){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&&M(ye,V,te)})),{getReferencedExportContainer:Pht,getReferencedImportDeclaration:Mht,getReferencedDeclarationWithCollidingName:kht,isDeclarationWithCollidingName:wht,isValueAliasDeclaration:W=>{let V=Ro(W);return V&&ft?n4e(V):!0},hasGlobalName:Uht,isReferencedAliasDeclaration:(W,V)=>{let te=Ro(W);return te&&ft?ete(te,V):!0},getNodeCheckFlags:W=>{let V=Ro(W);return V?AC(V):0},isTopLevelValueImportEqualsWithEntityName:Oht,isDeclarationVisible:o_,isImplementationOfOverload:r4e,isRequiredInitializedParameter:i4e,isOptionalUninitializedParameterProperty:Wht,isExpandoFunctionDeclaration:Fht,getPropertiesOfContainerFunction:zht,createTypeOfDeclaration:Ght,createReturnTypeOfSignatureDeclaration:Vht,createTypeOfExpression:jht,createLiteralConstValue:Yht,isSymbolAccessible:wi,isEntityNameVisible:bb,getConstantValue:W=>{let V=Ro(W,o4e);return V?lbe(V):void 0},collectLinkedAliases:RM,getReferencedValueDeclaration:Kht,getReferencedValueDeclarations:Jht,getTypeReferenceSerializationKind:Bht,isOptionalParameter:h8,moduleExportsSomeValue:Cht,isArgumentsLocalBinding:Dht,getExternalModuleFileFromDeclaration:W=>{let V=Ro(W,qre);return V&&ube(V)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:qht,isLateBound:W=>{let V=Ro(W,Hd),te=V&&Sr(V);return!!(te&&Tl(te)&4096)},getJsxFactoryEntity:a4e,getJsxFragmentFactoryEntity:dbe,getAllAccessorDeclarations(W){W=Ro(W,iF);let V=W.kind===178?177:178,te=dl(Sr(W),V),ye=te&&te.posey(W,W,void 0),isBindingCapturedByNode:(W,V)=>{let te=Ro(W),ye=Ro(V);return!!te&&!!ye&&(Oi(ye)||qa(ye))&&Edt(te,ye)},getDeclarationStatementsForSourceFile:(W,V,te,ye)=>{let _e=Ro(W);R.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=Ro(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=ube(W);if(!te||te===V)return!1;let ye=Ch(V.symbol);for(let _e of Oo(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=js(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=Cu(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 M(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&&M(je,V,te||W.impliedNodeFormat)}}}}function ube(n){let a=n.kind===267?ii(n.name,Da):tR(n),c=ey(a,a,void 0);if(c)return dl(c,312)}function Qht(){for(let a of e.getSourceFiles())Ose(a,B);bs=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)$a.add(Pr(u,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));r_(be,a.locals)}a.jsGlobalAugmentations&&r_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(im=bo(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(yS(be,lA,f.Declaration_name_conflicts_with_built_in_global_identifier_0),qi(ze).type=Nt,qi(Ft).type=ec("IArguments",0,!0),qi(lt).type=pt,qi(tt).type=kf(16,tt),Jo=ec("Array",1,!0),Re=ec("Object",0,!0),Lt=ec("Function",0,!0),Un=pe&&ec("CallableFunction",0,!0)||Lt,go=pe&&ec("NewableFunction",0,!0)||Lt,Ql=ec("String",0,!0),gc=ec("Number",0,!0),ll=ec("Boolean",0,!0),hl=ec("RegExp",0,!0),Zl=zd(G),Hc=zd(et),Hc===Ca&&(Hc=Ns(void 0,K,Xe,Xe,Xe)),$o=iOe("ReadonlyArray",1)||Jo,cf=$o?v8($o,[G]):Zl,Gl=iOe("ThisType",1),n)for(let a of n)for(let c of a)E_(c.parent)||BD(c);bs.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:_,firstFileLocations:g,secondFileLocations:T},M)=>{let W=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let V of g)Yg(V,W,M,T);for(let V of T)Yg(V,W,M,g)});else{let _=Oo(u.keys()).join(", ");$a.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))),$a.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)))}}),bs=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=egt(c,n);if(u!==lt){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of Zht(g)){if(o.has(T))continue;o.add(T);let M=Vl(Uu(Ch(u),fl(T),111551));M?g&524288?gt(MS(M),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,Vv,T,4):g&1048576?gt(MS(M),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,Vv,T,5):g&1024&&(gt(MS(M),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,Vv,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,Vv,T)}}s|=a}}}function Zht(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ee?["__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 R.fail("Unrecognized helper")}}function egt(n,a){return l||(l=j_(n,Vv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||lt),l}function Tg(n){var a;let c=rgt(n)||tgt(n);if(c!==void 0)return c;if(To(n)&&k0(n))return fd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=Pl(n)?n.declarationList.flags&7:0,_,g,T,M,W,V=0,te=!1,ye=!1;for(let _e of n.modifiers)if(vd(_e)){if(GF(ee,n,n.parent,n.parent.parent)){if(ee&&(n.kind===177||n.kind===178)){let je=AT(n.parent.members,n);if(bf(je.firstAccessor)&&n===je.secondAccessor)return fd(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Hf(n.body)?fd(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):fd(n,f.Decorators_are_not_valid_here);if(V&-34849)return yn(_e,f.Decorators_are_not_valid_here);if(ye&&V&98303){R.assertIsDefined(W);let je=Gn(_e);return HS(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||!di(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)&&dE(n.parent)||n.parent;if(n.kind===168&&!(Fs(At)||di(At)||gh(At)||RR(At)||XI(At)||Lk(At)||hh(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,M=_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(su(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(di(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&&!Pd(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(di(n.parent)&&!Vo(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(su(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&&Qr(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(au(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)&&(dE(n.parent)||Vr((a=iR(n.parent))==null?void 0:a.tags,zT))||n.parent;if(n.kind!==168||sn&&!(mu(sn)||di(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(M,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&&Yo(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?ogt(n,T):!1}function tgt(n){if(!n.modifiers)return!1;let a=ngt(n);return a&&fd(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 ngt(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:R.assertNever(n)}}}function rgt(n){let a=igt(n);return a&&fd(a,f.Decorators_are_not_valid_here)}function igt(n){return TH(n)?Vr(n.modifiers,vd):void 0}function ogt(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?KS(n[0],n.end-1,1,a):!1}function s4e(n,a){if(n&&n.length===0){let c=n.pos-1,u=Na(a.text,n.end)+1;return KS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function agt(n){let a=!1,c=n.length;for(let u=0;u!!a.initializer||Yo(a.name)||Jh(a))}function lgt(n){if(ce>=3){let a=n.body&&Uo(n.body)&&vH(n.body.statements);if(a){let c=sgt(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 Tg(n)||s4e(n.typeParameters,a)||agt(n.parameters)||dgt(n,a)||Fs(n)&&lgt(n)}function cgt(n){let a=Gn(n);return _gt(n)||s4e(n.typeParameters,a)}function dgt(n,a){if(!zs(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=ys(a,c.pos).line,_=ys(a,c.end).line;return u!==_&&yn(c,f.Line_terminator_not_permitted_before_arrow)}function ugt(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 pgt(n){return Tg(n)||ugt(n)}function fgt(n,a){if(a&&a.length===0){let c=Gn(n),u=a.pos-1,_=Na(c.text,a.end)+1;return KS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function uG(n,a){return mx(a)||fgt(n,a)}function mgt(n){return n.questionDotToken||n.flags&64?yn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function l4e(n){let a=n.types;if(mx(a))return!0;if(a&&a.length===0){let c=da(n.token);return KS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return gt(a,c4e)}function c4e(n){return Gy(n)&&lP(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 _gt(n){let a=!1,c=!1;if(!Tg(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===96){if(a)return fd(u,f.extends_clause_already_seen);if(c)return fd(u,f.extends_clause_must_precede_implements_clause);if(u.types.length>1)return fd(u.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(R.assert(u.token===119),c)return fd(u,f.implements_clause_already_seen);c=!0}l4e(u)}}function hgt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return fd(c,f.extends_clause_already_seen);a=!0}else return R.assert(c.token===119),fd(c,f.Interface_declaration_cannot_have_implements_clause);l4e(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 pbe(n){if(n.asteriskToken){if(R.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 fbe(n,a){return!!n&&yn(n,a)}function d4e(n,a){return!!n&&yn(n,a)}function ggt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=ms(u.expression);if(fu(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(Bae(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:d4e(u.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),fbe(u.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&hbe(_),g=4;break;case 174:g=8;break;case 177:g=1;break;case 178:g=2;break;default:R.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=gbe(_);if(T===void 0)continue;let M=c.get(T);if(!M)c.set(T,g);else if(g&8&&M&8)yn(_,f.Duplicate_identifier_0,uc(_));else if(g&4&&M&4)yn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,uc(_));else if(g&3&&M&3)if(M!==3&&g!==M)c.set(T,g|M);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 ygt(n){vgt(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=QN(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 vgt(n){if(wr(n)&&Xm(n.expression))return yn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Xm(n)&&R6(B)&&!dR(n.namespace.escapedText))return yn(n,f.React_components_cannot_include_JSX_namespace_names)}function bgt(n){if(n.expression&&yP(n.expression))return yn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function u4e(n){if(hy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Gn(n);if(FF(n)){if(!HS(a))switch(TI(a,B)||$a.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){$a.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:$a.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(!HS(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){R.assert((Bc(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 $a.add(c),!0}return!1}if(Fk(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(!_be(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 fd(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 Egt(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&&!Qr(n,64))return KS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(Qr(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(!Sgt(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=R.checkDefined(CN(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 Sgt(n){return mbe(n)||n.parameters.length===(n.kind===177?0:1)}function mbe(n){if(n.parameters.length===(n.kind===177?1:2))return L0(n)}function Tgt(n){if(n.operator===158){if(n.type.kind!==155)return yn(n.type,f._0_expected,da(155));let a=V2(n.parent);if(ir(a)&&Q0(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(!mN(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(!na(a)||!NN(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(!Qr(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 fd(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,da(155))}function aL(n,a){if(Got(n))return yn(n,a)}function p4e(n){if(nte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ga(n.modifiers).kind===134))return fd(n,f.Modifiers_cannot_appear_here);if(fbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(d4e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return KS(n,n.end-1,1,f._0_expected,"{")}if(pbe(n))return!0}if(di(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 aL(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 aL(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 aL(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 aL(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 Agt(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&&!Pv(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(Pv(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 Igt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Ka(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 KS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function f4e(n){return Qp(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function xgt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Rgt(n){if((wr(n)||Xs(n)&&f4e(n.argumentExpression))&&Bl(n.expression))return!!(tc(n).flags&1056)}function m4e(n){let a=n.initializer;if(a){let c=!(f4e(a)||Rgt(a)||a.kind===112||a.kind===97||xgt(a));if((CF(n)||Oi(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 Dgt(n){let a=JS(n),c=a&7;if(Yo(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)m4e(n);else if(!n.initializer){if(Yo(n.name)&&!Yo(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)&&Qr(n.parent.parent,32)&&_4e(n.name),!!c&&h4e(n.name)}function _4e(n){if(n.kind===80){if(yr(n)==="__esModule")return Pgt("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(!Gc(c))return _4e(c.name)}return!1}function h4e(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)Gc(c)||h4e(c.name)}return!1}function _be(n){let a=n.declarations;if(mx(n.declarations))return!0;if(!n.declarations.length)return KS(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?LFe(n):!1}function g4e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return g4e(n.parent)}return!0}function Cgt(n){if(!g4e(n.parent)){let a=JS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":R.fail("Unknown BlockScope flag");return yn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Ngt(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 HS(n){return n.parseDiagnostics.length>0}function fd(n,a,...c){let u=Gn(n);if(!HS(u)){let _=fh(u,n.pos);return $a.add(Yc(u,_.start,_.length,a,...c)),!0}return!1}function KS(n,a,c,u,..._){let g=Gn(n);return HS(g)?!1:($a.add(Yc(g,a,c,u,..._)),!0)}function Pgt(n,a,c,...u){let _=Gn(a);return HS(_)?!1:(e_(n,a,c,...u),!0)}function yn(n,a,...c){let u=Gn(n);return HS(u)?!1:($a.add(Pr(n,a,...c)),!0)}function Mgt(n){let a=ir(n)?d6(n):void 0,c=n.typeParameters||a&&Jc(a);if(c){let u=c.pos===c.end?c.pos:Na(Gn(n).text,c.pos);return KS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Lgt(n){let a=n.type||$f(n);if(a)return yn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function kgt(n){if(Xa(n.name)&&ur(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(di(n.parent)){if(Da(n.name)&&n.name.text==="constructor")return yn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(aL(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&&ku(n))return yn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ku(n)&&fbe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(aL(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(R.assertNode(n,_p),n.initializer)return yn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(gp(n.parent)){if(aL(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(R.assertNode(n,_p),n.initializer)return yn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&m4e(n),Vo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||na(n)||O0(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 wgt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Qr(n,2208)?!1:fd(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Ogt(n){for(let a of n.statements)if((Hd(a)||a.kind===243)&&wgt(a))return!0;return!1}function Wgt(n){return!!(n.flags&33554432)&&Ogt(n)}function hy(n){if(n.flags&33554432){if(!Zr(n).hasReportedStatementInAmbientContext&&(Xo(n.parent)||Nv(n.parent)))return Zr(n).hasReportedStatementInAmbientContext=fd(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=Zr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=fd(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function hbe(n){let a=uc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||t_(!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 Fgt(n){return!!(!(Jv(n.parent)||Xv(n.parent)&&Jv(n.parent.parent))&&ce<7&&yn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function zgt(n,a,...c){let u=Gn(n);if(!HS(u)){let _=fh(u,n.pos);return $a.add(Yc(u,Jl(_),0,a,...c)),!0}return!1}function Bgt(){return wc||(wc=[],be.forEach((n,a)=>{bK.test(a)&&wc.push(n)})),wc}function Ggt(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?y4e(n.namedBindings):!1}function y4e(n){return!!gn(n.elements,a=>{if(a.isTypeOnly)return fd(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 Vgt(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,qm);return c?yn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function jgt(n,a){let c=kr(n);if(c&20&&a.flags&1048576)return Vr(a.types,u=>{if(u.flags&524288){let _=c&kr(u);if(_&4)return n.target===u.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Ugt(n,a){if(kr(n)&128&&Fm(a,fv))return Vr(a.types,c=>!fv(c))}function Hgt(n,a){let c=0;if(Ho(n,c).length>0||(c=1,Ho(n,c).length>0))return Vr(a.types,_=>Ho(_,c).length>0)}function Kgt(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(p_(g)||g.flags&1048576){let T=g.flags&1048576?vv(g.types,p_):1;T>=u&&(c=_,u=T)}}}return c}function Jgt(n){if(Rl(n,67108864)){let a=cc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function v4e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=P8e(a,n);if(u)return u;let _=_s(n);if(_){let g=N8e(_,a);if(g){let T=iye(a,mn(g,M=>[()=>sr(M),M.escapedName]),c);if(T!==a)return T}}}}function gbe(n){let a=bT(n);return a||(Xa(n)?Cye(Id(n.expression)):void 0)}function ite(n){return Kn===n||(Kn=n,pn=eE(n)),pn}function JS(n){return en===n||(en=n,Dn=Cy(n)),Dn}function pG(n){let a=JS(n)&7;return a===2||a===4||a===6}}function GGe(e){return!Nv(e)}function IIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function xIe(e){switch(e.parent.kind){case 276:case 281:return Fe(e);default:return Lg(e)}}function RIe(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 VGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ea(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ea(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,Kse,Jse,qse,Xse,N3,EK,P3,M3,DIe,L3,Yse,nf,SK,jGe=bt({"src/compiler/checker.ts"(){"use strict";Qo(),Use(),nT(),bK=/^".+"$/,C3="(anonymous)",Kse=1,Jse=1,qse=1,Xse=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||{}),DIe=EW(IIe,GGe),L3=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Yse=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"})(nf||(nf={})),SK=class j4e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof j4e;)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 Qe(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return So(o)?s=(i||qGe)(o):s=o,R.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),CIe(e,t,r,i,o)}function CIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=UGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function UGe(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 Ft=_I(i,tt,e.getCurrentDirectory(),e.getCanonicalFileName,!0),_t=h.get(Ft);return _t===void 0&&(_t=p.length,p.push(Ft),d.push(tt),h.set(Ft,_t)),l(),_t}function fe(tt,Ft){if(s(),Ft!==null){for(m||(m=[]);m.lengthFt||me===Ft&&ge>_t)}function Ge(tt,Ft,_t,Je,ft,Zt){R.assert(tt>=ce,"generatedLine cannot backtrack"),R.assert(Ft>=0,"generatedCharacter cannot be negative"),R.assert(_t===void 0||_t>=0,"sourceIndex cannot be negative"),R.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),R.assert(ft===void 0||ft>=0,"sourceCharacter cannot be negative"),s(),(he(tt,Ft)||Ce(_t,Je,ft))&&(Le(),ce=tt,z=Ft,re=!1,pe=!1,J=!0),_t!==void 0&&Je!==void 0&&ft!==void 0&&(ee=_t,me=Je,ge=ft,re=!0,Zt!==void 0&&(q=Zt,pe=!0)),l()}function ve(tt,Ft,_t,Je,ft,Zt){R.assert(tt>=ce,"generatedLine cannot backtrack"),R.assert(Ft>=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(ft&&(pn.generatedLine=1024&&Et()}function Le(){if(!(!J||!Ie())){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 Ft=tt&31;tt=tt>>5,tt>0&&(Ft=Ft|32),De($Ge(Ft))}while(tt>0)}}function AK(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Qse(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 YGe(e){return typeof e=="string"||e===null}function Zse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&So(e.sources)&&oo(e.sources,Co)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||So(e.sourcesContent)&&oo(e.sourcesContent,YGe))&&(e.names===void 0||e.names===null||So(e.names)&&oo(e.names,Co))}function IK(e){try{let t=JSON.parse(e);if(Zse(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=QGe(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 PIe(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 ele(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function $Ge(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:R.fail(`${e}: not a base64 value`)}function QGe(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 MIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function LIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function ZGe(e,t){return R.assert(e.sourceIndex===t.sourceIndex),el(e.sourcePosition,t.sourcePosition)}function e9e(e,t){return el(e.generatedPosition,t.generatedPosition)}function t9e(e){return e.sourcePosition}function n9e(e){return e.generatedPosition}function tle(e,t,r){let i=ai(r),o=t.sourceRoot?_o(t.sourceRoot,i):i,s=_o(t.file,i),l=e.getSourceFileLike(s),d=t.sources.map(j=>_o(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?GL(l,j.generatedLine,j.generatedCharacter,!0):-1,Y,B;if(ele(j)){let ce=e.getSourceFileLike(d[j.sourceIndex]);Y=t.sources[j.sourceIndex],B=ce!==void 0?GL(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=Oo(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(!MIe(Y))continue;let B=K[Y.sourceIndex];B||(K[Y.sourceIndex]=B=[]),B.push(Y)}y=K.map(Y=>zC(Y,ZGe,LIe))}return y[j]}function N(){if(m===void 0){let j=[];for(let K of S())j.push(K);m=zC(j,e9e,LIe)}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,t9e,el);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,n9e,el);Y<0&&(Y=~Y);let B=K[Y];return B===void 0||!MIe(B)?j:{fileName:d[B.sourceIndex],pos:B.sourcePosition}}}var RK,k3,w3,O3,r9e=bt({"src/compiler/sourcemap.ts"(){"use strict";Qo(),nT(),RK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,k3=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,w3=/^\s*(\/\/[@#] .*)?$/,O3={getSourcePosition:Zs,getGeneratedPosition:Zs}}});function kd(e){return e=Cl(e),e?rs(e):0}function i9e(e){return!e||!Fg(e)?!1:gt(e.elements,kIe)}function kIe(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 nle(e){return!!nR(e)}function W3(e){if(nR(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!Fg(t))return!1;let r=0;for(let i of t.elements)kIe(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&&Fg(e.importClause.namedBindings)&&i9e(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(yr(w))||(NP(l,kd(D),w),d.set(yr(w),!0),p=Tn(p,w)),E=!0}else N(D);break;case 277:D.isExportEquals&&!m&&(m=D);break;case 243:if(Qr(D,32))for(let w of D.declarationList.declarations)p=wIe(w,d,p,l);break;case 262:if(Qr(D,32))if(Qr(D,2048))h||(NP(l,kd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;d.get(yr(w))||(NP(l,kd(D),w),d.set(yr(w),!0),p=Tn(p,w))}break;case 263:if(Qr(D,32))if(Qr(D,2048))h||(NP(l,kd(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;w&&!d.get(yr(w))&&(NP(l,kd(D),w),d.set(yr(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 ta(D.exportClause,xf).elements)if(!d.get(yr(w.name))){let j=w.propertyName||w.name;D.moduleSpecifier||s.add(j,w);let K=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);K&&NP(l,kd(K),w.name),d.set(yr(w.name),!0),p=Tn(p,w.name)}}}function wIe(e,t,r,i){if(Yo(e.name))for(let o of e.name.elements)Gc(o)||(r=wIe(o,t,r,i));else if(!il(e.name)){let o=yr(e.name);t.get(o)||(t.set(o,!0),r=Tn(r,e.name),zg(e.name)&&NP(i,kd(e),e.name))}return r}function NP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function nS(e){return as(e)||e.kind===9||Wu(e.kind)||Fe(e)}function L_(e){return!Fe(e)&&nS(e)}function PP(e){return e>=65&&e<=79}function MP(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(!Qc(e))return;let t=ms(e.expression);return mT(t)?t:void 0}function OIe(e,t,r){for(let i=t;ia9e(i,t,r))}function o9e(e){return s9e(e)||Al(e)}function B3(e){return jr(e.members,o9e)}function a9e(e,t,r){return Vo(e)&&(!!e.initializer||!t)&&pc(e)===r}function s9e(e){return Vo(e)&&pc(e)}function Sw(e){return e.kind===172&&e.initializer!==void 0}function rle(e){return!na(e)&&(bI(e)||ku(e))&&Ki(e.name)}function ile(e){let t;if(e){let r=e.parameters,i=r.length>0&&k0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lMK(r.privateEnv,t))}function lle(e){return!e.initializer&&Fe(e.name)}function Tw(e){return oo(e,lle)}var f1,LK,d9e=bt({"src/compiler/transformers/utilities.ts"(){"use strict";Qo(),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)||il(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=qk(t),o=Kh(i)&&i!==t?DC.toKey(i):`(generated@${rs(i)})`;return bE(!1,r.prefix,o,r.suffix,DC.toKey)}else{let i=`(auto@${r.id})`;return bE(!1,r.prefix,i,r.suffix,DC.toKey)}}return Ki(t)?yr(t).slice(1):yr(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(Oy(e))for(d=e.right;Xie(e.left)||Jj(e.left);)if(Oy(d))l=e=d,d=e.right;else return R.checkDefined(Qe(d,t,ht));let p,h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>y9e(r.factory,E),createObjectBindingOrAssignmentPattern:E=>b9e(r.factory,E),createArrayBindingOrAssignmentElement:S9e,visitor:t};if(d&&(d=Qe(d,t,ht),R.assert(d),Fe(d)&&cle(e,d.escapedText)||dle(e)?d=m1(h,d,!1,l):o?d=m1(h,d,!0,l):qs(e)&&(l=d)),LP(h,e,d,l,Oy(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){R.assertNode(E,s?Fe:ht);let D=s?s(E,S,A):at(r.factory.createAssignment(R.checkDefined(Qe(E,t,ht)),S),A);D.original=N,m(D)}}function cle(e,t){let r=$v(e);return i2(r)?u9e(r,t):Fe(r)?r.escapedText===t:!1}function u9e(e,t){let r=zR(e);for(let i of r)if(cle(i,t))return!0;return!1}function dle(e){let t=Z4(e);if(t&&Xa(t)&&!E0(t.expression))return!0;let r=$v(e);return!!r&&i2(r)&&p9e(r)}function p9e(e){return!!gn(zR(e),dle)}function rS(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=>g9e(r.factory,S),createObjectBindingOrAssignmentPattern:S=>v9e(r.factory,S),createArrayBindingOrAssignmentElement:S=>E9e(r.factory,S),visitor:t};if(Oi(e)){let S=Kk(e);S&&(Fe(S)&&cle(e,S.escapedText)||dle(e))&&(S=m1(m,R.checkDefined(Qe(S,m.visitor,ht)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(LP(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=Ka(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){R.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 LP(e,t,r,i,o){let s=$v(t);if(!o){let l=Qe(Kk(t),e.visitor,ht);l?r?(r=_9e(e,r,l,i),!L_(l)&&i2(s)&&(r=m1(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}PV(s)?f9e(e,t,s,r,i):MV(s)?m9e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function f9e(e,t,r,i,o){let s=zR(r),l=s.length;if(l!==1){let h=!r2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!($v(m).transformFlags&98304)&&!Xa(y))d=Tn(d,Qe(m,e.visitor,gre));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=h9e(e,i,y);Xa(y)&&(p=Tn(p,E.argumentExpression)),LP(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function m9e(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,Gc)){let h=!r2(t)||l!==0;i=m1(e,i,h,o)}let d,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!FIe(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(Gc(m))continue;if(Q4(m)){if(h===l-1){let y=e.context.factory.createArraySliceCall(i,h);LP(e,m,y,m)}}else{let y=e.context.factory.createElementAccessExpression(i,h);LP(e,m,y,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)LP(e,m,h,m)}function FIe(e){let t=$v(e);if(!t||Gc(t))return!0;let r=Z4(e);if(r&&!T_(r))return!1;let i=Kk(e);return i&&!L_(i)?!1:i2(t)?oo(zR(t),FIe):Fe(t)}function _9e(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 h9e(e,t,r){let{factory:i}=e.context;if(Xa(r)){let o=m1(e,R.checkDefined(Qe(r.expression,e.visitor,ht)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(Qp(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(yr(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 g9e(e,t){return R.assertEachNode(t,dF),e.createArrayBindingPattern(t)}function y9e(e,t){return R.assertEachNode(t,a2),e.createArrayLiteralExpression(mn(t,e.converters.convertToArrayAssignmentElement))}function v9e(e,t){return R.assertEachNode(t,qa),e.createObjectBindingPattern(t)}function b9e(e,t){return R.assertEachNode(t,o2),e.createObjectLiteralExpression(mn(t,e.converters.convertToObjectAssignmentElement))}function E9e(e,t){return e.createBindingElement(void 0,void 0,t)}function S9e(e){return e}var kK,T9e=bt({"src/compiler/transformers/destructuring.ts"(){"use strict";Qo(),kK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kK||{})}});function ule(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 Ld(l).classThis=t,l}function kP(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Qc(r)&&Pc(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,kP)}function ple(e,t,r,i){if(wK(t))return t;let o=ule(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 Ld(l).classThis=r,l}var A9e=bt({"src/compiler/transformers/classThis.ts"(){"use strict";Qo()}});function wP(e,t,r){let i=Cl(Yl(r));return(Sc(i)||Ec(i))&&!i.name&&Qr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function zIe(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 fle(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 Ld(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 Qc(r)&&oP(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=fle(e,r,i);t.name&&Ra(s.body.statements[0],t.name);let l=Kl(t.members,kP)+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),Ld(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=$c(s)?ta(j3(e,s,r),$c):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function I9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=zIe(e,t.name,i),d=YR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function x9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.objectAssignmentInitializer),l=YR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function R9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function D9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(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 C9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.name,t.initializer),l=YR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function N9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=zIe(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 P9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):wP(o,t.left,t.right),l=YR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function M9e(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 I9e(e,t,r,i);case 304:return x9e(e,t,r,i);case 260:return R9e(e,t,r,i);case 169:return D9e(e,t,r,i);case 208:return C9e(e,t,r,i);case 172:return N9e(e,t,r,i);case 226:return P9e(e,t,r,i);case 277:return M9e(e,t,r,i)}}var L9e=bt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";Qo()}});function WK(e,t,r,i,o,s){let l=Qe(t.tag,r,ht);R.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(mle(y,m)),h.push(_le(y,m,i));else{p.push(mle(y,m.head)),h.push(_le(y,m.head,i));for(let S of m.templateSpans)p.push(mle(y,S.literal)),h.push(_le(y,S.literal,i)),d.push(R.checkDefined(Qe(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 mle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function _le(e,t,r){let i=t.rawText;if(i===void 0){R.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=T0(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,k9e=bt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Qo(),FK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(FK||{})}});function hle(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=Md(p),y=!!p.experimentalDecorators,E=p.emitDecoratorMetadata?yle(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?ee($):me($)}function ee($){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 Wg(Pe,e.readEmitHelpers()),N=void 0,Pe}function ge($,Pe){let yt=j,cn=K,vr=Y;q($);let fr=Pe($);return j!==yt&&(K=cn),j=yt,Y=vr,fr}function q($){switch($.kind){case 312:case 269:case 268:case 241:j=$,K=void 0;break;case 263:case 262:if(Qr($,128))break;$.name?H($):R.assert($.kind===263||Qr($,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=Ro($);if(Pe===$||Ml($))return!1;if(!Pe||Pe.kind!==$.kind)return!0;switch($.kind){case 272:if(R.assertNode(Pe,Mc),$.importClause!==Pe.importClause||$.attributes!==Pe.attributes)return!0;break;case 271:if(R.assertNode(Pe,Zc),$.name!==Pe.name||$.isTypeOnly!==Pe.isTypeOnly||$.moduleReference!==Pe.moduleReference&&(Xu($.moduleReference)||Xu(Pe.moduleReference)))return!0;break;case 278:if(R.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 Io($);case 277:return xi($);case 278:return er($);default:R.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||Qr($,32)?ze($):$}function Ge($){return Pe=>ge(Pe,yt=>ve(yt,$))}function ve($,Pe){switch($.kind){case 176:return In($);case 172:return Wt($,Pe);case 177:return za($,Pe);case 178:return vn($,Pe);case 174:return Ao($,Pe);case 175:return Sn($,J,e);case 240:return $;case 181:return;default:return R.failBadSyntaxKind($)}}function Ie($){return Pe=>ge(Pe,yt=>De(yt,$))}function De($,Pe){switch($.kind){case 303:case 304:case 305:return J($);case 177:return za($,Pe);case 178:return vn($,Pe);case 174:return Ao($,Pe);default:return R.failBadSyntaxKind($)}}function Le($){return vd($)?void 0:J($)}function Et($){return Sa($)?void 0:J($)}function be($){if(!vd($)&&!(MI($.kind)&28895)&&!(D&&$.kind===95))return $}function ze($){if(Hi($)&&Qr($,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 Ft($);case 176:case 172:case 174:case 177:case 178:case 175:return R.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 pt($);case 215:return Bt($);case 235:return et($);case 266:return U($);case 243:return Rt($);case 260:return ke($);case 267:return It($);case 271:return Io($);case 285:return hn($);case 286:return dn($);default:return Sn($,J,e)}}function tt($){let Pe=uu(p,"alwaysStrict")&&!(oc($)&&m>=5)&&!Jf($);return t.updateSourceFile($,TK($.statements,pe,e,0,Pe))}function Ft($){return t.updateObjectLiteralExpression($,zn($.properties,Ie($),Ng))}function _t($){let Pe=0;gt(NK($,!0,!0))&&(Pe|=1);let yt=S_($);return yt&&Yl(yt.expression).kind!==106&&(Pe|=64),My(y,$)&&(Pe|=2),hN(y,$)&&(Pe|=4),xn($)?Pe|=8:Po($)?Pe|=32:$l($)&&(Pe|=16),Pe}function Je($){return!!($.transformFlags&8192)}function ft($){return bf($)||gt($.typeParameters)||gt($.heritageClauses,Je)||gt($.members,Je)}function Zt($){let Pe=_t($),yt=h<=1&&!!(Pe&7);if(!ft($)&&!My(y,$)&&!xn($))return t.updateClassDeclaration($,zn($.modifiers,be,Sa),$.name,void 0,zn($.heritageClauses,J,ef),zn($.members,Ge($),Xc));yt&&e.startLexicalEnvironment();let cn=yt||Pe&8,vr=cn?zn($.modifiers,Et,ol):zn($.modifiers,J,ol);Pe&2&&(vr=Kn(vr,$));let zr=cn&&!$.name||Pe&4||Pe&1?$.name??t.getGeneratedNameForNode($):$.name,Di=t.updateClassDeclaration($,vr,zr,void 0,zn($.heritageClauses,J,ef),Dn($)),Cr=Fa($);Pe&1&&(Cr|=64),cr(Di,Cr);let Ko;if(yt){let bl=[Di],jc=Xj(Na(N.text,$.members.end),20),Vs=t.getInternalName($),hc=t.createPartiallyEmittedExpression(Vs);bR(hc,jc.end),cr(hc,3072);let bs=t.createReturnStatement(hc);KN(bs,jc.pos),cr(bs,3840),bl.push(bs),qh(bl,e.endLexicalEnvironment());let Uc=t.createImmediatelyInvokedArrowFunction(bl);Ik(Uc,1);let tp=t.createVariableDeclaration(t.getLocalName($,!1,!1),void 0,void 0,Uc);xr(tp,$);let wc=t.createVariableStatement(void 0,t.createVariableDeclarationList([tp],1));xr(wc,$),ic(wc,$),Ra(wc,kg($)),Jd(wc),Ko=wc}else Ko=Di;if(cn){if(Pe&8)return[Ko,ss($)];if(Pe&32)return[Ko,t.createExportDefault(t.getLocalName($,!1,!0))];if(Pe&16)return[Ko,t.createExternalModuleExport(t.getDeclarationName($,!1,!0))]}return Ko}function en($){let Pe=zn($.modifiers,Et,ol);return My(y,$)&&(Pe=Kn(Pe,$)),t.updateClassExpression($,Pe,$.name,void 0,zn($.heritageClauses,J,ef),Dn($))}function Dn($){let Pe=zn($.members,Ge($),Xc),yt,cn=eg($),vr=cn&&jr(cn.parameters,fr=>dp(fr,cn));if(vr)for(let fr of vr){let zr=t.createPropertyDeclaration(void 0,fr.name,void 0,void 0,void 0);xr(zr,fr),yt=Tn(yt,zr)}return yt?(yt=Hr(yt,Pe),at(t.createNodeArray(yt),$.members)):Pe}function Kn($,Pe){let yt=Yt(Pe,Pe);if(gt(yt)){let cn=[];Hr(cn,AW($,Jk)),Hr(cn,jr($,vd)),Hr(cn,yt),Hr(cn,jr(_ne($,Jk),Sa)),$=at(t.createNodeArray(cn),$)}return $}function pn($,Pe,yt){if(di(yt)&&lj(y,Pe,yt)){let cn=Yt(Pe,yt);if(gt(cn)){let vr=[];Hr(vr,jr($,vd)),Hr(vr,cn),Hr(vr,jr($,Sa)),$=at(t.createNodeArray(vr),$)}}return $}function Yt($,Pe){if(y)return BIe?hi($,Pe):qt($,Pe)}function qt($,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(Eo($)){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(Eo($)){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 Eo($){switch($.kind){case 263:case 231:return eg($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Qn($,Pe){let yt=$.name;return Ki(yt)?t.createIdentifier(""):Xa(yt)?Pe&&!L_(yt.expression)?t.getGeneratedNameForNode(yt):yt.expression:Fe(yt)?t.createStringLiteral(yr(yt)):t.cloneNode(yt)}function Ur($){let Pe=$.name;if(Xa(Pe)&&(!pc($)&&Y||bf($)&&y)){let yt=Qe(Pe.expression,J,ht);R.assert(yt);let cn=gm(yt);if(!L_(cn)){let vr=t.getGeneratedNameForNode(Pe);return l(vr),t.updateComputedPropertyName(Pe,t.createAssignment(vr,yt))}}return R.checkDefined(Qe(Pe,J,rc))}function Er($){if($.token!==119)return Sn($,J,e)}function on($){return t.updateExpressionWithTypeArguments($,R.checkDefined(Qe($.expression,J,Yu)),void 0)}function Ye($){return!Fl($.body)}function Wt($,Pe){let yt=$.flags&33554432||Qr($,64);if(yt&&!(y&&bf($)))return;let cn=di(Pe)?yt?zn($.modifiers,Et,ol):zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return cn=pn(cn,$,Pe),yt?t.updatePropertyDeclaration($,bo(cn,t.createModifiersFromModifierFlags(128)),R.checkDefined(Qe($.name,J,rc)),void 0,void 0,void 0):t.updatePropertyDeclaration($,cn,Ur($),void 0,void 0,Qe($.initializer,J,ht))}function In($){if(Ye($))return t.updateConstructorDeclaration($,void 0,Il($.parameters,J,e),yi($.body,$))}function li($,Pe,yt,cn,vr,fr){let zr=cn[vr],Di=Pe[zr];if(Hr($,zn(Pe,J,Hi,yt,zr-yt)),wT(Di)){let Cr=[];li(Cr,Di.tryBlock.statements,0,cn,vr+1,fr);let Ko=t.createNodeArray(Cr);at(Ko,Di.tryBlock.statements),$.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,J,Y0),Qe(Di.finallyBlock,J,Uo)))}else Hr($,zn(Pe,J,Hi,zr,1)),Hr($,fr);Hr($,zn(Pe,J,Hi,zr+1))}function yi($,Pe){let yt=Pe&&jr(Pe.parameters,Cr=>dp(Cr,Pe));if(!gt(yt))return rf($,J,e);let cn=[];o();let vr=t.copyPrologue($.statements,cn,!1,J),fr=z3($.statements,vr),zr=to(yt,$i);fr.length?li(cn,$.statements,vr,fr,0,zr):(Hr(cn,zr),Hr(cn,zn($.statements,J,Hi,vr))),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=Va(at(t.cloneNode(Pe),Pe),Pe.parent);cr(yt,3168);let cn=Va(at(t.cloneNode(Pe),Pe),Pe.parent);return cr(cn,3072),Jd(Ak(at(xr(t.createExpressionStatement(t.createAssignment(at(t.createPropertyAccessExpression(t.createThis(),yt),$.name),cn)),$),pE($,-1))))}function Ao($,Pe){if(!($.transformFlags&1))return $;if(!Ye($))return;let yt=di(Pe)?zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return yt=pn(yt,$,Pe),t.updateMethodDeclaration($,yt,$.asteriskToken,Ur($),void 0,void 0,Il($.parameters,J,e),void 0,rf($.body,J,e))}function ua($){return!(Fl($.body)&&Qr($,64))}function za($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=di(Pe)?zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return yt=pn(yt,$,Pe),t.updateGetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([]))}function vn($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=di(Pe)?zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return yt=pn(yt,$,Pe),t.updateSetAccessorDeclaration($,yt,Ur($),Il($.parameters,J,e),rf($.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,rf($.body,J,e)||t.createBlock([]));if(xn($)){let yt=[Pe];return Bs(yt,$),yt}return Pe}function Be($){return Ye($)?t.updateFunctionExpression($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,Il($.parameters,J,e),void 0,rf($.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,rf($.body,J,e))}function lt($){if(k0($))return;let Pe=t.updateParameterDeclaration($,zn($.modifiers,yt=>vd(yt)?J(yt):void 0,ol),$.dotDotDotToken,R.checkDefined(Qe($.name,J,sT)),void 0,void 0,Qe($.initializer,J,ht));return Pe!==$&&(ic(Pe,$),at(Pe,R_($)),Ra(Pe,R_($)),cr(Pe.name,64)),Pe}function Rt($){if(xn($)){let Pe=ON($.declarationList);return Pe.length===0?void 0:at(t.createExpressionStatement(t.inlineExpressions(mn(Pe,se))),$)}else return Sn($,J,e)}function se($){let Pe=$.name;return Yo(Pe)?UT($,J,e,0,!1,sd):at(t.createAssignment(mo(Pe),R.checkDefined(Qe($.initializer,J,ht))),$)}function ke($){let Pe=t.updateVariableDeclaration($,R.checkDefined(Qe($.name,J,sT)),void 0,void 0,Qe($.initializer,J,ht));return $.type&&eae(Pe.name,$.type),Pe}function st($){let Pe=Yl($.expression,-7);if(cT(Pe)){let yt=Qe($.expression,J,ht);return R.assert(yt),t.createPartiallyEmittedExpression(yt,$)}return Sn($,J,e)}function G($){let Pe=Qe($.expression,J,ht);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function et($){let Pe=Qe($.expression,J,Yu);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function Tt($){let Pe=Qe($.expression,J,ht);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function He($){return t.updateCallExpression($,R.checkDefined(Qe($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function pt($){return t.updateNewExpression($,R.checkDefined(Qe($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function Bt($){return t.updateTaggedTemplateExpression($,R.checkDefined(Qe($.tag,J,ht)),void 0,R.checkDefined(Qe($.template,J,EI)))}function hn($){return t.updateJsxSelfClosingElement($,R.checkDefined(Qe($.tagName,J,cN)),void 0,R.checkDefined(Qe($.attributes,J,X0)))}function dn($){return t.updateJsxOpeningElement($,R.checkDefined(Qe($.tagName,J,cN)),void 0,R.checkDefined(Qe($.attributes,J,X0)))}function un($){return!I0($)||G0(p)}function U($){if(!un($))return t.createNotEmittedStatement($);let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let vr=la($),fr=ld($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let Ko=t.getLocalName($,!1,!0);Di=t.createAssignment(Ko,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,vr)],void 0,Me($,fr)),void 0,[Di]));return xr(Cr,$),cn&&(hE(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 vr=mn($.members,Nt);return qh(cn,s()),Hr(cn,vr),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),vr=yt.kind===11?cn:t.createAssignment(t.createElementAccessExpression(w,cn),Pe);return at(t.createExpressionStatement(at(vr,$)),$)}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):(Ss(),$.initializer?R.checkDefined(Qe($.initializer,J,ht)):t.createVoidZero())}function ie($){let Pe=Ro($,ql);return Pe?yK(Pe,G0(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 R.assertNode($.name,Fe),$.name.escapedText}function Ne($,Pe){let yt=t.createVariableDeclaration(t.getLocalName(Pe,!1,!0)),cn=j.kind===312?0:1,vr=t.createVariableStatement(zn(Pe.modifiers,be,Sa),t.createVariableDeclarationList([yt],cn));return xr(yt,Pe),hE(yt,void 0),GI(yt,void 0),xr(vr,Pe),H(Pe),ue(Pe)?(Pe.kind===266?Ra(vr.declarationList,Pe):Ra(vr,Pe),ic(vr,Pe),D_(vr,2048),$.push(vr),!0):!1}function It($){if(!ie($))return t.createNotEmittedStatement($);R.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 vr=la($),fr=ld($),zr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(zr,t.createAssignment(zr,t.createObjectLiteralExpression()));if(xn($)){let Ko=t.getLocalName($,!1,!0);Di=t.createAssignment(Ko,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,vr)],void 0,Dt($,fr)),void 0,[Di]));return xr(Cr,$),cn&&(hE(Cr,void 0),GI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Dt($,Pe){let yt=w,cn=D,vr=K;w=Pe,D=$,K=void 0;let fr=[];i();let zr,Di;if($.body)if($.body.kind===268)ge($.body,Ko=>Hr(fr,zn(Ko.statements,he,Hi))),zr=$.body.statements,Di=$.body;else{let Ko=It($.body);Ko&&(So(Ko)?Hr(fr,Ko):fr.push(Ko));let bl=Kt($).body;zr=pE(bl.statements,-1)}qh(fr,s()),w=yt,D=cn,K=vr;let Cr=t.createBlock(at(t.createNodeArray(fr),zr),!0);return at(Cr,Di),(!$.body||$.body.kind!==268)&&cr(Cr,Fa(Cr)|3072),Cr}function Kt($){if($.body.kind===267)return Kt($.body)||$.body}function En($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;let Pe=Qe($.importClause,wn,yh);return Pe||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration($,void 0,Pe,$.moduleSpecifier,$.attributes):void 0}function wn($){R.assert(!$.isTypeOnly);let Pe=de($)?$.name:void 0,yt=Qe($.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||vh($.exportClause))return $;let Pe=p.verbatimModuleSyntax||!!$.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=Qe($.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 ho($){return t.updateNamespaceExport($,R.checkDefined(Qe($.name,J,Fe)))}function Pi($,Pe){return vh($)?ho($):Fr($,Pe)}function Ri($){return!$.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration($))?$:void 0}function Kr($){return de($)||!oc(N)&&d.isTopLevelValueImportEqualsWithEntityName($)}function Io($){if($.isTypeOnly)return;if(sE($)){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=Vk(t,$.moduleReference);return cr(Pe,7168),$l($)||!xn($)?xr(at(t.createVariableStatement(zn($.modifiers,be,Sa),t.createVariableDeclarationList([xr(t.createVariableDeclaration($.name,void 0,void 0,Pe),$)])),$),$):xr(_l($.name,Pe,$),$)}function xn($){return D!==void 0&&Qr($,32)}function ws($){return D===void 0&&Qr($,32)}function $l($){return ws($)&&!Qr($,2048)}function Po($){return ws($)&&Qr($,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 Bs($,Pe){$.push(ss(Pe))}function _l($,Pe,yt){return at(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(w,$,!1,!0),Pe)),yt)}function sd($,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 ld($){return t.getGeneratedNameForNode($)}function Ss(){B&8||(B|=8,e.enableSubstitution(80))}function Ca(){B&2||(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function pl($){return Cl($).kind===267}function Nf($){return Cl($).kind===266}function ac($,Pe,yt){let cn=ce,vr=N;Yi(Pe)&&(N=Pe),B&2&&pl(Pe)&&(ce|=2),B&8&&Nf(Pe)&&(ce|=8),S($,Pe,yt),ce=cn,N=vr}function xl($,Pe){return Pe=A($,Pe),$===1?Mo(Pe):Zu(Pe)?sl(Pe):Pe}function sl($){if(B&2){let Pe=$.name,yt=Gs(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 Mo($){switch($.kind){case 80:return tn($);case 211:return ed($);case 212:return cd($)}return $}function tn($){return Gs($)||$}function Gs($){if(B&ce&&!il($)&&!zg($)){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 ed($){return Cs($)}function cd($){return Cs($)}function Ep($){return $.replace(/\*\//g,"*_/")}function Cs($){let Pe=Ac($);if(Pe!==void 0){Qoe($,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=Cl($,Ms);n4(yt,3,` ${Ep(uc(cn))} `)}return yt}return $}function Ac($){if(!em(p))return wr($)||Xs($)?d.getConstantValue($):void 0}function de($){return p.verbatimModuleSyntax||ir($)||(p.preserveValueImports?d.isValueAliasDeclaration($):d.isReferencedAliasDeclaration($))}}var BIe,w9e=bt({"src/compiler/transformers/ts.ts"(){"use strict";Qo(),BIe=!1}});function gle(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=nP(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=ed;let ce=e.onEmitNode;e.onEmitNode=Gs;let z=!1,ee,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 Wg($,e.readEmitHelpers()),$}function Ge(de){switch(de.kind){case 129:return Wt()?void 0:de;default:return ii(de,Sa)}}function ve(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return R.fail("Use `modifierVisitor` instead.");case 263:return dn(de);case 231:return U(de);case 175:case 172:return R.fail("Use `classElementVisitor` instead.");case 303:return Je(de);case 243:return ft(de);case 260:return Zt(de);case 169:return en(de);case 208:return Dn(de);case 277:return Kn(de);case 81:return Ft(de);case 211:return ua(de);case 212:return za(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,Ie,de);case 176:case 174:case 177:case 178:return Li(de,Ie,de);default:return Ie(de)}}function Ie(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 Bt(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,qt,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 Yt(de);case 240:return de;default:return ol(de)?Ge(de):ve(de)}}function ze(de){switch(de.kind){case 167:return Yt(de);default:return ve(de)}}function tt(de){switch(de.kind){case 172:return Ye(de);case 177:case 178:return be(de);default:R.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Ft(de){return!D||Hi(de.parent)?de:xr(t.createIdentifier(""),de)}function _t(de){let $=la(de.left);if($){let Pe=Qe(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 ft(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)&&(Fu(de)?(ge.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ge))):(ge.push(de),de=t.inlineExpressions(ge)),ge=void 0),de}function Yt(de){let $=Qe(de.expression,ve,ht);return t.updateComputedPropertyName(de,pn($))}function qt(de){return xe?ue(de,xe):Ie(de)}function hi(de){return!!(D||pc(de)&&ym(de)&32)}function uo(de){if(R.assert(!bf(de)),!su(de)||!hi(de))return Sn(de,be,e);let $=la(de.name);if(R.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;let Pe=Eo(de);Pe&&Io().push(t.createAssignment(Pe,t.createFunctionExpression(jr(de.modifiers,yt=>Sa(yt)&&!qI(yt)&&!fae(yt)),de.asteriskToken,Pe,void 0,Il(de.parameters,ve,e),void 0,rf(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 Eo(de){R.assert(Ki(de.name));let $=la(de.name);if(R.assert($,"Undeclared private name for property declaration."),$.kind==="m")return $.methodName;if($.kind==="a"){if(Mv(de))return $.getterName;if(Py(de))return $.setterName}}function Qn(){let de=Ri(),$=de.classThis??de.classConstructor??xe?.name;return R.checkDefined($)}function Ur(de){let $=C_(de),Pe=zy(de),yt=de.name,cn=yt,vr=yt;if(Xa(yt)&&!L_(yt.expression)){let jc=t3(yt);if(jc)cn=t.updateComputedPropertyName(yt,Qe(yt.expression,ve,ht)),vr=t.updateComputedPropertyName(yt,jc.left);else{let Vs=t.createTempVariable(i);Ra(Vs,yt.expression);let hc=Qe(yt.expression,ve,ht),bs=t.createAssignment(Vs,hc);Ra(bs,yt.expression),cn=t.updateComputedPropertyName(yt,bs),vr=t.updateComputedPropertyName(yt,Vs)}}let fr=zn(de.modifiers,Ge,Sa),zr=IH(t,de,fr,de.initializer);xr(zr,de),cr(zr,3072),Ra(zr,Pe);let Di=na(de)?Qn():t.createThis(),Cr=qae(t,de,fr,cn,Di);xr(Cr,de),ic(Cr,$),Ra(Cr,Pe);let Ko=t.createModifiersFromModifierFlags(x_(fr)),bl=Xae(t,de,Ko,vr,Di);return xr(bl,de),cr(bl,3072),Ra(bl,Pe),bw([zr,Cr,bl],tt,Xc)}function Er(de){if(hi(de)){let $=la(de.name);if(R.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&&!na(de)&&J?.data&&J.data.facts&16?t.updatePropertyDeclaration(de,zn(de.modifiers,ve,ol),de.name,void 0,void 0,void 0):(pp(de,ke)&&(de=yp(e,de)),t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),Qe(de.name,ze,rc),void 0,void 0,Qe(de.initializer,ve,ht)))}function on(de){if(N&&!ku(de)){let $=Fr(de.name,!!de.initializer||y);if($&&Io().push(...Yae($)),na(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}),hE(Pe,void 0),GI(Pe,void 0),yt}}return}return t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),Qe(de.name,ze,rc),void 0,void 0,Qe(de.initializer,ve,ht))}function Ye(de){return R.assert(!bf(de),"Decorators should already have been transformed and elided."),su(de)?Er(de):on(de)}function Wt(){return w===-1||w===3&&!!J?.data&&!!(J.data.facts&16)}function In(de){return ku(de)&&(Wt()||pc(de)&&ym(de)&32)?Ur(de):Ye(de)}function li(){return!!fe&&pc(fe)&&Nv(fe)&&ku(Cl(fe))}function yi(de){if(li()){let $=Yl(de);$.kind===110&&pe.add($)}}function $i(de,$){return $=Qe($,ve,ht),yi($),Ao(de,$)}function Ao(de,$){switch(ic($,pE($,-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 R.fail("Access helpers should not be created for untransformed private elements");default:R.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&&Ou(de)&&Fe(de.name)&&OP(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 za(de){if(K&&fe&&Ou(de)&&OP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,Qe(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=ms(de.operand);if(Ox(Pe)){let yt;if(yt=la(Pe.name)){let cn=Qe(Pe.expression,ve,ht);yi(cn);let{readExpression:vr,initializeExpression:fr}=ct(cn),zr=$i(yt,vr),Di=Xv(de)||$?void 0:t.createTempVariable(i);return zr=q4(t,de,zr,i,Di),zr=Tt(yt,fr||vr,zr,64),xr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}else if(K&&fe&&Ou(Pe)&&OP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:vr}=J.data;if(vr&1){let fr=er(Pe);return Xv(de)?t.updatePrefixUnaryExpression(de,fr):t.updatePostfixUnaryExpression(de,fr)}if(yt&&cn){let fr,zr;if(wr(Pe)?Fe(Pe.name)&&(zr=fr=t.createStringLiteralFromNode(Pe.name)):L_(Pe.argumentExpression)?zr=fr=Pe.argumentExpression:(zr=t.createTempVariable(i),fr=t.createAssignment(zr,Qe(Pe.argumentExpression,ve,ht))),fr&&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,fr,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,Qe(de.initializer,De,vf),Qe(de.condition,ve,ht),Qe(de.incrementor,De,ht),Iu(de.statement,ve,e))}function Be(de){return t.updateExpressionStatement(de,Qe(de.expression,De,ht))}function ct(de){let $=qs(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(Qe(yt,ve,ht),de.questionDotToken,"call"),void 0,void 0,[Qe(Pe,ve,ht),...zn(de.arguments,ve,ht)]):t.updateCallExpression(de,t.createPropertyAccessExpression(Qe(yt,ve,ht),"call"),void 0,[Qe(Pe,ve,ht),...zn(de.arguments,ve,ht)])}if(K&&fe&&Ou(de.expression)&&OP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionCallCall(Qe(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(Qe(yt,ve,ht),"bind"),void 0,[Qe(Pe,ve,ht)]),void 0,Qe(de.template,ve,EI))}if(K&&fe&&Ou(de.tag)&&OP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionBindCall(Qe(de.tag,ve,ht),J.data.classConstructor,[]);return xr(Pe,de),at(Pe,de),t.updateTaggedTemplateExpression(de,Pe,void 0,Qe(de.template,ve,EI))}return Sn(de,ve,e)}function se(de){if(J&&re.set(Cl(de),J),D){if(kP(de)){let yt=Qe(de.body.statements[0].expression,ve,ht);return Pc(yt,!0)&&yt.left===yt.right?void 0:yt}if(_1(de))return Qe(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(ms(Pe.expression),de),D_(ms(Pe.expression),4),xr(Pe,de),at(Pe,de),Pe}}function ke(de){if($c(de)&&!de.name){let $=B3(de);return gt($,_1)?!1:(D||!!ym(de))&>($,yt=>Al(yt)||su(yt)||N&&Sw(yt))}return!1}function st(de,$){if(Oy(de)){let Pe=ge;ge=void 0,de=t.updateBinaryExpression(de,Qe(de.left,Et,ht),de.operatorToken,Qe(de.right,ve,ht));let yt=gt(ge)?t.inlineExpressions(TL([...ge,de])):de;return ge=Pe,yt}if(Pc(de)){pp(de,ke)&&(de=yp(e,de),R.assertNode(de,Pc));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&&Ou(de.left)&&OP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:vr}=J.data;if(vr&1)return t.updateBinaryExpression(de,er(de.left),de.operatorToken,Qe(de.right,ve,ht));if(yt&&cn){let fr=Xs(de.left)?Qe(de.left.argumentExpression,ve,ht):Fe(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(fr){let zr=Qe(de.right,ve,ht);if(PP(de.operatorToken.kind)){let Cr=fr;L_(fr)||(Cr=t.createTempVariable(i),fr=t.createAssignment(Cr,fr));let Ko=t.createReflectGetCall(cn,Cr,yt);xr(Ko,de.left),at(Ko,de.left),zr=t.createBinaryExpression(Ko,MP(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,fr,zr,yt),xr(zr,de),at(zr,de),Di&&(zr=t.createComma(zr,Di),at(zr,de)),zr}}}}return B9e(de)?_t(de):Sn(de,ve,e)}function G(de,$){let Pe=$?Ew(de.elements,De):Ew(de.elements,ve,De);return t.updateCommaListExpression(de,Pe)}function et(de,$){let Pe=$?De:ve,yt=Qe(de.expression,Pe,ht);return t.updateParenthesizedExpression(de,yt)}function Tt(de,$,Pe,yt){if($=Qe($,ve,ht),Pe=Qe(Pe,ve,ht),yi($),PP(yt)){let{readExpression:cn,initializeExpression:vr}=ct($);$=vr||cn,Pe=t.createBinaryExpression(Ao(de,cn),MP(yt),Pe)}switch(ic($,pE($,-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 R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(de,"Unknown private element type")}}function He(de){return jr(de.members,rle)}function pt(de){var $;let Pe=0,yt=Cl(de);Sc(yt)&&My(E,yt)&&(Pe|=1),D&&(wK(de)||V3(de))&&(Pe|=2);let cn=!1,vr=!1,fr=!1,zr=!1;for(let Cr of de.members)na(Cr)?((Cr.name&&(Ki(Cr.name)||ku(Cr))&&D||ku(Cr)&&w===-1&&!de.name&&!(($=de.emitNode)!=null&&$.classThis))&&(Pe|=2),(Vo(Cr)||Al(Cr))&&(j&&Cr.transformFlags&16384&&(Pe|=8,Pe&1||(Pe|=2)),K&&Cr.transformFlags&134217728&&(Pe&1||(Pe|=6)))):O0(Cl(Cr))||(ku(Cr)?(zr=!0,fr||(fr=su(Cr))):su(Cr)?(fr=!0,p.getNodeCheckFlags(Cr)&262144&&(Pe|=2)):Vo(Cr)&&(cn=!0,vr||(vr=!!Cr.initializer)));return(A&&cn||S&&vr||D&&fr||D&&zr&&w===-1)&&(Pe|=16),Pe}function Bt(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,Qe(de.expression,ve,ht)),void 0)}return Sn(de,ve,e)}function hn(de,$){var Pe;let yt=xe,cn=ge,vr=J;xe=de,ge=void 0,ho();let fr=ym(de)&32;if(D||fr){let Cr=No(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($p(de.emitNode.assignedName.text,m)){let Ko=t.createIdentifier(de.emitNode.assignedName.text);Kr().data.className=Ko}}}if(D){let Cr=He(de);gt(Cr)&&(Kr().data.weakSetName=sd("instances",Cr[0].name))}let zr=pt(de);zr&&(Ri().facts=zr),zr&8&&gi();let Di=$(de,zr);return Pi(),R.assert(J===vr),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 bs=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(bs),cn=t.createAssignment(bs,t.getInternalName(de))}(yt=de.emitNode)!=null&&yt.classThis&&(Ri().classThis=de.emitNode.classThis);let vr=p.getNodeCheckFlags(de)&262144,fr=Qr(de,32),zr=Qr(de,2048),Di=zn(de.modifiers,Ge,Sa),Cr=zn(de.heritageClauses,Le,ef),{members:Ko,prologue:bl}=ie(de),jc=[];if(cn&&Io().unshift(cn),gt(ge)&&jc.push(t.createExpressionStatement(t.inlineExpressions(ge))),S||D||ym(de)&32){let bs=B3(de);gt(bs)&&It(jc,bs,t.getInternalName(de))}jc.length>0&&fr&&zr&&(Di=zn(Di,bs=>Jk(bs)?void 0:bs,Sa),jc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let Vs=Ri().classConstructor;vr&&Vs&&(Bn(),me[kd(de)]=Vs);let hc=t.updateClassDeclaration(de,Di,de.name,void 0,Cr,Ko);return jc.unshift(hc),bl&&jc.unshift(t.createExpressionStatement(bl)),jc}function U(de){return hn(de,Me)}function Me(de,$){var Pe,yt,cn;let vr=!!($&1),fr=B3(de),zr=p.getNodeCheckFlags(de),Di=zr&262144,Cr;function Ko(){var wc;if(D&&((wc=de.emitNode)!=null&&wc.classThis))return Ri().classConstructor=de.emitNode.classThis;let im=zr&32768,_u=t.createTempVariable(im?d:i,!0);return Ri().classConstructor=t.cloneNode(_u),_u}(Pe=de.emitNode)!=null&&Pe.classThis&&(Ri().classThis=de.emitNode.classThis),$&2&&(Cr??(Cr=Ko()));let bl=zn(de.modifiers,Ge,Sa),jc=zn(de.heritageClauses,Le,ef),{members:Vs,prologue:hc}=ie(de),bs=t.updateClassExpression(de,bl,de.name,void 0,jc,Vs),Uc=[];if(hc&&Uc.push(hc),(D||ym(de)&32)&>(fr,wc=>Al(wc)||su(wc)||N&&Sw(wc))||gt(ge))if(vr)R.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(ge)&&Hr(q,mn(ge,t.createExpressionStatement)),gt(fr)&&It(q,fr,((yt=de.emitNode)==null?void 0:yt.classThis)??t.getInternalName(de)),Cr?Uc.push(t.createAssignment(Cr,bs)):D&&((cn=de.emitNode)!=null&&cn.classThis)?Uc.push(t.createAssignment(de.emitNode.classThis,bs)):Uc.push(bs);else{if(Cr??(Cr=Ko()),Di){Bn();let wc=t.cloneNode(Cr);wc.emitNode.autoGenerate.flags&=-9,me[kd(de)]=wc}Uc.push(t.createAssignment(Cr,bs)),Hr(Uc,ge),Hr(Uc,Kt(fr,Cr)),Uc.push(t.cloneNode(Cr))}else Uc.push(bs);return Uc.length>1&&(D_(bs,131072),Uc.forEach(Jd)),t.inlineExpressions(Uc)}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 fr of de.members)if(su(fr))if(hi(fr))_l(fr,fr.name,xn);else{let zr=Kr();jT(zr,fr.name,{kind:"untransformed"})}if(D&>(He(de))&&H(),Wt()){for(let fr of de.members)if(ku(fr)){let zr=t.getGeneratedPrivateNameForNode(fr.name,void 0,"_accessor_storage");if(D||$&&pc(fr))_l(fr,zr,ws);else{let Di=Kr();jT(Di,zr,{kind:"untransformed"})}}}}let Pe=zn(de.members,be,Xc),yt;gt(Pe,Nl)||(yt=ue(void 0,de));let cn,vr;if(!D&>(ge)){let fr=t.createExpressionStatement(t.inlineExpressions(ge));if(fr.transformFlags&134234112){let Di=t.createTempVariable(i),Cr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([fr]));cn=t.createAssignment(Di,Cr),fr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}let zr=t.createBlock([fr]);vr=t.createClassStaticBlockDeclaration(zr),ge=void 0}if(yt||vr){let fr,zr=Vr(Pe,kP),Di=Vr(Pe,_1);fr=Tn(fr,zr),fr=Tn(fr,Di),fr=Tn(fr,yt),fr=Tn(fr,vr);let Cr=zr||Di?jr(Pe,Ko=>Ko!==zr&&Ko!==Di):Pe;fr=Hr(fr,Cr),Pe=at(t.createNodeArray(fr),de.members)}return{members:Pe,prologue:cn}}function H(){let{weakSetName:de}=Kr().data;R.assert(de,"weakSetName should be set in private identifier environment"),Io().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ue(de,$){if(de=Qe(de,ve,Nl),!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),vr=Ne($,de,yt);return vr?de?(R.assert(cn),t.updateConstructorDeclaration(de,void 0,cn,vr)):Jd(xr(at(t.createConstructorDeclaration(void 0,cn??[],vr),de||$),de)):de}function We(de,$,Pe,yt,cn,vr,fr){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,vr,fr);let Ko=t.createNodeArray(Cr);at(Ko,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,ve,Y0),Qe(Di.finallyBlock,ve,Uo)))}else{for(Hr(de,zn($,ve,Hi,zr,1));Pe<$.length;){let Cr=$[Pe];if(dp(Cl(Cr),fr))Pe++;else break}Hr(de,vr)}Hr(de,zn($,ve,Hi,Pe))}function Ne(de,$,Pe){let yt=NK(de,!1,!1),cn=yt;y||(cn=jr(cn,Vs=>!!Vs.initializer||Ki(Vs.name)||I_(Vs)));let vr=He(de),fr=gt(cn)||gt(vr);if(!$&&!fr)return rf(void 0,ve,e);l();let zr=!$&&Pe,Di=0,Cr=[],Ko=[],bl=t.createThis();if(xi(Ko,vr,bl),$){let Vs=jr(yt,bs=>dp(Cl(bs),$)),hc=jr(cn,bs=>!dp(Cl(bs),$));It(Ko,Vs,bl),It(Ko,hc,bl)}else It(Ko,cn,bl);if($?.body){Di=t.copyPrologue($.body.statements,Cr,!1,ve);let Vs=z3($.body.statements,Di);if(Vs.length)We(Cr,$.body.statements,Di,Vs,0,Ko,$);else{for(;Di<$.body.statements.length;){let hc=$.body.statements[Di];if(dp(Cl(hc),$))Di++;else break}Hr(Cr,Ko),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,Ko);if(Cr=t.mergeLexicalEnvironment(Cr,o()),Cr.length===0&&!$)return;let jc=$?.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),jc),$?$.body:void 0)}function It(de,$,Pe){for(let yt of $){if(na(yt)&&!D)continue;let cn=Dt(yt,Pe);cn&&de.push(cn)}}function Dt(de,$){let Pe=Al(de)?Li(de,se,de):En(de,$);if(!Pe)return;let yt=t.createExpressionStatement(Pe);xr(yt,de),D_(yt,Fa(de)&3072),ic(yt,de);let cn=Cl(de);return To(cn)?(Ra(yt,cn),Ak(yt)):Ra(yt,R_(de)),hE(Pe,void 0),GI(Pe,void 0),I_(cn)&&D_(yt,3072),yt}function Kt(de,$){let Pe=[];for(let yt of de){let cn=Al(yt)?Li(yt,se,yt):Li(yt,()=>En(yt,$),void 0);cn&&(Jd(cn),xr(cn,yt),D_(cn,Fa(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,zy(de.name)),re.set(Cl(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):Xa(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 fr=la(yt);if(fr)return fr.kind==="f"?fr.isStatic?O9e(t,fr.variableName,Qe(de.initializer,ve,ht)):W9e(t,$,Qe(de.initializer,ve,ht),fr.brandCheckIdentifier):void 0;R.fail("Undeclared private name for property declaration.")}if((Ki(yt)||pc(de))&&!de.initializer)return;let cn=Cl(de);if(Qr(cn,64))return;let vr=Qe(de.initializer,ve,ht);if(dp(cn,cn.parent)&&Fe(yt)){let fr=t.cloneNode(yt);vr?(Fu(vr)&&jk(vr.expression)&&oP(vr.expression.left,"___runInitializers")&&e1(vr.expression.right)&&mp(vr.expression.right.expression)&&(vr=vr.expression.left),vr=t.inlineExpressions([vr,fr])):vr=fr,cr(yt,3168),Ra(fr,cn.name),cr(fr,3072)}else vr??(vr=t.createVoidZero());if(Pe||Ki(yt)){let fr=BT(t,$,yt,yt);return D_(fr,1024),t.createAssignment(fr,vr)}else{let fr=Xa(yt)?yt.expression:Fe(yt)?t.createStringLiteral(Vi(yt.escapedText)):yt,zr=t.createPropertyDescriptor({value:vr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall($,fr,zr)}}function Bn(){ee&1||(ee|=1,e.enableSubstitution(80),me=[])}function gi(){ee&2||(ee|=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;R.assert(yt,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(F9e(t,Pe,yt)))}function er(de){return wr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),Qe(de.argumentExpression,ve,ht))}function Fr(de,$){if(Xa(de)){let Pe=t3(de),yt=Qe(de.expression,ve,ht),cn=gm(yt),vr=L_(cn);if(!(!!Pe||Pc(cn)&&il(cn.left))&&!vr&&$){let zr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?d(zr):i(zr),t.createAssignment(zr,yt)}return vr||Fe(cn)?void 0:yt}}function ho(){J={previous:J,data:void 0}}function Pi(){J=J?.previous}function Ri(){return R.assert(J),J.data??(J.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Kr(){return R.assert(J),J.privateEnv??(J.privateEnv=ale({className:void 0,weakSetName:void 0}))}function Io(){return ge??(ge=[])}function xn(de,$,Pe,yt,cn,vr,fr){ku(de)?Bs(de,$,Pe,yt,cn,vr,fr):Vo(de)?ws(de,$,Pe,yt,cn,vr,fr):Ul(de)?$l(de,$,Pe,yt,cn,vr,fr):Zp(de)?Po(de,$,Pe,yt,cn,vr,fr):hp(de)&&ss(de,$,Pe,yt,cn,vr,fr)}function ws(de,$,Pe,yt,cn,vr,fr){if(cn){let zr=R.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:vr})}else{let zr=mo($);jT(yt,$,{kind:"f",isStatic:!1,brandCheckIdentifier:zr,isValid:vr}),Io().push(t.createAssignment(zr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function $l(de,$,Pe,yt,cn,vr,fr){let zr=mo($),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");jT(yt,$,{kind:"m",methodName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:vr})}function Po(de,$,Pe,yt,cn,vr,fr){let zr=mo($,"_get"),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");fr?.kind==="a"&&fr.isStatic===cn&&!fr.getterName?fr.getterName=zr:jT(yt,$,{kind:"a",getterName:zr,setterName:void 0,brandCheckIdentifier:Di,isStatic:cn,isValid:vr})}function ss(de,$,Pe,yt,cn,vr,fr){let zr=mo($,"_set"),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");fr?.kind==="a"&&fr.isStatic===cn&&!fr.setterName?fr.setterName=zr:jT(yt,$,{kind:"a",getterName:void 0,setterName:zr,brandCheckIdentifier:Di,isStatic:cn,isValid:vr})}function Bs(de,$,Pe,yt,cn,vr,fr){let zr=mo($,"_get"),Di=mo($,"_set"),Cr=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.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:vr})}function _l(de,$,Pe){let yt=Ri(),cn=Kr(),vr=MK(cn,$),fr=pc(de),zr=!z9e($)&&vr===void 0;Pe(de,$,yt,cn,fr,zr,vr)}function sd(de,$,Pe){let{className:yt}=Kr().data,cn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",vr=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(vr):i(vr),vr}function mo(de,$){let Pe=fN(de);return sd(Pe?.substring(1)??de,de,$)}function la(de){let $=sle(J,de);return $?.kind==="untransformed"?void 0:$}function ld(de){let $=t.getGeneratedNameForNode(de),Pe=la(de.name);if(!Pe)return Sn(de,ve,e);let yt=de.expression;return(A2(de)||Ou(de)||!nS(de.expression))&&(yt=t.createTempVariable(i,!0),Io().push(t.createBinaryExpression(yt,64,Qe(de.expression,ve,ht)))),t.createAssignmentTargetWrapper($,Tt(Pe,yt,$,64))}function Ss(de){if(Ma(de)||fu(de))return tn(de);if(Ox(de))return ld(de);if(K&&fe&&Ou(de)&&OP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return er(de);if($&&Pe){let cn=Xs(de)?Qe(de.argumentExpression,ve,ht):Fe(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(cn){let vr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(vr,t.createReflectSetCall(Pe,cn,vr,$))}}}return Sn(de,ve,e)}function Ca(de){if(pp(de,ke)&&(de=yp(e,de)),Pc(de,!0)){let $=Ss(de.left),Pe=Qe(de.right,ve,ht);return t.updateBinaryExpression(de,$,de.operatorToken,Pe)}return Ss(de)}function pl(de){if(Yu(de.expression)){let $=Ss(de.expression);return t.updateSpreadElement(de,$)}return Sn(de,ve,e)}function Nf(de){if(a2(de)){if(qm(de))return pl(de);if(!Gc(de))return Ca(de)}return Sn(de,ve,e)}function ac(de){let $=Qe(de.name,ve,rc);if(Pc(de.initializer,!0)){let Pe=Ca(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}if(Yu(de.initializer)){let Pe=Ss(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 sl(de){if(Yu(de.expression)){let $=Ss(de.expression);return t.updateSpreadAssignment(de,$)}return Sn(de,ve,e)}function Mo(de){return R.assertNode(de,o2),Vy(de)?sl(de):Zu(de)?xl(de):mc(de)?ac(de):Sn(de,ve,e)}function tn(de){return fu(de)?t.updateArrayLiteralExpression(de,zn(de.elements,Nf,ht)):t.updateObjectLiteralExpression(de,zn(de.properties,Mo,Ng))}function Gs(de,$,Pe){let yt=Cl($),cn=re.get(yt);if(cn){let vr=J,fr=he;J=cn,he=ne,ne=!Al(yt)||!(ym(yt)&32),ce(de,$,Pe),ne=he,he=fr,J=vr;return}switch($.kind){case 218:if(zs(yt)||Fa($)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let vr=J,fr=he;J=void 0,he=ne,ne=!1,ce(de,$,Pe),ne=he,he=fr,J=vr;return}case 167:{let vr=J,fr=ne;J=J?.previous,ne=he,ce(de,$,Pe),ne=fr,J=vr;return}}ce(de,$,Pe)}function ed(de,$){return $=B(de,$),de===1?cd($):$}function cd(de){switch(de.kind){case 80:return Cs(de);case 110:return Ep(de)}return de}function Ep(de){if(ee&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 Cs(de){return Ac(de)||de}function Ac(de){if(ee&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 O9e(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function W9e(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function F9e(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function z9e(e){return!aT(e)&&e.escapedText==="#constructor"}function B9e(e){return Ki(e.left)&&e.operatorToken.kind===103}function G9e(e){return Vo(e)&&pc(e)}function OP(e){return Al(e)||G9e(e)}var V9e=bt({"src/compiler/transformers/classFields.ts"(){"use strict";Qo()}});function yle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=ns(o),l=uu(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&&Lie(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=di(ge)?eg(ge):Xo(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 R.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=Va(at(Eh.cloneNode(ge),ge),ge.parent);return q.original=void 0,Va(q,Ro(d)),q;case 166:return z(ge)}}function z(ge){return t.createPropertyAccessExpression(ce(ge.left),ge.right)}function ee(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 sJk(Wt)||vd(Wt)?void 0:Wt,ol),Kn=R_(Je),pn=Le(Je),Yt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),qt=zn(Je.heritageClauses,y,ef),hi=zn(Je.members,y,Xc),uo=[];({members:hi,decorationStatements:uo}=D(Je,hi));let Li=l>=9&&!!pn&>(hi,Wt=>Vo(Wt)&&Qr(Wt,256)||Al(Wt));Li&&(hi=at(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(pn,t.createThis()))])),...hi]),hi));let Eo=t.createClassExpression(Dn,ft&&il(ft)?void 0:ft,void 0,qt,hi);xr(Eo,Je),at(Eo,Kn);let Qn=pn&&!Li?t.createAssignment(pn,Eo):Eo,Ur=t.createVariableDeclaration(Yt,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 Wt=t.createExportDefault(Yt);Ye.push(Wt)}else{let Wt=t.createExternalModuleExport(t.getDeclarationName(Je));Ye.push(Wt)}return Ye}function K(Je){return t.updateClassExpression(Je,zn(Je.modifiers,m,Sa),Je.name,void 0,zn(Je.heritageClauses,y,ef),zn(Je.members,y,Xc))}function Y(Je){return t.updateConstructorDeclaration(Je,zn(Je.modifiers,m,Sa),zn(Je.parameters,y,To),Qe(Je.body,y,Uo))}function B(Je,ft){return Je!==ft&&(ic(Je,ft),Ra(Je,R_(ft))),Je}function ce(Je){return B(t.updateMethodDeclaration(Je,zn(Je.modifiers,m,Sa),Je.asteriskToken,R.checkDefined(Qe(Je.name,y,rc)),void 0,void 0,zn(Je.parameters,y,To),void 0,Qe(Je.body,y,Uo)),Je)}function z(Je){return B(t.updateGetAccessorDeclaration(Je,zn(Je.modifiers,m,Sa),R.checkDefined(Qe(Je.name,y,rc)),zn(Je.parameters,y,To),void 0,Qe(Je.body,y,Uo)),Je)}function ee(Je){return B(t.updateSetAccessorDeclaration(Je,zn(Je.modifiers,m,Sa),R.checkDefined(Qe(Je.name,y,rc)),zn(Je.parameters,y,To),Qe(Je.body,y,Uo)),Je)}function me(Je){if(!(Je.flags&33554432||Qr(Je,128)))return B(t.updatePropertyDeclaration(Je,zn(Je.modifiers,m,Sa),R.checkDefined(Qe(Je.name,y,rc)),void 0,void 0,Qe(Je.initializer,y,ht)),Je)}function ge(Je){let ft=t.updateParameterDeclaration(Je,Jae(t,Je.modifiers),Je.dotDotDotToken,R.checkDefined(Qe(Je.name,y,sT)),void 0,void 0,Qe(Je.initializer,y,ht));return ft!==Je&&(ic(ft,Je),at(ft,R_(Je)),Ra(ft,R_(Je)),cr(ft.name,64)),ft}function q(Je){return oP(Je.expression,"___metadata")}function J(Je){if(!Je)return;let{false:ft,true:Zt}=hW(Je.decorators,q),en=[];return Hr(en,mn(ft,Ge)),Hr(en,va(Je.parameters,ve)),Hr(en,mn(Zt,Ge)),en}function re(Je,ft,Zt){Hr(Je,mn(fe(ft,Zt),en=>t.createExpressionStatement(en)))}function pe(Je,ft,Zt){return x2(!0,Je,Zt)&&ft===na(Je)}function xe(Je,ft){return jr(Je.members,Zt=>pe(Zt,ft,Je))}function fe(Je,ft){let Zt=xe(Je,ft),en;for(let Dn of Zt)en=Tn(en,ne(Je,Dn));return en}function ne(Je,ft){let Zt=G3(ft,Je,!0),en=J(Zt);if(!en)return;let Dn=be(Je,ft),Kn=Ie(ft,!Qr(ft,128)),pn=l>0?Vo(ft)&&!I_(ft)?t.createVoidZero():t.createNull():void 0,Yt=r().createDecorateHelper(en,Dn,Kn,pn);return cr(Yt,3072),Ra(Yt,R_(ft)),Yt}function he(Je,ft){let Zt=Ce(ft);Zt&&Je.push(xr(t.createExpressionStatement(Zt),ft))}function Ce(Je){let ft=PK(Je),Zt=J(ft);if(!Zt)return;let en=p&&p[kd(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 cr(pn,3072),Ra(pn,R_(Je)),pn}function Ge(Je){return R.checkDefined(Qe(Je.expression,y,ht))}function ve(Je,ft){let Zt;if(Je){Zt=[];for(let en of Je){let Dn=r().createParamHelper(Ge(en),ft);at(Dn,en.expression),cr(Dn,3072),Zt.push(Dn)}}return Zt}function Ie(Je,ft){let Zt=Je.name;return Ki(Zt)?t.createIdentifier(""):Xa(Zt)?ft&&!L_(Zt.expression)?t.getGeneratedNameForNode(Zt):Zt.expression:Fe(Zt)?t.createStringLiteral(yr(Zt)):t.cloneNode(Zt)}function De(){p||(e.enableSubstitution(80),p=[])}function Le(Je){if(o.getNodeCheckFlags(Je)&262144){De();let ft=t.createUniqueName(Je.name&&!il(Je.name)?yr(Je.name):"default");return p[kd(Je)]=ft,i(ft),ft}}function Et(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function be(Je,ft){return na(ft)?t.getDeclarationName(Je):Et(Je)}function ze(Je,ft){return ft=d(Je,ft),Je===1?tt(ft):ft}function tt(Je){switch(Je.kind){case 80:return Ft(Je)}return Je}function Ft(Je){return _t(Je)??Je}function _t(Je){if(p&&o.getNodeCheckFlags(Je)&536870912){let ft=o.getReferencedValueDeclaration(Je);if(ft){let Zt=p[ft.id];if(Zt){let en=t.cloneNode(Zt);return Ra(en,Je),ic(en,Je),en}}}}}var U9e=bt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Qo()}});function ble(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,ee,e);return Wg(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(){R.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;R.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)||Vo(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;R.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),R.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(){R.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(){R.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"?(R.assert(!y),d.depth++):(d={kind:"other",next:d,depth:0,savedPendingExpressions:y},y=void 0,A())}function ce(){R.assert(d?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${d?.kind}' instead.`),d.depth>0?(R.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 ee(k){if(!z(k))return k;switch(k.kind){case 170:return R.fail("Use `modifierVisitor` instead.");case 263:return Ce(k);case 231:return Ge(k);case 176:case 172:case 175:return R.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 Wt(k);case 277:return Be(k);case 110:return Je(k);case 248:return qt(k);case 244:return hi(k);case 361:return Eo(k,!1);case 217:return ct(k,!1);case 360:return lt(k,!1);case 213:return ft(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 ee(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 Ft(k);default:return ee(k)}}function J(k){switch(k.kind){case 224:case 225:return Li(k,!0);case 226:return uo(k,!0);case 361:return Eo(k,!0);case 217:return ct(k,!0);default:return ee(k)}}function re(k){let ie=k.name&&Fe(k.name)&&!il(k.name)?yr(k.name):k.name&&Ki(k.name)&&!il(k.name)?yr(k.name).slice(1):k.name&&Da(k.name)&&$p(k.name.text,99)?k.name.text:di(k)?"class":"member";return Mv(k)&&(ie=`get_${ie}`),Py(k)&&(ie=`set_${ie}`),k.name&&Ki(k.name)&&(ie=`private_${ie}`),na(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,Kt,En;if(Yx(!1,k)){let wn=gt(k.members,Bn=>(su(Bn)||ku(Bn))&&pc(Bn));Dt=t.createUniqueName("_classThis",wn?24:48)}for(let wn of k.members){if(bI(wn)&&x2(!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??kg(k)),Kt??(Kt=[]),Kt.push(Bn)}}else{if(!H){H=t.createUniqueName("_instanceExtraInitializers",48);let Bn=r().createRunInitializersHelper(t.createThis(),H);Ra(Bn,k.name??kg(k)),En??(En=[]),En.push(Bn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Al(wn)?_1(wn)||(We=!0):Vo(wn)&&(pc(wn)?We||(We=!!wn.initializer||bf(wn)):Ne||(Ne=!QV(wn))),(su(wn)||ku(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:Kt,pendingInstanceInitializers:En}}function ne(k){i(),!OK(k)&&My(!1,k)&&(k=j3(e,k,t.createStringLiteral("")));let ie=t.getLocalName(k,!1,!1,!0),H=fe(k),ue=[],We,Ne,It,Dt,Kt=!1,En=st(PK(k));En&&(H.classDecoratorsName=t.createUniqueName("_classDecorators",48),H.classDescriptorName=t.createUniqueName("_classDescriptor",48),H.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),R.assertIsDefined(H.classThis),ue.push(xe(H.classDecoratorsName,t.createArrayLiteralExpression(En)),xe(H.classDescriptorName),xe(H.classExtraInitializersName,t.createArrayLiteralExpression()),xe(H.classThis)),H.hasStaticPrivateClassElements&&(Kt=!0,E=!0));let wn=K2(k.heritageClauses,96),Bn=wn&&Jc(wn.types),gi=Bn&&Qe(Bn.expression,ee,ht);if(gi){H.classSuper=t.createUniqueName("_classSuper",48);let Kr=Yl(gi),Io=$c(Kr)&&!Kr.name||Ls(Kr)&&!Kr.name||zs(Kr)?t.createComma(t.createNumericLiteral(0),gi):gi;ue.push(xe(H.classSuper,Io));let xn=t.updateExpressionWithTypeArguments(Bn,H.classSuper,void 0),ws=t.updateHeritageClause(wn,[xn]);Dt=t.createNodeArray([ws])}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=>Nl(Kr)?Kr:q(Kr),Xc),er=zn(er,Kr=>Nl(Kr)?q(Kr):Kr,Xc),y){let Kr;for(let Io of y){Io=Qe(Io,function ws($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,ws,e)}},ht);let xn=t.createExpressionStatement(Io);We=Tn(We,xn)}y=void 0}if(D(),gt(H.pendingInstanceInitializers)&&!eg(k)){let Kr=ve(k,H);if(Kr){let Io=S_(k),xn=!!(Io&&Yl(Io.expression).kind!==106),ws=[];if(xn){let Po=t.createSpreadElement(t.createIdentifier("arguments")),ss=t.createCallExpression(t.createSuper(),void 0,[Po]);ws.push(t.createExpressionStatement(ss))}Hr(ws,Kr);let $l=t.createBlock(ws,!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&&zc(H.memberInfos,(Kr,Io)=>{na(Io)&&(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&&zc(H.memberInfos,(Kr,Io)=>{na(Io)||(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),Io=t.createObjectLiteralExpression([Kr]),xn=t.createAssignment(H.classDescriptorName,Io),ws=t.createPropertyAccessExpression(xi,"name"),$l=r().createESDecorateHelper(t.createNull(),xn,H.classDecoratorsName,{kind:"class",name:ws,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Po=t.createExpressionStatement($l);Ra(Po,kg(k)),We.push(Po);let ss=t.createPropertyAccessExpression(H.classDescriptorName,"value"),Bs=t.createAssignment(H.classThis,ss),_l=t.createAssignment(ie,Bs);We.push(t.createExpressionStatement(_l))}if(We.push(Me(xi,H.metadataReference)),gt(H.pendingStaticInitializers)){for(let Kr of H.pendingStaticInitializers){let Io=t.createExpressionStatement(Kr);Ra(Io,zy(Kr)),Ne=Tn(Ne,Io)}H.pendingStaticInitializers=void 0}if(H.classExtraInitializersName){let Kr=r().createRunInitializersHelper(xi,H.classExtraInitializersName),Io=t.createExpressionStatement(Kr);Ra(Io,k.name??kg(k)),Ne=Tn(Ne,Io)}We&&Ne&&!H.hasStaticInitializers&&(Hr(We,Ne),Ne=void 0);let Fr=We&&t.createClassStaticBlockDeclaration(t.createBlock(We,!0));Fr&&Kt&&Ik(Fr,32);let ho=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));if(Fr||It||ho){let Kr=[],Io=er.findIndex(_1);Fr?(Hr(Kr,er,0,Io+1),Kr.push(Fr),Hr(Kr,er,Io+1)):Hr(Kr,er),It&&Kr.push(It),ho&&Kr.push(ho),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=ple(t,Ri,H.classThis));let Kr=t.createVariableDeclaration(ie,void 0,void 0,Ri),Io=t.createVariableDeclarationList([Kr]),xn=H.classThis?t.createAssignment(ie,H.classThis):ie;ue.push(t.createVariableStatement(void 0,Io),t.createReturnStatement(xn))}else Ri=t.createClassExpression(void 0,k.name,void 0,Dt,er),ue.push(t.createReturnStatement(Ri));if(Kt){BI(Ri,32);for(let Kr of Ri.members)(su(Kr)||ku(Kr))&&pc(Kr)&&BI(Kr,32)}return xr(Ri,k),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,Pi))}function he(k){return My(!1,k)||hN(!1,k)}function Ce(k){if(he(k)){let ie=[],H=Cl(k,di)??k,ue=H.name?t.createStringLiteralFromNode(H.name):t.createStringLiteral("default"),We=Qr(k,32),Ne=Qr(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 Kt=t.createVariableDeclarationList([Dt],1),En=t.createVariableStatement(void 0,Kt);ie.push(En);let wn=t.createExportDefault(t.getDeclarationName(k));xr(wn,k),ic(wn,C_(k)),Ra(wn,kg(k)),ie.push(wn)}else{let Dt=t.createExportDefault(It);xr(Dt,k),ic(Dt,C_(k)),Ra(Dt,kg(k)),ie.push(Dt)}}else{R.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,Kt=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(Kt,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 ih(ie)}else{let ie=zn(k.modifiers,ge,Sa),H=zn(k.heritageClauses,ee,ef);N(void 0);let ue=zn(k.members,q,Xc);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,ee,ef);N(void 0);let ue=zn(k.members,q,Xc);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 Ie(k,ie,H,ue,We,Ne){let It=ue[We],Dt=ie[It];if(Hr(k,zn(ie,ee,Hi,H,It-H)),wT(Dt)){let Kt=[];Ie(Kt,Dt.tryBlock.statements,0,ue,We+1,Ne);let En=t.createNodeArray(Kt);at(En,Dt.tryBlock.statements),k.push(t.updateTryStatement(Dt,t.updateBlock(Dt.tryBlock,Kt),Qe(Dt.catchClause,ee,Y0),Qe(Dt.finallyBlock,ee,Uo)))}else Hr(k,zn(ie,ee,Hi,It,1)),Hr(k,Ne);Hr(k,zn(ie,ee,Hi,It+1))}function De(k){w(k);let ie=zn(k.modifiers,ge,Sa),H=zn(k.parameters,ee,To),ue;if(k.body&&p){let We=ve(p.class,p);if(We){let Ne=[],It=t.copyPrologue(k.body.statements,Ne,!1,ee),Dt=z3(k.body.statements,It);Dt.length>0?Ie(Ne,k.body.statements,It,Dt,0,We):(Hr(Ne,We),Hr(Ne,zn(k.body.statements,ee,Hi))),ue=t.createBlock(Ne,!0),xr(ue,k.body),at(ue,k.body)}}return ue??(ue=Qe(k.body,ee,Uo)),j(),t.updateConstructorDeclaration(k,ie,H,ue)}function Le(k,ie){return k!==ie&&(ic(k,ie),Ra(k,kg(ie))),k}function Et(k,ie,H){let ue,We,Ne,It,Dt,Kt;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:Kt,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)||ku(k)?na(k)?ie.staticNonFieldDecorationStatements??(ie.staticNonFieldDecorationStatements=[]):ie.nonStaticNonFieldDecorationStatements??(ie.nonStaticNonFieldDecorationStatements=[]):Vo(k)&&!ku(k)?na(k)?ie.staticFieldDecorationStatements??(ie.staticFieldDecorationStatements=[]):ie.nonStaticFieldDecorationStatements??(ie.nonStaticFieldDecorationStatements=[]):R.fail(),ho=Zp(k)?"getter":hp(k)?"setter":Ul(k)?"method":ku(k)?"accessor":Vo(k)?"field":R.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:ho,name:Pi,static:na(k),private:Ki(k.name),access:{get:Vo(k)||Zp(k)||Ul(k),set:Vo(k)||hp(k)},metadata:ie.metadataReference};if(bI(k)){let Kr=na(k)?ie.staticMethodExtraInitializersName:ie.instanceMethodExtraInitializersName;R.assertIsDefined(Kr);let Io;su(k)&&H&&(Io=H(k,zn(wn,$l=>ii($l,aP),Sa)),er.memberDescriptorName=Kt=pe(k,"descriptor"),Io=t.createAssignment(Kt,Io));let xn=r().createESDecorateHelper(t.createThis(),Io??t.createNull(),Bn,Ri,t.createNull(),Kr),ws=t.createExpressionStatement(xn);Ra(ws,kg(k)),Fr.push(ws)}else if(Vo(k)){Ne=er.memberInitializersName??(er.memberInitializersName=pe(k,"initializers")),It=er.memberExtraInitializersName??(er.memberExtraInitializersName=pe(k,"extraInitializers")),na(k)&&(Dt=ie.classThis);let Kr;su(k)&&I_(k)&&H&&(Kr=H(k,void 0),er.memberDescriptorName=Kt=pe(k,"descriptor"),Kr=t.createAssignment(Kt,Kr));let Io=r().createESDecorateHelper(ku(k)?t.createThis():t.createNull(),Kr??t.createNull(),Bn,Ri,Ne,It),xn=t.createExpressionStatement(Io);Ra(xn,kg(k)),Fr.push(xn)}}return We===void 0&&(K(),We=Ur(k.name),Y()),!gt(wn)&&(Ul(k)||Vo(k))&&cr(We,1024),{modifiers:wn,referencedName:ue,name:We,initializersName:Ne,extraInitializersName:It,descriptorName:Kt,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,ee,To),Ne=Qe(k.body,ee,Uo);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,ee,To),Ne=Qe(k.body,ee,Uo);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,pt);if(ue)return j(),Le(un(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Uo);return j(),Le(t.updateSetAccessorDeclaration(k,ie,H,We,Ne),k)}}function Ft(k){w(k);let ie;if(_1(k))ie=Sn(k,ee,e);else if(kP(k)){let H=h;h=void 0,ie=Sn(k,ee,e),h=H}else if(k=Sn(k,ee,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,zy(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,Yt(k.initializer))),w(k),R.assert(!QV(k),"Not yet implemented.");let{modifiers:ie,name:H,initializersName:ue,extraInitializersName:We,descriptorName:Ne,thisArg:It}=Et(k,p,I_(k)?Bt:void 0);i();let Dt=Qe(k.initializer,ee,ht);ue&&(Dt=r().createRunInitializersHelper(It??t.createThis(),ue,Dt??t.createVoidZero())),na(k)&&p&&Dt&&(p.hasStaticInitializers=!0);let Kt=o();if(gt(Kt)&&(Dt=t.createImmediatelyInvokedArrowFunction([...Kt,t.createReturnStatement(Dt)])),p&&(na(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=zy(k),Bn=k.name,gi=Bn,xi=Bn;if(Xa(Bn)&&!L_(Bn.expression)){let Ri=t3(Bn);if(Ri)gi=t.updateComputedPropertyName(Bn,Qe(Bn.expression,ee,ht)),xi=t.updateComputedPropertyName(Bn,Ri.left);else{let Kr=t.createTempVariable(s);Ra(Kr,Bn.expression);let Io=Qe(Bn.expression,ee,ht),xn=t.createAssignment(Kr,Io);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),cr(Fr,3072),Ra(Fr,wn),Ra(Fr.name,k.name);let ho=dn(er,gi,Ne);xr(ho,k),ic(ho,En),Ra(ho,wn);let Pi=un(er,xi,Ne);return xr(Pi,k),cr(Pi,3072),Ra(Pi,wn),[Fr,ho,Pi]}return Le(t.updatePropertyDeclaration(k,ie,H,void 0,void 0,Dt),k)}function Je(k){return h??k}function ft(k){if(Ou(k.expression)&&h){let ie=Qe(k.expression,ee,ht),H=zn(k.arguments,ee,ht),ue=t.createFunctionCallCall(ie,h,H);return xr(ue,k),at(ue,k),ue}return Sn(k,ee,e)}function Zt(k){if(Ou(k.tag)&&h){let ie=Qe(k.tag,ee,ht),H=t.createFunctionBindCall(ie,h,[]);xr(H,k),at(H,k);let ue=Qe(k.template,ee,EI);return t.updateTaggedTemplateExpression(k,H,void 0,ue)}return Sn(k,ee,e)}function en(k){if(Ou(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,ee,e)}function Dn(k){if(Ou(k)&&h&&m){let ie=Qe(k.argumentExpression,ee,ht),H=t.createReflectGetCall(m,ie,h);return xr(H,k.expression),at(H,k.expression),H}return Sn(k,ee,e)}function Kn(k){pp(k,pn)&&(k=yp(e,k,Yt(k.initializer)));let ie=t.updateParameterDeclaration(k,void 0,k.dotDotDotToken,Qe(k.name,ee,sT),void 0,void 0,Qe(k.initializer,ee,ht));return ie!==k&&(ic(ie,k),at(ie,R_(k)),Ra(ie,R_(k)),cr(ie.name,64)),ie}function pn(k){return $c(k)&&!k.name&&he(k)}function Yt(k){let ie=Yl(k);return $c(ie)&&!ie.name&&!My(!1,ie)}function qt(k){return t.updateForStatement(k,Qe(k.initializer,J,vf),Qe(k.condition,ee,ht),Qe(k.incrementor,J,ht),Iu(k.statement,ee,e))}function hi(k){return Sn(k,J,e)}function uo(k,ie){if(Oy(k)){let H=kn(k.left),ue=Qe(k.right,ee,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}if(Pc(k)){if(pp(k,pn))return k=yp(e,k,Yt(k.right)),Sn(k,ee,e);if(Ou(k.left)&&h&&m){let H=Xs(k.left)?Qe(k.left.argumentExpression,ee,ht):Fe(k.left.name)?t.createStringLiteralFromNode(k.left.name):void 0;if(H){let ue=Qe(k.right,ee,ht);if(PP(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,MP(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=Qe(k.left,J,ht),ue=Qe(k.right,ie?J:ee,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}return Sn(k,ee,e)}function Li(k,ie){if(k.operator===46||k.operator===47){let H=ms(k.operand);if(Ou(H)&&h&&m){let ue=Xs(H)?Qe(H.argumentExpression,ee,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,ee,e)}function Eo(k,ie){let H=ie?Ew(k.elements,J):Ew(k.elements,ee,J);return t.updateCommaListExpression(k,H)}function Qn(k){if(T_(k)||Ki(k)){let Ne=t.createStringLiteralFromNode(k),It=Qe(k,ee,rc);return{referencedName:Ne,name:It}}if(T_(k.expression)&&!Fe(k.expression)){let Ne=t.createStringLiteralFromNode(k.expression),It=Qe(k,ee,rc);return{referencedName:Ne,name:It}}let ie=t.getGeneratedNameForNode(k);s(ie);let H=r().createPropKeyHelper(Qe(k.expression,ee,ht)),ue=t.createAssignment(ie,H),We=t.updateComputedPropertyName(k,se(ue));return{referencedName:ie,name:We}}function Ur(k){return Xa(k)?Er(k):Qe(k,ee,rc)}function Er(k){let ie=Qe(k.expression,ee,ht);return L_(ie)||(ie=se(ie)),t.updateComputedPropertyName(k,ie)}function on(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function Ye(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function Wt(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function In(k){if(Ma(k)||fu(k))return kn(k);if(Ou(k)&&h&&m){let ie=Xs(k)?Qe(k.argumentExpression,ee,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,ee,e)}function li(k){if(Pc(k,!0)){pp(k,pn)&&(k=yp(e,k,Yt(k.right)));let ie=In(k.left),H=Qe(k.right,ee,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,ee,e)}function $i(k){return R.assertNode(k,a2),qm(k)?yi(k):Gc(k)?Sn(k,ee,e):li(k)}function Ao(k){let ie=Qe(k.name,ee,rc);if(Pc(k.initializer,!0)){let H=li(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,ee,e)}function ua(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.objectAssignmentInitializer))),Sn(k,ee,e)}function za(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadAssignment(k,ie)}return Sn(k,ee,e)}function vn(k){return R.assertNode(k,o2),Vy(k)?za(k):Zu(k)?ua(k):mc(k)?Ao(k):Sn(k,ee,e)}function kn(k){if(fu(k)){let ie=zn(k.elements,$i,ht);return t.updateArrayLiteralExpression(k,ie)}else{let ie=zn(k.properties,vn,Ng);return t.updateObjectLiteralExpression(k,ie)}}function Be(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.expression))),Sn(k,ee,e)}function ct(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updateParenthesizedExpression(k,ue)}function lt(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updatePartiallyEmittedExpression(k,ue)}function Rt(k,ie){return gt(k)&&(ie?Fu(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 se(k){let ie=Rt(y,k);return R.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=Qe(k.expression,ee,ht);cr(ie,3072);let H=Yl(ie);if(Ms(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,kg(k)),cr(Dt,3072);let Kt=We==="get"||We==="set"?We:void 0,En=t.createStringLiteralFromNode(ie,void 0),wn=r().createSetFunctionNameHelper(Dt,En,Kt),Bn=t.createPropertyAssignment(t.createIdentifier(We),wn);return xr(Bn,k),Ra(Bn,kg(k)),cr(Bn,3072),Bn}function Tt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,k.asteriskToken,"value",zn(k.parameters,ee,To),Qe(k.body,ee,Uo))])}function He(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],Qe(k.body,ee,Uo))])}function pt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"set",zn(k.parameters,ee,To),Qe(k.body,ee,Uo))])}function Bt(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 cr(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 H9e=bt({"src/compiler/transformers/esDecorators.ts"(){"use strict";Qo()}});function Ele(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 Wt=Sn(Ye,q,e);return Wg(Wt,e.readEmitHelpers()),Wt}function Y(Ye,Wt){D=Wt?D|Ye:D&~Ye}function B(Ye){return(D&Ye)!==0}function ce(){return!B(1)}function z(){return B(2)}function ee(Ye,Wt,In){let li=Ye&~D;if(li){Y(li,!0);let yi=Wt(In);return Y(li,!1),yi}return Wt(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 ee(3,Ge,Ye);case 262:return ee(3,De,Ye);case 218:return ee(3,Le,Ye);case 219:return ee(1,Et,Ye);case 211:return E&&wr(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 ee(3,ve,Ye);case 178:return ee(3,Ie,Ye);case 176:return ee(3,Ce,Ye);case 263:case 231:return ee(3,me,Ye);default:return Sn(Ye,q,e)}}function J(Ye){if(Eie(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 R.assertNever(Ye,"Unhandled node.")}return q(Ye)}function re(Ye){let Wt=new Set;be(Ye.variableDeclaration,Wt);let In;if(Wt.forEach((li,yi)=>{y.has(yi)&&(In||(In=new Set(y)),In.delete(yi))}),In){let li=y;y=In;let yi=Sn(Ye,J,e);return y=li,yi}else return Sn(Ye,J,e)}function pe(Ye){if(ze(Ye.declarationList)){let Wt=tt(Ye.declarationList,!1);return Wt?t.createExpressionStatement(Wt):void 0}return Sn(Ye,q,e)}function xe(Ye){return t.updateForInStatement(Ye,ze(Ye.initializer)?tt(Ye.initializer,!0):R.checkDefined(Qe(Ye.initializer,q,vf)),R.checkDefined(Qe(Ye.expression,q,ht)),Iu(Ye.statement,J,e))}function fe(Ye){return t.updateForOfStatement(Ye,Qe(Ye.awaitModifier,q,ZU),ze(Ye.initializer)?tt(Ye.initializer,!0):R.checkDefined(Qe(Ye.initializer,q,vf)),R.checkDefined(Qe(Ye.expression,q,ht)),Iu(Ye.statement,J,e))}function ne(Ye){let Wt=Ye.initializer;return t.updateForStatement(Ye,ze(Wt)?tt(Wt,!1):Qe(Ye.initializer,q,vf),Qe(Ye.condition,q,ht),Qe(Ye.incrementor,q,ht),Iu(Ye.statement,J,e))}function he(Ye){return ce()?Sn(Ye,q,e):xr(at(t.createYieldExpression(void 0,Qe(Ye.expression,q,ht)),Ye),Ye)}function Ce(Ye){let Wt=A;A=void 0;let In=t.updateConstructorDeclaration(Ye,zn(Ye.modifiers,q,Sa),Il(Ye.parameters,q,e),Zt(Ye));return A=Wt,In}function Ge(Ye){let Wt,In=Bc(Ye),li=A;A=void 0;let yi=t.updateMethodDeclaration(Ye,zn(Ye.modifiers,q,ol),Ye.asteriskToken,Ye.name,void 0,void 0,Wt=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,In&2?Kn(Ye,Wt):Zt(Ye));return A=li,yi}function ve(Ye){let Wt=A;A=void 0;let In=t.updateGetAccessorDeclaration(Ye,zn(Ye.modifiers,q,ol),Ye.name,Il(Ye.parameters,q,e),void 0,Zt(Ye));return A=Wt,In}function Ie(Ye){let Wt=A;A=void 0;let In=t.updateSetAccessorDeclaration(Ye,zn(Ye.modifiers,q,ol),Ye.name,Il(Ye.parameters,q,e),Zt(Ye));return A=Wt,In}function De(Ye){let Wt,In=A;A=void 0;let li=Bc(Ye),yi=t.updateFunctionDeclaration(Ye,zn(Ye.modifiers,q,ol),Ye.asteriskToken,Ye.name,void 0,Wt=li&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,li&2?Kn(Ye,Wt):rf(Ye.body,q,e));return A=In,yi}function Le(Ye){let Wt,In=A;A=void 0;let li=Bc(Ye),yi=t.updateFunctionExpression(Ye,zn(Ye.modifiers,q,Sa),Ye.asteriskToken,Ye.name,void 0,Wt=li&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,li&2?Kn(Ye,Wt):rf(Ye.body,q,e));return A=In,yi}function Et(Ye){let Wt,In=Bc(Ye);return t.updateArrowFunction(Ye,zn(Ye.modifiers,q,Sa),void 0,Wt=In&2?Dn(Ye):Il(Ye.parameters,q,e),void 0,Ye.equalsGreaterThanToken,In&2?Kn(Ye,Wt):rf(Ye.body,q,e))}function be({name:Ye},Wt){if(Fe(Ye))Wt.add(Ye.escapedText);else for(let In of Ye.elements)Gc(In)||be(In,Wt)}function ze(Ye){return!!Ye&&Vc(Ye)&&!(Ye.flags&7)&&Ye.declarations.some(ft)}function tt(Ye,Wt){Ft(Ye);let In=ON(Ye);return In.length===0?Wt?Qe(t.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),q,ht):void 0:t.inlineExpressions(mn(In,Je))}function Ft(Ye){gn(Ye.declarations,_t)}function _t({name:Ye}){if(Fe(Ye))s(Ye);else for(let Wt of Ye.elements)Gc(Wt)||_t(Wt)}function Je(Ye){let Wt=Ra(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return R.checkDefined(Qe(Wt,q,ht))}function ft({name:Ye}){if(Fe(Ye))return y.has(Ye.escapedText);for(let Wt of Ye.elements)if(!Gc(Wt)&&ft(Wt))return!0;return!1}function Zt(Ye){R.assertIsDefined(Ye.body);let Wt=E,In=S;E=new Set,S=!1;let li=rf(Ye.body,q,e),yi=Cl(Ye,Fs);if(p>=2&&l.getNodeCheckFlags(Ye)&384&&(Bc(yi)&3)!==3){if(qt(),E.size){let Ao=U3(t,l,Ye,E);N[rs(Ao)]=!0;let ua=li.statements.slice();qh(ua,[Ao]),li=t.updateBlock(li,ua)}S&&(l.getNodeCheckFlags(Ye)&256?VI(li,Nk):l.getNodeCheckFlags(Ye)&128&&VI(li,Ck))}return E=Wt,S=In,li}function en(){R.assert(A);let Ye=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Wt=t.createVariableStatement(void 0,[Ye]);return Jd(Wt),D_(Wt,2097152),Wt}function Dn(Ye){if(Tw(Ye.parameters))return Il(Ye.parameters,q,e);let Wt=[];for(let li of Ye.parameters){if(li.initializer||li.dotDotDotToken){if(Ye.kind===219){let $i=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Wt.push($i)}break}let yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(li.name,8));Wt.push(yi)}let In=t.createNodeArray(Wt);return at(In,Ye.parameters),In}function Kn(Ye,Wt){let In=Tw(Ye.parameters)?void 0:Il(Ye.parameters,q,e);i();let yi=Cl(Ye,Xo).type,$i=p<2?Yt(yi):void 0,Ao=Ye.kind===219,ua=A,vn=(l.getNodeCheckFlags(Ye)&512)!==0&&!A;vn&&(A=t.createUniqueName("arguments"));let kn;if(In)if(Ao){let st=[];R.assert(Wt.length<=Ye.parameters.length);for(let G=0;G=2&&l.getNodeCheckFlags(Ye)&384;if(G&&(qt(),E.size)){let Tt=U3(t,l,Ye,E);N[rs(Tt)]=!0,qh(st,[Tt])}vn&&qh(st,[en()]);let et=t.createBlock(st,!0);at(et,Ye.body),G&&S&&(l.getNodeCheckFlags(Ye)&256?VI(et,Nk):l.getNodeCheckFlags(Ye)&128&&VI(et,Ck)),ke=et}return y=Be,Ao||(E=ct,S=lt,A=ua),ke}function pn(Ye,Wt){return Uo(Ye)?t.updateBlock(Ye,zn(Ye.statements,J,Hi,Wt)):t.converters.convertToFunctionBlock(R.checkDefined(Qe(Ye,J,pF)))}function Yt(Ye){let Wt=Ye&&I2(Ye);if(Wt&&Xu(Wt)){let In=l.getTypeReferenceSerializationKind(Wt);if(In===1||In===0)return Wt}}function qt(){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,Wt,In){if(h&1&&Er(Wt)){let li=l.getNodeCheckFlags(Wt)&384;if(li!==m){let yi=m;m=li,w(Ye,Wt,In),m=yi;return}}else if(h&&N[rs(Wt)]){let li=m;m=0,w(Ye,Wt,In),m=li;return}w(Ye,Wt,In)}function uo(Ye,Wt){return Wt=j(Ye,Wt),Ye===1&&m?Li(Wt):Wt}function Li(Ye){switch(Ye.kind){case 211:return Eo(Ye);case 212:return Qn(Ye);case 213:return Ur(Ye)}return Ye}function Eo(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 Wt=Ye.expression;if(Ou(Wt)){let In=wr(Wt)?Eo(Wt):Qn(Wt);return t.createCallExpression(t.createPropertyAccessExpression(In,"call"),void 0,[t.createThis(),...Ye.arguments])}return Ye}function Er(Ye){let Wt=Ye.kind;return Wt===263||Wt===176||Wt===174||Wt===177||Wt===178}function on(Ye,Wt){return m&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),"value"),Wt):at(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),Wt)}}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,cr(e.createPropertyAccessExpression(cr(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(cr(e.createPropertyAccessExpression(cr(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 K9e=bt({"src/compiler/transformers/es2017.ts"(){"use strict";Qo()}});function Sle(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=za;let y=!1,E,S,A,N=0,D=0,w,j,K,Y,B=[];return Im(e,ge);function ce(se,ke){return D!==(D&~se|ke)}function z(se,ke){let st=D;return D=(D&~se|ke)&3,st}function ee(se){D=se}function me(se){j=Tn(j,t.createVariableDeclaration(se))}function ge(se){if(se.isDeclarationFile)return se;w=se;let ke=Et(se);return Wg(ke,e.readEmitHelpers()),w=void 0,j=void 0,ke}function q(se){return fe(se,!1)}function J(se){return fe(se,!0)}function re(se){if(se.kind!==134)return se}function pe(se,ke,st,G){if(ce(st,G)){let et=z(st,G),Tt=se(ke);return ee(et),Tt}return se(ke)}function xe(se){return Sn(se,q,e)}function fe(se,ke){if(!(se.transformFlags&128))return se;switch(se.kind){case 223:return ne(se);case 229:return he(se);case 253:return Ce(se);case 256:return Ge(se);case 210:return Ie(se);case 226:return ze(se,ke);case 361:return tt(se,ke);case 299:return Ft(se);case 243:return _t(se);case 260:return Je(se);case 246:case 247:case 249:return pe(xe,se,0,2);case 250:return Dn(se,void 0);case 248:return pe(Zt,se,0,2);case 222:return en(se);case 176:return pe(Eo,se,2,1);case 174:return pe(Er,se,2,1);case 177:return pe(Qn,se,2,1);case 178:return pe(Ur,se,2,1);case 262:return pe(on,se,2,1);case 218:return pe(Wt,se,2,1);case 219:return pe(Ye,se,2,0);case 169:return uo(se);case 244:return De(se);case 217:return Le(se,ke);case 215:return be(se);case 211:return K&&wr(se)&&se.expression.kind===108&&K.add(se.name.escapedText),Sn(se,q,e);case 212:return K&&se.expression.kind===108&&(Y=!0),Sn(se,q,e);case 263:case 231:return pe(xe,se,2,1);default:return Sn(se,q,e)}}function ne(se){return S&2&&S&1?xr(at(t.createYieldExpression(void 0,r().createAwaitHelper(Qe(se.expression,q,ht))),se),se):Sn(se,q,e)}function he(se){if(S&2&&S&1){if(se.asteriskToken){let ke=Qe(R.checkDefined(se.expression),q,ht);return xr(at(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(se,se.asteriskToken,at(r().createAsyncDelegatorHelper(at(r().createAsyncValuesHelper(ke),ke)),ke)))),se),se)}return xr(at(t.createYieldExpression(void 0,Yt(se.expression?Qe(se.expression,q,ht):t.createVoidZero())),se),se)}return Sn(se,q,e)}function Ce(se){return S&2&&S&1?t.updateReturnStatement(se,Yt(se.expression?Qe(se.expression,q,ht):t.createVoidZero())):Sn(se,q,e)}function Ge(se){if(S&2){let ke=sj(se);return ke.kind===250&&ke.awaitModifier?Dn(ke,se):t.restoreEnclosingLabel(Qe(ke,q,Hi,t.liftToBlock),se)}return Sn(se,q,e)}function ve(se){let ke,st=[];for(let G of se)if(G.kind===305){ke&&(st.push(t.createObjectLiteralExpression(ke)),ke=void 0);let et=G.expression;st.push(Qe(et,q,ht))}else ke=Tn(ke,G.kind===303?t.createPropertyAssignment(G.name,Qe(G.initializer,q,ht)):Qe(G,q,Ng));return ke&&st.push(t.createObjectLiteralExpression(ke)),st}function Ie(se){if(se.transformFlags&65536){let ke=ve(se.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(se)&384;if(pt){Ao();let hn=U3(t,l,se,K);B[rs(hn)]=!0,qh(et,[hn])}et.push(He);let Bt=t.updateBlock(se.body,et);return pt&&Y&&(l.getNodeCheckFlags(se)&256?VI(Bt,Nk):l.getNodeCheckFlags(se)&128&&VI(Bt,Ck)),K=st,Y=G,Bt}function yi(se){i();let ke=0,st=[],G=Qe(se.body,q,pF)??t.createBlock([]);Uo(G)&&(ke=t.copyPrologue(G.statements,st,!1,q)),Hr(st,$i(void 0,se));let et=o();if(ke>0||gt(st)||gt(et)){let Tt=t.converters.convertToFunctionBlock(G,!0);return qh(st,et),Hr(st,Tt.statements.slice(ke)),t.updateBlock(Tt,at(t.createNodeArray(st),Tt.statements))}return G}function $i(se,ke){let st=!1;for(let G of ke.parameters)if(st){if(Yo(G.name)){if(G.name.elements.length>0){let et=rS(G,q,e,0,t.getGeneratedNameForNode(G));if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);cr(He,2097152),se=Tn(se,He)}}else if(G.initializer){let et=t.getGeneratedNameForNode(G),Tt=Qe(G.initializer,q,ht),He=t.createAssignment(et,Tt),pt=t.createExpressionStatement(He);cr(pt,2097152),se=Tn(se,pt)}}else if(G.initializer){let et=t.cloneNode(G.name);at(et,G.name),cr(et,96);let Tt=Qe(G.initializer,q,ht);D_(Tt,3168);let He=t.createAssignment(et,Tt);at(He,G),cr(He,3072);let pt=t.createBlock([t.createExpressionStatement(He)]);at(pt,G),cr(pt,3905);let Bt=t.createTypeCheck(t.cloneNode(G.name),"undefined"),hn=t.createIfStatement(Bt,pt);Jd(hn),at(hn,G),cr(hn,2101056),se=Tn(se,hn)}}else if(G.transformFlags&65536){st=!0;let et=rS(G,q,e,1,t.getGeneratedNameForNode(G),!1,!0);if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);cr(He,2097152),se=Tn(se,He)}}return se}function Ao(){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(se,ke,st){if(E&1&<(ke)){let G=l.getNodeCheckFlags(ke)&384;if(G!==N){let et=N;N=G,h(se,ke,st),N=et;return}}else if(E&&B[rs(ke)]){let G=N;N=0,h(se,ke,st),N=G;return}h(se,ke,st)}function za(se,ke){return ke=m(se,ke),se===1&&N?vn(ke):ke}function vn(se){switch(se.kind){case 211:return kn(se);case 212:return Be(se);case 213:return ct(se)}return se}function kn(se){return se.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),se.name),se):se}function Be(se){return se.expression.kind===108?Rt(se.argumentExpression,se):se}function ct(se){let ke=se.expression;if(Ou(ke)){let st=wr(ke)?kn(ke):Be(ke);return t.createCallExpression(t.createPropertyAccessExpression(st,"call"),void 0,[t.createThis(),...se.arguments])}return se}function lt(se){let ke=se.kind;return ke===263||ke===176||ke===174||ke===177||ke===178}function Rt(se,ke){return N&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),"value"),ke):at(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),ke)}}var J9e=bt({"src/compiler/transformers/es2018.ts"(){"use strict";Qo()}});function Tle(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)),Qe(s.block,i,Uo))}}var q9e=bt({"src/compiler/transformers/es2019.ts"(){"use strict";Qo()}});function Ale(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 R.assertNotNode(N,r1),N}case 211:case 212:if(Ud(A)){let N=m(A,!1,!1);return R.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){R.assertNotNode(A,sF);let N=[A];for(;!A.questionDotToken&&!H0(A);)A=ta(gm(A.expression),Ud),R.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=Qe(A.expression,o,ht);R.assertNotNode(w,r1);let j;return N&&(nS(w)?j=w:(j=t.createTempVariable(r),w=t.createAssignment(j,w))),w=A.kind===211?t.updatePropertyAccessExpression(A,w,Qe(A.name,o,Fe)):t.updateElementAccessExpression(A,w,Qe(A.argumentExpression,o,ht)),j?t.createSyntheticReferenceExpression(w,j):w}function p(A,N){if(Ud(A))return m(A,N,!1);if(Fu(A.expression)&&Ud(ms(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 Qe(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);nS(B)||(B=t.createTempVariable(r),ce=t.createAssignment(B,ce));let z=B,ee;for(let ge=0;gefe&&Hr(ne,zn(pe.statements,y,Hi,fe,he-fe));break}he++}R.assert(heD(ne,fe))))],fe,xe===2)}return Sn(pe,y,e)}function j(pe,xe,fe,ne,he){let Ce=[];for(let Ie=xe;Iet&&(t=i)}return t}function Q9e(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 Z9e=bt({"src/compiler/transformers/esnext.ts"(){"use strict";Qo()}});function Nle(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 Ft=be==="createElement"?s.importSpecifier:C6(s.importSpecifier,i),_t=(tt=(ze=s.utilizedImplicitRuntimeImports)==null?void 0:ze.get(Ft))==null?void 0:tt.get(be);if(_t)return _t.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Je=s.utilizedImplicitRuntimeImports.get(Ft);Je||(Je=new Map,s.utilizedImplicitRuntimeImports.set(Ft,Je));let ft=t.createUniqueName(`_${be}`,112),Zt=t.createImportSpecifier(!1,t.createIdentifier(be),ft);return nae(ft,Zt),Je.set(be,Zt),ft}function y(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=D6(i,be);let ze=Sn(be,E,e);Wg(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[Ft,_t]of Oo(s.utilizedImplicitRuntimeImports.entries()))if(oc(be)){let Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Oo(_t.values()))),t.createStringLiteral(Ft),void 0);Gv(Je,!1),tt=uT(tt.slice(),Je)}else if(wp(be)){let Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oo(_t.values(),ft=>t.createBindingElement(void 0,ft.propertyName,ft.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Ft)]))],2));Gv(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 R.failBadSyntaxKind(be)}}function N(be){return be.properties.some(ze=>mc(ze)&&(Fe(ze.name)&&yr(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(Vy)))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 Ft=A(ze[0]);return Ft&&t.createPropertyAssignment("children",Ft)}let tt=to(be,A);return Nn(tt)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(tt)):void 0}function z(be,ze,tt,Ft){let _t=De(be),Je=ze&&ze.length?ce(ze):void 0,ft=Vr(be.attributes.properties,Dn=>!!Dn.name&&Fe(Dn.name)&&Dn.name.escapedText==="key"),Zt=ft?jr(be.attributes.properties,Dn=>Dn!==ft):be.attributes.properties,en=Nn(Zt)?re(Zt,Je):t.createObjectLiteralExpression(Je?[Je]:Xe);return ee(_t,en,ft,ze||Xe,tt,Ft)}function ee(be,ze,tt,Ft,_t,Je){var ft;let Zt=lR(Ft),en=Nn(Zt)>1||!!((ft=Zt[0])!=null&&ft.dotDotDotToken),Dn=[be,ze];if(tt&&Dn.push(ne(tt.initializer)),i.jsx===5){let pn=Cl(o);if(pn&&Yi(pn)){tt===void 0&&Dn.push(t.createVoidZero()),Dn.push(en?t.createTrue():t.createFalse());let Yt=ys(pn,Je.pos);Dn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Yt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Yt.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,Ft){let _t=De(be),Je=be.attributes.properties,ft=Nn(Je)?re(Je):t.createNull(),Zt=s.importSpecifier===void 0?_H(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):m("createElement"),en=Mae(t,Zt,_t,ft,to(ze,A),Ft);return tt&&Jd(en),en}function ge(be,ze,tt,Ft){let _t;if(ze&&ze.length){let Je=B(ze);Je&&(_t=Je)}return ee(h(),_t||t.createObjectLiteralExpression([]),void 0,ze,tt,Ft)}function q(be,ze,tt,Ft){let _t=Lae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,to(ze,A),be,Ft);return tt&&Jd(_t),_t}function J(be){return Ma(be.expression)&&!N(be.expression)?Nc(be.expression.properties,ze=>R.checkDefined(Qe(ze,E,Ng))):t.createSpreadAssignment(R.checkDefined(Qe(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,(Ft,_t)=>pm(mn(Ft,Je=>_t?J(Je):fe(Je)))));return ze&&tt.push(ze),tt}function xe(be,ze){let tt=[],Ft=[];for(let Je of be){if(o1(Je)){if(Ma(Je.expression)&&!N(Je.expression)){for(let ft of Je.expression.properties){if(Vy(ft)){_t(),tt.push(R.checkDefined(Qe(ft.expression,E,ht)));continue}Ft.push(R.checkDefined(Qe(ft,E)))}continue}_t(),tt.push(R.checkDefined(Qe(Je.expression,E,ht)));continue}Ft.push(fe(Je))}return ze&&Ft.push(ze),_t(),tt.length&&!Ma(tt[0])&&tt.unshift(t.createObjectLiteralExpression()),rh(tt)||r().createAssignHelper(tt);function _t(){Ft.length&&(tt.push(t.createObjectLiteralExpression(Ft)),Ft=[])}}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(Ie(be.text)||be.text,ze);return at(tt,be)}return be.kind===294?be.expression===void 0?t.createTrue():R.checkDefined(Qe(be.expression,E,ht)):og(be)?j(be,!1):OT(be)?K(be,!1):q0(be)?Y(be,!1):R.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,Ft=-1;for(let _t=0;_t{if(Je)return Px(parseInt(Je,10));if(ft)return Px(parseInt(ft,16));{let en=VIe.get(Zt);return en?Px(en):ze}})}function Ie(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(yr(ze)):Xm(ze)?t.createStringLiteral(yr(ze.namespace)+":"+yr(ze.name)):Vk(t,ze)}}function Le(be){let ze=be.name;if(Fe(ze)){let tt=yr(ze);return/^[A-Za-z_]\w*$/.test(tt)?ze:t.createStringLiteral(tt)}return t.createStringLiteral(yr(ze.namespace)+":"+yr(ze.name))}function Et(be){let ze=Qe(be.expression,E,ht);return be.dotDotDotToken?t.createSpreadElement(ze):ze}}var VIe,eVe=bt({"src/compiler/transformers/jsx.ts"(){"use strict";Qo(),VIe=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 Ple(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=Qe(p.left,o,ht),E=Qe(p.right,o,ht);if(Xs(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(wr(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=Qe(p.left,o,ht),m=Qe(p.right,o,ht);return at(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var tVe=bt({"src/compiler/transformers/es2016.ts"(){"use strict";Qo()}});function jIe(e,t){return{kind:e,expression:t}}function Mle(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=cf,e.onSubstituteNode=Pf;let y,E,S,A;function N(Z){A=Tn(A,t.createVariableDeclaration(Z))}let D,w;return Im(e,j);function j(Z){if(Z.isDeclarationFile)return Z;y=Z,E=Z.text;let rt=re(Z);return Wg(rt,e.readEmitHelpers()),y=void 0,E=void 0,A=void 0,S=0,rt}function K(Z,rt){let Ot=S;return S=(S&~Z|rt)&32767,Ot}function Y(Z,rt,Ot){S=(S&~rt|Ot)&-32768|Z}function B(Z){return(S&8192)!==0&&Z.kind===253&&!Z.expression}function ce(Z){return Z.transformFlags&4194304&&(Sm(Z)||LT(Z)||vae(Z)||pP(Z)||fP(Z)||MR(Z)||_P(Z)||wT(Z)||Y0(Z)||K0(Z)||Pv(Z,!1)||Uo(Z))}function z(Z){return(Z.transformFlags&1024)!==0||D!==void 0||S&8192&&ce(Z)||Pv(Z,!1)&&mo(Z)||(ym(Z)&1)!==0}function ee(Z){return z(Z)?J(Z,!1):Z}function me(Z){return z(Z)?J(Z,!0):Z}function ge(Z){if(z(Z)){let rt=Cl(Z);if(Vo(rt)&&pc(rt)){let Ot=K(32670,16449),Gt=J(Z,!1);return Y(Ot,229376,0),Gt}return J(Z,!1)}return Z}function q(Z){return Z.kind===108?Zl(Z,!0):ee(Z)}function J(Z,rt){switch(Z.kind){case 126:return;case 263:return De(Z);case 231:return Le(Z);case 169:return za(Z);case 262:return dn(Z);case 219:return Bt(Z);case 218:return hn(Z);case 260:return En(Z);case 80:return ve(Z);case 261:return Ne(Z);case 255:return pe(Z);case 269:return xe(Z);case 241:return Me(Z,!1);case 252:case 251:return Ie(Z);case 256:return gi(Z);case 246:case 247:return Fr(Z,void 0);case 248:return ho(Z,void 0);case 249:return Ri(Z,void 0);case 250:return Kr(Z,void 0);case 244:return Nt(Z);case 210:return Po(Z);case 299:return Di(Z);case 304:return jc(Z);case 167:return Vs(Z);case 209:return bs(Z);case 213:return Uc(Z);case 214:return im(Z);case 217:return k(Z,rt);case 226:return ie(Z,rt);case 361:return H(Z,rt);case 15:case 16:case 17:case 18:return $o(Z);case 11:return Ql(Z);case 9:return gc(Z);case 215:return ll(Z);case 228:return hl(Z);case 229:return hc(Z);case 230:return Jo(Z);case 108:return Zl(Z,!1);case 110:return Ce(Z);case 236:return Hc(Z);case 174:return Ko(Z);case 177:case 178:return bl(Z);case 243:return We(Z);case 253:return he(Z);case 222:return Ge(Z);default:return Sn(Z,ee,e)}}function re(Z){let rt=K(8064,64),Ot=[],Gt=[];i();let O=t.copyPrologue(Z.statements,Ot,!1,ee);return Hr(Gt,zn(Z.statements,ee,Hi,O)),A&&Gt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(Ot,s()),se(Ot,Z),Y(rt,0,0),t.updateSourceFile(Z,at(t.createNodeArray(bo(Ot,Gt)),Z.statements))}function pe(Z){if(D!==void 0){let rt=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let Ot=Sn(Z,ee,e);return D.allowedNonLabeledJumps=rt,Ot}return Sn(Z,ee,e)}function xe(Z){let rt=K(7104,0),Ot=Sn(Z,ee,e);return Y(rt,0,0),Ot}function fe(Z){return xr(t.createReturnStatement(ne()),Z)}function ne(){return t.createUniqueName("_this",48)}function he(Z){return D?(D.nonLocalJumps|=8,B(Z)&&(Z=fe(Z)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Z.expression?R.checkDefined(Qe(Z.expression,ee,ht)):t.createVoidZero())]))):B(Z)?fe(Z):Sn(Z,ee,e)}function Ce(Z){return S|=65536,S&2&&!(S&16384)&&(S|=131072),D?S&2?(D.containsLexicalThis=!0,Z):D.thisName||(D.thisName=t.createUniqueName("this")):Z}function Ge(Z){return Sn(Z,me,e)}function ve(Z){return D&&p.isArgumentsLocalBinding(Z)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):Z.flags&256?xr(at(t.createIdentifier(Vi(Z.escapedText)),Z),Z):Z}function Ie(Z){if(D){let rt=Z.kind===252?2:4;if(!(Z.label&&D.labels&&D.labels.get(yr(Z.label))||!Z.label&&D.allowedNonLabeledJumps&rt)){let Gt,O=Z.label;O?Z.kind===252?(Gt=`break-${O.escapedText}`,$(D,!0,yr(O),Gt)):(Gt=`continue-${O.escapedText}`,$(D,!1,yr(O),Gt)):Z.kind===252?(D.nonLocalJumps|=2,Gt="break"):(D.nonLocalJumps|=4,Gt="continue");let Se=t.createStringLiteral(Gt);if(D.loopOutParameters.length){let nt=D.loopOutParameters,jt;for(let Zn=0;ZnFe(rt.name)&&!rt.initializer)}function ft(Z){if(mT(Z))return!0;if(!(Z.transformFlags&134217728))return!1;switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let rt=Z;return Xa(rt.name)?!!Bo(rt.name,ft):!1}}return!!Bo(Z,ft)}function Zt(Z,rt,Ot,Gt){let O=!!Ot&&Yl(Ot.expression).kind!==106;if(!Z)return _t(rt,O);let Se=[],nt=[];o();let jt=t.copyStandardPrologue(Z.body.statements,Se,0);(Gt||ft(Z.body))&&(S|=8192),Hr(nt,zn(Z.body.statements,ee,Hi,jt));let Zn=O||S&8192;kn(Se,Z),Rt(Se,Z,Gt),st(Se,Z),Zn?ke(Se,Z,Ao()):se(Se,Z),t.mergeLexicalEnvironment(Se,s()),Zn&&!$i(Z.body)&&nt.push(t.createReturnStatement(ne()));let oi=t.createBlock(at(t.createNodeArray([...Se,...nt]),Z.body.statements),!0);return at(oi,Z.body),yi(oi,Z.body,Gt)}function en(Z){return il(Z)&&yr(Z)==="_this"}function Dn(Z){return il(Z)&&yr(Z)==="_super"}function Kn(Z){return Pl(Z)&&Z.declarationList.declarations.length===1&&pn(Z.declarationList.declarations[0])}function pn(Z){return Oi(Z)&&en(Z.name)&&!!Z.initializer}function Yt(Z){return Pc(Z,!0)&&en(Z.left)}function qt(Z){return ra(Z)&&wr(Z.expression)&&Dn(Z.expression.expression)&&Fe(Z.expression.name)&&(yr(Z.expression.name)==="call"||yr(Z.expression.name)==="apply")&&Z.arguments.length>=1&&Z.arguments[0].kind===110}function hi(Z){return ur(Z)&&Z.operatorToken.kind===57&&Z.right.kind===110&&qt(Z.left)}function uo(Z){return ur(Z)&&Z.operatorToken.kind===56&&ur(Z.left)&&Z.left.operatorToken.kind===38&&Dn(Z.left.left)&&Z.left.right.kind===106&&qt(Z.right)&&yr(Z.right.expression.name)==="apply"}function Li(Z){return ur(Z)&&Z.operatorToken.kind===57&&Z.right.kind===110&&uo(Z.left)}function Eo(Z){return Yt(Z)&&hi(Z.right)}function Qn(Z){return Yt(Z)&&Li(Z.right)}function Ur(Z){return qt(Z)||hi(Z)||Eo(Z)||uo(Z)||Li(Z)||Qn(Z)}function Er(Z){for(let rt=0;rt0;Gt--){let O=Z.statements[Gt];if(Sm(O)&&O.expression&&en(O.expression)){let Se=Z.statements[Gt-1],nt;if(Qc(Se)&&Eo(Yl(Se.expression)))nt=Se.expression;else if(Ot&&Kn(Se)){let oi=Se.declarationList.declarations[0];Ur(Yl(oi.initializer))&&(nt=t.createAssignment(ne(),oi.initializer))}if(!nt)break;let jt=t.createReturnStatement(nt);xr(jt,Se),at(jt,Se);let Zn=t.createNodeArray([...Z.statements.slice(0,Gt-1),jt,...Z.statements.slice(Gt+1)]);return at(Zn,Z.statements),t.updateBlock(Z,Zn)}}return Z}function Ye(Z){if(Kn(Z)){if(Z.declarationList.declarations[0].initializer.kind===110)return}else if(Yt(Z))return t.createPartiallyEmittedExpression(Z.right,Z);switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return Z;case 177:case 178:case 174:case 172:{let rt=Z;return Xa(rt.name)?t.replacePropertyName(rt,Sn(rt.name,Ye,void 0)):Z}}return Sn(Z,Ye,void 0)}function Wt(Z,rt){if(rt.transformFlags&16384||S&65536||S&131072)return Z;for(let Ot of rt.statements)if(Ot.transformFlags&134217728&&!F3(Ot))return Z;return t.updateBlock(Z,zn(Z.statements,Ye,Hi))}function In(Z){if(qt(Z)&&Z.arguments.length===2&&Fe(Z.arguments[1])&&yr(Z.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),Z);switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return Z;case 177:case 178:case 174:case 172:{let rt=Z;return Xa(rt.name)?t.replacePropertyName(rt,Sn(rt.name,In,void 0)):Z}}return Sn(Z,In,void 0)}function li(Z){return t.updateBlock(Z,zn(Z.statements,In,Hi))}function yi(Z,rt,Ot){let Gt=Z;return Z=Er(Z),Z=on(Z,rt),Z!==Gt&&(Z=Wt(Z,rt)),Ot&&(Z=li(Z)),Z}function $i(Z){if(Z.kind===253)return!0;if(Z.kind===245){let rt=Z;if(rt.elseStatement)return $i(rt.thenStatement)&&$i(rt.elseStatement)}else if(Z.kind===241){let rt=Qs(Z.statements);if(rt&&$i(rt))return!0}return!1}function Ao(){return cr(t.createThis(),8)}function ua(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Gl(),t.createNull()),t.createFunctionApplyCall(Gl(),Ao(),t.createIdentifier("arguments"))),Ao())}function za(Z){if(!Z.dotDotDotToken)return Yo(Z.name)?xr(at(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Z),void 0,void 0,void 0),Z),Z):Z.initializer?xr(at(t.createParameterDeclaration(void 0,void 0,Z.name,void 0,void 0,void 0),Z),Z):Z}function vn(Z){return Z.initializer!==void 0||Yo(Z.name)}function kn(Z,rt){if(!gt(rt.parameters,vn))return!1;let Ot=!1;for(let Gt of rt.parameters){let{name:O,initializer:Se,dotDotDotToken:nt}=Gt;nt||(Yo(O)?Ot=Be(Z,Gt,O,Se)||Ot:Se&&(ct(Z,Gt,O,Se),Ot=!0))}return Ot}function Be(Z,rt,Ot,Gt){return Ot.elements.length>0?(uT(Z,cr(t.createVariableStatement(void 0,t.createVariableDeclarationList(rS(rt,ee,e,0,t.getGeneratedNameForNode(rt)))),2097152)),!0):Gt?(uT(Z,cr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(rt),R.checkDefined(Qe(Gt,ee,ht)))),2097152)),!0):!1}function ct(Z,rt,Ot,Gt){Gt=R.checkDefined(Qe(Gt,ee,ht));let O=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ot),"undefined"),cr(at(t.createBlock([t.createExpressionStatement(cr(at(t.createAssignment(cr(Va(at(t.cloneNode(Ot),Ot),Ot.parent),96),cr(Gt,96|Fa(Gt)|3072)),rt),3072))]),rt),3905));Jd(O),at(O,rt),cr(O,2101056),uT(Z,O)}function lt(Z,rt){return!!(Z&&Z.dotDotDotToken&&!rt)}function Rt(Z,rt,Ot){let Gt=[],O=Qs(rt.parameters);if(!lt(O,Ot))return!1;let Se=O.name.kind===80?Va(at(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);cr(Se,96);let nt=O.name.kind===80?t.cloneNode(O.name):Se,jt=rt.parameters.length-1,Zn=t.createLoopVariable();Gt.push(cr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Se,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));let oi=t.createForStatement(at(t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,t.createNumericLiteral(jt))]),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,jt===0?Zn:t.createSubtract(Zn,t.createNumericLiteral(jt))),t.createElementAccessExpression(t.createIdentifier("arguments"),Zn))),O))]));return cr(oi,2097152),Jd(oi),Gt.push(oi),O.name.kind!==80&&Gt.push(cr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList(rS(O,ee,e,0,nt))),O),2097152)),jV(Z,Gt),!0}function se(Z,rt){return S&131072&&rt.kind!==219?(ke(Z,rt,t.createThis()),!0):!1}function ke(Z,rt,Ot){Du();let Gt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ne(),void 0,void 0,Ot)]));cr(Gt,2100224),Ra(Gt,rt),uT(Z,Gt)}function st(Z,rt){if(S&32768){let Ot;switch(rt.kind){case 219:return Z;case 174:case 177:case 178:Ot=t.createVoidZero();break;case 176:Ot=t.createPropertyAccessExpression(cr(t.createThis(),8),"constructor");break;case 262:case 218:Ot=t.createConditionalExpression(t.createLogicalAnd(cr(t.createThis(),8),t.createBinaryExpression(cr(t.createThis(),8),104,t.getLocalName(rt))),void 0,t.createPropertyAccessExpression(cr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return R.failBadSyntaxKind(rt)}let Gt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ot)]));cr(Gt,2100224),uT(Z,Gt)}return Z}function G(Z,rt){for(let Ot of rt.members)switch(Ot.kind){case 240:Z.push(et(Ot));break;case 174:Z.push(Tt(cg(rt,Ot),Ot,rt));break;case 177:case 178:let Gt=AT(rt.members,Ot);Ot===Gt.firstAccessor&&Z.push(He(cg(rt,Ot),Gt,rt));break;case 176:case 175:break;default:R.failBadSyntaxKind(Ot,y&&y.fileName);break}}function et(Z){return at(t.createEmptyStatement(),Z)}function Tt(Z,rt,Ot){let Gt=C_(rt),O=zy(rt),Se=un(rt,rt,void 0,Ot),nt=Qe(rt.name,ee,rc);R.assert(nt);let jt;if(!Ki(nt)&&nP(e.getCompilerOptions())){let oi=Xa(nt)?nt.expression:Fe(nt)?t.createStringLiteral(Vi(nt.escapedText)):nt;jt=t.createObjectDefinePropertyCall(Z,oi,t.createPropertyDescriptor({value:Se,enumerable:!1,writable:!0,configurable:!0}))}else{let oi=BT(t,Z,nt,rt.name);jt=t.createAssignment(oi,Se)}cr(Se,3072),Ra(Se,O);let Zn=at(t.createExpressionStatement(jt),rt);return xr(Zn,rt),ic(Zn,Gt),cr(Zn,96),Zn}function He(Z,rt,Ot){let Gt=t.createExpressionStatement(pt(Z,rt,Ot,!1));return cr(Gt,3072),Ra(Gt,zy(rt.firstAccessor)),Gt}function pt(Z,{firstAccessor:rt,getAccessor:Ot,setAccessor:Gt},O,Se){let nt=Va(at(t.cloneNode(Z),Z),Z.parent);cr(nt,3136),Ra(nt,rt.name);let jt=Qe(rt.name,ee,rc);if(R.assert(jt),Ki(jt))return R.failBadSyntaxKind(jt,"Encountered unhandled private identifier while transforming ES2015.");let Zn=gH(t,jt);cr(Zn,3104),Ra(Zn,rt.name);let oi=[];if(Ot){let no=un(Ot,void 0,void 0,O);Ra(no,zy(Ot)),cr(no,1024);let La=t.createPropertyAssignment("get",no);ic(La,C_(Ot)),oi.push(La)}if(Gt){let no=un(Gt,void 0,void 0,O);Ra(no,zy(Gt)),cr(no,1024);let La=t.createPropertyAssignment("set",no);ic(La,C_(Gt)),oi.push(La)}oi.push(t.createPropertyAssignment("enumerable",Ot||Gt?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(oi,!0)]);return Se&&Jd(Xr),Xr}function Bt(Z){Z.transformFlags&16384&&!(S&16384)&&(S|=131072);let rt=D;D=void 0;let Ot=K(15232,66),Gt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Il(Z.parameters,ee,e),void 0,U(Z));return at(Gt,Z),xr(Gt,Z),cr(Gt,16),Y(Ot,0,0),D=rt,Gt}function hn(Z){let rt=Fa(Z)&524288?K(32662,69):K(32670,65),Ot=D;D=void 0;let Gt=Il(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(rt,229376,0),D=Ot,t.updateFunctionExpression(Z,void 0,Z.asteriskToken,Se,void 0,Gt,void 0,O)}function dn(Z){let rt=D;D=void 0;let Ot=K(32670,65),Gt=Il(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(Ot,229376,0),D=rt,t.updateFunctionDeclaration(Z,zn(Z.modifiers,ee,Sa),Z.asteriskToken,Se,void 0,Gt,void 0,O)}function un(Z,rt,Ot,Gt){let O=D;D=void 0;let Se=Gt&&di(Gt)&&!na(Z)?K(32670,73):K(32670,65),nt=Il(Z.parameters,ee,e),jt=U(Z);return S&32768&&!Ot&&(Z.kind===262||Z.kind===218)&&(Ot=t.getGeneratedNameForNode(Z)),Y(Se,229376,0),D=O,xr(at(t.createFunctionExpression(void 0,Z.asteriskToken,Ot,void 0,nt,void 0,jt),rt),Z)}function U(Z){let rt=!1,Ot=!1,Gt,O,Se=[],nt=[],jt=Z.body,Zn;if(o(),Uo(jt)&&(Zn=t.copyStandardPrologue(jt.statements,Se,0,!1),Zn=t.copyCustomPrologue(jt.statements,nt,Zn,ee,PF),Zn=t.copyCustomPrologue(jt.statements,nt,Zn,ee,MF)),rt=kn(nt,Z)||rt,rt=Rt(nt,Z,!1)||rt,Uo(jt))Zn=t.copyCustomPrologue(jt.statements,nt,Zn,ee),Gt=jt.statements,Hr(nt,zn(jt.statements,ee,Hi,Zn)),!rt&&jt.multiLine&&(rt=!0);else{R.assert(Z.kind===219),Gt=g6(jt,-1);let Xr=Z.equalsGreaterThanToken;!qs(Xr)&&!qs(jt)&&(rk(Xr,jt,y)?Ot=!0:rt=!0);let no=Qe(jt,ee,ht),La=t.createReturnStatement(no);at(La,jt),Yoe(La,jt),cr(La,2880),nt.push(La),O=jt}if(t.mergeLexicalEnvironment(Se,s()),st(Se,Z),se(Se,Z),gt(Se)&&(rt=!0),nt.unshift(...Se),Uo(jt)&&Vm(nt,jt.statements))return jt;let oi=t.createBlock(at(t.createNodeArray(nt),Gt),rt);return at(oi,Z.body),!rt&&Ot&&cr(oi,1),O&&Xoe(oi,20,O),xr(oi,Z.body),oi}function Me(Z,rt){if(rt)return Sn(Z,ee,e);let Ot=S&256?K(7104,512):K(6976,128),Gt=Sn(Z,ee,e);return Y(Ot,0,0),Gt}function Nt(Z){return Sn(Z,me,e)}function k(Z,rt){return Sn(Z,rt?me:ee,e)}function ie(Z,rt){return Oy(Z)?UT(Z,ee,e,0,!rt):Z.operatorToken.kind===28?t.updateBinaryExpression(Z,R.checkDefined(Qe(Z.left,me,ht)),Z.operatorToken,R.checkDefined(Qe(Z.right,rt?me:ee,ht))):Sn(Z,ee,e)}function H(Z,rt){if(rt)return Sn(Z,me,e);let Ot;for(let O=0;OZn.name)),jt=Gt?t.createYieldExpression(t.createToken(42),cr(nt,8388608)):nt;if(Se)O.push(t.createExpressionStatement(jt)),Cs(rt.loopOutParameters,1,0,O);else{let Zn=t.createUniqueName("state"),oi=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Zn,void 0,void 0,jt)]));if(O.push(oi),Cs(rt.loopOutParameters,1,0,O),rt.nonLocalJumps&8){let Xr;Ot?(Ot.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,Ot,Xr),Pe(rt.labeledNonLocalContinues,!1,Zn,Ot,Xr),O.push(t.createSwitchStatement(Zn,t.createCaseBlock(Xr)))}}return O}function $(Z,rt,Ot,Gt){rt?(Z.labeledNonLocalBreaks||(Z.labeledNonLocalBreaks=new Map),Z.labeledNonLocalBreaks.set(Ot,Gt)):(Z.labeledNonLocalContinues||(Z.labeledNonLocalContinues=new Map),Z.labeledNonLocalContinues.set(Ot,Gt))}function Pe(Z,rt,Ot,Gt,O){Z&&Z.forEach((Se,nt)=>{let jt=[];if(!Gt||Gt.labels&&Gt.labels.get(nt)){let Zn=t.createIdentifier(nt);jt.push(rt?t.createBreakStatement(Zn):t.createContinueStatement(Zn))}else $(Gt,rt,nt,Se),jt.push(t.createReturnStatement(Ot));O.push(t.createCaseClause(t.createStringLiteral(Se),jt))})}function yt(Z,rt,Ot,Gt,O){let Se=rt.name;if(Yo(Se))for(let nt of Se.elements)Gc(nt)||yt(Z,nt,Ot,Gt,O);else{Ot.push(t.createParameterDeclaration(void 0,void 0,Se));let nt=p.getNodeCheckFlags(rt);if(nt&65536||O){let jt=t.createUniqueName("out_"+yr(Se)),Zn=0;nt&65536&&(Zn|=1),kT(Z)&&(Z.initializer&&p.isBindingCapturedByNode(Z.initializer,rt)&&(Zn|=2),(Z.condition&&p.isBindingCapturedByNode(Z.condition,rt)||Z.incrementor&&p.isBindingCapturedByNode(Z.incrementor,rt))&&(Zn|=1)),Gt.push({flags:Zn,originalName:Se,outParamName:jt})}}}function cn(Z,rt,Ot,Gt){let O=rt.properties,Se=O.length;for(let nt=Gt;ntPl(Vu)&&!!Ga(Vu.declarationList.declarations).initializer,Gt=D;D=void 0;let O=zn(rt.statements,ge,Hi);D=Gt;let Se=jr(O,Ot),nt=jr(O,Vu=>!Ot(Vu)),Zn=ta(Ga(Se),Pl).declarationList.declarations[0],oi=Yl(Zn.initializer),Xr=ii(oi,Pc);!Xr&&ur(oi)&&oi.operatorToken.kind===28&&(Xr=ii(oi.left,Pc));let no=ta(Xr?Yl(Xr.right):oi,ra),La=ta(Yl(no.expression),Ls),ka=La.body.statements,kl=0,dd=-1,Ic=[];if(Xr){let Vu=ii(ka[kl],Qc);Vu&&(Ic.push(Vu),kl++),Ic.push(ka[kl]),kl++,Ic.push(t.createExpressionStatement(t.createAssignment(Xr.left,ta(Zn.name,Fe))))}for(;!Sm(xy(ka,dd));)dd--;Hr(Ic,ka,kl,dd),dd<-1&&Hr(Ic,ka,dd+1);let Tp=ii(xy(ka,dd),Sm);for(let Vu of nt)Sm(Vu)&&Tp?.expression&&!Fe(Tp.expression)?Ic.push(Tp):Ic.push(Vu);return Hr(Ic,Se,1),t.restoreOuterExpressions(Z.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 wc(Z,rt){if(Z.transformFlags&32768||Z.expression.kind===108||Ou(Yl(Z.expression))){let{target:Ot,thisArg:Gt}=t.createCallBinding(Z.expression,l);Z.expression.kind===108&&cr(Gt,8);let O;if(Z.transformFlags&32768?O=t.createFunctionApplyCall(R.checkDefined(Qe(Ot,q,ht)),Z.expression.kind===108?Gt:R.checkDefined(Qe(Gt,ee,ht)),_u(Z.arguments,!0,!1,!1)):O=at(t.createFunctionCallCall(R.checkDefined(Qe(Ot,q,ht)),Z.expression.kind===108?Gt:R.checkDefined(Qe(Gt,ee,ht)),zn(Z.arguments,ee,ht)),Z),Z.expression.kind===108){let Se=t.createLogicalOr(O,Ao());O=rt?t.createAssignment(ne(),Se):Se}return xr(O,Z)}return mT(Z)&&(S|=131072),Sn(Z,ee,e)}function im(Z){if(gt(Z.arguments,qm)){let{target:rt,thisArg:Ot}=t.createCallBinding(t.createPropertyAccessExpression(Z.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(R.checkDefined(Qe(rt,ee,ht)),Ot,_u(t.createNodeArray([t.createVoidZero(),...Z.arguments]),!0,!1,!1)),void 0,[])}return Sn(Z,ee,e)}function _u(Z,rt,Ot,Gt){let O=Z.length,Se=pm(MG(Z,Re,(oi,Xr,no,La)=>Xr(oi,Ot,Gt&&La===O)));if(Se.length===1){let oi=Se[0];if(rt&&!d.downlevelIteration||mU(oi.expression)||oP(oi.expression,"___spreadArray"))return oi.expression}let nt=r(),jt=Se[0].kind!==0,Zn=jt?t.createArrayLiteralExpression():Se[0].expression;for(let oi=jt?0:1;oi0&&Gt.push(t.createStringLiteral(Ot.literal.text)),rt=t.createCallExpression(t.createPropertyAccessExpression(rt,"concat"),void 0,Gt)}return at(rt,Z)}function Gl(){return t.createUniqueName("_super",48)}function Zl(Z,rt){let Ot=S&8&&!rt?t.createPropertyAccessExpression(xr(Gl(),Z),"prototype"):Gl();return xr(Ot,Z),ic(Ot,Z),Ra(Ot,Z),Ot}function Hc(Z){return Z.keywordToken===105&&Z.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Z}function cf(Z,rt,Ot){if(w&1&&Xo(rt)){let Gt=K(32670,Fa(rt)&16?81:65);m(Z,rt,Ot),Y(Gt,0,0);return}m(Z,rt,Ot)}function Bu(){w&2||(w|=2,e.enableSubstitution(80))}function Du(){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(Z,rt){return rt=h(Z,rt),Z===1?Ug(rt):Fe(rt)?z_(rt):rt}function z_(Z){if(w&2&&!yH(Z)){let rt=Ro(Z,Fe);if(rt&&Ih(rt))return at(t.getGeneratedNameForNode(rt),Z)}return Z}function Ih(Z){switch(Z.parent.kind){case 208:case 263:case 266:case 260:return Z.parent.name===Z&&p.isDeclarationWithCollidingName(Z.parent)}return!1}function Ug(Z){switch(Z.kind){case 80:return Wd(Z);case 110:return Sp(Z)}return Z}function Wd(Z){if(w&2&&!yH(Z)){let rt=p.getReferencedDeclarationWithCollidingName(Z);if(rt&&!(di(rt)&&Hg(rt,Z)))return at(t.getGeneratedNameForNode(No(rt)),Z)}return Z}function Hg(Z,rt){let Ot=Ro(rt);if(!Ot||Ot===Z||Ot.end<=Z.pos||Ot.pos>=Z.end)return!1;let Gt=ph(Z);for(;Ot;){if(Ot===Gt||Ot===Z)return!1;if(Xc(Ot)&&Ot.parent===Z)return!0;Ot=Ot.parent}return!1}function Sp(Z){return w&1&&S&16?at(ne(),Z):Z}function cg(Z,rt){return na(rt)?t.getInternalName(Z):t.createPropertyAccessExpression(t.getInternalName(Z),"prototype")}function Gu(Z,rt){if(!Z||!rt||gt(Z.parameters))return!1;let Ot=Jc(Z.body.statements);if(!Ot||!qs(Ot)||Ot.kind!==244)return!1;let Gt=Ot.expression;if(!qs(Gt)||Gt.kind!==213)return!1;let O=Gt.expression;if(!qs(O)||O.kind!==108)return!1;let Se=rh(Gt.arguments);if(!Se||!qs(Se)||Se.kind!==230)return!1;let nt=Se.expression;return Fe(nt)&&nt.escapedText==="arguments"}}var nVe=bt({"src/compiler/transformers/es2015.ts"(){"use strict";Qo()}});function Lle(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[kd(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),wr(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=tE(E);if(S!==void 0&&S>=83&&S<=118)return at(t.createStringLiteralFromNode(E),E)}}var rVe=bt({"src/compiler/transformers/es5.ts"(){"use strict";Qo()}});function iVe(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 kle(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,ee,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 Wg(Lt,e.readEmitHelpers()),Lt}function ve(Re){let Lt=Re.transformFlags;return A?Ie(Re):S?De(Re):Fs(Re)&&Re.asteriskToken?Et(Re):Lt&2048?Sn(Re,ve,e):Re}function Ie(Re){switch(Re.kind){case 246:return ua(Re);case 247:return vn(Re);case 255:return pt(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 se(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 Yt(Re);case 209:return qt(Re);case 210:return uo(Re);case 212:return Li(Re);case 213:return Eo(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 R.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,Ft(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,Ft(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 Ft(Re){let Lt=[],Un=S,go=A,Jo=N,$o=D,Ql=w,gc=j,ll=K,hl=Y,Gl=B,Zl=ce,Hc=z,cf=ee,Bu=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,ee=void 0,me=t.createTempVariable(void 0),i();let Du=t.copyPrologue(Re.statements,Lt,!1,ve);Ur(Re.statements,Du);let Pf=$();return qh(Lt,o()),Lt.push(t.createReturnStatement(Pf)),S=Un,A=go,N=Jo,D=$o,w=Ql,j=gc,K=ll,Y=hl,B=Gl,ce=Zl,z=Hc,ee=cf,me=Bu,at(t.createBlock(Lt,Re.multiLine),Re)}function _t(Re){if(Re.transformFlags&1048576){li(Re.declarationList);return}else{if(Fa(Re)&2097152)return Re;for(let Un of Re.declarationList.declarations)l(Un.name);let Lt=ON(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 ft(Re);default:return R.assertNever(Lt)}}function ft(Re){let{left:Lt,right:Un}=Re;if(U(Un)){let go;switch(Lt.kind){case 211:go=t.updatePropertyAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,Yu))),Lt.name);break;case 212:go=t.updateElementAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,Yu))),H(R.checkDefined(Qe(Lt.argumentExpression,ve,ht))));break;default:go=R.checkDefined(Qe(Lt,ve,ht));break}let Jo=Re.operatorToken.kind;return PP(Jo)?at(t.createAssignment(go,at(t.createBinaryExpression(H(go),MP(Jo),R.checkDefined(Qe(Un,ve,ht))),Re)),Re):t.updateBinaryExpression(Re,go,Re.operatorToken,R.checkDefined(Qe(Un,ve,ht)))}return Sn(Re,ve,e)}function Zt(Re){return U(Re.right)?Kie(Re.operatorToken.kind)?Kn(Re):Re.operatorToken.kind===28?en(Re):t.updateBinaryExpression(Re,H(R.checkDefined(Qe(Re.left,ve,ht))),Re.operatorToken,R.checkDefined(Qe(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(go){ur(go)&&go.operatorToken.kind===28?(Un(go.left),Un(go.right)):(U(go)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(go,ve,ht))))}}function Dn(Re){let Lt=[];for(let Un of Re.elements)ur(Un)&&Un.operatorToken.kind===28?Lt.push(en(Un)):(U(Un)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(Un,ve,ht))));return t.inlineExpressions(Lt)}function Kn(Re){let Lt=We(),Un=ue();return sl(Un,R.checkDefined(Qe(Re.left,ve,ht)),Re.left),Re.operatorToken.kind===56?Gs(Lt,Un,Re.left):tn(Lt,Un,Re.left),sl(Un,R.checkDefined(Qe(Re.right,ve,ht)),Re.right),Ne(Lt),Un}function pn(Re){if(U(Re.whenTrue)||U(Re.whenFalse)){let Lt=We(),Un=We(),go=ue();return Gs(Lt,R.checkDefined(Qe(Re.condition,ve,ht)),Re.condition),sl(go,R.checkDefined(Qe(Re.whenTrue,ve,ht)),Re.whenTrue),Mo(Un),Ne(Lt),sl(go,R.checkDefined(Qe(Re.whenFalse,ve,ht)),Re.whenFalse),Ne(Un),go}return Sn(Re,ve,e)}function Yt(Re){let Lt=We(),Un=Qe(Re.expression,ve,ht);if(Re.asteriskToken){let go=Fa(Re.expression)&8388608?Un:at(r().createValuesHelper(Un),Re);ed(go,Re)}else cd(Un,Re);return Ne(Lt),Nf(Re)}function qt(Re){return hi(Re.elements,void 0,void 0,Re.multiLine)}function hi(Re,Lt,Un,go){let Jo=Me(Re),$o;if(Jo>0){$o=ue();let ll=zn(Re,ve,ht,0,Jo);sl($o,t.createArrayLiteralExpression(Lt?[Lt,...ll]:ll)),Lt=void 0}let Ql=ru(Re,gc,[],Jo);return $o?t.createArrayConcatCall($o,[t.createArrayLiteralExpression(Ql,go)]):at(t.createArrayLiteralExpression(Lt?[Lt,...Ql]:Ql,go),Un);function gc(ll,hl){if(U(hl)&&ll.length>0){let Gl=$o!==void 0;$o||($o=ue()),sl($o,Gl?t.createArrayConcatCall($o,[t.createArrayLiteralExpression(ll,go)]):t.createArrayLiteralExpression(Lt?[Lt,...ll]:ll,go)),Lt=void 0,ll=[]}return ll.push(R.checkDefined(Qe(hl,ve,ht))),ll}}function uo(Re){let Lt=Re.properties,Un=Re.multiLine,go=Me(Lt),Jo=ue();sl(Jo,t.createObjectLiteralExpression(zn(Lt,ve,Ng,0,go),Un));let $o=ru(Lt,Ql,[],go);return $o.push(Un?Jd(Va(at(t.cloneNode(Jo),Jo),Jo.parent)):Jo),t.inlineExpressions($o);function Ql(gc,ll){U(ll)&&gc.length>0&&(xl(t.createExpressionStatement(t.inlineExpressions(gc))),gc=[]);let hl=kae(t,Re,ll,Jo),Gl=Qe(hl,ve,ht);return Gl&&(Un&&Jd(Gl),gc.push(Gl)),gc}}function Li(Re){return U(Re.argumentExpression)?t.updateElementAccessExpression(Re,H(R.checkDefined(Qe(Re.expression,ve,Yu))),R.checkDefined(Qe(Re.argumentExpression,ve,ht))):Sn(Re,ve,e)}function Eo(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(R.checkDefined(Qe(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(R.checkDefined(Qe(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 go=Lt;go0)break;Jo.push(yi(Ql))}Jo.length&&(xl(t.createExpressionStatement(t.inlineExpressions(Jo))),go+=Jo.length,Jo=[])}}function yi(Re){return Ra(t.createAssignment(Ra(t.cloneNode(Re.name),Re.name),R.checkDefined(Qe(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;Gs(Re.elseStatement?Un:Lt,R.checkDefined(Qe(Re.expression,ve,ht)),Re.expression),Er(Re.thenStatement),Re.elseStatement&&(Mo(Lt),Ne(Un),Er(Re.elseStatement)),Ne(Lt)}else xl(Qe(Re,ve,Hi));else xl(Qe(Re,ve,Hi))}function Ao(Re){if(U(Re)){let Lt=We(),Un=We();Pi(Lt),Ne(Un),Er(Re.statement),Ne(Lt),tn(Un,R.checkDefined(Qe(Re.expression,ve,ht))),Ri()}else xl(Qe(Re,ve,Hi))}function ua(Re){return A?(ho(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function za(Re){if(U(Re)){let Lt=We(),Un=Pi(Lt);Ne(Lt),Gs(Un,R.checkDefined(Qe(Re.expression,ve,ht))),Er(Re.statement),Mo(Lt),Ri()}else xl(Qe(Re,ve,Hi))}function vn(Re){return A?(ho(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function kn(Re){if(U(Re)){let Lt=We(),Un=We(),go=Pi(Un);if(Re.initializer){let Jo=Re.initializer;Vc(Jo)?li(Jo):xl(at(t.createExpressionStatement(R.checkDefined(Qe(Jo,ve,ht))),Jo))}Ne(Lt),Re.condition&&Gs(go,R.checkDefined(Qe(Re.condition,ve,ht))),Er(Re.statement),Ne(Un),Re.incrementor&&xl(at(t.createExpressionStatement(R.checkDefined(Qe(Re.incrementor,ve,ht))),Re.incrementor)),Mo(Lt),Ri()}else xl(Qe(Re,ve,Hi))}function Be(Re){A&&ho();let Lt=Re.initializer;if(Lt&&Vc(Lt)){for(let go of Lt.declarations)l(go.name);let Un=ON(Lt);Re=t.updateForStatement(Re,Un.length>0?t.inlineExpressions(mn(Un,yi)):void 0,Qe(Re.condition,ve,ht),Qe(Re.incrementor,ve,ht),Iu(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(),go=ue(),Jo=t.createLoopVariable(),$o=Re.initializer;l(Jo),sl(Lt,R.checkDefined(Qe(Re.expression,ve,ht))),sl(Un,t.createArrayLiteralExpression()),xl(t.createForInStatement(go,Lt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Un,"push"),void 0,[go])))),sl(Jo,t.createNumericLiteral(0));let Ql=We(),gc=We(),ll=Pi(gc);Ne(Ql),Gs(ll,t.createLessThan(Jo,t.createPropertyAccessExpression(Un,"length"))),sl(go,t.createElementAccessExpression(Un,Jo)),Gs(gc,t.createBinaryExpression(go,103,Lt));let hl;if(Vc($o)){for(let Gl of $o.declarations)l(Gl.name);hl=t.cloneNode($o.declarations[0].name)}else hl=R.checkDefined(Qe($o,ve,ht)),R.assert(Yu(hl));sl(hl,go),Er(Re.statement),Ne(gc),xl(t.createExpressionStatement(t.createPostfixIncrement(Jo))),Mo(Ql),Ri()}else xl(Qe(Re,ve,Hi))}function lt(Re){A&&ho();let Lt=Re.initializer;if(Vc(Lt)){for(let Un of Lt.declarations)l(Un.name);Re=t.updateForInStatement(Re,Lt.declarations[0].name,R.checkDefined(Qe(Re.expression,ve,ht)),R.checkDefined(Qe(Re.statement,ve,Hi,t.liftToBlock)))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function Rt(Re){let Lt=la(Re.label?yr(Re.label):void 0);Lt>0?Mo(Lt,Re):xl(Re)}function se(Re){if(A){let Lt=la(Re.label&&yr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function ke(Re){let Lt=mo(Re.label?yr(Re.label):void 0);Lt>0?Mo(Lt,Re):xl(Re)}function st(Re){if(A){let Lt=mo(Re.label&&yr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function G(Re){Ep(Qe(Re.expression,ve,ht),Re)}function et(Re){return pl(Qe(Re.expression,ve,ht),Re)}function Tt(Re){U(Re)?(wn(H(R.checkDefined(Qe(Re.expression,ve,ht)))),Er(Re.statement),Bn()):xl(Qe(Re,ve,Hi))}function He(Re){if(U(Re.caseBlock)){let Lt=Re.caseBlock,Un=Lt.clauses.length,go=Io(),Jo=H(R.checkDefined(Qe(Re.expression,ve,ht))),$o=[],Ql=-1;for(let hl=0;hl0)break;ll.push(t.createCaseClause(R.checkDefined(Qe(Zl.expression,ve,ht)),[Ca($o[Gl],Zl.expression)]))}else hl++}ll.length&&(xl(t.createSwitchStatement(Jo,t.createCaseBlock(ll))),gc+=ll.length,ll=[]),hl>0&&(gc+=hl,hl=0)}Ql>=0?Mo($o[Ql]):Mo(go);for(let hl=0;hl=0;Un--){let go=j[Un];if(Bs(go)){if(go.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(Bs(Un)&&Un.labelText===Re)return Un.breakLabel;if(ss(Un)&&sd(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(_l(Un)&&sd(Re,Lt-1))return Un.continueLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(_l(Un))return Un.continueLabel}return 0}function ld(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 Ss(Re){let Lt=t.createNumericLiteral(Re);return n4(Lt,3,iVe(Re)),Lt}function Ca(Re,Lt){return R.assertLessThan(0,Re,"Invalid label"),at(t.createReturnStatement(t.createArrayLiteralExpression([Ss(3),ld(Re)])),Lt)}function pl(Re,Lt){return at(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Ss(2),Re]:[Ss(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 sl(Re,Lt,Un){de(2,[Re,Lt],Un)}function Mo(Re,Lt){de(3,[Re],Lt)}function tn(Re,Lt,Un){de(4,[Re,Lt],Un)}function Gs(Re,Lt,Un){de(5,[Re,Lt],Un)}function ed(Re,Lt){de(7,[Re],Lt)}function cd(Re,Lt){de(6,[Re],Lt)}function Ep(Re,Lt){de(8,[Re],Lt)}function Cs(Re,Lt){de(9,[Re],Lt)}function Ac(){de(10)}function de(Re,Lt,Un){ce===void 0&&(ce=[],z=[],ee=[]),K===void 0&&Ne(We());let go=ce.length;ce[go]=Re,z[go]=Lt,ee[go]=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(cr(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:go,endLabel:Jo}=he;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(me,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ld(Lt),ld(Un),ld(go),ld(Jo)])]))),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(yr(Ne))),We),r.createVoidZero())));Tn(Me,Qe(D.externalHelpersImportDeclaration,J,Hi)),Hr(Me,zn(U.statements,J,Hi,k)),q(Me,!1),qh(Me,s());let ie=r.updateSourceFile(U,at(r.createNodeArray(Me),U.statements));return Wg(ie,e.readEmitHelpers()),ie}function ce(U){let Me=r.createIdentifier("define"),Nt=Hk(r,U,h,d),k=Jf(U)&&U,{aliasedModuleNames:ie,unaliasedModuleNames:H,importAliasNames:ue}=ee(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 Wg(We,e.readEmitHelpers()),We}function z(U){let{aliasedModuleNames:Me,unaliasedModuleNames:Nt,importAliasNames:k}=ee(U,!1),ie=Hk(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")]))]),cr(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 Wg(ue,e.readEmitHelpers()),ue}function ee(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?(cr(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(Zc(U)||Xl(U)||!s1(r,U,N,h,p,d))return;let Me=FR(r,U,N),Nt=Eo(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(ru(D.exportedNames,(ie,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(yr(H))),ie),r.createVoidZero()))),Tn(Me,Qe(D.externalHelpersImportDeclaration,J,Hi)),y===2&&Hr(Me,to(D.externalImports,me)),Hr(Me,zn(U.statements,J,Hi,Nt)),q(Me,!0),qh(Me,s());let k=r.createBlock(Me,!0);return j&&VI(k,UIe),k}function q(U,Me){if(D.exportEquals){let Nt=Qe(D.exportEquals.expression,xe,ht);if(Nt)if(Me){let k=r.createReturnStatement(Nt);at(k,D.exportEquals),cr(k,3840),U.push(k)}else{let k=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Nt));at(k,D.exportEquals),cr(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 li(U);case 262:return Wt(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 Ie(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 Ft(U);case 297:return _t(U);case 258:return Je(U);case 299:return ft(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 Yt(U);break;case 226:if(Oy(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:R.assertNever(Me,"Unhandled object member kind")}else if(fu(U)){for(let Me of U.elements)if(qm(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&&Vc(U.initializer)&&!(U.initializer.flags&7)){let Nt=vn(void 0,U.initializer,!1);if(Nt){let k=[],ie=Qe(U.initializer,fe,Vc),H=r.createVariableStatement(void 0,ie);k.push(H),Hr(k,Nt);let ue=Qe(U.condition,xe,ht),We=Qe(U.incrementor,fe,ht),Ne=Iu(U.statement,Me?re:xe,e);return k.push(r.updateForStatement(U,void 0,ue,We,Ne)),k}}return r.updateForStatement(U,Qe(U.initializer,fe,vf),Qe(U.condition,xe,ht),Qe(U.incrementor,fe,ht),Iu(U.statement,Me?re:xe,e))}function Ge(U){if(Vc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0);if(gt(Me)){let Nt=Qe(U.initializer,fe,vf),k=Qe(U.expression,xe,ht),ie=Iu(U.statement,re,e),H=Uo(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0);return r.updateForInStatement(U,Nt,k,H)}}return r.updateForInStatement(U,Qe(U.initializer,fe,vf),Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function ve(U){if(Vc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0),Nt=Qe(U.initializer,fe,vf),k=Qe(U.expression,xe,ht),ie=Iu(U.statement,re,e);return gt(Me)&&(ie=Uo(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,Qe(U.initializer,fe,vf),Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function Ie(U){return r.updateDoStatement(U,Iu(U.statement,re,e),Qe(U.expression,xe,ht))}function De(U){return r.updateWhileStatement(U,Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function Le(U){return r.updateLabeledStatement(U,U.label,R.checkDefined(Qe(U.statement,re,Hi,r.liftToBlock)))}function Et(U){return r.updateWithStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.statement,re,Hi,r.liftToBlock)))}function be(U){return r.updateIfStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.thenStatement,re,Hi,r.liftToBlock)),Qe(U.elseStatement,re,Hi,r.liftToBlock))}function ze(U){return r.updateSwitchStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.caseBlock,re,fP)))}function tt(U){return r.updateCaseBlock(U,zn(U.clauses,re,mF))}function Ft(U){return r.updateCaseClause(U,Qe(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 ft(U){return r.updateCatchClause(U,U.variableDeclaration,R.checkDefined(Qe(U.block,re,Uo)))}function Zt(U){return U=Sn(U,re,e),U}function en(U){return r.updateExpressionStatement(U,Qe(U.expression,fe,ht))}function Dn(U,Me){return r.updateParenthesizedExpression(U,Qe(U.expression,Me?fe:xe,ht))}function Kn(U,Me){return r.updatePartiallyEmittedExpression(U,Qe(U.expression,Me?fe:xe,ht))}function pn(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!il(U.operand)&&!zg(U.operand)&&!$j(U.operand)){let Nt=un(U.operand);if(Nt){let k,ie=Qe(U.operand,xe,ht);Xv(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 Yt(U){if(y===0&&m>=7)return Sn(U,xe,e);let Me=s1(r,U,N,h,p,d),Nt=Qe(Jc(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 qt(k??r.createVoidZero(),ie);case 1:default:return uo(k)}}function qt(U,Me){if(j=!0,nS(U)){let Nt=il(U)?U:Da(U)?r.createStringLiteralFromNode(U):cr(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&&cr(ue,16));let We=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ue]);return _h(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]:[]);_h(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!_h(d)||ym(U)&2?Me:nle(U)?i().createImportStarHelper(Me):Me}function Eo(U,Me){return!_h(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,Eo(U,Ur(U)))):(k.push(r.createVariableDeclaration(r.getGeneratedNameForNode(U),void 0,void 0,Eo(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=Ao(Me,U),ih(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){R.assert(sE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return y!==2?Qr(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)):Qr(U,32)&&(Me=Tn(Me,xr(at(r.createExpressionStatement(ke(r.getExportName(U),r.getLocalName(U))),U),U))),Me=ua(Me,U),ih(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=!!_h(d)&&!(ym(U)&2)&&yr(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 ih(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(yr(U.exportClause.name))))),U),U)),ih(Nt)}else return xr(at(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ur(U):Me)),U),U)}function Ye(U){if(!U.isExportEquals)return se(r.createIdentifier("default"),Qe(U.expression,xe,ht),U,!0)}function Wt(U){let Me;return Qr(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,To),void 0,Sn(U.body,xe,e)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),ih(Me)}function In(U){let Me;return Qr(U,32)?Me=Tn(Me,xr(at(r.createClassDeclaration(zn(U.modifiers,st,ol),r.getDeclarationName(U,!0,!0),void 0,zn(U.heritageClauses,xe,ef),zn(U.members,xe,Xc)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),ih(Me)}function li(U){let Me,Nt,k;if(Qr(U,32)){let ie,H=!1;for(let ue of U.declarationList.declarations)if(Fe(ue.name)&&zg(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,Qe(ue.initializer,xe,ht)));Nt=Tn(Nt,We)}else Nt=Tn(Nt,ue);else if(ue.initializer)if(!Yo(ue.name)&&(zs(ue.initializer)||Ls(ue.initializer)||$c(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,Qe(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&&Ak(ue),Me=Tn(Me,ue)}}else Me=Tn(Me,Sn(U,xe,e));return Me=za(Me,U),ih(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)cr(ie,8),ie=ke(H,ie,Nt);return ie}return r.createAssignment(U,Me)}function $i(U){return Yo(U.name)?UT(Qe(U,xe,ik),xe,e,0,!1,yi):r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),U.name),U.name),U.initializer?Qe(U.initializer,xe,ht):r.createVoidZero())}function Ao(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 za(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(Yo(Me.name))for(let k of Me.name.elements)Gc(k)||(U=kn(U,k,Nt));else!il(Me.name)&&(!Oi(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(Qr(Me,32)){let k=Qr(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,se(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())])])),cr(U,2097152),U}function se(U,Me,Nt,k,ie){let H=at(r.createExpressionStatement(ke(U,Me,void 0,ie)),Nt);return Jd(H),k||cr(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[kd(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 pt(U);case 215:return Bt(U);case 226:return dn(U)}return U}function pt(U){if(Fe(U.expression)){let Me=hn(U.expression);if(w[rs(Me)]=!0,!Fe(Me)&&!(Fa(U.expression)&8192))return BI(r.updateCallExpression(U,Me,void 0,U.arguments),16)}return U}function Bt(U){if(Fe(U.tag)){let Me=hn(U.tag);if(w[rs(Me)]=!0,!Fe(Me)&&!(Fa(U.tag)&8192))return BI(r.updateTaggedTemplateExpression(U,Me,void 0,U.template),16)}return U}function hn(U){var Me,Nt;if(Fa(U)&8192){let k=Uk(N);return k?r.createPropertyAccessExpression(k,U):U}else if(!(il(U)&&!(U.emitNode.autoGenerate.flags&64))&&!zg(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(yh(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(wy(U.operatorToken.kind)&&Fe(U.left)&&(!il(U.left)||n2(U.left))&&!zg(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(il(U)){if(n2(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[kd(Me)];let Nt=new Set,k=p.getReferencedValueDeclarations(U);if(k){for(let ie of k){let H=D?.exportedBindings[kd(ie)];if(H)for(let ue of H)Nt.add(ue)}if(Nt.size)return Oo(Nt)}}}}var UIe,aVe=bt({"src/compiler/transformers/module/module.ts"(){"use strict";Qo(),UIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function wle(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=se,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=kd(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=Hk(t,U,d,s),ue=t.createArrayLiteralExpression(mn(Nt,Ne=>Ne.name)),We=cr(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 Ds(s)||Zoe(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=uu(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")))]))),Qe(N.externalHelpersImportDeclaration,q,Hi);let H=zn(U.statements,q,Hi,ie);Hr(Nt,j),qh(Nt,i());let ue=ee(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 ee(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([cr(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:R.assert(Ne!==void 0),ue.push(t.createExpressionStatement(t.createAssignment(Ne,H))),Qr(We,32)&&ue.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(yr(Ne)),H])));break;case 278:if(R.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(yr(Dt.name)),t.createElementAccessExpression(H,t.createStringLiteral(yr(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(yr(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)),ih(Et(Me,U))}function re(U){R.assertIsDefined(U)}function pe(U){R.assert(sE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return o(FR(t,U,A)),ih(be(Me,U))}function xe(U){if(U.isExportEquals)return;let Me=Qe(U.expression,$i,ht);return ft(t.createIdentifier("default"),Me,!0)}function fe(U){Qr(U,32)?j=Tn(j,t.updateFunctionDeclaration(U,zn(U.modifiers,Rt,ol),U.asteriskToken,t.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,$i,To),void 0,Qe(U.body,$i,Uo))):j=Tn(j,Sn(U,$i,e)),j=Ft(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,ol),U.name,void 0,zn(U.heritageClauses,$i,ef),zn(U.members,$i,Xc)),U))),U)),Me=Ft(Me,U),ih(Me)}function he(U){if(!Ge(U.declarationList))return Qe(U,$i,Hi);let Me;if(b2(U.declarationList)||v2(U.declarationList)){let Nt=zn(U.modifiers,Rt,ol),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=Qr(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),ih(Me)}function Ce(U){if(Yo(U.name))for(let Me of U.name.elements)Gc(Me)||Ce(Me);else o(t.cloneNode(U.name))}function Ge(U){return(Fa(U)&4194304)===0&&(K.kind===312||(Cl(U).flags&7)===0)}function ve(U,Me){let Nt=Me?Ie:De;return Yo(U.name)?UT(U,$i,e,0,!1,Nt):U.initializer?Nt(U.name,Qe(U.initializer,$i,ht)):U.name}function Ie(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(Yo(Me.name))for(let k of Me.name.elements)Gc(k)||(U=tt(U,k,Nt));else if(!il(Me.name)){let k;Nt&&(U=Je(U,Me.name,t.getLocalName(Me)),k=yr(Me.name)),U=_t(U,Me,k)}return U}function Ft(U,Me){if(N.exportEquals)return U;let Nt;if(Qr(Me,32)){let k=Qr(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,ft(Me,Nt,k)),U}function ft(U,Me,Nt){let k=t.createExpressionStatement(Zt(U,Me));return Jd(k),Nt||cr(k,3072),k}function Zt(U,Me){let Nt=Fe(U)?t.createStringLiteralFromNode(U):U;return cr(Me,Fa(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 Eo(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 Wt(U);case 299:return In(U);case 241:return li(U);default:return $i(U)}}function Dn(U,Me){let Nt=K;return K=U,U=t.updateForStatement(U,Qe(U.initializer,Me?qt:Ao,vf),Qe(U.condition,$i,ht),Qe(U.incrementor,Ao,ht),Iu(U.statement,Me?en:$i,e)),K=Nt,U}function Kn(U){let Me=K;return K=U,U=t.updateForInStatement(U,qt(U.initializer),Qe(U.expression,$i,ht),Iu(U.statement,en,e)),K=Me,U}function pn(U){let Me=K;return K=U,U=t.updateForOfStatement(U,U.awaitModifier,qt(U.initializer),Qe(U.expression,$i,ht),Iu(U.statement,en,e)),K=Me,U}function Yt(U){return Vc(U)&&Ge(U)}function qt(U){if(Yt(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 Qe(U,Ao,vf)}function hi(U){return t.updateDoStatement(U,Iu(U.statement,en,e),Qe(U.expression,$i,ht))}function uo(U){return t.updateWhileStatement(U,Qe(U.expression,$i,ht),Iu(U.statement,en,e))}function Li(U){return t.updateLabeledStatement(U,U.label,R.checkDefined(Qe(U.statement,en,Hi,t.liftToBlock)))}function Eo(U){return t.updateWithStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.statement,en,Hi,t.liftToBlock)))}function Qn(U){return t.updateIfStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.thenStatement,en,Hi,t.liftToBlock)),Qe(U.elseStatement,en,Hi,t.liftToBlock))}function Ur(U){return t.updateSwitchStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.caseBlock,en,fP)))}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,Qe(U.expression,$i,ht),zn(U.statements,en,Hi))}function Ye(U){return Sn(U,en,e)}function Wt(U){return Sn(U,en,e)}function In(U){let Me=K;return K=U,U=t.updateCatchClause(U,U.variableDeclaration,R.checkDefined(Qe(U.block,en,Uo))),K=Me,U}function li(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 za(U,Me);case 360:return vn(U,Me);case 226:if(Oy(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 Ao(U){return yi(U,!0)}function ua(U){return t.updateExpressionStatement(U,Qe(U.expression,Ao,ht))}function za(U,Me){return t.updateParenthesizedExpression(U,Qe(U.expression,Me?Ao:$i,ht))}function vn(U,Me){return t.updatePartiallyEmittedExpression(U,Qe(U.expression,Me?Ao:$i,ht))}function kn(U){let Me=s1(t,U,A,d,l,s),Nt=Qe(Jc(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(Pc(U,!0))return ct(U.left);if(qm(U))return ct(U.expression);if(Ma(U))return gt(U.properties,ct);if(fu(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)&&!il(U.operand)&&!zg(U.operand)&&!$j(U.operand)){let Nt=Bt(U.operand);if(Nt){let k,ie=Qe(U.operand,$i,ht);Xv(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 se(U,Me,Nt){if(Me.kind===312){let k=kd(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(!il(k)&&!zg(k)){let ie=l.getReferencedImportDeclaration(k);if(ie){if(yh(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 pt(U)}return U}function Tt(U){var Me,Nt;if(Fa(U)&8192){let k=Uk(A);return k?t.createPropertyAccessExpression(k,U):U}if(!il(U)&&!zg(U)){let k=l.getReferencedImportDeclaration(U);if(k){if(yh(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(wy(U.operatorToken.kind)&&Fe(U.left)&&(!il(U.left)||n2(U.left))&&!zg(U.left)){let Me=Bt(U.left);if(Me){let Nt=U;for(let k of Me)Nt=Zt(k,dn(Nt));return Nt}}return U}function pt(U){return Jx(U)?t.createPropertyAccessExpression(w,t.createIdentifier("meta")):U}function Bt(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[kd(Nt)])}else if(il(U)&&n2(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(!il(U)){let Me=l.getReferencedImportDeclaration(U);if(Me)return Me;let Nt=l.getReferencedValueDeclaration(U);if(Nt&&N?.exportedBindings[kd(Nt)])return Nt;let k=l.getReferencedValueDeclarations(U);if(k){for(let ie of k)if(ie!==Nt&&N?.exportedBindings[kd(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 sVe=bt({"src/compiler/transformers/module/system.ts"(){"use strict";Qo()}});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 ee=S(z);return m=void 0,y&&(ee=t.updateSourceFile(ee,at(t.createNodeArray(jV(ee.statements.slice(),y)),ee.statements))),!oc(z)||Md(s)===200||gt(ee.statements,s2)?ee:t.updateSourceFile(ee,at(t.createNodeArray([...ee.statements,Gk(t)]),ee.statements))}return z}function S(z){let ee=bH(t,r(),z,s);if(ee){let me=[],ge=t.copyPrologue(z.statements,me);return Tn(me,ee),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 Md(s)>=100?D(z):void 0;case 277:return j(z);case 278:return K(z)}return z}function N(z){let ee=s1(t,z,R.checkDefined(m),i,o,s),me=[];if(ee&&me.push(ee),Md(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 R.assertNode(ge,Fe),t.createCallExpression(t.cloneNode(ge),void 0,me)}function D(z){R.assert(sE(z),"import= for internal module references should be handled in an earlier transformer.");let ee;return ee=Tn(ee,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)),ee=w(ee,z),ih(ee)}function w(z,ee){return Qr(ee,32)&&(z=Tn(z,t.createExportDeclaration(void 0,ee.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,yr(ee.name))])))),z}function j(z){return z.isExportEquals?Md(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||!vh(z.exportClause)||!z.moduleSpecifier)return z;let ee=z.exportClause.name,me=t.getGeneratedNameForNode(ee),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,ee)]));return xr(q,z),[ge,q]}function Y(z,ee,me){Yi(ee)?((oc(ee)||em(s))&&s.importHelpers&&(h=new Map),d(z,ee,me),h=void 0):d(z,ee,me)}function B(z,ee){return ee=p(z,ee),h&&Fe(ee)&&Fa(ee)&8192?ce(ee):ee}function ce(z){let ee=yr(z),me=h.get(ee);return me||h.set(ee,me=t.createUniqueName(ee,48)),me}}var lVe=bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Qo()}});function Ole(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,R.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 cVe=bt({"src/compiler/transformers/module/node.ts"(){"use strict";Qo()}});function H3(e){return Oi(e)||Vo(e)||_p(e)||qa(e)||Py(e)||Mv(e)||Lk(e)||XI(e)||Ul(e)||hh(e)||Ec(e)||To(e)||ml(e)||Gy(e)||Zc(e)||Tm(e)||Nl(e)||V0(e)||wr(e)||Xs(e)||ur(e)||qf(e)}function Wle(e){if(Py(e)||Mv(e))return t;return hh(e)||Ul(e)?i:jy(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 na(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 na(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 jy(e){if(Oi(e)||Vo(e)||_p(e)||wr(e)||Xs(e)||ur(e)||qa(e)||Nl(e))return r;return Py(e)||Mv(e)?i:Lk(e)||XI(e)||Ul(e)||hh(e)||Ec(e)||V0(e)?o:To(e)?dp(e,e.parent)&&Qr(e.parent,2)?r:s:ml(e)?d:Gy(e)?p:Zc(e)?h:Tm(e)||qf(e)?m:R.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${R.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&&Qr(e.parent,2))return na(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?na(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:na(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:na(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 R.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 na(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 R.fail(`Unknown parent for parameter: ${R.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:na(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 R.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=ef(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:No(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)?R.checkDefined(e.typeExpression):e.type,typeName:qf(e)?No(e):e.name}}}var dVe=bt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Qo()}});function Fle(e,t,r){let i=e.getCompilerOptions();return Iw(t,e,L,i,r?[r]:jr(e.getSourceFiles(),uj),[VK],!1).diagnostics}function VK(e){let t=()=>R.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:Ie,reportTruncationError:De,moduleResolverHost:N,trackReferencedAmbientModule:J,trackExternalModuleSymbolOfImportTypeNode:xe,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Et},w,j,K,Y,B,ce,z=e.getEmitResolver(),ee=e.getCompilerOptions(),{noResolve:me,stripInternal:ge}=ee;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(kd(He),He)}function re(G){let et=eR(G),Tt=et&&z.tryFindAmbientModule(et);if(Tt?.declarations)for(let He of Tt.declarations)Pd(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?Is(w):j&&No(j)?Is(No(j)):j&&Ml(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 Ie(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 pt=(He=et.declarations)==null?void 0:He.find(hn=>Gn(hn)===G),Bt=jr(Tt.declarations,hn=>Gn(hn)!==G);if(pt&&Bt)for(let hn of Bt)e.addDiagnostic(Pa(Pr(hn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Pr(pt,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=pt=>pt.errorNode&&H3(pt.errorNode)?jy(pt.errorNode)(pt):{diagnosticMessage:pt.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:pt.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),Ft(H,B),wp(H)||Jf(H)){s=!1,i=!1;let We=cu(H)?A.createNodeArray(be(H,!0)):zn(H.statements,li,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=cu(H)?A.createNodeArray(be(H)):zn(H.statements,li,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])),Ft(ue,B),ue}return H}));Nt.syntheticFileReferences=[],Nt.syntheticTypeReferences=dn(),Nt.syntheticLibReferences=hn(),Nt.hasNoDefaultLib=Me;let k=ai(Nd(BP(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=Ft(K,new Map);let et=[],Tt=ai(Nd(BP(G,N,!0).declarationFilePath)),He=U(et,Tt),pt;if(cu(K))pt=A.createNodeArray(be(G)),Y.forEach(He),ce=jr(pt,pT);else{let Me=zn(G.statements,li,Hi);pt=at(A.createNodeArray(Ye(Me)),G.statements),Y.forEach(He),ce=jr(pt,pT),oc(G)&&(!s||l&&!d)&&(pt=at(A.createNodeArray([...pt,Gk(A)]),pt))}let Bt=A.updateSourceFile(G,pt,!0,et,dn(),G.hasNoDefaultLib,hn());return Bt.exportedModulesFromDeclarationEmit=S,Bt;function hn(){return Oo(B.keys(),Me=>({fileName:Me,pos:-1,end:-1}))}function dn(){return h?to(Oo(h.keys()),un):[]}function un([Me,Nt]){if(ce){for(let k of ce)if(Zc(k)&&bh(k.moduleReference)){let ie=k.moduleReference.expression;if(as(ie)&&ie.text===Me)return}else if(Mc(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&&zo(G.sourceFiles,k))return;let H=BP(k,N,!0);ie=H.declarationFilePath||H.jsFilePath||k.fileName}if(ie){let H=x3(ee,K,_o(Nt,N.getCurrentDirectory()),_o(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/")||AE(ue))return;Me.push({pos:-1,end:-1,fileName:ue})}}}}function tt(G,et){return me||!WT(G)&&cu(G)||gn(G.referencedFiles,Tt=>{let He=N.getSourceFileFromReference(G,Tt);He&&et.set(kd(He),He)}),et}function Ft(G,et){return gn(G.libReferenceDirectives,Tt=>{N.getLibFileFromReference(Tt)&&et.set(oh(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,qa));function et(Tt){return Tt.kind===232?Tt:(Tt.propertyName&&Xa(Tt.propertyName)&&Bl(Tt.propertyName.expression)&&Li(Tt.propertyName.expression,p),A.updateBindingElement(Tt,Tt.dotDotDotToken,Tt.propertyName,_t(Tt.name),ft(Tt)?Tt.initializer:void 0))}}function Je(G,et,Tt){let He;E||(He=r,r=jy(G));let pt=A.updateParameterDeclaration(G,pVe(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),pt}function ft(G){return fVe(G)&&z.isLiteralConstDeclaration(Ro(G))}function Zt(G){if(ft(G))return z.createLiteralConstValue(Ro(G),D)}function en(G,et,Tt){if(!Tt&&fp(G,2)||ft(G))return;let He=G.kind===169&&(z.isRequiredInitializedParameter(G)||z.isOptionalUninitializedParameterProperty(G));if(et&&!He)return Qe(et,Wt,ji);if(!Ro(G))return et?Qe(et,Wt,ji):A.createKeywordTypeNode(133);if(G.kind===178)return A.createKeywordTypeNode(133);w=G.name;let pt;if(E||(pt=r,r=jy(G)),G.kind===260||G.kind===208)return Bt(z.createTypeOfDeclaration(G,p,HT,D));if(G.kind===169||G.kind===172||G.kind===171)return _p(G)||!G.initializer?Bt(z.createTypeOfDeclaration(G,p,HT,D,He)):Bt(z.createTypeOfDeclaration(G,p,HT,D,He)||z.createTypeOfExpression(G.initializer,p,HT,D));return Bt(z.createReturnTypeOfSignatureDeclaration(G,p,HT,D));function Bt(hn){return w=void 0,E||(r=pt),hn||A.createKeywordTypeNode(133)}}function Dn(G){switch(G=Ro(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 Gc(G)?!1:Yo(G.name)?gt(G.name.elements,pn):z.isDeclarationVisible(G)}function Yt(G,et,Tt){if(fp(G,2))return A.createNodeArray();let He=mn(et,pt=>Je(pt,Tt));return He?A.createNodeArray(He,et.hasTrailingComma):A.createNodeArray()}function qt(G,et){let Tt;if(!et){let He=L0(G);He&&(Tt=[Je(He)])}if(hp(G)){let He;if(!et){let pt=CN(G);if(pt){let Bt=ke(G,z.getAllAccessorDeclarations(G));He=Je(pt,void 0,Bt)}}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,Wt,ml)}function uo(G){return Yi(G)||Tm(G)||ql(G)||Sc(G)||mu(G)||Xo(G)||V0(G)||CR(G)}function Li(G,et){let Tt=z.isEntityNameVisible(G,et);pe(Tt),q(z.getTypeReferenceDirectivesForEntityName(G))}function Eo(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=Cie(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=gN(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,Qn(G,et)))}else{let et=r;return r=jy(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 R.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${R.formatSyntaxKind(Tt.kind)}`);let He=i;i=Tt.parent&&Yi(Tt.parent)&&!(oc(Tt.parent)&&o);let pt=Ao(Tt);i=He,y.set(kd(Tt),pt)}return zn(G,et,Hi);function et(Tt){if(RF(Tt)){let He=kd(Tt);if(y.has(He)){let pt=y.get(He);return y.delete(He),pt&&((So(pt)?gt(pt,uF):uF(pt))&&(l=!0),Yi(Tt.parent)&&(So(pt)?gt(pt,s2):s2(pt))&&(s=!0)),pt}}return Tt}}function Wt(G){if(Be(G)||Hd(G)&&(Dn(G)||Wv(G)&&!z.isLateBound(Ro(G)))||Xo(G)&&z.isImplementationOfOverload(G)||yae(G))return;let et;uo(G)&&(et=p,p=G);let Tt=r,He=H3(G),pt=E,Bt=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((Ul(G)||hh(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=jy(G)),YI(G)&&Li(G.exprName,p),Bt&&(E=!0),_Ve(G))switch(G.kind){case 233:{(Xu(G.expression)||Bl(G.expression))&&Li(G.expression,p);let dn=Sn(G,Wt,e);return hn(A.updateExpressionWithTypeArguments(dn,dn.expression,dn.typeArguments))}case 183:{Li(G.typeName,p);let dn=Sn(G,Wt,e);return hn(A.updateTypeReferenceNode(dn,dn.typeName,dn.typeArguments))}case 180:return hn(A.updateConstructSignature(G,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type)));case 176:{let dn=A.createConstructorDeclaration(Rt(G),Yt(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),Yt(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,qt(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,qt(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),Yt(G,G.parameters),en(G,G.type)));case 179:return hn(A.updateCallSignature(G,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type)));case 181:return hn(A.updateIndexSignature(G,Rt(G),Yt(G,G.parameters),Qe(G.type,Wt,ji)||A.createKeywordTypeNode(133)));case 260:return Yo(G.name)?za(G.name):(Bt=!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,Wt,e));case 194:{let dn=Qe(G.checkType,Wt,ji),un=Qe(G.extendsType,Wt,ji),U=p;p=G.trueType;let Me=Qe(G.trueType,Wt,ji);p=U;let Nt=Qe(G.falseType,Wt,ji);return R.assert(dn),R.assert(un),R.assert(Me),R.assert(Nt),hn(A.updateConditionalTypeNode(G,dn,un,Me,Nt))}case 184:return hn(A.updateFunctionTypeNode(G,zn(G.typeParameters,Wt,ml),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Wt,ji))));case 185:return hn(A.updateConstructorTypeNode(G,Rt(G),zn(G.typeParameters,Wt,ml),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Wt,ji))));case 205:return Ov(G)?(re(G),hn(A.updateImportTypeNode(G,A.updateLiteralTypeNode(G.argument,Qn(G,G.argument.literal)),G.attributes,G.qualifier,zn(G.typeArguments,Wt,ji),G.isTypeOf))):hn(G);default:R.assertNever(G,`Attempted to process unhandled node kind: ${R.formatSyntaxKind(G.kind)}`)}return $I(G)&&ys(K,G.pos).line===ys(K,G.end).line&&cr(G,1),hn(Sn(G,Wt,e));function hn(dn){return dn&&He&&Wv(G)&&kn(G),uo(G)&&(p=et),He&&!E&&(r=Tt),Bt&&(E=pt),dn===G?dn:dn&&xr(Eo(dn,G),G)}}function In(G){return G.parent.kind===174&&fp(G.parent,2)}function li(G){if(!mVe(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 pt=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([He],2));return Eo(pt,G),Ak(G),[pt,A.updateExportAssignment(G,G.modifiers,Tt)]}}}let et=Ao(G);return y.set(kd(G),et),G}function yi(G){if(Zc(G)||fp(G,2048)||!Am(G))return G;let et=A.createModifiersFromModifierFlags(du(G)&131039);return A.replaceModifiers(G,et)}function $i(G,et,Tt,He){let pt=A.updateModuleDeclaration(G,et,Tt,He);if(Pd(pt)||pt.flags&32)return pt;let Bt=A.createModuleDeclaration(pt.modifiers,pt.name,pt.body,pt.flags|32);return xr(Bt,pt),at(Bt,pt),Bt}function Ao(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)||Xo(G)&&z.isImplementationOfOverload(G))return;let et;uo(G)&&(et=p,p=G);let Tt=H3(G),He=r;Tt&&(r=jy(G));let pt=i;switch(G.kind){case 265:{i=!1;let hn=Bt(A.updateTypeAliasDeclaration(G,Rt(G),G.name,zn(G.typeParameters,Wt,ml),R.checkDefined(Qe(G.type,Wt,ji))));return i=pt,hn}case 264:return Bt(A.updateInterfaceDeclaration(G,Rt(G),G.name,hi(G,G.typeParameters),st(G.heritageClauses),zn(G.members,Wt,lT)));case 262:{let hn=Bt(A.updateFunctionDeclaration(G,Rt(G),void 0,G.name,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type),void 0));if(hn&&z.isExpandoFunctionDeclaration(G)&&Kn(G)){let dn=z.getPropertiesOfContainerFunction(G),un=Eh.createModuleDeclaration(void 0,hn.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);Va(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(!$p(Ne,99))return;r=jy(We.valueDeclaration);let It=z.createTypeOfDeclaration(We.valueDeclaration,un,HT,D);r=He;let Dt=CI(Ne),Kt=Dt?A.getGeneratedNameForNode(We.valueDeclaration):A.createIdentifier(Ne);Dt&&U.push([Kt,Ne]);let En=A.createVariableDeclaration(Kt,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(du(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,li,Hi),Me=Ye(U);G.flags&33554432&&(l=!1),!E_(G)&&!lt(Me)&&!d&&(l?Me=A.createNodeArray([...Me,Gk(A)]):Me=zn(Me,yi,Hi));let Nt=A.updateModuleBlock(hn,Me);i=pt,l=dn,d=un;let k=Rt(G);return Bt($i(G,k,A0(G)?Qn(G,G.name):G.name,Nt))}else{i=pt;let dn=Rt(G);i=!1,Qe(hn,li);let un=kd(hn),U=y.get(un);return y.delete(un),Bt($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=eg(G),U;if(un){let ue=r;U=TL(va(un.parameters,We=>{if(!Qr(We,31)||Be(We))return;if(r=jy(We),We.name.kind===80)return Eo(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 Kt of It.elements)Gc(Kt)||(Yo(Kt.name)&&(Dt=bo(Dt,Ne(Kt.name))),Dt=Dt||[],Dt.push(A.createPropertyDeclaration(Rt(We),Kt.name,void 0,en(Kt,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=bo(bo(Nt,U),zn(G.members,Wt,Xc)),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,Kt=>{if(Kt.token===96){let En=r;r=jy(Kt.types[0]);let wn=A.updateHeritageClause(Kt,mn(Kt.types,Bn=>A.updateExpressionWithTypeArguments(Bn,We,zn(Bn.typeArguments,Wt,ji))));return r=En,wn}return A.updateHeritageClause(Kt,zn(A.createNodeArray(jr(Kt.types,En=>Bl(En.expression)||En.expression.kind===106)),Wt,Gy))}));return[It,Bt(A.updateClassDeclaration(G,hn,G.name,dn,Dt,ie))]}else{let ue=st(G.heritageClauses);return Bt(A.updateClassDeclaration(G,hn,G.name,dn,ue,ie))}}case 243:return Bt(ua(G));case 266:return Bt(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 Eo(A.updateEnumMember(hn,hn.name,un),hn)}))))}return R.assertNever(G,`Unhandled top-level node in declaration emit: ${R.formatSyntaxKind(G.kind)}`);function Bt(hn){return uo(G)&&(p=et),Tt&&(r=He),G.kind===267&&(i=pt),hn===G?hn:(j=void 0,w=void 0,hn&&xr(Eo(hn,G),G))}}function ua(G){if(!gn(G.declarationList.declarations,pn))return;let et=zn(G.declarationList.declarations,Wt,Oi);if(!Nn(et))return;let Tt=A.createNodeArray(Rt(G)),He;return b2(G.declarationList)||v2(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 za(G){return pm(to(G.elements,et=>vn(et)))}function vn(G){if(G.kind!==232&&G.name)return pn(G)?Yo(G.name)?za(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=Wle(G)),w=G.name,R.assert(z.isLateBound(Ro(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 Ml(G)||Xl(G)}function lt(G){return gt(G,ct)}function Rt(G){let et=du(G),Tt=se(G);return et===Tt?bw(G.modifiers,He=>ii(He,Sa),Sa):A.createModifiersFromModifierFlags(Tt)}function se(G){let et=130030,Tt=i&&!uVe(G)?128:0,He=G.parent.kind===312;return(!He||o&&He&&oc(G.parent))&&(et^=128,Tt=0),HIe(G,et,Tt)}function ke(G,et){let Tt=zle(G);return!Tt&&G!==et.firstAccessor&&(Tt=zle(et.firstAccessor),r=jy(et.firstAccessor)),!Tt&&et.secondAccessor&&G!==et.secondAccessor&&(Tt=zle(et.secondAccessor),r=jy(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)),Wt,Gy))),et=>et.types&&!!et.types.length))}}function uVe(e){return e.kind===264}function pVe(e,t,r,i){return e.createModifiersFromModifierFlags(HIe(t,r,i))}function HIe(e,t=131070,r=0){let i=du(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function zle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function fVe(e){switch(e.kind){case 172:case 171:return!fp(e,2);case 169:case 260:return!0}return!1}function mVe(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 _Ve(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,hVe=bt({"src/compiler/transformers/declarations.ts"(){"use strict";Qo(),Use(),HT=531469}});function gVe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return GK;case 4:return wle;case 100:case 199:return Ole;default:return BK}}function jK(e,t,r){return{scriptTransformers:yVe(e,t,r),declarationTransformers:vVe(t)}}function yVe(e,t,r){if(r)return Xe;let i=ns(e),o=Md(e),s=nP(e),l=[];return Hr(l,t&&mn(t.before,JIe)),l.push(hle),e.experimentalDecorators&&l.push(vle),R6(e)&&l.push(Nle),i<99&&l.push(xle),!e.experimentalDecorators&&(i<99||!s)&&l.push(ble),l.push(gle),i<8&&l.push(Ile),i<7&&l.push(Ale),i<6&&l.push(Tle),i<5&&l.push(Sle),i<4&&l.push(Ele),i<3&&l.push(Ple),i<2&&(l.push(Mle),l.push(kle)),l.push(gVe(o)),i<1&&l.push(Lle),Hr(l,t&&mn(t.after,JIe)),l}function vVe(e){let t=[];return t.push(VK),Hr(t,e&&mn(e.afterDeclarations,EVe)),t}function bVe(e){return t=>aH(t)?e.transformBundle(t):e.transformSourceFile(t)}function KIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):bVe(i)}}function JIe(e){return KIe(e,Im)}function EVe(e){return KIe(e,(t,r)=>r)}function WP(e,t){return t}function Aw(e,t,r){r(e,t)}function Iw(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,ee=WP,me=Aw,ge=0,q=[],J={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Eu(()=>iae(J)),startLexicalEnvironment:be,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:tt,endLexicalEnvironment:Ft,setLexicalEnvironmentFlags:_t,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:De,hoistFunctionDeclaration:Le,addInitializationStatement:Et,startBlockScope:ft,endBlockScope:Zt,addBlockScopedVariable:en,requestEmitHelper:Dn,readEmitHelpers:Kn,enableSubstitution:ne,enableEmitNotification:Ge,isSubstitutionEnabled:he,isEmitNotificationEnabled:ve,get onSubstituteNode(){return ee},set onSubstituteNode(Yt){R.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Yt!==void 0,"Value must not be 'undefined'"),ee=Yt},get onEmitNode(){return me},set onEmitNode(Yt){R.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Yt!==void 0,"Value must not be 'undefined'"),me=Yt},addDiagnostic(Yt){q.push(Yt)}};for(let Yt of o)VU(Gn(Ro(Yt)));tl("beforeTransform");let re=s.map(Yt=>Yt(J)),pe=Yt=>{for(let qt of re)Yt=qt(Yt);return Yt};ge=1;let xe=[];for(let Yt of o)(d=rr)==null||d.push(rr.Phase.Emit,"transformNodes",Yt.kind===312?{path:Yt.path}:{kind:Yt.kind,pos:Yt.pos,end:Yt.end}),xe.push((l?pe:fe)(Yt)),(p=rr)==null||p.pop();return ge=2,tl("afterTransform"),Yp("transformTime","beforeTransform","afterTransform"),{transformed:xe,substituteNode:Ce,emitNodeWithNotification:Ie,isEmitNotificationEnabled:ve,dispose:pn,diagnostics:q};function fe(Yt){return Yt&&(!Yi(Yt)||!Yt.isDeclarationFile)?pe(Yt):Yt}function ne(Yt){R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Yt]|=1}function he(Yt){return(h[Yt.kind]&1)!==0&&(Fa(Yt)&8)===0}function Ce(Yt,qt){return R.assert(ge<3,"Cannot substitute a node after the result is disposed."),qt&&he(qt)&&ee(Yt,qt)||qt}function Ge(Yt){R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Yt]|=2}function ve(Yt){return(h[Yt.kind]&2)!==0||(Fa(Yt)&4)!==0}function Ie(Yt,qt,hi){R.assert(ge<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),qt&&(ve(qt)?me(Yt,qt,hi):hi(Yt,qt))}function De(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed.");let qt=cr(r.createVariableDeclaration(Yt),128);m?m.push(qt):m=[qt],S&1&&(S|=2)}function Le(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),cr(Yt,2097152),y?y.push(Yt):y=[Yt]}function Et(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),cr(Yt,2097152),E?E.push(Yt):E=[Yt]}function be(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.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(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is already suspended."),K=!0}function tt(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(K,"Lexical environment is not suspended."),K=!1}function Ft(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is suspended.");let Yt;if(m||y||E){if(y&&(Yt=[...y]),m){let qt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));cr(qt,2097152),Yt?Yt.push(qt):Yt=[qt]}E&&(Yt?Yt=[...Yt,...E]:Yt=[...E])}return j--,m=A[j],y=N[j],E=D[j],S=w[j],j===0&&(A=[],N=[],D=[],w=[]),Yt}function _t(Yt,qt){S=qt?S|Yt:S&~Yt}function Je(){return S}function ft(){R.assert(ge>0,"Cannot start a block scope during initialization."),R.assert(ge<2,"Cannot start a block scope after transformation has completed."),Y[B]=ce,B++,ce=void 0}function Zt(){R.assert(ge>0,"Cannot end a block scope during initialization."),R.assert(ge<2,"Cannot end a block scope after transformation has completed.");let Yt=gt(ce)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ce.map(qt=>r.createVariableDeclaration(qt)),1))]:void 0;return B--,ce=Y[B],B===0&&(Y=[]),Yt}function en(Yt){R.assert(B>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Yt)}function Dn(Yt){if(R.assert(ge>0,"Cannot modify the transformation context during initialization."),R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),R.assert(!Yt.scoped,"Cannot request a scoped emit helper."),Yt.dependencies)for(let qt of Yt.dependencies)Dn(qt);z=Tn(z,Yt)}function Kn(){R.assert(ge>0,"Cannot modify the transformation context during initialization."),R.assert(ge<2,"Cannot modify the transformation context after transformation has completed.");let Yt=z;return z=void 0,Yt}function pn(){if(ge<3){for(let Yt of o)VU(Gn(Ro(Yt)));m=void 0,A=void 0,y=void 0,N=void 0,ee=void 0,me=void 0,z=void 0,ge=3}}}var UK,FP,SVe=bt({"src/compiler/transformer.ts"(){"use strict";Qo(),nT(),UK={scriptTransformers:Xe,declarationTransformers:Xe},FP={factory:L,getCompilerOptions:()=>({}),getEmitResolver:jo,getEmitHost:jo,getEmitHelperFactory:jo,startLexicalEnvironment:Ja,resumeLexicalEnvironment:Ja,suspendLexicalEnvironment:Ja,endLexicalEnvironment:qb,setLexicalEnvironmentFlags:Ja,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ja,hoistFunctionDeclaration:Ja,addInitializationStatement:Ja,startBlockScope:Ja,endBlockScope:qb,addBlockScopedVariable:Ja,requestEmitHelper:Ja,readEmitHelpers:jo,enableSubstitution:Ja,enableEmitNotification:Ja,isSubstitutionEnabled:jo,isEmitNotificationEnabled:jo,onSubstituteNode:WP,onEmitNode:Aw,addDiagnostic:Ja}}});function Ble(e){return Sl(e,".tsbuildinfo")}function HK(e,t,r,i=!1,o,s){let l=So(r)?r:Fj(e,r,i),d=e.getCompilerOptions();if(Ds(d)){let p=e.getPrependNodes();if(l.length||p.length){let h=L.createBundle(l,p),m=t(BP(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(BP(p,e,i),p);if(h)return h}if(s){let p=Uy(d);if(p)return t({buildInfoPath:p},void 0)}}}function Uy(e){let t=e.configFilePath;if(!tP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=Ds(e),i;if(r)i=Tu(r);else{if(!t)return;let o=Tu(t);i=e.outDir?e.rootDir?Iv(e.outDir,_m(e.rootDir,o,!0)):Yr(e.outDir,nc(o)):o}return i+".tsbuildinfo"}function zP(e,t){let r=Ds(e),i=e.emitDeclarationOnly?void 0:r,o=i&&qIe(i,e),s=t||Af(e)?Tu(r)+".d.ts":void 0,l=s&&gk(e)?s+".map":void 0,d=Uy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function BP(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return zP(i,r);{let o=Nie(e.fileName,t,K3(e.fileName,i)),s=Jf(e),l=s&&xg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,d=i.emitDeclarationOnly||l?void 0:o,p=!d||Jf(e)?void 0:qIe(d,i),h=r||Af(i)&&!s?Pie(e.fileName,t):void 0,m=h&&gk(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function qIe(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 XIe(e,t,r,i){return r?Iv(r,_m(i(),e,t)):e}function GP(e,t,r,i=()=>$R(t,r)){return KK(e,t.options,r,i)}function KK(e,t,r,i){return fE(XIe(e,r,t.declarationDir||t.outDir,i),a6(e))}function YIe(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||xg(e,s,R.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function JK(e,t,r,i){return fE(XIe(e,r,t.outDir,i),K3(e,t))}function $Ie(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Xe}}function QIe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=zP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function ZIe(e,t,r,i,o){if(bd(t))return;let s=YIe(t,e,r,o);if(i(s),!Sl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Af(e.options))){let l=GP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function VP(e,t,r,i,o){let s;return e.rootDir?(s=_o(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=ai(Nd(e.configFilePath)),o?.(s)):s=Kle(t(),r,i),s&&s[s.length-1]!==rl&&(s+=rl),s}function $R({options:e,fileNames:t},r){return VP(e,()=>jr(t,i=>!(e.noEmitForJsFiles&&bc(i,AR))&&!bd(i)),ai(Nd(R.checkDefined(e.configFilePath))),Cd(!r))}function J3(e,t){let{addOutput:r,getOutputs:i}=$Ie();if(Ds(e.options))QIe(e,r);else{let o=Eu(()=>$R(e,t));for(let s of e.fileNames)ZIe(e,s,t,r,o);r(Uy(e.options))}return i()}function e1e(e,t,r){t=ma(t),R.assert(zo(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=$Ie();return Ds(e.options)?QIe(e,i):ZIe(e,t,r,i),o()}function qK(e,t){if(Ds(e.options)){let{jsFilePath:o,declarationFilePath:s}=zP(e.options,!1);return R.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Eu(()=>$R(e,t));for(let o of e.fileNames){if(bd(o))continue;let s=YIe(o,e,t,r);if(s)return s;if(!Sl(o,".json")&&Af(e.options))return GP(o,e,t,r)}let i=Uy(e.options);return i||R.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||gk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=cR(),E=Wy(p),S=Q2(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,Ie,De;let Le;fe&&ne&&aH(ne)&&(Le=ai(_o(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Et(t.getCommonSourceDirectory()),sourceFiles:ne.sourceFiles.map(be=>Et(_o(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(),(Ie=rr)==null||Ie.push(rr.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),K(D,fe),(De=rr)==null||De.pop();function Et(be){return g0(_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)||xw(void 0,J);RN(t,y,re,Gle(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=Iw(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=IE(ne,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});R.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=Ds(p)?[L.createBundle(ne,Yi(J)?void 0:J.prepends)]:ne;s&&!Af(p)&&ne.forEach(ce);let Ce=Iw(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){R.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},Ie=IE(ve,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});z(re,pe,Ce,Ie,{sourceMap:ve.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(re),pe&&m.push(pe)),D&&(D.dts=Ie.bundleFileInfo)}Ce.dispose()}function ce(J){if(Ml(J)){J.expression.kind===80&&e.collectLinkedAliases(J.expression,!0);return}else if(Kd(J)){e.collectLinkedAliases(J.propertyName||J.name,!0);return}Bo(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;ee(fe,ne)&&(ve=$se(t,nc(Nd(J)),me(fe),ge(fe,J,Ce),fe)),he?xe.writeBundle(he,S,ve):xe.writeFile(Ce,S,ve);let Ie;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),Ie=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${Le}`)),re){let Et=ve.toString();RN(t,y,re,Et,!1,Ge),xe.bundleFileInfo&&(xe.bundleFileInfo.mapHash=JT(Et,t))}}else S.writeLine();let De=S.getText();RN(t,y,J,De,!!p.emitBOM,Ge,{sourceMapUrlPos:Ie,diagnostics:pe.diagnostics}),xe.bundleFileInfo&&(xe.bundleFileInfo.hash=JT(De,t)),S.clear()}function ee(J,re){return(J.sourceMap||J.inlineSourceMap)&&(re.kind!==312||!Sl(re.fileName,".json"))}function me(J){let re=Nd(J.sourceRoot||"");return re&&Fc(re)}function ge(J,re,pe){if(J.sourceRoot)return t.getCommonSourceDirectory();if(J.mapRoot){let xe=Nd(J.mapRoot);return pe&&(xe=ai(l6(pe.fileName,t,xe))),lh(xe)===0&&(xe=Yr(t.getCommonSourceDirectory(),xe)),xe}return ai(ma(re))}function q(J,re,pe,xe,fe){if(J.inlineSourceMap){let he=re.toString();return`data:application/json;base64,${$ie(_d,he)}`}let ne=nc(Nd(R.checkDefined(xe)));if(J.mapRoot){let he=Nd(J.mapRoot);return fe&&(he=ai(l6(fe.fileName,t,he))),lh(he)===0?(he=Yr(t.getCommonSourceDirectory(),he),encodeURI(_I(ai(ma(pe)),Yr(he,ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Yr(he,ne))}return encodeURI(ne)}}function xw(e,t){return{bundle:t,program:e,version:qp}}function Gle(e){return JSON.stringify(e)}function X3(e,t){return qj(e,t)}function TVe(e,t,r){var i;let o=R.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&h0(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 Va(S,A),A}),m=L.createToken(1),y=L.createSourceFile(h??[],m,0);return y.fileName=_m(r.getCurrentDirectory(),_o(l,t),!r.useCaseSensitiveFileNames()),y.text=p?.text??"",JN(y,0,p?.text.length??0),ER(y.statements,y),JN(m,y.end,0),Va(m,y),y})}function Vle(e,t,r,i){var o,s;(o=rr)==null||o.push(rr.Phase.Emit,"emitUsingBuildInfo",{},!0),tl("beforeEmit");let l=AVe(e,t,r,i);return tl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(s=rr)==null||s.pop(),l}function AVe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=zP(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(R.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=ai(_o(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=TVe(h.bundle,A,t),K,Y,B={getPrependNodes:Eu(()=>[...w,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>_o(h.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:qb,getSourceFileByPath:qb,getSourceFiles:()=>j,getLibFileFromReference:jo,isSourceFileFromExternalLibrary:jm,getResolvedProjectReferenceToRedirect:qb,getProjectReferenceRedirect:qb,isSourceOfProjectReferenceRedirect:jm,writeFile:(ce,z,ee,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:R.fail(`Unexpected path: ${ce}`)}D.push({name:ce,text:z,writeByteOrderMark:ee,data:q})},isEmitBlocked:jm,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:ee,dts:me,sourceFiles:ge}=h.bundle;return ce.js.sources=ee.sources,me&&(ce.dts.sources=me.sources),ce.sourceFiles=ge,xw(z,ce)},getSourceFileFromReference:qb,redirectTargetsMap:Xp(),getFileIncludeReasons:jo,createHash:ea(t,t.createHash)};return q3(Y3,B,void 0,jK(e.options,i)),D}function IE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Aw,isEmitNotificationEnabled:o,substituteNode:s=WP,onBeforeEmitNode:l,onAfterEmitNode:d,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,S=!!e.omitBraceSourceMapPositions,A=Wy(e),N=Md(e),D=new Map,w,j,K,Y,B,ce,z,ee,me,ge,q,J,re,pe,xe,fe=e.preserveSourceNewlines,ne,he,Ce,Ge=hA,ve,Ie=e.writeBundleFileInfo?{sections:[]}:void 0,De=Ie?R.checkDefined(e.relativeToBuildInfo):void 0,Le=e.recordInternalSection,Et=0,be="text",ze=!0,tt,Ft,_t=-1,Je,ft=-1,Zt=-1,en=-1,Dn=-1,Kn,pn,Yt=!1,qt=!!e.removeComments,hi,uo,{enter:Li,exit:Eo}=LEe(E,"commentTime","beforeComment","afterComment"),Qn=L.parenthesizer,Ur={select:I=>I===0?Qn.parenthesizeLeadingTypeArgument:void 0},Er=Hg();return et(),{printNode:on,printList:Ye,printFile:In,printBundle:Wt,writeNode:yi,writeList:$i,writeFile:lt,writeBundle:Be,bundleFileInfo:Ie};function on(I,oe,ut){switch(I){case 0:R.assert(Yi(oe),"Expected a SourceFile node.");break;case 2:R.assert(Fe(oe),"Expected an Identifier node.");break;case 1:R.assert(ht(oe),"Expected an Expression node.");break}switch(oe.kind){case 312:return In(oe);case 313:return Wt(oe);case 314:return li(oe)}return yi(I,oe,ut,Rt()),se()}function Ye(I,oe,ut){return $i(I,oe,ut,Rt()),se()}function Wt(I){return Be(I,Rt(),void 0),se()}function In(I){return lt(I,Rt(),void 0),se()}function li(I){return ct(I,Rt()),se()}function yi(I,oe,ut,nn){let Lr=he;G(nn,void 0),ke(I,oe,ut),et(),he=Lr}function $i(I,oe,ut,nn){let Lr=he;G(nn,void 0),ut&&st(ut),Ys(void 0,oe,I),et(),he=Lr}function Ao(){return he.getTextPosWithWriteLine?he.getTextPosWithWriteLine():he.getTextPos()}function ua(I,oe,ut){let nn=Qs(Ie.sections);nn&&nn.kind===ut?nn.end=oe:Ie.sections.push({pos:I,end:oe,kind:ut})}function za(I){if(Le&&Ie&&w&&(Hd(I)||Pl(I))&&zV(I,w)&&be!=="internal"){let oe=be;return kn(he.getTextPos()),Et=Ao(),be="internal",oe}}function vn(I){I&&(kn(he.getTextPos()),Et=Ao(),be=I)}function kn(I){return EtR.assert(aoe(_a))),Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"prepend",data:De(Lr.fileName),texts:Zi}))}}Et=Ao();for(let Lr of I.sourceFiles)ke(0,Lr,Lr);if(Ie&&I.sourceFiles.length){let Lr=he.getTextPos();if(kn(Lr)){let wi=AM(I);wi&&(Ie.sources||(Ie.sources={}),Ie.sources.prologues=wi);let vi=Dt(I);vi&&(Ie.sources||(Ie.sources={}),Ie.sources.helpers=vi)}}et(),he=nn}function ct(I,oe){let ut=he;G(oe,void 0),ke(4,I,void 0),et(),he=ut}function lt(I,oe,ut){ve=!0;let nn=he;G(oe,ut),ub(I),$g(I),ke(0,I,I),et(),he=nn}function Rt(){return Ce||(Ce=Q2(A))}function se(){let I=Ce.getText();return Ce.clear(),I}function ke(I,oe,ut){ut&&st(ut),U(I,oe,void 0)}function st(I){w=I,Kn=void 0,pn=void 0,I&&ny(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,ee=[],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=Rg(R.checkDefined(w)))}function He(I,oe){if(I===void 0)return;let ut=za(I);U(4,I,oe),vn(ut)}function pt(I){I!==void 0&&U(2,I,void 0)}function Bt(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,ut){uo=ut,k(0,I,oe)(I,oe),uo=void 0}function Me(I){return!qt&&!Yi(I)}function Nt(I){return!ze&&!Yi(I)&&!UF(I)&&!WT(I)&&!Tae(I)}function k(I,oe,ut){switch(I){case 0:if(i!==Aw&&(!o||o(ut)))return H;case 1:if(s!==WP&&(hi=s(oe,ut)||ut)!==ut)return uo&&(hi=uo(hi)),It;case 2:if(Me(ut))return qD;case 3:if(Nt(ut))return JE;case 4:return ue;default:return R.assertNever(I)}}function ie(I,oe,ut){return k(I+1,oe,ut)}function H(I,oe){let ut=ie(0,I,oe);i(I,oe,ut)}function ue(I,oe){if(l?.(oe),fe){let ut=fe;dn(oe),We(I,oe),un(ut)}else We(I,oe);d?.(oe),uo=void 0}function We(I,oe,ut=!0){if(ut){let nn=jU(oe);if(nn)return ho(I,oe,nn)}if(I===0)return K1(ta(oe,Yi));if(I===2)return Kr(ta(oe,Fe));if(I===6)return Bn(ta(oe,Da),!0);if(I===3)return Ne(ta(oe,ml));if(I===7)return z1(ta(oe,n1));if(I===5)return R.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 Io(oe);case 166:return xn(oe);case 167:return $l(oe);case 168:return Po(oe);case 169:return ss(oe);case 170:return Bs(oe);case 171:return _l(oe);case 172:return sd(oe);case 173:return mo(oe);case 174:return la(oe);case 175:return ld(oe);case 176:return Ss(oe);case 177:case 178:return Ca(oe);case 179:return pl(oe);case 180:return Nf(oe);case 181:return ac(oe);case 182:return Mo(oe);case 183:return tn(oe);case 184:return Gs(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 fr(oe);case 192:return zr(oe);case 193:return Di(oe);case 194:return Cr(oe);case 195:return Ko(oe);case 196:return bl(oe);case 233:return Ot(oe);case 197:return jc();case 198:return Vs(oe);case 199:return hc(oe);case 200:return bs(oe);case 201:return Uc(oe);case 202:return vr(oe);case 203:return tp(oe);case 204:return xl(oe);case 205:return wc(oe);case 206:return im(oe);case 207:return _u(oe);case 208:return Re(oe);case 239:return jt(oe);case 240:return sl();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 dd(oe);case 247:return Ic(oe);case 248:return Tp(oe);case 249:return Vu(oe);case 250:return ab(oe);case 251:return Dm(oe);case 252:return Cm(oe);case 253:return mS(oe);case 254:return df(oe);case 255:return B_(oe);case 256:return uf(oe);case 257:return Jg(oe);case 258:return we(oe);case 259:return qe(oe);case 260:return Pt(oe);case 261:return Vt(oe);case 262:return _n(oe);case 263:return qo(oe);case 264:return $d(oe);case 265:return ud(oe);case 266:return qg(oe);case 267:return kE(oe);case 268:return w1(oe);case 269:return wE(oe);case 270:return G1(oe);case 271:return kD(oe);case 272:return OD(oe);case 273:return oA(oe);case 274:return _S(oe);case 280:return hS(oe);case 275:return O1(oe);case 276:return WD(oe);case 277:return W1(oe);case 278:return F1(oe);case 279:return gS(oe);case 281:return sb(oe);case 300:return B1(oe);case 301:return aA(oe);case 282:return;case 283:return OE(oe);case 12:return Xg(oe);case 286:case 289:return WE(oe);case 287:case 290:return xh(oe);case 291:return ju(oe);case 292:return Mf(oe);case 293:return Ap(oe);case 294:return zD(oe);case 295:return V1(oe);case 296:return FE(oe);case 297:return j1(oe);case 298:return tv(oe);case 299:return U1(oe);case 303:return e_(oe);case 304:return cA(oe);case 305:return Ve(oe);case 306:return t_(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 R.fail("Bundles should be printed using printBundle");case 315:return R.fail("InputFiles should not be printed");case 316:return Yg(oe);case 317:return db(oe);case 319:return mr("*");case 320:return mr("?");case 321:return cd(oe);case 322:return Ep(oe);case 323:return Cs(oe);case 324:return ed(oe);case 191:case 325:return yt(oe);case 326:return;case 327:return pd(oe);case 329:return uA(oe);case 330:return BE(oe);case 334:case 339:case 344:return dA(oe);case 335:case 336:return nv(oe);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ha(oe);case 346:return n_(oe);case 348:case 355:return pA(oe);case 347:case 349:case 350:case 351:case 356:case 357:return zE(oe);case 352:return rv(oe);case 353:return SM(oe);case 354:return H1(oe);case 359:return}if(ht(oe)&&(I=1,s!==WP)){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 Io(oe);case 209:return Lt(oe);case 210:return Un(oe);case 211:return go(oe);case 212:return $o(oe);case 213:return Ql(oe);case 214:return gc(oe);case 215:return ll(oe);case 216:return hl(oe);case 217:return Gl(oe);case 218:return Zl(oe);case 219:return Hc(oe);case 220:return Bu(oe);case 221:return Du(oe);case 222:return Pf(oe);case 223:return z_(oe);case 224:return Ih(oe);case 225:return Wd(oe);case 226:return Er(oe);case 227:return Sp(oe);case 228:return cg(oe);case 229:return Gu(oe);case 230:return Z(oe);case 231:return rt(oe);case 232:return;case 234:return Gt(oe);case 235:return O(oe);case 233:return Ot(oe);case 238:return Se(oe);case 236:return nt(oe);case 237:return R.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return $a(oe);case 285:return sA(oe);case 288:return FD(oe);case 358:return R.fail("SyntaxList should not be printed");case 359:return;case 360:return Zr(oe);case 361:return Rh(oe);case 362:return R.fail("SyntheticReferenceExpression should not be printed")}if(Wu(oe.kind))return SS(oe,Qi);if(xV(oe.kind))return SS(oe,mr);R.fail(`Unhandled SyntaxKind: ${R.formatSyntaxKind(oe.kind)}.`)}function Ne(I){He(I.name),ar(),Qi("in"),ar(),He(I.constraint)}function It(I,oe){let ut=ie(1,I,oe);R.assertIsDefined(hi),oe=hi,hi=void 0,ut(I,oe)}function Dt(I){let oe;if(N===0||e.noEmitHelpers)return;let ut=new Map;for(let nn of I.sourceFiles){let Lr=Uk(nn)!==void 0,wi=En(nn);if(wi)for(let vi of wi)!vi.scoped&&!Lr&&!ut.get(vi.name)&&(ut.set(vi.name,!0),(oe||(oe=[])).push(vi.name))}return oe}function Kt(I){let oe=!1,ut=I.kind===313?I:void 0;if(ut&&N===0)return;let nn=ut?ut.prepends.length:0,Lr=ut?ut.sourceFiles.length+nn:1;for(let wi=0;wi"),ar(),He(I.type),rp(I)}function ed(I){Qi("function"),iv(I,I.parameters),mr(":"),He(I.type)}function cd(I){mr("?"),He(I.type)}function Ep(I){mr("!"),He(I.type)}function Cs(I){He(I.type),mr("=")}function Ac(I){Sd(I),ug(I,I.modifiers),Qi("new"),ar(),G_(I,I.typeParameters),iv(I,I.parameters),ar(),mr("=>"),ar(),He(I.type),rp(I)}function de(I){Qi("typeof"),ar(),He(I.exprName),fg(I,I.typeArguments)}function $(I){Lf(0,void 0),mr("{");let oe=Fa(I)&1?768:32897;Ys(I,I.members,oe|524288),mr("}"),hb()}function Pe(I){He(I.elementType,Qn.parenthesizeNonArrayTypeOfPostfixType),mr("["),mr("]")}function yt(I){mr("..."),He(I.type)}function cn(I){Ui(23,I.pos,mr,I);let oe=Fa(I)&1?528:657;Ys(I,I.elements,oe|524288,Qn.parenthesizeElementTypeOfTupleType),Ui(24,I.elements.end,mr,I)}function vr(I){He(I.dotDotDotToken),He(I.name),He(I.questionToken),Ui(59,I.name.end,mr,I),ar(),He(I.type)}function fr(I){He(I.type,Qn.parenthesizeTypeOfOptionalType),mr("?")}function zr(I){Ys(I,I.types,516,Qn.parenthesizeConstituentTypeOfUnionType)}function Di(I){Ys(I,I.types,520,Qn.parenthesizeConstituentTypeOfIntersectionType)}function Cr(I){He(I.checkType,Qn.parenthesizeCheckTypeOfConditionalType),ar(),Qi("extends"),ar(),He(I.extendsType,Qn.parenthesizeExtendsTypeOfConditionalType),ar(),mr("?"),ar(),He(I.trueType),ar(),mr(":"),ar(),He(I.falseType)}function Ko(I){Qi("infer"),ar(),He(I.typeParameter)}function bl(I){mr("("),He(I.type),mr(")")}function jc(){Qi("this")}function Vs(I){mb(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),mr("["),He(I.indexType),mr("]")}function bs(I){let oe=Fa(I);mr("{"),oe&1?ar():(Kc(),Dh()),I.readonlyToken&&(He(I.readonlyToken),I.readonlyToken.kind!==148&&Qi("readonly"),ar()),mr("["),U(3,I.typeParameter),I.nameType&&(ar(),Qi("as"),ar(),He(I.nameType)),mr("]"),I.questionToken&&(He(I.questionToken),I.questionToken.kind!==58&&mr("?")),mr(":"),ar(),He(I.type),td(),oe&1?ar():(Kc(),Lm()),Ys(I,I.members,2),mr("}")}function Uc(I){Bt(I.literal)}function tp(I){He(I.head),Ys(I,I.templateSpans,262144)}function wc(I){I.isTypeOf&&(Qi("typeof"),ar()),Qi("import"),mr("("),He(I.argument),I.attributes&&(mr(","),ar(),U(7,I.attributes)),mr(")"),I.qualifier&&(mr("."),He(I.qualifier)),fg(I,I.typeArguments)}function im(I){mr("{"),Ys(I,I.elements,525136),mr("}")}function _u(I){mr("["),Ys(I,I.elements,524880),mr("]")}function Re(I){He(I.dotDotDotToken),I.propertyName&&(He(I.propertyName),mr(":"),ar()),He(I.name),pb(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Lt(I){let oe=I.elements,ut=I.multiLine?65536:0;bS(I,oe,8914|ut,Qn.parenthesizeExpressionForDisallowedComma)}function Un(I){Lf(0,void 0),gn(I.properties,X1);let oe=Fa(I)&131072;oe&&Dh();let ut=I.multiLine?65536:0,nn=w&&w.languageVersion>=1&&!Jf(w)?64:0;Ys(I,I.properties,526226|nn|ut),oe&&Lm(),hb()}function go(I){Bt(I.expression,Qn.parenthesizeLeftSideOfAccess);let oe=I.questionDotToken||mh(L.createToken(25),I.expression.end,I.name.pos),ut=Gp(I,I.expression,oe),nn=Gp(I,oe,I.name);km(ut,!1),oe.kind!==29&&Jo(I.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&mr("."),I.questionDotToken?He(oe):Ui(oe.kind,I.expression.end,mr,I),km(nn,!1),He(I.name),VE(ut,nn)}function Jo(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(Ms(I)){let oe=$oe(I);return typeof oe=="number"&&isFinite(oe)&&oe>=0&&Math.floor(oe)===oe}}function $o(I){Bt(I.expression,Qn.parenthesizeLeftSideOfAccess),He(I.questionDotToken),Ui(23,I.expression.end,mr,I),Bt(I.argumentExpression),Ui(24,I.argumentExpression.end,mr,I)}function Ql(I){let oe=ym(I)&16;oe&&(mr("("),fb("0"),mr(","),ar()),Bt(I.expression,Qn.parenthesizeLeftSideOfAccess),oe&&mr(")"),He(I.questionDotToken),fg(I,I.typeArguments),bS(I,I.arguments,2576,Qn.parenthesizeExpressionForDisallowedComma)}function gc(I){Ui(105,I.pos,Qi,I),ar(),Bt(I.expression,Qn.parenthesizeExpressionOfNew),fg(I,I.typeArguments),bS(I,I.arguments,18960,Qn.parenthesizeExpressionForDisallowedComma)}function ll(I){let oe=ym(I)&16;oe&&(mr("("),fb("0"),mr(","),ar()),Bt(I.tag,Qn.parenthesizeLeftSideOfAccess),oe&&mr(")"),fg(I,I.typeArguments),ar(),Bt(I.template)}function hl(I){mr("<"),He(I.type),mr(">"),Bt(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Gl(I){let oe=Ui(21,I.pos,mr,I),ut=HD(I.expression,I);Bt(I.expression,void 0),TS(I.expression,I),VE(ut),Ui(22,I.expression?I.expression.end:oe,mr,I)}function Zl(I){Vp(I.name),Jn(I)}function Hc(I){ug(I,I.modifiers),fn(I,cf)}function cf(I){G_(I,I.typeParameters),VD(I,I.parameters),sm(I.type),ar(),He(I.equalsGreaterThanToken)}function Bu(I){Ui(91,I.pos,Qi,I),ar(),Bt(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Du(I){Ui(114,I.pos,Qi,I),ar(),Bt(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Pf(I){Ui(116,I.pos,Qi,I),ar(),Bt(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function z_(I){Ui(135,I.pos,Qi,I),ar(),Bt(I.expression,Qn.parenthesizeOperandOfPrefixUnary)}function Ih(I){mb(I.operator,pf),Ug(I)&&ar(),Bt(I.operand,Qn.parenthesizeOperandOfPrefixUnary)}function Ug(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 Wd(I){Bt(I.operand,Qn.parenthesizeOperandOfPostfixUnary),mb(I.operator,pf)}function Hg(){return e3(I,oe,ut,nn,Lr,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 wi(vi,_a,"left")}function ut(vi,Zi,_a){let Qd=vi.kind!==28,Nu=Gp(_a,_a.left,vi),wf=Gp(_a,vi,_a.right);km(Nu,Qd),_g(vi.pos),SS(vi,vi.kind===103?Qi:pf),wm(vi.end,!0),km(wf,!0)}function nn(vi,Zi,_a){return wi(vi,_a,"right")}function Lr(vi,Zi){let _a=Gp(vi,vi.left,vi.operatorToken),Qd=Gp(vi,vi.operatorToken,vi.right);if(VE(_a,Qd),Zi.stackIndex>0){let Nu=Zi.preserveSourceNewlinesStack[Zi.stackIndex],wf=Zi.containerPosStack[Zi.stackIndex],bb=Zi.containerEndStack[Zi.stackIndex],Si=Zi.declarationListContainerEndStack[Zi.stackIndex],Ph=Zi.shouldEmitCommentsStack[Zi.stackIndex],Vn=Zi.shouldEmitSourceMapsStack[Zi.stackIndex];un(Nu),Vn&&DA(vi),Ph&&XD(vi,wf,bb,Si),d?.(vi),Zi.stackIndex--}}function wi(vi,Zi,_a){let Qd=_a==="left"?Qn.getParenthesizeLeftSideOfBinaryForOperator(Zi.operatorToken.kind):Qn.getParenthesizeRightSideOfBinaryForOperator(Zi.operatorToken.kind),Nu=k(0,1,vi);if(Nu===It&&(R.assertIsDefined(hi),vi=Qd(ta(hi,ht)),Nu=ie(1,1,vi),hi=void 0),(Nu===qD||Nu===JE||Nu===ue)&&ur(vi))return vi;uo=Qd,Nu(1,vi)}}function Sp(I){let oe=Gp(I,I.condition,I.questionToken),ut=Gp(I,I.questionToken,I.whenTrue),nn=Gp(I,I.whenTrue,I.colonToken),Lr=Gp(I,I.colonToken,I.whenFalse);Bt(I.condition,Qn.parenthesizeConditionOfConditionalExpression),km(oe,!0),He(I.questionToken),km(ut,!0),Bt(I.whenTrue,Qn.parenthesizeBranchOfConditionalExpression),VE(oe,ut),km(nn,!0),He(I.colonToken),km(Lr,!0),Bt(I.whenFalse,Qn.parenthesizeBranchOfConditionalExpression),VE(nn,Lr)}function cg(I){He(I.head),Ys(I,I.templateSpans,262144)}function Gu(I){Ui(127,I.pos,Qi,I),He(I.asteriskToken),vS(I.expression&&Nm(I.expression),fS)}function Z(I){Ui(26,I.pos,mr,I),Bt(I.expression,Qn.parenthesizeExpressionForDisallowedComma)}function rt(I){Vp(I.name),Ua(I)}function Ot(I){Bt(I.expression,Qn.parenthesizeLeftSideOfAccess),fg(I,I.typeArguments)}function Gt(I){Bt(I.expression,void 0),I.type&&(ar(),Qi("as"),ar(),He(I.type))}function O(I){Bt(I.expression,Qn.parenthesizeLeftSideOfAccess),pf("!")}function Se(I){Bt(I.expression,void 0),I.type&&(ar(),Qi("satisfies"),ar(),He(I.type))}function nt(I){ES(I.keywordToken,I.pos,mr),mr("."),He(I.name)}function jt(I){Bt(I.expression),He(I.literal)}function Zn(I){oi(I,!I.multiLine&&bA(I))}function oi(I,oe){Ui(19,I.pos,mr,I);let ut=oe||Fa(I)&1?768:129;Ys(I,I.statements,ut),Ui(20,I.statements.end,mr,I,!!(ut&1))}function Xr(I){Bp(I,I.modifiers,!1),He(I.declarationList),td()}function no(I){I?mr(";"):td()}function La(I){Bt(I.expression,Qn.parenthesizeExpressionOfExpressionStatement),(!w||!Jf(w)||qs(I.expression))&&td()}function ka(I){let oe=Ui(101,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),Bt(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.thenStatement),I.elseStatement&&(Zg(I,I.thenStatement,I.elseStatement),Ui(93,I.thenStatement.end,Qi,I),I.elseStatement.kind===245?(ar(),He(I.elseStatement)):pg(I,I.elseStatement))}function kl(I,oe){let ut=Ui(117,oe,Qi,I);ar(),Ui(21,ut,mr,I),Bt(I.expression),Ui(22,I.expression.end,mr,I)}function dd(I){Ui(92,I.pos,Qi,I),pg(I,I.statement),Uo(I.statement)&&!fe?ar():Zg(I,I.statement,I.expression),kl(I,I.statement.end),td()}function Ic(I){kl(I,I.pos),pg(I,I.statement)}function Tp(I){let oe=Ui(99,I.pos,Qi,I);ar();let ut=Ui(21,oe,mr,I);ls(I.initializer),ut=Ui(27,I.initializer?I.initializer.end:ut,mr,I),vS(I.condition),ut=Ui(27,I.condition?I.condition.end:ut,mr,I),vS(I.incrementor),Ui(22,I.incrementor?I.incrementor.end:ut,mr,I),pg(I,I.statement)}function Vu(I){let oe=Ui(99,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),ls(I.initializer),ar(),Ui(103,I.initializer.end,Qi,I),ar(),Bt(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.statement)}function ab(I){let oe=Ui(99,I.pos,Qi,I);ar(),fA(I.awaitModifier),Ui(21,oe,mr,I),ls(I.initializer),ar(),Ui(165,I.initializer.end,Qi,I),ar(),Bt(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.statement)}function ls(I){I!==void 0&&(I.kind===261?He(I):Bt(I))}function Dm(I){Ui(88,I.pos,Qi,I),Qg(I.label),td()}function Cm(I){Ui(83,I.pos,Qi,I),Qg(I.label),td()}function Ui(I,oe,ut,nn,Lr){let wi=Ro(nn),vi=wi&&wi.kind===nn.kind,Zi=oe;if(vi&&w&&(oe=Na(w.text,oe)),vi&&nn.pos!==Zi){let _a=Lr&&w&&!Sf(Zi,oe,w);_a&&Dh(),_g(Zi),_a&&Lm()}if(!S&&(I===19||I===20)?oe=ES(I,oe,ut,nn):oe=mb(I,ut,oe),vi&&nn.end!==oe){let _a=nn.kind===294;wm(oe,!_a,_a)}return oe}function Kg(I){return I.kind===2||!!I.hasTrailingNewLine}function Zy(I){if(!w)return!1;let oe=Uh(w.text,I.pos);if(oe){let ut=Ro(I);if(ut&&Fu(ut.parent))return!0}return gt(oe,Kg)||gt(IR(I),Kg)?!0:B4(I)?I.pos!==I.expression.pos&>($b(w.text,I.expression.pos),Kg)?!0:Zy(I.expression):!1}function Nm(I){if(!qt&&B4(I)&&Zy(I)){let oe=Ro(I);if(oe&&Fu(oe)){let ut=L.createParenthesizedExpression(I.expression);return xr(ut,I),at(ut,oe),ut}return L.createParenthesizedExpression(I)}return I}function fS(I){return Nm(Qn.parenthesizeExpressionForDisallowedComma(I))}function mS(I){Ui(107,I.pos,Qi,I),vS(I.expression&&Nm(I.expression),Nm),td()}function df(I){let oe=Ui(118,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),Bt(I.expression),Ui(22,I.expression.end,mr,I),pg(I,I.statement)}function B_(I){let oe=Ui(109,I.pos,Qi,I);ar(),Ui(21,oe,mr,I),Bt(I.expression),Ui(22,I.expression.end,mr,I),ar(),He(I.caseBlock)}function uf(I){He(I.label),Ui(59,I.label.end,mr,I),ar(),He(I.statement)}function Jg(I){Ui(111,I.pos,Qi,I),vS(Nm(I.expression),Nm),td()}function we(I){Ui(113,I.pos,Qi,I),ar(),He(I.tryBlock),I.catchClause&&(Zg(I,I.tryBlock,I.catchClause),He(I.catchClause)),I.finallyBlock&&(Zg(I,I.catchClause||I.tryBlock,I.finallyBlock),Ui(98,(I.catchClause||I.tryBlock).end,Qi,I),ar(),He(I.finallyBlock))}function qe(I){ES(89,I.pos,Qi),td()}function Pt(I){var oe,ut,nn;He(I.name),He(I.exclamationToken),sm(I.type),pb(I.initializer,((oe=I.type)==null?void 0:oe.end)??((nn=(ut=I.name.emitNode)==null?void 0:ut.typeNode)==null?void 0:nn.end)??I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function Vt(I){if(v2(I))Qi("await"),ar(),Qi("using");else{let oe=NF(I)?"let":Kx(I)?"const":b2(I)?"using":"var";Qi(oe)}ar(),Ys(I,I.declarations,528)}function _n(I){Jn(I)}function Jn(I){Bp(I,I.modifiers,!1),Qi("function"),He(I.asteriskToken),ar(),pt(I.name),fn(I,qn)}function fn(I,oe){let ut=I.body;if(ut)if(Uo(ut)){let nn=Fa(I)&131072;nn&&Dh(),Sd(I),gn(I.parameters,nd),nd(I.body),oe(I),or(ut),rp(I),nn&&Lm()}else oe(I),ar(),Bt(ut,Qn.parenthesizeConciseBodyOfArrowFunction);else oe(I),td()}function qn(I){G_(I,I.typeParameters),iv(I,I.parameters),sm(I.type)}function mi(I){if(Fa(I)&1)return!0;if(I.multiLine||!qs(I)&&w&&!IT(I,w)||mg(I,Jc(I.statements),2)||q1(I,Qs(I.statements),2,I.statements))return!1;let oe;for(let ut of I.statements){if(_b(oe,ut,2)>0)return!1;oe=ut}return!0}function or(I){l?.(I),ar(),mr("{"),Dh();let oe=mi(I)?ri:dr;Sr(I,I.statements,oe),Lm(),ES(20,I.statements.end,mr,I),d?.(I)}function ri(I){dr(I,!0)}function dr(I,oe){let ut=Uu(I.statements),nn=he.getTextPos();Kt(I),ut===0&&nn===he.getTextPos()&&oe?(Lm(),Ys(I,I.statements,768),Dh()):Ys(I,I.statements,1,void 0,ut)}function qo(I){Ua(I)}function Ua(I){Lf(0,void 0),gn(I.members,X1),Bp(I,I.modifiers,!0),Ui(86,R_(I).pos,Qi,I),I.name&&(ar(),pt(I.name));let oe=Fa(I)&131072;oe&&Dh(),G_(I,I.typeParameters),Ys(I,I.heritageClauses,0),ar(),mr("{"),Ys(I,I.members,129),mr("}"),oe&&Lm(),hb()}function $d(I){Lf(0,void 0),Bp(I,I.modifiers,!1),Qi("interface"),ar(),He(I.name),G_(I,I.typeParameters),Ys(I,I.heritageClauses,512),ar(),mr("{"),Ys(I,I.members,129),mr("}"),hb()}function ud(I){Bp(I,I.modifiers,!1),Qi("type"),ar(),He(I.name),G_(I,I.typeParameters),ar(),mr("="),ar(),He(I.type),td()}function qg(I){Bp(I,I.modifiers,!1),Qi("enum"),ar(),He(I.name),ar(),mr("{"),Ys(I,I.members,145),mr("}")}function kE(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 td();for(;oe&&ql(oe);)mr("."),He(oe.name),oe=oe.body;ar(),He(oe)}function w1(I){Sd(I),gn(I.statements,nd),oi(I,bA(I)),rp(I)}function wE(I){Ui(19,I.pos,mr,I),Ys(I,I.clauses,129),Ui(20,I.clauses.end,mr,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,mr,I),ar(),wD(I.moduleReference),td()}function wD(I){I.kind===80?Bt(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()),Bt(I.moduleSpecifier),I.attributes&&Qg(I.attributes),td()}function oA(I){I.isTypeOnly&&(Ui(156,I.pos,Qi,I),ar()),He(I.name),I.name&&I.namedBindings&&(Ui(28,I.name.end,mr,I),ar()),He(I.namedBindings)}function _S(I){let oe=Ui(42,I.pos,mr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function O1(I){lb(I)}function WD(I){dg(I)}function W1(I){let oe=Ui(95,I.pos,Qi,I);ar(),I.isExportEquals?Ui(64,oe,pf,I):Ui(90,oe,Qi,I),ar(),Bt(I.expression,I.isExportEquals?Qn.getParenthesizeRightSideOfBinaryForOperator(64):Qn.parenthesizeExpressionOfExportDefault),td()}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,mr,I),I.moduleSpecifier){ar();let ut=I.exportClause?I.exportClause.end:oe;Ui(161,ut,Qi,I),ar(),Bt(I.moduleSpecifier)}I.attributes&&Qg(I.attributes),td()}function z1(I){mr("{"),ar(),Qi(I.token===132?"assert":"with"),mr(":"),ar();let oe=I.elements;Ys(I,oe,526226),ar(),mr("}")}function B1(I){Ui(I.token,I.pos,Qi,I),ar();let oe=I.elements;Ys(I,oe,526226)}function aA(I){He(I.name),mr(":"),ar();let oe=I.value;if(!(Fa(oe)&1024)){let ut=C_(oe);wm(ut.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),td()}function hS(I){let oe=Ui(42,I.pos,mr,I);ar(),Ui(130,oe,Qi,I),ar(),He(I.name)}function gS(I){lb(I)}function sb(I){dg(I)}function lb(I){mr("{"),Ys(I,I.elements,525136),mr("}")}function dg(I){I.isTypeOnly&&(Qi("type"),ar()),I.propertyName&&(He(I.propertyName),ar(),Ui(130,I.propertyName.end,Qi,I),ar()),He(I.name)}function OE(I){Qi("require"),mr("("),Bt(I.expression),mr(")")}function $a(I){He(I.openingElement),Ys(I,I.children,262144),He(I.closingElement)}function sA(I){mr("<"),cb(I.tagName),fg(I,I.typeArguments),ar(),He(I.attributes),mr("/>")}function FD(I){He(I.openingFragment),Ys(I,I.children,262144),He(I.closingFragment)}function WE(I){if(mr("<"),P_(I)){let oe=HD(I.tagName,I);cb(I.tagName),fg(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&ar(),He(I.attributes),TS(I.attributes,I),VE(oe)}mr(">")}function Xg(I){he.writeLiteral(I.text)}function xh(I){mr("")}function Mf(I){Ys(I,I.properties,262656)}function ju(I){He(I.name),Pm("=",mr,I.initializer,hn)}function Ap(I){mr("{..."),Bt(I.expression),mr("}")}function np(I){let oe=!1;return UL(w?.text||"",I+1,()=>oe=!0),oe}function ev(I){let oe=!1;return jL(w?.text||"",I+1,()=>oe=!0),oe}function lA(I){return np(I)||ev(I)}function zD(I){var oe;if(I.expression||!qt&&!qs(I)&&lA(I.pos)){let ut=w&&!qs(I)&&ys(w,I.pos).line!==ys(w,I.end).line;ut&&he.increaseIndent();let nn=Ui(19,I.pos,mr,I);He(I.dotDotDotToken),Bt(I.expression),Ui(20,((oe=I.expression)==null?void 0:oe.end)||nn,mr,I),ut&&he.decreaseIndent()}}function V1(I){pt(I.namespace),mr(":"),pt(I.name)}function cb(I){I.kind===80?Bt(I):He(I)}function FE(I){Ui(84,I.pos,Qi,I),ar(),Bt(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,ut){let nn=oe.length===1&&(!w||qs(I)||qs(oe[0])||y6(I,oe[0],w)),Lr=163969;nn?(ES(59,ut,mr,I),ar(),Lr&=-130):Ui(59,ut,mr,I),Ys(I,oe,Lr)}function tv(I){ar(),mb(I.token,Qi),ar(),Ys(I,I.types,528)}function U1(I){let oe=Ui(85,I.pos,Qi,I);ar(),I.variableDeclaration&&(Ui(21,oe,mr,I),He(I.variableDeclaration),Ui(22,I.variableDeclaration.end,mr,I),ar()),He(I.block)}function e_(I){He(I.name),mr(":"),ar();let oe=I.initializer;if(!(Fa(oe)&1024)){let ut=C_(oe);wm(ut.pos)}Bt(oe,Qn.parenthesizeExpressionForDisallowedComma)}function cA(I){He(I.name),I.objectAssignmentInitializer&&(ar(),mr("="),ar(),Bt(I.objectAssignmentInitializer,Qn.parenthesizeExpressionForDisallowedComma))}function Ve(I){I.expression&&(Ui(26,I.pos,mr,I),Bt(I.expression,Qn.parenthesizeExpressionForDisallowedComma))}function t_(I){He(I.name),pb(I.initializer,I.name.end,I,Qn.parenthesizeExpressionForDisallowedComma)}function pd(I){if(Ge("/**"),I.comment){let oe=ZL(I.comment);if(oe){let ut=oe.split(/\r\n?|\n/g);for(let nn of ut)Kc(),ar(),mr("*"),ar(),Ge(nn)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(ar(),He(I.tags[0])):Ys(I,I.tags,33)),ar(),Ge("*/")}function zE(I){om(I.tagName),Yg(I.typeExpression),am(I.comment)}function H1(I){om(I.tagName),He(I.name),am(I.comment)}function db(I){ar(),mr("{"),He(I.name),mr("}")}function nv(I){om(I.tagName),ar(),mr("{"),He(I.class),mr("}"),am(I.comment)}function rv(I){om(I.tagName),Yg(I.constraint),ar(),Ys(I,I.typeParameters,528),am(I.comment)}function SM(I){om(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?Yg(I.typeExpression):(ar(),mr("{"),Ge("Object"),I.typeExpression.isArrayType&&(mr("["),mr("]")),mr("}"))),I.fullName&&(ar(),He(I.fullName)),am(I.comment),I.typeExpression&&I.typeExpression.kind===329&&uA(I.typeExpression)}function Ha(I){om(I.tagName),I.name&&(ar(),He(I.name)),am(I.comment),BE(I.typeExpression)}function n_(I){am(I.comment),BE(I.typeExpression)}function dA(I){om(I.tagName),am(I.comment)}function uA(I){Ys(I,L.createNodeArray(I.jsDocPropertyTags),33)}function BE(I){I.typeParameters&&Ys(I,L.createNodeArray(I.typeParameters),33),I.parameters&&Ys(I,L.createNodeArray(I.parameters),33),I.type&&(Kc(),ar(),mr("*"),ar(),He(I.type))}function pA(I){om(I.tagName),Yg(I.typeExpression),ar(),I.isBracketed&&mr("["),He(I.name),I.isBracketed&&mr("]"),am(I.comment)}function om(I){mr("@"),He(I)}function am(I){let oe=ZL(I);oe&&(ar(),Ge(oe))}function Yg(I){I&&(ar(),mr("{"),He(I.type),mr("}"))}function K1(I){Kc();let oe=I.statements;if(oe.length===0||!vm(oe[0])||qs(oe[0])){Sr(I,oe,qi);return}qi(I)}function r_(I){yS(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let oe of I.prepends)if(WT(oe)&&oe.syntheticReferences)for(let ut of oe.syntheticReferences)He(ut),Kc()}function BD(I){I.isDeclarationFile&&yS(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function yS(I,oe,ut,nn){if(I){let Lr=he.getTextPos();V_('/// '),Ie&&Ie.sections.push({pos:Lr,end:he.getTextPos(),kind:"no-default-lib"}),Kc()}if(w&&w.moduleName&&(V_(`/// `),Kc()),w&&w.amdDependencies)for(let Lr of w.amdDependencies)Lr.name?V_(`/// `):V_(`/// `),Kc();for(let Lr of oe){let wi=he.getTextPos();V_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"reference",data:Lr.fileName}),Kc()}for(let Lr of ut){let wi=he.getTextPos(),vi=Lr.resolutionMode&&Lr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Lr.resolutionMode===99?"import":"require"}"`:"";V_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:Lr.resolutionMode?Lr.resolutionMode===99?"type-import":"type-require":"type",data:Lr.fileName}),Kc()}for(let Lr of nn){let wi=he.getTextPos();V_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"lib",data:Lr.fileName}),Kc()}}function qi(I){let oe=I.statements;Sd(I),gn(I.statements,nd),Kt(I);let ut=Kl(oe,nn=>!vm(nn));BD(I),Ys(I,oe,1,void 0,ut===-1?oe.length:ut),rp(I)}function Zr(I){let oe=Fa(I);!(oe&1024)&&I.pos!==I.expression.pos&&wm(I.expression.pos),Bt(I.expression),!(oe&2048)&&I.end!==I.expression.end&&_g(I.expression.end)}function Rh(I){bS(I,I.elements,528,void 0)}function Uu(I,oe,ut,nn){let Lr=!!oe;for(let wi=0;wi=ut.length||vi===0;if(_a&&nn&32768){p?.(ut),h?.(ut);return}nn&15360&&(mr(xVe(nn)),_a&&ut&&wm(ut.pos,!0)),p?.(ut),_a?nn&1&&!(fe&&(!oe||w&&IT(oe,w)))?Kc():nn&256&&!(nn&524288)&&ar():Mm(I,oe,ut,nn,Lr,wi,vi,ut.hasTrailingComma,ut),h?.(ut),nn&15360&&(_a&&ut&&_g(ut.end),mr(RVe(nn)))}function Mm(I,oe,ut,nn,Lr,wi,vi,Zi,_a){let Qd=(nn&262144)===0,Nu=Qd,wf=mg(oe,ut[wi],nn);wf?(Kc(wf),Nu=!1):nn&256&&ar(),nn&128&&Dh();let bb=PVe(I,Lr),Si,Ph,Vn=!1;for(let NS=0;NS0){if(nn&131||(Dh(),Vn=!0),Nu&&nn&60&&!Jm(U_.pos)){let ZD=C_(U_);wm(ZD.pos,!!(nn&512),!0)}Kc(Mh),Nu=!1}else Si&&nn&512&&ar()}if(Ph=za(U_),Nu){let Mh=C_(U_);wm(Mh.pos)}else Nu=Qd;ne=U_.pos,bb(U_,I,Lr,NS),Vn&&(Lm(),Vn=!1),Si=U_}let tx=Si?Fa(Si):0,Eb=qt||!!(tx&2048),Sb=Zi&&nn&64&&nn&16;Sb&&(Si&&!Eb?Ui(28,Si.end,mr,Si):mr(",")),Si&&(oe?oe.end:-1)!==Si.end&&nn&60&&!Eb&&_g(Sb&&_a?.end?_a.end:Si.end),nn&128&&Lm(),vn(Ph);let CA=q1(oe,ut[wi+vi-1],nn,_a);CA?Kc(CA):nn&2097408&&ar()}function fb(I){he.writeLiteral(I)}function UD(I){he.writeStringLiteral(I)}function hA(I){he.write(I)}function IM(I,oe){he.writeSymbol(I,oe)}function mr(I){he.writePunctuation(I)}function td(){he.writeTrailingSemicolon(";")}function Qi(I){he.writeKeyword(I)}function pf(I){he.writeOperator(I)}function ov(I){he.writeParameter(I)}function V_(I){he.writeComment(I)}function ar(){he.writeSpace(" ")}function gA(I){he.writeProperty(I)}function GE(I){he.nonEscapingWrite?he.nonEscapingWrite(I):he.write(I)}function Kc(I=1){for(let oe=0;oe0)}function Dh(){he.increaseIndent()}function Lm(){he.decreaseIndent()}function ES(I,oe,ut,nn){return ze?mb(I,ut,oe):CS(nn,I,ut,oe,mb)}function SS(I,oe){m&&m(I),oe(da(I.kind)),y&&y(I)}function mb(I,oe,ut){let nn=da(I);return oe(nn),ut<0?ut:ut+nn.length}function Zg(I,oe,ut){if(Fa(I)&1)ar();else if(fe){let nn=Gp(I,oe,ut);nn?Kc(nn):ar()}else Kc()}function yA(I){let oe=I.split(/\r\n?|\n/g),ut=Pre(oe);for(let nn of oe){let Lr=ut?nn.slice(ut):nn;Lr.length&&(Kc(),Ge(Lr))}}function km(I,oe){I?(Dh(),Kc(I)):oe&&ar()}function VE(I,oe){I&&Lm(),oe&&Lm()}function mg(I,oe,ut){if(ut&2||fe){if(ut&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&&!Jm(I.pos)&&!qs(oe)&&(!oe.parent||Cl(oe.parent)===Cl(I)))return fe?jE(nn=>noe(oe.pos,I.pos,w,nn)):y6(I,oe,w)?0:1;if(vA(oe,ut))return 1}return ut&1?1:0}function _b(I,oe,ut){if(ut&2||fe){if(I===void 0||oe===void 0||oe.kind===12)return 0;if(w&&!qs(I)&&!qs(oe))return fe&&Cu(I,oe)?jE(nn=>Yj(I,oe,w,nn)):!fe&&ff(I,oe)?rk(I,oe,w)?0:1:ut&65536?1:0;if(vA(I,ut)||vA(oe,ut))return 1}else if(rP(oe))return 1;return ut&1?1:0}function q1(I,oe,ut,nn){if(ut&2||fe){if(ut&65536)return 1;if(oe===void 0)return!I||w&&IT(I,w)?0:1;if(w&&I&&!Jm(I.pos)&&!qs(oe)&&(!oe.parent||oe.parent===I)){if(fe){let Lr=nn&&!Jm(nn.end)?nn.end:oe.end;return jE(wi=>roe(Lr,I.end,w,wi))}return Zie(I,oe,w)?0:1}if(vA(oe,ut))return 1}return ut&1&&!(ut&131072)?1:0}function jE(I){R.assert(!!fe);let oe=I(!0);return oe===0?I(!1):oe}function HD(I,oe){let ut=fe&&mg(oe,I,0);return ut&&km(ut,!1),!!ut}function TS(I,oe){let ut=fe&&q1(oe,I,0,void 0);ut&&Kc(ut)}function vA(I,oe){if(qs(I)){let ut=rP(I);return ut===void 0?(oe&65536)!==0:ut}return(oe&65536)!==0}function Gp(I,oe,ut){return Fa(I)&262144?0:(I=Vl(I),oe=Vl(oe),ut=Vl(ut),rP(ut)?1:w&&!qs(I)&&!qs(oe)&&!qs(ut)?fe?jE(nn=>Yj(oe,ut,w,nn)):rk(oe,ut,w)?0:1:0)}function bA(I){return I.statements.length===0&&(!w||rk(I,I,w))}function Vl(I){for(;I.kind===217&&qs(I);)I=I.expression;return I}function Oc(I,oe){if(il(I)||aT(I))return SA(I);if(Da(I)&&I.textSourceNode)return Oc(I.textSourceNode,oe);let ut=w,nn=!!ut&&!!I.parent&&!qs(I);if(Kh(I)){if(!nn||Gn(I)!==Cl(ut))return yr(I)}else if(Xm(I)){if(!nn||Gn(I)!==Cl(ut))return ZN(I)}else if(R.assertNode(I,E0),!nn)return I.text;return T0(ut,I,oe)}function EA(I,oe,ut){if(I.kind===11&&I.textSourceNode){let Lr=I.textSourceNode;if(Fe(Lr)||Ki(Lr)||mp(Lr)||Xm(Lr)){let wi=mp(Lr)?Lr.text:Oc(Lr);return ut?`"${wj(wi)}"`:oe||Fa(I)&16777216?`"${Zh(wi)}"`:`"${$2(wi)}"`}else return EA(Lr,oe,ut)}let nn=(oe?1:0)|(ut?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Vre(I,w,nn)}function Sd(I){I&&Fa(I)&1048576||(ge.push(q),q=0,ce.push(z),z=void 0,J.push(re))}function rp(I){I&&Fa(I)&1048576||(q=ge.pop(),z=ce.pop(),re=J.pop())}function UE(I){(!re||re===Qs(J))&&(re=new Set),re.add(I)}function Lf(I,oe){ee.push(me),me=I,pe.push(re),xe=oe}function hb(){me=ee.pop(),xe=pe.pop()}function gb(I){(!xe||xe===Qs(pe))&&(xe=new Set),xe.add(I)}function nd(I){if(I)switch(I.kind){case 241:gn(I.statements,nd);break;case 256:case 254:case 246:case 247:nd(I.statement);break;case 245:nd(I.thenStatement),nd(I.elseStatement);break;case 248:case 250:case 249:nd(I.initializer),nd(I.statement);break;case 255:nd(I.caseBlock);break;case 269:gn(I.clauses,nd);break;case 296:case 297:gn(I.statements,nd);break;case 258:nd(I.tryBlock),nd(I.catchClause),nd(I.finallyBlock);break;case 299:nd(I.variableDeclaration),nd(I.block);break;case 243:nd(I.declarationList);break;case 261:gn(I.declarations,nd);break;case 260:case 169:case 208:case 263:Vp(I.name);break;case 262:Vp(I.name),Fa(I)&1048576&&(gn(I.parameters,nd),nd(I.body));break;case 206:case 207:gn(I.elements,nd);break;case 272:nd(I.importClause);break;case 273:Vp(I.name),nd(I.namedBindings);break;case 274:Vp(I.name);break;case 280:Vp(I.name);break;case 275:gn(I.elements,nd);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&&(il(I)||aT(I)?SA(I):Yo(I)&&nd(I))}function SA(I){let oe=I.emitNode.autoGenerate;if((oe.flags&7)===4)return TA(qk(I),Ki(I),oe.flags,oe.prefix,oe.suffix);{let ut=oe.id;return Y[ut]||(Y[ut]=JD(I))}}function TA(I,oe,ut,nn,Lr){let wi=rs(I),vi=oe?K:j;return vi[wi]||(vi[wi]=AA(I,oe,ut??0,BR(nn,SA),BR(Lr)))}function js(I,oe){return HE(I,oe)&&!KD(I,oe)&&!B.has(I)}function KD(I,oe){return oe?!!xe?.has(I):!!re?.has(I)}function HE(I,oe){return w?TF(w,I,r):!0}function AS(I,oe){for(let ut=oe;ut&&N0(ut,oe);ut=ut.nextContainer)if(ch(ut)&&ut.locals){let nn=ut.locals.get(fl(I));if(nn&&nn.flags&3257279)return!1}return!0}function xM(I){switch(I){case"":return q;case"#":return me;default:return z?.get(I)??0}}function hu(I,oe){switch(I){case"":q=oe;break;case"#":me=oe;break;default:z??(z=new Map),z.set(I,oe);break}}function ey(I,oe,ut,nn,Lr){nn.length>0&&nn.charCodeAt(0)===35&&(nn=nn.slice(1));let wi=bE(ut,nn,"",Lr),vi=xM(wi);if(I&&!(vi&I)){let _a=bE(ut,nn,I===268435456?"_i":"_n",Lr);if(js(_a,ut))return vi|=I,ut?gb(_a):oe&&UE(_a),hu(wi,vi),_a}for(;;){let Zi=vi&268435455;if(vi++,Zi!==8&&Zi!==13){let _a=Zi<26?"_"+String.fromCharCode(97+Zi):"_"+(Zi-26),Qd=bE(ut,nn,_a,Lr);if(js(Qd,ut))return ut?gb(Qd):oe&&UE(Qd),hu(wi,vi),Qd}}}function j_(I,oe=js,ut,nn,Lr,wi,vi){if(I.length>0&&I.charCodeAt(0)===35&&(I=I.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),ut){let _a=bE(Lr,wi,I,vi);if(oe(_a,Lr))return Lr?gb(_a):nn?UE(_a):B.add(_a),_a}I.charCodeAt(I.length-1)!==95&&(I+="_");let Zi=1;for(;;){let _a=bE(Lr,wi,I+Zi,vi);if(oe(_a,Lr))return Lr?gb(_a):nn?UE(_a):B.add(_a),_a;Zi++}}function Y1(I){return j_(I,HE,!0,!1,!1,"","")}function Ip(I){let oe=Oc(I.name);return AS(oe,ii(I,ch))?oe:j_(oe,js,!1,!1,!1,"","")}function $1(I){let oe=tR(I),ut=Da(oe)?Ure(oe.text):"module";return j_(ut,js,!1,!1,!1,"","")}function ip(){return j_("default",js,!1,!1,!1,"","")}function Q1(){return j_("class",js,!1,!1,!1,"","")}function av(I,oe,ut,nn){return Fe(I.name)?TA(I.name,oe):ey(0,!1,oe,ut,nn)}function AA(I,oe,ut,nn,Lr){switch(I.kind){case 80:case 81:return j_(Oc(I),js,!!(ut&16),!!(ut&8),oe,nn,Lr);case 267:case 266:return R.assert(!nn&&!Lr&&!oe),Ip(I);case 272:case 278:return R.assert(!nn&&!Lr&&!oe),$1(I);case 262:case 263:{R.assert(!nn&&!Lr&&!oe);let wi=I.name;return wi&&!il(wi)?AA(wi,!1,ut,nn,Lr):ip()}case 277:return R.assert(!nn&&!Lr&&!oe),ip();case 231:return R.assert(!nn&&!Lr&&!oe),Q1();case 174:case 177:case 178:return av(I,oe,nn,Lr);case 167:return ey(0,!0,oe,nn,Lr);default:return ey(0,!1,oe,nn,Lr)}}function JD(I){let oe=I.emitNode.autoGenerate,ut=BR(oe.prefix,SA),nn=BR(oe.suffix);switch(oe.flags&7){case 1:return ey(0,!!(oe.flags&8),Ki(I),ut,nn);case 2:return R.assertNode(I,Fe),ey(268435456,!!(oe.flags&8),!1,ut,nn);case 3:return j_(yr(I),oe.flags&32?HE:js,!!(oe.flags&16),!!(oe.flags&8),Ki(I),ut,nn)}return R.fail(`Unsupported GeneratedIdentifierKind: ${R.formatEnum(oe.flags&7,PW,!0)}.`)}function qD(I,oe){let ut=ie(2,I,oe),nn=Zt,Lr=en,wi=Dn;IA(oe),ut(I,oe),XD(oe,nn,Lr,wi)}function IA(I){let oe=Fa(I),ut=C_(I);yb(I,oe,ut.pos,ut.end),oe&4096&&(qt=!0)}function XD(I,oe,ut,nn){let Lr=Fa(I),wi=C_(I);Lr&4096&&(qt=!1),xp(I,Lr,wi.pos,wi.end,oe,ut,nn);let vi=tae(I);vi&&xp(I,Lr,vi.pos,vi.end,oe,ut,nn)}function yb(I,oe,ut,nn){Li(),Yt=!1;let Lr=ut<0||(oe&1024)!==0||I.kind===12,wi=nn<0||(oe&2048)!==0||I.kind===12;(ut>0||nn>0)&&ut!==nn&&(Lr||IS(ut,I.kind!==359),(!Lr||ut>=0&&oe&1024)&&(Zt=ut),(!wi||nn>=0&&oe&2048)&&(en=nn,I.kind===261&&(Dn=nn))),gn(IR(I),Ch),Eo()}function xp(I,oe,ut,nn,Lr,wi,vi){Li();let Zi=nn<0||(oe&2048)!==0||I.kind===12;gn(xk(I),YD),(ut>0||nn>0)&&ut!==nn&&(Zt=Lr,en=wi,Dn=vi,!Zi&&I.kind!==359&&i_(nn)),Eo()}function Ch(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),ut=I.kind===3?hI(oe):void 0;fR(oe,ut,he,0,oe.length,A)}function es(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function Sr(I,oe,ut){Li();let{pos:nn,end:Lr}=oe,wi=Fa(I),vi=nn<0||(wi&1024)!==0,Zi=qt||Lr<0||(wi&2048)!==0;vi||kf(oe),Eo(),wi&4096&&!qt?(qt=!0,ut(I),qt=!1):ut(I),Li(),Zi||(IS(oe.end,!0),Yt&&!he.isAtStartOfLine()&&he.writeLine()),Eo()}function ff(I,oe){return I=Cl(I),I.parent&&I.parent===Cl(oe).parent}function Cu(I,oe){if(oe.pos-1&&nn.indexOf(oe)===Lr+1}function IS(I,oe){Yt=!1,oe?I===0&&w?.isDeclarationFile?gg(I,KE):gg(I,RA):I===0&&gg(I,$D)}function $D(I,oe,ut,nn,Lr){_f(I,oe)&&RA(I,oe,ut,nn,Lr)}function KE(I,oe,ut,nn,Lr){_f(I,oe)||RA(I,oe,ut,nn,Lr)}function xS(I,oe){return e.onlyPrintJsDocStyle?RH(I,oe)||AF(I,oe):!0}function RA(I,oe,ut,nn,Lr){!w||!xS(w.text,I)||(Yt||(Fie(Tt(),he,Lr,I),Yt=!0),Ns(I),fR(w.text,Tt(),he,I,oe,A),Ns(oe),nn?he.writeLine():ut===3&&he.writeSpace(" "))}function _g(I){qt||I===-1||IS(I,!0)}function i_(I){Z1(I,mf)}function mf(I,oe,ut,nn){!w||!xS(w.text,I)||(he.isAtStartOfLine()||he.writeSpace(" "),Ns(I),fR(w.text,Tt(),he,I,oe,A),Ns(oe),nn&&he.writeLine())}function wm(I,oe,ut){qt||(Li(),Z1(I,oe?mf:ut?ty:hg),Eo())}function ty(I,oe,ut){w&&(Ns(I),fR(w.text,Tt(),he,I,oe,A),Ns(oe),ut===2&&he.writeLine())}function hg(I,oe,ut,nn){w&&(Ns(I),fR(w.text,Tt(),he,I,oe,A),Ns(oe),nn?he.writeLine():he.writeSpace(" "))}function gg(I,oe){w&&(Zt===-1||I!==Zt)&&(sc(I)?QD(oe):jL(w.text,I,oe,I))}function Z1(I,oe){w&&(en===-1||I!==en&&I!==Dn)&&UL(w.text,I,oe)}function sc(I){return pn!==void 0&&Ka(pn).nodePos===I}function QD(I){if(!w)return;let oe=Ka(pn).detachedCommentEndPos;pn.length-1?pn.pop():pn=void 0,jL(w.text,oe,I,oe)}function kf(I){let oe=w&&Bie(w.text,Tt(),he,Nh,I,A,qt);oe&&(pn?pn.push(oe):pn=[oe])}function Nh(I,oe,ut,nn,Lr,wi){!w||!xS(w.text,nn)||(Ns(nn),fR(I,oe,ut,nn,Lr,wi),Ns(Lr))}function _f(I,oe){return!!w&&UV(w.text,I,oe)}function RS(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=IK(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function JE(I,oe){let ut=ie(3,I,oe);ex(oe),ut(I,oe),DA(oe)}function ex(I){let oe=Fa(I),ut=zy(I);if(IV(I)){R.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let nn=RS(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=ut.source||Ft;I.kind!==359&&!(oe&32)&&ut.pos>=0&&DS(ut.source||Ft,hf(nn,ut.pos)),oe&128&&(ze=!0)}}function DA(I){let oe=Fa(I),ut=zy(I);IV(I)||(oe&128&&(ze=!1),I.kind!==359&&!(oe&64)&&ut.end>=0&&DS(ut.source||Ft,ut.end))}function hf(I,oe){return I.skipTrivia?I.skipTrivia(oe):Na(I.text,oe)}function Ns(I){if(ze||Jm(I)||qE(Ft))return;let{line:oe,character:ut}=ys(Ft,I);tt.addMapping(he.getLine(),he.getColumn(),_t,oe,ut,void 0)}function DS(I,oe){if(I!==Ft){let ut=Ft,nn=_t;ny(I),Ns(oe),vb(ut,nn)}else Ns(oe)}function CS(I,oe,ut,nn,Lr){if(ze||I&&UF(I))return Lr(oe,ut,nn);let wi=I&&I.emitNode,vi=wi&&wi.flags||0,Zi=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[oe],_a=Zi&&Zi.source||Ft;return nn=hf(_a,Zi?Zi.pos:nn),!(vi&256)&&nn>=0&&DS(_a,nn),nn=Lr(oe,ut,nn),Zi&&(nn=Zi.end),!(vi&512)&&nn>=0&&DS(_a,nn),nn}function ny(I){if(!ze){if(Ft=I,I===Je){_t=ft;return}qE(I)||(_t=tt.addSource(I.fileName),e.inlineSources&&tt.setSourceContent(_t,I.text),Je=I,ft=_t)}}function vb(I,oe){Ft=I,_t=oe}function qE(I){return Sl(I.fileName,".json")}}function IVe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function xVe(e){return jle[e&15360][0]}function RVe(e){return jle[e&15360][1]}function DVe(e,t,r,i){t(e)}function CVe(e,t,r,i){t(e,r.select(i))}function NVe(e,t,r,i){t(e,r)}function PVe(e,t){return e.length===1?DVe:typeof t=="object"?CVe:NVe}var jle,Y3,XK,iS,YK,Rw,MVe=bt({"src/compiler/emitter.ts"(){"use strict";Qo(),Qo(),nT(),jle=IVe(),Y3={hasGlobalName:jo,getReferencedExportContainer:jo,getReferencedImportDeclaration:jo,getReferencedDeclarationWithCollidingName:jo,isDeclarationWithCollidingName:jo,isValueAliasDeclaration:jo,isReferencedAliasDeclaration:jo,isTopLevelValueImportEqualsWithEntityName:jo,getNodeCheckFlags:jo,isDeclarationVisible:jo,isLateBound:e=>!1,collectLinkedAliases:jo,isImplementationOfOverload:jo,isRequiredInitializedParameter:jo,isOptionalUninitializedParameterProperty:jo,isExpandoFunctionDeclaration:jo,getPropertiesOfContainerFunction:jo,createTypeOfDeclaration:jo,createReturnTypeOfSignatureDeclaration:jo,createTypeOfExpression:jo,createLiteralConstValue:jo,isSymbolAccessible:jo,isEntityNameVisible:jo,getConstantValue:jo,getReferencedValueDeclaration:jo,getReferencedValueDeclarations:jo,getTypeReferenceSerializationKind:jo,isOptionalParameter:jo,moduleExportsSomeValue:jo,isArgumentsLocalBinding:jo,getExternalModuleFileFromDeclaration:jo,getTypeReferenceDirectivesForEntityName:jo,getTypeReferenceDirectivesForSymbol:jo,isLiteralConstDeclaration:jo,getJsxFactoryEntity:jo,getJsxFragmentFactoryEntity:jo,getAllAccessorDeclarations:jo,getSymbolOfExternalModuleSpecifier:jo,isBindingCapturedByNode:jo,getDeclarationStatementsForSourceFile:jo,isImportRequiredByAugmentation:jo,tryFindAmbientModule:jo},XK=Eu(()=>IE({})),iS=Eu(()=>IE({removeComments:!0})),YK=Eu(()=>IE({removeComments:!0,neverAsciiEscape:!0})),Rw=Eu(()=>IE({removeComments:!0,omitTrailingSemicolon:!0}))}});function $3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Cd(r);return{useCaseSensitiveFileNames:r,fileExists:S,readFile:(z,ee)=>e.readFile(z,ee),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 nl(z,t,o)}function l(z){return i.get(Fc(z))}function d(z){let ee=l(ai(z));return ee&&(ee.sortedAndCanonicalizedFiles||(ee.sortedAndCanonicalizedFiles=ee.files.map(o).sort(),ee.sortedAndCanonicalizedDirectories=ee.directories.map(o).sort()),ee)}function p(z){return nc(ma(z))}function h(z,ee){var me;if(!e.realpath||Fc(s(e.realpath(z)))===ee){let ge={files:mn(e.readDirectory(z,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(z)||[]};return i.set(Fc(ee),ge),ge}if((me=e.directoryExists)!=null&&me.call(e,z))return i.set(ee,!1),!1}function m(z,ee){ee=Fc(ee);let me=l(ee);if(me)return me;try{return h(z,ee)}catch{R.assert(!i.has(Fc(ee)));return}}function y(z,ee){return Sy(z,ee,Zs,Vd)>=0}function E(z,ee,me){let ge=s(z),q=d(ge);return q&&B(q,p(z),!0),e.writeFile(z,ee,me)}function S(z){let ee=s(z),me=d(ee);return me&&y(me.sortedAndCanonicalizedFiles,o(p(z)))||e.fileExists(z)}function A(z){let ee=s(z);return i.has(Fc(ee))||e.directoryExists(z)}function N(z){let ee=s(z),me=d(ee);if(me){let ge=p(z),q=o(ge),J=me.sortedAndCanonicalizedDirectories;bv(J,q,Vd)&&me.directories.push(ge)}e.createDirectory(z)}function D(z){let ee=s(z),me=m(z,ee);return me?me.directories.slice():e.getDirectories(z)}function w(z,ee,me,ge,q){let J=s(z),re=m(z,J),pe;if(re!==void 0)return lU(z,ee,me,ge,r,t,q,xe,j);return e.readDirectory(z,ee,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,ee){if(l(ee)!==void 0){ce();return}let ge=d(ee);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,ee,me){if(me===1)return;let ge=d(ee);ge&&B(ge,p(z),me===0)}function B(z,ee,me){let ge=z.sortedAndCanonicalizedFiles,q=o(ee);if(me)bv(ge,q,Vd)&&z.files.push(ee);else{let J=Sy(ge,q,Zs,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=h0(((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){FN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Km})}function Dw(e,t,r){t?FN(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 Cw({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)&&!(Aoe(t,o,l)||w()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(ase(t,o.configFile.configFileSpecs,_o(ai(i),d),p,d))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ds(o)||o.outDir)return!1;if(bd(r)){if(o.declarationDir)return!1}else if(!bc(r,AR))return!1;let S=Tu(r),A=So(s)?void 0:LVe(s)?s.getProgramOrUndefined():s,N=!A&&!So(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 jv(o);case 6:return _E(o);case 0:return!1}}}function LVe(e){return!!e.getState}function Ule(e,t){return e?e.isEmittedFile(t):!1}function ZK(e,t,r,i){Dne(t===2?r:Ja);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=Js(),z=s.watchDirectory(N,D,w,j,K,Y),ee=Js()-ce;return r(`Elapsed:: ${ee}ms ${B}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${A(N,w,j,K,Y,i)}`;r(me);let ge=Js();z.close();let q=Js()-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 ee=Js();w.call(void 0,...ce);let me=Js()-ee;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 Nw(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Rf(e){e.watcher.close()}var eJ,tJ,kVe=bt({"src/compiler/watchUtilities.ts"(){"use strict";Qo(),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 Hle(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=ai(t),i=cp(e)?e:Yr(r,e);return ma(i)}function Kle(e,t,r){let i;return gn(e,s=>{let l=OL(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{tl("beforeIORead"),l=e(i,t().charset),tl("afterIORead"),Yp("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?$k(i,l,o,r):void 0}}function rJ(e,t,r){return(i,o,s,l)=>{try{tl("beforeIOWrite"),zj(i,o,s,e,t,r),tl("afterIOWrite"),Yp("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function iJ(e,t,r=_d){let i=new Map,o=Cd(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return ai(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(),KL(m)),writeFile:rJ((m,y,E)=>r.writeFile(m,y,E),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Eu(()=>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:ea(r,r.createHash)};return h}function Pw(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")&&!Ble(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&&(bd(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 t1e(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 n1e(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}=ys(e.file,e.start),s=e.file.fileName;return`${qC(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function r1e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return R.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function oS(e,t){return t+e+$le}function i1e(e,t,r,i,o,s){let{line:l,character:d}=ys(e,t),{line:p,character:h}=ys(e,t+r),m=ys(e,e.text.length).line,y=p-l>=4,E=(p+1+"").length;y&&(E=Math.max(Qle.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 qle(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+=oS(rT(i),r1e(i.category)),r+=oS(` 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+=i1e(i.file,i.start,i.length,"",r1e(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+=s1e+aJ(o,s,t),r+=i1e(o,s,l,Zle,"\x1B[96m",t)),r+=t.getNewLine(),r+=Zle+k_(d,t.getNewLine())}r+=t.getNewLine()}return r}function k_(e,t,r=0){if(Co(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 Co(e)?e:oh(e.fileName)}function tz(e,t,r,i,o){return{nameAndMode:l1e,resolve:(s,l)=>Ese(s,e,r,i,t,o,l)}}function Lw(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=DP(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?ai(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 o1e(e){let t=oh(e.fileName),r=c3.get(t);return{libName:t,libFileName:r}}function xE(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 jP(e,t){var r,i,o,s;let l=R.checkDefined(e.getSourceFileByPath(t.file)),{kind:d,index:p}=t,h,m,y,E;switch(d){case 3:let S=ww(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,oh(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 R.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?.()||!Vm(e.getRootFileNames(),t))return!1;let m;if(!Vm(e.getProjectReferences(),h,N)||e.getSourceFiles().some(S))return!1;let y=e.getMissingFilePaths();if(y&&zc(y,o))return!1;let E=e.getCompilerOptions();if(!Qj(E,r)||e.resolvedLibReferences&&zc(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(zo(m,w))return!0;let Y=eD(j),B=p(Y);return!B||w.commandLine.options.configFile!==B.options.configFile||!Vm(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 kw(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(pu(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=fw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=mw(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function wVe(e,t){return e?Gx(e.getCompilerOptions(),t,u3):!1}function OVe(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=So(e)?OVe(e,t,r,i,o):e,{rootNames:ce,options:z,configFileParsingDiagnostics:ee,projectReferences:me,typeScriptVersion:ge}=B,{oldProgram:q}=B,J=Eu(()=>Dm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),re,pe,xe,fe,ne,he,Ce,Ge=new Map,ve=Xp(),Ie={},De={},Le=u1(),Et,be,ze,tt,Ft,_t,Je,ft,Zt,en,Dn=typeof z.maxNodeModuleJsDepth=="number"?z.maxNodeModuleJsDepth:0,Kn=0,pn=new Map,Yt=new Map;(s=rr)==null||s.push(rr.Phase.Program,"createProgram",{configFilePath:z.configFilePath,rootDir:z.rootDir},!0),tl("beforeProgram");let qt=B.host||Jle(z),hi=az(qt),uo=z.noLib,Li=Eu(()=>qt.getDefaultLibFileName(z)),Eo=qt.getDefaultLibLocation?qt.getDefaultLibLocation():ai(Li()),Qn=cR(),Ur=qt.getCurrentDirectory(),Er=GN(z),on=sk(z,Er),Ye=new Map,Wt,In,li,yi=qt.hasInvalidatedResolutions||jm;qt.resolveModuleNameLiterals?(li=qt.resolveModuleNameLiterals.bind(qt),In=(l=qt.getModuleResolutionCache)==null?void 0:l.call(qt)):qt.resolveModuleNames?(li=(we,qe,Pt,Vt,_n,Jn)=>qt.resolveModuleNames(we.map(Yle),qe,Jn?.map(Yle),Pt,Vt,_n).map(fn=>fn?fn.extension!==void 0?{resolvedModule:fn}:{resolvedModule:{...fn,extension:jN(fn.resolvedFileName)}}:ece),In=(d=qt.getModuleResolutionCache)==null?void 0:d.call(qt)):(In=HR(Ur,Z,z),li=(we,qe,Pt,Vt,_n)=>Lw(we,qe,Pt,Vt,_n,qt,In,dJ));let $i;if(qt.resolveTypeReferenceDirectiveReferences)$i=qt.resolveTypeReferenceDirectiveReferences.bind(qt);else if(qt.resolveTypeReferenceDirectives)$i=(we,qe,Pt,Vt,_n)=>qt.resolveTypeReferenceDirectives(we.map(uJ),qe,Pt,Vt,_n?.impliedNodeFormat).map(Jn=>({resolvedTypeReferenceDirective:Jn}));else{let we=b3(Ur,Z,void 0,In?.getPackageJsonInfoCache(),In?.optionsToRedirectsKey);$i=(qe,Pt,Vt,_n,Jn)=>Lw(qe,Pt,Vt,_n,Jn,qt,we,tz)}let Ao=qt.hasInvalidatedLibResolutions||jm,ua;if(qt.resolveLibrary)ua=qt.resolveLibrary.bind(qt);else{let we=HR(Ur,Z,z,In?.getPackageJsonInfoCache());ua=(qe,Pt,Vt)=>E3(qe,Pt,Vt,qt,we)}let za=new Map,vn=new Map,kn=Xp(),Be=!1,ct=new Map,lt=new Map,Rt=qt.useCaseSensitiveFileNames()?new Map:void 0,se,ke,st,G,et=!!((p=qt.useSourceOfProjectReferenceRedirect)!=null&&p.call(qt))&&!z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:He,directoryExists:pt}=WVe({compilerHost:qt,getSymlinkCache:B_,useSourceOfProjectReferenceRedirect:et,toPath:er,getResolvedProjectReferences:Po,getSourceOfProjectReferenceRedirect:Du,forEachResolvedProjectReference:Bu}),Bt=qt.readFile.bind(qt);(h=rr)==null||h.push(rr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let hn=wVe(q,z);(m=rr)==null||m.pop();let dn;if((y=rr)==null||y.push(rr.Phase.Program,"tryReuseStructureFromOldProgram",{}),dn=Io(),(E=rr)==null||E.pop(),dn!==2){if(re=[],pe=[],me&&(se||(se=me.map(Gt)),ce.length&&se?.forEach((we,qe)=>{if(!we)return;let Pt=Ds(we.commandLine.options);if(et){if(Pt||Md(we.commandLine.options)===0)for(let Vt of we.commandLine.fileNames)Lt(Vt,{kind:1,index:qe})}else if(Pt)Lt(fE(Pt,".d.ts"),{kind:2,index:qe});else if(Md(we.commandLine.options)===0){let Vt=Eu(()=>$R(we.commandLine,!qt.useCaseSensitiveFileNames()));for(let _n of we.commandLine.fileNames)!bd(_n)&&!Sl(_n,".json")&&Lt(GP(_n,we.commandLine,!qt.useCaseSensitiveFileNames(),Vt),{kind:2,index:qe})}})),(S=rr)==null||S.push(rr.Phase.Program,"processRootFiles",{count:ce.length}),gn(ce,(we,qe)=>Vs(we,!1,!1,{kind:0,index:qe})),(A=rr)==null||A.pop(),be??(be=ce.length?y3(z,qt):Xe),ze=u1(),be.length){(N=rr)==null||N.push(rr.Phase.Program,"processTypeReferences",{count:be.length});let we=z.configFilePath?ai(z.configFilePath):Ur,qe=Yr(we,tD),Pt=Ri(be,qe);for(let Vt=0;Vt{Vs(Sp(qe),!0,!1,{kind:6,index:Pt})})}xe=Ey(re,gi).concat(pe),re=void 0,pe=void 0}if(q&&qt.onReleaseOldSourceFile){let we=q.getSourceFiles();for(let qe of we){let Pt=pl(qe.resolvedPath);(hn||!Pt||Pt.impliedNodeFormat!==qe.impliedNodeFormat||qe.resolvedPath===qe.path&&Pt.resolvedPath!==qe.path)&&qt.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!pl(qe.path))}qt.getParsedCommandLine||q.forEachResolvedProjectReference(qe=>{z_(qe.sourceFile.path)||qt.onReleaseOldSourceFile(qe.sourceFile,q.getCompilerOptions(),!1)})}q&&qt.onReleaseParsedCommandLine&&nz(q.getProjectReferences(),q.getResolvedProjectReferences(),(we,qe,Pt)=>{let Vt=qe?.commandLine.projectReferences[Pt]||q.getProjectReferences()[Pt],_n=eD(Vt);ke?.has(er(_n))||qt.onReleaseParsedCommandLine(_n,we,q.getCompilerOptions())}),q=void 0,Ft=void 0,Je=void 0,Zt=void 0;let un={getRootFileNames:()=>ce,getSourceFile:Ca,getSourceFileByPath:pl,getSourceFiles:()=>xe,getMissingFilePaths:()=>lt,getModuleResolutionCache:()=>In,getFilesByNameMap:()=>ct,getCompilerOptions:()=>z,getSyntacticDiagnostics:ac,getOptionsDiagnostics:Cr,getGlobalDiagnostics:bl,getSemanticDiagnostics:xl,getCachedSemanticDiagnostics:sl,getSuggestionDiagnostics:Pe,getDeclarationDiagnostics:Gs,getBindAndCheckDiagnostics:Mo,getProgramDiagnostics:tn,getTypeChecker:mo,getClassifiableNames:ho,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:_l,isSourceFileDefaultLibrary:sd,getModeForUsageLocation:uf,getModeForResolutionAtIndex:Jg,getSourceFileFromReference:im,getLibFileFromReference:wc,sourceFileToPackageName:vn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:Be,resolvedModules:_t,resolvedTypeReferenceDirectiveNames:ft,resolvedLibReferences:tt,getResolvedModule:U,getResolvedModuleFromModuleSpecifier:Me,getResolvedTypeReferenceDirective:Nt,forEachResolvedModule:k,forEachResolvedTypeReferenceDirective:ie,getCurrentPackagesMap:()=>en,typesPackageExists:We,packageBundlesTypes:Ne,isEmittedFile:mS,getConfigFileParsingDiagnostics:jc,getProjectReferences:ss,getResolvedProjectReferences:Po,getProjectReferenceRedirect:Gl,getResolvedProjectReferenceToRedirect:cf,getResolvedProjectReferenceByPath:z_,forEachResolvedProjectReference:Bu,isSourceOfProjectReferenceRedirect:Pf,emitBuildInfo:$l,fileExists:He,readFile:Bt,directoryExists:pt,getSymlinkCache:B_,realpath:(K=qt.realpath)==null?void 0:K.bind(qt),useCaseSensitiveFileNames:()=>qt.useCaseSensitiveFileNames(),getCanonicalFileName:Z,getFileIncludeReasons:()=>ve,structureIsReused:dn,writeFile:ws};return Tt(),Et?.forEach(we=>{switch(we.kind){case 1:return Qn.add(oi(we.file&&pl(we.file),we.fileProcessingReason,we.diagnostic,we.args||Xe));case 0:let{file:qe,pos:Pt,end:Vt}=jP(un,we.reason);return Qn.add(Yc(qe,R.checkDefined(Pt),R.checkDefined(Vt)-Pt,we.diagnostic,...we.args||Xe));case 2:return we.diagnostics.forEach(_n=>Qn.add(_n));default:R.assertNever(we)}}),O(),tl("afterProgram"),Yp("Program","beforeProgram","afterProgram"),(Y=rr)==null||Y.pop(),un;function U(we,qe,Pt){var Vt;return(Vt=_t?.get(we.path))==null?void 0:Vt.get(qe,Pt)}function Me(we){let qe=Gn(we);return R.assertIsDefined(qe,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),U(qe,we.text,uf(qe,we))}function Nt(we,qe,Pt){var Vt;return(Vt=ft?.get(we.path))==null?void 0:Vt.get(qe,Pt)}function k(we,qe){H(_t,we,qe)}function ie(we,qe){H(ft,we,qe)}function H(we,qe,Pt){var Vt;Pt?(Vt=we?.get(Pt.path))==null||Vt.forEach((_n,Jn,fn)=>qe(_n,Jn,fn,Pt.path)):we?.forEach((_n,Jn)=>_n.forEach((fn,qn,mi)=>qe(fn,qn,mi,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,Vt){if(qt.resolveModuleNameLiterals||!qt.resolveModuleNames)return It(Pt);if(!In||qc(qe))return;let _n=_o(we.originalFileName,Ur),Jn=ai(_n),fn=wn(we),qn=In.getFromNonRelativeNameCache(qe,Vt,Jn,fn);qn&&It(qn)}function Kt(we,qe,Pt){var Vt,_n;if(!we.length)return Xe;let Jn=_o(qe.originalFileName,Ur),fn=wn(qe);(Vt=rr)==null||Vt.push(rr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Jn}),tl("beforeResolveModule");let qn=li(we,Jn,fn,z,qe,Pt);return tl("afterResolveModule"),Yp("ResolveModule","beforeResolveModule","afterResolveModule"),(_n=rr)==null||_n.pop(),qn}function En(we,qe,Pt){var Vt,_n;if(!we.length)return[];let Jn=Co(qe)?void 0:qe,fn=Co(qe)?qe:_o(qe.originalFileName,Ur),qn=Jn&&wn(Jn);(Vt=rr)==null||Vt.push(rr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:fn}),tl("beforeResolveTypeReference");let mi=$i(we,fn,qn,z,Jn,Pt);return tl("afterResolveTypeReference"),Yp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(_n=rr)==null||_n.pop(),mi}function wn(we){let qe=cf(we.originalFileName);if(qe||!bd(we.originalFileName))return qe;let Pt=Bn(we.path);if(Pt)return Pt;if(!qt.realpath||!z.preserveSymlinks||!we.originalFileName.includes(Sh))return;let Vt=er(qt.realpath(we.originalFileName));return Vt===we.path?void 0:Bn(Vt)}function Bn(we){let qe=Du(we);if(Co(qe))return cf(qe);if(qe)return Bu(Pt=>{let Vt=Ds(Pt.commandLine.options);if(Vt)return er(Vt)===we?Pt:void 0})}function gi(we,qe){return el(xi(we),xi(qe))}function xi(we){if(mm(Eo,we.fileName,!1)){let qe=nc(we.fileName);if(qe==="lib.d.ts"||qe==="lib.es6.d.ts")return 0;let Pt=Sx(jC(qe,"lib."),".d.ts"),Vt=ow.indexOf(Pt);if(Vt!==-1)return Vt+1}return ow.length+2}function er(we){return nl(we,Ur,Z)}function Fr(){if(ne===void 0){let we=jr(xe,qe=>ET(qe,un));ne=VP(z,()=>to(we,qe=>qe.isDeclarationFile?void 0:qe.fileName),Ur,Z,qe=>Ot(we,qe))}return ne}function ho(){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 Kt(we,qe,void 0);let Pt,Vt,_n,Jn=ece,fn=q&&q.getSourceFile(qe.fileName);for(let ri=0;ri{let Vt=(qe?qe.commandLine.projectReferences:me)[Pt],_n=Gt(Vt);return we?!_n||_n.sourceFile!==we.sourceFile||!Vm(we.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},(we,qe)=>{let Pt=qe?z_(qe.sourceFile.path).commandLine.projectReferences:me;return!Vm(we,Pt,GV)})}function Io(){var we;if(!q)return 0;let qe=q.getCompilerOptions();if(yF(qe,z))return 0;let Pt=q.getRootFileNames();if(!Vm(Pt,ce)||!Kr())return 0;me&&(se=me.map(Gt));let Vt=[],_n=[];if(dn=2,zc(q.getMissingFilePaths(),or=>qt.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 ri=$o(or.fileName,In,qt,z),dr=qt.getSourceFileByPath?qt.getSourceFileByPath(or.fileName,or.resolvedPath,ri,void 0,hn):qt.getSourceFile(or.fileName,ri,void 0,hn);if(!dr)return 0;dr.packageJsonLocations=(we=ri.packageJsonLocations)!=null&&we.length?ri.packageJsonLocations:void 0,dr.packageJsonScope=ri.packageJsonScope,R.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let qo;if(or.redirectInfo){if(dr!==or.redirectInfo.unredirected)return 0;qo=!1,dr=or}else if(q.redirectTargetsMap.has(or.path)){if(dr!==or)return 0;qo=!1}else qo=dr!==or;dr.path=or.path,dr.originalFileName=or.originalFileName,dr.resolvedPath=or.resolvedPath,dr.fileName=or.fileName;let Ua=q.sourceFileToPackageName.get(or.path);if(Ua!==void 0){let $d=qn.get(Ua),ud=qo?1:0;if($d!==void 0&&ud===1||$d===1)return 0;qn.set(Ua,ud)}if(qo)or.impliedNodeFormat!==dr.impliedNodeFormat?dn=1:Vm(or.libReferenceDirectives,dr.libReferenceDirectives,hc)?or.hasNoDefaultLib!==dr.hasNoDefaultLib?dn=1:Vm(or.referencedFiles,dr.referencedFiles,hc)?(tp(dr),Vm(or.imports,dr.imports,bs)&&Vm(or.moduleAugmentations,dr.moduleAugmentations,bs)?(or.flags&12582912)!==(dr.flags&12582912)?dn=1:Vm(or.typeReferenceDirectives,dr.typeReferenceDirectives,hc)||(dn=1):dn=1):dn=1:dn=1,_n.push(dr);else if(yi(or.path))dn=1,_n.push(dr);else for(let $d of or.ambientModuleNames)Ge.set($d,or.fileName);Vt.push(dr)}if(dn!==2)return dn;for(let or of _n){let ri=a1e(or),dr=Pi(ri,or);(Je??(Je=new Map)).set(or.path,dr),VV(ri,dr,qg=>q.getResolvedModule(or,qg.text,uf(or,qg)),Wre)&&(dn=1);let Ua=or.typeReferenceDirectives,$d=Ri(Ua,or);(Zt??(Zt=new Map)).set(or.path,$d),VV(Ua,$d,qg=>q.getResolvedTypeReferenceDirective(or,uJ(qg),Mw(qg,or.impliedNodeFormat)),Fre)&&(dn=1)}if(dn!==2)return dn;if(wre(qe,z)||q.resolvedLibReferences&&zc(q.resolvedLibReferences,(or,ri)=>cg(ri).actual!==or.actual))return 1;if(qt.hasChangedAutomaticTypeDirectiveNames){if(qt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=y3(z,qt),!Vm(q.getAutomaticTypeDirectiveNames(),be))return 1;lt=q.getMissingFilePaths(),R.assert(Vt.length===q.getSourceFiles().length);for(let or of Vt)ct.set(or.path,or);return q.getFilesByNameMap().forEach((or,ri)=>{if(!or){ct.set(ri,or);return}if(or.path===ri){q.isSourceFileFromExternalLibrary(or)&&Yt.set(or.path,!0);return}ct.set(ri,ct.get(or.path))}),xe=Vt,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,ft=q.resolvedTypeReferenceDirectiveNames,tt=q.resolvedLibReferences,en=q.getCurrentPackagesMap(),2}function xn(we){return{getPrependNodes:Bs,getCanonicalFileName:Z,getCommonSourceDirectory:un.getCommonSourceDirectory,getCompilerOptions:un.getCompilerOptions,getCurrentDirectory:()=>Ur,getSourceFile:un.getSourceFile,getSourceFileByPath:un.getSourceFileByPath,getSourceFiles:un.getSourceFiles,getLibFileFromReference:un.getLibFileFromReference,isSourceFileFromExternalLibrary:_l,getResolvedProjectReferenceToRedirect:cf,getProjectReferenceRedirect:Gl,isSourceOfProjectReferenceRedirect:Pf,getSymlinkCache:B_,writeFile:we||ws,isEmitBlocked:ld,readFile:qe=>qt.readFile(qe),fileExists:qe=>{let Pt=er(qe);return pl(Pt)?!0:lt.has(Pt)?!1:qt.fileExists(qe)},useCaseSensitiveFileNames:()=>qt.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:ea(qt,qt.createHash)}}function ws(we,qe,Pt,Vt,_n,Jn){qt.writeFile(we,qe,Pt,Vt,_n,Jn)}function $l(we){var qe,Pt;R.assert(!Ds(z)),(qe=rr)==null||qe.push(rr.Phase.Emit,"emitBuildInfo",{},!0),tl("beforeEmit");let Vt=q3(Y3,xn(we),void 0,UK,!1,!0);return tl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(Pt=rr)==null||Pt.pop(),Vt}function Po(){return se}function ss(){return me}function Bs(){return gJ(me,(we,qe)=>{var Pt;return(Pt=se[qe])==null?void 0:Pt.commandLine},we=>{let qe=er(we),Pt=pl(qe);return Pt?Pt.text:ct.has(qe)?void 0:qt.readFile(qe)},qt)}function _l(we){return!!Yt.get(we.path)}function sd(we){if(!we.isDeclarationFile)return!1;if(we.hasNoDefaultLib)return!0;if(!z.noLib)return!1;let qe=qt.useCaseSensitiveFileNames()?eT:Xb;return z.lib?gt(z.lib,Pt=>qe(we.fileName,tt.get(Pt).actual)):qe(we.fileName,Li())}function mo(){return he||(he=Hse(un))}function la(we,qe,Pt,Vt,_n,Jn){var fn,qn;(fn=rr)==null||fn.push(rr.Phase.Emit,"emit",{path:we?.path},!0);let mi=cd(()=>Ss(un,we,qe,Pt,Vt,_n,Jn));return(qn=rr)==null||qn.pop(),mi}function ld(we){return Ye.has(er(we))}function Ss(we,qe,Pt,Vt,_n,Jn,fn){if(!fn){let or=hJ(we,qe,Pt,Vt);if(or)return or}let qn=mo().getEmitResolver(Ds(z)?void 0:qe,Vt);tl("beforeEmit");let mi=q3(qn,xn(Pt),qe,jK(z,Jn,_n),_n,!1,fn);return tl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),mi}function Ca(we){return pl(er(we))}function pl(we){return ct.get(we)||void 0}function Nf(we,qe,Pt){return Mx(we?qe(we,Pt):va(un.getSourceFiles(),Vt=>(Pt&&Pt.throwIfCancellationRequested(),qe(Vt,Pt))))}function ac(we,qe){return Nf(we,ed,qe)}function xl(we,qe){return Nf(we,Ep,qe)}function sl(we){var qe;return we?(qe=Ie.perFile)==null?void 0:qe.get(we.path):Ie.allDiagnostics}function Mo(we,qe){return Cs(we,qe)}function tn(we){var qe;if(UN(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 Gs(we,qe){let Pt=un.getCompilerOptions();return!we||Ds(Pt)?vr(we,qe):Nf(we,Di,qe)}function ed(we){return cu(we)?(we.additionalSyntacticDiagnostics||(we.additionalSyntacticDiagnostics=cn(we)),bo(we.additionalSyntacticDiagnostics,we.parseDiagnostics)):we.parseDiagnostics}function cd(we){try{return we()}catch(qe){throw qe instanceof Rx&&(he=void 0),qe}}function Ep(we,qe){return bo(oz(Cs(we,qe),z),tn(we))}function Cs(we,qe){return zr(we,qe,Ie,Ac)}function Ac(we,qe){return cd(()=>{if(UN(we,z,un))return Xe;let Pt=mo();R.assert(!!we.bindDiagnostics);let _n=(we.scriptKind===1||we.scriptKind===2)&&dk(we,z),Jn=f2(we,z.checkJs),qn=!(!!we.checkJsDirective&&we.checkJsDirective.enabled===!1)&&(we.scriptKind===3||we.scriptKind===4||we.scriptKind===5||Jn||_n||we.scriptKind===7),mi=qn?we.bindDiagnostics:Xe,or=qn?Pt.getDiagnostics(we,qe):Xe;return Jn&&(mi=jr(mi,ri=>lz.has(ri.code)),or=jr(or,ri=>lz.has(ri.code))),de(we,qn&&!Jn,mi,or,_n?we.jsDocDiagnostics:void 0)})}function de(we,qe,...Pt){var Vt;let _n=pm(Pt);if(!qe||!((Vt=we.commentDirectives)!=null&&Vt.length))return _n;let{diagnostics:Jn,directives:fn}=$(we,we.commentDirectives,_n);for(let qn of fn.getUnusedExpectations())Jn.push(Zre(we,qn.range,f.Unused_ts_expect_error_directive));return Jn}function $(we,qe,Pt){let Vt=Gre(we,qe);return{diagnostics:Pt.filter(Jn=>yt(Jn,Vt)===-1),directives:Vt}}function Pe(we,qe){return cd(()=>mo().getSuggestionDiagnostics(we,qe))}function yt(we,qe){let{file:Pt,start:Vt}=we;if(!Pt)return-1;let _n=Rg(Pt),Jn=Nx(_n,Vt).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 cd(()=>{let qe=[];return Pt(we,we),EP(we,Pt,Vt),qe;function Pt(qn,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.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(mi.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(mi,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 ri=da(120);return R.assertIsDefined(ri),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,ri)),"skip";case 267:let dr=qn.flags&32?da(145):da(144);return R.assertIsDefined(dr),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"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 qo=R.checkDefined(da(94));return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,qo)),"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:R.fail()}}function Vt(qn,mi){if(TH(mi)){let or=Vr(mi.modifiers,vd);or&&qe.push(fn(or,f.Decorators_are_not_valid_here))}else if(GT(mi)&&mi.modifiers){let or=Kl(mi.modifiers,vd);if(or>=0){if(To(mi)&&!z.experimentalDecorators)qe.push(fn(mi.modifiers[or],f.Decorators_are_not_valid_here));else if(Sc(mi)){let ri=Kl(mi.modifiers,JI);if(ri>=0){let dr=Kl(mi.modifiers,w4);if(or>ri&&dr>=0&&or=0&&or=0&&qe.push(Pa(fn(mi.modifiers[qo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),fn(mi.modifiers[or],f.Decorator_used_before_export_here)))}}}}}switch(mi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(qn===mi.typeParameters)return qe.push(Jn(qn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(qn===mi.modifiers)return _n(mi.modifiers,mi.kind===243),"skip";break;case 172:if(qn===mi.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===mi.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===mi.typeArguments)return qe.push(Jn(qn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(qn,mi){for(let or of qn)switch(or.kind){case 87:if(mi)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,mi,...or){let ri=qn.pos;return Yc(we,ri,qn.end-ri,mi,...or)}function fn(qn,mi,...or){return Kf(we,qn,mi,...or)}})}function vr(we,qe){return zr(we,qe,De,fr)}function fr(we,qe){return cd(()=>{let Pt=mo().getEmitResolver(we,qe);return Fle(xn(Ja),Pt,we)||Xe})}function zr(we,qe,Pt,Vt){var _n;let Jn=we?(_n=Pt.perFile)==null?void 0:_n.get(we.path):Pt.allDiagnostics;if(Jn)return Jn;let fn=Vt(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?[]:vr(we,qe)}function Cr(){return Mx(bo(Qn.getGlobalDiagnostics(),Ko()))}function Ko(){if(!z.configFile)return Xe;let we=Qn.getDiagnostics(z.configFile.fileName);return Bu(qe=>{we=bo(we,Qn.getDiagnostics(qe.sourceFile.fileName))}),we}function bl(){return ce.length?Mx(mo().getGlobalDiagnostics().slice()):Xe}function jc(){return ee||Xe}function Vs(we,qe,Pt,Vt){Re(ma(we),qe,Pt,void 0,Vt)}function hc(we,qe){return we.fileName===qe.fileName}function bs(we,qe){return we.kind===80?qe.kind===80&&we.escapedText===qe.escapedText:qe.kind===11&&we.text===qe.text}function Uc(we,qe){let Pt=L.createStringLiteral(we),Vt=L.createImportDeclaration(void 0,void 0,Pt,void 0);return BI(Vt,2),Va(Pt,Vt),Va(Vt,qe),Pt.flags&=-17,Vt.flags&=-17,Pt}function tp(we){if(we.imports)return;let qe=cu(we),Pt=oc(we),Vt,_n,Jn;if((em(z)||Pt)&&!we.isDeclarationFile){z.importHelpers&&(Vt=[Uc(Vv,we)]);let or=C6(D6(z,we),z);or&&(Vt||(Vt=[])).push(Uc(or,we))}for(let or of we.statements)fn(or,!1);(we.flags&4194304||qe)&&qn(we),we.imports=Vt||Xe,we.moduleAugmentations=_n||Xe,we.ambientModuleNames=Jn||Xe;return;function fn(or,ri){if(h2(or)){let dr=tR(or);dr&&Da(dr)&&dr.text&&(!ri||!qc(dr.text))&&(Gv(or,!1),Vt=Tn(Vt,dr),!Be&&Kn===0&&!we.isDeclarationFile&&(Be=ao(dr.text,"node:")))}else if(ql(or)&&Pd(or)&&(ri||Qr(or,128)||we.isDeclarationFile)){or.name.parent=or;let dr=Xf(or.name);if(Pt||ri&&!qc(dr))(_n||(_n=[])).push(or.name);else if(!ri){we.isDeclarationFile&&(Jn||(Jn=[])).push(dr);let qo=or.body;if(qo)for(let Ua of qo.statements)fn(Ua,!0)}}}function qn(or){let ri=/import|require/g;for(;ri.exec(or.text)!==null;){let dr=mi(or,ri.lastIndex);qe&&Su(dr,!0)||Op(dr)&&dr.arguments.length>=1&&as(dr.arguments[0])?(Gv(dr,!1),Vt=Tn(Vt,dr.arguments[0])):Ov(dr)&&(Gv(dr,!1),Vt=Tn(Vt,dr.argument.literal))}}function mi(or,ri){let dr=or,qo=Ua=>{if(Ua.pos<=ri&&(riSl(_n,fn))){Pt&&(W0(_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)xE(Vt)&&_n===qt.getCanonicalFileName(pl(Vt.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,Vt,_n){_u(we,Jn=>Jo(Jn,qe,Pt,_n,Vt),(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){!xE(Pt)&>(ve.get(qe.path),xE)?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 go(we,qe,Pt,Vt,_n,Jn,fn){var qn;let mi=Eh.createRedirectedSourceFile({redirectTarget:we,unredirected:qe});return mi.fileName=Pt,mi.path=Vt,mi.resolvedPath=_n,mi.originalFileName=Jn,mi.packageJsonLocations=(qn=fn.packageJsonLocations)!=null&&qn.length?fn.packageJsonLocations:void 0,mi.packageJsonScope=fn.packageJsonScope,Yt.set(Vt,Kn>0),mi}function Jo(we,qe,Pt,Vt,_n){var Jn,fn;(Jn=rr)==null||Jn.push(rr.Phase.Program,"findSourceFile",{fileName:we,isDefaultLib:qe||void 0,fileIncludeKind:MW[Vt.kind]});let qn=Ql(we,qe,Pt,Vt,_n);return(fn=rr)==null||fn.pop(),qn}function $o(we,qe,Pt,Vt){let _n=_J(_o(we,Ur),qe?.getPackageJsonInfoCache(),Pt,Vt),Jn=ns(Vt),fn=ak(Vt);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,Vt,_n){var Jn;let fn=er(we);if(et){let dr=Du(fn);if(!dr&&qt.realpath&&z.preserveSymlinks&&bd(we)&&we.includes(Sh)){let qo=er(qt.realpath(we));qo!==fn&&(dr=Du(qo))}if(dr){let qo=Co(dr)?Jo(dr,qe,Pt,Vt,_n):void 0;return qo&&ll(qo,fn,we,void 0),qo}}let qn=we;if(ct.has(fn)){let dr=ct.get(fn);if(gc(dr||void 0,Vt),dr&&z.forceConsistentCasingInFileNames!==!1){let qo=dr.fileName;er(qo)!==er(we)&&(we=Gl(we)||we);let $d=lV(qo,Ur),ud=lV(we,Ur);$d!==ud&&Un(we,dr,Vt)}return dr&&Yt.get(dr.path)&&Kn===0?(Yt.set(dr.path,!1),z.noResolve||(Ih(dr,qe),Ug(dr)),z.noLib||Gu(dr),pn.set(dr.path,!1),rt(dr)):dr&&pn.get(dr.path)&&KnXr(void 0,Vt,f.Cannot_read_file_0_Colon_1,[we,dr]),hn);if(_n){let dr=kv(_n),qo=za.get(dr);if(qo){let Ua=go(qo,ri,we,fn,er(we),qn,or);return kn.add(qo.path,we),ll(Ua,fn,we,mi),gc(Ua,Vt),vn.set(fn,EF(_n)),pe.push(Ua),Ua}else ri&&(za.set(dr,ri),vn.set(fn,EF(_n)))}if(ll(ri,fn,we,mi),ri){if(Yt.set(fn,Kn>0),ri.fileName=we,ri.path=fn,ri.resolvedPath=er(we),ri.originalFileName=qn,ri.packageJsonLocations=(Jn=or.packageJsonLocations)!=null&&Jn.length?or.packageJsonLocations:void 0,ri.packageJsonScope=or.packageJsonScope,gc(ri,Vt),qt.useCaseSensitiveFileNames()){let dr=oh(fn),qo=Rt.get(dr);qo?Un(we,qo,Vt):Rt.set(dr,ri)}uo=uo||ri.hasNoDefaultLib&&!Pt,z.noResolve||(Ih(ri,qe),Ug(ri)),z.noLib||Gu(ri),rt(ri),qe?re.push(ri):pe.push(ri)}return ri}function gc(we,qe){we&&ve.add(we.path,qe)}function ll(we,qe,Pt,Vt){Vt?(hl(Pt,Vt,we),hl(Pt,qe,we||!1)):hl(Pt,qe,we)}function hl(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&&Hc(qe,we)}function Zl(we){if(!(!se||!se.length||bd(we)||Sl(we,".json")))return cf(we)}function Hc(we,qe){let Pt=Ds(we.commandLine.options);return Pt?fE(Pt,".d.ts"):GP(qe,we.commandLine,!qt.useCaseSensitiveFileNames())}function cf(we){st===void 0&&(st=new Map,Bu(Pt=>{er(z.configFilePath)!==Pt.sourceFile.path&&Pt.commandLine.fileNames.forEach(Vt=>st.set(er(Vt),Pt.sourceFile.path))}));let qe=st.get(er(we));return qe&&z_(qe)}function Bu(we){return pJ(se,we)}function Du(we){if(bd(we))return G===void 0&&(G=new Map,Bu(qe=>{let Pt=Ds(qe.commandLine.options);if(Pt){let Vt=fE(Pt,".d.ts");G.set(er(Vt),!0)}else{let Vt=Eu(()=>$R(qe.commandLine,!qt.useCaseSensitiveFileNames()));gn(qe.commandLine.fileNames,_n=>{if(!bd(_n)&&!Sl(_n,".json")){let Jn=GP(_n,qe.commandLine,!qt.useCaseSensitiveFileNames(),Vt);G.set(er(Jn),_n)}})}})),G.get(we)}function Pf(we){return et&&!!cf(we)}function z_(we){if(ke)return ke.get(we)||void 0}function Ih(we,qe){gn(we.referencedFiles,(Pt,Vt)=>{Re(ez(Pt.fileName,we.fileName),qe,!1,void 0,{kind:4,file:we.path,index:Vt})})}function Ug(we){let qe=we.typeReferenceDirectives;if(!qe.length)return;let Pt=Zt?.get(we.path)||Ri(qe,we),Vt=u1();(ft??(ft=new Map)).set(we.path,Vt);for(let _n=0;_n{let{libName:Vt,libFileName:_n}=o1e(qe);if(_n)Vs(Sp(_n),!0,!0,{kind:7,file:we.path,index:Pt});else{let Jn=Sx(jC(Vt,"lib."),".d.ts"),fn=VC(Jn,ow,Zs),qn=fn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,mi=fn?[Vt,fn]:[Vt];(Et||(Et=[])).push({kind:0,reason:{kind:7,file:we.path,index:Pt},diagnostic:qn,args:mi})}})}function Z(we){return qt.getCanonicalFileName(we)}function rt(we){var qe;if(tp(we),we.imports.length||we.moduleAugmentations.length){let Pt=a1e(we),Vt=Je?.get(we.path)||Pi(Pt,we);R.assert(Vt.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,ud=Ua&&!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(Yc(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(Yc(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(_E(z)&&(pu(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=>lh(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&&!jv(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",IP.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&&!$p(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",IP.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",IP.get(""+z.jsx)),z.jsxImportSource&&z.jsx===2&&ls(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",IP.get(""+z.jsx)),z.preserveValueImports&&Md(z)<5&&ls(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Vt=Md(z);z.verbatimModuleSyntax&&((Vt===2||Vt===3||Vt===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=pu(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(Vt)&&Vt!==200&&Dm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),HC[Vt]&&100<=Vt&&Vt<=199&&!(3<=_n&&_n<=99)){let fn=HC[Vt];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<=Vt&&Vt<=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,mi=>{z.emitDeclarationOnly||Jn(mi.jsFilePath,qn),Jn(mi.declarationFilePath,qn)})}function Jn(fn,qn){if(fn){let mi=er(fn);if(ct.has(mi)){let ri;z.configFilePath||(ri=Fo(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)),ri=Fo(ri,f.Cannot_write_file_0_because_it_would_overwrite_input_file,fn),fS(fn,S6(ri))}let or=qt.useCaseSensitiveFileNames()?mi:oh(mi);qn.has(or)?fS(fn,jl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,fn)):qn.add(or)}}}function Se(){let we=z.ignoreDeprecations;if(we){if(we==="5.0")return new fm(we);J()}return fm.zero}function nt(we,qe,Pt,Vt){let _n=new fm(we),Jn=new fm(qe),fn=new fm(ge||g_),qn=Se(),mi=Jn.compareTo(fn)!==1,or=!mi&&qn.compareTo(_n)===-1;(mi||or)&&Vt((ri,dr,qo)=>{mi?dr===void 0?Pt(ri,dr,qo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ri):Pt(ri,dr,qo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ri,dr):dr===void 0?Pt(ri,dr,qo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ri,qe,we):Pt(ri,dr,qo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ri,dr,qe,we)})}function jt(){function we(qe,Pt,Vt,_n,...Jn){if(Vt){let fn=Fo(void 0,f.Use_0_instead,Vt),qn=Fo(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 Vt(_n,Jn,fn,qn,...mi){Cm(qe,Pt,qn,...mi)}nt("5.0","5.5",Vt,_n=>{we.prepend&&_n("prepend")})}function oi(we,qe,Pt,Vt){var _n;let Jn,fn,qn=xE(qe)?qe:void 0;we&&((_n=ve.get(we.path))==null||_n.forEach(qo)),qe&&qo(qe),qn&&Jn?.length===1&&(Jn=void 0);let mi=qn&&jP(un,qn),or=Jn&&Fo(Jn,f.The_file_is_in_the_program_because_Colon),ri=we&&wJ(we),dr=Fo(ri?or?[or,...ri]:ri:or,Pt,...Vt||Xe);return mi&&ZR(mi)?DF(mi.file,mi.pos,mi.end-mi.pos,dr,fn):S6(dr,fn);function qo(Ua){(Jn||(Jn=[])).push(FJ(un,Ua)),!qn&&xE(Ua)?qn=Ua:qn!==Ua&&(fn=Tn(fn,La(Ua))),Ua===qe&&(qe=void 0)}}function Xr(we,qe,Pt,Vt){(Et||(Et=[])).push({kind:1,file:we&&we.path,fileProcessingReason:qe,diagnostic:Pt,args:Vt})}function no(we,qe,Pt){Qn.add(oi(we,void 0,qe,Pt))}function La(we){if(xE(we)){let Vt=jP(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:R.assertNever(we)}return ZR(Vt)?Yc(Vt.file,Vt.pos,Vt.end-Vt.pos,_n):void 0}if(!z.configFile)return;let qe,Pt;switch(we.kind){case 0:if(!z.configFile.configFileSpecs)return;let Vt=_o(ce[we.index],Ur),_n=OJ(un,Vt);if(_n){qe=wF(z.configFile,"files",_n),Pt=f.File_is_matched_by_files_list_specified_here;break}let Jn=WJ(un,Vt);if(!Jn||!Co(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=R.checkDefined(se?.[we.index]),qn=nz(me,se,(qo,Ua,$d)=>qo===fn?{sourceFile:Ua?.sourceFile||z.configFile,index:$d}:void 0);if(!qn)return;let{sourceFile:mi,index:or}=qn,ri=S2(mi,"references",qo=>fu(qo.initializer)?qo.initializer:void 0);return ri&&ri.elements.length>or?Kf(mi,ri.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=ab("types",we.typeReference),Pt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(we.index!==void 0){qe=ab("lib",z.lib[we.index]),Pt=f.File_is_library_specified_here;break}let dr=zc(sw.type,(qo,Ua)=>qo===ns(z)?Ua:void 0);qe=dr?Vu("target",dr):void 0,Pt=f.File_is_default_library_for_target_specified_here;break;default:R.assertNever(we)}return qe&&Kf(z.configFile,qe,Pt)}function ka(){let we=z.suppressOutputPathCheck?void 0:Uy(z);nz(me,se,(qe,Pt,Vt)=>{let _n=(Pt?Pt.commandLine.projectReferences:me)[Vt],Jn=Pt&&Pt.sourceFile;if(Zn(_n,Jn,Vt),!qe){Cm(Jn,Vt,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,Vt,f.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),fn.noEmit&&Cm(Jn,Vt,f.Referenced_project_0_may_not_disable_emit,_n.path)),_n.prepend){let qn=Ds(fn);qn?qt.fileExists(qn)||Cm(Jn,Vt,f.Output_file_0_from_project_1_does_not_exist,qn,_n.path):Cm(Jn,Vt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Pt&&we&&we===Uy(fn)&&(Cm(Jn,Vt,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 kl(we,qe,Pt,...Vt){let _n=!0;Tp(Jn=>{Ma(Jn.initializer)&&Xx(Jn.initializer,we,fn=>{let qn=fn.initializer;fu(qn)&&qn.elements.length>qe&&(Qn.add(Kf(z.configFile,qn.elements[qe],Pt,...Vt)),_n=!1)})}),_n&&Qn.add(jl(Pt,...Vt))}function dd(we,qe,Pt,...Vt){let _n=!0;Tp(Jn=>{Ma(Jn.initializer)&&Zy(Jn.initializer,we,qe,void 0,Pt,...Vt)&&(_n=!1)}),_n&&Qn.add(jl(Pt,...Vt))}function Ic(we,qe){return Xx(Kg(),we,qe)}function Tp(we){return Ic("paths",we)}function Vu(we,qe){return Ic(we,Pt=>Da(Pt.initializer)&&Pt.initializer.text===qe?Pt.initializer:void 0)}function ab(we,qe){let Pt=Kg();return Pt&&lie(Pt,we,qe)}function ls(we,qe,Pt,Vt){Ui(!0,qe,Pt,we,qe,Pt,Vt)}function Dm(we,qe,...Pt){Ui(!1,we,void 0,qe,...Pt)}function Cm(we,qe,Pt,...Vt){let _n=S2(we||z.configFile,"references",Jn=>fu(Jn.initializer)?Jn.initializer:void 0);_n&&_n.elements.length>qe?Qn.add(Kf(we||z.configFile,_n.elements[qe],Pt,...Vt)):Qn.add(jl(Pt,...Vt))}function Ui(we,qe,Pt,Vt,..._n){let Jn=Kg();(!Jn||!Zy(Jn,we,qe,Pt,Vt,..._n))&&("messageText"in Vt?Qn.add(S6(Vt)):Qn.add(jl(Vt,..._n)))}function Kg(){return Wt===void 0&&(Wt=Xx(_N(z.configFile),"compilerOptions",we=>Ma(we.initializer)?we.initializer:void 0)||!1),Wt||void 0}function Zy(we,qe,Pt,Vt,_n,...Jn){let fn=!1;return Xx(we,Pt,qn=>{"messageText"in _n?Qn.add(Pg(z.configFile,qe?qn.name:qn.initializer,_n)):Qn.add(Kf(z.configFile,qe?qn.name:qn.initializer,_n,...Jn)),fn=!0},Vt),fn}function Nm(we,qe){let Pt=Kg();Pt?Zy(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 fS(we,qe){Ye.set(er(we),!0),Qn.add(qe)}function mS(we){if(z.noEmit)return!1;let qe=er(we);if(pl(qe))return!1;let Pt=Ds(z);if(Pt)return df(qe,Pt)||df(qe,Tu(Pt)+".d.ts");if(z.declarationDir&&mm(z.declarationDir,qe,Ur,!qt.useCaseSensitiveFileNames()))return!0;if(z.outDir)return mm(z.outDir,qe,Ur,!qt.useCaseSensitiveFileNames());if(bc(qe,AR)||bd(qe)){let Vt=Tu(qe);return!!pl(Vt+".ts")||!!pl(Vt+".tsx")}return!1}function df(we,qe){return xg(we,qe,Ur,!qt.useCaseSensitiveFileNames())===0}function B_(){return qt.getSymlinkCache?qt.getSymlinkCache():(fe||(fe=oU(Ur,Z)),xe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(k,ie,ze),fe)}function uf(we,qe){var Pt;let Vt=((Pt=wn(we))==null?void 0:Pt.commandLine.options)||z;return cJ(we,qe,Vt)}function Jg(we,qe){return uf(we,ww(we,qe))}}function WVe(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ja,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=Ds(A.commandLine.options);if(N)t.add(ai(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()||!bd(S)?!1:E(S,!0)}function h(S){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(S));return A!==void 0?Co(A)?r.call(e.compilerHost,A):!0:void 0}function m(S){let A=e.toPath(S),N=`${A}${rl}`;return uh(t,D=>A===D||ao(D,N)||ao(A,`${D}/`))}function y(S){var A;if(!e.getResolvedProjectReferences()||qN(S)||!s||!S.includes(Sh))return;let N=e.getSymlinkCache(),D=Fc(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=Fc(e.toPath(w)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(S,{real:Fc(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(Sh)?A&&((N=j.getSymlinkedFiles())!=null&&N.has(Y))?!0:bL(K.entries(),([B,ce])=>{if(!ce||!ao(Y,B))return;let z=D(Y.replace(B,ce.realPath));if(A&&z){let ee=_o(S,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(Y,`${ce.real}${ee.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||Ds(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&&!Ds(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 R.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:ea(t,t.directoryExists),getDirectories:ea(t,t.getDirectories),realpath:ea(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||qb,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 ww({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=" ",$le="\x1B[0m",Qle="...",s1e=" ",Zle=" ",ece={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},sz={getName:Yle,getMode:(e,t,r)=>lJ(t,e,r)},l1e={getName:uJ,getMode:(e,t)=>Mw(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}}}),zVe=bt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function tce(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,BVe=bt({"src/compiler/builderState.ts"(){"use strict";Qo(),(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 nl(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=ai(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=Ds(he),Ge=he.module!==0&&!Ce?t():void 0,ve=Ge?t():void 0,Ie=p(Ge,J);q.getTypeChecker();for(let De of q.getSourceFiles()){let Le=R.checkDefined(De.version,"Program intended to be used with Builder should have source files with versions set"),Et=Ie?(pe=J.oldSignatures)==null?void 0:pe.get(De.resolvedPath):void 0,be=Et===void 0?Ie?(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),Ie){let tt=(fe=J.oldExportedModulesMap)==null?void 0:fe.get(De.resolvedPath),Ft=tt===void 0?J.exportedModulesMap.getValues(De.resolvedPath):tt||void 0;Ft&&ve.set(De.resolvedPath,Ft)}}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&&!Ie}}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)=>{R.assert(bd(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,Ie)=>{Ge=ve,Ge!==Ce&&D(q,re,Ie[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(Ds(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 Oo(WC(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?Oo(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 ee(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=ee;function me(q,J,re){let pe=J.getCompilerOptions();return pe&&Ds(pe)?[re]:ee(q,J,re)}function ge(q,J,re,pe,xe){if(z(re))return ee(q,J,re);let fe=J.getCompilerOptions();if(fe&&(em(fe)||Ds(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 Oo(WC(ne.values(),Ce=>Ce))}})(xm||(xm={}))}});function eb(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&&(Ty(t)?t:eb(t)),i=Ty(e)?e:eb(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 GVe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!uh(e,r=>!t.has(r))}function VVe(e,t){var r,i;let o=xm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=Ds(s);l?s.composite&&t?.outSignature&&l===Ds(t?.compilerOptions)&&(o.outSignature=t.outSignature&&d1e(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&&!goe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!voe(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||!GVe(K=y&&y.getValues(D),E&&E.getValues(D))||K&&uh(K,Y=>!o.fileInfos.has(Y)&&t.fileInfos.has(Y)))c1e(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?f1e(B,e):u1e(B,e)),h){if(Y.isDeclarationFile&&!S||Y.hasNoDefaultLib&&!A)return;let ce=t.semanticDiagnosticsPerFile.get(D);ce&&(o.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?f1e(ce,e):u1e(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,d1e(s,t.compilerOptions,Y))}}),d&&zc(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=>c1e(o,N.resolvedPath));else if(p){let N=yoe(s,p)?eb(s):nD(s,p);N!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{o.changedFilesSet.has(D.resolvedPath)||sce(o,D.resolvedPath,N)}),R.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=eb(s))),o}function c1e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function d1e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Co(r)?[r]:r[0]}function u1e(e,t){return e.length?Nc(e,r=>{if(Co(r.messageText))return r;let i=nce(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 nce(e,t,r,i){let o=i(e);if(o)return{...bF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:p1e(e.next,t,r,i)};let s=p1e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function p1e(e,t,r,i){return Nc(e,o=>nce(o,t,r,i))}function f1e(e,t){if(!e.length)return Xe;let r;return e.map(o=>{let s=m1e(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=>m1e(d,t,i)):[]:void 0,s});function i(o){return r??(r=ai(_o(Uy(t.getCompilerOptions()),t.getCurrentDirectory()))),nl(o,r,t.getCanonicalFileName)}}function m1e(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:Co(e.messageText)?e.messageText:nce(e.messageText,o,t,s=>s.info)}}function jVe(e){xm.releaseCache(e),e.program=void 0}function UVe(e){let t=Ds(e.compilerOptions);return R.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 HVe(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 _1e(e,t){R.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function h1e(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 JVe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return zc(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 qVe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return zc(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 g1e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=R.checkDefined(e.program),r=t.getCompilerOptions();gn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!UN(i,r,t)&&rce(e,i.resolvedPath))}}function XVe(e,t,r,i){if(rce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){g1e(e),xm.updateShapeSignature(e,R.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||YVe(e,t,r,i)}function SJ(e,t,r,i){if(rce(e,t),!e.changedFilesSet.has(t)){let o=R.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(xm.updateShapeSignature(e,o,s,r,i,!0),Af(e.compilerOptions)&&sce(e,t,e.compilerOptions.declarationMap?24:8))}}function rce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function y1e(e,t){let r=R.checkDefined(e.oldSignatures).get(t)||void 0;return R.checkDefined(e.fileInfos.get(t)).signature!==r}function ice(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)),g1e(e),!0):!1}function YVe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!y1e(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),ice(e,p,r,i))return;if(SJ(e,p,r,i),y1e(e,p)){let h=R.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(ice(e,l,r,i))return!0;let d=e.referencedMap.getKeys(l);return d&&uh(d,p=>v1e(e,p,s,r,i))})}function v1e(e,t,r,i,o){var s,l;if(Jb(r,t)){if(ice(e,t,i,o))return!0;SJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>v1e(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&SJ(e,d,i,o))}}function oce(e,t,r){return bo($Ve(e,t,r),R.checkDefined(e.program).getProgramDiagnostics(t))}function $Ve(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=R.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),oz(o,e.compilerOptions)}function ace(e){return!!Ds(e.options||{})}function QVe(e,t){var r,i,o;let s=R.checkDefined(e.program).getCurrentDirectory(),l=ai(_o(Uy(e.compilerOptions),s)),d=e.latestChangedDtsFile?ce(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(Ds(e.compilerOptions)){let he=Oo(e.fileInfos.entries(),([Le,Et])=>{let be=ee(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===eb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ge,dts:ve,commonSourceDirectory:Ie,sourceFiles:De}=t;return e.bundle=t={commonSourceDirectory:Ie,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)},xw(Ce,t)}let y,E,S,A=Oo(e.fileInfos.entries(),([he,Ce])=>{var Ge,ve;let Ie=ee(he);ge(he,Ie),R.assert(p[Ie-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?Ie:[Ie,!Co(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=Oo(e.referencedMap.keys()).sort(Vd).map(he=>[ee(he),me(e.referencedMap.getValues(he))]));let D;e.exportedModulesMap&&(D=to(Oo(e.exportedModulesMap.keys()).sort(Vd),he=>{var Ce;let Ge=(Ce=e.oldExportedModulesMap)==null?void 0:Ce.get(he);if(Ge===void 0)return[ee(he),me(e.exportedModulesMap.getValues(he))];if(Ge)return[ee(he),me(Ge)]}));let w=re(e.semanticDiagnosticsPerFile),j;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let he=eb(e.compilerOptions),Ce=new Set;for(let Ge of Oo(e.affectedFilesPendingEmit.keys()).sort(Vd))if(Jb(Ce,Ge)){let ve=e.program.getSourceFileByPath(Ge);if(!ve||!ET(ve,e.program))continue;let Ie=ee(Ge),De=e.affectedFilesPendingEmit.get(Ge);(j||(j=[])).push(De===he?Ie:De===8?[Ie]:[Ie,De])}}let K;if(e.changedFilesSet.size)for(let he of Oo(e.changedFilesSet.keys()).sort(Vd))(K||(K=[])).push(ee(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 xw(B,t);function ce(he){return z(_o(he,s))}function z(he){return g0(_m(l,he,e.program.getCanonicalFileName))}function ee(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=Oo(he.keys(),ee).sort(el),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],Ie=So(ve);if(Ie&&ve[1]===Ce-1)return ve[1]=Ce;if(Ie||m.length===1||ve!==Ce-1)return m.push(Ce);let De=m[m.length-2];return!Ty(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 jh(he).sort(Vd)){let Ie=Ge.get(ve.toLowerCase());Ie?.affectsBuildInfo&&((Ce||(Ce={}))[ve]=J(Ie,he[ve]))}return Ce}function J(he,Ce){if(he){if(R.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 Oo(he.keys()).sort(Vd)){let ve=he.get(Ge);(Ce||(Ce=[])).push(ve.length?[ee(Ge),pe(ve)]:ee(Ge))}return Ce}function pe(he){return R.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(Ie=>xe(Ie)):[]:void 0,Ge})}function xe(he){let{file:Ce}=he;return{...he,file:Ce?z(Ce.resolvedPath):void 0,messageText:Co(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 Ie=Ge>0?he.slice(0,Ge-1):[];Ie.push(ve);for(let De=Ge+1;De`${p(h)}${PL[h.category]}${h.code}: ${d(h.messageText)}`).join(` -`)),(i.createHash??KC)(r);function d(h){return Co(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=ai(t.resolvedPath)),`${g0(_m(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function JT(e,t,r){return(t.createHash??KC)(b1e(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=VVe(t,s);t.getBuildInfo=N=>QVe(l,N),t=void 0,i=void 0,s=void 0;let d=()=>l,p=xJ(d,o);return p.getState=d,p.saveEmitState=()=>UVe(l),p.restoreEmitState=N=>HVe(l,N),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=N=>xm.getAllDependencies(l,R.checkDefined(l.program),N),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>jVe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=S:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=S,p.emitNextAffectedFile=m,p.emitBuildInfo=h):jo(),p;function h(N,D){if(l.buildInfoEmitPending){let w=R.checkDefined(l.program).emitBuildInfo(N||ea(r,r.writeFile),D);return l.buildInfoEmitPending=!1,w}return cz}function m(N,D,w,j){var K,Y,B;let ce=h1e(l,D,r),z=eb(l.compilerOptions),ee=w?z&24:z;if(!ce)if(Ds(l.compilerOptions)){if(!l.programEmitPending||(ee=l.programEmitPending,w&&(ee=ee&24),!ee))return;ce=l.program}else{let q=JVe(l,w);if(!q){let J=qVe(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||ea(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:pe,affected:re}}({affectedFile:ce,emitKind:ee}=q)}let me;ee&7&&(me=0),ee&24&&(me=me===void 0?1:void 0),ce===l.program&&(l.programEmitPending=l.changedFilesSet.size?nD(z,ee):l.programEmitPending?nD(l.programEmitPending,ee):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,ee|J);let re=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(q.resolvedPath))||z,pe=nD(re,ee|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,ee,me,ge;if(bd(w))if(Ds(l.compilerOptions)){if(l.compilerOptions.composite){let J=q(l.outSignature,void 0);if(!J)return;l.outSignature=J}}else{R.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?(((ee=l.oldSignatures)==null?void 0:ee.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||Co(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||ea(r,r.writeFile)}function E(N,D,w,j,K){e===1&&_1e(l,N);let Y=hJ(p,N,D,w);if(Y)return Y;if(!N)if(e===1){let B=[],ce=!1,z,ee=[],me;for(;me=m(D,w,j,K);)ce=ce||me.result.emitSkipped,z=Hr(z,me.result.diagnostics),ee=Hr(ee,me.result.emittedFiles),B=Hr(B,me.result.sourceMaps);return{emitSkipped:ce,diagnostics:z||Xe,emittedFiles:ee,sourceMaps:B}}else KVe(l,j);return R.checkDefined(l.program).emit(N,y(D,K),w,j,K)}function S(N,D){for(;;){let w=h1e(l,N,r),j;if(w)if(w!==l.program){let K=w;if((!D||!D(K))&&(j=oce(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=eb(l.compilerOptions);else return;return{result:j,affected:w}}}function A(N,D){_1e(l,N);let w=R.checkDefined(l.program).getCompilerOptions();if(Ds(w))return R.assert(!l.semanticDiagnosticsPerFile),R.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return oce(l,N,D);for(;S(D););let j;for(let K of R.checkDefined(l.program).getSourceFiles())j=Hr(j,oce(l,K,D));return j||Xe}}function sce(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 lce(e){return Co(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Co(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function cce(e,t){return Ty(e)?t:e[1]||8}function dce(e,t){return e||eb(t||{})}function uce(e,t,r){var i,o,s,l;let d=e.program,p=ai(_o(t,r.getCurrentDirectory())),h=Cd(r.useCaseSensitiveFileNames()),m,y=(i=d.fileNames)==null?void 0:i.map(A),E,S=d.latestChangedDtsFile?N(d.latestChangedDtsFile):void 0;if(ace(d)){let Y=new Map;d.fileInfos.forEach((B,ce)=>{let z=D(ce+1);Y.set(z,Co(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:dce(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&&!Ds(d.options)?new Map:void 0;d.fileInfos.forEach((z,ee)=>{let me=D(ee+1),ge=lce(z);Y.set(me,ge),B&&ge.signature&&B.set(me,ge.signature)}),(l=d.emitSignatures)==null||l.forEach(z=>{if(Ty(z))B.delete(D(z));else{let ee=D(z[0]);B.set(ee,!Co(z[1])&&!z[1].length?[B.get(ee)]:z[1])}});let ce=d.affectedFilesPendingEmit?eb(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&&h0(d.affectedFilesPendingEmit,z=>D(Ty(z)?z:z[0]),z=>cce(z,ce)),changedFilesSet:new Set(mn(d.changeFileSet,D)),latestChangedDtsFile:S,emitSignatures:B?.size?B:void 0}}return{getState:()=>m,saveEmitState:Ja,restoreEmitState:Ja,getProgram:jo,getProgramOrUndefined:qb,releaseProgram:Ja,getCompilerOptions:()=>m.compilerOptions,getSourceFile:jo,getSourceFiles:jo,getOptionsDiagnostics:jo,getGlobalDiagnostics:jo,getConfigFileParsingDiagnostics:jo,getSyntacticDiagnostics:jo,getDeclarationDiagnostics:jo,getSemanticDiagnostics:jo,emit:jo,getAllDependencies:jo,getCurrentDirectory:jo,emitNextAffectedFile:jo,getSemanticDiagnosticsOfNextAffectedFile:jo,emitBuildInfo:jo,close:Ja,hasChangedEmitSignature:jm};function A(Y){return nl(Y,p,h)}function N(Y){return _o(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&&h0(Y,B=>D(Ty(B)?B:B[0]),B=>Ty(B)?Xe:B[1])}}function IJ(e,t,r){let i=ai(_o(t,r.getCurrentDirectory())),o=Cd(r.useCaseSensitiveFileNames()),s=new Map,l=0,d=[];return e.fileInfos.forEach((p,h)=>{let m=nl(e.fileNames[h],i,o),y=Co(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:jo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:Ja};function r(){return R.checkDefined(e().program)}}var RJ,DJ,ZVe=bt({"src/compiler/builder.ts"(){"use strict";Qo(),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 E1e(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 S1e(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 eje=bt({"src/compiler/builderPublic.ts"(){"use strict";Qo()}});function uz(e){return El(e,"/node_modules/.staging")?Sx(e,"/.staging"):gt(wL,t=>e.includes(t))?void 0:e}function pce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==rl&&!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=pce(e,t);return t>r+1}function fce(e){return A1e(ai(e))}function T1e(e,t){if(t.lengtho.length+1?_ce(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:I1e(d,l,l.length-1,p,h,o)}function I1e(e,t,r,i,o,s){if(o!==-1)return _ce(e,t,o+1);let l=!0,d=r;for(let p=0;ptje(i,o,s,e,r,t,l)}}function tje(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&&!qc(r)&&!(p.resolvedModule&&O6(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:S}=Lse(R.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=Xp(),d=new Set,p=new Set,h=new Map,m=new Map,y=!1,E,S,A,N,D,w=!1,j=Eu(()=>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),ee=new Map,me=HR(j(),e.getCanonicalFileName,rK(e.getCompilationSettings()),B.getPackageJsonInfoCache()),ge=new Map,q=new Map,J=gce(t,j),re=e.toPath(J),pe=Wc(re),xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:Y,resolvedTypeReferenceDirectives:ce,resolvedLibraries:ee,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:ft,resolveSingleModuleNameWithoutWatching:Zt,removeResolutionsFromProjectReferenceRedirects:Ye,removeResolutionsOfFile:Wt,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:li,invalidateResolutionsOfFailedLookupLocations:ua,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:De,isFileWithInvalidatedNonRelativeUnresolvedImports:Ie,updateTypeRootsWatch:lt,closeTypeRootsWatch:Be,clear:he,onChangesAffectModuleResolution:Ce};function fe(se){return se.resolvedModule}function ne(se){return se.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(),ee.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 se=i;return i=void 0,se}function Ie(se){if(!s)return!1;let ke=s.get(se);return!!ke&&!!ke.length}function De(se,ke){ua();let st=o;return o=void 0,{hasInvalidatedResolutions:G=>se(G)||w||!!st?.has(G)||Ie(G),hasInvalidatedLibResolutions:G=>{var et;return ke(G)||!!((et=ee?.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(se){ee.forEach((ke,st)=>{var G;(G=se?.resolvedLibReferences)!=null&&G.has(st)||(Qn(ke,e.toPath(rz(e.getCompilationSettings(),j(),st)),fe),ee.delete(st))})}function be(se,ke){s=void 0,w=!1,l.forEach(uo),l.clear(),se!==ke&&(Et(se),se?.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{se?.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(se,ke){se.refCount===0&&(ge.delete(ke),se.watcher.close())}function tt(se,ke){var st;se.files===0&&se.resolutions===0&&!((st=se.symlinks)!=null&&st.size)&&(q.delete(ke),se.watcher.close())}function Ft({entries:se,containingFile:ke,containingSourceFile:st,redirectedReference:G,options:et,perFileCache:Tt,reusedNames:He,loader:pt,getResolutionWithResolvedFileName:Bt,deferWatchingNonRelativeResolution:hn,shouldRetryResolution:dn,logChanges:un}){let U=e.toPath(ke),Me=Tt.get(U)||Tt.set(U,u1()).get(U),Nt=[],k=un&&Ie(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 se){let Dt=pt.nameAndMode.getName(It),Kt=pt.nameAndMode.getMode(It,st,G?.commandLine.options||et),En=Me.get(Dt,Kt);if(!We.has(Dt,Kt)&&(w||ue||!En||En.isInvalidated||k&&!qc(Dt)&&dn(En))){let wn=En;En=pt.resolve(Dt,Kt),e.onDiscoveredSymlink&&nje(En)&&e.onDiscoveredSymlink(),Me.set(Dt,Kt,En),En!==wn&&(Dn(Dt,En,U,Bt,hn),wn&&Qn(wn,U,Bt)),un&&i&&!Ne(wn,En)&&(i.push(U),un=!1)}else{let wn=fz(e);if(Bg(et,wn)&&!We.has(Dt,Kt)){let Bn=Bt(En);yo(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&&kv(Bn.packageId))}}R.assert(En!==void 0&&!En.isInvalidated),We.set(Dt,Kt,!0),Nt.push(En)}return He?.forEach(It=>We.set(pt.nameAndMode.getName(It),pt.nameAndMode.getMode(It,st,G?.commandLine.options||et),!0)),Me.size()!==We.size()&&Me.forEach((It,Dt,Kt)=>{We.has(Dt,Kt)||(Qn(It,U,Bt),Me.delete(Dt,Kt))}),Nt;function Ne(It,Dt){if(It===Dt)return!0;if(!It||!Dt)return!1;let Kt=Bt(It),En=Bt(Dt);return Kt===En?!0:!Kt||!En?!1:Kt.resolvedFileName===En.resolvedFileName}}function _t(se,ke,st,G,et,Tt){return Ft({entries:se,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(se,ke,st,G,et,Tt){return Ft({entries:se,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:Y,loader:yce(ke,st,G,e,B),getResolutionWithResolvedFileName:fe,shouldRetryResolution:He=>!He.resolvedModule||!VN(He.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function ft(se,ke,st,G){let et=fz(e),Tt=ee?.get(G);if(!Tt||Tt.isInvalidated){let He=Tt;Tt=E3(se,ke,st,et,me);let pt=e.toPath(ke);Dn(se,Tt,pt,fe,!1),ee.set(G,Tt),He&&Qn(He,pt,fe)}else if(Bg(st,et)){let He=fe(Tt);yo(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,se,ke,He?.resolvedFileName,He?.packageId&&kv(He.packageId))}return Tt}function Zt(se,ke){var st,G;let et=e.toPath(ke),Tt=Y.get(et),He=Tt?.get(se,void 0);if(He&&!He.isInvalidated)return He;let pt=(st=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:st.call(e,B),Bt=fz(e),hn=KR(se,ke,e.getCompilationSettings(),Bt,B);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,B,se,ke,hn,pt),hn}function en(se){return El(se,"/node_modules/@types")}function Dn(se,ke,st,G,et){var Tt;if(ke.refCount)ke.refCount++,R.assertIsDefined(ke.files);else{ke.refCount=1,R.assert(!((Tt=ke.files)!=null&&Tt.size)),!et||qc(se)?pn(ke):l.add(se,ke);let He=G(ke);if(He&&He.resolvedFileName){let pt=e.toPath(He.resolvedFileName),Bt=h.get(pt);Bt||h.set(pt,Bt=new Set),Bt.add(ke)}}(ke.files??(ke.files=new Set)).add(st)}function Kn(se,ke){let st=e.toPath(se),G=NJ(se,st,J,re,pe,j);if(G){let{dir:et,dirPath:Tt,nonRecursive:He}=G;Tt===re?(R.assert(He),ke=!0):Li(et,Tt,He)}return ke}function pn(se){R.assert(!!se.refCount);let{failedLookupLocations:ke,affectingLocations:st,alternateResult:G}=se;if(!ke?.length&&!st?.length&&!G)return;(ke?.length||G)&&d.add(se);let et=!1;if(ke)for(let Tt of ke)et=Kn(Tt,et);G&&(et=Kn(G,et)),et&&Li(J,re,!0),Yt(se,!ke?.length&&!G)}function Yt(se,ke){R.assert(!!se.refCount);let{affectingLocations:st}=se;if(st?.length){ke&&p.add(se);for(let G of st)qt(G,!0)}}function qt(se,ke){let st=q.get(se);if(st){ke?st.resolutions++:st.files++;return}let G=se,et=!1,Tt;e.realpath&&(G=e.realpath(se),se!==G&&(et=!0,Tt=q.get(G)));let He=ke?1:0,pt=ke?0:1;if(!et||!Tt){let Bt={watcher:mce(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:pt,symlinks:void 0};q.set(G,Bt),et&&(Tt=Bt)}if(et){R.assert(!!Tt);let Bt={watcher:{close:()=>{var hn;let dn=q.get(G);(hn=dn?.symlinks)!=null&&hn.delete(se)&&!dn.symlinks.size&&!dn.resolutions&&!dn.files&&(q.delete(G),dn.watcher.close())}},resolutions:He,files:pt,symlinks:void 0};q.set(se,Bt),(Tt.symlinks??(Tt.symlinks=new Set)).add(se)}}function hi(se,ke){var st;let G=q.get(se);G?.resolutions&&(S??(S=new Set)).add(se),G?.files&&(E??(E=new Set)).add(se),(st=G?.symlinks)==null||st.forEach(et=>hi(et,ke)),ke?.delete(e.toPath(se))}function uo(se,ke){let st=e.getCurrentProgram();!st||!st.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ke)?se.forEach(pn):se.forEach(G=>Yt(G,!0))}function Li(se,ke,st){let G=ge.get(ke);G?(R.assert(!!st==!!G.nonRecursive),G.refCount++):ge.set(ke,{watcher:Er(se,ke,st),refCount:1,nonRecursive:st})}function Eo(se,ke,st){let G=e.toPath(se),et=NJ(se,G,J,re,pe,j);if(et){let{dirPath:Tt}=et;Tt===re?ke=!0:Ur(Tt,st)}return ke}function Qn(se,ke,st,G){if(R.checkDefined(se.files).delete(ke),se.refCount--,se.refCount)return;let et=st(se);if(et&&et.resolvedFileName){let Bt=e.toPath(et.resolvedFileName),hn=h.get(Bt);hn?.delete(se)&&!hn.size&&h.delete(Bt)}let{failedLookupLocations:Tt,affectingLocations:He,alternateResult:pt}=se;if(d.delete(se)){let Bt=!1;if(Tt)for(let hn of Tt)Bt=Eo(hn,Bt,G);pt&&(Bt=Eo(pt,Bt,G)),Bt&&Ur(re,G)}else He?.length&&p.delete(se);if(He)for(let Bt of He){let hn=q.get(Bt);hn.resolutions--,G&&tt(hn,Bt)}}function Ur(se,ke){let st=ge.get(se);st.refCount--,ke&&ze(st,se)}function Er(se,ke,st){return e.watchDirectoryOfFailedLookupLocation(se,G=>{let et=e.toPath(G);K&&K.addOrDeleteFileOrDirectory(G,et),$i(et,ke===et)},st?0:1)}function on(se,ke,st,G){let et=se.get(ke);et&&(et.forEach(Tt=>Qn(Tt,ke,st,G)),se.delete(ke))}function Ye(se){if(!Sl(se,".json"))return;let ke=e.getCurrentProgram();if(!ke)return;let st=ke.getResolvedProjectReferenceByPath(se);st&&st.commandLine.fileNames.forEach(G=>Wt(e.toPath(G)))}function Wt(se,ke){on(Y,se,fe,ke),on(ce,se,ne,ke)}function In(se,ke){if(!se)return!1;let st=!1;return se.forEach(G=>{if(!(G.isInvalidated||!ke(G))){G.isInvalidated=st=!0;for(let et of R.checkDefined(G.files))(o??(o=new Set)).add(et),y=y||El(et,tD)}}),st}function li(se){Wt(se);let ke=y;In(h.get(se),Ay)&&y&&!ke&&e.onChangedAutomaticTypeDirectiveNames()}function yi(se){R.assert(s===se||s===void 0),s=se}function $i(se,ke){if(ke)(D||(D=new Set)).add(se);else{let st=uz(se);if(!st||(se=st,e.fileIsOpen(se)))return!1;let G=ai(se);if(en(se)||KW(se)||en(G)||KW(G))(A||(A=new Set)).add(se),(N||(N=new Set)).add(se);else{if(Ule(e.getCurrentProgram(),se)||Sl(se,".map"))return!1;(A||(A=new Set)).add(se);let et=pw(se,!0);et&&(N||(N=new Set)).add(et)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ao(){let se=B.getPackageJsonInfoCache().getInternalMap();se&&(A||N||D)&&se.forEach((ke,st)=>vn(st)?se.delete(st):void 0)}function ua(){var se;if(w)return E=void 0,Ao(),(A||N||D||S)&&In(ee,za),A=void 0,N=void 0,D=void 0,S=void 0,!0;let ke=!1;return E&&((se=e.getCurrentProgram())==null||se.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,za)||ke,Ao(),A=void 0,N=void 0,D=void 0,ke=In(p,kn)||ke,S=void 0),ke}function za(se){var ke;return kn(se)?!0:!A&&!N&&!D?!1:((ke=se.failedLookupLocations)==null?void 0:ke.some(st=>vn(e.toPath(st))))||!!se.alternateResult&&vn(e.toPath(se.alternateResult))}function vn(se){return A?.has(se)||bL(N?.keys()||[],ke=>ao(se,ke)?!0:void 0)||bL(D?.keys()||[],ke=>se.length>ke.length&&ao(se,ke)&&(aV(ke)||se[ke.length]===rl)?!0:void 0)}function kn(se){var ke;return!!S&&((ke=se.affectingLocations)==null?void 0:ke.some(st=>S.has(st)))}function Be(){$u(xe,Km)}function ct(se){return Rt(se)?e.watchTypeRootsDirectory(se,ke=>{let st=e.toPath(ke);K&&K.addOrDeleteFileOrDirectory(ke,st),y=!0,e.onChangedAutomaticTypeDirectiveNames();let G=hce(se,e.toPath(se),re,pe,j,et=>ge.has(et));G&&$i(st,G===st)},1):iD}function lt(){let se=e.getCompilationSettings();if(se.types){Be();return}let ke=RP(se,{getCurrentDirectory:j});ke?FN(xe,new Set(ke),{createNewValue:ct,onDeleteValue:Km}):Be()}function Rt(se){return e.getCompilationSettings().typeRoots?!0:fce(e.toPath(se))}}function nje(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var rje=bt({"src/compiler/resolutionCache.ts"(){"use strict";Qo()}});function Ow(e,t){let r=e===_d&&Ice?Ice:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Cd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(oJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(qle(i,r)+r.getNewLine()),i[0]=void 0}}function R1e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&zo(vz,t.code)?(e.clearScreen(),!0):!1}function ije(e,t){return zo(vz,e.code)?t+t:t}function Ww(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function vce(e,t){return t?(r,i,o)=>{R1e(e,r,o);let s=`[${oS(Ww(e),"\x1B[90m")}] `;s+=`${k_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";R1e(e,r,o)||(s+=i),s+=`${Ww(e)} - `,s+=`${k_(r.messageText,e.newLine)}${ije(r,i)}`,e.write(s)}}function D1e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>P1e(o,s,p);let d=Zk(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function mz(e){return vv(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}=ys(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 C1e(e,t){let r=oS(":"+e.line,"\x1B[90m");return JC(e.fileName)&&JC(t)?_m(t,e.fileName,!1)+r:e.fileName+r}function bce(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]&&C1e(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?oje(o,i):"";return`${r}${k_(p.messageText,r)}${r}${r}${h}`}function oje(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,vv(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=>qC(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(Fo(void 0,f.File_is_output_of_project_reference_source_0,rD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Fo(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(Fo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,rD(Ka(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Fo(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(Ka(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Fo(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=ai(_o(i.fileName,e.getCurrentDirectory()));return Vr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(_o(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=ai(_o(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=boe(p,l,"files");return!!h&&Bv(`(${h})$`,d).test(t)})}function FJ(e,t,r){var i,o;let s=e.getCompilerOptions();if(xE(t)){let l=jP(e,t),d=ZR(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(R.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===Vv?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:R.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:R.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:R.assertNever(t)}return Fo(void 0,p,d,rD(l.file,r),l.packageId&&kv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Fo(void 0,f.Root_file_specified_for_compilation);let l=_o(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(OJ(e,l))return Fo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=WJ(e,l);return Co(p)?Fo(void 0,f.Matched_by_include_pattern_0_in_1,p,rD(s.configFile,r)):Fo(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=R.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Fo(void 0,Ds(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,kv(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,kv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Fo(void 0,...y)}case 6:{if(t.index!==void 0)return Fo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let y=zc(sw.type,(S,A)=>S===ns(s)?A:void 0),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return Fo(void 0,...E)}default:R.assertNever(t)}}function rD(e,t){let r=Co(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=_o(D,N);r(`TSFILE: ${w}`)}),LJ(e,r)}return i&&i(mz(A),_z(A)),{emitResult:y,diagnostics:A}}function Sce(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=_d,t){return{onWatchStatusChange:t||vce(e),watchFile:ea(e,e.watchFile)||oD,watchDirectory:ea(e,e.watchDirectory)||oD,setTimeout:ea(e,e.setTimeout)||Ja,clearTimeout:ea(e,e.clearTimeout)||Ja}}function BJ(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):Ja,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:ea(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:Eu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Cd(i),getNewLine:()=>Wy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ea(e,e.trace),directoryExists:ea(r,r.directoryExists),getDirectories:ea(r,r.getDirectories),realpath:ea(e,e.realpath),getEnvironmentVariable:ea(e,e.getEnvironmentVariable)||(()=>""),createHash:ea(e,e.createHash),readDirectory:ea(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||KC)(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=Eu(()=>ai(ma(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Eu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Yr(r(),KL(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:ea(e,e.realpath),getEnvironmentVariable:ea(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:ea(e,e.createHash),createProgram:t||CJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ea(e,e.now)}}function N1e(e=_d,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 P1e(e,t,r){t(r),e.exit(1)}function Tce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=l||Ow(o),h=N1e(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>P1e(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function Ace({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=N1e(o,s,l||Ow(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function M1e(e){let t=e.system||_d,r=e.host||(e.host=jJ(e.options,t)),i=xce(e),o=Sce(i,e.reportDiagnostic||Ow(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(bce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var Ice,vz,iD,oD,Lc,aje=bt({"src/compiler/watch.ts"(){"use strict";Qo(),Ice=_d?{getCurrentDirectory:()=>_d.getCurrentDirectory(),getNewLine:()=>_d.newLine,getCanonicalFileName:Cd(_d.useCaseSensitiveFileNames)}:void 0,vz=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],iD={close:Ja},oD=()=>iD,Lc={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=Uy(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!==qp||!i.program))return uce(i,r,t)}function jJ(e,t=_d){let r=iJ(e,void 0,t);return r.createHash=ea(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,yz(r),Pw(r,i=>nl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function xce({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 L1e(e,t,r,i,o,s,l,d){return So(e)?Ace({rootFiles:e,options:t,watchOptions:d,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Tce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:d,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function k1e(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:ee}=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&&(za(e.configFileParsingResult),fe=Dn()),Qn(f.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=Wy(w),R.assert(!B),ua(),fe=Dn()),R.assert(ce),R.assert(B);let{watchFile:ne,watchDirectory:he,writeLog:Ce}=BJ(e,ce),Ge=Cd(A);Ce(`Current directory: ${N} CaseSensitiveFileNames: ${A}`);let ve;D&&(ve=ne(D,In,2e3,z,Lc.ConfigFile));let Ie=GJ(e,()=>ce,pe);yz(Ie);let De=Ie.getSourceFile;Ie.getSourceFile=(He,...pt)=>hi(He,Kn(He),...pt),Ie.getSourceFileByPath=hi,Ie.getNewLine=()=>fe,Ie.fileExists=qt,Ie.onReleaseOldSourceFile=Eo,Ie.onReleaseParsedCommandLine=Be,Ie.toPath=Kn,Ie.getCompilationSettings=()=>ce,Ie.useSourceOfProjectReferenceRedirect=ea(e,e.useSourceOfProjectReferenceRedirect),Ie.watchDirectoryOfFailedLookupLocation=(He,pt,Bt)=>he(He,pt,Bt,z,Lc.FailedLookupLocations),Ie.watchAffectingFileLocation=(He,pt)=>ne(He,pt,2e3,z,Lc.AffectingFileLocation),Ie.watchTypeRootsDirectory=(He,pt,Bt)=>he(He,pt,Bt,z,Lc.TypeRoots),Ie.getCachedDirectoryStructureHost=()=>re,Ie.scheduleInvalidateResolutionsOfFailedLookupLocations=on,Ie.onInvalidatedResolution=Wt,Ie.onChangedAutomaticTypeDirectiveNames=Wt,Ie.fileIsOpen=jm,Ie.getCurrentProgram=Je,Ie.writeLog=Ce,Ie.getParsedCommandLine=vn;let Le=PJ(Ie,D?ai(_o(D,N)):N,!1);Ie.resolveModuleNameLiterals=ea(e,e.resolveModuleNameLiterals),Ie.resolveModuleNames=ea(e,e.resolveModuleNames),!Ie.resolveModuleNameLiterals&&!Ie.resolveModuleNames&&(Ie.resolveModuleNameLiterals=Le.resolveModuleNameLiterals.bind(Le)),Ie.resolveTypeReferenceDirectiveReferences=ea(e,e.resolveTypeReferenceDirectiveReferences),Ie.resolveTypeReferenceDirectives=ea(e,e.resolveTypeReferenceDirectives),!Ie.resolveTypeReferenceDirectiveReferences&&!Ie.resolveTypeReferenceDirectives&&(Ie.resolveTypeReferenceDirectiveReferences=Le.resolveTypeReferenceDirectiveReferences.bind(Le)),Ie.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Le.resolveLibrary.bind(Le),Ie.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ea(e,e.getModuleResolutionCache):()=>Le.getModuleResolutionCache();let be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ea(e,e.hasInvalidatedResolutions)||Ay:jm,ze=e.resolveLibrary?ea(e,e.hasInvalidatedLibResolutions)||Ay:jm;return t=bz(ce,Ie),ft(),st(),D&&et(Kn(D),ce,z,Lc.ExtendedConfigFile),D?{getCurrentProgram:_t,getProgram:yi,close:tt,getResolutionCache:Ft}:{getCurrentProgram:_t,getProgram:yi,updateRootFileNames:en,close:tt,getResolutionCache:Ft};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,Km),i=void 0),d&&($u(d,He=>{var pt;(pt=He.watcher)==null||pt.close(),He.watcher=void 0,He.watchedDirectories&&$u(He.watchedDirectories,Rf),He.watchedDirectories=void 0}),d=void 0)}function Ft(){return Le}function _t(){return t}function Je(){return t&&t.getProgramOrUndefined()}function ft(){Ce("Synchronizing program"),R.assert(ce),R.assert(B),Er();let He=_t();S&&(fe=Dn(),He&&yF(He.getCompilerOptions(),ce)&&Le.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:pt,hasInvalidatedLibResolutions:Bt}=Le.createHasInvalidatedResolutions(be,ze),{originalReadFile:hn,originalFileExists:dn,originalDirectoryExists:un,originalCreateDirectory:U,originalWriteFile:Me,readFileWithCache:Nt}=Pw(Ie,Kn);return mJ(Je(),B,ce,k=>Li(k,Nt),k=>Ie.fileExists(k),pt,Bt,Ur,vn,ee)?J&&(m&&Qn(f.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,Ie,t,ge,ee),J=!1):(m&&Qn(f.File_change_detected_Starting_incremental_compilation),Zt(pt,Bt)),m=!1,e.afterProgramCreate&&He!==t&&e.afterProgramCreate(t),Ie.readFile=hn,Ie.fileExists=dn,Ie.directoryExists=un,Ie.createDirectory=U,Ie.writeFile=Me,t}function Zt(He,pt){Ce("CreatingProgramWith::"),Ce(` roots: ${JSON.stringify(B)}`),Ce(` options: ${JSON.stringify(ce)}`),ee&&Ce(` projectReferences: ${JSON.stringify(ee)}`);let Bt=S||!Je();S=!1,J=!1,Le.startCachingPerDirectoryResolution(),Ie.hasInvalidatedResolutions=He,Ie.hasInvalidatedLibResolutions=pt,Ie.hasChangedAutomaticTypeDirectiveNames=Ur;let hn=Je();if(t=Y(B,ce,Ie,t,ge,ee),Le.finishCachingPerDirectoryResolution(t.getProgram(),hn),QK(t.getProgram(),i||(i=new Map),se),Bt&&Le.updateTypeRootsWatch(),E){for(let dn of E)i.has(dn)||y.delete(dn);E=void 0}}function en(He){R.assert(!D,"Cannot update root file names with config file watch mode"),B=He,Wt()}function Dn(){return Wy(ce||w)}function Kn(He){return nl(He,N,Ge)}function pn(He){return typeof He=="boolean"}function Yt(He){return typeof He.version=="boolean"}function qt(He){let pt=Kn(He);return pn(y.get(pt))?!1:pe.fileExists(He)}function hi(He,pt,Bt,hn,dn){let un=y.get(pt);if(pn(un))return;let U=typeof Bt=="object"?Bt.impliedNodeFormat:void 0;if(un===void 0||dn||Yt(un)||un.sourceFile.impliedNodeFormat!==U){let Me=De(He,Bt,hn);if(un)Me?(un.sourceFile=Me,un.version=Me.version,un.fileWatcher||(un.fileWatcher=ct(pt,He,lt,250,z,Lc.SourceFile))):(un.fileWatcher&&un.fileWatcher.close(),y.set(pt,!1));else if(Me){let Nt=ct(pt,He,lt,250,z,Lc.SourceFile);y.set(pt,{sourceFile:Me,version:Me.version,fileWatcher:Nt})}else y.set(pt,!1);return Me}return un.sourceFile}function uo(He){let pt=y.get(He);pt!==void 0&&(pn(pt)?y.set(He,{version:!1}):pt.version=!1)}function Li(He,pt){let Bt=y.get(He);if(!Bt)return;if(Bt.version)return Bt.version;let hn=pt(He);return hn!==void 0?gz(Ie,hn):void 0}function Eo(He,pt,Bt){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),Bt||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()&&Wt()}function Wt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ce("Scheduling update"),s=e.setTimeout(li,250,"timerToUpdateProgram"))}function In(){R.assert(!!D),r=2,Wt()}function li(){s=void 0,m=!0,yi()}function yi(){var He,pt,Bt,hn;switch(r){case 1:(He=iu)==null||He.logStartUpdateProgram("PartialConfigReload"),$i();break;case 2:(pt=iu)==null||pt.logStartUpdateProgram("FullConfigReload"),Ao();break;default:(Bt=iu)==null||Bt.logStartUpdateProgram("SynchronizeProgram"),ft();break}return(hn=iu)==null||hn.logStopUpdateProgram("Done"),_t()}function $i(){Ce("Reloading new file names and options"),R.assert(ce),R.assert(D),r=0,B=AP(ce.configFile.configFileSpecs,_o(ai(D),N),ce,xe,K),s3(B,_o(D,N),ce.configFile.configFileSpecs,ge,q)&&(J=!0),ft()}function Ao(){R.assert(D),Ce(`Reloading config file: ${D}`),r=0,re&&re.clearCache(),ua(),S=!0,ft(),st(),et(Kn(D),ce,z,Lc.ExtendedConfigFile)}function ua(){R.assert(D),za(Zk(D,w,xe,h||(h=new Map),j,K))}function za(He){B=He.fileNames,ce=He.options,z=He.watchOptions,ee=He.projectReferences,me=He.wildcardDirectories,ge=KT(He).slice(),q=TP(He.raw),J=!0}function vn(He){let pt=Kn(He),Bt=d?.get(pt);if(Bt){if(!Bt.updateLevel)return Bt.parsedCommandLine;if(Bt.parsedCommandLine&&Bt.updateLevel===1&&!e.getParsedCommandLine){Ce("Reloading new file names and options"),R.assert(ce);let dn=AP(Bt.parsedCommandLine.options.configFile.configFileSpecs,_o(ai(He),N),ce,xe);return Bt.parsedCommandLine={...Bt.parsedCommandLine,fileNames:dn},Bt.updateLevel=void 0,Bt.parsedCommandLine}}Ce(`Loading config file: ${He}`);let hn=e.getParsedCommandLine?e.getParsedCommandLine(He):kn(He);return Bt?(Bt.parsedCommandLine=hn,Bt.updateLevel=void 0):(d||(d=new Map)).set(pt,Bt={parsedCommandLine:hn}),Tt(He,pt,Bt),hn}function kn(He){let pt=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=Ja;let Bt=Zk(He,void 0,xe,h||(h=new Map),j);return xe.onUnRecoverableConfigFileDiagnostic=pt,Bt}function Be(He){var pt;let Bt=Kn(He),hn=d?.get(Bt);hn&&(d.delete(Bt),hn.watchedDirectories&&$u(hn.watchedDirectories,Rf),(pt=hn.watcher)==null||pt.close(),$K(Bt,p))}function ct(He,pt,Bt,hn,dn,un){return ne(pt,(U,Me)=>Bt(U,Me,He),hn,dn,un)}function lt(He,pt,Bt){Rt(He,Bt,pt),pt===2&&y.has(Bt)&&Le.invalidateResolutionOfFile(Bt),uo(Bt),Wt()}function Rt(He,pt,Bt){re&&re.addOrDeleteFile(He,pt,Bt)}function se(He,pt){return d?.has(He)?iD:ct(He,pt,ke,500,z,Lc.MissingFile)}function ke(He,pt,Bt){Rt(He,Bt,pt),pt===0&&i.has(Bt)&&(i.get(Bt).close(),i.delete(Bt),uo(Bt),Wt())}function st(){Dw(o||(o=new Map),me,G)}function G(He,pt){return he(He,Bt=>{R.assert(D),R.assert(ce);let hn=Kn(Bt);re&&re.addOrDeleteFileOrDirectory(Bt,hn),uo(hn),!Cw({watchedDirPath:Kn(He),fileOrDirectory:Bt,fileOrDirectoryPath:hn,configFileName:D,extraFileExtensions:K,options:ce,program:_t()||B,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})&&r!==2&&(r=1,Wt())},pt,z,Lc.WildcardDirectory)}function et(He,pt,Bt,hn){Q3(He,pt,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)}Wt()})},2e3,Bt,hn),Kn)}function Tt(He,pt,Bt){var hn,dn,un,U;Bt.watcher||(Bt.watcher=ne(He,(Me,Nt)=>{Rt(He,pt,Nt);let k=d?.get(pt);k&&(k.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(pt),Wt()},2e3,((hn=Bt.parsedCommandLine)==null?void 0:hn.watchOptions)||z,Lc.ConfigFileOfReferencedProject)),Dw(Bt.watchedDirectories||(Bt.watchedDirectories=new Map),(dn=Bt.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(pt);ue?.parsedCommandLine&&(Cw({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,Wt()))},Nt,((k=Bt.parsedCommandLine)==null?void 0:k.watchOptions)||z,Lc.WildcardDirectoryOfReferencedProject)}),et(pt,(un=Bt.parsedCommandLine)==null?void 0:un.options,((U=Bt.parsedCommandLine)==null?void 0:U.watchOptions)||z,Lc.ExtendedConfigOfReferencedProject)}}var sje=bt({"src/compiler/watchPublic.ts"(){"use strict";Qo()}});function UJ(e){return Sl(e,".json")?e:Yr(e,"tsconfig.json")}var HJ,lje=bt({"src/compiler/tsbuild.ts"(){"use strict";Qo(),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 cje(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Rce(e,t){return cje(e,t,()=>new Map)}function Fw(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 Dce(e,t){return r=>{let i=t?`[${oS(Ww(e),"\x1B[90m")}] `:`${Ww(e)} - `;i+=`${k_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function w1e(e,t,r,i){let o=VJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):qb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):Ja,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):Ja,o.reportDiagnostic=r||Ow(e),o.reportSolutionBuilderStatus=i||Dce(e),o.now=ea(e,e.now),o}function O1e(e=_d,t,r,i,o){let s=w1e(e,t,r,i);return s.reportErrorSummary=o,s}function W1e(e=_d,t,r,i,o){let s=w1e(e,t,r,i),l=zJ(e,o);return GG(s,l),s}function dje(e){let t={};return aw.forEach(r=>{As(e,r.name)&&(t[r.name]=e[r.name])}),t}function F1e(e,t,r){return lxe(!1,e,t,r)}function z1e(e,t,r,i){return lxe(!0,e,t,r,i)}function uje(e,t,r,i,o){let s=t,l=t,d=dje(i),p=GJ(s,()=>N.projectCompilerOptions);yz(p),p.getParsedCommandLine=D=>g1(N,D,w_(N,D)),p.resolveModuleNameLiterals=ea(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ea(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ea(s,s.resolveLibrary),p.resolveModuleNames=ea(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ea(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ea(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=HR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(D,w,j,K,Y)=>Lw(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)=>Lw(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)=>Z1e(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:ea(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 nl(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 B1e(e){return!!e.options}function pje(e,t){let r=e.configFileCache.get(t);return r&&B1e(r)?r:void 0}function g1(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return B1e(o)?o:void 0;tl("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=Zk(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=Ja),i.set(r,y||s),tl("SolutionBuilder::afterConfigFileParsing"),Yp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function UP(e,t){return UJ(Iv(e.compilerHost.getCurrentDirectory(),t))}function G1e(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=UP(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function Sz(e){return e.buildOrder||fje(e)}function fje(e){let t=G1e(e,e.rootNames.map(o=>UP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Ez(t).map(o=>w_(e,o))),i={onDeleteValue:Ja};return tg(e.configFileCache,r,i),tg(e.projectStatus,r,i),tg(e.builderPrograms,r,i),tg(e.diagnostics,r,i),tg(e.projectPendingBuild,r,i),tg(e.projectErrorsReported,r,i),tg(e.buildInfoCache,r,i),tg(e.outputTimeStamps,r,i),tg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(tg(e.allWatchedConfigFiles,r,{onDeleteValue:Km}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),tg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Rf)}),tg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Km)}),tg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Km)})),e.buildOrder=t}function V1e(e,t,r){let i=t&&UP(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?G1e(e,[i]):o;return R.assert(!h1(s)),R.assert(!r||i!==void 0),R.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function j1e(e){e.cache&&Cce(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}=Pw(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 Cce(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 U1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function H1e({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(w_(e,i),0)),t&&t.throwIfCancellationRequested()}function J1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function mje(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:()=>{txe(e,i,r),s=!1},done:()=>(s&&txe(e,i,r),tl("SolutionBuilder::Timestamps only updates"),J1e(e,r))}}function q1e(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(Zs),getProgram:()=>E(z=>z.getProgramOrUndefined()),getSourceFile:z=>E(ee=>ee.getSourceFile(z)),getSourceFiles:()=>S(z=>z.getSourceFiles()),getOptionsDiagnostics:z=>S(ee=>ee.getOptionsDiagnostics(z)),getGlobalDiagnostics:z=>S(ee=>ee.getGlobalDiagnostics(z)),getConfigFileParsingDiagnostics:()=>S(z=>z.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(z,ee)=>S(me=>me.getSyntacticDiagnostics(z,ee)),getAllDependencies:z=>S(ee=>ee.getAllDependencies(z)),getSemanticDiagnostics:(z,ee)=>S(me=>me.getSemanticDiagnostics(z,ee)),getSemanticDiagnosticsOfNextAffectedFile:(z,ee)=>E(me=>me.getSemanticDiagnosticsOfNextAffectedFile&&me.getSemanticDiagnosticsOfNextAffectedFile(z,ee)),emit:(z,ee,me,ge,q)=>{if(z||ge)return E(J=>{var re,pe;return J.emit(z,ee,me,ge,q||((pe=(re=t.host).getCustomTransformers)==null?void 0:pe.call(re,r)))});if(ce(2,me),d===5)return K(ee,me);if(d===3)return j(ee,me,q)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(z,ee)=>d!==4?m:B(z,ee),done:y};function y(z,ee,me){return ce(8,z,ee,me),tl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),J1e(t,i)}function E(z){return ce(0),p&&z(p)}function S(z){return E(z)||Xe}function A(){var z,ee,me;if(R.assert(p===void 0),t.options.dry){xu(t,f.A_non_dry_build_would_build_project_0,r),h=1,d=7;return}if(t.options.verbose&&xu(t,f.Building_project_0,r),s.fileNames.length===0){HP(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),(ee=t.typeReferenceDirectiveResolutionCache)==null||ee.update(s.options),p=ge.createProgram(s.fileNames,s.options,q,hje(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(Oo(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,ee,me){z.length?{buildResult:h,step:d}=Mce(t,i,p,s,z,ee,me):d++}function D(z){R.assertIsDefined(p),N([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(z),...p.getGlobalDiagnostics(z),...p.getSyntacticDiagnostics(void 0,z)],8,"Syntactic")}function w(z){N(R.checkDefined(p).getSemanticDiagnostics(void 0,z),16,"Semantic")}function j(z,ee,me){var ge,q,J;R.assertIsDefined(p),R.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,Ft,_t,Je,ft)=>fe.push({name:ze,text:tt,writeByteOrderMark:Ft,data:ft}),ee,!1,me||((q=(ge=t.host).getCustomTransformers)==null?void 0:q.call(ge,r)));if(pe)return p.restoreEmitState(re),{buildResult:h,step:d}=Mce(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(),Ie=new Map,De=p.getCompilerOptions(),Le=tP(De),Et,be;return fe.forEach(({name:ze,text:tt,writeByteOrderMark:Ft,data:_t})=>{let Je=Df(t,ze);Ie.set(Df(t,ze),ze),_t?.buildInfo&&kce(t,_t.buildInfo,i,De,Ge);let ft=_t?.differsOnlyInMap?fI(t.host,ze):void 0;RN(z?{writeFile:z}:Ce,ve,ze,tt,Ft),_t?.differsOnlyInMap?t.host.setModifiedTime(ze,ft):!Le&&t.watch&&(Et||(Et=Lce(t,i))).set(Je,be||(be=Fw(t.host)))}),Y(ve,Ie,fe.length?fe[0].name:qK(s,!he.useCaseSensitiveFileNames()),Ge),ne}function K(z,ee){R.assertIsDefined(p),R.assert(d===5);let me=p.emitBuildInfo((ge,q,J,re,pe,xe)=>{xe?.buildInfo&&kce(t,xe.buildInfo,i,p.getCompilerOptions(),2),z?z(ge,q,J,re,pe,xe):t.compilerHost.writeFile(ge,q,J,re,pe,xe)},ee);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=>$1e(t,s,ge)),Pce(t,p,s),d=7,me}function Y(z,ee,me,ge){let q=z.getDiagnostics();return q.length?({buildResult:h,step:d}=Mce(t,i,p,s,q,64,"Emit"),q):(t.write&&ee.forEach(J=>$1e(t,s,J)),exe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ee),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:me}),Pce(t,p,s),d=7,h=ge,q)}function B(z,ee){var me,ge,q,J;if(R.assert(e===1),t.options.dry){xu(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,d=7;return}t.options.verbose&&xu(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=Vle(s,re,Ge=>{let ve=UP(t,Ge.path);return g1(t,ve,w_(t,ve))},ee||((J=(q=t.host).getCustomTransformers)==null?void 0:J.call(q,r)));if(Co(pe))return xu(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,ad(t,pe)),d=6,m=q1e(0,t,r,i,o,s,l);R.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:Ie,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),kce(t,De.buildInfo,i,s.options,ne)),RN(z?{writeFile:z}:re,xe,Ge,ve,Ie)}),{emitSkipped:!1,diagnostics:Y(xe,fe,pe[0].name,ne)}}function ce(z,ee,me,ge){for(;d<=z&&d<8;){let q=d;switch(d){case 0:A();break;case 1:D(ee);break;case 2:w(ee);break;case 3:j(me,ee,ge);break;case 5:K(me,ee);break;case 4:B(me,ge);break;case 6:R.checkDefined(m).done(ee,me,ge),d=8;break;case 7:bje(t,r,i,o,s,l,R.checkDefined(h)),d++;break;case 8:default:}R.assert(d>q)}}}function _je({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!KT(r).length||!tP(r.options)}function X1e(e,t,r){if(!e.projectPendingBuild.size||h1(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let S=R.checkDefined(e.filesWatched.get(d));R.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=R.checkDefined(e.filesWatched.get(d));R.assert(KJ(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Rf(h)):uI(h.callbacks,r)}}}function Lce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function kce(e,t,r,i,o){let s=Uy(i),l=wce(e,s,r),d=Fw(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 wce(e,t,r){let i=Df(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function Z1e(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 Oce(e,t,r,i){let o=Q1e(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=Lce(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(xeOce(e,q,y,m));if(ee)return ee;let me=e.lastCachedPackageJsonLookups.get(r),ge=me&&uh(me,q=>Oce(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 yje(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Wce(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;tl("SolutionBuilder::beforeUpToDateCheck");let o=gje(e,t,r);return tl("SolutionBuilder::afterUpToDateCheck"),Yp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function exe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Uy(t.options);if(l){o?.has(Df(e,l))||(e.options.verbose&&xu(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Fw(e.host)),wce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=J3(t,!d.useCaseSensitiveFileNames()),h=Lce(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,xu(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=Fw(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((y,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function vje(e,t,r){if(!t.composite)return;let i=R.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(_o(i.buildInfo.program.latestChangedDtsFile,ai(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function txe(e,t,r){if(e.options.dry)return xu(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);exe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:qK(t,!e.host.useCaseSensitiveFileNames())})}function bje(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 rxe(e,t,r){tl("SolutionBuilder::beforeClean");let i=Sje(e,t,r);return tl("SolutionBuilder::afterClean"),Yp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Sje(e,t,r){let i=V1e(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){cxe(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),Fce(e,p,0)))}return l&&xu(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(d=>`\r - * ${d}`).join("")),0}function Fce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,U1e(e,t),H1e(e,t,r),j1e(e)}function Tz(e,t,r){e.reportFileChangeDetected=!0,Fce(e,t,r),ixe(e,250,!0)}function ixe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Tje,t,"timerToBuildInvalidatedProject",e,r))}function Tje(e,t,r){tl("SolutionBuilder::beforeBuild");let i=Aje(t,r);tl("SolutionBuilder::afterBuild"),Yp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&dxe(t,i)}function Aje(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Gce(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=Sz(e),o=Nce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=X1e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){ixe(e,100,!1);return}Y1e(e,s,i).done(),s.kind!==2&&r++}return Cce(e),i}function oxe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,JJ(e,t,()=>Tz(e,r,2),2e3,i?.watchOptions,Lc.ConfigFile,t))}function axe(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,Lc.ExtendedConfigFile),i=>Df(e,i))}function sxe(e,t,r,i){e.watch&&Dw(Rce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;Cw({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=pje(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,Lc.WildcardDirectory,t))}function zce(e,t,r,i){e.watch&&FN(Rce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),250,i?.watchOptions,Lc.SourceFile,t),onDeleteValue:Km})}function Bce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||FN(Rce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>JJ(e,o,()=>Tz(e,r,0),2e3,i?.watchOptions,Lc.PackageJson,t),onDeleteValue:Km})}function Ije(e,t){if(e.watchAllProjectsPending){tl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Ez(t)){let i=w_(e,r),o=g1(e,r,i);oxe(e,r,i,o),axe(e,i,o),o&&(sxe(e,r,i,o),zce(e,r,i,o),Bce(e,r,i,o))}tl("SolutionBuilder::afterWatcherCreation"),Yp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function xje(e){$u(e.allWatchedConfigFiles,Km),$u(e.allWatchedExtendedConfigFiles,Rf),$u(e.allWatchedWildcardDirectories,t=>$u(t,Rf)),$u(e.allWatchedInputFiles,t=>$u(t,Km)),$u(e.allWatchedPackageJsonFiles,t=>$u(t,Km))}function lxe(e,t,r,i,o){let s=uje(e,t,r,i,o);return{build:(l,d,p,h)=>nxe(s,l,d,p,h),clean:l=>rxe(s,l),buildReferences:(l,d,p,h)=>nxe(s,l,d,p,h,!0),cleanReferences:l=>rxe(s,l,!0),getNextInvalidatedProject:l=>(K1e(s,l),Nce(s,Sz(s),!1)),getBuildOrder:()=>Sz(s),getUpToDateStatusOfProject:l=>{let d=UP(s,l),p=w_(s,d);return Wce(s,g1(s,d,p),p)},invalidateProject:(l,d)=>Fce(s,l,d||0),close:()=>xje(s)}}function ad(e,t){return qC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xu(e,t,...r){e.host.reportSolutionBuilderStatus(jl(t,...r))}function Gce(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 HP(e,t,r){Az(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function cxe(e,t){HP(e,t,[e.configFileCache.get(t)])}function dxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];h1(t)?(uxe(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?Gce(e,MJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function uxe(e,t){e.options.verbose&&xu(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r - * `+ad(e,r)).join(""))}function Rje(e,t,r){switch(r.type){case 6:return xu(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ad(e,t),ad(e,r.outOfDateOutputFileName),ad(e,r.newerInputFileName));case 7:return xu(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,ad(e,t),ad(e,r.outOfDateOutputFileName),ad(e,r.newerProjectName));case 4:return xu(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,ad(e,t),ad(e,r.missingOutputFileName));case 5:return xu(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,ad(e,t),ad(e,r.fileName));case 8:return xu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,ad(e,t),ad(e,r.buildInfoFile));case 9:return xu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,ad(e,t),ad(e,r.buildInfoFile));case 10:return xu(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,ad(e,t),ad(e,r.buildInfoFile),ad(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return xu(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,ad(e,t),ad(e,r.newestInputFileName||""),ad(e,r.oldestOutputFileName||""));break;case 3:return xu(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,ad(e,t),ad(e,r.newerProjectName));case 2:return xu(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,ad(e,t));case 15:return xu(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,ad(e,t));case 11:return xu(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,ad(e,t),ad(e,r.upstreamProjectName));case 12:return xu(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,ad(e,t),ad(e,r.upstreamProjectName));case 0:return xu(e,f.Failed_to_parse_file_0_Colon_1,ad(e,t),r.reason);case 14:return xu(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,ad(e,t),r.version,qp);case 17:return xu(e,f.Project_0_is_being_forcibly_rebuilt,ad(e,t));case 16:case 13:break;default:}}function qJ(e,t,r){e.options.verbose&&Rje(e,t,r)}var pxe,fxe,XJ,Dje=bt({"src/compiler/tsbuildPublic.ts"(){"use strict";Qo(),nT(),pxe=new Date(-864e13),fxe=new Date(864e13),XJ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(XJ||{})}}),Qo=bt({"src/compiler/_namespaces/ts.ts"(){"use strict";Nze(),zze(),Bze(),Yze(),Zze(),e7e(),u7e(),kEe(),b7e(),I7e(),x7e(),P7e(),W7e(),wBe(),OBe(),WBe(),FBe(),HBe(),KBe(),JBe(),qBe(),E5e(),S5e(),M5e(),Y5e(),SGe(),DGe(),CGe(),jGe(),XGe(),r9e(),d9e(),T9e(),A9e(),L9e(),k9e(),w9e(),V9e(),j9e(),U9e(),H9e(),K9e(),J9e(),q9e(),X9e(),Y9e(),Z9e(),eVe(),tVe(),nVe(),rVe(),oVe(),aVe(),sVe(),lVe(),cVe(),dVe(),hVe(),SVe(),MVe(),kVe(),FVe(),zVe(),BVe(),ZVe(),eje(),rje(),aje(),sje(),lje(),Dje(),Use(),nT()}});function mxe(e){return _d.args.includes(e)}function _xe(e){let t=_d.args.indexOf(e);return t>=0&&t<_d.args.length-1?_d.args[t+1]:void 0}function hxe(){let e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}function KP(e){return Vce+e.replace(/\n/g,Vce)}function RE(e){return KP(JSON.stringify(e,void 0,2))}var zw,Bw,Gw,Iz,xz,Rz,YJ,JP,$J,Vce,Cje=bt({"src/jsTyping/shared.ts"(){"use strict";Vw(),zw="action::set",Bw="action::invalidate",Gw="action::packageInstalled",Iz="event::typesRegistry",xz="event::beginInstallTypes",Rz="event::endInstallTypes",YJ="event::initializationFailed",JP="action::watchTypingLocations",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})($J||($J={})),Vce=` - `}}),Nje=bt({"src/jsTyping/types.ts"(){"use strict"}}),Dz=bt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";Cje(),Nje()}});function gxe(e,t){return new fm(_W(t,`ts${g_}`)||_W(t,"latest")).compareTo(e.version)<=0}function yxe(e){return Jce.has(e)?"node":e}function Pje(e,t){let r=ew(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function Mje(e,t){var r;let i=ew(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Lje(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(W0(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(ai));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=_0(d.map(yxe),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&&gxe(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:${RE(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 ee=Yr(Y,B),me,ge;e.fileExists(ee)&&(z.push(ee),me=ew(ee,pe=>e.readFile(pe)).config,ge=va([me.dependencies,me.devDependencies,me.optionalDependencies,me.peerDependencies],jh),w(ge,`Typing names in '${ee}' 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=Wc(ma(pe)),fe=xe[xe.length-3][0]==="@";return fe&&oh(xe[xe.length-4])===ce||!fe&&oh(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=ew(xe,Ce=>e.readFile(Ce)).config;if(!ne.name)continue;let he=ne.types||ne.typings;if(he){let Ce=_o(he,ai(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(!W0(z))return;let ee=Tu(oh(nc(z))),me=UG(ee);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 kje(e){return jce(e,!0)}function jce(e,t){if(!e)return 1;if(e.length>Xce)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=jce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=jce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function wje(e,t){return typeof e=="object"?vxe(t,e.result,e.name,e.isScopeName):vxe(t,e,t,!1)}function vxe(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 ${Xce} 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 R.fail();default:R.assertNever(t)}}var Uce,Hce,Kce,Jce,qce,Xce,Oje=bt({"src/jsTyping/jsTyping.ts"(){"use strict";Vw(),Dz(),Uce=["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"],Hce=Uce.map(e=>`node:${e}`),Kce=[...Uce,...Hce],Jce=new Set(Kce),qce=(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))(qce||{}),Xce=214}}),O_={};xa(O_,{NameValidationResult:()=>qce,discoverTypings:()=>Lje,isTypingUpToDate:()=>gxe,loadSafeList:()=>Pje,loadTypesMap:()=>Mje,nodeCoreModuleList:()=>Kce,nodeCoreModules:()=>Jce,nonRelativeModuleNameForTypingCache:()=>yxe,prefixedNodeCoreModuleList:()=>Hce,renderPackageNameValidationFailure:()=>wje,validatePackageName:()=>kje});var Wje=bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";Oje()}}),Vw=bt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Qo(),Wje(),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,Yce,jw,lq,cq,dq,uq,pq,fq,mq,_q,hq,Fje=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||{}),Yce=Cz(` -`),jw=(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))(jw||{}),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 Uw(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 Pd(e)||Gg(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:Ml(t)||Kd(t)||bh(t)||Qu(t)||yh(t)||Zc(t)&&e===t.name?7:Pz(e)?zje(e):Lg(e)?Uw(t):Xu(e)&&Fn(e,Um(hP,SI,yE))?7:jje(e)?2:Bje(e)?4:ml(t)?(R.assert(nm(t.parent)),2):Jv(t)?3:1}function zje(e){let t=e.kind===166?e:Au(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 Bje(e){return Gje(e)||Vje(e)}function Gje(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 Vje(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 jje(e){switch(LN(e)&&(e=e.parent),e.kind){case 110:return!Yh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Xh(e.parent)}return!1}function gq(e,t=!1,r=!1){return Hw(e,ra,vq,t,r)}function qP(e,t=!1,r=!1){return Hw(e,U0,vq,t,r)}function yq(e,t=!1,r=!1){return Hw(e,v_,vq,t,r)}function $ce(e,t=!1,r=!1){return Hw(e,H0,Uje,t,r)}function Qce(e,t=!1,r=!1){return Hw(e,vd,vq,t,r)}function Zce(e,t=!1,r=!1){return Hw(e,lu,Hje,t,r)}function vq(e){return e.expression}function Uje(e){return e.tag}function Hje(e){return e.tagName}function Hw(e,t,r,i,o){let s=i?ede(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 ede(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 Kw(e,t){return wr(e.expression)?e.expression.name.text===t:!1}function Jw(e){var t;return Fe(e)&&((t=ii(e.parent,rN))==null?void 0:t.label)===e}function bq(e){var t;return Fe(e)&&((t=ii(e.parent,K0))==null?void 0:t.label)===e}function Eq(e){return bq(e)||Jw(e)}function Sq(e){var t;return((t=ii(e.parent,Bx))==null?void 0:t.tagName)===e}function tde(e){var t;return((t=ii(e.parent,Au))==null?void 0:t.right)===e}function aD(e){var t;return((t=ii(e.parent,wr))==null?void 0:t.name)===e}function Tq(e){var t;return((t=ii(e.parent,Xs))==null?void 0:t.argumentExpression)===e}function Aq(e){var t;return((t=ii(e.parent,ql))==null?void 0:t.name)===e}function Iq(e){var t;return Fe(e)&&((t=ii(e.parent,Xo))==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 No(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 nde(e){return sE(e.parent.parent)&&gN(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 aS(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 Xo(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 Qr(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=aS(o);return l===""?"const":l;case 3:return Ls(o)?"method":"property";case 4:return"property";case 5:return Ls(o)?"method":"property";case 6:return"local class";default:return""}case 80:return yh(e.parent)?"alias":"";case 277:let s=aS(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=Rg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function of(e,t){return xq(e.pos,e.end,t)}function rde(e,t){return Xw(e,t.pos)&&Xw(e,t.end)}function qw(e,t){return e.pos<=t&&t<=e.end}function Xw(e,t){return e.pos=r.end}function Yw(e,t,r){return e.pos<=t&&e.end>=r}function XP(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)&&of(r,e));return R.assert(!t||zo(t.getChildren(),e)),t}function bxe(e){return e.kind===90}function Kje(e){return e.kind===86}function Jje(e){return e.kind===100}function qje(e){if(au(e))return e.name;if(Sc(e)){let t=e.modifiers&&Vr(e.modifiers,bxe);if(t)return t}if($c(e)){let t=Vr(e.getChildren(),Kje);if(t)return t}}function Xje(e){if(au(e))return e.name;if(Ec(e)){let t=Vr(e.modifiers,bxe);if(t)return t}if(Ls(e)){let t=Vr(e.getChildren(),Jje);if(t)return t}}function Yje(e){let t;return Fn(e,r=>(ji(r)&&(t=r),!Au(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=Yje(e);return i&&t.getTypeAtLocation(i)}function $je(e,t){if(!t)switch(e.kind){case 263:case 231:return qje(e);case 262:case 218:return Xje(e);case 176:return e}if(au(e))return e.name}function Exe(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(Fg(e.importClause.namedBindings)){let r=rh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Yv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function Sxe(e,t){if(e.exportClause){if(xf(e.exportClause))return rh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(vh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Qje(e){if(e.types.length===1)return e.types[0].expression}function Txe(e,t){let{parent:r}=e;if(Sa(e)&&(t||e.kind!==90)?Am(r)&&zo(r.modifiers,e):e.kind===86?Sc(r)||$c(e):e.kind===100?Ec(r)||Ls(e):e.kind===120?mu(r):e.kind===94?gE(r):e.kind===156?Tm(r):e.kind===145||e.kind===144?ql(r):e.kind===102?Zc(r):e.kind===139?Zp(r):e.kind===153&&hp(r)){let i=$je(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Vc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Fe(i.name))return i.name}if(e.kind===156){if(yh(r)&&r.isTypeOnly){let i=Exe(r.parent,t);if(i)return i}if(Xl(r)&&r.isTypeOnly){let i=Sxe(r,t);if(i)return i}}if(e.kind===130){if(Qu(r)&&r.propertyName||Kd(r)&&r.propertyName||Yv(r)||vh(r))return r.name;if(Xl(r)&&r.exportClause&&vh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Mc(r)){let i=Exe(r,t);if(i)return i}if(e.kind===95){if(Xl(r)){let i=Sxe(r,t);if(i)return i}if(Ml(r))return Yl(r.expression)}if(e.kind===149&&bh(r))return r.expression;if(e.kind===161&&(Mc(r)||Xl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&ef(r)&&r.token===e.kind){let i=Qje(r);if(i)return i}if(e.kind===96){if(ml(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&&ml(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&&wk(r.type)&&If(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&U0(r)||e.kind===116&&e1(r)||e.kind===114&&NR(r)||e.kind===135&&qv(r)||e.kind===127&&z4(r)||e.kind===91&&gae(r))&&r.expression)return Yl(r.expression);if((e.kind===103||e.kind===104)&&ur(r)&&r.operatorToken===e)return Yl(r.right);if(e.kind===130&&Wk(r)&&If(r.type))return r.type.typeName;if(e.kind===103&&G4(r)||e.kind===165&&Fk(r))return Yl(r.expression)}return e}function Cq(e){return Txe(e,!1)}function zz(e){return Txe(e,!0)}function zu(e,t){return lD(e,t,r=>T_(r)||Wu(r.kind)||Ki(r))}function lD(e,t,r){return Axe(e,t,!1,r,!1)}function so(e,t){return Axe(e,t,!0,void 0,!1)}function Axe(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)&&pde(s,r)?i(s):void 0)}}function Tc(e,t,r,i){let o=s(r||t);return R.assert(!(o&&Gz(o))),o;function s(l){if(Ixe(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||!pde(m,t)||Gz(m)){let S=sde(d,p,t,l.kind);return S?!i&&_F(S)&&S.getChildren(t).length?s(S):ade(S,t):void 0}else return s(m)}R.assert(r!==void 0||l.kind===312||l.kind===1||_F(l));let h=sde(d,d.length,t,l.kind);return h&&ade(h,t)}}function Ixe(e){return gI(e)&&!Gz(e)}function ade(e,t){if(Ixe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=sde(r,r.length,t,e.kind);return i&&ade(i,t)}function sde(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)&&R.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(pde(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 cde(e,t){let r=so(e,t);return!!(UI(r)||r.kind===19&&mP(r.parent)&&og(r.parent.parent)||r.kind===30&&lu(r.parent)&&og(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 Lg(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 Hy(e,t,r){return kc.getRangeOfEnclosingComment(e,t,void 0,r)}function ude(e,t){let r=so(e,t);return!!Fn(r,Ym)}function pde(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function YP(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 fde(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Xo(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||Cv(e))}function xxe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function mde(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(xxe(r,t[0],t[1])||xxe(r,t[1],t[0]))}function Zw(e,t,r){return Cv(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 nO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function yde(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:ea(t,t.readFile),useCaseSensitiveFileNames:ea(t,t.useCaseSensitiveFileNames),getSymlinkCache:ea(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ea(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ea(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ea(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 vde(e,t,r,i){return e||t&&t.length?Jy(e,t,r,i):void 0}function Jy(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 af(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Vr(e.imports,i=>Da(i)&&!qs(i.parent));return r?jq(r,e):1}}function Uq(e){switch(e){case 0:return"'";case 1:return'"';default:return R.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=No(t);return r&&r.kind===80?r.escapedText:void 0})}function $z(e){return as(e)&&(bh(e.parent)||Mc(e.parent)||Su(e.parent,!1)&&e.parent.arguments[0]===e||Op(e.parent)&&e.parent.arguments[0]===e)}function iO(e){return qa(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 oO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!Zje(r,e.parent,t))return e;e=e.parent}}function Zje(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 QP(e,t,r,i,o){let l=(So(r)?r[0]:r).kind===243?pj:pT,d=jr(t.statements,l),p=So(r)?Rm.detectImportDeclarationSorting(r,o):3,h=Rm.getOrganizeImportsComparer(o,p===2),m=So(r)?Ey(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:pr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,A)}else{let A=d[S-1];e.insertNodeAfter(t,A,E)}}}else{let y=Qs(d);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function Hq(e,t){return R.assert(e.isTypeOnly),ta(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:Xb)(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;rTo(r)?!0:qa(r)||tm(r)||j0(r)?!1:"quit")}function eUe(){let e=_k*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!=="..."&&(Dg(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:jo,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(Ede(y,E)))}function h(){o>e||(o+=1,t.push(pD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function Ede(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:jw[t]}}function Ll(){return ep(" ",16)}function vp(e){return ep(da(e),5)}function Xd(e){return ep(da(e),15)}function eM(e){return ep(da(e),12)}function Sde(e){return ep(e,13)}function Tde(e){return ep(e,14)}function $q(e){let t=y0(e);return t===void 0?sf(e):vp(t)}function sf(e){return ep(e,17)}function Ade(e){return ep(e,0)}function Ide(e){return ep(e,18)}function e7(e){return ep(e,24)}function xde(e,t){return{text:e,kind:jw[23],target:{fileName:Gn(t).fileName,textSpan:Ru(t)}}}function Qq(e){return ep(e,22)}function Rde(e,t){var r;let i=Aae(e)?"link":Iae(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=nUe(e.text),p=uc(e.name)+e.text.slice(0,d),h=tUe(e.text.slice(d)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(xde(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 tUe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function qy(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Oxe}function pD(){return ep(` -`,6)}function nb(e){try{return e(yX),yX.displayParts()}finally{yX.clear()}}function aO(e,t,r,i=0){return nb(o=>{e.writeType(t,r,i|1024|16384,o)})}function tM(e,t,r,i,o=0){return nb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function Zq(e,t,r,i=0){return i|=25632,nb(o=>{e.writeSignature(t,r,i,void 0,o)})}function Dxe(e,t){let r=t.getSourceFile();return nb(i=>{Rw().writeNode(4,e,r,i)})}function Dde(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(;rUe(r)||dh(r)&&r.links.target;)dh(r)&&r.links.target?r=r.links.target:r=yd(r,t);return r}function rUe(e){return(e.flags&2097152)!==0}function Cde(e,t){return ba(yd(e,t))}function Nde(e,t){for(;Dg(e.charCodeAt(t));)t+=1;return t}function t7(e,t){for(;t>-1&&y_(e.charCodeAt(t));)t-=1;return t+1}function al(e,t=!0){let r=e&&Cxe(e);return r&&!t&&bp(r),r}function sO(e,t,r){let i=r(e);return i?xr(i,e):i=Cxe(e,r),i&&!t&&bp(i),i}function Cxe(e,t){let r=t?s=>sO(s,!0,t):al,o=Sn(e,r,void 0,t?s=>s&&nX(s,!0,t):s=>s&&lS(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 lS(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>al(i,t)),e.hasTrailingComma);return at(r,e),r}return e}function nX(e,t,r){return L.createNodeArray(e.map(i=>sO(i,t,r)),e.hasTrailingComma)}function bp(e){rX(e),Pde(e)}function rX(e){Mde(e,1024,oUe)}function Pde(e){Mde(e,2048,Zj)}function $T(e,t){let r=e.getSourceFile(),i=r.text;iUe(e,i)?fD(e,t,r):cO(e,t,r),nM(e,t,r)}function iUe(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 lO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:d}of e){R.assert(l===t);for(let p of d){let{span:h,newText:m}=p,y=aUe(m,Zh(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return R.assert(i),R.assert(s>=0),s}function fD(e,t,r,i,o){jL(r.text,e.pos,Lde(t,r,i,o,iP))}function nM(e,t,r,i,o){UL(r.text,e.end,Lde(t,r,i,o,n4))}function cO(e,t,r,i,o){UL(r.text,e.pos,Lde(t,r,i,o,iP))}function Lde(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 aUe(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 ur(e)&&e.operatorToken.kind===28||Ma(e)||(Wk(e)||nH(e))&&Ma(e.expression)}function r7(e,t,r){let i=Ly(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 rM(e,t,r){let i=af(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 kde(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 iM(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 wde(e){return e===179||e===180||e===181||e===171||e===173}function Nxe(e){return e===262||e===176||e===174||e===177||e===178}function Pxe(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 sUe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(wde(e.kind)){if(r&&r.kind===28)return!1}else if(Pxe(e.kind)){let d=Ka(e.getChildren(t));if(d&&N_(d))return!1}else if(Nxe(e.kind)){let d=Ka(e.getChildren(t));if(d&&R0(d))return!1}else if(!o7(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,d=>!d.parent),o=sS(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&&sUe(i,r)}function dO(e){let t=0,r=0,i=5;return Bo(e,function o(s){if(o7(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(wde(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let d=ys(e,l.getStart(e)).line,p=ys(e,fh(e,l.end).start).line;d!==p&&r++}}return t+r>=i?!0:Bo(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 uO(e,t){return d7(e,e.fileExists,t)}function l7(e,t){return c7(()=>Hm(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");uO(t,s)&&i.push(s)}),i}function Ode(e,t){let r;return hm(e,i=>{if(i==="node_modules"||(r=Hle(i,o=>uO(t,o),"package.json"),r))return!0}),r}function Wde(e,t){if(!t.fileExists)return[];let r=[];return hm(ai(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 oM(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Wde(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!!(cu(e)&&O_.nodeCoreModules.has(A)&&(o===void 0&&(o=u7(e)),o))}function E(A,N){if(!A.includes("node_modules"))return;let D=tS.getNodeModulesPackageName(r.getCompilationSettings(),e,A,N,t);if(D&&!Lp(D)&&!cp(D))return S(D)}function S(A){let N=Wc(CP(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 pO(e){return zo(Wc(e),"node_modules")}function cX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Fde(e,t){let r=Ru(e),i=lI(t,r,Zs,yW);if(i>=0){let o=t[i];return R.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ta(o,cX)}}function zde(e,t){var r;let i=lI(t,e.start,l=>l.start,el);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=ii(t[i],cX);if(!l||l.start>s)break;Vne(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,Ru(o,e)))}function uX(e,t,r=Zs){return e?So(e)?r(mn(e,t)):t(e,0):void 0}function pX(e){return So(e)?Ga(e):e}function Bde(e,t){if(Mxe(e)){let r=Lxe(e);if(r)return r;let i=wd.moduleSymbolToValidIdentifier(Gde(e),t,!1),o=wd.moduleSymbolToValidIdentifier(Gde(e),t,!0);return i===o?i:[i,o]}return e.name}function p7(e,t,r){return Mxe(e)?Lxe(e)||wd.moduleSymbolToValidIdentifier(Gde(e),t,!!r):e.name}function Mxe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Lxe(e){return Wl(e.declarations,t=>{var r,i,o;return Ml(t)?(r=ii(Yl(t.expression),Fe))==null?void 0:r.text:Kd(t)&&t.symbol.flags===2097152?(i=ii(t.propertyName,Fe))==null?void 0:i.text:(o=ii(No(t),Fe))==null?void 0:o.text})}function Gde(e){var t;return R.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${R.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=R.formatSyntaxKind(r.kind),o=ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${R.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Vde(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 fO(e){return e===` -`?1:0}function ZT(e){return So(e)?ng(ko(e[0]),e.slice(1)):ko(e)}function _7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!dO(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(!_P(d)){let p=ms(d.expression);if(E0(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=Roe(El(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(F0(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&$0(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(F0(d))}}}function _X(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!W0(s))return!1;let l=t.getCompilerOptions(),d=Md(l),p=typeof e=="string"?kw(nl(e,r.getCurrentDirectory(),ky(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,wxe,g7,gX,yX,Oxe,y7,vX,lUe=bt({"src/services/utilities.ts"(){"use strict";si(),Yd=Dy(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||{}),wxe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(gX||{}),yX=eUe(),Oxe=` -`,y7="anonymous function",vX=Um(wde,Nxe,Pxe,o7)}});function bX(e){let t=1,r=Xp(),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=gw(CP(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 Ie=Ge.indexOf(Sh);ne>Ie&&o.set(B,ve)}else o.set(B,ve)}}}let z=j===1&&mR(A)||A,ee=j===0||tO(z)?Vi(N):Bde(z,void 0),me=typeof ee=="string"?ee:ee[0],ge=typeof ee=="string"?void 0:ee[1],q=Yf(D.name),J=t++,re=yd(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,qc(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 zc(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((ee,me)=>E(ee,w[me].packageName));if(z.length){let ee=D(z,B,!!Y,j);if(ee!==void 0)return ee}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(S,A,N)=>m(S)&&m(A)?!1:s&&s!==A.path||N&&u7(S)!==u7(A)||!Vm(S.moduleAugmentations,A.moduleAugmentations)||!y(S,A)?(l.clear(),!0):(s=A.path,!1)};return R.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||R.checkDefined(S.moduleFile?B.getMergedSymbol(S.moduleFile.symbol):B.tryFindAmbientModule(S.moduleName)),z=S.symbol||K||R.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(yd(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(!Vm(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=ky(s),m=(d=s.getGlobalTypingsCacheLocation)==null?void 0:d.call(s),y=!!tS.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&cUe(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 cUe(e,t,r,i){let o=hm(t,l=>nc(l)==="node_modules"?l:void 0),s=o&&ai(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?Bv(y,d):void 0});Wxe(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=Js(),y=e.getTypeChecker();Wxe(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: ${Js()-m}`)}}function Wxe(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&&AE(h)){let y=ai(h);return hm(ai(m),E=>{let S=d.get(Fc(E));if(S)return S.some(A=>r.some(N=>N.test(h.replace(y,A))));y=ai(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 mO(e,t,r,i,o){var s,l,d,p,h;let m=Js();(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&&Fxe(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&&Fxe(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 ${Js()-m} ms`),y}function v7(e,t,r){let i=dUe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=b7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function Fxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!q2(e)&&!xie(e)}function dUe(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=uUe(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 uUe(e){return e.declarations&&Wl(e.declarations,t=>{var r;if(Ml(t))return(r=ii(Yl(t.expression),Fe))==null?void 0:r.text;if(Kd(t))return R.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var TX,AX,pUe=bt({"src/services/exportInfoMap.ts"(){"use strict";si(),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 zxe(){let e=Dy(99,!1);function t(i,o,s){return _Ue(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=yUe(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(mUe(e.getTokenStart(),D,y,EUe(l),S),D>=i.length){let w=fUe(e,l,Qs(p));w!==void 0&&(E=w)}}while(l!==1);function N(){switch(l){case 44:case 69:!jxe[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=Qs(p);D===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():R.assertEqual(l,17,"Should have been a template middle.")):(R.assertEqual(D,19,"Should have been an open brace"),p.pop())}break;default:if(!Wu(l))break;(d===25||Wu(d)&&Wu(l)&&!gUe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function fUe(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(Cv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return R.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function mUe(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 _Ue(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:hUe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function hUe(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 gUe(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 yUe(e){switch(e){case 3:return{prefix:`"\\ + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Te.flags=fs,Te.enclosingDeclaration=Fa}function Ze(Ct,xr,fi){let Kr=Wf(Ct),li=Nr(Ct),Za=mn(li,bu=>mt(bu,Te)),aa=Dp(Kr),Go=Nn(aa)?ga(aa):void 0,Ws=va(_s(Kr),bu=>Pc(bu,Go)),fs=Gh(0,Kr,Go,179),Fa=Gh(1,Kr,Go,180),Dd=yy(Kr,Go),Cd=Nn(aa)?[L.createHeritageClause(96,to(aa,bu=>iI(bu,111551)))]:void 0;Ks(L.createInterfaceDeclaration(void 0,Bm(Ct,xr),Za,Cd,[...Dd,...Fa,...fs,...Ws]),fi)}function vt(Ct){let xr=Oo(xp(Ct).values()),fi=es(Ct);if(fi!==Ct){let Kr=new Set(xr);for(let li of xp(fi).values())Ad(Ul(li))&111551||Kr.add(li);xr=Oo(Kr)}return Vr(xr,Kr=>zi(Kr)&&Yp(Kr.escapedName,99))}function $t(Ct){return oo(vt(Ct),xr=>!(Ad(Ul(xr))&111551))}function Hn(Ct,xr,fi){let Kr=vt(Ct),li=RL(Kr,Go=>Go.parent&&Go.parent===Ct?"real":"merged"),Za=li.get("real")||Xe,aa=li.get("merged")||Xe;if(Nn(Za)){let Go=Bm(Ct,xr);Br(Za,Go,fi,!!(Ct.flags&67108880))}if(Nn(aa)){let Go=Gn(Te.enclosingDeclaration),Ws=Bm(Ct,xr),fs=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(to(Vr(aa,Fa=>Fa.escapedName!=="export="),Fa=>{var Dd,Cd;let bu=Vi(Fa.escapedName),Jl=Bm(Fa,bu),Nd=Fa.declarations&&Mm(Fa);if(Go&&(Nd?Go!==Gn(Nd):!gt(Fa.declarations,Pp=>Gn(Pp)===Go))){(Cd=(Dd=Te.tracker)==null?void 0:Dd.reportNonlocalAugmentation)==null||Cd.call(Dd,Go,Ct,Fa);return}let qu=Nd&&Gp(Nd,!0);as(qu||Fa);let ad=qu?Bm(qu,Vi(qu.escapedName)):Jl;return L.createExportSpecifier(!1,bu===ad?void 0:ad,bu)})))]);Ks(L.createModuleDeclaration(void 0,L.createIdentifier(Ws),fs,32),0)}}function Ir(Ct,xr,fi){Ks(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Nve(Ct)?4096:0),Bm(Ct,xr),mn(Vr(_s(lr(Ct)),Kr=>!!(Kr.flags&8)),Kr=>{let li=Kr.declarations&&Kr.declarations[0]&&Q0(Kr.declarations[0])?abe(Kr.declarations[0]):void 0;return L.createEnumMember(Vi(Kr.escapedName),li===void 0?void 0:typeof li=="string"?L.createStringLiteral(li):L.createNumericLiteral(li))})),fi)}function bn(Ct,xr,fi,Kr){let li=Ko(Ct,0);for(let Za of li){let aa=ye(Za,262,Te,{name:L.createIdentifier(fi),privateSymbolVisitor:as,bundledImports:Cn});Ks(at(aa,hr(Za)),Kr)}if(!(xr.flags&1536&&xr.exports&&xr.exports.size)){let Za=Vr(_s(Ct),zi);Br(Za,fi,Kr,!0)}}function hr(Ct){if(Ct.declaration&&Ct.declaration.parent){if(pr(Ct.declaration.parent)&&Gl(Ct.declaration.parent)===5)return Ct.declaration.parent;if(Oi(Ct.declaration.parent)&&Ct.declaration.parent.parent)return Ct.declaration.parent.parent}return Ct.declaration}function Br(Ct,xr,fi,Kr){if(Nn(Ct)){let Za=RL(Ct,Jl=>!Nn(Jl.declarations)||gt(Jl.declarations,Nd=>Gn(Nd)===Gn(Te.enclosingDeclaration))?"local":"remote").get("local")||Xe,aa=Eh.createModuleDeclaration(void 0,L.createIdentifier(xr),L.createModuleBlock([]),32);ja(aa,Ii),aa.locals=oa(Ct),aa.symbol=Ct[0].parent;let Go=zr;zr=[];let Ws=Xt;Xt=!1;let fs={...Te,enclosingDeclaration:aa},Fa=Te;Te=fs,la(oa(Za),Kr,!0),Te=Fa,Xt=Ws;let Dd=zr;zr=Go;let Cd=mn(Dd,Jl=>kl(Jl)&&!Jl.isExportEquals&&Fe(Jl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Jl.expression,L.createIdentifier("default"))])):Jl),bu=oo(Cd,Jl=>$r(Jl,32))?mn(Cd,co):Cd;aa=L.updateModuleDeclaration(aa,aa.modifiers,aa.name,L.createModuleBlock(bu)),Ks(aa,fi)}}function zi(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&na(Ct.valueDeclaration)&&di(Ct.valueDeclaration.parent))}function wo(Ct){let xr=to(Ct,fi=>{let Kr=Te.enclosingDeclaration;Te.enclosingDeclaration=fi;let li=fi.expression;if(Vl(li)){if(Fe(li)&&vr(li)==="")return Za(void 0);let aa;if({introducesError:aa,node:li}=Lu(li,Te,as),aa)return Za(void 0)}return Za(L.createExpressionWithTypeArguments(li,mn(fi.typeArguments,aa=>Wl(Te,aa,as,Cn)||u(Ti(aa),Te))));function Za(aa){return Te.enclosingDeclaration=Kr,aa}});if(xr.length===Ct.length)return xr}function pa(Ct,xr,fi){var Kr,li;let Za=(Kr=Ct.declarations)==null?void 0:Kr.find(di),aa=Te.enclosingDeclaration;Te.enclosingDeclaration=Za||aa;let Go=Nr(Ct),Ws=mn(Go,eh=>mt(eh,Te)),fs=Up(Wf(Ct)),Fa=Dp(fs),Dd=Za&&cR(Za),Cd=Dd&&wo(Dd)||to(s_(fs),pL),bu=lr(Ct),Jl=!!((li=bu.symbol)!=null&&li.valueDeclaration)&&di(bu.symbol.valueDeclaration),Nd=Jl?Rp(bu):G,qu=[...Nn(Fa)?[L.createHeritageClause(96,mn(Fa,eh=>rI(eh,Nd,xr)))]:[],...Nn(Cd)?[L.createHeritageClause(119,Cd)]:[]],ad=w_t(fs,Fa,_s(fs)),Pp=Vr(ad,eh=>{let fL=eh.valueDeclaration;return!!fL&&!(au(fL)&&Ki(fL.name))}),Z_=gt(ad,eh=>{let fL=eh.valueDeclaration;return!!fL&&au(fL)&&Ki(fL.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Xe,Hb=va(Pp,eh=>ui(eh,!1,Fa[0])),Kb=va(Vr(_s(bu),eh=>!(eh.flags&4194304)&&eh.escapedName!=="prototype"&&!zi(eh)),eh=>ui(eh,!0,Nd)),Qgt=!Jl&&!!Ct.valueDeclaration&&or(Ct.valueDeclaration)&&!gt(Ko(bu,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Gh(1,bu,Nd,176),Zgt=yy(fs,Fa[0]);Te.enclosingDeclaration=aa,Ks(at(L.createClassDeclaration(void 0,xr,Ws,qu,[...Zgt,...Kb,...Qgt,...Hb,...Z_]),Ct.declarations&&Vr(Ct.declarations,eh=>Ac(eh)||ed(eh))[0]),fi)}function fa(Ct){return zl(Ct,xr=>{if(Qu(xr)||Jd(xr))return vr(xr.propertyName||xr.name);if(pr(xr)||kl(xr)){let fi=kl(xr)?xr.expression:xr.right;if(kr(fi))return vr(fi.name)}if(mb(xr)){let fi=No(xr);if(fi&&Fe(fi))return vr(fi)}})}function Ei(Ct,xr,fi){var Kr,li,Za,aa,Go,Ws;let fs=Mm(Ct);if(!fs)return R.fail();let Fa=es(Gp(fs,!0));if(!Fa)return;let Dd=gN(Fa)&&fa(Ct.declarations)||Vi(Fa.escapedName);Dd==="export="&&q&&(Dd="default");let Cd=Bm(Fa,Dd);switch(as(Fa),fs.kind){case 208:if(((li=(Kr=fs.parent)==null?void 0:Kr.parent)==null?void 0:li.kind)===260){let Nd=jn(Fa.parent||Fa,Te),{propertyName:qu}=fs;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,qu&&Fe(qu)?L.createIdentifier(vr(qu)):void 0,L.createIdentifier(xr))])),L.createStringLiteral(Nd),void 0),0);break}R.failBadSyntaxKind(((Za=fs.parent)==null?void 0:Za.parent)||fs,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Go=(aa=fs.parent)==null?void 0:aa.parent)==null?void 0:Go.kind)===226&&Lo(Vi(Ct.escapedName),Cd);break;case 260:if(kr(fs.initializer)){let Nd=fs.initializer,qu=L.createUniqueName(xr),ad=jn(Fa.parent||Fa,Te);Ks(L.createImportEqualsDeclaration(void 0,!1,qu,L.createExternalModuleReference(L.createStringLiteral(ad))),0),Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(xr),L.createQualifiedName(qu,Nd.name)),fi);break}case 271:if(Fa.escapedName==="export="&>(Fa.declarations,Nd=>Yi(Nd)&&Jf(Nd))){Ia(Ct);break}let bu=!(Fa.flags&512)&&!Oi(fs);Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(xr),bu?fo(Fa,Te,-1,!1):L.createExternalModuleReference(L.createStringLiteral(jn(Fa,Te)))),bu?fi:0);break;case 270:Ks(L.createNamespaceExportDeclaration(vr(fs.name)),0);break;case 273:{let Nd=jn(Fa.parent||Fa,Te),qu=Cn?L.createStringLiteral(Nd):fs.parent.moduleSpecifier;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,L.createIdentifier(xr),void 0),qu,fs.parent.attributes),0);break}case 274:{let Nd=jn(Fa.parent||Fa,Te),qu=Cn?L.createStringLiteral(Nd):fs.parent.parent.moduleSpecifier;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(L.createIdentifier(xr))),qu,fs.parent.attributes),0);break}case 280:Ks(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(xr)),L.createStringLiteral(jn(Fa,Te))),0);break;case 276:{let Nd=jn(Fa.parent||Fa,Te),qu=Cn?L.createStringLiteral(Nd):fs.parent.parent.parent.moduleSpecifier;Ks(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,xr!==Dd?L.createIdentifier(Dd):void 0,L.createIdentifier(xr))])),qu,fs.parent.parent.parent.attributes),0);break}case 281:let Jl=fs.parent.parent.moduleSpecifier;Jl&&((Ws=fs.propertyName)==null?void 0:Ws.escapedText)==="default"&&(Dd="default"),Lo(Vi(Ct.escapedName),Jl?Dd:Cd,Jl&&ss(Jl)?L.createStringLiteral(Jl.text):void 0);break;case 277:Ia(Ct);break;case 226:case 211:case 212:Ct.escapedName==="default"||Ct.escapedName==="export="?Ia(Ct):Lo(xr,Cd);break;default:return R.failBadSyntaxKind(fs,"Unhandled alias declaration kind in symbol serializer!")}}function Lo(Ct,xr,fi){Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==xr?xr:void 0,Ct)]),fi),0)}function Ia(Ct){var xr;if(Ct.flags&4194304)return!1;let fi=Vi(Ct.escapedName),Kr=fi==="export=",Za=Kr||fi==="default",aa=Ct.declarations&&Mm(Ct),Go=aa&&Gp(aa,!0);if(Go&&Nn(Go.declarations)&>(Go.declarations,Ws=>Gn(Ws)===Gn(Ii))){let Ws=aa&&(kl(aa)||pr(aa)?Tj(aa):Tie(aa)),fs=Ws&&Vl(Ws)?X_t(Ws):void 0,Fa=fs&&js(fs,-1,!0,!0,Ii);(Fa||Go)&&as(Fa||Go);let Dd=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,Za)zr.push(L.createExportAssignment(void 0,Kr,Cc(Go,Te,-1)));else if(fs===Ws&&fs)Lo(fi,vr(fs));else if(Ws&&ed(Ws))Lo(fi,Bm(Go,vl(Go)));else{let Cd=h_(fi,Ct);Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Cd),fo(Go,Te,-1,!1)),0),Lo(fi,Cd)}return Te.tracker.disableTrackSymbol=Dd,!0}else{let Ws=h_(fi,Ct),fs=Hp(lr(es(Ct)));if(Ds(fs,Ct))bn(fs,Ct,Ws,Za?0:32);else{let Fa=((xr=Te.enclosingDeclaration)==null?void 0:xr.kind)===267&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2,Dd=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Ws,void 0,Es(Te,fs,Ct,Ii,as,Cn))],Fa));Ks(Dd,Go&&Go.flags&4&&Go.escapedName==="export="?128:fi===Ws?32:0)}return Za?(zr.push(L.createExportAssignment(void 0,Kr,L.createIdentifier(Ws))),!0):fi!==Ws?(Lo(fi,Ws),!0):!1}}function Ds(Ct,xr){let fi=Gn(Te.enclosingDeclaration);return Lr(Ct)&48&&!Nn(gu(Ct))&&!PS(Ct)&&!!(Nn(Vr(_s(Ct),zi))||Nn(Ko(Ct,0)))&&!Nn(Ko(Ct,1))&&!yr(xr,Ii)&&!(Ct.symbol&>(Ct.symbol.declarations,Kr=>Gn(Kr)!==fi))&&!gt(_s(Ct),Kr=>h8(Kr.escapedName))&&!gt(_s(Ct),Kr=>gt(Kr.declarations,li=>Gn(li)!==fi))&&oo(_s(Ct),Kr=>Yp(vl(Kr),ce)?Kr.flags&98304?Cb(Kr)===MS(Kr):!0:!1)}function ps(Ct,xr,fi){return function(li,Za,aa){var Go,Ws,fs,Fa,Dd;let Cd=Tf(li),bu=!!(Cd&2);if(Za&&li.flags&2887656)return[];if(li.flags&4194304||li.escapedName==="constructor"||aa&&ha(aa,li.escapedName)&&m_(ha(aa,li.escapedName))===m_(li)&&(li.flags&16777216)===(ha(aa,li.escapedName).flags&16777216)&&py(lr(li),Ue(aa,li.escapedName)))return[];let Jl=Cd&-1025|(Za?256:0),Nd=Pn(li,Te),qu=(Go=li.declarations)==null?void 0:Go.find(Um(jo,Pv,Oi,_p,pr,kr));if(li.flags&98304&&fi){let ad=[];if(li.flags&65536){let Pp=li.declarations&&gn(li.declarations,Z_=>{if(Z_.kind===178)return Z_;if(ra(Z_)&&vT(Z_))return gn(Z_.arguments[2].properties,Hb=>{let Kb=No(Hb);if(Kb&&Fe(Kb)&&vr(Kb)==="set")return Hb})});R.assert(!!Pp);let yx=Fs(Pp)?lm(Pp).parameters[0]:void 0;ad.push(at(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Jl),Nd,[L.createParameterDeclaration(void 0,void 0,yx?sn(yx,At(yx),Te):"value",void 0,bu?void 0:Es(Te,lr(li),li,Ii,as,Cn))],void 0),((Ws=li.declarations)==null?void 0:Ws.find(Py))||qu))}if(li.flags&32768){let Pp=Cd&2;ad.push(at(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Jl),Nd,[],Pp?void 0:Es(Te,lr(li),li,Ii,as,Cn),void 0),((fs=li.declarations)==null?void 0:fs.find(Lv))||qu))}return ad}else if(li.flags&98311)return at(Ct(L.createModifiersFromModifierFlags((m_(li)?8:0)|Jl),Nd,li.flags&16777216?L.createToken(58):void 0,bu?void 0:Es(Te,MS(li),li,Ii,as,Cn),void 0),((Fa=li.declarations)==null?void 0:Fa.find(Um(jo,Oi)))||qu);if(li.flags&8208){let ad=lr(li),Pp=Ko(ad,0);if(Jl&2)return at(Ct(L.createModifiersFromModifierFlags((m_(li)?8:0)|Jl),Nd,li.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Dd=li.declarations)==null?void 0:Dd.find(Fs))||Pp[0]&&Pp[0].declaration||li.declarations&&li.declarations[0]);let yx=[];for(let Z_ of Pp){let Hb=ye(Z_,xr,Te,{name:Nd,questionToken:li.flags&16777216?L.createToken(58):void 0,modifiers:Jl?L.createModifiersFromModifierFlags(Jl):void 0}),Kb=Z_.declaration&&F2(Z_.declaration.parent)?Z_.declaration.parent:Z_.declaration;yx.push(at(Hb,Kb))}return yx}return R.fail(`Unhandled class member kind! ${li.__debugFlags||li.flags}`)}}function Pc(Ct,xr){return Ai(Ct,!1,xr)}function Gh(Ct,xr,fi,Kr){let li=Ko(xr,Ct);if(Ct===1){if(!fi&&oo(li,Go=>Nn(Go.parameters)===0))return[];if(fi){let Go=Ko(fi,1);if(!Nn(Go)&&oo(li,Ws=>Nn(Ws.parameters)===0))return[];if(Go.length===li.length){let Ws=!1;for(let fs=0;fsu(li,Te)),Kr=Cc(Ct.target.symbol,Te,788968)):Ct.symbol&&nn(Ct.symbol,Ii,xr)&&(Kr=Cc(Ct.symbol,Te,788968)),Kr)return L.createExpressionWithTypeArguments(Kr,fi)}function pL(Ct){let xr=iI(Ct,788968);if(xr)return xr;if(Ct.symbol)return L.createExpressionWithTypeArguments(Cc(Ct.symbol,Te,788968),void 0)}function h_(Ct,xr){var fi,Kr;let li=xr?ba(xr):void 0;if(li&&Te.remappedSymbolNames.has(li))return Te.remappedSymbolNames.get(li);xr&&(Ct=gx(xr,Ct));let Za=0,aa=Ct;for(;(fi=Te.usedSymbolNames)!=null&&fi.has(Ct);)Za++,Ct=`${aa}_${Za}`;return(Kr=Te.usedSymbolNames)==null||Kr.add(Ct),li&&Te.remappedSymbolNames.set(li,Ct),Ct}function gx(Ct,xr){if(xr==="default"||xr==="__class"||xr==="__function"){let fi=Te.flags;Te.flags|=16777216;let Kr=XE(Ct,Te);Te.flags=fi,xr=Kr.length>0&&P2(Kr.charCodeAt(0))?Yf(Kr):Kr}return xr==="default"?xr="_default":xr==="export="&&(xr="_exports"),xr=Yp(xr,ce)&&!PI(xr)?xr:"_"+xr.replace(/[^a-zA-Z0-9]/g,"_"),xr}function Bm(Ct,xr){let fi=ba(Ct);return Te.remappedSymbolNames.has(fi)?Te.remappedSymbolNames.get(fi):(xr=gx(Ct,xr),Te.remappedSymbolNames.set(fi,xr),xr)}}}function Mh(n,a,c=16384,u){return u?_(u).getText():_N(_);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,PA(c)|70221824|512)),M=oS(),W=a&&Gn(a);return M.writeNode(4,T,W,g),g}}function nC(n){let a=[],c=0;for(let u=0;uNo(T)?T:void 0),g=_&&No(_);if(_&&g){if(ra(_)&&vT(_))return vl(n);if(Ya(g)&&!(Al(n)&4096)){let T=qi(n).nameType;if(T&&T.flags&384){let M=f8(n,a);if(M!==void 0)return M}}return xs(g)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return xs(_.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=f8(n,a);return u!==void 0?u:vl(n)}function o_(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 o_(n.parent.parent);case 260:if($o(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(I0(n))return!0;let c=X(n);return!(ite(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Rh(c):o_(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 o_(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 MM(n,a){let c;n.parent&&n.parent.kind===277?c=gl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=jE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(ba(c)),g(c.declarations)),u;function g(T){gn(T,M=>{let W=gA(M)||M;if(a?Qr(M).isVisible=!0:(u=u||[],yf(u,W)),tR(M)){let V=M.moduleReference,te=Fp(V),ye=gl(M,te.escapedText,901119,void 0,void 0,!1);ye&&_&&Jb(_,ba(ye))&&g(ye.declarations)}})}}function Lh(n,a){let c=ix(n,a);if(c>=0){let{length:u}=md;for(let _=c;_=W1;c--){if(m8(md[c],kE[c]))return-1;if(md[c]===n&&kE[c]===a)return c}return-1}function m8(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 R.assertNever(a)}function H_(){return md.pop(),kE.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 Ae(n){let a=$s(Cu(n));return a.typeParameters?cv(a,mn(a.typeParameters,c=>G)):a}function Ue(n,a){let c=ha(n,a);return c?lr(c):void 0}function St(n,a){var c;let u;return Ue(n,a)||(u=(c=sx(n,a))==null?void 0:c.type)&&op(u,!0,!0)}function xt(n){return n&&(n.flags&1)!==0}function Ut(n){return n===pt||!!(n.flags&1&&n.aliasSymbol)}function wr(n,a){if(a!==0)return LA(n,!1,a);let c=Tr(n);return c&&qi(c).type||LA(n,!1,a)}function Wi(n,a,c){if(n=uc(n,W=>!(W.flags&98304)),n.flags&131072)return Na;if(n.flags&1048576)return cl(n,W=>Wi(W,a,c));let u=ei(mn(a,uv)),_=[],g=[];for(let W of _s(n)){let V=mC(W,8576);!ya(V,u)&&!(Tf(W)&6)&&NZ(W)?_.push(W):g.push(V)}if(VA(n)||jA(u)){if(g.length&&(u=ei([u,...g])),u.flags&131072)return n;let W=rst();return W?pC(W,[n,u]):pt}let T=oa();for(let W of _)T.set(W.escapedName,jge(W,!1));let M=Ps(c,T,Xe,Xe,gu(n));return M.objectFlags|=4194304,M}function Ci(n){return!!(n.flags&465829888)&&Dl(Bd(n)||un,32768)}function _i(n){let a=Fm(n,Ci)?cl(n,c=>c.flags&465829888?cy(c):c):n;return um(a,524288)}function Xi(n,a){let c=ds(n);return c?jb(c,a):a}function ds(n){let a=Rs(n);if(a&&V2(a)&&a.flowNode){let c=$a(n);if(c){let u=at(Eh.createStringLiteral(c),n),_=Yu(a)?a:Eh.createParenthesizedExpression(a),g=at(Eh.createElementAccessExpression(_,u),n);return ja(u,g),ja(g,n),_!==a&&ja(_,g),g.flowNode=a.flowNode,g}}}function Rs(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return ds(a);case 209:return ds(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=uv(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&&vg(n,c,!1)}function vg(n,a,c){if(xt(a))return a;let u=n.parent;J&&n.flags&33554432&&L0(n)?a=_y(a):J&&u.parent.initializer&&!dm(j8e(u.parent.initializer),65536)&&(a=um(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=d_(a),a.flags&2||!O5(a))return Ve(n,f.Rest_types_may_only_be_created_from_object_types),pt;let g=[];for(let T of u.elements)T.dotDotDotToken||g.push(T.propertyName||T.name);_=Wi(a,g,n.symbol)}else{let g=n.propertyName||n.name,T=uv(g),M=Cp(a,T,32,g);_=Xi(n,M)}else{let g=_v(65|(n.dotDotDotToken?0:128),a,Me,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let M=cl(a,W=>W.flags&58982400?cy(W):W);_=ap(M,Oa)?cl(M,W=>jM(W,T)):Gd(g)}else if(fv(a)){let M=u_(T),W=32|(c||eL(n)?16:0),V=wb(a,M,W,n.name)||pt;_=Xi(n,V)}else _=g}return n.initializer?vd(Ox(n))?J&&!dm(nL(n,0),16777216)?_i(_):_:wee(n,ei([_i(_),nL(n,0)],2)):_}function iy(n){let a=rE(n);if(a)return Ti(a)}function oy(n){let a=ms(n,!0);return a.kind===106||a.kind===80&&Wm(a)===ze}function Ib(n){let a=ms(n,!0);return a.kind===209&&a.elements.length===0}function op(n,a=!1,c=!0){return J&&c?Gb(n,a):n}function LA(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){let T=J_(rve(po(n.parent.parent.expression,c)));return T.flags&4456448?xOe(T):Ne}if(Oi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return lG(T)||G}if($o(n.parent))return K_(n);let u=jo(n)&&!I_(n)||_p(n)||Rae(n),_=a&&nP(n),g=eo(n);if(JV(n))return g?xt(g)||g===un?g:pt:he?un:G;if(g)return op(g,u,_);if((fe||or(n))&&Oi(n)&&!$o(n.name)&&!(ite(n)&32)&&!(n.flags&33554432)){if(!(qS(n)&6)&&(!n.initializer||oy(n.initializer)))return et;if(n.initializer&&Ib(n.initializer))return Jc}if(To(n)){let T=n.parent;if(T.kind===178&&lC(T)){let V=dl(Tr(n.parent),177);if(V){let te=lm(V),ye=pbe(T);return ye&&n===ye?(R.assert(!ye.type),lr(te.thisParameter)):us(te)}}let M=Cat(T,n);if(M)return M;let W=n.symbol.escapedName==="this"?pWe(T):fWe(n);if(W)return op(W,!1,_)}if(pT(n)&&n.initializer){if(or(n)&&!To(n)){let M=Ga(n,Tr(n),L2(n));if(M)return M}let T=wee(n,nL(n,c));return op(T,u,_)}if(jo(n)&&(fe||or(n)))if(mc(n)){let T=Vr(n.parent.members,Il),M=T.length?ay(n.symbol,T):du(n)&128?jZ(n.symbol):void 0;return M&&op(M,!0,_)}else{let T=ny(n.parent),M=T?xb(n.symbol,T):du(n)&128?jZ(n.symbol):void 0;return M&&op(M,!0,_)}if(M_(n))return wn;if($o(n.name))return C(n.name,!1,!0)}function rC(n){if(n.valueDeclaration&&pr(n.valueDeclaration)){let a=qi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!kM(n)&&oo(n.declarations,c=>pr(c)&&mee(c)&&(c.left.kind!==212||$p(c.left.argumentExpression))&&!dc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function LM(n){let a=n.valueDeclaration;return a&&jo(a)&&!vd(a)&&!a.initializer&&(fe||or(a))}function kM(n){if(n.declarations)for(let a of n.declarations){let c=wu(a,!1,!1);if(c&&(c.kind===176||$_(c)))return c}}function YE(n){let a=Gn(n.declarations[0]),c=Vi(n.escapedName),u=n.declarations.every(g=>or(g)&&Ls(g)&&Qh(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,jb(_,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=iC(_,n);if(fe&&(g===et||g===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(g)),!ap(g,B5))return Z8(g)}}function xb(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 _=iC(u,n);return fe&&(_===et||_===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),Vn(_)),ap(_,B5)?void 0:Z8(_)}function iC(n,a){let c=a?.valueDeclaration&&(!LM(a)||du(a.valueDeclaration)&128)&&jZ(a)||Me;return jb(n,et,c)}function jp(n,a){let c=xI(n.valueDeclaration);if(c){let M=or(c)?nE(c):void 0;return M&&M.typeExpression?Ti(M.typeExpression):n.valueDeclaration&&Ga(n.valueDeclaration,n,c)||BS(rc(c))}let u,_=!1,g=!1;if(rC(n)&&(u=xb(n,kM(n))),!u){let M;if(n.declarations){let W;for(let V of n.declarations){let te=pr(V)||ra(V)?V:Ls(V)?pr(V.parent)?V.parent:V:void 0;if(!te)continue;let ye=Ls(te)?W2(te):Gl(te);(ye===4||pr(te)&&mee(te,ye))&&(wM(te)?_=!0:g=!0),ra(te)||(W=dc(W,te,n,V)),W||(M||(M=[])).push(pr(te)||ra(te)?$E(n,a,te,ye):Wr)}u=W}if(!u){if(!Nn(M))return pt;let W=_&&n.declarations?Rb(M,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:M;u=ei(V)}}let T=Hp(op(u,!1,g&&!_));return n.valueDeclaration&&or(n.valueDeclaration)&&uc(T,M=>!!(M.flags&-98305))===Wr?(l0(n.valueDeclaration,G),G):T}function Ga(n,a,c){var u,_;if(!or(n)||!c||!La(c)||c.properties.length)return;let g=oa();for(;pr(n)||kr(n);){let W=pf(n);(u=W?.exports)!=null&&u.size&&r_(g,W.exports),n=pr(n)?n.parent:n.parent.parent}let T=pf(n);(_=T?.exports)!=null&&_.size&&r_(g,T.exports);let M=Ps(a,g,Xe,Xe,Xe);return M.objectFlags|=4096,M}function dc(n,a,c,u){var _;let g=vd(a.parent);if(g){let T=Hp(Ti(g));if(n)!Ut(n)&&!Ut(T)&&!py(n,T)&&g6e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=xS(c.parent);if(T.valueDeclaration){let M=vd(T.valueDeclaration);if(M){let W=ha(Ti(M),c.escapedName);if(W)return Cb(W)}}}return n}function $E(n,a,c,u){if(ra(c)){if(a)return lr(a);let T=rc(c.arguments[2]),M=Ue(T,"value");if(M)return M;let W=Ue(T,"get");if(W){let te=eI(W);if(te)return us(te)}let V=Ue(T,"set");if(V){let te=eI(V);if(te)return Ave(te)}return G}if(ox(c.left,c.right))return G;let _=u===1&&(kr(c.left)||Xs(c.left))&&(Qh(c.left.expression)||Fe(c.left.expression)&&yT(c.left.expression)),g=a?lr(a):_?vu(rc(c.right)):BS(rc(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=c_(g),M=oa();EF(T.members,M);let W=M.size;a&&!a.exports&&(a.exports=oa()),(a||n).exports.forEach((te,ye)=>{var _e;let je=M.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,au))==null?void 0:_e.name)||je.valueDeclaration;Ma(Ve(te.valueDeclaration,f.Duplicate_identifier_0,At),Pr(rn,f._0_was_also_declared_here,At)),Ma(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([lr(te),lr(je)]),mt.valueDeclaration=je.valueDeclaration,mt.declarations=bo(je.declarations,te.declarations),M.set(ye,mt)}else M.set(ye,om(te,je));else M.set(ye,te)});let V=Ps(W!==M.size?void 0:T.symbol,M,T.callSignatures,T.constructSignatures,T.indexInfos);if(W===M.size&&(g.aliasSymbol&&(V.aliasSymbol=g.aliasSymbol,V.aliasTypeArguments=g.aliasTypeArguments),Lr(g)&4)){V.aliasSymbol=g.symbol;let te=Hs(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)?(l0(c,tc),tc):g}function ox(n,a){return kr(n)&&n.expression.kind===110&&xP(a,c=>Id(n,c))}function wM(n){let a=wu(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!F2(a.parent)}function Rb(n,a){return R.assert(n.length===a.length),n.filter((c,u)=>{let _=a[u],g=pr(_)?_:pr(_.parent)?_.parent:void 0;return g&&wM(g)})}function OM(n,a,c){if(n.initializer){let u=$o(n.name)?C(n.name,!0,!1):un;return op(wee(n,nL(n,c?0:1,u)))}return $o(n.name)?C(n.name,a,c):(c&&!gr(n)&&l0(n,G),a?hn:G)}function nr(n,a,c){let u=oa(),_,g=131200;gn(n.elements,M=>{let W=M.propertyName||M.name;if(M.dotDotDotToken){_=Wh(Ne,G,!1);return}let V=uv(W);if(!Qf(V)){g|=512;return}let te=Zf(V),ye=4|(M.initializer?16777216:0),_e=Ka(ye,te);_e.links.type=OM(M,a,c),_e.links.bindingElement=M,u.set(_e.escapedName,_e)});let T=Ps(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,_=Qs(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return ce>=2?dOe(G):tc;let T=mn(u,te=>jc(te)?G:OM(te,a,c)),M=mW(u,te=>!(te===g||jc(te)||eL(te)),u.length-1)+1,W=mn(u,(te,ye)=>te===g?4:ye>=M?2:1),V=Fh(T,W);return a&&(V=Hwe(V),V.pattern=n,V.objectFlags|=131072),V}function C(n,a=!1,c=!1){return n.kind===206?nr(n,a,c):v(n,a,c)}function F(n,a){return Ht(LA(n,!0,0),n,a)}function le(n){let a=Qr(n);if(!a.resolvedType){let c=Ka(4096,"__importAttributes"),u=oa();gn(n.elements,g=>{let T=Ka(4,K6(g));T.parent=c,T.links.type=Y_t(g),T.links.target=T,u.set(T.escapedName,T)});let _=Ps(c,u,Xe,Xe,Xe);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Ke(n){let a=pf(n),c=Hat(!1);return c&&a&&a===c}function Ht(n,a,c){return n?(n.flags&4096&&Ke(a.parent)&&(n=Uge(a)),c&&ZZ(a,n),n.flags&8192&&(Xa(a)||!a.type)&&n.symbol!==Tr(a)&&(n=xi),Hp(n)):(n=To(a)&&a.dotDotDotToken?tc:G,c&&(gr(a)||l0(a,n)),n)}function gr(n){let a=A_(n),c=a.kind===169?a.parent:a;return rG(c)}function eo(n){let a=vd(n);if(a)return Ti(a)}function Us(n){let a=n.valueDeclaration;return a?(Xa(a)&&(a=Ox(a)),To(a)?OZ(a.parent):!1):!1}function a_(n,a){let c=qi(n);if(!c.type){let u=Db(n,a);return!c.type&&!Us(n)&&!a&&(c.type=u),u}return c.type}function Db(n,a){if(n.flags&4194304)return Ae(n);if(n===_t)return G;if(n.flags&134217728&&n.valueDeclaration){let _=Tr(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=oa();return T.set("exports",g),Ps(n,T,Xe,Xe,Xe)}R.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Yi(c)&&Jf(c))return c.statements.length?Hp(BS(po(c.statements[0].expression))):Na;if(Pv(c))return ZE(n);if(!Lh(n,0))return n.flags&512&&!(n.flags&67108864)?WM(n):Xa(c)&&a===1?pt:oC(n);let u;if(c.kind===277)u=Ht(eo(c)||rc(c.expression),c);else if(pr(c)||or(c)&&(ra(c)||(kr(c)||$F(c))&&pr(c.parent)))u=jp(n);else if(kr(c)||Xs(c)||Fe(c)||ss(c)||mp(c)||Ac(c)||Tc(c)||Kl(c)&&!bm(c)||hh(c)||Yi(c)){if(n.flags&9136)return WM(n);u=pr(c.parent)?jp(n):eo(c)||G}else if(hc(c))u=eo(c)||jFe(c);else if(M_(c))u=eo(c)||IWe(c);else if(Zu(c))u=eo(c)||iL(c.name,0);else if(bm(c))u=eo(c)||UFe(c,0);else if(To(c)||jo(c)||_p(c)||Oi(c)||Xa(c)||cN(c))u=F(c,!0);else if(gE(c))u=WM(n);else if(Q0(c))u=cZ(n);else return R.fail("Unhandled declaration kind! "+R.formatSyntaxKind(c.kind)+" for "+R.formatSymbol(n));return H_()?u:n.flags&512&&!(n.flags&67108864)?WM(n):Xa(c)&&a===1?u:oC(n)}function Om(n){if(n)switch(n.kind){case 177:return $f(n);case 178:return Lie(n);case 172:return R.assert(I_(n)),vd(n)}}function QE(n){let a=Om(n);return a&&Ti(a)}function sZ(n){let a=pbe(n);return a&&a.symbol}function Vhe(n){return r0(lm(n))}function ZE(n){let a=qi(n);if(!a.type){if(!Lh(n,0))return pt;let c=dl(n,177),u=dl(n,178),_=ri(dl(n,172),ku),g=c&&or(c)&&iy(c)||QE(c)||QE(u)||QE(_)||c&&c.body&&Mee(c)||_&&_.initializer&&F(_,!0);g||(u&&!rG(u)?_d(fe,u,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Si(n)):c&&!rG(c)?_d(fe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Si(n)):_&&!rG(_)&&_d(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 JB(n){let a=qi(n);if(!a.writeType){if(!Lh(n,8))return pt;let c=dl(n,178)??ri(dl(n,172),ku),u=QE(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||ZE(n)}return a.writeType}function lZ(n){let a=Rp(Wf(n));return a.flags&8650752?a:a.flags&2097152?Gr(a.types,c=>!!(c.flags&8650752)):void 0}function WM(n){let a=qi(n),c=a;if(!a.type){let u=n.valueDeclaration&&Nee(n.valueDeclaration,!1);if(u){let _=yve(n,u);_&&(n=_,a=_.links)}c.type=a.type=qB(n)}return a.type}function qB(n){let a=n.valueDeclaration;if(n.flags&1536&&gN(n))return G;if(a&&(a.kind===226||Ls(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(!Lh(n,0))return pt;let _=es(n.exports.get("export=")),g=jp(_,_===u?void 0:u);return H_()?g:oC(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?Gb(c,!0):c}function cZ(n){let a=qi(n);return a.type||(a.type=dwe(n))}function dZ(n){let a=qi(n);if(!a.type){if(!Lh(n,0))return pt;let c=Fc(n),u=n.declarations&&Gp(Mm(n),!0),_=zl(u?.declarations,g=>kl(g)?eo(g):void 0);if(a.type=u?.declarations&&Xee(u.declarations)&&n.declarations.length?YE(u):Xee(n.declarations)?et:_||(Ad(c)&111551?lr(c):pt),!H_())return oC(u??n),a.type=pt}return a.type}function jhe(n){let a=qi(n);return a.type||(a.type=io(lr(a.target),a.mapper))}function Uhe(n){let a=qi(n);return a.writeType||(a.writeType=io(MS(a.target),a.mapper))}function oC(n){let a=n.valueDeclaration;if(a){if(vd(a))return Ve(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),pt;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||(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):ga(a.deferralConstituents)),a.type}function XB(n){let a=qi(n);return!a.writeType&&a.deferralWriteConstituents&&(R.assertIsDefined(a.deferralParent),R.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):ga(a.deferralWriteConstituents)),a.writeType}function MS(n){let a=Al(n);return n.flags&4?a&2?a&65536?XB(n)||uZ(n):n.links.writeType||n.links.type:Vb(lr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Uhe(n):JB(n):lr(n)}function lr(n,a){let c=Al(n);return c&65536?uZ(n):c&1?jhe(n):c&262144?dat(n):c&8192?Act(n):n.flags&7?a_(n,a):n.flags&9136?WM(n):n.flags&8?cZ(n):n.flags&98304?ZE(n):n.flags&2097152?dZ(n):pt}function Cb(n){return Vb(lr(n),!!(n.flags&16777216))}function Nb(n,a){return n!==void 0&&a!==void 0&&(Lr(n)&4)!==0&&n.target===a}function sv(n){return Lr(n)&4?n.target:n}function aC(n,a){return c(n);function c(u){if(Lr(u)&7){let _=sv(u);return _===a||gt(Dp(_),c)}else if(u.flags&2097152)return gt(u.types,c);return!1}}function e0(n,a){for(let c of a)n=xg(n,kA(Tr(c)));return n}function Rn(n,a){for(;;){if(n=n.parent,n&&pr(n)){let c=Gl(n);if(c===6||c===3){let u=Tr(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,kA(Tr(n.typeParameter)));if(n.kind===194)return bo(u,WOe(n));let _=e0(u,Cv(n)),g=a&&(n.kind===263||n.kind===231||n.kind===264||$_(n))&&Wf(Tr(n)).thisType;return g?Tn(_,g):_}case 348:let c=U2(n);c&&(n=c.valueDeclaration);break;case 327:{let u=Rn(n,a);return n.tags?e0(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 R.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)||G2(c))&&(a=e0(a,Cv(c)));return a}function Fi(n){return bo(Or(n),Nr(n))}function Mi(n){let a=Ko(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Xd(c)){let u=q5(c.parameters[0]);return xt(u)||T5(u)===G}}return!1}function ts(n){if(Ko(n,1).length>0)return!0;if(n.flags&8650752){let a=Bd(n);return!!a&&Mi(a)}return!1}function Ts(n){let a=Og(n.symbol);return a&&S_(a)}function eu(n,a,c){let u=Nn(a),_=or(c);return Vr(Ko(n,1),g=>(_||u>=Oh(g.typeParameters))&&u<=Nn(g.typeParameters))}function kh(n,a,c){let u=eu(n,a,c),_=mn(a,Ti);return Mc(u,g=>gt(g.typeParameters)?b8(g,_,or(c)):g)}function Rp(n){if(!n.resolvedBaseConstructorType){let a=Og(n.symbol),c=a&&S_(a),u=Ts(n);if(!u)return n.resolvedBaseConstructorType=Me;if(!Lh(n,1))return pt;let _=po(u.expression);if(c&&u!==c&&(R.assert(!c.typeArguments),po(c.expression)),_.flags&2621440&&c_(_),!H_())return Ve(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Si(n.symbol)),n.resolvedBaseConstructorType=pt;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=BM(_),M=un;if(T){let W=Ko(T,1);W[0]&&(M=us(W[0]))}_.symbol.declarations&&Ma(g,Pr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Si(_.symbol),Vn(M)))}return n.resolvedBaseConstructorType=pt}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function s_(n){let a=Xe;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=cR(c);if(u)for(let _ of u){let g=Ti(_);Ut(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(Lh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[sC(n)]:n.symbol.flags&96?(n.symbol.flags&32&&_8(n),n.symbol.flags&64&&zot(n)):R.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 sC(n){let a=Mc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?Cp(c,It):c);return Gd(ei(a||Xe),n.readonly)}function _8(n){n.resolvedBaseTypes=J6;let a=Mu(Rp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Xe;let c=Ts(n),u,_=a.symbol?$s(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Fot(_))u=Kwe(c,a.symbol);else if(a.flags&1)u=a;else{let T=kh(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=us(T[0])}if(Ut(u))return n.resolvedBaseTypes=Xe;let g=d_(u);if(!YB(g)){let T=ige(void 0,u),M=Fo(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,M)),n.resolvedBaseTypes=Xe}return n===g||aC(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===J6&&(n.members=void 0),n.resolvedBaseTypes=[g])}function Fot(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Hs(n);return a[c].symbol!==u[c].symbol}return!0}function YB(n){if(n.flags&262144){let a=Bd(n);if(a)return YB(a)}return!!(n.flags&67633153&&!Hu(n)||n.flags&2097152&&oo(n.types,YB))}function zot(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Xe,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&RN(a))for(let c of RN(a)){let u=d_(Ti(c));Ut(u)||(YB(u)?n!==u&&!aC(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 Bot(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=RN(a);if(c){for(let u of c)if(Vl(u.expression)){let _=js(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,_=yve(n,n.valueDeclaration&&Dpt(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=kf(u,n),T=Or(n),M=Nr(n);(T||M||u===1||!Bot(n))&&(g.objectFlags|=4,g.typeParameters=bo(T,M),g.outerTypeParameters=T,g.localTypeParameters=M,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 swe(n){var a;let c=qi(n);if(!c.declaredType){if(!Lh(n,2))return pt;let u=R.checkDefined((a=n.declarations)==null?void 0:a.find(G2),"Type alias symbol with no valid declaration found"),_=qf(u)?u.typeExpression:u.type,g=_?Ti(_):pt;if(H_()){let T=Nr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(cm(T),g))}else g=pt,u.kind===347?Ve(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):Ve(au(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?$s(Cu(n.symbol)):n}function lwe(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(lC(g)){let T=Tr(g),M=DC(g),W=ux(M!==void 0?olt(M,ba(n),T):cwe(T));qi(T).declaredType=W,c.push(vu(W))}}}let u=c.length?ei(c,1,n,void 0):cwe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function cwe(n){let a=yg(32,n),c=yg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function dwe(n){let a=qi(n);if(!a.declaredType){let c=lwe(Cu(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function kA(n){let a=qi(n);return a.declaredType||(a.declaredType=mf(n))}function Got(n){let a=qi(n);return a.declaredType||(a.declaredType=$s(Fc(n)))}function $s(n){return uwe(n)||pt}function uwe(n){if(n.flags&96)return Wf(n);if(n.flags&524288)return swe(n);if(n.flags&262144)return kA(n);if(n.flags&384)return lwe(n);if(n.flags&8)return dwe(n);if(n.flags&2097152)return Got(n)}function $B(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 $B(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every($B)}return!1}function Vot(n){let a=Fx(n);return!a||$B(a)}function pwe(n){let a=vd(n);return a?$B(a):!kv(n)}function jot(n){let a=$f(n),c=Cv(n);return(n.kind===176||!!a&&$B(a))&&n.parameters.every(pwe)&&c.every(Vot)}function Uot(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return pwe(a);case 174:case 173:case 176:case 177:case 178:return jot(a)}}return!1}function fwe(n,a,c){let u=oa();for(let _ of n)u.set(_.escapedName,c&&Uot(_)?_:Jge(_,a));return u}function mwe(n,a){for(let c of a){if(_we(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&pr(u.valueDeclaration)&&!rC(u)&&!lie(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function _we(n){return!!n.valueDeclaration&&su(n.valueDeclaration)&&na(n.valueDeclaration)}function Hhe(n){if(!n.declaredProperties){let a=n.symbol,c=Pb(a);n.declaredProperties=JE(c),n.declaredCallSignatures=Xe,n.declaredConstructSignatures=Xe,n.declaredIndexInfos=Xe,n.declaredCallSignatures=LS(c.get("__call")),n.declaredConstructSignatures=LS(c.get("__new")),n.declaredIndexInfos=Vwe(a)}return n}function Khe(n){if(!Ya(n)&&!Xs(n))return!1;let a=Ya(n)?n.expression:n.argumentExpression;return Vl(a)&&Qf(Ya(n)?Sg(n):rc(a))}function h8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function QB(n){let a=No(n);return!!a&&Khe(a)}function lC(n){return!Fv(n)||QB(n)}function Hot(n){return i6(n)&&!Khe(n)}function Kot(n,a,c){R.assert(!!(Al(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 hwe(n,a,c,u){R.assert(!!u.symbol,"The member is expected to have a symbol.");let _=Qr(u);if(!_.resolvedSymbol){_.resolvedSymbol=u.symbol;let g=pr(u)?u.left:u.name,T=Xs(g)?rc(g.argumentExpression):Sg(g);if(Qf(T)){let M=Zf(T),W=u.symbol.flags,V=c.get(M);V||c.set(M,V=Ka(0,M,4096));let te=a&&a.get(M);if(!(n.flags&32)&&(V.flags&fA(W)||te)){let ye=te?bo(te.declarations,V.declarations):V.declarations,_e=!(T.flags&8192)&&Vi(M)||xs(g);gn(ye,je=>Ve(No(je)||je,f.Property_0_was_also_declared_here,_e)),Ve(g||u,f.Duplicate_property_0,_e),V=Ka(0,M,4096)}return V.links.nameType=T,Kot(V,u,W),V.parent?R.assert(V.parent===n,"Existing symbol parent should match new one"):V.parent=n,_.resolvedSymbol=V}}return _.resolvedSymbol}function Jhe(n,a){let c=qi(n);if(!c[a]){let u=a==="resolvedExports",_=u?n.flags&1536?DA(n).exports:n.exports:n.members;c[a]=_||K;let g=oa();for(let W of n.declarations||Xe){let V=eie(W);if(V)for(let te of V)u===mc(te)&&QB(te)&&hwe(n,_,g,te)}let T=xS(n).assignmentDeclarationMembers;if(T){let W=Oo(T.values());for(let V of W){let te=Gl(V),ye=te===3||pr(V)&&mee(V,te)||te===9||te===6;u===!ye&&QB(V)&&hwe(n,_,g,V)}}let M=q1(_,g);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let W of n.declarations){let V=qi(W.symbol)[a];if(!M){M=V;continue}V&&V.forEach((te,ye)=>{let _e=M.get(ye);if(!_e)M.set(ye,te);else{if(_e===te)return;M.set(ye,om(_e,te))}})}c[a]=M||K}return c[a]}function Pb(n){return n.flags&6256?Jhe(n,"resolvedMembers"):n.members||K}function fZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=qi(n);if(!a.lateSymbol&>(n.declarations,QB)){let c=es(n.parent);gt(n.declarations,mc)?xp(c):Pb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Up(n,a,c){if(Lr(n)&4){let u=n.target,_=Hs(n);return Nn(u.typeParameters)===Nn(_)?cv(u,bo(_,[a||u.thisType])):n}else if(n.flags&2097152){let u=Mc(n.types,_=>Up(_,a,c));return u!==n.types?ga(u):n}return c?Mu(n):n}function gwe(n,a,c,u){let _,g,T,M,W;OG(c,u,0,c.length)?(g=a.symbol?Pb(a.symbol):oa(a.declaredProperties),T=a.declaredCallSignatures,M=a.declaredConstructSignatures,W=a.declaredIndexInfos):(_=Np(c,u),g=fwe(a.declaredProperties,_,c.length===1),T=kZ(a.declaredCallSignatures,_),M=kZ(a.declaredConstructSignatures,_),W=jOe(a.declaredIndexInfos,_));let V=Dp(a);if(V.length){if(a.symbol&&g===Pb(a.symbol)){let ye=oa(a.declaredProperties),_e=pge(a.symbol);_e&&ye.set("__index",_e),g=ye}_f(n,g,T,M,W);let te=Qs(u);for(let ye of V){let _e=te?Up(io(ye,_),te):ye;mwe(g,_s(_e)),T=bo(T,Ko(_e,0)),M=bo(M,Ko(_e,1));let je=_e!==G?gu(_e):[Wh(Ne,G,!1)];W=bo(W,Vr(je,mt=>!oge(W,mt.keyType)))}}_f(n,g,T,M,W)}function Jot(n){gwe(n,Hhe(n),Xe,Xe)}function qot(n){let a=Hhe(n.target),c=bo(a.typeParameters,[a.thisType]),u=Hs(n),_=u.length===c.length?u:bo(u,[n]);gwe(n,a,c,_)}function bg(n,a,c,u,_,g,T,M){let W=new h(Yt,M);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 g8(n){let a=bg(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 ywe(n,a){let c=g8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Xot(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]=Yot(n,a))}function Yot(n,a){R.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=g8(n);return c.flags|=a,c}function vwe(n,a){if(Xd(n)){let _=n.parameters.length-1,g=n.parameters[_].escapedName,T=lr(n.parameters[_]);if(Oa(T))return[c(T,_,g)];if(!a&&T.flags&1048576&&oo(T.types,Oa))return mn(T.types,M=>c(M,_,g))}return[n.parameters];function c(_,g,T){let M=Hs(_),W=u(_,T),V=mn(M,(te,ye)=>{let _e=W&&W[ye]?W[ye]:tL(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?Gd(te):te,At});return bo(n.parameters.slice(0,g),V)}function u(_,g){let T=new Map;return mn(_.target.labeledElementDeclarations,(M,W)=>{let V=Tve(M,W,g),te=T.get(V);return te===void 0?(T.set(V,1),V):(T.set(V,te+1),`${V}_${te}`)})}}function $ot(n){let a=Rp(n),c=Ko(a,1),u=Og(n.symbol),_=!!u&&$r(u,64);if(c.length===0)return[bg(void 0,n.localTypeParameters,void 0,Xe,n,void 0,0,_?4:0)];let g=Ts(n),T=or(g),M=a5(g),W=Nn(M),V=[];for(let te of c){let ye=Oh(te.typeParameters),_e=Nn(te.typeParameters);if(T||W>=ye&&W<=_e){let je=_e?yZ(te,Lb(M,te.typeParameters,ye,T)):g8(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(E5(g,a,c,u,_,c?Alt:C8))return g}function Qot(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=Qot(n,_,u);if(g){let T=_;if(g.length>1){let M=_.thisParameter,W=gn(g,V=>V.thisParameter);if(W){let V=ga(to(g,te=>te.thisParameter&&lr(te.thisParameter)));M=KA(W,V)}T=ywe(_,g),T.thisParameter=M}(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(R.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=T.typeParameters&>(_,M=>!!M.typeParameters&&!bwe(T.typeParameters,M.typeParameters))?void 0:mn(_,M=>tat(M,T)),!_)break}a=_}return a||Xe}function bwe(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,M=g===n?u:_,W=Bh(n)||Bh(a),V=W&&!Bh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:tL(n,ye),rr=ye>=_?void 0:tL(a,ye),Mn=sn===rr?sn:sn?rr?void 0:sn:rr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`,At?32768:rn?16384:0);an.links.type=At?Gd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args",32768);ye.links.type=Gd(f_(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function tat(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=eat(n,a,u),T=Zot(n.thisParameter,a.thisParameter,u),M=Math.max(n.minArgumentCount,a.minArgumentCount),W=bg(_,c,T,g,void 0,void 0,M,(n.flags|a.flags)&167);return W.compositeKind=1048576,W.compositeSignatures=bo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u?W.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?zS(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(W.mapper=n.mapper),W}function Ewe(n){let a=gu(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;oo(n,g=>!!Eg(g,_))&&c.push(Wh(_,ei(mn(n,g=>n0(g,_))),gt(n,g=>Eg(g,_).isReadonly)))}return c}return Xe}function nat(n){let a=qhe(mn(n.types,_=>_===Lt?[cn]:Ko(_,0))),c=qhe(mn(n.types,_=>Ko(_,1))),u=Ewe(n.types);_f(n,K,a,c,u)}function ZB(n,a){return n?a?ga([n,a]):n:a}function Swe(n){let a=bv(n,u=>Ko(u,1).length>0),c=mn(n,Mi);if(a>0&&a===bv(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function rat(n,a,c,u){let _=[];for(let g=0;gM);for(let M=0;M<_.length;M++){let W=n.types[M];if(!g[M]){let V=Ko(W,1);V.length&&T>0&&(V=mn(V,te=>{let ye=g8(te);return ye.resolvedReturnType=rat(us(te),_,g,M),ye})),c=Twe(c,V)}a=Twe(a,Ko(W,0)),u=ru(gu(W),(V,te)=>Awe(V,te,!1),u)}_f(n,K,a||Xe,c||Xe,u||Xe)}function Twe(n,a){for(let c of a)(!n||oo(n,u=>!E5(u,c,!1,!1,!1,C8)))&&(n=Tn(n,c));return n}function Awe(n,a,c){if(n)for(let u=0;u{var W;!(M.flags&418)&&!(M.flags&512&&((W=M.declarations)!=null&&W.length)&&oo(M.declarations,Ld))&&T.set(M.escapedName,M)}),c=T}let _;if(_f(n,c,Xe,Xe,Xe),a.flags&32){let T=Wf(a),M=Rp(T);M.flags&11272192?(c=oa(NA(c)),mwe(c,_s(M))):M===G&&(_=Wh(Ne,G,!1))}let g=vZ(c);if(g?u=fge(g):(_&&(u=Tn(u,_)),a.flags&384&&($s(a).flags&32||gt(n.properties,T=>!!(lr(T).flags&296)))&&(u=Tn(u,Fr))),_f(n,c,Xe,Xe,u||Xe),a.flags&8208&&(n.callSignatures=LS(a)),a.flags&32){let T=Wf(a),M=a.members?LS(a.members.get("__constructor")):Xe;a.flags&16&&(M=Ur(M.slice(),to(n.callSignatures,W=>$_(W.declaration)?bg(W.declaration,W.typeParameters,W.thisParameter,W.parameters,T,void 0,W.minArgumentCount,W.flags&167):void 0))),M.length||(M=$ot(T)),n.constructSignatures=M}}function aat(n,a,c){return io(n,Np([a.indexType,a.objectType],[u_(0),Fh([c])]))}function sat(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!==Wr?u:void 0}function lat(n){let a=Eg(n.source,Ne),c=wh(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[Wh(Ne,tee(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Xe,T=oa(),M=sat(n);for(let W of _s(n.source)){if(M){let ye=mC(W,8576);if(!ya(ye,M))continue}let V=8192|(u&&m_(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=lr(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=aat(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 e5(n){if(n.flags&4194304){let a=Mu(n.type);return Bb(a)?mOe(a):J_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=e5(a);if(c!==a)return Xge(n,UA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return cl(n,e5,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===lc?n:ga(Mc(n.types,e5))}return n}function Xhe(n){return Al(n)&4096}function Yhe(n,a,c,u){for(let _ of _s(n))u(mC(_,a));if(n.flags&1)u(Ne);else for(let _ of gu(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function cat(n){let a=oa(),c;_f(n,K,Xe,Xe,Xe);let u=l_(n),_=hf(n),g=n.target||n,T=lv(g),M=_Z(g)!==2,W=ly(g),V=Mu(wA(n)),te=wh(n),ye=Ce?128:8576;cC(n)?Yhe(V,ye,Ce,_e):YA(e5(_),_e),_f(n,a,Xe,Xe,c||Xe);function _e(mt){let At=T?io(T,x8(n.mapper,u,mt)):mt;YA(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 rr=Qf(mt)?ha(V,Zf(mt)):void 0,Mn=!!(te&4||!(te&8)&&rr&&rr.flags&16777216),an=!!(te&1||!(te&2)&&rr&&m_(rr)),On=J&&!Mn&&rr&&rr.flags&16777216,Ln=rr?Xhe(rr):0,$n=Ka(4|(Mn?16777216:0),rn,Ln|262144|(an?8:0)|(On?524288:0));$n.links.mappedType=n,$n.links.nameType=At,$n.links.keyType=mt,rr&&($n.links.syntheticOrigin=rr,$n.declarations=M?rr.declarations:void 0),a.set(rn,$n)}}else if(bZ(At)||At.flags&33){let rn=At.flags&5?Ne:At.flags&40?It:At,sn=io(W,x8(n.mapper,u,mt)),rr=y8(V,At),Mn=!!(te&1||!(te&2)&&rr?.isReadonly),an=Wh(rn,sn,Mn);c=Awe(c,an,!0)}}}function dat(n){if(!n.links.type){let a=n.links.mappedType;if(!Lh(n,0))return a.containsError=!0,pt;let c=ly(a.target||a),u=x8(a.mapper,l_(a),n.links.keyType),_=io(c,u),g=J&&n.flags&16777216&&!Dl(_,49152)?Gb(_,!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=pt),n.links.type=g}return n.links.type}function l_(n){return n.typeParameter||(n.typeParameter=kA(Tr(n.declaration.typeParameter)))}function hf(n){return n.constraintType||(n.constraintType=Pu(l_(n))||pt)}function lv(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,!!(wh(n)&4)),n.mapper):pt)}function Iwe(n){return Fx(n.declaration.typeParameter)}function cC(n){let a=Iwe(n);return a.kind===198&&a.operator===143}function wA(n){if(!n.modifiersType)if(cC(n))n.modifiersType=io(Ti(Iwe(n).type),n.mapper);else{let a=zge(n.declaration),c=hf(a),u=c&&c.flags&262144?Pu(c):c;n.modifiersType=u&&u.flags&4194304?io(u.type,n.mapper):un}return n.modifiersType}function wh(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 xwe(n){let a=wh(n);return a&8?-1:a&4?1:0}function $he(n){let a=xwe(n),c=wA(n);return a||(Hu(c)?xwe(c):0)}function uat(n){return!!(Lr(n)&32&&wh(n)&4)}function Hu(n){if(Lr(n)&32){let a=hf(n);if(jA(a))return!0;let c=lv(n);if(c&&jA(io(c,FS(l_(n),a))))return!0}return!1}function _Z(n){let a=lv(n);return a?ya(a,l_(n))?1:2:0}function c_(n){return n.members||(n.flags&524288?n.objectFlags&4?qot(n):n.objectFlags&3?Jot(n):n.objectFlags&1024?lat(n):n.objectFlags&16?oat(n):n.objectFlags&32?cat(n):R.fail("Unhandled object type "+R.formatObjectFlags(n.objectFlags)):n.flags&1048576?nat(n):n.flags&2097152?iat(n):R.fail("Unhandled type "+R.formatTypeFlags(n.flags))),n}function Mb(n){return n.flags&524288?c_(n).properties:Xe}function t0(n,a){if(n.flags&524288){let u=c_(n).members.get(a);if(u&&wm(u))return u}}function t5(n){if(!n.resolvedProperties){let a=oa();for(let c of n.types){for(let u of _s(c))if(!a.has(u.escapedName)){let _=r5(n,u.escapedName,!!(n.flags&2097152));_&&a.set(u.escapedName,_)}if(n.flags&1048576&&gu(c).length===0)break}n.resolvedProperties=JE(a)}return n.resolvedProperties}function _s(n){return n=FM(n),n.flags&3145728?t5(n):Mb(n)}function pat(n,a){n=FM(n),n.flags&3670016&&c_(n).members.forEach((c,u)=>{nx(c,u)&&a(c,u)})}function fat(n,a){return a.properties.some(u=>{let _=u.name&&(Xm(u.name)?Ku(gk(u.name)):uv(u.name)),g=_&&Qf(_)?Zf(_):void 0,T=g===void 0?void 0:Ue(n,g);return!!T&&M8(T)&&!ya(_x(u),T)})}function mat(n){let a=ei(n);if(!(a.flags&1048576))return obe(a);let c=oa();for(let u of n)for(let{escapedName:_}of obe(u))if(!c.has(_)){let g=Lwe(a,_);g&&c.set(_,g)}return Oo(c.values())}function OA(n){return n.flags&262144?Pu(n):n.flags&8388608?hat(n):n.flags&16777216?Cwe(n):Bd(n)}function Pu(n){return n5(n)?BM(n):void 0}function _at(n,a){let c=R8(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(Cwe(n),a+1)||n.flags&33554432&&WA(n.baseType,a)||Lr(n)&32&&_at(n,a)||Bb(n)&&ql(wS(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&WA(u,a))>=0))}function hat(n){return n5(n)?gat(n):void 0}function Qhe(n){let a=uy(n,!1);return a!==n?a:OA(n)}function gat(n){if(nge(n))return DZ(n.objectType,n.indexType);let a=Qhe(n.indexType);if(a&&a!==n.indexType){let u=wb(n.objectType,a,n.accessFlags);if(u)return u}let c=Qhe(n.objectType);if(c&&c!==n.objectType)return wb(c,n.indexType,n.accessFlags)}function Zhe(n){if(!n.resolvedDefaultConstraint){let a=Zst(n),c=o0(n);n.resolvedDefaultConstraint=xt(a)?c:xt(c)?a:ei([a,c])}return n.resolvedDefaultConstraint}function Rwe(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?OA(a):a;if(c&&c!==n.checkType){let u=Xge(n,UA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function Dwe(n){return Rwe(n)||Zhe(n)}function Cwe(n){return n5(n)?Dwe(n):void 0}function yat(n,a){let c,u=!1;for(let _ of n)if(_.flags&465829888){let g=OA(_);for(;g&&g.flags&21233664;)g=OA(g);g&&(c=Tn(c,g),a&&(c=Tn(c,_)))}else(_.flags&469892092||zh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||zh(_))&&(c=Tn(c,_));return y5(ga(c),!1)}}function Bd(n){if(n.flags&464781312||Bb(n)){let a=ege(n);return a!==Gs&&a!==rd?a:void 0}return n.flags&4194304?Os:void 0}function cy(n){return Bd(n)||n}function n5(n){return ege(n)!==rd}function ege(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!Lh(g,4))return rd;let T,M=UZ(g);if((a.length<10||a.length<50&&!zo(a,M))&&(a.push(M),T=_(uy(g,!1)),a.pop()),!H_()){if(g.flags&262144){let W=mge(g);if(W){let V=Ve(W,f.Type_parameter_0_has_a_circular_constraint,Vn(g));D&&!P0(W,D)&&!P0(D,W)&&Ma(V,Pr(D,f.Circularity_originates_in_type_at_this_location))}}T=rd}g.immediateBaseConstraint=T||Gs}return g.immediateBaseConstraint}function u(g){let T=c(g);return T!==Gs&&T!==rd?T:void 0}function _(g){if(g.flags&262144){let T=BM(g);return g.isThisType||!T?T:u(T)}if(g.flags&3145728){let T=g.types,M=[],W=!1;for(let V of T){let te=u(V);te?(te!==V&&(W=!0),M.push(te)):W=!0}return W?g.flags&1048576&&M.length===T.length?ei(M):g.flags&2097152&&M.length?ga(M):void 0:g}if(g.flags&4194304)return Os;if(g.flags&134217728){let T=g.types,M=to(T,u);return M.length===T.length?BA(g.texts,M):Ne}if(g.flags&268435456){let T=u(g.type);return T&&T!==g.type?cx(g.symbol,T):Ne}if(g.flags&8388608){if(nge(g))return u(DZ(g.objectType,g.indexType));let T=u(g.objectType),M=u(g.indexType),W=T&&M&&wb(T,M,g.accessFlags);return W&&u(W)}if(g.flags&16777216){let T=Dwe(g);return T&&u(T)}if(g.flags&33554432)return u(vge(g));if(Bb(g)){let T=mn(wS(g),(M,W)=>{let V=M.flags&262144&&g.target.elementFlags[W]&8&&u(M)||M;return V!==M&&ap(V,te=>s0(te)&&!Bb(te))?V:M});return Fh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function vat(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Up(n,a,!0))}function tge(n){if(n.default)n.default===pd&&(n.default=rd);else if(n.target){let a=tge(n.target);n.default=a?io(a,n.mapper):Gs}else{n.default=pd;let a=n.symbol&&gn(n.symbol.declarations,u=>ml(u)&&u.default),c=a?Ti(a):Gs;n.default===pd&&(n.default=c)}return n.default}function FA(n){let a=tge(n);return a!==Gs&&a!==rd?a:void 0}function bat(n){return tge(n)!==rd}function Nwe(n){return!!(n.symbol&&gn(n.symbol.declarations,a=>ml(a)&&a.default))}function Pwe(n){return n.resolvedApparentType||(n.resolvedApparentType=Eat(n))}function Eat(n){let a=n.target??n,c=R8(a);if(c&&!a.declaration.nameType){let u=wA(n),_=Hu(u)?Pwe(u):Bd(u);if(_&&ap(_,g=>s0(g)||Mwe(g)))return io(a,UA(c,_,n.mapper))}return n}function Mwe(n){return!!(n.flags&2097152)&&oo(n.types,s0)}function nge(n){let a;return!!(n.flags&8388608&&Lr(a=n.objectType)&32&&!Hu(a)&&jA(n.indexType)&&!(wh(a)&8)&&!a.declaration.nameType)}function Mu(n){let a=n.flags&465829888?Bd(n)||un:n,c=Lr(a);return c&32?Pwe(a):c&4&&a!==n?Up(a,n):a.flags&2097152?vat(a,n):a.flags&402653316?ec:a.flags&296?vc:a.flags&2112?ist():a.flags&528?ll:a.flags&12288?oOe():a.flags&67108864?Na:a.flags&4194304?Os:a.flags&2&&!J?Na:a}function FM(n){return d_(Mu(d_(n)))}function Lwe(n,a,c){var u,_,g;let T,M,W,V=n.flags&1048576,te,ye=4,_e=V?0:8,je=!1;for(let $n of n.types){let jn=Mu($n);if(!(Ut(jn)||jn.flags&131072)){let Qn=ha(jn,a,c),xo=Qn?Tf(Qn):0;if(Qn){if(Qn.flags&106500&&(te??(te=V?0:16777216),V?te|=Qn.flags&16777216:te&=Qn.flags),!T)T=Qn;else if(Qn!==T)if((xC(Qn)||Qn)===(xC(T)||T)&&oye(T,Qn,(Wo,fo)=>Wo===fo?-1:0)===-1)je=!!T.parent&&!!Nn(Nr(T.parent));else{M||(M=new Map,M.set(ba(T),T));let Wo=ba(Qn);M.has(Wo)||M.set(Wo,Qn)}V&&m_(Qn)?_e|=8:!V&&!m_(Qn)&&(_e&=-9),_e|=(xo&6?0:256)|(xo&4?512:0)|(xo&2?1024:0)|(xo&256?2048:0),tve(Qn)||(ye=2)}else if(V){let vo=!h8(a)&&sx(jn,a);vo?(_e|=32|(vo.isReadonly?8:0),W=Tn(W,Oa(jn)?JZ(jn)||Me:vo.type)):d0(jn)&&!(Lr(jn)&2097152)?(_e|=32,W=Tn(W,Me)):_e|=16}}}if(!T||V&&(M||_e&48)&&_e&1536&&!(M&&Sat(M.values())))return;if(!M&&!(_e&16)&&!W)if(je){let $n=(u=ri(T,dh))==null?void 0:u.links,jn=KA(T,$n?.type);return jn.parent=(g=(_=T.valueDeclaration)==null?void 0:_.symbol)==null?void 0:g.parent,jn.links.containingType=n,jn.links.mapper=$n?.mapper,jn.links.writeType=MS(T),jn}else return T;let mt=M?Oo(M.values()):[T],At,rn,sn,rr=[],Mn,an,On=!1;for(let $n of mt){an?$n.valueDeclaration&&$n.valueDeclaration!==an&&(On=!0):an=$n.valueDeclaration,At=Ur(At,$n.declarations);let jn=lr($n);rn||(rn=jn,sn=qi($n).nameType);let Qn=MS($n);(Mn||Qn!==jn)&&(Mn=Tn(Mn||rr.slice(),Qn)),jn!==rn&&(_e|=64),(M8(jn)||GA(jn))&&(_e|=128),jn.flags&131072&&jn!==dd&&(_e|=131072),rr.push(jn)}Ur(rr,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,rr.length>2?(Ln.links.checkFlags|=65536,Ln.links.deferralParent=n,Ln.links.deferralConstituents=rr,Ln.links.deferralWriteConstituents=Mn):(Ln.links.type=V?ei(rr):ga(rr),Mn&&(Ln.links.writeType=V?ei(Mn):ga(Mn))),Ln}function kwe(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=Lwe(n,a,c),T&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=oa()):n.propertyCache||(n.propertyCache=oa())).set(a,T),c&&!(Al(T)&48)&&!((g=n.propertyCache)!=null&&g.get(a))&&(n.propertyCache||(n.propertyCache=oa())).set(a,T))),T}function Sat(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{zo(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function r5(n,a,c){let u=kwe(n,a,c);return u&&!(Al(u)&16)?u:void 0}function d_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Tat(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(gt(t5(n),Aat)?33554432:0)),n.objectFlags&33554432?Wr:n):n}function Tat(n){let a=Mc(n.types,d_);if(a===n.types)return n;let c=ei(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Aat(n){return wwe(n)||Owe(n)}function wwe(n){return!(n.flags&16777216)&&(Al(n)&131264)===192&&!!(lr(n).flags&131072)}function Owe(n){return!n.valueDeclaration&&!!(Al(n)&1024)}function rge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&>(n.types,rge)||n.flags&2097152&&Iat(n))}function Iat(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,mo));return d_(a)!==a}function ige(n,a){if(a.flags&2097152&&Lr(a)&33554432){let c=Gr(t5(a),wwe);if(c)return Fo(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=Gr(t5(a),Owe);if(u)return Fo(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=FM(n),n.flags&524288){let T=c_(n),M=T.members.get(a);if(M&&!u&&((_=n.symbol)==null?void 0:_.flags)&512&&((g=qi(n.symbol).typeOnlyExportStarMap)!=null&&g.has(a)))return;if(M&&wm(M,u))return M;if(c)return;let W=T===tn?Lt:T.callSignatures.length?Un:T.constructSignatures.length?go:void 0;if(W){let V=t0(W,a);if(V)return V}return t0(Re,a)}if(n.flags&2097152){let T=r5(n,a,!0);return T||(c?void 0:r5(n,a,c))}if(n.flags&1048576)return r5(n,a,c)}function i5(n,a){if(n.flags&3670016){let c=c_(n);return a===0?c.callSignatures:c.constructSignatures}return Xe}function Ko(n,a){let c=i5(FM(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)&&xat(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=cl(n,T=>Wb((Wwe(T.symbol.parent)?Qo:qo).typeParameters[0],T.mapper)),g=Gd(_,Fm(n,T=>Wwe(T.symbol.parent)));return n.arrayFallbackSignatures=Ko(Ue(g,u),a)}n.arrayFallbackSignatures=c}return c}function xat(n){return!n||!qo.symbol||!Qo.symbol?!1:!!i_(n,qo.symbol)||!!i_(n,Qo.symbol)}function Wwe(n){return!n||!Qo.symbol?!1:!!i_(n,Qo.symbol)}function oge(n,a){return Gr(n,c=>c.keyType===a)}function age(n,a){let c,u,_;for(let g of n)g.keyType===Ne?c=g:ax(a,g.keyType)&&(u?(_||(_=[u])).push(g):u=g);return _?Wh(un,ga(mn(_,g=>g.type)),ru(_,(g,T)=>g&&T.isReadonly,!0)):u||(c&&ax(a,Ne)?c:void 0)}function ax(n,a){return ya(n,a)||a===Ne&&ya(n,It)||a===It&&(n===ls||!!(n.flags&128)&&ig(n.value))}function sge(n){return n.flags&3670016?c_(n).indexInfos:Xe}function gu(n){return sge(FM(n))}function Eg(n,a){return oge(gu(n),a)}function n0(n,a){var c;return(c=Eg(n,a))==null?void 0:c.type}function lge(n,a){return gu(n).filter(c=>ax(a,c.keyType))}function y8(n,a){return age(gu(n),a)}function sx(n,a){return y8(n,h8(a)?xi:Ku(Vi(a)))}function Fwe(n){var a;let c;for(let u of Cv(n))c=xg(c,kA(u.symbol));return c?.length?c:Tc(n)?(a=zM(n))==null?void 0:a.typeParameters:void 0}function cge(n){let a=[];return n.forEach((c,u)=>{DS(u)||a.push(c)}),a}function hZ(n,a){if($c(n))return;let c=Uu(be,'"'+n+'"',512);return c&&a?es(c):c}function v8(n){if(DI(n)||_k(n)||hk(n))return!0;if(n.initializer){let c=lm(n.parent),u=n.parent.parameters.indexOf(n);return R.assert(u>=0),u>=Q_(c,3)}let a=gT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Dee(a).length:!1}function Rat(n){return jo(n)&&!I_(n)&&n.questionToken}function o5(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function Oh(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]=pt;let M=Aye(u);for(let W=g;W<_;W++){let V=FA(a[W]);u&&V&&(py(V,un)||py(V,Na))&&(V=G),T[W]=V?io(V,Np(a,T)):M}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=or(n)?iF(n):void 0,M=!1,W=gT(n),V=aR(n);!W&&or(n)&&bie(n)&&!Zne(n)&&!rE(n)&&(u|=32);for(let mt=V?1:0;mtW.arguments.length&&!sn||hk(At)||(_=c.length)}if((n.kind===177||n.kind===178)&&lC(n)&&(!M||!g)){let mt=n.kind===177?178:177,At=dl(Tr(n),mt);At&&(g=sZ(At))}T&&T.typeExpression&&(g=KA(Ka(1,"this"),Ti(T.typeExpression)));let ye=vE(n)?dE(n):n,_e=ye&&Ml(ye)?Wf(es(ye.parent.symbol)):void 0,je=_e?_e.localTypeParameters:Fwe(n);(FV(n)||or(n)&&Dat(n,c))&&(u|=1),(NR(n)&&$r(n,64)||Ml(n)&&$r(n.parent,64))&&(u|=4),a.resolvedSignature=bg(n,je,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function Dat(n,a){if(vE(n)||!dge(n))return!1;let c=Qs(n.parameters),u=c?Wx(c):iE(n).filter($m),_=zl(u,T=>T.typeExpression&&H4(T.typeExpression.type)?T.typeExpression.type:void 0),g=Ka(3,"args",32768);return _?g.links.type=Gd(Ti(_.type)):(g.links.checkFlags|=65536,g.links.deferralParent=Wr,g.links.deferralConstituents=[tc],g.links.deferralWriteConstituents=[tc]),_&&a.pop(),a.push(g),!0}function zM(n){if(!(or(n)&&Fs(n)))return;let a=nE(n);return a?.typeExpression&&eI(Ti(a.typeExpression))}function Cat(n,a){let c=zM(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?X5(c,u):f_(c,u)}function Nat(n){let a=zM(n);return a&&us(a)}function dge(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&&tW(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)&&!Yh(u)&&!!Bo(u,c)}}}function LS(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(or(u)&&u.jsDoc){let _=vj(u);if(Nn(_)){for(let g of _){let T=g.typeExpression;T.type===void 0&&!Ml(u)&&l0(T,G),a.push(lm(T))}continue}}a.push(!B0(u)&&!bm(u)&&zM(u)||lm(u))}}return a}function zwe(n){let a=hu(n,n);if(a){let c=Ip(a);if(c)return lr(c)}return G}function r0(n){if(n.thisParameter)return lr(n.thisParameter)}function Ff(n){if(!n.resolvedTypePredicate){if(n.target){let a=Ff(n.target);n.resolvedTypePredicate=a?mlt(a,n.mapper):Pe}else if(n.compositeSignatures)n.resolvedTypePredicate=Cst(n.compositeSignatures,n.compositeKind)||Pe;else{let a=n.declaration&&$f(n.declaration),c;if(!a){let u=zM(n.declaration);u&&n!==u&&(c=Ff(u))}n.resolvedTypePredicate=a&&Wk(a)?Pat(a,n):c||Pe}R.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Pe?void 0:n.resolvedTypePredicate}function Pat(n,a){let c=n.parameterName,u=n.type&&Ti(n.type);return c.kind===197?o5(n.assertsModifier?2:0,void 0,void 0,u):o5(n.assertsModifier?3:1,c.escapedText,ql(a.parameters,_=>_.escapedName===c.escapedText),u)}function Bwe(n,a,c){return a!==2097152?ei(n,c):ga(n)}function us(n){if(!n.resolvedReturnType){if(!Lh(n,3))return pt;let a=n.target?io(us(n.target),n.mapper):n.compositeSignatures?io(Bwe(mn(n.compositeSignatures,us),n.compositeKind,2),n.mapper):dC(n.declaration)||(Bl(n.declaration.body)?G:Mee(n.declaration));if(n.flags&8?a=b8e(a):n.flags&16&&(a=Gb(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,_=No(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,xs(_)):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 dC(n){if(n.kind===176)return Wf(es(n.parent.symbol));let a=$f(n);if(vE(n)){let c=sR(n);if(c&&Ml(c.parent)&&!a)return Wf(es(c.parent.parent.symbol))}if(aR(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&lC(n)){let c=or(n)&&iy(n);if(c)return c;let u=dl(Tr(n),178),_=QE(u);if(_)return _}return Nat(n)}function gZ(n){return n.compositeSignatures&>(n.compositeSignatures,gZ)||!n.resolvedReturnType&&ix(n,3)>=0}function Mat(n){return Gwe(n)||G}function Gwe(n){if(Xd(n)){let a=lr(n.parameters[n.parameters.length-1]),c=Oa(a)?JZ(a):a;return c&&n0(c,It)}}function b8(n,a,c,u){let _=uge(n,Lb(a,n.typeParameters,Oh(n.typeParameters),c));if(u){let g=ZWe(us(_));if(g){let T=g8(g);T.typeParameters=u;let M=g8(_);return M.resolvedReturnType=zA(T),M}}return _}function uge(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 gC(n,Lat(n,a),!0)}function Lat(n,a){return Np(n.typeParameters,a)}function E8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=kat(n)):n}function kat(n){return gC(n,UOe(n.typeParameters),!0)}function wat(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Oat(n)):n}function Oat(n){return b8(n,mn(n.typeParameters,a=>a.target&&!Pu(a.target)?a.target:a),or(n.declaration))}function Wat(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=UOe(a),u=Np(a,mn(a,g=>Pu(g)||un)),_=mn(a,g=>io(g,u)||un);for(let g=0;g{bZ(_)&&!oge(a,_)&&a.push(Wh(_,c.type?Ti(c.type):G,fp(c,8),c))})}return a}return Xe}function bZ(n){return!!(n.flags&4108)||GA(n)||!!(n.flags&2097152)&&!_C(n)&>(n.types,bZ)}function mge(n){return to(Vr(n.symbol&&n.symbol.declarations,ml),Fx)[0]}function jwe(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]=Eie(_.parent.parent);if(T.kind===183&&!a){let M=T,W=Fve(M);if(W){let V=M.typeArguments.indexOf(g);if(V()=>Qft(M,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,Gd(un));else if(T.kind===204)u=Tn(u,Ne);else if(T.kind===168&&T.parent.kind===200)u=Tn(u,Os);else if(T.kind===200&&T.type&&ms(T.type)===_.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let M=T.parent.checkType,W=Ti(M.type);u=Tn(u,io(W,FS(kA(Tr(M.typeParameter)),M.typeParameter.constraint?Ti(M.typeParameter.constraint):Os)))}}}return u&&ga(u)}function BM(n){if(!n.constraint)if(n.target){let a=Pu(n.target);n.constraint=a?io(a,n.mapper):Gs}else{let a=mge(n);if(!a)n.constraint=jwe(n)||Gs;else{let c=Ti(a);c.flags&1&&!Ut(c)&&(c=a.parent.parent.kind===200?Os:un),n.constraint=c}}return n.constraint===Gs?void 0:n.constraint}function Uwe(n){let a=dl(n.symbol,168),c=nm(a.parent)?e6(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 lx(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 uC(n,a){return gt(a)&&n===Mo?un:cv(n,a)}function cv(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 Hwe(n){let a=yg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function _ge(n,a,c,u,_){if(!u){u=dx(a);let T=hC(u);_=c?pv(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 Hs(n){var a,c;if(!n.resolvedTypeArguments){if(!Lh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>pt))||Xe;let u=n.node,_=u?u.kind===183?bo(n.target.outerTypeParameters,Wee(u,n.target.localTypeParameters)):u.kind===188?[Ti(u.elementType)]:mn(u.elements,Ti):Xe;H_()?n.resolvedTypeArguments=n.mapper?pv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>pt))||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 dv(n){return Nn(n.target.typeParameters)}function Kwe(n,a){let c=$s(es(a)),u=c.localTypeParameters;if(u){let _=Nn(n.typeArguments),g=Oh(u),T=or(n);if(!(!fe&&T)&&(_u.length)){let V=T&&Gy(n)&&!l1(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 pt}if(n.kind===183&&pOe(n,Nn(n.typeArguments)!==u.length))return _ge(c,n,void 0);let W=bo(c.outerTypeParameters,Lb(a5(n),u,g,T));return cv(c,W)}return kS(n,a)?c:pt}function pC(n,a,c,u){let _=$s(n);if(_===dn){let V=w3.get(n.escapedName);if(V!==void 0&&a&&a.length===1)return V===4?hge(a[0]):cx(n,a[0])}let g=qi(n),T=g.typeParameters,M=cm(a)+lx(c,u),W=g.instantiations.get(M);return W||g.instantiations.set(M,W=JOe(_,Np(T,Lb(a,T,Oh(T),or(n.valueDeclaration))),c,u)),W}function Fat(n,a){if(Al(a)&1048576){let _=a5(n),g=lx(a,_),T=ke.get(g);return T||(T=cc(1,"error",void 0,`alias ${g}`),T.aliasSymbol=a,T.aliasTypeArguments=_,ke.set(g,T)),T}let c=$s(a),u=qi(a).typeParameters;if(u){let _=Nn(n.typeArguments),g=Oh(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),pt;let T=dx(n),M=T&&(Jwe(a)||!Jwe(T))?T:void 0,W;if(M)W=hC(M);else if(vF(n)){let V=fC(n,2097152,!0);if(V&&V!==lt){let te=Fc(V);te&&te.flags&524288&&(M=te,W=a5(n)||(u?[]:void 0))}}return pC(a,a5(n),M,W)}return kS(n,a)?c:pt}function Jwe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(G2);return!!(c&&Wp(c))}function zat(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(Vl(a))return a}}function qwe(n){return n.parent?`${qwe(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?`${qwe(u)}.${c}`:c,g=se.get(_);return g||(se.set(_,g=Ka(524288,c,1048576)),g.parent=u,g.links.declaredType=Bt),g}return lt}function fC(n,a,c){let u=zat(n);if(!u)return lt;let _=js(u,a,c);return _&&_!==lt?_:c?lt:SZ(u)}function TZ(n,a){if(a===lt)return pt;if(a=PM(a)||a,a.flags&96)return Kwe(n,a);if(a.flags&524288)return Fat(n,a);let c=uwe(a);if(c)return kS(n,a)?vu(c):pt;if(a.flags&111551&&AZ(n)){let u=Bat(n,a);return u||(fC(n,788968),lr(a))}return pt}function Bat(n,a){let c=Qr(n);if(!c.resolvedJSDocType){let u=lr(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 hge(n){return gge(n)?Xwe(n,un):n}function gge(n){return!!(n.flags&3145728&>(n.types,gge)||n.flags&33554432&&!GM(n)&&gge(n.baseType)||n.flags&524288&&!zh(n)||n.flags&432275456&&!GA(n))}function GM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function yge(n,a){return a.flags&3||a===n||n.flags&1?n:Xwe(n,a)}function Xwe(n,a){let c=`${yu(n)}>${yu(a)}`,u=Ao.get(c);if(u)return u;let _=gg(33554432);return _.baseType=n,_.constraint=a,Ao.set(c,_),_}function vge(n){return GM(n)?n.baseType:ga([n.constraint,n.baseType])}function Ywe(n){return n.kind===189&&n.elements.length===1}function $we(n,a,c){return Ywe(a)&&Ywe(c)?$we(n,a.elements[0],c.elements[0]):Ob(Ti(a))===Ob(n)?Ti(c):void 0}function Gat(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=$we(n,_.checkType,_.extendsType);g&&(c=Tn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=Ti(_);if(l_(g)===Ob(n)){let T=R8(g);if(T){let M=Pu(T);M&&ap(M,s0)&&(c=Tn(c,ei([It,ls])))}}}a=_}return c?yge(n,ga(c)):n}function AZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function kS(n,a){return n.typeArguments?(Ve(n,f.Type_0_is_not_generic,a?Si(a):n.typeName?xs(n.typeName):P3),!1):!0}function Qwe(n){if(Fe(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return kS(n),Ne;case"Number":return kS(n),It;case"Boolean":return kS(n),gi;case"Void":return kS(n),tr;case"Undefined":return kS(n),Me;case"Null":return kS(n),ue;case"Function":case"function":return kS(n),Lt;case"array":return(!a||!a.length)&&!fe?tc:void 0;case"promise":return(!a||!a.length)&&!fe?$5(G):void 0;case"Object":if(a&&a.length===2){if(JF(n)){let c=Ti(a[0]),u=Ti(a[1]),_=c===Ne||c===It?[Wh(c,u,!1)]:Xe;return Ps(void 0,K,Xe,Xe,_)}return G}return kS(n),fe?void 0:G}}}function Vat(n){let a=Ti(n.type);return J?A5(a,65536):a}function bge(n){let a=Qr(n);if(!a.resolvedType){if(Ng(n)&&uT(n.parent))return a.resolvedSymbol=lt,a.resolvedType=rc(n.parent.expression);let c,u,_=788968;AZ(n)&&(u=Qwe(n),u||(c=fC(n,_,!0),c===lt?c=fC(n,_|111551):fC(n,_),u=TZ(n,c))),u||(c=fC(n,_),u=TZ(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function a5(n){return mn(n.typeArguments,Ti)}function Zwe(n){let a=Qr(n);if(!a.resolvedType){let c=vFe(n);a.resolvedType=vu(Hp(c))}return a.resolvedType}function eOe(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?Mo:Na;let u=$s(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?Mo:Na):u:(Ve(c(n),f.Global_type_0_must_be_a_class_or_interface_type,vl(n)),a?Mo:Na)}function Ege(n,a){return VM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Sge(n,a){return VM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function IZ(n,a,c){let u=VM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&($s(u),Nn(qi(u).typeParameters)!==a)){let _=u.declarations&&Gr(u.declarations,Tm);Ve(_,f.Global_type_0_must_have_1_type_parameter_s,vl(u),a);return}return u}function VM(n,a,c){return gl(void 0,n,a,c,n,!1,!1,!1)}function nc(n,a,c){let u=Sge(n,c);return u||c?eOe(u,a):void 0}function jat(){return Ih||(Ih=nc("TypedPropertyDescriptor",1,!0)||Mo)}function Uat(){return er||(er=nc("TemplateStringsArray",0,!0)||Na)}function tOe(){return ii||(ii=nc("ImportMeta",0,!0)||Na)}function nOe(){if(!Xr){let n=Ka(0,"ImportMetaExpression"),a=tOe(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;let u=oa([c]);n.members=u,Xr=Ps(n,u,Xe,Xe,Xe)}return Xr}function rOe(n){return no||(no=nc("ImportCallOptions",0,n))||Na}function Tge(n){return ka||(ka=nc("ImportAttributes",0,n))||Na}function iOe(n){return Du||(Du=Ege("Symbol",n))}function Hat(n){return Pf||(Pf=Sge("SymbolConstructor",n))}function oOe(){return z_||(z_=nc("Symbol",0,!1))||Na}function s5(n){return Hg||(Hg=nc("Promise",1,n))||Mo}function aOe(n){return zd||(zd=nc("PromiseLike",1,n))||Mo}function Age(n){return Kg||(Kg=Ege("Promise",n))}function Kat(n){return Sp||(Sp=nc("PromiseConstructorLike",0,n))||Na}function xZ(n){return O||(O=nc("AsyncIterable",1,n))||Mo}function Jat(n){return Se||(Se=nc("AsyncIterator",3,n))||Mo}function qat(n){return nt||(nt=nc("AsyncIterableIterator",1,n))||Mo}function Xat(n){return jt||(jt=nc("AsyncGenerator",3,n))||Mo}function Ige(n){return dg||(dg=nc("Iterable",1,n))||Mo}function Yat(n){return Gu||(Gu=nc("Iterator",3,n))||Mo}function $at(n){return Z||(Z=nc("IterableIterator",1,n))||Mo}function Qat(n){return rt||(rt=nc("Generator",3,n))||Mo}function Zat(n){return wt||(wt=nc("IteratorYieldResult",1,n))||Mo}function est(n){return Gt||(Gt=nc("IteratorReturnResult",1,n))||Mo}function sOe(n){return wa||(wa=nc("Disposable",0,n))||Na}function tst(n){return Ol||(Ol=nc("AsyncDisposable",0,n))||Na}function lOe(n,a=0){let c=VM(n,788968,void 0);return c&&eOe(c,a)}function nst(){return fd||(fd=IZ("Extract",2,!0)||lt),fd===lt?void 0:fd}function rst(){return Rc||(Rc=IZ("Omit",2,!0)||lt),Rc===lt?void 0:Rc}function xge(n){return Tp||(Tp=IZ("Awaited",1,n)||(n?lt:void 0)),Tp===lt?void 0:Tp}function ist(){return Vu||(Vu=nc("BigInt",0,!1))||Na}function ost(n){return Dm??(Dm=nc("ClassDecoratorContext",1,n))??Mo}function ast(n){return Cm??(Cm=nc("ClassMethodDecoratorContext",2,n))??Mo}function sst(n){return Ui??(Ui=nc("ClassGetterDecoratorContext",2,n))??Mo}function lst(n){return Jg??(Jg=nc("ClassSetterDecoratorContext",2,n))??Mo}function cst(n){return Zy??(Zy=nc("ClassAccessorDecoratorContext",2,n))??Mo}function dst(n){return Nm??(Nm=nc("ClassAccessorDecoratorTarget",2,n))??Mo}function ust(n){return mS??(mS=nc("ClassAccessorDecoratorResult",2,n))??Mo}function pst(n){return _S??(_S=nc("ClassFieldDecoratorContext",2,n))??Mo}function fst(){return sb||(sb=Ege("NaN",!1))}function mst(){return cs||(cs=IZ("Record",2,!0)||lt),cs===lt?void 0:cs}function S8(n,a){return n!==Mo?cv(n,a):Na}function cOe(n){return S8(jat(),[n])}function dOe(n){return S8(Ige(!0),[n])}function Gd(n,a){return S8(a?Qo:qo,[n])}function Rge(n){switch(n.kind){case 190:return 2;case 191:return uOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?uOe(n):1;default:return 1}}function uOe(n){return p5(n.type)?4:8}function _st(n){let a=yst(n.parent);if(p5(n))return a?Qo:qo;let u=mn(n.elements,Rge);return Dge(u,a,mn(n.elements,hst))}function hst(n){return PR(n)||To(n)?n:void 0}function pOe(n,a){return!!dx(n)||fOe(n)&&(n.kind===188?kb(n.elementType):n.kind===189?gt(n.elements,kb):a||gt(n.typeArguments,kb))}function fOe(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 fOe(a);case 265:return!0}return!1}function kb(n){switch(n.kind){case 183:return AZ(n)||!!(fC(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&kb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return kb(n.type);case 191:return n.type.kind!==188||kb(n.type.elementType);case 192:case 193:return gt(n.types,kb);case 199:return kb(n.objectType)||kb(n.indexType);case 194:return kb(n.checkType)||kb(n.extendsType)||kb(n.trueType)||kb(n.falseType)}return!1}function gst(n){let a=Qr(n);if(!a.resolvedType){let c=_st(n);if(c===Mo)a.resolvedType=Na;else if(!(n.kind===189&>(n.elements,u=>!!(Rge(u)&8)))&&pOe(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:_ge(c,n,void 0);else{let u=n.kind===188?[Ti(n.elementType)]:mn(n.elements,Ti);a.resolvedType=Cge(c,u)}}return a.resolvedType}function yst(n){return LT(n)&&n.operator===148}function Fh(n,a,c=!1,u=[]){let _=Dge(a||mn(n,g=>1),c,u);return _===Mo?Na:n.length?Cge(_,n):_}function Dge(n,a,c){if(n.length===1&&n[0]&4)return a?Qo:qo;let u=mn(n,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(gt(c,g=>!!g)?","+mn(c,g=>g?is(g):"_").join(","):""),_=Eo.get(u);return _||Eo.set(u,_=vst(n,a,c)),_}function vst(n,a,c){let u=n.length,_=bv(n,ye=>!!(ye&9)),g,T=[],M=0;if(u){g=new Array(u);for(let ye=0;ye!!(n.elementFlags[rn]&8&&At.flags&1179648));if(mt>=0)return c5(mn(a,(At,rn)=>n.elementFlags[rn]&8?At:un))?cl(a[mt],At=>Nge(n,zG(a,mt,At))):pt}let T=[],M=[],W=[],V=-1,te=-1,ye=-1;for(let mt=0;mt=1e4)return Ve(D,Yh(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),pt;gn(sn,(rr,Mn)=>{var an;return je(rr,At.target.elementFlags[Mn],(an=At.target.labeledElementDeclarations)==null?void 0:an[Mn])})}else je(fv(At)&&n0(At,It)||pt,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&&teM[te+At]&8?Cp(mt,It):mt)),T.splice(te+1,ye-te),M.splice(te+1,ye-te),W.splice(te+1,ye-te));let _e=Dge(M,n.readonly,W);return _e===Mo?Na:M.length?cv(_e,T):_e;function je(mt,At,rn){At&1&&(V=M.length),At&4&&te<0&&(te=M.length),At&6&&(ye=M.length),T.push(At&2?op(mt,!0):mt),M.push(At),W.push(rn)}}function jM(n,a,c=0){let u=n.target,_=dv(n)-c;return a>u.fixedLength?oct(n)||Fh(Xe):Fh(Hs(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function mOe(n){return ei(Tn(ene(n.target.fixedLength,a=>Ku(""+a)),J_(n.target.readonly?Qo:qo)))}function bst(n,a){let c=ql(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function T8(n,a){return n.elementFlags.length-mW(n.elementFlags,c=>!(c&a))-1}function Pge(n){return n.fixedLength+T8(n,3)}function wS(n){let a=Hs(n),c=dv(n);return a.length===c?a:a.slice(0,c)}function Est(n){return op(Ti(n.type),!0)}function yu(n){return n.id}function dy(n,a){return Sy(n,a,yu,el)>=0}function l5(n,a){let c=Sy(n,a,yu,el);return c<0?(n.splice(~c,0,a),!0):!1}function Sst(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?~_:Sy(n,c,yu,el);g<0&&n.splice(~g,0,c)}return a}function _Oe(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?_Oe(n,a|(Dst(_)?1048576:0),_.types):Sst(n,a,_),u=_);return a}function Tst(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)&&!Hu(V)&&Zge(c_(V))),T=n.length,M=T,W=0;for(;M>0;){M--;let V=n[M];if(g||V.flags&469499904){if(V.flags&262144&&cy(V).flags&1048576){q_(V,ei(mn(n,_e=>_e===V?Wr:_e)),Mf)&&Tv(n,M);continue}let te=V.flags&61603840?Gr(_s(V),_e=>p_(lr(_e))):void 0,ye=te&&vu(lr(te));for(let _e of n)if(V!==_e){if(W===1e5&&W/(T-M)*T>1e6){(c=ir)==null||c.instant(ir.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&&p_(je)&&vu(je)!==ye)continue}if(q_(V,_e,Mf)&&(!(Lr(sv(V))&1)||!(Lr(sv(_e))&1)||a0(V,_e))){Tv(n,M);break}}}}return ua.set(u,n),n}function Ast(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))&&Tv(n,u)}}function Ist(n){let a=Vr(n,GA);if(a.length){let c=n.length;for(;c>0;){c--;let u=n[c];u.flags&128&>(a,_=>xst(u,_))&&Tv(n,c)}}}function xst(n,a){return a.flags&134217728?ree(n,a):nee(n,a)}function Rst(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&&l5(u,g.types[1-T])}let _=Bd(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 M=T.types[0].flags&8650752?0:1;T.types[M]===c&&dy(u,T.types[1-M])&&Tv(n,g)}}l5(n,c)}}}function Dst(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function hOe(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&&hOe(n,u.types)}}function Mge(n,a){let c=tx(n);return c.types=a,c}function ei(n,a=1,c,u,_){if(n.length===0)return Wr;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&&Tv(g,1),(T&402664352||T&16384&&T&32768)&&Ast(g,T,!!(a&2)),T&128&&T&402653184&&Ist(g),T&536870912&&Rst(g),a===2&&(g=Tst(g,!!(T&524288)),!g))return pt;if(g.length===0)return T&65536?T&4194304?ue:We:T&32768?T&4194304?Me:Nt:Wr}if(!_&&T&1048576){let W=[];hOe(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(ru(W,(ye,_e)=>ye+_e.types.length,0)+V.length===g.length){for(let ye of W)l5(V,ye);_=Mge(1048576,V)}}let M=(T&36323331?0:32768)|(T&2097152?16777216:0);return kge(g,M,c,u,_)}function Cst(n,a){let c,u=[];for(let g of n){let T=Ff(g);if(T){if(T.kind!==0&&T.kind!==1||c&&!Lge(c,T))return;c=T,u.push(T.type)}else{let M=a!==2097152?us(g):void 0;if(M!==Kt&&M!==En)return}}if(!c)return;let _=Bwe(u,a);return o5(c.kind,c.parameterName,c.parameterIndex,_)}function Lge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function kge(n,a,c,u,_){if(n.length===0)return Wr;if(n.length===1)return n[0];let T=(_?_.flags&1048576?`|${cm(_.types)}`:_.flags&2097152?`&${cm(_.types)}`:`#${_.type.id}|${cm(n)}`:cm(n))+lx(c,u),M=Zn.get(T);return M||(M=gg(1048576),M.objectFlags=a|EZ(n,98304),M.types=n,M.origin=_,M.aliasSymbol=c,M.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(M.flags|=16,M.intrinsicName="boolean"),Zn.set(T,M)),M}function Nst(n){let a=Qr(n);if(!a.resolvedType){let c=dx(n);a.resolvedType=ei(mn(n.types,Ti),1,c,hC(c))}return a.resolvedType}function Pst(n,a,c){let u=c.flags;return u&2097152?yOe(n,a,c.types):(zh(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 yOe(n,a,c){for(let u of c)a=Pst(n,a,vu(u));return a}function Mst(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||zh(u)&&a&470302716)&&Tv(n,c)}}function Lst(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 kst(n){let a=n.length,c=Vr(n,u=>!!(u.flags&128));for(;a>0;){a--;let u=n[a];if(u.flags&402653184){for(let _ of c)if(Fb(_,u)){Tv(n,a);break}else if(GA(u))return!0}}return!1}function vOe(n,a){for(let c=0;c!(u.flags&a))}function wst(n){let a,c=ql(n,T=>!!(Lr(T)&32768));if(c<0)return!1;let u=c+1;for(;u!!(mt.flags&469893116)||zh(mt))){if(_5(je,_e))return ye;if(!(je.flags&1048576&&Fm(je,mt=>_5(mt,_e)))&&!_5(_e,je))return Wr;M=67108864}}}let W=cm(T)+lx(a,c),V=Sr.get(W);if(!V){if(g&1048576)if(wst(T))V=ga(T,a,c);else if(oo(T,te=>!!(te.flags&1048576&&te.types[0].flags&32768))){let te=gt(T,k8)?k:Me;vOe(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))))vOe(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(!c5(T))return pt;let te=Wst(T),ye=gt(te,_e=>!!(_e.flags&2097152))&&wge(te)>wge(T)?Mge(2097152,T):void 0;V=ei(te,1,a,c,ye)}else V=Ost(T,M,a,c);Sr.set(W,V)}return V}function bOe(n){return ru(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function c5(n){var a;let c=bOe(n);return c>=1e5?((a=ir)==null||a.instant(ir.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 Wst(n){let a=bOe(n),c=[];for(let u=0;u=0;M--)if(n[M].flags&1048576){let W=n[M].types,V=W.length;_[M]=W[g%V],g=Math.floor(g/V)}let T=ga(_);T.flags&131072||c.push(T)}return c}function EOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?EOe(n.origin):wge(n.types)}function wge(n){return ru(n,(a,c)=>a+EOe(c),0)}function Fst(n){let a=Qr(n);if(!a.resolvedType){let c=dx(n),u=mn(n.types,Ti),_=u.length===2?u.indexOf(lc):-1,g=_>=0?u[1-_]:un,T=!!(g.flags&76||g.flags&134217728&&GA(g));a.resolvedType=ga(u,c,hC(c),T)}return a.resolvedType}function SOe(n,a){let c=gg(4194304);return c.type=n,c.indexFlags=a,c}function zst(n){let a=tx(4194304);return a.type=n,a}function TOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=SOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=SOe(n,0))}function AOe(n,a){let c=l_(n),u=hf(n),_=lv(n.target||n);if(!_&&!(a&2))return u;let g=[];if(jA(u)){if(cC(n))return TOe(n,a);YA(u,M)}else if(cC(n)){let W=Mu(wA(n));Yhe(W,8576,!!(a&1),M)}else YA(e5(u),M);let T=a&2?uc(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 M(W){let V=_?io(_,x8(n.mapper,c,W)):W;g.push(V===Ne?Io:V)}}function Bst(n){let a=l_(n);return c(lv(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 uv(n){if(Ki(n))return Wr;if(mp(n))return vu(po(n));if(Ya(n))return vu(Sg(n));let a=ST(n);return a!==void 0?Ku(Vi(a)):ht(n)?vu(po(n)):Wr}function mC(n,a,c){if(c||!(Tf(n)&6)){let u=qi(fZ(n)).nameType;if(!u){let _=No(n.valueDeclaration);u=n.escapedName==="default"?Ku("default"):_&&uv(_)||($2(n)?void 0:Ku(vl(n)))}if(u&&u.flags&a)return u}return Wr}function IOe(n,a){return!!(n.flags&a||n.flags&2097152&>(n.types,c=>IOe(c,a)))}function Gst(n,a,c){let u=c&&(Lr(n)&7||n.aliasSymbol)?zst(n):void 0,_=mn(_s(n),T=>mC(T,a)),g=mn(gu(n),T=>T!==Fr&&IOe(T.keyType,a)?T.keyType===Ne&&a&8?Io:T.keyType:Wr);return ei(bo(_,g),1,void 0,void 0,u)}function Oge(n,a=0){return!!(n.flags&58982400||Bb(n)||Hu(n)&&(!Bst(n)||_Z(n)===2)||n.flags&1048576&&!(a&4)&&rge(n)||n.flags&2097152&&Dl(n,465829888)&>(n.types,zh))}function J_(n,a=Ge){return n=d_(n),GM(n)?hge(J_(n.baseType,a)):Oge(n,a)?TOe(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?AOe(n,a):n===Tt?Tt:n.flags&2?Wr:n.flags&131073?Os:Gst(n,(a&2?128:402653316)|(a&1?0:12584),a===Ge)}function xOe(n){if(Ce)return n;let a=nst();return a?pC(a,[n,Ne]):Ne}function Vst(n){let a=xOe(J_(n));return a.flags&131072?Ne:a}function jst(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?Uge(H2(n.parent)):pt;break;case 148:a.resolvedType=Ti(n.type);break;default:R.assertNever(n.operator)}return a.resolvedType}function Ust(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=BA([n.head.text,...mn(n.templateSpans,c=>c.literal.text)],mn(n.templateSpans,c=>Ti(c.type)))),a.resolvedType}function BA(n,a){let c=ql(a,V=>!!(V.flags&1179648));if(c>=0)return c5(a)?cl(a[c],V=>BA(n,zG(a,c,V))):pt;if(zo(a,Tt))return Tt;let u=[],_=[],g=n[0];if(!W(n,a))return Ne;if(u.length===0)return Ku(g);if(_.push(g),oo(_,V=>V==="")){if(oo(u,V=>!!(V.flags&4)))return Ne;if(u.length===1&&GA(u[0]))return u[0]}let T=`${cm(u)}|${mn(_,V=>V.length).join(",")}|${_.join("")}`,M=yi.get(T);return M||yi.set(T,M=Kst(_,u)),M;function W(V,te){for(let ye=0;yecx(n,c)):a.flags&128?Ku(ROe(n,a.value)):a.flags&134217728?BA(...Jst(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||jA(a)?DOe(n,a):d5(a)?DOe(n,BA(["",""],[a])):a}function ROe(n,a){switch(w3.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 Jst(n,a,c){switch(w3.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>cx(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>cx(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[cx(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]===""?[cx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function DOe(n,a){let c=`${ba(n)},${yu(a)}`,u=$i.get(c);return u||$i.set(c,u=qst(n,a)),u}function qst(n,a){let c=yg(268435456,n);return c.type=a,c}function Xst(n,a,c,u,_){let g=gg(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function A8(n){if(fe)return!1;if(Lr(n)&4096)return!0;if(n.flags&1048576)return oo(n.types,A8);if(n.flags&2097152)return gt(n.types,A8);if(n.flags&465829888){let a=ege(n);return a!==n&&A8(a)}return!1}function RZ(n,a){return Qf(n)?Zf(n):a&&oc(a)?ST(a):void 0}function Wge(n,a){if(a.flags&8208){let c=Fn(n.parent,u=>!Ls(u))||n.parent;return T0(c)?v_(c)&&Fe(n)&&W8e(c,n):oo(a.declarations,u=>!Yo(u)||nv(u))}return!0}function COe(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,M=_&&Ki(_)?void 0:RZ(c,_);if(M!==void 0){if(g&256)return u0(a,M)||G;let V=ha(a,M);if(V){if(g&64&&_&&V.declarations&&ub(V)&&Wge(_,V)){let ye=T?.argumentExpression??(kT(_)?_.indexType:_);rv(ye,V.declarations,M)}if(T){if(V5(V,T,JWe(T.expression,a.symbol)),OFe(T,V,NI(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),BWe(T,V))return et}let te=g&4?MS(V):lr(V);return T&&NI(T)!==1?jb(T,te):_&&kT(_)&&k8(te)?ei([te,Me]):te}if(ap(a,Oa)&&ig(M)){let te=+M;if(_&&ap(a,ye=>!ye.target.hasRestElement)&&!(g&16)){let ye=Fge(_);if(Oa(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),dv(a),Vi(M))}else Ve(ye,f.Property_0_does_not_exist_on_type_1,Vi(M),Vn(a))}if(te>=0)return W(Eg(a,It)),g8e(a,te,g&1?k:void 0)}}if(!(c.flags&98304)&&xd(c,402665900)){if(a.flags&131073)return a;let V=y8(a,c)||Eg(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&&!xd(c,12)){let te=Fge(_);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&&Cu(c.symbol)===a.symbol)?ei([V.type,k]):V.type}if(c.flags&131072)return Wr;if(A8(a))return G;if(T&&!kee(a)){if(d0(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=>lr(ye));return ei(Tn(te,Me))}}if(a.symbol===tt&&M!==void 0&&tt.exports.has(M)&&tt.exports.get(M).flags&418)Ve(T,f.Property_0_does_not_exist_on_type_1,Vi(M),Vn(a));else if(fe&&!B.suppressImplicitAnyIndexErrors&&!(g&128))if(M!==void 0&&UWe(M,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,M,te,te+"["+fc(T.argumentExpression)+"]")}else if(n0(a,It))Ve(T.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let te;if(M!==void 0&&(te=lve(M,a)))te!==void 0&&Ve(T.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,M,Vn(a),te);else{let ye=Jut(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=Fo(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=Fo(void 0,f.Property_0_does_not_exist_on_type_1,"["+je+"]",Vn(a))}else c.flags&128||c.flags&256?_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Vn(a)):c.flags&12&&(_e=Fo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Vn(c),Vn(a)));_e=Fo(_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(A8(a))return G;if(_){let V=Fge(_);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&&(Zh(T)||Ej(T))&&Ve(T,f.Index_signature_in_type_0_only_permits_reading,Vn(a))}}function Fge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function d5(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||d5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||GA(n)}function GA(n){return!!(n.flags&134217728)&&oo(n.types,d5)||!!(n.flags&268435456)&&d5(n.type)}function NOe(n){return!!(n.flags&402653184)&&!GA(n)}function _C(n){return!!I8(n)}function VA(n){return!!(I8(n)&4194304)}function jA(n){return!!(I8(n)&8388608)}function I8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|ru(n.types,(a,c)=>a|I8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|I8(n.baseType)|I8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Hu(n)||Bb(n)?4194304:0)|(n.flags&63176704||NOe(n)?8388608:0)}function uy(n,a){return n.flags&8388608?$st(n,a):n.flags&16777216?Qst(n,a):n}function POe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Oge(n)){let u=mn(n.types,_=>uy(Cp(_,a),c));return n.flags&2097152||c?ga(u):ei(u)}}function Yst(n,a,c){if(a.flags&1048576){let u=mn(a.types,_=>uy(Cp(n,_),c));return c?ga(u):ei(u)}}function $st(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===rd?n:n[c];n[c]=rd;let u=uy(n.objectType,a),_=uy(n.indexType,a),g=Yst(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=POe(u,_,a);if(T)return n[c]=T}if(Bb(u)&&_.flags&296){let T=qM(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return Hu(u)&&_Z(u)!==2?n[c]=cl(DZ(u,n.indexType),T=>uy(T,a)):n[c]=n}function Qst(n,a){let c=n.checkType,u=n.extendsType,_=i0(n),g=o0(n);if(g.flags&131072&&Ob(_)===Ob(c)){if(c.flags&1||ya(HA(c),HA(u)))return uy(_,a);if(MOe(c,u))return Wr}else if(_.flags&131072&&Ob(g)===Ob(c)){if(!(c.flags&1)&&ya(HA(c),HA(u)))return Wr;if(c.flags&1||MOe(c,u))return uy(g,a)}return n}function MOe(n,a){return!!(ei([ZB(n,a),Wr]).flags&131072)}function DZ(n,a){let c=Np([l_(n)],[a]),u=zS(n.mapper,c);return io(ly(n.target||n),u)}function Cp(n,a,c=0,u,_,g){return wb(n,a,c,u,_,g)||(u?pt:un)}function LOe(n,a){return ap(n,c=>{if(c.flags&384){let u=Zf(c);if(ig(u)){let _=+u;return _>=0&&_0&&!gt(n.elements,a=>F4(a)||z4(a)||PR(a)&&!!(a.questionToken||a.dotDotDotToken))}function OOe(n,a){return _C(n)||a&&Oa(n)&>(wS(n),_C)}function Bge(n,a,c,u,_){let g,T,M=0;for(;;){if(M===1e3)return Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),pt;let V=io(Ob(n.checkType),a),te=io(n.extendsType,a);if(V===pt||te===pt)return pt;if(V===Tt||te===Tt)return Tt;let ye=K2(n.node.checkType),_e=K2(n.node.extendsType),je=wOe(ye)&&wOe(_e)&&Nn(ye.elements)===Nn(_e.elements),mt=OOe(V,je),At;if(n.inferTypeParameters){let sn=O8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=zS(sn.nonFixingMapper,a)),mt||hy(sn.inferences,V,te,1536),At=a?zS(sn.mapper,a):sn.mapper}let rn=At?io(n.extendsType,At):te;if(!mt&&!OOe(rn,je)){if(!(rn.flags&3)&&(V.flags&1||!ya(D8(V),D8(rn)))){(V.flags&1||c&&!(rn.flags&131072)&&Fm(D8(rn),rr=>ya(rr,D8(V))))&&(T||(T=[])).push(io(Ti(n.node.trueType),At||a));let sn=Ti(n.node.falseType);if(sn.flags&16777216){let rr=sn.root;if(rr.node.parent===n.node&&(!rr.isDistributive||rr.checkType===n.checkType)){n=rr;continue}if(W(sn,a))continue}g=io(sn,a);break}if(rn.flags&3||ya(HA(V),HA(rn))){let sn=Ti(n.node.trueType),rr=At||a;if(W(sn,rr))continue;g=io(sn,rr);break}}g=gg(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?_:pv(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=zS(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&&M++,!0}}return!1}}function i0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ti(n.root.node.trueType),n.mapper))}function o0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ti(n.root.node.falseType),n.mapper))}function Zst(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ti(n.root.node.trueType),n.combinedMapper):i0(n))}function WOe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Tn(a,$s(c)))}),a}function elt(n){return n.isDistributive&&(m5(n.checkType,n.node.trueType)||m5(n.checkType,n.node.falseType))}function tlt(n){let a=Qr(n);if(!a.resolvedType){let c=Ti(n.checkType),u=dx(n),_=hC(u),g=Rn(n,!0),T=_?g:Vr(g,W=>m5(W,n)),M={node:n,checkType:c,extendsType:Ti(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:WOe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=Bge(M,void 0,!1),T&&(M.instantiations=new Map,M.instantiations.set(cm(T),a.resolvedType))}return a.resolvedType}function nlt(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=kA(Tr(n.typeParameter))),a.resolvedType}function FOe(n){return Fe(n)?[n]:Tn(FOe(n.left),n.right)}function rlt(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=pt;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=hu(n,n.argument.literal);if(!_)return c.resolvedSymbol=lt,c.resolvedType=pt;let g=!!((a=_.exports)!=null&&a.get("export=")),T=Ip(_,!1);if(Bl(n.qualifier))if(T.flags&u)c.resolvedType=zOe(n,c,T,u);else{let M=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,M,n.argument.literal.text),c.resolvedSymbol=lt,c.resolvedType=pt}else{let M=FOe(n.qualifier),W=T,V;for(;V=M.shift();){let te=M.length?1920:u,ye=es(Ul(W)),_e=n.isTypeOf||or(n)&&g?ha(lr(ye),V.escapedText,!1,!0):void 0,mt=(n.isTypeOf?void 0:Uu(xp(ye),V.escapedText,te))??_e;if(!mt)return Ve(V,f.Namespace_0_has_no_exported_member_1,Vp(W),xs(V)),c.resolvedType=pt;Qr(V).resolvedSymbol=mt,Qr(V.parent).resolvedSymbol=mt,W=mt}c.resolvedType=zOe(n,c,W,u)}}return c.resolvedType}function zOe(n,a,c,u){let _=Ul(c);return a.resolvedSymbol=_,u===111551?bFe(lr(c),n):TZ(n,_)}function BOe(n){let a=Qr(n);if(!a.resolvedType){let c=dx(n);if(Pb(n.symbol).size===0&&!c)a.resolvedType=lc;else{let u=kf(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=hC(c),BT(n)&&n.isArrayType&&(u=Gd(u)),a.resolvedType=u}}return a.resolvedType}function dx(n){let a=n.parent;for(;MT(a)||Z0(a)||LT(a)&&a.operator===148;)a=a.parent;return G2(a)?Tr(a):void 0}function hC(n){return n?Nr(n):void 0}function CZ(n){return!!(n.flags&524288)&&!Hu(n)}function Gge(n){return fy(n)||!!(n.flags&474058748)}function Vge(n,a){if(!(n.flags&1048576))return n;if(oo(n.types,Gge))return Gr(n.types,fy)||Na;let c=Gr(n.types,g=>!Gge(g));if(!c||Gr(n.types,g=>g!==c&&!Gge(g)))return n;return _(c);function _(g){let T=oa();for(let W of _s(g))if(!(Tf(W)&6)){if(NZ(W)){let V=W.flags&65536&&!(W.flags&32768),ye=Ka(16777220,W.escapedName,Xhe(W)|(a?8:0));ye.links.type=V?Me:op(lr(W),!0),ye.declarations=W.declarations,ye.links.nameType=qi(W).nameType,ye.links.syntheticOrigin=W,T.set(W.escapedName,ye)}}let M=Ps(g.symbol,T,Xe,Xe,gu(g));return M.objectFlags|=131200,M}}function OS(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=Vge(n,_),n.flags&1048576)return c5([n,a])?cl(n,V=>OS(V,a,c,u,_)):pt;if(a=Vge(a,_),a.flags&1048576)return c5([n,a])?cl(a,V=>OS(n,V,c,u,_)):pt;if(a.flags&473960444)return n;if(VA(n)||VA(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(bo(V.slice(0,V.length-1),[OS(te,a,c,u,_)]))}return ga([n,a])}let g=oa(),T=new Set,M=n===Na?gu(a):Ewe([n,a]);for(let V of _s(a))Tf(V)&6?T.add(V.escapedName):NZ(V)&&g.set(V.escapedName,jge(V,_));for(let V of _s(n))if(!(T.has(V.escapedName)||!NZ(V)))if(g.has(V.escapedName)){let te=g.get(V.escapedName),ye=lr(te);if(te.flags&16777216){let _e=bo(V.declarations,te.declarations),je=4|V.flags&16777216,mt=Ka(je,V.escapedName),At=lr(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,jge(V,_));let W=Ps(c,g,Xe,Xe,Mc(M,V=>ilt(V,_)));return W.objectFlags|=2228352|u,W}function NZ(n){var a;return!gt(n.declarations,su)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function jge(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===m_(n))return n;let u=4|n.flags&16777216,_=Ka(u,n.escapedName,Xhe(n)|(a?8:0));return _.links.type=c?Me:lr(n),_.declarations=n.declarations,_.links.nameType=qi(n).nameType,_.links.syntheticOrigin=n,_}function ilt(n,a){return n.isReadonly!==a?Wh(n.keyType,n.type,a,n.declaration):n}function u5(n,a,c,u){let _=yg(n,c);return _.value=a,_.regularType=u||_,_}function ux(n){if(n.flags&2976){if(!n.freshType){let a=u5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function vu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=cl(n,vu)):n}function WS(n){return!!(n.flags&2976)&&n.freshType===n}function Ku(n){let a;return on.get(n)||(on.set(n,a=u5(128,n)),a)}function u_(n){let a;return $e.get(n)||($e.set(n,a=u5(256,n)),a)}function PZ(n){let a,c=z0(n);return Ot.get(c)||(Ot.set(c,a=u5(2048,n)),a)}function olt(n,a,c){let u,_=`${a}${typeof n=="string"?"@":"#"}${n}`,g=1024|(typeof n=="string"?128:256);return In.get(_)||(In.set(_,u=u5(g,n,c)),u)}function alt(n){if(n.literal.kind===106)return ue;let a=Qr(n);return a.resolvedType||(a.resolvedType=vu(po(n.literal))),a.resolvedType}function slt(n){let a=yg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${ba(a.symbol)}`,a}function Uge(n){if(or(n)&&Z0(n)){let a=ET(n);a&&(n=CI(a)||a)}if(rie(n)){let a=wF(n)?pf(n.left):pf(n);if(a){let c=qi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=slt(a))}}return xi}function llt(n){let a=wu(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!na(a)&&(!Ml(a)||P0(n,a.body)))return Wf(Tr(c)).thisType;if(c&&La(c)&&pr(c.parent)&&Gl(c.parent)===6)return Wf(pf(c.parent.left).parent).thisType;let u=n.flags&16777216?cE(n):void 0;return u&&ks(u)&&pr(u.parent)&&Gl(u.parent)===3?Wf(pf(u.parent.left).parent).thisType:$_(a)&&P0(n,a.body)?Wf(Tr(a)).thisType:(Ve(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),pt)}function MZ(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=llt(n)),a.resolvedType}function GOe(n){return Ti(p5(n.type)||n.type)}function p5(n){switch(n.kind){case 196:return p5(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return p5(n.type);break;case 188:return n.elementType}}function clt(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?GOe(n):op(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Gat(VOe(n),n)}function VOe(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 tr;case 157:return Me;case 106:return ue;case 146:return Wr;case 151:return n.flags&524288&&!fe?G:Hr;case 141:return dn;case 197:case 110:return MZ(n);case 201:return alt(n);case 183:return bge(n);case 182:return n.assertsModifier?tr:gi;case 233:return bge(n);case 186:return Zwe(n);case 188:case 189:return gst(n);case 190:return Est(n);case 192:return Nst(n);case 193:return Fst(n);case 321:return Vat(n);case 323:return op(Ti(n.type));case 202:return clt(n);case 196:case 322:case 316:return Ti(n.type);case 191:return GOe(n);case 325:return uht(n);case 184:case 185:case 187:case 329:case 324:case 330:return BOe(n);case 198:return jst(n);case 199:return kOe(n);case 200:return zge(n);case 194:return tlt(n);case 195:return nlt(n);case 203:return Ust(n);case 205:return rlt(n);case 80:case 166:case 211:let a=zm(n);return a?$s(a):pt;default:return pt}}function LZ(n,a,c){if(n&&n.length)for(let u=0;uu.typeParameter),mn(c,()=>un))}function zS(n,a){return n?wZ(4,n,a):a}function plt(n,a){return n?wZ(5,n,a):a}function UA(n,a,c){return c?wZ(5,FS(n,a),c):FS(n,a)}function x8(n,a,c){return n?wZ(5,n,FS(a,c)):FS(a,c)}function flt(n){return!n.constraint&&!mge(n)||n.constraint===Gs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=mf(n.symbol),n.restrictiveInstantiation.constraint=Gs,n.restrictiveInstantiation)}function Kge(n){let a=mf(n.symbol);return a.target=n,a}function mlt(n,a){return o5(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function gC(n,a,c){let u;if(n.typeParameters&&!c){u=mn(n.typeParameters,Kge),a=zS(Np(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=bg(n.declaration,u,n.thisParameter&&Jge(n.thisParameter,a),LZ(n.parameters,a,Jge),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function Jge(n,a){let c=qi(n);if(c.type&&!c0(c.type)&&(!(n.flags&65536)||c.writeType&&!c0(c.writeType)))return n;Al(n)&1&&(n=c.target,a=zS(c.mapper,a));let u=Ka(n.flags,n.escapedName,1|Al(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 _lt(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,M=g.outerTypeParameters;if(!M){let W=Rn(_,!0);if($_(_)){let te=Fwe(_);W=Ur(W,te)}M=W||Xe;let V=n.objectFlags&8388612?[_]:n.symbol.declarations;M=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?Vr(M,te=>gt(V,ye=>m5(te,ye))):M,g.outerTypeParameters=M}if(M.length){let W=zS(n.mapper,a),V=mn(M,mt=>Wb(mt,W)),te=c||n.aliasSymbol,ye=c?u:pv(n.aliasTypeArguments,a),_e=cm(V)+lx(te,ye);T.instantiations||(T.instantiations=new Map,T.instantiations.set(cm(M)+lx(T.aliasSymbol,T.aliasTypeArguments),T));let je=T.instantiations.get(_e);if(!je){let mt=Np(M,V);je=T.objectFlags&4?_ge(n.target,n.node,mt,te,ye):T.objectFlags&32?glt(T,mt,te,ye):qge(T,mt,te,ye),T.instantiations.set(_e,je);let At=Lr(je);if(je.flags&3899393&&!(At&524288)){let rn=gt(V,c0);Lr(je)&524288||(At&52?je.objectFlags|=524288|(rn?1048576:0):je.objectFlags|=rn?0:524288)}}return je}return n}function hlt(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 m5(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&&Bo(_.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&&Yh(u)&&hlt(u)&&VOe(u)===n;case 186:let _=u.exprName,g=Fp(_);if(!O0(g)){let T=Wm(g),M=n.symbol.declarations[0],W=M.kind===168?M.parent:n.isThisType?M:void 0;if(T.declarations&&W)return gt(T.declarations,V=>P0(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!!Bo(u,c)}}function R8(n){let a=hf(n);if(a.flags&4194304){let c=Ob(a.type);if(c.flags&262144)return c}}function glt(n,a,c,u){let _=R8(n);if(_){let T=io(_,a);if(_!==T)return J8e(d_(T),g,c,u)}return io(hf(n),a)===Tt?Tt:qge(n,a,c,u);function g(T){if(T.flags&61603843&&T!==Tt&&!Ut(T)){if(!n.declaration.nameType){let M;if(Gf(T)||T.flags&1&&ix(_,4)<0&&(M=Pu(_))&&ap(M,s0))return vlt(T,n,UA(_,T,a));if(Oa(T))return ylt(T,n,_,a);if(Mwe(T))return ga(mn(T.types,g))}return qge(n,UA(_,T,a))}return T}}function HOe(n,a){return a&1?!0:a&2?!1:n}function ylt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?UA(c,n,u):u,M=mn(wS(n),(ye,_e)=>{let je=_[_e];return _eye&1?2:ye):W&8?mn(_,ye=>ye&2?1:ye):_,te=HOe(n.target.readonly,wh(a));return zo(M,pt)?pt:Fh(M,V,te,n.target.labeledElementDeclarations)}function vlt(n,a,c){let u=KOe(a,It,!0,c);return Ut(u)?pt:Gd(u,HOe(KM(n),wh(a)))}function KOe(n,a,c,u){let _=x8(u,l_(n),a),g=io(ly(n.target||n),_),T=wh(n);return J&&T&4&&!Dl(g,49152)?Gb(g,!0):J&&T&8&&c?um(g,524288):g}function qge(n,a,c,u){R.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=l_(n),T=Kge(g);_.typeParameter=T,a=zS(FS(g,T),a),T.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?u:pv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?EZ(_.aliasTypeArguments):0,_}function Xge(n,a,c,u,_){let g=n.root;if(g.outerTypeParameters){let T=mn(g.outerTypeParameters,V=>Wb(V,a)),M=(c?"C":"")+cm(T)+lx(u,_),W=g.instantiations.get(M);if(!W){let V=Np(g.outerTypeParameters,T),te=g.checkType,ye=g.isDistributive?d_(Wb(te,V)):void 0;W=ye&&te!==ye&&ye.flags&1179648?J8e(ye,_e=>Bge(g,UA(te,_e,V),c),u,_):Bge(g,V,c,u,_),g.instantiations.set(M,W)}return W}return n}function io(n,a){return n&&a?JOe(n,a,void 0,void 0):n}function JOe(n,a,c,u){var _;if(!c0(n))return n;if(A===100||S>=5e6)return(_=ir)==null||_.instant(ir.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:A,instantiationCount:S}),Ve(D,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),pt;E++,S++,A++;let g=blt(n,a,c,u);return A--,g}function blt(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,M=pv(T,a);return M!==T?Cge(n.target,M):n}return g&1024?Elt(n,a):_lt(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,M=pv(T,a);if(M===T&&c===n.aliasSymbol)return n;let W=c||n.aliasSymbol,V=c?u:pv(n.aliasTypeArguments,a);return _&2097152||g&&g.flags&2097152?ga(M,W,V):ei(M,1,W,V)}if(_&4194304)return J_(io(n.type,a));if(_&134217728)return BA(n.texts,pv(n.types,a));if(_&268435456)return cx(n.symbol,io(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:pv(n.aliasTypeArguments,a);return Cp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return Xge(n,zS(n.mapper,a),!1,c,u);if(_&33554432){let g=io(n.baseType,a);if(GM(n))return hge(g);let T=io(n.constraint,a);return g.flags&8650752&&_C(T)?yge(g,T):T.flags&3||ya(HA(g),HA(T))?g:g.flags&8650752?yge(g,T):ga([T,g])}return n}function Elt(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 _=I8e(io(n.source,a),c,u);return _||n}function D8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,_l))}function HA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Bs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Slt(n,a){return Wh(n.keyType,io(n.type,a),n.isReadonly,n.declaration)}function zf(n){switch(R.assert(n.kind!==174||bm(n)),n.kind){case 218:case 219:case 174:case 262:return qOe(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 qOe(n){return G6(n)||Tlt(n)}function Tlt(n){return n.typeParameters||$f(n)||!n.body?!1:n.body.kind!==241?zf(n.body):!!R0(n.body,a=>!!a.expression&&zf(a.expression))}function OZ(n){return(B0(n)||bm(n))&&qOe(n)}function XOe(n){if(n.flags&524288){let a=c_(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,XOe));return n}function py(n,a){return q_(n,a,np)}function C8(n,a){return q_(n,a,np)?-1:0}function Yge(n,a){return q_(n,a,ju)?-1:0}function Alt(n,a){return q_(n,a,xh)?-1:0}function Fb(n,a){return q_(n,a,xh)}function _5(n,a){return q_(n,a,Mf)}function ya(n,a){return q_(n,a,ju)}function a0(n,a){return n.flags&1048576?oo(n.types,c=>a0(c,a)):a.flags&1048576?gt(a.types,c=>a0(n,c)):n.flags&2097152?gt(n.types,c=>a0(c,a)):n.flags&58982400?a0(Bd(n)||un,a):zh(a)?!!(n.flags&67633152):a===Re?!!(n.flags&67633152)&&!zh(n):a===Lt?!!(n.flags&524288)&&Cye(n):aC(n,sv(a))||Gf(a)&&!KM(a)&&a0(n,Qo)}function WZ(n,a){return q_(n,a,Ap)}function h5(n,a){return WZ(n,a)||WZ(a,n)}function tu(n,a,c,u,_,g){return Bf(n,a,ju,c,u,_,g)}function zb(n,a,c,u,_,g){return $ge(n,a,ju,c,u,_,g,void 0)}function $ge(n,a,c,u,_,g,T,M){return q_(n,a,c)?!0:!u||!N8(_,n,a,c,g,T,M)?Bf(n,a,c,u,g,T,M):!1}function YOe(n){return!!(n.flags&16777216||n.flags&2097152&>(n.types,YOe))}function N8(n,a,c,u,_,g,T){if(!n||YOe(c))return!1;if(!Bf(a,c,u,void 0)&&Ilt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!pb(n))break;case 294:case 217:return N8(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return N8(n.right,a,c,u,_,g,T)}break;case 210:return Llt(n,a,c,u,g,T);case 209:return Plt(n,a,c,u,g,T);case 292:return Nlt(n,a,c,u,g,T);case 219:return xlt(n,a,c,u,g,T)}return!1}function Ilt(n,a,c,u,_,g,T){let M=Ko(a,0),W=Ko(a,1);for(let V of[W,M])if(gt(V,te=>{let ye=us(te);return!(ye.flags&131073)&&Bf(ye,c,u,void 0)})){let te=T||{};tu(a,c,n,_,g,te);let ye=te.errors[te.errors.length-1];return Ma(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 xlt(n,a,c,u,_,g){if(Ho(n.body)||gt(n.parameters,yF))return!1;let T=eI(a);if(!T)return!1;let M=Ko(c,0);if(!Nn(M))return!1;let W=n.body,V=us(T),te=ei(mn(M,us));if(!Bf(V,te,u,void 0)){let ye=W&&N8(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)&&Ma(_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($5(V),te,u,void 0)&&Ma(_e.errors[_e.errors.length-1],Pr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function $Oe(n,a,c){let u=wb(a,c);if(u)return u;if(a.flags&1048576){let _=o8e(n,a);if(_)return wb(_,c)}}function QOe(n,a){w5(n,a,!1);let c=iL(n,1);return B8(),c}function g5(n,a,c,u,_,g){let T=!1;for(let M of n){let{errorNode:W,innerExpression:V,nameType:te,errorMessage:ye}=M,_e=$Oe(a,c,te);if(!_e||_e.flags&8388608)continue;let je=wb(a,te);if(!je)continue;let mt=RZ(te,void 0);if(!Bf(je,_e,u,void 0)){let At=V&&N8(V,je,_e,u,void 0,_,g);if(T=!0,!At){let rn=g||{},sn=V?QOe(V,je):je;if(Ie&&zZ(sn,_e)){let rr=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(rr),rn.errors=[rr]}else{let rr=!!(mt&&(ha(c,mt)||lt).flags&16777216),Mn=!!(mt&&(ha(a,mt)||lt).flags&16777216);_e=Vb(_e,rr),je=Vb(je,rr&&Mn),Bf(sn,_e,u,W,ye,_,rn)&&sn!==je&&Bf(je,_e,u,W,ye,_,rn)}if(rn.errors){let rr=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=y8(c,te);Ln&&Ln.declaration&&!Gn(Ln.declaration).hasNoDefaultLib&&(On=!0,Ma(rr,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||Ma(rr,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 Rlt(n,a,c,u,_,g){let T=uc(c,KZ),M=uc(c,te=>!KZ(te)),W=M!==Wr?Jve(13,0,M,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!==Wr?$Oe(a,T,je):void 0;if(rn&&!(rn.flags&8388608)&&(At=W?ei([W,rn]):rn),!At)continue;let sn=wb(a,je);if(!sn)continue;let rr=RZ(je,void 0);if(!Bf(sn,At,u,void 0)){let Mn=_e&&N8(_e,sn,At,u,void 0,_,g);if(V=!0,!Mn){let an=g||{},On=_e?QOe(_e,sn):sn;if(Ie&&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=!!(rr&&(ha(T,rr)||lt).flags&16777216),$n=!!(rr&&(ha(a,rr)||lt).flags&16777216);At=Vb(At,Ln),sn=Vb(sn,Ln&&$n),Bf(On,At,u,ye,mt,_,an)&&On!==sn&&Bf(sn,At,u,ye,mt,_,an)}}}}return V}function*Dlt(n){if(Nn(n.properties))for(let a of n.properties)s1(a)||Yye(gk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Ku(gk(a.name))})}function*Clt(n,a){if(!Nn(n.children))return;let c=0;for(let u=0;u1,rn,sn;if(Ige(!1)!==Mo){let Mn=dOe(G);rn=uc(je,an=>ya(an,Mn)),sn=uc(je,an=>!ya(an,Mn))}else rn=uc(je,KZ),sn=uc(je,Mn=>!KZ(Mn));if(At){if(rn!==Wr){let Mn=Fh(yee(V,0)),an=Clt(V,W);T=Rlt(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!==Wr){let Mn=mt[0],an=ZOe(Mn,_e,W);an&&(T=g5(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(!M){let V=fc(n.parent.tagName),te=W5(QA(n)),ye=te===void 0?"children":Vi(te),_e=Cp(c,Ku(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;M={...je,key:"!!ALREADY FORMATTED!!",message:nU(je,V,ye,Vn(_e))}}return M}}function*e8e(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=wat(a),n=eFe(n,a,void 0,T));let te=Kp(n),ye=U8(n),_e=U8(a);(ye||_e)&&io(ye||_e,M);let je=a.declaration?a.declaration.kind:0,mt=!(c&3)&&re&&je!==174&&je!==173&&je!==176,At=-1,rn=r0(n);if(rn&&rn!==tr){let Mn=r0(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),rr=ye||_e?sn-1:-1;for(let Mn=0;Mn=Q_(n)&&Mn=3&&a[0].flags&32768&&a[1].flags&65536&>(a,zh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function UM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function n8e(n){return n.flags&524288&&!Hu(n)&&_s(n).length===0&&gu(n).length===1&&!!Eg(n,Ne)||n.flags&3145728&&oo(n.types,n8e)||!1}function eye(n,a,c){let u=n.flags&8?Cu(n):n,_=a.flags&8?Cu(a):a;if(u===_)return!0;if(u.escapedName!==_.escapedName||!(u.flags&256)||!(_.flags&256))return!1;let g=ba(u)+","+ba(_),T=ev.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let M=lr(_);for(let W of _s(lr(u)))if(W.flags&8){let V=ha(M,W.escapedName);if(!V||!(V.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,vl(W),Vn($s(_),void 0,64)),ev.set(g,6)):ev.set(g,2),!1;let te=DC(dl(W,306)),ye=DC(dl(V,306));if(te!==ye){let _e=typeof te=="string",je=typeof ye=="string";if(te!==void 0&&ye!==void 0){if(!c)ev.set(g,2);else{let mt=_e?`"${eg(te)}"`:te,At=je?`"${eg(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),ev.set(g,6)}return!1}if(_e||je){if(!c)ev.set(g,2);else{let mt=te??ye;R.assert(typeof mt=="string");let At=`"${eg(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),ev.set(g,6)}return!1}}}return ev.set(g,1),!0}function P8(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&&eye(n.symbol,a.symbol,u)||_&1024&&g&1024&&(_&1048576&&g&1048576&&eye(n.symbol,a.symbol,u)||_&2944&&g&2944&&n.value===a.value&&eye(n.symbol,a.symbol,u))||_&32768&&(!J&&!(g&3145728)||g&49152)||_&65536&&(!J&&!(g&3145728)||g&65536)||_&524288&&g&67108864&&!(c===Mf&&zh(n)&&!(Lr(n)&8192))||(c===ju||c===Ap)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||Wlt(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)&&P8(a,n,c)||P8(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 r8e(n,a){return Lr(n)&2048&&Yye(a.escapedName)}function y5(n,a){for(;;){let c=WS(n)?n.regularType:Bb(n)?zlt(n,a):Lr(n)&4?n.node?cv(n.target,Hs(n)):sye(n)||n:n.flags&3145728?Flt(n,a):n.flags&33554432?a?n.baseType:vge(n):n.flags&25165824?uy(n,a):n;if(c===n)return c;n=c}}function Flt(n,a){let c=d_(n);if(c!==n)return c;if(n.flags&2097152&>(n.types,zh)){let u=Mc(n.types,_=>y5(_,a));if(u!==n.types)return ga(u)}return n}function zlt(n,a){let c=wS(n),u=Mc(c,_=>_.flags&25165824?uy(_,a):_);return c!==u?Nge(n.target,u):n}function Bf(n,a,c,u,_,g,T){var M;let W,V,te,ye,_e,je,mt=0,At=0,rn=0,sn=0,rr=!1,Mn=0,an=0,On,Ln,$n=16e6-c.size>>3;R.assert(c!==np||!u,"no error reporting in identity checking");let jn=yr(n,a,3,!!u,_);if(Ln&&Wo(),rr){let Ze=VZ(n,a,0,c,!1);c.set(Ze,6),(M=ir)==null||M.instant(ir.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:At,targetDepth:rn});let vt=$n<=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&&(uoe($t,W),W=$t)}let Ze;if(_&&u&&!jn&&n.symbol){let $t=qi(n.symbol);if($t.originatingImport&&!Op($t.originatingImport)&&Bf(lr($t.target),a,c,void 0)){let Ir=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);Ze=Tn(Ze,Ir)}}let vt=Mg(Gn(u),u,W,Ze);V&&Ma(vt,...V),T&&(T.errors||(T.errors=[])).push(vt),(!T||!T.skipLogging)&&Qa.add(vt)}return u&&T&&T.skipLogging&&jn===0&&R.assert(!!T.errors,"missed opportunity to interact with error."),jn!==0;function Qn(Ze){W=Ze.errorInfo,On=Ze.lastSkippedInfo,Ln=Ze.incompatibleStack,Mn=Ze.overrideNextErrorInfo,an=Ze.skipParentCounter,V=Ze.relatedInfo}function xo(){return{errorInfo:W,lastSkippedInfo:On,incompatibleStack:Ln?.slice(),overrideNextErrorInfo:Mn,skipParentCounter:an,relatedInfo:V?.slice()}}function vo(Ze,...vt){Mn++,On=void 0,(Ln||(Ln=[])).push([Ze,...vt])}function Wo(){let Ze=Ln||[];Ln=void 0;let vt=On;if(On=void 0,Ze.length===1){fo(...Ze[0]),vt&&sp(void 0,...vt);return}let $t="",Hn=[];for(;Ze.length;){let[Ir,...bn]=Ze.pop();switch(Ir.code){case f.Types_of_property_0_are_incompatible.code:{$t.indexOf("new ")===0&&($t=`(${$t})`);let hr=""+bn[0];$t.length===0?$t=`${hr}`:Yp(hr,rs(B))?$t=`${$t}.${hr}`:hr[0]==="["&&hr[hr.length-1]==="]"?$t=`${$t}${hr}`:$t=`${$t}[${hr}]`;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 hr=Ir;Ir.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?hr=f.Call_signature_return_types_0_and_1_are_incompatible:Ir.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(hr=f.Construct_signature_return_types_0_and_1_are_incompatible),Hn.unshift([hr,bn[0],bn[1]])}else{let hr=Ir.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Ir.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Br=Ir.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Ir.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";$t=`${hr}${$t}(${Br})`}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 R.fail(`Unhandled Diagnostic: ${Ir.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[Ir,...bn]of Hn){let hr=Ir.elidedInCompatabilityPyramid;Ir.elidedInCompatabilityPyramid=!1,fo(Ir,...bn),Ir.elidedInCompatabilityPyramid=hr}vt&&sp(void 0,...vt)}function fo(Ze,...vt){R.assert(!!u),Ln&&Wo(),!Ze.elidedInCompatabilityPyramid&&(an===0?W=Fo(W,Ze,...vt):an--)}function Cc(Ze,...vt){fo(Ze,...vt),an++}function Vf(Ze){R.assert(!!W),V?V.push(Ze):V=[Ze]}function sp(Ze,vt,$t){Ln&&Wo();let[Hn,Ir]=rx(vt,$t),bn=vt,hr=Hn;if(M8(vt)&&!tye($t)&&(bn=my(vt),R.assert(!ya(bn,$t),"generalized source shouldn't be assignable"),hr=Sb(bn)),($t.flags&8388608&&!(vt.flags&8388608)?$t.objectType.flags:$t.flags)&262144&&$t!==de&&$t!==$){let zi=Bd($t),wo;zi&&(ya(bn,zi)||(wo=ya(vt,zi)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,wo?Hn:hr,Ir,Vn(zi)):(W=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ir,hr))}if(Ze)Ze===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ie&&i8e(vt,$t).length&&(Ze=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)Ze=f.Type_0_is_not_comparable_to_type_1;else if(Hn===Ir)Ze=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ie&&i8e(vt,$t).length)Ze=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 zi=qut(vt,$t);if(zi){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,hr,Ir,Vn(zi));return}}Ze=f.Type_0_is_not_assignable_to_type_1}fo(Ze,hr,Ir)}function Pn(Ze,vt){let $t=Tb(Ze.symbol)?Vn(Ze,Ze.symbol.valueDeclaration):Vn(Ze),Hn=Tb(vt.symbol)?Vn(vt,vt.symbol.valueDeclaration):Vn(vt);(ec===Ze&&Ne===vt||vc===Ze&&It===vt||ll===Ze&&gi===vt||oOe()===Ze&&xi===vt)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Hn,$t)}function Xn(Ze,vt,$t){return Oa(Ze)?Ze.target.readonly&&S5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Ze),Vn(vt)),!1):s0(vt):KM(Ze)&&S5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Vn(Ze),Vn(vt)),!1):Oa(vt)?Gf(Ze):!0}function ro(Ze,vt,$t){return yr(Ze,vt,3,$t)}function yr(Ze,vt,$t=3,Hn=!1,Ir,bn=0){if(Ze===vt)return-1;if(Ze.flags&524288&&vt.flags&402784252)return c===Ap&&!(vt.flags&131072)&&P8(vt,Ze,c)||P8(Ze,vt,c,Hn?fo:void 0)?-1:(Hn&&Do(Ze,vt,Ze,vt,Ir),0);let hr=y5(Ze,!1),Br=y5(vt,!0);if(hr===Br)return-1;if(c===np)return hr.flags!==Br.flags?0:hr.flags&67358815?-1:(os(hr,Br),Ai(hr,Br,!1,0,$t));if(hr.flags&262144&&OA(hr)===Br)return-1;if(hr.flags&470302716&&Br.flags&1048576){let zi=Br.types,wo=zi.length===2&&zi[0].flags&98304?zi[1]:zi.length===3&&zi[0].flags&98304&&zi[1].flags&98304?zi[2]:void 0;if(wo&&!(wo.flags&98304)&&(Br=y5(wo,!0),hr===Br))return-1}if(c===Ap&&!(Br.flags&131072)&&P8(Br,hr,c)||P8(hr,Br,c,Hn?fo:void 0))return-1;if(hr.flags&469499904||Br.flags&469499904){if(!(bn&2)&&d0(hr)&&Lr(hr)&8192&&Vd(hr,Br,Hn))return Hn&&sp(Ir,hr,vt.aliasSymbol?vt:Br),0;let wo=(c!==Ap||p_(hr))&&!(bn&2)&&hr.flags&405405692&&hr!==Re&&Br.flags&2621440&&a8e(Br)&&(_s(hr).length>0||Qee(hr)),pa=!!(Lr(hr)&2048);if(wo&&!Glt(hr,Br,pa)){if(Hn){let Lo=Vn(Ze.aliasSymbol?Ze:hr),Ia=Vn(vt.aliasSymbol?vt:Br),Ds=Ko(hr,0),ps=Ko(hr,1);Ds.length>0&&yr(us(Ds[0]),Br,1,!1)||ps.length>0&&yr(us(ps[0]),Br,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Lo,Ia):fo(f.Type_0_has_no_properties_in_common_with_type_1,Lo,Ia)}return 0}os(hr,Br);let Ei=hr.flags&1048576&&hr.types.length<4&&!(Br.flags&1048576)||Br.flags&1048576&&Br.types.length<4&&!(hr.flags&469499904)?Lu(hr,Br,Hn,bn):Ai(hr,Br,Hn,bn,$t);if(Ei)return Ei}return Hn&&Do(Ze,vt,hr,Br,Ir),0}function Do(Ze,vt,$t,Hn,Ir){var bn,hr;let Br=!!sye(Ze),zi=!!sye(vt);$t=Ze.aliasSymbol||Br?Ze:$t,Hn=vt.aliasSymbol||zi?vt:Hn;let wo=Mn>0;if(wo&&Mn--,$t.flags&524288&&Hn.flags&524288){let pa=W;Xn($t,Hn,!0),W!==pa&&(wo=!!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=jS(tf.IntrinsicAttributes,u),Ei=jS(tf.IntrinsicClassAttributes,u);if(!Ut(fa)&&!Ut(Ei)&&(zo(pa,fa)||zo(pa,Ei)))return}else W=ige(W,vt);if(!Ir&&wo){On=[$t,Hn];return}if(sp(Ir,$t,Hn),$t.flags&262144&&((hr=(bn=$t.symbol)==null?void 0:bn.declarations)!=null&&hr[0])&&!OA($t)){let pa=Kge($t);if(pa.constraint=io(Hn,FS($t,pa)),n5(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 os(Ze,vt){if(ir&&Ze.flags&3145728&&vt.flags&3145728){let $t=Ze,Hn=vt;if($t.objectFlags&Hn.objectFlags&32768)return;let Ir=$t.types.length,bn=Hn.types.length;Ir*bn>1e6&&ir.instant(ir.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Ze.id,sourceSize:Ir,targetId:vt.id,targetSize:bn,pos:u?.pos,end:u?.end})}}function Es(Ze,vt){return ei(ru(Ze,(Hn,Ir)=>{var bn;Ir=Mu(Ir);let hr=Ir.flags&3145728?r5(Ir,vt):t0(Ir,vt),Br=hr&&lr(hr)||((bn=sx(Ir,vt))==null?void 0:bn.type)||Me;return Tn(Hn,Br)},void 0)||Xe)}function Vd(Ze,vt,$t){var Hn;if(!z5(vt)||!fe&&Lr(vt)&4096)return!1;let Ir=!!(Lr(Ze)&2048);if((c===ju||c===Ap)&&($M(Re,vt)||!Ir&&fy(vt)))return!1;let bn=vt,hr;vt.flags&1048576&&(bn=T4e(Ze,vt,yr)||$gt(vt),hr=bn.flags&1048576?bn.types:[bn]);for(let Br of _s(Ze))if(Wa(Br,Ze.symbol)&&!r8e(Ze,Br)){if(!Zye(bn,Br.escapedName,Ir)){if($t){let zi=uc(bn,z5);if(!u)return R.fail();if(Y0(u)||lu(u)||lu(u.parent)){Br.valueDeclaration&&M_(Br.valueDeclaration)&&Gn(u)===Gn(Br.valueDeclaration.name)&&(u=Br.valueDeclaration.name);let wo=Si(Br),pa=KWe(wo,zi),fa=pa?Si(pa):void 0;fa?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,wo,Vn(zi),fa):fo(f.Property_0_does_not_exist_on_type_1,wo,Vn(zi))}else{let wo=((Hn=Ze.symbol)==null?void 0:Hn.declarations)&&Yc(Ze.symbol.declarations),pa;if(Br.valueDeclaration&&Fn(Br.valueDeclaration,fa=>fa===wo)&&Gn(wo)===Gn(u)){let fa=Br.valueDeclaration;R.assertNode(fa,Pg);let Ei=fa.name;u=Ei,Fe(Ei)&&(pa=lve(Ei,zi))}pa!==void 0?Cc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Br),Vn(zi),pa):Cc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Br),Vn(zi))}}return!0}if(hr&&!yr(lr(Br),Es(hr,Br.escapedName),3,$t))return $t&&vo(f.Types_of_property_0_are_incompatible,Si(Br)),!0}return!1}function Wa(Ze,vt){return Ze.valueDeclaration&&vt.valueDeclaration&&Ze.valueDeclaration.parent===vt.valueDeclaration}function Lu(Ze,vt,$t,Hn){if(Ze.flags&1048576){if(vt.flags&1048576){let Ir=Ze.origin;if(Ir&&Ir.flags&2097152&&vt.aliasSymbol&&zo(Ir.types,vt))return-1;let bn=vt.origin;if(bn&&bn.flags&1048576&&Ze.aliasSymbol&&zo(bn.types,Ze))return-1}return c===Ap?Te(Ze,vt,$t&&!(Ze.flags&402784252),Hn):Dr(Ze,vt,$t&&!(Ze.flags&402784252),Hn)}if(vt.flags&1048576)return yl(w8(Ze),vt,$t&&!(Ze.flags&402784252)&&!(vt.flags&402784252),Hn);if(vt.flags&2097152)return ot(Ze,vt,$t,2);if(c===Ap&&vt.flags&402784252){let Ir=Mc(Ze.types,bn=>bn.flags&465829888?Bd(bn)||un:bn);if(Ir!==Ze.types){if(Ze=ga(Ir),Ze.flags&131072)return 0;if(!(Ze.flags&2097152))return yr(Ze,vt,1,!1)||yr(vt,Ze,1,!1)}}return Te(Ze,vt,!1,1)}function Wl(Ze,vt){let $t=-1,Hn=Ze.types;for(let Ir of Hn){let bn=yl(Ir,vt,!1,0);if(!bn)return 0;$t&=bn}return $t}function yl(Ze,vt,$t,Hn){let Ir=vt.types;if(vt.flags&1048576){if(dy(Ir,Ze))return-1;if(c!==Ap&&Lr(vt)&32768&&!(Ze.flags&1024)&&(Ze.flags&2688||(c===xh||c===Mf)&&Ze.flags&256)){let hr=Ze===Ze.regularType?Ze.freshType:Ze.regularType,Br=Ze.flags&128?Ne:Ze.flags&256?It:Ze.flags&2048?Dt:void 0;return Br&&dy(Ir,Br)||hr&&dy(Ir,hr)?-1:0}let bn=w8e(vt,Ze);if(bn){let hr=yr(Ze,bn,2,!1,void 0,Hn);if(hr)return hr}}for(let bn of Ir){let hr=yr(Ze,bn,2,!1,void 0,Hn);if(hr)return hr}if($t){let bn=o8e(Ze,vt,yr);bn&&yr(Ze,bn,2,!0,void 0,Hn)}return 0}function ot(Ze,vt,$t,Hn){let Ir=-1,bn=vt.types;for(let hr of bn){let Br=yr(Ze,hr,2,$t,void 0,Hn);if(!Br)return 0;Ir&=Br}return Ir}function Te(Ze,vt,$t,Hn){let Ir=Ze.types;if(Ze.flags&1048576&&dy(Ir,vt))return-1;let bn=Ir.length;for(let hr=0;hr=hr.types.length&&bn.length%hr.types.length===0){let pa=yr(zi,hr.types[Br%hr.types.length],3,!1,void 0,Hn);if(pa){Ir&=pa;continue}}let wo=yr(zi,vt,1,$t,void 0,Hn);if(!wo)return 0;Ir&=wo}return Ir}function ui(Ze=Xe,vt=Xe,$t=Xe,Hn,Ir){if(Ze.length!==vt.length&&c===np)return 0;let bn=Ze.length<=vt.length?Ze.length:vt.length,hr=-1;for(let Br=0;Br(Lo|=ps?16:8,Ei(ps)));let Ia;return sn===3?((bn=ir)==null||bn.instant(ir.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Ze.id,sourceIdStack:_e.map(ps=>ps.id),targetId:vt.id,targetIdStack:je.map(ps=>ps.id),depth:At,targetDepth:rn}),Ia=3):((hr=ir)==null||hr.push(ir.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ze.id,targetId:vt.id}),Ia=Ii(Ze,vt,$t,Hn),(Br=ir)==null||Br.pop()),sa&&(sa=Ei),Ir&1&&At--,Ir&2&&rn--,sn=fa,Ia?(Ia===-1||At===0&&rn===0)&&Ds(Ia===-1||Ia===3):(c.set(zi,($t?4:0)|2|Lo),$n--,Ds(!1)),Ia;function Ds(ps){for(let Pc=pa;PcBr!==Ze)&&(bn=yr(hr,vt,1,!1,void 0,Hn))}bn&&!(Hn&2)&&vt.flags&2097152&&!VA(vt)&&Ze.flags&2621440?(bn&=bi(Ze,vt,$t,void 0,!1,0),bn&&d0(Ze)&&Lr(Ze)&8192&&(bn&=as(Ze,vt,!1,$t,0))):bn&&CZ(vt)&&!s0(vt)&&Ze.flags&2097152&&Mu(Ze).flags&3670016&&!gt(Ze.types,hr=>hr===vt||!!(Lr(hr)&262144))&&(bn&=bi(Ze,vt,$t,void 0,!0,Hn))}return bn&&Qn(Ir),bn}function zr(Ze,vt){let $t=Mu(wA(vt)),Hn=[];return Yhe($t,8576,!1,Ir=>void Hn.push(io(Ze,x8(vt.mapper,l_(vt),Ir)))),ei(Hn)}function Ar(Ze,vt,$t,Hn,Ir){let bn,hr,Br=!1,zi=Ze.flags,wo=vt.flags;if(c===np){if(zi&3145728){let Ei=Wl(Ze,vt);return Ei&&(Ei&=Wl(vt,Ze)),Ei}if(zi&4194304)return yr(Ze.type,vt.type,3,!1);if(zi&8388608&&(bn=yr(Ze.objectType,vt.objectType,3,!1))&&(bn&=yr(Ze.indexType,vt.indexType,3,!1))||zi&16777216&&Ze.root.isDistributive===vt.root.isDistributive&&(bn=yr(Ze.checkType,vt.checkType,3,!1))&&(bn&=yr(Ze.extendsType,vt.extendsType,3,!1))&&(bn&=yr(i0(Ze),i0(vt),3,!1))&&(bn&=yr(o0(Ze),o0(vt),3,!1))||zi&33554432&&(bn=yr(Ze.baseType,vt.baseType,3,!1))&&(bn&=yr(Ze.constraint,vt.constraint,3,!1)))return bn;if(!(zi&524288))return 0}else if(zi&3145728||wo&3145728){if(bn=Lu(Ze,vt,$t,Hn))return bn;if(!(zi&465829888||zi&524288&&wo&1048576||zi&2097152&&wo&467402752))return 0}if(zi&17301504&&Ze.aliasSymbol&&Ze.aliasTypeArguments&&Ze.aliasSymbol===vt.aliasSymbol&&!(BZ(Ze)||BZ(vt))){let Ei=s8e(Ze.aliasSymbol);if(Ei===Xe)return 1;let Lo=qi(Ze.aliasSymbol).typeParameters,Ia=Oh(Lo),Ds=Lb(Ze.aliasTypeArguments,Lo,Ia,or(Ze.aliasSymbol.valueDeclaration)),ps=Lb(vt.aliasTypeArguments,Lo,Ia,or(Ze.aliasSymbol.valueDeclaration)),Pc=fa(Ds,ps,Ei,Hn);if(Pc!==void 0)return Pc}if(h8e(Ze)&&!Ze.target.readonly&&(bn=yr(Hs(Ze)[0],vt,1))||h8e(vt)&&(vt.target.readonly||S5(Bd(Ze)||Ze))&&(bn=yr(Ze,Hs(vt)[0],2)))return bn;if(wo&262144){if(Lr(Ze)&32&&!Ze.declaration.nameType&&yr(J_(vt),hf(Ze),3)&&!(wh(Ze)&4)){let Ei=ly(Ze),Lo=Cp(vt,l_(Ze));if(bn=yr(Ei,Lo,3,$t))return bn}if(c===Ap&&zi&262144){let Ei=Pu(Ze);if(Ei)for(;Ei&&Fm(Ei,Lo=>!!(Lo.flags&262144));){if(bn=yr(Ei,vt,1,!1))return bn;Ei=Pu(Ei)}return 0}}else if(wo&4194304){let Ei=vt.type;if(zi&4194304&&(bn=yr(Ei,Ze.type,3,!1)))return bn;if(Oa(Ei)){if(bn=yr(Ze,mOe(Ei),2,$t))return bn}else{let Lo=Qhe(Ei);if(Lo){if(yr(Ze,J_(Lo,vt.indexFlags|4),2,$t)===-1)return-1}else if(Hu(Ei)){let Ia=lv(Ei),Ds=hf(Ei),ps;if(Ia&&cC(Ei)){let Pc=zr(Ia,Ei);ps=ei([Pc,Ia])}else ps=Ia||Ds;if(yr(Ze,ps,2,$t)===-1)return-1}}}else if(wo&8388608){if(zi&8388608){if((bn=yr(Ze.objectType,vt.objectType,3,$t))&&(bn&=yr(Ze.indexType,vt.indexType,3,$t)),bn)return bn;$t&&(hr=W)}if(c===ju||c===Ap){let Ei=vt.objectType,Lo=vt.indexType,Ia=Bd(Ei)||Ei,Ds=Bd(Lo)||Lo;if(!VA(Ia)&&!jA(Ds)){let ps=4|(Ia!==Ei?2:0),Pc=wb(Ia,Ds,ps);if(Pc){if($t&&hr&&Qn(Ir),bn=yr(Ze,Pc,2,$t,void 0,Hn))return bn;$t&&hr&&W&&(W=pa([hr])<=pa([W])?hr:W)}}}$t&&(hr=void 0)}else if(Hu(vt)&&c!==np){let Ei=!!vt.declaration.nameType,Lo=ly(vt),Ia=wh(vt);if(!(Ia&8)){if(!Ei&&Lo.flags&8388608&&Lo.objectType===Ze&&Lo.indexType===l_(vt))return-1;if(!Hu(Ze)){let Ds=Ei?lv(vt):hf(vt),ps=J_(Ze,2),Pc=Ia&4,Gh=Pc?ZB(Ds,ps):void 0;if(Pc?!(Gh.flags&131072):yr(Ds,ps,3)){let yy=ly(vt),rI=l_(vt),iI=QM(yy,-98305);if(!Ei&&iI.flags&8388608&&iI.indexType===rI){if(bn=yr(Ze,iI.objectType,2,$t))return bn}else{let pL=Ei?Gh||Ds:Gh?ga([Gh,rI]):rI,h_=Cp(Ze,pL);if(bn=yr(h_,yy,3,$t))return bn}}hr=W,Qn(Ir)}}}else if(wo&16777216){if(HM(vt,je,rn,10))return 3;let Ei=vt;if(!Ei.root.inferTypeParameters&&!elt(Ei.root)&&!(Ze.flags&16777216&&Ze.root===Ei.root)){let Lo=!ya(D8(Ei.checkType),D8(Ei.extendsType)),Ia=!Lo&&ya(HA(Ei.checkType),HA(Ei.extendsType));if((bn=Lo?-1:yr(Ze,i0(Ei),2,!1,void 0,Hn))&&(bn&=Ia?-1:yr(Ze,o0(Ei),2,!1,void 0,Hn),bn))return bn}}else if(wo&134217728){if(zi&134217728){if(c===Ap)return Rct(Ze,vt)?0:-1;io(Ze,ud)}if(ree(Ze,vt))return-1}else if(vt.flags&268435456&&!(Ze.flags&268435456)&&nee(Ze,vt))return-1;if(zi&8650752){if(!(zi&8388608&&wo&8388608)){let Ei=OA(Ze)||un;if(bn=yr(Ei,vt,1,!1,void 0,Hn))return bn;if(bn=yr(Up(Ei,Ze),vt,1,$t&&Ei!==un&&!(wo&zi&262144),void 0,Hn))return bn;if(nge(Ze)){let Lo=OA(Ze.indexType);if(Lo&&(bn=yr(Cp(Ze.objectType,Lo),vt,1,$t)))return bn}}}else if(zi&4194304){let Ei=Oge(Ze.type,Ze.indexFlags)&&Lr(Ze.type)&32;if(bn=yr(Os,vt,1,$t&&!Ei))return bn;if(Ei){let Lo=Ze.type,Ia=lv(Lo),Ds=Ia&&cC(Lo)?zr(Ia,Lo):Ia||hf(Lo);if(bn=yr(Ds,vt,1,$t))return bn}}else if(zi&134217728&&!(wo&524288)){if(!(wo&134217728)){let Ei=Bd(Ze);if(Ei&&Ei!==Ze&&(bn=yr(Ei,vt,1,$t)))return bn}}else if(zi&268435456)if(wo&268435456){if(Ze.symbol!==vt.symbol)return 0;if(bn=yr(Ze.type,vt.type,3,$t))return bn}else{let Ei=Bd(Ze);if(Ei&&(bn=yr(Ei,vt,1,$t)))return bn}else if(zi&16777216){if(HM(Ze,_e,At,10))return 3;if(wo&16777216){let Ia=Ze.root.inferTypeParameters,Ds=Ze.extendsType,ps;if(Ia){let Pc=O8(Ia,void 0,0,ro);hy(Pc.inferences,vt.extendsType,Ds,1536),Ds=io(Ds,Pc.mapper),ps=Pc.mapper}if(py(Ds,vt.extendsType)&&(yr(Ze.checkType,vt.checkType,3)||yr(vt.checkType,Ze.checkType,3))&&((bn=yr(io(i0(Ze),ps),i0(vt),3,$t))&&(bn&=yr(o0(Ze),o0(vt),3,$t)),bn))return bn}let Ei=Zhe(Ze);if(Ei&&(bn=yr(Ei,vt,1,$t)))return bn;let Lo=!(wo&16777216)&&n5(Ze)?Rwe(Ze):void 0;if(Lo&&(Qn(Ir),bn=yr(Lo,vt,1,$t)))return bn}else{if(c!==xh&&c!==Mf&&uat(vt)&&fy(Ze))return-1;if(Hu(vt))return Hu(Ze)&&(bn=it(Ze,vt,$t))?bn:0;let Ei=!!(zi&402784252);if(c!==np)Ze=Mu(Ze),zi=Ze.flags;else if(Hu(Ze))return 0;if(Lr(Ze)&4&&Lr(vt)&4&&Ze.target===vt.target&&!Oa(Ze)&&!(BZ(Ze)||BZ(vt))){if(HZ(Ze))return-1;let Lo=rye(Ze.target);if(Lo===Xe)return 1;let Ia=fa(Hs(Ze),Hs(vt),Lo,Hn);if(Ia!==void 0)return Ia}else{if(KM(vt)?ap(Ze,s0):Gf(vt)&&ap(Ze,Lo=>Oa(Lo)&&!Lo.target.readonly))return c!==np?yr(n0(Ze,It)||G,n0(vt,It)||G,3,$t):0;if(Bb(Ze)&&Oa(vt)&&!Bb(vt)){let Lo=cy(Ze);if(Lo!==Ze)return yr(Lo,vt,1,$t)}else if((c===xh||c===Mf)&&fy(vt)&&Lr(vt)&8192&&!fy(Ze))return 0}if(zi&2621440&&wo&524288){let Lo=$t&&W===Ir.errorInfo&&!Ei;if(bn=bi(Ze,vt,Lo,void 0,!1,Hn),bn&&(bn&=lo(Ze,vt,0,Lo,Hn),bn&&(bn&=lo(Ze,vt,1,Lo,Hn),bn&&(bn&=as(Ze,vt,Ei,Lo,Hn)))),Br&&bn)W=hr||W||Ir.errorInfo;else if(bn)return bn}if(zi&2621440&&wo&1048576){let Lo=QM(vt,36175872);if(Lo.flags&1048576){let Ia=kt(Ze,Lo);if(Ia)return Ia}}}return 0;function pa(Ei){return Ei?ru(Ei,(Lo,Ia)=>Lo+1+pa(Ia.next),0):0}function fa(Ei,Lo,Ia,Ds){if(bn=ui(Ei,Lo,Ia,$t,Ds))return bn;if(gt(Ia,Pc=>!!(Pc&24))){hr=void 0,Qn(Ir);return}let ps=Lo&&Vlt(Lo,Ia);if(Br=!ps,Ia!==Xe&&!ps){if(Br&&!($t&>(Ia,Pc=>(Pc&7)===0)))return 0;hr=W,Qn(Ir)}}}function it(Ze,vt,$t){if(c===Ap||(c===np?wh(Ze)===wh(vt):$he(Ze)<=$he(vt))){let Ir,bn=hf(vt),hr=io(hf(Ze),$he(Ze)<0?Ss:ud);if(Ir=yr(bn,hr,3,$t)){let Br=Np([l_(Ze)],[l_(vt)]);if(io(lv(Ze),Br)===io(lv(vt),Br))return Ir&yr(io(ly(Ze),Br),ly(vt),3,$t)}}return 0}function kt(Ze,vt){var $t;let Hn=_s(Ze),Ir=k8e(Hn,vt);if(!Ir)return 0;let bn=1;for(let fa of Ir)if(bn*=tdt(Cb(fa)),bn>25)return($t=ir)==null||$t.instant(ir.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ze.id,targetId:vt.id,numCombinations:bn}),0;let hr=new Array(Ir.length),Br=new Set;for(let fa=0;fafa[Ia],!1,0,J||c===Ap))continue e}yf(wo,Lo,Iy),Ei=!0}if(!Ei)return 0}let pa=-1;for(let fa of wo)if(pa&=bi(Ze,fa,!1,Br,!1,0),pa&&(pa&=lo(Ze,fa,0,!1,0),pa&&(pa&=lo(Ze,fa,1,!1,0),pa&&!(Oa(Ze)&&Oa(fa))&&(pa&=as(Ze,fa,!1,!1,0)))),!pa)return pa;return pa}function Qt(Ze,vt){if(!vt||Ze.length===0)return Ze;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(Ze),Vn(vt),mn(bn.slice(0,4),hr=>Si(hr)).join(", "),bn.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Vn(Ze),Vn(vt),mn(bn,hr=>Si(hr)).join(", ")),Ir&&W&&Mn++)}function bi(Ze,vt,$t,Hn,Ir,bn){if(c===np)return pi(Ze,vt,Hn);let hr=-1;if(Oa(vt)){if(s0(Ze)){if(!vt.target.readonly&&(KM(Ze)||Oa(Ze)&&Ze.target.readonly))return 0;let fa=dv(Ze),Ei=dv(vt),Lo=Oa(Ze)?Ze.target.combinedFlags&4:4,Ia=vt.target.combinedFlags&4,Ds=Oa(Ze)?Ze.target.minLength:0,ps=vt.target.minLength;if(!Lo&&fa=yy?Ei-1-Math.min(Bm,rI):h_,xr=vt.target.elementFlags[Ct];if(xr&8&&!(gx&8))return $t&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ct),0;if(gx&8&&!(xr&12))return $t&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,h_,Ct),0;if(xr&1&&!(gx&1))return $t&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Ct),0;if(pL&&((gx&12||xr&12)&&(pL=!1),pL&&Hn?.has(""+h_)))continue;let fi=Vb(Pc[h_],!!(gx&xr&2)),Kr=Gh[Ct],li=gx&8&&xr&4?Gd(Kr):Vb(Kr,!!(xr&2)),Za=yr(fi,li,3,$t,void 0,bn);if(!Za)return $t&&(Ei>1||fa>1)&&(iI&&h_>=yy&&Bm>=rI&&yy!==fa-rI-1?vo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yy,fa-rI-1,Ct):vo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,h_,Ct)),0;hr&=Za}return hr}if(vt.target.combinedFlags&12)return 0}let Br=(c===xh||c===Mf)&&!d0(Ze)&&!HZ(Ze)&&!Oa(Ze),zi=bye(Ze,vt,Br,!1);if(zi)return $t&&An(Ze,vt)&&Wn(Ze,vt,zi,Br),0;if(d0(vt)){for(let fa of Qt(_s(Ze),Hn))if(!t0(vt,fa.escapedName)&&!(lr(fa).flags&32768))return $t&&fo(f.Property_0_does_not_exist_on_type_1,Si(fa),Vn(vt)),0}let wo=_s(vt),pa=Oa(Ze)&&Oa(vt);for(let fa of Qt(wo,Hn)){let Ei=fa.escapedName;if(!(fa.flags&4194304)&&(!pa||ig(Ei)||Ei==="length")&&(!Ir||fa.flags&16777216)){let Lo=ha(Ze,Ei);if(Lo&&Lo!==fa){let Ia=ln(Ze,vt,Lo,fa,Cb,$t,bn,c===Ap);if(!Ia)return 0;hr&=Ia}}}return hr}function pi(Ze,vt,$t){if(!(Ze.flags&524288&&vt.flags&524288))return 0;let Hn=Qt(Mb(Ze),$t),Ir=Qt(Mb(vt),$t);if(Hn.length!==Ir.length)return 0;let bn=-1;for(let hr of Hn){let Br=t0(vt,hr.escapedName);if(!Br)return 0;let zi=oye(hr,Br,yr);if(!zi)return 0;bn&=zi}return bn}function lo(Ze,vt,$t,Hn,Ir){var bn,hr;if(c===np)return la(Ze,vt,$t);if(vt===tn||Ze===tn)return-1;let Br=Ze.symbol&&$_(Ze.symbol.valueDeclaration),zi=vt.symbol&&$_(vt.symbol.valueDeclaration),wo=Ko(Ze,Br&&$t===1?0:$t),pa=Ko(vt,zi&&$t===1?0:$t);if($t===1&&wo.length&&pa.length){let Ds=!!(wo[0].flags&4),ps=!!(pa[0].flags&4);if(Ds&&!ps)return Hn&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!__(wo[0],pa[0],Hn))return 0}let fa=-1,Ei=$t===1?Gi:Zr,Lo=Lr(Ze),Ia=Lr(vt);if(Lo&64&&Ia&64&&Ze.symbol===vt.symbol||Lo&4&&Ia&4&&Ze.target===vt.target){R.assertEqual(wo.length,pa.length);for(let Ds=0;DsPh(yy,void 0,262144,$t);return fo(f.Type_0_is_not_assignable_to_type_1,Gh(ps),Gh(Pc)),fo(f.Types_of_construct_signatures_are_incompatible),fa}}else e:for(let Ds of pa){let ps=xo(),Pc=Hn;for(let Gh of wo){let yy=co(Gh,Ds,!0,Pc,Ir,Ei(Gh,Ds));if(yy){fa&=yy,Qn(ps);continue e}Pc=!1}return Pc&&fo(f.Type_0_provides_no_match_for_the_signature_1,Vn(Ze),Ph(Ds,void 0,void 0,$t)),0}return fa}function An(Ze,vt){let $t=i5(Ze,0),Hn=i5(Ze,1),Ir=Mb(Ze);return($t.length||Hn.length)&&!Ir.length?!!(Ko(vt,0).length&&$t.length||Ko(vt,1).length&&Hn.length):!0}function Zr(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>vo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>vo(f.Call_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function Gi(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Hn)=>vo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Vn($t),Vn(Hn)):($t,Hn)=>vo(f.Construct_signature_return_types_0_and_1_are_incompatible,Vn($t),Vn(Hn))}function co(Ze,vt,$t,Hn,Ir,bn){let hr=c===xh?16:c===Mf?24:0;return Qge($t?E8(Ze):Ze,$t?E8(vt):vt,hr,Hn,fo,bn,Br,ud);function Br(zi,wo,pa){return yr(zi,wo,3,pa,void 0,Ir)}}function la(Ze,vt,$t){let Hn=Ko(Ze,$t),Ir=Ko(vt,$t);if(Hn.length!==Ir.length)return 0;let bn=-1;for(let hr=0;hrzi.keyType===Ne),Br=-1;for(let zi of bn){let wo=c!==Mf&&!$t&&hr&&zi.type.flags&1?-1:Hu(Ze)&&hr?yr(ly(Ze),zi.type,3,Hn):Nc(Ze,zi,Hn,Ir);if(!wo)return 0;Br&=wo}return Br}function Nc(Ze,vt,$t,Hn){let Ir=y8(Ze,vt.keyType);return Ir?Cl(Ir,vt,$t,Hn):!(Hn&1)&&(c!==Mf||Lr(Ze)&8192)&&$Z(Ze)?Ec(Ze,vt,$t,Hn):($t&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,Vn(vt.keyType),Vn(Ze)),0)}function Ks(Ze,vt){let $t=gu(Ze),Hn=gu(vt);if($t.length!==Hn.length)return 0;for(let Ir of Hn){let bn=Eg(Ze,Ir.keyType);if(!(bn&&yr(bn.type,Ir.type,3)&&bn.isReadonly===Ir.isReadonly))return 0}return-1}function __(Ze,vt,$t){if(!Ze.declaration||!vt.declaration)return!0;let Hn=LI(Ze.declaration,6),Ir=LI(vt.declaration,6);return Ir===2||Ir===4&&Hn!==2||Ir!==4&&!Hn?!0:($t&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,MA(Hn),MA(Ir)),!1)}}function tye(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!gn(n.types,tye);if(n.flags&465829888){let a=OA(n);if(a&&a!==n)return tye(a)}return p_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function i8e(n,a){return Oa(n)&&Oa(a)?Xe:_s(a).filter(c=>zZ(Ue(n,c.escapedName),lr(c)))}function zZ(n,a){return!!n&&!!a&&Dl(n,32768)&&!!k8(a)}function Blt(n){return _s(n).filter(a=>k8(lr(a)))}function o8e(n,a,c=Yge){return T4e(n,a,c)||Jgt(n,a)||qgt(n,a)||Xgt(n,a)||Ygt(n,a)}function nye(n,a,c){let u=n.types,_=u.map(T=>T.flags&402784252?0:-1);for(let[T,M]of a){let W=!1;for(let V=0;V_[M]),0):n;return g.flags&131072?n:g}function a8e(n){if(n.flags&524288){let a=c_(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,a8e):!1}function Glt(n,a,c){for(let u of _s(n))if(Zye(a,u.escapedName,c))return!0;return!1}function rye(n){return n===qo||n===Qo||n.objectFlags&8?Y:l8e(n.symbol,n.typeParameters)}function s8e(n){return l8e(n,qi(n).typeParameters)}function l8e(n,a=Xe){var c,u;let _=qi(n);if(!_.variances){(c=ir)==null||c.push(ir.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:yu($s(n))});let g=wE;wE||(wE=!0,W1=md.length),_.variances=Xe;let T=[];for(let M of a){let W=iye(M),V=W&16384?W&8192?0:1:W&8192?2:void 0;if(V===void 0){let te=!1,ye=!1,_e=sa;sa=At=>At?ye=!0:te=!0;let je=v5(n,M,Ep),mt=v5(n,M,Ns);V=(ya(mt,je)?1:0)|(ya(je,mt)?2:0),V===3&&ya(v5(n,M,xc),je)&&(V=4),sa=_e,(te||ye)&&(te&&(V|=8),ye&&(V|=16))}T.push(V)}g||(wE=!1,W1=0),_.variances=T,(u=ir)==null||u.pop({variances:T.map(R.formatVariance)})}return _.variances}function v5(n,a,c){let u=FS(a,c),_=$s(n);if(Ut(_))return _;let g=n.flags&524288?pC(n,pv(qi(n).typeParameters,u)):cv(_,pv(_.typeParameters,u));return ct.add(yu(g)),g}function BZ(n){return ct.has(yu(n))}function iye(n){var a;return ru((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|du(u),0)&28672}function Vlt(n,a){for(let c=0;c!!(a.flags&262144)||GZ(a))}function Hlt(n,a,c,u){let _=[],g="",T=W(n,0),M=W(a,0);return`${g}${T},${M}${c}`;function W(V,te=0){let ye=""+V.target.id;for(let _e of Hs(V)){if(_e.flags&262144){if(u||jlt(_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)?Hlt(n,a,g,_):`${n.id},${a.id}${g}`}function b5(n,a){if(Al(n)&6){for(let c of n.links.containingType.types){let u=ha(c,n.escapedName),_=u&&b5(u,a);if(_)return _}return}return a(n)}function px(n){return n.parent&&n.parent.flags&32?$s(Cu(n)):void 0}function jZ(n){let a=px(n),c=a&&Dp(a)[0];return c&&Ue(c,n.escapedName)}function Klt(n,a){return b5(n,c=>{let u=px(c);return u?aC(u,a):!1})}function Jlt(n,a){return!b5(a,c=>Tf(c)&4?!Klt(n,px(c)):!1)}function c8e(n,a,c){return b5(a,u=>Tf(u,c)&4?!aC(n,px(u)):!1)?void 0:n}function HM(n,a,c,u=3){if(c>=u){if((Lr(n)&96)===96&&(n=d8e(n)),n.flags&2097152)return gt(n.types,M=>HM(M,a,c,u));let _=UZ(n),g=0,T=0;for(let M=0;M=T&&(g++,g>=u))return!0;T=W.id}}}return!1}function d8e(n){let a;for(;(Lr(n)&96)===96&&(a=wA(n))&&(a.symbol||a.flags&2097152&>(a.types,c=>!!c.symbol));)n=a;return n}function u8e(n,a){return(Lr(n)&96)===96&&(n=d8e(n)),n.flags&2097152?gt(n.types,c=>u8e(c,a)):UZ(n)===a}function UZ(n){if(n.flags&524288&&!Sye(n)){if(Lr(n)&4&&n.node)return n.node;if(n.symbol&&!(Lr(n)&16&&n.symbol.flags&32))return n.symbol;if(Oa(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 qlt(n,a){return oye(n,a,C8)!==0}function oye(n,a,c){if(n===a)return-1;let u=Tf(n)&6,_=Tf(a)&6;if(u!==_)return 0;if(u){if(xC(n)!==xC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return m_(n)!==m_(a)?0:c(lr(n),lr(a))}function Xlt(n,a,c){let u=Kp(n),_=Kp(a),g=Q_(n),T=Q_(a),M=Bh(n),W=Bh(a);return!!(u===_&&g===T&&M===W||c&&g<=T)}function E5(n,a,c,u,_,g){if(n===a)return-1;if(!Xlt(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?p8e(c.types):c.flags),0)}function Qlt(n){if(n.length===1)return n[0];let a=J?Mc(n,u=>uc(u,_=>!(_.flags&98304))):n,c=$lt(a)?ei(a):ru(a,(u,_)=>Fb(u,_)?_:u);return a===n?c:A5(c,p8e(n)&98304)}function Zlt(n){return ru(n,(a,c)=>Fb(c,a)?c:a)}function Gf(n){return!!(Lr(n)&4)&&(n.target===qo||n.target===Qo)}function KM(n){return!!(Lr(n)&4)&&n.target===Qo}function s0(n){return Gf(n)||Oa(n)}function S5(n){return Gf(n)&&!KM(n)||Oa(n)&&!n.target.readonly}function T5(n){return Gf(n)?Hs(n)[0]:void 0}function fv(n){return Gf(n)||!(n.flags&98304)&&ya(n,lf)}function aye(n){return S5(n)||!(n.flags&98305)&&ya(n,tc)}function sye(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 _=Ts(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Dp(a);if(c.length!==1||Pb(n.symbol).size)return;let u=Nn(a.typeParameters)?io(c[0],Np(a.typeParameters,Hs(n).slice(0,a.typeParameters.length))):c[0];return Nn(Hs(n))>Nn(a.typeParameters)&&(u=Up(u,Ja(Hs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function f8e(n){return J?n===Pi:n===Nt}function HZ(n){let a=T5(n);return!!a&&f8e(a)}function JM(n){let a;return Oa(n)||!!ha(n,"0")||fv(n)&&!!(a=Ue(n,"length"))&&ap(a,c=>!!(c.flags&256))}function KZ(n){return fv(n)||JM(n)}function ect(n,a){let c=Ue(n,""+a);if(c)return c;if(ap(n,Oa))return g8e(n,a,B.noUncheckedIndexedAccess?Me:void 0)}function tct(n){return!(n.flags&240544)}function p_(n){return!!(n.flags&109472)}function m8e(n){let a=cy(n);return a.flags&2097152?gt(a.types,p_):p_(a)}function nct(n){return n.flags&2097152&&Gr(n.types,p_)||n}function M8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:oo(n.types,p_):p_(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?rct(n):n}function rct(n){let a=`B${yu(n)}`;return U1(a)??db(a,cl(n,my))}function lye(n){return n.flags&402653312?Ne:n.flags&288?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?cl(n,lye):n}function BS(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?cl(n,BS):n}function _8e(n){return n.flags&8192?xi:n.flags&1048576?cl(n,_8e):n}function cye(n,a){return Oee(n,a)||(n=_8e(BS(n))),vu(n)}function ict(n,a,c){if(n&&p_(n)){let u=a?c?q8(a):a:void 0;n=cye(n,u)}return n}function dye(n,a,c,u){if(n&&p_(n)){let _=a?HS(c,a,u):void 0;n=cye(n,_)}return n}function Oa(n){return!!(Lr(n)&4&&n.target.objectFlags&8)}function Bb(n){return Oa(n)&&!!(n.target.combinedFlags&8)}function h8e(n){return Bb(n)&&n.target.elementFlags.length===1}function JZ(n){return qM(n,n.target.fixedLength)}function g8e(n,a,c){return cl(n,u=>{let _=u,g=JZ(_);return g?c&&a>=Pge(_.target)?ei([g,c]):g:Me})}function oct(n){let a=JZ(n);return a&&Gd(a)}function qM(n,a,c=0,u=!1,_=!1){let g=dv(n)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function y8e({value:n}){return n.base10Value==="0"}function v8e(n){return uc(n,a=>dm(a,4194304))}function sct(n){return cl(n,lct)}function lct(n){return n.flags&4?Xo:n.flags&8?Ha:n.flags&64?Qd:n===En||n===Kt||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&y8e(n)?n:Wr}function A5(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 Gb(n,a=!1){R.assert(J);let c=a?ie:Me;return n===c||n.flags&1048576&&n.types[0]===c?n:ei([n,c])}function cct(n){return Bu||(Bu=VM("NonNullable",524288,void 0)||lt),Bu!==lt?pC(Bu,[n]):ga([n,Na])}function _y(n){return J?XA(n,2097152):n}function b8e(n){return J?ei([n,H]):n}function qZ(n){return J?aee(n,H):n}function XZ(n,a,c){return c?sN(a)?Gb(n):b8e(n):n}function L8(n,a){return lF(a)?_y(n):Hd(a)?qZ(n):n}function Vb(n,a){return Ie&&a?aee(n,k):n}function k8(n){return n===k||!!(n.flags&1048576)&&n.types[0]===k}function YZ(n){return Ie?aee(n,k):um(n,524288)}function dct(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 KA(n,a){let c=Ka(n.flags,n.escapedName,Al(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 uct(n,a){let c=oa();for(let u of Mb(n)){let _=lr(u),g=a(_);c.set(u.escapedName,g===_?u:KA(u,g))}return c}function w8(n){if(!(d0(n)&&Lr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=uct(n,w8),_=Ps(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function E8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function S8e(n){if(!n.siblings){let a=[];for(let c of S8e(n.parent))if(d0(c)){let u=t0(c,n.propertyName);u&&YA(lr(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function pct(n){if(!n.resolvedProperties){let a=new Map;for(let c of S8e(n))if(d0(c)&&!(Lr(c)&2097152))for(let u of _s(c))a.set(u.escapedName,u);n.resolvedProperties=Oo(a.values())}return n.resolvedProperties}function fct(n,a){if(!(n.flags&4))return n;let c=lr(n),u=a&&E8e(a,n.escapedName,void 0),_=uye(c,u);return _===c?n:KA(n,_)}function mct(n){let a=Be.get(n.escapedName);if(a)return a;let c=KA(n,ie);return c.flags|=16777216,Be.set(n.escapedName,c),c}function _ct(n,a){let c=oa();for(let _ of Mb(n))c.set(_.escapedName,fct(_,a));if(a)for(let _ of pct(a))c.has(_.escapedName)||c.set(_.escapedName,mct(_));let u=Ps(n.symbol,c,Xe,Xe,Mc(gu(n),_=>Wh(_.keyType,Hp(_.type),_.isReadonly)));return u.objectFlags|=Lr(n)&266240,u}function Hp(n){return uye(n,void 0)}function uye(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(d0(n))c=_ct(n,a);else if(n.flags&1048576){let u=a||E8e(void 0,void 0,n.types),_=Mc(n.types,g=>g.flags&98304?g:uye(g,u));c=ei(_,gt(_,fy)?2:1)}else n.flags&2097152?c=ga(Mc(n.types,Hp)):s0(n)&&(c=cv(n.target,Mc(Hs(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(s0(n))for(let c of Hs(n))QZ(c)&&(a=!0);if(d0(n))for(let c of Mb(n)){let u=lr(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 l0(n,a,c){let u=Vn(Hp(a));if(or(n)&&!fk(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=tE(g.name);if(($I(g.parent)||hh(g.parent)||gh(g.parent))&&g.parent.parameters.includes(g)&&(gl(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&eU(T))){let M="arg"+g.parent.parameters.indexOf(g),W=xs(g.name)+(g.dotDotDotToken?"[]":"");_d(fe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,M,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&&FR(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}_d(fe,n,_,xs(No(n)),u)}function ZZ(n,a,c){r(()=>{fe&&Lr(a)&65536&&(!c||!Jye(n))&&(QZ(a)||l0(n,a,c))})}function pye(n,a,c){let u=Kp(n),_=Kp(a),g=j8(n),T=j8(a),M=T?_-1:_,W=g?M:Math.min(u,M),V=r0(n);if(V){let te=r0(a);te&&c(V,te)}for(let te=0;tea.typeParameter),mn(n.inferences,(a,c)=>()=>(a.isFixed||(vct(n),eee(n.inferences),a.isFixed=!0),Tye(n,c))))}function yct(n){return Hge(mn(n.inferences,a=>a.typeParameter),mn(n.inferences,(a,c)=>()=>Tye(n,c)))}function eee(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function _ye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function vct(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?gWe(a,2):Ju(a,2);u&&hy(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function hye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function T8e(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 bct(n){let a=Vr(n.inferences,AC);return a.length?mye(mn(a,T8e),n.signature,n.flags,n.compareTypes):void 0}function gye(n){return n&&n.mapper}function c0(n){let a=Lr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!A8e(n)&&(a&4&&(n.node||gt(Hs(n),c0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!A8e(n)&>(n.types,c0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function A8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=dl(n.aliasSymbol,265);return!!(a&&Fn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function W8(n,a,c=0){return!!(n===a||n.flags&3145728&>(n.types,u=>W8(u,a,c))||c<3&&n.flags&16777216&&(W8(i0(n),a,c+1)||W8(o0(n),a,c+1)))}function Ect(n,a){let c=Ff(n);return c?!!c.type&&W8(c.type,a):W8(us(n),a)}function Sct(n){let a=oa();YA(n,u=>{if(!(u.flags&128))return;let _=fl(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?[Wh(Ne,Na,!1)]:Xe;return Ps(void 0,a,Xe,Xe,c)}function I8e(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(zo(tp,_))return;tp.push(_);let g=Tct(n,a,c);return tp.pop(),Kc.set(u,g),g}function yye(n){return!(Lr(n)&262144)||d0(n)&>(_s(n),a=>yye(lr(a)))||Oa(n)&>(wS(n),yye)}function Tct(n,a,c){if(!(Eg(n,Ne)||_s(n).length!==0&&yye(n)))return;if(Gf(n))return Gd(tee(Hs(n)[0],a,c),KM(n));if(Oa(n)){let _=mn(wS(n),T=>tee(T,a,c)),g=wh(a)&4?Mc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return Fh(_,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 Act(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,l_(a)),_=ly(a),g=hye(u);return hy([g],n,_),x8e(g)||un}function*vye(n,a,c,u){let _=_s(a);for(let g of _)if(!_we(g)&&(c||!(g.flags&16777216||Al(g)&48))){let T=ha(n,g.escapedName);if(!T)yield g;else if(u){let M=lr(g);if(M.flags&109472){let W=lr(T);W.flags&1||vu(W)===vu(M)||(yield g)}}}}function bye(n,a,c,u){return hW(vye(n,a,c,u))}function Ict(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthcx(g,_),n)===n&&nee(n,a)}return!1}function C8e(n,a){if(a.flags&2097152)return oo(a.types,c=>c===lc||C8e(n,c));if(a.flags&4||ya(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&D8e(c,!1)||a.flags&64&&B6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&nee(Ku(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 N8e(n,a){return n.flags&128?P8e([n.value],Xe,a):n.flags&134217728?AL(n.texts,a.texts)?mn(n.types,Cct):P8e(n.texts,n.types,a):void 0}function ree(n,a){let c=N8e(n,a);return!!c&&oo(c,(u,_)=>C8e(u,a.types[_]))}function Cct(n){return n.flags&402653317?n:BA(["",""],[n])}function P8e(n,a,c){let u=n.length-1,_=n[0],g=n[u],T=c.texts,M=T.length-1,W=T[0],V=T[M];if(u===0&&_.length0){let rr=_e,Mn=je;for(;Mn=mt(rr).indexOf(sn,Mn),!(Mn>=0);){if(rr++,rr===n.length)return;Mn=0}At(rr,Mn),je+=sn.length}else if(je!zo(yr,os)):Pn,Do?Vr(Xn,os=>!zo(Do,os)):Xn]}function rr(Pn,Xn,ro){let yr=Pn.length!!On(Do));if(!yr||Xn&&yr!==Xn)return;Xn=yr}return Xn}function $n(Pn,Xn,ro){let yr=0;if(ro&1048576){let Do,os=Pn.flags&1048576?Pn.types:[Pn],Es=new Array(os.length),Vd=!1;for(let Wa of Xn)if(On(Wa))Do=Wa,yr++;else for(let Lu=0;LuEs[Wl]?void 0:Lu);if(Wa.length){_e(ei(Wa),Do);return}}}else for(let Do of Xn)On(Do)?yr++:_e(Pn,Do);if(ro&2097152?yr===1:yr>0)for(let Do of Xn)On(Do)&&je(Pn,Do,1)}function jn(Pn,Xn,ro){if(ro.flags&1048576||ro.flags&2097152){let yr=!1;for(let Do of ro.types)yr=jn(Pn,Xn,Do)||yr;return yr}if(ro.flags&4194304){let yr=On(ro.type);if(yr&&!yr.isFixed&&!R8e(Pn)){let Do=I8e(Pn,Xn,ro);Do&&je(Do,yr.typeParameter,Lr(Pn)&262144?16:8)}return!0}if(ro.flags&262144){je(J_(Pn,Pn.pattern?2:0),ro,32);let yr=OA(ro);if(yr&&jn(Pn,Xn,yr))return!0;let Do=mn(_s(Pn),lr),os=mn(gu(Pn),Es=>Es!==Fr?Es.type:Wr);return _e(ei(bo(Do,os)),ly(Xn)),!0}return!1}function Qn(Pn,Xn){if(Pn.flags&16777216)_e(Pn.checkType,Xn.checkType),_e(Pn.extendsType,Xn.extendsType),_e(i0(Pn),i0(Xn)),_e(o0(Pn),o0(Xn));else{let ro=[i0(Xn),o0(Xn)];At(Pn,ro,Xn.flags,_?64:0)}}function xo(Pn,Xn){let ro=N8e(Pn,Xn),yr=Xn.types;if(ro||oo(Xn.texts,Do=>Do.length===0))for(let Do=0;Doyl|ot.flags,0);if(!(Wl&4)){let yl=os.value;Wl&296&&!D8e(yl,!0)&&(Wl&=-297),Wl&2112&&!B6(yl,!0)&&(Wl&=-2113);let ot=ru(Lu,(Te,Cn)=>Cn.flags&Wl?Te.flags&4?Te:Cn.flags&4?os:Te.flags&134217728?Te:Cn.flags&134217728&&ree(os,Cn)?os:Te.flags&268435456?Te:Cn.flags&268435456&&yl===ROe(Cn.symbol,yl)?os:Te.flags&128?Te:Cn.flags&128&&Cn.value===yl?Cn:Te.flags&8?Te:Cn.flags&8?u_(+yl):Te.flags&32?Te:Cn.flags&32?u_(+yl):Te.flags&256?Te:Cn.flags&256&&Cn.value===+yl?Cn:Te.flags&64?Te:Cn.flags&64?Dct(yl):Te.flags&2048?Te:Cn.flags&2048&&z0(Cn.value)===yl?Cn:Te.flags&16?Te:Cn.flags&16?yl==="true"?wn:yl==="false"?Kt:gi:Te.flags&512?Te:Cn.flags&512&&Cn.intrinsicName===yl?Cn:Te.flags&32768?Te:Cn.flags&32768&&Cn.intrinsicName===yl?Cn:Te.flags&65536?Te:Cn.flags&65536&&Cn.intrinsicName===yl?Cn:Te:Te,Wr);if(!(ot.flags&131072)){_e(ot,Es);continue}}}}_e(os,Es)}}function vo(Pn,Xn){_e(hf(Pn),hf(Xn)),_e(ly(Pn),ly(Xn));let ro=lv(Pn),yr=lv(Xn);ro&&yr&&_e(ro,yr)}function Wo(Pn,Xn){var ro,yr;if(Lr(Pn)&4&&Lr(Xn)&4&&(Pn.target===Xn.target||Gf(Pn)&&Gf(Xn))){rr(Hs(Pn),Hs(Xn),rye(Pn.target));return}if(Hu(Pn)&&Hu(Xn)&&vo(Pn,Xn),Lr(Xn)&32&&!Xn.declaration.nameType){let Do=hf(Xn);if(jn(Pn,Xn,Do))return}if(!xct(Pn,Xn)){if(s0(Pn)){if(Oa(Xn)){let Do=dv(Pn),os=dv(Xn),Es=Hs(Xn),Vd=Xn.target.elementFlags;if(Oa(Pn)&&act(Pn,Xn)){for(let Wl=0;Wl0){let os=Ko(Xn,ro),Es=os.length;for(let Vd=0;Vd1){let a=Vr(n,Sye);if(a.length){let c=ei(a,2);return bo(Vr(n,u=>!Sye(u)),[c])}}return n}function kct(n){return n.priority&416?ga(n.contraCandidates):Zlt(n.contraCandidates)}function wct(n,a){let c=Lct(n.candidates),u=Mct(n.typeParameter)||WA(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!Ect(a,n.typeParameter)),g=u?Mc(c,vu):_?Mc(c,BS):c,T=n.priority&416?ei(g,2):Qlt(g);return Hp(T)}function Tye(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?wct(c,n.signature):void 0,M=c.contraCandidates?kct(c):void 0;if(T||M){let W=T&&(!M||!(T.flags&131072)&>(c.contraCandidates,V=>Fb(T,V))&&oo(n.inferences,V=>V!==c&&Pu(V.typeParameter)!==c.typeParameter||oo(V.candidates,te=>Fb(te,T))));u=W?T:M,_=W?M:T}else if(n.flags&1)u=ho;else{let W=FA(c.typeParameter);W&&(u=io(W,plt(ult(n,a),n.nonFixingMapper)))}}else u=x8e(c);c.inferredType=u||Aye(!!(n.flags&2));let g=Pu(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 Aye(n){return n?G:un}function Iye(n){let a=[];for(let c=0;cmu(a)||Tm(a)||gp(a)))}function iee(n,a,c,u){switch(n.kind){case 80:if(!MI(n)){let T=Wm(n);return T!==lt?`${u?is(u):"-1"}|${yu(a)}|${yu(c)}|${ba(T)}`:void 0}case 110:return`0|${u?is(u):"-1"}|${yu(a)}|${yu(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=JA(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`${is(n)}#${yu(a)}`}}function Id(n,a){switch(a.kind){case 217:case 235:return Id(n,a.expression);case 226:return Lc(a)&&Id(n,a.left)||pr(a)&&a.operatorToken.kind===28&&Id(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 MI(n)?a.kind===110:a.kind===80&&Wm(n)===Wm(a)||(Oi(a)||Xa(a))&&ff(Wm(n))===Tr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Id(n.expression,a);case 211:case 212:let c=JA(n),u=Ls(a)?JA(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Id(n.expression,a.expression);case 166:return Ls(a)&&n.right.escapedText===JA(a)&&Id(n.left,a.expression);case 226:return pr(n)&&n.operatorToken.kind===28&&Id(n.right,a)}return!1}function JA(n){if(kr(n))return n.name.escapedText;if(Xs(n))return Oct(n);if(Xa(n)){let a=$a(n);return a?fl(a):void 0}if(To(n))return""+n.parent.parameters.indexOf(n)}function Rye(n){return n.flags&8192?n.escapedName:n.flags&384?fl(""+n.value):void 0}function Oct(n){return $p(n.argumentExpression)?fl(n.argumentExpression.text):Vl(n.argumentExpression)?Wct(n.argumentExpression):void 0}function Wct(n){let a=js(n,111551,!0);if(!a||!(ZM(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=eo(c);if(u){let _=Rye(u);if(_!==void 0)return _}if(pT(c)&&Qg(c,n)){let _=M2(c);if(_){let g=$o(c.parent)?K_(c):Rd(_);return g&&Rye(g)}if(Q0(c))return Jx(c.name)}}function L8e(n,a){for(;Ls(n);)if(n=n.expression,Id(n,a))return!0;return!1}function qA(n,a){for(;Hd(n);)if(n=n.expression,Id(n,a))return!0;return!1}function XM(n,a){if(n&&n.flags&1048576){let c=kwe(n,a);if(c&&Al(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!_C(lr(c))),!!c.links.isDiscriminantProperty}return!1}function k8e(n,a){let c;for(let u of n)if(XM(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function Fct(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Ue(_,a);if(g){if(!M8(g))return;let T=!1;YA(g,M=>{let W=yu(vu(M)),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 I5(n){let a=n.types;if(!(a.length<10||Lr(n)&32768||bv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=gn(a,_=>_.flags&59506688?gn(_s(_),g=>p_(lr(g))?g.escapedName:void 0):void 0),u=c&&Fct(a,c);n.keyPropertyName=u?c:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function x5(n,a){var c;let u=(c=n.constituentMap)==null?void 0:c.get(yu(vu(a)));return u!==un?u:void 0}function w8e(n,a){let c=I5(n),u=c&&Ue(a,c);return u&&x5(n,u)}function zct(n,a){let c=I5(n),u=c&&Gr(a.properties,g=>g.symbol&&g.kind===303&&g.symbol.escapedName===c&&k5(g.initializer)),_=u&&nG(u.initializer);return _&&x5(n,_)}function O8e(n,a){return Id(n,a)||L8e(n,a)}function W8e(n,a){if(n.arguments){for(let c of n.arguments)if(O8e(a,c)||qA(c,a))return!0}return!!(n.expression.kind===211&&O8e(a,n.expression.expression))}function Dye(n){return(!n.id||n.id<0)&&(n.id=Jse,Jse++),n.id}function Bct(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 Gct(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${yu(n)},${yu(a)}`;return U1(c)??db(c,Vct(n,a))}function Vct(n,a){let c=uc(n,_=>Bct(a,_)),u=a.flags&512&&WS(a)?cl(c,ux):c;return ya(a,u)?u:n}function Cye(n){let a=c_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Fb(n,Lt))}function YM(n,a){return Nye(n,a)&a}function dm(n,a){return YM(n,a)!==0}function Nye(n,a){n.flags&467927040&&(n=Bd(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=y8e(n);return J?u?12122884:7928580:u?12581636:16775940}return c&16?J?16316168:16774920:c&528?J?n===Kt||n===En?12121864:7927560:n===Kt||n===En?12580616:16774920:c&524288?a&(J?83427327:83886079)?Lr(n)&16&&fy(n)?J?83427327:83886079:Cye(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?ru(n.types,(u,_)=>u|Nye(_,a),0):c&2097152?jct(n,a):83886079}function jct(n,a){let c=Dl(n,402784252),u=0,_=134217727;for(let g of n.types)if(!(c&&g.flags&524288)){let T=Nye(g,a);u|=T,_&=T}return u&8256|_&134209471}function um(n,a){return uc(n,c=>dm(c,a))}function XA(n,a){let c=F8e(um(J&&n.flags&2?sl:n,a));if(J)switch(a){case 524288:return cl(c,u=>dm(u,65536)?ga([u,dm(u,131072)&&!Dl(c,65536)?ei([Na,ue]):Na]):u);case 1048576:return cl(c,u=>dm(u,131072)?ga([u,dm(u,65536)&&!Dl(c,32768)?ei([Na,Me]):Na]):u);case 2097152:case 4194304:return cl(c,u=>dm(u,262144)?cct(u):u)}return c}function F8e(n){return n===sl?un:n}function Pye(n,a){return a?ei([_i(n),Rd(a)]):n}function z8e(n,a){var c;let u=uv(a);if(!Qf(u))return pt;let _=Zf(u);return Ue(n,_)||F8((c=sx(n,_))==null?void 0:c.type)||pt}function B8e(n,a){return ap(n,JM)&&ect(n,a)||F8(_v(65,n,Me,void 0))||pt}function F8(n){return n&&(B.noUncheckedIndexedAccess?ei([n,k]):n)}function G8e(n){return Gd(_v(65,n,Me,void 0)||pt)}function Uct(n){return n.parent.kind===209&&Mye(n.parent)||n.parent.kind===303&&Mye(n.parent.parent)?Pye(R5(n),n.right):Rd(n.right)}function Mye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Hct(n,a){return B8e(R5(n),n.elements.indexOf(a))}function Kct(n){return G8e(R5(n.parent))}function V8e(n){return z8e(R5(n.parent),n.name)}function Jct(n){return Pye(V8e(n),n.objectAssignmentInitializer)}function R5(n){let{parent:a}=n;switch(a.kind){case 249:return Ne;case 250:return lG(a)||pt;case 226:return Uct(a);case 220:return Me;case 209:return Hct(a,n);case 230:return Kct(a);case 303:return V8e(a);case 304:return Jct(a)}return pt}function qct(n){let a=n.parent,c=U8e(a.parent),u=a.kind===206?z8e(c,n.propertyName||n.name):n.dotDotDotToken?G8e(c):B8e(c,a.elements.indexOf(n));return Pye(u,n.initializer)}function j8e(n){return Qr(n).resolvedType||Rd(n)}function Xct(n){return n.initializer?j8e(n.initializer):n.parent.parent.kind===249?Ne:n.parent.parent.kind===250&&lG(n.parent.parent)||pt}function U8e(n){return n.kind===260?Xct(n):qct(n)}function Yct(n){return n.kind===260&&n.initializer&&Ib(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ib(n.parent.right)}function GS(n){switch(n.kind){case 217:return GS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return GS(n.left);case 28:return GS(n.right)}}return n}function H8e(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?H8e(a):n}function $ct(n){return n.kind===296?vu(Rd(n.expression)):Wr}function oee(n){let a=Qr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push($ct(c))}return a.switchTypes}function K8e(n){if(gt(n.caseBlock.clauses,c=>c.kind===296&&!ss(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&&!zo(a,u)?u:void 0)}return a}function Qct(n,a){return n.flags&1048576?!gn(n.types,c=>!zo(a,c)):zo(a,n)}function $M(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Zct(n,a))}function Zct(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 YA(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 edt(n,a){return n.flags&3145728?oo(n.types,a):a(n)}function uc(n,a){if(n.flags&1048576){let c=n.types,u=Vr(c,a);if(u===c)return n;let _=n.origin,g;if(_&&_.flags&1048576){let T=_.types,M=Vr(T,W=>!!(W.flags&1048576)||a(W));if(T.length-M.length===c.length-u.length){if(M.length===1)return M[0];g=Mge(1048576,M)}}return kge(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:Wr}function aee(n,a){return uc(n,c=>c!==a)}function tdt(n){return n.flags&1048576?n.types.length:1}function cl(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 M of _){let W=M.flags&1048576?cl(M,a,c):a(M);T||(T=M!==W),W&&(g?g.push(W):g=[W])}return T?g&&ei(g,c?0:1):n}function J8e(n,a,c,u){return n.flags&1048576&&c?ei(mn(n.types,a),1,c,u):cl(n,a)}function QM(n,a){return uc(n,c=>(c.flags&a)!==0)}function q8e(n,a){return Dl(n,134217804)&&Dl(a,402655616)?cl(n,c=>c.flags&4?QM(a,402653316):GA(c)&&!Dl(a,402653188)?QM(a,128):c.flags&8?QM(a,264):c.flags&64?QM(a,2112):c):n}function yC(n){return n.flags===0}function $A(n){return n.flags===0?n.type:n}function vC(n,a){return a?{flags:0,type:n.flags&131072?ho:n}:n}function ndt(n){let a=kf(256);return a.elementType=n,a}function Lye(n){return kn[n.id]||(kn[n.id]=ndt(n))}function X8e(n,a){let c=w8(my(nG(a)));return $M(c,n.elementType)?n:Lye(ei([n.elementType,c]))}function rdt(n){return n.flags&131072?Jc:Gd(n.flags&1048576?ei(n.types,2):n)}function idt(n){return n.finalArrayType||(n.finalArrayType=rdt(n.elementType))}function D5(n){return Lr(n)&256?idt(n):n}function odt(n){return Lr(n)&256?n.elementType:Wr}function adt(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Lr(c)&256))return!1;a=!0}return a}function Y8e(n){let a=H8e(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&&!Zh(c.parent)&&xd(Rd(c.argumentExpression),296);return u||_}function sdt(n){return(Oi(n)||jo(n)||_p(n)||To(n))&&!!(vd(n)||or(n)&&kv(n)&&n.initializer&&B0(n.initializer)&&$f(n.initializer))}function see(n,a){if(n=Ul(n),n.flags&8752)return lr(n);if(n.flags&7){if(Al(n)&262144){let u=n.links.syntheticOrigin;if(u&&see(u))return lr(n)}let c=n.valueDeclaration;if(c){if(sdt(c))return lr(n);if(Oi(c)&&c.parent.parent.kind===250){let u=c.parent.parent,_=C5(u.expression,void 0);if(_){let g=u.awaitModifier?15:13;return _v(g,_,Me,void 0)}}a&&Ma(a,Pr(c,f._0_needs_an_explicit_type_annotation,Si(n)))}}}function C5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=ff(Wm(n));return see(c,a);case 110:return Ddt(n);case 108:return Bye(n);case 211:{let u=C5(n.expression,a);if(u){let _=n.name,g;if(Ki(_)){if(!u.symbol)return;g=ha(u,Y2(u.symbol,_.escapedText))}else g=ha(u,_.escapedText);return g&&see(g,a)}return}case 217:return C5(n.expression,a)}}function N5(n){let a=Qr(n),c=a.effectsSignature;if(c===void 0){let u;if(pr(n)){let T=bC(n.right);u=Pve(T)}else n.parent.kind===244?u=C5(n.expression,void 0):n.expression.kind!==108&&(Hd(n)?u=X_(L8(po(n.expression),n.expression),n.expression):u=bC(n.expression));let _=Ko(u&&Mu(u)||un,0),g=_.length===1&&!_[0].typeParameters?_[0]:gt(_,$8e)?SC(n):void 0;c=a.effectsSignature=g&&$8e(g)?g:cn}return c===cn?void 0:c}function $8e(n){return!!(Ff(n)||n.declaration&&(dC(n.declaration)||un).flags&131072)}function ldt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=ms(a.expression);return Ls(c)?ms(c.expression):void 0}function cdt(n){let a=Fn(n,NV),c=Gn(n),u=fh(c,a.statements.pos);Qa.add(Zc(c,u.start,u.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function P5(n){let a=lee(n,!1);return Pt=n,Vt=a,a}function M5(n){let a=ms(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(M5(a.left)||M5(a.right))||a.operatorToken.kind===57&&M5(a.left)&&M5(a.right))}function lee(n,a){for(;;){if(n===Pt)return Vt;let c=n.flags;if(c&4096){if(!a){let u=Dye(n),_=lA[u];return _!==void 0?_:lA[u]=lee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=N5(n.node);if(u){let _=Ff(u);if(_&&_.kind===3&&!_.type){let g=n.node.arguments[_.parameterIndex];if(g&&M5(g))return!1}if(us(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&&MFe(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=Dye(n),_=j1[u];return _!==void 0?_:j1[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 Q8e(n){switch(n.kind){case 110:return!0;case 80:if(!MI(n)){let c=Wm(n);return ZM(c)||uee(c)&&!Z8e(c)}break;case 211:case 212:return Q8e(n.expression)&&m_(Qr(n).resolvedSymbol||lt);case 206:case 207:let a=A_(n.parent);return To(a)||Poe(a)?!kye(a):Oi(a)&&mG(a)}return!1}function jb(n,a,c=a,u,_=(g=>(g=ri(n,V2))==null?void 0:g.flowNode)()){let g,T=!1,M=0;if(we)return pt;if(!_)return a;qe++;let W=qg,V=$A(_e(_));qg=W;let te=Lr(V)&256&&Y8e(n)?Jc:D5(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(M===2e3)return(kt=ir)==null||kt.instant(ir.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:it.id}),we=!0,cdt(n),pt;M++;let Qt;for(;;){let Xt=it.flags;if(Xt&4096){for(let Wn=W;Wn=0&&Qt.parameterIndex!(Wn.flags&163840)):kt.kind===221&&qA(kt.expression,n)&&(Xt=os(Xt,it.switchStatement,it.clauseStart,it.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let ln=jn(kt,Xt);ln&&(Xt=vo(Xt,ln,it.switchStatement,it.clauseStart,it.clauseEnd))}return vC(Xt,yC(Qt))}function an(it){let kt=[],Qt=!1,Xt=!1,ln;for(let Wn of it.antecedents){if(!ln&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){ln=Wn;continue}let bi=_e(Wn),pi=$A(bi);if(pi===a&&a===c)return pi;yf(kt,pi),$M(pi,c)||(Qt=!0),yC(bi)&&(Xt=!0)}if(ln){let Wn=_e(ln),bi=$A(Wn);if(!(bi.flags&131072)&&!zo(kt,bi)&&!MFe(ln.switchStatement)){if(bi===a&&a===c)return bi;kt.push(bi),$M(bi,c)||(Qt=!0),yC(Wn)&&(Xt=!0)}}return vC(Ln(kt,Qt?2:1),Xt)}function On(it){let kt=Dye(it),Qt=F1[kt]||(F1[kt]=new Map),Xt=ye();if(!Xt)return a;let ln=Qt.get(Xt);if(ln)return ln;for(let An=B_;An{let An=St(lo,Xt)||un;return!(An.flags&131072)&&!(pi.flags&131072)&&h5(pi,An)})}function xo(it,kt,Qt,Xt,ln){if((Qt===37||Qt===38)&&it.flags&1048576){let Wn=I5(it);if(Wn&&Wn===JA(kt)){let bi=x5(it,Rd(Xt));if(bi)return Qt===(ln?37:38)?bi:p_(Ue(bi,Wn)||un)?aee(it,bi):it}}return Qn(it,kt,Wn=>ro(Wn,Qt,Xt,ln))}function vo(it,kt,Qt,Xt,ln){if(Xtx5(it,pi)||un));if(bi!==un)return bi}return Qn(it,kt,Wn=>Es(Wn,Qt,Xt,ln))}function Wo(it,kt,Qt){if(Id(n,kt))return XA(it,Qt?4194304:8388608);J&&Qt&&qA(kt,n)&&(it=XA(it,2097152));let Xt=jn(kt,it);return Xt?Qn(it,Xt,ln=>um(ln,Qt?4194304:8388608)):it}function fo(it,kt,Qt){let Xt=ha(it,kt);return Xt?!!(Xt.flags&16777216||Al(Xt)&48)||Qt:!!sx(it,kt)||!Qt}function Cc(it,kt,Qt){let Xt=Zf(kt);if(Fm(it,Wn=>fo(Wn,Xt,!0)))return uc(it,Wn=>fo(Wn,Xt,Qt));if(Qt){let Wn=mst();if(Wn)return ga([it,pC(Wn,[kt,un])])}return it}function Vf(it,kt,Qt,Xt,ln){return ln=ln!==(Qt.kind===112)!=(Xt!==38&&Xt!==36),zr(it,kt,ln)}function sp(it,kt,Qt){switch(kt.operatorToken.kind){case 64:case 76:case 77:case 78:return Wo(zr(it,kt.right,Qt),kt.left,Qt);case 35:case 36:case 37:case 38:let Xt=kt.operatorToken.kind,ln=GS(kt.left),Wn=GS(kt.right);if(ln.kind===221&&ss(Wn))return yr(it,ln,Xt,Wn,Qt);if(Wn.kind===221&&ss(ln))return yr(it,Wn,Xt,ln,Qt);if(Id(n,ln))return ro(it,Xt,Wn,Qt);if(Id(n,Wn))return ro(it,Xt,ln,Qt);J&&(qA(ln,n)?it=Xn(it,Xt,Wn,Qt):qA(Wn,n)&&(it=Xn(it,Xt,ln,Qt)));let bi=jn(ln,it);if(bi)return xo(it,bi,Xt,Wn,Qt);let pi=jn(Wn,it);if(pi)return xo(it,pi,Xt,ln,Qt);if(yl(ln))return ot(it,Xt,Wn,Qt);if(yl(Wn))return ot(it,Xt,ln,Qt);if(pN(Wn)&&!Ls(ln))return Vf(it,ln,Wn,Xt,Qt);if(pN(ln)&&!Ls(Wn))return Vf(it,Wn,ln,Xt,Qt);break;case 104:return Te(it,kt,Qt);case 103:if(Ki(kt.left))return Pn(it,kt,Qt);let lo=GS(kt.right);if(k8(it)&&Ls(n)&&Id(n.expression,lo)){let An=Rd(kt.left);if(Qf(An)&&JA(n)===Zf(An))return um(it,Qt?524288:65536)}if(Id(n,lo)){let An=Rd(kt.left);if(Qf(An))return Cc(it,An,Qt)}break;case 28:return zr(it,kt.right,Qt);case 56:return Qt?zr(zr(it,kt.left,!0),kt.right,!0):ei([zr(it,kt.left,!1),zr(it,kt.right,!1)]);case 57:return Qt?ei([zr(it,kt.left,!0),zr(it,kt.right,!0)]):zr(zr(it,kt.left,!1),kt.right,!1)}return it}function Pn(it,kt,Qt){let Xt=GS(kt.right);if(!Id(n,Xt))return it;R.assertNode(kt.left,Ki);let ln=See(kt.left);if(ln===void 0)return it;let Wn=ln.parent,bi=mc(R.checkDefined(ln.valueDeclaration,"should always have a declaration"))?lr(Wn):$s(Wn);return Dr(it,bi,Qt,!0)}function Xn(it,kt,Qt,Xt){let ln=kt===35||kt===37,Wn=kt===35||kt===36?98304:32768,bi=Rd(Qt);return ln!==Xt&&ap(bi,lo=>!!(lo.flags&Wn))||ln===Xt&&ap(bi,lo=>!(lo.flags&(3|Wn)))?XA(it,2097152):it}function ro(it,kt,Qt,Xt){if(it.flags&1)return it;(kt===36||kt===38)&&(Xt=!Xt);let ln=Rd(Qt),Wn=kt===35||kt===36;if(ln.flags&98304){if(!J)return it;let bi=Wn?Xt?262144:2097152:ln.flags&65536?Xt?131072:1048576:Xt?65536:524288;return XA(it,bi)}if(Xt){if(!Wn&&(it.flags&2||Fm(it,zh))){if(ln.flags&469893116||zh(ln))return ln;if(ln.flags&524288)return Hr}let bi=uc(it,pi=>h5(pi,ln)||Wn&&dct(pi,ln));return q8e(bi,ln)}return p_(ln)?uc(it,bi=>!(m8e(bi)&&h5(bi,ln))):it}function yr(it,kt,Qt,Xt,ln){(Qt===36||Qt===38)&&(ln=!ln);let Wn=GS(kt.expression);if(!Id(n,Wn)){J&&qA(Wn,n)&&ln===(Xt.text!=="undefined")&&(it=XA(it,2097152));let bi=jn(Wn,it);return bi?Qn(it,bi,pi=>Do(pi,Xt,ln)):it}return Do(it,Xt,ln)}function Do(it,kt,Qt){return Qt?Vd(it,kt.text):XA(it,EK.get(kt.text)||32768)}function os(it,kt,Qt,Xt,ln){return Qt!==Xt&&oo(oee(kt).slice(Qt,Xt),ln)?um(it,2097152):it}function Es(it,kt,Qt,Xt){let ln=oee(kt);if(!ln.length)return it;let Wn=ln.slice(Qt,Xt),bi=Qt===Xt||zo(Wn,Wr);if(it.flags&2&&!bi){let Zr;for(let Gi=0;Gih5(pi,Zr)),pi);if(!bi)return lo;let An=uc(it,Zr=>!(m8e(Zr)&&zo(ln,vu(nct(Zr)))));return lo.flags&131072?An:ei([lo,An])}function Vd(it,kt){switch(kt){case"string":return Wa(it,Ne,1);case"number":return Wa(it,It,2);case"bigint":return Wa(it,Dt,4);case"boolean":return Wa(it,gi,8);case"symbol":return Wa(it,xi,16);case"object":return it.flags&1?it:ei([Wa(it,Hr,32),Wa(it,ue,131072)]);case"function":return it.flags&1?it:Wa(it,Lt,64);case"undefined":return Wa(it,Me,65536)}return Wa(it,Hr,128)}function Wa(it,kt,Qt){return cl(it,Xt=>q_(Xt,kt,Mf)?dm(Xt,Qt)?Xt:Wr:Fb(kt,Xt)?kt:dm(Xt,Qt)?ga([Xt,kt]):Wr)}function Lu(it,kt,Qt,Xt){let ln=K8e(kt);if(!ln)return it;let Wn=ql(kt.caseBlock.clauses,lo=>lo.kind===297);if(Qt===Xt||Wn>=Qt&&WnYM(An,lo)===lo)}let pi=ln.slice(Qt,Xt);return ei(mn(pi,lo=>lo?Vd(it,lo):Wr))}function Wl(it,kt,Qt,Xt){let ln=ql(kt.caseBlock.clauses,pi=>pi.kind===297),Wn=Qt===Xt||ln>=Qt&&lnpi.kind===296?zr(it,pi.expression,!0):Wr))}function yl(it){return(kr(it)&&vr(it.name)==="constructor"||Xs(it)&&ss(it.argumentExpression)&&it.argumentExpression.text==="constructor")&&Id(n,it.expression)}function ot(it,kt,Qt,Xt){if(Xt?kt!==35&&kt!==37:kt!==36&&kt!==38)return it;let ln=Rd(Qt);if(!sbe(ln)&&!ts(ln))return it;let Wn=ha(ln,"prototype");if(!Wn)return it;let bi=lr(Wn),pi=xt(bi)?void 0:bi;if(!pi||pi===Re||pi===Lt)return it;if(xt(it))return pi;return uc(it,An=>lo(An,pi));function lo(An,Zr){return An.flags&524288&&Lr(An)&1||Zr.flags&524288&&Lr(Zr)&1?An.symbol===Zr.symbol:Fb(An,Zr)}}function Te(it,kt,Qt){let Xt=GS(kt.left);if(!Id(n,Xt))return Qt&&J&&qA(Xt,n)?XA(it,2097152):it;let ln=kt.right,Wn=Rd(ln);if(!a0(Wn,Re))return it;let bi=N5(kt),pi=bi&&Ff(bi);if(pi&&pi.kind===1&&pi.parameterIndex===0)return Dr(it,pi.type,Qt,!0);if(!a0(Wn,Lt))return it;let lo=cl(Wn,Cn);return xt(it)&&(lo===Re||lo===Lt)||!Qt&&!(lo.flags&524288&&!zh(lo))?it:Dr(it,lo,Qt,!0)}function Cn(it){let kt=Ue(it,"prototype");if(kt&&!xt(kt))return kt;let Qt=Ko(it,1);return Qt.length?ei(mn(Qt,Xt=>us(E8(Xt)))):Na}function Dr(it,kt,Qt,Xt){let ln=it.flags&1048576?`N${yu(it)},${yu(kt)},${(Qt?1:0)|(Xt?2:0)}`:void 0;return U1(ln)??db(ln,ui(it,kt,Qt,Xt))}function ui(it,kt,Qt,Xt){if(!Qt){if(it===kt)return Wr;if(Xt)return uc(it,lo=>!a0(lo,kt));let pi=Dr(it,kt,!0,!1);return uc(it,lo=>!$M(lo,pi))}if(it.flags&3||it===kt)return kt;let ln=Xt?a0:Fb,Wn=it.flags&1048576?I5(it):void 0,bi=cl(kt,pi=>{let lo=Wn&&Ue(pi,Wn),An=lo&&x5(it,lo),Zr=cl(An||it,Xt?Gi=>a0(Gi,pi)?Gi:a0(pi,Gi)?pi:Wr:Gi=>_5(Gi,pi)?Gi:_5(pi,Gi)?pi:Fb(Gi,pi)?Gi:Fb(pi,Gi)?pi:Wr);return Zr.flags&131072?cl(it,Gi=>Dl(Gi,465829888)&&ln(pi,Bd(Gi)||un)?ga([Gi,pi]):Wr):Zr});return bi.flags&131072?Fb(kt,it)?kt:ya(it,kt)?it:ya(kt,it)?kt:ga([it,kt]):bi}function Ai(it,kt,Qt){if(W8e(kt,n)){let Xt=Qt||!sT(kt)?N5(kt):void 0,ln=Xt&&Ff(Xt);if(ln&&(ln.kind===0||ln.kind===1))return Ii(it,ln,kt,Qt)}if(k8(it)&&Ls(n)&&kr(kt.expression)){let Xt=kt.expression;if(Id(n.expression,GS(Xt.expression))&&Fe(Xt.name)&&Xt.name.escapedText==="hasOwnProperty"&&kt.arguments.length===1){let ln=kt.arguments[0];if(ss(ln)&&JA(n)===fl(ln.text))return um(it,Qt?524288:65536)}}return it}function Ii(it,kt,Qt,Xt){if(kt.type&&!(xt(it)&&(kt.type===Re||kt.type===Lt))){let ln=ldt(kt,Qt);if(ln){if(Id(n,ln))return Dr(it,kt.type,Xt,!1);J&&qA(ln,n)&&(Xt&&!dm(kt.type,65536)||!Xt&&ap(kt.type,B5))&&(it=XA(it,2097152));let Wn=jn(ln,it);if(Wn)return Qn(it,Wn,bi=>Dr(bi,kt.type,Xt,!1))}}return it}function zr(it,kt,Qt){if(lF(kt)||pr(kt.parent)&&(kt.parent.operatorToken.kind===61||kt.parent.operatorToken.kind===78)&&kt.parent.left===kt)return Ar(it,kt,Qt);switch(kt.kind){case 80:if(!Id(n,kt)&&N<5){let Xt=Wm(kt);if(ZM(Xt)){let ln=Xt.valueDeclaration;if(ln&&Oi(ln)&&!ln.type&&ln.initializer&&Q8e(n)){N++;let Wn=zr(it,ln.initializer,Qt);return N--,Wn}}}case 110:case 108:case 211:case 212:return Wo(it,kt,Qt);case 213:return Ai(it,kt,Qt);case 217:case 235:return zr(it,kt.expression,Qt);case 226:return sp(it,kt,Qt);case 224:if(kt.operator===54)return zr(it,kt.operand,!Qt);break}return it}function Ar(it,kt,Qt){if(Id(n,kt))return XA(it,Qt?2097152:262144);let Xt=jn(kt,it);return Xt?Qn(it,Xt,ln=>um(ln,Qt?2097152:262144)):it}}function ddt(n,a){if(n=ff(n),(a.kind===80||a.kind===81)&&(FN(a)&&(a=a.parent),$h(a)&&(!Zh(a)||wI(a)))){let c=qZ(wI(a)&&a.kind===211?bee(a,void 0,!0):Rd(a));if(ff(Qr(a).resolvedSymbol)===n)return c}return kg(a)&&Py(a.parent)&&Om(a.parent)?JB(a.parent.symbol):Kj(a)&&wI(a.parent)?MS(n):Cb(n)}function z8(n){return Fn(n.parent,a=>Yo(a)&&!gT(a)||a.kind===268||a.kind===312||a.kind===172)}function Z8e(n){return!eWe(n,void 0)}function eWe(n,a){let c=Fn(n.valueDeclaration,dee);if(!c)return!1;let u=Qr(c);return u.flags&131072||(u.flags|=131072,udt(c)||nWe(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&tWe(a.name))}function udt(n){return!!Fn(n.parent,a=>dee(a)&&!!(Qr(a).flags&131072))}function dee(n){return Fs(n)||Yi(n)}function nWe(n){switch(n.kind){case 80:if(Zh(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===_?pdt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=js(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)||Bo(n,nWe)}function pdt(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 ZM(n){return n.flags&3&&(eve(n)&6)!==0}function uee(n){let a=n.valueDeclaration&&A_(n.valueDeclaration);return!!a&&(To(a)||Oi(a)&&($0(a.parent)||fdt(a)))}function fdt(n){return!!(n.parent.flags&1)&&!(eE(n)&32||n.parent.parent.kind===243&&Rh(n.parent.parent.parent))}function mdt(n){let a=Qr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Lh(n,9))return oC(n.symbol),!0;let c=!!dm(nL(n,0),16777216);if(!H_())return oC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function _dt(n,a){return J&&a.kind===169&&a.initializer&&dm(n,16777216)&&!mdt(a)?um(n,524288):n}function hdt(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,iWe)&&jA(Rd(c.argumentExpression)))}function rWe(n){return n.flags&2097152?gt(n.types,rWe):!!(n.flags&465829888&&cy(n).flags&1146880)}function iWe(n){return n.flags&2097152?gt(n.types,iWe):!!(n.flags&465829888&&!Dl(cy(n),98304))}function gdt(n,a){let c=(Fe(n)||kr(n)||Xs(n))&&!((P_(n.parent)||FT(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Ju(n,8):Ju(n,void 0));return c&&!_C(c)}function wye(n,a,c){return!(c&&c&2)&&Fm(n,rWe)&&(hdt(n,a)||gdt(a,c))?cl(n,cy):n}function oWe(n){return!!Fn(n,a=>{let c=a.parent;return c===void 0?"quit":kl(c)?c.expression===a&&Vl(a):Jd(c)?c.name===a||c.propertyName===a:!1})}function pee(n,a){if(ft&&SA(n,111551)&&!IT(a)){let c=Fc(n);Ad(n,!0)&1160127&&(em(B)||V0(B)&&oWe(a)||!eW(ff(c))?yb(n):od(n))}}function ydt(n,a,c){var u;let _=lr(n,c),g=n.valueDeclaration;if(g){if(Xa(g)&&!g.initializer&&!g.dotDotDotToken&&g.parent.elements.length>=2){let T=g.parent.parent,M=A_(T);if(M.kind===260&&qS(M)&6||M.kind===169){let W=Qr(T);if(!(W.flags&4194304)){W.flags|=4194304;let V=wr(T,0),te=V&&cl(V,cy);if(W.flags&=-4194305,te&&te.flags&1048576&&!(M.kind===169&&kye(M))){let ye=g.parent,_e=jb(ye,te,te,void 0,a.flowNode);return _e.flags&131072?Wr:vg(g,_e,!0)}}}}if(To(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&OZ(T)){let M=G8(T);if(M&&M.parameters.length===1&&Xd(M)){let W=FM(io(lr(M.parameters[0]),(u=VS(T))==null?void 0:u.nonFixingMapper));if(W.flags&1048576&&ap(W,Oa)&&!gt(T.parameters,kye)){let V=jb(T,W,W,void 0,a.flowNode),te=T.parameters.indexOf(g)-(k0(T)?1:0);return Cp(V,u_(te))}}}}}return _}function vdt(n,a){if(MI(n))return L5(n);let c=Wm(n);if(c===lt)return pt;if(c===Wt){if(VWe(n))return Ve(n,f.arguments_cannot_be_referenced_in_property_initializers),pt;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&&zs(an);)an=Wp(an),an&&(Qr(an).flags|=512);return lr(c)}Edt(n)&&pee(c,n);let u=ff(c),_=tbe(u,n);ub(_)&&Wge(n,_)&&_.declarations&&rv(n,_.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32&&di(g)&&g.name!==n){let an=wu(n,!1,!1);for(;an.kind!==312&&an.parent!==g;)an=wu(an,!1,!1);an.kind!==312&&(Qr(g).flags|=262144,Qr(an).flags|=262144,Qr(n).flags|=536870912)}Adt(n,c);let T=ydt(u,n,a),M=NI(n);if(M){if(!(u.flags&3)&&!(or(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)),pt}if(m_(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)),pt}let W=u.flags&2097152;if(u.flags&3){if(M===1)return bj(n)?my(T):T}else if(W)g=Mm(c);else return T;if(!g)return T;T=wye(T,n,a);let V=A_(g).kind===169,te=z8(g),ye=z8(n),_e=ye!==te,je=n.parent&&n.parent.parent&&Vy(n.parent)&&Mye(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||OF(ye))&&(ZM(u)&&T!==Jc||uee(u)&&eWe(u,n));)ye=z8(ye);let sn=V||W||_e||je||mt||bdt(n,g)||T!==et&&T!==Jc&&(!J||(T.flags&16387)!==0||IT(n)||xye(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,rr=rn?Me:sn?V?_dt(T,g):T:At?Me:Gb(T),Mn=rn?_y(jb(n,T,rr,ye)):jb(n,T,rr,ye);if(!Y8e(n)&&(T===et||T===Jc)){if(Mn===et||Mn===Jc)return fe&&(Ve(No(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))),Z8(Mn)}else if(!sn&&!UM(T)&&UM(Mn))return Ve(n,f.Variable_0_is_used_before_being_assigned,Si(c)),T;return M?my(Mn):Mn}function bdt(n,a){if(Xa(a)){let c=Fn(n,Xa);return c&&A_(c)===A_(a)}}function Edt(n){var a;let c=n.parent;if(c){if(kr(c)&&c.expression===n||Jd(c)&&c.isTypeOnly)return!1;let u=(a=c.parent)==null?void 0:a.parent;if(u&&$l(u)&&u.isTypeOnly)return!1}return!0}function Sdt(n,a){return!!Fn(n,c=>c===a?"quit":Yo(c)||c.parent&&jo(c.parent)&&!mc(c.parent)&&c.parent.initializer===c)}function Tdt(n,a){return Fn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Oye(n){return Fn(n,a=>!a||Cj(a)?"quit":Mv(a,!1))}function Adt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=ph(a.valueDeclaration),u=Sdt(n,c),_=Oye(c);if(_){if(u){let g=!0;if(OT(c)){let T=uE(a.valueDeclaration,261);if(T&&T.parent===c){let M=Tdt(n.parent,c);if(M){let W=Qr(M);W.flags|=8192;let V=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);yf(V,a),M===c.initializer&&(g=!1)}}}g&&(Qr(_).flags|=4096)}if(OT(c)){let g=uE(a.valueDeclaration,261);g&&g.parent===c&&xdt(n,c)&&(Qr(a.valueDeclaration).flags|=65536)}Qr(a.valueDeclaration).flags|=32768}u&&(Qr(a.valueDeclaration).flags|=16384)}function Idt(n,a){let c=Qr(n);return!!c&&zo(c.capturedBlockScopeBindings,Tr(a))}function xdt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let u=!1;if(Zh(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 Wye(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 aWe(n){return hT(n)?n:Yo(n)?void 0:Bo(n,aWe)}function Fye(n){let a=Tr(n),c=$s(a);return Rp(c)===We}function sWe(n,a,c){let u=a.parent;M0(u)&&!Fye(u)&&V2(n)&&n.flowNode&&!cee(n.flowNode,!1)&&Ve(n,c)}function Rdt(n,a){jo(a)&&mc(a)&&ee&&a.initializer&&YL(a.initializer,n.pos)&&bf(a.parent)&&Ve(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function L5(n){let a=IT(n),c=wu(n,!0,!0),u=!1,_=!1;for(c.kind===176&&sWe(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=wu(c,!1,!_),u=!0),c.kind===167){c=wu(c,!u,!1),_=!0;continue}break}if(Rdt(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:lWe(n,c)&&Ve(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&ce<2&&Wye(n,c);let g=zye(n,!0,c);if(ne){let T=lr(tt);if(g===T&&u)Ve(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){let M=Ve(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){let W=zye(c);W&&W!==T&&Ma(M,Pr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||G}function zye(n,a=!0,c=wu(n,!1,!1)){let u=or(n);if(Yo(c)&&(!Vye(n)||k0(c))){let _=Vhe(c)||u&&Ndt(c);if(!_){let g=Cdt(c);if(u&&g){let T=po(g).symbol;T&&T.members&&T.flags&16&&(_=$s(T).thisType)}else $_(c)&&(_=$s(es(c.symbol)).thisType);_||(_=pWe(c))}if(_)return jb(n,_)}if(di(c.parent)){let _=Tr(c.parent),g=na(c)?lr(_):$s(_).thisType;return jb(n,g)}if(Yi(c))if(c.commonJsModuleIndicator){let _=Tr(c);return _&&lr(_)}else{if(c.externalModuleIndicator)return Me;if(a)return lr(tt)}}function Ddt(n){let a=wu(n,!1,!1);if(Yo(a)){let c=lm(a);if(c.thisParameter)return see(c.thisParameter)}if(di(a.parent)){let c=Tr(a.parent);return na(a)?lr(c):$s(c).thisType}}function Cdt(n){if(n.kind===218&&pr(n.parent)&&Gl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&pr(n.parent.parent)&&Gl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&pr(n.parent.parent.parent)&&Gl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&hc(n.parent)&&Fe(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&La(n.parent.parent)&&ra(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&Gl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Kl(n)&&Fe(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&La(n.parent)&&ra(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Gl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Ndt(n){let a=iF(n);if(a&&a.typeExpression)return Ti(a.typeExpression);let c=zM(n);if(c)return r0(c)}function lWe(n,a){return!!Fn(n,c=>Fs(c)?"quit":c.kind===169&&c.parent===a)}function Bye(n){let a=n.parent.kind===213&&n.parent.expression===n,c=x2(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)$r(u,1024)&&(g=!0),u=x2(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||!(di(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),pt}if(!a&&c.kind===176&&sWe(n,u,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),na(u)||a?(T=32,!a&&ce>=2&&ce<=8&&(jo(u)||Il(u))&&Jre(n.parent,ye=>{(!Yi(ye)||wp(ye))&&(Qr(ye).flags|=2097152)})):T=16,Qr(n).flags|=T,u.kind===174&&g&&(Ou(n.parent)&&Zh(n.parent)?Qr(u).flags|=256:Qr(u).flags|=128),_&&Wye(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),pt):G;let M=u.parent;if(!M0(M))return Ve(n,f.super_can_only_be_referenced_in_a_derived_class),pt;if(Fye(M))return a?pt:We;let W=$s(Tr(M)),V=W&&Dp(W)[0];if(!V)return pt;if(u.kind===176&&lWe(n,u))return Ve(n,f.super_cannot_be_referenced_in_constructor_arguments),pt;return T===32?Rp(W):Up(V,W.thisType);function te(ye){return a?ye.kind===176:di(ye.parent)||ye.parent.kind===210?na(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 cWe(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 dWe(n){return Lr(n)&4&&n.target===jl?Hs(n)[0]:void 0}function Pdt(n){return cl(n,a=>a.flags&2097152?gn(a.types,dWe):dWe(a))}function uWe(n,a){let c=n,u=a;for(;u;){let _=Pdt(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=p0(c,void 0)}}function pWe(n){if(n.kind===219)return;if(OZ(n)){let c=G8(n);if(c){let u=c.thisParameter;if(u)return lr(u)}}let a=or(n);if(ne||a){let c=cWe(n);if(c){let _=p0(c,void 0),g=uWe(c,_);return g?io(g,gye(VS(c))):Hp(_?_y(_):rc(c))}let u=Ly(n.parent);if(Lc(u)){let _=u.left;if(Ls(_)){let{expression:g}=_;if(a&&Fe(g)){let T=Gn(u);if(T.commonJsModuleIndicator&&Wm(g)===T.symbol)return}return Hp(rc(g))}}}}function fWe(n){let a=n.parent;if(!OZ(a))return;let c=gT(a);if(c&&c.arguments){let _=Dee(c),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return mve(_,g,_.length,G,void 0,0);let T=Qr(c),M=T.resolvedSignature;T.resolvedSignature=yt;let W=g<_.length?BS(po(_[g])):n.initializer?void 0:Nt;return T.resolvedSignature=M,W}let u=G8(a);if(u){let _=a.parameters.indexOf(n)-(k0(a)?1:0);return n.dotDotDotToken&&Qs(a.parameters)===n?X5(u,_):US(u,_)}}function Gye(n,a){let c=vd(n)||(or(n)?U6(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return fWe(n);case 208:return Mdt(n,a);case 172:if(na(n))return Ldt(n,a)}}function Mdt(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=Gye(c,a)||c.kind!==208&&c.initializer&&nL(c,n.dotDotDotToken?32:0);if(!_||$o(u)||b2(u))return;if(c.name.kind===207){let T=Kx(n.parent.elements,n);return T<0?void 0:Hye(_,T)}let g=uv(u);if(Qf(g)){let T=Zf(g);return Ue(_,T)}}function Ldt(n,a){let c=ht(n.parent)&&Ju(n.parent,a);if(c)return u0(c,Tr(n).escapedName)}function kdt(n,a){let c=n.parent;if(kv(c)&&n===c.initializer){let u=Gye(c,a);if(u)return u;if(!(a&8)&&$o(c.name)&&c.name.elements.length>0)return C(c.name,!0,!1)}}function wdt(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=uc(u,M=>!!HS(1,M,g)));let T=HS(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=cl(u,mv);return g&&ei([g,DFe(g)])}return u}}}function Odt(n,a){let c=Ju(n,a);if(c){let u=mv(c);return u&&ei([u,DFe(u)])}}function Wdt(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&&(_=uc(_,T=>!!HS(1,T,g))),n.asteriskToken?_:HS(0,_,g)}}}function Vye(n){let a=!1;for(;n.parent&&!Yo(n.parent);){if(To(n.parent)&&(a||n.parent.initializer===n))return!0;Xa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function mWe(n,a){let c=!!(Vc(a)&2),u=fee(a,void 0);if(u)return HS(n,u,c)||void 0}function fee(n,a){let c=dC(n);if(c)return c;let u=Jye(n);if(u&&!gZ(u)){let g=us(u),T=Vc(n);return T&1?uc(g,M=>!!(M.flags&58998787)||wve(M,T,void 0)):T&2?uc(g,M=>!!(M.flags&58998787)||!!oL(M)):g}let _=gT(n);if(_)return Ju(_,a)}function _We(n,a){let u=Dee(n).indexOf(a);return u===-1?void 0:jye(n,u)}function jye(n,a){if(Op(n))return a===0?Ne:a===1?rOe(!1):G;let c=Qr(n).resolvedSignature===br?br:SC(n);if(lu(n)&&a===0)return gee(c,n);let u=c.parameters.length-1;return Xd(c)&&a>=u?Cp(lr(c.parameters[u]),u_(a-u),256):f_(c,a)}function Fdt(n){let a=Rve(n);return a?zA(a):void 0}function zdt(n,a){if(n.parent.kind===215)return _We(n.parent,a)}function Bdt(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?Vdt(c):void 0;case 57:case 61:let T=Ju(c,a);return n===g&&(T&&T.pattern||!T&&!mie(c))?Rd(u):T;case 56:case 28:return n===g?Ju(c,a):void 0;default:return}}function Gdt(n){if(b_(n)&&n.symbol)return n.symbol;if(Fe(n))return Wm(n);if(kr(n)){let c=Rd(n.expression);return Ki(n.name)?a(c,n.name):ha(c,n.name.escapedText)}if(Xs(n)){let c=rc(n.argumentExpression);if(!Qf(c))return;let u=Rd(n.expression);return ha(u,Zf(c))}return;function a(c,u){let _=Eee(u.escapedText,u);return _&&ive(c,_)}}function Vdt(n){var a,c;let u=Gl(n);switch(u){case 0:case 4:let _=Gdt(n.left),g=_&&_.valueDeclaration;if(g&&(jo(g)||_p(g))){let W=vd(g);return W&&io(Ti(W),qi(_).mapper)||(jo(g)?g.initializer&&Rd(n.left):void 0)}return u===0?Rd(n.left):hWe(n);case 5:if(mee(n,u))return hWe(n);if(!b_(n.left)||!n.left.symbol)return Rd(n.left);{let W=n.left.symbol.valueDeclaration;if(!W)return;let V=ta(n.left,Ls),te=vd(W);if(te)return Ti(te);if(Fe(V.expression)){let ye=V.expression,_e=gl(ye,ye.escapedText,111551,void 0,ye.escapedText,!0);if(_e){let je=_e.valueDeclaration&&vd(_e.valueDeclaration);if(je){let mt=Lg(V);if(mt!==void 0)return u0(Ti(je),mt)}return}}return or(W)||W===n.left?void 0:Rd(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 M=T&&vd(T);return M?Ti(M):void 0;case 7:case 8:case 9:return R.fail("Does not apply");default:return R.assertNever(u)}}function mee(n,a=Gl(n)){if(a===4)return!0;if(!or(n)||a!==5||!Fe(n.left.expression))return!1;let c=n.left.expression.escapedText,u=gl(n.left,c,111551,void 0,void 0,!0,!0);return GF(u?.valueDeclaration)}function hWe(n){if(!n.symbol)return Rd(n.left);if(n.symbol.valueDeclaration){let _=vd(n.symbol.valueDeclaration);if(_){let g=Ti(_);if(g)return g}}let a=ta(n.left,Ls);if(!bm(wu(a.expression,!1,!1)))return;let c=L5(a.expression),u=Lg(a);return u!==void 0&&u0(c,u)||void 0}function jdt(n){return!!(Al(n)&262144&&!n.links.type&&ix(n,0)>=0)}function u0(n,a,c){return cl(n,u=>{var _;if(Hu(u)&&!u.declaration.nameType){let g=hf(u),T=Bd(g)||g,M=c||Ku(Vi(a));if(ya(M,T))return DZ(u,M)}else if(u.flags&3670016){let g=ha(u,a);if(g)return jdt(g)?void 0:Vb(lr(g),!!(g&&g.flags&16777216));if(Oa(u)&&ig(a)&&+a>=0){let T=qM(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(_=age(sge(u),c||Ku(Vi(a))))==null?void 0:_.type}},!0)}function gWe(n,a){if(R.assert(bm(n)),!(n.flags&67108864))return Uye(n,a)}function Uye(n,a){let c=n.parent,u=hc(n)&&Gye(n,a);if(u)return u;let _=p0(c,a);if(_){if(lC(n)){let g=Tr(n);return u0(_,g.escapedName,qi(g).nameType)}if(Fv(n)){let g=No(n);if(g&&Ya(g)){let T=po(g.expression),M=Qf(T)&&u0(_,Zf(T));if(M)return M}}if(n.name){let g=uv(n.name);return cl(_,T=>{var M;return(M=age(sge(T),g))==null?void 0:M.type},!0)}}}function Udt(n){let a,c;for(let u=0;u{if(Oa(g)){if((u===void 0||a_)?c-a:0,M=T>0&&g.target.hasRestElement?T8(g.target,3):0;return T>0&&T<=M?Hs(g)[dv(g)-T]:qM(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||_===void 0?M:Math.min(M,c-_),!1,!0)}return(!u||afv(W)?Cp(W,u_(T)):W,!0))}function Jdt(n,a){let c=n.parent;return _F(c)?Ju(n,a):ag(c)?Kdt(c,n,a):void 0}function yWe(n,a){if(M_(n)){let c=p0(n.parent,a);return!c||xt(c)?void 0:u0(c,rP(n.name))}else return Ju(n.parent,a)}function k5(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 k5(n.expression);case 294:return!n.expression||k5(n.expression)}return!1}function qdt(n,a){return zct(a,n)||nye(a,bo(mn(Vr(n.properties,c=>c.symbol?c.kind===303?k5(c.initializer)&&XM(a,c.symbol.escapedName):c.kind===304?XM(a,c.symbol.escapedName):!1:!1),c=>[()=>nG(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),mn(Vr(_s(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&XM(a,c.escapedName)}),c=>[()=>Me,c.escapedName])),ya)}function Xdt(n,a){let c=W5(QA(n));return nye(a,bo(mn(Vr(n.properties,u=>!!u.symbol&&u.kind===291&&XM(a,u.symbol.escapedName)&&(!u.initializer||k5(u.initializer))),u=>[u.initializer?()=>nG(u.initializer):()=>wn,u.symbol.escapedName]),mn(Vr(_s(a),u=>{var _;if(!(u.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let g=n.parent.parent;return u.escapedName===c&&ag(g)&&uR(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&XM(a,u.escapedName)}),u=>[()=>Me,u.escapedName])),ya)}function p0(n,a){let c=bm(n)?gWe(n,a):Ju(n,a),u=_ee(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=cl(u,g=>Lr(g)&32?g:Mu(g),!0);return _.flags&1048576&&La(n)?qdt(n,_):_.flags&1048576&&Y0(n)?Xdt(n,_):_}}function _ee(n,a,c){if(n&&Dl(n,465829888)){let u=VS(a);if(u&&c&1&>(u.inferences,Mft))return hee(n,u.nonFixingMapper);if(u?.returnMapper){let _=hee(n,u.returnMapper);return _.flags&1048576&&dy(_.types,En)&&dy(_.types,Bn)?uc(_,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 Ju(n,a){var c;if(n.flags&67108864)return;let u=bWe(n,!a);if(u>=0)return fn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return kdt(n,a);case 219:case 253:return wdt(n,a);case 229:return Wdt(_,a);case 223:return Odt(_,a);case 213:case 214:return _We(_,n);case 170:return Fdt(_);case 216:case 234:return Ng(_.type)?Ju(_,a):Ti(_.type);case 226:return Bdt(n,a);case 303:case 304:return Uye(_,a);case 305:return Ju(_.parent,a);case 209:{let g=_,T=p0(g,a),M=Kx(g.elements,n),W=(c=Qr(g)).spreadIndices??(c.spreadIndices=Udt(g.elements));return Hye(T,M,g.elements.length,W.first,W.last)}case 227:return Hdt(n,a);case 239:return R.assert(_.parent.kind===228),zdt(_.parent,n);case 217:{if(or(_)){if(hU(_))return Ti(gU(_));let g=nE(_);if(g&&!Ng(g.typeExpression.type))return Ti(g.typeExpression.type)}return Ju(_,a)}case 235:return Ju(_,a);case 238:return Ti(_.type);case 277:return eo(_);case 294:return Jdt(_,a);case 291:case 293:return yWe(_,a);case 286:case 285:return Zdt(_,a);case 301:return Qdt(_)}}function vWe(n){w5(n,Ju(n,void 0),!0)}function w5(n,a,c){Jn[mi]=n,fn[mi]=a,qn[mi]=c,mi++}function B8(){mi--}function bWe(n,a){for(let c=mi-1;c>=0;c--)if(n===Jn[c]&&(a||!qn[c]))return c;return-1}function Ydt(n,a){ar[ur]=n,ni[ur]=a,ur++}function $dt(){ur--}function VS(n){for(let a=ur-1;a>=0;a--)if(P0(n,ar[a]))return ni[a]}function Qdt(n){return u0(Tge(!1),K6(n))}function Zdt(n,a){if(P_(n)&&a!==4){let c=bWe(n.parent,!a);if(c>=0)return fn[c]}return jye(n,0)}function gee(n,a){return rFe(a)!==0?eut(n,a):rut(n,a)}function eut(n,a){let c=Ive(n,un);c=EWe(a,QA(a),c);let u=jS(tf.IntrinsicAttributes,a);return Ut(u)||(c=ZB(u,c)),c}function tut(n,a){if(n.compositeSignatures){let u=[];for(let _ of n.compositeSignatures){let g=us(_);if(xt(g))return g;let T=Ue(g,a);if(!T)return;u.push(T)}return ga(u)}let c=us(n);return xt(c)?c:Ue(c,a)}function nut(n){if(fx(n.tagName)){let c=NWe(n),u=Cee(n,c);return zA(u)}let a=rc(n.tagName);if(a.flags&128){let c=CWe(a,n);if(!c)return pt;let u=Cee(n,c);return zA(u)}return a}function EWe(n,a,c){let u=Tut(a);if(u){let _=nut(n),g=LWe(u,or(n),_,c);if(g)return g}return c}function rut(n,a){let c=QA(a),u=Iut(c),_=u===void 0?Ive(n,un):u===""?us(n):tut(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(_=EWe(a,c,_),xt(_))return _;{let g=_,T=jS(tf.IntrinsicClassAttributes,a);if(!Ut(T)){let W=Nr(T.symbol),V=us(n),te;if(W){let ye=Lb([V],W,Oh(W),or(a));te=io(T,Np(W,ye))}else te=T;g=ZB(te,g)}let M=jS(tf.IntrinsicAttributes,a);return Ut(M)||(g=ZB(M,g)),g}}function iut(n){return uu(B,"noImplicitAny")?ru(n,(a,c)=>a===c||!a?a:bwe(a.typeParameters,c.typeParameters)?sut(a,c):void 0):void 0}function out(n,a,c){if(!n||!a)return n||a;let u=ei([lr(n),io(lr(a),c)]);return KA(n,u)}function aut(n,a,c){let u=Kp(n),_=Kp(a),g=u>=_?n:a,T=g===n?a:n,M=g===n?u:_,W=Bh(n)||Bh(a),V=W&&!Bh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=Q_(g)&&ye>=Q_(T),sn=ye>=u?void 0:tL(n,ye),rr=ye>=_?void 0:tL(a,ye),Mn=sn===rr?sn:sn?rr?void 0:sn:rr,an=Ka(1|(rn&&!At?16777216:0),Mn||`arg${ye}`);an.links.type=At?Gd(mt):mt,te[ye]=an}if(V){let ye=Ka(1,"args");ye.links.type=Gd(f_(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function sut(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Np(a.typeParameters,n.typeParameters));let _=n.declaration,g=aut(n,a,u),T=out(n.thisParameter,a.thisParameter,u),M=Math.max(n.minArgumentCount,a.minArgumentCount),W=bg(_,c,T,g,void 0,void 0,M,(n.flags|a.flags)&167);return W.compositeKind=2097152,W.compositeSignatures=bo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(W.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?zS(n.mapper,u):u),W}function Kye(n,a){let c=Ko(n,0),u=Vr(c,_=>!lut(_,a));return u.length===1?u[0]:iut(u)}function lut(n,a){let c=0;for(;cJM(_e)||Hu(_e)&&!_e.nameType&&!!R8(_e.target||_e)),ye=!1;for(let _e=0;_e<_;_e++){let je=u[_e];if(je.kind===230){ce<2&&Dc(je,B.downlevelIteration?1536:1024);let mt=po(je.expression,a,c);if(fv(mt))g.push(mt),T.push(8);else if(M){let At=n0(mt,It)||Kve(65,mt,Me,void 0,!1)||un;g.push(At),T.push(4)}else g.push(_v(33,mt,Me,je.expression)),T.push(4)}else if(Ie&&je.kind===232)ye=!0,g.push(ie),T.push(2);else{let mt=iL(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=VS(n);R.assert(At),_ye(At,je,mt)}}}return B8(),M?Fh(g,T):TWe(c||W||te?Fh(g,T,W&&!(V&&Fm(V,aye))):Gd(g.length?ei(Mc(g,(_e,je)=>T[je]&8?wb(_e,It)||G:_e),2):J?Pi:Nt,W))}function TWe(n){if(!(Lr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Hwe(n),a.objectFlags|=147456),a}function put(n){switch(n.kind){case 167:return fut(n);case 80:return ig(n.escapedText);case 9:case 11:return ig(n.text);default:return!1}}function fut(n){return xd(Sg(n),296)}function Sg(n){let a=Qr(n.expression);if(!a.resolvedType){if((gp(n.parent.parent)||di(n.parent.parent)||mu(n.parent.parent))&&pr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=pt;if(a.resolvedType=po(n.expression),jo(n.parent)&&!mc(n.parent)&&ed(n.parent.parent)){let c=ph(n.parent.parent),u=Oye(c);u&&(Qr(u).flags|=4096,Qr(n).flags|=32768,Qr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xd(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 mut(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return ig(n.escapedName)||c&&au(c)&&put(c.name)}function AWe(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return $2(n)||c&&au(c)&&Ya(c.name)&&xd(Sg(c.name),4096)}function qye(n,a,c,u){let _=[];for(let T=a;T0&&(M=OS(M,On(),n.symbol,At,te),T=[],g=oa(),sn=!1,rr=!1,Mn=!1);let Qn=d_(po(Ln.expression,a&2));if(O5(Qn)){let xo=Vge(Qn,te);if(_&&xWe(xo,_,Ln),an=T.length,Ut(M))continue;M=OS(M,xo,n.symbol,At,te)}else Ve(Ln,f.Spread_types_may_only_be_created_from_object_types),M=pt;continue}else R.assert(Ln.kind===177||Ln.kind===178),mx(Ln);jn&&!(jn.flags&8576)?ya(jn,xn)&&(ya(jn,It)?rr=!0:ya(jn,xi)?Mn=!0:sn=!0,u&&(rn=!0)):g.set($n.escapedName,$n),T.push($n)}if(B8(),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 _s(W))!g.get(jn.escapedName)&&!ha(M,jn.escapedName)&&(jn.flags&16777216||Ve(jn.valueDeclaration||((c=ri(jn,dh))==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(Ut(M))return pt;if(M!==Na)return T.length>0&&(M=OS(M,On(),n.symbol,At,te),T=[],g=oa(),sn=!1,rr=!1),cl(M,Ln=>Ln===Na?On():Ln);return On();function On(){let Ln=[];sn&&Ln.push(qye(n,an,T,Ne)),rr&&Ln.push(qye(n,an,T,It)),Mn&&Ln.push(qye(n,an,T,xi));let $n=Ps(n.symbol,g,Xe,Xe,Ln);return $n.objectFlags|=At|128|131072,mt&&($n.objectFlags|=4096),rn&&($n.objectFlags|=512),u&&($n.pattern=n),$n}}function O5(n){let a=v8e(cl(n,cy));return!!(a.flags&126615553||a.flags&3145728&&oo(a.types,O5))}function hut(n){Qye(n)}function gut(n,a){return mx(n),F5(n)||G}function yut(n){Qye(n.openingElement),fx(n.closingElement.tagName)?vee(n.closingElement):po(n.closingElement.tagName),yee(n)}function vut(n,a){return mx(n),F5(n)||G}function but(n){Qye(n.openingFragment);let a=Gn(n);return C6(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),F5(n)||G}function Yye(n){return n.includes("-")}function fx(n){return Fe(n)&&fR(n.escapedText)||Xm(n)}function IWe(n,a){return n.initializer?iL(n.initializer,a):wn}function Eut(n,a=0){let c=n.attributes,u=Ju(c,0),_=J?oa():void 0,g=oa(),T=pl,M=!1,W,V=!1,te=2048,ye=W5(QA(n));for(let mt of c.properties){let At=mt.symbol;if(M_(mt)){let rn=IWe(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),rP(mt.name)===ye&&(V=!0),u){let rr=ha(u,At.escapedName);rr&&rr.declarations&&ub(rr)&&Fe(mt.name)&&rv(mt.name,rr.declarations,mt.name.escapedText)}if(u&&a&2&&!(a&4)&&zf(mt)){let rr=VS(c);R.assert(rr);let Mn=mt.initializer.expression;_ye(rr,Mn,rn)}}else{R.assert(mt.kind===293),g.size>0&&(T=OS(T,je(),c.symbol,te,!1),g=oa());let rn=d_(po(mt.expression,a&2));xt(rn)&&(M=!0),O5(rn)?(T=OS(T,rn,c.symbol,te,!1),_&&xWe(rn,_,mt)):(Ve(mt.expression,f.Spread_types_may_only_be_created_from_object_types),W=W?ga([W,rn]):rn)}}M||g.size>0&&(T=OS(T,je(),c.symbol,te,!1));let _e=n.parent.kind===284?n.parent:void 0;if(_e&&_e.openingElement===n&&uR(_e.children).length>0){let mt=yee(_e,a);if(!M&&ye&&ye!==""){V&&Ve(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(ye));let At=p0(n.attributes,void 0),rn=At&&u0(At,ye),sn=Ka(4,ye);sn.links.type=mt.length===1?mt[0]:rn&&Fm(rn,JM)?Fh(mt):Gd(ei(mt)),sn.valueDeclaration=L.createPropertySignature(void 0,Vi(ye),void 0,void 0),ja(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;let rr=oa();rr.set(ye,sn),T=OS(T,Ps(c.symbol,rr,Xe,Xe,Xe),c.symbol,te,!1)}}if(M)return G;if(W&&T!==pl)return ga([W,T]);return W||(T===pl?je():T);function je(){te|=ve;let mt=Ps(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(iL(u,a))}return c}function xWe(n,a,c){for(let u of _s(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));Ma(g,Pr(c,f.This_spread_always_overwrites_this_property))}}}function Sut(n,a){return Eut(n.parent,a)}function jS(n,a){let c=QA(a),u=c&&xp(c),_=u&&Uu(u,n,788968);return _?$s(_):pt}function vee(n){let a=Qr(n);if(!a.resolvedSymbol){let c=jS(tf.IntrinsicElements,n);if(Ut(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)&&!Xm(n.tagName))return R.fail();let u=Xm(n.tagName)?BI(n.tagName):n.tagName.escapedText,_=ha(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=e4e(c,Ku(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 $ye(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=P6(N6(B,a),B);if(!u)return;let g=pu(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,M=a?.imports[T];M&&R.assert(qs(M)&&M.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let W=j_(M||n,u,g,n),V=W&&W!==lt?es(Ul(W)):void 0;return c&&(c.jsxImplicitImportContainer=V||!1),V}function QA(n){let a=n&&Qr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=$ye(n);if(!u||u===lt){let _=FE(n);u=gl(n,_,1920,void 0,_,!1)}if(u){let _=Ul(Uu(xp(Ul(u)),tf.JSX,1920));if(_&&_!==lt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=Ul(VM(tf.JSX,1920,void 0));if(c!==lt)return c}function RWe(n,a){let c=a&&Uu(a.exports,n,788968),u=c&&$s(c),_=u&&_s(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 Tut(n){return n&&Uu(n.exports,tf.LibraryManagedAttributes,788968)}function Aut(n){return n&&Uu(n.exports,tf.ElementType,788968)}function Iut(n){return RWe(tf.ElementAttributesPropertyNameContainer,n)}function W5(n){return RWe(tf.ElementChildrenAttributeNameContainer,n)}function DWe(n,a){if(n.flags&4)return[yt];if(n.flags&128){let _=CWe(n,a);return _?[Cee(a,_)]:(Ve(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+tf.IntrinsicElements),Xe)}let c=Mu(n),u=Ko(c,1);return u.length===0&&(u=Ko(c,0)),u.length===0&&c.flags&1048576&&(u=qhe(mn(c.types,_=>DWe(_,a)))),u}function CWe(n,a){let c=jS(tf.IntrinsicElements,a);if(!Ut(c)){let u=n.value,_=ha(c,fl(u));if(_)return lr(_);let g=n0(c,Ne);return g||void 0}return G}function xut(n,a,c){if(n===1){let _=MWe(c);_&&Bf(a,_,ju,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=PWe(c);_&&Bf(a,_,ju,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=MWe(c),g=PWe(c);if(!_||!g)return;let T=ei([_,g]);Bf(a,T,ju,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=fc(c.tagName);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function NWe(n){var a;R.assert(fx(n.tagName));let c=Qr(n);if(!c.resolvedJsxElementAttributesType){let u=vee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=lr(u)||pt;if(c.jsxFlags&2){let _=Xm(n.tagName)?BI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=sx(jS(tf.IntrinsicElements,n),_))==null?void 0:a.type)||pt}else return c.resolvedJsxElementAttributesType=pt}return c.resolvedJsxElementAttributesType}function PWe(n){let a=jS(tf.ElementClass,n);if(!Ut(a))return a}function F5(n){return jS(tf.Element,n)}function MWe(n){let a=F5(n);if(a)return ei([a,ue])}function Rut(n){let a=QA(n);if(!a)return;let c=Aut(a);if(!c)return;let u=LWe(c,or(n));if(!(!u||Ut(u)))return u}function LWe(n,a,...c){let u=$s(n);if(n.flags&524288){let _=qi(n).typeParameters;if(Nn(_)>=c.length){let g=Lb(c,_,c.length,a);return Nn(g)===0?u:pC(n,g)}}if(Nn(u.typeParameters)>=c.length){let _=Lb(c,u.typeParameters,c.length,a);return cv(u,_)}}function Dut(n){let a=jS(tf.IntrinsicElements,n);return a?_s(a):Xe}function Cut(n){(B.jsx||0)===0&&Ve(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),F5(n)===void 0&&fe&&Ve(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Qye(n){let a=lu(n);if(a&&Sgt(n),Cut(n),!$ye(n)){let c=Qa&&B.jsx===2?f.Cannot_find_name_0:void 0,u=FE(n),_=a?n.tagName:n,g;if(a1(n)&&u==="null"||(g=gl(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,ft&&g.flags&2097152&&!Lf(g)&&yb(g)),a1(n)){let T=Gn(n),M=H1(T);M&&gl(_,M,111551,c,M,!0)}}if(a){let c=n,u=SC(c);Pee(u,n);let _=Rut(c);if(_!==void 0){let g=c.tagName,T=fx(g)?Ku(yU(g)):po(g);Bf(T,_,ju,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let M=fc(g);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,M)})}else xut(rFe(c),us(u),c)}}function Zye(n,a,c){if(n.flags&524288){if(t0(n,a)||sx(n,a)||h8(a)&&Eg(n,Ne)||c&&Yye(a))return!0}else if(n.flags&3145728&&z5(n)){for(let u of n.types)if(Zye(u,a,c))return!0}return!1}function z5(n){return!!(n.flags&524288&&!(Lr(n)&512)||n.flags&67108864||n.flags&1048576&>(n.types,z5)||n.flags&2097152&&oo(n.types,z5))}function Nut(n,a){if(Agt(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 pt}function eve(n){return n.valueDeclaration?qS(n.valueDeclaration):0}function tve(n){if(n.flags&8192||Al(n)&4)return!0;if(or(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&pr(a)&&Gl(a)===3}}function nve(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 kWe(n,a,c,u,_,T)}function kWe(n,a,c,u,_,g){var T;let M=Tf(_,c);if(a){if(ce<2&&wWe(_))return g&&Ve(g,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(M&64)return g&&Ve(g,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Si(_),Vn(px(_))),!1;if(!(M&256)&&((T=_.declarations)!=null&&T.some(fre)))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(M&64&&wWe(_)&&(R2(n)||uie(n)||tm(n.parent)&&GF(n.parent.parent))){let V=Og(Cu(_));if(V&&Eht(n))return g&&Ve(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Xf(V.name)),!1}if(!(M&6))return!0;if(M&2){let V=Og(Cu(_));return ibe(n,V)?!0:(g&&Ve(g,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),Vn(px(_))),!1)}if(a)return!0;let W=Q6e(n,V=>{let te=$s(Tr(V));return c8e(te,_,c)});return!W&&(W=Put(n),W=W&&c8e(W,_,c),M&256||!W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),Vn(px(_)||u)),!1):M&256?!0:(u.flags&262144&&(u=u.isThisType?Pu(u):Bd(u)),!u||!aC(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 Put(n){let a=Mut(n),c=a?.type&&Ti(a.type);if(c&&c.flags&262144&&(c=Pu(c)),c&&Lr(c)&7)return sv(c)}function Mut(n){let a=wu(n,!1,!1);return a&&Yo(a)?k0(a):void 0}function wWe(n){return!!b5(n,a=>!(a.flags&8192))}function bC(n){return X_(po(n),n)}function B5(n){return dm(n,50331648)}function rve(n){return B5(n)?_y(n):n}function Lut(n,a){let c=Vl(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 kut(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 OWe(n,a,c){if(J&&n.flags&2){if(Vl(a)){let _=up(a);if(_.length<100)return Ve(a,f._0_is_of_type_unknown,_),pt}return Ve(a,f.Object_is_of_type_unknown),pt}let u=YM(n,50331648);if(u&50331648){c(a,u);let _=_y(n);return _.flags&229376?pt:_}return n}function X_(n,a){return OWe(n,a,Lut)}function WWe(n,a){let c=X_(n,a);if(c.flags&16384){if(Vl(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?wut(n,a):ove(n,n.expression,bC(n.expression),n.name,a,c)}function wut(n,a){let c=po(n.expression),u=L8(c,n.expression);return XZ(ove(n,n.expression,X_(u,n.expression),n.name,a),n,u!==c)}function FWe(n,a){let c=HF(n)&&O0(n.left)?X_(L5(n.left),n.left):bC(n.left);return ove(n,n.left,c,n.right,a)}function zWe(n){for(;n.parent.kind===217;)n=n.parent;return v_(n.parent)&&n.parent.expression===n}function Eee(n,a){for(let c=zF(a);c;c=sd(c)){let{symbol:u}=c,_=Y2(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function Out(n){if(!sd(n))return yn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!j4(n.parent)){if(!$h(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=pr(n.parent)&&n.parent.operatorToken.kind===103;if(!See(n)&&!a)return yn(n,f.Cannot_find_name_0,vr(n))}return!1}function Wut(n){Out(n);let a=See(n);return a&&V5(a,void 0,!1),G}function See(n){if(!$h(n))return;let a=Qr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Eee(n.escapedText,n)),a.resolvedSymbol}function ive(n,a){return ha(n,a.escapedName)}function Fut(n,a,c){let u,_=_s(n);_&&gn(_,T=>{let M=T.valueDeclaration;if(M&&au(M)&&Ki(M.name)&&M.name.escapedText===a.escapedText)return u=T,!0});let g=Pm(a);if(u){let T=R.checkDefined(u.valueDeclaration),M=R.checkDefined(sd(T));if(c?.valueDeclaration){let W=c.valueDeclaration,V=sd(W);if(R.assert(!!V),Fn(V,te=>M===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 Ma(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(M.name||P3)),!0}return!1}function BWe(n,a){return(rC(a)||R2(n)&&LM(a))&&wu(n,!0,!1)===kM(a)}function ove(n,a,c,u,_,g){let T=Qr(a).resolvedSymbol,M=NI(n),W=Mu(M!==0||zWe(n)?Hp(c):c),V=xt(W)||W===ho,te;if(Ki(u)){ce<99&&(M!==0&&Dc(n,1048576),M!==1&&Dc(n,524288));let _e=Eee(u.escapedText,u);if(M&&_e&&_e.valueDeclaration&&Kl(_e.valueDeclaration)&&yn(u,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,vr(u)),V){if(_e)return Ut(W)?pt:W;if(zF(u)===void 0)return yn(u,f.Private_identifiers_are_not_allowed_outside_class_bodies),G}if(te=_e&&ive(c,_e),te===void 0){if(Fut(c,u,_e))return pt;let je=zF(u);je&&h2(Gn(je),B.checkJs)&&yn(u,f.Private_field_0_must_be_declared_in_an_enclosing_class,vr(u))}else te.flags&65536&&!(te.flags&32768)&&M!==1&&Ve(n,f.Private_accessor_was_defined_without_a_getter)}else{if(V)return Fe(a)&&T&&pee(T,n),Ut(W)?pt:W;te=ha(W,u.escapedText,kee(W),n.kind===166)}Fe(a)&&T&&(em(B)||!(te&&(eW(te)||te.flags&8&&n.parent.kind===306))||V0(B)&&oWe(n))&&pee(T,n);let ye;if(te){let _e=tbe(te,u);if(ub(_e)&&Wge(n,_e)&&_e.declarations&&rv(u,_e.declarations,u.escapedText),zut(te,n,u),V5(te,n,JWe(a,T)),Qr(n).resolvedSymbol=te,nve(n,a.kind===108,wI(n),W,te),OFe(n,te,M))return Ve(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,vr(u)),pt;ye=BWe(n,te)?et:g||E6(n)?MS(te):lr(te)}else{let _e=!Ki(u)&&(M===0||!VA(c)||tP(c))?sx(W,u.escapedText):void 0;if(!(_e&&_e.type)){let je=ave(n,c.symbol,!0);return!je&&A8(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&&!_A(n)&&jWe(u,tP(c)?W:c,je),pt)}_e.isReadonly&&(Zh(n)||Ej(n))&&Ve(n,f.Index_signature_in_type_0_only_permits_reading,Vn(W)),ye=B.noUncheckedIndexedAccess&&!Zh(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&&nv(_e.declaration)&&rv(u,[_e.declaration],u.escapedText)}return GWe(n,te,ye,u,_)}function ave(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||!di(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||My(!1,a.valueDeclaration);return!(_!==g&&g&&Rh(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&kr(n)&&n.expression.kind===110&&T)}return!1}function GWe(n,a,c,u,_){let g=NI(n);if(g===1)return Vb(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 iC(n,a);c=wye(c,n,_);let T=!1;if(J&&xe&&Ls(n)&&n.expression.kind===110){let W=a&&a.valueDeclaration;if(W&&z6e(W)&&!na(W)){let V=z8(n);V.kind===176&&V.parent===W.parent&&!(W.flags&33554432)&&(T=!0)}}else J&&a&&a.valueDeclaration&&kr(a.valueDeclaration)&&W2(a.valueDeclaration)&&z8(n)===z8(a.valueDeclaration)&&(T=!0);let M=jb(n,c,T?Gb(c):c);return T&&!UM(c)&&UM(M)?(Ve(u,f.Property_0_is_used_before_being_assigned,Si(a)),c):g?my(M):M}function zut(n,a,c){let{valueDeclaration:u}=n;if(!u||Gn(a).isDeclarationFile)return;let _,g=vr(c);VWe(a)&&!Rat(u)&&!(Ls(a)&&Ls(a.expression))&&!Qg(u,c)&&!(Kl(u)&&ite(u)&256)&&(me||!But(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)),_&&Ma(_,Pr(u,f._0_is_declared_here,g))}function VWe(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 Ho(a.parent)&&Il(a.parent.parent)?!0:"quit";default:return $h(a)?!1:"quit"}})}function But(n){if(!(n.parent.flags&32))return!1;let a=lr(n.parent);for(;;){if(a=a.symbol&&Gut(a),!a)return!1;let c=ha(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Gut(n){let a=Dp(n);if(a.length!==0)return ga(a)}function jWe(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)&&!sx(T,n.escapedText)){u=Fo(u,f.Property_0_does_not_exist_on_type_1,xs(n),Vn(T));break}}if(UWe(n.escapedText,a)){let T=xs(n),M=Vn(a);u=Fo(u,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,M,M+"."+T)}else{let T=q8(a);if(T&&ha(T,n.escapedText))u=Fo(u,f.Property_0_does_not_exist_on_type_1,xs(n),Vn(a)),_=Pr(n,f.Did_you_forget_to_use_await);else{let M=xs(n),W=Vn(a),V=Uut(M,a);if(V!==void 0)u=Fo(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,M,W,V);else{let te=sve(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=Fo(u,_e,M,W,ye),_=te.valueDeclaration&&Pr(te.valueDeclaration,f._0_is_declared_here,ye)}else{let ye=Vut(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=Fo(ige(u,a),ye,M,W)}}}}let g=Mg(Gn(n),n,u);_&&Ma(g,_),t_(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function Vut(n){return B.lib&&!B.lib.includes("dom")&&edt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&fy(n)}function UWe(n,a){let c=a.symbol&&ha(lr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&na(c.valueDeclaration)}function jut(n){let a=Pm(n),u=X6().get(a);return u&&WG(u.keys())}function Uut(n,a){let c=Mu(a).symbol;if(!c)return;let u=vl(c),g=X6().get(u);if(g){for(let[T,M]of g)if(zo(M,n))return T}}function HWe(n,a){return G5(n,_s(a),106500)}function sve(n,a){let c=_s(a);if(typeof n!="string"){let u=n.parent;kr(u)&&(c=Vr(c,_=>qWe(u,a,_))),n=vr(n)}return G5(n,c,111551)}function KWe(n,a){let c=Co(n)?n:vr(n),u=_s(a);return(c==="for"?Gr(u,g=>vl(g)==="htmlFor"):c==="class"?Gr(u,g=>vl(g)==="className"):void 0)??G5(c,u,111551)}function lve(n,a){let c=sve(n,a);return c&&vl(c)}function cve(n,a,c){return R.assert(a!==void 0,"outername should always be defined"),Bp(n,a,c,void 0,a,!1,!1,!0,(_,g,T)=>{R.assertEqual(a,g,"name should equal outerName");let M=Uu(_,g,T);if(M)return M;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(Oo(_.values())):W=Oo(_.values()),G5(Vi(g),W,T)})}function Hut(n,a,c){let u=cve(n,a,c);return u&&vl(u)}function Tee(n,a){return a.exports&&G5(vr(n),xA(a),2623475)}function Kut(n,a){let c=Tee(n,a);return c&&vl(c)}function Jut(n,a,c){function u(T){let M=t0(n,T);if(M){let W=eI(lr(M));return!!W&&Q_(W)>=1&&ya(c,f_(W,0))}return!1}let _=Zh(a)?"set":"get";if(!u(_))return;let g=ok(a.expression);return g===void 0?g=_:g+="."+_,g}function qut(n,a){let c=a.types.filter(u=>!!(u.flags&128));return JC(n.value,c,u=>u.value)}function G5(n,a,c){return JC(n,a,u);function u(_){let g=vl(_);if(!ao(g,'"')){if(_.flags&c)return g;if(_.flags&2097152){let T=TA(_);if(T&&T.flags&c)return g}}}}function V5(n,a,c){let u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;let _=fp(u,2),g=n.valueDeclaration&&au(n.valueDeclaration)&&Ki(n.valueDeclaration.name);if(!(!_&&!g)&&!(a&&E6(a)&&!(n.flags&65536))){if(c){let T=Fn(a,Fs);if(T&&T.symbol===n)return}(Al(n)&1?qi(n).target:n).isReferenced=-1}}function JWe(n,a){return n.kind===110||!!a&&Vl(n)&&a===Wm(Fp(n))}function Xut(n,a){switch(n.kind){case 211:return dve(n,n.expression.kind===108,a,Hp(po(n.expression)));case 166:return dve(n,!1,a,Hp(po(n.left)));case 205:return dve(n,!1,a,Ti(n))}}function qWe(n,a,c){return uve(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function dve(n,a,c,u){if(xt(u))return!0;let _=ha(u,c);return!!_&&uve(n,a,!1,u,_)}function uve(n,a,c,u,_){if(xt(u))return!0;if(_.valueDeclaration&&su(_.valueDeclaration)){let g=sd(_.valueDeclaration);return!Hd(n)&&!!Fn(n,T=>T===g)}return kWe(n,a,c,u,_)}function Yut(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!$o(c.name))return Tr(c)}else if(a.kind===80)return Wm(a)}function $ut(n){return gu(n).length===1&&!!Eg(n,It)}function Qut(n){let a=ms(n);if(a.kind===80){let c=Wm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&Yut(_)===c&&$ut(Rd(_.expression)))return!0;u=_,_=_.parent}}}return!1}function Zut(n,a){return n.flags&64?ept(n,a):XWe(n,bC(n.expression),a)}function ept(n,a){let c=po(n.expression),u=L8(c,n.expression);return XZ(XWe(n,X_(u,n.expression),a),n,u!==c)}function XWe(n,a,c){let u=NI(n)!==0||zWe(n)?Hp(a):a,_=n.argumentExpression,g=po(_);if(Ut(u)||u===ho)return u;if(kee(u)&&!ss(_))return Ve(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),pt;let T=Qut(_)?It:g,M=Zh(n)?4|(VA(u)&&!tP(u)?2:0):32,W=wb(u,T,M,n)||pt;return r6e(GWe(n,Qr(n).resolvedSymbol,W,_,c),n)}function YWe(n){return v_(n)||K0(n)||lu(n)}function ZA(n){return YWe(n)&&gn(n.typeArguments,xa),n.kind===215?po(n.template):lu(n)?po(n.attributes):pr(n)?po(n.left):v_(n)&&gn(n.arguments,a=>{po(a)}),yt}function Y_(n){return ZA(n),cn}function tpt(n,a,c){let u,_,g=0,T,M=-1,W;R.assert(!a.length);for(let V of n){let te=V.declaration&&Tr(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)?(M++,W=M,g++):W=T,a.splice(W,0,c?Xot(V,c):V)}}function Aee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Iee(n){return ql(n,Aee)}function $We(n){return!!(n.flags&16384)}function npt(n){return!!(n.flags&49155)}function xee(n,a,c,u=!1){let _,g=!1,T=Kp(c),M=Q_(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let W=Ja(n.template.templateSpans);g=Bl(W.literal)||!!W.literal.isUnterminated}else{let W=n.template;R.assert(W.kind===15),g=!!W.isUnterminated}else if(n.kind===170)_=oFe(n,c);else if(n.kind===226)_=1;else if(lu(n)){if(g=n.attributes.end===n.end,g)return!0;_=M===0?a.length:1,T=a.length===0?T:1,M=Math.min(M,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)&&(Bh(c)||WT)return!1;if(g||_>=M)return!0;for(let W=_;W=u&&a.length<=c}function QWe(n,a){let c;return!!(n.target&&(c=US(n.target,a))&&_C(c))}function eI(n){return V8(n,0,!1)}function ZWe(n){return V8(n,0,!1)||V8(n,1,!1)}function V8(n,a,c){if(n.flags&524288){let u=c_(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 eFe(n,a,c,u){let _=O8(n.typeParameters,n,0,u),g=j8(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),M=T?gC(a,T):a;return pye(M,n,(W,V)=>{hy(_.inferences,W,V)}),c||fye(a,n,(W,V)=>{hy(_.inferences,W,V,128)}),b8(n,Iye(_),or(a.declaration))}function rpt(n,a,c,u){let _=gee(a,n),g=TC(n.attributes,_,u,c);return hy(u.inferences,g,_),Iye(u)}function tFe(n){if(!n)return tr;let a=po(n);return Kie(n)?a:aN(n.parent)?_y(a):Hd(n.parent)?qZ(a):a}function fve(n,a,c,u,_){if(lu(n))return rpt(n,a,u,_);if(n.kind!==170&&n.kind!==226){let W=oo(a.typeParameters,te=>!!FA(te)),V=Ju(n,W?8:0);if(V){let te=us(a);if(c0(te)){let ye=VS(n);if(!(!W&&Ju(n,8)!==V)){let At=gye(hct(ye,1)),rn=io(V,At),sn=eI(rn),rr=sn&&sn.typeParameters?zA(uge(sn,sn.typeParameters)):rn;hy(_.inferences,rr,te,128)}let je=O8(a.typeParameters,a,_.flags),mt=io(V,ye&&ye.returnMapper);hy(je.inferences,mt,te),_.returnMapper=gt(je.inferences,AC)?gye(bct(je)):void 0}}}let g=U8(a),T=g?Math.min(Kp(a)-1,c.length):c.length;if(g&&g.flags&262144){let W=Gr(_.inferences,V=>V.typeParameter===g);W&&(W.impliedArity=ql(c,Aee,T)<0?c.length-T:void 0)}let M=r0(a);if(M&&c0(M)){let W=iFe(n);hy(_.inferences,tFe(W),M)}for(let W=0;W=c-1){let te=n[c-1];if(Aee(te)){let ye=te.kind===237?te.type:TC(te.expression,u,_,g);return fv(ye)?nFe(ye):Gd(_v(33,ye,Me,te.kind===230?te.expression:te),T)}}let M=[],W=[],V=[];for(let te=a;teFo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,ye=u||f.Type_0_does_not_satisfy_the_constraint_1;M||(M=Np(g,T));let _e=T[W];if(!tu(_e,Up(io(V,M),_e),c?a[W]:void 0,ye,te))return}}return T}function rFe(n){if(fx(n.tagName))return 2;let a=Mu(po(n.tagName));return Nn(Ko(a,1))?0:Nn(Ko(a,0))?1:2}function ipt(n,a,c,u,_,g,T){let M=gee(a,n),W=TC(n.attributes,M,void 0,u),V=u&4?w8(W):W;return te()&&$ge(V,M,c,_?n.tagName:void 0,n.attributes,void 0,g,T);function te(){var ye;if($ye(n))return!0;let _e=(P_(n)||FT(n))&&!(fx(n.tagName)||Xm(n.tagName))?po(n.tagName):void 0;if(!_e)return!0;let je=Ko(_e,0);if(!Nn(je))return!0;let mt=d4e(n);if(!mt)return!0;let At=js(mt,111551,!0,!1,n);if(!At)return!0;let rn=lr(At),sn=Ko(rn,0);if(!Nn(sn))return!0;let rr=!1,Mn=0;for(let On of sn){let Ln=f_(On,0),$n=Ko(Ln,0);if(Nn($n))for(let jn of $n){if(rr=!0,Bh(jn))return!0;let Qn=Kp(jn);Qn>Mn&&(Mn=Qn)}}if(!rr)return!0;let an=1/0;for(let On of je){let Ln=Q_(On);Ln{_.push(g.expression)}),_}if(n.kind===170)return opt(n);if(n.kind===226)return[n.left];if(lu(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=U5(g,te&4?Gd(M):M,!!(te&12),(V=T.target.labeledElementDeclarations)==null?void 0:V[W]);u.push(ye)}):u.push(g)}return u}return a}function opt(n){let a=n.expression,c=Rve(n);if(c){let u=[];for(let _ of c.parameters){let g=lr(_);u.push(U5(a,g))}return u}return R.fail()}function oFe(n,a){return B.experimentalDecorators?apt(n,a):2}function apt(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 R.fail()}}function aFe(n){let a=Gn(n),{start:c,length:u}=_T(a,kr(n.expression)?n.expression.name:n.expression);return{start:c,length:u,sourceFile:a}}function H5(n,a,...c){if(ra(n)){let{sourceFile:u,start:_,length:g}=aFe(n);return"message"in a?Zc(u,_,g,a,...c):rj(u,a)}else return"message"in a?Pr(n,a,...c):Mg(Gn(n),n,a)}function spt(n){return v_(n)?kr(n.expression)?n.expression.name:n.expression:K0(n)?kr(n.tag)?n.tag.name:n.tag:lu(n)?n.tagName:n}function lpt(n){if(!ra(n)||!Fe(n.expression))return!1;let a=gl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!To(c)||!B0(c.parent)||!H0(c.parent.parent)||!Fe(c.parent.parent.expression))return!1;let u=Age(!1);return u?zm(c.parent.parent.expression,!0)===u:!1}function sFe(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,M=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 M=Fo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T);return M=Fo(M,u),E2(Gn(n),c,M)}return qx(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 M=Fo(void 0,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_);return M=Fo(M,u),E2(Gn(n),c,M)}return qx(Gn(n),c,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_)}function EC(n,a,c,u,_,g){let T=n.kind===215,M=n.kind===170,W=lu(n),V=n.kind===226,te=!j&&!c,ye;!M&&!V&&!hT(n)&&(ye=n.typeArguments,(T||W||n.expression.kind!==108)&&gn(ye,xa));let _e=c||[];tpt(a,_e,_),R.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=!M&&!mt&>(je,zf)?4:0,rn,sn,rr,Mn,an=!!(u&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(_e.length>1&&(Mn=Ln(_e,xh,mt,an)),Mn||(Mn=Ln(_e,ju,mt,an)),Mn)return Mn;if(Mn=dpt(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 $n=rn[rn.length-1],jn;rn.length>3&&(jn=Fo(jn,f.The_last_overload_gave_the_following_error),jn=Fo(jn,f.No_overload_matches_this_call)),g&&(jn=Fo(jn,g));let Qn=j5(n,je,$n,ju,0,!0,()=>jn);if(Qn)for(let xo of Qn)$n.declaration&&rn.length>3&&Ma(xo,Pr($n.declaration,f.The_last_overload_is_declared_here)),On($n,xo),Qa.add(xo);else R.fail("No error for last overload signature")}else{let $n=[],jn=0,Qn=Number.MAX_VALUE,xo=0,vo=0;for(let sp of rn){let Xn=j5(n,je,sp,ju,0,!0,()=>Fo(void 0,f.Overload_0_of_1_2_gave_the_following_error,vo+1,_e.length,Ph(sp)));Xn?(Xn.length<=Qn&&(Qn=Xn.length,xo=vo),jn=Math.max(jn,Xn.length),$n.push(Xn)):R.fail("No error for 3 or fewer overload signatures"),vo++}let Wo=jn>1?$n[xo]:pm($n);R.assert(Wo.length>0,"No errors reported for 3 or fewer overload signatures");let fo=Fo(mn(Wo,Yre),f.No_overload_matches_this_call);g&&(fo=Fo(fo,g));let Cc=[...va(Wo,sp=>sp.relatedInformation)],Vf;if(oo(Wo,sp=>sp.start===Wo[0].start&&sp.length===Wo[0].length&&sp.file===Wo[0].file)){let{file:sp,start:Pn,length:Xn}=Wo[0];Vf={file:sp,start:Pn,length:Xn,code:fo.code,category:fo.category,messageText:fo,relatedInformation:Cc}}else Vf=Mg(Gn(n),spt(n),fo,Cc);On(rn[0],Vf),Qa.add(Vf)}else if(sn)Qa.add(sFe(n,[sn],je,g));else if(rr)_ve(rr,n.typeArguments,!0,g);else{let $n=Vr(a,jn=>pve(jn,ye));$n.length===0?Qa.add(cpt(n,a,ye,g)):Qa.add(sFe(n,$n,je,g))}return Mn;function On($n,jn){var Qn,xo;let vo=rn,Wo=sn,fo=rr,Cc=((xo=(Qn=$n.declaration)==null?void 0:Qn.symbol)==null?void 0:xo.declarations)||Xe,sp=Cc.length>1?Gr(Cc,Pn=>Fs(Pn)&&Hf(Pn.body)):void 0;if(sp){let Pn=lm(sp),Xn=!Pn.typeParameters;Ln([Pn],ju,Xn)&&Ma(jn,Pr(sp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}rn=vo,sn=Wo,rr=fo}function Ln($n,jn,Qn,xo=!1){if(rn=void 0,sn=void 0,rr=void 0,Qn){let vo=$n[0];if(gt(ye)||!xee(n,je,vo,xo))return;if(j5(n,je,vo,jn,0,!1,void 0)){rn=[vo];return}return vo}for(let vo=0;vo<$n.length;vo++){let Wo=$n[vo];if(!pve(Wo,ye)||!xee(n,je,Wo,xo))continue;let fo,Cc;if(Wo.typeParameters){let Vf;if(gt(ye)){if(Vf=_ve(Wo,ye,!1),!Vf){rr=Wo;continue}}else Cc=O8(Wo.typeParameters,Wo,or(n)?2:0),Vf=fve(n,Wo,je,At|8,Cc),At|=Cc.flags&4?8:0;if(fo=b8(Wo,Vf,or(Wo.declaration),Cc&&Cc.inferredTypeParameters),U8(Wo)&&!xee(n,je,fo,xo)){sn=fo;continue}}else fo=Wo;if(j5(n,je,fo,jn,At,!1,void 0)){(rn||(rn=[])).push(fo);continue}if(At){if(At=0,Cc){let Vf=fve(n,Wo,je,At,Cc);if(fo=b8(Wo,Vf,or(Wo.declaration),Cc.inferredTypeParameters),U8(Wo)&&!xee(n,je,fo,xo)){sn=fo;continue}}if(j5(n,je,fo,jn,At,!1,void 0)){(rn||(rn=[])).push(fo);continue}}return $n[vo]=fo,fo}}}function dpt(n,a,c,u,_){return R.assert(a.length>0),mx(n),u||a.length===1||a.some(g=>!!g.typeParameters)?fpt(n,a,c,_):upt(a)}function upt(n){let a=to(n,W=>W.thisParameter),c;a.length&&(c=lFe(a,a.map(q5)));let{min:u,max:_}=Aoe(n,ppt),g=[];for(let W=0;W<_;W++){let V=to(n,te=>Xd(te)?WUS(te,W))))}let T=to(n,W=>Xd(W)?Ja(W.parameters):void 0),M=128;if(T.length!==0){let W=Gd(ei(to(n,Gwe),2));g.push(cFe(T,W)),M|=1}return n.some(vK)&&(M|=2),bg(n[0].declaration,void 0,c,g,ga(n.map(us)),void 0,u,M)}function ppt(n){let a=n.parameters.length;return Xd(n)?a-1:a}function lFe(n,a){return cFe(n,ei(a,2))}function cFe(n,a){return KA(Va(n),a)}function fpt(n,a,c,u){let _=hpt(a,Zt===void 0?c.length:Zt),g=a[_],{typeParameters:T}=g;if(!T)return g;let M=YWe(n)?n.typeArguments:void 0,W=M?yZ(g,mpt(M,T,or(n))):_pt(n,T,g,c,u);return a[_]=W,W}function mpt(n,a,c){let u=n.map(_x);for(;u.length>a.length;)u.pop();for(;u.length=a)return _;T>u&&(u=T,c=_)}return c}function gpt(n,a,c){if(n.expression.kind===108){let W=Bye(n.expression);if(xt(W)){for(let V of n.arguments)po(V);return yt}if(!Ut(W)){let V=S_(sd(n));if(V){let te=kh(W,V.typeArguments,V);return EC(n,te,a,c,0)}}return ZA(n)}let u,_=po(n.expression);if(sT(n)){let W=L8(_,n.expression);u=W===_?0:sN(n)?16:8,_=W}else u=0;if(_=OWe(_,n.expression,kut),_===ho)return mr;let g=Mu(_);if(Ut(g))return Y_(n);let T=Ko(g,0),M=Ko(g,1).length;if(K5(_,g,T.length,M))return!Ut(_)&&n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),ZA(n);if(!T.length){if(M)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;Ud(V.charCodeAt(Pa(V,n.expression.end,!0)-1))&&(W=Pr(n.expression,f.Are_you_missing_a_semicolon))}gve(n.expression,g,0,W)}return Y_(n)}return c&8&&!n.typeArguments&&T.some(ypt)?(KFe(n,c),br):T.some(W=>or(W.declaration)&&!!yV(W.declaration))?(Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Vn(_)),Y_(n)):EC(n,T,a,c,u)}function ypt(n){return!!(n.typeParameters&&sbe(us(n)))}function K5(n,a,c,u){return xt(n)||xt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(d_(a).flags&131072)&&ya(n,Lt)}function vpt(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=bC(n.expression);if(u===ho)return mr;if(u=Mu(u),Ut(u))return Y_(n);if(xt(u))return n.typeArguments&&Ve(n,f.Untyped_function_calls_may_not_accept_type_arguments),ZA(n);let _=Ko(u,1);if(_.length){if(!bpt(n,_[0]))return Y_(n);if(dFe(_,M=>!!(M.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)):EC(n,_,a,c,0)}let g=Ko(u,0);if(g.length){let T=EC(n,g,a,c,0);return fe||(T.declaration&&!$_(T.declaration)&&us(T)!==tr&&Ve(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),r0(T)===tr&&Ve(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return gve(n.expression,u,1),Y_(n)}function dFe(n,a){return So(n)?gt(n,c=>dFe(c,a)):n.compositeKind===1048576?gt(n.compositeSignatures,a):a(n)}function hve(n,a){let c=Dp(a);if(!Nn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=Swe(_),T=0;for(let M of u.types){if(!g[T]&&Lr(M)&3&&(M.symbol===n||hve(n,M)))return!0;T++}return!1}return u.symbol===n?!0:hve(n,u)}function bpt(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=LI(c,6);if(!u||c.kind!==176)return!0;let _=Og(c.parent.symbol),g=$s(c.parent.symbol);if(!ibe(n,_)){let T=sd(n);if(T&&u&4){let M=_x(T);if(hve(c.parent.symbol,M))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 uFe(n,a,c){let u,_=c===0,g=nI(a),T=g&&Ko(g,c).length>0;if(a.flags&1048576){let W=a.types,V=!1;for(let te of W)if(Ko(te,c).length!==0){if(V=!0,u)break}else if(u||(u=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(te)),u=Fo(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=Fo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Vn(a))),u||(u=Fo(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=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Vn(a));let M=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ra(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:W}=Qr(n);W&&W.flags&32768&&(M=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Fo(u,M),relatedMessage:T?f.Did_you_forget_to_use_await:void 0}}function gve(n,a,c,u){let{messageChain:_,relatedMessage:g}=uFe(n,a,c),T=Mg(Gn(n),n,_);if(g&&Ma(T,Pr(n,g)),ra(n.parent)){let{start:M,length:W}=aFe(n.parent);T.start=M,T.length=W}Qa.add(T),pFe(a,c,u?Ma(T,u):T)}function pFe(n,a,c){if(!n.symbol)return;let u=qi(n.symbol).originatingImport;if(u&&!Op(u)){let _=Ko(lr(qi(n.symbol).target),a);if(!_||!_.length)return;Ma(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 Ept(n,a,c){let u=po(n.tag),_=Mu(u);if(Ut(_))return Y_(n);let g=Ko(_,0),T=Ko(_,1).length;if(K5(u,_,g.length,T))return ZA(n);if(!g.length){if(fu(n.parent)){let M=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(M),Y_(n)}return gve(n.tag,_,0),Y_(n)}return EC(n,g,a,c,0)}function Spt(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 R.fail()}}function Tpt(n,a,c){let u=po(n.expression),_=Mu(u);if(Ut(_))return Y_(n);let g=Ko(_,0),T=Ko(_,1).length;if(K5(u,_,g.length,T))return ZA(n);if(xpt(n,g)&&!Fu(n.expression)){let W=fc(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 M=Spt(n);if(!g.length){let W=uFe(n.expression,_,0),V=Fo(W.messageChain,M),te=Mg(Gn(n.expression),n.expression,V);return W.relatedMessage&&Ma(te,Pr(n.expression,W.relatedMessage)),Qa.add(te),pFe(_,0,te),Y_(n)}return EC(n,g,a,c,0,M)}function Cee(n,a){let c=QA(n),u=c&&xp(c),_=u&&Uu(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)),M=Ka(1,"props");return M.links.type=a,bg(T,void 0,void 0,[M],_?$s(_):pt,void 0,1,0)}function Apt(n,a,c){if(fx(n.tagName)){let T=NWe(n),M=Cee(n,T);return zb(TC(n.attributes,gee(M,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(gn(n.typeArguments,xa),Qa.add(qx(Gn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Nn(n.typeArguments)))),M}let u=po(n.tagName),_=Mu(u);if(Ut(_))return Y_(n);let g=DWe(u,n);return K5(u,_,g.length,0)?ZA(n):g.length===0?(Ve(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,fc(n.tagName)),Y_(n)):EC(n,g,a,c,0)}function Ipt(n,a,c){let u=po(n.right);if(!xt(u)){let _=Pve(u);if(_){let g=Mu(_);if(Ut(g))return Y_(n);let T=Ko(g,0),M=Ko(g,1);if(K5(_,g,T.length,M.length))return ZA(n);if(T.length)return EC(n,T,a,c,0)}else if(!(Qee(u)||Fb(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 xpt(n,a){return a.length&&oo(a,c=>c.minArgumentCount===0&&!Xd(c)&&c.parameters.length1?rc(n.arguments[1]):void 0;for(let g=2;g{let T=Hp(_);WZ(g,T)||t8e(_,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 wpt(n){let a=po(n.expression),c=L8(a,n.expression);return XZ(_y(c),n,c!==a)}function Opt(n){return n.flags&64?wpt(n):_y(po(n.expression))}function vFe(n){if(f4e(n),gn(n.typeArguments,xa),n.kind===233){let c=Ly(n.parent);c.kind===226&&c.operatorToken.kind===104&&P0(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):O0(n.exprName)?L5(n.exprName):po(n.exprName);return bFe(a,n)}function bFe(n,a){let c=a.typeArguments;if(n===ho||Ut(n)||!gt(c))return n;let u=!1,_,g=M(n),T=u?_:n;return T&&Qa.add(qx(Gn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Vn(T))),g;function M(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=c_(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 rr=Ps(Ka(0,"__instantiationExpression"),At.members,rn,sn,At.indexInfos);return rr.objectFlags|=8388608,rr.node=a,rr}}else if(mt.flags&58982400){let At=Bd(mt);if(At){let rn=je(At);if(rn!==At)return rn}}else{if(mt.flags&1048576)return cl(mt,M);if(mt.flags&2097152)return ga(Mc(mt.types,je))}return mt}}function W(V){let te=Vr(V,ye=>!!ye.typeParameters&&pve(ye,c));return Mc(te,ye=>{let _e=_ve(ye,c,!0);return _e?b8(ye,_e,or(ye.declaration)):ye})}}function Wpt(n){return xa(n.type),Eve(n.expression,n.type)}function Eve(n,a,c){let u=po(n,c),_=Ti(a);if(Ut(_))return _;let g=Fn(a.parent,T=>T.kind===238||T.kind===357);return zb(u,_,g,n,f.Type_0_does_not_satisfy_the_expected_type_1),u}function Fpt(n){return kgt(n),n.keywordToken===105?Sve(n):n.keywordToken===102?zpt(n):R.assertNever(n.keywordToken)}function EFe(n){switch(n.keywordToken){case 102:return nOe();case 105:let a=Sve(n);return Ut(a)?pt:nft(a);default:R.assertNever(n.keywordToken)}}function Sve(n){let a=die(n);if(a)if(a.kind===176){let c=Tr(a.parent);return lr(c)}else{let c=Tr(a);return lr(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"),pt}function zpt(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 R.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?tOe():pt}function q5(n){let a=n.valueDeclaration;return op(lr(n),!1,!!a&&(kv(a)||nP(a)))}function Tve(n,a,c="arg"){return n?(R.assert(Fe(n.name)),n.name.escapedText):`${c}_${a}`}function tL(n,a,c){let u=n.parameters.length-(Xd(n)?1:0);if(a=u-1)return a===u-1?g:Gd(Cp(g,It));let T=[],M=[],W=[];for(let V=a;V!(W&1)),M=T<0?g.target.fixedLength:T;M>0&&(_=n.parameters.length-1+M)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(u)return _;for(let g=_-1;g>=0;g--){let T=f_(n,g);if(uc(T,$We).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Bh(n){if(Xd(n)){let a=lr(n.parameters[n.parameters.length-1]);return!Oa(a)||a.target.hasRestElement}return!1}function j8(n){if(Xd(n)){let a=lr(n.parameters[n.parameters.length-1]);if(!Oa(a))return xt(a)?tc:a;if(a.target.hasRestElement)return jM(a,a.target.fixedLength)}}function U8(n){let a=j8(n);return a&&!Gf(a)&&!xt(a)?a:void 0}function Ave(n){return Ive(n,Wr)}function Ive(n,a){return n.parameters.length>0?f_(n,0):a}function IFe(n,a,c){let u=n.parameters.length-(Xd(n)?1:0);for(let _=0;_=0);let g=Ml(u.parent)?lr(Tr(u.parent.parent)):n4e(u.parent),T=Ml(u.parent)?Me:r4e(u.parent),M=u_(_),W=n_("target",g),V=n_("propertyKey",T),te=n_("parameterIndex",M);c.decoratorSignature=Y8(void 0,void 0,[W,V,te],tr);break}case 174:case 177:case 178:case 172:{let u=a;if(!di(u.parent))break;let _=n4e(u),g=n_("target",_),T=r4e(u),M=n_("propertyKey",T),W=jo(u)?tr:cOe(_x(u));if(ce!==0&&(!jo(a)||I_(a))){let te=cOe(_x(u)),ye=n_("descriptor",te);c.decoratorSignature=Y8(void 0,void 0,[g,M,ye],ei([W,tr]))}else c.decoratorSignature=Y8(void 0,void 0,[g,M],ei([W,tr]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Rve(n){return ee?tft(n):eft(n)}function $5(n){let a=s5(!0);return a!==Mo?(n=mv(aL(n))||un,cv(a,[n])):un}function DFe(n){let a=aOe(!0);return a!==Mo?(n=mv(aL(n))||un,cv(a,[n])):un}function Q5(n,a){let c=$5(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),pt):(Age(!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 nft(n){let a=Ka(0,"NewTargetExpression"),c=Ka(4,"target",8);c.parent=a,c.links.type=n;let u=oa([c]);return a.members=u,Ps(a,u,Xe,Xe,Xe)}function Mee(n,a){if(!n.body)return pt;let c=Vc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,M,W=tr;if(n.body.kind!==241)g=rc(n.body,a&&a&-9),u&&(g=aL(X8(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=kFe(n,a);V?V.length>0&&(g=ei(V,2)):W=Wr;let{yieldTypes:te,nextTypes:ye}=rft(n,a);T=gt(te)?ei(te,2):void 0,M=gt(ye)?ga(ye):void 0}else{let V=kFe(n,a);if(!V)return c&2?Q5(n,Wr):Wr;if(V.length===0){let te=fee(n,void 0),ye=te&&(cG(te,c)||tr).flags&32768?Me:tr;return c&2?Q5(n,ye):ye}g=ei(V,2)}if(g||T||M){if(T&&ZZ(n,T,3),g&&ZZ(n,g,1),M&&ZZ(n,M,2),g&&p_(g)||T&&p_(T)||M&&p_(M)){let V=Jye(n),te=V?V===lm(n)?_?void 0:g:_ee(us(V),n,void 0):void 0;_?(T=dye(T,te,0,u),g=dye(g,te,1,u),M=dye(M,te,2,u)):g=ict(g,te,u)}T&&(T=Hp(T)),g&&(g=Hp(g)),M&&(M=Hp(M))}return _?CFe(T||Wr,g||W,M||mWe(2,n)||un,u):u?$5(g||W):g||W}function CFe(n,a,c,u){let _=u?Vs:yc,g=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||un,a=_.resolveIterationType(a,void 0)||un,c=_.resolveIterationType(c,void 0)||un,g===Mo){let T=_.getGlobalIterableIteratorType(!1),M=T!==Mo?E6e(T,_):void 0,W=M?M.returnType:G,V=M?M.nextType:Me;return ya(a,W)&&ya(V,c)?T!==Mo?S8(T,[n]):(_.getGlobalIterableIteratorType(!0),Na):(_.getGlobalGeneratorType(!0),Na)}return S8(g,[n,a,c])}function rft(n,a){let c=[],u=[],_=(Vc(n)&2)!==0;return Zre(n.body,g=>{let T=g.expression?po(g.expression,a):Nt;yf(c,NFe(g,T,G,_));let M;if(g.asteriskToken){let W=Hee(T,_?19:17,g.expression);M=W&&W.nextType}else M=Ju(g,void 0);M&&yf(u,M)}),{yieldTypes:c,nextTypes:u}}function NFe(n,a,c,u){let _=n.expression||n,g=n.asteriskToken?_v(u?19:17,a,c,_):a;return u?nI(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 PFe(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 MFe(n){let a=Qr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=ift(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function ift(n){if(n.expression.kind===221){let u=K8e(n);if(!u)return!1;let _=cy(rc(n.expression.expression)),g=PFe(0,0,u);return _.flags&3?(556800&g)===556800:!Fm(_,T=>YM(T,g)===g)}let a=rc(n.expression);if(!M8(a))return!1;let c=oee(n);return!c.length||gt(c,tct)?!1:Qct(cl(a,vu),c)}function LFe(n){return n.endFlowNode&&P5(n.endFlowNode)}function kFe(n,a){let c=Vc(n),u=[],_=LFe(n),g=!1;if(R0(n.body,T=>{let M=T.expression;if(M){if(M=ms(M,!0),c&2&&M.kind===223&&(M=ms(M.expression,!0)),M.kind===213&&M.expression.kind===80&&rc(M.expression).symbol===n.symbol){g=!0;return}let W=rc(M,a&&a&-9);c&2&&(W=aL(X8(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||oft(n))))return J&&u.length&&_&&!($_(n)&&u.some(T=>T.symbol===n.symbol))&&yf(u,Me),u}function oft(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function Dve(n,a){r(c);return;function c(){let u=Vc(n),_=a&&cG(a,u);if(_&&(Dl(_,16384)||_.flags&32769)||n.kind===173||Bl(n.body)||n.body.kind!==241||!LFe(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 M=us(lm(n));if(C6e(n,M))return}Ve(T,f.Not_all_code_paths_return_a_value)}}}function wFe(n,a){if(R.assert(n.kind!==174||bm(n)),mx(n),ks(n)&&sL(n,n.name),a&&a&4&&zf(n)){if(!$f(n)&&!G6(n)){let u=G8(n);if(u&&c0(us(u))){let _=Qr(n);if(_.contextFreeType)return _.contextFreeType;let g=Mee(n,a),T=bg(void 0,void 0,void 0,Xe,g,void 0,0,64),M=Ps(n.symbol,K,[T],Xe,Xe);return M.objectFlags|=262144,_.contextFreeType=M}}return tn}return!nte(n)&&n.kind===218&&dbe(n),aft(n,a),lr(Tr(n))}function aft(n,a){let c=Qr(n);if(!(c.flags&64)){let u=G8(n);if(!(c.flags&64)){c.flags|=64;let _=Yc(Ko(lr(Tr(n)),0));if(!_)return;if(zf(n))if(u){let g=VS(n),T;if(a&&a&2){IFe(_,u,g);let M=j8(u);M&&M.flags&262144&&(T=gC(u,g.nonFixingMapper))}T||(T=g?gC(u,g.mapper):u),Vpt(_,T)}else jpt(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=VS(n);a&&a&2&&IFe(_,u,g)}if(u&&!dC(n)&&!_.resolvedReturnType){let g=Mee(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}K8(n)}}}function sft(n){R.assert(n.kind!==174||bm(n));let a=Vc(n),c=dC(n);if(Dve(n,c),n.body)if($f(n)||us(lm(n)),n.body.kind===241)xa(n.body);else{let u=po(n.body),_=c&&cG(c,a);if(_){let g=Ree(n.body);if((a&3)===2){let T=X8(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);zb(T,_,g,g)}else zb(u,_,g,g)}}}function Lee(n,a,c,u=!1){if(!ya(a,Zl)){let _=u&&oL(a);return zE(n,!!_&&ya(_,Zl),c),!1}return!0}function lft(n){if(!ra(n)||!vT(n))return!1;let a=rc(n.arguments[2]);if(Ue(a,"value")){let _=ha(a,"writable"),g=_&&lr(_);if(!g||g===Kt||g===En)return!0;if(_&&_.valueDeclaration&&hc(_.valueDeclaration)){let T=_.valueDeclaration.initializer,M=po(T);if(M===Kt||M===En)return!0}return!1}return!ha(a,"set")}function m_(n){return!!(Al(n)&8||n.flags&4&&Tf(n)&8||n.flags&3&&eve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||gt(n.declarations,lft))}function OFe(n,a,c){var u,_;if(c===0)return!1;if(m_(a)){if(a.flags&4&&Ls(n)&&n.expression.kind===110){let g=Wp(n);if(!(g&&(g.kind===176||$_(g))))return!0;if(a.valueDeclaration){let T=pr(a.valueDeclaration),M=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!(M||W||V||te)}}return!0}if(Ls(n)){let g=ms(n.expression);if(g.kind===80){let T=Qr(g).resolvedSymbol;if(T.flags&2097152){let M=Mm(T);return!!M&&M.kind===274}}}return!1}function H8(n,a,c){let u=Ql(n,7);return u.kind!==80&&!Ls(u)?(Ve(n,a),!1):u.flags&64?(Ve(n,c),!1):!0}function cft(n){po(n.expression);let a=ms(n.expression);if(!Ls(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&&(m_(u)?Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):dft(a,u)),gi}function dft(n,a){let c=lr(a);J&&!(c.flags&131075)&&!(Ie?a.flags&16777216:dm(c,16777216))&&Ve(n,f.The_operand_of_a_delete_operator_must_be_optional)}function uft(n){return po(n.expression),GD}function pft(n){return mx(n),Nt}function WFe(n){let a=!1,c=FF(n);if(c&&Il(c)){let u=Xv(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(BF(n)){let u=Gn(n);if(!KS(u)){let _;if(!II(u,B)){_??(_=fh(u,n.pos));let g=Xv(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=Zc(u,_.start,_.length,g);Qa.add(T),a=!0}switch(z){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=fh(u,n.pos)),Qa.add(Zc(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:_??(_=fh(u,n.pos));let g=Xv(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(Zc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Gn(n);if(!KS(u)){let _=fh(u,n.pos),g=Xv(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=Zc(u,_.start,_.length,g);if(c&&c.kind!==176&&!(Vc(c)&2)){let M=Pr(c,f.Did_you_mean_to_mark_this_function_as_async);Ma(T,M)}Qa.add(T),a=!0}}return Xv(n)&&Vye(n)&&(Ve(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function fft(n){r(()=>WFe(n));let a=po(n.expression),c=X8(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&&!Ut(c)&&!(a.flags&3)&&t_(!1,Pr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function mft(n){let a=po(n.operand);if(a===ho)return ho;switch(n.operand.kind){case 9:switch(n.operator){case 41:return ux(u_(-n.operand.text));case 40:return ux(u_(+n.operand.text))}break;case 10:if(n.operator===41)return ux(PZ({negative:!0,base10Value:YN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return X_(a,n.operand),Z5(a,12288)&&Ve(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,da(n.operator)),n.operator===40?(Z5(a,2112)&&Ve(n.operand,f.Operator_0_cannot_be_applied_to_type_1,da(n.operator),Vn(my(a))),It):Cve(a);case 54:Hve(a,n.operand);let c=YM(a,12582912);return c===4194304?Kt: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)&&H8(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),Cve(a)}return pt}function _ft(n){let a=po(n.operand);return a===ho?ho:(Lee(n.operand,X_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&H8(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),Cve(a))}function Cve(n){return Dl(n,2112)?xd(n,3)||Dl(n,296)?Zl:Dt:It}function Z5(n,a){if(Dl(n,a))return!0;let c=cy(n);return!!c&&Dl(c,a)}function Dl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let u of c)if(Dl(u,a))return!0}return!1}function xd(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,tr)||!!(a&131072)&&ya(n,Wr)||!!(a&65536)&&ya(n,ue)||!!(a&32768)&&ya(n,Me)||!!(a&4096)&&ya(n,xi)||!!(a&67108864)&&ya(n,Hr)}function eG(n,a,c){return n.flags&1048576?oo(n.types,u=>eG(u,a,c)):xd(n,a,c)}function kee(n){return!!(Lr(n)&16)&&!!n.symbol&&Nve(n.symbol)}function Nve(n){return(n.flags&128)!==0}function Pve(n){let a=T6e("hasInstance"),c=t0(n,a);if(c){let u=lr(c);if(u&&Ko(u,0).length!==0)return u}}function hft(n,a,c,u,_){if(c===ho||u===ho)return ho;!xt(c)&&eG(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),R.assert(h6(n.parent));let g=SC(n.parent,void 0,_);if(g===br)return ho;let T=us(g);return tu(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 gft(n){return Fm(n,a=>a===Rl||!!(a.flags&2097152)&&zh(cy(a)))}function yft(n,a,c,u){if(c===ho||u===ho)return ho;if(Ki(n)){if(ce<99&&Dc(n,2097152),!Qr(n).resolvedSymbol&&sd(n)){let _=ave(n,u.symbol,!0);jWe(n,u,_)}}else tu(X_(c,n),xn,n);return tu(X_(u,a),Hr,a)&&gft(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 vft(n,a,c){let u=n.properties;if(J&&u.length===0)return X_(a,n);for(let _=0;_jM(V,c)):Gd(u);return tI(M,W,_)}}}}function tI(n,a,c,u){let _;if(n.kind===304){let g=n;g.objectAssignmentInitializer&&(J&&!dm(po(g.objectAssignmentInitializer),16777216)&&(a=um(a,524288)),Aft(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?vft(_,a,u):_.kind===209?bft(_,a,c):Eft(_,a,c)}function Eft(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 H8(n,_,g)&&zb(a,u,n,n),zx(n)&&Dc(n.parent,1048576),a}function tG(n){switch(n=ms(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 tG(n.whenTrue)&&tG(n.whenFalse);case 226:return wy(n.operatorToken.kind)?!1:tG(n.left)&&tG(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 Mve(n,a){return(a.flags&98304)!==0||WZ(n,a)}function Sft(){let n=n3(a,c,u,_,g,T);return(_e,je)=>{let mt=n(_e,je);return R.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]},or(_e)&&xI(_e)?(je.skip=!0,ye(je,po(_e.right,mt)),je):(Tft(_e),_e.operatorToken.kind===64&&(_e.left.kind===210||_e.left.kind===209)&&(je.skip=!0,ye(je,tI(_e.left,po(_e.right,mt),mt,_e.right.kind===110))),je)}function c(_e,je,mt){if(!je.skip)return M(je,_e)}function u(_e,je,mt){if(!je.skip){let At=te(je);R.assertIsDefined(At),V(je,At),ye(je,void 0);let rn=_e.kind;if(nk(rn)){let sn=mt.parent;for(;sn.kind===217||rk(sn);)sn=sn.parent;(rn===56||wT(sn))&&Uve(mt.left,At,wT(sn)?sn.thenStatement:void 0),Hve(At,mt.left)}}}function _(_e,je,mt){if(!je.skip)return M(je,_e)}function g(_e,je){let mt;if(je.skip)mt=te(je);else{let At=W(je);R.assertIsDefined(At);let rn=te(je);R.assertIsDefined(rn),mt=BFe(_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 M(_e,je){if(pr(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 Tft(n){let{left:a,operatorToken:c,right:u}=n;c.kind===61&&(pr(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)),pr(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 Aft(n,a,c,u,_){let g=a.kind;if(g===64&&(n.kind===210||n.kind===209))return tI(n,po(c,u),u,c.kind===110);let T;nk(g)?T=lL(n,u):T=po(n,u);let M=po(c,u);return BFe(n,a,c,T,M,u,_)}function BFe(n,a,c,u,_,g,T){let M=a.kind;switch(M){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===ho||_===ho)return ho;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 $n=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),Qn;if(xd(u,3)&&xd(_,3)||!(Dl(u,2112)||Dl(_,2112)))Qn=It;else if(W(u,_)){switch(M){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)}Qn=Dt}else rn(W),Qn=pt;return $n&&jn&&je(Qn),Qn}case 40:case 65:if(u===ho||_===ho)return ho;!xd(u,402653316)&&!xd(_,402653316)&&(u=X_(u,n),_=X_(_,c));let On;return xd(u,296,!0)&&xd(_,296,!0)?On=It:xd(u,2112,!0)&&xd(_,2112,!0)?On=Dt:xd(u,402653316,!0)||xd(_,402653316,!0)?On=Ne:(xt(u)||xt(_))&&(On=Ut(u)||Ut(_)?pt:G),On&&!ye(M)?On:On?(M===65&&je(On),On):(rn((jn,Qn)=>xd(jn,402655727)&&xd(Qn,402655727)),G);case 30:case 32:case 33:case 34:return ye(M)&&(u=lye(X_(u,n)),_=lye(X_(_,c)),At(($n,jn)=>{if(xt($n)||xt(jn))return!0;let Qn=ya($n,Zl),xo=ya(jn,Zl);return Qn&&xo||!Qn&&!xo&&h5($n,jn)})),gi;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((RV(n)||RV(c))&&(!or(n)||M===37||M===38)){let $n=M===35||M===37;Ve(T,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,$n?"false":"true")}rr(T,M,n,c),At(($n,jn)=>Mve($n,jn)||Mve(jn,$n))}return gi;case 104:return hft(n,c,u,_,g);case 103:return yft(n,c,u,_);case 56:case 77:{let $n=dm(u,4194304)?ei([sct(J?u:my(_)),_]):u;return M===77&&je(_),$n}case 57:case 76:{let $n=dm(u,8388608)?ei([_y(v8e(u)),_],2):u;return M===76&&je(_),$n}case 61:case 78:{let $n=dm(u,262144)?ei([_y(u),_],2):u;return M===78&&je(_),$n}case 64:let Ln=pr(n.parent)?Gl(n.parent):0;return V(Ln,_),mt(Ln)?((!(_.flags&524288)||Ln!==2&&Ln!==6&&!fy(_)&&!Cye(_)&&!(Lr(_)&1))&&je(_),u):(je(_),_);case 28:if(!B.allowUnreachableCode&&tG(n)&&!te(n.parent)){let $n=Gn(n),jn=$n.text,Qn=Pa(jn,n.pos);$n.parseDiagnostics.some(vo=>vo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:_V(vo,Qn))||Ve(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return R.fail()}function W(an,On){return xd(an,2112)&&xd(On,2112)}function V(an,On){if(an===2)for(let Ln of Mb(On)){let $n=lr(Ln);if($n.symbol&&$n.symbol.flags&32){let jn=Ln.escapedName,Qn=gl(Ln.valueDeclaration,jn,788968,void 0,jn,!1);Qn?.declarations&&Qn.declarations.some(GT)&&(am(Qn,f.Duplicate_identifier_0,Vi(jn),Ln),am(Ln,f.Duplicate_identifier_0,Vi(jn),Qn))}}}function te(an){return an.parent.kind===217&&mp(an.left)&&an.left.text==="0"&&(ra(an.parent.parent)&&an.parent.parent.expression===an.parent||an.parent.parent.kind===215)&&(Ls(an.right)||Fe(an.right)&&an.right.escapedText==="eval")}function ye(an){let On=Z5(u,12288)?n:Z5(_,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){wy(M)&&r(On);function On(){let Ln=u;if(OP(a.kind)&&n.kind===211&&(Ln=bee(n,void 0,!0)),H8(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 $n;if(Ie&&kr(n)&&Dl(an,32768)){let jn=Ue(Rd(n.expression),n.name.escapedText);zZ(an,jn)&&($n=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}zb(an,Ln,n,c,$n)}}}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),$n=xI(c);return!!$n&&La($n)&&!!((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 vo=mv(u),Wo=mv(_);On=!(vo===u&&Wo===_)&&!!(vo&&Wo)&&an(vo,Wo)}let $n=u,jn=_;!On&&an&&([$n,jn]=Ift(u,_,an));let[Qn,xo]=rx($n,jn);sn(Ln,On,Qn,xo)||zE(Ln,On,f.Operator_0_cannot_be_applied_to_types_1_and_2,da(a.kind),Qn,xo)}function sn(an,On,Ln,$n){switch(a.kind){case 37:case 35:case 38:case 36:return zE(an,On,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ln,$n);default:return}}function rr(an,On,Ln,$n){let jn=Mn(ms(Ln)),Qn=Mn(ms($n));if(jn||Qn){let xo=Ve(an,f.This_condition_will_always_return_0,da(On===37||On===35?97:112));if(jn&&Qn)return;let vo=On===38||On===36?da(54):"",Wo=jn?$n:Ln,fo=ms(Wo);Ma(xo,Pr(Wo,f.Did_you_mean_0,`${vo}Number.isNaN(${Vl(fo)?up(fo):"..."})`))}}function Mn(an){if(Fe(an)&&an.escapedText==="NaN"){let On=fst();return!!On&&On===Wm(an)}return!1}}function Ift(n,a,c){let u=n,_=a,g=my(n),T=my(a);return c(g,T)||(u=g,_=T),[u,_]}function xft(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&&Dc(n,26624),!u&&ce<2&&B.downlevelIteration&&Dc(n,256));let _=dC(a);_&&_.flags&1048576&&(_=uc(_,je=>wve(je,c,void 0)));let g=_&&D6e(_,u),T=g&&g.yieldType||G,M=g&&g.nextType||G,W=u?nI(M)||G:M,V=n.expression?po(n.expression):Nt,te=NFe(n,V,W,u);if(_&&te&&zb(te,T,n.expression||n,n.expression),n.asteriskToken)return Jve(u?19:17,1,V,n.expression)||G;if(_)return HS(2,_,u)||G;let ye=mWe(2,a);return ye||(ye=G,r(()=>{if(fe&&!Coe(n)){let je=Ju(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||hd(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),Vye(n)&&Ve(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Rft(n,a){let c=lL(n.condition,a);Uve(n.condition,c,n.whenTrue);let u=po(n.whenTrue,a),_=po(n.whenFalse,a);return ei([u,_],2)}function GFe(n){let a=n.parent;return Fu(a)&&GFe(a)||Xs(a)&&a.argumentExpression===n}function Dft(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let g=po(_.expression);Z5(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,Po)?g:Ne)}if(rL(n)||GFe(n)||Fm(Ju(n,void 0)||un,Cft))return BA(a,c);let u=n.parent.kind!==215&&j6e(n);return u?ux(Ku(u)):Ne}function Cft(n){return!!(n.flags&134217856||n.flags&58982400&&Dl(Bd(n)||un,402653316))}function Nft(n){return Y0(n)&&!FT(n.parent)?n.parent.parent:n}function TC(n,a,c,u){let _=Nft(n);w5(_,a,!1),Ydt(_,c);let g=po(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=Dl(g,2944)&&Oee(g,_ee(a,n,void 0))?vu(g):g;return $dt(),B8(),T}function rc(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 VFe(n){return n=ms(n,!0),n.kind===216||n.kind===234||BR(n)}function nL(n,a,c){let u=M2(n);if(or(n)){let g=U6(n);if(g)return Eve(u,g,a)}let _=kve(u)||(c?TC(u,c,void 0,a||0):rc(u,a));return To(n)&&n.name.kind===207&&Oa(_)&&!_.target.hasRestElement&&dv(_)Oee(n,u))}if(a.flags&58982400){let c=Bd(a)||un;return Dl(c,4)&&Dl(n,128)||Dl(c,8)&&Dl(n,256)||Dl(c,64)&&Dl(n,2048)||Dl(c,4096)&&Dl(n,8192)||Oee(n,c)}return!!(a.flags&406847616&&Dl(n,128)||a.flags&256&&Dl(n,256)||a.flags&2048&&Dl(n,2048)||a.flags&512&&Dl(n,512)||a.flags&8192&&Dl(n,8192))}return!1}function rL(n){let a=n.parent;return uT(a)&&Ng(a.type)||BR(a)&&Ng(Q4(a))||bve(n)&&WA(Ju(n,0))||(Fu(a)||fu(a)||qm(a))&&rL(a)||(hc(a)||Zu(a)||hP(a))&&rL(a.parent)}function iL(n,a,c){let u=po(n,a,c);return rL(n)||nie(n)?vu(u):VFe(n)?u:cye(u,_ee(Ju(n,void 0),n,void 0))}function jFe(n,a){return n.name.kind===167&&Sg(n.name),iL(n.initializer,a)}function UFe(n,a){h4e(n),n.name.kind===167&&Sg(n.name);let c=wFe(n,a);return HFe(n,c,a)}function HFe(n,a,c){if(c&&c&10){let u=V8(a,0,!0),_=V8(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=p0(n,2);if(T){let M=V8(_y(T),u?0:1,!1);if(M&&!M.typeParameters){if(c&8)return KFe(n,c),tn;let W=VS(n),V=W.signature&&us(W.signature),te=V&&ZWe(V);if(te&&!te.typeParameters&&!oo(W.inferences,AC)){let ye=wft(W,g.typeParameters),_e=uge(g,ye),je=mn(W.inferences,mt=>hye(mt.typeParameter));if(pye(_e,M,(mt,At)=>{hy(je,mt,At,0,!0)}),gt(je,AC)&&(fye(_e,M,(mt,At)=>{hy(je,mt,At)}),!Lft(W.inferences,je)))return kft(W.inferences,je),W.inferredTypeParameters=bo(W.inferredTypeParameters,ye),zA(_e)}return zA(eFe(g,M,W))}}}}return a}function KFe(n,a){if(a&2){let c=VS(n);c.flags|=4}}function AC(n){return!!(n.candidates||n.contraCandidates)}function Mft(n){return!!(n.candidates||n.contraCandidates||Nwe(n.typeParameter))}function Lft(n,a){for(let c=0;cc.symbol.escapedName===a)}function Oft(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(!Lve(n,g))return g}}function JFe(n){let a=eI(n);if(a&&!a.typeParameters)return us(a)}function Wft(n){let a=po(n.expression),c=L8(a,n.expression),u=JFe(a);return u&&XZ(u,n,c!==a)}function Rd(n){let a=kve(n);if(a)return a;if(n.flags&268435456&&_n){let _=_n[is(n)];if(_)return _}let c=qe,u=po(n,64);if(qe!==c){let _=_n||(_n=[]);_[is(n)]=u,Doe(n,n.flags|268435456)}return u}function kve(n){let a=ms(n,!0);if(BR(a)){let c=Q4(a);if(!Ng(c))return Ti(c)}if(a=ms(n),Xv(a)){let c=kve(a.expression);return c?nI(c):void 0}if(ra(a)&&a.expression.kind!==108&&!Su(a,!0)&&!fFe(a))return sT(a)?Wft(a):JFe(bC(a.expression));if(uT(a)&&!Ng(a.type))return Ti(a.type);if(S0(n)||pN(n))return po(n)}function nG(n){let a=Qr(n);if(a.contextFreeType)return a.contextFreeType;w5(n,G,!1);let c=a.contextFreeType=po(n,4);return B8(),c}function po(n,a,c){var u,_;(u=ir)==null||u.push(ir.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let g=D;D=n,S=0;let T=Bft(n,a,c),M=HFe(n,T,a);return kee(M)&&Fft(n,M),D=g,(_=ir)==null||_.pop(),M}function Fft(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)&&(R.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!mE(n)&&Ve(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function zft(n,a){if(kp(n)){if(hU(n))return Eve(n.expression,gU(n),a);if(BR(n))return gFe(n,a)}return po(n.expression,a)}function Bft(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return vdt(n,a);case 81:return Wut(n);case 110:return L5(n);case 108:return Bye(n);case 106:return We;case 15:case 11:return Eye(n)?He:ux(Ku(n.text));case 9:return mbe(n),ux(u_(+n.text));case 10:return Vgt(n),ux(PZ({negative:!1,base10Value:YN(n.text)}));case 112:return wn;case 97:return Kt;case 228:return Dft(n);case 14:return hl;case 209:return SWe(n,a,c);case 210:return _ut(n,a);case 211:return bee(n,a);case 166:return FWe(n,a);case 212:return Zut(n,a);case 213:if(n.expression.kind===102)return Ppt(n);case 214:return Npt(n,a);case 215:return Mpt(n);case 217:return zft(n,a);case 231:return R_t(n);case 218:case 219:return wFe(n,a);case 221:return uft(n);case 216:case 234:return Lpt(n,a);case 235:return Opt(n);case 233:return vFe(n);case 238:return Wpt(n);case 236:return Fpt(n);case 220:return cft(n);case 222:return pft(n);case 223:return fft(n);case 224:return mft(n);case 225:return _ft(n);case 226:return De(n,a);case 227:return Rft(n,a);case 230:return cut(n,a);case 232:return Nt;case 229:return xft(n);case 237:return dut(n);case 294:return Nut(n,a);case 284:return vut(n,a);case 285:return gut(n,a);case 288:return but(n);case 292:return Sut(n,a);case 286:R.fail("Shouldn't ever directly check a JsxOpeningElement")}return pt}function qFe(n){Ag(n),n.expression&&hd(n.expression,f.Type_expected),xa(n.constraint),xa(n.default);let a=kA(Tr(n));Bd(a),bat(a)||Ve(n.default,f.Type_parameter_0_has_a_circular_default,Vn(a));let c=Pu(a),u=FA(a);c&&u&&tu(u,Up(io(c,FS(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),mx(n),r(()=>cL(n.name,f.Type_parameter_name_cannot_be_0))}function Gft(n){var a,c;if(mu(n.parent)||di(n.parent)||Tm(n.parent)){let u=kA(Tr(n)),_=iye(u)&24576;if(_){let g=Tr(n.parent);if(Tm(n.parent)&&!(Lr($s(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=ir)==null||a.push(ir.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:yu($s(g)),id:yu(u)});let T=v5(g,u,_===16384?$:de),M=v5(g,u,_===16384?de:$),W=u;w=u,tu(T,M,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),w=W,(c=ir)==null||c.pop()}}}}function XFe(n){Ag(n),sG(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&&nP(n)&&$o(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&&!$o(n.name)&&!ya(d_(lr(n.symbol)),lf)&&Ve(n,f.A_rest_parameter_must_be_of_an_array_type)}function Vft(n){let a=jft(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;xa(n.type);let{parameterName:_}=n;if(u.kind===0||u.kind===2)MZ(_);else if(u.parameterIndex>=0){if(Xd(c)&&u.parameterIndex===c.parameters.length-1)Ve(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){let g=()=>Fo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);tu(u.type,lr(c.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(_){let g=!1;for(let{name:T}of a.parameters)if($o(T)&&YFe(T,_,u.parameterName)){g=!0;break}g||Ve(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function jft(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 YFe(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)&&YFe(_,a,c))return!0}}function K8(n){n.kind===181?hgt(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&&Dc(n,6144),(a&3)===2&&ce<4&&Dc(n,64),a&3&&ce<2&&Dc(n,128)),dG(Cv(n)),A_t(n),gn(n.parameters,XFe),n.type&&xa(n.type),r(c);function c(){Gmt(n);let u=$f(n),_=u;if(or(n)){let g=nE(n);if(g&&g.typeExpression&&If(g.typeExpression.type)){let T=eI(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===tr?Ve(_,f.A_generator_cannot_have_a_void_type_annotation):wve(T,g,_)}else(g&3)===2&&bmt(n,u,_)}n.kind!==181&&n.kind!==324&&Ub(n)}}function wve(n,a,c){let u=HS(0,n,(a&2)!==0)||G,_=HS(1,n,(a&2)!==0)||u,g=HS(2,n,(a&2)!==0)||un,T=CFe(u,_,g,!!(a&2));return tu(T,n,c)}function Uft(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)&&!$o(T.name)&&_(a,T.name,T.name.escapedText,3);else{let T=na(g),M=g.name;if(!M)continue;let W=Ki(M),V=W&&T?16:0,te=W?u:T?c:a,ye=M&&_be(M);if(ye)switch(g.kind){case 177:_(te,M,ye,1|V);break;case 178:_(te,M,ye,2|V);break;case 172:_(te,M,ye,3|V);break;case 174:_(te,M,ye,8|V);break}}function _(g,T,M,W){let V=g.get(M);if(V)if((V&16)!==(W&16))Ve(T,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,fc(T));else{let te=!!(V&8),ye=!!(W&8);te||ye?te!==ye&&Ve(T,f.Duplicate_identifier_0,fc(T)):V&W&-17?Ve(T,f.Duplicate_identifier_0,fc(T)):g.set(M,V|W)}else g.set(M,W)}}function Hft(n){for(let a of n.members){let c=a.name;if(na(a)&&c){let _=_be(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=XE(Tr(n));Ve(c,g,_,T);break}}}}function $Fe(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=vr(_);break;default:continue}a.get(u)?(Ve(No(c.symbol.valueDeclaration),f.Duplicate_identifier_0,u),Ve(c.name,f.Duplicate_identifier_0,u)):a.set(u,!0)}}function Ove(n){if(n.kind===264){let c=Tr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=pge(Tr(n));if(a?.declarations){let c=new Map;for(let u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&YA(Ti(u.parameters[0].type),_=>{let g=c.get(yu(_));g?g.declarations.push(u):c.set(yu(_),{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 QFe(n){!Ag(n)&&!Fgt(n)&&rte(n.name),sG(n),Wve(n),$r(n,64)&&n.kind===172&&n.initializer&&Ve(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,xs(n.name))}function Kft(n){return Ki(n.name)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),QFe(n)}function Jft(n){h4e(n)||rte(n.name),Kl(n)&&n.asteriskToken&&Fe(n.name)&&vr(n.name)==="constructor"&&Ve(n.name,f.Class_constructor_may_not_be_a_generator),u6e(n),$r(n,64)&&n.kind===174&&n.body&&Ve(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,xs(n.name)),Ki(n.name)&&!sd(n)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),Wve(n)}function Wve(n){if(Ki(n.name)&&ce<99){for(let a=ph(n);a;a=ph(a))Qr(a).flags|=1048576;if(ed(n.parent)){let a=Oye(n.parent);a&&(Qr(n.name).flags|=32768,Qr(a).flags|=4096)}}}function qft(n){Ag(n),Bo(n,xa)}function Xft(n){K8(n),Ogt(n)||Wgt(n),xa(n.body);let a=Tr(n),c=dl(a,n.kind);if(n===c&&zee(a),Bl(n.body))return;r(_);return;function u(g){return su(g)?!0:g.kind===172&&!na(g)&&!!g.initializer}function _(){let g=n.parent;if(M0(g)){Wye(n.parent,g);let T=Fye(g),M=aWe(n.body);if(M){if(T&&Ve(M,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(!Yft(M,n.body))Ve(M,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(td(te)&&hT(Ql(te.expression))){V=te;break}if(ZFe(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 Yft(n,a){let c=Ly(n.parent);return td(c)&&c.parent===a}function ZFe(n){return n.kind===108||n.kind===110?!0:cie(n)?!1:!!Bo(n,ZFe)}function e6e(n){Fe(n.name)&&vr(n.name)==="constructor"&&di(n.parent)&&Ve(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),xa(n.body),Wve(n);function a(){if(!nte(n)&&!Igt(n)&&rte(n.name),iG(n),K8(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&&Sg(n.name),lC(n)){let u=Tr(n),_=dl(u,177),g=dl(u,178);if(_&&g&&!(RC(_)&1)){Qr(_).flags|=1;let T=du(_),M=du(g);(T&64)!==(M&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&&!(M&6)||T&2&&!(M&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=ZE(Tr(n));n.kind===177&&Dve(n,c)}}function $ft(n){iG(n)}function Qft(n,a,c){return n.typeArguments&&c{let u=Fve(n);u&&t6e(n,u)});let c=Qr(n).resolvedSymbol;c&>(c.declarations,u=>IR(u)&&!!(u.flags&536870912))&&rv(J5(n),c.declarations,c.escapedName)}}function emt(n){let a=ri(n.parent,vF);if(!a)return;let c=Fve(a);if(!c)return;let u=Pu(c[a.typeArguments.indexOf(n)]);return u&&io(u,Np(c,Wee(a,c)))}function tmt(n){Zwe(n)}function nmt(n){gn(n.members,xa),r(a);function a(){let c=BOe(n);Kee(c,c.symbol),Ove(n),$Fe(n)}}function rmt(n){xa(n.elementType)}function imt(n){let a=!1,c=!1;for(let u of n.elements){let _=Rge(u);if(_&8){let g=Ti(u.type);if(!fv(g)){Ve(u,f.A_rest_element_type_must_be_an_array_type);break}(Gf(g)||Oa(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,xa),Ti(n)}function omt(n){gn(n.types,xa),Ti(n)}function r6e(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=Hu(c)&&_Z(c)===2?AOe(c,0):J_(c,0),g=!!Eg(c,It);if(ap(u,T=>ya(T,_)||g&&ax(T,It)))return a.kind===212&&Zh(a)&&Lr(c)&32&&wh(c)&1&&Ve(a,f.Index_signature_in_type_0_only_permits_reading,Vn(c)),n;if(VA(c)){let T=RZ(u,a);if(T){let M=YA(Mu(c),W=>ha(W,T));if(M&&Tf(M)&6)return Ve(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(T)),pt}}return Ve(a,f.Type_0_cannot_be_used_to_index_type_1,Vn(u),Vn(c)),pt}function amt(n){xa(n.objectType),xa(n.indexType),r6e(kOe(n),n)}function smt(n){lmt(n),xa(n.typeParameter),xa(n.nameType),xa(n.type),n.type||l0(n,G);let a=zge(n),c=lv(a);if(c)tu(c,Os,n.nameType);else{let u=hf(a);tu(u,Os,Fx(n.typeParameter))}}function lmt(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 cmt(n){MZ(n)}function dmt(n){Rgt(n),xa(n.type)}function umt(n){Bo(n,xa)}function pmt(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),xa(n.typeParameter);let a=Tr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=qi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=kA(a),_=Pre(a,168);if(!M6e(_,[u],g=>[g])){let g=Si(a);for(let T of _)Ve(T.name,f.All_declarations_of_0_must_have_identical_constraints,g)}}}Ub(n)}function fmt(n){for(let a of n.templateSpans){xa(a.type);let c=Ti(a.type);tu(c,Po,a.type)}Ti(n)}function mmt(n){xa(n.argument),n.attributes&&tD(n.attributes,yn),n6e(n)}function _mt(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),xa(n.type),Ti(n)}function rG(n){return(fp(n,2)||su(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)&&Yl(n.parent.parent)&&E_(n.parent.parent))&&(c|=32),c|=128}return c&a}function zee(n){r(()=>hmt(n))}function hmt(n){function a(an,On){return On!==void 0&&On.parent===an[0].parent?On:an[0]}function c(an,On,Ln,$n,jn){if(($n^jn)!==0){let xo=Fee(a(an,On),Ln);gn(an,vo=>{let Wo=Fee(vo,Ln)^xo;Wo&32?Ve(No(vo),f.Overload_signatures_must_all_be_exported_or_non_exported):Wo&128?Ve(No(vo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Wo&6?Ve(No(vo)||vo,f.Overload_signatures_must_all_be_public_private_or_protected):Wo&64&&Ve(No(vo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(an,On,Ln,$n){if(Ln!==$n){let jn=DI(a(an,On));gn(an,Qn=>{DI(Qn)!==jn&&Ve(No(Qn),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,g=0,T=_,M=!1,W=!0,V=!1,te,ye,_e,je=n.declarations,mt=(n.flags&16384)!==0;function At(an){if(an.name&&Bl(an.name))return;let On=!1,Ln=Bo(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,Qn=Ln.name;if(an.name&&Qn&&(Ki(an.name)&&Ki(Qn)&&an.name.escapedText===Qn.escapedText||Ya(an.name)&&Ya(Qn)&&py(Sg(an.name),Sg(Qn))||T_(an.name)&&T_(Qn)&&CN(an.name)===CN(Qn))){if((an.kind===174||an.kind===173)&&na(an)!==na(Ln)){let vo=na(an)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Ve(jn,vo)}return}if(Hf(Ln.body)){Ve(jn,f.Function_implementation_name_must_be_0,xs(an.name));return}}let $n=an.name||an;mt?Ve($n,f.Constructor_implementation_is_missing):$r(an,64)?Ve($n,f.All_declarations_of_an_abstract_method_must_be_consecutive):Ve($n,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let rn=!1,sn=!1,rr=!1,Mn=[];if(je)for(let an of je){let On=an,Ln=On.flags&33554432,$n=On.parent&&(On.parent.kind===264||On.parent.kind===187)||Ln;if($n&&(_e=void 0),(On.kind===263||On.kind===231)&&!Ln&&(rr=!0),On.kind===262||On.kind===174||On.kind===173||On.kind===176){Mn.push(On);let jn=Fee(On,_);g|=jn,T&=jn,M=M||DI(On),W=W&&DI(On);let Qn=Hf(On.body);Qn&&te?mt?sn=!0:rn=!0:_e?.parent===On.parent&&_e.end!==On.pos&&At(_e),Qn?te||(te=On):V=!0,_e=On,$n||(ye=On)}or(an)&&Yo(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(No(an)||an,f.Duplicate_function_implementation)}),rr&&!mt&&n.flags&16&&je){let an=Vr(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&&Ma(Ve(No(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,M,W)),te)){let an=LS(n),On=lm(te);for(let Ln of an)if(!Olt(On,Ln)){let $n=Ln.declaration&&vE(Ln.declaration)?Ln.declaration.parent.tagName:Ln.declaration;Ma(Ve($n,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(()=>gmt(n))}function gmt(n){let a=n.localSymbol;if(!a&&(a=Tr(n),!a.exportSymbol)||dl(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,M=_&g;if(T||M)for(let V of a.declarations){let te=W(V),ye=No(V);te&M?Ve(ye,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,xs(ye)):te&T&&Ve(ye,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,xs(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 Ld(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=kl(ye)?ye.expression:ye.right;if(!Vl(_e))return 1;te=_e;case 271:case 274:case 273:let je=0,mt=Fc(Tr(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 R.failBadSyntaxKind(te)}}}function oL(n,a,c,...u){let _=q8(n,a);return _&&nI(_,a,c,...u)}function q8(n,a,c){if(xt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Nb(n,s5(!1)))return u.promisedTypeOfPromise=Hs(n)[0];if(eG(cy(n),402915324))return;let _=Ue(n,"then");if(xt(_))return;let g=_?Ko(_,0):Xe;if(g.length===0){a&&Ve(a,f.A_promise_must_have_a_then_method);return}let T,M;for(let te of g){let ye=r0(te);ye&&ye!==tr&&!q_(n,ye,xh)?T=ye:M=Tn(M,te)}if(!M){R.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(M,Ave)),2097152);if(xt(W))return;let V=Ko(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,Ave),2)}function X8(n,a,c,u,..._){return(a?nI(n,c,u,..._):mv(n,c,u,..._))||pt}function i6e(n){if(eG(cy(n),402915324))return!1;let a=Ue(n,"then");return!!a&&Ko(um(a,2097152),0).length>0}function Bee(n){var a;if(n.flags&16777216){let c=xge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function aL(n){return n.flags&1048576?cl(n,aL):Bee(n)?n.aliasTypeArguments[0]:n}function o6e(n){if(xt(n)||Bee(n))return!1;if(VA(n)){let a=Bd(n);if(a?a.flags&3||fy(a)||Fm(a,i6e):Dl(n,8650752))return!0}return!1}function ymt(n){let a=xge(!0);if(a)return pC(a,[aL(n)])}function vmt(n){if(o6e(n)){let a=ymt(n);if(a)return a}return R.assert(Bee(n)||q8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function nI(n,a,c,...u){let _=mv(n,a,c,...u);return _&&vmt(_)}function mv(n,a,c,...u){if(xt(n)||Bee(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(OE.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 M=a?V=>mv(V,a,c,...u):mv;OE.push(n.id);let W=cl(n,M);return OE.pop(),_.awaitedTypeOfType=W}if(o6e(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=q8(n,void 0,g);if(T){if(n.id===T.id||OE.lastIndexOf(T.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}OE.push(n.id);let M=mv(T,a,c,...u);return OE.pop(),M?_.awaitedTypeOfType=M:void 0}if(i6e(n)){if(a){R.assertIsDefined(c);let M;g.value&&(M=Fo(M,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Vn(n),Vn(g.value))),M=Fo(M,c,...u),Qa.add(Mg(Gn(a),a,M))}return}return _.awaitedTypeOfType=n}function bmt(n,a,c){let u=Ti(a);if(ce>=2){if(Ut(u))return;let g=s5(!0);if(g!==Mo&&!Nb(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(mv(u)||tr));return}}else{if(Smt(a),Ut(u))return;let g=D2(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=js(g,111551,!0),M=T?lr(T):pt;if(Ut(M)){g.kind===80&&g.escapedText==="Promise"&&sv(u)===s5(!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=Kat(!0);if(W===Na){_(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(!tu(M,W,c,V,()=>a===c?void 0:Fo(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=Uu(n.locals,ye.escapedText,111551);if(_e){Ve(_e.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,vr(ye),up(g));return}}X8(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,M,W){if(T===M)Ve(M,g,W);else{let V=Ve(M,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Ma(V,Pr(T,g,W))}}}function Emt(n){let a=SC(n);Pee(a,n);let c=us(a);if(c.flags&1)return;let u=Rve(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(!ee){_=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 R.failBadSyntaxKind(n.parent)}tu(c,g,n.expression,_)}function Y8(n,a,c,u,_,g=c.length,T=0){let M=L.createFunctionTypeNode(void 0,Xe,L.createKeywordTypeNode(133));return bg(M,n,a,c,u,_,g,T)}function Bve(n,a,c,u,_,g,T){let M=Y8(n,a,c,u,_,g,T);return zA(M)}function a6e(n){return Bve(void 0,void 0,Xe,n)}function s6e(n){let a=n_("value",n);return Bve(void 0,void 0,[a],tr)}function Smt(n){l6e(n&&D2(n),!1)}function l6e(n,a){if(!n)return;let c=Fp(n),u=(n.kind===80?788968:1920)|2097152,_=gl(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(ft&&wm(_)&&!eW(Fc(_))&&!Lf(_))yb(_);else if(a&&em(B)&&kd(B)>=5&&!wm(_)&&!gt(_.declarations,oE)){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=Gr(_.declarations||Xe,mb);T&&Ma(g,Pr(T,f._0_was_imported_here,vr(c)))}}}function IC(n){let a=Gve(n);a&&Xu(a)&&l6e(a,!0)}function Gve(n){if(n)switch(n.kind){case 193:case 192:return c6e(n.types);case 194:return c6e([n.trueType,n.falseType]);case 196:case 202:return Gve(n.type);case 183:return n.typeName}}function c6e(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=Gve(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=vd(n);return qh(n)?aj(a):a}function iG(n){if(!jT(n)||!bf(n)||!n.modifiers||!jF(ee,n,n.parent,n.parent.parent))return;let a=Gr(n.modifiers,Ed);if(a){if(ee?(Dc(a,8),n.kind===169&&Dc(a,32)):ce<99&&(Dc(a,8),Ac(n)?n.name?L6e(n)&&Dc(a,8388608):Dc(a,8388608):ed(n)||(Ki(n.name)&&(Kl(n)||Pv(n)||ku(n))&&Dc(a,8388608),Ya(n.name)&&Dc(a,16777216))),B.emitDecoratorMetadata)switch(Dc(a,16),n.kind){case 263:let c=tg(n);if(c)for(let T of c.parameters)IC(Gee(T));break;case 177:case 178:let u=n.kind===177?178:177,_=dl(Tr(n),u);IC(Om(n)||_&&Om(_));break;case 174:for(let T of n.parameters)IC(Gee(T));IC($f(n));break;case 172:IC(vd(n));break;case 169:IC(Gee(n));let g=n.parent;for(let T of g.parameters)IC(Gee(T));IC($f(g));break}for(let c of n.modifiers)Ed(c)&&Emt(c)}}function Tmt(n){r(a);function a(){u6e(n),dbe(n),sL(n,n.name)}}function Amt(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&&cL(n.name,f.Type_alias_name_cannot_be_0),xa(n.typeExpression),dG(Cv(n))}function Imt(n){xa(n.constraint);for(let a of n.typeParameters)xa(a)}function xmt(n){xa(n.typeExpression)}function Rmt(n){xa(n.typeExpression);let a=dE(n);if(a){let c=oF(a,X4);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=d6e(n.class.expression),_=M0(a);if(_){let g=d6e(_.expression);g&&u.escapedText!==g.escapedText&&Ve(u,f.JSDoc_0_1_does_not_match_the_extends_2_clause,vr(n.tagName),vr(u),vr(g))}}function wmt(n){let a=ET(n);a&&su(a)&&Ve(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function d6e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function u6e(n){var a;iG(n),K8(n);let c=Vc(n);if(n.name&&n.name.kind===167&&Sg(n.name),lC(n)){let g=Tr(n),T=n.localSymbol||g,M=(a=T.declarations)==null?void 0:a.find(W=>W.kind===n.kind&&!(W.flags&524288));n===M&&zee(T),g.parent&&zee(g)}let u=n.kind===173?void 0:n.body;if(xa(u),Dve(n,dC(n)),r(_),or(n)){let g=nE(n);g&&g.typeExpression&&!Kye(Ti(g.typeExpression),n)&&Ve(g.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){$f(n)||(Bl(u)&&!rG(n)&&l0(n,G),c&1&&Hf(u)&&us(lm(n)))}}function Ub(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 p6e(n,a){for(let c of n)switch(c.kind){case 263:case 231:Omt(c,a),Vve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:_6e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&_6e(c,a),Vve(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Vve(c,a);break;case 195:Wmt(c,a);break;default:R.assertNever(c,"Node should not have been registered for unused identifiers check")}}function f6e(n,a,c){let u=No(n)||n,_=IR(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 $8(n){return Fe(n)&&vr(n).charCodeAt(0)===95}function Omt(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=Tr(c);!u.isReferenced&&(fp(c,2)||au(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:R.fail("Unexpected class member")}}function Wmt(n,a){let{typeParameter:c}=n;jve(c)&&a(n,1,Pr(n,f._0_is_declared_but_its_value_is_never_read,vr(c.name)))}function Vve(n,a){let c=Tr(n).declarations;if(!c||Ja(c)!==n)return;let u=Cv(n),_=new Set;for(let g of u){if(!jve(g))continue;let T=vr(g.name),{parent:M}=g;if(M.kind!==195&&M.typeParameters.every(jve)){if(Jb(_,M)){let W=Gn(M),V=nm(M)?uU(M):pU(W,M.typeParameters),ye=M.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,T]:[f.All_type_parameters_are_unused];a(g,1,Zc(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 jve(n){return!(es(n.symbol).isReferenced&262144)&&!$8(n.name)}function oG(n,a,c,u){let _=String(u(a)),g=n.get(_);g?g[1].push(c):n.set(_,[a,[c]])}function m6e(n){return ri(A_(n),To)}function Fmt(n){return Xa(n)?tm(n.parent)?!!(n.propertyName&&$8(n.name)):$8(n.name):Ld(n)||(Oi(n)&&Gx(n.parent.parent)||h6e(n))&&$8(n.name)}function _6e(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(!Fmt(T))if(h6e(T))oG(c,Bmt(T),T,is);else if(Xa(T)&&tm(T.parent)){let M=Ja(T.parent.elements);(T===M||!Ja(T.parent.elements).dotDotDotToken)&&oG(u,T.parent,T,is)}else if(Oi(T)){let M=qS(T)&7,W=No(T);(M!==4&&M!==6||!W||!$8(W))&&oG(_,T.parent,T,is)}else{let M=g.valueDeclaration&&m6e(g.valueDeclaration),W=g.valueDeclaration&&No(g.valueDeclaration);M&&W?!dp(M,M.parent)&&!w0(M)&&!$8(W)&&(Xa(T)&&U0(T.parent)?oG(u,T.parent,T,is):a(M,1,Pr(W,f._0_is_declared_but_its_value_is_never_read,vl(g)))):f6e(T,vl(g),a)}}}),c.forEach(([g,T])=>{let M=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===274?1:g.namedBindings.elements.length:0)===T.length)a(M,0,T.length===1?Pr(M,f._0_is_declared_but_its_value_is_never_read,vr(Va(T).name)):Pr(M,f.All_imports_in_import_declaration_are_unused));else for(let V of T)f6e(V,vr(V.name),a)}),u.forEach(([g,T])=>{let M=m6e(g.parent)?1:0;if(g.elements.length===T.length)T.length===1&&g.parent.kind===260&&g.parent.parent.kind===261?oG(_,g.parent.parent,g.parent,is):a(g,M,T.length===1?Pr(g,f._0_is_declared_but_its_value_is_never_read,aG(Va(T).name)):Pr(g,f.All_destructured_elements_are_unused));else for(let W of T)a(W,M,Pr(W,f._0_is_declared_but_its_value_is_never_read,aG(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,aG(Va(T).name)):Pr(g.parent.kind===243?g.parent:g,f.All_variables_are_unused));else for(let M of T)a(M,0,Pr(M,f._0_is_declared_but_its_value_is_never_read,aG(M.name)))})}function zmt(){var n;for(let a of ug)if(!((n=Tr(a))!=null&&n.isReferenced)){let c=Ox(a);R.assert(L0(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,xs(a.name),xs(a.propertyName));c.type||Ma(u,Zc(Gn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,xs(a.propertyName))),Qa.add(u)}}function aG(n){switch(n.kind){case 80:return vr(n);case 207:case 206:return aG(ta(Va(n.elements),Xa).name);default:return R.assertNever(n)}}function h6e(n){return n.kind===273||n.kind===276||n.kind===274}function Bmt(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,xa),we=a}else gn(n.statements,xa);n.locals&&Ub(n)}function Gmt(n){ce>=2||!FV(n)||n.flags&33554432||Bl(n.body)||gn(n.parameters,a=>{a.name&&!$o(a.name)&&a.name.escapedText===Wt.escapedName&&e_("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||(yh(n)||nd(n)||Qu(n))&&oE(n))return!1;let u=A_(n);return!(To(u)&&Bl(u.parent.body))}function Vmt(n){Fn(n,a=>RC(a)&4?(n.kind!==80?Ve(No(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 jmt(n){Fn(n,a=>RC(a)&8?(n.kind!==80?Ve(No(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 Umt(n,a){if(z>=5&&!(z>=100&&Gn(n).impliedNodeFormat===1)||!a||!Q8(n,a,"require")&&!Q8(n,a,"exports")||Yl(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&e_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,xs(a),xs(a))}function Hmt(n,a){if(!a||ce>=4||!Q8(n,a,"Promise")||Yl(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&wp(c)&&c.flags&4096&&e_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,xs(a),xs(a))}function Kmt(n,a){ce<=8&&(Q8(n,a,"WeakMap")||Q8(n,a,"WeakSet"))&&lb.push(n)}function Jmt(n){let a=ph(n);RC(a)&1048576&&(R.assert(au(n)&&Fe(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),e_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function qmt(n,a){a&&ce>=2&&ce<=8&&Q8(n,a,"Reflect")&&cb.push(n)}function Xmt(n){let a=!1;if(ed(n)){for(let c of n.members)if(RC(c)&2097152){a=!0;break}}else if(ks(n))RC(n)&2097152&&(a=!0);else{let c=ph(n);c&&RC(c)&2097152&&(a=!0)}a&&(R.assert(au(n)&&Fe(n.name),"The target of a Reflect collision check should be an identifier"),e_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,xs(n.name),"Reflect"))}function sL(n,a){a&&(Umt(n,a),Hmt(n,a),Kmt(n,a),qmt(n,a),di(n)?(cL(a,f.Class_name_cannot_be_0),n.flags&33554432||T_t(a)):gE(n)&&cL(a,f.Enum_name_cannot_be_0))}function Ymt(n){if(qS(n)&7||L0(n))return;let a=Tr(n);if(a.flags&1){if(!Fe(n.name))return R.fail();let c=gl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&eve(c)&7){let u=uE(c.valueDeclaration,261),_=u.parent.kind===243&&u.parent.parent?u.parent.parent:void 0;if(!(_&&(_.kind===241&&Yo(_.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 Z8(n){return n===et?G:n===Jc?tc:n}function sG(n){var a;if(iG(n),Xa(n)||xa(n.type),!n.name)return;if(n.name.kind===167&&(Sg(n.name),pT(n)&&n.initializer&&rc(n.initializer)),Xa(n)){if(n.propertyName&&Fe(n.name)&&L0(n)&&Bl(Wp(n).body)){ug.push(n);return}tm(n.parent)&&n.dotDotDotToken&&ce<5&&Dc(n,4),n.propertyName&&n.propertyName.kind===167&&Sg(n.propertyName);let _=n.parent.parent,g=n.dotDotDotToken?32:0,T=wr(_,g),M=n.propertyName||n.name;if(T&&!$o(M)){let W=uv(M);if(Qf(W)){let V=Zf(W),te=ha(T,V);te&&(V5(te,void 0,!1),nve(n,!!_.initializer&&_.initializer.kind===108,!1,T,te))}}}if($o(n.name)&&(n.name.kind===207&&ce<2&&B.downlevelIteration&&Dc(n,512),gn(n.name.elements,xa)),n.initializer&&L0(n)&&Bl(Wp(n).body)){Ve(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($o(n.name)){if(xye(n))return;let _=pT(n)&&n.initializer&&n.parent.parent.kind!==249,g=!gt(n.name.elements,AW(jc));if(_||g){let T=F(n);if(_){let M=rc(n.initializer);J&&g?WWe(M,n):zb(M,F(n),n,n.initializer)}g&&(U0(n.name)?_v(65,T,Me,n):J&&WWe(T,n))}return}let c=Tr(n);if(c.flags&2097152&&(C0(n)||fie(n))){Jee(n);return}let u=Z8(lr(c));if(n===c.valueDeclaration){let _=pT(n)&&M2(n);if(_&&!(or(n)&&La(_)&&(_.properties.length===0||Bv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=rc(_);zb(T,u,n,_,void 0);let M=qS(n)&7;if(M===6){let W=tst(!0),V=sOe(!0);if(W!==Na&&V!==Na){let te=ei([W,V,ue,Me]);tu(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(M===4){let W=sOe(!0);if(W!==Na){let V=ei([W,ue,Me]);tu(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&&$x(g)&&!y6e(g,n))&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}else{let _=Z8(F(n));!Ut(u)&&!Ut(_)&&!py(u,_)&&!(c.flags&67108864)&&g6e(c.valueDeclaration,u,n,_),pT(n)&&n.initializer&&zb(rc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!y6e(n,c.valueDeclaration)&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}n.kind!==172&&n.kind!==171&&(J8(n),(n.kind===260||n.kind===208)&&Ymt(n),sL(n,n.name))}function g6e(n,a,c,u){let _=No(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=xs(_),M=Ve(_,g,T,Vn(a),Vn(u));n&&Ma(M,Pr(n,f._0_was_also_declared_here,T))}function y6e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(DI(n)!==DI(a))return!1;let c=1358;return LI(n,c)===LI(a,c)}function $mt(n){var a,c;(a=ir)==null||a.push(ir.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Mgt(n),sG(n),(c=ir)==null||c.pop()}function Qmt(n){return Cgt(n),sG(n)}function jee(n){let a=Cy(n)&7;(a===4||a===6)&&Dc(n,33554432),gn(n.declarations,xa)}function Zmt(n){!Ag(n)&&!fbe(n.declarationList)&&Lgt(n),jee(n.declarationList)}function e_t(n){gy(n),po(n.expression)}function t_t(n){gy(n);let a=lL(n.expression);Uve(n.expression,a,n.thenStatement),xa(n.thenStatement),n.thenStatement.kind===242&&Ve(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),xa(n.elseStatement)}function Uve(n,a,c){if(!J)return;u(n,c);function u(g,T){for(g=ms(g),_(g,T);pr(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=ms(g.left),_(g,T)}function _(g,T){let M=rk(g)?ms(g.right):g;if(Qh(M))return;if(rk(M)){u(M,T);return}let W=M===g?a:lL(M),V=kr(M)&&VFe(M.expression);if(!dm(W,4194304)||V)return;let te=Ko(W,0),ye=!!oL(W);if(te.length===0&&!ye)return;let _e=Fe(M)?M:kr(M)?M.name:void 0,je=_e&&zm(_e);if(!je&&!ye)return;je&&pr(g.parent)&&r_t(g.parent,je)||je&&T&&n_t(g,T,_e,je)||(ye?zE(M,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Sb(W)):Ve(M,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function n_t(n,a,c,u){return!!Bo(a,function _(g){if(Fe(g)){let T=zm(g);if(T&&T===u){if(Fe(n)||Fe(c)&&pr(c.parent))return!0;let M=c.parent,W=g.parent;for(;M&&W;){if(Fe(M)&&Fe(W)||M.kind===110&&W.kind===110)return zm(M)===zm(W);if(kr(M)&&kr(W)){if(zm(M.name)!==zm(W.name))return!1;W=W.expression,M=M.expression}else if(ra(M)&&ra(W))W=W.expression,M=M.expression;else return!1}}}return Bo(g,_)})}function r_t(n,a){for(;pr(n)&&n.operatorToken.kind===56;){if(Bo(n.right,function u(_){if(Fe(_)){let g=zm(_);if(g&&g===a)return!0}return Bo(_,u)}))return!0;n=n.parent}return!1}function i_t(n){gy(n),xa(n.statement),lL(n.expression)}function o_t(n){gy(n),lL(n.expression),xa(n.statement)}function Hve(n,a){return n.flags&16384&&Ve(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function lL(n,a){return Hve(po(n,a),n)}function a_t(n){gy(n)||n.initializer&&n.initializer.kind===261&&fbe(n.initializer),n.initializer&&(n.initializer.kind===261?jee(n.initializer):po(n.initializer)),n.condition&&lL(n.condition),n.incrementor&&po(n.incrementor),xa(n.statement),n.locals&&Ub(n)}function s_t(n){_4e(n);let a=FF(n);if(n.awaitModifier?a&&Il(a)?yn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Vc(a)&6)===2&&ce<99&&Dc(n,16384):B.downlevelIteration&&ce<2&&Dc(n,256),n.initializer.kind===261)jee(n.initializer);else{let c=n.initializer,u=lG(n);if(c.kind===209||c.kind===210)tI(c,u||pt);else{let _=po(c);H8(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&&zb(u,_,c,n.expression)}}xa(n.statement),n.locals&&Ub(n)}function l_t(n){_4e(n);let a=rve(po(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&$o(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(Vst(a),u)?H8(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===Wr||!xd(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)),xa(n.statement),n.locals&&Ub(n)}function lG(n){let a=n.awaitModifier?15:13;return _v(a,bC(n.expression),Me,n.expression)}function _v(n,a,c,u){return xt(a)?a:Kve(n,a,c,u,!0)||G}function Kve(n,a,c,u,_){let g=(n&2)!==0;if(a===Wr){$ve(u,a,g);return}let T=ce>=2,M=!T&&B.downlevelIteration,W=B.noUncheckedIndexedAccess&&!!(n&128);if(T||M||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&&tu(c,mt.nextType,u,At)}if(mt||T)return W?F8(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=Vr(mt,rn=>!(rn.flags&402653316));At!==mt&&(V=ei(At,2))}else V.flags&402653316&&(V=Wr);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?F8(Ne):Ne}if(!fv(V)){if(u&&!te){let mt=!!(n&4)&&!ye,[At,rn]=je(mt,M);zE(u,rn&&!!oL(V),At,Vn(V))}return ye?W?F8(Ne):Ne:void 0}let _e=n0(V,It);if(ye&&_e)return _e.flags&402653316&&!B.noUncheckedIndexedAccess?Ne:ei(W?[_e,Ne,Me]:[_e,Ne],2);return n&128?F8(_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]:Jve(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]:c_t((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 c_t(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 Jve(n,a,c,u){if(xt(c))return;let _=Hee(c,n,u);return _&&_[PIe(a)]}function hv(n=Wr,a=Wr,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 v6e(n){let a,c,u;for(let _ of n)if(!(_===void 0||_===Cr)){if(_===Jo)return Jo;a=Tn(a,_.yieldType),c=Tn(c,_.returnType),u=Tn(u,_.nextType)}return a||c||u?hv(a&&ei(a),c&&ei(c),u&&ga(u)):Cr}function Uee(n,a){return n[a]}function Tg(n,a,c){return n[a]=c}function Hee(n,a,c){var u,_;if(xt(n))return Jo;if(!(n.flags&1048576)){let V=c?{errors:void 0}:void 0,te=b6e(n,a,c,V);if(te===Cr){if(c){let ye=$ve(c,n,!!(a&2));V?.errors&&Ma(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 M;for(let V of n.types){let te=c?{errors:void 0}:void 0,ye=b6e(V,a,c,te);if(ye===Cr){if(c){let _e=$ve(c,n,!!(a&2));te?.errors&&Ma(_e,...te.errors)}Tg(n,g,Cr);return}else if((_=te?.errors)!=null&&_.length)for(let _e of te.errors)Qa.add(_e);M=Tn(M,ye)}let W=M?v6e(M):Cr;return Tg(n,g,W),W===Cr?void 0:W}function qve(n,a){if(n===Cr)return Cr;if(n===Jo)return Jo;let{yieldType:c,returnType:u,nextType:_}=n;return a&&xge(!0),hv(nI(c,a)||G,nI(u,a)||G,_)}function b6e(n,a,c,u){if(xt(n))return Jo;let _=!1;if(a&2){let g=Xve(n,Vs)||S6e(n,Vs);if(g)if(g===Cr&&c)_=!0;else return a&8?qve(g,c):g}if(a&1){let g=Xve(n,yc)||S6e(n,yc);if(g)if(g===Cr&&c)_=!0;else if(a&2){if(g!==Cr)return g=qve(g,c),_?g:Tg(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){let g=Yve(n,Vs,c,u,_);if(g!==Cr)return g}if(a&1){let g=Yve(n,yc,c,u,_);if(g!==Cr)return a&2?(g=qve(g,c),_?g:Tg(n,"iterationTypesOfAsyncIterable",g)):g}return Cr}function Xve(n,a){return Uee(n,a.iterableCacheKey)}function E6e(n,a){let c=Xve(n,a)||Yve(n,a,void 0,void 0,!1);return c===Cr?Hc:c}function S6e(n,a){let c;if(Nb(n,c=a.getGlobalIterableType(!1))||Nb(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Hs(n),{returnType:_,nextType:g}=E6e(c,a);return Tg(n,a.iterableCacheKey,hv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}if(Nb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Hs(n);return Tg(n,a.iterableCacheKey,hv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function T6e(n){let a=iOe(!1),c=a&&Ue(lr(a),fl(n));return c&&Qf(c)?Zf(c):`__@${n}`}function Yve(n,a,c,u,_){let g=ha(n,T6e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?lr(g):void 0;if(xt(T))return _?Jo:Tg(n,a.iterableCacheKey,Jo);let M=T?Ko(T,0):void 0;if(!gt(M))return _?Cr:Tg(n,a.iterableCacheKey,Cr);let W=ga(mn(M,us)),V=A6e(W,a,c,u,_)??Cr;return _?V:Tg(n,a.iterableCacheKey,V)}function $ve(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,_=!!oL(a)||!c&&Gk(n.parent)&&n.parent.expression===n&&xZ(!1)!==Mo&&ya(a,xZ(!1));return zE(n,_,u,Vn(a))}function d_t(n,a,c,u){return A6e(n,a,c,u,!1)}function A6e(n,a,c,u,_){if(xt(n))return Jo;let g=I6e(n,a)||u_t(n,a);return g===Cr&&c&&(g=void 0,_=!0),g??(g=R6e(n,a,c,u,_)),g===Cr?void 0:g}function I6e(n,a){return Uee(n,a.iteratorCacheKey)}function u_t(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Nb(n,c)){let[u]=Hs(n),_=I6e(c,a)||R6e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===Cr?Hc:_;return Tg(n,a.iteratorCacheKey,hv(u,g,T))}if(Nb(n,a.getGlobalIteratorType(!1))||Nb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Hs(n);return Tg(n,a.iteratorCacheKey,hv(u,_,g))}}function x6e(n,a){let c=Ue(n,"done")||Kt;return ya(a===0?Kt:wn,c)}function p_t(n){return x6e(n,0)}function f_t(n){return x6e(n,1)}function m_t(n){if(xt(n))return Jo;let a=Uee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Nb(n,Zat(!1))){let T=Hs(n)[0];return Tg(n,"iterationTypesOfIteratorResult",hv(T,void 0,void 0))}if(Nb(n,est(!1))){let T=Hs(n)[0];return Tg(n,"iterationTypesOfIteratorResult",hv(void 0,T,void 0))}let c=uc(n,p_t),u=c!==Wr?Ue(c,"value"):void 0,_=uc(n,f_t),g=_!==Wr?Ue(_,"value"):void 0;return!u&&!g?Tg(n,"iterationTypesOfIteratorResult",Cr):Tg(n,"iterationTypesOfIteratorResult",hv(u,g||tr,void 0))}function Qve(n,a,c,u,_){var g,T,M,W;let V=ha(n,c);if(!V&&c!=="next")return;let te=V&&!(c==="next"&&V.flags&16777216)?c==="next"?lr(V):um(lr(V),2097152):void 0;if(xt(te))return c==="next"?Jo:bl;let ye=te?Ko(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,$n=!Ln&&((W=(M=On.symbol)==null?void 0:M.members)==null?void 0:W.get(c))===te.symbol;if(Ln||$n){let jn=Ln?an:On,{mapper:Qn}=te;return hv(Wb(jn.typeParameters[0],Qn),Wb(jn.typeParameters[1],Qn),c==="next"?Wb(jn.typeParameters[2],Qn):void 0)}}let _e,je;for(let an of ye)c!=="throw"&>(an.parameters)&&(_e=Tn(_e,f_(an,0))),je=Tn(je,us(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):Wr,rr=a.resolveIterationType(sn,u)||G,Mn=m_t(rr);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)),hv(rn,ei(mt),At)}function R6e(n,a,c,u,_){let g=v6e([Qve(n,a,"next",c,u),Qve(n,a,"return",c,u),Qve(n,a,"throw",c,u)]);return _?g:Tg(n,a.iteratorCacheKey,g)}function HS(n,a,c){if(xt(a))return;let u=D6e(a,c);return u&&u[PIe(n)]}function D6e(n,a){if(xt(n))return Jo;let c=a?2:1,u=a?Vs:yc;return Hee(n,c,void 0)||d_t(n,u,void 0,void 0)}function __t(n){gy(n)||Dgt(n)}function cG(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=HS(1,n,u);return _?u?mv(aL(_)):_:pt}return u?mv(n)||pt:n}function C6e(n,a){let c=cG(a,Vc(n));return!!(c&&(Dl(c,16384)||c.flags&32769))}function h_t(n){if(gy(n))return;let a=FF(n);if(a&&Il(a)){hd(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){hd(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=lm(a),u=us(c),_=Vc(a);if(J||n.expression||u.flags&131072){let g=n.expression?rc(n.expression):Me;if(a.kind===178)n.expression&&Ve(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!zb(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(dC(a)){let T=cG(u,_)??u,M=_&2?X8(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&&zb(M,T,n,n.expression)}}else a.kind!==176&&B.noImplicitReturns&&!C6e(a,u)&&Ve(n,f.Not_all_code_paths_return_a_value)}function g_t(n){gy(n)||n.flags&65536&&hd(n,f.with_statements_are_not_allowed_in_an_async_function_block),po(n.expression);let a=Gn(n);if(!KS(a)){let c=fh(a,n.pos).start,u=n.statement.pos;JS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function y_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,xa),B.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&P5(_.fallthroughFlowNode)&&Ve(_,f.Fallthrough_case_in_switch);function g(T){return()=>{let M=po(T.expression);Mve(u,M)||t8e(M,u,T.expression,void 0)}}}),n.caseBlock.locals&&Ub(n.caseBlock)}function v_t(n){gy(n)||Fn(n.parent,a=>Yo(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(yn(n.label,f.Duplicate_label_0,fc(n.label)),!0):!1),xa(n.statement)}function b_t(n){gy(n)||Fe(n.expression)&&!n.expression.escapedText&&jgt(n,f.Line_break_not_permitted_here),n.expression&&po(n.expression)}function E_t(n){gy(n),Vee(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;sG(c);let u=vd(c);if(u){let _=Ti(u);_&&!(_.flags&3)&&hd(u,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)hd(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&uh(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=gu(n);if(u.length===0)return;for(let g of Mb(n))c&&g.flags&4194304||N6e(n,g,mC(g,8576,!0),Cb(g));let _=a.valueDeclaration;if(_&&di(_)){for(let g of _.members)if(!na(g)&&!lC(g)){let T=Tr(g);N6e(n,T,Rd(g.name.expression),Cb(T))}}if(u.length>1)for(let g of u)S_t(n,g)}function N6e(n,a,c,u){let _=a.valueDeclaration,g=No(_);if(g&&Ki(g))return;let T=lge(n,c),M=Lr(n)&2?dl(n.symbol,264):void 0,W=_&&_.kind===226||g&&g.kind===167?_:void 0,V=Cu(a)===n.symbol?_:void 0;for(let te of T){let ye=te.declaration&&Cu(Tr(te.declaration))===n.symbol?te.declaration:void 0,_e=V||ye||(M&&!gt(Dp(n),je=>!!t0(je,a.escapedName)&&!!n0(je,te.keyType))?M:void 0);if(_e&&!ya(u,te.type)){let je=uA(_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&&Ma(je,Pr(W,f._0_is_declared_here,Si(a))),Qa.add(je)}}}function S_t(n,a){let c=a.declaration,u=lge(n,a.keyType),_=Lr(n)&2?dl(n.symbol,264):void 0,g=c&&Cu(Tr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let M=T.declaration&&Cu(Tr(T.declaration))===n.symbol?T.declaration:void 0,W=g||M||(_&&!gt(Dp(n),V=>!!Eg(V,a.keyType)&&!!n0(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 cL(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 T_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,YC[z])}function A_t(n){let a=Vr(iE(n),$m);if(!Nn(a))return;let c=or(n),u=new Set,_=new Set;if(gn(n.parameters,({name:T},M)=>{Fe(T)&&u.add(T.escapedText),$o(T)&&_.add(M)}),dge(n)){let T=a.length-1,M=a[T];c&&M&&Fe(M.name)&&M.typeExpression&&M.typeExpression.type&&!u.has(M.name.escapedText)&&!_.has(T)&&!Gf(Ti(M.typeExpression.type))&&Ve(M.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,vr(M.name))}else gn(a,({name:T,isNameFirst:M},W)=>{_.has(W)||Fe(T)&&u.has(T.escapedText)||(Au(T)?c&&Ve(T,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,up(T),up(T.left)):M||_d(c,T,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,vr(T)))})}function dG(n){let a=!1;if(n)for(let u=0;u{u.default?(a=!0,I_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,xs(u.name))}}}function I_t(n,a,c){u(n);function u(_){if(_.kind===183){let g=bge(_);if(g.flags&262144)for(let T=c;Tu)return!1;for(let W=0;Wmc(c)&&su(c))&&yn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!$r(n,2048)&&hd(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),k6e(n),gn(n.members,xa),Ub(n)}function k6e(n){fgt(n),iG(n),sL(n,n.name),dG(Cv(n)),J8(n);let a=Tr(n),c=$s(a),u=Up(c),_=lr(a);P6e(a),zee(a),Uft(n),!!(n.flags&33554432)||Hft(n);let T=S_(n);if(T){gn(T.typeArguments,xa),ce<2&&Dc(T.parent,1);let V=M0(n);V&&V!==T&&po(V.expression);let te=Dp(c);te.length&&r(()=>{let ye=te[0],_e=Rp(c),je=Mu(_e);if(P_t(je,T),xa(T.expression),gt(T.typeArguments)){gn(T.typeArguments,xa);for(let At of eu(je,T.typeArguments,T))if(!t6e(T,At.typeParameters))break}let mt=Up(ye,c.thisType);if(tu(u,mt,void 0)?tu(_,XOe(je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):W6e(n,u,mt,f.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(Mi(_)?Ko(_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=kh(je,T.typeArguments,T);gn(At,rn=>!$_(rn.declaration)&&!py(us(rn),ye))&&Ve(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}k_t(c,ye)})}N_t(n,c,u,_);let M=cR(n);if(M)for(let V of M)(!Vl(V.expression)||Hd(V.expression))&&Ve(V.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),zve(V),r(W(V));r(()=>{Kee(c,a),Kee(_,a,!0),Ove(n),W_t(n)});function W(V){return()=>{let te=d_(Ti(V));if(!Ut(te))if(YB(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);tu(u,_e,void 0)||W6e(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 N_t(n,a,c,u){let g=S_(n)&&Dp(a),T=g?.length?Up(Va(g),a.thisType):void 0,M=Rp(a);for(let W of n.members)Gj(W)||(Ml(W)&&gn(W.parameters,V=>{dp(V,W)&&w6e(n,u,M,T,a,c,V,!0)}),w6e(n,u,M,T,a,c,W,!1))}function w6e(n,a,c,u,_,g,T,M,W=!0){let V=T.name&&zm(T.name)||zm(T);return V?O6e(n,a,c,u,_,g,m6(T),W0(T),na(T),M,vl(V),W?T:void 0):0}function O6e(n,a,c,u,_,g,T,M,W,V,te,ye){let _e=or(n),je=!!(n.flags&33554432);if(u&&(T||B.noImplicitOverride)){let mt=fl(te),At=W?a:g,rn=W?c:u,sn=ha(At,mt),rr=ha(rn,mt),Mn=Vn(u);if(sn&&!rr&&T){if(ye){let an=HWe(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&&rr?.declarations&&B.noImplicitOverride&&!je){let an=gt(rr.declarations,W0);if(T)return 0;if(an){if(M&&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 W6e(n,a,c,u){let _=!1;for(let g of n.members){if(na(g))continue;let T=g.name&&zm(g.name)||zm(g);if(T){let M=ha(a,T.escapedName),W=ha(c,T.escapedName);if(M&&W){let V=()=>Fo(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));tu(lr(M),lr(W),g.name||g,void 0,V)||(_=!0)}}}_||tu(a,c,n.name||n,u)}function P_t(n,a){let c=Ko(n,1);if(c.length){let u=c[0].declaration;if(u&&fp(u,2)){let _=Og(n.symbol);ibe(a,_)||Ve(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Vp(n.symbol))}}}function M_t(n,a,c){if(!a.name)return 0;let u=Tr(n),_=$s(u),g=Up(_),T=lr(u),W=S_(n)&&Dp(_),V=W?.length?Up(Va(W),_.thisType):void 0,te=Rp(_),ye=a.parent?m6(a):$r(a,16);return O6e(n,T,te,V,_,g,ye,W0(a),na(a),!1,vl(c))}function xC(n){return Al(n)&1?n.links.target:n}function L_t(n){return Vr(n.declarations,a=>a.kind===263||a.kind===264)}function k_t(n,a){var c,u,_,g;let T=_s(a),M;e:for(let W of T){let V=xC(W);if(V.flags&4194304)continue;let te=t0(n,V.escapedName);if(!te)continue;let ye=xC(te),_e=Tf(V);if(R.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=t0(mt,V.escapedName),rn=At&&xC(At);if(rn&&rn!==V)continue e}M||(M=Ve(je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Vn(n),Vn(a))),je.kind===231?Ma(M,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))):Ma(M,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((Al(V)&6?(c=V.declarations)!=null&&c.some(Mn=>F6e(Mn,_e)):(u=V.declarations)!=null&&u.every(Mn=>F6e(Mn,_e)))||Al(V)&262144||ye.valueDeclaration&&pr(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(No(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||!B6e(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(No(ye.valueDeclaration)||ye.valueDeclaration,Ln,Si(V),Vn(a))}}}continue}else if(tve(V)){if(tve(ye)||ye.flags&4)continue;R.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(No(ye.valueDeclaration)||ye.valueDeclaration,mt,Vn(a),Si(V),Vn(n))}}}function F6e(n,a){return a&64&&(!jo(n)||!n.initializer)||mu(n.parent)}function w_t(n,a,c){if(!Nn(a))return c;let u=new Map;gn(c,_=>{u.set(_.escapedName,_)});for(let _ of a){let g=_s(Up(_,n.thisType));for(let T of g){let M=u.get(T.escapedName);M&&T.parent===M.parent&&u.delete(T.escapedName)}}return Oo(u.values())}function O_t(n,a){let c=Dp(n);if(c.length<2)return!0;let u=new Map;gn(Hhe(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let _=!0;for(let g of c){let T=_s(Up(g,n.thisType));for(let M of T){let W=u.get(M.escapedName);if(!W)u.set(M.escapedName,{prop:M,containingType:g});else if(W.containingType!==n&&!qlt(W.prop,M)){_=!1;let te=Vn(W.containingType),ye=Vn(g),_e=Fo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,Si(M),te,ye);_e=Fo(_e,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Vn(n),te,ye),Qa.add(Mg(Gn(a),a,_e))}}}return _}function W_t(n){if(!J||!xe||n.flags&33554432)return;let a=ny(n);for(let c of n.members)if(!(du(c)&128)&&!na(c)&&z6e(c)){let u=c.name;if(Fe(u)||Ki(u)||Ya(u)){let _=lr(Tr(c));_.flags&3||UM(_)||(!a||!B6e(u,_,a))&&Ve(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,xs(u))}}}function z6e(n){return n.kind===172&&!W0(n)&&!n.exclamationToken&&!n.initializer}function F_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 M=jb(T,a,Gb(a));if(!UM(M))return!0}return!1}function B6e(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 _=jb(u,a,Gb(a));return!UM(_)}function z_t(n){Ag(n)||bgt(n),dG(n.typeParameters),r(()=>{cL(n.name,f.Interface_name_cannot_be_0),J8(n);let a=Tr(n);P6e(a);let c=dl(a,264);if(n===c){let u=$s(a),_=Up(u);if(O_t(u,n.name)){for(let g of Dp(u))tu(_,Up(g,u.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Kee(u,a)}}$Fe(n)}),gn(RN(n),a=>{(!Vl(a.expression)||Hd(a.expression))&&Ve(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),zve(a)}),gn(n.members,xa),r(()=>{Ove(n),Ub(n)})}function B_t(n){Ag(n),cL(n.name,f.Type_alias_name_cannot_be_0),J8(n),dG(n.typeParameters),n.type.kind===141?(!w3.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):(xa(n.type),Ub(n))}function G6e(n){let a=Qr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=G_t(u,c);Qr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function G_t(n,a){if(b2(n.name))Ve(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=Jx(n.name);ig(c)&&!eP(c)&&Ve(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return V_t(n);if(!(n.parent.flags&33554432&&!x0(n.parent))){if(a!==void 0)return a;Ve(n.name,f.Enum_member_must_have_initializer)}}function V_t(n){let a=x0(n.parent),c=n.initializer,u=dL(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):tu(po(c),It,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function dL(n,a){switch(n.kind){case 224:let c=dL(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=dL(n.left,a),_=dL(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 j6e(n,a);case 9:return mbe(n),+n.text;case 217:return dL(n.expression,a);case 80:{let T=n;if(eP(T.escapedText)&&js(T,111551,!0)===VM(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(Vl(n)){let T=js(n,111551,!0);if(T){if(T.flags&8)return a?V6e(n,T,a):DC(T.valueDeclaration);if(ZM(T)){let M=T.valueDeclaration;if(M&&Oi(M)&&!M.type&&M.initializer&&(!a||M!==a&&Qg(M,a)))return dL(M.initializer,M)}}}break;case 212:let g=n.expression;if(Vl(g)&&ss(n.argumentExpression)){let T=js(g,111551,!0);if(T&&T.flags&384){let M=fl(n.argumentExpression.text),W=T.exports.get(M);if(W)return a?V6e(n,W,a):DC(W.valueDeclaration)}}break}}function V6e(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)?DC(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 j6e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=dL(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function j_t(n){r(()=>U_t(n))}function U_t(n){Ag(n),sL(n,n.name),J8(n),n.members.forEach(H_t),G6e(n);let a=Tr(n),c=dl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=x0(n);gn(a.declarations,g=>{gE(g)&&x0(g)!==_&&Ve(No(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 H_t(n){Ki(n.name)&&Ve(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&po(n.initializer)}function K_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 J_t(n,a){let c=ph(n),u=ph(a);return Rh(c)?Rh(u):Rh(u)?!1:c===u}function q_t(n){n.body&&(xa(n.body),E_(n)||Ub(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=Ld(n),M=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(uG(n,M))return;Ag(n)||!g&&n.name.kind===11&&yn(n.name,f.Only_ambient_modules_can_use_quoted_names),Fe(n.name)&&sL(n,n.name),J8(n);let W=Tr(n);if(W.flags&512&&!g&&yK(n,V0(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=K_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(I0(n)){if((_||Tr(n).flags&33554432)&&n.body)for(let te of n.body.statements)Zve(te,_)}else Rh(n.parent)?_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):$c(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 Zve(n,a){switch(n.kind){case 243:for(let u of n.declarationList.declarations)Zve(u,a);break;case 277:case 278:hd(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:hd(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($o(c)){for(let u of c.elements)Zve(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function X_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(Qh(n.expression)&&!Ki(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function ebe(n){let a=iR(n);if(!a||Bl(a))return!1;if(!Ca(a))return Ve(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&Ld(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&&$c(a.text)&&!Ab(n))return Ve(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!nd(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)Ca(g.value)||(_=!0,Ve(g.value,u));return!_}return!0}function Jee(n){var a,c,u,_;let g=Tr(n),T=Fc(g);if(T!==lt){if(g=es(g.exportSymbol||g),or(n)&&!(T.flags&111551)&&!oE(n)){let V=bI(n)?n.propertyName||n.name:au(n)?n.name:n;if(R.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(Vx);_e&&Ma(te,Pr(_e,f._0_is_automatically_exported_here,Vi(ye.escapedName)))}}else{R.assert(n.kind!==260);let te=Fn(n,Um(kc,nd)),ye=(te&&((_=rR(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 M=Ad(T),W=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(M&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,oE)&&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)&&!oE(n)&&!(n.flags&33554432)){let V=Lf(g),te=!(M&111551);if(te||V)switch(n.kind){case 273:case 276:case 271:{if(B.preserveValueImports||B.verbatimModuleSyntax){R.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let ye=B.verbatimModuleSyntax&&tR(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=vr(n.kind===276&&n.propertyName||n.name);pg(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=vr(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);pg(_e,te?void 0:V,ye);break}}B.verbatimModuleSyntax&&n.kind!==271&&!or(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=tbe(g,n);ub(V)&&V.declarations&&rv(n,V.declarations,V.escapedName)}}}function tbe(n,a){if(!(n.flags&2097152)||ub(n)||!Mm(n))return n;let c=Fc(n);if(c===lt)return c;for(;n.flags&2097152;){let u=Xye(n);if(u){if(u===c)break;if(u.declarations&&Nn(u.declarations))if(ub(u)){rv(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function qee(n){sL(n,n.name),Jee(n),n.kind===276&&vr(n.propertyName||n.name)==="default"&&_h(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&Dc(n,131072)}function U6e(n){var a;let c=n.attributes;if(c){let u=Tge(!0);u!==Na&&tu(le(c),A5(u,32768),c);let _=sJ(n),g=tD(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(kc(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 Y_t(n){return vu(rc(n.value))}function $_t(n){if(!uG(n,or(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(!Ag(n)&&f6(n)&&hd(n,f.An_import_declaration_cannot_have_modifiers),ebe(n)){let a=n.importClause;a&&!Hgt(a)&&(a.name&&qee(a),a.namedBindings&&(a.namedBindings.kind===274?(qee(a.namedBindings),z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&_h(B)&&Dc(n,65536)):hu(n,n.moduleSpecifier)&&gn(a.namedBindings.elements,qee)))}U6e(n)}}function Q_t(n){if(!uG(n,or(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)&&(Ag(n),tR(n)||ebe(n)))if(qee(n),$r(n,32)&&gb(n),n.moduleReference.kind!==283){let a=Fc(Tr(n));if(a!==lt){let c=Ad(a);if(c&111551){let u=Fp(n.moduleReference);js(u,112575).flags&1920||Ve(u,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,xs(u))}c&788968&&cL(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 Z_t(n){if(!uG(n,or(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(!Ag(n)&&zie(n)&&hd(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&xf(n.exportClause)&&Nn(n.exportClause.elements)&&ce===0&&Dc(n,4194304),eht(n),!n.moduleSpecifier||ebe(n))if(n.exportClause&&!vh(n.exportClause)){gn(n.exportClause.elements,aht);let a=n.parent.kind===268&&Ld(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=hu(n,n.moduleSpecifier);a&&av(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?_h(B)&&Dc(n,65536):Dc(n,32768))}U6e(n)}}function eht(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?S4e(n.exportClause):!1}function uG(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||hd(n,a),!c}function tht(n){return ZF(n,a=>!!Tr(a).isReferenced)}function nht(n){return ZF(n,a=>!!qi(Tr(a)).constEnumReferenced)}function rht(n){return kc(n)&&n.importClause&&!n.importClause.isTypeOnly&&tht(n.importClause)&&!ete(n.importClause,!0)&&!nht(n.importClause)}function iht(n){return nd(n)&&bh(n.moduleReference)&&!n.isTypeOnly&&Tr(n).isReferenced&&!ete(n,!1)&&!qi(Tr(n)).constEnumReferenced}function oht(n){if(ft)for(let a of n.statements)(rht(a)||iht(a))&&Ve(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function aht(n){if(Jee(n),Af(B)&&MM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)_h(B)&&z!==4&&(z<5||Gn(n).impliedNodeFormat===1)&&vr(n.propertyName||n.name)==="default"&&Dc(n,131072);else{let a=n.propertyName||n.name,c=gl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===ze||c===tt||c.declarations&&Rh(X(c.declarations[0]))))Ve(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,vr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&gb(n);let u=c&&(c.flags&2097152?Fc(c):c);(!u||Ad(u)&111551)&&rc(n.propertyName||n.name)}}}function sht(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(uG(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Ld(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}!Ag(n)&&f6(n)&&hd(n,f.An_export_assignment_cannot_have_modifiers);let u=vd(n);u&&tu(rc(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(js(g,-1,!0,!0,n));if(T){let M=Lf(T,111551);if(pee(T,g),Ad(T)&111551?(rc(g),!_&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&M&&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,vr(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,vr(g)),!_&&!(n.flags&33554432)&&em(B)&&!(T.flags&111551)){let W=Ad(T,!1,!0);T.flags&2097152&&W&788968&&!(W&111551)&&(!M||Gn(M)!==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,vr(g),Je):M&&Gn(M)!==Gn(n)&&pg(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,vr(g),Je),M,vr(g))}}else rc(g);Af(B)&&MM(g,!0)}else rc(n.expression);_&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),H6e(c),n.flags&33554432&&!Vl(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 lht(n){return Gc(n.exports,(a,c)=>c!=="export=")}function H6e(n){let a=Tr(n),c=qi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&lht(a)){let g=Mm(u)||u.valueDeclaration;g&&!Ab(g)&&!or(g)&&Ve(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Ch(a);_&&_.forEach(({declarations:g,flags:T},M)=>{if(M==="__export"||T&1920)return;let W=bv(g,TW(MIe,AW(mu)));if(!(T&524288&&W<=2)&&W>1&&!Xee(g))for(let V of g)CIe(V)&&Qa.add(Pr(V,f.Cannot_redeclare_exported_variable_0,Vi(M)))}),c.exportsChecked=!0}}function Xee(n){return n&&n.length>1&&n.every(a=>or(a)&&Ls(a)&&(yT(a.expression)||Qh(a.expression)))}function xa(n){if(n){let a=D;D=n,S=0,cht(n),D=a}}function cht(n){j2(n)&&gn(n.jsDoc,({comment:c,tags:u})=>{K6e(c),gn(u,_=>{K6e(_.comment),or(n)&&xa(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&V2(n)&&n.flowNode&&!P5(n.flowNode)&&_d(B.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return qFe(n);case 169:return XFe(n);case 172:return QFe(n);case 171:return Kft(n);case 185:case 184:case 179:case 180:case 181:return K8(n);case 174:case 173:return Jft(n);case 175:return qft(n);case 176:return Xft(n);case 177:case 178:return e6e(n);case 183:return zve(n);case 182:return Vft(n);case 186:return tmt(n);case 187:return nmt(n);case 188:return rmt(n);case 189:return imt(n);case 192:case 193:return omt(n);case 196:case 190:case 191:return xa(n.type);case 197:return cmt(n);case 198:return dmt(n);case 194:return umt(n);case 195:return pmt(n);case 203:return fmt(n);case 205:return mmt(n);case 202:return _mt(n);case 335:return kmt(n);case 336:return Lmt(n);case 353:case 345:case 347:return Amt(n);case 352:return Imt(n);case 351:return xmt(n);case 331:case 332:case 333:return Dmt(n);case 348:return Cmt(n);case 355:return Nmt(n);case 324:Pmt(n);case 322:case 321:case 319:case 320:case 329:J6e(n),Bo(n,xa);return;case 325:dht(n);return;case 316:return xa(n.type);case 340:case 342:case 341:return wmt(n);case 357:return Rmt(n);case 350:return Mmt(n);case 199:return amt(n);case 200:return smt(n);case 262:return Tmt(n);case 241:case 268:return Vee(n);case 243:return Zmt(n);case 244:return e_t(n);case 245:return t_t(n);case 246:return i_t(n);case 247:return o_t(n);case 248:return a_t(n);case 249:return l_t(n);case 250:return s_t(n);case 251:case 252:return __t(n);case 253:return h_t(n);case 254:return g_t(n);case 255:return y_t(n);case 256:return v_t(n);case 257:return b_t(n);case 258:return E_t(n);case 260:return $mt(n);case 208:return Qmt(n);case 263:return C_t(n);case 264:return z_t(n);case 265:return B_t(n);case 266:return j_t(n);case 267:return q_t(n);case 272:return $_t(n);case 271:return Q_t(n);case 278:return Z_t(n);case 277:return sht(n);case 242:case 259:gy(n);return;case 282:return $ft(n)}}function K6e(n){So(n)&&gn(n,a=>{AI(a)&&xa(a)})}function J6e(n){if(!or(n))if(U4(n)||OR(n)){let a=da(U4(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(OR(n)&&!(_===Wr||_===tr)?ei(Tn([_,Me],n.postfix?void 0:ue)):_))}else yn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function dht(n){J6e(n),xa(n.type);let{parent:a}=n;if(To(a)&&WR(a.parent)){Ja(a.parent.parameters)!==a&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}Z0(a)||Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!$m(c)){Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=U2(c);if(!u)return;let _=cE(c);(!_||Ja(_.parameters).symbol!==u)&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function uht(n){let a=Ti(n.type),{parent:c}=n,u=n.parent.parent;if(Z0(n.parent)&&$m(u)){let _=cE(u),g=lH(u.parent.parent);if(_||g){let T=Qs(g?u.parent.parent.typeExpression.parameters:_.parameters),M=U2(u);if(!T||M&&T.symbol===M&&qh(T))return Gd(a)}}return To(c)&&WR(c.parent)?Gd(a):op(a)}function mx(n){let a=Gn(n),c=Qr(a);c.flags&1?R.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function pht(n){let a=Qr(n);a.deferredNodes&&a.deferredNodes.forEach(fht),a.deferredNodes=void 0}function fht(n){var a,c;(a=ir)==null||a.push(ir.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:ZA(n);break;case 218:case 219:case 174:case 173:sft(n);break;case 177:case 178:e6e(n);break;case 231:D_t(n);break;case 168:Gft(n);break;case 285:hut(n);break;case 284:yut(n);break;case 216:case 234:case 217:kpt(n);break;case 222:po(n.expression);break;case 226:h6(n)&&ZA(n);break}D=u,(c=ir)==null||c.pop()}function mht(n){var a,c;(a=ir)==null||a.push(ir.Phase.Check,"checkSourceFile",{path:n.path},!0),tl("beforeCheck"),_ht(n),tl("afterCheck"),Xp("Check","beforeCheck","afterCheck"),(c=ir)==null||c.pop()}function q6e(n,a){if(a)return!1;switch(n){case 0:return!!B.noUnusedLocals;case 1:return!!B.noUnusedParameters;default:return R.assertNever(n)}}function X6e(n){return cf.get(n.path)||Xe}function _ht(n){let a=Qr(n);if(!(a.flags&1)){if(XN(n,B,e))return;Ggt(n),jh(gS),jh(yS),jh(lb),jh(cb),jh(ug),gn(n.statements,xa),xa(n.endOfFileToken),pht(n),wp(n)&&Ub(n),r(()=>{!n.isDeclarationFile&&(B.noUnusedLocals||B.noUnusedParameters)&&p6e(X6e(n),(c,u,_)=>{!Hx(c)&&q6e(u,!!(c.flags&33554432))&&Qa.add(_)}),n.isDeclarationFile||zmt()}),B.importsNotUsedAsValues===2&&!n.isDeclarationFile&&sc(n)&&oht(n),wp(n)&&H6e(n),gS.length&&(gn(gS,Vmt),jh(gS)),yS.length&&(gn(yS,jmt),jh(yS)),lb.length&&(gn(lb,Jmt),jh(lb)),cb.length&&(gn(cb,Xmt),jh(cb)),a.flags|=1}}function Y6e(n,a){try{return i=a,hht(n)}finally{i=void 0}}function nbe(){for(let n of t)n();t=[]}function rbe(n){nbe();let a=r;r=c=>c(),mht(n),r=a}function hht(n){if(n){nbe();let a=Qa.getGlobalDiagnostics(),c=a.length;rbe(n);let u=Qa.getDiagnostics(n.fileName),_=Qa.getGlobalDiagnostics();if(_!==a){let g=Qte(a,_,UN);return bo(g,u)}else if(c===0&&_.length>0)return bo(_,u);return u}return gn(e.getSourceFiles(),rbe),Qa.getDiagnostics()}function ght(){return nbe(),Qa.getGlobalDiagnostics()}function yht(n,a){if(n.flags&67108864)return[];let c=oa(),u=!1;return _(),c.delete("this"),cge(c);function _(){for(;n;){switch(ch(n)&&n.locals&&!Rh(n)&&T(n.locals,a),n.kind){case 312:if(!sc(n))break;case 267:M(Tr(n).exports,a&2623475);break;case 266:T(Tr(n).exports,a&8);break;case 231:n.name&&g(n.symbol,a);case 263:case 264:u||T(Pb(Tr(n)),a&788968);break;case 218:n.name&&g(n.symbol,a);break}iie(n)&&g(Wt,a),u=na(n),n=n.parent}T(be,a)}function g(W,V){if(yR(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 M(W,V){V&&W.forEach(te=>{!dl(te,281)&&!dl(te,280)&&te.escapedName!=="default"&&g(te,V)})}}function vht(n){return n.kind===80&&IR(n.parent)&&No(n.parent)===n}function $6e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function bht(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function Q6e(n,a){let c,u=sd(n);for(;u&&!(c=a(u));)u=sd(u);return c}function Eht(n){return!!Fn(n,a=>Ml(a)&&Hf(a.body)||jo(a)?!0:di(a)||Fs(a)?"quit":!1)}function ibe(n,a){return!!Q6e(n,c=>c===a)}function Sht(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 Sht(n)!==void 0}function Tht(n){switch(Gl(n.parent.parent)){case 1:case 3:return pf(n.parent);case 5:if(kr(n.parent)&&vR(n.parent)===n)return;case 4:case 2:return Tr(n.parent.parent)}}function Aht(n){let a=n.parent;for(;Au(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function Iht(n){if(n.expression.kind===110){let a=wu(n,!1,!1);if(Yo(a)){let c=cWe(a);if(c){let u=p0(c,void 0),_=uWe(c,u);return _&&!xt(_)}}}}function Z6e(n){if(kg(n))return pf(n.parent);if(or(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ki(n)&&!yE(n)&&!Iht(n.parent)){let a=Tht(n);if(a)return a}if(n.parent.kind===277&&Vl(n)){let a=js(n,2998271,!0);if(a&&a!==lt)return a}else if(Xu(n)&&Yee(n)){let a=uE(n,271);return R.assert(a!==void 0),$1(n,!0)}if(Xu(n)){let a=Aht(n);if(a){Ti(a);let c=Qr(n).resolvedSymbol;return c===lt?void 0:c}}for(;Hie(n);)n=n.parent;if(bht(n)){let a=0;n.parent.kind===233?(a=Yh(n)?788968:111551,_6(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Vl(n)?js(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return U2(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){R.assert(!or(n));let a=gie(n.parent);return a&&a.symbol}if($h(n)){if(Bl(n))return;let a=Fn(n,Um(AI,EP,yE)),c=a?901119:111551;if(n.kind===80){if(eR(n)&&fx(n)){let _=vee(n.parent);return _===lt?void 0:_}let u=js(n,c,!0,!0,cE(n));if(!u&&a){let _=Fn(n,Um(di,mu));if(_)return pG(n,!0,Tr(_))}if(u&&a){let _=ET(n);if(_&&Q0(_)&&_===u.valueDeclaration)return js(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=e4e(rc(n.expression),uv(n.name)))):FWe(n,0),!u.resolvedSymbol&&a&&Au(n)?pG(n):u.resolvedSymbol)}else if(yE(n))return pG(n)}}else if($6e(n)){let a=n.parent.kind===183?788968:1920,c=js(n,a,!1,!0);return c&&c!==lt?c:SZ(n)}if(n.parent.kind===182)return js(n,1)}function e4e(n,a){let c=lge(n,a);if(c.length&&n.members){let u=vZ(c_(n).members);if(c===gu(n))return u;if(u){let _=qi(u),g=to(c,M=>M.declaration),T=mn(g,is).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(T))return _.filteredIndexSymbolCache.get(T);{let M=Ka(131072,"__index");return M.declarations=to(c,W=>W.declaration),M.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:zm(M.declarations[0].parent),_.filteredIndexSymbolCache.set(T,M),M}}}}function pG(n,a,c){if(Xu(n)){let T=js(n,901119,a,!0,cE(n));if(!T&&Fe(n)&&c&&(T=es(Uu(xp(c),n.escapedText,901119))),T)return T}let u=Fe(n)?c:pG(n.left,a,c),_=Fe(n)?n.escapedText:n.right.escapedText;if(u){let g=u.flags&111551&&ha(lr(u),"prototype"),T=g?lr(g):$s(u);return ha(T,_)}}function zm(n,a){if(Yi(n))return sc(n)?es(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&67108864)){if(NIe(n)){let _=Tr(c);return bI(n.parent)&&n.parent.propertyName===n?Xye(_):_}else if(J2(n))return Tr(c.parent);if(n.kind===80){if(Yee(n))return Z6e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=_x(u),g=ha(_,n.escapedText);if(g)return g}else if(mP(c)&&c.name===n)return c.keywordToken===105&&vr(n)==="target"?Sve(c).symbol:c.keywordToken===102&&vr(n)==="meta"?nOe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!MI(n))return Z6e(n);case 110:let _=wu(n,!1,!1);if(Yo(_)){let M=lm(_);if(M.thisParameter)return M.thisParameter}if(UF(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(sE(n.parent.parent)&&SN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||or(n)&&Su(n.parent,!1)||Op(n.parent)||qv(n.parent)&&Wv(n.parent.parent)&&n.parent.parent.argument===n.parent)return hu(n,n,a);if(ra(c)&&vT(c)&&c.arguments[1]===n)return Tr(c);case 9:let T=Xs(c)?c.argumentExpression===n?Rd(c.expression):void 0:qv(c)&&kT(u)?Ti(u.objectType):void 0;return T&&ha(T,fl(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 kl(n.parent)?R.checkDefined(n.parent.symbol):void 0;case 102:case 105:return mP(n.parent)?EFe(n.parent).symbol:void 0;case 104:if(pr(n.parent)){let M=Rd(n.parent.right),W=Pve(M);return W?.symbol??M.symbol}return;case 236:return po(n).symbol;case 295:if(eR(n)&&fx(n)){let M=vee(n.parent);return M===lt?void 0:M}default:return}}}function xht(n){if(Fe(n)&&kr(n.parent)&&n.parent.name===n){let a=uv(n),c=Rd(n.parent.expression),u=c.flags&1048576?c.types:[c];return va(u,_=>Vr(gu(_),g=>ax(a,g.keyType)))}}function Rht(n){if(n&&n.kind===304)return js(n.name,2208703)}function Dht(n){return Jd(n)?n.parent.parent.moduleSpecifier?ey(n.parent.parent,n):js(n.propertyName||n.name,2998271):js(n,2998271)}function _x(n){if(Yi(n)&&!sc(n)||n.flags&67108864)return pt;let a=Hj(n),c=a&&Wf(Tr(a.class));if(Yh(n)){let u=Ti(n);return c?Up(u,c.thisType):u}if($h(n))return t4e(n);if(c&&!a.isImplements){let u=Yc(Dp(c));return u?Up(u,c.thisType):pt}if(IR(n)){let u=Tr(n);return $s(u)}if(vht(n)){let u=zm(n);return u?$s(u):pt}if(Xa(n))return LA(n,!0,0)||pt;if(Kd(n)){let u=Tr(n);return u?lr(u):pt}if(NIe(n)){let u=zm(n);return u?lr(u):pt}if($o(n))return LA(n.parent,!0,0)||pt;if(Yee(n)){let u=zm(n);if(u){let _=$s(u);return Ut(_)?lr(u):_}}return mP(n.parent)&&n.parent.keywordToken===n.kind?EFe(n.parent):i1(n)?Tge(!1):pt}function $ee(n){if(R.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=lG(n.parent);return tI(n,_||pt)}if(n.parent.kind===226){let _=Rd(n.parent.right);return tI(n,_||pt)}if(n.parent.kind===303){let _=ta(n.parent.parent,La),g=$ee(_)||pt,T=Kx(_.properties,n.parent);return FFe(_,g,T)}let a=ta(n.parent,fu),c=$ee(a)||pt,u=_v(65,c,Me,n.parent)||pt;return zFe(a,c,a.elements.indexOf(n),u)}function Cht(n){let a=$ee(ta(n.parent.parent,fN));return a&&ha(a,n.escapedText)}function t4e(n){return FN(n)&&(n=n.parent),vu(Rd(n))}function n4e(n){let a=pf(n.parent);return na(n)?lr(a):$s(a)}function r4e(n){let a=n.name;switch(a.kind){case 80:return Ku(vr(a));case 9:case 11:return Ku(a.text);case 167:let c=Sg(a);return xd(c,12288)?c:Ne;default:return R.fail("Unsupported property name.")}}function obe(n){n=Mu(n);let a=oa(_s(n)),c=Ko(n,0).length?Un:Ko(n,1).length?go:void 0;return c&&gn(_s(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),JE(a)}function Qee(n){return Ko(n,0).length!==0||Ko(n,1).length!==0}function i4e(n){let a=Nht(n);return a?va(a,i4e):[n]}function Nht(n){if(Al(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]:mI(Pht(n))}}function Pht(n){let a,c=n;for(;c=qi(c).target;)a=c;return a}function Mht(n){if(il(n))return!1;let a=Ro(n,Fe);if(!a)return!1;let c=a.parent;return c?!((kr(c)||hc(c))&&c.name===a)&&tW(a)===Wt:!1}function Lht(n){let a=hu(n.parent,n);if(!a||gN(a))return!0;let c=av(a);a=Ip(a);let u=qi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):Gc(Ch(a),_)),u.exportsSomeValue;function _(g){return g=Ul(g),g&&!!(Ad(g)&111551)}}function kht(n){return u2(n.parent)&&n===n.parent.name}function wht(n,a){var c;let u=Ro(n,Fe);if(u){let _=tW(u,kht(u));if(_){if(_.flags&1048576){let T=es(_.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;_=T}let g=Cu(_);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===312){let T=g.valueDeclaration,M=Gn(u);return T!==M?void 0:T}return Fn(u.parent,T=>u2(T)&&Tr(T)===g)}}}}function Oht(n){let a=tae(n);if(a)return a;let c=Ro(n,Fe);if(c){let u=Xht(c);if(SA(u,111551)&&!Lf(u,111551))return Mm(u)}}function Wht(n){return n.valueDeclaration&&Xa(n.valueDeclaration)&&Ox(n.valueDeclaration).parent.kind===299}function o4e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=qi(n);if(a.isDeclarationWithCollidingName===void 0){let c=ph(n.valueDeclaration);if(Wre(c)||Wht(n)){let u=Qr(n.valueDeclaration);if(gl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let _=u.flags&32768,g=Mv(c,!1),T=c.kind===241&&Mv(c.parent,!1);a.isDeclarationWithCollidingName=!Ure(c)&&(!_||!g&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Fht(n){if(!il(n)){let a=Ro(n,Fe);if(a){let c=tW(a);if(c&&o4e(c))return c.valueDeclaration}}}function zht(n){let a=Ro(n,Kd);if(a){let c=Tr(a);if(c)return o4e(c)}return!1}function a4e(n){switch(R.assert(ft),n.kind){case 271:return Zee(Tr(n));case 273:case 274:case 276:case 281:let a=Tr(n);return!!a&&Zee(a,!0);case 278:let c=n.exportClause;return!!c&&(vh(c)||gt(c.elements,a4e));case 277:return n.expression&&n.expression.kind===80?Zee(Tr(n),!0):!0}return!1}function Bht(n){let a=Ro(n,nd);return a===void 0||a.parent.kind!==312||!tR(a)?!1:Zee(Tr(a))&&a.moduleReference&&!Bl(a.moduleReference)}function Zee(n,a){if(!n)return!1;let c=ff(Fc(n));return c===lt?!a||!Lf(n):!!(Ad(n,a,!0)&111551)&&(V0(B)||!eW(c))}function eW(n){return Nve(n)||!!n.constEnumOnlyModule}function ete(n,a){if(R.assert(ft),mb(n)){let c=Tr(n),u=c&&qi(c);if(u?.referenced)return!0;let _=qi(c).aliasTarget;if(_&&du(n)&32&&Ad(_)&111551&&(V0(B)||!eW(_)))return!0}return a?!!Bo(n,c=>ete(c,a)):!1}function s4e(n){if(Hf(n.body)){if(Lv(n)||Py(n))return!1;let a=Tr(n),c=LS(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function l4e(n){return!!J&&!v8(n)&&!$m(n)&&!!n.initializer&&!$r(n,31)}function Ght(n){return J&&v8(n)&&!n.initializer&&$r(n,31)}function Vht(n){let a=Ro(n,Tc);if(!a)return!1;let c=Tr(a);return!c||!(c.flags&16)?!1:!!Gc(xp(c),u=>u.flags&111551&&H6(u.valueDeclaration))}function jht(n){let a=Ro(n,Tc);if(!a)return Xe;let c=Tr(a);return c&&_s(lr(c))||Xe}function RC(n){var a;let c=n.id||0;return c<0||c>=hS.length?0:((a=hS[c])==null?void 0:a.flags)||0}function DC(n){return G6e(n.parent),Qr(n).enumMemberValue}function c4e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function abe(n){if(n.kind===306)return DC(n);let a=Qr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(x0(c.parent))return DC(c)}}function sbe(n){return!!(n.flags&524288)&&Ko(n,0).length>0}function Uht(n,a){var c;let u=Ro(n,Xu);if(!u||a&&(a=Ro(a),!a))return 0;let _=!1;if(Au(u)){let te=js(Fp(u),111551,!0,!0,a);_=!!((c=te?.declarations)!=null&&c.every(oE))}let g=js(u,111551,!0,!0,a),T=g&&g.flags&2097152?Fc(g):g;_||(_=!!(g&&Lf(g,111551)));let M=js(u,788968,!0,!0,a),W=M&&M.flags&2097152?Fc(M):M;if(g||_||(_=!!(M&&Lf(M,788968))),T&&T===W){let te=Age(!1);if(te&&T===te)return 9;let ye=lr(T);if(ye&&ts(ye))return _?10:1}if(!W)return _?11:0;let V=$s(W);return Ut(V)?_?11:0:V.flags&3?11:xd(V,245760)?2:xd(V,528)?6:xd(V,296)?3:xd(V,2112)?4:xd(V,402653316)?5:Oa(V)?7:xd(V,12288)?8:sbe(V)?10:Gf(V)?7:11}function Hht(n,a,c,u,_){let g=Ro(n,tie);if(!g)return L.createToken(133);let T=Tr(g),M=T&&!(T.flags&133120)?BS(lr(T)):pt;return M.flags&8192&&M.symbol===T&&(c|=1048576),_&&(M=Gb(M)),Et.typeToTypeNode(M,a,c|1024,u)}function Kht(n,a,c,u){let _=Ro(n,Yo);if(!_)return L.createToken(133);let g=lm(_);return Et.typeToTypeNode(us(g),a,c|1024,u)}function Jht(n,a,c,u){let _=Ro(n,ht);if(!_)return L.createToken(133);let g=Hp(t4e(_));return Et.typeToTypeNode(g,a,c|1024,u)}function qht(n){return be.has(fl(n))}function tW(n,a){let c=Qr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let _=n.parent;Kd(_)&&n===_.name&&(u=X(_))}return gl(u,n.escapedText,3257279,void 0,void 0,!0)}function Xht(n){let a=Qr(n).resolvedSymbol;return a&&a!==lt?a:gl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Yht(n){if(!il(n)){let a=Ro(n,Fe);if(a){let c=tW(a);if(c)return ff(c).valueDeclaration}}}function $ht(n){if(!il(n)){let a=Ro(n,Fe);if(a){let c=tW(a);if(c)return Vr(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 Qht(n){return PF(n)||Oi(n)&&mG(n)?WS(lr(Tr(n))):!1}function Zht(n,a,c){let u=n.flags&1056?Et.symbolToExpression(n.symbol,111551,a,void 0,c):n===wn?L.createTrue():n===Kt&&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 egt(n,a){let c=lr(Tr(n));return Zht(c,n,a)}function d4e(n){return n?(FE(n),Gn(n).localJsxFactory||Yg):Yg}function lbe(n){if(n){let a=Gn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=So(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=d1(u.arguments.factory,ce),a.localJsxFragmentFactory}}if(B.jsxFragmentFactory)return d1(B.jsxFragmentFactory,ce)}function tgt(){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&&M(ye,V,te)})),{getReferencedExportContainer:wht,getReferencedImportDeclaration:Oht,getReferencedDeclarationWithCollidingName:Fht,isDeclarationWithCollidingName:zht,isValueAliasDeclaration:W=>{let V=Ro(W);return V&&ft?a4e(V):!0},hasGlobalName:qht,isReferencedAliasDeclaration:(W,V)=>{let te=Ro(W);return te&&ft?ete(te,V):!0},getNodeCheckFlags:W=>{let V=Ro(W);return V?RC(V):0},isTopLevelValueImportEqualsWithEntityName:Bht,isDeclarationVisible:o_,isImplementationOfOverload:s4e,isRequiredInitializedParameter:l4e,isOptionalUninitializedParameterProperty:Ght,isExpandoFunctionDeclaration:Vht,getPropertiesOfContainerFunction:jht,createTypeOfDeclaration:Hht,createReturnTypeOfSignatureDeclaration:Kht,createTypeOfExpression:Jht,createLiteralConstValue:egt,isSymbolAccessible:ki,isEntityNameVisible:Eb,getConstantValue:W=>{let V=Ro(W,c4e);return V?abe(V):void 0},collectLinkedAliases:MM,getReferencedValueDeclaration:Yht,getReferencedValueDeclarations:$ht,getTypeReferenceSerializationKind:Uht,isOptionalParameter:v8,moduleExportsSomeValue:Lht,isArgumentsLocalBinding:Mht,getExternalModuleFileFromDeclaration:W=>{let V=Ro(W,Kre);return V&&cbe(V)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:Qht,isLateBound:W=>{let V=Ro(W,Kd),te=V&&Tr(V);return!!(te&&Al(te)&4096)},getJsxFactoryEntity:d4e,getJsxFragmentFactoryEntity:lbe,getAllAccessorDeclarations(W){W=Ro(W,aF);let V=W.kind===178?177:178,te=dl(Tr(W),V),ye=te&&te.posty(W,W,void 0),isBindingCapturedByNode:(W,V)=>{let te=Ro(W),ye=Ro(V);return!!te&&!!ye&&(Oi(ye)||Xa(ye))&&Idt(te,ye)},getDeclarationStatementsForSourceFile:(W,V,te,ye)=>{let _e=Ro(W);R.assert(_e&&_e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let je=Tr(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=Ro(W),te=V&&ss(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=cbe(W);if(!te||te===V)return!1;let ye=Ch(V.symbol);for(let _e of Oo(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&&IT(W)||W.kind===211&&!u(W))&&(V=1160127));let te=js(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=Cu(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 M(W,V,te){if(!a.has(W.path)){a.set(W.path,[V,te]);for(let{fileName:ye}of W.referencedFiles){let _e=nz(ye,W.fileName),je=e.getSourceFile(_e);je&&M(je,V,te||W.impliedNodeFormat)}}}}function cbe(n){let a=n.kind===267?ri(n.name,Ca):iR(n),c=ty(a,a,void 0);if(c)return dl(c,312)}function ngt(){for(let a of e.getSourceFiles())kse(a,B);bs=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"));r_(be,a.locals)}a.jsGlobalAugmentations&&r_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(im=bo(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)&&jD(c);if(vS(be,dA,f.Declaration_name_conflicts_with_built_in_global_identifier_0),qi(ze).type=Nt,qi(Wt).type=nc("IArguments",0,!0),qi(lt).type=pt,qi(tt).type=kf(16,tt),qo=nc("Array",1,!0),Re=nc("Object",0,!0),Lt=nc("Function",0,!0),Un=pe&&nc("CallableFunction",0,!0)||Lt,go=pe&&nc("NewableFunction",0,!0)||Lt,ec=nc("String",0,!0),vc=nc("Number",0,!0),ll=nc("Boolean",0,!0),hl=nc("RegExp",0,!0),tc=Gd(G),Jc=Gd(et),Jc===Na&&(Jc=Ps(void 0,K,Xe,Xe,Xe)),Qo=lOe("ReadonlyArray",1)||qo,lf=Qo?S8(Qo,[G]):tc,jl=lOe("ThisType",1),n)for(let a of n)for(let c of a)E_(c.parent)||jD(c);bs.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:_,firstFileLocations:g,secondFileLocations:T},M)=>{let W=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let V of g)$g(V,W,M,T);for(let V of T)$g(V,W,M,g)});else{let _=Oo(u.keys()).join(", ");Qa.add(Ma(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(Ma(Pr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),Pr(a,f.Conflicts_are_in_this_file)))}}),bs=void 0}function Dc(n,a){if((s&a)!==a&&B.importHelpers){let c=Gn(n);if(II(c,B)&&!(n.flags&33554432)){let u=igt(c,n);if(u!==lt){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of rgt(g)){if(o.has(T))continue;o.add(T);let M=Ul(Uu(Ch(u),fl(T),111551));M?g&524288?gt(LS(M),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,jv,T,4):g&1048576?gt(LS(M),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,jv,T,5):g&1024&&(gt(LS(M),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,jv,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,jv,T)}}s|=a}}}function rgt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ee?["__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 R.fail("Unrecognized helper")}}function igt(n,a){return l||(l=j_(n,jv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||lt),l}function Ag(n){var a;let c=sgt(n)||ogt(n);if(c!==void 0)return c;if(To(n)&&w0(n))return hd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=Ll(n)?n.declarationList.flags&7:0,_,g,T,M,W,V=0,te=!1,ye=!1;for(let _e of n.modifiers)if(Ed(_e)){if(jF(ee,n,n.parent,n.parent.parent)){if(ee&&(n.kind===177||n.kind===178)){let je=xT(n.parent.members,n);if(bf(je.firstAccessor)&&n===je.secondAccessor)return hd(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Hf(n.body)?hd(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):hd(n,f.Decorators_are_not_valid_here);if(V&-34849)return yn(_e,f.Decorators_are_not_valid_here);if(ye&&V&98303){R.assertIsDefined(W);let je=Gn(_e);return KS(je)?!1:(Ma(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||!di(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)&&dE(n.parent)||n.parent;if(n.kind===168&&!(Fs(At)||di(At)||gh(At)||NR(At)||$I(At)||Ok(At)||hh(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,M=_e;break;case 125:case 124:case 123:let je=MA(kI(_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(su(n))return yn(_e,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);V|=kI(_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(di(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&&!Ld(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(di(n.parent)&&!jo(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(su(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(au(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)&&(dE(n.parent)||Gr((a=sR(n.parent))==null?void 0:a.tags,GT))||n.parent;if(n.kind!==168||sn&&!(mu(sn)||di(sn)||Tm(sn)||GT(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(M,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&&$o(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?cgt(n,T):!1}function ogt(n){if(!n.modifiers)return!1;let a=agt(n);return a&&hd(a,f.Modifiers_cannot_appear_here)}function tte(n,a){let c=Gr(n.modifiers,Ta);return c&&c.kind!==a?c:void 0}function agt(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 Gr(n.modifiers,Ta);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 Gr(n.modifiers,Ta);case 243:return n.declarationList.flags&4?tte(n,135):Gr(n.modifiers,Ta);case 266:return tte(n,87);default:R.assertNever(n)}}}function sgt(n){let a=lgt(n);return a&&hd(a,f.Decorators_are_not_valid_here)}function lgt(n){return TH(n)?Gr(n.modifiers,Ed):void 0}function cgt(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 hx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?JS(n[0],n.end-1,1,a):!1}function u4e(n,a){if(n&&n.length===0){let c=n.pos-1,u=Pa(a.text,n.end)+1;return JS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function dgt(n){let a=!1,c=n.length;for(let u=0;u!!a.initializer||$o(a.name)||qh(a))}function pgt(n){if(ce>=3){let a=n.body&&Ho(n.body)&&vH(n.body.statements);if(a){let c=ugt(n.parameters);if(Nn(c)){gn(c,_=>{Ma(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 Ma(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 Ag(n)||u4e(n.typeParameters,a)||dgt(n.parameters)||mgt(n,a)||Fs(n)&&pgt(n)}function fgt(n){let a=Gn(n);return vgt(n)||u4e(n.typeParameters,a)}function mgt(n,a){if(!zs(n))return!1;n.typeParameters&&!(Nn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Sc(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=ys(a,c.pos).line,_=ys(a,c.end).line;return u!==_&&yn(c,f.Line_terminator_not_permitted_before_arrow)}function _gt(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(hx(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(f6(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))||_C(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 hgt(n){return Ag(n)||_gt(n)}function ggt(n,a){if(a&&a.length===0){let c=Gn(n),u=a.pos-1,_=Pa(c.text,a.end)+1;return JS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function fG(n,a){return hx(a)||ggt(n,a)}function ygt(n){return n.questionDotToken||n.flags&64?yn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function p4e(n){let a=n.types;if(hx(a))return!0;if(a&&a.length===0){let c=da(n.token);return JS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return gt(a,f4e)}function f4e(n){return Gy(n)&&fP(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):fG(n,n.typeArguments)}function vgt(n){let a=!1,c=!1;if(!Ag(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===96){if(a)return hd(u,f.extends_clause_already_seen);if(c)return hd(u,f.extends_clause_must_precede_implements_clause);if(u.types.length>1)return hd(u.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(R.assert(u.token===119),c)return hd(u,f.implements_clause_already_seen);c=!0}p4e(u)}}function bgt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return hd(c,f.extends_clause_already_seen);a=!0}else return R.assert(c.token===119),hd(c,f.Interface_declaration_cannot_have_implements_clause);p4e(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 dbe(n){if(n.asteriskToken){if(R.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 ube(n,a){return!!n&&yn(n,a)}function m4e(n,a){return!!n&&yn(n,a)}function Egt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=ms(u.expression);if(fu(T)||La(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)Ta(T)&&(T.kind!==134||u.kind!==174)&&yn(T,f._0_modifier_cannot_be_used_here,fc(T));else if(Fae(u)&&u.modifiers)for(let T of u.modifiers)Ta(T)&&yn(T,f._0_modifier_cannot_be_used_here,fc(T));let g;switch(u.kind){case 304:case 303:m4e(u.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),ube(u.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&mbe(_),g=4;break;case 174:g=8;break;case 177:g=1;break;case 178:g=2;break;default:R.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=_be(_);if(T===void 0)continue;let M=c.get(T);if(!M)c.set(T,g);else if(g&8&&M&8)yn(_,f.Duplicate_identifier_0,fc(_));else if(g&4&&M&4)yn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,fc(_));else if(g&3&&M&3)if(M!==3&&g!==M)c.set(T,g|M);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 Sgt(n){Tgt(n.tagName),fG(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=rP(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 Tgt(n){if(kr(n)&&Xm(n.expression))return yn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Xm(n)&&C6(B)&&!fR(n.namespace.escapedText))return yn(n,f.React_components_cannot_include_JSX_namespace_names)}function Agt(n){if(n.expression&&TP(n.expression))return yn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function _4e(n){if(gy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Gn(n);if(BF(n)){if(!KS(a))switch(II(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(!KS(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){R.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);Ma(c,_)}return Qa.add(c),!0}return!1}if(Gk(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(!fbe(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 hd(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 Igt(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 JS(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(!xgt(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=R.checkDefined(kN(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 xgt(n){return pbe(n)||n.parameters.length===(n.kind===177?0:1)}function pbe(n){if(n.parameters.length===(n.kind===177?1:2))return k0(n)}function Rgt(n){if(n.operator===158){if(n.type.kind!==155)return yn(n.type,f._0_expected,da(155));let a=H2(n.parent);if(or(a)&&Z0(a)){let c=ET(a);c&&(a=CI(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(!vN(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(!na(a)||!wN(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 hd(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,da(155))}function uL(n,a){if(Hot(n))return yn(n,a)}function h4e(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 hd(n,f.Modifiers_cannot_appear_here);if(ube(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(m4e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return JS(n,n.end-1,1,f._0_expected,"{")}if(dbe(n))return!0}if(di(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 uL(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 uL(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 uL(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 uL(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 Dgt(n){let a=n;for(;a;){if(Bx(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&&!Mv(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(Mv(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 Cgt(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(hx(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 JS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function g4e(n){return $p(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Ngt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Pgt(n){if((kr(n)||Xs(n)&&g4e(n.argumentExpression))&&Vl(n.expression))return!!(rc(n).flags&1056)}function y4e(n){let a=n.initializer;if(a){let c=!(g4e(a)||Pgt(a)||a.kind===112||a.kind===97||Ngt(a));if((PF(n)||Oi(n)&&mG(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 Mgt(n){let a=qS(n),c=a&7;if($o(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)y4e(n);else if(!n.initializer){if($o(n.name)&&!$o(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)&&v4e(n.name),!!c&&b4e(n.name)}function v4e(n){if(n.kind===80){if(vr(n)==="__esModule")return wgt("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 v4e(c.name)}return!1}function b4e(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)||b4e(c.name)}return!1}function fbe(n){let a=n.declarations;if(hx(n.declarations))return!0;if(!n.declarations.length)return JS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&j4(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?WFe(n):!1}function E4e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return E4e(n.parent)}return!0}function Lgt(n){if(!E4e(n.parent)){let a=qS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":R.fail("Unknown BlockScope flag");return yn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function kgt(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 KS(n){return n.parseDiagnostics.length>0}function hd(n,a,...c){let u=Gn(n);if(!KS(u)){let _=fh(u,n.pos);return Qa.add(Zc(u,_.start,_.length,a,...c)),!0}return!1}function JS(n,a,c,u,..._){let g=Gn(n);return KS(g)?!1:(Qa.add(Zc(g,a,c,u,..._)),!0)}function wgt(n,a,c,...u){let _=Gn(a);return KS(_)?!1:(e_(n,a,c,...u),!0)}function yn(n,a,...c){let u=Gn(n);return KS(u)?!1:(Qa.add(Pr(n,a,...c)),!0)}function Ogt(n){let a=or(n)?p6(n):void 0,c=n.typeParameters||a&&Yc(a);if(c){let u=c.pos===c.end?c.pos:Pa(Gn(n).text,c.pos);return JS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Wgt(n){let a=n.type||$f(n);if(a)return yn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Fgt(n){if(Ya(n.name)&&pr(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(di(n.parent)){if(Ca(n.name)&&n.name.text==="constructor")return yn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(uL(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&&ku(n))return yn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ku(n)&&ube(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(uL(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(R.assertNode(n,_p),n.initializer)return yn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(gp(n.parent)){if(uL(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(R.assertNode(n,_p),n.initializer)return yn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&y4e(n),jo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||na(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 zgt(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:hd(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Bgt(n){for(let a of n.statements)if((Kd(a)||a.kind===243)&&zgt(a))return!0;return!1}function Ggt(n){return!!(n.flags&33554432)&&Bgt(n)}function gy(n){if(n.flags&33554432){if(!Qr(n).hasReportedStatementInAmbientContext&&(Yo(n.parent)||Pv(n.parent)))return Qr(n).hasReportedStatementInAmbientContext=hd(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=hd(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function mbe(n){let a=fc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||t_(!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 Vgt(n){return!!(!(qv(n.parent)||Yv(n.parent)&&qv(n.parent.parent))&&ce<7&&yn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function jgt(n,a,...c){let u=Gn(n);if(!KS(u)){let _=fh(u,n.pos);return Qa.add(Zc(u,Xl(_),0,a,...c)),!0}return!1}function Ugt(){return Wc||(Wc=[],be.forEach((n,a)=>{bK.test(a)&&Wc.push(n)})),Wc}function Hgt(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?S4e(n.namedBindings):!1}function S4e(n){return!!gn(n.elements,a=>{if(a.isTypeOnly)return hd(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 Kgt(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&&(hx(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=Gr(a,qm);return c?yn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Jgt(n,a){let c=Lr(n);if(c&20&&a.flags&1048576)return Gr(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 qgt(n,a){if(Lr(n)&128&&Fm(a,fv))return Gr(a.types,c=>!fv(c))}function Xgt(n,a){let c=0;if(Ko(n,c).length>0||(c=1,Ko(n,c).length>0))return Gr(a.types,_=>Ko(_,c).length>0)}function Ygt(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(p_(g)||g.flags&1048576){let T=g.flags&1048576?bv(g.types,p_):1;T>=u&&(c=_,u=T)}}}return c}function $gt(n){if(Dl(n,67108864)){let a=uc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function T4e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=w8e(a,n);if(u)return u;let _=_s(n);if(_){let g=k8e(_,a);if(g){let T=nye(a,mn(g,M=>[()=>lr(M),M.escapedName]),c);if(T!==a)return T}}}}function _be(n){let a=ST(n);return a||(Ya(n)?Rye(Rd(n.expression)):void 0)}function ite(n){return Kn===n||(Kn=n,pn=eE(n)),pn}function qS(n){return en===n||(en=n,Dn=Cy(n)),Dn}function mG(n){let a=qS(n)&7;return a===2||a===4||a===6}}function HGe(e){return!Pv(e)}function CIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function NIe(e){switch(e.parent.kind){case 276:case 281:return Fe(e);default:return kg(e)}}function PIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Xd(e){return!!(e.flags&1)}function vK(e){return!!(e.flags&2)}function KGe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ea(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ea(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,P3,Use,Hse,Kse,Jse,M3,EK,L3,k3,MIe,w3,qse,tf,SK,JGe=bt({"src/compiler/checker.ts"(){"use strict";Zo(),Vse(),iT(),bK=/^".+"$/,P3="(anonymous)",Use=1,Hse=1,Kse=1,Jse=1,M3=(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))(M3||{}),EK=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),L3=(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))(L3||{}),k3=(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))(k3||{}),MIe=TW(CIe,HGe),w3=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),qse=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 K4e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof K4e;)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 Qe(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return So(o)?s=(i||QGe)(o):s=o,R.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),LIe(e,t,r,i,o)}function LIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=qGe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function qGe(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=gI(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,ft,Zt){R.assert(tt>=ce,"generatedLine cannot backtrack"),R.assert(Wt>=0,"generatedCharacter cannot be negative"),R.assert(_t===void 0||_t>=0,"sourceIndex cannot be negative"),R.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),R.assert(ft===void 0||ft>=0,"sourceCharacter cannot be negative"),s(),(he(tt,Wt)||Ce(_t,Je,ft))&&(Le(),ce=tt,z=Wt,re=!1,pe=!1,J=!0),_t!==void 0&&Je!==void 0&&ft!==void 0&&(ee=_t,me=Je,ge=ft,re=!0,Zt!==void 0&&(q=Zt,pe=!0)),l()}function ve(tt,Wt,_t,Je,ft,Zt){R.assert(tt>=ce,"generatedLine cannot backtrack"),R.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(ft&&(pn.generatedLine=1024&&Et()}function Le(){if(!(!J||!Ie())){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(t9e(Wt))}while(tt>0)}}function AK(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Yse(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=O3.exec(r);if(i)return i[1].trimEnd();if(!r.match(W3))break}}function e9e(e){return typeof e=="string"||e===null}function $se(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&So(e.sources)&&oo(e.sources,Co)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||So(e.sourcesContent)&&oo(e.sourcesContent,e9e))&&(e.names===void 0||e.names===null||So(e.names)&&oo(e.names,Co))}function IK(e){try{let t=JSON.parse(e);if($se(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=n9e(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 wIe(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 Qse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function t9e(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:R.fail(`${e}: not a base64 value`)}function n9e(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 OIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function WIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function r9e(e,t){return R.assert(e.sourceIndex===t.sourceIndex),el(e.sourcePosition,t.sourcePosition)}function i9e(e,t){return el(e.generatedPosition,t.generatedPosition)}function o9e(e){return e.sourcePosition}function a9e(e){return e.generatedPosition}function Zse(e,t,r){let i=oi(r),o=t.sourceRoot?_o(t.sourceRoot,i):i,s=_o(t.file,i),l=e.getSourceFileLike(s),d=t.sources.map(j=>_o(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?UL(l,j.generatedLine,j.generatedCharacter,!0):-1,Y,B;if(Qse(j)){let ce=e.getSourceFileLike(d[j.sourceIndex]);Y=t.sources[j.sourceIndex],B=ce!==void 0?UL(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=Oo(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(!OIe(Y))continue;let B=K[Y.sourceIndex];B||(K[Y.sourceIndex]=B=[]),B.push(Y)}y=K.map(Y=>UC(Y,r9e,WIe))}return y[j]}function N(){if(m===void 0){let j=[];for(let K of S())j.push(K);m=UC(j,i9e,WIe)}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=dI(Y,j.pos,o9e,el);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=dI(K,j.pos,a9e,el);Y<0&&(Y=~Y);let B=K[Y];return B===void 0||!OIe(B)?j:{fileName:d[B.sourceIndex],pos:B.sourcePosition}}}var RK,O3,W3,F3,s9e=bt({"src/compiler/sourcemap.ts"(){"use strict";Zo(),iT(),RK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,O3=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,W3=/^\s*(\/\/[@#] .*)?$/,F3={getSourcePosition:Zs,getGeneratedPosition:Zs}}});function Od(e){return e=Pl(e),e?is(e):0}function l9e(e){return!e||!zg(e)?!1:gt(e.elements,FIe)}function FIe(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 ele(e){return!!oR(e)}function z3(e){if(oR(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)FIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&RI(e)}function DK(e){return!z3(e)&&(RI(e)||!!e.importClause&&zg(e.importClause.namedBindings)&&l9e(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&&z3(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(vr(w))||(wP(l,Od(D),w),d.set(vr(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=zIe(w,d,p,l);break;case 262:if($r(D,32))if($r(D,2048))h||(wP(l,Od(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;d.get(vr(w))||(wP(l,Od(D),w),d.set(vr(w),!0),p=Tn(p,w))}break;case 263:if($r(D,32))if($r(D,2048))h||(wP(l,Od(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;w&&!d.get(vr(w))&&(wP(l,Od(D),w),d.set(vr(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 ta(D.exportClause,xf).elements)if(!d.get(vr(w.name))){let j=w.propertyName||w.name;D.moduleSpecifier||s.add(j,w);let K=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);K&&wP(l,Od(K),w.name),d.set(vr(w.name),!0),p=Tn(p,w.name)}}}function zIe(e,t,r,i){if($o(e.name))for(let o of e.name.elements)jc(o)||(r=zIe(o,t,r,i));else if(!il(e.name)){let o=vr(e.name);t.get(o)||(t.set(o,!0),r=Tn(r,e.name),Bg(e.name)&&wP(i,Od(e),e.name))}return r}function wP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function rS(e){return ss(e)||e.kind===9||Wu(e.kind)||Fe(e)}function L_(e){return!Fe(e)&&rS(e)}function OP(e){return e>=65&&e<=79}function WP(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 B3(e){if(!td(e))return;let t=ms(e.expression);return hT(t)?t:void 0}function BIe(e,t,r){for(let i=t;id9e(i,t,r))}function c9e(e){return u9e(e)||Il(e)}function V3(e){return Vr(e.members,c9e)}function d9e(e,t,r){return jo(e)&&(!!e.initializer||!t)&&mc(e)===r}function u9e(e){return jo(e)&&mc(e)}function Iw(e){return e.kind===172&&e.initializer!==void 0}function tle(e){return!na(e)&&(SI(e)||ku(e))&&Ki(e.name)}function nle(e){let t;if(e){let r=e.parameters,i=r.length>0&&w0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lMK(r.privateEnv,t))}function ale(e){return!e.initializer&&Fe(e.name)}function xw(e){return oo(e,ale)}var _1,LK,m9e=bt({"src/compiler/transformers/utilities.ts"(){"use strict";Zo(),_1=class PC{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(PC.toKey(t))}get(t){return this._map.get(PC.toKey(t))}set(t,r){return this._map.set(PC.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(PC.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(lT(t)||il(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=$k(t),o=Jh(i)&&i!==t?PC.toKey(i):`(generated@${is(i)})`;return bE(!1,r.prefix,o,r.suffix,PC.toKey)}else{let i=`(auto@${r.id})`;return bE(!1,r.prefix,i,r.suffix,PC.toKey)}}return Ki(t)?vr(t).slice(1):vr(t)}},LK=class extends _1{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&&(fI(r,t),r.length||this.delete(e))}}}});function KT(e,t,r,i,o,s){let l=e,d;if(Oy(e))for(d=e.right;Jie(e.left)||Jj(e.left);)if(Oy(d))l=e=d,d=e.right;else return R.checkDefined(Qe(d,t,ht));let p,h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>S9e(r.factory,E),createObjectBindingOrAssignmentPattern:E=>A9e(r.factory,E),createArrayBindingOrAssignmentElement:x9e,visitor:t};if(d&&(d=Qe(d,t,ht),R.assert(d),Fe(d)&&sle(e,d.escapedText)||lle(e)?d=h1(h,d,!1,l):o?d=h1(h,d,!0,l):qs(e)&&(l=d)),FP(h,e,d,l,Oy(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){R.assertNode(E,s?Fe:ht);let D=s?s(E,S,A):at(r.factory.createAssignment(R.checkDefined(Qe(E,t,ht)),S),A);D.original=N,m(D)}}function sle(e,t){let r=Qv(e);return s2(r)?_9e(r,t):Fe(r)?r.escapedText===t:!1}function _9e(e,t){let r=VR(e);for(let i of r)if(sle(i,t))return!0;return!1}function lle(e){let t=t3(e);if(t&&Ya(t)&&!S0(t.expression))return!0;let r=Qv(e);return!!r&&s2(r)&&h9e(r)}function h9e(e){return!!gn(VR(e),lle)}function iS(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=>E9e(r.factory,S),createObjectBindingOrAssignmentPattern:S=>T9e(r.factory,S),createArrayBindingOrAssignmentElement:S=>I9e(r.factory,S),visitor:t};if(Oi(e)){let S=Xk(e);S&&(Fe(S)&&sle(e,S.escapedText)||lle(e))&&(S=h1(m,R.checkDefined(Qe(S,m.visitor,ht)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(FP(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)),Ur(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){R.assertNode(S,cT),d&&(A=r.factory.inlineExpressions(Tn(d,A)),d=void 0),p.push({pendingExpressions:d,name:S,value:A,location:N,original:D})}}function FP(e,t,r,i,o){let s=Qv(t);if(!o){let l=Qe(Xk(t),e.visitor,ht);l?r?(r=v9e(e,r,l,i),!L_(l)&&s2(s)&&(r=h1(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}PV(s)?g9e(e,t,s,r,i):MV(s)?y9e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function g9e(e,t,r,i,o){let s=VR(r),l=s.length;if(l!==1){let h=!a2(t)||l!==0;i=h1(e,i,h,o)}let d,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!(Qv(m).transformFlags&98304)&&!Ya(y))d=Tn(d,Qe(m,e.visitor,_re));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=b9e(e,i,y);Ya(y)&&(p=Tn(p,E.argumentExpression)),FP(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function y9e(e,t,r,i,o){let s=VR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=h1(e,at(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&e3(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||oo(s,jc)){let h=!a2(t)||l!==0;i=h1(e,i,h,o)}let d,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!VIe(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(e3(m)){if(h===l-1){let y=e.context.factory.createArraySliceCall(i,h);FP(e,m,y,m)}}else{let y=e.context.factory.createElementAccessExpression(i,h);FP(e,m,y,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)FP(e,m,h,m)}function VIe(e){let t=Qv(e);if(!t||jc(t))return!0;let r=t3(e);if(r&&!T_(r))return!1;let i=Xk(e);return i&&!L_(i)?!1:s2(t)?oo(VR(t),VIe):Fe(t)}function v9e(e,t,r,i){return t=h1(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function b9e(e,t,r){let{factory:i}=e.context;if(Ya(r)){let o=h1(e,R.checkDefined(Qe(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(vr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function h1(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 E9e(e,t){return R.assertEachNode(t,pF),e.createArrayBindingPattern(t)}function S9e(e,t){return R.assertEachNode(t,c2),e.createArrayLiteralExpression(mn(t,e.converters.convertToArrayAssignmentElement))}function T9e(e,t){return R.assertEachNode(t,Xa),e.createObjectBindingPattern(t)}function A9e(e,t){return R.assertEachNode(t,l2),e.createObjectLiteralExpression(mn(t,e.converters.convertToObjectAssignmentElement))}function I9e(e,t){return e.createBindingElement(void 0,void 0,t)}function x9e(e){return e}var kK,R9e=bt({"src/compiler/transformers/destructuring.ts"(){"use strict";Zo(),kK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(kK||{})}});function cle(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 wd(l).classThis=t,l}function zP(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return td(r)&&Lc(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,zP)}function dle(e,t,r,i){if(wK(t))return t;let o=cle(e,r,i);t.name&&Da(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);at(s,t.members);let l=Ac(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 wd(l).classThis=r,l}var D9e=bt({"src/compiler/transformers/classThis.ts"(){"use strict";Zo()}});function BP(e,t,r){let i=Pl(Ql(r));return(Ac(i)||Tc(i))&&!i.name&&$r(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function jIe(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 ule(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 wd(d).assignedName=t,d}function g1(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return td(r)&&dP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function U3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&>(e.members,g1)}function OK(e){return!!e.name||U3(e)}function H3(e,t,r,i){if(U3(t))return t;let{factory:o}=e,s=ule(e,r,i);t.name&&Da(s.body.statements[0],t.name);let l=ql(t.members,zP)+1,d=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...d,s,...p]);return at(h,t.members),t=Ac(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),wd(t).assignedName=r,t}function ZR(e,t,r,i){if(i&&Ca(r)&&cj(r))return t;let{factory:o}=e,s=Ql(t),l=ed(s)?ta(H3(e,s,r),ed):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function C9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=jIe(e,t.name,i),d=ZR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function N9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):BP(o,t.name,t.objectAssignmentInitializer),l=ZR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function P9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):BP(o,t.name,t.initializer),l=ZR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function M9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):BP(o,t.name,t.initializer),l=ZR(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function L9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):BP(o,t.name,t.initializer),l=ZR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function k9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=jIe(e,t.name,i),d=ZR(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,d)}function w9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):BP(o,t.left,t.right),l=ZR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function O9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=ZR(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function yp(e,t,r,i){switch(t.kind){case 303:return C9e(e,t,r,i);case 304:return N9e(e,t,r,i);case 260:return P9e(e,t,r,i);case 169:return M9e(e,t,r,i);case 208:return L9e(e,t,r,i);case 172:return k9e(e,t,r,i);case 226:return w9e(e,t,r,i);case 277:return O9e(e,t,r,i)}}var W9e=bt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";Zo()}});function WK(e,t,r,i,o,s){let l=Qe(t.tag,r,ht);R.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(JI(m))p.push(ple(y,m)),h.push(fle(y,m,i));else{p.push(ple(y,m.head)),h.push(fle(y,m.head,i));for(let S of m.templateSpans)p.push(ple(y,S.literal)),h.push(fle(y,S.literal,i)),d.push(R.checkDefined(Qe(S.expression,r,ht)))}let E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(p),y.createArrayLiteralExpression(h));if(sc(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 ple(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function fle(e,t,r){let i=t.rawText;if(i===void 0){R.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=A0(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,F9e=bt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Zo(),FK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(FK||{})}});function mle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getEmitResolver(),p=e.getCompilerOptions(),h=rs(p),m=kd(p),y=!!p.experimentalDecorators,E=p.emitDecoratorMetadata?hle(e):void 0,S=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=lc,e.onSubstituteNode=Rl,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,w,j,K,Y,B,ce;return z;function z($){return $.kind===313?ee($):me($)}function ee($){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,br=Y;q($);let mr=Pe($);return j!==yt&&(K=cn),j=yt,Y=br,mr}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($):R.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=Ro($);if(Pe===$||kl($))return!1;if(!Pe||Pe.kind!==$.kind)return!0;switch($.kind){case 272:if(R.assertNode(Pe,kc),$.importClause!==Pe.importClause||$.attributes!==Pe.attributes)return!0;break;case 271:if(R.assertNode(Pe,nd),$.name!==Pe.name||$.isTypeOnly!==Pe.isTypeOnly||$.moduleReference!==Pe.moduleReference&&(Xu($.moduleReference)||Xu(Pe.moduleReference)))return!0;break;case 278:if(R.assertNode(Pe,$l),$.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 Io($);case 277:return xi($);case 278:return tr($);default:R.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 Ao($,Pe);case 175:return Sn($,J,e);case 240:return $;case 181:return;default:return R.failBadSyntaxKind($)}}function Ie($){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 Ao($,Pe);default:return R.failBadSyntaxKind($)}}function Le($){return Ed($)?void 0:J($)}function Et($){return Ta($)?void 0:J($)}function be($){if(!Ed($)&&!(kI($.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 Sr($);case 233:return on($);case 210:return Wt($);case 176:case 172:case 174:case 177:case 178:case 175:return R.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 pt($);case 215:return Bt($);case 235:return et($);case 266:return U($);case 243:return Rt($);case 260:return ke($);case 267:return It($);case 271:return Io($);case 285:return hn($);case 286:return dn($);default:return Sn($,J,e)}}function tt($){let Pe=uu(p,"alwaysStrict")&&!(sc($)&&m>=5)&&!Jf($);return t.updateSourceFile($,TK($.statements,pe,e,0,Pe))}function Wt($){return t.updateObjectLiteralExpression($,zn($.properties,Ie($),Pg))}function _t($){let Pe=0;gt(NK($,!0,!0))&&(Pe|=1);let yt=S_($);return yt&&Ql(yt.expression).kind!==106&&(Pe|=64),My(y,$)&&(Pe|=2),EN(y,$)&&(Pe|=4),xn($)?Pe|=8:Po($)?Pe|=32:Zl($)&&(Pe|=16),Pe}function Je($){return!!($.transformFlags&8192)}function ft($){return bf($)||gt($.typeParameters)||gt($.heritageClauses,Je)||gt($.members,Je)}function Zt($){let Pe=_t($),yt=h<=1&&!!(Pe&7);if(!ft($)&&!My(y,$)&&!xn($))return t.updateClassDeclaration($,zn($.modifiers,be,Ta),$.name,void 0,zn($.heritageClauses,J,Zp),zn($.members,Ge($),Qc));yt&&e.startLexicalEnvironment();let cn=yt||Pe&8,br=cn?zn($.modifiers,Et,ol):zn($.modifiers,J,ol);Pe&2&&(br=Kn(br,$));let Fr=cn&&!$.name||Pe&4||Pe&1?$.name??t.getGeneratedNameForNode($):$.name,Di=t.updateClassDeclaration($,br,Fr,void 0,zn($.heritageClauses,J,Zp),Dn($)),Cr=za($);Pe&1&&(Cr|=64),dr(Di,Cr);let Jo;if(yt){let bl=[Di],Hc=Xj(Pa(N.text,$.members.end),20),Vs=t.getInternalName($),yc=t.createPartiallyEmittedExpression(Vs);TR(yc,Hc.end),dr(yc,3072);let bs=t.createReturnStatement(yc);$N(bs,Hc.pos),dr(bs,3840),bl.push(bs),Xh(bl,e.endLexicalEnvironment());let Kc=t.createImmediatelyInvokedArrowFunction(bl);Dk(Kc,1);let tp=t.createVariableDeclaration(t.getLocalName($,!1,!1),void 0,void 0,Kc);Rr(tp,$);let Wc=t.createVariableStatement(void 0,t.createVariableDeclarationList([tp],1));Rr(Wc,$),ac(Wc,$),Da(Wc,wg($)),qd(Wc),Jo=Wc}else Jo=Di;if(cn){if(Pe&8)return[Jo,ls($)];if(Pe&32)return[Jo,t.createExportDefault(t.getLocalName($,!1,!0))];if(Pe&16)return[Jo,t.createExternalModuleExport(t.getDeclarationName($,!1,!0))]}return Jo}function en($){let Pe=zn($.modifiers,Et,ol);return My(y,$)&&(Pe=Kn(Pe,$)),t.updateClassExpression($,Pe,$.name,void 0,zn($.heritageClauses,J,Zp),Dn($))}function Dn($){let Pe=zn($.members,Ge($),Qc),yt,cn=tg($),br=cn&&Vr(cn.parameters,mr=>dp(mr,cn));if(br)for(let mr of br){let Fr=t.createPropertyDeclaration(void 0,mr.name,void 0,void 0,void 0);Rr(Fr,mr),yt=Tn(yt,Fr)}return yt?(yt=Ur(yt,Pe),at(t.createNodeArray(yt),$.members)):Pe}function Kn($,Pe){let yt=Yt(Pe,Pe);if(gt(yt)){let cn=[];Ur(cn,xW($,Yk)),Ur(cn,Vr($,Ed)),Ur(cn,yt),Ur(cn,Vr(fne($,Yk),Ta)),$=at(t.createNodeArray(cn),$)}return $}function pn($,Pe,yt){if(di(yt)&&lj(y,Pe,yt)){let cn=Yt(Pe,yt);if(gt(cn)){let br=[];Ur(br,Vr($,Ed)),Ur(br,cn),Ur(br,Vr($,Ta)),$=at(t.createNodeArray(br),$)}}return $}function Yt($,Pe){if(y)return UIe?hi($,Pe):qt($,Pe)}function qt($,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(Eo($)){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(Eo($)){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 Eo($){switch($.kind){case 263:case 231:return tg($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Zn($,Pe){let yt=$.name;return Ki(yt)?t.createIdentifier(""):Ya(yt)?Pe&&!L_(yt.expression)?t.getGeneratedNameForNode(yt):yt.expression:Fe(yt)?t.createStringLiteral(vr(yt)):t.cloneNode(yt)}function jr($){let Pe=$.name;if(Ya(Pe)&&(!mc($)&&Y||bf($)&&y)){let yt=Qe(Pe.expression,J,ht);R.assert(yt);let cn=gm(yt);if(!L_(cn)){let br=t.getGeneratedNameForNode(Pe);return l(br),t.updateComputedPropertyName(Pe,t.createAssignment(br,yt))}}return R.checkDefined(Qe(Pe,J,oc))}function Sr($){if($.token!==119)return Sn($,J,e)}function on($){return t.updateExpressionWithTypeArguments($,R.checkDefined(Qe($.expression,J,Yu)),void 0)}function $e($){return!Bl($.body)}function Ot($,Pe){let yt=$.flags&33554432||$r($,64);if(yt&&!(y&&bf($)))return;let cn=di(Pe)?yt?zn($.modifiers,Et,ol):zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return cn=pn(cn,$,Pe),yt?t.updatePropertyDeclaration($,bo(cn,t.createModifiersFromModifierFlags(128)),R.checkDefined(Qe($.name,J,oc)),void 0,void 0,void 0):t.updatePropertyDeclaration($,cn,jr($),void 0,void 0,Qe($.initializer,J,ht))}function In($){if($e($))return t.updateConstructorDeclaration($,void 0,xl($.parameters,J,e),yi($.body,$))}function si($,Pe,yt,cn,br,mr){let Fr=cn[br],Di=Pe[Fr];if(Ur($,zn(Pe,J,Hi,yt,Fr-yt)),WT(Di)){let Cr=[];si(Cr,Di.tryBlock.statements,0,cn,br+1,mr);let Jo=t.createNodeArray(Cr);at(Jo,Di.tryBlock.statements),$.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,J,$0),Qe(Di.finallyBlock,J,Ho)))}else Ur($,zn(Pe,J,Hi,Fr,1)),Ur($,mr);Ur($,zn(Pe,J,Hi,Fr+1))}function yi($,Pe){let yt=Pe&&Vr(Pe.parameters,Cr=>dp(Cr,Pe));if(!gt(yt))return nf($,J,e);let cn=[];o();let br=t.copyPrologue($.statements,cn,!1,J),mr=G3($.statements,br),Fr=to(yt,$i);mr.length?si(cn,$.statements,br,mr,0,Fr):(Ur(cn,Fr),Ur(cn,zn($.statements,J,Hi,br))),cn=t.mergeLexicalEnvironment(cn,s());let Di=t.createBlock(at(t.createNodeArray(cn),$.statements),!0);return at(Di,$),Rr(Di,$),Di}function $i($){let Pe=$.name;if(!Fe(Pe))return;let yt=ja(at(t.cloneNode(Pe),Pe),Pe.parent);dr(yt,3168);let cn=ja(at(t.cloneNode(Pe),Pe),Pe.parent);return dr(cn,3072),qd(Rk(at(Rr(t.createExpressionStatement(t.createAssignment(at(t.createPropertyAccessExpression(t.createThis(),yt),$.name),cn)),$),pE($,-1))))}function Ao($,Pe){if(!($.transformFlags&1))return $;if(!$e($))return;let yt=di(Pe)?zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return yt=pn(yt,$,Pe),t.updateMethodDeclaration($,yt,$.asteriskToken,jr($),void 0,void 0,xl($.parameters,J,e),void 0,nf($.body,J,e))}function ua($){return!(Bl($.body)&&$r($,64))}function Ba($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=di(Pe)?zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return yt=pn(yt,$,Pe),t.updateGetAccessorDeclaration($,yt,jr($),xl($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([]))}function vn($,Pe){if(!($.transformFlags&1))return $;if(!ua($))return;let yt=di(Pe)?zn($.modifiers,J,ol):zn($.modifiers,Le,ol);return yt=pn(yt,$,Pe),t.updateSetAccessorDeclaration($,yt,jr($),xl($.parameters,J,e),nf($.body,J,e)||t.createBlock([]))}function kn($){if(!$e($))return t.createNotEmittedStatement($);let Pe=t.updateFunctionDeclaration($,zn($.modifiers,be,Ta),$.asteriskToken,$.name,void 0,xl($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([]));if(xn($)){let yt=[Pe];return Bs(yt,$),yt}return Pe}function Be($){return $e($)?t.updateFunctionExpression($,zn($.modifiers,be,Ta),$.asteriskToken,$.name,void 0,xl($.parameters,J,e),void 0,nf($.body,J,e)||t.createBlock([])):t.createOmittedExpression()}function ct($){return t.updateArrowFunction($,zn($.modifiers,be,Ta),void 0,xl($.parameters,J,e),void 0,$.equalsGreaterThanToken,nf($.body,J,e))}function lt($){if(w0($))return;let Pe=t.updateParameterDeclaration($,zn($.modifiers,yt=>Ed(yt)?J(yt):void 0,ol),$.dotDotDotToken,R.checkDefined(Qe($.name,J,cT)),void 0,void 0,Qe($.initializer,J,ht));return Pe!==$&&(ac(Pe,$),at(Pe,R_($)),Da(Pe,R_($)),dr(Pe.name,64)),Pe}function Rt($){if(xn($)){let Pe=GN($.declarationList);return Pe.length===0?void 0:at(t.createExpressionStatement(t.inlineExpressions(mn(Pe,se))),$)}else return Sn($,J,e)}function se($){let Pe=$.name;return $o(Pe)?KT($,J,e,0,!1,dd):at(t.createAssignment(mo(Pe),R.checkDefined(Qe($.initializer,J,ht))),$)}function ke($){let Pe=t.updateVariableDeclaration($,R.checkDefined(Qe($.name,J,cT)),void 0,void 0,Qe($.initializer,J,ht));return $.type&&Qoe(Pe.name,$.type),Pe}function st($){let Pe=Ql($.expression,-7);if(uT(Pe)){let yt=Qe($.expression,J,ht);return R.assert(yt),t.createPartiallyEmittedExpression(yt,$)}return Sn($,J,e)}function G($){let Pe=Qe($.expression,J,ht);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function et($){let Pe=Qe($.expression,J,Yu);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function Tt($){let Pe=Qe($.expression,J,ht);return R.assert(Pe),t.createPartiallyEmittedExpression(Pe,$)}function He($){return t.updateCallExpression($,R.checkDefined(Qe($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function pt($){return t.updateNewExpression($,R.checkDefined(Qe($.expression,J,ht)),void 0,zn($.arguments,J,ht))}function Bt($){return t.updateTaggedTemplateExpression($,R.checkDefined(Qe($.tag,J,ht)),void 0,R.checkDefined(Qe($.template,J,TI)))}function hn($){return t.updateJsxSelfClosingElement($,R.checkDefined(Qe($.tagName,J,mN)),void 0,R.checkDefined(Qe($.attributes,J,Y0)))}function dn($){return t.updateJsxOpeningElement($,R.checkDefined(Qe($.tagName,J,mN)),void 0,R.checkDefined(Qe($.attributes,J,Y0)))}function un($){return!x0($)||V0(p)}function U($){if(!un($))return t.createNotEmittedStatement($);let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let br=sa($),mr=ud($),Fr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(Fr,t.createAssignment(Fr,t.createObjectLiteralExpression()));if(xn($)){let Jo=t.getLocalName($,!1,!0);Di=t.createAssignment(Jo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,br)],void 0,Me($,mr)),void 0,[Di]));return Rr(Cr,$),cn&&(hE(Cr,void 0),jI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Me($,Pe){let yt=w;w=Pe;let cn=[];i();let br=mn($.members,Nt);return Xh(cn,s()),Ur(cn,br),w=yt,t.createBlock(at(t.createNodeArray(cn),$.members),!0)}function Nt($){let Pe=Zn($,!1),yt=k($),cn=t.createAssignment(t.createElementAccessExpression(w,Pe),yt),br=yt.kind===11?cn:t.createAssignment(t.createElementAccessExpression(w,cn),Pe);return at(t.createExpressionStatement(at(br,$)),$)}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):(Ss(),$.initializer?R.checkDefined(Qe($.initializer,J,ht)):t.createVoidZero())}function ie($){let Pe=Ro($,Yl);return Pe?yK(Pe,V0(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 R.assertNode($.name,Fe),$.name.escapedText}function Ne($,Pe){let yt=t.createVariableDeclaration(t.getLocalName(Pe,!1,!0)),cn=j.kind===312?0:1,br=t.createVariableStatement(zn(Pe.modifiers,be,Ta),t.createVariableDeclarationList([yt],cn));return Rr(yt,Pe),hE(yt,void 0),jI(yt,void 0),Rr(br,Pe),H(Pe),ue(Pe)?(Pe.kind===266?Da(br.declarationList,Pe):Da(br,Pe),ac(br,Pe),D_(br,2048),$.push(br),!0):!1}function It($){if(!ie($))return t.createNotEmittedStatement($);R.assertNode($.name,Fe,"A TypeScript namespace should have an Identifier name."),Na();let Pe=[],yt=4,cn=Ne(Pe,$);cn&&(m!==4||j!==N)&&(yt|=1024);let br=sa($),mr=ud($),Fr=xn($)?t.getExternalModuleOrNamespaceExportName(w,$,!1,!0):t.getDeclarationName($,!1,!0),Di=t.createLogicalOr(Fr,t.createAssignment(Fr,t.createObjectLiteralExpression()));if(xn($)){let Jo=t.getLocalName($,!1,!0);Di=t.createAssignment(Jo,Di)}let Cr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,br)],void 0,Dt($,mr)),void 0,[Di]));return Rr(Cr,$),cn&&(hE(Cr,void 0),jI(Cr,void 0)),at(Cr,$),D_(Cr,yt),Pe.push(Cr),Pe}function Dt($,Pe){let yt=w,cn=D,br=K;w=Pe,D=$,K=void 0;let mr=[];i();let Fr,Di;if($.body)if($.body.kind===268)ge($.body,Jo=>Ur(mr,zn(Jo.statements,he,Hi))),Fr=$.body.statements,Di=$.body;else{let Jo=It($.body);Jo&&(So(Jo)?Ur(mr,Jo):mr.push(Jo));let bl=Kt($).body;Fr=pE(bl.statements,-1)}Xh(mr,s()),w=yt,D=cn,K=br;let Cr=t.createBlock(at(t.createNodeArray(mr),Fr),!0);return at(Cr,Di),(!$.body||$.body.kind!==268)&&dr(Cr,za(Cr)|3072),Cr}function Kt($){if($.body.kind===267)return Kt($.body)||$.body}function En($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;let Pe=Qe($.importClause,wn,yh);return Pe||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration($,void 0,Pe,$.moduleSpecifier,$.attributes):void 0}function wn($){R.assert(!$.isTypeOnly);let Pe=de($)?$.name:void 0,yt=Qe($.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 tr($){if($.isTypeOnly)return;if(!$.exportClause||vh($.exportClause))return $;let Pe=p.verbatimModuleSyntax||!!$.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=Qe($.exportClause,cn=>Pi(cn,Pe),AV);return yt?t.updateExportDeclaration($,void 0,$.isTypeOnly,yt,$.moduleSpecifier,$.attributes):void 0}function Wr($,Pe){let yt=zn($.elements,Ri,Jd);return Pe||gt(yt)?t.updateNamedExports($,yt):void 0}function ho($){return t.updateNamespaceExport($,R.checkDefined(Qe($.name,J,Fe)))}function Pi($,Pe){return vh($)?ho($):Wr($,Pe)}function Ri($){return!$.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration($))?$:void 0}function Hr($){return de($)||!sc(N)&&d.isTopLevelValueImportEqualsWithEntityName($)}function Io($){if($.isTypeOnly)return;if(sE($)){let yt=de($);return!yt&&p.importsNotUsedAsValues===1?Rr(at(t.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):yt?Sn($,J,e):void 0}if(!Hr($))return;let Pe=Hk(t,$.moduleReference);return dr(Pe,7168),Zl($)||!xn($)?Rr(at(t.createVariableStatement(zn($.modifiers,be,Ta),t.createVariableDeclarationList([Rr(t.createVariableDeclaration($.name,void 0,void 0,Pe),$)])),$),$):Rr(_l($.name,Pe,$),$)}function xn($){return D!==void 0&&$r($,32)}function Os($){return D===void 0&&$r($,32)}function Zl($){return Os($)&&!$r($,2048)}function Po($){return Os($)&&$r($,2048)}function ls($){let Pe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(w,$,!1,!0),t.getLocalName($));Da(Pe,Ef($.name?$.name.pos:$.pos,$.end));let yt=t.createExpressionStatement(Pe);return Da(yt,Ef(-1,$.end)),yt}function Bs($,Pe){$.push(ls(Pe))}function _l($,Pe,yt){return at(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(w,$,!1,!0),Pe)),yt)}function dd($,Pe,yt){return at(t.createAssignment(mo($),Pe),yt)}function mo($){return t.getNamespaceMemberName(w,$,!1,!0)}function sa($){let Pe=t.getGeneratedNameForNode($);return Da(Pe,$.name),Pe}function ud($){return t.getGeneratedNameForNode($)}function Ss(){B&8||(B|=8,e.enableSubstitution(80))}function Na(){B&2||(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function pl($){return Pl($).kind===267}function Nf($){return Pl($).kind===266}function lc($,Pe,yt){let cn=ce,br=N;Yi(Pe)&&(N=Pe),B&2&&pl(Pe)&&(ce|=2),B&8&&Nf(Pe)&&(ce|=8),S($,Pe,yt),ce=cn,N=br}function Rl($,Pe){return Pe=A($,Pe),$===1?Mo(Pe):Zu(Pe)?sl(Pe):Pe}function sl($){if(B&2){let Pe=$.name,yt=Gs(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 Mo($){switch($.kind){case 80:return tn($);case 211:return rd($);case 212:return pd($)}return $}function tn($){return Gs($)||$}function Gs($){if(B&ce&&!il($)&&!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 rd($){return Ns($)}function pd($){return Ns($)}function Ep($){return $.replace(/\*\//g,"*_/")}function Ns($){let Pe=xc($);if(Pe!==void 0){Yoe($,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=Pl($,Ls);i4(yt,3,` ${Ep(fc(cn))} `)}return yt}return $}function xc($){if(!em(p))return kr($)||Xs($)?d.getConstantValue($):void 0}function de($){return p.verbatimModuleSyntax||or($)||(p.preserveValueImports?d.isValueAliasDeclaration($):d.isReferencedAliasDeclaration($))}}var UIe,z9e=bt({"src/compiler/transformers/ts.ts"(){"use strict";Zo(),UIe=!1}});function _le(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:d}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=rs(h),y=sP(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=rd;let ce=e.onEmitNode;e.onEmitNode=Gs;let z=!1,ee,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,Ta)}}function ve(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return R.fail("Use `modifierVisitor` instead.");case 263:return dn(de);case 231:return U(de);case 175:case 172:return R.fail("Use `classElementVisitor` instead.");case 303:return Je(de);case 243:return ft(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,Ie,de);case 176:case 174:case 177:case 178:return Li(de,Ie,de);default:return Ie(de)}}function Ie(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 Bt(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,qt,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 Yt(de);case 240:return de;default:return ol(de)?Ge(de):ve(de)}}function ze(de){switch(de.kind){case 167:return Yt(de);default:return ve(de)}}function tt(de){switch(de.kind){case 172:return $e(de);case 177:case 178:return be(de);default:R.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Wt(de){return!D||Hi(de.parent)?de:Rr(t.createIdentifier(""),de)}function _t(de){let $=sa(de.left);if($){let Pe=Qe(de.right,ve,ht);return Rr(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 ft(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)&&(Fu(de)?(ge.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ge))):(ge.push(de),de=t.inlineExpressions(ge)),ge=void 0),de}function Yt(de){let $=Qe(de.expression,ve,ht);return t.updateComputedPropertyName(de,pn($))}function qt(de){return xe?ue(de,xe):Ie(de)}function hi(de){return!!(D||mc(de)&&ym(de)&32)}function uo(de){if(R.assert(!bf(de)),!su(de)||!hi(de))return Sn(de,be,e);let $=sa(de.name);if(R.assert($,"Undeclared private name for property declaration."),!$.isValid)return de;let Pe=Eo(de);Pe&&Io().push(t.createAssignment(Pe,t.createFunctionExpression(Vr(de.modifiers,yt=>Ta(yt)&&!YI(yt)&&!uae(yt)),de.asteriskToken,Pe,void 0,xl(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 Eo(de){R.assert(Ki(de.name));let $=sa(de.name);if(R.assert($,"Undeclared private name for property declaration."),$.kind==="m")return $.methodName;if($.kind==="a"){if(Lv(de))return $.getterName;if(Py(de))return $.setterName}}function Zn(){let de=Ri(),$=de.classThis??de.classConstructor??xe?.name;return R.checkDefined($)}function jr(de){let $=C_(de),Pe=zy(de),yt=de.name,cn=yt,br=yt;if(Ya(yt)&&!L_(yt.expression)){let Hc=r3(yt);if(Hc)cn=t.updateComputedPropertyName(yt,Qe(yt.expression,ve,ht)),br=t.updateComputedPropertyName(yt,Hc.left);else{let Vs=t.createTempVariable(i);Da(Vs,yt.expression);let yc=Qe(yt.expression,ve,ht),bs=t.createAssignment(Vs,yc);Da(bs,yt.expression),cn=t.updateComputedPropertyName(yt,bs),br=t.updateComputedPropertyName(yt,Vs)}}let mr=zn(de.modifiers,Ge,Ta),Fr=IH(t,de,mr,de.initializer);Rr(Fr,de),dr(Fr,3072),Da(Fr,Pe);let Di=na(de)?Zn():t.createThis(),Cr=Kae(t,de,mr,cn,Di);Rr(Cr,de),ac(Cr,$),Da(Cr,Pe);let Jo=t.createModifiersFromModifierFlags(x_(mr)),bl=Jae(t,de,Jo,br,Di);return Rr(bl,de),dr(bl,3072),Da(bl,Pe),Tw([Fr,Cr,bl],tt,Qc)}function Sr(de){if(hi(de)){let $=sa(de.name);if(R.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&&!na(de)&&J?.data&&J.data.facts&16?t.updatePropertyDeclaration(de,zn(de.modifiers,ve,ol),de.name,void 0,void 0,void 0):(pp(de,ke)&&(de=yp(e,de)),t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Ta),Qe(de.name,ze,oc),void 0,void 0,Qe(de.initializer,ve,ht)))}function on(de){if(N&&!ku(de)){let $=Wr(de.name,!!de.initializer||y);if($&&Io().push(...qae($)),na(de)&&!D){let Pe=Dt(de,t.createThis());if(Pe){let yt=t.createClassStaticBlockDeclaration(t.createBlock([Pe]));return Rr(yt,de),ac(yt,de),ac(Pe,{pos:-1,end:-1}),hE(Pe,void 0),jI(Pe,void 0),yt}}return}return t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Ta),Qe(de.name,ze,oc),void 0,void 0,Qe(de.initializer,ve,ht))}function $e(de){return R.assert(!bf(de),"Decorators should already have been transformed and elided."),su(de)?Sr(de):on(de)}function Ot(){return w===-1||w===3&&!!J?.data&&!!(J.data.facts&16)}function In(de){return ku(de)&&(Ot()||mc(de)&&ym(de)&32)?jr(de):$e(de)}function si(){return!!fe&&mc(fe)&&Pv(fe)&&ku(Pl(fe))}function yi(de){if(si()){let $=Ql(de);$.kind===110&&pe.add($)}}function $i(de,$){return $=Qe($,ve,ht),yi($),Ao(de,$)}function Ao(de,$){switch(ac($,pE($,-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 R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(de,"Unknown private element type")}}function ua(de){if(Ki(de.name)){let $=sa(de.name);if($)return at(Rr($i($,de.expression),de),de)}if(K&&fe&&Ou(de)&&Fe(de.name)&&GP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return tr(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,t.createStringLiteralFromNode(de.name),$);return Rr(cn,de.expression),at(cn,de.expression),cn}}return Sn(de,ve,e)}function Ba(de){if(K&&fe&&Ou(de)&&GP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return tr(de);if($&&Pe){let cn=t.createReflectGetCall(Pe,Qe(de.argumentExpression,ve,ht),$);return Rr(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=ms(de.operand);if(zx(Pe)){let yt;if(yt=sa(Pe.name)){let cn=Qe(Pe.expression,ve,ht);yi(cn);let{readExpression:br,initializeExpression:mr}=ct(cn),Fr=$i(yt,br),Di=Yv(de)||$?void 0:t.createTempVariable(i);return Fr=Y4(t,de,Fr,i,Di),Fr=Tt(yt,mr||br,Fr,64),Rr(Fr,de),at(Fr,de),Di&&(Fr=t.createComma(Fr,Di),at(Fr,de)),Fr}}else if(K&&fe&&Ou(Pe)&&GP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:br}=J.data;if(br&1){let mr=tr(Pe);return Yv(de)?t.updatePrefixUnaryExpression(de,mr):t.updatePostfixUnaryExpression(de,mr)}if(yt&&cn){let mr,Fr;if(kr(Pe)?Fe(Pe.name)&&(Fr=mr=t.createStringLiteralFromNode(Pe.name)):L_(Pe.argumentExpression)?Fr=mr=Pe.argumentExpression:(Fr=t.createTempVariable(i),mr=t.createAssignment(Fr,Qe(Pe.argumentExpression,ve,ht))),mr&&Fr){let Di=t.createReflectGetCall(cn,Fr,yt);at(Di,Pe);let Cr=$?void 0:t.createTempVariable(i);return Di=Y4(t,de,Di,i,Cr),Di=t.createReflectSetCall(cn,mr,Di,yt),Rr(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,Qe(de.initializer,De,vf),Qe(de.condition,ve,ht),Qe(de.incrementor,De,ht),Iu(de.statement,ve,e))}function Be(de){return t.updateExpressionStatement(de,Qe(de.expression,De,ht))}function ct(de){let $=qs(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(zx(de.expression)&&sa(de.expression.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.expression,i,m);return sT(de)?t.updateCallChain(de,t.createPropertyAccessChain(Qe(yt,ve,ht),de.questionDotToken,"call"),void 0,void 0,[Qe(Pe,ve,ht),...zn(de.arguments,ve,ht)]):t.updateCallExpression(de,t.createPropertyAccessExpression(Qe(yt,ve,ht),"call"),void 0,[Qe(Pe,ve,ht),...zn(de.arguments,ve,ht)])}if(K&&fe&&Ou(de.expression)&&GP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionCallCall(Qe(de.expression,ve,ht),J.data.classConstructor,zn(de.arguments,ve,ht));return Rr(Pe,de),at(Pe,de),Pe}return Sn(de,ve,e)}function Rt(de){var $;if(zx(de.tag)&&sa(de.tag.name)){let{thisArg:Pe,target:yt}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(Qe(yt,ve,ht),"bind"),void 0,[Qe(Pe,ve,ht)]),void 0,Qe(de.template,ve,TI))}if(K&&fe&&Ou(de.tag)&&GP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Pe=t.createFunctionBindCall(Qe(de.tag,ve,ht),J.data.classConstructor,[]);return Rr(Pe,de),at(Pe,de),t.updateTaggedTemplateExpression(de,Pe,void 0,Qe(de.template,ve,TI))}return Sn(de,ve,e)}function se(de){if(J&&re.set(Pl(de),J),D){if(zP(de)){let yt=Qe(de.body.statements[0].expression,ve,ht);return Lc(yt,!0)&&yt.left===yt.right?void 0:yt}if(g1(de))return Qe(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 Rr(ms(Pe.expression),de),D_(ms(Pe.expression),4),Rr(Pe,de),at(Pe,de),Pe}}function ke(de){if(ed(de)&&!de.name){let $=V3(de);return gt($,g1)?!1:(D||!!ym(de))&>($,yt=>Il(yt)||su(yt)||N&&Iw(yt))}return!1}function st(de,$){if(Oy(de)){let Pe=ge;ge=void 0,de=t.updateBinaryExpression(de,Qe(de.left,Et,ht),de.operatorToken,Qe(de.right,ve,ht));let yt=gt(ge)?t.inlineExpressions(xL([...ge,de])):de;return ge=Pe,yt}if(Lc(de)){pp(de,ke)&&(de=yp(e,de),R.assertNode(de,Lc));let Pe=Ql(de.left,9);if(zx(Pe)){let yt=sa(Pe.name);if(yt)return at(Rr(Tt(yt,Pe.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&fe&&Ou(de.left)&&GP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:br}=J.data;if(br&1)return t.updateBinaryExpression(de,tr(de.left),de.operatorToken,Qe(de.right,ve,ht));if(yt&&cn){let mr=Xs(de.left)?Qe(de.left.argumentExpression,ve,ht):Fe(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(mr){let Fr=Qe(de.right,ve,ht);if(OP(de.operatorToken.kind)){let Cr=mr;L_(mr)||(Cr=t.createTempVariable(i),mr=t.createAssignment(Cr,mr));let Jo=t.createReflectGetCall(cn,Cr,yt);Rr(Jo,de.left),at(Jo,de.left),Fr=t.createBinaryExpression(Jo,WP(de.operatorToken.kind),Fr),at(Fr,de)}let Di=$?void 0:t.createTempVariable(i);return Di&&(Fr=t.createAssignment(Di,Fr),at(Di,de)),Fr=t.createReflectSetCall(cn,mr,Fr,yt),Rr(Fr,de),at(Fr,de),Di&&(Fr=t.createComma(Fr,Di),at(Fr,de)),Fr}}}}return U9e(de)?_t(de):Sn(de,ve,e)}function G(de,$){let Pe=$?Aw(de.elements,De):Aw(de.elements,ve,De);return t.updateCommaListExpression(de,Pe)}function et(de,$){let Pe=$?De:ve,yt=Qe(de.expression,Pe,ht);return t.updateParenthesizedExpression(de,yt)}function Tt(de,$,Pe,yt){if($=Qe($,ve,ht),Pe=Qe(Pe,ve,ht),yi($),OP(yt)){let{readExpression:cn,initializeExpression:br}=ct($);$=br||cn,Pe=t.createBinaryExpression(Ao(de,cn),WP(yt),Pe)}switch(ac($,pE($,-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 R.fail("Access helpers should not be created for untransformed private elements");default:R.assertNever(de,"Unknown private element type")}}function He(de){return Vr(de.members,tle)}function pt(de){var $;let Pe=0,yt=Pl(de);Ac(yt)&&My(E,yt)&&(Pe|=1),D&&(wK(de)||U3(de))&&(Pe|=2);let cn=!1,br=!1,mr=!1,Fr=!1;for(let Cr of de.members)na(Cr)?((Cr.name&&(Ki(Cr.name)||ku(Cr))&&D||ku(Cr)&&w===-1&&!de.name&&!(($=de.emitNode)!=null&&$.classThis))&&(Pe|=2),(jo(Cr)||Il(Cr))&&(j&&Cr.transformFlags&16384&&(Pe|=8,Pe&1||(Pe|=2)),K&&Cr.transformFlags&134217728&&(Pe&1||(Pe|=6)))):W0(Pl(Cr))||(ku(Cr)?(Fr=!0,mr||(mr=su(Cr))):su(Cr)?(mr=!0,p.getNodeCheckFlags(Cr)&262144&&(Pe|=2)):jo(Cr)&&(cn=!0,br||(br=!!Cr.initializer)));return(A&&cn||S&&br||D&&mr||D&&Fr&&w===-1)&&(Pe|=16),Pe}function Bt(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,Qe(de.expression,ve,ht)),void 0)}return Sn(de,ve,e)}function hn(de,$){var Pe;let yt=xe,cn=ge,br=J;xe=de,ge=void 0,ho();let mr=ym(de)&32;if(D||mr){let Cr=No(de);if(Cr&&Fe(Cr))Hr().data.className=Cr;else if((Pe=de.emitNode)!=null&&Pe.assignedName&&Ca(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Fe(de.emitNode.assignedName.textSourceNode))Hr().data.className=de.emitNode.assignedName.textSourceNode;else if(Yp(de.emitNode.assignedName.text,m)){let Jo=t.createIdentifier(de.emitNode.assignedName.text);Hr().data.className=Jo}}}if(D){let Cr=He(de);gt(Cr)&&(Hr().data.weakSetName=dd("instances",Cr[0].name))}let Fr=pt(de);Fr&&(Ri().facts=Fr),Fr&8&&gi();let Di=$(de,Fr);return Pi(),R.assert(J===br),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 bs=t.createTempVariable(i,!0);Ri().classConstructor=t.cloneNode(bs),cn=t.createAssignment(bs,t.getInternalName(de))}(yt=de.emitNode)!=null&&yt.classThis&&(Ri().classThis=de.emitNode.classThis);let br=p.getNodeCheckFlags(de)&262144,mr=$r(de,32),Fr=$r(de,2048),Di=zn(de.modifiers,Ge,Ta),Cr=zn(de.heritageClauses,Le,Zp),{members:Jo,prologue:bl}=ie(de),Hc=[];if(cn&&Io().unshift(cn),gt(ge)&&Hc.push(t.createExpressionStatement(t.inlineExpressions(ge))),S||D||ym(de)&32){let bs=V3(de);gt(bs)&&It(Hc,bs,t.getInternalName(de))}Hc.length>0&&mr&&Fr&&(Di=zn(Di,bs=>Yk(bs)?void 0:bs,Ta),Hc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let Vs=Ri().classConstructor;br&&Vs&&(Bn(),me[Od(de)]=Vs);let yc=t.updateClassDeclaration(de,Di,de.name,void 0,Cr,Jo);return Hc.unshift(yc),bl&&Hc.unshift(t.createExpressionStatement(bl)),Hc}function U(de){return hn(de,Me)}function Me(de,$){var Pe,yt,cn;let br=!!($&1),mr=V3(de),Fr=p.getNodeCheckFlags(de),Di=Fr&262144,Cr;function Jo(){var Wc;if(D&&((Wc=de.emitNode)!=null&&Wc.classThis))return Ri().classConstructor=de.emitNode.classThis;let im=Fr&32768,_u=t.createTempVariable(im?d:i,!0);return Ri().classConstructor=t.cloneNode(_u),_u}(Pe=de.emitNode)!=null&&Pe.classThis&&(Ri().classThis=de.emitNode.classThis),$&2&&(Cr??(Cr=Jo()));let bl=zn(de.modifiers,Ge,Ta),Hc=zn(de.heritageClauses,Le,Zp),{members:Vs,prologue:yc}=ie(de),bs=t.updateClassExpression(de,bl,de.name,void 0,Hc,Vs),Kc=[];if(yc&&Kc.push(yc),(D||ym(de)&32)&>(mr,Wc=>Il(Wc)||su(Wc)||N&&Iw(Wc))||gt(ge))if(br)R.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),gt(ge)&&Ur(q,mn(ge,t.createExpressionStatement)),gt(mr)&&It(q,mr,((yt=de.emitNode)==null?void 0:yt.classThis)??t.getInternalName(de)),Cr?Kc.push(t.createAssignment(Cr,bs)):D&&((cn=de.emitNode)!=null&&cn.classThis)?Kc.push(t.createAssignment(de.emitNode.classThis,bs)):Kc.push(bs);else{if(Cr??(Cr=Jo()),Di){Bn();let Wc=t.cloneNode(Cr);Wc.emitNode.autoGenerate.flags&=-9,me[Od(de)]=Wc}Kc.push(t.createAssignment(Cr,bs)),Ur(Kc,ge),Ur(Kc,Kt(mr,Cr)),Kc.push(t.cloneNode(Cr))}else Kc.push(bs);return Kc.length>1&&(D_(bs,131072),Kc.forEach(qd)),t.inlineExpressions(Kc)}function Nt(de){if(!D)return Sn(de,ve,e)}function k(de){if(j&&fe&&Il(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 mr of de.members)if(su(mr))if(hi(mr))_l(mr,mr.name,xn);else{let Fr=Hr();HT(Fr,mr.name,{kind:"untransformed"})}if(D&>(He(de))&&H(),Ot()){for(let mr of de.members)if(ku(mr)){let Fr=t.getGeneratedPrivateNameForNode(mr.name,void 0,"_accessor_storage");if(D||$&&mc(mr))_l(mr,Fr,Os);else{let Di=Hr();HT(Di,Fr,{kind:"untransformed"})}}}}let Pe=zn(de.members,be,Qc),yt;gt(Pe,Ml)||(yt=ue(void 0,de));let cn,br;if(!D&>(ge)){let mr=t.createExpressionStatement(t.inlineExpressions(ge));if(mr.transformFlags&134234112){let Di=t.createTempVariable(i),Cr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([mr]));cn=t.createAssignment(Di,Cr),mr=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}let Fr=t.createBlock([mr]);br=t.createClassStaticBlockDeclaration(Fr),ge=void 0}if(yt||br){let mr,Fr=Gr(Pe,zP),Di=Gr(Pe,g1);mr=Tn(mr,Fr),mr=Tn(mr,Di),mr=Tn(mr,yt),mr=Tn(mr,br);let Cr=Fr||Di?Vr(Pe,Jo=>Jo!==Fr&&Jo!==Di):Pe;mr=Ur(mr,Cr),Pe=at(t.createNodeArray(mr),de.members)}return{members:Pe,prologue:cn}}function H(){let{weakSetName:de}=Hr().data;R.assert(de,"weakSetName should be set in private identifier environment"),Io().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ue(de,$){if(de=Qe(de,ve,Ml),!J?.data||!(J.data.facts&16))return de;let Pe=S_($),yt=!!(Pe&&Ql(Pe.expression).kind!==106),cn=xl(de?de.parameters:void 0,ve,e),br=Ne($,de,yt);return br?de?(R.assert(cn),t.updateConstructorDeclaration(de,void 0,cn,br)):qd(Rr(at(t.createConstructorDeclaration(void 0,cn??[],br),de||$),de)):de}function We(de,$,Pe,yt,cn,br,mr){let Fr=yt[cn],Di=$[Fr];if(Ur(de,zn($,ve,Hi,Pe,Fr-Pe)),Pe=Fr+1,WT(Di)){let Cr=[];We(Cr,Di.tryBlock.statements,0,yt,cn+1,br,mr);let Jo=t.createNodeArray(Cr);at(Jo,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,ve,$0),Qe(Di.finallyBlock,ve,Ho)))}else{for(Ur(de,zn($,ve,Hi,Fr,1));Pe<$.length;){let Cr=$[Pe];if(dp(Pl(Cr),mr))Pe++;else break}Ur(de,br)}Ur(de,zn($,ve,Hi,Pe))}function Ne(de,$,Pe){let yt=NK(de,!1,!1),cn=yt;y||(cn=Vr(cn,Vs=>!!Vs.initializer||Ki(Vs.name)||I_(Vs)));let br=He(de),mr=gt(cn)||gt(br);if(!$&&!mr)return nf(void 0,ve,e);l();let Fr=!$&&Pe,Di=0,Cr=[],Jo=[],bl=t.createThis();if(xi(Jo,br,bl),$){let Vs=Vr(yt,bs=>dp(Pl(bs),$)),yc=Vr(cn,bs=>!dp(Pl(bs),$));It(Jo,Vs,bl),It(Jo,yc,bl)}else It(Jo,cn,bl);if($?.body){Di=t.copyPrologue($.body.statements,Cr,!1,ve);let Vs=G3($.body.statements,Di);if(Vs.length)We(Cr,$.body.statements,Di,Vs,0,Jo,$);else{for(;Di<$.body.statements.length;){let yc=$.body.statements[Di];if(dp(Pl(yc),$))Di++;else break}Ur(Cr,Jo),Ur(Cr,zn($.body.statements,ve,Hi,Di))}}else Fr&&Cr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Ur(Cr,Jo);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(na(yt)&&!D)continue;let cn=Dt(yt,Pe);cn&&de.push(cn)}}function Dt(de,$){let Pe=Il(de)?Li(de,se,de):En(de,$);if(!Pe)return;let yt=t.createExpressionStatement(Pe);Rr(yt,de),D_(yt,za(de)&3072),ac(yt,de);let cn=Pl(de);return To(cn)?(Da(yt,cn),Rk(yt)):Da(yt,R_(de)),hE(Pe,void 0),jI(Pe,void 0),I_(cn)&&D_(yt,3072),yt}function Kt(de,$){let Pe=[];for(let yt of de){let cn=Il(yt)?Li(yt,se,yt):Li(yt,()=>En(yt,$),void 0);cn&&(qd(cn),Rr(cn,yt),D_(cn,za(yt)&3072),Da(cn,R_(yt)),ac(cn,yt),Pe.push(cn))}return Pe}function En(de,$){var Pe;let yt=fe,cn=wn(de,$);return cn&&mc(de)&&((Pe=J?.data)!=null&&Pe.facts)&&(Rr(cn,de),D_(cn,4),Da(cn,zy(de.name)),re.set(Pl(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(mc(de)&&(fe=de),Ki(yt)&&hi(de)){let mr=sa(yt);if(mr)return mr.kind==="f"?mr.isStatic?B9e(t,mr.variableName,Qe(de.initializer,ve,ht)):G9e(t,$,Qe(de.initializer,ve,ht),mr.brandCheckIdentifier):void 0;R.fail("Undeclared private name for property declaration.")}if((Ki(yt)||mc(de))&&!de.initializer)return;let cn=Pl(de);if($r(cn,64))return;let br=Qe(de.initializer,ve,ht);if(dp(cn,cn.parent)&&Fe(yt)){let mr=t.cloneNode(yt);br?(Fu(br)&&Kk(br.expression)&&dP(br.expression.left,"___runInitializers")&&n1(br.expression.right)&&mp(br.expression.right.expression)&&(br=br.expression.left),br=t.inlineExpressions([br,mr])):br=mr,dr(yt,3168),Da(mr,cn.name),dr(mr,3072)}else br??(br=t.createVoidZero());if(Pe||Ki(yt)){let mr=VT(t,$,yt,yt);return D_(mr,1024),t.createAssignment(mr,br)}else{let mr=Ya(yt)?yt.expression:Fe(yt)?t.createStringLiteral(Vi(yt.escapedText)):yt,Fr=t.createPropertyDescriptor({value:br,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall($,mr,Fr)}}function Bn(){ee&1||(ee|=1,e.enableSubstitution(80),me=[])}function gi(){ee&2||(ee|=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}=Hr().data;R.assert(yt,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(V9e(t,Pe,yt)))}function tr(de){return kr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),Qe(de.argumentExpression,ve,ht))}function Wr(de,$){if(Ya(de)){let Pe=r3(de),yt=Qe(de.expression,ve,ht),cn=gm(yt),br=L_(cn);if(!(!!Pe||Lc(cn)&&il(cn.left))&&!br&&$){let Fr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?d(Fr):i(Fr),t.createAssignment(Fr,yt)}return br||Fe(cn)?void 0:yt}}function ho(){J={previous:J,data:void 0}}function Pi(){J=J?.previous}function Ri(){return R.assert(J),J.data??(J.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Hr(){return R.assert(J),J.privateEnv??(J.privateEnv=ile({className:void 0,weakSetName:void 0}))}function Io(){return ge??(ge=[])}function xn(de,$,Pe,yt,cn,br,mr){ku(de)?Bs(de,$,Pe,yt,cn,br,mr):jo(de)?Os(de,$,Pe,yt,cn,br,mr):Kl(de)?Zl(de,$,Pe,yt,cn,br,mr):Qp(de)?Po(de,$,Pe,yt,cn,br,mr):hp(de)&&ls(de,$,Pe,yt,cn,br,mr)}function Os(de,$,Pe,yt,cn,br,mr){if(cn){let Fr=R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"),Di=mo($);HT(yt,$,{kind:"f",isStatic:!0,brandCheckIdentifier:Fr,variableName:Di,isValid:br})}else{let Fr=mo($);HT(yt,$,{kind:"f",isStatic:!1,brandCheckIdentifier:Fr,isValid:br}),Io().push(t.createAssignment(Fr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Zl(de,$,Pe,yt,cn,br,mr){let Fr=mo($),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");HT(yt,$,{kind:"m",methodName:Fr,brandCheckIdentifier:Di,isStatic:cn,isValid:br})}function Po(de,$,Pe,yt,cn,br,mr){let Fr=mo($,"_get"),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");mr?.kind==="a"&&mr.isStatic===cn&&!mr.getterName?mr.getterName=Fr:HT(yt,$,{kind:"a",getterName:Fr,setterName:void 0,brandCheckIdentifier:Di,isStatic:cn,isValid:br})}function ls(de,$,Pe,yt,cn,br,mr){let Fr=mo($,"_set"),Di=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");mr?.kind==="a"&&mr.isStatic===cn&&!mr.setterName?mr.setterName=Fr:HT(yt,$,{kind:"a",getterName:void 0,setterName:Fr,brandCheckIdentifier:Di,isStatic:cn,isValid:br})}function Bs(de,$,Pe,yt,cn,br,mr){let Fr=mo($,"_get"),Di=mo($,"_set"),Cr=cn?R.checkDefined(Pe.classThis??Pe.classConstructor,"classConstructor should be set in private identifier environment"):R.checkDefined(yt.data.weakSetName,"weakSetName should be set in private identifier environment");HT(yt,$,{kind:"a",getterName:Fr,setterName:Di,brandCheckIdentifier:Cr,isStatic:cn,isValid:br})}function _l(de,$,Pe){let yt=Ri(),cn=Hr(),br=MK(cn,$),mr=mc(de),Fr=!j9e($)&&br===void 0;Pe(de,$,yt,cn,mr,Fr,br)}function dd(de,$,Pe){let{className:yt}=Hr().data,cn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",br=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(br):i(br),br}function mo(de,$){let Pe=yN(de);return dd(Pe?.substring(1)??de,de,$)}function sa(de){let $=ole(J,de);return $?.kind==="untransformed"?void 0:$}function ud(de){let $=t.getGeneratedNameForNode(de),Pe=sa(de.name);if(!Pe)return Sn(de,ve,e);let yt=de.expression;return(R2(de)||Ou(de)||!rS(de.expression))&&(yt=t.createTempVariable(i,!0),Io().push(t.createBinaryExpression(yt,64,Qe(de.expression,ve,ht)))),t.createAssignmentTargetWrapper($,Tt(Pe,yt,$,64))}function Ss(de){if(La(de)||fu(de))return tn(de);if(zx(de))return ud(de);if(K&&fe&&Ou(de)&&GP(fe)&&J?.data){let{classConstructor:$,superClassReference:Pe,facts:yt}=J.data;if(yt&1)return tr(de);if($&&Pe){let cn=Xs(de)?Qe(de.argumentExpression,ve,ht):Fe(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(cn){let br=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(br,t.createReflectSetCall(Pe,cn,br,$))}}}return Sn(de,ve,e)}function Na(de){if(pp(de,ke)&&(de=yp(e,de)),Lc(de,!0)){let $=Ss(de.left),Pe=Qe(de.right,ve,ht);return t.updateBinaryExpression(de,$,de.operatorToken,Pe)}return Ss(de)}function pl(de){if(Yu(de.expression)){let $=Ss(de.expression);return t.updateSpreadElement(de,$)}return Sn(de,ve,e)}function Nf(de){if(c2(de)){if(qm(de))return pl(de);if(!jc(de))return Na(de)}return Sn(de,ve,e)}function lc(de){let $=Qe(de.name,ve,oc);if(Lc(de.initializer,!0)){let Pe=Na(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}if(Yu(de.initializer)){let Pe=Ss(de.initializer);return t.updatePropertyAssignment(de,$,Pe)}return Sn(de,ve,e)}function Rl(de){return pp(de,ke)&&(de=yp(e,de)),Sn(de,ve,e)}function sl(de){if(Yu(de.expression)){let $=Ss(de.expression);return t.updateSpreadAssignment(de,$)}return Sn(de,ve,e)}function Mo(de){return R.assertNode(de,l2),Vy(de)?sl(de):Zu(de)?Rl(de):hc(de)?lc(de):Sn(de,ve,e)}function tn(de){return fu(de)?t.updateArrayLiteralExpression(de,zn(de.elements,Nf,ht)):t.updateObjectLiteralExpression(de,zn(de.properties,Mo,Pg))}function Gs(de,$,Pe){let yt=Pl($),cn=re.get(yt);if(cn){let br=J,mr=he;J=cn,he=ne,ne=!Il(yt)||!(ym(yt)&32),ce(de,$,Pe),ne=he,he=mr,J=br;return}switch($.kind){case 218:if(zs(yt)||za($)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let br=J,mr=he;J=void 0,he=ne,ne=!1,ce(de,$,Pe),ne=he,he=mr,J=br;return}case 167:{let br=J,mr=ne;J=J?.previous,ne=he,ce(de,$,Pe),ne=mr,J=br;return}}ce(de,$,Pe)}function rd(de,$){return $=B(de,$),de===1?pd($):$}function pd(de){switch(de.kind){case 80:return Ns(de);case 110:return Ep(de)}return de}function Ep(de){if(ee&2&&J?.data&&!pe.has(de)){let{facts:$,classConstructor:Pe,classThis:yt}=J.data,cn=ne?yt??Pe:Pe;if(cn)return at(Rr(t.cloneNode(cn),de),de);if($&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Ns(de){return xc(de)||de}function xc(de){if(ee&1&&p.getNodeCheckFlags(de)&536870912){let $=p.getReferencedValueDeclaration(de);if($){let Pe=me[$.id];if(Pe){let yt=t.cloneNode(Pe);return Da(yt,de),ac(yt,de),yt}}}}}function B9e(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function G9e(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function V9e(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function j9e(e){return!lT(e)&&e.escapedText==="#constructor"}function U9e(e){return Ki(e.left)&&e.operatorToken.kind===103}function H9e(e){return jo(e)&&mc(e)}function GP(e){return Il(e)||H9e(e)}var K9e=bt({"src/compiler/transformers/classFields.ts"(){"use strict";Zo()}});function hle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=rs(o),l=uu(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&&Pie(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=di(ge)?tg(ge):Yo(ge)&&Hf(ge.body)?ge:void 0,re=[];if(J){let pe=S(J,q),xe=pe.length;for(let fe=0;fepe.parent&&t1(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 R.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(Eh.cloneNode(ge),ge),ge.parent);return q.original=void 0,ja(q,Ro(d)),q;case 166:return z(ge)}}function z(ge){return t.createPropertyAccessExpression(ce(ge.left),ge.right)}function ee(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 sYk(Ot)||Ed(Ot)?void 0:Ot,ol),Kn=R_(Je),pn=Le(Je),Yt=l<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),qt=zn(Je.heritageClauses,y,Zp),hi=zn(Je.members,y,Qc),uo=[];({members:hi,decorationStatements:uo}=D(Je,hi));let Li=l>=9&&!!pn&>(hi,Ot=>jo(Ot)&&$r(Ot,256)||Il(Ot));Li&&(hi=at(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(pn,t.createThis()))])),...hi]),hi));let Eo=t.createClassExpression(Dn,ft&&il(ft)?void 0:ft,void 0,qt,hi);Rr(Eo,Je),at(Eo,Kn);let Zn=pn&&!Li?t.createAssignment(pn,Eo):Eo,jr=t.createVariableDeclaration(Yt,void 0,void 0,Zn);Rr(jr,Je);let Sr=t.createVariableDeclarationList([jr],1),on=t.createVariableStatement(void 0,Sr);Rr(on,Je),at(on,Kn),ac(on,Je);let $e=[on];if(Ur($e,uo),he($e,Je),Zt)if(en){let Ot=t.createExportDefault(Yt);$e.push(Ot)}else{let Ot=t.createExternalModuleExport(t.getDeclarationName(Je));$e.push(Ot)}return $e}function K(Je){return t.updateClassExpression(Je,zn(Je.modifiers,m,Ta),Je.name,void 0,zn(Je.heritageClauses,y,Zp),zn(Je.members,y,Qc))}function Y(Je){return t.updateConstructorDeclaration(Je,zn(Je.modifiers,m,Ta),zn(Je.parameters,y,To),Qe(Je.body,y,Ho))}function B(Je,ft){return Je!==ft&&(ac(Je,ft),Da(Je,R_(ft))),Je}function ce(Je){return B(t.updateMethodDeclaration(Je,zn(Je.modifiers,m,Ta),Je.asteriskToken,R.checkDefined(Qe(Je.name,y,oc)),void 0,void 0,zn(Je.parameters,y,To),void 0,Qe(Je.body,y,Ho)),Je)}function z(Je){return B(t.updateGetAccessorDeclaration(Je,zn(Je.modifiers,m,Ta),R.checkDefined(Qe(Je.name,y,oc)),zn(Je.parameters,y,To),void 0,Qe(Je.body,y,Ho)),Je)}function ee(Je){return B(t.updateSetAccessorDeclaration(Je,zn(Je.modifiers,m,Ta),R.checkDefined(Qe(Je.name,y,oc)),zn(Je.parameters,y,To),Qe(Je.body,y,Ho)),Je)}function me(Je){if(!(Je.flags&33554432||$r(Je,128)))return B(t.updatePropertyDeclaration(Je,zn(Je.modifiers,m,Ta),R.checkDefined(Qe(Je.name,y,oc)),void 0,void 0,Qe(Je.initializer,y,ht)),Je)}function ge(Je){let ft=t.updateParameterDeclaration(Je,Hae(t,Je.modifiers),Je.dotDotDotToken,R.checkDefined(Qe(Je.name,y,cT)),void 0,void 0,Qe(Je.initializer,y,ht));return ft!==Je&&(ac(ft,Je),at(ft,R_(Je)),Da(ft,R_(Je)),dr(ft.name,64)),ft}function q(Je){return dP(Je.expression,"___metadata")}function J(Je){if(!Je)return;let{false:ft,true:Zt}=yW(Je.decorators,q),en=[];return Ur(en,mn(ft,Ge)),Ur(en,va(Je.parameters,ve)),Ur(en,mn(Zt,Ge)),en}function re(Je,ft,Zt){Ur(Je,mn(fe(ft,Zt),en=>t.createExpressionStatement(en)))}function pe(Je,ft,Zt){return C2(!0,Je,Zt)&&ft===na(Je)}function xe(Je,ft){return Vr(Je.members,Zt=>pe(Zt,ft,Je))}function fe(Je,ft){let Zt=xe(Je,ft),en;for(let Dn of Zt)en=Tn(en,ne(Je,Dn));return en}function ne(Je,ft){let Zt=j3(ft,Je,!0),en=J(Zt);if(!en)return;let Dn=be(Je,ft),Kn=Ie(ft,!$r(ft,128)),pn=l>0?jo(ft)&&!I_(ft)?t.createVoidZero():t.createNull():void 0,Yt=r().createDecorateHelper(en,Dn,Kn,pn);return dr(Yt,3072),Da(Yt,R_(ft)),Yt}function he(Je,ft){let Zt=Ce(ft);Zt&&Je.push(Rr(t.createExpressionStatement(Zt),ft))}function Ce(Je){let ft=PK(Je),Zt=J(ft);if(!Zt)return;let en=p&&p[Od(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 dr(pn,3072),Da(pn,R_(Je)),pn}function Ge(Je){return R.checkDefined(Qe(Je.expression,y,ht))}function ve(Je,ft){let Zt;if(Je){Zt=[];for(let en of Je){let Dn=r().createParamHelper(Ge(en),ft);at(Dn,en.expression),dr(Dn,3072),Zt.push(Dn)}}return Zt}function Ie(Je,ft){let Zt=Je.name;return Ki(Zt)?t.createIdentifier(""):Ya(Zt)?ft&&!L_(Zt.expression)?t.getGeneratedNameForNode(Zt):Zt.expression:Fe(Zt)?t.createStringLiteral(vr(Zt)):t.cloneNode(Zt)}function De(){p||(e.enableSubstitution(80),p=[])}function Le(Je){if(o.getNodeCheckFlags(Je)&262144){De();let ft=t.createUniqueName(Je.name&&!il(Je.name)?vr(Je.name):"default");return p[Od(Je)]=ft,i(ft),ft}}function Et(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function be(Je,ft){return na(ft)?t.getDeclarationName(Je):Et(Je)}function ze(Je,ft){return ft=d(Je,ft),Je===1?tt(ft):ft}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 ft=o.getReferencedValueDeclaration(Je);if(ft){let Zt=p[ft.id];if(Zt){let en=t.cloneNode(Zt);return Da(en,Je),ac(en,Je),en}}}}}var q9e=bt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Zo()}});function yle(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=rs(e.getCompilerOptions()),d,p,h,m,y,E;return Im(e,S);function S(k){d=void 0,E=!1;let ie=Sn(k,ee,e);return Fg(ie,e.readEmitHelpers()),E&&(VI(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(){R.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;R.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},(Il(k)||jo(k)&&mc(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;R.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),R.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(){R.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(){R.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"?(R.assert(!y),d.depth++):(d={kind:"other",next:d,depth:0,savedPendingExpressions:y},y=void 0,A())}function ce(){R.assert(d?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${d?.kind}' instead.`),d.depth>0?(R.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 ee(k){if(!z(k))return k;switch(k.kind){case 170:return R.fail("Use `modifierVisitor` instead.");case 263:return Ce(k);case 231:return Ge(k);case 176:case 172:case 175:return R.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 $e(k);case 208:return Ot(k);case 277:return Be(k);case 110:return Je(k);case 248:return qt(k);case 244:return hi(k);case 361:return Eo(k,!1);case 217:return ct(k,!1);case 360:return lt(k,!1);case 213:return ft(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 Sr(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 ee(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 ee(k)}}function J(k){switch(k.kind){case 224:case 225:return Li(k,!0);case 226:return uo(k,!0);case 361:return Eo(k,!0);case 217:return ct(k,!0);default:return ee(k)}}function re(k){let ie=k.name&&Fe(k.name)&&!il(k.name)?vr(k.name):k.name&&Ki(k.name)&&!il(k.name)?vr(k.name).slice(1):k.name&&Ca(k.name)&&Yp(k.name.text,99)?k.name.text:di(k)?"class":"member";return Lv(k)&&(ie=`get_${ie}`),Py(k)&&(ie=`set_${ie}`),k.name&&Ki(k.name)&&(ie=`private_${ie}`),na(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,Kt,En;if(Zx(!1,k)){let wn=gt(k.members,Bn=>(su(Bn)||ku(Bn))&&mc(Bn));Dt=t.createUniqueName("_classThis",wn?24:48)}for(let wn of k.members){if(SI(wn)&&C2(!1,wn,k))if(mc(wn)){if(!ue){ue=t.createUniqueName("_staticExtraInitializers",48);let Bn=r().createRunInitializersHelper(Dt??t.createThis(),ue);Da(Bn,k.name??wg(k)),Kt??(Kt=[]),Kt.push(Bn)}}else{if(!H){H=t.createUniqueName("_instanceExtraInitializers",48);let Bn=r().createRunInitializersHelper(t.createThis(),H);Da(Bn,k.name??wg(k)),En??(En=[]),En.push(Bn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Il(wn)?g1(wn)||(We=!0):jo(wn)&&(mc(wn)?We||(We=!!wn.initializer||bf(wn)):Ne||(Ne=!QV(wn))),(su(wn)||ku(wn))&&mc(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:Kt,pendingInstanceInitializers:En}}function ne(k){i(),!OK(k)&&My(!1,k)&&(k=H3(e,k,t.createStringLiteral("")));let ie=t.getLocalName(k,!1,!1,!0),H=fe(k),ue=[],We,Ne,It,Dt,Kt=!1,En=st(PK(k));En&&(H.classDecoratorsName=t.createUniqueName("_classDecorators",48),H.classDescriptorName=t.createUniqueName("_classDescriptor",48),H.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),R.assertIsDefined(H.classThis),ue.push(xe(H.classDecoratorsName,t.createArrayLiteralExpression(En)),xe(H.classDescriptorName),xe(H.classExtraInitializersName,t.createArrayLiteralExpression()),xe(H.classThis)),H.hasStaticPrivateClassElements&&(Kt=!0,E=!0));let wn=X2(k.heritageClauses,96),Bn=wn&&Yc(wn.types),gi=Bn&&Qe(Bn.expression,ee,ht);if(gi){H.classSuper=t.createUniqueName("_classSuper",48);let Hr=Ql(gi),Io=ed(Hr)&&!Hr.name||ks(Hr)&&!Hr.name||zs(Hr)?t.createComma(t.createNumericLiteral(0),gi):gi;ue.push(xe(H.classSuper,Io));let xn=t.updateExpressionWithTypeArguments(Bn,H.classSuper,void 0),Os=t.updateHeritageClause(wn,[xn]);Dt=t.createNodeArray([Os])}let xi=H.classThis??t.createThis();N(H),We=Tn(We,U(H.metadataReference,H.classSuper));let tr=k.members;if(tr=zn(tr,Hr=>Ml(Hr)?Hr:q(Hr),Qc),tr=zn(tr,Hr=>Ml(Hr)?q(Hr):Hr,Qc),y){let Hr;for(let Io of y){Io=Qe(Io,function Os(Zl){if(!(Zl.transformFlags&16384))return Zl;switch(Zl.kind){case 110:return Hr||(Hr=t.createUniqueName("_outerThis",16),ue.unshift(xe(Hr,t.createThis()))),Hr;default:return Sn(Zl,Os,e)}},ht);let xn=t.createExpressionStatement(Io);We=Tn(We,xn)}y=void 0}if(D(),gt(H.pendingInstanceInitializers)&&!tg(k)){let Hr=ve(k,H);if(Hr){let Io=S_(k),xn=!!(Io&&Ql(Io.expression).kind!==106),Os=[];if(xn){let Po=t.createSpreadElement(t.createIdentifier("arguments")),ls=t.createCallExpression(t.createSuper(),void 0,[Po]);Os.push(t.createExpressionStatement(ls))}Ur(Os,Hr);let Zl=t.createBlock(Os,!0);It=t.createConstructorDeclaration(void 0,[],Zl)}}if(H.staticMethodExtraInitializersName&&ue.push(xe(H.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),H.instanceMethodExtraInitializersName&&ue.push(xe(H.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),H.memberInfos&&Gc(H.memberInfos,(Hr,Io)=>{na(Io)&&(ue.push(xe(Hr.memberDecoratorsName)),Hr.memberInitializersName&&ue.push(xe(Hr.memberInitializersName,t.createArrayLiteralExpression())),Hr.memberExtraInitializersName&&ue.push(xe(Hr.memberExtraInitializersName,t.createArrayLiteralExpression())),Hr.memberDescriptorName&&ue.push(xe(Hr.memberDescriptorName)))}),H.memberInfos&&Gc(H.memberInfos,(Hr,Io)=>{na(Io)||(ue.push(xe(Hr.memberDecoratorsName)),Hr.memberInitializersName&&ue.push(xe(Hr.memberInitializersName,t.createArrayLiteralExpression())),Hr.memberExtraInitializersName&&ue.push(xe(Hr.memberExtraInitializersName,t.createArrayLiteralExpression())),Hr.memberDescriptorName&&ue.push(xe(Hr.memberDescriptorName)))}),We=Ur(We,H.staticNonFieldDecorationStatements),We=Ur(We,H.nonStaticNonFieldDecorationStatements),We=Ur(We,H.staticFieldDecorationStatements),We=Ur(We,H.nonStaticFieldDecorationStatements),H.classDescriptorName&&H.classDecoratorsName&&H.classExtraInitializersName&&H.classThis){We??(We=[]);let Hr=t.createPropertyAssignment("value",xi),Io=t.createObjectLiteralExpression([Hr]),xn=t.createAssignment(H.classDescriptorName,Io),Os=t.createPropertyAccessExpression(xi,"name"),Zl=r().createESDecorateHelper(t.createNull(),xn,H.classDecoratorsName,{kind:"class",name:Os,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Po=t.createExpressionStatement(Zl);Da(Po,wg(k)),We.push(Po);let ls=t.createPropertyAccessExpression(H.classDescriptorName,"value"),Bs=t.createAssignment(H.classThis,ls),_l=t.createAssignment(ie,Bs);We.push(t.createExpressionStatement(_l))}if(We.push(Me(xi,H.metadataReference)),gt(H.pendingStaticInitializers)){for(let Hr of H.pendingStaticInitializers){let Io=t.createExpressionStatement(Hr);Da(Io,zy(Hr)),Ne=Tn(Ne,Io)}H.pendingStaticInitializers=void 0}if(H.classExtraInitializersName){let Hr=r().createRunInitializersHelper(xi,H.classExtraInitializersName),Io=t.createExpressionStatement(Hr);Da(Io,k.name??wg(k)),Ne=Tn(Ne,Io)}We&&Ne&&!H.hasStaticInitializers&&(Ur(We,Ne),Ne=void 0);let Wr=We&&t.createClassStaticBlockDeclaration(t.createBlock(We,!0));Wr&&Kt&&Dk(Wr,32);let ho=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));if(Wr||It||ho){let Hr=[],Io=tr.findIndex(g1);Wr?(Ur(Hr,tr,0,Io+1),Hr.push(Wr),Ur(Hr,tr,Io+1)):Ur(Hr,tr),It&&Hr.push(It),ho&&Hr.push(ho),tr=at(t.createNodeArray(Hr),tr)}let Pi=o(),Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,Dt,tr),H.classThis&&(Ri=dle(t,Ri,H.classThis));let Hr=t.createVariableDeclaration(ie,void 0,void 0,Ri),Io=t.createVariableDeclarationList([Hr]),xn=H.classThis?t.createAssignment(ie,H.classThis):ie;ue.push(t.createVariableStatement(void 0,Io),t.createReturnStatement(xn))}else Ri=t.createClassExpression(void 0,k.name,void 0,Dt,tr),ue.push(t.createReturnStatement(Ri));if(Kt){VI(Ri,32);for(let Hr of Ri.members)(su(Hr)||ku(Hr))&&mc(Hr)&&VI(Hr,32)}return Rr(Ri,k),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,Pi))}function he(k){return My(!1,k)||EN(!1,k)}function Ce(k){if(he(k)){let ie=[],H=Pl(k,di)??k,ue=H.name?t.createStringLiteralFromNode(H.name):t.createStringLiteral("default"),We=$r(k,32),Ne=$r(k,2048);if(k.name||(k=H3(e,k,ue)),We&&Ne){let It=ne(k);if(k.name){let Dt=t.createVariableDeclaration(t.getLocalName(k),void 0,void 0,It);Rr(Dt,k);let Kt=t.createVariableDeclarationList([Dt],1),En=t.createVariableStatement(void 0,Kt);ie.push(En);let wn=t.createExportDefault(t.getDeclarationName(k));Rr(wn,k),ac(wn,C_(k)),Da(wn,wg(k)),ie.push(wn)}else{let Dt=t.createExportDefault(It);Rr(Dt,k),ac(Dt,C_(k)),Da(Dt,wg(k)),ie.push(Dt)}}else{R.assertIsDefined(k.name,"A class declaration that is not a default export must have a name.");let It=ne(k),Dt=We?xi=>XI(xi)?void 0:ge(xi):ge,Kt=zn(k.modifiers,Dt,Ta),En=t.getLocalName(k,!1,!0),wn=t.createVariableDeclaration(En,void 0,void 0,It);Rr(wn,k);let Bn=t.createVariableDeclarationList([wn],1),gi=t.createVariableStatement(Kt,Bn);if(Rr(gi,k),ac(gi,C_(k)),ie.push(gi),We){let xi=t.createExternalModuleExport(En);Rr(xi,k),ie.push(xi)}}return ih(ie)}else{let ie=zn(k.modifiers,ge,Ta),H=zn(k.heritageClauses,ee,Zp);N(void 0);let ue=zn(k.members,q,Qc);return D(),t.updateClassDeclaration(k,ie,k.name,void 0,H,ue)}}function Ge(k){if(he(k)){let ie=ne(k);return Rr(ie,k),ie}else{let ie=zn(k.modifiers,ge,Ta),H=zn(k.heritageClauses,ee,Zp);N(void 0);let ue=zn(k.members,q,Qc);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 Ie(k,ie,H,ue,We,Ne){let It=ue[We],Dt=ie[It];if(Ur(k,zn(ie,ee,Hi,H,It-H)),WT(Dt)){let Kt=[];Ie(Kt,Dt.tryBlock.statements,0,ue,We+1,Ne);let En=t.createNodeArray(Kt);at(En,Dt.tryBlock.statements),k.push(t.updateTryStatement(Dt,t.updateBlock(Dt.tryBlock,Kt),Qe(Dt.catchClause,ee,$0),Qe(Dt.finallyBlock,ee,Ho)))}else Ur(k,zn(ie,ee,Hi,It,1)),Ur(k,Ne);Ur(k,zn(ie,ee,Hi,It+1))}function De(k){w(k);let ie=zn(k.modifiers,ge,Ta),H=zn(k.parameters,ee,To),ue;if(k.body&&p){let We=ve(p.class,p);if(We){let Ne=[],It=t.copyPrologue(k.body.statements,Ne,!1,ee),Dt=G3(k.body.statements,It);Dt.length>0?Ie(Ne,k.body.statements,It,Dt,0,We):(Ur(Ne,We),Ur(Ne,zn(k.body.statements,ee,Hi))),ue=t.createBlock(Ne,!0),Rr(ue,k.body),at(ue,k.body)}}return ue??(ue=Qe(k.body,ee,Ho)),j(),t.updateConstructorDeclaration(k,ie,H,ue)}function Le(k,ie){return k!==ie&&(ac(k,ie),Da(k,wg(ie))),k}function Et(k,ie,H){let ue,We,Ne,It,Dt,Kt;if(!ie){let Bn=zn(k.modifiers,ge,Ta);return K(),We=jr(k.name),Y(),{modifiers:Bn,referencedName:ue,name:We,initializersName:Ne,descriptorName:Kt,thisArg:Dt}}let En=st(j3(k,ie.class,!1)),wn=zn(k.modifiers,ge,Ta);if(En){let Bn=pe(k,"decorators"),gi=t.createArrayLiteralExpression(En),xi=t.createAssignment(Bn,gi),tr={memberDecoratorsName:Bn};ie.memberInfos??(ie.memberInfos=new Map),ie.memberInfos.set(k,tr),y??(y=[]),y.push(xi);let Wr=SI(k)||ku(k)?na(k)?ie.staticNonFieldDecorationStatements??(ie.staticNonFieldDecorationStatements=[]):ie.nonStaticNonFieldDecorationStatements??(ie.nonStaticNonFieldDecorationStatements=[]):jo(k)&&!ku(k)?na(k)?ie.staticFieldDecorationStatements??(ie.staticFieldDecorationStatements=[]):ie.nonStaticFieldDecorationStatements??(ie.nonStaticFieldDecorationStatements=[]):R.fail(),ho=Qp(k)?"getter":hp(k)?"setter":Kl(k)?"method":ku(k)?"accessor":jo(k)?"field":R.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 Hr=k.name.expression;T_(Hr)&&!Fe(Hr)?Pi={computed:!0,name:t.createStringLiteralFromNode(Hr)}:(K(),{referencedName:ue,name:We}=Zn(k.name),Pi={computed:!0,name:ue},Y())}let Ri={kind:ho,name:Pi,static:na(k),private:Ki(k.name),access:{get:jo(k)||Qp(k)||Kl(k),set:jo(k)||hp(k)},metadata:ie.metadataReference};if(SI(k)){let Hr=na(k)?ie.staticMethodExtraInitializersName:ie.instanceMethodExtraInitializersName;R.assertIsDefined(Hr);let Io;su(k)&&H&&(Io=H(k,zn(wn,Zl=>ri(Zl,uP),Ta)),tr.memberDescriptorName=Kt=pe(k,"descriptor"),Io=t.createAssignment(Kt,Io));let xn=r().createESDecorateHelper(t.createThis(),Io??t.createNull(),Bn,Ri,t.createNull(),Hr),Os=t.createExpressionStatement(xn);Da(Os,wg(k)),Wr.push(Os)}else if(jo(k)){Ne=tr.memberInitializersName??(tr.memberInitializersName=pe(k,"initializers")),It=tr.memberExtraInitializersName??(tr.memberExtraInitializersName=pe(k,"extraInitializers")),na(k)&&(Dt=ie.classThis);let Hr;su(k)&&I_(k)&&H&&(Hr=H(k,void 0),tr.memberDescriptorName=Kt=pe(k,"descriptor"),Hr=t.createAssignment(Kt,Hr));let Io=r().createESDecorateHelper(ku(k)?t.createThis():t.createNull(),Hr??t.createNull(),Bn,Ri,Ne,It),xn=t.createExpressionStatement(Io);Da(xn,wg(k)),Wr.push(xn)}}return We===void 0&&(K(),We=jr(k.name),Y()),!gt(wn)&&(Kl(k)||jo(k))&&dr(We,1024),{modifiers:wn,referencedName:ue,name:We,initializersName:Ne,extraInitializersName:It,descriptorName:Kt,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,ee,To),Ne=Qe(k.body,ee,Ho);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,ee,To),Ne=Qe(k.body,ee,Ho);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,pt);if(ue)return j(),Le(un(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),Le(t.updateSetAccessorDeclaration(k,ie,H,We,Ne),k)}}function Wt(k){w(k);let ie;if(g1(k))ie=Sn(k,ee,e);else if(zP(k)){let H=h;h=void 0,ie=Sn(k,ee,e),h=H}else if(k=Sn(k,ee,e),ie=k,p&&(p.hasStaticInitializers=!0,gt(p.pendingStaticInitializers))){let H=[];for(let Ne of p.pendingStaticInitializers){let It=t.createExpressionStatement(Ne);Da(It,zy(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,Yt(k.initializer))),w(k),R.assert(!QV(k),"Not yet implemented.");let{modifiers:ie,name:H,initializersName:ue,extraInitializersName:We,descriptorName:Ne,thisArg:It}=Et(k,p,I_(k)?Bt:void 0);i();let Dt=Qe(k.initializer,ee,ht);ue&&(Dt=r().createRunInitializersHelper(It??t.createThis(),ue,Dt??t.createVoidZero())),na(k)&&p&&Dt&&(p.hasStaticInitializers=!0);let Kt=o();if(gt(Kt)&&(Dt=t.createImmediatelyInvokedArrowFunction([...Kt,t.createReturnStatement(Dt)])),p&&(na(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=zy(k),Bn=k.name,gi=Bn,xi=Bn;if(Ya(Bn)&&!L_(Bn.expression)){let Ri=r3(Bn);if(Ri)gi=t.updateComputedPropertyName(Bn,Qe(Bn.expression,ee,ht)),xi=t.updateComputedPropertyName(Bn,Ri.left);else{let Hr=t.createTempVariable(s);Da(Hr,Bn.expression);let Io=Qe(Bn.expression,ee,ht),xn=t.createAssignment(Hr,Io);Da(xn,Bn.expression),gi=t.updateComputedPropertyName(Bn,xn),xi=t.updateComputedPropertyName(Bn,Hr)}}let tr=zn(ie,Ri=>Ri.kind!==129?Ri:void 0,Ta),Wr=IH(t,k,tr,Dt);Rr(Wr,k),dr(Wr,3072),Da(Wr,wn),Da(Wr.name,k.name);let ho=dn(tr,gi,Ne);Rr(ho,k),ac(ho,En),Da(ho,wn);let Pi=un(tr,xi,Ne);return Rr(Pi,k),dr(Pi,3072),Da(Pi,wn),[Wr,ho,Pi]}return Le(t.updatePropertyDeclaration(k,ie,H,void 0,void 0,Dt),k)}function Je(k){return h??k}function ft(k){if(Ou(k.expression)&&h){let ie=Qe(k.expression,ee,ht),H=zn(k.arguments,ee,ht),ue=t.createFunctionCallCall(ie,h,H);return Rr(ue,k),at(ue,k),ue}return Sn(k,ee,e)}function Zt(k){if(Ou(k.tag)&&h){let ie=Qe(k.tag,ee,ht),H=t.createFunctionBindCall(ie,h,[]);Rr(H,k),at(H,k);let ue=Qe(k.template,ee,TI);return t.updateTaggedTemplateExpression(k,H,void 0,ue)}return Sn(k,ee,e)}function en(k){if(Ou(k)&&Fe(k.name)&&h&&m){let ie=t.createStringLiteralFromNode(k.name),H=t.createReflectGetCall(m,ie,h);return Rr(H,k.expression),at(H,k.expression),H}return Sn(k,ee,e)}function Dn(k){if(Ou(k)&&h&&m){let ie=Qe(k.argumentExpression,ee,ht),H=t.createReflectGetCall(m,ie,h);return Rr(H,k.expression),at(H,k.expression),H}return Sn(k,ee,e)}function Kn(k){pp(k,pn)&&(k=yp(e,k,Yt(k.initializer)));let ie=t.updateParameterDeclaration(k,void 0,k.dotDotDotToken,Qe(k.name,ee,cT),void 0,void 0,Qe(k.initializer,ee,ht));return ie!==k&&(ac(ie,k),at(ie,R_(k)),Da(ie,R_(k)),dr(ie.name,64)),ie}function pn(k){return ed(k)&&!k.name&&he(k)}function Yt(k){let ie=Ql(k);return ed(ie)&&!ie.name&&!My(!1,ie)}function qt(k){return t.updateForStatement(k,Qe(k.initializer,J,vf),Qe(k.condition,ee,ht),Qe(k.incrementor,J,ht),Iu(k.statement,ee,e))}function hi(k){return Sn(k,J,e)}function uo(k,ie){if(Oy(k)){let H=kn(k.left),ue=Qe(k.right,ee,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}if(Lc(k)){if(pp(k,pn))return k=yp(e,k,Yt(k.right)),Sn(k,ee,e);if(Ou(k.left)&&h&&m){let H=Xs(k.left)?Qe(k.left.argumentExpression,ee,ht):Fe(k.left.name)?t.createStringLiteralFromNode(k.left.name):void 0;if(H){let ue=Qe(k.right,ee,ht);if(OP(k.operatorToken.kind)){let Ne=H;L_(H)||(Ne=t.createTempVariable(s),H=t.createAssignment(Ne,H));let It=t.createReflectGetCall(m,Ne,h);Rr(It,k.left),at(It,k.left),ue=t.createBinaryExpression(It,WP(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),Rr(ue,k),at(ue,k),We&&(ue=t.createComma(ue,We),at(ue,k)),ue}}}if(k.operatorToken.kind===28){let H=Qe(k.left,J,ht),ue=Qe(k.right,ie?J:ee,ht);return t.updateBinaryExpression(k,H,k.operatorToken,ue)}return Sn(k,ee,e)}function Li(k,ie){if(k.operator===46||k.operator===47){let H=ms(k.operand);if(Ou(H)&&h&&m){let ue=Xs(H)?Qe(H.argumentExpression,ee,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);Rr(Ne,k),at(Ne,k);let It=ie?void 0:t.createTempVariable(s);return Ne=Y4(t,k,Ne,s,It),Ne=t.createReflectSetCall(m,ue,Ne,h),Rr(Ne,k),at(Ne,k),It&&(Ne=t.createComma(Ne,It),at(Ne,k)),Ne}}}return Sn(k,ee,e)}function Eo(k,ie){let H=ie?Aw(k.elements,J):Aw(k.elements,ee,J);return t.updateCommaListExpression(k,H)}function Zn(k){if(T_(k)||Ki(k)){let Ne=t.createStringLiteralFromNode(k),It=Qe(k,ee,oc);return{referencedName:Ne,name:It}}if(T_(k.expression)&&!Fe(k.expression)){let Ne=t.createStringLiteralFromNode(k.expression),It=Qe(k,ee,oc);return{referencedName:Ne,name:It}}let ie=t.getGeneratedNameForNode(k);s(ie);let H=r().createPropKeyHelper(Qe(k.expression,ee,ht)),ue=t.createAssignment(ie,H),We=t.updateComputedPropertyName(k,se(ue));return{referencedName:ie,name:We}}function jr(k){return Ya(k)?Sr(k):Qe(k,ee,oc)}function Sr(k){let ie=Qe(k.expression,ee,ht);return L_(ie)||(ie=se(ie)),t.updateComputedPropertyName(k,ie)}function on(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function $e(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function Ot(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function In(k){if(La(k)||fu(k))return kn(k);if(Ou(k)&&h&&m){let ie=Xs(k)?Qe(k.argumentExpression,ee,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 Rr(ue,k),at(ue,k),ue}}return Sn(k,ee,e)}function si(k){if(Lc(k,!0)){pp(k,pn)&&(k=yp(e,k,Yt(k.right)));let ie=In(k.left),H=Qe(k.right,ee,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,ee,e)}function $i(k){return R.assertNode(k,c2),qm(k)?yi(k):jc(k)?Sn(k,ee,e):si(k)}function Ao(k){let ie=Qe(k.name,ee,oc);if(Lc(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,ee,e)}function ua(k){return pp(k,pn)&&(k=yp(e,k,Yt(k.objectAssignmentInitializer))),Sn(k,ee,e)}function Ba(k){if(Yu(k.expression)){let ie=In(k.expression);return t.updateSpreadAssignment(k,ie)}return Sn(k,ee,e)}function vn(k){return R.assertNode(k,l2),Vy(k)?Ba(k):Zu(k)?ua(k):hc(k)?Ao(k):Sn(k,ee,e)}function kn(k){if(fu(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,Yt(k.expression))),Sn(k,ee,e)}function ct(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updateParenthesizedExpression(k,ue)}function lt(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updatePartiallyEmittedExpression(k,ue)}function Rt(k,ie){return gt(k)&&(ie?Fu(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 se(k){let ie=Rt(y,k);return R.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 Ur(ie,mn(k.decorators,G)),ie}function G(k){let ie=Qe(k.expression,ee,ht);dr(ie,3072);let H=Ql(ie);if(Ls(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([]));Rr(Dt,k),Da(Dt,wg(k)),dr(Dt,3072);let Kt=We==="get"||We==="set"?We:void 0,En=t.createStringLiteralFromNode(ie,void 0),wn=r().createSetFunctionNameHelper(Dt,En,Kt),Bn=t.createPropertyAssignment(t.createIdentifier(We),wn);return Rr(Bn,k),Da(Bn,wg(k)),dr(Bn,3072),Bn}function Tt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,k.asteriskToken,"value",zn(k.parameters,ee,To),Qe(k.body,ee,Ho))])}function He(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"get",[],Qe(k.body,ee,Ho))])}function pt(k,ie){return t.createObjectLiteralExpression([et(k,k.name,ie,void 0,"set",zn(k.parameters,ee,To),Qe(k.body,ee,Ho))])}function Bt(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=>YI(ue)?ue:void 0,Ta),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=>YI(ue)?ue:void 0,Ta),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=>YI(ue)?ue:void 0,Ta),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 dr(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 X9e=bt({"src/compiler/transformers/esDecorators.ts"(){"use strict";Zo()}});function vle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=rs(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($e){if($e.isDeclarationFile)return $e;Y(1,!1),Y(2,!$V($e,d));let Ot=Sn($e,q,e);return Fg(Ot,e.readEmitHelpers()),Ot}function Y($e,Ot){D=Ot?D|$e:D&~$e}function B($e){return(D&$e)!==0}function ce(){return!B(1)}function z(){return B(2)}function ee($e,Ot,In){let si=$e&~D;if(si){Y(si,!0);let yi=Ot(In);return Y(si,!1),yi}return Ot(In)}function me($e){return Sn($e,q,e)}function ge($e){switch($e.kind){case 218:case 262:case 174:case 177:case 178:case 176:return $e;case 169:case 208:case 260:break;case 80:if(A&&l.isArgumentsLocalBinding($e))return A;break}return Sn($e,ge,e)}function q($e){if(!($e.transformFlags&256))return A?ge($e):$e;switch($e.kind){case 134:return;case 223:return he($e);case 174:return ee(3,Ge,$e);case 262:return ee(3,De,$e);case 218:return ee(3,Le,$e);case 219:return ee(1,Et,$e);case 211:return E&&kr($e)&&$e.expression.kind===108&&E.add($e.name.escapedText),Sn($e,q,e);case 212:return E&&$e.expression.kind===108&&(S=!0),Sn($e,q,e);case 177:return ee(3,ve,$e);case 178:return ee(3,Ie,$e);case 176:return ee(3,Ce,$e);case 263:case 231:return ee(3,me,$e);default:return Sn($e,q,e)}}function J($e){if(vie($e))switch($e.kind){case 243:return pe($e);case 248:return ne($e);case 249:return xe($e);case 250:return fe($e);case 299:return re($e);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Sn($e,J,e);default:return R.assertNever($e,"Unhandled node.")}return q($e)}function re($e){let Ot=new Set;be($e.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($e,J,e);return y=si,yi}else return Sn($e,J,e)}function pe($e){if(ze($e.declarationList)){let Ot=tt($e.declarationList,!1);return Ot?t.createExpressionStatement(Ot):void 0}return Sn($e,q,e)}function xe($e){return t.updateForInStatement($e,ze($e.initializer)?tt($e.initializer,!0):R.checkDefined(Qe($e.initializer,q,vf)),R.checkDefined(Qe($e.expression,q,ht)),Iu($e.statement,J,e))}function fe($e){return t.updateForOfStatement($e,Qe($e.awaitModifier,q,ZU),ze($e.initializer)?tt($e.initializer,!0):R.checkDefined(Qe($e.initializer,q,vf)),R.checkDefined(Qe($e.expression,q,ht)),Iu($e.statement,J,e))}function ne($e){let Ot=$e.initializer;return t.updateForStatement($e,ze(Ot)?tt(Ot,!1):Qe($e.initializer,q,vf),Qe($e.condition,q,ht),Qe($e.incrementor,q,ht),Iu($e.statement,J,e))}function he($e){return ce()?Sn($e,q,e):Rr(at(t.createYieldExpression(void 0,Qe($e.expression,q,ht)),$e),$e)}function Ce($e){let Ot=A;A=void 0;let In=t.updateConstructorDeclaration($e,zn($e.modifiers,q,Ta),xl($e.parameters,q,e),Zt($e));return A=Ot,In}function Ge($e){let Ot,In=Vc($e),si=A;A=void 0;let yi=t.updateMethodDeclaration($e,zn($e.modifiers,q,ol),$e.asteriskToken,$e.name,void 0,void 0,Ot=In&2?Dn($e):xl($e.parameters,q,e),void 0,In&2?Kn($e,Ot):Zt($e));return A=si,yi}function ve($e){let Ot=A;A=void 0;let In=t.updateGetAccessorDeclaration($e,zn($e.modifiers,q,ol),$e.name,xl($e.parameters,q,e),void 0,Zt($e));return A=Ot,In}function Ie($e){let Ot=A;A=void 0;let In=t.updateSetAccessorDeclaration($e,zn($e.modifiers,q,ol),$e.name,xl($e.parameters,q,e),Zt($e));return A=Ot,In}function De($e){let Ot,In=A;A=void 0;let si=Vc($e),yi=t.updateFunctionDeclaration($e,zn($e.modifiers,q,ol),$e.asteriskToken,$e.name,void 0,Ot=si&2?Dn($e):xl($e.parameters,q,e),void 0,si&2?Kn($e,Ot):nf($e.body,q,e));return A=In,yi}function Le($e){let Ot,In=A;A=void 0;let si=Vc($e),yi=t.updateFunctionExpression($e,zn($e.modifiers,q,Ta),$e.asteriskToken,$e.name,void 0,Ot=si&2?Dn($e):xl($e.parameters,q,e),void 0,si&2?Kn($e,Ot):nf($e.body,q,e));return A=In,yi}function Et($e){let Ot,In=Vc($e);return t.updateArrowFunction($e,zn($e.modifiers,q,Ta),void 0,Ot=In&2?Dn($e):xl($e.parameters,q,e),void 0,$e.equalsGreaterThanToken,In&2?Kn($e,Ot):nf($e.body,q,e))}function be({name:$e},Ot){if(Fe($e))Ot.add($e.escapedText);else for(let In of $e.elements)jc(In)||be(In,Ot)}function ze($e){return!!$e&&Uc($e)&&!($e.flags&7)&&$e.declarations.some(ft)}function tt($e,Ot){Wt($e);let In=GN($e);return In.length===0?Ot?Qe(t.converters.convertToAssignmentElementTarget($e.declarations[0].name),q,ht):void 0:t.inlineExpressions(mn(In,Je))}function Wt($e){gn($e.declarations,_t)}function _t({name:$e}){if(Fe($e))s($e);else for(let Ot of $e.elements)jc(Ot)||_t(Ot)}function Je($e){let Ot=Da(t.createAssignment(t.converters.convertToAssignmentElementTarget($e.name),$e.initializer),$e);return R.checkDefined(Qe(Ot,q,ht))}function ft({name:$e}){if(Fe($e))return y.has($e.escapedText);for(let Ot of $e.elements)if(!jc(Ot)&&ft(Ot))return!0;return!1}function Zt($e){R.assertIsDefined($e.body);let Ot=E,In=S;E=new Set,S=!1;let si=nf($e.body,q,e),yi=Pl($e,Fs);if(p>=2&&l.getNodeCheckFlags($e)&384&&(Vc(yi)&3)!==3){if(qt(),E.size){let Ao=K3(t,l,$e,E);N[is(Ao)]=!0;let ua=si.statements.slice();Xh(ua,[Ao]),si=t.updateBlock(si,ua)}S&&(l.getNodeCheckFlags($e)&256?UI(si,Lk):l.getNodeCheckFlags($e)&128&&UI(si,Mk))}return E=Ot,S=In,si}function en(){R.assert(A);let $e=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Ot=t.createVariableStatement(void 0,[$e]);return qd(Ot),D_(Ot,2097152),Ot}function Dn($e){if(xw($e.parameters))return xl($e.parameters,q,e);let Ot=[];for(let si of $e.parameters){if(si.initializer||si.dotDotDotToken){if($e.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,$e.parameters),In}function Kn($e,Ot){let In=xw($e.parameters)?void 0:xl($e.parameters,q,e);i();let yi=Pl($e,Yo).type,$i=p<2?Yt(yi):void 0,Ao=$e.kind===219,ua=A,vn=(l.getNodeCheckFlags($e)&512)!==0&&!A;vn&&(A=t.createUniqueName("arguments"));let kn;if(In)if(Ao){let st=[];R.assert(Ot.length<=$e.parameters.length);for(let G=0;G<$e.parameters.length;G++){R.assert(G=2&&l.getNodeCheckFlags($e)&384;if(G&&(qt(),E.size)){let Tt=K3(t,l,$e,E);N[is(Tt)]=!0,Xh(st,[Tt])}vn&&Xh(st,[en()]);let et=t.createBlock(st,!0);at(et,$e.body),G&&S&&(l.getNodeCheckFlags($e)&256?UI(et,Lk):l.getNodeCheckFlags($e)&128&&UI(et,Mk)),ke=et}return y=Be,Ao||(E=ct,S=lt,A=ua),ke}function pn($e,Ot){return Ho($e)?t.updateBlock($e,zn($e.statements,J,Hi,Ot)):t.converters.convertToFunctionBlock(R.checkDefined(Qe($e,J,mF)))}function Yt($e){let Ot=$e&&D2($e);if(Ot&&Xu(Ot)){let In=l.getTypeReferenceSerializationKind(Ot);if(In===1||In===0)return Ot}}function qt(){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($e,Ot,In){if(h&1&&Sr(Ot)){let si=l.getNodeCheckFlags(Ot)&384;if(si!==m){let yi=m;m=si,w($e,Ot,In),m=yi;return}}else if(h&&N[is(Ot)]){let si=m;m=0,w($e,Ot,In),m=si;return}w($e,Ot,In)}function uo($e,Ot){return Ot=j($e,Ot),$e===1&&m?Li(Ot):Ot}function Li($e){switch($e.kind){case 211:return Eo($e);case 212:return Zn($e);case 213:return jr($e)}return $e}function Eo($e){return $e.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),$e.name),$e):$e}function Zn($e){return $e.expression.kind===108?on($e.argumentExpression,$e):$e}function jr($e){let Ot=$e.expression;if(Ou(Ot)){let In=kr(Ot)?Eo(Ot):Zn(Ot);return t.createCallExpression(t.createPropertyAccessExpression(In,"call"),void 0,[t.createThis(),...$e.arguments])}return $e}function Sr($e){let Ot=$e.kind;return Ot===263||Ot===176||Ot===174||Ot===177||Ot===178}function on($e,Ot){return m&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),"value"),Ot):at(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),Ot)}}function K3(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,dr(e.createPropertyAccessExpression(dr(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(dr(e.createPropertyAccessExpression(dr(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 Y9e=bt({"src/compiler/transformers/es2017.ts"(){"use strict";Zo()}});function ble(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=rs(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(se,ke){return D!==(D&~se|ke)}function z(se,ke){let st=D;return D=(D&~se|ke)&3,st}function ee(se){D=se}function me(se){j=Tn(j,t.createVariableDeclaration(se))}function ge(se){if(se.isDeclarationFile)return se;w=se;let ke=Et(se);return Fg(ke,e.readEmitHelpers()),w=void 0,j=void 0,ke}function q(se){return fe(se,!1)}function J(se){return fe(se,!0)}function re(se){if(se.kind!==134)return se}function pe(se,ke,st,G){if(ce(st,G)){let et=z(st,G),Tt=se(ke);return ee(et),Tt}return se(ke)}function xe(se){return Sn(se,q,e)}function fe(se,ke){if(!(se.transformFlags&128))return se;switch(se.kind){case 223:return ne(se);case 229:return he(se);case 253:return Ce(se);case 256:return Ge(se);case 210:return Ie(se);case 226:return ze(se,ke);case 361:return tt(se,ke);case 299:return Wt(se);case 243:return _t(se);case 260:return Je(se);case 246:case 247:case 249:return pe(xe,se,0,2);case 250:return Dn(se,void 0);case 248:return pe(Zt,se,0,2);case 222:return en(se);case 176:return pe(Eo,se,2,1);case 174:return pe(Sr,se,2,1);case 177:return pe(Zn,se,2,1);case 178:return pe(jr,se,2,1);case 262:return pe(on,se,2,1);case 218:return pe(Ot,se,2,1);case 219:return pe($e,se,2,0);case 169:return uo(se);case 244:return De(se);case 217:return Le(se,ke);case 215:return be(se);case 211:return K&&kr(se)&&se.expression.kind===108&&K.add(se.name.escapedText),Sn(se,q,e);case 212:return K&&se.expression.kind===108&&(Y=!0),Sn(se,q,e);case 263:case 231:return pe(xe,se,2,1);default:return Sn(se,q,e)}}function ne(se){return S&2&&S&1?Rr(at(t.createYieldExpression(void 0,r().createAwaitHelper(Qe(se.expression,q,ht))),se),se):Sn(se,q,e)}function he(se){if(S&2&&S&1){if(se.asteriskToken){let ke=Qe(R.checkDefined(se.expression),q,ht);return Rr(at(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(se,se.asteriskToken,at(r().createAsyncDelegatorHelper(at(r().createAsyncValuesHelper(ke),ke)),ke)))),se),se)}return Rr(at(t.createYieldExpression(void 0,Yt(se.expression?Qe(se.expression,q,ht):t.createVoidZero())),se),se)}return Sn(se,q,e)}function Ce(se){return S&2&&S&1?t.updateReturnStatement(se,Yt(se.expression?Qe(se.expression,q,ht):t.createVoidZero())):Sn(se,q,e)}function Ge(se){if(S&2){let ke=sj(se);return ke.kind===250&&ke.awaitModifier?Dn(ke,se):t.restoreEnclosingLabel(Qe(ke,q,Hi,t.liftToBlock),se)}return Sn(se,q,e)}function ve(se){let ke,st=[];for(let G of se)if(G.kind===305){ke&&(st.push(t.createObjectLiteralExpression(ke)),ke=void 0);let et=G.expression;st.push(Qe(et,q,ht))}else ke=Tn(ke,G.kind===303?t.createPropertyAssignment(G.name,Qe(G.initializer,q,ht)):Qe(G,q,Pg));return ke&&st.push(t.createObjectLiteralExpression(ke)),st}function Ie(se){if(se.transformFlags&65536){let ke=ve(se.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(se)&384;if(pt){Ao();let hn=K3(t,l,se,K);B[is(hn)]=!0,Xh(et,[hn])}et.push(He);let Bt=t.updateBlock(se.body,et);return pt&&Y&&(l.getNodeCheckFlags(se)&256?UI(Bt,Lk):l.getNodeCheckFlags(se)&128&&UI(Bt,Mk)),K=st,Y=G,Bt}function yi(se){i();let ke=0,st=[],G=Qe(se.body,q,mF)??t.createBlock([]);Ho(G)&&(ke=t.copyPrologue(G.statements,st,!1,q)),Ur(st,$i(void 0,se));let et=o();if(ke>0||gt(st)||gt(et)){let Tt=t.converters.convertToFunctionBlock(G,!0);return Xh(st,et),Ur(st,Tt.statements.slice(ke)),t.updateBlock(Tt,at(t.createNodeArray(st),Tt.statements))}return G}function $i(se,ke){let st=!1;for(let G of ke.parameters)if(st){if($o(G.name)){if(G.name.elements.length>0){let et=iS(G,q,e,0,t.getGeneratedNameForNode(G));if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);dr(He,2097152),se=Tn(se,He)}}else if(G.initializer){let et=t.getGeneratedNameForNode(G),Tt=Qe(G.initializer,q,ht),He=t.createAssignment(et,Tt),pt=t.createExpressionStatement(He);dr(pt,2097152),se=Tn(se,pt)}}else if(G.initializer){let et=t.cloneNode(G.name);at(et,G.name),dr(et,96);let Tt=Qe(G.initializer,q,ht);D_(Tt,3168);let He=t.createAssignment(et,Tt);at(He,G),dr(He,3072);let pt=t.createBlock([t.createExpressionStatement(He)]);at(pt,G),dr(pt,3905);let Bt=t.createTypeCheck(t.cloneNode(G.name),"undefined"),hn=t.createIfStatement(Bt,pt);qd(hn),at(hn,G),dr(hn,2101056),se=Tn(se,hn)}}else if(G.transformFlags&65536){st=!0;let et=iS(G,q,e,1,t.getGeneratedNameForNode(G),!1,!0);if(gt(et)){let Tt=t.createVariableDeclarationList(et),He=t.createVariableStatement(void 0,Tt);dr(He,2097152),se=Tn(se,He)}}return se}function Ao(){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(se,ke,st){if(E&1&<(ke)){let G=l.getNodeCheckFlags(ke)&384;if(G!==N){let et=N;N=G,h(se,ke,st),N=et;return}}else if(E&&B[is(ke)]){let G=N;N=0,h(se,ke,st),N=G;return}h(se,ke,st)}function Ba(se,ke){return ke=m(se,ke),se===1&&N?vn(ke):ke}function vn(se){switch(se.kind){case 211:return kn(se);case 212:return Be(se);case 213:return ct(se)}return se}function kn(se){return se.expression.kind===108?at(t.createPropertyAccessExpression(t.createUniqueName("_super",48),se.name),se):se}function Be(se){return se.expression.kind===108?Rt(se.argumentExpression,se):se}function ct(se){let ke=se.expression;if(Ou(ke)){let st=kr(ke)?kn(ke):Be(ke);return t.createCallExpression(t.createPropertyAccessExpression(st,"call"),void 0,[t.createThis(),...se.arguments])}return se}function lt(se){let ke=se.kind;return ke===263||ke===176||ke===174||ke===177||ke===178}function Rt(se,ke){return N&256?at(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),"value"),ke):at(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),ke)}}var $9e=bt({"src/compiler/transformers/es2018.ts"(){"use strict";Zo()}});function Ele(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)),Qe(s.block,i,Ho))}}var Q9e=bt({"src/compiler/transformers/es2019.ts"(){"use strict";Zo()}});function Sle(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 R.assertNotNode(N,o1),N}case 211:case 212:if(Hd(A)){let N=m(A,!1,!1);return R.assertNotNode(N,o1),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){R.assertNotNode(A,cF);let N=[A];for(;!A.questionDotToken&&!K0(A);)A=ta(gm(A.expression),Hd),R.assertNotNode(A,cF),N.unshift(A);return{expression:A.expression,chain:N}}function l(A,N,D){let w=h(A.expression,N,D);return o1(w)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(A,w.expression),w.thisArg):t.updateParenthesizedExpression(A,w)}function d(A,N,D){if(Hd(A))return m(A,N,D);let w=Qe(A.expression,o,ht);R.assertNotNode(w,o1);let j;return N&&(rS(w)?j=w:(j=t.createTempVariable(r),w=t.createAssignment(j,w))),w=A.kind===211?t.updatePropertyAccessExpression(A,w,Qe(A.name,o,Fe)):t.updateElementAccessExpression(A,w,Qe(A.argumentExpression,o,ht)),j?t.createSyntheticReferenceExpression(w,j):w}function p(A,N){if(Hd(A))return m(A,N,!1);if(Fu(A.expression)&&Hd(ms(A.expression))){let D=l(A.expression,!0,!1),w=zn(A.arguments,o,ht);return o1(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 Qe(A,o,ht)}}function m(A,N,D){let{expression:w,chain:j}=s(A),K=h(gm(w),sT(j[0]),!1),Y=o1(K)?K.thisArg:void 0,B=o1(K)?K.expression:K,ce=t.restoreOuterExpressions(w,B,8);rS(B)||(B=t.createTempVariable(r),ce=t.createAssignment(B,ce));let z=B,ee;for(let ge=0;gefe&&Ur(ne,zn(pe.statements,y,Hi,fe,he-fe));break}he++}R.assert(heD(ne,fe))))],fe,xe===2)}return Sn(pe,y,e)}function j(pe,xe,fe,ne,he){let Ce=[];for(let Ie=xe;Iet&&(t=i)}return t}function nVe(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 rVe=bt({"src/compiler/transformers/esnext.ts"(){"use strict";Zo()}});function Dle(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:P6(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 ft=t.createUniqueName(`_${be}`,112),Zt=t.createImportSpecifier(!1,t.createIdentifier(be),ft);return eae(ft,Zt),Je.set(be,Zt),ft}function y(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=N6(i,be);let ze=Sn(be,E,e);Fg(ze,e.readEmitHelpers());let tt=ze.statements;if(s.filenameDeclaration&&(tt=fT(tt.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Wt,_t]of Oo(s.utilizedImplicitRuntimeImports.entries()))if(sc(be)){let Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Oo(_t.values()))),t.createStringLiteral(Wt),void 0);Vv(Je,!1),tt=fT(tt.slice(),Je)}else if(wp(be)){let Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Oo(_t.values(),ft=>t.createBindingElement(void 0,ft.propertyName,ft.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Wt)]))],2));Vv(Je,!1),tt=fT(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 R.failBadSyntaxKind(be)}}function N(be){return be.properties.some(ze=>hc(ze)&&(Fe(ze.name)&&vr(ze.name)==="__proto__"||Ca(ze.name)&&ze.name.text==="__proto__"))}function D(be){let ze=!1;for(let tt of be.attributes.properties)if(s1(tt)&&(!La(tt.expression)||tt.expression.properties.some(Vy)))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=uR(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,ft=Gr(be.attributes.properties,Dn=>!!Dn.name&&Fe(Dn.name)&&Dn.name.escapedText==="key"),Zt=ft?Vr(be.attributes.properties,Dn=>Dn!==ft):be.attributes.properties,en=Nn(Zt)?re(Zt,Je):t.createObjectLiteralExpression(Je?[Je]:Xe);return ee(_t,en,ft,ze||Xe,tt,Wt)}function ee(be,ze,tt,Wt,_t,Je){var ft;let Zt=uR(Wt),en=Nn(Zt)>1||!!((ft=Zt[0])!=null&&ft.dotDotDotToken),Dn=[be,ze];if(tt&&Dn.push(ne(tt.initializer)),i.jsx===5){let pn=Pl(o);if(pn&&Yi(pn)){tt===void 0&&Dn.push(t.createVoidZero()),Dn.push(en?t.createTrue():t.createFalse());let Yt=ys(pn,Je.pos);Dn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Yt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Yt.character+1))])),Dn.push(t.createThis())}}let Kn=at(t.createCallExpression(p(en),void 0,Dn),Je);return _t&&qd(Kn),Kn}function me(be,ze,tt,Wt){let _t=De(be),Je=be.attributes.properties,ft=Nn(Je)?re(Je):t.createNull(),Zt=s.importSpecifier===void 0?_H(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):m("createElement"),en=Nae(t,Zt,_t,ft,to(ze,A),Wt);return tt&&qd(en),en}function ge(be,ze,tt,Wt){let _t;if(ze&&ze.length){let Je=B(ze);Je&&(_t=Je)}return ee(h(),_t||t.createObjectLiteralExpression([]),void 0,ze,tt,Wt)}function q(be,ze,tt,Wt){let _t=Pae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,to(ze,A),be,Wt);return tt&&qd(_t),_t}function J(be){return La(be.expression)&&!N(be.expression)?Mc(be.expression.properties,ze=>R.checkDefined(Qe(ze,E,Pg))):t.createSpreadAssignment(R.checkDefined(Qe(be.expression,E,ht)))}function re(be,ze){let tt=rs(i);return tt&&tt>=5?t.createObjectLiteralExpression(pe(be,ze)):xe(be,ze)}function pe(be,ze){let tt=pm(MG(be,s1,(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(s1(Je)){if(La(Je.expression)&&!N(Je.expression)){for(let ft of Je.expression.properties){if(Vy(ft)){_t(),tt.push(R.checkDefined(Qe(ft.expression,E,ht)));continue}Wt.push(R.checkDefined(Qe(ft,E)))}continue}_t(),tt.push(R.checkDefined(Qe(Je.expression,E,ht)));continue}Wt.push(fe(Je))}return ze&&Wt.push(ze),_t(),tt.length&&!La(tt[0])&&tt.unshift(t.createObjectLiteralExpression()),rh(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:!XF(be,o),tt=t.createStringLiteral(Ie(be.text)||be.text,ze);return at(tt,be)}return be.kind===294?be.expression===void 0?t.createTrue():R.checkDefined(Qe(be.expression,E,ht)):ag(be)?j(be,!1):FT(be)?K(be,!1):X0(be)?Y(be,!1):R.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 kx(parseInt(Je,10));if(ft)return kx(parseInt(ft,16));{let en=KIe.get(Zt);return en?kx(en):ze}})}function Ie(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)&&fR(ze.escapedText)?t.createStringLiteral(vr(ze)):Xm(ze)?t.createStringLiteral(vr(ze.namespace)+":"+vr(ze.name)):Hk(t,ze)}}function Le(be){let ze=be.name;if(Fe(ze)){let tt=vr(ze);return/^[A-Za-z_]\w*$/.test(tt)?ze:t.createStringLiteral(tt)}return t.createStringLiteral(vr(ze.namespace)+":"+vr(ze.name))}function Et(be){let ze=Qe(be.expression,E,ht);return be.dotDotDotToken?t.createSpreadElement(ze):ze}}var KIe,iVe=bt({"src/compiler/transformers/jsx.ts"(){"use strict";Zo(),KIe=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 Cle(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=Qe(p.left,o,ht),E=Qe(p.right,o,ht);if(Xs(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=Qe(p.left,o,ht),m=Qe(p.right,o,ht);return at(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var oVe=bt({"src/compiler/transformers/es2016.ts"(){"use strict";Zo()}});function JIe(e,t){return{kind:e,expression:t}}function Nle(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(Z){A=Tn(A,t.createVariableDeclaration(Z))}let D,w;return Im(e,j);function j(Z){if(Z.isDeclarationFile)return Z;y=Z,E=Z.text;let rt=re(Z);return Fg(rt,e.readEmitHelpers()),y=void 0,E=void 0,A=void 0,S=0,rt}function K(Z,rt){let wt=S;return S=(S&~Z|rt)&32767,wt}function Y(Z,rt,wt){S=(S&~rt|wt)&-32768|Z}function B(Z){return(S&8192)!==0&&Z.kind===253&&!Z.expression}function ce(Z){return Z.transformFlags&4194304&&(Sm(Z)||wT(Z)||gae(Z)||gP(Z)||yP(Z)||wR(Z)||bP(Z)||WT(Z)||$0(Z)||J0(Z)||Mv(Z,!1)||Ho(Z))}function z(Z){return(Z.transformFlags&1024)!==0||D!==void 0||S&8192&&ce(Z)||Mv(Z,!1)&&mo(Z)||(ym(Z)&1)!==0}function ee(Z){return z(Z)?J(Z,!1):Z}function me(Z){return z(Z)?J(Z,!0):Z}function ge(Z){if(z(Z)){let rt=Pl(Z);if(jo(rt)&&mc(rt)){let wt=K(32670,16449),Gt=J(Z,!1);return Y(wt,229376,0),Gt}return J(Z,!1)}return Z}function q(Z){return Z.kind===108?tc(Z,!0):ee(Z)}function J(Z,rt){switch(Z.kind){case 126:return;case 263:return De(Z);case 231:return Le(Z);case 169:return Ba(Z);case 262:return dn(Z);case 219:return Bt(Z);case 218:return hn(Z);case 260:return En(Z);case 80:return ve(Z);case 261:return Ne(Z);case 255:return pe(Z);case 269:return xe(Z);case 241:return Me(Z,!1);case 252:case 251:return Ie(Z);case 256:return gi(Z);case 246:case 247:return Wr(Z,void 0);case 248:return ho(Z,void 0);case 249:return Ri(Z,void 0);case 250:return Hr(Z,void 0);case 244:return Nt(Z);case 210:return Po(Z);case 299:return Di(Z);case 304:return Hc(Z);case 167:return Vs(Z);case 209:return bs(Z);case 213:return Kc(Z);case 214:return im(Z);case 217:return k(Z,rt);case 226:return ie(Z,rt);case 361:return H(Z,rt);case 15:case 16:case 17:case 18:return Qo(Z);case 11:return ec(Z);case 9:return vc(Z);case 215:return ll(Z);case 228:return hl(Z);case 229:return yc(Z);case 230:return qo(Z);case 108:return tc(Z,!1);case 110:return Ce(Z);case 236:return Jc(Z);case 174:return Jo(Z);case 177:case 178:return bl(Z);case 243:return We(Z);case 253:return he(Z);case 222:return Ge(Z);default:return Sn(Z,ee,e)}}function re(Z){let rt=K(8064,64),wt=[],Gt=[];i();let O=t.copyPrologue(Z.statements,wt,!1,ee);return Ur(Gt,zn(Z.statements,ee,Hi,O)),A&&Gt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(wt,s()),se(wt,Z),Y(rt,0,0),t.updateSourceFile(Z,at(t.createNodeArray(bo(wt,Gt)),Z.statements))}function pe(Z){if(D!==void 0){let rt=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let wt=Sn(Z,ee,e);return D.allowedNonLabeledJumps=rt,wt}return Sn(Z,ee,e)}function xe(Z){let rt=K(7104,0),wt=Sn(Z,ee,e);return Y(rt,0,0),wt}function fe(Z){return Rr(t.createReturnStatement(ne()),Z)}function ne(){return t.createUniqueName("_this",48)}function he(Z){return D?(D.nonLocalJumps|=8,B(Z)&&(Z=fe(Z)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Z.expression?R.checkDefined(Qe(Z.expression,ee,ht)):t.createVoidZero())]))):B(Z)?fe(Z):Sn(Z,ee,e)}function Ce(Z){return S|=65536,S&2&&!(S&16384)&&(S|=131072),D?S&2?(D.containsLexicalThis=!0,Z):D.thisName||(D.thisName=t.createUniqueName("this")):Z}function Ge(Z){return Sn(Z,me,e)}function ve(Z){return D&&p.isArgumentsLocalBinding(Z)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):Z.flags&256?Rr(at(t.createIdentifier(Vi(Z.escapedText)),Z),Z):Z}function Ie(Z){if(D){let rt=Z.kind===252?2:4;if(!(Z.label&&D.labels&&D.labels.get(vr(Z.label))||!Z.label&&D.allowedNonLabeledJumps&rt)){let Gt,O=Z.label;O?Z.kind===252?(Gt=`break-${O.escapedText}`,$(D,!0,vr(O),Gt)):(Gt=`continue-${O.escapedText}`,$(D,!1,vr(O),Gt)):Z.kind===252?(D.nonLocalJumps|=2,Gt="break"):(D.nonLocalJumps|=4,Gt="continue");let Se=t.createStringLiteral(Gt);if(D.loopOutParameters.length){let nt=D.loopOutParameters,jt;for(let er=0;erFe(rt.name)&&!rt.initializer)}function ft(Z){if(hT(Z))return!0;if(!(Z.transformFlags&134217728))return!1;switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let rt=Z;return Ya(rt.name)?!!Bo(rt.name,ft):!1}}return!!Bo(Z,ft)}function Zt(Z,rt,wt,Gt){let O=!!wt&&Ql(wt.expression).kind!==106;if(!Z)return _t(rt,O);let Se=[],nt=[];o();let jt=t.copyStandardPrologue(Z.body.statements,Se,0);(Gt||ft(Z.body))&&(S|=8192),Ur(nt,zn(Z.body.statements,ee,Hi,jt));let er=O||S&8192;kn(Se,Z),Rt(Se,Z,Gt),st(Se,Z),er?ke(Se,Z,Ao()):se(Se,Z),t.mergeLexicalEnvironment(Se,s()),er&&!$i(Z.body)&&nt.push(t.createReturnStatement(ne()));let ii=t.createBlock(at(t.createNodeArray([...Se,...nt]),Z.body.statements),!0);return at(ii,Z.body),yi(ii,Z.body,Gt)}function en(Z){return il(Z)&&vr(Z)==="_this"}function Dn(Z){return il(Z)&&vr(Z)==="_super"}function Kn(Z){return Ll(Z)&&Z.declarationList.declarations.length===1&&pn(Z.declarationList.declarations[0])}function pn(Z){return Oi(Z)&&en(Z.name)&&!!Z.initializer}function Yt(Z){return Lc(Z,!0)&&en(Z.left)}function qt(Z){return ra(Z)&&kr(Z.expression)&&Dn(Z.expression.expression)&&Fe(Z.expression.name)&&(vr(Z.expression.name)==="call"||vr(Z.expression.name)==="apply")&&Z.arguments.length>=1&&Z.arguments[0].kind===110}function hi(Z){return pr(Z)&&Z.operatorToken.kind===57&&Z.right.kind===110&&qt(Z.left)}function uo(Z){return pr(Z)&&Z.operatorToken.kind===56&&pr(Z.left)&&Z.left.operatorToken.kind===38&&Dn(Z.left.left)&&Z.left.right.kind===106&&qt(Z.right)&&vr(Z.right.expression.name)==="apply"}function Li(Z){return pr(Z)&&Z.operatorToken.kind===57&&Z.right.kind===110&&uo(Z.left)}function Eo(Z){return Yt(Z)&&hi(Z.right)}function Zn(Z){return Yt(Z)&&Li(Z.right)}function jr(Z){return qt(Z)||hi(Z)||Eo(Z)||uo(Z)||Li(Z)||Zn(Z)}function Sr(Z){for(let rt=0;rt0;Gt--){let O=Z.statements[Gt];if(Sm(O)&&O.expression&&en(O.expression)){let Se=Z.statements[Gt-1],nt;if(td(Se)&&Eo(Ql(Se.expression)))nt=Se.expression;else if(wt&&Kn(Se)){let ii=Se.declarationList.declarations[0];jr(Ql(ii.initializer))&&(nt=t.createAssignment(ne(),ii.initializer))}if(!nt)break;let jt=t.createReturnStatement(nt);Rr(jt,Se),at(jt,Se);let er=t.createNodeArray([...Z.statements.slice(0,Gt-1),jt,...Z.statements.slice(Gt+1)]);return at(er,Z.statements),t.updateBlock(Z,er)}}return Z}function $e(Z){if(Kn(Z)){if(Z.declarationList.declarations[0].initializer.kind===110)return}else if(Yt(Z))return t.createPartiallyEmittedExpression(Z.right,Z);switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return Z;case 177:case 178:case 174:case 172:{let rt=Z;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,$e,void 0)):Z}}return Sn(Z,$e,void 0)}function Ot(Z,rt){if(rt.transformFlags&16384||S&65536||S&131072)return Z;for(let wt of rt.statements)if(wt.transformFlags&134217728&&!B3(wt))return Z;return t.updateBlock(Z,zn(Z.statements,$e,Hi))}function In(Z){if(qt(Z)&&Z.arguments.length===2&&Fe(Z.arguments[1])&&vr(Z.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(jl(),t.createNull()),Z);switch(Z.kind){case 219:case 218:case 262:case 176:case 175:return Z;case 177:case 178:case 174:case 172:{let rt=Z;return Ya(rt.name)?t.replacePropertyName(rt,Sn(rt.name,In,void 0)):Z}}return Sn(Z,In,void 0)}function si(Z){return t.updateBlock(Z,zn(Z.statements,In,Hi))}function yi(Z,rt,wt){let Gt=Z;return Z=Sr(Z),Z=on(Z,rt),Z!==Gt&&(Z=Ot(Z,rt)),wt&&(Z=si(Z)),Z}function $i(Z){if(Z.kind===253)return!0;if(Z.kind===245){let rt=Z;if(rt.elseStatement)return $i(rt.thenStatement)&&$i(rt.elseStatement)}else if(Z.kind===241){let rt=Qs(Z.statements);if(rt&&$i(rt))return!0}return!1}function Ao(){return dr(t.createThis(),8)}function ua(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(jl(),t.createNull()),t.createFunctionApplyCall(jl(),Ao(),t.createIdentifier("arguments"))),Ao())}function Ba(Z){if(!Z.dotDotDotToken)return $o(Z.name)?Rr(at(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Z),void 0,void 0,void 0),Z),Z):Z.initializer?Rr(at(t.createParameterDeclaration(void 0,void 0,Z.name,void 0,void 0,void 0),Z),Z):Z}function vn(Z){return Z.initializer!==void 0||$o(Z.name)}function kn(Z,rt){if(!gt(rt.parameters,vn))return!1;let wt=!1;for(let Gt of rt.parameters){let{name:O,initializer:Se,dotDotDotToken:nt}=Gt;nt||($o(O)?wt=Be(Z,Gt,O,Se)||wt:Se&&(ct(Z,Gt,O,Se),wt=!0))}return wt}function Be(Z,rt,wt,Gt){return wt.elements.length>0?(fT(Z,dr(t.createVariableStatement(void 0,t.createVariableDeclarationList(iS(rt,ee,e,0,t.getGeneratedNameForNode(rt)))),2097152)),!0):Gt?(fT(Z,dr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(rt),R.checkDefined(Qe(Gt,ee,ht)))),2097152)),!0):!1}function ct(Z,rt,wt,Gt){Gt=R.checkDefined(Qe(Gt,ee,ht));let O=t.createIfStatement(t.createTypeCheck(t.cloneNode(wt),"undefined"),dr(at(t.createBlock([t.createExpressionStatement(dr(at(t.createAssignment(dr(ja(at(t.cloneNode(wt),wt),wt.parent),96),dr(Gt,96|za(Gt)|3072)),rt),3072))]),rt),3905));qd(O),at(O,rt),dr(O,2101056),fT(Z,O)}function lt(Z,rt){return!!(Z&&Z.dotDotDotToken&&!rt)}function Rt(Z,rt,wt){let Gt=[],O=Qs(rt.parameters);if(!lt(O,wt))return!1;let Se=O.name.kind===80?ja(at(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);dr(Se,96);let nt=O.name.kind===80?t.cloneNode(O.name):Se,jt=rt.parameters.length-1,er=t.createLoopVariable();Gt.push(dr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Se,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));let ii=t.createForStatement(at(t.createVariableDeclarationList([t.createVariableDeclaration(er,void 0,void 0,t.createNumericLiteral(jt))]),O),at(t.createLessThan(er,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),at(t.createPostfixIncrement(er),O),t.createBlock([qd(at(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(nt,jt===0?er:t.createSubtract(er,t.createNumericLiteral(jt))),t.createElementAccessExpression(t.createIdentifier("arguments"),er))),O))]));return dr(ii,2097152),qd(ii),Gt.push(ii),O.name.kind!==80&&Gt.push(dr(at(t.createVariableStatement(void 0,t.createVariableDeclarationList(iS(O,ee,e,0,nt))),O),2097152)),jV(Z,Gt),!0}function se(Z,rt){return S&131072&&rt.kind!==219?(ke(Z,rt,t.createThis()),!0):!1}function ke(Z,rt,wt){Du();let Gt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ne(),void 0,void 0,wt)]));dr(Gt,2100224),Da(Gt,rt),fT(Z,Gt)}function st(Z,rt){if(S&32768){let wt;switch(rt.kind){case 219:return Z;case 174:case 177:case 178:wt=t.createVoidZero();break;case 176:wt=t.createPropertyAccessExpression(dr(t.createThis(),8),"constructor");break;case 262:case 218:wt=t.createConditionalExpression(t.createLogicalAnd(dr(t.createThis(),8),t.createBinaryExpression(dr(t.createThis(),8),104,t.getLocalName(rt))),void 0,t.createPropertyAccessExpression(dr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return R.failBadSyntaxKind(rt)}let Gt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,wt)]));dr(Gt,2100224),fT(Z,Gt)}return Z}function G(Z,rt){for(let wt of rt.members)switch(wt.kind){case 240:Z.push(et(wt));break;case 174:Z.push(Tt(dg(rt,wt),wt,rt));break;case 177:case 178:let Gt=xT(rt.members,wt);wt===Gt.firstAccessor&&Z.push(He(dg(rt,wt),Gt,rt));break;case 176:case 175:break;default:R.failBadSyntaxKind(wt,y&&y.fileName);break}}function et(Z){return at(t.createEmptyStatement(),Z)}function Tt(Z,rt,wt){let Gt=C_(rt),O=zy(rt),Se=un(rt,rt,void 0,wt),nt=Qe(rt.name,ee,oc);R.assert(nt);let jt;if(!Ki(nt)&&sP(e.getCompilerOptions())){let ii=Ya(nt)?nt.expression:Fe(nt)?t.createStringLiteral(Vi(nt.escapedText)):nt;jt=t.createObjectDefinePropertyCall(Z,ii,t.createPropertyDescriptor({value:Se,enumerable:!1,writable:!0,configurable:!0}))}else{let ii=VT(t,Z,nt,rt.name);jt=t.createAssignment(ii,Se)}dr(Se,3072),Da(Se,O);let er=at(t.createExpressionStatement(jt),rt);return Rr(er,rt),ac(er,Gt),dr(er,96),er}function He(Z,rt,wt){let Gt=t.createExpressionStatement(pt(Z,rt,wt,!1));return dr(Gt,3072),Da(Gt,zy(rt.firstAccessor)),Gt}function pt(Z,{firstAccessor:rt,getAccessor:wt,setAccessor:Gt},O,Se){let nt=ja(at(t.cloneNode(Z),Z),Z.parent);dr(nt,3136),Da(nt,rt.name);let jt=Qe(rt.name,ee,oc);if(R.assert(jt),Ki(jt))return R.failBadSyntaxKind(jt,"Encountered unhandled private identifier while transforming ES2015.");let er=gH(t,jt);dr(er,3104),Da(er,rt.name);let ii=[];if(wt){let no=un(wt,void 0,void 0,O);Da(no,zy(wt)),dr(no,1024);let ka=t.createPropertyAssignment("get",no);ac(ka,C_(wt)),ii.push(ka)}if(Gt){let no=un(Gt,void 0,void 0,O);Da(no,zy(Gt)),dr(no,1024);let ka=t.createPropertyAssignment("set",no);ac(ka,C_(Gt)),ii.push(ka)}ii.push(t.createPropertyAssignment("enumerable",wt||Gt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Xr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[nt,er,t.createObjectLiteralExpression(ii,!0)]);return Se&&qd(Xr),Xr}function Bt(Z){Z.transformFlags&16384&&!(S&16384)&&(S|=131072);let rt=D;D=void 0;let wt=K(15232,66),Gt=t.createFunctionExpression(void 0,void 0,void 0,void 0,xl(Z.parameters,ee,e),void 0,U(Z));return at(Gt,Z),Rr(Gt,Z),dr(Gt,16),Y(wt,0,0),D=rt,Gt}function hn(Z){let rt=za(Z)&524288?K(32662,69):K(32670,65),wt=D;D=void 0;let Gt=xl(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(rt,229376,0),D=wt,t.updateFunctionExpression(Z,void 0,Z.asteriskToken,Se,void 0,Gt,void 0,O)}function dn(Z){let rt=D;D=void 0;let wt=K(32670,65),Gt=xl(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(wt,229376,0),D=rt,t.updateFunctionDeclaration(Z,zn(Z.modifiers,ee,Ta),Z.asteriskToken,Se,void 0,Gt,void 0,O)}function un(Z,rt,wt,Gt){let O=D;D=void 0;let Se=Gt&&di(Gt)&&!na(Z)?K(32670,73):K(32670,65),nt=xl(Z.parameters,ee,e),jt=U(Z);return S&32768&&!wt&&(Z.kind===262||Z.kind===218)&&(wt=t.getGeneratedNameForNode(Z)),Y(Se,229376,0),D=O,Rr(at(t.createFunctionExpression(void 0,Z.asteriskToken,wt,void 0,nt,void 0,jt),rt),Z)}function U(Z){let rt=!1,wt=!1,Gt,O,Se=[],nt=[],jt=Z.body,er;if(o(),Ho(jt)&&(er=t.copyStandardPrologue(jt.statements,Se,0,!1),er=t.copyCustomPrologue(jt.statements,nt,er,ee,LF),er=t.copyCustomPrologue(jt.statements,nt,er,ee,kF)),rt=kn(nt,Z)||rt,rt=Rt(nt,Z,!1)||rt,Ho(jt))er=t.copyCustomPrologue(jt.statements,nt,er,ee),Gt=jt.statements,Ur(nt,zn(jt.statements,ee,Hi,er)),!rt&&jt.multiLine&&(rt=!0);else{R.assert(Z.kind===219),Gt=v6(jt,-1);let Xr=Z.equalsGreaterThanToken;!qs(Xr)&&!qs(jt)&&(ak(Xr,jt,y)?wt=!0:rt=!0);let no=Qe(jt,ee,ht),ka=t.createReturnStatement(no);at(ka,jt),qoe(ka,jt),dr(ka,2880),nt.push(ka),O=jt}if(t.mergeLexicalEnvironment(Se,s()),st(Se,Z),se(Se,Z),gt(Se)&&(rt=!0),nt.unshift(...Se),Ho(jt)&&Vm(nt,jt.statements))return jt;let ii=t.createBlock(at(t.createNodeArray(nt),Gt),rt);return at(ii,Z.body),!rt&&wt&&dr(ii,1),O&&Joe(ii,20,O),Rr(ii,Z.body),ii}function Me(Z,rt){if(rt)return Sn(Z,ee,e);let wt=S&256?K(7104,512):K(6976,128),Gt=Sn(Z,ee,e);return Y(wt,0,0),Gt}function Nt(Z){return Sn(Z,me,e)}function k(Z,rt){return Sn(Z,rt?me:ee,e)}function ie(Z,rt){return Oy(Z)?KT(Z,ee,e,0,!rt):Z.operatorToken.kind===28?t.updateBinaryExpression(Z,R.checkDefined(Qe(Z.left,me,ht)),Z.operatorToken,R.checkDefined(Qe(Z.right,rt?me:ee,ht))):Sn(Z,ee,e)}function H(Z,rt){if(rt)return Sn(Z,me,e);let wt;for(let O=0;Oer.name)),jt=Gt?t.createYieldExpression(t.createToken(42),dr(nt,8388608)):nt;if(Se)O.push(t.createExpressionStatement(jt)),Ns(rt.loopOutParameters,1,0,O);else{let er=t.createUniqueName("state"),ii=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(er,void 0,void 0,jt)]));if(O.push(ii),Ns(rt.loopOutParameters,1,0,O),rt.nonLocalJumps&8){let Xr;wt?(wt.nonLocalJumps|=8,Xr=t.createReturnStatement(er)):Xr=t.createReturnStatement(t.createPropertyAccessExpression(er,"value")),O.push(t.createIfStatement(t.createTypeCheck(er,"object"),Xr))}if(rt.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(er,t.createStringLiteral("break")),t.createBreakStatement())),rt.labeledNonLocalBreaks||rt.labeledNonLocalContinues){let Xr=[];Pe(rt.labeledNonLocalBreaks,!0,er,wt,Xr),Pe(rt.labeledNonLocalContinues,!1,er,wt,Xr),O.push(t.createSwitchStatement(er,t.createCaseBlock(Xr)))}}return O}function $(Z,rt,wt,Gt){rt?(Z.labeledNonLocalBreaks||(Z.labeledNonLocalBreaks=new Map),Z.labeledNonLocalBreaks.set(wt,Gt)):(Z.labeledNonLocalContinues||(Z.labeledNonLocalContinues=new Map),Z.labeledNonLocalContinues.set(wt,Gt))}function Pe(Z,rt,wt,Gt,O){Z&&Z.forEach((Se,nt)=>{let jt=[];if(!Gt||Gt.labels&&Gt.labels.get(nt)){let er=t.createIdentifier(nt);jt.push(rt?t.createBreakStatement(er):t.createContinueStatement(er))}else $(Gt,rt,nt,Se),jt.push(t.createReturnStatement(wt));O.push(t.createCaseClause(t.createStringLiteral(Se),jt))})}function yt(Z,rt,wt,Gt,O){let Se=rt.name;if($o(Se))for(let nt of Se.elements)jc(nt)||yt(Z,nt,wt,Gt,O);else{wt.push(t.createParameterDeclaration(void 0,void 0,Se));let nt=p.getNodeCheckFlags(rt);if(nt&65536||O){let jt=t.createUniqueName("out_"+vr(Se)),er=0;nt&65536&&(er|=1),OT(Z)&&(Z.initializer&&p.isBindingCapturedByNode(Z.initializer,rt)&&(er|=2),(Z.condition&&p.isBindingCapturedByNode(Z.condition,rt)||Z.incrementor&&p.isBindingCapturedByNode(Z.incrementor,rt))&&(er|=1)),Gt.push({flags:er,originalName:Se,outParamName:jt})}}}function cn(Z,rt,wt,Gt){let O=rt.properties,Se=O.length;for(let nt=Gt;ntLl(Vu)&&!!Va(Vu.declarationList.declarations).initializer,Gt=D;D=void 0;let O=zn(rt.statements,ge,Hi);D=Gt;let Se=Vr(O,wt),nt=Vr(O,Vu=>!wt(Vu)),er=ta(Va(Se),Ll).declarationList.declarations[0],ii=Ql(er.initializer),Xr=ri(ii,Lc);!Xr&&pr(ii)&&ii.operatorToken.kind===28&&(Xr=ri(ii.left,Lc));let no=ta(Xr?Ql(Xr.right):ii,ra),ka=ta(Ql(no.expression),ks),wa=ka.body.statements,Ol=0,fd=-1,Rc=[];if(Xr){let Vu=ri(wa[Ol],td);Vu&&(Rc.push(Vu),Ol++),Rc.push(wa[Ol]),Ol++,Rc.push(t.createExpressionStatement(t.createAssignment(Xr.left,ta(er.name,Fe))))}for(;!Sm(xy(wa,fd));)fd--;Ur(Rc,wa,Ol,fd),fd<-1&&Ur(Rc,wa,fd+1);let Tp=ri(xy(wa,fd),Sm);for(let Vu of nt)Sm(Vu)&&Tp?.expression&&!Fe(Tp.expression)?Rc.push(Tp):Rc.push(Vu);return Ur(Rc,Se,1),t.restoreOuterExpressions(Z.expression,t.restoreOuterExpressions(er.initializer,t.restoreOuterExpressions(Xr&&Xr.right,t.updateCallExpression(no,t.restoreOuterExpressions(no.expression,t.updateFunctionExpression(ka,void 0,void 0,void 0,void 0,ka.parameters,void 0,t.updateBlock(ka.body,Rc))),void 0,no.arguments))))}function Wc(Z,rt){if(Z.transformFlags&32768||Z.expression.kind===108||Ou(Ql(Z.expression))){let{target:wt,thisArg:Gt}=t.createCallBinding(Z.expression,l);Z.expression.kind===108&&dr(Gt,8);let O;if(Z.transformFlags&32768?O=t.createFunctionApplyCall(R.checkDefined(Qe(wt,q,ht)),Z.expression.kind===108?Gt:R.checkDefined(Qe(Gt,ee,ht)),_u(Z.arguments,!0,!1,!1)):O=at(t.createFunctionCallCall(R.checkDefined(Qe(wt,q,ht)),Z.expression.kind===108?Gt:R.checkDefined(Qe(Gt,ee,ht)),zn(Z.arguments,ee,ht)),Z),Z.expression.kind===108){let Se=t.createLogicalOr(O,Ao());O=rt?t.createAssignment(ne(),Se):Se}return Rr(O,Z)}return hT(Z)&&(S|=131072),Sn(Z,ee,e)}function im(Z){if(gt(Z.arguments,qm)){let{target:rt,thisArg:wt}=t.createCallBinding(t.createPropertyAccessExpression(Z.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(R.checkDefined(Qe(rt,ee,ht)),wt,_u(t.createNodeArray([t.createVoidZero(),...Z.arguments]),!0,!1,!1)),void 0,[])}return Sn(Z,ee,e)}function _u(Z,rt,wt,Gt){let O=Z.length,Se=pm(MG(Z,Re,(ii,Xr,no,ka)=>Xr(ii,wt,Gt&&ka===O)));if(Se.length===1){let ii=Se[0];if(rt&&!d.downlevelIteration||mU(ii.expression)||dP(ii.expression,"___spreadArray"))return ii.expression}let nt=r(),jt=Se[0].kind!==0,er=jt?t.createArrayLiteralExpression():Se[0].expression;for(let ii=jt?0:1;ii0&&Gt.push(t.createStringLiteral(wt.literal.text)),rt=t.createCallExpression(t.createPropertyAccessExpression(rt,"concat"),void 0,Gt)}return at(rt,Z)}function jl(){return t.createUniqueName("_super",48)}function tc(Z,rt){let wt=S&8&&!rt?t.createPropertyAccessExpression(Rr(jl(),Z),"prototype"):jl();return Rr(wt,Z),ac(wt,Z),Da(wt,Z),wt}function Jc(Z){return Z.keywordToken===105&&Z.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Z}function lf(Z,rt,wt){if(w&1&&Yo(rt)){let Gt=K(32670,za(rt)&16?81:65);m(Z,rt,wt),Y(Gt,0,0);return}m(Z,rt,wt)}function Bu(){w&2||(w|=2,e.enableSubstitution(80))}function Du(){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(Z,rt){return rt=h(Z,rt),Z===1?Hg(rt):Fe(rt)?z_(rt):rt}function z_(Z){if(w&2&&!yH(Z)){let rt=Ro(Z,Fe);if(rt&&Ih(rt))return at(t.getGeneratedNameForNode(rt),Z)}return Z}function Ih(Z){switch(Z.parent.kind){case 208:case 263:case 266:case 260:return Z.parent.name===Z&&p.isDeclarationWithCollidingName(Z.parent)}return!1}function Hg(Z){switch(Z.kind){case 80:return zd(Z);case 110:return Sp(Z)}return Z}function zd(Z){if(w&2&&!yH(Z)){let rt=p.getReferencedDeclarationWithCollidingName(Z);if(rt&&!(di(rt)&&Kg(rt,Z)))return at(t.getGeneratedNameForNode(No(rt)),Z)}return Z}function Kg(Z,rt){let wt=Ro(rt);if(!wt||wt===Z||wt.end<=Z.pos||wt.pos>=Z.end)return!1;let Gt=ph(Z);for(;wt;){if(wt===Gt||wt===Z)return!1;if(Qc(wt)&&wt.parent===Z)return!0;wt=wt.parent}return!1}function Sp(Z){return w&1&&S&16?at(ne(),Z):Z}function dg(Z,rt){return na(rt)?t.getInternalName(Z):t.createPropertyAccessExpression(t.getInternalName(Z),"prototype")}function Gu(Z,rt){if(!Z||!rt||gt(Z.parameters))return!1;let wt=Yc(Z.body.statements);if(!wt||!qs(wt)||wt.kind!==244)return!1;let Gt=wt.expression;if(!qs(Gt)||Gt.kind!==213)return!1;let O=Gt.expression;if(!qs(O)||O.kind!==108)return!1;let Se=rh(Gt.arguments);if(!Se||!qs(Se)||Se.kind!==230)return!1;let nt=Se.expression;return Fe(nt)&&nt.escapedText==="arguments"}}var aVe=bt({"src/compiler/transformers/es2015.ts"(){"use strict";Zo()}});function Ple(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[Od(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):hc(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=tE(E);if(S!==void 0&&S>=83&&S<=118)return at(t.createStringLiteralFromNode(E),E)}}var sVe=bt({"src/compiler/transformers/es5.ts"(){"use strict";Zo()}});function lVe(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 Mle(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=rs(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,ee,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?Ie(Re):S?De(Re):Fs(Re)&&Re.asteriskToken?Et(Re):Lt&2048?Sn(Re,ve,e):Re}function Ie(Re){switch(Re.kind){case 246:return ua(Re);case 247:return vn(Re);case 255:return pt(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 se(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 Yt(Re);case 209:return qt(Re);case 210:return uo(Re);case 212:return Li(Re);case 213:return Eo(Re);case 214:return Zn(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 R.failBadSyntaxKind(Re)}}function be(Re){if(Re.asteriskToken)Re=Rr(at(t.createFunctionDeclaration(Re.modifiers,void 0,Re.name,void 0,xl(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=Rr(at(t.createFunctionExpression(void 0,void 0,Re.name,void 0,xl(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,go=A,qo=N,Qo=D,ec=w,vc=j,ll=K,hl=Y,jl=B,tc=ce,Jc=z,lf=ee,Bu=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,ee=void 0,me=t.createTempVariable(void 0),i();let Du=t.copyPrologue(Re.statements,Lt,!1,ve);jr(Re.statements,Du);let Pf=$();return Xh(Lt,o()),Lt.push(t.createReturnStatement(Pf)),S=Un,A=go,N=qo,D=Qo,w=ec,j=vc,K=ll,Y=hl,B=jl,ce=tc,z=Jc,ee=lf,me=Bu,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=GN(Re.declarationList);return Lt.length===0?void 0:Da(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 ft(Re);default:return R.assertNever(Lt)}}function ft(Re){let{left:Lt,right:Un}=Re;if(U(Un)){let go;switch(Lt.kind){case 211:go=t.updatePropertyAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,Yu))),Lt.name);break;case 212:go=t.updateElementAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,Yu))),H(R.checkDefined(Qe(Lt.argumentExpression,ve,ht))));break;default:go=R.checkDefined(Qe(Lt,ve,ht));break}let qo=Re.operatorToken.kind;return OP(qo)?at(t.createAssignment(go,at(t.createBinaryExpression(H(go),WP(qo),R.checkDefined(Qe(Un,ve,ht))),Re)),Re):t.updateBinaryExpression(Re,go,Re.operatorToken,R.checkDefined(Qe(Un,ve,ht)))}return Sn(Re,ve,e)}function Zt(Re){return U(Re.right)?Uie(Re.operatorToken.kind)?Kn(Re):Re.operatorToken.kind===28?en(Re):t.updateBinaryExpression(Re,H(R.checkDefined(Qe(Re.left,ve,ht))),Re.operatorToken,R.checkDefined(Qe(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(go){pr(go)&&go.operatorToken.kind===28?(Un(go.left),Un(go.right)):(U(go)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(go,ve,ht))))}}function Dn(Re){let Lt=[];for(let Un of Re.elements)pr(Un)&&Un.operatorToken.kind===28?Lt.push(en(Un)):(U(Un)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(Un,ve,ht))));return t.inlineExpressions(Lt)}function Kn(Re){let Lt=We(),Un=ue();return sl(Un,R.checkDefined(Qe(Re.left,ve,ht)),Re.left),Re.operatorToken.kind===56?Gs(Lt,Un,Re.left):tn(Lt,Un,Re.left),sl(Un,R.checkDefined(Qe(Re.right,ve,ht)),Re.right),Ne(Lt),Un}function pn(Re){if(U(Re.whenTrue)||U(Re.whenFalse)){let Lt=We(),Un=We(),go=ue();return Gs(Lt,R.checkDefined(Qe(Re.condition,ve,ht)),Re.condition),sl(go,R.checkDefined(Qe(Re.whenTrue,ve,ht)),Re.whenTrue),Mo(Un),Ne(Lt),sl(go,R.checkDefined(Qe(Re.whenFalse,ve,ht)),Re.whenFalse),Ne(Un),go}return Sn(Re,ve,e)}function Yt(Re){let Lt=We(),Un=Qe(Re.expression,ve,ht);if(Re.asteriskToken){let go=za(Re.expression)&8388608?Un:at(r().createValuesHelper(Un),Re);rd(go,Re)}else pd(Un,Re);return Ne(Lt),Nf(Re)}function qt(Re){return hi(Re.elements,void 0,void 0,Re.multiLine)}function hi(Re,Lt,Un,go){let qo=Me(Re),Qo;if(qo>0){Qo=ue();let ll=zn(Re,ve,ht,0,qo);sl(Qo,t.createArrayLiteralExpression(Lt?[Lt,...ll]:ll)),Lt=void 0}let ec=ru(Re,vc,[],qo);return Qo?t.createArrayConcatCall(Qo,[t.createArrayLiteralExpression(ec,go)]):at(t.createArrayLiteralExpression(Lt?[Lt,...ec]:ec,go),Un);function vc(ll,hl){if(U(hl)&&ll.length>0){let jl=Qo!==void 0;Qo||(Qo=ue()),sl(Qo,jl?t.createArrayConcatCall(Qo,[t.createArrayLiteralExpression(ll,go)]):t.createArrayLiteralExpression(Lt?[Lt,...ll]:ll,go)),Lt=void 0,ll=[]}return ll.push(R.checkDefined(Qe(hl,ve,ht))),ll}}function uo(Re){let Lt=Re.properties,Un=Re.multiLine,go=Me(Lt),qo=ue();sl(qo,t.createObjectLiteralExpression(zn(Lt,ve,Pg,0,go),Un));let Qo=ru(Lt,ec,[],go);return Qo.push(Un?qd(ja(at(t.cloneNode(qo),qo),qo.parent)):qo),t.inlineExpressions(Qo);function ec(vc,ll){U(ll)&&vc.length>0&&(Rl(t.createExpressionStatement(t.inlineExpressions(vc))),vc=[]);let hl=Mae(t,Re,ll,qo),jl=Qe(hl,ve,ht);return jl&&(Un&&qd(jl),vc.push(jl)),vc}}function Li(Re){return U(Re.argumentExpression)?t.updateElementAccessExpression(Re,H(R.checkDefined(Qe(Re.expression,ve,Yu))),R.checkDefined(Qe(Re.argumentExpression,ve,ht))):Sn(Re,ve,e)}function Eo(Re){if(!Op(Re)&&gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(Re.expression,l,p,!0);return Rr(at(t.createFunctionApplyCall(H(R.checkDefined(Qe(Lt,ve,Yu))),Un,hi(Re.arguments)),Re),Re)}return Sn(Re,ve,e)}function Zn(Re){if(gn(Re.arguments,U)){let{target:Lt,thisArg:Un}=t.createCallBinding(t.createPropertyAccessExpression(Re.expression,"bind"),l);return Rr(at(t.createNewExpression(t.createFunctionApplyCall(H(R.checkDefined(Qe(Lt,ve,ht))),Un,hi(Re.arguments,t.createVoidZero())),void 0,[]),Re),Re)}return Sn(Re,ve,e)}function jr(Re,Lt=0){let Un=Re.length;for(let go=Lt;go0)break;qo.push(yi(ec))}qo.length&&(Rl(t.createExpressionStatement(t.inlineExpressions(qo))),go+=qo.length,qo=[])}}function yi(Re){return Da(t.createAssignment(Da(t.cloneNode(Re.name),Re.name),R.checkDefined(Qe(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;Gs(Re.elseStatement?Un:Lt,R.checkDefined(Qe(Re.expression,ve,ht)),Re.expression),Sr(Re.thenStatement),Re.elseStatement&&(Mo(Lt),Ne(Un),Sr(Re.elseStatement)),Ne(Lt)}else Rl(Qe(Re,ve,Hi));else Rl(Qe(Re,ve,Hi))}function Ao(Re){if(U(Re)){let Lt=We(),Un=We();Pi(Lt),Ne(Un),Sr(Re.statement),Ne(Lt),tn(Un,R.checkDefined(Qe(Re.expression,ve,ht))),Ri()}else Rl(Qe(Re,ve,Hi))}function ua(Re){return A?(ho(),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),Gs(Un,R.checkDefined(Qe(Re.expression,ve,ht))),Sr(Re.statement),Mo(Lt),Ri()}else Rl(Qe(Re,ve,Hi))}function vn(Re){return A?(ho(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function kn(Re){if(U(Re)){let Lt=We(),Un=We(),go=Pi(Un);if(Re.initializer){let qo=Re.initializer;Uc(qo)?si(qo):Rl(at(t.createExpressionStatement(R.checkDefined(Qe(qo,ve,ht))),qo))}Ne(Lt),Re.condition&&Gs(go,R.checkDefined(Qe(Re.condition,ve,ht))),Sr(Re.statement),Ne(Un),Re.incrementor&&Rl(at(t.createExpressionStatement(R.checkDefined(Qe(Re.incrementor,ve,ht))),Re.incrementor)),Mo(Lt),Ri()}else Rl(Qe(Re,ve,Hi))}function Be(Re){A&&ho();let Lt=Re.initializer;if(Lt&&Uc(Lt)){for(let go of Lt.declarations)l(go.name);let Un=GN(Lt);Re=t.updateForStatement(Re,Un.length>0?t.inlineExpressions(mn(Un,yi)):void 0,Qe(Re.condition,ve,ht),Qe(Re.incrementor,ve,ht),Iu(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(),go=ue(),qo=t.createLoopVariable(),Qo=Re.initializer;l(qo),sl(Lt,R.checkDefined(Qe(Re.expression,ve,ht))),sl(Un,t.createArrayLiteralExpression()),Rl(t.createForInStatement(go,Lt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Un,"push"),void 0,[go])))),sl(qo,t.createNumericLiteral(0));let ec=We(),vc=We(),ll=Pi(vc);Ne(ec),Gs(ll,t.createLessThan(qo,t.createPropertyAccessExpression(Un,"length"))),sl(go,t.createElementAccessExpression(Un,qo)),Gs(vc,t.createBinaryExpression(go,103,Lt));let hl;if(Uc(Qo)){for(let jl of Qo.declarations)l(jl.name);hl=t.cloneNode(Qo.declarations[0].name)}else hl=R.checkDefined(Qe(Qo,ve,ht)),R.assert(Yu(hl));sl(hl,go),Sr(Re.statement),Ne(vc),Rl(t.createExpressionStatement(t.createPostfixIncrement(qo))),Mo(ec),Ri()}else Rl(Qe(Re,ve,Hi))}function lt(Re){A&&ho();let Lt=Re.initializer;if(Uc(Lt)){for(let Un of Lt.declarations)l(Un.name);Re=t.updateForInStatement(Re,Lt.declarations[0].name,R.checkDefined(Qe(Re.expression,ve,ht)),R.checkDefined(Qe(Re.statement,ve,Hi,t.liftToBlock)))}else Re=Sn(Re,ve,e);return A&&Ri(),Re}function Rt(Re){let Lt=sa(Re.label?vr(Re.label):void 0);Lt>0?Mo(Lt,Re):Rl(Re)}function se(Re){if(A){let Lt=sa(Re.label&&vr(Re.label));if(Lt>0)return Na(Lt,Re)}return Sn(Re,ve,e)}function ke(Re){let Lt=mo(Re.label?vr(Re.label):void 0);Lt>0?Mo(Lt,Re):Rl(Re)}function st(Re){if(A){let Lt=mo(Re.label&&vr(Re.label));if(Lt>0)return Na(Lt,Re)}return Sn(Re,ve,e)}function G(Re){Ep(Qe(Re.expression,ve,ht),Re)}function et(Re){return pl(Qe(Re.expression,ve,ht),Re)}function Tt(Re){U(Re)?(wn(H(R.checkDefined(Qe(Re.expression,ve,ht)))),Sr(Re.statement),Bn()):Rl(Qe(Re,ve,Hi))}function He(Re){if(U(Re.caseBlock)){let Lt=Re.caseBlock,Un=Lt.clauses.length,go=Io(),qo=H(R.checkDefined(Qe(Re.expression,ve,ht))),Qo=[],ec=-1;for(let hl=0;hl0)break;ll.push(t.createCaseClause(R.checkDefined(Qe(tc.expression,ve,ht)),[Na(Qo[jl],tc.expression)]))}else hl++}ll.length&&(Rl(t.createSwitchStatement(qo,t.createCaseBlock(ll))),vc+=ll.length,ll=[]),hl>0&&(vc+=hl,hl=0)}ec>=0?Mo(Qo[ec]):Mo(go);for(let hl=0;hl=0;Un--){let go=j[Un];if(Bs(go)){if(go.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(Bs(Un)&&Un.labelText===Re)return Un.breakLabel;if(ls(Un)&&dd(Re,Lt-1))return Un.breakLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(ls(Un))return Un.breakLabel}return 0}function sa(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(_l(Un)&&dd(Re,Lt-1))return Un.continueLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Un=j[Lt];if(_l(Un))return Un.continueLabel}return 0}function ud(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 Ss(Re){let Lt=t.createNumericLiteral(Re);return i4(Lt,3,lVe(Re)),Lt}function Na(Re,Lt){return R.assertLessThan(0,Re,"Invalid label"),at(t.createReturnStatement(t.createArrayLiteralExpression([Ss(3),ud(Re)])),Lt)}function pl(Re,Lt){return at(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Ss(2),Re]:[Ss(2)])),Lt)}function Nf(Re){return at(t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[]),Re)}function lc(){de(0)}function Rl(Re){Re?de(1,[Re]):lc()}function sl(Re,Lt,Un){de(2,[Re,Lt],Un)}function Mo(Re,Lt){de(3,[Re],Lt)}function tn(Re,Lt,Un){de(4,[Re,Lt],Un)}function Gs(Re,Lt,Un){de(5,[Re,Lt],Un)}function rd(Re,Lt){de(7,[Re],Lt)}function pd(Re,Lt){de(6,[Re],Lt)}function Ep(Re,Lt){de(8,[Re],Lt)}function Ns(Re,Lt){de(9,[Re],Lt)}function xc(){de(10)}function de(Re,Lt,Un){ce===void 0&&(ce=[],z=[],ee=[]),K===void 0&&Ne(We());let go=ce.length;ce[go]=Re,z[go]=Lt,ee[go]=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(dr(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:go,endLabel:qo}=he;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(me,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ud(Lt),ud(Un),ud(go),ud(qo)])]))),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 Fr(Re){if(K)for(let Lt=0;Ltr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(vr(Ne))),We),r.createVoidZero())));Tn(Me,Qe(D.externalHelpersImportDeclaration,J,Hi)),Ur(Me,zn(U.statements,J,Hi,k)),q(Me,!1),Xh(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=qk(r,U,h,d),k=Jf(U)&&U,{aliasedModuleNames:ie,unaliasedModuleNames:H,importAliasNames:ue}=ee(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}=ee(U,!1),ie=qk(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")]))]),dr(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 ee(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=c1(r,H,N,h,p,d),We=GR(r,H,N);ue&&(Me&&We?(dr(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(nd(U)||$l(U)||!c1(r,U,N,h,p,d))return;let Me=GR(r,U,N),Nt=Eo(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(ru(D.exportedNames,(ie,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(vr(H))),ie),r.createVoidZero()))),Tn(Me,Qe(D.externalHelpersImportDeclaration,J,Hi)),y===2&&Ur(Me,to(D.externalImports,me)),Ur(Me,zn(U.statements,J,Hi,Nt)),q(Me,!0),Xh(Me,s());let k=r.createBlock(Me,!0);return j&&UI(k,qIe),k}function q(U,Me){if(D.exportEquals){let Nt=Qe(D.exportEquals.expression,xe,ht);if(Nt)if(Me){let k=r.createReturnStatement(Nt);at(k,D.exportEquals),dr(k,3840),U.push(k)}else{let k=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Nt));at(k,D.exportEquals),dr(k,3072),U.push(k)}}}function J(U){switch(U.kind){case 272:return Zn(U);case 271:return Sr(U);case 278:return on(U);case 277:return $e(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 Ie(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 ft(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 Yt(U);break;case 226:if(Oy(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(La(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:R.assertNever(Me,"Unhandled object member kind")}else if(fu(U)){for(let Me of U.elements)if(qm(Me)){if(ne(Me.expression))return!0}else if(ne(Me))return!0}else if(Fe(U))return Nn(un(U))>($4(U)?1:0);return!1}function he(U,Me){return ne(U.left)?KT(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=Qe(U.initializer,fe,Uc),H=r.createVariableStatement(void 0,ie);k.push(H),Ur(k,Nt);let ue=Qe(U.condition,xe,ht),We=Qe(U.incrementor,fe,ht),Ne=Iu(U.statement,Me?re:xe,e);return k.push(r.updateForStatement(U,void 0,ue,We,Ne)),k}}return r.updateForStatement(U,Qe(U.initializer,fe,vf),Qe(U.condition,xe,ht),Qe(U.incrementor,fe,ht),Iu(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=Qe(U.initializer,fe,vf),k=Qe(U.expression,xe,ht),ie=Iu(U.statement,re,e),H=Ho(ie)?r.updateBlock(ie,[...Me,...ie.statements]):r.createBlock([...Me,ie],!0);return r.updateForInStatement(U,Nt,k,H)}}return r.updateForInStatement(U,Qe(U.initializer,fe,vf),Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function ve(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Me=vn(void 0,U.initializer,!0),Nt=Qe(U.initializer,fe,vf),k=Qe(U.expression,xe,ht),ie=Iu(U.statement,re,e);return gt(Me)&&(ie=Ho(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,Qe(U.initializer,fe,vf),Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function Ie(U){return r.updateDoStatement(U,Iu(U.statement,re,e),Qe(U.expression,xe,ht))}function De(U){return r.updateWhileStatement(U,Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function Le(U){return r.updateLabeledStatement(U,U.label,R.checkDefined(Qe(U.statement,re,Hi,r.liftToBlock)))}function Et(U){return r.updateWithStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.statement,re,Hi,r.liftToBlock)))}function be(U){return r.updateIfStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.thenStatement,re,Hi,r.liftToBlock)),Qe(U.elseStatement,re,Hi,r.liftToBlock))}function ze(U){return r.updateSwitchStatement(U,Qe(U.expression,xe,ht),R.checkDefined(Qe(U.caseBlock,re,yP)))}function tt(U){return r.updateCaseBlock(U,zn(U.clauses,re,hF))}function Wt(U){return r.updateCaseClause(U,Qe(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 ft(U){return r.updateCatchClause(U,U.variableDeclaration,R.checkDefined(Qe(U.block,re,Ho)))}function Zt(U){return U=Sn(U,re,e),U}function en(U){return r.updateExpressionStatement(U,Qe(U.expression,fe,ht))}function Dn(U,Me){return r.updateParenthesizedExpression(U,Qe(U.expression,Me?fe:xe,ht))}function Kn(U,Me){return r.updatePartiallyEmittedExpression(U,Qe(U.expression,Me?fe:xe,ht))}function pn(U,Me){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!il(U.operand)&&!Bg(U.operand)&&!$j(U.operand)){let Nt=un(U.operand);if(Nt){let k,ie=Qe(U.operand,xe,ht);Yv(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[is(ie)]=!0,ie=ke(H,ie),at(ie,U);return k&&(w[is(ie)]=!0,ie=r.createComma(ie,k),at(ie,U)),ie}}return Sn(U,xe,e)}function Yt(U){if(y===0&&m>=7)return Sn(U,xe,e);let Me=c1(r,U,N,h,p,d),Nt=Qe(Yc(U.arguments),xe,ht),k=Me&&(!Nt||!Ca(Nt)||Nt.text!==Me.text)?Me:Nt,ie=!!(U.transformFlags&16384);switch(d.module){case 2:return hi(k,ie);case 3:return qt(k??r.createVoidZero(),ie);case 1:default:return uo(k)}}function qt(U,Me){if(j=!0,rS(U)){let Nt=il(U)?U:Ca(U)?r.createStringLiteralFromNode(U):dr(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&&dr(ue,16));let We=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ue]);return _h(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]:[]);_h(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!_h(d)||ym(U)&2?Me:ele(U)?i().createImportStarHelper(Me):Me}function Eo(U,Me){return!_h(d)||ym(U)&2?Me:z3(U)?i().createImportStarHelper(Me):DK(U)?i().createImportDefaultHelper(Me):Me}function Zn(U){let Me,Nt=oR(U);if(y!==2)if(U.importClause){let k=[];Nt&&!RI(U)?k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,Eo(U,jr(U)))):(k.push(r.createVariableDeclaration(r.getGeneratedNameForNode(U),void 0,void 0,Eo(U,jr(U)))),Nt&&RI(U)&&k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)))),Me=Tn(Me,Rr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList(k,m>=2?2:0)),U),U))}else return Rr(at(r.createExpressionStatement(jr(U)),U),U);else Nt&&RI(U)&&(Me=Tn(Me,r.createVariableStatement(void 0,r.createVariableDeclarationList([Rr(at(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)),U),U)],m>=2?2:0))));return Me=Ao(Me,U),ih(Me)}function jr(U){let Me=c1(r,U,N,h,p,d),Nt=[];return Me&&Nt.push(Me),r.createCallExpression(r.createIdentifier("require"),void 0,Nt)}function Sr(U){R.assert(sE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return y!==2?$r(U,32)?Me=Tn(Me,Rr(at(r.createExpressionStatement(ke(U.name,jr(U))),U),U)):Me=Tn(Me,Rr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(U.name),void 0,void 0,jr(U))],m>=2?2:0)),U),U)):$r(U,32)&&(Me=Tn(Me,Rr(at(r.createExpressionStatement(ke(r.getExportName(U),r.getLocalName(U))),U),U))),Me=ua(Me,U),ih(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(Rr(at(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Me,void 0,void 0,jr(U))])),U),U));for(let k of U.exportClause.elements)if(m===0)Nt.push(Rr(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=!!_h(d)&&!(ym(U)&2)&&vr(k.propertyName||k.name)==="default",H=r.createPropertyAccessExpression(ie?i().createImportDefaultHelper(Me):Me,k.propertyName||k.name);Nt.push(Rr(at(r.createExpressionStatement(ke(r.getExportName(k),H,void 0,!0)),k),k))}return ih(Nt)}else if(U.exportClause){let Nt=[];return Nt.push(Rr(at(r.createExpressionStatement(ke(r.cloneNode(U.exportClause.name),Li(U,y!==2?jr(U):RF(U)?Me:r.createIdentifier(vr(U.exportClause.name))))),U),U)),ih(Nt)}else return Rr(at(r.createExpressionStatement(i().createExportStarHelper(y!==2?jr(U):Me)),U),U)}function $e(U){if(!U.isExportEquals)return se(r.createIdentifier("default"),Qe(U.expression,xe,ht),U,!0)}function Ot(U){let Me;return $r(U,32)?Me=Tn(Me,Rr(at(r.createFunctionDeclaration(zn(U.modifiers,st,Ta),U.asteriskToken,r.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,xe,To),void 0,Sn(U.body,xe,e)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),ih(Me)}function In(U){let Me;return $r(U,32)?Me=Tn(Me,Rr(at(r.createClassDeclaration(zn(U.modifiers,st,ol),r.getDeclarationName(U,!0,!0),void 0,zn(U.heritageClauses,xe,Zp),zn(U.members,xe,Qc)),U),U)):Me=Tn(Me,Sn(U,xe,e)),Me=Be(Me,U),ih(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,Ta)),ue.initializer){let We=r.updateVariableDeclaration(ue,ue.name,void 0,void 0,ke(ue.name,Qe(ue.initializer,xe,ht)));Nt=Tn(Nt,We)}else Nt=Tn(Nt,ue);else if(ue.initializer)if(!$o(ue.name)&&(zs(ue.initializer)||ks(ue.initializer)||ed(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,Qe(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=Rr(at(r.createExpressionStatement(r.inlineExpressions(k)),U),U);H&&Rk(ue),Me=Tn(Me,ue)}}else Me=Tn(Me,Sn(U,xe,e));return Me=Ba(Me,U),ih(Me)}function yi(U,Me,Nt){let k=un(U);if(k){let ie=$4(U)?Me:r.createAssignment(U,Me);for(let H of k)dr(ie,8),ie=ke(H,ie,Nt);return ie}return r.createAssignment(U,Me)}function $i(U){return $o(U.name)?KT(Qe(U,xe,sk),xe,e,0,!1,yi):r.createAssignment(at(r.createPropertyAccessExpression(r.createIdentifier("exports"),U.name),U.name),U.initializer?Qe(U.initializer,xe,ht):r.createVoidZero())}function Ao(U,Me){if(D.exportEquals)return U;let Nt=Me.importClause;if(!Nt)return U;let k=new _1;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 _1,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($o(Me.name))for(let k of Me.name.elements)jc(k)||(U=kn(U,k,Nt));else!il(Me.name)&&(!Oi(Me)||Me.initializer||Nt)&&(U=ct(U,new _1,Me));return U}function Be(U,Me){if(D.exportEquals)return U;let Nt=new _1;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,se(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())])])),dr(U,2097152),U}function se(U,Me,Nt,k,ie){let H=at(r.createExpressionStatement(ke(U,Me,void 0,ie)),Nt);return qd(H),k||dr(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[Od(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 pt(U);case 215:return Bt(U);case 226:return dn(U)}return U}function pt(U){if(Fe(U.expression)){let Me=hn(U.expression);if(w[is(Me)]=!0,!Fe(Me)&&!(za(U.expression)&8192))return VI(r.updateCallExpression(U,Me,void 0,U.arguments),16)}return U}function Bt(U){if(Fe(U.tag)){let Me=hn(U.tag);if(w[is(Me)]=!0,!Fe(Me)&&!(za(U.tag)&8192))return VI(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(!(il(U)&&!(U.emitNode.autoGenerate.flags&64))&&!Bg(U)){let k=p.getReferencedExportContainer(U,$4(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(yh(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(wy(U.operatorToken.kind)&&Fe(U.left)&&(!il(U.left)||o2(U.left))&&!Bg(U.left)){let Me=un(U.left);if(Me){let Nt=U;for(let k of Me)w[is(Nt)]=!0,Nt=ke(k,Nt,U);return Nt}}return U}function un(U){if(il(U)){if(o2(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[Od(Me)];let Nt=new Set,k=p.getReferencedValueDeclarations(U);if(k){for(let ie of k){let H=D?.exportedBindings[Od(ie)];if(H)for(let ue of H)Nt.add(ue)}if(Nt.size)return Oo(Nt)}}}}var qIe,dVe=bt({"src/compiler/transformers/module/module.ts"(){"use strict";Zo(),qIe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Lle(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=se,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||!(II(U,s)||U.transformFlags&8388608))return U;let Me=Od(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=qk(t,U,d,s),ue=t.createArrayLiteralExpression(mn(Nt,Ne=>Ne.name)),We=dr(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 Cs(s)||$oe(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=c1(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=uu(s,"alwaysStrict")||!s.noImplicitUseStrict&&sc(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")))]))),Qe(N.externalHelpersImportDeclaration,q,Hi);let H=zn(U.statements,q,Hi,ie);Ur(Nt,j),Xh(Nt,i());let ue=ee(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 ee(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([dr(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=>GR(t,We,A)),H=ie?t.getGeneratedNameForNode(ie):t.createUniqueName(""),ue=[];for(let We of k.externalImports){let Ne=GR(t,We,A);switch(We.kind){case 272:if(!We.importClause)break;case 271:R.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(vr(Ne)),H])));break;case 278:if(R.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(vr(Dt.name)),t.createElementAccessExpression(H,t.createStringLiteral(vr(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(vr(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(GR(t,U,A)),ih(Et(Me,U))}function re(U){R.assertIsDefined(U)}function pe(U){R.assert(sE(U),"import= for internal module references should be handled in an earlier transformer.");let Me;return o(GR(t,U,A)),ih(be(Me,U))}function xe(U){if(U.isExportEquals)return;let Me=Qe(U.expression,$i,ht);return ft(t.createIdentifier("default"),Me,!0)}function fe(U){$r(U,32)?j=Tn(j,t.updateFunctionDeclaration(U,zn(U.modifiers,Rt,ol),U.asteriskToken,t.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,$i,To),void 0,Qe(U.body,$i,Ho))):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,ol),U.name,void 0,zn(U.heritageClauses,$i,Zp),zn(U.members,$i,Qc)),U))),U)),Me=Wt(Me,U),ih(Me)}function he(U){if(!Ge(U.declarationList))return Qe(U,$i,Hi);let Me;if(T2(U.declarationList)||S2(U.declarationList)){let Nt=zn(U.modifiers,Rt,ol),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),ih(Me)}function Ce(U){if($o(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||(Pl(U).flags&7)===0)}function ve(U,Me){let Nt=Me?Ie:De;return $o(U.name)?KT(U,$i,e,0,!1,Nt):U.initializer?Nt(U.name,Qe(U.initializer,$i,ht)):U.name}function Ie(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($o(Me.name))for(let k of Me.name.elements)jc(k)||(U=tt(U,k,Nt));else if(!il(Me.name)){let k;Nt&&(U=Je(U,Me.name,t.getLocalName(Me)),k=vr(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,ft(Me,Nt,k)),U}function ft(U,Me,Nt){let k=t.createExpressionStatement(Zt(U,Me));return qd(k),Nt||dr(k,3072),k}function Zt(U,Me){let Nt=Fe(U)?t.createStringLiteralFromNode(U):U;return dr(Me,za(Me)|3072),ac(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 Eo(U);case 245:return Zn(U);case 255:return jr(U);case 269:return Sr(U);case 296:return on(U);case 297:return $e(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,Qe(U.initializer,Me?qt:Ao,vf),Qe(U.condition,$i,ht),Qe(U.incrementor,Ao,ht),Iu(U.statement,Me?en:$i,e)),K=Nt,U}function Kn(U){let Me=K;return K=U,U=t.updateForInStatement(U,qt(U.initializer),Qe(U.expression,$i,ht),Iu(U.statement,en,e)),K=Me,U}function pn(U){let Me=K;return K=U,U=t.updateForOfStatement(U,U.awaitModifier,qt(U.initializer),Qe(U.expression,$i,ht),Iu(U.statement,en,e)),K=Me,U}function Yt(U){return Uc(U)&&Ge(U)}function qt(U){if(Yt(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 Qe(U,Ao,vf)}function hi(U){return t.updateDoStatement(U,Iu(U.statement,en,e),Qe(U.expression,$i,ht))}function uo(U){return t.updateWhileStatement(U,Qe(U.expression,$i,ht),Iu(U.statement,en,e))}function Li(U){return t.updateLabeledStatement(U,U.label,R.checkDefined(Qe(U.statement,en,Hi,t.liftToBlock)))}function Eo(U){return t.updateWithStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.statement,en,Hi,t.liftToBlock)))}function Zn(U){return t.updateIfStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.thenStatement,en,Hi,t.liftToBlock)),Qe(U.elseStatement,en,Hi,t.liftToBlock))}function jr(U){return t.updateSwitchStatement(U,Qe(U.expression,$i,ht),R.checkDefined(Qe(U.caseBlock,en,yP)))}function Sr(U){let Me=K;return K=U,U=t.updateCaseBlock(U,zn(U.clauses,en,hF)),K=Me,U}function on(U){return t.updateCaseClause(U,Qe(U.expression,$i,ht),zn(U.statements,en,Hi))}function $e(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,R.checkDefined(Qe(U.block,en,Ho))),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(Oy(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 Ao(U){return yi(U,!0)}function ua(U){return t.updateExpressionStatement(U,Qe(U.expression,Ao,ht))}function Ba(U,Me){return t.updateParenthesizedExpression(U,Qe(U.expression,Me?Ao:$i,ht))}function vn(U,Me){return t.updatePartiallyEmittedExpression(U,Qe(U.expression,Me?Ao:$i,ht))}function kn(U){let Me=c1(t,U,A,d,l,s),Nt=Qe(Yc(U.arguments),$i,ht),k=Me&&(!Nt||!Ca(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)?KT(U,$i,e,0,!Me):Sn(U,$i,e)}function ct(U){if(Lc(U,!0))return ct(U.left);if(qm(U))return ct(U.expression);if(La(U))return gt(U.properties,ct);if(fu(U))return gt(U.elements,ct);if(Zu(U))return ct(U.name);if(hc(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)&&!il(U.operand)&&!Bg(U.operand)&&!$j(U.operand)){let Nt=Bt(U.operand);if(Nt){let k,ie=Qe(U.operand,$i,ht);Yv(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 se(U,Me,Nt){if(Me.kind===312){let k=Od(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(!il(k)&&!Bg(k)){let ie=l.getReferencedImportDeclaration(k);if(ie){if(yh(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 pt(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(!il(U)&&!Bg(U)){let k=l.getReferencedImportDeclaration(U);if(k){if(yh(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(wy(U.operatorToken.kind)&&Fe(U.left)&&(!il(U.left)||o2(U.left))&&!Bg(U.left)){let Me=Bt(U.left);if(Me){let Nt=U;for(let k of Me)Nt=Zt(k,dn(Nt));return Nt}}return U}function pt(U){return Yx(U)?t.createPropertyAccessExpression(w,t.createIdentifier("meta")):U}function Bt(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=Ur(Me,N?.exportedBindings[Od(Nt)])}else if(il(U)&&o2(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(!il(U)){let Me=l.getReferencedImportDeclaration(U);if(Me)return Me;let Nt=l.getReferencedValueDeclaration(U);if(Nt&&N?.exportedBindings[Od(Nt)])return Nt;let k=l.getReferencedValueDeclarations(U);if(k){for(let ie of k)if(ie!==Nt&&N?.exportedBindings[Od(ie)])return ie}return Nt}}function dn(U){return Y===void 0&&(Y=[]),Y[is(U)]=!0,U}function un(U){return Y&&U.id&&Y[U.id]}}var uVe=bt({"src/compiler/transformers/module/system.ts"(){"use strict";Zo()}});function GK(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=rs(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(sc(z)||em(s)){m=z,y=void 0;let ee=S(z);return m=void 0,y&&(ee=t.updateSourceFile(ee,at(t.createNodeArray(jV(ee.statements.slice(),y)),ee.statements))),!sc(z)||kd(s)===200||gt(ee.statements,d2)?ee:t.updateSourceFile(ee,at(t.createNodeArray([...ee.statements,Uk(t)]),ee.statements))}return z}function S(z){let ee=bH(t,r(),z,s);if(ee){let me=[],ge=t.copyPrologue(z.statements,me);return Tn(me,ee),Ur(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 kd(s)>=100?D(z):void 0;case 277:return j(z);case 278:return K(z)}return z}function N(z){let ee=c1(t,z,R.checkDefined(m),i,o,s),me=[];if(ee&&me.push(ee),kd(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 R.assertNode(ge,Fe),t.createCallExpression(t.cloneNode(ge),void 0,me)}function D(z){R.assert(sE(z),"import= for internal module references should be handled in an earlier transformer.");let ee;return ee=Tn(ee,Rr(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)),ee=w(ee,z),ih(ee)}function w(z,ee){return $r(ee,32)&&(z=Tn(z,t.createExportDeclaration(void 0,ee.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,vr(ee.name))])))),z}function j(z){return z.isExportEquals?kd(s)===200?Rr(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||!vh(z.exportClause)||!z.moduleSpecifier)return z;let ee=z.exportClause.name,me=t.getGeneratedNameForNode(ee),ge=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(me)),z.moduleSpecifier,z.attributes);Rr(ge,z.exportClause);let q=RF(z)?t.createExportDefault(me):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,me,ee)]));return Rr(q,z),[ge,q]}function Y(z,ee,me){Yi(ee)?((sc(ee)||em(s))&&s.importHelpers&&(h=new Map),d(z,ee,me),h=void 0):d(z,ee,me)}function B(z,ee){return ee=p(z,ee),h&&Fe(ee)&&za(ee)&8192?ce(ee):ee}function ce(z){let ee=vr(z),me=h.get(ee);return me||h.set(ee,me=t.createUniqueName(ee,48)),me}}var pVe=bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Zo()}});function kle(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,R.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 fVe=bt({"src/compiler/transformers/module/node.ts"(){"use strict";Zo()}});function J3(e){return Oi(e)||jo(e)||_p(e)||Xa(e)||Py(e)||Lv(e)||Ok(e)||$I(e)||Kl(e)||hh(e)||Tc(e)||To(e)||ml(e)||Gy(e)||nd(e)||Tm(e)||Ml(e)||j0(e)||kr(e)||Xs(e)||pr(e)||qf(e)}function wle(e){if(Py(e)||Lv(e))return t;return hh(e)||Kl(e)?i:jy(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 na(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 na(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 jy(e){if(Oi(e)||jo(e)||_p(e)||kr(e)||Xs(e)||pr(e)||Xa(e)||Ml(e))return r;return Py(e)||Lv(e)?i:Ok(e)||$I(e)||Kl(e)||hh(e)||Tc(e)||j0(e)?o:To(e)?dp(e,e.parent)&&$r(e.parent,2)?r:s:ml(e)?d:Gy(e)?p:nd(e)?h:Tm(e)||qf(e)?m:R.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${R.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 na(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?na(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:na(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:na(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 R.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 na(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 R.fail(`Unknown parent for parameter: ${R.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:na(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 R.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function p(){let y;return Ac(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:No(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)?R.checkDefined(e.typeExpression):e.type,typeName:qf(e)?No(e):e.name}}}var mVe=bt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Zo()}});function Ole(e,t,r){let i=e.getCompilerOptions();return Dw(t,e,L,i,r?[r]:Vr(e.getSourceFiles(),uj),[VK],!1).diagnostics}function VK(e){let t=()=>R.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:Ie,reportTruncationError:De,moduleResolverHost:N,trackReferencedAmbientModule:J,trackExternalModuleSymbolOfImportTypeNode:xe,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Et},w,j,K,Y,B,ce,z=e.getEmitResolver(),ee=e.getCompilerOptions(),{noResolve:me,stripInternal:ge}=ee;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(Od(He),He)}function re(G){let et=rR(G),Tt=et&&z.tryFindAmbientModule(et);if(Tt?.declarations)for(let He of Tt.declarations)Ld(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,fc(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?xs(w):j&&No(j)?xs(No(j)):j&&kl(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 Ie(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 pt=(He=et.declarations)==null?void 0:He.find(hn=>Gn(hn)===G),Bt=Vr(Tt.declarations,hn=>Gn(hn)!==G);if(pt&&Bt)for(let hn of Bt)e.addDiagnostic(Ma(Pr(hn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Pr(pt,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=pt=>pt.errorNode&&J3(pt.errorNode)?jy(pt.errorNode)(pt):{diagnosticMessage:pt.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:pt.errorNode||G};let He=z.getDeclarationStatementsForSourceFile(G,JT,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=cu(H)?A.createNodeArray(be(H,!0)):zn(H.statements,si,Hi);return A.updateSourceFile(H,[A.createModuleDeclaration([A.createModifier(138)],A.createStringLiteral(a6(e.getEmitHost(),H)),A.createModuleBlock(at(A.createNodeArray($e(We)),H.statements)))],!0,[],[],!1,[])}i=!0;let ue=cu(H)?A.createNodeArray(be(H)):zn(H.statements,si,Hi);return A.updateSourceFile(H,$e(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(Md(HP(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(Md(HP(G,N,!0).declarationFilePath)),He=U(et,Tt),pt;if(cu(K))pt=A.createNodeArray(be(G)),Y.forEach(He),ce=Vr(pt,mT);else{let Me=zn(G.statements,si,Hi);pt=at(A.createNodeArray($e(Me)),G.statements),Y.forEach(He),ce=Vr(pt,mT),sc(G)&&(!s||l&&!d)&&(pt=at(A.createNodeArray([...pt,Uk(A)]),pt))}let Bt=A.updateSourceFile(G,pt,!0,et,dn(),G.hasNoDefaultLib,hn());return Bt.exportedModulesFromDeclarationEmit=S,Bt;function hn(){return Oo(B.keys(),Me=>({fileName:Me,pos:-1,end:-1}))}function dn(){return h?to(Oo(h.keys()),un):[]}function un([Me,Nt]){if(ce){for(let k of ce)if(nd(k)&&bh(k.moduleReference)){let ie=k.moduleReference.expression;if(ss(ie)&&ie.text===Me)return}else if(kc(k)&&Ca(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&&zo(G.sourceFiles,k))return;let H=HP(k,N,!0);ie=H.declarationFilePath||H.jsFilePath||k.fileName}if(ie){let H=D3(ee,K,_o(Nt,N.getCurrentDirectory()),_o(ie,N.getCurrentDirectory()),N);if(!Lp(H)){q([[H,void 0]]);return}let ue=gI(Nt,ie,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ao(ue,"./")&&hI(ue)&&(ue=ue.substring(2)),ao(ue,"node_modules/")||AE(ue))return;Me.push({pos:-1,end:-1,fileName:ue})}}}}function tt(G,et){return me||!zT(G)&&cu(G)||gn(G.referencedFiles,Tt=>{let He=N.getSourceFileFromReference(G,Tt);He&&et.set(Od(He),He)}),et}function Wt(G,et){return gn(G.libReferenceDirectives,Tt=>{N.getLibFileFromReference(Tt)&&et.set(oh(Tt.fileName),!0)}),et}function _t(G){if(G.kind===80)return G;return G.kind===207?A.updateArrayBindingPattern(G,zn(G.elements,et,pF)):A.updateObjectBindingPattern(G,zn(G.elements,et,Xa));function et(Tt){return Tt.kind===232?Tt:(Tt.propertyName&&Ya(Tt.propertyName)&&Vl(Tt.propertyName.expression)&&Li(Tt.propertyName.expression,p),A.updateBindingElement(Tt,Tt.dotDotDotToken,Tt.propertyName,_t(Tt.name),ft(Tt)?Tt.initializer:void 0))}}function Je(G,et,Tt){let He;E||(He=r,r=jy(G));let pt=A.updateParameterDeclaration(G,hVe(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),pt}function ft(G){return gVe(G)&&z.isLiteralConstDeclaration(Ro(G))}function Zt(G){if(ft(G))return z.createLiteralConstValue(Ro(G),D)}function en(G,et,Tt){if(!Tt&&fp(G,2)||ft(G))return;let He=G.kind===169&&(z.isRequiredInitializedParameter(G)||z.isOptionalUninitializedParameterProperty(G));if(et&&!He)return Qe(et,Ot,ji);if(!Ro(G))return et?Qe(et,Ot,ji):A.createKeywordTypeNode(133);if(G.kind===178)return A.createKeywordTypeNode(133);w=G.name;let pt;if(E||(pt=r,r=jy(G)),G.kind===260||G.kind===208)return Bt(z.createTypeOfDeclaration(G,p,JT,D));if(G.kind===169||G.kind===172||G.kind===171)return _p(G)||!G.initializer?Bt(z.createTypeOfDeclaration(G,p,JT,D,He)):Bt(z.createTypeOfDeclaration(G,p,JT,D,He)||z.createTypeOfExpression(G.initializer,p,JT,D));return Bt(z.createReturnTypeOfSignatureDeclaration(G,p,JT,D));function Bt(hn){return w=void 0,E||(r=pt),hn||A.createKeywordTypeNode(133)}}function Dn(G){switch(G=Ro(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=>Tc(He)&&!He.body);return!Tt||Tt.indexOf(G)===Tt.length-1}function pn(G){return jc(G)?!1:$o(G.name)?gt(G.name.elements,pn):z.isDeclarationVisible(G)}function Yt(G,et,Tt){if(fp(G,2))return A.createNodeArray();let He=mn(et,pt=>Je(pt,Tt));return He?A.createNodeArray(He,et.hasTrailingComma):A.createNodeArray()}function qt(G,et){let Tt;if(!et){let He=k0(G);He&&(Tt=[Je(He)])}if(hp(G)){let He;if(!et){let pt=kN(G);if(pt){let Bt=ke(G,z.getAllAccessorDeclarations(G));He=Je(pt,void 0,Bt)}}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,ml)}function uo(G){return Yi(G)||Tm(G)||Yl(G)||Ac(G)||mu(G)||Yo(G)||j0(G)||MR(G)}function Li(G,et){let Tt=z.isEntityNameVisible(G,et);pe(Tt),q(z.getTypeReferenceDirectivesForEntityName(G))}function Eo(G,et){return kp(G)&&kp(et)&&(G.jsDoc=et.jsDoc),ac(G,C_(et))}function Zn(G,et){if(et){if(s=s||G.kind!==267&&G.kind!==205,ss(et))if(o){let Tt=Rie(e.getEmitHost(),z,G);if(Tt)return A.createStringLiteral(Tt)}else{let Tt=z.getSymbolOfExternalModuleSpecifier(et);Tt&&(S||(S=[])).push(Tt)}return et}}function jr(G){if(z.isDeclarationVisible(G))if(G.moduleReference.kind===283){let et=SN(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,Zn(G,et)))}else{let et=r;return r=jy(G),Li(G.moduleReference,p),r=et,G}}function Sr(G){if(!G.importClause)return A.updateImportDeclaration(G,G.modifiers,G.importClause,Zn(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),Zn(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),Zn(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),Zn(G,G.moduleSpecifier),on(G.attributes));if(z.isImportRequiredByAugmentation(G))return A.updateImportDeclaration(G,G.modifiers,void 0,Zn(G,G.moduleSpecifier),on(G.attributes))}function on(G){let et=tD(G);return G&&et!==void 0?G:void 0}function $e(G){for(;Nn(m);){let Tt=m.shift();if(!CF(Tt))return R.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${R.formatSyntaxKind(Tt.kind)}`);let He=i;i=Tt.parent&&Yi(Tt.parent)&&!(sc(Tt.parent)&&o);let pt=Ao(Tt);i=He,y.set(Od(Tt),pt)}return zn(G,et,Hi);function et(Tt){if(CF(Tt)){let He=Od(Tt);if(y.has(He)){let pt=y.get(He);return y.delete(He),pt&&((So(pt)?gt(pt,fF):fF(pt))&&(l=!0),Yi(Tt.parent)&&(So(pt)?gt(pt,d2):d2(pt))&&(s=!0)),pt}}return Tt}}function Ot(G){if(Be(G)||Kd(G)&&(Dn(G)||Fv(G)&&!z.isLateBound(Ro(G)))||Yo(G)&&z.isImplementationOfOverload(G)||hae(G))return;let et;uo(G)&&(et=p,p=G);let Tt=r,He=J3(G),pt=E,Bt=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((Kl(G)||hh(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=jy(G)),QI(G)&&Li(G.exprName,p),Bt&&(E=!0),vVe(G))switch(G.kind){case 233:{(Xu(G.expression)||Vl(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),Yt(G,G.parameters),en(G,G.type)));case 176:{let dn=A.createConstructorDeclaration(Rt(G),Yt(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),Yt(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,qt(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,qt(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),Yt(G,G.parameters),en(G,G.type)));case 179:return hn(A.updateCallSignature(G,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type)));case 181:return hn(A.updateIndexSignature(G,Rt(G),Yt(G,G.parameters),Qe(G.type,Ot,ji)||A.createKeywordTypeNode(133)));case 260:return $o(G.name)?Ba(G.name):(Bt=!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=Qe(G.checkType,Ot,ji),un=Qe(G.extendsType,Ot,ji),U=p;p=G.trueType;let Me=Qe(G.trueType,Ot,ji);p=U;let Nt=Qe(G.falseType,Ot,ji);return R.assert(dn),R.assert(un),R.assert(Me),R.assert(Nt),hn(A.updateConditionalTypeNode(G,dn,un,Me,Nt))}case 184:return hn(A.updateFunctionTypeNode(G,zn(G.typeParameters,Ot,ml),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Ot,ji))));case 185:return hn(A.updateConstructorTypeNode(G,Rt(G),zn(G.typeParameters,Ot,ml),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Ot,ji))));case 205:return Wv(G)?(re(G),hn(A.updateImportTypeNode(G,A.updateLiteralTypeNode(G.argument,Zn(G,G.argument.literal)),G.attributes,G.qualifier,zn(G.typeArguments,Ot,ji),G.isTypeOf))):hn(G);default:R.assertNever(G,`Attempted to process unhandled node kind: ${R.formatSyntaxKind(G.kind)}`)}return ZI(G)&&ys(K,G.pos).line===ys(K,G.end).line&&dr(G,1),hn(Sn(G,Ot,e));function hn(dn){return dn&&He&&Fv(G)&&kn(G),uo(G)&&(p=et),He&&!E&&(r=Tt),Bt&&(E=pt),dn===G?dn:dn&&Rr(Eo(dn,G),G)}}function In(G){return G.parent.kind===174&&fp(G.parent,2)}function si(G){if(!yVe(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,Zn(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,JT,D),void 0);j=void 0;let pt=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([He],2));return Eo(pt,G),Rk(G),[pt,A.updateExportAssignment(G,G.modifiers,Tt)]}}}let et=Ao(G);return y.set(Od(G),et),G}function yi(G){if(nd(G)||fp(G,2048)||!Am(G))return G;let et=A.createModifiersFromModifierFlags(du(G)&131039);return A.replaceModifiers(G,et)}function $i(G,et,Tt,He){let pt=A.updateModuleDeclaration(G,et,Tt,He);if(Ld(pt)||pt.flags&32)return pt;let Bt=A.createModuleDeclaration(pt.modifiers,pt.name,pt.body,pt.flags|32);return Rr(Bt,pt),at(Bt,pt),Bt}function Ao(G){if(m)for(;xx(m,G););if(Be(G))return;switch(G.kind){case 271:{let hn=jr(G);return hn&&re(G),hn}case 272:{let hn=Sr(G);return hn&&re(G),hn}}if(Kd(G)&&Dn(G)||Yo(G)&&z.isImplementationOfOverload(G))return;let et;uo(G)&&(et=p,p=G);let Tt=J3(G),He=r;Tt&&(r=jy(G));let pt=i;switch(G.kind){case 265:{i=!1;let hn=Bt(A.updateTypeAliasDeclaration(G,Rt(G),G.name,zn(G.typeParameters,Ot,ml),R.checkDefined(Qe(G.type,Ot,ji))));return i=pt,hn}case 264:return Bt(A.updateInterfaceDeclaration(G,Rt(G),G.name,hi(G,G.typeParameters),st(G.heritageClauses),zn(G.members,Ot,dT)));case 262:{let hn=Bt(A.updateFunctionDeclaration(G,Rt(G),void 0,G.name,hi(G,G.typeParameters),Yt(G,G.parameters),en(G,G.type),void 0));if(hn&&z.isExpandoFunctionDeclaration(G)&&Kn(G)){let dn=z.getPropertiesOfContainerFunction(G),un=Eh.createModuleDeclaration(void 0,hn.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);ja(un,p),un.locals=oa(dn),un.symbol=dn[0].parent;let U=[],Me=to(dn,We=>{if(!H6(We.valueDeclaration))return;let Ne=Vi(We.escapedName);if(!Yp(Ne,99))return;r=jy(We.valueDeclaration);let It=z.createTypeOfDeclaration(We.valueDeclaration,un,JT,D);r=He;let Dt=PI(Ne),Kt=Dt?A.getGeneratedNameForNode(We.valueDeclaration):A.createIdentifier(Ne);Dt&&U.push([Kt,Ne]);let En=A.createVariableDeclaration(Kt,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(du(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=$e(U);G.flags&33554432&&(l=!1),!E_(G)&&!lt(Me)&&!d&&(l?Me=A.createNodeArray([...Me,Uk(A)]):Me=zn(Me,yi,Hi));let Nt=A.updateModuleBlock(hn,Me);i=pt,l=dn,d=un;let k=Rt(G);return Bt($i(G,k,I0(G)?Zn(G,G.name):G.name,Nt))}else{i=pt;let dn=Rt(G);i=!1,Qe(hn,si);let un=Od(hn),U=y.get(un);return y.delete(un),Bt($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=tg(G),U;if(un){let ue=r;U=xL(va(un.parameters,We=>{if(!$r(We,31)||Be(We))return;if(r=jy(We),We.name.kind===80)return Eo(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 Kt of It.elements)jc(Kt)||($o(Kt.name)&&(Dt=bo(Dt,Ne(Kt.name))),Dt=Dt||[],Dt.push(A.createPropertyDeclaration(Rt(We),Kt.name,void 0,en(Kt,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=bo(bo(Nt,U),zn(G.members,Ot,Qc)),ie=A.createNodeArray(k),H=S_(G);if(H&&!Vl(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,JT,D),void 0),It=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([Ne],2)),Dt=A.createNodeArray(mn(G.heritageClauses,Kt=>{if(Kt.token===96){let En=r;r=jy(Kt.types[0]);let wn=A.updateHeritageClause(Kt,mn(Kt.types,Bn=>A.updateExpressionWithTypeArguments(Bn,We,zn(Bn.typeArguments,Ot,ji))));return r=En,wn}return A.updateHeritageClause(Kt,zn(A.createNodeArray(Vr(Kt.types,En=>Vl(En.expression)||En.expression.kind===106)),Ot,Gy))}));return[It,Bt(A.updateClassDeclaration(G,hn,G.name,dn,Dt,ie))]}else{let ue=st(G.heritageClauses);return Bt(A.updateClassDeclaration(G,hn,G.name,dn,ue,ie))}}case 243:return Bt(ua(G));case 266:return Bt(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 Eo(A.updateEnumMember(hn,hn.name,un),hn)}))))}return R.assertNever(G,`Unhandled top-level node in declaration emit: ${R.formatSyntaxKind(G.kind)}`);function Bt(hn){return uo(G)&&(p=et),Tt&&(r=He),G.kind===267&&(i=pt),hn===G?hn:(j=void 0,w=void 0,hn&&Rr(Eo(hn,G),G))}}function ua(G){if(!gn(G.declarationList.declarations,pn))return;let et=zn(G.declarationList.declarations,Ot,Oi);if(!Nn(et))return;let Tt=A.createNodeArray(Rt(G)),He;return T2(G.declarationList)||S2(G.declarationList)?(He=A.createVariableDeclarationList(et,2),Rr(He,G.declarationList),at(He,G.declarationList),ac(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)?$o(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=wle(G)),w=G.name,R.assert(z.isLateBound(Ro(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 kl(G)||$l(G)}function lt(G){return gt(G,ct)}function Rt(G){let et=du(G),Tt=se(G);return et===Tt?Tw(G.modifiers,He=>ri(He,Ta),Ta):A.createModifiersFromModifierFlags(Tt)}function se(G){let et=130030,Tt=i&&!_Ve(G)?128:0,He=G.parent.kind===312;return(!He||o&&He&&sc(G.parent))&&(et^=128,Tt=0),XIe(G,et,Tt)}function ke(G,et){let Tt=Wle(G);return!Tt&&G!==et.firstAccessor&&(Tt=Wle(et.firstAccessor),r=jy(et.firstAccessor)),!Tt&&et.secondAccessor&&G!==et.secondAccessor&&(Tt=Wle(et.secondAccessor),r=jy(et.secondAccessor)),Tt}function st(G){return A.createNodeArray(Vr(mn(G,et=>A.updateHeritageClause(et,zn(A.createNodeArray(Vr(et.types,Tt=>Vl(Tt.expression)||et.token===96&&Tt.expression.kind===106)),Ot,Gy))),et=>et.types&&!!et.types.length))}}function _Ve(e){return e.kind===264}function hVe(e,t,r,i){return e.createModifiersFromModifierFlags(XIe(t,r,i))}function XIe(e,t=131070,r=0){let i=du(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Wle(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function gVe(e){switch(e.kind){case 172:case 171:return!fp(e,2);case 169:case 260:return!0}return!1}function yVe(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 vVe(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 JT,bVe=bt({"src/compiler/transformers/declarations.ts"(){"use strict";Zo(),Vse(),JT=531469}});function EVe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return GK;case 4:return Lle;case 100:case 199:return kle;default:return BK}}function jK(e,t,r){return{scriptTransformers:SVe(e,t,r),declarationTransformers:TVe(t)}}function SVe(e,t,r){if(r)return Xe;let i=rs(e),o=kd(e),s=sP(e),l=[];return Ur(l,t&&mn(t.before,$Ie)),l.push(mle),e.experimentalDecorators&&l.push(gle),C6(e)&&l.push(Dle),i<99&&l.push(Ale),!e.experimentalDecorators&&(i<99||!s)&&l.push(yle),l.push(_le),i<8&&l.push(Tle),i<7&&l.push(Sle),i<6&&l.push(Ele),i<5&&l.push(ble),i<4&&l.push(vle),i<3&&l.push(Cle),i<2&&(l.push(Nle),l.push(Mle)),l.push(EVe(o)),i<1&&l.push(Ple),Ur(l,t&&mn(t.after,$Ie)),l}function TVe(e){let t=[];return t.push(VK),Ur(t,e&&mn(e.afterDeclarations,IVe)),t}function AVe(e){return t=>aH(t)?e.transformBundle(t):e.transformSourceFile(t)}function YIe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):AVe(i)}}function $Ie(e){return YIe(e,Im)}function IVe(e){return YIe(e,(t,r)=>r)}function VP(e,t){return t}function Rw(e,t,r){r(e,t)}function Dw(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,ee=VP,me=Rw,ge=0,q=[],J={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Eu(()=>nae(J)),startLexicalEnvironment:be,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:tt,endLexicalEnvironment:Wt,setLexicalEnvironmentFlags:_t,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:De,hoistFunctionDeclaration:Le,addInitializationStatement:Et,startBlockScope:ft,endBlockScope:Zt,addBlockScopedVariable:en,requestEmitHelper:Dn,readEmitHelpers:Kn,enableSubstitution:ne,enableEmitNotification:Ge,isSubstitutionEnabled:he,isEmitNotificationEnabled:ve,get onSubstituteNode(){return ee},set onSubstituteNode(Yt){R.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Yt!==void 0,"Value must not be 'undefined'"),ee=Yt},get onEmitNode(){return me},set onEmitNode(Yt){R.assert(ge<1,"Cannot modify transformation hooks after initialization has completed."),R.assert(Yt!==void 0,"Value must not be 'undefined'"),me=Yt},addDiagnostic(Yt){q.push(Yt)}};for(let Yt of o)VU(Gn(Ro(Yt)));tl("beforeTransform");let re=s.map(Yt=>Yt(J)),pe=Yt=>{for(let qt of re)Yt=qt(Yt);return Yt};ge=1;let xe=[];for(let Yt of o)(d=ir)==null||d.push(ir.Phase.Emit,"transformNodes",Yt.kind===312?{path:Yt.path}:{kind:Yt.kind,pos:Yt.pos,end:Yt.end}),xe.push((l?pe:fe)(Yt)),(p=ir)==null||p.pop();return ge=2,tl("afterTransform"),Xp("transformTime","beforeTransform","afterTransform"),{transformed:xe,substituteNode:Ce,emitNodeWithNotification:Ie,isEmitNotificationEnabled:ve,dispose:pn,diagnostics:q};function fe(Yt){return Yt&&(!Yi(Yt)||!Yt.isDeclarationFile)?pe(Yt):Yt}function ne(Yt){R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Yt]|=1}function he(Yt){return(h[Yt.kind]&1)!==0&&(za(Yt)&8)===0}function Ce(Yt,qt){return R.assert(ge<3,"Cannot substitute a node after the result is disposed."),qt&&he(qt)&&ee(Yt,qt)||qt}function Ge(Yt){R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),h[Yt]|=2}function ve(Yt){return(h[Yt.kind]&2)!==0||(za(Yt)&4)!==0}function Ie(Yt,qt,hi){R.assert(ge<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),qt&&(ve(qt)?me(Yt,qt,hi):hi(Yt,qt))}function De(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed.");let qt=dr(r.createVariableDeclaration(Yt),128);m?m.push(qt):m=[qt],S&1&&(S|=2)}function Le(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),dr(Yt,2097152),y?y.push(Yt):y=[Yt]}function Et(Yt){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),dr(Yt,2097152),E?E.push(Yt):E=[Yt]}function be(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.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(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is already suspended."),K=!0}function tt(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(K,"Lexical environment is not suspended."),K=!1}function Wt(){R.assert(ge>0,"Cannot modify the lexical environment during initialization."),R.assert(ge<2,"Cannot modify the lexical environment after transformation has completed."),R.assert(!K,"Lexical environment is suspended.");let Yt;if(m||y||E){if(y&&(Yt=[...y]),m){let qt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));dr(qt,2097152),Yt?Yt.push(qt):Yt=[qt]}E&&(Yt?Yt=[...Yt,...E]:Yt=[...E])}return j--,m=A[j],y=N[j],E=D[j],S=w[j],j===0&&(A=[],N=[],D=[],w=[]),Yt}function _t(Yt,qt){S=qt?S|Yt:S&~Yt}function Je(){return S}function ft(){R.assert(ge>0,"Cannot start a block scope during initialization."),R.assert(ge<2,"Cannot start a block scope after transformation has completed."),Y[B]=ce,B++,ce=void 0}function Zt(){R.assert(ge>0,"Cannot end a block scope during initialization."),R.assert(ge<2,"Cannot end a block scope after transformation has completed.");let Yt=gt(ce)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ce.map(qt=>r.createVariableDeclaration(qt)),1))]:void 0;return B--,ce=Y[B],B===0&&(Y=[]),Yt}function en(Yt){R.assert(B>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Yt)}function Dn(Yt){if(R.assert(ge>0,"Cannot modify the transformation context during initialization."),R.assert(ge<2,"Cannot modify the transformation context after transformation has completed."),R.assert(!Yt.scoped,"Cannot request a scoped emit helper."),Yt.dependencies)for(let qt of Yt.dependencies)Dn(qt);z=Tn(z,Yt)}function Kn(){R.assert(ge>0,"Cannot modify the transformation context during initialization."),R.assert(ge<2,"Cannot modify the transformation context after transformation has completed.");let Yt=z;return z=void 0,Yt}function pn(){if(ge<3){for(let Yt of o)VU(Gn(Ro(Yt)));m=void 0,A=void 0,y=void 0,N=void 0,ee=void 0,me=void 0,z=void 0,ge=3}}}var UK,jP,xVe=bt({"src/compiler/transformer.ts"(){"use strict";Zo(),iT(),UK={scriptTransformers:Xe,declarationTransformers:Xe},jP={factory:L,getCompilerOptions:()=>({}),getEmitResolver:Uo,getEmitHost:Uo,getEmitHelperFactory:Uo,startLexicalEnvironment:qa,resumeLexicalEnvironment:qa,suspendLexicalEnvironment:qa,endLexicalEnvironment:qb,setLexicalEnvironmentFlags:qa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:qa,hoistFunctionDeclaration:qa,addInitializationStatement:qa,startBlockScope:qa,endBlockScope:qb,addBlockScopedVariable:qa,requestEmitHelper:qa,readEmitHelpers:Uo,enableSubstitution:qa,enableEmitNotification:qa,isSubstitutionEnabled:Uo,isEmitNotificationEnabled:Uo,onSubstituteNode:VP,onEmitNode:Rw,addDiagnostic:qa}}});function Fle(e){return Tl(e,".tsbuildinfo")}function HK(e,t,r,i=!1,o,s){let l=So(r)?r:Fj(e,r,i),d=e.getCompilerOptions();if(Cs(d)){let p=e.getPrependNodes();if(l.length||p.length){let h=L.createBundle(l,p),m=t(HP(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(HP(p,e,i),p);if(h)return h}if(s){let p=Uy(d);if(p)return t({buildInfoPath:p},void 0)}}}function Uy(e){let t=e.configFilePath;if(!aP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=Cs(e),i;if(r)i=Tu(r);else{if(!t)return;let o=Tu(t);i=e.outDir?e.rootDir?xv(e.outDir,_m(e.rootDir,o,!0)):Yr(e.outDir,ic(o)):o}return i+".tsbuildinfo"}function UP(e,t){let r=Cs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&QIe(i,e),s=t||Af(e)?Tu(r)+".d.ts":void 0,l=s&&bk(e)?s+".map":void 0,d=Uy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function HP(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return UP(i,r);{let o=Die(e.fileName,t,q3(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:QIe(d,i),h=r||Af(i)&&!s?Cie(e.fileName,t):void 0,m=h&&bk(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function QIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function q3(e,t){return Tl(e,".json")?".json":t.jsx===1&&Sc(e,[".jsx",".tsx"])?".jsx":Sc(e,[".mts",".mjs"])?".mjs":Sc(e,[".cts",".cjs"])?".cjs":".js"}function ZIe(e,t,r,i){return r?xv(r,_m(i(),e,t)):e}function KP(e,t,r,i=()=>eD(t,r)){return KK(e,t.options,r,i)}function KK(e,t,r,i){return fE(ZIe(e,r,t.declarationDir||t.outDir,i),l6(e))}function e1e(e,t,r,i=()=>eD(t,r)){if(t.options.emitDeclarationOnly)return;let o=Tl(e,".json"),s=JK(e,t.options,r,i);return!o||Rg(e,s,R.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function JK(e,t,r,i){return fE(ZIe(e,r,t.outDir,i),q3(e,t))}function t1e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Xe}}function n1e(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=UP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function r1e(e,t,r,i,o){if(Sd(t))return;let s=e1e(t,e,r,o);if(i(s),!Tl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Af(e.options))){let l=KP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function JP(e,t,r,i,o){let s;return e.rootDir?(s=_o(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=oi(Md(e.configFilePath)),o?.(s)):s=Ule(t(),r,i),s&&s[s.length-1]!==rl&&(s+=rl),s}function eD({options:e,fileNames:t},r){return JP(e,()=>Vr(t,i=>!(e.noEmitForJsFiles&&Sc(i,RR))&&!Sd(i)),oi(Md(R.checkDefined(e.configFilePath))),Pd(!r))}function X3(e,t){let{addOutput:r,getOutputs:i}=t1e();if(Cs(e.options))n1e(e,r);else{let o=Eu(()=>eD(e,t));for(let s of e.fileNames)r1e(e,s,t,r,o);r(Uy(e.options))}return i()}function i1e(e,t,r){t=ma(t),R.assert(zo(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=t1e();return Cs(e.options)?n1e(e,i):r1e(e,t,r,i),o()}function qK(e,t){if(Cs(e.options)){let{jsFilePath:o,declarationFilePath:s}=UP(e.options,!1);return R.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Eu(()=>eD(e,t));for(let o of e.fileNames){if(Sd(o))continue;let s=e1e(o,e,t,r);if(s)return s;if(!Tl(o,".json")&&Af(e.options))return KP(o,e,t,r)}let i=Uy(e.options);return i||R.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function Y3(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,d){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||bk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=pR(),E=Wy(p),S=tk(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,Ie,De;let Le;fe&&ne&&aH(ne)&&(Le=oi(_o(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Et(t.getCommonSourceDirectory()),sourceFiles:ne.sourceFiles.map(be=>Et(_o(be.fileName,t.getCurrentDirectory())))}),(he=ir)==null||he.push(ir.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:J}),Y(ne,J,re,Et),(Ce=ir)==null||Ce.pop(),(Ge=ir)==null||Ge.push(ir.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),B(ne,pe,xe,Et),(ve=ir)==null||ve.pop(),(Ie=ir)==null||Ie.push(ir.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),K(D,fe),(De=ir)==null||De.pop();function Et(be){return y0(_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)||Cw(void 0,J);MN(t,y,re,zle(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=Dw(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=IE(ne,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});R.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:Vr(fe,uj),he=Cs(p)?[L.createBundle(ne,Yi(J)?void 0:J.prepends)]:ne;s&&!Af(p)&&ne.forEach(ce);let Ce=Dw(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){R.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},Ie=IE(ve,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});z(re,pe,Ce,Ie,{sourceMap:ve.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(re),pe&&m.push(pe)),D&&(D.dts=Ie.bundleFileInfo)}Ce.dispose()}function ce(J){if(kl(J)){J.expression.kind===80&&e.collectLinkedAliases(J.expression,!0);return}else if(Jd(J)){e.collectLinkedAliases(J.propertyName||J.name,!0);return}Bo(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;ee(fe,ne)&&(ve=Xse(t,ic(Md(J)),me(fe),ge(fe,J,Ce),fe)),he?xe.writeBundle(he,S,ve):xe.writeFile(Ce,S,ve);let Ie;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),Ie=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${Le}`)),re){let Et=ve.toString();MN(t,y,re,Et,!1,Ge),xe.bundleFileInfo&&(xe.bundleFileInfo.mapHash=XT(Et,t))}}else S.writeLine();let De=S.getText();MN(t,y,J,De,!!p.emitBOM,Ge,{sourceMapUrlPos:Ie,diagnostics:pe.diagnostics}),xe.bundleFileInfo&&(xe.bundleFileInfo.hash=XT(De,t)),S.clear()}function ee(J,re){return(J.sourceMap||J.inlineSourceMap)&&(re.kind!==312||!Tl(re.fileName,".json"))}function me(J){let re=Md(J.sourceRoot||"");return re&&Bc(re)}function ge(J,re,pe){if(J.sourceRoot)return t.getCommonSourceDirectory();if(J.mapRoot){let xe=Md(J.mapRoot);return pe&&(xe=oi(d6(pe.fileName,t,xe))),lh(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,${Xie(gd,he)}`}let ne=ic(Md(R.checkDefined(xe)));if(J.mapRoot){let he=Md(J.mapRoot);return fe&&(he=oi(d6(fe.fileName,t,he))),lh(he)===0?(he=Yr(t.getCommonSourceDirectory(),he),encodeURI(gI(oi(ma(pe)),Yr(he,ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Yr(he,ne))}return encodeURI(ne)}}function Cw(e,t){return{bundle:t,program:e,version:Jp}}function zle(e){return JSON.stringify(e)}function $3(e,t){return qj(e,t)}function RVe(e,t,r){var i;let o=R.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&g0(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(),_o(l,t),!r.useCaseSensitiveFileNames()),y.text=p?.text??"",QN(y,0,p?.text.length??0),AR(y.statements,y),QN(m,y.end,0),ja(m,y),y})}function Ble(e,t,r,i){var o,s;(o=ir)==null||o.push(ir.Phase.Emit,"emitUsingBuildInfo",{},!0),tl("beforeEmit");let l=DVe(e,t,r,i);return tl("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),(s=ir)==null||s.pop(),l}function DVe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=UP(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(R.checkDefined(s));if(!m||XT(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&&XT(y,t)!==h.bundle.js.mapHash)return l;let E=d&&t.readFile(d);if(d&&!E||d&&XT(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&&XT(S,t)!==h.bundle.dts.mapHash)return p;let A=oi(_o(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=RVe(h.bundle,A,t),K,Y,B={getPrependNodes:Eu(()=>[...w,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>_o(h.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:qb,getSourceFileByPath:qb,getSourceFiles:()=>j,getLibFileFromReference:Uo,isSourceFileFromExternalLibrary:jm,getResolvedProjectReferenceToRedirect:qb,getProjectReferenceRedirect:qb,isSourceOfProjectReferenceRedirect:jm,writeFile:(ce,z,ee,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:R.fail(`Unexpected path: ${ce}`)}D.push({name:ce,text:z,writeByteOrderMark:ee,data:q})},isEmitBlocked:jm,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=XT(K,t,Y));let{js:ee,dts:me,sourceFiles:ge}=h.bundle;return ce.js.sources=ee.sources,me&&(ce.dts.sources=me.sources),ce.sourceFiles=ge,Cw(z,ce)},getSourceFileFromReference:qb,redirectTargetsMap:qp(),getFileIncludeReasons:Uo,createHash:ea(t,t.createHash)};return Y3(Q3,B,void 0,jK(e.options,i)),D}function IE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Rw,isEmitNotificationEnabled:o,substituteNode:s=VP,onBeforeEmitNode:l,onAfterEmitNode:d,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,S=!!e.omitBraceSourceMapPositions,A=Wy(e),N=kd(e),D=new Map,w,j,K,Y,B,ce,z,ee,me,ge,q,J,re,pe,xe,fe=e.preserveSourceNewlines,ne,he,Ce,Ge=yA,ve,Ie=e.writeBundleFileInfo?{sections:[]}:void 0,De=Ie?R.checkDefined(e.relativeToBuildInfo):void 0,Le=e.recordInternalSection,Et=0,be="text",ze=!0,tt,Wt,_t=-1,Je,ft=-1,Zt=-1,en=-1,Dn=-1,Kn,pn,Yt=!1,qt=!!e.removeComments,hi,uo,{enter:Li,exit:Eo}=WEe(E,"commentTime","beforeComment","afterComment"),Zn=L.parenthesizer,jr={select:I=>I===0?Zn.parenthesizeLeadingTypeArgument:void 0},Sr=Kg();return et(),{printNode:on,printList:$e,printFile:In,printBundle:Ot,writeNode:yi,writeList:$i,writeFile:lt,writeBundle:Be,bundleFileInfo:Ie};function on(I,oe,ut){switch(I){case 0:R.assert(Yi(oe),"Expected a SourceFile node.");break;case 2:R.assert(Fe(oe),"Expected an Identifier node.");break;case 1:R.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,ut,Rt()),se()}function $e(I,oe,ut){return $i(I,oe,ut,Rt()),se()}function Ot(I){return Be(I,Rt(),void 0),se()}function In(I){return lt(I,Rt(),void 0),se()}function si(I){return ct(I,Rt()),se()}function yi(I,oe,ut,nn){let Mr=he;G(nn,void 0),ke(I,oe,ut),et(),he=Mr}function $i(I,oe,ut,nn){let Mr=he;G(nn,void 0),ut&&st(ut),Ys(void 0,oe,I),et(),he=Mr}function Ao(){return he.getTextPosWithWriteLine?he.getTextPosWithWriteLine():he.getTextPos()}function ua(I,oe,ut){let nn=Qs(Ie.sections);nn&&nn.kind===ut?nn.end=oe:Ie.sections.push({pos:I,end:oe,kind:ut})}function Ba(I){if(Le&&Ie&&w&&(Kd(I)||Ll(I))&&zV(I,w)&&be!=="internal"){let oe=be;return kn(he.getTextPos()),Et=Ao(),be="internal",oe}}function vn(I){I&&(kn(he.getTextPos()),Et=Ao(),be=I)}function kn(I){return EtR.assert(ioe(_a))),Ie.sections.push({pos:ki,end:he.getTextPos(),kind:"prepend",data:De(Mr.fileName),texts:Zi}))}}Et=Ao();for(let Mr of I.sourceFiles)ke(0,Mr,Mr);if(Ie&&I.sourceFiles.length){let Mr=he.getTextPos();if(kn(Mr)){let ki=CM(I);ki&&(Ie.sources||(Ie.sources={}),Ie.sources.prologues=ki);let vi=Dt(I);vi&&(Ie.sources||(Ie.sources={}),Ie.sources.helpers=vi)}}et(),he=nn}function ct(I,oe){let ut=he;G(oe,void 0),ke(4,I,void 0),et(),he=ut}function lt(I,oe,ut){ve=!0;let nn=he;G(oe,ut),pb(I),Qg(I),ke(0,I,I),et(),he=nn}function Rt(){return Ce||(Ce=tk(A))}function se(){let I=Ce.getText();return Ce.clear(),I}function ke(I,oe,ut){ut&&st(ut),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,ee=[],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(R.checkDefined(w)))}function He(I,oe){if(I===void 0)return;let ut=Ba(I);U(4,I,oe),vn(ut)}function pt(I){I!==void 0&&U(2,I,void 0)}function Bt(I,oe){I!==void 0&&U(1,I,oe)}function hn(I){U(Ca(I)?6:4,I)}function dn(I){fe&&ym(I)&4&&(fe=!1)}function un(I){fe=I}function U(I,oe,ut){uo=ut,k(0,I,oe)(I,oe),uo=void 0}function Me(I){return!qt&&!Yi(I)}function Nt(I){return!ze&&!Yi(I)&&!KF(I)&&!zT(I)&&!Eae(I)}function k(I,oe,ut){switch(I){case 0:if(i!==Rw&&(!o||o(ut)))return H;case 1:if(s!==VP&&(hi=s(oe,ut)||ut)!==ut)return uo&&(hi=uo(hi)),It;case 2:if(Me(ut))return $D;case 3:if(Nt(ut))return JE;case 4:return ue;default:return R.assertNever(I)}}function ie(I,oe,ut){return k(I+1,oe,ut)}function H(I,oe){let ut=ie(0,I,oe);i(I,oe,ut)}function ue(I,oe){if(l?.(oe),fe){let ut=fe;dn(oe),We(I,oe),un(ut)}else We(I,oe);d?.(oe),uo=void 0}function We(I,oe,ut=!0){if(ut){let nn=jU(oe);if(nn)return ho(I,oe,nn)}if(I===0)return q1(ta(oe,Yi));if(I===2)return Hr(ta(oe,Fe));if(I===6)return Bn(ta(oe,Ca),!0);if(I===3)return Ne(ta(oe,ml));if(I===7)return G1(ta(oe,i1));if(I===5)return R.assertNode(oe,rH),no(!0);if(I===4){switch(oe.kind){case 16:case 17:case 18:return Bn(oe,!1);case 80:return Hr(oe);case 81:return Io(oe);case 166:return xn(oe);case 167:return Zl(oe);case 168:return Po(oe);case 169:return ls(oe);case 170:return Bs(oe);case 171:return _l(oe);case 172:return dd(oe);case 173:return mo(oe);case 174:return sa(oe);case 175:return ud(oe);case 176:return Ss(oe);case 177:case 178:return Na(oe);case 179:return pl(oe);case 180:return Nf(oe);case 181:return lc(oe);case 182:return Mo(oe);case 183:return tn(oe);case 184:return Gs(oe);case 185:return xc(oe);case 186:return de(oe);case 187:return $(oe);case 188:return Pe(oe);case 189:return cn(oe);case 190:return mr(oe);case 192:return Fr(oe);case 193:return Di(oe);case 194:return Cr(oe);case 195:return Jo(oe);case 196:return bl(oe);case 233:return wt(oe);case 197:return Hc();case 198:return Vs(oe);case 199:return yc(oe);case 200:return bs(oe);case 201:return Kc(oe);case 202:return br(oe);case 203:return tp(oe);case 204:return Rl(oe);case 205:return Wc(oe);case 206:return im(oe);case 207:return _u(oe);case 208:return Re(oe);case 239:return jt(oe);case 240:return sl();case 241:return er(oe);case 243:return Xr(oe);case 242:return no(!1);case 244:return ka(oe);case 245:return wa(oe);case 246:return fd(oe);case 247:return Rc(oe);case 248:return Tp(oe);case 249:return Vu(oe);case 250:return sb(oe);case 251:return Dm(oe);case 252:return Cm(oe);case 253:return _S(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 Vt(oe);case 262:return _n(oe);case 263:return Xo(oe);case 264:return Qd(oe);case 265:return md(oe);case 266:return Xg(oe);case 267:return kE(oe);case 268:return W1(oe);case 269:return wE(oe);case 270:return j1(oe);case 271:return WD(oe);case 272:return zD(oe);case 273:return sA(oe);case 274:return hS(oe);case 280:return gS(oe);case 275:return F1(oe);case 276:return BD(oe);case 277:return z1(oe);case 278:return B1(oe);case 279:return yS(oe);case 281:return lb(oe);case 300:return V1(oe);case 301:return lA(oe);case 282:return;case 283:return OE(oe);case 12:return Yg(oe);case 286:case 289:return WE(oe);case 287:case 290:return xh(oe);case 291:return ju(oe);case 292:return Mf(oe);case 293:return Ap(oe);case 294:return VD(oe);case 295:return U1(oe);case 296:return FE(oe);case 297:return H1(oe);case 298:return tv(oe);case 299:return K1(oe);case 303:return e_(oe);case 304:return uA(oe);case 305:return Ve(oe);case 306:return t_(oe);case 307:return xi(oe);case 314:case 308:return gi(oe);case 309:case 310:return tr(oe);case 311:return Wr(oe);case 312:return q1(oe);case 313:return R.fail("Bundles should be printed using printBundle");case 315:return R.fail("InputFiles should not be printed");case 316:return $g(oe);case 317:return ub(oe);case 319:return _r("*");case 320:return _r("?");case 321:return pd(oe);case 322:return Ep(oe);case 323:return Ns(oe);case 324:return rd(oe);case 191:case 325:return yt(oe);case 326:return;case 327:return _d(oe);case 329:return fA(oe);case 330:return BE(oe);case 334:case 339:case 344:return pA(oe);case 335:case 336:return nv(oe);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(oe);case 346:return n_(oe);case 348:case 355:return mA(oe);case 347:case 349:case 350:case 351:case 356:case 357:return zE(oe);case 352:return rv(oe);case 353:return RM(oe);case 354:return J1(oe);case 359:return}if(ht(oe)&&(I=1,s!==VP)){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 Hr(oe);case 81:return Io(oe);case 209:return Lt(oe);case 210:return Un(oe);case 211:return go(oe);case 212:return Qo(oe);case 213:return ec(oe);case 214:return vc(oe);case 215:return ll(oe);case 216:return hl(oe);case 217:return jl(oe);case 218:return tc(oe);case 219:return Jc(oe);case 220:return Bu(oe);case 221:return Du(oe);case 222:return Pf(oe);case 223:return z_(oe);case 224:return Ih(oe);case 225:return zd(oe);case 226:return Sr(oe);case 227:return Sp(oe);case 228:return dg(oe);case 229:return Gu(oe);case 230:return Z(oe);case 231:return rt(oe);case 232:return;case 234:return Gt(oe);case 235:return O(oe);case 233:return wt(oe);case 238:return Se(oe);case 236:return nt(oe);case 237:return R.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Qa(oe);case 285:return cA(oe);case 288:return GD(oe);case 358:return R.fail("SyntaxList should not be printed");case 359:return;case 360:return Qr(oe);case 361:return Rh(oe);case 362:return R.fail("SyntheticReferenceExpression should not be printed")}if(Wu(oe.kind))return TS(oe,Qi);if(xV(oe.kind))return TS(oe,_r);R.fail(`Unhandled SyntaxKind: ${R.formatSyntaxKind(oe.kind)}.`)}function Ne(I){He(I.name),sr(),Qi("in"),sr(),He(I.constraint)}function It(I,oe){let ut=ie(1,I,oe);R.assertIsDefined(hi),oe=hi,hi=void 0,ut(I,oe)}function Dt(I){let oe;if(N===0||e.noEmitHelpers)return;let ut=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&&!ut.get(vi.name)&&(ut.set(vi.name,!0),(oe||(oe=[])).push(vi.name))}return oe}function Kt(I){let oe=!1,ut=I.kind===313?I:void 0;if(ut&&N===0)return;let nn=ut?ut.prepends.length:0,Mr=ut?ut.sourceFiles.length+nn:1;for(let ki=0;ki"),sr(),He(I.type),rp(I)}function rd(I){Qi("function"),iv(I,I.parameters),_r(":"),He(I.type)}function pd(I){_r("?"),He(I.type)}function Ep(I){_r("!"),He(I.type)}function Ns(I){He(I.type),_r("=")}function xc(I){Ad(I),pg(I,I.modifiers),Qi("new"),sr(),G_(I,I.typeParameters),iv(I,I.parameters),sr(),_r("=>"),sr(),He(I.type),rp(I)}function de(I){Qi("typeof"),sr(),He(I.exprName),mg(I,I.typeArguments)}function $(I){Lf(0,void 0),_r("{");let oe=za(I)&1?768:32897;Ys(I,I.members,oe|524288),_r("}"),gb()}function Pe(I){He(I.elementType,Zn.parenthesizeNonArrayTypeOfPostfixType),_r("["),_r("]")}function yt(I){_r("..."),He(I.type)}function cn(I){Ui(23,I.pos,_r,I);let oe=za(I)&1?528:657;Ys(I,I.elements,oe|524288,Zn.parenthesizeElementTypeOfTupleType),Ui(24,I.elements.end,_r,I)}function br(I){He(I.dotDotDotToken),He(I.name),He(I.questionToken),Ui(59,I.name.end,_r,I),sr(),He(I.type)}function mr(I){He(I.type,Zn.parenthesizeTypeOfOptionalType),_r("?")}function Fr(I){Ys(I,I.types,516,Zn.parenthesizeConstituentTypeOfUnionType)}function Di(I){Ys(I,I.types,520,Zn.parenthesizeConstituentTypeOfIntersectionType)}function Cr(I){He(I.checkType,Zn.parenthesizeCheckTypeOfConditionalType),sr(),Qi("extends"),sr(),He(I.extendsType,Zn.parenthesizeExtendsTypeOfConditionalType),sr(),_r("?"),sr(),He(I.trueType),sr(),_r(":"),sr(),He(I.falseType)}function Jo(I){Qi("infer"),sr(),He(I.typeParameter)}function bl(I){_r("("),He(I.type),_r(")")}function Hc(){Qi("this")}function Vs(I){_b(I.operator,Qi),sr();let oe=I.operator===148?Zn.parenthesizeOperandOfReadonlyTypeOperator:Zn.parenthesizeOperandOfTypeOperator;He(I.type,oe)}function yc(I){He(I.objectType,Zn.parenthesizeNonArrayTypeOfPostfixType),_r("["),He(I.indexType),_r("]")}function bs(I){let oe=za(I);_r("{"),oe&1?sr():(qc(),Dh()),I.readonlyToken&&(He(I.readonlyToken),I.readonlyToken.kind!==148&&Qi("readonly"),sr()),_r("["),U(3,I.typeParameter),I.nameType&&(sr(),Qi("as"),sr(),He(I.nameType)),_r("]"),I.questionToken&&(He(I.questionToken),I.questionToken.kind!==58&&_r("?")),_r(":"),sr(),He(I.type),id(),oe&1?sr():(qc(),Lm()),Ys(I,I.members,2),_r("}")}function Kc(I){Bt(I.literal)}function tp(I){He(I.head),Ys(I,I.templateSpans,262144)}function Wc(I){I.isTypeOf&&(Qi("typeof"),sr()),Qi("import"),_r("("),He(I.argument),I.attributes&&(_r(","),sr(),U(7,I.attributes)),_r(")"),I.qualifier&&(_r("."),He(I.qualifier)),mg(I,I.typeArguments)}function im(I){_r("{"),Ys(I,I.elements,525136),_r("}")}function _u(I){_r("["),Ys(I,I.elements,524880),_r("]")}function Re(I){He(I.dotDotDotToken),I.propertyName&&(He(I.propertyName),_r(":"),sr()),He(I.name),fb(I.initializer,I.name.end,I,Zn.parenthesizeExpressionForDisallowedComma)}function Lt(I){let oe=I.elements,ut=I.multiLine?65536:0;ES(I,oe,8914|ut,Zn.parenthesizeExpressionForDisallowedComma)}function Un(I){Lf(0,void 0),gn(I.properties,$1);let oe=za(I)&131072;oe&&Dh();let ut=I.multiLine?65536:0,nn=w&&w.languageVersion>=1&&!Jf(w)?64:0;Ys(I,I.properties,526226|nn|ut),oe&&Lm(),gb()}function go(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess);let oe=I.questionDotToken||mh(L.createToken(25),I.expression.end,I.name.pos),ut=Gp(I,I.expression,oe),nn=Gp(I,oe,I.name);km(ut,!1),oe.kind!==29&&qo(I.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&_r("."),I.questionDotToken?He(oe):Ui(oe.kind,I.expression.end,_r,I),km(nn,!1),He(I.name),VE(ut,nn)}function qo(I){if(I=gm(I),mp(I)){let oe=TA(I,!0,!1);return!(I.numericLiteralFlags&448)&&!oe.includes(da(25))&&!oe.includes("E")&&!oe.includes("e")}else if(Ls(I)){let oe=Xoe(I);return typeof oe=="number"&&isFinite(oe)&&oe>=0&&Math.floor(oe)===oe}}function Qo(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),He(I.questionDotToken),Ui(23,I.expression.end,_r,I),Bt(I.argumentExpression),Ui(24,I.argumentExpression.end,_r,I)}function ec(I){let oe=ym(I)&16;oe&&(_r("("),mb("0"),_r(","),sr()),Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),oe&&_r(")"),He(I.questionDotToken),mg(I,I.typeArguments),ES(I,I.arguments,2576,Zn.parenthesizeExpressionForDisallowedComma)}function vc(I){Ui(105,I.pos,Qi,I),sr(),Bt(I.expression,Zn.parenthesizeExpressionOfNew),mg(I,I.typeArguments),ES(I,I.arguments,18960,Zn.parenthesizeExpressionForDisallowedComma)}function ll(I){let oe=ym(I)&16;oe&&(_r("("),mb("0"),_r(","),sr()),Bt(I.tag,Zn.parenthesizeLeftSideOfAccess),oe&&_r(")"),mg(I,I.typeArguments),sr(),Bt(I.template)}function hl(I){_r("<"),He(I.type),_r(">"),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function jl(I){let oe=Ui(21,I.pos,_r,I),ut=qD(I.expression,I);Bt(I.expression,void 0),AS(I.expression,I),VE(ut),Ui(22,I.expression?I.expression.end:oe,_r,I)}function tc(I){Vp(I.name),Jn(I)}function Jc(I){pg(I,I.modifiers),fn(I,lf)}function lf(I){G_(I,I.typeParameters),HD(I,I.parameters),sm(I.type),sr(),He(I.equalsGreaterThanToken)}function Bu(I){Ui(91,I.pos,Qi,I),sr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function Du(I){Ui(114,I.pos,Qi,I),sr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function Pf(I){Ui(116,I.pos,Qi,I),sr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function z_(I){Ui(135,I.pos,Qi,I),sr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function Ih(I){_b(I.operator,uf),Hg(I)&&sr(),Bt(I.operand,Zn.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 zd(I){Bt(I.operand,Zn.parenthesizeOperandOfPostfixUnary),_b(I.operator,uf)}function Kg(){return n3(I,oe,ut,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),Zd=Zi.shouldEmitSourceMapsStack[Zi.stackIndex]=Nt(vi);l?.(vi),_a&&RA(vi),Zd&&nx(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 ut(vi,Zi,_a){let Zd=vi.kind!==28,Nu=Gp(_a,_a.left,vi),wf=Gp(_a,vi,_a.right);km(Nu,Zd),hg(vi.pos),TS(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),Zd=Gp(vi,vi.operatorToken,vi.right);if(VE(_a,Zd),Zi.stackIndex>0){let Nu=Zi.preserveSourceNewlinesStack[Zi.stackIndex],wf=Zi.containerPosStack[Zi.stackIndex],Eb=Zi.containerEndStack[Zi.stackIndex],Si=Zi.declarationListContainerEndStack[Zi.stackIndex],Ph=Zi.shouldEmitCommentsStack[Zi.stackIndex],Vn=Zi.shouldEmitSourceMapsStack[Zi.stackIndex];un(Nu),Vn&&NA(vi),Ph&&QD(vi,wf,Eb,Si),d?.(vi),Zi.stackIndex--}}function ki(vi,Zi,_a){let Zd=_a==="left"?Zn.getParenthesizeLeftSideOfBinaryForOperator(Zi.operatorToken.kind):Zn.getParenthesizeRightSideOfBinaryForOperator(Zi.operatorToken.kind),Nu=k(0,1,vi);if(Nu===It&&(R.assertIsDefined(hi),vi=Zd(ta(hi,ht)),Nu=ie(1,1,vi),hi=void 0),(Nu===$D||Nu===JE||Nu===ue)&&pr(vi))return vi;uo=Zd,Nu(1,vi)}}function Sp(I){let oe=Gp(I,I.condition,I.questionToken),ut=Gp(I,I.questionToken,I.whenTrue),nn=Gp(I,I.whenTrue,I.colonToken),Mr=Gp(I,I.colonToken,I.whenFalse);Bt(I.condition,Zn.parenthesizeConditionOfConditionalExpression),km(oe,!0),He(I.questionToken),km(ut,!0),Bt(I.whenTrue,Zn.parenthesizeBranchOfConditionalExpression),VE(oe,ut),km(nn,!0),He(I.colonToken),km(Mr,!0),Bt(I.whenFalse,Zn.parenthesizeBranchOfConditionalExpression),VE(nn,Mr)}function dg(I){He(I.head),Ys(I,I.templateSpans,262144)}function Gu(I){Ui(127,I.pos,Qi,I),He(I.asteriskToken),bS(I.expression&&Nm(I.expression),mS)}function Z(I){Ui(26,I.pos,_r,I),Bt(I.expression,Zn.parenthesizeExpressionForDisallowedComma)}function rt(I){Vp(I.name),Ha(I)}function wt(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),mg(I,I.typeArguments)}function Gt(I){Bt(I.expression,void 0),I.type&&(sr(),Qi("as"),sr(),He(I.type))}function O(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),uf("!")}function Se(I){Bt(I.expression,void 0),I.type&&(sr(),Qi("satisfies"),sr(),He(I.type))}function nt(I){SS(I.keywordToken,I.pos,_r),_r("."),He(I.name)}function jt(I){Bt(I.expression),He(I.literal)}function er(I){ii(I,!I.multiLine&&SA(I))}function ii(I,oe){Ui(19,I.pos,_r,I);let ut=oe||za(I)&1?768:129;Ys(I,I.statements,ut),Ui(20,I.statements.end,_r,I,!!(ut&1))}function Xr(I){Bp(I,I.modifiers,!1),He(I.declarationList),id()}function no(I){I?_r(";"):id()}function ka(I){Bt(I.expression,Zn.parenthesizeExpressionOfExpressionStatement),(!w||!Jf(w)||qs(I.expression))&&id()}function wa(I){let oe=Ui(101,I.pos,Qi,I);sr(),Ui(21,oe,_r,I),Bt(I.expression),Ui(22,I.expression.end,_r,I),fg(I,I.thenStatement),I.elseStatement&&(ey(I,I.thenStatement,I.elseStatement),Ui(93,I.thenStatement.end,Qi,I),I.elseStatement.kind===245?(sr(),He(I.elseStatement)):fg(I,I.elseStatement))}function Ol(I,oe){let ut=Ui(117,oe,Qi,I);sr(),Ui(21,ut,_r,I),Bt(I.expression),Ui(22,I.expression.end,_r,I)}function fd(I){Ui(92,I.pos,Qi,I),fg(I,I.statement),Ho(I.statement)&&!fe?sr():ey(I,I.statement,I.expression),Ol(I,I.statement.end),id()}function Rc(I){Ol(I,I.pos),fg(I,I.statement)}function Tp(I){let oe=Ui(99,I.pos,Qi,I);sr();let ut=Ui(21,oe,_r,I);cs(I.initializer),ut=Ui(27,I.initializer?I.initializer.end:ut,_r,I),bS(I.condition),ut=Ui(27,I.condition?I.condition.end:ut,_r,I),bS(I.incrementor),Ui(22,I.incrementor?I.incrementor.end:ut,_r,I),fg(I,I.statement)}function Vu(I){let oe=Ui(99,I.pos,Qi,I);sr(),Ui(21,oe,_r,I),cs(I.initializer),sr(),Ui(103,I.initializer.end,Qi,I),sr(),Bt(I.expression),Ui(22,I.expression.end,_r,I),fg(I,I.statement)}function sb(I){let oe=Ui(99,I.pos,Qi,I);sr(),_A(I.awaitModifier),Ui(21,oe,_r,I),cs(I.initializer),sr(),Ui(165,I.initializer.end,Qi,I),sr(),Bt(I.expression),Ui(22,I.expression.end,_r,I),fg(I,I.statement)}function cs(I){I!==void 0&&(I.kind===261?He(I):Bt(I))}function Dm(I){Ui(88,I.pos,Qi,I),Zg(I.label),id()}function Cm(I){Ui(83,I.pos,Qi,I),Zg(I.label),id()}function Ui(I,oe,ut,nn,Mr){let ki=Ro(nn),vi=ki&&ki.kind===nn.kind,Zi=oe;if(vi&&w&&(oe=Pa(w.text,oe)),vi&&nn.pos!==Zi){let _a=Mr&&w&&!Sf(Zi,oe,w);_a&&Dh(),hg(Zi),_a&&Lm()}if(!S&&(I===19||I===20)?oe=SS(I,oe,ut,nn):oe=_b(I,ut,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 Zy(I){if(!w)return!1;let oe=Hh(w.text,I.pos);if(oe){let ut=Ro(I);if(ut&&Fu(ut.parent))return!0}return gt(oe,Jg)||gt(DR(I),Jg)?!0:V4(I)?I.pos!==I.expression.pos&>($b(w.text,I.expression.pos),Jg)?!0:Zy(I.expression):!1}function Nm(I){if(!qt&&V4(I)&&Zy(I)){let oe=Ro(I);if(oe&&Fu(oe)){let ut=L.createParenthesizedExpression(I.expression);return Rr(ut,I),at(ut,oe),ut}return L.createParenthesizedExpression(I)}return I}function mS(I){return Nm(Zn.parenthesizeExpressionForDisallowedComma(I))}function _S(I){Ui(107,I.pos,Qi,I),bS(I.expression&&Nm(I.expression),Nm),id()}function cf(I){let oe=Ui(118,I.pos,Qi,I);sr(),Ui(21,oe,_r,I),Bt(I.expression),Ui(22,I.expression.end,_r,I),fg(I,I.statement)}function B_(I){let oe=Ui(109,I.pos,Qi,I);sr(),Ui(21,oe,_r,I),Bt(I.expression),Ui(22,I.expression.end,_r,I),sr(),He(I.caseBlock)}function df(I){He(I.label),Ui(59,I.label.end,_r,I),sr(),He(I.statement)}function qg(I){Ui(111,I.pos,Qi,I),bS(Nm(I.expression),Nm),id()}function we(I){Ui(113,I.pos,Qi,I),sr(),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),sr(),He(I.finallyBlock))}function qe(I){SS(89,I.pos,Qi),id()}function Pt(I){var oe,ut,nn;He(I.name),He(I.exclamationToken),sm(I.type),fb(I.initializer,((oe=I.type)==null?void 0:oe.end)??((nn=(ut=I.name.emitNode)==null?void 0:ut.typeNode)==null?void 0:nn.end)??I.name.end,I,Zn.parenthesizeExpressionForDisallowedComma)}function Vt(I){if(S2(I))Qi("await"),sr(),Qi("using");else{let oe=MF(I)?"let":Xx(I)?"const":T2(I)?"using":"var";Qi(oe)}sr(),Ys(I,I.declarations,528)}function _n(I){Jn(I)}function Jn(I){Bp(I,I.modifiers,!1),Qi("function"),He(I.asteriskToken),sr(),pt(I.name),fn(I,qn)}function fn(I,oe){let ut=I.body;if(ut)if(Ho(ut)){let nn=za(I)&131072;nn&&Dh(),Ad(I),gn(I.parameters,od),od(I.body),oe(I),ar(ut),rp(I),nn&&Lm()}else oe(I),sr(),Bt(ut,Zn.parenthesizeConciseBodyOfArrowFunction);else oe(I),id()}function qn(I){G_(I,I.typeParameters),iv(I,I.parameters),sm(I.type)}function mi(I){if(za(I)&1)return!0;if(I.multiLine||!qs(I)&&w&&!RT(I,w)||_g(I,Yc(I.statements),2)||Y1(I,Qs(I.statements),2,I.statements))return!1;let oe;for(let ut of I.statements){if(hb(oe,ut,2)>0)return!1;oe=ut}return!0}function ar(I){l?.(I),sr(),_r("{"),Dh();let oe=mi(I)?ni:ur;Tr(I,I.statements,oe),Lm(),SS(20,I.statements.end,_r,I),d?.(I)}function ni(I){ur(I,!0)}function ur(I,oe){let ut=Uu(I.statements),nn=he.getTextPos();Kt(I),ut===0&&nn===he.getTextPos()&&oe?(Lm(),Ys(I,I.statements,768),Dh()):Ys(I,I.statements,1,void 0,ut)}function Xo(I){Ha(I)}function Ha(I){Lf(0,void 0),gn(I.members,$1),Bp(I,I.modifiers,!0),Ui(86,R_(I).pos,Qi,I),I.name&&(sr(),pt(I.name));let oe=za(I)&131072;oe&&Dh(),G_(I,I.typeParameters),Ys(I,I.heritageClauses,0),sr(),_r("{"),Ys(I,I.members,129),_r("}"),oe&&Lm(),gb()}function Qd(I){Lf(0,void 0),Bp(I,I.modifiers,!1),Qi("interface"),sr(),He(I.name),G_(I,I.typeParameters),Ys(I,I.heritageClauses,512),sr(),_r("{"),Ys(I,I.members,129),_r("}"),gb()}function md(I){Bp(I,I.modifiers,!1),Qi("type"),sr(),He(I.name),G_(I,I.typeParameters),sr(),_r("="),sr(),He(I.type),id()}function Xg(I){Bp(I,I.modifiers,!1),Qi("enum"),sr(),He(I.name),sr(),_r("{"),Ys(I,I.members,145),_r("}")}function kE(I){Bp(I,I.modifiers,!1),~I.flags&2048&&(Qi(I.flags&32?"namespace":"module"),sr()),He(I.name);let oe=I.body;if(!oe)return id();for(;oe&&Yl(oe);)_r("."),He(oe.name),oe=oe.body;sr(),He(oe)}function W1(I){Ad(I),gn(I.statements,od),ii(I,SA(I)),rp(I)}function wE(I){Ui(19,I.pos,_r,I),Ys(I,I.clauses,129),Ui(20,I.clauses.end,_r,I,!0)}function WD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),sr(),I.isTypeOnly&&(Ui(156,I.pos,Qi,I),sr()),He(I.name),sr(),Ui(64,I.name.end,_r,I),sr(),FD(I.moduleReference),id()}function FD(I){I.kind===80?Bt(I):He(I)}function zD(I){Bp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),sr(),I.importClause&&(He(I.importClause),sr(),Ui(161,I.importClause.end,Qi,I),sr()),Bt(I.moduleSpecifier),I.attributes&&Zg(I.attributes),id()}function sA(I){I.isTypeOnly&&(Ui(156,I.pos,Qi,I),sr()),He(I.name),I.name&&I.namedBindings&&(Ui(28,I.name.end,_r,I),sr()),He(I.namedBindings)}function hS(I){let oe=Ui(42,I.pos,_r,I);sr(),Ui(130,oe,Qi,I),sr(),He(I.name)}function F1(I){cb(I)}function BD(I){ug(I)}function z1(I){let oe=Ui(95,I.pos,Qi,I);sr(),I.isExportEquals?Ui(64,oe,uf,I):Ui(90,oe,Qi,I),sr(),Bt(I.expression,I.isExportEquals?Zn.getParenthesizeRightSideOfBinaryForOperator(64):Zn.parenthesizeExpressionOfExportDefault),id()}function B1(I){Bp(I,I.modifiers,!1);let oe=Ui(95,I.pos,Qi,I);if(sr(),I.isTypeOnly&&(oe=Ui(156,oe,Qi,I),sr()),I.exportClause?He(I.exportClause):oe=Ui(42,oe,_r,I),I.moduleSpecifier){sr();let ut=I.exportClause?I.exportClause.end:oe;Ui(161,ut,Qi,I),sr(),Bt(I.moduleSpecifier)}I.attributes&&Zg(I.attributes),id()}function G1(I){_r("{"),sr(),Qi(I.token===132?"assert":"with"),_r(":"),sr();let oe=I.elements;Ys(I,oe,526226),sr(),_r("}")}function V1(I){Ui(I.token,I.pos,Qi,I),sr();let oe=I.elements;Ys(I,oe,526226)}function lA(I){He(I.name),_r(":"),sr();let oe=I.value;if(!(za(oe)&1024)){let ut=C_(oe);wm(ut.pos)}He(oe)}function j1(I){let oe=Ui(95,I.pos,Qi,I);sr(),oe=Ui(130,oe,Qi,I),sr(),oe=Ui(145,oe,Qi,I),sr(),He(I.name),id()}function gS(I){let oe=Ui(42,I.pos,_r,I);sr(),Ui(130,oe,Qi,I),sr(),He(I.name)}function yS(I){cb(I)}function lb(I){ug(I)}function cb(I){_r("{"),Ys(I,I.elements,525136),_r("}")}function ug(I){I.isTypeOnly&&(Qi("type"),sr()),I.propertyName&&(He(I.propertyName),sr(),Ui(130,I.propertyName.end,Qi,I),sr()),He(I.name)}function OE(I){Qi("require"),_r("("),Bt(I.expression),_r(")")}function Qa(I){He(I.openingElement),Ys(I,I.children,262144),He(I.closingElement)}function cA(I){_r("<"),db(I.tagName),mg(I,I.typeArguments),sr(),He(I.attributes),_r("/>")}function GD(I){He(I.openingFragment),Ys(I,I.children,262144),He(I.closingFragment)}function WE(I){if(_r("<"),P_(I)){let oe=qD(I.tagName,I);db(I.tagName),mg(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&sr(),He(I.attributes),AS(I.attributes,I),VE(oe)}_r(">")}function Yg(I){he.writeLiteral(I.text)}function xh(I){_r("")}function Mf(I){Ys(I,I.properties,262656)}function ju(I){He(I.name),Pm("=",_r,I.initializer,hn)}function Ap(I){_r("{..."),Bt(I.expression),_r("}")}function np(I){let oe=!1;return JL(w?.text||"",I+1,()=>oe=!0),oe}function ev(I){let oe=!1;return KL(w?.text||"",I+1,()=>oe=!0),oe}function dA(I){return np(I)||ev(I)}function VD(I){var oe;if(I.expression||!qt&&!qs(I)&&dA(I.pos)){let ut=w&&!qs(I)&&ys(w,I.pos).line!==ys(w,I.end).line;ut&&he.increaseIndent();let nn=Ui(19,I.pos,_r,I);He(I.dotDotDotToken),Bt(I.expression),Ui(20,((oe=I.expression)==null?void 0:oe.end)||nn,_r,I),ut&&he.decreaseIndent()}}function U1(I){pt(I.namespace),_r(":"),pt(I.name)}function db(I){I.kind===80?Bt(I):He(I)}function FE(I){Ui(84,I.pos,Qi,I),sr(),Bt(I.expression,Zn.parenthesizeExpressionForDisallowedComma),bc(I,I.statements,I.expression.end)}function H1(I){let oe=Ui(90,I.pos,Qi,I);bc(I,I.statements,oe)}function bc(I,oe,ut){let nn=oe.length===1&&(!w||qs(I)||qs(oe[0])||b6(I,oe[0],w)),Mr=163969;nn?(SS(59,ut,_r,I),sr(),Mr&=-130):Ui(59,ut,_r,I),Ys(I,oe,Mr)}function tv(I){sr(),_b(I.token,Qi),sr(),Ys(I,I.types,528)}function K1(I){let oe=Ui(85,I.pos,Qi,I);sr(),I.variableDeclaration&&(Ui(21,oe,_r,I),He(I.variableDeclaration),Ui(22,I.variableDeclaration.end,_r,I),sr()),He(I.block)}function e_(I){He(I.name),_r(":"),sr();let oe=I.initializer;if(!(za(oe)&1024)){let ut=C_(oe);wm(ut.pos)}Bt(oe,Zn.parenthesizeExpressionForDisallowedComma)}function uA(I){He(I.name),I.objectAssignmentInitializer&&(sr(),_r("="),sr(),Bt(I.objectAssignmentInitializer,Zn.parenthesizeExpressionForDisallowedComma))}function Ve(I){I.expression&&(Ui(26,I.pos,_r,I),Bt(I.expression,Zn.parenthesizeExpressionForDisallowedComma))}function t_(I){He(I.name),fb(I.initializer,I.name.end,I,Zn.parenthesizeExpressionForDisallowedComma)}function _d(I){if(Ge("/**"),I.comment){let oe=n2(I.comment);if(oe){let ut=oe.split(/\r\n?|\n/g);for(let nn of ut)qc(),sr(),_r("*"),sr(),Ge(nn)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(sr(),He(I.tags[0])):Ys(I,I.tags,33)),sr(),Ge("*/")}function zE(I){om(I.tagName),$g(I.typeExpression),am(I.comment)}function J1(I){om(I.tagName),He(I.name),am(I.comment)}function ub(I){sr(),_r("{"),He(I.name),_r("}")}function nv(I){om(I.tagName),sr(),_r("{"),He(I.class),_r("}"),am(I.comment)}function rv(I){om(I.tagName),$g(I.constraint),sr(),Ys(I,I.typeParameters,528),am(I.comment)}function RM(I){om(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?$g(I.typeExpression):(sr(),_r("{"),Ge("Object"),I.typeExpression.isArrayType&&(_r("["),_r("]")),_r("}"))),I.fullName&&(sr(),He(I.fullName)),am(I.comment),I.typeExpression&&I.typeExpression.kind===329&&fA(I.typeExpression)}function Ka(I){om(I.tagName),I.name&&(sr(),He(I.name)),am(I.comment),BE(I.typeExpression)}function n_(I){am(I.comment),BE(I.typeExpression)}function pA(I){om(I.tagName),am(I.comment)}function fA(I){Ys(I,L.createNodeArray(I.jsDocPropertyTags),33)}function BE(I){I.typeParameters&&Ys(I,L.createNodeArray(I.typeParameters),33),I.parameters&&Ys(I,L.createNodeArray(I.parameters),33),I.type&&(qc(),sr(),_r("*"),sr(),He(I.type))}function mA(I){om(I.tagName),$g(I.typeExpression),sr(),I.isBracketed&&_r("["),He(I.name),I.isBracketed&&_r("]"),am(I.comment)}function om(I){_r("@"),He(I)}function am(I){let oe=n2(I);oe&&(sr(),Ge(oe))}function $g(I){I&&(sr(),_r("{"),He(I.type),_r("}"))}function q1(I){qc();let oe=I.statements;if(oe.length===0||!vm(oe[0])||qs(oe[0])){Tr(I,oe,qi);return}qi(I)}function r_(I){vS(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let oe of I.prepends)if(zT(oe)&&oe.syntheticReferences)for(let ut of oe.syntheticReferences)He(ut),qc()}function jD(I){I.isDeclarationFile&&vS(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function vS(I,oe,ut,nn){if(I){let Mr=he.getTextPos();V_('/// '),Ie&&Ie.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_(`/// `),Ie&&Ie.sections.push({pos:ki,end:he.getTextPos(),kind:"reference",data:Mr.fileName}),qc()}for(let Mr of ut){let ki=he.getTextPos(),vi=Mr.resolutionMode&&Mr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Mr.resolutionMode===99?"import":"require"}"`:"";V_(`/// `),Ie&&Ie.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_(`/// `),Ie&&Ie.sections.push({pos:ki,end:he.getTextPos(),kind:"lib",data:Mr.fileName}),qc()}}function qi(I){let oe=I.statements;Ad(I),gn(I.statements,od),Kt(I);let ut=ql(oe,nn=>!vm(nn));jD(I),Ys(I,oe,1,void 0,ut===-1?oe.length:ut),rp(I)}function Qr(I){let oe=za(I);!(oe&1024)&&I.pos!==I.expression.pos&&wm(I.expression.pos),Bt(I.expression),!(oe&2048)&&I.end!==I.expression.end&&hg(I.expression.end)}function Rh(I){ES(I,I.elements,528,void 0)}function Uu(I,oe,ut,nn){let Mr=!!oe;for(let ki=0;ki=ut.length||vi===0;if(_a&&nn&32768){p?.(ut),h?.(ut);return}nn&15360&&(_r(NVe(nn)),_a&&ut&&wm(ut.pos,!0)),p?.(ut),_a?nn&1&&!(fe&&(!oe||w&&RT(oe,w)))?qc():nn&256&&!(nn&524288)&&sr():Mm(I,oe,ut,nn,Mr,ki,vi,ut.hasTrailingComma,ut),h?.(ut),nn&15360&&(_a&&ut&&hg(ut.end),_r(PVe(nn)))}function Mm(I,oe,ut,nn,Mr,ki,vi,Zi,_a){let Zd=(nn&262144)===0,Nu=Zd,wf=_g(oe,ut[ki],nn);wf?(qc(wf),Nu=!1):nn&256&&sr(),nn&128&&Dh();let Eb=wVe(I,Mr),Si,Ph,Vn=!1;for(let PS=0;PS0){if(nn&131||(Dh(),Vn=!0),Nu&&nn&60&&!Jm(U_.pos)){let nC=C_(U_);wm(nC.pos,!!(nn&512),!0)}qc(Mh),Nu=!1}else Si&&nn&512&&sr()}if(Ph=Ba(U_),Nu){let Mh=C_(U_);wm(Mh.pos)}else Nu=Zd;ne=U_.pos,Eb(U_,I,Mr,PS),Vn&&(Lm(),Vn=!1),Si=U_}let rx=Si?za(Si):0,Sb=qt||!!(rx&2048),Tb=Zi&&nn&64&&nn&16;Tb&&(Si&&!Sb?Ui(28,Si.end,_r,Si):_r(",")),Si&&(oe?oe.end:-1)!==Si.end&&nn&60&&!Sb&&hg(Tb&&_a?.end?_a.end:Si.end),nn&128&&Lm(),vn(Ph);let PA=Y1(oe,ut[ki+vi-1],nn,_a);PA?qc(PA):nn&2097408&&sr()}function mb(I){he.writeLiteral(I)}function JD(I){he.writeStringLiteral(I)}function yA(I){he.write(I)}function NM(I,oe){he.writeSymbol(I,oe)}function _r(I){he.writePunctuation(I)}function id(){he.writeTrailingSemicolon(";")}function Qi(I){he.writeKeyword(I)}function uf(I){he.writeOperator(I)}function ov(I){he.writeParameter(I)}function V_(I){he.writeComment(I)}function sr(){he.writeSpace(" ")}function vA(I){he.writeProperty(I)}function GE(I){he.nonEscapingWrite?he.nonEscapingWrite(I):he.write(I)}function qc(I=1){for(let oe=0;oe0)}function Dh(){he.increaseIndent()}function Lm(){he.decreaseIndent()}function SS(I,oe,ut,nn){return ze?_b(I,ut,oe):NS(nn,I,ut,oe,_b)}function TS(I,oe){m&&m(I),oe(da(I.kind)),y&&y(I)}function _b(I,oe,ut){let nn=da(I);return oe(nn),ut<0?ut:ut+nn.length}function ey(I,oe,ut){if(za(I)&1)sr();else if(fe){let nn=Gp(I,oe,ut);nn?qc(nn):sr()}else qc()}function bA(I){let oe=I.split(/\r\n?|\n/g),ut=Cre(oe);for(let nn of oe){let Mr=ut?nn.slice(ut):nn;Mr.length&&(qc(),Ge(Mr))}}function km(I,oe){I?(Dh(),qc(I)):oe&&sr()}function VE(I,oe){I&&Lm(),oe&&Lm()}function _g(I,oe,ut){if(ut&2||fe){if(ut&65536)return 1;if(oe===void 0)return!I||w&&RT(I,w)?0:1;if(oe.pos===ne||oe.kind===12)return 0;if(w&&I&&!Jm(I.pos)&&!qs(oe)&&(!oe.parent||Pl(oe.parent)===Pl(I)))return fe?jE(nn=>eoe(oe.pos,I.pos,w,nn)):b6(I,oe,w)?0:1;if(EA(oe,ut))return 1}return ut&1?1:0}function hb(I,oe,ut){if(ut&2||fe){if(I===void 0||oe===void 0||oe.kind===12)return 0;if(w&&!qs(I)&&!qs(oe))return fe&&Cu(I,oe)?jE(nn=>Yj(I,oe,w,nn)):!fe&&pf(I,oe)?ak(I,oe,w)?0:1:ut&65536?1:0;if(EA(I,ut)||EA(oe,ut))return 1}else if(lP(oe))return 1;return ut&1?1:0}function Y1(I,oe,ut,nn){if(ut&2||fe){if(ut&65536)return 1;if(oe===void 0)return!I||w&&RT(I,w)?0:1;if(w&&I&&!Jm(I.pos)&&!qs(oe)&&(!oe.parent||oe.parent===I)){if(fe){let Mr=nn&&!Jm(nn.end)?nn.end:oe.end;return jE(ki=>toe(Mr,I.end,w,ki))}return $ie(I,oe,w)?0:1}if(EA(oe,ut))return 1}return ut&1&&!(ut&131072)?1:0}function jE(I){R.assert(!!fe);let oe=I(!0);return oe===0?I(!1):oe}function qD(I,oe){let ut=fe&&_g(oe,I,0);return ut&&km(ut,!1),!!ut}function AS(I,oe){let ut=fe&&Y1(oe,I,0,void 0);ut&&qc(ut)}function EA(I,oe){if(qs(I)){let ut=lP(I);return ut===void 0?(oe&65536)!==0:ut}return(oe&65536)!==0}function Gp(I,oe,ut){return za(I)&262144?0:(I=Ul(I),oe=Ul(oe),ut=Ul(ut),lP(ut)?1:w&&!qs(I)&&!qs(oe)&&!qs(ut)?fe?jE(nn=>Yj(oe,ut,w,nn)):ak(oe,ut,w)?0:1:0)}function SA(I){return I.statements.length===0&&(!w||ak(I,I,w))}function Ul(I){for(;I.kind===217&&qs(I);)I=I.expression;return I}function Fc(I,oe){if(il(I)||lT(I))return AA(I);if(Ca(I)&&I.textSourceNode)return Fc(I.textSourceNode,oe);let ut=w,nn=!!ut&&!!I.parent&&!qs(I);if(Jh(I)){if(!nn||Gn(I)!==Pl(ut))return vr(I)}else if(Xm(I)){if(!nn||Gn(I)!==Pl(ut))return iP(I)}else if(R.assertNode(I,S0),!nn)return I.text;return A0(ut,I,oe)}function TA(I,oe,ut){if(I.kind===11&&I.textSourceNode){let Mr=I.textSourceNode;if(Fe(Mr)||Ki(Mr)||mp(Mr)||Xm(Mr)){let ki=mp(Mr)?Mr.text:Fc(Mr);return ut?`"${wj(ki)}"`:oe||za(I)&16777216?`"${eg(ki)}"`:`"${ek(ki)}"`}else return TA(Mr,oe,ut)}let nn=(oe?1:0)|(ut?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Bre(I,w,nn)}function Ad(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 UE(I){(!re||re===Qs(J))&&(re=new Set),re.add(I)}function Lf(I,oe){ee.push(me),me=I,pe.push(re),xe=oe}function gb(){me=ee.pop(),xe=pe.pop()}function yb(I){(!xe||xe===Qs(pe))&&(xe=new Set),xe.add(I)}function od(I){if(I)switch(I.kind){case 241:gn(I.statements,od);break;case 256:case 254:case 246:case 247:od(I.statement);break;case 245:od(I.thenStatement),od(I.elseStatement);break;case 248:case 250:case 249:od(I.initializer),od(I.statement);break;case 255:od(I.caseBlock);break;case 269:gn(I.clauses,od);break;case 296:case 297:gn(I.statements,od);break;case 258:od(I.tryBlock),od(I.catchClause),od(I.finallyBlock);break;case 299:od(I.variableDeclaration),od(I.block);break;case 243:od(I.declarationList);break;case 261:gn(I.declarations,od);break;case 260:case 169:case 208:case 263:Vp(I.name);break;case 262:Vp(I.name),za(I)&1048576&&(gn(I.parameters,od),od(I.body));break;case 206:case 207:gn(I.elements,od);break;case 272:od(I.importClause);break;case 273:Vp(I.name),od(I.namedBindings);break;case 274:Vp(I.name);break;case 280:Vp(I.name);break;case 275:gn(I.elements,od);break;case 276:Vp(I.propertyName||I.name);break}}function $1(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&&(il(I)||lT(I)?AA(I):$o(I)&&od(I))}function AA(I){let oe=I.emitNode.autoGenerate;if((oe.flags&7)===4)return IA($k(I),Ki(I),oe.flags,oe.prefix,oe.suffix);{let ut=oe.id;return Y[ut]||(Y[ut]=YD(I))}}function IA(I,oe,ut,nn,Mr){let ki=is(I),vi=oe?K:j;return vi[ki]||(vi[ki]=xA(I,oe,ut??0,jR(nn,AA),jR(Mr)))}function js(I,oe){return HE(I,oe)&&!XD(I,oe)&&!B.has(I)}function XD(I,oe){return oe?!!xe?.has(I):!!re?.has(I)}function HE(I,oe){return w?IF(w,I,r):!0}function IS(I,oe){for(let ut=oe;ut&&P0(ut,oe);ut=ut.nextContainer)if(ch(ut)&&ut.locals){let nn=ut.locals.get(fl(I));if(nn&&nn.flags&3257279)return!1}return!0}function PM(I){switch(I){case"":return q;case"#":return me;default:return z?.get(I)??0}}function hu(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,ut,nn,Mr){nn.length>0&&nn.charCodeAt(0)===35&&(nn=nn.slice(1));let ki=bE(ut,nn,"",Mr),vi=PM(ki);if(I&&!(vi&I)){let _a=bE(ut,nn,I===268435456?"_i":"_n",Mr);if(js(_a,ut))return vi|=I,ut?yb(_a):oe&&UE(_a),hu(ki,vi),_a}for(;;){let Zi=vi&268435455;if(vi++,Zi!==8&&Zi!==13){let _a=Zi<26?"_"+String.fromCharCode(97+Zi):"_"+(Zi-26),Zd=bE(ut,nn,_a,Mr);if(js(Zd,ut))return ut?yb(Zd):oe&&UE(Zd),hu(ki,vi),Zd}}}function j_(I,oe=js,ut,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)),ut){let _a=bE(Mr,ki,I,vi);if(oe(_a,Mr))return Mr?yb(_a):nn?UE(_a):B.add(_a),_a}I.charCodeAt(I.length-1)!==95&&(I+="_");let Zi=1;for(;;){let _a=bE(Mr,ki,I+Zi,vi);if(oe(_a,Mr))return Mr?yb(_a):nn?UE(_a):B.add(_a),_a;Zi++}}function Q1(I){return j_(I,HE,!0,!1,!1,"","")}function Ip(I){let oe=Fc(I.name);return IS(oe,ri(I,ch))?oe:j_(oe,js,!1,!1,!1,"","")}function Z1(I){let oe=iR(I),ut=Ca(oe)?Vre(oe.text):"module";return j_(ut,js,!1,!1,!1,"","")}function ip(){return j_("default",js,!1,!1,!1,"","")}function ex(){return j_("class",js,!1,!1,!1,"","")}function av(I,oe,ut,nn){return Fe(I.name)?IA(I.name,oe):ty(0,!1,oe,ut,nn)}function xA(I,oe,ut,nn,Mr){switch(I.kind){case 80:case 81:return j_(Fc(I),js,!!(ut&16),!!(ut&8),oe,nn,Mr);case 267:case 266:return R.assert(!nn&&!Mr&&!oe),Ip(I);case 272:case 278:return R.assert(!nn&&!Mr&&!oe),Z1(I);case 262:case 263:{R.assert(!nn&&!Mr&&!oe);let ki=I.name;return ki&&!il(ki)?xA(ki,!1,ut,nn,Mr):ip()}case 277:return R.assert(!nn&&!Mr&&!oe),ip();case 231:return R.assert(!nn&&!Mr&&!oe),ex();case 174:case 177:case 178:return av(I,oe,nn,Mr);case 167:return ty(0,!0,oe,nn,Mr);default:return ty(0,!1,oe,nn,Mr)}}function YD(I){let oe=I.emitNode.autoGenerate,ut=jR(oe.prefix,AA),nn=jR(oe.suffix);switch(oe.flags&7){case 1:return ty(0,!!(oe.flags&8),Ki(I),ut,nn);case 2:return R.assertNode(I,Fe),ty(268435456,!!(oe.flags&8),!1,ut,nn);case 3:return j_(vr(I),oe.flags&32?HE:js,!!(oe.flags&16),!!(oe.flags&8),Ki(I),ut,nn)}return R.fail(`Unsupported GeneratedIdentifierKind: ${R.formatEnum(oe.flags&7,LW,!0)}.`)}function $D(I,oe){let ut=ie(2,I,oe),nn=Zt,Mr=en,ki=Dn;RA(oe),ut(I,oe),QD(oe,nn,Mr,ki)}function RA(I){let oe=za(I),ut=C_(I);vb(I,oe,ut.pos,ut.end),oe&4096&&(qt=!0)}function QD(I,oe,ut,nn){let Mr=za(I),ki=C_(I);Mr&4096&&(qt=!1),xp(I,Mr,ki.pos,ki.end,oe,ut,nn);let vi=Zoe(I);vi&&xp(I,Mr,vi.pos,vi.end,oe,ut,nn)}function vb(I,oe,ut,nn){Li(),Yt=!1;let Mr=ut<0||(oe&1024)!==0||I.kind===12,ki=nn<0||(oe&2048)!==0||I.kind===12;(ut>0||nn>0)&&ut!==nn&&(Mr||xS(ut,I.kind!==359),(!Mr||ut>=0&&oe&1024)&&(Zt=ut),(!ki||nn>=0&&oe&2048)&&(en=nn,I.kind===261&&(Dn=nn))),gn(DR(I),Ch),Eo()}function xp(I,oe,ut,nn,Mr,ki,vi){Li();let Zi=nn<0||(oe&2048)!==0||I.kind===12;gn(Ck(I),ZD),(ut>0||nn>0)&&ut!==nn&&(Zt=Mr,en=ki,Dn=vi,!Zi&&I.kind!==359&&i_(nn)),Eo()}function Ch(I){(I.hasLeadingNewline||I.kind===2)&&he.writeLine(),DA(I),I.hasTrailingNewLine||I.kind===2?he.writeLine():he.writeSpace(" ")}function ZD(I){he.isAtStartOfLine()||he.writeSpace(" "),DA(I),I.hasTrailingNewLine&&he.writeLine()}function DA(I){let oe=es(I),ut=I.kind===3?yI(oe):void 0;hR(oe,ut,he,0,oe.length,A)}function es(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function Tr(I,oe,ut){Li();let{pos:nn,end:Mr}=oe,ki=za(I),vi=nn<0||(ki&1024)!==0,Zi=qt||Mr<0||(ki&2048)!==0;vi||kf(oe),Eo(),ki&4096&&!qt?(qt=!0,ut(I),qt=!1):ut(I),Li(),Zi||(xS(oe.end,!0),Yt&&!he.isAtStartOfLine()&&he.writeLine()),Eo()}function pf(I,oe){return I=Pl(I),I.parent&&I.parent===Pl(oe).parent}function Cu(I,oe){if(oe.pos-1&&nn.indexOf(oe)===Mr+1}function xS(I,oe){Yt=!1,oe?I===0&&w?.isDeclarationFile?yg(I,KE):yg(I,CA):I===0&&yg(I,eC)}function eC(I,oe,ut,nn,Mr){mf(I,oe)&&CA(I,oe,ut,nn,Mr)}function KE(I,oe,ut,nn,Mr){mf(I,oe)||CA(I,oe,ut,nn,Mr)}function RS(I,oe){return e.onlyPrintJsDocStyle?RH(I,oe)||xF(I,oe):!0}function CA(I,oe,ut,nn,Mr){!w||!RS(w.text,I)||(Yt||(Oie(Tt(),he,Mr,I),Yt=!0),Ps(I),hR(w.text,Tt(),he,I,oe,A),Ps(oe),nn?he.writeLine():ut===3&&he.writeSpace(" "))}function hg(I){qt||I===-1||xS(I,!0)}function i_(I){tx(I,ff)}function ff(I,oe,ut,nn){!w||!RS(w.text,I)||(he.isAtStartOfLine()||he.writeSpace(" "),Ps(I),hR(w.text,Tt(),he,I,oe,A),Ps(oe),nn&&he.writeLine())}function wm(I,oe,ut){qt||(Li(),tx(I,oe?ff:ut?ny:gg),Eo())}function ny(I,oe,ut){w&&(Ps(I),hR(w.text,Tt(),he,I,oe,A),Ps(oe),ut===2&&he.writeLine())}function gg(I,oe,ut,nn){w&&(Ps(I),hR(w.text,Tt(),he,I,oe,A),Ps(oe),nn?he.writeLine():he.writeSpace(" "))}function yg(I,oe){w&&(Zt===-1||I!==Zt)&&(cc(I)?tC(oe):KL(w.text,I,oe,I))}function tx(I,oe){w&&(en===-1||I!==en&&I!==Dn)&&JL(w.text,I,oe)}function cc(I){return pn!==void 0&&Ja(pn).nodePos===I}function tC(I){if(!w)return;let oe=Ja(pn).detachedCommentEndPos;pn.length-1?pn.pop():pn=void 0,KL(w.text,oe,I,oe)}function kf(I){let oe=w&&Fie(w.text,Tt(),he,Nh,I,A,qt);oe&&(pn?pn.push(oe):pn=[oe])}function Nh(I,oe,ut,nn,Mr,ki){!w||!RS(w.text,nn)||(Ps(nn),hR(I,oe,ut,nn,Mr,ki),Ps(Mr))}function mf(I,oe){return!!w&&UV(w.text,I,oe)}function DS(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=IK(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function JE(I,oe){let ut=ie(3,I,oe);nx(oe),ut(I,oe),NA(oe)}function nx(I){let oe=za(I),ut=zy(I);if(IV(I)){R.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let nn=DS(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=ut.source||Wt;I.kind!==359&&!(oe&32)&&ut.pos>=0&&CS(ut.source||Wt,_f(nn,ut.pos)),oe&128&&(ze=!0)}}function NA(I){let oe=za(I),ut=zy(I);IV(I)||(oe&128&&(ze=!1),I.kind!==359&&!(oe&64)&&ut.end>=0&&CS(ut.source||Wt,ut.end))}function _f(I,oe){return I.skipTrivia?I.skipTrivia(oe):Pa(I.text,oe)}function Ps(I){if(ze||Jm(I)||qE(Wt))return;let{line:oe,character:ut}=ys(Wt,I);tt.addMapping(he.getLine(),he.getColumn(),_t,oe,ut,void 0)}function CS(I,oe){if(I!==Wt){let ut=Wt,nn=_t;ry(I),Ps(oe),bb(ut,nn)}else Ps(oe)}function NS(I,oe,ut,nn,Mr){if(ze||I&&KF(I))return Mr(oe,ut,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&&CS(_a,nn),nn=Mr(oe,ut,nn),Zi&&(nn=Zi.end),!(vi&512)&&nn>=0&&CS(_a,nn),nn}function ry(I){if(!ze){if(Wt=I,I===Je){_t=ft;return}qE(I)||(_t=tt.addSource(I.fileName),e.inlineSources&&tt.setSourceContent(_t,I.text),Je=I,ft=_t)}}function bb(I,oe){Wt=I,_t=oe}function qE(I){return Tl(I.fileName,".json")}}function CVe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function NVe(e){return Gle[e&15360][0]}function PVe(e){return Gle[e&15360][1]}function MVe(e,t,r,i){t(e)}function LVe(e,t,r,i){t(e,r.select(i))}function kVe(e,t,r,i){t(e,r)}function wVe(e,t){return e.length===1?MVe:typeof t=="object"?LVe:kVe}var Gle,Q3,XK,oS,YK,Nw,OVe=bt({"src/compiler/emitter.ts"(){"use strict";Zo(),Zo(),iT(),Gle=CVe(),Q3={hasGlobalName:Uo,getReferencedExportContainer:Uo,getReferencedImportDeclaration:Uo,getReferencedDeclarationWithCollidingName:Uo,isDeclarationWithCollidingName:Uo,isValueAliasDeclaration:Uo,isReferencedAliasDeclaration:Uo,isTopLevelValueImportEqualsWithEntityName:Uo,getNodeCheckFlags:Uo,isDeclarationVisible:Uo,isLateBound:e=>!1,collectLinkedAliases:Uo,isImplementationOfOverload:Uo,isRequiredInitializedParameter:Uo,isOptionalUninitializedParameterProperty:Uo,isExpandoFunctionDeclaration:Uo,getPropertiesOfContainerFunction:Uo,createTypeOfDeclaration:Uo,createReturnTypeOfSignatureDeclaration:Uo,createTypeOfExpression:Uo,createLiteralConstValue:Uo,isSymbolAccessible:Uo,isEntityNameVisible:Uo,getConstantValue:Uo,getReferencedValueDeclaration:Uo,getReferencedValueDeclarations:Uo,getTypeReferenceSerializationKind:Uo,isOptionalParameter:Uo,moduleExportsSomeValue:Uo,isArgumentsLocalBinding:Uo,getExternalModuleFileFromDeclaration:Uo,getTypeReferenceDirectivesForEntityName:Uo,getTypeReferenceDirectivesForSymbol:Uo,isLiteralConstDeclaration:Uo,getJsxFactoryEntity:Uo,getJsxFragmentFactoryEntity:Uo,getAllAccessorDeclarations:Uo,getSymbolOfExternalModuleSpecifier:Uo,isBindingCapturedByNode:Uo,getDeclarationStatementsForSourceFile:Uo,isImportRequiredByAugmentation:Uo,tryFindAmbientModule:Uo},XK=Eu(()=>IE({})),oS=Eu(()=>IE({removeComments:!0})),YK=Eu(()=>IE({removeComments:!0,neverAsciiEscape:!0})),Nw=Eu(()=>IE({removeComments:!0,omitTrailingSemicolon:!0}))}});function Z3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Pd(r);return{useCaseSensitiveFileNames:r,fileExists:S,readFile:(z,ee)=>e.readFile(z,ee),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 nl(z,t,o)}function l(z){return i.get(Bc(z))}function d(z){let ee=l(oi(z));return ee&&(ee.sortedAndCanonicalizedFiles||(ee.sortedAndCanonicalizedFiles=ee.files.map(o).sort(),ee.sortedAndCanonicalizedDirectories=ee.directories.map(o).sort()),ee)}function p(z){return ic(ma(z))}function h(z,ee){var me;if(!e.realpath||Bc(s(e.realpath(z)))===ee){let ge={files:mn(e.readDirectory(z,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(z)||[]};return i.set(Bc(ee),ge),ge}if((me=e.directoryExists)!=null&&me.call(e,z))return i.set(ee,!1),!1}function m(z,ee){ee=Bc(ee);let me=l(ee);if(me)return me;try{return h(z,ee)}catch{R.assert(!i.has(Bc(ee)));return}}function y(z,ee){return Sy(z,ee,Zs,jd)>=0}function E(z,ee,me){let ge=s(z),q=d(ge);return q&&B(q,p(z),!0),e.writeFile(z,ee,me)}function S(z){let ee=s(z),me=d(ee);return me&&y(me.sortedAndCanonicalizedFiles,o(p(z)))||e.fileExists(z)}function A(z){let ee=s(z);return i.has(Bc(ee))||e.directoryExists(z)}function N(z){let ee=s(z),me=d(ee);if(me){let ge=p(z),q=o(ge),J=me.sortedAndCanonicalizedDirectories;Ev(J,q,jd)&&me.directories.push(ge)}e.createDirectory(z)}function D(z){let ee=s(z),me=m(z,ee);return me?me.directories.slice():e.getDirectories(z)}function w(z,ee,me,ge,q){let J=s(z),re=m(z,J),pe;if(re!==void 0)return lU(z,ee,me,ge,r,t,q,xe,j);return e.readDirectory(z,ee,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):e4}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,ee){if(l(ee)!==void 0){ce();return}let ge=d(ee);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,ee,me){if(me===1)return;let ge=d(ee);ge&&B(ge,p(z),me===0)}function B(z,ee,me){let ge=z.sortedAndCanonicalizedFiles,q=o(ee);if(me)Ev(ge,q,jd)&&z.files.push(ee);else{let J=Sy(ge,q,Zs,jd);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 ez(e,t,r,i,o){var s;let l=g0(((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 tz(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&tz(e,o,r)})}function QK(e,t,r){jN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Km})}function Pw(e,t,r){t?jN(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 Mw({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=fz(r);if(!E)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(hI(r)&&!(Soe(t,o,l)||w()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(ise(t,o.configFile.configFileSpecs,_o(oi(i),d),p,d))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Cs(o)||o.outDir)return!1;if(Sd(r)){if(o.declarationDir)return!1}else if(!Sc(r,RR))return!1;let S=Tu(r),A=So(s)?void 0:WVe(s)?s.getProgramOrUndefined():s,N=!A&&!So(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):!!Gr(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 Uv(o);case 6:return _E(o);case 0:return!1}}}function WVe(e){return!!e.getState}function Vle(e,t){return e?e.isEmittedFile(t):!1}function ZK(e,t,r,i){xne(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:lD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(N){return(D,w,j,K,Y,B)=>{var ce;return d3(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=Js(),z=s.watchDirectory(N,D,w,j,K,Y),ee=Js()-ce;return r(`Elapsed:: ${ee}ms ${B}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${A(N,w,j,K,Y,i)}`;r(me);let ge=Js();z.close();let q=Js()-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 ee=Js();w.call(void 0,...ce);let me=Js()-ee;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 Lw(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Rf(e){e.watcher.close()}var eJ,tJ,FVe=bt({"src/compiler/watchUtilities.ts"(){"use strict";Zo(),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 jle(e,t,r="tsconfig.json"){return hm(e,i=>{let o=Yr(i,r);return t(o)?o:void 0})}function nz(e,t){let r=oi(t),i=cp(e)?e:Yr(r,e);return ma(i)}function Ule(e,t,r){let i;return gn(e,s=>{let l=zL(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{tl("beforeIORead"),l=e(i,t().charset),tl("afterIORead"),Xp("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?ew(i,l,o,r):void 0}}function rJ(e,t,r){return(i,o,s,l)=>{try{tl("beforeIOWrite"),zj(i,o,s,e,t,r),tl("afterIOWrite"),Xp("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function iJ(e,t,r=gd){let i=new Map,o=Pd(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(),XL(m)),writeFile:rJ((m,y,E)=>r.writeFile(m,y,E),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Eu(()=>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:ea(r,r.createHash)};return h}function kw(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:!Tl(N,".json")&&!Fle(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&&(Sd(N)||Tl(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 o1e(e,t,r){let i;return i=Ur(i,e.getConfigFileParsingDiagnostics()),i=Ur(i,e.getOptionsDiagnostics(r)),i=Ur(i,e.getSyntacticDiagnostics(t,r)),i=Ur(i,e.getGlobalDiagnostics(r)),i=Ur(i,e.getSemanticDiagnostics(t,r)),Af(e.getCompilerOptions())&&(i=Ur(i,e.getDeclarationDiagnostics(t,r))),wx(i||Xe)}function a1e(e,t){let r="";for(let i of e)r+=oJ(i,t);return r}function oJ(e,t){let r=`${oT(e)} TS${e.code}: ${k_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=ys(e.file,e.start),s=e.file.fileName;return`${ZC(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function s1e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return R.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function aS(e,t){return t+e+Xle}function l1e(e,t,r,i,o,s){let{line:l,character:d}=ys(e,t),{line:p,character:h}=ys(e,t+r),m=ys(e,e.text.length).line,y=p-l>=4,E=(p+1+"").length;y&&(E=Math.max(Yle.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 Kle(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+=aS(oT(i),s1e(i.category)),r+=aS(` 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+=l1e(i.file,i.start,i.length,"",s1e(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+=u1e+aJ(o,s,t),r+=l1e(o,s,l,$le,"\x1B[96m",t)),r+=t.getNewLine(),r+=$le+k_(d,t.getNewLine())}r+=t.getNewLine()}return r}function k_(e,t,r=0){if(Co(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oXR(s,e,r,i,o,t,l)}}function uJ(e){return Co(e)?e:oh(e.fileName)}function rz(e,t,r,i,o){return{nameAndMode:p1e,resolve:(s,l)=>vse(s,e,r,i,t,o,l)}}function Ow(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=LP(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 iz(void 0,e,(r,i)=>r&&t(r,i))}function iz(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 oz(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 c1e(e){let t=oh(e.fileName),r=u3.get(t);return{libName:t,libFileName:r}}function xE(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function nD(e){return e.pos!==void 0}function qP(e,t){var r,i,o,s;let l=R.checkDefined(e.getSourceFileByPath(t.file)),{kind:d,index:p}=t,h,m,y,E;switch(d){case 3:let S=Fw(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=Pa(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,oh(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 R.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?.()||!Vm(e.getRootFileNames(),t))return!1;let m;if(!Vm(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(zo(m,w))return!0;let Y=rD(j),B=p(Y);return!B||w.commandLine.options.configFile!==B.options.configFile||!Vm(w.commandLine.fileNames,B.fileNames)?!1:((m||(m=[])).push(w),!gn(w.references,(ce,z)=>!D(ce,w.commandLine.projectReferences[z])))}let K=rD(j);return!p(K)}}function qT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Ww(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(pu(i)){case 3:case 99:return Sc(e,[".d.mts",".mts",".mjs"])?99:Sc(e,[".d.cts",".cts",".cjs"])?1:Sc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=hw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=gw(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function zVe(e,t){return e?Ux(e.getCompilerOptions(),t,f3):!1}function BVe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function az(e,t,r,i,o){var s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y;let B=So(e)?BVe(e,t,r,i,o):e,{rootNames:ce,options:z,configFileParsingDiagnostics:ee,projectReferences:me,typeScriptVersion:ge}=B,{oldProgram:q}=B,J=Eu(()=>Dm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),re,pe,xe,fe,ne,he,Ce,Ge=new Map,ve=qp(),Ie={},De={},Le=f1(),Et,be,ze,tt,Wt,_t,Je,ft,Zt,en,Dn=typeof z.maxNodeModuleJsDepth=="number"?z.maxNodeModuleJsDepth:0,Kn=0,pn=new Map,Yt=new Map;(s=ir)==null||s.push(ir.Phase.Program,"createProgram",{configFilePath:z.configFilePath,rootDir:z.rootDir},!0),tl("beforeProgram");let qt=B.host||Hle(z),hi=lz(qt),uo=z.noLib,Li=Eu(()=>qt.getDefaultLibFileName(z)),Eo=qt.getDefaultLibLocation?qt.getDefaultLibLocation():oi(Li()),Zn=pR(),jr=qt.getCurrentDirectory(),Sr=KN(z),on=dk(z,Sr),$e=new Map,Ot,In,si,yi=qt.hasInvalidatedResolutions||jm;qt.resolveModuleNameLiterals?(si=qt.resolveModuleNameLiterals.bind(qt),In=(l=qt.getModuleResolutionCache)==null?void 0:l.call(qt)):qt.resolveModuleNames?(si=(we,qe,Pt,Vt,_n,Jn)=>qt.resolveModuleNames(we.map(qle),qe,Jn?.map(qle),Pt,Vt,_n).map(fn=>fn?fn.extension!==void 0?{resolvedModule:fn}:{resolvedModule:{...fn,extension:qN(fn.resolvedFileName)}}:Qle),In=(d=qt.getModuleResolutionCache)==null?void 0:d.call(qt)):(In=qR(jr,Z,z),si=(we,qe,Pt,Vt,_n)=>Ow(we,qe,Pt,Vt,_n,qt,In,dJ));let $i;if(qt.resolveTypeReferenceDirectiveReferences)$i=qt.resolveTypeReferenceDirectiveReferences.bind(qt);else if(qt.resolveTypeReferenceDirectives)$i=(we,qe,Pt,Vt,_n)=>qt.resolveTypeReferenceDirectives(we.map(uJ),qe,Pt,Vt,_n?.impliedNodeFormat).map(Jn=>({resolvedTypeReferenceDirective:Jn}));else{let we=S3(jr,Z,void 0,In?.getPackageJsonInfoCache(),In?.optionsToRedirectsKey);$i=(qe,Pt,Vt,_n,Jn)=>Ow(qe,Pt,Vt,_n,Jn,qt,we,rz)}let Ao=qt.hasInvalidatedLibResolutions||jm,ua;if(qt.resolveLibrary)ua=qt.resolveLibrary.bind(qt);else{let we=qR(jr,Z,z,In?.getPackageJsonInfoCache());ua=(qe,Pt,Vt)=>T3(qe,Pt,Vt,qt,we)}let Ba=new Map,vn=new Map,kn=qp(),Be=!1,ct=new Map,lt=new Map,Rt=qt.useCaseSensitiveFileNames()?new Map:void 0,se,ke,st,G,et=!!((p=qt.useSourceOfProjectReferenceRedirect)!=null&&p.call(qt))&&!z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:He,directoryExists:pt}=GVe({compilerHost:qt,getSymlinkCache:B_,useSourceOfProjectReferenceRedirect:et,toPath:tr,getResolvedProjectReferences:Po,getSourceOfProjectReferenceRedirect:Du,forEachResolvedProjectReference:Bu}),Bt=qt.readFile.bind(qt);(h=ir)==null||h.push(ir.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let hn=zVe(q,z);(m=ir)==null||m.pop();let dn;if((y=ir)==null||y.push(ir.Phase.Program,"tryReuseStructureFromOldProgram",{}),dn=Io(),(E=ir)==null||E.pop(),dn!==2){if(re=[],pe=[],me&&(se||(se=me.map(Gt)),ce.length&&se?.forEach((we,qe)=>{if(!we)return;let Pt=Cs(we.commandLine.options);if(et){if(Pt||kd(we.commandLine.options)===0)for(let Vt of we.commandLine.fileNames)Lt(Vt,{kind:1,index:qe})}else if(Pt)Lt(fE(Pt,".d.ts"),{kind:2,index:qe});else if(kd(we.commandLine.options)===0){let Vt=Eu(()=>eD(we.commandLine,!qt.useCaseSensitiveFileNames()));for(let _n of we.commandLine.fileNames)!Sd(_n)&&!Tl(_n,".json")&&Lt(KP(_n,we.commandLine,!qt.useCaseSensitiveFileNames(),Vt),{kind:2,index:qe})}})),(S=ir)==null||S.push(ir.Phase.Program,"processRootFiles",{count:ce.length}),gn(ce,(we,qe)=>Vs(we,!1,!1,{kind:0,index:qe})),(A=ir)==null||A.pop(),be??(be=ce.length?b3(z,qt):Xe),ze=f1(),be.length){(N=ir)==null||N.push(ir.Phase.Program,"processTypeReferences",{count:be.length});let we=z.configFilePath?oi(z.configFilePath):jr,qe=Yr(we,iD),Pt=Ri(be,qe);for(let Vt=0;Vt{Vs(Sp(qe),!0,!1,{kind:6,index:Pt})})}xe=Ey(re,gi).concat(pe),re=void 0,pe=void 0}if(q&&qt.onReleaseOldSourceFile){let we=q.getSourceFiles();for(let qe of we){let Pt=pl(qe.resolvedPath);(hn||!Pt||Pt.impliedNodeFormat!==qe.impliedNodeFormat||qe.resolvedPath===qe.path&&Pt.resolvedPath!==qe.path)&&qt.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!pl(qe.path))}qt.getParsedCommandLine||q.forEachResolvedProjectReference(qe=>{z_(qe.sourceFile.path)||qt.onReleaseOldSourceFile(qe.sourceFile,q.getCompilerOptions(),!1)})}q&&qt.onReleaseParsedCommandLine&&iz(q.getProjectReferences(),q.getResolvedProjectReferences(),(we,qe,Pt)=>{let Vt=qe?.commandLine.projectReferences[Pt]||q.getProjectReferences()[Pt],_n=rD(Vt);ke?.has(tr(_n))||qt.onReleaseParsedCommandLine(_n,we,q.getCompilerOptions())}),q=void 0,Wt=void 0,Je=void 0,Zt=void 0;let un={getRootFileNames:()=>ce,getSourceFile:Na,getSourceFileByPath:pl,getSourceFiles:()=>xe,getMissingFilePaths:()=>lt,getModuleResolutionCache:()=>In,getFilesByNameMap:()=>ct,getCompilerOptions:()=>z,getSyntacticDiagnostics:lc,getOptionsDiagnostics:Cr,getGlobalDiagnostics:bl,getSemanticDiagnostics:Rl,getCachedSemanticDiagnostics:sl,getSuggestionDiagnostics:Pe,getDeclarationDiagnostics:Gs,getBindAndCheckDiagnostics:Mo,getProgramDiagnostics:tn,getTypeChecker:mo,getClassifiableNames:ho,getCommonSourceDirectory:Wr,emit:sa,getCurrentDirectory:()=>jr,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:_l,isSourceFileDefaultLibrary:dd,getModeForUsageLocation:df,getModeForResolutionAtIndex:qg,getSourceFileFromReference:im,getLibFileFromReference:Wc,sourceFileToPackageName:vn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:Be,resolvedModules:_t,resolvedTypeReferenceDirectiveNames:ft,resolvedLibReferences:tt,getResolvedModule:U,getResolvedModuleFromModuleSpecifier:Me,getResolvedTypeReferenceDirective:Nt,forEachResolvedModule:k,forEachResolvedTypeReferenceDirective:ie,getCurrentPackagesMap:()=>en,typesPackageExists:We,packageBundlesTypes:Ne,isEmittedFile:_S,getConfigFileParsingDiagnostics:Hc,getProjectReferences:ls,getResolvedProjectReferences:Po,getProjectReferenceRedirect:jl,getResolvedProjectReferenceToRedirect:lf,getResolvedProjectReferenceByPath:z_,forEachResolvedProjectReference:Bu,isSourceOfProjectReferenceRedirect:Pf,emitBuildInfo:Zl,fileExists:He,readFile:Bt,directoryExists:pt,getSymlinkCache:B_,realpath:(K=qt.realpath)==null?void 0:K.bind(qt),useCaseSensitiveFileNames:()=>qt.useCaseSensitiveFileNames(),getCanonicalFileName:Z,getFileIncludeReasons:()=>ve,structureIsReused:dn,writeFile:Os};return Tt(),Et?.forEach(we=>{switch(we.kind){case 1:return Zn.add(ii(we.file&&pl(we.file),we.fileProcessingReason,we.diagnostic,we.args||Xe));case 0:let{file:qe,pos:Pt,end:Vt}=qP(un,we.reason);return Zn.add(Zc(qe,R.checkDefined(Pt),R.checkDefined(Vt)-Pt,we.diagnostic,...we.args||Xe));case 2:return we.diagnostics.forEach(_n=>Zn.add(_n));default:R.assertNever(we)}}),O(),tl("afterProgram"),Xp("Program","beforeProgram","afterProgram"),(Y=ir)==null||Y.pop(),un;function U(we,qe,Pt){var Vt;return(Vt=_t?.get(we.path))==null?void 0:Vt.get(qe,Pt)}function Me(we){let qe=Gn(we);return R.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 Vt;return(Vt=ft?.get(we.path))==null?void 0:Vt.get(qe,Pt)}function k(we,qe){H(_t,we,qe)}function ie(we,qe){H(ft,we,qe)}function H(we,qe,Pt){var Vt;Pt?(Vt=we?.get(Pt.path))==null||Vt.forEach((_n,Jn,fn)=>qe(_n,Jn,fn,Pt.path)):we?.forEach((_n,Jn)=>_n.forEach((fn,qn,mi)=>qe(fn,qn,mi,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(x3(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,Vt){if(qt.resolveModuleNameLiterals||!qt.resolveModuleNames)return It(Pt);if(!In||$c(qe))return;let _n=_o(we.originalFileName,jr),Jn=oi(_n),fn=wn(we),qn=In.getFromNonRelativeNameCache(qe,Vt,Jn,fn);qn&&It(qn)}function Kt(we,qe,Pt){var Vt,_n;if(!we.length)return Xe;let Jn=_o(qe.originalFileName,jr),fn=wn(qe);(Vt=ir)==null||Vt.push(ir.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Jn}),tl("beforeResolveModule");let qn=si(we,Jn,fn,z,qe,Pt);return tl("afterResolveModule"),Xp("ResolveModule","beforeResolveModule","afterResolveModule"),(_n=ir)==null||_n.pop(),qn}function En(we,qe,Pt){var Vt,_n;if(!we.length)return[];let Jn=Co(qe)?void 0:qe,fn=Co(qe)?qe:_o(qe.originalFileName,jr),qn=Jn&&wn(Jn);(Vt=ir)==null||Vt.push(ir.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:fn}),tl("beforeResolveTypeReference");let mi=$i(we,fn,qn,z,Jn,Pt);return tl("afterResolveTypeReference"),Xp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(_n=ir)==null||_n.pop(),mi}function wn(we){let qe=lf(we.originalFileName);if(qe||!Sd(we.originalFileName))return qe;let Pt=Bn(we.path);if(Pt)return Pt;if(!qt.realpath||!z.preserveSymlinks||!we.originalFileName.includes(Sh))return;let Vt=tr(qt.realpath(we.originalFileName));return Vt===we.path?void 0:Bn(Vt)}function Bn(we){let qe=Du(we);if(Co(qe))return lf(qe);if(qe)return Bu(Pt=>{let Vt=Cs(Pt.commandLine.options);if(Vt)return tr(Vt)===we?Pt:void 0})}function gi(we,qe){return el(xi(we),xi(qe))}function xi(we){if(mm(Eo,we.fileName,!1)){let qe=ic(we.fileName);if(qe==="lib.d.ts"||qe==="lib.es6.d.ts")return 0;let Pt=Ix(qC(qe,"lib."),".d.ts"),Vt=lw.indexOf(Pt);if(Vt!==-1)return Vt+1}return lw.length+2}function tr(we){return nl(we,jr,Z)}function Wr(){if(ne===void 0){let we=Vr(xe,qe=>TT(qe,un));ne=JP(z,()=>to(we,qe=>qe.isDeclarationFile?void 0:qe.fileName),jr,Z,qe=>wt(we,qe))}return ne}function ho(){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 Kt(we,qe,void 0);let Pt,Vt,_n,Jn=Qle,fn=q&&q.getSourceFile(qe.fileName);for(let ni=0;ni{let Vt=(qe?qe.commandLine.projectReferences:me)[Pt],_n=Gt(Vt);return we?!_n||_n.sourceFile!==we.sourceFile||!Vm(we.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},(we,qe)=>{let Pt=qe?z_(qe.sourceFile.path).commandLine.projectReferences:me;return!Vm(we,Pt,GV)})}function Io(){var we;if(!q)return 0;let qe=q.getCompilerOptions();if(bF(qe,z))return 0;let Pt=q.getRootFileNames();if(!Vm(Pt,ce)||!Hr())return 0;me&&(se=me.map(Gt));let Vt=[],_n=[];if(dn=2,Gc(q.getMissingFilePaths(),ar=>qt.fileExists(ar)))return 0;let Jn=q.getSourceFiles(),fn;(ar=>{ar[ar.Exists=0]="Exists",ar[ar.Modified=1]="Modified"})(fn||(fn={}));let qn=new Map;for(let ar of Jn){let ni=Qo(ar.fileName,In,qt,z),ur=qt.getSourceFileByPath?qt.getSourceFileByPath(ar.fileName,ar.resolvedPath,ni,void 0,hn):qt.getSourceFile(ar.fileName,ni,void 0,hn);if(!ur)return 0;ur.packageJsonLocations=(we=ni.packageJsonLocations)!=null&&we.length?ni.packageJsonLocations:void 0,ur.packageJsonScope=ni.packageJsonScope,R.assert(!ur.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Xo;if(ar.redirectInfo){if(ur!==ar.redirectInfo.unredirected)return 0;Xo=!1,ur=ar}else if(q.redirectTargetsMap.has(ar.path)){if(ur!==ar)return 0;Xo=!1}else Xo=ur!==ar;ur.path=ar.path,ur.originalFileName=ar.originalFileName,ur.resolvedPath=ar.resolvedPath,ur.fileName=ar.fileName;let Ha=q.sourceFileToPackageName.get(ar.path);if(Ha!==void 0){let Qd=qn.get(Ha),md=Xo?1:0;if(Qd!==void 0&&md===1||Qd===1)return 0;qn.set(Ha,md)}if(Xo)ar.impliedNodeFormat!==ur.impliedNodeFormat?dn=1:Vm(ar.libReferenceDirectives,ur.libReferenceDirectives,yc)?ar.hasNoDefaultLib!==ur.hasNoDefaultLib?dn=1:Vm(ar.referencedFiles,ur.referencedFiles,yc)?(tp(ur),Vm(ar.imports,ur.imports,bs)&&Vm(ar.moduleAugmentations,ur.moduleAugmentations,bs)?(ar.flags&12582912)!==(ur.flags&12582912)?dn=1:Vm(ar.typeReferenceDirectives,ur.typeReferenceDirectives,yc)||(dn=1):dn=1):dn=1:dn=1,_n.push(ur);else if(yi(ar.path))dn=1,_n.push(ur);else for(let Qd of ar.ambientModuleNames)Ge.set(Qd,ar.fileName);Vt.push(ur)}if(dn!==2)return dn;for(let ar of _n){let ni=d1e(ar),ur=Pi(ni,ar);(Je??(Je=new Map)).set(ar.path,ur),VV(ni,ur,Xg=>q.getResolvedModule(ar,Xg.text,df(ar,Xg)),wre)&&(dn=1);let Ha=ar.typeReferenceDirectives,Qd=Ri(Ha,ar);(Zt??(Zt=new Map)).set(ar.path,Qd),VV(Ha,Qd,Xg=>q.getResolvedTypeReferenceDirective(ar,uJ(Xg),ww(Xg,ar.impliedNodeFormat)),Ore)&&(dn=1)}if(dn!==2)return dn;if(Lre(qe,z)||q.resolvedLibReferences&&Gc(q.resolvedLibReferences,(ar,ni)=>dg(ni).actual!==ar.actual))return 1;if(qt.hasChangedAutomaticTypeDirectiveNames){if(qt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=b3(z,qt),!Vm(q.getAutomaticTypeDirectiveNames(),be))return 1;lt=q.getMissingFilePaths(),R.assert(Vt.length===q.getSourceFiles().length);for(let ar of Vt)ct.set(ar.path,ar);return q.getFilesByNameMap().forEach((ar,ni)=>{if(!ar){ct.set(ni,ar);return}if(ar.path===ni){q.isSourceFileFromExternalLibrary(ar)&&Yt.set(ar.path,!0);return}ct.set(ni,ct.get(ar.path))}),xe=Vt,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,ft=q.resolvedTypeReferenceDirectiveNames,tt=q.resolvedLibReferences,en=q.getCurrentPackagesMap(),2}function xn(we){return{getPrependNodes:Bs,getCanonicalFileName:Z,getCommonSourceDirectory:un.getCommonSourceDirectory,getCompilerOptions:un.getCompilerOptions,getCurrentDirectory:()=>jr,getSourceFile:un.getSourceFile,getSourceFileByPath:un.getSourceFileByPath,getSourceFiles:un.getSourceFiles,getLibFileFromReference:un.getLibFileFromReference,isSourceFileFromExternalLibrary:_l,getResolvedProjectReferenceToRedirect:lf,getProjectReferenceRedirect:jl,isSourceOfProjectReferenceRedirect:Pf,getSymlinkCache:B_,writeFile:we||Os,isEmitBlocked:ud,readFile:qe=>qt.readFile(qe),fileExists:qe=>{let Pt=tr(qe);return pl(Pt)?!0:lt.has(Pt)?!1:qt.fileExists(qe)},useCaseSensitiveFileNames:()=>qt.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:ea(qt,qt.createHash)}}function Os(we,qe,Pt,Vt,_n,Jn){qt.writeFile(we,qe,Pt,Vt,_n,Jn)}function Zl(we){var qe,Pt;R.assert(!Cs(z)),(qe=ir)==null||qe.push(ir.Phase.Emit,"emitBuildInfo",{},!0),tl("beforeEmit");let Vt=Y3(Q3,xn(we),void 0,UK,!1,!0);return tl("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),(Pt=ir)==null||Pt.pop(),Vt}function Po(){return se}function ls(){return me}function Bs(){return gJ(me,(we,qe)=>{var Pt;return(Pt=se[qe])==null?void 0:Pt.commandLine},we=>{let qe=tr(we),Pt=pl(qe);return Pt?Pt.text:ct.has(qe)?void 0:qt.readFile(qe)},qt)}function _l(we){return!!Yt.get(we.path)}function dd(we){if(!we.isDeclarationFile)return!1;if(we.hasNoDefaultLib)return!0;if(!z.noLib)return!1;let qe=qt.useCaseSensitiveFileNames()?nT:Xb;return z.lib?gt(z.lib,Pt=>qe(we.fileName,tt.get(Pt).actual)):qe(we.fileName,Li())}function mo(){return he||(he=jse(un))}function sa(we,qe,Pt,Vt,_n,Jn){var fn,qn;(fn=ir)==null||fn.push(ir.Phase.Emit,"emit",{path:we?.path},!0);let mi=pd(()=>Ss(un,we,qe,Pt,Vt,_n,Jn));return(qn=ir)==null||qn.pop(),mi}function ud(we){return $e.has(tr(we))}function Ss(we,qe,Pt,Vt,_n,Jn,fn){if(!fn){let ar=hJ(we,qe,Pt,Vt);if(ar)return ar}let qn=mo().getEmitResolver(Cs(z)?void 0:qe,Vt);tl("beforeEmit");let mi=Y3(qn,xn(Pt),qe,jK(z,Jn,_n),_n,!1,fn);return tl("afterEmit"),Xp("Emit","beforeEmit","afterEmit"),mi}function Na(we){return pl(tr(we))}function pl(we){return ct.get(we)||void 0}function Nf(we,qe,Pt){return wx(we?qe(we,Pt):va(un.getSourceFiles(),Vt=>(Pt&&Pt.throwIfCancellationRequested(),qe(Vt,Pt))))}function lc(we,qe){return Nf(we,rd,qe)}function Rl(we,qe){return Nf(we,Ep,qe)}function sl(we){var qe;return we?(qe=Ie.perFile)==null?void 0:qe.get(we.path):Ie.allDiagnostics}function Mo(we,qe){return Ns(we,qe)}function tn(we){var qe;if(XN(we,z,un))return Xe;let Pt=Zn.getDiagnostics(we.fileName);return(qe=we.commentDirectives)!=null&&qe.length?$(we,we.commentDirectives,Pt).diagnostics:Pt}function Gs(we,qe){let Pt=un.getCompilerOptions();return!we||Cs(Pt)?br(we,qe):Nf(we,Di,qe)}function rd(we){return cu(we)?(we.additionalSyntacticDiagnostics||(we.additionalSyntacticDiagnostics=cn(we)),bo(we.additionalSyntacticDiagnostics,we.parseDiagnostics)):we.parseDiagnostics}function pd(we){try{return we()}catch(qe){throw qe instanceof Nx&&(he=void 0),qe}}function Ep(we,qe){return bo(sz(Ns(we,qe),z),tn(we))}function Ns(we,qe){return Fr(we,qe,Ie,xc)}function xc(we,qe){return pd(()=>{if(XN(we,z,un))return Xe;let Pt=mo();R.assert(!!we.bindDiagnostics);let _n=(we.scriptKind===1||we.scriptKind===2)&&fk(we,z),Jn=h2(we,z.checkJs),qn=!(!!we.checkJsDirective&&we.checkJsDirective.enabled===!1)&&(we.scriptKind===3||we.scriptKind===4||we.scriptKind===5||Jn||_n||we.scriptKind===7),mi=qn?we.bindDiagnostics:Xe,ar=qn?Pt.getDiagnostics(we,qe):Xe;return Jn&&(mi=Vr(mi,ni=>dz.has(ni.code)),ar=Vr(ar,ni=>dz.has(ni.code))),de(we,qn&&!Jn,mi,ar,_n?we.jsDocDiagnostics:void 0)})}function de(we,qe,...Pt){var Vt;let _n=pm(Pt);if(!qe||!((Vt=we.commentDirectives)!=null&&Vt.length))return _n;let{diagnostics:Jn,directives:fn}=$(we,we.commentDirectives,_n);for(let qn of fn.getUnusedExpectations())Jn.push($re(we,qn.range,f.Unused_ts_expect_error_directive));return Jn}function $(we,qe,Pt){let Vt=zre(we,qe);return{diagnostics:Pt.filter(Jn=>yt(Jn,Vt)===-1),directives:Vt}}function Pe(we,qe){return pd(()=>mo().getSuggestionDiagnostics(we,qe))}function yt(we,qe){let{file:Pt,start:Vt}=we;if(!Pt)return-1;let _n=Dg(Pt),Jn=Lx(_n,Vt).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 pd(()=>{let qe=[];return Pt(we,we),xP(we,Pt,Vt),qe;function Pt(qn,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.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(mi.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(mi,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 R.assertIsDefined(ni),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:let ur=qn.flags&32?da(145):da(144);return R.assertIsDefined(ur),qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,ur)),"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 Xo=R.checkDefined(da(94));return qe.push(fn(qn,f._0_declarations_can_only_be_used_in_TypeScript_files,Xo)),"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:R.fail()}}function Vt(qn,mi){if(TH(mi)){let ar=Gr(mi.modifiers,Ed);ar&&qe.push(fn(ar,f.Decorators_are_not_valid_here))}else if(jT(mi)&&mi.modifiers){let ar=ql(mi.modifiers,Ed);if(ar>=0){if(To(mi)&&!z.experimentalDecorators)qe.push(fn(mi.modifiers[ar],f.Decorators_are_not_valid_here));else if(Ac(mi)){let ni=ql(mi.modifiers,XI);if(ni>=0){let ur=ql(mi.modifiers,W4);if(ar>ni&&ur>=0&&ar=0&&ar=0&&qe.push(Ma(fn(mi.modifiers[Xo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),fn(mi.modifiers[ar],f.Decorator_used_before_export_here)))}}}}}switch(mi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(qn===mi.typeParameters)return qe.push(Jn(qn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(qn===mi.modifiers)return _n(mi.modifiers,mi.kind===243),"skip";break;case 172:if(qn===mi.modifiers){for(let ar of qn)Ta(ar)&&ar.kind!==126&&ar.kind!==129&&qe.push(fn(ar,f.The_0_modifier_can_only_be_used_in_TypeScript_files,da(ar.kind)));return"skip"}break;case 169:if(qn===mi.modifiers&>(qn,Ta))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===mi.typeArguments)return qe.push(Jn(qn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(qn,mi){for(let ar of qn)switch(ar.kind){case 87:if(mi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:qe.push(fn(ar,f.The_0_modifier_can_only_be_used_in_TypeScript_files,da(ar.kind)));break;case 126:case 95:case 90:case 129:}}function Jn(qn,mi,...ar){let ni=qn.pos;return Zc(we,ni,qn.end-ni,mi,...ar)}function fn(qn,mi,...ar){return Kf(we,qn,mi,...ar)}})}function br(we,qe){return Fr(we,qe,De,mr)}function mr(we,qe){return pd(()=>{let Pt=mo().getEmitResolver(we,qe);return Ole(xn(qa),Pt,we)||Xe})}function Fr(we,qe,Pt,Vt){var _n;let Jn=we?(_n=Pt.perFile)==null?void 0:_n.get(we.path):Pt.allDiagnostics;if(Jn)return Jn;let fn=Vt(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?[]:br(we,qe)}function Cr(){return wx(bo(Zn.getGlobalDiagnostics(),Jo()))}function Jo(){if(!z.configFile)return Xe;let we=Zn.getDiagnostics(z.configFile.fileName);return Bu(qe=>{we=bo(we,Zn.getDiagnostics(qe.sourceFile.fileName))}),we}function bl(){return ce.length?wx(mo().getGlobalDiagnostics().slice()):Xe}function Hc(){return ee||Xe}function Vs(we,qe,Pt,Vt){Re(ma(we),qe,Pt,void 0,Vt)}function yc(we,qe){return we.fileName===qe.fileName}function bs(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),Vt=L.createImportDeclaration(void 0,void 0,Pt,void 0);return VI(Vt,2),ja(Pt,Vt),ja(Vt,qe),Pt.flags&=-17,Vt.flags&=-17,Pt}function tp(we){if(we.imports)return;let qe=cu(we),Pt=sc(we),Vt,_n,Jn;if((em(z)||Pt)&&!we.isDeclarationFile){z.importHelpers&&(Vt=[Kc(jv,we)]);let ar=P6(N6(z,we),z);ar&&(Vt||(Vt=[])).push(Kc(ar,we))}for(let ar of we.statements)fn(ar,!1);(we.flags&4194304||qe)&&qn(we),we.imports=Vt||Xe,we.moduleAugmentations=_n||Xe,we.ambientModuleNames=Jn||Xe;return;function fn(ar,ni){if(v2(ar)){let ur=iR(ar);ur&&Ca(ur)&&ur.text&&(!ni||!$c(ur.text))&&(Vv(ar,!1),Vt=Tn(Vt,ur),!Be&&Kn===0&&!we.isDeclarationFile&&(Be=ao(ur.text,"node:")))}else if(Yl(ar)&&Ld(ar)&&(ni||$r(ar,128)||we.isDeclarationFile)){ar.name.parent=ar;let ur=Xf(ar.name);if(Pt||ni&&!$c(ur))(_n||(_n=[])).push(ar.name);else if(!ni){we.isDeclarationFile&&(Jn||(Jn=[])).push(ur);let Xo=ar.body;if(Xo)for(let Ha of Xo.statements)fn(Ha,!0)}}}function qn(ar){let ni=/import|require/g;for(;ni.exec(ar.text)!==null;){let ur=mi(ar,ni.lastIndex);qe&&Su(ur,!0)||Op(ur)&&ur.arguments.length>=1&&ss(ur.arguments[0])?(Vv(ur,!1),Vt=Tn(Vt,ur.arguments[0])):Wv(ur)&&(Vv(ur,!1),Vt=Tn(Vt,ur.argument.literal))}}function mi(ar,ni){let ur=ar,Xo=Ha=>{if(Ha.pos<=ni&&(niTl(_n,fn))){Pt&&(F0(_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(Sr).join("', '")+"'"));return}let Jn=qe(we);if(Pt)if(Jn)xE(Vt)&&_n===qt.getCanonicalFileName(pl(Vt.file).fileName)&&Pt(f.A_file_cannot_have_a_reference_to_itself);else{let fn=jl(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(Sr[0],fn=>qe(we+fn));return Pt&&!Jn&&Pt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,we,"'"+pm(Sr).join("', '")+"'"),Jn}}function Re(we,qe,Pt,Vt,_n){_u(we,Jn=>qo(Jn,qe,Pt,_n,Vt),(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){!xE(Pt)&>(ve.get(qe.path),xE)?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 go(we,qe,Pt,Vt,_n,Jn,fn){var qn;let mi=Eh.createRedirectedSourceFile({redirectTarget:we,unredirected:qe});return mi.fileName=Pt,mi.path=Vt,mi.resolvedPath=_n,mi.originalFileName=Jn,mi.packageJsonLocations=(qn=fn.packageJsonLocations)!=null&&qn.length?fn.packageJsonLocations:void 0,mi.packageJsonScope=fn.packageJsonScope,Yt.set(Vt,Kn>0),mi}function qo(we,qe,Pt,Vt,_n){var Jn,fn;(Jn=ir)==null||Jn.push(ir.Phase.Program,"findSourceFile",{fileName:we,isDefaultLib:qe||void 0,fileIncludeKind:kW[Vt.kind]});let qn=ec(we,qe,Pt,Vt,_n);return(fn=ir)==null||fn.pop(),qn}function Qo(we,qe,Pt,Vt){let _n=_J(_o(we,jr),qe?.getPackageJsonInfoCache(),Pt,Vt),Jn=rs(Vt),fn=ck(Vt);return typeof _n=="object"?{..._n,languageVersion:Jn,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}:{languageVersion:Jn,impliedNodeFormat:_n,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}}function ec(we,qe,Pt,Vt,_n){var Jn;let fn=tr(we);if(et){let ur=Du(fn);if(!ur&&qt.realpath&&z.preserveSymlinks&&Sd(we)&&we.includes(Sh)){let Xo=tr(qt.realpath(we));Xo!==fn&&(ur=Du(Xo))}if(ur){let Xo=Co(ur)?qo(ur,qe,Pt,Vt,_n):void 0;return Xo&&ll(Xo,fn,we,void 0),Xo}}let qn=we;if(ct.has(fn)){let ur=ct.get(fn);if(vc(ur||void 0,Vt),ur&&z.forceConsistentCasingInFileNames!==!1){let Xo=ur.fileName;tr(Xo)!==tr(we)&&(we=jl(we)||we);let Qd=lV(Xo,jr),md=lV(we,jr);Qd!==md&&Un(we,ur,Vt)}return ur&&Yt.get(ur.path)&&Kn===0?(Yt.set(ur.path,!1),z.noResolve||(Ih(ur,qe),Hg(ur)),z.noLib||Gu(ur),pn.set(ur.path,!1),rt(ur)):ur&&pn.get(ur.path)&&KnXr(void 0,Vt,f.Cannot_read_file_0_Colon_1,[we,ur]),hn);if(_n){let ur=wv(_n),Xo=Ba.get(ur);if(Xo){let Ha=go(Xo,ni,we,fn,tr(we),qn,ar);return kn.add(Xo.path,we),ll(Ha,fn,we,mi),vc(Ha,Vt),vn.set(fn,TF(_n)),pe.push(Ha),Ha}else ni&&(Ba.set(ur,ni),vn.set(fn,TF(_n)))}if(ll(ni,fn,we,mi),ni){if(Yt.set(fn,Kn>0),ni.fileName=we,ni.path=fn,ni.resolvedPath=tr(we),ni.originalFileName=qn,ni.packageJsonLocations=(Jn=ar.packageJsonLocations)!=null&&Jn.length?ar.packageJsonLocations:void 0,ni.packageJsonScope=ar.packageJsonScope,vc(ni,Vt),qt.useCaseSensitiveFileNames()){let ur=oh(fn),Xo=Rt.get(ur);Xo?Un(we,Xo,Vt):Rt.set(ur,ni)}uo=uo||ni.hasNoDefaultLib&&!Pt,z.noResolve||(Ih(ni,qe),Hg(ni)),z.noLib||Gu(ni),rt(ni),qe?re.push(ni):pe.push(ni)}return ni}function vc(we,qe){we&&ve.add(we.path,qe)}function ll(we,qe,Pt,Vt){Vt?(hl(Pt,Vt,we),hl(Pt,qe,we||!1)):hl(Pt,qe,we)}function hl(we,qe,Pt){ct.set(qe,Pt),Pt!==void 0?lt.delete(qe):lt.set(qe,we)}function jl(we){let qe=tc(we);return qe&&Jc(qe,we)}function tc(we){if(!(!se||!se.length||Sd(we)||Tl(we,".json")))return lf(we)}function Jc(we,qe){let Pt=Cs(we.commandLine.options);return Pt?fE(Pt,".d.ts"):KP(qe,we.commandLine,!qt.useCaseSensitiveFileNames())}function lf(we){st===void 0&&(st=new Map,Bu(Pt=>{tr(z.configFilePath)!==Pt.sourceFile.path&&Pt.commandLine.fileNames.forEach(Vt=>st.set(tr(Vt),Pt.sourceFile.path))}));let qe=st.get(tr(we));return qe&&z_(qe)}function Bu(we){return pJ(se,we)}function Du(we){if(Sd(we))return G===void 0&&(G=new Map,Bu(qe=>{let Pt=Cs(qe.commandLine.options);if(Pt){let Vt=fE(Pt,".d.ts");G.set(tr(Vt),!0)}else{let Vt=Eu(()=>eD(qe.commandLine,!qt.useCaseSensitiveFileNames()));gn(qe.commandLine.fileNames,_n=>{if(!Sd(_n)&&!Tl(_n,".json")){let Jn=KP(_n,qe.commandLine,!qt.useCaseSensitiveFileNames(),Vt);G.set(tr(Jn),_n)}})}})),G.get(we)}function Pf(we){return et&&!!lf(we)}function z_(we){if(ke)return ke.get(we)||void 0}function Ih(we,qe){gn(we.referencedFiles,(Pt,Vt)=>{Re(nz(Pt.fileName,we.fileName),qe,!1,void 0,{kind:4,file:we.path,index:Vt})})}function Hg(we){let qe=we.typeReferenceDirectives;if(!qe.length)return;let Pt=Zt?.get(we.path)||Ri(qe,we),Vt=f1();(ft??(ft=new Map)).set(we.path,Vt);for(let _n=0;_n{let{libName:Vt,libFileName:_n}=c1e(qe);if(_n)Vs(Sp(_n),!0,!0,{kind:7,file:we.path,index:Pt});else{let Jn=Ix(qC(Vt,"lib."),".d.ts"),fn=JC(Jn,lw,Zs),qn=fn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,mi=fn?[Vt,fn]:[Vt];(Et||(Et=[])).push({kind:0,reason:{kind:7,file:we.path,index:Pt},diagnostic:qn,args:mi})}})}function Z(we){return qt.getCanonicalFileName(we)}function rt(we){var qe;if(tp(we),we.imports.length||we.moduleAugmentations.length){let Pt=d1e(we),Vt=Je?.get(we.path)||Pi(Pt,we);R.assert(Vt.length===Pt.length);let _n=((qe=wn(we))==null?void 0:qe.commandLine.options)||z,Jn=f1();(_t??(_t=new Map)).set(we.path,Jn);for(let fn=0;fnDn,md=Ha&&!yJ(_n,qn,we)&&!_n.noResolve&&fnsc(fn)&&!fn.isDeclarationFile);if(z.isolatedModules||z.verbatimModuleSyntax)z.module===0&&qe<2&&z.isolatedModules&&cs(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&&cs(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=_T(Pt,typeof Pt.externalModuleIndicator=="boolean"?Pt:Pt.externalModuleIndicator);Zn.add(Zc(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))cs(f.Only_amd_and_system_modules_are_supported_alongside_0,z.out?"out":"outFile","module");else if(z.module===void 0&&Pt){let fn=_T(Pt,typeof Pt.externalModuleIndicator=="boolean"?Pt:Pt.externalModuleIndicator);Zn.add(Zc(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(_E(z)&&(pu(z)===1?cs(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):R6(z)||cs(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=Wr();z.outDir&&fn===""&&xe.some(qn=>lh(qn.fileName)>1)&&cs(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}z.useDefineForClassFields&&qe===0&&cs(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),z.checkJs&&!Uv(z)&&Zn.add(Hl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),z.emitDeclarationOnly&&(Af(z)||cs(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),z.noEmit&&cs(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),z.emitDecoratorMetadata&&!z.experimentalDecorators&&cs(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),z.jsxFactory?(z.reactNamespace&&cs(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(z.jsx===4||z.jsx===5)&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",NP.get(""+z.jsx)),d1(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||cs(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(z.jsx===4||z.jsx===5)&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",NP.get(""+z.jsx)),d1(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)&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",NP.get(""+z.jsx)),z.jsxImportSource&&z.jsx===2&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",NP.get(""+z.jsx)),z.preserveValueImports&&kd(z)<5&&cs(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Vt=kd(z);z.verbatimModuleSyntax&&((Vt===2||Vt===3||Vt===4)&&cs(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=pu(z);if(z.resolvePackageJsonExports&&!FI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),z.resolvePackageJsonImports&&!FI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),z.customConditions&&!FI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),_n===100&&!x6(Vt)&&Vt!==200&&Dm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),YC[Vt]&&100<=Vt&&Vt<=199&&!(3<=_n&&_n<=99)){let fn=YC[Vt];Dm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,fn,fn)}else if(Px[_n]&&3<=_n&&_n<=99&&!(100<=Vt&&Vt<=199)){let fn=Px[_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,mi=>{z.emitDeclarationOnly||Jn(mi.jsFilePath,qn),Jn(mi.declarationFilePath,qn)})}function Jn(fn,qn){if(fn){let mi=tr(fn);if(ct.has(mi)){let ni;z.configFilePath||(ni=Fo(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=Fo(ni,f.Cannot_write_file_0_because_it_would_overwrite_input_file,fn),mS(fn,A6(ni))}let ar=qt.useCaseSensitiveFileNames()?mi:oh(mi);qn.has(ar)?mS(fn,Hl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,fn)):qn.add(ar)}}}function Se(){let we=z.ignoreDeprecations;if(we){if(we==="5.0")return new fm(we);J()}return fm.zero}function nt(we,qe,Pt,Vt){let _n=new fm(we),Jn=new fm(qe),fn=new fm(ge||g_),qn=Se(),mi=Jn.compareTo(fn)!==1,ar=!mi&&qn.compareTo(_n)===-1;(mi||ar)&&Vt((ni,ur,Xo)=>{mi?ur===void 0?Pt(ni,ur,Xo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ni):Pt(ni,ur,Xo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ni,ur):ur===void 0?Pt(ni,ur,Xo,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,ur,Xo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ni,ur,qe,we)})}function jt(){function we(qe,Pt,Vt,_n,...Jn){if(Vt){let fn=Fo(void 0,f.Use_0_instead,Vt),qn=Fo(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 er(we,qe,Pt){function Vt(_n,Jn,fn,qn,...mi){Cm(qe,Pt,qn,...mi)}nt("5.0","5.5",Vt,_n=>{we.prepend&&_n("prepend")})}function ii(we,qe,Pt,Vt){var _n;let Jn,fn,qn=xE(qe)?qe:void 0;we&&((_n=ve.get(we.path))==null||_n.forEach(Xo)),qe&&Xo(qe),qn&&Jn?.length===1&&(Jn=void 0);let mi=qn&&qP(un,qn),ar=Jn&&Fo(Jn,f.The_file_is_in_the_program_because_Colon),ni=we&&wJ(we),ur=Fo(ni?ar?[ar,...ni]:ni:ar,Pt,...Vt||Xe);return mi&&nD(mi)?NF(mi.file,mi.pos,mi.end-mi.pos,ur,fn):A6(ur,fn);function Xo(Ha){(Jn||(Jn=[])).push(FJ(un,Ha)),!qn&&xE(Ha)?qn=Ha:qn!==Ha&&(fn=Tn(fn,ka(Ha))),Ha===qe&&(qe=void 0)}}function Xr(we,qe,Pt,Vt){(Et||(Et=[])).push({kind:1,file:we&&we.path,fileProcessingReason:qe,diagnostic:Pt,args:Vt})}function no(we,qe,Pt){Zn.add(ii(we,void 0,qe,Pt))}function ka(we){if(xE(we)){let Vt=qP(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:R.assertNever(we)}return nD(Vt)?Zc(Vt.file,Vt.pos,Vt.end-Vt.pos,_n):void 0}if(!z.configFile)return;let qe,Pt;switch(we.kind){case 0:if(!z.configFile.configFileSpecs)return;let Vt=_o(ce[we.index],jr),_n=OJ(un,Vt);if(_n){qe=WF(z.configFile,"files",_n),Pt=f.File_is_matched_by_files_list_specified_here;break}let Jn=WJ(un,Vt);if(!Jn||!Co(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=R.checkDefined(se?.[we.index]),qn=iz(me,se,(Xo,Ha,Qd)=>Xo===fn?{sourceFile:Ha?.sourceFile||z.configFile,index:Qd}:void 0);if(!qn)return;let{sourceFile:mi,index:ar}=qn,ni=I2(mi,"references",Xo=>fu(Xo.initializer)?Xo.initializer:void 0);return ni&&ni.elements.length>ar?Kf(mi,ni.elements[ar],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=sb("types",we.typeReference),Pt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(we.index!==void 0){qe=sb("lib",z.lib[we.index]),Pt=f.File_is_library_specified_here;break}let ur=Gc(dw.type,(Xo,Ha)=>Xo===rs(z)?Ha:void 0);qe=ur?Vu("target",ur):void 0,Pt=f.File_is_default_library_for_target_specified_here;break;default:R.assertNever(we)}return qe&&Kf(z.configFile,qe,Pt)}function wa(){let we=z.suppressOutputPathCheck?void 0:Uy(z);iz(me,se,(qe,Pt,Vt)=>{let _n=(Pt?Pt.commandLine.projectReferences:me)[Vt],Jn=Pt&&Pt.sourceFile;if(er(_n,Jn,Vt),!qe){Cm(Jn,Vt,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,Vt,f.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),fn.noEmit&&Cm(Jn,Vt,f.Referenced_project_0_may_not_disable_emit,_n.path)),_n.prepend){let qn=Cs(fn);qn?qt.fileExists(qn)||Cm(Jn,Vt,f.Output_file_0_from_project_1_does_not_exist,qn,_n.path):Cm(Jn,Vt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Pt&&we&&we===Uy(fn)&&(Cm(Jn,Vt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,we,_n.path),$e.set(tr(we),!0))})}function Ol(we,qe,Pt,...Vt){let _n=!0;Tp(Jn=>{La(Jn.initializer)&&Qx(Jn.initializer,we,fn=>{let qn=fn.initializer;fu(qn)&&qn.elements.length>qe&&(Zn.add(Kf(z.configFile,qn.elements[qe],Pt,...Vt)),_n=!1)})}),_n&&Zn.add(Hl(Pt,...Vt))}function fd(we,qe,Pt,...Vt){let _n=!0;Tp(Jn=>{La(Jn.initializer)&&Zy(Jn.initializer,we,qe,void 0,Pt,...Vt)&&(_n=!1)}),_n&&Zn.add(Hl(Pt,...Vt))}function Rc(we,qe){return Qx(Jg(),we,qe)}function Tp(we){return Rc("paths",we)}function Vu(we,qe){return Rc(we,Pt=>Ca(Pt.initializer)&&Pt.initializer.text===qe?Pt.initializer:void 0)}function sb(we,qe){let Pt=Jg();return Pt&&aie(Pt,we,qe)}function cs(we,qe,Pt,Vt){Ui(!0,qe,Pt,we,qe,Pt,Vt)}function Dm(we,qe,...Pt){Ui(!1,we,void 0,qe,...Pt)}function Cm(we,qe,Pt,...Vt){let _n=I2(we||z.configFile,"references",Jn=>fu(Jn.initializer)?Jn.initializer:void 0);_n&&_n.elements.length>qe?Zn.add(Kf(we||z.configFile,_n.elements[qe],Pt,...Vt)):Zn.add(Hl(Pt,...Vt))}function Ui(we,qe,Pt,Vt,..._n){let Jn=Jg();(!Jn||!Zy(Jn,we,qe,Pt,Vt,..._n))&&("messageText"in Vt?Zn.add(A6(Vt)):Zn.add(Hl(Vt,..._n)))}function Jg(){return Ot===void 0&&(Ot=Qx(bN(z.configFile),"compilerOptions",we=>La(we.initializer)?we.initializer:void 0)||!1),Ot||void 0}function Zy(we,qe,Pt,Vt,_n,...Jn){let fn=!1;return Qx(we,Pt,qn=>{"messageText"in _n?Zn.add(Mg(z.configFile,qe?qn.name:qn.initializer,_n)):Zn.add(Kf(z.configFile,qe?qn.name:qn.initializer,_n,...Jn)),fn=!0},Vt),fn}function Nm(we,qe){let Pt=Jg();Pt?Zy(Pt,!0,we,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe):cs(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,we,qe)}function mS(we,qe){$e.set(tr(we),!0),Zn.add(qe)}function _S(we){if(z.noEmit)return!1;let qe=tr(we);if(pl(qe))return!1;let Pt=Cs(z);if(Pt)return cf(qe,Pt)||cf(qe,Tu(Pt)+".d.ts");if(z.declarationDir&&mm(z.declarationDir,qe,jr,!qt.useCaseSensitiveFileNames()))return!0;if(z.outDir)return mm(z.outDir,qe,jr,!qt.useCaseSensitiveFileNames());if(Sc(qe,RR)||Sd(qe)){let Vt=Tu(qe);return!!pl(Vt+".ts")||!!pl(Vt+".tsx")}return!1}function cf(we,qe){return Rg(we,qe,jr,!qt.useCaseSensitiveFileNames())===0}function B_(){return qt.getSymlinkCache?qt.getSymlinkCache():(fe||(fe=oU(jr,Z)),xe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(k,ie,ze),fe)}function df(we,qe){var Pt;let Vt=((Pt=wn(we))==null?void 0:Pt.commandLine.options)||z;return cJ(we,qe,Vt)}function qg(we,qe){return df(we,Fw(we,qe))}}function GVe(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=Cs(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()||!Sd(S)?!1:E(S,!0)}function h(S){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(S));return A!==void 0?Co(A)?r.call(e.compilerHost,A):!0:void 0}function m(S){let A=e.toPath(S),N=`${A}${rl}`;return uh(t,D=>A===D||ao(D,N)||ao(A,`${D}/`))}function y(S){var A;if(!e.getResolvedProjectReferences()||ZN(S)||!s||!S.includes(Sh))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(Sh)?A&&((N=j.getSymlinkedFiles())!=null&&N.has(Y))?!0:TL(K.entries(),([B,ce])=>{if(!ce||!ao(Y,B))return;let z=D(Y.replace(B,ce.realPath));if(A&&z){let ee=_o(S,e.compilerHost.getCurrentDirectory());j.setSymlinkedFile(Y,`${ce.real}${ee.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||Cs(o)?uz: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&&!Cs(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 sz(e,t){return Vr(e,r=>!r.skippedOn||!t[r.skippedOn])}function lz(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return R.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:ea(t,t.directoryExists),getDirectories:ea(t,t.getDirectories),realpath:ea(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||qb,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 Fw({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=" ",Xle="\x1B[0m",Yle="...",u1e=" ",$le=" ",Qle={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},cz={getName:qle,getMode:(e,t,r)=>lJ(t,e,r)},p1e={getName:uJ,getMode:(e,t)=>ww(e,t?.impliedNodeFormat)},iD="__inferred type names__.ts",dz=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]),uz={diagnostics:Xe,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),jVe=bt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function Zle(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,UVe=bt({"src/compiler/builderState.ts"(){"use strict";Zo(),(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 nl(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(!Ca(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=Cs(he),Ge=he.module!==0&&!Ce?t():void 0,ve=Ge?t():void 0,Ie=p(Ge,J);q.getTypeChecker();for(let De of q.getSourceFiles()){let Le=R.checkDefined(De.version,"Program intended to be used with Builder should have source files with versions set"),Et=Ie?(pe=J.oldSignatures)==null?void 0:pe.get(De.resolvedPath):void 0,be=Et===void 0?Ie?(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),Ie){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&&!Ie}}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)=>{R.assert(Sd(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,Ie)=>{Ge=ve,Ge!==Ce&&D(q,re,Ie[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(Cs(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 Oo(VC(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?Oo(re.keys()):[]}e.getReferencedByPaths=Y;function B(q){for(let J of q.statements)if(!DF(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 ee(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=ee;function me(q,J,re){let pe=J.getCompilerOptions();return pe&&Cs(pe)?[re]:ee(q,J,re)}function ge(q,J,re,pe,xe){if(z(re))return ee(q,J,re);let fe=J.getCompilerOptions();if(fe&&(em(fe)||Cs(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 Oo(VC(ne.values(),Ce=>Ce))}})(xm||(xm={}))}});function tb(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 oD(e,t){let r=t&&(Ty(t)?t:tb(t)),i=Ty(e)?e:tb(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 HVe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!uh(e,r=>!t.has(r))}function KVe(e,t){var r,i;let o=xm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=Cs(s);l?s.composite&&t?.outSignature&&l===Cs(t?.compilerOptions)&&(o.outSignature=t.outSignature&&m1e(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&&!_oe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!goe(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||!HVe(K=y&&y.getValues(D),E&&E.getValues(D))||K&&uh(K,Y=>!o.fileInfos.has(Y)&&t.fileInfos.has(Y)))f1e(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?g1e(B,e):_1e(B,e)),h){if(Y.isDeclarationFile&&!S||Y.hasNoDefaultLib&&!A)return;let ce=t.semanticDiagnosticsPerFile.get(D);ce&&(o.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?g1e(ce,e):_1e(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,m1e(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=>f1e(o,N.resolvedPath));else if(p){let N=hoe(s,p)?tb(s):oD(s,p);N!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{o.changedFilesSet.has(D.resolvedPath)||oce(o,D.resolvedPath,N)}),R.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=tb(s))),o}function f1e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function m1e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Co(r)?[r]:r[0]}function _1e(e,t){return e.length?Mc(e,r=>{if(Co(r.messageText))return r;let i=ece(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 ece(e,t,r,i){let o=i(e);if(o)return{...SF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:h1e(e.next,t,r,i)};let s=h1e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function h1e(e,t,r,i){return Mc(e,o=>ece(o,t,r,i))}function g1e(e,t){if(!e.length)return Xe;let r;return e.map(o=>{let s=y1e(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=>y1e(d,t,i)):[]:void 0,s});function i(o){return r??(r=oi(_o(Uy(t.getCompilerOptions()),t.getCurrentDirectory()))),nl(o,r,t.getCanonicalFileName)}}function y1e(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:Co(e.messageText)?e.messageText:ece(e.messageText,o,t,s=>s.info)}}function JVe(e){xm.releaseCache(e),e.program=void 0}function qVe(e){let t=Cs(e.compilerOptions);return R.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 XVe(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 v1e(e,t){R.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function b1e(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 $Ve(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||!TT(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let d=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=oD(i,d);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function QVe(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||!TT(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 E1e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=R.checkDefined(e.program),r=t.getCompilerOptions();gn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!XN(i,r,t)&&tce(e,i.resolvedPath))}}function ZVe(e,t,r,i){if(tce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){E1e(e),xm.updateShapeSignature(e,R.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||eje(e,t,r,i)}function SJ(e,t,r,i){if(tce(e,t),!e.changedFilesSet.has(t)){let o=R.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(xm.updateShapeSignature(e,o,s,r,i,!0),Af(e.compilerOptions)&&oce(e,t,e.compilerOptions.declarationMap?24:8))}}function tce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function S1e(e,t){let r=R.checkDefined(e.oldSignatures).get(t)||void 0;return R.checkDefined(e.fileInfos.get(t)).signature!==r}function nce(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)),E1e(e),!0):!1}function eje(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!S1e(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),nce(e,p,r,i))return;if(SJ(e,p,r,i),S1e(e,p)){let h=R.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(nce(e,l,r,i))return!0;let d=e.referencedMap.getKeys(l);return d&&uh(d,p=>T1e(e,p,s,r,i))})}function T1e(e,t,r,i,o){var s,l;if(Jb(r,t)){if(nce(e,t,i,o))return!0;SJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>T1e(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&SJ(e,d,i,o))}}function rce(e,t,r){return bo(tje(e,t,r),R.checkDefined(e.program).getProgramDiagnostics(t))}function tje(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return sz(s,e.compilerOptions)}let o=R.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),sz(o,e.compilerOptions)}function ice(e){return!!Cs(e.options||{})}function nje(e,t){var r,i,o;let s=R.checkDefined(e.program).getCurrentDirectory(),l=oi(_o(Uy(e.compilerOptions),s)),d=e.latestChangedDtsFile?ce(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(Cs(e.compilerOptions)){let he=Oo(e.fileInfos.entries(),([Le,Et])=>{let be=ee(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===tb(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ge,dts:ve,commonSourceDirectory:Ie,sourceFiles:De}=t;return e.bundle=t={commonSourceDirectory:Ie,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)},Cw(Ce,t)}let y,E,S,A=Oo(e.fileInfos.entries(),([he,Ce])=>{var Ge,ve;let Ie=ee(he);ge(he,Ie),R.assert(p[Ie-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)&&TT(Et,e.program)){let be=(ve=e.emitSignatures)==null?void 0:ve.get(he);be!==Le&&(S||(S=[])).push(be===void 0?Ie:[Ie,!Co(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=Oo(e.referencedMap.keys()).sort(jd).map(he=>[ee(he),me(e.referencedMap.getValues(he))]));let D;e.exportedModulesMap&&(D=to(Oo(e.exportedModulesMap.keys()).sort(jd),he=>{var Ce;let Ge=(Ce=e.oldExportedModulesMap)==null?void 0:Ce.get(he);if(Ge===void 0)return[ee(he),me(e.exportedModulesMap.getValues(he))];if(Ge)return[ee(he),me(Ge)]}));let w=re(e.semanticDiagnosticsPerFile),j;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let he=tb(e.compilerOptions),Ce=new Set;for(let Ge of Oo(e.affectedFilesPendingEmit.keys()).sort(jd))if(Jb(Ce,Ge)){let ve=e.program.getSourceFileByPath(Ge);if(!ve||!TT(ve,e.program))continue;let Ie=ee(Ge),De=e.affectedFilesPendingEmit.get(Ge);(j||(j=[])).push(De===he?Ie:De===8?[Ie]:[Ie,De])}}let K;if(e.changedFilesSet.size)for(let he of Oo(e.changedFilesSet.keys()).sort(jd))(K||(K=[])).push(ee(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 Cw(B,t);function ce(he){return z(_o(he,s))}function z(he){return y0(_m(l,he,e.program.getCanonicalFileName))}function ee(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=Oo(he.keys(),ee).sort(el),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],Ie=So(ve);if(Ie&&ve[1]===Ce-1)return ve[1]=Ce;if(Ie||m.length===1||ve!==Ce-1)return m.push(Ce);let De=m[m.length-2];return!Ty(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}=HR();for(let ve of Uh(he).sort(jd)){let Ie=Ge.get(ve.toLowerCase());Ie?.affectsBuildInfo&&((Ce||(Ce={}))[ve]=J(Ie,he[ve]))}return Ce}function J(he,Ce){if(he){if(R.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 Oo(he.keys()).sort(jd)){let ve=he.get(Ge);(Ce||(Ce=[])).push(ve.length?[ee(Ge),pe(ve)]:ee(Ge))}return Ce}function pe(he){return R.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(Ie=>xe(Ie)):[]:void 0,Ge})}function xe(he){let{file:Ce}=he;return{...he,file:Ce?z(Ce.resolvedPath):void 0,messageText:Co(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 Ie=Ge>0?he.slice(0,Ge-1):[];Ie.push(ve);for(let De=Ge+1;De`${p(h)}${kL[h.category]}${h.code}: ${d(h.messageText)}`).join(` +`)),(i.createHash??$C)(r);function d(h){return Co(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)),`${y0(_m(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function XT(e,t,r){return(t.createHash??$C)(A1e(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=KVe(t,s);t.getBuildInfo=N=>nje(l,N),t=void 0,i=void 0,s=void 0;let d=()=>l,p=xJ(d,o);return p.getState=d,p.saveEmitState=()=>qVe(l),p.restoreEmitState=N=>XVe(l,N),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=N=>xm.getAllDependencies(l,R.checkDefined(l.program),N),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>JVe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=S:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=S,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Uo(),p;function h(N,D){if(l.buildInfoEmitPending){let w=R.checkDefined(l.program).emitBuildInfo(N||ea(r,r.writeFile),D);return l.buildInfoEmitPending=!1,w}return uz}function m(N,D,w,j){var K,Y,B;let ce=b1e(l,D,r),z=tb(l.compilerOptions),ee=w?z&24:z;if(!ce)if(Cs(l.compilerOptions)){if(!l.programEmitPending||(ee=l.programEmitPending,w&&(ee=ee&24),!ee))return;ce=l.program}else{let q=$Ve(l,w);if(!q){let J=QVe(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||ea(r,r.writeFile),D);return l.buildInfoEmitPending=!1,{result:pe,affected:re}}({affectedFile:ce,emitKind:ee}=q)}let me;ee&7&&(me=0),ee&24&&(me=me===void 0?1:void 0),ce===l.program&&(l.programEmitPending=l.changedFilesSet.size?oD(z,ee):l.programEmitPending?oD(l.programEmitPending,ee):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,ee|J);let re=((Y=l.affectedFilesPendingEmit)==null?void 0:Y.get(q.resolvedPath))||z,pe=oD(re,ee|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,ee,me,ge;if(Sd(w))if(Cs(l.compilerOptions)){if(l.compilerOptions.composite){let J=q(l.outSignature,void 0);if(!J)return;l.outSignature=J}}else{R.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?(((ee=l.oldSignatures)==null?void 0:ee.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||Co(J)?J:J[0];if(re??(re=XT(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||ea(r,r.writeFile)}function E(N,D,w,j,K){e===1&&v1e(l,N);let Y=hJ(p,N,D,w);if(Y)return Y;if(!N)if(e===1){let B=[],ce=!1,z,ee=[],me;for(;me=m(D,w,j,K);)ce=ce||me.result.emitSkipped,z=Ur(z,me.result.diagnostics),ee=Ur(ee,me.result.emittedFiles),B=Ur(B,me.result.sourceMaps);return{emitSkipped:ce,diagnostics:z||Xe,emittedFiles:ee,sourceMaps:B}}else YVe(l,j);return R.checkDefined(l.program).emit(N,y(D,K),w,j,K)}function S(N,D){for(;;){let w=b1e(l,N,r),j;if(w)if(w!==l.program){let K=w;if((!D||!D(K))&&(j=rce(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=tb(l.compilerOptions);else return;return{result:j,affected:w}}}function A(N,D){v1e(l,N);let w=R.checkDefined(l.program).getCompilerOptions();if(Cs(w))return R.assert(!l.semanticDiagnosticsPerFile),R.checkDefined(l.program).getSemanticDiagnostics(N,D);if(N)return rce(l,N,D);for(;S(D););let j;for(let K of R.checkDefined(l.program).getSourceFiles())j=Ur(j,rce(l,K,D));return j||Xe}}function oce(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 ace(e){return Co(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Co(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function sce(e,t){return Ty(e)?t:e[1]||8}function lce(e,t){return e||tb(t||{})}function cce(e,t,r){var i,o,s,l;let d=e.program,p=oi(_o(t,r.getCurrentDirectory())),h=Pd(r.useCaseSensitiveFileNames()),m,y=(i=d.fileNames)==null?void 0:i.map(A),E,S=d.latestChangedDtsFile?N(d.latestChangedDtsFile):void 0;if(ice(d)){let Y=new Map;d.fileInfos.forEach((B,ce)=>{let z=D(ce+1);Y.set(z,Co(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:lce(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&&!Cs(d.options)?new Map:void 0;d.fileInfos.forEach((z,ee)=>{let me=D(ee+1),ge=ace(z);Y.set(me,ge),B&&ge.signature&&B.set(me,ge.signature)}),(l=d.emitSignatures)==null||l.forEach(z=>{if(Ty(z))B.delete(D(z));else{let ee=D(z[0]);B.set(ee,!Co(z[1])&&!z[1].length?[B.get(ee)]:z[1])}});let ce=d.affectedFilesPendingEmit?tb(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&&g0(d.affectedFilesPendingEmit,z=>D(Ty(z)?z:z[0]),z=>sce(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:Uo,getProgramOrUndefined:qb,releaseProgram:qa,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Uo,getSourceFiles:Uo,getOptionsDiagnostics:Uo,getGlobalDiagnostics:Uo,getConfigFileParsingDiagnostics:Uo,getSyntacticDiagnostics:Uo,getDeclarationDiagnostics:Uo,getSemanticDiagnostics:Uo,emit:Uo,getAllDependencies:Uo,getCurrentDirectory:Uo,emitNextAffectedFile:Uo,getSemanticDiagnosticsOfNextAffectedFile:Uo,emitBuildInfo:Uo,close:qa,hasChangedEmitSignature:jm};function A(Y){return nl(Y,p,h)}function N(Y){return _o(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&&g0(Y,B=>D(Ty(B)?B:B[0]),B=>Ty(B)?Xe:B[1])}}function IJ(e,t,r){let i=oi(_o(t,r.getCurrentDirectory())),o=Pd(r.useCaseSensitiveFileNames()),s=new Map,l=0,d=[];return e.fileInfos.forEach((p,h)=>{let m=nl(e.fileNames[h],i,o),y=Co(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:Uo,getCurrentDirectory:()=>r().getCurrentDirectory(),close:qa};function r(){return R.checkDefined(e().program)}}var RJ,DJ,rje=bt({"src/compiler/builder.ts"(){"use strict";Zo(),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 I1e(e,t,r,i,o,s){return AJ(0,pz(e,t,r,i,o,s))}function CJ(e,t,r,i,o,s){return AJ(1,pz(e,t,r,i,o,s))}function x1e(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:d}=pz(e,t,r,i,o,s);return xJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),d)}var ije=bt({"src/compiler/builderPublic.ts"(){"use strict";Zo()}});function fz(e){return Sl(e,"/node_modules/.staging")?Ix(e,"/.staging"):gt(FL,t=>e.includes(t))?void 0:e}function dce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==rl&&!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 mz(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=dce(e,t);return t>r+1}function uce(e){return D1e(oi(e))}function R1e(e,t){if(t.lengtho.length+1?fce(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:C1e(d,l,l.length-1,p,h,o)}function C1e(e,t,r,i,o,s){if(o!==-1)return fce(e,t,o+1);let l=!0,d=r;for(let p=0;poje(i,o,s,e,r,t,l)}}function oje(e,t,r,i,o,s,l){let d=_z(e),p=XR(r,i,o,d,t,s,l);if(!e.getGlobalCache)return p;let h=e.getGlobalCache();if(h!==void 0&&!$c(r)&&!(p.resolvedModule&&F6(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:S}=Pse(R.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,d,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=JR(p.failedLookupLocations,y),p.affectingLocations=JR(p.affectingLocations,E),p.resolutionDiagnostics=JR(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=Eu(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Y=new Map,B=qR(j(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,z=S3(j(),e.getCanonicalFileName,e.getCompilationSettings(),B.getPackageJsonInfoCache(),B.optionsToRedirectsKey),ee=new Map,me=qR(j(),e.getCanonicalFileName,rK(e.getCompilationSettings()),B.getPackageJsonInfoCache()),ge=new Map,q=new Map,J=_ce(t,j),re=e.toPath(J),pe=zc(re),xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:Y,resolvedTypeReferenceDirectives:ce,resolvedLibraries:ee,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:ft,resolveSingleModuleNameWithoutWatching:Zt,removeResolutionsFromProjectReferenceRedirects:$e,removeResolutionsOfFile:Ot,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:si,invalidateResolutionsOfFailedLookupLocations:ua,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:De,isFileWithInvalidatedNonRelativeUnresolvedImports:Ie,updateTypeRootsWatch:lt,closeTypeRootsWatch:Be,clear:he,onChangesAffectModuleResolution:Ce};function fe(se){return se.resolvedModule}function ne(se){return se.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(),ee.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 se=i;return i=void 0,se}function Ie(se){if(!s)return!1;let ke=s.get(se);return!!ke&&!!ke.length}function De(se,ke){ua();let st=o;return o=void 0,{hasInvalidatedResolutions:G=>se(G)||w||!!st?.has(G)||Ie(G),hasInvalidatedLibResolutions:G=>{var et;return ke(G)||!!((et=ee?.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(se){ee.forEach((ke,st)=>{var G;(G=se?.resolvedLibReferences)!=null&&G.has(st)||(Zn(ke,e.toPath(oz(e.getCompilationSettings(),j(),st)),fe),ee.delete(st))})}function be(se,ke){s=void 0,w=!1,l.forEach(uo),l.clear(),se!==ke&&(Et(se),se?.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{se?.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(se,ke){se.refCount===0&&(ge.delete(ke),se.watcher.close())}function tt(se,ke){var st;se.files===0&&se.resolutions===0&&!((st=se.symlinks)!=null&&st.size)&&(q.delete(ke),se.watcher.close())}function Wt({entries:se,containingFile:ke,containingSourceFile:st,redirectedReference:G,options:et,perFileCache:Tt,reusedNames:He,loader:pt,getResolutionWithResolvedFileName:Bt,deferWatchingNonRelativeResolution:hn,shouldRetryResolution:dn,logChanges:un}){let U=e.toPath(ke),Me=Tt.get(U)||Tt.set(U,f1()).get(U),Nt=[],k=un&&Ie(U),ie=e.getCurrentProgram(),H=ie&&ie.getResolvedProjectReferenceToRedirect(ke),ue=H?!G||G.sourceFile.path!==H.sourceFile.path:!!G,We=f1();for(let It of se){let Dt=pt.nameAndMode.getName(It),Kt=pt.nameAndMode.getMode(It,st,G?.commandLine.options||et),En=Me.get(Dt,Kt);if(!We.has(Dt,Kt)&&(w||ue||!En||En.isInvalidated||k&&!$c(Dt)&&dn(En))){let wn=En;En=pt.resolve(Dt,Kt),e.onDiscoveredSymlink&&aje(En)&&e.onDiscoveredSymlink(),Me.set(Dt,Kt,En),En!==wn&&(Dn(Dt,En,U,Bt,hn),wn&&Zn(wn,U,Bt)),un&&i&&!Ne(wn,En)&&(i.push(U),un=!1)}else{let wn=_z(e);if(Gg(et,wn)&&!We.has(Dt,Kt)){let Bn=Bt(En);yo(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&&wv(Bn.packageId))}}R.assert(En!==void 0&&!En.isInvalidated),We.set(Dt,Kt,!0),Nt.push(En)}return He?.forEach(It=>We.set(pt.nameAndMode.getName(It),pt.nameAndMode.getMode(It,st,G?.commandLine.options||et),!0)),Me.size()!==We.size()&&Me.forEach((It,Dt,Kt)=>{We.has(Dt,Kt)||(Zn(It,U,Bt),Me.delete(Dt,Kt))}),Nt;function Ne(It,Dt){if(It===Dt)return!0;if(!It||!Dt)return!1;let Kt=Bt(It),En=Bt(Dt);return Kt===En?!0:!Kt||!En?!1:Kt.resolvedFileName===En.resolvedFileName}}function _t(se,ke,st,G,et,Tt){return Wt({entries:se,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:ce,loader:rz(ke,st,G,_z(e),z),getResolutionWithResolvedFileName:ne,shouldRetryResolution:He=>He.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(se,ke,st,G,et,Tt){return Wt({entries:se,containingFile:ke,containingSourceFile:et,redirectedReference:st,options:G,reusedNames:Tt,perFileCache:Y,loader:hce(ke,st,G,e,B),getResolutionWithResolvedFileName:fe,shouldRetryResolution:He=>!He.resolvedModule||!JN(He.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function ft(se,ke,st,G){let et=_z(e),Tt=ee?.get(G);if(!Tt||Tt.isInvalidated){let He=Tt;Tt=T3(se,ke,st,et,me);let pt=e.toPath(ke);Dn(se,Tt,pt,fe,!1),ee.set(G,Tt),He&&Zn(He,pt,fe)}else if(Gg(st,et)){let He=fe(Tt);yo(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,se,ke,He?.resolvedFileName,He?.packageId&&wv(He.packageId))}return Tt}function Zt(se,ke){var st,G;let et=e.toPath(ke),Tt=Y.get(et),He=Tt?.get(se,void 0);if(He&&!He.isInvalidated)return He;let pt=(st=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:st.call(e,B),Bt=_z(e),hn=XR(se,ke,e.getCompilationSettings(),Bt,B);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,B,se,ke,hn,pt),hn}function en(se){return Sl(se,"/node_modules/@types")}function Dn(se,ke,st,G,et){var Tt;if(ke.refCount)ke.refCount++,R.assertIsDefined(ke.files);else{ke.refCount=1,R.assert(!((Tt=ke.files)!=null&&Tt.size)),!et||$c(se)?pn(ke):l.add(se,ke);let He=G(ke);if(He&&He.resolvedFileName){let pt=e.toPath(He.resolvedFileName),Bt=h.get(pt);Bt||h.set(pt,Bt=new Set),Bt.add(ke)}}(ke.files??(ke.files=new Set)).add(st)}function Kn(se,ke){let st=e.toPath(se),G=NJ(se,st,J,re,pe,j);if(G){let{dir:et,dirPath:Tt,nonRecursive:He}=G;Tt===re?(R.assert(He),ke=!0):Li(et,Tt,He)}return ke}function pn(se){R.assert(!!se.refCount);let{failedLookupLocations:ke,affectingLocations:st,alternateResult:G}=se;if(!ke?.length&&!st?.length&&!G)return;(ke?.length||G)&&d.add(se);let et=!1;if(ke)for(let Tt of ke)et=Kn(Tt,et);G&&(et=Kn(G,et)),et&&Li(J,re,!0),Yt(se,!ke?.length&&!G)}function Yt(se,ke){R.assert(!!se.refCount);let{affectingLocations:st}=se;if(st?.length){ke&&p.add(se);for(let G of st)qt(G,!0)}}function qt(se,ke){let st=q.get(se);if(st){ke?st.resolutions++:st.files++;return}let G=se,et=!1,Tt;e.realpath&&(G=e.realpath(se),se!==G&&(et=!0,Tt=q.get(G)));let He=ke?1:0,pt=ke?0:1;if(!et||!Tt){let Bt={watcher:pce(e.toPath(G))?e.watchAffectingFileLocation(G,(hn,dn)=>{K?.addOrDeleteFile(hn,e.toPath(G),dn),hi(G,B.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):sD,resolutions:et?0:He,files:et?0:pt,symlinks:void 0};q.set(G,Bt),et&&(Tt=Bt)}if(et){R.assert(!!Tt);let Bt={watcher:{close:()=>{var hn;let dn=q.get(G);(hn=dn?.symlinks)!=null&&hn.delete(se)&&!dn.symlinks.size&&!dn.resolutions&&!dn.files&&(q.delete(G),dn.watcher.close())}},resolutions:He,files:pt,symlinks:void 0};q.set(se,Bt),(Tt.symlinks??(Tt.symlinks=new Set)).add(se)}}function hi(se,ke){var st;let G=q.get(se);G?.resolutions&&(S??(S=new Set)).add(se),G?.files&&(E??(E=new Set)).add(se),(st=G?.symlinks)==null||st.forEach(et=>hi(et,ke)),ke?.delete(e.toPath(se))}function uo(se,ke){let st=e.getCurrentProgram();!st||!st.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(ke)?se.forEach(pn):se.forEach(G=>Yt(G,!0))}function Li(se,ke,st){let G=ge.get(ke);G?(R.assert(!!st==!!G.nonRecursive),G.refCount++):ge.set(ke,{watcher:Sr(se,ke,st),refCount:1,nonRecursive:st})}function Eo(se,ke,st){let G=e.toPath(se),et=NJ(se,G,J,re,pe,j);if(et){let{dirPath:Tt}=et;Tt===re?ke=!0:jr(Tt,st)}return ke}function Zn(se,ke,st,G){if(R.checkDefined(se.files).delete(ke),se.refCount--,se.refCount)return;let et=st(se);if(et&&et.resolvedFileName){let Bt=e.toPath(et.resolvedFileName),hn=h.get(Bt);hn?.delete(se)&&!hn.size&&h.delete(Bt)}let{failedLookupLocations:Tt,affectingLocations:He,alternateResult:pt}=se;if(d.delete(se)){let Bt=!1;if(Tt)for(let hn of Tt)Bt=Eo(hn,Bt,G);pt&&(Bt=Eo(pt,Bt,G)),Bt&&jr(re,G)}else He?.length&&p.delete(se);if(He)for(let Bt of He){let hn=q.get(Bt);hn.resolutions--,G&&tt(hn,Bt)}}function jr(se,ke){let st=ge.get(se);st.refCount--,ke&&ze(st,se)}function Sr(se,ke,st){return e.watchDirectoryOfFailedLookupLocation(se,G=>{let et=e.toPath(G);K&&K.addOrDeleteFileOrDirectory(G,et),$i(et,ke===et)},st?0:1)}function on(se,ke,st,G){let et=se.get(ke);et&&(et.forEach(Tt=>Zn(Tt,ke,st,G)),se.delete(ke))}function $e(se){if(!Tl(se,".json"))return;let ke=e.getCurrentProgram();if(!ke)return;let st=ke.getResolvedProjectReferenceByPath(se);st&&st.commandLine.fileNames.forEach(G=>Ot(e.toPath(G)))}function Ot(se,ke){on(Y,se,fe,ke),on(ce,se,ne,ke)}function In(se,ke){if(!se)return!1;let st=!1;return se.forEach(G=>{if(!(G.isInvalidated||!ke(G))){G.isInvalidated=st=!0;for(let et of R.checkDefined(G.files))(o??(o=new Set)).add(et),y=y||Sl(et,iD)}}),st}function si(se){Ot(se);let ke=y;In(h.get(se),Ay)&&y&&!ke&&e.onChangedAutomaticTypeDirectiveNames()}function yi(se){R.assert(s===se||s===void 0),s=se}function $i(se,ke){if(ke)(D||(D=new Set)).add(se);else{let st=fz(se);if(!st||(se=st,e.fileIsOpen(se)))return!1;let G=oi(se);if(en(se)||qW(se)||en(G)||qW(G))(A||(A=new Set)).add(se),(N||(N=new Set)).add(se);else{if(Vle(e.getCurrentProgram(),se)||Tl(se,".map"))return!1;(A||(A=new Set)).add(se);let et=_w(se,!0);et&&(N||(N=new Set)).add(et)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ao(){let se=B.getPackageJsonInfoCache().getInternalMap();se&&(A||N||D)&&se.forEach((ke,st)=>vn(st)?se.delete(st):void 0)}function ua(){var se;if(w)return E=void 0,Ao(),(A||N||D||S)&&In(ee,Ba),A=void 0,N=void 0,D=void 0,S=void 0,!0;let ke=!1;return E&&((se=e.getCurrentProgram())==null||se.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,Ao(),A=void 0,N=void 0,D=void 0,ke=In(p,kn)||ke,S=void 0),ke}function Ba(se){var ke;return kn(se)?!0:!A&&!N&&!D?!1:((ke=se.failedLookupLocations)==null?void 0:ke.some(st=>vn(e.toPath(st))))||!!se.alternateResult&&vn(e.toPath(se.alternateResult))}function vn(se){return A?.has(se)||TL(N?.keys()||[],ke=>ao(se,ke)?!0:void 0)||TL(D?.keys()||[],ke=>se.length>ke.length&&ao(se,ke)&&(aV(ke)||se[ke.length]===rl)?!0:void 0)}function kn(se){var ke;return!!S&&((ke=se.affectingLocations)==null?void 0:ke.some(st=>S.has(st)))}function Be(){$u(xe,Km)}function ct(se){return Rt(se)?e.watchTypeRootsDirectory(se,ke=>{let st=e.toPath(ke);K&&K.addOrDeleteFileOrDirectory(ke,st),y=!0,e.onChangedAutomaticTypeDirectiveNames();let G=mce(se,e.toPath(se),re,pe,j,et=>ge.has(et));G&&$i(st,G===st)},1):sD}function lt(){let se=e.getCompilationSettings();if(se.types){Be();return}let ke=MP(se,{getCurrentDirectory:j});ke?jN(xe,new Set(ke),{createNewValue:ct,onDeleteValue:Km}):Be()}function Rt(se){return e.getCompilationSettings().typeRoots?!0:uce(e.toPath(se))}}function aje(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var sje=bt({"src/compiler/resolutionCache.ts"(){"use strict";Zo()}});function zw(e,t){let r=e===gd&&Tce?Tce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Pd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(oJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(Kle(i,r)+r.getNewLine()),i[0]=void 0}}function P1e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&zo(Ez,t.code)?(e.clearScreen(),!0):!1}function lje(e,t){return zo(Ez,e.code)?t+t:t}function Bw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function gce(e,t){return t?(r,i,o)=>{P1e(e,r,o);let s=`[${aS(Bw(e),"\x1B[90m")}] `;s+=`${k_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";P1e(e,r,o)||(s+=i),s+=`${Bw(e)} - `,s+=`${k_(r.messageText,e.newLine)}${lje(r,i)}`,e.write(s)}}function M1e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>w1e(o,s,p);let d=nw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function hz(e){return bv(e,t=>t.category===1)}function gz(e){return Vr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=Gr(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=ys(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 L1e(e,t){let r=aS(":"+e.line,"\x1B[90m");return QC(e.fileName)&&QC(t)?_m(t,e.fileName,!1)+r:e.fileName+r}function yce(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]&&L1e(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=Hl(...d),h=s.length>1?cje(o,i):"";return`${r}${k_(p.messageText,r)}${r}${r}${h}`}function cje(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,bv(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=>ZC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${aD(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(Fo(void 0,f.File_is_output_of_project_reference_source_0,aD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Fo(void 0,f.File_redirects_to_file_0,aD(e.redirectInfo.redirectTarget,t))),wp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Fo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,aD(Ja(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Fo(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,aD(Ja(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Fo(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(_o(i.fileName,e.getCurrentDirectory()));return Gr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(_o(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=Tl(t,".json"),l=oi(_o(o.fileName,e.getCurrentDirectory())),d=e.useCaseSensitiveFileNames();return Gr((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Sl(p,".json"))return!1;let h=yoe(p,l,"files");return!!h&&Gv(`(${h})$`,d).test(t)})}function FJ(e,t,r){var i,o;let s=e.getCompilerOptions();if(xE(t)){let l=qP(e,t),d=nD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(R.assert(nD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:nD(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===jv?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:R.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:R.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:R.assertNever(t)}return Fo(void 0,p,d,aD(l.file,r),l.packageId&&wv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return Fo(void 0,f.Root_file_specified_for_compilation);let l=_o(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(OJ(e,l))return Fo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=WJ(e,l);return Co(p)?Fo(void 0,f.Matched_by_include_pattern_0_in_1,p,aD(s.configFile,r)):Fo(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=R.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return Fo(void 0,Cs(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,aD(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,wv(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,wv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return Fo(void 0,...y)}case 6:{if(t.index!==void 0)return Fo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let y=Gc(dw.type,(S,A)=>S===rs(s)?A:void 0),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return Fo(void 0,...E)}default:R.assertNever(t)}}function aD(e,t){let r=Co(e)?e:e.fileName;return t?t(r):r}function yz(e,t,r,i,o,s,l,d){let p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Ur(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(Ur(h,e.getOptionsDiagnostics(s)),p||(Ur(h,e.getGlobalDiagnostics(s)),h.length===m&&Ur(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;Ur(h,S);let A=wx(h);if(A.forEach(t),r){let N=e.getCurrentDirectory();gn(E,D=>{let w=_o(D,N);r(`TSFILE: ${w}`)}),LJ(e,r)}return i&&i(hz(A),gz(A)),{emitResult:y,diagnostics:A}}function bce(e,t,r,i,o,s,l,d){let{emitResult:p,diagnostics:h}=yz(e,t,r,i,o,s,l,d);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function zJ(e=gd,t){return{onWatchStatusChange:t||gce(e),watchFile:ea(e,e.watchFile)||lD,watchDirectory:ea(e,e.watchDirectory)||lD,setTimeout:ea(e,e.setTimeout)||qa,clearTimeout:ea(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:ea(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:Eu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Pd(i),getNewLine:()=>Wy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ea(e,e.trace),directoryExists:ea(r,r.directoryExists),getDirectories:ea(r,r.getDirectories),realpath:ea(e,e.realpath),getEnvironmentVariable:ea(e,e.getEnvironmentVariable)||(()=>""),createHash:ea(e,e.createHash),readDirectory:ea(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function vz(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||!Ud(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(O3)){t=t.substring(0,i);break}else if(!l.match(W3))break;r=i}}return(e.createHash||$C)(t)}function bz(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=vz(e,i.text)),i}}function VJ(e,t){let r=Eu(()=>oi(ma(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Eu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Yr(r(),XL(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:ea(e,e.realpath),getEnvironmentVariable:ea(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:ea(e,e.createHash),createProgram:t||CJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ea(e,e.now)}}function k1e(e=gd,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);yz(l,r,o,h=>s.onWatchStatusChange(Hl(MJ(h),h),p,d,h))},s}function w1e(e,t,r){t(r),e.exit(1)}function Ece({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=l||zw(o),h=k1e(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>w1e(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function Sce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=k1e(o,s,l||zw(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function O1e(e){let t=e.system||gd,r=e.host||(e.host=jJ(e.options,t)),i=Ace(e),o=bce(i,e.reportDiagnostic||zw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(yce(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var Tce,Ez,sD,lD,wc,dje=bt({"src/compiler/watch.ts"(){"use strict";Zo(),Tce=gd?{getCurrentDirectory:()=>gd.getCurrentDirectory(),getNewLine:()=>gd.newLine,getCanonicalFileName:Pd(gd.useCaseSensitiveFileNames)}:void 0,Ez=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],sD={close:qa},lD=()=>sD,wc={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 Sz(e,t){let r=Uy(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=$3(r,o)}if(!(!i||i.version!==Jp||!i.program))return cce(i,r,t)}function jJ(e,t=gd){let r=iJ(e,void 0,t);return r.createHash=ea(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,bz(r),kw(r,i=>nl(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Ace({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||jJ(t),s=s||CJ;let l=Sz(t,o);return s(e,t,o,l,r,i)}function W1e(e,t,r,i,o,s,l,d){return So(e)?Sce({rootFiles:e,options:t,watchOptions:d,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Ece({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:d,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function F1e(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:ee}=e,me,ge,q=!1,J=!1,re=D===void 0?void 0:Z3(e,N,A),pe=re||e,xe=lz(e,pe),fe=Dn();D&&e.configFileParsingResult&&(Ba(e.configFileParsingResult),fe=Dn()),Zn(f.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=Wy(w),R.assert(!B),ua(),fe=Dn()),R.assert(ce),R.assert(B);let{watchFile:ne,watchDirectory:he,writeLog:Ce}=BJ(e,ce),Ge=Pd(A);Ce(`Current directory: ${N} CaseSensitiveFileNames: ${A}`);let ve;D&&(ve=ne(D,In,2e3,z,wc.ConfigFile));let Ie=GJ(e,()=>ce,pe);bz(Ie);let De=Ie.getSourceFile;Ie.getSourceFile=(He,...pt)=>hi(He,Kn(He),...pt),Ie.getSourceFileByPath=hi,Ie.getNewLine=()=>fe,Ie.fileExists=qt,Ie.onReleaseOldSourceFile=Eo,Ie.onReleaseParsedCommandLine=Be,Ie.toPath=Kn,Ie.getCompilationSettings=()=>ce,Ie.useSourceOfProjectReferenceRedirect=ea(e,e.useSourceOfProjectReferenceRedirect),Ie.watchDirectoryOfFailedLookupLocation=(He,pt,Bt)=>he(He,pt,Bt,z,wc.FailedLookupLocations),Ie.watchAffectingFileLocation=(He,pt)=>ne(He,pt,2e3,z,wc.AffectingFileLocation),Ie.watchTypeRootsDirectory=(He,pt,Bt)=>he(He,pt,Bt,z,wc.TypeRoots),Ie.getCachedDirectoryStructureHost=()=>re,Ie.scheduleInvalidateResolutionsOfFailedLookupLocations=on,Ie.onInvalidatedResolution=Ot,Ie.onChangedAutomaticTypeDirectiveNames=Ot,Ie.fileIsOpen=jm,Ie.getCurrentProgram=Je,Ie.writeLog=Ce,Ie.getParsedCommandLine=vn;let Le=PJ(Ie,D?oi(_o(D,N)):N,!1);Ie.resolveModuleNameLiterals=ea(e,e.resolveModuleNameLiterals),Ie.resolveModuleNames=ea(e,e.resolveModuleNames),!Ie.resolveModuleNameLiterals&&!Ie.resolveModuleNames&&(Ie.resolveModuleNameLiterals=Le.resolveModuleNameLiterals.bind(Le)),Ie.resolveTypeReferenceDirectiveReferences=ea(e,e.resolveTypeReferenceDirectiveReferences),Ie.resolveTypeReferenceDirectives=ea(e,e.resolveTypeReferenceDirectives),!Ie.resolveTypeReferenceDirectiveReferences&&!Ie.resolveTypeReferenceDirectives&&(Ie.resolveTypeReferenceDirectiveReferences=Le.resolveTypeReferenceDirectiveReferences.bind(Le)),Ie.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Le.resolveLibrary.bind(Le),Ie.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ea(e,e.getModuleResolutionCache):()=>Le.getModuleResolutionCache();let be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ea(e,e.hasInvalidatedResolutions)||Ay:jm,ze=e.resolveLibrary?ea(e,e.hasInvalidatedLibResolutions)||Ay:jm;return t=Sz(ce,Ie),ft(),st(),D&&et(Kn(D),ce,z,wc.ExtendedConfigFile),D?{getCurrentProgram:_t,getProgram:yi,close:tt,getResolutionCache:Wt}:{getCurrentProgram:_t,getProgram:yi,updateRootFileNames:en,close:tt,getResolutionCache:Wt};function tt(){Sr(),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,Km),i=void 0),d&&($u(d,He=>{var pt;(pt=He.watcher)==null||pt.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 ft(){Ce("Synchronizing program"),R.assert(ce),R.assert(B),Sr();let He=_t();S&&(fe=Dn(),He&&bF(He.getCompilerOptions(),ce)&&Le.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:pt,hasInvalidatedLibResolutions:Bt}=Le.createHasInvalidatedResolutions(be,ze),{originalReadFile:hn,originalFileExists:dn,originalDirectoryExists:un,originalCreateDirectory:U,originalWriteFile:Me,readFileWithCache:Nt}=kw(Ie,Kn);return mJ(Je(),B,ce,k=>Li(k,Nt),k=>Ie.fileExists(k),pt,Bt,jr,vn,ee)?J&&(m&&Zn(f.File_change_detected_Starting_incremental_compilation),t=Y(void 0,void 0,Ie,t,ge,ee),J=!1):(m&&Zn(f.File_change_detected_Starting_incremental_compilation),Zt(pt,Bt)),m=!1,e.afterProgramCreate&&He!==t&&e.afterProgramCreate(t),Ie.readFile=hn,Ie.fileExists=dn,Ie.directoryExists=un,Ie.createDirectory=U,Ie.writeFile=Me,t}function Zt(He,pt){Ce("CreatingProgramWith::"),Ce(` roots: ${JSON.stringify(B)}`),Ce(` options: ${JSON.stringify(ce)}`),ee&&Ce(` projectReferences: ${JSON.stringify(ee)}`);let Bt=S||!Je();S=!1,J=!1,Le.startCachingPerDirectoryResolution(),Ie.hasInvalidatedResolutions=He,Ie.hasInvalidatedLibResolutions=pt,Ie.hasChangedAutomaticTypeDirectiveNames=jr;let hn=Je();if(t=Y(B,ce,Ie,t,ge,ee),Le.finishCachingPerDirectoryResolution(t.getProgram(),hn),QK(t.getProgram(),i||(i=new Map),se),Bt&&Le.updateTypeRootsWatch(),E){for(let dn of E)i.has(dn)||y.delete(dn);E=void 0}}function en(He){R.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 nl(He,N,Ge)}function pn(He){return typeof He=="boolean"}function Yt(He){return typeof He.version=="boolean"}function qt(He){let pt=Kn(He);return pn(y.get(pt))?!1:pe.fileExists(He)}function hi(He,pt,Bt,hn,dn){let un=y.get(pt);if(pn(un))return;let U=typeof Bt=="object"?Bt.impliedNodeFormat:void 0;if(un===void 0||dn||Yt(un)||un.sourceFile.impliedNodeFormat!==U){let Me=De(He,Bt,hn);if(un)Me?(un.sourceFile=Me,un.version=Me.version,un.fileWatcher||(un.fileWatcher=ct(pt,He,lt,250,z,wc.SourceFile))):(un.fileWatcher&&un.fileWatcher.close(),y.set(pt,!1));else if(Me){let Nt=ct(pt,He,lt,250,z,wc.SourceFile);y.set(pt,{sourceFile:Me,version:Me.version,fileWatcher:Nt})}else y.set(pt,!1);return Me}return un.sourceFile}function uo(He){let pt=y.get(He);pt!==void 0&&(pn(pt)?y.set(He,{version:!1}):pt.version=!1)}function Li(He,pt){let Bt=y.get(He);if(!Bt)return;if(Bt.version)return Bt.version;let hn=pt(He);return hn!==void 0?vz(Ie,hn):void 0}function Eo(He,pt,Bt){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),Bt||Le.removeResolutionsOfFile(He.path)))}function Zn(He){e.onWatchStatusChange&&e.onWatchStatusChange(Hl(He),fe,ce||w)}function jr(){return Le.hasChangedAutomaticTypeDirectiveNames()}function Sr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function on(){if(!e.setTimeout||!e.clearTimeout)return Le.invalidateResolutionsOfFailedLookupLocations();let He=Sr();Ce(`Scheduling invalidateFailedLookup${He?", Cancelled earlier one":""}`),l=e.setTimeout($e,250,"timerToInvalidateFailedLookupResolutions")}function $e(){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(){R.assert(!!D),r=2,Ot()}function si(){s=void 0,m=!0,yi()}function yi(){var He,pt,Bt,hn;switch(r){case 1:(He=iu)==null||He.logStartUpdateProgram("PartialConfigReload"),$i();break;case 2:(pt=iu)==null||pt.logStartUpdateProgram("FullConfigReload"),Ao();break;default:(Bt=iu)==null||Bt.logStartUpdateProgram("SynchronizeProgram"),ft();break}return(hn=iu)==null||hn.logStopUpdateProgram("Done"),_t()}function $i(){Ce("Reloading new file names and options"),R.assert(ce),R.assert(D),r=0,B=CP(ce.configFile.configFileSpecs,_o(oi(D),N),ce,xe,K),c3(B,_o(D,N),ce.configFile.configFileSpecs,ge,q)&&(J=!0),ft()}function Ao(){R.assert(D),Ce(`Reloading config file: ${D}`),r=0,re&&re.clearCache(),ua(),S=!0,ft(),st(),et(Kn(D),ce,z,wc.ExtendedConfigFile)}function ua(){R.assert(D),Ba(nw(D,w,xe,h||(h=new Map),j,K))}function Ba(He){B=He.fileNames,ce=He.options,z=He.watchOptions,ee=He.projectReferences,me=He.wildcardDirectories,ge=qT(He).slice(),q=DP(He.raw),J=!0}function vn(He){let pt=Kn(He),Bt=d?.get(pt);if(Bt){if(!Bt.updateLevel)return Bt.parsedCommandLine;if(Bt.parsedCommandLine&&Bt.updateLevel===1&&!e.getParsedCommandLine){Ce("Reloading new file names and options"),R.assert(ce);let dn=CP(Bt.parsedCommandLine.options.configFile.configFileSpecs,_o(oi(He),N),ce,xe);return Bt.parsedCommandLine={...Bt.parsedCommandLine,fileNames:dn},Bt.updateLevel=void 0,Bt.parsedCommandLine}}Ce(`Loading config file: ${He}`);let hn=e.getParsedCommandLine?e.getParsedCommandLine(He):kn(He);return Bt?(Bt.parsedCommandLine=hn,Bt.updateLevel=void 0):(d||(d=new Map)).set(pt,Bt={parsedCommandLine:hn}),Tt(He,pt,Bt),hn}function kn(He){let pt=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=qa;let Bt=nw(He,void 0,xe,h||(h=new Map),j);return xe.onUnRecoverableConfigFileDiagnostic=pt,Bt}function Be(He){var pt;let Bt=Kn(He),hn=d?.get(Bt);hn&&(d.delete(Bt),hn.watchedDirectories&&$u(hn.watchedDirectories,Rf),(pt=hn.watcher)==null||pt.close(),$K(Bt,p))}function ct(He,pt,Bt,hn,dn,un){return ne(pt,(U,Me)=>Bt(U,Me,He),hn,dn,un)}function lt(He,pt,Bt){Rt(He,Bt,pt),pt===2&&y.has(Bt)&&Le.invalidateResolutionOfFile(Bt),uo(Bt),Ot()}function Rt(He,pt,Bt){re&&re.addOrDeleteFile(He,pt,Bt)}function se(He,pt){return d?.has(He)?sD:ct(He,pt,ke,500,z,wc.MissingFile)}function ke(He,pt,Bt){Rt(He,Bt,pt),pt===0&&i.has(Bt)&&(i.get(Bt).close(),i.delete(Bt),uo(Bt),Ot())}function st(){Pw(o||(o=new Map),me,G)}function G(He,pt){return he(He,Bt=>{R.assert(D),R.assert(ce);let hn=Kn(Bt);re&&re.addOrDeleteFileOrDirectory(Bt,hn),uo(hn),!Mw({watchedDirPath:Kn(He),fileOrDirectory:Bt,fileOrDirectoryPath:hn,configFileName:D,extraFileExtensions:K,options:ce,program:_t()||B,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Kn})&&r!==2&&(r=1,Ot())},pt,z,wc.WildcardDirectory)}function et(He,pt,Bt,hn){ez(He,pt,p||(p=new Map),(dn,un)=>ne(dn,(U,Me)=>{var Nt;Rt(dn,un,Me),h&&tz(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,Bt,hn),Kn)}function Tt(He,pt,Bt){var hn,dn,un,U;Bt.watcher||(Bt.watcher=ne(He,(Me,Nt)=>{Rt(He,pt,Nt);let k=d?.get(pt);k&&(k.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(pt),Ot()},2e3,((hn=Bt.parsedCommandLine)==null?void 0:hn.watchOptions)||z,wc.ConfigFileOfReferencedProject)),Pw(Bt.watchedDirectories||(Bt.watchedDirectories=new Map),(dn=Bt.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(pt);ue?.parsedCommandLine&&(Mw({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=Bt.parsedCommandLine)==null?void 0:k.watchOptions)||z,wc.WildcardDirectoryOfReferencedProject)}),et(pt,(un=Bt.parsedCommandLine)==null?void 0:un.options,((U=Bt.parsedCommandLine)==null?void 0:U.watchOptions)||z,wc.ExtendedConfigOfReferencedProject)}}var uje=bt({"src/compiler/watchPublic.ts"(){"use strict";Zo()}});function UJ(e){return Tl(e,".json")?e:Yr(e,"tsconfig.json")}var HJ,pje=bt({"src/compiler/tsbuild.ts"(){"use strict";Zo(),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 fje(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Ice(e,t){return fje(e,t,()=>new Map)}function Gw(e){return e.now?e.now():new Date}function y1(e){return!!e&&!!e.buildOrder}function Tz(e){return y1(e)?e.buildOrder:e}function xce(e,t){return r=>{let i=t?`[${aS(Bw(e),"\x1B[90m")}] `:`${Bw(e)} - `;i+=`${k_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function z1e(e,t,r,i){let o=VJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):qb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):qa,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):qa,o.reportDiagnostic=r||zw(e),o.reportSolutionBuilderStatus=i||xce(e),o.now=ea(e,e.now),o}function B1e(e=gd,t,r,i,o){let s=z1e(e,t,r,i);return s.reportErrorSummary=o,s}function G1e(e=gd,t,r,i,o){let s=z1e(e,t,r,i),l=zJ(e,o);return GG(s,l),s}function mje(e){let t={};return cw.forEach(r=>{Is(e,r.name)&&(t[r.name]=e[r.name])}),t}function V1e(e,t,r){return pxe(!1,e,t,r)}function j1e(e,t,r,i){return pxe(!0,e,t,r,i)}function _je(e,t,r,i,o){let s=t,l=t,d=mje(i),p=GJ(s,()=>N.projectCompilerOptions);bz(p),p.getParsedCommandLine=D=>v1(N,D,w_(N,D)),p.resolveModuleNameLiterals=ea(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ea(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ea(s,s.resolveLibrary),p.resolveModuleNames=ea(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ea(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ea(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=qR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(D,w,j,K,Y)=>Ow(D,w,j,K,Y,s,h,dJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=S3(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(D,w,j,K,Y)=>Ow(D,w,j,K,Y,s,m,rz));let y;p.resolveLibrary||(y=qR(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(D,w,j)=>T3(D,w,j,s,y)),p.getBuildInfo=(D,w)=>rxe(N,D,w_(N,w),void 0);let{watchFile:E,watchDirectory:S,writeLog:A}=BJ(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:lz(s),write:ea(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 nl(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 U1e(e){return!!e.options}function hje(e,t){let r=e.configFileCache.get(t);return r&&U1e(r)?r:void 0}function v1(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return U1e(o)?o:void 0;tl("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=Hl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=nw(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=qa),i.set(r,y||s),tl("SolutionBuilder::afterConfigFileParsing"),Xp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function XP(e,t){return UJ(xv(e.compilerHost.getCurrentDirectory(),t))}function H1e(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(Hl(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=v1(e,p,m);if(y&&y.projectReferences)for(let E of y.projectReferences){let S=XP(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function Az(e){return e.buildOrder||gje(e)}function gje(e){let t=H1e(e,e.rootNames.map(o=>XP(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Tz(t).map(o=>w_(e,o))),i={onDeleteValue:qa};return ng(e.configFileCache,r,i),ng(e.projectStatus,r,i),ng(e.builderPrograms,r,i),ng(e.diagnostics,r,i),ng(e.projectPendingBuild,r,i),ng(e.projectErrorsReported,r,i),ng(e.buildInfoCache,r,i),ng(e.outputTimeStamps,r,i),ng(e.lastCachedPackageJsonLookups,r,i),e.watch&&(ng(e.allWatchedConfigFiles,r,{onDeleteValue:Km}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),ng(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Rf)}),ng(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Km)}),ng(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Km)})),e.buildOrder=t}function K1e(e,t,r){let i=t&&XP(e,t),o=Az(e);if(y1(o))return o;if(i){let l=w_(e,i);if(ql(o,p=>w_(e,p)===l)===-1)return}let s=i?H1e(e,[i]):o;return R.assert(!y1(s)),R.assert(!r||i!==void 0),R.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function J1e(e){e.cache&&Rce(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}=kw(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 Rce(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 q1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function X1e({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(w_(e,i),0)),t&&t.throwIfCancellationRequested()}function $1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function yje(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:()=>{oxe(e,i,r),s=!1},done:()=>(s&&oxe(e,i,r),tl("SolutionBuilder::Timestamps only updates"),$1e(e,r))}}function Q1e(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(Zs),getProgram:()=>E(z=>z.getProgramOrUndefined()),getSourceFile:z=>E(ee=>ee.getSourceFile(z)),getSourceFiles:()=>S(z=>z.getSourceFiles()),getOptionsDiagnostics:z=>S(ee=>ee.getOptionsDiagnostics(z)),getGlobalDiagnostics:z=>S(ee=>ee.getGlobalDiagnostics(z)),getConfigFileParsingDiagnostics:()=>S(z=>z.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(z,ee)=>S(me=>me.getSyntacticDiagnostics(z,ee)),getAllDependencies:z=>S(ee=>ee.getAllDependencies(z)),getSemanticDiagnostics:(z,ee)=>S(me=>me.getSemanticDiagnostics(z,ee)),getSemanticDiagnosticsOfNextAffectedFile:(z,ee)=>E(me=>me.getSemanticDiagnosticsOfNextAffectedFile&&me.getSemanticDiagnosticsOfNextAffectedFile(z,ee)),emit:(z,ee,me,ge,q)=>{if(z||ge)return E(J=>{var re,pe;return J.emit(z,ee,me,ge,q||((pe=(re=t.host).getCustomTransformers)==null?void 0:pe.call(re,r)))});if(ce(2,me),d===5)return K(ee,me);if(d===3)return j(ee,me,q)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(z,ee)=>d!==4?m:B(z,ee),done:y};function y(z,ee,me){return ce(8,z,ee,me),tl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),$1e(t,i)}function E(z){return ce(0),p&&z(p)}function S(z){return E(z)||Xe}function A(){var z,ee,me;if(R.assert(p===void 0),t.options.dry){xu(t,f.A_non_dry_build_would_build_project_0,r),h=1,d=7;return}if(t.options.verbose&&xu(t,f.Building_project_0,r),s.fileNames.length===0){YP(t,i,qT(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),(ee=t.typeReferenceDirectiveResolutionCache)==null||ee.update(s.options),p=ge.createProgram(s.fileNames,s.options,q,bje(t,i,s),qT(s),s.projectReferences),t.watch){let J=(me=t.moduleResolutionCache)==null?void 0:me.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,J&&new Set(Oo(J.values(),re=>t.host.realpath&&(E3(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,ee,me){z.length?{buildResult:h,step:d}=Nce(t,i,p,s,z,ee,me):d++}function D(z){R.assertIsDefined(p),N([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(z),...p.getGlobalDiagnostics(z),...p.getSyntacticDiagnostics(void 0,z)],8,"Syntactic")}function w(z){N(R.checkDefined(p).getSemanticDiagnostics(void 0,z),16,"Semantic")}function j(z,ee,me){var ge,q,J;R.assertIsDefined(p),R.assert(d===3);let re=p.saveEmitState(),pe,xe=ze=>(pe||(pe=[])).push(ze),fe=[],{emitResult:ne}=yz(p,xe,void 0,void 0,(ze,tt,Wt,_t,Je,ft)=>fe.push({name:ze,text:tt,writeByteOrderMark:Wt,data:ft}),ee,!1,me||((q=(ge=t.host).getCustomTransformers)==null?void 0:q.call(ge,r)));if(pe)return p.restoreEmitState(re),{buildResult:h,step:d}=Nce(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=pR(),Ie=new Map,De=p.getCompilerOptions(),Le=aP(De),Et,be;return fe.forEach(({name:ze,text:tt,writeByteOrderMark:Wt,data:_t})=>{let Je=Df(t,ze);Ie.set(Df(t,ze),ze),_t?.buildInfo&&Mce(t,_t.buildInfo,i,De,Ge);let ft=_t?.differsOnlyInMap?_I(t.host,ze):void 0;MN(z?{writeFile:z}:Ce,ve,ze,tt,Wt),_t?.differsOnlyInMap?t.host.setModifiedTime(ze,ft):!Le&&t.watch&&(Et||(Et=Pce(t,i))).set(Je,be||(be=Gw(t.host)))}),Y(ve,Ie,fe.length?fe[0].name:qK(s,!he.useCaseSensitiveFileNames()),Ge),ne}function K(z,ee){R.assertIsDefined(p),R.assert(d===5);let me=p.emitBuildInfo((ge,q,J,re,pe,xe)=>{xe?.buildInfo&&Mce(t,xe.buildInfo,i,p.getCompilerOptions(),2),z?z(ge,q,J,re,pe,xe):t.compilerHost.writeFile(ge,q,J,re,pe,xe)},ee);return me.diagnostics.length&&(xz(t,me.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...me.diagnostics]),h=64&h),me.emittedFiles&&t.write&&me.emittedFiles.forEach(ge=>txe(t,s,ge)),Cce(t,p,s),d=7,me}function Y(z,ee,me,ge){let q=z.getDiagnostics();return q.length?({buildResult:h,step:d}=Nce(t,i,p,s,q,64,"Emit"),q):(t.write&&ee.forEach(J=>txe(t,s,J)),ixe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ee),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:me}),Cce(t,p,s),d=7,h=ge,q)}function B(z,ee){var me,ge,q,J;if(R.assert(e===1),t.options.dry){xu(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,d=7;return}t.options.verbose&&xu(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=Ble(s,re,Ge=>{let ve=XP(t,Ge.path);return v1(t,ve,w_(t,ve))},ee||((J=(q=t.host).getCustomTransformers)==null?void 0:J.call(q,r)));if(Co(pe))return xu(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,cd(t,pe)),d=6,m=Q1e(0,t,r,i,o,s,l);R.assert(!!pe.length);let xe=pR(),fe=new Map,ne=2,he=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ge,text:ve,writeByteOrderMark:Ie,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),Mce(t,De.buildInfo,i,s.options,ne)),MN(z?{writeFile:z}:re,xe,Ge,ve,Ie)}),{emitSkipped:!1,diagnostics:Y(xe,fe,pe[0].name,ne)}}function ce(z,ee,me,ge){for(;d<=z&&d<8;){let q=d;switch(d){case 0:A();break;case 1:D(ee);break;case 2:w(ee);break;case 3:j(me,ee,ge);break;case 5:K(me,ee);break;case 4:B(me,ge);break;case 6:R.checkDefined(m).done(ee,me,ge),d=8;break;case 7:Aje(t,r,i,o,s,l,R.checkDefined(h)),d++;break;case 8:default:}R.assert(d>q)}}}function vje({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!qT(r).length||!aP(r.options)}function Z1e(e,t,r){if(!e.projectPendingBuild.size||y1(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let S=R.checkDefined(e.filesWatched.get(d));R.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=R.checkDefined(e.filesWatched.get(d));R.assert(KJ(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Rf(h)):fI(h.callbacks,r)}}}function Pce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Mce(e,t,r,i,o){let s=Uy(i),l=Lce(e,s,r),d=Gw(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 Lce(e,t,r){let i=Df(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function rxe(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?$3(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:d||!1,modifiedTime:i||Mp}),d}function kce(e,t,r,i){let o=nxe(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=X3(t,!p.useCaseSensitiveFileNames()),J=Pce(e,r);for(let re of q){let pe=Df(e,re),xe=J?.get(pe);if(xe||(xe=_I(e.host,re),J?.set(pe,xe)),xe===Mp)return{type:4,missingOutputFileName:re};if(xekce(e,q,y,m));if(ee)return ee;let me=e.lastCachedPackageJsonLookups.get(r),ge=me&&uh(me,q=>kce(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 Sje(e,t,r){return e.buildInfoCache.get(r).path===t.path}function wce(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;tl("SolutionBuilder::beforeUpToDateCheck");let o=Eje(e,t,r);return tl("SolutionBuilder::afterUpToDateCheck"),Xp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function ixe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Uy(t.options);if(l){o?.has(Df(e,l))||(e.options.verbose&&xu(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Gw(e.host)),Lce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=X3(t,!d.useCaseSensitiveFileNames()),h=Pce(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,xu(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=Gw(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((y,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function Tje(e,t,r){if(!t.composite)return;let i=R.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(_o(i.buildInfo.program.latestChangedDtsFile,oi(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function oxe(e,t,r){if(e.options.dry)return xu(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);ixe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:qK(t,!e.host.useCaseSensitiveFileNames())})}function Aje(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 sxe(e,t,r){tl("SolutionBuilder::beforeClean");let i=xje(e,t,r);return tl("SolutionBuilder::afterClean"),Xp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function xje(e,t,r){let i=K1e(e,t,r);if(!i)return 3;if(y1(i))return xz(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=v1(e,d,p);if(h===void 0){fxe(e,p);continue}let m=X3(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),Oce(e,p,0)))}return l&&xu(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(d=>`\r + * ${d}`).join("")),0}function Oce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,q1e(e,t),X1e(e,t,r),J1e(e)}function Iz(e,t,r){e.reportFileChangeDetected=!0,Oce(e,t,r),lxe(e,250,!0)}function lxe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Rje,t,"timerToBuildInvalidatedProject",e,r))}function Rje(e,t,r){tl("SolutionBuilder::beforeBuild");let i=Dje(t,r);tl("SolutionBuilder::afterBuild"),Xp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&mxe(t,i)}function Dje(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),zce(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=Az(e),o=Dce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=Z1e(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){lxe(e,100,!1);return}exe(e,s,i).done(),s.kind!==2&&r++}return Rce(e),i}function cxe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,JJ(e,t,()=>Iz(e,r,2),2e3,i?.watchOptions,wc.ConfigFile,t))}function dxe(e,t,r){ez(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=>Iz(e,l,2))},2e3,r?.watchOptions,wc.ExtendedConfigFile),i=>Df(e,i))}function uxe(e,t,r,i){e.watch&&Pw(Ice(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;Mw({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=hje(e,r))==null?void 0:d.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Df(e,p)})||Iz(e,r,1)},s,i?.watchOptions,wc.WildcardDirectory,t))}function Wce(e,t,r,i){e.watch&&jN(Ice(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>JJ(e,o,()=>Iz(e,r,0),250,i?.watchOptions,wc.SourceFile,t),onDeleteValue:Km})}function Fce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||jN(Ice(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>JJ(e,o,()=>Iz(e,r,0),2e3,i?.watchOptions,wc.PackageJson,t),onDeleteValue:Km})}function Cje(e,t){if(e.watchAllProjectsPending){tl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Tz(t)){let i=w_(e,r),o=v1(e,r,i);cxe(e,r,i,o),dxe(e,i,o),o&&(uxe(e,r,i,o),Wce(e,r,i,o),Fce(e,r,i,o))}tl("SolutionBuilder::afterWatcherCreation"),Xp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Nje(e){$u(e.allWatchedConfigFiles,Km),$u(e.allWatchedExtendedConfigFiles,Rf),$u(e.allWatchedWildcardDirectories,t=>$u(t,Rf)),$u(e.allWatchedInputFiles,t=>$u(t,Km)),$u(e.allWatchedPackageJsonFiles,t=>$u(t,Km))}function pxe(e,t,r,i,o){let s=_je(e,t,r,i,o);return{build:(l,d,p,h)=>axe(s,l,d,p,h),clean:l=>sxe(s,l),buildReferences:(l,d,p,h)=>axe(s,l,d,p,h,!0),cleanReferences:l=>sxe(s,l,!0),getNextInvalidatedProject:l=>(Y1e(s,l),Dce(s,Az(s),!1)),getBuildOrder:()=>Az(s),getUpToDateStatusOfProject:l=>{let d=XP(s,l),p=w_(s,d);return wce(s,v1(s,d,p),p)},invalidateProject:(l,d)=>Oce(s,l,d||0),close:()=>Nje(s)}}function cd(e,t){return ZC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xu(e,t,...r){e.host.reportSolutionBuilderStatus(Hl(t,...r))}function zce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Hl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function xz({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function YP(e,t,r){xz(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function fxe(e,t){YP(e,t,[e.configFileCache.get(t)])}function mxe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];y1(t)?(_xe(e,t.buildOrder),xz(e,t.circularDiagnostics),r&&(o+=hz(t.circularDiagnostics)),r&&(s=[...s,...gz(t.circularDiagnostics)])):(t.forEach(l=>{let d=w_(e,l);e.projectErrorsReported.has(d)||xz(e,i.get(d)||Xe)}),r&&i.forEach(l=>o+=hz(l)),r&&i.forEach(l=>[...s,...gz(l)])),e.watch?zce(e,MJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function _xe(e,t){e.options.verbose&&xu(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+cd(e,r)).join(""))}function Pje(e,t,r){switch(r.type){case 6:return xu(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cd(e,t),cd(e,r.outOfDateOutputFileName),cd(e,r.newerInputFileName));case 7:return xu(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cd(e,t),cd(e,r.outOfDateOutputFileName),cd(e,r.newerProjectName));case 4:return xu(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cd(e,t),cd(e,r.missingOutputFileName));case 5:return xu(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,cd(e,t),cd(e,r.fileName));case 8:return xu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,cd(e,t),cd(e,r.buildInfoFile));case 9:return xu(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,cd(e,t),cd(e,r.buildInfoFile));case 10:return xu(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,cd(e,t),cd(e,r.buildInfoFile),cd(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return xu(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,cd(e,t),cd(e,r.newestInputFileName||""),cd(e,r.oldestOutputFileName||""));break;case 3:return xu(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cd(e,t),cd(e,r.newerProjectName));case 2:return xu(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cd(e,t));case 15:return xu(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,cd(e,t));case 11:return xu(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cd(e,t),cd(e,r.upstreamProjectName));case 12:return xu(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,cd(e,t),cd(e,r.upstreamProjectName));case 0:return xu(e,f.Failed_to_parse_file_0_Colon_1,cd(e,t),r.reason);case 14:return xu(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cd(e,t),r.version,Jp);case 17:return xu(e,f.Project_0_is_being_forcibly_rebuilt,cd(e,t));case 16:case 13:break;default:}}function qJ(e,t,r){e.options.verbose&&Pje(e,t,r)}var hxe,gxe,XJ,Mje=bt({"src/compiler/tsbuildPublic.ts"(){"use strict";Zo(),iT(),hxe=new Date(-864e13),gxe=new Date(864e13),XJ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(XJ||{})}}),Zo=bt({"src/compiler/_namespaces/ts.ts"(){"use strict";kze(),jze(),Uze(),e7e(),r7e(),i7e(),_7e(),FEe(),A7e(),C7e(),N7e(),w7e(),G7e(),zBe(),BBe(),GBe(),VBe(),XBe(),YBe(),$Be(),QBe(),I5e(),x5e(),O5e(),eGe(),xGe(),MGe(),LGe(),JGe(),ZGe(),s9e(),m9e(),R9e(),D9e(),W9e(),F9e(),z9e(),K9e(),J9e(),q9e(),X9e(),Y9e(),$9e(),Q9e(),Z9e(),eVe(),rVe(),iVe(),oVe(),aVe(),sVe(),cVe(),dVe(),uVe(),pVe(),fVe(),mVe(),bVe(),xVe(),OVe(),FVe(),VVe(),jVe(),UVe(),rje(),ije(),sje(),dje(),uje(),pje(),Mje(),Vse(),iT()}});function yxe(e){return gd.args.includes(e)}function vxe(e){let t=gd.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={})),Bce=` + `}}),kje=bt({"src/jsTyping/types.ts"(){"use strict"}}),Nz=bt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";Lje(),kje()}});function Exe(e,t){return new fm(gW(t,`ts${g_}`)||gW(t,"latest")).compareTo(e.version)<=0}function Sxe(e){return Hce.has(e)?"node":e}function wje(e,t){let r=rw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function Oje(e,t){var r;let i=rw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Wje(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(F0(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=h0(d.map(Sxe),nT,jd);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&&Exe(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:${RE(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 ee=Yr(Y,B),me,ge;e.fileExists(ee)&&(z.push(ee),me=rw(ee,pe=>e.readFile(pe)).config,ge=va([me.dependencies,me.devDependencies,me.optionalDependencies,me.peerDependencies],Uh),w(ge,`Typing names in '${ee}' 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(ic(pe)!==B)return!1;let xe=zc(ma(pe)),fe=xe[xe.length-3][0]==="@";return fe&&oh(xe[xe.length-4])===ce||!fe&&oh(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=rw(xe,Ce=>e.readFile(Ce)).config;if(!ne.name)continue;let he=ne.types||ne.typings;if(he){let Ce=_o(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(!F0(z))return;let ee=Tu(oh(ic(z))),me=UG(ee);return o.get(me)});B.length&&w(B,"Inferred typings from file names"),gt(Y,z=>Tl(z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function Fje(e){return Gce(e,!0)}function Gce(e,t){if(!e)return 1;if(e.length>Jce)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=Gce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=Gce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function zje(e,t){return typeof e=="object"?Txe(t,e.result,e.name,e.isScopeName):Txe(t,e,t,!1)}function Txe(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 ${Jce} 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 R.fail();default:R.assertNever(t)}}var Vce,jce,Uce,Hce,Kce,Jce,Bje=bt({"src/jsTyping/jsTyping.ts"(){"use strict";Hw(),Nz(),Vce=["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"],jce=Vce.map(e=>`node:${e}`),Uce=[...Vce,...jce],Hce=new Set(Uce),Kce=(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))(Kce||{}),Jce=214}}),O_={};Ra(O_,{NameValidationResult:()=>Kce,discoverTypings:()=>Wje,isTypingUpToDate:()=>Exe,loadSafeList:()=>wje,loadTypesMap:()=>Oje,nodeCoreModuleList:()=>Uce,nodeCoreModules:()=>Hce,nonRelativeModuleNameForTypingCache:()=>Sxe,prefixedNodeCoreModuleList:()=>jce,renderPackageNameValidationFailure:()=>zje,validatePackageName:()=>Fje});var Gje=bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";Bje()}}),Hw=bt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Zo(),Gje(),Nz()}});function Pz(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 Mz,QJ,ZJ,eq,Cf,tq,nq,rq,iq,oq,aq,sq,qce,Kw,lq,cq,dq,uq,pq,fq,mq,_q,hq,Vje=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})(Mz||(Mz={})),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||{}),qce=Pz(` +`),Kw=(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))(Kw||{}),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 or(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 Ld(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 YT(e){e=Cq(e);let t=e.parent;return e.kind===312?1:kl(t)||Jd(t)||bh(t)||Qu(t)||yh(t)||nd(t)&&e===t.name?7:Lz(e)?jje(e):kg(e)?Jw(t):Xu(e)&&Fn(e,Um(EP,AI,yE))?7:Jje(e)?2:Uje(e)?4:ml(t)?(R.assert(nm(t.parent)),2):qv(t)?3:1}function jje(e){let t=e.kind===166?e:Au(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function Lz(e){for(;e.parent.kind===166;)e=e.parent;return tR(e.parent)&&e.parent.moduleReference===e}function Uje(e){return Hje(e)||Kje(e)}function Hje(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 Kje(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 Jje(e){switch(FN(e)&&(e=e.parent),e.kind){case 110:return!$h(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Yh(e.parent)}return!1}function gq(e,t=!1,r=!1){return qw(e,ra,vq,t,r)}function ZP(e,t=!1,r=!1){return qw(e,H0,vq,t,r)}function yq(e,t=!1,r=!1){return qw(e,v_,vq,t,r)}function Xce(e,t=!1,r=!1){return qw(e,K0,qje,t,r)}function Yce(e,t=!1,r=!1){return qw(e,Ed,vq,t,r)}function $ce(e,t=!1,r=!1){return qw(e,lu,Xje,t,r)}function vq(e){return e.expression}function qje(e){return e.tag}function Xje(e){return e.tagName}function qw(e,t,r,i,o){let s=i?Qce(e):kz(e);return o&&(s=Ql(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function kz(e){return cD(e)?e.parent:e}function Qce(e){return cD(e)||Tq(e)?e.parent:e}function wz(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Xw(e,t){return kr(e.expression)?e.expression.name.text===t:!1}function Yw(e){var t;return Fe(e)&&((t=ri(e.parent,lN))==null?void 0:t.label)===e}function bq(e){var t;return Fe(e)&&((t=ri(e.parent,J0))==null?void 0:t.label)===e}function Eq(e){return bq(e)||Yw(e)}function Sq(e){var t;return((t=ri(e.parent,jx))==null?void 0:t.tagName)===e}function Zce(e){var t;return((t=ri(e.parent,Au))==null?void 0:t.right)===e}function cD(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,Xs))==null?void 0:t.argumentExpression)===e}function Aq(e){var t;return((t=ri(e.parent,Yl))==null?void 0:t.name)===e}function Iq(e){var t;return Fe(e)&&((t=ri(e.parent,Yo))==null?void 0:t.name)===e}function Oz(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return No(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 ede(e){return sE(e.parent.parent)&&SN(e.parent.parent)===e}function $T(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 sS(e){switch(e.kind){case 312:return sc(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 Yo(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=Gl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=sS(o);return l===""?"const":l;case 3:return ks(o)?"method":"property";case 4:return"property";case 5:return ks(o)?"method":"property";case 6:return"local class";default:return""}case 80:return yh(e.parent)?"alias":"";case 277:let s=sS(e.expression);return s===""?"const":s;default:return""}function t(r){return Xx(r)?"const":MF(r)?"let":"var"}}function dD(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 tde(e,t){return Qw(e,t.pos)&&Qw(e,t.end)}function $w(e,t){return e.pos<=t&&t<=e.end}function Qw(e,t){return e.pos=r.end}function Zw(e,t,r){return e.pos<=t&&e.end>=r}function eM(e,t,r){return Fz(e.pos,e.end,t,r)}function Wz(e,t,r,i){return Fz(e.getStart(t),e.end,r,i)}function Fz(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function zz(e){let t=Gr(e.parent.getChildren(),r=>zR(r)&&rf(r,e));return R.assert(!t||zo(t.getChildren(),e)),t}function Axe(e){return e.kind===90}function Yje(e){return e.kind===86}function $je(e){return e.kind===100}function Qje(e){if(au(e))return e.name;if(Ac(e)){let t=e.modifiers&&Gr(e.modifiers,Axe);if(t)return t}if(ed(e)){let t=Gr(e.getChildren(),Yje);if(t)return t}}function Zje(e){if(au(e))return e.name;if(Tc(e)){let t=Gr(e.modifiers,Axe);if(t)return t}if(ks(e)){let t=Gr(e.getChildren(),$je);if(t)return t}}function eUe(e){let t;return Fn(e,r=>(ji(r)&&(t=r),!Au(r.parent)&&!ji(r.parent)&&!dT(r.parent))),t}function Bz(e,t){if(e.flags&16777216)return;let r=o7(e,t);if(r)return r;let i=eUe(e);return i&&t.getTypeAtLocation(i)}function tUe(e,t){if(!t)switch(e.kind){case 263:case 231:return Qje(e);case 262:case 218:return Zje(e);case 176:return e}if(au(e))return e.name}function Ixe(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=rh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if($v(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function xxe(e,t){if(e.exportClause){if(xf(e.exportClause))return rh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(vh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function nUe(e){if(e.types.length===1)return e.types[0].expression}function Rxe(e,t){let{parent:r}=e;if(Ta(e)&&(t||e.kind!==90)?Am(r)&&zo(r.modifiers,e):e.kind===86?Ac(r)||ed(e):e.kind===100?Tc(r)||ks(e):e.kind===120?mu(r):e.kind===94?gE(r):e.kind===156?Tm(r):e.kind===145||e.kind===144?Yl(r):e.kind===102?nd(r):e.kind===139?Qp(r):e.kind===153&&hp(r)){let i=tUe(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(yh(r)&&r.isTypeOnly){let i=Ixe(r.parent,t);if(i)return i}if($l(r)&&r.isTypeOnly){let i=xxe(r,t);if(i)return i}}if(e.kind===130){if(Qu(r)&&r.propertyName||Jd(r)&&r.propertyName||$v(r)||vh(r))return r.name;if($l(r)&&r.exportClause&&vh(r.exportClause))return r.exportClause.name}if(e.kind===102&&kc(r)){let i=Ixe(r,t);if(i)return i}if(e.kind===95){if($l(r)){let i=xxe(r,t);if(i)return i}if(kl(r))return Ql(r.expression)}if(e.kind===149&&bh(r))return r.expression;if(e.kind===161&&(kc(r)||$l(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Zp(r)&&r.token===e.kind){let i=nUe(r);if(i)return i}if(e.kind===96){if(ml(r)&&r.constraint&&If(r.constraint))return r.constraint.typeName;if(t1(r)&&If(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&PT(r))return r.typeParameter.name;if(e.kind===103&&ml(r)&&MR(r.parent))return r.name;if(e.kind===143&<(r)&&r.operator===143&&If(r.type))return r.type.typeName;if(e.kind===148&<(r)&&r.operator===148&&Fk(r.type)&&If(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&H0(r)||e.kind===116&&n1(r)||e.kind===114&&LR(r)||e.kind===135&&Xv(r)||e.kind===127&&G4(r)||e.kind===91&&_ae(r))&&r.expression)return Ql(r.expression);if((e.kind===103||e.kind===104)&&pr(r)&&r.operatorToken===e)return Ql(r.right);if(e.kind===130&&Bk(r)&&If(r.type))return r.type.typeName;if(e.kind===103&&j4(r)||e.kind===165&&Gk(r))return Ql(r.expression)}return e}function Cq(e){return Rxe(e,!1)}function Gz(e){return Rxe(e,!0)}function zu(e,t){return uD(e,t,r=>T_(r)||Wu(r.kind)||Ki(r))}function uD(e,t,r){return Dxe(e,t,!1,r,!1)}function so(e,t){return Dxe(e,t,!0,void 0,!1)}function Dxe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),h=dI(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)&&dde(s,r)?i(s):void 0)}}function Ic(e,t,r,i){let o=s(r||t);return R.assert(!(o&&jz(o))),o;function s(l){if(Cxe(l)&&l.kind!==1)return l;let d=l.getChildren(t),p=dI(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||!dde(m,t)||jz(m)){let S=ode(d,p,t,l.kind);return S?!i&&gF(S)&&S.getChildren(t).length?s(S):ide(S,t):void 0}else return s(m)}R.assert(r!==void 0||l.kind===312||l.kind===1||gF(l));let h=ode(d,d.length,t,l.kind);return h&&ide(h,t)}}function Cxe(e){return vI(e)&&!jz(e)}function ide(e,t){if(Cxe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=ode(r,r.length,t,e.kind);return i&&ide(i,t)}function ode(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(jz(s))o===0&&(i===12||i===285)&&R.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(dde(e[o],r))return e[o]}}function b1(e,t,r=Ic(t,e)){if(r&&DV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function sde(e,t){let r=so(e,t);return!!(KI(r)||r.kind===19&&vP(r.parent)&&ag(r.parent.parent)||r.kind===30&&lu(r.parent)&&ag(r.parent.parent))}function Uz(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 Hz(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=Ic(r.getFullStart(),t),r&&r.kind===29&&(r=Ic(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=Hz(r,19,t),!r)return;break;case 22:if(r=Hz(r,21,t),!r)return;break;case 24:if(r=Hz(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=Ic(r.getFullStart(),t)}}function Hy(e,t,r){return Oc.getRangeOfEnclosingComment(e,t,void 0,r)}function cde(e,t){let r=so(e,t);return!!Fn(r,Ym)}function dde(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function tM(e,t=0){let r=[],i=Kd(e)?hV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Il(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 ude(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Yo(e)||e.kind===263||e.kind===264)return e.typeParameters}function Kz(e){return e===2||e===3}function Lq(e){return!!(e===11||e===14||Nv(e))}function Nxe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function pde(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(Nxe(r,t[0],t[1])||Nxe(r,t[1],t[0]))}function nO(e,t,r){return Nv(e.kind)&&e.getStart(r){let r=is(t);return!e[r]&&(e[r]=!0)}}function pD(e){return e.getText(0,e.getLength())}function oO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function hde(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Gq(e){return!!e.module||rs(e)>=2||!!e.noEmit}function QT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ea(t,t.readFile),useCaseSensitiveFileNames:ea(t,t.useCaseSensitiveFileNames),getSymlinkCache:ea(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ea(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ea(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ea(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Vq(e,t){return{...QT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Yz(e){return e===2||e>=3&&e<=99||e===100}function gde(e,t,r,i){return e||t&&t.length?Jy(e,t,r,i):void 0}function Jy(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"?S1(r,i):r,void 0)}function S1(e,t){return L.createStringLiteral(e,t===0)}function jq(e,t){return XF(e,t)?1:0}function of(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Gr(e.imports,i=>Ca(i)&&!qs(i.parent));return r?jq(r,e):1}}function Uq(e){switch(e){case 0:return"'";case 1:return'"';default:return R.assertNever(e)}}function $z(e){let t=Qz(e);return t===void 0?void 0:Vi(t)}function Qz(e){return e.escapedName!=="default"?e.escapedName:zl(e.declarations,t=>{let r=No(t);return r&&r.kind===80?r.escapedText:void 0})}function Zz(e){return ss(e)&&(bh(e.parent)||kc(e.parent)||Su(e.parent,!1)&&e.parent.arguments[0]===e||Op(e.parent)&&e.parent.arguments[0]===e)}function sO(e){return Xa(e)&&tm(e.parent)&&Fe(e.name)&&!e.propertyName}function e7(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function lO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!rUe(r,e.parent,t))return e;e=e.parent}}function rUe(e,t,r){return _V(e,t.getStart(r))&&t.getEnd()<=Xl(e)}function fD(e,t){return Am(e)?Gr(e.modifiers,r=>r.kind===t):void 0}function rM(e,t,r,i,o){let l=(So(r)?r[0]:r).kind===243?pj:mT,d=Vr(t.statements,l),p=So(r)?Rm.detectImportDeclarationSorting(r,o):3,h=Rm.getOrganizeImportsComparer(o,p===2),m=So(r)?Ey(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:fr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,A)}else{let A=d[S-1];e.insertNodeAfter(t,A,E)}}}else{let y=Qs(d);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function Hq(e,t){return R.assert(e.isTypeOnly),ta(e.getChildAt(0,t),zq)}function mD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Kq(e,t,r){return(r?nT:Xb)(e.fileName,t.fileName)&&mD(e.textSpan,t.textSpan)}function Jq(e){return(t,r)=>Kq(t,r,e)}function qq(e,t){if(e){for(let r=0;rTo(r)?!0:Xa(r)||tm(r)||U0(r)?!1:"quit")}function iUe(){let e=yk*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:Uo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let y=o6(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(vde(y,E)))}function h(){o>e||(o+=1,t.push(_D()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function vde(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:Kw[t]}}function wl(){return ep(" ",16)}function vp(e){return ep(da(e),5)}function Yd(e){return ep(da(e),15)}function oM(e){return ep(da(e),12)}function bde(e){return ep(e,13)}function Ede(e){return ep(e,14)}function $q(e){let t=v0(e);return t===void 0?af(e):vp(t)}function af(e){return ep(e,17)}function Sde(e){return ep(e,0)}function Tde(e){return ep(e,18)}function n7(e){return ep(e,24)}function Ade(e,t){return{text:e,kind:Kw[23],target:{fileName:Gn(t).fileName,textSpan:Ru(t)}}}function Qq(e){return ep(e,22)}function Ide(e,t){var r;let i=Sae(e)?"link":Tae(e)?"linkcode":"linkplain",o=[Qq(`{@${i} `)];if(!e.name)e.text&&o.push(n7(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?tX(s,t):void 0,d=aUe(e.text),p=fc(e.name)+e.text.slice(0,d),h=oUe(e.text.slice(d)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Ade(p,m)),h&&o.push(n7(h));else{let y=d===0||e.text.charCodeAt(d)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(n7(p+y+h))}}return o.push(Qq("}")),o}function oUe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function qy(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Bxe}function _D(){return ep(` +`,6)}function rb(e){try{return e(yX),yX.displayParts()}finally{yX.clear()}}function cO(e,t,r,i=0){return rb(o=>{e.writeType(t,r,i|1024|16384,o)})}function aM(e,t,r,i,o=0){return rb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function Zq(e,t,r,i=0){return i|=25632,rb(o=>{e.writeSignature(t,r,i,void 0,o)})}function Mxe(e,t){let r=t.getSourceFile();return rb(i=>{Nw().writeNode(4,e,r,i)})}function xde(e){return!!e.parent&&bI(e.parent)&&e.parent.propertyName===e}function eX(e,t){return w6(e,t.getScriptKind&&t.getScriptKind(e))}function tX(e,t){let r=e;for(;sUe(r)||dh(r)&&r.links.target;)dh(r)&&r.links.target?r=r.links.target:r=bd(r,t);return r}function sUe(e){return(e.flags&2097152)!==0}function Rde(e,t){return ba(bd(e,t))}function Dde(e,t){for(;Cg(e.charCodeAt(t));)t+=1;return t}function r7(e,t){for(;t>-1&&y_(e.charCodeAt(t));)t-=1;return t+1}function al(e,t=!0){let r=e&&Lxe(e);return r&&!t&&bp(r),r}function dO(e,t,r){let i=r(e);return i?Rr(i,e):i=Lxe(e,r),i&&!t&&bp(i),i}function Lxe(e,t){let r=t?s=>dO(s,!0,t):al,o=Sn(e,r,void 0,t?s=>s&&nX(s,!0,t):s=>s&&cS(s),r);if(o===e){let s=Ca(e)?Rr(L.createStringLiteralFromNode(e),e):mp(e)?Rr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return at(s,e)}return o.parent=void 0,o}function cS(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>al(i,t)),e.hasTrailingComma);return at(r,e),r}return e}function nX(e,t,r){return L.createNodeArray(e.map(i=>dO(i,t,r)),e.hasTrailingComma)}function bp(e){rX(e),Cde(e)}function rX(e){Nde(e,1024,cUe)}function Cde(e){Nde(e,2048,Zj)}function ZT(e,t){let r=e.getSourceFile(),i=r.text;lUe(e,i)?hD(e,t,r):pO(e,t,r),sM(e,t,r)}function lUe(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function eA(e,t){let r=e;for(let i=1;!IF(t,r);i++)r=`${e}_${i}`;return r}function uO(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:d}of e){R.assert(l===t);for(let p of d){let{span:h,newText:m}=p,y=dUe(m,eg(r));if(y!==-1&&(s=h.start+o+y,!i))return s;o+=m.length-h.length}}return R.assert(i),R.assert(s>=0),s}function hD(e,t,r,i,o){KL(r.text,e.pos,Pde(t,r,i,o,cP))}function sM(e,t,r,i,o){JL(r.text,e.end,Pde(t,r,i,o,i4))}function pO(e,t,r,i,o){JL(r.text,e.pos,Pde(t,r,i,o,cP))}function Pde(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 dUe(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 i7(e){return pr(e)&&e.operatorToken.kind===28||La(e)||(Bk(e)||nH(e))&&La(e.expression)}function o7(e,t,r){let i=Ly(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return a7(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 lM(e,t,r){let i=of(e,t),o=JSON.stringify(r);return i===0?`'${Yf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function a7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Mde(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 cM(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 Lde(e){return e===179||e===180||e===181||e===171||e===173}function kxe(e){return e===262||e===176||e===174||e===177||e===178}function wxe(e){return e===267}function s7(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 uUe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Lde(e.kind)){if(r&&r.kind===28)return!1}else if(wxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&N_(d))return!1}else if(kxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&D0(d))return!1}else if(!s7(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,d=>!d.parent),o=lS(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 l7(e,t,r){let i=Fn(t,o=>o.end!==e?"quit":vX(o.kind));return!!i&&uUe(i,r)}function fO(e){let t=0,r=0,i=5;return Bo(e,function o(s){if(s7(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Lde(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let d=ys(e,l.getStart(e)).line,p=ys(e,fh(e,l.end).start).line;d!==p&&r++}}return t+r>=i?!0:Bo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function c7(e,t){return p7(e,e.getDirectories,t)||[]}function aX(e,t,r,i,o){return p7(e,e.readDirectory,t,r,i,o)||Xe}function mO(e,t){return p7(e,e.fileExists,t)}function d7(e,t){return u7(()=>Hm(t,e))||!1}function u7(e){try{return e()}catch{return}}function p7(e,t,...r){return u7(()=>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");mO(t,s)&&i.push(s)}),i}function kde(e,t){let r;return hm(e,i=>{if(i==="node_modules"||(r=jle(i,o=>mO(t,o),"package.json"),r))return!0}),r}function wde(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=y6(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 dM(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||wde(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(x3(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!!(cu(e)&&O_.nodeCoreModules.has(A)&&(o===void 0&&(o=f7(e)),o))}function E(A,N){if(!A.includes("node_modules"))return;let D=nS.getNodeModulesPackageName(r.getCompilationSettings(),e,A,N,t);if(D&&!Lp(D)&&!cp(D))return S(D)}function S(A){let N=zc(kP(A)).slice(1);return ao(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function f7(e){return gt(e.imports,({text:t})=>O_.nodeCoreModules.has(t))}function _O(e){return zo(zc(e),"node_modules")}function cX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Ode(e,t){let r=Ru(e),i=dI(t,r,Zs,bW);if(i>=0){let o=t[i];return R.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ta(o,cX)}}function Wde(e,t){var r;let i=dI(t,e.start,l=>l.start,el);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=Xl(e);for(;;){let l=ri(t[i],cX);if(!l||l.start>s)break;Bne(e,l)&&o.push(l),i++}return o}function T1({startPosition:e,endPosition:t}){return pc(e,t===void 0?e:t)}function dX(e,t){let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Xl(t)?"quit":ht(o)&&mD(t,Ru(o,e)))}function uX(e,t,r=Zs){return e?So(e)?r(mn(e,t)):t(e,0):void 0}function pX(e){return So(e)?Va(e):e}function Fde(e,t){if(Oxe(e)){let r=Wxe(e);if(r)return r;let i=Wd.moduleSymbolToValidIdentifier(zde(e),t,!1),o=Wd.moduleSymbolToValidIdentifier(zde(e),t,!0);return i===o?i:[i,o]}return e.name}function m7(e,t,r){return Oxe(e)?Wxe(e)||Wd.moduleSymbolToValidIdentifier(zde(e),t,!!r):e.name}function Oxe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Wxe(e){return zl(e.declarations,t=>{var r,i,o;return kl(t)?(r=ri(Ql(t.expression),Fe))==null?void 0:r.text:Jd(t)&&t.symbol.flags===2097152?(i=ri(t.propertyName,Fe))==null?void 0:i.text:(o=ri(No(t),Fe))==null?void 0:o.text})}function zde(e){var t;return R.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${R.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=R.formatSyntaxKind(r.kind),o=or(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${R.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Bde(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;oYl(r)&&E_(r))}function _7(e){return!!(hV(e)&65536)}function h7(e,t){return zl(e.imports,i=>{if(O_.nodeCoreModules.has(i.text))return ao(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function hO(e){return e===` +`?1:0}function tA(e){return So(e)?rg(ko(e[0]),e.slice(1)):ko(e)}function g7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!fO(t);return{...e,semicolons:i?"remove":"ignore"}}function mX(e){return e===2||e===3}function gD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function y7(e,t){let r=new Set,i=new Set,o=new Set;for(let d of t)if(!bP(d)){let p=ms(d.expression);if(S0(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=Ioe(Sl(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(z0(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&Q0(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(z0(d))}}}function _X(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!F0(s))return!1;let l=t.getCompilerOptions(),d=kd(l),p=typeof e=="string"?Ww(nl(e,r.getCurrentDirectory(),ky(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&&x6(d))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var $d,hX,zxe,v7,gX,yX,Bxe,b7,vX,pUe=bt({"src/services/utilities.ts"(){"use strict";ai(),$d=Dy(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||{}),zxe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(gX||{}),yX=iUe(),Bxe=` +`,b7="anonymous function",vX=Um(Lde,kxe,wxe,s7)}});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=j6(w.fileName);if(fe){let{topLevelNodeModulesIndex:ne,topLevelPackageNameIndex:he,packageRootIndex:Ce}=fe;if(B=bw(kP(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 Ie=Ge.indexOf(Sh);ne>Ie&&o.set(B,ve)}else o.set(B,ve)}}}let z=j===1&&gR(A)||A,ee=j===0||iO(z)?Vi(N):Fde(z,void 0),me=typeof ee=="string"?ee:ee[0],ge=typeof ee=="string"?void 0:ee[1],q=Yf(D.name),J=t++,re=bd(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,$c(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((ee,me)=>E(ee,w[me].packageName));if(z.length){let ee=D(z,B,!!Y,j);if(ee!==void 0)return ee}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(S,A,N)=>m(S)&&m(A)?!1:s&&s!==A.path||N&&f7(S)!==f7(A)||!Vm(S.moduleAugmentations,A.moduleAugmentations)||!y(S,A)?(l.clear(),!0):(s=A.path,!1)};return R.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||R.checkDefined(S.moduleFile?B.getMergedSymbol(S.moduleFile.symbol):B.tryFindAmbientModule(S.moduleName)),z=S.symbol||K||R.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(bd(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(!Vm(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=ql(S.statements,j,N+1),D=ql(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=ky(s),m=(d=s.getGlobalTypingsCacheLocation)==null?void 0:d.call(s),y=!!nS.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&fUe(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 fUe(e,t,r,i){let o=hm(t,l=>ic(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=_R(t),p=r.autoImportFileExcludePatterns&&to(r.autoImportFileExcludePatterns,m=>{let y=L6(m,"","exclude");return y?Gv(y,d):void 0});Gxe(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=Js(),y=e.getTypeChecker();Gxe(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: ${Js()-m}`)}}function Gxe(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&&AE(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 gO(e,t,r,i,o){var s,l,d,p,h;let m=Js();(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=E7(A,K,E);Y&&Vxe(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&&Vxe(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 ${Js()-m} ms`),y}function E7(e,t,r){let i=mUe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=S7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function Vxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!$2(e)&&!Aie(e)}function mUe(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 S7(e,t,r){let i=gR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=_Ue(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return S7(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:m7(e,r.target)}}function _Ue(e){return e.declarations&&zl(e.declarations,t=>{var r;if(kl(t))return(r=ri(Ql(t.expression),Fe))==null?void 0:r.text;if(Jd(t))return R.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var TX,AX,hUe=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 jxe(){let e=Dy(99,!1);function t(i,o,s){return vUe(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=SUe(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(),dR(l)||(N(),d=l);let D=e.getTokenEnd();if(yUe(e.getTokenStart(),D,y,IUe(l),S),D>=i.length){let w=gUe(e,l,Qs(p));w!==void 0&&(E=w)}}while(l!==1);function N(){switch(l){case 44:case 69:!Jxe[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=Qs(p);D===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():R.assertEqual(l,17,"Should have been a template middle.")):(R.assertEqual(D,19,"Should have been an open brace"),p.pop())}break;default:if(!Wu(l))break;(d===25||Wu(d)&&Wu(l)&&!EUe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function gUe(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(Nv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return R.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function yUe(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 vUe(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:bUe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function bUe(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 EUe(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 SUe(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 R.assertNever(e)}}function vUe(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 bUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function EUe(e){if(Wu(e))return 3;if(vUe(e)||bUe(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 Cv(e)?6:2}}function Ude(e,t,r,i,o){return Vxe(IX(e,t,r,i,o))}function Bxe(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(Bxe(t,p.kind),Fe(p)&&!Fl(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&Gxe(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;R.assert(m>0,`Classification had non-positive length of ${m}`),s.push(d),s.push(m),s.push(h)}}function Gxe(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&&SUe(e)?14:void 0:i&2097152?Gxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function SUe(e){return gt(e.declarations,t=>ql(t)&&Gg(t)===1)}function TUe(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 Vxe(e){R.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ee=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,me=t.text.substr(B,ce),ge=z.exec(me);if(!ge||!ge[3]||!(ge[3]in ML))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=ee.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),ee>0){let me=ce||K(B.kind,B);me&&p(z,ee,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&&fde(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(Cv(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?w0(ce)?3:17:void 0}if(Cg(ce.parent))return 3}return 2}}}function Y(B){if(B&&qL(i,o,B.pos,B.getFullWidth())){Bxe(e,B.kind);for(let ce of B.getChildren(t))w(ce)||Y(ce)}}}var jxe,Uxe=bt({"src/services/classifier.ts"(){"use strict";si(),jxe=ine([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),E7,AUe=bt({"src/services/documentHighlights.ts"(){"use strict";si(),(e=>{function t(q,J,re,pe,xe){let fe=zu(re,pe);if(fe.parent&&(P_(fe.parent)&&fe.parent.tagName===fe||J0(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:Ru(q,J),kind:"none"}}function i(q,J,re,pe,xe){let fe=new Set(xe.map(Ge=>Ge.fileName)),ne=ks.getReferenceEntriesForNode(q,J,re,xe,pe,void 0,fe);if(!ne)return;let he=AL(ne.map(ks.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ce=Cd(re.useCaseSensitiveFileNames());return Oo(WC(he.entries(),([Ge,ve])=>{if(!fe.has(Ge)){if(!re.redirectTargetsMap.has(nl(Ge,re.getCurrentDirectory(),Ce)))return;let Ie=re.getSourceFile(Ge);Ge=Vr(xe,Le=>!!Le.redirectInfo&&Le.redirectInfo.redirectTarget===Ie).fileName,R.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)?ee(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,pP,w);case 84:case 90:return _P(q.parent)||MR(q.parent)?pe(q.parent.parent.parent,pP,w):void 0;case 83:case 88:return pe(q.parent,rN,D);case 99:case 117:case 92:return pe(q.parent,ne=>Pv(ne,!0),N);case 137:return re(Nl,[137]);case 139:case 153:return re(Nv,[139,153]);case 135:return pe(q.parent,qv,B);case 134:return xe(B(q));case 127:return xe(ce(q));case 103:case 147:return;default:return Ny(q.kind)&&(Hd(q.parent)||Pl(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=ii(he,b_))==null?void 0:Ce.symbol.declarations,Ge=>fe(Ge)?Vr(Ge.getChildren(J),ve=>zo(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)?bo(q.catchClause?l(q.catchClause):q.tryBlock&&l(q.tryBlock),q.finallyBlock&&l(q.finallyBlock)):Xo(q)?void 0:h(q,l)}function d(q){let J=q;for(;J.parent;){let re=J.parent;if(R0(re)||re.kind===312)return re;if(wT(re)&&re.tryBlock===J&&re.catchClause)return J;J=re}}function p(q){return rN(q)?[q]:Xo(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 Xo(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,...di(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,Nl);if(xe)return[...pe,...xe.parameters]}else if(J&64)return[...pe,re];return pe;case 210:return;default:R.assertNever(re,"Invalid container kind.")}}function A(q,J,...re){return J&&zo(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=hs(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(hs(xe,111,J))}),R0(re)&&x0(re,xe=>{pe.push(hs(xe,107,J))}),pe}function Y(q,J){let re=Wp(q);if(!re)return;let pe=[];return x0(ta(re.body,Uo),xe=>{pe.push(hs(xe,107,J))}),gn(l(re.body),xe=>{pe.push(hs(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)}),Bo(J,pe=>{z(pe,xe=>{qv(xe)&&A(re,xe.getFirstToken(),135)})}),re}function ce(q){let J=Wp(q);if(!J)return;let re=[];return Bo(J,pe=>{z(pe,xe=>{z4(xe)&&A(re,xe.getFirstToken(),127)})}),re}function z(q,J){J(q),!Xo(q)&&!di(q)&&!mu(q)&&!ql(q)&&!Tm(q)&&!ji(q)&&Bo(q,re=>z(re,J))}function ee(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=>K0(re)?re.label.escapedText===J:"quit")}})(E7||(E7={}))}});function _O(e){return!!e.sourceFile}function Kde(e,t,r){return RX(e,t,r)}function RX(e,t="",r,i){let o=new Map,s=Cd(!!e);function l(){let D=Oo(o.keys()).filter(w=>w&&w.charAt(0)==="_").map(w=>{let j=o.get(w),K=[];return j.forEach((Y,B)=>{_O(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=nl(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=nl(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=_O(D)?D:D.get(R.checkDefined(w,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return R.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,ee){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 ee=="object"?ee:{languageVersion:xe,impliedNodeFormat:pe&&kw(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:ak(re),jsDocParsingMode:r};fe.languageVersion=xe,R.assertEqual(r,fe.jsDocParsingMode);let ne=o.size,he=Jde(K,fe.impliedNodeFormat),Ce=FC(o,he,()=>new Map);if(rr){o.size>ne&&rr.instant(rr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:he});let De=!bd(w)&&zc(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&&(R.assert(ce),ve={sourceFile:De,languageServiceRefCount:0},Ie())}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},Ie()}return R.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Ie(){if(!Ge)Ce.set(w,ve);else if(_O(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=nl(D,t,s),B=DX(w);return N(Y,B,j,K)}function N(D,w,j,K){let Y=R.checkDefined(o.get(Jde(w,K))),B=Y.get(D),ce=E(B,j);ce.languageServiceRefCount--,R.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(_O(B)?Y.delete(D):(B.delete(j),B.size===1&&Y.set(D,bL(B.values(),Zs))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:A,releaseDocumentWithKey:N,getKeyForCompilationSettings:DX,getDocumentRegistryBucketKeyWithMode:Jde,reportStats:l,getBuckets:()=>o}}function DX(e){return tK(e,u3)}function Jde(e,t){return t?`${e}|${t}`:e}var IUe=bt({"src/services/documentRegistry.ts"(){"use strict";si()}});function qde(e,t,r,i,o,s,l){let d=pR(i),p=Cd(d),h=CX(t,r,p,l),m=CX(r,t,p,l);return pr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{RUe(e,y,h,t,r,i.getCurrentDirectory(),d),DUe(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:xUe(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 xUe(e,t,r,i){let o=FL(e,t,i);return Xde(ai(r),o)}function RUe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=ai(d.fileName),h=_N(d);if(!h)return;Yde(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!fu(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);Bv(R.checkDefined(w.includeFilePattern),l).test(i)&&!Bv(R.checkDefined(w.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Ka(S.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Yde(S.initializer,(N,D)=>{let w=OH(D);R.assert(w?.type!=="listOrElement"),w&&(w.isFilePath||w.type==="list"&&w.element.isFilePath)?m(N):D==="paths"&&Yde(N.initializer,j=>{if(fu(j.initializer))for(let K of j.initializer.elements)y(K)})});return}});function m(S){let A=fu(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=Xde(p,S.text),N=r(A);return N!==void 0?(t.replaceRangeWithText(d,Kxe(S,d),E(N)),!0):!1}function E(S){return _m(p,S,!l)}}function DUe(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=ai(h),y=i(d.fileName),E=y||d.fileName,S=ai(E),A=p!==void 0||y!==void 0;PUe(d,t,N=>{if(!Lp(N))return;let D=Xde(S,N),w=r(D);return w===void 0?void 0:g0(_m(m,w,s))},N=>{let D=e.getTypeChecker().getSymbolAtLocation(N);if(D?.declarations&&D.declarations.some(j=>Pd(j)))return;let w=y!==void 0?Hxe(N,KR(N.text,E,e.getCompilerOptions(),o),r,l):NUe(D,N,d,e,o,r);return w!==void 0&&(w.updated||A&&Lp(N.text))?tS.updateModuleSpecifier(e.getCompilerOptions(),d,h,w.newFileName,YT(e,o),N.text):void 0})}}function CUe(e,t){return ma(Yr(e,t))}function Xde(e,t){return g0(CUe(e,t))}function NUe(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 Hxe(t,d,s,i.getSourceFiles())}}function Hxe(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 PUe(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,Kxe(o,e),s)}}function Kxe(e,t){return Ef(e.getStart(t)+1,e.end-1)}function Yde(e,t){if(Ma(e))for(let r of e.properties)mc(r)&&Da(r.name)&&t(r,r.name.text)}var MUe=bt({"src/services/getEditsForFileRename.ts"(){"use strict";si()}});function aM(e,t){return{kind:e,isCaseSensitive:t}}function $de(e){let t=new Map,r=e.trim().split(".").map(i=>OUe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>aM(2,!0),getFullMatch:()=>aM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>LUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Qde(i,Ka(r),t),patternContainsDots:r.length>1}}function LUe(e,t,r,i){if(!Qde(t,Ka(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=Xxe(s,Qde(e[d],r[l],i));return s}function Jxe(e,t){let r=t.get(e);return r||t.set(e,r=iue(e)),r}function qxe(e,t,r){let i=WUe(e,t.textLowerCase);if(i===0)return aM(t.text.length===e.length?0:1,ao(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=Jxe(e,r);for(let s of o)if(Zde(e,s,t.text,!0))return aM(2,Zde(e,s,t.text,!1));if(t.text.length0)return aM(2,!0);if(t.characterSpans.length>0){let o=Jxe(e,r),s=Yxe(e,o,t,!1)?!0:Yxe(e,o,t,!0)?!1:void 0;if(s!==void 0)return aM(3,s)}}}function Qde(e,t,r){if(NX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=qxe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=Xxe(o,qxe(e,s,r));return o}function Xxe(e,t){return jG([e,t],kUe)}function kUe(e,t){return e===void 0?1:t===void 0?-1:el(e.kind,t.kind)||Ev(!e.isCaseSensitive,!t.isCaseSensitive)}function Zde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&eRe(0,o.length,s=>wUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function wUe(e,t,r){return r?eue(e)===eue(t):e===t}function Yxe(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 $xe(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 WUe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(NX(t,(o,s)=>eue(e.charCodeAt(s+i))===o))return i;return-1}function eue(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function tue(e){return e>=48&&e<=57}function FUe(e){return _D(e)||$xe(e)||tue(e)||e===95||e===36}function zUe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push(nue(e.substr(r,i))),i=0)}return i>0&&t.push(nue(e.substr(r,i))),t}function nue(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:rue(e)}}function rue(e){return Qxe(e,!1)}function iue(e){return Qxe(e,!0)}function Qxe(e,t){let r=[],i=0;for(let o=1;ooue(i)&&i!==95,t,r)}function BUe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var S7,VUe=bt({"src/services/patternMatcher.ts"(){"use strict";si(),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 tRe(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)&&(Qs(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,Ja),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 jUe=bt({"src/services/preProcess.ts"(){"use strict";si()}});function aue(e){let t=Cd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:d,tryGetGeneratedPosition:p,toLineColumnOffset:E,clearCache:S};function s(A){return nl(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,Rg(K)),Y=>!e.fileExists||e.fileExists(Y)?e.readFile(Y):void 0)}return o.set(D,j||O3),j||O3}function d(A){if(!bd(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(bd(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=Ds(w),K=j?Tu(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?UUe(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=Qse(r);if(o){let d=rRe.exec(o);if(d){if(d[1]){let p=d[1];return nRe(e,Qie(_d,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&_o(o,ai(t));for(let d of s){let p=_o(d,ai(t)),h=i(p,l);if(Co(h))return nRe(e,h,p);if(h!==void 0)return h||void 0}}function nRe(e,t,r){let i=IK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Co)))return tle(e,i,r)}function UUe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Nx(Rg(this),r)}}}var rRe,HUe=bt({"src/services/sourcemaps.ts"(){"use strict";si(),rRe=/^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&&(yde(t)||Gq(t.getCompilerOptions()))&&KUe(e)&&o.push(Pr(YUe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=cu(e);if(OX.clear(),p(e),RT(t.getCompilerOptions()))for(let h of e.imports){let m=vN(h),y=JUe(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&&Ml(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)QUe(h,s)&&o.push(Pr(Oi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Pl(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){let y=h.declarationList.declarations[0].initializer;y&&Su(y,!0)&&o.push(Pr(y,f.require_call_may_be_converted_to_an_import))}let m=wd.getJSDocTypedefNodes(h);for(let y of m)o.push(Pr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));wd.parameterShouldGetTypeFromJSDoc(h)&&o.push(Pr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}wX(h)&&qUe(h,s,o),h.forEachChild(p)}}function KUe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Su(iRe(r.initializer),!0));case 244:{let{expression:r}=t;if(!ur(r))return Su(r,!0);let i=zl(r);return i===1||i===2}default:return!1}})}function iRe(e){return wr(e)?iRe(e.expression):e}function JUe(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 qUe(e,t,r){XUe(e,t)&&!OX.has(lRe(e))&&r.push(Pr(!e.name&&Oi(e.parent)&&Fe(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function XUe(e,t){return!TN(e)&&e.body&&Uo(e.body)&&$Ue(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 YUe(e){return ur(e)?e.left:e}function $Ue(e,t){return!!x0(e,r=>T7(r,t))}function T7(e,t){return Sm(e)&&!!e.expression&&kX(e.expression,t)}function kX(e,t){if(!oRe(e)||!aRe(e)||!e.arguments.every(i=>sRe(i,t)))return!1;let r=e.expression.expression;for(;oRe(r)||wr(r);)if(ra(r)){if(!aRe(r)||!r.arguments.every(i=>sRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function oRe(e){return ra(e)&&(Kw(e,"then")||Kw(e,"catch")||Kw(e,"finally"))}function aRe(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 sRe(e,t){switch(e.kind){case 262:case 218:if(Bc(e)&1)return!1;case 219:OX.set(lRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||gt(yd(i,t).declarations,o=>Xo(o)||Lv(o)&&!!o.initializer&&Xo(o.initializer)):!1}default:return!1}}function lRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function QUe(e,t){var r,i,o,s;if(Ls(e)){if(Oi(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,ZUe=bt({"src/services/suggestionDiagnostics.ts"(){"use strict";si(),OX=new Map}});function sue(e,t){let r=[],i=t.compilerOptions?WX(t.compilerOptions,r):{},o=H7();for(let E in o)As(o,E)&&i[E]===void 0&&(i[E]=o[E]);for(let E of YH)i.verbatimModuleSyntax&&dRe.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")?(R.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",E),m=S):(R.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=$k(d,e,{languageVersion:ns(i),impliedNodeFormat:kw(nl(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:ak(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?R.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function cRe(e,t,r,i,o){let s=sue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Hr(i,s.diagnostics),s.outputText}function WX(e,t){lue=lue||jr(ag,r=>typeof r.type=="object"&&!zc(r.type,i=>typeof i!="number")),e=wq(e);for(let r of lue){if(!As(e,r.name))continue;let i=e[r.name];Co(i)?e[r.name]=i3(r,i,t):zc(r.type,o=>o===i)||t.push(Zae(r))}return e}var dRe,lue,eHe=bt({"src/services/transpile.ts"(){"use strict";si(),dRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function uRe(e,t,r,i,o,s,l){let d=$de(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)&&(pRe(m,!!l,h)||m.getNamedDeclarations().forEach((y,E)=>{tHe(d,E,y,t,m.fileName,!!l,h,p)}));return p.sort(oHe),(o===void 0?p:p.slice(0,o)).map(aHe)}function pRe(e,t,r){return e!==r&&t&&(pO(e.path)||e.hasNoDefaultLib)}function tHe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(nHe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(iHe(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 nHe(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=>pRe(d.getSourceFile(),r,i)));default:return!0}}function rHe(e,t){let r=No(e);return!!r&&(fRe(r,t)||r.kind===167&&cue(r.expression,t))}function cue(e,t){return fRe(e,t)||wr(e)&&(t.push(e.name.text),!0)&&cue(e.expression,t)}function fRe(e,t){return T_(e)&&(t.push(Xf(e)),!0)}function iHe(e){let t=[],r=No(e);if(r&&r.kind===167&&!cue(r.expression,t))return Xe;t.shift();let i=XT(e);for(;i;){if(!rHe(i,t))return Xe;i=XT(i)}return t.reverse()}function oHe(e,t){return el(e.matchKind,t.matchKind)||xL(e.name,t.name)}function aHe(e){let t=e.declaration,r=XT(t),i=r&&No(r);return{name:e.name,kind:aS(t),kindModifiers:YP(t),matchKind:S7[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Ru(t),containerName:i?i.text:"",containerKind:i?aS(r):""}}var sHe=bt({"src/services/navigateTo.ts"(){"use strict";si()}}),due={};xa(due,{getNavigateToItems:()=>uRe});var mRe=bt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";sHe()}});function _Re(e,t){GX=t,hO=e;try{return mn(pHe(vRe(e)),fHe)}finally{gRe()}}function hRe(e,t){GX=t,hO=e;try{return DRe(vRe(e))}finally{gRe()}}function gRe(){hO=void 0,GX=void 0,gO=[],Xy=void 0,VX=[]}function A7(e){return sM(e.getText(hO))}function FX(e){return e.node.kind}function yRe(e,t){e.children?e.children.push(t):e.children=[t]}function vRe(e){R.assert(!gO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Xy=t;for(let r of e.statements)S1(r);return DE(),R.assert(!Xy&&!gO.length),t}function cS(e,t){yRe(Xy,uue(e,t))}function uue(e,t){return{node:e,name:t||(Hd(e)||ht(e)?No(e):void 0),additionalNodes:void 0,parent:Xy,children:void 0,indent:Xy.indent+1}}function bRe(e){hD||(hD=new Map),hD.set(e,!0)}function ERe(e){for(let t=0;t0;i--){let o=r[i];dS(e,o)}return[r.length-1,r[0]]}function dS(e,t){let r=uue(e,t);yRe(Xy,r),gO.push(Xy),vue.push(hD),hD=void 0,Xy=r}function DE(){Xy.children&&(zX(Xy.children,Xy),mue(Xy.children)),Xy=gO.pop(),hD=vue.pop()}function CE(e,t,r){dS(e,r),S1(t),DE()}function TRe(e){e.initializer&&_He(e.initializer)?(dS(e),Bo(e.initializer,S1),DE()):CE(e,e.initializer)}function pue(e){let t=No(e);if(t===void 0)return!1;if(Xa(t)){let r=t.expression;return Bl(r)||mp(r)||Qp(r)}return!!t}function S1(e){if(GX.throwIfCancellationRequested(),!(!e||gI(e)))switch(e.kind){case 176:let t=e;CE(t,t.body);for(let l of t.parameters)dp(l,t)&&cS(l);break;case 174:case 177:case 178:case 173:pue(e)&&CE(e,e.body);break;case 172:pue(e)&&TRe(e);break;case 171:pue(e)&&cS(e);break;case 273:let r=e;r.name&&cS(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)cS(i);else for(let l of i.elements)cS(l);break;case 304:CE(e,e.name);break;case 305:let{expression:o}=e;Fe(o)?cS(e,o):cS(e);break;case 208:case 303:case 260:{let l=e;Yo(l.name)?S1(l.name):TRe(l);break}case 262:let s=e.name;s&&Fe(s)&&bRe(s.text),CE(e,e.body);break;case 219:case 218:CE(e,e.body);break;case 266:dS(e);for(let l of e.members)mHe(l)||cS(l);DE();break;case 263:case 231:case 264:dS(e);for(let l of e.members)S1(l);DE();break;case 267:CE(e,NRe(e).body);break;case 277:{let l=e.expression,d=Ma(l)||ra(l)?l:zs(l)||Ls(l)?l.body:void 0;d?(dS(e),S1(d),DE()):cS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:cS(e);break;case 213:case 226:{let l=zl(e);switch(l){case 1:case 2:CE(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)?(bRe(h.expression.text),y=h.expression):[m,y]=SRe(d,h.expression),l===6?Ma(d.right)&&d.right.properties.length>0&&(dS(d,y),Bo(d.right,S1),DE()):Ls(d.right)||zs(d.right)?CE(e,d.right,y):(dS(d,y),CE(e,d.right,p.name),DE()),ERe(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]=SRe(e,p);dS(e,y),dS(e,at(L.createIdentifier(h.text),h)),S1(e.arguments[2]),DE(),DE(),ERe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Fe(h)&&Mg(p)!=="prototype"&&hD&&hD.has(h.text)){Ls(d.right)||zs(d.right)?CE(e,d.right,h):C0(p)&&(dS(d,h),CE(d.left,d.right,L2(p)),DE());return}break}case 4:case 0:case 8:break;default:R.assertNever(l)}}default:kp(e)&&gn(e.jsDoc,l=>{gn(l.tags,d=>{qf(d)&&cS(d)})}),Bo(e,S1)}}function zX(e,t){let r=new Map;CG(e,(i,o)=>{let s=i.name||No(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(ARe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return ARe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function lHe(e,t,r,i){function o(d){return Ls(d)||Ec(d)||Oi(d)}let s=ur(t.node)||ra(t.node)?zl(t.node):0,l=ur(e.node)||ra(e.node)?zl(e.node):0;if(lM[s]&&lM[l]||o(e.node)&&lM[s]||o(t.node)&&lM[l]||Sc(e.node)&&fue(e.node)&&lM[s]||Sc(t.node)&&lM[l]||Sc(e.node)&&fue(e.node)&&o(t.node)||Sc(t.node)&&o(e.node)&&fue(e.node)){let d=e.additionalNodes&&Qs(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=uue(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?bo([y],t.children||[t]):bo(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=bo(e.children||[{...e}],t.children||[t]),e.children&&(zX(e.children,e),mue(e.children)));d=e.node=at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=bo(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 ARe(e,t,r,i){return lHe(e,t,r,i)?!0:cHe(e.node,t.node,i)?(dHe(e,t),!0):!1}function cHe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(IRe(e,r)&&IRe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return na(e)===na(t);case 267:return xRe(e,t)&&gue(e)===gue(t);default:return!0}}function fue(e){return!!(e.flags&16)}function IRe(e,t){let r=N_(e.parent)?e.parent.parent:e.parent;return r===t.node||zo(t.additionalNodes,r)}function xRe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||xRe(e.body,t.body))}function dHe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=bo(e.children,t.children),e.children&&(zX(e.children,e),mue(e.children))}function mue(e){e.sort(uHe)}function uHe(e,t){return xL(RRe(e.node),RRe(t.node))||el(FX(e),FX(t))}function RRe(e){if(e.kind===267)return CRe(e);let t=No(e);if(t&&rc(t)){let r=bT(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return MRe(e);default:return}}function _ue(e,t){if(e.kind===267)return sM(CRe(e));if(t){let r=Fe(t)?t.text:Xs(t)?`[${A7(t.argumentExpression)}]`:A7(t);if(r.length>0)return sM(r)}switch(e.kind){case 312:let r=e;return oc(r)?`"${Zh(nc(Tu(ma(r.fileName))))}"`:"";case 277:return Ml(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Fv(e)&2048?"default":MRe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function pHe(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 DRe(e){return{text:_ue(e.node,e.name),kind:aS(e.node),kindModifiers:PRe(e.node),spans:hue(e),nameSpan:e.name&&yue(e.name),childItems:mn(e.children,DRe)}}function fHe(e){return{text:_ue(e.node,e.name),kind:aS(e.node),kindModifiers:PRe(e.node),spans:hue(e),childItems:mn(e.children,t)||VX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:_ue(r.node,r.name),kind:aS(r.node),kindModifiers:YP(r.node),spans:hue(r),childItems:VX,indent:0,bolded:!1,grayed:!1}}}function hue(e){let t=[yue(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(yue(r));return t}function CRe(e){return Pd(e)?uc(e.name):gue(e)}function gue(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 NRe(e){return e.body&&ql(e.body)?NRe(e.body):e}function mHe(e){return!e.name||e.name.kind===167}function yue(e){return e.kind===312?tb(e):Ru(e,hO)}function PRe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),YP(e)}function MRe(e){let{parent:t}=e;if(e.name&&p2(e.name)>0)return sM(Is(e.name));if(Oi(t))return sM(Is(t.name));if(ur(t)&&t.operatorToken.kind===64)return A7(t.left).replace(kRe,"");if(mc(t))return A7(t.name);if(Fv(e)&2048)return"default";if(di(e))return"";if(ra(t)){let r=LRe(t.expression);if(r!==void 0){if(r=sM(r),r.length>BX)return`${r} callback`;let i=sM(to(t.arguments,o=>as(o)||EI(o)?o.getText(hO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function LRe(e){if(Fe(e))return e.text;if(wr(e)){let t=LRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function _He(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function sM(e){return e=e.length>BX?e.substring(0,BX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var kRe,BX,GX,hO,gO,Xy,vue,hD,VX,lM,hHe=bt({"src/services/navigationBar.ts"(){"use strict";si(),kRe=/\s+/g,BX=150,gO=[],vue=[],VX=[],lM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),bue={};xa(bue,{getNavigationBarItems:()=>_Re,getNavigationTree:()=>hRe});var wRe=bt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";hHe()}});function sg(e,t){jX.set(e,t)}function gHe(e,t){return Oo(NG(jX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>NE(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function yHe(e,t,r,i){let o=jX.get(t);return o&&o.getEditsForAction(e,r,i)}var jX,ORe=bt({"src/services/refactorProvider.ts"(){"use strict";si(),Th(),jX=new Map}});function WRe(e,t=!0){let{file:r,program:i}=e,o=E1(e),s=so(r,o.start),l=s.parent&&Fv(s.parent)&32&&t?s.parent:oO(s,r,o);if(!l||!Yi(l.parent)&&!(N_(l.parent)&&Pd(l.parent.parent)))return{error:ko(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=AHe(l.parent,d),h=Fv(l)||(Ml(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:ko(f.This_file_already_has_a_default_export)};let y=E=>Fe(E)&&d.getSymbolAtLocation(E)?void 0:{error:ko(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=Ga(E.declarationList.declarations);return S.initializer?(R.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 vHe(e,t,r,i,o){bHe(e,r,i,t.getTypeChecker()),EHe(t,r,i,o)}function bHe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ml(r)&&!r.isExportEquals){let l=r.expression,d=FRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([d])))}else o.delete(e,R.checkDefined(dD(r,90),"Should find a default keyword in modifier list"));else{let l=R.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=Ga(r.declarationList.declarations);if(!ks.Core.isSymbolReferencedInFile(i,s,e)&&!d.type){o.replaceNode(e,r,L.createExportDefault(R.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:R.fail(`Unexpected exportNode kind ${r.kind}`)}}}function EHe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),d=R.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");ks.Core.eachExportReference(e.getSourceFiles(),l,s,d,i,r.text,t,p=>{if(r===p)return;let h=p.getSourceFile();t?SHe(h,p,o,r.text):THe(h,p,o)})}function SHe(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,Eue(i,l.name.text));break}case 273:{let l=o;R.assert(l.name===t,"Import clause name should match provided ref");let d=Eue(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=Jy(void 0,[Eue(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:R.failBadSyntaxKind(o)}}function THe(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,FRe("default",i.name.text));break}default:R.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Eue(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function FRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function AHe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&A0(r.valueDeclaration)?t.getMergedSymbol(r):r}var UX,I7,x7,IHe=bt({"src/services/refactors/convertExport.ts"(){"use strict";si(),Th(),UX="Convert export",I7={name:"Convert default export to named export",description:ko(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},x7={name:"Convert named export to default export",description:ko(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},sg(UX,{kinds:[I7.kind,x7.kind],getAvailableActions:function(t){let r=WRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!Vg(r)){let i=r.wasDefault?I7:x7;return[{name:UX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:UX,description:ko(f.Convert_default_export_to_named_export),actions:[{...I7,notApplicableReason:r.error},{...x7,notApplicableReason:r.error}]}]:Xe},getEditsForAction:function(t,r){R.assert(r===I7.name||r===x7.name,"Unexpected action name");let i=WRe(t);return R.assert(i&&!Vg(i),"Expected applicable refactor info"),{edits:pr.ChangeTracker.with(t,s=>vHe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function zRe(e,t=!0){let{file:r}=e,i=E1(e),o=so(r,i.start),s=t?Fn(o,Mc):oO(o,r,i);if(!s||!Mc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=sS(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}:BRe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:ko(f.Could_not_find_namespace_import_or_named_imports)}:{error:ko(f.Could_not_find_import_clause)}}function BRe(e,t){return RT(e.getCompilerOptions())&&CHe(t.parent.moduleSpecifier,e.getTypeChecker())}function xHe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?RHe(e,o,r,i.import,RT(t.getCompilerOptions())):VRe(e,t,r,i.import,i.convertTo===1)}function RHe(e,t,r,i,o){let s=!1,l=[],d=new Map;ks.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!vre(y.parent))s=!0;else{let E=GRe(y.parent).text;t.resolveName(E,y,-1,!0)&&d.set(E,!0),R.assert(DHe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});let p=new Map;for(let y of l){let E=GRe(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,Sue(m,void 0,h)):r.replaceNode(e,m,Sue(m,s?L.createIdentifier(i.name.text):void 0,h))}function GRe(e){return wr(e)?e.name:e.right}function DHe(e){return wr(e)?e.expression:e.left}function VRe(e,t,r,i,o=BRe(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)?wd.moduleSpecifierToValidIdentifier(d.text,99):"module";function m(A){return!!ks.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;ks.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=Oo(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,Sue(l,void 0,A))}}function CHe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function Sue(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,NHe=bt({"src/services/refactors/convertImport.ts"(){"use strict";si(),Th(),HX="Convert import",R7={0:{name:"Convert namespace import to named imports",description:ko(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ko(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ko(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},sg(HX,{kinds:cI(R7).map(e=>e.kind),getAvailableActions:function(t){let r=zRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!Vg(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){R.assert(gt(cI(R7),s=>s.name===r),"Unexpected action name");let i=zRe(t);return R.assert(i&&!Vg(i),"Expected applicable refactor info"),{edits:pr.ChangeTracker.with(t,s=>xHe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function jRe(e,t=!0){let{file:r,startPosition:i}=e,o=cu(r),s=Hz(E1(e)),l=s.pos===s.end&&t,d=PHe(r,i,s,l);if(!d||!ji(d))return{error:ko(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),h=OHe(d,o);if(h===void 0)return{error:ko(f.No_type_could_be_extracted_from_this_type_node)};let m=WHe(d,h);if(!ji(m))return{error:ko(f.Selection_is_not_a_valid_type_node)};let y=[];(Kv(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=MHe(p,E,h,r);if(!S)return{error:ko(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 PHe(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)&&!uS(r,h.parent,e)&&(i||d));if(p)return p}}function KX(e,t){if(t){if(So(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,rO(l.name))))return;Hr(r,s)}return r}else{if(NT(t))return KX(e,t.type);if(gp(t))return t.members}}}function uS(e,t,r){return Yw(e,Na(r.text,t.pos),t.end)}function MHe(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(ml(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&uS(y,l,i))return!0;if(uS(r,y,i)&&!uS(l,y,i)){yf(o,y);break}}}}else if(CT(p)){let h=Fn(p,m=>ZI(m)&&uS(m.extendsType,p,i));if(!h||!uS(l,h,i))return!0}else if(kk(p)||Ok(p)){let h=Fn(p.parent,Xo);if(h&&h.type&&uS(h.type,p,i)&&!uS(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&&uS(r,h.valueDeclaration,i)&&!uS(l,h.valueDeclaration,i))return!0}else if(w0(p.exprName.left)&&!uS(l,p.parent,i))return!0}return i&&$I(p)&&ys(i,p.pos).line===ys(i,p.end).line&&cr(p,1),Bo(p,d)}}function LHe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:d,newTypeNode:p}=Tue(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:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.ExcludeWhitespace})}function kHe(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}=Tue(i);e.replaceNodeRange(t,h,m,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.ExcludeWhitespace})}function wHe(e,t,r,i,o){var s;dI(o.selection).forEach(A=>{cr(A,7168)});let{enclosingNode:l,typeParameters:d}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=Tue(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&&ta(N,Q0),[D]);E.push(w)});let S=L.createJSDocComment(void 0,L.createNodeArray(bo(E,[y])));if(Ym(l)){let A=l.getStart(r),N=qy(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 Tue(e){return So(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Kv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function OHe(e,t){return Fn(e,Hi)||(t?Fn(e,Ym):void 0)}function WHe(e,t){return Fn(e,r=>r===t?"quit":!!(Kv(r.parent)||QI(r.parent)))??e}var JX,D7,C7,N7,FHe=bt({"src/services/refactors/extractType.ts"(){"use strict";si(),Th(),JX="Extract type",D7={name:"Extract to type alias",description:ko(f.Extract_to_type_alias),kind:"refactor.extract.type"},C7={name:"Extract to interface",description:ko(f.Extract_to_interface),kind:"refactor.extract.interface"},N7={name:"Extract to typedef",description:ko(f.Extract_to_typedef),kind:"refactor.extract.typedef"},sg(JX,{kinds:[D7.kind,C7.kind,N7.kind],getAvailableActions:function(t){let r=jRe(t,t.triggerReason==="invoked");return r?Vg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:JX,description:ko(f.Extract_type),actions:[{...N7,notApplicableReason:r.error},{...D7,notApplicableReason:r.error},{...C7,notApplicableReason:r.error}]}]:Xe:[{name:JX,description:ko(f.Extract_type),actions:r.isJS?[N7]:Tn([D7],r.typeElements&&C7)}]:Xe},getEditsForAction:function(t,r){let{file:i}=t,o=jRe(t);R.assert(o&&!Vg(o),"Expected to find a range to extract");let s=QT("NewType",i),l=pr.ChangeTracker.with(t,h=>{switch(r){case D7.name:return R.assert(!o.isJS,"Invalid actionName/JS combo"),LHe(h,i,s,o);case N7.name:return R.assert(o.isJS,"Invalid actionName/JS combo"),wHe(h,t,i,s,o);case C7.name:return R.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),kHe(h,i,s,o);default:R.fail("Unexpected action name")}}),d=i.fileName,p=lO(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function Vg(e){return e.error!==void 0}function NE(e,t){return t?e.substr(0,t.length)===t:!0}var zHe=bt({"src/services/refactors/helpers.ts"(){"use strict"}});function URe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=zu(e,t),p=d.parent;if(Fe(d)){if(ik(p)&&mN(p)&&Fe(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:ko(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(HRe(p))return;let h=KRe(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:ko(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=h.declarations[0];if(!ik(m)||!mN(m)||!Fe(m.name)||HRe(m))return;let y=KRe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:ko(f.Could_not_find_variable_to_inline)}}}function HRe(e){let t=ta(e.parent.parent,Pl);return gt(t.modifiers,JI)}function KRe(e,t,r){let i=[],o=ks.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(ks.isWriteAccessForReference(s)&&!Zu(s.parent)||Kd(s.parent)||Ml(s.parent)||YI(s.parent)||JL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function BHe(e,t){t=al(t);let{parent:r}=e;return ht(r)&&(xN(t){for(let y of l)m.replaceNode(r,y,BHe(y,p));m.delete(r,d)})}}})}});function VHe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=L7(e,r.all,l),p=kue(e,t,o,r);i.createNewFile(e,p,jHe(e,d,i,r,t,o,p,s)),Aue(t,i,e.fileName,p,ky(o))}function jHe(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=af(e,d),E=Due(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);E&&QP(r,e,E,!0,d),Iue(e,i.all,r,t.unusedImportsFromOldFile,p),P7(e,i.ranges,r),xue(r,o,s,e,t.movedSymbols,l,y);let S=UHe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),A=Cue(e,i.all,t.oldFileImportsFromTargetFile,m);return S.length&&A.length?[...h,...S,4,...A]:[...h,...S,...A]}function UHe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)EO(S,A=>{Tn(h,SO(A,bO(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=Mue(A);if(!N)continue;let D=QX(A);E(D)&&Lue(e,D,N,i,d),Qr(A,2048)?m=N:y.push(N.text)}}),Tn(h,M7(e,m,y,nc(e.fileName),s,l,d,p)),h}var vO,YX,$X,HHe=bt({"src/services/refactors/moveToNewFile.ts"(){"use strict";si(),Th(),vO="Move to a new file",YX=ko(f.Move_to_a_new_file),$X={name:vO,description:YX,kind:"refactor.move.newFile"},sg(vO,{kinds:[$X.kind],getAvailableActions:function(t){let r=TO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:vO,description:YX,actions:[$X]}]:t.preferences.provideRefactorNotApplicableReason?[{name:vO,description:YX,actions:[{...$X,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe},getEditsForAction:function(t,r){R.assert(r===vO,"Wrong refactor invoked");let i=R.checkDefined(TO(t));return{edits:pr.ChangeTracker.with(t,s=>VHe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function JRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function KHe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,qRe(t,r,L7(t,o.all,p),s,o,i,l,d)),Aue(i,s,t.fileName,r,ky(l));else{let h=R.checkDefined(i.getSourceFile(r)),m=wd.createImportAdder(h,e.program,e.preferences,e.host);qRe(t,h,L7(t,o.all,p,uKe(h,o.all,p)),s,o,i,l,d,m)}}function qRe(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=af(e,d),A=Due(e,r.oldFileImportsFromTargetFile,y,s,l,E,S);A&&QP(i,e,A,!0,d),Iue(e,o.all,i,r.unusedImportsFromOldFile,h),P7(e,o.ranges,i),xue(i,s,l,e,r.movedSymbols,y,S);let N=JHe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,E,S,p),D=Cue(e,o.all,r.oldFileImportsFromTargetFile,E);return typeof t!="string"&&(t.statements.length>0?dKe(i,s,D,t,o):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&QP(i,t,N,!0,d)),p&&p.writeFixes(i,S),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function JHe(e,t,r,i,o,s,l,d,p,h,m){let y=[];if(m)r.forEach((D,w)=>{try{m.addImportFromExportedSymbol(yd(w,s),D)}catch{for(let j of e.statements)EO(j,K=>{Tn(y,SO(K,L.createStringLiteral(bO(K).text),Y=>r.has(s.getSymbolAtLocation(Y))))})}});else{let D=l.getSourceFile(t);for(let w of e.statements)EO(w,j=>{var K;let Y=bO(j),B=l.getCompilerOptions(),ce=l.getResolvedModuleFromModuleSpecifier(Y),z=(K=ce?.resolvedModule)==null?void 0:K.resolvedFileName;if(z&&D){let ee=x3(B,D,D.fileName,z,YT(l,d));Tn(y,SO(j,b1(ee,h),me=>r.has(s.getSymbolAtLocation(me))))}else Tn(y,SO(j,L.createStringLiteral(bO(j).text),ee=>r.has(s.getSymbolAtLocation(ee))))})}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=Mue(w);if(!j)continue;let K=QX(w);N(K)&&Lue(e,K,j,o,p),m&&s.isUnknownSymbol(D)?m.addImportFromExportedSymbol(yd(D,s)):Qr(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 Aue(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=ma(Yr(r,"..",i)),d=FL(s.fileName,l,o),p=s.statements[0]&&ii(s.statements[0].expression,Ma),h=p&&Vr(p.properties,m=>mc(m)&&Da(m.name)&&m.name.text==="files");h&&fu(h.initializer)&&t.insertNodeInListAfter(s,Ka(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 Iue(e,t,r,i,o){for(let s of e.statements)zo(t,s)||EO(s,l=>Nue(e,l,r,d=>i.has(o.getSymbolAtLocation(d))))}function xue(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)EO(h,m=>{if(d.getSymbolAtLocation(bO(m))!==i.symbol)return;let y=D=>{let w=qa(D.parent)?Qz(d,D.parent):yd(d.getSymbolAtLocation(D),d);return!!w&&o.has(w)};Nue(p,m,e,y);let E=Iv(ai(i.path),s),S=x3(t.getCompilerOptions(),p,p.fileName,E,YT(t,r)),A=SO(m,b1(S,l),y);A&&e.insertNodeAfter(p,h,A);let N=qHe(m);N&&XHe(e,p,d,o,S,N,m,l)})}function qHe(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 ii(e.name,Fe);default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function XHe(e,t,r,i,o,s,l,d){let p=wd.moduleSpecifierToValidIdentifier(o,99),h=!1,m=[];if(ks.Core.eachSymbolReferenceInFile(s,r,t,y=>{wr(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,YHe(l,p,o,d))}}function YHe(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,Rue(s));default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Rue(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function bO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function EO(e,t){if(Mc(e))Da(e.moduleSpecifier)&&t(e);else if(Zc(e))bh(e.moduleReference)&&as(e.moduleReference.expression)&&t(e);else if(Pl(e))for(let r of e.declarationList.declarations)r.initializer&&Su(r.initializer,!0)&&t(r)}function Due(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=Iv(ai(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 vde(t,m,h,d)}else{R.assert(!t,"No default import should exist");let m=r.map(y=>L.createBindingElement(void 0,void 0,y));return m.length?XRe(L.createObjectBindingPattern(m),void 0,Rue(b1(h,d))):void 0}}function XRe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function Cue(e,t,r,i){return va(t,o=>{if($Re(o)&&!YRe(e,o,i)&&Wue(o,s=>{var l;return r.has(R.checkDefined((l=ii(s,b_))==null?void 0:l.symbol))})){let s=ZHe(al(o),i);if(s)return s}return al(o)})}function YRe(e,t,r,i){var o;return r?!Qc(t)&&Qr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Pue(t).some(s=>e.symbol.exports.has(fl(s)))}function Nue(e,t,r,i){switch(t.kind){case 272:$He(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:QHe(e,t,r,i);break;default:R.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function $He(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 QHe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Su(t.initializer,!0)?r.delete(e,Vc(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,Vc(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 $Re(e){return R.assert(Yi(e.parent),"Node parent should be a SourceFile"),nDe(e)||Pl(e)}function ZHe(e,t){return t?[eKe(e)]:tKe(e)}function eKe(e){let t=Am(e)?bo([L.createModifier(95)],v0(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)?Rv(e):void 0;return L.updateClassDeclaration(e,bo(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 R.fail();default:return R.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function tKe(e){return[e,...Pue(e).map(QRe)]}function QRe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function Pue(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 R.fail("Can't export an ExpressionStatement");default:return R.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function SO(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&&nKe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,o,s),al(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=rKe(e.name,r);return i?XRe(i,e.type,Rue(t),e.parent.flags):void 0}default:return R.assertNever(e,`Unexpected import kind ${e.kind}`)}}function nKe(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 rKe(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 Mue(e){return Qc(e)?ii(e.expression.left.name,Fe):ii(e.name,Fe)}function QX(e){switch(e.kind){case 260:return e.parent.parent;case 208:return QX(ta(e.parent.parent,t=>Oi(t)||qa(t)));default:return e}}function Lue(e,t,r,i,o){if(!YRe(e,t,o,r))if(o)Qc(t)||i.insertExportModifier(e,t);else{let s=Pue(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(QRe))}}function kue(e,t,r,i){let o=t.getTypeChecker();if(i){let s=L7(e,i.all,o),l=ai(e.fileName),d=jN(e.fileName);return Yr(l,sKe(lKe(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function iKe(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=rDe(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=rDe(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 TO(e){let t=iKe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return LG(o,oKe,(l,d)=>{for(let p=l;p!!(t.transformFlags&2))}function oKe(e){return!aKe(e)&&!vm(e)}function aKe(e){switch(e.kind){case 272:return!0;case 271:return!Qr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Su(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(wue(t));d&&s.set(d,!1);for(let y of t)Wue(y,E=>{o.add(R.checkDefined(Qc(E)?r.getSymbolAtLocation(E.expression.left):E.symbol,"Need a symbol here"))});let p=new Set;for(let y of t)Oue(y,r,(E,S)=>{if(E.declarations){if(i.has(yd(E,r))){p.add(E);return}for(let A of E.declarations)if(ZRe(A)){let N=s.get(E);s.set(E,(N===void 0||N)&&S)}else k7(A)&&cKe(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)zo(t,y)||(d&&y.transformFlags&2&&p.delete(d),Oue(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,ZRe)?S:void 0}}function sKe(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 lKe(e,t){return uh(e,Xz)||uh(t,Xz)||"newFile"}function Oue(e,t,r){e.forEachChild(function i(o){if(Fe(o)&&!Lg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,mE(o))}else o.forEachChild(i)})}function Wue(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=>tDe(r.name,t));case 244:{let{expression:r}=e;return ur(r)&&zl(r)===1?t(e):void 0}}}function ZRe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return eDe(e);case 208:return Oi(e.parent.parent)&&eDe(e.parent.parent);default:return!1}}function eDe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&Su(e.initializer,!0)}function k7(e){return nDe(e)&&Yi(e.parent)||Oi(e)&&Yi(e.parent.parent.parent)}function cKe(e){return Oi(e)?e.parent.parent.parent:e.parent}function tDe(e,t){switch(e.kind){case 80:return t(ta(e.parent,r=>Oi(r)||qa(r)));case 207:case 206:return Wl(e.elements,r=>Gc(r)?void 0:tDe(r.name,t));default:return R.assertNever(e,`Unexpected name kind ${e.kind}`)}}function nDe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function dKe(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)$Re(y)&&Qr(y,32)&&Wue(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)?ii(D.parent.parent,Xl):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(E))});for(let[y,E]of Oo(m))if(y.exportClause&&xf(y.exportClause)&&Nn(y.exportClause.elements)){let S=y.exportClause.elements,A=jr(S,N=>Vr(yd(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 rDe(e,t){if(Fs(t)){let r=t.symbol.declarations;if(r===void 0||Nn(r)<=1||!zo(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 uKe(e,t,r){let i=new Set;for(let o of e.imports){let s=vN(o);if(Mc(s)&&s.importClause&&s.importClause.namedBindings&&Fg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(yd(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(yd(d,r))}}for(let o of t)Oue(o,r,s=>{let l=yd(s,r);l.valueDeclaration&&Gn(l.valueDeclaration)===e&&i.add(l)});return i}var w7,ZX,eY,pKe=bt({"src/services/refactors/moveToFile.ts"(){"use strict";jse(),si(),ORe(),w7="Move to file",ZX=ko(f.Move_to_file),eY={name:"Move to file",description:ZX,kind:"refactor.move.file"},sg(w7,{kinds:[eY.kind],getAvailableActions:function(t,r){let i=TO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:w7,description:ZX,actions:[eY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:w7,description:ZX,actions:[{...eY,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe:Xe},getEditsForAction:function(t,r,i){R.assert(r===w7,"Wrong refactor invoked");let o=R.checkDefined(TO(t)),{host:s,program:l}=t;R.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return W0(d)||WI(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?JRe(ko(f.Cannot_move_statements_to_the_selected_file)):{edits:pr.ChangeTracker.with(t,h=>KHe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:JRe(ko(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function fKe(e){let{file:t,startPosition:r,program:i}=e;return oDe(t,r,i)?[{name:tY,description:Fue,actions:[zue]}]:Xe}function mKe(e){let{file:t,startPosition:r,program:i}=e,o=oDe(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 R.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(d===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],d)})};function h(E){let S=E[E.length-1];return Fs(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 cr(L.createTupleTypeNode(S),gt(S,A=>!!Nn(IR(A)))?0:1)}function y(E){R.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=NO(A);N.length&&hE(S,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return R.assertNever(e)}}function TUe(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 AUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function IUe(e){if(Wu(e))return 3;if(TUe(e)||AUe(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 Nv(e)?6:2}}function Vde(e,t,r,i,o){return Kxe(IX(e,t,r,i,o))}function Uxe(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||!tF(o,p.pos,p.getFullWidth()))){if(Uxe(t,p.kind),Fe(p)&&!Bl(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&Hxe(h,YT(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;R.assert(m>0,`Classification had non-positive length of ${m}`),s.push(d),s.push(m),s.push(h)}}function Hxe(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&&xUe(e)?14:void 0:i&2097152?Hxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function xUe(e){return gt(e.declarations,t=>Yl(t)&&Vg(t)===1)}function RUe(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 Kxe(e){R.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ee=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,me=t.text.substr(B,ce),ge=z.exec(me);if(!ge||!ge[3]||!(ge[3]in wL))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=ee.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),ee>0){let me=ce||K(B.kind,B);me&&p(z,ee,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&&ude(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(Nv(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?O0(ce)?3:17:void 0}if(Ng(ce.parent))return 3}return 2}}}function Y(B){if(B&&$L(i,o,B.pos,B.getFullWidth())){Uxe(e,B.kind);for(let ce of B.getChildren(t))w(ce)||Y(ce)}}}var Jxe,qxe=bt({"src/services/classifier.ts"(){"use strict";ai(),Jxe=nne([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),T7,DUe=bt({"src/services/documentHighlights.ts"(){"use strict";ai(),(e=>{function t(q,J,re,pe,xe){let fe=zu(re,pe);if(fe.parent&&(P_(fe.parent)&&fe.parent.tagName===fe||q0(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:Ru(q,J),kind:"none"}}function i(q,J,re,pe,xe){let fe=new Set(xe.map(Ge=>Ge.fileName)),ne=ws.getReferenceEntriesForNode(q,J,re,xe,pe,void 0,fe);if(!ne)return;let he=RL(ne.map(ws.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ce=Pd(re.useCaseSensitiveFileNames());return Oo(VC(he.entries(),([Ge,ve])=>{if(!fe.has(Ge)){if(!re.redirectTargetsMap.has(nl(Ge,re.getCurrentDirectory(),Ce)))return;let Ie=re.getSourceFile(Ge);Ge=Gr(xe,Le=>!!Le.redirectInfo&&Le.redirectInfo.redirectTarget===Ie).fileName,R.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 wT(q.parent)?ee(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,gP,w);case 84:case 90:return bP(q.parent)||wR(q.parent)?pe(q.parent.parent.parent,gP,w):void 0;case 83:case 88:return pe(q.parent,lN,D);case 99:case 117:case 92:return pe(q.parent,ne=>Mv(ne,!0),N);case 137:return re(Ml,[137]);case 139:case 153:return re(Pv,[139,153]);case 135:return pe(q.parent,Xv,B);case 134:return xe(B(q));case 127:return xe(ce(q));case 103:case 147:return;default:return Ny(q.kind)&&(Kd(q.parent)||Ll(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)?Gr(Ge.getChildren(J),ve=>zo(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)?bo(q.catchClause?l(q.catchClause):q.tryBlock&&l(q.tryBlock),q.finallyBlock&&l(q.finallyBlock)):Yo(q)?void 0:h(q,l)}function d(q){let J=q;for(;J.parent;){let re=J.parent;if(D0(re)||re.kind===312)return re;if(WT(re)&&re.tryBlock===J&&re.catchClause)return J;J=re}}function p(q){return lN(q)?[q]:Yo(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(...pI(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 Yo(J)&&"quit"}})}function E(q,J){return to(S(J,kI(q)),re=>fD(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&&Ac(q)?[...q.members,q]:re.statements;case 176:case 174:case 262:return[...re.parameters,...di(re.parent)?re.parent.members:[]];case 263:case 231:case 264:case 187:let pe=re.members;if(J&15){let xe=Gr(re.members,Ml);if(xe)return[...pe,...xe.parameters]}else if(J&64)return[...pe,re];return pe;case 210:return;default:R.assertNever(re,"Invalid container kind.")}}function A(q,J,...re){return J&&zo(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=gs(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(gs(xe,111,J))}),D0(re)&&R0(re,xe=>{pe.push(gs(xe,107,J))}),pe}function Y(q,J){let re=Wp(q);if(!re)return;let pe=[];return R0(ta(re.body,Ho),xe=>{pe.push(gs(xe,107,J))}),gn(l(re.body),xe=>{pe.push(gs(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)}),Bo(J,pe=>{z(pe,xe=>{Xv(xe)&&A(re,xe.getFirstToken(),135)})}),re}function ce(q){let J=Wp(q);if(!J)return;let re=[];return Bo(J,pe=>{z(pe,xe=>{G4(xe)&&A(re,xe.getFirstToken(),127)})}),re}function z(q,J){J(q),!Yo(q)&&!di(q)&&!mu(q)&&!Yl(q)&&!Tm(q)&&!ji(q)&&Bo(q,re=>z(re,J))}function ee(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:pc(fe.getStart(),ne.end),kind:"reference"}),xe++;continue}}pe.push(r(re[xe],J))}return pe}function me(q,J){let re=[];for(;wT(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||!wT(q.elseStatement))break;q=q.elseStatement}return re}function ge(q,J){return!!Fn(q.parent,re=>J0(re)?re.label.escapedText===J:"quit")}})(T7||(T7={}))}});function yO(e){return!!e.sourceFile}function Ude(e,t,r){return RX(e,t,r)}function RX(e,t="",r,i){let o=new Map,s=Pd(!!e);function l(){let D=Oo(o.keys()).filter(w=>w&&w.charAt(0)==="_").map(w=>{let j=o.get(w),K=[];return j.forEach((Y,B)=>{yO(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=nl(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=nl(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=yO(D)?D:D.get(R.checkDefined(w,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return R.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,ee){var me,ge,q,J;z=w6(D,z);let re=d(j),pe=j===re?void 0:j,xe=z===6?100:rs(re),fe=typeof ee=="object"?ee:{languageVersion:xe,impliedNodeFormat:pe&&Ww(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:ck(re),jsDocParsingMode:r};fe.languageVersion=xe,R.assertEqual(r,fe.jsDocParsingMode);let ne=o.size,he=Hde(K,fe.impliedNodeFormat),Ce=jC(o,he,()=>new Map);if(ir){o.size>ne&&ir.instant(ir.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:he});let De=!Sd(w)&&Gc(o,(Le,Et)=>Et!==he&&Le.has(w)&&Et);De&&ir.instant(ir.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&&(R.assert(ce),ve={sourceFile:De,languageServiceRefCount:0},Ie())}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=q7(D,Y,fe,B,!1,z);i&&i.setDocument(he,w,De),ve={sourceFile:De,languageServiceRefCount:1},Ie()}return R.assert(ve.languageServiceRefCount!==0),ve.sourceFile;function Ie(){if(!Ge)Ce.set(w,ve);else if(yO(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=nl(D,t,s),B=DX(w);return N(Y,B,j,K)}function N(D,w,j,K){let Y=R.checkDefined(o.get(Hde(w,K))),B=Y.get(D),ce=E(B,j);ce.languageServiceRefCount--,R.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(yO(B)?Y.delete(D):(B.delete(j),B.size===1&&Y.set(D,TL(B.values(),Zs))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:A,releaseDocumentWithKey:N,getKeyForCompilationSettings:DX,getDocumentRegistryBucketKeyWithMode:Hde,reportStats:l,getBuckets:()=>o}}function DX(e){return tK(e,f3)}function Hde(e,t){return t?`${e}|${t}`:e}var CUe=bt({"src/services/documentRegistry.ts"(){"use strict";ai()}});function Kde(e,t,r,i,o,s,l){let d=_R(i),p=Pd(d),h=CX(t,r,p,l),m=CX(r,t,p,l);return fr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{PUe(e,y,h,t,r,i.getCurrentDirectory(),d),MUe(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:NUe(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 NUe(e,t,r,i){let o=GL(e,t,i);return Jde(oi(r),o)}function PUe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=oi(d.fileName),h=bN(d);if(!h)return;qde(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!fu(S.initializer))return;let D=to(S.initializer.elements,j=>Ca(j)?j.text:void 0);if(D.length===0)return;let w=k6(p,[],D,l,s);Gv(R.checkDefined(w.includeFilePattern),l).test(i)&&!Gv(R.checkDefined(w.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Ja(S.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":qde(S.initializer,(N,D)=>{let w=OH(D);R.assert(w?.type!=="listOrElement"),w&&(w.isFilePath||w.type==="list"&&w.element.isFilePath)?m(N):D==="paths"&&qde(N.initializer,j=>{if(fu(j.initializer))for(let K of j.initializer.elements)y(K)})});return}});function m(S){let A=fu(S.initializer)?S.initializer.elements:[S.initializer],N=!1;for(let D of A)N=y(D)||N;return N}function y(S){if(!Ca(S))return!1;let A=Jde(p,S.text),N=r(A);return N!==void 0?(t.replaceRangeWithText(d,Yxe(S,d),E(N)),!0):!1}function E(S){return _m(p,S,!l)}}function MUe(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;wUe(d,t,N=>{if(!Lp(N))return;let D=Jde(S,N),w=r(D);return w===void 0?void 0:y0(_m(m,w,s))},N=>{let D=e.getTypeChecker().getSymbolAtLocation(N);if(D?.declarations&&D.declarations.some(j=>Ld(j)))return;let w=y!==void 0?Xxe(N,XR(N.text,E,e.getCompilerOptions(),o),r,l):kUe(D,N,d,e,o,r);return w!==void 0&&(w.updated||A&&Lp(N.text))?nS.updateModuleSpecifier(e.getCompilerOptions(),d,h,w.newFileName,QT(e,o),N.text):void 0})}}function LUe(e,t){return ma(Yr(e,t))}function Jde(e,t){return y0(LUe(e,t))}function kUe(e,t,r,i,o,s){if(e){let l=Gr(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 Xxe(t,d,s,i.getSourceFiles())}}function Xxe(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&&Gr(i,m=>m.fileName===h)?l(p):void 0}function l(p){return Sl(p,"/package.json")?void 0:d(p)}function d(p){let h=r(p);return h&&{newFileName:h,updated:!0}}}function wUe(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,Yxe(o,e),s)}}function Yxe(e,t){return Ef(e.getStart(t)+1,e.end-1)}function qde(e,t){if(La(e))for(let r of e.properties)hc(r)&&Ca(r.name)&&t(r,r.name.text)}var OUe=bt({"src/services/getEditsForFileRename.ts"(){"use strict";ai()}});function uM(e,t){return{kind:e,isCaseSensitive:t}}function Xde(e){let t=new Map,r=e.trim().split(".").map(i=>BUe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>uM(2,!0),getFullMatch:()=>uM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>WUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Yde(i,Ja(r),t),patternContainsDots:r.length>1}}function WUe(e,t,r,i){if(!Yde(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=Zxe(s,Yde(e[d],r[l],i));return s}function $xe(e,t){let r=t.get(e);return r||t.set(e,r=nue(e)),r}function Qxe(e,t,r){let i=GUe(e,t.textLowerCase);if(i===0)return uM(t.text.length===e.length?0:1,ao(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=$xe(e,r);for(let s of o)if($de(e,s,t.text,!0))return uM(2,$de(e,s,t.text,!1));if(t.text.length0)return uM(2,!0);if(t.characterSpans.length>0){let o=$xe(e,r),s=eRe(e,o,t,!1)?!0:eRe(e,o,t,!0)?!1:void 0;if(s!==void 0)return uM(3,s)}}}function Yde(e,t,r){if(NX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=Qxe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=Zxe(o,Qxe(e,s,r));return o}function Zxe(e,t){return jG([e,t],FUe)}function FUe(e,t){return e===void 0?1:t===void 0?-1:el(e.kind,t.kind)||Sv(!e.isCaseSensitive,!t.isCaseSensitive)}function $de(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&iRe(0,o.length,s=>zUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function zUe(e,t,r){return r?Qde(e)===Qde(t):e===t}function eRe(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||!YW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function tRe(e){if(e>=97&&e<=122)return!0;if(e<127||!YW(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function GUe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(NX(t,(o,s)=>Qde(e.charCodeAt(s+i))===o))return i;return-1}function Qde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Zde(e){return e>=48&&e<=57}function VUe(e){return yD(e)||tRe(e)||Zde(e)||e===95||e===36}function jUe(e){let t=[],r=0,i=0;for(let o=0;o0&&(t.push(eue(e.substr(r,i))),i=0)}return i>0&&t.push(eue(e.substr(r,i))),t}function eue(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:tue(e)}}function tue(e){return nRe(e,!1)}function nue(e){return nRe(e,!0)}function nRe(e,t){let r=[],i=0;for(let o=1;orue(i)&&i!==95,t,r)}function UUe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var A7,KUe=bt({"src/services/patternMatcher.ts"(){"use strict";ai(),A7=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(A7||{})}});function oRe(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=$d.scan(),d===19?p++:d===20&&p--,d}function y(){let B=$d.getTokenValue(),ce=$d.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=$d.getToken();return B===138?(B=m(),B===144&&(B=m(),B===11&&E()),!0):!1}function D(){if(l===25)return!1;let B=$d.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&&$d.lookAhead(()=>{let z=$d.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=$d.getToken();if(B===95){if(A(),B=m(),B===156&&$d.lookAhead(()=>{let z=$d.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&&$d.lookAhead(()=>{let z=$d.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():$d.getToken();return z===149?(z=m(),z===21&&(z=m(),(z===11||ce&&z===15)&&S()),!0):!1}function K(){let B=$d.getToken();if(B===80&&$d.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($d.setText(e),m();$d.getToken()!==1;){if($d.getToken()===16){let B=[$d.getToken()];e:for(;Nn(B);){let ce=$d.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)&&(Qs(B)===16?$d.reScanTemplateToken(!1)===18&&B.pop():B.pop());break}}m()}N()||D()||w()||r&&(j(!1,!0)||K())||m()}$d.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 JUe=bt({"src/services/preProcess.ts"(){"use strict";ai()}});function iue(e){let t=Pd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:d,tryGetGeneratedPosition:p,toLineColumnOffset:E,clearCache:S};function s(A){return nl(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||F3),j||F3}function d(A){if(!Sd(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(Sd(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=Cs(w),K=j?Tu(j)+".d.ts":s6(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?qUe(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=Yse(r);if(o){let d=sRe.exec(o);if(d){if(d[1]){let p=d[1];return aRe(e,Yie(gd,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&_o(o,oi(t));for(let d of s){let p=_o(d,oi(t)),h=i(p,l);if(Co(h))return aRe(e,h,p);if(h!==void 0)return h||void 0}}function aRe(e,t,r){let i=IK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Co)))return Zse(e,i,r)}function qUe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Lx(Dg(this),r)}}}var sRe,XUe=bt({"src/services/sourcemaps.ts"(){"use strict";ai(),sRe=/^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||Sc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(hde(t)||Gq(t.getCompilerOptions()))&&YUe(e)&&o.push(Pr(eHe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=cu(e);if(OX.clear(),p(e),CT(t.getCompilerOptions()))for(let h of e.imports){let m=AN(h),y=$Ue(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&&kl(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&o.push(Pr(y,f.Import_may_be_converted_to_a_default_import))}return Ur(o,e.bindSuggestionDiagnostics),Ur(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(d)nHe(h,s)&&o.push(Pr(Oi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ll(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){let y=h.declarationList.declarations[0].initializer;y&&Su(y,!0)&&o.push(Pr(y,f.require_call_may_be_converted_to_an_import))}let m=Wd.getJSDocTypedefNodes(h);for(let y of m)o.push(Pr(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Wd.parameterShouldGetTypeFromJSDoc(h)&&o.push(Pr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}wX(h)&&QUe(h,s,o),h.forEachChild(p)}}function YUe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Su(lRe(r.initializer),!0));case 244:{let{expression:r}=t;if(!pr(r))return Su(r,!0);let i=Gl(r);return i===1||i===2}default:return!1}})}function lRe(e){return kr(e)?lRe(e.expression):e}function $Ue(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Ca(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function QUe(e,t,r){ZUe(e,t)&&!OX.has(pRe(e))&&r.push(Pr(!e.name&&Oi(e.parent)&&Fe(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function ZUe(e,t){return!DN(e)&&e.body&&Ho(e.body)&&tHe(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 eHe(e){return pr(e)?e.left:e}function tHe(e,t){return!!R0(e,r=>I7(r,t))}function I7(e,t){return Sm(e)&&!!e.expression&&kX(e.expression,t)}function kX(e,t){if(!cRe(e)||!dRe(e)||!e.arguments.every(i=>uRe(i,t)))return!1;let r=e.expression.expression;for(;cRe(r)||kr(r);)if(ra(r)){if(!dRe(r)||!r.arguments.every(i=>uRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function cRe(e){return ra(e)&&(Xw(e,"then")||Xw(e,"catch")||Xw(e,"finally"))}function dRe(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 uRe(e,t){switch(e.kind){case 262:case 218:if(Vc(e)&1)return!1;case 219:OX.set(pRe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||gt(bd(i,t).declarations,o=>Yo(o)||kv(o)&&!!o.initializer&&Yo(o.initializer)):!1}default:return!1}}function pRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function nHe(e,t){var r,i,o,s;if(ks(e)){if(Oi(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 Tc(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,rHe=bt({"src/services/suggestionDiagnostics.ts"(){"use strict";ai(),OX=new Map}});function oue(e,t){let r=[],i=t.compilerOptions?WX(t.compilerOptions,r):{},o=J7();for(let E in o)Is(o,E)&&i[E]===void 0&&(i[E]=o[E]);for(let E of YH)i.verbatimModuleSyntax&&mRe.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)=>{Tl(E,".map")?(R.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",E),m=S):(R.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=ew(d,e,{languageVersion:rs(i),impliedNodeFormat:Ww(nl(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:ck(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=az([d],i,l);return t.reportDiagnostics&&(Ur(r,y.getSyntacticDiagnostics(p)),Ur(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?R.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function fRe(e,t,r,i,o){let s=oue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Ur(i,s.diagnostics),s.outputText}function WX(e,t){aue=aue||Vr(sg,r=>typeof r.type=="object"&&!Gc(r.type,i=>typeof i!="number")),e=wq(e);for(let r of aue){if(!Is(e,r.name))continue;let i=e[r.name];Co(i)?e[r.name]=a3(r,i,t):Gc(r.type,o=>o===i)||t.push($ae(r))}return e}var mRe,aue,iHe=bt({"src/services/transpile.ts"(){"use strict";ai(),mRe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function _Re(e,t,r,i,o,s,l){let d=Xde(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)&&(hRe(m,!!l,h)||m.getNamedDeclarations().forEach((y,E)=>{oHe(d,E,y,t,m.fileName,!!l,h,p)}));return p.sort(cHe),(o===void 0?p:p.slice(0,o)).map(dHe)}function hRe(e,t,r){return e!==r&&t&&(_O(e.path)||e.hasNoDefaultLib)}function oHe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(aHe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(lHe(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 aHe(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=>hRe(d.getSourceFile(),r,i)));default:return!0}}function sHe(e,t){let r=No(e);return!!r&&(gRe(r,t)||r.kind===167&&sue(r.expression,t))}function sue(e,t){return gRe(e,t)||kr(e)&&(t.push(e.name.text),!0)&&sue(e.expression,t)}function gRe(e,t){return T_(e)&&(t.push(Xf(e)),!0)}function lHe(e){let t=[],r=No(e);if(r&&r.kind===167&&!sue(r.expression,t))return Xe;t.shift();let i=$T(e);for(;i;){if(!sHe(i,t))return Xe;i=$T(i)}return t.reverse()}function cHe(e,t){return el(e.matchKind,t.matchKind)||CL(e.name,t.name)}function dHe(e){let t=e.declaration,r=$T(t),i=r&&No(r);return{name:e.name,kind:sS(t),kindModifiers:tM(t),matchKind:A7[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Ru(t),containerName:i?i.text:"",containerKind:i?sS(r):""}}var uHe=bt({"src/services/navigateTo.ts"(){"use strict";ai()}}),lue={};Ra(lue,{getNavigateToItems:()=>_Re});var yRe=bt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";uHe()}});function vRe(e,t){GX=t,vO=e;try{return mn(hHe(TRe(e)),gHe)}finally{ERe()}}function bRe(e,t){GX=t,vO=e;try{return MRe(TRe(e))}finally{ERe()}}function ERe(){vO=void 0,GX=void 0,bO=[],Xy=void 0,VX=[]}function x7(e){return pM(e.getText(vO))}function FX(e){return e.node.kind}function SRe(e,t){e.children?e.children.push(t):e.children=[t]}function TRe(e){R.assert(!bO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Xy=t;for(let r of e.statements)A1(r);return DE(),R.assert(!Xy&&!bO.length),t}function dS(e,t){SRe(Xy,cue(e,t))}function cue(e,t){return{node:e,name:t||(Kd(e)||ht(e)?No(e):void 0),additionalNodes:void 0,parent:Xy,children:void 0,indent:Xy.indent+1}}function ARe(e){vD||(vD=new Map),vD.set(e,!0)}function IRe(e){for(let t=0;t0;i--){let o=r[i];uS(e,o)}return[r.length-1,r[0]]}function uS(e,t){let r=cue(e,t);SRe(Xy,r),bO.push(Xy),gue.push(vD),vD=void 0,Xy=r}function DE(){Xy.children&&(zX(Xy.children,Xy),pue(Xy.children)),Xy=bO.pop(),vD=gue.pop()}function CE(e,t,r){uS(e,r),A1(t),DE()}function RRe(e){e.initializer&&vHe(e.initializer)?(uS(e),Bo(e.initializer,A1),DE()):CE(e,e.initializer)}function due(e){let t=No(e);if(t===void 0)return!1;if(Ya(t)){let r=t.expression;return Vl(r)||mp(r)||$p(r)}return!!t}function A1(e){if(GX.throwIfCancellationRequested(),!(!e||vI(e)))switch(e.kind){case 176:let t=e;CE(t,t.body);for(let l of t.parameters)dp(l,t)&&dS(l);break;case 174:case 177:case 178:case 173:due(e)&&CE(e,e.body);break;case 172:due(e)&&RRe(e);break;case 171:due(e)&&dS(e);break;case 273:let r=e;r.name&&dS(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)dS(i);else for(let l of i.elements)dS(l);break;case 304:CE(e,e.name);break;case 305:let{expression:o}=e;Fe(o)?dS(e,o):dS(e);break;case 208:case 303:case 260:{let l=e;$o(l.name)?A1(l.name):RRe(l);break}case 262:let s=e.name;s&&Fe(s)&&ARe(s.text),CE(e,e.body);break;case 219:case 218:CE(e,e.body);break;case 266:uS(e);for(let l of e.members)yHe(l)||dS(l);DE();break;case 263:case 231:case 264:uS(e);for(let l of e.members)A1(l);DE();break;case 267:CE(e,kRe(e).body);break;case 277:{let l=e.expression,d=La(l)||ra(l)?l:zs(l)||ks(l)?l.body:void 0;d?(uS(e),A1(d),DE()):dS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:dS(e);break;case 213:case 226:{let l=Gl(e);switch(l){case 1:case 2:CE(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)?(ARe(h.expression.text),y=h.expression):[m,y]=xRe(d,h.expression),l===6?La(d.right)&&d.right.properties.length>0&&(uS(d,y),Bo(d.right,A1),DE()):ks(d.right)||zs(d.right)?CE(e,d.right,y):(uS(d,y),CE(e,d.right,p.name),DE()),IRe(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]=xRe(e,p);uS(e,y),uS(e,at(L.createIdentifier(h.text),h)),A1(e.arguments[2]),DE(),DE(),IRe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Fe(h)&&Lg(p)!=="prototype"&&vD&&vD.has(h.text)){ks(d.right)||zs(d.right)?CE(e,d.right,h):N0(p)&&(uS(d,h),CE(d.left,d.right,O2(p)),DE());return}break}case 4:case 0:case 8:break;default:R.assertNever(l)}}default:kp(e)&&gn(e.jsDoc,l=>{gn(l.tags,d=>{qf(d)&&dS(d)})}),Bo(e,A1)}}function zX(e,t){let r=new Map;CG(e,(i,o)=>{let s=i.name||No(i.node),l=s&&x7(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(DRe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return DRe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function pHe(e,t,r,i){function o(d){return ks(d)||Tc(d)||Oi(d)}let s=pr(t.node)||ra(t.node)?Gl(t.node):0,l=pr(e.node)||ra(e.node)?Gl(e.node):0;if(fM[s]&&fM[l]||o(e.node)&&fM[s]||o(t.node)&&fM[l]||Ac(e.node)&&uue(e.node)&&fM[s]||Ac(t.node)&&fM[l]||Ac(e.node)&&uue(e.node)&&o(t.node)||Ac(t.node)&&o(e.node)&&uue(e.node)){let d=e.additionalNodes&&Qs(e.additionalNodes)||e.node;if(!Ac(e.node)&&!Ac(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=cue(m);y.indent=e.indent+1,y.children=e.node===h?e.children:t.children,e.children=e.node===h?bo([y],t.children||[t]):bo(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=bo(e.children||[{...e}],t.children||[t]),e.children&&(zX(e.children,e),pue(e.children)));d=e.node=at(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=bo(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 DRe(e,t,r,i){return pHe(e,t,r,i)?!0:fHe(e.node,t.node,i)?(mHe(e,t),!0):!1}function fHe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(CRe(e,r)&&CRe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return na(e)===na(t);case 267:return NRe(e,t)&&_ue(e)===_ue(t);default:return!0}}function uue(e){return!!(e.flags&16)}function CRe(e,t){let r=N_(e.parent)?e.parent.parent:e.parent;return r===t.node||zo(t.additionalNodes,r)}function NRe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||NRe(e.body,t.body))}function mHe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=bo(e.children,t.children),e.children&&(zX(e.children,e),pue(e.children))}function pue(e){e.sort(_He)}function _He(e,t){return CL(PRe(e.node),PRe(t.node))||el(FX(e),FX(t))}function PRe(e){if(e.kind===267)return LRe(e);let t=No(e);if(t&&oc(t)){let r=ST(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return ORe(e);default:return}}function fue(e,t){if(e.kind===267)return pM(LRe(e));if(t){let r=Fe(t)?t.text:Xs(t)?`[${x7(t.argumentExpression)}]`:x7(t);if(r.length>0)return pM(r)}switch(e.kind){case 312:let r=e;return sc(r)?`"${eg(ic(Tu(ma(r.fileName))))}"`:"";case 277:return kl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return zv(e)&2048?"default":ORe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function hHe(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 MRe(e){return{text:fue(e.node,e.name),kind:sS(e.node),kindModifiers:wRe(e.node),spans:mue(e),nameSpan:e.name&&hue(e.name),childItems:mn(e.children,MRe)}}function gHe(e){return{text:fue(e.node,e.name),kind:sS(e.node),kindModifiers:wRe(e.node),spans:mue(e),childItems:mn(e.children,t)||VX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:fue(r.node,r.name),kind:sS(r.node),kindModifiers:tM(r.node),spans:mue(r),childItems:VX,indent:0,bolded:!1,grayed:!1}}}function mue(e){let t=[hue(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(hue(r));return t}function LRe(e){return Ld(e)?fc(e.name):_ue(e)}function _ue(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 kRe(e){return e.body&&Yl(e.body)?kRe(e.body):e}function yHe(e){return!e.name||e.name.kind===167}function hue(e){return e.kind===312?nb(e):Ru(e,vO)}function wRe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),tM(e)}function ORe(e){let{parent:t}=e;if(e.name&&_2(e.name)>0)return pM(xs(e.name));if(Oi(t))return pM(xs(t.name));if(pr(t)&&t.operatorToken.kind===64)return x7(t.left).replace(FRe,"");if(hc(t))return x7(t.name);if(zv(e)&2048)return"default";if(di(e))return"";if(ra(t)){let r=WRe(t.expression);if(r!==void 0){if(r=pM(r),r.length>BX)return`${r} callback`;let i=pM(to(t.arguments,o=>ss(o)||TI(o)?o.getText(vO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function WRe(e){if(Fe(e))return e.text;if(kr(e)){let t=WRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function vHe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function pM(e){return e=e.length>BX?e.substring(0,BX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var FRe,BX,GX,vO,bO,Xy,gue,vD,VX,fM,bHe=bt({"src/services/navigationBar.ts"(){"use strict";ai(),FRe=/\s+/g,BX=150,bO=[],gue=[],VX=[],fM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),yue={};Ra(yue,{getNavigationBarItems:()=>vRe,getNavigationTree:()=>bRe});var zRe=bt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";bHe()}});function lg(e,t){jX.set(e,t)}function EHe(e,t){return Oo(NG(jX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>NE(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function SHe(e,t,r,i){let o=jX.get(t);return o&&o.getEditsForAction(e,r,i)}var jX,BRe=bt({"src/services/refactorProvider.ts"(){"use strict";ai(),Th(),jX=new Map}});function GRe(e,t=!0){let{file:r,program:i}=e,o=T1(e),s=so(r,o.start),l=s.parent&&zv(s.parent)&32&&t?s.parent:lO(s,r,o);if(!l||!Yi(l.parent)&&!(N_(l.parent)&&Ld(l.parent.parent)))return{error:ko(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=DHe(l.parent,d),h=zv(l)||(kl(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:ko(f.This_file_already_has_a_default_export)};let y=E=>Fe(E)&&d.getSymbolAtLocation(E)?void 0:{error:ko(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?(R.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 THe(e,t,r,i,o){AHe(e,r,i,t.getTypeChecker()),IHe(t,r,i,o)}function AHe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(kl(r)&&!r.isExportEquals){let l=r.expression,d=VRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([d])))}else o.delete(e,R.checkDefined(fD(r,90),"Should find a default keyword in modifier list"));else{let l=R.checkDefined(fD(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(!ws.Core.isSymbolReferencedInFile(i,s,e)&&!d.type){o.replaceNode(e,r,L.createExportDefault(R.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:R.fail(`Unexpected exportNode kind ${r.kind}`)}}}function IHe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),d=R.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");ws.Core.eachExportReference(e.getSourceFiles(),l,s,d,i,r.text,t,p=>{if(r===p)return;let h=p.getSourceFile();t?xHe(h,p,o,r.text):RHe(h,p,o)})}function xHe(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,vue(i,l.name.text));break}case 273:{let l=o;R.assert(l.name===t,"Import clause name should match provided ref");let d=vue(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=Ca(l.parent.moduleSpecifier)?jq(l.parent.moduleSpecifier,e):1,m=Jy(void 0,[vue(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:R.failBadSyntaxKind(o)}}function RHe(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,VRe("default",i.name.text));break}default:R.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function vue(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function VRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function DHe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&I0(r.valueDeclaration)?t.getMergedSymbol(r):r}var UX,R7,D7,CHe=bt({"src/services/refactors/convertExport.ts"(){"use strict";ai(),Th(),UX="Convert export",R7={name:"Convert default export to named export",description:ko(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},D7={name:"Convert named export to default export",description:ko(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},lg(UX,{kinds:[R7.kind,D7.kind],getAvailableActions:function(t){let r=GRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!jg(r)){let i=r.wasDefault?R7:D7;return[{name:UX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:UX,description:ko(f.Convert_default_export_to_named_export),actions:[{...R7,notApplicableReason:r.error},{...D7,notApplicableReason:r.error}]}]:Xe},getEditsForAction:function(t,r){R.assert(r===R7.name||r===D7.name,"Unexpected action name");let i=GRe(t);return R.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:fr.ChangeTracker.with(t,s=>THe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function jRe(e,t=!0){let{file:r}=e,i=T1(e),o=so(r,i.start),s=t?Fn(o,kc):lO(o,r,i);if(!s||!kc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=lS(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}:URe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:ko(f.Could_not_find_namespace_import_or_named_imports)}:{error:ko(f.Could_not_find_import_clause)}}function URe(e,t){return CT(e.getCompilerOptions())&&LHe(t.parent.moduleSpecifier,e.getTypeChecker())}function NHe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?PHe(e,o,r,i.import,CT(t.getCompilerOptions())):KRe(e,t,r,i.import,i.convertTo===1)}function PHe(e,t,r,i,o){let s=!1,l=[],d=new Map;ws.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!gre(y.parent))s=!0;else{let E=HRe(y.parent).text;t.resolveName(E,y,-1,!0)&&d.set(E,!0),R.assert(MHe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});let p=new Map;for(let y of l){let E=HRe(y).text,S=p.get(E);S===void 0&&p.set(E,S=d.has(E)?eA(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,bue(m,void 0,h)):r.replaceNode(e,m,bue(m,s?L.createIdentifier(i.name.text):void 0,h))}function HRe(e){return kr(e)?e.name:e.right}function MHe(e){return kr(e)?e.expression:e.left}function KRe(e,t,r,i,o=URe(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&&Ca(d)?Wd.moduleSpecifierToValidIdentifier(d.text,99):"module";function m(A){return!!ws.Core.eachSymbolReferenceInFile(A.name,s,e,N=>{let D=s.resolveName(h,N,-1,!0);return D?p.has(D)?Jd(N.parent):!0:!1})}let E=i.elements.some(m)?eA(h,e):h,S=new Set;for(let A of i.elements){let N=(A.propertyName||A.name).text;ws.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)):Jd(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=Oo(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,bue(l,void 0,A))}}function LHe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function bue(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,C7,kHe=bt({"src/services/refactors/convertImport.ts"(){"use strict";ai(),Th(),HX="Convert import",C7={0:{name:"Convert namespace import to named imports",description:ko(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ko(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ko(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},lg(HX,{kinds:uI(C7).map(e=>e.kind),getAvailableActions:function(t){let r=jRe(t,t.triggerReason==="invoked");if(!r)return Xe;if(!jg(r)){let i=C7[r.convertTo];return[{name:HX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?uI(C7).map(i=>({name:HX,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Xe},getEditsForAction:function(t,r){R.assert(gt(uI(C7),s=>s.name===r),"Unexpected action name");let i=jRe(t);return R.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:fr.ChangeTracker.with(t,s=>NHe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function JRe(e,t=!0){let{file:r,startPosition:i}=e,o=cu(r),s=Jz(T1(e)),l=s.pos===s.end&&t,d=wHe(r,i,s,l);if(!d||!ji(d))return{error:ko(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),h=BHe(d,o);if(h===void 0)return{error:ko(f.No_type_could_be_extracted_from_this_type_node)};let m=GHe(d,h);if(!ji(m))return{error:ko(f.Selection_is_not_a_valid_type_node)};let y=[];(Jv(m.parent)||e1(m.parent))&&s.end>d.end&&Ur(y,m.parent.types.filter(N=>Wz(N,r,s.pos,s.end)));let E=y.length>1?y:m,S=OHe(p,E,h,r);if(!S)return{error:ko(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 wHe(e,t,r,i){let o=[()=>so(e,t),()=>uD(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)&&!pS(r,h.parent,e)&&(i||d));if(p)return p}}function KX(e,t){if(t){if(So(t)){let r=[];for(let i of t){let o=KX(e,i);if(!o)return;Ur(r,o)}return r}if(e1(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,aO(l.name))))return;Ur(r,s)}return r}else{if(MT(t))return KX(e,t.type);if(gp(t))return t.members}}}function pS(e,t,r){return Zw(e,Pa(r.text,t.pos),t.end)}function OHe(e,t,r,i){let o=[],s=pI(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(ml(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&pS(y,l,i))return!0;if(pS(r,y,i)&&!pS(l,y,i)){yf(o,y);break}}}}else if(PT(p)){let h=Fn(p,m=>t1(m)&&pS(m.extendsType,p,i));if(!h||!pS(l,h,i))return!0}else if(Wk(p)||zk(p)){let h=Fn(p.parent,Yo);if(h&&h.type&&pS(h.type,p,i)&&!pS(l,h,i))return!0}else if(QI(p)){if(Fe(p.exprName)){let h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&pS(r,h.valueDeclaration,i)&&!pS(l,h.valueDeclaration,i))return!0}else if(O0(p.exprName.left)&&!pS(l,p.parent,i))return!0}return i&&ZI(p)&&ys(i,p.pos).line===ys(i,p.end).line&&dr(p,1),Bo(p,d)}}function WHe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:d,newTypeNode:p}=Eue(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:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.ExcludeWhitespace})}function FHe(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}=Eue(i);e.replaceNodeRange(t,h,m,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.ExcludeWhitespace})}function zHe(e,t,r,i,o){var s;pI(o.selection).forEach(A=>{dr(A,7168)});let{enclosingNode:l,typeParameters:d}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=Eue(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(m),L.createIdentifier(i)),E=[];gn(d,A=>{let N=Fx(A),D=L.createTypeParameterDeclaration(void 0,A.name),w=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ta(N,Z0),[D]);E.push(w)});let S=L.createJSDocComment(void 0,L.createNodeArray(bo(E,[y])));if(Ym(l)){let A=l.getStart(r),N=qy(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),S,{suffix:N+N+r.text.slice(r7(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 Eue(e){return So(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Jv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function BHe(e,t){return Fn(e,Hi)||(t?Fn(e,Ym):void 0)}function GHe(e,t){return Fn(e,r=>r===t?"quit":!!(Jv(r.parent)||e1(r.parent)))??e}var JX,N7,P7,M7,VHe=bt({"src/services/refactors/extractType.ts"(){"use strict";ai(),Th(),JX="Extract type",N7={name:"Extract to type alias",description:ko(f.Extract_to_type_alias),kind:"refactor.extract.type"},P7={name:"Extract to interface",description:ko(f.Extract_to_interface),kind:"refactor.extract.interface"},M7={name:"Extract to typedef",description:ko(f.Extract_to_typedef),kind:"refactor.extract.typedef"},lg(JX,{kinds:[N7.kind,P7.kind,M7.kind],getAvailableActions:function(t){let r=JRe(t,t.triggerReason==="invoked");return r?jg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:JX,description:ko(f.Extract_type),actions:[{...M7,notApplicableReason:r.error},{...N7,notApplicableReason:r.error},{...P7,notApplicableReason:r.error}]}]:Xe:[{name:JX,description:ko(f.Extract_type),actions:r.isJS?[M7]:Tn([N7],r.typeElements&&P7)}]:Xe},getEditsForAction:function(t,r){let{file:i}=t,o=JRe(t);R.assert(o&&!jg(o),"Expected to find a range to extract");let s=eA("NewType",i),l=fr.ChangeTracker.with(t,h=>{switch(r){case N7.name:return R.assert(!o.isJS,"Invalid actionName/JS combo"),WHe(h,i,s,o);case M7.name:return R.assert(o.isJS,"Invalid actionName/JS combo"),zHe(h,t,i,s,o);case P7.name:return R.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),FHe(h,i,s,o);default:R.fail("Unexpected action name")}}),d=i.fileName,p=uO(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function jg(e){return e.error!==void 0}function NE(e,t){return t?e.substr(0,t.length)===t:!0}var jHe=bt({"src/services/refactors/helpers.ts"(){"use strict"}});function qRe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=zu(e,t),p=d.parent;if(Fe(d)){if(sk(p)&&vN(p)&&Fe(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:ko(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(XRe(p))return;let h=YRe(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:ko(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=h.declarations[0];if(!sk(m)||!vN(m)||!Fe(m.name)||XRe(m))return;let y=YRe(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:ko(f.Could_not_find_variable_to_inline)}}}function XRe(e){let t=ta(e.parent.parent,Ll);return gt(t.modifiers,XI)}function YRe(e,t,r){let i=[],o=ws.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(ws.isWriteAccessForReference(s)&&!Zu(s.parent)||Jd(s.parent)||kl(s.parent)||QI(s.parent)||YL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function UHe(e,t){t=al(t);let{parent:r}=e;return ht(r)&&(PN(t){for(let y of l)m.replaceNode(r,y,UHe(y,p));m.delete(r,d)})}}})}});function KHe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=w7(e,r.all,l),p=Mue(e,t,o,r);i.createNewFile(e,p,JHe(e,d,i,r,t,o,p,s)),Sue(t,i,e.fileName,p,ky(o))}function JHe(e,t,r,i,o,s,l,d){let p=o.getTypeChecker(),h=xW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return L7(e,i.ranges,r),[...h,...i.all];let m=!_X(l,o,s,!!e.commonJsModuleIndicator),y=of(e,d),E=xue(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);E&&rM(r,e,E,!0,d),Tue(e,i.all,r,t.unusedImportsFromOldFile,p),L7(e,i.ranges,r),Aue(r,o,s,e,t.movedSymbols,l,y);let S=qHe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,y),A=Rue(e,i.all,t.oldFileImportsFromTargetFile,m);return S.length&&A.length?[...h,...S,4,...A]:[...h,...S,...A]}function qHe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)AO(S,A=>{Tn(h,IO(A,TO(A),N=>t.has(o.getSymbolAtLocation(N))))});let m,y=[],E=E1();return r.forEach(S=>{if(S.declarations)for(let A of S.declarations){if(!O7(A))continue;let N=Nue(A);if(!N)continue;let D=QX(A);E(D)&&Pue(e,D,N,i,d),$r(A,2048)?m=N:y.push(N.text)}}),Tn(h,k7(e,m,y,ic(e.fileName),s,l,d,p)),h}var SO,YX,$X,XHe=bt({"src/services/refactors/moveToNewFile.ts"(){"use strict";ai(),Th(),SO="Move to a new file",YX=ko(f.Move_to_a_new_file),$X={name:SO,description:YX,kind:"refactor.move.newFile"},lg(SO,{kinds:[$X.kind],getAvailableActions:function(t){let r=xO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:SO,description:YX,actions:[$X]}]:t.preferences.provideRefactorNotApplicableReason?[{name:SO,description:YX,actions:[{...$X,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe},getEditsForAction:function(t,r){R.assert(r===SO,"Wrong refactor invoked");let i=R.checkDefined(xO(t));return{edits:fr.ChangeTracker.with(t,s=>KHe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function $Re(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function YHe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,QRe(t,r,w7(t,o.all,p),s,o,i,l,d)),Sue(i,s,t.fileName,r,ky(l));else{let h=R.checkDefined(i.getSourceFile(r)),m=Wd.createImportAdder(h,e.program,e.preferences,e.host);QRe(t,h,w7(t,o.all,p,_Ke(h,o.all,p)),s,o,i,l,d,m)}}function QRe(e,t,r,i,o,s,l,d,p){let h=s.getTypeChecker(),m=xW(e.statements,vm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return L7(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=xue(e,r.oldFileImportsFromTargetFile,y,s,l,E,S);A&&rM(i,e,A,!0,d),Tue(e,o.all,i,r.unusedImportsFromOldFile,h),L7(e,o.ranges,i),Aue(i,s,l,e,r.movedSymbols,y,S);let N=$He(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,E,S,p),D=Rue(e,o.all,r.oldFileImportsFromTargetFile,E);return typeof t!="string"&&(t.statements.length>0?mKe(i,s,D,t,o):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&rM(i,t,N,!0,d)),p&&p.writeFixes(i,S),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function $He(e,t,r,i,o,s,l,d,p,h,m){let y=[];if(m)r.forEach((D,w)=>{try{m.addImportFromExportedSymbol(bd(w,s),D)}catch{for(let j of e.statements)AO(j,K=>{Tn(y,IO(K,L.createStringLiteral(TO(K).text),Y=>r.has(s.getSymbolAtLocation(Y))))})}});else{let D=l.getSourceFile(t);for(let w of e.statements)AO(w,j=>{var K;let Y=TO(j),B=l.getCompilerOptions(),ce=l.getResolvedModuleFromModuleSpecifier(Y),z=(K=ce?.resolvedModule)==null?void 0:K.resolvedFileName;if(z&&D){let ee=D3(B,D,D.fileName,z,QT(l,d));Tn(y,IO(j,S1(ee,h),me=>r.has(s.getSymbolAtLocation(me))))}else Tn(y,IO(j,L.createStringLiteral(TO(j).text),ee=>r.has(s.getSymbolAtLocation(ee))))})}let E=l.getSourceFile(t),S,A=[],N=E1();return i.forEach(D=>{if(D.declarations)for(let w of D.declarations){if(!O7(w))continue;let j=Nue(w);if(!j)continue;let K=QX(w);N(K)&&Pue(e,K,j,o,p),m&&s.isUnknownSymbol(D)?m.addImportFromExportedSymbol(bd(D,s)):$r(w,2048)?S=j:A.push(j.text)}}),E?Tn(y,k7(E,S,A,e.fileName,l,d,p,h)):Tn(y,k7(e,S,A,e.fileName,l,d,p,h))}function Sue(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=ma(Yr(r,"..",i)),d=GL(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,La),h=p&&Gr(p.properties,m=>hc(m)&&Ca(m.name)&&m.name.text==="files");h&&fu(h.initializer)&&t.insertNodeInListAfter(s,Ja(h.initializer.elements),L.createStringLiteral(d),h.initializer.elements)}function L7(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function Tue(e,t,r,i,o){for(let s of e.statements)zo(t,s)||AO(s,l=>Due(e,l,r,d=>i.has(o.getSymbolAtLocation(d))))}function Aue(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)AO(h,m=>{if(d.getSymbolAtLocation(TO(m))!==i.symbol)return;let y=D=>{let w=Xa(D.parent)?e7(d,D.parent):bd(d.getSymbolAtLocation(D),d);return!!w&&o.has(w)};Due(p,m,e,y);let E=xv(oi(i.path),s),S=D3(t.getCompilerOptions(),p,p.fileName,E,QT(t,r)),A=IO(m,S1(S,l),y);A&&e.insertNodeAfter(p,h,A);let N=QHe(m);N&&ZHe(e,p,d,o,S,N,m,l)})}function QHe(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 R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function ZHe(e,t,r,i,o,s,l,d){let p=Wd.moduleSpecifierToValidIdentifier(o,99),h=!1,m=[];if(ws.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?eA(p,t):p;for(let E of m)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,eKe(l,p,o,d))}}function eKe(e,t,r,i){let o=L.createIdentifier(t),s=S1(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,Iue(s));default:return R.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Iue(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function TO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function AO(e,t){if(kc(e))Ca(e.moduleSpecifier)&&t(e);else if(nd(e))bh(e.moduleReference)&&ss(e.moduleReference.expression)&&t(e);else if(Ll(e))for(let r of e.declarationList.declarations)r.initializer&&Su(r.initializer,!0)&&t(r)}function xue(e,t,r,i,o,s,l){let d,p=[];return t.forEach(h=>{h.escapedName==="default"?d=L.createIdentifier($z(h)):p.push(h.name)}),k7(e,d,p,r,i,o,s,l)}function k7(e,t,r,i,o,s,l,d){let p=xv(oi(e.path),i),h=D3(o.getCompilerOptions(),e,e.fileName,p,QT(o,s));if(l){let m=r.map(y=>L.createImportSpecifier(!1,void 0,L.createIdentifier(y)));return gde(t,m,h,d)}else{R.assert(!t,"No default import should exist");let m=r.map(y=>L.createBindingElement(void 0,void 0,y));return m.length?ZRe(L.createObjectBindingPattern(m),void 0,Iue(S1(h,d))):void 0}}function ZRe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function Rue(e,t,r,i){return va(t,o=>{if(tDe(o)&&!eDe(e,o,i)&&wue(o,s=>{var l;return r.has(R.checkDefined((l=ri(s,b_))==null?void 0:l.symbol))})){let s=rKe(al(o),i);if(s)return s}return al(o)})}function eDe(e,t,r,i){var o;return r?!td(t)&&$r(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Cue(t).some(s=>e.symbol.exports.has(fl(s)))}function Due(e,t,r,i){switch(t.kind){case 272:tKe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:nKe(e,t,r,i);break;default:R.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function tKe(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 nKe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Su(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 tDe(e){return R.assert(Yi(e.parent),"Node parent should be a SourceFile"),aDe(e)||Ll(e)}function rKe(e,t){return t?[iKe(e)]:oKe(e)}function iKe(e){let t=Am(e)?bo([L.createModifier(95)],b0(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=jT(e)?Dv(e):void 0;return L.updateClassDeclaration(e,bo(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 R.fail();default:return R.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function oKe(e){return[e,...Cue(e).map(nDe)]}function nDe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function Cue(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 R.fail("Can't export an ExpressionStatement");default:return R.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function IO(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&&aKe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,o,s),al(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=sKe(e.name,r);return i?ZRe(i,e.type,Iue(t),e.parent.flags):void 0}default:return R.assertNever(e,`Unexpected import kind ${e.kind}`)}}function aKe(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 sKe(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 Nue(e){return td(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(ta(e.parent.parent,t=>Oi(t)||Xa(t)));default:return e}}function Pue(e,t,r,i,o){if(!eDe(e,t,o,r))if(o)td(t)||i.insertExportModifier(e,t);else{let s=Cue(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(nDe))}}function Mue(e,t,r,i){let o=t.getTypeChecker();if(i){let s=w7(e,i.all,o),l=oi(e.fileName),d=qN(e.fileName);return Yr(l,uKe(pKe(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function lKe(e){let{file:t}=e,r=Jz(T1(e)),{statements:i}=t,o=ql(i,h=>h.end>r.pos);if(o===-1)return;let s=i[o],l=sDe(t,s);l&&(o=l.start);let d=ql(i,h=>h.end>=r.end,o);d!==-1&&r.end<=i[d].getStart()&&d--;let p=sDe(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 xO(e){let t=lKe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return LG(o,cKe,(l,d)=>{for(let p=l;p!!(t.transformFlags&2))}function cKe(e){return!dKe(e)&&!vm(e)}function dKe(e){switch(e.kind){case 272:return!0;case 271:return!$r(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Su(t.initializer,!0));default:return!1}}function w7(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,d=m(Lue(t));d&&s.set(d,!1);for(let y of t)wue(y,E=>{o.add(R.checkDefined(td(E)?r.getSymbolAtLocation(E.expression.left):E.symbol,"Need a symbol here"))});let p=new Set;for(let y of t)kue(y,r,(E,S)=>{if(E.declarations){if(i.has(bd(E,r))){p.add(E);return}for(let A of E.declarations)if(rDe(A)){let N=s.get(E);s.set(E,(N===void 0||N)&&S)}else O7(A)&&fKe(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)zo(t,y)||(d&&y.transformFlags&2&&p.delete(d),kue(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,rDe)?S:void 0}}function uKe(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 pKe(e,t){return uh(e,$z)||uh(t,$z)||"newFile"}function kue(e,t,r){e.forEachChild(function i(o){if(Fe(o)&&!kg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,mE(o))}else o.forEachChild(i)})}function wue(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 zl(e.declarationList.declarations,r=>oDe(r.name,t));case 244:{let{expression:r}=e;return pr(r)&&Gl(r)===1?t(e):void 0}}}function rDe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return iDe(e);case 208:return Oi(e.parent.parent)&&iDe(e.parent.parent);default:return!1}}function iDe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&Su(e.initializer,!0)}function O7(e){return aDe(e)&&Yi(e.parent)||Oi(e)&&Yi(e.parent.parent.parent)}function fKe(e){return Oi(e)?e.parent.parent.parent:e.parent}function oDe(e,t){switch(e.kind){case 80:return t(ta(e.parent,r=>Oi(r)||Xa(r)));case 207:case 206:return zl(e.elements,r=>jc(r)?void 0:oDe(r.name,t));default:return R.assertNever(e,`Unexpected name kind ${e.kind}`)}}function aDe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function mKe(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)tDe(y)&&$r(y,32)&&wue(y,E=>{var S;let A=b_(E)?(S=d.get(E.symbol.escapedName))==null?void 0:S.declarations:void 0,N=zl(A,D=>$l(D)?D:Jd(D)?ri(D.parent.parent,$l):void 0);N&&N.moduleSpecifier&&m.set(N,(m.get(N)||new Set).add(E))});for(let[y,E]of Oo(m))if(y.exportClause&&xf(y.exportClause)&&Nn(y.exportClause.elements)){let S=y.exportClause.elements,A=Vr(S,N=>Gr(bd(N.symbol,h).declarations,D=>O7(D)&&E.has(D))===void 0);if(Nn(A)===0){e.deleteNode(i,y),l.add(y);continue}Nn(A)$l(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function sDe(e,t){if(Fs(t)){let r=t.symbol.declarations;if(r===void 0||Nn(r)<=1||!zo(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=ql(e.statements,p=>p.end>=o.end),d=ql(e.statements,p=>p.end>=i.end);return{toMove:s,start:d,end:l}}}function _Ke(e,t,r){let i=new Set;for(let o of e.imports){let s=AN(o);if(kc(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(bd(d,r))}if(qF(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(bd(d,r))}}for(let o of t)kue(o,r,s=>{let l=bd(s,r);l.valueDeclaration&&Gn(l.valueDeclaration)===e&&i.add(l)});return i}var W7,ZX,eY,hKe=bt({"src/services/refactors/moveToFile.ts"(){"use strict";Gse(),ai(),BRe(),W7="Move to file",ZX=ko(f.Move_to_file),eY={name:"Move to file",description:ZX,kind:"refactor.move.file"},lg(W7,{kinds:[eY.kind],getAvailableActions:function(t,r){let i=xO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:W7,description:ZX,actions:[eY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:W7,description:ZX,actions:[{...eY,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Xe:Xe},getEditsForAction:function(t,r,i){R.assert(r===W7,"Wrong refactor invoked");let o=R.checkDefined(xO(t)),{host:s,program:l}=t;R.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return F0(d)||zI(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?$Re(ko(f.Cannot_move_statements_to_the_selected_file)):{edits:fr.ChangeTracker.with(t,h=>YHe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:$Re(ko(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function gKe(e){let{file:t,startPosition:r,program:i}=e;return cDe(t,r,i)?[{name:tY,description:Oue,actions:[Wue]}]:Xe}function yKe(e){let{file:t,startPosition:r,program:i}=e,o=cDe(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 R.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(d===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:fr.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],d)})};function h(E){let S=E[E.length-1];return Fs(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 dr(L.createTupleTypeNode(S),gt(S,A=>!!Nn(DR(A)))?0:1)}function y(E){R.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=LO(A);N.length&&hE(S,[{text:`* ${N.split(` `).map(D=>` * ${D}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function iDe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function oDe(e,t,r){let i=so(e,t),o=Fn(i,iDe);if(!o||Fs(o)&&o.body&&qw(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)||!iDe(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,Fue,zue,_Ke=bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";si(),Th(),tY="Convert overload list to single signature",Fue=ko(f.Convert_overload_list_to_single_signature),zue={name:tY,description:Fue,kind:"refactor.rewrite.function.overloadList"},sg(tY,{kinds:[zue.kind],getEditsForAction:mKe,getAvailableActions:fKe})}});function hKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=aDe(t,r,i==="invoked");return o?Vg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:nY,description:Bue,actions:[{...O7,notApplicableReason:o.error},{...AO,notApplicableReason:o.error}]}]:Xe:[{name:nY,description:Bue,actions:[o.addBraces?O7:AO]}]:Xe}function gKe(e,t){let{file:r,startPosition:i}=e,o=aDe(r,i);R.assert(o&&!Vg(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===AO.name&&l){let m=s||L.createVoidZero();p=n7(m)?L.createParenthesizedExpression(m):m,cO(l,p,r,3,!1),fD(l,p,r,3,!1),nM(l,p,r,3,!1)}else R.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,m=>{m.replaceNode(r,d.body,p)})}}function aDe(e,t,r=!0,i){let o=so(e,t),s=Wp(o);if(!s)return{error:ko(f.Could_not_find_a_containing_arrow_function)};if(!zs(s))return{error:ko(f.Containing_function_is_not_an_arrow_function)};if(!(!of(s,o)||of(s.body,o)&&!r)){if(NE(O7.kind,i)&&ht(s.body))return{func:s,addBraces:!0,expression:s.body};if(NE(AO.kind,i)&&Uo(s.body)&&s.body.statements.length===1){let l=Ga(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,Bue,O7,AO,yKe=bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";si(),Th(),nY="Add or remove braces in an arrow function",Bue=ko(f.Add_or_remove_braces_in_an_arrow_function),O7={name:"Add braces to arrow function",description:ko(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},AO={name:"Remove braces from arrow function",description:ko(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},sg(nY,{kinds:[AO.kind],getEditsForAction:gKe,getAvailableActions:hKe})}}),vKe={},bKe=bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";_Ke(),yKe()}});function EKe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=lDe(t,r,i);if(!s)return Xe;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(NE(xO.kind,o)){let m=l||zs(d)&&Oi(d.parent)?void 0:ko(f.Could_not_convert_to_named_function);m?h.push({...xO,notApplicableReason:m}):p.push(xO)}if(NE(IO.kind,o)){let m=!l&&zs(d)?void 0:ko(f.Could_not_convert_to_anonymous_function);m?h.push({...IO,notApplicableReason:m}):p.push(IO)}if(NE(RO.kind,o)){let m=Ls(d)?void 0:ko(f.Could_not_convert_to_arrow_function);m?h.push({...RO,notApplicableReason:m}):p.push(RO)}return[{name:Gue,description:uDe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function SKe(e,t){let{file:r,startPosition:i,program:o}=e,s=lDe(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case IO.name:d.push(...xKe(e,l));break;case xO.name:let p=IKe(l);if(!p)return;d.push(...RKe(e,l,p));break;case RO.name:if(!Ls(l))return;d.push(...DKe(e,l));break;default:return R.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function sDe(e){let t=!1;return e.forEachChild(function r(i){if(sD(i)){t=!0;return}!di(i)&&!Ec(i)&&!Ls(i)&&Bo(i,r)}),t}function lDe(e,t,r){let i=so(e,t),o=r.getTypeChecker(),s=AKe(e,o,i.parent);if(s&&!sDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Wp(i);if(l&&(Ls(l)||zs(l))&&!of(l.body,i)&&!sDe(l.body)&&!o.containsArgumentsReference(l))return Ls(l)&&dDe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function TKe(e){return Oi(e)||Vc(e)&&e.declarations.length===1}function AKe(e,t,r){if(!TKe(r))return;let o=(Oi(r)?r:Ga(r.declarations)).initializer;if(o&&(zs(o)||Ls(o)&&!dDe(e,t,o)))return o}function cDe(e){if(ht(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return at(t,e),bp(t),cO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function IKe(e){let t=e.parent;if(!Oi(t)||!mN(t))return;let r=t.parent,i=r.parent;if(!(!Vc(r)||!Pl(i)||!Fe(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function xKe(e,t){let{file:r}=e,i=cDe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return pr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function RKe(e,t,r){let{file:i}=e,o=cDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;rX(d);let h=eE(s)&32|du(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?pr.ChangeTracker.with(e,E=>E.replaceNode(i,d,y)):pr.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,d,y)})}function DKe(e,t){let{file:r}=e,o=t.body.statements[0],s;CKe(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 pr.ChangeTracker.with(e,d=>d.replaceNode(r,t,l))}function CKe(e,t){return e.statements.length===1&&Sm(t)&&!!t.expression}function dDe(e,t,r){return!!r.name&&ks.Core.isSymbolReferencedInFile(r.name,t,e)}var Gue,uDe,IO,xO,RO,NKe=bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";si(),Th(),Gue="Convert arrow function or function expression",uDe=ko(f.Convert_arrow_function_or_function_expression),IO={name:"Convert to anonymous function",description:ko(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},xO={name:"Convert to named function",description:ko(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},RO={name:"Convert to arrow function",description:ko(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},sg(Gue,{kinds:[IO.kind,xO.kind,RO.kind],getEditsForAction:SKe,getAvailableActions:EKe})}}),PKe={},MKe=bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";NKe()}});function LKe(e){let{file:t,startPosition:r}=e;return cu(t)||!mDe(t,r,e.program.getTypeChecker())?Xe:[{name:F7,description:Hue,actions:[Kue]}]}function kKe(e,t){R.assert(t===F7,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=mDe(r,i,o.getTypeChecker());if(!d||!s)return;let p=OKe(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,m=>wKe(r,o,l,m,d,p))}:{edits:[]}}function wKe(e,t,r,i,o,s){let l=s.signature,d=mn(yDe(o,t,r),m=>al(m));if(l){let m=mn(yDe(l,t,r),y=>al(y));h(l,m)}h(o,d);let p=zC(s.functionCalls,(m,y)=>el(m.pos,y.pos));for(let m of p)if(m.arguments&&m.arguments.length){let y=al(KKe(o,m.arguments),!0);i.replaceNodeRange(Gn(m),Ga(m.arguments),Ka(m.arguments),y,{leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Ga(m.parameters),Ka(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Include})}}function OKe(e,t,r){let i=qKe(e),o=Nl(e)?JKe(e):[],s=_0([...i,...o],Iy),l=t.getTypeChecker(),d=va(s,y=>ks.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(d);return oo(p.declarations,y=>zo(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=Nl(e),w=mn(i,j=>Vue(j,l));for(let j of y){if(j.kind===ks.EntryKind.Span){S.valid=!1;continue}if(zo(w,m(j.node))){if(BKe(j.node.parent)){S.signature=j.node.parent;continue}let Y=fDe(j);if(Y){S.functionCalls.push(Y);continue}}let K=Vue(j.node,l);if(K&&zo(w,K)){let Y=jue(j);if(Y){S.declarations.push(Y);continue}}if(zo(A,m(j.node))||qP(j.node)){if(pDe(j))continue;let B=jue(j);if(B){S.declarations.push(B);continue}let ce=fDe(j);if(ce){S.functionCalls.push(ce);continue}}if(D&&zo(N,m(j.node))){if(pDe(j))continue;let B=jue(j);if(B){S.declarations.push(B);continue}let ce=WKe(j);if(ce){E.accessExpressions.push(ce);continue}if(Sc(e.parent)){let z=FKe(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 Vue(e,t){let r=PO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Tl(o)&6))return o}}function pDe(e){let t=e.node;if(Qu(t.parent)||yh(t.parent)||Zc(t.parent)||Yv(t.parent)||Kd(t.parent)||Ml(t.parent))return t}function jue(e){if(Hd(e.node.parent))return e.node}function fDe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ii(r,v_);if(i&&i.expression===t)return i;break;case 211:let o=ii(r,wr);if(o&&o.parent&&o.name===t){let l=ii(o.parent,v_);if(l&&l.expression===o)return l}break;case 212:let s=ii(r,Xs);if(s&&s.parent&&s.argumentExpression===t){let l=ii(s.parent,v_);if(l&&l.expression===s)return l}break}}}function WKe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=ii(r,wr);if(i&&i.expression===t)return i;break;case 212:let o=ii(r,Xs);if(o&&o.expression===t)return o;break}}}function FKe(e){let t=e.node;if(qT(t)===2||f6(t.parent))return t}function mDe(e,t,r){let i=lD(e,t),o=cie(i);if(!zKe(i)&&o&&GKe(o,r)&&of(o,i)&&!(o.body&&of(o.body,i)))return o}function zKe(e){let t=Fn(e,zx);if(t){let r=Fn(t,i=>!zx(i));return!!r&&Fs(r)}return!1}function BKe(e){return hh(e)&&(mu(e.parent)||gp(e.parent))}function GKe(e,t){var r;if(!VKe(e.parameters,t))return!1;switch(e.kind){case 262:return _De(e)&&W7(e,t);case 174:if(Ma(e.parent)){let i=Vue(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)?_De(e.parent)&&W7(e,t):hDe(e.parent.parent)&&W7(e,t);case 218:case 219:return hDe(e.parent)}return!1}function W7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function _De(e){return e.name?!0:!!dD(e,90)}function VKe(e,t){return UKe(e)>=vDe&&oo(e,r=>jKe(r,t))}function jKe(e,t){if(Jh(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Fe(e.name)}function hDe(e){return Oi(e)&&Kx(e)&&Fe(e.name)&&!e.type}function Uue(e){return e.length>0&&sD(e[0].name)}function UKe(e){return Uue(e)?e.length-1:e.length}function gDe(e){return Uue(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function HKe(e,t){return Fe(t)&&Xf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function KKe(e,t){let r=gDe(e.parameters),i=Jh(Ka(r)),o=i?t.slice(0,r.length-1):t,s=mn(o,(d,p)=>{let h=rY(r[p]),m=HKe(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(Ka(r)),L.createArrayLiteralExpression(d));s.push(p)}return L.createObjectLiteralExpression(s,!1)}function yDe(e,t,r){let i=t.getTypeChecker(),o=gDe(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(Uue(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),Jh(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||Jh(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 iM(D,N,t,r)}function A(N){if(Jh(N)){let D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function rY(e){return Xf(e.name)}function JKe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[R.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 qKe(e){switch(e.kind){case 262:return e.name?[e.name]:[R.checkDefined(dD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=R.checkDefined(hs(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 R.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var F7,vDe,Hue,Kue,XKe=bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";si(),Th(),F7="Convert parameters to destructured object",vDe=1,Hue=ko(f.Convert_parameters_to_destructured_object),Kue={name:F7,description:Hue,kind:"refactor.rewrite.parameters.toDestructured"},sg(F7,{kinds:[Kue.kind],getEditsForAction:kKe,getAvailableActions:LKe})}}),YKe={},$Ke=bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";XKe()}});function QKe(e){let{file:t,startPosition:r}=e,i=bDe(t,r),o=Jue(i),s=Da(o),l={name:iY,description:oY,actions:[]};return s&&e.triggerReason!=="invoked"?Xe:Yh(o)&&(s||ur(o)&&que(o).isValidConcatenation)?(l.actions.push(aY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...aY,notApplicableReason:ko(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):Xe}function bDe(e,t){let r=so(e,t),i=Jue(r);return!que(i).isValidConcatenation&&Fu(i.parent)&&ur(i.parent.parent)?i.parent.parent:r}function ZKe(e,t){let{file:r,startPosition:i}=e,o=bDe(r,i);switch(t){case oY:return{edits:eJe(e,o)};default:return R.fail("invalid action")}}function eJe(e,t){let r=Jue(t),i=e.file,o=rJe(que(r),i),s=$b(i.text,r.end);if(s){let l=s[s.length-1],d={pos:s[0].pos,end:l.end};return pr.ChangeTracker.with(e,p=>{p.deleteRange(i,d),p.replaceNode(i,r,o)})}else return pr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function tJe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Jue(e){return Fn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(ur(r.parent)&&tJe(r.parent));default:return"quit"}})||e}function que(e){let t=l=>{if(!ur(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 nJe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function EDe(e){let t=KI(e)||YU(e)?-2:-1;return uc(e).slice(1,t)}function SDe(e,t){let r=[],i="",o="";for(;e{TDe(K);let B=Y===E.templateSpans.length-1,ce=K.literal.text+(B?A:""),z=EDe(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 TDe(e){let t=e.getSourceFile();nM(e,e.expression,t,3,!1),cO(e.expression,e.expression,t,3,!1)}function iJe(e){return Fu(e)&&(TDe(e),e=e.expression),e}var iY,oY,aY,ADe,IDe,oJe=bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";si(),Th(),iY="Convert to template string",oY=ko(f.Convert_to_template_string),aY={name:iY,description:oY,kind:"refactor.rewrite.string"},sg(iY,{kinds:[aY.kind],getEditsForAction:ZKe,getAvailableActions:QKe}),ADe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();nM(e[s],o,t,3,!1),r(s,o)}}}}),aJe={},sJe=bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";oJe()}});function lJe(e){let t=xDe(e,e.triggerReason==="invoked");return t?Vg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:z7,description:cY,actions:[{...dY,notApplicableReason:t.error}]}]:Xe:[{name:z7,description:cY,actions:[dY]}]:Xe}function cJe(e,t){let r=xDe(e);return R.assert(r&&!Vg(r),"Expected applicable refactor info"),{edits:pr.ChangeTracker.with(e,o=>gJe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function sY(e){return ur(e)||PR(e)}function dJe(e){return Qc(e)||Sm(e)||Pl(e)}function lY(e){return sY(e)||dJe(e)}function xDe(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?_Je(l):mJe(l,p),m=h&&lY(h)?hJe(h):void 0;if(!m)return{error:ko(f.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return PR(m)?uJe(m,y):pJe(m)}function uJe(e,t){let r=e.condition,i=Yue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ko(f.Could_not_find_convertible_access_expression)};if((wr(r)||Fe(r))&&Xue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(ur(r)){let o=RDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}}function pJe(e){if(e.operatorToken.kind!==56)return{error:ko(f.Can_only_convert_logical_AND_access_chains)};let t=Yue(e.right);if(!t)return{error:ko(f.Could_not_find_convertible_access_expression)};let r=RDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}function RDe(e,t){let r=[];for(;ur(t)&&t.operatorToken.kind===56;){let o=Xue(ms(e),ms(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Xue(e,t);return i&&r.push(i),r.length>0?r:void 0}function Xue(e,t){if(!(!Fe(t)&&!wr(t)&&!Xs(t)))return fJe(e,t)?t:void 0}function fJe(e,t){for(;(ra(e)||wr(e)||Xs(e))&&DO(e)!==DO(t);)e=e.expression;for(;wr(e)&&wr(t)||Xs(e)&&Xs(t);){if(DO(e)!==DO(t))return!1;e=e.expression,t=t.expression}return Fe(e)&&Fe(t)&&e.getText()===t.getText()}function DO(e){if(Fe(e)||Qp(e))return e.getText();if(wr(e))return DO(e.name);if(Xs(e))return DO(e.argumentExpression)}function mJe(e,t){for(;e.parent;){if(lY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function _Je(e){for(;e.parent;){if(lY(e)&&!lY(e.parent))return e;e=e.parent}}function hJe(e){if(sY(e))return e;if(Pl(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 Yue(e){if(e=ms(e),ur(e))return Yue(e.left);if((wr(e)||Xs(e)||ra(e))&&!Ud(e))return e}function DDe(e,t,r){if(wr(t)||Xs(t)||ra(t)){let i=DDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ra(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(wr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Xs(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function gJe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=DDe(t,s,l);h&&(wr(h)||Xs(h)||ra(h))&&(ur(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,yJe=bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";si(),Th(),z7="Convert to optional chain expression",cY=ko(f.Convert_to_optional_chain_expression),dY={name:z7,description:cY,kind:"refactor.rewrite.expression.optionalChain"},sg(z7,{kinds:[dY.kind],getEditsForAction:cJe,getAvailableActions:lJe})}}),vJe={},bJe=bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";yJe()}});function CDe(e){let t=e.kind,r=$ue(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 NE(vD.kind,t)&&A.push({name:gD,description:vD.description,actions:[{...vD,notApplicableReason:S(r.errors)}]}),NE(yD.kind,t)&&A.push({name:gD,description:yD.description,actions:[{...yD,notApplicableReason:S(r.errors)}]}),A}let o=xJe(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(NE(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(NE(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:ko(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:gD,description:ko(f.Extract_function),actions:[d]}),p.length?E.push({name:gD,description:ko(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:gD,description:ko(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 NDe(e,t){let i=$ue(e.file,E1(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return R.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),AJe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return R.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),IJe(i,e,l)}R.fail("Unrecognized action name")}function $ue(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Yc(e,t.start,i,Ed.cannotExtractEmpty)]};let o=i===0&&r,s=ode(e,t.start),l=Bz(e,Jl(t)),d=s&&l&&r?EJe(s,l,e):t,p=o?KJe(s):oO(s,e,d),h=o?p:oO(l,e,d),m=0,y;if(!p||!h)return{errors:[Yc(e,t.start,i,Ed.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Yc(e,t.start,i,Ed.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Yc(e,t.start,i,Ed.cannotExtractRange)]};if(p!==h){if(!MDe(p.parent))return{errors:[Yc(e,t.start,i,Ed.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:[Yc(e,t.start,i,Ed.cannotExtractRange)]}}if(Sm(p)&&!p.expression)return{errors:[Yc(e,t.start,i,Ed.cannotExtractRange)]};let E=A(p),S=N(E)||w(E);if(S)return{errors:S};return{targetRange:{range:SJe(E),facts:m,thisNode:y}};function A(j){if(Sm(j)){if(j.expression)return j.expression}else if(Pl(j)||Vc(j)){let K=Pl(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(Oi(j)&&j.initializer)return j.initializer;return j}function N(j){if(Fe(Qc(j)?j.expression:j))return[Pr(j,Ed.cannotExtractIdentifier)]}function D(j,K){let Y=j;for(;Y!==K;){if(Y.kind===172){na(Y)&&(m|=32);break}else if(Y.kind===169){Wp(Y).kind===176&&(m|=32);break}else Y.kind===174&&na(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={})),R.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),R.assert(!Jm(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(j)&&!(Yh(j)&&PDe(j))&&!npe(j))return[Pr(j,Ed.statementOrExpressionExpected)];if(j.flags&33554432)return[Pr(j,Ed.cannotExtractAmbientBlock)];let Y=id(j);Y&&D(j,Y);let B,ce=4,z;if(ee(j),m&8){let me=wu(j,!1,!1);(me.kind===262||me.kind===174&&me.parent.kind===210||me.kind===218)&&(m|=16)}return B;function ee(me){if(B)return!0;if(Hd(me)){let q=me.kind===260?me.parent.parent:me;if(Qr(q,32))return(B||(B=[])).push(Pr(me,Ed.cannotExtractExportedEntity)),!0}switch(me.kind){case 272:return(B||(B=[])).push(Pr(me,Ed.cannotExtractImport)),!0;case 277:return(B||(B=[])).push(Pr(me,Ed.cannotExtractExportedEntity)),!0;case 108:if(me.parent.kind===213){let q=id(me);if(q===void 0||q.pos=t.start+t.length)return(B||(B=[])).push(Pr(me,Ed.cannotExtractSuper)),!0}else m|=8,y=me;break;case 219:Bo(me,function q(J){if(sD(J))m|=8,y=me;else{if(di(J)||Xo(J)&&!zs(J))return!1;Bo(J,q)}});case 263:case 262:Yi(me.parent)&&me.parent.externalModuleIndicator===void 0&&(B||(B=[])).push(Pr(me,Ed.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:Pv(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),Bo(me,ee),z.pop();break}case 252:case 251:{let q=me.label;q?zo(z,q.escapedText)||(B||(B=[])).push(Pr(me,Ed.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(me.kind===252?1:2)||(B||(B=[])).push(Pr(me,Ed.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ce&4?m|=1:(B||(B=[])).push(Pr(me,Ed.cannotExtractRangeContainingConditionalReturnStatement));break;default:Bo(me,ee);break}ce=ge}}}function EJe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function SJe(e){if(Hi(e))return[e];if(Yh(e))return Qc(e.parent)?[e.parent]:e;if(npe(e))return e}function Que(e){return zs(e)?wV(e.body):Fs(e)||Yi(e)||N_(e)||di(e)}function TJe(e){let t=Yy(e.range)?Ga(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=id(t);if(i){let o=Fn(t,Fs);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Fn(t,i=>Fs(i)).parent),Que(t)&&(r.push(t),t.kind===312))return r}function AJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:d}}=Zue(e,t);return R.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),MJe(o,i[r],s[r],d,e,t)}function IJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:d}}=Zue(e,t);R.assert(!l[r].length,"The extraction went missing? How?"),R.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 LJe(p,i[r],s[r],e.facts,t)}function xJe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Zue(e,t);return r.map((l,d)=>{let p=RJe(l),h=DJe(l),m=Fs(l)?CJe(l):di(l)?NJe(l):PJe(l),y,E;return m===1?(y=ng(ko(f.Extract_to_0_in_1_scope),[p,"global"]),E=ng(ko(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=ng(ko(f.Extract_to_0_in_1_scope),[p,"module"]),E=ng(ko(f.Extract_to_0_in_1_scope),[h,"module"])):(y=ng(ko(f.Extract_to_0_in_1),[p,m]),E=ng(ko(f.Extract_to_0_in_1),[h,m])),d===0&&!di(l)&&(E=ng(ko(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[d]},constantExtraction:{description:E,errors:o[d]}}})}function Zue(e,t){let{file:r}=t,i=TJe(e),o=UJe(e,r),s=HJe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function RJe(e){return Fs(e)?"inner function":di(e)?"method":"function"}function DJe(e){return di(e)?"readonly field":"constant"}function CJe(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:R.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function NJe(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 PJe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function MJe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,d){let p=d.program.getTypeChecker(),h=ns(d.program.getCompilerOptions()),m=wd.createImportAdder(d.file,d.program,d.preferences,d.host),y=t.getSourceFile(),E=QT(di(t)?"newMethod":"newFunction",y),S=ir(t),A=L.createIdentifier(E),N,D=[],w=[],j;r.forEach((Ie,De)=>{let Le;if(!S){let be=p.getTypeOfSymbolAtLocation(Ie.symbol,Ie.node);be=p.getBaseTypeOfLiteralType(be),Le=wd.typeToAutoImportableTypeNode(p,m,be,t,h,1)}let Et=L.createParameterDeclaration(void 0,void 0,De,void 0,Le);D.push(Et),Ie.usage===2&&(j||(j=[])).push(Ie),w.push(L.createIdentifier(De))});let Y=Oo(i.values(),Ie=>({type:Ie,declaration:wJe(Ie,d.startPosition)})).sort(OJe),B=Y.length===0?void 0:to(Y,({declaration:Ie})=>Ie),ce=B!==void 0?B.map(Ie=>L.createTypeReferenceNode(Ie.name,void 0)):void 0;if(ht(e)&&!S){let Ie=p.getContextualType(e);N=p.typeToTypeNode(Ie,t,1)}let{body:z,returnValueProperty:ee}=FJe(e,s,j,o,!!(l.facts&1));bp(z);let me,ge=!!(l.facts&16);if(di(t)){let Ie=S?[]:[L.createModifier(123)];l.facts&32&&Ie.push(L.createModifier(126)),l.facts&4&&Ie.push(L.createModifier(134)),me=L.createMethodDeclaration(Ie.length?Ie: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=pr.ChangeTracker.fromContext(d),J=(Yy(l.range)?Ka(l.range):l.range).end,re=GJe(J,t);re?q.insertNodeBefore(d.file,re,me,!0):q.insertNodeAtEndOfScope(d.file,t,me),m.writeFixes(q);let pe=[],xe=WJe(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)),tpe(e)&&(fe=L.createJsxExpression(void 0,fe)),s.length&&!j)if(R.assert(!ee,"Expected no returnValueProperty"),R.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ie=s[0];pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(al(Ie.name),void 0,al(Ie.type),fe)],Ie.parent.flags)))}else{let Ie=[],De=[],Le=s[0].parent.flags,Et=!1;for(let ze of s){Ie.push(L.createBindingElement(void 0,void 0,al(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&&cr(be,1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(Ie),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)))}ee&&pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ee,void 0,ve(N))],1)));let Ie=epe(s,j);ee&&Ie.unshift(L.createShorthandPropertyAssignment(ee)),Ie.length===1?(R.assert(!ee,"Shouldn't have returnValueProperty here"),pe.push(L.createExpressionStatement(L.createAssignment(Ie[0].name,fe))),l.facts&1&&pe.push(L.createReturnStatement())):(pe.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(Ie),fe))),ee&&pe.push(L.createReturnStatement(L.createIdentifier(ee))))}else l.facts&1?pe.push(L.createReturnStatement(fe)):Yy(l.range)?pe.push(L.createExpressionStatement(fe)):pe.push(fe);Yy(l.range)?q.replaceNodeRangeWithNodes(d.file,Ga(l.range),Ka(l.range),pe):q.replaceNodeWithNodes(d.file,l.range,pe);let ne=q.getChanges(),Ce=(Yy(l.range)?Ga(l.range):l.range).getSourceFile().fileName,Ge=lO(ne,Ce,E,!1);return{renameFilename:Ce,renameLocation:Ge,edits:ne};function ve(Ie){if(Ie===void 0)return;let De=al(Ie),Le=De;for(;NT(Le);)Le=Le.type;return Kv(Le)&&Vr(Le.types,Et=>Et.kind===157)?De:L.createUnionTypeNode([De,L.createKeywordTypeNode(157)])}}function LJe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),d=wr(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ki(e.name)&&!tE(e.name)?e.name.text:QT(di(t)?"newProperty":"newLocal",l),p=ir(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=zJe(ms(e),r);({variableType:h,initializer:m}=N(h,m)),bp(m);let y=pr.ChangeTracker.fromContext(o);if(di(t)){R.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));tpe(e)&&(j=L.createJsxExpression(void 0,j));let K=e.pos,Y=VJe(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=kJe(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,Que)){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=jJe(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);tpe(e)&&(Y=L.createJsxExpression(void 0,Y)),y.replaceNode(o.file,e,Y)}}}let E=y.getChanges(),S=e.getSourceFile().fileName,A=lO(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(!Ls(w)&&!zs(w)||w.typeParameters)return{variableType:D,initializer:w};let j=s.getTypeAtLocation(e),K=rh(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,zs(w))w=L.updateArrowFunction(w,Am(e)?v0(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=Jc(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)?v0(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 kJe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&Vc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function wJe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Uo(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,d=!1,p=L.createNodeArray(Uo(e)?e.statements.slice(0):[Hi(e)?e:L.createReturnStatement(ms(e))]);if(s||i.size){let m=zn(p,h,Hi).slice();if(s&&!o&&Hi(e)){let y=epe(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=epe(t,r);return m.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,Qe(m.expression,h,ht)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{let y=d;d=d||Fs(m)||di(m);let E=i.get(rs(m).toString()),S=E?al(E):Sn(m,h,void 0);return d=y,S}}}function zJe(e,t){return t.size?r(e):e;function r(i){let o=t.get(rs(i).toString());return o?al(o):Sn(i,r,void 0)}}function BJe(e){if(Fs(e)){let t=e.body;if(Uo(t))return t.statements}else{if(N_(e)||Yi(e))return e.statements;if(di(e))return e.members;}return Xe}function GJe(e,t){return Vr(BJe(t),r=>r.pos>=e&&Fs(r)&&!Nl(r))}function VJe(e,t){let r=t.members;R.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&&!Vo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?R.fail():i}function jJe(e,t){R.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Que(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(MDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&MR(i)?(R.assert(pP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):R.checkDefined(o,"prevStatement failed to get set")}R.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function epe(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 Yy(e){return So(e)}function UJe(e,t){return Yy(e.range)?{pos:Ga(e.range).getStart(t),end:Ka(e.range).getEnd()}:e.range}function HJe(e,t,r,i,o,s){let l=new Map,d=[],p=[],h=[],m=[],y=[],E=new Map,S=[],A,N=Yy(e.range)?e.range.length===1&&Qc(e.range[0])?e.range[0].expression:void 0:e.range,D;if(N===void 0){let re=e.range,pe=Ga(re).getStart(),xe=Ka(re).end;D=Yc(i,pe,xe-pe,Ed.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(D=Pr(N,Ed.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),di(re)&&ir(re)&&pe.push(Pr(re,Ed.cannotExtractToJSClass)),zs(re)&&!Uo(re.body)&&pe.push(Pr(re,Ed.cannotExtractToExpressionArrowFunction)),m.push(pe)}let w=new Map,j=Yy(e.range)?L.createBlock(e.range):e.range,K=Yy(e.range)?Ga(e.range):e.range,Y=B(K);if(z(j),Y&&!Yy(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 Dv(xe)){let ne=o.getTypeAtLocation(fe);l.has(ne.id.toString())&&re.set(ne.id.toString(),ne)}R.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){let re=ZV(t[0],t[0].parent)?t[0]:ph(t[0]);Bo(re,ge)}for(let re=0;re0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){let ne=Yy(e.range)?e.range[0]:e.range;m[re].push(Pr(ne,Ed.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[re])&&h[re].push(Pr(e.thisNode,Ed.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))}),R.assert(Yy(e.range)||S.length===0,"No variable declarations expected if something was extracted"),xe&&!Yy(e.range)){let ne=Pr(e.range,Ed.cannotWriteInExpression);h[re].push(ne),m[re].push(ne)}else if(fe&&re>0){let ne=Pr(fe,Ed.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[re].push(ne),m[re].push(ne)}else if(A){let ne=Pr(A,Ed.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)&&Dv(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),Pc(re))z(re.left,2),z(re.right);else if(bre(re))z(re.operand,2);else if(wr(re)||Xs(re))Bo(re,z);else if(Fe(re)){if(!re.parent||Au(re.parent)&&re!==re.parent.left||wr(re.parent)&&re!==re.parent.expression)return;ee(re,pe,Xh(re))}else Bo(re,z)}function ee(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&&!Yw(r,Ge.getStart(),Ge.end)){if(e.facts&2&&pe===2){let ve=Pr(re,Ed.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ie of h)Ie.push(ve);for(let Ie of m)Ie.push(ve)}for(let ve=0;vefe.symbol===pe);if(xe)if(Oi(xe)){let fe=xe.symbol.id.toString();E.has(fe)||(S.push(xe),E.set(fe,!0))}else A=A||xe}Bo(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 KJe(e){return Fn(e,t=>t.parent&&PDe(t)&&!ur(t.parent))}function PDe(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 MDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function tpe(e){return npe(e)||(og(e)||OT(e)||q0(e))&&(og(e.parent)||q0(e.parent))}function npe(e){return Da(e)&&e.parent&&M_(e.parent)}var gD,yD,vD,Ed,rpe,JJe=bt({"src/services/refactors/extractSymbol.ts"(){"use strict";si(),Th(),gD="Extract Symbol",yD={name:"Extract Constant",description:ko(f.Extract_constant),kind:"refactor.extract.constant"},vD={name:"Extract Function",description:ko(f.Extract_function),kind:"refactor.extract.function"},sg(gD,{kinds:[yD.kind,vD.kind],getEditsForAction:NDe,getAvailableActions:CDe}),(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")})(Ed||(Ed={})),rpe=(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))(rpe||{})}}),LDe={};xa(LDe,{Messages:()=>Ed,RangeFacts:()=>rpe,getRangeToExtract:()=>$ue,getRefactorActionsToExtractSymbol:()=>CDe,getRefactorEditsToExtractSymbol:()=>NDe});var qJe=bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";JJe()}}),B7,uY,pY,XJe=bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";si(),Th(),B7="Generate 'get' and 'set' accessors",uY=ko(f.Generate_get_and_set_accessors),pY={name:B7,description:uY,kind:"refactor.rewrite.property.generateAccessors"},sg(B7,{kinds:[pY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=wd.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);R.assert(i&&!Vg(i),"Expected applicable refactor info");let o=wd.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)+lO(o,s,l.text,To(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return Xe;let t=wd.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Vg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:B7,description:uY,actions:[{...pY,notApplicableReason:t.error}]}]:Xe:[{name:B7,description:uY,actions:[pY]}]:Xe}})}}),YJe={},$Je=bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";XJe()}});function QJe(e){let t=kDe(e);if(t&&!Vg(t))return{renameFilename:void 0,renameLocation:void 0,edits:pr.ChangeTracker.with(e,i=>eqe(e.file,i,t.declaration,t.returnTypeNode))}}function ZJe(e){let t=kDe(e);return t?Vg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:G7,description:fY,actions:[{...V7,notApplicableReason:t.error}]}]:Xe:[{name:G7,description:fY,actions:[V7]}]:Xe}function eqe(e,t,r,i){let o=hs(r,22,e),s=zs(r)&&o===void 0,l=s?Ga(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 kDe(e){if(ir(e.file)||!NE(V7.kind,e.kind))return;let t=zu(e.file,e.startPosition),r=Fn(t,l=>Uo(l)||l.parent&&zs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":tqe(l));if(!r||!r.body||r.type)return{error:ko(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=nqe(i,r);if(!o)return{error:ko(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function tqe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function nqe(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,rqe=bt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";si(),Th(),G7="Infer function return type",fY=ko(f.Infer_function_return_type),V7={name:G7,description:fY,kind:"refactor.rewrite.function.returnType"},sg(G7,{kinds:[V7.kind],getEditsForAction:QJe,getAvailableActions:ZJe})}}),iqe={},oqe=bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";rqe()}}),T1={};xa(T1,{addExportToChanges:()=>Lue,addExports:()=>Cue,addNewFileToTsconfig:()=>Aue,addOrRemoveBracesToArrowFunction:()=>vKe,containsJsx:()=>wue,convertArrowFunctionOrFunctionExpression:()=>PKe,convertParamsToDestructuredObject:()=>YKe,convertStringOrTemplateLiteral:()=>aJe,convertToOptionalChainExpression:()=>vJe,createNewFileName:()=>kue,createOldFileImportsFromTargetFile:()=>Due,deleteMovedStatements:()=>P7,deleteUnusedImports:()=>Nue,deleteUnusedOldImports:()=>Iue,doChangeNamedToNamespaceOrDefault:()=>VRe,extractSymbol:()=>LDe,filterImport:()=>SO,forEachImportInStatement:()=>EO,generateGetAccessorAndSetAccessor:()=>YJe,getApplicableRefactors:()=>gHe,getEditsForRefactor:()=>yHe,getStatementsToMove:()=>TO,getTopLevelDeclarationStatement:()=>QX,getUsageInfo:()=>L7,inferFunctionReturnType:()=>iqe,isRefactorErrorInfo:()=>Vg,isTopLevelDeclaration:()=>k7,makeImportOrRequire:()=>M7,moduleSpecifierFromImport:()=>bO,nameOfTopLevelDeclaration:()=>Mue,refactorKindBeginsWith:()=>NE,registerRefactor:()=>sg,updateImportsInOtherFiles:()=>xue});var Th=bt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";ORe(),IHe(),NHe(),FHe(),zHe(),GHe(),HHe(),pKe(),bKe(),MKe(),$Ke(),sJe(),bJe(),qJe(),$Je(),oqe()}});function wDe(e,t,r,i){let o=ipe(e,t,r,i);R.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 sqe(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((og(p)||OT(p))&&(l=!0),mP(p)&&(l=!1),Fe(p)&&!l&&!uqe(p)&&!XN(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=lqe(m,qT(p));if(y!==void 0){let E=0;p.parent&&(qa(p.parent)||lpe.get(p.parent.kind)===y)&&p.parent.name===p&&(E=1),y===6&&WDe(p)&&(y=9),y=cqe(s,p,y);let S=m.valueDeclaration;if(S){let A=eE(S),N=Cy(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)&&dqe(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)}}}Bo(p,d),l=h}d(t)}function lqe(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&&qa(i)&&(i=ODe(i)),i&&lpe.get(i.kind)}function cqe(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)||pqe(t))return r===9?11:10}}return r}function dqe(e,t){return qa(e)&&(e=ODe(e)),Oi(e)?(!Yi(e.parent.parent.parent)||Y0(e.parent))&&e.getSourceFile()===t:Ec(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function ODe(e){for(;;)if(qa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function uqe(e){let t=e.parent;return t&&(yh(t)||Qu(t)||Yv(t))}function pqe(e){for(;WDe(e);)e=e.parent;return ra(e.parent)&&e.parent.expression===e}function WDe(e){return Au(e.parent)&&e.parent.right===e||wr(e.parent)&&e.parent.name===e}var ope,ape,spe,lpe,FDe=bt({"src/services/classifier2020.ts"(){"use strict";si(),ope=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ope||{}),ape=(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))(ape||{}),spe=(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))(spe||{}),lpe=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 zDe(e,t,r,i){let o=e2(e)?new yY(e,t,r):e===80?new bY(80,t,r):e===81?new EY(81,t,r):new ppe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function fqe(e,t){if(!e2(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(mqe(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=ME.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(BDe))){let i=new Set;for(let o of e){let s=GDe(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=ME.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(BDe))){let i=new Set;for(let o of e){let s=GDe(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 GDe(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(EN(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 _qe(){return{getNodeConstructor:()=>yY,getTokenConstructor:()=>ppe,getIdentifierConstructor:()=>bY,getPrivateIdentifierConstructor:()=>EY,getSourceFileConstructor:()=>JDe,getSymbolConstructor:()=>UDe,getTypeConstructor:()=>HDe,getSignatureConstructor:()=>KDe,getSourceMapSourceConstructor:()=>qDe}}function CO(e){let t=!0;for(let i in e)if(As(e,i)&&!VDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(As(e,i)){let o=VDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function VDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function NO(e){return e?mn(e,t=>t.text).join(""):""}function H7(){return{target:1,jsx:1}}function _Y(){return wd.getSupportedErrorCodes()}function jDe(e,t,r){e.version=r,e.scriptSnapshot=t}function K7(e,t,r,i,o,s){let l=$k(e,cD(t),r,o,s);return jDe(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 jDe(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 cpe(e,t=Kde(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 XDe(e),l,d,p=0,h=e.getCancellationToken?new $De(e.getCancellationToken()):YDe,m=e.getCurrentDirectory();poe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(k){e.log&&e.log(k)}let E=pR(e),S=Cd(E),A=aue({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>m,getProgram:j,fileExists:ea(e,e.fileExists),readFile:ea(e,e.readFile),getDocumentPositionMapper:ea(e,e.getDocumentPositionMapper),getSourceFileLike:ea(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(R.assert(o!==2),e.getProjectVersion){let Po=e.getProjectVersion();if(Po){if(d===Po&&!((k=e.hasChangedAutomaticTypeDirectiveNames)!=null&&k.call(e)))return;d=Po}}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||jm,Dt=ea(e,e.hasInvalidatedLibResolutions)||jm,Kt=ea(e,e.hasChangedAutomaticTypeDirectiveNames),En=(ie=e.getProjectReferences)==null?void 0:ie.call(e),wn,Bn={getSourceFile:ws,getSourceFileByPath:$l,getCancellationToken:()=>h,getCanonicalFileName:S,useCaseSensitiveFileNames:()=>E,getNewLine:()=>Wy(Ne),getDefaultLibFileName:Po=>e.getDefaultLibFileName(Po),writeFile:Ja,getCurrentDirectory:()=>m,fileExists:Po=>e.fileExists(Po),readFile:Po=>e.readFile&&e.readFile(Po),getSymlinkCache:ea(e,e.getSymlinkCache),realpath:ea(e,e.realpath),directoryExists:Po=>Hm(Po,e),getDirectories:Po=>e.getDirectories?e.getDirectories(Po):[],readDirectory:(Po,ss,Bs,_l,sd)=>(R.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Po,ss,Bs,_l,sd)),onReleaseOldSourceFile:xn,onReleaseParsedCommandLine:Io,hasInvalidatedResolutions:It,hasInvalidatedLibResolutions:Dt,hasChangedAutomaticTypeDirectiveNames:Kt,trace:ea(e,e.trace),resolveModuleNames:ea(e,e.resolveModuleNames),getModuleResolutionCache:ea(e,e.getModuleResolutionCache),createHash:ea(e,e.createHash),resolveTypeReferenceDirectives:ea(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ea(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ea(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ea(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ea(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode},gi=Bn.getSourceFile,{getSourceFileWithCache:xi}=Pw(Bn,Po=>nl(Po,m,S),(...Po)=>gi.call(Bn,...Po));Bn.getSourceFile=xi,(H=e.setCompilerHost)==null||H.call(e,Bn);let er={useCaseSensitiveFileNames:E,fileExists:Po=>Bn.fileExists(Po),readFile:Po=>Bn.readFile(Po),directoryExists:Po=>Bn.directoryExists(Po),getDirectories:Po=>Bn.getDirectories(Po),realpath:Bn.realpath,readDirectory:(...Po)=>Bn.readDirectory(...Po),trace:Bn.trace,getCurrentDirectory:Bn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ja},Fr=t.getKeyForCompilationSettings(Ne),ho=new Set;if(mJ(l,We,Ne,(Po,ss)=>e.getScriptVersion(ss),Po=>Bn.fileExists(Po),It,Dt,Kt,Ri,En)){Bn=void 0,wn=void 0,ho=void 0;return}l=iz({rootNames:We,options:Ne,host:Bn,oldProgram:l,projectReferences:En}),Bn=void 0,wn=void 0,ho=void 0,A.clearCache(),l.getTypeChecker();return;function Ri(Po){let ss=nl(Po,m,S),Bs=wn?.get(ss);if(Bs!==void 0)return Bs||void 0;let _l=e.getParsedCommandLine?e.getParsedCommandLine(Po):Kr(Po);return(wn||(wn=new Map)).set(ss,_l||!1),_l}function Kr(Po){let ss=ws(Po,100);if(ss)return ss.path=nl(Po,m,S),ss.resolvedPath=ss.path,ss.originalFileName=ss.fileName,nw(ss,er,_o(ai(Po),m),void 0,_o(Po,m))}function Io(Po,ss,Bs){var _l;e.getParsedCommandLine?(_l=e.onReleaseParsedCommandLine)==null||_l.call(e,Po,ss,Bs):ss&&xn(ss.sourceFile,Bs)}function xn(Po,ss){let Bs=t.getKeyForCompilationSettings(ss);t.releaseDocumentWithKey(Po.resolvedPath,Bs,Po.scriptKind,Po.impliedNodeFormat)}function ws(Po,ss,Bs,_l){return $l(Po,nl(Po,m,S),ss,Bs,_l)}function $l(Po,ss,Bs,_l,sd){R.assert(Bn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let mo=e.getScriptSnapshot(Po);if(!mo)return;let la=eX(Po,e),ld=e.getScriptVersion(Po);if(!sd){let Ss=l&&l.getSourceFileByPath(ss);if(Ss){if(la===Ss.scriptKind||ho.has(Ss.resolvedPath))return t.updateDocumentWithKey(Po,ss,e,Fr,mo,ld,la,Bs);t.releaseDocumentWithKey(Ss.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ss.scriptKind,Ss.impliedNodeFormat),ho.add(Ss.resolvedPath)}}return t.acquireDocumentWithKey(Po,ss,e,Fr,mo,ld,la,Bs)}}function j(){if(o===2){R.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 Kt=Ne(Dt);if(R.assertIsDefined(Kt),ie.has(Dt)||ks.isDeclarationOfSymbol(Kt,ue)){ie.add(Dt),Dt.isDefinition=!0;let En=Zz(Dt,A,ea(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 R.assertIsDefined(En),H.getSymbolAtLocation(En)}let Kt=Zz(Dt,A,ea(e,e.fileExists));if(Kt&&ie.has(Kt)){let En=Ne(Kt);if(En)return H.getSymbolAtLocation(En)}}}function Ne(It){let Dt=l.getSourceFile(It.fileName);if(!Dt)return;let Kt=zu(Dt,It.textSpan.start);return ks.Core.getAdjustedNode(Kt,{use:ks.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 ee(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&&kc.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&&kc.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=zu(H,ie);if(ue===H)return;let We=l.getTypeChecker(),Ne=xe(ue),It=vqe(Ne,We);if(!It||We.isUnknownSymbol(It)){let Bn=fe(H,Ne,ie)?We.getTypeAtLocation(Ne):void 0;return Bn&&{kind:"",kindModifiers:"",textSpan:Ru(Ne,H),displayParts:We.runWithCancellationToken(h,gi=>aO(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:Kt,documentation:En,tags:wn}=We.runWithCancellationToken(h,Bn=>$y.getSymbolDisplayPartsDocumentationAndSymbolKind(Bn,It,H,XT(Ne),Ne));return{kind:Dt,kindModifiers:$y.getSymbolModifiers(We,It),textSpan:Ru(Ne,H),displayParts:Kt,documentation:En,tags:wn}}function xe(k){return U0(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||Xm(k.parent)?k.parent:k}function fe(k,ie,H){switch(ie.kind){case 80:return!Eq(ie)&&!Sq(ie)&&!Cg(ie.parent);case 211:case 166:return!Hy(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(),ks.getImplementationsAtPosition(l,h,l.getSourceFiles(),N(k),ie)}function ve(k,ie,H){let ue=ma(k);R.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 Ie(k,ie,H,ue,We){D();let Ne=N(k),It=zz(zu(Ne,ie));if(vB.nodeIsEligibleForRename(It))if(Fe(It)&&(P_(It.parent)||J0(It.parent))&&dR(It.escapedText)){let{openingElement:Dt,closingElement:Kt}=It.parent.parent;return[Dt,Kt].map(En=>{let wn=Ru(En.tagName,Ne);return{fileName:Ne.fileName,textSpan:wn,...ks.toContextSpan(wn,Ne,En.parent)}})}else{let Dt=af(Ne,We??Cf),Kt=typeof We=="boolean"?We:We?.providePrefixAndSuffixTextForRename;return Le(It,ie,{findInStrings:H,findInComments:ue,providePrefixAndSuffixTextForRename:Kt,use:ks.FindReferencesUse.Rename},(En,wn,Bn)=>ks.toRenameLocation(En,wn,Bn,Kt||!1,Dt))}}function De(k,ie){return D(),Le(zu(N(k),ie),ie,{use:ks.FindReferencesUse.References},ks.toReferenceEntry)}function Le(k,ie,H,ue){D();let We=H&&H.use===ks.FindReferencesUse.Rename?l.getSourceFiles().filter(Ne=>!l.isSourceFileDefaultLibrary(Ne)):l.getSourceFiles();return ks.findReferenceOrRenameEntries(l,h,We,k,ie,H,ue)}function Et(k,ie){return D(),ks.findReferencedSymbols(l,h,l.getSourceFiles(),N(k),ie)}function be(k){return D(),ks.Core.getReferencesForFileName(k,l,l.getSourceFiles()).map(ks.toReferenceEntry)}function ze(k,ie,H,ue=!1,We=!1){D();let Ne=H?[N(H)]:l.getSourceFiles();return uRe(Ne,l.getTypeChecker(),h,k,ie,ue,We)}function tt(k,ie,H){D();let ue=N(k),We=e.getCustomTransformers&&e.getCustomTransformers();return tce(l,ue,!!ie,h,We,H)}function Ft(k,ie,{triggerReason:H}=Cf){D();let ue=N(k);return KO.getSignatureHelpItems(l,ue,ie,H,h)}function _t(k){return s.getCurrentSourceFile(k)}function Je(k,ie,H){let ue=s.getCurrentSourceFile(k),We=zu(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)||tde(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 ft(k,ie){let H=s.getCurrentSourceFile(k);return TY.spanInSourceFileAtLocation(H,ie)}function Zt(k){return _Re(s.getCurrentSourceFile(k),h)}function en(k){return hRe(s.getCurrentSourceFile(k),h)}function Dn(k,ie,H){return D(),(H||"original")==="2020"?wDe(l,h,N(k),ie):Ude(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):ipe(l,h,N(k),ie)}function pn(k,ie){return Hde(h,s.getCurrentSourceFile(k),ie)}function Yt(k,ie){return xX(h,s.getCurrentSourceFile(k),ie)}function qt(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&&hs(ue.parent,We,H);return Ne?[Ru(ue,H),Ru(Ne,H)].sort((It,Dt)=>It.start-Dt.start):Xe}function Li(k,ie,H){let ue=Js(),We=CO(H),Ne=s.getCurrentSourceFile(k);y("getIndentationAtPosition: getCurrentSourceFile: "+(Js()-ue)),ue=Js();let It=kc.SmartIndenter.getIndentation(ie,Ne,We);return y("getIndentationAtPosition: computeIndentation : "+(Js()-ue)),It}function Eo(k,ie,H,ue){let We=s.getCurrentSourceFile(k);return kc.formatSelection(ie,H,We,kc.getFormatContext(CO(ue),e))}function Qn(k,ie){return kc.formatDocument(s.getCurrentSourceFile(k),kc.getFormatContext(CO(ie),e))}function Ur(k,ie,H,ue){let We=s.getCurrentSourceFile(k),Ne=kc.getFormatContext(CO(ue),e);if(!Hy(We,ie))switch(H){case"{":return kc.formatOnOpeningCurly(ie,We,Ne);case"}":return kc.formatOnClosingCurly(ie,We,Ne);case";":return kc.formatOnSemicolon(ie,We,Ne);case` -`:return kc.formatOnEnter(ie,We,Ne)}return[]}function Er(k,ie,H,ue,We,Ne=Cf){D();let It=N(k),Dt=dc(ie,H),Kt=kc.getFormatContext(We,e);return va(_0(ue,Iy,el),En=>(h.throwIfCancellationRequested(),wd.getFixes({errorCode:En,sourceFile:It,span:Dt,program:l,host:e,cancellationToken:h,formatContext:Kt,preferences:Ne})))}function on(k,ie,H,ue=Cf){D(),R.assert(k.type==="file");let We=N(k.fileName),Ne=kc.getFormatContext(H,e);return wd.getAllFixes({fixId:ie,sourceFile:We,program:l,host:e,cancellationToken:h,formatContext:Ne,preferences:ue})}function Ye(k,ie,H=Cf){D(),R.assert(k.type==="file");let ue=N(k.fileName),We=kc.getFormatContext(ie,e),Ne=k.mode??(k.skipDestructiveCodeActions?"SortAndCombine":"All");return Rm.organizeImports(ue,We,e,l,H,Ne)}function Wt(k,ie,H,ue=Cf){return qde(j(),k,ie,e,kc.getFormatContext(H,e),ue,A)}function In(k,ie){let H=typeof k=="string"?ie:k;return So(H)?Promise.all(H.map(ue=>li(ue))):li(H)}function li(k){let ie=H=>nl(H,m,S);return R.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?kc.getFormatContext(ue,e).options:void 0;return ME.getDocCommentTemplateAtPosition(qy(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(lde(ue,ie))return H===123;if(Nq(ue,ie))return!1;switch(H){case 39:case 34:case 96:return!Hy(ue,ie)}return!0}function Ao(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)&&og(ue.parent)?ue.parent:void 0;if(We&<(We))return{newText:``};let Ne=ue.kind===32&&i1(ue.parent)?ue.parent.parent:UI(ue)&&q0(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(q0(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,Kt=It.getStart(H)+2;return ie!==Dt&&ie!==Kt?void 0:{ranges:[{start:Dt,length:0},{start:Kt,length:0}],wordPattern:We}}else{let Ne=Fn(ue.parent,xi=>!!(P_(xi)||J0(xi)));if(!Ne)return;R.assert(P_(Ne)||J0(Ne),"tag should be opening or closing element");let It=Ne.parent.openingElement,Dt=Ne.parent.closingElement,Kt=It.tagName.getStart(H),En=It.tagName.end,wn=Dt.tagName.getStart(H),Bn=Dt.tagName.end;return Kt===It.getStart(H)||wn===Dt.getStart(H)||En===It.getEnd()||Bn===Dt.getEnd()||!(Kt<=ie&&ie<=En||wn<=ie&&ie<=Bn)||It.tagName.getText(H)!==Dt.tagName.getText(H)?void 0:{ranges:[{start:Kt,length:En-Kt},{start:wn,length:Bn-wn}],wordPattern:We}}}function za(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}=za(ue,ie),Kt=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])),ho=Bn.exec(Fr);ho&&(En=Math.min(En,ho.index),wn.set(er.toString(),ho.index),Fr.substr(ho.index,xi.length)!==xi&&(Kt=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])},Kt,gi)):Kt?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,Kt=!1,En=H||!1,wn=[],{pos:Bn}=ie,gi=ue!==void 0?ue:Vz(Ne,Bn),xi=gi?"{/*":"/*",er=gi?"*/}":"*/",Fr=gi?"\\{\\/\\*":"\\/\\*",ho=gi?"\\*\\/\\}":"\\*\\/";for(;Bn<=ie.end;){let Pi=Dt.substr(Bn,xi.length)===xi?xi.length:0,Ri=Hy(Ne,Bn+Pi);if(Ri)gi&&(Ri.pos--,Ri.end++),wn.push(Ri.pos),Ri.kind===3&&wn.push(Ri.end),Kt=!0,Bn=Ri.end+1;else{let Kr=Dt.substring(Bn,ie.end).search(`(${Fr})|(${ho})`);En=H!==void 0?H:En||!bde(Dt,Bn,Kr===-1?ie.end:Bn+Kr),Bn=Kr===-1?ie.end+1:Bn+Kr+er.length}}if(En||!Kt){((We=Hy(Ne,ie.pos))==null?void 0:We.kind)!==2&&bv(wn,ie.pos,el),bv(wn,ie.end,el);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}=za(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=Hy(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!EE(k.tagName,ie.tagName)||og(H)&&EE(k.tagName,H.openingElement.tagName)&<(H)}function Rt({closingFragment:k,parent:ie}){return!!(k.flags&262144)||q0(ie)&&Rt(ie)}function se(k,ie,H){let ue=s.getCurrentSourceFile(k),We=kc.getRangeOfEnclosingComment(ue,ie);return We&&(!H||We.kind===3)?tb(We):void 0}function ke(k,ie){D();let H=N(k);h.throwIfCancellationRequested();let ue=H.text,We=[];if(ie.length>0&&!Kt(H.fileName)){let En=It(),wn;for(;wn=En.exec(ue);){h.throwIfCancellationRequested();let Bn=3;R.assert(wn.length===ie.length+Bn);let gi=wn[1],xi=wn.index+gi.length;if(!Hy(H,xi))continue;let er;for(let ho=0;ho"("+Ne(Ri.text)+")").join("|")+")",er=/(?:$|\*\/)/.source,Fr=/(?:.*?)/.source,ho="("+xi+Fr+")",Pi=gi+ho+er;return new RegExp(Pi,"gim")}function Dt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function Kt(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:kc.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 pt(k,ie,H=Cf){D();let ue=N(k),We=R.checkDefined(l.getSourceFiles()),Ne=jN(k),It=TO(G(ue,ie,H,Cf)),Dt=wue(It?.all),Kt=to(We,En=>{let wn=jN(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:kue(ue,l,e,It),files:Kt}}function Bt(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,zu(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:zu(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:zu(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:ee,getSuggestionDiagnostics:me,getCompilerOptionsDiagnostics:ge,getSyntacticClassifications:pn,getSemanticClassifications:Dn,getEncodedSyntacticClassifications:Yt,getEncodedSemanticClassifications:Kn,getCompletionsAtPosition:q,getCompletionEntryDetails:J,getCompletionEntrySymbol:re,getSignatureHelpItems:Ft,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ne,getDefinitionAndBoundSpan:he,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:Ce,getReferencesAtPosition:De,findReferences:Et,getFileReferences:be,getDocumentHighlights:ve,getNameOrDottedNameSpan:Je,getBreakpointStatementAtPosition:ft,getNavigateToItems:ze,getRenameInfo:st,getSmartSelectionRange:Tt,findRenameLocations:Ie,getNavigationBarItems:Zt,getNavigationTree:en,getOutliningSpans:qt,getTodoComments:ke,getBraceMatchingAtPosition:uo,getIndentationAtPosition:Li,getFormattingEditsForRange:Eo,getFormattingEditsForDocument:Qn,getFormattingEditsAfterKeystroke:Ur,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:$i,getJsxClosingTagAtPosition:Ao,getLinkedEditingRangeAtPosition:ua,getSpanOfEnclosingComment:se,getCodeFixesAtPosition:Er,getCombinedCodeFix:on,applyCodeActionCommand:In,organizeImports:Ye,getEditsForFileRename:Wt,getEmitOutput:tt,getNonBoundSourceFile:_t,getProgram:j,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Y,getApplicableRefactors:He,getEditsForRefactor:Bt,getMoveToRefactoringFileSuggestions:pt,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:fpe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:QDe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.Syntactic`)});break;default:R.assertNever(o)}return Nt}function gY(e){return e.nameTable||hqe(e),e.nameTable}function hqe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Fe(i)&&!Sq(i)&&i.escapedText||Qp(i)&&gqe(i)){let o=AN(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(Bo(i,r),kp(i))for(let o of i.jsDoc)Bo(o,r)})}function gqe(e){return Lg(e)||e.parent.kind===283||bqe(e)||U2(e)}function PO(e){let t=yqe(e);return t&&(Ma(t.parent)||X0(t.parent))?t:void 0}function yqe(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 vqe(e,t){let r=PO(e);if(r){let i=t.getContextualType(r.parent),o=i&&J7(r,t,i,!1);if(o&&o.length===1)return Ga(o)}return t.getSymbolAtLocation(e)}function J7(e,t,r,i){let o=rO(e.name);if(!o)return Xe;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:Xe}let s=Ma(e.parent)||X0(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)):_0(l,Iy)}function bqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function dpe(e){if(_d)return Yr(ai(ma(_d.getExecutingFilePath())),KL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var upe,yY,vY,UDe,ppe,bY,EY,HDe,KDe,JDe,qDe,XDe,YDe,$De,SY,fpe,QDe,Eqe=bt({"src/services/services.ts"(){"use strict";si(),mRe(),wRe(),Th(),Uxe(),FDe(),upe="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){R.assert(!Jm(this.pos)&&!Jm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Gn(this)}getStart(e,t){return this.assertHasRealPosition(),aE(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=fqe(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=Qs(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Bo(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 aE(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(){}},UDe=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&&dh(this)&&this.links.target&&dh(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(Mv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=U7(jr(this.declarations,Mv),t)),Nn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Py(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=U7(jr(this.declarations,Py),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(Mv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=mY(jr(this.declarations,Mv),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Py(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=mY(jr(this.declarations,Py),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},ppe=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 yr(this)}},bY.prototype.kind=80,EY=class extends vY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return yr(this)}},EY.prototype.kind=81,HDe=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!!(kr(this)&3)}isClass(){return!!(kr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(kr(this)&4)return this.checker.getTypeArguments(this)}},KDe=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()&&YN(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))}},JDe=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 ys(this,e)}getLineStarts(){return Rg(this)}getPositionOfLineAndCharacter(e,t,r){return XW(Rg(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=Xp();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&&(Xa(l)&&wr(l.expression)?l.expression.name.text:rc(l)?rO(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=Qs(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Bo(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),Bo(s,o);break;case 169:if(!Qr(s,31))break;case 260:case 208:{let m=s;if(Yo(m.name)){Bo(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:Bo(s,o)}}}},qDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ys(this,e)}},XDe=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:kw(nl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||ky(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:ak(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}},YDe={isCancellationRequested:jm,throwIfCancellationRequested:Ja},$De=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=Js();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}},fpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],QDe=[...fpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],doe(_qe())}});function ZDe(e,t,r){let i=[];r=WX(r,i);let o=So(e)?e:[e],s=Iw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=bo(s.diagnostics,i),s}var Sqe=bt({"src/services/transform.ts"(){"use strict";si()}});function Tqe(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,vd):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,sS(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){R.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 ee(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(Gg(ne.parent.parent)!==1)return;case 266:case 263:return o(ne);case 241:if(R0(ne.parent))return o(ne);case 299:return m(Qs(ne.parent.statements));case 269:let he=ne.parent,Ce=Qs(he.clauses);return Ce?m(Qs(Ce.statements)):void 0;case 206:let Ge=ne.parent;return m(Qs(Ge.elements)||Ge);default:if(Ky(ne.parent)){let ve=ne.parent;return o(Qs(ve.properties)||ve)}return m(ne.parent)}}function ge(ne){switch(ne.parent.kind){case 207:let he=ne.parent;return o(Qs(he.elements)||he);default:if(Ky(ne.parent)){let Ce=ne.parent;return o(Qs(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 Xo(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 Aqe=bt({"src/services/breakpoints.ts"(){"use strict";si()}}),TY={};xa(TY,{spanInSourceFileAtLocation:()=>Tqe});var Iqe=bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";Aqe()}});function xqe(e){return(Ls(e)||$c(e))&&au(e)}function eCe(e){return Vo(e)||Oi(e)}function MO(e){return(Ls(e)||zs(e)||$c(e))&&eCe(e.parent)&&e===e.parent.initializer&&Fe(e.parent.name)&&(!!(Cy(e.parent)&2)||Vo(e.parent))}function tCe(e){return Yi(e)||ql(e)||Ec(e)||Ls(e)||Sc(e)||$c(e)||Al(e)||Ul(e)||hh(e)||Zp(e)||hp(e)}function bD(e){return Yi(e)||ql(e)&&Fe(e.name)||Ec(e)||Sc(e)||Al(e)||Ul(e)||hh(e)||Zp(e)||hp(e)||xqe(e)||MO(e)}function nCe(e){return Yi(e)?e:au(e)?e.name:MO(e)?e.parent.name:R.checkDefined(e.modifiers&&Vr(e.modifiers,rCe))}function rCe(e){return e.kind===90}function iCe(e,t){let r=nCe(t);return r&&e.getSymbolAtLocation(r)}function Rqe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Ec(t)||Sc(t))&&!au(t)){let o=t.modifiers&&Vr(t.modifiers,rCe);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=MO(t)?t.parent.name:R.checkDefined(No(t),"Expected call hierarchy item to have a name"),i=Fe(r)?yr(r):Qp(r)?r.text:Xa(r)&&Qp(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=Rw();i=dN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Dqe(e){var t,r,i,o;if(MO(e))return Vo(e.parent)&&di(e.parent.parent)?$c(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=No(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 oCe(e,t){if(t.body)return t;if(Nl(t))return eg(t.parent);if(Ec(t)||Ul(t)){let r=iCe(e,t);return r&&r.valueDeclaration&&Fs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function aCe(e,t){let r=iCe(e,t),i;if(r&&r.declarations){let o=SL(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:Fs(t)?oCe(e,t)??aCe(e,t)??t:aCe(e,t)??t}function sCe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(bD(t))return AY(r,t);if(tCe(t)){let o=Fn(t,bD);return o&&AY(r,o)}if(Lg(t)){if(bD(t.parent))return AY(r,t.parent);if(tCe(t.parent)){let o=Fn(t.parent,bD);return o&&AY(r,o)}return eCe(t.parent)&&t.parent.initializer&&MO(t.parent.initializer)?t.parent.initializer:void 0}if(Nl(t))return bD(t.parent)?t.parent:void 0;if(t.kind===126&&Al(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&MO(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 mpe(e,t){let r=t.getSourceFile(),i=Rqe(e,t),o=Dqe(t),s=aS(t),l=YP(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 Cqe(e){return e!==void 0}function Nqe(e){if(e.kind===ks.EntryKind.Node){let{node:t}=e;if(yq(t,!0,!0)||$ce(t,!0,!0)||Qce(t,!0,!0)||Zce(t,!0,!0)||aD(t)||Tq(t)){let r=t.getSourceFile();return{declaration:Fn(t,bD)||r,range:Fq(t,r)}}}}function lCe(e){return rs(e.declaration)}function Pqe(e,t){return{from:e,fromSpans:t}}function Mqe(e,t){return Pqe(mpe(e,t[0].declaration),mn(t,r=>tb(r.range)))}function Lqe(e,t,r){if(Yi(t)||ql(t)||Al(t))return[];let i=nCe(t),o=jr(ks.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:ks.FindReferencesUse.References},Nqe),Cqe);return o?GC(o,lCe,s=>Mqe(e,s)):[]}function kqe(e,t){function r(o){let s=H0(o)?o.tag:lu(o)?o.tagName:Ms(o)||Al(o)?o:o.expression,l=sCe(e,s);if(l){let d=Fq(s,o.getSourceFile());if(So(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(di(o))for(let s of o.members)s.name&&Xa(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),Bo(o,i);break;case 238:i(o.expression);return}Xh(o)||Bo(o,i)}}return i}function wqe(e,t){gn(e.statements,t)}function Oqe(e,t){!Qr(e,128)&&e.body&&N_(e.body)&&gn(e.body.statements,t)}function Wqe(e,t,r){let i=oCe(e,t);i&&(gn(i.parameters,r),r(i.body))}function Fqe(e,t){t(e.body)}function zqe(e,t){gn(e.modifiers,t);let r=P0(e);r&&t(r.expression);for(let i of e.members)Am(i)&&gn(i.modifiers,t),Vo(i)?t(i.initializer):Nl(i)&&i.body?(gn(i.parameters,t),t(i.body)):Al(i)&&t(i)}function Bqe(e,t){let r=[],i=kqe(e,r);switch(t.kind){case 312:wqe(t,i);break;case 267:Oqe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Wqe(e.getTypeChecker(),t,i);break;case 263:case 231:zqe(t,i);break;case 175:Fqe(t,i);break;default:R.assertNever(t)}return r}function Gqe(e,t){return{to:e,fromSpans:t}}function Vqe(e,t){return Gqe(mpe(e,t[0].declaration),mn(t,r=>tb(r.range)))}function jqe(e,t){return t.flags&33554432||hh(t)?[]:GC(Bqe(e,t),lCe,r=>Vqe(e,r))}var Uqe=bt({"src/services/callHierarchy.ts"(){"use strict";si()}}),A1={};xa(A1,{createCallHierarchyItem:()=>mpe,getIncomingCalls:()=>Lqe,getOutgoingCalls:()=>jqe,resolveCallHierarchyDeclaration:()=>sCe});var Hqe=bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";Uqe()}}),cCe={};xa(cCe,{TokenEncodingConsts:()=>ope,TokenModifier:()=>spe,TokenType:()=>ape,getEncodedSemanticClassifications:()=>ipe,getSemanticClassifications:()=>wDe});var Kqe=bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";FDe()}}),_pe={};xa(_pe,{v2020:()=>cCe});var Jqe=bt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Kqe()}});function Zm(e,t,r){return gpe(e,ZT(r),t,void 0,void 0)}function ia(e,t,r,i,o,s){return gpe(e,ZT(r),t,i,ZT(o),s)}function hpe(e,t,r,i,o,s){return gpe(e,ZT(r),t,i,o&&ZT(o),s)}function gpe(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)ype=void 0,IY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)R.assert(!xY.has(t)),xY.set(t,e)}function qqe(){return ype??(ype=Oo(IY.keys()))}function Xqe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(zo(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 Yqe(e){let t=uCe(e),r=IY.get(String(e.errorCode));return va(r,i=>mn(i.getCodeActions(e),Xqe(i,t)))}function $qe(e){return xY.get(ta(e.fixId,Co)).getAllCodeActions(e)}function ED(e,t){return{changes:e,commands:t}}function dCe(e,t){return{fileName:e,textChanges:t}}function vs(e,t,r){let i=[],o=pr.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 uCe(e))zo(t,i.code)&&r(i)}function uCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...MX(t,e,r)]}var IY,xY,ype,Qqe=bt({"src/services/codeFixProvider.ts"(){"use strict";si(),IY=Xp(),xY=new Map}});function pCe(e,t,r){let i=Wk(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function fCe(e,t){if(!ir(e))return Fn(so(e,t),r=>Wk(r)||hae(r))}var RY,vpe,Zqe=bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";si(),Ta(),RY="addConvertToUnknownForNonOverlappingTypes",vpe=[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:vpe,getCodeActions:function(t){let r=fCe(t.sourceFile,t.span.start);if(r===void 0)return;let i=pr.ChangeTracker.with(t,o=>pCe(o,t.sourceFile,r));return[ia(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=>vs(e,vpe,(t,r)=>{let i=fCe(r.file,r.start);i&&pCe(t,r.file,i)})})}}),eXe=bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";si(),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=pr.ChangeTracker.with(t,o=>{let s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Zm("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function mCe(e,t,r,i){let o=r(s=>tXe(s,e.sourceFile,t,i));return ia(DY,o,f.Add_async_modifier_to_containing_function,DY,f.Add_all_missing_async_modifiers)}function tXe(e,t,r,i){if(i&&i.has(rs(r)))return;i?.add(rs(r));let o=L.replaceModifiers(al(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(Fv(r)|1024)));e.replaceNode(t,r,o)}function _Ce(e,t){if(!t)return;let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Jl(t)?"quit":(zs(o)||Ul(o)||Ls(o)||Ec(o))&&uD(t,Ru(o,e)))}function nXe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ty(r)&&Ty(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,bpe,rXe=bt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";si(),Ta(),DY="addMissingAsync",bpe=[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:bpe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Vr(s.getTypeChecker().getDiagnostics(r,o),nXe(l,i)),p=d&&d.relatedInformation&&Vr(d.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=_Ce(r,p);return h?[mCe(t,h,y=>pr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return vs(e,bpe,(i,o)=>{let s=o.relatedInformation&&Vr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=_Ce(t,s);return l?mCe(e,l,p=>(p(i),[]),r):void 0})}})}});function hCe(e,t,r,i,o){let s=dX(e,r);return s&&iXe(e,t,r,i,o)&&vCe(s)?s:void 0}function gCe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=oXe(t,l,p,d,i);if(h){let m=o(y=>{gn(h.initializers,({expression:E})=>Epe(y,r,l,i,E,s)),s&&h.needsSecondPassForFixAll&&Epe(y,r,l,i,t,s)});return Zm("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function yCe(e,t,r,i,o,s){let l=o(d=>Epe(d,r,e.sourceFile,i,t,s));return ia(CY,l,f.Add_await,CY,f.Fix_all_expressions_possibly_missing_await)}function iXe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return gt(l,({start:d,length:p,relatedInformation:h,code:m})=>Ty(d)&&Ty(p)&&uD({start:d,length:p},r)&&m===t&&!!h&>(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function oXe(e,t,r,i,o){let s=aXe(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=ii(h.valueDeclaration,Oi),y=m&&ii(m.name,Fe),E=uE(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||Qr(E,32)||!y||!vCe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(ks.Core.eachSymbolReferenceInFile(y,o,t,N=>p!==N&&!sXe(N,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function aXe(e,t){if(wr(e.parent)&&Fe(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Fe(e))return{identifiers:[e],isCompleteFix:!0};if(ur(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 sXe(e,t,r,i){let o=wr(e.parent)?e.parent.name:ur(e.parent)?e.parent:e,s=Vr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&zo(NY,s.code)||i.getTypeAtLocation(o).flags&1}function vCe(e){return e.flags&65536||!!Fn(e,t=>t.parent&&zs(t.parent)&&t.parent.body===t||Uo(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function Epe(e,t,r,i,o,s){if(Fk(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(ur(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===Spe&&wr(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))),bCe(e,o.parent.expression,r)}else if(zo(Tpe,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))),bCe(e,o,r)}else{if(s&&Oi(o.parent)&&Fe(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Jb(s,ba(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function bCe(e,t,r){let i=Tc(t.pos,r);i&&a7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var CY,Spe,Tpe,NY,lXe=bt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";si(),Ta(),CY="addMissingAwait",Spe=f.Property_0_does_not_exist_on_type_1.code,Tpe=[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,Spe,...Tpe],Ea({fixIds:[CY],errorCodes:NY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=hCe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>pr.ChangeTracker.with(t,m);return TL([gCe(t,d,i,p,h),yCe(t,d,i,p,h)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return vs(e,NY,(l,d)=>{let p=hCe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return gCe(e,p,d.code,o,h,s)||yCe(e,p,d.code,o,h,s)})}})}});function ECe(e,t,r,i,o){let s=so(t,r),l=Fn(s,h=>Fx(h.parent)?h.parent.initializer===h:cXe(h)?!1:"quit");if(l)return PY(e,l,t,o);let d=s.parent;if(ur(d)&&d.operatorToken.kind===64&&Qc(d.parent))return PY(e,s,t,o);if(fu(d)){let h=i.getTypeChecker();return oo(d.elements,m=>dXe(m,h))?PY(e,d,t,o):void 0}let p=Fn(s,h=>Qc(h.parent)?!0:uXe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return SCe(p,h)?PY(e,p,t,o):void 0}}function PY(e,t,r,i){(!i||Jb(i,t))&&e.insertModifierBefore(r,87,t)}function cXe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function dXe(e,t){let r=Fe(e)?e:Pc(e,!0)&&Fe(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function uXe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function SCe(e,t){return ur(e)?e.operatorToken.kind===28?oo([e.left,e.right],r=>SCe(r,t)):e.operatorToken.kind===64&&Fe(e.left)&&!t.getSymbolAtLocation(e.left):!1}var MY,Ape,pXe=bt({"src/services/codefixes/addMissingConst.ts"(){"use strict";si(),Ta(),MY="addMissingConst",Ape=[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:Ape,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>ECe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ia(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 vs(e,Ape,(r,i)=>ECe(r,i.file,i.start,e.program,t))}})}});function TCe(e,t,r,i){let o=so(t,r);if(!Fe(o))return;let s=o.parent;s.kind===172&&(!i||Jb(i,s))&&e.insertModifierBefore(t,138,s)}var LY,Ipe,fXe=bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";si(),Ta(),LY="addMissingDeclareProperty",Ipe=[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:Ipe,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>TCe(i,t.sourceFile,t.span.start));if(r.length>0)return[ia(LY,r,f.Prefix_with_declare,LY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[LY],getAllCodeActions:e=>{let t=new Set;return vs(e,Ipe,(r,i)=>TCe(r,i.file,i.start,t))}})}});function ACe(e,t,r){let i=so(t,r),o=Fn(i,vd);R.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,xpe,mXe=bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";si(),Ta(),kY="addMissingInvocationForDecorator",xpe=[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:xpe,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>ACe(i,t.sourceFile,t.span.start));return[ia(kY,r,f.Call_decorator_expression,kY,f.Add_to_all_uncalled_decorators)]},fixIds:[kY],getAllCodeActions:e=>vs(e,xpe,(t,r)=>ACe(t,r.file,r.start))})}});function ICe(e,t,r){let i=so(t,r),o=i.parent;if(!To(o))return R.fail("Tried to add a parameter name to a non-parameter: "+R.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);R.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),R.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),d=L.createTypeReferenceNode(o.name,void 0),p=xCe(t,o);for(;p;)d=L.createArrayTypeNode(d),l=p.getEnd(),p=xCe(t,p);let h=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!wk(d)?L.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,Ef(o.getStart(t),l),h)}function xCe(e,t){let r=sS(t.name,t.parent,e);if(r&&r.kind===23&&j0(r.parent)&&To(r.parent.parent))return r.parent.parent}var wY,Rpe,_Xe=bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";si(),Ta(),wY="addNameToNamelessParameter",Rpe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ea({errorCodes:Rpe,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>ICe(i,t.sourceFile,t.span.start));return[ia(wY,r,f.Add_parameter_name,wY,f.Add_names_to_all_parameters_without_names)]},fixIds:[wY],getAllCodeActions:e=>vs(e,Rpe,(t,r)=>ICe(t,r.file,r.start))})}});function hXe(e,t,r){var i,o;let s=RCe(dX(e,t),r);if(!s)return Xe;let{source:l,target:d}=s,p=gXe(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 gXe(e,t,r){return wr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function RCe(e,t){var r;if(e){if(ur(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ra(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=RCe(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 yXe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(_p(i)||Vo(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 Dpe,DCe,vXe=bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";si(),Ta(),Dpe="addOptionalPropertyUndefined",DCe=[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:DCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=hXe(e.sourceFile,e.span,t);if(!r.length)return;let i=pr.ChangeTracker.with(e,o=>yXe(o,r));return[Zm(Dpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Dpe]})}});function CCe(e,t){let r=so(e,t);return ii(To(r.parent)?r.parent.parent:r.parent,NCe)}function NCe(e){return bXe(e)&&PCe(e)}function PCe(e){return Fs(e)?e.parameters.some(PCe)||!e.type&&!!$L(e):!e.type&&!!rE(e)}function MCe(e,t,r){if(Fs(r)&&($L(r)||r.parameters.some(i=>!!rE(i)))){if(!r.typeParameters){let o=d6(r);o.length&&e.insertTypeParameters(t,r,o)}let i=zs(r)&&!hs(r,21,t);i&&e.insertNodeBefore(t,Ga(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=rE(o);s&&e.tryInsertTypeAnnotation(t,o,Qe(s,pS,ji))}if(i&&e.insertNodeAfter(t,Ka(r.parameters),L.createToken(22)),!r.type){let o=$L(r);o&&e.tryInsertTypeAnnotation(t,r,Qe(o,pS,ji))}}else{let i=R.checkDefined(rE(r),"A JSDocType for this declaration should exist");R.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,Qe(i,pS,ji))}}function bXe(e){return Fs(e)||e.kind===260||e.kind===171||e.kind===172}function pS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Xe);case 323:return SXe(e);case 322:return pS(e.type);case 321:return TXe(e);case 325:return AXe(e);case 324:return IXe(e);case 183:return RXe(e);case 329:return EXe(e);default:let t=Sn(e,pS,void 0);return cr(t,1),t}}function EXe(e){let t=L.createTypeLiteralNode(mn(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Fe(r.name)?r.name:r.name.right,pk(r)?L.createToken(58):void 0,r.typeExpression&&Qe(r.typeExpression.type,pS,ji)||L.createKeywordTypeNode(133))));return cr(t,1),t}function SXe(e){return L.createUnionTypeNode([Qe(e.type,pS,ji),L.createTypeReferenceNode("undefined",Xe)])}function TXe(e){return L.createUnionTypeNode([Qe(e.type,pS,ji),L.createTypeReferenceNode("null",Xe)])}function AXe(e){return L.createArrayTypeNode(Qe(e.type,pS,ji))}function IXe(e){return L.createFunctionTypeNode(Xe,e.parameters.map(xXe),e.type??L.createKeywordTypeNode(133))}function xXe(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,Qe(e.type,pS,ji),e.initializer)}function RXe(e){let t=e.typeName,r=e.typeArguments;if(Fe(e.typeName)){if(HF(e))return DXe(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,pS,ji)}return L.createTypeReferenceNode(t,r)}function DXe(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 cr(r,1),r}var OY,Cpe,CXe=bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";si(),Ta(),OY="annotateWithTypeFromJSDoc",Cpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ea({errorCodes:Cpe,getCodeActions(e){let t=CCe(e.sourceFile,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,i=>MCe(i,e.sourceFile,t));return[ia(OY,r,f.Annotate_with_type_from_JSDoc,OY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[OY],getAllCodeActions:e=>vs(e,Cpe,(t,r)=>{let i=CCe(r.file,r.start);i&&MCe(t,r.file,i)})})}});function LCe(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)||Ls(d))e.replaceNode(t,d,m(d));else if(Oi(d)){let y=h(d);if(!y)return;let E=d.parent.parent;Vc(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&&wr(D)&&ur(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&&ur(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 Ms(N)?wr(N)&&FY(N)?!0:Xo(D):oo(N.properties,w=>!!(Ul(w)||iF(w)||mc(w)&&Ls(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=No(me);return!!(ge&&Fe(ge)&&yr(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(Ms(j)&&(Ls(Y)||zs(Y))){let me=af(t,o),ge=NXe(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)&&Ls(me.initializer)&&ce(w,me.initializer,me.name),FY(me)});return}else{if(cu(t)||!wr(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 Ls(ge)?z(me,ge,q):ee(me,ge,q)}function z(me,ge,q){let J=bo(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 ee(me,ge,q){let J=ge.body,re;J.kind===241?re=J:re=L.createBlock([L.createReturnStatement(J)]);let pe=bo(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||!Ls(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 NXe(e,t,r){if(wr(e))return e.name;let i=e.argumentExpression;if(mp(i))return i;if(as(i))return $p(i.text,ns(t))?L.createIdentifier(i.text):HI(i)?L.createStringLiteral(i.text,r===0):i}var zY,Npe,PXe=bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";si(),Ta(),zY="convertFunctionToEs6Class",Npe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ea({errorCodes:Npe,getCodeActions(e){let t=pr.ChangeTracker.with(e,r=>LCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ia(zY,t,f.Convert_function_to_an_ES2015_class,zY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[zY],getAllCodeActions:e=>vs(e,Npe,(t,r)=>LCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function kCe(e,t,r,i){let o=so(t,r),s;if(Fe(o)&&Oi(o.parent)&&o.parent.initializer&&Fs(o.parent.initializer)?s=o.parent.initializer:s=ii(Wp(so(t,r)),wX),!s)return;let l=new Map,d=ir(s),p=LXe(s,i),h=kXe(s,i,l);if(!LX(h,i))return;let m=h.body&&Uo(h.body)?MXe(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(Bo(S,function A(N){if(ra(N)){let D=TD(N,N,y,!1);if(I1())return!0;e.replaceNodeWithNodes(t,S,D)}else if(!Xo(N)&&(Bo(N,A),I1()))return!0}),I1())return}function MXe(e,t){let r=[];return x0(e,i=>{T7(i,t)&&r.push(i)}),r}function LXe(e,t){if(!e.body)return new Set;let r=new Set;return Bo(e.body,function i(o){LO(o,t,"then")?(r.add(rs(o)),gn(o.arguments,i)):LO(o,t,"catch")||LO(o,t,"finally")?(r.add(rs(o)),Bo(o,i)):OCe(o,t)?r.add(rs(o)):Bo(o,i)}),r}function LO(e,t,r){if(!ra(e))return!1;let o=Kw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function wCe(e,t){return(kr(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(wCe(i,r.getPromiseType())||wCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===xy(e.arguments,0))return xy(e.typeArguments,0);if(t===xy(e.arguments,1))return xy(e.typeArguments,1)}else return xy(e.typeArguments,0)}function OCe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function kXe(e,t,r){let i=new Map,o=Xp();return Bo(e,function s(l){if(!Fe(l)){Bo(l,s);return}let d=t.getSymbolAtLocation(l);if(d){let p=t.getTypeAtLocation(l),h=VCe(p,t),m=ba(d).toString();if(h&&!To(l.parent)&&!Fs(l.parent)&&!r.has(m)){let y=Jc(h.parameters),E=y?.valueDeclaration&&To(y.valueDeclaration)&&ii(y.valueDeclaration.name,Fe)||L.createUniqueName("result",16),S=WCe(E,o);r.set(m,S),o.add(E.text,d)}else if(l.parent&&(To(l.parent)||Oi(l.parent)||qa(l.parent))){let y=l.text,E=o.get(y);if(E&&E.some(S=>S!==d)){let S=WCe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(y,d)}else{let S=al(l);r.set(m,cM(S)),o.add(y,d)}}}}),sO(e,!0,s=>{if(qa(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 WCe(e,t){let r=(t.get(e.text)||Xe).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return cM(i)}function I1(){return!X7}function PE(){return X7=!1,Xe}function TD(e,t,r,i,o){if(LO(t,r.checker,"then"))return WXe(t,xy(t.arguments,0),xy(t.arguments,1),r,i,o);if(LO(t,r.checker,"catch"))return BCe(t,xy(t.arguments,0),r,i,o);if(LO(t,r.checker,"finally"))return OXe(t,xy(t.arguments,0),r,i,o);if(wr(t))return TD(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(R.assertNode(Cl(t).parent,wr),FXe(e,t,r,i,o)):PE()}function GY({checker:e},t){if(t.kind===106)return!0;if(Fe(t)&&!il(t)&&yr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function wXe(e){let t=L.createUniqueName(e.identifier.text,16);return cM(t)}function FCe(e,t,r){let i;return r&&!wO(e,t)&&(kO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=wXe(r);t.synthNamesMap.set(s,l)}})):i=cM(L.createUniqueName("result",16),r.types),kpe(i)),i}function zCe(e,t,r,i,o){let s=[],l;if(i&&!wO(e,t)){l=al(kpe(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&&GXe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(al(KCe(o)),void 0,void 0,l)],2))),s}function OXe(e,t,r,i,o){if(!t||GY(r,t))return TD(e,e.expression.expression,r,i,o);let s=FCe(e,r,o),l=TD(e,e.expression.expression,r,!0,s);if(I1())return PE();let d=Mpe(t,i,void 0,void 0,e,r);if(I1())return PE();let p=L.createBlock(l),h=L.createBlock(d),m=L.createTryStatement(p,void 0,h);return zCe(e,r,m,s,o)}function BCe(e,t,r,i,o){if(!t||GY(r,t))return TD(e,e.expression.expression,r,i,o);let s=UCe(t,r),l=FCe(e,r,o),d=TD(e,e.expression.expression,r,!0,l);if(I1())return PE();let p=Mpe(t,i,l,s,e,r);if(I1())return PE();let h=L.createBlock(d),m=L.createCatchClause(s&&al(q7(s)),L.createBlock(p)),y=L.createTryStatement(h,m,void 0);return zCe(e,r,y,l,o)}function WXe(e,t,r,i,o,s){if(!t||GY(i,t))return BCe(e,r,i,o,s);if(r&&!GY(i,r))return PE();let l=UCe(t,i),d=TD(e.expression.expression,e.expression.expression,i,!0,l);if(I1())return PE();let p=Mpe(t,o,s,l,e,i);return I1()?PE():bo(d,p)}function FXe(e,t,r,i,o){if(wO(e,r)){let s=al(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||HCe(e)?[L.createExpressionStatement(t)]:kO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(al(Lpe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(al(q7(e)),void 0,r,t)],2))]}function Ppe(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...VY(cM(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Mpe(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(al(e),void 0,kO(i)?[Lpe(i)]:[]);if(wO(o,s))return Ppe(d,BY(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return PE();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=VCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Uo(E)){let A=[],N=!1;for(let D of E.statements)if(Sm(D))if(N=!0,T7(D,s.checker))A=A.concat(jCe(s,D,t,r));else{let w=S&&D.expression?GCe(s.checker,S,D.expression):D.expression;A.push(...Ppe(w,BY(o,e,s.checker)))}else{if(t&&x0(D,Ay))return PE();A.push(D)}return wO(o,s)?A.map(D=>al(D)):zXe(A,r,s,N)}else{let A=kX(E,s.checker)?jCe(s,L.createReturnStatement(E),t,r):Xe;if(A.length>0)return A;if(S){let N=GCe(s.checker,S,E);if(wO(o,s))return Ppe(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 PE()}}default:return PE()}return Xe}function GCe(e,t,r){let i=al(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function VCe(e,t){let r=t.getSignaturesOfType(e,0);return Qs(r)}function zXe(e,t,r,i){let o=[];for(let s of e)if(Sm(s)){if(s.expression){let l=OCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):kO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Lpe(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(q7(t),void 0,void 0,l)],2)))}}else o.push(al(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 jCe(e,t,r,i){let o=[];return Bo(t,function s(l){if(ra(l)){let d=TD(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else Xo(l)||Bo(l,s)}),o}function UCe(e,t){let r=[],i;if(Fs(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Fe(e)?i=s(e):wr(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=>Gc(m)?[]:[o(m.name)]);return BXe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(ba(m).toString())||cM(p,r)}function l(p){var h;return((h=ii(p,b_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function d(p){return p.original?p.original:p}}function HCe(e){return e?kO(e)?!e.identifier.text:oo(e.elements,HCe):!0}function cM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function BXe(e,t=Xe,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Lpe(e){return e.hasBeenReferenced=!0,e.identifier}function q7(e){return kO(e)?kpe(e):KCe(e)}function KCe(e){for(let t of e.elements)q7(t);return e.bindingPattern}function kpe(e){return e.hasBeenDeclared=!0,e.identifier}function kO(e){return e.kind===0}function GXe(e){return e.kind===1}function wO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(rs(e.original))}var jY,wpe,X7,VXe=bt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";si(),Ta(),jY="convertToAsyncFunction",wpe=[f.This_may_be_converted_to_an_async_function.code],X7=!0,Ea({errorCodes:wpe,getCodeActions(e){X7=!0;let t=pr.ChangeTracker.with(e,r=>kCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return X7?[ia(jY,t,f.Convert_to_async_function,jY,f.Convert_all_to_async_functions)]:[]},fixIds:[jY],getAllCodeActions:e=>vs(e,wpe,(t,r)=>kCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function jXe(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=vN(l);switch(p.kind){case 271:i.replaceNode(e,p,Jy(p.name,void 0,l,o));break;case 213:Su(p,!1)&&i.replaceNode(e,p,L.createPropertyAccessExpression(al(p),"default"));break}}}function UXe(e,t,r,i,o){let s={original:rYe(e),additional:new Set},l=HXe(e,t,s);KXe(e,l,r);let d=!1,p;for(let h of jr(e.statements,Pl)){let m=qCe(e,h,r,t,s,i,o);m&&vF(m,p??(p=new Map))}for(let h of jr(e.statements,m=>!Pl(m))){let m=JXe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function HXe(e,t,r){let i=new Map;return JCe(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 KXe(e,t,r){JCe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function JCe(e,t){e.forEachChild(function r(i){if(wr(i)&&eS(e,i.expression)&&Fe(i.name)){let{parent:o}=i;t(i,ur(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function JXe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return qCe(e,t,i,r,o,s,p),!1;case 244:{let{expression:h}=t;switch(h.kind){case 213:return Su(h,!0)&&i.replaceNode(e,t,Jy(void 0,void 0,h.arguments[0],p)),!1;case 226:{let{operatorToken:m}=h;return m.kind===64&&XXe(e,r,h,i,l,d)}}}default:return!1}}function qCe(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(eS(e,E))return p=!0,dM([]);if(Su(E,!0))return p=!0,tYe(y,E.arguments[0],i,o,s,l);if(wr(E)&&Su(E.expression,!0))return p=!0,qXe(y,E.name.text,E.expression.arguments[0],o,l)}return dM([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 qXe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=UY(t,i);return dM([QCe(s,t,r,o),HY(void 0,e,L.createIdentifier(s))])}case 80:return dM([QCe(e.text,t,r,o)]);default:return R.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function XXe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!wr(l))return!1;if(eS(e,l))if(eS(e,d))i.delete(e,r.parent);else{let p=Ma(d)?YXe(d,s):Su(d,!0)?QXe(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 eS(e,l.expression)&&$Xe(e,r,i,o);return!1}function YXe(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)?eYe(i.name.text,i.initializer,t):void 0;case 174:return Fe(i.name)?$Ce(i.name.text,[L.createToken(95)],i,t):void 0;default:R.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function $Xe(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),Fpe([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else ZXe(t,e,r)}function QXe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:IW;return o.has("export=")?[[Ope(r)],!0]:o.has("default")?o.size>1?[[XCe(r),Ope(r)],!0]:[[Ope(r)],!0]:[[XCe(r)],!1]}function XCe(e){return Fpe(void 0,e)}function Ope(e){return Fpe([L.createExportSpecifier(!1,void 0,"default")],e)}function ZXe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((Ls(t)||zs(t)||$c(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=hs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,hs(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function eYe(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 $Ce(e,i,t,r);case 231:return oYe(e,i,t,r);default:return o()}function o(){return HY(i,L.createIdentifier(e),Wpe(t,r))}}function Wpe(e,t){if(!t||!gt(Oo(t.keys()),i=>of(e,i)))return e;return So(e)?nX(e,!0,r):sO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function tYe(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:ZCe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return dM([Jy(void 0,l,t,s)])}case 207:{let l=UY($pe(t.text,o),i);return dM([Jy(L.createIdentifier(l),void 0,t,s),HY(void 0,al(e),L.createIdentifier(l))])}case 80:return nYe(e,t,r,i,s);default:return R.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function nYe(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(wr(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{R.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:Oo(wC(l.entries(),([m,y])=>L.createImportSpecifier(!1,m===y?void 0:L.createIdentifier(m),L.createIdentifier(y))));return h||(d=!0),dM([Jy(d?al(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 rYe(e){let t=Xp();return YCe(e,r=>t.add(r.text,r)),t}function YCe(e,t){Fe(e)&&iYe(e)&&t(e),e.forEachChild(r=>YCe(r,t))}function iYe(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 $Ce(e,t,r,i){return L.createFunctionDeclaration(bo(t,lS(r.modifiers)),al(r.asteriskToken),e,lS(r.typeParameters),lS(r.parameters),al(r.type),L.converters.convertToFunctionBlock(Wpe(r.body,i)))}function oYe(e,t,r,i){return L.createClassDeclaration(bo(t,lS(r.modifiers)),e,lS(r.typeParameters),lS(r.heritageClauses),Wpe(r.members,i))}function QCe(e,t,r,i){return t==="default"?Jy(L.createIdentifier(e),void 0,r,i):Jy(void 0,[ZCe(t,e)],r,i)}function ZCe(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 Fpe(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function dM(e,t){return{newImports:e,useSitesToUnqualify:t}}var aYe=bt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";si(),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=pr.ChangeTracker.with(e,s=>{if(UXe(t,r.getTypeChecker(),s,ns(r.getCompilerOptions()),af(t,i)))for(let d of r.getSourceFiles())jXe(d,t,r,s,af(d,i))});return[Zm("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function eNe(e,t){let r=Fn(so(e,t),Au);return R.assert(!!r,"Expected position to be owned by a qualified name."),Fe(r.left)?r:void 0}function tNe(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,zpe,sYe=bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";si(),Ta(),KY="correctQualifiedNameToIndexedAccessType",zpe=[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:zpe,getCodeActions(e){let t=eNe(e.sourceFile,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,o=>tNe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ia(KY,r,[f.Rewrite_as_the_indexed_access_type_0,i],KY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[KY],getAllCodeActions:e=>vs(e,zpe,(t,r)=>{let i=eNe(r.file,r.start);i&&tNe(t,r.file,i)})})}});function nNe(e,t){return ii(so(t,e.start).parent,Kd)}function rNe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=lYe(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=>!zo(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:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,d)}}function lYe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=zde(Ru(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return jr(r.elements,o=>{var s;return o===e||((s=Fde(o,i))==null?void 0:s.code)===JY[0]})}var JY,qY,cYe=bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";si(),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=pr.ChangeTracker.with(t,i=>rNe(i,nNe(t.span,t.sourceFile),t));if(r.length)return[ia(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 vs(t,JY,(i,o)=>{let s=nNe(o,t.sourceFile);s&&Em(r,rs(s.parent.parent))&&rNe(i,s,t)})}})}});function iNe(e,t){let{parent:r}=so(e,t);return Qu(r)||Mc(r)&&r.importClause?r:void 0}function oNe(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(ks.Core.eachSymbolReferenceInFile(s.name,o,t,d=>!mE(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(lS(r.modifiers,!0),L.createImportClause(!0,al(o.name,!0),void 0),al(r.moduleSpecifier,!0),al(r.attributes,!0)),L.createImportDeclaration(lS(r.modifiers,!0),L.createImportClause(!0,void 0,al(o.namedBindings,!0)),al(r.moduleSpecifier,!0),al(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(o.namedBindings,Nc(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 Bpe,$7,dYe=bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";si(),Ta(),Bpe=[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:Bpe,getCodeActions:function(t){var r;let i=iNe(t.sourceFile,t.span.start);if(i){let o=pr.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i)),s=i.kind===276&&oNe(i,t.sourceFile,t.program)?pr.ChangeTracker.with(t,d=>Y7(d,t.sourceFile,i.parent.parent.parent)):void 0,l=ia($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)?[Zm($7,s,f.Use_import_type),l]:[l]}},fixIds:[$7],getAllCodeActions:function(t){let r=new Set;return vs(t,Bpe,(i,o)=>{let s=iNe(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)&&oNe(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 aNe(e,t,r,i,o=!1){if(!zT(t))return;let s=pYe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=uYe(t),h=l.getStart(),m="";!d&&l.comment&&(h=sNe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&&zT(d)?(h=t.getStart(),m=""):(h=sNe(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 uYe(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 pYe(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 fYe(i,r);if(r.kind===316)return mYe(i,r)}}function fYe(e,t){let r=lNe(t);if(gt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function mYe(e,t){let r=al(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function lNe(e){let t=e.jsDocPropertyTags;return gt(t)?to(t,i=>{var o;let s=_Ye(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&FT(l)){let h=lNe(l);p=L.createTypeLiteralNode(h)}else l&&(p=al(l));if(p&&s){let h=d?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,h,p)}}):void 0}function _Ye(e){return e.name.kind===80?e.name.text:e.name.right.text}function hYe(e){return kp(e)?va(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>zT(i))}):[]}var XY,Gpe,gYe=bt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";si(),Ta(),XY="convertTypedefToType",Gpe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ea({fixIds:[XY],errorCodes:Gpe,getCodeActions(e){let t=qy(e.host,e.formatContext.options),r=so(e.sourceFile,e.span.start);if(!r)return;let i=pr.ChangeTracker.with(e,o=>aNe(o,r,e.sourceFile,t));if(i.length>0)return[ia(XY,i,f.Convert_typedef_to_TypeScript_type,XY,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>vs(e,Gpe,(t,r)=>{let i=qy(e.host,e.formatContext.options),o=so(r.file,r.start);o&&aNe(t,o,r.file,i,!0)})})}});function cNe(e,t){let r=so(e,t);if(Fe(r)){let i=ta(r.parent.parent,_p),o=r.getText(e);return{container:ta(i.parent,gp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function dNe(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,Vpe,yYe=bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";si(),Ta(),YY="convertLiteralTypeToMappedType",Vpe=[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:Vpe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=cNe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=pr.ChangeTracker.with(t,p=>dNe(p,r,o));return[ia(YY,d,[f.Convert_0_to_1_in_0,l,s],YY,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[YY],getAllCodeActions:e=>vs(e,Vpe,(t,r)=>{let i=cNe(r.file,r.start);i&&dNe(t,r.file,i)})})}});function uNe(e,t){return R.checkDefined(id(so(e,t)),"There should be a containing class")}function pNe(e){return!e.valueDeclaration||!(du(e.valueDeclaration)&2)}function fNe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=vYe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(EW(pNe,D=>!d.has(D.escapedName))),y=l.getTypeAtLocation(i),E=Vr(i.members,D=>Nl(D));y.getNumberIndexType()||A(p,1),y.getStringIndexType()||A(p,0);let S=x1(r,e.program,s,e.host);Yfe(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 vYe(e,t){let r=S_(e);if(!r)return aa();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return aa(o.filter(pNe))}var jpe,$Y,bYe=bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";si(),Ta(),jpe=[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:jpe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=uNe(t,r.start);return to(aR(i),o=>{let s=pr.ChangeTracker.with(e,l=>fNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ia($Y,s,[f.Implement_interface_0,o.getText(t)],$Y,f.Implement_all_unimplemented_interfaces)})},fixIds:[$Y],getAllCodeActions(e){let t=new Map;return vs(e,jpe,(r,i)=>{let o=uNe(i.file,i.start);if(Em(t,rs(o)))for(let s of aR(o))fNe(e,s,i.file,o,r,e.preferences)})}})}});function x1(e,t,r,i,o){return mNe(e,t,!1,r,i,o)}function mNe(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=bNe(w,D.code,D.start,r);!j||!j.length||S(Ga(j))}function E(D,w){let j=R.checkDefined(D.parent),K=p7(D,ns(l)),Y=t.getTypeChecker(),B=Y.getMergedSymbol(yd(D,Y)),ce=gNe(e,B,K,j,!1,t,o,i,s),z=ZY(e,t),ee=_Ne(e,R.checkDefined(ce),t,void 0,!!w,z,o,i);ee&&S({fix:ee,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:ee,importKind:me,addAsTypeOnly:ge}=K,q=String(rs(ee)),J=h.get(q);if(J||h.set(q,J={importClauseOrBindingPattern:ee,defaultImport:void 0,namedImports:new Map}),me===0){let re=J?.namedImports.get(Y);J.namedImports.set(Y,B(re,ge))}else R.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:ee,importKind:me,useRequire:ge,addAsTypeOnly:q}=K,J=ce(ee,me,ge,q);switch(R.assert(J.useRequire===ge,"(Add new) Tried to add an `import` and a `require` for the same module"),me){case 1:R.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:R.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:R.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function B(ee,me){return Math.max(ee??0,me)}function ce(ee,me,ge,q){let J=z(ee,!0),re=z(ee,!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(ee,me){return`${me?1:0}|${ee}`}}function A(D,w){let j;e.imports.length===0&&w!==void 0?j=w:j=af(e,i);for(let Y of d)qpe(D,e,Y);for(let Y of p)RNe(D,e,Y,j);h.forEach(({importClauseOrBindingPattern:Y,defaultImport:B,namedImports:ce})=>{xNe(D,e,Y,B,Oo(ce.entries(),([z,ee])=>({addAsTypeOnly:ee,name:z})),i)});let K;m.forEach(({useRequire:Y,defaultImport:B,namedImports:ce,namespaceLikeImport:z},ee)=>{let me=ee.slice(2),q=(Y?NNe:CNe)(me,j,B,ce&&Oo(ce.entries(),([J,re])=>({addAsTypeOnly:re,name:J})),z,l,i);K=vx(K,q)}),K&&QP(D,e,K,!0,i)}function N(){return d.length>0||p.length>0||h.size>0||m.size>0}}function EYe(e,t,r,i){let o=oM(e,i,r),s=yNe(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=ENe(y,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function SYe(e,t,r,i,o,s,l,d,p,h,m,y){let E;r?(E=mO(i,l,d,m,y).get(i.path,r),R.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=sV(Yf(t.name))?[AYe(e,o,t,d,l)]:gNe(i,e,o,t,s,d,l,m,y),R.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=ZY(i,d),A=mE(so(i,h)),N=R.checkDefined(_Ne(i,E,d,h,A,S,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:hNe(Jpe({host:l,formatContext:p,preferences:m},i,o,N,!1,d,m))}}function TYe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=FG(Kpe(e,r.getTypeChecker(),t,l)),p=ANe(e,t,d,r),h=d!==t.text;return p&&hNe(Jpe({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function _Ne(e,t,r,i,o,s,l,d){let p=oM(e,d,l);return ENe(QY(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function hNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function gNe(e,t,r,i,o,s,l,d,p){let h=vNe(s,l);return mO(e,l,s,d,p).search(e.path,o,m=>m===r,m=>{if(yd(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function AYe(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 R.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&&yd(S.symbol,y)===e)return{symbol:S.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:yd(e,y).flags,isFromPackageJson:E};let A=y.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&yd(A,y)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:yd(e,y).flags,isFromPackageJson:E}}}function QY(e,t,r,i,o,s,l,d,p=yNe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),y=va(e,p.getImportsForExportInfo),E=t!==void 0&&IYe(y,t),S=RYe(y,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:Xe,S]};let{fixes:A,computedWithoutCacheCount:N=0}=CYe(e,y,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:N,fixes:[...E?[E]:Xe,...A]}}function IYe(e,t){return Wl(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=xYe(r),l=s&&((o=eR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function xYe(e){var t,r,i;switch(e.kind){case 260:return(t=ii(e.name,Fe))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ii((r=e.importClause)==null?void 0:r.namedBindings,Yv))==null?void 0:i.name.text;default:return R.assertNever(e)}}function Upe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||rU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function RYe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=t2(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=Upe(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 yNe(e,t,r){let i;for(let o of t.imports){let s=vN(o);if(KF(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=Xp())).add(ba(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=Xp())).add(ba(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:d})=>{if(!(l&111551)&&cu(t))return Xe;let p=i?.get(ba(o));if(!p)return Xe;let h=Hpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function ZY(e,t){if(!cu(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 Md(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!cu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function vNe(e,t){return ah(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function DYe(e,t,r,i,o,s,l,d,p){let h=cu(t),m=e.getCompilerOptions(),y=YT(e,l),E=vNe(e,l),S=pu(m),A=qz(S),N=p?j=>({moduleSpecifiers:tS.tryGetModuleSpecifiersFromCache(j,t,y,d),computedWithoutCache:!1}):(j,K)=>tS.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),ee=Upe(i,!0,j.symbol,j.targetFlags,Y,m);return D+=B?1:0,to(ce,me=>{var ge;if(A&&AE(me))return;if(!z&&h&&r!==void 0)return{kind:1,moduleSpecifier:me,usagePosition:r,exportInfo:j,isReExport:K>0};let q=Hpe(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=Ype(j.moduleSymbol,ns(m),!1)),J={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:me,importKind:q,useRequire:o,addAsTypeOnly:ee,exportInfo:j,isReExport:K>0,qualification:J}})});return{computedWithoutCacheCount:D,fixes:w}}function CYe(e,t,r,i,o,s,l,d,p,h){let m=Wl(t,y=>NYe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:DYe(r,i,o,s,l,e,d,p,h)}function NYe({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:Upe(o,!0,r,i,l,d);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function bNe(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=kYe(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(Kpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=ANe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=WYe(e,o,i);else return;let l=oM(e.sourceFile,e.preferences,e.host);return s&&PYe(s,e.sourceFile,e.program,l,e.host)}function PYe(e,t,r,i,o){let s=l=>nl(l,o.getCurrentDirectory(),ky(o));return ZS(e,(l,d)=>Ev(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||el(l.fix.kind,d.fix.kind)||SNe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function ENe(e,t,r,i,o){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>SNe(l,s,t,r,i.allowsImportingSpecifier,d=>nl(d,o.getCurrentDirectory(),ky(o)))===-1?l:s)}function SNe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ev(o(t.moduleSpecifier),o(e.moduleSpecifier))||LYe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ev(TNe(e,r,i.getCompilerOptions(),s),TNe(t,r,i.getCompilerOptions(),s))||lk(e.moduleSpecifier,t.moduleSpecifier):0}function TNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&MYe(e.exportInfo.moduleFileName)){let s=i(ai(e.exportInfo.moduleFileName));return ao(t.path,s)}return!1}function MYe(e){return nc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function LYe(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 kYe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=wYe(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=ii(o,Fe))==null?void 0:S.text}})}function wYe(e,t){let r=Fe(e)?t.getSymbolAtLocation(e):void 0;if(b6(r))return r;let{parent:i}=e;if(lu(i)&&i.tagName===e||i1(i)){let o=t.resolveName(t.getJsxNamespace(i),lu(i)?e:i,111551,!1);if(b6(o))return o}}function Hpe(e,t,r,i){if(r.verbatimModuleSyntax&&(Md(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return BYe(e,r,!!i);case 3:return OYe(e,r,!!i);default:return R.assertNever(t)}}function OYe(e,t,r){if(RT(t))return 1;let i=Md(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 R.assertNever(i,`Unexpected moduleKind ${i}`)}}function WYe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return va(Kpe(e,d,s,p),h=>{if(h==="default")return;let m=mE(s),y=ZY(e,t),E=zYe(h,$x(s),qT(s),r,e,t,l,i,o);return Oo(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 ANe(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 Kpe(e,t,r,i){let o=r.parent;if((lu(o)||J0(o))&&o.tagName===r&&mX(i.jsx)){let s=t.getJsxNamespace(e);if(FYe(s,r,t))return!dR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function FYe(e,t,r){if(dR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||gt(i.declarations,oE)&&!(i.flags&111551)}function zYe(e,t,r,i,o,s,l,d,p){var h;let m=Xp(),y=oM(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=ah(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(Cde(w,ce).toString(),{symbol:w,moduleSymbol:N,moduleFileName:D?.fileName,exportKind:j,targetFlags:yd(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||Ype(N,ns(Y),t)===e)&&MNe(B.resolvedSymbol,r)&&A(N,D,B.symbol,B.exportKind,w,j);let ce=K.tryGetMemberInModuleExportsAndProperties(e,N);ce&&MNe(ce,r)&&A(N,D,ce,0,w,j)}),m}function BYe(e,t,r){let i=RT(t),o=ir(e);if(!o&&Md(t)>=5)return i?1:2;if(o)return oc(e)||r?i?1:2:3;for(let s of e.statements)if(Zc(s)&&!Fl(s.moduleReference))return 3;return i?1:3}function Jpe(e,t,r,i,o,s,l){let d,p=pr.ChangeTracker.with(e,h=>{d=GYe(h,t,r,i,o,s,l)});return ia(Qpe,p,d,Zpe,f.Add_all_missing_imports)}function GYe(e,t,r,i,o,s,l){let d=af(t,l);switch(i.kind){case 0:return qpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return RNe(e,t,i,d),[f.Change_0_to_1,r,DNe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;xNe(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?NNe:CNe,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 QP(e,t,S(h,d,A,N,D,s.getCompilerOptions(),l),!0,l),E&&qpe(e,t,E),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{let{typeOnlyAliasDeclaration:p}=i,h=VYe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,INe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,INe(h)]}default:return R.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function INe(e){var t,r;return e.kind===271?((r=ii((t=ii(e.moduleReference,bh))==null?void 0:t.expression,as))==null?void 0:r.text)||e.moduleReference.getText():ta(e.parent.moduleSpecifier,Da).text}function VYe(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:aE(t.getFirstToken()),end:aE(t.propertyName??t.name)}),t}else return R.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:R.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=WL(m.text,K3(m.text,s));e.replaceNode(i,m,L.createStringLiteral(E))}}if(l){let m=ii(p.namedBindings,Fg);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 xNe(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=ii(r.namedBindings,Fg))==null?void 0:l.elements);if(i&&(R.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=Ey(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,Ka(p),A,p);else if(E.length){let A=L.createNamedImports(E);r.namedBindings?e.replaceNode(t,r.namedBindings,A):e.insertNodeAfter(t,R.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,Ka(m.elements),S):e.replaceNode(t,m,L.createObjectBindingPattern([S]))}}function qpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function RNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,DNe(r,o))}function DNe(e,t){let r=Uq(t);return`import(${r}${e}${r}).`}function Xpe({addAsTypeOnly:e}){return e===2}function e$(e,t){return Xpe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function CNe(e,t,r,i,o,s,l){let d=b1(e,t),p;if(r!==void 0||i?.length){let h=(!r||Xpe(r))&&oo(i,Xpe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!gt(i,m=>m.addAsTypeOnly===4);p=vx(p,Jy(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 R.checkDefined(p)}function NNe(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=PNe(L.createObjectBindingPattern(d),s);l=vx(l,p)}if(o){let d=PNe(o.name,s);l=vx(l,d)}return R.checkDefined(l)}function PNe(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 MNe({declarations:e},t){return gt(e,r=>!!(Uw(r)&t))}function Ype(e,t,r){return $pe(Tu(Yf(e.name)),t,r)}function $pe(e,t,r){let i=nc(Sx(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Hh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let d=1;dJpe(e,i,p,d,p!==h,s,r))},fixIds:[Zpe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=mNe(t,r,!0,i,o,s);return SD(e,efe,d=>l.addImportFromDiagnostic(d,e)),ED(pr.ChangeTracker.with(e,l.writeFixes))}})}});function LNe(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=rme(o.file,hd(o.start,o.length));if(s!==void 0&&(Fe(s)&&ml(s.parent)&&(s=s.parent),ml(s))){if(CR(s.parent))return;let l=so(t,r.start),d=e.getTypeChecker();return{constraint:HYe(d,l)||UYe(o.messageText),declaration:s,token:l}}}function kNe(e,t,r,i,o,s){let{declaration:l,constraint:d}=s,p=t.getTypeChecker();if(Co(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 UYe(e){let[,t]=k_(e,` -`,0).match(/`extends (.*)`/)||[];return t}function HYe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var t$,tfe,KYe=bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";si(),Ta(),t$="addMissingConstraint",tfe=[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:tfe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=LNe(i,t,r);if(l===void 0)return;let d=pr.ChangeTracker.with(e,p=>kNe(p,i,o,s,t,l));return[ia(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(pr.ChangeTracker.with(e,s=>{SD(e,tfe,l=>{let d=LNe(t,l.file,hd(l.start,l.length));if(d&&Em(o,rs(d.declaration)))return kNe(s,t,r,i,l.file,d)})}))}})}});function wNe(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 JYe(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 qYe(e,t.sourceFile,i);default:R.fail("Unexpected error code: "+r)}}function JYe(e,t,r){let i=WNe(t,r);if(cu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||Xe,s=Vr(o,qI),l=Vr(o,uae),d=Vr(o,y=>kq(y.kind)),p=sI(o,vd),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 qYe(e,t,r){let i=WNe(t,r);if(cu(t)){e.filterJSDocTags(t,i,SW(U4));return}let o=Vr(i.modifiers,pae);R.assertIsDefined(o),e.deleteModifier(t,o)}function ONe(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 WNe(e,t){let r=so(e,t),i=Fn(r,o=>di(o)?"quit":ONe(o));return R.assert(i&&ONe(i)),i}var nfe,uM,OO,rfe,ife,XYe=bt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";si(),Ta(),nfe="fixOverrideModifier",uM="fixAddOverrideModifier",OO="fixRemoveOverrideModifier",rfe=[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],ife={[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:uM,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:uM,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:OO,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:OO,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:uM,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:uM,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:uM,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:OO,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:OO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ea({errorCodes:rfe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=ife[r];if(!o)return Xe;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=pr.ChangeTracker.with(t,h=>wNe(h,t,r,i.start));return[hpe(nfe,p,s,l,d)]},fixIds:[nfe,uM,OO],getAllCodeActions:e=>vs(e,rfe,(t,r)=>{let{code:i,start:o}=r,s=ife[i];!s||s.fixId!==e.fixId||wNe(t,e,i,o)})})}});function FNe(e,t,r,i){let o=af(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 zNe(e,t){return ta(so(e,t).parent,wr)}var n$,ofe,YYe=bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";si(),Ta(),n$="fixNoPropertyAccessFromIndexSignature",ofe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ea({errorCodes:ofe,fixIds:[n$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=zNe(t,r.start),s=pr.ChangeTracker.with(e,l=>FNe(l,e.sourceFile,o,i));return[ia(n$,s,[f.Use_element_access_for_0,o.name.text],n$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>vs(e,ofe,(t,r)=>FNe(t,r.file,zNe(r.file,r.start),e.preferences))})}});function BNe(e,t,r,i){let o=so(t,r);if(!sD(o))return;let s=wu(o,!1,!1);if(!(!Ec(s)&&!Ls(s))&&!Yi(wu(s,!1,!1))){let l=R.checkDefined(hs(s,100,t)),{name:d}=s,p=R.checkDefined(s.body);return Ls(s)?d&&ks.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$,afe,$Ye=bt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";si(),Ta(),r$="fixImplicitThis",afe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:afe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=pr.ChangeTracker.with(t,d=>{s=BNe(d,r,o.start,i.getTypeChecker())});return s?[ia(r$,l,s,r$,f.Fix_all_implicit_this_errors)]:Xe},fixIds:[r$],getAllCodeActions:e=>vs(e,afe,(t,r)=>{BNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function GNe(e,t,r){var i,o;let s=so(e,t);if(Fe(s)){let l=Fn(s,Mc);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=ii(m.valueDeclaration,ch))==null?void 0:o.locals;if(y===void 0)return;let E=y.get(s.escapedText);if(E===void 0)return;let S=ZYe(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:SR(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function QYe(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=i$(o,r.isTypeOnly);s?VNe(e,t,o,s,[r]):uk(i)?e.insertExportModifier(o,i):jNe(e,t,o,[r])}function sfe(e,t,r,i,o){Nn(i)&&(o?VNe(e,t,r,o,i):jNe(e,t,r,i))}function i$(e,t){let r=i=>Xl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return sI(e.statements,r)}function VNe(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,...UNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function jNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(UNe(i,em(t.getCompilerOptions()))),void 0,void 0))}function UNe(e,t){return L.createNodeArray(mn(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function ZYe(e){if(e.valueDeclaration===void 0)return Jc(e.declarations);let t=e.valueDeclaration,r=Oi(t)?ii(t.parent.parent,Pl):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var o$,lfe,e$e=bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";si(),Ta(),o$="fixImportNonExportedMember",lfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ea({errorCodes:lfe,fixIds:[o$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=GNe(t,r.start,i);if(o===void 0)return;let s=pr.ChangeTracker.with(e,l=>QYe(l,i,o));return[ia(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(pr.ChangeTracker.with(e,r=>{let i=new Map;SD(e,lfe,o=>{let s=GNe(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&&uk(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?(sfe(r,t,s,o.typeOnlyExports,l),sfe(r,t,s,o.exports,i$(s,!1))):sfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function t$e(e,t){let r=so(e,t);return Fn(r,i=>i.kind===202)}function n$e(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$,HNe,r$e=bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";si(),Ta(),a$="fixIncorrectNamedTupleSyntax",HNe=[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:HNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=t$e(r,i.start),s=pr.ChangeTracker.with(t,l=>n$e(l,r,o));return[ia(a$,s,f.Move_labeled_tuple_element_modifiers_to_labels,a$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[a$]})}});function KNe(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(wr(s)&&s.name===o){R.assert(Kh(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(ur(s)&&s.operatorToken.kind===103&&s.left===o&&Ki(o)){let p=l.getTypeAtLocation(s.right);d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Au(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){R.assertNode(o,Fe,"Expected an identifier for spelling (import)");let p=Fn(o,Mc),h=o$e(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(M_(s)&&s.name===o){R.assertNode(o,Fe,"Expected an identifier for JSX attribute");let p=Fn(o,lu),h=l.getContextualTypeForArgumentAtIndex(p,0);d=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(p6(s)&&Xc(s)&&s.name===o){let p=Fn(o,di),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);R.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,i$e(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function JNe(e,t,r,i,o){let s=vl(i);if(!$p(s,o)&&wr(r.parent)){let l=i.valueDeclaration;l&&au(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 i$e(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function o$e(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 cfe,dfe,a$e=bt({"src/services/codefixes/fixSpelling.ts"(){"use strict";si(),Ta(),cfe="fixSpelling",dfe=[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:dfe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=KNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=ns(e.host.getCompilationSettings()),d=pr.ChangeTracker.with(e,p=>JNe(p,t,o,s,l));return[ia("spelling",d,[f.Change_spelling_to_0,vl(s)],cfe,f.Fix_all_detected_spelling_errors)]},fixIds:[cfe],getAllCodeActions:e=>vs(e,dfe,(t,r)=>{let i=KNe(r.file,r.start,e,r.code),o=ns(e.host.getCompilationSettings());i&&JNe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function qNe(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 ufe(e,t,r,i){if(!t.body||!Uo(t.body)||Nn(t.body.statements)!==1)return;let o=Ga(t.body.statements);if(Qc(o)&&pfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(K0(o)&&Qc(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=qNe(e,o.label,o.statement.expression);if(pfe(e,t,l,r,i))return zs(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(Uo(o)&&Nn(o.statements)===1){let s=Ga(o.statements);if(K0(s)&&Qc(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),d=qNe(e,s.label,s.statement.expression);if(pfe(e,t,d,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function pfe(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){Qr(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 XNe(e,t,r,i){let o=so(t,r);if(!o.parent)return;let s=Fn(o.parent,Fs);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||!of(s.type,o)?void 0:ufe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ra(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?ufe(e,s,d,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!Lg(o)||!qx(o.parent)&&!M_(o.parent))return;let p=s$e(o.parent);return!p||!Fs(p)||!p.body?void 0:ufe(e,p,e.getTypeAtLocation(o.parent),!0)}}function s$e(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(mP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function YNe(e,t,r,i){bp(r);let o=dO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function $Ne(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 QNe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function l$e(e,t,r){let i=pr.ChangeTracker.with(e,o=>YNe(o,e.sourceFile,t,r));return ia(s$,i,f.Add_a_return_statement,l$,f.Add_all_missing_return_statement)}function c$e(e,t,r,i){let o=pr.ChangeTracker.with(e,s=>$Ne(s,e.sourceFile,t,r,i,!1));return ia(s$,o,f.Remove_braces_from_arrow_function_body,c$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function d$e(e,t,r){let i=pr.ChangeTracker.with(e,o=>QNe(o,e.sourceFile,t,r));return ia(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$,ffe,u$e=bt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";si(),Ta(),s$="returnValueCorrect",l$="fixAddReturnStatement",c$="fixRemoveBracesFromArrowFunctionBody",d$="fixWrapTheBlockWithParen",ffe=[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:ffe,fixIds:[l$,c$,d$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=XNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Tn([l$e(t,l.expression,l.statement)],zs(l.declaration)?c$e(t,l.declaration,l.expression,l.commentSource):void 0):[d$e(t,l.declaration,l.expression)]},getAllCodeActions:e=>vs(e,ffe,(t,r)=>{let i=XNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case l$:YNe(t,r.file,i.expression,i.statement);break;case c$:if(!zs(i.declaration))return;$Ne(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case d$:if(!zs(i.declaration))return;QNe(t,r.file,i.declaration,i.expression);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function ZNe(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)&&ra(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&&To(N)&&Fe(N.name)))return;let D=Oo(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=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(d),S,!1,!1));return Nn(A)?{kind:3,token:d,identifier:"",properties:A,parentDeclaration:d}:void 0}if(!Kh(l))return;if(Fe(l)&&Lv(d)&&d.initializer&&Ma(d.initializer)){let S=i.getContextualType(l)||i.getTypeAtLocation(l),A=Oo(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)&&lu(l.parent)){let S=ns(o.getCompilerOptions()),A=y$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&&kr(S)&16){let A=Jc(i.getSignaturesOfType(S,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:dPe(l)}}if(ra(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:dPe(l)}}if(!wr(d))return;let p=Bq(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Fe(l)&&ra(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,di);if(!m&&Ki(l))return;let y=m||Vr(h.declarations,S=>mu(S)||gp(S));if(y&&!mD(o,y.getSourceFile())){let S=!gp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ki(l)||mu(y)))return;let A=y.getSourceFile(),N=gp(y)?0:(S?256:0)|(fX(l.text)?2:0),D=cu(A),w=ii(d.parent,ra);return{kind:0,token:l,call:w,modifierFlags:N,parentDeclaration:y,declSourceFile:A,isJSFile:D}}let E=Vr(h.declarations,gE);if(E&&!(p.flags&1056)&&!Ki(l)&&!mD(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function p$e(e,t){return t.isJSFile?pI(f$e(e,t)):m$e(e,t)}function f$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(mu(t)||gp(t))return;let s=pr.ChangeTracker.with(e,d=>ePe(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 ia(rb,s,[l,o.text],rb,f.Add_all_missing_members)}function ePe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=tPe(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=iPe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=eg(r);if(!l)return;let d=tPe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function tPe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),R1()))}function m$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=nPe(e.program.getTypeChecker(),t,o),p=m=>pr.ChangeTracker.with(e,y=>rPe(y,r,t,s,d,m)),h=[ia(rb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],rb,f.Add_all_missing_members)];return l||Ki(o)||(i&2&&h.unshift(Zm(rb,p(2),[f.Declare_private_property_0,s])),h.push(_$e(e,r,t,o.text,d))),h}function nPe(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 rPe(e,t,r,i,o,s){let l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,d=di(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),p=iPe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function iPe(e){let t;for(let r of e.members){if(!Vo(r))break;t=r}return t}function _$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=pr.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,d));return Zm(rb,p,[f.Add_index_signature_for_property_0,i])}function h$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=>pr.ChangeTracker.with(e,y=>oPe(e,y,l,s,m,r,i)),h=[ia(rb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,d],rb,f.Add_all_missing_members)];return o&2&&h.unshift(Zm(rb,p(2),[f.Declare_private_method_0,d])),h}function oPe(e,t,r,i,o,s,l){let d=x1(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=$fe(p,e,d,r,i,o,s),m=v$e(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function aPe(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=Qs(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function sPe(e,t,r){let i=af(t.sourceFile,t.preferences),o=x1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?$fe(262,t,o,r.call,yr(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&&R.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 lPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=af(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 Va(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 cPe(e,t,r){let i=x1(t.sourceFile,t.program,t.preferences,t.host),o=af(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(b$e(h,s,o,l),m)}),p={leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.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(g$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(kr(o)&16){if(Vr(o.symbol.declarations||Xe,Um(gh,hh,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(kr(o)&1){let l=wg(o.symbol);if(l===void 0||O0(l))return R1();let d=eg(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 g$e(e){return e.flags&524288&&(kr(e)&128||e.symbol&&ii(rh(e.symbol.declarations),gp))}function y$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(QN(l.name)),o1(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return jr(o,l=>$p(l.name,t,1)&&!(l.flags&16777216||Tl(l)&48||s.has(l.escapedName)))}function v$e(e,t){if(gp(e))return;let r=Fn(t,i=>Ul(i)||Nl(i));return r&&r.parent===e?r:void 0}function b$e(e,t,r,i){if(dh(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Xa(o))return o}return B6(e.name,t,r===0,!1,!1)}function dPe(e){if(Fn(e,mP)){let t=Fn(e.parent,Sm);if(t)return t}return Gn(e)}var rb,Q7,Z7,eB,mfe,E$e=bt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";si(),Ta(),rb="fixMissingMember",Q7="fixMissingProperties",Z7="fixMissingAttributes",eB="fixMissingFunctionDeclaration",mfe=[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:mfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=ZNe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=pr.ChangeTracker.with(e,o=>cPe(o,e,r));return[ia(Q7,i,f.Add_missing_properties,Q7,f.Add_all_missing_properties)]}if(r.kind===4){let i=pr.ChangeTracker.with(e,o=>lPe(o,e,r));return[ia(Z7,i,f.Add_missing_attributes,Z7,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=pr.ChangeTracker.with(e,o=>sPe(o,e,r));return[ia(eB,i,[f.Add_missing_function_declaration_0,r.token.text],eB,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=pr.ChangeTracker.with(e,o=>aPe(o,e.program.getTypeChecker(),r));return[ia(rb,i,[f.Add_missing_enum_member_0,r.token.text],rb,f.Add_all_missing_members)]}return bo(h$e(e,r),p$e(e,r))}},fixIds:[rb,eB,Q7,Z7],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return ED(pr.ChangeTracker.with(e,l=>{SD(e,mfe,d=>{let p=ZNe(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))sPe(l,e,p);else if(r===Q7&&p.kind===3)cPe(l,e,p);else if(r===Z7&&p.kind===4)lPe(l,e,p);else if(p.kind===1&&aPe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,y=FC(s,h,()=>[]);y.some(E=>E.token.text===m.text)||y.push(p)}}}),s.forEach((d,p)=>{let h=gp(p)?void 0:ome(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))oPe(e,l,N,A,S&256,y,E);else if(D&&!mu(y)&&!gp(y))ePe(l,E,y,A,!!(S&256));else{let w=nPe(i,y,A);rPe(l,E,y,A.text,w,S&256)}}})}))}})}});function uPe(e,t,r){let i=ta(S$e(t,r),ra),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function S$e(e,t){let r=so(e,t.start),i=Jl(t);for(;r.enduPe(o,t,r));return[ia(p$,i,f.Add_missing_new_operator_to_call,p$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[p$],getAllCodeActions:e=>vs(e,_fe,(t,r)=>uPe(t,e.sourceFile,r))})}});function pPe(e,t,r){let i=so(e,r),o=Fn(i,ra);if(o===void 0||Nn(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),d=jr(l.symbol.declarations,fPe);if(d===void 0)return;let p=Qs(d);if(p===void 0||p.body===void 0||mD(t,p.getSourceFile()))return;let h=A$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,...x$e(p,d)];for(let N=0,D=0,w=0;N{Nn(o.parameters)?e.replaceNodeRangeWithNodes(t,Ga(o.parameters),Ka(o.parameters),mPe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:pr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:pr.TrailingTriviaOption.Include}):gn(mPe(o,i),(s,l)=>{Nn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function fPe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function mPe(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 x$e(e,t){let r=[];for(let i of t)if(R$e(i)){if(Nn(i.parameters)===Nn(e.parameters)){r.push(i);continue}if(Nn(i.parameters)>Nn(e.parameters))return[]}return r}function R$e(e){return fPe(e)&&e.body===void 0}function _Pe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function D$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,ia(nB,pr.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=>vs(e,hfe,(t,r)=>{let i=pPe(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 hPe(e,t){return{type:"install package",file:e,packageName:t}}function gPe(e,t){let r=ii(so(e,t),Da);if(!r)return;let i=r.text,{packageName:o}=_w(i);return qc(o)?void 0:o}function yPe(e,t,r){var i;return r===gfe?O_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?A3(e):void 0}var vPe,m$,gfe,yfe,N$e=bt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";si(),Ta(),vPe="fixCannotFindModule",m$="installTypesPackage",gfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,yfe=[gfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ea({errorCodes:yfe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=gPe(i,o);if(s===void 0)return;let l=yPe(s,r,t.errorCode);return l===void 0?[]:[ia(vPe,[],[f.Install_0,l],m$,f.Install_all_missing_types_packages,hPe(i.fileName,l))]},fixIds:[m$],getAllCodeActions:e=>vs(e,yfe,(t,r,i)=>{let o=gPe(r.file,r.start);if(o!==void 0)switch(e.fixId){case m$:{let s=yPe(o,e.host,r.code);s&&i.push(hPe(r.file.fileName,s));break}default:R.fail(`Bad fixId: ${e.fixId}`)}})})}});function bPe(e,t){let r=so(e,t);return ta(r.parent,di)}function EPe(e,t,r,i,o){let s=S_(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(P$e),h=x1(t,r.program,o,r.host);Yfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function P$e(e){let t=Fv(Ga(e.getDeclarations()));return!(t&2)&&!!(t&64)}var vfe,_$,M$e=bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";si(),Ta(),vfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],_$="fixClassDoesntImplementInheritedAbstractMember",Ea({errorCodes:vfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=pr.ChangeTracker.with(t,s=>EPe(bPe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ia(_$,o,f.Implement_inherited_abstract_class,_$,f.Implement_all_inherited_abstract_classes)]},fixIds:[_$],getAllCodeActions:function(t){let r=new Map;return vs(t,vfe,(i,o)=>{let s=bPe(o.file,o.start);Em(r,rs(s))&&EPe(s,t.sourceFile,t,i,t.preferences)})}})}});function SPe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function TPe(e,t){let r=so(e,t);if(r.kind!==110)return;let i=Wp(r),o=APe(i.body);return o&&!o.expression.arguments.some(s=>wr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function APe(e){return Qc(e)&&mT(e.expression)?e:Xo(e)?void 0:Bo(e,APe)}var h$,bfe,L$e=bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";si(),Ta(),h$="classSuperMustPrecedeThisAccess",bfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ea({errorCodes:bfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=TPe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=pr.ChangeTracker.with(e,d=>SPe(d,t,o,s));return[ia(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 vs(e,bfe,(i,o)=>{let s=TPe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Em(r,rs(l.parent))&&SPe(i,t,l,d)})}})}});function IPe(e,t){let r=so(e,t);return R.assert(Nl(r.parent),"token should be at the constructor declaration"),r.parent}function xPe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Xe));e.insertNodeAtConstructorStart(t,r,i)}var g$,Efe,k$e=bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";si(),Ta(),g$="constructorForDerivedNeedSuperCall",Efe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ea({errorCodes:Efe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=IPe(t,r.start),o=pr.ChangeTracker.with(e,s=>xPe(s,t,i));return[ia(g$,o,f.Add_missing_super_call,g$,f.Add_all_missing_super_calls)]},fixIds:[g$],getAllCodeActions:e=>vs(e,Efe,(t,r)=>xPe(t,e.sourceFile,IPe(r.file,r.start)))})}});function RPe(e,t){tme(e,t,"jsx",L.createStringLiteral("react"))}var Sfe,Tfe,w$e=bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";si(),Ta(),Sfe="fixEnableJsxFlag",Tfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ea({errorCodes:Tfe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=pr.ChangeTracker.with(t,o=>RPe(o,r));return[Zm(Sfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Sfe],getAllCodeActions:e=>vs(e,Tfe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&RPe(t,r)})})}});function DPe(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=rme(o.file,hd(o.start,o.length));if(s!==void 0&&ht(s)&&ur(s.parent))return{suggestion:O$e(o.messageText),expression:s.parent,arg:s}}function CPe(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 O$e(e){let[,t]=k_(e,` -`,0).match(/'(.*)'/)||[];return t}var y$,Afe,W$e=bt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";si(),Ta(),y$="fixNaNEquality",Afe=[f.This_condition_will_always_return_0.code],Ea({errorCodes:Afe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=DPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=pr.ChangeTracker.with(e,h=>CPe(h,t,d,l));return[ia(y$,p,[f.Use_0,s],y$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[y$],getAllCodeActions:e=>vs(e,Afe,(t,r)=>{let i=DPe(e.program,r.file,hd(r.start,r.length));i&&CPe(t,r.file,i.arg,i.expression)})})}}),F$e=bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";si(),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=Md(r);if(s>=5&&s<99){let h=pr.ChangeTracker.with(t,m=>{tme(m,i,"module",L.createStringLiteral("esnext"))});o.push(Zm("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=pr.ChangeTracker.with(t,m=>{if(!_N(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),eme(m,i,E)});o.push(Zm("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function NPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function PPe(e,t){return ta(so(e,t).parent,Zu)}var v$,Ife,z$e=bt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";si(),Ta(),v$="fixPropertyAssignment",Ife=[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:Ife,fixIds:[v$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=PPe(t,r.start),o=pr.ChangeTracker.with(e,s=>NPe(s,e.sourceFile,i));return[ia(v$,o,[f.Change_0_to_1,"=",":"],v$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>vs(e,Ife,(t,r)=>NPe(t,r.file,PPe(r.file,r.start)))})}});function MPe(e,t){let r=so(e,t),i=id(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function LPe(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(;dLPe(l,t,i,o));return[ia(b$,s,f.Change_extends_to_implements,b$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[b$],getAllCodeActions:e=>vs(e,xfe,(t,r)=>{let i=MPe(r.file,r.start);i&&LPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function kPe(e,t,r){let i=so(e,t);if(Fe(i)||Ki(i))return{node:i,className:r===Rfe?id(i).name.text:void 0}}function wPe(e,t,{node:r,className:i}){bp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var E$,Rfe,Dfe,G$e=bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";si(),Ta(),E$="forgottenThisPropertyAccess",Rfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Dfe=[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,Rfe],Ea({errorCodes:Dfe,getCodeActions(e){let{sourceFile:t}=e,r=kPe(t,e.span.start,e.errorCode);if(!r)return;let i=pr.ChangeTracker.with(e,o=>wPe(o,t,r));return[ia(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=>vs(e,Dfe,(t,r)=>{let i=kPe(r.file,r.start,r.code);i&&wPe(t,e.sourceFile,i)})})}});function V$e(e){return As(Pfe,e)}function Cfe(e,t,r,i,o){let s=r.getText()[i];if(!V$e(s))return;let l=o?Pfe[s]:`{${rM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var S$,rB,Nfe,Pfe,j$e=bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";si(),Ta(),S$="fixInvalidJsxCharacters_expression",rB="fixInvalidJsxCharacters_htmlEntity",Nfe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ea({errorCodes:Nfe,fixIds:[S$,rB],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=pr.ChangeTracker.with(e,l=>Cfe(l,r,t,i.start,!1)),s=pr.ChangeTracker.with(e,l=>Cfe(l,r,t,i.start,!0));return[ia(S$,o,f.Wrap_invalid_character_in_an_expression_container,S$,f.Wrap_all_invalid_characters_in_an_expression_container),ia(rB,s,f.Convert_invalid_character_to_its_html_entity_code,rB,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return vs(e,Nfe,(t,r)=>Cfe(t,e.preferences,r.file,r.start,e.fixId===rB))}}),Pfe={">":">","}":"}"}}});function U$e(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=pr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return ia(iB,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],iB,f.Delete_all_unused_param_tags)}function H$e(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Nn(i.parameters))return;let s=e.sourceFile,l=iE(i),d=new Set;for(let y of l)$m(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=pr.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,mn(l,E=>E===o?h:E)));return Zm(Mfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function OPe(e,t){let r=so(e,t);if(r.parent&&$m(r.parent)&&Fe(r.parent.name)){let i=r.parent,o=vT(i),s=cE(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var iB,Mfe,Lfe,K$e=bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";si(),Ta(),iB="deleteUnmatchedParameter",Mfe="renameUnmatchedParameter",Lfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ea({fixIds:[iB,Mfe],errorCodes:Lfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=OPe(r,i.start);if(s)return Tn(o,U$e(t,s)),Tn(o,H$e(t,s)),o},getAllCodeActions:function(t){let r=new Map;return ED(pr.ChangeTracker.with(t,i=>{SD(t,Lfe,({file:o,start:s})=>{let l=OPe(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 J$e(e,t,r){let i=ii(so(e,r),Fe);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return Vr(s?.declarations||Xe,Um(yh,Qu,Zc))}function q$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(yd(d.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function X$e(e,t,r,i){T1.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var T$,WPe,Y$e=bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";si(),Ta(),T$="fixUnreferenceableDecoratorMetadata",WPe=[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:WPe,getCodeActions:e=>{let t=J$e(e.sourceFile,e.program,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,s=>t.kind===276&&X$e(s,e.sourceFile,t,e.program)),i=pr.ChangeTracker.with(e,s=>q$e(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Tn(o,Zm(T$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Tn(o,Zm(T$,i,f.Use_import_type))),o},fixIds:[T$]})}});function FPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function WO(e,t){return ia(FO,e,t,x$,f.Delete_all_unused_declarations)}function zPe(e,t,r){e.delete(t,R.checkDefined(ta(r.parent,tj).typeParameters,"The type parameter to delete should exist"))}function kfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function BPe(e){return e.kind===102?ii(e.parent,Mc):void 0}function GPe(e,t){return Vc(t.parent)&&Ga(t.parent.getChildren(e))===t}function VPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function $$e(e,t,r){gn(r.elements,i=>e.delete(t,i))}function Q$e(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&S0(i.initializer))if(Vc(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:qy(e.host,e.formatContext.options)+r.text.slice(t7(r.text,s-1),s),suffix:dO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function jPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ta(i.parent,CT).typeParameter.name),Fe(i)&&Z$e(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),To(i.parent)&&kx(i.parent).forEach(o=>{Fe(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function Z$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){eQe(t,r,e,i,o,s,l,d),Fe(t)&&ks.Core.eachSymbolReferenceInFile(t,i,e,p=>{wr(p.parent)&&p.parent.name===p&&(p=p.parent),!d&&iQe(p)&&r.delete(e,p.parent.parent)})}function eQe(e,t,r,i,o,s,l,d){let{parent:p}=e;if(To(p))tQe(t,r,p,i,o,s,l,d);else if(!(d&&Fe(e)&&ks.Core.isSymbolReferencedInFile(e,i,r))){let h=yh(p)?e:Xa(p)?p.parent:p;R.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function tQe(e,t,r,i,o,s,l,d=!1){if(nQe(i,t,r,o,s,l,d))if(r.modifiers&&r.modifiers.length>0&&(!Fe(r.name)||ks.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Sa(p)&&e.deleteModifier(t,p);else!r.initializer&&UPe(r,i,o)&&e.delete(t,r)}function UPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!ks.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function nQe(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=ks.Core.getReferencedSymbolsForNode(d.pos,h,o,i,s);if(m){for(let y of m)for(let E of y.references)if(E.kind===ks.EntryKind.Node){let S=sP(E.node)&&ra(E.node.parent)&&E.node.parent.arguments.length>p,A=wr(E.node.parent)&&sP(E.node.parent.expression)&&ra(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,N=(Ul(E.node.parent)||hh(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&&rQe(e,t,d.name)?HPe(d,r,l):!0;case 218:case 219:return HPe(d,r,l);case 178:return!1;case 177:return!0;default:return R.failBadSyntaxKind(d)}}function rQe(e,t,r){return!!ks.Core.eachSymbolReferenceInFile(r,e,t,i=>Fe(i)&&ra(i.parent)&&i.parent.arguments.includes(i))}function HPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return R.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 iQe(e){return(ur(e.parent)&&e.parent.left===e||(tH(e.parent)||Xv(e.parent))&&e.parent.operand===e)&&Qc(e.parent.parent)}var FO,I$,x$,oB,R$,wfe,oQe=bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";si(),Ta(),FO="unusedIdentifier",I$="unusedIdentifier_prefix",x$="unusedIdentifier_delete",oB="unusedIdentifier_deleteImports",R$="unusedIdentifier_infer",wfe=[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:wfe,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[WO(pr.ChangeTracker.with(e,y=>y.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let y=pr.ChangeTracker.with(e,E=>zPe(E,r,d));return[WO(y,f.Remove_type_parameters)]}let p=BPe(d);if(p){let y=pr.ChangeTracker.with(e,E=>E.delete(r,p));return[ia(FO,y,[f.Remove_import_from_0,ooe(p)],oB,f.Delete_all_unused_imports)]}else if(kfe(d)){let y=pr.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length)return[ia(FO,y,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],oB,f.Delete_all_unused_imports)]}if(tm(d.parent)||j0(d.parent)){if(To(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[WO(pr.ChangeTracker.with(e,S=>$$e(S,r,d.parent)),E)]}return[WO(pr.ChangeTracker.with(e,y=>Q$e(e,y,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(GPe(r,d))return[WO(pr.ChangeTracker.with(e,y=>VPe(y,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let y=pr.ChangeTracker.with(e,S=>FPe(S,r,d)),E=ta(d.parent,CT).typeParameter.name.text;h.push(ia(FO,y,[f.Replace_infer_0_with_unknown,E],R$,f.Replace_all_unused_infer_with_unknown))}else{let y=pr.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length){let E=Xa(d.parent)?d.parent:d;h.push(WO(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=pr.ChangeTracker.with(e,y=>jPe(y,t,r,d));return m.length&&h.push(ia(FO,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 vs(e,wfe,(l,d)=>{let p=so(t,d.start);switch(e.fixId){case I$:jPe(l,d.code,t,p);break;case oB:{let h=BPe(p);h?l.delete(t,h):kfe(p)&&A$(t,p,l,o,s,r,i,!0);break}case x$:{if(p.kind===140||kfe(p))break;if(nm(p))l.delete(t,p);else if(p.kind===30)zPe(l,t,p);else if(tm(p.parent)){if(p.parent.parent.initializer)break;(!To(p.parent.parent)||UPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(j0(p.parent.parent)&&p.parent.parent.parent.initializer)break;GPe(t,p)?VPe(l,t,p.parent):A$(t,p,l,o,s,r,i,!0)}break}case R$:p.kind===140&&FPe(l,t,p);break;default:R.fail(JSON.stringify(e.fixId))}})}})}});function KPe(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:R.formatSyntaxKind(l.kind),tokenKind:R.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});R.fail("Token and statement should start at the same point. "+p)}let d=(Uo(l.parent)?l.parent:l).parent;if(!Uo(l.parent)||l===Ga(l.parent.statements))switch(d.kind){case 245:if(d.elseStatement){if(Uo(l.parent))break;e.replaceNode(t,l,L.createBlock(Xe));return}case 247:case 248:e.delete(t,d);return}if(Uo(l.parent)){let p=r+i,h=R.checkDefined(aQe(dU(l.parent.statements,l),m=>m.posKPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ia(D$,r,f.Remove_unreachable_code,D$,f.Remove_all_unreachable_code)]},fixIds:[D$],getAllCodeActions:e=>vs(e,Ofe,(t,r)=>KPe(t,r.file,r.start,r.length,r.code))})}});function JPe(e,t,r){let i=so(t,r),o=ta(i.parent,K0),s=i.getStart(t),l=o.statement.getStart(t),d=Sf(s,l,t)?l:Na(t.text,hs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var C$,Wfe,lQe=bt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";si(),Ta(),C$="fixUnusedLabel",Wfe=[f.Unused_label.code],Ea({errorCodes:Wfe,getCodeActions(e){let t=pr.ChangeTracker.with(e,r=>JPe(r,e.sourceFile,e.span.start));return[ia(C$,t,f.Remove_unused_label,C$,f.Remove_all_unused_labels)]},fixIds:[C$],getAllCodeActions:e=>vs(e,Wfe,(t,r)=>JPe(t,r.file,r.start))})}});function qPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function XPe(e,t,r){let i=Fn(so(e,t),cQe),o=i&&i.type;return o&&{typeNode:o,type:dQe(r,o)}}function cQe(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 dQe(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 Ffe,N$,zfe,uQe=bt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";si(),Ta(),Ffe="fixJSDocTypes_plain",N$="fixJSDocTypes_nullable",zfe=[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:zfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=XPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),d=[p(s,Ffe,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=pr.ChangeTracker.with(e,S=>qPe(S,t,o,h,r));return ia("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Ffe,N$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return vs(e,zfe,(s,l)=>{let d=XPe(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;qPe(s,i,p,m,o)})}})}});function YPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function $Pe(e,t){let r=so(e,t);if(wr(r.parent)){let i=r.parent;for(;wr(i.parent);)i=i.parent;return i.name}if(Fe(r))return r}var P$,Bfe,pQe=bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";si(),Ta(),P$="fixMissingCallParentheses",Bfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ea({errorCodes:Bfe,fixIds:[P$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=$Pe(t,r.start);if(!i)return;let o=pr.ChangeTracker.with(e,s=>YPe(s,e.sourceFile,i));return[ia(P$,o,f.Add_missing_call_parentheses,P$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>vs(e,Bfe,(t,r)=>{let i=$Pe(r.file,r.start);i&&YPe(t,r.file,i)})})}});function fQe(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&gh(e.parent.type))return e.parent.type.type}function QPe(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=hs(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=hs(i,s,e)||Ga(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:fQe(i)}}function ZPe(e,t,{insertBefore:r,returnType:i}){if(i){let o=I2(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$,Gfe,mQe=bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";si(),Ta(),M$="fixAwaitInSyncFunction",Gfe=[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:Gfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=QPe(t,r.start);if(!i)return;let o=pr.ChangeTracker.with(e,s=>ZPe(s,t,i));return[ia(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 vs(t,Gfe,(i,o)=>{let s=QPe(o.file,o.start);!s||!Em(r,rs(s.insertBefore))||ZPe(i,t.sourceFile,s)})}})}});function eMe(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;R.assert(Nv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let h=p.parent;R.assert(di(h),"erroneous accessors should only be inside classes");let m=rh(ome(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 R.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return _Me(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Vfe,L$,_Qe=bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";si(),Ta(),Vfe=[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:Vfe,getCodeActions(e){let t=eMe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ia(L$,t,f.Generate_get_and_set_accessors,L$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[L$],getAllCodeActions:e=>vs(e,Vfe,(t,r)=>{let i=eMe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function hQe(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 gQe(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 tMe(e,t,r,i,o,s,l,d,p){if(!aN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=x1(t,o,p,d);switch(i=gQe(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(Oi(h)&&l(h)||Vo(h)||_p(h))return nMe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(wr(h)){let S=zO(h.name,o,s),A=iM(S,h,o,d);if(A){let N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,ta(h.parent.parent,Qc),[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&&Oi(S.valueDeclaration)&&l(S.valueDeclaration)?(nMe(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)){rMe(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=ta(h,To);yQe(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:Zp(y)&&Fe(y.name)&&(k$(e,m,t,y,zO(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)&&(rMe(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:pr.isThisTypeAnnotatable(y)&&l(y)&&(vQe(e,t,y,o,d,s),E=y);break;default:return R.fail(String(i))}return m.writeFixes(e),E}function nMe(e,t,r,i,o,s,l){Fe(i.name)&&k$(e,t,r,i,zO(i.name,o,l),o,s)}function yQe(e,t,r,i,o,s,l,d){if(!Fe(i.name))return;let p=SQe(o,r,s,d);if(R.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),ir(o))iMe(e,r,p,s,l);else{let h=zs(o)&&!hs(o,21,r);h&&e.insertNodeBefore(r,Ga(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,Ka(o.parameters),L.createToken(22))}}function vQe(e,t,r,i,o,s){let l=oMe(r,t,i,s);if(!l||!l.length)return;let d=Ufe(i,l,s).thisParameter(),p=iM(d,r,i,o);p&&(ir(r)?bQe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function bQe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function rMe(e,t,r,i,o,s,l){let d=Jc(i.parameters);if(d&&Fe(i.name)&&Fe(d.name)){let p=zO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=zO(d.name,o,l)),ir(i)?iMe(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=iM(o,i,s,l);if(d)if(ir(r)&&i.kind!==171){let p=Oi(i)?ii(i.parent.parent,Pl):i;if(!p)return;let h=L.createJSDocTypeExpression(d),m=Zp(i)?L.createJSDocReturnTag(void 0,h,void 0):L.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else EQe(d,i,r,e,t,ns(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function EQe(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 iMe(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||rE(p)||!Fe(p.name))return;let h=d.type&&iM(d.type,p,i,o);if(h){let m=L.cloneNode(p.name);return cr(m,7168),{name:L.cloneNode(p.name),param:p,isOptional:!!d.isOptional,typeNode:h}}});if(l.length)if(zs(s)||Ls(s)){let d=zs(s)&&!hs(s,21,t);d&&e.insertNodeBefore(t,Ga(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,Ka(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 jfe(e,t,r){return to(ks.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==ks.EntryKind.Span?ii(i.node,Fe):void 0)}function zO(e,t,r){let i=jfe(e,t,r);return Ufe(t,i,r).single()}function SQe(e,t,r,i){let o=oMe(e,t,r,i);return o&&Ufe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Fe(s.name)?zO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function oMe(e,t,r,i){let o;switch(e.kind){case 176:o=hs(e,137,t);break;case 219:case 218:let s=e.parent;o=(Oi(s)||Vo(s))&&Fe(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return jfe(o,r,i)}function Ufe(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ie=>i.createArrayType(Ie),Promise:Ie=>i.createPromiseType(Ie)},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(Ie){let De=new Map;for(let Et of Ie)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:Ie.some(Et=>Et.isNumber),isString:Ie.some(Et=>Et.isString),isNumberOrString:Ie.some(Et=>Et.isNumberOrString),candidateTypes:va(Ie,Et=>Et.candidateTypes),properties:Le,calls:va(Ie,Et=>Et.calls),constructs:va(Ie,Et=>Et.constructs),numberIndex:gn(Ie,Et=>Et.numberIndex),stringIndex:gn(Ie,Et=>Et.stringIndex),candidateThisTypes:va(Ie,Et=>Et.candidateThisTypes),inferredTypes:void 0}}function p(){return me(y(t))}function h(Ie){if(t.length===0||!Ie.parameters)return;let De=l();for(let Et of t)r.throwIfCancellationRequested(),E(Et,De);let Le=[...De.constructs||[],...De.calls||[]];return Ie.parameters.map((Et,be)=>{let ze=[],tt=Jh(Et),Ft=!1;for(let Je of Le)if(Je.argumentTypes.length<=be)Ft=ir(Ie),ze.push(i.getUndefinedType());else if(tt)for(let ft=be;ftLe.every(be=>!be(Et)))}function ee(Ie){return me(q(Ie))}function me(Ie){if(!Ie.length)return i.getAnyType();let De=i.getUnionType([i.getStringType(),i.getNumberType()]),Et=z(Ie,[{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)&&!(kr(ze)&16),low:ze=>!!(kr(ze)&16)}]),be=Et.filter(ze=>kr(ze)&16);return be.length&&(Et=Et.filter(ze=>!(kr(ze)&16)),Et.push(ge(be))),i.getWidenedType(i.getUnionType(Et.map(i.getBaseTypeOfLiteralType),2))}function ge(Ie){if(Ie.length===1)return Ie[0];let De=[],Le=[],Et=[],be=[],ze=!1,tt=!1,Ft=Xp();for(let ft of Ie){for(let Dn of i.getPropertiesOfType(ft))Ft.add(Dn.escapedName,Dn.valueDeclaration?i.getTypeOfSymbolAtLocation(Dn,Dn.valueDeclaration):i.getAnyType());De.push(...i.getSignaturesOfType(ft,0)),Le.push(...i.getSignaturesOfType(ft,1));let Zt=i.getIndexInfoOfType(ft,0);Zt&&(Et.push(Zt.type),ze=ze||Zt.isReadonly);let en=i.getIndexInfoOfType(ft,1);en&&(be.push(en.type),tt=tt||en.isReadonly)}let _t=Zte(Ft,(ft,Zt)=>{let en=Zt.lengthi.getBaseTypeOfLiteralType(Ft)),tt=(Et=Ie.calls)!=null&&Et.length?J(Ie):void 0;return tt&&ze?be.push(i.getUnionType([tt,...ze],2)):(tt&&be.push(tt),Nn(ze)&&be.push(...ze)),be.push(...re(Ie)),be}function J(Ie){let De=new Map;Ie.properties&&Ie.properties.forEach((ze,tt)=>{let Ft=i.createSymbol(4,tt);Ft.links.type=ee(ze),De.set(tt,Ft)});let Le=Ie.calls?[Ce(Ie.calls)]:[],Et=Ie.constructs?[Ce(Ie.constructs)]:[],be=Ie.stringIndex?[i.createIndexInfo(i.getStringType(),ee(Ie.stringIndex),!1)]:[];return i.createAnonymousType(void 0,De,Le,Et,be)}function re(Ie){if(!Ie.properties||!Ie.properties.size)return[];let De=s.filter(Le=>pe(Le,Ie));return 0xe(Le,Ie)):[]}function pe(Ie,De){return De.properties?!zc(De.properties,(Le,Et)=>{let be=i.getTypeOfPropertyOfType(Ie,Et);return be?Le.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,he(Le.calls)):!i.isTypeAssignableTo(be,ee(Le)):!0}):!1}function xe(Ie,De){if(!(kr(Ie)&4)||!De.properties)return Ie;let Le=Ie.target,Et=rh(Le.typeParameters);if(!Et)return Ie;let be=[];return De.properties.forEach((ze,tt)=>{let Ft=i.getTypeOfPropertyOfType(Le,tt);R.assert(!!Ft,"generic should have all the properties of its reference."),be.push(...fe(Ft,ee(ze),Et))}),o[Ie.symbol.escapedName](me(be))}function fe(Ie,De,Le){if(Ie===Le)return[De];if(Ie.flags&3145728)return va(Ie.types,ze=>fe(ze,De,Le));if(kr(Ie)&4&&kr(De)&4){let ze=i.getTypeArguments(Ie),tt=i.getTypeArguments(De),Ft=[];if(ze&&tt)for(let _t=0;_tbe.argumentTypes.length));for(let be=0;bett.argumentTypes[be]||i.getUndefinedType())),Ie.some(tt=>tt.argumentTypes[be]===void 0)&&(ze.flags|=16777216),De.push(ze)}let Et=ee(d(Ie.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,De,Et,void 0,Le,0)}function Ge(Ie,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ie.candidateTypes||(Ie.candidateTypes=[])).push(De)}function ve(Ie,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ie.candidateThisTypes||(Ie.candidateThisTypes=[])).push(De)}}var w$,Hfe,TQe=bt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";si(),Ta(),w$="inferFromUsage",Hfe=[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:Hfe,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=pr.ChangeTracker.with(e,E=>{h=tMe(E,t,p,o,r,s,Ay,l,d)}),y=h&&No(h);return!y||m.length===0?void 0:[ia(w$,m,[hQe(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 vs(e,Hfe,(d,p)=>{tMe(d,t,so(p.file,p.start),p.code,r,i,l,o,s)})}})}});function aMe(e,t,r){if(ir(e))return;let i=so(e,r),o=Fn(i,Fs),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 sMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var O$,Kfe,AQe=bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";si(),Ta(),O$="fixReturnTypeInAsyncFunction",Kfe=[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:Kfe,fixIds:[O$],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=aMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=pr.ChangeTracker.with(t,E=>sMe(E,r,d,h));return[ia(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=>vs(e,Kfe,(t,r)=>{let i=aMe(r.file,e.program.getTypeChecker(),r.start);i&&sMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function lMe(e,t,r,i){let{line:o}=ys(t,r);(!i||Jb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Jfe,qfe,Xfe,IQe=bt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";si(),Ta(),Jfe="disableJsDiagnostics",qfe="disableJsDiagnostics",Xfe=to(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Ea({errorCodes:Xfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!ir(r)||!dk(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":qy(s,l.options),p=[Zm(Jfe,[dCe(r.fileName,[eO(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):hd(0,0),`// @ts-nocheck${d}`)])],f.Disable_checking_for_this_file)];return pr.isValidLocationToAddComment(r,o.start)&&p.unshift(ia(Jfe,pr.ChangeTracker.with(t,h=>lMe(h,r,o.start)),f.Ignore_this_error_message,qfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[qfe],getAllCodeActions:e=>{let t=new Set;return vs(e,Xfe,(r,i)=>{pr.isValidLocationToAddComment(i.file,i.start)&&lMe(r,i.file,i.start,t)})}})}});function Yfe(e,t,r,i,o,s,l){let d=e.symbol.members;for(let p of t)d.has(p.escapedName)||cMe(p,e,r,i,o,s,l,void 0)}function AD(e){return{trackSymbol:()=>!1,moduleResolverHost:Vq(e.program,e.host)}}function cMe(e,t,r,i,o,s,l,d,p=3,h=!1){let m=e.getDeclarations(),y=Jc(m),E=i.program.getTypeChecker(),S=ns(i.program.getCompilerOptions()),A=y?.kind??171,N=re(e,y),D=y?du(y):0,w=D&256;w|=D&1?1:D&4?4:0,y&&ku(y)&&(w|=512);let j=ee(),K=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),Y=!!(e.flags&16777216),B=!!(t.flags&33554432)||h,ce=af(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:{R.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(Zp(Ge))l(L.createGetAccessorDeclaration(j,ge(N),Xe,J(ne),q(d,ce,B)));else{R.assertNode(Ge,hp,"The counterpart to a getter should be a setter");let ve=CN(Ge),Ie=ve&&Fe(ve.name)?yr(ve.name):void 0;l(L.createSetAccessorDeclaration(j,ge(N),Qfe(1,[Ie],[J(ne)],1,!1),q(d,ce,B)))}break}case 173:case 174:R.assertIsDefined(m);let fe=K.isUnion()?va(K.types,ne=>ne.getCallSignatures()):K.getCallSignatures();if(!gt(fe))break;if(m.length===1){R.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 R.assert(m.length===fe.length,"Declarations and signatures should match count"),l(DQe(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 ee(){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&&O0(y))}function ge(pe){return Fe(pe)&&pe.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(yr(pe),ce===0)):al(pe,!1)}function q(pe,xe,fe){return fe?void 0:al(pe,!1)||Zfe(xe)}function J(pe){return al(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 al(No(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=Nc(D,z=>{let ee=z.constraint,me=z.default;if(ee){let ge=D1(ee,E);ge&&(ee=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,ee,me)});D!==ce&&(D=at(L.createNodeArray(ce,D.hasTrailingComma),D))}let B=Nc(w,ce=>{let z=S?void 0:ce.type;if(z){let ee=D1(z,E);ee&&(z=ee.typeNode,ID(h,ee.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(Ls(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ii(s,Fe),D,w,j,o??N.body);if(zs(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,ii(s,Fe),D,w,j,o??N.body)}function $fe(e,t,r,i,o,s,l){let d=af(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:wr(me)&&Fe(me.name)?me.name.text:void 0),w=y?[]:mn(S,me=>m.getTypeAtLocation(me)),{argumentTypeNodes:j,argumentTypeParameters:K}=pMe(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:xQe(m,K,E),z=Qfe(S.length,D,j,void 0,y),ee=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,ee,Zfe(d));case 173:return L.createMethodSignature(Y,o,void 0,ce,z,ee===void 0?L.createKeywordTypeNode(159):ee);case 262:return R.assert(typeof o=="string"||Fe(o),"Unexpected name"),L.createFunctionDeclaration(Y,B,o,ce,z,ee,aB(f.Function_not_implemented.message,d));default:R.fail("Unexpected kind")}}function xQe(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 dMe(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&&ig(d)){let p=D1(d,o);p&&(ID(t,p.symbols),d=p.typeNode)}return al(d)}function uMe(e){return e.isUnionOrIntersection()?e.types.some(uMe):e.flags&262144}function pMe(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 DQe(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=Qfe(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 NQe(l,o,s,void 0,A,CQe(i,e,t,r),d,p)}function CQe(e,t,r,i){if(Nn(e)){let o=t.getUnionType(mn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,AD(r))}}function NQe(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||Zfe(l))}function Zfe(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 eme(e,t,r){let i=_N(t);if(!i)return;let o=nme(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=nme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,z$(l,d)):e.replaceNode(t,p.initializer,d)}}function tme(e,t,r,i){eme(e,t,[[r,i]])}function z$(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function nme(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=Qe(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Ov(s)&&s.qualifier){let l=Fp(s.qualifier),d=p7(l.symbol,t),p=d!==l.text?mMe(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 mMe(e,t){return e.kind===80?t:L.createQualifiedName(mMe(e.left,t),e.right)}function ID(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function rme(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))(ime||{})}});function _Me(e,t,r,i,o,s){let l=yMe(e,t,r,i);if(!l||T1.isRefactorErrorInfo(l))return;let d=pr.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(di(A)){let K=du(N);if(cu(e)){let Y=L.createModifiersFromModifierFlags(K);D=Y,w=Y}else D=L.createModifiersFromModifierFlags(kQe(K)),w=L.createModifiersFromModifierFlags(wQe(K));GT(N)&&(w=bo(Rv(N),w))}BQe(d,e,N,S,m,w);let j=OQe(m,y,S,D,p,A);if(bp(j),vMe(d,e,j,N,A),h){let K=eg(A);K&&GQe(d,e,K,m.text,E)}else{let K=WQe(m,y,S,D,p,A);bp(K),vMe(d,e,K,N,A)}return d.getChanges()}function MQe(e){return Fe(e)||Da(e)}function LQe(e){return dp(e,e.parent)||Vo(e)||mc(e)}function hMe(e,t){return Fe(t)?L.createIdentifier(e):L.createStringLiteral(e)}function gMe(e,t,r){let i=t?r.name:L.createThis();return Fe(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function kQe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function wQe(e){return e&=-2,e&=-5,e|=2,e}function yMe(e,t,r,i,o=!0){let s=so(e,r),l=r===i&&o,d=Fn(s.parent,LQe),p=271;if(!d||!(wz(d.name,e,r,i)||l))return{error:ko(f.Could_not_find_property_for_which_to_generate_accessor)};if(!MQe(d.name))return{error:ko(f.Name_is_not_valid)};if((du(d)&98303|p)!==p)return{error:ko(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=fX(h),y=hMe(m?h:QT(`_${h}`,e),d.name),E=hMe(m?QT(h.substring(1),e):h,d.name);return{isStatic:pc(d),isReadonly:NN(d),type:VQe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:y,accessorName:E,renameAccessor:m}}function OQe(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(gMe(e,o,s))],!0))}function WQe(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(gMe(e,o,s),L.createIdentifier("value")))],!0))}function FQe(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 zQe(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 BQe(e,t,r,i,o,s){Vo(r)?FQe(e,t,r,i,o,s):mc(r)?zQe(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,ta(o,Fe),r.questionToken,r.type,r.initializer))}function vMe(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 GQe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Xs(l)&&l.expression.kind===110&&Da(l.argumentExpression)&&l.argumentExpression.text===o&&LI(l)&&e.replaceNode(t,l.argumentExpression,L.createStringLiteral(i)),wr(l)&&l.expression.kind===110&&l.name.text===o&&LI(l)&&e.replaceNode(t,l.name,L.createIdentifier(i)),!Xo(l)&&!di(l)&&l.forEachChild(s)})}function VQe(e,t){let r=kie(e);if(Vo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Kv(r)?r.types:[r];return L.createUnionTypeNode([...s,L.createKeywordTypeNode(157)])}}return r}function ome(e,t){let r=[];for(;e;){let i=P0(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,di);if(!l)break;r.push(l),e=l}return r}var jQe=bt({"src/services/codefixes/generateAccessors.ts"(){"use strict";si()}});function UQe(e,t){let r=Gn(t),i=nR(t),o=e.program.getCompilerOptions(),s=[];return s.push(bMe(e,r,t,Jy(i.name,void 0,t.moduleSpecifier,af(r,e.preferences)))),Md(o)===1&&s.push(bMe(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function bMe(e,t,r,i){let o=pr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Zm(ame,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function HQe(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 EMe(e,o)}function KQe(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?EMe(e,r):[]}function EMe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&dh(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Op(o)||Hr(i,UQe(e,o)),ht(t)&&!(au(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=pr.ChangeTracker.with(e,d=>d.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Zm(ame,l,f.Use_synthetic_default_member))}return i}var ame,JQe=bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";si(),Ta(),ame="invalidImportSyntax",Ea({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:HQe}),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:KQe})}});function SMe(e,t){let r=so(e,t);if(Fe(r)&&Vo(r.parent)){let i=gd(r.parent);if(i)return{type:i,prop:r.parent,isJs:ir(r.parent)}}}function qQe(e,t){if(t.isJs)return;let r=pr.ChangeTracker.with(e,i=>TMe(i,e.sourceFile,t.prop));return ia(B$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],G$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function TMe(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 XQe(e,t){let r=pr.ChangeTracker.with(e,i=>AMe(i,e.sourceFile,t));return ia(B$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],V$,f.Add_undefined_type_to_all_uninitialized_properties)}function AMe(e,t,r){let i=L.createKeywordTypeNode(157),o=Kv(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 YQe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=xMe(r,t.prop);if(!i)return;let o=pr.ChangeTracker.with(e,s=>IMe(s,e.sourceFile,t.prop,i));return ia(B$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],j$,f.Add_initializers_to_all_uninitialized_properties)}function IMe(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 xMe(e,t){return RMe(e,e.getTypeFromTypeNode(t.type))}function RMe(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=>RMe(e,r));if(t.isClass()){let r=wg(t.symbol);if(!r||Qr(r,64))return;let i=eg(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$,sme,$Qe=bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";si(),Ta(),B$="strictClassInitialization",G$="addMissingPropertyDefiniteAssignmentAssertions",V$="addMissingPropertyUndefinedType",j$="addMissingPropertyInitializer",sme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ea({errorCodes:sme,getCodeActions:function(t){let r=SMe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Tn(i,XQe(t,r)),Tn(i,qQe(t,r)),Tn(i,YQe(t,r)),i},fixIds:[G$,V$,j$],getAllCodeActions:e=>vs(e,sme,(t,r)=>{let i=SMe(r.file,r.start);if(i)switch(e.fixId){case G$:TMe(t,r.file,i.prop);break;case V$:AMe(t,r.file,i);break;case j$:let o=e.program.getTypeChecker(),s=xMe(o,i.prop);if(!s)return;IMe(t,r.file,i.prop,s);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function DMe(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 CMe(e,t,r){let{parent:i}=so(e,r);Su(i,!0)||R.failBadSyntaxKind(i);let o=ta(i.parent,Oi),s=ii(o.name,Fe),l=tm(o.name)?QQe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:RT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:ta(o.parent.parent,Pl),required:Ga(i.arguments)}}function QQe(e){let t=[];for(let r of e.elements){if(!Fe(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ii(r.propertyName,Fe),r.name))}if(t.length)return L.createNamedImports(t)}var U$,lme,ZQe=bt({"src/services/codefixes/requireInTs.ts"(){"use strict";si(),Ta(),U$="requireInTs",lme=[f.require_call_may_be_converted_to_an_import.code],Ea({errorCodes:lme,getCodeActions(e){let t=CMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=pr.ChangeTracker.with(e,i=>DMe(i,e.sourceFile,t));return[ia(U$,r,f.Convert_require_to_import,U$,f.Convert_all_require_to_import)]},fixIds:[U$],getAllCodeActions:e=>vs(e,lme,(t,r)=>{let i=CMe(r.file,e.program,r.start);i&&DMe(t,e.sourceFile,i)})})}});function NMe(e,t){let r=so(e,t);if(!Fe(r))return;let{parent:i}=r;if(Zc(i)&&bh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Yv(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function PMe(e,t,r,i){e.replaceNode(t,r.importNode,Jy(r.name,void 0,r.moduleSpecifier,af(t,i)))}var H$,cme,eZe=bt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";si(),Ta(),H$="useDefaultImport",cme=[f.Import_may_be_converted_to_a_default_import.code],Ea({errorCodes:cme,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=NMe(t,r);if(!i)return;let o=pr.ChangeTracker.with(e,s=>PMe(s,t,i,e.preferences));return[ia(H$,o,f.Convert_to_default_import,H$,f.Convert_all_to_default_imports)]},fixIds:[H$],getAllCodeActions:e=>vs(e,cme,(t,r)=>{let i=NMe(r.file,r.start);i&&PMe(t,r.file,i,e.preferences)})})}});function MMe(e,t,r){let i=ii(so(t,r.start),mp);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var K$,dme,tZe=bt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";si(),Ta(),K$="useBigintLiteral",dme=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ea({errorCodes:dme,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>MMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(K$,r,f.Convert_to_a_bigint_numeric_literal,K$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[K$],getAllCodeActions:e=>vs(e,dme,(t,r)=>MMe(t,r.file,r))})}});function LMe(e,t){let r=so(e,t);return R.assert(r.kind===102,"This token should be an ImportKeyword"),R.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function kMe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var wMe,J$,ume,nZe=bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";si(),Ta(),wMe="fixAddModuleReferTypeMissingTypeof",J$=wMe,ume=[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:ume,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=LMe(r,i.start),s=pr.ChangeTracker.with(t,l=>kMe(l,r,o));return[ia(J$,s,f.Add_missing_typeof,J$,f.Add_missing_typeof)]},fixIds:[J$],getAllCodeActions:e=>vs(e,ume,(t,r)=>kMe(t,e.sourceFile,LMe(r.file,r.start)))})}});function OMe(e,t){let o=so(e,t).parent.parent;if(!(!ur(o)&&(o=o.parent,!ur(o)))&&Fl(o.operatorToken))return o}function WMe(e,t,r){let i=rZe(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function rZe(e){let t=[],r=e;for(;;)if(ur(r)&&Fl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),d2(r.right))return t.push(r.right),t;if(ur(r.right)){r=r.right;continue}else return}else return}var q$,pme,iZe=bt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";si(),Ta(),q$="wrapJsxInFragment",pme=[f.JSX_expressions_must_have_one_parent_element.code],Ea({errorCodes:pme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=OMe(r,i.start);if(!o)return;let s=pr.ChangeTracker.with(t,l=>WMe(l,r,o));return[ia(q$,s,f.Wrap_in_JSX_fragment,q$,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[q$],getAllCodeActions:e=>vs(e,pme,(t,r)=>{let i=OMe(e.sourceFile,r.start);i&&WMe(t,e.sourceFile,i)})})}});function FMe(e,t){let r=so(e,t),i=ii(r.parent.parent,V0);if(!i)return;let o=mu(i.parent)?i.parent:ii(i.parent.parent,Tm);if(o)return{indexSignature:i,container:o}}function oZe(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function zMe(e,t,{indexSignature:r,container:i}){let s=(mu(i)?i.members:i.type.members).filter(m=>!V0(m)),l=Ga(r.parameters),d=L.createTypeParameterDeclaration(void 0,ta(l.name,Fe),l.type),p=L.createMappedTypeNode(NN(r)?L.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=L.createIntersectionTypeNode([...EN(i),p,...s.length?[L.createTypeLiteralNode(s)]:Xe]);e.replaceNode(t,i,oZe(i,h))}var X$,fme,aZe=bt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";si(),Ta(),X$="fixConvertToMappedObjectType",fme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ea({errorCodes:fme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=FMe(r,i.start);if(!o)return;let s=pr.ChangeTracker.with(t,d=>zMe(d,r,o)),l=yr(o.container.name);return[ia(X$,s,[f.Convert_0_to_mapped_object_type,l],X$,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[X$],getAllCodeActions:e=>vs(e,fme,(t,r)=>{let i=FMe(r.file,r.start);i&&zMe(t,r.file,i)})})}}),mme,BMe,sZe=bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";si(),Ta(),mme="removeAccidentalCallParentheses",BMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ea({errorCodes:BMe,getCodeActions(e){let t=Fn(so(e.sourceFile,e.span.start),ra);if(!t)return;let r=pr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Zm(mme,r,f.Remove_parentheses)]},fixIds:[mme]})}});function GMe(e,t,r){let i=ii(so(t,r.start),d=>d.kind===135),o=i&&ii(i.parent,qv);if(!o)return;let s=o;if(Fu(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$,_me,lZe=bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";si(),Ta(),Y$="removeUnnecessaryAwait",_me=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ea({errorCodes:_me,getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>GMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(Y$,r,f.Remove_unnecessary_await,Y$,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Y$],getAllCodeActions:e=>vs(e,_me,(t,r)=>GMe(t,r.file,r))})}});function VMe(e,t){return Fn(so(e,t.start),Mc)}function jMe(e,t,r){if(!t)return;let i=R.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 hme,$$,cZe=bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";si(),Ta(),hme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],$$="splitTypeOnlyImport",Ea({errorCodes:hme,fixIds:[$$],getCodeActions:function(t){let r=pr.ChangeTracker.with(t,i=>jMe(i,VMe(t.sourceFile,t.span),t));if(r.length)return[ia($$,r,f.Split_into_two_separate_import_declarations,$$,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>vs(e,hme,(t,r)=>{jMe(t,VMe(e.sourceFile,r),e)})})}});function UMe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(so(e,t));if(s===void 0)return;let l=ii((i=s?.valueDeclaration)==null?void 0:i.parent,Vc);if(l===void 0)return;let d=hs(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function HMe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Q$,gme,dZe=bt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";si(),Ta(),Q$="fixConvertConstToLet",gme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ea({errorCodes:gme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=UMe(r,i.start,o);if(s===void 0)return;let l=pr.ChangeTracker.with(t,d=>HMe(d,r,s.token));return[hpe(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(pr.ChangeTracker.with(e,i=>{SD(e,gme,o=>{let s=UMe(o.file,o.start,t);if(s&&Em(r,ba(s.symbol)))return HMe(i,o.file,s.token)})}))},fixIds:[Q$]})}});function KMe(e,t,r){let i=so(e,t);return i.kind===27&&i.parent&&(Ma(i.parent)||fu(i.parent))?{node:i}:void 0}function JMe(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var Z$,qMe,yme,uZe=bt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";si(),Ta(),Z$="fixExpectedComma",qMe=f._0_expected.code,yme=[qMe],Ea({errorCodes:yme,getCodeActions(e){let{sourceFile:t}=e,r=KMe(t,e.span.start,e.errorCode);if(!r)return;let i=pr.ChangeTracker.with(e,o=>JMe(o,t,r));return[ia(Z$,i,[f.Change_0_to_1,";",","],Z$,[f.Change_0_to_1,";",","])]},fixIds:[Z$],getAllCodeActions:e=>vs(e,yme,(t,r)=>{let i=KMe(r.file,r.start,r.code);i&&JMe(t,e.sourceFile,i)})})}});function XMe(e,t,r,i,o){let s=so(t,r.start);if(!Fe(s)||!ra(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||!To(p)||!U0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=pZe(p.parent.parent);if(gt(h)){let m=h[0],y=!Kv(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 pZe(e){var t;if(ir(e)){if(Fu(e.parent)){let r=(t=nE(e.parent))==null?void 0:t.typeExpression.type;if(r&&If(r)&&Fe(r.typeName)&&yr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var YMe,vme,bme,fZe=bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";si(),Ta(),YMe="addVoidToPromise",vme="addVoidToPromise",bme=[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:bme,fixIds:[vme],getCodeActions(e){let t=pr.ChangeTracker.with(e,r=>XMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ia(YMe,t,f.Add_void_to_Promise_resolved_without_a_value,vme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return vs(e,bme,(t,r)=>XMe(t,r.file,r,e.program,new Set))}})}}),wd={};xa(wd,{PreserveOptionalFlags:()=>ime,addNewNodeForMemberSymbol:()=>cMe,codeFixAll:()=>vs,createCodeFixAction:()=>ia,createCodeFixActionMaybeFixAll:()=>hpe,createCodeFixActionWithoutFixAll:()=>Zm,createCombinedCodeActions:()=>ED,createFileTextChanges:()=>dCe,createImportAdder:()=>x1,createImportSpecifierResolver:()=>EYe,createJsonPropertyAssignment:()=>z$,createMissingMemberNodes:()=>Yfe,createSignatureDeclarationFromCallExpression:()=>$fe,createSignatureDeclarationFromSignature:()=>W$,createStubbedBody:()=>aB,eachDiagnostic:()=>SD,findAncestorMatchingSpan:()=>rme,findJsonProperty:()=>nme,generateAccessorFromProperty:()=>_Me,getAccessorConvertiblePropertyAtPosition:()=>yMe,getAllFixes:()=>$qe,getAllSupers:()=>ome,getArgumentTypesAndTypeParameters:()=>pMe,getFixes:()=>Yqe,getImportCompletionAction:()=>SYe,getImportKind:()=>Hpe,getJSDocTypedefNodes:()=>hYe,getNoopSymbolTrackerWithResolver:()=>AD,getPromoteTypeOnlyCompletionAction:()=>TYe,getSupportedErrorCodes:()=>qqe,importFixName:()=>Qpe,importSymbols:()=>ID,moduleSpecifierToValidIdentifier:()=>$pe,moduleSymbolToValidIdentifier:()=>Ype,parameterShouldGetTypeFromJSDoc:()=>NCe,registerCodeFix:()=>Ea,setJsonCompilerOptionValue:()=>tme,setJsonCompilerOptionValues:()=>eme,tryGetAutoImportableReferenceFromTypeNode:()=>D1,typeToAutoImportableTypeNode:()=>F$});var Ta=bt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";Qqe(),Zqe(),eXe(),rXe(),lXe(),pXe(),fXe(),mXe(),_Xe(),vXe(),CXe(),PXe(),VXe(),aYe(),sYe(),cYe(),dYe(),gYe(),yYe(),bYe(),jYe(),KYe(),XYe(),YYe(),$Ye(),e$e(),r$e(),a$e(),u$e(),E$e(),T$e(),C$e(),N$e(),M$e(),L$e(),k$e(),w$e(),W$e(),F$e(),z$e(),B$e(),G$e(),j$e(),K$e(),Y$e(),oQe(),sQe(),lQe(),uQe(),pQe(),mQe(),_Qe(),TQe(),AQe(),IQe(),PQe(),jQe(),JQe(),$Qe(),ZQe(),eZe(),tZe(),nZe(),iZe(),aZe(),sZe(),lZe(),cZe(),dZe(),uZe(),fZe()}});function mZe(e){return!!(e.kind&1)}function _Ze(e){return!!(e.kind&2)}function sB(e){return!!(e&&e.kind&4)}function pM(e){return!!(e&&e.kind===32)}function hZe(e){return sB(e)||pM(e)||Eme(e)}function gZe(e){return(sB(e)||pM(e))&&!!e.isFromPackageJson}function yZe(e){return!!(e.kind&8)}function vZe(e){return!!(e.kind&16)}function $Me(e){return!!(e&&e.kind&64)}function QMe(e){return!!(e&&e.kind&128)}function bZe(e){return!!(e&&e.kind&256)}function Eme(e){return!!(e&&e.kind&512)}function ZMe(e,t,r,i,o,s,l,d,p){var h,m,y;let E=Js(),S=l||OI(pu(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}: ${Js()-E}`),K;function B(ce,z){if(z){let q=r.getModuleSpecifierForBestExportInfo(ce,o,d);return q&&N++,q||"failed"}let ee=S||s.allowIncompleteCompletions&&D{let A=to(p.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||eLe(N.data))return N;if(!ILe(N.name,m))return;let{origin:w}=R.checkDefined(pLe(N.name,N.data,i,o)),j=y.get(t.path,N.data.exportMapKey),K=j&&S.tryResolve(j,!qc(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=lLe(Y),N.source=Ame(Y),N.sourceDisplay=[sf(Y.moduleSpecifier)],N});return S.skippedAny()||(p.isIncomplete=void 0),A});return p.entries=E,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=iLe(h),p}function Sme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function tLe(e,t,r,i,o,s){let l=so(e,t);if(!Bx(l)&&!Ym(l))return[];let d=Ym(l)?l:l.parent;if(!Ym(d))return[];let p=d.parent;if(!Xo(p))return[];let h=cu(e),m=o.includeCompletionsWithSnippetText||void 0,y=vv(d.tags,E=>$m(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=BO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),D=m?BO(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:Od.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(E.parent.parameters.indexOf(E)===y){let S=`param${y}`,A=nLe(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),N=m?nLe(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:Od.LocationPriority,insertText:m?w:void 0,isSnippet:m}}}})}function nLe(e,t,r,i,o,s,l,d,p){if(!o)return[BO(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=BO(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[BO(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?fN(E.propertyName):E.name.text;if(!A)return;let N=`${y}.${A}`;return[BO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=fN(E.propertyName);return A&&h(`${y}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function BO(e,t,r,i,o,s,l,d,p,h){if(s&&R.assertIsDefined(h),t&&(e=TZe(e,t)),s&&(e=B0(e)),i){let m="*";if(o)R.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=af(A,p)===0?268435456:0,w=l.typeToTypeNode(S,Fn(t,Xo),D);if(w){let j=s?nQ({removeComments:!0,module:d.module,target:d.target}):IE({removeComments:!0,module:d.module,target:d.target});cr(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 TZe(e,t){let r=t.getText().trim();return r.includes(` -`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function AZe(e){return{name:da(e),kind:"keyword",kindModifiers:"",sortText:Od.GlobalsOrKeywords}}function IZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function rLe(e,t,r){return{kind:4,keywordCompletions:fLe(e,t),isNewIdentifierLocation:r}}function xZe(e){switch(e){case 156:return 8;default:R.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function iLe(e){return e?.kind===80?Ru(e):void 0}function RZe(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:ee,importStatementCompletion:me,insideJsDocTagTypeExpression:ge,symbolToSortTextMap:q,hasUnresolvedAutoImports:J}=s,re=s.literals,pe=r.getTypeChecker();if(ok(e.scriptKind)===1){let Ge=CZe(N,e);if(Ge)return Ge}let xe=Fn(y,MR);if(xe&&(mae(y)||N0(y,xe.expression))){let Ge=h7(pe,xe.parent.clauses);re=re.filter(ve=>!Ge.hasValue(ve)),m.forEach((ve,Ie)=>{if(ve.valueDeclaration&&$0(ve.valueDeclaration)){let De=pe.getConstantValue(ve.valueDeclaration);De!==void 0&&Ge.hasValue(De)&&(j[Ie]={kind:256})}})}let fe=kG(),ne=oLe(e,i);if(ne&&!A&&(!m||m.length===0)&&w===0)return;let he=Ime(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 fLe(w,!ge&&cu(e)))(B&&$P(y0(Ge.name))||!B&&uet(Ge.name)||!he.has(Ge.name))&&(he.add(Ge.name),bv(fe,Ge,lB,!0));for(let Ge of $Ze(y,p))he.has(Ge.name)||(he.add(Ge.name),bv(fe,Ge,lB,!0));for(let Ge of re){let ve=PZe(e,l,Ge);he.add(ve.name),bv(fe,ve,lB,!0)}ne||NZe(e,N.pos,he,ns(i),fe);let Ce;if(l.includeCompletionsWithInsertText&&y&&!z&&!ee&&(Ce=Fn(y,fP))){let Ge=aLe(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:DZe(E),isNewIdentifierLocation:A,optionalReplacementSpan:iLe(N),entries:fe}}function oLe(e,t){return!cu(e)||!!dk(e,t)}function aLe(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=af(t,r),S=wd.createImportAdder(t,s,r,o),A=[];for(let B of h.types)if(B.flags&1024){R.assert(B.symbol,"An enum member type should have a symbol"),R.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=wd.typeToAutoImportableTypeNode(p,S,B,e,y);if(!z)return;let ee=eQ(z,y,E);if(!ee)return;A.push(ee)}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=qy(o,l?.options),w=nQ({removeComments:!0,module:i.module,target:i.target,newLine:fO(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:Od.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:R.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 DZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function CZe(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=!!hs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),d=Ru(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Od.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function NZe(e,t,r,i,o){gY(e).forEach((s,l)=>{if(s===t)return;let d=Vi(l);!r.has(d)&&$p(d,i)&&(r.add(d),bv(o,{name:d,kind:"warning",kindModifiers:"",sortText:Od.JavascriptIdentifiers,isFromUncheckedFile:!0},lB))})}function Tme(e,t,r){return typeof r=="object"?F0(r)+"n":Co(r)?rM(e,t,r):JSON.stringify(r)}function PZe(e,t,r){return{name:Tme(e,t,r),kind:"string",kindModifiers:"",sortText:Od.LocationPriority}}function MZe(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 ee,me;let ge,q,J=Oq(r),re,pe,xe=Ame(y),fe,ne,he,Ce=p.getTypeChecker(),Ge=y&&vZe(y),ve=y&&_Ze(y)||m;if(y&&mZe(y))ge=m?`this${Ge?"?.":""}[${cLe(l,j,h)}]`:`this${Ge?"?.":"."}${h}`;else if((ve||Ge)&&S){ge=ve?m?`[${cLe(l,j,h)}]`:`[${h}]`:h,(Ge||S.questionDotToken)&&(ge=`?.${ge}`);let De=hs(S,25,l)||hs(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=Ru(A,l))),y&&yZe(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=ii(S.parent,qv)?S.parent:S.expression;J=dc(be.getStart(l),S.end)}if(pM(y)&&(fe=[sf(y.moduleSpecifier)],N&&({insertText:ge,replacementSpan:J}=zZe(h,N,y,D,l,w,j),pe=j.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(ne=!0),K===0&&i&&((ee=Tc(i.pos,l,i))==null?void 0:ee.kind)!==28&&(Ul(i.parent.parent)||Zp(i.parent.parent)||hp(i.parent.parent)||Vy(i.parent)||((me=Fn(i.parent,mc))==null?void 0:me.getLastToken(l))===i||Zu(i.parent)&&ys(l,i.getEnd()).line!==ys(l,s).line)&&(xe="ObjectLiteralMemberWithComma/",ne=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&K===3&&LZe(e,o,l)){let De,Le=sLe(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&&QMe(y)&&({insertText:ge,isSnippet:pe,labelDetails:he}=y,j.useLabelDetailsInCompletionEntries||(h=h+he.detail,he=void 0),xe="ObjectLiteralMethodSnippet/",t=Od.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||mde(Et)))?(ge=`${B0(h)}=${rM(l,j,"$1")}`,pe=!0):De=!0),De&&(ge=`${B0(h)}={$1}`,pe=!0)}if(ge!==void 0&&!j.includeCompletionsWithInsertText)return;(sB(y)||pM(y))&&(re=lLe(y),ne=!N);let Ie=Fn(o,E6);if(Ie?.kind===275){let De=y0(h);Ie&&De&&(De===135||Ij(De))&&(ge=`${h} as ${h}_`)}return{name:h,kind:$y.getSymbolKind(Ce,e,o),kindModifiers:$y.getSymbolModifiers(Ce,e),sortText:t,source:xe,hasAction:ne?!0:void 0,isRecommended:BZe(e,E,Ce)||void 0,insertText:ge,filterText:q,replacementSpan:J,sourceDisplay:fe,labelDetails:he,isSnippet:pe,isPackageJsonImport:gZe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:re,...z?{symbol:e}:void 0}}function LZe(e,t,r){return ir(t)?!1:!!(e.flags&106500)&&(di(t)||t.parent&&t.parent.parent&&Xc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&OR(t)&&di(t.parent))}function sLe(e,t,r,i,o,s,l,d,p,h){let m=Fn(l,di);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:fO(qy(e,h?.options))}),w=wd.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}=kZe(p,N,d),z=Y&64&&m.modifierFlagsCache&64,ee=[];if(wd.addNewNodeForMemberSymbol(s,m,N,{program:t,host:e},i,w,me=>{let ge=0;z&&(ge|=64),Xc(me)&&A.getMemberOverrideModifierStatus(m,me,s)===1&&(ge|=16),ee.length||(K=me.modifierFlagsCache|ge),me=L.replaceModifiers(me,K),ee.push(me)},j,wd.PreserveOptionalFlags.Property,!!z),ee.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,ee=ee.map(re=>L.replaceModifiers(re,K)),ce?.length){let re=ee[ee.length-1];GT(re)&&(ee[ee.length-1]=L.replaceDecoratorsAndModifiers(re,ce.concat(v0(re)||[])))}let J=131073;h?E=D.printAndFormatSnippetList(J,L.createNodeArray(ee),N,h):E=D.printSnippetList(J,L.createNodeArray(ee),N)}return{insertText:E,filterText:S,isSnippet:y,importAdder:w,eraseRange:B}}function kZe(e,t,r){if(!e||ys(t,r).line>ys(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(Vo(e.parent)&&e.parent.modifiers&&(i|=x_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(vd)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=wZe(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 wZe(e){if(Sa(e))return e.kind;if(Fe(e)){let t=tE(e);if(t&&Ny(t))return t}}function OZe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),y=WZe(e,r,m,i,o,l);if(!y)return;let E=nQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:fO(qy(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=IE({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 WZe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=al(No(p),!1),m=d.getWidenedType(d.getTypeOfSymbolAtLocation(e,t)),E=33554432|(af(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,wd.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!gh(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=pr.createWriter(Wy(e)),i=IE(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=B0(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?pr.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 ys(this,Y)}},w=_7(N,A),j=va(S,Y=>{let B=pr.assignPositionsToNode(Y);return kc.formatNodeGivenIndentation(B,D,A.languageVariant,0,0,{...N,options:w})}),K=t?Ey(bo(j,t),(Y,B)=>yW(Y.span,B.span)):j;return pr.applyChanges(D.text,K)}function h(E,S,A){let N=m(E,S,A);return t?pr.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 ys(this,B)}},w=_7(N,A),j=pr.assignPositionsToNode(S),K=kc.formatNodeGivenIndentation(j,D,A.languageVariant,0,0,{...N,options:w}),Y=t?Ey(bo(K,t),(B,ce)=>yW(B.span,ce.span)):K;return pr.applyChanges(D.text,Y)}}function lLe(e){let t=e.fileName?void 0:Yf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return pM(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 FZe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return eLe(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 zZe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=B0(rM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=wd.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}${B0(e)}${m} = require(${p})${N}`};case 1:return{replacementSpan:d,insertText:`import${S}${B0(e)}${m} from ${p}${N}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${B0(e)} from ${p}${N}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${B0(e)}${m} } from ${p}${N}`}}}function cLe(e,t,r){return/^\d+$/.test(r)?r:rM(e,t,r)}function BZe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Ame(e){if(sB(e))return Yf(e.moduleSymbol.name);if(pM(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Ime(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z,ee,me=!1){let ge=Js(),q=set(i,o),J=dO(l),re=p.getTypeChecker(),pe=new Map;for(let ne=0;neze.getSourceFile()===o.getSourceFile()));pe.set(ve,be),bv(t,Et,lB,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Js()-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(Ml(o.parent))return!0;if(ii(q,Oi)&&ne.valueDeclaration===q)return!1;let ve=ne.valueDeclaration??((Ce=ne.declarations)==null?void 0:Ce[0]);if(q&&ve&&(ml(q)&&ml(ve)||To(q)&&To(ve))){let De=ve.pos,Le=To(q)?q.parent.parameters:CT(q.parent)?void 0:q.parent.typeParameters;if(De>=q.pos&&Le&&DeTme(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||Ame(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 jZe(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=dLe(e,t,r,i,o,s,d);switch(D.type){case"request":{let{request:w}=D;switch(w.kind){case 1:return ME.getJSDocTagNameCompletionDetails(y);case 2:return ME.getJSDocTagCompletionDetails(y);case 3:return ME.getJSDocParameterNameCompletionDetails(y);case 4:return gt(w.keywordCompletions,j=>j.name===y)?xme(y,"keyword",5):void 0;default:return R.assertNever(w)}}case"symbol":{let{symbol:w,location:j,contextToken:K,origin:Y,previousToken:B}=D,{codeActions:ce,sourceDisplay:z}=UZe(y,j,K,Y,w,e,s,m,r,i,B,l,d,S,E,p),ee=Eme(Y)?Y.symbolName:w.name;return Rme(w,ee,h,r,j,p,ce,z)}case"literal":{let{literal:w}=D;return xme(Tme(r,d,w),"string",typeof w=="string"?8:7)}case"cases":{let w=aLe(N.parent,r,d,e.getCompilerOptions(),s,e,void 0);if(w?.importAdder.hasFixes()){let{entry:j,importAdder:K}=w,Y=pr.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 wme().some(w=>w.name===y)?xme(y,"keyword",5):void 0;default:R.assertNever(D)}}function xme(e,t,r){return cB(e,"",t,[ep(e,r)])}function Rme(e,t,r,i,o,s,l,d){let{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,E=>$y.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return cB(t,$y.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 UZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N){if(S?.moduleSpecifier&&m&&bLe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[sf(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:ce,eraseRange:z}=sLe(l,s,d,E,e,o,t,h,r,y);if(ce||z)return{sourceDisplay:void 0,codeActions:[{changes:pr.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($Me(i)){let ce=wd.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,E);return R.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(A==="ObjectLiteralMemberWithComma/"&&r){let ce=pr.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)||pM(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:w}=i,j=D.getMergedSymbol(yd(o.exportSymbol||o,D)),K=r?.kind===30&&lu(r.parent),{moduleSpecifier:Y,codeAction:B}=wd.getImportCompletionAction(j,w,S?.exportMapKey,p,e,K,l,s,y,m&&Fe(m)?m.getStart(p):h,E,N);return R.assert(!S?.moduleSpecifier||Y===S.moduleSpecifier),{sourceDisplay:[sf(Y)],codeActions:[B]}}function HZe(e,t,r,i,o,s,l){let d=dLe(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function KZe(e,t,r){return Wl(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!ioe(o)?Dme(o,e,r):void 0})}function JZe(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=ii(o,MR);return s?oX(s,i):void 0;case 19:return mP(o)&&!og(o.parent)&&!q0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=KO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):i7(e.kind)&&ur(o)&&i7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Dme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ga(i):e.parent&&(qZe(e.parent)?e:Dme(e.parent,t,r))}function qZe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function uLe(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),y=oLe(r,i),E=Js(),S=so(r,o);t("getCompletionData: Get current token: "+(Js()-E)),E=Js();let A=Hy(r,o,S);t("getCompletionData: Is inside comment: "+(Js()-E));let N=!1,D=!1;if(A){if(ude(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=QZe(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||!Lg(S)&&(S.parent.kind!==355||S.parent.name!==S))&&(N=H(We))),!N&&$m(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=Js();let w=!N&&cu(r),j=rQ(o,r),K=j.previousToken,Y=j.contextToken;t("getCompletionData: Get previous token: "+(Js()-E));let B=S,ce,z=!1,ee=!1,me=!1,ge=!1,q=!1,J=!1,re,pe=zu(r,o),xe=0,fe=!1,ne=0;if(Y){let ue=bLe(Y,r);if(ue.keywordCompletion){if(ue.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[AZe(ue.keywordCompletion)],isNewIdentifierLocation:ue.isNewIdentifierLocation};xe=xZe(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?rLe(xe,w,ua()):void 0;let We=Y.parent;if(Y.kind===25||Y.kind===29)switch(z=Y.kind===25,ee=Y.kind===29,We.kind){case 211:ce=We,B=ce.expression;let Ne=hR(ce);if(Fl(Ne)||(ra(B)||Xo(B))&&B.end===Y.pos&&B.getChildCount(r)&&Ka(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),R.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(!vLe(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||ee)en();else if(me)ve=m.getJsxIntrinsicTagNamesAt(pe),R.assertEachIsDefined(ve,"getJsxIntrinsicTagNames() should all be defined"),Yt(),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(!Yt())return xe?rLe(xe,w,fe):void 0;t("getCompletionData: Semantic work: "+(Js()-he));let tt=K&&JZe(K,o,r,m),_t=!ii(K,as)&&!J?to(tt&&(tt.isUnion()?tt.types:[tt]),ue=>ue.isLiteral()&&!(ue.flags&1024)?ue.value:void 0):[],Je=K&&tt&&KZe(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||ee,importStatementCompletion:re,hasUnresolvedAutoImports:Ge,flags:ne};function ft(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(ft(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=Ov(B),We=ue&&!B.isTypeOf||Xh(B.parent)||Qw(Y,r,m),Ne=Pz(B);if(Xu(B)||ue||wr(B)){let It=ql(B.parent);It&&(fe=!0);let Dt=m.getSymbolAtLocation(B);if(Dt&&(Dt=yd(Dt,m),Dt.flags&1920)){let Kt=m.getExportsOfModule(Dt);R.assertEachIsDefined(Kt,"getExportsOfModule() should all be defined");let En=gi=>m.isValidPropertyAccess(ue?B:B.parent,gi.name),wn=gi=>Nme(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 Kt)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&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(er||ee)&&(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 Kt=z&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(Kt||ee)&&(It=It.getNonNullableType(),Kt&&(Dt=!0))}Dn(It,!!(B.flags&65536),Dt)}}}function Dn(ue,We,Ne){fe=!!ue.getStringIndexType(),ee&>(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 Kt of Dt.getApparentProperties())m.isValidPropertyAccessForCompletions(It,Dt,Kt)&&Kn(Kt,!0,Ne)}}function Kn(ue,We,Ne){var It;let Dt=Wl(ue.declarations,Bn=>ii(No(Bn),Xa));if(Dt){let Bn=pn(Dt.expression),gi=Bn&&m.getSymbolAtLocation(Bn),xi=gi&&Dme(gi,Y,m),er=xi&&ba(xi);if(er&&Em(Et,er)){let Fr=ve.length;ve.push(xi);let ho=xi.parent;if(!ho||!tO(ho)||m.tryGetMemberInModuleExportsAndProperties(xi.name,ho)!==xi)De[Fr]={kind:wn(2)};else{let Pi=qc(Yf(ho.name))?(It=SF(ho))==null?void 0:It.fileName:void 0,{moduleSpecifier:Ri}=(Ie||(Ie=wd.createImportSpecifierResolver(r,e,d,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Pi,isFromPackageJson:!1,moduleSymbol:ho,symbol:xi,targetFlags:yd(xi,m).flags}],o,mE(pe))||{};if(Ri){let Kr={kind:wn(6),moduleSymbol:ho,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),Kt(ue),ve.push(ue)}}else En(ue),Kt(ue),ve.push(ue);function Kt(Bn){iet(Bn)&&(Le[ba(Bn)]=Od.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:wr(ue)?pn(ue.expression):void 0}function Yt(){return(vn()||kn()||uo()||Be()||ct()||lt()||qt()||Rt()||hi()||(Li(),1))===1}function qt(){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=bo(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&&R.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&&!mE(K);ve=bo(ve,m.getSymbolsInScope(We,Ne)),R.assertEachIsDefined(ve,"getSymbolsInScope() should all be defined");for(let Dt=0;DtEn.getSourceFile()===r)&&(Le[ba(Kt)]=Od.GlobalsOrKeywords),It&&!(Kt.flags&111551)){let En=Kt.declarations&&Vr(Kt.declarations,t2);if(En){let wn={kind:64,declaration:En};De[Dt]=wn}}}if(s.includeCompletionsWithInsertText&&We.kind!==312){let Dt=m.tryGetThisTypeAt(We,!1,di(We.parent)?We:void 0);if(Dt&&!ret(Dt,r,m))for(let Kt of sQ(Dt,m))De[ve.length]={kind:1},ve.push(Kt),Le[ba(Kt)]=Od.SuggestedClassMembers}Ye(),be&&(xe=Y&&cT(Y.parent)?6:7)}function Eo(){return re?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Gq(e.getCompilerOptions())?!0:gde(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&&oE(pe.parent)||!Er(Y)&&(Qw(Y,r,m)||Xh(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(!Eo()||(R.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),Kt=mO(r,d,e,s,h),En=(We=d.getPackageJsonAutoImportProvider)==null?void 0:We.call(d),wn=l?void 0:oM(r,s,d);ZMe("collectAutoImports",d,Ie||(Ie=wd.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!re,mE(pe),gi=>{Kt.search(r.path,me,(xi,er)=>{if(!$p(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:ILe(xi,It)},(xi,er,Fr,ho)=>{if(l&&!gt(xi,ws=>l.source===Yf(ws.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 Io=Ri.exportKind===1,xn=Io&&mR(Ri.symbol)||Ri.symbol;Wt(xn,{kind:Kr?32:4,moduleSpecifier:Kr,symbolName:er,exportMapKey:ho,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:Io,moduleSymbol:Ri.moduleSymbol,isFromPackageJson:Ri.isFromPackageJson})}),Ge=gi.skippedAny(),ne|=gi.resolvedAny()?8:0,ne|=gi.resolvedBeyondLimit()?16:0});function Bn(gi){let xi=ii(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 Wt(ue,We){let Ne=ba(ue);Le[Ne]!==Od.GlobalsOrKeywords&&(De[ve.length]=We,Le[Ne]=re?Od.LocationPriority:Od.AutoImportSuggestions,ve.push(ue))}function In(ue,We){ir(pe)||ue.forEach(Ne=>{if(!li(Ne))return;let It=iQ(Ne,ns(i),void 0,0,!1);if(!It)return;let{name:Dt}=It,Kt=OZe(Ne,Dt,We,e,d,i,s,p);if(!Kt)return;let En={kind:128,...Kt};ne|=32,De[ve.length]=En,ve.push(Ne)})}function li(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=Js(),Ne=za(ue)||Tt(ue)||Bt(ue)||Ao(ue)||P4(ue);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Js()-We)),Ne}function Ao(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 za(ue){return(XU(ue)||DV(ue))&&(Xw(ue,o)||o===ue.end&&(!!ue.isUnterminated||XU(ue)))}function vn(){let ue=tet(Y);if(!ue)return 0;let Ne=(QI(ue.parent)?ue.parent:void 0)||ue,It=yLe(Ne,m);if(!It)return 0;let Dt=m.getTypeFromTypeNode(Ne),Kt=sQ(It,m),En=sQ(Dt,m),wn=new Set;return En.forEach(Bn=>wn.add(Bn.escapedName)),ve=bo(ve,jr(Kt,Bn=>!wn.has(Bn.escapedName))),Ce=0,fe=!0,1}function kn(){let ue=ve.length,We=XZe(Y,o,r);if(!We)return 0;Ce=0;let Ne,It;if(We.kind===210){let Dt=oet(We,m);if(Dt===void 0)return We.flags&67108864?2:0;let Kt=m.getContextualType(We,4),En=(Kt||Dt).getStringIndexType(),wn=(Kt||Dt).getNumberIndexType();if(fe=!!En||!!wn,Ne=aQ(Dt,Kt,We,m),It=We.properties,Ne.length===0&&!wn)return 0}else{R.assert(We.kind===206),fe=!1;let Dt=A_(We.parent);if(!qx(Dt))return R.fail("Root declaration is not variable-like.");let Kt=Lv(Dt)||!!gd(Dt)||Dt.parent.parent.kind===250;if(!Kt&&Dt.kind===169&&(ht(Dt.parent)?Kt=!!m.getContextualType(Dt.parent):(Dt.parent.kind===174||Dt.parent.kind===178)&&(Kt=ht(Dt.parent.parent)&&!!m.getContextualType(Dt.parent.parent))),Kt){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,R.checkDefined(It));ve=bo(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?ii(Y.parent,E6):Jz(Y)?ii(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)),Kt=It.filter(En=>En.escapedName!=="default"&&!Dt.has(En.escapedName));return ve=bo(ve,Kt),Kt.length||(xe=0),1}function ct(){if(Y===void 0)return 0;let ue=Y.kind===19||Y.kind===28?ii(Y.parent,n1):Y.kind===59?ii(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)?ii(Y.parent,xf):void 0;if(!We)return 0;let Ne=Fn(We,Um(Yi,ql));return Ce=5,fe=!1,(ue=Ne.locals)==null||ue.forEach((It,Dt)=>{var Kt,En;ve.push(It),(En=(Kt=Ne.symbol)==null?void 0:Kt.exports)!=null&&En.has(Dt)&&(Le[ba(It)]=Od.OptionalMember)}),1}function Rt(){let ue=eet(r,Y,pe,o);if(!ue)return 0;if(Ce=3,fe=!0,xe=Y.kind===42?0:di(ue)?2:3,!di(ue))return 1;let We=Y.kind===27?Y.parent.parent:Y.parent,Ne=Xc(We)?du(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=di(ue)&&Ne&16?pI(S_(ue)):EN(ue),Dt=va(It,Kt=>{let En=m.getTypeAtLocation(Kt);return Ne&256?En?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,ue)):En&&m.getPropertiesOfType(En)});ve=bo(ve,k(Dt,ue.members,Ne)),gn(ve,(Kt,En)=>{let wn=Kt?.valueDeclaration;if(wn&&Xc(wn)&&wn.name&&Xa(wn.name)){let Bn={kind:512,symbolName:m.symbolToString(Kt)};De[En]=Bn}})}return 1}function se(ue){return!!ue.parent&&To(ue.parent)&&Nl(ue.parent.parent)&&(aN(ue.kind)||Lg(ue))}function ke(ue){if(ue){let We=ue.parent;switch(ue.kind){case 21:case 28:return Nl(ue.parent)?ue.parent:void 0;default:if(se(ue))return We.parent}}}function st(ue){if(ue){let We,Ne=Fn(ue.parent,It=>di(It)?"quit":Fs(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||pt(Ne);case 19:return Ne===266;case 30:return Ne===263||Ne===231||Ne===264||Ne===265||vI(Ne);case 126:return Ne===172&&!di(We.parent);case 26:return Ne===169||!!We.parent&&We.parent.kind===207;case 125:case 123:case 124:return Ne===169&&!Nl(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,Oi)&&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 Xo(ue.parent)&&!Ul(ue.parent)}if(dB(oQ(ue))&&lQ(ue)||se(ue)&&(!Fe(ue)||aN(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 Vo(ue.parent)}if(Fn(ue.parent,di)&&ue===K&&He(ue,o))return!1;let Dt=uE(ue.parent,172);if(Dt&&ue!==K&&di(K.parent.parent)&&o<=K.end){if(He(ue,K.end))return!1;if(ue.kind!==64&&(Sw(Dt)||hF(Dt)))return!0}return Lg(ue)&&!Zu(ue.parent)&&!M_(ue.parent)&&!((di(ue.parent)||mu(ue.parent)||ml(ue.parent))&&(ue!==K||o>K.end))}function He(ue,We){return ue.kind!==64&&(ue.kind===27||!Sf(ue.end,We,r))}function pt(ue){return vI(ue)&&ue!==176}function Bt(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&&!Qw(ue,r,m)}function dn(ue,We){if(We.length===0)return ue;let Ne=new Set,It=new Set;for(let Kt of We){if(Kt.kind!==303&&Kt.kind!==304&&Kt.kind!==208&&Kt.kind!==174&&Kt.kind!==177&&Kt.kind!==178&&Kt.kind!==305||H(Kt))continue;let En;if(Vy(Kt))un(Kt,Ne);else if(qa(Kt)&&Kt.propertyName)Kt.propertyName.kind===80&&(En=Kt.propertyName.escapedText);else{let wn=No(Kt);En=wn&&T_(wn)?AN(wn):void 0}En!==void 0&&It.add(En)}let Dt=ue.filter(Kt=>!It.has(Kt.escapedName));return Me(Ne,Dt),Dt}function un(ue,We){let Ne=ue.expression,It=m.getSymbolAtLocation(Ne),Dt=It&&m.getTypeOfSymbolAtLocation(It,Ne),Kt=Dt&&Dt.properties;Kt&&Kt.forEach(En=>{We.add(En.name)})}function U(){ve.forEach(ue=>{if(ue.flags&16777216){let We=ba(ue);Le[We]=Le[We]??Od.OptionalMember}})}function Me(ue,We){if(ue.size!==0)for(let Ne of We)ue.has(Ne.name)&&(Le[ba(Ne)]=Od.MemberDeclaredBySpreadAssignment)}function Nt(ue){for(let We=ue;We!It.has(Dt.escapedName)&&!!Dt.declarations&&!(Tf(Dt)&2)&&!(Dt.valueDeclaration&&su(Dt.valueDeclaration)))}function ie(ue,We){let Ne=new Set,It=new Set;for(let Kt of We)H(Kt)||(Kt.kind===291?Ne.add(QN(Kt.name)):o1(Kt)&&un(Kt,It));let Dt=ue.filter(Kt=>!Ne.has(Kt.escapedName));return Me(It,Dt),Dt}function H(ue){return ue.getStart(r)<=o&&o<=ue.getEnd()}}function XZe(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)?ii(o.parent,Ma):void 0;case 134:return ii(o.parent,Ma);case 80:if(e.text==="async"&&Zu(e.parent))return e.parent.parent;{if(Ma(e.parent.parent)&&(Vy(e.parent)||Zu(e.parent)&&ys(r,e.getEnd()).line!==ys(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)||Zp(o.parent)||hp(o.parent))&&Ma(o.parent.parent))return o.parent.parent;if(Vy(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&&(Kh(r)||Wu(r.kind))?{contextToken:Tc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function pLe(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(R.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:FZe(t,e,l)}):void 0}function iQ(e,t,r,i,o){if(bZe(r))return;let s=hZe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&D2(s.charCodeAt(0))||q2(e))return;let l={name:s,needsConvertPropertyAccess:!1};if($p(s,t,o?1:0)||e.valueDeclaration&&su(e.valueDeclaration))return l;switch(i){case 3:return Eme(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:R.assertNever(i)}}function fLe(e,t){if(!t)return mLe(e);let r=e+8+1;return uB[r]||(uB[r]=mLe(e).filter(i=>!YZe(y0(i.name))))}function mLe(e){return uB[e]||(uB[e]=wme().filter(t=>{let r=y0(t.name);switch(e){case 0:return!1;case 1:return hLe(r)||r===138||r===144||r===156||r===145||r===128||$P(r)&&r!==157;case 5:return hLe(r);case 2:return dB(r);case 3:return _Le(r);case 4:return aN(r);case 6:return $P(r)||r===87;case 7:return $P(r);case 8:return r===156;default:return R.assertNever(e)}}))}function YZe(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 _Le(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 hLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!e6(e)&&!dB(e)}function oQ(e){return Fe(e)?tE(e)??0:e.kind}function $Ze(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Mc(o)||Xl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:da(132),kind:"keyword",kindModifiers:"",sortText:Od.GlobalsOrKeywords})}return r}function QZe(e,t){return Fn(e,r=>Bx(r)&&qw(r,t)?!0:Ym(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=ZZe(s,r,i);return s.isClass()&&gLe(l)?[]:o?jr(l,d):l;function d(p){return Nn(p.declarations)?gt(p.declarations,h=>h.parent!==r):!0}}function ZZe(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()&&gLe(i.getApparentProperties())))):e.getApparentProperties()}function gLe(e){return gt(e,t=>!!(Tf(t)&6))}function sQ(e,t){return e.isUnion()?R.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):R.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function eet(e,t,r,i){switch(r.kind){case 358:return ii(r.parent,kI);case 1:let o=ii(Qs(ta(r.parent,Yi).statements),kI);if(o&&!hs(o,20,e))return o;break;case 81:if(ii(r.parent,Vo))return Fn(r,di);break;case 80:{if(tE(r)||Vo(r.parent)&&r.parent.initializer===r)return;if(lQ(r))return Fn(r,kI)}}if(t){if(r.kind===137||Fe(t)&&Vo(t.parent)&&di(r))return Fn(t,di);switch(t.kind){case 64:return;case 27:case 20:return lQ(r)&&r.parent.name===r?r.parent.parent:ii(r,kI);case 19:case 28:return ii(t.parent,kI);default:if(kI(r)){if(ys(e,t.getEnd()).line!==ys(e,i).line)return r;let o=di(t.parent.parent)?dB:_Le;return o(t.kind)||t.kind===42||Fe(t)&&o(tE(t)??0)?t.parent.parent:void 0}return}}}function tet(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 yLe(e,t){if(!e)return;if(ji(e)&&gF(e.parent))return t.getTypeArgumentConstraint(e);let r=yLe(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 net(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&kde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ki(r)&&!!id(r);case"<":return!!r&&r.kind===30&&(!ur(r.parent)||vLe(r.parent));case"/":return!!r&&(as(r)?!!W2(r):r.kind===44&&J0(r.parent));case" ":return!!r&&lP(r)&&r.parent.kind===312;default:return R.assertNever(t)}}function vLe({left:e}){return Fl(e)}function ret(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 iet(e){return!!(e.valueDeclaration&&du(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function oet(e,t){let r=t.getContextualType(e);if(r)return r;let i=Ly(e.parent);if(ur(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function bLe(e,t){var r,i,o;let s,l=!1,d=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(d||s===156),isTopLevelTypeOnly:!!((i=(r=ii(d,Mc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ii(d,Zc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&SLe(d,e),replacementSpan:aet(d)};function p(){let h=e.parent;if(Zc(h)){let m=h.getLastToken(t);if(Fe(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Cme(h.moduleReference)?h:void 0}if(SLe(h,e)&&TLe(h.parent))return h;if(Fg(h)||Yv(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),TLe(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(lP(e)&&Yi(h))return s=156,e;if(lP(e)&&Mc(h))return s=156,Cme(h.moduleSpecifier)?h:void 0}}function aet(e){var t;if(!e)return;let r=Fn(e,Um(Mc,Zc))??e,i=r.getSourceFile();if(IT(r,i))return Ru(r,i);R.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?ELe((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 tb(s)}function ELe(e){var t;return Vr((t=ii(e,Fg))==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 SLe(e,t){return Qu(e)&&(e.isTypeOnly||t===e.name&&Jz(t))}function TLe(e){if(!Cme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Fg(e)){let t=ELe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Cme(e){var t;return Fl(e)?!0:!((t=ii(bh(e)?e.expression:e,as))!=null&&t.text)}function set(e,t){if(!e)return;let r=Fn(e,o=>R0(o)||ALe(o)||Yo(o)?"quit":(To(o)||ml(o))&&!V0(o.parent)),i=Fn(t,o=>R0(o)||ALe(o)||Yo(o)?"quit":Oi(o));return r||i}function ALe(e){return e.parent&&zs(e.parent)&&(e.parent.body===e||e.kind===39)}function Nme(e,t,r=new Map){return i(e)||i(yd(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=>Nme(s,t,r))}}function cet(e,t){let r=yd(e,t).declarations;return!!Nn(r)&&oo(r,f7)}function ILe(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))(Mme||{}),Lme=(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))(Lme||{}),kme=(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))(kme||{}),uB=[],wme=Eu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:da(t),kind:"keyword",kindModifiers:"",sortText:Od.GlobalsOrKeywords});return e})}});function Ome(){let e=new Map;function t(r){let i=e.get(r.name);(!i||Gme[i.kind]({name:Zh(S.value,y),kindModifiers:"",kind:"string",sortText:Od.LocationPriority,replacementSpan:Oq(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return R.assertNever(e)}}function _et(e,t,r,i,o,s,l,d){if(!i||!as(i))return;let p=DLe(t,i,r,o,s,d);return p&&het(e,i,p,t,o.getTypeChecker(),l)}function het(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Vr(r.paths,d=>d.name===e);return l&&cB(e,RLe(l.extension),l.kind,[sf(e)])}case 1:{let l=Vr(r.symbols,d=>d.name===e);return l&&Rme(l,l.name,o,i,t,s)}case 2:return Vr(r.types,l=>l.value===e)?cB(e,"","string",[sf(e)]):void 0;default:return R.assertNever(r)}}function xLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:RLe(d),sortText:Od.LocationPriority,replacementSpan:l}))}}function RLe(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 R.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return R.assertNever(e)}}function DLe(e,t,r,i,o,s){let l=i.getTypeChecker(),d=Wme(t.parent);switch(d.kind){case 201:{let S=Wme(d.parent);return S.kind===205?{kind:0,paths:PLe(e,t,i,o,s)}:p(S)}case 303:return Ma(d.parent)&&d.name===t?vet(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===ms(A)?CLe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!ket(t)&&!Op(d)){let S=KO.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&yet(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:PLe(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 qw(y,r)?CLe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(Wme(m.parent));if(!S)return;let A=get(m,d);return S.kind===1?{kind:1,symbols:S.symbols.filter(N=>!zo(A,N.name)),hasIndexSignature:S.hasIndexSignature}:{kind:2,types:S.types.filter(N=>!zo(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 Wme(e){switch(e.kind){case 196:return V2(e);case 217:return Ly(e);default:return e}}function get(e,t){return to(e.types,r=>r!==t&&Jv(r)&&Da(r.literal)?r.literal.text:void 0)}function yet(e,t,r,i){let o=!1,s=new Map,l=lu(e)?R.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(lu(e)){let y=i.getTypeOfPropertyOfType(m,mk(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 CLe(e){return e&&{kind:1,symbols:jr(e.getApparentProperties(),t=>!(t.valueDeclaration&&su(t.valueDeclaration))),hasIndexSignature:iX(e)}}function vet(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 fM(e,t,r){return{name:e,kind:t,extension:r}}function Fme(e){return fM(e,"directory",void 0)}function NLe(e,t,r){let i=Met(e,t),o=e.length===0?void 0:hd(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(rl)||s.includes(zL)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function PLe(e,t,r,i,o){return NLe(t.text,t.getStart(e)+1,bet(e,t,r,i,o))}function bet(e,t,r,i,o){let s=Nd(t.text),l=as(t)?r.getModeForUsageLocation(e,t):void 0,d=e.path,p=ai(d),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=zme(h,1,e,m,o,l);return Let(s)||!h.baseUrl&&!h.paths&&(cp(s)||Mne(s))?Eet(s,p,h,i,d,y):xet(s,p,l,h,i,y,m)}function zme(e,t,r,i,o,s){return{extensionsToSearch:pm(Tet(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function Eet(e,t,r,i,o,s){return r.rootDirs?Iet(r.rootDirs,e,t,s,r,i,o):Oo(GO(e,t,s,i,!0,o).values())}function Tet(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=[...GN(e),r],o=pu(e);return qz(o)?sk(e,i):i}function Aet(e,t,r,i){e=e.map(s=>Fc(ma(cp(s)?s:Yr(t,s))));let o=Wl(e,s=>mm(s,r,t,i)?r.substr(s.length):void 0);return _0([...e.map(s=>Yr(s,o)),r].map(s=>Yb(s)),eT,Vd)}function Iet(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=Aet(e,d,r,p);return _0(va(h,m=>Oo(GO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function GO(e,t,r,i,o,s,l=Ome()){var d;e===void 0&&(e=""),e=Nd(e),Ry(e)||(e=ai(e)),e===""&&(e="."+rl),e=Fc(e);let p=Iv(t,e),h=Ry(p)?p:ai(p);if(!o){let S=Ode(h,i);if(S){let N=kN(S,i).typesVersions;if(typeof N=="object"){let D=(d=g3(N))==null?void 0:d.paths;if(D){let w=ai(S),j=p.slice(Fc(w).length);if(LLe(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&&xg(S,s,t,m)===0)continue;let{name:A,extension:N}=MLe(nc(S),i.getCompilationSettings(),r,!1);l.add(fM(A,"script",N))}let E=s7(i,h);if(E)for(let S of E){let A=nc(ma(S));A!=="@types"&&l.add(Fme(A))}return l}function MLe(e,t,r,i){let o=tS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Og(o)};if(r.referenceKind===0)return{name:e,extension:Og(e)};let s=yw({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,vk))return{name:e,extension:Og(e)};let d=tS.tryGetJSExtensionForFile(e,t);return d?{name:fE(e,d),extension:d}:{name:e,extension:Og(e)}}if(!i&&(s[0]===0||s[0]===1)&&bc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Tu(e),extension:Og(e)};let l=tS.tryGetJSExtensionForFile(e,t);return l?{name:fE(e,l),extension:l}:{name:e,extension:Og(e)}}function LLe(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 el(S,E)};return kLe(e,!1,t,r,i,o,jh(s),l,d)}function kLe(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:Ret(E,S,r,i,o,t&&N,s).map(({name:w,kind:j,extension:K})=>fM(w,j,K))})}}return h.forEach(y=>y.results.forEach(E=>e.add(E))),m!==void 0}function xet(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=Ome(),m=pu(i);if(d){let E=ma(Yr(o.getCurrentDirectory(),d));GO(e,E,s,o,!1,void 0,h)}if(p){let E=s6(i,o);LLe(h,e,E,s,o,p)}let y=OLe(e);for(let E of Cet(e,y,l))h.add(fM(E,"external module name",void 0));if(zLe(o,i,t,y,s,h),qz(m)){let E=!1;if(y===void 0)for(let S of Pet(o,t)){let A=fM(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)&&GO(e,N,s,o,!1,void 0,h)};if(y&&X6(i)){let A=S;S=N=>{let D=Wc(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(uO(o,K)){let B=kN(K,o).exports;if(B){if(typeof B!="object"||B===null)return;let ce=jh(B),z=D.join("/")+(D.length&&Ry(e)?"/":""),ee=Qv(i,r);kLe(h,!0,z,j,s,o,ce,me=>pI(wLe(B[me],ee)),dK);return}}return A(N)}}hm(t,S)}}return Oo(h.values())}function wLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!So(e)){for(let r in e)if(r==="default"||t.includes(r)||hw(t,r)){let i=e[r];return wLe(i,t)}}}function OLe(e){return Bme(e)?Ry(e)?e:ai(e):void 0}function Ret(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=WLe("",i,y,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return va(t,m=>WLe(p,i,m,o,s,l));function h(m,y){return ao(m,r)?[{name:Yb(m),kind:y,extension:void 0}]:Xe}}function WLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=vR(r);if(l===void 0||Co(l))return;let d=Iv(l.prefix),p=Ry(l.prefix)?d:ai(d),h=Ry(l.prefix)?"":nc(d),m=Bme(e),y=m?Ry(e)?e:ai(e):void 0,E=m?Yr(p,h+y):p,S=ma(l.suffix),A=S&&a6("_"+S),N=A?[fE(S,A),S]:[S],D=ma(Yr(t,E)),w=m?D:Fc(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(Bme(z))return Fme(Wc(FLe(z))[1]);let{name:ee,extension:me}=MLe(z,s.getCompilationSettings(),i,o);return fM(ee,"script",me)}}),Y=S?Xe:to(s7(s,D),ce=>ce==="node_modules"?void 0:Fme(ce));return[...K,...Y];function B(ce){return Wl(N,z=>{let ee=Det(ma(ce),w,z);return ee===void 0?void 0:FLe(ee)})}}function Det(e,t,r){return ao(e,t)&&El(e,r)?e.slice(t.length,e.length-r.length):void 0}function FLe(e){return e[0]===rl?e.slice(1):e}function Cet(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=Fc(t);return o.map(l=>jC(l,s))}return o}function Net(e,t,r,i){let o=so(e,t),s=Uh(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=BLe.exec(d);if(!p)return;let[,h,m,y]=p,E=ai(e.path),S=m==="path"?GO(y,E,zme(r,0,e),i,!0,e.path):m==="types"?zLe(i,r,E,OLe(y),zme(r,1,e)):R.fail();return NLe(y,l.pos+h.length,Oo(S.values()))}function zLe(e,t,r,i,o,s=Ome()){let l=new Map,d=c7(()=>RP(t,e))||Xe;for(let h of d)p(h);for(let h of sX(r,e)){let m=Yr(ai(h),"node_modules/@types");p(m)}return s;function p(h){if(l7(e,h))for(let m of s7(e,h)){let y=gw(m);if(!(t.types&&!zo(t.types,y)))if(i===void 0)l.has(y)||(s.add(fM(y,"external module name",void 0)),l.set(y,!0));else{let E=Yr(h,m),S=aU(i,y,ky(e));S!==void 0&&GO(S,E,o,e,!1,void 0,s)}}}}function Pet(e,t){if(!e.readFile||!e.fileExists)return Xe;let r=[];for(let i of sX(t,e)){let o=kN(i,e);for(let s of GLe){let l=o[s];if(l)for(let d in l)As(l,d)&&!ao(d,"@types/")&&r.push(d)}}return r}function Met(e,t){let r=Math.max(e.lastIndexOf(rl),e.lastIndexOf(zL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||$p(e.substr(i,o),99)?void 0:hd(t+i,o)}function Let(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 Bme(e){return e.includes(rl)}function ket(e){return ra(e.parent)&&Jc(e.parent.arguments)===e&&Fe(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Gme,BLe,GLe,wet=bt({"src/services/stringCompletions.ts"(){"use strict";jse(),si(),Vme(),Gme={directory:0,script:1,"external module name":2},BLe=/^(\/\/\/\s*_et,getStringLiteralCompletions:()=>fet});var Oet=bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";wet()}}),C1={};xa(C1,{CompletionKind:()=>kme,CompletionSource:()=>Mme,SortText:()=>Od,StringCompletions:()=>uQ,SymbolOriginInfoKind:()=>Lme,createCompletionDetails:()=>cB,createCompletionDetailsForSymbol:()=>Rme,getCompletionEntriesFromSymbols:()=>Ime,getCompletionEntryDetails:()=>jZe,getCompletionEntrySymbol:()=>HZe,getCompletionsAtPosition:()=>EZe,getPropertiesForObjectExpression:()=>aQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Pme,moduleSpecifierResolutionLimit:()=>cQ});var Vme=bt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";pet(),Oet()}});function jme(e,t,r,i){let o=Bet(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=Wet(e,t,o,l,r,i);return{indirectUsers:h,...Fet(p,s,l.exportKind,r,d)}}}function Wet(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)A0(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:ee}=z;if(ee.kind===80){h.push(ee);break}}}break;case 80:break;case 271:D(B,B.name,Qr(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(Het(B,s));break;case 205:!m&&B.isTypeOf&&!B.qualifier&&N(B)&&w(B.getSourceFile(),!0),h.push(B);break;default:R.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);R.assert(z.kind===312||z.kind===267),B||zet(z,Y,s)?w(z,!0):w(z)}}function w(K,Y=!1){if(R.assert(!m),!p(K)||(y.push(K),!Y))return;let ce=s.getMergedSymbol(K.symbol);if(!ce)return;R.assert(!!(ce.flags&1536));let z=j(ce);if(z)for(let ee of z)ig(ee)||w(pB(ee),!0)}function j(K){return r.get(ba(K).toString())}}function Fet(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){Hme(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:R.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 zet(e,t,r){let i=r.getSymbolAtLocation(t);return!!jLe(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 VLe(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})}}ULe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(qs(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Bet(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),ULe(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 jLe(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 ULe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(vN(r),r);else jLe(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;Hme(i)&&t(i,i.moduleReference.expression);break}}})}function HLe(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)&&ur(m)?E(m,!1):void 0:l(t.exportSymbol,d(h));{let S=Vet(h,e);if(S&&Qr(S,32))return Zc(S)&&S.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(S.name)}:l(t,d(S));if(vh(h))return l(t,0);if(Ml(h))return y(h);if(Ml(m))return y(m);if(ur(h))return E(h,!0);if(ur(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(ta(S.left,Ms))):t;return D&&l(D,N)}}function s(){if(!jet(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=Uet(h,r),h.escapedName==="export="&&(h=Get(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=Ume(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return Qr(p,2048)?1:0}}function Get(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=R.checkDefined(e.valueDeclaration);if(Ml(o))return(r=ii(o.expression,b_))==null?void 0:r.symbol;if(ur(o))return(i=ii(o.right,b_))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function Vet(e,t){let r=Oi(e)?e:qa(e)?Lx(e):void 0;return r?e.name!==t||Y0(r.parent)?void 0:Pl(r.parent.parent)?r.parent.parent:void 0:e}function jet(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Hme(t);case 276:return!t.propertyName;case 273:case 274:return R.assert(t.name===e),!0;case 208:return ir(e)&&D0(t.parent.parent);default:return!1}}function Ume(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return tO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Uet(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(wr(r)&&$h(r.expression)&&!Ki(r.name))return t.getSymbolAtLocation(r);if(Zu(r)&&ur(r.parent.parent)&&zl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Het(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:(R.assert(t.kind===268),ta(t.parent,pQ))}function pQ(e){return e.kind===267&&e.name.kind===11}function Hme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Kme,Jme,Ket=bt({"src/services/importTracker.ts"(){"use strict";si(),Kme=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Kme||{}),Jme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Jme||{})}});function lg(e,t=1){return{kind:t,node:e.name||e,context:Jet(e)}}function qme(e){return e&&e.kind===void 0}function Jet(e){if(Hd(e))return eA(e);if(e.parent){if(!Hd(e.parent)&&!Ml(e.parent)){if(ir(e)){let r=ur(e.parent)?e.parent:Ms(e.parent)&&ur(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)||J0(e.parent))return e.parent.parent;if(OT(e.parent)||K0(e.parent)||rN(e.parent))return e.parent;if(as(e)){let r=W2(e);if(r){let i=Fn(r,o=>Hd(o)||Hi(o)||Bx(o));return Hd(i)?eA(i):i}}let t=Fn(e,Xa);return t?eA(t.parent):void 0}if(e.parent.name===e||Nl(e.parent)||Ml(e.parent)||(yI(e.parent)||qa(e.parent))&&e.parent.propertyName===e||e.kind===90&&Qr(e.parent,2080))return eA(e.parent)}}function eA(e){if(e)switch(e.kind){case 260:return!Vc(e.parent)||e.parent.declarations.length!==1?e:Pl(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 Qc(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Ky(e.parent)?eA(Fn(e.parent,t=>ur(t)||Fx(t))):e;case 255:return{start:Vr(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Xme(e,t,r){if(!r)return;let i=qme(r)?mB(r.start,t,r.end):mB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function qet(e,t,r,i,o){let s=zu(i,o),l={use:1},d=N1.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=N1.getAdjustedNode(s,l),m=Xet(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:to(d,({definition:y,references:E})=>y&&{definition:p.runWithCancellationToken(t,S=>Qet(y,S,s)),references:E.map(S=>ett(S,m))})}function Xet(e){return e.kind===90||!!bN(e)||U2(e)||e.kind===137&&Nl(e.parent)}function Yet(e,t,r,i,o){let s=zu(i,o),l,d=KLe(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=IL(d),m=new Map;for(;!h.isEmpty();){let y=h.dequeue();if(!Em(m,rs(y.node)))continue;l=Tn(l,y);let E=KLe(e,t,r,y.node,y.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return mn(l,h=>ntt(h,p))}function KLe(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(lg(d))),l}else if(i.kind===108||Ou(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[lg(l.valueDeclaration)]}else return JLe(o,i,e,r,t,{implementations:!0,use:1})}function $et(e,t,r,i,o,s,l){return mn(qLe(N1.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function JLe(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return qLe(N1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function qLe(e){return e&&va(e,t=>t.references)}function Qet(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:y,kind:E}=XLe(m,t,r),S=y.map(D=>D.text).join(""),A=m.declarations&&Jc(m.declarations),N=A?No(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&&$y.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),XT(m),m).displayParts||[sf("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:tb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ep(`"${e.reference.fileName}"`,8)]};default:return R.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,...Xme(s,o,h)}}function fB(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:mB(Xa(e)?e.expression:e,t)}}function XLe(e,t,r){let i=N1.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Jc(e.declarations)||r,{displayParts:s,symbolKind:l}=$y.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Zet(e,t,r,i,o){return{...fQ(e),...i&&ttt(e,t,r,o)}}function ett(e,t){let r=YLe(e);return t?{...r,isDefinition:e.kind!==0&&$Le(e.node,t)}:r}function YLe(e){let t=fQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:$me(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,...Xme(r,t,e.context)}}}function ttt(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||iO(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)&&ur(y.parent)&&$h(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 zo(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)&&Ms(e.node.parent)){let o=Uq(i);return{prefixText:o,suffixText:o}}return Cf}function ntt(e,t){let r=fQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...rtt(i,t)}}else return{...r,kind:"",displayParts:[]}}function rtt(e,t){let r=t.getSymbolAtLocation(Hd(e)&&e.name?e.name:e);return r?XLe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Xd(21),sf("object literal"),Xd(22)]}:e.kind===231?{kind:"local class",displayParts:[Xd(21),sf("anonymous local class"),Xd(22)]}:{kind:aS(e),displayParts:[]}}function itt(e){let t=fQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=$me(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&&(R.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function Yme(e){return e.kind===0?e.textSpan:mB(e.node,e.node.getSourceFile())}function $me(e){let t=bN(e);return!!t&&ott(t)||e.kind===90||LI(e)}function $Le(e,t){var r;if(!t)return!1;let i=bN(e)||(e.kind===90?e.parent:U2(e)||e.kind===137&&Nl(e.parent)?e.parent.parent:void 0),o=i&&ur(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function ott(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!Ky(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||Y0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return R.failBadSyntaxKind(e)}}var Qme,Zme,e_e,N1,att=bt({"src/services/findAllReferences.ts"(){"use strict";si(),t_e(),Qme=(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))(Qme||{}),Zme=(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))(Zme||{}),e_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(e_e||{}),(e=>{function t(Be,ct,lt,Rt,se,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,se);if(un)return un}let Tt=lt.getTypeChecker(),He=Tt.getSymbolAtLocation(Nl(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,se)}return}if(He.escapedName==="export=")return h(lt,He.parent,!1,Rt,st);let pt=l(He,lt,Rt,se,ke,st);if(pt&&!(He.flags&33554432))return pt;let Bt=s(ct,He,Tt),hn=Bt&&l(Bt,lt,Rt,se,ke,st),dn=E(He,ct,Rt,st,Tt,se,ke);return d(lt,pt,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(se=>se.fileName))){var se,ke;let st=(se=ct.getSourceFile(Be))==null?void 0:se.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,se=ct.get(Be.path)||Xe;for(let ke of se)if(xE(ke)){let st=lt.getSourceFileByPath(ke.file),G=jP(lt,ke);ZR(G)&&(Rt=Tn(Rt,{kind:0,fileName:st.fileName,textSpan:tb(G)}))}return Rt}function s(Be,ct,lt){if(Be.parent&&zk(Be.parent)){let Rt=lt.getAliasedSymbol(ct),se=lt.getMergedSymbol(Rt);if(Rt!==se)return se}}function l(Be,ct,lt,Rt,se,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=yd(G,Tt),d(ct,et,E(Be,void 0,lt,ke,Tt,Rt,se))}function d(Be,...ct){let lt;for(let Rt of ct)if(!(!Rt||!Rt.length)){if(!lt){lt=Rt;continue}for(let se of Rt){if(!se.definition||se.definition.type!==0){lt.push(se);continue}let ke=se.definition.symbol,st=Kl(lt,et=>!!et.definition&&et.definition.type===0&&et.definition.symbol===ke);if(st===-1){lt.push(se);continue}let G=lt[st];lt[st]={definition:G.definition,references:G.references.concat(se.references).sort((et,Tt)=>{let He=p(Be,et),pt=p(Be,Tt);if(He!==pt)return el(He,pt);let Bt=Yme(et),hn=Yme(Tt);return Bt.start!==hn.start?el(Bt.start,hn.start):el(Bt.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,se){R.assert(!!ct.valueDeclaration);let ke=to(VLe(Be,Rt,ct),G=>{if(G.kind==="import"){let et=G.literal.parent;if(Jv(et)){let Tt=ta(et.parent,ig);if(lt&&!Tt.qualifier)return}return lg(G.literal)}else if(G.kind==="implicit"){let et=G.literal.text!==Vv&&EP(G.referencingFile,Tt=>Tt.transformFlags&2?og(Tt)||OT(Tt)||q0(Tt)?Tt:void 0:"skip")||G.referencingFile.statements[0]||G.referencingFile;return lg(et)}else return{kind:0,fileName:G.referencingFile.fileName,textSpan:tb(G.ref)}});if(ct.declarations)for(let G of ct.declarations)switch(G.kind){case 312:break;case 267:se.has(G.getSourceFile().fileName)&&ke.push(lg(G.name));break;default:R.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(se.has(et.fileName)){let Tt=ur(G)&&wr(G.left)?G.left.expression:Ml(G)?R.checkDefined(hs(G,95,et)):No(G)||G;ke.push(lg(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($P(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:[lg(Be)]}];if(Jw(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,se,ke,st){let G=ct&&N(Be,ct,se,!kn(st))||Be,et=ct?yi(ct,G):7,Tt=[],He=new j(lt,Rt,ct?A(ct):0,se,ke,et,st,Tt),pt=!kn(st)||!G.declarations?void 0:Vr(G.declarations,Kd);if(pt)Et(pt.name,G,pt,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 Bt=He.createSearch(ct,G,void 0,{allSearchSymbols:ct?on(G,ct,se,st.use===2,!!st.providePrefixAndSuffixTextForRename,!!st.implementations):[G]});S(G,He,Bt)}return Tt}function S(Be,ct,lt){let Rt=me(Be);if(Rt)ve(Rt,Rt.getSourceFile(),lt,ct,!(Yi(Rt)&&!zo(ct.sourceFiles,Rt)));else for(let se of ct.sourceFiles)ct.cancellationToken.throwIfCancellationRequested(),z(se,lt,ct)}function A(Be){switch(Be.kind){case 176:case 137:return 1;case 80:if(di(Be.parent))return R.assert(Be.parent.name===Be),2;default:return 0}}function N(Be,ct,lt,Rt){let{parent:se}=ct;return Kd(se)&&Rt?be(ct,Be,se,lt):Wl(Be.declarations,ke=>{if(!ke.parent){if(Be.flags&33554432)return;R.fail(`Unexpected symbol at ${R.formatSyntaxKind(ct.kind)}: ${R.formatSymbol(Be)}`)}return gp(ke.parent)&&Kv(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,se,ke,st,G,et){this.sourceFiles=ct,this.sourceFilesSet=lt,this.specialSearchKind=Rt,this.checker=se,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=jme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ct,lt,this.options.use===2)}createSearch(ct,lt,Rt,se={}){let{text:ke=Yf(vl(mR(lt)||w(lt)||lt)),allSearchSymbols:st=[lt]}=se,G=fl(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=>zo(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})),(se,ke)=>Rt.push(lg(se,ke))}addStringOrCommentReference(ct,lt){this.result.push({definition:void 0,references:[{kind:0,fileName:ct,textSpan:lt}]})}markSearchedSymbols(ct,lt){let Rt=rs(ct),se=this.sourceFileToSeenSymbols[Rt]||(this.sourceFileToSeenSymbols[Rt]=new Set),ke=!1;for(let st of lt)ke=Jb(se,ba(st))||ke;return ke}}function K(Be,ct,lt,Rt){let{importSearches:se,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 se)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,se,ke,st,G){let et=jme(Be,new Set(Be.map(Bt=>Bt.fileName)),ct,lt),{importSearches:Tt,indirectUsers:He,singleReferences:pt}=et(Rt,{exportKind:st?1:0,exportingModuleSymbol:se},!1);for(let[Bt]of Tt)G(Bt);for(let Bt of pt)Fe(Bt)&&ig(Bt.parent)&&G(Bt);for(let Bt of He)for(let hn of pe(Bt,st?"default":ke)){let dn=ct.getSymbolAtLocation(hn),un=gt(dn?.declarations,U=>!!ii(U,Ml));Fe(hn)&&!yI(hn.parent)&&(dn===Rt||un)&&G(hn)}}e.eachExportReference=Y;function B(Be,ct){return Ie(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 ee(Be,ct){return Ky(Be.parent.parent)?ct.getPropertySymbolOfDestructuringAssignment(Be):void 0}function me(Be){let{declarations:ct,flags:lt,parent:Rt,valueDeclaration:se}=Be;if(se&&(se.kind===218||se.kind===231))return se;if(!ct)return;if(lt&8196){let G=Vr(ct,et=>fp(et,2)||su(et));return G?uE(G,263):void 0}if(ct.some(iO))return;let ke=Rt&&!(Be.flags&262144);if(ke&&!(tO(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,Ls(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,se=lt){let ke=dp(Be.parent,Be.parent.parent)?Ga(ct.getSymbolsOfParameterPropertyDeclaration(Be.parent,Be.text)):ct.getSymbolAtLocation(Be);if(ke)for(let st of pe(lt,ke.name,se)){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),se=>!!bN(se)).reduce((se,ke)=>{let st=Rt(ke);return!gt(se.declarationNames)||st===se.depth?(se.declarationNames.push(ke),se.depth=st):stHe===se)&&Rt(st,et))return!0}return!1}e.someSignatureUsage=re;function pe(Be,ct,lt=Be){return to(xe(Be,ct,lt),Rt=>{let se=zu(Be,Rt);return se===Be?void 0:se})}function xe(Be,ct,lt=Be){let Rt=[];if(!ct||!ct.length)return Rt;let se=Be.text,ke=se.length,st=ct.length,G=se.indexOf(ct,lt.pos);for(;G>=0&&!(G>lt.end);){let et=G+st;(G===0||!Qb(se.charCodeAt(G-1),99))&&(et===ke||!Qb(se.charCodeAt(et),99))&&Rt.push(G),G=se.indexOf(ct,G+st+1)}return Rt}function fe(Be,ct){let lt=Be.getSourceFile(),Rt=ct.text,se=to(pe(lt,Rt,Be),ke=>ke===ct||Jw(ke)&&Lz(ke,Rt)===ct?lg(ke):void 0);return[{definition:{type:1,node:ct},references:se}]}function ne(Be,ct){switch(Be.kind){case 81:if(yE(Be.parent))return!0;case 80:return Be.text.length===ct.length;case 15:case 11:{let lt=Be;return(kz(lt)||Aq(Be)||nde(Be)||ra(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),se=>{let ke=se.parent;if(Jx(ke))return lg(ke)})));return lt.length?[{definition:{type:2,node:lt[0].node},references:lt}]:void 0}function Ce(Be,ct,lt,Rt){let se=va(Be,ke=>(lt.throwIfCancellationRequested(),to(pe(ke,da(ct),ke),st=>{if(st.kind===ct&&(!Rt||Rt(st)))return lg(st)})));return se.length?[{definition:{type:2,node:se[0].node},references:se}]: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,se){if(Rt.markSearchedSymbols(ct,lt.allSearchSymbols))for(let ke of xe(ct,lt.text,Be))De(ct,ke,lt,Rt,se)}function Ie(Be,ct){return!!(qT(Be)&ct.searchMeaning)}function De(Be,ct,lt,Rt,se){let ke=zu(Be,ct);if(!ne(ke,lt.text)){!Rt.options.implementations&&(Rt.options.findInStrings&&y1(Be,ct)||Rt.options.findInComments&&hde(Be,ct))&&Rt.addStringOrCommentReference(Be.fileName,hd(ct,lt.text.length));return}if(!Ie(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)){R.assert(ke.kind===80),Et(ke,st,G,lt,Rt,se);return}if(iN(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=li(lt,st,ke,Rt);if(!et){Ft(st,lt,Rt);return}switch(Rt.specialSearchKind){case 0:se&&_t(ke,et,Rt);break;case 1:Je(ke,Be,lt,Rt);break;case 2:ft(ke,lt,Rt);break;default:R.assertNever(Rt.specialSearchKind)}ir(ke)&&qa(ke.parent)&&D0(ke.parent.parent.parent)&&(st=ke.parent.symbol,!st)||tt(ke,st,lt,Rt)}function Le(Be,ct,lt,Rt){let se=Rt.referenceAdder(lt.symbol);_t(ct,lt.symbol,Rt),gn(Be,ke=>{Au(ke.name)&&se(ke.name.left)})}function Et(Be,ct,lt,Rt,se,ke,st){R.assert(!st||!!se.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:G,propertyName:et,name:Tt}=lt,He=G.parent,pt=be(Be,ct,lt,se.checker);if(!st&&!Rt.includes(pt))return;if(et?Be===et?(He.moduleSpecifier||Bt(),ke&&se.options.use!==2&&se.markSeenReExportRHS(Tt)&&_t(Tt,R.checkDefined(lt.symbol),se)):se.markSeenReExportRHS(Be)&&Bt():se.options.use===2&&Tt.escapedText==="default"||Bt(),!kn(se.options)||st){let dn=Be.escapedText==="default"||lt.name.escapedText==="default"?1:0,un=R.checkDefined(lt.symbol),U=Ume(un,dn,se.checker);U&&K(Be,un,U,se)}if(Rt.comingFrom!==1&&He.moduleSpecifier&&!et&&!kn(se.options)){let hn=se.checker.getExportSpecifierLocalTargetSymbol(lt);hn&&ce(hn,se)}function Bt(){ke&&_t(Be,pt,se)}}function be(Be,ct,lt,Rt){return ze(Be,lt)&&Rt.getExportSpecifierLocalTargetSymbol(lt)||ct}function ze(Be,ct){let{parent:lt,propertyName:Rt,name:se}=ct;return R.assert(Rt===Be||se===Be),Rt?Rt===Be:!lt.parent.moduleSpecifier}function tt(Be,ct,lt,Rt){let se=HLe(Be,ct,Rt.checker,lt.comingFrom===1);if(!se)return;let{symbol:ke}=se;se.kind===0?kn(Rt.options)||ce(ke,Rt):K(Be,ke,se.exportInfo,Rt)}function Ft({flags:Be,valueDeclaration:ct},lt,Rt){let se=Rt.checker.getShorthandAssignmentValueSymbol(ct),ke=ct&&No(ct);!(Be&33554432)&&ke&<.includes(se)&&_t(ke,se,Rt)}function _t(Be,ct,lt){let{kind:Rt,symbol:se}="kind"in ct?ct:{kind:void 0,symbol:ct};if(lt.options.use===2&&Be.kind===90)return;let ke=lt.referenceAdder(se);lt.options.implementations?Yt(Be,ke,lt):ke(Be,Rt)}function Je(Be,ct,lt,Rt){qP(Be)&&_t(Be,lt.symbol,Rt);let se=()=>Rt.referenceAdder(lt.symbol);if(di(Be.parent))R.assert(Be.kind===90||Be.parent.name===Be),Zt(lt.symbol,ct,se());else{let ke=za(Be);ke&&(Dn(ke,se()),pn(ke,Rt))}}function ft(Be,ct,lt){_t(Be,ct.symbol,lt);let Rt=Be.parent;if(lt.options.use===2||!di(Rt))return;R.assert(Rt.name===Be);let se=lt.referenceAdder(ct.symbol);for(let ke of Rt.members)bI(ke)&&na(ke)&&ke.body&&ke.body.forEachChild(function st(G){G.kind===110?se(G):!Xo(G)&&!di(G)&&G.forEachChild(st)})}function Zt(Be,ct,lt){let Rt=en(Be);if(Rt&&Rt.declarations)for(let se of Rt.declarations){let ke=hs(se,137,ct);R.assert(se.kind===176&&!!ke),lt(ke)}Be.exports&&Be.exports.forEach(se=>{let ke=se.valueDeclaration;if(ke&&ke.kind===174){let st=ke.body;st&&ua(st,110,G=>{qP(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){R.assert(Rt.kind===176);let se=Rt.body;se&&ua(se,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 Yt(Be,ct,lt){if(Lg(Be)&&$i(Be.parent)){ct(Be);return}if(Be.kind!==80)return;Be.parent.kind===304&&Ao(Be,lt.checker,ct);let Rt=qt(Be);if(Rt){ct(Rt);return}let se=Fn(Be,G=>!Au(G.parent)&&!ji(G.parent)&&!lT(G.parent)),ke=se.parent;if(hF(ke)&&ke.type===se&<.markSeenContainingTypeReference(ke))if(Lv(ke))st(ke.initializer);else if(Xo(ke)&&ke.body){let G=ke.body;G.kind===241?x0(G,et=>{et.expression&&st(et.expression)}):st(G)}else cT(ke)&&st(ke.expression);function st(G){hi(G)&&ct(G)}}function qt(Be){return Fe(Be)||wr(Be)?qt(Be.parent):Gy(Be)?ii(Be.parent.parent,Um(di,mu)):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 se=ba(Be)+","+ba(ct),ke=lt.get(se);if(ke!==void 0)return ke;lt.set(se,!1);let st=!!Be.declarations&&Be.declarations.some(G=>EN(G).some(et=>{let Tt=Rt.getTypeAtLocation(et);return!!Tt&&!!Tt.symbol&&uo(Tt.symbol,ct,lt,Rt)}));return lt.set(se,st),st}function Li(Be){let ct=T2(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&=Fv(ct),ct=ct.parent;break;default:return}let Rt=ct.getSourceFile(),se=to(pe(Rt,"super",ct),ke=>{if(ke.kind!==108)return;let st=T2(ke,!1);return st&&na(st)===!!lt&&st.parent.symbol===ct.symbol?lg(ke):void 0});return[{definition:{type:0,symbol:ct.symbol},references:se}]}function Eo(Be){return Be.kind===80&&Be.parent.kind===169&&Be.parent.name===Be}function Qn(Be,ct,lt){let Rt=wu(Be,!1,!1),se=256;switch(Rt.kind){case 174:case 173:if(bm(Rt)){se&=Fv(Rt),Rt=Rt.parent;break}case 172:case 171:case 176:case 177:case 178:se&=Fv(Rt),Rt=Rt.parent;break;case 312:if(oc(Rt)||Eo(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=wu(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&&na(Tt)===!!se;case 312:return Tt.kind===312&&!oc(Tt)&&!Eo(et)}}))).map(G=>lg(G));return[{definition:{type:3,node:Wl(ke,G=>To(G.node.parent)?G.node:void 0)||Be},references:ke}]}function Ur(Be,ct,lt,Rt){let se=Fz(Be,lt),ke=va(ct,st=>(Rt.throwIfCancellationRequested(),to(pe(st,Be.text),G=>{if(as(G)&&G.text===Be.text)if(se){let et=Fz(G,lt);if(se!==lt.getStringType()&&(se===et||Er(G,lt)))return lg(G,2)}else return HI(G)&&!IT(G,st)?void 0:lg(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,se,ke){let st=[];return Ye(Be,ct,lt,Rt,!(Rt&&se),(G,et,Tt)=>{Tt&&In(Be)!==In(Tt)&&(Tt=void 0),st.push(Tt||et||G)},()=>!ke),st}function Ye(Be,ct,lt,Rt,se,ke,st){let G=PO(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=>Bt(ie,4));if(U)return U;let Me=ee(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=Bt(Be);if(Tt)return Tt;if(Be.valueDeclaration&&dp(Be.valueDeclaration,Be.valueDeclaration.parent)){let dn=lt.getSymbolsOfParameterPropertyDeclaration(ta(Be.valueDeclaration,To),Be.name);return R.assert(dn.length===2&&!!(dn[0].flags&1)&&!!(dn[1].flags&4)),Bt(Be.flags&1?dn[1]:dn[0])}let He=dl(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 se?dn=iO(ct.parent)?Qz(lt,ct.parent):void 0:dn=hn(Be,lt),dn&&Bt(dn,4)}if(R.assert(Rt),se){let dn=hn(Be,lt);return dn&&Bt(dn,4)}function Bt(dn,un){return Wl(lt.getRootSymbols(dn),U=>ke(dn,U,void 0,un)||(U.parent&&U.parent.flags&96&&st(U)?Wt(U.parent,U.name,lt,Me=>ke(dn,U,Me,un)):void 0))}function hn(dn,un){let U=dl(dn,208);if(U&&iO(U))return Qz(un,U)}}function Wt(Be,ct,lt,Rt){let se=new Map;return ke(Be);function ke(st){if(!(!(st.flags&96)||!Em(se,ba(st))))return Wl(st.declarations,G=>Wl(EN(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?!!(du(Be.valueDeclaration)&256):!1}function li(Be,ct,lt,Rt){let{checker:se}=Rt;return Ye(ct,lt,se,!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,se))))}function yi(Be,ct){let lt=qT(Be),{declarations:Rt}=ct;if(Rt){let se;do{se=lt;for(let ke of Rt){let st=Uw(ke);st<&&(lt|=st)}}while(lt!==se)}return lt}e.getIntersectingMeaningFromDeclarations=yi;function $i(Be){return Be.flags&33554432?!(mu(Be)||Tm(Be)):qx(Be)?Lv(Be):Fs(Be)?!!Be.body:di(Be)||l2(Be)}function Ao(Be,ct,lt){let Rt=ct.getSymbolAtLocation(Be),se=ct.getShorthandAssignmentValueSymbol(Rt.valueDeclaration);if(se)for(let ke of se.getDeclarations())Uw(ke)&1&<(ke)}e.getReferenceEntriesForShorthandPropertyAssignment=Ao;function ua(Be,ct,lt){Bo(Be,Rt=>{Rt.kind===ct&<(Rt),ua(Rt,ct,lt)})}function za(Be){return Uj(Mz(Be).parent)}function vn(Be,ct,lt){let Rt=aD(Be)?Be.parent:void 0,se=Rt&<.getTypeAtLocation(Rt.expression),ke=to(se&&(se.isUnionOrIntersection()?se.types:se.symbol===ct.parent?void 0:[se]),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={}))}}),ks={};xa(ks,{Core:()=>N1,DefinitionKind:()=>Qme,EntryKind:()=>Zme,ExportKind:()=>Kme,FindReferencesUse:()=>e_e,ImportExport:()=>Jme,createImportTracker:()=>jme,findModuleReferences:()=>VLe,findReferenceOrRenameEntries:()=>$et,findReferencedSymbols:()=>qet,getContextNode:()=>eA,getExportInfo:()=>Ume,getImplementationsAtPosition:()=>Yet,getImportOrExportSymbol:()=>HLe,getReferenceEntriesForNode:()=>JLe,getTextSpanOfEntry:()=>Yme,isContextWithStartAndEndNode:()=>qme,isDeclarationOfSymbol:()=>$Le,isWriteAccessForReference:()=>$me,nodeEntry:()=>lg,toContextSpan:()=>Xme,toHighlightSpan:()=>itt,toReferenceEntry:()=>YLe,toRenameLocation:()=>Zet});var t_e=bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";Ket(),att()}});function QLe(e,t,r,i,o){var s;let l=e2e(t,r,e),d=l&&[ytt(l.reference.fileName,l.fileName,l.unverified)]||Xe;if(l?.file)return d;let p=zu(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 ltt(m,p)||Xe;if(Jw(p)){let D=Lz(p.parent,p.text);return D?[n_e(m,D,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let D=Fn(p.parent,j=>Al(j)?"quit":Fs(j));return D?[_B(m,D)]:void 0;case 90:if(!_P(p.parent))break;case 84:let w=Fn(p.parent,pP);if(w)return[gtt(w,t)];break}if(p.kind===135){let D=Fn(p,j=>Fs(j));return D&>(D.modifiers,j=>j.kind===134)?[_B(m,D)]:void 0}if(p.kind===127){let D=Fn(p,j=>Fs(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),n_e(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,Jre)),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:hd(0,0),failedAliasResolution:E,isAmbient:bd(D.resolvedFileName),unverified:S!==p}]}if(!y)return bo(d,mtt(p,m));if(i&&oo(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let A=btt(m,p);if(A&&!(lu(p.parent)&&Ett(A))){let D=_B(m,A,E);if(m.getRootSymbols(y).some(w=>stt(w,A)))return[D];{let w=mM(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=>jO(j,m,D,p,!1,E)):Xe;return bo(w,ZLe(m,p))}if(rc(p)&&qa(h)&&tm(h.parent)&&p===(h.propertyName||h.name)){let D=rO(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&&mM(m,K,p)})}let N=ZLe(m,p);return bo(d,N.length?N:mM(m,y,p,E))}function stt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Pc(t.parent)||!S0(t.parent)&&e===((r=ii(t.parent,b_))==null?void 0:r.symbol)}function ZLe(e,t){let r=PO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return va(J7(r,e,i,!1),o=>mM(e,o,t))}return Xe}function ltt(e,t){let r=Fn(t,Xc);if(!(r&&r.name))return;let i=Fn(r,di);if(!i)return;let o=S_(i);if(!o)return;let s=ms(o.expression),l=$c(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 mM(e,p,t)}function e2e(e,t,r){var i,o;let s=_M(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=_M(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=_M(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)&&qc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||Iv(ai(e.fileName),p.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function ctt(e,t){let r=t.symbol.name;if(!i_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function t2e(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!i_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function dtt(e,t,r,i){var o,s;if(kr(t)&4&&ctt(e,t))return VO(e.getTypeArguments(t)[0],e,r,i);if(t2e(e,t)&&t.aliasTypeArguments)return VO(t.aliasTypeArguments[0],e,r,i);if(kr(t)&32&&t.target&&t2e(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 VO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function utt(e,t,r){let i=zu(t,r);if(i===t)return;if(Jx(i.parent)&&i.parent.name===i)return VO(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=ptt(o,l,e),p=d&&VO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,VO(l,e,i,s)];return m.length?[...dtt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?mM(e,yd(o,e),i,s):void 0}function VO(e,t,r,i){return va(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&mM(t,o.symbol,r,i))}function ptt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ga(i))}}function ftt(e,t,r){let i=QLe(e,t,r);if(!i||i.length===0)return;let o=_M(t.referencedFiles,r)||_M(t.typeReferenceDirectives,r)||_M(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:tb(o)};let s=zu(t,r),l=hd(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function mtt(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&&_tt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function _tt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function htt(e){if(!yN(e))return!1;let t=Fn(e,r=>Pc(r)?!0:yN(r)?!1:"quit");return!!t&&zl(t)===5}function mM(e,t,r,i,o){let s=jr(t.declarations,y=>y!==o),l=jr(s,y=>!htt(y)),d=gt(l)?l:s;return p()||h()||mn(d,y=>jO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(qP(r)||r.kind===137)){let y=Vr(s,di)||R.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?Nl:Xo),A=S.filter(N=>!!N.body);return S.length?A.length!==0?A.map(N=>jO(N,e,t,r)):[jO(Ka(S),e,t,r,!1,i)]:void 0}}function jO(e,t,r,i,o,s){let l=t.symbolToString(r),d=$y.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return n_e(t,e,d,l,p,o,s)}function n_e(e,t,r,i,o,s,l,d){let p=t.getSourceFile();if(!d){let h=No(t)||t;d=Ru(h,p)}return{fileName:p.fileName,textSpan:d,kind:r,name:i,containerKind:void 0,containerName:o,...ks.toContextSpan(d,p,ks.getContextNode(t)),isLocal:!r_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function gtt(e,t){let r=ks.getContextNode(e),i=Ru(qme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ks.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function r_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Lv(t.parent)&&t.parent.initializer===t)return r_e(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 r_e(e,t.parent);default:return!1}}function _B(e,t,r){return jO(t,e,t.symbol,t,!1,r)}function _M(e,t){return Vr(e,r=>JL(r,t))}function ytt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function vtt(e){let t=Fn(e,i=>!aD(i)),r=t?.parent;return r&&S0(r)&&BF(r)===t?r:void 0}function btt(e,t){let r=vtt(t),i=r&&e.getResolvedSignature(r);return ii(i&&i.declaration,o=>Xo(o)&&!gh(o))}function Ett(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var i_e,Stt=bt({"src/services/goToDefinition.ts"(){"use strict";si(),t_e(),i_e=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:()=>jO,findReferenceInPosition:()=>_M,getDefinitionAndBoundSpan:()=>ftt,getDefinitionAtPosition:()=>QLe,getReferenceAtPosition:()=>e2e,getTypeDefinitionAtPosition:()=>utt});var Ttt=bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";Stt()}});function Att(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Itt(e){return e.includeInlayParameterNameHints==="literals"}function n2e(e){return e.interactiveInlayHints===!0}function xtt(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,d=r.getCompilerOptions(),p=af(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)&&!Gy(fe)))return s.includeInlayVariableTypeHints&&Oi(fe)||s.includeInlayPropertyDeclarationTypeHints&&Vo(fe)?j(fe):s.includeInlayEnumMemberValueHints&&$0(fe)?D(fe):Att(s)&&(ra(fe)||U0(fe))?K(fe):(s.includeInlayFunctionParameterTypeHints&&Fs(fe)&&z6(fe)&&me(fe),s.includeInlayFunctionLikeReturnTypeHints&&E(fe)&&z(fe)),Bo(fe,y)}}function E(fe){return zs(fe)||Ls(fe)||Ec(fe)||Ul(fe)||Zp(fe)}function S(fe,ne,he,Ce){let Ge=`${Ce?"...":""}${fe}`,ve;n2e(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||Yo(fe.name)||Oi(fe)&&!pe(fe)||gd(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(Ie=>Ie.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Xb(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 Ie=ms(ve);if(Itt(s)&&!ce(Ie)){Ge++;continue}let De=0;if(qm(Ie)){let Et=h.getTypeAtLocation(Ie.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(Ie,be))&&!ze)continue;let Ft=Vi(be);if(B(Ie,Ft))continue;S(Ft,Et,ve.getStart(),ze)}}}function Y(fe,ne){return Fe(fe)?fe.text===ne:wr(fe)?fe.name.text===ne:!1}function B(fe,ne){if(!$p(ne,d.target,ok(t.scriptKind)))return!1;let he=Uh(l,fe.pos);if(!he?.length)return!1;let Ce=r2e(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 E0(ne)||Fe(ne)&&XN(ne.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ne=fe.escapedText;return re(ne)||XN(ne)}}return E0(fe)}function z(fe){if(zs(fe)&&!hs(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,ee(fe))}function ee(fe){let ne=hs(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);R.assertIsDefined(Ge,"should always get typenode"),he.writeNode(4,Ge,t,Ce)})}function J(fe){if(!n2e(s))return q(fe);let he=h.typeToTypeNode(fe,void 0,71286784);R.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(E0(Le)){Ce.push({text:De(Le)});return}switch(Le.kind){case 80:R.assertNode(Le,Fe);let tt=yr(Le),Ft=Le.symbol&&Le.symbol.declarations&&Le.symbol.declarations.length&&No(Le.symbol.declarations[0]);Ft?Ce.push(xe(tt,Ft)):Ce.push({text:tt});break;case 166:R.assertNode(Le,Au),Ge(Le.left),Ce.push({text:"."}),Ge(Le.right);break;case 182:R.assertNode(Le,kk),Le.assertsModifier&&Ce.push({text:"asserts "}),Ge(Le.parameterName),Le.type&&(Ce.push({text:" is "}),Ge(Le.type));break;case 183:R.assertNode(Le,If),Ge(Le.typeName),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 168:R.assertNode(Le,ml),Le.modifiers&&Ie(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:R.assertNode(Le,To),Le.modifiers&&Ie(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:R.assertNode(Le,RR),Ce.push({text:"new "}),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 186:R.assertNode(Le,YI),Ce.push({text:"typeof "}),Ge(Le.exprName),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 187:R.assertNode(Le,gp),Ce.push({text:"{"}),Le.members.length&&(Ce.push({text:" "}),Ie(Le.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:R.assertNode(Le,wk),Ge(Le.elementType),Ce.push({text:"[]"});break;case 189:R.assertNode(Le,$I),Ce.push({text:"["}),Ie(Le.elements,", "),Ce.push({text:"]"});break;case 202:R.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:R.assertNode(Le,O4),Ge(Le.type),Ce.push({text:"?"});break;case 191:R.assertNode(Le,W4),Ce.push({text:"..."}),Ge(Le.type);break;case 192:R.assertNode(Le,Kv),Ie(Le.types," | ");break;case 193:R.assertNode(Le,QI),Ie(Le.types," & ");break;case 194:R.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:R.assertNode(Le,CT),Ce.push({text:"infer "}),Ge(Le.typeParameter);break;case 196:R.assertNode(Le,NT),Ce.push({text:"("}),Ge(Le.type),Ce.push({text:")"});break;case 198:R.assertNode(Le,PT),Ce.push({text:`${da(Le.operator)} `}),Ge(Le.type);break;case 199:R.assertNode(Le,MT),Ge(Le.objectType),Ce.push({text:"["}),Ge(Le.indexType),Ce.push({text:"]"});break;case 200:R.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:R.assertNode(Le,Jv),Ge(Le.literal);break;case 184:R.assertNode(Le,gh),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 205:R.assertNode(Le,ig),Le.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),Ge(Le.argument),Le.assertions&&(Ce.push({text:", { assert: "}),Ie(Le.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),Le.qualifier&&(Ce.push({text:"."}),Ge(Le.qualifier)),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 171:R.assertNode(Le,_p),(Et=Le.modifiers)!=null&&Et.length&&(Ie(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 181:R.assertNode(Le,V0),Ce.push({text:"["}),Ie(Le.parameters,", "),Ce.push({text:"]"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 173:R.assertNode(Le,hh),(be=Le.modifiers)!=null&&be.length&&(Ie(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:R.assertNode(Le,XI),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 207:R.assertNode(Le,j0),Ce.push({text:"["}),Ie(Le.elements,", "),Ce.push({text:"]"});break;case 206:R.assertNode(Le,tm),Ce.push({text:"{"}),Le.elements.length&&(Ce.push({text:" "}),Ie(Le.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:R.assertNode(Le,qa),Ge(Le.name);break;case 224:R.assertNode(Le,Xv),Ce.push({text:da(Le.operator)}),Ge(Le.operand);break;case 203:R.assertNode(Le,_ae),Ge(Le.head),Le.templateSpans.forEach(Ge);break;case 16:R.assertNode(Le,KI),Ce.push({text:De(Le)});break;case 204:R.assertNode(Le,eH),Ge(Le.type),Ge(Le.literal);break;case 17:R.assertNode(Le,YU),Ce.push({text:De(Le)});break;case 18:R.assertNode(Le,M4),Ce.push({text:De(Le)});break;case 197:R.assertNode(Le,Ok),Ce.push({text:"this"});break;default:R.failBadSyntaxKind(Le)}}function ve(Le){Le.typeParameters&&(Ce.push({text:"<"}),Ie(Le.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Ie(Le.parameters,", "),Ce.push({text:")"})}function Ie(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?`'${Zh(Le.text,39)}'`:`"${Zh(Le.text,34)}"`;case 16:case 17:case 18:{let Et=Le.rawText??Lj(Zh(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((M0(fe)||Oi(fe)&&Kx(fe))&&fe.initializer){let ne=ms(fe.initializer);return!(ce(ne)||U0(ne)||Ma(ne)||cT(ne))}return!0}function xe(fe,ne){let he=ne.getSourceFile();return{text:fe,span:Ru(ne,he),file:he.fileName}}}var r2e,Rtt=bt({"src/services/inlayHints.ts"(){"use strict";si(),r2e=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),_Q={};xa(_Q,{provideInlayHints:()=>xtt});var Dtt=bt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Rtt()}});function Ctt(e,t){let r=[];return qq(e,i=>{for(let o of Ptt(i)){let s=Ym(o)&&o.tags&&Vr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Ym(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))),zo(r,l,Ntt)||r.push(l)}}),pm(DG(r,[pD()]))}function Ntt(e,t){return EL(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Ptt(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 Mtt(e,t){let r=[];return qq(e,i=>{let o=iE(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:a2e(s,t)}),r.push(...i2e(o2e(s),t))}),r}function i2e(e,t){return va(e,r=>bo([{name:r.tagName.text,text:a2e(r,t)}],i2e(o2e(r),t)))}function o2e(e){return iN(e)&&e.isNameFirst&&e.typeExpression&&FT(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function RD(e,t){return typeof e=="string"?[sf(e)]:va(e,r=>r.kind===328?[sf(r.text)]:Rde(r,t))}function a2e(e,t){let{comment:r,kind:i}=e,o=Ltt(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(sf(p.constraint.getText())),Nn(p.typeParameters)){Nn(h)&&h.push(Ll());let y=p.typeParameters[p.typeParameters.length-1];gn(p.typeParameters,E=>{h.push(o(E.getText())),y!==E&&h.push(Xd(28),Ll())})}return r&&h.push(Ll(),...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?$/)?[sf(d),...RD(r,t)]:[o(d),Ll(),...RD(r,t)]:[sf(d)]}}function Ltt(e){switch(e){case 348:return Sde;case 355:return Tde;case 352:return Ide;case 353:case 345:return Ade;default:return sf}}function ktt(){return l2e||(l2e=mn(a_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function wtt(){return c2e||(c2e=mn(a_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:C1.SortText.LocationPriority})))}function s2e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[sf(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Ott(e){if(!Fe(e.name))return Xe;let t=e.name.text,r=e.parent,i=r.parent;return Xo(i)?to(i.parameters,o=>{if(!Fe(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&$m(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 Wtt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[sf(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Ftt(e,t,r,i){let o=so(t,r),s=Fn(o,Ym);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 ztt(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 Btt(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 Gtt(e,t){return`${e} * @returns${t}`}function Vtt(e,t){return Ore(e,r=>o_e(r,t))}function o_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 o_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&&gh(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?jtt(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 o_e(e.expression,t);case 226:{let o=e;return zl(o)===0?"quit":Xo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:hB(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(Ls(i)||zs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:hB(i,t)}}}function hB(e,t){return!!t?.generateReturnInDocTemplate&&(gh(e)||zs(e)&&ht(e.body)||Fs(e)&&e.body&&Uo(e.body)&&!!x0(e.body,r=>r))}function jtt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Vr(e.members,Nl)}}var a_e,l2e,c2e,d2e,Utt=bt({"src/services/jsDoc.ts"(){"use strict";si(),a_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"],d2e=s2e}}),ME={};xa(ME,{getDocCommentTemplateAtPosition:()=>Ftt,getJSDocParameterNameCompletionDetails:()=>Wtt,getJSDocParameterNameCompletions:()=>Ott,getJSDocTagCompletionDetails:()=>s2e,getJSDocTagCompletions:()=>wtt,getJSDocTagNameCompletionDetails:()=>d2e,getJSDocTagNameCompletions:()=>ktt,getJsDocCommentsFromDeclarations:()=>Ctt,getJsDocTagsFromDeclarations:()=>Mtt});var Htt=bt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";Utt()}});function Ktt(e,t,r,i,o,s){let l=pr.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(Mc)),y=cnt(o,d?()=>f2e(m,o)===2:void 0),E=A=>(h&&(A=qtt(A,e,i)),p&&(A=u2e(A,y,e,o)),d&&(A=Ey(A,(N,D)=>u_e(N,D,y))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&dnt(e).forEach(A=>S(A,N=>s_e(N,y,o)));for(let A of e.statements.filter(Pd)){if(!A.body)continue;if(hQ(e,A.body.statements.filter(Mc)).forEach(D=>S(D,E)),s!=="RemoveUnused"){let D=A.body.statements.filter(Xl);S(D,w=>s_e(w,y,o))}}return l.getChanges();function S(A,N){if(Nn(A)===0)return;cr(A[0],1024);let D=p?GC(A,K=>gB(K.moduleSpecifier)):[A],w=d?Ey(D,(K,Y)=>c_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:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:pr.LeadingTriviaOption.Exclude,trailingTriviaOption:pr.TrailingTriviaOption.Include,suffix:qy(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:pr.TrailingTriviaOption.Include},Y)}}}function hQ(e,t){let r=Dy(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&Jtt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function Jtt(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 qtt(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(Yv(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 Ytt(e,t,r,i){let o=gQ(t);return u2e(e,o,r,i)}function u2e(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}=$tt(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 ee=S[0];s.push(UO(ee,ee.importClause.name,A[0].importClause.namedBindings));continue}let D=Ey(A,(ee,me)=>t(ee.importClause.namedBindings.name.text,me.importClause.namedBindings.name.text));for(let ee of D)s.push(UO(ee,void 0,ee.importClause.namedBindings));let w=Jc(S),j=Jc(N),K=w??j;if(!K)continue;let Y,B=[];if(S.length===1)Y=S[0].importClause.name;else for(let ee of S)B.push(L.createImportSpecifier(!1,L.createIdentifier("default"),ee.importClause.name));B.push(...ont(N));let ce=L.createNodeArray(p2e(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)&&cr(z,2),E&&Y&&z?(s.push(UO(K,Y,void 0)),s.push(UO(j??K,void 0,z))):s.push(UO(K,Y,z))}}return s}function $tt(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&&(Yv(d)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Qtt(e,t,r){let i=gQ(t);return s_e(e,i,r)}function s_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=p2e(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 UO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function p2e(e,t,r){return Ey(e,(i,o)=>l_e(i,o,t,r))}function l_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Ev(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Ev(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Ztt(e,t,r){let i=gQ(!!r);return c_e(e,t,i)}function c_e(e,t,r){let i=e===void 0?void 0:gB(e),o=t===void 0?void 0:gB(t);return Ev(i===void 0,o===void 0)||Ev(qc(i),qc(o))||r(i,o)}function d_e(e){var t;switch(e.kind){case 271:return(t=ii(e.moduleReference,bh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function ent(e,t){return f2e(hQ(e,e.statements.filter(Mc)),t)}function f2e(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=BC(l,h=>{var m;return((m=ii(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=ii((h=p.importClause)==null?void 0:h.namedBindings,Fg))==null?void 0:m.elements.length)>1});if(d){let p=p_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 tnt(e,t){let r=DD(t,!1),i=DD(t,!0);return BC(e,o=>gB(d_e(o))||"",r,i)}function nnt(e,t,r){let i=Sy(e,t,Zs,(o,s)=>u_e(o,s,r));return i<0?~i:i}function rnt(e,t,r,i){let o=Sy(e,t,Zs,(s,l)=>l_e(s,l,r,i));return o<0?~o:o}function u_e(e,t,r){return c_e(d_e(e),d_e(t),r)||int(e,t)}function int(e,t){return el(m2e(e),m2e(t))}function m2e(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 ont(e){return va(e,t=>mn(ant(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function ant(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Fg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function gQ(e){return e?sne:Vd}function snt(e,t){let r=lnt(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 lnt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=lne()),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"?snt(t,e):gQ(t)}function cnt(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return DD(e,r)}function dnt(e){let t=[],r=e.statements,i=Nn(r),o=0,s=0;for(;ohQ(e,l))}var _2e,p_e,unt=bt({"src/services/organizeImports.ts"(){"use strict";si(),_2e=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)}},p_e=ane((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!fW(e,(o,s)=>Ev(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)=>Ev(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?BC(o,p=>p.name.text,r,i):void 0,d=s?.length?BC(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 BC(e,o=>o.name.text,r,i)},new _2e)}}),Rm={};xa(Rm,{coalesceExports:()=>Qtt,coalesceImports:()=>Ytt,compareImportOrExportSpecifiers:()=>l_e,compareImportsOrRequireStatements:()=>u_e,compareModuleSpecifiers:()=>Ztt,detectImportDeclarationSorting:()=>tnt,detectImportSpecifierSorting:()=>p_e,detectSorting:()=>ent,getImportDeclarationInsertionIndex:()=>nnt,getImportSpecifierInsertionIndex:()=>rnt,getOrganizeImportsComparer:()=>DD,organizeImports:()=>Ktt});var pnt=bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";unt()}});function fnt(e,t){let r=[];return mnt(e,t,r),_nt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function mnt(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 g2e(e,t,r,i){UI(e)||f_e(e.pos,t,r,i)}function yB(e,t,r){return P1(dc(e,t),r)}function hnt(e,t){switch(e.kind){case 241:if(Xo(e.parent))return gnt(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=hs(S,98,t);if(A)return m(A)}default:return P1(Ru(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,!qa(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=hs(S,19,t),N=hs(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=hs(S,21,t),N=hs(S,22,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!0)}function o(S){if(Uo(S.body)||Fu(S.body)||Sf(S.body.getFullStart(),S.body.getEnd(),t))return;let A=dc(S.body.getFullStart(),S.body.getEnd());return P1(A,"code",Ru(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,!fu(S.parent)&&!ra(S.parent),A)}function m(S,A=!1,N=!0,D=19,w=D===19?20:24){let j=hs(e,D,t),K=hs(e,w,t);return j&&K&&yQ(j,K,S,t,A,N)}function y(S){return S.length?P1(tb(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",Ru(S))}}function gnt(e,t,r){let i=ynt(e,t,r),o=hs(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",Ru(r,i),o)}function P1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function ynt(e,t,r){if(toe(e.parameters,r)){let i=hs(e,21,r);if(i)return i}return hs(t,19,r)}var y2e,vnt=bt({"src/services/outliningElementsCollector.ts"(){"use strict";si(),y2e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),vQ={};xa(vQ,{collectElements:()=>fnt});var bnt=bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";vnt()}});function Ent(e,t,r,i){let o=zz(zu(t,r));if(b2e(o)){let s=Snt(o,e.getTypeChecker(),t,e,i);if(s)return s}return bQ(f.You_cannot_rename_this_element)}function Snt(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 m_e(e.text,e.text,"string","",e,r)}else if(Eq(e)){let E=uc(e);return m_e(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>Tnt(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)&&W2(e))return o.allowRenameOfImportPath?Int(e,r,s):void 0;let d=Ant(r,s,t,o);if(d)return bQ(d);let p=$y.getSymbolKind(t,s,e),h=Dde(e)||Qp(e)&&e.parent.kind===167?Yf(Xf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return m_e(m,y,p,$y.getSymbolModifiers(t,s),e,r)}function Tnt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Sl(r.fileName,".d.ts")}function Ant(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=v2e(e.path);if(s===void 0)return gt(o,l=>pO(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=v2e(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 v2e(e){let t=Wc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Int(e,t,r){if(!qc(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:une(Tu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",d=e.text.lastIndexOf("/")+1,p=hd(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 m_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:xnt(o,s)}}function bQ(e){return{canRename:!1,localizedErrorMessage:ko(e)}}function xnt(e,t){let r=e.getStart(t),i=e.getWidth(t);return as(e)&&(r+=1,i-=2),hd(r,i)}function b2e(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 Rnt=bt({"src/services/rename.ts"(){"use strict";si()}}),vB={};xa(vB,{getRenameInfo:()=>Ent,nodeIsEligibleForRename:()=>b2e});var Dnt=bt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Rnt()}});function Cnt(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)||Hy(t,r)))return;let p=!!i&&i.kind==="invoked",h=Knt(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=Nnt(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?D2e(m.candidates,m.resolvedSignature,h,t,y):qnt(m.symbol,h,t,y)):cu(t)?Mnt(h,e,o):void 0}function Nnt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Pnt(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&&!E2e(o,i,Fe(l)?l.parent:l))return;let d=Pq(l,t,r);if(d.length!==0)return{kind:0,candidates:d,resolvedSignature:Ga(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 R.assertNever(e)}}function Pnt(e,t,r){if(!v_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return zo(i,e);case 28:{let o=Wz(e);return!!o&&zo(i,o)}case 30:return E2e(e,r,t.expression);default:return!1}}function Mnt(e,t,r){if(e.invocation.kind===2)return;let i=x2e(e.invocation),o=wr(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=>D2e(h,h[0],e,l,m,!0))}))}function E2e(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Tc(i,t,o,!0);if(s)return of(r,s);o=o.parent}return R.fail("Could not find preceding token")}function Lnt(e,t,r,i){let o=T2e(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 S2e(e,t,r,i){let o=knt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=Vnt(i,s);l!==0&&R.assertLessThan(l,d);let p=Unt(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function knt(e,t,r){if(e.kind===30||e.kind===21)return{list:Jnt(e.parent,e,t),argumentIndex:0};{let i=Wz(e);return i&&{list:i,argumentIndex:Gnt(r,i,e)}}}function T2e(e,t,r,i){let{parent:o}=e;if(v_(o)){let s=o,l=S2e(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)&&H0(o))return Zw(e,t,r)?h_e(o,0,r):void 0;if(KI(e)&&o.parent.kind===215){let s=o,l=s.parent;R.assert(s.kind===228);let d=Zw(e,t,r)?0:1;return h_e(l,d,r)}else if(uP(o)&&H0(o.parent.parent)){let s=o,l=o.parent.parent;if(M4(e)&&!Zw(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=jnt(d,e,t,r);return h_e(l,p,r)}else if(lu(o)){let s=o.attributes.pos,l=Na(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:hd(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 wnt(e,t,r,i){return Ont(e,t,r,i)||T2e(e,t,r,i)}function A2e(e){return ur(e.parent)?A2e(e.parent):e}function __e(e){return ur(e.left)?__e(e.left)+1:2}function Ont(e,t,r,i){let o=Wnt(e);if(o===void 0)return;let s=Fnt(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=Qs(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:znt(y)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function Wnt(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>To(t)?!0:qa(t)||tm(t)||j0(t)?!1:"quit")}}function Fnt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=S2e(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=A2e(o),y=i.getContextualType(m),E=e.kind===21?0:__e(o)-1,S=__e(m);return y&&{contextualType:y,argumentIndex:E,argumentCount:S,argumentsSpan:Ru(o)}}default:return}}function znt(e){return e.name==="__type"&&Wl(e.declarations,t=>{var r;return gh(t)?(r=ii(t.parent,b_))==null?void 0:r.symbol:void 0})||e}function Bnt(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 Gnt(e,t,r){return I2e(e,t,r)}function Vnt(e,t){return I2e(e,t,void 0)}function I2e(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(qm(l)){o+=Bnt(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ka(i).kind===28?o+1:o}function jnt(e,t,r,i){return R.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),pre(t)?Zw(t,r,i)?0:e+2:e+1}function h_e(e,t,r){let i=HI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&R.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Hnt(e,r),argumentIndex:t,argumentCount:i}}function Unt(e,t){let r=e.getFullStart(),i=Na(t.text,e.getEnd(),!1);return hd(r,i-r)}function Hnt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ka(r.templateSpans).literal.getFullWidth()===0&&(o=Na(t.text,o,!1)),hd(i,o-i)}function Knt(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!Uo(s));s=s.parent){R.assert(of(s.parent,s),"Not a subspan",()=>`Child: ${R.formatSyntaxKind(s.kind)}, parent: ${R.formatSyntaxKind(s.parent.kind)}`);let l=wnt(s,t,r,i);if(l)return l}}function Jnt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return R.assert(o>=0&&i.length>o+1),i[o+1]}function x2e(e){return e.kind===0?BF(e.node):e.called}function R2e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function D2e(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let y=R2e(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(x2e(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?tM(p,E,h?d:void 0,void 0):Xe,A=mn(e,K=>Ynt(K,S,r,p,y,d));l!==0&&R.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}R.assert(N!==-1);let w={items:OC(A,Zs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},j=w.items[N];if(j.isVariadic){let K=Kl(j.parameters,Y=>!!Y.isRest);-1C2e(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Xd(30)],suffixDisplayParts:[Xd(32)],separatorDisplayParts:g_e,parameters:d,documentation:p,tags:h}}function Ynt(e,t,r,i,o,s){let l=(r?Qnt:Znt)(e,i,o,s);return mn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let y=[...t,...h],E=[...m,...$nt(e,o,i)],S=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:d,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:g_e,parameters:p,documentation:S,tags:A}})}function $nt(e,t,r){return nb(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 Qnt(e,t,r,i){let o=(e.target||e).typeParameters,s=iS(),l=(o||Xe).map(p=>C2e(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,HO)]:[];return t.getExpandedParameters(e).map(p=>{let h=L.createNodeArray([...d,...mn(p,y=>t.symbolToParameterDeclaration(y,r,HO))]),m=nb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[Xd(30)],suffix:[Xd(32),...m]}})}function Znt(e,t,r,i){let o=iS(),s=nb(p=>{if(e.typeParameters&&e.typeParameters.length){let h=L.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,HO)));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=ii(p[p.length-1],dh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>ert(h,t,r,i,o)),prefix:[...s,Xd(21)],suffix:[Xd(22)]}))}function ert(e,t,r,i,o){let s=nb(p=>{let h=t.symbolToParameterDeclaration(e,r,HO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=dh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function C2e(e,t,r,i,o){let s=nb(l=>{let d=t.typeParameterToDeclaration(e,r,HO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var HO,g_e,trt=bt({"src/services/signatureHelp.ts"(){"use strict";si(),HO=70246400,g_e=[Xd(28),Ll()]}}),KO={};xa(KO,{getArgumentInfoForCompletions:()=>Lnt,getSignatureHelpItems:()=>Cnt});var nrt=bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";trt()}});function rrt(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=ort(s);if(!p.length)break;for(let h=0;he)break e;let S=rh($b(t.text,y.end));if(S&&S.kind===2&&d(S.pos,S.end),irt(t,e,y)){if(wV(y)&&Fs(s)&&!Sf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Uo(y)||uP(y)||KI(y)||M4(y)||m&&KI(m)||Vc(y)&&Pl(s)||OR(y)&&Vc(s)||Oi(y)&&OR(s)&&p.length===1||Q0(y)||vE(y)||FT(y)){s=y;break}if(uP(s)&&E&&lF(E)){let w=y.getFullStart()-2,j=E.getStart()+1;l(w,j)}let A=OR(y)&&art(m)&&srt(E)&&!Sf(m.getStart(),E.getStart(),t),N=A?m.getEnd():y.getStart(),D=A?E.getStart():lrt(t,y);if(kp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Ga(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,Ga(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)&&Une(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 irt(e,t,r){return R.assert(r.pos<=t),td===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=JO(s,({kind:d})=>d===23||d===168||d===24);return[r,qO(EQ(l,({kind:d})=>d===59)),o]}if(_p(e)){let r=JO(e.getChildren(),l=>l===e.name||zo(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,qO(s)]:s}if(To(e)){let r=JO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=JO(r,o=>o===r[0]||o===e.questionToken);return EQ(i,({kind:o})=>o===64)}return qa(e)?EQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function JO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(qO(i)),i=void 0),r.push(o));return i&&r.push(qO(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=Ka(e),d=r&&l.kind===27,p=e.slice(i+1,d?e.length-1:void 0),h=TL([o.length?qO(o):void 0,s,p.length?qO(p):void 0]);return d?h.concat(l):h}function qO(e){return R.assertGreaterThanOrEqual(e.length,1),mh(Eh.createSyntaxList(e),e[0].pos,Ka(e).end)}function art(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function srt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function lrt(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 N2e,crt=bt({"src/services/smartSelection.ts"(){"use strict";si(),N2e=Um(Mc,Zc)}}),SQ={};xa(SQ,{getSmartSelectionRange:()=>rrt});var drt=bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";crt()}});function P2e(e,t,r){let i=M2e(e,t,r);if(i!=="")return i;let o=_R(t);return o&32?dl(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 M2e(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Ga(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&&b2(t.valueDeclaration)?"using":t.valueDeclaration&&v2(t.valueDeclaration)?"await using":gn(t.declarations,NF)?"let":w2e(t)?"local var":"var";if(o&16)return w2e(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 L2e(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Nn(r)&&f7(t)&>(r,s=>!f7(s))?65536:0,o=YP(t,i);if(o)return o.split(",")}return[]}function urt(e,t){if(!t)return"";let r=new Set(L2e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&gn(L2e(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Oo(r.values()).join(","):""}function k2e(e,t,r,i,o,s,l,d){var p;let h=[],m=[],y=[],E=_R(t),S=l&1?M2e(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:R.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)||qP(o)||o.parent&&(lu(o.parent)||H0(o.parent))&&Xo(t.valueDeclaration))&&(re=o.parent),re){J=e.getResolvedSignature(re);let pe=re.kind===214||ra(re)&&re.expression.kind===108,xe=pe?s.getConstructSignatures():s.getCallSignatures();if(J&&!zo(xe,J.target)&&!zo(xe,J)&&(J=xe.length?xe[0]:void 0),J){switch(pe&&E&32?(S="constructor",ee(s.symbol,S)):E&2097152?(S="alias",me(S),h.push(Ll()),pe&&(J.flags&4&&(h.push(vp(128)),h.push(Ll())),h.push(vp(105)),h.push(Ll())),z(t)):ee(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(Ll()),!(kr(s)&16)&&s.symbol&&(Hr(h,tM(e,s.symbol,i,void 0,5)),h.push(pD())),pe&&(J.flags&4&&(h.push(vp(128)),h.push(Ll())),h.push(vp(105)),h.push(Ll())),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",ee(s.symbol,S)):ee(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(),dl(t,231)?me("local class"):h.push(vp(86)),h.push(Ll()),z(t),q(t,r)),E&64&&l&2&&(Y(),h.push(vp(120)),h.push(Ll()),z(t),q(t,r)),E&524288&&l&2&&(Y(),h.push(vp(156)),h.push(Ll()),z(t),q(t,r),h.push(Ll()),h.push(eM(64)),h.push(Ll()),Hr(h,aO(e,o.parent&&Cg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(Y(),gt(t.declarations,J=>gE(J)&&I0(J))&&(h.push(vp(87)),h.push(Ll())),h.push(vp(94)),h.push(Ll()),z(t)),E&1536&&!N){Y();let J=dl(t,267),re=J&&J.name&&J.name.kind===80;h.push(vp(re?145:144)),h.push(Ll()),z(t)}if(E&262144&&l&2)if(Y(),h.push(Xd(21)),h.push(sf("type parameter")),h.push(Xd(22)),h.push(Ll()),z(t),t.parent)ce(),z(t.parent,i),q(t.parent,i);else{let J=dl(t,168);if(J===void 0)return R.fail();let re=J.parent;if(re)if(Xo(re)){ce();let pe=e.getSignatureFromDeclaration(re);re.kind===180?(h.push(vp(105)),h.push(Ll())):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(Ll()),z(re.symbol),q(re.symbol,r))}if(E&8){S="enum member",ee(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(Ll()),h.push(eM(64)),h.push(Ll()),h.push(ep(jre(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=No(re);if(pe&&!A){let xe=xF(re)&&Qr(re,128),fe=t.name!=="default"&&!xe,ne=k2e(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(Ll()),h.push(vp(145));break;case 277:h.push(vp(95)),h.push(Ll()),h.push(vp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(vp(95));break;default:h.push(vp(102))}h.push(Ll()),z(t),gn(t.declarations,J=>{if(J.kind===271){let re=J;if(sE(re))h.push(Ll()),h.push(eM(64)),h.push(Ll()),h.push(vp(149)),h.push(Xd(21)),h.push(ep(uc(gN(re)),8)),h.push(Xd(22));else{let pe=e.getSymbolAtLocation(re.moduleReference);pe&&(h.push(Ll()),h.push(eM(64)),h.push(Ll()),z(pe,i))}return!0}})}if(!A)if(S!==""){if(s){if(N?(Y(),h.push(vp(110))):ee(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(Ll()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let J=nb(re=>{let pe=e.typeParameterToDeclaration(s,i,y_e);K().writeNode(4,pe,Gn(Ro(i)),re)});Hr(h,J)}else Hr(h,aO(e,s,i));if(dh(t)&&t.links.target&&dh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let J=t.links.target.links.tupleLabelDeclaration;R.assertNode(J.name,Fe),h.push(Ll()),h.push(Xd(21)),h.push(sf(yr(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=P2e(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&&qa(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 iS()}function Y(){h.length&&h.push(pD()),B()}function B(){d&&(me("alias"),h.push(Ll()))}function ce(){h.push(Ll()),h.push(vp(103)),h.push(Ll())}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=tM(e,J.parent)),xe.push(Xd(23)),pe.forEach((fe,ne)=>{xe.push(...aO(e,fe.keyType)),ne!==pe.length-1&&(xe.push(Ll()),xe.push(Xd(52)),xe.push(Ll()))}),xe.push(Xd(24))):xe=tM(e,J,re||r,void 0,7),Hr(h,xe),t.flags&16777216&&h.push(Xd(58))}function ee(J,re){Y(),re&&(me(re),J&&!gt(J.declarations,pe=>zs(pe)||(Ls(pe)||$c(pe))&&!pe.name)&&(h.push(Ll()),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(Ll()),h.push(Xd(21)),h.push(eM(40)),h.push(ep((re.length-1).toString(),7)),h.push(Ll()),h.push(sf(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=nb(xe=>{let fe=e.symbolToTypeParameterDeclarations(J,re,y_e);K().writeList(53776,fe,Gn(Ro(re)),xe)});Hr(h,pe)}}function prt(e,t,r,i,o,s=qT(o),l){return k2e(e,t,r,i,o,void 0,s,l)}function w2e(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;!R0(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var y_e,frt=bt({"src/services/symbolDisplay.ts"(){"use strict";si(),y_e=70246400}}),$y={};xa($y,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>prt,getSymbolKind:()=>P2e,getSymbolModifiers:()=>urt});var mrt=bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";frt()}});function O2e(e){let t=e.__pos;return R.assert(typeof t=="number"),t}function v_e(e,t){R.assert(typeof t=="number"),e.__pos=t}function W2e(e){let t=e.__end;return R.assert(typeof t=="number"),t}function b_e(e,t){R.assert(typeof t=="number"),e.__end=t}function F2e(e,t){return Na(e,t,!1,!0)}function _rt(e,t){let r=t;for(;r0?1:0,E=wv(DN(e,h)+y,e);return E=F2e(e.text,E),wv(DN(e,E),e)}function E_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=$b(e.text,i);if(s){let l=DN(e,t.end);for(let d of s){if(d.kind===2||DN(e,d.pos)>l)break;if(DN(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=bo($b(e.text,o),Uh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}let l=E_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 hrt(e){return Ls(e)||Ec(e)}function grt(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 yrt(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 S_e(e,t){return Na(e.text,tA(e,t,{leadingTriviaOption:1}),!1,!0)}function vrt(e,t,r,i){let o=S_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 brt(e,t){let r=hs(e,19,t),i=hs(e,20,t);return[r?.end,i?.end]}function AQ(e){return Ma(e)?e.properties:e.members}function T_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 Ert(e){return Na(e,0)===e.length}function IQ(e){let t=Sn(e,IQ,V2e,Srt,IQ),r=qs(t)?t:Object.create(t);return mh(r,O2e(e),W2e(e)),r}function Srt(e,t,r,i,o){let s=zn(e,t,r,i,o);if(!s)return s;R.assert(e);let l=s===e?L.createNodeArray(s.slice(0)):s;return mh(l,O2e(e),W2e(e)),l}function z2e(e){let t=0,r=Q2(e),i=ne=>{ne&&v_e(ne,t)},o=ne=>{ne&&b_e(ne,t)},s=ne=>{ne&&v_e(ne,t)},l=ne=>{ne&&b_e(ne,t)},d=ne=>{ne&&v_e(ne,t)},p=ne=>{ne&&b_e(ne,t)};function h(ne,he){if(he||!Ert(ne)){t=r.getTextPos();let Ce=0;for(;Dg(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 ee(){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:ee,rawWrite:me,writeLiteral:ge,getTextPos:q,getLine:J,getColumn:re,getIndent:pe,isAtStartOfLine:xe,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function Trt(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=Uh(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))(A_e||{}),I_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(I_e||{}),hM={leadingTriviaOption:0,trailingTriviaOption:0},G2e=class xbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new xbe(qy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=xbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){R.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,XO(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=!!E_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=hM){this.replaceRange(t,XO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=hM){this.replaceRange(t,XO(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=hM){this.replaceRangeWithNodes(t,XO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,XO(t,r,r,hM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=hM){this.replaceRangeWithNodes(t,XO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=hM){return!!E_e(t,r,i)}nextCommaToken(t,r){let i=sS(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=Trt(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(jd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};So(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=Xp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Jc(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,Ga(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=wv(r,t),l=Nde(t.text,s),d=B2e(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=>Co(s.comment)?L.createJSDocText(s.comment):s.comment),o=rh(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,grt(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=OC(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=yrt(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,jr(OC(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(Xo(r)){if(o=hs(r,22,t),!o){if(!zs(r))return!1;o=Ga(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=hs(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=(hs(r,21,t)||Ga(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||Xc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:To(t)?To(r)?{suffix:", "}:{}:Da(t)&&Mc(t.parent)||Fg(t)?{suffix:", "}:Qu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:R.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Jc(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=>Qc(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=Qs(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=kc.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 kc.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?",":mu(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,Ga(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Art(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?` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function lDe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function cDe(e,t,r){let i=so(e,t),o=Fn(i,lDe);if(!o||Fs(o)&&o.body&&$w(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)||!lDe(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,Oue,Wue,vKe=bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ai(),Th(),tY="Convert overload list to single signature",Oue=ko(f.Convert_overload_list_to_single_signature),Wue={name:tY,description:Oue,kind:"refactor.rewrite.function.overloadList"},lg(tY,{kinds:[Wue.kind],getEditsForAction:yKe,getAvailableActions:gKe})}});function bKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=dDe(t,r,i==="invoked");return o?jg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:nY,description:Fue,actions:[{...F7,notApplicableReason:o.error},{...RO,notApplicableReason:o.error}]}]:Xe:[{name:nY,description:Fue,actions:[o.addBraces?F7:RO]}]:Xe}function EKe(e,t){let{file:r,startPosition:i}=e,o=dDe(r,i);R.assert(o&&!jg(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:d}=o,p;if(t===F7.name){let m=L.createReturnStatement(s);p=L.createBlock([m],!0),hD(s,m,r,3,!0)}else if(t===RO.name&&l){let m=s||L.createVoidZero();p=i7(m)?L.createParenthesizedExpression(m):m,pO(l,p,r,3,!1),hD(l,p,r,3,!1),sM(l,p,r,3,!1)}else R.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:fr.ChangeTracker.with(e,m=>{m.replaceNode(r,d.body,p)})}}function dDe(e,t,r=!0,i){let o=so(e,t),s=Wp(o);if(!s)return{error:ko(f.Could_not_find_a_containing_arrow_function)};if(!zs(s))return{error:ko(f.Containing_function_is_not_an_arrow_function)};if(!(!rf(s,o)||rf(s.body,o)&&!r)){if(NE(F7.kind,i)&&ht(s.body))return{func:s,addBraces:!0,expression:s.body};if(NE(RO.kind,i)&&Ho(s.body)&&s.body.statements.length===1){let l=Va(s.body.statements);if(Sm(l)){let d=l.expression&&La(bR(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:d,returnStatement:l}}}}}var nY,Fue,F7,RO,SKe=bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ai(),Th(),nY="Add or remove braces in an arrow function",Fue=ko(f.Add_or_remove_braces_in_an_arrow_function),F7={name:"Add braces to arrow function",description:ko(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},RO={name:"Remove braces from arrow function",description:ko(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},lg(nY,{kinds:[RO.kind],getEditsForAction:EKe,getAvailableActions:bKe})}}),TKe={},AKe=bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";vKe(),SKe()}});function IKe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=pDe(t,r,i);if(!s)return Xe;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(NE(CO.kind,o)){let m=l||zs(d)&&Oi(d.parent)?void 0:ko(f.Could_not_convert_to_named_function);m?h.push({...CO,notApplicableReason:m}):p.push(CO)}if(NE(DO.kind,o)){let m=!l&&zs(d)?void 0:ko(f.Could_not_convert_to_anonymous_function);m?h.push({...DO,notApplicableReason:m}):p.push(DO)}if(NE(NO.kind,o)){let m=ks(d)?void 0:ko(f.Could_not_convert_to_arrow_function);m?h.push({...NO,notApplicableReason:m}):p.push(NO)}return[{name:zue,description:_De,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function xKe(e,t){let{file:r,startPosition:i,program:o}=e,s=pDe(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case DO.name:d.push(...NKe(e,l));break;case CO.name:let p=CKe(l);if(!p)return;d.push(...PKe(e,l,p));break;case NO.name:if(!ks(l))return;d.push(...MKe(e,l));break;default:return R.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function uDe(e){let t=!1;return e.forEachChild(function r(i){if(dD(i)){t=!0;return}!di(i)&&!Tc(i)&&!ks(i)&&Bo(i,r)}),t}function pDe(e,t,r){let i=so(e,t),o=r.getTypeChecker(),s=DKe(e,o,i.parent);if(s&&!uDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Wp(i);if(l&&(ks(l)||zs(l))&&!rf(l.body,i)&&!uDe(l.body)&&!o.containsArgumentsReference(l))return ks(l)&&mDe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function RKe(e){return Oi(e)||Uc(e)&&e.declarations.length===1}function DKe(e,t,r){if(!RKe(r))return;let o=(Oi(r)?r:Va(r.declarations)).initializer;if(o&&(zs(o)||ks(o)&&!mDe(e,t,o)))return o}function fDe(e){if(ht(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return at(t,e),bp(t),pO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function CKe(e){let t=e.parent;if(!Oi(t)||!vN(t))return;let r=t.parent,i=r.parent;if(!(!Uc(r)||!Ll(i)||!Fe(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function NKe(e,t){let{file:r}=e,i=fDe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return fr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function PKe(e,t,r){let{file:i}=e,o=fDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;rX(d);let h=eE(s)&32|du(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?fr.ChangeTracker.with(e,E=>E.replaceNode(i,d,y)):fr.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,d,y)})}function MKe(e,t){let{file:r}=e,o=t.body.statements[0],s;LKe(t.body,o)?(s=o.expression,bp(s),ZT(o,s)):s=t.body;let l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return fr.ChangeTracker.with(e,d=>d.replaceNode(r,t,l))}function LKe(e,t){return e.statements.length===1&&Sm(t)&&!!t.expression}function mDe(e,t,r){return!!r.name&&ws.Core.isSymbolReferencedInFile(r.name,t,e)}var zue,_De,DO,CO,NO,kKe=bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ai(),Th(),zue="Convert arrow function or function expression",_De=ko(f.Convert_arrow_function_or_function_expression),DO={name:"Convert to anonymous function",description:ko(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},CO={name:"Convert to named function",description:ko(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},NO={name:"Convert to arrow function",description:ko(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},lg(zue,{kinds:[DO.kind,CO.kind,NO.kind],getEditsForAction:xKe,getAvailableActions:IKe})}}),wKe={},OKe=bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";kKe()}});function WKe(e){let{file:t,startPosition:r}=e;return cu(t)||!yDe(t,r,e.program.getTypeChecker())?Xe:[{name:B7,description:jue,actions:[Uue]}]}function FKe(e,t){R.assert(t===B7,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=yDe(r,i,o.getTypeChecker());if(!d||!s)return;let p=BKe(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:fr.ChangeTracker.with(e,m=>zKe(r,o,l,m,d,p))}:{edits:[]}}function zKe(e,t,r,i,o,s){let l=s.signature,d=mn(SDe(o,t,r),m=>al(m));if(l){let m=mn(SDe(l,t,r),y=>al(y));h(l,m)}h(o,d);let p=UC(s.functionCalls,(m,y)=>el(m.pos,y.pos));for(let m of p)if(m.arguments&&m.arguments.length){let y=al(YKe(o,m.arguments),!0);i.replaceNodeRange(Gn(m),Va(m.arguments),Ja(m.arguments),y,{leadingTriviaOption:fr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fr.TrailingTriviaOption.Include})}function h(m,y){i.replaceNodeRangeWithNodes(e,Va(m.parameters),Ja(m.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:fr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fr.TrailingTriviaOption.Include})}}function BKe(e,t,r){let i=QKe(e),o=Ml(e)?$Ke(e):[],s=h0([...i,...o],Iy),l=t.getTypeChecker(),d=va(s,y=>ws.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),p=h(d);return oo(p.declarations,y=>zo(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=Ml(e),w=mn(i,j=>Bue(j,l));for(let j of y){if(j.kind===ws.EntryKind.Span){S.valid=!1;continue}if(zo(w,m(j.node))){if(UKe(j.node.parent)){S.signature=j.node.parent;continue}let Y=gDe(j);if(Y){S.functionCalls.push(Y);continue}}let K=Bue(j.node,l);if(K&&zo(w,K)){let Y=Gue(j);if(Y){S.declarations.push(Y);continue}}if(zo(A,m(j.node))||ZP(j.node)){if(hDe(j))continue;let B=Gue(j);if(B){S.declarations.push(B);continue}let ce=gDe(j);if(ce){S.functionCalls.push(ce);continue}}if(D&&zo(N,m(j.node))){if(hDe(j))continue;let B=Gue(j);if(B){S.declarations.push(B);continue}let ce=GKe(j);if(ce){E.accessExpressions.push(ce);continue}if(Ac(e.parent)){let z=VKe(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 Bue(e,t){let r=kO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Al(o)&6))return o}}function hDe(e){let t=e.node;if(Qu(t.parent)||yh(t.parent)||nd(t.parent)||$v(t.parent)||Jd(t.parent)||kl(t.parent))return t}function Gue(e){if(Kd(e.node.parent))return e.node}function gDe(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,Xs);if(s&&s.parent&&s.argumentExpression===t){let l=ri(s.parent,v_);if(l&&l.expression===s)return l}break}}}function GKe(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,Xs);if(o&&o.expression===t)return o;break}}}function VKe(e){let t=e.node;if(YT(t)===2||_6(t.parent))return t}function yDe(e,t,r){let i=uD(e,t),o=sie(i);if(!jKe(i)&&o&&HKe(o,r)&&rf(o,i)&&!(o.body&&rf(o.body,i)))return o}function jKe(e){let t=Fn(e,Vx);if(t){let r=Fn(t,i=>!Vx(i));return!!r&&Fs(r)}return!1}function UKe(e){return hh(e)&&(mu(e.parent)||gp(e.parent))}function HKe(e,t){var r;if(!KKe(e.parameters,t))return!1;switch(e.kind){case 262:return vDe(e)&&z7(e,t);case 174:if(La(e.parent)){let i=Bue(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&z7(e,t)}return z7(e,t);case 176:return Ac(e.parent)?vDe(e.parent)&&z7(e,t):bDe(e.parent.parent)&&z7(e,t);case 218:case 219:return bDe(e.parent)}return!1}function z7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function vDe(e){return e.name?!0:!!fD(e,90)}function KKe(e,t){return qKe(e)>=TDe&&oo(e,r=>JKe(r,t))}function JKe(e,t){if(qh(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Fe(e.name)}function bDe(e){return Oi(e)&&Xx(e)&&Fe(e.name)&&!e.type}function Vue(e){return e.length>0&&dD(e[0].name)}function qKe(e){return Vue(e)?e.length-1:e.length}function EDe(e){return Vue(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function XKe(e,t){return Fe(t)&&Xf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function YKe(e,t){let r=EDe(e.parameters),i=qh(Ja(r)),o=i?t.slice(0,r.length-1):t,s=mn(o,(d,p)=>{let h=rY(r[p]),m=XKe(h,d);return bp(m.name),hc(m)&&bp(m.initializer),ZT(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 SDe(e,t,r){let i=t.getTypeChecker(),o=EDe(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(Vue(e.parameters)){let N=e.parameters[0],D=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return bp(D.name),ZT(N.name,D.name),N.type&&(bp(D.type),ZT(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),qh(N)&&A(N)?L.createArrayLiteralExpression():N.initializer);return bp(D),N.initializer&&D.initializer&&ZT(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||qh(N))&&(D=S(N));let w=L.createPropertySignature(void 0,rY(N),A(N)?L.createToken(58):N.questionToken,D);return bp(w),ZT(N.name,w.name),N.type&&w.type&&ZT(N.type,w.type),w}function S(N){let D=i.getTypeAtLocation(N);return cM(D,N,t,r)}function A(N){if(qh(N)){let D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function rY(e){return Xf(e.name)}function $Ke(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[R.checkDefined(fD(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 QKe(e){switch(e.kind){case 262:return e.name?[e.name]:[R.checkDefined(fD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=R.checkDefined(gs(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 R.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var B7,TDe,jue,Uue,ZKe=bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ai(),Th(),B7="Convert parameters to destructured object",TDe=1,jue=ko(f.Convert_parameters_to_destructured_object),Uue={name:B7,description:jue,kind:"refactor.rewrite.parameters.toDestructured"},lg(B7,{kinds:[Uue.kind],getEditsForAction:FKe,getAvailableActions:WKe})}}),eJe={},tJe=bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";ZKe()}});function nJe(e){let{file:t,startPosition:r}=e,i=ADe(t,r),o=Hue(i),s=Ca(o),l={name:iY,description:oY,actions:[]};return s&&e.triggerReason!=="invoked"?Xe:$h(o)&&(s||pr(o)&&Kue(o).isValidConcatenation)?(l.actions.push(aY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...aY,notApplicableReason:ko(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):Xe}function ADe(e,t){let r=so(e,t),i=Hue(r);return!Kue(i).isValidConcatenation&&Fu(i.parent)&&pr(i.parent.parent)?i.parent.parent:r}function rJe(e,t){let{file:r,startPosition:i}=e,o=ADe(r,i);switch(t){case oY:return{edits:iJe(e,o)};default:return R.fail("invalid action")}}function iJe(e,t){let r=Hue(t),i=e.file,o=sJe(Kue(r),i),s=$b(i.text,r.end);if(s){let l=s[s.length-1],d={pos:s[0].pos,end:l.end};return fr.ChangeTracker.with(e,p=>{p.deleteRange(i,d),p.replaceNode(i,r,o)})}else return fr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function oJe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Hue(e){return Fn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(pr(r.parent)&&oJe(r.parent));default:return"quit"}})||e}function Kue(e){let t=l=>{if(!pr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Ca(l)||JI(l)};let{nodes:d,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Ca(l.right)||B4(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 aJe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function IDe(e){let t=qI(e)||YU(e)?-2:-1;return fc(e).slice(1,t)}function xDe(e,t){let r=[],i="",o="";for(;e{RDe(K);let B=Y===E.templateSpans.length-1,ce=K.literal.text+(B?A:""),z=IDe(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 RDe(e){let t=e.getSourceFile();sM(e,e.expression,t,3,!1),pO(e.expression,e.expression,t,3,!1)}function lJe(e){return Fu(e)&&(RDe(e),e=e.expression),e}var iY,oY,aY,DDe,CDe,cJe=bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ai(),Th(),iY="Convert to template string",oY=ko(f.Convert_to_template_string),aY={name:iY,description:oY,kind:"refactor.rewrite.string"},lg(iY,{kinds:[aY.kind],getEditsForAction:rJe,getAvailableActions:nJe}),DDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();sM(e[s],o,t,3,!1),r(s,o)}}}}),dJe={},uJe=bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";cJe()}});function pJe(e){let t=NDe(e,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:G7,description:cY,actions:[{...dY,notApplicableReason:t.error}]}]:Xe:[{name:G7,description:cY,actions:[dY]}]:Xe}function fJe(e,t){let r=NDe(e);return R.assert(r&&!jg(r),"Expected applicable refactor info"),{edits:fr.ChangeTracker.with(e,o=>EJe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function sY(e){return pr(e)||kR(e)}function mJe(e){return td(e)||Sm(e)||Ll(e)}function lY(e){return sY(e)||mJe(e)}function NDe(e,t=!0){let{file:r,program:i}=e,o=T1(e),s=o.length===0;if(s&&!t)return;let l=so(r,o.start),d=Vz(r,o.start+o.length),p=pc(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),h=s?vJe(l):yJe(l,p),m=h&&lY(h)?bJe(h):void 0;if(!m)return{error:ko(f.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return kR(m)?_Je(m,y):hJe(m)}function _Je(e,t){let r=e.condition,i=que(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ko(f.Could_not_find_convertible_access_expression)};if((kr(r)||Fe(r))&&Jue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(pr(r)){let o=PDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}}function hJe(e){if(e.operatorToken.kind!==56)return{error:ko(f.Can_only_convert_logical_AND_access_chains)};let t=que(e.right);if(!t)return{error:ko(f.Could_not_find_convertible_access_expression)};let r=PDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}function PDe(e,t){let r=[];for(;pr(t)&&t.operatorToken.kind===56;){let o=Jue(ms(e),ms(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Jue(e,t);return i&&r.push(i),r.length>0?r:void 0}function Jue(e,t){if(!(!Fe(t)&&!kr(t)&&!Xs(t)))return gJe(e,t)?t:void 0}function gJe(e,t){for(;(ra(e)||kr(e)||Xs(e))&&PO(e)!==PO(t);)e=e.expression;for(;kr(e)&&kr(t)||Xs(e)&&Xs(t);){if(PO(e)!==PO(t))return!1;e=e.expression,t=t.expression}return Fe(e)&&Fe(t)&&e.getText()===t.getText()}function PO(e){if(Fe(e)||$p(e))return e.getText();if(kr(e))return PO(e.name);if(Xs(e))return PO(e.argumentExpression)}function yJe(e,t){for(;e.parent;){if(lY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function vJe(e){for(;e.parent;){if(lY(e)&&!lY(e.parent))return e;e=e.parent}}function bJe(e){if(sY(e))return e;if(Ll(e)){let t=CI(e),r=t?.initializer;return r&&sY(r)?r:void 0}return e.expression&&sY(e.expression)?e.expression:void 0}function que(e){if(e=ms(e),pr(e))return que(e.left);if((kr(e)||Xs(e)||ra(e))&&!Hd(e))return e}function MDe(e,t,r){if(kr(t)||Xs(t)||ra(t)){let i=MDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ra(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(Xs(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function EJe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=MDe(t,s,l);h&&(kr(h)||Xs(h)||ra(h))&&(pr(d)?r.replaceNodeRange(e,p,s,h):kR(d)&&r.replaceNode(e,d,L.createBinaryExpression(h,L.createToken(61),d.whenFalse)))}var G7,cY,dY,SJe=bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ai(),Th(),G7="Convert to optional chain expression",cY=ko(f.Convert_to_optional_chain_expression),dY={name:G7,description:cY,kind:"refactor.rewrite.expression.optionalChain"},lg(G7,{kinds:[dY.kind],getEditsForAction:fJe,getAvailableActions:pJe})}}),TJe={},AJe=bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";SJe()}});function LDe(e){let t=e.kind,r=Xue(e.file,T1(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 NE(SD.kind,t)&&A.push({name:bD,description:SD.description,actions:[{...SD,notApplicableReason:S(r.errors)}]}),NE(ED.kind,t)&&A.push({name:bD,description:ED.description,actions:[{...ED,notApplicableReason:S(r.errors)}]}),A}let o=NJe(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(NE(SD.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:SD.kind})):d||(d={description:D,name:`function_scope_${y}`,notApplicableReason:S(A.errors),kind:SD.kind})}if(NE(ED.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:ED.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:S(N.errors),kind:ED.kind})}y++}let E=[];return s.length?E.push({name:bD,description:ko(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:bD,description:ko(f.Extract_function),actions:[d]}),p.length?E.push({name:bD,description:ko(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:bD,description:ko(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 kDe(e,t){let i=Xue(e.file,T1(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return R.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),DJe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return R.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),CJe(i,e,l)}R.fail("Unrecognized action name")}function Xue(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Zc(e,t.start,i,Td.cannotExtractEmpty)]};let o=i===0&&r,s=rde(e,t.start),l=Vz(e,Xl(t)),d=s&&l&&r?IJe(s,l,e):t,p=o?YJe(s):lO(s,e,d),h=o?p:lO(l,e,d),m=0,y;if(!p||!h)return{errors:[Zc(e,t.start,i,Td.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Zc(e,t.start,i,Td.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Zc(e,t.start,i,Td.cannotExtractRange)]};if(p!==h){if(!ODe(p.parent))return{errors:[Zc(e,t.start,i,Td.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:[Zc(e,t.start,i,Td.cannotExtractRange)]}}if(Sm(p)&&!p.expression)return{errors:[Zc(e,t.start,i,Td.cannotExtractRange)]};let E=A(p),S=N(E)||w(E);if(S)return{errors:S};return{targetRange:{range:xJe(E),facts:m,thisNode:y}};function A(j){if(Sm(j)){if(j.expression)return j.expression}else if(Ll(j)||Uc(j)){let K=Ll(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(Oi(j)&&j.initializer)return j.initializer;return j}function N(j){if(Fe(td(j)?j.expression:j))return[Pr(j,Td.cannotExtractIdentifier)]}function D(j,K){let Y=j;for(;Y!==K;){if(Y.kind===172){na(Y)&&(m|=32);break}else if(Y.kind===169){Wp(Y).kind===176&&(m|=32);break}else Y.kind===174&&na(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={})),R.assert(j.pos<=j.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),R.assert(!Jm(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(j)&&!($h(j)&&wDe(j))&&!epe(j))return[Pr(j,Td.statementOrExpressionExpected)];if(j.flags&33554432)return[Pr(j,Td.cannotExtractAmbientBlock)];let Y=sd(j);Y&&D(j,Y);let B,ce=4,z;if(ee(j),m&8){let me=wu(j,!1,!1);(me.kind===262||me.kind===174&&me.parent.kind===210||me.kind===218)&&(m|=16)}return B;function ee(me){if(B)return!0;if(Kd(me)){let q=me.kind===260?me.parent.parent:me;if($r(q,32))return(B||(B=[])).push(Pr(me,Td.cannotExtractExportedEntity)),!0}switch(me.kind){case 272:return(B||(B=[])).push(Pr(me,Td.cannotExtractImport)),!0;case 277:return(B||(B=[])).push(Pr(me,Td.cannotExtractExportedEntity)),!0;case 108:if(me.parent.kind===213){let q=sd(me);if(q===void 0||q.pos=t.start+t.length)return(B||(B=[])).push(Pr(me,Td.cannotExtractSuper)),!0}else m|=8,y=me;break;case 219:Bo(me,function q(J){if(dD(J))m|=8,y=me;else{if(di(J)||Yo(J)&&!zs(J))return!1;Bo(J,q)}});case 263:case 262:Yi(me.parent)&&me.parent.externalModuleIndicator===void 0&&(B||(B=[])).push(Pr(me,Td.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:Mv(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),Bo(me,ee),z.pop();break}case 252:case 251:{let q=me.label;q?zo(z,q.escapedText)||(B||(B=[])).push(Pr(me,Td.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(me.kind===252?1:2)||(B||(B=[])).push(Pr(me,Td.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:ce&4?m|=1:(B||(B=[])).push(Pr(me,Td.cannotExtractRangeContainingConditionalReturnStatement));break;default:Bo(me,ee);break}ce=ge}}}function IJe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function xJe(e){if(Hi(e))return[e];if($h(e))return td(e.parent)?[e.parent]:e;if(epe(e))return e}function Yue(e){return zs(e)?wV(e.body):Fs(e)||Yi(e)||N_(e)||di(e)}function RJe(e){let t=Yy(e.range)?Va(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=sd(t);if(i){let o=Fn(t,Fs);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Fn(t,i=>Fs(i)).parent),Yue(t)&&(r.push(t),t.kind===312))return r}function DJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:d}}=$ue(e,t);return R.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),OJe(o,i[r],s[r],d,e,t)}function CJe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:d}}=$ue(e,t);R.assert(!l[r].length,"The extraction went missing? How?"),R.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 WJe(p,i[r],s[r],e.facts,t)}function NJe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=$ue(e,t);return r.map((l,d)=>{let p=PJe(l),h=MJe(l),m=Fs(l)?LJe(l):di(l)?kJe(l):wJe(l),y,E;return m===1?(y=rg(ko(f.Extract_to_0_in_1_scope),[p,"global"]),E=rg(ko(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(y=rg(ko(f.Extract_to_0_in_1_scope),[p,"module"]),E=rg(ko(f.Extract_to_0_in_1_scope),[h,"module"])):(y=rg(ko(f.Extract_to_0_in_1),[p,m]),E=rg(ko(f.Extract_to_0_in_1),[h,m])),d===0&&!di(l)&&(E=rg(ko(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:y,errors:i[d]},constantExtraction:{description:E,errors:o[d]}}})}function $ue(e,t){let{file:r}=t,i=RJe(e),o=qJe(e,r),s=XJe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function PJe(e){return Fs(e)?"inner function":di(e)?"method":"function"}function MJe(e){return di(e)?"readonly field":"constant"}function LJe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:b7;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:R.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function kJe(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 wJe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function OJe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,d){let p=d.program.getTypeChecker(),h=rs(d.program.getCompilerOptions()),m=Wd.createImportAdder(d.file,d.program,d.preferences,d.host),y=t.getSourceFile(),E=eA(di(t)?"newMethod":"newFunction",y),S=or(t),A=L.createIdentifier(E),N,D=[],w=[],j;r.forEach((Ie,De)=>{let Le;if(!S){let be=p.getTypeOfSymbolAtLocation(Ie.symbol,Ie.node);be=p.getBaseTypeOfLiteralType(be),Le=Wd.typeToAutoImportableTypeNode(p,m,be,t,h,1)}let Et=L.createParameterDeclaration(void 0,void 0,De,void 0,Le);D.push(Et),Ie.usage===2&&(j||(j=[])).push(Ie),w.push(L.createIdentifier(De))});let Y=Oo(i.values(),Ie=>({type:Ie,declaration:zJe(Ie,d.startPosition)})).sort(BJe),B=Y.length===0?void 0:to(Y,({declaration:Ie})=>Ie),ce=B!==void 0?B.map(Ie=>L.createTypeReferenceNode(Ie.name,void 0)):void 0;if(ht(e)&&!S){let Ie=p.getContextualType(e);N=p.typeToTypeNode(Ie,t,1)}let{body:z,returnValueProperty:ee}=VJe(e,s,j,o,!!(l.facts&1));bp(z);let me,ge=!!(l.facts&16);if(di(t)){let Ie=S?[]:[L.createModifier(123)];l.facts&32&&Ie.push(L.createModifier(126)),l.facts&4&&Ie.push(L.createModifier(134)),me=L.createMethodDeclaration(Ie.length?Ie: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=fr.ChangeTracker.fromContext(d),J=(Yy(l.range)?Ja(l.range):l.range).end,re=HJe(J,t);re?q.insertNodeBefore(d.file,re,me,!0):q.insertNodeAtEndOfScope(d.file,t,me),m.writeFixes(q);let pe=[],xe=GJe(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)),Zue(e)&&(fe=L.createJsxExpression(void 0,fe)),s.length&&!j)if(R.assert(!ee,"Expected no returnValueProperty"),R.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ie=s[0];pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(al(Ie.name),void 0,al(Ie.type),fe)],Ie.parent.flags)))}else{let Ie=[],De=[],Le=s[0].parent.flags,Et=!1;for(let ze of s){Ie.push(L.createBindingElement(void 0,void 0,al(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&&dr(be,1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(Ie),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)))}ee&&pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ee,void 0,ve(N))],1)));let Ie=Que(s,j);ee&&Ie.unshift(L.createShorthandPropertyAssignment(ee)),Ie.length===1?(R.assert(!ee,"Shouldn't have returnValueProperty here"),pe.push(L.createExpressionStatement(L.createAssignment(Ie[0].name,fe))),l.facts&1&&pe.push(L.createReturnStatement())):(pe.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(Ie),fe))),ee&&pe.push(L.createReturnStatement(L.createIdentifier(ee))))}else l.facts&1?pe.push(L.createReturnStatement(fe)):Yy(l.range)?pe.push(L.createExpressionStatement(fe)):pe.push(fe);Yy(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=(Yy(l.range)?Va(l.range):l.range).getSourceFile().fileName,Ge=uO(ne,Ce,E,!1);return{renameFilename:Ce,renameLocation:Ge,edits:ne};function ve(Ie){if(Ie===void 0)return;let De=al(Ie),Le=De;for(;MT(Le);)Le=Le.type;return Jv(Le)&&Gr(Le.types,Et=>Et.kind===157)?De:L.createUnionTypeNode([De,L.createKeywordTypeNode(157)])}}function WJe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),d=kr(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ki(e.name)&&!tE(e.name)?e.name.text:eA(di(t)?"newProperty":"newLocal",l),p=or(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=jJe(ms(e),r);({variableType:h,initializer:m}=N(h,m)),bp(m);let y=fr.ChangeTracker.fromContext(o);if(di(t)){R.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));Zue(e)&&(j=L.createJsxExpression(void 0,j));let K=e.pos,Y=KJe(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=FJe(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,Yue)){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=JJe(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);Zue(e)&&(Y=L.createJsxExpression(void 0,Y)),y.replaceNode(o.file,e,Y)}}}let E=y.getChanges(),S=e.getSourceFile().fileName,A=uO(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(!ks(w)&&!zs(w)||w.typeParameters)return{variableType:D,initializer:w};let j=s.getTypeAtLocation(e),K=rh(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,zs(w))w=L.updateArrowFunction(w,Am(e)?b0(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=Yc(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)?b0(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 FJe(e,t){let r;for(;e!==void 0&&e!==t;){if(Oi(e)&&e.initializer===r&&Uc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function zJe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos0;if(Ho(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,d=!1,p=L.createNodeArray(Ho(e)?e.statements.slice(0):[Hi(e)?e:L.createReturnStatement(ms(e))]);if(s||i.size){let m=zn(p,h,Hi).slice();if(s&&!o&&Hi(e)){let y=Que(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=Que(t,r);return m.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,Qe(m.expression,h,ht)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{let y=d;d=d||Fs(m)||di(m);let E=i.get(is(m).toString()),S=E?al(E):Sn(m,h,void 0);return d=y,S}}}function jJe(e,t){return t.size?r(e):e;function r(i){let o=t.get(is(i).toString());return o?al(o):Sn(i,r,void 0)}}function UJe(e){if(Fs(e)){let t=e.body;if(Ho(t))return t.statements}else{if(N_(e)||Yi(e))return e.statements;if(di(e))return e.members;}return Xe}function HJe(e,t){return Gr(UJe(t),r=>r.pos>=e&&Fs(r)&&!Ml(r))}function KJe(e,t){let r=t.members;R.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&&!jo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?R.fail():i}function JJe(e,t){R.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Yue(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(ODe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&wR(i)?(R.assert(gP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):R.checkDefined(o,"prevStatement failed to get set")}R.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Que(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 Yy(e){return So(e)}function qJe(e,t){return Yy(e.range)?{pos:Va(e.range).getStart(t),end:Ja(e.range).getEnd()}:e.range}function XJe(e,t,r,i,o,s){let l=new Map,d=[],p=[],h=[],m=[],y=[],E=new Map,S=[],A,N=Yy(e.range)?e.range.length===1&&td(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=Zc(i,pe,xe-pe,Td.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(D=Pr(N,Td.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),di(re)&&or(re)&&pe.push(Pr(re,Td.cannotExtractToJSClass)),zs(re)&&!Ho(re.body)&&pe.push(Pr(re,Td.cannotExtractToExpressionArrowFunction)),m.push(pe)}let w=new Map,j=Yy(e.range)?L.createBlock(e.range):e.range,K=Yy(e.range)?Va(e.range):e.range,Y=B(K);if(z(j),Y&&!Yy(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 Cv(xe)){let ne=o.getTypeAtLocation(fe);l.has(ne.id.toString())&&re.set(ne.id.toString(),ne)}R.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){let re=ZV(t[0],t[0].parent)?t[0]:ph(t[0]);Bo(re,ge)}for(let re=0;re0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){let ne=Yy(e.range)?e.range[0]:e.range;m[re].push(Pr(ne,Td.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[re])&&h[re].push(Pr(e.thisNode,Td.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))}),R.assert(Yy(e.range)||S.length===0,"No variable declarations expected if something was extracted"),xe&&!Yy(e.range)){let ne=Pr(e.range,Td.cannotWriteInExpression);h[re].push(ne),m[re].push(ne)}else if(fe&&re>0){let ne=Pr(fe,Td.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[re].push(ne),m[re].push(ne)}else if(A){let ne=Pr(A,Td.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)&&Cv(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(Kd(re)&&re.symbol&&y.push(re),Lc(re))z(re.left,2),z(re.right);else if(yre(re))z(re.operand,2);else if(kr(re)||Xs(re))Bo(re,z);else if(Fe(re)){if(!re.parent||Au(re.parent)&&re!==re.parent.left||kr(re.parent)&&re!==re.parent.expression)return;ee(re,pe,Yh(re))}else Bo(re,z)}function ee(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&&Gr(Ce,ve=>ve.getSourceFile()===i);if(Ge&&!Zw(r,Ge.getStart(),Ge.end)){if(e.facts&2&&pe===2){let ve=Pr(re,Td.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ie of h)Ie.push(ve);for(let Ie of m)Ie.push(ve)}for(let ve=0;vefe.symbol===pe);if(xe)if(Oi(xe)){let fe=xe.symbol.id.toString();E.has(fe)||(S.push(xe),E.set(fe,!0))}else A=A||xe}Bo(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 YJe(e){return Fn(e,t=>t.parent&&wDe(t)&&!pr(t.parent))}function wDe(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 ODe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Zue(e){return epe(e)||(ag(e)||FT(e)||X0(e))&&(ag(e.parent)||X0(e.parent))}function epe(e){return Ca(e)&&e.parent&&M_(e.parent)}var bD,ED,SD,Td,tpe,$Je=bt({"src/services/refactors/extractSymbol.ts"(){"use strict";ai(),Th(),bD="Extract Symbol",ED={name:"Extract Constant",description:ko(f.Extract_constant),kind:"refactor.extract.constant"},SD={name:"Extract Function",description:ko(f.Extract_function),kind:"refactor.extract.function"},lg(bD,{kinds:[ED.kind,SD.kind],getEditsForAction:kDe,getAvailableActions:LDe}),(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")})(Td||(Td={})),tpe=(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))(tpe||{})}}),WDe={};Ra(WDe,{Messages:()=>Td,RangeFacts:()=>tpe,getRangeToExtract:()=>Xue,getRefactorActionsToExtractSymbol:()=>LDe,getRefactorEditsToExtractSymbol:()=>kDe});var QJe=bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";$Je()}}),V7,uY,pY,ZJe=bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ai(),Th(),V7="Generate 'get' and 'set' accessors",uY=ko(f.Generate_get_and_set_accessors),pY={name:V7,description:uY,kind:"refactor.rewrite.property.generateAccessors"},lg(V7,{kinds:[pY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=Wd.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);R.assert(i&&!jg(i),"Expected applicable refactor info");let o=Wd.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)+uO(o,s,l.text,To(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return Xe;let t=Wd.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:V7,description:uY,actions:[{...pY,notApplicableReason:t.error}]}]:Xe:[{name:V7,description:uY,actions:[pY]}]:Xe}})}}),eqe={},tqe=bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";ZJe()}});function nqe(e){let t=FDe(e);if(t&&!jg(t))return{renameFilename:void 0,renameLocation:void 0,edits:fr.ChangeTracker.with(e,i=>iqe(e.file,i,t.declaration,t.returnTypeNode))}}function rqe(e){let t=FDe(e);return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:j7,description:fY,actions:[{...U7,notApplicableReason:t.error}]}]:Xe:[{name:j7,description:fY,actions:[U7]}]:Xe}function iqe(e,t,r,i){let o=gs(r,22,e),s=zs(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 FDe(e){if(or(e.file)||!NE(U7.kind,e.kind))return;let t=zu(e.file,e.startPosition),r=Fn(t,l=>Ho(l)||l.parent&&zs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":oqe(l));if(!r||!r.body||r.type)return{error:ko(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=aqe(i,r);if(!o)return{error:ko(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function oqe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function aqe(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 j7,fY,U7,sqe=bt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ai(),Th(),j7="Infer function return type",fY=ko(f.Infer_function_return_type),U7={name:j7,description:fY,kind:"refactor.rewrite.function.returnType"},lg(j7,{kinds:[U7.kind],getEditsForAction:nqe,getAvailableActions:rqe})}}),lqe={},cqe=bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";sqe()}}),I1={};Ra(I1,{addExportToChanges:()=>Pue,addExports:()=>Rue,addNewFileToTsconfig:()=>Sue,addOrRemoveBracesToArrowFunction:()=>TKe,containsJsx:()=>Lue,convertArrowFunctionOrFunctionExpression:()=>wKe,convertParamsToDestructuredObject:()=>eJe,convertStringOrTemplateLiteral:()=>dJe,convertToOptionalChainExpression:()=>TJe,createNewFileName:()=>Mue,createOldFileImportsFromTargetFile:()=>xue,deleteMovedStatements:()=>L7,deleteUnusedImports:()=>Due,deleteUnusedOldImports:()=>Tue,doChangeNamedToNamespaceOrDefault:()=>KRe,extractSymbol:()=>WDe,filterImport:()=>IO,forEachImportInStatement:()=>AO,generateGetAccessorAndSetAccessor:()=>eqe,getApplicableRefactors:()=>EHe,getEditsForRefactor:()=>SHe,getStatementsToMove:()=>xO,getTopLevelDeclarationStatement:()=>QX,getUsageInfo:()=>w7,inferFunctionReturnType:()=>lqe,isRefactorErrorInfo:()=>jg,isTopLevelDeclaration:()=>O7,makeImportOrRequire:()=>k7,moduleSpecifierFromImport:()=>TO,nameOfTopLevelDeclaration:()=>Nue,refactorKindBeginsWith:()=>NE,registerRefactor:()=>lg,updateImportsInOtherFiles:()=>Aue});var Th=bt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";BRe(),CHe(),kHe(),VHe(),jHe(),HHe(),XHe(),hKe(),AKe(),OKe(),tJe(),uJe(),AJe(),QJe(),tqe(),cqe()}});function zDe(e,t,r,i){let o=npe(e,t,r,i);R.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 uqe(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||!tF(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let h=l;if((ag(p)||FT(p))&&(l=!0),vP(p)&&(l=!1),Fe(p)&&!l&&!_qe(p)&&!eP(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=pqe(m,YT(p));if(y!==void 0){let E=0;p.parent&&(Xa(p.parent)||ape.get(p.parent.kind)===y)&&p.parent.name===p&&(E=1),y===6&&GDe(p)&&(y=9),y=fqe(s,p,y);let S=m.valueDeclaration;if(S){let A=eE(S),N=Cy(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)&&mqe(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)}}}Bo(p,d),l=h}d(t)}function pqe(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=BDe(i)),i&&ape.get(i.kind)}function fqe(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)||hqe(t))return r===9?11:10}}return r}function mqe(e,t){return Xa(e)&&(e=BDe(e)),Oi(e)?(!Yi(e.parent.parent.parent)||$0(e.parent))&&e.getSourceFile()===t:Tc(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function BDe(e){for(;;)if(Xa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function _qe(e){let t=e.parent;return t&&(yh(t)||Qu(t)||$v(t))}function hqe(e){for(;GDe(e);)e=e.parent;return ra(e.parent)&&e.parent.expression===e}function GDe(e){return Au(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e}var rpe,ipe,ope,ape,VDe=bt({"src/services/classifier2020.ts"(){"use strict";ai(),rpe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(rpe||{}),ipe=(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))(ipe||{}),ope=(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))(ope||{}),ape=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 jDe(e,t,r,i){let o=r2(e)?new yY(e,t,r):e===80?new bY(80,t,r):e===81?new EY(81,t,r):new dpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function gqe(e,t){if(!r2(e.kind))return Xe;let r=[];if(gF(e))return e.forEachChild(l=>{r.push(l)}),r;$d.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{H7(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{H7(r,i,l.pos,e),r.push(yqe(l,e)),i=l.end};return gn(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),H7(r,i,e.end,e),$d.setText(void 0),r}function H7(e,t,r,i){for($d.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function mY(e,t){if(!e)return Xe;let r=ME.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(UDe))){let i=new Set;for(let o of e){let s=HDe(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 K7(e,t){if(!e)return Xe;let r=ME.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(UDe))){let i=new Set;for(let o of e){let s=HDe(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(_D(),r))}}return r}function HDe(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=mc(t);return zl(xN(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 vqe(){return{getNodeConstructor:()=>yY,getTokenConstructor:()=>dpe,getIdentifierConstructor:()=>bY,getPrivateIdentifierConstructor:()=>EY,getSourceFileConstructor:()=>$De,getSymbolConstructor:()=>qDe,getTypeConstructor:()=>XDe,getSignatureConstructor:()=>YDe,getSourceMapSourceConstructor:()=>QDe}}function MO(e){let t=!0;for(let i in e)if(Is(e,i)&&!KDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Is(e,i)){let o=KDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function KDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function LO(e){return e?mn(e,t=>t.text).join(""):""}function J7(){return{target:1,jsx:1}}function _Y(){return Wd.getSupportedErrorCodes()}function JDe(e,t,r){e.version=r,e.scriptSnapshot=t}function q7(e,t,r,i,o,s){let l=ew(e,pD(t),r,o,s);return JDe(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=Xl(i.span)!==e.text.length?e.text.substr(Xl(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 JDe(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 q7(e.fileName,t,s,r,!0,e.scriptKind)}function spe(e,t=Ude(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 ZDe(e),l,d,p=0,h=e.getCancellationToken?new tCe(e.getCancellationToken()):eCe,m=e.getCurrentDirectory();doe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(k){e.log&&e.log(k)}let E=_R(e),S=Pd(E),A=iue({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>m,getProgram:j,fileExists:ea(e,e.fileExists),readFile:ea(e,e.readFile),getDocumentPositionMapper:ea(e,e.getDocumentPositionMapper),getSourceFileLike:ea(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(R.assert(o!==2),e.getProjectVersion){let Po=e.getProjectVersion();if(Po){if(d===Po&&!((k=e.hasChangedAutomaticTypeDirectiveNames)!=null&&k.call(e)))return;d=Po}}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()||J7(),It=e.hasInvalidatedResolutions||jm,Dt=ea(e,e.hasInvalidatedLibResolutions)||jm,Kt=ea(e,e.hasChangedAutomaticTypeDirectiveNames),En=(ie=e.getProjectReferences)==null?void 0:ie.call(e),wn,Bn={getSourceFile:Os,getSourceFileByPath:Zl,getCancellationToken:()=>h,getCanonicalFileName:S,useCaseSensitiveFileNames:()=>E,getNewLine:()=>Wy(Ne),getDefaultLibFileName:Po=>e.getDefaultLibFileName(Po),writeFile:qa,getCurrentDirectory:()=>m,fileExists:Po=>e.fileExists(Po),readFile:Po=>e.readFile&&e.readFile(Po),getSymlinkCache:ea(e,e.getSymlinkCache),realpath:ea(e,e.realpath),directoryExists:Po=>Hm(Po,e),getDirectories:Po=>e.getDirectories?e.getDirectories(Po):[],readDirectory:(Po,ls,Bs,_l,dd)=>(R.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Po,ls,Bs,_l,dd)),onReleaseOldSourceFile:xn,onReleaseParsedCommandLine:Io,hasInvalidatedResolutions:It,hasInvalidatedLibResolutions:Dt,hasChangedAutomaticTypeDirectiveNames:Kt,trace:ea(e,e.trace),resolveModuleNames:ea(e,e.resolveModuleNames),getModuleResolutionCache:ea(e,e.getModuleResolutionCache),createHash:ea(e,e.createHash),resolveTypeReferenceDirectives:ea(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ea(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ea(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ea(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ea(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ri,jsDocParsingMode:e.jsDocParsingMode},gi=Bn.getSourceFile,{getSourceFileWithCache:xi}=kw(Bn,Po=>nl(Po,m,S),(...Po)=>gi.call(Bn,...Po));Bn.getSourceFile=xi,(H=e.setCompilerHost)==null||H.call(e,Bn);let tr={useCaseSensitiveFileNames:E,fileExists:Po=>Bn.fileExists(Po),readFile:Po=>Bn.readFile(Po),directoryExists:Po=>Bn.directoryExists(Po),getDirectories:Po=>Bn.getDirectories(Po),realpath:Bn.realpath,readDirectory:(...Po)=>Bn.readDirectory(...Po),trace:Bn.trace,getCurrentDirectory:Bn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:qa},Wr=t.getKeyForCompilationSettings(Ne),ho=new Set;if(mJ(l,We,Ne,(Po,ls)=>e.getScriptVersion(ls),Po=>Bn.fileExists(Po),It,Dt,Kt,Ri,En)){Bn=void 0,wn=void 0,ho=void 0;return}l=az({rootNames:We,options:Ne,host:Bn,oldProgram:l,projectReferences:En}),Bn=void 0,wn=void 0,ho=void 0,A.clearCache(),l.getTypeChecker();return;function Ri(Po){let ls=nl(Po,m,S),Bs=wn?.get(ls);if(Bs!==void 0)return Bs||void 0;let _l=e.getParsedCommandLine?e.getParsedCommandLine(Po):Hr(Po);return(wn||(wn=new Map)).set(ls,_l||!1),_l}function Hr(Po){let ls=Os(Po,100);if(ls)return ls.path=nl(Po,m,S),ls.resolvedPath=ls.path,ls.originalFileName=ls.fileName,ow(ls,tr,_o(oi(Po),m),void 0,_o(Po,m))}function Io(Po,ls,Bs){var _l;e.getParsedCommandLine?(_l=e.onReleaseParsedCommandLine)==null||_l.call(e,Po,ls,Bs):ls&&xn(ls.sourceFile,Bs)}function xn(Po,ls){let Bs=t.getKeyForCompilationSettings(ls);t.releaseDocumentWithKey(Po.resolvedPath,Bs,Po.scriptKind,Po.impliedNodeFormat)}function Os(Po,ls,Bs,_l){return Zl(Po,nl(Po,m,S),ls,Bs,_l)}function Zl(Po,ls,Bs,_l,dd){R.assert(Bn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let mo=e.getScriptSnapshot(Po);if(!mo)return;let sa=eX(Po,e),ud=e.getScriptVersion(Po);if(!dd){let Ss=l&&l.getSourceFileByPath(ls);if(Ss){if(sa===Ss.scriptKind||ho.has(Ss.resolvedPath))return t.updateDocumentWithKey(Po,ls,e,Wr,mo,ud,sa,Bs);t.releaseDocumentWithKey(Ss.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ss.scriptKind,Ss.impliedNodeFormat),ho.add(Ss.resolvedPath)}}return t.acquireDocumentWithKey(Po,ls,e,Wr,mo,ud,sa,Bs)}}function j(){if(o===2){R.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 Kt=Ne(Dt);if(R.assertIsDefined(Kt),ie.has(Dt)||ws.isDeclarationOfSymbol(Kt,ue)){ie.add(Dt),Dt.isDefinition=!0;let En=t7(Dt,A,ea(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 R.assertIsDefined(En),H.getSymbolAtLocation(En)}let Kt=t7(Dt,A,ea(e,e.fileExists));if(Kt&&ie.has(Kt)){let En=Ne(Kt);if(En)return H.getSymbolAtLocation(En)}}}function Ne(It){let Dt=l.getSourceFile(It.fileName);if(!Dt)return;let Kt=zu(Dt,It.textSpan.start);return ws.Core.getAdjustedNode(Kt,{use:ws.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 ee(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(),P1.getCompletionsAtPosition(e,l,y,N(k),ie,We,H.triggerCharacter,H.triggerKind,h,ue&&Oc.getFormatContext(ue,e),H.includeSymbol)}function J(k,ie,H,ue,We,Ne=Cf,It){return D(),P1.getCompletionEntryDetails(l,y,N(k),ie,{name:H,source:We,data:It},e,ue&&Oc.getFormatContext(ue,e),Ne,h)}function re(k,ie,H,ue,We=Cf){return D(),P1.getCompletionEntrySymbol(l,y,N(k),ie,{name:H,source:ue},e,We)}function pe(k,ie){D();let H=N(k),ue=zu(H,ie);if(ue===H)return;let We=l.getTypeChecker(),Ne=xe(ue),It=Tqe(Ne,We);if(!It||We.isUnknownSymbol(It)){let Bn=fe(H,Ne,ie)?We.getTypeAtLocation(Ne):void 0;return Bn&&{kind:"",kindModifiers:"",textSpan:Ru(Ne,H),displayParts:We.runWithCancellationToken(h,gi=>cO(gi,Bn,$T(Ne))),documentation:Bn.symbol?Bn.symbol.getDocumentationComment(We):void 0,tags:Bn.symbol?Bn.symbol.getJsDocTags(We):void 0}}let{symbolKind:Dt,displayParts:Kt,documentation:En,tags:wn}=We.runWithCancellationToken(h,Bn=>$y.getSymbolDisplayPartsDocumentationAndSymbolKind(Bn,It,H,$T(Ne),Ne));return{kind:Dt,kindModifiers:$y.getSymbolModifiers(We,It),textSpan:Ru(Ne,H),displayParts:Kt,documentation:En,tags:wn}}function xe(k){return H0(k.parent)&&k.pos===k.parent.pos?k.parent.expression:PR(k.parent)&&k.pos===k.parent.pos||Yx(k.parent)&&k.parent.name===k||Xm(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!Hy(k,H);case 110:case 197:case 108:case 202:return!0;case 236:return Yx(ie);default:return!1}}function ne(k,ie,H,ue){return D(),CD.getDefinitionAtPosition(l,N(k),ie,H,ue)}function he(k,ie){return D(),CD.getDefinitionAndBoundSpan(l,N(k),ie)}function Ce(k,ie){return D(),CD.getTypeDefinitionAtPosition(l.getTypeChecker(),N(k),ie)}function Ge(k,ie){return D(),ws.getImplementationsAtPosition(l,h,l.getSourceFiles(),N(k),ie)}function ve(k,ie,H){let ue=ma(k);R.assert(H.some(It=>ma(It)===ue)),D();let We=to(H,It=>l.getSourceFile(It)),Ne=N(k);return T7.getDocumentHighlights(l,h,Ne,ie,We)}function Ie(k,ie,H,ue,We){D();let Ne=N(k),It=Gz(zu(Ne,ie));if(EB.nodeIsEligibleForRename(It))if(Fe(It)&&(P_(It.parent)||q0(It.parent))&&fR(It.escapedText)){let{openingElement:Dt,closingElement:Kt}=It.parent.parent;return[Dt,Kt].map(En=>{let wn=Ru(En.tagName,Ne);return{fileName:Ne.fileName,textSpan:wn,...ws.toContextSpan(wn,Ne,En.parent)}})}else{let Dt=of(Ne,We??Cf),Kt=typeof We=="boolean"?We:We?.providePrefixAndSuffixTextForRename;return Le(It,ie,{findInStrings:H,findInComments:ue,providePrefixAndSuffixTextForRename:Kt,use:ws.FindReferencesUse.Rename},(En,wn,Bn)=>ws.toRenameLocation(En,wn,Bn,Kt||!1,Dt))}}function De(k,ie){return D(),Le(zu(N(k),ie),ie,{use:ws.FindReferencesUse.References},ws.toReferenceEntry)}function Le(k,ie,H,ue){D();let We=H&&H.use===ws.FindReferencesUse.Rename?l.getSourceFiles().filter(Ne=>!l.isSourceFileDefaultLibrary(Ne)):l.getSourceFiles();return ws.findReferenceOrRenameEntries(l,h,We,k,ie,H,ue)}function Et(k,ie){return D(),ws.findReferencedSymbols(l,h,l.getSourceFiles(),N(k),ie)}function be(k){return D(),ws.Core.getReferencesForFileName(k,l,l.getSourceFiles()).map(ws.toReferenceEntry)}function ze(k,ie,H,ue=!1,We=!1){D();let Ne=H?[N(H)]:l.getSourceFiles();return _Re(Ne,l.getTypeChecker(),h,k,ie,ue,We)}function tt(k,ie,H){D();let ue=N(k),We=e.getCustomTransformers&&e.getCustomTransformers();return Zle(l,ue,!!ie,h,We,H)}function Wt(k,ie,{triggerReason:H}=Cf){D();let ue=N(k);return XO.getSignatureHelpItems(l,ue,ie,H,h)}function _t(k){return s.getCurrentSourceFile(k)}function Je(k,ie,H){let ue=s.getCurrentSourceFile(k),We=zu(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(cD(Ne)||Zce(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 pc(Ne.getStart(),We.getEnd())}function ft(k,ie){let H=s.getCurrentSourceFile(k);return TY.spanInSourceFileAtLocation(H,ie)}function Zt(k){return vRe(s.getCurrentSourceFile(k),h)}function en(k){return bRe(s.getCurrentSourceFile(k),h)}function Dn(k,ie,H){return D(),(H||"original")==="2020"?zDe(l,h,N(k),ie):Vde(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):npe(l,h,N(k),ie)}function pn(k,ie){return jde(h,s.getCurrentSourceFile(k),ie)}function Yt(k,ie){return xX(h,s.getCurrentSourceFile(k),ie)}function qt(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=uD(H,ie),We=ue.getStart(H)===ie?hi.get(ue.kind.toString()):void 0,Ne=We&&gs(ue.parent,We,H);return Ne?[Ru(ue,H),Ru(Ne,H)].sort((It,Dt)=>It.start-Dt.start):Xe}function Li(k,ie,H){let ue=Js(),We=MO(H),Ne=s.getCurrentSourceFile(k);y("getIndentationAtPosition: getCurrentSourceFile: "+(Js()-ue)),ue=Js();let It=Oc.SmartIndenter.getIndentation(ie,Ne,We);return y("getIndentationAtPosition: computeIndentation : "+(Js()-ue)),It}function Eo(k,ie,H,ue){let We=s.getCurrentSourceFile(k);return Oc.formatSelection(ie,H,We,Oc.getFormatContext(MO(ue),e))}function Zn(k,ie){return Oc.formatDocument(s.getCurrentSourceFile(k),Oc.getFormatContext(MO(ie),e))}function jr(k,ie,H,ue){let We=s.getCurrentSourceFile(k),Ne=Oc.getFormatContext(MO(ue),e);if(!Hy(We,ie))switch(H){case"{":return Oc.formatOnOpeningCurly(ie,We,Ne);case"}":return Oc.formatOnClosingCurly(ie,We,Ne);case";":return Oc.formatOnSemicolon(ie,We,Ne);case` +`:return Oc.formatOnEnter(ie,We,Ne)}return[]}function Sr(k,ie,H,ue,We,Ne=Cf){D();let It=N(k),Dt=pc(ie,H),Kt=Oc.getFormatContext(We,e);return va(h0(ue,Iy,el),En=>(h.throwIfCancellationRequested(),Wd.getFixes({errorCode:En,sourceFile:It,span:Dt,program:l,host:e,cancellationToken:h,formatContext:Kt,preferences:Ne})))}function on(k,ie,H,ue=Cf){D(),R.assert(k.type==="file");let We=N(k.fileName),Ne=Oc.getFormatContext(H,e);return Wd.getAllFixes({fixId:ie,sourceFile:We,program:l,host:e,cancellationToken:h,formatContext:Ne,preferences:ue})}function $e(k,ie,H=Cf){D(),R.assert(k.type==="file");let ue=N(k.fileName),We=Oc.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 Kde(j(),k,ie,e,Oc.getFormatContext(H,e),ue,A)}function In(k,ie){let H=typeof k=="string"?ie:k;return So(H)?Promise.all(H.map(ue=>si(ue))):si(H)}function si(k){let ie=H=>nl(H,m,S);return R.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?Oc.getFormatContext(ue,e).options:void 0;return ME.getDocCommentTemplateAtPosition(qy(e,We),s.getCurrentSourceFile(k),ie,H)}function $i(k,ie,H){if(H===60)return!1;let ue=s.getCurrentSourceFile(k);if(b1(ue,ie))return!1;if(ade(ue,ie))return H===123;if(Nq(ue,ie))return!1;switch(H){case 39:case 34:case 96:return!Hy(ue,ie)}return!0}function Ao(k,ie){let H=s.getCurrentSourceFile(k),ue=Ic(ie,H);if(!ue)return;let We=ue.kind===32&&P_(ue.parent)?ue.parent.parent:KI(ue)&&ag(ue.parent)?ue.parent:void 0;if(We&<(We))return{newText:``};let Ne=ue.kind===32&&a1(ue.parent)?ue.parent.parent:KI(ue)&&X0(ue.parent)?ue.parent:void 0;if(Ne&&Rt(Ne))return{newText:""}}function ua(k,ie){let H=s.getCurrentSourceFile(k),ue=Ic(ie,H);if(!ue||ue.parent.kind===312)return;let We="[a-zA-Z0-9:\\-\\._$]*";if(X0(ue.parent.parent)){let Ne=ue.parent.parent.openingFragment,It=ue.parent.parent.closingFragment;if(Hx(Ne)||Hx(It))return;let Dt=Ne.getStart(H)+1,Kt=It.getStart(H)+2;return ie!==Dt&&ie!==Kt?void 0:{ranges:[{start:Dt,length:0},{start:Kt,length:0}],wordPattern:We}}else{let Ne=Fn(ue.parent,xi=>!!(P_(xi)||q0(xi)));if(!Ne)return;R.assert(P_(Ne)||q0(Ne),"tag should be opening or closing element");let It=Ne.parent.openingElement,Dt=Ne.parent.closingElement,Kt=It.tagName.getStart(H),En=It.tagName.end,wn=Dt.tagName.getStart(H),Bn=Dt.tagName.end;return Kt===It.getStart(H)||wn===Dt.getStart(H)||En===It.getEnd()||Bn===Dt.getEnd()||!(Kt<=ie&&ie<=En||wn<=ie&&ie<=Bn)||It.tagName.getText(H)!==Dt.tagName.getText(H)?void 0:{ranges:[{start:Kt,length:En-Kt},{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),Kt=H||!1,En=Number.MAX_VALUE,wn=new Map,Bn=new RegExp(/\S/),gi=Uz(ue,Ne[It]),xi=gi?"{/*":"//";for(let tr=It;tr<=Dt;tr++){let Wr=ue.text.substring(Ne[tr],ue.getLineEndOfPosition(Ne[tr])),ho=Bn.exec(Wr);ho&&(En=Math.min(En,ho.index),wn.set(tr.toString(),ho.index),Wr.substr(ho.index,xi.length)!==xi&&(Kt=H===void 0||H))}for(let tr=It;tr<=Dt;tr++){if(It!==Dt&&Ne[tr]===ie.end)continue;let Wr=wn.get(tr.toString());Wr!==void 0&&(gi?We.push(...kn(k,{pos:Ne[tr]+En,end:ue.getLineEndOfPosition(Ne[tr])},Kt,gi)):Kt?We.push({newText:xi,span:{length:0,start:Ne[tr]+En}}):ue.text.substr(Ne[tr]+Wr,xi.length)===xi&&We.push({newText:"",span:{length:xi.length,start:Ne[tr]+Wr}}))}return We}function kn(k,ie,H,ue){var We;let Ne=s.getCurrentSourceFile(k),It=[],{text:Dt}=Ne,Kt=!1,En=H||!1,wn=[],{pos:Bn}=ie,gi=ue!==void 0?ue:Uz(Ne,Bn),xi=gi?"{/*":"/*",tr=gi?"*/}":"*/",Wr=gi?"\\{\\/\\*":"\\/\\*",ho=gi?"\\*\\/\\}":"\\*\\/";for(;Bn<=ie.end;){let Pi=Dt.substr(Bn,xi.length)===xi?xi.length:0,Ri=Hy(Ne,Bn+Pi);if(Ri)gi&&(Ri.pos--,Ri.end++),wn.push(Ri.pos),Ri.kind===3&&wn.push(Ri.end),Kt=!0,Bn=Ri.end+1;else{let Hr=Dt.substring(Bn,ie.end).search(`(${Wr})|(${ho})`);En=H!==void 0?H:En||!yde(Dt,Bn,Hr===-1?ie.end:Bn+Hr),Bn=Hr===-1?ie.end+1:Bn+Hr+tr.length}}if(En||!Kt){((We=Hy(Ne,ie.pos))==null?void 0:We.kind)!==2&&Ev(wn,ie.pos,el),Ev(wn,ie.end,el);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-tr.length:0,Hr=Dt.substr(Ri,tr.length)===tr?tr.length:0;It.push({newText:"",span:{length:xi.length,start:Pi-Hr}})}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+=Uz(H,We)?2:1);for(let It=We;It<=Ne;It++){let Dt=Hy(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!EE(k.tagName,ie.tagName)||ag(H)&&EE(k.tagName,H.openingElement.tagName)&<(H)}function Rt({closingFragment:k,parent:ie}){return!!(k.flags&262144)||X0(ie)&&Rt(ie)}function se(k,ie,H){let ue=s.getCurrentSourceFile(k),We=Oc.getRangeOfEnclosingComment(ue,ie);return We&&(!H||We.kind===3)?nb(We):void 0}function ke(k,ie){D();let H=N(k);h.throwIfCancellationRequested();let ue=H.text,We=[];if(ie.length>0&&!Kt(H.fileName)){let En=It(),wn;for(;wn=En.exec(ue);){h.throwIfCancellationRequested();let Bn=3;R.assert(wn.length===ie.length+Bn);let gi=wn[1],xi=wn.index+gi.length;if(!Hy(H,xi))continue;let tr;for(let ho=0;ho"("+Ne(Ri.text)+")").join("|")+")",tr=/(?:$|\*\/)/.source,Wr=/(?:.*?)/.source,ho="("+xi+Wr+")",Pi=gi+ho+tr;return new RegExp(Pi,"gim")}function Dt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function Kt(En){return En.includes("/node_modules/")}}function st(k,ie,H){return D(),EB.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:Oc.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 I1.getApplicableRefactors(G(It,ie,H,Cf,ue,We),Ne)}function pt(k,ie,H=Cf){D();let ue=N(k),We=R.checkDefined(l.getSourceFiles()),Ne=qN(k),It=xO(G(ue,ie,H,Cf)),Dt=Lue(It?.all),Kt=to(We,En=>{let wn=qN(En.fileName);return!l?.isSourceFileFromExternalLibrary(ue)&&!(ue===N(En.fileName)||Ne===".ts"&&wn===".d.ts"||Ne===".d.ts"&&ao(ic(En.fileName),"lib.")&&wn===".d.ts")&&(Ne===wn||(Ne===".tsx"&&wn===".ts"||Ne===".jsx"&&wn===".js")&&!Dt)?En.fileName:void 0});return{newFileName:Mue(ue,l,e,It),files:Kt}}function Bt(k,ie,H,ue,We,Ne=Cf,It){D();let Dt=N(k);return I1.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=x1.resolveCallHierarchyDeclaration(l,zu(N(k),ie));return H&&uX(H,ue=>x1.createCallHierarchyItem(l,ue))}function un(k,ie){D();let H=N(k),ue=pX(x1.resolveCallHierarchyDeclaration(l,ie===0?H:zu(H,ie)));return ue?x1.getIncomingCalls(l,ue,h):[]}function U(k,ie){D();let H=N(k),ue=pX(x1.resolveCallHierarchyDeclaration(l,ie===0?H:zu(H,ie)));return ue?x1.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:ee,getSuggestionDiagnostics:me,getCompilerOptionsDiagnostics:ge,getSyntacticClassifications:pn,getSemanticClassifications:Dn,getEncodedSyntacticClassifications:Yt,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:ft,getNavigateToItems:ze,getRenameInfo:st,getSmartSelectionRange:Tt,findRenameLocations:Ie,getNavigationBarItems:Zt,getNavigationTree:en,getOutliningSpans:qt,getTodoComments:ke,getBraceMatchingAtPosition:uo,getIndentationAtPosition:Li,getFormattingEditsForRange:Eo,getFormattingEditsForDocument:Zn,getFormattingEditsAfterKeystroke:jr,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:$i,getJsxClosingTagAtPosition:Ao,getLinkedEditingRangeAtPosition:ua,getSpanOfEnclosingComment:se,getCodeFixesAtPosition:Sr,getCombinedCodeFix:on,applyCodeActionCommand:In,organizeImports:$e,getEditsForFileRename:Ot,getEmitOutput:tt,getNonBoundSourceFile:_t,getProgram:j,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Y,getApplicableRefactors:He,getEditsForRefactor:Bt,getMoveToRefactoringFileSuggestions:pt,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:upe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:nCe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.Syntactic`)});break;default:R.assertNever(o)}return Nt}function gY(e){return e.nameTable||bqe(e),e.nameTable}function bqe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Fe(i)&&!Sq(i)&&i.escapedText||$p(i)&&Eqe(i)){let o=CN(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(Bo(i,r),kp(i))for(let o of i.jsDoc)Bo(o,r)})}function Eqe(e){return kg(e)||e.parent.kind===283||Aqe(e)||J2(e)}function kO(e){let t=Sqe(e);return t&&(La(t.parent)||Y0(t.parent))?t:void 0}function Sqe(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 Tqe(e,t){let r=kO(e);if(r){let i=t.getContextualType(r.parent),o=i&&X7(r,t,i,!1);if(o&&o.length===1)return Va(o)}return t.getSymbolAtLocation(e)}function X7(e,t,r,i){let o=aO(e.name);if(!o)return Xe;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:Xe}let s=La(e.parent)||Y0(e.parent)?Vr(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)):h0(l,Iy)}function Aqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function lpe(e){if(gd)return Yr(oi(ma(gd.getExecutingFilePath())),XL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var cpe,yY,vY,qDe,dpe,bY,EY,XDe,YDe,$De,QDe,ZDe,eCe,tCe,SY,upe,nCe,Iqe=bt({"src/services/services.ts"(){"use strict";ai(),yRe(),zRe(),Th(),qxe(),VDe(),cpe="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){R.assert(!Jm(this.pos)&&!Jm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Gn(this)}getStart(e,t){return this.assertHasRealPosition(),aE(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=gqe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Gr(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=Qs(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Bo(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 aE(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(){}},qDe=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&&dh(this)&&this.links.target&&dh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=K7([t],e)}else this.documentationComment=K7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Lv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=K7(Vr(this.declarations,Lv),t)),Nn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Py(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=K7(Vr(this.declarations,Py),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(Lv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=mY(Vr(this.declarations,Lv),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Py(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=mY(Vr(this.declarations,Py),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},dpe=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 vr(this)}},bY.prototype.kind=80,EY=class extends vY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return vr(this)}},EY.prototype.kind=81,XDe=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)}},YDe=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()&&tP(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=K7(mI(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=mY(mI(this.declaration),this.checker))}},$De=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 ys(this,e)}getLineStarts(){return Dg(this)}getPositionOfLineAndCharacter(e,t,r){return $W(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=nF(s);return l&&(Ya(l)&&kr(l.expression)?l.expression.name.text:oc(l)?aO(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=Qs(m);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(m[m.length-1]=l):m.push(l)}Bo(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),Bo(s,o);break;case 169:if(!$r(s,31))break;case 260:case 208:{let m=s;if($o(m.name)){Bo(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:Gl(s)!==0&&t(s);default:Bo(s,o)}}}},QDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ys(this,e)}},ZDe=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:Ww(nl(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||ky(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:ck(this.host.getCompilationSettings()),jsDocParsingMode:0};E=q7(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}},eCe={isCancellationRequested:jm,throwIfCancellationRequested:qa},tCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ir)==null||e.instant(ir.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Nx}},SY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Js();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ir)==null||e.instant(ir.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Nx}},upe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],nCe=[...upe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],loe(vqe())}});function rCe(e,t,r){let i=[];r=WX(r,i);let o=So(e)?e:[e],s=Dw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=bo(s.diagnostics,i),s}var xqe=bt({"src/services/transform.ts"(){"use strict";ai()}});function Rqe(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=Ic(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=jT(y)?cI(y.modifiers,Ed):void 0,A=S?Pa(e.text,S.end):y.getStart(e);return pc(A,(E||y).getEnd())}function s(y,E){return o(y,lS(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){R.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 ee(ne){switch(ne.parent.kind){case 266:let he=ne.parent;return l(Ic(ne.pos,e,ne.parent),he.members.length?he.members[0]:he.getLastToken(e));case 263:let Ce=ne.parent;return l(Ic(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(D0(ne.parent))return o(ne);case 299:return m(Qs(ne.parent.statements));case 269:let he=ne.parent,Ce=Qs(he.clauses);return Ce?m(Qs(Ce.statements)):void 0;case 206:let Ge=ne.parent;return m(Qs(Ge.elements)||Ge);default:if(Ky(ne.parent)){let ve=ne.parent;return o(Qs(ve.properties)||ve)}return m(ne.parent)}}function ge(ne){switch(ne.parent.kind){case 207:let he=ne.parent;return o(Qs(he.elements)||he);default:if(Ky(ne.parent)){let Ce=ne.parent;return o(Qs(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 Yo(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 Dqe=bt({"src/services/breakpoints.ts"(){"use strict";ai()}}),TY={};Ra(TY,{spanInSourceFileAtLocation:()=>Rqe});var Cqe=bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";Dqe()}});function Nqe(e){return(ks(e)||ed(e))&&au(e)}function iCe(e){return jo(e)||Oi(e)}function wO(e){return(ks(e)||zs(e)||ed(e))&&iCe(e.parent)&&e===e.parent.initializer&&Fe(e.parent.name)&&(!!(Cy(e.parent)&2)||jo(e.parent))}function oCe(e){return Yi(e)||Yl(e)||Tc(e)||ks(e)||Ac(e)||ed(e)||Il(e)||Kl(e)||hh(e)||Qp(e)||hp(e)}function TD(e){return Yi(e)||Yl(e)&&Fe(e.name)||Tc(e)||Ac(e)||Il(e)||Kl(e)||hh(e)||Qp(e)||hp(e)||Nqe(e)||wO(e)}function aCe(e){return Yi(e)?e:au(e)?e.name:wO(e)?e.parent.name:R.checkDefined(e.modifiers&&Gr(e.modifiers,sCe))}function sCe(e){return e.kind===90}function lCe(e,t){let r=aCe(t);return r&&e.getSymbolAtLocation(r)}function Pqe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Tc(t)||Ac(t))&&!au(t)){let o=t.modifiers&&Gr(t.modifiers,sCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Il(t)){let o=t.getSourceFile(),s=Pa(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=wO(t)?t.parent.name:R.checkDefined(No(t),"Expected call hierarchy item to have a name"),i=Fe(r)?vr(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=Nw();i=_N(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Mqe(e){var t,r,i,o;if(wO(e))return jo(e.parent)&&di(e.parent.parent)?ed(e.parent.parent)?(t=rF(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=rF(e.parent))==null?void 0:i.getText():(o=No(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 cCe(e,t){if(t.body)return t;if(Ml(t))return tg(t.parent);if(Tc(t)||Kl(t)){let r=lCe(e,t);return r&&r.valueDeclaration&&Fs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function dCe(e,t){let r=lCe(e,t),i;if(r&&r.declarations){let o=IL(r.declarations),s=mn(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>jd(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)TD(p)&&((!d||d.parent!==p.parent||d.end!==p.pos)&&(i=Tn(i,p)),d=p)}return i}function AY(e,t){return Il(t)?t:Fs(t)?cCe(e,t)??dCe(e,t)??t:dCe(e,t)??t}function uCe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(TD(t))return AY(r,t);if(oCe(t)){let o=Fn(t,TD);return o&&AY(r,o)}if(kg(t)){if(TD(t.parent))return AY(r,t.parent);if(oCe(t.parent)){let o=Fn(t.parent,TD);return o&&AY(r,o)}return iCe(t.parent)&&t.parent.initializer&&wO(t.parent.initializer)?t.parent.initializer:void 0}if(Ml(t))return TD(t.parent)?t.parent:void 0;if(t.kind===126&&Il(t.parent)){t=t.parent;continue}if(Oi(t)&&t.initializer&&wO(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 ppe(e,t){let r=t.getSourceFile(),i=Pqe(e,t),o=Mqe(t),s=sS(t),l=tM(t),d=pc(Pa(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=pc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:d,selectionSpan:p}}function Lqe(e){return e!==void 0}function kqe(e){if(e.kind===ws.EntryKind.Node){let{node:t}=e;if(yq(t,!0,!0)||Xce(t,!0,!0)||Yce(t,!0,!0)||$ce(t,!0,!0)||cD(t)||Tq(t)){let r=t.getSourceFile();return{declaration:Fn(t,TD)||r,range:Fq(t,r)}}}}function pCe(e){return is(e.declaration)}function wqe(e,t){return{from:e,fromSpans:t}}function Oqe(e,t){return wqe(ppe(e,t[0].declaration),mn(t,r=>nb(r.range)))}function Wqe(e,t,r){if(Yi(t)||Yl(t)||Il(t))return[];let i=aCe(t),o=Vr(ws.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:ws.FindReferencesUse.References},kqe),Lqe);return o?KC(o,pCe,s=>Oqe(e,s)):[]}function Fqe(e,t){function r(o){let s=K0(o)?o.tag:lu(o)?o.tagName:Ls(o)||Il(o)?o:o.expression,l=uCe(e,s);if(l){let d=Fq(s,o.getSourceFile());if(So(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(TD(o)){if(di(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),Bo(o,i);break;case 238:i(o.expression);return}Yh(o)||Bo(o,i)}}return i}function zqe(e,t){gn(e.statements,t)}function Bqe(e,t){!$r(e,128)&&e.body&&N_(e.body)&&gn(e.body.statements,t)}function Gqe(e,t,r){let i=cCe(e,t);i&&(gn(i.parameters,r),r(i.body))}function Vqe(e,t){t(e.body)}function jqe(e,t){gn(e.modifiers,t);let r=M0(e);r&&t(r.expression);for(let i of e.members)Am(i)&&gn(i.modifiers,t),jo(i)?t(i.initializer):Ml(i)&&i.body?(gn(i.parameters,t),t(i.body)):Il(i)&&t(i)}function Uqe(e,t){let r=[],i=Fqe(e,r);switch(t.kind){case 312:zqe(t,i);break;case 267:Bqe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Gqe(e.getTypeChecker(),t,i);break;case 263:case 231:jqe(t,i);break;case 175:Vqe(t,i);break;default:R.assertNever(t)}return r}function Hqe(e,t){return{to:e,fromSpans:t}}function Kqe(e,t){return Hqe(ppe(e,t[0].declaration),mn(t,r=>nb(r.range)))}function Jqe(e,t){return t.flags&33554432||hh(t)?[]:KC(Uqe(e,t),pCe,r=>Kqe(e,r))}var qqe=bt({"src/services/callHierarchy.ts"(){"use strict";ai()}}),x1={};Ra(x1,{createCallHierarchyItem:()=>ppe,getIncomingCalls:()=>Wqe,getOutgoingCalls:()=>Jqe,resolveCallHierarchyDeclaration:()=>uCe});var Xqe=bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";qqe()}}),fCe={};Ra(fCe,{TokenEncodingConsts:()=>rpe,TokenModifier:()=>ope,TokenType:()=>ipe,getEncodedSemanticClassifications:()=>npe,getSemanticClassifications:()=>zDe});var Yqe=bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";VDe()}}),fpe={};Ra(fpe,{v2020:()=>fCe});var $qe=bt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Yqe()}});function Zm(e,t,r){return _pe(e,tA(r),t,void 0,void 0)}function ia(e,t,r,i,o,s){return _pe(e,tA(r),t,i,tA(o),s)}function mpe(e,t,r,i,o,s){return _pe(e,tA(r),t,i,o&&tA(o),s)}function _pe(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)hpe=void 0,IY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)R.assert(!xY.has(t)),xY.set(t,e)}function Qqe(){return hpe??(hpe=Oo(IY.keys()))}function Zqe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(zo(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 eXe(e){let t=_Ce(e),r=IY.get(String(e.errorCode));return va(r,i=>mn(i.getCodeActions(e),Zqe(i,t)))}function tXe(e){return xY.get(ta(e.fixId,Co)).getAllCodeActions(e)}function AD(e,t){return{changes:e,commands:t}}function mCe(e,t){return{fileName:e,textChanges:t}}function vs(e,t,r){let i=[],o=fr.ChangeTracker.with(e,s=>ID(e,t,l=>r(s,l,i)));return AD(o,i.length===0?void 0:i)}function ID(e,t,r){for(let i of _Ce(e))zo(t,i.code)&&r(i)}function _Ce({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...MX(t,e,r)]}var IY,xY,hpe,nXe=bt({"src/services/codeFixProvider.ts"(){"use strict";ai(),IY=qp(),xY=new Map}});function hCe(e,t,r){let i=Bk(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function gCe(e,t){if(!or(e))return Fn(so(e,t),r=>Bk(r)||mae(r))}var RY,gpe,rXe=bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ai(),Aa(),RY="addConvertToUnknownForNonOverlappingTypes",gpe=[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:gpe,getCodeActions:function(t){let r=gCe(t.sourceFile,t.span.start);if(r===void 0)return;let i=fr.ChangeTracker.with(t,o=>hCe(o,t.sourceFile,r));return[ia(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=>vs(e,gpe,(t,r)=>{let i=gCe(r.file,r.start);i&&hCe(t,r.file,i)})})}}),iXe=bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ai(),Aa(),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=fr.ChangeTracker.with(t,o=>{let s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Zm("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function yCe(e,t,r,i){let o=r(s=>oXe(s,e.sourceFile,t,i));return ia(DY,o,f.Add_async_modifier_to_containing_function,DY,f.Add_all_missing_async_modifiers)}function oXe(e,t,r,i){if(i&&i.has(is(r)))return;i?.add(is(r));let o=L.replaceModifiers(al(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(zv(r)|1024)));e.replaceNode(t,r,o)}function vCe(e,t){if(!t)return;let r=so(e,t.start);return Fn(r,o=>o.getStart(e)Xl(t)?"quit":(zs(o)||Kl(o)||ks(o)||Tc(o))&&mD(t,Ru(o,e)))}function aXe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ty(r)&&Ty(i)&&mD({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,ype,sXe=bt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ai(),Aa(),DY="addMissingAsync",ype=[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:ype,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Gr(s.getTypeChecker().getDiagnostics(r,o),aXe(l,i)),p=d&&d.relatedInformation&&Gr(d.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=vCe(r,p);return h?[yCe(t,h,y=>fr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return vs(e,ype,(i,o)=>{let s=o.relatedInformation&&Gr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=vCe(t,s);return l?yCe(e,l,p=>(p(i),[]),r):void 0})}})}});function bCe(e,t,r,i,o){let s=dX(e,r);return s&&lXe(e,t,r,i,o)&&TCe(s)?s:void 0}function ECe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=cXe(t,l,p,d,i);if(h){let m=o(y=>{gn(h.initializers,({expression:E})=>vpe(y,r,l,i,E,s)),s&&h.needsSecondPassForFixAll&&vpe(y,r,l,i,t,s)});return Zm("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function SCe(e,t,r,i,o,s){let l=o(d=>vpe(d,r,e.sourceFile,i,t,s));return ia(CY,l,f.Add_await,CY,f.Fix_all_expressions_possibly_missing_await)}function lXe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return gt(l,({start:d,length:p,relatedInformation:h,code:m})=>Ty(d)&&Ty(p)&&mD({start:d,length:p},r)&&m===t&&!!h&>(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function cXe(e,t,r,i,o){let s=dXe(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,Oi),y=m&&ri(m.name,Fe),E=uE(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||$r(E,32)||!y||!TCe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(ws.Core.eachSymbolReferenceInFile(y,o,t,N=>p!==N&&!uXe(N,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function dXe(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(pr(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 uXe(e,t,r,i){let o=kr(e.parent)?e.parent.name:pr(e.parent)?e.parent:e,s=Gr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&zo(NY,s.code)||i.getTypeAtLocation(o).flags&1}function TCe(e){return e.flags&65536||!!Fn(e,t=>t.parent&&zs(t.parent)&&t.parent.body===t||Ho(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function vpe(e,t,r,i,o,s){if(Gk(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(pr(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===bpe&&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))),ACe(e,o.parent.expression,r)}else if(zo(Epe,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))),ACe(e,o,r)}else{if(s&&Oi(o.parent)&&Fe(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!Jb(s,ba(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function ACe(e,t,r){let i=Ic(t.pos,r);i&&l7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var CY,bpe,Epe,NY,pXe=bt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ai(),Aa(),CY="addMissingAwait",bpe=f.Property_0_does_not_exist_on_type_1.code,Epe=[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,bpe,...Epe],Ea({fixIds:[CY],errorCodes:NY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=bCe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>fr.ChangeTracker.with(t,m);return xL([ECe(t,d,i,p,h),SCe(t,d,i,p,h)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return vs(e,NY,(l,d)=>{let p=bCe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return ECe(e,p,d.code,o,h,s)||SCe(e,p,d.code,o,h,s)})}})}});function ICe(e,t,r,i,o){let s=so(t,r),l=Fn(s,h=>Gx(h.parent)?h.parent.initializer===h:fXe(h)?!1:"quit");if(l)return PY(e,l,t,o);let d=s.parent;if(pr(d)&&d.operatorToken.kind===64&&td(d.parent))return PY(e,s,t,o);if(fu(d)){let h=i.getTypeChecker();return oo(d.elements,m=>mXe(m,h))?PY(e,d,t,o):void 0}let p=Fn(s,h=>td(h.parent)?!0:_Xe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return xCe(p,h)?PY(e,p,t,o):void 0}}function PY(e,t,r,i){(!i||Jb(i,t))&&e.insertModifierBefore(r,87,t)}function fXe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function mXe(e,t){let r=Fe(e)?e:Lc(e,!0)&&Fe(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function _Xe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function xCe(e,t){return pr(e)?e.operatorToken.kind===28?oo([e.left,e.right],r=>xCe(r,t)):e.operatorToken.kind===64&&Fe(e.left)&&!t.getSymbolAtLocation(e.left):!1}var MY,Spe,hXe=bt({"src/services/codefixes/addMissingConst.ts"(){"use strict";ai(),Aa(),MY="addMissingConst",Spe=[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:Spe,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>ICe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ia(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 vs(e,Spe,(r,i)=>ICe(r,i.file,i.start,e.program,t))}})}});function RCe(e,t,r,i){let o=so(t,r);if(!Fe(o))return;let s=o.parent;s.kind===172&&(!i||Jb(i,s))&&e.insertModifierBefore(t,138,s)}var LY,Tpe,gXe=bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ai(),Aa(),LY="addMissingDeclareProperty",Tpe=[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:Tpe,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>RCe(i,t.sourceFile,t.span.start));if(r.length>0)return[ia(LY,r,f.Prefix_with_declare,LY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[LY],getAllCodeActions:e=>{let t=new Set;return vs(e,Tpe,(r,i)=>RCe(r,i.file,i.start,t))}})}});function DCe(e,t,r){let i=so(t,r),o=Fn(i,Ed);R.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,Ape,yXe=bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ai(),Aa(),kY="addMissingInvocationForDecorator",Ape=[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:Ape,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>DCe(i,t.sourceFile,t.span.start));return[ia(kY,r,f.Call_decorator_expression,kY,f.Add_to_all_uncalled_decorators)]},fixIds:[kY],getAllCodeActions:e=>vs(e,Ape,(t,r)=>DCe(t,r.file,r.start))})}});function CCe(e,t,r){let i=so(t,r),o=i.parent;if(!To(o))return R.fail("Tried to add a parameter name to a non-parameter: "+R.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);R.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),R.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),d=L.createTypeReferenceNode(o.name,void 0),p=NCe(t,o);for(;p;)d=L.createArrayTypeNode(d),l=p.getEnd(),p=NCe(t,p);let h=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Fk(d)?L.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,Ef(o.getStart(t),l),h)}function NCe(e,t){let r=lS(t.name,t.parent,e);if(r&&r.kind===23&&U0(r.parent)&&To(r.parent.parent))return r.parent.parent}var wY,Ipe,vXe=bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ai(),Aa(),wY="addNameToNamelessParameter",Ipe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Ea({errorCodes:Ipe,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>CCe(i,t.sourceFile,t.span.start));return[ia(wY,r,f.Add_parameter_name,wY,f.Add_names_to_all_parameters_without_names)]},fixIds:[wY],getAllCodeActions:e=>vs(e,Ipe,(t,r)=>CCe(t,r.file,r.start))})}});function bXe(e,t,r){var i,o;let s=PCe(dX(e,t),r);if(!s)return Xe;let{source:l,target:d}=s,p=EXe(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 EXe(e,t,r){return kr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function PCe(e,t){var r;if(e){if(pr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Oi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ra(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!EI(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(hc(e.parent)&&Fe(e.parent.name)||Zu(e.parent)){let i=PCe(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:hc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function SXe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(_p(i)||jo(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 xpe,MCe,TXe=bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ai(),Aa(),xpe="addOptionalPropertyUndefined",MCe=[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:MCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=bXe(e.sourceFile,e.span,t);if(!r.length)return;let i=fr.ChangeTracker.with(e,o=>SXe(o,r));return[Zm(xpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[xpe]})}});function LCe(e,t){let r=so(e,t);return ri(To(r.parent)?r.parent.parent:r.parent,kCe)}function kCe(e){return AXe(e)&&wCe(e)}function wCe(e){return Fs(e)?e.parameters.some(wCe)||!e.type&&!!e2(e):!e.type&&!!rE(e)}function OCe(e,t,r){if(Fs(r)&&(e2(r)||r.parameters.some(i=>!!rE(i)))){if(!r.typeParameters){let o=p6(r);o.length&&e.insertTypeParameters(t,r,o)}let i=zs(r)&&!gs(r,21,t);i&&e.insertNodeBefore(t,Va(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=rE(o);s&&e.tryInsertTypeAnnotation(t,o,Qe(s,fS,ji))}if(i&&e.insertNodeAfter(t,Ja(r.parameters),L.createToken(22)),!r.type){let o=e2(r);o&&e.tryInsertTypeAnnotation(t,r,Qe(o,fS,ji))}}else{let i=R.checkDefined(rE(r),"A JSDocType for this declaration should exist");R.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,Qe(i,fS,ji))}}function AXe(e){return Fs(e)||e.kind===260||e.kind===171||e.kind===172}function fS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Xe);case 323:return xXe(e);case 322:return fS(e.type);case 321:return RXe(e);case 325:return DXe(e);case 324:return CXe(e);case 183:return PXe(e);case 329:return IXe(e);default:let t=Sn(e,fS,void 0);return dr(t,1),t}}function IXe(e){let t=L.createTypeLiteralNode(mn(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Fe(r.name)?r.name:r.name.right,_k(r)?L.createToken(58):void 0,r.typeExpression&&Qe(r.typeExpression.type,fS,ji)||L.createKeywordTypeNode(133))));return dr(t,1),t}function xXe(e){return L.createUnionTypeNode([Qe(e.type,fS,ji),L.createTypeReferenceNode("undefined",Xe)])}function RXe(e){return L.createUnionTypeNode([Qe(e.type,fS,ji),L.createTypeReferenceNode("null",Xe)])}function DXe(e){return L.createArrayTypeNode(Qe(e.type,fS,ji))}function CXe(e){return L.createFunctionTypeNode(Xe,e.parameters.map(NXe),e.type??L.createKeywordTypeNode(133))}function NXe(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,Qe(e.type,fS,ji),e.initializer)}function PXe(e){let t=e.typeName,r=e.typeArguments;if(Fe(e.typeName)){if(JF(e))return MXe(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,fS,ji)}return L.createTypeReferenceNode(t,r)}function MXe(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 dr(r,1),r}var OY,Rpe,LXe=bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ai(),Aa(),OY="annotateWithTypeFromJSDoc",Rpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Ea({errorCodes:Rpe,getCodeActions(e){let t=LCe(e.sourceFile,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,i=>OCe(i,e.sourceFile,t));return[ia(OY,r,f.Annotate_with_type_from_JSDoc,OY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[OY],getAllCodeActions:e=>vs(e,Rpe,(t,r)=>{let i=LCe(r.file,r.start);i&&OCe(t,r.file,i)})})}});function WCe(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(Tc(d)||ks(d))e.replaceNode(t,d,m(d));else if(Oi(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)&&pr(D.parent)&&D.parent.operatorToken.kind===64&&La(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&&pr(B)&&La(B.right)&>(B.right.properties,FY)||e.delete(t,N.valueDeclaration.parent);return}A(N,void 0,E)}),E;function S(N,D){return Ls(N)?kr(N)&&FY(N)?!0:Yo(D):oo(N.properties,w=>!!(Kl(w)||aF(w)||hc(w)&&ks(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=No(me);return!!(ge&&Fe(ge)&&vr(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(Ls(j)&&(ks(Y)||zs(Y))){let me=of(t,o),ge=kXe(j,s,me);ge&&ce(w,Y,ge);return}else if(La(Y)){gn(Y.properties,me=>{(Kl(me)||aF(me))&&w.push(me),hc(me)&&ks(me.initializer)&&ce(w,me.initializer,me.name),FY(me)});return}else{if(cu(t)||!kr(j))return;let me=L.createPropertyDeclaration(D,j.name,void 0,void 0,Y);hD(K.parent,me,t),w.push(me);return}function ce(me,ge,q){return ks(ge)?z(me,ge,q):ee(me,ge,q)}function z(me,ge,q){let J=bo(D,WY(ge,134)),re=L.createMethodDeclaration(J,void 0,q,void 0,void 0,ge.parameters,void 0,ge.body);hD(K,re,t),me.push(re)}function ee(me,ge,q){let J=ge.body,re;J.kind===241?re=J:re=L.createBlock([L.createReturnStatement(J)]);let pe=bo(D,WY(ge,134)),xe=L.createMethodDeclaration(pe,void 0,q,void 0,void 0,ge.parameters,void 0,re);hD(K,xe,t),me.push(xe)}}}function h(y){let E=y.initializer;if(!E||!ks(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)?Vr(e.modifiers,r=>r.kind===t):void 0}function FY(e){return e.name?!!(Fe(e.name)&&e.name.text==="constructor"):!1}function kXe(e,t,r){if(kr(e))return e.name;let i=e.argumentExpression;if(mp(i))return i;if(ss(i))return Yp(i.text,rs(t))?L.createIdentifier(i.text):JI(i)?L.createStringLiteral(i.text,r===0):i}var zY,Dpe,wXe=bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ai(),Aa(),zY="convertFunctionToEs6Class",Dpe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Ea({errorCodes:Dpe,getCodeActions(e){let t=fr.ChangeTracker.with(e,r=>WCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ia(zY,t,f.Convert_function_to_an_ES2015_class,zY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[zY],getAllCodeActions:e=>vs(e,Dpe,(t,r)=>WCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function FCe(e,t,r,i){let o=so(t,r),s;if(Fe(o)&&Oi(o.parent)&&o.parent.initializer&&Fs(o.parent.initializer)?s=o.parent.initializer:s=ri(Wp(so(t,r)),wX),!s)return;let l=new Map,d=or(s),p=WXe(s,i),h=FXe(s,i,l);if(!LX(h,i))return;let m=h.body&&Ho(h.body)?OXe(h.body,i):Xe,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(!m.length)return;let E=Pa(t.text,R_(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let S of m)if(Bo(S,function A(N){if(ra(N)){let D=xD(N,N,y,!1);if(R1())return!0;e.replaceNodeWithNodes(t,S,D)}else if(!Yo(N)&&(Bo(N,A),R1()))return!0}),R1())return}function OXe(e,t){let r=[];return R0(e,i=>{I7(i,t)&&r.push(i)}),r}function WXe(e,t){if(!e.body)return new Set;let r=new Set;return Bo(e.body,function i(o){OO(o,t,"then")?(r.add(is(o)),gn(o.arguments,i)):OO(o,t,"catch")||OO(o,t,"finally")?(r.add(is(o)),Bo(o,i)):BCe(o,t)?r.add(is(o)):Bo(o,i)}),r}function OO(e,t,r){if(!ra(e))return!1;let o=Xw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function zCe(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(zCe(i,r.getPromiseType())||zCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===xy(e.arguments,0))return xy(e.typeArguments,0);if(t===xy(e.arguments,1))return xy(e.typeArguments,1)}else return xy(e.typeArguments,0)}function BCe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function FXe(e,t,r){let i=new Map,o=qp();return Bo(e,function s(l){if(!Fe(l)){Bo(l,s);return}let d=t.getSymbolAtLocation(l);if(d){let p=t.getTypeAtLocation(l),h=KCe(p,t),m=ba(d).toString();if(h&&!To(l.parent)&&!Fs(l.parent)&&!r.has(m)){let y=Yc(h.parameters),E=y?.valueDeclaration&&To(y.valueDeclaration)&&ri(y.valueDeclaration.name,Fe)||L.createUniqueName("result",16),S=GCe(E,o);r.set(m,S),o.add(E.text,d)}else if(l.parent&&(To(l.parent)||Oi(l.parent)||Xa(l.parent))){let y=l.text,E=o.get(y);if(E&&E.some(S=>S!==d)){let S=GCe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(y,d)}else{let S=al(l);r.set(m,mM(S)),o.add(y,d)}}}}),dO(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 GCe(e,t){let r=(t.get(e.text)||Xe).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return mM(i)}function R1(){return!$7}function PE(){return $7=!1,Xe}function xD(e,t,r,i,o){if(OO(t,r.checker,"then"))return GXe(t,xy(t.arguments,0),xy(t.arguments,1),r,i,o);if(OO(t,r.checker,"catch"))return UCe(t,xy(t.arguments,0),r,i,o);if(OO(t,r.checker,"finally"))return BXe(t,xy(t.arguments,0),r,i,o);if(kr(t))return xD(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(R.assertNode(Pl(t).parent,kr),VXe(e,t,r,i,o)):PE()}function GY({checker:e},t){if(t.kind===106)return!0;if(Fe(t)&&!il(t)&&vr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function zXe(e){let t=L.createUniqueName(e.identifier.text,16);return mM(t)}function VCe(e,t,r){let i;return r&&!FO(e,t)&&(WO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=zXe(r);t.synthNamesMap.set(s,l)}})):i=mM(L.createUniqueName("result",16),r.types),Mpe(i)),i}function jCe(e,t,r,i,o){let s=[],l;if(i&&!FO(e,t)){l=al(Mpe(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&&HXe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(al(YCe(o)),void 0,void 0,l)],2))),s}function BXe(e,t,r,i,o){if(!t||GY(r,t))return xD(e,e.expression.expression,r,i,o);let s=VCe(e,r,o),l=xD(e,e.expression.expression,r,!0,s);if(R1())return PE();let d=Npe(t,i,void 0,void 0,e,r);if(R1())return PE();let p=L.createBlock(l),h=L.createBlock(d),m=L.createTryStatement(p,void 0,h);return jCe(e,r,m,s,o)}function UCe(e,t,r,i,o){if(!t||GY(r,t))return xD(e,e.expression.expression,r,i,o);let s=qCe(t,r),l=VCe(e,r,o),d=xD(e,e.expression.expression,r,!0,l);if(R1())return PE();let p=Npe(t,i,l,s,e,r);if(R1())return PE();let h=L.createBlock(d),m=L.createCatchClause(s&&al(Y7(s)),L.createBlock(p)),y=L.createTryStatement(h,m,void 0);return jCe(e,r,y,l,o)}function GXe(e,t,r,i,o,s){if(!t||GY(i,t))return UCe(e,r,i,o,s);if(r&&!GY(i,r))return PE();let l=qCe(t,i),d=xD(e.expression.expression,e.expression.expression,i,!0,l);if(R1())return PE();let p=Npe(t,o,s,l,e,i);return R1()?PE():bo(d,p)}function VXe(e,t,r,i,o){if(FO(e,r)){let s=al(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||XCe(e)?[L.createExpressionStatement(t)]:WO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(al(Ppe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(al(Y7(e)),void 0,r,t)],2))]}function Cpe(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...VY(mM(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Npe(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(al(e),void 0,WO(i)?[Ppe(i)]:[]);if(FO(o,s))return Cpe(d,BY(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return PE();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=KCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Ho(E)){let A=[],N=!1;for(let D of E.statements)if(Sm(D))if(N=!0,I7(D,s.checker))A=A.concat(JCe(s,D,t,r));else{let w=S&&D.expression?HCe(s.checker,S,D.expression):D.expression;A.push(...Cpe(w,BY(o,e,s.checker)))}else{if(t&&R0(D,Ay))return PE();A.push(D)}return FO(o,s)?A.map(D=>al(D)):jXe(A,r,s,N)}else{let A=kX(E,s.checker)?JCe(s,L.createReturnStatement(E),t,r):Xe;if(A.length>0)return A;if(S){let N=HCe(s.checker,S,E);if(FO(o,s))return Cpe(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 PE()}}default:return PE()}return Xe}function HCe(e,t,r){let i=al(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function KCe(e,t){let r=t.getSignaturesOfType(e,0);return Qs(r)}function jXe(e,t,r,i){let o=[];for(let s of e)if(Sm(s)){if(s.expression){let l=BCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):WO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Ppe(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Y7(t),void 0,void 0,l)],2)))}}else o.push(al(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Y7(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function JCe(e,t,r,i){let o=[];return Bo(t,function s(l){if(ra(l)){let d=xD(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else Yo(l)||Bo(l,s)}),o}function qCe(e,t){let r=[],i;if(Fs(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 UXe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(ba(m).toString())||mM(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 XCe(e){return e?WO(e)?!e.identifier.text:oo(e.elements,XCe):!0}function mM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function UXe(e,t=Xe,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Ppe(e){return e.hasBeenReferenced=!0,e.identifier}function Y7(e){return WO(e)?Mpe(e):YCe(e)}function YCe(e){for(let t of e.elements)Y7(t);return e.bindingPattern}function Mpe(e){return e.hasBeenDeclared=!0,e.identifier}function WO(e){return e.kind===0}function HXe(e){return e.kind===1}function FO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(is(e.original))}var jY,Lpe,$7,KXe=bt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ai(),Aa(),jY="convertToAsyncFunction",Lpe=[f.This_may_be_converted_to_an_async_function.code],$7=!0,Ea({errorCodes:Lpe,getCodeActions(e){$7=!0;let t=fr.ChangeTracker.with(e,r=>FCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return $7?[ia(jY,t,f.Convert_to_async_function,jY,f.Convert_all_to_async_functions)]:[]},fixIds:[jY],getAllCodeActions:e=>vs(e,Lpe,(t,r)=>FCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function JXe(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=AN(l);switch(p.kind){case 271:i.replaceNode(e,p,Jy(p.name,void 0,l,o));break;case 213:Su(p,!1)&&i.replaceNode(e,p,L.createPropertyAccessExpression(al(p),"default"));break}}}function qXe(e,t,r,i,o){let s={original:sYe(e),additional:new Set},l=XXe(e,t,s);YXe(e,l,r);let d=!1,p;for(let h of Vr(e.statements,Ll)){let m=QCe(e,h,r,t,s,i,o);m&&EF(m,p??(p=new Map))}for(let h of Vr(e.statements,m=>!Ll(m))){let m=$Xe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function XXe(e,t,r){let i=new Map;return $Ce(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 YXe(e,t,r){$Ce(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function $Ce(e,t){e.forEachChild(function r(i){if(kr(i)&&tS(e,i.expression)&&Fe(i.name)){let{parent:o}=i;t(i,pr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function $Xe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return QCe(e,t,i,r,o,s,p),!1;case 244:{let{expression:h}=t;switch(h.kind){case 213:return Su(h,!0)&&i.replaceNode(e,t,Jy(void 0,void 0,h.arguments[0],p)),!1;case 226:{let{operatorToken:m}=h;return m.kind===64&&ZXe(e,r,h,i,l,d)}}}default:return!1}}function QCe(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(tS(e,E))return p=!0,_M([]);if(Su(E,!0))return p=!0,oYe(y,E.arguments[0],i,o,s,l);if(kr(E)&&Su(E.expression,!0))return p=!0,QXe(y,E.name.text,E.expression.arguments[0],o,l)}return _M([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&&EF(y.useSitesToUnqualify,m??(m=new Map))}),m}}function QXe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=UY(t,i);return _M([nNe(s,t,r,o),HY(void 0,e,L.createIdentifier(s))])}case 80:return _M([nNe(e.text,t,r,o)]);default:return R.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function ZXe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!kr(l))return!1;if(tS(e,l))if(tS(e,d))i.delete(e,r.parent);else{let p=La(d)?eYe(d,s):Su(d,!0)?nYe(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 tS(e,l.expression)&&tYe(e,r,i,o);return!1}function eYe(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)?iYe(i.name.text,i.initializer,t):void 0;case 174:return Fe(i.name)?tNe(i.name.text,[L.createToken(95)],i,t):void 0;default:R.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function tYe(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),Ope([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else rYe(t,e,r)}function nYe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:RW;return o.has("export=")?[[kpe(r)],!0]:o.has("default")?o.size>1?[[ZCe(r),kpe(r)],!0]:[[kpe(r)],!0]:[[ZCe(r)],!1]}function ZCe(e){return Ope(void 0,e)}function kpe(e){return Ope([L.createExportSpecifier(!1,void 0,"default")],e)}function rYe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((ks(t)||zs(t)||ed(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=gs(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,gs(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function iYe(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 tNe(e,i,t,r);case 231:return cYe(e,i,t,r);default:return o()}function o(){return HY(i,L.createIdentifier(e),wpe(t,r))}}function wpe(e,t){if(!t||!gt(Oo(t.keys()),i=>rf(e,i)))return e;return So(e)?nX(e,!0,r):dO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function oYe(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:rNe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return _M([Jy(void 0,l,t,s)])}case 207:{let l=UY(Xpe(t.text,o),i);return _M([Jy(L.createIdentifier(l),void 0,t,s),HY(void 0,al(e),L.createIdentifier(l))])}case 80:return aYe(e,t,r,i,s);default:return R.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function aYe(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{R.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:Oo(BC(l.entries(),([m,y])=>L.createImportSpecifier(!1,m===y?void 0:L.createIdentifier(m),L.createIdentifier(y))));return h||(d=!0),_M([Jy(d?al(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 sYe(e){let t=qp();return eNe(e,r=>t.add(r.text,r)),t}function eNe(e,t){Fe(e)&&lYe(e)&&t(e),e.forEachChild(r=>eNe(r,t))}function lYe(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 tNe(e,t,r,i){return L.createFunctionDeclaration(bo(t,cS(r.modifiers)),al(r.asteriskToken),e,cS(r.typeParameters),cS(r.parameters),al(r.type),L.converters.convertToFunctionBlock(wpe(r.body,i)))}function cYe(e,t,r,i){return L.createClassDeclaration(bo(t,cS(r.modifiers)),e,cS(r.typeParameters),cS(r.heritageClauses),wpe(r.members,i))}function nNe(e,t,r,i){return t==="default"?Jy(L.createIdentifier(e),void 0,r,i):Jy(void 0,[rNe(t,e)],r,i)}function rNe(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 Ope(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function _M(e,t){return{newImports:e,useSitesToUnqualify:t}}var dYe=bt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ai(),Aa(),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=fr.ChangeTracker.with(e,s=>{if(qXe(t,r.getTypeChecker(),s,rs(r.getCompilerOptions()),of(t,i)))for(let d of r.getSourceFiles())JXe(d,t,r,s,of(d,i))});return[Zm("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function iNe(e,t){let r=Fn(so(e,t),Au);return R.assert(!!r,"Expected position to be owned by a qualified name."),Fe(r.left)?r:void 0}function oNe(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,Wpe,uYe=bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ai(),Aa(),KY="correctQualifiedNameToIndexedAccessType",Wpe=[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:Wpe,getCodeActions(e){let t=iNe(e.sourceFile,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,o=>oNe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ia(KY,r,[f.Rewrite_as_the_indexed_access_type_0,i],KY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[KY],getAllCodeActions:e=>vs(e,Wpe,(t,r)=>{let i=iNe(r.file,r.start);i&&oNe(t,r.file,i)})})}});function aNe(e,t){return ri(so(t,e.start).parent,Jd)}function sNe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=pYe(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,Vr(i.elements,p=>!zo(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:fr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,d)}}function pYe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=Wde(Ru(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Vr(r.elements,o=>{var s;return o===e||((s=Ode(o,i))==null?void 0:s.code)===JY[0]})}var JY,qY,fYe=bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ai(),Aa(),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=fr.ChangeTracker.with(t,i=>sNe(i,aNe(t.span,t.sourceFile),t));if(r.length)return[ia(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 vs(t,JY,(i,o)=>{let s=aNe(o,t.sourceFile);s&&Em(r,is(s.parent.parent))&&sNe(i,s,t)})}})}});function lNe(e,t){let{parent:r}=so(e,t);return Qu(r)||kc(r)&&r.importClause?r:void 0}function cNe(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(ws.Core.eachSymbolReferenceInFile(s.name,o,t,d=>!mE(d)))return!1;return!0}function Q7(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(cS(r.modifiers,!0),L.createImportClause(!0,al(o.name,!0),void 0),al(r.moduleSpecifier,!0),al(r.attributes,!0)),L.createImportDeclaration(cS(r.modifiers,!0),L.createImportClause(!0,void 0,al(o.namedBindings,!0)),al(r.moduleSpecifier,!0),al(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(o.namedBindings,Mc(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 Fpe,Z7,mYe=bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ai(),Aa(),Fpe=[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],Z7="convertToTypeOnlyImport",Ea({errorCodes:Fpe,getCodeActions:function(t){var r;let i=lNe(t.sourceFile,t.span.start);if(i){let o=fr.ChangeTracker.with(t,d=>Q7(d,t.sourceFile,i)),s=i.kind===276&&cNe(i,t.sourceFile,t.program)?fr.ChangeTracker.with(t,d=>Q7(d,t.sourceFile,i.parent.parent.parent)):void 0,l=ia(Z7,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,Z7,f.Fix_all_with_type_only_imports);return gt(s)?[Zm(Z7,s,f.Use_import_type),l]:[l]}},fixIds:[Z7],getAllCodeActions:function(t){let r=new Set;return vs(t,Fpe,(i,o)=>{let s=lNe(o.file,o.start);s?.kind===272&&!r.has(s)?(Q7(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&cNe(s,o.file,t.program)?(Q7(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&Q7(i,o.file,s)})}})}});function dNe(e,t,r,i,o=!1){if(!GT(t))return;let s=hYe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=_Ye(t),h=l.getStart(),m="";!d&&l.comment&&(h=uNe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&>(d)?(h=t.getStart(),m=""):(h=uNe(l,d.getStart(),t.getStart()),m=`${i} */${i}`));let y=l.getEnd(),E="";p&&(o&>(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 _Ye(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 hYe(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 gYe(i,r);if(r.kind===316)return yYe(i,r)}}function gYe(e,t){let r=pNe(t);if(gt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function yYe(e,t){let r=al(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function pNe(e){let t=e.jsDocPropertyTags;return gt(t)?to(t,i=>{var o;let s=vYe(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&BT(l)){let h=pNe(l);p=L.createTypeLiteralNode(h)}else l&&(p=al(l));if(p&&s){let h=d?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,h,p)}}):void 0}function vYe(e){return e.name.kind===80?e.name.text:e.name.right.text}function bYe(e){return kp(e)?va(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>GT(i))}):[]}var XY,zpe,EYe=bt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ai(),Aa(),XY="convertTypedefToType",zpe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Ea({fixIds:[XY],errorCodes:zpe,getCodeActions(e){let t=qy(e.host,e.formatContext.options),r=so(e.sourceFile,e.span.start);if(!r)return;let i=fr.ChangeTracker.with(e,o=>dNe(o,r,e.sourceFile,t));if(i.length>0)return[ia(XY,i,f.Convert_typedef_to_TypeScript_type,XY,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>vs(e,zpe,(t,r)=>{let i=qy(e.host,e.formatContext.options),o=so(r.file,r.start);o&&dNe(t,o,r.file,i,!0)})})}});function fNe(e,t){let r=so(e,t);if(Fe(r)){let i=ta(r.parent.parent,_p),o=r.getText(e);return{container:ta(i.parent,gp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function mNe(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,Bpe,SYe=bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ai(),Aa(),YY="convertLiteralTypeToMappedType",Bpe=[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:Bpe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=fNe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=fr.ChangeTracker.with(t,p=>mNe(p,r,o));return[ia(YY,d,[f.Convert_0_to_1_in_0,l,s],YY,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[YY],getAllCodeActions:e=>vs(e,Bpe,(t,r)=>{let i=fNe(r.file,r.start);i&&mNe(t,r.file,i)})})}});function _Ne(e,t){return R.checkDefined(sd(so(e,t)),"There should be a containing class")}function hNe(e){return!e.valueDeclaration||!(du(e.valueDeclaration)&2)}function gNe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=TYe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(TW(hNe,D=>!d.has(D.escapedName))),y=l.getTypeAtLocation(i),E=Gr(i.members,D=>Ml(D));y.getNumberIndexType()||A(p,1),y.getStringIndexType()||A(p,0);let S=D1(r,e.program,s,e.host);qfe(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,RD(e)))}function N(D,w,j){E?o.insertNodeAfter(D,E,j):o.insertMemberAtStart(D,w,j)}}function TYe(e,t){let r=S_(e);if(!r)return oa();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return oa(o.filter(hNe))}var Gpe,$Y,AYe=bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ai(),Aa(),Gpe=[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:Gpe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=_Ne(t,r.start);return to(cR(i),o=>{let s=fr.ChangeTracker.with(e,l=>gNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ia($Y,s,[f.Implement_interface_0,o.getText(t)],$Y,f.Implement_all_unimplemented_interfaces)})},fixIds:[$Y],getAllCodeActions(e){let t=new Map;return vs(e,Gpe,(r,i)=>{let o=_Ne(i.file,i.start);if(Em(t,is(o)))for(let s of cR(o))gNe(e,s,i.file,o,r,e.preferences)})}})}});function D1(e,t,r,i,o){return yNe(e,t,!1,r,i,o)}function yNe(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=ANe(w,D.code,D.start,r);!j||!j.length||S(Va(j))}function E(D,w){let j=R.checkDefined(D.parent),K=m7(D,rs(l)),Y=t.getTypeChecker(),B=Y.getMergedSymbol(bd(D,Y)),ce=ENe(e,B,K,j,!1,t,o,i,s),z=ZY(e,t),ee=vNe(e,R.checkDefined(ce),t,void 0,!!w,z,o,i);ee&&S({fix:ee,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:ee,importKind:me,addAsTypeOnly:ge}=K,q=String(is(ee)),J=h.get(q);if(J||h.set(q,J={importClauseOrBindingPattern:ee,defaultImport:void 0,namedImports:new Map}),me===0){let re=J?.namedImports.get(Y);J.namedImports.set(Y,B(re,ge))}else R.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:ee,importKind:me,useRequire:ge,addAsTypeOnly:q}=K,J=ce(ee,me,ge,q);switch(R.assert(J.useRequire===ge,"(Add new) Tried to add an `import` and a `require` for the same module"),me){case 1:R.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:R.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:R.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function B(ee,me){return Math.max(ee??0,me)}function ce(ee,me,ge,q){let J=z(ee,!0),re=z(ee,!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(ee,me){return`${me?1:0}|${ee}`}}function A(D,w){let j;e.imports.length===0&&w!==void 0?j=w:j=of(e,i);for(let Y of d)Kpe(D,e,Y);for(let Y of p)PNe(D,e,Y,j);h.forEach(({importClauseOrBindingPattern:Y,defaultImport:B,namedImports:ce})=>{NNe(D,e,Y,B,Oo(ce.entries(),([z,ee])=>({addAsTypeOnly:ee,name:z})),i)});let K;m.forEach(({useRequire:Y,defaultImport:B,namedImports:ce,namespaceLikeImport:z},ee)=>{let me=ee.slice(2),q=(Y?kNe:LNe)(me,j,B,ce&&Oo(ce.entries(),([J,re])=>({addAsTypeOnly:re,name:J})),z,l,i);K=Sx(K,q)}),K&&rM(D,e,K,!0,i)}function N(){return d.length>0||p.length>0||h.size>0||m.size>0}}function IYe(e,t,r,i){let o=dM(e,i,r),s=SNe(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=INe(y,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function xYe(e,t,r,i,o,s,l,d,p,h,m,y){let E;r?(E=gO(i,l,d,m,y).get(i.path,r),R.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=sV(Yf(t.name))?[DYe(e,o,t,d,l)]:ENe(i,e,o,t,s,d,l,m,y),R.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=ZY(i,d),A=mE(so(i,h)),N=R.checkDefined(vNe(i,E,d,h,A,S,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:bNe(Hpe({host:l,formatContext:p,preferences:m},i,o,N,!1,d,m))}}function RYe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=FG(Upe(e,r.getTypeChecker(),t,l)),p=DNe(e,t,d,r),h=d!==t.text;return p&&bNe(Hpe({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function vNe(e,t,r,i,o,s,l,d){let p=dM(e,d,l);return INe(QY(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function bNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function ENe(e,t,r,i,o,s,l,d,p){let h=TNe(s,l);return gO(e,l,s,d,p).search(e.path,o,m=>m===r,m=>{if(bd(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return m})}function DYe(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 R.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(y,E){let S=E7(r,y,d);if(S&&bd(S.symbol,y)===e)return{symbol:S.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:bd(e,y).flags,isFromPackageJson:E};let A=y.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&bd(A,y)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:bd(e,y).flags,isFromPackageJson:E}}}function QY(e,t,r,i,o,s,l,d,p=SNe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),y=va(e,p.getImportsForExportInfo),E=t!==void 0&&CYe(y,t),S=PYe(y,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:Xe,S]};let{fixes:A,computedWithoutCacheCount:N=0}=LYe(e,y,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:N,fixes:[...E?[E]:Xe,...A]}}function CYe(e,t){return zl(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=NYe(r),l=s&&((o=rR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function NYe(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,$v))==null?void 0:i.name.text;default:return R.assertNever(e)}}function Vpe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||rU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function PYe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=i2(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||!ss(l.moduleSpecifier))return;let{name:y,namedBindings:E}=m;if(m.isTypeOnly&&!(d===0&&E))return;let S=Vpe(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 SNe(e,t,r){let i;for(let o of t.imports){let s=AN(o);if(qF(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)&&cu(t))return Xe;let p=i?.get(ba(o));if(!p)return Xe;let h=jpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function ZY(e,t){if(!cu(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 kd(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!cu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function TNe(e,t){return ah(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function MYe(e,t,r,i,o,s,l,d,p){let h=cu(t),m=e.getCompilerOptions(),y=QT(e,l),E=TNe(e,l),S=pu(m),A=Yz(S),N=p?j=>({moduleSpecifiers:nS.tryGetModuleSpecifiersFromCache(j,t,y,d),computedWithoutCache:!1}):(j,K)=>nS.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),ee=Vpe(i,!0,j.symbol,j.targetFlags,Y,m);return D+=B?1:0,to(ce,me=>{var ge;if(A&&AE(me))return;if(!z&&h&&r!==void 0)return{kind:1,moduleSpecifier:me,usagePosition:r,exportInfo:j,isReExport:K>0};let q=jpe(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=S7(re,Y,m))==null?void 0:ge.name),pe||(pe=qpe(j.moduleSymbol,rs(m),!1)),J={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:me,importKind:q,useRequire:o,addAsTypeOnly:ee,exportInfo:j,isReExport:K>0,qualification:J}})});return{computedWithoutCacheCount:D,fixes:w}}function LYe(e,t,r,i,o,s,l,d,p,h){let m=zl(t,y=>kYe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:MYe(r,i,o,s,l,e,d,p,h)}function kYe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,d){var p;let h=(p=rR(e))==null?void 0:p.text;if(h){let m=s?4:Vpe(o,!0,r,i,l,d);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function ANe(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=FYe(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(Upe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=DNe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=GYe(e,o,i);else return;let l=dM(e.sourceFile,e.preferences,e.host);return s&&wYe(s,e.sourceFile,e.program,l,e.host)}function wYe(e,t,r,i,o){let s=l=>nl(l,o.getCurrentDirectory(),ky(o));return tT(e,(l,d)=>Sv(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||el(l.fix.kind,d.fix.kind)||xNe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function INe(e,t,r,i,o){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>xNe(l,s,t,r,i.allowsImportingSpecifier,d=>nl(d,o.getCurrentDirectory(),ky(o)))===-1?l:s)}function xNe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Sv(o(t.moduleSpecifier),o(e.moduleSpecifier))||WYe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Sv(RNe(e,r,i.getCompilerOptions(),s),RNe(t,r,i.getCompilerOptions(),s))||uk(e.moduleSpecifier,t.moduleSpecifier):0}function RNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&OYe(e.exportInfo.moduleFileName)){let s=i(oi(e.exportInfo.moduleFileName));return ao(t.path,s)}return!1}function OYe(e){return ic(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function WYe(e,t,r,i){return ao(e,"node:")&&!ao(t,"node:")?h7(r,i)?-1:1:ao(t,"node:")&&!ao(e,"node:")?h7(r,i)?1:-1:0}function FYe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=zYe(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 zYe(e,t){let r=Fe(e)?t.getSymbolAtLocation(e):void 0;if(S6(r))return r;let{parent:i}=e;if(lu(i)&&i.tagName===e||a1(i)){let o=t.resolveName(t.getJsxNamespace(i),lu(i)?e:i,111551,!1);if(S6(o))return o}}function jpe(e,t,r,i){if(r.verbatimModuleSyntax&&(kd(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return UYe(e,r,!!i);case 3:return BYe(e,r,!!i);default:return R.assertNever(t)}}function BYe(e,t,r){if(CT(t))return 1;let i=kd(t);switch(i){case 2:case 1:case 3:return or(e)&&(sc(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 R.assertNever(i,`Unexpected moduleKind ${i}`)}}function GYe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return va(Upe(e,d,s,p),h=>{if(h==="default")return;let m=mE(s),y=ZY(e,t),E=jYe(h,eR(s),YT(s),r,e,t,l,i,o);return Oo(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 DNe(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 Upe(e,t,r,i){let o=r.parent;if((lu(o)||q0(o))&&o.tagName===r&&mX(i.jsx)){let s=t.getJsxNamespace(e);if(VYe(s,r,t))return!fR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function VYe(e,t,r){if(fR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||gt(i.declarations,oE)&&!(i.flags&111551)}function jYe(e,t,r,i,o,s,l,d,p){var h;let m=qp(),y=dM(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=ah(N=>QT(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(Rde(w,ce).toString(),{symbol:w,moduleSymbol:N,moduleFileName:D?.fileName,exportKind:j,targetFlags:bd(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=E7(N,K,Y);B&&(B.name===e||qpe(N,rs(Y),t)===e)&&ONe(B.resolvedSymbol,r)&&A(N,D,B.symbol,B.exportKind,w,j);let ce=K.tryGetMemberInModuleExportsAndProperties(e,N);ce&&ONe(ce,r)&&A(N,D,ce,0,w,j)}),m}function UYe(e,t,r){let i=CT(t),o=or(e);if(!o&&kd(t)>=5)return i?1:2;if(o)return sc(e)||r?i?1:2:3;for(let s of e.statements)if(nd(s)&&!Bl(s.moduleReference))return 3;return i?1:3}function Hpe(e,t,r,i,o,s,l){let d,p=fr.ChangeTracker.with(e,h=>{d=HYe(h,t,r,i,o,s,l)});return ia(Ype,p,d,$pe,f.Add_all_missing_imports)}function HYe(e,t,r,i,o,s,l){let d=of(t,l);switch(i.kind){case 0:return Kpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return PNe(e,t,i,d),[f.Change_0_to_1,r,MNe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;NNe(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?kNe:LNe,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 rM(e,t,S(h,d,A,N,D,s.getCompilerOptions(),l),!0,l),E&&Kpe(e,t,E),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{let{typeOnlyAliasDeclaration:p}=i,h=KYe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,CNe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,CNe(h)]}default:return R.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function CNe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,bh))==null?void 0:t.expression,ss))==null?void 0:r.text)||e.moduleReference.getText():ta(e.parent.moduleSpecifier,Ca).text}function KYe(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:aE(t.getFirstToken()),end:aE(t.propertyName??t.name)}),t}else return R.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:R.failBadSyntaxKind(t)}function d(p){var h;if(e.delete(i,Hq(p,i)),!s.allowImportingTsExtensions){let m=rR(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y?.resolvedUsingTsExtension){let E=BL(m.text,q3(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 NNe(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&&(R.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=Ey(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,R.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 Kpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function PNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,MNe(r,o))}function MNe(e,t){let r=Uq(t);return`import(${r}${e}${r}).`}function Jpe({addAsTypeOnly:e}){return e===2}function e$(e,t){return Jpe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function LNe(e,t,r,i,o,s,l){let d=S1(e,t),p;if(r!==void 0||i?.length){let h=(!r||Jpe(r))&&oo(i,Jpe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!gt(i,m=>m.addAsTypeOnly===4);p=Sx(p,Jy(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=Sx(p,h)}return R.checkDefined(p)}function kNe(e,t,r,i,o){let s=S1(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=wNe(L.createObjectBindingPattern(d),s);l=Sx(l,p)}if(o){let d=wNe(o.name,s);l=Sx(l,d)}return R.checkDefined(l)}function wNe(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 ONe({declarations:e},t){return gt(e,r=>!!(Jw(r)&t))}function qpe(e,t,r){return Xpe(Tu(Yf(e.name)),t,r)}function Xpe(e,t,r){let i=ic(Ix(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Kh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let d=1;dHpe(e,i,p,d,p!==h,s,r))},fixIds:[$pe],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=yNe(t,r,!0,i,o,s);return ID(e,Qpe,d=>l.addImportFromDiagnostic(d,e)),AD(fr.ChangeTracker.with(e,l.writeFixes))}})}});function WNe(e,t,r){let i=Gr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Gr(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=tme(o.file,yd(o.start,o.length));if(s!==void 0&&(Fe(s)&&ml(s.parent)&&(s=s.parent),ml(s))){if(MR(s.parent))return;let l=so(t,r.start),d=e.getTypeChecker();return{constraint:XYe(d,l)||qYe(o.messageText),declaration:s,token:l}}}function FNe(e,t,r,i,o,s){let{declaration:l,constraint:d}=s,p=t.getTypeChecker();if(Co(d))e.insertText(o,l.name.end,` extends ${d}`);else{let h=rs(t.getCompilerOptions()),m=RD({program:t,host:i}),y=D1(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 qYe(e){let[,t]=k_(e,` +`,0).match(/`extends (.*)`/)||[];return t}function XYe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var t$,Zpe,YYe=bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ai(),Aa(),t$="addMissingConstraint",Zpe=[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:Zpe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=WNe(i,t,r);if(l===void 0)return;let d=fr.ChangeTracker.with(e,p=>FNe(p,i,o,s,t,l));return[ia(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 AD(fr.ChangeTracker.with(e,s=>{ID(e,Zpe,l=>{let d=WNe(t,l.file,yd(l.start,l.length));if(d&&Em(o,is(d.declaration)))return FNe(s,t,r,i,l.file,d)})}))}})}});function zNe(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 $Ye(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 QYe(e,t.sourceFile,i);default:R.fail("Unexpected error code: "+r)}}function $Ye(e,t,r){let i=GNe(t,r);if(cu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||Xe,s=Gr(o,YI),l=Gr(o,cae),d=Gr(o,y=>kq(y.kind)),p=cI(o,Ed),h=l?l.end:s?s.end:d?d.end:p?Pa(t.text,p.end):i.getStart(t),m=d||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function QYe(e,t,r){let i=GNe(t,r);if(cu(t)){e.filterJSDocTags(t,i,AW(K4));return}let o=Gr(i.modifiers,dae);R.assertIsDefined(o),e.deleteModifier(t,o)}function BNe(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 GNe(e,t){let r=so(e,t),i=Fn(r,o=>di(o)?"quit":BNe(o));return R.assert(i&&BNe(i)),i}var efe,hM,zO,tfe,nfe,ZYe=bt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ai(),Aa(),efe="fixOverrideModifier",hM="fixAddOverrideModifier",zO="fixRemoveOverrideModifier",tfe=[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],nfe={[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:hM,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:hM,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:zO,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:zO,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:hM,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:hM,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:hM,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:zO,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:zO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Ea({errorCodes:tfe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=nfe[r];if(!o)return Xe;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=fr.ChangeTracker.with(t,h=>zNe(h,t,r,i.start));return[mpe(efe,p,s,l,d)]},fixIds:[efe,hM,zO],getAllCodeActions:e=>vs(e,tfe,(t,r)=>{let{code:i,start:o}=r,s=nfe[i];!s||s.fixId!==e.fixId||zNe(t,e,i,o)})})}});function VNe(e,t,r,i){let o=of(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,sF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function jNe(e,t){return ta(so(e,t).parent,kr)}var n$,rfe,e$e=bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ai(),Aa(),n$="fixNoPropertyAccessFromIndexSignature",rfe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Ea({errorCodes:rfe,fixIds:[n$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=jNe(t,r.start),s=fr.ChangeTracker.with(e,l=>VNe(l,e.sourceFile,o,i));return[ia(n$,s,[f.Use_element_access_for_0,o.name.text],n$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>vs(e,rfe,(t,r)=>VNe(t,r.file,jNe(r.file,r.start),e.preferences))})}});function UNe(e,t,r,i){let o=so(t,r);if(!dD(o))return;let s=wu(o,!1,!1);if(!(!Tc(s)&&!ks(s))&&!Yi(wu(s,!1,!1))){let l=R.checkDefined(gs(s,100,t)),{name:d}=s,p=R.checkDefined(s.body);return ks(s)?d&&ws.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:b7]):(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$,ife,t$e=bt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ai(),Aa(),r$="fixImplicitThis",ife=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Ea({errorCodes:ife,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=fr.ChangeTracker.with(t,d=>{s=UNe(d,r,o.start,i.getTypeChecker())});return s?[ia(r$,l,s,r$,f.Fix_all_implicit_this_errors)]:Xe},fixIds:[r$],getAllCodeActions:e=>vs(e,ife,(t,r)=>{UNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function HNe(e,t,r){var i,o;let s=so(e,t);if(Fe(s)){let l=Fn(s,kc);if(l===void 0)return;let d=Ca(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||gD(r,h))return;let m=h.symbol,y=(o=ri(m.valueDeclaration,ch))==null?void 0:o.locals;if(y===void 0)return;let E=y.get(s.escapedText);if(E===void 0)return;let S=r$e(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:IR(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function n$e(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=i$(o,r.isTypeOnly);s?KNe(e,t,o,s,[r]):mk(i)?e.insertExportModifier(o,i):JNe(e,t,o,[r])}function ofe(e,t,r,i,o){Nn(i)&&(o?KNe(e,t,r,o,i):JNe(e,t,r,i))}function i$(e,t){let r=i=>$l(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return cI(e.statements,r)}function KNe(e,t,r,i,o){let s=i.exportClause&&xf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(em(t.getCompilerOptions())||Gr(s,d=>d.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...qNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function JNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(qNe(i,em(t.getCompilerOptions()))),void 0,void 0))}function qNe(e,t){return L.createNodeArray(mn(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function r$e(e){if(e.valueDeclaration===void 0)return Yc(e.declarations);let t=e.valueDeclaration,r=Oi(t)?ri(t.parent.parent,Ll):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var o$,afe,i$e=bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ai(),Aa(),o$="fixImportNonExportedMember",afe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Ea({errorCodes:afe,fixIds:[o$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=HNe(t,r.start,i);if(o===void 0)return;let s=fr.ChangeTracker.with(e,l=>n$e(l,i,o));return[ia(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 AD(fr.ChangeTracker.with(e,r=>{let i=new Map;ID(e,afe,o=>{let s=HNe(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&&mk(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?(ofe(r,t,s,o.typeOnlyExports,l),ofe(r,t,s,o.exports,i$(s,!1))):ofe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function o$e(e,t){let r=so(e,t);return Fn(r,i=>i.kind===202)}function a$e(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$,XNe,s$e=bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ai(),Aa(),a$="fixIncorrectNamedTupleSyntax",XNe=[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:XNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=o$e(r,i.start),s=fr.ChangeTracker.with(t,l=>a$e(l,r,o));return[ia(a$,s,f.Move_labeled_tuple_element_modifiers_to_labels,a$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[a$]})}});function YNe(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){R.assert(Jh(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(pr(s)&&s.operatorToken.kind===103&&s.left===o&&Ki(o)){let p=l.getTypeAtLocation(s.right);d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Au(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){R.assertNode(o,Fe,"Expected an identifier for spelling (import)");let p=Fn(o,kc),h=c$e(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(M_(s)&&s.name===o){R.assertNode(o,Fe,"Expected an identifier for JSX attribute");let p=Fn(o,lu),h=l.getContextualTypeForArgumentAtIndex(p,0);d=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(m6(s)&&Qc(s)&&s.name===o){let p=Fn(o,di),h=p?S_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(d=l.getSuggestedSymbolForNonexistentClassMember(fc(o),m))}else{let p=YT(o),h=fc(o);R.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,l$e(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function $Ne(e,t,r,i,o){let s=vl(i);if(!Yp(s,o)&&kr(r.parent)){let l=i.valueDeclaration;l&&au(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 l$e(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function c$e(e,t){var r;if(!t||!ss(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 sfe,lfe,d$e=bt({"src/services/codefixes/fixSpelling.ts"(){"use strict";ai(),Aa(),sfe="fixSpelling",lfe=[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:lfe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=YNe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=rs(e.host.getCompilationSettings()),d=fr.ChangeTracker.with(e,p=>$Ne(p,t,o,s,l));return[ia("spelling",d,[f.Change_spelling_to_0,vl(s)],sfe,f.Fix_all_detected_spelling_errors)]},fixIds:[sfe],getAllCodeActions:e=>vs(e,lfe,(t,r)=>{let i=YNe(r.file,r.start,e,r.code),o=rs(e.host.getCompilationSettings());i&&$Ne(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function QNe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=oa([i]);return e.createAnonymousType(void 0,o,[],[],[])}function cfe(e,t,r,i){if(!t.body||!Ho(t.body)||Nn(t.body.statements)!==1)return;let o=Va(t.body.statements);if(td(o)&&dfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(J0(o)&&td(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=QNe(e,o.label,o.statement.expression);if(dfe(e,t,l,r,i))return zs(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(Ho(o)&&Nn(o.statements)===1){let s=Va(o.statements);if(J0(s)&&td(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),d=QNe(e,s.label,s.statement.expression);if(dfe(e,t,d,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function dfe(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,oa(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function ZNe(e,t,r,i){let o=so(t,r);if(!o.parent)return;let s=Fn(o.parent,Fs);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:cfe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ra(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?cfe(e,s,d,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!kg(o)||!$x(o.parent)&&!M_(o.parent))return;let p=u$e(o.parent);return!p||!Fs(p)||!p.body?void 0:cfe(e,p,e.getTypeAtLocation(o.parent),!0)}}function u$e(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(vP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function ePe(e,t,r,i){bp(r);let o=fO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function tPe(e,t,r,i,o,s){let l=s||i7(i)?L.createParenthesizedExpression(i):i;bp(o),ZT(o,l),e.replaceNode(t,r.body,l)}function nPe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function p$e(e,t,r){let i=fr.ChangeTracker.with(e,o=>ePe(o,e.sourceFile,t,r));return ia(s$,i,f.Add_a_return_statement,l$,f.Add_all_missing_return_statement)}function f$e(e,t,r,i){let o=fr.ChangeTracker.with(e,s=>tPe(s,e.sourceFile,t,r,i,!1));return ia(s$,o,f.Remove_braces_from_arrow_function_body,c$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function m$e(e,t,r){let i=fr.ChangeTracker.with(e,o=>nPe(o,e.sourceFile,t,r));return ia(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$,ufe,_$e=bt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ai(),Aa(),s$="returnValueCorrect",l$="fixAddReturnStatement",c$="fixRemoveBracesFromArrowFunctionBody",d$="fixWrapTheBlockWithParen",ufe=[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:ufe,fixIds:[l$,c$,d$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=ZNe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Tn([p$e(t,l.expression,l.statement)],zs(l.declaration)?f$e(t,l.declaration,l.expression,l.commentSource):void 0):[m$e(t,l.declaration,l.expression)]},getAllCodeActions:e=>vs(e,ufe,(t,r)=>{let i=ZNe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case l$:ePe(t,r.file,i.expression,i.statement);break;case c$:if(!zs(i.declaration))return;tPe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case d$:if(!zs(i.declaration))return;nPe(t,r.file,i.declaration,i.expression);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function rPe(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&&La(d)&&ra(d.parent)))return;let S=ql(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&&To(N)&&Fe(N.name)))return;let D=Oo(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&&La(d)){let S=i.getContextualType(d)||i.getTypeAtLocation(d),A=Oo(i.getUnmatchedProperties(i.getTypeAtLocation(d),S,!1,!1));return Nn(A)?{kind:3,token:d,identifier:"",properties:A,parentDeclaration:d}:void 0}if(!Jh(l))return;if(Fe(l)&&kv(d)&&d.initializer&&La(d.initializer)){let S=i.getContextualType(l)||i.getTypeAtLocation(l),A=Oo(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)&&lu(l.parent)){let S=rs(o.getCompilerOptions()),A=S$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=Yc(i.getSignaturesOfType(S,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:mPe(l)}}if(ra(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:mPe(l)}}if(!kr(d))return;let p=Bq(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Fe(l)&&ra(d.parent)){let S=Gr(h.declarations,Yl),A=S?.getSourceFile();if(S&&A&&!gD(o,A))return{kind:2,token:l,call:d.parent,sourceFile:e,modifierFlags:32,parentDeclaration:S};let N=Gr(h.declarations,Yi);if(e.commonJsModuleIndicator)return;if(N&&!gD(o,N))return{kind:2,token:l,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:N}}let m=Gr(h.declarations,di);if(!m&&Ki(l))return;let y=m||Gr(h.declarations,S=>mu(S)||gp(S));if(y&&!gD(o,y.getSourceFile())){let S=!gp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ki(l)||mu(y)))return;let A=y.getSourceFile(),N=gp(y)?0:(S?256:0)|(fX(l.text)?2:0),D=cu(A),w=ri(d.parent,ra);return{kind:0,token:l,call:w,modifierFlags:N,parentDeclaration:y,declSourceFile:A,isJSFile:D}}let E=Gr(h.declarations,gE);if(E&&!(p.flags&1056)&&!Ki(l)&&!gD(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function h$e(e,t){return t.isJSFile?mI(g$e(e,t)):y$e(e,t)}function g$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(mu(t)||gp(t))return;let s=fr.ChangeTracker.with(e,d=>iPe(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 ia(ib,s,[l,o.text],ib,f.Add_all_missing_members)}function iPe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=oPe(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=lPe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=tg(r);if(!l)return;let d=oPe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function oPe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),C1()))}function y$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=aPe(e.program.getTypeChecker(),t,o),p=m=>fr.ChangeTracker.with(e,y=>sPe(y,r,t,s,d,m)),h=[ia(ib,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],ib,f.Add_all_missing_members)];return l||Ki(o)||(i&2&&h.unshift(Zm(ib,p(2),[f.Declare_private_property_0,s])),h.push(v$e(e,r,t,o.text,d))),h}function aPe(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 sPe(e,t,r,i,o,s){let l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,d=di(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),p=lPe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function lPe(e){let t;for(let r of e.members){if(!jo(r))break;t=r}return t}function v$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=fr.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,d));return Zm(ib,p,[f.Add_index_signature_for_property_0,i])}function b$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=>fr.ChangeTracker.with(e,y=>cPe(e,y,l,s,m,r,i)),h=[ia(ib,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,d],ib,f.Add_all_missing_members)];return o&2&&h.unshift(Zm(ib,p(2),[f.Declare_private_method_0,d])),h}function cPe(e,t,r,i,o,s,l){let d=D1(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=Xfe(p,e,d,r,i,o,s),m=T$e(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function dPe(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=Qs(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function uPe(e,t,r){let i=of(t.sourceFile,t.preferences),o=D1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Xfe(262,t,o,r.call,vr(r.token),r.modifierFlags,r.parentDeclaration):W$(262,t,i,r.signature,lB(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&R.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 pPe(e,t,r){let i=D1(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,s1),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 fPe(e,t,r){let i=D1(t.sourceFile,t.program,t.preferences,t.host),o=of(t.sourceFile,t.preferences),s=rs(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(A$e(h,s,o,l),m)}),p={leadingTriviaOption:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.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 C1();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?hW(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 zl(o.types,d=>u$(e,t,r,i,d,s))??C1();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(E$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(Gr(o.symbol.declarations||Xe,Um(gh,hh,Kl))===void 0)return C1();let d=t.getSignaturesOfType(o,0);return d===void 0?C1():W$(218,e,i,d[0],lB(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??C1()}if(Lr(o)&1){let l=Og(o.symbol);if(l===void 0||W0(l))return C1();let d=tg(l);return d&&Nn(d.parameters)?C1():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return C1()}function C1(){return L.createIdentifier("undefined")}function E$e(e){return e.flags&524288&&(Lr(e)&128||e.symbol&&ri(rh(e.symbol.declarations),gp))}function S$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(rP(l.name)),s1(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return Vr(o,l=>Yp(l.name,t,1)&&!(l.flags&16777216||Al(l)&48||s.has(l.escapedName)))}function T$e(e,t){if(gp(e))return;let r=Fn(t,i=>Kl(i)||Ml(i));return r&&r.parent===e?r:void 0}function A$e(e,t,r,i){if(dh(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Ya(o))return o}return V6(e.name,t,r===0,!1,!1)}function mPe(e){if(Fn(e,vP)){let t=Fn(e.parent,Sm);if(t)return t}return Gn(e)}var ib,eB,tB,nB,pfe,I$e=bt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ai(),Aa(),ib="fixMissingMember",eB="fixMissingProperties",tB="fixMissingAttributes",nB="fixMissingFunctionDeclaration",pfe=[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:pfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=rPe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=fr.ChangeTracker.with(e,o=>fPe(o,e,r));return[ia(eB,i,f.Add_missing_properties,eB,f.Add_all_missing_properties)]}if(r.kind===4){let i=fr.ChangeTracker.with(e,o=>pPe(o,e,r));return[ia(tB,i,f.Add_missing_attributes,tB,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=fr.ChangeTracker.with(e,o=>uPe(o,e,r));return[ia(nB,i,[f.Add_missing_function_declaration_0,r.token.text],nB,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=fr.ChangeTracker.with(e,o=>dPe(o,e.program.getTypeChecker(),r));return[ia(ib,i,[f.Add_missing_enum_member_0,r.token.text],ib,f.Add_all_missing_members)]}return bo(b$e(e,r),h$e(e,r))}},fixIds:[ib,nB,eB,tB],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return AD(fr.ChangeTracker.with(e,l=>{ID(e,pfe,d=>{let p=rPe(d.file,d.start,d.code,i,e.program);if(!(!p||!Em(o,is(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===nB&&(p.kind===2||p.kind===5))uPe(l,e,p);else if(r===eB&&p.kind===3)fPe(l,e,p);else if(r===tB&&p.kind===4)pPe(l,e,p);else if(p.kind===1&&dPe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,y=jC(s,h,()=>[]);y.some(E=>E.token.text===m.text)||y.push(p)}}}),s.forEach((d,p)=>{let h=gp(p)?void 0:rme(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))cPe(e,l,N,A,S&256,y,E);else if(D&&!mu(y)&&!gp(y))iPe(l,E,y,A,!!(S&256));else{let w=aPe(i,y,A);sPe(l,E,y,A.text,w,S&256)}}})}))}})}});function _Pe(e,t,r){let i=ta(x$e(t,r),ra),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function x$e(e,t){let r=so(e,t.start),i=Xl(t);for(;r.end_Pe(o,t,r));return[ia(p$,i,f.Add_missing_new_operator_to_call,p$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[p$],getAllCodeActions:e=>vs(e,ffe,(t,r)=>_Pe(t,e.sourceFile,r))})}});function hPe(e,t,r){let i=so(e,r),o=Fn(i,ra);if(o===void 0||Nn(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),d=Vr(l.symbol.declarations,gPe);if(d===void 0)return;let p=Qs(d);if(p===void 0||p.body===void 0||gD(t,p.getSourceFile()))return;let h=D$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,...N$e(p,d)];for(let N=0,D=0,w=0;N{Nn(o.parameters)?e.replaceNodeRangeWithNodes(t,Va(o.parameters),Ja(o.parameters),yPe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:fr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fr.TrailingTriviaOption.Include}):gn(yPe(o,i),(s,l)=>{Nn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function gPe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function yPe(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 N$e(e,t){let r=[];for(let i of t)if(P$e(i)){if(Nn(i.parameters)===Nn(e.parameters)){r.push(i);continue}if(Nn(i.parameters)>Nn(e.parameters))return[]}return r}function P$e(e){return gPe(e)&&e.body===void 0}function vPe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function M$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],rB,f.Add_all_missing_parameters)),Nn(s)&&Tn(l,ia(iB,fr.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],iB,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>vs(e,mfe,(t,r)=>{let i=hPe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===rB&&f$(t,e.sourceFile,o,s),e.fixId===iB&&f$(t,e.sourceFile,o,l)}})})}});function bPe(e,t){return{type:"install package",file:e,packageName:t}}function EPe(e,t){let r=ri(so(e,t),Ca);if(!r)return;let i=r.text,{packageName:o}=yw(i);return $c(o)?void 0:o}function SPe(e,t,r){var i;return r===_fe?O_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?x3(e):void 0}var TPe,m$,_fe,hfe,k$e=bt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ai(),Aa(),TPe="fixCannotFindModule",m$="installTypesPackage",_fe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,hfe=[_fe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Ea({errorCodes:hfe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=EPe(i,o);if(s===void 0)return;let l=SPe(s,r,t.errorCode);return l===void 0?[]:[ia(TPe,[],[f.Install_0,l],m$,f.Install_all_missing_types_packages,bPe(i.fileName,l))]},fixIds:[m$],getAllCodeActions:e=>vs(e,hfe,(t,r,i)=>{let o=EPe(r.file,r.start);if(o!==void 0)switch(e.fixId){case m$:{let s=SPe(o,e.host,r.code);s&&i.push(bPe(r.file.fileName,s));break}default:R.fail(`Bad fixId: ${e.fixId}`)}})})}});function APe(e,t){let r=so(e,t);return ta(r.parent,di)}function IPe(e,t,r,i,o){let s=S_(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(w$e),h=D1(t,r.program,o,r.host);qfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function w$e(e){let t=zv(Va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var gfe,_$,O$e=bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ai(),Aa(),gfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],_$="fixClassDoesntImplementInheritedAbstractMember",Ea({errorCodes:gfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=fr.ChangeTracker.with(t,s=>IPe(APe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ia(_$,o,f.Implement_inherited_abstract_class,_$,f.Implement_all_inherited_abstract_classes)]},fixIds:[_$],getAllCodeActions:function(t){let r=new Map;return vs(t,gfe,(i,o)=>{let s=APe(o.file,o.start);Em(r,is(s))&&IPe(s,t.sourceFile,t,i,t.preferences)})}})}});function xPe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function RPe(e,t){let r=so(e,t);if(r.kind!==110)return;let i=Wp(r),o=DPe(i.body);return o&&!o.expression.arguments.some(s=>kr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function DPe(e){return td(e)&&hT(e.expression)?e:Yo(e)?void 0:Bo(e,DPe)}var h$,yfe,W$e=bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ai(),Aa(),h$="classSuperMustPrecedeThisAccess",yfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Ea({errorCodes:yfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=RPe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=fr.ChangeTracker.with(e,d=>xPe(d,t,o,s));return[ia(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 vs(e,yfe,(i,o)=>{let s=RPe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Em(r,is(l.parent))&&xPe(i,t,l,d)})}})}});function CPe(e,t){let r=so(e,t);return R.assert(Ml(r.parent),"token should be at the constructor declaration"),r.parent}function NPe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Xe));e.insertNodeAtConstructorStart(t,r,i)}var g$,vfe,F$e=bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ai(),Aa(),g$="constructorForDerivedNeedSuperCall",vfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Ea({errorCodes:vfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=CPe(t,r.start),o=fr.ChangeTracker.with(e,s=>NPe(s,t,i));return[ia(g$,o,f.Add_missing_super_call,g$,f.Add_all_missing_super_calls)]},fixIds:[g$],getAllCodeActions:e=>vs(e,vfe,(t,r)=>NPe(t,e.sourceFile,CPe(r.file,r.start)))})}});function PPe(e,t){Zfe(e,t,"jsx",L.createStringLiteral("react"))}var bfe,Efe,z$e=bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ai(),Aa(),bfe="fixEnableJsxFlag",Efe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Ea({errorCodes:Efe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=fr.ChangeTracker.with(t,o=>PPe(o,r));return[Zm(bfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[bfe],getAllCodeActions:e=>vs(e,Efe,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&PPe(t,r)})})}});function MPe(e,t,r){let i=Gr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Gr(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=tme(o.file,yd(o.start,o.length));if(s!==void 0&&ht(s)&&pr(s.parent))return{suggestion:B$e(o.messageText),expression:s.parent,arg:s}}function LPe(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 B$e(e){let[,t]=k_(e,` +`,0).match(/'(.*)'/)||[];return t}var y$,Sfe,G$e=bt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ai(),Aa(),y$="fixNaNEquality",Sfe=[f.This_condition_will_always_return_0.code],Ea({errorCodes:Sfe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=MPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=fr.ChangeTracker.with(e,h=>LPe(h,t,d,l));return[ia(y$,p,[f.Use_0,s],y$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[y$],getAllCodeActions:e=>vs(e,Sfe,(t,r)=>{let i=MPe(e.program,r.file,yd(r.start,r.length));i&&LPe(t,r.file,i.arg,i.expression)})})}}),V$e=bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ai(),Aa(),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=kd(r);if(s>=5&&s<99){let h=fr.ChangeTracker.with(t,m=>{Zfe(m,i,"module",L.createStringLiteral("esnext"))});o.push(Zm("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let d=rs(r);if(d<4||d>99){let h=fr.ChangeTracker.with(t,m=>{if(!bN(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),Qfe(m,i,E)});o.push(Zm("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function kPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function wPe(e,t){return ta(so(e,t).parent,Zu)}var v$,Tfe,j$e=bt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ai(),Aa(),v$="fixPropertyAssignment",Tfe=[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:Tfe,fixIds:[v$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=wPe(t,r.start),o=fr.ChangeTracker.with(e,s=>kPe(s,e.sourceFile,i));return[ia(v$,o,[f.Change_0_to_1,"=",":"],v$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>vs(e,Tfe,(t,r)=>kPe(t,r.file,wPe(r.file,r.start)))})}});function OPe(e,t){let r=so(e,t),i=sd(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function WPe(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(;dWPe(l,t,i,o));return[ia(b$,s,f.Change_extends_to_implements,b$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[b$],getAllCodeActions:e=>vs(e,Afe,(t,r)=>{let i=OPe(r.file,r.start);i&&WPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function FPe(e,t,r){let i=so(e,t);if(Fe(i)||Ki(i))return{node:i,className:r===Ife?sd(i).name.text:void 0}}function zPe(e,t,{node:r,className:i}){bp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var E$,Ife,xfe,H$e=bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ai(),Aa(),E$="forgottenThisPropertyAccess",Ife=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,xfe=[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,Ife],Ea({errorCodes:xfe,getCodeActions(e){let{sourceFile:t}=e,r=FPe(t,e.span.start,e.errorCode);if(!r)return;let i=fr.ChangeTracker.with(e,o=>zPe(o,t,r));return[ia(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=>vs(e,xfe,(t,r)=>{let i=FPe(r.file,r.start,r.code);i&&zPe(t,e.sourceFile,i)})})}});function K$e(e){return Is(Cfe,e)}function Rfe(e,t,r,i,o){let s=r.getText()[i];if(!K$e(s))return;let l=o?Cfe[s]:`{${lM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var S$,oB,Dfe,Cfe,J$e=bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ai(),Aa(),S$="fixInvalidJsxCharacters_expression",oB="fixInvalidJsxCharacters_htmlEntity",Dfe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Ea({errorCodes:Dfe,fixIds:[S$,oB],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=fr.ChangeTracker.with(e,l=>Rfe(l,r,t,i.start,!1)),s=fr.ChangeTracker.with(e,l=>Rfe(l,r,t,i.start,!0));return[ia(S$,o,f.Wrap_invalid_character_in_an_expression_container,S$,f.Wrap_all_invalid_characters_in_an_expression_container),ia(oB,s,f.Convert_invalid_character_to_its_html_entity_code,oB,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return vs(e,Dfe,(t,r)=>Rfe(t,e.preferences,r.file,r.start,e.fixId===oB))}}),Cfe={">":">","}":"}"}}});function q$e(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=fr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return ia(aB,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],aB,f.Delete_all_unused_param_tags)}function X$e(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Nn(i.parameters))return;let s=e.sourceFile,l=iE(i),d=new Set;for(let y of l)$m(y)&&Fe(y.name)&&d.add(y.name.escapedText);let p=zl(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=fr.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,mn(l,E=>E===o?h:E)));return Zm(Nfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function BPe(e,t){let r=so(e,t);if(r.parent&&$m(r.parent)&&Fe(r.parent.name)){let i=r.parent,o=ET(i),s=cE(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var aB,Nfe,Pfe,Y$e=bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ai(),Aa(),aB="deleteUnmatchedParameter",Nfe="renameUnmatchedParameter",Pfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Ea({fixIds:[aB,Nfe],errorCodes:Pfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=BPe(r,i.start);if(s)return Tn(o,q$e(t,s)),Tn(o,X$e(t,s)),o},getAllCodeActions:function(t){let r=new Map;return AD(fr.ChangeTracker.with(t,i=>{ID(t,Pfe,({file:o,start:s})=>{let l=BPe(o,s);l&&r.set(l.signature,Tn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===aB){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,d=>!l.has(d))}})}))}})}});function $$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 Gr(s?.declarations||Xe,Um(yh,Qu,nd))}function Q$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();ZF(o,d=>{if(bd(d.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function Z$e(e,t,r,i){I1.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var T$,GPe,eQe=bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ai(),Aa(),T$="fixUnreferenceableDecoratorMetadata",GPe=[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:GPe,getCodeActions:e=>{let t=$$e(e.sourceFile,e.program,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,s=>t.kind===276&&Z$e(s,e.sourceFile,t,e.program)),i=fr.ChangeTracker.with(e,s=>Q$e(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Tn(o,Zm(T$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Tn(o,Zm(T$,i,f.Use_import_type))),o},fixIds:[T$]})}});function VPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function BO(e,t){return ia(GO,e,t,x$,f.Delete_all_unused_declarations)}function jPe(e,t,r){e.delete(t,R.checkDefined(ta(r.parent,tj).typeParameters,"The type parameter to delete should exist"))}function Mfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function UPe(e){return e.kind===102?ri(e.parent,kc):void 0}function HPe(e,t){return Uc(t.parent)&&Va(t.parent.getChildren(e))===t}function KPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function tQe(e,t,r){gn(r.elements,i=>e.delete(t,i))}function nQe(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&T0(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:qy(e.host,e.formatContext.options)+r.text.slice(r7(r.text,s-1),s),suffix:fO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function JPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ta(i.parent,PT).typeParameter.name),Fe(i)&&rQe(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),To(i.parent)&&Wx(i.parent).forEach(o=>{Fe(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function rQe(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){iQe(t,r,e,i,o,s,l,d),Fe(t)&&ws.Core.eachSymbolReferenceInFile(t,i,e,p=>{kr(p.parent)&&p.parent.name===p&&(p=p.parent),!d&&lQe(p)&&r.delete(e,p.parent.parent)})}function iQe(e,t,r,i,o,s,l,d){let{parent:p}=e;if(To(p))oQe(t,r,p,i,o,s,l,d);else if(!(d&&Fe(e)&&ws.Core.isSymbolReferencedInFile(e,i,r))){let h=yh(p)?e:Ya(p)?p.parent:p;R.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function oQe(e,t,r,i,o,s,l,d=!1){if(aQe(i,t,r,o,s,l,d))if(r.modifiers&&r.modifiers.length>0&&(!Fe(r.name)||ws.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)Ta(p)&&e.deleteModifier(t,p);else!r.initializer&&qPe(r,i,o)&&e.delete(t,r)}function qPe(e,t,r){let i=e.parent.parameters.indexOf(e);return!ws.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function aQe(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=Kl(d)?d.name:d,m=ws.Core.getReferencedSymbolsForNode(d.pos,h,o,i,s);if(m){for(let y of m)for(let E of y.references)if(E.kind===ws.EntryKind.Node){let S=pP(E.node)&&ra(E.node.parent)&&E.node.parent.arguments.length>p,A=kr(E.node.parent)&&pP(E.node.parent.expression)&&ra(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,N=(Kl(E.node.parent)||hh(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&&sQe(e,t,d.name)?XPe(d,r,l):!0;case 218:case 219:return XPe(d,r,l);case 178:return!1;case 177:return!0;default:return R.failBadSyntaxKind(d)}}function sQe(e,t,r){return!!ws.Core.eachSymbolReferenceInFile(r,e,t,i=>Fe(i)&&ra(i.parent)&&i.parent.arguments.includes(i))}function XPe(e,t,r){let i=e.parameters,o=i.indexOf(t);return R.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 lQe(e){return(pr(e.parent)&&e.parent.left===e||(tH(e.parent)||Yv(e.parent))&&e.parent.operand===e)&&td(e.parent.parent)}var GO,I$,x$,sB,R$,Lfe,cQe=bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ai(),Aa(),GO="unusedIdentifier",I$="unusedIdentifier_prefix",x$="unusedIdentifier_delete",sB="unusedIdentifier_deleteImports",R$="unusedIdentifier_infer",Lfe=[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:Lfe,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[BO(fr.ChangeTracker.with(e,y=>y.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let y=fr.ChangeTracker.with(e,E=>jPe(E,r,d));return[BO(y,f.Remove_type_parameters)]}let p=UPe(d);if(p){let y=fr.ChangeTracker.with(e,E=>E.delete(r,p));return[ia(GO,y,[f.Remove_import_from_0,roe(p)],sB,f.Delete_all_unused_imports)]}else if(Mfe(d)){let y=fr.ChangeTracker.with(e,E=>A$(r,d,E,s,l,i,o,!1));if(y.length)return[ia(GO,y,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],sB,f.Delete_all_unused_imports)]}if(tm(d.parent)||U0(d.parent)){if(To(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[BO(fr.ChangeTracker.with(e,S=>tQe(S,r,d.parent)),E)]}return[BO(fr.ChangeTracker.with(e,y=>nQe(e,y,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(HPe(r,d))return[BO(fr.ChangeTracker.with(e,y=>KPe(y,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let y=fr.ChangeTracker.with(e,S=>VPe(S,r,d)),E=ta(d.parent,PT).typeParameter.name.text;h.push(ia(GO,y,[f.Replace_infer_0_with_unknown,E],R$,f.Replace_all_unused_infer_with_unknown))}else{let y=fr.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(BO(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=fr.ChangeTracker.with(e,y=>JPe(y,t,r,d));return m.length&&h.push(ia(GO,m,[f.Prefix_0_with_an_underscore,d.getText(r)],I$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[I$,x$,sB,R$],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return vs(e,Lfe,(l,d)=>{let p=so(t,d.start);switch(e.fixId){case I$:JPe(l,d.code,t,p);break;case sB:{let h=UPe(p);h?l.delete(t,h):Mfe(p)&&A$(t,p,l,o,s,r,i,!0);break}case x$:{if(p.kind===140||Mfe(p))break;if(nm(p))l.delete(t,p);else if(p.kind===30)jPe(l,t,p);else if(tm(p.parent)){if(p.parent.parent.initializer)break;(!To(p.parent.parent)||qPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(U0(p.parent.parent)&&p.parent.parent.parent.initializer)break;HPe(t,p)?KPe(l,t,p.parent):A$(t,p,l,o,s,r,i,!0)}break}case R$:p.kind===140&&VPe(l,t,p);break;default:R.fail(JSON.stringify(e.fixId))}})}})}});function YPe(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:R.formatSyntaxKind(l.kind),tokenKind:R.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});R.fail("Token and statement should start at the same point. "+p)}let d=(Ho(l.parent)?l.parent:l).parent;if(!Ho(l.parent)||l===Va(l.parent.statements))switch(d.kind){case 245:if(d.elseStatement){if(Ho(l.parent))break;e.replaceNode(t,l,L.createBlock(Xe));return}case 247:case 248:e.delete(t,d);return}if(Ho(l.parent)){let p=r+i,h=R.checkDefined(dQe(dU(l.parent.statements,l),m=>m.posYPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ia(D$,r,f.Remove_unreachable_code,D$,f.Remove_all_unreachable_code)]},fixIds:[D$],getAllCodeActions:e=>vs(e,kfe,(t,r)=>YPe(t,r.file,r.start,r.length,r.code))})}});function $Pe(e,t,r){let i=so(t,r),o=ta(i.parent,J0),s=i.getStart(t),l=o.statement.getStart(t),d=Sf(s,l,t)?l:Pa(t.text,gs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var C$,wfe,pQe=bt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ai(),Aa(),C$="fixUnusedLabel",wfe=[f.Unused_label.code],Ea({errorCodes:wfe,getCodeActions(e){let t=fr.ChangeTracker.with(e,r=>$Pe(r,e.sourceFile,e.span.start));return[ia(C$,t,f.Remove_unused_label,C$,f.Remove_all_unused_labels)]},fixIds:[C$],getAllCodeActions:e=>vs(e,wfe,(t,r)=>$Pe(t,r.file,r.start))})}});function QPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function ZPe(e,t,r){let i=Fn(so(e,t),fQe),o=i&&i.type;return o&&{typeNode:o,type:mQe(r,o)}}function fQe(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 mQe(e,t){if(OR(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 Ofe,N$,Wfe,_Qe=bt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ai(),Aa(),Ofe="fixJSDocTypes_plain",N$="fixJSDocTypes_nullable",Wfe=[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:Wfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=ZPe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),d=[p(s,Ofe,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=fr.ChangeTracker.with(e,S=>QPe(S,t,o,h,r));return ia("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Ofe,N$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return vs(e,Wfe,(s,l)=>{let d=ZPe(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;QPe(s,i,p,m,o)})}})}});function eMe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function tMe(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$,Ffe,hQe=bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ai(),Aa(),P$="fixMissingCallParentheses",Ffe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Ea({errorCodes:Ffe,fixIds:[P$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=tMe(t,r.start);if(!i)return;let o=fr.ChangeTracker.with(e,s=>eMe(s,e.sourceFile,i));return[ia(P$,o,f.Add_missing_call_parentheses,P$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>vs(e,Ffe,(t,r)=>{let i=tMe(r.file,r.start);i&&eMe(t,r.file,i)})})}});function gQe(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&gh(e.parent.type))return e.parent.type.type}function nMe(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=gs(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=gs(i,s,e)||Va(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:gQe(i)}}function rMe(e,t,{insertBefore:r,returnType:i}){if(i){let o=D2(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$,zfe,yQe=bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ai(),Aa(),M$="fixAwaitInSyncFunction",zfe=[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:zfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=nMe(t,r.start);if(!i)return;let o=fr.ChangeTracker.with(e,s=>rMe(s,t,i));return[ia(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 vs(t,zfe,(i,o)=>{let s=nMe(o.file,o.start);!s||!Em(r,is(s.insertBefore))||rMe(i,t.sourceFile,s)})}})}});function iMe(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;R.assert(Pv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let h=p.parent;R.assert(di(h),"erroneous accessors should only be inside classes");let m=rh(rme(h,d));if(!m)return[];let y=Vi(Jx(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 R.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return vMe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Bfe,L$,vQe=bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ai(),Aa(),Bfe=[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:Bfe,getCodeActions(e){let t=iMe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ia(L$,t,f.Generate_get_and_set_accessors,L$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[L$],getAllCodeActions:e=>vs(e,Bfe,(t,r)=>{let i=iMe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function bQe(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 EQe(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 oMe(e,t,r,i,o,s,l,d,p){if(!uN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=D1(t,o,p,d);switch(i=EQe(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(Oi(h)&&l(h)||jo(h)||_p(h))return aMe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(kr(h)){let S=VO(h.name,o,s),A=cM(S,h,o,d);if(A){let N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,ta(h.parent.parent,td),[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&&Oi(S.valueDeclaration)&&l(S.valueDeclaration)?(aMe(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)){sMe(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=ta(h,To);SQe(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,VO(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)&&(sMe(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:fr.isThisTypeAnnotatable(y)&&l(y)&&(TQe(e,t,y,o,d,s),E=y);break;default:return R.fail(String(i))}return m.writeFixes(e),E}function aMe(e,t,r,i,o,s,l){Fe(i.name)&&k$(e,t,r,i,VO(i.name,o,l),o,s)}function SQe(e,t,r,i,o,s,l,d){if(!Fe(i.name))return;let p=xQe(o,r,s,d);if(R.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),or(o))lMe(e,r,p,s,l);else{let h=zs(o)&&!gs(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 TQe(e,t,r,i,o,s){let l=cMe(r,t,i,s);if(!l||!l.length)return;let d=Vfe(i,l,s).thisParameter(),p=cM(d,r,i,o);p&&(or(r)?AQe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function AQe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function sMe(e,t,r,i,o,s,l){let d=Yc(i.parameters);if(d&&Fe(i.name)&&Fe(d.name)){let p=VO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=VO(d.name,o,l)),or(i)?lMe(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=cM(o,i,s,l);if(d)if(or(r)&&i.kind!==171){let p=Oi(i)?ri(i.parent.parent,Ll):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 IQe(d,i,r,e,t,rs(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function IQe(e,t,r,i,o,s){let l=N1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(gn(l.symbols,d=>o.addImportFromExportedSymbol(d,!0)),!0):!1}function lMe(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||rE(p)||!Fe(p.name))return;let h=d.type&&cM(d.type,p,i,o);if(h){let m=L.cloneNode(p.name);return dr(m,7168),{name:L.cloneNode(p.name),param:p,isOptional:!!d.isOptional,typeNode:h}}});if(l.length)if(zs(s)||ks(s)){let d=zs(s)&&!gs(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 Gfe(e,t,r){return to(ws.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==ws.EntryKind.Span?ri(i.node,Fe):void 0)}function VO(e,t,r){let i=Gfe(e,t,r);return Vfe(t,i,r).single()}function xQe(e,t,r,i){let o=cMe(e,t,r,i);return o&&Vfe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Fe(s.name)?VO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function cMe(e,t,r,i){let o;switch(e.kind){case 176:o=gs(e,137,t);break;case 219:case 218:let s=e.parent;o=(Oi(s)||jo(s))&&Fe(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Gfe(o,r,i)}function Vfe(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ie=>i.createArrayType(Ie),Promise:Ie=>i.createPromiseType(Ie)},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(Ie){let De=new Map;for(let Et of Ie)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:Ie.some(Et=>Et.isNumber),isString:Ie.some(Et=>Et.isString),isNumberOrString:Ie.some(Et=>Et.isNumberOrString),candidateTypes:va(Ie,Et=>Et.candidateTypes),properties:Le,calls:va(Ie,Et=>Et.calls),constructs:va(Ie,Et=>Et.constructs),numberIndex:gn(Ie,Et=>Et.numberIndex),stringIndex:gn(Ie,Et=>Et.stringIndex),candidateThisTypes:va(Ie,Et=>Et.candidateThisTypes),inferredTypes:void 0}}function p(){return me(y(t))}function h(Ie){if(t.length===0||!Ie.parameters)return;let De=l();for(let Et of t)r.throwIfCancellationRequested(),E(Et,De);let Le=[...De.constructs||[],...De.calls||[]];return Ie.parameters.map((Et,be)=>{let ze=[],tt=qh(Et),Wt=!1;for(let Je of Le)if(Je.argumentTypes.length<=be)Wt=or(Ie),ze.push(i.getUndefinedType());else if(tt)for(let ft=be;ftLe.every(be=>!be(Et)))}function ee(Ie){return me(q(Ie))}function me(Ie){if(!Ie.length)return i.getAnyType();let De=i.getUnionType([i.getStringType(),i.getNumberType()]),Et=z(Ie,[{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(Ie){if(Ie.length===1)return Ie[0];let De=[],Le=[],Et=[],be=[],ze=!1,tt=!1,Wt=qp();for(let ft of Ie){for(let Dn of i.getPropertiesOfType(ft))Wt.add(Dn.escapedName,Dn.valueDeclaration?i.getTypeOfSymbolAtLocation(Dn,Dn.valueDeclaration):i.getAnyType());De.push(...i.getSignaturesOfType(ft,0)),Le.push(...i.getSignaturesOfType(ft,1));let Zt=i.getIndexInfoOfType(ft,0);Zt&&(Et.push(Zt.type),ze=ze||Zt.isReadonly);let en=i.getIndexInfoOfType(ft,1);en&&(be.push(en.type),tt=tt||en.isReadonly)}let _t=$te(Wt,(ft,Zt)=>{let en=Zt.lengthi.getBaseTypeOfLiteralType(Wt)),tt=(Et=Ie.calls)!=null&&Et.length?J(Ie):void 0;return tt&&ze?be.push(i.getUnionType([tt,...ze],2)):(tt&&be.push(tt),Nn(ze)&&be.push(...ze)),be.push(...re(Ie)),be}function J(Ie){let De=new Map;Ie.properties&&Ie.properties.forEach((ze,tt)=>{let Wt=i.createSymbol(4,tt);Wt.links.type=ee(ze),De.set(tt,Wt)});let Le=Ie.calls?[Ce(Ie.calls)]:[],Et=Ie.constructs?[Ce(Ie.constructs)]:[],be=Ie.stringIndex?[i.createIndexInfo(i.getStringType(),ee(Ie.stringIndex),!1)]:[];return i.createAnonymousType(void 0,De,Le,Et,be)}function re(Ie){if(!Ie.properties||!Ie.properties.size)return[];let De=s.filter(Le=>pe(Le,Ie));return 0xe(Le,Ie)):[]}function pe(Ie,De){return De.properties?!Gc(De.properties,(Le,Et)=>{let be=i.getTypeOfPropertyOfType(Ie,Et);return be?Le.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,he(Le.calls)):!i.isTypeAssignableTo(be,ee(Le)):!0}):!1}function xe(Ie,De){if(!(Lr(Ie)&4)||!De.properties)return Ie;let Le=Ie.target,Et=rh(Le.typeParameters);if(!Et)return Ie;let be=[];return De.properties.forEach((ze,tt)=>{let Wt=i.getTypeOfPropertyOfType(Le,tt);R.assert(!!Wt,"generic should have all the properties of its reference."),be.push(...fe(Wt,ee(ze),Et))}),o[Ie.symbol.escapedName](me(be))}function fe(Ie,De,Le){if(Ie===Le)return[De];if(Ie.flags&3145728)return va(Ie.types,ze=>fe(ze,De,Le));if(Lr(Ie)&4&&Lr(De)&4){let ze=i.getTypeArguments(Ie),tt=i.getTypeArguments(De),Wt=[];if(ze&&tt)for(let _t=0;_tbe.argumentTypes.length));for(let be=0;bett.argumentTypes[be]||i.getUndefinedType())),Ie.some(tt=>tt.argumentTypes[be]===void 0)&&(ze.flags|=16777216),De.push(ze)}let Et=ee(d(Ie.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,De,Et,void 0,Le,0)}function Ge(Ie,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ie.candidateTypes||(Ie.candidateTypes=[])).push(De)}function ve(Ie,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(Ie.candidateThisTypes||(Ie.candidateThisTypes=[])).push(De)}}var w$,jfe,RQe=bt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ai(),Aa(),w$="inferFromUsage",jfe=[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:jfe,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=fr.ChangeTracker.with(e,E=>{h=oMe(E,t,p,o,r,s,Ay,l,d)}),y=h&&No(h);return!y||m.length===0?void 0:[ia(w$,m,[bQe(o,p),fc(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=E1();return vs(e,jfe,(d,p)=>{oMe(d,t,so(p.file,p.start),p.code,r,i,l,o,s)})}})}});function dMe(e,t,r){if(or(e))return;let i=so(e,r),o=Fn(i,Fs),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 uMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var O$,Ufe,DQe=bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ai(),Aa(),O$="fixReturnTypeInAsyncFunction",Ufe=[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:Ufe,fixIds:[O$],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=dMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=fr.ChangeTracker.with(t,E=>uMe(E,r,d,h));return[ia(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=>vs(e,Ufe,(t,r)=>{let i=dMe(r.file,e.program.getTypeChecker(),r.start);i&&uMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function pMe(e,t,r,i){let{line:o}=ys(t,r);(!i||Jb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Hfe,Kfe,Jfe,CQe=bt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ai(),Aa(),Hfe="disableJsDiagnostics",Kfe="disableJsDiagnostics",Jfe=to(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),Ea({errorCodes:Jfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!or(r)||!fk(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":qy(s,l.options),p=[Zm(Hfe,[mCe(r.fileName,[rO(r.checkJsDirective?pc(r.checkJsDirective.pos,r.checkJsDirective.end):yd(0,0),`// @ts-nocheck${d}`)])],f.Disable_checking_for_this_file)];return fr.isValidLocationToAddComment(r,o.start)&&p.unshift(ia(Hfe,fr.ChangeTracker.with(t,h=>pMe(h,r,o.start)),f.Ignore_this_error_message,Kfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[Kfe],getAllCodeActions:e=>{let t=new Set;return vs(e,Jfe,(r,i)=>{fr.isValidLocationToAddComment(i.file,i.start)&&pMe(r,i.file,i.start,t)})}})}});function qfe(e,t,r,i,o,s,l){let d=e.symbol.members;for(let p of t)d.has(p.escapedName)||fMe(p,e,r,i,o,s,l,void 0)}function RD(e){return{trackSymbol:()=>!1,moduleResolverHost:Vq(e.program,e.host)}}function fMe(e,t,r,i,o,s,l,d,p=3,h=!1){let m=e.getDeclarations(),y=Yc(m),E=i.program.getTypeChecker(),S=rs(i.program.getCompilerOptions()),A=y?.kind??171,N=re(e,y),D=y?du(y):0,w=D&256;w|=D&1?1:D&4?4:0,y&&ku(y)&&(w|=512);let j=ee(),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,RD(i));if(s){let ne=N1(xe,S);ne&&(xe=ne.typeNode,DD(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:{R.assertIsDefined(m);let ne=E.typeToTypeNode(K,t,void 0,RD(i)),he=xT(m,y),Ce=he.secondAccessor?[he.firstAccessor,he.secondAccessor]:[he.firstAccessor];if(s){let Ge=N1(ne,S);Ge&&(ne=Ge.typeNode,DD(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{R.assertNode(Ge,hp,"The counterpart to a getter should be a setter");let ve=kN(Ge),Ie=ve&&Fe(ve.name)?vr(ve.name):void 0;l(L.createSetAccessorDeclaration(j,ge(N),Yfe(1,[Ie],[J(ne)],1,!1),q(d,ce,B)))}break}case 173:case 174:R.assertIsDefined(m);let fe=K.isUnion()?va(K.types,ne=>ne.getCallSignatures()):K.getCallSignatures();if(!gt(fe))break;if(m.length===1){R.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 R.assert(m.length===fe.length,"Declarations and signatures should match count"),l(MQe(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 ee(){let pe;return w&&(pe=Sx(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(vr(pe),ce===0)):al(pe,!1)}function q(pe,xe,fe){return fe?void 0:al(pe,!1)||$fe(xe)}function J(pe){return al(pe,!1)}function re(pe,xe){if(Al(pe)&262144){let fe=pe.links.nameType;if(fe&&Qf(fe))return L.createIdentifier(Vi(Zf(fe)))}return al(No(xe),!1)}}function W$(e,t,r,i,o,s,l,d,p,h){let m=t.program,y=m.getTypeChecker(),E=rs(m.getCompilerOptions()),S=or(p),A=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,p,A,RD(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=Mc(D,z=>{let ee=z.constraint,me=z.default;if(ee){let ge=N1(ee,E);ge&&(ee=ge.typeNode,DD(h,ge.symbols))}if(me){let ge=N1(me,E);ge&&(me=ge.typeNode,DD(h,ge.symbols))}return L.updateTypeParameterDeclaration(z,z.modifiers,z.name,ee,me)});D!==ce&&(D=at(L.createNodeArray(ce,D.hasTrailingComma),D))}let B=Mc(w,ce=>{let z=S?void 0:ce.type;if(z){let ee=N1(z,E);ee&&(z=ee.typeNode,DD(h,ee.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=N1(j,E);ce&&(j=ce.typeNode,DD(h,ce.symbols))}}let K=d?L.createToken(58):void 0,Y=N.asteriskToken;if(ks(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body);if(zs(N))return L.updateArrowFunction(N,l,D,w,j,N.equalsGreaterThanToken,o??N.body);if(Kl(N))return L.updateMethodDeclaration(N,l,Y,s??L.createIdentifier(""),K,D,w,j,o);if(Tc(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ri(s,Fe),D,w,j,o??N.body)}function Xfe(e,t,r,i,o,s,l){let d=of(t.sourceFile,t.preferences),p=rs(t.program.getCompilerOptions()),h=RD(t),m=t.program.getTypeChecker(),y=or(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}=hMe(m,r,w,l,p,1,h),Y=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,B=G4(A)?L.createToken(42):void 0,ce=y?void 0:NQe(m,K,E),z=Yfe(S.length,D,j,void 0,y),ee=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,ee,$fe(d));case 173:return L.createMethodSignature(Y,o,void 0,ce,z,ee===void 0?L.createKeywordTypeNode(159):ee);case 262:return R.assert(typeof o=="string"||Fe(o),"Unexpected name"),L.createFunctionDeclaration(Y,B,o,ce,z,ee,lB(f.Function_not_implemented.message,d));default:R.fail("Unexpected kind")}}function NQe(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 mMe(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&&og(d)){let p=N1(d,o);p&&(DD(t,p.symbols),d=p.typeNode)}return al(d)}function _Me(e){return e.isUnionOrIntersection()?e.types.some(_Me):e.flags&262144}function hMe(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 MQe(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),Xd(N)&&(y=!0),N.parameters.length>=h.parameters.length&&(!Xd(N)||Xd(h))&&(h=N);let E=h.parameters.length-(Xd(h)?1:0),S=h.parameters.map(N=>N.name),A=Yfe(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 kQe(l,o,s,void 0,A,LQe(i,e,t,r),d,p)}function LQe(e,t,r,i){if(Nn(e)){let o=t.getUnionType(mn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,RD(r))}}function kQe(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||$fe(l))}function $fe(e){return lB(f.Method_not_implemented.message,e)}function lB(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function Qfe(e,t,r){let i=bN(t);if(!i)return;let o=eme(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(La(s))for(let[l,d]of r){let p=eme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,z$(l,d)):e.replaceNode(t,p.initializer,d)}}function Zfe(e,t,r,i){Qfe(e,t,[[r,i]])}function z$(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function eme(e,t){return Gr(e.properties,r=>hc(r)&&!!r.name&&Ca(r.name)&&r.name.text===t)}function N1(e,t){let r,i=Qe(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=m7(l.symbol,t),p=d!==l.text?yMe(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 yMe(e,t){return e.kind===80?t:L.createQualifiedName(yMe(e.left,t),e.right)}function DD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function tme(e,t){let r=Xl(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))(nme||{})}});function vMe(e,t,r,i,o,s){let l=SMe(e,t,r,i);if(!l||I1.isRefactorErrorInfo(l))return;let d=fr.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(di(A)){let K=du(N);if(cu(e)){let Y=L.createModifiersFromModifierFlags(K);D=Y,w=Y}else D=L.createModifiersFromModifierFlags(FQe(K)),w=L.createModifiersFromModifierFlags(zQe(K));jT(N)&&(w=bo(Dv(N),w))}UQe(d,e,N,S,m,w);let j=BQe(m,y,S,D,p,A);if(bp(j),TMe(d,e,j,N,A),h){let K=tg(A);K&&HQe(d,e,K,m.text,E)}else{let K=GQe(m,y,S,D,p,A);bp(K),TMe(d,e,K,N,A)}return d.getChanges()}function OQe(e){return Fe(e)||Ca(e)}function WQe(e){return dp(e,e.parent)||jo(e)||hc(e)}function bMe(e,t){return Fe(t)?L.createIdentifier(e):L.createStringLiteral(e)}function EMe(e,t,r){let i=t?r.name:L.createThis();return Fe(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function FQe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function zQe(e){return e&=-2,e&=-5,e|=2,e}function SMe(e,t,r,i,o=!0){let s=so(e,r),l=r===i&&o,d=Fn(s.parent,WQe),p=271;if(!d||!(Wz(d.name,e,r,i)||l))return{error:ko(f.Could_not_find_property_for_which_to_generate_accessor)};if(!OQe(d.name))return{error:ko(f.Name_is_not_valid)};if((du(d)&98303|p)!==p)return{error:ko(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=fX(h),y=bMe(m?h:eA(`_${h}`,e),d.name),E=bMe(m?eA(h.substring(1),e):h,d.name);return{isStatic:mc(d),isReadonly:wN(d),type:KQe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:y,accessorName:E,renameAccessor:m}}function BQe(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(EMe(e,o,s))],!0))}function GQe(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(EMe(e,o,s),L.createIdentifier("value")))],!0))}function VQe(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 jQe(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 UQe(e,t,r,i,o,s){jo(r)?VQe(e,t,r,i,o,s):hc(r)?jQe(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,ta(o,Fe),r.questionToken,r.type,r.initializer))}function TMe(e,t,r,i,o){dp(i,i.parent)?e.insertMemberAtStart(t,o,r):hc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function HQe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Xs(l)&&l.expression.kind===110&&Ca(l.argumentExpression)&&l.argumentExpression.text===o&&wI(l)&&e.replaceNode(t,l.argumentExpression,L.createStringLiteral(i)),kr(l)&&l.expression.kind===110&&l.name.text===o&&wI(l)&&e.replaceNode(t,l.name,L.createIdentifier(i)),!Yo(l)&&!di(l)&&l.forEachChild(s)})}function KQe(e,t){let r=Mie(e);if(jo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=Jv(r)?r.types:[r];return L.createUnionTypeNode([...s,L.createKeywordTypeNode(157)])}}return r}function rme(e,t){let r=[];for(;e;){let i=M0(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&Gr(s.declarations,di);if(!l)break;r.push(l),e=l}return r}var JQe=bt({"src/services/codefixes/generateAccessors.ts"(){"use strict";ai()}});function qQe(e,t){let r=Gn(t),i=oR(t),o=e.program.getCompilerOptions(),s=[];return s.push(AMe(e,r,t,Jy(i.name,void 0,t.moduleSpecifier,of(r,e.preferences)))),kd(o)===1&&s.push(AMe(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function AMe(e,t,r,i){let o=fr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Zm(ime,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function XQe(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 IMe(e,o)}function YQe(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?IMe(e,r):[]}function IMe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&dh(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Op(o)||Ur(i,qQe(e,o)),ht(t)&&!(au(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=fr.ChangeTracker.with(e,d=>d.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Zm(ime,l,f.Use_synthetic_default_member))}return i}var ime,$Qe=bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ai(),Aa(),ime="invalidImportSyntax",Ea({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:XQe}),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:YQe})}});function xMe(e,t){let r=so(e,t);if(Fe(r)&&jo(r.parent)){let i=vd(r.parent);if(i)return{type:i,prop:r.parent,isJs:or(r.parent)}}}function QQe(e,t){if(t.isJs)return;let r=fr.ChangeTracker.with(e,i=>RMe(i,e.sourceFile,t.prop));return ia(B$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],G$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function RMe(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 ZQe(e,t){let r=fr.ChangeTracker.with(e,i=>DMe(i,e.sourceFile,t));return ia(B$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],V$,f.Add_undefined_type_to_all_uninitialized_properties)}function DMe(e,t,r){let i=L.createKeywordTypeNode(157),o=Jv(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 eZe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=NMe(r,t.prop);if(!i)return;let o=fr.ChangeTracker.with(e,s=>CMe(s,e.sourceFile,t.prop,i));return ia(B$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],j$,f.Add_initializers_to_all_uninitialized_properties)}function CMe(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 NMe(e,t){return PMe(e,e.getTypeFromTypeNode(t.type))}function PMe(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 zl(t.types,r=>PMe(e,r));if(t.isClass()){let r=Og(t.symbol);if(!r||$r(r,64))return;let i=tg(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$,ome,tZe=bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ai(),Aa(),B$="strictClassInitialization",G$="addMissingPropertyDefiniteAssignmentAssertions",V$="addMissingPropertyUndefinedType",j$="addMissingPropertyInitializer",ome=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Ea({errorCodes:ome,getCodeActions:function(t){let r=xMe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Tn(i,ZQe(t,r)),Tn(i,QQe(t,r)),Tn(i,eZe(t,r)),i},fixIds:[G$,V$,j$],getAllCodeActions:e=>vs(e,ome,(t,r)=>{let i=xMe(r.file,r.start);if(i)switch(e.fixId){case G$:RMe(t,r.file,i.prop);break;case V$:DMe(t,r.file,i);break;case j$:let o=e.program.getTypeChecker(),s=NMe(o,i.prop);if(!s)return;CMe(t,r.file,i.prop,s);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function MMe(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 LMe(e,t,r){let{parent:i}=so(e,r);Su(i,!0)||R.failBadSyntaxKind(i);let o=ta(i.parent,Oi),s=ri(o.name,Fe),l=tm(o.name)?nZe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:CT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:ta(o.parent.parent,Ll),required:Va(i.arguments)}}function nZe(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$,ame,rZe=bt({"src/services/codefixes/requireInTs.ts"(){"use strict";ai(),Aa(),U$="requireInTs",ame=[f.require_call_may_be_converted_to_an_import.code],Ea({errorCodes:ame,getCodeActions(e){let t=LMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,i=>MMe(i,e.sourceFile,t));return[ia(U$,r,f.Convert_require_to_import,U$,f.Convert_all_require_to_import)]},fixIds:[U$],getAllCodeActions:e=>vs(e,ame,(t,r)=>{let i=LMe(r.file,e.program,r.start);i&&MMe(t,e.sourceFile,i)})})}});function kMe(e,t){let r=so(e,t);if(!Fe(r))return;let{parent:i}=r;if(nd(i)&&bh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if($v(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function wMe(e,t,r,i){e.replaceNode(t,r.importNode,Jy(r.name,void 0,r.moduleSpecifier,of(t,i)))}var H$,sme,iZe=bt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ai(),Aa(),H$="useDefaultImport",sme=[f.Import_may_be_converted_to_a_default_import.code],Ea({errorCodes:sme,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=kMe(t,r);if(!i)return;let o=fr.ChangeTracker.with(e,s=>wMe(s,t,i,e.preferences));return[ia(H$,o,f.Convert_to_default_import,H$,f.Convert_all_to_default_imports)]},fixIds:[H$],getAllCodeActions:e=>vs(e,sme,(t,r)=>{let i=kMe(r.file,r.start);i&&wMe(t,r.file,i,e.preferences)})})}});function OMe(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$,lme,oZe=bt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ai(),Aa(),K$="useBigintLiteral",lme=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Ea({errorCodes:lme,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>OMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(K$,r,f.Convert_to_a_bigint_numeric_literal,K$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[K$],getAllCodeActions:e=>vs(e,lme,(t,r)=>OMe(t,r.file,r))})}});function WMe(e,t){let r=so(e,t);return R.assert(r.kind===102,"This token should be an ImportKeyword"),R.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function FMe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var zMe,J$,cme,aZe=bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ai(),Aa(),zMe="fixAddModuleReferTypeMissingTypeof",J$=zMe,cme=[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:cme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=WMe(r,i.start),s=fr.ChangeTracker.with(t,l=>FMe(l,r,o));return[ia(J$,s,f.Add_missing_typeof,J$,f.Add_missing_typeof)]},fixIds:[J$],getAllCodeActions:e=>vs(e,cme,(t,r)=>FMe(t,e.sourceFile,WMe(r.file,r.start)))})}});function BMe(e,t){let o=so(e,t).parent.parent;if(!(!pr(o)&&(o=o.parent,!pr(o)))&&Bl(o.operatorToken))return o}function GMe(e,t,r){let i=sZe(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function sZe(e){let t=[],r=e;for(;;)if(pr(r)&&Bl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),f2(r.right))return t.push(r.right),t;if(pr(r.right)){r=r.right;continue}else return}else return}var q$,dme,lZe=bt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ai(),Aa(),q$="wrapJsxInFragment",dme=[f.JSX_expressions_must_have_one_parent_element.code],Ea({errorCodes:dme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=BMe(r,i.start);if(!o)return;let s=fr.ChangeTracker.with(t,l=>GMe(l,r,o));return[ia(q$,s,f.Wrap_in_JSX_fragment,q$,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[q$],getAllCodeActions:e=>vs(e,dme,(t,r)=>{let i=BMe(e.sourceFile,r.start);i&&GMe(t,e.sourceFile,i)})})}});function VMe(e,t){let r=so(e,t),i=ri(r.parent.parent,j0);if(!i)return;let o=mu(i.parent)?i.parent:ri(i.parent.parent,Tm);if(o)return{indexSignature:i,container:o}}function cZe(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function jMe(e,t,{indexSignature:r,container:i}){let s=(mu(i)?i.members:i.type.members).filter(m=>!j0(m)),l=Va(r.parameters),d=L.createTypeParameterDeclaration(void 0,ta(l.name,Fe),l.type),p=L.createMappedTypeNode(wN(r)?L.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=L.createIntersectionTypeNode([...xN(i),p,...s.length?[L.createTypeLiteralNode(s)]:Xe]);e.replaceNode(t,i,cZe(i,h))}var X$,ume,dZe=bt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ai(),Aa(),X$="fixConvertToMappedObjectType",ume=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Ea({errorCodes:ume,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=VMe(r,i.start);if(!o)return;let s=fr.ChangeTracker.with(t,d=>jMe(d,r,o)),l=vr(o.container.name);return[ia(X$,s,[f.Convert_0_to_mapped_object_type,l],X$,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[X$],getAllCodeActions:e=>vs(e,ume,(t,r)=>{let i=VMe(r.file,r.start);i&&jMe(t,r.file,i)})})}}),pme,UMe,uZe=bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ai(),Aa(),pme="removeAccidentalCallParentheses",UMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Ea({errorCodes:UMe,getCodeActions(e){let t=Fn(so(e.sourceFile,e.span.start),ra);if(!t)return;let r=fr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Zm(pme,r,f.Remove_parentheses)]},fixIds:[pme]})}});function HMe(e,t,r){let i=ri(so(t,r.start),d=>d.kind===135),o=i&&ri(i.parent,Xv);if(!o)return;let s=o;if(Fu(o.parent)){let d=bR(o.expression,!1);if(Fe(d)){let p=Ic(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var Y$,fme,pZe=bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ai(),Aa(),Y$="removeUnnecessaryAwait",fme=[f.await_has_no_effect_on_the_type_of_this_expression.code],Ea({errorCodes:fme,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>HMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(Y$,r,f.Remove_unnecessary_await,Y$,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Y$],getAllCodeActions:e=>vs(e,fme,(t,r)=>HMe(t,r.file,r))})}});function KMe(e,t){return Fn(so(e,t.start),kc)}function JMe(e,t,r){if(!t)return;let i=R.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 mme,$$,fZe=bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ai(),Aa(),mme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],$$="splitTypeOnlyImport",Ea({errorCodes:mme,fixIds:[$$],getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>JMe(i,KMe(t.sourceFile,t.span),t));if(r.length)return[ia($$,r,f.Split_into_two_separate_import_declarations,$$,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>vs(e,mme,(t,r)=>{JMe(t,KMe(e.sourceFile,r),e)})})}});function qMe(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=gs(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function XMe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Q$,_me,mZe=bt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ai(),Aa(),Q$="fixConvertConstToLet",_me=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Ea({errorCodes:_me,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=qMe(r,i.start,o);if(s===void 0)return;let l=fr.ChangeTracker.with(t,d=>XMe(d,r,s.token));return[mpe(Q$,l,f.Convert_const_to_let,Q$,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return AD(fr.ChangeTracker.with(e,i=>{ID(e,_me,o=>{let s=qMe(o.file,o.start,t);if(s&&Em(r,ba(s.symbol)))return XMe(i,o.file,s.token)})}))},fixIds:[Q$]})}});function YMe(e,t,r){let i=so(e,t);return i.kind===27&&i.parent&&(La(i.parent)||fu(i.parent))?{node:i}:void 0}function $Me(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var Z$,QMe,hme,_Ze=bt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ai(),Aa(),Z$="fixExpectedComma",QMe=f._0_expected.code,hme=[QMe],Ea({errorCodes:hme,getCodeActions(e){let{sourceFile:t}=e,r=YMe(t,e.span.start,e.errorCode);if(!r)return;let i=fr.ChangeTracker.with(e,o=>$Me(o,t,r));return[ia(Z$,i,[f.Change_0_to_1,";",","],Z$,[f.Change_0_to_1,";",","])]},fixIds:[Z$],getAllCodeActions:e=>vs(e,hme,(t,r)=>{let i=YMe(r.file,r.start,r.code);i&&$Me(t,e.sourceFile,i)})})}});function ZMe(e,t,r,i,o){let s=so(t,r.start);if(!Fe(s)||!ra(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||!To(p)||!H0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=hZe(p.parent.parent);if(gt(h)){let m=h[0],y=!Jv(m)&&!MT(m)&&MT(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);or(p)?(!E||E.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Pa(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function hZe(e){var t;if(or(e)){if(Fu(e.parent)){let r=(t=nE(e.parent))==null?void 0:t.typeExpression.type;if(r&&If(r)&&Fe(r.typeName)&&vr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var eLe,gme,yme,gZe=bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ai(),Aa(),eLe="addVoidToPromise",gme="addVoidToPromise",yme=[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:yme,fixIds:[gme],getCodeActions(e){let t=fr.ChangeTracker.with(e,r=>ZMe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ia(eLe,t,f.Add_void_to_Promise_resolved_without_a_value,gme,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return vs(e,yme,(t,r)=>ZMe(t,r.file,r,e.program,new Set))}})}}),Wd={};Ra(Wd,{PreserveOptionalFlags:()=>nme,addNewNodeForMemberSymbol:()=>fMe,codeFixAll:()=>vs,createCodeFixAction:()=>ia,createCodeFixActionMaybeFixAll:()=>mpe,createCodeFixActionWithoutFixAll:()=>Zm,createCombinedCodeActions:()=>AD,createFileTextChanges:()=>mCe,createImportAdder:()=>D1,createImportSpecifierResolver:()=>IYe,createJsonPropertyAssignment:()=>z$,createMissingMemberNodes:()=>qfe,createSignatureDeclarationFromCallExpression:()=>Xfe,createSignatureDeclarationFromSignature:()=>W$,createStubbedBody:()=>lB,eachDiagnostic:()=>ID,findAncestorMatchingSpan:()=>tme,findJsonProperty:()=>eme,generateAccessorFromProperty:()=>vMe,getAccessorConvertiblePropertyAtPosition:()=>SMe,getAllFixes:()=>tXe,getAllSupers:()=>rme,getArgumentTypesAndTypeParameters:()=>hMe,getFixes:()=>eXe,getImportCompletionAction:()=>xYe,getImportKind:()=>jpe,getJSDocTypedefNodes:()=>bYe,getNoopSymbolTrackerWithResolver:()=>RD,getPromoteTypeOnlyCompletionAction:()=>RYe,getSupportedErrorCodes:()=>Qqe,importFixName:()=>Ype,importSymbols:()=>DD,moduleSpecifierToValidIdentifier:()=>Xpe,moduleSymbolToValidIdentifier:()=>qpe,parameterShouldGetTypeFromJSDoc:()=>kCe,registerCodeFix:()=>Ea,setJsonCompilerOptionValue:()=>Zfe,setJsonCompilerOptionValues:()=>Qfe,tryGetAutoImportableReferenceFromTypeNode:()=>N1,typeToAutoImportableTypeNode:()=>F$});var Aa=bt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";nXe(),rXe(),iXe(),sXe(),pXe(),hXe(),gXe(),yXe(),vXe(),TXe(),LXe(),wXe(),KXe(),dYe(),uYe(),fYe(),mYe(),EYe(),SYe(),AYe(),JYe(),YYe(),ZYe(),e$e(),t$e(),i$e(),s$e(),d$e(),_$e(),I$e(),R$e(),L$e(),k$e(),O$e(),W$e(),F$e(),z$e(),G$e(),V$e(),j$e(),U$e(),H$e(),J$e(),Y$e(),eQe(),cQe(),uQe(),pQe(),_Qe(),hQe(),yQe(),vQe(),RQe(),DQe(),CQe(),wQe(),JQe(),$Qe(),tZe(),rZe(),iZe(),oZe(),aZe(),lZe(),dZe(),uZe(),pZe(),fZe(),mZe(),_Ze(),gZe()}});function yZe(e){return!!(e.kind&1)}function vZe(e){return!!(e.kind&2)}function cB(e){return!!(e&&e.kind&4)}function gM(e){return!!(e&&e.kind===32)}function bZe(e){return cB(e)||gM(e)||vme(e)}function EZe(e){return(cB(e)||gM(e))&&!!e.isFromPackageJson}function SZe(e){return!!(e.kind&8)}function TZe(e){return!!(e.kind&16)}function tLe(e){return!!(e&&e.kind&64)}function nLe(e){return!!(e&&e.kind&128)}function AZe(e){return!!(e&&e.kind&256)}function vme(e){return!!(e&&e.kind&512)}function rLe(e,t,r,i,o,s,l,d,p){var h,m,y;let E=Js(),S=l||FI(pu(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}: ${Js()-E}`),K;function B(ce,z){if(z){let q=r.getModuleSpecifierForBestExportInfo(ce,o,d);return q&&N++,q||"failed"}let ee=S||s.allowIncompleteCompletions&&D{let A=to(p.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||iLe(N.data))return N;if(!CLe(N.name,m))return;let{origin:w}=R.checkDefined(hLe(N.name,N.data,i,o)),j=y.get(t.path,N.data.exportMapKey),K=j&&S.tryResolve(j,!$c(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=pLe(Y),N.source=Sme(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=lLe(h),p}function bme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function oLe(e,t,r,i,o,s){let l=so(e,t);if(!jx(l)&&!Ym(l))return[];let d=Ym(l)?l:l.parent;if(!Ym(d))return[];let p=d.parent;if(!Yo(p))return[];let h=cu(e),m=o.includeCompletionsWithSnippetText||void 0,y=bv(d.tags,E=>$m(E)&&E.getEnd()<=t);return to(p.parameters,E=>{if(!Wx(E).length){if(Fe(E.name)){let S={tabstop:1},A=E.name.text,N=jO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),D=m?jO(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:Fd.LocationPriority,insertText:m?D:void 0,isSnippet:m}}else if(E.parent.parameters.indexOf(E)===y){let S=`param${y}`,A=aLe(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),N=m?aLe(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:Fd.LocationPriority,insertText:m?w:void 0,isSnippet:m}}}})}function aLe(e,t,r,i,o,s,l,d,p){if(!o)return[jO(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=jO(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[jO(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?yN(E.propertyName):E.name.text;if(!A)return;let N=`${y}.${A}`;return[jO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=yN(E.propertyName);return A&&h(`${y}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function jO(e,t,r,i,o,s,l,d,p,h){if(s&&R.assertIsDefined(h),t&&(e=RZe(e,t)),s&&(e=G0(e)),i){let m="*";if(o)R.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,Yo),D);if(w){let j=s?nQ({removeComments:!0,module:d.module,target:d.target}):IE({removeComments:!0,module:d.module,target:d.target});dr(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 RZe(e,t){let r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function DZe(e){return{name:da(e),kind:"keyword",kindModifiers:"",sortText:Fd.GlobalsOrKeywords}}function CZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function sLe(e,t,r){return{kind:4,keywordCompletions:gLe(e,t),isNewIdentifierLocation:r}}function NZe(e){switch(e){case 156:return 8;default:R.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function lLe(e){return e?.kind===80?Ru(e):void 0}function PZe(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:ee,importStatementCompletion:me,insideJsDocTagTypeExpression:ge,symbolToSortTextMap:q,hasUnresolvedAutoImports:J}=s,re=s.literals,pe=r.getTypeChecker();if(lk(e.scriptKind)===1){let Ge=LZe(N,e);if(Ge)return Ge}let xe=Fn(y,wR);if(xe&&(pae(y)||P0(y,xe.expression))){let Ge=y7(pe,xe.parent.clauses);re=re.filter(ve=>!Ge.hasValue(ve)),m.forEach((ve,Ie)=>{if(ve.valueDeclaration&&Q0(ve.valueDeclaration)){let De=pe.getConstantValue(ve.valueDeclaration);De!==void 0&&Ge.hasValue(De)&&(j[Ie]={kind:256})}})}let fe=kG(),ne=cLe(e,i);if(ne&&!A&&(!m||m.length===0)&&w===0)return;let he=Tme(m,fe,void 0,y,N,p,e,t,r,rs(i),o,E,l,i,d,B,D,ce,Y,me,K,j,q,ce,z,h);if(w!==0)for(let Ge of gLe(w,!ge&&cu(e)))(B&&nM(v0(Ge.name))||!B&&_et(Ge.name)||!he.has(Ge.name))&&(he.add(Ge.name),Ev(fe,Ge,dB,!0));for(let Ge of tet(y,p))he.has(Ge.name)||(he.add(Ge.name),Ev(fe,Ge,dB,!0));for(let Ge of re){let ve=wZe(e,l,Ge);he.add(ve.name),Ev(fe,ve,dB,!0)}ne||kZe(e,N.pos,he,rs(i),fe);let Ce;if(l.includeCompletionsWithInsertText&&y&&!z&&!ee&&(Ce=Fn(y,yP))){let Ge=dLe(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:MZe(E),isNewIdentifierLocation:A,optionalReplacementSpan:lLe(N),entries:fe}}function cLe(e,t){return!cu(e)||!!fk(e,t)}function dLe(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=y7(p,d),y=rs(i),E=of(t,r),S=Wd.createImportAdder(t,s,r,o),A=[];for(let B of h.types)if(B.flags&1024){R.assert(B.symbol,"An enum member type should have a symbol"),R.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=Wd.typeToAutoImportableTypeNode(p,S,B,e,y);if(!z)return;let ee=eQ(z,y,E);if(!ee)return;A.push(ee)}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=qy(o,l?.options),w=nQ({removeComments:!0,module:i.module,target:i.target,newLine:hO(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:Fd.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:R.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 MZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function LZe(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=!!gs(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),d=Ru(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Fd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function kZe(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),Ev(o,{name:d,kind:"warning",kindModifiers:"",sortText:Fd.JavascriptIdentifiers,isFromUncheckedFile:!0},dB))})}function Eme(e,t,r){return typeof r=="object"?z0(r)+"n":Co(r)?lM(e,t,r):JSON.stringify(r)}function wZe(e,t,r){return{name:Eme(e,t,r),kind:"string",kindModifiers:"",sortText:Fd.LocationPriority}}function OZe(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 ee,me;let ge,q,J=Oq(r),re,pe,xe=Sme(y),fe,ne,he,Ce=p.getTypeChecker(),Ge=y&&TZe(y),ve=y&&vZe(y)||m;if(y&&yZe(y))ge=m?`this${Ge?"?.":""}[${fLe(l,j,h)}]`:`this${Ge?"?.":"."}${h}`;else if((ve||Ge)&&S){ge=ve?m?`[${fLe(l,j,h)}]`:`[${h}]`:h,(Ge||S.questionDotToken)&&(ge=`?.${ge}`);let De=gs(S,25,l)||gs(S,29,l);if(!De)return;let Le=ao(h,S.name.text)?S.name.end:De.end;J=pc(De.getStart(l),Le)}if(A&&(ge===void 0&&(ge=h),ge=`{${ge}}`,typeof A!="boolean"&&(J=Ru(A,l))),y&&SZe(y)&&S){ge===void 0&&(ge=h);let De=Ic(S.pos,l),Le="";De&&l7(De.end,De.parent,l)&&(Le=";"),Le+=`(await ${S.expression.getText()})`,ge=m?`${Le}${ge}`:`${Le}${Ge?"?.":"."}${ge}`;let be=ri(S.parent,Xv)?S.parent:S.expression;J=pc(be.getStart(l),S.end)}if(gM(y)&&(fe=[af(y.moduleSpecifier)],N&&({insertText:ge,replacementSpan:J}=jZe(h,N,y,D,l,w,j),pe=j.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(ne=!0),K===0&&i&&((ee=Ic(i.pos,l,i))==null?void 0:ee.kind)!==28&&(Kl(i.parent.parent)||Qp(i.parent.parent)||hp(i.parent.parent)||Vy(i.parent)||((me=Fn(i.parent,hc))==null?void 0:me.getLastToken(l))===i||Zu(i.parent)&&ys(l,i.getEnd()).line!==ys(l,s).line)&&(xe="ObjectLiteralMemberWithComma/",ne=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&K===3&&WZe(e,o,l)){let De,Le=uLe(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&&nLe(y)&&({insertText:ge,isSnippet:pe,labelDetails:he}=y,j.useLabelDetailsInCompletionEntries||(h=h+he.detail,he=void 0),xe="ObjectLiteralMethodSnippet/",t=Fd.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&&Gr(Le.types,Et=>!!(Et.flags&528)))&&(Le.flags&402653316||Le.flags&1048576&&oo(Le.types,Et=>!!(Et.flags&402686084||pde(Et)))?(ge=`${G0(h)}=${lM(l,j,"$1")}`,pe=!0):De=!0),De&&(ge=`${G0(h)}={$1}`,pe=!0)}if(ge!==void 0&&!j.includeCompletionsWithInsertText)return;(cB(y)||gM(y))&&(re=pLe(y),ne=!N);let Ie=Fn(o,T6);if(Ie?.kind===275){let De=v0(h);Ie&&De&&(De===135||Ij(De))&&(ge=`${h} as ${h}_`)}return{name:h,kind:$y.getSymbolKind(Ce,e,o),kindModifiers:$y.getSymbolModifiers(Ce,e),sortText:t,source:xe,hasAction:ne?!0:void 0,isRecommended:UZe(e,E,Ce)||void 0,insertText:ge,filterText:q,replacementSpan:J,sourceDisplay:fe,labelDetails:he,isSnippet:pe,isPackageJsonImport:EZe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:re,...z?{symbol:e}:void 0}}function WZe(e,t,r){return or(t)?!1:!!(e.flags&106500)&&(di(t)||t.parent&&t.parent.parent&&Qc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&zR(t)&&di(t.parent))}function uLe(e,t,r,i,o,s,l,d,p,h){let m=Fn(l,di);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:hO(qy(e,h?.options))}),w=Wd.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}=FZe(p,N,d),z=Y&64&&m.modifierFlagsCache&64,ee=[];if(Wd.addNewNodeForMemberSymbol(s,m,N,{program:t,host:e},i,w,me=>{let ge=0;z&&(ge|=64),Qc(me)&&A.getMemberOverrideModifierStatus(m,me,s)===1&&(ge|=16),ee.length||(K=me.modifierFlagsCache|ge),me=L.replaceModifiers(me,K),ee.push(me)},j,Wd.PreserveOptionalFlags.Property,!!z),ee.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,ee=ee.map(re=>L.replaceModifiers(re,K)),ce?.length){let re=ee[ee.length-1];jT(re)&&(ee[ee.length-1]=L.replaceDecoratorsAndModifiers(re,ce.concat(b0(re)||[])))}let J=131073;h?E=D.printAndFormatSnippetList(J,L.createNodeArray(ee),N,h):E=D.printSnippetList(J,L.createNodeArray(ee),N)}return{insertText:E,filterText:S,isSnippet:y,importAdder:w,eraseRange:B}}function FZe(e,t,r){if(!e||ys(t,r).line>ys(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(jo(e.parent)&&e.parent.modifiers&&(i|=x_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Ed)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=zZe(e)){let d=kI(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 zZe(e){if(Ta(e))return e.kind;if(Fe(e)){let t=tE(e);if(t&&Ny(t))return t}}function BZe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),y=GZe(e,r,m,i,o,l);if(!y)return;let E=nQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:hO(qy(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=IE({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 GZe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=al(No(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=Vr(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,Wd.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!gh(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=fr.createWriter(Wy(e)),i=IE(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=G0(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?fr.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 ys(this,Y)}},w=g7(N,A),j=va(S,Y=>{let B=fr.assignPositionsToNode(Y);return Oc.formatNodeGivenIndentation(B,D,A.languageVariant,0,0,{...N,options:w})}),K=t?Ey(bo(j,t),(Y,B)=>bW(Y.span,B.span)):j;return fr.applyChanges(D.text,K)}function h(E,S,A){let N=m(E,S,A);return t?fr.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 ys(this,B)}},w=g7(N,A),j=fr.assignPositionsToNode(S),K=Oc.formatNodeGivenIndentation(j,D,A.languageVariant,0,0,{...N,options:w}),Y=t?Ey(bo(K,t),(B,ce)=>bW(B.span,ce.span)):K;return fr.applyChanges(D.text,Y)}}function pLe(e){let t=e.fileName?void 0:Yf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return gM(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 VZe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return iLe(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 jZe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=G0(lM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",y=Wd.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}${G0(e)}${m} = require(${p})${N}`};case 1:return{replacementSpan:d,insertText:`import${S}${G0(e)}${m} from ${p}${N}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${G0(e)} from ${p}${N}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${G0(e)}${m} } from ${p}${N}`}}}function fLe(e,t,r){return/^\d+$/.test(r)?r:lM(e,t,r)}function UZe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Sme(e){if(cB(e))return Yf(e.moduleSymbol.name);if(gM(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Tme(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N,D,w,j,K,Y,B,ce,z,ee,me=!1){let ge=Js(),q=pet(i,o),J=fO(l),re=p.getTypeChecker(),pe=new Map;for(let ne=0;neze.getSourceFile()===o.getSourceFile()));pe.set(ve,be),Ev(t,Et,dB,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Js()-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(kl(o.parent))return!0;if(ri(q,Oi)&&ne.valueDeclaration===q)return!1;let ve=ne.valueDeclaration??((Ce=ne.declarations)==null?void 0:Ce[0]);if(q&&ve&&(ml(q)&&ml(ve)||To(q)&&To(ve))){let De=ve.pos,Le=To(q)?q.parent.parameters:PT(q.parent)?void 0:q.parent.typeParameters;if(De>=q.pos&&Le&&DeEme(r,l,K)===o.name);return j!==void 0?{type:"literal",literal:j}:zl(h,(K,Y)=>{let B=S[Y],ce=iQ(K,rs(d),B,E,p.isJsxIdentifierExpected);return ce&&ce.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Sme(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 JZe(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(b1(r,i,A))return uQ.getStringLiteralCompletionDetails(y,r,i,A,e,s,p,d);let D=mLe(e,t,r,i,o,s,d);switch(D.type){case"request":{let{request:w}=D;switch(w.kind){case 1:return ME.getJSDocTagNameCompletionDetails(y);case 2:return ME.getJSDocTagCompletionDetails(y);case 3:return ME.getJSDocParameterNameCompletionDetails(y);case 4:return gt(w.keywordCompletions,j=>j.name===y)?Ame(y,"keyword",5):void 0;default:return R.assertNever(w)}}case"symbol":{let{symbol:w,location:j,contextToken:K,origin:Y,previousToken:B}=D,{codeActions:ce,sourceDisplay:z}=qZe(y,j,K,Y,w,e,s,m,r,i,B,l,d,S,E,p),ee=vme(Y)?Y.symbolName:w.name;return Ime(w,ee,h,r,j,p,ce,z)}case"literal":{let{literal:w}=D;return Ame(Eme(r,d,w),"string",typeof w=="string"?8:7)}case"cases":{let w=dLe(N.parent,r,d,e.getCompilerOptions(),s,e,void 0);if(w?.importAdder.hasFixes()){let{entry:j,importAdder:K}=w,Y=fr.ChangeTracker.with({host:s,formatContext:l,preferences:d},K.writeFixes);return{name:j.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Y,description:tA([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Lme().some(w=>w.name===y)?Ame(y,"keyword",5):void 0;default:R.assertNever(D)}}function Ame(e,t,r){return uB(e,"",t,[ep(e,r)])}function Ime(e,t,r,i,o,s,l,d){let{displayParts:p,documentation:h,symbolKind:m,tags:y}=r.runWithCancellationToken(s,E=>$y.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return uB(t,$y.getSymbolModifiers(r,e),m,p,h,y,l,d)}function uB(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 qZe(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N){if(S?.moduleSpecifier&&m&&ALe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[af(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:ce,eraseRange:z}=uLe(l,s,d,E,e,o,t,h,r,y);if(ce||z)return{sourceDisplay:void 0,codeActions:[{changes:fr.ChangeTracker.with({host:l,formatContext:y,preferences:E},me=>{ce&&ce.writeFixes(me),z&&me.deleteRange(p,z)}),description:tA([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(tLe(i)){let ce=Wd.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,y,E);return R.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(A==="ObjectLiteralMemberWithComma/"&&r){let ce=fr.ChangeTracker.with({host:l,formatContext:y,preferences:E},z=>z.insertText(p,r.end,","));if(ce)return{sourceDisplay:void 0,codeActions:[{changes:ce,description:tA([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(cB(i)||gM(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:w}=i,j=D.getMergedSymbol(bd(o.exportSymbol||o,D)),K=r?.kind===30&&lu(r.parent),{moduleSpecifier:Y,codeAction:B}=Wd.getImportCompletionAction(j,w,S?.exportMapKey,p,e,K,l,s,y,m&&Fe(m)?m.getStart(p):h,E,N);return R.assert(!S?.moduleSpecifier||Y===S.moduleSpecifier),{sourceDisplay:[af(Y)],codeActions:[B]}}function XZe(e,t,r,i,o,s,l){let d=mLe(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function YZe(e,t,r){return zl(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!noe(o)?xme(o,e,r):void 0})}function $Ze(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return o7(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,wR);return s?oX(s,i):void 0;case 19:return vP(o)&&!ag(o.parent)&&!X0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=XO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):a7(e.kind)&&pr(o)&&a7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function xme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Va(i):e.parent&&(QZe(e.parent)?e:xme(e.parent,t,r))}function QZe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function _Le(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),y=cLe(r,i),E=Js(),S=so(r,o);t("getCompletionData: Get current token: "+(Js()-E)),E=Js();let A=Hy(r,o,S);t("getCompletionData: Is inside comment: "+(Js()-E));let N=!1,D=!1;if(A){if(cde(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=net(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&&$m(ue)&&(Bl(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=Js();let w=!N&&cu(r),j=rQ(o,r),K=j.previousToken,Y=j.contextToken;t("getCompletionData: Get previous token: "+(Js()-E));let B=S,ce,z=!1,ee=!1,me=!1,ge=!1,q=!1,J=!1,re,pe=zu(r,o),xe=0,fe=!1,ne=0;if(Y){let ue=ALe(Y,r);if(ue.keywordCompletion){if(ue.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[DZe(ue.keywordCompletion)],isNewIdentifierLocation:ue.isNewIdentifierLocation};xe=NZe(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?sLe(xe,w,ua()):void 0;let We=Y.parent;if(Y.kind===25||Y.kind===29)switch(z=Y.kind===25,ee=Y.kind===29,We.kind){case 211:ce=We,B=ce.expression;let Ne=vR(ce);if(Bl(Ne)||(ra(B)||Yo(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),R.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(!TLe(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.endQT(ue?d.getPackageJsonAutoImportProvider():e,d));if(z||ee)en();else if(me)ve=m.getJsxIntrinsicTagNamesAt(pe),R.assertEachIsDefined(ve,"getJsxIntrinsicTagNames() should all be defined"),Yt(),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(!Yt())return xe?sLe(xe,w,fe):void 0;t("getCompletionData: Semantic work: "+(Js()-he));let tt=K&&$Ze(K,o,r,m),_t=!ri(K,ss)&&!J?to(tt&&(tt.isUnion()?tt.types:[tt]),ue=>ue.isLiteral()&&!(ue.flags&1024)?ue.value:void 0):[],Je=K&&tt&&YZe(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||ee,importStatementCompletion:re,hasUnresolvedAutoImports:Ge,flags:ne};function ft(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(ft(ue)){let We=nm(ue)?ue.constraint:ue.typeExpression;return We&&We.kind===316?We:void 0}if(l1(ue)||q4(ue))return ue.class}function en(){Ce=2;let ue=Wv(B),We=ue&&!B.isTypeOf||Yh(B.parent)||tO(Y,r,m),Ne=Lz(B);if(Xu(B)||ue||kr(B)){let It=Yl(B.parent);It&&(fe=!0);let Dt=m.getSymbolAtLocation(B);if(Dt&&(Dt=bd(Dt,m),Dt.flags&1920)){let Kt=m.getExportsOfModule(Dt);R.assertEachIsDefined(Kt,"getExportsOfModule() should all be defined");let En=gi=>m.isValidPropertyAccess(ue?B:B.parent,gi.name),wn=gi=>Dme(gi,m),Bn=It?gi=>{var xi;return!!(gi.flags&1920)&&!((xi=gi.declarations)!=null&&xi.every(tr=>tr.parent===B.parent))}:Ne?gi=>wn(gi)||En(gi):We||N?wn:En;for(let gi of Kt)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 tr=z&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(tr||ee)&&(gi=gi.getNonNullableType(),tr&&(xi=!0))}Dn(gi,!!(B.flags&65536),xi)}return}}if(!We||IT(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 Kt=z&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(Kt||ee)&&(It=It.getNonNullableType(),Kt&&(Dt=!0))}Dn(It,!!(B.flags&65536),Dt)}}}function Dn(ue,We,Ne){fe=!!ue.getStringIndexType(),ee&>(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(...Vr(sQ(ue,m),Dt=>m.isValidPropertyAccessForCompletions(It,ue,Dt)));if(We&&s.includeCompletionsWithInsertText){let Dt=m.getPromisedTypeOfPromise(ue);if(Dt)for(let Kt of Dt.getApparentProperties())m.isValidPropertyAccessForCompletions(It,Dt,Kt)&&Kn(Kt,!0,Ne)}}function Kn(ue,We,Ne){var It;let Dt=zl(ue.declarations,Bn=>ri(No(Bn),Ya));if(Dt){let Bn=pn(Dt.expression),gi=Bn&&m.getSymbolAtLocation(Bn),xi=gi&&xme(gi,Y,m),tr=xi&&ba(xi);if(tr&&Em(Et,tr)){let Wr=ve.length;ve.push(xi);let ho=xi.parent;if(!ho||!iO(ho)||m.tryGetMemberInModuleExportsAndProperties(xi.name,ho)!==xi)De[Wr]={kind:wn(2)};else{let Pi=$c(Yf(ho.name))?(It=AF(ho))==null?void 0:It.fileName:void 0,{moduleSpecifier:Ri}=(Ie||(Ie=Wd.createImportSpecifierResolver(r,e,d,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Pi,isFromPackageJson:!1,moduleSymbol:ho,symbol:xi,targetFlags:bd(xi,m).flags}],o,mE(pe))||{};if(Ri){let Hr={kind:wn(6),moduleSymbol:ho,isDefaultExport:!1,symbolName:xi.name,exportName:xi.name,fileName:Pi,moduleSpecifier:Ri};De[Wr]=Hr}}}else if(s.includeCompletionsWithInsertText){if(tr&&Et.has(tr))return;En(ue),Kt(ue),ve.push(ue)}}else En(ue),Kt(ue),ve.push(ue);function Kt(Bn){cet(Bn)&&(Le[ba(Bn)]=Fd.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 Yt(){return(vn()||kn()||uo()||Be()||ct()||lt()||qt()||Rt()||hi()||(Li(),1))===1}function qt(){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=bo(ve,ie(aQ(We,Ne,ue.attributes,m),ue.attributes.properties)),U(),Ce=3,fe=!1,1}function uo(){return re?(fe=!0,$e(),1):0}function Li(){xe=st(Y)?5:1,Ce=1,fe=ua(),K!==Y&&R.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=Zn(We);let Ne=(be?0:111551)|788968|1920|2097152,It=K&&!mE(K);ve=bo(ve,m.getSymbolsInScope(We,Ne)),R.assertEachIsDefined(ve,"getSymbolsInScope() should all be defined");for(let Dt=0;DtEn.getSourceFile()===r)&&(Le[ba(Kt)]=Fd.GlobalsOrKeywords),It&&!(Kt.flags&111551)){let En=Kt.declarations&&Gr(Kt.declarations,i2);if(En){let wn={kind:64,declaration:En};De[Dt]=wn}}}if(s.includeCompletionsWithInsertText&&We.kind!==312){let Dt=m.tryGetThisTypeAt(We,!1,di(We.parent)?We:void 0);if(Dt&&!set(Dt,r,m))for(let Kt of sQ(Dt,m))De[ve.length]={kind:1},ve.push(Kt),Le[ba(Kt)]=Fd.SuggestedClassMembers}$e(),be&&(xe=Y&&uT(Y.parent)?6:7)}function Eo(){return re?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Gq(e.getCompilerOptions())?!0:_de(e):!1}function Zn(ue){switch(ue.kind){case 312:case 228:case 294:case 241:return!0;default:return Hi(ue)}}function jr(){return N||!!re&&oE(pe.parent)||!Sr(Y)&&(tO(Y,r,m)||Yh(pe)||on(Y))}function Sr(ue){return ue&&(ue.kind===114&&(ue.parent.kind===186||LR(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||EI(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 $e(){var ue,We;if(!Eo()||(R.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),Kt=gO(r,d,e,s,h),En=(We=d.getPackageJsonAutoImportProvider)==null?void 0:We.call(d),wn=l?void 0:dM(r,s,d);rLe("collectAutoImports",d,Ie||(Ie=Wd.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!re,mE(pe),gi=>{Kt.search(r.path,me,(xi,tr)=>{if(!Yp(xi,rs(d.getCompilationSettings()))||!l&&PI(xi)||!be&&!re&&!(tr&111551)||be&&!(tr&790504))return!1;let Wr=xi.charCodeAt(0);return me&&(Wr<65||Wr>90)?!1:l?!0:CLe(xi,It)},(xi,tr,Wr,ho)=>{if(l&&!gt(xi,Os=>l.source===Yf(Os.moduleSymbol.name))||(xi=Vr(xi,Bn),!xi.length))return;let Pi=gi.tryResolve(xi,Wr)||{};if(Pi==="failed")return;let Ri=xi[0],Hr;Pi!=="skipped"&&({exportInfo:Ri=xi[0],moduleSpecifier:Hr}=Pi);let Io=Ri.exportKind===1,xn=Io&&gR(Ri.symbol)||Ri.symbol;Ot(xn,{kind:Hr?32:4,moduleSpecifier:Hr,symbolName:tr,exportMapKey:ho,exportName:Ri.exportKind===2?"export=":Ri.symbol.name,fileName:Ri.moduleFileName,isDefaultExport:Io,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 tr=Yf(gi.moduleSymbol.name);return O_.nodeCoreModules.has(tr)&&ao(tr,"node:")!==h7(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]!==Fd.GlobalsOrKeywords&&(De[ve.length]=We,Le[Ne]=re?Fd.LocationPriority:Fd.AutoImportSuggestions,ve.push(ue))}function In(ue,We){or(pe)||ue.forEach(Ne=>{if(!si(Ne))return;let It=iQ(Ne,rs(i),void 0,0,!1);if(!It)return;let{name:Dt}=It,Kt=BZe(Ne,Dt,We,e,d,i,s,p);if(!Kt)return;let En={kind:128,...Kt};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=Js(),Ne=Ba(ue)||Tt(ue)||Bt(ue)||Ao(ue)||L4(ue);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Js()-We)),Ne}function Ao(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(pB(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=oet(Y);if(!ue)return 0;let Ne=(e1(ue.parent)?ue.parent:void 0)||ue,It=SLe(Ne,m);if(!It)return 0;let Dt=m.getTypeFromTypeNode(Ne),Kt=sQ(It,m),En=sQ(Dt,m),wn=new Set;return En.forEach(Bn=>wn.add(Bn.escapedName)),ve=bo(ve,Vr(Kt,Bn=>!wn.has(Bn.escapedName))),Ce=0,fe=!0,1}function kn(){let ue=ve.length,We=ZZe(Y,o,r);if(!We)return 0;Ce=0;let Ne,It;if(We.kind===210){let Dt=det(We,m);if(Dt===void 0)return We.flags&67108864?2:0;let Kt=m.getContextualType(We,4),En=(Kt||Dt).getStringIndexType(),wn=(Kt||Dt).getNumberIndexType();if(fe=!!En||!!wn,Ne=aQ(Dt,Kt,We,m),It=We.properties,Ne.length===0&&!wn)return 0}else{R.assert(We.kind===206),fe=!1;let Dt=A_(We.parent);if(!$x(Dt))return R.fail("Root declaration is not variable-like.");let Kt=kv(Dt)||!!vd(Dt)||Dt.parent.parent.kind===250;if(!Kt&&Dt.kind===169&&(ht(Dt.parent)?Kt=!!m.getContextualType(Dt.parent):(Dt.parent.kind===174||Dt.parent.kind===178)&&(Kt=ht(Dt.parent.parent)&&!!m.getContextualType(Dt.parent.parent))),Kt){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,R.checkDefined(It));ve=bo(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,T6):Xz(Y)?ri(Y.parent.parent,T6):void 0;if(!ue)return 0;Xz(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)),Kt=It.filter(En=>En.escapedName!=="default"&&!Dt.has(En.escapedName));return ve=bo(ve,Kt),Kt.length||(xe=0),1}function ct(){if(Y===void 0)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,i1):Y.kind===59?ri(Y.parent.parent,i1):void 0;if(ue===void 0)return 0;let We=new Set(ue.elements.map(K6));return ve=Vr(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,Um(Yi,Yl));return Ce=5,fe=!1,(ue=Ne.locals)==null||ue.forEach((It,Dt)=>{var Kt,En;ve.push(It),(En=(Kt=Ne.symbol)==null?void 0:Kt.exports)!=null&&En.has(Dt)&&(Le[ba(It)]=Fd.OptionalMember)}),1}function Rt(){let ue=iet(r,Y,pe,o);if(!ue)return 0;if(Ce=3,fe=!0,xe=Y.kind===42?0:di(ue)?2:3,!di(ue))return 1;let We=Y.kind===27?Y.parent.parent:Y.parent,Ne=Qc(We)?du(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(Il(We)&&(Ne|=256),!(Ne&2)){let It=di(ue)&&Ne&16?mI(S_(ue)):xN(ue),Dt=va(It,Kt=>{let En=m.getTypeAtLocation(Kt);return Ne&256?En?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(En.symbol,ue)):En&&m.getPropertiesOfType(En)});ve=bo(ve,k(Dt,ue.members,Ne)),gn(ve,(Kt,En)=>{let wn=Kt?.valueDeclaration;if(wn&&Qc(wn)&&wn.name&&Ya(wn.name)){let Bn={kind:512,symbolName:m.symbolToString(Kt)};De[En]=Bn}})}return 1}function se(ue){return!!ue.parent&&To(ue.parent)&&Ml(ue.parent.parent)&&(uN(ue.kind)||kg(ue))}function ke(ue){if(ue){let We=ue.parent;switch(ue.kind){case 21:case 28:return Ml(ue.parent)?ue.parent:void 0;default:if(se(ue))return We.parent}}}function st(ue){if(ue){let We,Ne=Fn(ue.parent,It=>di(It)?"quit":Fs(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=Ic(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||pt(Ne);case 19:return Ne===266;case 30:return Ne===263||Ne===231||Ne===264||Ne===265||EI(Ne);case 126:return Ne===172&&!di(We.parent);case 26:return Ne===169||!!We.parent&&We.parent.kind===207;case 125:case 123:case 124:return Ne===169&&!Ml(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,Oi)&&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 Yo(ue.parent)&&!Kl(ue.parent)}if(pB(oQ(ue))&&lQ(ue)||se(ue)&&(!Fe(ue)||uN(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 jo(ue.parent)}if(Fn(ue.parent,di)&&ue===K&&He(ue,o))return!1;let Dt=uE(ue.parent,172);if(Dt&&ue!==K&&di(K.parent.parent)&&o<=K.end){if(He(ue,K.end))return!1;if(ue.kind!==64&&(Iw(Dt)||yF(Dt)))return!0}return kg(ue)&&!Zu(ue.parent)&&!M_(ue.parent)&&!((di(ue.parent)||mu(ue.parent)||ml(ue.parent))&&(ue!==K||o>K.end))}function He(ue,We){return ue.kind!==64&&(ue.kind===27||!Sf(ue.end,We,r))}function pt(ue){return EI(ue)&&ue!==176}function Bt(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&&!tO(ue,r,m)}function dn(ue,We){if(We.length===0)return ue;let Ne=new Set,It=new Set;for(let Kt of We){if(Kt.kind!==303&&Kt.kind!==304&&Kt.kind!==208&&Kt.kind!==174&&Kt.kind!==177&&Kt.kind!==178&&Kt.kind!==305||H(Kt))continue;let En;if(Vy(Kt))un(Kt,Ne);else if(Xa(Kt)&&Kt.propertyName)Kt.propertyName.kind===80&&(En=Kt.propertyName.escapedText);else{let wn=No(Kt);En=wn&&T_(wn)?CN(wn):void 0}En!==void 0&&It.add(En)}let Dt=ue.filter(Kt=>!It.has(Kt.escapedName));return Me(Ne,Dt),Dt}function un(ue,We){let Ne=ue.expression,It=m.getSymbolAtLocation(Ne),Dt=It&&m.getTypeOfSymbolAtLocation(It,Ne),Kt=Dt&&Dt.properties;Kt&&Kt.forEach(En=>{We.add(En.name)})}function U(){ve.forEach(ue=>{if(ue.flags&16777216){let We=ba(ue);Le[We]=Le[We]??Fd.OptionalMember}})}function Me(ue,We){if(ue.size!==0)for(let Ne of We)ue.has(Ne.name)&&(Le[ba(Ne)]=Fd.MemberDeclaredBySpreadAssignment)}function Nt(ue){for(let We=ue;We!It.has(Dt.escapedName)&&!!Dt.declarations&&!(Tf(Dt)&2)&&!(Dt.valueDeclaration&&su(Dt.valueDeclaration)))}function ie(ue,We){let Ne=new Set,It=new Set;for(let Kt of We)H(Kt)||(Kt.kind===291?Ne.add(rP(Kt.name)):s1(Kt)&&un(Kt,It));let Dt=ue.filter(Kt=>!Ne.has(Kt.escapedName));return Me(It,Dt),Dt}function H(ue){return ue.getStart(r)<=o&&o<=ue.getEnd()}}function ZZe(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(La(o)||tm(o))return o;break;case 42:return Kl(o)?ri(o.parent,La):void 0;case 134:return ri(o.parent,La);case 80:if(e.text==="async"&&Zu(e.parent))return e.parent.parent;{if(La(e.parent.parent)&&(Vy(e.parent)||Zu(e.parent)&&ys(r,e.getEnd()).line!==ys(r,t).line))return e.parent.parent;let l=Fn(o,hc);if(l?.getLastToken(r)===e&&La(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Kl(o.parent)||Qp(o.parent)||hp(o.parent))&&La(o.parent.parent))return o.parent.parent;if(Vy(o)&&La(o.parent))return o.parent;let s=Fn(o,hc);if(e.kind!==59&&s?.getLastToken(r)===e&&La(s.parent))return s.parent}}}function rQ(e,t){let r=Ic(e,t);return r&&e<=r.end&&(Jh(r)||Wu(r.kind))?{contextToken:Ic(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function hLe(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(R.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"&&gR(d)||d,{symbol:d,origin:VZe(t,e,l)}):void 0}function iQ(e,t,r,i,o){if(AZe(r))return;let s=bZe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&P2(s.charCodeAt(0))||$2(e))return;let l={name:s,needsConvertPropertyAccess:!1};if(Yp(s,t,o?1:0)||e.valueDeclaration&&su(e.valueDeclaration))return l;switch(i){case 3:return vme(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:R.assertNever(i)}}function gLe(e,t){if(!t)return yLe(e);let r=e+8+1;return fB[r]||(fB[r]=yLe(e).filter(i=>!eet(v0(i.name))))}function yLe(e){return fB[e]||(fB[e]=Lme().filter(t=>{let r=v0(t.name);switch(e){case 0:return!1;case 1:return bLe(r)||r===138||r===144||r===156||r===145||r===128||nM(r)&&r!==157;case 5:return bLe(r);case 2:return pB(r);case 3:return vLe(r);case 4:return uN(r);case 6:return nM(r)||r===87;case 7:return nM(r);case 8:return r===156;default:return R.assertNever(e)}}))}function eet(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 vLe(e){return e===148}function pB(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 bLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!n6(e)&&!pB(e)}function oQ(e){return Fe(e)?tE(e)??0:e.kind}function tet(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(kc(o)||$l(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:da(132),kind:"keyword",kindModifiers:"",sortText:Fd.GlobalsOrKeywords})}return r}function net(e,t){return Fn(e,r=>jx(r)&&$w(r,t)?!0:Ym(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=ret(s,r,i);return s.isClass()&&ELe(l)?[]:o?Vr(l,d):l;function d(p){return Nn(p.declarations)?gt(p.declarations,h=>h.parent!==r):!0}}function ret(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Vr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&ELe(i.getApparentProperties())))):e.getApparentProperties()}function ELe(e){return gt(e,t=>!!(Tf(t)&6))}function sQ(e,t){return e.isUnion()?R.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):R.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function iet(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,OI);case 1:let o=ri(Qs(ta(r.parent,Yi).statements),OI);if(o&&!gs(o,20,e))return o;break;case 81:if(ri(r.parent,jo))return Fn(r,di);break;case 80:{if(tE(r)||jo(r.parent)&&r.parent.initializer===r)return;if(lQ(r))return Fn(r,OI)}}if(t){if(r.kind===137||Fe(t)&&jo(t.parent)&&di(r))return Fn(t,di);switch(t.kind){case 64:return;case 27:case 20:return lQ(r)&&r.parent.name===r?r.parent.parent:ri(r,OI);case 19:case 28:return ri(t.parent,OI);default:if(OI(r)){if(ys(e,t.getEnd()).line!==ys(e,i).line)return r;let o=di(t.parent.parent)?pB:vLe;return o(t.kind)||t.kind===42||Fe(t)&&o(tE(t)??0)?t.parent.parent:void 0}return}}}function oet(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 SLe(e,t){if(!e)return;if(ji(e)&&vF(e.parent))return t.getTypeArgumentConstraint(e);let r=SLe(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&&uF(e.parent)&&OI(e.parent.parent)}function aet(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Mde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ki(r)&&!!sd(r);case"<":return!!r&&r.kind===30&&(!pr(r.parent)||TLe(r.parent));case"/":return!!r&&(ss(r)?!!B2(r):r.kind===44&&q0(r.parent));case" ":return!!r&&fP(r)&&r.parent.kind===312;default:return R.assertNever(t)}}function TLe({left:e}){return Bl(e)}function set(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 cet(e){return!!(e.valueDeclaration&&du(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function det(e,t){let r=t.getContextualType(e);if(r)return r;let i=Ly(e.parent);if(pr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ht(i))return t.getContextualType(i)}function ALe(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,kc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(d,nd))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&xLe(d,e),replacementSpan:uet(d)};function p(){let h=e.parent;if(nd(h)){let m=h.getLastToken(t);if(Fe(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Rme(h.moduleReference)?h:void 0}if(xLe(h,e)&&RLe(h.parent))return h;if(zg(h)||$v(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),RLe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if($l(h)&&e.kind===42||xf(h)&&e.kind===20){l=!0,s=161;return}if(fP(e)&&Yi(h))return s=156,e;if(fP(e)&&kc(h))return s=156,Rme(h.moduleSpecifier)?h:void 0}}function uet(e){var t;if(!e)return;let r=Fn(e,Um(kc,nd))??e,i=r.getSourceFile();if(RT(r,i))return Ru(r,i);R.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?ILe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(RT(s,i))return nb(s)}function ILe(e){var t;return Gr((t=ri(e,zg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&PI(r.name.text)&&((i=Ic(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function xLe(e,t){return Qu(e)&&(e.isTypeOnly||t===e.name&&Xz(t))}function RLe(e){if(!Rme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(zg(e)){let t=ILe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Rme(e){var t;return Bl(e)?!0:!((t=ri(bh(e)?e.expression:e,ss))!=null&&t.text)}function pet(e,t){if(!e)return;let r=Fn(e,o=>D0(o)||DLe(o)||$o(o)?"quit":(To(o)||ml(o))&&!j0(o.parent)),i=Fn(t,o=>D0(o)||DLe(o)||$o(o)?"quit":Oi(o));return r||i}function DLe(e){return e.parent&&zs(e.parent)&&(e.parent.body===e||e.kind===39)}function Dme(e,t,r=new Map){return i(e)||i(bd(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=>Dme(s,t,r))}}function fet(e,t){let r=bd(e,t).declarations;return!!Nn(r)&&oo(r,_7)}function CLe(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))(Nme||{}),Pme=(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))(Pme||{}),Mme=(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))(Mme||{}),fB=[],Lme=Eu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:da(t),kind:"keyword",kindModifiers:"",sortText:Fd.GlobalsOrKeywords});return e})}});function kme(){let e=new Map;function t(r){let i=e.get(r.name);(!i||zme[i.kind]({name:eg(S.value,y),kindModifiers:"",kind:"string",sortText:Fd.LocationPriority,replacementSpan:Oq(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return R.assertNever(e)}}function vet(e,t,r,i,o,s,l,d){if(!i||!ss(i))return;let p=MLe(t,i,r,o,s,d);return p&&bet(e,i,p,t,o.getTypeChecker(),l)}function bet(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Gr(r.paths,d=>d.name===e);return l&&uB(e,PLe(l.extension),l.kind,[af(e)])}case 1:{let l=Gr(r.symbols,d=>d.name===e);return l&&Ime(l,l.name,o,i,t,s)}case 2:return Gr(r.types,l=>l.value===e)?uB(e,"","string",[af(e)]):void 0;default:return R.assertNever(r)}}function NLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:PLe(d),sortText:Fd.LocationPriority,replacementSpan:l}))}}function PLe(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 R.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return R.assertNever(e)}}function MLe(e,t,r,i,o,s){let l=i.getTypeChecker(),d=wme(t.parent);switch(d.kind){case 201:{let S=wme(d.parent);return S.kind===205?{kind:0,paths:wLe(e,t,i,o,s)}:p(S)}case 303:return La(d.parent)&&d.name===t?Aet(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===ms(A)?LLe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!Fet(t)&&!Op(d)){let S=XO.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&Tet(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:wLe(e,t,i,o,s)};case 296:let m=y7(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 $w(y,r)?LLe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(wme(m.parent));if(!S)return;let A=Eet(m,d);return S.kind===1?{kind:1,symbols:S.symbols.filter(N=>!zo(A,N.name)),hasIndexSignature:S.hasIndexSignature}:{kind:2,types:S.types.filter(N=>!zo(A,N.value)),isNewIdentifier:!1}}default:return}}function h(m=4){let y=dQ(o7(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function wme(e){switch(e.kind){case 196:return H2(e);case 217:return Ly(e);default:return e}}function Eet(e,t){return to(e.types,r=>r!==t&&qv(r)&&Ca(r.literal)?r.literal.text:void 0)}function Tet(e,t,r,i){let o=!1,s=new Map,l=lu(e)?R.checkDefined(Fn(t.parent,M_)):t,d=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=va(d,h=>{if(!Xd(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(lu(e)){let y=i.getTypeOfPropertyOfType(m,gk(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 LLe(e){return e&&{kind:1,symbols:Vr(e.getApparentProperties(),t=>!(t.valueDeclaration&&su(t.valueDeclaration))),hasIndexSignature:iX(e)}}function Aet(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 yM(e,t,r){return{name:e,kind:t,extension:r}}function Ome(e){return yM(e,"directory",void 0)}function kLe(e,t,r){let i=Oet(e,t),o=e.length===0?void 0:yd(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(rl)||s.includes(VL)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function wLe(e,t,r,i,o){return kLe(t.text,t.getStart(e)+1,Iet(e,t,r,i,o))}function Iet(e,t,r,i,o){let s=Md(t.text),l=ss(t)?r.getModeForUsageLocation(e,t):void 0,d=e.path,p=oi(d),h=r.getCompilerOptions(),m=r.getTypeChecker(),y=Wme(h,1,e,m,o,l);return Wet(s)||!h.baseUrl&&!h.paths&&(cp(s)||Nne(s))?xet(s,p,h,i,d,y):Net(s,p,l,h,i,y,m)}function Wme(e,t,r,i,o,s){return{extensionsToSearch:pm(Ret(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function xet(e,t,r,i,o,s){return r.rootDirs?Cet(r.rootDirs,e,t,s,r,i,o):Oo(UO(e,t,s,i,!0,o).values())}function Ret(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=[...KN(e),r],o=pu(e);return Yz(o)?dk(e,i):i}function Det(e,t,r,i){e=e.map(s=>Bc(ma(cp(s)?s:Yr(t,s))));let o=zl(e,s=>mm(s,r,t,i)?r.substr(s.length):void 0);return h0([...e.map(s=>Yr(s,o)),r].map(s=>Yb(s)),nT,jd)}function Cet(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=Det(e,d,r,p);return h0(va(h,m=>Oo(UO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function UO(e,t,r,i,o,s,l=kme()){var d;e===void 0&&(e=""),e=Md(e),Ry(e)||(e=oi(e)),e===""&&(e="."+rl),e=Bc(e);let p=xv(t,e),h=Ry(p)?p:oi(p);if(!o){let S=kde(h,i);if(S){let N=zN(S,i).typesVersions;if(typeof N=="object"){let D=(d=v3(N))==null?void 0:d.paths;if(D){let w=oi(S),j=p.slice(Bc(w).length);if(WLe(l,j,w,r,i,D))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!d7(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}=OLe(ic(S),i.getCompilationSettings(),r,!1);l.add(yM(A,"script",N))}let E=c7(i,h);if(E)for(let S of E){let A=ic(ma(S));A!=="@types"&&l.add(Ome(A))}return l}function OLe(e,t,r,i){let o=nS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Wg(o)};if(r.referenceKind===0)return{name:e,extension:Wg(e)};let s=Ew({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(d=>d!==0&&d!==1)),s[0]===3){if(Sc(e,Sk))return{name:e,extension:Wg(e)};let d=nS.tryGetJSExtensionForFile(e,t);return d?{name:fE(e,d),extension:d}:{name:e,extension:Wg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Sc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Tu(e),extension:Wg(e)};let l=nS.tryGetJSExtensionForFile(e,t);return l?{name:fE(e,l),extension:l}:{name:e,extension:Wg(e)}}function WLe(e,t,r,i,o,s){let l=p=>s[p],d=(p,h)=>{let m=SR(p),y=SR(h),E=typeof m=="object"?m.prefix.length:p.length,S=typeof y=="object"?y.prefix.length:h.length;return el(S,E)};return FLe(e,!1,t,r,i,o,Uh(s),l,d)}function FLe(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=SR(E);if(!A)continue;let N=typeof A=="object"&&SW(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:Pet(E,S,r,i,o,t&&N,s).map(({name:w,kind:j,extension:K})=>yM(w,j,K))})}}return h.forEach(y=>y.results.forEach(E=>e.add(E))),m!==void 0}function Net(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=kme(),m=pu(i);if(d){let E=ma(Yr(o.getCurrentDirectory(),d));UO(e,E,s,o,!1,void 0,h)}if(p){let E=c6(i,o);WLe(h,e,E,s,o,p)}let y=BLe(e);for(let E of Let(e,y,l))h.add(yM(E,"external module name",void 0));if(jLe(o,i,t,y,s,h),Yz(m)){let E=!1;if(y===void 0)for(let S of wet(o,t)){let A=yM(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");d7(o,N)&&UO(e,N,s,o,!1,void 0,h)};if(y&&$6(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(mO(o,K)){let B=zN(K,o).exports;if(B){if(typeof B!="object"||B===null)return;let ce=Uh(B),z=D.join("/")+(D.length&&Ry(e)?"/":""),ee=Zv(i,r);FLe(h,!0,z,j,s,o,ce,me=>mI(zLe(B[me],ee)),dK);return}}return A(N)}}hm(t,S)}}return Oo(h.values())}function zLe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!So(e)){for(let r in e)if(r==="default"||t.includes(r)||vw(t,r)){let i=e[r];return zLe(i,t)}}}function BLe(e){return Fme(e)?Ry(e)?e:oi(e):void 0}function Pet(e,t,r,i,o,s,l){if(!Sl(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=GLe("",i,y,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return va(t,m=>GLe(p,i,m,o,s,l));function h(m,y){return ao(m,r)?[{name:Yb(m),kind:y,extension:void 0}]:Xe}}function GLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=SR(r);if(l===void 0||Co(l))return;let d=xv(l.prefix),p=Ry(l.prefix)?d:oi(d),h=Ry(l.prefix)?"":ic(d),m=Fme(e),y=m?Ry(e)?e:oi(e):void 0,E=m?Yr(p,h+y):p,S=ma(l.suffix),A=S&&l6("_"+S),N=A?[fE(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(Fme(z))return Ome(zc(VLe(z))[1]);let{name:ee,extension:me}=OLe(z,s.getCompilationSettings(),i,o);return yM(ee,"script",me)}}),Y=S?Xe:to(c7(s,D),ce=>ce==="node_modules"?void 0:Ome(ce));return[...K,...Y];function B(ce){return zl(N,z=>{let ee=Met(ma(ce),w,z);return ee===void 0?void 0:VLe(ee)})}}function Met(e,t,r){return ao(e,t)&&Sl(e,r)?e.slice(t.length,e.length-r.length):void 0}function VLe(e){return e[0]===rl?e.slice(1):e}function Let(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=>qC(l,s))}return o}function ket(e,t,r,i){let o=so(e,t),s=Hh(e.text,o.pos),l=s&&Gr(s,A=>t>=A.pos&&t<=A.end);if(!l)return;let d=e.text.slice(l.pos,t),p=ULe.exec(d);if(!p)return;let[,h,m,y]=p,E=oi(e.path),S=m==="path"?UO(y,E,Wme(r,0,e),i,!0,e.path):m==="types"?jLe(i,r,E,BLe(y),Wme(r,1,e)):R.fail();return kLe(y,l.pos+h.length,Oo(S.values()))}function jLe(e,t,r,i,o,s=kme()){let l=new Map,d=u7(()=>MP(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(d7(e,h))for(let m of c7(e,h)){let y=bw(m);if(!(t.types&&!zo(t.types,y)))if(i===void 0)l.has(y)||(s.add(yM(y,"external module name",void 0)),l.set(y,!0));else{let E=Yr(h,m),S=aU(i,y,ky(e));S!==void 0&&UO(S,E,o,e,!1,void 0,s)}}}}function wet(e,t){if(!e.readFile||!e.fileExists)return Xe;let r=[];for(let i of sX(t,e)){let o=zN(i,e);for(let s of HLe){let l=o[s];if(l)for(let d in l)Is(l,d)&&!ao(d,"@types/")&&r.push(d)}}return r}function Oet(e,t){let r=Math.max(e.lastIndexOf(rl),e.lastIndexOf(VL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||Yp(e.substr(i,o),99)?void 0:yd(t+i,o)}function Wet(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 Fme(e){return e.includes(rl)}function Fet(e){return ra(e.parent)&&Yc(e.parent.arguments)===e&&Fe(e.parent.expression)&&e.parent.expression.escapedText==="require"}var zme,ULe,HLe,zet=bt({"src/services/stringCompletions.ts"(){"use strict";Gse(),ai(),Bme(),zme={directory:0,script:1,"external module name":2},ULe=/^(\/\/\/\s*vet,getStringLiteralCompletions:()=>get});var Bet=bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";zet()}}),P1={};Ra(P1,{CompletionKind:()=>Mme,CompletionSource:()=>Nme,SortText:()=>Fd,StringCompletions:()=>uQ,SymbolOriginInfoKind:()=>Pme,createCompletionDetails:()=>uB,createCompletionDetailsForSymbol:()=>Ime,getCompletionEntriesFromSymbols:()=>Tme,getCompletionEntryDetails:()=>JZe,getCompletionEntrySymbol:()=>XZe,getCompletionsAtPosition:()=>IZe,getPropertiesForObjectExpression:()=>aQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Cme,moduleSpecifierResolutionLimit:()=>cQ});var Bme=bt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";het(),Bet()}});function Gme(e,t,r,i){let o=Uet(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=Get(e,t,o,l,r,i);return{indirectUsers:h,...Vet(p,s,l.exportKind,r,d)}}}function Get(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let d=E1(),p=E1(),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)I0(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:ee}=z;if(ee.kind===80){h.push(ee);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&&RI(B)&&w(mB(B));break;case 278:B.exportClause?B.exportClause.kind===280?w(mB(B),!0):h.push(B):S(Xet(B,s));break;case 205:!m&&B.isTypeOf&&!B.qualifier&&N(B)&&w(B.getSourceFile(),!0),h.push(B);break;default:R.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,XI))}function D(K,Y,B,ce){if(o===2)ce||h.push(K);else if(!m){let z=mB(K);R.assert(z.kind===312||z.kind===267),B||jet(z,Y,s)?w(z,!0):w(z)}}function w(K,Y=!1){if(R.assert(!m),!p(K)||(y.push(K),!Y))return;let ce=s.getMergedSymbol(K.symbol);if(!ce)return;R.assert(!!(ce.flags&1536));let z=j(ce);if(z)for(let ee of z)og(ee)||w(mB(ee),!0)}function j(K){return r.get(ba(K).toString())}}function Vet(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){jme(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:R.assertNever(A)}if(S&&(r===1||r===2)&&(!o||S.escapedText===Qz(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 jet(e,t,r){let i=r.getSymbolAtLocation(t);return!!JLe(e,o=>{if(!$l(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&xf(s)&&s.elements.some(d=>r.getExportSpecifierLocalTargetSymbol(d)===i)})}function KLe(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})}}qLe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(qs(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Uet(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),qLe(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 JLe(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 qLe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(AN(r),r);else JLe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&Ca(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;jme(i)&&t(i,i.moduleReference.expression);break}}})}function XLe(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)&&pr(m)?E(m,!1):void 0:l(t.exportSymbol,d(h));{let S=Ket(h,e);if(S&&$r(S,32))return nd(S)&&S.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(S.name)}:l(t,d(S));if(vh(h))return l(t,0);if(kl(h))return y(h);if(kl(m))return y(m);if(pr(h))return E(h,!0);if(pr(m))return E(m,!0);if(GT(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(Gl(S)){case 1:N=0;break;case 2:N=2;break;default:return}let D=A?r.getSymbolAtLocation(tU(ta(S.left,Ls))):t;return D&&l(D,N)}}function s(){if(!Jet(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=qet(h,r),h.escapedName==="export="&&(h=Het(h,r),h===void 0)))return;let m=Qz(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){let m=Vme(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return $r(p,2048)?1:0}}function Het(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=R.checkDefined(e.valueDeclaration);if(kl(o))return(r=ri(o.expression,b_))==null?void 0:r.symbol;if(pr(o))return(i=ri(o.right,b_))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function Ket(e,t){let r=Oi(e)?e:Xa(e)?Ox(e):void 0;return r?e.name!==t||$0(r.parent)?void 0:Ll(r.parent.parent)?r.parent.parent:void 0:e}function Jet(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&jme(t);case 276:return!t.propertyName;case 273:case 274:return R.assert(t.name===e),!0;case 208:return or(e)&&C0(t.parent.parent);default:return!1}}function Vme(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return iO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function qet(e,t){if(e.declarations)for(let r of e.declarations){if(Jd(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(kr(r)&&Qh(r.expression)&&!Ki(r.name))return t.getSymbolAtLocation(r);if(Zu(r)&&pr(r.parent.parent)&&Gl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Xet(e,t){return t.getMergedSymbol(mB(e).symbol)}function mB(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(R.assert(t.kind===268),ta(t.parent,pQ))}function pQ(e){return e.kind===267&&e.name.kind===11}function jme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Ume,Hme,Yet=bt({"src/services/importTracker.ts"(){"use strict";ai(),Ume=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Ume||{}),Hme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Hme||{})}});function cg(e,t=1){return{kind:t,node:e.name||e,context:$et(e)}}function Kme(e){return e&&e.kind===void 0}function $et(e){if(Kd(e))return nA(e);if(e.parent){if(!Kd(e.parent)&&!kl(e.parent)){if(or(e)){let r=pr(e.parent)?e.parent:Ls(e.parent)&&pr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Gl(r)!==0)return nA(r)}if(P_(e.parent)||q0(e.parent))return e.parent.parent;if(FT(e.parent)||J0(e.parent)||lN(e.parent))return e.parent;if(ss(e)){let r=B2(e);if(r){let i=Fn(r,o=>Kd(o)||Hi(o)||jx(o));return Kd(i)?nA(i):i}}let t=Fn(e,Ya);return t?nA(t.parent):void 0}if(e.parent.name===e||Ml(e.parent)||kl(e.parent)||(bI(e.parent)||Xa(e.parent))&&e.parent.propertyName===e||e.kind===90&&$r(e.parent,2080))return nA(e.parent)}}function nA(e){if(e)switch(e.kind){case 260:return!Uc(e.parent)||e.parent.declarations.length!==1?e:Ll(e.parent.parent)?e.parent.parent:Gx(e.parent.parent)?nA(e.parent.parent):e.parent;case 208:return nA(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 td(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Ky(e.parent)?nA(Fn(e.parent,t=>pr(t)||Gx(t))):e;case 255:return{start:Gr(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Jme(e,t,r){if(!r)return;let i=Kme(r)?hB(r.start,t,r.end):hB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function Qet(e,t,r,i,o){let s=zu(i,o),l={use:1},d=M1.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=M1.getAdjustedNode(s,l),m=Zet(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:to(d,({definition:y,references:E})=>y&&{definition:p.runWithCancellationToken(t,S=>ntt(y,S,s)),references:E.map(S=>itt(S,m))})}function Zet(e){return e.kind===90||!!IN(e)||J2(e)||e.kind===137&&Ml(e.parent)}function ett(e,t,r,i,o){let s=zu(i,o),l,d=YLe(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=DL(d),m=new Map;for(;!h.isEmpty();){let y=h.dequeue();if(!Em(m,is(y.node)))continue;l=Tn(l,y);let E=YLe(e,t,r,y.node,y.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return mn(l,h=>att(h,p))}function YLe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return M1.getReferenceEntriesForShorthandPropertyAssignment(i,s,d=>l.push(cg(d))),l}else if(i.kind===108||Ou(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[cg(l.valueDeclaration)]}else return $Le(o,i,e,r,t,{implementations:!0,use:1})}function ttt(e,t,r,i,o,s,l){return mn(QLe(M1.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function $Le(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return QLe(M1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function QLe(e){return e&&va(e,t=>t.references)}function ntt(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:y,kind:E}=ZLe(m,t,r),S=y.map(D=>D.text).join(""),A=m.declarations&&Yc(m.declarations),N=A?No(A)||A:r;return{..._B(N),name:S,kind:E,displayParts:y,context:nA(A)}}case 1:{let{node:m}=e;return{..._B(m),name:m.text,kind:"label",displayParts:[ep(m.text,17)]}}case 2:{let{node:m}=e,y=da(m.kind);return{..._B(m),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{let{node:m}=e,y=t.getSymbolAtLocation(m),E=y&&$y.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,m.getSourceFile(),$T(m),m).displayParts||[af("this")];return{..._B(m),name:"this",kind:"var",displayParts:E}}case 4:{let{node:m}=e;return{..._B(m),name:m.text,kind:"var",displayParts:[ep(fc(m),8)]}}case 5:return{textSpan:nb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ep(`"${e.reference.fileName}"`,8)]};default:return R.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,...Jme(s,o,h)}}function _B(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:hB(Ya(e)?e.expression:e,t)}}function ZLe(e,t,r){let i=M1.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Yc(e.declarations)||r,{displayParts:s,symbolKind:l}=$y.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function rtt(e,t,r,i,o){return{...fQ(e),...i&&ott(e,t,r,o)}}function itt(e,t){let r=e2e(e);return t?{...r,isDefinition:e.kind!==0&&t2e(e.node,t)}:r}function e2e(e){let t=fQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:Xme(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=hB(e.node,t);return{textSpan:r,fileName:t.fileName,...Jme(r,t,e.context)}}}function ott(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||sO(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 La(y)&&pr(y.parent)&&Qh(y.parent.left)?h:m}else return h}else if(Qu(l)&&!l.propertyName){let h=Jd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return zo(h.declarations,l)?{prefixText:d+" as "}:Cf}else if(Jd(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)&&Ls(e.node.parent)){let o=Uq(i);return{prefixText:o,suffixText:o}}return Cf}function att(e,t){let r=fQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...stt(i,t)}}else return{...r,kind:"",displayParts:[]}}function stt(e,t){let r=t.getSymbolAtLocation(Kd(e)&&e.name?e.name:e);return r?ZLe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Yd(21),af("object literal"),Yd(22)]}:e.kind===231?{kind:"local class",displayParts:[Yd(21),af("anonymous local class"),Yd(22)]}:{kind:sS(e),displayParts:[]}}function ltt(e){let t=fQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=Xme(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 hB(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ss(e)&&o-i>2&&(R.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),pc(i,o)}function qme(e){return e.kind===0?e.textSpan:hB(e.node,e.node.getSourceFile())}function Xme(e){let t=IN(e);return!!t&&ctt(t)||e.kind===90||wI(e)}function t2e(e,t){var r;if(!t)return!1;let i=IN(e)||(e.kind===90?e.parent:J2(e)||e.kind===137&&Ml(e.parent)?e.parent.parent:void 0),o=i&&pr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function ctt(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!Ky(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||$0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return R.failBadSyntaxKind(e)}}var Yme,$me,Qme,M1,dtt=bt({"src/services/findAllReferences.ts"(){"use strict";ai(),Zme(),Yme=(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))(Yme||{}),$me=(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))($me||{}),Qme=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Qme||{}),(e=>{function t(Be,ct,lt,Rt,se,ke={},st=new Set(Rt.map(G=>G.fileName))){var G,et;if(ct=r(ct,ke),Yi(ct)){let un=CD.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,se);if(un)return un}let Tt=lt.getTypeChecker(),He=Tt.getSymbolAtLocation(Ml(ct)&&ct.parent.name||ct);if(!He){if(!ke.implementations&&ss(ct)){if(Zz(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 jr(ct,Rt,Tt,se)}return}if(He.escapedName==="export=")return h(lt,He.parent,!1,Rt,st);let pt=l(He,lt,Rt,se,ke,st);if(pt&&!(He.flags&33554432))return pt;let Bt=s(ct,He,Tt),hn=Bt&&l(Bt,lt,Rt,se,ke,st),dn=E(He,ct,Rt,st,Tt,se,ke);return d(lt,pt,dn,hn)}e.getReferencedSymbolsForNode=t;function r(Be,ct){return ct.use===1?Be=Cq(Be):ct.use===2&&(Be=Gz(Be)),Be}e.getAdjustedNode=r;function i(Be,ct,lt,Rt=new Set(lt.map(se=>se.fileName))){var se,ke;let st=(se=ct.getSourceFile(Be))==null?void 0:se.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,se=ct.get(Be.path)||Xe;for(let ke of se)if(xE(ke)){let st=lt.getSourceFileByPath(ke.file),G=qP(lt,ke);nD(G)&&(Rt=Tn(Rt,{kind:0,fileName:st.fileName,textSpan:nb(G)}))}return Rt}function s(Be,ct,lt){if(Be.parent&&Vk(Be.parent)){let Rt=lt.getAliasedSymbol(ct),se=lt.getMergedSymbol(Rt);if(Rt!==se)return se}}function l(Be,ct,lt,Rt,se,ke){let st=Be.flags&1536&&Be.declarations&&Gr(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=bd(G,Tt),d(ct,et,E(Be,void 0,lt,ke,Tt,Rt,se))}function d(Be,...ct){let lt;for(let Rt of ct)if(!(!Rt||!Rt.length)){if(!lt){lt=Rt;continue}for(let se of Rt){if(!se.definition||se.definition.type!==0){lt.push(se);continue}let ke=se.definition.symbol,st=ql(lt,et=>!!et.definition&&et.definition.type===0&&et.definition.symbol===ke);if(st===-1){lt.push(se);continue}let G=lt[st];lt[st]={definition:G.definition,references:G.references.concat(se.references).sort((et,Tt)=>{let He=p(Be,et),pt=p(Be,Tt);if(He!==pt)return el(He,pt);let Bt=qme(et),hn=qme(Tt);return Bt.start!==hn.start?el(Bt.start,hn.start):el(Bt.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,se){R.assert(!!ct.valueDeclaration);let ke=to(KLe(Be,Rt,ct),G=>{if(G.kind==="import"){let et=G.literal.parent;if(qv(et)){let Tt=ta(et.parent,og);if(lt&&!Tt.qualifier)return}return cg(G.literal)}else if(G.kind==="implicit"){let et=G.literal.text!==jv&&xP(G.referencingFile,Tt=>Tt.transformFlags&2?ag(Tt)||FT(Tt)||X0(Tt)?Tt:void 0:"skip")||G.referencingFile.statements[0]||G.referencingFile;return cg(et)}else return{kind:0,fileName:G.referencingFile.fileName,textSpan:nb(G.ref)}});if(ct.declarations)for(let G of ct.declarations)switch(G.kind){case 312:break;case 267:se.has(G.getSourceFile().fileName)&&ke.push(cg(G.name));break;default:R.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(se.has(et.fileName)){let Tt=pr(G)&&kr(G.left)?G.left.expression:kl(G)?R.checkDefined(gs(G,95,et)):No(G)||G;ke.push(cg(Tt))}}return ke.length?[{definition:{type:0,symbol:ct},references:ke}]:Xe}function m(Be){return Be.kind===148&<(Be.parent)&&Be.parent.operator===148}function y(Be,ct,lt){if(nM(Be.kind))return Be.kind===116&&n1(Be.parent)||Be.kind===148&&!m(Be)?void 0:Ce(ct,Be.kind,lt,Be.kind===148?m:void 0);if(Yx(Be.parent)&&Be.parent.name===Be)return he(ct,lt);if(YI(Be)&&Il(Be.parent))return[{definition:{type:2,node:Be},references:[cg(Be)]}];if(Yw(Be)){let Rt=wz(Be.parent,Be.text);return Rt&&fe(Rt.parent,Rt)}else if(bq(Be))return fe(Be.parent,Be);if(dD(Be))return Zn(Be,ct,lt);if(Be.kind===108)return Li(Be)}function E(Be,ct,lt,Rt,se,ke,st){let G=ct&&N(Be,ct,se,!kn(st))||Be,et=ct?yi(ct,G):7,Tt=[],He=new j(lt,Rt,ct?A(ct):0,se,ke,et,st,Tt),pt=!kn(st)||!G.declarations?void 0:Gr(G.declarations,Jd);if(pt)Et(pt.name,G,pt,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 Bt=He.createSearch(ct,G,void 0,{allSearchSymbols:ct?on(G,ct,se,st.use===2,!!st.providePrefixAndSuffixTextForRename,!!st.implementations):[G]});S(G,He,Bt)}return Tt}function S(Be,ct,lt){let Rt=me(Be);if(Rt)ve(Rt,Rt.getSourceFile(),lt,ct,!(Yi(Rt)&&!zo(ct.sourceFiles,Rt)));else for(let se of ct.sourceFiles)ct.cancellationToken.throwIfCancellationRequested(),z(se,lt,ct)}function A(Be){switch(Be.kind){case 176:case 137:return 1;case 80:if(di(Be.parent))return R.assert(Be.parent.name===Be),2;default:return 0}}function N(Be,ct,lt,Rt){let{parent:se}=ct;return Jd(se)&&Rt?be(ct,Be,se,lt):zl(Be.declarations,ke=>{if(!ke.parent){if(Be.flags&33554432)return;R.fail(`Unexpected symbol at ${R.formatSyntaxKind(ct.kind)}: ${R.formatSymbol(Be)}`)}return gp(ke.parent)&&Jv(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&&Gr(Be.declarations,lt=>!Yi(lt)&&!Yl(lt));return ct&&ct.symbol}class j{constructor(ct,lt,Rt,se,ke,st,G,et){this.sourceFiles=ct,this.sourceFilesSet=lt,this.specialSearchKind=Rt,this.checker=se,this.cancellationToken=ke,this.searchMeaning=st,this.options=G,this.result=et,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=E1(),this.markSeenReExportRHS=E1(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(ct){return this.sourceFilesSet.has(ct.fileName)}getImportSearches(ct,lt){return this.importTracker||(this.importTracker=Gme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ct,lt,this.options.use===2)}createSearch(ct,lt,Rt,se={}){let{text:ke=Yf(vl(gR(lt)||w(lt)||lt)),allSearchSymbols:st=[lt]}=se,G=fl(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=>zo(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})),(se,ke)=>Rt.push(cg(se,ke))}addStringOrCommentReference(ct,lt){this.result.push({definition:void 0,references:[{kind:0,fileName:ct,textSpan:lt}]})}markSearchedSymbols(ct,lt){let Rt=is(ct),se=this.sourceFileToSeenSymbols[Rt]||(this.sourceFileToSeenSymbols[Rt]=new Set),ke=!1;for(let st of lt)ke=Jb(se,ba(st))||ke;return ke}}function K(Be,ct,lt,Rt){let{importSearches:se,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 se)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,se,ke,st,G){let et=Gme(Be,new Set(Be.map(Bt=>Bt.fileName)),ct,lt),{importSearches:Tt,indirectUsers:He,singleReferences:pt}=et(Rt,{exportKind:st?1:0,exportingModuleSymbol:se},!1);for(let[Bt]of Tt)G(Bt);for(let Bt of pt)Fe(Bt)&&og(Bt.parent)&&G(Bt);for(let Bt of He)for(let hn of pe(Bt,st?"default":ke)){let dn=ct.getSymbolAtLocation(hn),un=gt(dn?.declarations,U=>!!ri(U,kl));Fe(hn)&&!bI(hn.parent)&&(dn===Rt||un)&&G(hn)}}e.eachExportReference=Y;function B(Be,ct){return Ie(Be,ct)?ct.options.use!==2?!0:Fe(Be)?!(bI(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 ee(Be,ct){return Ky(Be.parent.parent)?ct.getPropertySymbolOfDestructuringAssignment(Be):void 0}function me(Be){let{declarations:ct,flags:lt,parent:Rt,valueDeclaration:se}=Be;if(se&&(se.kind===218||se.kind===231))return se;if(!ct)return;if(lt&8196){let G=Gr(ct,et=>fp(et,2)||su(et));return G?uE(G,263):void 0}if(ct.some(sO))return;let ke=Rt&&!(Be.flags&262144);if(ke&&!(iO(Rt)&&!Rt.globalExports))return;let st;for(let G of ct){let et=$T(G);if(st&&st!==et||!et||et.kind===312&&!wp(et))return;if(st=et,ks(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,se=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,se)){if(!Fe(st)||st===Be||st.escapedText!==Be.escapedText)continue;let G=ct.getSymbolAtLocation(st);if(G===ke||ct.getShorthandAssignmentValueSymbol(st.parent)===ke||Jd(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 Vr(pe(ct,Be),se=>!!IN(se)).reduce((se,ke)=>{let st=Rt(ke);return!gt(se.declarationNames)||st===se.depth?(se.declarationNames.push(ke),se.depth=st):stHe===se)&&Rt(st,et))return!0}return!1}e.someSignatureUsage=re;function pe(Be,ct,lt=Be){return to(xe(Be,ct,lt),Rt=>{let se=zu(Be,Rt);return se===Be?void 0:se})}function xe(Be,ct,lt=Be){let Rt=[];if(!ct||!ct.length)return Rt;let se=Be.text,ke=se.length,st=ct.length,G=se.indexOf(ct,lt.pos);for(;G>=0&&!(G>lt.end);){let et=G+st;(G===0||!Qb(se.charCodeAt(G-1),99))&&(et===ke||!Qb(se.charCodeAt(et),99))&&Rt.push(G),G=se.indexOf(ct,G+st+1)}return Rt}function fe(Be,ct){let lt=Be.getSourceFile(),Rt=ct.text,se=to(pe(lt,Rt,Be),ke=>ke===ct||Yw(ke)&&wz(ke,Rt)===ct?cg(ke):void 0);return[{definition:{type:1,node:ct},references:se}]}function ne(Be,ct){switch(Be.kind){case 81:if(yE(Be.parent))return!0;case 80:return Be.text.length===ct.length;case 15:case 11:{let lt=Be;return(Oz(lt)||Aq(Be)||ede(Be)||ra(Be.parent)&&vT(Be.parent)&&Be.parent.arguments[1]===Be)&<.text.length===ct.length}case 9:return Oz(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),se=>{let ke=se.parent;if(Yx(ke))return cg(ke)})));return lt.length?[{definition:{type:2,node:lt[0].node},references:lt}]:void 0}function Ce(Be,ct,lt,Rt){let se=va(Be,ke=>(lt.throwIfCancellationRequested(),to(pe(ke,da(ct),ke),st=>{if(st.kind===ct&&(!Rt||Rt(st)))return cg(st)})));return se.length?[{definition:{type:2,node:se[0].node},references:se}]: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,se){if(Rt.markSearchedSymbols(ct,lt.allSearchSymbols))for(let ke of xe(ct,lt.text,Be))De(ct,ke,lt,Rt,se)}function Ie(Be,ct){return!!(YT(Be)&ct.searchMeaning)}function De(Be,ct,lt,Rt,se){let ke=zu(Be,ct);if(!ne(ke,lt.text)){!Rt.options.implementations&&(Rt.options.findInStrings&&b1(Be,ct)||Rt.options.findInComments&&mde(Be,ct))&&Rt.addStringOrCommentReference(Be.fileName,yd(ct,lt.text.length));return}if(!Ie(ke,Rt))return;let st=Rt.checker.getSymbolAtLocation(ke);if(!st)return;let G=ke.parent;if(Qu(G)&&G.propertyName===ke)return;if(Jd(G)){R.assert(ke.kind===80),Et(ke,st,G,lt,Rt,se);return}if(cN(G)&&G.isNameFirst&&G.typeExpression&&BT(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:se&&_t(ke,et,Rt);break;case 1:Je(ke,Be,lt,Rt);break;case 2:ft(ke,lt,Rt);break;default:R.assertNever(Rt.specialSearchKind)}or(ke)&&Xa(ke.parent)&&C0(ke.parent.parent.parent)&&(st=ke.parent.symbol,!st)||tt(ke,st,lt,Rt)}function Le(Be,ct,lt,Rt){let se=Rt.referenceAdder(lt.symbol);_t(ct,lt.symbol,Rt),gn(Be,ke=>{Au(ke.name)&&se(ke.name.left)})}function Et(Be,ct,lt,Rt,se,ke,st){R.assert(!st||!!se.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:G,propertyName:et,name:Tt}=lt,He=G.parent,pt=be(Be,ct,lt,se.checker);if(!st&&!Rt.includes(pt))return;if(et?Be===et?(He.moduleSpecifier||Bt(),ke&&se.options.use!==2&&se.markSeenReExportRHS(Tt)&&_t(Tt,R.checkDefined(lt.symbol),se)):se.markSeenReExportRHS(Be)&&Bt():se.options.use===2&&Tt.escapedText==="default"||Bt(),!kn(se.options)||st){let dn=Be.escapedText==="default"||lt.name.escapedText==="default"?1:0,un=R.checkDefined(lt.symbol),U=Vme(un,dn,se.checker);U&&K(Be,un,U,se)}if(Rt.comingFrom!==1&&He.moduleSpecifier&&!et&&!kn(se.options)){let hn=se.checker.getExportSpecifierLocalTargetSymbol(lt);hn&&ce(hn,se)}function Bt(){ke&&_t(Be,pt,se)}}function be(Be,ct,lt,Rt){return ze(Be,lt)&&Rt.getExportSpecifierLocalTargetSymbol(lt)||ct}function ze(Be,ct){let{parent:lt,propertyName:Rt,name:se}=ct;return R.assert(Rt===Be||se===Be),Rt?Rt===Be:!lt.parent.moduleSpecifier}function tt(Be,ct,lt,Rt){let se=XLe(Be,ct,Rt.checker,lt.comingFrom===1);if(!se)return;let{symbol:ke}=se;se.kind===0?kn(Rt.options)||ce(ke,Rt):K(Be,ke,se.exportInfo,Rt)}function Wt({flags:Be,valueDeclaration:ct},lt,Rt){let se=Rt.checker.getShorthandAssignmentValueSymbol(ct),ke=ct&&No(ct);!(Be&33554432)&&ke&<.includes(se)&&_t(ke,se,Rt)}function _t(Be,ct,lt){let{kind:Rt,symbol:se}="kind"in ct?ct:{kind:void 0,symbol:ct};if(lt.options.use===2&&Be.kind===90)return;let ke=lt.referenceAdder(se);lt.options.implementations?Yt(Be,ke,lt):ke(Be,Rt)}function Je(Be,ct,lt,Rt){ZP(Be)&&_t(Be,lt.symbol,Rt);let se=()=>Rt.referenceAdder(lt.symbol);if(di(Be.parent))R.assert(Be.kind===90||Be.parent.name===Be),Zt(lt.symbol,ct,se());else{let ke=Ba(Be);ke&&(Dn(ke,se()),pn(ke,Rt))}}function ft(Be,ct,lt){_t(Be,ct.symbol,lt);let Rt=Be.parent;if(lt.options.use===2||!di(Rt))return;R.assert(Rt.name===Be);let se=lt.referenceAdder(ct.symbol);for(let ke of Rt.members)SI(ke)&&na(ke)&&ke.body&&ke.body.forEachChild(function st(G){G.kind===110?se(G):!Yo(G)&&!di(G)&&G.forEachChild(st)})}function Zt(Be,ct,lt){let Rt=en(Be);if(Rt&&Rt.declarations)for(let se of Rt.declarations){let ke=gs(se,137,ct);R.assert(se.kind===176&&!!ke),lt(ke)}Be.exports&&Be.exports.forEach(se=>{let ke=se.valueDeclaration;if(ke&&ke.kind===174){let st=ke.body;st&&ua(st,110,G=>{ZP(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){R.assert(Rt.kind===176);let se=Rt.body;se&&ua(se,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 Yt(Be,ct,lt){if(kg(Be)&&$i(Be.parent)){ct(Be);return}if(Be.kind!==80)return;Be.parent.kind===304&&Ao(Be,lt.checker,ct);let Rt=qt(Be);if(Rt){ct(Rt);return}let se=Fn(Be,G=>!Au(G.parent)&&!ji(G.parent)&&!dT(G.parent)),ke=se.parent;if(yF(ke)&&ke.type===se&<.markSeenContainingTypeReference(ke))if(kv(ke))st(ke.initializer);else if(Yo(ke)&&ke.body){let G=ke.body;G.kind===241?R0(G,et=>{et.expression&&st(et.expression)}):st(G)}else uT(ke)&&st(ke.expression);function st(G){hi(G)&&ct(G)}}function qt(Be){return Fe(Be)||kr(Be)?qt(Be.parent):Gy(Be)?ri(Be.parent.parent,Um(di,mu)):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 se=ba(Be)+","+ba(ct),ke=lt.get(se);if(ke!==void 0)return ke;lt.set(se,!1);let st=!!Be.declarations&&Be.declarations.some(G=>xN(G).some(et=>{let Tt=Rt.getTypeAtLocation(et);return!!Tt&&!!Tt.symbol&&uo(Tt.symbol,ct,lt,Rt)}));return lt.set(se,st),st}function Li(Be){let ct=x2(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&=zv(ct),ct=ct.parent;break;default:return}let Rt=ct.getSourceFile(),se=to(pe(Rt,"super",ct),ke=>{if(ke.kind!==108)return;let st=x2(ke,!1);return st&&na(st)===!!lt&&st.parent.symbol===ct.symbol?cg(ke):void 0});return[{definition:{type:0,symbol:ct.symbol},references:se}]}function Eo(Be){return Be.kind===80&&Be.parent.kind===169&&Be.parent.name===Be}function Zn(Be,ct,lt){let Rt=wu(Be,!1,!1),se=256;switch(Rt.kind){case 174:case 173:if(bm(Rt)){se&=zv(Rt),Rt=Rt.parent;break}case 172:case 171:case 176:case 177:case 178:se&=zv(Rt),Rt=Rt.parent;break;case 312:if(sc(Rt)||Eo(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(!dD(et))return!1;let Tt=wu(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&&na(Tt)===!!se;case 312:return Tt.kind===312&&!sc(Tt)&&!Eo(et)}}))).map(G=>cg(G));return[{definition:{type:3,node:zl(ke,G=>To(G.node.parent)?G.node:void 0)||Be},references:ke}]}function jr(Be,ct,lt,Rt){let se=Bz(Be,lt),ke=va(ct,st=>(Rt.throwIfCancellationRequested(),to(pe(st,Be.text),G=>{if(ss(G)&&G.text===Be.text)if(se){let et=Bz(G,lt);if(se!==lt.getStringType()&&(se===et||Sr(G,lt)))return cg(G,2)}else return JI(G)&&!RT(G,st)?void 0:cg(G,2)})));return[{definition:{type:4,node:Be},references:ke}]}function Sr(Be,ct){if(_p(Be.parent))return ct.getPropertyOfType(ct.getTypeAtLocation(Be.parent.parent),Be.text)}function on(Be,ct,lt,Rt,se,ke){let st=[];return $e(Be,ct,lt,Rt,!(Rt&&se),(G,et,Tt)=>{Tt&&In(Be)!==In(Tt)&&(Tt=void 0),st.push(Tt||et||G)},()=>!ke),st}function $e(Be,ct,lt,Rt,se,ke,st){let G=kO(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&&zl(X7(G,lt,un,!0),ie=>Bt(ie,4));if(U)return U;let Me=ee(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=Bt(Be);if(Tt)return Tt;if(Be.valueDeclaration&&dp(Be.valueDeclaration,Be.valueDeclaration.parent)){let dn=lt.getSymbolsOfParameterPropertyDeclaration(ta(Be.valueDeclaration,To),Be.name);return R.assert(dn.length===2&&!!(dn[0].flags&1)&&!!(dn[1].flags&4)),Bt(Be.flags&1?dn[1]:dn[0])}let He=dl(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 se?dn=sO(ct.parent)?e7(lt,ct.parent):void 0:dn=hn(Be,lt),dn&&Bt(dn,4)}if(R.assert(Rt),se){let dn=hn(Be,lt);return dn&&Bt(dn,4)}function Bt(dn,un){return zl(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=dl(dn,208);if(U&&sO(U))return e7(un,U)}}function Ot(Be,ct,lt,Rt){let se=new Map;return ke(Be);function ke(st){if(!(!(st.flags&96)||!Em(se,ba(st))))return zl(st.declarations,G=>zl(xN(G),et=>{let Tt=lt.getTypeAtLocation(et),He=Tt&&Tt.symbol&<.getPropertyOfType(Tt,ct);return Tt&&He&&(zl(lt.getRootSymbols(He),Rt)||ke(Tt.symbol))}))}}function In(Be){return Be.valueDeclaration?!!(du(Be.valueDeclaration)&256):!1}function si(Be,ct,lt,Rt){let{checker:se}=Rt;return $e(ct,lt,se,!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&&!(Al(ke)&6)?st:ke,kind:et}:void 0),ke=>!(Be.parents&&!Be.parents.some(st=>uo(ke.parent,st,Rt.inheritsFromCache,se))))}function yi(Be,ct){let lt=YT(Be),{declarations:Rt}=ct;if(Rt){let se;do{se=lt;for(let ke of Rt){let st=Jw(ke);st<&&(lt|=st)}}while(lt!==se)}return lt}e.getIntersectingMeaningFromDeclarations=yi;function $i(Be){return Be.flags&33554432?!(mu(Be)||Tm(Be)):$x(Be)?kv(Be):Fs(Be)?!!Be.body:di(Be)||u2(Be)}function Ao(Be,ct,lt){let Rt=ct.getSymbolAtLocation(Be),se=ct.getShorthandAssignmentValueSymbol(Rt.valueDeclaration);if(se)for(let ke of se.getDeclarations())Jw(ke)&1&<(ke)}e.getReferenceEntriesForShorthandPropertyAssignment=Ao;function ua(Be,ct,lt){Bo(Be,Rt=>{Rt.kind===ct&<(Rt),ua(Rt,ct,lt)})}function Ba(Be){return Uj(kz(Be).parent)}function vn(Be,ct,lt){let Rt=cD(Be)?Be.parent:void 0,se=Rt&<.getTypeAtLocation(Rt.expression),ke=to(se&&(se.isUnionOrIntersection()?se.types:se.symbol===ct.parent?void 0:[se]),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}})(M1||(M1={}))}}),ws={};Ra(ws,{Core:()=>M1,DefinitionKind:()=>Yme,EntryKind:()=>$me,ExportKind:()=>Ume,FindReferencesUse:()=>Qme,ImportExport:()=>Hme,createImportTracker:()=>Gme,findModuleReferences:()=>KLe,findReferenceOrRenameEntries:()=>ttt,findReferencedSymbols:()=>Qet,getContextNode:()=>nA,getExportInfo:()=>Vme,getImplementationsAtPosition:()=>ett,getImportOrExportSymbol:()=>XLe,getReferenceEntriesForNode:()=>$Le,getTextSpanOfEntry:()=>qme,isContextWithStartAndEndNode:()=>Kme,isDeclarationOfSymbol:()=>t2e,isWriteAccessForReference:()=>Xme,nodeEntry:()=>cg,toContextSpan:()=>Jme,toHighlightSpan:()=>ltt,toReferenceEntry:()=>e2e,toRenameLocation:()=>rtt});var Zme=bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";Yet(),dtt()}});function n2e(e,t,r,i,o){var s;let l=i2e(t,r,e),d=l&&[Stt(l.reference.fileName,l.fileName,l.unverified)]||Xe;if(l?.file)return d;let p=zu(t,r);if(p===t)return;let{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Fe(p)&&K4(h)&&h.tagName===p)return ptt(m,p)||Xe;if(Yw(p)){let D=wz(p.parent,p.text);return D?[e_e(m,D,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let D=Fn(p.parent,j=>Il(j)?"quit":Fs(j));return D?[gB(m,D)]:void 0;case 90:if(!bP(p.parent))break;case 84:let w=Fn(p.parent,gP);if(w)return[Ett(w,t)];break}if(p.kind===135){let D=Fn(p,j=>Fs(j));return D&>(D.modifiers,j=>j.kind===134)?[gB(m,D)]:void 0}if(p.kind===127){let D=Fn(p,j=>Fs(j));return D&&D.asteriskToken?[gB(m,D)]:void 0}if(YI(p)&&Il(p.parent)){let D=p.parent.parent,{symbol:w,failedAliasResolution:j}=mQ(D,m,o),K=Vr(D.members,Il),Y=w?m.symbolToString(w,D):"",B=p.getSourceFile();return mn(K,ce=>{let{pos:z}=R_(ce);return z=Pa(B.text,z),e_e(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,Hre)),w=D&&rR(D);w&&({symbol:y,failedAliasResolution:E}=mQ(w,m,o),S=w)}if(!y&&Zz(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:yd(0,0),failedAliasResolution:E,isAmbient:Sd(D.resolvedFileName),unverified:S!==p}]}if(!y)return bo(d,ytt(p,m));if(i&&oo(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let A=Att(m,p);if(A&&!(lu(p.parent)&&Itt(A))){let D=gB(m,A,E);if(m.getRootSymbols(y).some(w=>utt(w,A)))return[D];{let w=vM(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=>KO(j,m,D,p,!1,E)):Xe;return bo(w,r2e(m,p))}if(oc(p)&&Xa(h)&&tm(h.parent)&&p===(h.propertyName||h.name)){let D=aO(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&&vM(m,K,p)})}let N=r2e(m,p);return bo(d,N.length?N:vM(m,y,p,E))}function utt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Lc(t.parent)||!T0(t.parent)&&e===((r=ri(t.parent,b_))==null?void 0:r.symbol)}function r2e(e,t){let r=kO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return va(X7(r,e,i,!1),o=>vM(e,o,t))}return Xe}function ptt(e,t){let r=Fn(t,Qc);if(!(r&&r.name))return;let i=Fn(r,di);if(!i)return;let o=S_(i);if(!o)return;let s=ms(o.expression),l=ed(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let d=Vi(Jx(r.name)),p=mc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),d):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),d);if(p)return vM(e,p,t)}function i2e(e,t,r){var i,o;let s=bM(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=bM(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=bM(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=uD(e,t),h;if(Zz(p)&&$c(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,y=m||xv(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 ftt(e,t){let r=t.symbol.name;if(!n_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function o2e(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!n_e.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function mtt(e,t,r,i){var o,s;if(Lr(t)&4&&ftt(e,t))return HO(e.getTypeArguments(t)[0],e,r,i);if(o2e(e,t)&&t.aliasTypeArguments)return HO(t.aliasTypeArguments[0],e,r,i);if(Lr(t)&32&&t.target&&o2e(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 HO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function _tt(e,t,r){let i=zu(t,r);if(i===t)return;if(Yx(i.parent)&&i.parent.name===i)return HO(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=htt(o,l,e),p=d&&HO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,HO(l,e,i,s)];return m.length?[...mtt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?vM(e,bd(o,e),i,s):void 0}function HO(e,t,r,i){return va(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&vM(t,o.symbol,r,i))}function htt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Oi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Va(i))}}function gtt(e,t,r){let i=n2e(e,t,r);if(!i||i.length===0)return;let o=bM(t.referencedFiles,r)||bM(t.typeReferenceDirectives,r)||bM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:nb(o)};let s=zu(t,r),l=yd(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function ytt(e,t){return to(t.getIndexInfosAtLocation(e),r=>r.declaration&&gB(t,r.declaration))}function mQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&vtt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function vtt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function btt(e){if(!TN(e))return!1;let t=Fn(e,r=>Lc(r)?!0:TN(r)?!1:"quit");return!!t&&Gl(t)===5}function vM(e,t,r,i,o){let s=Vr(t.declarations,y=>y!==o),l=Vr(s,y=>!btt(y)),d=gt(l)?l:s;return p()||h()||mn(d,y=>KO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(ZP(r)||r.kind===137)){let y=Gr(s,di)||R.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?Ml:Yo),A=S.filter(N=>!!N.body);return S.length?A.length!==0?A.map(N=>KO(N,e,t,r)):[KO(Ja(S),e,t,r,!1,i)]:void 0}}function KO(e,t,r,i,o,s){let l=t.symbolToString(r),d=$y.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return e_e(t,e,d,l,p,o,s)}function e_e(e,t,r,i,o,s,l,d){let p=t.getSourceFile();if(!d){let h=No(t)||t;d=Ru(h,p)}return{fileName:p.fileName,textSpan:d,kind:r,name:i,containerKind:void 0,containerName:o,...ws.toContextSpan(d,p,ws.getContextNode(t)),isLocal:!t_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function Ett(e,t){let r=ws.getContextNode(e),i=Ru(Kme(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ws.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function t_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(kv(t.parent)&&t.parent.initializer===t)return t_e(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 t_e(e,t.parent);default:return!1}}function gB(e,t,r){return KO(t,e,t.symbol,t,!1,r)}function bM(e,t){return Gr(e,r=>YL(r,t))}function Stt(e,t,r){return{fileName:t,textSpan:pc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Ttt(e){let t=Fn(e,i=>!cD(i)),r=t?.parent;return r&&T0(r)&&VF(r)===t?r:void 0}function Att(e,t){let r=Ttt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>Yo(o)&&!gh(o))}function Itt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var n_e,xtt=bt({"src/services/goToDefinition.ts"(){"use strict";ai(),Zme(),n_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),CD={};Ra(CD,{createDefinitionInfo:()=>KO,findReferenceInPosition:()=>bM,getDefinitionAndBoundSpan:()=>gtt,getDefinitionAtPosition:()=>n2e,getReferenceAtPosition:()=>i2e,getTypeDefinitionAtPosition:()=>_tt});var Rtt=bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";xtt()}});function Dtt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Ctt(e){return e.includeInlayParameterNameHints==="literals"}function a2e(e){return e.interactiveInlayHints===!0}function Ntt(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(tF(i,fe.pos,fe.getFullWidth())&&!(ji(fe)&&!Gy(fe)))return s.includeInlayVariableTypeHints&&Oi(fe)||s.includeInlayPropertyDeclarationTypeHints&&jo(fe)?j(fe):s.includeInlayEnumMemberValueHints&&Q0(fe)?D(fe):Dtt(s)&&(ra(fe)||H0(fe))?K(fe):(s.includeInlayFunctionParameterTypeHints&&Fs(fe)&&G6(fe)&&me(fe),s.includeInlayFunctionLikeReturnTypeHints&&E(fe)&&z(fe)),Bo(fe,y)}}function E(fe){return zs(fe)||ks(fe)||Tc(fe)||Kl(fe)||Qp(fe)}function S(fe,ne,he,Ce){let Ge=`${Ce?"...":""}${fe}`,ve;a2e(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||$o(fe.name)||Oi(fe)&&!pe(fe)||vd(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(Ie=>Ie.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Xb(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 Ie=ms(ve);if(Ctt(s)&&!ce(Ie)){Ge++;continue}let De=0;if(qm(Ie)){let Et=h.getTypeAtLocation(Ie.expression);if(h.isTupleType(Et)){let{elementFlags:be,fixedLength:ze}=Et.target;if(ze===0)continue;let tt=ql(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(Ie,be))&&!ze)continue;let Wt=Vi(be);if(B(Ie,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,lk(t.scriptKind)))return!1;let he=Hh(l,fe.pos);if(!he?.length)return!1;let Ce=s2e(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 S0(ne)||Fe(ne)&&eP(ne.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ne=fe.escapedText;return re(ne)||eP(ne)}}return S0(fe)}function z(fe){if(zs(fe)&&!gs(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,ee(fe))}function ee(fe){let ne=gs(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);R.assertIsDefined(Ge,"should always get typenode"),he.writeNode(4,Ge,t,Ce)})}function J(fe){if(!a2e(s))return q(fe);let he=h.typeToTypeNode(fe,void 0,71286784);R.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(S0(Le)){Ce.push({text:De(Le)});return}switch(Le.kind){case 80:R.assertNode(Le,Fe);let tt=vr(Le),Wt=Le.symbol&&Le.symbol.declarations&&Le.symbol.declarations.length&&No(Le.symbol.declarations[0]);Wt?Ce.push(xe(tt,Wt)):Ce.push({text:tt});break;case 166:R.assertNode(Le,Au),Ge(Le.left),Ce.push({text:"."}),Ge(Le.right);break;case 182:R.assertNode(Le,Wk),Le.assertsModifier&&Ce.push({text:"asserts "}),Ge(Le.parameterName),Le.type&&(Ce.push({text:" is "}),Ge(Le.type));break;case 183:R.assertNode(Le,If),Ge(Le.typeName),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 168:R.assertNode(Le,ml),Le.modifiers&&Ie(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:R.assertNode(Le,To),Le.modifiers&&Ie(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:R.assertNode(Le,NR),Ce.push({text:"new "}),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 186:R.assertNode(Le,QI),Ce.push({text:"typeof "}),Ge(Le.exprName),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 187:R.assertNode(Le,gp),Ce.push({text:"{"}),Le.members.length&&(Ce.push({text:" "}),Ie(Le.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:R.assertNode(Le,Fk),Ge(Le.elementType),Ce.push({text:"[]"});break;case 189:R.assertNode(Le,ZI),Ce.push({text:"["}),Ie(Le.elements,", "),Ce.push({text:"]"});break;case 202:R.assertNode(Le,PR),Le.dotDotDotToken&&Ce.push({text:"..."}),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Ce.push({text:": "}),Ge(Le.type);break;case 190:R.assertNode(Le,F4),Ge(Le.type),Ce.push({text:"?"});break;case 191:R.assertNode(Le,z4),Ce.push({text:"..."}),Ge(Le.type);break;case 192:R.assertNode(Le,Jv),Ie(Le.types," | ");break;case 193:R.assertNode(Le,e1),Ie(Le.types," & ");break;case 194:R.assertNode(Le,t1),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:R.assertNode(Le,PT),Ce.push({text:"infer "}),Ge(Le.typeParameter);break;case 196:R.assertNode(Le,MT),Ce.push({text:"("}),Ge(Le.type),Ce.push({text:")"});break;case 198:R.assertNode(Le,LT),Ce.push({text:`${da(Le.operator)} `}),Ge(Le.type);break;case 199:R.assertNode(Le,kT),Ge(Le.objectType),Ce.push({text:"["}),Ge(Le.indexType),Ce.push({text:"]"});break;case 200:R.assertNode(Le,MR),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:R.assertNode(Le,qv),Ge(Le.literal);break;case 184:R.assertNode(Le,gh),ve(Le),Ce.push({text:" => "}),Ge(Le.type);break;case 205:R.assertNode(Le,og),Le.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),Ge(Le.argument),Le.assertions&&(Ce.push({text:", { assert: "}),Ie(Le.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),Le.qualifier&&(Ce.push({text:"."}),Ge(Le.qualifier)),Le.typeArguments&&(Ce.push({text:"<"}),Ie(Le.typeArguments,", "),Ce.push({text:">"}));break;case 171:R.assertNode(Le,_p),(Et=Le.modifiers)!=null&&Et.length&&(Ie(Le.modifiers," "),Ce.push({text:" "})),Ge(Le.name),Le.questionToken&&Ce.push({text:"?"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 181:R.assertNode(Le,j0),Ce.push({text:"["}),Ie(Le.parameters,", "),Ce.push({text:"]"}),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 173:R.assertNode(Le,hh),(be=Le.modifiers)!=null&&be.length&&(Ie(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:R.assertNode(Le,$I),ve(Le),Le.type&&(Ce.push({text:": "}),Ge(Le.type));break;case 207:R.assertNode(Le,U0),Ce.push({text:"["}),Ie(Le.elements,", "),Ce.push({text:"]"});break;case 206:R.assertNode(Le,tm),Ce.push({text:"{"}),Le.elements.length&&(Ce.push({text:" "}),Ie(Le.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:R.assertNode(Le,Xa),Ge(Le.name);break;case 224:R.assertNode(Le,Yv),Ce.push({text:da(Le.operator)}),Ge(Le.operand);break;case 203:R.assertNode(Le,fae),Ge(Le.head),Le.templateSpans.forEach(Ge);break;case 16:R.assertNode(Le,qI),Ce.push({text:De(Le)});break;case 204:R.assertNode(Le,eH),Ge(Le.type),Ge(Le.literal);break;case 17:R.assertNode(Le,YU),Ce.push({text:De(Le)});break;case 18:R.assertNode(Le,k4),Ce.push({text:De(Le)});break;case 197:R.assertNode(Le,zk),Ce.push({text:"this"});break;default:R.failBadSyntaxKind(Le)}}function ve(Le){Le.typeParameters&&(Ce.push({text:"<"}),Ie(Le.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Ie(Le.parameters,", "),Ce.push({text:")"})}function Ie(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?`'${eg(Le.text,39)}'`:`"${eg(Le.text,34)}"`;case 16:case 17:case 18:{let Et=Le.rawText??Lj(eg(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((L0(fe)||Oi(fe)&&Xx(fe))&&fe.initializer){let ne=ms(fe.initializer);return!(ce(ne)||H0(ne)||La(ne)||uT(ne))}return!0}function xe(fe,ne){let he=ne.getSourceFile();return{text:fe,span:Ru(ne,he),file:he.fileName}}}var s2e,Ptt=bt({"src/services/inlayHints.ts"(){"use strict";ai(),s2e=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),_Q={};Ra(_Q,{provideInlayHints:()=>Ntt});var Mtt=bt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Ptt()}});function Ltt(e,t){let r=[];return qq(e,i=>{for(let o of wtt(i)){let s=Ym(o)&&o.tags&&Gr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Ym(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?ND(o.comment,t):[];s&&s.comment&&(l=l.concat(ND(s.comment,t))),zo(r,l,ktt)||r.push(l)}}),pm(DG(r,[_D()]))}function ktt(e,t){return AL(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function wtt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(FR(e.parent))return[e.parent.parent];default:return gj(e)}}function Ott(e,t){let r=[];return qq(e,i=>{let o=iE(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:d2e(s,t)}),r.push(...l2e(c2e(s),t))}),r}function l2e(e,t){return va(e,r=>bo([{name:r.tagName.text,text:d2e(r,t)}],l2e(c2e(r),t)))}function c2e(e){return cN(e)&&e.isNameFirst&&e.typeExpression&&BT(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function ND(e,t){return typeof e=="string"?[af(e)]:va(e,r=>r.kind===328?[af(r.text)]:Ide(r,t))}function d2e(e,t){let{comment:r,kind:i}=e,o=Wtt(i);switch(i){case 356:let d=e.typeExpression;return d?s(d):r===void 0?void 0:ND(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(wl());let y=p.typeParameters[p.typeParameters.length-1];gn(p.typeParameters,E=>{h.push(o(E.getText())),y!==E&&h.push(Yd(28),wl())})}return r&&h.push(wl(),...ND(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:ND(r,t);default:return r===void 0?void 0:ND(r,t)}function s(d){return l(d.getText())}function l(d){return r?d.match(/^https?$/)?[af(d),...ND(r,t)]:[o(d),wl(),...ND(r,t)]:[af(d)]}}function Wtt(e){switch(e){case 348:return bde;case 355:return Ede;case 352:return Tde;case 353:case 345:return Sde;default:return af}}function Ftt(){return p2e||(p2e=mn(i_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:P1.SortText.LocationPriority})))}function ztt(){return f2e||(f2e=mn(i_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:P1.SortText.LocationPriority})))}function u2e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[af(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Btt(e){if(!Fe(e.name))return Xe;let t=e.name.text,r=e.parent,i=r.parent;return Yo(i)?to(i.parameters,o=>{if(!Fe(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&$m(l)&&Fe(l.name)&&l.name.escapedText===s)||t!==void 0&&!ao(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:P1.SortText.LocationPriority}}):[]}function Gtt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[af(e)],documentation:Xe,tags:void 0,codeActions:void 0}}function Vtt(e,t,r,i){let o=so(t,r),s=Fn(o,Ym);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 jtt(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 Utt(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 Htt(e,t){return`${e} * @returns${t}`}function Ktt(e,t){return kre(e,r=>r_e(r,t))}function r_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:yB(r,t)};case 303:return r_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&&gh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:yB(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Jtt(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:yB(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return r_e(e.expression,t);case 226:{let o=e;return Gl(o)===0?"quit":Yo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:yB(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(ks(i)||zs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:yB(i,t)}}}function yB(e,t){return!!t?.generateReturnInDocTemplate&&(gh(e)||zs(e)&&ht(e.body)||Fs(e)&&e.body&&Ho(e.body)&&!!R0(e.body,r=>r))}function Jtt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Gr(e.members,Ml)}}var i_e,p2e,f2e,m2e,qtt=bt({"src/services/jsDoc.ts"(){"use strict";ai(),i_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"],m2e=u2e}}),ME={};Ra(ME,{getDocCommentTemplateAtPosition:()=>Vtt,getJSDocParameterNameCompletionDetails:()=>Gtt,getJSDocParameterNameCompletions:()=>Btt,getJSDocTagCompletionDetails:()=>u2e,getJSDocTagCompletions:()=>ztt,getJSDocTagNameCompletionDetails:()=>m2e,getJSDocTagNameCompletions:()=>Ftt,getJsDocCommentsFromDeclarations:()=>Ltt,getJsDocTagsFromDeclarations:()=>Ott});var Xtt=bt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";qtt()}});function Ytt(e,t,r,i,o,s){let l=fr.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(kc)),y=fnt(o,d?()=>g2e(m,o)===2:void 0),E=A=>(h&&(A=Qtt(A,e,i)),p&&(A=_2e(A,y,e,o)),d&&(A=Ey(A,(N,D)=>c_e(N,D,y))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&mnt(e).forEach(A=>S(A,N=>o_e(N,y,o)));for(let A of e.statements.filter(Ld)){if(!A.body)continue;if(hQ(e,A.body.statements.filter(kc)).forEach(D=>S(D,E)),s!=="RemoveUnused"){let D=A.body.statements.filter($l);S(D,w=>o_e(w,y,o))}}return l.getChanges();function S(A,N){if(Nn(A)===0)return;dr(A[0],1024);let D=p?KC(A,K=>vB(K.moduleSpecifier)):[A],w=d?Ey(D,(K,Y)=>s_e(K[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,j=va(w,K=>vB(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?N(K):K);if(j.length===0)l.deleteNodes(e,A,{leadingTriviaOption:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.Include},!0);else{let K={leadingTriviaOption:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.Include,suffix:qy(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:fr.TrailingTriviaOption.Include},Y)}}}function hQ(e,t){let r=Dy(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&$tt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function $tt(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 Qtt(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($v(A))h(A.name)||(A=void 0);else{let N=A.elements.filter(D=>h(D.name));N.lengthCa(i)&&i.text===r)}function vB(e){return e!==void 0&&ss(e)?e.text:void 0}function ent(e,t,r,i){let o=gQ(t);return _2e(e,o,r,i)}function _2e(e,t,r,i){if(e.length===0)return e;let o=yW(e,l=>{if(l.attributes){let d=l.attributes.token+" ";for(let p of tT(l.attributes.elements,(h,m)=>jd(h.name.text,m.name.text)))d+=p.name.text+":",d+=ss(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}=tnt(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 ee=S[0];s.push(JO(ee,ee.importClause.name,A[0].importClause.namedBindings));continue}let D=Ey(A,(ee,me)=>t(ee.importClause.namedBindings.name.text,me.importClause.namedBindings.name.text));for(let ee of D)s.push(JO(ee,void 0,ee.importClause.namedBindings));let w=Yc(S),j=Yc(N),K=w??j;if(!K)continue;let Y,B=[];if(S.length===1)Y=S[0].importClause.name;else for(let ee of S)B.push(L.createImportSpecifier(!1,L.createIdentifier("default"),ee.importClause.name));B.push(...cnt(N));let ce=L.createNodeArray(h2e(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&&!RT(j.importClause.namedBindings,r)&&dr(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 tnt(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&&($v(d)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function nnt(e,t,r){let i=gQ(t);return o_e(e,i,r)}function o_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=h2e(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 h2e(e,t,r){return Ey(e,(i,o)=>a_e(i,o,t,r))}function a_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Sv(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Sv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function rnt(e,t,r){let i=gQ(!!r);return s_e(e,t,i)}function s_e(e,t,r){let i=e===void 0?void 0:vB(e),o=t===void 0?void 0:vB(t);return Sv(i===void 0,o===void 0)||Sv($c(i),$c(o))||r(i,o)}function l_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,bh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function int(e,t){return g2e(hQ(e,e.statements.filter(kc)),t)}function g2e(e,t){let r=PD(t,!1),i=PD(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=HC(l,h=>{var m;return((m=ri(h.moduleSpecifier,Ca))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let d=Gr(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=d_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 ont(e,t){let r=PD(t,!1),i=PD(t,!0);return HC(e,o=>vB(l_e(o))||"",r,i)}function ant(e,t,r){let i=Sy(e,t,Zs,(o,s)=>c_e(o,s,r));return i<0?~i:i}function snt(e,t,r,i){let o=Sy(e,t,Zs,(s,l)=>a_e(s,l,r,i));return o<0?~o:o}function c_e(e,t,r){return s_e(l_e(e),l_e(t),r)||lnt(e,t)}function lnt(e,t){return el(y2e(e),y2e(t))}function y2e(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 cnt(e){return va(e,t=>mn(dnt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function dnt(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?one:jd}function unt(e,t){let r=pnt(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 pnt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=ane()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function PD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?unt(t,e):gQ(t)}function fnt(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return PD(e,r)}function mnt(e){let t=[],r=e.statements,i=Nn(r),o=0,s=0;for(;ohQ(e,l))}var v2e,d_e,_nt=bt({"src/services/organizeImports.ts"(){"use strict";ai(),v2e=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)}},d_e=ine((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!_W(e,(o,s)=>Sv(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!_W(e,(o,s)=>Ax(!0)(o.name.text,s.name.text)))return 0;break;default:if(!_W(e,(o,s)=>Sv(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=PD(t,!1),i=PD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=yW(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?HC(o,p=>p.name.text,r,i):void 0,d=s?.length?HC(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 HC(e,o=>o.name.text,r,i)},new v2e)}}),Rm={};Ra(Rm,{coalesceExports:()=>nnt,coalesceImports:()=>ent,compareImportOrExportSpecifiers:()=>a_e,compareImportsOrRequireStatements:()=>c_e,compareModuleSpecifiers:()=>rnt,detectImportDeclarationSorting:()=>ont,detectImportSpecifierSorting:()=>d_e,detectSorting:()=>int,getImportDeclarationInsertionIndex:()=>ant,getImportSpecifierInsertionIndex:()=>snt,getOrganizeImportsComparer:()=>PD,organizeImports:()=>Ytt});var hnt=bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";_nt()}});function gnt(e,t){let r=[];return ynt(e,t,r),vnt(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function ynt(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(bB(s,l,"comment"))}}function E2e(e,t,r,i){KI(e)||u_e(e.pos,t,r,i)}function bB(e,t,r){return L1(pc(e,t),r)}function bnt(e,t){switch(e.kind){case 241:if(Yo(e.parent))return Ent(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=gs(S,98,t);if(A)return m(A)}default:return L1(Ru(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,!ZI(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=gs(S,19,t),N=gs(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=gs(S,21,t),N=gs(S,22,t);if(!(!A||!N||Sf(A.pos,N.pos,t)))return yQ(A,N,S,t,!1,!0)}function o(S){if(Ho(S.body)||Fu(S.body)||Sf(S.body.getFullStart(),S.body.getEnd(),t))return;let A=pc(S.body.getFullStart(),S.body.getEnd());return L1(A,"code",Ru(S))}function s(S){let A=pc(S.openingElement.getStart(t),S.closingElement.getEnd()),N=S.openingElement.tagName.getText(t),D="<"+N+">...";return L1(A,"code",A,!1,D)}function l(S){let A=pc(S.openingFragment.getStart(t),S.closingFragment.getEnd());return L1(A,"code",A,!1,"<>...")}function d(S){if(S.properties.length!==0)return bB(S.getStart(t),S.getEnd(),"code")}function p(S){if(!(S.kind===15&&S.text.length===0))return bB(S.getStart(t),S.getEnd(),"code")}function h(S,A=19){return m(S,!1,!fu(S.parent)&&!ra(S.parent),A)}function m(S,A=!1,N=!0,D=19,w=D===19?20:24){let j=gs(e,D,t),K=gs(e,w,t);return j&&K&&yQ(j,K,S,t,A,N)}function y(S){return S.length?L1(nb(S),"code"):void 0}function E(S){if(Sf(S.getStart(),S.getEnd(),t))return;let A=pc(S.getStart(),S.getEnd());return L1(A,"code",Ru(S))}}function Ent(e,t,r){let i=Snt(e,t,r),o=gs(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=pc(s?e.getFullStart():e.getStart(i),t.getEnd());return L1(l,"code",Ru(r,i),o)}function L1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Snt(e,t,r){if(Zie(e.parameters,r)){let i=gs(e,21,r);if(i)return i}return gs(t,19,r)}var S2e,Tnt=bt({"src/services/outliningElementsCollector.ts"(){"use strict";ai(),S2e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),vQ={};Ra(vQ,{collectElements:()=>gnt});var Ant=bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";Tnt()}});function Int(e,t,r,i){let o=Gz(zu(t,r));if(A2e(o)){let s=xnt(o,e.getTypeChecker(),t,e,i);if(s)return s}return bQ(f.You_cannot_rename_this_element)}function xnt(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(ss(e)){let E=Bz(e,t);if(E&&(E.flags&128||E.flags&1048576&&oo(E.types,S=>!!(S.flags&128))))return p_e(e.text,e.text,"string","",e,r)}else if(Eq(e)){let E=fc(e);return p_e(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>Rnt(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(ss(e)&&B2(e))return o.allowRenameOfImportPath?Cnt(e,r,s):void 0;let d=Dnt(r,s,t,o);if(d)return bQ(d);let p=$y.getSymbolKind(t,s,e),h=xde(e)||$p(e)&&e.parent.kind===167?Yf(Xf(e)):void 0,m=h||t.symbolToString(s),y=h||t.getFullyQualifiedName(s);return p_e(m,y,p,$y.getSymbolModifiers(t,s),e,r)}function Rnt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Tl(r.fileName,".d.ts")}function Dnt(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&Gr(t.declarations,d=>Qu(d));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=T2e(e.path);if(s===void 0)return gt(o,l=>_O(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=T2e(l.getSourceFile().path);if(d){let p=Math.min(s.length,d.length);for(let h=0;h<=p;h++)if(jd(s[h],d[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function T2e(e){let t=zc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Cnt(e,t,r){if(!$c(e.text))return bQ(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&Gr(r.declarations,Yi);if(!i)return;let o=Sl(e.text,"/index")||Sl(e.text,"/index.js")?void 0:cne(Tu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",d=e.text.lastIndexOf("/")+1,p=yd(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 p_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Nnt(o,s)}}function bQ(e){return{canRename:!1,localizedErrorMessage:ko(e)}}function Nnt(e,t){let r=e.getStart(t),i=e.getWidth(t);return ss(e)&&(r+=1,i-=2),yd(r,i)}function A2e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Oz(e);default:return!1}}var Pnt=bt({"src/services/rename.ts"(){"use strict";ai()}}),EB={};Ra(EB,{getRenameInfo:()=>Int,nodeIsEligibleForRename:()=>A2e});var Mnt=bt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Pnt()}});function Lnt(e,t,r,i,o){let s=e.getTypeChecker(),l=Vz(t,r);if(!l)return;let d=!!i&&i.kind==="characterTyped";if(d&&(b1(t,r,l)||Hy(t,r)))return;let p=!!i&&i.kind==="invoked",h=Ynt(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=knt(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?M2e(m.candidates,m.resolvedSignature,h,t,y):Qnt(m.symbol,h,t,y)):cu(t)?Ont(h,e,o):void 0}function knt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!wnt(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&&!I2e(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 R.assertNever(e)}}function wnt(e,t,r){if(!v_(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return zo(i,e);case 28:{let o=zz(e);return!!o&&zo(i,o)}case 30:return I2e(e,r,t.expression);default:return!1}}function Ont(e,t,r){if(e.invocation.kind===2)return;let i=N2e(e.invocation),o=kr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:zl(t.getSourceFiles(),l=>zl(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=>M2e(h,h[0],e,l,m,!0))}))}function I2e(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Ic(i,t,o,!0);if(s)return rf(r,s);o=o.parent}return R.fail("Could not find preceding token")}function Wnt(e,t,r,i){let o=R2e(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 x2e(e,t,r,i){let o=Fnt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=Knt(i,s);l!==0&&R.assertLessThan(l,d);let p=qnt(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function Fnt(e,t,r){if(e.kind===30||e.kind===21)return{list:$nt(e.parent,e,t),argumentIndex:0};{let i=zz(e);return i&&{list:i,argumentIndex:Hnt(r,i,e)}}}function R2e(e,t,r,i){let{parent:o}=e;if(v_(o)){let s=o,l=x2e(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(JI(e)&&K0(o))return nO(e,t,r)?m_e(o,0,r):void 0;if(qI(e)&&o.parent.kind===215){let s=o,l=s.parent;R.assert(s.kind===228);let d=nO(e,t,r)?0:1;return m_e(l,d,r)}else if(hP(o)&&K0(o.parent.parent)){let s=o,l=o.parent.parent;if(k4(e)&&!nO(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=Jnt(d,e,t,r);return m_e(l,p,r)}else if(lu(o)){let s=o.attributes.pos,l=Pa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:yd(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=pc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:d,argumentCount:d+1}}return}}}function znt(e,t,r,i){return Bnt(e,t,r,i)||R2e(e,t,r,i)}function D2e(e){return pr(e.parent)?D2e(e.parent):e}function f_e(e){return pr(e.left)?f_e(e.left)+1:2}function Bnt(e,t,r,i){let o=Gnt(e);if(o===void 0)return;let s=Vnt(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=Qs(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:jnt(y)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function Gnt(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>To(t)?!0:Xa(t)||tm(t)||U0(t)?!1:"quit")}}function Vnt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=x2e(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:d,argumentsSpan:p}=s,h=Kl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:d,argumentsSpan:p};case 226:{let m=D2e(o),y=i.getContextualType(m),E=e.kind===21?0:f_e(o)-1,S=f_e(m);return y&&{contextualType:y,argumentIndex:E,argumentCount:S,argumentsSpan:Ru(o)}}default:return}}function jnt(e){return e.name==="__type"&&zl(e.declarations,t=>{var r;return gh(t)?(r=ri(t.parent,b_))==null?void 0:r.symbol:void 0})||e}function Unt(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=ql(i,l=>!(l&1));return s<0?o:s}return 0}function Hnt(e,t,r){return C2e(e,t,r)}function Knt(e,t){return C2e(e,t,void 0)}function C2e(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(qm(l)){o+=Unt(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 Jnt(e,t,r,i){return R.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),dre(t)?nO(t,r,i)?0:e+2:e+1}function m_e(e,t,r){let i=JI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&R.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Xnt(e,r),argumentIndex:t,argumentCount:i}}function qnt(e,t){let r=e.getFullStart(),i=Pa(t.text,e.getEnd(),!1);return yd(r,i-r)}function Xnt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ja(r.templateSpans).literal.getFullWidth()===0&&(o=Pa(t.text,o,!1)),yd(i,o-i)}function Ynt(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!Ho(s));s=s.parent){R.assert(rf(s.parent,s),"Not a subspan",()=>`Child: ${R.formatSyntaxKind(s.kind)}, parent: ${R.formatSyntaxKind(s.parent.kind)}`);let l=znt(s,t,r,i);if(l)return l}}function $nt(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return R.assert(o>=0&&i.length>o+1),i[o+1]}function N2e(e){return e.kind===0?VF(e.node):e.called}function P2e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function M2e(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let y=P2e(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(N2e(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?aM(p,E,h?d:void 0,void 0):Xe,A=mn(e,K=>ert(K,S,r,p,y,d));l!==0&&R.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}R.assert(N!==-1);let w={items:GC(A,Zs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},j=w.items[N];if(j.isVariadic){let K=ql(j.parameters,Y=>!!Y.isRest);-1L2e(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Yd(30)],suffixDisplayParts:[Yd(32)],separatorDisplayParts:__e,parameters:d,documentation:p,tags:h}}function ert(e,t,r,i,o,s){let l=(r?nrt:rrt)(e,i,o,s);return mn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let y=[...t,...h],E=[...m,...trt(e,o,i)],S=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:d,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:__e,parameters:p,documentation:S,tags:A}})}function trt(e,t,r){return rb(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 nrt(e,t,r,i){let o=(e.target||e).typeParameters,s=oS(),l=(o||Xe).map(p=>L2e(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,qO)]:[];return t.getExpandedParameters(e).map(p=>{let h=L.createNodeArray([...d,...mn(p,y=>t.symbolToParameterDeclaration(y,r,qO))]),m=rb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[Yd(30)],suffix:[Yd(32),...m]}})}function rrt(e,t,r,i){let o=oS(),s=rb(p=>{if(e.typeParameters&&e.typeParameters.length){let h=L.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,qO)));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],dh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>irt(h,t,r,i,o)),prefix:[...s,Yd(21)],suffix:[Yd(22)]}))}function irt(e,t,r,i,o){let s=rb(p=>{let h=t.symbolToParameterDeclaration(e,r,qO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=dh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function L2e(e,t,r,i,o){let s=rb(l=>{let d=t.typeParameterToDeclaration(e,r,qO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var qO,__e,ort=bt({"src/services/signatureHelp.ts"(){"use strict";ai(),qO=70246400,__e=[Yd(28),wl()]}}),XO={};Ra(XO,{getArgumentInfoForCompletions:()=>Wnt,getSignatureHelpItems:()=>Lnt});var art=bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";ort()}});function srt(e,t){var r,i;let o={textSpan:pc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=crt(s);if(!p.length)break;for(let h=0;he)break e;let S=rh($b(t.text,y.end));if(S&&S.kind===2&&d(S.pos,S.end),lrt(t,e,y)){if(wV(y)&&Fs(s)&&!Sf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ho(y)||hP(y)||qI(y)||k4(y)||m&&qI(m)||Uc(y)&&Ll(s)||zR(y)&&Uc(s)||Oi(y)&&zR(s)&&p.length===1||Z0(y)||vE(y)||BT(y)){s=y;break}if(hP(s)&&E&&dF(E)){let w=y.getFullStart()-2,j=E.getStart()+1;l(w,j)}let A=zR(y)&&drt(m)&&urt(E)&&!Sf(m.getStart(),E.getStart(),t),N=A?m.getEnd():y.getStart(),D=A?E.getStart():prt(t,y);if(kp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Va(y.jsDoc).getStart(),D),zR(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),(Ca(y)||TI(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=pc(p,h);(!o||!mD(m,o.textSpan)&&Vne(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 lrt(e,t,r){return R.assert(r.pos<=t),td===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=YO(s,({kind:d})=>d===23||d===168||d===24);return[r,$O(EQ(l,({kind:d})=>d===59)),o]}if(_p(e)){let r=YO(e.getChildren(),l=>l===e.name||zo(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,$O(s)]:s}if(To(e)){let r=YO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=YO(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 YO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push($O(i)),i=void 0),r.push(o));return i&&r.push($O(i)),r}function EQ(e,t,r=!0){if(e.length<2)return e;let i=ql(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=xL([o.length?$O(o):void 0,s,p.length?$O(p):void 0]);return d?h.concat(l):h}function $O(e){return R.assertGreaterThanOrEqual(e.length,1),mh(Eh.createSyntaxList(e),e[0].pos,Ja(e).end)}function drt(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function urt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function prt(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 k2e,frt=bt({"src/services/smartSelection.ts"(){"use strict";ai(),k2e=Um(kc,nd)}}),SQ={};Ra(SQ,{getSmartSelectionRange:()=>srt});var mrt=bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";frt()}});function w2e(e,t,r){let i=O2e(e,t,r);if(i!=="")return i;let o=yR(t);return o&32?dl(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 O2e(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)||MI(r))return"parameter";let o=yR(t);if(o&3)return Yq(t)?"parameter":t.valueDeclaration&&Xx(t.valueDeclaration)?"const":t.valueDeclaration&&T2(t.valueDeclaration)?"using":t.valueDeclaration&&S2(t.valueDeclaration)?"await using":gn(t.declarations,MF)?"let":z2e(t)?"local var":"var";if(o&16)return z2e(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 W2e(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Nn(r)&&_7(t)&>(r,s=>!_7(s))?65536:0,o=tM(t,i);if(o)return o.split(",")}return[]}function _rt(e,t){if(!t)return"";let r=new Set(W2e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&gn(W2e(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Oo(r.values()).join(","):""}function F2e(e,t,r,i,o,s,l,d){var p;let h=[],m=[],y=[],E=yR(t),S=l&1?O2e(e,t,o):"",A=!1,N=o.kind===110&&UF(o)||MI(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=Gr(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:R.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)||ZP(o)||o.parent&&(lu(o.parent)||K0(o.parent))&&Yo(t.valueDeclaration))&&(re=o.parent),re){J=e.getResolvedSignature(re);let pe=re.kind===214||ra(re)&&re.expression.kind===108,xe=pe?s.getConstructSignatures():s.getCallSignatures();if(J&&!zo(xe,J.target)&&!zo(xe,J)&&(J=xe.length?xe[0]:void 0),J){switch(pe&&E&32?(S="constructor",ee(s.symbol,S)):E&2097152?(S="alias",me(S),h.push(wl()),pe&&(J.flags&4&&(h.push(vp(128)),h.push(wl())),h.push(vp(105)),h.push(wl())),z(t)):ee(t,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(Yd(59)),h.push(wl()),!(Lr(s)&16)&&s.symbol&&(Ur(h,aM(e,s.symbol,i,void 0,5)),h.push(_D())),pe&&(J.flags&4&&(h.push(vp(128)),h.push(wl())),h.push(vp(105)),h.push(wl())),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&&Gr(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",ee(s.symbol,S)):ee(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(),dl(t,231)?me("local class"):h.push(vp(86)),h.push(wl()),z(t),q(t,r)),E&64&&l&2&&(Y(),h.push(vp(120)),h.push(wl()),z(t),q(t,r)),E&524288&&l&2&&(Y(),h.push(vp(156)),h.push(wl()),z(t),q(t,r),h.push(wl()),h.push(oM(64)),h.push(wl()),Ur(h,cO(e,o.parent&&Ng(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(Y(),gt(t.declarations,J=>gE(J)&&x0(J))&&(h.push(vp(87)),h.push(wl())),h.push(vp(94)),h.push(wl()),z(t)),E&1536&&!N){Y();let J=dl(t,267),re=J&&J.name&&J.name.kind===80;h.push(vp(re?145:144)),h.push(wl()),z(t)}if(E&262144&&l&2)if(Y(),h.push(Yd(21)),h.push(af("type parameter")),h.push(Yd(22)),h.push(wl()),z(t),t.parent)ce(),z(t.parent,i),q(t.parent,i);else{let J=dl(t,168);if(J===void 0)return R.fail();let re=J.parent;if(re)if(Yo(re)){ce();let pe=e.getSignatureFromDeclaration(re);re.kind===180?(h.push(vp(105)),h.push(wl())):re.kind!==179&&re.name&&z(re.symbol),Ur(h,Zq(e,pe,r,32))}else Tm(re)&&(ce(),h.push(vp(156)),h.push(wl()),z(re.symbol),q(re.symbol,r))}if(E&8){S="enum member",ee(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(wl()),h.push(oM(64)),h.push(wl()),h.push(ep(Gre(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=No(re);if(pe&&!A){let xe=DF(re)&&$r(re,128),fe=t.name!=="default"&&!xe,ne=F2e(e,J,Gn(re),re,pe,s,l,fe?t:J);h.push(...ne.displayParts),h.push(_D()),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(wl()),h.push(vp(145));break;case 277:h.push(vp(95)),h.push(wl()),h.push(vp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(vp(95));break;default:h.push(vp(102))}h.push(wl()),z(t),gn(t.declarations,J=>{if(J.kind===271){let re=J;if(sE(re))h.push(wl()),h.push(oM(64)),h.push(wl()),h.push(vp(149)),h.push(Yd(21)),h.push(ep(fc(SN(re)),8)),h.push(Yd(22));else{let pe=e.getSymbolAtLocation(re.moduleReference);pe&&(h.push(wl()),h.push(oM(64)),h.push(wl()),z(pe,i))}return!0}})}if(!A)if(S!==""){if(s){if(N?(Y(),h.push(vp(110))):ee(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(Yd(59)),h.push(wl()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let J=rb(re=>{let pe=e.typeParameterToDeclaration(s,i,h_e);K().writeNode(4,pe,Gn(Ro(i)),re)});Ur(h,J)}else Ur(h,cO(e,s,i));if(dh(t)&&t.links.target&&dh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let J=t.links.target.links.tupleLabelDeclaration;R.assertNode(J.name,Fe),h.push(wl()),h.push(Yd(21)),h.push(af(vr(J.name))),h.push(Yd(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=w2e(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=zl(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 oS()}function Y(){h.length&&h.push(_D()),B()}function B(){d&&(me("alias"),h.push(wl()))}function ce(){h.push(wl()),h.push(vp(103)),h.push(wl())}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=aM(e,J.parent)),xe.push(Yd(23)),pe.forEach((fe,ne)=>{xe.push(...cO(e,fe.keyType)),ne!==pe.length-1&&(xe.push(wl()),xe.push(Yd(52)),xe.push(wl()))}),xe.push(Yd(24))):xe=aM(e,J,re||r,void 0,7),Ur(h,xe),t.flags&16777216&&h.push(Yd(58))}function ee(J,re){Y(),re&&(me(re),J&&!gt(J.declarations,pe=>zs(pe)||(ks(pe)||ed(pe))&&!pe.name)&&(h.push(wl()),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(Yd(21)),h.push($q(J)),h.push(Yd(22));return}}function ge(J,re,pe=0){Ur(h,Zq(e,J,i,pe|32)),re.length>1&&(h.push(wl()),h.push(Yd(21)),h.push(oM(40)),h.push(ep((re.length-1).toString(),7)),h.push(wl()),h.push(af(re.length===2?"overload":"overloads")),h.push(Yd(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=rb(xe=>{let fe=e.symbolToTypeParameterDeclarations(J,re,h_e);K().writeList(53776,fe,Gn(Ro(re)),xe)});Ur(h,pe)}}function hrt(e,t,r,i,o,s=YT(o),l){return F2e(e,t,r,i,o,void 0,s,l)}function z2e(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;!D0(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var h_e,grt=bt({"src/services/symbolDisplay.ts"(){"use strict";ai(),h_e=70246400}}),$y={};Ra($y,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>hrt,getSymbolKind:()=>w2e,getSymbolModifiers:()=>_rt});var yrt=bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";grt()}});function B2e(e){let t=e.__pos;return R.assert(typeof t=="number"),t}function g_e(e,t){R.assert(typeof t=="number"),e.__pos=t}function G2e(e){let t=e.__end;return R.assert(typeof t=="number"),t}function y_e(e,t){R.assert(typeof t=="number"),e.__end=t}function V2e(e,t){return Pa(e,t,!1,!0)}function vrt(e,t){let r=t;for(;r0?1:0,E=Ov(LN(e,h)+y,e);return E=V2e(e.text,E),Ov(LN(e,E),e)}function v_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=$b(e.text,i);if(s){let l=LN(e,t.end);for(let d of s){if(d.kind===2||LN(e,d.pos)>l)break;if(LN(e,d.end)>l)return Pa(e.text,d.end,!0,!0)}}}}function MD(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=bo($b(e.text,o),Hh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}let l=v_e(e,t,r);if(l)return l;let d=Pa(e.text,o,!0);return d!==o&&(s===2||Ud(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 brt(e){return ks(e)||Tc(e)}function Ert(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 Srt(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 b_e(e,t){return Pa(e.text,rA(e,t,{leadingTriviaOption:1}),!1,!0)}function Trt(e,t,r,i){let o=b_e(e,i);if(r===void 0||Sf(MD(e,t,{}),o,e))return o;let s=Ic(i.getStart(e),e);if(TQ(t,s)){let l=Ic(t.getStart(e),e);if(TQ(r,l)){let d=Pa(e.text,s.getEnd(),!0,!0);if(Sf(l.getStart(e),s.getStart(e),e))return Ud(e.text.charCodeAt(d-1))?d-1:d;if(Ud(e.text.charCodeAt(d)))return d}}return o}function Art(e,t){let r=gs(e,19,t),i=gs(e,20,t);return[r?.end,i?.end]}function AQ(e){return La(e)?e.properties:e.members}function E_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(Xl(i))}`}return e}function Irt(e){return Pa(e,0)===e.length}function IQ(e){let t=Sn(e,IQ,K2e,xrt,IQ),r=qs(t)?t:Object.create(t);return mh(r,B2e(e),G2e(e)),r}function xrt(e,t,r,i,o){let s=zn(e,t,r,i,o);if(!s)return s;R.assert(e);let l=s===e?L.createNodeArray(s.slice(0)):s;return mh(l,B2e(e),G2e(e)),l}function j2e(e){let t=0,r=tk(e),i=ne=>{ne&&g_e(ne,t)},o=ne=>{ne&&y_e(ne,t)},s=ne=>{ne&&g_e(ne,t)},l=ne=>{ne&&y_e(ne,t)},d=ne=>{ne&&g_e(ne,t)},p=ne=>{ne&&y_e(ne,t)};function h(ne,he){if(he||!Irt(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 ee(){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:ee,rawWrite:me,writeLiteral:ge,getTextPos:q,getLine:J,getColumn:re,getIndent:pe,isAtStartOfLine:xe,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function Rrt(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=ZW(i);o!==void 0&&(r=o.length,p());let s=Hh(i,r);if(!s)return r;let l,d;for(let h of s){if(h.kind===3){if(xF(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))(S_e||{}),T_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(T_e||{}),EM={leadingTriviaOption:0,trailingTriviaOption:0},H2e=class Tbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Tbe(qy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=Tbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){R.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:Jz(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=rA(t,s,i,o),d=MD(t,s,i);this.deleteRange(t,{pos:l,end:d}),o=!!v_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Pa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=rA(t,r,o),l=MD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=rA(t,r,o),l=i===void 0?t.text.length:rA(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=EM){this.replaceRange(t,QO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=EM){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=EM){this.replaceRangeWithNodes(t,QO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,QO(t,r,r,EM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=EM){this.replaceRangeWithNodes(t,QO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=EM){return!!v_e(t,r,i)}nextCommaToken(t,r){let i=lS(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=Rrt(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Ud(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};So(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=Yc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,rA(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,rA(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=Ov(r,t),l=Dde(t.text,s),d=U2e(t,l),p=uD(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:MD(t,d,{})});let s=r7(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=>Co(s.comment)?L.createJSDocText(s.comment):s.comment),o=rh(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,Ert(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=GC(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=Srt(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Vr(GC(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(Yo(r)){if(o=gs(r,22,t),!o){if(!zs(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=gs(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=(gs(r,21,t)||Va(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Hi(t)||Qc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Oi(t)?{suffix:", "}:To(t)?To(r)?{suffix:", "}:{}:Ca(t)&&kc(t.parent)||zg(t)?{suffix:", "}:Qu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:R.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Yc(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=Gr(r.body.statements,s=>td(s)&&hT(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=Qs(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=rA(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Ud(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(b6(o,s,t))return;let l=s.getStart(t),d=Oc.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 Oc.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,is(r),{node:r,sourceFile:t}),d=La(r)&&(!Jf(t)||!s),p=La(r)&&Jf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:d?",":mu(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 Drt(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Ef(r.end),L.createToken(27)),MD(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 R.assert(Hi(t)||cF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(R.assert(!r.name),r.kind===219){let o=hs(r,39,t),s=hs(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),jg(this,t,o)):(this.insertText(t,Ga(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=hs(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=kc.SmartIndenter.getContainingList(r,t)){if(!o){R.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=F2e(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((_rt(t.text,r.end)||!Sf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Ef(l),L.createToken(h));let y=kc.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]=brt(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&&rde(o.node,i))||(So(i)?this.deleteRange(r,pU(r,i)):x_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=kc.SmartIndenter.getContainingList(r,i);if(r!==Ka(o))return;let s=pW(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:S_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(GC(d,y=>y.sourceFile.path),y=>{let E=y[0].sourceFile,S=Ey(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=tb(N.range),w=N.kind===1?Gn(Cl(N.node))??N.sourceFile:N.kind===2?Gn(Cl(N.nodes[0]))??N.sourceFile:N.sourceFile,j=o(N,w,E,p,h,m);if(!(D.length===j.length&&Vde(w.text,j,D.start)))return eO(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:[eO(hd(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=$k("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,d),S=kc.formatDocument(E,m);return T_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:kc.SmartIndenter.getIndentation(m,h,K,E===A||rm(m,p)===m);S===void 0&&(S=kc.SmartIndenter.shouldIndentChildNode(K,d)&&K.indentSize||0);let B={text:j,getLineAndCharacterOfPosition(z){return ys(this,z)}},ce=kc.formatNodeGivenIndentation(w,B,p.languageVariant,Y,S,{...N,options:K});return T_e(j,ce)}function l(d,p,h){let m=z2e(h),y=fO(h);return IE({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={})),V2e={...FP,factory:Ek(FP.factory.flags|1,FP.factory.baseFactory)},(e=>{function t(s,l,d,p){switch(p.kind){case 169:{let S=p.parent;zs(S)&&S.parameters.length===1&&!hs(S,21,d)?s.replaceNodeWithText(d,p,"()"):YO(s,l,d,p);break}case 272:case 271:let h=d.imports.length&&p===Ga(d.imports).parent||p===Vr(d.statements,pT);jg(s,d,p,{leadingTriviaOption:h?0:kp(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ka(m.elements)?jg(s,d,p):YO(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:YO(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):YO(s,l,d,p);break;case 274:i(s,d,p);break;case 27:jg(s,d,p,{trailingTriviaOption:0});break;case 100:jg(s,d,p,{leadingTriviaOption:0});break;case 263:case 262:jg(s,d,p,{leadingTriviaOption:kp(p)?2:3});break;default:p.parent?yh(p.parent)&&p.parent.name===p?r(s,d,p.parent):ra(p.parent)&&zo(p.parent.arguments,p)?YO(s,l,d,p):jg(s,d,p):jg(s,d,p)}}e.deleteDeclaration=t;function r(s,l,d){if(!d.namedBindings)jg(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 jg(s,l,d.name)}}function i(s,l,d){if(d.parent.name){let p=R.checkDefined(so(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=uE(d,272);jg(s,l,p)}}function o(s,l,d,p){let{parent:h}=p;if(h.kind===299){s.deleteNodeRange(d,hs(h,21,d),hs(h,22,d));return}if(h.declarations.length!==1){YO(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:jg(s,d,h);break;case 243:jg(s,d,m,{leadingTriviaOption:kp(m)?2:3});break;default:R.assertNever(m)}}})(x_e||(x_e={}))}}),pr={};xa(pr,{ChangeTracker:()=>G2e,LeadingTriviaOption:()=>A_e,TrailingTriviaOption:()=>I_e,applyChanges:()=>T_e,assignPositionsToNode:()=>IQ,createWriter:()=>z2e,deleteNode:()=>jg,isThisTypeAnnotatable:()=>hrt,isValidLocationToAddComment:()=>B2e});var xrt=bt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";Irt()}}),R_e,D_e,Rrt=bt({"src/services/formatting/formattingContext.ts"(){"use strict";si(),R_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))(R_e||{}),D_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=R.checkDefined(e),this.currentTokenParent=R.checkDefined(t),this.nextTokenSpan=R.checkDefined(r),this.nextTokenParent=R.checkDefined(i),this.contextNode=R.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=hs(e,19,this.sourceFile),r=hs(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 C_e(e,t,r,i,o){let s=t===1?U2e:j2e;s.setText(e),s.resetTokenState(r);let l=!0,d,p,h,m,y,E=o({advance:S,readTokenInfo:B,readEOFTokenRange:z,isOnToken:ee,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&&Ka(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))(N_e||{}),P_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(P_e||{})}});function H2e(){let e=[];for(let ce=0;ce<=165;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(z=>!ce.some(ee=>ee===z)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=gM([...e,3]),o=gM([...e,1]),s=J2e(83,165),l=J2e(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=gM([80,32,3,86,95,102]),j=gM([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,Y2e],16),qr("SpaceAfterColon",59,r,[Ji,EB,Krt],4),qr("NoSpaceBeforeQuestionMark",r,58,[Ji,EB,Y2e],16),qr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,Lrt],4),qr("NoSpaceAfterQuestionMark",58,r,[Ji,Mrt],16),qr("NoSpaceBeforeDot",r,[25,29],[Ji,oit],16),qr("NoSpaceAfterDot",[25,29],r,[Ji],16),qr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,Urt],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,pke],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ji,pke],16),qr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,ib],4),qr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,ib],4),qr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,ib],4),qr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,ib],4),qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,ib],4),qr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,ib],4),qr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),qr("NewLineBeforeCloseBraceInBlockContext",i,20,[Q2e],8),qr("SpaceAfterCloseBrace",20,t(22),[Ji,Ort],4),qr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),qr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,ike],16),qr("SpaceAfterConditionalClosingParen",22,23,[SB],4),qr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[tke],16),qr("SpaceAfterStarInGeneratorDeclaration",42,80,[tke],4),qr("SpaceAfterFunctionInFuncDecl",100,r,[nA],4),qr("NewLineAfterOpenBraceInBlockContext",19,r,[Q2e],8),qr("SpaceAfterGetSetInMember",[139,153],80,[nA],4),qr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,uke],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,uke],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,Xrt],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,zrt,Brt],16),qr("SpaceBeforeBinaryKeywordOperator",r,d,[Ji,ib],4),qr("SpaceAfterBinaryKeywordOperator",d,r,[Ji,ib],4),qr("SpaceAfterVoidOperator",116,r,[Ji,eit],4),qr("SpaceBetweenAsyncAndOpenParen",134,21,[jrt,Ji],4),qr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),qr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),qr("SpaceBeforeJsxAttribute",r,80,[Hrt,Ji],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,44,[lke,Ji],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[lke,Ji],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,64,[ake,Ji],16),qr("NoSpaceAfterEqualInJsxAttribute",64,r,[ake,Ji],16),qr("NoSpaceBeforeJsxNamespaceColon",80,59,[ske],16),qr("NoSpaceAfterJsxNamespaceColon",59,80,[ske],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,[Yrt],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,$rt],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,wrt,Zrt],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],[qrt],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,tit],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,Qrt],16),qr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Y=[qr("SpaceAfterConstructor",137,21,[lf("insertSpaceAfterConstructor"),Ji],4),qr("NoSpaceAfterConstructor",137,21,[W_("insertSpaceAfterConstructor"),Ji],16),qr("SpaceAfterComma",28,r,[lf("insertSpaceAfterCommaDelimiter"),Ji,F_e,Grt,Vrt],4),qr("NoSpaceAfterComma",28,r,[W_("insertSpaceAfterCommaDelimiter"),Ji,F_e],16),qr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[lf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[W_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),nA],16),qr("SpaceAfterKeywordInControl",s,21,[lf("insertSpaceAfterKeywordsInControlFlowStatements"),SB],4),qr("NoSpaceAfterKeywordInControl",s,21,[W_("insertSpaceAfterKeywordsInControlFlowStatements"),SB],16),qr("SpaceAfterOpenParen",21,r,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("SpaceBeforeCloseParen",r,22,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],4),qr("SpaceBetweenOpenParens",21,21,[lf("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,[lf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],4),qr("SpaceBeforeCloseBracket",r,24,[lf("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,[X2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),$2e],4),qr("SpaceBeforeCloseBrace",r,20,[X2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),$2e],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,ike],16),qr("NoSpaceAfterOpenBrace",19,r,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("NoSpaceBeforeCloseBrace",r,20,[M_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("SpaceBetweenEmptyBraceBrackets",19,20,[lf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[M_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),qr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),oke],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),oke],16,1),qr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),qr("SpaceAfterOpenBraceInJsxExpression",19,r,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,DQ],4),qr("SpaceBeforeCloseBraceInJsxExpression",r,20,[lf("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,[lf("insertSpaceAfterSemicolonInForStatements"),Ji,k_e],4),qr("NoSpaceAfterSemicolonInFor",27,r,[W_("insertSpaceAfterSemicolonInForStatements"),Ji,k_e],16),qr("SpaceBeforeBinaryOperator",r,l,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),qr("SpaceAfterBinaryOperator",l,r,[lf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],4),qr("NoSpaceBeforeBinaryOperator",r,l,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),qr("NoSpaceAfterBinaryOperator",l,r,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),qr("SpaceBeforeOpenParenInFuncDecl",r,21,[lf("insertSpaceBeforeFunctionParenthesis"),Ji,nA],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[W_("insertSpaceBeforeFunctionParenthesis"),Ji,nA],16),qr("NewLineBeforeOpenBraceInControl",j,19,[lf("placeOpenBraceOnNewLineForControlBlocks"),SB,W_e],8,1),qr("NewLineBeforeOpenBraceInFunction",D,19,[lf("placeOpenBraceOnNewLineForFunctions"),nA,W_e],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[lf("placeOpenBraceOnNewLineForFunctions"),nke,W_e],8,1),qr("SpaceAfterTypeAssertion",32,r,[lf("insertSpaceAfterTypeAssertion"),Ji,B_e],4),qr("NoSpaceAfterTypeAssertion",32,r,[W_("insertSpaceAfterTypeAssertion"),Ji,B_e],16),qr("SpaceBeforeTypeAnnotation",r,[58,59],[lf("insertSpaceBeforeTypeAnnotation"),Ji,w_e],4),qr("NoSpaceBeforeTypeAnnotation",r,[58,59],[W_("insertSpaceBeforeTypeAnnotation"),Ji,w_e],16),qr("NoOptionalSemicolon",27,o,[q2e("semicolons","remove"),rit],32),qr("OptionalSemicolon",r,o,[q2e("semicolons","insert"),iit],64)],B=[qr("NoSpaceBeforeSemicolon",r,27,[Ji],16),qr("SpaceBeforeOpenBraceInControl",j,19,[L_e("placeOpenBraceOnNewLineForControlBlocks"),SB,z_e,O_e],4,1),qr("SpaceBeforeOpenBraceInFunction",D,19,[L_e("placeOpenBraceOnNewLineForFunctions"),nA,RQ,z_e,O_e],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[L_e("placeOpenBraceOnNewLineForFunctions"),nke,z_e,O_e],4,1),qr("NoSpaceBeforeComma",r,28,[Ji],16),qr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),qr("NoSpaceAfterCloseBracket",24,r,[Ji,Jrt],16),qr("SpaceAfterSemicolon",27,r,[Ji],4),qr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),qr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,F_e,Nrt],4),qr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Y,...B]}function qr(e,t,r,i,o,s=0){return{leftTokenRange:K2e(t),rightTokenRange:K2e(r),rule:{debugName:e,context:i,action:o,flags:s}}}function gM(e){return{tokens:e,isSpecific:!0}}function K2e(e){return typeof e=="number"?gM([e]):So(e)?gM(e):e}function J2e(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)zo(r,o)||i.push(o);return gM(i)}function q2e(e,t){return r=>r.options&&r.options[e]===t}function lf(e){return t=>t.options&&As(t.options,e)&&!!t.options[e]}function M_e(e){return t=>t.options&&As(t.options,e)&&!t.options[e]}function W_(e){return t=>!t.options||!As(t.options,e)||!t.options[e]}function L_e(e){return t=>!t.options||!As(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function X2e(e){return t=>!t.options||!As(t.options,e)||!!t.options[e]}function k_e(e){return e.contextNode.kind===248}function Nrt(e){return!k_e(e)}function ib(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!ib(e)}function Y2e(e){return!w_e(e)}function w_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||vI(t)}function Prt(e){return Vo(e.contextNode)&&e.contextNode.questionToken}function Mrt(e){return!Prt(e)}function Lrt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function O_e(e){return e.TokensAreOnSameLine()||RQ(e)}function $2e(e){return e.contextNode.kind===206||e.contextNode.kind===200||krt(e)}function W_e(e){return RQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Q2e(e){return Z2e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function krt(e){return Z2e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Z2e(e){return eke(e.contextNode)}function RQ(e){return eke(e.nextTokenParent)}function eke(e){if(rke(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 wrt(e){return!nA(e)}function tke(e){return e.contextNode.kind===262||e.contextNode.kind===218}function nke(e){return rke(e.contextNode)}function rke(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 Ort(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 ike(e){return e.contextNode.kind===210}function Wrt(e){return e.contextNode.kind===213}function Frt(e){return e.contextNode.kind===214}function zrt(e){return Wrt(e)||Frt(e)}function Brt(e){return e.currentTokenSpan.kind!==28}function Grt(e){return e.nextTokenSpan.kind!==24}function Vrt(e){return e.nextTokenSpan.kind!==22}function jrt(e){return e.contextNode.kind===219}function Urt(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function oke(e){return e.contextNode.kind!==12}function F_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function DQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Hrt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function ake(e){return e.contextNode.kind===291}function Krt(e){return e.nextTokenParent.kind!==295}function ske(e){return e.nextTokenParent.kind===295}function lke(e){return e.contextNode.kind===285}function Jrt(e){return!nA(e)&&!RQ(e)}function qrt(e){return e.TokensAreOnSameLine()&&bf(e.contextNode)&&cke(e.currentTokenParent)&&!cke(e.nextTokenParent)}function cke(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===170}function Xrt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function z_e(e){return e.formattingRequestKind!==2}function Yrt(e){return e.contextNode.kind===267}function $rt(e){return e.contextNode.kind===187}function Qrt(e){return e.contextNode.kind===180}function dke(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 dke(e.currentTokenSpan,e.currentTokenParent)||dke(e.nextTokenSpan,e.nextTokenParent)}function B_e(e){return e.contextNode.kind===216}function Zrt(e){return!B_e(e)}function eit(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function uke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function tit(e){return e.contextNode.kind===235}function pke(e){return!nit(e)}function nit(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function rit(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(sR(t)){let s=e.nextTokenParent===e.currentTokenParent?sS(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:Vo(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 iit(e){return a7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function oit(e){return!wr(e.contextNode)||!mp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var ait=bt({"src/services/formatting/rules.ts"(){"use strict";si(),ZO()}});function sit(e,t){return{options:e,getRules:lit(),host:t}}function lit(){return G_e===void 0&&(G_e=dit(H2e())),G_e}function cit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function dit(e){let t=uit(e);return r=>{let i=t[fke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~cit(s);l.action&d&&oo(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function uit(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=fke(s,l),p=t[d];p===void 0&&(p=t[d]=[]),pit(p,i.rule,o,r,d)}}return t}function fke(e,t){return R.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*CQ+t}function pit(e,t,r,i,o){let s=t.action&3?r?0:yM.StopRulesAny:t.context!==bB?r?yM.ContextRulesSpecific:yM.ContextRulesAny:r?yM.NoContextRulesSpecific:yM.NoContextRulesAny,l=i[o]||0;e.splice(fit(l,s),0,t),i[o]=mit(l,s)}function fit(e,t){let r=0;for(let i=0;i<=t;i+=ND)r+=e&AB,e>>=ND;return r}function mit(e,t){let r=(e>>t&AB)+1;return R.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))(yM||{})}});function NQ(e,t,r){let i={pos:e,end:t,kind:r};return R.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>R.formatSyntaxKind(r)}),i}function hit(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=m2(i,t);for(;y_(t.text.charCodeAt(o));)o--;jd(t.text.charCodeAt(o))&&o--;let s={pos:wv(i-1,t),end:o+1};return IB(s,t,r,2)}function git(e,t,r){let i=V_e(e,27,t);return mke(j_e(i),t,r,3)}function yit(e,t,r){let i=V_e(e,19,t);if(!i)return[];let o=i.parent,s=j_e(o),l={pos:rm(s.getStart(t),t),end:e};return IB(l,t,r,4)}function vit(e,t,r){let i=V_e(e,20,t);return mke(j_e(i),t,r,5)}function bit(e,t){let r={pos:0,end:e.text.length};return IB(r,e,t,0)}function Eit(e,t,r,i){let o={pos:rm(e,r),end:t};return IB(o,r,i,1)}function V_e(e,t,r){let i=Tc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function j_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Sit(t.parent,t);)t=t.parent;return t}function Sit(e,t){switch(e.kind){case 263:case 264:return of(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&of(r.statements,t);case 312:case 241:case 268:return of(e.statements,t);case 299:return of(e.block.statements,t)}return!1}function Tit(e,t){return r(t);function r(i){let o=Bo(i,s=>xq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function Ait(e,t){if(!e.length)return o;let r=e.filter(s=>XP(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 Iit(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 xit(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 Rit(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return C_e(t.text,r,l.pos,l.end,d=>_ke(l,e,i,o,d,s,1,p=>!1,t))}function mke(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=Tit(e,t);return C_e(t.text,t.languageVariant,Iit(o,e,t),e.end,s=>_ke(e,o,F_.getIndentationForNode(o,e,t,r.options),xit(o,r.options,t),s,r,i,Ait(t.parseDiagnostics,e),t))}function _ke(e,t,r,i,o,{options:s,getRules:l,host:d},p,h,m){var y;let E=new D_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,Ft,_t){if(XP(Ft,be,ze)||Yw(Ft,be,ze)){if(_t!==-1)return _t}else{let Je=m.getLineAndCharacterOfPosition(be).line,ft=rm(be,m),Zt=F_.findFirstNonWhitespaceColumn(ft,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,Ft,_t,Je){let ft=F_.shouldIndentChildNode(s,be)?s.indentSize:0;return Je===ze?{indentation:ze===w?j:_t.getIndentation(),delta:Math.min(s.indentSize,_t.getDelta(be)+ft)}:tt===-1?be.kind===21&&ze===w?{indentation:j,delta:_t.getDelta(be)}:F_.childStartsOnTheSameLineWithElseInIfStatement(Ft,be,ze,m)||F_.childIsUnindentedBranchOfConditionalExpression(Ft,be,ze,m)||F_.argumentStartsOnSameLineAsPreviousArgument(Ft,be,ze,m)?{indentation:_t.getIndentation(),delta:ft}:{indentation:_t.getIndentation()+_t.getDelta(be),delta:ft}:{indentation:tt,delta:ft}}function z(be){if(Am(be)){let ze=Vr(be.modifiers,Sa,Kl(be.modifiers,vd));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=No(be);if(ze)return ze.kind}}function ee(be,ze,tt,Ft){return{getIndentationForComment:(ft,Zt,en)=>{switch(ft){case 20:case 24:case 22:return tt+Je(en)}return Zt!==-1?Zt:tt},getIndentationForToken:(ft,Zt,en,Dn)=>!Dn&&_t(ft,Zt,en)?tt+Je(en):tt,getIndentation:()=>tt,getDelta:Je,recomputeIndentation:(ft,Zt)=>{F_.shouldIndentChildNode(s,Zt,be,m)&&(tt+=ft?s.indentSize:-s.indentSize,Ft=F_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function _t(ft,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!==ft&&!(bf(be)&&Zt===z(be))}function Je(ft){return F_.nodeWillIndentChild(s,be,ft,m,!0)?Ft:0}}function me(be,ze,tt,Ft,_t,Je){if(!XP(e,be.getStart(m),be.getEnd()))return;let ft=ee(be,tt,_t,Je),Zt=ze;for(Bo(be,pn=>{en(pn,-1,be,ft,tt,Ft,!1)},pn=>{Dn(pn,be,tt,ft)});o.isOnToken()&&o.getTokenFullStart()Math.min(be.end,e.end))break;Kn(pn,be,ft,be)}function en(pn,Yt,qt,hi,uo,Li,Eo,Qn){if(R.assert(!qs(pn)),Fl(pn)||Bre(qt,pn))return Yt;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(Eo&&of(e,qt)&&(Ye=B(Ur,pn.end,uo,e,Yt),Ye!==-1&&(Yt=Ye)),!XP(e,pn.pos,pn.end))return pn.ende.end)return Yt;if(li.token.end>Ur){li.token.pos>Ur&&o.skipToStartOf(pn);break}Kn(li,be,hi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Yt;if(gI(pn)){let li=o.readTokenInfo(pn);if(pn.kind!==12)return R.assert(li.token.end===pn.end,"Token end is child end"),Kn(li,be,hi,pn),Yt}let Wt=pn.kind===170?Er:Li,In=ce(pn,Er,Ye,be,hi,Wt);return me(pn,Zt,Er,on,In.indentation,In.delta),Zt=be,Qn&&qt.kind===209&&Yt===-1&&(Yt=In.indentation),Yt}function Dn(pn,Yt,qt,hi){R.assert(b0(pn)),R.assert(!qs(pn));let uo=Dit(Yt,pn),Li=hi,Eo=qt;if(!XP(e,pn.pos,pn.end)){pn.endpn.pos)break;if(Er.token.kind===uo){Eo=m.getLineAndCharacterOfPosition(Er.token.pos).line,Kn(Er,Yt,hi,Yt);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=ee(Yt,qt,on,s.indentSize)}else Kn(Er,Yt,hi,Yt)}let Qn=-1;for(let Er=0;Erpe(In.pos,Wt,!1))}on!==-1&&Ye&&(pe(pn.token.pos,on,Qn===1),w=Er.line,j=on)}o.advance(),Zt=Yt}}function ge(be,ze,tt,Ft){for(let _t of be){let Je=of(e,_t);switch(_t.kind){case 3:Je&&ne(_t,ze,!tt),tt=!1;break;case 2:tt&&Je&&Ft(_t),tt=!1;break;case 4:tt=!0;break}}return tt}function q(be,ze,tt,Ft){for(let _t of be)if(Uz(_t.kind)&&of(e,_t)){let Je=m.getLineAndCharacterOfPosition(_t.pos);J(_t,Je,ze,tt,Ft)}}function J(be,ze,tt,Ft,_t){let Je=h(be),ft=0;if(!Je)if(A)ft=re(be,ze.line,tt,A,D,N,Ft,_t);else{let Zt=m.getLineAndCharacterOfPosition(e.pos);he(Zt.line,ze.line)}return A=be,S=be.end,N=tt,D=ze.line,ft}function re(be,ze,tt,Ft,_t,Je,ft,Zt){E.updateContext(Ft,Je,be,tt,ft);let en=l(E),Dn=E.options.trimTrailingWhitespace!==!1,Kn=0;return en?qte(en,pn=>{if(Kn=Et(pn,Ft,_t,be,ze),Zt)switch(Kn){case 2:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!1,ft);break;case 1:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!0,ft);break;default:R.assert(Kn===0)}Dn=Dn&&!(pn.action&16)&&pn.flags!==1}):Dn=Dn&&be.kind!==1,ze!==_t&&Dn&&he(_t,ze,Ft),Kn}function pe(be,ze,tt){let Ft=U_e(ze,s);if(tt)De(be,0,Ft);else{let _t=m.getLineAndCharacterOfPosition(be),Je=wv(_t.line,m);(ze!==xe(Je,_t.character)||fe(Ft,Je))&&De(Je,_t.character,Ft)}}function xe(be,ze){let tt=0;for(let Ft=0;Ft0){let Li=U_e(uo,s);De(qt,hi.character,Li)}else Ie(qt,hi.character)}}function he(be,ze,tt){for(let Ft=be;FtJe)continue;let ft=Ce(_t,Je);ft!==-1&&(R.assert(ft===_t||!y_(m.text.charCodeAt(ft-1))),Ie(ft,Je+1-ft))}}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)&&(zeXw(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Dit(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 Cit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function U_e(e,t){if((!PQ||PQ.tabSize!==t.tabSize||PQ.indentSize!==t.indentSize)&&(PQ={tabSize:t.tabSize,indentSize:t.indentSize},$O=QO=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return QO||(QO=[]),QO[o]===void 0?(i=nO(" ",t.indentSize*o),QO[o]=i):i=QO[o],s?i+nO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return $O||($O=[]),$O[i]===void 0?$O[i]=s=nO(" ",i):s=$O[i],o?s+nO(" ",o):s}}var PQ,$O,QO,Nit=bt({"src/services/formatting/formatting.ts"(){"use strict";si(),ZO()}}),F_,Pit=bt({"src/services/formatting/smartIndenter.ts"(){"use strict";si(),ZO(),(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),Ie=hke(he,ne,ve||null);if(Ie&&Ie.kind===3)return i(he,ne,Ce,Ie);if(!ve)return d(Ce);if(Lq(ve.kind)&&ve.getStart(he)<=ne&&ne=0),ve<=Ie)return J(wv(Ie,ne),he,ne,Ce);let De=wv(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 Ie=ne.text.charCodeAt(Ge);if(!Dg(Ie))break;Ge--}let ve=rm(Ge,ne);return J(ve,Ge,ne,Ce)}function s(ne,he,Ce,Ge,ve,Ie){let De,Le=Ce;for(;Le;){if(Rq(Le,he,ne)&&xe(Ie,Le,De,ne,!0)){let be=A(Le,ne),ze=S(Ce,Le,Ge,ne),tt=ze!==0?ve&&ze===2?Ie.indentSize:0:Ge!==be.line?Ie.indentSize:0;return p(Le,be,void 0,tt,ne,!0,Ie)}let Et=ee(Le,ne,Ie,!0);if(Et!==-1)return Et;De=Le,Le=Le.parent}return d(Ie)}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,Ie,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,ft=ee(ne,ve,De,Je);if(ft!==-1||(ft=y(ne,Et,he,tt,ve,De),ft!==-1))return ft+Ge}xe(De,Et,ne,ve,Ie)&&!tt&&(Ge+=De.indentSize);let Ft=N(Et,ne,he.line,ve);ne=Et,Et=ne.parent,he=Ft?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=ide(ne);return Ge&&Ge.listItemIndex>0?me(Ge.list.getChildren(),Ge.listItemIndex-1,he,Ce):-1}function y(ne,he,Ce,Ge,ve,Ie){return(Hd(ne)||c2(ne))&&(he.kind===312||!Ge)?ge(Ce,ve,Ie):-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=sS(ne,he,Ge);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Ie=A(ve,Ge).line;return Ce===Ie?2:0}return 0}function A(ne,he){return he.getLineAndCharacterOfPosition(ne.getStart(he))}function N(ne,he,Ce,Ge){if(!(ra(ne)&&zo(ne.arguments,he)))return!1;let ve=ne.expression.getEnd();return ys(Ge,ve).line===Ce}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(ne,he,Ce,Ge){if(ne.kind===245&&ne.elseStatement===he){let ve=hs(ne,93,Ge);return R.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=ys(Ge,ne.condition.end).line;if(he===ne.whenTrue)return Ce===ve;{let Ie=A(ne.whenTrue,Ge).line,De=ys(Ge,ne.whenTrue.end).line;return ve===Ie&&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 Ie=ne.arguments.indexOf(ve);if(Ie===0)return!1;let De=ne.arguments[Ie-1],Le=ys(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(Ie){return Ie&&Yw(ce(Ce,Ie,Ge),ne,he)?Ie: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!==Ie.line)return ge(Ie,Ce,Ge);Ie=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,Ie=0;for(let De=ne;DeD_e,FormattingRequestKind:()=>R_e,RuleAction:()=>N_e,RuleFlags:()=>P_e,SmartIndenter:()=>F_,anyContext:()=>bB,createTextRangeWithKind:()=>NQ,formatDocument:()=>bit,formatNodeGivenIndentation:()=>Rit,formatOnClosingCurly:()=>vit,formatOnEnter:()=>hit,formatOnOpeningCurly:()=>yit,formatOnSemicolon:()=>git,formatSelection:()=>Eit,getAllRules:()=>H2e,getFormatContext:()=>sit,getFormattingScanner:()=>C_e,getIndentationString:()=>U_e,getRangeOfEnclosingComment:()=>hke});var ZO=bt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Rrt(),Drt(),Crt(),ait(),_it(),Nit(),Pit()}}),si=bt({"src/services/_namespaces/ts.ts"(){"use strict";Qo(),Vw(),Fje(),lUe(),pUe(),Uxe(),AUe(),IUe(),MUe(),VUe(),jUe(),HUe(),ZUe(),eHe(),Eqe(),Sqe(),Iqe(),Hqe(),Jqe(),Ta(),Vme(),t_e(),Ttt(),Dtt(),Htt(),mRe(),wRe(),pnt(),bnt(),Th(),Dnt(),nrt(),drt(),mrt(),xrt(),ZO()}});function Mit(){return vke??(vke=new fm(qp))}function gke(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?` ${ng(o,[e])}`:"",s}function Lit(e,t,r,i){let o=gke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function kit(e,t,r,i){let o=!1;return()=>{yke&&!o&&(R.log.warn(gke(e,!1,t,r,i)),o=!0)}}function wit(e,t={}){let r=typeof t.typeScriptVersion=="string"?new fm(t.typeScriptVersion):t.typeScriptVersion??Mit(),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?Lit(e,i,s,t.message):d?kit(e,i,s,t.message):Ja}function Oit(e,t){return function(){return e(),t.apply(this,arguments)}}function H_e(e,t){let r=wit(t?.name??R.getFunctionName(e),t);return Oit(r,e)}var yke,vke,bke=bt({"src/deprecatedCompat/deprecate.ts"(){"use strict";LQ(),yke=!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)&&As(t,`${d}`)&&(t[d]=H_e(t[d],{...i[d],name:e}))}let o=Wit(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 Wit(e,t){return r=>{for(let i=0;As(e,`${i}`)&&As(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function Eke(e){return{overload:t=>({bind:r=>({finish:()=>MQ(e,t,r),deprecate:i=>({finish:()=>MQ(e,t,r,i)})})})}}var Fit=bt({"src/deprecatedCompat/deprecations.ts"(){"use strict";LQ(),bke()}}),zit=bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";LQ(),bke(),coe(e=>{let t=e.getIdentifierConstructor();As(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:H_e(function(){return tE(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),As(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:H_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";Qo(),Fit(),zit()}}),Bit=bt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";Qo(),Vw(),J_e()}});function Ske(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 Git(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=Tke(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function Tke(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 Ake(e){return`@types/${e}@ts${g_}`}var Ike,xke,Vit=bt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";Bit(),J_e(),Ike={isEnabled:()=>!1,writeLine:Ja},xke=class{constructor(e,t,r,i,o,s=Ike){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:R.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:JP,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${RE(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(ai(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:Gw,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Gw,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}':${RE(i)}`),this.log.writeLine(`Loaded content of '${r}':${RE(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!As(o.dependencies,s))continue;let l=nc(s);if(!l)continue;let d=Ske(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:qp,projectName:e.projectName});let l=o.map(Ake);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=Ske(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:qp};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=ai(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||uh(i,o=>!r.has(o))||uh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:JP,projectName:e,files:t})):this.sendResponse({kind:JP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:zw}}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()})}}}}}),K_e={};xa(K_e,{TypingsInstaller:()=>xke,getNpmCommandForInstallation:()=>Tke,installNpmPackages:()=>Git,typingsName:()=>Ake});var jit=bt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";Vit()}}),J_e=bt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";Dz(),jit()}}),Uit=bt({"src/server/types.ts"(){"use strict"}});function q_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 ul(e){return ma(e)}function e8(e,t,r){let i=cp(e)?e:_o(e,t);return r(i)}function Rke(e){return e}function Dke(){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 X_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Y_e(e){return`/dev/null/inferredProject${e}*`}function $_e(e){return`/dev/null/autoImportProviderProject${e}*`}function Q_e(e){return`/dev/null/auxiliaryProject${e}*`}function Z_e(){return[]}var kQ,_c,wQ,Qy,Hit=bt({"src/server/utilitiesPublic.ts"(){"use strict";ob(),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=Z_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})(Qy||(Qy={}))}});function OQ(e){let t=nc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Cke(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=Sy(e,t,Zs,r);i>=0&&e.splice(i,1)}var WQ,FQ,Kit=bt({"src/server/utilities.ts"(){"use strict";ob(),iA(),WQ=class U4e{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(U4e.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=iu)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=iu)==null||s.logStopScheduledOperation()}},FQ=class H4e{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(H4e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=iu)==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=iu)==null||i.logStopScheduledOperation()}}}}),zQ,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe,che,dhe,uhe,phe,fhe=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||{}),ehe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(ehe||{}),the=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(the||{}),nhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(nhe||{}),rhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(rhe||{}),ihe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(ihe||{}),ohe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ohe||{}),ahe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(ahe||{}),she=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(she||{}),lhe=(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))(lhe||{}),che=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(che||{}),dhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(dhe||{}),uhe=(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))(uhe||{}),phe=(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))(phe||{})}}),mhe={};xa(mhe,{ClassificationType:()=>phe,CommandTypes:()=>zQ,CompletionTriggerKind:()=>ihe,IndentStyle:()=>ohe,JsxEmit:()=>she,ModuleKind:()=>lhe,ModuleResolutionKind:()=>che,NewLineKind:()=>dhe,OrganizeImportsMode:()=>ehe,PollingWatchKind:()=>rhe,ScriptTarget:()=>uhe,SemicolonPreference:()=>ahe,WatchDirectoryKind:()=>nhe,WatchFileKind:()=>the});var Jit=bt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";fhe()}});function t8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&nc(e)[0]==="^"||e.includes(":^")&&!e.includes(rl)}function Nke(e){return!e||r8(e)?Qy.ThrowNoProject():e}function qit(e){R.assert(typeof e=="number",`Expected position ${e} to be a number.`),R.assert(e>=0,"Expected position to be non-negative.")}function Xit(e){R.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),R.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),R.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),R.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var BQ,GQ,Yit=bt({"src/server/scriptInfo.ts"(){"use strict";ob(),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 R.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(R.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 R.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(R.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(R.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return R.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=hI(R.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=t8(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)){R.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 zo(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){LE(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)}Vh(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Qy.ThrowNoProject();case 1:return Nke(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,r8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){qit(e);let t=this.textStorage.positionToLineOffset(e);return Xit(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Co(this.sourceMapFilePath)&&(Rf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Pke(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 $it(e,t){return e.enable!==t.enable||!Pke(e.include,t.include)||!Pke(e.exclude,t.exclude)}function Qit(e,t){return jv(e)!==jv(t)}function Zit(e,t){return e===t?!1:!Vm(e,t)}var xB,VQ,eot=bt({"src/server/typingsCache.ts"(){"use strict";ob(),iA(),xB={isKnownTypesPackageName:jm,installPackage:jo,enqueueInstallTypingsRequest:Ja,attach:Ja,onProjectClosed:Ja,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||$it(i,o.typeAcquisition)||Qit(e.getCompilationSettings(),o.compilerOptions)||Zit(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 n8(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:bd(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 tot(e){let t=n8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function _he(e){let t=n8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function hhe(e){let t=n8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function ghe(e){return!e.some(t=>Sl(t,".ts")&&!bd(t)||Sl(t,".tsx"))}function yhe(e){return e.generatedFilePath!==void 0}function not(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=zC(va(o,d=>rot(e,d,s,t)));return(i=rr)==null||i.pop(),l}function rot(e,t,r,i){return FC(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!VN(s.extension))&&!qc(l)&&!r.some(d=>d===l)&&(o=Tn(o,_w(l).packageName))},t),o||_c})}function PD(e){return e.projectKind===0}function LE(e){return e.projectKind===1}function jQ(e){return e.projectKind===2}function r8(e){return e.projectKind===3||e.projectKind===4}var vM,rA,UQ,HQ,KQ,JQ,qQ,RB,iot=bt({"src/server/project.ts"(){"use strict";ob(),ob(),iA(),vM=(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))(vM||{}),rA=class K4e{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=jm,this.dirty=!1,this.typingFiles=_c,this.moduleSpecifierCache=Nhe(this),this.createHash=ea(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||jv(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:R.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=ea(E,E.realpath),this.resolutionCache=PJ(this,this.currentDirectory,!0),this.languageService=cpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),r8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return zp(this),hhe(this)}isJsOnlyProject(){return zp(this),tot(this)}static resolveModule(t,r,i,o){return K4e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){R.assertIsDefined(i.require);let s,l;for(let d of r){let p=Nd(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){R.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=ai(ma(this.projectService.getExecutingFilePath()));return Yr(t,KL(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 nl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),Lc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),Lc.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),Lc.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=_o(l.name,this.currentDirectory);r(d,l.text,l.writeByteOrderMark)}if(this.builderState&&Af(this.compilerOptions)){let l=s.filter(d=>bd(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):KC(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&&(R.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,Km),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 R.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=dpe(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){R.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:vM[this.projectKind]}),(r=iu)==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=not(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=iu)==null||o.logStopUpdateGraph(),(s=rr)==null||s.pop(),!l}updateTypingFiles(t){TW(t,this.typingFiles,Ex(!this.useCaseSensitiveFileNames()),Ja,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&$u(this.typingWatchers,Km),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Bw})}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),Lc.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(xg(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),Lc.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(rl,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();R.assert(i===this.program),R.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Js(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(jm,jm);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(),R.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=Ds(this.compilerOptions);yhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Tu(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&&uh(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=Js()-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(LE(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(_o(r,this.currentDirectory),(s,l)=>{LE(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),Lc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Ds(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(yhe(this.generatedFilesMap)){R.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),Lc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(yhe(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)?Qy.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 +`: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 R.assert(Hi(t)||uF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(R.assert(!r.name),r.kind===219){let o=gs(r,39,t),s=gs(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=gs(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=Oc.SmartIndenter.getContainingList(r,t)){if(!o){R.fail("node is not a list element");return}let s=Kx(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=V2e(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=Ic(r.pos,t);h=TQ(r,y)?y.kind:28,m=rm(o[s-1].getStart(t),t)!==p}if((vrt(t.text,r.end)||!Sf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Ef(l),L.createToken(h));let y=Oc.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),E=Pa(t.text,l,!0,!1);for(;E!==l&&Ud(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]=Art(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&&tde(o.node,i))||(So(i)?this.deleteRange(r,pU(r,i)):A_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=Oc.SmartIndenter.getContainingList(r,i);if(r!==Ja(o))return;let s=mW(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:b_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(KC(d,y=>y.sourceFile.path),y=>{let E=y[0].sourceFile,S=Ey(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=nb(N.range),w=N.kind===1?Gn(Pl(N.node))??N.sourceFile:N.kind===2?Gn(Pl(N.nodes[0]))??N.sourceFile:N.sourceFile,j=o(N,w,E,p,h,m);if(!(D.length===j.length&&Bde(w.text,j,D.start)))return rO(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(O6(d),p,h,m);return{fileName:d,textChanges:[rO(yd(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=ew("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,d),S=Oc.formatDocument(E,m);return E_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=>Ix(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||Sl(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=g7(N,p),Y=y!==void 0?y:Oc.SmartIndenter.getIndentation(m,h,K,E===A||rm(m,p)===m);S===void 0&&(S=Oc.SmartIndenter.shouldIndentChildNode(K,d)&&K.indentSize||0);let B={text:j,getLineAndCharacterOfPosition(z){return ys(this,z)}},ce=Oc.formatNodeGivenIndentation(w,B,p.languageVariant,Y,S,{...N,options:K});return E_e(j,ce)}function l(d,p,h){let m=j2e(h),y=hO(h);return IE({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={})),K2e={...jP,factory:Ak(jP.factory.flags|1,jP.factory.baseFactory)},(e=>{function t(s,l,d,p){switch(p.kind){case 169:{let S=p.parent;zs(S)&&S.parameters.length===1&&!gs(S,21,d)?s.replaceNodeWithText(d,p,"()"):ZO(s,l,d,p);break}case 272:case 271:let h=d.imports.length&&p===Va(d.imports).parent||p===Gr(d.statements,mT);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):ZO(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:ZO(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):ZO(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?yh(p.parent)&&p.parent.name===p?r(s,d,p.parent):ra(p.parent)&&zo(p.parent.arguments,p)?ZO(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=Pa(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=R.checkDefined(so(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=uE(d,272);Ug(s,l,p)}}function o(s,l,d,p){let{parent:h}=p;if(h.kind===299){s.deleteNodeRange(d,gs(h,21,d),gs(h,22,d));return}if(h.declarations.length!==1){ZO(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:R.assertNever(m)}}})(A_e||(A_e={}))}}),fr={};Ra(fr,{ChangeTracker:()=>H2e,LeadingTriviaOption:()=>S_e,TrailingTriviaOption:()=>T_e,applyChanges:()=>E_e,assignPositionsToNode:()=>IQ,createWriter:()=>j2e,deleteNode:()=>Ug,isThisTypeAnnotatable:()=>brt,isValidLocationToAddComment:()=>U2e});var Nrt=bt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";Crt()}}),I_e,x_e,Prt=bt({"src/services/formatting/formattingContext.ts"(){"use strict";ai(),I_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))(I_e||{}),x_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=R.checkDefined(e),this.currentTokenParent=R.checkDefined(t),this.nextTokenSpan=R.checkDefined(r),this.nextTokenParent=R.checkDefined(i),this.contextNode=R.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=gs(e,19,this.sourceFile),r=gs(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 R_e(e,t,r,i,o){let s=t===1?q2e:J2e;s.setText(e),s.resetTokenState(r);let l=!0,d,p,h,m,y,E=o({advance:S,readTokenInfo:B,readEOFTokenRange:z,isOnToken:ee,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))(D_e||{}),C_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(C_e||{})}});function X2e(){let e=[];for(let ce=0;ce<=165;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(z=>!ce.some(ee=>ee===z)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=SM([...e,3]),o=SM([...e,1]),s=$2e(83,165),l=$2e(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,...v7],D=i,w=SM([80,32,3,86,95,102]),j=SM([22,3,92,113,98,93,85]),K=[qr("IgnoreBeforeComment",r,A,SB,1),qr("IgnoreAfterLineComment",2,r,SB,1),qr("NotSpaceBeforeColon",r,59,[Ji,TB,eke],16),qr("SpaceAfterColon",59,r,[Ji,TB,Yrt],4),qr("NoSpaceBeforeQuestionMark",r,58,[Ji,TB,eke],16),qr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,Wrt],4),qr("NoSpaceAfterQuestionMark",58,r,[Ji,Ort],16),qr("NoSpaceBeforeDot",r,[25,29],[Ji,cit],16),qr("NoSpaceAfterDot",[25,29],r,[Ji],16),qr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,qrt],16),qr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ji,TB],16),qr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ji],16),qr("NoSpaceAfterUnaryPredecrementOperator",47,E,[Ji],16),qr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Ji,hke],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ji,hke],16),qr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ji,ob],4),qr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ji,ob],4),qr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ji,ob],4),qr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ji,ob],4),qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ji,ob],4),qr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ji,ob],4),qr("NoSpaceAfterCloseBrace",20,[28,27],[Ji],16),qr("NewLineBeforeCloseBraceInBlockContext",i,20,[nke],8),qr("SpaceAfterCloseBrace",20,t(22),[Ji,Brt],4),qr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),qr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,lke],16),qr("SpaceAfterConditionalClosingParen",22,23,[AB],4),qr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[oke],16),qr("SpaceAfterStarInGeneratorDeclaration",42,80,[oke],4),qr("SpaceAfterFunctionInFuncDecl",100,r,[iA],4),qr("NewLineAfterOpenBraceInBlockContext",19,r,[nke],8),qr("SpaceAfterGetSetInMember",[139,153],80,[iA],4),qr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,_ke],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,_ke],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,Zrt],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,jrt,Urt],16),qr("SpaceBeforeBinaryKeywordOperator",r,d,[Ji,ob],4),qr("SpaceAfterBinaryKeywordOperator",d,r,[Ji,ob],4),qr("SpaceAfterVoidOperator",116,r,[Ji,iit],4),qr("SpaceBetweenAsyncAndOpenParen",134,21,[Jrt,Ji],4),qr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),qr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),qr("SpaceBeforeJsxAttribute",r,80,[Xrt,Ji],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,44,[pke,Ji],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[pke,Ji],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,64,[dke,Ji],16),qr("NoSpaceAfterEqualInJsxAttribute",64,r,[dke,Ji],16),qr("NoSpaceBeforeJsxNamespaceColon",80,59,[uke],16),qr("NoSpaceAfterJsxNamespaceColon",59,80,[uke],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,[eit],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,TB],16),qr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ji,tit],16),qr("NoSpaceBeforeOpenAngularBracket",N,30,[Ji,IB],16),qr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ji,IB],16),qr("NoSpaceAfterOpenAngularBracket",30,r,[Ji,IB],16),qr("NoSpaceBeforeCloseAngularBracket",r,32,[Ji,IB],16),qr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ji,IB,zrt,rit],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],[Qrt],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,oit],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,nit],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,O_e,Hrt,Krt],4),qr("NoSpaceAfterComma",28,r,[W_("insertSpaceAfterCommaDelimiter"),Ji,O_e],16),qr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[sf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),iA],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[W_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),iA],16),qr("SpaceAfterKeywordInControl",s,21,[sf("insertSpaceAfterKeywordsInControlFlowStatements"),AB],4),qr("NoSpaceAfterKeywordInControl",s,21,[W_("insertSpaceAfterKeywordsInControlFlowStatements"),AB],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,[Z2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),tke],4),qr("SpaceBeforeCloseBrace",r,20,[Z2e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),tke],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,lke],16),qr("NoSpaceAfterOpenBrace",19,r,[N_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("NoSpaceBeforeCloseBrace",r,20,[N_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ji],16),qr("SpaceBetweenEmptyBraceBrackets",19,20,[sf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[N_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ji],16),qr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[sf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cke],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[sf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[W_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cke],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,M_e],4),qr("NoSpaceAfterSemicolonInFor",27,r,[W_("insertSpaceAfterSemicolonInForStatements"),Ji,M_e],16),qr("SpaceBeforeBinaryOperator",r,l,[sf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ob],4),qr("SpaceAfterBinaryOperator",l,r,[sf("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ob],4),qr("NoSpaceBeforeBinaryOperator",r,l,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ob],16),qr("NoSpaceAfterBinaryOperator",l,r,[W_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ob],16),qr("SpaceBeforeOpenParenInFuncDecl",r,21,[sf("insertSpaceBeforeFunctionParenthesis"),Ji,iA],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[W_("insertSpaceBeforeFunctionParenthesis"),Ji,iA],16),qr("NewLineBeforeOpenBraceInControl",j,19,[sf("placeOpenBraceOnNewLineForControlBlocks"),AB,w_e],8,1),qr("NewLineBeforeOpenBraceInFunction",D,19,[sf("placeOpenBraceOnNewLineForFunctions"),iA,w_e],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[sf("placeOpenBraceOnNewLineForFunctions"),ake,w_e],8,1),qr("SpaceAfterTypeAssertion",32,r,[sf("insertSpaceAfterTypeAssertion"),Ji,F_e],4),qr("NoSpaceAfterTypeAssertion",32,r,[W_("insertSpaceAfterTypeAssertion"),Ji,F_e],16),qr("SpaceBeforeTypeAnnotation",r,[58,59],[sf("insertSpaceBeforeTypeAnnotation"),Ji,L_e],4),qr("NoSpaceBeforeTypeAnnotation",r,[58,59],[W_("insertSpaceBeforeTypeAnnotation"),Ji,L_e],16),qr("NoOptionalSemicolon",27,o,[Q2e("semicolons","remove"),sit],32),qr("OptionalSemicolon",r,o,[Q2e("semicolons","insert"),lit],64)],B=[qr("NoSpaceBeforeSemicolon",r,27,[Ji],16),qr("SpaceBeforeOpenBraceInControl",j,19,[P_e("placeOpenBraceOnNewLineForControlBlocks"),AB,W_e,k_e],4,1),qr("SpaceBeforeOpenBraceInFunction",D,19,[P_e("placeOpenBraceOnNewLineForFunctions"),iA,RQ,W_e,k_e],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[P_e("placeOpenBraceOnNewLineForFunctions"),ake,W_e,k_e],4,1),qr("NoSpaceBeforeComma",r,28,[Ji],16),qr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ji],16),qr("NoSpaceAfterCloseBracket",24,r,[Ji,$rt],16),qr("SpaceAfterSemicolon",27,r,[Ji],4),qr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),qr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,O_e,krt],4),qr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Y,...B]}function qr(e,t,r,i,o,s=0){return{leftTokenRange:Y2e(t),rightTokenRange:Y2e(r),rule:{debugName:e,context:i,action:o,flags:s}}}function SM(e){return{tokens:e,isSpecific:!0}}function Y2e(e){return typeof e=="number"?SM([e]):So(e)?SM(e):e}function $2e(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)zo(r,o)||i.push(o);return SM(i)}function Q2e(e,t){return r=>r.options&&r.options[e]===t}function sf(e){return t=>t.options&&Is(t.options,e)&&!!t.options[e]}function N_e(e){return t=>t.options&&Is(t.options,e)&&!t.options[e]}function W_(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]}function P_e(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Z2e(e){return t=>!t.options||!Is(t.options,e)||!!t.options[e]}function M_e(e){return e.contextNode.kind===248}function krt(e){return!M_e(e)}function ob(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 TB(e){return!ob(e)}function eke(e){return!L_e(e)}function L_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||EI(t)}function wrt(e){return jo(e.contextNode)&&e.contextNode.questionToken}function Ort(e){return!wrt(e)}function Wrt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function k_e(e){return e.TokensAreOnSameLine()||RQ(e)}function tke(e){return e.contextNode.kind===206||e.contextNode.kind===200||Frt(e)}function w_e(e){return RQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function nke(e){return rke(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Frt(e){return rke(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function rke(e){return ike(e.contextNode)}function RQ(e){return ike(e.nextTokenParent)}function ike(e){if(ske(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function iA(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 zrt(e){return!iA(e)}function oke(e){return e.contextNode.kind===262||e.contextNode.kind===218}function ake(e){return ske(e.contextNode)}function ske(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 Brt(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 AB(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 lke(e){return e.contextNode.kind===210}function Grt(e){return e.contextNode.kind===213}function Vrt(e){return e.contextNode.kind===214}function jrt(e){return Grt(e)||Vrt(e)}function Urt(e){return e.currentTokenSpan.kind!==28}function Hrt(e){return e.nextTokenSpan.kind!==24}function Krt(e){return e.nextTokenSpan.kind!==22}function Jrt(e){return e.contextNode.kind===219}function qrt(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function cke(e){return e.contextNode.kind!==12}function O_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function DQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Xrt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function dke(e){return e.contextNode.kind===291}function Yrt(e){return e.nextTokenParent.kind!==295}function uke(e){return e.nextTokenParent.kind===295}function pke(e){return e.contextNode.kind===285}function $rt(e){return!iA(e)&&!RQ(e)}function Qrt(e){return e.TokensAreOnSameLine()&&bf(e.contextNode)&&fke(e.currentTokenParent)&&!fke(e.nextTokenParent)}function fke(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===170}function Zrt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function W_e(e){return e.formattingRequestKind!==2}function eit(e){return e.contextNode.kind===267}function tit(e){return e.contextNode.kind===187}function nit(e){return e.contextNode.kind===180}function mke(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 IB(e){return mke(e.currentTokenSpan,e.currentTokenParent)||mke(e.nextTokenSpan,e.nextTokenParent)}function F_e(e){return e.contextNode.kind===216}function rit(e){return!F_e(e)}function iit(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function _ke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function oit(e){return e.contextNode.kind===235}function hke(e){return!ait(e)}function ait(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function sit(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(dR(t)){let s=e.nextTokenParent===e.currentTokenParent?lS(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:jo(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 lit(e){return l7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function cit(e){return!kr(e.contextNode)||!mp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var dit=bt({"src/services/formatting/rules.ts"(){"use strict";ai(),n8()}});function uit(e,t){return{options:e,getRules:pit(),host:t}}function pit(){return z_e===void 0&&(z_e=mit(X2e())),z_e}function fit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function mit(e){let t=_it(e);return r=>{let i=t[gke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~fit(s);l.action&d&&oo(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function _it(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=gke(s,l),p=t[d];p===void 0&&(p=t[d]=[]),hit(p,i.rule,o,r,d)}}return t}function gke(e,t){return R.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*CQ+t}function hit(e,t,r,i,o){let s=t.action&3?r?0:TM.StopRulesAny:t.context!==SB?r?TM.ContextRulesSpecific:TM.ContextRulesAny:r?TM.NoContextRulesSpecific:TM.NoContextRulesAny,l=i[o]||0;e.splice(git(l,s),0,t),i[o]=yit(l,s)}function git(e,t){let r=0;for(let i=0;i<=t;i+=LD)r+=e&xB,e>>=LD;return r}function yit(e,t){let r=(e>>t&xB)+1;return R.assert((r&xB)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(xB<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=LD*1]="StopRulesAny",e[e.ContextRulesSpecific=LD*2]="ContextRulesSpecific",e[e.ContextRulesAny=LD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=LD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=LD*5]="NoContextRulesAny",e))(TM||{})}});function NQ(e,t,r){let i={pos:e,end:t,kind:r};return R.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>R.formatSyntaxKind(r)}),i}function bit(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=g2(i,t);for(;y_(t.text.charCodeAt(o));)o--;Ud(t.text.charCodeAt(o))&&o--;let s={pos:Ov(i-1,t),end:o+1};return RB(s,t,r,2)}function Eit(e,t,r){let i=B_e(e,27,t);return yke(G_e(i),t,r,3)}function Sit(e,t,r){let i=B_e(e,19,t);if(!i)return[];let o=i.parent,s=G_e(o),l={pos:rm(s.getStart(t),t),end:e};return RB(l,t,r,4)}function Tit(e,t,r){let i=B_e(e,20,t);return yke(G_e(i),t,r,5)}function Ait(e,t){let r={pos:0,end:e.text.length};return RB(r,e,t,0)}function Iit(e,t,r,i){let o={pos:rm(e,r),end:t};return RB(o,r,i,1)}function B_e(e,t,r){let i=Ic(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function G_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!xit(t.parent,t);)t=t.parent;return t}function xit(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 Rit(e,t){return r(t);function r(i){let o=Bo(i,s=>xq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function Dit(e,t){if(!e.length)return o;let r=e.filter(s=>eM(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(Fz(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Cit(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Ic(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Nit(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 Pit(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return R_e(t.text,r,l.pos,l.end,d=>vke(l,e,i,o,d,s,1,p=>!1,t))}function yke(e,t,r,i){if(!e)return[];let o={pos:rm(e.getStart(t),t),end:e.end};return RB(o,t,r,i)}function RB(e,t,r,i){let o=Rit(e,t);return R_e(t.text,t.languageVariant,Cit(o,e,t),e.end,s=>vke(e,o,F_.getIndentationForNode(o,e,t,r.options),Nit(o,r.options,t),s,r,i,Dit(t.parseDiagnostics,e),t))}function vke(e,t,r,i,o,{options:s,getRules:l,host:d},p,h,m){var y;let E=new x_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=Ic(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(eM(Wt,be,ze)||Zw(Wt,be,ze)){if(_t!==-1)return _t}else{let Je=m.getLineAndCharacterOfPosition(be).line,ft=rm(be,m),Zt=F_.findFirstNonWhitespaceColumn(ft,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 ft=F_.shouldIndentChildNode(s,be)?s.indentSize:0;return Je===ze?{indentation:ze===w?j:_t.getIndentation(),delta:Math.min(s.indentSize,_t.getDelta(be)+ft)}: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:ft}:{indentation:_t.getIndentation()+_t.getDelta(be),delta:ft}:{indentation:tt,delta:ft}}function z(be){if(Am(be)){let ze=Gr(be.modifiers,Ta,ql(be.modifiers,Ed));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=No(be);if(ze)return ze.kind}}function ee(be,ze,tt,Wt){return{getIndentationForComment:(ft,Zt,en)=>{switch(ft){case 20:case 24:case 22:return tt+Je(en)}return Zt!==-1?Zt:tt},getIndentationForToken:(ft,Zt,en,Dn)=>!Dn&&_t(ft,Zt,en)?tt+Je(en):tt,getIndentation:()=>tt,getDelta:Je,recomputeIndentation:(ft,Zt)=>{F_.shouldIndentChildNode(s,Zt,be,m)&&(tt+=ft?s.indentSize:-s.indentSize,Wt=F_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function _t(ft,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!==ft&&!(bf(be)&&Zt===z(be))}function Je(ft){return F_.nodeWillIndentChild(s,be,ft,m,!0)?Wt:0}}function me(be,ze,tt,Wt,_t,Je){if(!eM(e,be.getStart(m),be.getEnd()))return;let ft=ee(be,tt,_t,Je),Zt=ze;for(Bo(be,pn=>{en(pn,-1,be,ft,tt,Wt,!1)},pn=>{Dn(pn,be,tt,ft)});o.isOnToken()&&o.getTokenFullStart()Math.min(be.end,e.end))break;Kn(pn,be,ft,be)}function en(pn,Yt,qt,hi,uo,Li,Eo,Zn){if(R.assert(!qs(pn)),Bl(pn)||Fre(qt,pn))return Yt;let jr=pn.getStart(m),Sr=m.getLineAndCharacterOfPosition(jr).line,on=Sr;bf(pn)&&(on=m.getLineAndCharacterOfPosition(HV(pn,m)).line);let $e=-1;if(Eo&&rf(e,qt)&&($e=B(jr,pn.end,uo,e,Yt),$e!==-1&&(Yt=$e)),!eM(e,pn.pos,pn.end))return pn.ende.end)return Yt;if(si.token.end>jr){si.token.pos>jr&&o.skipToStartOf(pn);break}Kn(si,be,hi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Yt;if(vI(pn)){let si=o.readTokenInfo(pn);if(pn.kind!==12)return R.assert(si.token.end===pn.end,"Token end is child end"),Kn(si,be,hi,pn),Yt}let Ot=pn.kind===170?Sr:Li,In=ce(pn,Sr,$e,be,hi,Ot);return me(pn,Zt,Sr,on,In.indentation,In.delta),Zt=be,Zn&&qt.kind===209&&Yt===-1&&(Yt=In.indentation),Yt}function Dn(pn,Yt,qt,hi){R.assert(E0(pn)),R.assert(!qs(pn));let uo=Mit(Yt,pn),Li=hi,Eo=qt;if(!eM(e,pn.pos,pn.end)){pn.endpn.pos)break;if(Sr.token.kind===uo){Eo=m.getLineAndCharacterOfPosition(Sr.token.pos).line,Kn(Sr,Yt,hi,Yt);let on;if(j!==-1)on=j;else{let $e=rm(Sr.token.pos,m);on=F_.findFirstNonWhitespaceColumn($e,Sr.token.pos,m,s)}Li=ee(Yt,qt,on,s.indentSize)}else Kn(Sr,Yt,hi,Yt)}let Zn=-1;for(let Sr=0;Srpe(In.pos,Ot,!1))}on!==-1&&$e&&(pe(pn.token.pos,on,Zn===1),w=Sr.line,j=on)}o.advance(),Zt=Yt}}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(Kz(_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),ft=0;if(!Je)if(A)ft=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,ft}function re(be,ze,tt,Wt,_t,Je,ft,Zt){E.updateContext(Wt,Je,be,tt,ft);let en=l(E),Dn=E.options.trimTrailingWhitespace!==!1,Kn=0;return en?Kte(en,pn=>{if(Kn=Et(pn,Wt,_t,be,ze),Zt)switch(Kn){case 2:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!1,ft);break;case 1:tt.getStart(m)===be.pos&&Zt.recomputeIndentation(!0,ft);break;default:R.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=V_e(ze,s);if(tt)De(be,0,Wt);else{let _t=m.getLineAndCharacterOfPosition(be),Je=Ov(_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=V_e(uo,s);De(qt,hi.character,Li)}else Ie(qt,hi.character)}}function he(be,ze,tt){for(let Wt=be;WtJe)continue;let ft=Ce(_t,Je);ft!==-1&&(R.assert(ft===_t||!y_(m.text.charCodeAt(ft-1))),Ie(ft,Je+1-ft))}}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)Kz(tt.kind)&&(zeQw(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Mit(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 Lit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function V_e(e,t){if((!PQ||PQ.tabSize!==t.tabSize||PQ.indentSize!==t.indentSize)&&(PQ={tabSize:t.tabSize,indentSize:t.indentSize},e8=t8=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return t8||(t8=[]),t8[o]===void 0?(i=oO(" ",t.indentSize*o),t8[o]=i):i=t8[o],s?i+oO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return e8||(e8=[]),e8[i]===void 0?e8[i]=s=oO(" ",i):s=e8[i],o?s+oO(" ",o):s}}var PQ,e8,t8,kit=bt({"src/services/formatting/formatting.ts"(){"use strict";ai(),n8()}}),F_,wit=bt({"src/services/formatting/smartIndenter.ts"(){"use strict";ai(),n8(),(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=Ic(ne,he,void 0,!0),Ie=bke(he,ne,ve||null);if(Ie&&Ie.kind===3)return i(he,ne,Ce,Ie);if(!ve)return d(Ce);if(Lq(ve.kind)&&ve.getStart(he)<=ne&&ne=0),ve<=Ie)return J(Ov(Ie,ne),he,ne,Ce);let De=Ov(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 Ie=ne.text.charCodeAt(Ge);if(!Cg(Ie))break;Ge--}let ve=rm(Ge,ne);return J(ve,Ge,ne,Ce)}function s(ne,he,Ce,Ge,ve,Ie){let De,Le=Ce;for(;Le;){if(Rq(Le,he,ne)&&xe(Ie,Le,De,ne,!0)){let be=A(Le,ne),ze=S(Ce,Le,Ge,ne),tt=ze!==0?ve&&ze===2?Ie.indentSize:0:Ge!==be.line?Ie.indentSize:0;return p(Le,be,void 0,tt,ne,!0,Ie)}let Et=ee(Le,ne,Ie,!0);if(Et!==-1)return Et;De=Le,Le=Le.parent}return d(Ie)}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,Ie,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,ft=ee(ne,ve,De,Je);if(ft!==-1||(ft=y(ne,Et,he,tt,ve,De),ft!==-1))return ft+Ge}xe(De,Et,ne,ve,Ie)&&!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=nde(ne);return Ge&&Ge.listItemIndex>0?me(Ge.list.getChildren(),Ge.listItemIndex-1,he,Ce):-1}function y(ne,he,Ce,Ge,ve,Ie){return(Kd(ne)||p2(ne))&&(he.kind===312||!Ge)?ge(Ce,ve,Ie):-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=lS(ne,he,Ge);if(!ve)return 0;if(ve.kind===19)return 1;if(ve.kind===20){let Ie=A(ve,Ge).line;return Ce===Ie?2:0}return 0}function A(ne,he){return he.getLineAndCharacterOfPosition(ne.getStart(he))}function N(ne,he,Ce,Ge){if(!(ra(ne)&&zo(ne.arguments,he)))return!1;let ve=ne.expression.getEnd();return ys(Ge,ve).line===Ce}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(ne,he,Ce,Ge){if(ne.kind===245&&ne.elseStatement===he){let ve=gs(ne,93,Ge);return R.assert(ve!==void 0),A(ve,Ge).line===Ce}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function w(ne,he,Ce,Ge){if(kR(ne)&&(he===ne.whenTrue||he===ne.whenFalse)){let ve=ys(Ge,ne.condition.end).line;if(he===ne.whenTrue)return Ce===ve;{let Ie=A(ne.whenTrue,Ge).line,De=ys(Ge,ne.whenTrue.end).line;return ve===Ie&&De===Ce}}return!1}e.childIsUnindentedBranchOfConditionalExpression=w;function j(ne,he,Ce,Ge){if(v_(ne)){if(!ne.arguments)return!1;let ve=Gr(ne.arguments,Et=>Et.pos===he.pos);if(!ve)return!1;let Ie=ne.arguments.indexOf(ve);if(Ie===0)return!1;let De=ne.arguments[Ie-1],Le=ys(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(Ie){return Ie&&Zw(ce(Ce,Ie,Ge),ne,he)?Ie: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!==Ie.line)return ge(Ie,Ce,Ge);Ie=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,Ie=0;for(let De=ne;Dex_e,FormattingRequestKind:()=>I_e,RuleAction:()=>D_e,RuleFlags:()=>C_e,SmartIndenter:()=>F_,anyContext:()=>SB,createTextRangeWithKind:()=>NQ,formatDocument:()=>Ait,formatNodeGivenIndentation:()=>Pit,formatOnClosingCurly:()=>Tit,formatOnEnter:()=>bit,formatOnOpeningCurly:()=>Sit,formatOnSemicolon:()=>Eit,formatSelection:()=>Iit,getAllRules:()=>X2e,getFormatContext:()=>uit,getFormattingScanner:()=>R_e,getIndentationString:()=>V_e,getRangeOfEnclosingComment:()=>bke});var n8=bt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Prt(),Mrt(),Lrt(),dit(),vit(),kit(),wit()}}),ai=bt({"src/services/_namespaces/ts.ts"(){"use strict";Zo(),Hw(),Vje(),pUe(),hUe(),qxe(),DUe(),CUe(),OUe(),KUe(),JUe(),XUe(),rHe(),iHe(),Iqe(),xqe(),Cqe(),Xqe(),$qe(),Aa(),Bme(),Zme(),Rtt(),Mtt(),Xtt(),yRe(),zRe(),hnt(),Ant(),Th(),Mnt(),art(),mrt(),yrt(),Nrt(),n8()}});function Oit(){return Tke??(Tke=new fm(Jp))}function Eke(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?` ${rg(o,[e])}`:"",s}function Wit(e,t,r,i){let o=Eke(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Fit(e,t,r,i){let o=!1;return()=>{Ske&&!o&&(R.log.warn(Eke(e,!1,t,r,i)),o=!0)}}function zit(e,t={}){let r=typeof t.typeScriptVersion=="string"?new fm(t.typeScriptVersion):t.typeScriptVersion??Oit(),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?Wit(e,i,s,t.message):d?Fit(e,i,s,t.message):qa}function Bit(e,t){return function(){return e(),t.apply(this,arguments)}}function j_e(e,t){let r=zit(t?.name??R.getFunctionName(e),t);return Bit(r,e)}var Ske,Tke,Ake=bt({"src/deprecatedCompat/deprecate.ts"(){"use strict";LQ(),Ske=!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)&&Is(t,`${d}`)&&(t[d]=j_e(t[d],{...i[d],name:e}))}let o=Git(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 Git(e,t){return r=>{for(let i=0;Is(e,`${i}`)&&Is(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function Ike(e){return{overload:t=>({bind:r=>({finish:()=>MQ(e,t,r),deprecate:i=>({finish:()=>MQ(e,t,r,i)})})})}}var Vit=bt({"src/deprecatedCompat/deprecations.ts"(){"use strict";LQ(),Ake()}}),jit=bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";LQ(),Ake(),soe(e=>{let t=e.getIdentifierConstructor();Is(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:j_e(function(){return tE(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Is(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:j_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";Zo(),Vit(),jit()}}),Uit=bt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";Zo(),Hw(),H_e()}});function xke(e,t,r,i){try{let o=XR(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 Hit(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=Rke(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function Rke(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 Dke(e){return`@types/${e}@ts${g_}`}var Cke,Nke,Kit=bt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";Uit(),H_e(),Cke={isEnabled:()=>!1,writeLine:qa},Nke=class{constructor(e,t,r,i,o,s=Cke){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:Rz,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:R.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:QP,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${RE(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:Uw,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Uw,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}':${RE(i)}`),this.log.writeLine(`Loaded content of '${r}':${RE(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Is(o.dependencies,s))continue;let l=ic(s);if(!l)continue;let d=xke(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=gW(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=$R(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:Dz,eventId:s,typingsInstallerVersion:Jp,projectName:e.projectName});let l=o.map(Dke);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=xke(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:Cz,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||uh(i,o=>!r.has(o))||uh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:QP,projectName:e,files:t})):this.sendResponse({kind:QP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Vw}}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()})}}}}}),U_e={};Ra(U_e,{TypingsInstaller:()=>Nke,getNpmCommandForInstallation:()=>Rke,installNpmPackages:()=>Hit,typingsName:()=>Dke});var Jit=bt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";Kit()}}),H_e=bt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";Nz(),Jit()}}),qit=bt({"src/server/types.ts"(){"use strict"}});function K_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 ul(e){return ma(e)}function r8(e,t,r){let i=cp(e)?e:_o(e,t);return r(i)}function Pke(e){return e}function Mke(){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 J_e(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function q_e(e){return`/dev/null/inferredProject${e}*`}function X_e(e){return`/dev/null/autoImportProviderProject${e}*`}function Y_e(e){return`/dev/null/auxiliaryProject${e}*`}function $_e(){return[]}var kQ,gc,wQ,Qy,Xit=bt({"src/server/utilitiesPublic.ts"(){"use strict";ab(),kQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(kQ||{}),gc=$_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})(Qy||(Qy={}))}});function OQ(e){let t=ic(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function Lke(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=Sy(e,t,Zs,r);i>=0&&e.splice(i,1)}var WQ,FQ,Yit=bt({"src/server/utilities.ts"(){"use strict";ab(),aA(),WQ=class J4e{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(J4e.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=iu)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=iu)==null||s.logStopScheduledOperation()}},FQ=class q4e{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(q4e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=iu)==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=iu)==null||i.logStopScheduledOperation()}}}}),zQ,Q_e,Z_e,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe,che,dhe,uhe=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||{}),Q_e=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Q_e||{}),Z_e=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Z_e||{}),ehe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(ehe||{}),the=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(the||{}),nhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(nhe||{}),rhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(rhe||{}),ihe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(ihe||{}),ohe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(ohe||{}),ahe=(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))(ahe||{}),she=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(she||{}),lhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(lhe||{}),che=(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))(che||{}),dhe=(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))(dhe||{})}}),phe={};Ra(phe,{ClassificationType:()=>dhe,CommandTypes:()=>zQ,CompletionTriggerKind:()=>nhe,IndentStyle:()=>rhe,JsxEmit:()=>ohe,ModuleKind:()=>ahe,ModuleResolutionKind:()=>she,NewLineKind:()=>lhe,OrganizeImportsMode:()=>Q_e,PollingWatchKind:()=>the,ScriptTarget:()=>che,SemicolonPreference:()=>ihe,WatchDirectoryKind:()=>ehe,WatchFileKind:()=>Z_e});var $it=bt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";uhe()}});function i8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&ic(e)[0]==="^"||e.includes(":^")&&!e.includes(rl)}function kke(e){return!e||a8(e)?Qy.ThrowNoProject():e}function Qit(e){R.assert(typeof e=="number",`Expected position ${e} to be a number.`),R.assert(e>=0,"Expected position to be non-negative.")}function Zit(e){R.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),R.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),R.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),R.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var BQ,GQ,eot=bt({"src/server/scriptInfo.ts"(){"use strict";ab(),aA(),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 R.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=pD(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=Mz.fromString(R.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(!zI(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>MB)return R.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=HB.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=HB.fromString(R.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(R.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return R.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=yI(R.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=i8(t),this.textStorage=new BQ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||O6(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)){R.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 zo(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:xx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){LE(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&&!kD(e)&&e.addMissingFileRoot(t.fileName)}jh(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Qy.ThrowNoProject();case 1:return kke(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,a8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){Qit(e);let t=this.textStorage.positionToLineOffset(e);return Zit(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Co(this.sourceMapFilePath)&&(Rf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function wke(e,t){if(e===t||(e||gc).length===0&&(t||gc).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 tot(e,t){return e.enable!==t.enable||!wke(e.include,t.include)||!wke(e.exclude,t.exclude)}function not(e,t){return Uv(e)!==Uv(t)}function rot(e,t){return e===t?!1:!Vm(e,t)}var DB,VQ,iot=bt({"src/server/typingsCache.ts"(){"use strict";ab(),aA(),DB={isKnownTypesPackageName:jm,installPackage:Uo,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||tot(i,o.typeAcquisition)||not(e.getCompilationSettings(),o.compilerOptions)||rot(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:gc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=tT(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?gc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function o8(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:Sd(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 oot(e){let t=o8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function fhe(e){let t=o8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function mhe(e){let t=o8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function _he(e){return!e.some(t=>Tl(t,".ts")&&!Sd(t)||Tl(t,".tsx"))}function hhe(e){return e.generatedFilePath!==void 0}function aot(e,t){var r,i;let o=e.getSourceFiles();(r=ir)==null||r.push(ir.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(d=>Yf(d.getName())),l=UC(va(o,d=>sot(e,d,s,t)));return(i=ir)==null||i.pop(),l}function sot(e,t,r,i){return jC(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!JN(s.extension))&&!$c(l)&&!r.some(d=>d===l)&&(o=Tn(o,yw(l).packageName))},t),o||gc})}function kD(e){return e.projectKind===0}function LE(e){return e.projectKind===1}function jQ(e){return e.projectKind===2}function a8(e){return e.projectKind===3||e.projectKind===4}var AM,oA,UQ,HQ,KQ,JQ,qQ,CB,lot=bt({"src/server/project.ts"(){"use strict";ab(),ab(),aA(),AM=(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))(AM||{}),oA=class X4e{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=jm,this.dirty=!1,this.typingFiles=gc,this.moduleSpecifierCache=Dhe(this),this.createHash=ea(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||Uv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=J7(),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:R.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=ea(E,E.realpath),this.resolutionCache=PJ(this,this.currentDirectory,!0),this.languageService=spe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),a8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return zp(this),mhe(this)}isJsOnlyProject(){return zp(this),oot(this)}static resolveModule(t,r,i,o){return X4e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){R.assertIsDefined(i.require);let s,l;for(let d of r){let p=Md(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){R.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)}),Ur(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,XL(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 nl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),wc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),wc.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),wc.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 Vr(this.projectErrors,t=>!t.file)||gc}getAllProjectErrors(){return this.projectErrors||gc}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:gc};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let d=_o(l.name,this.currentDirectory);r(d,l.text,l.writeByteOrderMark)}if(this.builderState&&Af(this.compilerOptions)){let l=s.filter(d=>Sd(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):$C(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&&(R.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 tT(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,Km),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 R.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return gc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=lpe(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){R.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=ir)==null||t.push(ir.Phase.Session,"updateGraph",{name:this.projectName,kind:AM[this.projectKind]}),(r=iu)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),d=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||gc;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=aot(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=iu)==null||o.logStopUpdateGraph(),(s=ir)==null||s.pop(),!l}updateTypingFiles(t){IW(t,this.typingFiles,Ax(!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,Km),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:jw})}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),wc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Tl(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),wc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=ic(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(rl,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=b3(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();R.assert(i===this.program),R.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Js(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(jm,jm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=ir)==null||t.push(ir.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=ir)==null||r.pop(),R.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=Cs(this.compilerOptions);hhe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Tu(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(s6(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&&uh(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||gc;this.externalFiles=this.getExternalFiles(),IW(this.externalFiles,p,Ax(!this.useCaseSensitiveFileNames()),m=>{let y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let h=Js()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${d}${this.program?` structureIsReused:: ${wW[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(LE(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return sD}let o=this.projectService.watchFactory.watchFile(_o(r,this.currentDirectory),(s,l)=>{LE(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),wc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Cs(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if(hhe(this.generatedFilesMap)){R.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),wc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(hhe(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)?Qy.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}' (${vM[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=>Oo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>Oo(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:ul(N),isSourceOfProjectReferenceRedirect:!1})))||_c,m=h0(this.getFileNamesWithRedirectInfo(!!r).concat(h),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,S=d?Oo(d.keys()):[],A=[];return zc(m,(N,D)=>{p.has(D)?r&&N!==p.get(D)&&A.push({fileName:D,isSourceOfProjectReferenceRedirect:N}):y.set(D,N)}),zc(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:ul(y),isSourceOfProjectReferenceRedirect:!1})))||_c,m=p.concat(h);return this.lastReportedFileNames=h0(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:Zke}),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||pO(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=Js();if(this.autoImportProviderHost=JQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return zp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Js()-s),(r=rr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=rr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!zc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(ul(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return R.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){R.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:_he(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 Rbe 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=ea(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ea(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=Js(),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 Oo(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=bo(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=bo(m,ce),S+=ce?.length?1:0,!0}}})&&j&&o.allowJs&&o.maxNodeModuleJsDepth){let Y=N(j,d,D,!0);m=bo(m,Y),S+=Y?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${S} dependencies in ${Js()-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,ee=z&&z!==r.toPath(D.packageDirectory);return ee&&j.setSymlinkedDirectory(D.packageDirectory,{real:Fc(ce),realPath:Fc(z)}),to(B,me=>{let ge=ee?me.replace(D.packageDirectory,ce):me;if(!w.getSourceFile(ge)&&!(ee&&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 Rbe(r,l,o,s)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Rbe.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,ai(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Ay,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=jm;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=R.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){R.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=ai(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&&zc(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 RP(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,ai(l||Nd(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 Mke(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{R.assert(typeof o=="number")}),t.set(r.name,i)}return t}function MD(e){return Co(e.indentStyle)&&(e.indentStyle=Bke.get(e.indentStyle.toLowerCase()),R.assert(e.indentStyle!==void 0)),e}function DB(e){return Fke.forEach((t,r)=>{let i=e[r];Co(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function i8(e,t){let r,i;return jR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=zke.get(o.name);(r||(r={}))[o.name]=l?Co(s)?l.get(s.toLowerCase()):s:VT(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function vhe(e){let t;return lw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function XQ(e){return Co(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 bhe(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function Lke(e,t){for(let r of t)if(r.getProjectName()===e)return r}function $Q(e){return!!e.containingProjects}function kke(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=ul(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=Ehe(l,e.getCompilerOptions(),(S,A)=>p===S?h(S,A):void 0,i,e.projectService,d);if(E)return E;d.clear()}}return Ehe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,d);function h(m,y){let E=ul(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):R.assertNever(y));return S&&r(S)}}function Ehe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return gn(e,d=>{if(!d)return;let p=ul(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&&Ehe(d.references,d.commandLine.options,r,l,o,s))})}function wke(e,t){return e.potentialProjectReferences&&uh(e.potentialProjectReferences,t)}function oot(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?wke(e,i):gn(e.getProjectReferences(),r)}function She(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Oke(e,t){return oot(e,r=>She(e,t,r.sourceFile.path),r=>She(e,t,e.toPath(eD(r))),r=>She(e,t,r))}function aot(e,t){return`${Co(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Wke(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 The(e){LE(e)&&(e.projectOptions=!0)}function Ahe(e){let t=1;return()=>e(t++)}function Ihe(){return{idToCallbacks:new Map,pathToId:new Map}}function sot(e,t){if(!t||!e.eventHandler||!e.session)return;let r=Ihe(),i=Ihe(),o=Ihe(),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){So(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,Nd(K)))})}}function lot(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function xhe(e){return e.kind!==void 0}function Rhe(e){e.print(!1,!1,!1)}var CB,NB,o8,PB,MB,LB,kB,wB,OB,QQ,WB,FB,zB,Dhe,Fke,zke,Bke,ZQ,BB,GB,eZ,tZ,Che,nZ,cot=bt({"src/server/editorServices.ts"(){"use strict";ob(),iA(),fhe(),CB=20*1024*1024,NB=4*1024*1024,o8="projectsUpdatedInBackground",PB="projectLoadingStart",MB="projectLoadingFinish",LB="largeFileReferenced",kB="configFileDiag",wB="projectLanguageServiceState",OB="projectInfo",QQ="openFileInfo",WB="createFileWatcher",FB="createDirectoryWatcher",zB="closeFileWatcher",Dhe="*ensureProjectForOpenFiles*",Fke=Mke(ag),zke=Mke(jR),Bke=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:Ja},tZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(tZ||{}),Che=class Dbe{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=Ahe(Y_e),this.newAutoImportProviderProjectName=Ahe($_e),this.newAuxiliaryProjectName=Ahe(Q_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=Ja,this.verifyDocumentRegistry=Ja,this.verifyProgram=Ja,this.onProjectCreation=Ja;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(ai(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=Xp()),this.currentDirectory=ul(this.host.getCurrentDirectory()),this.toCanonicalFileName=Cd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Fc(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):Ja;this.packageJsonCache=Phe(this),this.watchFactory=this.serverMode!==0?{watchFile:oD,watchDirectory:oD}:ZK(sot(this,t.canUseWatchEvents)||this.host,i,o,aot),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return nl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return _o(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=R.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)As(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 zw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Bw: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(Dhe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),r8(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:o8,data:{openFiles:Oo(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){R.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=i8(t,r),s=vhe(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 X_e(t)?Lke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(ul(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=Co(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=Co(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Co(t)?t:t.fileName),Qy.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(Co(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"&&!pO(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);Cw({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(R.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),Lc.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?Zs:Ay,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),R.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>R.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Oo(WC(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){R.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ai(cp(t.fileName)?t.fileName:_o(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();R.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(LE(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),Lc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&zc(t.openFilesImpactedByConfigFile,Zs)}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),R.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?pz(Wc(ai(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){R.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&&(R.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){R.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(Wc(ai(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,Lc.ConfigFileForInferredRoot):eZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(R.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;R.assert(!$Q(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(R.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ai(t.fileName),l=()=>mm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),d=!i||!l(),p=!kke(t);do{if(p){let m=e8(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=ai(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(!kke(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${ai(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(Rhe),this.configuredProjects.forEach(Rhe),this.inferredProjects.forEach(Rhe),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 Lke(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=i8(i,ai(Nd(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)){The(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){The(t);return}let r=LE(t)?t.projectOptions:void 0;The(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:n8(t.getScriptInfos(),!0),compilerOptions:cse(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:qp};this.eventHandler({eventName:OB,data:i});function o(){return LE(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;R.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=TP(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=SP(t,A=>this.host.readFile(A)),m=Qk(t,Co(h)?h:""),y=m.parseDiagnostics;Co(h)||y.push(h);let E=nw(m,p,ai(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,Lc.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,Dw(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),!zc(i.config.projects,Zs)&&(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=ul(d),h=t8(p),m;if(!h&&!t.fileExists(d)){m=e8(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=R.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;R.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=AP(i,ai(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){R.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(ul(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(ul(t))}getScriptInfoOrConfig(t){let r=ul(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=Oo(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?zc(r,(l,d)=>d===o.path?!1:zo(l,s))||r.add(o.path,s):(r=Xp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(R.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,Lc.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?Wke(h)&&this.refreshScriptInfo(h):mI(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,Lc.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 R.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+rl,this.filenameToScriptInfo.forEach(r=>{Wke(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)||t8(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){R.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=e8(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=t8(t);if(R.assert(cp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(this.openFilesWithNonRootedDiskPath.keys())})} +`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${AM[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()),bF(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=>Oo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>Oo(p.keys());this.isInitialLoadPending()||zp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:kD(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:ul(N),isSourceOfProjectReferenceRedirect:!1})))||gc,m=g0(this.getFileNamesWithRedirectInfo(!!r).concat(h),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,S=d?Oo(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:ul(y),isSourceOfProjectReferenceRedirect:!1})))||gc,m=p.concat(h);return this.lastReportedFileNames=g0(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){xx(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:rwe}),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?gc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Yr(this.currentDirectory,iD),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||_O(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=ir)==null||t.push(ir.Phase.Session,"getPackageJsonAutoImportProvider");let s=Js();if(this.autoImportProviderHost=JQ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return zp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Js()-s),(r=ir)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=ir)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Gc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(ul(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return R.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 oA{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){R.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:fhe(this),include:Xe,exclude:Xe}}},HQ=class extends oA{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 Abe extends oA{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=ea(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ea(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=Js(),h,m,y=Yr(r.currentDirectory,iD),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 Oo(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=bo(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=bo(m,ce),S+=ce?.length?1:0,!0}}})&&j&&o.allowJs&&o.maxNodeModuleJsDepth){let Y=N(j,d,D,!0);m=bo(m,Y),S+=Y?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${S} dependencies in ${Js()-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,ee=z&&z!==r.toPath(D.packageDirectory);return ee&&j.setSymlinkedDirectory(D.packageDirectory,{real:Bc(ce),realPath:Bc(z)}),to(B,me=>{let ge=ee?me.replace(D.packageDirectory,ce):me;if(!w.getSourceFile(ge)&&!(ee&&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 Abe(r,l,o,s)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Abe.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 oA{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=Ay,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=jm;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=R.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){R.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 Vr(this.projectErrors,e=>!e.file)||gc}getAllProjectErrors(){return this.projectErrors||gc}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 OD(this,e.path,t=>k1(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)||!!OD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return MP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){c3(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},CB=class extends oA{constructor(e,t,r,i,o,s,l,d){super(e,2,t,r,!0,o,i,s,d,t.host,oi(l||Md(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 Oke(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{R.assert(typeof o=="number")}),t.set(r.name,i)}return t}function wD(e){return Co(e.indentStyle)&&(e.indentStyle=Uke.get(e.indentStyle.toLowerCase()),R.assert(e.indentStyle!==void 0)),e}function NB(e){return Vke.forEach((t,r)=>{let i=e[r];Co(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function s8(e,t){let r,i;return KR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=jke.get(o.name);(r||(r={}))[o.name]=l?Co(s)?l.get(s.toLowerCase()):s:UT(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function ghe(e){let t;return uw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function XQ(e){return Co(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 yhe(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function Wke(e,t){for(let r of t)if(r.getProjectName()===e)return r}function $Q(e){return!!e.containingProjects}function Fke(e){return!!e.configFileInfo}function OD(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=ul(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=vhe(l,e.getCompilerOptions(),(S,A)=>p===S?h(S,A):void 0,i,e.projectService,d);if(E)return E;d.clear()}}return vhe(l,e.getCompilerOptions(),(m,y)=>p!==m?h(m,y):void 0,i,e.projectService,d);function h(m,y){let E=ul(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):R.assertNever(y));return S&&r(S)}}function vhe(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return gn(e,d=>{if(!d)return;let p=ul(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&&vhe(d.references,d.commandLine.options,r,l,o,s))})}function zke(e,t){return e.potentialProjectReferences&&uh(e.potentialProjectReferences,t)}function cot(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?zke(e,i):gn(e.getProjectReferences(),r)}function bhe(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Bke(e,t){return cot(e,r=>bhe(e,t,r.sourceFile.path),r=>bhe(e,t,e.toPath(rD(r))),r=>bhe(e,t,r))}function dot(e,t){return`${Co(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Gke(e){return!e.isScriptOpen()&&e.mTime!==void 0}function k1(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function zp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Ehe(e){LE(e)&&(e.projectOptions=!0)}function She(e){let t=1;return()=>e(t++)}function The(){return{idToCallbacks:new Map,pathToId:new Map}}function uot(e,t){if(!t||!e.eventHandler||!e.session)return;let r=The(),i=The(),o=The(),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:zB,data:{id:N,path:S}}))}function d(S,A,N){return p(N?o:i,S,A,D=>({eventName:BB,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:GB,data:{id:K}})))}}}function h(S){So(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,Md(K)))})}}function pot(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Ahe(e){return e.kind!==void 0}function Ihe(e){e.print(!1,!1,!1)}var PB,MB,l8,LB,kB,wB,OB,WB,FB,QQ,zB,BB,GB,xhe,Vke,jke,Uke,ZQ,VB,jB,eZ,tZ,Rhe,nZ,fot=bt({"src/server/editorServices.ts"(){"use strict";ab(),aA(),uhe(),PB=20*1024*1024,MB=4*1024*1024,l8="projectsUpdatedInBackground",LB="projectLoadingStart",kB="projectLoadingFinish",wB="largeFileReferenced",OB="configFileDiag",WB="projectLanguageServiceState",FB="projectInfo",QQ="openFileInfo",zB="createFileWatcher",BB="createDirectoryWatcher",GB="closeFileWatcher",xhe="*ensureProjectForOpenFiles*",Vke=Oke(sg),jke=Oke(KR),Uke=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,"$"]]}},VB={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=Mx(e);i&>(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>gt(t,r=>r.isMixedContent&&Tl(e,r.extension))},jB={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||{}),Rhe=class Ibe{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=She(q_e),this.newAutoImportProviderProjectName=She(X_e),this.newAuxiliaryProjectName=She(Y_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||DB,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||gc,this.pluginProbeLocations=t.pluginProbeLocations||gc,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=ul(this.host.getCurrentDirectory()),this.toCanonicalFileName=Pd(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:Pz(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=Che(this),this.watchFactory=this.serverMode!==0?{watchFile:lD,watchDirectory:lD}:ZK(uot(this,t.canUseWatchEvents)||this.host,i,o,dot),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return nl(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return _o(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=R.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)Is(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 Vw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case jw: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(xhe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),a8(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:l8,data:{openFiles:Oo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:wB,data:{file:t,fileSize:r,maxFileSize:MB}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:LB,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:kB,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){R.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=NB(t),o=s8(t,r),s=ghe(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 J_e(t)?Wke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(ul(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=Co(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=Co(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Co(t)?t:t.fileName),Qy.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(Co(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(ic(p)==="package.json"&&!_O(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);Mw({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(R.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),wc.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?Zs:Ay,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),R.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>R.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Oo(VC(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:fI(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:fI(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){R.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:oi(cp(t.fileName)?t.fileName:_o(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(xx(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();R.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(LE(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),wc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,Zs)}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),R.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?mz(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){R.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&&(R.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){R.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=mz(zc(oi(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,wc.ConfigFileForInferredRoot):eZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(R.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;R.assert(!$Q(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(R.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=!Fke(t);do{if(p){let m=r8(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(qW(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&&k1(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!Fke(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(Ihe),this.configuredProjects.forEach(Ihe),this.inferredProjects.forEach(Ihe),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 Wke(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=PB;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(!zI(p)&&(l+=this.host.getFileSize(p),l>PB||l>s)){let h=i.map(m=>o.getFileName(m)).filter(m=>!zI(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=NB(i),d=s8(i,oi(Md(t))),p=new CB(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,jB),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,d?.watchOptions);return p.setProjectErrors(d?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,jB,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Ehe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Ehe(t);return}let r=LE(t)?t.projectOptions:void 0;Ehe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:o8(t.getScriptInfos(),!0),compilerOptions:sse(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 CB?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Jp};this.eventHandler({eventName:FB,data:i});function o(){return LE(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=ir)==null||r.instant(ir.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:Z3(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=ir)==null||i.push(ir.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;R.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=DP(d.raw),t.setProjectErrors(d.options.configFile.parseDiagnostics),t.updateReferences(d.projectReferences);let h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,d.fileNames,VB);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,VB,p,d.typeAcquisition,d.compileOnSave,d.watchOptions),(o=ir)==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)||Z3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=RP(t,A=>this.host.readFile(A)),m=tw(t,Co(h)?h:""),y=m.parseDiagnostics;Co(h)||y.push(h);let E=ow(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&&!z6(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(E.watchOptions))&&((d=i.watcher)==null||d.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),ez(r,E.options,this.sharedExtendedConfigFileWatchers,(A,N)=>this.watchFactory.watchFile(A,()=>{var D;tz(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,wc.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,Pw(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,Zs)&&(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=ul(d),h=i8(p),m;if(!h&&!t.fileExists(d)){m=r8(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=R.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)),VB),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;R.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=CP(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,VB)}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:OB,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){R.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(ul(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(ul(t))}getScriptInfoOrConfig(t){let r=ul(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=Oo(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:zo(l,s))||r.add(o.path,s):(r=qp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(R.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,wc.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=fz(this.toPath(s));if(!d)return;let p=ic(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?Gke(h)&&this.refreshScriptInfo(h):hI(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,wc.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 R.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+rl,this.filenameToScriptInfo.forEach(r=>{Gke(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)||i8(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){R.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=r8(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=i8(t);if(R.assert(cp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),R.assert(!cp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),R.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Oo(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(e8(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(),Co(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:_o(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&&!Co(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Lc.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&&Co(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 R.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(ul(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=i8(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(Dhe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Ay,"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);R.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){R.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(ul(t),r,i,!1,o?ul(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:ul(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=>{LE(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),So(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()&&(So(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),R.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),R.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||$te(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Oo(this.configuredProjects.values()))wke(i,o=>t.has(o))&&zp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Jb(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=ul(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&&(So(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)&&Oke(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),Oke(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(Co(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!uh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Co(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(ul(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(ul(d.fileName),d.content,XQ(d.scriptKind),d.hasMixedContent,d.projectRootPath?ul(d.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let d of r){let p=this.getScriptInfo(d.fileName);R.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=ul(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=h0(this.externalProjects,i=>i.getProjectName(),i=>!0);uh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);uh(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;R.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=>Nd(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"?Co(D[w])?Dbe.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=Dbe.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(oh(l[y]));if(Sl(E,"js")){let S=Tu(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||(R.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=ul(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=ghe(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=i8(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||_w(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=Oo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){R.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(ai(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){R.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 R.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,Lc.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=lot())}},Che.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,nZ=Che}});function Nhe(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(Sh)+Sh.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(Km),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return R.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 dot=bt({"src/server/moduleSpecifierCache.ts"(){"use strict";ob()}});function Phe(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ai(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");uO(e,h)?i(h,Yr(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=R.checkDefined(lX(l,e.host));t.set(d,p),r.delete(ai(d))}function o(l){t.delete(l),r.delete(ai(l))}function s(l){return t.has(Yr(l,"package.json"))?-1:r.has(l)?0:3}}var uot=bt({"src/server/packageJsonCache.ts"(){"use strict";ob()}});function pot(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function Gke(e,t){if((PD(e)||jQ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function fot(e){return Af(e)||!!e.emitDecoratorMetadata}function Vke(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:a8(ys(e.file,e.start)),end:a8(ys(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 a8(e){return{line:e.line+1,offset:e.character+1}}function s8(e,t){let r=e.file&&a8(ys(e.file,e.start)),i=e.file&&a8(ys(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 mot(e,t){return e.every(r=>Jl(r.span){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:pD(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:_o(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&&!Co(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,wc.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&&Co(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 R.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(ul(t.file));i&&(i.setOptions(wD(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,...wD(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=s8(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(xhe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Ay,"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);R.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),k1(E,m)||OD(E,m.path,A=>(d(A),k1(A,m)),1)&&OD(E,void 0,d,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){R.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&kD(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(ul(t),r,i,!1,o?ul(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:ul(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&&k1(S,A)};if(h.isSolution()||!m(h)){if(h=OD(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=>{LE(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 Gr(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,k1(o,t)||OD(o,t.path,p=>{if(zp(p),So(s)?s.push(p):s=[o,p],k1(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()&&(So(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),R.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),R.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||Xte(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of Oo(this.configuredProjects.values()))zke(i,o=>t.has(o))&&zp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Jb(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=ul(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&&(So(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)&&Bke(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),Bke(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(Co(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!uh(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Co(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(ul(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=Gr(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(ul(d.fileName),d.content,XQ(d.scriptKind),d.hasMixedContent,d.projectRootPath?ul(d.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let d of r){let p=this.getScriptInfo(d.fileName);R.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=ul(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=g0(this.externalProjects,i=>i.getProjectName(),i=>!0);uh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);uh(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;R.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=>Md(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"?Co(D[w])?Ibe.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=Ibe.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=ic(oh(l[y]));if(Tl(E,"js")){let S=Tu(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||(R.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=ul(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=_he(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=NB(t.options),y=s8(t.options,i.getCurrentDirectory()),E=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,jB);E?i.disableLanguageService(E):i.enableLanguageService(),i.setProjectErrors(y?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,jB,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||yw(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=oA.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,oA.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=Oo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){R.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){R.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 R.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,wc.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=pot())}},Rhe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,nZ=Rhe}});function Dhe(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(Sh)+Sh.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(Km),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return R.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 mot=bt({"src/server/moduleSpecifierCache.ts"(){"use strict";ab()}});function Che(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");mO(e,h)?i(h,Yr(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=R.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 _ot=bt({"src/server/packageJsonCache.ts"(){"use strict";ab()}});function hot(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function Hke(e,t){if((kD(e)||jQ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function got(e){return Af(e)||!!e.emitDecoratorMetadata}function Kke(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:oT(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:mn(r.relatedInformation,rZ)}}function rZ(e){return e.file?{span:{start:c8(ys(e.file,e.start)),end:c8(ys(e.file,e.start+e.length)),file:e.file.fileName},message:k_(e.messageText,` +`),category:oT(e),code:e.code}:{message:k_(e.messageText,` +`),category:oT(e),code:e.code}}function c8(e){return{line:e.line+1,offset:e.character+1}}function d8(e,t){let r=e.file&&c8(ys(e.file,e.start)),i=e.file&&c8(ys(e.file,e.start+e.length)),o=k_(e.messageText,` +`),{code:s,source:l}=e,d=oT(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 yot(e,t){return e.every(r=>Xl(r.span)i(s,e));return!So(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...va(s,p=>i(p,d)))}),_0(o,Iy)}function iZ(e){return VG(({textSpan:t})=>t.start+100003*t.length,Jq(e))}function hot(e,t,r,i,o,s,l){let d=jke(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(bM(m)));if(So(d))return d;let p=[],h=iZ(l);return d.forEach((m,y)=>{for(let E of m)!h.has(E)&&!oZ(bM(E),y)&&(p.push(E),h.add(E))}),p}function got(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Jc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function yot(e,t,r,i,o){var s,l;let d=jke(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(bM(y.definition));for(let S of y.references)E(bM(S))});if(So(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(bM(S.definition),E),N=A===void 0?S.definition:{...S.definition,textSpan:hd(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:Eot(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(bM(w),E)&&(m.add(w),D.references.push(w))}}),h.filter(y=>y.references.length!==0)}function khe(e,t,r){for(let i of So(e)?e:e.projects)r(i,t);!So(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function jke(e,t,r,i,o,s){let l=new Map,d=IL();d.enqueue({project:t,location:r}),khe(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=got(t,r,i),y=Eu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),E=Eu(()=>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)||Uke(N,D)||(zp(N),!N.containsFile(ul(D.fileName))))continue;let w=A(N,D);l.set(N,w??_c),S.add(bot(N))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(N=>{if(h.isCancellationRequested()||l.has(N))return;let D=vot(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,ee)=>{for(let me of z)!me.isOrphan()&&!l.has(me)&&d.enqueue({project:me,location:{fileName:ee,pos:Y.pos}})})});return w}}}function vot(e,t,r,i){if(t.containsFile(ul(e.fileName))&&!Uke(t,e))return e;let o=r();if(o&&t.containsFile(ul(o.fileName)))return o;let s=i();return s&&t.containsFile(ul(s.fileName))?s:void 0}function Uke(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 bot(e){return LE(e)?e.canonicalConfigFilePath:e.getProjectName()}function bM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function oZ(e,t){return ZP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Hke(e,t){return Zz(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Eot(e,t){return Xq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ah(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Jl(e))}}function whe(e,t,r){let i=Ah(e,r),o=t&&Ah(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Sot(e,t){return{start:Kke(t,e.span.start),end:Kke(t,Jl(e.span)),newText:e.newText}}function Kke(e,t){return xhe(e)?Aot(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Tot(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 Aot(e){return{line:e.line+1,offset:e.character+1}}function Iot(e){R.assert(e.textChanges.length===1);let t=Ga(e.textChanges);return R.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 Ohe(e,t,r,i){let o=xot(e,t,i),{line:s,character:l}=Nx(hI(o),r);return{line:s+1,offset:l+1}}function xot(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 Jke(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let d=R.checkDefined(e.getScriptInfo(t)),p=whe(r,i,d),h=l?void 0:Rot(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Rot(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Jl(r)).replace(/\r|\n/g,"")}function Dot(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 Whe,Fhe,qke,zhe,Xke,Bhe,Cot=bt({"src/server/session.ts"(){"use strict";ob(),iA(),fhe(),Whe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Fhe=zQ,qke=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;R.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;R.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}},zhe=["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"],Xke=[...zhe,"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"],Bhe=class mte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:qp};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&&wC(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&wC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:WC(wG(l.textChanges),d=>{let p=R.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&&wC(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(ul(s.arguments.file),s.arguments.fileContent,YQ(s.arguments.scriptKindName),s.arguments.projectRootPath?ul(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 qke(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:zhe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Xke.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:R.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 o8: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=>s8(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},o8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: -`+KP(t.message),t.stack&&(o+=` -`+KP(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+=` +${s}${i}`}function Phe(e,t){return{seq:0,type:"event",event:e,body:t}}function vot(e,t,r,i){let o=GC(So(r)?r:r.projects,s=>i(s,e));return!So(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...va(s,p=>i(p,d)))}),h0(o,Iy)}function iZ(e){return VG(({textSpan:t})=>t.start+100003*t.length,Jq(e))}function bot(e,t,r,i,o,s,l){let d=Jke(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(IM(m)));if(So(d))return d;let p=[],h=iZ(l);return d.forEach((m,y)=>{for(let E of m)!h.has(E)&&!oZ(IM(E),y)&&(p.push(E),h.add(E))}),p}function Eot(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Yc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function Sot(e,t,r,i,o){var s,l;let d=Jke(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(IM(y.definition));for(let S of y.references)E(IM(S))});if(So(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(IM(S.definition),E),N=A===void 0?S.definition:{...S.definition,textSpan:yd(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:Iot(S.definition,E)},D=Gr(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(IM(w),E)&&(m.add(w),D.references.push(w))}}),h.filter(y=>y.references.length!==0)}function Mhe(e,t,r){for(let i of So(e)?e:e.projects)r(i,t);!So(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function Jke(e,t,r,i,o,s){let l=new Map,d=DL();d.enqueue({project:t,location:r}),Mhe(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=Eot(t,r,i),y=Eu(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),E=Eu(()=>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)||qke(N,D)||(zp(N),!N.containsFile(ul(D.fileName))))continue;let w=A(N,D);l.set(N,w??gc),S.add(Aot(N))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(N=>{if(h.isCancellationRequested()||l.has(N))return;let D=Tot(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,ee)=>{for(let me of z)!me.isOrphan()&&!l.has(me)&&d.enqueue({project:me,location:{fileName:ee,pos:Y.pos}})})});return w}}}function Tot(e,t,r,i){if(t.containsFile(ul(e.fileName))&&!qke(t,e))return e;let o=r();if(o&&t.containsFile(ul(o.fileName)))return o;let s=i();return s&&t.containsFile(ul(s.fileName))?s:void 0}function qke(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 Aot(e){return LE(e)?e.canonicalConfigFilePath:e.getProjectName()}function IM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function oZ(e,t){return iM(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Xke(e,t){return t7(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Iot(e,t){return Xq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ah(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Xl(e))}}function Lhe(e,t,r){let i=Ah(e,r),o=t&&Ah(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function xot(e,t){return{start:Yke(t,e.span.start),end:Yke(t,Xl(e.span)),newText:e.newText}}function Yke(e,t){return Ahe(e)?Dot(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Rot(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 Dot(e){return{line:e.line+1,offset:e.character+1}}function Cot(e){R.assert(e.textChanges.length===1);let t=Va(e.textChanges);return R.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 khe(e,t,r,i){let o=Not(e,t,i),{line:s,character:l}=Lx(yI(o),r);return{line:s+1,offset:l+1}}function Not(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 $ke(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let d=R.checkDefined(e.getScriptInfo(t)),p=Lhe(r,i,d),h=l?void 0:Pot(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Pot(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Xl(r)).replace(/\r|\n/g,"")}function Mot(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 whe,Ohe,Qke,Whe,Zke,Fhe,Lot=bt({"src/server/session.ts"(){"use strict";ab(),aA(),uhe(),whe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Ohe=zQ,Qke=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;R.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;R.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=ir)==null||t.instant(ir.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=ir)==null||r.push(ir.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=ir)==null||i.pop())}catch(p){(o=ir)==null||o.popAll(),d=!0,p instanceof Nx?(s=ir)==null||s.instant(ir.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=ir)==null||l.instant(ir.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}},Whe=["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"],Zke=[...Whe,"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"],Fhe=class ute{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&&BC(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&BC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:VC(wG(l.textChanges),d=>{let p=R.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&&BC(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(ul(s.arguments.file),s.arguments.fileContent,YQ(s.arguments.scriptKindName),s.arguments.projectRootPath?ul(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||DB,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 Qke(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:Whe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Zke.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:R.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 l8:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case LB:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case kB:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case wB:case zB:case BB:case GB:this.event(t.data,t.eventName);break;case OB:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:mn(t.data.diagnostics,r=>d8(r,!0))},t.eventName);break;case WB:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case FB:{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},l8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: +`+$P(t.message),t.stack&&(o+=` +`+$P(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=pD(d.getSnapshot());o+=` -File text of ${i.file}:${KP(p)} +File text of ${i.file}:${$P(p)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} @@ -377,13 +377,13 @@ Program files: ${JSON.stringify(t.ProgramFiles)} Projects:: `;let s=0,l=d=>{o+=` -Project '${d.projectName}' (${vM[d.projectKind]}) ${s} +Project '${d.projectName}' (${AM[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: ${RE(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=Mhe(t,this.logger,this.byteLength,this.host.newLine);(r=iu)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Lhe(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(So(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 R.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=Gke(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=>Vke(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){R.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(Co(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",Oo(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=ul(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(bo(o,s),d=>!!d.file&&d.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):mn(l,d=>s8(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&&a8(ys(r.file,r.start)),endLocation:r.file&&a8(ys(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&&Gke(s,l))return _c;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>Vke(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=Hke(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=R.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:Ah(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=>ul(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=>ul(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=>ul(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=R.checkDefined(B.getSourceFile(K));for(let z of E(j.name,ce,B))S.add(z)}}d=Oo(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(Sh)===K.topLevelNodeModulesIndex){let Y=S.substring(0,K.packageRootIndex),B=(D=o.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=o.getCompilationSettings(),z=mw(_o(Y+"/package.json",o.getCurrentDirectory()),fw(B,o,ce));if(!z)return;let ee=sK(z,{moduleResolution:2},o,o.getModuleResolutionCache()),me=S.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ge=CP(gw(me)),q=o.toPath(S);if(ee&>(ee,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}/${Tu(J)}`;return(j=N.resolutionCache.resolveSingleModuleNameWithoutWatching(re,A).resolvedModule)==null?void 0:j.resolvedFileName}}}function m(){let S=o.getLanguageService(),A=S.getProgram(),N=zu(A.getSourceFile(i),s);return(as(N)||Fe(N))&&Ms(N.parent)&&soe(N,D=>{var w;if(D===N)return;let j=(w=S.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:w.filter(K=>ul(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=zu(A.getSourceFile(i),s),K=A.getTypeChecker().getSymbolAtLocation(j),Y=K&&dl(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=ks.Core.getTopMostDeclarationNamesInFile(S,A);return to(D,w=>{let j=N.getTypeChecker().getSymbolAtLocation(w),K=bN(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=>s8(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?(R.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=Hke(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 Tot(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})=>({...whe(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){R.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),Qy.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),Qy.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 Qy.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=ul(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),R.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let h=hot(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:Ah(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=R.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...whe(o,s,y),...h})}return Oo(r.values())}getReferences(t,r){let i=ul(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=yot(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?NO(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=>Jke(this.projectService,w,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:y}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(ul(o)),l=[],d=iZ(this.host.useCaseSensitiveFileNames);return khe(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=>Jke(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=ul(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:Ah(d.textSpan,l),hintSpan:Ah(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=NO(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):NO(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||mot(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,{...bhe(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:ee,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}=y,J=j?Ah(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:ee,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}}});return r==="completions"?(d.metadata&&(h.metadata=d.metadata),h):{...d,optionalReplacementSpan:d.optionalReplacementSpan&&Ah(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?ta(S,Dot):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?_ot(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||bd(s.fileName)&&!fot(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Ds(l)}}):_c}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||Qy.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=>s8(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=ul(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);R.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,Qte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=ul(t.file),o=t.tmpfile===void 0?void 0:ul(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=>Ah(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=>Ah(i,r)),nameSpan:t.nameSpan&&Ah(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){R.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);khe(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(bM(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||Qy.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),R.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(ul(d));m=Ohe(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){R.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=ul(t.oldFilePath),o=ul(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=>qL(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){R.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),R.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Sot(i,r))}:Iot(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=>Ah(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=ul(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):bd(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=R.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:Ah(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=ul(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Qy.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:Ah(t.span,r),selectionSpan:Ah(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Ah(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Ah(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:oh(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){R.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){R.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:${RE(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:${KP(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=iu)==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=pot(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=iu)==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=iu)==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=iu)==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,Yke,$ke,VB,jB,Ghe,EM,k1,l8,Not=bt({"src/server/scriptVersionCache.ts"(){"use strict";ob(),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||{}),Yke=class{constructor(){this.goSubtree=!0,this.lineIndex=new EM,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=EM.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 l8(""):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)}},$ke=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return XL(hd(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 $ke(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 Ghe(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 hd(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 Jne(i)}else return;else return u2}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new oI,i=new Ghe(0,r,new EM);r.versions[r.currentVersion]=i;let o=EM.linesFromText(t);return i.index.load(o.lines),r}},VB.changeNumberThreshold=8,VB.changeLengthThreshold=256,VB.maxVersions=8,jB=VB,Ghe=class J4e{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 J4e&&this.cache===t.cache)return this.version<=t.version?u2:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},EM=class Cbe{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 R.assert(r===0),i!==void 0?(this.load(Cbe.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 Yke,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());R.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 Nbe{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=R.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=q_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${RE(o)}`),this.activeRequestCount0?this.activeRequestCount--:R.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 JP: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:${RE(t)}`),this.installer.send(t)},q4e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Vhe.requestDelayMillis=100,jhe=Vhe}}),Qke={};xa(Qke,{ActionInvalidate:()=>Bw,ActionPackageInstalled:()=>Gw,ActionSet:()=>zw,ActionWatchTypingLocations:()=>JP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Fhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>Qy,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>EM,LineLeaf:()=>l8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>vM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>o8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>Bhe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>jhe,allFilesAreJsOrDts:()=>hhe,allRootFilesAreJsOrDts:()=>_he,asNormalizedPath:()=>Rke,convertCompilerOptions:()=>DB,convertFormatOptions:()=>MD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>vhe,convertUserPreferences:()=>bhe,convertWatchOptions:()=>i8,countEachFileTypes:()=>n8,createInstallTypingsRequest:()=>q_e,createModuleSpecifierCache:()=>Nhe,createNormalizedPathMap:()=>Dke,createPackageJsonCache:()=>Phe,createSortedArray:()=>Z_e,emptyArray:()=>_c,findArgument:()=>_xe,forEachResolvedProjectReferenceProject:()=>LD,formatDiagnosticToProtocol:()=>s8,formatMessage:()=>Mhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Ohe,hasArgument:()=>mxe,hasNoTypeScriptSource:()=>ghe,indent:()=>KP,isBackgroundProject:()=>r8,isConfigFile:()=>xhe,isConfiguredProject:()=>LE,isDynamicFileName:()=>t8,isExternalProject:()=>jQ,isInferredProject:()=>PD,isInferredProjectName:()=>X_e,makeAutoImportProviderProjectName:()=>$_e,makeAuxiliaryProjectName:()=>Q_e,makeInferredProjectName:()=>Y_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>e8,nowString:()=>hxe,nullCancellationToken:()=>Whe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>mhe,removeSorted:()=>Cke,stringifyIndented:()=>RE,toEvent:()=>Lhe,toNormalizedPath:()=>ul,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>K_e,updateProjectIfDirty:()=>zp});var iA=bt({"src/server/_namespaces/ts.server.ts"(){"use strict";Dz(),J_e(),Uit(),Hit(),Kit(),Jit(),Yit(),eot(),iot(),cot(),dot(),uot(),Cot(),Not(),Pot()}}),Zke={};xa(Zke,{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:()=>R,DiagnosticCategory:()=>PL,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:()=>ks,FlattenLevel:()=>kK,FlowFlags:()=>NL,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:()=>ME,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:()=>HC,ModuleResolutionKind:()=>Dx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>due,NavigationBar:()=>bue,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:()=>KO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>$y,SymbolDisplayPartKind:()=>jw,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:()=>RL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>sle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Wg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>WSe,addObjectAllocatorPatcher:()=>coe,addRange:()=>Hr,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>iP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Nk,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>zL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>Ig,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Vm,arrayIsHomogeneous:()=>Coe,arrayIsSorted:()=>fW,arrayOf:()=>nne,arrayReverseIterator:()=>wG,arrayToMap:()=>h0,arrayToMultiMap:()=>AL,arrayToNumericMap:()=>ine,arraysEqual:()=>EL,assertType:()=>gEe,assign:()=>bx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Ck,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Qie,base64encode:()=>$ie,binarySearch:()=>Sy,binarySearchKey:()=>lI,bindSourceFile:()=>Ose,breakIntoCharacterSpans:()=>rue,breakIntoWordSpans:()=>iue,buildLinkParts:()=>Rde,buildOpts:()=>p3,buildOverload:()=>Eke,bundlerModuleNameResolver:()=>xse,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>uk,canHaveFlowNode:()=>z2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>Bae,canHaveIllegalType:()=>pTe,canHaveIllegalTypeParameters:()=>zae,canHaveJSDoc:()=>B2,canHaveLocals:()=>ch,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>TP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>mce,canWatchAtTypes:()=>fce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>mne,cast:()=>ta,chainBundle:()=>Im,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>WL,changeCompilerHostLikeToUseCache:()=>Pw,changeExtension:()=>fE,changeFullExtension:()=>Lne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>wre,childIsDecorated:()=>hN,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>My,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Mse,classifier:()=>_pe,cleanExtendedConfigCache:()=>Z3,clear:()=>Vh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>ede,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>Rf,codefix:()=>wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Jne,collectExternalModuleInfo:()=>CK,combine:()=>vx,combinePaths:()=>Yr,commentPragmas:()=>ML,commonOptionsWithBuild:()=>aw,commonPackageFolders:()=>DU,compact:()=>TL,compareBooleans:()=>Ev,compareDataObjects:()=>Qj,compareDiagnostics:()=>zN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>oae,compareNumberOfDirectorySeparators:()=>lk,comparePaths:()=>xg,comparePathsCaseInsensitive:()=>UEe,comparePathsCaseSensitive:()=>jEe,comparePatternKeys:()=>dK,compareProperties:()=>dne,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>sne,compareStringsCaseSensitive:()=>Vd,compareStringsCaseSensitiveUI:()=>xL,compareTextSpans:()=>yW,compareValues:()=>el,compileOnSaveCommandLineOption:()=>iw,compilerOptionsAffectDeclarationPath:()=>voe,compilerOptionsAffectEmit:()=>yoe,compilerOptionsAffectSemanticDiagnostics:()=>goe,compilerOptionsDidYouMeanDiagnostics:()=>cw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>_Ee,computeCommonSourceDirectoryOfFilenames:()=>Kle,computeLineAndCharacterOfPosition:()=>Nx,computeLineOfPosition:()=>XC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>foe,consumesNodeCoreModules:()=>u7,contains:()=>zo,containsIgnoredPath:()=>qN,containsObjectRestOrSpread:()=>Xk,containsParseError:()=>Vx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>cse,convertCompilerOptionsFromJson:()=>_Ae,convertJsonOption:()=>VT,convertToBase64:()=>Yie,convertToJson:()=>tw,convertToObject:()=>ise,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>qC,convertToTSConfig:()=>tAe,convertTypeAcquisitionFromJson:()=>hAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>fD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>cO,copyTrailingComments:()=>nM,couldStartTrivia:()=>Wne,countWhere:()=>vv,createAbstractBuilder:()=>S1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>qae,createAccessorPropertySetRedirector:()=>Xae,createBaseNodeFactory:()=>joe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>xR,createBuildInfo:()=>xw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>uce,createBuilderStatusReporter:()=>Dce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>fle,createClassThisAssignmentBlock:()=>ule,createClassifier:()=>zxe,createCommentDirectivesMap:()=>Gre,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>Zae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Jle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>yR,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Hx,createDiagnosticForNodeArrayFromMessageChain:()=>y2,createDiagnosticForNodeFromMessageChain:()=>Pg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>Zre,createDiagnosticMessageChainFromDiagnostic:()=>Qre,createDiagnosticReporter:()=>Ow,createDocumentPositionMapper:()=>tle,createDocumentRegistry:()=>Kde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>iae,createEmptyExports:()=>Gk,createExpressionForJsxElement:()=>Mae,createExpressionForJsxFragment:()=>Lae,createExpressionForObjectLiteralElementLike:()=>kae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Vk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Yc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Cd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Wle,createGetSymbolWalker:()=>Wse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>xce,createInputFiles:()=>zSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>cpe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>DP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>HR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>yce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>Xp,createNodeConverters:()=>Hoe,createNodeFactory:()=>Ek,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>oM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>Uoe,createPatternMatcher:()=>$de,createPrependNodes:()=>gJ,createPrinter:()=>IE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>iS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Rw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>IL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>yle,createScanner:()=>Dy,createSemanticDiagnosticsBuilderProgram:()=>E1e,createSet:()=>VG,createSolutionBuilder:()=>F1e,createSolutionBuilderHost:()=>O1e,createSolutionBuilderWithWatch:()=>z1e,createSolutionBuilderWithWatchHost:()=>W1e,createSortedArray:()=>kG,createSourceFile:()=>$k,createSourceMapGenerator:()=>$se,createSourceMapSource:()=>BSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>aa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Cne,createTextChange:()=>eO,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>XL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>hd,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Ru,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>Q2,createTokenRange:()=>Xj,createTypeChecker:()=>Hse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>L1e,createWatchCompilerHostOfConfigFile:()=>Tce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Ace,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>k1e,createWatchStatusReporter:()=>vce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>Is,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>qL,decorateHelper:()=>i4,deduplicate:()=>_0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>_k,detectSortCaseSensitivity:()=>BC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Hm,directorySeparator:()=>rl,displayPart:()=>ep,displayPartsToString:()=>NO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>xne,elementAt:()=>xy,elideNodes:()=>Jae,emitComments:()=>zie,emitDetachedComments:()=>Bie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>Sce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Fie,emitNewLineBeforeLeadingComments:()=>Oie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Vle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>hne,endsWith:()=>El,ensurePathIsNonModuleName:()=>g0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>rne,equateStringsCaseInsensitive:()=>Xb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Iy,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>fl,escapeNonAsciiString:()=>$2,escapeSnippetText:()=>B0,escapeString:()=>Zh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>oR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>Poe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>jN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>bk,externalHelpersModuleNameText:()=>Vv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>hs,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Hle,findContainingList:()=>Wz,findDiagnosticForNode:()=>Fde,findFirstNonJsxWhitespaceToken:()=>ode,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>ide,findMap:()=>uEe,findModifier:()=>dD,findNextToken:()=>sS,findPackageJson:()=>Ode,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Ga,firstDefined:()=>Wl,firstDefinedIterator:()=>bL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Jc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>OC,flatten:()=>pm,flattenCommaList:()=>Yae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>rS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Ore,forEachAncestorDirectory:()=>hm,forEachChild:()=>Bo,forEachChildRecursively:()=>EP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Xre,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>uh,forEachLeadingCommentRange:()=>jL,forEachNameInAccessChainWalkingLeft:()=>soe,forEachPropertyAssignment:()=>Xx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>x0,forEachRight:()=>qte,forEachTrailingCommentRange:()=>UL,forEachTsConfigPropArray:()=>S2,forEachUnique:()=>qq,forEachYieldExpression:()=>tie,forSomeAncestorDirectory:()=>lSe,formatColorAndReset:()=>oS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>n1e,formatDiagnosticsWithColorAndContext:()=>qle,formatGeneratedName:()=>bE,formatGeneratedNamePart:()=>BR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>ng,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>KC,generateTSConfig:()=>aAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>v0e,getAllKeys:()=>fEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>EN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>jv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>uE,getAnyExtensionFromPath:()=>Cx,getAreDeclarationMapsEnabled:()=>gk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>wP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>k2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>Y2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Gle,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>eb,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>P0,getClassLikeDeclarationOfSymbol:()=>wg,getCombinedLocalAndExportSymbolFlags:()=>_R,getCombinedModifierFlags:()=>eE,getCombinedNodeFlags:()=>Cy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>VP,getCommonSourceDirectoryOfConfig:()=>$R,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>iAe,getConditions:()=>Qv,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>$oe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>id,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>die,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>cie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Moe,getContainingObjectLiteralElement:()=>PO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Fw,getDeclarationDiagnostics:()=>Fle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>Pie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>bN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Lre,getDeclaredExpandoInitializer:()=>N2,getDecorators:()=>Rv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>KL,getDefaultLibFilePath:()=>dpe,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>qTe,getDiagnosticsWithinSpan:()=>zde,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>hce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>_h,getEditsForFileRename:()=>qde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>wx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>aR,getEffectiveInitializer:()=>C2,getEffectiveJSDocHost:()=>dE,getEffectiveModifierFlags:()=>du,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uie,getEffectiveModifierFlagsNoCache:()=>Hie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>wie,getEffectiveTypeAnnotationNode:()=>gd,getEffectiveTypeParameterDeclarations:()=>Dv,getEffectiveTypeRoots:()=>RP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Mg,getElementsOfBindingOrAssignmentPattern:()=>zR,getEmitDeclarations:()=>Af,getEmitFlags:()=>Fa,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Md,getEmitModuleResolutionKind:()=>pu,getEmitScriptTarget:()=>ns,getEmitStandardClassFields:()=>hoe,getEnclosingBlockScopeContainer:()=>ph,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>m2,getEntityNameFromTypeNode:()=>I2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>bce,getEscapedTextOfIdentifierOrLiteral:()=>AN,getEscapedTextOfJsxAttributeName:()=>QN,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>lE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>mO,getExportNeedsImportStarHelper:()=>nle,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>xN,getExternalHelpersModuleName:()=>Uk,getExternalModuleImportEqualsDeclarationExpression:()=>gN,getExternalModuleName:()=>tR,getExternalModuleNameFromDeclaration:()=>Cie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Nw,getFileEmitOutput:()=>tce,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>AP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>eg,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Nde,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>p2,getFunctionFlags:()=>Bc,getHeritageClause:()=>K2,getHostSignatureFromJSDoc:()=>cE,getIdentifierAutoGenerate:()=>HSe,getIdentifierGeneratedImportReference:()=>rae,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>kw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>uR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>ON,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Kk,getInterfaceBaseTypeNodes:()=>SN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>nre,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>cre,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>rre,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>lre,getJSDocParameterTags:()=>kx,getJSDocParameterTagsNoCache:()=>Qne,getJSDocPrivateTag:()=>m0e,getJSDocPrivateTagNoCache:()=>ore,getJSDocProtectedTag:()=>_0e,getJSDocProtectedTagNoCache:()=>are,getJSDocPublicTag:()=>f0e,getJSDocPublicTagNoCache:()=>ire,getJSDocReadonlyTag:()=>h0e,getJSDocReadonlyTagNoCache:()=>sre,getJSDocReturnTag:()=>dre,getJSDocReturnType:()=>$L,getJSDocRoot:()=>iR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>iE,getJSDocTagsNoCache:()=>y0e,getJSDocTemplateTag:()=>g0e,getJSDocThisTag:()=>nF,getJSDocType:()=>rE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>Zne,getJSDocTypeParameterTagsNoCache:()=>ere,getJSDocTypeTag:()=>nE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ok,getLastChild:()=>Zj,getLeadingCommentRanges:()=>Uh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>hR,getLeftmostExpression:()=>gR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>AK,getLineOfLocalPosition:()=>DN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Rg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>roe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>noe,getLinesBetweenPositions:()=>YC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>aSe,getLiteralText:()=>Vre,getLocalNameForExternalImport:()=>FR,getLocalSymbolForExportDefault:()=>mR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Ww,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>ZP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>Uw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>nie,getModeForFileReference:()=>Mw,getModeForResolutionAtIndex:()=>Xle,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>v0,getModuleInstanceState:()=>Gg,getModuleNameStringLiteralAt:()=>ww,getModuleSpecifierEndingPreference:()=>Toe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Yre,getNameFromPropertyName:()=>rO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>$ne,getNameOrArgument:()=>L2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>Bde,getNamespaceDeclarationNode:()=>nR,getNewLineCharacter:()=>Wy,getNewLineKind:()=>fO,getNewLineOrDefaultFromHost:()=>qy,getNewTargetContainer:()=>pie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>qk,getNodeId:()=>rs,getNodeKind:()=>aS,getNodeModifiers:()=>YP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>MP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>OL,getObjectFlags:()=>kr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>X2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>VR,getOrCreateEmitNode:()=>Ld,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Fae,getOrUpdate:()=>FC,getOriginalNode:()=>Cl,getOriginalNodeId:()=>kd,getOriginalSourceFile:()=>Y0e,getOutputDeclarationFileName:()=>GP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>e1e,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>BP,getOutputPathsForBundle:()=>zP,getOwnEmitOutputFilePath:()=>Nie,getOwnKeys:()=>jh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Z0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Wde,getPackageNameFromTypesPackageName:()=>CP,getPackageScopeForPath:()=>mw,getParameterSymbolFromJSDoc:()=>G2,getParameterTypeNode:()=>gSe,getParentNodeInSpan:()=>oO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>Zk,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Av,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>boe,getPendingEmitKind:()=>nD,getPositionOfLineAndCharacter:()=>GL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Mie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>t1e,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>lie,getPropertyAssignmentAliasLikeExpression:()=>Iie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>q0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>af,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>jP,getRegexFromPattern:()=>Bv,getRegularExpressionForWildcard:()=>BN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>FL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>lO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>QR,getResolveJsonModule:()=>_E,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>P2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>gce,getRootLength:()=>lh,getRootPathSplitLength:()=>x1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Vie,getSemanticClassifications:()=>Ude,getSemanticJsxChildren:()=>lR,getSetAccessorTypeAnnotationNode:()=>Lie,getSetAccessorValueParameter:()=>CN,getSetExternalModuleIndicator:()=>ak,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>cD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>zy,getSourceMapper:()=>aue,getSourceTextOfNodeFromSourceFile:()=>T0,getSpanOfTokenAtPosition:()=>fh,getSpellingSuggestion:()=>VC,getStartPositionOfLine:()=>wv,getStartPositionOfRange:()=>wN,getStartsOnNewLine:()=>rP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>uu,getStringComparer:()=>Ex,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>T2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>GN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>sk,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>J2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Hde,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>al,getSynthesizedDeepCloneWithReplacements:()=>sO,getSynthesizedDeepClones:()=>lS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>IR,getSyntheticTrailingComments:()=>xk,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>$v,getTemporaryModuleResolutionState:()=>fw,getTextOfConstantValue:()=>jre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>ZL,getTextOfJsxAttributeName:()=>mk,getTextOfJsxNamespacedName:()=>ZN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>uN,getTextOfPropertyName:()=>Ux,getThisContainer:()=>wu,getThisParameter:()=>L0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>aE,getTokenSourceMapRange:()=>jSe,getTouchingPropertyName:()=>zu,getTouchingToken:()=>lD,getTrailingCommentRanges:()=>$b,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Koe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>_N,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>kie,getTypeArgumentOrTypeParameterList:()=>fde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>tae,getTypeNodeIfAccessible:()=>iM,getTypeParameterFromJsDoc:()=>vie,getTypeParameterOwner:()=>l0e,getTypesPackageName:()=>A3,getUILocale:()=>lne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Cde,getUseDefineForClassFields:()=>nP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>GC,groupBy:()=>hW,guessIndentation:()=>Pre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>O0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>$w,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ude,hasDynamicName:()=>Wv,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>NN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Lv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>tre,hasJSFileExtension:()=>W0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>qre,hasProperty:()=>As,hasPropertyAccessExpressionWithName:()=>Kw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Wae,hasResolutionModeOverride:()=>Woe,hasRestParameter:()=>FV,hasScopeMarker:()=>Tre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Gie,hasTSFileExtension:()=>WI,hasTabstop:()=>koe,hasTrailingDirectorySeparator:()=>Ry,hasType:()=>hF,hasTypeArguments:()=>j0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>ky,hostUsesCaseSensitiveFileNames:()=>pR,idText:()=>yr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>tE,identity:()=>Zs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>wL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>vN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Dk,indexOfAnyCharCode:()=>Xte,indexOfNode:()=>jx,indicesOf:()=>SL,inferredTypesContainingFile:()=>tD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>ple,insertImports:()=>QP,insertLeadingStatement:()=>lTe,insertSorted:()=>bv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>L0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>qh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>aie,inverseJsxOptionMap:()=>IP,isAbstractConstructorSymbol:()=>ioe,isAbstractModifier:()=>uae,isAccessExpression:()=>Ms,isAccessibilityModifier:()=>kq,isAccessor:()=>Nv,isAccessorModifier:()=>fae,isAliasSymbolDeclaration:()=>H0e,isAliasableExpression:()=>H2,isAmbientModule:()=>Pd,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>IN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Jre,isAnyImportOrReExport:()=>h2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>hSe,isApplicableVersionedTypesKey:()=>hw,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>So,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>a2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>j0,isArrayLiteralExpression:()=>fu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ky,isArrayTypeNode:()=>wk,isArrowFunction:()=>zs,isAsExpression:()=>Wk,isAssertClause:()=>bae,isAssertEntry:()=>eTe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>cae,isAssignmentDeclaration:()=>yN,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>lN,isAssignmentTarget:()=>Qh,isAsteriskToken:()=>Pk,isAsyncFunction:()=>TN,isAsyncModifier:()=>aP,isAutoAccessorPropertyDeclaration:()=>ku,isAwaitExpression:()=>qv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>ur,isBinaryOperatorToken:()=>Kae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>C0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>qa,isBindingElementOfBareOrAccessedRequire:()=>_ie,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>gre,isBindingOrAssignmentPattern:()=>i2,isBindingPattern:()=>Yo,isBlock:()=>Uo,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Kre,isBooleanLiteral:()=>sN,isBreakOrContinueStatement:()=>rN,isBreakStatement:()=>$Se,isBuildInfoFile:()=>Ble,isBuilderProgram:()=>Ece,isBundle:()=>aH,isBundleFileTextLike:()=>aoe,isCallChain:()=>oT,isCallExpression:()=>ra,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>S0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>oP,isCaseBlock:()=>fP,isCaseClause:()=>MR,isCaseKeyword:()=>mae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>Y0,isCatchClauseVariableDeclaration:()=>Loe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>dk,isChildOfNodeWithKind:()=>w0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>Xc,isClassExpression:()=>$c,isClassInstanceProperty:()=>_re,isClassLike:()=>di,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>kP,isCollapsedRange:()=>oSe,isColonToken:()=>sae,isCommaExpression:()=>jk,isCommaListExpression:()=>dP,isCommaSequence:()=>yP,isCommaToken:()=>aae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>iie,isCompoundAssignment:()=>PP,isComputedNonLiteralName:()=>g2,isComputedPropertyName:()=>Xa,isConciseBody:()=>pF,isConditionalExpression:()=>PR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Cg,isConstructSignatureDeclaration:()=>Lk,isConstructorDeclaration:()=>Nl,isConstructorTypeNode:()=>RR,isContextualKeyword:()=>e6,isContinueStatement:()=>YSe,isCustomPrologue:()=>E2,isDebuggerStatement:()=>QSe,isDeclaration:()=>Hd,isDeclarationBindingElement:()=>r2,isDeclarationFileName:()=>bd,isDeclarationName:()=>Lg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Rre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>vd,isDecoratorTarget:()=>Qce,isDefaultClause:()=>_P,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>hie,isDeleteExpression:()=>gae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>Oy,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>qSe,isDocumentRegistryEntry:()=>_O,isDotDotDotToken:()=>L4,isDottedName:()=>MN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>X0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Hre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Xs,isEmittedFileOfProgram:()=>Ule,isEmptyArrayLiteral:()=>Xie,isEmptyBindingElement:()=>Xne,isEmptyBindingPattern:()=>qne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>I0,isEnumDeclaration:()=>gE,isEnumMember:()=>$0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>lae,isExclamationToken:()=>Mk,isExcludedFile:()=>ase,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ml,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Jk,isExportSpecifier:()=>Kd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>eS,isExpression:()=>ht,isExpressionNode:()=>Yh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>nde,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>Qc,isExpressionWithTypeArguments:()=>Gy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>A0,isExternalModuleImportEqualsDeclaration:()=>sE,isExternalModuleIndicator:()=>s2,isExternalModuleNameRelative:()=>qc,isExternalModuleReference:()=>bh,isExternalModuleSymbol:()=>tO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>n2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Yk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Fx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Fk,isForStatement:()=>kT,isFunctionBlock:()=>R0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ls,isFunctionExpressionOrArrowFunction:()=>z0,isFunctionLike:()=>Xo,isFunctionLikeDeclaration:()=>Fs,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Wx,isFunctionOrConstructorTypeNode:()=>hre,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>yie,isFunctionTypeNode:()=>gh,isFutureReservedKeyword:()=>K0e,isGeneratedIdentifier:()=>il,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Mv,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>kxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>Bre,isHeritageClause:()=>ef,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>Aie,isIdentifierOrThisTypeNode:()=>Vae,isIdentifierPart:()=>Qb,isIdentifierStart:()=>Hh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>sie,isIdentifierTypeReference:()=>Doe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Cw,isImplicitGlob:()=>sU,isImportAttribute:()=>Eae,isImportAttributeName:()=>mre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>yh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>Zc,isImportKeyword:()=>lP,isImportMeta:()=>Jx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Dde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>ZSe,isImportTypeNode:()=>ig,isImportableFile:()=>EX,isInComment:()=>Hy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>R2,isInJSFile:()=>ir,isInJSXText:()=>cde,isInJsonFile:()=>UF,isInNonReferenceComment:()=>hde,isInReferenceComment:()=>_de,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>tP,isIndexSignatureDeclaration:()=>V0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>XN,isInitializedProperty:()=>Sw,isInitializedVariable:()=>ik,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>lde,isInsideNodeModules:()=>pO,isInsideTemplateLiteral:()=>Zw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>mu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>Qx,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>dR,isIterationStatement:()=>Pv,isJSDoc:()=>Ym,isJSDocAllType:()=>xae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>iTe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Dae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>rR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>Bk,isJSDocFunctionType:()=>kR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>Aae,isJSDocLinkCode:()=>Iae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>nTe,isJSDocMemberName:()=>yE,isJSDocNameReference:()=>hP,isJSDocNamepathType:()=>rTe,isJSDocNamespaceBody:()=>R0e,isJSDocNode:()=>zx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>LR,isJSDocOptionalParameter:()=>fk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>wR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>$m,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>iN,isJSDocPropertyTag:()=>Cae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>oTe,isJSDocSignature:()=>vE,isJSDocTag:()=>Bx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>sTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>WR,isJSDocTypeExpression:()=>Q0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>gP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>aTe,isJSDocUnknownType:()=>Rae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>$x,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Ooe,isJsxAttributes:()=>X0,isJsxChild:()=>d2,isJsxClosingElement:()=>J0,isJsxClosingFragment:()=>Sae,isJsxElement:()=>og,isJsxExpression:()=>mP,isJsxFragment:()=>q0,isJsxNamespacedName:()=>Xm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>lu,isJsxOpeningLikeElementTagName:()=>Zce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>cN,isJsxText:()=>UI,isJumpStatementTarget:()=>Jw,isKeyword:()=>Wu,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>q2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>K0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>iSe,isLet:()=>NF,isLineBreak:()=>jd,isLiteralComputedPropertyDeclarationName:()=>U2,isLiteralExpression:()=>E0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>Ov,isLiteralKind:()=>oN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>M2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>fTe,isLiteralTypeLiteral:()=>Ere,isLiteralTypeNode:()=>Jv,isLocalName:()=>zg,isLogicalOperator:()=>Kie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>PN,isLogicalOrCoalescingBinaryExpression:()=>ek,isLogicalOrCoalescingBinaryOperator:()=>Z2,isMappedTypeNode:()=>CR,isMemberName:()=>Kh,isMetaProperty:()=>cP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>hh,isMinusToken:()=>QU,isMissingDeclaration:()=>tTe,isMissingPackageJsonInfo:()=>Tse,isModifier:()=>Sa,isModifierKind:()=>Ny,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>Are,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>$h,isModuleIdentifier:()=>mj,isModuleName:()=>Hae,isModuleOrEnumDeclaration:()=>l2,isModuleReference:()=>Cre,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>S0e,isNamedDeclaration:()=>au,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>Fg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>DR,isNamespaceBody:()=>x0e,isNamespaceExport:()=>vh,isNamespaceExportDeclaration:()=>zk,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>mie,isNewExpression:()=>U0,isNewExpressionTarget:()=>qP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>b0e,isNodeArray:()=>b0,isNodeArrayMultiLine:()=>toe,isNodeDescendantOf:()=>N0,isNodeKind:()=>e2,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>Eie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>_Te,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>jde,isNonNullAccess:()=>woe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>rle,isNotEmittedOrPartiallyEmittedNode:()=>I0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ty,isNumericLiteral:()=>mp,isNumericLiteralName:()=>rg,isObjectBindingElementWithoutPropertyName:()=>iO,isObjectBindingOrAssignmentElement:()=>o2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Ng,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>Gc,isOptionalChain:()=>Ud,isOptionalChainRoot:()=>tN,isOptionalDeclaration:()=>$N,isOptionalJSDocPropertyLikeTag:()=>pk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>nN,isOverrideModifier:()=>pae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>To,isParameterDeclaration:()=>M0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>aN,isParenthesizedExpression:()=>Fu,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>eN,isPartOfTypeNode:()=>Xh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>f2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>Qw,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>su,isPrivateIdentifierPropertyAccessExpression:()=>Ox,isPrivateIdentifierSymbol:()=>xie,isProgramBundleEmitBuildInfo:()=>ace,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>tk,isPropertyAccessExpression:()=>wr,isPropertyAccessOrQualifiedName:()=>vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>yre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Vo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Rie,isPrototypeAccess:()=>zv,isPrototypePropertyAssignment:()=>w2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Au,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Gae,isQuestionOrPlusOrMinusToken:()=>Uae,isQuestionToken:()=>Hv,isRawSourceMap:()=>Zse,isReadonlyKeyword:()=>dae,isReadonlyKeywordOrPlusOrMinusToken:()=>jae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>ZR,isReferencedFile:()=>xE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>Su,isRequireVariableStatement:()=>pj,isRestParameter:()=>Jh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>qie,isRightSideOfPropertyAccess:()=>aD,isRightSideOfQualifiedName:()=>tde,isRightSideOfQualifiedNameOrPropertyAccess:()=>LN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Jie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Zx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>Sre,isSemicolonClassElement:()=>yae,isSetAccessor:()=>Py,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>pN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>nS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>lle,isSimpleParameterList:()=>Tw,isSingleOrDoubleQuote:()=>D2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>mD,isSourceFileJS:()=>cu,isSourceFileNotJS:()=>F0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>ele,isSpecialPropertyDeclaration:()=>gie,isSpreadAssignment:()=>Vy,isSpreadElement:()=>qm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>c2,isStatementOrBlock:()=>Dre,isStatementWithLocals:()=>zre,isStatic:()=>na,isStaticModifier:()=>qI,isString:()=>Co,isStringAKeyword:()=>J0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>mde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Da,isStringLiteralLike:()=>as,isStringLiteralOrJsxExpression:()=>Nre,isStringLiteralOrTemplate:()=>kde,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>sP,isSuperOrSuperProperty:()=>W0e,isSuperProperty:()=>Ou,isSupportedSourceFileName:()=>Aoe,isSwitchStatement:()=>pP,isSyntaxList:()=>OR,isSyntheticExpression:()=>JSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>H0,isTaggedTemplateTag:()=>$ce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Cv,isTemplateLiteralToken:()=>pre,isTemplateLiteralTypeNode:()=>_ae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>uP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>bde,isThis:()=>sD,isThisContainerOrFunctionBlock:()=>uie,isThisIdentifier:()=>w0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>fie,isThisProperty:()=>A2,isThisTypeNode:()=>Ok,isThisTypeParameter:()=>YN,isThisTypePredicate:()=>O0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Bg,isTransientSymbol:()=>dh,isTrivia:()=>sR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>F2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>hae,isTypeDeclaration:()=>SR,isTypeElement:()=>lT,isTypeKeyword:()=>$P,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>NR,isTypeOnlyExportDeclaration:()=>fre,isTypeOnlyImportDeclaration:()=>t2,isTypeOnlyImportOrExportDeclaration:()=>oE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>ml,isTypePredicateNode:()=>kk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>bre,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Kv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>Tae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>ure,isUrl:()=>Mne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>oie,isValidTypeOnlyAliasUseSite:()=>mE,isValueSignatureDeclaration:()=>Sie,isVarAwaitUsing:()=>v2,isVarConst:()=>Kx,isVarUsing:()=>b2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>mN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>D0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Vc,isVariableLike:()=>qx,isVariableLikeOrAccessor:()=>rie,isVariableStatement:()=>Pl,isVoidExpression:()=>e1,isWatchSet:()=>sSe,isWhileStatement:()=>XSe,isWhiteSpaceLike:()=>Dg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>vae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ka,lastOrUndefined:()=>Qs,length:()=>Nn,libMap:()=>c3,libs:()=>ow,lineBreakPart:()=>pD,linkNamePart:()=>xde,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Lse,loadWithModeAwareCache:()=>Lw,makeIdentifierFromModuleName:()=>Ure,makeImport:()=>Jy,makeImportIfNecessary:()=>vde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>qR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>$te,mapDefinedIterator:()=>WC,mapEntries:()=>Zte,mapIterator:()=>wC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>nb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>fne,matchesExclude:()=>l3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>poe,memoize:()=>Eu,memoizeCached:()=>ane,memoizeOne:()=>ah,memoizeWeak:()=>mEe,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>xoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Wre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>tS,moveEmitHelpers:()=>Zoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>kg,moveRangePastModifiers:()=>R_,moveRangePos:()=>pE,moveSyntheticComments:()=>Yoe,mutateMap:()=>FN,mutateMapSkippingNewValues:()=>tg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>ale,noEmitNotification:()=>Aw,noEmitSubstitution:()=>WP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>YL,nodeIsDecorated:()=>Yx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>qs,nodeModuleNameResolver:()=>Rse,nodeModulesPathPart:()=>Sh,nodeNextJsonConfigResolver:()=>Dse,nodeOrChildIsDecorated:()=>x2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>C0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Dxe,noop:()=>Ja,noopFileWatcher:()=>iD,normalizePath:()=>ma,normalizeSlashes:()=>Nd,not:()=>SW,notImplemented:()=>jo,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>FP,objectAllocator:()=>od,operatorPart:()=>eM,optionDeclarations:()=>ag,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>jR,optionsHaveChanges:()=>Gx,optionsHaveModuleResolutionChanges:()=>kre,or:()=>Um,orderedRemoveItem:()=>Tx,orderedRemoveItemAt:()=>Sv,outFile:()=>Ds,packageIdToPackageName:()=>EF,packageIdToString:()=>kv,paramHelper:()=>a4,parameterIsThisKeyword:()=>k0,parameterNamePart:()=>Sde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Roe,parseBuildCommand:()=>JTe,parseCommandLine:()=>HTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>D1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Qae,parseJSDocTypeExpressionForTests:()=>MTe,parseJsonConfigFileContent:()=>sAe,parseJsonSourceFileConfigFileContent:()=>nw,parseJsonText:()=>Qk,parseListTypeOption:()=>ese,parseNodeFactory:()=>Eh,parseNodeModuleFromPath:()=>pw,parsePackageName:()=>_w,parsePseudoBigInt:()=>HN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Nne,pathContainsNodeModules:()=>AE,pathIsAbsolute:()=>JC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>pne,perfLogger:()=>iu,performIncrementalCompilation:()=>M1e,performance:()=>Ane,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Jm,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>tRe,probablyUsesSemicolons:()=>dO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>yde,programContainsModules:()=>gde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>Tde,pseudoBigIntToString:()=>F0,punctuationPart:()=>Xd,pushIfUnique:()=>yf,quote:()=>rM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>qw,rangeContainsPositionExclusive:()=>Xw,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>rde,rangeContainsStartEnd:()=>Yw,rangeEndIsOnSameLineAsRangeStart:()=>rk,rangeEndPositionsAreOnSameLine:()=>Zie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>XP,rangeStartIsOnSameLineAsRangeEnd:()=>eoe,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>ew,readHelper:()=>g4,readJson:()=>kN,readJsonConfigFile:()=>rse,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Fne,reduceEachTrailingCommentRange:()=>zne,reduceLeft:()=>ru,reduceLeftIterator:()=>dEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>mSe,relativeComplement:()=>ene,removeAllComments:()=>Ak,removeEmitHelper:()=>USe,removeExtension:()=>ck,removeFileExtension:()=>Tu,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>dde,removePrefix:()=>jC,removeSuffix:()=>Sx,removeTrailingDirectorySeparator:()=>Yb,repeatString:()=>nO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>VN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>Ise,resolveLibrary:()=>E3,resolveModuleName:()=>KR,resolveModuleNameFromCache:()=>UAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Iv,resolveProjectReferencePath:()=>eD,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>Ese,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>jm,returnNoopFileWatcher:()=>oD,returnTrue:()=>Ay,returnUndefined:()=>qb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Yte,sameMap:()=>Nc,sameMapping:()=>PIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>eie,scanner:()=>Yd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>Qke,servicesVersion:()=>upe,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Qoe,setEachParent:()=>ER,setEmitFlags:()=>cr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>Rk,setIdentifierGeneratedImportReference:()=>nae,setIdentifierTypeArguments:()=>By,setInternalEmitFlags:()=>Ik,setLocalizedDiagnosticMessages:()=>uoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Noe,setObjectAllocator:()=>doe,setOriginalNode:()=>xr,setParent:()=>Va,setParentRecursive:()=>Gv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>wEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>hE,setSyntheticTrailingComments:()=>GI,setSys:()=>BEe,setSysLog:()=>Dne,setTextRange:()=>at,setTextRangeEnd:()=>bR,setTextRangePos:()=>KN,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>JN,setTokenSourceMapRange:()=>Xoe,setTypeNode:()=>eae,setUILocale:()=>cne,setValueDeclaration:()=>O2,shouldAllowImportingTsExtension:()=>XR,shouldPreserveConstEnums:()=>G0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>ooe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>qd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Qte,singleOrMany:()=>ih,singleOrUndefined:()=>rh,skipAlias:()=>yd,skipAssertions:()=>dTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Na,skipTypeChecking:()=>UN,skipTypeParentheses:()=>j2,skipWhile:()=>_ne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>zC,sortAndDeduplicateDiagnostics:()=>Mx,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>Ll,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>Ey,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Jd,startTracing:()=>Ine,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>wae,stringContainsAt:()=>Vde,stringToToken:()=>y0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>yk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>AR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>TR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>vk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>Pde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>vl,symbolNameNoDefault:()=>Xz,symbolPart:()=>Ede,symbolToDisplayParts:()=>tM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>_d,sysLog:()=>LL,tagNamesAreEquivalent:()=>EE,takeWhile:()=>AW,targetOptionDeclaration:()=>sw,templateObjectHelper:()=>h4,testFormatSettings:()=>Yce,textChangeRangeIsUnchanged:()=>Kne,textChangeRangeNewSpan:()=>ZC,textChanges:()=>pr,textOrKeywordPart:()=>$q,textPart:()=>sf,textRangeContainsPositionInclusive:()=>JL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Vne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Hne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>Une,textSpanIntersectsWithTextSpan:()=>s0e,textSpanIsEmpty:()=>Gne,textSpanOverlap:()=>jne,textSpanOverlapsWith:()=>a0e,textSpansEqual:()=>uD,textToKeywordObj:()=>HL,timestamp:()=>Js,toArray:()=>dI,toBuilderFileEmit:()=>cce,toBuilderStateFileInfoForMultiEmit:()=>lce,toEditorSettings:()=>CO,toFileNameLowerCase:()=>oh,toLowerCase:()=>one,toPath:()=>nl,toProgramEmitPending:()=>dce,tokenIsIdentifierOrKeyword:()=>ou,tokenIsIdentifierOrKeywordOrGreaterThan:()=>One,tokenToString:()=>da,trace:()=>yo,tracing:()=>rr,tracingEnabled:()=>CL,transform:()=>ZDe,transformClassFields:()=>gle,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Mle,transformES2016:()=>Ple,transformES2017:()=>Ele,transformES2018:()=>Sle,transformES2019:()=>Tle,transformES2020:()=>Ale,transformES2021:()=>Ile,transformES5:()=>Lle,transformESDecorators:()=>ble,transformESNext:()=>xle,transformGenerators:()=>kle,transformJsx:()=>Nle,transformLegacyDecorators:()=>vle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ole,transformNodes:()=>Iw,transformSystemModule:()=>wle,transformTypeScript:()=>hle,transpile:()=>cRe,transpileModule:()=>sue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Jb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ii,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>uO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Og,tryGetImportFromModuleSpecifier:()=>W2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Hk,tryGetModuleSpecifierFromDeclaration:()=>eR,tryGetNativePerformanceHooks:()=>Ene,tryGetPropertyAccessOrIdentifierToString:()=>nk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Qse,tryGetTextOfPropertyName:()=>fN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>vR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>SP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>Ioe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>une,typeAcquisitionDeclarations:()=>lw,typeAliasNamePart:()=>Ade,typeDirectiveIsEqualTo:()=>Fre,typeKeywords:()=>g7,typeParameterNamePart:()=>Ide,typeToDisplayParts:()=>aO,unchangedPollThresholds:()=>kL,unchangedTextChangeRange:()=>u2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>gw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>moe,unusedLabelIsError:()=>_oe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>UR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Dw,usesExtensionsOnImports:()=>Soe,usingSingleLineStringWriter:()=>dN,utf16EncodeAsString:()=>Px,validateLocaleAndSetLanguage:()=>c0e,valuesHelper:()=>E4,version:()=>qp,versionMajorMinor:()=>g_,visitArray:()=>bw,visitCommaListElements:()=>Ew,visitEachChild:()=>Sn,visitFunctionBody:()=>rf,visitIterationBody:()=>Iu,visitLexicalEnvironment:()=>TK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Lx,walkUpLexicalEnvironments:()=>ole,walkUpOuterExpressions:()=>Oae,walkUpParenthesizedExpressions:()=>Ly,walkUpParenthesizedTypes:()=>V2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>fR,writeFile:()=>RN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var ob=bt({"src/server/_namespaces/ts.ts"(){"use strict";Qo(),Vw(),si(),LQ(),iA()}}),ewe={};xa(ewe,{ActionInvalidate:()=>Bw,ActionPackageInstalled:()=>Gw,ActionSet:()=>zw,ActionWatchTypingLocations:()=>JP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>zB,CommandNames:()=>Fhe,ConfigFileDiagEvent:()=>kB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>FB,CreateFileWatcherEvent:()=>WB,Errors:()=>Qy,EventBeginInstallTypes:()=>xz,EventEndInstallTypes:()=>Rz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Iz,ExternalProject:()=>RB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>LB,LineIndex:()=>EM,LineLeaf:()=>l8,LineNode:()=>k1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>rA,ProjectInfoTelemetryEvent:()=>OB,ProjectKind:()=>vM,ProjectLanguageServiceStateEvent:()=>wB,ProjectLoadingFinishEvent:()=>MB,ProjectLoadingStartEvent:()=>PB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>o8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>jB,Session:()=>Bhe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>jhe,allFilesAreJsOrDts:()=>hhe,allRootFilesAreJsOrDts:()=>_he,asNormalizedPath:()=>Rke,convertCompilerOptions:()=>DB,convertFormatOptions:()=>MD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>vhe,convertUserPreferences:()=>bhe,convertWatchOptions:()=>i8,countEachFileTypes:()=>n8,createInstallTypingsRequest:()=>q_e,createModuleSpecifierCache:()=>Nhe,createNormalizedPathMap:()=>Dke,createPackageJsonCache:()=>Phe,createSortedArray:()=>Z_e,emptyArray:()=>_c,findArgument:()=>_xe,forEachResolvedProjectReferenceProject:()=>LD,formatDiagnosticToProtocol:()=>s8,formatMessage:()=>Mhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>Ohe,hasArgument:()=>mxe,hasNoTypeScriptSource:()=>ghe,indent:()=>KP,isBackgroundProject:()=>r8,isConfigFile:()=>xhe,isConfiguredProject:()=>LE,isDynamicFileName:()=>t8,isExternalProject:()=>jQ,isInferredProject:()=>PD,isInferredProjectName:()=>X_e,makeAutoImportProviderProjectName:()=>$_e,makeAuxiliaryProjectName:()=>Q_e,makeInferredProjectName:()=>Y_e,maxFileSize:()=>NB,maxProgramSizeForNonTsFiles:()=>CB,normalizedPathToPath:()=>e8,nowString:()=>hxe,nullCancellationToken:()=>Whe,nullTypingsInstaller:()=>xB,projectContainsInfoDirectly:()=>M1,protocol:()=>mhe,removeSorted:()=>Cke,stringifyIndented:()=>RE,toEvent:()=>Lhe,toNormalizedPath:()=>ul,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>K_e,updateProjectIfDirty:()=>zp});var Mot=bt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";Dz(),iA()}}),twe={};xa(twe,{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:()=>R,DiagnosticCategory:()=>PL,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:()=>ks,FlattenLevel:()=>kK,FlowFlags:()=>NL,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:()=>ME,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:()=>HC,ModuleResolutionKind:()=>Dx,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>due,NavigationBar:()=>bue,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:()=>KO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>BW,SortKind:()=>XG,StructureIsReused:()=>LW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>$y,SymbolDisplayPartKind:()=>jw,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:()=>RL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>Lc,accessPrivateIdentifier:()=>sle,addDisposableResourceHelper:()=>C4,addEmitFlags:()=>D_,addEmitHelper:()=>VI,addEmitHelpers:()=>Wg,addInternalEmitFlags:()=>BI,addNodeFactoryPatcher:()=>WSe,addObjectAllocatorPatcher:()=>coe,addRange:()=>Hr,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>iP,addSyntheticTrailingComment:()=>n4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Nk,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>T3,altDirectorySeparator:()=>zL,and:()=>EW,append:()=>Tn,appendIfUnique:()=>Ig,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Vm,arrayIsHomogeneous:()=>Coe,arrayIsSorted:()=>fW,arrayOf:()=>nne,arrayReverseIterator:()=>wG,arrayToMap:()=>h0,arrayToMultiMap:()=>AL,arrayToNumericMap:()=>ine,arraysEqual:()=>EL,assertType:()=>gEe,assign:()=>bx,assignHelper:()=>c4,asyncDelegator:()=>u4,asyncGeneratorHelper:()=>d4,asyncSuperHelper:()=>Ck,asyncValues:()=>p4,attachFileToDiagnostics:()=>wI,awaitHelper:()=>jI,awaiterHelper:()=>m4,base64decode:()=>Qie,base64encode:()=>$ie,binarySearch:()=>Sy,binarySearchKey:()=>lI,bindSourceFile:()=>Ose,breakIntoCharacterSpans:()=>rue,breakIntoWordSpans:()=>iue,buildLinkParts:()=>Rde,buildOpts:()=>p3,buildOverload:()=>Eke,bundlerModuleNameResolver:()=>xse,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>GT,canHaveExportModifier:()=>uk,canHaveFlowNode:()=>z2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>Bae,canHaveIllegalType:()=>pTe,canHaveIllegalTypeParameters:()=>zae,canHaveJSDoc:()=>B2,canHaveLocals:()=>ch,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>TP,canProduceDiagnostics:()=>H3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>mce,canWatchAtTypes:()=>fce,canWatchDirectoryOrFile:()=>pz,cartesianProduct:()=>mne,cast:()=>ta,chainBundle:()=>Im,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>WL,changeCompilerHostLikeToUseCache:()=>Pw,changeExtension:()=>fE,changeFullExtension:()=>Lne,changesAffectModuleResolution:()=>yF,changesAffectingProgramStructure:()=>wre,childIsDecorated:()=>hN,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>V3,classOrConstructorParameterIsDecorated:()=>My,classPrivateFieldGetHelper:()=>x4,classPrivateFieldInHelper:()=>D4,classPrivateFieldSetHelper:()=>R4,classicNameResolver:()=>Mse,classifier:()=>_pe,cleanExtendedConfigCache:()=>Z3,clear:()=>Vh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>Mz,climbPastPropertyOrElementAccess:()=>ede,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>Rf,codefix:()=>wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Jne,collectExternalModuleInfo:()=>CK,combine:()=>vx,combinePaths:()=>Yr,commentPragmas:()=>ML,commonOptionsWithBuild:()=>aw,commonPackageFolders:()=>DU,compact:()=>TL,compareBooleans:()=>Ev,compareDataObjects:()=>Qj,compareDiagnostics:()=>zN,compareDiagnosticsSkipRelatedInformation:()=>T6,compareEmitHelpers:()=>oae,compareNumberOfDirectorySeparators:()=>lk,comparePaths:()=>xg,comparePathsCaseInsensitive:()=>UEe,comparePathsCaseSensitive:()=>jEe,comparePatternKeys:()=>dK,compareProperties:()=>dne,compareStringsCaseInsensitive:()=>vW,compareStringsCaseInsensitiveEslintCompatible:()=>sne,compareStringsCaseSensitive:()=>Vd,compareStringsCaseSensitiveUI:()=>xL,compareTextSpans:()=>yW,compareValues:()=>el,compileOnSaveCommandLineOption:()=>iw,compilerOptionsAffectDeclarationPath:()=>voe,compilerOptionsAffectEmit:()=>yoe,compilerOptionsAffectSemanticDiagnostics:()=>goe,compilerOptionsDidYouMeanDiagnostics:()=>cw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>_Ee,computeCommonSourceDirectoryOfFilenames:()=>Kle,computeLineAndCharacterOfPosition:()=>Nx,computeLineOfPosition:()=>XC,computeLineStarts:()=>hI,computePositionOfLineAndCharacter:()=>XW,computeSignature:()=>JT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>fc,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>foe,consumesNodeCoreModules:()=>u7,contains:()=>zo,containsIgnoredPath:()=>qN,containsObjectRestOrSpread:()=>Xk,containsParseError:()=>Vx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>cse,convertCompilerOptionsFromJson:()=>_Ae,convertJsonOption:()=>VT,convertToBase64:()=>Yie,convertToJson:()=>tw,convertToObject:()=>ise,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>qC,convertToTSConfig:()=>tAe,convertTypeAcquisitionFromJson:()=>hAe,copyComments:()=>$T,copyEntries:()=>vF,copyLeadingComments:()=>fD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>cO,copyTrailingComments:()=>nM,couldStartTrivia:()=>Wne,countWhere:()=>vv,createAbstractBuilder:()=>S1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>qae,createAccessorPropertySetRedirector:()=>Xae,createBaseNodeFactory:()=>joe,createBinaryExpressionTrampoline:()=>e3,createBindingHelper:()=>xR,createBuildInfo:()=>xw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>uce,createBuilderStatusReporter:()=>Dce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>$3,createClassNamedEvaluationHelperBlock:()=>fle,createClassThisAssignmentBlock:()=>ule,createClassifier:()=>zxe,createCommentDirectivesMap:()=>Gre,createCompilerDiagnostic:()=>jl,createCompilerDiagnosticForInvalidCustomType:()=>Zae,createCompilerDiagnosticFromMessageChain:()=>S6,createCompilerHost:()=>Jle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>yR,createDiagnosticCollection:()=>cR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Hx,createDiagnosticForNodeArrayFromMessageChain:()=>y2,createDiagnosticForNodeFromMessageChain:()=>Pg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>Zre,createDiagnosticMessageChainFromDiagnostic:()=>Qre,createDiagnosticReporter:()=>Ow,createDocumentPositionMapper:()=>tle,createDocumentRegistry:()=>Kde,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>iae,createEmptyExports:()=>Gk,createExpressionForJsxElement:()=>Mae,createExpressionForJsxFragment:()=>Lae,createExpressionForObjectLiteralElementLike:()=>kae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Vk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Yc,createFileDiagnosticFromMessageChain:()=>DF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Cd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Wle,createGetSymbolWalker:()=>Wse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>xce,createInputFiles:()=>zSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>cpe,createLanguageServiceSourceFile:()=>K7,createMemberAccessForPropertyName:()=>BT,createModeAwareCache:()=>u1,createModeAwareCacheKey:()=>DP,createModuleNotFoundChain:()=>bF,createModuleResolutionCache:()=>HR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>yce,createModuleSpecifierResolutionHost:()=>YT,createMultiMap:()=>Xp,createNodeConverters:()=>Hoe,createNodeFactory:()=>Ek,createOptionNameMap:()=>r3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>oM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>Uoe,createPatternMatcher:()=>$de,createPrependNodes:()=>gJ,createPrinter:()=>IE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>iS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Rw,createProgram:()=>iz,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>B6,createQueue:()=>IL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>yle,createScanner:()=>Dy,createSemanticDiagnosticsBuilderProgram:()=>E1e,createSet:()=>VG,createSolutionBuilder:()=>F1e,createSolutionBuilderHost:()=>O1e,createSolutionBuilderWithWatch:()=>z1e,createSolutionBuilderWithWatchHost:()=>W1e,createSortedArray:()=>kG,createSourceFile:()=>$k,createSourceMapGenerator:()=>$se,createSourceMapSource:()=>BSe,createSuperAccessVariableStatement:()=>U3,createSymbolTable:()=>aa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Cne,createTextChange:()=>eO,createTextChangeFromStartLength:()=>Kz,createTextChangeRange:()=>XL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Hz,createTextSpan:()=>hd,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Ru,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>Q2,createTokenRange:()=>Xj,createTypeChecker:()=>Hse,createTypeReferenceDirectiveResolutionCache:()=>b3,createTypeReferenceResolutionLoader:()=>tz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>L1e,createWatchCompilerHostOfConfigFile:()=>Tce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Ace,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>k1e,createWatchStatusReporter:()=>vce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>Is,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>qL,decorateHelper:()=>i4,deduplicate:()=>_0,defaultIncludeSpec:()=>_3,defaultInitCompilerOptions:()=>f3,defaultMaximumTruncationLength:()=>_k,detectSortCaseSensitivity:()=>BC,diagnosticCategoryName:()=>rT,diagnosticToString:()=>ZT,directoryProbablyExists:()=>Hm,directorySeparator:()=>rl,displayPart:()=>ep,displayPartsToString:()=>NO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>N4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>xne,elementAt:()=>xy,elideNodes:()=>Jae,emitComments:()=>zie,emitDetachedComments:()=>Bie,emitFiles:()=>q3,emitFilesAndReportErrors:()=>hz,emitFilesAndReportErrorsAndGetExitStatus:()=>Sce,emitModuleKindIsNonNodeESM:()=>A6,emitNewLineBeforeLeadingCommentOfPosition:()=>Fie,emitNewLineBeforeLeadingComments:()=>Oie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wie,emitSkippedWithNoDiagnostics:()=>cz,emitUsingBuildInfo:()=>Vle,emptyArray:()=>Xe,emptyFileSystemEntries:()=>Q6,emptyMap:()=>IW,emptyOptions:()=>Cf,emptySet:()=>hne,endsWith:()=>El,ensurePathIsNonModuleName:()=>g0,ensureScriptKind:()=>L6,ensureTrailingDirectorySeparator:()=>Fc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>TW,equalOwnProperties:()=>rne,equateStringsCaseInsensitive:()=>Xb,equateStringsCaseSensitive:()=>eT,equateValues:()=>Iy,esDecorateHelper:()=>s4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>fl,escapeNonAsciiString:()=>$2,escapeSnippetText:()=>B0,escapeString:()=>Zh,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>q4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>oR,exportStarHelper:()=>I4,expressionResultIsUnused:()=>Poe,extend:()=>gW,extendsHelper:()=>_4,extensionFromPath:()=>jN,extensionIsTS:()=>O6,extensionsNotSupportingExtensionlessResolution:()=>bk,externalHelpersModuleNameText:()=>Vv,factory:()=>L,fileExtensionIs:()=>Sl,fileExtensionIsOneOf:()=>bc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>jr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>oz,find:()=>Vr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>hs,findComputedPropertyNameCacheAssignment:()=>t3,findConfigFile:()=>Hle,findContainingList:()=>Wz,findDiagnosticForNode:()=>Fde,findFirstNonJsxWhitespaceToken:()=>ode,findIndex:()=>Kl,findLast:()=>sI,findLastIndex:()=>pW,findListItemInfo:()=>ide,findMap:()=>uEe,findModifier:()=>dD,findNextToken:()=>sS,findPackageJson:()=>Ode,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>jz,findPrecedingToken:()=>Tc,findSuperStatementIndexPath:()=>z3,findTokenOnLeftOfPosition:()=>Bz,findUseStrictPrologue:()=>vH,first:()=>Ga,firstDefined:()=>Wl,firstDefinedIterator:()=>bL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Jc,firstOrUndefinedIterator:()=>mW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>OC,flatten:()=>pm,flattenCommaList:()=>Yae,flattenDestructuringAssignment:()=>UT,flattenDestructuringBinding:()=>rS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>Ore,forEachAncestorDirectory:()=>hm,forEachChild:()=>Bo,forEachChildRecursively:()=>EP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Xre,forEachEntry:()=>zc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>$F,forEachKey:()=>uh,forEachLeadingCommentRange:()=>jL,forEachNameInAccessChainWalkingLeft:()=>soe,forEachPropertyAssignment:()=>Xx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>x0,forEachRight:()=>qte,forEachTrailingCommentRange:()=>UL,forEachTsConfigPropArray:()=>S2,forEachUnique:()=>qq,forEachYieldExpression:()=>tie,forSomeAncestorDirectory:()=>lSe,formatColorAndReset:()=>oS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>n1e,formatDiagnosticsWithColorAndContext:()=>qle,formatGeneratedName:()=>bE,formatGeneratedNamePart:()=>BR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>ng,formatting:()=>kc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>KC,generateTSConfig:()=>aAe,generatorHelper:()=>S4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>zz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>AT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>G3,getAllJSDocTags:()=>rF,getAllJSDocTagsOfKind:()=>v0e,getAllKeys:()=>fEe,getAllProjectOutputs:()=>J3,getAllSuperTypeNodes:()=>EN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>jv,getAllowSyntheticDefaultImports:()=>RT,getAncestor:()=>uE,getAnyExtensionFromPath:()=>Cx,getAreDeclarationMapsEnabled:()=>gk,getAssignedExpandoInitializer:()=>AI,getAssignedName:()=>tF,getAssignedNameOfIdentifier:()=>wP,getAssignmentDeclarationKind:()=>zl,getAssignmentDeclarationPropertyAccessKind:()=>k2,getAssignmentTargetKind:()=>DI,getAutomaticTypeDirectiveNames:()=>y3,getBaseFileName:()=>nc,getBinaryOperatorPrecedence:()=>Y2,getBuildInfo:()=>X3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>Gle,getBuildOrderFromAnyBuildOrder:()=>Ez,getBuilderCreationParameters:()=>dz,getBuilderFileEmit:()=>eb,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>P0,getClassLikeDeclarationOfSymbol:()=>wg,getCombinedLocalAndExportSymbolFlags:()=>_R,getCombinedModifierFlags:()=>eE,getCombinedNodeFlags:()=>Cy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>VP,getCommonSourceDirectoryOfConfig:()=>$R,getCompilerOptionValue:()=>x6,getCompilerOptionsDiffValue:()=>iAe,getConditions:()=>Qv,getConfigFileParsingDiagnostics:()=>KT,getConstantValue:()=>$oe,getContainerFlags:()=>mK,getContainerNode:()=>XT,getContainingClass:()=>id,getContainingClassExcludingClassDecorators:()=>WF,getContainingClassStaticBlock:()=>die,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>cie,getContainingFunctionOrClassStaticBlock:()=>OF,getContainingNodeArray:()=>Moe,getContainingObjectLiteralElement:()=>PO,getContextualTypeFromParent:()=>r7,getContextualTypeFromParentOrAncestorTypeNode:()=>Fz,getCurrentTime:()=>Fw,getDeclarationDiagnostics:()=>Fle,getDeclarationEmitExtensionForPath:()=>a6,getDeclarationEmitOutputFilePath:()=>Pie,getDeclarationEmitOutputFilePathWorker:()=>o6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>bN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Lre,getDeclaredExpandoInitializer:()=>N2,getDecorators:()=>Rv,getDefaultCompilerOptions:()=>H7,getDefaultExportInfoWorker:()=>b7,getDefaultFormatCodeSettings:()=>Cz,getDefaultLibFileName:()=>KL,getDefaultLibFilePath:()=>dpe,getDefaultLikeExportInfo:()=>v7,getDiagnosticText:()=>qTe,getDiagnosticsWithinSpan:()=>zde,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>hce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>_h,getEditsForFileRename:()=>qde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>wx,getEffectiveContainerForJSDocTemplateTag:()=>QF,getEffectiveImplementsTypeNodes:()=>aR,getEffectiveInitializer:()=>C2,getEffectiveJSDocHost:()=>dE,getEffectiveModifierFlags:()=>du,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uie,getEffectiveModifierFlagsNoCache:()=>Hie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>wie,getEffectiveTypeAnnotationNode:()=>gd,getEffectiveTypeParameterDeclarations:()=>Dv,getEffectiveTypeRoots:()=>RP,getElementOrPropertyAccessArgumentExpressionOrName:()=>YF,getElementOrPropertyAccessName:()=>Mg,getElementsOfBindingOrAssignmentPattern:()=>zR,getEmitDeclarations:()=>Af,getEmitFlags:()=>Fa,getEmitHelpers:()=>r4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>Md,getEmitModuleResolutionKind:()=>pu,getEmitScriptTarget:()=>ns,getEmitStandardClassFields:()=>hoe,getEnclosingBlockScopeContainer:()=>ph,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>m2,getEntityNameFromTypeNode:()=>I2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>mz,getErrorSpanForNode:()=>fT,getErrorSummaryText:()=>bce,getEscapedTextOfIdentifierOrLiteral:()=>AN,getEscapedTextOfJsxAttributeName:()=>QN,getEscapedTextOfJsxNamespacedName:()=>FI,getExpandoInitializer:()=>lE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>mO,getExportNeedsImportStarHelper:()=>nle,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>xN,getExternalHelpersModuleName:()=>Uk,getExternalModuleImportEqualsDeclarationExpression:()=>gN,getExternalModuleName:()=>tR,getExternalModuleNameFromDeclaration:()=>Cie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>s1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Nw,getFileEmitOutput:()=>tce,getFileMatcherPatterns:()=>M6,getFileNamesFromConfigSpecs:()=>AP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>_z,getFirstConstructorWithBody:()=>eg,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Nde,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>_7,getFullWidth:()=>p2,getFunctionFlags:()=>Bc,getHeritageClause:()=>K2,getHostSignatureFromJSDoc:()=>cE,getIdentifierAutoGenerate:()=>HSe,getIdentifierGeneratedImportReference:()=>rae,getIdentifierTypeArguments:()=>DT,getImmediatelyInvokedFunctionExpression:()=>_T,getImpliedNodeFormatForFile:()=>kw,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>W3,getIndentSize:()=>uR,getIndentString:()=>r6,getInferredLibraryNameResolveFrom:()=>rz,getInitializedVariables:()=>ON,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Kk,getInterfaceBaseTypeNodes:()=>SN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>BF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>nre,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>cre,getJSDocEnumTag:()=>bV,getJSDocHost:()=>vT,getJSDocImplementsTags:()=>rre,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>lre,getJSDocParameterTags:()=>kx,getJSDocParameterTagsNoCache:()=>Qne,getJSDocPrivateTag:()=>m0e,getJSDocPrivateTagNoCache:()=>ore,getJSDocProtectedTag:()=>_0e,getJSDocProtectedTagNoCache:()=>are,getJSDocPublicTag:()=>f0e,getJSDocPublicTagNoCache:()=>ire,getJSDocReadonlyTag:()=>h0e,getJSDocReadonlyTagNoCache:()=>sre,getJSDocReturnTag:()=>dre,getJSDocReturnType:()=>$L,getJSDocRoot:()=>iR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>iE,getJSDocTagsNoCache:()=>y0e,getJSDocTemplateTag:()=>g0e,getJSDocThisTag:()=>nF,getJSDocType:()=>rE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Y4,getJSDocTypeParameterDeclarations:()=>d6,getJSDocTypeParameterTags:()=>Zne,getJSDocTypeParameterTagsNoCache:()=>ere,getJSDocTypeTag:()=>nE,getJSXImplicitImportBase:()=>D6,getJSXRuntimeImport:()=>C6,getJSXTransformEnabled:()=>R6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>ok,getLastChild:()=>Zj,getLeadingCommentRanges:()=>Uh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>hR,getLeftmostExpression:()=>gR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>AK,getLineOfLocalPosition:()=>DN,getLineOfLocalPositionFromLineMap:()=>ST,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Rg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>roe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>noe,getLinesBetweenPositions:()=>YC,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>aSe,getLiteralText:()=>Vre,getLocalNameForExternalImport:()=>FR,getLocalSymbolForExportDefault:()=>mR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Ww,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>Zz,getMappedLocation:()=>ZP,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>Uw,getMeaningFromLocation:()=>qT,getMembersOfDeclaration:()=>nie,getModeForFileReference:()=>Mw,getModeForResolutionAtIndex:()=>Xle,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>fI,getModifiers:()=>v0,getModuleInstanceState:()=>Gg,getModuleNameStringLiteralAt:()=>ww,getModuleSpecifierEndingPreference:()=>Toe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>p7,getNameFromImportAttribute:()=>U6,getNameFromIndexInfo:()=>Yre,getNameFromPropertyName:()=>rO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>$ne,getNameOrArgument:()=>L2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>Bde,getNamespaceDeclarationNode:()=>nR,getNewLineCharacter:()=>Wy,getNewLineKind:()=>fO,getNewLineOrDefaultFromHost:()=>qy,getNewTargetContainer:()=>pie,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>qk,getNodeId:()=>rs,getNodeKind:()=>aS,getNodeModifiers:()=>YP,getNodeModulePathParts:()=>G6,getNonAssignedNameOfDeclaration:()=>eF,getNonAssignmentOperatorForCompoundAssignment:()=>MP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>OL,getObjectFlags:()=>kr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>X2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>VR,getOrCreateEmitNode:()=>Ld,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Fae,getOrUpdate:()=>FC,getOriginalNode:()=>Cl,getOriginalNodeId:()=>kd,getOriginalSourceFile:()=>Y0e,getOutputDeclarationFileName:()=>GP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>K3,getOutputFileNames:()=>e1e,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>BP,getOutputPathsForBundle:()=>zP,getOwnEmitOutputFilePath:()=>Nie,getOwnKeys:()=>jh,getOwnValues:()=>cI,getPackageJsonInfo:()=>Z0,getPackageJsonTypesVersionsPaths:()=>g3,getPackageJsonsVisibleToFile:()=>Wde,getPackageNameFromTypesPackageName:()=>CP,getPackageScopeForPath:()=>mw,getParameterSymbolFromJSDoc:()=>G2,getParameterTypeNode:()=>gSe,getParentNodeInSpan:()=>oO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>Zk,getPathComponents:()=>Wc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Av,getPathUpdater:()=>CX,getPathsBasePath:()=>s6,getPatternFromSpec:()=>boe,getPendingEmitKind:()=>nD,getPositionOfLineAndCharacter:()=>GL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Mie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>t1e,getPrecedingNonSpaceCharacterPosition:()=>t7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>_W,getPropertyArrayElementValue:()=>lie,getPropertyAssignmentAliasLikeExpression:()=>Iie,getPropertyNameForPropertyNameNode:()=>bT,getPropertyNameForUniqueESSymbol:()=>q0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>Qz,getPropertySymbolsFromContextualType:()=>J7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>af,getRangesWhere:()=>LG,getRefactorContextSpan:()=>E1,getReferencedFileLocation:()=>jP,getRegexFromPattern:()=>Bv,getRegularExpressionForWildcard:()=>BN,getRegularExpressionsForWildcards:()=>N6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>FL,getRelativePathToDirectoryOrUrl:()=>_I,getRenameLocation:()=>lO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>QR,getResolveJsonModule:()=>_E,getResolvePackageJsonExports:()=>X6,getResolvePackageJsonImports:()=>Y6,getResolvedExternalModuleName:()=>i6,getRestIndicatorOfBindingOrAssignmentElement:()=>Q4,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>P2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>gce,getRootLength:()=>lh,getRootPathSplitLength:()=>x1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>k6,getScriptTargetFeatures:()=>J6,getSelectedEffectiveModifierFlags:()=>PI,getSelectedSyntacticModifierFlags:()=>Vie,getSemanticClassifications:()=>Ude,getSemanticJsxChildren:()=>lR,getSetAccessorTypeAnnotationNode:()=>Lie,getSetAccessorValueParameter:()=>CN,getSetExternalModuleIndicator:()=>ak,getShebang:()=>$W,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>RI,getSnapshotText:()=>cD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>SF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>l6,getSourceFilePathInNewDirWorker:()=>c6,getSourceFileVersionAsHashFromText:()=>gz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>zy,getSourceMapper:()=>aue,getSourceTextOfNodeFromSourceFile:()=>T0,getSpanOfTokenAtPosition:()=>fh,getSpellingSuggestion:()=>VC,getStartPositionOfLine:()=>wv,getStartPositionOfRange:()=>wN,getStartsOnNewLine:()=>rP,getStaticPropertiesAndClassStaticBlock:()=>B3,getStrictOptionValue:()=>uu,getStringComparer:()=>Ex,getSubPatternFromSpec:()=>P6,getSuperCallFromStatement:()=>F3,getSuperContainer:()=>T2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>GN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>sk,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>J2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>Hde,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>al,getSynthesizedDeepCloneWithReplacements:()=>sO,getSynthesizedDeepClones:()=>lS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>IR,getSyntheticTrailingComments:()=>xk,getTargetLabel:()=>Lz,getTargetOfBindingOrAssignmentElement:()=>$v,getTemporaryModuleResolutionState:()=>fw,getTextOfConstantValue:()=>jre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>ZL,getTextOfJsxAttributeName:()=>mk,getTextOfJsxNamespacedName:()=>ZN,getTextOfNode:()=>uc,getTextOfNodeFromSourceText:()=>uN,getTextOfPropertyName:()=>Ux,getThisContainer:()=>wu,getThisParameter:()=>L0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>aE,getTokenSourceMapRange:()=>jSe,getTouchingPropertyName:()=>zu,getTouchingToken:()=>lD,getTrailingCommentRanges:()=>$b,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Koe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>_N,getTsConfigPropArrayElementValue:()=>wF,getTypeAnnotationNode:()=>kie,getTypeArgumentOrTypeParameterList:()=>fde,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>tae,getTypeNodeIfAccessible:()=>iM,getTypeParameterFromJsDoc:()=>vie,getTypeParameterOwner:()=>l0e,getTypesPackageName:()=>A3,getUILocale:()=>lne,getUniqueName:()=>QT,getUniqueSymbolId:()=>Cde,getUseDefineForClassFields:()=>nP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>GC,groupBy:()=>hW,guessIndentation:()=>Pre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>O0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>$w,hasContextSensitiveParameters:()=>z6,hasDecorators:()=>bf,hasDocComment:()=>ude,hasDynamicName:()=>Wv,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>u6,hasEffectiveReadonlyModifier:()=>NN,hasExtension:()=>mI,hasIndexSignature:()=>iX,hasInitializer:()=>Lv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>tre,hasJSFileExtension:()=>W0,hasJsonModuleEmitEnabled:()=>I6,hasOnlyExpressionInitializer:()=>dT,hasOverrideModifier:()=>p6,hasPossibleExternalModuleReference:()=>qre,hasProperty:()=>As,hasPropertyAccessExpressionWithName:()=>Kw,hasQuestionToken:()=>xI,hasRecordedExternalHelpers:()=>Wae,hasResolutionModeOverride:()=>Woe,hasRestParameter:()=>FV,hasScopeMarker:()=>Tre,hasStaticModifier:()=>pc,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Gie,hasTSFileExtension:()=>WI,hasTabstop:()=>koe,hasTrailingDirectorySeparator:()=>Ry,hasType:()=>hF,hasTypeArguments:()=>j0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>ky,hostUsesCaseSensitiveFileNames:()=>pR,idText:()=>yr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>tE,identity:()=>Zs,identitySourceMapConsumer:()=>O3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>wL,importDefaultHelper:()=>A4,importFromModuleSpecifier:()=>vN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Dk,indexOfAnyCharCode:()=>Xte,indexOfNode:()=>jx,indicesOf:()=>SL,inferredTypesContainingFile:()=>tD,injectClassNamedEvaluationHelperBlockIfMissing:()=>j3,injectClassThisAssignmentIfMissing:()=>ple,insertImports:()=>QP,insertLeadingStatement:()=>lTe,insertSorted:()=>bv,insertStatementAfterCustomPrologue:()=>uT,insertStatementAfterStandardPrologue:()=>L0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>qh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>aie,inverseJsxOptionMap:()=>IP,isAbstractConstructorSymbol:()=>ioe,isAbstractModifier:()=>uae,isAccessExpression:()=>Ms,isAccessibilityModifier:()=>kq,isAccessor:()=>Nv,isAccessorModifier:()=>fae,isAliasSymbolDeclaration:()=>H0e,isAliasableExpression:()=>H2,isAmbientModule:()=>Pd,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>IN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Jre,isAnyImportOrReExport:()=>h2,isAnyImportSyntax:()=>pT,isAnySupportedFileExtension:()=>hSe,isApplicableVersionedTypesKey:()=>hw,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>So,isArrayBindingElement:()=>dF,isArrayBindingOrAssignmentElement:()=>a2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>j0,isArrayLiteralExpression:()=>fu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ky,isArrayTypeNode:()=>wk,isArrowFunction:()=>zs,isAsExpression:()=>Wk,isAssertClause:()=>bae,isAssertEntry:()=>eTe,isAssertionExpression:()=>cT,isAssertsKeyword:()=>cae,isAssignmentDeclaration:()=>yN,isAssignmentExpression:()=>Pc,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>lN,isAssignmentTarget:()=>Qh,isAsteriskToken:()=>Pk,isAsyncFunction:()=>TN,isAsyncModifier:()=>aP,isAutoAccessorPropertyDeclaration:()=>ku,isAwaitExpression:()=>qv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>P4,isBinaryExpression:()=>ur,isBinaryOperatorToken:()=>Kae,isBindableObjectDefinePropertyCall:()=>gT,isBindableStaticAccessExpression:()=>C0,isBindableStaticElementAccessExpression:()=>XF,isBindableStaticNameExpression:()=>yT,isBindingElement:()=>qa,isBindingElementOfBareOrAccessedRequire:()=>_ie,isBindingName:()=>sT,isBindingOrAssignmentElement:()=>gre,isBindingOrAssignmentPattern:()=>i2,isBindingPattern:()=>Yo,isBlock:()=>Uo,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Kre,isBooleanLiteral:()=>sN,isBreakOrContinueStatement:()=>rN,isBreakStatement:()=>$Se,isBuildInfoFile:()=>Ble,isBuilderProgram:()=>Ece,isBundle:()=>aH,isBundleFileTextLike:()=>aoe,isCallChain:()=>oT,isCallExpression:()=>ra,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>S0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>oP,isCaseBlock:()=>fP,isCaseClause:()=>MR,isCaseKeyword:()=>mae,isCaseOrDefaultClause:()=>mF,isCatchClause:()=>Y0,isCatchClauseVariableDeclaration:()=>Loe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>dk,isChildOfNodeWithKind:()=>w0e,isCircularBuildOrder:()=>h1,isClassDeclaration:()=>Sc,isClassElement:()=>Xc,isClassExpression:()=>$c,isClassInstanceProperty:()=>_re,isClassLike:()=>di,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>_1,isClassOrTypeElement:()=>cF,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>kP,isCollapsedRange:()=>oSe,isColonToken:()=>sae,isCommaExpression:()=>jk,isCommaListExpression:()=>dP,isCommaSequence:()=>yP,isCommaToken:()=>aae,isComment:()=>Uz,isCommonJsExportPropertyAssignment:()=>LF,isCommonJsExportedExpression:()=>iie,isCompoundAssignment:()=>PP,isComputedNonLiteralName:()=>g2,isComputedPropertyName:()=>Xa,isConciseBody:()=>pF,isConditionalExpression:()=>PR,isConditionalTypeNode:()=>ZI,isConstTypeReference:()=>Cg,isConstructSignatureDeclaration:()=>Lk,isConstructorDeclaration:()=>Nl,isConstructorTypeNode:()=>RR,isContextualKeyword:()=>e6,isContinueStatement:()=>YSe,isCustomPrologue:()=>E2,isDebuggerStatement:()=>QSe,isDeclaration:()=>Hd,isDeclarationBindingElement:()=>r2,isDeclarationFileName:()=>bd,isDeclarationName:()=>Lg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>CF,isDeclarationStatement:()=>Rre,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>vd,isDecoratorTarget:()=>Qce,isDefaultClause:()=>_P,isDefaultImport:()=>II,isDefaultModifier:()=>w4,isDefaultedExpandoInitializer:()=>hie,isDeleteExpression:()=>gae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>f7,isDestructuringAssignment:()=>Oy,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>qSe,isDocumentRegistryEntry:()=>_O,isDotDotDotToken:()=>L4,isDottedName:()=>MN,isDynamicName:()=>n6,isESSymbolIdentifier:()=>X0e,isEffectiveExternalModule:()=>TI,isEffectiveModuleDeclaration:()=>Hre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Xs,isEmittedFileOfProgram:()=>Ule,isEmptyArrayLiteral:()=>Xie,isEmptyBindingElement:()=>Xne,isEmptyBindingPattern:()=>qne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Bl,isEnumConst:()=>I0,isEnumDeclaration:()=>gE,isEnumMember:()=>$0,isEqualityOperatorKind:()=>i7,isEqualsGreaterThanToken:()=>lae,isExclamationToken:()=>Mk,isExcludedFile:()=>ase,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>j6,isExportAssignment:()=>Ml,isExportDeclaration:()=>Xl,isExportModifier:()=>JI,isExportName:()=>X4,isExportNamespaceAsDefaultDeclaration:()=>IF,isExportOrDefaultModifier:()=>Jk,isExportSpecifier:()=>Kd,isExportsIdentifier:()=>hT,isExportsOrModuleExportsOrAlias:()=>eS,isExpression:()=>ht,isExpressionNode:()=>Yh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>nde,isExpressionOfOptionalChainRoot:()=>aF,isExpressionStatement:()=>Qc,isExpressionWithTypeArguments:()=>Gy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>f6,isExternalModule:()=>oc,isExternalModuleAugmentation:()=>A0,isExternalModuleImportEqualsDeclaration:()=>sE,isExternalModuleIndicator:()=>s2,isExternalModuleNameRelative:()=>qc,isExternalModuleReference:()=>bh,isExternalModuleSymbol:()=>tO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>n2,isFileLevelUniqueName:()=>TF,isFileProbablyExternalModule:()=>Yk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Fx,isForInStatement:()=>G4,isForInitializer:()=>vf,isForOfStatement:()=>Fk,isForStatement:()=>kT,isFunctionBlock:()=>R0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Ec,isFunctionExpression:()=>Ls,isFunctionExpressionOrArrowFunction:()=>z0,isFunctionLike:()=>Xo,isFunctionLikeDeclaration:()=>Fs,isFunctionLikeKind:()=>vI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Wx,isFunctionOrConstructorTypeNode:()=>hre,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>yie,isFunctionTypeNode:()=>gh,isFutureReservedKeyword:()=>K0e,isGeneratedIdentifier:()=>il,isGeneratedPrivateIdentifier:()=>aT,isGetAccessor:()=>Mv,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>iF,isGlobalDeclaration:()=>kxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>Bre,isHeritageClause:()=>ef,isHoistedFunction:()=>PF,isHoistedVariableStatement:()=>MF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>Aie,isIdentifierOrThisTypeNode:()=>Vae,isIdentifierPart:()=>Qb,isIdentifierStart:()=>Hh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>sie,isIdentifierTypeReference:()=>Doe,isIfStatement:()=>LT,isIgnoredFileFromWildCardWatching:()=>Cw,isImplicitGlob:()=>sU,isImportAttribute:()=>Eae,isImportAttributeName:()=>mre,isImportAttributes:()=>n1,isImportCall:()=>Op,isImportClause:()=>yh,isImportDeclaration:()=>Mc,isImportEqualsDeclaration:()=>Zc,isImportKeyword:()=>lP,isImportMeta:()=>Jx,isImportOrExportSpecifier:()=>yI,isImportOrExportSpecifierName:()=>Dde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>ZSe,isImportTypeNode:()=>ig,isImportableFile:()=>EX,isInComment:()=>Hy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>VF,isInJSDoc:()=>R2,isInJSFile:()=>ir,isInJSXText:()=>cde,isInJsonFile:()=>UF,isInNonReferenceComment:()=>hde,isInReferenceComment:()=>_de,isInRightSideOfInternalImportEqualsDeclaration:()=>Pz,isInString:()=>y1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>FF,isInTypeQuery:()=>TT,isIncrementalCompilation:()=>tP,isIndexSignatureDeclaration:()=>V0,isIndexedAccessTypeNode:()=>MT,isInferTypeNode:()=>CT,isInfinityOrNaNString:()=>XN,isInitializedProperty:()=>Sw,isInitializedVariable:()=>ik,isInsideJsxElement:()=>Vz,isInsideJsxElementOrAttribute:()=>lde,isInsideNodeModules:()=>pO,isInsideTemplateLiteral:()=>Zw,isInstanceOfExpression:()=>m6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>mu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>Qx,isInternalName:()=>yH,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>dR,isIterationStatement:()=>Pv,isJSDoc:()=>Ym,isJSDocAllType:()=>xae,isJSDocAugmentsTag:()=>a1,isJSDocAuthorTag:()=>iTe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>Dae,isJSDocCommentContainingNode:()=>_F,isJSDocConstructSignature:()=>rR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>Bk,isJSDocFunctionType:()=>kR,isJSDocImplementsTag:()=>K4,isJSDocIndexSignature:()=>HF,isJSDocLikeText:()=>RH,isJSDocLink:()=>Aae,isJSDocLinkCode:()=>Iae,isJSDocLinkLike:()=>SI,isJSDocLinkPlain:()=>nTe,isJSDocMemberName:()=>yE,isJSDocNameReference:()=>hP,isJSDocNamepathType:()=>rTe,isJSDocNamespaceBody:()=>R0e,isJSDocNode:()=>zx,isJSDocNonNullableType:()=>V4,isJSDocNullableType:()=>LR,isJSDocOptionalParameter:()=>fk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>wR,isJSDocOverrideTag:()=>U4,isJSDocParameterTag:()=>$m,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>iN,isJSDocPropertyTag:()=>Cae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>H4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>J4,isJSDocSeeTag:()=>oTe,isJSDocSignature:()=>vE,isJSDocTag:()=>Bx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>sTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>WR,isJSDocTypeExpression:()=>Q0,isJSDocTypeLiteral:()=>FT,isJSDocTypeTag:()=>gP,isJSDocTypedefTag:()=>zT,isJSDocUnknownTag:()=>aTe,isJSDocUnknownType:()=>Rae,isJSDocVariadicType:()=>j4,isJSXTagName:()=>$x,isJsonEqual:()=>W6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>fF,isJsxAttributeName:()=>Ooe,isJsxAttributes:()=>X0,isJsxChild:()=>d2,isJsxClosingElement:()=>J0,isJsxClosingFragment:()=>Sae,isJsxElement:()=>og,isJsxExpression:()=>mP,isJsxFragment:()=>q0,isJsxNamespacedName:()=>Xm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>i1,isJsxOpeningLikeElement:()=>lu,isJsxOpeningLikeElementTagName:()=>Zce,isJsxSelfClosingElement:()=>OT,isJsxSpreadAttribute:()=>o1,isJsxTagNameExpression:()=>cN,isJsxText:()=>UI,isJumpStatementTarget:()=>Jw,isKeyword:()=>Wu,isKeywordOrPunctuation:()=>ZF,isKnownSymbol:()=>q2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>K0,isLateVisibilityPaintedStatement:()=>RF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>iSe,isLet:()=>NF,isLineBreak:()=>jd,isLiteralComputedPropertyDeclarationName:()=>U2,isLiteralExpression:()=>E0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>Ov,isLiteralKind:()=>oN,isLiteralLikeAccess:()=>qF,isLiteralLikeElementAccess:()=>M2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>kz,isLiteralTypeLikeExpression:()=>fTe,isLiteralTypeLiteral:()=>Ere,isLiteralTypeNode:()=>Jv,isLocalName:()=>zg,isLogicalOperator:()=>Kie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>PN,isLogicalOrCoalescingBinaryExpression:()=>ek,isLogicalOrCoalescingBinaryOperator:()=>Z2,isMappedTypeNode:()=>CR,isMemberName:()=>Kh,isMetaProperty:()=>cP,isMethodDeclaration:()=>Ul,isMethodOrAccessor:()=>bI,isMethodSignature:()=>hh,isMinusToken:()=>QU,isMissingDeclaration:()=>tTe,isMissingPackageJsonInfo:()=>Tse,isModifier:()=>Sa,isModifierKind:()=>Ny,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>Are,isModuleDeclaration:()=>ql,isModuleExportsAccessExpression:()=>$h,isModuleIdentifier:()=>mj,isModuleName:()=>Hae,isModuleOrEnumDeclaration:()=>l2,isModuleReference:()=>Cre,isModuleSpecifierLike:()=>$z,isModuleWithStringLiteralName:()=>xF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>S0e,isNamedDeclaration:()=>au,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>Fg,isNamedImportsOrExports:()=>E6,isNamedTupleMember:()=>DR,isNamespaceBody:()=>x0e,isNamespaceExport:()=>vh,isNamespaceExportDeclaration:()=>zk,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>mie,isNewExpression:()=>U0,isNewExpressionTarget:()=>qP,isNoSubstitutionTemplateLiteral:()=>HI,isNode:()=>b0e,isNodeArray:()=>b0,isNodeArrayMultiLine:()=>toe,isNodeDescendantOf:()=>N0,isNodeKind:()=>e2,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>KW,isNodeWithPossibleHoistedDeclaration:()=>Eie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>_Te,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>jde,isNonNullAccess:()=>woe,isNonNullChain:()=>sF,isNonNullExpression:()=>t1,isNonStaticMethodOrAccessorWithPrivateName:()=>rle,isNotEmittedOrPartiallyEmittedNode:()=>I0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ty,isNumericLiteral:()=>mp,isNumericLiteralName:()=>rg,isObjectBindingElementWithoutPropertyName:()=>iO,isObjectBindingOrAssignmentElement:()=>o2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Ng,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>kF,isObjectTypeDeclaration:()=>kI,isOctalDigit:()=>YW,isOmittedExpression:()=>Gc,isOptionalChain:()=>Ud,isOptionalChainRoot:()=>tN,isOptionalDeclaration:()=>$N,isOptionalJSDocPropertyLikeTag:()=>pk,isOptionalTypeNode:()=>O4,isOuterExpression:()=>$4,isOutermostOptionalChain:()=>nN,isOverrideModifier:()=>pae,isPackageJsonInfo:()=>v3,isPackedArrayLiteral:()=>mU,isParameter:()=>To,isParameterDeclaration:()=>M0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>aN,isParenthesizedExpression:()=>Fu,isParenthesizedTypeNode:()=>NT,isParseTreeNode:()=>eN,isPartOfTypeNode:()=>Xh,isPartOfTypeQuery:()=>jF,isPartiallyEmittedExpression:()=>B4,isPatternMatch:()=>bW,isPinnedComment:()=>AF,isPlainJsFile:()=>f2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>Qw,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>su,isPrivateIdentifierPropertyAccessExpression:()=>Ox,isPrivateIdentifierSymbol:()=>xie,isProgramBundleEmitBuildInfo:()=>ace,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>oF,isPropertyAccessEntityNameExpression:()=>tk,isPropertyAccessExpression:()=>wr,isPropertyAccessOrQualifiedName:()=>vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>yre,isPropertyAssignment:()=>mc,isPropertyDeclaration:()=>Vo,isPropertyName:()=>rc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Rie,isPrototypeAccess:()=>zv,isPrototypePropertyAssignment:()=>w2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Au,isQuestionDotToken:()=>k4,isQuestionOrExclamationToken:()=>Gae,isQuestionOrPlusOrMinusToken:()=>Uae,isQuestionToken:()=>Hv,isRawSourceMap:()=>Zse,isReadonlyKeyword:()=>dae,isReadonlyKeywordOrPlusOrMinusToken:()=>jae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>ZR,isReferencedFile:()=>xE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>Su,isRequireVariableStatement:()=>pj,isRestParameter:()=>Jh,isRestTypeNode:()=>W4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>T7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>qie,isRightSideOfPropertyAccess:()=>aD,isRightSideOfQualifiedName:()=>tde,isRightSideOfQualifiedNameOrPropertyAccess:()=>LN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Jie,isRootedDiskPath:()=>cp,isSameEntityName:()=>Zx,isSatisfiesExpression:()=>nH,isScopeMarker:()=>Sre,isSemicolonClassElement:()=>yae,isSetAccessor:()=>Py,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>pN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>t6,isSimpleCopiableExpression:()=>nS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>lle,isSimpleParameterList:()=>Tw,isSingleOrDoubleQuote:()=>D2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>mD,isSourceFileJS:()=>cu,isSourceFileNotJS:()=>F0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>ele,isSpecialPropertyDeclaration:()=>gie,isSpreadAssignment:()=>Vy,isSpreadElement:()=>qm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>c2,isStatementOrBlock:()=>Dre,isStatementWithLocals:()=>zre,isStatic:()=>na,isStaticModifier:()=>qI,isString:()=>Co,isStringAKeyword:()=>J0e,isStringANonContextualKeyword:()=>CI,isStringAndEmptyAnonymousObjectIntersection:()=>mde,isStringDoubleQuoted:()=>JF,isStringLiteral:()=>Da,isStringLiteralLike:()=>as,isStringLiteralOrJsxExpression:()=>Nre,isStringLiteralOrTemplate:()=>kde,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>mT,isSuperKeyword:()=>sP,isSuperOrSuperProperty:()=>W0e,isSuperProperty:()=>Ou,isSupportedSourceFileName:()=>Aoe,isSwitchStatement:()=>pP,isSyntaxList:()=>OR,isSyntheticExpression:()=>JSe,isSyntheticReference:()=>r1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>H0,isTaggedTemplateTag:()=>$ce,isTemplateExpression:()=>F4,isTemplateHead:()=>KI,isTemplateLiteral:()=>EI,isTemplateLiteralKind:()=>Cv,isTemplateLiteralToken:()=>pre,isTemplateLiteralTypeNode:()=>_ae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>lF,isTemplateSpan:()=>uP,isTemplateTail:()=>M4,isTextWhiteSpaceLike:()=>bde,isThis:()=>sD,isThisContainerOrFunctionBlock:()=>uie,isThisIdentifier:()=>w0,isThisInTypeQuery:()=>NI,isThisInitializedDeclaration:()=>zF,isThisInitializedObjectBindingExpression:()=>fie,isThisProperty:()=>A2,isThisTypeNode:()=>Ok,isThisTypeParameter:()=>YN,isThisTypePredicate:()=>O0e,isThrowStatement:()=>iH,isToken:()=>gI,isTokenKind:()=>xV,isTraceEnabled:()=>Bg,isTransientSymbol:()=>dh,isTrivia:()=>sR,isTryStatement:()=>wT,isTupleTypeNode:()=>$I,isTypeAlias:()=>F2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>hae,isTypeDeclaration:()=>SR,isTypeElement:()=>lT,isTypeKeyword:()=>$P,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Jz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>NR,isTypeOnlyExportDeclaration:()=>fre,isTypeOnlyImportDeclaration:()=>t2,isTypeOnlyImportOrExportDeclaration:()=>oE,isTypeOperatorNode:()=>PT,isTypeParameterDeclaration:()=>ml,isTypePredicateNode:()=>kk,isTypeQueryNode:()=>YI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>gF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>b6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>bre,isUnicodeIdentifierStart:()=>qW,isUnionTypeNode:()=>Kv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>Tae,isUnparsedSource:()=>WT,isUnparsedTextLike:()=>ure,isUrl:()=>Mne,isValidBigIntString:()=>F6,isValidESSymbolDeclaration:()=>oie,isValidTypeOnlyAliasUseSite:()=>mE,isValueSignatureDeclaration:()=>Sie,isVarAwaitUsing:()=>v2,isVarConst:()=>Kx,isVarUsing:()=>b2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>mN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>D0,isVariableDeclarationInitializedToRequire:()=>KF,isVariableDeclarationList:()=>Vc,isVariableLike:()=>qx,isVariableLikeOrAccessor:()=>rie,isVariableStatement:()=>Pl,isVoidExpression:()=>e1,isWatchSet:()=>sSe,isWhileStatement:()=>XSe,isWhiteSpaceLike:()=>Dg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>vae,isWriteAccess:()=>LI,isWriteOnlyAccess:()=>v6,isYieldExpression:()=>z4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ka,lastOrUndefined:()=>Qs,length:()=>Nn,libMap:()=>c3,libs:()=>ow,lineBreakPart:()=>pD,linkNamePart:()=>xde,linkPart:()=>Qq,linkTextPart:()=>e7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Lse,loadWithModeAwareCache:()=>Lw,makeIdentifierFromModuleName:()=>Ure,makeImport:()=>Jy,makeImportIfNecessary:()=>vde,makeStringLiteral:()=>b1,mangleScopedPackageName:()=>qR,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>$te,mapDefinedIterator:()=>WC,mapEntries:()=>Zte,mapIterator:()=>wC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>nb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>fne,matchesExclude:()=>l3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>poe,memoize:()=>Eu,memoizeCached:()=>ane,memoizeOne:()=>ah,memoizeWeak:()=>mEe,metadataHelper:()=>o4,min:()=>jG,minAndMax:()=>xoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>MI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>Wre,moduleResolutionNameAndModeGetter:()=>sz,moduleResolutionOptionDeclarations:()=>d3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>OI,moduleResolutionUsesNodeModules:()=>qz,moduleSpecifiers:()=>tS,moveEmitHelpers:()=>Zoe,moveRangeEnd:()=>g6,moveRangePastDecorators:()=>kg,moveRangePastModifiers:()=>R_,moveRangePos:()=>pE,moveSyntheticComments:()=>Yoe,mutateMap:()=>FN,mutateMapSkippingNewValues:()=>tg,needsParentheses:()=>n7,needsScopeMarker:()=>uF,newCaseClauseTracker:()=>h7,newPrivateEnvironment:()=>ale,noEmitNotification:()=>Aw,noEmitSubstitution:()=>WP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>K6,nodeCanBeDecorated:()=>GF,nodeHasName:()=>YL,nodeIsDecorated:()=>Yx,nodeIsMissing:()=>Fl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>qs,nodeModuleNameResolver:()=>Rse,nodeModulesPathPart:()=>Sh,nodeNextJsonConfigResolver:()=>Dse,nodeOrChildIsDecorated:()=>x2,nodeOverlapsWithStartEnd:()=>wz,nodePosToString:()=>C0e,nodeSeenTracker:()=>v1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Dxe,noop:()=>Ja,noopFileWatcher:()=>iD,normalizePath:()=>ma,normalizeSlashes:()=>Nd,not:()=>SW,notImplemented:()=>jo,notImplementedResolver:()=>Y3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>FP,objectAllocator:()=>od,operatorPart:()=>eM,optionDeclarations:()=>ag,optionMapToObject:()=>o3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>jR,optionsHaveChanges:()=>Gx,optionsHaveModuleResolutionChanges:()=>kre,or:()=>Um,orderedRemoveItem:()=>Tx,orderedRemoveItemAt:()=>Sv,outFile:()=>Ds,packageIdToPackageName:()=>EF,packageIdToString:()=>kv,paramHelper:()=>a4,parameterIsThisKeyword:()=>k0,parameterNamePart:()=>Sde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Roe,parseBuildCommand:()=>JTe,parseCommandLine:()=>HTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>D1e,parseConfigHostFromCompilerHostLike:()=>az,parseCustomTypeOption:()=>i3,parseIsolatedEntityName:()=>l1,parseIsolatedJSDocComment:()=>Qae,parseJSDocTypeExpressionForTests:()=>MTe,parseJsonConfigFileContent:()=>sAe,parseJsonSourceFileConfigFileContent:()=>nw,parseJsonText:()=>Qk,parseListTypeOption:()=>ese,parseNodeFactory:()=>Eh,parseNodeModuleFromPath:()=>pw,parsePackageName:()=>_w,parsePseudoBigInt:()=>HN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Nne,pathContainsNodeModules:()=>AE,pathIsAbsolute:()=>JC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>pne,perfLogger:()=>iu,performIncrementalCompilation:()=>M1e,performance:()=>Ane,plainJSErrors:()=>lz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>a7,positionIsSynthesized:()=>Jm,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>tRe,probablyUsesSemicolons:()=>dO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>yde,programContainsModules:()=>gde,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>v4,propertyNamePart:()=>Tde,pseudoBigIntToString:()=>F0,punctuationPart:()=>Xd,pushIfUnique:()=>yf,quote:()=>rM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>qw,rangeContainsPositionExclusive:()=>Xw,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>rde,rangeContainsStartEnd:()=>Yw,rangeEndIsOnSameLineAsRangeStart:()=>rk,rangeEndPositionsAreOnSameLine:()=>Zie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>IT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>XP,rangeStartIsOnSameLineAsRangeEnd:()=>eoe,rangeStartPositionsAreOnSameLine:()=>y6,readBuilderProgram:()=>bz,readConfigFile:()=>ew,readHelper:()=>g4,readJson:()=>kN,readJsonConfigFile:()=>rse,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>Fne,reduceEachTrailingCommentRange:()=>zne,reduceLeft:()=>ru,reduceLeftIterator:()=>dEe,reducePathComponents:()=>iT,refactor:()=>T1,regExpEscape:()=>mSe,relativeComplement:()=>ene,removeAllComments:()=>Ak,removeEmitHelper:()=>USe,removeExtension:()=>ck,removeFileExtension:()=>Tu,removeIgnoredPath:()=>uz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>dde,removePrefix:()=>jC,removeSuffix:()=>Sx,removeTrailingDirectorySeparator:()=>Yb,repeatString:()=>nO,replaceElement:()=>zG,replaceFirstStar:()=>zI,resolutionExtensionIsTSOrJson:()=>VN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>Ise,resolveLibrary:()=>E3,resolveModuleName:()=>KR,resolveModuleNameFromCache:()=>UAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>Iv,resolveProjectReferencePath:()=>eD,resolveTripleslashReference:()=>ez,resolveTypeReferenceDirective:()=>Ese,resolvingEmptyArray:()=>H6,restHelper:()=>f4,returnFalse:()=>jm,returnNoopFileWatcher:()=>oD,returnTrue:()=>Ay,returnUndefined:()=>qb,returnsPromise:()=>LX,runInitializersHelper:()=>l4,sameFlatMap:()=>Yte,sameMap:()=>Nc,sameMapping:()=>PIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>eie,scanner:()=>Yd,screenStartingMessageCodes:()=>vz,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>a3,server:()=>ewe,servicesVersion:()=>upe,setCommentRange:()=>ic,setConfigFileInOptions:()=>VH,setConstantValue:()=>Qoe,setEachParent:()=>ER,setEmitFlags:()=>cr,setFunctionNameHelper:()=>b4,setGetSourceFileAsHashVersioned:()=>yz,setIdentifierAutoGenerate:()=>Rk,setIdentifierGeneratedImportReference:()=>nae,setIdentifierTypeArguments:()=>By,setInternalEmitFlags:()=>Ik,setLocalizedDiagnosticMessages:()=>uoe,setModuleDefaultHelper:()=>T4,setNodeFlags:()=>Noe,setObjectAllocator:()=>doe,setOriginalNode:()=>xr,setParent:()=>Va,setParentRecursive:()=>Gv,setPrivateIdentifier:()=>jT,setSnippetElement:()=>UU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>wEe,setStartsOnNewLine:()=>t4,setSyntheticLeadingComments:()=>hE,setSyntheticTrailingComments:()=>GI,setSys:()=>BEe,setSysLog:()=>Dne,setTextRange:()=>at,setTextRangeEnd:()=>bR,setTextRangePos:()=>KN,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>JN,setTokenSourceMapRange:()=>Xoe,setTypeNode:()=>eae,setUILocale:()=>cne,setValueDeclaration:()=>O2,shouldAllowImportingTsExtension:()=>XR,shouldPreserveConstEnums:()=>G0,shouldUseUriStyleNodeCoreModules:()=>m7,showModuleSpecifier:()=>ooe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>qd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>pI,singleIterator:()=>Qte,singleOrMany:()=>ih,singleOrUndefined:()=>rh,skipAlias:()=>yd,skipAssertions:()=>dTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Yl,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Na,skipTypeChecking:()=>UN,skipTypeParentheses:()=>j2,skipWhile:()=>_ne,sliceAfter:()=>dU,some:()=>gt,sort:()=>ZS,sortAndDeduplicate:()=>zC,sortAndDeduplicateDiagnostics:()=>Mx,sourceFileAffectingCompilerOptions:()=>u3,sourceFileMayBeEmitted:()=>ET,sourceMapCommentRegExp:()=>k3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>Ll,spanMap:()=>MG,spreadArrayHelper:()=>y4,stableSort:()=>Ey,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Oz,startOnNewLine:()=>Jd,startTracing:()=>Ine,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>wae,stringContainsAt:()=>Vde,stringToToken:()=>y0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>yk,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>AR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>TR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>vk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>Pde,symbolEscapedNameNoDefault:()=>Yz,symbolName:()=>vl,symbolNameNoDefault:()=>Xz,symbolPart:()=>Ede,symbolToDisplayParts:()=>tM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>o7,sys:()=>_d,sysLog:()=>LL,tagNamesAreEquivalent:()=>EE,takeWhile:()=>AW,targetOptionDeclaration:()=>sw,templateObjectHelper:()=>h4,testFormatSettings:()=>Yce,textChangeRangeIsUnchanged:()=>Kne,textChangeRangeNewSpan:()=>ZC,textChanges:()=>pr,textOrKeywordPart:()=>$q,textPart:()=>sf,textRangeContainsPositionInclusive:()=>JL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Vne,textSpanEnd:()=>Jl,textSpanIntersection:()=>Hne,textSpanIntersectsWith:()=>ZW,textSpanIntersectsWithPosition:()=>Une,textSpanIntersectsWithTextSpan:()=>s0e,textSpanIsEmpty:()=>Gne,textSpanOverlap:()=>jne,textSpanOverlapsWith:()=>a0e,textSpansEqual:()=>uD,textToKeywordObj:()=>HL,timestamp:()=>Js,toArray:()=>dI,toBuilderFileEmit:()=>cce,toBuilderStateFileInfoForMultiEmit:()=>lce,toEditorSettings:()=>CO,toFileNameLowerCase:()=>oh,toLowerCase:()=>one,toPath:()=>nl,toProgramEmitPending:()=>dce,tokenIsIdentifierOrKeyword:()=>ou,tokenIsIdentifierOrKeywordOrGreaterThan:()=>One,tokenToString:()=>da,trace:()=>yo,tracing:()=>rr,tracingEnabled:()=>CL,transform:()=>ZDe,transformClassFields:()=>gle,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Mle,transformES2016:()=>Ple,transformES2017:()=>Ele,transformES2018:()=>Sle,transformES2019:()=>Tle,transformES2020:()=>Ale,transformES2021:()=>Ile,transformES5:()=>Lle,transformESDecorators:()=>ble,transformESNext:()=>xle,transformGenerators:()=>kle,transformJsx:()=>Nle,transformLegacyDecorators:()=>vle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>Ole,transformNodes:()=>Iw,transformSystemModule:()=>wle,transformTypeScript:()=>hle,transpile:()=>cRe,transpileModule:()=>sue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Jb,tryAndIgnoreErrors:()=>c7,tryCast:()=>ii,tryDirectoryExists:()=>l7,tryExtractTSExtension:()=>_6,tryFileExists:()=>uO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>s7,tryGetExtensionFromPath:()=>Og,tryGetImportFromModuleSpecifier:()=>W2,tryGetJSDocSatisfiesTypeNode:()=>V6,tryGetModuleNameFromFile:()=>Hk,tryGetModuleSpecifierFromDeclaration:()=>eR,tryGetNativePerformanceHooks:()=>Ene,tryGetPropertyAccessOrIdentifierToString:()=>nk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Z4,tryGetSourceMappingURL:()=>Qse,tryGetTextOfPropertyName:()=>fN,tryIOAndConsumeErrors:()=>d7,tryParseJson:()=>h6,tryParsePattern:()=>vR,tryParsePatterns:()=>w6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>SP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>Ioe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>une,typeAcquisitionDeclarations:()=>lw,typeAliasNamePart:()=>Ade,typeDirectiveIsEqualTo:()=>Fre,typeKeywords:()=>g7,typeParameterNamePart:()=>Ide,typeToDisplayParts:()=>aO,unchangedPollThresholds:()=>kL,unchangedTextChangeRange:()=>u2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>gw,unorderedRemoveItem:()=>uI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>moe,unusedLabelIsError:()=>_oe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>s3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>UR,updateSharedExtendedConfigFileWatcher:()=>Q3,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Dw,usesExtensionsOnImports:()=>Soe,usingSingleLineStringWriter:()=>dN,utf16EncodeAsString:()=>Px,validateLocaleAndSetLanguage:()=>c0e,valuesHelper:()=>E4,version:()=>qp,versionMajorMinor:()=>g_,visitArray:()=>bw,visitCommaListElements:()=>Ew,visitEachChild:()=>Sn,visitFunctionBody:()=>rf,visitIterationBody:()=>Iu,visitLexicalEnvironment:()=>TK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>Il,walkUpBindingElementsAndPatterns:()=>Lx,walkUpLexicalEnvironments:()=>ole,walkUpOuterExpressions:()=>Oae,walkUpParenthesizedExpressions:()=>Ly,walkUpParenthesizedTypes:()=>V2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tie,whitespaceOrMapCommentRegExp:()=>w3,writeCommentRange:()=>fR,writeFile:()=>RN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var nwe=bt({"src/typescript/_namespaces/ts.ts"(){"use strict";Qo(),Vw(),si(),ob(),Mot()}}),Lot=Ps({"src/typescript/typescript.ts"(e,t){nwe(),nwe(),typeof console<"u"&&(R.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=twe}});return Lot()})();typeof ni<"u"&&ni.exports&&(ni.exports=Rr);var oa=Rr.createClassifier,Zo=Rr.createLanguageService,fs=Rr.displayPartsToString,gs=Rr.EndOfLineState,Za=Rr.flattenDiagnosticMessageText,md=Rr.IndentStyle,Gd=Rr.ScriptKind,by=Rr.ScriptTarget,kC=Rr.TokenClass,Ol=Rr,ki={};ki["lib.d.ts"]=`/*! ***************************************************************************** +`,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: ${RE(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=Nhe(t,this.logger,this.byteLength,this.host.newLine);(r=iu)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Phe(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(So(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 R.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=ir)==null||i.push(ir.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=Hke(r,t)?gc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=ir)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=ir)==null||i.push(ir.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=ir)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=ir)==null||i.push(ir.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=ir)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>Kke(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){R.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(Co(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",Oo(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=ul(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=Vr(bo(o,s),d=>!!d.file&&d.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):mn(l,d=>d8(d,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:k_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:oT(r),code:r.code,source:r.source,startLocation:r.file&&c8(ys(r.file,r.start)),endLocation:r.file&&c8(ys(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(Vr(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:oT(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&&Hke(s,l))return gc;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>Kke(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)||gc,o);return r?this.mapDefinitionInfo(l,o):l.map(ute.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Xke(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=R.checkDefined(o.getScriptInfo(i)),d=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!d||!d.definitions)return{definitions:gc,textSpan:void 0};let p=this.mapDefinitionInfoLocations(d.definitions,o),{textSpan:h}=d;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Ah(h,l)}:{definitions:p.map(ute.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||gc,o).slice();if(this.projectService.serverMode===0&&(!gt(d,S=>ul(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=>ul(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=>ul(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=R.checkDefined(B.getSourceFile(K));for(let z of E(j.name,ce,B))S.add(z)}}d=Oo(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=j6(S);if(K&&S.lastIndexOf(Sh)===K.topLevelNodeModulesIndex){let Y=S.substring(0,K.packageRootIndex),B=(D=o.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=o.getCompilationSettings(),z=gw(_o(Y+"/package.json",o.getCurrentDirectory()),hw(B,o,ce));if(!z)return;let ee=sK(z,{moduleResolution:2},o,o.getModuleResolutionCache()),me=S.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ge=kP(bw(me)),q=o.toPath(S);if(ee&>(ee,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}/${Tu(J)}`;return(j=N.resolutionCache.resolveSingleModuleNameWithoutWatching(re,A).resolvedModule)==null?void 0:j.resolvedFileName}}}function m(){let S=o.getLanguageService(),A=S.getProgram(),N=zu(A.getSourceFile(i),s);return(ss(N)||Fe(N))&&Ls(N.parent)&&ooe(N,D=>{var w;if(D===N)return;let j=(w=S.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:w.filter(K=>ul(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Xf(N)}));if(gt(j))return j})||gc}function y(S,A,N){var D;let w=N.getSourceFile(S.fileName);if(!w)return;let j=zu(A.getSourceFile(i),s),K=A.getTypeChecker().getSymbolAtLocation(j),Y=K&&dl(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=ws.Core.getTopMostDeclarationNamesInFile(S,A);return to(D,w=>{let j=N.getTypeChecker().getSymbolAtLocation(w),K=IN(w);if(j&&K)return CD.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=>d8(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?(R.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,Xl(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)||gc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Xke(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)||gc,o);return r?l.map(({fileName:d,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(d,p,h,o)):l.map(ute.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?gc: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?gc: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 Rot(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})=>({...Lhe(m,E,h),kind:y}))}}):l:gc}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){R.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?gc:(this.projectService.logErrorForScriptInfoNotFound(t.file),Qy.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Vr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Qy.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 Qy.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=ul(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),R.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let h=bot(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:Ah(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=R.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Lhe(o,s,y),...h})}return Oo(r.values())}getReferences(t,r){let i=ul(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=Sot(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?LO(m.displayParts):"",E=m&&m.textSpan,S=E?h.positionToLineOffset(E.start).offset:0,A=E?h.getSnapshot().getText(E.start,Xl(E)):"";return{refs:va(l,D=>D.references.map(w=>$ke(this.projectService,w,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:y}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(ul(o)),l=[],d=iZ(this.host.useCaseSensitiveFileNames);return Mhe(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=>$ke(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=ul(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:Ah(d.textSpan,l),hintSpan:Ah(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?wD(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=LO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Xl(l.textSpan)),displayString:p,documentation:d?this.mapDisplayParts(l.documentation,o):LO(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?wD(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?wD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?wD(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||yot(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(Xl(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,{...yhe(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:ee,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}=y,J=j?Ah(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:ee,isPackageJsonImport:me,isImportStatementCompletion:ge,data:q}}});return r==="completions"?(d.metadata&&(h.metadata=d.metadata),h):{...d,optionalReplacementSpan:d.optionalReplacementSpan&&Ah(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?ta(S,Mot):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?vot(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||Sd(s.fileName)&&!got(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Cs(l)}}):gc}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||Qy.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=>d8(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=ul(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);R.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,Yte({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=ul(t.file),o=t.tmpfile===void 0?void 0:ul(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=>Ah(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=>Ah(i,r)),nameSpan:t.nameSpan&&Ah(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(Xl(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){R.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);Mhe(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=Vr(S,N=>m(N)&&!oZ(IM(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||Qy.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),R.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(ul(d));m=khe(pD(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){R.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=ul(t.oldFilePath),o=ul(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=>$L(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){R.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 pI(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),R.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>xot(i,r))}:Cot(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=>Ah(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=ul(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):Sd(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=R.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:Ah(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=ul(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Qy.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:Ah(t.span,r),selectionSpan:Ah(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Ah(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Ah(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:oh(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){R.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){R.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:${RE(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:${$P(this.toStringMessage(t))}`));let A,N;try{A=this.parseMessage(t),N=A.arguments&&A.arguments.file?A.arguments:void 0,(r=ir)==null||r.instant(ir.Phase.Session,"request",{seq:A.seq,command:A.command}),(i=iu)==null||i.logStartCommand(""+A.command,this.toStringMessage(t).substring(0,100)),(o=ir)==null||o.push(ir.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:D,responseRequired:w}=this.executeCommand(A);if((s=ir)==null||s.pop(),this.logger.hasLevel(2)){let j=hot(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=iu)==null||l.logStopCommand(""+A.command,"Success"),(d=ir)==null||d.instant(ir.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=ir)==null||p.popAll(),D instanceof Nx){(h=iu)==null||h.logStopCommand(""+(A&&A.command),"Canceled: "+D),(m=ir)==null||m.instant(ir.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=iu)==null||y.logStopCommand(""+(A&&A.command),"Error: "+D),(E=ir)==null||E.instant(ir.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()}}}}),w1,aZ,ewe,twe,UB,HB,zhe,xM,O1,u8,kot=bt({"src/server/scriptVersionCache.ts"(){"use strict";ab(),aA(),w1=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||{}),ewe=class{constructor(){this.goSubtree=!0,this.lineIndex=new xM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new O1,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=xM.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 O1;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 u8(""):new O1}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)}},twe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return QL(yd(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},UB=class aI{constructor(){this.changes=[],this.versions=new Array(aI.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%aI.maxVersions}currentVersionToIndex(){return this.currentVersion%aI.maxVersions}edit(t,r,i){this.changes.push(new twe(t,r,i)),(this.changes.length>aI.changeNumberThreshold||r>aI.changeLengthThreshold||i&&i.length>aI.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 zhe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=aI.maxVersions&&(this.minVersion=this.currentVersion-aI.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 yd(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 Hne(i)}else return;else return m2}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new aI,i=new zhe(0,r,new xM);r.versions[r.currentVersion]=i;let o=xM.linesFromText(t);return i.index.load(o.lines),r}},UB.changeNumberThreshold=8,UB.changeLengthThreshold=256,UB.maxVersions=8,HB=UB,zhe=class Y4e{constructor(t,r,i,o=gc){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 Y4e&&this.cache===t.cache)return this.version<=t.version?m2:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},xM=class xbe{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 R.assert(r===0),i!==void 0?(this.load(xbe.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 ewe,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());R.assert(o===d,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},O1=class Rbe{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=R.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=K_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${RE(o)}`),this.activeRequestCount0?this.activeRequestCount--:R.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 QP: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:${RE(t)}`),this.installer.send(t)},$4e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Bhe.requestDelayMillis=100,Ghe=Bhe}}),nwe={};Ra(nwe,{ActionInvalidate:()=>jw,ActionPackageInstalled:()=>Uw,ActionSet:()=>Vw,ActionWatchTypingLocations:()=>QP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>GB,CommandNames:()=>Ohe,ConfigFileDiagEvent:()=>OB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>BB,CreateFileWatcherEvent:()=>zB,Errors:()=>Qy,EventBeginInstallTypes:()=>Dz,EventEndInstallTypes:()=>Cz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Rz,ExternalProject:()=>CB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>wB,LineIndex:()=>xM,LineLeaf:()=>u8,LineNode:()=>O1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>oA,ProjectInfoTelemetryEvent:()=>FB,ProjectKind:()=>AM,ProjectLanguageServiceStateEvent:()=>WB,ProjectLoadingFinishEvent:()=>kB,ProjectLoadingStartEvent:()=>LB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>l8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>HB,Session:()=>Fhe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>Ghe,allFilesAreJsOrDts:()=>mhe,allRootFilesAreJsOrDts:()=>fhe,asNormalizedPath:()=>Pke,convertCompilerOptions:()=>NB,convertFormatOptions:()=>wD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>ghe,convertUserPreferences:()=>yhe,convertWatchOptions:()=>s8,countEachFileTypes:()=>o8,createInstallTypingsRequest:()=>K_e,createModuleSpecifierCache:()=>Dhe,createNormalizedPathMap:()=>Mke,createPackageJsonCache:()=>Che,createSortedArray:()=>$_e,emptyArray:()=>gc,findArgument:()=>vxe,forEachResolvedProjectReferenceProject:()=>OD,formatDiagnosticToProtocol:()=>d8,formatMessage:()=>Nhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>khe,hasArgument:()=>yxe,hasNoTypeScriptSource:()=>_he,indent:()=>$P,isBackgroundProject:()=>a8,isConfigFile:()=>Ahe,isConfiguredProject:()=>LE,isDynamicFileName:()=>i8,isExternalProject:()=>jQ,isInferredProject:()=>kD,isInferredProjectName:()=>J_e,makeAutoImportProviderProjectName:()=>X_e,makeAuxiliaryProjectName:()=>Y_e,makeInferredProjectName:()=>q_e,maxFileSize:()=>MB,maxProgramSizeForNonTsFiles:()=>PB,normalizedPathToPath:()=>r8,nowString:()=>bxe,nullCancellationToken:()=>whe,nullTypingsInstaller:()=>DB,projectContainsInfoDirectly:()=>k1,protocol:()=>phe,removeSorted:()=>Lke,stringifyIndented:()=>RE,toEvent:()=>Phe,toNormalizedPath:()=>ul,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>U_e,updateProjectIfDirty:()=>zp});var aA=bt({"src/server/_namespaces/ts.server.ts"(){"use strict";Nz(),H_e(),qit(),Xit(),Yit(),$it(),eot(),iot(),lot(),fot(),mot(),_ot(),Lot(),kot(),wot()}}),rwe={};Ra(rwe,{ANONYMOUS:()=>b7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>x1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>L3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>P1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>R,DiagnosticCategory:()=>kL,Diagnostics:()=>f,DocumentHighlights:()=>T7,ElementFlags:()=>A9,EmitFlags:()=>jW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>kW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>ws,FlattenLevel:()=>kK,FlowFlags:()=>LL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>LW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>CD,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>_1,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:()=>ME,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>PW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>YC,ModuleResolutionKind:()=>Px,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>lue,NavigationBar:()=>yue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>NW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>FW,OperationCanceledException:()=>Nx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>A7,PollingInterval:()=>UW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>MW,Rename:()=>EB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>BW,ScriptSnapshot:()=>Mz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>k3,SignatureFlags:()=>zW,SignatureHelp:()=>XO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>VW,SortKind:()=>XG,StructureIsReused:()=>wW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>$y,SymbolDisplayPartKind:()=>Kw,SymbolFlags:()=>OW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>CW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>GW,TypeFacts:()=>M3,TypeFlags:()=>WW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>NL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>wc,accessPrivateIdentifier:()=>ole,addDisposableResourceHelper:()=>P4,addEmitFlags:()=>D_,addEmitHelper:()=>UI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>VI,addNodeFactoryPatcher:()=>GSe,addObjectAllocatorPatcher:()=>soe,addRange:()=>Ur,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>cP,addSyntheticTrailingComment:()=>i4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Lk,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>I3,altDirectorySeparator:()=>VL,and:()=>TW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Vm,arrayIsHomogeneous:()=>Roe,arrayIsSorted:()=>_W,arrayOf:()=>ene,arrayReverseIterator:()=>wG,arrayToMap:()=>g0,arrayToMultiMap:()=>RL,arrayToNumericMap:()=>nne,arraysEqual:()=>AL,assertType:()=>EEe,assign:()=>Tx,assignHelper:()=>u4,asyncDelegator:()=>f4,asyncGeneratorHelper:()=>p4,asyncSuperHelper:()=>Mk,asyncValues:()=>m4,attachFileToDiagnostics:()=>WI,awaitHelper:()=>HI,awaiterHelper:()=>h4,base64decode:()=>Yie,base64encode:()=>Xie,binarySearch:()=>Sy,binarySearchKey:()=>dI,bindSourceFile:()=>kse,breakIntoCharacterSpans:()=>tue,breakIntoWordSpans:()=>nue,buildLinkParts:()=>Ide,buildOpts:()=>m3,buildOverload:()=>Ike,bundlerModuleNameResolver:()=>Ase,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>jT,canHaveExportModifier:()=>mk,canHaveFlowNode:()=>V2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>Fae,canHaveIllegalType:()=>hTe,canHaveIllegalTypeParameters:()=>Wae,canHaveJSDoc:()=>j2,canHaveLocals:()=>ch,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>DP,canProduceDiagnostics:()=>J3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>pce,canWatchAtTypes:()=>uce,canWatchDirectoryOrFile:()=>mz,cartesianProduct:()=>pne,cast:()=>ta,chainBundle:()=>Im,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>BL,changeCompilerHostLikeToUseCache:()=>kw,changeExtension:()=>fE,changeFullExtension:()=>Pne,changesAffectModuleResolution:()=>bF,changesAffectingProgramStructure:()=>Lre,childIsDecorated:()=>EN,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>U3,classOrConstructorParameterIsDecorated:()=>My,classPrivateFieldGetHelper:()=>D4,classPrivateFieldInHelper:()=>N4,classPrivateFieldSetHelper:()=>C4,classicNameResolver:()=>Nse,classifier:()=>fpe,cleanExtendedConfigCache:()=>tz,clear:()=>jh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>kz,climbPastPropertyOrElementAccess:()=>Qce,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>Rf,codefix:()=>Wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Hne,collectExternalModuleInfo:()=>CK,combine:()=>Sx,combinePaths:()=>Yr,commentPragmas:()=>wL,commonOptionsWithBuild:()=>cw,commonPackageFolders:()=>DU,compact:()=>xL,compareBooleans:()=>Sv,compareDataObjects:()=>Qj,compareDiagnostics:()=>UN,compareDiagnosticsSkipRelatedInformation:()=>I6,compareEmitHelpers:()=>rae,compareNumberOfDirectorySeparators:()=>uk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>qEe,comparePathsCaseSensitive:()=>JEe,comparePatternKeys:()=>dK,compareProperties:()=>lne,compareStringsCaseInsensitive:()=>EW,compareStringsCaseInsensitiveEslintCompatible:()=>one,compareStringsCaseSensitive:()=>jd,compareStringsCaseSensitiveUI:()=>CL,compareTextSpans:()=>bW,compareValues:()=>el,compileOnSaveCommandLineOption:()=>sw,compilerOptionsAffectDeclarationPath:()=>goe,compilerOptionsAffectEmit:()=>hoe,compilerOptionsAffectSemanticDiagnostics:()=>_oe,compilerOptionsDidYouMeanDiagnostics:()=>pw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>vEe,computeCommonSourceDirectoryOfFilenames:()=>Ule,computeLineAndCharacterOfPosition:()=>Lx,computeLineOfPosition:()=>eN,computeLineStarts:()=>yI,computePositionOfLineAndCharacter:()=>$W,computeSignature:()=>XT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>_c,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>uoe,consumesNodeCoreModules:()=>f7,contains:()=>zo,containsIgnoredPath:()=>ZN,containsObjectRestOrSpread:()=>Qk,containsParseError:()=>Hx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>sse,convertCompilerOptionsFromJson:()=>vAe,convertJsonOption:()=>UT,convertToBase64:()=>qie,convertToJson:()=>iw,convertToObject:()=>nse,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>ZC,convertToTSConfig:()=>oAe,convertTypeAcquisitionFromJson:()=>bAe,copyComments:()=>ZT,copyEntries:()=>EF,copyLeadingComments:()=>hD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>pO,copyTrailingComments:()=>sM,couldStartTrivia:()=>wne,countWhere:()=>bv,createAbstractBuilder:()=>x1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>Kae,createAccessorPropertySetRedirector:()=>Jae,createBaseNodeFactory:()=>Goe,createBinaryExpressionTrampoline:()=>n3,createBindingHelper:()=>CR,createBuildInfo:()=>Cw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>cce,createBuilderStatusReporter:()=>xce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>Z3,createClassNamedEvaluationHelperBlock:()=>ule,createClassThisAssignmentBlock:()=>cle,createClassifier:()=>jxe,createCommentDirectivesMap:()=>zre,createCompilerDiagnostic:()=>Hl,createCompilerDiagnosticForInvalidCustomType:()=>$ae,createCompilerDiagnosticFromMessageChain:()=>A6,createCompilerHost:()=>Hle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>ER,createDiagnosticCollection:()=>pR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>qx,createDiagnosticForNodeArrayFromMessageChain:()=>E2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>$re,createDiagnosticMessageChainFromDiagnostic:()=>Yre,createDiagnosticReporter:()=>zw,createDocumentPositionMapper:()=>Zse,createDocumentRegistry:()=>Ude,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>nae,createEmptyExports:()=>Uk,createExpressionForJsxElement:()=>Nae,createExpressionForJsxFragment:()=>Pae,createExpressionForObjectLiteralElementLike:()=>Mae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Hk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Zc,createFileDiagnosticFromMessageChain:()=>NF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Pd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wle,createGetSymbolWalker:()=>wse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>Ace,createInputFiles:()=>jSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>spe,createLanguageServiceSourceFile:()=>q7,createMemberAccessForPropertyName:()=>VT,createModeAwareCache:()=>f1,createModeAwareCacheKey:()=>LP,createModuleNotFoundChain:()=>SF,createModuleResolutionCache:()=>qR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>hce,createModuleSpecifierResolutionHost:()=>QT,createMultiMap:()=>qp,createNodeConverters:()=>joe,createNodeFactory:()=>Ak,createOptionNameMap:()=>o3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>dM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>Voe,createPatternMatcher:()=>Xde,createPrependNodes:()=>gJ,createPrinter:()=>IE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>oS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Nw,createProgram:()=>az,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>V6,createQueue:()=>DL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>hle,createScanner:()=>Dy,createSemanticDiagnosticsBuilderProgram:()=>I1e,createSet:()=>VG,createSolutionBuilder:()=>V1e,createSolutionBuilderHost:()=>B1e,createSolutionBuilderWithWatch:()=>j1e,createSolutionBuilderWithWatchHost:()=>G1e,createSortedArray:()=>kG,createSourceFile:()=>ew,createSourceMapGenerator:()=>Xse,createSourceMapSource:()=>USe,createSuperAccessVariableStatement:()=>K3,createSymbolTable:()=>oa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Rne,createTextChange:()=>rO,createTextChangeFromStartLength:()=>qz,createTextChangeRange:()=>QL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Jz,createTextSpan:()=>yd,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>Ru,createTextSpanFromRange:()=>nb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>tk,createTokenRange:()=>Xj,createTypeChecker:()=>jse,createTypeReferenceDirectiveResolutionCache:()=>S3,createTypeReferenceResolutionLoader:()=>rz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>W1e,createWatchCompilerHostOfConfigFile:()=>Ece,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sce,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>F1e,createWatchStatusReporter:()=>gce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>xs,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>$L,decorateHelper:()=>a4,deduplicate:()=>h0,defaultIncludeSpec:()=>g3,defaultInitCompilerOptions:()=>_3,defaultMaximumTruncationLength:()=>yk,detectSortCaseSensitivity:()=>HC,diagnosticCategoryName:()=>oT,diagnosticToString:()=>tA,directoryProbablyExists:()=>Hm,directorySeparator:()=>rl,displayPart:()=>ep,displayPartsToString:()=>LO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>M4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>Ane,elementAt:()=>xy,elideNodes:()=>Hae,emitComments:()=>Wie,emitDetachedComments:()=>Fie,emitFiles:()=>Y3,emitFilesAndReportErrors:()=>yz,emitFilesAndReportErrorsAndGetExitStatus:()=>bce,emitModuleKindIsNonNodeESM:()=>x6,emitNewLineBeforeLeadingCommentOfPosition:()=>Oie,emitNewLineBeforeLeadingComments:()=>kie,emitNewLineBeforeLeadingCommentsOfPosition:()=>wie,emitSkippedWithNoDiagnostics:()=>uz,emitUsingBuildInfo:()=>Ble,emptyArray:()=>Xe,emptyFileSystemEntries:()=>e4,emptyMap:()=>RW,emptyOptions:()=>Cf,emptySet:()=>mne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>y0,ensureScriptKind:()=>w6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>IW,equalOwnProperties:()=>tne,equateStringsCaseInsensitive:()=>Xb,equateStringsCaseSensitive:()=>nT,equateValues:()=>Iy,esDecorateHelper:()=>c4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>fl,escapeNonAsciiString:()=>ek,escapeSnippetText:()=>G0,escapeString:()=>eg,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>Y4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>lR,exportStarHelper:()=>R4,expressionResultIsUnused:()=>Coe,extend:()=>vW,extendsHelper:()=>g4,extensionFromPath:()=>qN,extensionIsTS:()=>F6,extensionsNotSupportingExtensionlessResolution:()=>Tk,externalHelpersModuleNameText:()=>jv,factory:()=>L,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>Vr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>sz,find:()=>Gr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>gs,findComputedPropertyNameCacheAssignment:()=>r3,findConfigFile:()=>jle,findContainingList:()=>zz,findDiagnosticForNode:()=>Ode,findFirstNonJsxWhitespaceToken:()=>rde,findIndex:()=>ql,findLast:()=>cI,findLastIndex:()=>mW,findListItemInfo:()=>nde,findMap:()=>_Ee,findModifier:()=>fD,findNextToken:()=>lS,findPackageJson:()=>kde,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>Hz,findPrecedingToken:()=>Ic,findSuperStatementIndexPath:()=>G3,findTokenOnLeftOfPosition:()=>Vz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>zl,firstDefinedIterator:()=>TL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Yc,firstOrUndefinedIterator:()=>hW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>GC,flatten:()=>pm,flattenCommaList:()=>qae,flattenDestructuringAssignment:()=>KT,flattenDestructuringBinding:()=>iS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>kre,forEachAncestorDirectory:()=>hm,forEachChild:()=>Bo,forEachChildRecursively:()=>xP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Jre,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>ZF,forEachKey:()=>uh,forEachLeadingCommentRange:()=>KL,forEachNameInAccessChainWalkingLeft:()=>ooe,forEachPropertyAssignment:()=>Qx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>R0,forEachRight:()=>Kte,forEachTrailingCommentRange:()=>JL,forEachTsConfigPropArray:()=>I2,forEachUnique:()=>qq,forEachYieldExpression:()=>Zre,forSomeAncestorDirectory:()=>pSe,formatColorAndReset:()=>aS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>a1e,formatDiagnosticsWithColorAndContext:()=>Kle,formatGeneratedName:()=>bE,formatGeneratedNamePart:()=>jR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>rg,formatting:()=>Oc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>$C,generateTSConfig:()=>dAe,generatorHelper:()=>A4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>Gz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>xT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>j3,getAllJSDocTags:()=>oF,getAllJSDocTagsOfKind:()=>T0e,getAllKeys:()=>gEe,getAllProjectOutputs:()=>X3,getAllSuperTypeNodes:()=>xN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>Uv,getAllowSyntheticDefaultImports:()=>CT,getAncestor:()=>uE,getAnyExtensionFromPath:()=>Mx,getAreDeclarationMapsEnabled:()=>bk,getAssignedExpandoInitializer:()=>xI,getAssignedName:()=>rF,getAssignedNameOfIdentifier:()=>BP,getAssignmentDeclarationKind:()=>Gl,getAssignmentDeclarationPropertyAccessKind:()=>W2,getAssignmentTargetKind:()=>NI,getAutomaticTypeDirectiveNames:()=>b3,getBaseFileName:()=>ic,getBinaryOperatorPrecedence:()=>Z2,getBuildInfo:()=>$3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>zle,getBuildOrderFromAnyBuildOrder:()=>Tz,getBuilderCreationParameters:()=>pz,getBuilderFileEmit:()=>tb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>M0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>yR,getCombinedModifierFlags:()=>eE,getCombinedNodeFlags:()=>Cy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>JP,getCommonSourceDirectoryOfConfig:()=>eD,getCompilerOptionValue:()=>D6,getCompilerOptionsDiffValue:()=>lAe,getConditions:()=>Zv,getConfigFileParsingDiagnostics:()=>qT,getConstantValue:()=>Xoe,getContainerFlags:()=>mK,getContainerNode:()=>$T,getContainingClass:()=>sd,getContainingClassExcludingClassDecorators:()=>zF,getContainingClassStaticBlock:()=>lie,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>sie,getContainingFunctionOrClassStaticBlock:()=>FF,getContainingNodeArray:()=>Noe,getContainingObjectLiteralElement:()=>kO,getContextualTypeFromParent:()=>o7,getContextualTypeFromParentOrAncestorTypeNode:()=>Bz,getCurrentTime:()=>Gw,getDeclarationDiagnostics:()=>Ole,getDeclarationEmitExtensionForPath:()=>l6,getDeclarationEmitOutputFilePath:()=>Cie,getDeclarationEmitOutputFilePathWorker:()=>s6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>IN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Pre,getDeclaredExpandoInitializer:()=>L2,getDecorators:()=>Dv,getDefaultCompilerOptions:()=>J7,getDefaultExportInfoWorker:()=>S7,getDefaultFormatCodeSettings:()=>Pz,getDefaultLibFileName:()=>XL,getDefaultLibFilePath:()=>lpe,getDefaultLikeExportInfo:()=>E7,getDiagnosticText:()=>QTe,getDiagnosticsWithinSpan:()=>Wde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>mce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>_h,getEditsForFileRename:()=>Kde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>Fx,getEffectiveContainerForJSDocTemplateTag:()=>e6,getEffectiveImplementsTypeNodes:()=>cR,getEffectiveInitializer:()=>M2,getEffectiveJSDocHost:()=>dE,getEffectiveModifierFlags:()=>du,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Vie,getEffectiveModifierFlagsNoCache:()=>jie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>Lie,getEffectiveTypeAnnotationNode:()=>vd,getEffectiveTypeParameterDeclarations:()=>Cv,getEffectiveTypeRoots:()=>MP,getElementOrPropertyAccessArgumentExpressionOrName:()=>QF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>VR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>o4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>kd,getEmitModuleResolutionKind:()=>pu,getEmitScriptTarget:()=>rs,getEmitStandardClassFields:()=>moe,getEnclosingBlockScopeContainer:()=>ph,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>g2,getEntityNameFromTypeNode:()=>D2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>hz,getErrorSpanForNode:()=>_T,getErrorSummaryText:()=>yce,getEscapedTextOfIdentifierOrLiteral:()=>CN,getEscapedTextOfJsxAttributeName:()=>rP,getEscapedTextOfJsxNamespacedName:()=>BI,getExpandoInitializer:()=>lE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>gO,getExportNeedsImportStarHelper:()=>ele,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>PN,getExternalHelpersModuleName:()=>Jk,getExternalModuleImportEqualsDeclarationExpression:()=>SN,getExternalModuleName:()=>iR,getExternalModuleNameFromDeclaration:()=>Rie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>c1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Lw,getFileEmitOutput:()=>Zle,getFileMatcherPatterns:()=>k6,getFileNamesFromConfigSpecs:()=>CP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>gz,getFirstConstructorWithBody:()=>tg,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Dde,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>g7,getFullWidth:()=>_2,getFunctionFlags:()=>Vc,getHeritageClause:()=>X2,getHostSignatureFromJSDoc:()=>cE,getIdentifierAutoGenerate:()=>XSe,getIdentifierGeneratedImportReference:()=>tae,getIdentifierTypeArguments:()=>NT,getImmediatelyInvokedFunctionExpression:()=>gT,getImpliedNodeFormatForFile:()=>Ww,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>z3,getIndentSize:()=>mR,getIndentString:()=>o6,getInferredLibraryNameResolveFrom:()=>oz,getInitializedVariables:()=>GN,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Xk,getInterfaceBaseTypeNodes:()=>RN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>VF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>ere,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>sre,getJSDocEnumTag:()=>bV,getJSDocHost:()=>ET,getJSDocImplementsTags:()=>tre,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>are,getJSDocParameterTags:()=>Wx,getJSDocParameterTagsNoCache:()=>Yne,getJSDocPrivateTag:()=>y0e,getJSDocPrivateTagNoCache:()=>rre,getJSDocProtectedTag:()=>v0e,getJSDocProtectedTagNoCache:()=>ire,getJSDocPublicTag:()=>g0e,getJSDocPublicTagNoCache:()=>nre,getJSDocReadonlyTag:()=>b0e,getJSDocReadonlyTagNoCache:()=>ore,getJSDocReturnTag:()=>lre,getJSDocReturnType:()=>e2,getJSDocRoot:()=>sR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>iE,getJSDocTagsNoCache:()=>S0e,getJSDocTemplateTag:()=>E0e,getJSDocThisTag:()=>iF,getJSDocType:()=>rE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Q4,getJSDocTypeParameterDeclarations:()=>p6,getJSDocTypeParameterTags:()=>$ne,getJSDocTypeParameterTagsNoCache:()=>Qne,getJSDocTypeTag:()=>nE,getJSXImplicitImportBase:()=>N6,getJSXRuntimeImport:()=>P6,getJSXTransformEnabled:()=>C6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>lk,getLastChild:()=>Zj,getLeadingCommentRanges:()=>Hh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>vR,getLeftmostExpression:()=>bR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>AK,getLineOfLocalPosition:()=>LN,getLineOfLocalPositionFromLineMap:()=>AT,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>toe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>eoe,getLinesBetweenPositions:()=>tN,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>dSe,getLiteralText:()=>Bre,getLocalNameForExternalImport:()=>GR,getLocalSymbolForExportDefault:()=>gR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Bw,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>t7,getMappedLocation:()=>iM,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>Jw,getMeaningFromLocation:()=>YT,getMembersOfDeclaration:()=>eie,getModeForFileReference:()=>ww,getModeForResolutionAtIndex:()=>Jle,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>_I,getModifiers:()=>b0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>Fw,getModuleSpecifierEndingPreference:()=>Eoe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>m7,getNameFromImportAttribute:()=>K6,getNameFromIndexInfo:()=>qre,getNameFromPropertyName:()=>aO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>Xne,getNameOrArgument:()=>O2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>Fde,getNamespaceDeclarationNode:()=>oR,getNewLineCharacter:()=>Wy,getNewLineKind:()=>hO,getNewLineOrDefaultFromHost:()=>qy,getNewTargetContainer:()=>die,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>$k,getNodeId:()=>is,getNodeKind:()=>sS,getNodeModifiers:()=>tM,getNodeModulePathParts:()=>j6,getNonAssignedNameOfDeclaration:()=>nF,getNonAssignmentOperatorForCompoundAssignment:()=>WP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>zL,getObjectFlags:()=>Lr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>Q2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>HR,getOrCreateEmitNode:()=>wd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Oae,getOrUpdate:()=>jC,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Od,getOriginalSourceFile:()=>eSe,getOutputDeclarationFileName:()=>KP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>q3,getOutputFileNames:()=>i1e,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>HP,getOutputPathsForBundle:()=>UP,getOwnEmitOutputFilePath:()=>Die,getOwnKeys:()=>Uh,getOwnValues:()=>uI,getPackageJsonInfo:()=>eS,getPackageJsonTypesVersionsPaths:()=>v3,getPackageJsonsVisibleToFile:()=>wde,getPackageNameFromTypesPackageName:()=>kP,getPackageScopeForPath:()=>gw,getParameterSymbolFromJSDoc:()=>U2,getParameterTypeNode:()=>ESe,getParentNodeInSpan:()=>lO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>nw,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Iv,getPathUpdater:()=>CX,getPathsBasePath:()=>c6,getPatternFromSpec:()=>yoe,getPendingEmitKind:()=>oD,getPositionOfLineAndCharacter:()=>UL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Nie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>o1e,getPrecedingNonSpaceCharacterPosition:()=>r7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>gW,getPropertyArrayElementValue:()=>aie,getPropertyAssignmentAliasLikeExpression:()=>Tie,getPropertyNameForPropertyNameNode:()=>ST,getPropertyNameForUniqueESSymbol:()=>Q0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>e7,getPropertySymbolsFromContextualType:()=>X7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>of,getRangesWhere:()=>LG,getRefactorContextSpan:()=>T1,getReferencedFileLocation:()=>qP,getRegexFromPattern:()=>Gv,getRegularExpressionForWildcard:()=>HN,getRegularExpressionsForWildcards:()=>M6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>GL,getRelativePathToDirectoryOrUrl:()=>gI,getRenameLocation:()=>uO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>tD,getResolveJsonModule:()=>_E,getResolvePackageJsonExports:()=>$6,getResolvePackageJsonImports:()=>Q6,getResolvedExternalModuleName:()=>a6,getRestIndicatorOfBindingOrAssignmentElement:()=>e3,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>k2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>_ce,getRootLength:()=>lh,getRootPathSplitLength:()=>N1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>O6,getScriptTargetFeatures:()=>X6,getSelectedEffectiveModifierFlags:()=>LI,getSelectedSyntacticModifierFlags:()=>Bie,getSemanticClassifications:()=>Vde,getSemanticJsxChildren:()=>uR,getSetAccessorTypeAnnotationNode:()=>Pie,getSetAccessorValueParameter:()=>kN,getSetExternalModuleIndicator:()=>ck,getShebang:()=>ZW,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>CI,getSnapshotText:()=>pD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>AF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>d6,getSourceFilePathInNewDirWorker:()=>u6,getSourceFileVersionAsHashFromText:()=>vz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>zy,getSourceMapper:()=>iue,getSourceTextOfNodeFromSourceFile:()=>A0,getSpanOfTokenAtPosition:()=>fh,getSpellingSuggestion:()=>JC,getStartPositionOfLine:()=>Ov,getStartPositionOfRange:()=>BN,getStartsOnNewLine:()=>lP,getStaticPropertiesAndClassStaticBlock:()=>V3,getStrictOptionValue:()=>uu,getStringComparer:()=>Ax,getSubPatternFromSpec:()=>L6,getSuperCallFromStatement:()=>B3,getSuperContainer:()=>x2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>KN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>dk,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>Y2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>jde,getSyntacticModifierFlags:()=>zv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>al,getSynthesizedDeepCloneWithReplacements:()=>dO,getSynthesizedDeepClones:()=>cS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>DR,getSyntheticTrailingComments:()=>Ck,getTargetLabel:()=>wz,getTargetOfBindingOrAssignmentElement:()=>Qv,getTemporaryModuleResolutionState:()=>hw,getTextOfConstantValue:()=>Gre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>n2,getTextOfJsxAttributeName:()=>gk,getTextOfJsxNamespacedName:()=>iP,getTextOfNode:()=>fc,getTextOfNodeFromSourceText:()=>hN,getTextOfPropertyName:()=>Jx,getThisContainer:()=>wu,getThisParameter:()=>k0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>aE,getTokenSourceMapRange:()=>JSe,getTouchingPropertyName:()=>zu,getTouchingToken:()=>uD,getTrailingCommentRanges:()=>$b,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Uoe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>bN,getTsConfigPropArrayElementValue:()=>WF,getTypeAnnotationNode:()=>Mie,getTypeArgumentOrTypeParameterList:()=>ude,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>Zoe,getTypeNodeIfAccessible:()=>cM,getTypeParameterFromJsDoc:()=>gie,getTypeParameterOwner:()=>p0e,getTypesPackageName:()=>x3,getUILocale:()=>ane,getUniqueName:()=>eA,getUniqueSymbolId:()=>Rde,getUseDefineForClassFields:()=>sP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>KC,groupBy:()=>yW,guessIndentation:()=>Cre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>W0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>eO,hasContextSensitiveParameters:()=>G6,hasDecorators:()=>bf,hasDocComment:()=>cde,hasDynamicName:()=>Fv,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>f6,hasEffectiveReadonlyModifier:()=>wN,hasExtension:()=>hI,hasIndexSignature:()=>iX,hasInitializer:()=>kv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>Zne,hasJSFileExtension:()=>F0,hasJsonModuleEmitEnabled:()=>R6,hasOnlyExpressionInitializer:()=>pT,hasOverrideModifier:()=>m6,hasPossibleExternalModuleReference:()=>Kre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>Xw,hasQuestionToken:()=>DI,hasRecordedExternalHelpers:()=>wae,hasResolutionModeOverride:()=>woe,hasRestParameter:()=>FV,hasScopeMarker:()=>Ere,hasStaticModifier:()=>mc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>zie,hasTSFileExtension:()=>zI,hasTabstop:()=>Moe,hasTrailingDirectorySeparator:()=>Ry,hasType:()=>yF,hasTypeArguments:()=>J0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>ky,hostUsesCaseSensitiveFileNames:()=>_R,idText:()=>vr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>tE,identity:()=>Zs,identitySourceMapConsumer:()=>F3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>FL,importDefaultHelper:()=>x4,importFromModuleSpecifier:()=>AN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Pk,indexOfAnyCharCode:()=>Jte,indexOfNode:()=>Kx,indicesOf:()=>IL,inferredTypesContainingFile:()=>iD,injectClassNamedEvaluationHelperBlockIfMissing:()=>H3,injectClassThisAssignmentIfMissing:()=>dle,insertImports:()=>rM,insertLeadingStatement:()=>pTe,insertSorted:()=>Ev,insertStatementAfterCustomPrologue:()=>fT,insertStatementAfterStandardPrologue:()=>W0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>Xh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>iie,inverseJsxOptionMap:()=>NP,isAbstractConstructorSymbol:()=>noe,isAbstractModifier:()=>cae,isAccessExpression:()=>Ls,isAccessibilityModifier:()=>kq,isAccessor:()=>Pv,isAccessorModifier:()=>uae,isAliasSymbolDeclaration:()=>X0e,isAliasableExpression:()=>q2,isAmbientModule:()=>Ld,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>NN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Hre,isAnyImportOrReExport:()=>v2,isAnyImportSyntax:()=>mT,isAnySupportedFileExtension:()=>bSe,isApplicableVersionedTypesKey:()=>vw,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>So,isArrayBindingElement:()=>pF,isArrayBindingOrAssignmentElement:()=>c2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>U0,isArrayLiteralExpression:()=>fu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ky,isArrayTypeNode:()=>Fk,isArrowFunction:()=>zs,isAsExpression:()=>Bk,isAssertClause:()=>yae,isAssertEntry:()=>iTe,isAssertionExpression:()=>uT,isAssertsKeyword:()=>sae,isAssignmentDeclaration:()=>TN,isAssignmentExpression:()=>Lc,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>fN,isAssignmentTarget:()=>Zh,isAsteriskToken:()=>kk,isAsyncFunction:()=>DN,isAsyncModifier:()=>uP,isAutoAccessorPropertyDeclaration:()=>ku,isAwaitExpression:()=>Xv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>L4,isBinaryExpression:()=>pr,isBinaryOperatorToken:()=>Uae,isBindableObjectDefinePropertyCall:()=>vT,isBindableStaticAccessExpression:()=>N0,isBindableStaticElementAccessExpression:()=>$F,isBindableStaticNameExpression:()=>bT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>fie,isBindingName:()=>cT,isBindingOrAssignmentElement:()=>_re,isBindingOrAssignmentPattern:()=>s2,isBindingPattern:()=>$o,isBlock:()=>Ho,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Ure,isBooleanLiteral:()=>pN,isBreakOrContinueStatement:()=>lN,isBreakStatement:()=>tTe,isBuildInfoFile:()=>Fle,isBuilderProgram:()=>vce,isBundle:()=>aH,isBundleFileTextLike:()=>ioe,isCallChain:()=>sT,isCallExpression:()=>ra,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>T0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>$I,isCallToHelper:()=>dP,isCaseBlock:()=>yP,isCaseClause:()=>wR,isCaseKeyword:()=>pae,isCaseOrDefaultClause:()=>hF,isCatchClause:()=>$0,isCatchClauseVariableDeclaration:()=>Poe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>fk,isChildOfNodeWithKind:()=>z0e,isCircularBuildOrder:()=>y1,isClassDeclaration:()=>Ac,isClassElement:()=>Qc,isClassExpression:()=>ed,isClassInstanceProperty:()=>fre,isClassLike:()=>di,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>g1,isClassOrTypeElement:()=>uF,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>zP,isCollapsedRange:()=>cSe,isColonToken:()=>oae,isCommaExpression:()=>Kk,isCommaListExpression:()=>_P,isCommaSequence:()=>TP,isCommaToken:()=>iae,isComment:()=>Kz,isCommonJsExportPropertyAssignment:()=>wF,isCommonJsExportedExpression:()=>nie,isCompoundAssignment:()=>OP,isComputedNonLiteralName:()=>b2,isComputedPropertyName:()=>Ya,isConciseBody:()=>mF,isConditionalExpression:()=>kR,isConditionalTypeNode:()=>t1,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Ok,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>NR,isContextualKeyword:()=>n6,isContinueStatement:()=>eTe,isCustomPrologue:()=>A2,isDebuggerStatement:()=>nTe,isDeclaration:()=>Kd,isDeclarationBindingElement:()=>a2,isDeclarationFileName:()=>Sd,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>PF,isDeclarationStatement:()=>Ire,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>Ed,isDecoratorTarget:()=>Yce,isDefaultClause:()=>bP,isDefaultImport:()=>RI,isDefaultModifier:()=>W4,isDefaultedExpandoInitializer:()=>mie,isDeleteExpression:()=>_ae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>_7,isDestructuringAssignment:()=>Oy,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>QSe,isDocumentRegistryEntry:()=>yO,isDotDotDotToken:()=>w4,isDottedName:()=>WN,isDynamicName:()=>i6,isESSymbolIdentifier:()=>Z0e,isEffectiveExternalModule:()=>II,isEffectiveModuleDeclaration:()=>jre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Xs,isEmittedFileOfProgram:()=>Vle,isEmptyArrayLiteral:()=>Jie,isEmptyBindingElement:()=>Jne,isEmptyBindingPattern:()=>Kne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Vl,isEnumConst:()=>x0,isEnumDeclaration:()=>gE,isEnumMember:()=>Q0,isEqualityOperatorKind:()=>a7,isEqualsGreaterThanToken:()=>aae,isExclamationToken:()=>wk,isExcludedFile:()=>ise,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>H6,isExportAssignment:()=>kl,isExportDeclaration:()=>$l,isExportModifier:()=>XI,isExportName:()=>$4,isExportNamespaceAsDefaultDeclaration:()=>RF,isExportOrDefaultModifier:()=>Yk,isExportSpecifier:()=>Jd,isExportsIdentifier:()=>yT,isExportsOrModuleExportsOrAlias:()=>tS,isExpression:()=>ht,isExpressionNode:()=>$h,isExpressionOfExternalModuleImportEqualsDeclaration:()=>ede,isExpressionOfOptionalChainRoot:()=>lF,isExpressionStatement:()=>td,isExpressionWithTypeArguments:()=>Gy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>_6,isExternalModule:()=>sc,isExternalModuleAugmentation:()=>I0,isExternalModuleImportEqualsDeclaration:()=>sE,isExternalModuleIndicator:()=>d2,isExternalModuleNameRelative:()=>$c,isExternalModuleReference:()=>bh,isExternalModuleSymbol:()=>iO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>o2,isFileLevelUniqueName:()=>IF,isFileProbablyExternalModule:()=>Zk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Gx,isForInStatement:()=>j4,isForInitializer:()=>vf,isForOfStatement:()=>Gk,isForStatement:()=>OT,isFunctionBlock:()=>D0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Tc,isFunctionExpression:()=>ks,isFunctionExpressionOrArrowFunction:()=>B0,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Fs,isFunctionLikeKind:()=>EI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Bx,isFunctionOrConstructorTypeNode:()=>mre,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>hie,isFunctionTypeNode:()=>gh,isFutureReservedKeyword:()=>Y0e,isGeneratedIdentifier:()=>il,isGeneratedPrivateIdentifier:()=>lT,isGetAccessor:()=>Lv,isGetAccessorDeclaration:()=>Qp,isGetOrSetAccessorDeclaration:()=>aF,isGlobalDeclaration:()=>Fxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>Fre,isHeritageClause:()=>Zp,isHoistedFunction:()=>LF,isHoistedVariableStatement:()=>kF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>Sie,isIdentifierOrThisTypeNode:()=>Bae,isIdentifierPart:()=>Qb,isIdentifierStart:()=>Kh,isIdentifierText:()=>Yp,isIdentifierTypePredicate:()=>oie,isIdentifierTypeReference:()=>xoe,isIfStatement:()=>wT,isIgnoredFileFromWildCardWatching:()=>Mw,isImplicitGlob:()=>sU,isImportAttribute:()=>vae,isImportAttributeName:()=>pre,isImportAttributes:()=>i1,isImportCall:()=>Op,isImportClause:()=>yh,isImportDeclaration:()=>kc,isImportEqualsDeclaration:()=>nd,isImportKeyword:()=>fP,isImportMeta:()=>Yx,isImportOrExportSpecifier:()=>bI,isImportOrExportSpecifierName:()=>xde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>rTe,isImportTypeNode:()=>og,isImportableFile:()=>EX,isInComment:()=>Hy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>UF,isInJSDoc:()=>N2,isInJSFile:()=>or,isInJSXText:()=>sde,isInJsonFile:()=>KF,isInNonReferenceComment:()=>mde,isInReferenceComment:()=>fde,isInRightSideOfInternalImportEqualsDeclaration:()=>Lz,isInString:()=>b1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>BF,isInTypeQuery:()=>IT,isIncrementalCompilation:()=>aP,isIndexSignatureDeclaration:()=>j0,isIndexedAccessTypeNode:()=>kT,isInferTypeNode:()=>PT,isInfinityOrNaNString:()=>eP,isInitializedProperty:()=>Iw,isInitializedVariable:()=>sk,isInsideJsxElement:()=>Uz,isInsideJsxElementOrAttribute:()=>ade,isInsideNodeModules:()=>_O,isInsideTemplateLiteral:()=>nO,isInstanceOfExpression:()=>h6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>mu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>tR,isInternalName:()=>yH,isIntersectionTypeNode:()=>e1,isIntrinsicJsxName:()=>fR,isIterationStatement:()=>Mv,isJSDoc:()=>Ym,isJSDocAllType:()=>Aae,isJSDocAugmentsTag:()=>l1,isJSDocAuthorTag:()=>lTe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>xae,isJSDocCommentContainingNode:()=>gF,isJSDocConstructSignature:()=>aR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>jk,isJSDocFunctionType:()=>WR,isJSDocImplementsTag:()=>q4,isJSDocIndexSignature:()=>JF,isJSDocLikeText:()=>RH,isJSDocLink:()=>Sae,isJSDocLinkCode:()=>Tae,isJSDocLinkLike:()=>AI,isJSDocLinkPlain:()=>aTe,isJSDocMemberName:()=>yE,isJSDocNameReference:()=>EP,isJSDocNamepathType:()=>sTe,isJSDocNamespaceBody:()=>P0e,isJSDocNode:()=>Vx,isJSDocNonNullableType:()=>U4,isJSDocNullableType:()=>OR,isJSDocOptionalParameter:()=>hk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>FR,isJSDocOverrideTag:()=>K4,isJSDocParameterTag:()=>$m,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>cN,isJSDocPropertyTag:()=>Rae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>J4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>X4,isJSDocSeeTag:()=>cTe,isJSDocSignature:()=>vE,isJSDocTag:()=>jx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>uTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>BR,isJSDocTypeExpression:()=>Z0,isJSDocTypeLiteral:()=>BT,isJSDocTypeTag:()=>SP,isJSDocTypedefTag:()=>GT,isJSDocUnknownTag:()=>dTe,isJSDocUnknownType:()=>Iae,isJSDocVariadicType:()=>H4,isJSXTagName:()=>eR,isJsonEqual:()=>z6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>_F,isJsxAttributeName:()=>koe,isJsxAttributes:()=>Y0,isJsxChild:()=>f2,isJsxClosingElement:()=>q0,isJsxClosingFragment:()=>bae,isJsxElement:()=>ag,isJsxExpression:()=>vP,isJsxFragment:()=>X0,isJsxNamespacedName:()=>Xm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>a1,isJsxOpeningLikeElement:()=>lu,isJsxOpeningLikeElementTagName:()=>$ce,isJsxSelfClosingElement:()=>FT,isJsxSpreadAttribute:()=>s1,isJsxTagNameExpression:()=>mN,isJsxText:()=>KI,isJumpStatementTarget:()=>Yw,isKeyword:()=>Wu,isKeywordOrPunctuation:()=>t6,isKnownSymbol:()=>$2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>J0,isLateVisibilityPaintedStatement:()=>CF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>lSe,isLet:()=>MF,isLineBreak:()=>Ud,isLiteralComputedPropertyDeclarationName:()=>J2,isLiteralExpression:()=>S0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>Wv,isLiteralKind:()=>dN,isLiteralLikeAccess:()=>YF,isLiteralLikeElementAccess:()=>w2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Oz,isLiteralTypeLikeExpression:()=>gTe,isLiteralTypeLiteral:()=>vre,isLiteralTypeNode:()=>qv,isLocalName:()=>Bg,isLogicalOperator:()=>Uie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>ON,isLogicalOrCoalescingBinaryExpression:()=>rk,isLogicalOrCoalescingBinaryOperator:()=>nk,isMappedTypeNode:()=>MR,isMemberName:()=>Jh,isMetaProperty:()=>mP,isMethodDeclaration:()=>Kl,isMethodOrAccessor:()=>SI,isMethodSignature:()=>hh,isMinusToken:()=>QU,isMissingDeclaration:()=>oTe,isMissingPackageJsonInfo:()=>Ese,isModifier:()=>Ta,isModifierKind:()=>Ny,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>Sre,isModuleDeclaration:()=>Yl,isModuleExportsAccessExpression:()=>Qh,isModuleIdentifier:()=>mj,isModuleName:()=>jae,isModuleOrEnumDeclaration:()=>u2,isModuleReference:()=>Rre,isModuleSpecifierLike:()=>Zz,isModuleWithStringLiteralName:()=>DF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>x0e,isNamedDeclaration:()=>au,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>T6,isNamedTupleMember:()=>PR,isNamespaceBody:()=>N0e,isNamespaceExport:()=>vh,isNamespaceExportDeclaration:()=>Vk,isNamespaceImport:()=>$v,isNamespaceReexportDeclaration:()=>pie,isNewExpression:()=>H0,isNewExpressionTarget:()=>ZP,isNoSubstitutionTemplateLiteral:()=>JI,isNode:()=>A0e,isNodeArray:()=>E0,isNodeArrayMultiLine:()=>Zie,isNodeDescendantOf:()=>P0,isNodeKind:()=>r2,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>qW,isNodeWithPossibleHoistedDeclaration:()=>vie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>vTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>Gde,isNonNullAccess:()=>Loe,isNonNullChain:()=>cF,isNonNullExpression:()=>r1,isNonStaticMethodOrAccessorWithPrivateName:()=>tle,isNotEmittedOrPartiallyEmittedNode:()=>C0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ty,isNumericLiteral:()=>mp,isNumericLiteralName:()=>ig,isObjectBindingElementWithoutPropertyName:()=>sO,isObjectBindingOrAssignmentElement:()=>l2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>OF,isObjectTypeDeclaration:()=>OI,isOctalDigit:()=>QW,isOmittedExpression:()=>jc,isOptionalChain:()=>Hd,isOptionalChainRoot:()=>aN,isOptionalDeclaration:()=>nP,isOptionalJSDocPropertyLikeTag:()=>_k,isOptionalTypeNode:()=>F4,isOuterExpression:()=>Z4,isOutermostOptionalChain:()=>sN,isOverrideModifier:()=>dae,isPackageJsonInfo:()=>E3,isPackedArrayLiteral:()=>mU,isParameter:()=>To,isParameterDeclaration:()=>L0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>uN,isParenthesizedExpression:()=>Fu,isParenthesizedTypeNode:()=>MT,isParseTreeNode:()=>oN,isPartOfTypeNode:()=>Yh,isPartOfTypeQuery:()=>HF,isPartiallyEmittedExpression:()=>V4,isPatternMatch:()=>SW,isPinnedComment:()=>xF,isPlainJsFile:()=>h2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>tO,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>Yv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>su,isPrivateIdentifierPropertyAccessExpression:()=>zx,isPrivateIdentifierSymbol:()=>Aie,isProgramBundleEmitBuildInfo:()=>ice,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>sF,isPropertyAccessEntityNameExpression:()=>ik,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>gre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>hre,isPropertyAssignment:()=>hc,isPropertyDeclaration:()=>jo,isPropertyName:()=>oc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Iie,isPrototypeAccess:()=>Bv,isPrototypePropertyAssignment:()=>F2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Au,isQuestionDotToken:()=>O4,isQuestionOrExclamationToken:()=>zae,isQuestionOrPlusOrMinusToken:()=>Vae,isQuestionToken:()=>Kv,isRawSourceMap:()=>$se,isReadonlyKeyword:()=>lae,isReadonlyKeywordOrPlusOrMinusToken:()=>Gae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>nD,isReferencedFile:()=>xE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>Su,isRequireVariableStatement:()=>pj,isRestParameter:()=>qh,isRestTypeNode:()=>z4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>I7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>Kie,isRightSideOfPropertyAccess:()=>cD,isRightSideOfQualifiedName:()=>Zce,isRightSideOfQualifiedNameOrPropertyAccess:()=>FN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Hie,isRootedDiskPath:()=>cp,isSameEntityName:()=>nR,isSatisfiesExpression:()=>nH,isScopeMarker:()=>bre,isSemicolonClassElement:()=>hae,isSetAccessor:()=>Py,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>gN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>r6,isSimpleCopiableExpression:()=>rS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>ale,isSimpleParameterList:()=>xw,isSingleOrDoubleQuote:()=>P2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>gD,isSourceFileJS:()=>cu,isSourceFileNotJS:()=>V0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>Qse,isSpecialPropertyDeclaration:()=>_ie,isSpreadAssignment:()=>Vy,isSpreadElement:()=>qm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>p2,isStatementOrBlock:()=>xre,isStatementWithLocals:()=>Wre,isStatic:()=>na,isStaticModifier:()=>YI,isString:()=>Co,isStringAKeyword:()=>$0e,isStringANonContextualKeyword:()=>PI,isStringAndEmptyAnonymousObjectIntersection:()=>pde,isStringDoubleQuoted:()=>XF,isStringLiteral:()=>Ca,isStringLiteralLike:()=>ss,isStringLiteralOrJsxExpression:()=>Dre,isStringLiteralOrTemplate:()=>Mde,isStringOrNumericLiteralLike:()=>$p,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>hT,isSuperKeyword:()=>pP,isSuperOrSuperProperty:()=>G0e,isSuperProperty:()=>Ou,isSupportedSourceFileName:()=>Soe,isSwitchStatement:()=>gP,isSyntaxList:()=>zR,isSyntheticExpression:()=>$Se,isSyntheticReference:()=>o1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>K0,isTaggedTemplateTag:()=>Xce,isTemplateExpression:()=>B4,isTemplateHead:()=>qI,isTemplateLiteral:()=>TI,isTemplateLiteralKind:()=>Nv,isTemplateLiteralToken:()=>dre,isTemplateLiteralTypeNode:()=>fae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>dF,isTemplateSpan:()=>hP,isTemplateTail:()=>k4,isTextWhiteSpaceLike:()=>yde,isThis:()=>dD,isThisContainerOrFunctionBlock:()=>cie,isThisIdentifier:()=>O0,isThisInTypeQuery:()=>MI,isThisInitializedDeclaration:()=>GF,isThisInitializedObjectBindingExpression:()=>uie,isThisProperty:()=>R2,isThisTypeNode:()=>zk,isThisTypeParameter:()=>tP,isThisTypePredicate:()=>B0e,isThrowStatement:()=>iH,isToken:()=>vI,isTokenKind:()=>xV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>dh,isTrivia:()=>dR,isTryStatement:()=>WT,isTupleTypeNode:()=>ZI,isTypeAlias:()=>G2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>mae,isTypeDeclaration:()=>IR,isTypeElement:()=>dT,isTypeKeyword:()=>nM,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Xz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>LR,isTypeOnlyExportDeclaration:()=>ure,isTypeOnlyImportDeclaration:()=>i2,isTypeOnlyImportOrExportDeclaration:()=>oE,isTypeOperatorNode:()=>LT,isTypeParameterDeclaration:()=>ml,isTypePredicateNode:()=>Wk,isTypeQueryNode:()=>QI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>vF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>S6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>yre,isUnicodeIdentifierStart:()=>YW,isUnionTypeNode:()=>Jv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>Eae,isUnparsedSource:()=>zT,isUnparsedTextLike:()=>cre,isUrl:()=>Nne,isValidBigIntString:()=>B6,isValidESSymbolDeclaration:()=>rie,isValidTypeOnlyAliasUseSite:()=>mE,isValueSignatureDeclaration:()=>bie,isVarAwaitUsing:()=>S2,isVarConst:()=>Xx,isVarUsing:()=>T2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>vN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>C0,isVariableDeclarationInitializedToRequire:()=>qF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>$x,isVariableLikeOrAccessor:()=>tie,isVariableStatement:()=>Ll,isVoidExpression:()=>n1,isWatchSet:()=>uSe,isWhileStatement:()=>ZSe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>gae,isWriteAccess:()=>wI,isWriteOnlyAccess:()=>E6,isYieldExpression:()=>G4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>Qs,length:()=>Nn,libMap:()=>u3,libs:()=>lw,lineBreakPart:()=>_D,linkNamePart:()=>Ade,linkPart:()=>Qq,linkTextPart:()=>n7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Pse,loadWithModeAwareCache:()=>Ow,makeIdentifierFromModuleName:()=>Vre,makeImport:()=>Jy,makeImportIfNecessary:()=>gde,makeStringLiteral:()=>S1,mangleScopedPackageName:()=>$R,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>Xte,mapDefinedIterator:()=>VC,mapEntries:()=>$te,mapIterator:()=>BC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>rb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>une,matchesExclude:()=>d3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>doe,memoize:()=>Eu,memoizeCached:()=>ine,memoizeOne:()=>ah,memoizeWeak:()=>yEe,metadataHelper:()=>s4,min:()=>jG,minAndMax:()=>Aoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>kI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>wre,moduleResolutionNameAndModeGetter:()=>cz,moduleResolutionOptionDeclarations:()=>p3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>FI,moduleResolutionUsesNodeModules:()=>Yz,moduleSpecifiers:()=>nS,moveEmitHelpers:()=>$oe,moveRangeEnd:()=>v6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>R_,moveRangePos:()=>pE,moveSyntheticComments:()=>qoe,mutateMap:()=>jN,mutateMapSkippingNewValues:()=>ng,needsParentheses:()=>i7,needsScopeMarker:()=>fF,newCaseClauseTracker:()=>y7,newPrivateEnvironment:()=>ile,noEmitNotification:()=>Rw,noEmitSubstitution:()=>VP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>q6,nodeCanBeDecorated:()=>jF,nodeHasName:()=>ZL,nodeIsDecorated:()=>Zx,nodeIsMissing:()=>Bl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>qs,nodeModuleNameResolver:()=>Ise,nodeModulesPathPart:()=>Sh,nodeNextJsonConfigResolver:()=>xse,nodeOrChildIsDecorated:()=>C2,nodeOverlapsWithStartEnd:()=>Wz,nodePosToString:()=>L0e,nodeSeenTracker:()=>E1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Mxe,noop:()=>qa,noopFileWatcher:()=>sD,normalizePath:()=>ma,normalizeSlashes:()=>Md,not:()=>AW,notImplemented:()=>Uo,notImplementedResolver:()=>Q3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>jP,objectAllocator:()=>ld,operatorPart:()=>oM,optionDeclarations:()=>sg,optionMapToObject:()=>s3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>KR,optionsHaveChanges:()=>Ux,optionsHaveModuleResolutionChanges:()=>Mre,or:()=>Um,orderedRemoveItem:()=>xx,orderedRemoveItemAt:()=>Tv,outFile:()=>Cs,packageIdToPackageName:()=>TF,packageIdToString:()=>wv,paramHelper:()=>l4,parameterIsThisKeyword:()=>w0,parameterNamePart:()=>bde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Ioe,parseBuildCommand:()=>$Te,parseCommandLine:()=>XTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>M1e,parseConfigHostFromCompilerHostLike:()=>lz,parseCustomTypeOption:()=>a3,parseIsolatedEntityName:()=>d1,parseIsolatedJSDocComment:()=>Yae,parseJSDocTypeExpressionForTests:()=>OTe,parseJsonConfigFileContent:()=>uAe,parseJsonSourceFileConfigFileContent:()=>ow,parseJsonText:()=>tw,parseListTypeOption:()=>Qae,parseNodeFactory:()=>Eh,parseNodeModuleFromPath:()=>_w,parsePackageName:()=>yw,parsePseudoBigInt:()=>YN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Dne,pathContainsNodeModules:()=>AE,pathIsAbsolute:()=>QC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>dne,perfLogger:()=>iu,performIncrementalCompilation:()=>O1e,performance:()=>Sne,plainJSErrors:()=>dz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>l7,positionIsSynthesized:()=>Jm,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>oRe,probablyUsesSemicolons:()=>fO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>hde,programContainsModules:()=>_de,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>E4,propertyNamePart:()=>Ede,pseudoBigIntToString:()=>z0,punctuationPart:()=>Yd,pushIfUnique:()=>yf,quote:()=>lM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>$w,rangeContainsPositionExclusive:()=>Qw,rangeContainsRange:()=>rf,rangeContainsRangeExclusive:()=>tde,rangeContainsStartEnd:()=>Zw,rangeEndIsOnSameLineAsRangeStart:()=>ak,rangeEndPositionsAreOnSameLine:()=>$ie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>RT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>eM,rangeStartIsOnSameLineAsRangeEnd:()=>Qie,rangeStartPositionsAreOnSameLine:()=>b6,readBuilderProgram:()=>Sz,readConfigFile:()=>rw,readHelper:()=>v4,readJson:()=>zN,readJsonConfigFile:()=>tse,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>One,reduceEachTrailingCommentRange:()=>Wne,reduceLeft:()=>ru,reduceLeftIterator:()=>mEe,reducePathComponents:()=>aT,refactor:()=>I1,regExpEscape:()=>ySe,relativeComplement:()=>Qte,removeAllComments:()=>Rk,removeEmitHelper:()=>qSe,removeExtension:()=>pk,removeFileExtension:()=>Tu,removeIgnoredPath:()=>fz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>lde,removePrefix:()=>qC,removeSuffix:()=>Ix,removeTrailingDirectorySeparator:()=>Yb,repeatString:()=>oO,replaceElement:()=>zG,replaceFirstStar:()=>GI,resolutionExtensionIsTSOrJson:()=>JN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>Tse,resolveLibrary:()=>T3,resolveModuleName:()=>XR,resolveModuleNameFromCache:()=>qAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>xv,resolveProjectReferencePath:()=>rD,resolveTripleslashReference:()=>nz,resolveTypeReferenceDirective:()=>vse,resolvingEmptyArray:()=>J6,restHelper:()=>_4,returnFalse:()=>jm,returnNoopFileWatcher:()=>lD,returnTrue:()=>Ay,returnUndefined:()=>qb,returnsPromise:()=>LX,runInitializersHelper:()=>d4,sameFlatMap:()=>qte,sameMap:()=>Mc,sameMapping:()=>wIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>Qre,scanner:()=>$d,screenStartingMessageCodes:()=>Ez,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>l3,server:()=>nwe,servicesVersion:()=>cpe,setCommentRange:()=>ac,setConfigFileInOptions:()=>VH,setConstantValue:()=>Yoe,setEachParent:()=>AR,setEmitFlags:()=>dr,setFunctionNameHelper:()=>S4,setGetSourceFileAsHashVersioned:()=>bz,setIdentifierAutoGenerate:()=>Nk,setIdentifierGeneratedImportReference:()=>eae,setIdentifierTypeArguments:()=>By,setInternalEmitFlags:()=>Dk,setLocalizedDiagnosticMessages:()=>coe,setModuleDefaultHelper:()=>I4,setNodeFlags:()=>Doe,setObjectAllocator:()=>loe,setOriginalNode:()=>Rr,setParent:()=>ja,setParentRecursive:()=>Vv,setPrivateIdentifier:()=>HT,setSnippetElement:()=>UU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>zEe,setStartsOnNewLine:()=>r4,setSyntheticLeadingComments:()=>hE,setSyntheticTrailingComments:()=>jI,setSys:()=>UEe,setSysLog:()=>xne,setTextRange:()=>at,setTextRangeEnd:()=>TR,setTextRangePos:()=>$N,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>QN,setTokenSourceMapRange:()=>Joe,setTypeNode:()=>Qoe,setUILocale:()=>sne,setValueDeclaration:()=>z2,shouldAllowImportingTsExtension:()=>QR,shouldPreserveConstEnums:()=>V0,shouldUseUriStyleNodeCoreModules:()=>h7,showModuleSpecifier:()=>roe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>Xd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>mI,singleIterator:()=>Yte,singleOrMany:()=>ih,singleOrUndefined:()=>rh,skipAlias:()=>bd,skipAssertions:()=>mTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Ql,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Pa,skipTypeChecking:()=>XN,skipTypeParentheses:()=>K2,skipWhile:()=>fne,sliceAfter:()=>dU,some:()=>gt,sort:()=>tT,sortAndDeduplicate:()=>UC,sortAndDeduplicateDiagnostics:()=>wx,sourceFileAffectingCompilerOptions:()=>f3,sourceFileMayBeEmitted:()=>TT,sourceMapCommentRegExp:()=>O3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>wl,spanMap:()=>MG,spreadArrayHelper:()=>b4,stableSort:()=>Ey,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Fz,startOnNewLine:()=>qd,startTracing:()=>Tne,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>Lae,stringContainsAt:()=>Bde,stringToToken:()=>v0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>Ek,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>RR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>xR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>Sk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>Cde,symbolEscapedNameNoDefault:()=>Qz,symbolName:()=>vl,symbolNameNoDefault:()=>$z,symbolPart:()=>vde,symbolToDisplayParts:()=>aM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>s7,sys:()=>gd,sysLog:()=>OL,tagNamesAreEquivalent:()=>EE,takeWhile:()=>xW,targetOptionDeclaration:()=>dw,templateObjectHelper:()=>y4,testFormatSettings:()=>qce,textChangeRangeIsUnchanged:()=>Une,textChangeRangeNewSpan:()=>iN,textChanges:()=>fr,textOrKeywordPart:()=>$q,textPart:()=>af,textRangeContainsPositionInclusive:()=>YL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Bne,textSpanEnd:()=>Xl,textSpanIntersection:()=>jne,textSpanIntersectsWith:()=>tF,textSpanIntersectsWithPosition:()=>Vne,textSpanIntersectsWithTextSpan:()=>u0e,textSpanIsEmpty:()=>zne,textSpanOverlap:()=>Gne,textSpanOverlapsWith:()=>d0e,textSpansEqual:()=>mD,textToKeywordObj:()=>qL,timestamp:()=>Js,toArray:()=>pI,toBuilderFileEmit:()=>sce,toBuilderStateFileInfoForMultiEmit:()=>ace,toEditorSettings:()=>MO,toFileNameLowerCase:()=>oh,toLowerCase:()=>rne,toPath:()=>nl,toProgramEmitPending:()=>lce,tokenIsIdentifierOrKeyword:()=>ou,tokenIsIdentifierOrKeywordOrGreaterThan:()=>kne,tokenToString:()=>da,trace:()=>yo,tracing:()=>ir,tracingEnabled:()=>ML,transform:()=>rCe,transformClassFields:()=>_le,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Nle,transformES2016:()=>Cle,transformES2017:()=>vle,transformES2018:()=>ble,transformES2019:()=>Ele,transformES2020:()=>Sle,transformES2021:()=>Tle,transformES5:()=>Ple,transformESDecorators:()=>yle,transformESNext:()=>Ale,transformGenerators:()=>Mle,transformJsx:()=>Dle,transformLegacyDecorators:()=>gle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>kle,transformNodes:()=>Dw,transformSystemModule:()=>Lle,transformTypeScript:()=>mle,transpile:()=>fRe,transpileModule:()=>oue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Jb,tryAndIgnoreErrors:()=>u7,tryCast:()=>ri,tryDirectoryExists:()=>d7,tryExtractTSExtension:()=>g6,tryFileExists:()=>mO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>c7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>B2,tryGetJSDocSatisfiesTypeNode:()=>U6,tryGetModuleNameFromFile:()=>qk,tryGetModuleSpecifierFromDeclaration:()=>rR,tryGetNativePerformanceHooks:()=>vne,tryGetPropertyAccessOrIdentifierToString:()=>ok,tryGetPropertyNameOfBindingOrAssignmentElement:()=>t3,tryGetSourceMappingURL:()=>Yse,tryGetTextOfPropertyName:()=>yN,tryIOAndConsumeErrors:()=>p7,tryParseJson:()=>y6,tryParsePattern:()=>SR,tryParsePatterns:()=>W6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>RP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>Toe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>cne,typeAcquisitionDeclarations:()=>uw,typeAliasNamePart:()=>Sde,typeDirectiveIsEqualTo:()=>Ore,typeKeywords:()=>v7,typeParameterNamePart:()=>Tde,typeToDisplayParts:()=>cO,unchangedPollThresholds:()=>WL,unchangedTextChangeRange:()=>m2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>bw,unorderedRemoveItem:()=>fI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>poe,unusedLabelIsError:()=>foe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>c3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>JR,updateSharedExtendedConfigFileWatcher:()=>ez,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Pw,usesExtensionsOnImports:()=>boe,usingSingleLineStringWriter:()=>_N,utf16EncodeAsString:()=>kx,validateLocaleAndSetLanguage:()=>f0e,valuesHelper:()=>T4,version:()=>Jp,versionMajorMinor:()=>g_,visitArray:()=>Tw,visitCommaListElements:()=>Aw,visitEachChild:()=>Sn,visitFunctionBody:()=>nf,visitIterationBody:()=>Iu,visitLexicalEnvironment:()=>TK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Ox,walkUpLexicalEnvironments:()=>rle,walkUpOuterExpressions:()=>kae,walkUpParenthesizedExpressions:()=>Ly,walkUpParenthesizedTypes:()=>H2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Eie,whitespaceOrMapCommentRegExp:()=>W3,writeCommentRange:()=>hR,writeFile:()=>MN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var ab=bt({"src/server/_namespaces/ts.ts"(){"use strict";Zo(),Hw(),ai(),LQ(),aA()}}),iwe={};Ra(iwe,{ActionInvalidate:()=>jw,ActionPackageInstalled:()=>Uw,ActionSet:()=>Vw,ActionWatchTypingLocations:()=>QP,Arguments:()=>$J,AutoImportProviderProject:()=>JQ,AuxiliaryProject:()=>HQ,CharRangeSection:()=>aZ,CloseFileWatcherEvent:()=>GB,CommandNames:()=>Ohe,ConfigFileDiagEvent:()=>OB,ConfiguredProject:()=>qQ,CreateDirectoryWatcherEvent:()=>BB,CreateFileWatcherEvent:()=>zB,Errors:()=>Qy,EventBeginInstallTypes:()=>Dz,EventEndInstallTypes:()=>Cz,EventInitializationFailed:()=>YJ,EventTypesRegistry:()=>Rz,ExternalProject:()=>CB,GcTimer:()=>FQ,InferredProject:()=>UQ,LargeFileReferencedEvent:()=>wB,LineIndex:()=>xM,LineLeaf:()=>u8,LineNode:()=>O1,LogLevel:()=>kQ,Msg:()=>wQ,OpenFileInfoTelemetryEvent:()=>QQ,Project:()=>oA,ProjectInfoTelemetryEvent:()=>FB,ProjectKind:()=>AM,ProjectLanguageServiceStateEvent:()=>WB,ProjectLoadingFinishEvent:()=>kB,ProjectLoadingStartEvent:()=>LB,ProjectReferenceProjectLoadKind:()=>tZ,ProjectService:()=>nZ,ProjectsUpdatedInBackgroundEvent:()=>l8,ScriptInfo:()=>GQ,ScriptVersionCache:()=>HB,Session:()=>Fhe,TextStorage:()=>BQ,ThrottledOperations:()=>WQ,TypingsCache:()=>VQ,TypingsInstallerAdapter:()=>Ghe,allFilesAreJsOrDts:()=>mhe,allRootFilesAreJsOrDts:()=>fhe,asNormalizedPath:()=>Pke,convertCompilerOptions:()=>NB,convertFormatOptions:()=>wD,convertScriptKindName:()=>YQ,convertTypeAcquisition:()=>ghe,convertUserPreferences:()=>yhe,convertWatchOptions:()=>s8,countEachFileTypes:()=>o8,createInstallTypingsRequest:()=>K_e,createModuleSpecifierCache:()=>Dhe,createNormalizedPathMap:()=>Mke,createPackageJsonCache:()=>Che,createSortedArray:()=>$_e,emptyArray:()=>gc,findArgument:()=>vxe,forEachResolvedProjectReferenceProject:()=>OD,formatDiagnosticToProtocol:()=>d8,formatMessage:()=>Nhe,getBaseConfigFileName:()=>OQ,getLocationInNewDocument:()=>khe,hasArgument:()=>yxe,hasNoTypeScriptSource:()=>_he,indent:()=>$P,isBackgroundProject:()=>a8,isConfigFile:()=>Ahe,isConfiguredProject:()=>LE,isDynamicFileName:()=>i8,isExternalProject:()=>jQ,isInferredProject:()=>kD,isInferredProjectName:()=>J_e,makeAutoImportProviderProjectName:()=>X_e,makeAuxiliaryProjectName:()=>Y_e,makeInferredProjectName:()=>q_e,maxFileSize:()=>MB,maxProgramSizeForNonTsFiles:()=>PB,normalizedPathToPath:()=>r8,nowString:()=>bxe,nullCancellationToken:()=>whe,nullTypingsInstaller:()=>DB,projectContainsInfoDirectly:()=>k1,protocol:()=>phe,removeSorted:()=>Lke,stringifyIndented:()=>RE,toEvent:()=>Phe,toNormalizedPath:()=>ul,tryConvertScriptKindName:()=>XQ,typingsInstaller:()=>U_e,updateProjectIfDirty:()=>zp});var Oot=bt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";Nz(),aA()}}),owe={};Ra(owe,{ANONYMOUS:()=>b7,AccessFlags:()=>I9,AssertionLevel:()=>YG,AssignmentDeclarationKind:()=>k9,AssignmentKind:()=>SU,Associativity:()=>AU,BreakpointResolver:()=>TY,BuilderFileEmit:()=>RJ,BuilderProgramKind:()=>DJ,BuilderState:()=>xm,BundleFileSectionKind:()=>Q9,CallHierarchy:()=>x1,CharacterCodes:()=>H9,CheckFlags:()=>b9,CheckMode:()=>L3,ClassificationType:()=>hq,ClassificationTypeNames:()=>_q,CommentDirectiveType:()=>o9,Comparison:()=>xG,CompletionInfoFlags:()=>lq,CompletionTriggerKind:()=>rq,Completions:()=>P1,ContainerFlags:()=>hK,ContextFlags:()=>u9,Debug:()=>R,DiagnosticCategory:()=>kL,Diagnostics:()=>f,DocumentHighlights:()=>T7,ElementFlags:()=>A9,EmitFlags:()=>jW,EmitHint:()=>X9,EmitOnly:()=>s9,EndOfLineState:()=>uq,EnumKind:()=>v9,ExitStatus:()=>l9,ExportKind:()=>AX,Extension:()=>K9,ExternalEmitHelpers:()=>q9,FileIncludeKind:()=>kW,FilePreprocessingDiagnosticsKind:()=>a9,FileSystemEntryKind:()=>iV,FileWatcherEventKind:()=>rV,FindAllReferences:()=>ws,FlattenLevel:()=>kK,FlowFlags:()=>LL,ForegroundColorEscapeSequences:()=>vJ,FunctionFlags:()=>TU,GeneratedIdentifierFlags:()=>LW,GetLiteralTextFlags:()=>vU,GoToDefinition:()=>CD,HighlightSpanKind:()=>oq,IdentifierNameMap:()=>_1,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:()=>ME,JsTyping:()=>O_,JsxEmit:()=>z9,JsxFlags:()=>r9,JsxReferenceKind:()=>R9,LanguageServiceMode:()=>eq,LanguageVariant:()=>j9,LexicalEnvironmentFlags:()=>$9,ListFormat:()=>Z9,LogLevel:()=>QG,MemberOverrideStatus:()=>c9,ModifierFlags:()=>PW,ModuleDetectionKind:()=>w9,ModuleInstanceState:()=>_K,ModuleKind:()=>YC,ModuleResolutionKind:()=>Px,ModuleSpecifierEnding:()=>LU,NavigateTo:()=>lue,NavigationBar:()=>yue,NewLineKind:()=>G9,NodeBuilderFlags:()=>p9,NodeCheckFlags:()=>S9,NodeFactoryFlags:()=>GU,NodeFlags:()=>NW,NodeResolutionFeatures:()=>pK,ObjectFlags:()=>FW,OperationCanceledException:()=>Nx,OperatorPrecedence:()=>IU,OrganizeImports:()=>Rm,OrganizeImportsMode:()=>nq,OuterExpressionKinds:()=>Y9,OutliningElementsCollector:()=>vQ,OutliningSpanKind:()=>cq,OutputFileType:()=>dq,PackageJsonAutoImportPreference:()=>ZJ,PackageJsonDependencyGroup:()=>QJ,PatternMatchKind:()=>A7,PollingInterval:()=>UW,PollingWatchKind:()=>F9,PragmaKindFlags:()=>eV,PrivateIdentifierKind:()=>qU,ProcessLevel:()=>FK,ProgramUpdateLevel:()=>eJ,QuotePreference:()=>gX,RelationComparisonResult:()=>MW,Rename:()=>EB,ScriptElementKind:()=>fq,ScriptElementKindModifier:()=>mq,ScriptKind:()=>BW,ScriptSnapshot:()=>Mz,ScriptTarget:()=>V9,SemanticClassificationFormat:()=>tq,SemanticMeaning:()=>hX,SemicolonPreference:()=>sq,SignatureCheckMode:()=>k3,SignatureFlags:()=>zW,SignatureHelp:()=>XO,SignatureKind:()=>D9,SmartSelectionRange:()=>SQ,SnippetKind:()=>VW,SortKind:()=>XG,StructureIsReused:()=>wW,SymbolAccessibility:()=>_9,SymbolDisplay:()=>$y,SymbolDisplayPartKind:()=>Kw,SymbolFlags:()=>OW,SymbolFormatFlags:()=>m9,SyntaxKind:()=>CW,SyntheticSymbolKind:()=>h9,Ternary:()=>L9,ThrottledCancellationToken:()=>SY,TokenClass:()=>pq,TokenFlags:()=>i9,TransformFlags:()=>GW,TypeFacts:()=>M3,TypeFlags:()=>WW,TypeFormatFlags:()=>f9,TypeMapKind:()=>N9,TypePredicateKind:()=>g9,TypeReferenceSerializationKind:()=>y9,UnionReduction:()=>d9,UpToDateStatusType:()=>HJ,VarianceFlags:()=>T9,Version:()=>fm,VersionRange:()=>NL,WatchDirectoryFlags:()=>U9,WatchDirectoryKind:()=>W9,WatchFileKind:()=>O9,WatchLogLevel:()=>tJ,WatchType:()=>wc,accessPrivateIdentifier:()=>ole,addDisposableResourceHelper:()=>P4,addEmitFlags:()=>D_,addEmitHelper:()=>UI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>VI,addNodeFactoryPatcher:()=>GSe,addObjectAllocatorPatcher:()=>soe,addRange:()=>Ur,addRelatedInfo:()=>Ma,addSyntheticLeadingComment:()=>cP,addSyntheticTrailingComment:()=>i4,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>Lk,affectsDeclarationPathOptionDeclarations:()=>qH,affectsEmitOptionDeclarations:()=>JH,allKeysStartWithDot:()=>I3,altDirectorySeparator:()=>VL,and:()=>TW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Vm,arrayIsHomogeneous:()=>Roe,arrayIsSorted:()=>_W,arrayOf:()=>ene,arrayReverseIterator:()=>wG,arrayToMap:()=>g0,arrayToMultiMap:()=>RL,arrayToNumericMap:()=>nne,arraysEqual:()=>AL,assertType:()=>EEe,assign:()=>Tx,assignHelper:()=>u4,asyncDelegator:()=>f4,asyncGeneratorHelper:()=>p4,asyncSuperHelper:()=>Mk,asyncValues:()=>m4,attachFileToDiagnostics:()=>WI,awaitHelper:()=>HI,awaiterHelper:()=>h4,base64decode:()=>Yie,base64encode:()=>Xie,binarySearch:()=>Sy,binarySearchKey:()=>dI,bindSourceFile:()=>kse,breakIntoCharacterSpans:()=>tue,breakIntoWordSpans:()=>nue,buildLinkParts:()=>Ide,buildOpts:()=>m3,buildOverload:()=>Ike,bundlerModuleNameResolver:()=>Ase,canBeConvertedToAsync:()=>wX,canHaveDecorators:()=>jT,canHaveExportModifier:()=>mk,canHaveFlowNode:()=>V2,canHaveIllegalDecorators:()=>TH,canHaveIllegalModifiers:()=>Fae,canHaveIllegalType:()=>hTe,canHaveIllegalTypeParameters:()=>Wae,canHaveJSDoc:()=>j2,canHaveLocals:()=>ch,canHaveModifiers:()=>Am,canHaveSymbol:()=>b_,canJsonReportNoInputFiles:()=>DP,canProduceDiagnostics:()=>J3,canUsePropertyAccess:()=>_U,canWatchAffectingLocation:()=>pce,canWatchAtTypes:()=>uce,canWatchDirectoryOrFile:()=>mz,cartesianProduct:()=>pne,cast:()=>ta,chainBundle:()=>Im,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>BL,changeCompilerHostLikeToUseCache:()=>kw,changeExtension:()=>fE,changeFullExtension:()=>Pne,changesAffectModuleResolution:()=>bF,changesAffectingProgramStructure:()=>Lre,childIsDecorated:()=>EN,classElementOrClassElementParameterIsDecorated:()=>lj,classHasClassThisAssignment:()=>wK,classHasDeclaredOrExplicitlyAssignedName:()=>OK,classHasExplicitlyAssignedName:()=>U3,classOrConstructorParameterIsDecorated:()=>My,classPrivateFieldGetHelper:()=>D4,classPrivateFieldInHelper:()=>N4,classPrivateFieldSetHelper:()=>C4,classicNameResolver:()=>Nse,classifier:()=>fpe,cleanExtendedConfigCache:()=>tz,clear:()=>jh,clearMap:()=>$u,clearSharedExtendedConfigFileWatcher:()=>$K,climbPastPropertyAccess:()=>kz,climbPastPropertyOrElementAccess:()=>Qce,clone:()=>BG,cloneCompilerOptions:()=>wq,closeFileWatcher:()=>Km,closeFileWatcherOf:()=>Rf,codefix:()=>Wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Hne,collectExternalModuleInfo:()=>CK,combine:()=>Sx,combinePaths:()=>Yr,commentPragmas:()=>wL,commonOptionsWithBuild:()=>cw,commonPackageFolders:()=>DU,compact:()=>xL,compareBooleans:()=>Sv,compareDataObjects:()=>Qj,compareDiagnostics:()=>UN,compareDiagnosticsSkipRelatedInformation:()=>I6,compareEmitHelpers:()=>rae,compareNumberOfDirectorySeparators:()=>uk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>qEe,comparePathsCaseSensitive:()=>JEe,comparePatternKeys:()=>dK,compareProperties:()=>lne,compareStringsCaseInsensitive:()=>EW,compareStringsCaseInsensitiveEslintCompatible:()=>one,compareStringsCaseSensitive:()=>jd,compareStringsCaseSensitiveUI:()=>CL,compareTextSpans:()=>bW,compareValues:()=>el,compileOnSaveCommandLineOption:()=>sw,compilerOptionsAffectDeclarationPath:()=>goe,compilerOptionsAffectEmit:()=>hoe,compilerOptionsAffectSemanticDiagnostics:()=>_oe,compilerOptionsDidYouMeanDiagnostics:()=>pw,compilerOptionsIndicateEsModules:()=>Gq,compose:()=>vEe,computeCommonSourceDirectoryOfFilenames:()=>Ule,computeLineAndCharacterOfPosition:()=>Lx,computeLineOfPosition:()=>eN,computeLineStarts:()=>yI,computePositionOfLineAndCharacter:()=>$W,computeSignature:()=>XT,computeSignatureWithDiagnostics:()=>TJ,computeSuggestionDiagnostics:()=>MX,computedOptions:()=>_c,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>uoe,consumesNodeCoreModules:()=>f7,contains:()=>zo,containsIgnoredPath:()=>ZN,containsObjectRestOrSpread:()=>Qk,containsParseError:()=>Hx,containsPath:()=>mm,convertCompilerOptionsForTelemetry:()=>sse,convertCompilerOptionsFromJson:()=>vAe,convertJsonOption:()=>UT,convertToBase64:()=>qie,convertToJson:()=>iw,convertToObject:()=>nse,convertToOptionsWithAbsolutePaths:()=>GH,convertToRelativePath:()=>ZC,convertToTSConfig:()=>oAe,convertTypeAcquisitionFromJson:()=>bAe,copyComments:()=>ZT,copyEntries:()=>EF,copyLeadingComments:()=>hD,copyProperties:()=>GG,copyTrailingAsLeadingComments:()=>pO,copyTrailingComments:()=>sM,couldStartTrivia:()=>wne,countWhere:()=>bv,createAbstractBuilder:()=>x1e,createAccessorPropertyBackingField:()=>IH,createAccessorPropertyGetRedirector:()=>Kae,createAccessorPropertySetRedirector:()=>Jae,createBaseNodeFactory:()=>Goe,createBinaryExpressionTrampoline:()=>n3,createBindingHelper:()=>CR,createBuildInfo:()=>Cw,createBuilderProgram:()=>AJ,createBuilderProgramUsingProgramBuildInfo:()=>cce,createBuilderStatusReporter:()=>xce,createCacheWithRedirects:()=>nK,createCacheableExportInfoMap:()=>bX,createCachedDirectoryStructureHost:()=>Z3,createClassNamedEvaluationHelperBlock:()=>ule,createClassThisAssignmentBlock:()=>cle,createClassifier:()=>jxe,createCommentDirectivesMap:()=>zre,createCompilerDiagnostic:()=>Hl,createCompilerDiagnosticForInvalidCustomType:()=>$ae,createCompilerDiagnosticFromMessageChain:()=>A6,createCompilerHost:()=>Hle,createCompilerHostFromProgramHost:()=>GJ,createCompilerHostWorker:()=>iJ,createDetachedDiagnostic:()=>ER,createDiagnosticCollection:()=>pR,createDiagnosticForFileFromMessageChain:()=>rj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>qx,createDiagnosticForNodeArrayFromMessageChain:()=>E2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Kf,createDiagnosticForRange:()=>$re,createDiagnosticMessageChainFromDiagnostic:()=>Yre,createDiagnosticReporter:()=>zw,createDocumentPositionMapper:()=>Zse,createDocumentRegistry:()=>Ude,createDocumentRegistryInternal:()=>RX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>CJ,createEmitHelperFactory:()=>nae,createEmptyExports:()=>Uk,createExpressionForJsxElement:()=>Nae,createExpressionForJsxFragment:()=>Pae,createExpressionForObjectLiteralElementLike:()=>Mae,createExpressionForPropertyName:()=>gH,createExpressionFromEntityName:()=>Hk,createExternalHelpersImportDeclarationIfNeeded:()=>bH,createFileDiagnostic:()=>Zc,createFileDiagnosticFromMessageChain:()=>NF,createForOfBindingStatement:()=>hH,createGetCanonicalFileName:()=>Pd,createGetSourceFile:()=>nJ,createGetSymbolAccessibilityDiagnosticForNode:()=>jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>wle,createGetSymbolWalker:()=>wse,createIncrementalCompilerHost:()=>jJ,createIncrementalProgram:()=>Ace,createInputFiles:()=>jSe,createInputFilesWithFilePaths:()=>zU,createInputFilesWithFileTexts:()=>BU,createJsxFactoryExpression:()=>_H,createLanguageService:()=>spe,createLanguageServiceSourceFile:()=>q7,createMemberAccessForPropertyName:()=>VT,createModeAwareCache:()=>f1,createModeAwareCacheKey:()=>LP,createModuleNotFoundChain:()=>SF,createModuleResolutionCache:()=>qR,createModuleResolutionLoader:()=>dJ,createModuleResolutionLoaderUsingGlobalCache:()=>hce,createModuleSpecifierResolutionHost:()=>QT,createMultiMap:()=>qp,createNodeConverters:()=>joe,createNodeFactory:()=>Ak,createOptionNameMap:()=>o3,createOverload:()=>MQ,createPackageJsonImportFilter:()=>dM,createPackageJsonInfo:()=>lX,createParenthesizerRules:()=>Voe,createPatternMatcher:()=>Xde,createPrependNodes:()=>gJ,createPrinter:()=>IE,createPrinterWithDefaults:()=>XK,createPrinterWithRemoveComments:()=>oS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>YK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Nw,createProgram:()=>az,createProgramHost:()=>VJ,createPropertyNameNodeForIdentifierOrLiteral:()=>V6,createQueue:()=>DL,createRange:()=>Ef,createRedirectedBuilderProgram:()=>xJ,createResolutionCache:()=>PJ,createRuntimeTypeSerializer:()=>hle,createScanner:()=>Dy,createSemanticDiagnosticsBuilderProgram:()=>I1e,createSet:()=>VG,createSolutionBuilder:()=>V1e,createSolutionBuilderHost:()=>B1e,createSolutionBuilderWithWatch:()=>j1e,createSolutionBuilderWithWatchHost:()=>G1e,createSortedArray:()=>kG,createSourceFile:()=>ew,createSourceMapGenerator:()=>Xse,createSourceMapSource:()=>USe,createSuperAccessVariableStatement:()=>K3,createSymbolTable:()=>oa,createSymlinkCache:()=>oU,createSystemWatchFunctions:()=>Rne,createTextChange:()=>rO,createTextChangeFromStartLength:()=>qz,createTextChangeRange:()=>QL,createTextRangeFromNode:()=>Fq,createTextRangeFromSpan:()=>Jz,createTextSpan:()=>yd,createTextSpanFromBounds:()=>pc,createTextSpanFromNode:()=>Ru,createTextSpanFromRange:()=>nb,createTextSpanFromStringLiteralLikeContent:()=>Wq,createTextWriter:()=>tk,createTokenRange:()=>Xj,createTypeChecker:()=>jse,createTypeReferenceDirectiveResolutionCache:()=>S3,createTypeReferenceResolutionLoader:()=>rz,createUnparsedSourceFile:()=>FU,createWatchCompilerHost:()=>W1e,createWatchCompilerHostOfConfigFile:()=>Ece,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sce,createWatchFactory:()=>BJ,createWatchHost:()=>zJ,createWatchProgram:()=>F1e,createWatchStatusReporter:()=>gce,createWriteFileMeasuringIO:()=>rJ,declarationNameToString:()=>xs,decodeMappings:()=>xK,decodedTextSpanIntersectsWith:()=>$L,decorateHelper:()=>a4,deduplicate:()=>h0,defaultIncludeSpec:()=>g3,defaultInitCompilerOptions:()=>_3,defaultMaximumTruncationLength:()=>yk,detectSortCaseSensitivity:()=>HC,diagnosticCategoryName:()=>oT,diagnosticToString:()=>tA,directoryProbablyExists:()=>Hm,directorySeparator:()=>rl,displayPart:()=>ep,displayPartsToString:()=>LO,disposeEmitNodes:()=>VU,disposeResourcesHelper:()=>M4,documentSpansEqual:()=>Kq,dumpTracingLegend:()=>Ane,elementAt:()=>xy,elideNodes:()=>Hae,emitComments:()=>Wie,emitDetachedComments:()=>Fie,emitFiles:()=>Y3,emitFilesAndReportErrors:()=>yz,emitFilesAndReportErrorsAndGetExitStatus:()=>bce,emitModuleKindIsNonNodeESM:()=>x6,emitNewLineBeforeLeadingCommentOfPosition:()=>Oie,emitNewLineBeforeLeadingComments:()=>kie,emitNewLineBeforeLeadingCommentsOfPosition:()=>wie,emitSkippedWithNoDiagnostics:()=>uz,emitUsingBuildInfo:()=>Ble,emptyArray:()=>Xe,emptyFileSystemEntries:()=>e4,emptyMap:()=>RW,emptyOptions:()=>Cf,emptySet:()=>mne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>y0,ensureScriptKind:()=>w6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>up,enumerateInsertsAndDeletes:()=>IW,equalOwnProperties:()=>tne,equateStringsCaseInsensitive:()=>Xb,equateStringsCaseSensitive:()=>nT,equateValues:()=>Iy,esDecorateHelper:()=>c4,escapeJsxAttributeString:()=>wj,escapeLeadingUnderscores:()=>fl,escapeNonAsciiString:()=>ek,escapeSnippetText:()=>G0,escapeString:()=>eg,escapeTemplateSubstitution:()=>Lj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>Y4,explainFiles:()=>kJ,explainIfFileIsRedirectAndImpliedFormat:()=>wJ,exportAssignmentIsAlias:()=>lR,exportStarHelper:()=>R4,expressionResultIsUnused:()=>Coe,extend:()=>vW,extendsHelper:()=>g4,extensionFromPath:()=>qN,extensionIsTS:()=>F6,extensionsNotSupportingExtensionlessResolution:()=>Tk,externalHelpersModuleNameText:()=>jv,factory:()=>L,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Sc,fileIncludeReasonToDiagnostics:()=>FJ,fileShouldUseJavaScriptRequire:()=>_X,filter:()=>Vr,filterMutate:()=>CG,filterSemanticDiagnostics:()=>sz,find:()=>Gr,findAncestor:()=>Fn,findBestPatternMatch:()=>KG,findChildOfKind:()=>gs,findComputedPropertyNameCacheAssignment:()=>r3,findConfigFile:()=>jle,findContainingList:()=>zz,findDiagnosticForNode:()=>Ode,findFirstNonJsxWhitespaceToken:()=>rde,findIndex:()=>ql,findLast:()=>cI,findLastIndex:()=>mW,findListItemInfo:()=>nde,findMap:()=>_Ee,findModifier:()=>fD,findNextToken:()=>lS,findPackageJson:()=>kde,findPackageJsons:()=>sX,findPrecedingMatchingToken:()=>Hz,findPrecedingToken:()=>Ic,findSuperStatementIndexPath:()=>G3,findTokenOnLeftOfPosition:()=>Vz,findUseStrictPrologue:()=>vH,first:()=>Va,firstDefined:()=>zl,firstDefinedIterator:()=>TL,firstIterator:()=>WG,firstOrOnly:()=>pX,firstOrUndefined:()=>Yc,firstOrUndefinedIterator:()=>hW,fixupCompilerOptions:()=>WX,flatMap:()=>va,flatMapIterator:()=>NG,flatMapToMutable:()=>GC,flatten:()=>pm,flattenCommaList:()=>qae,flattenDestructuringAssignment:()=>KT,flattenDestructuringBinding:()=>iS,flattenDiagnosticMessageText:()=>k_,forEach:()=>gn,forEachAncestor:()=>kre,forEachAncestorDirectory:()=>hm,forEachChild:()=>Bo,forEachChildRecursively:()=>xP,forEachEmittedFile:()=>HK,forEachEnclosingBlockScopeContainer:()=>Jre,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>SX,forEachImportClauseDeclaration:()=>ZF,forEachKey:()=>uh,forEachLeadingCommentRange:()=>KL,forEachNameInAccessChainWalkingLeft:()=>ooe,forEachPropertyAssignment:()=>Qx,forEachResolvedProjectReference:()=>pJ,forEachReturnStatement:()=>R0,forEachRight:()=>Kte,forEachTrailingCommentRange:()=>JL,forEachTsConfigPropArray:()=>I2,forEachUnique:()=>qq,forEachYieldExpression:()=>Zre,forSomeAncestorDirectory:()=>pSe,formatColorAndReset:()=>aS,formatDiagnostic:()=>oJ,formatDiagnostics:()=>a1e,formatDiagnosticsWithColorAndContext:()=>Kle,formatGeneratedName:()=>bE,formatGeneratedNamePart:()=>jR,formatLocation:()=>aJ,formatMessage:()=>nU,formatStringFromArgs:()=>rg,formatting:()=>Oc,fullTripleSlashAMDReferencePathRegEx:()=>EU,fullTripleSlashReferencePathRegEx:()=>bU,generateDjb2Hash:()=>$C,generateTSConfig:()=>dAe,generatorHelper:()=>A4,getAdjustedReferenceLocation:()=>Cq,getAdjustedRenameLocation:()=>Gz,getAliasDeclarationFromName:()=>Sj,getAllAccessorDeclarations:()=>xT,getAllDecoratorsOfClass:()=>PK,getAllDecoratorsOfClassElement:()=>j3,getAllJSDocTags:()=>oF,getAllJSDocTagsOfKind:()=>T0e,getAllKeys:()=>gEe,getAllProjectOutputs:()=>X3,getAllSuperTypeNodes:()=>xN,getAllUnscopedEmitHelpers:()=>JU,getAllowJSCompilerOption:()=>Uv,getAllowSyntheticDefaultImports:()=>CT,getAncestor:()=>uE,getAnyExtensionFromPath:()=>Mx,getAreDeclarationMapsEnabled:()=>bk,getAssignedExpandoInitializer:()=>xI,getAssignedName:()=>rF,getAssignedNameOfIdentifier:()=>BP,getAssignmentDeclarationKind:()=>Gl,getAssignmentDeclarationPropertyAccessKind:()=>W2,getAssignmentTargetKind:()=>NI,getAutomaticTypeDirectiveNames:()=>b3,getBaseFileName:()=>ic,getBinaryOperatorPrecedence:()=>Z2,getBuildInfo:()=>$3,getBuildInfoFileVersionMap:()=>IJ,getBuildInfoText:()=>zle,getBuildOrderFromAnyBuildOrder:()=>Tz,getBuilderCreationParameters:()=>pz,getBuilderFileEmit:()=>tb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>M0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>yR,getCombinedModifierFlags:()=>eE,getCombinedNodeFlags:()=>Cy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>hV,getCommentRange:()=>C_,getCommonSourceDirectory:()=>JP,getCommonSourceDirectoryOfConfig:()=>eD,getCompilerOptionValue:()=>D6,getCompilerOptionsDiffValue:()=>lAe,getConditions:()=>Zv,getConfigFileParsingDiagnostics:()=>qT,getConstantValue:()=>Xoe,getContainerFlags:()=>mK,getContainerNode:()=>$T,getContainingClass:()=>sd,getContainingClassExcludingClassDecorators:()=>zF,getContainingClassStaticBlock:()=>lie,getContainingFunction:()=>Wp,getContainingFunctionDeclaration:()=>sie,getContainingFunctionOrClassStaticBlock:()=>FF,getContainingNodeArray:()=>Noe,getContainingObjectLiteralElement:()=>kO,getContextualTypeFromParent:()=>o7,getContextualTypeFromParentOrAncestorTypeNode:()=>Bz,getCurrentTime:()=>Gw,getDeclarationDiagnostics:()=>Ole,getDeclarationEmitExtensionForPath:()=>l6,getDeclarationEmitOutputFilePath:()=>Cie,getDeclarationEmitOutputFilePathWorker:()=>s6,getDeclarationFileExtension:()=>CH,getDeclarationFromName:()=>IN,getDeclarationModifierFlagsFromSymbol:()=>Tf,getDeclarationOfKind:()=>dl,getDeclarationsOfKind:()=>Pre,getDeclaredExpandoInitializer:()=>L2,getDecorators:()=>Dv,getDefaultCompilerOptions:()=>J7,getDefaultExportInfoWorker:()=>S7,getDefaultFormatCodeSettings:()=>Pz,getDefaultLibFileName:()=>XL,getDefaultLibFilePath:()=>lpe,getDefaultLikeExportInfo:()=>E7,getDiagnosticText:()=>QTe,getDiagnosticsWithinSpan:()=>Wde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>NJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>mce,getDocumentPositionMapper:()=>PX,getDocumentSpansEqualityComparer:()=>Jq,getESModuleInterop:()=>_h,getEditsForFileRename:()=>Kde,getEffectiveBaseTypeNode:()=>S_,getEffectiveConstraintOfTypeParameter:()=>Fx,getEffectiveContainerForJSDocTemplateTag:()=>e6,getEffectiveImplementsTypeNodes:()=>cR,getEffectiveInitializer:()=>M2,getEffectiveJSDocHost:()=>dE,getEffectiveModifierFlags:()=>du,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Vie,getEffectiveModifierFlagsNoCache:()=>jie,getEffectiveReturnTypeNode:()=>$f,getEffectiveSetAccessorTypeAnnotationNode:()=>Lie,getEffectiveTypeAnnotationNode:()=>vd,getEffectiveTypeParameterDeclarations:()=>Cv,getEffectiveTypeRoots:()=>MP,getElementOrPropertyAccessArgumentExpressionOrName:()=>QF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>VR,getEmitDeclarations:()=>Af,getEmitFlags:()=>za,getEmitHelpers:()=>o4,getEmitModuleDetectionKind:()=>xU,getEmitModuleKind:()=>kd,getEmitModuleResolutionKind:()=>pu,getEmitScriptTarget:()=>rs,getEmitStandardClassFields:()=>moe,getEnclosingBlockScopeContainer:()=>ph,getEnclosingContainer:()=>nj,getEncodedSemanticClassifications:()=>IX,getEncodedSyntacticClassifications:()=>xX,getEndLinePosition:()=>g2,getEntityNameFromTypeNode:()=>D2,getEntrypointsFromPackageJsonInfo:()=>sK,getErrorCountForSummary:()=>hz,getErrorSpanForNode:()=>_T,getErrorSummaryText:()=>yce,getEscapedTextOfIdentifierOrLiteral:()=>CN,getEscapedTextOfJsxAttributeName:()=>rP,getEscapedTextOfJsxNamespacedName:()=>BI,getExpandoInitializer:()=>lE,getExportAssignmentExpression:()=>Tj,getExportInfoMap:()=>gO,getExportNeedsImportStarHelper:()=>ele,getExpressionAssociativity:()=>Nj,getExpressionPrecedence:()=>PN,getExternalHelpersModuleName:()=>Jk,getExternalModuleImportEqualsDeclarationExpression:()=>SN,getExternalModuleName:()=>iR,getExternalModuleNameFromDeclaration:()=>Rie,getExternalModuleNameFromPath:()=>Wj,getExternalModuleNameLiteral:()=>c1,getExternalModuleRequireArgument:()=>dj,getFallbackOptions:()=>Lw,getFileEmitOutput:()=>Zle,getFileMatcherPatterns:()=>k6,getFileNamesFromConfigSpecs:()=>CP,getFileWatcherEventKind:()=>nV,getFilesInErrorForSummary:()=>gz,getFirstConstructorWithBody:()=>tg,getFirstIdentifier:()=>Fp,getFirstNonSpaceCharacterPosition:()=>Dde,getFirstProjectOutput:()=>qK,getFixableErrorSpanExpression:()=>dX,getFormatCodeSettingsForWriting:()=>g7,getFullWidth:()=>_2,getFunctionFlags:()=>Vc,getHeritageClause:()=>X2,getHostSignatureFromJSDoc:()=>cE,getIdentifierAutoGenerate:()=>XSe,getIdentifierGeneratedImportReference:()=>tae,getIdentifierTypeArguments:()=>NT,getImmediatelyInvokedFunctionExpression:()=>gT,getImpliedNodeFormatForFile:()=>Ww,getImpliedNodeFormatForFileWorker:()=>_J,getImportNeedsImportDefaultHelper:()=>DK,getImportNeedsImportStarHelper:()=>z3,getIndentSize:()=>mR,getIndentString:()=>o6,getInferredLibraryNameResolveFrom:()=>oz,getInitializedVariables:()=>GN,getInitializerOfBinaryExpression:()=>_j,getInitializerOfBindingOrAssignmentElement:()=>Xk,getInterfaceBaseTypeNodes:()=>RN,getInternalEmitFlags:()=>ym,getInvokedExpression:()=>VF,getIsolatedModules:()=>em,getJSDocAugmentsTag:()=>ere,getJSDocClassTag:()=>yV,getJSDocCommentRanges:()=>oj,getJSDocCommentsAndTags:()=>gj,getJSDocDeprecatedTag:()=>vV,getJSDocDeprecatedTagNoCache:()=>sre,getJSDocEnumTag:()=>bV,getJSDocHost:()=>ET,getJSDocImplementsTags:()=>tre,getJSDocOverloadTags:()=>vj,getJSDocOverrideTagNoCache:()=>are,getJSDocParameterTags:()=>Wx,getJSDocParameterTagsNoCache:()=>Yne,getJSDocPrivateTag:()=>y0e,getJSDocPrivateTagNoCache:()=>rre,getJSDocProtectedTag:()=>v0e,getJSDocProtectedTagNoCache:()=>ire,getJSDocPublicTag:()=>g0e,getJSDocPublicTagNoCache:()=>nre,getJSDocReadonlyTag:()=>b0e,getJSDocReadonlyTagNoCache:()=>ore,getJSDocReturnTag:()=>lre,getJSDocReturnType:()=>e2,getJSDocRoot:()=>sR,getJSDocSatisfiesExpressionType:()=>gU,getJSDocSatisfiesTag:()=>EV,getJSDocTags:()=>iE,getJSDocTagsNoCache:()=>S0e,getJSDocTemplateTag:()=>E0e,getJSDocThisTag:()=>iF,getJSDocType:()=>rE,getJSDocTypeAliasName:()=>SH,getJSDocTypeAssertionType:()=>Q4,getJSDocTypeParameterDeclarations:()=>p6,getJSDocTypeParameterTags:()=>$ne,getJSDocTypeParameterTagsNoCache:()=>Qne,getJSDocTypeTag:()=>nE,getJSXImplicitImportBase:()=>N6,getJSXRuntimeImport:()=>P6,getJSXTransformEnabled:()=>C6,getKeyForCompilerOptions:()=>tK,getLanguageVariant:()=>lk,getLastChild:()=>Zj,getLeadingCommentRanges:()=>Hh,getLeadingCommentRangesOfNode:()=>ij,getLeftmostAccessExpression:()=>vR,getLeftmostExpression:()=>bR,getLibraryNameFromLibFileName:()=>fJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>AK,getLineOfLocalPosition:()=>LN,getLineOfLocalPositionFromLineMap:()=>AT,getLineStartPositionForPosition:()=>rm,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>toe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>eoe,getLinesBetweenPositions:()=>tN,getLinesBetweenRangeEndAndRangeStart:()=>Yj,getLinesBetweenRangeEndPositions:()=>dSe,getLiteralText:()=>Bre,getLocalNameForExternalImport:()=>GR,getLocalSymbolForExportDefault:()=>gR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Bw,getMappedContextSpan:()=>Xq,getMappedDocumentSpan:()=>t7,getMappedLocation:()=>iM,getMatchedFileSpec:()=>OJ,getMatchedIncludeSpec:()=>WJ,getMeaningFromDeclaration:()=>Jw,getMeaningFromLocation:()=>YT,getMembersOfDeclaration:()=>eie,getModeForFileReference:()=>ww,getModeForResolutionAtIndex:()=>Jle,getModeForUsageLocation:()=>lJ,getModifiedTime:()=>_I,getModifiers:()=>b0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>Fw,getModuleSpecifierEndingPreference:()=>Eoe,getModuleSpecifierResolverHost:()=>Vq,getNameForExportedSymbol:()=>m7,getNameFromImportAttribute:()=>K6,getNameFromIndexInfo:()=>qre,getNameFromPropertyName:()=>aO,getNameOfAccessExpression:()=>tU,getNameOfCompilerOptionValue:()=>BH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>fj,getNameOfJSDocTypedef:()=>Xne,getNameOrArgument:()=>O2,getNameTable:()=>gY,getNamesForExportedSymbol:()=>Fde,getNamespaceDeclarationNode:()=>oR,getNewLineCharacter:()=>Wy,getNewLineKind:()=>hO,getNewLineOrDefaultFromHost:()=>qy,getNewTargetContainer:()=>die,getNextJSDocCommentLocation:()=>yj,getNodeForGeneratedName:()=>$k,getNodeId:()=>is,getNodeKind:()=>sS,getNodeModifiers:()=>tM,getNodeModulePathParts:()=>j6,getNonAssignedNameOfDeclaration:()=>nF,getNonAssignmentOperatorForCompoundAssignment:()=>WP,getNonAugmentationDeclaration:()=>YV,getNonDecoratorTokenPosOfNode:()=>HV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>lV,getNormalizedPathComponents:()=>zL,getObjectFlags:()=>Lr,getOperator:()=>Mj,getOperatorAssociativity:()=>Pj,getOperatorPrecedence:()=>Q2,getOptionFromName:()=>OH,getOptionsForLibraryResolution:()=>rK,getOptionsNameMap:()=>HR,getOrCreateEmitNode:()=>wd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Oae,getOrUpdate:()=>jC,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Od,getOriginalSourceFile:()=>eSe,getOutputDeclarationFileName:()=>KP,getOutputDeclarationFileNameWorker:()=>KK,getOutputExtension:()=>q3,getOutputFileNames:()=>i1e,getOutputJSFileNameWorker:()=>JK,getOutputPathsFor:()=>HP,getOutputPathsForBundle:()=>UP,getOwnEmitOutputFilePath:()=>Die,getOwnKeys:()=>Uh,getOwnValues:()=>uI,getPackageJsonInfo:()=>eS,getPackageJsonTypesVersionsPaths:()=>v3,getPackageJsonsVisibleToFile:()=>wde,getPackageNameFromTypesPackageName:()=>kP,getPackageScopeForPath:()=>gw,getParameterSymbolFromJSDoc:()=>U2,getParameterTypeNode:()=>ESe,getParentNodeInSpan:()=>lO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>nw,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>dV,getPathFromPathComponents:()=>Iv,getPathUpdater:()=>CX,getPathsBasePath:()=>c6,getPatternFromSpec:()=>yoe,getPendingEmitKind:()=>oD,getPositionOfLineAndCharacter:()=>UL,getPossibleGenericSignatures:()=>Pq,getPossibleOriginalInputExtensionForExtension:()=>Nie,getPossibleTypeArgumentsInfo:()=>Mq,getPreEmitDiagnostics:()=>o1e,getPrecedingNonSpaceCharacterPosition:()=>r7,getPrivateIdentifier:()=>MK,getProperties:()=>NK,getProperty:()=>gW,getPropertyArrayElementValue:()=>aie,getPropertyAssignmentAliasLikeExpression:()=>Tie,getPropertyNameForPropertyNameNode:()=>ST,getPropertyNameForUniqueESSymbol:()=>Q0e,getPropertyNameFromType:()=>Zf,getPropertyNameOfBindingOrAssignmentElement:()=>EH,getPropertySymbolFromBindingElement:()=>e7,getPropertySymbolsFromContextualType:()=>X7,getQuoteFromPreference:()=>Uq,getQuotePreference:()=>of,getRangesWhere:()=>LG,getRefactorContextSpan:()=>T1,getReferencedFileLocation:()=>qP,getRegexFromPattern:()=>Gv,getRegularExpressionForWildcard:()=>HN,getRegularExpressionsForWildcards:()=>M6,getRelativePathFromDirectory:()=>_m,getRelativePathFromFile:()=>GL,getRelativePathToDirectoryOrUrl:()=>gI,getRenameLocation:()=>uO,getReplacementSpanForContextToken:()=>Oq,getResolutionDiagnostic:()=>yJ,getResolutionModeOverride:()=>tD,getResolveJsonModule:()=>_E,getResolvePackageJsonExports:()=>$6,getResolvePackageJsonImports:()=>Q6,getResolvedExternalModuleName:()=>a6,getRestIndicatorOfBindingOrAssignmentElement:()=>e3,getRestParameterElementType:()=>aj,getRightMostAssignedExpression:()=>k2,getRootDeclaration:()=>A_,getRootDirectoryOfResolutionCache:()=>_ce,getRootLength:()=>lh,getRootPathSplitLength:()=>N1e,getScriptKind:()=>eX,getScriptKindFromFileName:()=>O6,getScriptTargetFeatures:()=>X6,getSelectedEffectiveModifierFlags:()=>LI,getSelectedSyntacticModifierFlags:()=>Bie,getSemanticClassifications:()=>Vde,getSemanticJsxChildren:()=>uR,getSetAccessorTypeAnnotationNode:()=>Pie,getSetAccessorValueParameter:()=>kN,getSetExternalModuleIndicator:()=>ck,getShebang:()=>ZW,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>hj,getSingleVariableOfVariableStatement:()=>CI,getSnapshotText:()=>pD,getSnippetElement:()=>jU,getSourceFileOfModule:()=>AF,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>d6,getSourceFilePathInNewDirWorker:()=>u6,getSourceFileVersionAsHashFromText:()=>vz,getSourceFilesToEmit:()=>Fj,getSourceMapRange:()=>zy,getSourceMapper:()=>iue,getSourceTextOfNodeFromSourceFile:()=>A0,getSpanOfTokenAtPosition:()=>fh,getSpellingSuggestion:()=>JC,getStartPositionOfLine:()=>Ov,getStartPositionOfRange:()=>BN,getStartsOnNewLine:()=>lP,getStaticPropertiesAndClassStaticBlock:()=>V3,getStrictOptionValue:()=>uu,getStringComparer:()=>Ax,getSubPatternFromSpec:()=>L6,getSuperCallFromStatement:()=>B3,getSuperContainer:()=>x2,getSupportedCodeFixes:()=>_Y,getSupportedExtensions:()=>KN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>dk,getSwitchedType:()=>oX,getSymbolId:()=>ba,getSymbolNameForPrivateIdentifier:()=>Y2,getSymbolTarget:()=>tX,getSyntacticClassifications:()=>jde,getSyntacticModifierFlags:()=>zv,getSyntacticModifierFlagsNoCache:()=>Vj,getSynthesizedDeepClone:()=>al,getSynthesizedDeepCloneWithReplacements:()=>dO,getSynthesizedDeepClones:()=>cS,getSynthesizedDeepClonesWithReplacements:()=>nX,getSyntheticLeadingComments:()=>DR,getSyntheticTrailingComments:()=>Ck,getTargetLabel:()=>wz,getTargetOfBindingOrAssignmentElement:()=>Qv,getTemporaryModuleResolutionState:()=>hw,getTextOfConstantValue:()=>Gre,getTextOfIdentifierOrLiteral:()=>Xf,getTextOfJSDocComment:()=>n2,getTextOfJsxAttributeName:()=>gk,getTextOfJsxNamespacedName:()=>iP,getTextOfNode:()=>fc,getTextOfNodeFromSourceText:()=>hN,getTextOfPropertyName:()=>Jx,getThisContainer:()=>wu,getThisParameter:()=>k0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>aE,getTokenSourceMapRange:()=>JSe,getTouchingPropertyName:()=>zu,getTouchingToken:()=>uD,getTrailingCommentRanges:()=>$b,getTrailingSemicolonDeferringWriter:()=>Oj,getTransformFlagsSubtreeExclusions:()=>Uoe,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>bN,getTsConfigPropArrayElementValue:()=>WF,getTypeAnnotationNode:()=>Mie,getTypeArgumentOrTypeParameterList:()=>ude,getTypeKeywordOfTypeOnlyImport:()=>Hq,getTypeNode:()=>Zoe,getTypeNodeIfAccessible:()=>cM,getTypeParameterFromJsDoc:()=>gie,getTypeParameterOwner:()=>p0e,getTypesPackageName:()=>x3,getUILocale:()=>ane,getUniqueName:()=>eA,getUniqueSymbolId:()=>Rde,getUseDefineForClassFields:()=>sP,getWatchErrorSummaryDiagnosticMessage:()=>MJ,getWatchFactory:()=>ZK,group:()=>KC,groupBy:()=>yW,guessIndentation:()=>Cre,handleNoEmitOptions:()=>hJ,hasAbstractModifier:()=>W0,hasAccessorModifier:()=>I_,hasAmbientModifier:()=>Gj,hasChangesInResolutions:()=>VV,hasChildOfKind:()=>eO,hasContextSensitiveParameters:()=>G6,hasDecorators:()=>bf,hasDocComment:()=>cde,hasDynamicName:()=>Fv,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>f6,hasEffectiveReadonlyModifier:()=>wN,hasExtension:()=>hI,hasIndexSignature:()=>iX,hasInitializer:()=>kv,hasInvalidEscape:()=>kj,hasJSDocNodes:()=>kp,hasJSDocParameterTags:()=>Zne,hasJSFileExtension:()=>F0,hasJsonModuleEmitEnabled:()=>R6,hasOnlyExpressionInitializer:()=>pT,hasOverrideModifier:()=>m6,hasPossibleExternalModuleReference:()=>Kre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>Xw,hasQuestionToken:()=>DI,hasRecordedExternalHelpers:()=>wae,hasResolutionModeOverride:()=>woe,hasRestParameter:()=>FV,hasScopeMarker:()=>Ere,hasStaticModifier:()=>mc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>zie,hasTSFileExtension:()=>zI,hasTabstop:()=>Moe,hasTrailingDirectorySeparator:()=>Ry,hasType:()=>yF,hasTypeArguments:()=>J0e,hasZeroOrOneAsteriskCharacter:()=>iU,helperString:()=>KU,hostGetCanonicalFileName:()=>ky,hostUsesCaseSensitiveFileNames:()=>_R,idText:()=>vr,identifierIsThisKeyword:()=>Bj,identifierToKeywordKind:()=>tE,identity:()=>Zs,identitySourceMapConsumer:()=>F3,ignoreSourceNewlines:()=>HU,ignoredPaths:()=>FL,importDefaultHelper:()=>x4,importFromModuleSpecifier:()=>AN,importNameElisionDisabled:()=>rU,importStarHelper:()=>Pk,indexOfAnyCharCode:()=>Jte,indexOfNode:()=>Kx,indicesOf:()=>IL,inferredTypesContainingFile:()=>iD,injectClassNamedEvaluationHelperBlockIfMissing:()=>H3,injectClassThisAssignmentIfMissing:()=>dle,insertImports:()=>rM,insertLeadingStatement:()=>pTe,insertSorted:()=>Ev,insertStatementAfterCustomPrologue:()=>fT,insertStatementAfterStandardPrologue:()=>W0e,insertStatementsAfterCustomPrologue:()=>jV,insertStatementsAfterStandardPrologue:()=>Xh,intersperse:()=>DG,intrinsicTagNameToString:()=>yU,introducesArgumentsExoticObject:()=>iie,inverseJsxOptionMap:()=>NP,isAbstractConstructorSymbol:()=>noe,isAbstractModifier:()=>cae,isAccessExpression:()=>Ls,isAccessibilityModifier:()=>kq,isAccessor:()=>Pv,isAccessorModifier:()=>uae,isAliasSymbolDeclaration:()=>X0e,isAliasableExpression:()=>q2,isAmbientModule:()=>Ld,isAmbientPropertyDeclaration:()=>QV,isAnonymousFunctionDefinition:()=>NN,isAnyDirectorySeparator:()=>oV,isAnyImportOrBareOrAccessedRequire:()=>Hre,isAnyImportOrReExport:()=>v2,isAnyImportSyntax:()=>mT,isAnySupportedFileExtension:()=>bSe,isApplicableVersionedTypesKey:()=>vw,isArgumentExpressionOfElementAccess:()=>Tq,isArray:()=>So,isArrayBindingElement:()=>pF,isArrayBindingOrAssignmentElement:()=>c2,isArrayBindingOrAssignmentPattern:()=>MV,isArrayBindingPattern:()=>U0,isArrayLiteralExpression:()=>fu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ky,isArrayTypeNode:()=>Fk,isArrowFunction:()=>zs,isAsExpression:()=>Bk,isAssertClause:()=>yae,isAssertEntry:()=>iTe,isAssertionExpression:()=>uT,isAssertsKeyword:()=>sae,isAssignmentDeclaration:()=>TN,isAssignmentExpression:()=>Lc,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>fN,isAssignmentTarget:()=>Zh,isAsteriskToken:()=>kk,isAsyncFunction:()=>DN,isAsyncModifier:()=>uP,isAutoAccessorPropertyDeclaration:()=>ku,isAwaitExpression:()=>Xv,isAwaitKeyword:()=>ZU,isBigIntLiteral:()=>L4,isBinaryExpression:()=>pr,isBinaryOperatorToken:()=>Uae,isBindableObjectDefinePropertyCall:()=>vT,isBindableStaticAccessExpression:()=>N0,isBindableStaticElementAccessExpression:()=>$F,isBindableStaticNameExpression:()=>bT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>fie,isBindingName:()=>cT,isBindingOrAssignmentElement:()=>_re,isBindingOrAssignmentPattern:()=>s2,isBindingPattern:()=>$o,isBlock:()=>Ho,isBlockOrCatchScoped:()=>KV,isBlockScope:()=>ZV,isBlockScopedContainerTopLevel:()=>Ure,isBooleanLiteral:()=>pN,isBreakOrContinueStatement:()=>lN,isBreakStatement:()=>tTe,isBuildInfoFile:()=>Fle,isBuilderProgram:()=>vce,isBundle:()=>aH,isBundleFileTextLike:()=>ioe,isCallChain:()=>sT,isCallExpression:()=>ra,isCallExpressionTarget:()=>gq,isCallLikeExpression:()=>T0,isCallLikeOrFunctionLikeExpression:()=>LV,isCallOrNewExpression:()=>v_,isCallOrNewExpressionTarget:()=>yq,isCallSignatureDeclaration:()=>$I,isCallToHelper:()=>dP,isCaseBlock:()=>yP,isCaseClause:()=>wR,isCaseKeyword:()=>pae,isCaseOrDefaultClause:()=>hF,isCatchClause:()=>$0,isCatchClauseVariableDeclaration:()=>Poe,isCatchClauseVariableDeclarationOrBindingElement:()=>JV,isCheckJsEnabledForFile:()=>fk,isChildOfNodeWithKind:()=>z0e,isCircularBuildOrder:()=>y1,isClassDeclaration:()=>Ac,isClassElement:()=>Qc,isClassExpression:()=>ed,isClassInstanceProperty:()=>fre,isClassLike:()=>di,isClassMemberModifier:()=>CV,isClassNamedEvaluationHelperBlock:()=>g1,isClassOrTypeElement:()=>uF,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>zP,isCollapsedRange:()=>cSe,isColonToken:()=>oae,isCommaExpression:()=>Kk,isCommaListExpression:()=>_P,isCommaSequence:()=>TP,isCommaToken:()=>iae,isComment:()=>Kz,isCommonJsExportPropertyAssignment:()=>wF,isCommonJsExportedExpression:()=>nie,isCompoundAssignment:()=>OP,isComputedNonLiteralName:()=>b2,isComputedPropertyName:()=>Ya,isConciseBody:()=>mF,isConditionalExpression:()=>kR,isConditionalTypeNode:()=>t1,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Ok,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>NR,isContextualKeyword:()=>n6,isContinueStatement:()=>eTe,isCustomPrologue:()=>A2,isDebuggerStatement:()=>nTe,isDeclaration:()=>Kd,isDeclarationBindingElement:()=>a2,isDeclarationFileName:()=>Sd,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>$j,isDeclarationReadonly:()=>PF,isDeclarationStatement:()=>Ire,isDeclarationWithTypeParameterChildren:()=>tj,isDeclarationWithTypeParameters:()=>ej,isDecorator:()=>Ed,isDecoratorTarget:()=>Yce,isDefaultClause:()=>bP,isDefaultImport:()=>RI,isDefaultModifier:()=>W4,isDefaultedExpandoInitializer:()=>mie,isDeleteExpression:()=>_ae,isDeleteTarget:()=>Ej,isDeprecatedDeclaration:()=>_7,isDestructuringAssignment:()=>Oy,isDiagnosticWithLocation:()=>cX,isDiskPathRoot:()=>aV,isDoStatement:()=>QSe,isDocumentRegistryEntry:()=>yO,isDotDotDotToken:()=>w4,isDottedName:()=>WN,isDynamicName:()=>i6,isESSymbolIdentifier:()=>Z0e,isEffectiveExternalModule:()=>II,isEffectiveModuleDeclaration:()=>jre,isEffectiveStrictModeSourceFile:()=>$V,isElementAccessChain:()=>SV,isElementAccessExpression:()=>Xs,isEmittedFileOfProgram:()=>Vle,isEmptyArrayLiteral:()=>Jie,isEmptyBindingElement:()=>Jne,isEmptyBindingPattern:()=>Kne,isEmptyObjectLiteral:()=>Jj,isEmptyStatement:()=>rH,isEmptyStringLiteral:()=>cj,isEntityName:()=>Xu,isEntityNameExpression:()=>Vl,isEnumConst:()=>x0,isEnumDeclaration:()=>gE,isEnumMember:()=>Q0,isEqualityOperatorKind:()=>a7,isEqualsGreaterThanToken:()=>aae,isExclamationToken:()=>wk,isExcludedFile:()=>ise,isExclusivelyTypeOnlyImportOrExport:()=>sJ,isExpandoPropertyDeclaration:()=>H6,isExportAssignment:()=>kl,isExportDeclaration:()=>$l,isExportModifier:()=>XI,isExportName:()=>$4,isExportNamespaceAsDefaultDeclaration:()=>RF,isExportOrDefaultModifier:()=>Yk,isExportSpecifier:()=>Jd,isExportsIdentifier:()=>yT,isExportsOrModuleExportsOrAlias:()=>tS,isExpression:()=>ht,isExpressionNode:()=>$h,isExpressionOfExternalModuleImportEqualsDeclaration:()=>ede,isExpressionOfOptionalChainRoot:()=>lF,isExpressionStatement:()=>td,isExpressionWithTypeArguments:()=>Gy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>_6,isExternalModule:()=>sc,isExternalModuleAugmentation:()=>I0,isExternalModuleImportEqualsDeclaration:()=>sE,isExternalModuleIndicator:()=>d2,isExternalModuleNameRelative:()=>$c,isExternalModuleReference:()=>bh,isExternalModuleSymbol:()=>iO,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>o2,isFileLevelUniqueName:()=>IF,isFileProbablyExternalModule:()=>Zk,isFirstDeclarationOfSymbolParameter:()=>Yq,isFixablePromiseHandler:()=>kX,isForInOrOfStatement:()=>Gx,isForInStatement:()=>j4,isForInitializer:()=>vf,isForOfStatement:()=>Gk,isForStatement:()=>OT,isFunctionBlock:()=>D0,isFunctionBody:()=>wV,isFunctionDeclaration:()=>Tc,isFunctionExpression:()=>ks,isFunctionExpressionOrArrowFunction:()=>B0,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Fs,isFunctionLikeKind:()=>EI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Bx,isFunctionOrConstructorTypeNode:()=>mre,isFunctionOrModuleBlock:()=>NV,isFunctionSymbol:()=>hie,isFunctionTypeNode:()=>gh,isFutureReservedKeyword:()=>Y0e,isGeneratedIdentifier:()=>il,isGeneratedPrivateIdentifier:()=>lT,isGetAccessor:()=>Lv,isGetAccessorDeclaration:()=>Qp,isGetOrSetAccessorDeclaration:()=>aF,isGlobalDeclaration:()=>Fxe,isGlobalScopeAugmentation:()=>E_,isGrammarError:()=>Fre,isHeritageClause:()=>Zp,isHoistedFunction:()=>LF,isHoistedVariableStatement:()=>kF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>xj,isIdentifierName:()=>Sie,isIdentifierOrThisTypeNode:()=>Bae,isIdentifierPart:()=>Qb,isIdentifierStart:()=>Kh,isIdentifierText:()=>Yp,isIdentifierTypePredicate:()=>oie,isIdentifierTypeReference:()=>xoe,isIfStatement:()=>wT,isIgnoredFileFromWildCardWatching:()=>Mw,isImplicitGlob:()=>sU,isImportAttribute:()=>vae,isImportAttributeName:()=>pre,isImportAttributes:()=>i1,isImportCall:()=>Op,isImportClause:()=>yh,isImportDeclaration:()=>kc,isImportEqualsDeclaration:()=>nd,isImportKeyword:()=>fP,isImportMeta:()=>Yx,isImportOrExportSpecifier:()=>bI,isImportOrExportSpecifierName:()=>xde,isImportSpecifier:()=>Qu,isImportTypeAssertionContainer:()=>rTe,isImportTypeNode:()=>og,isImportableFile:()=>EX,isInComment:()=>Hy,isInCompoundLikeAssignment:()=>bj,isInExpressionContext:()=>UF,isInJSDoc:()=>N2,isInJSFile:()=>or,isInJSXText:()=>sde,isInJsonFile:()=>KF,isInNonReferenceComment:()=>mde,isInReferenceComment:()=>fde,isInRightSideOfInternalImportEqualsDeclaration:()=>Lz,isInString:()=>b1,isInTemplateString:()=>Nq,isInTopLevelContext:()=>BF,isInTypeQuery:()=>IT,isIncrementalCompilation:()=>aP,isIndexSignatureDeclaration:()=>j0,isIndexedAccessTypeNode:()=>kT,isInferTypeNode:()=>PT,isInfinityOrNaNString:()=>eP,isInitializedProperty:()=>Iw,isInitializedVariable:()=>sk,isInsideJsxElement:()=>Uz,isInsideJsxElementOrAttribute:()=>ade,isInsideNodeModules:()=>_O,isInsideTemplateLiteral:()=>nO,isInstanceOfExpression:()=>h6,isInstantiatedModule:()=>yK,isInterfaceDeclaration:()=>mu,isInternalDeclaration:()=>zV,isInternalModuleImportEqualsDeclaration:()=>tR,isInternalName:()=>yH,isIntersectionTypeNode:()=>e1,isIntrinsicJsxName:()=>fR,isIterationStatement:()=>Mv,isJSDoc:()=>Ym,isJSDocAllType:()=>Aae,isJSDocAugmentsTag:()=>l1,isJSDocAuthorTag:()=>lTe,isJSDocCallbackTag:()=>lH,isJSDocClassTag:()=>xae,isJSDocCommentContainingNode:()=>gF,isJSDocConstructSignature:()=>aR,isJSDocDeprecatedTag:()=>fH,isJSDocEnumTag:()=>jk,isJSDocFunctionType:()=>WR,isJSDocImplementsTag:()=>q4,isJSDocIndexSignature:()=>JF,isJSDocLikeText:()=>RH,isJSDocLink:()=>Sae,isJSDocLinkCode:()=>Tae,isJSDocLinkLike:()=>AI,isJSDocLinkPlain:()=>aTe,isJSDocMemberName:()=>yE,isJSDocNameReference:()=>EP,isJSDocNamepathType:()=>sTe,isJSDocNamespaceBody:()=>P0e,isJSDocNode:()=>Vx,isJSDocNonNullableType:()=>U4,isJSDocNullableType:()=>OR,isJSDocOptionalParameter:()=>hk,isJSDocOptionalType:()=>sH,isJSDocOverloadTag:()=>FR,isJSDocOverrideTag:()=>K4,isJSDocParameterTag:()=>$m,isJSDocPrivateTag:()=>dH,isJSDocPropertyLikeTag:()=>cN,isJSDocPropertyTag:()=>Rae,isJSDocProtectedTag:()=>uH,isJSDocPublicTag:()=>cH,isJSDocReadonlyTag:()=>pH,isJSDocReturnTag:()=>J4,isJSDocSatisfiesExpression:()=>hU,isJSDocSatisfiesTag:()=>X4,isJSDocSeeTag:()=>cTe,isJSDocSignature:()=>vE,isJSDocTag:()=>jx,isJSDocTemplateTag:()=>nm,isJSDocThisTag:()=>mH,isJSDocThrowsTag:()=>uTe,isJSDocTypeAlias:()=>qf,isJSDocTypeAssertion:()=>BR,isJSDocTypeExpression:()=>Z0,isJSDocTypeLiteral:()=>BT,isJSDocTypeTag:()=>SP,isJSDocTypedefTag:()=>GT,isJSDocUnknownTag:()=>dTe,isJSDocUnknownType:()=>Iae,isJSDocVariadicType:()=>H4,isJSXTagName:()=>eR,isJsonEqual:()=>z6,isJsonSourceFile:()=>Jf,isJsxAttribute:()=>M_,isJsxAttributeLike:()=>_F,isJsxAttributeName:()=>koe,isJsxAttributes:()=>Y0,isJsxChild:()=>f2,isJsxClosingElement:()=>q0,isJsxClosingFragment:()=>bae,isJsxElement:()=>ag,isJsxExpression:()=>vP,isJsxFragment:()=>X0,isJsxNamespacedName:()=>Xm,isJsxOpeningElement:()=>P_,isJsxOpeningFragment:()=>a1,isJsxOpeningLikeElement:()=>lu,isJsxOpeningLikeElementTagName:()=>$ce,isJsxSelfClosingElement:()=>FT,isJsxSpreadAttribute:()=>s1,isJsxTagNameExpression:()=>mN,isJsxText:()=>KI,isJumpStatementTarget:()=>Yw,isKeyword:()=>Wu,isKeywordOrPunctuation:()=>t6,isKnownSymbol:()=>$2,isLabelName:()=>Eq,isLabelOfLabeledStatement:()=>bq,isLabeledStatement:()=>J0,isLateVisibilityPaintedStatement:()=>CF,isLeftHandSideExpression:()=>Yu,isLeftHandSideOfAssignment:()=>lSe,isLet:()=>MF,isLineBreak:()=>Ud,isLiteralComputedPropertyDeclarationName:()=>J2,isLiteralExpression:()=>S0,isLiteralExpressionOfObject:()=>RV,isLiteralImportTypeNode:()=>Wv,isLiteralKind:()=>dN,isLiteralLikeAccess:()=>YF,isLiteralLikeElementAccess:()=>w2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Oz,isLiteralTypeLikeExpression:()=>gTe,isLiteralTypeLiteral:()=>vre,isLiteralTypeNode:()=>qv,isLocalName:()=>Bg,isLogicalOperator:()=>Uie,isLogicalOrCoalescingAssignmentExpression:()=>jj,isLogicalOrCoalescingAssignmentOperator:()=>ON,isLogicalOrCoalescingBinaryExpression:()=>rk,isLogicalOrCoalescingBinaryOperator:()=>nk,isMappedTypeNode:()=>MR,isMemberName:()=>Jh,isMetaProperty:()=>mP,isMethodDeclaration:()=>Kl,isMethodOrAccessor:()=>SI,isMethodSignature:()=>hh,isMinusToken:()=>QU,isMissingDeclaration:()=>oTe,isMissingPackageJsonInfo:()=>Ese,isModifier:()=>Ta,isModifierKind:()=>Ny,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>XV,isModuleBlock:()=>N_,isModuleBody:()=>Sre,isModuleDeclaration:()=>Yl,isModuleExportsAccessExpression:()=>Qh,isModuleIdentifier:()=>mj,isModuleName:()=>jae,isModuleOrEnumDeclaration:()=>u2,isModuleReference:()=>Rre,isModuleSpecifierLike:()=>Zz,isModuleWithStringLiteralName:()=>DF,isNameOfFunctionDeclaration:()=>Iq,isNameOfModuleDeclaration:()=>Aq,isNamedClassElement:()=>x0e,isNamedDeclaration:()=>au,isNamedEvaluation:()=>pp,isNamedEvaluationSource:()=>Rj,isNamedExportBindings:()=>AV,isNamedExports:()=>xf,isNamedImportBindings:()=>OV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>T6,isNamedTupleMember:()=>PR,isNamespaceBody:()=>N0e,isNamespaceExport:()=>vh,isNamespaceExportDeclaration:()=>Vk,isNamespaceImport:()=>$v,isNamespaceReexportDeclaration:()=>pie,isNewExpression:()=>H0,isNewExpressionTarget:()=>ZP,isNoSubstitutionTemplateLiteral:()=>JI,isNode:()=>A0e,isNodeArray:()=>E0,isNodeArrayMultiLine:()=>Zie,isNodeDescendantOf:()=>P0,isNodeKind:()=>r2,isNodeLikeSystem:()=>qG,isNodeModulesDirectory:()=>qW,isNodeWithPossibleHoistedDeclaration:()=>vie,isNonContextualKeyword:()=>Ij,isNonExportDefaultModifier:()=>vTe,isNonGlobalAmbientModule:()=>qV,isNonGlobalDeclaration:()=>Gde,isNonNullAccess:()=>Loe,isNonNullChain:()=>cF,isNonNullExpression:()=>r1,isNonStaticMethodOrAccessorWithPrivateName:()=>tle,isNotEmittedOrPartiallyEmittedNode:()=>C0e,isNotEmittedStatement:()=>oH,isNullishCoalesce:()=>TV,isNumber:()=>Ty,isNumericLiteral:()=>mp,isNumericLiteralName:()=>ig,isObjectBindingElementWithoutPropertyName:()=>sO,isObjectBindingOrAssignmentElement:()=>l2,isObjectBindingOrAssignmentPattern:()=>PV,isObjectBindingPattern:()=>tm,isObjectLiteralElement:()=>WV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>La,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>OF,isObjectTypeDeclaration:()=>OI,isOctalDigit:()=>QW,isOmittedExpression:()=>jc,isOptionalChain:()=>Hd,isOptionalChainRoot:()=>aN,isOptionalDeclaration:()=>nP,isOptionalJSDocPropertyLikeTag:()=>_k,isOptionalTypeNode:()=>F4,isOuterExpression:()=>Z4,isOutermostOptionalChain:()=>sN,isOverrideModifier:()=>dae,isPackageJsonInfo:()=>E3,isPackedArrayLiteral:()=>mU,isParameter:()=>To,isParameterDeclaration:()=>L0,isParameterPropertyDeclaration:()=>dp,isParameterPropertyModifier:()=>uN,isParenthesizedExpression:()=>Fu,isParenthesizedTypeNode:()=>MT,isParseTreeNode:()=>oN,isPartOfTypeNode:()=>Yh,isPartOfTypeQuery:()=>HF,isPartiallyEmittedExpression:()=>V4,isPatternMatch:()=>SW,isPinnedComment:()=>xF,isPlainJsFile:()=>h2,isPlusToken:()=>$U,isPossiblyTypeArgumentPosition:()=>tO,isPostfixUnaryExpression:()=>tH,isPrefixUnaryExpression:()=>Yv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>su,isPrivateIdentifierPropertyAccessExpression:()=>zx,isPrivateIdentifierSymbol:()=>Aie,isProgramBundleEmitBuildInfo:()=>ice,isProgramUptoDate:()=>mJ,isPrologueDirective:()=>vm,isPropertyAccessChain:()=>sF,isPropertyAccessEntityNameExpression:()=>ik,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>gre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>hre,isPropertyAssignment:()=>hc,isPropertyDeclaration:()=>jo,isPropertyName:()=>oc,isPropertyNameLiteral:()=>T_,isPropertySignature:()=>_p,isProtoSetter:()=>Iie,isPrototypeAccess:()=>Bv,isPrototypePropertyAssignment:()=>F2,isPunctuation:()=>Aj,isPushOrUnshiftIdentifier:()=>Dj,isQualifiedName:()=>Au,isQuestionDotToken:()=>O4,isQuestionOrExclamationToken:()=>zae,isQuestionOrPlusOrMinusToken:()=>Vae,isQuestionToken:()=>Kv,isRawSourceMap:()=>$se,isReadonlyKeyword:()=>lae,isReadonlyKeywordOrPlusOrMinusToken:()=>Gae,isRecognizedTripleSlashComment:()=>UV,isReferenceFileLocation:()=>nD,isReferencedFile:()=>xE,isRegularExpressionLiteral:()=>XU,isRequireCall:()=>Su,isRequireVariableStatement:()=>pj,isRestParameter:()=>qh,isRestTypeNode:()=>z4,isReturnStatement:()=>Sm,isReturnStatementWithFixablePromiseHandler:()=>I7,isRightSideOfAccessExpression:()=>Kj,isRightSideOfInstanceofExpression:()=>Kie,isRightSideOfPropertyAccess:()=>cD,isRightSideOfQualifiedName:()=>Zce,isRightSideOfQualifiedNameOrPropertyAccess:()=>FN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Hie,isRootedDiskPath:()=>cp,isSameEntityName:()=>nR,isSatisfiesExpression:()=>nH,isScopeMarker:()=>bre,isSemicolonClassElement:()=>hae,isSetAccessor:()=>Py,isSetAccessorDeclaration:()=>hp,isShebangTrivia:()=>uV,isShiftOperatorOrHigher:()=>AH,isShorthandAmbientModuleSymbol:()=>gN,isShorthandPropertyAssignment:()=>Zu,isSignedNumericLiteral:()=>r6,isSimpleCopiableExpression:()=>rS,isSimpleInlineableExpression:()=>L_,isSimpleParameter:()=>ale,isSimpleParameterList:()=>xw,isSingleOrDoubleQuote:()=>P2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>gD,isSourceFileJS:()=>cu,isSourceFileNotJS:()=>V0e,isSourceFileNotJson:()=>uj,isSourceMapping:()=>Qse,isSpecialPropertyDeclaration:()=>_ie,isSpreadAssignment:()=>Vy,isSpreadElement:()=>qm,isStatement:()=>Hi,isStatementButNotDeclaration:()=>p2,isStatementOrBlock:()=>xre,isStatementWithLocals:()=>Wre,isStatic:()=>na,isStaticModifier:()=>YI,isString:()=>Co,isStringAKeyword:()=>$0e,isStringANonContextualKeyword:()=>PI,isStringAndEmptyAnonymousObjectIntersection:()=>pde,isStringDoubleQuoted:()=>XF,isStringLiteral:()=>Ca,isStringLiteralLike:()=>ss,isStringLiteralOrJsxExpression:()=>Dre,isStringLiteralOrTemplate:()=>Mde,isStringOrNumericLiteralLike:()=>$p,isStringOrRegularExpressionOrTemplateLiteral:()=>Lq,isStringTextContainingNode:()=>DV,isSuperCall:()=>hT,isSuperKeyword:()=>pP,isSuperOrSuperProperty:()=>G0e,isSuperProperty:()=>Ou,isSupportedSourceFileName:()=>Soe,isSwitchStatement:()=>gP,isSyntaxList:()=>zR,isSyntheticExpression:()=>$Se,isSyntheticReference:()=>o1,isTagName:()=>Sq,isTaggedTemplateExpression:()=>K0,isTaggedTemplateTag:()=>Xce,isTemplateExpression:()=>B4,isTemplateHead:()=>qI,isTemplateLiteral:()=>TI,isTemplateLiteralKind:()=>Nv,isTemplateLiteralToken:()=>dre,isTemplateLiteralTypeNode:()=>fae,isTemplateLiteralTypeSpan:()=>eH,isTemplateMiddle:()=>YU,isTemplateMiddleOrTemplateTail:()=>dF,isTemplateSpan:()=>hP,isTemplateTail:()=>k4,isTextWhiteSpaceLike:()=>yde,isThis:()=>dD,isThisContainerOrFunctionBlock:()=>cie,isThisIdentifier:()=>O0,isThisInTypeQuery:()=>MI,isThisInitializedDeclaration:()=>GF,isThisInitializedObjectBindingExpression:()=>uie,isThisProperty:()=>R2,isThisTypeNode:()=>zk,isThisTypeParameter:()=>tP,isThisTypePredicate:()=>B0e,isThrowStatement:()=>iH,isToken:()=>vI,isTokenKind:()=>xV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>dh,isTrivia:()=>dR,isTryStatement:()=>WT,isTupleTypeNode:()=>ZI,isTypeAlias:()=>G2,isTypeAliasDeclaration:()=>Tm,isTypeAssertionExpression:()=>mae,isTypeDeclaration:()=>IR,isTypeElement:()=>dT,isTypeKeyword:()=>nM,isTypeKeywordToken:()=>zq,isTypeKeywordTokenOrIdentifier:()=>Xz,isTypeLiteralNode:()=>gp,isTypeNode:()=>ji,isTypeNodeKind:()=>eU,isTypeOfExpression:()=>LR,isTypeOnlyExportDeclaration:()=>ure,isTypeOnlyImportDeclaration:()=>i2,isTypeOnlyImportOrExportDeclaration:()=>oE,isTypeOperatorNode:()=>LT,isTypeParameterDeclaration:()=>ml,isTypePredicateNode:()=>Wk,isTypeQueryNode:()=>QI,isTypeReferenceNode:()=>If,isTypeReferenceType:()=>vF,isTypeUsableAsPropertyName:()=>Qf,isUMDExportSymbol:()=>S6,isUnaryExpression:()=>kV,isUnaryExpressionWithWrite:()=>yre,isUnicodeIdentifierStart:()=>YW,isUnionTypeNode:()=>Jv,isUnparsedNode:()=>IV,isUnparsedPrepend:()=>Eae,isUnparsedSource:()=>zT,isUnparsedTextLike:()=>cre,isUrl:()=>Nne,isValidBigIntString:()=>B6,isValidESSymbolDeclaration:()=>rie,isValidTypeOnlyAliasUseSite:()=>mE,isValueSignatureDeclaration:()=>bie,isVarAwaitUsing:()=>S2,isVarConst:()=>Xx,isVarUsing:()=>T2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>vN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>C0,isVariableDeclarationInitializedToRequire:()=>qF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>$x,isVariableLikeOrAccessor:()=>tie,isVariableStatement:()=>Ll,isVoidExpression:()=>n1,isWatchSet:()=>uSe,isWhileStatement:()=>ZSe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>y_,isWithStatement:()=>gae,isWriteAccess:()=>wI,isWriteOnlyAccess:()=>E6,isYieldExpression:()=>G4,jsxModeNeedsExplicitImport:()=>mX,keywordPart:()=>vp,last:()=>Ja,lastOrUndefined:()=>Qs,length:()=>Nn,libMap:()=>u3,libs:()=>lw,lineBreakPart:()=>_D,linkNamePart:()=>Ade,linkPart:()=>Qq,linkTextPart:()=>n7,listFiles:()=>LJ,loadModuleFromGlobalCache:()=>Pse,loadWithModeAwareCache:()=>Ow,makeIdentifierFromModuleName:()=>Vre,makeImport:()=>Jy,makeImportIfNecessary:()=>gde,makeStringLiteral:()=>S1,mangleScopedPackageName:()=>$R,map:()=>mn,mapAllOrFail:()=>PG,mapDefined:()=>to,mapDefinedEntries:()=>Xte,mapDefinedIterator:()=>VC,mapEntries:()=>$te,mapIterator:()=>BC,mapOneOrMany:()=>uX,mapToDisplayParts:()=>rb,matchFiles:()=>lU,matchPatternOrExact:()=>cU,matchedText:()=>une,matchesExclude:()=>d3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>doe,memoize:()=>Eu,memoizeCached:()=>ine,memoizeOne:()=>ah,memoizeWeak:()=>yEe,metadataHelper:()=>s4,min:()=>jG,minAndMax:()=>Aoe,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>kI,modifiersToFlags:()=>x_,moduleOptionDeclaration:()=>UH,moduleResolutionIsEqualTo:()=>wre,moduleResolutionNameAndModeGetter:()=>cz,moduleResolutionOptionDeclarations:()=>p3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>FI,moduleResolutionUsesNodeModules:()=>Yz,moduleSpecifiers:()=>nS,moveEmitHelpers:()=>$oe,moveRangeEnd:()=>v6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>R_,moveRangePos:()=>pE,moveSyntheticComments:()=>qoe,mutateMap:()=>jN,mutateMapSkippingNewValues:()=>ng,needsParentheses:()=>i7,needsScopeMarker:()=>fF,newCaseClauseTracker:()=>y7,newPrivateEnvironment:()=>ile,noEmitNotification:()=>Rw,noEmitSubstitution:()=>VP,noTransformers:()=>UK,noTruncationMaximumTruncationLength:()=>q6,nodeCanBeDecorated:()=>jF,nodeHasName:()=>ZL,nodeIsDecorated:()=>Zx,nodeIsMissing:()=>Bl,nodeIsPresent:()=>Hf,nodeIsSynthesized:()=>qs,nodeModuleNameResolver:()=>Ise,nodeModulesPathPart:()=>Sh,nodeNextJsonConfigResolver:()=>xse,nodeOrChildIsDecorated:()=>C2,nodeOverlapsWithStartEnd:()=>Wz,nodePosToString:()=>L0e,nodeSeenTracker:()=>E1,nodeStartsNewLexicalEnvironment:()=>Cj,nodeToDisplayParts:()=>Mxe,noop:()=>qa,noopFileWatcher:()=>sD,normalizePath:()=>ma,normalizeSlashes:()=>Md,not:()=>AW,notImplemented:()=>Uo,notImplementedResolver:()=>Q3,nullNodeConverters:()=>OU,nullParenthesizerRules:()=>wU,nullTransformationContext:()=>jP,objectAllocator:()=>ld,operatorPart:()=>oM,optionDeclarations:()=>sg,optionMapToObject:()=>s3,optionsAffectingProgramStructure:()=>XH,optionsForBuild:()=>$H,optionsForWatch:()=>KR,optionsHaveChanges:()=>Ux,optionsHaveModuleResolutionChanges:()=>Mre,or:()=>Um,orderedRemoveItem:()=>xx,orderedRemoveItemAt:()=>Tv,outFile:()=>Cs,packageIdToPackageName:()=>TF,packageIdToString:()=>wv,paramHelper:()=>l4,parameterIsThisKeyword:()=>w0,parameterNamePart:()=>bde,parseBaseNodeFactory:()=>MH,parseBigInt:()=>Ioe,parseBuildCommand:()=>$Te,parseCommandLine:()=>XTe,parseCommandLineWorker:()=>wH,parseConfigFileTextToJson:()=>WH,parseConfigFileWithSystem:()=>M1e,parseConfigHostFromCompilerHostLike:()=>lz,parseCustomTypeOption:()=>a3,parseIsolatedEntityName:()=>d1,parseIsolatedJSDocComment:()=>Yae,parseJSDocTypeExpressionForTests:()=>OTe,parseJsonConfigFileContent:()=>uAe,parseJsonSourceFileConfigFileContent:()=>ow,parseJsonText:()=>tw,parseListTypeOption:()=>Qae,parseNodeFactory:()=>Eh,parseNodeModuleFromPath:()=>_w,parsePackageName:()=>yw,parsePseudoBigInt:()=>YN,parseValidBigInt:()=>fU,patchWriteFileEnsuringDirectory:()=>Dne,pathContainsNodeModules:()=>AE,pathIsAbsolute:()=>QC,pathIsBareSpecifier:()=>sV,pathIsRelative:()=>Lp,patternText:()=>dne,perfLogger:()=>iu,performIncrementalCompilation:()=>O1e,performance:()=>Sne,plainJSErrors:()=>dz,positionBelongsToNode:()=>Rq,positionIsASICandidate:()=>l7,positionIsSynthesized:()=>Jm,positionsAreOnSameLine:()=>Sf,preProcessFile:()=>oRe,probablyUsesSemicolons:()=>fO,processCommentPragmas:()=>NH,processPragmasIntoFields:()=>PH,processTaggedTemplateExpression:()=>WK,programContainsEsModules:()=>hde,programContainsModules:()=>_de,projectReferenceIsEqualTo:()=>GV,propKeyHelper:()=>E4,propertyNamePart:()=>Ede,pseudoBigIntToString:()=>z0,punctuationPart:()=>Yd,pushIfUnique:()=>yf,quote:()=>lM,quotePreferenceFromString:()=>jq,rangeContainsPosition:()=>$w,rangeContainsPositionExclusive:()=>Qw,rangeContainsRange:()=>rf,rangeContainsRangeExclusive:()=>tde,rangeContainsStartEnd:()=>Zw,rangeEndIsOnSameLineAsRangeStart:()=>ak,rangeEndPositionsAreOnSameLine:()=>$ie,rangeEquals:()=>OG,rangeIsOnSingleLine:()=>RT,rangeOfNode:()=>uU,rangeOfTypeParameters:()=>pU,rangeOverlapsWithStartEnd:()=>eM,rangeStartIsOnSameLineAsRangeEnd:()=>Qie,rangeStartPositionsAreOnSameLine:()=>b6,readBuilderProgram:()=>Sz,readConfigFile:()=>rw,readHelper:()=>v4,readJson:()=>zN,readJsonConfigFile:()=>tse,readJsonOrUndefined:()=>qj,reduceEachLeadingCommentRange:()=>One,reduceEachTrailingCommentRange:()=>Wne,reduceLeft:()=>ru,reduceLeftIterator:()=>mEe,reducePathComponents:()=>aT,refactor:()=>I1,regExpEscape:()=>ySe,relativeComplement:()=>Qte,removeAllComments:()=>Rk,removeEmitHelper:()=>qSe,removeExtension:()=>pk,removeFileExtension:()=>Tu,removeIgnoredPath:()=>fz,removeMinAndVersionNumbers:()=>UG,removeOptionality:()=>lde,removePrefix:()=>qC,removeSuffix:()=>Ix,removeTrailingDirectorySeparator:()=>Yb,repeatString:()=>oO,replaceElement:()=>zG,replaceFirstStar:()=>GI,resolutionExtensionIsTSOrJson:()=>JN,resolveConfigFileProjectName:()=>UJ,resolveJSModule:()=>Tse,resolveLibrary:()=>T3,resolveModuleName:()=>XR,resolveModuleNameFromCache:()=>qAe,resolvePackageNameToPackageJson:()=>eK,resolvePath:()=>xv,resolveProjectReferencePath:()=>rD,resolveTripleslashReference:()=>nz,resolveTypeReferenceDirective:()=>vse,resolvingEmptyArray:()=>J6,restHelper:()=>_4,returnFalse:()=>jm,returnNoopFileWatcher:()=>lD,returnTrue:()=>Ay,returnUndefined:()=>qb,returnsPromise:()=>LX,runInitializersHelper:()=>d4,sameFlatMap:()=>qte,sameMap:()=>Mc,sameMapping:()=>wIe,scanShebangTrivia:()=>pV,scanTokenAtPosition:()=>Qre,scanner:()=>$d,screenStartingMessageCodes:()=>Ez,semanticDiagnosticsOptionDeclarations:()=>KH,serializeCompilerOptions:()=>l3,server:()=>iwe,servicesVersion:()=>cpe,setCommentRange:()=>ac,setConfigFileInOptions:()=>VH,setConstantValue:()=>Yoe,setEachParent:()=>AR,setEmitFlags:()=>dr,setFunctionNameHelper:()=>S4,setGetSourceFileAsHashVersioned:()=>bz,setIdentifierAutoGenerate:()=>Nk,setIdentifierGeneratedImportReference:()=>eae,setIdentifierTypeArguments:()=>By,setInternalEmitFlags:()=>Dk,setLocalizedDiagnosticMessages:()=>coe,setModuleDefaultHelper:()=>I4,setNodeFlags:()=>Doe,setObjectAllocator:()=>loe,setOriginalNode:()=>Rr,setParent:()=>ja,setParentRecursive:()=>Vv,setPrivateIdentifier:()=>HT,setSnippetElement:()=>UU,setSourceMapRange:()=>Da,setStackTraceLimit:()=>zEe,setStartsOnNewLine:()=>r4,setSyntheticLeadingComments:()=>hE,setSyntheticTrailingComments:()=>jI,setSys:()=>UEe,setSysLog:()=>xne,setTextRange:()=>at,setTextRangeEnd:()=>TR,setTextRangePos:()=>$N,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>QN,setTokenSourceMapRange:()=>Joe,setTypeNode:()=>Qoe,setUILocale:()=>sne,setValueDeclaration:()=>z2,shouldAllowImportingTsExtension:()=>QR,shouldPreserveConstEnums:()=>V0,shouldUseUriStyleNodeCoreModules:()=>h7,showModuleSpecifier:()=>roe,signatureHasLiteralTypes:()=>vK,signatureHasRestParameter:()=>Xd,signatureToDisplayParts:()=>Zq,single:()=>FG,singleElementArray:()=>mI,singleIterator:()=>Yte,singleOrMany:()=>ih,singleOrUndefined:()=>rh,skipAlias:()=>bd,skipAssertions:()=>mTe,skipConstraint:()=>Bq,skipOuterExpressions:()=>Ql,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>gm,skipTrivia:()=>Pa,skipTypeChecking:()=>XN,skipTypeParentheses:()=>K2,skipWhile:()=>fne,sliceAfter:()=>dU,some:()=>gt,sort:()=>tT,sortAndDeduplicate:()=>UC,sortAndDeduplicateDiagnostics:()=>wx,sourceFileAffectingCompilerOptions:()=>f3,sourceFileMayBeEmitted:()=>TT,sourceMapCommentRegExp:()=>O3,sourceMapCommentRegExpDontCareLineStart:()=>RK,spacePart:()=>wl,spanMap:()=>MG,spreadArrayHelper:()=>b4,stableSort:()=>Ey,startEndContainsRange:()=>xq,startEndOverlapsWithStartEnd:()=>Fz,startOnNewLine:()=>qd,startTracing:()=>Tne,startsWith:()=>ao,startsWithDirectory:()=>cV,startsWithUnderscore:()=>fX,startsWithUseStrict:()=>Lae,stringContainsAt:()=>Bde,stringToToken:()=>v0,stripQuotes:()=>Yf,supportedDeclarationExtensions:()=>Ek,supportedJSExtensions:()=>MU,supportedJSExtensionsFlat:()=>RR,supportedLocaleDirectories:()=>BV,supportedTSExtensions:()=>xR,supportedTSExtensionsFlat:()=>PU,supportedTSImplementationExtensions:()=>Sk,suppressLeadingAndTrailingTrivia:()=>bp,suppressLeadingTrivia:()=>rX,suppressTrailingTrivia:()=>Cde,symbolEscapedNameNoDefault:()=>Qz,symbolName:()=>vl,symbolNameNoDefault:()=>$z,symbolPart:()=>vde,symbolToDisplayParts:()=>aM,syntaxMayBeASICandidate:()=>vX,syntaxRequiresTrailingSemicolonOrASI:()=>s7,sys:()=>gd,sysLog:()=>OL,tagNamesAreEquivalent:()=>EE,takeWhile:()=>xW,targetOptionDeclaration:()=>dw,templateObjectHelper:()=>y4,testFormatSettings:()=>qce,textChangeRangeIsUnchanged:()=>Une,textChangeRangeNewSpan:()=>iN,textChanges:()=>fr,textOrKeywordPart:()=>$q,textPart:()=>af,textRangeContainsPositionInclusive:()=>YL,textSpanContainsPosition:()=>_V,textSpanContainsTextSpan:()=>Bne,textSpanEnd:()=>Xl,textSpanIntersection:()=>jne,textSpanIntersectsWith:()=>tF,textSpanIntersectsWithPosition:()=>Vne,textSpanIntersectsWithTextSpan:()=>u0e,textSpanIsEmpty:()=>zne,textSpanOverlap:()=>Gne,textSpanOverlapsWith:()=>d0e,textSpansEqual:()=>mD,textToKeywordObj:()=>qL,timestamp:()=>Js,toArray:()=>pI,toBuilderFileEmit:()=>sce,toBuilderStateFileInfoForMultiEmit:()=>ace,toEditorSettings:()=>MO,toFileNameLowerCase:()=>oh,toLowerCase:()=>rne,toPath:()=>nl,toProgramEmitPending:()=>lce,tokenIsIdentifierOrKeyword:()=>ou,tokenIsIdentifierOrKeywordOrGreaterThan:()=>kne,tokenToString:()=>da,trace:()=>yo,tracing:()=>ir,tracingEnabled:()=>ML,transform:()=>rCe,transformClassFields:()=>_le,transformDeclarations:()=>VK,transformECMAScriptModule:()=>GK,transformES2015:()=>Nle,transformES2016:()=>Cle,transformES2017:()=>vle,transformES2018:()=>ble,transformES2019:()=>Ele,transformES2020:()=>Sle,transformES2021:()=>Tle,transformES5:()=>Ple,transformESDecorators:()=>yle,transformESNext:()=>Ale,transformGenerators:()=>Mle,transformJsx:()=>Dle,transformLegacyDecorators:()=>gle,transformModule:()=>BK,transformNamedEvaluation:()=>yp,transformNodeModule:()=>kle,transformNodes:()=>Dw,transformSystemModule:()=>Lle,transformTypeScript:()=>mle,transpile:()=>fRe,transpileModule:()=>oue,transpileOptionValueCompilerOptions:()=>YH,tryAddToSet:()=>Jb,tryAndIgnoreErrors:()=>u7,tryCast:()=>ri,tryDirectoryExists:()=>d7,tryExtractTSExtension:()=>g6,tryFileExists:()=>mO,tryGetClassExtendingExpressionWithTypeArguments:()=>Uj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Hj,tryGetDirectories:()=>c7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>B2,tryGetJSDocSatisfiesTypeNode:()=>U6,tryGetModuleNameFromFile:()=>qk,tryGetModuleSpecifierFromDeclaration:()=>rR,tryGetNativePerformanceHooks:()=>vne,tryGetPropertyAccessOrIdentifierToString:()=>ok,tryGetPropertyNameOfBindingOrAssignmentElement:()=>t3,tryGetSourceMappingURL:()=>Yse,tryGetTextOfPropertyName:()=>yN,tryIOAndConsumeErrors:()=>p7,tryParseJson:()=>y6,tryParsePattern:()=>SR,tryParsePatterns:()=>W6,tryParseRawSourceMap:()=>IK,tryReadDirectory:()=>aX,tryReadFile:()=>RP,tryRemoveDirectoryPrefix:()=>aU,tryRemoveExtension:()=>Toe,tryRemovePrefix:()=>JG,tryRemoveSuffix:()=>cne,typeAcquisitionDeclarations:()=>uw,typeAliasNamePart:()=>Sde,typeDirectiveIsEqualTo:()=>Ore,typeKeywords:()=>v7,typeParameterNamePart:()=>Tde,typeToDisplayParts:()=>cO,unchangedPollThresholds:()=>WL,unchangedTextChangeRange:()=>m2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>bw,unorderedRemoveItem:()=>fI,unorderedRemoveItemAt:()=>HG,unreachableCodeIsError:()=>poe,unusedLabelIsError:()=>foe,unwrapInnermostStatementOfLabel:()=>sj,updateErrorForNoInputFiles:()=>c3,updateLanguageServiceSourceFile:()=>hY,updateMissingFilePathsWatch:()=>QK,updateResolutionField:()=>JR,updateSharedExtendedConfigFileWatcher:()=>ez,updateSourceFile:()=>DH,updateWatchingWildcardDirectories:()=>Pw,usesExtensionsOnImports:()=>boe,usingSingleLineStringWriter:()=>_N,utf16EncodeAsString:()=>kx,validateLocaleAndSetLanguage:()=>f0e,valuesHelper:()=>T4,version:()=>Jp,versionMajorMinor:()=>g_,visitArray:()=>Tw,visitCommaListElements:()=>Aw,visitEachChild:()=>Sn,visitFunctionBody:()=>nf,visitIterationBody:()=>Iu,visitLexicalEnvironment:()=>TK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Ox,walkUpLexicalEnvironments:()=>rle,walkUpOuterExpressions:()=>kae,walkUpParenthesizedExpressions:()=>Ly,walkUpParenthesizedTypes:()=>H2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Eie,whitespaceOrMapCommentRegExp:()=>W3,writeCommentRange:()=>hR,writeFile:()=>MN,writeFileEnsuringDirectories:()=>zj,zipWith:()=>RG});var awe=bt({"src/typescript/_namespaces/ts.ts"(){"use strict";Zo(),Hw(),ai(),ab(),Oot()}}),Wot=Ms({"src/typescript/typescript.ts"(e,t){awe(),awe(),typeof console<"u"&&(R.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=owe}});return Wot()})();typeof ti<"u"&&ti.exports&&(ti.exports=ci);var Vo=ci.createClassifier,Sa=ci.createLanguageService,ca=ci.displayPartsToString,ns=ci.EndOfLineState,hs=ci.flattenDiagnosticMessageText,El=ci.IndentStyle,Nl=ci.ScriptKind,Vh=ci.ScriptTarget,eT=ci.TokenClass,Fl=ci,wi={};wi["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 @@ -405,7 +405,7 @@ and limitations under the License. /// /// /// -`,ki["lib.decorators.d.ts"]=`/*! ***************************************************************************** +`,wi["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 @@ -791,7 +791,7 @@ interface ClassFieldDecoratorContext< readonly metadata: DecoratorMetadata; } -`,ki["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** +`,wi["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 @@ -813,7 +813,7 @@ declare type ClassDecorator = (target: TFunction) => 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; -`,ki["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** +`,wi["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 @@ -841,7 +841,7 @@ interface FileSystemDirectoryHandle { keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } -`,ki["lib.dom.d.ts"]=`/*! ***************************************************************************** +`,wi["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 @@ -29259,7 +29259,7 @@ type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; -`,ki["lib.dom.iterable.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.dom.iterable.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 @@ -29726,7 +29726,7 @@ interface WebGLRenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; } -`,ki["lib.es2015.collection.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.collection.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 @@ -29873,7 +29873,7 @@ interface WeakSetConstructor { readonly prototype: WeakSet; } declare var WeakSet: WeakSetConstructor; -`,ki["lib.es2015.core.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.core.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 @@ -30430,7 +30430,7 @@ interface StringConstructor { */ raw(template: { raw: readonly string[] | ArrayLike; }, ...substitutions: any[]): string; } -`,ki["lib.es2015.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.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 @@ -30458,7 +30458,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2015.generator.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.generator.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 @@ -30535,7 +30535,7 @@ interface GeneratorFunctionConstructor { */ readonly prototype: GeneratorFunction; } -`,ki["lib.es2015.iterable.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.iterable.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 @@ -31030,7 +31030,7 @@ interface Float64ArrayConstructor { */ from(arrayLike: Iterable, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; } -`,ki["lib.es2015.promise.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.promise.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 @@ -31111,7 +31111,7 @@ interface PromiseConstructor { } declare var Promise: PromiseConstructor; -`,ki["lib.es2015.proxy.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.proxy.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 @@ -31239,7 +31239,7 @@ interface ProxyConstructor { new (target: T, handler: ProxyHandler): T; } declare var Proxy: ProxyConstructor; -`,ki["lib.es2015.reflect.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.reflect.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 @@ -31383,7 +31383,7 @@ declare namespace Reflect { */ function setPrototypeOf(target: object, proto: object | null): boolean; } -`,ki["lib.es2015.symbol.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.symbol.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 @@ -31429,7 +31429,7 @@ interface SymbolConstructor { } declare var Symbol: SymbolConstructor; -`,ki["lib.es2015.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2015.symbol.wellknown.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 @@ -31755,7 +31755,7 @@ interface SetConstructor { interface ArrayBufferConstructor { readonly [Symbol.species]: ArrayBufferConstructor; } -`,ki["lib.es2016.array.include.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2016.array.include.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 @@ -31871,7 +31871,7 @@ interface Float64Array { */ includes(searchElement: number, fromIndex?: number): boolean; } -`,ki["lib.es2016.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2016.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 @@ -31892,7 +31892,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2016.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2016.full.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 @@ -31915,7 +31915,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2016.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2016.intl.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 @@ -31946,7 +31946,7 @@ declare namespace Intl { */ function getCanonicalLocales(locale?: string | readonly string[]): string[]; } -`,ki["lib.es2017.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.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 @@ -31971,7 +31971,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2017.date.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.date.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 @@ -32002,7 +32002,7 @@ interface DateConstructor { */ UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; } -`,ki["lib.es2017.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.full.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 @@ -32025,7 +32025,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2017.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.intl.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 @@ -32069,7 +32069,7 @@ declare namespace Intl { formatToParts(date?: Date | number): DateTimeFormatPart[]; } } -`,ki["lib.es2017.object.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.object.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 @@ -32118,7 +32118,7 @@ interface ObjectConstructor { */ getOwnPropertyDescriptors(o: T): { [P in keyof T]: TypedPropertyDescriptor; } & { [x: string]: PropertyDescriptor; }; } -`,ki["lib.es2017.sharedmemory.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.sharedmemory.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 @@ -32253,7 +32253,7 @@ interface Atomics { } declare var Atomics: Atomics; -`,ki["lib.es2017.string.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.string.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 @@ -32298,7 +32298,7 @@ interface String { */ padEnd(maxLength: number, fillString?: string): string; } -`,ki["lib.es2017.typedarrays.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2017.typedarrays.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 @@ -32351,7 +32351,7 @@ interface Float32ArrayConstructor { interface Float64ArrayConstructor { new (): Float64Array; } -`,ki["lib.es2018.asyncgenerator.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.asyncgenerator.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 @@ -32428,7 +32428,7 @@ interface AsyncGeneratorFunctionConstructor { */ readonly prototype: AsyncGeneratorFunction; } -`,ki["lib.es2018.asynciterable.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.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 @@ -32471,7 +32471,7 @@ interface AsyncIterable { interface AsyncIterableIterator extends AsyncIterator { [Symbol.asyncIterator](): AsyncIterableIterator; } -`,ki["lib.es2018.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.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 @@ -32495,7 +32495,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2018.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.full.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 @@ -32519,7 +32519,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2018.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.intl.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 @@ -32590,7 +32590,7 @@ declare namespace Intl { formatToParts(number?: number | bigint): NumberFormatPart[]; } } -`,ki["lib.es2018.promise.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.promise.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 @@ -32620,7 +32620,7 @@ interface Promise { */ finally(onfinally?: (() => void) | undefined | null): Promise; } -`,ki["lib.es2018.regexp.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2018.regexp.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 @@ -32657,7 +32657,7 @@ interface RegExp { */ readonly dotAll: boolean; } -`,ki["lib.es2019.array.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.array.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 @@ -32736,7 +32736,7 @@ interface Array { depth?: D, ): FlatArray[]; } -`,ki["lib.es2019.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.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 @@ -32760,7 +32760,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2019.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.full.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 @@ -32784,7 +32784,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2019.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.intl.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 @@ -32807,7 +32807,7 @@ declare namespace Intl { unknown: any; } } -`,ki["lib.es2019.object.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.object.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 @@ -32840,7 +32840,7 @@ interface ObjectConstructor { */ fromEntries(entries: Iterable): any; } -`,ki["lib.es2019.string.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.string.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 @@ -32877,7 +32877,7 @@ interface String { */ trimRight(): string; } -`,ki["lib.es2019.symbol.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2019.symbol.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 @@ -32901,7 +32901,7 @@ interface Symbol { */ readonly description: string | undefined; } -`,ki["lib.es2020.bigint.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.bigint.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 @@ -33629,7 +33629,7 @@ declare namespace Intl { resolvedOptions(): ResolvedNumberFormatOptions; } } -`,ki["lib.es2020.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.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 @@ -33656,7 +33656,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2020.date.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.date.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 @@ -33698,7 +33698,7 @@ interface Date { */ toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string; } -`,ki["lib.es2020.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.full.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 @@ -33722,7 +33722,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2020.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.intl.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 @@ -34171,7 +34171,7 @@ declare namespace Intl { supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[]; } } -`,ki["lib.es2020.number.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.number.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 @@ -34199,7 +34199,7 @@ interface Number { */ toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string; } -`,ki["lib.es2020.promise.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.promise.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 @@ -34246,7 +34246,7 @@ interface PromiseConstructor { */ allSettled(values: Iterable>): Promise>[]>; } -`,ki["lib.es2020.sharedmemory.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.sharedmemory.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 @@ -34343,7 +34343,7 @@ interface Atomics { */ xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint; } -`,ki["lib.es2020.string.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.string.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 @@ -34385,7 +34385,7 @@ interface String { */ localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number; } -`,ki["lib.es2020.symbol.wellknown.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2020.symbol.wellknown.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 @@ -34422,7 +34422,7 @@ interface RegExp { */ [Symbol.matchAll](str: string): IterableIterator; } -`,ki["lib.es2021.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2021.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 @@ -34445,7 +34445,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2021.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2021.full.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 @@ -34469,7 +34469,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2021.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2021.intl.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 @@ -34635,7 +34635,7 @@ declare namespace Intl { supportedLocalesOf(locales: LocalesArgument, options?: Pick): UnicodeBCP47LocaleIdentifier[]; }; } -`,ki["lib.es2021.promise.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2021.promise.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 @@ -34683,7 +34683,7 @@ interface PromiseConstructor { */ any(values: Iterable>): Promise>; } -`,ki["lib.es2021.string.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2021.string.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 @@ -34716,7 +34716,7 @@ interface String { */ replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; } -`,ki["lib.es2021.weakref.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2021.weakref.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 @@ -34792,7 +34792,7 @@ interface FinalizationRegistryConstructor { } declare var FinalizationRegistry: FinalizationRegistryConstructor; -`,ki["lib.es2022.array.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.array.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 @@ -34913,7 +34913,7 @@ interface BigUint64Array { */ at(index: number): bigint | undefined; } -`,ki["lib.es2022.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.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 @@ -34939,7 +34939,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2022.error.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.error.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 @@ -35012,7 +35012,7 @@ interface AggregateErrorConstructor { options?: ErrorOptions, ): AggregateError; } -`,ki["lib.es2022.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.full.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 @@ -35036,7 +35036,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2022.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.intl.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 @@ -35153,7 +35153,7 @@ declare namespace Intl { */ function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[]; } -`,ki["lib.es2022.object.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.object.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 @@ -35179,7 +35179,7 @@ interface ObjectConstructor { */ hasOwn(o: object, v: PropertyKey): boolean; } -`,ki["lib.es2022.regexp.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.regexp.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 @@ -35218,7 +35218,7 @@ interface RegExp { */ readonly hasIndices: boolean; } -`,ki["lib.es2022.sharedmemory.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.sharedmemory.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 @@ -35257,7 +35257,7 @@ interface Atomics { */ waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; }; } -`,ki["lib.es2022.string.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2022.string.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 @@ -35282,7 +35282,7 @@ interface String { */ at(index: number): string | undefined; } -`,ki["lib.es2023.array.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2023.array.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 @@ -36206,7 +36206,7 @@ interface BigUint64Array { */ with(index: number, value: bigint): BigUint64Array; } -`,ki["lib.es2023.collection.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2023.collection.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 @@ -36227,7 +36227,7 @@ and limitations under the License. interface WeakKeyTypes { symbol: symbol; } -`,ki["lib.es2023.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2023.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 @@ -36248,7 +36248,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es2023.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es2023.full.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 @@ -36272,7 +36272,7 @@ and limitations under the License. /// /// /// -`,ki["lib.es5.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es5.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 @@ -40835,7 +40835,7 @@ interface Date { */ toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string; } -`,ki["lib.es6.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.es6.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 @@ -40858,7 +40858,7 @@ and limitations under the License. /// /// /// -`,ki["lib.esnext.collection.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.collection.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 @@ -40887,7 +40887,7 @@ interface MapConstructor { keySelector: (item: T, index: number) => K, ): Map; } -`,ki["lib.esnext.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.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 @@ -40912,7 +40912,7 @@ and limitations under the License. /// /// /// -`,ki["lib.esnext.decorators.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.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 @@ -40940,7 +40940,7 @@ interface SymbolConstructor { interface Function { [Symbol.metadata]: DecoratorMetadata | null; } -`,ki["lib.esnext.disposable.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.disposable.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 @@ -41125,7 +41125,7 @@ interface AsyncDisposableStackConstructor { readonly prototype: AsyncDisposableStack; } declare var AsyncDisposableStack: AsyncDisposableStackConstructor; -`,ki["lib.esnext.full.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.full.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 @@ -41149,7 +41149,7 @@ and limitations under the License. /// /// /// -`,ki["lib.esnext.intl.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.intl.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 @@ -41177,7 +41177,7 @@ declare namespace Intl { formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[]; } } -`,ki["lib.esnext.object.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.object.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 @@ -41206,7 +41206,7 @@ interface ObjectConstructor { keySelector: (item: T, index: number) => K, ): Partial>; } -`,ki["lib.esnext.promise.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.esnext.promise.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 @@ -41241,7 +41241,7 @@ interface PromiseConstructor { */ withResolvers(): PromiseWithResolvers; } -`,ki["lib.scripthost.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.scripthost.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 @@ -41563,7 +41563,7 @@ interface DateConstructor { interface Date { getVarDate: () => VarDate; } -`,ki["lib.webworker.asynciterable.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.webworker.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 @@ -41591,7 +41591,7 @@ interface FileSystemDirectoryHandle { keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } -`,ki["lib.webworker.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.webworker.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 @@ -51008,7 +51008,7 @@ type WebTransportErrorSource = "session" | "stream"; type WorkerType = "classic" | "module"; type WriteCommandType = "seek" | "truncate" | "write"; type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text"; -`,ki["lib.webworker.importscripts.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.webworker.importscripts.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 @@ -51031,7 +51031,7 @@ and limitations under the License. ///////////////////////////// // These are only available in a Web Worker declare function importScripts(...urls: string[]): void; -`,ki["lib.webworker.iterable.d.ts"]=`/*! ***************************************************************************** +`,wi["lib.webworker.iterable.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 @@ -51302,18 +51302,18 @@ interface WebGLRenderingContextOverloads { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */ uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable): void; } -`;function nu(nh){return typeof nh=="string"?/^file:\/\/\//.test(nh)?!!ki[nh.substr(8)]:!1:nh.path.indexOf("/lib.")===0?!!ki[nh.path.slice(1)]:!1}var QS=class rW{constructor(Ni,bt){this._extraLibs=Object.create(null),this._languageService=Zo(this),this._ctx=Ni,this._compilerOptions=bt.compilerOptions,this._extraLibs=bt.extraLibs,this._inlayHintsOptions=bt.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(Ps=>Ps.uri).filter(Ps=>!nu(Ps)).map(Ps=>Ps.toString()).concat(Object.keys(this._extraLibs))}_getModel(Ni){let bt=this._ctx.getMirrorModels();for(let Ps=0;Psbt.substring(Ps,xa),getLength:()=>bt.length,getChangeRange:()=>{}}}getScriptKind(Ni){switch(Ni.substr(Ni.lastIndexOf(".")+1)){case"ts":return Gd.TS;case"tsx":return Gd.TSX;case"js":return Gd.JS;case"jsx":return Gd.JSX;default:return this.getCompilationSettings().allowJs?Gd.JS:Gd.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(Ni){switch(Ni.target){case 99:let bt="lib.esnext.full.d.ts";if(bt in ki||bt in this._extraLibs)return bt;case 7:case 6:case 5:case 4:case 3:case 2:default:let Ps=`lib.es${2013+(Ni.target||99)}.full.d.ts`;return Ps in ki||Ps in this._extraLibs?Ps:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(Ni){return Ni===this.getDefaultLibFileName(this._compilerOptions)}readFile(Ni){return this._getScriptText(Ni)}fileExists(Ni){return this._getScriptText(Ni)!==void 0}async getLibFiles(){return ki}static clearFiles(Ni){let bt=[];for(let Ps of Ni){let xa={...Ps};if(xa.file=xa.file?{fileName:xa.file.fileName}:void 0,Ps.relatedInformation){xa.relatedInformation=[];for(let g_ of Ps.relatedInformation){let qp={...g_};qp.file=qp.file?{fileName:qp.file.fileName}:void 0,xa.relatedInformation.push(qp)}}bt.push(xa)}return bt}async getSyntacticDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getSyntacticDiagnostics(Ni);return rW.clearFiles(bt)}async getSemanticDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getSemanticDiagnostics(Ni);return rW.clearFiles(bt)}async getSuggestionDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getSuggestionDiagnostics(Ni);return rW.clearFiles(bt)}async getCompilerOptionsDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getCompilerOptionsDiagnostics();return rW.clearFiles(bt)}async getCompletionsAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getCompletionsAtPosition(Ni,bt,void 0)}async getCompletionEntryDetails(Ni,bt,Ps){return this._languageService.getCompletionEntryDetails(Ni,bt,Ps,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(Ni,bt,Ps){if(!nu(Ni))return this._languageService.getSignatureHelpItems(Ni,bt,Ps)}async getQuickInfoAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getQuickInfoAtPosition(Ni,bt)}async getDocumentHighlights(Ni,bt,Ps){if(!nu(Ni))return this._languageService.getDocumentHighlights(Ni,bt,Ps)}async getDefinitionAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getDefinitionAtPosition(Ni,bt)}async getReferencesAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getReferencesAtPosition(Ni,bt)}async getNavigationTree(Ni){if(!nu(Ni))return this._languageService.getNavigationTree(Ni)}async getFormattingEditsForDocument(Ni,bt){return nu(Ni)?[]:this._languageService.getFormattingEditsForDocument(Ni,bt)}async getFormattingEditsForRange(Ni,bt,Ps,xa){return nu(Ni)?[]:this._languageService.getFormattingEditsForRange(Ni,bt,Ps,xa)}async getFormattingEditsAfterKeystroke(Ni,bt,Ps,xa){return nu(Ni)?[]:this._languageService.getFormattingEditsAfterKeystroke(Ni,bt,Ps,xa)}async findRenameLocations(Ni,bt,Ps,xa,g_){if(!nu(Ni))return this._languageService.findRenameLocations(Ni,bt,Ps,xa,g_)}async getRenameInfo(Ni,bt,Ps){return nu(Ni)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(Ni,bt,Ps)}async getEmitOutput(Ni,bt,Ps){if(nu(Ni))return{outputFiles:[],emitSkipped:!0};let xa=this._languageService.getEmitOutput(Ni,bt,Ps),g_=xa.diagnostics?rW.clearFiles(xa.diagnostics):void 0;return{...xa,diagnostics:g_}}async getCodeFixesAtPosition(Ni,bt,Ps,xa,g_){if(nu(Ni))return[];let qp={};try{return this._languageService.getCodeFixesAtPosition(Ni,bt,Ps,xa,g_,qp)}catch{return[]}}async updateExtraLibs(Ni){this._extraLibs=Ni}async provideInlayHints(Ni,bt,Ps){if(nu(Ni))return[];let xa=this._inlayHintsOptions??{},g_={start:bt,length:Ps-bt};try{return this._languageService.provideInlayHints(Ni,g_,xa)}catch{return[]}}};function vL(nh,Ni){let bt=QS;if(Ni.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(Ni.customWorkerPath);let Ps=self.customTSWorkerFactory;if(!Ps)throw new Error(`The script at ${Ni.customWorkerPath} does not add customTSWorkerFactory to self`);bt=Ps(QS,lr,ki)}return new bt(nh,Ni)}return globalThis.ts=Ol,zt(wt)})();return P})});var ste=x=>new Promise(function(P){let Q=new MessageChannel;Q.port1.onmessage=function(ae){P(ae.data)},navigator.serviceWorker.controller==null&&window.location.reload(),navigator.serviceWorker.controller.postMessage(x,[Q.port2])}),b4e=()=>{ste({type:"SET_DIR_HANDLE",data:null}),clearInterval(ate),ate=null},qS,ate,$gt=()=>{ate==null&&(ate=setInterval(()=>{ste({type:"SET_DIR_HANDLE",data:qS})},1e4))},Qgt=async()=>(qS=await globalThis.showDirectoryPicker(),await ste({type:"SET_DIR_HANDLE",data:qS}),qS),ybe=x=>{x.navigator.serviceWorker.ready.then(()=>{x.navigator.serviceWorker.addEventListener("message",P=>{P.data.type=="GET_DIR_HANDLE"&&P.ports[0].postMessage(qS)})})},Zgt=()=>navigator.serviceWorker.register("service_worker.js").then(()=>navigator.serviceWorker.ready).then(()=>ybe(globalThis)).then(()=>ste({type:"GET_DIR_HANDLE"})).then(async x=>{if(x==null||await x.queryPermission()!="granted")return null;try{await x.entries().next()}catch{return null}return qS=x,qS}),lte=async(x,P,Q=!1,ae)=>{typeof P=="string"&&(P=P.split("/"));let[Ee,...Oe]=P;if(Oe.length==0)return Q?await x.getDirectoryHandle(Ee,ae):await x.getFileHandle(Ee,ae);{let dt=await x.getDirectoryHandle(Ee);return lte(dt,Oe,Q,ae)}},E4e=async(x,P)=>{let ae=await(await lte(qS,x)).createWritable();await ae.write(P),await ae.close()},eyt=x=>x.name=="node_modules"||x.name.startsWith("."),tyt=async x=>await(await x.getFile()).text(),S4e=async(x,P)=>{if(x.kind=="directory"){let Q=[];for await(let[ae,Ee]of x)eyt(Ee)||Q.push(Ee);return{name:x.name,path:P,kind:"directory",children:(await Promise.all(Q.map(ae=>S4e(ae,P==null?ae.name:P+"/"+ae.name)))).sort((ae,Ee)=>ae.name.localeCompare(Ee.name))}}else{if(x.kind=="file")return{name:x.name,path:P,kind:"file",contents:await tyt(x)};throw new Error("unknown kind")}},T4e=(x,P)=>lte(qS,x,P,{create:!0}),A4e=async x=>{let P=x.split("/"),Q=P.slice(0,P.length-1),ae=P.at(-1),Ee;return Q.length==0?Ee=qS:Ee=await lte(qS,Q,!0),[Ee,ae]},I4e=async x=>{let[P,Q]=await A4e(x);await P.removeEntry(Q,{recursive:!0})},x4e=async(x,P,Q)=>{let[ae,Ee]=await A4e(x),Oe;try{await ae.getFileHandle(P),Oe="file"}catch(Mt){if(Mt.name!=="NotFoundError"&&Mt.name!=="TypeMismatchError")throw Mt}try{await ae.getDirectoryHandle(P),Oe="directory"}catch(Mt){if(Mt.name!=="NotFoundError"&&Mt.name!=="TypeMismatchError")throw Mt}if(Oe)return{ok:!1,message:`A ${Oe} with that name already exists`};let dt=await Q?await ae.getDirectoryHandle(Ee):await ae.getFileHandle(Ee);if(Q){let Mt=await ae.getDirectoryHandle(P,{create:!0});await D4e(dt,Mt)}else await R4e(dt,ae,P);return await ae.removeEntry(Ee,{recursive:!0}),{ok:!0}};async function R4e(x,P,Q){let Ee=await(await x.getFile()).arrayBuffer(),dt=await(await P.getFileHandle(Q,{create:!0})).createWritable();await dt.write(Ee),await dt.close()}async function D4e(x,P){for await(let[Q,ae]of x.entries())if(ae.kind==="file")await R4e(ae,P,Q);else if(ae.kind==="directory"){let Ee=await P.getDirectoryHandle(Q,{create:!0});await D4e(ae,Ee)}}var cL=async x=>{let P;return x?P=await Qgt():P=await Zgt(),P==null?null:($gt(),S4e(P,"local"))};var cte=x=>x.frames.get(x.active_calltree_node.id),dte=(x,P)=>({id:"calltree",children:[x,{id:"deferred_calls",children:P}]}),rI=x=>x.calltree.children[1].children,yy=x=>x.calltree.children[0],gv=x=>/\w+\/(.*)/.exec(x)[1],vbe=x=>x.project_dir.local_files!=null;window.addEventListener("unload",()=>{globalThis.app_window!=null&&globalThis.app_window.close()});nyt(window);function nyt(x){x.onerror=(P,Q,ae,Ee,Oe)=>{P!="ResizeObserver loop completed with undelivered notifications."&&(globalThis.app_window!=null&&Oe instanceof globalThis.app_window.Error||(iI==null?document.write(P):iI.set_status(P)))},x.addEventListener("unhandledrejection",P=>{let Q=P.reason;globalThis.app_window!=null&&Q instanceof globalThis.app_window.Error||(iI==null?document.write(Q):iI.set_status(Q))})}var ryt=new URL("./__leporello_files",globalThis.location),bbe=x=>{let P=ryt+"/";return x.html_file==null?P+"__leporello_blank.html":P+gv(x.html_file)+"?leporello"},C4e=x=>{ybe(x),fG=!1,Ws("reload_app_window_finished")},eW,N4e=x=>{fG=!0,eW=document.createElement("iframe"),eW.src=bbe(x),eW.setAttribute("hidden",""),document.body.appendChild(eW),globalThis.app_window=eW.contentWindow,M4e(globalThis.app_window)},P4e=x=>{fG=!0,Ws("open_app_window",!0),globalThis.app_window.close(),globalThis.app_window=open(bbe(x)),M4e(globalThis.app_window)},M4e=x=>{let P=()=>{let Ee=x.performance.getEntriesByType("navigation")[0];return Ee!=null&&Ee.loadEventEnd>0},Q=()=>{P()?(ae(),C4e(x)):x.addEventListener("load",()=>{ae(),C4e(x)},{once:!0})},ae=()=>{x.addEventListener("unload",Ee=>{setTimeout(()=>{x.closed?x==globalThis.app_window&&(Ws("open_app_window",!1),globalThis.app_window=eW.contentWindow,Ebe(yv())):Q()},100)})};Q()},fG=!1,Ebe=x=>{if(!fG){if(fG=!0,x==null)throw new Error("illegal state");globalThis.app_window.location=bbe(x)}};var iyt=x=>x instanceof Error||x instanceof globalThis.app_window.Error,oyt=x=>x?.[Symbol.toStringTag]=="Promise",Sbe=x=>x.clazz==null||x.clazz=="Object",pte=x=>x==null?null:x.clazz=="Promise"?x.status==null?null:pte(x.status.ok?x.status.value:x.status.error):x.array_entries!=null?Array.from(x.array_entries).map((P,Q)=>[Q,P]):x.object_entries,L4e=x=>{if(x.string!=null)return x.string;let P=x.array_entries??x.object_entries;return P==null?"":["Array","Set","Map"].includes(x.clazz)?x.clazz+"("+P.length+")":Sbe(x)?"":x.clazz},xC=(x,P=!1)=>{let Q=typeof x;if(x===null)return"null";if(x===void 0)return"undefined";if(Q=="function")return"fn "+(x.name==""?"anonymous":x.name);if(Q=="string")return JSON.stringify(x);if(Q!="object")return x.toString();if(x.string!=null)return x.string;if(x.clazz=="Promise")return x.status==null?"Promise":x.status.ok?`Promise`:`Promise`;if(x.array_entries!=null){if(P)return x.clazz+"("+x.array_entries.length+")";{let[Ee,Oe,dt]=x.clazz=="Array"?["[","]",""]:["{","}",x.clazz+" "];return dt+Ee+x.array_entries.map(Mt=>xC(Mt,!0)).join(", ")+Oe}}let ae=Sbe(x)?"":x.clazz+" ";if(P)return Sbe(x)?x.object_entries.length==0?ae+"{}":"{\u2026}":x.clazz;{let Ee="{"+x.object_entries.map(([Oe,dt])=>{let Mt=x.clazz=="Map"?xC(Oe,!0):Oe,zt=xC(dt,!0);return`${Mt}: ${zt}`}).join(", ")+"}";return ae+Ee}},ute=x=>{let P=typeof x;return x===null?"null":x===void 0?"undefined":P=="function"?"fn "+x.name:P=="string"?JSON.stringify(x):P!="object"?x.toString():oyt(x)?x.status==null?"Promise ":x.status.ok?`Promise `:`Promise `:iyt(x)?x.toString():Array.isArray(x)?"[\u2026]":(x.constructor?.name==null||x.constructor?.name=="Object"?"":x.constructor.name+" ")+"{\u2026}"};function Mr(x,P,...Q){let ae=document.createElement(x);if(typeof P=="string")ae.setAttribute("class",P);else{let Ee=P;for(let Oe in Ee){let dt=Ee[Oe];["change","click"].includes(Oe)?ae.addEventListener(Oe,dt):Oe=="checked"?Ee[Oe]&&ae.setAttribute(Oe,"checked"):ae.setAttribute(Oe,dt)}}return Q.forEach(Ee=>{let Oe=dt=>{if(typeof dt>"u")throw new Error("illegal state");dt!==null&&dt!==!1&&ae.appendChild(typeof dt=="string"?document.createTextNode(dt):dt)};Array.isArray(Ee)?Ee.forEach(Oe):Oe(Ee)}),ae}function ayt(x){let P=x.name==""?"anonymous":x.name,Q=x.__location==null?`${P}`:`fn ${P}`,ae=document.createElement("div");ae.innerHTML=Q;let Ee=ae.children[0];return x.__location!=null&&Ee.addEventListener("click",Oe=>{Oe.stopPropagation(),Ws("goto_location",JSON.parse(x.__location))}),Ee}function Ag(x){return typeof x=="function"?ayt(x):ute(x)}function dL(x,P=", "){let Q=[];for(let ae=0;ae{P.offsetTop-x.scrollTop-x.offsetTop<0&&P.scrollIntoView(!0),P.offsetTop-x.scrollTop-x.offsetTop-x.clientHeight+P.clientHeight>0&&P.scrollIntoView(!1)};var uL=(x,P)=>{if(P.length!=0){let[Q,...ae]=P,Ee=pte(x).find(([Oe,dt])=>Oe==Q)[1];return uL(Ee,ae)}else{let Q=pte(x),ae=Q!=null&&Q.length>0;return{displayed_entries:Q,header:xC(x),short_header:ae?L4e(x):null,is_exp:ae}}},fte=class{constructor({container:P,event_target:Q=P,scroll_to_element:ae,on_escape:Ee=()=>{},on_expand:Oe}={}){this.container=P,this.scroll_to_element=ae,this.on_escape=Ee,this.on_expand=Oe,Q.addEventListener("keydown",dt=>{if(dt.key=="F1"){this.on_escape();return}let Mt=uL(this.value,this.current_path);if(dt.key=="ArrowDown"||dt.key=="j")if(dt.preventDefault(),Mt.is_exp&&this.is_expanded(this.current_path))this.select_path(this.current_path.concat(Mt.displayed_entries[0][0]));else{let zt=lr=>{if(lr.length==0)return null;let $r=lr.slice(0,lr.length-1),ni=uL(this.value,$r).displayed_entries,Rr=ni.findIndex(([Zo,fs])=>Zo==lr[lr.length-1]),oa=ni[Rr+1];return oa==null?zt($r):[...$r,oa[0]]},wt=zt(this.current_path);wt!=null&&this.select_path(wt)}if(dt.key=="ArrowUp"||dt.key=="k"){if(dt.preventDefault(),this.current_path.length==0){this.on_escape();return}let zt=this.current_path.slice(0,this.current_path.length-1),wt=uL(this.value,zt).displayed_entries,lr=wt.findIndex(([ni,Rr])=>ni==this.current_path[this.current_path.length-1]),$r=wt[lr-1];if($r==null)this.select_path(zt);else{let ni=Rr=>{let oa=uL(this.value,Rr);if(!oa.is_exp||!this.is_expanded(Rr))return Rr;{let Zo=oa.displayed_entries.map(([fs,gs])=>fs);return ni([...Rr,Zo[Zo.length-1]])}};this.select_path(ni([...zt,$r[0]]))}}if(dt.key=="ArrowLeft"||dt.key=="h"){dt.preventDefault();let zt=this.is_expanded(this.current_path);if(!Mt.is_exp||!zt)if(this.current_path.length!=0){let wt=this.current_path.slice(0,this.current_path.length-1);this.select_path(wt)}else this.on_escape();else this.toggle_expanded()}if((dt.key=="ArrowRight"||dt.key=="l")&&(dt.preventDefault(),Mt.is_exp))if(!this.is_expanded(this.current_path))this.toggle_expanded();else{let wt=uL(this.value,this.current_path).displayed_entries;this.select_path([...this.current_path,wt[0][0]])}})}get_node_data(P,Q=this.node_data){if(P.length==0)return Q;{let[ae,...Ee]=P;return this.get_node_data(Ee,Q.children[ae])}}is_expanded(P){return this.get_node_data(P).is_expanded}on_click(P){this.select_path(P),this.toggle_expanded()}render(P,Q,ae){this.value=Q,this.node_data=ae;let Ee=[];this.container.appendChild(this.render_value_explorer_node(Ee,this.node_data)),this.select_path(ae.is_calltree_node_explorer?["args"]:[])}select_path(P){if(this.get_node_data(P).is_calltree_node_explorer){this.on_escape();return}if(this.current_path!=null&&this.set_active(this.current_path,!1),this.current_path=P,this.set_active(this.current_path,!0),document.contains(this.container)){let Q=this.get_node_data(P).el.getElementsByClassName("value_explorer_header")[0];this.scroll_to_element==null?tW(this.container.parentNode,Q):this.scroll_to_element(Q)}}set_active(P,Q){let ae=this.get_node_data(P).el.getElementsByClassName("value_explorer_header")[0];Q?ae.classList.add("active"):ae.classList.remove("active")}set_expanded(P){if(typeof P=="boolean")return this.set_expanded(()=>P);let Q=this.get_node_data(this.current_path);Q.is_expanded=P(Q.is_expanded);let ae=Q.el,Ee=this.render_value_explorer_node(this.current_path,Q);ae.parentNode.replaceChild(Ee,ae)}toggle_expanded(){this.set_expanded(P=>!P),this.set_active(this.current_path,!0),this.on_expand()}render_value_explorer_node(P,Q){let ae=P.length==0,Ee=P.at(-1),{displayed_entries:Oe,header:dt,short_header:Mt,is_exp:zt}=uL(this.value,P),wt=zt&&Q.is_expanded;Q.children??={};let lr=Mr("div","value_explorer_node "+(Q.is_calltree_node_explorer?"is_calltree_node_explorer":""),Mr("span",{class:"value_explorer_header",click:this.on_click.bind(this,P)},Mr("span","expand_icon",zt?wt?"\u25BC":"\u25B6":"\xA0"),ae?null:Mr("span","value_explorer_key",Q.label??(typeof Ee=="string"?Ee:xC(Ee)),": "),ae||!zt||!wt?dt:Q.is_arguments?"":Mt),zt&&wt?Oe.map(([$r,ni])=>(Q.children[$r]??={},this.render_value_explorer_node([...P,$r],Q.children[$r]))):[]);return Q.el=lr,lr}};var syt=Object.defineProperty,lyt=Object.defineProperties,cyt=Object.getOwnPropertyDescriptors,k4e=Object.getOwnPropertySymbols,dyt=Object.prototype.hasOwnProperty,uyt=Object.prototype.propertyIsEnumerable,w4e=(x,P,Q)=>P in x?syt(x,P,{enumerable:!0,configurable:!0,writable:!0,value:Q}):x[P]=Q,z4e=(x,P)=>{for(var Q in P||(P={}))dyt.call(P,Q)&&w4e(x,Q,P[Q]);if(k4e)for(var Q of k4e(P))uyt.call(P,Q)&&w4e(x,Q,P[Q]);return x},B4e=(x,P)=>lyt(x,cyt(P)),mG=(x,P,Q)=>new Promise((ae,Ee)=>{var Oe=zt=>{try{Mt(Q.next(zt))}catch(wt){Ee(wt)}},dt=zt=>{try{Mt(Q.throw(zt))}catch(wt){Ee(wt)}},Mt=zt=>zt.done?ae(zt.value):Promise.resolve(zt.value).then(Oe,dt);Mt((Q=Q.apply(x,P)).next())}),pyt=(x,P)=>{let Q=`https://data.jsdelivr.com/v1/package/npm/${P}`;return Abe(x,Q,{cache:"no-store"})},fyt=(x,P,Q)=>{let ae=`https://data.jsdelivr.com/v1/package/resolve/npm/${P}@${Q}`;return Abe(x,ae)},myt=(x,P,Q)=>mG(void 0,null,function*(){let ae=`https://data.jsdelivr.com/v1/package/npm/${P}@${Q}/flat`,Ee=yield Abe(x,ae);return Ee instanceof Error?Ee:B4e(z4e({},Ee),{moduleName:P,version:Q})}),O4e=(x,P,Q,ae)=>mG(void 0,null,function*(){let Ee=`https://cdn.jsdelivr.net/npm/${P}@${Q}${ae}`,dt=yield(x.fetcher||fetch)(Ee);return dt.ok?dt.text():new Error("OK")});function Abe(x,P,Q){return(x.fetcher||fetch)(P,Q).then(Ee=>Ee.ok?Ee.json().then(Oe=>Oe):new Error("OK"))}var _yt=x=>{let P=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","stream/consumers","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];if(x.indexOf("node:")===0||P.includes(x))return"node";let[Q="",ae=""]=x.split("/");return Q.startsWith("@")?`${Q}/${ae}`:Q},G4e=x=>{let P=new Map,Q=new Map,ae=0,Ee=0;return dt=>(ae=0,Ee=0,Oe(dt,0).then(Mt=>{var zt,wt;Ee>0&&((wt=(zt=x.delegate).finished)==null||wt.call(zt,Q))}));function Oe(dt,Mt){return mG(this,null,function*(){var zt,wt,lr,$r,ni;let Rr=gyt(x,P,dt);Rr.forEach(Ol=>P.set(Ol.module,{state:"loading"}));let Zo=(yield Promise.all(Rr.map(Ol=>F4e(x,Ol.module,Ol.version)))).filter(Ol=>!("error"in Ol)),fs=Zo.filter(Ol=>Ol.files.find(ki=>Ibe(ki.name))),gs=fs.map(Ol=>W4e(Ol,`/node_modules/${Ol.moduleName}`)),Za=Zo.filter(Ol=>!fs.includes(Ol)),Gd=(yield Promise.all(Za.map(Ol=>F4e(x,`@types/${Tbe(Ol.moduleName)}`,"latest")))).filter(Ol=>!("error"in Ol)),by=Gd.map(Ol=>W4e(Ol,`/node_modules/@types/${Tbe(Ol.moduleName).replace("types__","")}`)),kC=gs.concat(by).reduce((Ol,ki)=>Ol.concat(ki),[]);ae+=kC.length,kC.length&&Mt===0&&((wt=(zt=x.delegate).started)==null||wt.call(zt));for(let Ol of Zo){let ki=`/node_modules/${Ol.moduleName}`;Gd.includes(Ol)&&(ki=`/node_modules/@types/${Tbe(Ol.moduleName).replace("types__","")}`);let nu=ki+"/package.json",QS=yield O4e(x,Ol.moduleName,Ol.version,"/package.json");typeof QS=="string"?(Q.set(nu,QS),($r=(lr=x.delegate).receivedFile)==null||$r.call(lr,QS,nu)):(ni=x.logger)==null||ni.error(`Could not download package.json for ${Ol.moduleName}`)}yield Promise.all(kC.map(Ol=>mG(this,null,function*(){var ki,nu,QS;let vL=yield O4e(x,Ol.moduleName,Ol.moduleVersion,Ol.path);Ee++,vL instanceof Error?(ki=x.logger)==null||ki.error(`Had an issue getting ${Ol.path} for ${Ol.moduleName}`):(Q.set(Ol.vfsPath,vL),(QS=(nu=x.delegate).receivedFile)==null||QS.call(nu,vL,Ol.vfsPath),x.delegate.progress&&Ee%5===0&&x.delegate.progress(Ee,ae),yield Oe(vL,Mt+1))})))})}};function W4e(x,P){let Q=[];for(let ae of x.files)Ibe(ae.name)&&Q.push({moduleName:x.moduleName,moduleVersion:x.version,vfsPath:`${P}${ae.name}`,path:ae.name});return Q}var hyt=(x,P)=>{let Q=x.preProcessFile(P),ae=x.libMap||new Map;return Q.referencedFiles.concat(Q.importedFiles).concat(Q.libReferenceDirectives).filter(Oe=>!Ibe(Oe.fileName)).filter(Oe=>!ae.has(Oe.fileName)).map(Oe=>{let dt;if(!Oe.fileName.startsWith(".")){dt="latest";let Mt=P.slice(Oe.end).split(` -`)[0];Mt.includes("// types:")&&(dt=Mt.split("// types: ")[1].trim())}return{module:Oe.fileName,version:dt}}).filter((Oe,dt,Mt)=>Mt.findIndex(zt=>zt.module===Oe.module&&zt.version===Oe.version)===dt)};function gyt(x,P,Q){return hyt(x.typescript,Q).map(Oe=>B4e(z4e({},Oe),{module:_yt(Oe.module)})).filter(Oe=>!Oe.module.startsWith(".")).filter(Oe=>!P.has(Oe.module))}var F4e=(x,P,Q)=>mG(void 0,null,function*(){let ae=Q||"latest";if(ae.split(".").length<2){let Oe=yield fyt(x,P,ae);if(Oe instanceof Error)return{error:Oe,userFacingMessage:`Could not go from a tag to version on npm for ${P} - possible typo?`};let dt=Oe.version;if(!dt){let Mt=yield pyt(x,P);if(Mt instanceof Error)return{error:Oe,userFacingMessage:`Could not get versions on npm for ${P} - possible typo?`};let zt=Object.entries(Mt.tags).join(", ");return{error:new Error("Could not find tag for module"),userFacingMessage:`Could not find a tag for ${P} called ${Q}. Did find ${zt}`}}ae=dt}let Ee=yield myt(x,P,ae);return Ee instanceof Error?{error:Ee,userFacingMessage:`Could not get the files for ${P}@${ae}. Is it possibly a typo?`}:Ee});function Tbe(x){return x.indexOf("@")===0&&x.indexOf("/")!==-1&&(x=x.substr(1).replace("/","__")),x}function Ibe(x){return/\.d\.([^\.]+\.)?[cm]?ts$/i.test(x)}var RC={name:"leporello.d.ts",value:` +`;function nu(nh){return typeof nh=="string"?/^file:\/\/\//.test(nh)?!!wi[nh.substr(8)]:!1:nh.path.indexOf("/lib.")===0?!!wi[nh.path.slice(1)]:!1}var vv=class iW{constructor(Ni,bt){this._extraLibs=Object.create(null),this._languageService=Sa(this),this._ctx=Ni,this._compilerOptions=bt.compilerOptions,this._extraLibs=bt.extraLibs,this._inlayHintsOptions=bt.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(Ms=>Ms.uri).filter(Ms=>!nu(Ms)).map(Ms=>Ms.toString()).concat(Object.keys(this._extraLibs))}_getModel(Ni){let bt=this._ctx.getMirrorModels();for(let Ms=0;Msbt.substring(Ms,Ra),getLength:()=>bt.length,getChangeRange:()=>{}}}getScriptKind(Ni){switch(Ni.substr(Ni.lastIndexOf(".")+1)){case"ts":return Nl.TS;case"tsx":return Nl.TSX;case"js":return Nl.JS;case"jsx":return Nl.JSX;default:return this.getCompilationSettings().allowJs?Nl.JS:Nl.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(Ni){switch(Ni.target){case 99:let bt="lib.esnext.full.d.ts";if(bt in wi||bt in this._extraLibs)return bt;case 7:case 6:case 5:case 4:case 3:case 2:default:let Ms=`lib.es${2013+(Ni.target||99)}.full.d.ts`;return Ms in wi||Ms in this._extraLibs?Ms:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(Ni){return Ni===this.getDefaultLibFileName(this._compilerOptions)}readFile(Ni){return this._getScriptText(Ni)}fileExists(Ni){return this._getScriptText(Ni)!==void 0}async getLibFiles(){return wi}static clearFiles(Ni){let bt=[];for(let Ms of Ni){let Ra={...Ms};if(Ra.file=Ra.file?{fileName:Ra.file.fileName}:void 0,Ms.relatedInformation){Ra.relatedInformation=[];for(let g_ of Ms.relatedInformation){let Jp={...g_};Jp.file=Jp.file?{fileName:Jp.file.fileName}:void 0,Ra.relatedInformation.push(Jp)}}bt.push(Ra)}return bt}async getSyntacticDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getSyntacticDiagnostics(Ni);return iW.clearFiles(bt)}async getSemanticDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getSemanticDiagnostics(Ni);return iW.clearFiles(bt)}async getSuggestionDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getSuggestionDiagnostics(Ni);return iW.clearFiles(bt)}async getCompilerOptionsDiagnostics(Ni){if(nu(Ni))return[];let bt=this._languageService.getCompilerOptionsDiagnostics();return iW.clearFiles(bt)}async getCompletionsAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getCompletionsAtPosition(Ni,bt,void 0)}async getCompletionEntryDetails(Ni,bt,Ms){return this._languageService.getCompletionEntryDetails(Ni,bt,Ms,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(Ni,bt,Ms){if(!nu(Ni))return this._languageService.getSignatureHelpItems(Ni,bt,Ms)}async getQuickInfoAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getQuickInfoAtPosition(Ni,bt)}async getDocumentHighlights(Ni,bt,Ms){if(!nu(Ni))return this._languageService.getDocumentHighlights(Ni,bt,Ms)}async getDefinitionAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getDefinitionAtPosition(Ni,bt)}async getReferencesAtPosition(Ni,bt){if(!nu(Ni))return this._languageService.getReferencesAtPosition(Ni,bt)}async getNavigationTree(Ni){if(!nu(Ni))return this._languageService.getNavigationTree(Ni)}async getFormattingEditsForDocument(Ni,bt){return nu(Ni)?[]:this._languageService.getFormattingEditsForDocument(Ni,bt)}async getFormattingEditsForRange(Ni,bt,Ms,Ra){return nu(Ni)?[]:this._languageService.getFormattingEditsForRange(Ni,bt,Ms,Ra)}async getFormattingEditsAfterKeystroke(Ni,bt,Ms,Ra){return nu(Ni)?[]:this._languageService.getFormattingEditsAfterKeystroke(Ni,bt,Ms,Ra)}async findRenameLocations(Ni,bt,Ms,Ra,g_){if(!nu(Ni))return this._languageService.findRenameLocations(Ni,bt,Ms,Ra,g_)}async getRenameInfo(Ni,bt,Ms){return nu(Ni)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(Ni,bt,Ms)}async getEmitOutput(Ni,bt,Ms){if(nu(Ni))return{outputFiles:[],emitSkipped:!0};let Ra=this._languageService.getEmitOutput(Ni,bt,Ms),g_=Ra.diagnostics?iW.clearFiles(Ra.diagnostics):void 0;return{...Ra,diagnostics:g_}}async getCodeFixesAtPosition(Ni,bt,Ms,Ra,g_){if(nu(Ni))return[];let Jp={};try{return this._languageService.getCodeFixesAtPosition(Ni,bt,Ms,Ra,g_,Jp)}catch{return[]}}async updateExtraLibs(Ni){this._extraLibs=Ni}async provideInlayHints(Ni,bt,Ms){if(nu(Ni))return[];let Ra=this._inlayHintsOptions??{},g_={start:bt,length:Ms-bt};try{return this._languageService.provideInlayHints(Ni,g_,Ra)}catch{return[]}}};function SL(nh,Ni){let bt=vv;if(Ni.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(Ni.customWorkerPath);let Ms=self.customTSWorkerFactory;if(!Ms)throw new Error(`The script at ${Ni.customWorkerPath} does not add customTSWorkerFactory to self`);bt=Ms(vv,Yn,wi)}return new bt(nh,Ni)}return globalThis.ts=Fl,Ft(zt)})();return P})});var ste=x=>new Promise(function(P){let Q=new MessageChannel;if(Q.port1.onmessage=function(ae){P(ae.data)},navigator.serviceWorker.controller==null){window.location.reload();return}navigator.serviceWorker.controller.postMessage(x,[Q.port2])}),A4e=()=>{ste({type:"SET_DIR_HANDLE",data:null}),clearInterval(ate),ate=null},XS,ate,tyt=()=>{ate==null&&(ate=setInterval(()=>{ste({type:"SET_DIR_HANDLE",data:XS})},1e4))},nyt=async()=>(XS=await globalThis.showDirectoryPicker(),await ste({type:"SET_DIR_HANDLE",data:XS}),XS),hbe=x=>{x.navigator.serviceWorker.ready.then(()=>{x.navigator.serviceWorker.addEventListener("message",P=>{P.data.type=="GET_DIR_HANDLE"&&P.ports[0].postMessage(XS)})})},ryt=()=>navigator.serviceWorker.register("service_worker.js").then(()=>navigator.serviceWorker.ready).then(()=>hbe(globalThis)).then(()=>ste({type:"GET_DIR_HANDLE"})).then(async x=>{if(x==null||await x.queryPermission()!="granted")return null;try{await x.entries().next()}catch{return null}return XS=x,XS}),lte=async(x,P,Q=!1,ae)=>{typeof P=="string"&&(P=P.split("/"));let[Ee,...Oe]=P;if(Oe.length==0)return Q?await x.getDirectoryHandle(Ee,ae):await x.getFileHandle(Ee,ae);{let dt=await x.getDirectoryHandle(Ee);return lte(dt,Oe,Q,ae)}},I4e=async(x,P)=>{let ae=await(await lte(XS,x)).createWritable();await ae.write(P),await ae.close()},iyt=x=>x.name=="node_modules"||x.name.startsWith("."),oyt=async x=>await(await x.getFile()).text(),x4e=async(x,P)=>{if(x.kind=="directory"){let Q=[];for await(let[ae,Ee]of x)iyt(Ee)||Q.push(Ee);return{name:x.name,path:P,kind:"directory",children:(await Promise.all(Q.map(ae=>x4e(ae,P==null?ae.name:P+"/"+ae.name)))).sort((ae,Ee)=>ae.name.localeCompare(Ee.name))}}else{if(x.kind=="file")return{name:x.name,path:P,kind:"file",contents:await oyt(x)};throw new Error("unknown kind")}},R4e=(x,P)=>lte(XS,x,P,{create:!0}),D4e=async x=>{let P=x.split("/"),Q=P.slice(0,P.length-1),ae=P.at(-1),Ee;return Q.length==0?Ee=XS:Ee=await lte(XS,Q,!0),[Ee,ae]},C4e=async x=>{let[P,Q]=await D4e(x);await P.removeEntry(Q,{recursive:!0})},N4e=async(x,P,Q)=>{let[ae,Ee]=await D4e(x),Oe;try{await ae.getFileHandle(P),Oe="file"}catch(Mt){if(Mt.name!=="NotFoundError"&&Mt.name!=="TypeMismatchError")throw Mt}try{await ae.getDirectoryHandle(P),Oe="directory"}catch(Mt){if(Mt.name!=="NotFoundError"&&Mt.name!=="TypeMismatchError")throw Mt}if(Oe)return{ok:!1,message:`A ${Oe} with that name already exists`};let dt=await Q?await ae.getDirectoryHandle(Ee):await ae.getFileHandle(Ee);if(Q){let Mt=await ae.getDirectoryHandle(P,{create:!0});await M4e(dt,Mt)}else await P4e(dt,ae,P);return await ae.removeEntry(Ee,{recursive:!0}),{ok:!0}};async function P4e(x,P,Q){let Ee=await(await x.getFile()).arrayBuffer(),dt=await(await P.getFileHandle(Q,{create:!0})).createWritable();await dt.write(Ee),await dt.close()}async function M4e(x,P){for await(let[Q,ae]of x.entries())if(ae.kind==="file")await P4e(ae,P,Q);else if(ae.kind==="directory"){let Ee=await P.getDirectoryHandle(Q,{create:!0});await M4e(ae,Ee)}}var mL=async x=>{let P;return x?P=await nyt():P=await ryt(),P==null?null:(tyt(),x4e(P,"local"))};var cte=x=>x.frames.get(x.active_calltree_node.id),dte=(x,P)=>({id:"calltree",children:[x,{id:"deferred_calls",children:P}]}),f0=x=>x.calltree.children[1].children,vy=x=>x.calltree.children[0],gv=x=>/\w+\/(.*)/.exec(x)[1],gbe=x=>x.project_dir.local_files!=null;window.addEventListener("unload",()=>{globalThis.app_window!=null&&globalThis.app_window.close()});ayt(window);function ayt(x){x.onerror=(P,Q,ae,Ee,Oe)=>{P!="ResizeObserver loop completed with undelivered notifications."&&(globalThis.app_window!=null&&Oe instanceof globalThis.app_window.Error||(oI==null?document.write(P):oI.set_status(P)))},x.addEventListener("unhandledrejection",P=>{let Q=P.reason;globalThis.app_window!=null&&Q instanceof globalThis.app_window.Error||(oI==null?document.write(Q):oI.set_status(Q))})}var syt=new URL("./__leporello_files",globalThis.location),ybe=x=>{let P=syt+"/";return x.html_file==null?P+"__leporello_blank.html":P+gv(x.html_file)+"?leporello"},L4e=x=>{hbe(x),_G=!1,As("reload_app_window_finished")},CC,vbe=x=>{_G=!0,CC=document.createElement("iframe"),CC.src=ybe(x),CC.setAttribute("hidden",""),document.body.appendChild(CC),globalThis.app_window=CC.contentWindow,w4e(globalThis.app_window)},k4e=x=>{CC!=null&&(CC.remove(),CC=null),_G=!0,As("open_app_window",!0),globalThis.app_window.close(),globalThis.app_window=open(ybe(x)),w4e(globalThis.app_window)},w4e=x=>{let P=()=>{let Ee=x.performance.getEntriesByType("navigation")[0];return Ee!=null&&Ee.loadEventEnd>0},Q=()=>{P()?(ae(),L4e(x)):x.addEventListener("load",()=>{ae(),L4e(x)},{once:!0})},ae=()=>{x.addEventListener("unload",Ee=>{setTimeout(()=>{x.closed?x==globalThis.app_window&&(As("open_app_window",!1),vbe(yv())):Q()},100)})};Q()},_G=!1,O4e=x=>{if(!_G){if(_G=!0,x==null)throw new Error("illegal state");globalThis.app_window.location=ybe(x)}};var lyt=Object.defineProperty,cyt=Object.defineProperties,dyt=Object.getOwnPropertyDescriptors,W4e=Object.getOwnPropertySymbols,uyt=Object.prototype.hasOwnProperty,pyt=Object.prototype.propertyIsEnumerable,F4e=(x,P,Q)=>P in x?lyt(x,P,{enumerable:!0,configurable:!0,writable:!0,value:Q}):x[P]=Q,V4e=(x,P)=>{for(var Q in P||(P={}))uyt.call(P,Q)&&F4e(x,Q,P[Q]);if(W4e)for(var Q of W4e(P))pyt.call(P,Q)&&F4e(x,Q,P[Q]);return x},j4e=(x,P)=>cyt(x,dyt(P)),hG=(x,P,Q)=>new Promise((ae,Ee)=>{var Oe=Ft=>{try{Mt(Q.next(Ft))}catch(zt){Ee(zt)}},dt=Ft=>{try{Mt(Q.throw(Ft))}catch(zt){Ee(zt)}},Mt=Ft=>Ft.done?ae(Ft.value):Promise.resolve(Ft.value).then(Oe,dt);Mt((Q=Q.apply(x,P)).next())}),fyt=(x,P)=>{let Q=`https://data.jsdelivr.com/v1/package/npm/${P}`;return Ebe(x,Q,{cache:"no-store"})},myt=(x,P,Q)=>{let ae=`https://data.jsdelivr.com/v1/package/resolve/npm/${P}@${Q}`;return Ebe(x,ae)},_yt=(x,P,Q)=>hG(void 0,null,function*(){let ae=`https://data.jsdelivr.com/v1/package/npm/${P}@${Q}/flat`,Ee=yield Ebe(x,ae);return Ee instanceof Error?Ee:j4e(V4e({},Ee),{moduleName:P,version:Q})}),z4e=(x,P,Q,ae)=>hG(void 0,null,function*(){let Ee=`https://cdn.jsdelivr.net/npm/${P}@${Q}${ae}`,dt=yield(x.fetcher||fetch)(Ee);return dt.ok?dt.text():new Error("OK")});function Ebe(x,P,Q){return(x.fetcher||fetch)(P,Q).then(Ee=>Ee.ok?Ee.json().then(Oe=>Oe):new Error("OK"))}var hyt=x=>{let P=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","stream/consumers","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];if(x.indexOf("node:")===0||P.includes(x))return"node";let[Q="",ae=""]=x.split("/");return Q.startsWith("@")?`${Q}/${ae}`:Q},U4e=x=>{let P=new Map,Q=new Map,ae=0,Ee=0;return dt=>(ae=0,Ee=0,Oe(dt,0).then(Mt=>{var Ft,zt;Ee>0&&((zt=(Ft=x.delegate).finished)==null||zt.call(Ft,Q))}));function Oe(dt,Mt){return hG(this,null,function*(){var Ft,zt,Yn,Jr,ti;let ci=yyt(x,P,dt);ci.forEach(Fl=>P.set(Fl.module,{state:"loading"}));let Sa=(yield Promise.all(ci.map(Fl=>G4e(x,Fl.module,Fl.version)))).filter(Fl=>!("error"in Fl)),ca=Sa.filter(Fl=>Fl.files.find(wi=>Sbe(wi.name))),ns=ca.map(Fl=>B4e(Fl,`/node_modules/${Fl.moduleName}`)),hs=Sa.filter(Fl=>!ca.includes(Fl)),Nl=(yield Promise.all(hs.map(Fl=>G4e(x,`@types/${bbe(Fl.moduleName)}`,"latest")))).filter(Fl=>!("error"in Fl)),Vh=Nl.map(Fl=>B4e(Fl,`/node_modules/@types/${bbe(Fl.moduleName).replace("types__","")}`)),eT=ns.concat(Vh).reduce((Fl,wi)=>Fl.concat(wi),[]);ae+=eT.length,eT.length&&Mt===0&&((zt=(Ft=x.delegate).started)==null||zt.call(Ft));for(let Fl of Sa){let wi=`/node_modules/${Fl.moduleName}`;Nl.includes(Fl)&&(wi=`/node_modules/@types/${bbe(Fl.moduleName).replace("types__","")}`);let nu=wi+"/package.json",vv=yield z4e(x,Fl.moduleName,Fl.version,"/package.json");typeof vv=="string"?(Q.set(nu,vv),(Jr=(Yn=x.delegate).receivedFile)==null||Jr.call(Yn,vv,nu)):(ti=x.logger)==null||ti.error(`Could not download package.json for ${Fl.moduleName}`)}yield Promise.all(eT.map(Fl=>hG(this,null,function*(){var wi,nu,vv;let SL=yield z4e(x,Fl.moduleName,Fl.moduleVersion,Fl.path);Ee++,SL instanceof Error?(wi=x.logger)==null||wi.error(`Had an issue getting ${Fl.path} for ${Fl.moduleName}`):(Q.set(Fl.vfsPath,SL),(vv=(nu=x.delegate).receivedFile)==null||vv.call(nu,SL,Fl.vfsPath),x.delegate.progress&&Ee%5===0&&x.delegate.progress(Ee,ae),yield Oe(SL,Mt+1))})))})}};function B4e(x,P){let Q=[];for(let ae of x.files)Sbe(ae.name)&&Q.push({moduleName:x.moduleName,moduleVersion:x.version,vfsPath:`${P}${ae.name}`,path:ae.name});return Q}var gyt=(x,P)=>{let Q=x.preProcessFile(P),ae=x.libMap||new Map;return Q.referencedFiles.concat(Q.importedFiles).concat(Q.libReferenceDirectives).filter(Oe=>!Sbe(Oe.fileName)).filter(Oe=>!ae.has(Oe.fileName)).map(Oe=>{let dt;if(!Oe.fileName.startsWith(".")){dt="latest";let Mt=P.slice(Oe.end).split(` +`)[0];Mt.includes("// types:")&&(dt=Mt.split("// types: ")[1].trim())}return{module:Oe.fileName,version:dt}}).filter((Oe,dt,Mt)=>Mt.findIndex(Ft=>Ft.module===Oe.module&&Ft.version===Oe.version)===dt)};function yyt(x,P,Q){return gyt(x.typescript,Q).map(Oe=>j4e(V4e({},Oe),{module:hyt(Oe.module)})).filter(Oe=>!Oe.module.startsWith(".")).filter(Oe=>!P.has(Oe.module))}var G4e=(x,P,Q)=>hG(void 0,null,function*(){let ae=Q||"latest";if(ae.split(".").length<2){let Oe=yield myt(x,P,ae);if(Oe instanceof Error)return{error:Oe,userFacingMessage:`Could not go from a tag to version on npm for ${P} - possible typo?`};let dt=Oe.version;if(!dt){let Mt=yield fyt(x,P);if(Mt instanceof Error)return{error:Oe,userFacingMessage:`Could not get versions on npm for ${P} - possible typo?`};let Ft=Object.entries(Mt.tags).join(", ");return{error:new Error("Could not find tag for module"),userFacingMessage:`Could not find a tag for ${P} called ${Q}. Did find ${Ft}`}}ae=dt}let Ee=yield _yt(x,P,ae);return Ee instanceof Error?{error:Ee,userFacingMessage:`Could not get the files for ${P}@${ae}. Is it possibly a typo?`}:Ee});function bbe(x){return x.indexOf("@")===0&&x.indexOf("/")!==-1&&(x=x.substr(1).replace("/","__")),x}function Sbe(x){return/\.d\.([^\.]+\.)?[cm]?ts$/i.test(x)}var NC={name:"leporello.d.ts",value:` declare var leporello: { storage: Map } - `};var _G,hG,_te,CC,Pbe,gG=new Promise(x=>Pbe=x);function Lbe(x,P){let Q=monaco.Uri.file(x),ae=monaco.editor.getModel(Q);return ae??(wbe(P),monaco.editor.createModel(P,"typescript",Q))}function Y4e(x){let P=monaco.Uri.file(x),Q=monaco.editor.getModel(P);Q?.dispose()}async function $4e(){return await new Promise(x=>setTimeout(x,0)),hG.getLanguageService().getProgram()}var Mbe="customWorkerPathToken";globalThis.importScripts=x=>{if(x!=Mbe)throw new Error("illegal state");delete globalThis.importScripts};globalThis.customTSWorkerFactory=(x,P)=>(delete globalThis.customTSWorkerFactory,class extends x{constructor(...ae){super(...ae),hG=this,_G=P.typescript,kbe?(Q4e(_G),hG.getLibFiles().then(Ee=>Pbe([_G,Ee]))):Pbe([_G])}async getSyntacticDiagnostics(ae,...Ee){let Oe=globalThis.parse_ts_blacklist,Mt=this.getLanguageService().getProgram().getSourceFile(ae),zt=await super.getSyntacticDiagnostics(ae,...Ee);if(Mt==null)return zt;let wt=Oe(Mt);return[...zt,...wt]}});function Q4e(x){CC={moduleResolution:kbe?void 0:globalThis.monaco?.languages.typescript.ModuleResolutionKind.NodeJs,moduleDetection:3,target:x.ScriptTarget.Latest,module:x.ModuleKind.ESNext,lib:["lib.esnext.d.ts","lib.dom.d.ts",RC.name],noEmitOnError:!0,verbatimModuleSyntax:!0,jsx:x.JsxEmit.React,noResolve:!0,skipLibCheck:!0,allowJs:!0,checkJs:!0,noEmit:!0,allowNonTsExtensions:!0}}var kbe=globalThis.process!=null;if(kbe){let x=Object.getOwnPropertyDescriptor(globalThis,"process");Object.defineProperty(globalThis,"process",{value:void 0});let P;globalThis.define=(Q,ae,Ee)=>P=Ee(),await Promise.resolve().then(()=>(X4e(),yyt)),Object.defineProperty(globalThis,"process",x),globalThis.self=globalThis,P.create(null,{customWorkerPath:Mbe}),delete globalThis.self}else ote.config({paths:{vs:window.location.origin+"/lib/monaco/vs","monaco-vim":"/lib/monaco-vim.js"}}),self.MonacoEnvironment={getWorker:()=>null},ote(["vs/editor/editor.main"],async function(){ote(["monaco-vim"],P=>{_te=P}),monaco.languages.typescript.typescriptDefaults.setWorkerOptions({customWorkerPath:Mbe}),Q4e(monaco.languages.typescript),monaco.languages.typescript.typescriptDefaults.setCompilerOptions(CC),monaco.languages.typescript.typescriptDefaults.addExtraLib(RC.value,RC.name);let x=monaco.editor.createModel("","typescript");await gG,x.dispose()});await gG;var wbe=G4e({typescript:_G,logger:console,delegate:{receivedFile:vyt}});function vyt(x,P){let Q="file://"+P;monaco.languages.typescript.typescriptDefaults.addExtraLib(x,Q)}function Obe(x){let P,Q=!1,ae=!1;new MutationObserver(()=>{if(!Q){if(P=x.style.top,P==null||P=="")return;Q=!0;return}if(ae){ae=!1;return}x.style.top!==P&&(ae=!0,x.style.top=P)}).observe(x,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})}var byt=(x,{on_change:P,on_change_selection:Q,is_change_selection_supressed:ae,on_change_immediate:Ee,on_change_selection_immediate:Oe})=>{let zt=x.getContribution("editor.contrib.suggestController").widget.value,wt=!1,lr;$r();function $r(){lr={}}let ni=Zo=>{lr.tid=setTimeout(()=>{lr.tid=null,oa()},Zo)},Rr=()=>{lr.tid!=null&&clearTimeout(lr.tid)},oa=()=>{try{lr.change_args!=null?P(...lr.change_args):lr.change_selection_args!=null&&Q(...lr.change_selection_args)}finally{$r()}};x.onDidChangeModelContent((...Zo)=>{lr.immediate_change_fired||(lr.immediate_change_fired=!0,Ee()),Rr(),lr.change_args=Zo,!wt&&ni(1e3)}),x.onDidChangeCursorPosition((...Zo)=>{x.getSelection().isEmpty()&&(ae()||wt||(lr.change_selection_args=Zo,Oe(...Zo),Rr(),ni(200)))}),zt.onDidShow(()=>{wt=!0,Rr()}),zt.onDidHide(()=>{wt=!1,lr.change_args!=null&&ni(1e3)})},hte=class{constructor(P,Q){this.ui=P,this.editor_container=Q,this.make_resizable(),this.markers=new WeakMap,monaco.editor.EditorOptions.padding.constructor.prototype.validate=function(ae){return{top:0,bottom:ae?.bottom??0}},this.monaco_editor=monaco.editor.create(this.editor_container,{minimap:{enabled:!1},occurrencesHighlight:!1,lineNumbersMinChars:3,glyphMargin:!1,folding:!1,fontSize:16,tabSize:2,automaticLayout:!0}),this.monaco_editor.onDidScrollChange(ae=>{this.old_scroll_top=ae._oldScrollTop}),byt(this.monaco_editor,{on_change:()=>{this.is_typing=!1;let ae=this.monaco_editor.getModel().getValue();wbe(ae);let Ee=hG.getLanguageService().getProgram();Ws("input",ae,this.get_cursor_position(),Ee)},on_change_immediate:()=>{this.is_typing=!0,this.unembed_value_explorer()},on_change_selection:()=>{this.is_typing=!1,this.is_change_selection_supressed||Ws("move_cursor",this.get_cursor_position())},on_change_selection_immediate:ae=>{if(this.is_typing=!0,!this.has_value_explorer())return;let Ee=this.monaco_editor.getModel().getOffsetAt(ae.position);this.value_explorer.data.length==null||Ee>=this.value_explorer.data.index&&Eethis.is_change_selection_supressed}),setTimeout(()=>{this.focus()},0),this.init_keyboard(),this.has_value_explorer_key=this.monaco_editor._contextKeyService.createKey("has_value_explorer",!1)}focus(){this.monaco_editor.focus()}supress_change_selection(P){try{this.is_change_selection_supressed=!0,P()}finally{this.is_change_selection_supressed=!1}}get_session(P){return monaco.editor.getModel(monaco.Uri.file(P))}switch_session(P){let Q=this.get_session(P);this.monaco_editor.setModel(Q)}has_value_explorer(){return this.value_explorer!=null}set_padding_bottom(){if(this.has_value_explorer()){let Q=this.value_explorer.el.children[0].clientHeight;this.monaco_editor.updateOptions({padding:{bottom:Q}})}else this.monaco_editor.updateOptions({padding:{bottom:0}})}unembed_value_explorer(){if(!this.has_value_explorer())return null;this.has_value_explorer_key.set(!1),this.value_explorer.is_dom_el?(this.monaco_editor.changeViewZones(P=>{P.removeZone(this.value_explorer.zone_id)}),this.monaco_editor.setScrollTop(this.old_scroll_top),this.monaco_editor.revealPosition(this.monaco_editor.getPosition())):(this.monaco_editor.removeContentWidget(this.value_explorer),this.set_padding_bottom()),this.value_explorer=null}embed_value_explorer(P,Q){let{index:ae,length:Ee,call_id:Oe,is_jump_here:dt,is_dom_el:Mt}=Q,zt={is_jump_here:dt,execution_id:P.execution_id,call_id:Oe,index:ae,length:Ee};if(this.has_value_explorer()){let ni=this.value_explorer.key;if(ni.jump_here==zt.jump_here&&ni.execution_id==zt.execution_id&&ni.call_id==zt.call_id&&ni.index==zt.index&&ni.length==zt.length){this.value_explorer.el.classList.toggle("display-none",!1);return}}this.unembed_value_explorer(),this.has_value_explorer_key.set(!0);let wt=this.monaco_editor.getModel(),lr,$r=Mr("div",{class:"embed_value_explorer_container"},Mr("div",{class:"embed_value_explorer_wrapper"},lr=Mr("div",{class:"embed_value_explorer_content",tabindex:0})));if(dt)lr.appendChild(Mr("span",{style:"padding: 0em 1em"},Mr("a",{href:"javascript: void(0)",click:()=>Ws("jump_here")},"Jump here")," ",navigator.platform.toLowerCase().includes("mac")?Mr("span",{style:"font-family: system-ui"},"\u2318Enter"):"Ctrl-Enter"));else{let{result:{ok:ni,value:Rr,error:oa,is_calltree_node_explorer:Zo}}=Q;if(ni)if(Mt)if(Rr.is_svg){let fs=document.createElementNS("http://www.w3.org/2000/svg","svg");fs.appendChild(Rr.dom_node),lr.appendChild(fs)}else lr.appendChild(Rr.dom_node);else{let fs,gs=()=>{fs!=null&&this.monaco_editor.setScrollTop(fs),this.value_explorer.return_to==null?this.focus():this.value_explorer.return_to.focus()};$r.addEventListener("keydown",md=>{md.key=="Escape"&&gs()});let Za=new fte({container:lr,event_target:$r,on_escape:gs,on_expand:()=>this.set_padding_bottom(),scroll_to_element:md=>{fs==null&&(fs=this.monaco_editor.getScrollTop());let Gd=md.getBoundingClientRect().bottom-this.editor_container.getBoundingClientRect().bottom;Gd>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()+Gd);let by=this.editor_container.getBoundingClientRect().top-md.getBoundingClientRect().top;by>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()-by)}});Zo?Za.render(P,{object_entries:Object.entries(Rr)},{is_expanded:!0,is_calltree_node_explorer:!0,children:{args:{label:"arguments",is_expanded:!0,is_arguments:!0},return_value:{label:"return"},throws:{label:"throws"},context_before:{label:"this before call"},context_after:{label:"this after call"}}}):Za.render(P,Rr,{is_expanded:!0})}else lr.appendChild(Mr("span","eval_error",oa==null?""+oa:oa.toString()))}if(Mt){let ni=this.value_explorer={is_dom_el:Mt,el:$r,content:lr,key:zt,data:Q};$r.classList.add("is_dom_el");let Rr;this.monaco_editor.changeViewZones(oa=>{(async()=>{for(;!document.contains(ni.el)||ni.el.style.display=="none";)await new Promise(fs=>setTimeout(fs,0));$r.style.height="",Rr=$r.clientHeight,this.monaco_editor.changeViewZones(fs=>{fs.layoutZone(ni.zone_id)})})();let Zo=wt.getPositionAt(ae+Ee);ni.zone_id=oa.addZone({afterLineNumber:Zo.lineNumber,domNode:ni.el,get heightInPx(){return Rr}})})}else{$r.classList.add("is_not_dom_el");let ni=wt.getPositionAt(ae);ni.column=0;let Rr=0,oa=ni.lineNumber,Zo=this.monaco_editor.getVisibleRanges()[0].endLineNumber;for(let gs=oa;gs<=Zo;gs++)Rr=Math.max(Rr,wt.getLineContent(gs).length);lr.style.marginLeft=Rr+1+"ch";let fs=this.value_explorer={el:$r,content:lr,is_dom_el:Mt,key:zt,data:Q,getId(){return"value_explorer"},getDomNode(){return this.el},getPosition(){return{position:ni,preference:[monaco.editor.ContentWidgetPositionPreference.EXACT]}}};Obe(fs.el),this.monaco_editor.addContentWidget(fs),this.set_padding_bottom()}}focus_value_explorer(P){this.value_explorer!=null&&(this.value_explorer.return_to=P,this.value_explorer.content.focus({preventScroll:!0}))}set_keyboard_handler(P){if(P!=null&&(localStorage.keyboard=P),P=="vim"){this.vimMode=_te.initVimMode(this.monaco_editor);let Q=_te.VimMode.Vim;Q.mapCommand("gd","motion","goToDefinition",{},{context:"normal"}),Q.defineMotion("goToDefinition",()=>{this.monaco_editor.trigger("keyboard","editor.action.revealDefinition",{})}),Q.map("jj","","insert")}else this.vimMode?.dispose(),delete this.vimMode}init_keyboard(){this.set_keyboard_handler(localStorage.keyboard);let P="0_custom";this.monaco_editor.addCommand(monaco.KeyCode.F1,()=>this.focus_value_explorer()),this.monaco_editor.addAction({id:"focus_value_explorer",label:"Focus value inspector",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyCode.F1],precondition:"has_value_explorer",run:()=>this.focus_value_explorer()}),this.monaco_editor.addAction({id:"jump_here",label:"Jump here",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter],run:()=>Ws("jump_here")}),monaco.editor.addKeybindingRule({keybinding:monaco.KeyMod.CtrlCmd|monaco.KeyCode.F12,command:"editor.action.revealDefinition"});for(let Q of[monaco.KeyCode.F2,monaco.KeyCode.F3,monaco.KeyCode.F4])monaco.editor.addKeybindingRule({keybinding:Q,command:null});this.monaco_editor.addAction({id:"step_into",label:"Step into function call",contextMenuGroupId:P,contextMenuOrder:3,keybindings:[monaco.KeyCode.F11],run:()=>Ws("step_into")}),this.monaco_editor.addAction({id:"step_out",label:"Step out of current function",contextMenuGroupId:P,contextMenuOrder:4,keybindings:[monaco.KeyCode.F11|monaco.KeyMod.Shift],run:()=>Ws("calltree.arrow_left")}),this.monaco_editor.addAction({id:"expand_selection",label:"Expand selection",contextMenuGroupId:P,contextMenuOrder:1,keybindings:[monaco.KeyMod.WinCtrl|monaco.KeyCode.KeyK,monaco.KeyMod.WinCtrl|monaco.KeyCode.UpArrow],run:()=>Ws("eval_selection",this.get_cursor_position(),!0)}),this.monaco_editor.addAction({id:"collapse_selection",label:"Collapse selection",contextMenuGroupId:P,contextMenuOrder:2,keybindings:[monaco.KeyMod.WinCtrl|monaco.KeyCode.KeyJ,monaco.KeyMod.WinCtrl|monaco.KeyCode.DownArrow],run:()=>Ws("eval_selection",this.get_cursor_position(),!1)})}set_markers(P,Q,ae){let Ee=this.get_session(P),Oe=this.markers.get(Ee);Oe==null&&(Oe={},this.markers.set(Ee,Oe)),Oe[Q]==null?Oe[Q]=this.monaco_editor.createDecorationsCollection(ae):Oe[Q].set(ae)}clear_markers(P,Q){let ae=this.get_session(P),Oe=this.markers.get(ae)?.[Q];Oe?.clear()}get_cursor_position(){return this.monaco_editor.getModel().getOffsetAt(this.monaco_editor.getPosition())}set_cursor_position(P){if(P==null)throw new Error("illegal state");this.is_typing||this.supress_change_selection(()=>{let Q=this.monaco_editor.getModel().getPositionAt(P);this.monaco_editor.setPosition(Q),this.monaco_editor.revealPosition(Q)})}getFontFamily(){return this.monaco_editor.getOption(monaco.editor.EditorOption.fontFamily)}getLineHeight(){return this.monaco_editor.getOption(monaco.editor.EditorOption.lineHeight)+"px"}make_resizable(){let P=()=>{this.editor_container.style.height=localStorage.editor_height+"vh"},Q=new Date().getTime();window.addEventListener("resize",()=>{Q=new Date().getTime()}),localStorage.editor_height!=null&&P();let ae=!0;new ResizeObserver(Ee=>{if(ae){ae=!1;return}if(new Date().getTime()-Q<100)return;let Oe=this.editor_container.offsetHeight/window.innerHeight*100;localStorage.editor_height=Oe,setTimeout(P,0)}).observe(this.editor_container)}};var uEt=new Function("arr","pred",` + `};var gG,Dbe,pte,MC,Cbe,yG=new Promise(x=>Cbe=x);function Pbe(x,P){let Q=monaco.Uri.file(x),ae=monaco.editor.getModel(Q);return ae??(Lbe(P),monaco.editor.createModel(P,"typescript",Q))}function Z4e(x){let P=monaco.Uri.file(x),Q=monaco.editor.getModel(P);Q?.dispose()}async function e3e(){return await new Promise(x=>setTimeout(x,0)),Dbe.getLanguageService().getProgram()}var Nbe="customWorkerPathToken";globalThis.importScripts=x=>{if(x!=Nbe)throw new Error("illegal state");delete globalThis.importScripts};globalThis.customTSWorkerFactory=(x,P)=>(delete globalThis.customTSWorkerFactory,class extends x{constructor(...ae){super(...ae),Dbe=this,gG=P.typescript,Mbe?(t3e(gG),Dbe.getLibFiles().then(Ee=>Cbe([gG,Ee]))):Cbe([gG])}async getSyntacticDiagnostics(ae,...Ee){let Oe=globalThis.parse_ts_blacklist,Mt=this.getLanguageService().getProgram().getSourceFile(ae),Ft=await super.getSyntacticDiagnostics(ae,...Ee);if(Mt==null)return Ft;let zt=Oe(Mt);return[...Ft,...zt]}});function t3e(x){MC={moduleResolution:Mbe?void 0:globalThis.monaco?.languages.typescript.ModuleResolutionKind.NodeJs,moduleDetection:3,target:x.ScriptTarget.Latest,module:x.ModuleKind.ESNext,lib:["lib.esnext.d.ts","lib.dom.d.ts",NC.name],noEmitOnError:!0,verbatimModuleSyntax:!0,jsx:x.JsxEmit.React,noResolve:!0,skipLibCheck:!0,allowJs:!0,checkJs:!0,noEmit:!0,allowNonTsExtensions:!0}}var Mbe=globalThis.process!=null;if(Mbe){let x=Object.getOwnPropertyDescriptor(globalThis,"process");Object.defineProperty(globalThis,"process",{value:void 0});let P;globalThis.define=(Q,ae,Ee)=>P=Ee(),await Promise.resolve().then(()=>(Q4e(),vyt)),Object.defineProperty(globalThis,"process",x),globalThis.self=globalThis,P.create(null,{customWorkerPath:Nbe}),delete globalThis.self}else ote.config({paths:{vs:window.location.origin+"/lib/monaco/vs","monaco-vim":"/lib/monaco-vim.js"}}),self.MonacoEnvironment={getWorker:()=>null},ote(["vs/editor/editor.main"],async function(){ote(["monaco-vim"],P=>{pte=P}),monaco.languages.typescript.typescriptDefaults.setWorkerOptions({customWorkerPath:Nbe}),t3e(monaco.languages.typescript),monaco.languages.typescript.typescriptDefaults.setCompilerOptions(MC),monaco.languages.typescript.typescriptDefaults.addExtraLib(NC.value,NC.name);let x=monaco.editor.createModel("","typescript");await yG,x.dispose()});await yG;var Lbe=U4e({typescript:gG,logger:console,delegate:{receivedFile:byt}});function byt(x,P){let Q="file://"+P;monaco.languages.typescript.typescriptDefaults.addExtraLib(x,Q)}await yG;var[Eyt,kbe]=await yG;var Ye=Eyt;var iEt=new Function("arr","pred",` for(let i = arr.length - 1; i >= 0; i--) { if(pred(arr[i])) { return arr[i] } } -`);var Z4e=(x,P)=>Object.fromEntries(Object.entries(x).map(([Q,ae])=>[Q,P(Q,ae)]));var e3e=new Function("fn","acc","arr",` +`);var n3e=(x,P)=>Object.fromEntries(Object.entries(x).map(([Q,ae])=>[Q,P(Q,ae)]));var r3e=new Function("fn","acc","arr",` let idx = 0; const len = arr.length; const result = []; @@ -51324,42 +51324,39 @@ interface WebGLRenderingContextOverloads { idx += 1; } return [tuple[0], result]; -`),Wbe=(x,P)=>x.reduce((Q,ae,Ee)=>Q??P(ae,Ee),null);var t3e=x=>[...new Set(x)];var n3e="scratch.js";function iW(){let x=localStorage.scratch_files,P;return x==null?P=[{kind:"file",name:n3e,path:"scratch/"+n3e}]:P=JSON.parse(x),{kind:"directory",path:"scratch",children:P}}function pL(){let x=iW();return{...x,children:x.children.map(P=>({...P,contents:Eyt(P.path)}))}}function yG(x){localStorage.scratch_files=JSON.stringify(x)}function Eyt(x){return localStorage[x]??""}function Fbe(x,P){localStorage[x]=P}function r3e(x,P){let Q="New file name",ae=Q;for(;;){if(P=prompt(ae,P),P==null)return null;if(x.find(Ee=>Ee.name==P)!=null){ae=`File with such name already exists -`+Q;continue}if(!/\.(js|ts)[x]?$/.test(P)){ae=`Must have a .js(x) or .ts(x) extension -`+Q;continue}return P}}function i3e(){let x=iW().children,P=r3e(x);if(P==null)return null;let Q={kind:"file",name:P,path:"scratch/"+P};return x.unshift(Q),yG(x),Q}function o3e(x,P){let Q=iW().children,ae,Ee,Oe=0;for(;ae=x+(Oe==0?"":" "+Oe),Ee="scratch/"+ae,Q.find(dt=>dt.path==Ee)!=null;)Oe++;return Q.unshift({kind:"file",name:ae,path:Ee}),Fbe(Ee,P),yG(Q),pL()}function a3e(x){let P=iW().children;return P.length==1?(alert("Cannot remove the only scratch file"),!1):(P=P.filter(Q=>Q.path!=x),delete localStorage[x],yG(P),!0)}function s3e(x){let P=iW().children,Q=P.find(Ee=>Ee.path==x),ae=r3e(P,Q.name);return ae==null?null:(c3e(Q,ae),yG(P),Q)}function l3e(x,P){let Q=iW().children,ae=Q.find(wt=>wt.path==x),Ee=/\.(js|ts)(x)?$/,dt=Ee.exec(ae.name)[2],Mt=(P?".ts":".js")+(dt??""),zt=ae.name.replace(Ee,Mt);return c3e(ae,zt),yG(Q),ae}function c3e(x,P){let Q=x.path;x.name=P,x.path="scratch/"+P,localStorage[x.path]=localStorage[Q]??"",delete localStorage[Q]}function gte(x){let P=pL();Ws("load_scratch_dir",P,x)}var Syt=x=>x.endsWith(".htm")||x.endsWith(".html"),d3e=x=>x.endsWith(".js")||x.endsWith(".ts")||x.endsWith(".mjs")||x.endsWith(".jsx")||x.endsWith(".tsx"),yte=class{constructor(P,Q){this.ui=P,this.el=Mr("dialog","panel files_container"),this.active_tab=Q.current_module.startsWith("scratch/")?0:1,this.render(Q),this.el.addEventListener("click",ae=>{let Ee=this.el.getBoundingClientRect();Ee.top<=ae.clientY&&ae.clientY<=Ee.bottom&&Ee.left<=ae.clientX&&ae.clientX<=Ee.right||this.el.close()}),this.el.addEventListener("close",()=>{P.editor.focus()})}change_html_file(P){Ws("change_html_file",P.target.value)}render(P){this.file_to_el=new Map;let Q=vbe(P),ae=Mr("div","file_tabs",Mr("a",{href:"javascript: void(0)",class:"tab",click:this.set_active_tab.bind(this,0)},"Scratch files"),Mr("a",{href:"javascript: void(0)",class:"tab "+(Q?" ":"disabled"),click:Q?this.set_active_tab.bind(this,1):()=>null},Mr("span","","Local filesystem"),Mr("a",{href:"javascript: void(0)",class:"file_access",click:this.change_filesystem_access.bind(this,Q)},Q?"Revoke access":"Grant access"))),Ee=this.render_scratch_files(P),Oe=this.render_local_files(P);if(this.el.children.length==0)this.el.appendChild(ae),this.el.appendChild(Ee),Oe!=null&&this.el.appendChild(Oe),this.tabs=ae,this.scratch_files=Ee,this.local_files=Oe;else{this.el.replaceChild(ae,this.tabs),this.tabs=ae,this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe),this.local_files!=null&&Oe==null?(this.el.removeChild(this.local_files),this.local_files=null):this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe);for(let[dt,Mt]of[[this.scratch_files,Ee],[this.local_files,Oe]]){if(dt==null||dt==Mt)break;dt.replaceChild(Mt.getElementsByClassName("file_actions")[0],dt.getElementsByClassName("file_actions")[0]),dt.getElementsByClassName("files")[0].replaceChildren(...Mt.getElementsByClassName("files")[0].children)}}this.render_active_tab()}set_active_tab(P){this.active_tab=P,this.render_active_tab()}render_active_tab(){[...this.tabs.children].forEach((P,Q)=>{P.classList.toggle("active",Q==this.active_tab)}),[this.scratch_files,this.local_files].forEach((P,Q)=>{P?.classList.toggle("hidden",Q!=this.active_tab)})}render_scratch_files(P){let Q=Mr("div","file_actions",Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_scratch_file.bind(this,!1)},"New file"),Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),Mr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return Mr("div","file_tab_container",Q,Mr("div","files",P.project_dir.scratch_files.children.map(ae=>this.render_file(ae,P))))}render_local_files(P){if(!vbe(P))return null;let Q=Mr("div","file_actions",Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!1)},"New file"),Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!0)},"New dir"),Mr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),Mr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return Mr("div","file_tab_container",Q,Mr("div","files",this.render_file(P.project_dir.local_files,P)))}render_current_module(P){this.current_file=P,this.active_el.querySelector(".file_title").classList.remove("active"),this.active_el=this.file_to_el.get(P),this.active_el.querySelector(".file_title").classList.add("active"),this.el.querySelector(".rename_file").classList.toggle("disabled",!P.startsWith("scratch/"))}render_select_entrypoint(P,Q){return null}render_file(P,Q){let ae=Mr("div","file",Mr("div",{class:"file_title"+(P.path==Q.current_module?" active":""),click:Ee=>this.on_click(Ee,P)},Mr("span","icon",P.kind=="directory"?"\u{1F4C1}":"\xA0"),P.name,this.render_select_entrypoint(P,Q)),P.children==null?null:P.children.map(Ee=>this.render_file(Ee,Q)));return this.file_to_el.set(P.path,ae),P.path==Q.current_module&&(this.active_el=ae,this.current_file=P.path),ae}change_filesystem_access(P,Q){Q.stopPropagation(),P?(p3e(),this.set_active_tab(0)):(u3e(),this.set_active_tab(1))}create_scratch_file(){let P=i3e();P!=null&>e(P.path)}async remove_file(){if(this.current_file=="local"){alert("Cannot delete root directory");return}let P=`Are you sure you want to delete this file? -Path: `+gv(this.current_file);if(confirm(P))if(this.current_file.startsWith("local/")){await I4e(gv(this.current_file));let Q=await cL(!1);Ws("load_local_dir",Q)}else{if(!a3e(this.current_file))return;gte(pL().children[0].path)}}async rename_file(){if(this.current_file.startsWith("scratch/")){let P=s3e(this.current_file);if(P==null)return;Ws("load_scratch_dir",pL(),P.path),gte(P.path)}else{if(this.current_file=="local"){alert("Cannot rename root directory");return}let P=wt=>wt.path==this.current_file?wt:wt.children==null?null:Wbe(wt.children,lr=>P(lr)),Q=P(yv().project_dir.local_files),ae=Q.kind=="directory",Ee=prompt("Enter new name",Q.name);if(Ee==null)return;let{ok:Oe,message:dt}=await x4e(gv(this.current_file),Ee,ae);if(!Oe){alert(dt);return}let Mt=await cL(!1),zt=Q.path.split("/").slice(0,-1).join("/")+"/"+Ee;if(ae){let wt=yv().entrypoint;wt.startsWith(Q.path)?Ws("create_local_file",Mt,wt.replace(Q.path,zt)):Ws("load_local_dir",Mt),this.render_current_module(zt)}else Ws("create_local_file",Mt,zt)}}change_use_ts(P){let Q=yv().current_module,ae=l3e(Q,P);gte(ae.path)}async create_local_file(P){let Q=prompt(`Enter ${P?"directory":"file"} name`);if(Q==null)return;let ae=yv().project_dir.local_files,Ee,Oe,dt=this.current_file.startsWith("scratch/")?ae.path:this.current_file,Mt=(lr,$r)=>lr.path==dt?[lr,$r]:lr.children==null?null:Wbe(lr.children,ni=>Mt(ni,lr));if([Oe,Ee]=Mt(ae),Oe.kind=="directory")Ee=Oe;else if(Ee==null)throw new Error("illegal state");let zt=Ee.path+"/"+Q;await T4e(gv(zt),P);let wt=await cL(!1);P?(Ws("load_local_dir",wt),this.render_current_module(zt)):Ws("create_local_file",wt,zt)}on_click(P,Q){P.stopPropagation(),Q.kind!="directory"&&(Q.path.startsWith("scratch/")||d3e(Q.path))&&Ws("change_entrypoint",Q.path),this.render_current_module(Q.path)}};await gG;var[Tyt,zbe]=await gG;var $e=Tyt;var aI=new Set;for(let x in $e.Diagnostics)(x.startsWith("Duplicate")||x.includes("super")||x.includes("Super")||x.includes("used_before")||x.includes("redeclare"))&&aI.add($e.Diagnostics[x].code);aI.add(1108);aI.add(1155);aI.add(1308);aI.add(1103);aI.add(1163);aI.add(1104);aI.add(1105);aI.add(2588);(function(){let P=$e.factory.createIdentifier("test").__proto__,Q=$e.factory.createBlock([]).__proto__,ae=$e.factory.createToken($e.SyntaxKind.FalseKeyword).__proto__;for(let Ee of[P,Q,ae])Object.defineProperty(Ee,"index",{get:function(){return this.getStart()},configurable:!1,enumerable:!1}),Object.defineProperty(Ee,"length",{get:function(){return this.getWidth()},configurable:!1,enumerable:!1}),Object.defineProperty(Ee,"kind_name",{get:function(){return $e.SyntaxKind[this.kind]},configurable:!1,enumerable:!1})})();var Bbe=$e.ScriptTarget.Latest,Ayt=$e.createSourceFile(RC.name,RC.value,Bbe),Iyt={...CC,noLib:!0},vte=x=>$e.createSourceFile("temp.ts",x,Bbe,!1,$e.ScriptKind.JSX),f3e={};function xyt(x){let P=f3e[x];return P==null&&(P=$e.createSourceFile(x,zbe[x],Bbe,void 0,$e.ScriptKind.TSX),f3e[x]=P),P}var Ryt=x=>"file:///"+encodeURI(x),Dyt=x=>decodeURI(x.replace(/^file:\/\/\//,"")),m3e=(x,P,Q=!1)=>{let ae={resolveLibrary(Oe,dt,Mt,zt){return{path:zt}},readFile(Oe){throw new Error("not implemented")},useCaseSensitiveFileNames(){return!1},getDefaultLibFileName(){return"lib.d.ts"},getCurrentDirectory(){return""},getCanonicalFileName(Oe){return Oe},resolveModuleNames(Oe){return Oe.map(dt=>({resolvedFileName:dt,extension:".js"}))},getSourceFile(Oe){if(Oe==RC.name)return Ayt;if(zbe?.[Oe]!=null)return xyt(Oe);if(Oe==x)return P;throw new Error("illegal state")}};return $e.createProgram([x],Q?Iyt:CC,ae)};function Cyt(x){let P=new WeakMap;return function(Q){let ae=P.get(Q);return ae!=null||(ae=x(Q),P.set(Q,ae)),ae}}var _3e=Cyt(function(x){let P=[];function Q(ae){ae.kind==$e.SyntaxKind.ImportDeclaration&&(ae.moduleSpecifier.text.startsWith(".")||ae.moduleSpecifier.text.startsWith("/"))&&P.push({node:ae,messageText:"Local imports are not supported yet. Please use a full URL starting with https:// or specify an npm package name"}),ae.kind==$e.SyntaxKind.VariableDeclarationList&&!(ae.flags&($e.NodeFlags.Let|$e.NodeFlags.Const))&&P.push({node:ae,messageText:'"var" declarations are not supported. Use "let" declarations instead'}),($e.isFunctionDeclaration(ae)||$e.isFunctionExpression(ae)||$e.isMethodDeclaration(ae))&&ae.asteriskToken!==void 0&&P.push({node:ae,messageText:"Generator functions are not implemented"}),(ae.kind==$e.SyntaxKind.CallExpression||ae.kind==$e.SyntaxKind.NewExpression)&&ae.questionDotToken!=null&&P.push({node:ae,messageText:"Optional chaining with function calls is not implemented"});let Ee=$e.SyntaxKind[ae.kind];ae.kind==$e.SyntaxKind.ForOfStatement&&ae.awaitModifier!=null&&P.push({node:ae,messageText:"for-await loops are not supported."}),(ae.kind==$e.SyntaxKind.TryStatement||ae.kind==$e.SyntaxKind.ClassDeclaration||ae.kind==$e.SyntaxKind.LabeledStatement||ae.kind==$e.SyntaxKind.ClassExpression||ae.kind==$e.SyntaxKind.SwitchStatement||ae.kind==$e.SyntaxKind.MethodDeclaration||ae.kind==$e.SyntaxKind.GetAccessor||ae.kind==$e.SyntaxKind.SetAccessor||ae.kind==$e.SyntaxKind.TaggedTemplateExpression)&&P.push({node:ae,messageText:`${Ee} is not implemented`});function Oe(dt){return dt.kind==$e.SyntaxKind.PropertyAccessExpression||dt.kind==$e.SyntaxKind.ElementAccessExpression||dt.kind==$e.SyntaxKind.CallExpression}Oe(ae)&&ae.questionDotToken!=null&&ae.parent!=null&&Oe(ae.parent)&&ae.parent.questionDotToken==null&&P.push({node:ae,messageText:"Only the last element of access chain can be optional"}),$e.forEachChild(ae,Q)}return Q(x),P.map(({node:ae,messageText:Ee})=>({file:x,start:ae.getStart(),length:ae.getWidth(),messageText:Ee,category:$e.DiagnosticCategory.Error,code:96488}))});globalThis.parse_ts_blacklist=_3e;var h3e=(x,P)=>{let Q=$e.getScriptKindFromFileName(x),ae=P.getSourceFile(Ryt(x)),Ee=$e.sortAndDeduplicateDiagnostics([...P.getDeclarationDiagnostics(ae),...P.getSyntacticDiagnostics(ae),..._3e(ae),...P.getSemanticDiagnostics(ae).filter(zt=>aI.has(zt.code))]),Oe=Ee.length==0,dt=Q==$e.ScriptKind.TS||Q==$e.ScriptKind.TSX,Mt;if(dt){let zt=function(wt,lr){wt.parent=lr,$e.forEachChild(wt,$r=>zt($r,wt))};Mt=$e.transform(ae,[$e.transformTypeScript],CC).transformed[0],zt(Mt),delete Mt.original,$e.forEachChildRecursively(Mt,wt=>{delete wt.original})}else Mt=ae;return{ok:Oe,program:P,sorted:[x],modules:Oe?{[x]:Mt}:null,problems:Ee.map(zt=>{let wt=$e.flattenDiagnosticMessageText(zt.messageText,` -`);if(zt.length==null)throw new Error("illegal state");return{message:wt,index:zt.start,length:zt.length,module:Dyt(zt.file.fileName)}})}};var bte=$e.SyntaxKind,lp=x=>$e.isFunctionLike(x),Gbe=x=>(x.parent?.kind==$e.SyntaxKind.ForOfStatement||x.parent?.kind==$e.SyntaxKind.ForInStatement)&&x.parent.expression==x||x.parent?.kind==$e.SyntaxKind.ForStatement&&x.parent.initializer==x,Ste=x=>{if(Gbe(x))return $e.forEachAncestor(x.parent.parent,P=>{if(lp(P)||Jp(P)||P.kind==$e.SyntaxKind.SourceFile)return P})},oW=x=>x.kind==$e.SyntaxKind.JsxElement||x.kind==$e.SyntaxKind.JsxSelfClosingElement||x.kind==$e.SyntaxKind.JsxFragment,Jp=x=>x.kind==$e.SyntaxKind.ForStatement||x.kind==$e.SyntaxKind.ForOfStatement||x.kind==$e.SyntaxKind.ForInStatement||x.kind==$e.SyntaxKind.DoStatement||x.kind==$e.SyntaxKind.WhileStatement,Tte=x=>{if(x.kind!=$e.SyntaxKind.ForStatement)return null;let P=x.initializer;return P.kind==$e.SyntaxKind.VariableDeclarationList&&P.declarations[0].name.kind==$e.SyntaxKind.Identifier?P.declarations[0].name:P.kind==$e.SyntaxKind.BinaryExpression&&P.operatorToken.kind==$e.SyntaxKind.EqualsToken&&P.left.kind==$e.SyntaxKind.Identifier?P.left:null},Ete=class{constructor(P,Q,ae){this.index=P,this.length=Q,this.original=ae}},gx=x=>x instanceof Ete,Kb=x=>{if(gx(x))return[];if(lp(x)){let Q=x.getChildren(),ae=Q.find(Mt=>Mt.kind==$e.SyntaxKind.OpenParenToken),Ee,Oe;return ae!=null?(Ee=ae.getStart(),Oe=Q.find(Mt=>Mt.kind==$e.SyntaxKind.CloseParenToken).getEnd()-Ee):(Ee=Q[0].index,Oe=Q[0].length),[new Ete(Ee,Oe,x.parameters),x.body]}if(oW(x)){let Q=[];return $e.forEachChildRecursively(x,ae=>{if(ae.kind==$e.SyntaxKind.JsxExpression||ae.kind==$e.SyntaxKind.JsxSpreadAttribute)return Q.push(ae),"skip"}),Q}if(x.kind==$e.SyntaxKind.ImportDeclaration)return[];let P=[];return $e.forEachChild(x,Q=>{(!$e.isToken(Q)||$e.isLiteralExpression(Q)||$e.isIdentifier(Q)||Q.kind==$e.SyntaxKind.NullKeyword||Q.kind==$e.SyntaxKind.ThisKeyword||Q.kind==$e.SyntaxKind.TrueKeyword||Q.kind==$e.SyntaxKind.FalseKeyword)&&P.push(Q)}),P},vG=x=>!!$e.forEachChildRecursively(x,P=>{if(P.kind==$e.SyntaxKind.AwaitExpression)return!0;if(lp(P))return"skip"}),g3e=x=>x.modifiers?.some(P=>P.kind===$e.SyntaxKind.AsyncKeyword)??!1,Nyt=x=>($e.isPrefixUnaryExpression(x)||$e.isPostfixUnaryExpression(x))&&(x.operator===$e.SyntaxKind.PlusPlusToken||x.operator===$e.SyntaxKind.MinusMinusToken),bG=(x,P)=>P.kind==bte.VariableDeclaration&&P.name==x||$e.isAssignmentExpression(P)&&P.left==x||P.kind==bte.BindingElement&&P.name==x||P.kind==$e.SyntaxKind.ForOfStatement&&P.initializer==x||P.kind==$e.SyntaxKind.ForInStatement&&P.initializer==x||P.kind==bte.Parameter&&x!=P.initializer||x.kind==bte.BindingElement||P!=null&&Nyt(P)&&P.operand==x,Pyt=$e.createPrinter(),Vbe=x=>{let P;x.kind==$e.SyntaxKind.VariableDeclarationList||x.kind==$e.SyntaxKind.VariableStatement?P=x:lp(x)?P=$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration($e.factory.createArrayBindingPattern(x.parameters),void 0,void 0,$e.factory.createNull())]):P=$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration(x,void 0,void 0,$e.factory.createNull())]);let Q=Pyt.printNode($e.EmitHint.Unspecified,P),ae=vte(Q),Ee="collect.ts",Oe=m3e(Ee,ae,!0);return Oe.getTypeChecker(),[...Oe.getSourceFile(Ee).locals.keys()]};var jbe=x=>Object.entries(x).map(([P,Q])=>Q.statements.filter(ae=>ae.kind==$e.SyntaxKind.ImportDeclaration).map(ae=>({node:ae,module_name:P,url:ae.moduleSpecifier.text}))).flat(),XS=(x,P)=>!fL(x,P)||x.kind==$e.SyntaxKind.AsyncKeyword?null:$e.forEachChild(x,ae=>XS(ae,P))??x,fL=(x,P)=>x.index<=P&&x.index+x.length>P,Ube=(x,P)=>{let Q=[];return $e.forEachAncestor(x,ae=>{if(ae==P)return ae;ae!=x&&Q.push(ae)}),Q},aW=(x,P)=>[x,...Ube(x,P)],f0=(x,P)=>P(x)?x:x.children==null?null:x.children.reduce((Q,ae)=>Q??f0(ae,P),null),Hbe=(x,P,Q=null)=>{if(x==P)return Q;if(x.children==null)return null;for(let ae of x.children){let Ee=Hbe(ae,P,x);if(Ee!=null)return Ee}return null},Ate=(x,P)=>$e.forEachChildRecursively(x,Q=>{if(P(Q))return Q}),Kbe=(x,P)=>$e.forEachChildRecursively(x,Q=>{if(P.get(Q)?.is_error_origin)return Q;if(lp(Q))return"skip"});var Myt=x=>{let P=[];function Q(ae){if(lp(ae)){P.push(ae);return}for(let Ee of Kb(ae))Q(Ee,ae)}return Q(x),P},y3e=(x,P)=>{let Q=(wt,lr)=>{let $r=wt.kind==null?wt.result:P.get(wt),ni=lr.kind==null?lr.result:P.get(lr);return $r==null?ni==null:ni!=null&&$r.ok==ni.ok&&!!$r.is_error_origin==!!ni.is_error_origin},ae=wt=>{let lr=P.get(wt);return{index:wt.index,length:wt.length,result:lr==null||lp(wt)?null:lr.ok?{ok:!0}:{ok:!1,is_error_origin:!!lr.is_error_origin}}},Ee=wt=>$e.isBinaryExpression(wt)&&(wt.operatorToken.kind==$e.SyntaxKind.AmpersandAmpersandToken||wt.operatorToken.kind==$e.SyntaxKind.BarBarToken||wt.operatorToken.kind==$e.SyntaxKind.QuestionQuestionToken)||wt.kind==$e.SyntaxKind.ConditionalExpression,Oe=(wt,lr)=>{let $r=Kb(wt).map(gs=>dt(gs)).reduce((gs,[Za,...md])=>{if(gs.length==0)return[Za,...md];{let Gd=gs[gs.length-1];if(Q(Gd,Za))return[...gs.slice(0,gs.length-1),{index:Gd.index,length:Za.index-Gd.index+Za.length,result:Za.result==null?null:{ok:Za.result.ok}},...md];if(!Ee(wt)&&Gd.result==null&&Za.result?.ok){let by=Gd.index+Gd.length;return[...gs,{...Za,index:by,length:Za.index-by+Za.length},...md]}else return!Ee(wt)&&Gd.result?.ok&&Za.result==null?[...gs.slice(0,gs.length-1),{...Gd,length:Za.index-Gd.index},Za,...md]:[...gs,Za,...md]}},[]),ni=P.get(wt);if((ni==null||ni?.ok)&&$r.reduce((gs,Za)=>gs&&Q($r[0],Za),!0)){if(Q(wt,$r[0]))return lr&&lp(wt)?[{...ae(wt),result:{ok:P.get(wt).ok}}]:[ae(wt)];{let gs=ae(wt),Za=$r.at(-1).index+$r.at(-1).length;return[{...gs,length:$r[0].index-gs.index},...$r,{...gs,index:Za,length:wt.index+wt.length-Za}]}}if($r.length==0)throw new Error("illegal state");let Rr=$r[0],oa=Q(Rr,wt)&&P.get(wt)?.ok?[{...Rr,index:wt.index,length:Rr.length+Rr.index-wt.index},...$r.slice(1)]:$r,Zo=oa[oa.length-1];return Q(Zo,wt)&&P.get(wt)?.ok?[...oa.slice(0,oa.length-1),{...Zo,index:Zo.index,length:wt.index+wt.length-Zo.index}]:oa},dt=(wt,lr=!1)=>{if(lp(wt)&&!lr)return[{...ae(wt),result:null}];if((wt.kind==$e.SyntaxKind.WhileStatement||wt.kind==$e.SyntaxKind.DoStatement)&&!lr){let Rr;wt.kind==$e.SyntaxKind.WhileStatement?Rr=wt.expression.index:Rr=wt.statement.index;let oa=P.get(wt);return[{index:wt.index,length:Rr-wt.index,result:oa==null?null:oa.ok?{ok:!0}:{ok:!1,is_error_origin:!!oa.is_error_origin}},{index:Rr,length:wt.index+wt.length-Rr,result:null}]}if((wt.kind==$e.SyntaxKind.ForOfStatement||wt.kind==$e.SyntaxKind.ForInStatement)&&!lr){let Rr=P.get(wt);return[{index:wt.index,length:wt.initializer.index-wt.index,result:Rr==null?null:Rr.ok?{ok:!0}:{ok:!1,is_error_origin:!!Rr.is_error_origin}},{index:wt.initializer.index,length:wt.initializer.length,result:null},...dt(wt.expression),{index:wt.statement.index,length:wt.statement.length,result:null}]}if(wt.kind==$e.SyntaxKind.ForStatement&&!lr){let Rr=P.get(wt);return[{index:wt.index,length:wt.initializer.index-wt.index,result:Rr==null?null:Rr.ok?{ok:!0}:{ok:!1,is_error_origin:!!Rr.is_error_origin}},...dt(wt.initializer),{index:wt.condition.index,length:wt.condition.length,result:null},{index:wt.incrementor.index,length:wt.incrementor.length,result:null}]}if(gx(wt)||Kb(wt).length==0)return[ae(wt)];if(P.get(wt)?.is_error_origin){let Rr=ae(wt),oa=Myt(wt);return oa.length==0?[Rr]:oa.map((Zo,fs)=>{let gs;if(fs==0)gs=wt.index;else{let Za=oa[fs-1];gs=Za.index+Za.length}return{index:gs,length:Zo.index-gs,result:Rr.result}}).concat([{index:oa.at(-1).index+oa.at(-1).length,length:wt.index+wt.length-(oa.at(-1).index+oa.at(-1).length),result:Rr.result}])}let $r=Oe(wt,lr),ni=P.get(wt);return ni!=null&&!ni.ok?$r.map(Rr=>Rr.result==null?{...Rr,result:{ok:!1,is_error_origin:!1}}:Rr):$r},Mt=dt(x,!0);Mt=Mt.filter(wt=>wt.result!=null&&(wt.result.ok||wt.result.is_error_origin));let{ok:zt}=Mt.reduce(({ok:wt,prev:lr},$r)=>wt?lr==null?{ok:wt,prev:$r}:lr.index+lr.length>$r.index?{ok:!1}:{ok:!0,prev:$r}:{ok:wt},{ok:!0,prev:null});if(!zt)throw new Error("illegal state");return Mt},v3e=(x,P)=>Object.values(x.colored_frames?.[P]??{}).map(Q=>x.frame_coloring.get(Q)).flat();var YS=class{constructor(P){this.str=P}},Jbe=class{constructor(){this.map=new Map}set(P,Q,ae){this.map.has(P)||this.map.set(P,new Map),this.map.get(P).set(Q,ae)}get(P,Q){return this.map.get(P)?.get(Q)}},b3e=new Jbe,E3e=(x,...P)=>{let Q=P.filter(dt=>!(dt instanceof YS)).map(dt=>{switch(typeof dt){case"string":return $e.factory.createStringLiteral(dt);case"number":return $e.factory.createNumericLiteral(dt);case"undefined":return $e.factory.createIdentifier("undefined");case"boolean":return(dt?$e.factory.createTrue:$e.factory.createFalse)();default:return dt}}),ae=P.filter(dt=>dt instanceof YS),Ee=[x,ae.map(dt=>dt.str).join()],Oe=b3e.get(...Ee);if(Oe==null){let dt="";for(let Mt=0;Mt{let lr=$e.visitNode(wt,zt);if(Mt!=Q.length)throw console.error({replacement_idx:Mt,"replacements.length":Q.length,replacements:P}),new Error("illegal state");return lr}}]).transformed[0]},Gm=(...x)=>E3e(...x).statements,yx=(...x)=>E3e(...x).statements[0].expression;var Lyt=["pointerId","buttons","altKey","ctrlKey","shiftKey","metaKey","pageX","pageY","deltaX","deltaY","key","which","timeStamp"],kyt=new Set(["blur","focus","click","dblclick","wheel","input","change","contextmenu","pointerdown","pointerup","pointermove","pointerover","pointerenter","pointerleave","pointercancel","mousedown","mouseup","mousemove","mouseover","mouseenter","mouseleave","mousecancel","keydown","keyup","keypress","load","DOMContentLoaded"]),wyt=["bubbles","composed","cancelable"],S3e=x=>{let P=x.window,Q=P.EventTarget.prototype.addEventListener,ae=new Set;P.EventTarget.prototype.addEventListener=function(Oe,...dt){let Mt=Oe;return Oe=="submit"&&(Mt="click"),!ae.has(Mt)&&kyt.has(Mt)&&Q.call(P.window,Mt,zt=>{if(!x.io_trace_is_recording||["change","input"].includes(Mt)&&["checkbox","radio"].includes(zt.target.type))return;let wt=zt.constructor.name,lr=Object.fromEntries(Lyt.map(Rr=>[Rr,zt[Rr]])),$r=Object.fromEntries(wyt.map(Rr=>[Rr,zt[Rr]])),ni=Wyt(P.window,zt.target);x.io_trace.push({type:"event",constructorName:wt,event_type:Mt,props:lr,dispatch_props:$r,selectors:ni,value:zt.target.value})},!0),ae.add(Mt),Q.call(this,Oe,...dt)}},T3e=(x,P)=>{let Q=x.window[P.constructorName],ae=Object.defineProperties(new Q(P.event_type,P.dispatch_props),Object.fromEntries(Object.entries(P.props).map(([Oe,dt])=>[Oe,{value:dt}]))),Ee=Fyt(x.window.window,P.selectors);["input","change"].includes(P.event_type)&&(Ee.value=P.value),Ee.dispatchEvent(ae)},qbe=x=>{x.window.document.dispatchEvent(new Event("DOMContentLoaded")),x.window.window.dispatchEvent(new Event("DOMContentLoaded")),x.window.window.dispatchEvent(new Event("load"))};function Oyt(x){let P=[];for(;x;){P.unshift(x.tagName.toLowerCase());let Q=x.parentNode;if(Q){let ae=[...Q.children];if(ae.length>1){let Ee=ae.indexOf(x)+1;Ee&&(P[0]+=`:nth-child(${Ee})`)}}if(x.hasAttribute("part")){let ae=`[part=${x.getAttribute("part")}]`;P[0]+=ae}if(Q instanceof Element)x=Q;else break}return P.join(" > ")}function Wyt(x,P){if(P==x)return["window"];let Q=[],ae;for(;(ae=P.getRootNode())&&(Q.unshift(Oyt(P)),!(ae===x.document||ae===P));)P=ae.host;return Q}function Fyt(x,P){let Q=x.document,ae,Ee;for(let Oe of P){if(Oe==="window")return x;if(Ee=Q?.querySelector(Oe),!Ee)return ae;if(ae=Ee,Q=Ee?.shadowRoot,!Q)break}return ae}var sW=(x,P,Q=!1,ae=!1)=>{let Ee=x;for(let zt=0;zt{throw x.io_trace_is_replay_aborted=!0,x.io_trace_resolve_replay_finished(),new x.window.Error("io replay aborted")},R3e=x=>{if(x.io_trace_is_replay_aborted)throw new x.window.Error("io replay was aborted")},A3e=(x,P)=>{for(let Q=x.io_trace_index;Q{x.io_trace_resolver_is_set||(x.io_trace_resolver_is_set=!0,setTimeout(()=>{if(x.io_trace_is_replay_aborted)return;if(x.io_trace_resolver_is_set=!1,x.io_trace_index>=x.io_trace.length)throw new Error("illegal state");let P=x.io_trace[x.io_trace_index];if(P.type=="call")A3e(x,"resolution").index{let Oe=function(...dt){let Mt=new.target!=null,zt=x.__cxt;if(R3e(zt),zt.io_trace_is_recording){let wt,lr,$r;try{let ni=zt.io_trace.length;if(Q=="setTimeout"){dt=dt.slice();let Rr=dt[0];typeof Rr=="function"&&(dt[0]=Object.defineProperty(function(){zt.io_trace_is_replay_aborted||(zt.io_trace.push({type:"resolution",index:ni}),Rr())},"name",{value:Rr.name}))}return lr=Mt?new P(...dt):P.apply(this,dt),wt=!0,lr?.[Symbol.toStringTag]=="Promise"?(lr=Promise.prototype.then.call(lr,Rr=>{if(!zt.io_trace_is_replay_aborted)return zt.io_trace.push({type:"resolution",index:ni}),lr.status={ok:!0,value:Rr},Ee?Rr:x.structuredClone(Rr)},Rr=>{if(!zt.io_trace_is_replay_aborted)throw zt.io_trace.push({type:"resolution",index:ni}),lr.status={ok:!1,error:Rr},x.structuredClone(Rr)}),lr):Ee?lr:x.structuredClone(lr)}catch(ni){throw $r=ni,wt=!1,x.structuredClone(ni)}finally{zt.io_trace.push({type:"call",name:Q,ok:wt,value:lr,error:$r,args:dt,has_new_target:Mt,use_context:ae,skip_clone:Ee,context:ae?this:void 0})}}else{let wt=zt.io_trace[zt.io_trace_index];if(zt.io_trace_index++,wt==null||wt.type!="call"||wt.has_new_target!=Mt||wt.use_context&&wt.context!=this||wt.name!=Q||Q=="setTimeout"&&dt[1]!=wt.args[1]||Q!="setTimeout"&&JSON.stringify(wt.args)!=JSON.stringify(dt))x3e(zt);else if(wt.ok){if(wt.value?.[Symbol.toStringTag]=="Promise")return new zt.window.Promise((lr,$r)=>{zt.io_trace_resolvers.set(zt.io_trace_index-1,{resolve:lr,reject:$r})});if(Q=="setTimeout"){let lr=dt[0];return zt.io_trace_resolvers.set(zt.io_trace_index-1,{resolve:lr}),wt.value}else return Ee?wt.value:x.structuredClone(wt.value)}else throw x.structuredClone(wt.error)}};return Object.defineProperty(Oe,"name",{value:P.name}),Oe},zyt=x=>{let P=x.Date,Q=P.prototype,ae=D3e(x,P,"Date",!1);x.Date=function(...Oe){return Oe.length==0?new.target!=null?new ae(...Oe):ae(...Oe):new.target!=null?new P(...Oe):P(...Oe)},x.Date.prototype=Q,x.Date.parse=Date.parse,x.Date.now=Date.now,x.Date.UTC=Date.UTC,sW(x,["Date","now"])},I3e=(x,P)=>{let Q=x[P];x[P]=function(...ae){let Ee=new.target!=null,Oe=x.__cxt;return R3e(Oe),Oe.io_trace_is_recording||x3e(Oe),Ee?new Q(...ae):Q.apply(this,ae)},Object.defineProperty(x[P],"name",{value:P})},C3e=x=>{if(sW(x,["Math","random"]),sW(x,["setTimeout"],void 0,!0),sW(x,["clearTimeout"]),I3e(x,"setInterval"),I3e(x,"clearInterval"),zyt(x),sW(x,["fetch"],void 0,!0),x.Response!=null){let P=["arrayBuffer","blob","formData","json","text"];for(let Q of P)sW(x,["Response","prototype",Q],!0)}};var N3e=globalThis?.CanvasRenderingContext2D?.prototype?.reset;function Byt(x){N3e!=null?N3e.call(x):x.canvas.width=x.canvas.width+0}function Gyt(x){for(let P of x.contexts)Byt(P)}function M3e(x){let P=x?.CanvasRenderingContext2D?.prototype;if(P==null)return;let Q=Object.getOwnPropertyDescriptors(P);Object.entries(Q).forEach(([ae,Ee])=>{if(Ee.value!=null){if(typeof Ee.value!="function")return;let Oe=Ee.value;P[ae]={[ae](){let dt=x.__cxt,Mt=++dt.version_counter;try{return Oe.apply(this,arguments)}finally{dt.canvas_ops.contexts.add(this),dt.canvas_ops.ops.push({canvas_context:this,method:Oe,version_number:Mt,args:arguments})}}}[ae]}if(Ee.set!=null){let Oe=Ee.set;Object.defineProperty(P,ae,{set(dt){let Mt=x.__cxt,zt=++Mt.version_counter;try{Oe.call(this,dt)}finally{Mt.canvas_ops.contexts.add(this),Mt.canvas_ops.ops.push({canvas_context:this,version_number:zt,set_op:Oe,prop_value:dt})}}})}})}function P3e(x){if(x.method!=null)x.method.apply(x.canvas_context,x.args);else if(x.set_op!=null)x.set_op.call(x.canvas_context,x.prop_value);else throw new Error("illegal op")}function Ite(x,P){if(x.calltree==null)return;let Q=x.rt_cxt;if(Q.canvas_ops.ops!=null)if(Gyt(Q.canvas_ops),P)for(let ae of Q.canvas_ops.ops)P3e(ae);else{let ae=x.current_calltree_node.last_version_number;for(let Ee of Q.canvas_ops.ops){if(Ee.version_number>ae)break;P3e(Ee)}}}var lW;try{(function x(){return x()})()}catch(x){lW=x}var Vyt=500,xte=x=>x?.[Symbol.toStringTag]=="Promise",jyt=x=>(...P)=>{let Q=x(...P),ae=Ee=>Ee.done?Ee.value:xte(Ee.value)?Promise.prototype.then.call(Ee.value,Oe=>ae(Q.next(Oe)),Oe=>ae(Q.throw(Oe))):ae(Q.next(Ee.value));return ae(Q.next())},L3e=(x,P)=>({ok:P.status.ok,value:th(x,P.status.value),error:th(x,P.status.error)}),k3e=new WeakMap,th=(x,P)=>{let Q=new Map;return ae(P);function ae(Oe){if(Oe==null||typeof Oe!="object")return Oe;let dt=Q.get(Oe);if(dt!=null)return dt;let Mt={};return Q.set(Oe,Mt),dt=Ee(Oe),Object.assign(Mt,dt),dt}function Ee(Oe){if(Array.isArray(Oe))return{clazz:"Array",array_entries:Oe.map(ae)};if(x.Element!=null&&Oe instanceof x.Element)return{clazz:Oe.constructor?.name,is_svg:x.SVGElement!=null&&Oe instanceof x.SVGElement&&!(Oe instanceof x.SVGSVGElement),object_entries:[],dom_node:Oe.cloneNode(!0)};if(Oe instanceof x.Map)return{clazz:"Map",object_entries:[...Oe.entries()].map(([dt,Mt])=>[ae(dt),ae(Mt)])};if(Oe instanceof x.Set)return{clazz:"Set",array_entries:[...Oe.values()].map(ae)};if(xte(Oe)){let dt={clazz:"Promise",status:null};return Oe.status!=null?dt.status=L3e(x,Oe):(Oe.should_snapshot=!0,k3e.set(Oe,dt)),dt}return Oe instanceof x.Date?{clazz:"Date",string:Oe.toJSON()}:Oe instanceof x.Error?{clazz:Oe.constructor?.name,string:Oe.toString()}:Oe==x?{clazz:"Window",object_entries:[]}:{clazz:Oe.constructor?.name,object_entries:Object.entries(Oe).map(([dt,Mt])=>[dt,ae(Mt)])}}},Uyt=()=>{let x;return[new Promise(Q=>x=Q),x]},w3e=jyt(function*(x,P){let[Q,ae]=Uyt();if(P.io_trace_is_recording||(P={...P,io_trace_is_replay_aborted:!1,io_trace_resolver_is_set:!1,io_trace_resolvers:new Map,io_trace_index:0,io_trace_resolve_replay_finished:ae}),P.window.__cxt!=null)throw new Error("illegal state");P.window.__cxt=P,$yt(P.window),Kyt(P),C3e(P.window),Hyt(P),S3e(P),M3e(P.window);let Ee=!P.io_trace_is_recording&&!P.io_trace.every(zt=>zt.type=="call");Ee&&Xbe(P);let Oe=!1,dt;for(let zt=0;ztqbe(P),0)),Ee&&(yield Promise.race([Q,$r]),P.io_trace_is_replay_aborted))break;yield $r,dt.ok=!0}catch($r){dt.ok=!1,dt.error=$r}if(!dt.ok)break}if(!P.is_toplevel_call&&!P.io_trace_is_replay_aborted)throw new Error("illegal state");P.io_trace_is_recording&&!Oe&&qbe(P),Ee&&(yield Q),P.io_trace_is_recording=!0,P.is_recording_deferred_calls=!0;let Mt=P.logs;if(P.logs=[],!P.is_toplevel_call&&!P.io_trace_is_replay_aborted)throw new Error("illegal state");return{modules:P.modules,calltree:dt,logs:Mt,rt_cxt:P}}),Hyt=x=>{x.window.leporello={storage:x.storage}},Kyt=x=>{let P=x.window.Promise.prototype.then;x.original_then=P,x.window.Promise.prototype.then=function(ae,Ee){NC(x),x.children==null&&(x.children=[]);let Oe=x.children,dt=x.is_subcall,Mt=(zt,wt)=>typeof zt!="function"?zt:lr=>{if(this.status==null&&(this.status=wt?{ok:wt,value:lr}:{ok:wt,error:lr},this.should_snapshot)){let $r=k3e.get(this);$r.status=L3e(x.window,this)}x.children=Oe,x.is_toplevel_call=!1,x.is_subcall=dt;try{return zt(lr)}finally{x.children=null,x.is_toplevel_call=!0,x.is_subcall=!1}};return P.call(this,Mt(ae,!0),Mt(Ee,!1))}},NC=x=>{for(let P=0;P{x.children==null&&(x.children=[]);let ae={children_copy:x.children,promise:P,is_subcall:x.is_subcall};return xte(P)?ae.promise=P.then(Ee=>{ae.status={ok:!0,value:Ee}},Ee=>{ae.status={ok:!1,error:Ee}}):ae.status={ok:!0,value:P},ae},qyt=(x,P)=>{if(x.is_toplevel_call=!1,x.is_subcall=P.is_subcall,x.original_then.call(Promise.resolve(),function(){x.is_toplevel_call=!0,x.children=null}),x.children=P.children_copy,P.status.ok)return P.status.value;throw P.status.error},Xyt=(x,P,Q,ae)=>{function Ee(...Oe){if(x.stack.length>Vyt)throw new lW.constructor(lW.message);let dt=x.children;x.children=null,x.stack.push(!1);let Mt=++x.call_counter,zt=x.version_counter,wt,lr=x.breakpoint.current_calltree_node_id==Mt;x.breakpoint.parent_calltree_node?.id==Mt&&(x.is_subcall=!0),lr&&(wt={args:th(x.window,Oe),context_before:th(x.window,this)},NC(x));let $r,ni,Rr,oa=x.is_toplevel_call;x.is_toplevel_call=!1;let Zo=new.target!=null;try{return Zo?ni=new P(...Oe):ni=P.apply(this,Oe),$r=!0,lr&&(wt.ok=$r,wt.context_after=th(x.window,this),wt.value=th(x.window,ni)),ni}catch(fs){throw $r=!1,Rr=fs,lr&&(wt.context_after=th(x.window,this),wt.error=th(x.window,Rr)),NC(x),Rr}finally{let fs={id:Mt,is_new:Zo,version_number:zt,last_version_number:x.version_counter,ok:$r,context:this,value:ni,error:Rr,fn:Ee,args:Oe,snapshot:wt};if(x.breakpoint.parent_calltree_node?.id==Mt&&(x.is_subcall=!1),x.stack.pop()?fs.children=x.children:fs.has_more_children=x.children!=null&&x.children.length!=0,x.children=dt,x.children==null&&(x.children=[]),x.children.push(fs),x.is_toplevel_call=oa,x.is_toplevel_call){if(x.children.length!=1)throw new Error("illegal state");let Za=x.children[0];if(x.children=null,x.is_recording_deferred_calls){let md=x.logs;x.logs=[],x.on_deferred_call(Za,x.execution_id,md)}else x.deferred_calls.push(Za)}}}return Object.defineProperty(Ee,"name",{value:Q}),Ee.__location=ae,Ee.is_hosted=!0,P.prototype=Ee.prototype,Ee},Yyt=["log","error","info","debug","warn","trace"],$yt=x=>{let P=x.console;P.constructor=function(){};let Q=th(x,P),ae=x.__cxt;for(let Ee of Yyt){let Oe=P[Ee];P[Ee]={[Ee](...dt){let Mt=++ae.call_counter,zt=ae.breakpoint.current_calltree_node_id==Mt,wt={id:Mt,is_log:!0,version_number:ae.version_counter,last_version_number:ae.version_counter,ok:!0,value:void 0,fn:Oe,args:dt,context:P,is_new:!1,snapshot:zt?{args:th(ae.window,dt),context_before:Q,context_after:Q}:null};ae.children==null&&(ae.children=[]),ae.children.push(wt),ae.logs.push(ae.call_counter),NC(ae)}}[Ee],P[Ee].is_hosted=!0}},Qyt=(x,P,Q,ae,Ee,Oe=!1,dt)=>{if(typeof P!="function")throw new x.window.TypeError(Ee+" is not a "+(Oe?"constructor":"function"));if(P.is_hosted)try{return Oe?new P(...ae):P.apply(Q,ae)}finally{x.children!=null&&(x.children.at(-1).callsite_location=dt)}let Mt=x.children;x.children=null,x.stack.push(!1);let zt=++x.call_counter,wt=x.version_counter,lr,$r=x.breakpoint.current_calltree_node_id==zt;$r&&(lr={args:th(x.window,ae),context_before:th(x.window,Q)},NC(x));let ni,Rr,oa;try{return Oe?Rr=new P(...ae):Rr=P.apply(Q,ae),ni=!0,$r&&(lr.ok=ni,lr.context_after=th(x.window,Q),lr.value=th(x.window,Rr)),Rr}catch(Zo){throw ni=!1,oa=Zo,$r&&(lr.context_after=th(x.window,Q),lr.error=th(x.window,oa)),NC(x),oa}finally{let Zo=x.stack.pop();if(Ee!=null&&x.children==null)x.children=Mt;else{let fs={id:zt,version_number:wt,last_version_number:x.version_counter,ok:ni,value:Rr,error:oa,fn:P,args:ae,context:Q,is_new:Oe,snapshot:lr,callsite_location:dt};Zo?fs.children=x.children:(fs.has_more_children=x.children!=null&&x.children.length!=0,fs.children_count=x.children?.length??0),x.children=Mt,x.children==null&&(x.children=[]),x.children.push(fs)}}},Zyt=(x,P)=>{x.first_call_id==null&&(x.first_call_id=P),x.is_subcall&&x.selected_call_id==null&&(x.selected_call_id=P)},evt=(x,P,Q)=>{if(!x.is_entrypoint)return;let ae=x.snapshots,Ee=ae.get(P);if(!(Ee==null||Q==x.selected_call_id||Q==x.first_call_id))return null;Ee==null&&(Ee=new Map,ae.set(P,Ee));let dt=Ee.get(Q);return dt==null?(dt={call_id:Q,ok:!1},NC(x),Ee.set(Q,dt),dt):null},tvt=(x,P,Q)=>(P!=null&&(P.ok=!0,P.value=th(x.window,Q)),Q),nvt=(x,P,Q,ae)=>{if(!x.is_entrypoint)return;let Oe=x.snapshots.get(P);if(Oe==null)return ae;let dt=Oe.get(Q);return dt!=null&&!dt.ok&&(dt.ok=!0,dt.value=th(x.window,ae)),ae},rvt=Symbol("loop_break"),ivt=Symbol("loop_continue"),ovt={trace:Xyt,trace_call:Qyt,set_record_call:NC,record_subcall:Zyt,await_start:Jyt,await_finish:qyt,before_take_node_snapshot:evt,take_node_snapshot_fast:tvt,take_node_snapshot:nvt,Symbol_loop_break:rvt,Symbol_loop_continue:ivt};var Dte=x=>x.should_collect_footprints&&x.breakpoint.function_node==x.current_function,Zbe=x=>(lp(x)?g3e(x):vG(x))?Gm`let __await_state; __rt.set_record_call(__cxt);`:[],Cte=(x,P)=>[...Gm`const __call_id = __cxt.call_counter;`,...Zbe(x),...Dte(P)?Gm` +`),wbe=(x,P)=>x.reduce((Q,ae,Ee)=>Q??P(ae,Ee),null);var i3e=x=>[...new Set(x)];var sI=new Set;for(let x in Ye.Diagnostics)(x.startsWith("Duplicate")||x.includes("super")||x.includes("Super")||x.includes("used_before")||x.includes("redeclare"))&&sI.add(Ye.Diagnostics[x].code);sI.add(1108);sI.add(1155);sI.add(1308);sI.add(1103);sI.add(1163);sI.add(1104);sI.add(1105);sI.add(2588);(function(){let P=Ye.factory.createIdentifier("test").__proto__,Q=Ye.factory.createBlock([]).__proto__,ae=Ye.factory.createToken(Ye.SyntaxKind.FalseKeyword).__proto__;for(let Ee of[P,Q,ae])Object.defineProperty(Ee,"index",{get:function(){return this.getStart()},configurable:!1,enumerable:!1}),Object.defineProperty(Ee,"length",{get:function(){return this.getWidth()},configurable:!1,enumerable:!1}),Object.defineProperty(Ee,"kind_name",{get:function(){return Ye.SyntaxKind[this.kind]},configurable:!1,enumerable:!1})})();var Obe=Ye.ScriptTarget.Latest,Syt=Ye.createSourceFile(NC.name,NC.value,Obe),Tyt={...MC,noLib:!0},fte=x=>Ye.createSourceFile("temp.ts",x,Obe,!1,Ye.ScriptKind.JSX),o3e={};function Ayt(x){let P=o3e[x];return P==null&&(P=Ye.createSourceFile(x,kbe[x],Obe,void 0,Ye.ScriptKind.TSX),o3e[x]=P),P}var Iyt=x=>"file:///"+encodeURI(x),xyt=x=>decodeURI(x.replace(/^file:\/\/\//,"")),a3e=(x,P,Q=!1)=>{let ae={resolveLibrary(Oe,dt,Mt,Ft){return{path:Ft}},readFile(Oe){throw new Error("not implemented")},useCaseSensitiveFileNames(){return!1},getDefaultLibFileName(){return"lib.d.ts"},getCurrentDirectory(){return""},getCanonicalFileName(Oe){return Oe},resolveModuleNames(Oe){return Oe.map(dt=>({resolvedFileName:dt,extension:".js"}))},getSourceFile(Oe){if(Oe==NC.name)return Syt;if(kbe?.[Oe]!=null)return Ayt(Oe);if(Oe==x)return P;throw new Error("illegal state")}};return Ye.createProgram([x],Q?Tyt:MC,ae)};function Ryt(x){let P=new WeakMap;return function(Q){let ae=P.get(Q);return ae!=null||(ae=x(Q),P.set(Q,ae)),ae}}var s3e=Ryt(function(x){let P=[];function Q(ae){ae.kind==Ye.SyntaxKind.ImportDeclaration&&(ae.moduleSpecifier.text.startsWith(".")||ae.moduleSpecifier.text.startsWith("/"))&&P.push({node:ae,messageText:"Local imports are not supported yet. Please use a full URL starting with https:// or specify an npm package name"}),ae.kind==Ye.SyntaxKind.VariableDeclarationList&&!(ae.flags&(Ye.NodeFlags.Let|Ye.NodeFlags.Const))&&P.push({node:ae,messageText:'"var" declarations are not supported. Use "let" declarations instead'}),(Ye.isFunctionDeclaration(ae)||Ye.isFunctionExpression(ae)||Ye.isMethodDeclaration(ae))&&ae.asteriskToken!==void 0&&P.push({node:ae,messageText:"Generator functions are not implemented"}),(ae.kind==Ye.SyntaxKind.CallExpression||ae.kind==Ye.SyntaxKind.NewExpression)&&ae.questionDotToken!=null&&P.push({node:ae,messageText:"Optional chaining with function calls is not implemented"});let Ee=Ye.SyntaxKind[ae.kind];ae.kind==Ye.SyntaxKind.ForOfStatement&&ae.awaitModifier!=null&&P.push({node:ae,messageText:"for-await loops are not supported."}),(ae.kind==Ye.SyntaxKind.TryStatement||ae.kind==Ye.SyntaxKind.ClassDeclaration||ae.kind==Ye.SyntaxKind.LabeledStatement||ae.kind==Ye.SyntaxKind.ClassExpression||ae.kind==Ye.SyntaxKind.SwitchStatement||ae.kind==Ye.SyntaxKind.MethodDeclaration||ae.kind==Ye.SyntaxKind.GetAccessor||ae.kind==Ye.SyntaxKind.SetAccessor||ae.kind==Ye.SyntaxKind.TaggedTemplateExpression)&&P.push({node:ae,messageText:`${Ee} is not implemented`});function Oe(dt){return dt.kind==Ye.SyntaxKind.PropertyAccessExpression||dt.kind==Ye.SyntaxKind.ElementAccessExpression||dt.kind==Ye.SyntaxKind.CallExpression}Oe(ae)&&ae.questionDotToken!=null&&ae.parent!=null&&Oe(ae.parent)&&ae.parent.questionDotToken==null&&P.push({node:ae,messageText:"Only the last element of access chain can be optional"}),Ye.forEachChild(ae,Q)}return Q(x),P.map(({node:ae,messageText:Ee})=>({file:x,start:ae.getStart(),length:ae.getWidth(),messageText:Ee,category:Ye.DiagnosticCategory.Error,code:96488}))});globalThis.parse_ts_blacklist=s3e;var l3e=(x,P)=>{let Q=Ye.getScriptKindFromFileName(x),ae=P.getSourceFile(Iyt(x)),Ee=Ye.sortAndDeduplicateDiagnostics([...P.getDeclarationDiagnostics(ae),...P.getSyntacticDiagnostics(ae),...s3e(ae),...P.getSemanticDiagnostics(ae).filter(Ft=>sI.has(Ft.code))]),Oe=Ee.length==0,dt=Q==Ye.ScriptKind.TS||Q==Ye.ScriptKind.TSX,Mt;if(dt){let Ft=function(zt,Yn){zt.parent=Yn,Ye.forEachChild(zt,Jr=>Ft(Jr,zt))};Mt=Ye.transform(ae,[Ye.transformTypeScript],MC).transformed[0],Ft(Mt),delete Mt.original,Ye.forEachChildRecursively(Mt,zt=>{delete zt.original})}else Mt=ae;return{ok:Oe,program:P,sorted:[x],modules:Oe?{[x]:Mt}:null,problems:Ee.map(Ft=>{let zt=Ye.flattenDiagnosticMessageText(Ft.messageText,` +`);if(Ft.length==null)throw new Error("illegal state");return{message:zt,index:Ft.start,length:Ft.length,module:xyt(Ft.file.fileName)}})}};var mte=Ye.SyntaxKind,lp=x=>Ye.isFunctionLike(x),Wbe=x=>(x.parent?.kind==Ye.SyntaxKind.ForOfStatement||x.parent?.kind==Ye.SyntaxKind.ForInStatement)&&x.parent.expression==x||x.parent?.kind==Ye.SyntaxKind.ForStatement&&x.parent.initializer==x,hte=x=>{if(Wbe(x))return Ye.forEachAncestor(x.parent.parent,P=>{if(lp(P)||gf(P)||P.kind==Ye.SyntaxKind.SourceFile)return P})},oW=x=>x.kind==Ye.SyntaxKind.JsxElement||x.kind==Ye.SyntaxKind.JsxSelfClosingElement||x.kind==Ye.SyntaxKind.JsxFragment,gf=x=>x.kind==Ye.SyntaxKind.ForStatement||x.kind==Ye.SyntaxKind.ForOfStatement||x.kind==Ye.SyntaxKind.ForInStatement||x.kind==Ye.SyntaxKind.DoStatement||x.kind==Ye.SyntaxKind.WhileStatement,gte=x=>{if(x.kind!=Ye.SyntaxKind.ForStatement)return null;let P=x.initializer;return P.kind==Ye.SyntaxKind.VariableDeclarationList&&P.declarations[0].name.kind==Ye.SyntaxKind.Identifier?P.declarations[0].name:P.kind==Ye.SyntaxKind.BinaryExpression&&P.operatorToken.kind==Ye.SyntaxKind.EqualsToken&&P.left.kind==Ye.SyntaxKind.Identifier?P.left:null},_te=class{constructor(P,Q,ae){this.index=P,this.length=Q,this.original=ae}},vx=x=>x instanceof _te,YS=x=>{if(vx(x))return[];if(lp(x)){let Q=x.getChildren(),ae=Q.find(Mt=>Mt.kind==Ye.SyntaxKind.OpenParenToken),Ee,Oe;return ae!=null?(Ee=ae.getStart(),Oe=Q.find(Mt=>Mt.kind==Ye.SyntaxKind.CloseParenToken).getEnd()-Ee):(Ee=Q[0].index,Oe=Q[0].length),[new _te(Ee,Oe,x.parameters),x.body]}if(oW(x)){let Q=[];return Ye.forEachChildRecursively(x,ae=>{if(ae.kind==Ye.SyntaxKind.JsxExpression||ae.kind==Ye.SyntaxKind.JsxSpreadAttribute)return Q.push(ae),"skip"}),Q}if(x.kind==Ye.SyntaxKind.ImportDeclaration)return[];let P=[];return Ye.forEachChild(x,Q=>{(!Ye.isToken(Q)||Ye.isLiteralExpression(Q)||Ye.isIdentifier(Q)||Q.kind==Ye.SyntaxKind.NullKeyword||Q.kind==Ye.SyntaxKind.ThisKeyword||Q.kind==Ye.SyntaxKind.TrueKeyword||Q.kind==Ye.SyntaxKind.FalseKeyword)&&P.push(Q)}),P},vG=x=>!!Ye.forEachChildRecursively(x,P=>{if(P.kind==Ye.SyntaxKind.AwaitExpression)return!0;if(lp(P))return"skip"}),c3e=x=>x.modifiers?.some(P=>P.kind===Ye.SyntaxKind.AsyncKeyword)??!1,Dyt=x=>(Ye.isPrefixUnaryExpression(x)||Ye.isPostfixUnaryExpression(x))&&(x.operator===Ye.SyntaxKind.PlusPlusToken||x.operator===Ye.SyntaxKind.MinusMinusToken),aW=(x,P)=>P.kind==mte.VariableDeclaration&&P.name==x||Ye.isAssignmentExpression(P)&&P.left==x||P.kind==mte.BindingElement&&P.name==x||P.kind==Ye.SyntaxKind.ForOfStatement&&P.initializer==x||P.kind==Ye.SyntaxKind.ForInStatement&&P.initializer==x||P.kind==mte.Parameter&&x!=P.initializer||x.kind==mte.BindingElement||P!=null&&Dyt(P)&&P.operand==x||P.kind==Ye.SyntaxKind.ParenthesizedExpression&&aW(P,P.parent),Cyt=Ye.createPrinter(),Fbe=x=>{let P;x.kind==Ye.SyntaxKind.VariableDeclarationList||x.kind==Ye.SyntaxKind.VariableStatement?P=x:lp(x)?P=Ye.factory.createVariableDeclarationList([Ye.factory.createVariableDeclaration(Ye.factory.createArrayBindingPattern(x.parameters),void 0,void 0,Ye.factory.createNull())]):P=Ye.factory.createVariableDeclarationList([Ye.factory.createVariableDeclaration(x,void 0,void 0,Ye.factory.createNull())]);let Q=Cyt.printNode(Ye.EmitHint.Unspecified,P),ae=fte(Q),Ee="collect.ts",Oe=a3e(Ee,ae,!0);return Oe.getTypeChecker(),[...Oe.getSourceFile(Ee).locals.keys()]};var zbe=x=>Object.entries(x).map(([P,Q])=>Q.statements.filter(ae=>ae.kind==Ye.SyntaxKind.ImportDeclaration).map(ae=>({node:ae,module_name:P,url:ae.moduleSpecifier.text}))).flat(),$S=(x,P)=>!_L(x,P)||x.kind==Ye.SyntaxKind.AsyncKeyword?null:Ye.forEachChild(x,ae=>$S(ae,P))??x,_L=(x,P)=>x.index<=P&&x.index+x.length>P,Bbe=(x,P)=>{let Q=[];return Ye.forEachAncestor(x,ae=>{if(ae==P)return ae;ae!=x&&Q.push(ae)}),Q},sW=(x,P)=>[x,...Bbe(x,P)],m0=(x,P)=>P(x)?x:x.children==null?null:x.children.reduce((Q,ae)=>Q??m0(ae,P),null),Gbe=(x,P,Q=null)=>{if(x==P)return Q;if(x.children==null)return null;for(let ae of x.children){let Ee=Gbe(ae,P,x);if(Ee!=null)return Ee}return null},Vbe=(x,P)=>Ye.forEachChildRecursively(x,Q=>{if(P(Q))return Q}),jbe=(x,P)=>Ye.forEachChildRecursively(x,Q=>{if(P.get(Q)?.is_error_origin)return Q;if(lp(Q))return"skip"});var QS=class{constructor(P){this.str=P}},Ube=class{constructor(){this.map=new Map}set(P,Q,ae){this.map.has(P)||this.map.set(P,new Map),this.map.get(P).set(Q,ae)}get(P,Q){return this.map.get(P)?.get(Q)}},d3e=new Ube,u3e=(x,...P)=>{let Q=P.filter(dt=>!(dt instanceof QS)).map(dt=>{switch(typeof dt){case"string":return Ye.factory.createStringLiteral(dt);case"number":return Ye.factory.createNumericLiteral(dt);case"undefined":return Ye.factory.createIdentifier("undefined");case"boolean":return(dt?Ye.factory.createTrue:Ye.factory.createFalse)();default:return dt}}),ae=P.filter(dt=>dt instanceof QS),Ee=[x,ae.map(dt=>dt.str).join()],Oe=d3e.get(...Ee);if(Oe==null){let dt="";for(let Mt=0;Mt{let Yn=Ye.visitNode(zt,Ft);if(Mt!=Q.length)throw console.error({replacement_idx:Mt,"replacements.length":Q.length,replacements:P}),new Error("illegal state");return Yn}}]).transformed[0]},Gm=(...x)=>u3e(...x).statements,bx=(...x)=>u3e(...x).statements[0].expression;var Nyt=["pointerId","buttons","altKey","ctrlKey","shiftKey","metaKey","pageX","pageY","deltaX","deltaY","key","which","timeStamp"],Pyt=new Set(["blur","focus","click","dblclick","wheel","input","change","contextmenu","pointerdown","pointerup","pointermove","pointerover","pointerenter","pointerleave","pointercancel","mousedown","mouseup","mousemove","mouseover","mouseenter","mouseleave","mousecancel","keydown","keyup","keypress","load","DOMContentLoaded"]),Myt=["bubbles","composed","cancelable"],p3e=x=>{let P=x.window,Q=P.EventTarget.prototype.addEventListener,ae=new Set;P.EventTarget.prototype.addEventListener=function(Oe,...dt){let Mt=Oe;return Oe=="submit"&&(Mt="click"),!ae.has(Mt)&&Pyt.has(Mt)&&Q.call(P.window,Mt,Ft=>{if(!x.io_trace_is_recording||["change","input"].includes(Mt)&&["checkbox","radio"].includes(Ft.target.type))return;let zt=Ft.constructor.name,Yn=Object.fromEntries(Nyt.map(ci=>[ci,Ft[ci]])),Jr=Object.fromEntries(Myt.map(ci=>[ci,Ft[ci]])),ti=kyt(P.window,Ft.target);x.io_trace.push({type:"event",constructorName:zt,event_type:Mt,props:Yn,dispatch_props:Jr,selectors:ti,value:Ft.target.value})},!0),ae.add(Mt),Q.call(this,Oe,...dt)}},f3e=(x,P)=>{let Q=x.window[P.constructorName],ae=Object.defineProperties(new Q(P.event_type,P.dispatch_props),Object.fromEntries(Object.entries(P.props).map(([Oe,dt])=>[Oe,{value:dt}]))),Ee=wyt(x.window.window,P.selectors);["input","change"].includes(P.event_type)&&(Ee.value=P.value),Ee.dispatchEvent(ae)},Hbe=x=>{x.window.document.dispatchEvent(new Event("DOMContentLoaded")),x.window.window.dispatchEvent(new Event("DOMContentLoaded")),x.window.window.dispatchEvent(new Event("load"))};function Lyt(x){let P=[];for(;x;){P.unshift(x.tagName.toLowerCase());let Q=x.parentNode;if(Q){let ae=[...Q.children];if(ae.length>1){let Ee=ae.indexOf(x)+1;Ee&&(P[0]+=`:nth-child(${Ee})`)}}if(x.hasAttribute("part")){let ae=`[part=${x.getAttribute("part")}]`;P[0]+=ae}if(Q instanceof Element)x=Q;else break}return P.join(" > ")}function kyt(x,P){if(P==x)return["window"];let Q=[],ae;for(;(ae=P.getRootNode())&&(Q.unshift(Lyt(P)),!(ae===x.document||ae===P));)P=ae.host;return Q}function wyt(x,P){let Q=x.document,ae,Ee;for(let Oe of P){if(Oe==="window")return x;if(Ee=Q?.querySelector(Oe),!Ee)return ae;if(ae=Ee,Q=Ee?.shadowRoot,!Q)break}return ae}var Ex=(x,P,Q=!1,ae=!1)=>{let Ee=x;for(let Ft=0;Ft{throw x.io_trace_is_replay_aborted=!0,x.io_trace_resolve_replay_finished(),new x.window.Error("io replay aborted")},g3e=x=>{if(x.io_trace_is_replay_aborted)throw new x.window.Error("io replay was aborted")},m3e=(x,P)=>{for(let Q=x.io_trace_index;Q{x.io_trace_resolver_is_set||(x.io_trace_resolver_is_set=!0,setTimeout(()=>{if(x.io_trace_is_replay_aborted)return;if(x.io_trace_resolver_is_set=!1,x.io_trace_index>=x.io_trace.length)throw new Error("illegal state");let P=x.io_trace[x.io_trace_index];if(P.type=="call")m3e(x,"resolution").index{let Oe=function(...dt){let Mt=new.target!=null,Ft=x.__cxt;if(g3e(Ft),Ft.io_trace_is_recording){let zt,Yn,Jr;try{let ti=Ft.io_trace.length;if(Q=="setTimeout"){dt=dt.slice();let ci=dt[0];typeof ci=="function"&&(dt[0]=Object.defineProperty(function(){Ft.io_trace_is_replay_aborted||(Ft.io_trace.push({type:"resolution",index:ti}),ci())},"name",{value:ci.name}))}return Yn=Mt?new P(...dt):P.apply(this,dt),zt=!0,Yn?.[Symbol.toStringTag]=="Promise"?(Yn=Promise.prototype.then.call(Yn,ci=>{if(!Ft.io_trace_is_replay_aborted)return Ft.io_trace.push({type:"resolution",index:ti}),Yn.status={ok:!0,value:ci},Ee?ci:x.structuredClone(ci)},ci=>{if(!Ft.io_trace_is_replay_aborted)throw Ft.io_trace.push({type:"resolution",index:ti}),Yn.status={ok:!1,error:ci},x.structuredClone(ci)}),Yn):Ee?Yn:x.structuredClone(Yn)}catch(ti){throw Jr=ti,zt=!1,x.structuredClone(ti)}finally{Ft.io_trace.push({type:"call",name:Q,ok:zt,value:Yn,error:Jr,args:dt,has_new_target:Mt,use_context:ae,skip_clone:Ee,context:ae?this:void 0})}}else{let zt=Ft.io_trace[Ft.io_trace_index];if(Ft.io_trace_index++,zt==null||zt.type!="call"||zt.has_new_target!=Mt||zt.use_context&&zt.context!=this||zt.name!=Q||Q=="setTimeout"&&dt[1]!=zt.args[1]||Q!="setTimeout"&&JSON.stringify(zt.args)!=JSON.stringify(dt))h3e(Ft);else if(zt.ok){if(zt.value?.[Symbol.toStringTag]=="Promise")return new Ft.window.Promise((Yn,Jr)=>{Ft.io_trace_resolvers.set(Ft.io_trace_index-1,{resolve:Yn,reject:Jr})});if(Q=="setTimeout"){let Yn=dt[0];return Ft.io_trace_resolvers.set(Ft.io_trace_index-1,{resolve:Yn}),zt.value}else return Ee?zt.value:x.structuredClone(zt.value)}else throw x.structuredClone(zt.error)}};return Object.defineProperty(Oe,"name",{value:P.name}),Oe},Oyt=x=>{let P=x.Date,Q=P.prototype,ae=y3e(x,P,"Date",!1);x.Date=function(...Oe){return Oe.length==0?new.target!=null?new ae(...Oe):ae(...Oe):new.target!=null?new P(...Oe):P(...Oe)},x.Date.prototype=Q,x.Date.parse=Date.parse,x.Date.now=Date.now,x.Date.UTC=Date.UTC,Ex(x,["Date","now"])},_3e=(x,P)=>{let Q=x[P];x[P]=function(...ae){let Ee=new.target!=null,Oe=x.__cxt;return g3e(Oe),Oe.io_trace_is_recording||h3e(Oe),Ee?new Q(...ae):Q.apply(this,ae)},Object.defineProperty(x[P],"name",{value:P})},v3e=x=>{if(Ex(x,["Math","random"]),Ex(x,["setTimeout"],void 0,!0),Ex(x,["clearTimeout"]),_3e(x,"setInterval"),_3e(x,"clearInterval"),Oyt(x),Ex(x,["fetch"],void 0,!0),x.Response!=null){let P=["arrayBuffer","blob","formData","json","text"];for(let Q of P)Ex(x,["Response","prototype",Q],!0)}Ex(x,["alert"]),Ex(x,["confirm"]),Ex(x,["prompt"])};var b3e=globalThis?.CanvasRenderingContext2D?.prototype?.reset;function Wyt(x){b3e!=null?b3e.call(x):x.canvas.width=x.canvas.width+0}function Fyt(x){for(let P of x.contexts)Wyt(P)}function S3e(x){let P=x?.CanvasRenderingContext2D?.prototype;if(P==null)return;let Q=Object.getOwnPropertyDescriptors(P);Object.entries(Q).forEach(([ae,Ee])=>{if(Ee.value!=null){if(typeof Ee.value!="function")return;let Oe=Ee.value;P[ae]={[ae](){let dt=x.__cxt,Mt=++dt.version_counter;try{return Oe.apply(this,arguments)}finally{dt.canvas_ops.contexts.add(this),dt.canvas_ops.ops.push({canvas_context:this,method:Oe,version_number:Mt,args:arguments})}}}[ae]}if(Ee.set!=null){let Oe=Ee.set;Object.defineProperty(P,ae,{set(dt){let Mt=x.__cxt,Ft=++Mt.version_counter;try{Oe.call(this,dt)}finally{Mt.canvas_ops.contexts.add(this),Mt.canvas_ops.ops.push({canvas_context:this,version_number:Ft,set_op:Oe,prop_value:dt})}}})}})}function E3e(x){if(x.method!=null)x.method.apply(x.canvas_context,x.args);else if(x.set_op!=null)x.set_op.call(x.canvas_context,x.prop_value);else throw new Error("illegal op")}function yte(x,P){if(x.calltree==null)return;let Q=x.rt_cxt;if(Q.canvas_ops.ops!=null)if(Fyt(Q.canvas_ops),P)for(let ae of Q.canvas_ops.ops)E3e(ae);else{let ae=x.current_calltree_node.last_version_number;for(let Ee of Q.canvas_ops.ops){if(Ee.version_number>ae)break;E3e(Ee)}}}var lW;try{(function x(){return x()})()}catch(x){lW=x}var zyt=500,vte=x=>x?.[Symbol.toStringTag]=="Promise",Byt=x=>(...P)=>{let Q=x(...P),ae=Ee=>Ee.done?Ee.value:vte(Ee.value)?Promise.prototype.then.call(Ee.value,Oe=>ae(Q.next(Oe)),Oe=>ae(Q.throw(Oe))):ae(Q.next(Ee.value));return ae(Q.next())},T3e=(x,P)=>({ok:P.status.ok,value:th(x,P.status.value),error:th(x,P.status.error)}),A3e=new WeakMap,th=(x,P)=>{let Q=new Map;return ae(P);function ae(Oe){if(Oe==null||typeof Oe!="object")return Oe;let dt=Q.get(Oe);if(dt!=null)return dt;let Mt={};return Q.set(Oe,Mt),dt=Ee(Oe),Object.assign(Mt,dt),dt}function Ee(Oe){if(Array.isArray(Oe))return{clazz:"Array",array_entries:Oe.map(ae)};if(x.Element!=null&&Oe instanceof x.Element)return{clazz:Oe.constructor?.name,is_svg:x.SVGElement!=null&&Oe instanceof x.SVGElement&&!(Oe instanceof x.SVGSVGElement),object_entries:[],dom_node:Oe.cloneNode(!0)};if(Oe instanceof x.Map)return{clazz:"Map",object_entries:[...Oe.entries()].map(([dt,Mt])=>[ae(dt),ae(Mt)])};if(Oe instanceof x.Set)return{clazz:"Set",array_entries:[...Oe.values()].map(ae)};if(vte(Oe)){let dt={clazz:"Promise",status:null};return Oe.status!=null?dt.status=T3e(x,Oe):(Oe.should_snapshot=!0,A3e.set(Oe,dt)),dt}return Oe instanceof x.Date?{clazz:"Date",string:Oe.toJSON()}:Oe instanceof x.Error?{clazz:Oe.constructor?.name,string:Oe.toString()}:Oe==x?{clazz:"Window",object_entries:[]}:{clazz:Oe.constructor?.name,object_entries:Object.entries(Oe).map(([dt,Mt])=>[dt,ae(Mt)])}}},Gyt=()=>{let x;return[new Promise(Q=>x=Q),x]},I3e=Byt(function*(x,P){let[Q,ae]=Gyt();if(P.io_trace_is_recording||(P={...P,io_trace_is_replay_aborted:!1,io_trace_resolver_is_set:!1,io_trace_resolvers:new Map,io_trace_index:0,io_trace_resolve_replay_finished:ae}),P.window.__cxt!=null)throw new Error("illegal state");P.window.__cxt=P,qyt(P.window),jyt(P),v3e(P.window),Vyt(P),p3e(P),S3e(P.window);let Ee=!P.io_trace_is_recording&&!P.io_trace.every(Ft=>Ft.type=="call");Ee&&Kbe(P);let Oe=!1,dt;for(let Ft=0;FtHbe(P),0)),Ee&&(yield Promise.race([Q,Jr]),P.io_trace_is_replay_aborted))break;yield Jr,dt.ok=!0}catch(Jr){dt.ok=!1,dt.error=Jr}if(!dt.ok)break}if(!P.is_toplevel_call&&!P.io_trace_is_replay_aborted)throw new Error("illegal state");P.io_trace_is_recording&&!Oe&&Hbe(P),Ee&&(yield Q),P.io_trace_is_recording=!0,P.is_recording_deferred_calls=!0;let Mt=P.logs;if(P.logs=[],!P.is_toplevel_call&&!P.io_trace_is_replay_aborted)throw new Error("illegal state");return{modules:P.modules,calltree:dt,logs:Mt,rt_cxt:P}}),Vyt=x=>{x.window.leporello={storage:x.storage}},jyt=x=>{let P=x.window.Promise.prototype.then;x.original_then=P,x.window.Promise.prototype.then=function(ae,Ee){LC(x),x.children==null&&(x.children=[]);let Oe=x.children,dt=x.is_subcall,Mt=(Ft,zt)=>typeof Ft!="function"?Ft:Yn=>{if(this.status==null&&(this.status=zt?{ok:zt,value:Yn}:{ok:zt,error:Yn},this.should_snapshot)){let Jr=A3e.get(this);Jr.status=T3e(x.window,this)}x.children=Oe,x.is_toplevel_call=!1,x.is_subcall=dt;try{return Ft(Yn)}finally{x.children=null,x.is_toplevel_call=!0,x.is_subcall=!1}};return P.call(this,Mt(ae,!0),Mt(Ee,!1))}},LC=x=>{for(let P=0;P{x.children==null&&(x.children=[]);let ae={children_copy:x.children,promise:P,is_subcall:x.is_subcall};return vte(P)?ae.promise=P.then(Ee=>{ae.status={ok:!0,value:Ee}},Ee=>{ae.status={ok:!1,error:Ee}}):ae.status={ok:!0,value:P},ae},Hyt=(x,P)=>{if(x.is_toplevel_call=!1,x.is_subcall=P.is_subcall,x.original_then.call(Promise.resolve(),function(){x.is_toplevel_call=!0,x.children=null}),x.children=P.children_copy,P.status.ok)return P.status.value;throw P.status.error},Kyt=(x,P,Q,ae)=>{function Ee(...Oe){if(x.stack.length>zyt)throw new lW.constructor(lW.message);let dt=x.children;x.children=null,x.stack.push(!1);let Mt=++x.call_counter,Ft=x.version_counter,zt,Yn=x.breakpoint.current_calltree_node_id==Mt;x.breakpoint.parent_calltree_node?.id==Mt&&(x.is_subcall=!0),Yn&&(zt={args:th(x.window,Oe),context_before:th(x.window,this)},LC(x));let Jr,ti,ci,Vo=x.is_toplevel_call;x.is_toplevel_call=!1;let Sa=new.target!=null;try{return Sa?ti=new P(...Oe):ti=P.apply(this,Oe),Jr=!0,Yn&&(zt.ok=Jr,zt.context_after=th(x.window,this),zt.value=th(x.window,ti)),ti}catch(ca){throw Jr=!1,ci=ca,Yn&&(zt.context_after=th(x.window,this),zt.error=th(x.window,ci)),LC(x),ci}finally{let ca={id:Mt,is_new:Sa,version_number:Ft,last_version_number:x.version_counter,ok:Jr,context:this,value:ti,error:ci,fn:Ee,args:Oe,snapshot:zt};if(x.breakpoint.parent_calltree_node?.id==Mt&&(x.is_subcall=!1),x.stack.pop()?ca.children=x.children:ca.has_more_children=x.children!=null&&x.children.length!=0,x.children=dt,x.children==null&&(x.children=[]),x.children.push(ca),x.is_toplevel_call=Vo,x.is_toplevel_call){if(x.children.length!=1)throw new Error("illegal state");let hs=x.children[0];if(x.children=null,x.is_recording_deferred_calls){let El=x.logs;x.logs=[],x.on_deferred_call(hs,x.execution_id,El)}else x.deferred_calls.push(hs)}}}return Object.defineProperty(Ee,"name",{value:Q}),Ee.__location=ae,Ee.is_hosted=!0,P.prototype=Ee.prototype,Ee},Jyt=["log","error","info","debug","warn","trace"],qyt=x=>{let P=x.console;P.constructor=function(){};let Q=th(x,P),ae=x.__cxt;for(let Ee of Jyt){let Oe=P[Ee];P[Ee]={[Ee](...dt){let Mt=++ae.call_counter,Ft=ae.breakpoint.current_calltree_node_id==Mt,zt={id:Mt,is_log:!0,version_number:ae.version_counter,last_version_number:ae.version_counter,ok:!0,value:void 0,fn:Oe,args:dt,context:P,is_new:!1,snapshot:Ft?{args:th(ae.window,dt),context_before:Q,context_after:Q}:null};ae.children==null&&(ae.children=[]),ae.children.push(zt),ae.logs.push(ae.call_counter),LC(ae)}}[Ee],P[Ee].is_hosted=!0}},Xyt=(x,P,Q,ae,Ee,Oe=!1,dt)=>{if(typeof P!="function")throw new x.window.TypeError(Ee+" is not a "+(Oe?"constructor":"function"));if(P.is_hosted)try{return Oe?new P(...ae):P.apply(Q,ae)}finally{x.children!=null&&(x.children.at(-1).callsite_location=dt)}let Mt=x.children;x.children=null,x.stack.push(!1);let Ft=++x.call_counter,zt=x.version_counter,Yn,Jr=x.breakpoint.current_calltree_node_id==Ft;Jr&&(Yn={args:th(x.window,ae),context_before:th(x.window,Q)},LC(x));let ti,ci,Vo;try{return Oe?ci=new P(...ae):ci=P.apply(Q,ae),ti=!0,Jr&&(Yn.ok=ti,Yn.context_after=th(x.window,Q),Yn.value=th(x.window,ci)),ci}catch(Sa){throw ti=!1,Vo=Sa,Jr&&(Yn.context_after=th(x.window,Q),Yn.error=th(x.window,Vo)),LC(x),Vo}finally{let Sa=x.stack.pop();if(Ee!=null&&x.children==null)x.children=Mt;else{let ca={id:Ft,version_number:zt,last_version_number:x.version_counter,ok:ti,value:ci,error:Vo,fn:P,args:ae,context:Q,is_new:Oe,snapshot:Yn,callsite_location:dt};Sa?ca.children=x.children:(ca.has_more_children=x.children!=null&&x.children.length!=0,ca.children_count=x.children?.length??0),x.children=Mt,x.children==null&&(x.children=[]),x.children.push(ca)}}},Yyt=(x,P)=>{x.first_call_id==null&&(x.first_call_id=P),x.is_subcall&&x.selected_call_id==null&&(x.selected_call_id=P)},$yt=(x,P,Q)=>{if(!x.is_entrypoint)return;let ae=x.snapshots,Ee=ae.get(P);if(!(Ee==null||Q==x.selected_call_id||Q==x.first_call_id))return null;Ee==null&&(Ee=new Map,ae.set(P,Ee));let dt=Ee.get(Q);return dt==null?(dt={call_id:Q,ok:!1},LC(x),Ee.set(Q,dt),dt):null},Qyt=(x,P,Q)=>(P!=null&&(P.ok=!0,P.value=th(x.window,Q)),Q),Zyt=(x,P,Q,ae)=>{if(!x.is_entrypoint)return;let Oe=x.snapshots.get(P);if(Oe==null)return ae;let dt=Oe.get(Q);return dt!=null&&!dt.ok&&(dt.ok=!0,dt.value=th(x.window,ae)),ae},evt=Symbol("loop_break"),tvt=Symbol("loop_continue"),nvt={trace:Kyt,trace_call:Xyt,set_record_call:LC,record_subcall:Yyt,await_start:Uyt,await_finish:Hyt,before_take_node_snapshot:$yt,take_node_snapshot_fast:Qyt,take_node_snapshot:Zyt,Symbol_loop_break:evt,Symbol_loop_continue:tvt};var Ete=x=>x.should_collect_footprints&&x.breakpoint.function_node==x.current_function,Ybe=x=>(lp(x)?c3e(x):vG(x))?Gm`let __await_state; __rt.set_record_call(__cxt);`:[],Ste=(x,P)=>[...Gm`const __call_id = __cxt.call_counter;`,...Ybe(x),...Ete(P)?Gm` const __footprints = new Map(); __cxt.footprints.set(__call_id, __footprints); - `:[],P.breakpoint.function_node==x&&P.breakpoint.parent_calltree_node!=null?Gm`__rt.record_subcall(__cxt, __call_id)`[0]:$e.factory.createEmptyStatement()],avt=x=>{let P=x.parent;return P!=null&&($e.isPropertyAssignment(P)&&$e.isIdentifier(P.name)||$e.isVariableDeclaration(P)&&$e.isIdentifier(P.name))?P.name.text:""},W3e=(x,P,Q)=>{let ae=x.breakpoint.function_node,Ee=`${x.module}_${ae.index}_${ae.length}`,Oe=$e.factory.createObjectLiteralExpression(Vbe(Q).map(dt=>$e.factory.createShorthandPropertyAssignment($e.factory.createIdentifier(dt))));return Ybe(P,Oe,Ee)},svt=(x,P,Q)=>{x.kind==$e.SyntaxKind.FunctionDeclaration&&(x=$e.factory.createFunctionExpression(x.modifiers,x.asteriskToken,x.name,x.typeParameters,x.parameters,x.type,x.body));let ae=Cte(Q,P),Ee=$e.factory.createVariableStatement(void 0,$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration($e.factory.createArrayBindingPattern(x.parameters),void 0,void 0,$e.factory.createIdentifier("__arguments"))]));if(P.breakpoint.function_node==Q){if(Ee=W3e(P,Ee,x),Dte(P)){let $r=Kb(Q)[0],ni=`${$r.index}_${$r.length}`;Ee=[...Ee,Gm`__footprints.set(${ni}, true);\n`[0]]}}else Ee=[Ee];let dt=[$e.factory.createParameterDeclaration(void 0,$e.factory.createToken($e.SyntaxKind.DotDotDotToken),$e.factory.createIdentifier("__arguments"),void 0,void 0,void 0)],Mt=$e.factory.createBlock([...ae,...Ee,...x.body.kind==$e.SyntaxKind.Block?x.body.statements:[$e.factory.createReturnStatement(x.body)]]),zt;if(x.kind==$e.SyntaxKind.FunctionExpression)zt=$e.factory.updateFunctionExpression(x,x.modifiers,void 0,void 0,void 0,dt,void 0,Mt);else if(x.kind==$e.SyntaxKind.ArrowFunction)zt=$e.factory.updateArrowFunction(x,x.modifiers,void 0,dt,void 0,void 0,Mt);else throw console.error("bad node kind for function",x.kind),new Error("illegal state");let wt=Nte(Q,P),lr=Q.name!=null?Q.name.escapedText:avt(Q);return yx`__rt.trace(__cxt, ${zt}, ${lr}, ${wt})`},lvt=(x,P)=>x.getText(P.toplevel).replaceAll(new RegExp("\\(.*\\)","g"),"(...)"),Nte=(x,P)=>$e.factory.createStringLiteral(JSON.stringify({index:x.index,length:x.length,module:P.module})),eEe=x=>{let P=x.getChildren(),Q=P.find(Ee=>Ee.kind==$e.SyntaxKind.OpenParenToken).getStart(),ae=P.find(Ee=>Ee.kind==$e.SyntaxKind.CloseParenToken).getEnd()-Q;return{index:Q,length:ae}},cvt=(x,P,Q)=>{let ae=$e.factory.createArrayLiteralExpression(x.arguments);if(Q==P.breakpoint.selected_node){let zt=eEe(Q),wt=`${P.module}_${zt.index}_${zt.length}`;ae=Rte(ae,wt)}let Ee=Q.kind==$e.SyntaxKind.NewExpression,Oe=$e.factory.createStringLiteral(lvt(Q.expression,P)),dt=Nte(Q,P);function Mt(zt){return Dte(P)&&(zt=B3e(zt,Q.expression)),Q.expression==P.breakpoint.selected_node&&(zt=F3e(zt,P,Q.expression)),zt}if(Q.expression.kind==$e.SyntaxKind.PropertyAccessExpression||Q.expression.kind==$e.SyntaxKind.ElementAccessExpression){let zt;switch(Q.expression.kind){case $e.SyntaxKind.PropertyAccessExpression:zt=$e.factory.createPropertyAccessChain($e.factory.createIdentifier("__obj"),x.expression.questionDotToken,x.expression.name);break;case $e.SyntaxKind.ElementAccessExpression:zt=$e.factory.createElementAccessChain($e.factory.createIdentifier("__obj"),x.expression.questionDotToken,x.expression.argumentExpression);break;default:throw new Error("illegal state")}return zt=Mt(yx`( + `:[],P.breakpoint.function_node==x&&P.breakpoint.parent_calltree_node!=null?Gm`__rt.record_subcall(__cxt, __call_id)`[0]:Ye.factory.createEmptyStatement()],rvt=x=>{let P=x.parent;return P!=null&&(Ye.isPropertyAssignment(P)&&Ye.isIdentifier(P.name)||Ye.isVariableDeclaration(P)&&Ye.isIdentifier(P.name))?P.name.text:""},R3e=(x,P,Q)=>{let ae=x.breakpoint.function_node,Ee=`${x.module}_${ae.index}_${ae.length}`,Oe=Ye.factory.createObjectLiteralExpression(Fbe(Q).map(dt=>Ye.factory.createShorthandPropertyAssignment(Ye.factory.createIdentifier(dt))));return Jbe(P,Oe,Ee)},ivt=(x,P,Q)=>{x.kind==Ye.SyntaxKind.FunctionDeclaration&&(x=Ye.factory.createFunctionExpression(x.modifiers,x.asteriskToken,x.name,x.typeParameters,x.parameters,x.type,x.body));let ae=Ste(Q,P),Ee=Ye.factory.createVariableStatement(void 0,Ye.factory.createVariableDeclarationList([Ye.factory.createVariableDeclaration(Ye.factory.createArrayBindingPattern(x.parameters),void 0,void 0,Ye.factory.createIdentifier("__arguments"))]));if(P.breakpoint.function_node==Q){if(Ee=R3e(P,Ee,x),Ete(P)){let Jr=YS(Q)[0],ti=`${Jr.index}_${Jr.length}`;Ee=[...Ee,Gm`__footprints.set(${ti}, true);\n`[0]]}}else Ee=[Ee];let dt=[Ye.factory.createParameterDeclaration(void 0,Ye.factory.createToken(Ye.SyntaxKind.DotDotDotToken),Ye.factory.createIdentifier("__arguments"),void 0,void 0,void 0)],Mt=Ye.factory.createBlock([...ae,...Ee,...x.body.kind==Ye.SyntaxKind.Block?x.body.statements:[Ye.factory.createReturnStatement(x.body)]]),Ft;if(x.kind==Ye.SyntaxKind.FunctionExpression)Ft=Ye.factory.updateFunctionExpression(x,x.modifiers,void 0,void 0,void 0,dt,void 0,Mt);else if(x.kind==Ye.SyntaxKind.ArrowFunction)Ft=Ye.factory.updateArrowFunction(x,x.modifiers,void 0,dt,void 0,void 0,Mt);else throw console.error("bad node kind for function",x.kind),new Error("illegal state");let zt=Tte(Q,P),Yn=Q.name!=null?Q.name.escapedText:rvt(Q);return bx`__rt.trace(__cxt, ${Ft}, ${Yn}, ${zt})`},ovt=(x,P)=>x.getText(P.toplevel).replaceAll(new RegExp("\\(.*\\)","g"),"(...)"),Tte=(x,P)=>Ye.factory.createStringLiteral(JSON.stringify({index:x.index,length:x.length,module:P.module})),$be=x=>{let P=x.getChildren(),Q=P.find(Ee=>Ee.kind==Ye.SyntaxKind.OpenParenToken).getStart(),ae=P.find(Ee=>Ee.kind==Ye.SyntaxKind.CloseParenToken).getEnd()-Q;return{index:Q,length:ae}},avt=(x,P,Q)=>{let ae=Ye.factory.createArrayLiteralExpression(x.arguments);if(Q==P.breakpoint.selected_node){let Ft=$be(Q),zt=`${P.module}_${Ft.index}_${Ft.length}`;ae=bte(ae,zt)}let Ee=Q.kind==Ye.SyntaxKind.NewExpression,Oe=Ye.factory.createStringLiteral(ovt(Q.expression,P)),dt=Tte(Q,P);function Mt(Ft){return Ete(P)&&(Ft=N3e(Ft,Q.expression)),Q.expression==P.breakpoint.selected_node&&(Ft=D3e(Ft,P,Q.expression)),Ft}if(Q.expression.kind==Ye.SyntaxKind.PropertyAccessExpression||Q.expression.kind==Ye.SyntaxKind.ElementAccessExpression){let Ft;switch(Q.expression.kind){case Ye.SyntaxKind.PropertyAccessExpression:Ft=Ye.factory.createPropertyAccessChain(Ye.factory.createIdentifier("__obj"),x.expression.questionDotToken,x.expression.name);break;case Ye.SyntaxKind.ElementAccessExpression:Ft=Ye.factory.createElementAccessChain(Ye.factory.createIdentifier("__obj"),x.expression.questionDotToken,x.expression.argumentExpression);break;default:throw new Error("illegal state")}return Ft=Mt(bx`( __obj = ${x.expression.expression}, - __fn = ${zt} - )`),yx`( - ${zt}, + __fn = ${Ft} + )`),bx`( + ${Ft}, __rt.trace_call(__cxt, __fn, __obj, ${ae}, ${Oe}, ${Ee}, ${dt}) - )`}else{let zt=x.expression;return zt=Mt(zt),yx` - __rt.trace_call(__cxt, ${zt}, null, ${ae}, ${Oe}, ${Ee}, ${dt}) - `}},Rte=(x,P)=>yx` + )`}else{let Ft=x.expression;return Ft=Mt(Ft),bx` + __rt.trace_call(__cxt, ${Ft}, null, ${ae}, ${Oe}, ${Ee}, ${dt}) + `}},bte=(x,P)=>bx` __rt.take_node_snapshot_fast( __cxt, __rt.before_take_node_snapshot(__cxt, ${P}, __call_id), ${x} ) - `,Ybe=(x,P,Q)=>Gm` + `,Jbe=(x,P,Q)=>Gm` __rt.before_take_node_snapshot(__cxt, ${Q}, __call_id); ${x} __rt.take_node_snapshot(__cxt, ${Q}, __call_id, ${P}); - `;function dvt(x){let P=x.declarationList,Q=P.declarations;return Q.length==1?[x]:Q.map(ae=>$e.factory.updateVariableStatement(x,void 0,$e.factory.updateVariableDeclarationList(P,[ae])))}var F3e=(x,P,Q)=>{let ae=`${P.module}_${Q.index}_${Q.length}`;if($e.isExpression(Q))return Rte(x,ae);if(Q.kind==$e.SyntaxKind.ExpressionStatement)throw new Error("illegal state");if(Q.kind==$e.SyntaxKind.VariableStatement||Q.kind==$e.SyntaxKind.VariableDeclarationList){let Ee,Oe=Q.kind==$e.SyntaxKind.VariableDeclarationList?Q:Q.declarationList,dt=Vbe(Q);if(Oe.declarations.length==1&&Oe.declarations[0].name.kind==$e.SyntaxKind.Identifier){if(dt.length!=1)throw new Error("illegal state");Ee=$e.factory.createIdentifier(dt[0])}else Ee=$e.factory.createObjectLiteralExpression(dt.map(Mt=>$e.factory.createShorthandPropertyAssignment($e.factory.createIdentifier(Mt))));return Ybe(x,Ee,ae)}if(Q.kind==$e.SyntaxKind.ThrowStatement)return Gm` + `;function svt(x){let P=x.declarationList,Q=P.declarations;return Q.length==1?[x]:Q.map(ae=>Ye.factory.updateVariableStatement(x,void 0,Ye.factory.updateVariableDeclarationList(P,[ae])))}var D3e=(x,P,Q)=>{let ae=`${P.module}_${Q.index}_${Q.length}`;if(Ye.isExpression(Q))return bte(x,ae);if(Q.kind==Ye.SyntaxKind.ExpressionStatement)throw new Error("illegal state");if(Q.kind==Ye.SyntaxKind.VariableStatement||Q.kind==Ye.SyntaxKind.VariableDeclarationList){let Ee,Oe=Q.kind==Ye.SyntaxKind.VariableDeclarationList?Q:Q.declarationList,dt=Fbe(Q);if(Oe.declarations.length==1&&Oe.declarations[0].name.kind==Ye.SyntaxKind.Identifier){if(dt.length!=1)throw new Error("illegal state");Ee=Ye.factory.createIdentifier(dt[0])}else Ee=Ye.factory.createObjectLiteralExpression(dt.map(Mt=>Ye.factory.createShorthandPropertyAssignment(Ye.factory.createIdentifier(Mt))));return Jbe(x,Ee,ae)}if(Q.kind==Ye.SyntaxKind.ThrowStatement)return Gm` __rt.before_take_node_snapshot(__cxt, ${ae}, __call_id); ${x}; - `;if(Q.kind==$e.SyntaxKind.ReturnStatement||Q.kind==$e.SyntaxKind.BreakStatement||Q.kind==$e.SyntaxKind.ContinueStatement)return[$e.factory.createExpressionStatement(Rte($e.factory.createIdentifier("undefined"),ae)),...Array.isArray(x)?x:[x]];if(Q.kind==$e.SyntaxKind.ImportDeclaration){let Ee=yx`__cxt.modules[${Q.moduleSpecifier.text}]`;return Ybe(x,Ee,ae)}return x},z3e=x=>(x.parent.kind==$e.SyntaxKind.CallExpression||x.parent.kind==$e.SyntaxKind.NewExpression)&&x==x.parent.expression,B3e=(x,P)=>{let Q=`${P.index}_${P.length}`;return yx` + `;if(Q.kind==Ye.SyntaxKind.ReturnStatement||Q.kind==Ye.SyntaxKind.BreakStatement||Q.kind==Ye.SyntaxKind.ContinueStatement)return[Ye.factory.createExpressionStatement(bte(Ye.factory.createIdentifier("undefined"),ae)),...Array.isArray(x)?x:[x]];if(Q.kind==Ye.SyntaxKind.ImportDeclaration){let Ee=bx`__cxt.modules[${Q.moduleSpecifier.text}]`;return Jbe(x,Ee,ae)}return x},C3e=x=>(x.parent.kind==Ye.SyntaxKind.CallExpression||x.parent.kind==Ye.SyntaxKind.NewExpression)&&x==x.parent.expression,N3e=(x,P)=>{let Q=`${P.index}_${P.length}`;return bx` ( __footprints.set(${Q}, false), __tmp = ${x}, __footprints.set(${Q}, true), __tmp ) - `},$be=new Set;for(let x in $e.SyntaxKind){let P=$e.SyntaxKind[x];typeof P=="string"&&P.startsWith("Jsx")&&$be.add(parseInt(x))}var G3e=x=>!(x.kind==$e.SyntaxKind.VariableDeclarationList&&!(x.parent.kind==$e.SyntaxKind.ForStatement&&x.parent.initializer==x)||x.kind==$e.SyntaxKind.SourceFile||x.kind==$e.SyntaxKind.PropertyAssignment||x.kind==$e.SyntaxKind.ShorthandPropertyAssignment||x.kind==$e.SyntaxKind.ParenthesizedExpression||x.kind==$e.SyntaxKind.VariableDeclaration||x.kind==$e.SyntaxKind.ExpressionStatement||x.kind==$e.SyntaxKind.SpreadElement||x.kind==$e.SyntaxKind.SpreadAssignment||x.kind==$e.SyntaxKind.BindingElement||x.kind==$e.SyntaxKind.ComputedPropertyName||x.kind==$e.SyntaxKind.Parameter||x.kind==$e.SyntaxKind.NamedImports||x.kind==$e.SyntaxKind.NamespaceImport||x.kind==$e.SyntaxKind.ImportSpecifier||x.kind==$e.SyntaxKind.ImportClause||x.kind==$e.SyntaxKind.TemplateHead||x.kind==$e.SyntaxKind.TemplateMiddle||x.kind==$e.SyntaxKind.TemplateTail||x.kind==$e.SyntaxKind.TemplateSpan||x.kind==$e.SyntaxKind.PartiallyEmittedExpression||x.kind==$e.SyntaxKind.AsyncKeyword||x.kind==$e.SyntaxKind.OmittedExpression||$be.has(x.kind)&&!oW(x)||$be.has(x.parent?.kind)&&x.parent?.kind!=$e.SyntaxKind.JsxExpression&&x.parent?.kind!=$e.SyntaxKind.JsxSpreadAttribute||bG(x,x.parent)||x.parent.kind==$e.SyntaxKind.BindingElement&&x.parent.propertyName==x||(x.parent.kind==$e.SyntaxKind.PropertyAccessExpression||x.parent.kind==$e.SyntaxKind.PropertyAssignment||x.parent.kind==$e.SyntaxKind.ShorthandPropertyAssignment)&&x.parent.name==x),uvt=(x,P,Q)=>{if(!Dte(P)||!G3e(Q)||z3e(Q))return x;if(Q.kind==$e.SyntaxKind.Block)if(Q.statements.length==0){let ae=`${Q.index}_${Q.length}`;return Gm`{__footprints.set(${ae}, true);}`}else return x;if($e.isExpression(Q))return B3e(x,Q);{(Q.kind==$e.SyntaxKind.VariableStatement||Q.kind==$e.SyntaxKind.VariableDeclarationList)&&(x=dvt(x).flatMap(Ee=>{let Oe=$e.getOriginalNode(Ee.declarationList.declarations[0]),dt=`${Oe.index}_${Oe.length}`;return Gm` + `},qbe=new Set;for(let x in Ye.SyntaxKind){let P=Ye.SyntaxKind[x];typeof P=="string"&&P.startsWith("Jsx")&&qbe.add(parseInt(x))}var P3e=x=>!(x.kind==Ye.SyntaxKind.VariableDeclarationList&&!(x.parent.kind==Ye.SyntaxKind.ForStatement&&x.parent.initializer==x)||x.kind==Ye.SyntaxKind.SourceFile||x.kind==Ye.SyntaxKind.PropertyAssignment||x.kind==Ye.SyntaxKind.ShorthandPropertyAssignment||x.kind==Ye.SyntaxKind.ParenthesizedExpression||x.kind==Ye.SyntaxKind.VariableDeclaration||x.kind==Ye.SyntaxKind.ExpressionStatement||x.kind==Ye.SyntaxKind.SpreadElement||x.kind==Ye.SyntaxKind.SpreadAssignment||x.kind==Ye.SyntaxKind.BindingElement||x.kind==Ye.SyntaxKind.ComputedPropertyName||x.kind==Ye.SyntaxKind.Parameter||x.kind==Ye.SyntaxKind.NamedImports||x.kind==Ye.SyntaxKind.NamespaceImport||x.kind==Ye.SyntaxKind.ImportSpecifier||x.kind==Ye.SyntaxKind.ImportClause||x.kind==Ye.SyntaxKind.TemplateHead||x.kind==Ye.SyntaxKind.TemplateMiddle||x.kind==Ye.SyntaxKind.TemplateTail||x.kind==Ye.SyntaxKind.TemplateSpan||x.kind==Ye.SyntaxKind.PartiallyEmittedExpression||x.kind==Ye.SyntaxKind.AsyncKeyword||x.kind==Ye.SyntaxKind.OmittedExpression||qbe.has(x.kind)&&!oW(x)||qbe.has(x.parent?.kind)&&x.parent?.kind!=Ye.SyntaxKind.JsxExpression&&x.parent?.kind!=Ye.SyntaxKind.JsxSpreadAttribute||aW(x,x.parent)||x.parent.kind==Ye.SyntaxKind.BindingElement&&x.parent.propertyName==x||(x.parent.kind==Ye.SyntaxKind.PropertyAccessExpression||x.parent.kind==Ye.SyntaxKind.PropertyAssignment||x.parent.kind==Ye.SyntaxKind.ShorthandPropertyAssignment)&&x.parent.name==x),lvt=(x,P,Q)=>{if(!Ete(P)||!P3e(Q)||C3e(Q))return x;if(Q.kind==Ye.SyntaxKind.Block)if(Q.statements.length==0){let ae=`${Q.index}_${Q.length}`;return Gm`{__footprints.set(${ae}, true);}`}else return x;if(Ye.isExpression(Q))return N3e(x,Q);{(Q.kind==Ye.SyntaxKind.VariableStatement||Q.kind==Ye.SyntaxKind.VariableDeclarationList)&&(x=svt(x).flatMap(Ee=>{let Oe=Ye.getOriginalNode(Ee.declarationList.declarations[0]),dt=`${Oe.index}_${Oe.length}`;return Gm` __footprints.set(${dt}, false); ${Ee}; __footprints.set(${dt}, true); @@ -51367,55 +51364,55 @@ Path: `+gv(this.current_file);if(confirm(P))if(this.current_file.startsWith("loc __footprints.set(${ae}, false); ${x}; __footprints.set(${ae}, true); - `}},pvt=$e.createPrinter({newLine:$e.NewLineKind.LineFeed,removeComments:!0});function fvt(x,P,Q){let ae={...x,current_function:Q},Ee=vG(Q),Oe=Cte(Q,ae),dt;if(ae.breakpoint.function_node==Q){let fs=`${ae.module}_${Q.index}_${Q.length}`;dt=Rte($e.factory.createNull(),fs)}else dt=null;let Mt=$e.factory.createUniqueName("loop_result"),zt=$e.factory.createUniqueName("loop_body"),wt=$e.factory.createUniqueName("loop_counter"),lr=$e.factory.createUniqueName("loop_iter_name"),$r;P.kind==$e.SyntaxKind.WhileStatement?$r=Gm` + `}},cvt=Ye.createPrinter({newLine:Ye.NewLineKind.LineFeed,removeComments:!0});function dvt(x,P,Q){let ae={...x,current_function:Q},Ee=vG(Q),Oe=Ste(Q,ae),dt;if(ae.breakpoint.function_node==Q){let ca=`${ae.module}_${Q.index}_${Q.length}`;dt=bte(Ye.factory.createNull(),ca)}else dt=null;let Mt=Ye.factory.createUniqueName("loop_result"),Ft=Ye.factory.createUniqueName("loop_body"),zt=Ye.factory.createUniqueName("loop_counter"),Yn=Ye.factory.createUniqueName("loop_iter_name"),Jr;P.kind==Ye.SyntaxKind.WhileStatement?Jr=Gm` if(${P.expression}) { ${P.statement}; return __rt.Symbol_loop_continue } else { return __rt.Symbol_loop_break } - `:$r=Gm` + `:Jr=Gm` ${P.statement}; if(${P.expression}) { return __rt.Symbol_loop_continue } else { return __rt.Symbol_loop_break } - `;let ni=new YS(Ee?"async":""),Rr=new YS(Ee?"await":""),oa=Tte(Q),Zo=Nte(Q,ae);return Gm` - const ${Mt} = ${Rr} __rt.trace_call( + `;let ti=new QS(Ee?"async":""),ci=new QS(Ee?"await":""),Vo=gte(Q),Sa=Tte(Q,ae);return Gm` + const ${Mt} = ${ci} __rt.trace_call( __cxt, Object.defineProperty( - ${ni} () => { - ${Zbe(Q)}; + ${ti} () => { + ${Ybe(Q)}; - const ${zt} = __rt.trace( + const ${Ft} = __rt.trace( __cxt, - ${ni} () => { + ${ti} () => { ${Oe}; ${dt}; - ${$r} + ${Jr} }, null, - ${Zo}, + ${Sa}, ) - ${zt}.__type = 'loop_iteration' + ${Ft}.__type = 'loop_iteration' - let ${wt} = 0 + let ${zt} = 0 while(true) { - if(${wt}++ > 1000) { + if(${zt}++ > 1000) { throw new RangeError('Potential infinite loop: exceeded 1000 iterations.') } - const ${lr} = ${Rr} ${zt}(${oa}); - if(${lr} == __rt.Symbol_loop_continue) { + const ${Yn} = ${ci} ${Ft}(${Vo}); + if(${Yn} == __rt.Symbol_loop_continue) { // do nothing, continue loop } else { // return either value returned by return statement, or Symbol_loop_break - return ${lr} + return ${Yn} } } }, '__location', - {value: ${Zo}}, + {value: ${Sa}}, ), null, null, @@ -51425,40 +51422,40 @@ Path: `+gv(this.current_file);if(confirm(P))if(this.current_file.startsWith("loc if(${Mt} != __rt.Symbol_loop_break) { return ${Mt} } - `}function V3e(x,P){if(P=$e.visitEachChild(P,Q=>V3e(x,Q)),P.kind==$e.SyntaxKind.WhileStatement||P.kind==$e.SyntaxKind.DoStatement)return fvt(x,P,$e.getOriginalNode(P));if(P.kind==$e.SyntaxKind.ForOfStatement||P.kind==$e.SyntaxKind.ForInStatement){let Q=$e.getOriginalNode(P),ae={...x,current_function:Q},Ee=vG(Q),Oe=Cte(Q,ae),dt=$e.factory.createUniqueName("loop_result"),Mt=$e.factory.createUniqueName("loop_body"),zt=$e.factory.createUniqueName("loop_iter_name"),wt=$e.factory.createUniqueName("loop_initializer"),lr;if(Q.initializer.kind==$e.SyntaxKind.VariableDeclarationList){if(Q.initializer.declarations.length!=1)throw new Error("illegal state");let fs=P.initializer.declarations[0];lr=$e.factory.createVariableStatement(void 0,$e.factory.updateVariableDeclarationList(P.initializer,[$e.factory.updateVariableDeclaration(fs,fs.name,void 0,void 0,wt)]))}else lr=$e.factory.createExpressionStatement($e.factory.createBinaryExpression(P.initializer,$e.factory.createToken($e.SyntaxKind.EqualsToken),wt));let $r;ae.breakpoint.function_node==Q?$r=W3e(ae,lr,Q.initializer):$r=lr;let ni=new YS(Ee?"async":""),Rr=new YS(Ee?"await":""),oa=new YS(Q.kind==$e.SyntaxKind.ForOfStatement?"of":"in"),Zo=Nte(Q,ae);return Gm` - const ${dt} = ${Rr} __rt.trace_call( + `}function M3e(x,P){if(P=Ye.visitEachChild(P,Q=>M3e(x,Q)),P.kind==Ye.SyntaxKind.WhileStatement||P.kind==Ye.SyntaxKind.DoStatement)return dvt(x,P,Ye.getOriginalNode(P));if(P.kind==Ye.SyntaxKind.ForOfStatement||P.kind==Ye.SyntaxKind.ForInStatement){let Q=Ye.getOriginalNode(P),ae={...x,current_function:Q},Ee=vG(Q),Oe=Ste(Q,ae),dt=Ye.factory.createUniqueName("loop_result"),Mt=Ye.factory.createUniqueName("loop_body"),Ft=Ye.factory.createUniqueName("loop_iter_name"),zt=Ye.factory.createUniqueName("loop_initializer"),Yn;if(Q.initializer.kind==Ye.SyntaxKind.VariableDeclarationList){if(Q.initializer.declarations.length!=1)throw new Error("illegal state");let ca=P.initializer.declarations[0];Yn=Ye.factory.createVariableStatement(void 0,Ye.factory.updateVariableDeclarationList(P.initializer,[Ye.factory.updateVariableDeclaration(ca,ca.name,void 0,void 0,zt)]))}else Yn=Ye.factory.createExpressionStatement(Ye.factory.createBinaryExpression(P.initializer,Ye.factory.createToken(Ye.SyntaxKind.EqualsToken),zt));let Jr;ae.breakpoint.function_node==Q?Jr=R3e(ae,Yn,Q.initializer):Jr=Yn;let ti=new QS(Ee?"async":""),ci=new QS(Ee?"await":""),Vo=new QS(Q.kind==Ye.SyntaxKind.ForOfStatement?"of":"in"),Sa=Tte(Q,ae);return Gm` + const ${dt} = ${ci} __rt.trace_call( __cxt, Object.defineProperty( - ${ni} () => { - ${Zbe(Q)}; + ${ti} () => { + ${Ybe(Q)}; const ${Mt} = __rt.trace( __cxt, - ${ni} (${wt}) => { + ${ti} (${zt}) => { ${Oe}; - ${$r}; + ${Jr}; ${P.statement}; return __rt.Symbol_loop_continue }, null, - ${Zo}, + ${Sa}, ) ${Mt}.__type = 'loop_iteration' - for(const ${wt} ${oa} ${P.expression}) { - const ${zt} = ${Rr} ${Mt}(${wt}); - if(${zt} == __rt.Symbol_loop_continue) { + for(const ${zt} ${Vo} ${P.expression}) { + const ${Ft} = ${ci} ${Mt}(${zt}); + if(${Ft} == __rt.Symbol_loop_continue) { // do nothing, continue loop } else { // return either value returned by return statement, or Symbol_loop_break - return ${zt} + return ${Ft} } } return __rt.Symbol_loop_break }, '__location', - {value: ${Zo}}, + {value: ${Sa}}, ), null, null, @@ -51468,21 +51465,24 @@ Path: `+gv(this.current_file);if(confirm(P))if(this.current_file.startsWith("loc if(${dt} != __rt.Symbol_loop_break) { return ${dt} } - `}return P.kind==$e.SyntaxKind.BreakStatement?Gm`return __rt.Symbol_loop_break;`[0]:P.kind==$e.SyntaxKind.ContinueStatement?Gm`return __rt.Symbol_loop_continue;`[0]:P}var cW=x=>function(P){return Q=>$e.visitNode(Q,x)},mvt=(x,P)=>{let Q=P.breakpoint;return $e.transform(x,[cW(function ae(Ee){let Oe=$e.visitEachChild(Ee,ae);if(Ee.kind==$e.SyntaxKind.Block||Ee.kind==$e.SyntaxKind.SourceFile){let dt=[],Mt=[];Oe.statements.forEach(wt=>{$e.isFunctionDeclaration(wt)?dt.push(wt):Mt.push(wt)}),Oe=(Ee.kind==$e.SyntaxKind.Block?$e.factory.updateBlock:$e.factory.updateSourceFile)(Oe,[...dt,...Mt])}return Oe}),cW(function ae(Ee){if(Ee=$e.visitEachChild(Ee,ae),Ee.kind==$e.SyntaxKind.ForStatement){let Oe=$e.factory.createBlock([Ee.statement,Ee.incrementor]),dt=$e.factory.createWhileStatement(Ee.condition,Oe);Oe.parent=dt;let Mt=Ee.initializer;if(Mt?.kind==$e.SyntaxKind.VariableDeclarationList){let wt=$e.factory.createVariableDeclarationList(Ee.initializer.declarations,Ee.initializer.flags);wt.original=void 0,wt.parent=Ee.initializer.parent,Mt=$e.factory.createVariableStatement(void 0,wt),Mt.original=Ee.initializer}let zt=$e.factory.createBlock([Mt,dt]);return dt.original=$e.getOriginalNode(Ee),zt.parent=$e.getOriginalNode(Ee).parent,zt}return Ee}),cW(function ae(Ee,Oe=P,dt=0){let Mt=$e.getOriginalNode(Ee),zt=Oe,wt=Oe;(lp(Mt)||Jp(Mt))&&(zt={...Oe,current_function:Mt});let lr=Ste(Mt);lr!=null&&(wt=zt={...Oe,current_function:lr});let $r=$e.visitEachChild(Ee,ni=>ae(ni,zt,dt+1));if(Ee.kind==$e.SyntaxKind.ExportAssignment||Ee.kind==$e.SyntaxKind.ExportDeclaration)return[];if(Ee.modifiers!=null&&Ee.modifiers.some(ni=>ni.kind==$e.SyntaxKind.ExportKeyword)){let ni=$e.getEffectiveModifierFlags(Ee)&~$e.ModifierFlags.Export;$r=$e.factory.replaceModifiers($r,ni)}if(Ee.kind==$e.SyntaxKind.ImportDeclaration){let ni=Ee.importClause?.namedBindings,Rr=[];ni?.kind==$e.SyntaxKind.NamedImports&&(Rr=Ee.importClause.namedBindings.elements.map(Zo=>{let fs=(Zo.propertyName??Zo.name).escapedText;return{name:Zo.name.escapedText,prop:fs}})),Ee.importClause?.name!=null&&Rr.push({prop:"default",name:Ee.importClause.name.escapedText});let oa=$e.factory.createObjectBindingPattern(Rr.map(({name:Zo,prop:fs})=>$e.factory.createBindingElement(void 0,fs,Zo,void 0)));$r=Gm` - const ${oa} = __cxt.modules[${Ee.moduleSpecifier.text}]; - `,ni?.kind==$e.SyntaxKind.NamespaceImport&&$r.push(...Gm` - const ${ni.name} = __cxt.modules[${Ee.moduleSpecifier.text}]; - `)}if((Ee.kind==$e.SyntaxKind.CallExpression||Ee.kind==$e.SyntaxKind.NewExpression)&&Ee.expression.kind!=$e.SyntaxKind.ImportKeyword&&($r=cvt($r,Oe,Mt)),lp(Ee)&&($r=svt($r,zt,Mt),Ee.kind==$e.SyntaxKind.FunctionDeclaration)){if(Ee.name==null)throw new Error("Illegal state");$r=$e.factory.createVariableStatement(void 0,$e.factory.createVariableDeclarationList([$e.factory.createVariableDeclaration(Ee.name,void 0,void 0,$r)],$e.NodeFlags.Let))}return $r=uvt($r,wt,Mt),Mt==Q.selected_node&&(z3e(Mt)||($r=F3e($r,Oe,Mt))),$r}),cW(ae=>V3e(P,ae)),cW(function ae(Ee){let Oe=$e.visitEachChild(Ee,ae);return Ee.kind==$e.SyntaxKind.AwaitExpression&&(Oe=yx` + `}return P.kind==Ye.SyntaxKind.BreakStatement?Gm`return __rt.Symbol_loop_break;`[0]:P.kind==Ye.SyntaxKind.ContinueStatement?Gm`return __rt.Symbol_loop_continue;`[0]:P}var cW=x=>function(P){return Q=>Ye.visitNode(Q,x)},uvt=(x,P)=>{let Q=P.breakpoint;return Ye.transform(x,[cW(function ae(Ee){let Oe=Ye.visitEachChild(Ee,ae);if(Ee.kind==Ye.SyntaxKind.Block||Ee.kind==Ye.SyntaxKind.SourceFile){let dt=[],Mt=[];Oe.statements.forEach(zt=>{Ye.isFunctionDeclaration(zt)?dt.push(zt):Mt.push(zt)}),Oe=(Ee.kind==Ye.SyntaxKind.Block?Ye.factory.updateBlock:Ye.factory.updateSourceFile)(Oe,[...dt,...Mt])}return Oe}),cW(function ae(Ee){if(Ee=Ye.visitEachChild(Ee,ae),Ee.kind==Ye.SyntaxKind.ForStatement){let Oe=Ye.factory.createBlock([Ee.statement,Ee.incrementor]),dt=Ye.factory.createWhileStatement(Ee.condition,Oe);Oe.parent=dt;let Mt=Ee.initializer;if(Mt?.kind==Ye.SyntaxKind.VariableDeclarationList){let zt=Ye.factory.createVariableDeclarationList(Ee.initializer.declarations,Ee.initializer.flags);zt.original=void 0,zt.parent=Ee.initializer.parent,Mt=Ye.factory.createVariableStatement(void 0,zt),Mt.original=Ee.initializer}let Ft=Ye.factory.createBlock([Mt,dt]);return dt.original=Ye.getOriginalNode(Ee),Ft.parent=Ye.getOriginalNode(Ee).parent,Ft}return Ee}),cW(function ae(Ee,Oe=P,dt=0){let Mt=Ye.getOriginalNode(Ee),Ft=Oe,zt=Oe;(lp(Mt)||gf(Mt))&&(Ft={...Oe,current_function:Mt});let Yn=hte(Mt);Yn!=null&&(zt=Ft={...Oe,current_function:Yn});let Jr=Ye.visitEachChild(Ee,ti=>ae(ti,Ft,dt+1));if(Ee.kind==Ye.SyntaxKind.ExportAssignment||Ee.kind==Ye.SyntaxKind.ExportDeclaration)return[];if(Ee.modifiers!=null&&Ee.modifiers.some(ti=>ti.kind==Ye.SyntaxKind.ExportKeyword)){let ti=Ye.getEffectiveModifierFlags(Ee)&~Ye.ModifierFlags.Export;Jr=Ye.factory.replaceModifiers(Jr,ti)}if(Ee.kind==Ye.SyntaxKind.ImportDeclaration){let ti=Ee.importClause?.namedBindings,ci=[];ti?.kind==Ye.SyntaxKind.NamedImports&&(ci=Ee.importClause.namedBindings.elements.map(Sa=>{let ca=(Sa.propertyName??Sa.name).escapedText;return{name:Sa.name.escapedText,prop:ca}})),Ee.importClause?.name!=null&&ci.push({prop:"default",name:Ee.importClause.name.escapedText});let Vo=Ye.factory.createObjectBindingPattern(ci.map(({name:Sa,prop:ca})=>Ye.factory.createBindingElement(void 0,ca,Sa,void 0)));Jr=Gm` + const ${Vo} = __cxt.modules[${Ee.moduleSpecifier.text}]; + `,ti?.kind==Ye.SyntaxKind.NamespaceImport&&Jr.push(...Gm` + const ${ti.name} = __cxt.modules[${Ee.moduleSpecifier.text}]; + `)}if((Ee.kind==Ye.SyntaxKind.CallExpression||Ee.kind==Ye.SyntaxKind.NewExpression)&&Ee.expression.kind!=Ye.SyntaxKind.ImportKeyword&&(Jr=avt(Jr,Oe,Mt)),lp(Ee)&&(Jr=ivt(Jr,Ft,Mt),Ee.kind==Ye.SyntaxKind.FunctionDeclaration)){if(Ee.name==null)throw new Error("Illegal state");Jr=Ye.factory.createVariableStatement(void 0,Ye.factory.createVariableDeclarationList([Ye.factory.createVariableDeclaration(Ee.name,void 0,void 0,Jr)],Ye.NodeFlags.Let))}return Jr=lvt(Jr,zt,Mt),Mt==Q.selected_node&&(C3e(Mt)||(Jr=D3e(Jr,Oe,Mt))),Jr}),cW(ae=>M3e(P,ae)),cW(function ae(Ee){let Oe=Ye.visitEachChild(Ee,ae);return Ee.kind==Ye.SyntaxKind.AwaitExpression&&(Oe=bx` (__await_state = __rt.await_start(__cxt, ${Oe.expression}), await __await_state.promise, __rt.await_finish(__cxt, __await_state)) - `),Oe}),cW(function ae(Ee){return Ee.kind==$e.SyntaxKind.DebuggerStatement?null:$e.visitEachChild(Ee,ae)})]).transformed[0]},j3e=(x,P,Q,ae,Ee,Oe,dt,Mt,zt,wt,lr)=>{let $r=globalThis.app_window.Function,ni=globalThis.app_window.eval("(async function(){})").constructor,Rr=x.sorted.map(gs=>{let Za=x.modules[gs],md={module:gs,toplevel:Za,breakpoint:wt,current_function:Za,should_collect_footprints:zt};Za=mvt(Za,md);let Gd=Gm`"use strict";let __obj, __fn, __tmp;`;Za=$e.factory.updateSourceFile(Za,[...Gd,...Cte(Za,md),...Za.statements]);let by=$e.transformNodes(x.program.getTypeChecker().getEmitResolver(),void 0,$e.factory,CC,[Za],[$e.transformJsx],!1).transformed;if(by.length!=1)throw new Error("illegal state");Za=by[0];let kC=pvt.printFile(Za),Ol=vG(Za)?ni:$r,ki;try{ki=new Ol("__cxt","__rt",kC)}catch(nu){throw new Error(nu.message,{cause:nu})}return{module:gs,fn:ki}}),oa={logs:[],deferred_calls:[],modules:P==null?{}:Z4e(P,(gs,{module:Za})=>Za),call_counter:0,version_counter:0,children:null,stack:new Array,is_recording_deferred_calls:!1,on_deferred_call:(gs,Za,md)=>Q(O3e(x.modules,gs),Za,md),execution_id:ae,is_toplevel_call:!0,window:globalThis.app_window,storage:dt,canvas_ops:{ops:[],contexts:new Set},snapshots:Mt,footprints:new Map,breakpoint:wt,selected_call_id:wt.selected_call_id,io_trace:Ee,io_trace_is_recording:Oe},Zo=w3e(Rr,oa);Zo?.[Symbol.toStringTag]=="Promise"&&(Zo=new Promise((gs,Za)=>{Promise.prototype.then.call(Zo,gs,Za)})),lr||(Zo=Promise.resolve(Zo));let fs=gs=>{let Za=O3e(x.modules,dte(gs.calltree,oa.deferred_calls.length==0?null:oa.deferred_calls));return{...gs,breakpoint:wt,calltree:Za}};return Zo?.[Symbol.toStringTag]=="Promise"?Promise.all([Zo,new Promise(gs=>setTimeout(gs,0))]).then(([gs])=>fs(gs)):fs(Zo)},_vt=(x,P)=>{let Q=$e.forEachChildRecursively(x,ae=>{if(ae.index==P.index&&ae.length==P.length&&(lp(ae)||Jp(ae)))return ae});if(Q==null)throw new Error("illegal state");return Q},O3e=(x,P)=>{let Q=new Map;function ae(Ee){if(Ee.toplevel)return{...Ee,code:x[Ee.module],children:Ee.children&&Ee.children.map(ae)};{let Oe;if(Ee.fn==null||Ee.fn.__location==null)Oe=null;else if(Oe=Q.get(Ee.fn.__location),Oe==null){let dt=JSON.parse(Ee.fn.__location);Oe=_vt(x[dt.module],dt),Q.set(Ee.fn.__location,Oe)}return{...Ee,code:Oe,children:Ee.children&&Ee.children.map(ae)}}}return ae(P)},tEe=(x,P,Q)=>x.kind==$e.SyntaxKind.AwaitExpression&&!Q&&!P.toplevel&&P.value.status==null,Qbe=class extends Map{get(P){return P=gx(P)?P.original:P,super.get(P)}},nEe=(x,P,Q,ae,Ee)=>{Ee??=new Qbe;let Oe=hvt(x,P,Q,ae,Ee);return Ee.set(x,Oe.result),Ee},hvt=(x,P,Q,ae,Ee)=>{let Oe=ni=>nEe(ni,P,Q,x,Ee),dt=ni=>Q.get(ni.index+"_"+ni.length),Mt=dt(x);if(x.kind==$e.SyntaxKind.VariableDeclarationList&&x.parent.kind==$e.SyntaxKind.VariableStatement&&(Mt=dt(x.parent)),ae?.kind==$e.SyntaxKind.PropertyAccessExpression&&ae.name==x&&(Ee.get(ae.expression)?.ok?Mt=!0:Mt=void 0),(ae?.kind==$e.SyntaxKind.PropertyAssignment||ae?.kind==$e.SyntaxKind.ShorthandPropertyAssignment)&&ae.name==x&&dt(ae.parent)!=null&&(Mt=!0),tEe(x,P,Mt)&&(Mt=void 0),lp(x)){if(ae!=null)return{result:Mt==null?void 0:{ok:Mt}};{let[ni,Rr]=Kb(x);return dt(ni)?(Ee.set(ni.original,{ok:!0}),Oe(Rr)):Ee.set(ni.original,{ok:!1,is_error_origin:!0}),{result:{ok:Ee.get(Rr)?.ok}}}}if(Jp(x)&&ae!=null)return(x.kind==$e.SyntaxKind.ForOfStatement||x.kind==$e.SyntaxKind.ForInStatement)&&Oe(x.expression),x.kind==$e.SyntaxKind.ForStatement&&Oe(x.initializer),Mt==null?{result:void 0}:{result:{ok:Mt,is_error_origin:!Mt}};if(G3e(x)&&!(x.kind==$e.SyntaxKind.Block||x.kind==$e.SyntaxKind.SourceFile)&&ae!=null&&Mt==null)return{result:void 0};if(ae!=null&&bG(x,ae))if(x.kind==$e.SyntaxKind.PropertyAccessExpression||x.kind==$e.SyntaxKind.ElementAccessExpression){let ni=Kb(x);return ni.map(oa=>Oe(oa)),{result:{ok:ni.every(oa=>Ee.get(oa)?.ok)}}}else Mt=!0;if(x.kind==$e.SyntaxKind.VariableDeclaration){let[ni,Rr]=[x.name,x.initializer];return Rr!=null&&Oe(Rr),(Rr==null||Ee.get(Rr)?.ok)&&Oe(ni),{result:{ok:Mt,is_error_origin:Mt?void 0:Ee.get(Rr)?.ok}}}let zt=Kb(x);zt&&zt.map(ni=>Oe(ni));let wt=zt==null||zt.every(ni=>Ee.get(ni)?.ok),lr=!Mt&&wt;if((x.kind==$e.SyntaxKind.Block||x.kind==$e.SyntaxKind.SourceFile)&&(zt.length!=0&&(Mt=zt.reduce((ni,Rr)=>ni&&Ee.get(Rr)?.ok,!0)),lr=!1),x.kind==$e.SyntaxKind.PartiallyEmittedExpression||x.kind==$e.SyntaxKind.ExpressionStatement||x.kind==$e.SyntaxKind.ParenthesizedExpression||x.kind==$e.SyntaxKind.JsxExpression){if(zt.length!=1)throw new Error("illegal state");let ni=Ee.get(x.expression);return{result:ni==null?null:{...ni,is_error_origin:!1}}}if(x.kind==$e.SyntaxKind.IfStatement&&(Mt=dt(x.expression),zt.some(ni=>Ee.get(ni)?.ok===!1)&&(Mt=!1)),Jp(x)&&ae==null){if(x.kind==$e.SyntaxKind.ForOfStatement||x.kind==$e.SyntaxKind.ForInStatement){let ni=x.statement;Oe(ni);let Rr=Ee.get(ni)!=null;Ee.set(x.initializer,{ok:Rr,is_error_origin:!Rr})}return{result:void 0}}return[$e.SyntaxKind.ReturnStatement,$e.SyntaxKind.BreakStatement,$e.SyntaxKind.ContinueStatement].includes(x.kind)&&(Mt!=null&&(Mt=wt),lr=!1),x.kind==$e.SyntaxKind.PropertyAssignment||x.kind==$e.SyntaxKind.ShorthandPropertyAssignment||x.kind==$e.SyntaxKind.SpreadElement||x.kind==$e.SyntaxKind.SpreadAssignment||x.kind==$e.SyntaxKind.JsxSpreadAttribute?{result:{ok:wt}}:{result:Mt===void 0?void 0:{ok:Mt,is_error_origin:Mt?void 0:lr}}};function U3e(x){return new Map([...x.entries()].map(([P,Q])=>[P,structuredClone(Q)]))}var EG=class extends Map{set(P,Q){if(structuredClone(Q),typeof P!="string")throw new Error("key must be a string");super.set(P,Q)}};var dW=class extends Map{get_by_module_and_node(P,Q){if(Q.index==null||Q.length==null)throw new Error("illegal state");return this.get(`${P}_${Q.index}_${Q.length}`)}set_by_module_and_node(P,Q,ae){if(Q.index==null||Q.length==null)throw new Error("illegal state");return this.set(`${P}_${Q.index}_${Q.length}`,ae)}};var H3e=x=>x.kind==$e.SyntaxKind.ExpressionStatement?x.expression:x.kind==$e.SyntaxKind.NotEmittedStatement||x.kind==$e.SyntaxKind.EmptyStatement?null:x.kind==$e.SyntaxKind.ReturnStatement?x.expression==null?x:x.expression:x.kind=="export"?H3e(x.children[0]):x,Pte=(x,P)=>{let Q=lp(x);if(Q){let zt=Kb(x)[0];if(fL(zt,P))return x.parameters.length>0?zt:null}let ae=XS(x,P),Ee=ae==null||(ae.kind==$e.SyntaxKind.Block||ae.kind==$e.SyntaxKind.SourceFile)&&P>ae.index?XS(x,P-1):ae;if(Ee==null||Ee.kind==$e.SyntaxKind.Block||x==Ee||x.name==Ee)return null;let Oe=aW(Ee,x);for(let zt of Oe){if(lp(zt))break;if(zt.kind==$e.SyntaxKind.JsxExpression||zt.kind==$e.SyntaxKind.JsxSpreadAttribute)return zt.expression;if(Gbe(zt))return zt}if(Q&&x.body.kind!=$e.SyntaxKind.Block)return x.body;if(Oe.find(zt=>zt!=x&&zt!=Ee&&(lp(zt)||Jp(zt)))!=null)return null;if(Jp(x)&&Oe.includes(x.expression))return x.expression;if(x.kind==$e.SyntaxKind.ForStatement&&Oe.includes(x.incrementor))return x.incrementor;if(x.kind==$e.SyntaxKind.ForStatement&&Oe.includes(x.condition))return x.condition;let Mt=$e.forEachAncestor(Ee,zt=>{if(zt.parent.kind==$e.SyntaxKind.IfStatement&&zt.parent.expression==zt||$e.isStatement(zt))return zt});return H3e(Mt)};var tu={parse:"parse",reload_app_window:"reload_app_window",reload_app_window_finished:"reload_app_window_finished",load_external_imports:"load_external_imports",eval_modules:"eval_modules",eval_modules_finished:"eval_modules_finished"},q3e=(x,P)=>{let Q=new Set(x),ae=new Map,Ee=(Oe,dt)=>{if(Oe.children!=null)for(let Mt of Oe.children)Ee(Mt,Oe.code!=null&&Jp(Oe.code)?dt:Oe);Q.has(Oe.id)&&ae.set(Oe.id,{id:Oe.id,version_number:Oe.version_number,toplevel:dt.toplevel,module:vy(dt)?.module,parent_name:dt.fn?.name,args:Oe.args,log_fn_name:Oe.fn.name})};return Ee(P,null),x.map(Oe=>ae.get(Oe))},gvt=x=>x.run_state?.status!=tu.reload_app_window?_L({...x,run_state:{status:tu.reload_app_window_finished}},!1):x.run_state.on_reload_app_window_finished(x),Lte=(x,P,Q)=>({function_node:P,module:x,selected_node:Q}),X3e=x=>{let P=hL(x),Q=Bte(x,x.current_module,P),ae=Pte(Q,P);return Lte(x.current_module,Q,ae)},kte=x=>{if(x.parse_result.modules[x.current_module]==null)return Lte(x.current_module,x.parse_result.modules[x.entrypoint],null);let P=X3e(x);return Y3e(x,P)},Y3e=(x,P)=>{let Q;return P.function_node==x.active_calltree_node?.code?Q=x.active_calltree_node:x.calltree!=null&&x.deepest_calltree_node_id!=null&&(Q=aEe(x.calltree,x.deepest_calltree_node_id).findLast(ae=>ae.code==P.function_node&&(!Jp(ae.code)||ae.fn.__type=="loop_iteration"))),Q==null?x.active_calltree_node!=null&&(P={...P,parent_calltree_node:x.active_calltree_node}):P={...P,selected_call_id:Q.id},P},_L=(x,P,Q)=>{let ae=x.active_calltree_node;if(x={...x,calltree:null,modules:null,execution_id:x.execution_id+1,rt_cxt:null,logs:null,current_calltree_node:null,active_calltree_node:null,deepest_calltree_node_id:null,calltree_node_is_expanded:null,collected_footprints_functions:new Set,frames:new Map,colored_frames:null,frame_coloring:new Map,selection_state:null,value_explorer:null,snapshots:new dW,subcalls:new Map,footprints:null},P){let Ee={status:tu.parse,prev_status:x.run_state?.status};return Q&&(Ee={...Ee,prev_active_calltree_node:ae}),{...x,run_state:Ee}}return $3e(x,P)},$3e=(x,P,Q)=>{P&&(x={...x,parse_result:h3e(x.entrypoint,Q)});let ae=P?{status:x.run_state.prev_status,prev_active_calltree_node:x.run_state.prev_active_calltree_node}:x.run_state;return x={...x,run_state:ae},x.parse_result.ok?x.run_state?.status==tu.reload_app_window_finished?K3e(x):{...x,run_state:{status:tu.reload_app_window,on_reload_app_window_finished:K3e,reload_counter:x.run_state?.reload_counter,prev_active_calltree_node:x.run_state.prev_active_calltree_node}}:x},K3e=x=>{let P=kte(x),Q=x.run_state.prev_active_calltree_node;if(Q!=null&&Q.kind!=$e.SyntaxKind.SourceFile&&P.function_node.kind!=$e.SyntaxKind.SourceFile){let ae=Q.code.getSourceFile().text,Ee=x.run_state.prev_active_calltree_node.code,Oe=x.files[x.current_module],dt=P.function_node;ae.slice(0,Ee.index)==Oe.slice(0,dt.index)&&ae.slice(Ee.index+Ee.length)==Oe.slice(dt.index+dt.length)&&(P={...P,selected_call_id:Q.id})}return x={...x,run_state:{breakpoint:P,on_eval_modules_finished:eze}},TG(x)},TG=x=>{let P=t3e(jbe(x.parse_result.modules).map(Q=>Q.url));return P.length!=0?{...x,run_state:{...x.run_state,status:tu.load_external_imports,external_imports:P}}:Q3e(x,x)},Q3e=(x,P,Q)=>{if(x.run_state!=P.run_state)return x;if(Q!=null){let Mt=new Set(Object.entries(Q).filter(([zt,wt])=>!wt.ok).map(([zt,wt])=>zt));if(Mt.size!=0){let zt=jbe(x.parse_result.modules).filter(({url:wt})=>Mt.has(wt)).map(({node:wt,module_name:lr,url:$r})=>({index:wt.index,length:wt.length,message:Q[$r].error.message,module:lr}));return{...x,parse_result:{...x.parse_result,ok:!1,problems:zt,is_external_imports_problems:!0},run_state:{status:tu.eval_modules_finished}}}}let ae=new dW([...x.snapshots.entries()].map(([Mt,zt])=>[Mt,zt==null?zt:new Map(zt)])),Ee=x.run_state.on_eval_modules_finished!=eze;!Ee&&x.is_open_app_window&&(x={...x,io_trace:[]});let Oe=x.io_trace.length==0&&!Ee,dt=j3e(x.parse_result,Q,x.on_deferred_call,x.execution_id,x.io_trace,Oe,U3e(Ee?x.prev_storage:x.storage),ae,!x.collected_footprints_functions.has(x.run_state.breakpoint.function_node),x.run_state.breakpoint,x.allow_sync_execution);return dt.then==null&&x.allow_sync_execution?Z3e(x,x.execution_id,dt):{...x,run_state:{...x.run_state,status:tu.eval_modules,promise:dt}}},Z3e=(x,P,Q)=>{if(x.execution_id!=P)return x;if(x.calltree!=null){if(Q.rt_cxt.io_trace_is_replay_aborted)throw new Error("illegal state");if(Q.rt_cxt.call_counter!=x.rt_cxt.call_counter)throw new Error("illegal state: bad replay, call_counter do not match");x={...x,calltree:mze(x.calltree,Q.calltree)}}let ae=Q.rt_cxt.snapshots,Ee=Q.breakpoint,Oe=Ee.function_node.kind==$e.SyntaxKind.SourceFile?[Ee.selected_node]:[Ee.selected_node,Ee.function_node];for(let Mt of Oe){let zt=[Ee.module,Mt];Mt!=null&&ae.get_by_module_and_node(...zt)===void 0&&ae.set_by_module_and_node(...zt,null)}for(let Mt of[Q.rt_cxt.selected_call_id,Q.rt_cxt.first_call_id])if(Ee.selected_node!=null&&Mt!=null){let zt=ae.get_by_module_and_node(Ee.module,Ee.selected_node);zt!=null&&zt.get(Mt)===void 0&&zt.set(Mt,null)}if(Ee.parent_calltree_node!=null){let Mt=x.subcalls.get(Ee.parent_calltree_node.id);Mt==null&&(Mt=new Map,x.subcalls.set(Ee.parent_calltree_node.id,Mt)),Mt.set(Ee.function_node,Q.rt_cxt.selected_call_id??null)}let dt={...x,snapshots:ae,footprints:new Map([...x.footprints??[],...Q.rt_cxt.footprints]),rt_cxt:Q.rt_cxt,run_state:{status:tu.eval_modules_finished}};if(x.run_state.breakpoint.function_node==null)throw new Error("illegal state");return x.collected_footprints_functions.add(x.run_state.breakpoint.function_node),x.run_state.on_eval_modules_finished(dt,Q,x.run_state.breakpoint)},eze=(x,P,Q)=>{if(P.rt_cxt.io_trace_is_replay_aborted)return cze(x);if(x={...x,calltree:P.calltree,rt_cxt:P.rt_cxt,logs:{logs:q3e(P.logs,P.calltree),log_position:null},modules:P.modules,prev_storage:x.storage,storage:P.rt_cxt.storage},x=lze(x,P,Q),x.active_calltree_node==null){let{node:ae,state:Ee}=zte(x);x=uW(Ee,null,ae)}else x=_ze(LC(x,x.active_calltree_node));if(x.run_state.status==tu.reload_app_window)return x;if(x.run_state.status!=tu.eval_modules_finished)throw new Error("illegal state");return x},yvt=(x,P,Q)=>{let ae={...x.files,[x.current_module]:P};x={...x,files:ae},x=Fte(x,Q);let Ee={type:"write",args:[x.current_module,x.files[x.current_module]]};return{state:_L(x,!0,!0),effects:[Ee]}},oEe=(x,P)=>{if(!x.parse_result.ok)return{state:x,effects:{type:"set_status",args:["invalid syntax"]}};if(x.calltree==null)return{state:x,effects:{type:"set_status",args:["code is executing"]}};let Q=Bte(x,x.current_module,P);if(Q==null||Q.kind==$e.SyntaxKind.SourceFile&&Q!=mL(x)||lp(Q)&&x.snapshots.get_by_module_and_node(x.current_module,Q)===null)return{state:x,effects:{type:"set_status",args:["code was not reached during program execution"]}}},vvt=(x,P)=>{let Q=x.parse_result.modules[x.current_module],ae=XS(Q,P);if(ae==null)return null;let Ee=aW(ae,Q).find(Oe=>Oe.kind==$e.SyntaxKind.CallExpression||Oe.kind==$e.SyntaxKind.NewExpression||lp(Oe));return Ee==null||lp(Ee)?null:Ee},bvt=x=>{let P=hL(x),Q=oEe(x,P);if(Q!=null)return Q;let ae=vvt(x,P);if(ae==null)return{state:x,effects:{type:"set_status",args:["no function call to step into"]}};if(x.run_state.status!=tu.eval_modules_finished)return{state:x,effects:{type:"set_status",args:["code is not executed yet"]}};let Ee=sEe(x.active_calltree_node,ae);if(Ee==null){let Oe=cte(x),dt;return Oe.get(ae)==null?dt="call was not reached during program execution":dt="Cannot step into: function is either builtin or from external lib",{state:x,effects:{type:"set_status",args:[dt]}}}return AG(x,!0,Ee)},tze=x=>{if(x.kind==$e.SyntaxKind.SourceFile)return!1;if(x.parent==null)throw new Error("illegal state");let P=x.parent;return $e.isExpression(x)&&x.kind!=$e.SyntaxKind.SpreadAssignment&&x.kind!=$e.SyntaxKind.SpreadElement&&P?.kind!=$e.SyntaxKind.ShorthandPropertyAssignment&&P?.kind!=$e.SyntaxKind.ImportDeclaration&&P?.kind!=$e.SyntaxKind.ImportClause&&P?.kind!=$e.SyntaxKind.ImportSpecifier&&P?.kind!=$e.SyntaxKind.NamespaceImport&&(P==null||!bG(x,P))&&!(P!=null&&P.kind==$e.SyntaxKind.PropertyAccessExpression&&P.name==x)&&!(P!=null&&P.kind==$e.SyntaxKind.PropertyAssignment&&x==P.name)&&P?.kind!=$e.SyntaxKind.JsxAttribute&&!(P!=null&&(P.kind==$e.SyntaxKind.JsxOpeningElement||P.kind==$e.SyntaxKind.JsxClosingElement)&&x.kind==$e.SyntaxKind.Identifier&&$e.isIntrinsicJsxName(x.escapedText))&&!(P!=null&&oW(P)&&oW(x))},J3e=x=>x.find(P=>tze(P)),Evt=(x,P,Q,ae)=>{if(XS(P,ae)==null)return{ok:!1,message:"out of scope"};if(x!=null&&x.index==ae){let Oe;if(x.initial_is_expand==Q)x.node==P?Oe=x.node:(Oe=J3e(Ube(x.node,P)),(Oe==null||!$e.isExpression(Oe))&&(Oe=x.node));else{let Mt=XS(x.node,ae);Mt!=x.node?(Oe=aW(Mt,x.node).findLast(wt=>wt!=x.node&&tze(wt)),Oe==null&&(Oe=x.node)):Oe=x.node}return{ok:!0,initial_is_expand:x.initial_is_expand,node:Oe,function_node:x.function_node,index:ae}}else{let Oe=XS(P,ae),dt=J3e(aW(Oe,P));return dt==null||!$e.isExpression(dt)?{ok:!1,message:"can only evaluate expression, not statement"}:{ok:!0,index:ae,function_node:P,node:dt,initial_is_expand:Q}}},Svt=(x,P,Q)=>{let ae=oEe(x,P);if(ae!=null)return ae;let Ee=Bte(x,x.current_module,P);if(Ee==null)throw new Error("not implemented");let Oe=Evt(x.selection_state,Ee,Q,P),dt={...x,selection_state:Oe,value_explorer:null};if(!Oe.ok)return{state:dt,effects:{type:"set_status",args:[Oe.message]}};let Mt=Y3e(x,Lte(x.current_module,Ee,Oe.node));return nze(dt,Mt,!0)},SG=(x,P,Q,ae)=>{let Ee=x.snapshots.get_by_module_and_node(P,Q);if(Ee===null)return{has_snapshot:!0,node_snapshot:null};if(Ee===void 0)return{has_snapshot:!1};let Oe=Ee.get(ae);return{has_snapshot:Oe!==void 0,node_snapshot:Oe}},rEe=(x,P,Q,ae=void 0)=>{let Ee=x.snapshots.get_by_module_and_node(P,Q);if(Ee===null)return{has_snapshot:!0,node_snapshot:null};if(Ee===void 0)return{has_snapshot:!1};if(ae!=null){let Mt=Ee.get(ae);if(Mt!=null)return{has_snapshot:!0,node_snapshot:Mt};if(Mt===void 0)return{has_snapshot:!1}}let[Oe,dt]=[...Ee.entries()].sort((Mt,zt)=>Mt[0]-zt[0]).find(([Mt,zt])=>zt!=null);if(Oe==null)throw new Error("illegal state");return{has_snapshot:!0,node_snapshot:dt}},nze=(x,P)=>(x=sze(x,P),x.run_state.status==tu.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:Tvt}}:x.value_explorer!=null?x:{state:x,effects:{type:"set_status",args:["expression was not reached during program execution"]}}),Tvt=(x,P,Q)=>x.selection_state==null||x.value_explorer!=null?x:nze(x,Q,!1),Avt=(x,P)=>x.files[P]==null?{state:x,effects:{type:"set_status",args:["File not found"]}}:{...x,current_module:P,selection_state:null,value_explorer:null},Ivt=(x,P,Q=P)=>_L({...x,entrypoint:P,current_module:Q},!0),xvt=(x,P)=>_L({...x,html_file:P},!0),Rvt=(x,P)=>({state:rze(PC(x,P),P.index),effects:{type:"set_focus"}}),Dvt=(x,P)=>({state:PC(x,P),effects:{type:"set_focus"}}),rze=(x,P)=>(x=Fte(x,P),x={...x,selection_state:null,value_explorer:null},oEe(x,P)!=null?x:Ote(x,kte(x),ize,!0)),wte=(x,P,Q,ae)=>{let Ee=ae.call_id;if(Ee==null)throw new Error("illegal state");let Oe=f0(x.calltree,wt=>wt.id==Ee);if(tEe(Q,Oe,ae.ok)||[$e.SyntaxKind.BreakStatement,$e.SyntaxKind.ContinueStatement].includes(Q.kind))return null;let dt;if(ae.ok)dt=void 0;else{let wt=MC(Oe);if(wt==null)return null;dt=wt.error}let Mt;if(gx(Q))Mt=!1;else{let wt=Q.getSourceFile().getFullText();Mt=($e.getLeadingCommentRanges(wt,Q.pos)??[]).map(lr=>wt.slice(lr.pos,lr.end)).some(lr=>lr.toLowerCase().includes("@dom"))}let zt=Mt&&ae.value?.dom_node!=null;return{call_id:Ee,index:Q.index,length:Q.length,is_dom_el:zt,result:{ok:ae.ok,value:ae.value,error:dt}}},iEe=(x,P)=>f0(x,Q=>MC(Q)?.ok==!1&&Q.code==P&&(!Jp(Q.code)||Q.fn.__type=="loop_iteration")),ize=(x,P)=>{function Q(){return{...x,run_state:{status:tu.reload_app_window,reload_counter:(x.run_state.reload_counter??0)+1,on_reload_app_window_finished:TG,on_eval_modules_finished:Nvt,breakpoint:P}}}let ae;if(P.selected_call_id!=null)ae=P.selected_call_id;else{if(P.parent_calltree_node!=null){let Mt=iEe(P.parent_calltree_node,P.function_node),zt;if(Mt!=null?zt=Mt.id:zt=x.subcalls.get(P.parent_calltree_node.id)?.get(P.function_node),zt===void 0)return Q();zt!=null&&(ae=zt)}if(ae==null){let Mt=iEe(x.calltree,P.function_node);if(Mt!=null)ae=Mt.id;else{let zt;if(P.function_node==mL(x))ae=yy(x).id,zt=x.footprints.get(ae)==null;else{let{has_snapshot:wt,node_snapshot:lr}=rEe(x,P.module,P.function_node);if(zt=!wt,wt)if(lr!=null)ae=lr.call_id;else return Mte({...x,value_explorer:null},P.function_node,null)}if(zt&&P.parent_calltree_node!=null)throw new Error("illegal state: replay cannot be required here");if(zt)return Q()}}}if(ae==null)throw new Error("illegal state: selected_call_id is null");let Ee;if(P.function_node==mL(x))Ee=x.footprints.get(ae)==null;else{let{has_snapshot:Mt}=SG(x,P.module,P.function_node,ae);Ee=!Mt}if(Ee)return P={...P,selected_call_id:ae},Q();let Oe,dt=P.selected_node;if(dt!=null){let{has_snapshot:Mt,node_snapshot:zt}=SG(x,P.module,gx(P.selected_node)?P.function_node:P.selected_node,ae);if(Mt)zt==null?Oe={is_jump_here:!0,index:dt.index,length:dt.length}:Oe=wte(x,P.function_node,dt,zt);else return Q()}else Oe=null;return Mte({...x,value_explorer:Oe},P.function_node,ae)},oze=x=>{if(!x.value_explorer?.is_jump_here)return x;let P;return x.selection_state==null?P=X3e(x):P=Lte(x.current_module,x.selection_state.function_node,x.selection_state.node),Ote(x,P,Cvt,!0)},Cvt=(x,P)=>{if(P.selected_node==null)throw new Error("illegal state");let Q=x;return x=aze(x,P,!0),Q==x?{state:x,effects:{type:"set_status",args:["code was not reached during program execution"]}}:x.run_state.status==tu.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:oze}}:x},Ote=(x,P,Q)=>{if(P.function_node.kind==$e.SyntaxKind.SourceFile&&P.function_node!=mL(x)||(x=Q(x,P),x.effects!=null)||x.run_state.status==tu.reload_app_window||x.value_explorer==null||x.value_explorer.is_jump_here||!x.value_explorer.result.ok)return x;let ae=P.selected_node;if(ae.kind!=$e.SyntaxKind.CallExpression)return x;let Ee=sEe(x.active_calltree_node,P.selected_node);if(Ee==null||!Ee.is_log)return x;let{has_snapshot:Oe,node_snapshot:dt}=SG(x,P.module,eEe(ae),x.value_explorer.call_id);if(!Oe)throw console.error({state:x,breakpoint:P,calltree_node:Ee,has_snapshot:Oe,node_snapshot:dt}),new Error("illegal state: no node snapshot for log fn args");if(!dt.ok)throw console.error({state:x,breakpoint:P,calltree_node:Ee,has_snapshot:Oe,node_snapshot:dt}),new Error("illegal state: node snapshot with ok: false for log fn args");let Mt={...x.value_explorer,result:{ok:!0,value:dt.value}};return{...x,value_explorer:Mt}},aze=(x,P,Q)=>{if(Q||P.selected_call_id==null){let dt=iEe(x.calltree,P.function_node);dt!=null&&(P={...P,selected_call_id:dt.id})}let ae=P.selected_node,{has_snapshot:Ee,node_snapshot:Oe}=ae==null?{has_snapshot:!0,node_snapshot:null}:rEe(x,P.module,gx(P.selected_node)?P.function_node:P.selected_node,P.selected_call_id);if(Ee){let dt=!1,Mt,zt;if(Oe==null){if(Q)return x;if(Mt=null,P.function_node==mL(x))zt=yy(x).id,dt=x.footprints.get(zt)==null;else{let{has_snapshot:wt,node_snapshot:lr}=rEe(x,P.module,P.function_node,P.selected_call_id);dt=!wt,zt=lr?.call_id}}else zt=Oe.call_id,Mt=wte(x,P.function_node,ae,Oe);if(!dt)return Mte({...x,value_explorer:Mt},P.function_node,zt)}return{...x,run_state:{status:tu.reload_app_window,reload_counter:(x.run_state.reload_counter??0)+1,on_reload_app_window_finished:TG,breakpoint:P}}},sze=(x,P)=>(x=aze(x,P,!1),x.run_state.status==tu.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:lze}}:x),lze=(x,P,Q)=>{let ae=kte(x);return Q.selected_call_id!=null&&ae.function_node==Q.function_node&&(ae={...Q,selected_call_id:Q.selected_call_id}),Ote(x,ae,sze,!0)},Nvt=x=>x.selection_state!=null||x.value_explorer!=null?x:Ote(x,kte(x),ize,!0),Pvt=(x,P,Q,ae)=>x.execution_id!=Q||(x={...x,snapshots:new dW,footprints:new Map,collected_footprints_functions:new Set,calltree:dte(yy(x),[...rI(x)??[],P]),logs:{...x.logs,logs:x.logs.logs.concat(q3e(ae,P))}},P.ok)?x:zte(x,P).state,cze=x=>_L({...x,io_trace:[],run_state:{...x.run_state,reload_counter:(x.run_state.reload_counter??0)+1}},!1),dze=(x,P)=>{let Q=Ee=>Ee.kind=="file"?[Ee]:Ee.children.map(Q).flat(),ae=Object.fromEntries([...Q(P.scratch_files),...P.local_files==null?[]:Q(P.local_files)].map(Ee=>[Ee.path,Ee.contents]));return{...x,project_dir:P,files:ae}},uze=(x,P)=>(x=dze(x,P),x=pze(x),_L(x,!0)),Mvt=(x,P,Q)=>{let ae={...x.project_dir,scratch_files:P};return x={...x,current_module:Q,entrypoint:Q},uze(x,ae)},pze=x=>{let P=x.project_dir.scratch_files.children[0];return{...x,current_module:x.files[x.current_module]==null?P.path:x.current_module,entrypoint:x.files[x.entrypoint]==null?P.path:x.entrypoint,html_file:x.files[x.html_file]==null?null:x.html_file}},fze=(x,P)=>{let Q={...x.project_dir,local_files:P};return uze(x,Q)},Lvt=(x,P,Q)=>fze({...x,current_module:Q,entrypoint:Q},P),kvt=(x,P)=>({...x,storage:new EG,is_open_app_window:P}),wvt=(x,P=0)=>(x=dze(x,x.project_dir),x=pze(x),_L({...x,execution_id:0,storage:new EG,io_trace:[],is_open_app_window:!1,cursor_position_by_file:{[x.current_module]:P}},!0)),Wte={get_initial_state:wvt,parse_finished:$3e,input:yvt,open_app_window:kvt,load_local_dir:fze,create_local_file:Lvt,load_scratch_dir:Mvt,step_into:bvt,change_current_module:Avt,change_entrypoint:Ivt,change_html_file:xvt,goto_location:Rvt,goto_problem:Dvt,move_cursor:rze,jump_here:oze,eval_selection:Svt,reload_app_window_finished:gvt,external_imports_loaded:Q3e,eval_modules_finished:Z3e,on_deferred_call:Pvt,clear_io_trace:cze};var hL=x=>x.cursor_position_by_file[x.current_module]??0,Fte=(x,P)=>({...x,cursor_position_by_file:{...x.cursor_position_by_file,[x.current_module]:P}});var PC=(x,P)=>Fte({...x,current_module:P.module},P.index),Ovt=x=>x.error?.constructor==lW.constructor&&x.error?.message==lW.message,gL=x=>!x.ok||x.value?.[Symbol.toStringTag]=="Promise"&&x.value.status!=null&&!x.value.status.ok,MC=x=>x.value?.[Symbol.toStringTag]=="Promise"?x.value.status:x,vy=x=>x.toplevel?{module:x.module}:x.fn.__location&&JSON.parse(x.fn.__location),Wvt=x=>yy(x).module,mL=x=>x.parse_result.modules[Wvt(x)],Vte=x=>!x.toplevel&&!x.fn.is_hosted,Fvt=(x,P)=>x?.[P.module]?.[P.index??-1],zvt=(x,P,Q)=>({...x,[P.module]:{...x?.[P.module],[P.index??-1]:Q}}),aEe=(x,P)=>{let Q=[{node:x,child_index:0}];for(;;){if(Q.length==0)return null;let ae=Q.at(-1);if(ae.node.id==P)return Q.map(Ee=>Ee.node);if(ae.node.children==null||ae.child_index>=ae.node.children.length){Q.pop();continue}Q.push({node:ae.node.children[ae.child_index],child_index:0}),ae.child_index++}},uW=(x,P,Q=x.current_calltree_node)=>{let ae=x.deepest_calltree_node_id;return ae==null?ae=Q?.id:aEe(x.calltree,ae).includes(Q)||(ae=Q.id),{...x,active_calltree_node:P,current_calltree_node:Q,deepest_calltree_node_id:ae}},lEe=(x,P,Q=P)=>{let ae=vy(P);if(Fvt(x.colored_frames,ae)!=P.id){x={...x,colored_frames:zvt(x.colored_frames,ae,P.id)};let Oe=x.frames.get(P.id);if(Oe==null){let dt=x.footprints.get(P.id);if(dt==null)throw new Error("illegal state");if(P.code!=null&&Jp(P.code)&&P.fn?.__type!="loop_iteration")throw new Error("illegal state");Oe=nEe(P.code,P,dt);let Mt=y3e(P.code,Oe);x.frames.set(P.id,Oe),x.frame_coloring.set(P.id,Mt)}}return uW(x,P,Q)},mze=(x,P)=>Gte(x,P)[1],Gte=(x,P)=>{if(x.id!=P.id)throw new Error("illegal state: merge_calltree");if(x.callsite_location==null&&P.callsite_location!=null)return[!0,Gte({...x,callsite_location:P.callsite_location},P)[1]];if(x.snapshot==null&&P.snapshot!=null)return[!0,Gte({...x,snapshot:P.snapshot},P)[1]];if(x.has_more_children){if(P.has_more_children)return[!1,x];if(x.id!=P.id)throw new Error("illegal state");return[!0,P]}if(x.children==null)return[!1,x];if(P.has_more_children)return[!1,x];if(x.children.length!=(P.children?.length??0))throw new Error("illegal state");let[Q,ae]=e3e((Ee,Oe,dt)=>{let[Mt,zt]=Gte(Oe,P.children[dt]);return[Ee||Mt,zt]},!1,x.children);return Q?[!0,{...x,children:ae}]:[!1,x]},sEe=(x,P)=>(x.children??[]).find(Q=>{if(Q.callsite_location==null)return!1;let ae=JSON.parse(Q.callsite_location);return ae.index==P.index&&ae.length==P.length}),gze=(x,P)=>{let Q=x.callsite_location;if(Q==null)return null;Q=JSON.parse(Q);let ae=Ate(P.code,Ee=>Ee.index==Q.index&&Ee.length==Q.length&&(Ee.kind==$e.SyntaxKind.CallExpression||Ee.kind==$e.SyntaxKind.NewExpression||Jp(Ee)));if(ae==null)throw new Error("illegal state");return ae},hze=(x,P,Q)=>{let{has_snapshot:ae,node_snapshot:Ee}=SG(x,vy(x.current_calltree_node).module,P,Q);if(ae){let Oe;return Ee==null?Oe=null:Oe=wte(x,x.current_calltree_node.code,P,Ee),{should_replay:!1,value_explorer:Oe}}else return{should_replay:!0}},$S=(x,P,Q=Oe=>Oe,ae=!1,Ee=!1)=>{function Oe(Rr){if(Ee)throw new Error("illegal state");let oa=wt.code;return{...x,value_explorer:null,run_state:{status:tu.reload_app_window,on_reload_app_window_finished:TG,on_eval_modules_finished:dt,breakpoint:{module:vy(wt).module,function_node:oa,selected_call_id:wt.id,current_calltree_node_id:P.id,selected_node:Rr}}}}function dt(Rr,oa,Zo){if(Zo.current_calltree_node_id!=Rr.current_calltree_node.id)return Rr;let fs=f0(Rr.calltree,gs=>gs.id==P.id);return $S(Rr,fs,Q,ae,!0)}let[Mt]=IG(x.calltree,P);if(!P.toplevel&&!P.fn.is_hosted&&!Mt.toplevel&&!Mt.fn.is_hosted)return Q({...uW(x,null,P),value_explorer:null,selection_state:null});let zt;P.toplevel||P.fn.__type=="loop_iteration"?zt=!0:P.code!=null&&Jp(P.code)?zt=!1:Mt.id=="deferred_calls"?zt=!0:Vte(P)?zt=!1:Vte(Mt)?zt=!0:zt=x.calltree_node_is_expanded[P.id];let wt=zt?P:Mt;x=uW(x,wt,P);let lr,$r,ni;if(P.toplevel){if(x.footprints.get(yy(x).id)==null)return Oe();$r=null,ni=null,lr=vy(wt)}else if(P.fn.__type=="loop_iteration"){let Rr=vy(P).module,oa=hL(x),Zo=!1;if(x.current_module==Rr&&fL(P.code,oa)&&oa!=P.code.index)lr={module:Rr,index:oa};else{let md=P.code,Gd=md.kind;if(Gd==$e.SyntaxKind.WhileStatement||Gd==$e.SyntaxKind.DoStatement||Gd==$e.SyntaxKind.ForStatement){let by=md.statement.kind==$e.SyntaxKind.Block?md.statement.statements.length==0?Gd==$e.SyntaxKind.ForStatement?md.initializer:md.expression:md.statement.statements[0]:md.statement;lr={module:Rr,index:by.index}}else lr={module:Rr,index:md.initializer.index},Zo=!0}let fs=x.selection_state?.node,gs=fs!=null&&!(fs==P.code.expression&&(P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForInStatement))&&fs!=P.code.initializer&&fL(P.code,fs.index),Za;if((P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForInStatement)&&(fs==P.code.initializer||Zo)?(ni={node:P.code.initializer},Za=P.code):gs?(ni=x.selection_state,Za=x.selection_state.node):(Za=Pte(P.code,lr.index),ni=null),Za==null)$r=null,ni=null;else{let md;if({value_explorer:$r,should_replay:md}=hze(x,Za,P.id),md)return Oe(Za)}}else if(P.code!=null&&Jp(P.code)){let Rr=P.code.kind;if(Rr==$e.SyntaxKind.WhileStatement||Rr==$e.SyntaxKind.DoStatement)$r=null,ni=null;else{let oa;Rr==$e.SyntaxKind.ForStatement?oa=P.code.initializer:oa=P.code.expression,ni={node:oa};let Zo;if({value_explorer:$r,should_replay:Zo}=hze(x,oa,Hbe(x.calltree,P).id),Zo)return Oe(oa)}if(lr={module:vy(P).module,index:P.code.index},P.has_more_children)return Oe()}else{if(P.snapshot==null)return Oe();let Rr;if(zt){lr=vy(P),ni=null;let Zo=x.snapshots.get_by_module_and_node(vy(wt).module,wt.code)?.get(wt.id);if(Zo==null)return Oe();Zo.ok?Rr=Zo.value:Rr=P.snapshot.args}else{let Zo=gze(P,wt);if(Zo==null)return Oe();lr={module:vy(wt).module,index:Zo.index},Rr=P.snapshot.args,ni={node:Zo}}if(Rr==null)throw new Error("illegal state");let oa=P.ok?{args:Rr,return_value:P.snapshot.value}:{args:Rr,throws:P.snapshot.error};P.context!=null&&(oa={...oa,context_before:P.snapshot.context_before,context_after:P.snapshot.context_after}),$r={call_id:P.id,index:lr.index,result:{ok:!0,is_calltree_node_explorer:!0,value:oa}}}return x=ae?x:P.toplevel?{...x,current_module:lr.module}:PC(x,lr),x.footprints.get(wt.id)==null?Oe():Q({...lEe(x,wt,P),value_explorer:$r,selection_state:ni})},Bvt=x=>$S(x,x.current_calltree_node,void 0,!0),IG=(x,P)=>{let Q=Ee=>Ee.id==P.id?[]:Ee.children==null?null:Ee.children.reduce((Oe,dt)=>{if(Oe!=null)return Oe;let Mt=Q(dt);return Mt==null?null:[...Mt,Ee]},null),ae=Q(x);if(ae==null)throw new Error("illegal state");return ae},yL=x=>Vte(x)||Jp(x.code)?x.children!=null&&x.children.length!=0||x.has_more_children:x.toplevel?x.children!=null&&x.children.length!=0:!0,Gvt=x=>{let P=x.current_calltree_node,Q;if(yL(P)&&x.calltree_node_is_expanded[P.id]&&P.children!=null)Q=P.children[0];else{let ae=(Ee,Oe)=>{if(Ee.id=="calltree")return null;let[dt,...Mt]=Oe,zt=dt.children.findIndex(lr=>lr==Ee),wt=dt.children[zt+1];return wt??ae(dt,Mt)};Q=ae(P,IG(x.calltree,P))}return Q?.id=="deferred_calls"&&(Q.children==null?Q=null:Q=Q.children[0]),Q==null?x:$S(x,Q)},Vvt=x=>{let P=x.current_calltree_node;if(P.toplevel)return x;let[Q]=IG(x.calltree,P),ae=Q.children.findIndex(Mt=>Mt==P),Ee=Q.children[ae-1],Oe=Mt=>!yL(Mt)||!x.calltree_node_is_expanded[Mt.id]||Mt.children==null?Mt:Oe(Mt.children[Mt.children.length-1]),dt;return Ee==null?dt=Q.id=="deferred_calls"?Oe(yy(x)):Q:dt=Oe(Ee),$S(x,dt)},jvt=x=>{let P=x.current_calltree_node,Q=x.calltree_node_is_expanded[P.id];if(!yL(P)||!Q){let[ae]=IG(x.calltree,P);return ae.id=="calltree"||ae.id=="deferred_calls"?x:$S(x,ae)}else return AG(x)},Uvt=x=>{let P=x.current_calltree_node;return yL(P)?x.calltree_node_is_expanded[P.id]?P.children!=null?$S(x,P.children[0]):x:AG(x):x},AG=(x,P,Q=x.current_calltree_node)=>{let ae=Q.id,Ee=x.calltree_node_is_expanded[ae],Oe=P??!Ee,dt={...x,calltree_node_is_expanded:{...x.calltree_node_is_expanded,[ae]:Oe}};return $S(dt,Q)},Hvt=(x,P)=>{let Q=f0(x.calltree,ae=>ae.id==P);return $S(x,Q)},Kvt=(x,P)=>{let Q=f0(x.calltree,ae=>ae.id==P);return yL(Q)?AG(x,void 0,Q):$S(x,Q)},LC=(x,P)=>x.calltree_node_is_expanded?.[P.id]?x:{...x,calltree_node_is_expanded:{...x.calltree_node_is_expanded,...Object.fromEntries(IG(x.calltree,P).map(Q=>[Q.id,!0])),[P.id]:!0}},zte=(x,P)=>{if(P??=yy(x),P.ok||Ovt(P))return{state:LC(x,P),node:P};{let Q=f0(P,ae=>!MC(ae).ok&&(ae.children==null||ae.children.find(Ee=>!MC(Ee).ok)==null));return{state:LC(x,Q),node:Q}}},_ze=x=>zte(x).state,Bte=(x,P,Q)=>{let ae=x.parse_result.modules[P];if(ae==null)return null;if(fL(ae,Q)){let Ee=XS(ae,Q),Oe=$e.forEachAncestor(Ee,dt=>{let Mt=Ste(dt);if(Mt!=null)return Mt;if(lp(dt)||Jp(dt))return dt});return Oe??ae}else return ae},Mte=(x,P,Q)=>{if(P==mL(x)){let Ee=yy(x);return lEe(LC(x,Ee),Ee)}if(P.kind==$e.SyntaxKind.SourceFile)return x;if(Q==null)return uW(x,null);let ae=f0(x.calltree,Ee=>Ee.id==Q);if(ae==null)throw new Error("illegal state");return lEe(LC(x,ae),ae)},Jvt=x=>{if(x.current_calltree_node.toplevel)return{state:x};if(x.current_calltree_node.code!=null&&Jp(x.current_calltree_node.code))return{state:x};let P=vy(x.active_calltree_node),Q;if(x.current_calltree_node==x.active_calltree_node){let ae=x.frames.get(x.active_calltree_node.id),Ee=x.active_calltree_node.code;if(x.active_calltree_node.ok)if(Ee.body.kind==$e.SyntaxKind.Block){let Oe=Ate(Ee,dt=>dt.kind==$e.SyntaxKind.ReturnStatement&&ae.get(dt)?.ok);if(Oe==null)return{state:PC(x,{module:P.module,index:Ee.body.index}),effects:{type:"set_focus"}};Q=Oe.expression}else Q=Ee.body;else Q=Kbe(Ee,ae)}else{let ae=x.current_calltree_node.callsite_location;ae=JSON.parse(ae),Q=Ate(x.active_calltree_node.code,Ee=>Ee.index==ae.index&&Ee.length==ae.length)}return{state:{...PC(x,{module:P.module,index:Q.index}),selection_state:{node:Q},value_explorer:{call_id:x.current_calltree_node.id,index:Q.index,length:Q.length,result:x.current_calltree_node.snapshot}},effects:{type:"set_focus"}}},qvt=(x,P=!0)=>{if(x.current_calltree_node.toplevel)return{state:x};if(x.current_calltree_node.code!=null&&Jp(x.current_calltree_node.code))return{state:x};let Q=vy(x.active_calltree_node),ae,Ee;if(x.current_calltree_node==x.active_calltree_node){if(x.active_calltree_node.toplevel)return{state:x};let Oe=x.active_calltree_node.code;ae=Kb(Oe)[0];let dt=x.snapshots.get_by_module_and_node(vy(x.active_calltree_node).module,Oe)?.get(x.active_calltree_node.id);if(dt==null)return{state:x};Ee=dt.ok?dt:{ok:!1,error:x.active_calltree_node.error}}else{let Oe=gze(x.current_calltree_node,x.active_calltree_node);if(Oe==null)return{state:x};Ee={ok:!0,value:x.current_calltree_node.snapshot.args},ae=[...Oe.arguments];let dt=Oe.getChildren();ae.index=dt.find(Mt=>Mt.kind==$e.SyntaxKind.OpenParenToken).pos,ae.length=dt.find(Mt=>Mt.kind==$e.SyntaxKind.CloseParenToken).pos-ae.index+1}return{state:{...PC(x,{module:Q.module,index:ae.index}),selection_state:{node:ae},value_explorer:{call_id:x.current_calltree_node.id,index:ae.index,length:ae.length,result:Ee}},effects:P?{type:"set_focus"}:null}},Xvt=x=>{let P=[x.current_calltree_node,x.active_calltree_node,yy(x)].find(ae=>gL(ae));if(P==null)return{state:x,effects:[{type:"set_status",args:["no error found"]}]};let Q=f0(P,ae=>gL(ae)&&(ae.children==null||ae.children.every(Ee=>!gL(Ee)||Vte(Ee)&&Ee.children==null)));if(Q==null)throw new Error("illegal state: error origin not found");return $S(LC(x,Q),Q,ae=>{let Ee=cte(ae),Oe=Kbe(ae.active_calltree_node.code,Ee);return{state:PC(ae,{module:vy(Q).module,index:Oe.index}),effects:{type:"set_focus"}}})},Yvt=(x,P)=>{if(x.logs.logs.length==0)return{state:x};let Q=Math.max(Math.min(x.logs.log_position==null?0:x.logs.log_position+P,x.logs.logs.length-1),0);return yze(x,Q)},yze=(x,P)=>{x={...x,logs:{...x.logs,log_position:P}};let Q=f0(x.calltree,ae=>ae.id==x.logs.logs[P].id);return $S(LC(x,Q),Q,ae=>ae.active_calltree_node==null?ae:{...ae,value_explorer:{...ae.value_explorer,result:{...ae.value_explorer.result,is_calltree_node_explorer:!1,value:ae.value_explorer.result.value.args}}})};Wte.calltree={arrow_down:Gvt,arrow_up:Vvt,arrow_left:jvt,arrow_right:Uvt,select_node:Hvt,select_and_toggle_expanded:Kvt,select_return_value:Jvt,select_arguments:qvt,select_error:Xvt,navigate_logs_position:yze,navigate_logs_increment:Yvt,show_value_explorer:Bvt};var jte=class{constructor(P,Q){this.ui=P,this.container=Q,this.container.addEventListener("keydown",ae=>{ae.key=="r"&&(ae.ctrlKey||ae.metaKey)||ae.preventDefault(),ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="F1"&&this.ui.editor.focus_value_explorer(this.container),ae.key=="F2"&&this.ui.editor.focus(),ae.key=="a"&&Ws("calltree.select_arguments"),ae.key=="e"&&Ws("calltree.select_error"),(ae.key=="r"||ae.key=="Enter")&&Ws("calltree.select_return_value"),(ae.key=="ArrowDown"||ae.key=="j")&&Ws("calltree.arrow_down"),(ae.key=="ArrowUp"||ae.key=="k")&&Ws("calltree.arrow_up"),(ae.key=="ArrowLeft"||ae.key=="h")&&Ws("calltree.arrow_left"),(ae.key=="ArrowRight"||ae.key=="l")&&Ws("calltree.arrow_right")})}on_click_node(P,Q){P.target.classList.contains("expand_icon")?Ws("calltree.select_and_toggle_expanded",Q):Ws("calltree.select_node",Q)}clear_calltree(){this.container.innerHTML="",this.node_to_el=new Map,this.state=null}render_loop(P){let{ok:Q,error:ae}=MC(P),Ee;P.code.kind==$e.SyntaxKind.WhileStatement&&(Ee="while"),P.code.kind==$e.SyntaxKind.DoStatement&&(Ee="do while"),(P.code.kind==$e.SyntaxKind.ForInStatement||P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForStatement)&&(Ee="for");let Oe=P.has_more_children?P.children_count:P.children?.length??0;return Mr("span","call_header "+(Q?"":"error"),Ee+" loop("+Oe+")",Q?null:[": ",Ag(ae)])}render_loop_iteration(P,Q){let{ok:ae,error:Ee}=MC(P),Oe=Q.children.indexOf(P),dt=null;(P.code.kind==$e.SyntaxKind.ForOfStatement||P.code.kind==$e.SyntaxKind.ForInStatement)&&(dt=P.code.initializer.getText()+" = "+Ag(P.args[0]));let Mt=Tte(P.code);return Mt!=null&&(dt=Mt.getText()+" = "+Ag(P.args[0])),Mr("span","call_header "+(ae?"":"error"),Mr("span","loop_step","step "+Oe,(dt!=null||!ae)&&":"),dt,ae?"":Mr("span","call_header error",dt!=null&&":\xA0",Ag(Ee)))}render_node(P,Q){let ae=this.state.calltree_node_is_expanded[P.id],Ee=Mr("div","callnode",Mr("div",{class:"call_el",click:Oe=>this.on_click_node(Oe,P.id)},yL(P)?ae&&P.has_more_children?Mr("div","spinner"):Mr("span","expand_icon",ae?"\u25BC":"\u25B6"):Mr("span","expand_icon_placeholder","\xA0"),P.toplevel?Mr("span",P.ok?"":"call_header error",Mr("i","","toplevel: "+gv(P.module)),P.ok?"":Mr("span","",":\xA0",Ag(P.error))):P.fn.__type=="loop_iteration"?this.render_loop_iteration(P,Q):P.code!=null&&Jp(P.code)?this.render_loop(P):Mr("span","call_header "+(gL(P)?"error":"")+(P.fn.is_hosted?"":" native"),P.is_new?"new ":"",P.context==null||P.is_new?"":Mr("span","",typeof P.context=="object"?P.context.constructor?.name||"":Ag(P.context),"."),P.fn.name==""?"anonymous":P.fn.name,"(",...dL(P.args.map(Oe=>Ag(Oe))),")",": ",P.ok?Ag(P.value):Ag(P.error))),P.children==null||!ae?null:P.children.map(Oe=>this.render_node(Oe,P)));return this.node_to_el.set(P.id,Ee),Ee.is_expanded=ae,Ee}render_active(P,Q){let ae=this.node_to_el.get(P.id).getElementsByClassName("call_el")[0];Q?ae.classList.add("active"):ae.classList.remove("active")}reveal_current_calltree_node(){tW(this.container,this.node_to_el.get(this.state.current_calltree_node.id).getElementsByClassName("call_el")[0])}render_select_node(P,Q){if(P!=null&&this.render_active(P.current_calltree_node,!1),this.state=Q,this.render_active(this.state.current_calltree_node,!0),P?.current_calltree_node!=Q.current_calltree_node){let ae=this.container.scrollLeft;this.reveal_current_calltree_node(),this.container.scrollLeft=ae}}render_expand_node(P,Q){this.state=Q,this.do_render_expand_node(P.calltree_node_is_expanded,Q.calltree_node_is_expanded,yy(P),yy(Q));let ae=rI(P),Ee=rI(Q);if(ae!=null){for(let Oe=0;Oethis.render_node(Q))))))}};var Ute=class{constructor(P,Q){this.el=Q,this.ui=P,this.el.addEventListener("keydown",ae=>{ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="Enter"&&this.ui.editor.focus(),ae.key=="F1"&&this.ui.editor.focus_value_explorer(this.el),ae.key=="F3"&&this.ui.editor.focus(),(ae.key=="ArrowDown"||ae.key=="j")&&(ae.preventDefault(),Ws("calltree.navigate_logs_increment",1)),(ae.key=="ArrowUp"||ae.key=="k")&&(ae.preventDefault(),Ws("calltree.navigate_logs_increment",-1))})}rerender_logs(P,Q){this.el.innerHTML="",this.render_logs(P,null,Q)}render_logs(P,Q,ae){for(let Ee=Q==null?0:Q.logs.length;EeWs("calltree.navigate_logs_position",Ee)},Mr("a",{href:"javascript: void(0)"},dt+": "+(Oe.toplevel?"toplevel":"fn "+(Oe.parent_name==""?"anonymous":Oe.parent_name))+":")," ",...dL(Oe.args.map(zt=>Ag(zt)))))}if(Q?.log_position!=ae.log_position&&(Q?.logs==ae.logs&&Q?.log_position!=null&&this.el.children[Q.log_position].classList.remove("active"),ae.log_position!=null)){let Ee=this.el.children[ae.log_position];Ee.classList.add("active"),tW(this.el,Ee)}}};var Hte=class{constructor(P,Q){this.el=Q,this.ui=P,this.el.addEventListener("keydown",ae=>{ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="F4"&&this.ui.editor.focus()})}clear(){this.is_rendered&&(this.el.innerHTML="",this.is_rendered=!1,this.io_trace_length=0,this.io_trace_index=void 0)}render_io_trace(P,Q){if(Q&&(this.is_rendered=!1),this.is_rendered)return;this.is_rendered=!0,this.el.innerHTML="",this.io_trace_length=P.io_trace.length,this.io_trace_index=P.rt_cxt.io_trace_index;let ae=P.io_trace,Ee=P.rt_cxt.io_trace_index??ae.length;for(let Oe=0;Oe ")));else if(dt.type=="call")this.el.appendChild(Mr("div","call_header "+(gL(dt)?"error ":"")+(Mt?"":"native "),dt.name,"(",...dL(dt.args.map(zt=>Ag(zt))),"): ",dt.ok?Ag(dt.value):Ag(dt.error)));else throw new Error("unknown item type")}}};var $vt="leporello-js",vze=`https://firebasestorage.googleapis.com/v0/b/${$vt}.appspot.com/o/`;async function Qvt(x){let P=new TextEncoder().encode(x),Q=await crypto.subtle.digest("SHA-256",P);return Array.from(new Uint8Array(Q)).map(Oe=>Oe.toString(16).padStart(2,"0")).join("")}async function bze(x,P){let Q=(await Qvt(P)).slice(0,40),ae=new Blob([P],{type:"text/plain"}),Ee=new FormData;Ee.append("file",ae);let Oe=await fetch(vze+Q,{method:"POST",body:Ee});if(!Oe.ok){let zt=(await Oe.json())?.error?.message;throw new Error("Failed to upload: "+zt)}let dt=new URL(window.location);return dt.searchParams.set("share_id",Q),dt.searchParams.set("share_name",x),dt.toString()}async function Zvt(x){let P=await fetch(vze+x+"?alt=media");if(!P.ok){let ae=(await P.json())?.error?.message;throw new Error("Failed to fetch: "+ae)}return P.text()}async function Eze(){let x=new URLSearchParams(window.location.search),P=x.get("share_id");if(P==null)return null;let Q=x.get("share_name")??"";Q.trim()==""&&(Q="Share");let ae=new URL(window.location);ae.searchParams.delete("share_id"),ae.searchParams.delete("share_name"),history.replaceState(null,null,ae.href);try{let Ee=await Zvt(P);return{name:Q,contents:Ee}}catch(Ee){return alert(Ee.message),null}}var Kte=class{constructor(){let Q=yv().current_module.split("/").at(-1);this.el=Mr("dialog","share_dialog",this.upload_begin=Mr("p","",Mr("p","","Uploads your file to the cloud so you can share it with others."),Mr("ul","",Mr("li","","Please ensure that no personal data or confidential information is included."),Mr("li","","Avoid including copyrighted materials.")),Mr("span",{style:"color: red"},"Caution: Once shared, files cannot be deleted."),Mr("div","share_name",Mr("label","","Public file name"),this.share_name=Mr("input",{type:"text",value:Q})),this.upload_buttons=Mr("p",{style:"text-align: center"},Mr("button",{class:"upload_button",click:()=>this.upload()},"Upload"),this.cancel_button=Mr("button",{style:"margin-left: 1em",click:()=>this.el.close()},"Cancel"))),this.uploading=Mr("span",{style:"display: none"},"Uploading..."),this.upload_finish=Mr("p",{style:"display: none"},Mr("p","",Mr("p",{style:` + `),Oe}),cW(function ae(Ee){return Ee.kind==Ye.SyntaxKind.DebuggerStatement?null:Ye.visitEachChild(Ee,ae)})]).transformed[0]},L3e=(x,P,Q,ae,Ee,Oe,dt,Mt,Ft,zt,Yn)=>{let Jr=globalThis.app_window.Function,ti=globalThis.app_window.eval("(async function(){})").constructor,ci=x.sorted.map(hs=>{let El=x.modules[hs],Nl={module:hs,toplevel:El,breakpoint:zt,current_function:El,should_collect_footprints:Ft};El=uvt(El,Nl);let Vh=Gm`"use strict";let __obj, __fn, __tmp;`;El=Ye.factory.updateSourceFile(El,[...Vh,...Ste(El,Nl),...El.statements]);let eT=Ye.transformNodes(x.program.getTypeChecker().getEmitResolver(),void 0,Ye.factory,MC,[El],[Ye.transformJsx],!1).transformed;if(eT.length!=1)throw new Error("illegal state");El=eT[0];let Fl=cvt.printFile(El),wi=vG(El)?ti:Jr,nu;try{nu=new wi("__cxt","__rt",Fl)}catch(vv){throw new Error(vv.message,{cause:vv})}return{module:hs,fn:nu}}),Vo={logs:[],deferred_calls:[],modules:P==null?{}:n3e(P,(hs,{module:El})=>El),call_counter:0,version_counter:0,children:null,stack:new Array,is_recording_deferred_calls:!1,on_deferred_call:(hs,El,Nl)=>Q(x3e(x.modules,hs),El,Nl),execution_id:ae,is_toplevel_call:!0,window:globalThis.app_window,storage:dt,canvas_ops:{ops:[],contexts:new Set},snapshots:Mt,footprints:new Map,breakpoint:zt,selected_call_id:zt.selected_call_id,io_trace:Ee,io_trace_is_recording:Oe},Sa=new Promise(hs=>setTimeout(hs,0)),ca=I3e(ci,Vo);ca?.[Symbol.toStringTag]=="Promise"&&(ca=new Promise((hs,El)=>{Promise.prototype.then.call(ca,hs,El)})),Yn||(ca=Promise.resolve(ca));let ns=hs=>{let El=x3e(x.modules,dte(hs.calltree,Vo.deferred_calls.length==0?null:Vo.deferred_calls));return{...hs,breakpoint:zt,calltree:El}};return ca?.[Symbol.toStringTag]=="Promise"?Promise.all([ca,Sa]).then(([hs])=>ns(hs)):ns(ca)},pvt=(x,P)=>{let Q=Ye.forEachChildRecursively(x,ae=>{if(ae.index==P.index&&ae.length==P.length&&(lp(ae)||gf(ae)))return ae});if(Q==null)throw new Error("illegal state");return Q},x3e=(x,P)=>{let Q=new Map;function ae(Ee){if(Ee.toplevel)return{...Ee,code:x[Ee.module],children:Ee.children&&Ee.children.map(ae)};{let Oe;if(Ee.fn==null||Ee.fn.__location==null)Oe=null;else if(Oe=Q.get(Ee.fn.__location),Oe==null){let dt=JSON.parse(Ee.fn.__location);Oe=pvt(x[dt.module],dt),Q.set(Ee.fn.__location,Oe)}return{...Ee,code:Oe,children:Ee.children&&Ee.children.map(ae)}}}return ae(P)},Qbe=(x,P,Q)=>x.kind==Ye.SyntaxKind.AwaitExpression&&!Q&&!P.toplevel&&P.value.status==null,Xbe=class extends Map{get(P){return P=vx(P)?P.original:P,super.get(P)}},Zbe=(x,P,Q,ae,Ee)=>{Ee??=new Xbe;let Oe=fvt(x,P,Q,ae,Ee);return Ee.set(x,Oe.result),Ee},fvt=(x,P,Q,ae,Ee)=>{let Oe=ti=>Zbe(ti,P,Q,x,Ee),dt=ti=>Q.get(ti.index+"_"+ti.length),Mt=dt(x);if(x.kind==Ye.SyntaxKind.VariableDeclarationList&&x.parent.kind==Ye.SyntaxKind.VariableStatement&&(Mt=dt(x.parent)),ae?.kind==Ye.SyntaxKind.PropertyAccessExpression&&ae.name==x&&(Ee.get(ae.expression)?.ok?Mt=!0:Mt=void 0),(ae?.kind==Ye.SyntaxKind.PropertyAssignment||ae?.kind==Ye.SyntaxKind.ShorthandPropertyAssignment)&&ae.name==x&&dt(ae.parent)!=null&&(Mt=!0),Qbe(x,P,Mt)&&(Mt=void 0),lp(x)){if(ae!=null)return{result:Mt==null?void 0:{ok:Mt}};{let[ti,ci]=YS(x);return dt(ti)?(Ee.set(ti.original,{ok:!0}),Oe(ci)):Ee.set(ti.original,{ok:!1,is_error_origin:!0}),{result:{ok:Ee.get(ci)?.ok}}}}if(gf(x)&&ae!=null)return(x.kind==Ye.SyntaxKind.ForOfStatement||x.kind==Ye.SyntaxKind.ForInStatement)&&Oe(x.expression),x.kind==Ye.SyntaxKind.ForStatement&&Oe(x.initializer),Mt==null?{result:void 0}:{result:{ok:Mt,is_error_origin:!Mt}};if(P3e(x)&&!(x.kind==Ye.SyntaxKind.Block||x.kind==Ye.SyntaxKind.SourceFile)&&ae!=null&&Mt==null)return{result:void 0};if(ae!=null&&aW(x,ae))if(x.kind==Ye.SyntaxKind.PropertyAccessExpression||x.kind==Ye.SyntaxKind.ElementAccessExpression){let ti=YS(x);return ti.map(Vo=>Oe(Vo)),{result:{ok:ti.every(Vo=>Ee.get(Vo)?.ok)}}}else Mt=!0;if(x.kind==Ye.SyntaxKind.VariableDeclaration){let[ti,ci]=[x.name,x.initializer];return ci!=null&&Oe(ci),(ci==null||Ee.get(ci)?.ok)&&Oe(ti),{result:{ok:Mt,is_error_origin:Mt?void 0:Ee.get(ci)?.ok}}}let Ft=YS(x);Ft&&Ft.map(ti=>Oe(ti));let zt=Ft==null||Ft.every(ti=>Ee.get(ti)?.ok),Yn=!Mt&&zt;if((x.kind==Ye.SyntaxKind.Block||x.kind==Ye.SyntaxKind.SourceFile)&&(Ft.length!=0&&(Mt=Ft.reduce((ti,ci)=>ti&&Ee.get(ci)?.ok,!0)),Yn=!1),x.kind==Ye.SyntaxKind.PartiallyEmittedExpression||x.kind==Ye.SyntaxKind.ExpressionStatement||x.kind==Ye.SyntaxKind.ParenthesizedExpression||x.kind==Ye.SyntaxKind.JsxExpression){if(Ft.length!=1)throw new Error("illegal state");let ti=Ee.get(x.expression);return{result:ti==null?null:{...ti,is_error_origin:!1}}}if(x.kind==Ye.SyntaxKind.IfStatement&&(Mt=dt(x.expression),Ft.some(ti=>Ee.get(ti)?.ok===!1)&&(Mt=!1)),gf(x)&&ae==null){if(x.kind==Ye.SyntaxKind.ForOfStatement||x.kind==Ye.SyntaxKind.ForInStatement){let ti=x.statement;Oe(ti);let ci=Ee.get(ti)!=null;Ee.set(x.initializer,{ok:ci,is_error_origin:!ci})}return{result:void 0}}return[Ye.SyntaxKind.ReturnStatement,Ye.SyntaxKind.BreakStatement,Ye.SyntaxKind.ContinueStatement].includes(x.kind)&&(Mt!=null&&(Mt=zt),Yn=!1),x.kind==Ye.SyntaxKind.PropertyAssignment||x.kind==Ye.SyntaxKind.ShorthandPropertyAssignment||x.kind==Ye.SyntaxKind.SpreadElement||x.kind==Ye.SyntaxKind.SpreadAssignment||x.kind==Ye.SyntaxKind.JsxSpreadAttribute?{result:{ok:zt}}:{result:Mt===void 0?void 0:{ok:Mt,is_error_origin:Mt?void 0:Yn}}};var mvt=x=>{let P=[];function Q(ae){if(lp(ae)){P.push(ae);return}for(let Ee of YS(ae))Q(Ee,ae)}return Q(x),P},k3e=(x,P)=>{let Q=(zt,Yn)=>{let Jr=zt.kind==null?zt.result:P.get(zt),ti=Yn.kind==null?Yn.result:P.get(Yn);return Jr==null?ti==null:ti!=null&&Jr.ok==ti.ok&&!!Jr.is_error_origin==!!ti.is_error_origin},ae=zt=>{let Yn=P.get(zt);return{index:zt.index,length:zt.length,result:Yn==null||lp(zt)?null:Yn.ok?{ok:!0}:{ok:!1,is_error_origin:!!Yn.is_error_origin}}},Ee=zt=>Ye.isBinaryExpression(zt)&&(zt.operatorToken.kind==Ye.SyntaxKind.AmpersandAmpersandToken||zt.operatorToken.kind==Ye.SyntaxKind.BarBarToken||zt.operatorToken.kind==Ye.SyntaxKind.QuestionQuestionToken)||zt.kind==Ye.SyntaxKind.ConditionalExpression,Oe=(zt,Yn)=>{let Jr=YS(zt).map(ns=>dt(ns)).reduce((ns,[hs,...El])=>{if(ns.length==0)return[hs,...El];{let Nl=ns[ns.length-1];if(Q(Nl,hs))return[...ns.slice(0,ns.length-1),{index:Nl.index,length:hs.index-Nl.index+hs.length,result:hs.result==null?null:{ok:hs.result.ok}},...El];if(!Ee(zt)&&Nl.result==null&&hs.result?.ok){let Vh=Nl.index+Nl.length;return[...ns,{...hs,index:Vh,length:hs.index-Vh+hs.length},...El]}else return!Ee(zt)&&Nl.result?.ok&&hs.result==null?[...ns.slice(0,ns.length-1),{...Nl,length:hs.index-Nl.index},hs,...El]:[...ns,hs,...El]}},[]),ti=P.get(zt);if((ti==null||ti?.ok)&&Jr.reduce((ns,hs)=>ns&&Q(Jr[0],hs),!0)){if(Q(zt,Jr[0]))return Yn&&lp(zt)?[{...ae(zt),result:{ok:P.get(zt).ok}}]:[ae(zt)];{let ns=ae(zt),hs=Jr.at(-1).index+Jr.at(-1).length;return[{...ns,length:Jr[0].index-ns.index},...Jr,{...ns,index:hs,length:zt.index+zt.length-hs}]}}if(Jr.length==0)throw new Error("illegal state");let ci=Jr[0],Vo=Q(ci,zt)&&P.get(zt)?.ok?[{...ci,index:zt.index,length:ci.length+ci.index-zt.index},...Jr.slice(1)]:Jr,Sa=Vo[Vo.length-1];return Q(Sa,zt)&&P.get(zt)?.ok?[...Vo.slice(0,Vo.length-1),{...Sa,index:Sa.index,length:zt.index+zt.length-Sa.index}]:Vo},dt=(zt,Yn=!1)=>{if(lp(zt)&&!Yn)return[{...ae(zt),result:null}];if((zt.kind==Ye.SyntaxKind.WhileStatement||zt.kind==Ye.SyntaxKind.DoStatement)&&!Yn){let ci;zt.kind==Ye.SyntaxKind.WhileStatement?ci=zt.expression.index:ci=zt.statement.index;let Vo=P.get(zt);return[{index:zt.index,length:ci-zt.index,result:Vo==null?null:Vo.ok?{ok:!0}:{ok:!1,is_error_origin:!!Vo.is_error_origin}},{index:ci,length:zt.index+zt.length-ci,result:null}]}if((zt.kind==Ye.SyntaxKind.ForOfStatement||zt.kind==Ye.SyntaxKind.ForInStatement)&&!Yn){let ci=P.get(zt);return[{index:zt.index,length:zt.initializer.index-zt.index,result:ci==null?null:ci.ok?{ok:!0}:{ok:!1,is_error_origin:!!ci.is_error_origin}},{index:zt.initializer.index,length:zt.initializer.length,result:null},...dt(zt.expression),{index:zt.statement.index,length:zt.statement.length,result:null}]}if(zt.kind==Ye.SyntaxKind.ForStatement&&!Yn){let ci=P.get(zt);return[{index:zt.index,length:zt.initializer.index-zt.index,result:ci==null?null:ci.ok?{ok:!0}:{ok:!1,is_error_origin:!!ci.is_error_origin}},...dt(zt.initializer),{index:zt.condition.index,length:zt.condition.length,result:null},{index:zt.incrementor.index,length:zt.incrementor.length,result:null}]}if(vx(zt)||YS(zt).length==0)return[ae(zt)];if(P.get(zt)?.is_error_origin){let ci=ae(zt),Vo=mvt(zt);return Vo.length==0?[ci]:Vo.map((Sa,ca)=>{let ns;if(ca==0)ns=zt.index;else{let hs=Vo[ca-1];ns=hs.index+hs.length}return{index:ns,length:Sa.index-ns,result:ci.result}}).concat([{index:Vo.at(-1).index+Vo.at(-1).length,length:zt.index+zt.length-(Vo.at(-1).index+Vo.at(-1).length),result:ci.result}])}let Jr=Oe(zt,Yn),ti=P.get(zt);return ti!=null&&!ti.ok?Jr.map(ci=>ci.result==null?{...ci,result:{ok:!1,is_error_origin:!1}}:ci):Jr},Mt=dt(x,!0);Mt=Mt.filter(zt=>zt.result!=null&&(zt.result.ok||zt.result.is_error_origin));let{ok:Ft}=Mt.reduce(({ok:zt,prev:Yn},Jr)=>zt?Yn==null?{ok:zt,prev:Jr}:Yn.index+Yn.length>Jr.index?{ok:!1}:{ok:!0,prev:Jr}:{ok:zt},{ok:!0,prev:null});if(!Ft)throw new Error("illegal state");return Mt},w3e=(x,P)=>Object.values(x.colored_frames?.[P]??{}).map(Q=>x.frame_coloring.get(Q)).flat();var O3e=x=>x.kind==Ye.SyntaxKind.ExpressionStatement?x.expression:x.kind==Ye.SyntaxKind.NotEmittedStatement||x.kind==Ye.SyntaxKind.EmptyStatement?null:x.kind==Ye.SyntaxKind.ReturnStatement?x.expression==null?x:x.expression:x.kind=="export"?O3e(x.children[0]):x,Ate=(x,P)=>{let Q=lp(x);if(Q){let Ft=YS(x)[0];if(_L(Ft,P))return x.parameters.length>0?Ft:null}let ae=$S(x,P),Ee=ae==null||(ae.kind==Ye.SyntaxKind.Block||ae.kind==Ye.SyntaxKind.SourceFile)&&P>ae.index?$S(x,P-1):ae;if(Ee==null||Ee.kind==Ye.SyntaxKind.Block||x==Ee||x.name==Ee)return null;let Oe=sW(Ee,x);for(let Ft of Oe){if(lp(Ft))break;if(Ft.kind==Ye.SyntaxKind.JsxExpression||Ft.kind==Ye.SyntaxKind.JsxSpreadAttribute)return Ft.expression;if(Wbe(Ft))return Ft}if(Q&&x.body.kind!=Ye.SyntaxKind.Block)return x.body;if(Oe.find(Ft=>Ft!=x&&Ft!=Ee&&(lp(Ft)||gf(Ft)))!=null)return null;if(gf(x)&&Oe.includes(x.expression))return x.expression;if(x.kind==Ye.SyntaxKind.ForStatement&&Oe.includes(x.incrementor))return x.incrementor;if(x.kind==Ye.SyntaxKind.ForStatement&&Oe.includes(x.condition))return x.condition;let Mt=Ye.forEachAncestor(Ee,Ft=>{if(Ft.parent.kind==Ye.SyntaxKind.IfStatement&&Ft.parent.expression==Ft||Ye.isStatement(Ft))return Ft});return O3e(Mt)};var OC=x=>x.cursor_position_by_file[x.current_module]??0,Rte=(x,P)=>({...x,cursor_position_by_file:{...x.cursor_position_by_file,[x.current_module]:P}});var hL=(x,P)=>Rte({...x,current_module:P.module},P.index),_vt=x=>x.error?.constructor==lW.constructor&&x.error?.message==lW.message,kC=x=>!x.ok||x.value?.[Symbol.toStringTag]=="Promise"&&x.value.status!=null&&!x.value.status.ok,lI=x=>x.value?.[Symbol.toStringTag]=="Promise"?x.value.status:x,by=x=>x.toplevel?{module:x.module}:x.fn.__location&&JSON.parse(x.fn.__location),hvt=x=>vy(x).module,gL=x=>x.parse_result.modules[hvt(x)],xte=x=>!x.toplevel&&!x.fn.is_hosted,gvt=(x,P)=>x?.[P.module]?.[P.index??-1],yvt=(x,P,Q)=>({...x,[P.module]:{...x?.[P.module],[P.index??-1]:Q}}),tEe=(x,P)=>{let Q=[{node:x,child_index:0}];for(;;){if(Q.length==0)return null;let ae=Q.at(-1);if(ae.node.id==P)return Q.map(Ee=>Ee.node);if(ae.node.children==null||ae.child_index>=ae.node.children.length){Q.pop();continue}Q.push({node:ae.node.children[ae.child_index],child_index:0}),ae.child_index++}},dW=(x,P,Q=x.current_calltree_node)=>{let ae=x.deepest_calltree_node_id;return ae==null?ae=Q?.id:tEe(x.calltree,ae).includes(Q)||(ae=Q.id),{...x,active_calltree_node:P,current_calltree_node:Q,deepest_calltree_node_id:ae,last_active_calltree_node:P}},eEe=(x,P,Q=P)=>{let ae=by(P);if(gvt(x.colored_frames,ae)!=P.id){x={...x,colored_frames:yvt(x.colored_frames,ae,P.id)};let Oe=x.frames.get(P.id);if(Oe==null){let dt=x.footprints.get(P.id);if(dt==null)throw new Error("illegal state");if(P.code!=null&&gf(P.code)&&P.fn?.__type!="loop_iteration")throw new Error("illegal state");Oe=Zbe(P.code,P,dt);let Mt=k3e(P.code,Oe);x.frames.set(P.id,Oe),x.frame_coloring.set(P.id,Mt)}}return dW(x,P,Q)},F3e=(x,P)=>Ite(x,P)[1],Ite=(x,P)=>{if(x.id!=P.id)throw new Error("illegal state: merge_calltree");if(x.callsite_location==null&&P.callsite_location!=null)return[!0,Ite({...x,callsite_location:P.callsite_location},P)[1]];if(x.snapshot==null&&P.snapshot!=null)return[!0,Ite({...x,snapshot:P.snapshot},P)[1]];if(x.has_more_children){if(P.has_more_children)return[!1,x];if(x.id!=P.id)throw new Error("illegal state");return[!0,P]}if(x.children==null)return[!1,x];if(P.has_more_children)return[!1,x];if(x.children.length!=(P.children?.length??0))throw new Error("illegal state");let[Q,ae]=r3e((Ee,Oe,dt)=>{let[Mt,Ft]=Ite(Oe,P.children[dt]);return[Ee||Mt,Ft]},!1,x.children);return Q?[!0,{...x,children:ae}]:[!1,x]},nEe=(x,P)=>(x.children??[]).find(Q=>{if(Q.callsite_location==null)return!1;let ae=JSON.parse(Q.callsite_location);return ae.index==P.index&&ae.length==P.length}),vvt=(x,P)=>{let Q=x.callsite_location;if(Q==null)return null;Q=JSON.parse(Q);let ae=Vbe(P.code,Ee=>Ee.index==Q.index&&Ee.length==Q.length&&(Ee.kind==Ye.SyntaxKind.CallExpression||Ee.kind==Ye.SyntaxKind.NewExpression||gf(Ee)));if(ae==null)throw new Error("illegal state");return ae},W3e=(x,P,Q)=>{let{has_snapshot:ae,node_snapshot:Ee}=TG(x,by(x.current_calltree_node).module,P,Q);if(ae){let Oe;return Ee==null?Oe=null:Oe=Pte(x,x.current_calltree_node.code,P,Ee),{should_replay:!1,value_explorer:Oe}}else return{should_replay:!0}},ZS=(x,P,Q=Oe=>Oe,ae=!1,Ee=!1)=>{function Oe(Vo){if(Ee)throw new Error("illegal state");let Sa=zt.code;return{...x,value_explorer:null,run_state:{status:Xc.reload_app_window,on_reload_app_window_finished:SG,on_eval_modules_finished:dt,breakpoint:{module:by(zt).module,function_node:Sa,selected_call_id:zt.id,current_calltree_node_id:P.id,selected_node:Vo}}}}function dt(Vo,Sa,ca){if(ca.current_calltree_node_id!=Vo.current_calltree_node.id)return Vo;let ns=m0(Vo.calltree,hs=>hs.id==P.id);return ZS(Vo,ns,Q,ae,!0)}let[Mt]=bG(x.calltree,P);if(!P.toplevel&&!P.fn.is_hosted&&!Mt.toplevel&&!Mt.fn.is_hosted)return Q({...dW(x,null,P),value_explorer:null,selection_state:null});let Ft;P.toplevel||P.fn.__type=="loop_iteration"?Ft=!0:P.code!=null&&gf(P.code)?Ft=!1:Mt.id=="deferred_calls"?Ft=!0:xte(P)?Ft=!1:xte(Mt)?Ft=!0:Ft=x.calltree_node_is_expanded[P.id];let zt=Ft?P:Mt;x=dW(x,zt,P);let Yn,Jr,ti,ci;if(P.toplevel){if(x.footprints.get(vy(x).id)==null)return Oe();Jr=null,ti=null,Yn=by(zt)}else if(P.fn.__type=="loop_iteration"){let Vo=by(P).module,Sa=OC(x),ca=!1;if(x.current_module==Vo&&_L(P.code,Sa)&&Sa!=P.code.index)Yn={module:Vo,index:Sa};else{let Nl=P.code,Vh=Nl.kind;if(Vh==Ye.SyntaxKind.WhileStatement||Vh==Ye.SyntaxKind.DoStatement||Vh==Ye.SyntaxKind.ForStatement){let eT=Nl.statement.kind==Ye.SyntaxKind.Block?Nl.statement.statements.length==0?Vh==Ye.SyntaxKind.ForStatement?Nl.initializer:Nl.expression:Nl.statement.statements[0]:Nl.statement;Yn={module:Vo,index:eT.index}}else Yn={module:Vo,index:Nl.initializer.index},ca=!0}let ns=x.selection_state?.node,hs=ns!=null&&!(ns==P.code.expression&&(P.code.kind==Ye.SyntaxKind.ForOfStatement||P.code.kind==Ye.SyntaxKind.ForInStatement))&&ns!=P.code.initializer&&_L(P.code,ns.index),El;if((P.code.kind==Ye.SyntaxKind.ForOfStatement||P.code.kind==Ye.SyntaxKind.ForInStatement)&&(ns==P.code.initializer||ca)?(ti={node:P.code.initializer},El=P.code):hs?(ti=x.selection_state,El=x.selection_state.node):(El=Ate(P.code,Yn.index),ti=null),El==null)Jr=null,ti=null;else{let Nl;if({value_explorer:Jr,should_replay:Nl}=W3e(x,El,P.id),Nl)return Oe(El)}}else if(P.code!=null&&gf(P.code)){let Vo=P.code.kind;if(Vo==Ye.SyntaxKind.WhileStatement||Vo==Ye.SyntaxKind.DoStatement)Jr=null,ti=null;else{let Sa;Vo==Ye.SyntaxKind.ForStatement?Sa=P.code.initializer:Sa=P.code.expression,ti={node:Sa};let ca;if({value_explorer:Jr,should_replay:ca}=W3e(x,Sa,Gbe(x.calltree,P).id),ca)return Oe(Sa)}if(Yn={module:by(P).module,index:P.code.index},P.has_more_children)return Oe()}else{if(P.snapshot==null)return Oe();let Vo;if(Ft){Yn=by(P);let ca=P.code.body,ns;if(ca.kind==Ye.SyntaxKind.Block)if(ca.statements.length==0){let Nl=ca.getText().match(/^[^\n]*\n[^\n\S]*/);Nl!=null?ns=ca.index+Nl[0].length:ns=ca.index+1}else ns=ca.statements[0].index;else ns=ca.index;ci={...Yn,index:ns},ti=null;let hs=x.snapshots.get_by_module_and_node(by(zt).module,zt.code)?.get(zt.id);if(hs==null)return Oe();hs.ok?Vo=hs.value:Vo=P.snapshot.args}else{let ca=vvt(P,zt);if(ca==null)return Oe();Yn={module:by(zt).module,index:ca.index},Vo=P.snapshot.args,ti={node:ca}}if(Vo==null)throw new Error("illegal state");let Sa=P.ok?{args:Vo,return_value:P.snapshot.value}:{args:Vo,throws:P.snapshot.error};P.context!=null&&(Sa={...Sa,context_before:P.snapshot.context_before,context_after:P.snapshot.context_after}),Jr={call_id:P.id,index:Yn.index,result:{ok:!0,is_calltree_node_explorer:!0,value:Sa}}}return x=ae?x:P.toplevel?{...x,current_module:Yn.module}:hL(x,ci??Yn),x.footprints.get(zt.id)==null?Oe():Q({...eEe(x,zt,P),value_explorer:Jr,selection_state:ti})},bvt=x=>ZS(x,x.current_calltree_node,void 0,!0),bG=(x,P)=>{let Q=Ee=>Ee.id==P.id?[]:Ee.children==null?null:Ee.children.reduce((Oe,dt)=>{if(Oe!=null)return Oe;let Mt=Q(dt);return Mt==null?null:[...Mt,Ee]},null),ae=Q(x);if(ae==null)throw new Error("illegal state");return ae},yL=x=>xte(x)||gf(x.code)?x.children!=null&&x.children.length!=0||x.has_more_children:x.toplevel?x.children!=null&&x.children.length!=0:!0,Evt=x=>{let P=x.current_calltree_node,Q;if(yL(P)&&x.calltree_node_is_expanded[P.id]&&P.children!=null)Q=P.children[0];else{let ae=(Ee,Oe)=>{if(Ee.id=="calltree")return null;let[dt,...Mt]=Oe,Ft=dt.children.findIndex(Yn=>Yn==Ee),zt=dt.children[Ft+1];return zt??ae(dt,Mt)};Q=ae(P,bG(x.calltree,P))}return Q?.id=="deferred_calls"&&(Q.children==null?Q=null:Q=Q.children[0]),Q==null?x:ZS(x,Q)},Svt=x=>{let P=x.current_calltree_node;if(P.toplevel)return x;let[Q]=bG(x.calltree,P),ae=Q.children.findIndex(Mt=>Mt==P),Ee=Q.children[ae-1],Oe=Mt=>!yL(Mt)||!x.calltree_node_is_expanded[Mt.id]||Mt.children==null?Mt:Oe(Mt.children[Mt.children.length-1]),dt;return Ee==null?dt=Q.id=="deferred_calls"?Oe(vy(x)):Q:dt=Oe(Ee),ZS(x,dt)},Tvt=x=>{let P=x.current_calltree_node,Q=x.calltree_node_is_expanded[P.id];if(!yL(P)||!Q){let[ae]=bG(x.calltree,P);return ae.id=="calltree"||ae.id=="deferred_calls"?x:ZS(x,ae)}else return EG(x)},Avt=x=>{let P=x.current_calltree_node;return yL(P)?x.calltree_node_is_expanded[P.id]?P.children!=null?ZS(x,P.children[0]):x:EG(x):x},EG=(x,P,Q=x.current_calltree_node)=>{let ae=Q.id,Ee=x.calltree_node_is_expanded[ae],Oe=P??!Ee,dt={...x,calltree_node_is_expanded:{...x.calltree_node_is_expanded,[ae]:Oe}};return ZS(dt,Q)},Ivt=(x,P)=>{let Q=m0(x.calltree,ae=>ae.id==P);return ZS(x,Q)},xvt=(x,P)=>{let Q=m0(x.calltree,ae=>ae.id==P);return yL(Q)?EG(x,void 0,Q):ZS(x,Q)},wC=(x,P)=>x.calltree_node_is_expanded?.[P.id]?x:{...x,calltree_node_is_expanded:{...x.calltree_node_is_expanded,...Object.fromEntries(bG(x.calltree,P).map(Q=>[Q.id,!0])),[P.id]:!0}},Dte=(x,P)=>{if(P??=vy(x),P.ok||_vt(P))return{state:wC(x,P),node:P};{let Q=m0(P,ae=>!lI(ae).ok&&(ae.children==null||ae.children.find(Ee=>!lI(Ee).ok)==null));return{state:wC(x,Q),node:Q}}},z3e=x=>Dte(x).state,Cte=(x,P,Q)=>{let ae=x.parse_result.modules[P];if(ae==null)return null;if(_L(ae,Q)){let Ee=$S(ae,Q),Oe=Ye.forEachAncestor(Ee,dt=>{let Mt=hte(dt);if(Mt!=null)return Mt;if(lp(dt)||gf(dt))return dt});return Oe??ae}else return ae},Nte=(x,P,Q)=>{if(P==gL(x)){let Ee=vy(x);return eEe(wC(x,Ee),Ee)}if(P.kind==Ye.SyntaxKind.SourceFile)return x;if(Q==null)return dW(x,null);let ae=m0(x.calltree,Ee=>Ee.id==Q);if(ae==null)throw new Error("illegal state");return eEe(wC(x,ae),ae)},Rvt=x=>{if(x.current_calltree_node.code!=null&&gf(x.current_calltree_node.code))return{state:x,effects:{type:"set_focus"}};let P=by(x.active_calltree_node),Q,ae=x.frames.get(x.active_calltree_node.id),Ee=x.active_calltree_node.code,Oe=lI(x.active_calltree_node);if(Oe==null)return{state:x,effects:{type:"set_focus"}};let dt=jbe(Ee,ae);if(Oe.ok||dt==null)if(Ee.kind==Ye.SyntaxKind.SourceFile||Ee.body.kind==Ye.SyntaxKind.Block){let Ft=Vbe(Ee,zt=>zt.kind==Ye.SyntaxKind.ReturnStatement&&ae.get(zt)?.ok);if(Ft==null)return{state:x,effects:{type:"set_focus"}};Q=Ft.expression}else Q=Ee.body;else Q=dt;let Mt;return Oe==null?Mt=null:Mt={call_id:x.current_calltree_node.id,index:Q.index,length:Q.length,result:Oe.ok?x.current_calltree_node.snapshot:Oe},{state:{...hL(x,{module:P.module,index:Q.index}),selection_state:{node:Q},value_explorer:Mt},effects:{type:"set_focus"}}},Dvt=x=>{let P=[x.current_calltree_node,x.active_calltree_node,vy(x)].find(ae=>kC(ae));if(P==null&&(P=f0(x).find(ae=>kC(ae))),P==null)return{state:x,effects:[{type:"set_status",args:["no error found"]}]};let Q=m0(P,ae=>kC(ae)&&(ae.children==null||ae.children.every(Ee=>!kC(Ee)||xte(Ee)&&Ee.children==null)));if(Q==null)throw new Error("illegal state: error origin not found");return ZS(wC(x,Q),Q,ae=>{let Ee=cte(ae),Oe=jbe(ae.active_calltree_node.code,Ee);return Oe==null?{state:hL(ae,by(Q)),effects:{type:"set_focus"}}:(ae={...ae,value_explorer:{call_id:ae.active_calltree_node.id,index:Oe.index,length:Oe.length,result:lI(ae.active_calltree_node)}},{state:hL(ae,{module:by(Q).module,index:Oe.index}),effects:{type:"set_focus"}})})},Cvt=(x,P)=>{if(x.logs.logs.length==0)return{state:x};let Q=Math.max(Math.min(x.logs.log_position==null?0:x.logs.log_position+P,x.logs.logs.length-1),0);return B3e(x,Q)},B3e=(x,P)=>{x={...x,logs:{...x.logs,log_position:P}};let Q=m0(x.calltree,ae=>ae.id==x.logs.logs[P].id);return ZS(wC(x,Q),Q,ae=>ae.active_calltree_node==null?ae:{...ae,value_explorer:{...ae.value_explorer,result:{...ae.value_explorer.result,is_calltree_node_explorer:!1,value:ae.value_explorer.result.value.args}}})},G3e={arrow_down:Evt,arrow_up:Svt,arrow_left:Tvt,arrow_right:Avt,select_node:Ivt,select_and_toggle_expanded:xvt,select_return_value:Rvt,select_error:Dvt,navigate_logs_position:B3e,navigate_logs_increment:Cvt,show_value_explorer:bvt};function V3e(x){return new Map([...x.entries()].map(([P,Q])=>[P,structuredClone(Q)]))}var AG=class extends Map{set(P,Q){if(structuredClone(Q),typeof P!="string")throw new Error("key must be a string");super.set(P,Q)}};var uW=class extends Map{get_by_module_and_node(P,Q){if(Q.index==null||Q.length==null)throw new Error("illegal state");return this.get(`${P}_${Q.index}_${Q.length}`)}set_by_module_and_node(P,Q,ae){if(Q.index==null||Q.length==null)throw new Error("illegal state");return this.set(`${P}_${Q.index}_${Q.length}`,ae)}};var Xc={parse:"parse",parse_finished:"parse_finished",reload_app_window:"reload_app_window",reload_app_window_finished:"reload_app_window_finished",load_external_imports:"load_external_imports",eval_modules:"eval_modules",eval_modules_finished:"eval_modules_finished"},H3e=(x,P)=>{let Q=new Set(x),ae=new Map,Ee=(Oe,dt)=>{if(Oe.children!=null)for(let Mt of Oe.children)Ee(Mt,Oe.code!=null&&gf(Oe.code)?dt:Oe);Q.has(Oe.id)&&ae.set(Oe.id,{id:Oe.id,version_number:Oe.version_number,toplevel:dt.toplevel,module:by(dt)?.module,parent_name:dt.fn?.name,args:Oe.args,log_fn_name:Oe.fn.name})};return Ee(P,null),x.map(Oe=>ae.get(Oe))},Nvt=x=>x.run_state?.status!=Xc.reload_app_window?vL({...x,run_state:{status:Xc.reload_app_window_finished}},!1):x.run_state.on_reload_app_window_finished(x),Mte=(x,P,Q)=>({function_node:P,module:x,selected_node:Q}),oEe=x=>{if(x.parse_result.modules[x.current_module]==null)return Mte(x.current_module,x.parse_result.modules[x.entrypoint],null);let P=OC(x),Q=Cte(x,x.current_module,P),ae=Ate(Q,P);return Mte(x.current_module,Q,ae)},aEe=x=>{let P=oEe(x);return J3e(x,P)},K3e=x=>x.selection_state!=null?Mte(x.current_module,x.selection_state.function_node,x.selection_state.node):oEe(x),J3e=(x,P)=>{let Q;return P.function_node==x.active_calltree_node?.code?Q=x.active_calltree_node:x.calltree!=null&&x.deepest_calltree_node_id!=null&&(Q=tEe(x.calltree,x.deepest_calltree_node_id).findLast(ae=>ae.code==P.function_node&&(!gf(ae.code)||ae.fn.__type=="loop_iteration"))),Q==null?x.active_calltree_node!=null&&(P={...P,parent_calltree_node:x.active_calltree_node}):P={...P,selected_call_id:Q.id},P},vL=(x,P,Q)=>{if(x={...x,calltree:null,modules:null,execution_id:x.execution_id+1,rt_cxt:null,logs:null,current_calltree_node:null,active_calltree_node:null,deepest_calltree_node_id:null,last_active_calltree_node:Q?x.last_active_calltree_node:null,calltree_node_is_expanded:null,collected_footprints_functions:new Set,frames:new Map,colored_frames:null,frame_coloring:new Map,selection_state:null,value_explorer:null,snapshots:new uW,subcalls:new Map,footprints:null},P){let ae={status:Xc.parse,prev_status:x.run_state?.status,is_input:Q};return{...x,run_state:ae}}return q3e(x,P)},q3e=(x,P,Q)=>{let ae=x.run_state.is_input;P&&(x={...x,parse_result:l3e(x.entrypoint,Q)});let Ee=P?{status:x.run_state.prev_status}:x.run_state;return x={...x,run_state:Ee},x.parse_result.ok?!ae||x.run_on_edit?Lte(x):{...x,run_state:{status:Xc.parse_finished}}:x},Lte=x=>x.parse_result.ok?x.run_state?.status==Xc.reload_app_window_finished?j3e(x):{...x,run_state:{status:Xc.reload_app_window,on_reload_app_window_finished:j3e,reload_counter:x.run_state?.reload_counter}}:x,j3e=x=>{let P=K3e(x),Q=x.last_active_calltree_node;if(Q!=null&&by(Q).module==x.current_module&&Q.kind!=Ye.SyntaxKind.SourceFile&&P.function_node.kind!=Ye.SyntaxKind.SourceFile){let ae=Q.code.getSourceFile().text,Ee=Q.code,Oe=x.files[x.current_module],dt=P.function_node;ae.slice(0,Ee.index)==Oe.slice(0,dt.index)&&ae.slice(Ee.index+Ee.length)==Oe.slice(dt.index+dt.length)&&(P={...P,selected_call_id:Q.id})}return x={...x,run_state:{breakpoint:P,on_eval_modules_finished:$3e}},SG(x)},SG=x=>{let P=i3e(zbe(x.parse_result.modules).map(Q=>Q.url));return P.length!=0?{...x,run_state:{...x.run_state,status:Xc.load_external_imports,external_imports:P}}:X3e(x,x)},X3e=(x,P,Q)=>{if(x.run_state!=P.run_state)return x;if(Q!=null){let Mt=new Set(Object.entries(Q).filter(([Ft,zt])=>!zt.ok).map(([Ft,zt])=>Ft));if(Mt.size!=0){let Ft=zbe(x.parse_result.modules).filter(({url:zt})=>Mt.has(zt)).map(({node:zt,module_name:Yn,url:Jr})=>({index:zt.index,length:zt.length,message:Q[Jr].error.message,module:Yn}));return{...x,parse_result:{...x.parse_result,ok:!1,problems:Ft,is_external_imports_problems:!0},run_state:{status:Xc.eval_modules_finished}}}}let ae=new uW([...x.snapshots.entries()].map(([Mt,Ft])=>[Mt,Ft==null?Ft:new Map(Ft)])),Ee=x.run_state.on_eval_modules_finished!=$3e;!Ee&&x.is_open_app_window&&(x={...x,io_trace:[]});let Oe=x.io_trace.length==0&&!Ee,dt=L3e(x.parse_result,Q,x.on_deferred_call,x.execution_id,x.io_trace,Oe,V3e(Ee?x.prev_storage:x.storage),ae,!x.collected_footprints_functions.has(x.run_state.breakpoint.function_node),x.run_state.breakpoint,x.allow_sync_execution);return dt.then==null&&x.allow_sync_execution?Y3e(x,x.execution_id,dt):{...x,run_state:{...x.run_state,status:Xc.eval_modules,promise:dt}}},Y3e=(x,P,Q)=>{if(x.execution_id!=P)return x;if(x.calltree!=null){if(Q.rt_cxt.io_trace_is_replay_aborted)throw new Error("illegal state");if(Q.rt_cxt.call_counter!=x.rt_cxt.call_counter)throw new Error("illegal state: bad replay, call_counter do not match");x={...x,calltree:F3e(x.calltree,Q.calltree)}}let ae=Q.rt_cxt.snapshots,Ee=Q.breakpoint,Oe=Ee.function_node.kind==Ye.SyntaxKind.SourceFile?[Ee.selected_node]:[Ee.selected_node,Ee.function_node];for(let Mt of Oe){let Ft=[Ee.module,Mt];Mt!=null&&ae.get_by_module_and_node(...Ft)===void 0&&ae.set_by_module_and_node(...Ft,null)}for(let Mt of[Q.rt_cxt.selected_call_id,Q.rt_cxt.first_call_id])if(Ee.selected_node!=null&&Mt!=null){let Ft=ae.get_by_module_and_node(Ee.module,Ee.selected_node);Ft!=null&&Ft.get(Mt)===void 0&&Ft.set(Mt,null)}if(Ee.parent_calltree_node!=null){let Mt=x.subcalls.get(Ee.parent_calltree_node.id);Mt==null&&(Mt=new Map,x.subcalls.set(Ee.parent_calltree_node.id,Mt)),Mt.set(Ee.function_node,Q.rt_cxt.selected_call_id??null)}let dt={...x,snapshots:ae,footprints:new Map([...x.footprints??[],...Q.rt_cxt.footprints]),rt_cxt:Q.rt_cxt,run_state:{status:Xc.eval_modules_finished}};if(x.run_state.breakpoint.function_node==null)throw new Error("illegal state");return x.collected_footprints_functions.add(x.run_state.breakpoint.function_node),x.run_state.on_eval_modules_finished(dt,Q,x.run_state.breakpoint)},$3e=(x,P,Q)=>{if(P.rt_cxt.io_trace_is_replay_aborted)return oze(x);x={...x,calltree:P.calltree,rt_cxt:P.rt_cxt,logs:{logs:H3e(P.logs,P.calltree),log_position:null},modules:P.modules,prev_storage:x.storage,storage:P.rt_cxt.storage};let ae;if(x.selection_state!=null?{state:x,effects:ae}=cEe(x,Q):x=ize(x,P,Q),x.active_calltree_node==null){let{node:Ee,state:Oe}=Dte(x);x=dW(Oe,null,Ee)}else x=z3e(wC(x,x.active_calltree_node));if(x.run_state.status!=Xc.reload_app_window&&x.run_state.status!=Xc.eval_modules_finished)throw new Error("illegal state");return ae==null?x:{state:x,effects:ae}},Pvt=(x,P,Q)=>{let ae={...x.files,[x.current_module]:P};x={...x,files:ae},x=Rte(x,Q);let Ee={type:"write",args:[x.current_module,x.files[x.current_module]]};return{state:vL(x,!0,!0),effects:[Ee]}},sEe=(x,P)=>{if(!x.parse_result.ok)return{state:x,effects:{type:"set_status",args:["invalid syntax"]}};if(x.calltree==null){let ae,Ee;return x.run_state.status==Xc.parse_finished?(ae="The code has not been run yet",Ee="CODE_HAS_NOT_BEET_RUN"):ae="Code is running",{state:x,validation_status:Ee,effects:{type:"set_status",args:[ae],validation_status:Ee}}}let Q=Cte(x,x.current_module,P);if(Q==null||Q.kind==Ye.SyntaxKind.SourceFile&&Q!=gL(x)||lp(Q)&&x.snapshots.get_by_module_and_node(x.current_module,Q)===null)return{state:x,effects:{type:"set_status",args:["code was not reached during program execution"]}}},Mvt=x=>{let P=x.parse_result.modules[x.current_module],Q=$S(P,OC(x));if(Q==null)return null;let ae=sW(Q,P).find(Ee=>Ee.kind==Ye.SyntaxKind.CallExpression||Ee.kind==Ye.SyntaxKind.NewExpression||lp(Ee));return ae==null||lp(ae)?null:ae},lEe=x=>{let P=Mvt(x);if(P!=null)return P;let Q=oEe(x).selected_node;return Q!=null&&(Q.kind==Ye.SyntaxKind.CallExpression||Q.kind==Ye.SyntaxKind.NewExpression)?Q:null},Lvt=x=>{let P=OC(x),Q=sEe(x,P);if(Q!=null)return Q;let ae=lEe(x);if(ae==null)return{state:x,effects:{type:"set_status",args:["no function call to step into"]}};if(x.run_state.status!=Xc.eval_modules_finished)return{state:x,effects:{type:"set_status",args:["code is not executed yet"]}};let Ee=nEe(x.active_calltree_node,ae);if(Ee==null){let Oe=cte(x),dt;return Oe.get(ae)==null?dt="call was not reached during program execution":dt="Cannot step into: function is either builtin or from external lib",{state:x,effects:{type:"set_status",args:[dt]}}}return Ee.is_log?{state:x,effects:{type:"set_status",args:["Cannot step into: function is either builtin or from external lib"]}}:EG(x,!0,Ee)},Q3e=x=>{if(x.kind==Ye.SyntaxKind.SourceFile)return!1;if(x.parent==null)throw new Error("illegal state");let P=x.parent;return Ye.isExpression(x)&&x.kind!=Ye.SyntaxKind.SpreadAssignment&&x.kind!=Ye.SyntaxKind.SpreadElement&&P?.kind!=Ye.SyntaxKind.ShorthandPropertyAssignment&&P?.kind!=Ye.SyntaxKind.ImportDeclaration&&P?.kind!=Ye.SyntaxKind.ImportClause&&P?.kind!=Ye.SyntaxKind.ImportSpecifier&&P?.kind!=Ye.SyntaxKind.NamespaceImport&&(P==null||!aW(x,P))&&!(P!=null&&P.kind==Ye.SyntaxKind.PropertyAccessExpression&&P.name==x)&&!(P!=null&&P.kind==Ye.SyntaxKind.PropertyAssignment&&x==P.name)&&P?.kind!=Ye.SyntaxKind.JsxAttribute&&!(P!=null&&(P.kind==Ye.SyntaxKind.JsxOpeningElement||P.kind==Ye.SyntaxKind.JsxClosingElement)&&x.kind==Ye.SyntaxKind.Identifier&&Ye.isIntrinsicJsxName(x.escapedText))&&!(P!=null&&oW(P)&&oW(x))},U3e=x=>x.find(P=>Q3e(P)),kvt=(x,P,Q,ae)=>{if($S(P,ae)==null)return{ok:!1,message:"out of scope"};if(x!=null&&x.index==ae){let Oe;if(x.initial_is_expand==Q)x.node==P?Oe=x.node:(Oe=U3e(Bbe(x.node,P)),(Oe==null||!Ye.isExpression(Oe))&&(Oe=x.node));else{let Mt=$S(x.node,ae);Mt!=x.node?(Oe=sW(Mt,x.node).findLast(zt=>zt!=x.node&&Q3e(zt)),Oe==null&&(Oe=x.node)):Oe=x.node}return{ok:!0,initial_is_expand:x.initial_is_expand,node:Oe,function_node:x.function_node,index:ae}}else{let Oe=$S(P,ae),dt=U3e(sW(Oe,P));return dt==null||!Ye.isExpression(dt)?{ok:!1,message:"can only evaluate expression, not statement"}:{ok:!0,index:ae,function_node:P,node:dt,initial_is_expand:Q}}},wvt=(x,P,Q)=>{let ae=sEe(x,P);if(ae!=null&&ae.validation_status!="CODE_HAS_NOT_BEET_RUN")return ae;let Ee=Cte(x,x.current_module,P);if(Ee==null)throw new Error("not implemented");let Oe=kvt(x.selection_state,Ee,Q,P);if(x={...x,selection_state:Oe,value_explorer:null},!Oe.ok)return{state:x,effects:{type:"set_status",args:[Oe.message]}};let dt=J3e(x,Mte(x.current_module,Ee,Oe.node));return x.calltree!=null?cEe(x,dt):Lte(x)},TG=(x,P,Q,ae)=>{let Ee=x.snapshots.get_by_module_and_node(P,Q);if(Ee===null)return{has_snapshot:!0,node_snapshot:null};if(Ee===void 0)return{has_snapshot:!1};let Oe=Ee.get(ae);return{has_snapshot:Oe!==void 0,node_snapshot:Oe}},rEe=(x,P,Q,ae=void 0)=>{let Ee=x.snapshots.get_by_module_and_node(P,Q);if(Ee===null)return{has_snapshot:!0,node_snapshot:null};if(Ee===void 0)return{has_snapshot:!1};if(ae!=null){let Mt=Ee.get(ae);if(Mt!=null)return{has_snapshot:!0,node_snapshot:Mt};if(Mt===void 0)return{has_snapshot:!1}}let[Oe,dt]=[...Ee.entries()].sort((Mt,Ft)=>Mt[0]-Ft[0]).find(([Mt,Ft])=>Ft!=null);if(Oe==null)throw new Error("illegal state");return{has_snapshot:!0,node_snapshot:dt}},cEe=(x,P)=>(x=rze(x,P),x.run_state.status==Xc.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:Ovt}}:x.value_explorer!=null?{state:x}:{state:x,effects:{type:"set_status",args:["expression was not reached during program execution"]}}),Ovt=(x,P,Q)=>x.selection_state==null||x.value_explorer!=null?x:cEe(x,Q),Wvt=(x,P)=>x.files[P]==null?{state:x,effects:{type:"set_status",args:["File not found"]}}:{...x,current_module:P,selection_state:null,value_explorer:null},Fvt=(x,P,Q=P)=>vL({...x,entrypoint:P,current_module:Q},!0),zvt=(x,P)=>vL({...x,html_file:P},!0),Bvt=(x,P)=>(x={...x,run_on_edit:P},P&&x.calltree==null?Lte(x):x),Gvt=(x,P)=>({state:Z3e(hL(x,P),P.index),effects:{type:"set_focus"}}),Vvt=(x,P)=>({state:hL(x,P),effects:{type:"set_focus"}}),Z3e=(x,P)=>(x=Rte(x,P),x={...x,selection_state:null,value_explorer:null},sEe(x,P)!=null?x:kte(x,aEe(x),eze,!0)),Pte=(x,P,Q,ae)=>{let Ee=ae.call_id;if(Ee==null)throw new Error("illegal state");let Oe=m0(x.calltree,zt=>zt.id==Ee);if(Qbe(Q,Oe,ae.ok)||[Ye.SyntaxKind.BreakStatement,Ye.SyntaxKind.ContinueStatement].includes(Q.kind))return null;let dt;if(ae.ok)dt=void 0;else{let zt=lI(Oe);if(zt==null)return null;dt=zt.error}let Mt;if(vx(Q))Mt=!1;else{let zt=Q.getSourceFile().getFullText();Mt=(Ye.getLeadingCommentRanges(zt,Q.pos)??[]).map(Yn=>zt.slice(Yn.pos,Yn.end)).some(Yn=>Yn.toLowerCase().includes("@dom"))}let Ft=Mt&&ae.value?.dom_node!=null;return{call_id:Ee,index:Q.index,length:Q.length,is_dom_el:Ft,result:{ok:ae.ok,value:ae.value,error:dt}}},iEe=(x,P)=>m0(x,Q=>lI(Q)?.ok==!1&&Q.code==P&&(!gf(Q.code)||Q.fn.__type=="loop_iteration")),eze=(x,P)=>{function Q(){return{...x,run_state:{status:Xc.reload_app_window,reload_counter:(x.run_state.reload_counter??0)+1,on_reload_app_window_finished:SG,on_eval_modules_finished:Uvt,breakpoint:P}}}let ae;if(P.selected_call_id!=null)ae=P.selected_call_id;else{if(P.parent_calltree_node!=null){let Mt=iEe(P.parent_calltree_node,P.function_node),Ft;if(Mt!=null?Ft=Mt.id:Ft=x.subcalls.get(P.parent_calltree_node.id)?.get(P.function_node),Ft===void 0)return Q();Ft!=null&&(ae=Ft)}if(ae==null){let Mt=iEe(x.calltree,P.function_node);if(Mt!=null)ae=Mt.id;else{let Ft;if(P.function_node==gL(x))ae=vy(x).id,Ft=x.footprints.get(ae)==null;else{let{has_snapshot:zt,node_snapshot:Yn}=rEe(x,P.module,P.function_node);if(Ft=!zt,zt)if(Yn!=null)ae=Yn.call_id;else return Nte({...x,value_explorer:null},P.function_node,null)}if(Ft&&P.parent_calltree_node!=null)throw new Error("illegal state: replay cannot be required here");if(Ft)return Q()}}}if(ae==null)throw new Error("illegal state: selected_call_id is null");let Ee;if(P.function_node==gL(x))Ee=x.footprints.get(ae)==null;else{let{has_snapshot:Mt}=TG(x,P.module,P.function_node,ae);Ee=!Mt}if(Ee)return P={...P,selected_call_id:ae},Q();let Oe,dt=P.selected_node;if(dt!=null){let{has_snapshot:Mt,node_snapshot:Ft}=TG(x,P.module,vx(P.selected_node)?P.function_node:P.selected_node,ae);if(Mt)Ft==null?Oe={is_jump_here:!0,index:dt.index,length:dt.length}:Oe=Pte(x,P.function_node,dt,Ft);else return Q()}else Oe=null;return Nte({...x,value_explorer:Oe},P.function_node,ae)},tze=x=>{if(!x.value_explorer?.is_jump_here)return x;let P=K3e(x);return kte(x,P,jvt,!0)},jvt=(x,P)=>{if(P.selected_node==null)throw new Error("illegal state");let Q=x;return x=nze(x,P,!0),Q==x?{state:x,effects:{type:"set_status",args:["code was not reached during program execution"]}}:x.run_state.status==Xc.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:tze}}:x},kte=(x,P,Q)=>{if(P.function_node.kind==Ye.SyntaxKind.SourceFile&&P.function_node!=gL(x)||(x=Q(x,P),x.effects!=null)||x.run_state.status==Xc.reload_app_window||x.value_explorer==null||x.value_explorer.is_jump_here||!x.value_explorer.result.ok)return x;let ae=P.selected_node;if(ae.kind!=Ye.SyntaxKind.CallExpression)return x;let Ee=nEe(x.active_calltree_node,P.selected_node);if(Ee==null||!Ee.is_log)return x;let{has_snapshot:Oe,node_snapshot:dt}=TG(x,P.module,$be(ae),x.value_explorer.call_id);if(!Oe)throw console.error({state:x,breakpoint:P,calltree_node:Ee,has_snapshot:Oe,node_snapshot:dt}),new Error("illegal state: no node snapshot for log fn args");if(!dt.ok)throw console.error({state:x,breakpoint:P,calltree_node:Ee,has_snapshot:Oe,node_snapshot:dt}),new Error("illegal state: node snapshot with ok: false for log fn args");let Mt={...x.value_explorer,result:{ok:!0,value:dt.value}};return{...x,value_explorer:Mt}},nze=(x,P,Q)=>{if(Q||P.selected_call_id==null){let dt=iEe(x.calltree,P.function_node);dt!=null&&(P={...P,selected_call_id:dt.id})}let ae=P.selected_node,{has_snapshot:Ee,node_snapshot:Oe}=ae==null?{has_snapshot:!0,node_snapshot:null}:rEe(x,P.module,vx(P.selected_node)?P.function_node:P.selected_node,P.selected_call_id);if(Ee){let dt=!1,Mt,Ft;if(Oe==null){if(Q)return x;if(Mt=null,P.function_node==gL(x))Ft=vy(x).id,dt=x.footprints.get(Ft)==null;else{let{has_snapshot:zt,node_snapshot:Yn}=rEe(x,P.module,P.function_node,P.selected_call_id);dt=!zt,Ft=Yn?.call_id}}else Ft=Oe.call_id,Mt=Pte(x,P.function_node,ae,Oe);if(!dt)return Nte({...x,value_explorer:Mt},P.function_node,Ft)}return{...x,run_state:{status:Xc.reload_app_window,reload_counter:(x.run_state.reload_counter??0)+1,on_reload_app_window_finished:SG,breakpoint:P}}},rze=(x,P)=>(x=nze(x,P,!1),x.run_state.status==Xc.reload_app_window?{...x,run_state:{...x.run_state,on_eval_modules_finished:ize}}:x),ize=(x,P,Q)=>{let ae=aEe(x);return Q.selected_call_id!=null&&ae.function_node==Q.function_node&&(ae={...Q,selected_call_id:Q.selected_call_id}),kte(x,ae,rze,!0)},Uvt=x=>x.selection_state!=null||x.value_explorer!=null?x:kte(x,aEe(x),eze,!0),Hvt=(x,P,Q,ae)=>x.execution_id!=Q||(x={...x,snapshots:new uW,footprints:new Map,collected_footprints_functions:new Set,calltree:dte(vy(x),[...f0(x)??[],P]),logs:{...x.logs,logs:x.logs.logs.concat(H3e(ae,P))}},P.ok)?x:Dte(x,P).state,oze=x=>vL({...x,io_trace:[],run_state:{...x.run_state,reload_counter:(x.run_state.reload_counter??0)+1}},!1),aze=(x,P)=>{let Q=Ee=>Ee.kind=="file"?[Ee]:Ee.children.map(Q).flat(),ae=Object.fromEntries([...Q(P.scratch_files),...P.local_files==null?[]:Q(P.local_files)].map(Ee=>[Ee.path,Ee.contents]));return{...x,project_dir:P,files:ae}},sze=(x,P)=>(x=aze(x,P),x=lze(x),vL(x,!0)),Kvt=(x,P,Q)=>{let ae={...x.project_dir,scratch_files:P};return x={...x,current_module:Q,entrypoint:Q},sze(x,ae)},lze=x=>{let P=x.project_dir.scratch_files.children[0];return{...x,current_module:x.files[x.current_module]==null?P.path:x.current_module,entrypoint:x.files[x.entrypoint]==null?P.path:x.entrypoint,html_file:x.files[x.html_file]==null?null:x.html_file}},cze=(x,P)=>{let Q={...x.project_dir,local_files:P};return sze(x,Q)},Jvt=(x,P,Q)=>cze({...x,current_module:Q,entrypoint:Q},P),qvt=(x,P)=>({...x,storage:new AG,is_open_app_window:P}),Xvt=(x,P=0)=>(x=aze(x,x.project_dir),x=lze(x),vL({...x,execution_id:0,storage:new AG,io_trace:[],is_open_app_window:!1,cursor_position_by_file:{[x.current_module]:P}},!0)),dze={get_initial_state:Xvt,parse_finished:q3e,input:Pvt,reload_app_window_and_run_code:Lte,open_app_window:qvt,load_local_dir:cze,create_local_file:Jvt,load_scratch_dir:Kvt,step_into:Lvt,change_current_module:Wvt,change_entrypoint:Fvt,change_html_file:zvt,change_run_on_edit:Bvt,goto_location:Gvt,goto_problem:Vvt,move_cursor:Z3e,jump_here:tze,eval_selection:wvt,reload_app_window_finished:Nvt,external_imports_loaded:X3e,eval_modules_finished:Y3e,on_deferred_call:Hvt,clear_io_trace:oze,calltree:G3e};var Yvt=x=>x instanceof Error||x instanceof globalThis.app_window.Error,$vt=x=>x?.[Symbol.toStringTag]=="Promise",dEe=x=>x.clazz==null||x.clazz=="Object",Ote=x=>x==null?null:x.clazz=="Promise"?x.status==null?null:Ote(x.status.ok?x.status.value:x.status.error):x.array_entries!=null?Array.from(x.array_entries).map((P,Q)=>[Q,P]):x.object_entries,uze=x=>{if(x.string!=null)return x.string;let P=x.array_entries??x.object_entries;return P==null?"":["Array","Set","Map"].includes(x.clazz)?x.clazz+"("+P.length+")":dEe(x)?"":x.clazz},WC=(x,P=!1)=>{let Q=typeof x;if(x===null)return"null";if(x===void 0)return"undefined";if(Q=="function")return"fn "+(x.name==""?"anonymous":x.name);if(Q=="string")return JSON.stringify(x);if(Q!="object")return x.toString();if(x.string!=null)return x.string;if(x.clazz=="Promise")return x.status==null?"Promise":x.status.ok?`Promise`:`Promise`;if(x.array_entries!=null){if(P)return x.clazz+"("+x.array_entries.length+")";{let[Ee,Oe,dt]=x.clazz=="Array"?["[","]",""]:["{","}",x.clazz+" "];return dt+Ee+x.array_entries.map(Mt=>WC(Mt,!0)).join(", ")+Oe}}let ae=dEe(x)?"":x.clazz+" ";if(P)return dEe(x)?x.object_entries.length==0?ae+"{}":"{\u2026}":x.clazz;{let Ee="{"+x.object_entries.map(([Oe,dt])=>{let Mt=x.clazz=="Map"?WC(Oe,!0):Oe,Ft=WC(dt,!0);return`${Mt}: ${Ft}`}).join(", ")+"}";return ae+Ee}},wte=x=>{let P=typeof x;return x===null?"null":x===void 0?"undefined":P=="function"?"fn "+x.name:P=="string"?JSON.stringify(x):P!="object"?x.toString():$vt(x)?x.status==null?"Promise ":x.status.ok?`Promise `:`Promise `:Yvt(x)?x.toString():Array.isArray(x)?"[\u2026]":(x.constructor?.name==null||x.constructor?.name=="Object"?"":x.constructor.name+" ")+"{\u2026}"};function cr(x,P,...Q){let ae=document.createElement(x);if(typeof P=="string")ae.setAttribute("class",P);else{let Ee=P;for(let Oe in Ee){let dt=Ee[Oe];["change","click"].includes(Oe)?ae.addEventListener(Oe,dt):Oe=="checked"?Ee[Oe]&&ae.setAttribute(Oe,"checked"):ae.setAttribute(Oe,dt)}}return Q.forEach(Ee=>{let Oe=dt=>{if(typeof dt>"u")throw new Error("illegal state");dt!==null&&dt!==!1&&ae.appendChild(typeof dt=="string"?document.createTextNode(dt):dt)};Array.isArray(Ee)?Ee.forEach(Oe):Oe(Ee)}),ae}function Qvt(x){let P=x.name==""?"anonymous":x.name,Q=x.__location==null?`${P}`:`fn ${P}`,ae=document.createElement("div");ae.innerHTML=Q;let Ee=ae.children[0];return x.__location!=null&&Ee.addEventListener("click",Oe=>{Oe.stopPropagation(),As("goto_location",JSON.parse(x.__location))}),Ee}function Ig(x){return typeof x=="function"?Qvt(x):wte(x)}function bL(x,P=", "){let Q=[];for(let ae=0;ae{P.offsetTop-x.scrollTop-x.offsetTop<0&&P.scrollIntoView(!0),P.offsetTop-x.scrollTop-x.offsetTop-x.clientHeight+P.clientHeight>0&&P.scrollIntoView(!1)};var FC=(x,P)=>{if(P.length!=0){let[Q,...ae]=P,Ee=Ote(x).find(([Oe,dt])=>Oe==Q)[1];return FC(Ee,ae)}else{let Q=Ote(x),ae=Q!=null&&Q.length>0;return{displayed_entries:Q,header:WC(x),short_header:ae?uze(x):null,is_exp:ae}}},Wte=class{constructor({container:P,event_target:Q=P,scroll_to_element:ae,on_escape:Ee=()=>{},on_expand:Oe}={}){this.container=P,this.scroll_to_element=ae,this.on_escape=Ee,this.on_expand=Oe,Q.addEventListener("keydown",dt=>{if(dt.key=="F1"){this.on_escape();return}let Mt=FC(this.value,this.current_path);if(dt.key=="ArrowDown"||dt.key=="j")if(dt.preventDefault(),Mt.is_exp&&this.is_expanded(this.current_path))this.select_path(this.current_path.concat(Mt.displayed_entries[0][0]));else{let Ft=Yn=>{if(Yn.length==0)return null;let Jr=Yn.slice(0,Yn.length-1),ti=FC(this.value,Jr).displayed_entries,ci=ti.findIndex(([Sa,ca])=>Sa==Yn[Yn.length-1]),Vo=ti[ci+1];return Vo==null?Ft(Jr):[...Jr,Vo[0]]},zt=Ft(this.current_path);zt!=null&&this.select_path(zt)}if(dt.key=="ArrowUp"||dt.key=="k"){if(dt.preventDefault(),this.current_path.length==0){this.on_escape();return}let Ft=this.current_path.slice(0,this.current_path.length-1),zt=FC(this.value,Ft).displayed_entries,Yn=zt.findIndex(([ti,ci])=>ti==this.current_path[this.current_path.length-1]),Jr=zt[Yn-1];if(Jr==null)this.select_path(Ft);else{let ti=ci=>{let Vo=FC(this.value,ci);if(!Vo.is_exp||!this.is_expanded(ci))return ci;{let Sa=Vo.displayed_entries.map(([ca,ns])=>ca);return ti([...ci,Sa[Sa.length-1]])}};this.select_path(ti([...Ft,Jr[0]]))}}if(dt.key=="ArrowLeft"||dt.key=="h"){dt.preventDefault();let Ft=this.is_expanded(this.current_path);if(!Mt.is_exp||!Ft)if(this.current_path.length!=0){let zt=this.current_path.slice(0,this.current_path.length-1);this.select_path(zt)}else this.on_escape();else this.toggle_expanded()}if((dt.key=="ArrowRight"||dt.key=="l")&&(dt.preventDefault(),Mt.is_exp))if(!this.is_expanded(this.current_path))this.toggle_expanded();else{let zt=FC(this.value,this.current_path).displayed_entries;this.select_path([...this.current_path,zt[0][0]])}})}get_node_data(P,Q=this.node_data){if(P.length==0)return Q;{let[ae,...Ee]=P;return this.get_node_data(Ee,Q.children[ae])}}is_expanded(P){return this.get_node_data(P).is_expanded}is_root_expandable(){return FC(this.value,[]).is_exp}on_click(P){this.select_path(P),this.toggle_expanded()}render(P,Q,ae){this.value=Q,this.node_data=ae;let Ee=[];this.container.appendChild(this.render_value_explorer_node(Ee,this.node_data)),this.select_path(ae.is_calltree_node_explorer?["args"]:[])}select_path(P){if(this.get_node_data(P).is_calltree_node_explorer){this.on_escape();return}if(this.current_path!=null&&this.set_active(this.current_path,!1),this.current_path=P,this.set_active(this.current_path,!0),document.contains(this.container)){let Q=this.get_node_data(P).el.getElementsByClassName("value_explorer_header")[0];this.scroll_to_element==null?pW(this.container.parentNode,Q):this.scroll_to_element(Q)}}set_active(P,Q){let ae=this.get_node_data(P).el.getElementsByClassName("value_explorer_header")[0];Q?ae.classList.add("active"):ae.classList.remove("active")}set_expanded(P){if(typeof P=="boolean")return this.set_expanded(()=>P);let Q=this.get_node_data(this.current_path);Q.is_expanded=P(Q.is_expanded);let ae=Q.el,Ee=this.render_value_explorer_node(this.current_path,Q);ae.parentNode.replaceChild(Ee,ae)}toggle_expanded(){this.set_expanded(P=>!P),this.set_active(this.current_path,!0),this.on_expand()}render_value_explorer_node(P,Q){let ae=P.length==0,Ee=P.at(-1),{displayed_entries:Oe,header:dt,short_header:Mt,is_exp:Ft}=FC(this.value,P),zt=Ft&&Q.is_expanded;Q.children??={};let Yn=cr("div","value_explorer_node "+(Q.is_calltree_node_explorer?"is_calltree_node_explorer":""),cr("span",{class:"value_explorer_header",click:this.on_click.bind(this,P)},cr("span","expand_icon",Ft?zt?"\u25BC":"\u25B6":"\xA0"),ae?null:cr("span","value_explorer_key",Q.label??(typeof Ee=="string"?Ee:WC(Ee)),": "),ae||!Ft||!zt?dt:Q.is_arguments?"":Mt),Ft&&zt?Oe.map(([Jr,ti])=>(Q.children[Jr]??={},this.render_value_explorer_node([...P,Jr],Q.children[Jr]))):[]);return Q.el=Yn,Yn}};function uEe(x){let P,Q=!1,ae=!1;new MutationObserver(()=>{if(!Q){if(P=x.style.top,P==null||P=="")return;Q=!0;return}if(ae){ae=!1;return}x.style.top!==P&&(ae=!0,x.style.top=P)}).observe(x,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})}var Zvt=(x,{on_change:P,on_change_selection:Q,is_change_selection_supressed:ae,on_change_immediate:Ee,on_change_selection_immediate:Oe})=>{let Ft=x.getContribution("editor.contrib.suggestController").widget.value,zt=!1,Yn;Jr();function Jr(){Yn={}}let ti=Sa=>{Yn.tid=setTimeout(()=>{Yn.tid=null,Vo()},Sa)},ci=()=>{Yn.tid!=null&&clearTimeout(Yn.tid)},Vo=()=>{try{Yn.change_args!=null?P(...Yn.change_args):Yn.change_selection_args!=null&&Q(...Yn.change_selection_args)}finally{Jr()}};x.onDidChangeModelContent((...Sa)=>{Yn.immediate_change_fired||(Yn.immediate_change_fired=!0,Ee()),ci(),Yn.change_args=Sa,!zt&&ti(1e3)}),x.onDidChangeCursorPosition((...Sa)=>{x.getSelection().isEmpty()&&(ae()||zt||(Yn.change_selection_args=Sa,Oe(...Sa),ci(),ti(200)))}),Ft.onDidShow(()=>{zt=!0,ci()}),Ft.onDidHide(()=>{zt=!1,Yn.change_args!=null&&ti(1e3)})},Fte=class{constructor(P,Q){this.ui=P,this.editor_container=Q,this.make_resizable(),this.markers=new WeakMap,monaco.editor.EditorOptions.padding.constructor.prototype.validate=function(ae){return{top:0,bottom:ae?.bottom??0}},this.monaco_editor=monaco.editor.create(this.editor_container,{minimap:{enabled:!1},occurrencesHighlight:!1,lineNumbersMinChars:3,glyphMargin:!1,folding:!1,fontSize:16,tabSize:2,automaticLayout:!0}),this.monaco_editor.onDidScrollChange(ae=>{this.old_scroll_top=ae._oldScrollTop}),Zvt(this.monaco_editor,{on_change:()=>{this.is_typing=!1;let ae=this.monaco_editor.getModel().getValue();Lbe(ae),As("input",ae,this.get_cursor_position())},on_change_immediate:()=>{this.is_typing=!0,this.unembed_value_explorer()},on_change_selection:()=>{this.is_typing=!1,this.is_change_selection_supressed||As("move_cursor",this.get_cursor_position())},on_change_selection_immediate:ae=>{if(this.is_typing=!0,!this.has_value_explorer())return;let Ee=this.monaco_editor.getModel().getOffsetAt(ae.position);this.value_explorer.data.length==null||Ee>=this.value_explorer.data.index&&Eethis.is_change_selection_supressed}),setTimeout(()=>{this.focus()},0),this.init_keyboard(),this.has_value_explorer_key=this.monaco_editor._contextKeyService.createKey("has_value_explorer",!1)}focus(){this.monaco_editor.focus()}supress_change_selection(P){try{this.is_change_selection_supressed=!0,P()}finally{this.is_change_selection_supressed=!1}}get_session(P){return monaco.editor.getModel(monaco.Uri.file(P))}switch_session(P){let Q=this.get_session(P);this.monaco_editor.setModel(Q)}has_value_explorer(){return this.value_explorer!=null}set_padding_bottom(){if(this.has_value_explorer()){let Q=this.value_explorer.el.children[0].clientHeight;this.monaco_editor.updateOptions({padding:{bottom:Q}})}else this.monaco_editor.updateOptions({padding:{bottom:0}})}unembed_value_explorer(){if(!this.has_value_explorer())return null;delete this.step_into_button,this.has_value_explorer_key.set(!1),this.value_explorer.is_dom_el?(this.monaco_editor.changeViewZones(P=>{P.removeZone(this.value_explorer.zone_id)}),this.monaco_editor.setScrollTop(this.old_scroll_top),this.monaco_editor.revealPosition(this.monaco_editor.getPosition())):(this.monaco_editor.removeContentWidget(this.value_explorer),this.set_padding_bottom()),this.value_explorer=null}embed_value_explorer(P,Q){let{index:ae,length:Ee,call_id:Oe,is_jump_here:dt,is_dom_el:Mt}=Q,Ft={is_jump_here:dt,execution_id:P.execution_id,call_id:Oe,index:ae,length:Ee};if(this.has_value_explorer()){let ti=this.value_explorer.key;if(ti.execution_id==Ft.execution_id&&ti.call_id==Ft.call_id&&ti.index==Ft.index&&ti.length==Ft.length){this.value_explorer.el.classList.toggle("display-none",!1),this.toggle_step_into_button(P);return}}this.unembed_value_explorer(),this.has_value_explorer_key.set(!0);let zt=this.monaco_editor.getModel(),Yn,Jr=cr("div",{class:"embed_value_explorer_container"},cr("div",{class:"embed_value_explorer_wrapper"},Yn=cr("div",{class:"embed_value_explorer_content",tabindex:0})));if(dt)Yn.appendChild(cr("span","jump_here",cr("a",{href:"javascript: void(0)",click:()=>As("jump_here")},"Jump here")," ",cr("span","hotkey_key",navigator.platform.toLowerCase().includes("mac")?"\u2318Enter":"Ctrl-Enter")));else{let{result:{ok:ti,value:ci,error:Vo,is_calltree_node_explorer:Sa}}=Q,ca;if(ti)if(Mt)if(ci.is_svg){let ns=document.createElementNS("http://www.w3.org/2000/svg","svg");ns.appendChild(ci.dom_node),Yn.appendChild(ns)}else Yn.appendChild(ci.dom_node);else{let ns,hs=()=>{ns!=null&&this.monaco_editor.setScrollTop(ns),this.value_explorer.return_to==null?this.focus():this.value_explorer.return_to.focus()};Jr.addEventListener("keydown",El=>{El.key=="Escape"&&hs()}),ca=new Wte({container:Yn,event_target:Jr,on_escape:hs,on_expand:()=>this.set_padding_bottom(),scroll_to_element:El=>{ns==null&&(ns=this.monaco_editor.getScrollTop());let Nl=El.getBoundingClientRect().bottom-this.editor_container.getBoundingClientRect().bottom;Nl>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()+Nl);let Vh=this.editor_container.getBoundingClientRect().top-El.getBoundingClientRect().top;Vh>0&&this.monaco_editor.setScrollTop(this.monaco_editor.getScrollTop()-Vh)}}),Sa?ca.render(P,{object_entries:Object.entries(ci)},{is_expanded:!0,is_calltree_node_explorer:!0,children:{args:{label:"arguments",is_expanded:!0,is_arguments:!0},return_value:{label:"return"},throws:{label:"throws"},context_before:{label:"this before call"},context_after:{label:"this after call"}}}):ca.render(P,ci,{is_expanded:!0})}else Yn.appendChild(cr("span","eval_error",Vo==null?""+Vo:Vo.toString()));if(!Mt){let ns=ti&&ca.is_root_expandable()?"hotkeys_bottom":"hotkeys_right";Yn.classList.toggle(ns,!0),Yn.appendChild(cr("div","value_explorer_hotkeys",this.step_into_button=cr("span","hotkey_label hotkey_step_into",cr("a",{href:"javascript:void(0)",click:()=>As("step_into")},"Step into call"),cr("span","hotkey_key","F11")),cr("span","hotkey_label hotkey_focus","Focus",cr("span","hotkey_key","F1")),cr("span","hotkey_label hotkey_unfocus","Unfocus",cr("span","hotkey_key","Esc")))),this.toggle_step_into_button(P)}}if(Mt){let ti=this.value_explorer={is_dom_el:Mt,el:Jr,content:Yn,key:Ft,data:Q};Jr.classList.add("is_dom_el");let ci;this.monaco_editor.changeViewZones(Vo=>{(async()=>{for(;!document.contains(ti.el)||ti.el.style.display=="none";)await new Promise(ca=>setTimeout(ca,0));Jr.style.height="",ci=Jr.clientHeight,this.monaco_editor.changeViewZones(ca=>{ca.layoutZone(ti.zone_id)})})();let Sa=zt.getPositionAt(ae+Ee);ti.zone_id=Vo.addZone({afterLineNumber:Sa.lineNumber,domNode:ti.el,get heightInPx(){return ci}})})}else{Jr.classList.add("is_not_dom_el");let ti=zt.getPositionAt(ae);ti.column=0;let ci=0,Vo=ti.lineNumber,Sa=this.monaco_editor.getVisibleRanges()[0].endLineNumber;for(let ns=Vo;ns<=Sa;ns++)ci=Math.max(ci,zt.getLineContent(ns).length);Yn.style.marginLeft=ci+1+"ch";let ca=this.value_explorer={el:Jr,content:Yn,is_dom_el:Mt,key:Ft,data:Q,getId(){return"value_explorer"},getDomNode(){return this.el},getPosition(){return{position:ti,preference:[monaco.editor.ContentWidgetPositionPreference.EXACT]}}};uEe(ca.el),this.monaco_editor.addContentWidget(ca),this.set_padding_bottom()}}toggle_step_into_button(P){this.step_into_button!=null&&this.step_into_button.classList.toggle("display-none",lEe(P)==null)}focus_value_explorer(P){this.value_explorer!=null&&(this.value_explorer.return_to=P,this.value_explorer.content.focus({preventScroll:!0}))}set_keyboard_handler(P){if(P!=null&&(localStorage.keyboard=P),P=="vim"){this.vimMode=pte.initVimMode(this.monaco_editor);let Q=pte.VimMode.Vim;Q.mapCommand("gd","motion","goToDefinition",{},{context:"normal"}),Q.defineMotion("goToDefinition",()=>{this.monaco_editor.trigger("keyboard","editor.action.revealDefinition",{})}),Q.map("jj","","insert")}else this.vimMode?.dispose(),delete this.vimMode}init_keyboard(){this.set_keyboard_handler(localStorage.keyboard);let P="0_custom";this.monaco_editor.addCommand(monaco.KeyCode.F1,()=>this.focus_value_explorer()),this.monaco_editor.addAction({id:"focus_value_explorer",label:"Focus value inspector",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyCode.F1],precondition:"has_value_explorer",run:()=>this.focus_value_explorer()}),this.monaco_editor.addAction({id:"jump_here",label:"Jump here",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter],precondition:"has_value_explorer",run:()=>As("jump_here")}),this.monaco_editor.addAction({id:"run",label:"Run",contextMenuGroupId:P,contextMenuOrder:0,keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter],precondition:"!has_value_explorer",run:()=>As("reload_app_window_and_run_code")}),monaco.editor.addKeybindingRule({keybinding:monaco.KeyMod.CtrlCmd|monaco.KeyCode.F12,command:"editor.action.revealDefinition"});for(let Q of[monaco.KeyCode.F2,monaco.KeyCode.F3,monaco.KeyCode.F4])monaco.editor.addKeybindingRule({keybinding:Q,command:null});this.monaco_editor.addAction({id:"step_into",label:"Step into function call",contextMenuGroupId:P,contextMenuOrder:3,keybindings:[monaco.KeyCode.F11],run:()=>As("step_into")}),this.monaco_editor.addAction({id:"step_out",label:"Step out of current function",contextMenuGroupId:P,contextMenuOrder:4,keybindings:[monaco.KeyCode.F11|monaco.KeyMod.Shift],run:()=>As("calltree.arrow_left")}),this.monaco_editor.addAction({id:"expand_selection",label:"Expand selection",contextMenuGroupId:P,contextMenuOrder:1,keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyK,monaco.KeyMod.CtrlCmd|monaco.KeyCode.UpArrow],run:()=>As("eval_selection",this.get_cursor_position(),!0)}),this.monaco_editor.addAction({id:"collapse_selection",label:"Collapse selection",contextMenuGroupId:P,contextMenuOrder:2,keybindings:[monaco.KeyMod.CtrlCmd|monaco.KeyCode.KeyJ,monaco.KeyMod.CtrlCmd|monaco.KeyCode.DownArrow],run:()=>As("eval_selection",this.get_cursor_position(),!1)})}set_markers(P,Q,ae){let Ee=this.get_session(P),Oe=this.markers.get(Ee);Oe==null&&(Oe={},this.markers.set(Ee,Oe)),Oe[Q]==null?Oe[Q]=this.monaco_editor.createDecorationsCollection(ae):Oe[Q].set(ae)}clear_markers(P,Q){let ae=this.get_session(P),Oe=this.markers.get(ae)?.[Q];Oe?.clear()}get_cursor_position(){return this.monaco_editor.getModel().getOffsetAt(this.monaco_editor.getPosition())}set_cursor_position(P){if(P==null)throw new Error("illegal state");this.is_typing||this.supress_change_selection(()=>{let Q=this.monaco_editor.getModel().getPositionAt(P);this.monaco_editor.setPosition(Q),this.monaco_editor.revealPosition(Q)})}getFontFamily(){return this.monaco_editor.getOption(monaco.editor.EditorOption.fontFamily)}getLineHeight(){return this.monaco_editor.getOption(monaco.editor.EditorOption.lineHeight)+"px"}make_resizable(){let P=()=>{this.editor_container.style.height=localStorage.editor_height+"vh"},Q=new Date().getTime();window.addEventListener("resize",()=>{Q=new Date().getTime()}),localStorage.editor_height!=null&&P();let ae=!0;new ResizeObserver(Ee=>{if(ae){ae=!1;return}if(new Date().getTime()-Q<100)return;let Oe=this.editor_container.offsetHeight/window.innerHeight*100;localStorage.editor_height=Oe,setTimeout(P,0)}).observe(this.editor_container)}};var pze="scratch.js";function fW(){let x=localStorage.scratch_files,P;return x==null?P=[{kind:"file",name:pze,path:"scratch/"+pze}]:P=JSON.parse(x),{kind:"directory",path:"scratch",children:P}}function EL(){let x=fW();return{...x,children:x.children.map(P=>({...P,contents:ebt(P.path)}))}}function IG(x){localStorage.scratch_files=JSON.stringify(x)}function ebt(x){return localStorage[x]??""}function pEe(x,P){localStorage[x]=P}function fze(x,P){let Q="New file name",ae=Q;for(;;){if(P=prompt(ae,P),P==null)return null;if(x.find(Ee=>Ee.name==P)!=null){ae=`File with such name already exists +`+Q;continue}if(!/\.(js|ts)[x]?$/.test(P)){ae=`Must have a .js(x) or .ts(x) extension +`+Q;continue}return P}}function mze(){let x=fW().children,P=fze(x);if(P==null)return null;let Q={kind:"file",name:P,path:"scratch/"+P};return x.unshift(Q),IG(x),Q}function _ze(x,P){let Q=fW().children,ae,Ee,Oe=0;for(;ae=x+(Oe==0?"":" "+Oe),Ee="scratch/"+ae,Q.find(dt=>dt.path==Ee)!=null;)Oe++;return Q.unshift({kind:"file",name:ae,path:Ee}),pEe(Ee,P),IG(Q),EL()}function hze(x){let P=fW().children;return P.length==1?(alert("Cannot remove the only scratch file"),!1):(P=P.filter(Q=>Q.path!=x),delete localStorage[x],IG(P),!0)}function gze(x){let P=fW().children,Q=P.find(Ee=>Ee.path==x),ae=fze(P,Q.name);return ae==null?null:(vze(Q,ae),IG(P),Q)}function yze(x,P){let Q=fW().children,ae=Q.find(zt=>zt.path==x),Ee=/\.(js|ts)(x)?$/,dt=Ee.exec(ae.name)[2],Mt=(P?".ts":".js")+(dt??""),Ft=ae.name.replace(Ee,Mt);return vze(ae,Ft),IG(Q),ae}function vze(x,P){let Q=x.path;x.name=P,x.path="scratch/"+P,localStorage[x.path]=localStorage[Q]??"",delete localStorage[Q]}function zte(x){let P=EL();As("load_scratch_dir",P,x)}var tbt=x=>x.endsWith(".htm")||x.endsWith(".html"),bze=x=>x.endsWith(".js")||x.endsWith(".ts")||x.endsWith(".mjs")||x.endsWith(".jsx")||x.endsWith(".tsx"),Bte=class{constructor(P,Q){this.ui=P,this.el=cr("dialog","panel files_container"),this.active_tab=Q.current_module.startsWith("scratch/")?0:1,this.render(Q),this.el.addEventListener("click",ae=>{let Ee=this.el.getBoundingClientRect();Ee.top<=ae.clientY&&ae.clientY<=Ee.bottom&&Ee.left<=ae.clientX&&ae.clientX<=Ee.right||this.el.close()}),this.el.addEventListener("close",()=>{P.editor.focus()})}change_html_file(P){As("change_html_file",P.target.value)}render(P){this.file_to_el=new Map;let Q=gbe(P),ae=cr("div","file_tabs",cr("a",{href:"javascript: void(0)",class:"tab",click:this.set_active_tab.bind(this,0)},"Scratch files"),cr("a",{href:"javascript: void(0)",class:"tab "+(Q?" ":"disabled"),click:Q?this.set_active_tab.bind(this,1):()=>null},cr("span","","Local filesystem"),cr("a",{href:"javascript: void(0)",class:"file_access",click:this.change_filesystem_access.bind(this,Q)},Q?"Revoke access":"Grant access"))),Ee=this.render_scratch_files(P),Oe=this.render_local_files(P);if(this.el.children.length==0)this.el.appendChild(ae),this.el.appendChild(Ee),Oe!=null&&this.el.appendChild(Oe),this.tabs=ae,this.scratch_files=Ee,this.local_files=Oe;else{this.el.replaceChild(ae,this.tabs),this.tabs=ae,this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe),this.local_files!=null&&Oe==null?(this.el.removeChild(this.local_files),this.local_files=null):this.local_files==null&&Oe!=null&&(this.el.appendChild(Oe),this.local_files=Oe);for(let[dt,Mt]of[[this.scratch_files,Ee],[this.local_files,Oe]]){if(dt==null||dt==Mt)break;dt.replaceChild(Mt.getElementsByClassName("file_actions")[0],dt.getElementsByClassName("file_actions")[0]),dt.getElementsByClassName("files")[0].replaceChildren(...Mt.getElementsByClassName("files")[0].children)}}this.render_active_tab()}set_active_tab(P){this.active_tab=P,this.render_active_tab()}render_active_tab(){[...this.tabs.children].forEach((P,Q)=>{P.classList.toggle("active",Q==this.active_tab)}),[this.scratch_files,this.local_files].forEach((P,Q)=>{P?.classList.toggle("hidden",Q!=this.active_tab)})}render_scratch_files(P){let Q=cr("div","file_actions",cr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_scratch_file.bind(this,!1)},"New file"),cr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),cr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return cr("div","file_tab_container",Q,cr("div","files",P.project_dir.scratch_files.children.map(ae=>this.render_file(ae,P))))}render_local_files(P){if(!gbe(P))return null;let Q=cr("div","file_actions",cr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!1)},"New file"),cr("a",{class:"file_action",href:"javascript: void(0)",click:this.create_local_file.bind(this,!0)},"New dir"),cr("a",{class:"file_action",href:"javascript: void(0)",click:this.remove_file.bind(this)},"Remove file"),cr("a",{class:"file_action rename_file",href:"javascript: void(0)",click:this.rename_file.bind(this)},"Rename file"));return cr("div","file_tab_container",Q,cr("div","files",this.render_file(P.project_dir.local_files,P)))}render_current_module(P){this.current_file=P,this.active_el.querySelector(".file_title").classList.remove("active"),this.active_el=this.file_to_el.get(P),this.active_el.querySelector(".file_title").classList.add("active"),this.el.querySelector(".rename_file").classList.toggle("disabled",!P.startsWith("scratch/"))}render_select_entrypoint(P,Q){return null}render_file(P,Q){let ae=cr("div","file",cr("div",{class:"file_title"+(P.path==Q.current_module?" active":""),click:Ee=>this.on_click(Ee,P)},cr("span","icon",P.kind=="directory"?"\u{1F4C1}":"\xA0"),P.name,this.render_select_entrypoint(P,Q)),P.children==null?null:P.children.map(Ee=>this.render_file(Ee,Q)));return this.file_to_el.set(P.path,ae),P.path==Q.current_module&&(this.active_el=ae,this.current_file=P.path),ae}change_filesystem_access(P,Q){Q.stopPropagation(),P?(Sze(),this.set_active_tab(0)):(Eze(),this.set_active_tab(1))}create_scratch_file(){let P=mze();P!=null&&zte(P.path)}async remove_file(){if(this.current_file=="local"){alert("Cannot delete root directory");return}let P=`Are you sure you want to delete this file? +Path: `+gv(this.current_file);if(confirm(P))if(this.current_file.startsWith("local/")){await C4e(gv(this.current_file));let Q=await mL(!1);As("load_local_dir",Q)}else{if(!hze(this.current_file))return;zte(EL().children[0].path)}}async rename_file(){if(this.current_file.startsWith("scratch/")){let P=gze(this.current_file);if(P==null)return;As("load_scratch_dir",EL(),P.path),zte(P.path)}else{if(this.current_file=="local"){alert("Cannot rename root directory");return}let P=zt=>zt.path==this.current_file?zt:zt.children==null?null:wbe(zt.children,Yn=>P(Yn)),Q=P(yv().project_dir.local_files),ae=Q.kind=="directory",Ee=prompt("Enter new name",Q.name);if(Ee==null)return;let{ok:Oe,message:dt}=await N4e(gv(this.current_file),Ee,ae);if(!Oe){alert(dt);return}let Mt=await mL(!1),Ft=Q.path.split("/").slice(0,-1).join("/")+"/"+Ee;if(ae){let zt=yv().entrypoint;zt.startsWith(Q.path)?As("create_local_file",Mt,zt.replace(Q.path,Ft)):As("load_local_dir",Mt),this.render_current_module(Ft)}else As("create_local_file",Mt,Ft)}}change_use_ts(P){let Q=yv().current_module,ae=yze(Q,P);zte(ae.path)}async create_local_file(P){let Q=prompt(`Enter ${P?"directory":"file"} name`);if(Q==null)return;let ae=yv().project_dir.local_files,Ee,Oe,dt=this.current_file.startsWith("scratch/")?ae.path:this.current_file,Mt=(Yn,Jr)=>Yn.path==dt?[Yn,Jr]:Yn.children==null?null:wbe(Yn.children,ti=>Mt(ti,Yn));if([Oe,Ee]=Mt(ae),Oe.kind=="directory")Ee=Oe;else if(Ee==null)throw new Error("illegal state");let Ft=Ee.path+"/"+Q;await R4e(gv(Ft),P);let zt=await mL(!1);P?(As("load_local_dir",zt),this.render_current_module(Ft)):As("create_local_file",zt,Ft)}on_click(P,Q){P.stopPropagation(),Q.kind!="directory"&&(Q.path.startsWith("scratch/")||bze(Q.path))&&As("change_entrypoint",Q.path),this.render_current_module(Q.path)}};var Gte=class{constructor(P,Q){this.ui=P,this.container=Q,this.container.addEventListener("keydown",ae=>{ae.key=="r"&&(ae.ctrlKey||ae.metaKey)||ae.preventDefault(),ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="F1"&&this.ui.editor.focus_value_explorer(this.container),ae.key=="e"&&As("calltree.select_error"),ae.key=="Enter"&&(ae.ctrlKey||ae.metaKey?As("calltree.select_return_value"):this.ui.editor.focus()),(ae.key=="ArrowDown"||ae.key=="j")&&As("calltree.arrow_down"),(ae.key=="ArrowUp"||ae.key=="k")&&As("calltree.arrow_up"),(ae.key=="ArrowLeft"||ae.key=="h")&&As("calltree.arrow_left"),(ae.key=="ArrowRight"||ae.key=="l")&&As("calltree.arrow_right")})}on_click_node(P,Q){P.target.classList.contains("expand_icon")?As("calltree.select_and_toggle_expanded",Q):As("calltree.select_node",Q)}clear_calltree(){this.container.innerHTML="",this.node_to_el=new Map,this.state=null}render_loop(P){let{ok:Q,error:ae}=lI(P),Ee;P.code.kind==Ye.SyntaxKind.WhileStatement&&(Ee="while"),P.code.kind==Ye.SyntaxKind.DoStatement&&(Ee="do while"),(P.code.kind==Ye.SyntaxKind.ForInStatement||P.code.kind==Ye.SyntaxKind.ForOfStatement||P.code.kind==Ye.SyntaxKind.ForStatement)&&(Ee="for");let Oe=P.has_more_children?P.children_count:P.children?.length??0;return cr("span","call_header "+(Q?"":"error"),Ee+" loop("+Oe+")",Q?null:[": ",Ig(ae)])}render_loop_iteration(P,Q){let{ok:ae,error:Ee}=lI(P),Oe=Q.children.indexOf(P),dt=null;(P.code.kind==Ye.SyntaxKind.ForOfStatement||P.code.kind==Ye.SyntaxKind.ForInStatement)&&(dt=P.code.initializer.getText()+" = "+Ig(P.args[0]));let Mt=gte(P.code);return Mt!=null&&(dt=Mt.getText()+" = "+Ig(P.args[0])),cr("span","call_header "+(ae?"":"error"),cr("span","loop_step","step "+Oe,(dt!=null||!ae)&&":"),dt,ae?"":cr("span","call_header error",dt!=null&&":\xA0",Ig(Ee)))}render_node(P,Q){let ae=this.state.calltree_node_is_expanded[P.id],Ee=cr("div","callnode",cr("div",{class:"call_el",click:Oe=>this.on_click_node(Oe,P.id)},yL(P)?ae&&P.has_more_children?cr("div","spinner"):cr("span","expand_icon",ae?"\u25BC":"\u25B6"):cr("span","expand_icon_placeholder","\xA0"),P.toplevel?cr("span",P.ok?"":"call_header error",cr("i","","toplevel: "+gv(P.module)),P.ok?"":cr("span","",":\xA0",Ig(P.error))):P.fn.__type=="loop_iteration"?this.render_loop_iteration(P,Q):P.code!=null&&gf(P.code)?this.render_loop(P):cr("span","call_header "+(kC(P)?"error":"")+(P.fn.is_hosted?"":" native"),P.is_new?"new ":"",P.context==null||P.is_new?"":cr("span","",typeof P.context=="object"?P.context.constructor?.name||"":Ig(P.context),"."),P.fn.name==""?"anonymous":P.fn.name,"(",...bL(P.args.map(Oe=>Ig(Oe))),")",": ",P.ok?Ig(P.value):Ig(P.error))),P.children==null||!ae?null:P.children.map(Oe=>this.render_node(Oe,P)));return this.node_to_el.set(P.id,Ee),Ee.is_expanded=ae,Ee}render_active(P,Q){let ae=this.node_to_el.get(P.id).getElementsByClassName("call_el")[0];Q?ae.classList.add("active"):ae.classList.remove("active")}reveal_current_calltree_node(){pW(this.container,this.node_to_el.get(this.state.current_calltree_node.id).getElementsByClassName("call_el")[0])}render_select_node(P,Q){if(P!=null&&this.render_active(P.current_calltree_node,!1),this.state=Q,this.render_active(this.state.current_calltree_node,!0),P?.current_calltree_node!=Q.current_calltree_node){let ae=this.container.scrollLeft;this.reveal_current_calltree_node(),this.container.scrollLeft=ae}}render_expand_node(P,Q){this.state=Q,this.do_render_expand_node(P.calltree_node_is_expanded,Q.calltree_node_is_expanded,vy(P),vy(Q));let ae=f0(P),Ee=f0(Q);if(ae!=null){for(let Oe=0;Oethis.render_node(Q))))))}};var Vte=class{constructor(P,Q){this.el=Q,this.ui=P,this.el.addEventListener("keydown",ae=>{ae.key=="Escape"&&this.ui.editor.focus(),ae.key=="Enter"&&(this.ui.editor.focus(),ae.preventDefault()),ae.key=="F1"&&this.ui.editor.focus_value_explorer(this.el),(ae.key=="ArrowDown"||ae.key=="j")&&(ae.preventDefault(),As("calltree.navigate_logs_increment",1)),(ae.key=="ArrowUp"||ae.key=="k")&&(ae.preventDefault(),As("calltree.navigate_logs_increment",-1))})}rerender_logs(P,Q){this.el.innerHTML="",this.render_logs(P,null,Q)}render_logs(P,Q,ae){for(let Ee=Q==null?0:Q.logs.length;EeAs("calltree.navigate_logs_position",Ee)},cr("a",{href:"javascript: void(0)"},dt+": "+(Oe.toplevel?"toplevel":"fn "+(Oe.parent_name==""?"anonymous":Oe.parent_name))+":")," ",...bL(Oe.args.map(Ft=>Ig(Ft)))))}if(Q?.log_position!=ae.log_position&&(Q?.logs==ae.logs&&Q?.log_position!=null&&this.el.children[Q.log_position].classList.remove("active"),ae.log_position!=null)){let Ee=this.el.children[ae.log_position];Ee.classList.add("active"),pW(this.el,Ee)}}};var jte=class{constructor(P,Q){this.el=Q,this.ui=P,this.el.addEventListener("keydown",ae=>{(ae.key=="Escape"||ae.key=="Enter")&&(this.ui.editor.focus(),ae.preventDefault())})}clear(){this.is_rendered&&(this.el.innerHTML="",this.is_rendered=!1,this.io_trace_length=0,this.io_trace_index=void 0)}render_io_trace(P,Q){if(Q&&(this.is_rendered=!1),this.is_rendered)return;this.is_rendered=!0,this.el.innerHTML="",this.io_trace_length=P.io_trace.length,this.io_trace_index=P.rt_cxt.io_trace_index;let ae=P.io_trace,Ee=P.rt_cxt.io_trace_index??ae.length;for(let Oe=0;Oe ")));else if(dt.type=="call")this.el.appendChild(cr("div","call_header "+(kC(dt)?"error ":"")+(Mt?"":"native "),dt.name,"(",...bL(dt.args.map(Ft=>Ig(Ft))),"): ",dt.ok?Ig(dt.value):Ig(dt.error)));else throw new Error("unknown item type")}}};var nbt="leporello-js",Tze=`https://firebasestorage.googleapis.com/v0/b/${nbt}.appspot.com/o/`;async function rbt(x){let P=new TextEncoder().encode(x),Q=await crypto.subtle.digest("SHA-256",P);return Array.from(new Uint8Array(Q)).map(Oe=>Oe.toString(16).padStart(2,"0")).join("")}async function Aze(x,P){let Q=(await rbt(P)).slice(0,40),ae=new Blob([P],{type:"text/plain"}),Ee=new FormData;Ee.append("file",ae);let Oe=await fetch(Tze+Q,{method:"POST",body:Ee});if(!Oe.ok){let Ft=(await Oe.json())?.error?.message;throw new Error("Failed to upload: "+Ft)}let dt=new URL(window.location);return dt.searchParams.set("share_id",Q),dt.searchParams.set("share_name",x),dt.toString()}async function ibt(x){let P=await fetch(Tze+x+"?alt=media");if(!P.ok){let ae=(await P.json())?.error?.message;throw new Error("Failed to fetch: "+ae)}return P.text()}async function Ize(){let x=new URLSearchParams(window.location.search),P=x.get("share_id");if(P==null)return null;let Q=x.get("share_name")??"";Q.trim()==""&&(Q="Share");let ae=new URL(window.location);ae.searchParams.delete("share_id"),ae.searchParams.delete("share_name"),history.replaceState(null,null,ae.href);try{let Ee=await ibt(P);return{name:Q,contents:Ee}}catch(Ee){return alert(Ee.message),null}}var Ute=class{constructor(){let Q=yv().current_module.split("/").at(-1);this.el=cr("dialog","share_dialog",this.upload_begin=cr("p","",cr("p","","Uploads your file to the cloud so you can share it with others."),cr("ul","",cr("li","","Please ensure that no personal data or confidential information is included."),cr("li","","Avoid including copyrighted materials.")),cr("span",{style:"color: red"},"Caution: Once shared, files cannot be deleted."),cr("div","share_name",cr("label","","Public file name"),this.share_name=cr("input",{type:"text",value:Q})),this.upload_buttons=cr("p",{style:"text-align: center"},cr("button",{class:"upload_button",click:()=>this.upload()},"Upload"),this.cancel_button=cr("button",{style:"margin-left: 1em",click:()=>this.el.close()},"Cancel"))),this.uploading=cr("span",{style:"display: none"},"Uploading..."),this.upload_finish=cr("p",{style:"display: none"},cr("p","",cr("p",{style:` text-align: center; margin-bottom: 1em; font-size: 1.2em - `},"Upload successful"),this.url_share=Mr("input",{type:"text",readonly:!0,style:"min-width: 30em"}),this.copy_button=Mr("button",{click:()=>this.copy(),style:"margin-left: 1em"},"Copy URL")),this.close_button=Mr("button",{style:"display: block; margin: auto",click:()=>this.el.close()},"Close"))),this.share_name.select(),this.el.addEventListener("close",()=>{this.el.remove()})}async upload(){this.uploading.style.display="",this.upload_begin.style.display="none";try{let P=yv(),Q=await bze(this.share_name.value,P.files[P.current_module]);this.url_share.value=Q,this.upload_finish.style.display=""}catch(P){alert(P.message),this.upload_begin.style.display=""}finally{this.uploading.style.display="none"}}copy(){this.url_share.select(),document.execCommand("copy")}};var Jte=class{constructor(P,Q){this.open_app_window=this.open_app_window.bind(this),this.files=new yte(this,Q),this.tabs={},this.debugger={},P.appendChild(this.root=Mr("div","root",this.editor_container=Mr("div","editor_container"),Mr("div","bottom",this.debugger_container=Mr("div","debugger",this.debugger_loaded=Mr("div","debugger_wrapper",Mr("div","tabs",this.tabs.calltree=Mr("div","tab",Mr("a",{click:()=>this.set_active_tab("calltree"),href:"javascript: void(0)"},"Call tree (F2)")),this.tabs.logs=Mr("div","tab",Mr("a",{click:()=>this.set_active_tab("logs"),href:"javascript: void(0)"},"Logs (F3)")),this.tabs.io_trace=Mr("div","tab",Mr("a",{click:()=>this.set_active_tab("io_trace"),href:"javascript: void(0)"},"IO trace (F4)"))),this.debugger.calltree=Mr("div",{class:"tab_content",tabindex:0}),this.debugger.logs=Mr("div",{class:"tab_content logs",tabindex:0}),this.debugger.io_trace=Mr("div",{class:"tab_content io_trace",tabindex:0})),this.debugger_loading=Mr("div","debugger_wrapper",this.debugger_loading_message=Mr("div"))),this.problems_container=Mr("div",{class:"problems_container",tabindex:0},this.problems=Mr("div"))),this.files.el,this.statusbar=Mr("div","statusbar",this.loading_spinner=Mr("div","spinner"),this.status=Mr("div","status"),this.current_module=Mr("div","current_module"),Mr("a",{class:"statusbar_action first",href:"javascript: void(0)",click:()=>this.clear_io_trace()},"Clear IO trace (F6)"),Mr("a",{class:"statusbar_action open_app_window_button",href:"javascript: void(0)",click:this.open_app_window},"(Re)open app window (F7)",this.open_app_window_tooltip=Mr("div",{class:"open_app_window_tooltip"},"Click here to open app window")),Mr("div","options",Mr("label",{for:"standard"},Mr("input",{id:"standard",type:"radio",name:"keyboard",checked:localStorage.keyboard=="standard"||localStorage.keyboard==null,change:()=>{this.editor.set_keyboard_handler("standard")}}),"Standard"),Mr("label",{for:"vim"},Mr("input",{id:"vim",type:"radio",name:"keyboard",checked:localStorage.keyboard=="vim",change:()=>{this.editor.set_keyboard_handler("vim")}}),"VIM")),Mr("div","options use_ts",Mr("label",{for:"js"},Mr("input",{id:"js",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!1)}),"JavaScript"),Mr("label",{for:"ts"},Mr("input",{id:"ts",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!0)}),"TypeScript")),Mr("a",{class:"show_help",href:"javascript: void(0)",click:()=>this.help_dialog.showModal()},"Help"),Mr("a",{class:"github",href:"https://leporello.tech",target:"__blank"},"Website"),Mr("button",{class:"statusbar_button",click:()=>this.render_share_dialog()},"Share"),Mr("button",{class:"statusbar_button",click:()=>this.files.el.showModal()},"Files"),this.help_dialog=this.render_help()))),window.addEventListener("keydown",()=>this.clear_status(),!0),window.addEventListener("click",()=>this.clear_status(),!0),window.addEventListener("keydown",Ee=>{Ee.key=="F2"&&this.set_active_tab("calltree"),Ee.key=="F3"&&this.set_active_tab("logs"),Ee.key=="F4"&&this.set_active_tab("io_trace"),Ee.key=="F6"&&this.clear_io_trace(),Ee.key=="F7"&&this.open_app_window()}),this.editor=new hte(this,this.editor_container);let ae=document.querySelector(":root");ae.style.setProperty("--code-font-family",this.editor.getFontFamily()),ae.style.setProperty("--code-line-height",this.editor.getLineHeight()),this.calltree=new jte(this,this.debugger.calltree),this.logs=new Ute(this,this.debugger.logs),this.io_trace=new Hte(this,this.debugger.io_trace),this.render_current_module(Q.current_module),this.set_active_tab("calltree",!0),P.addEventListener("focusin",Ee=>{let Oe;this.editor_container.contains(document.activeElement)?this.editor.has_value_explorer()?Oe=!this.debugger_container.contains(this.editor.value_explorer.return_to):Oe=!0:Oe=!1,this.prev_is_focus_in_editor!=Oe&&(this.prev_is_focus_in_editor=Oe,Ite(yv(),Oe))})}set_active_tab(P,Q=!1){this.active_tab=P,Object.values(this.tabs).forEach(ae=>ae.classList.remove("active")),this.tabs[P].classList.add("active"),Object.values(this.debugger).forEach(ae=>ae.style.display="none"),this.debugger[P].style.display="block",P=="io_trace"&&this.io_trace.render_io_trace(yv(),!1),Q||this.debugger[P].focus(),P=="calltree"&&!Q&&(Ws("calltree.show_value_explorer"),this.calltree.reveal_current_calltree_node())}clear_io_trace(){Ws("clear_io_trace")}open_app_window(){this.toggle_open_app_window_tooltip(!1),localStorage.onboarding_open_app_window=!0,P4e(yv())}render_debugger_loading(P){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loaded.style="display: none",this.debugger_loading.style="",this.debugger_loading_message.innerText=P.run_state.status==tu.load_external_imports?"Loading external modules...":"Executing code..."}render_debugger(P){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loading.style="display: none",this.debugger_loaded.style="",this.calltree.render_calltree(P),this.logs.render_logs(P,null,P.logs)}render_io_trace(P){this.active_tab=="io_trace"?this.io_trace.render_io_trace(P,!0):this.io_trace.clear()}render_problems(P){this.debugger_container.style="display: none",this.problems_container.style="",this.problems.innerHTML="",P.forEach(Q=>{let Ee=this.editor.get_session(Q.module).getPositionAt(Q.index),Oe=gv(Q.module);this.problems.appendChild(Mr("div","problem",Mr("a",{href:"javascript:void(0)",click:()=>Ws("goto_problem",Q)},`${Oe}:${Ee.lineNumber}:${Ee.column} - ${Q.message}`)))})}set_status(P){for(let Q of this.statusbar.children)Q.classList.toggle("display-none",!0);this.status.classList.toggle("display-none",!1),this.status.innerText=P}clear_status(){for(let P of this.statusbar.children)P.classList.toggle("display-none",!1);this.status.innerText="",this.status.classList.toggle("display-none",!0)}render_current_module(P){this.clear_status(),this.current_module.innerText=gv(P);let Q=this.root.querySelector(".use_ts");if(P.startsWith("scratch/")){Q.style.visibility="visible";let ae=/\.(js|jsx)$/.test(P);this.root.querySelectorAll("[name=use_ts]").forEach(Ee=>{Ee.checked=Ee.id=="js"?ae:!ae})}else Q.style.visibility="hidden"}render_help(){let P=navigator.platform.toLowerCase().includes("mac")?"Cmd":"Ctrl",Q=[["Focus value inspector","F1"],["Navigate value inspector","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave value inspector","F1 or Esc"],["Focus call tree view","F2"],["Navigate call tree view","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave call tree view","F2 or Esc"],["Focus console logs","F3"],["Navigate console logs","\u2191 \u2193 or jk"],["Leave console logs","F3 or Esc"],["Focus IO trace","F4"],["Leave IO trace","F4 or Esc"],["Go to definition",P+"-F12","gd"],["Expand selection to eval expression","Ctrl-\u2193 or Ctrl-j"],["Collapse selection","Ctrl-\u2191 or Ctrl-k"],["Step into call","F11"],["Step out of call","Shift-F11"],["Jump to return statement (in call tree view)","Enter"],["Jump to function arguments (in call tree view)","a"],["Jump to error origin (in call tree view)","e"],["Clear IO trace","F6"],["(Re)open run window (F7)","F7"]];return Mr("dialog","help_dialog",Mr("table","help",Mr("thead","",Mr("th","","Action"),Mr("th","key","Standard"),Mr("th","key","VIM")),Mr("tbody","",Q.map(([ae,Ee,Oe])=>Mr("tr","",Mr("td","",ae),Mr("td",Oe==null?{class:"key spanned",colspan:2}:{class:"key"},Ee),Oe==null?null:Mr("td","key",Oe))))),Mr("form",{method:"dialog"},Mr("button",null,"Close")))}render_share_dialog(){let P=new Kte().el;this.root.appendChild(P),P.showModal()}toggle_open_app_window_tooltip(P){this.open_app_window_tooltip.classList.toggle("on",P)}};var ebt=x=>new globalThis.app_window.Function("url",` + `},"Upload successful"),this.url_share=cr("input",{type:"text",readonly:!0,style:"min-width: 30em"}),this.copy_button=cr("button",{click:()=>this.copy(),style:"margin-left: 1em"},"Copy URL")),this.close_button=cr("button",{style:"display: block; margin: auto",click:()=>this.el.close()},"Close"))),this.share_name.select(),this.el.addEventListener("close",()=>{this.el.remove()})}async upload(){this.uploading.style.display="",this.upload_begin.style.display="none";try{let P=yv(),Q=await Aze(this.share_name.value,P.files[P.current_module]);this.url_share.value=Q,this.upload_finish.style.display=""}catch(P){alert(P.message),this.upload_begin.style.display=""}finally{this.uploading.style.display="none"}}copy(){this.url_share.select(),document.execCommand("copy")}};var zC=navigator.platform.toLowerCase().includes("mac")?"\u2318":"Ctrl-",Hte=class{constructor(P,Q){this.open_app_window=this.open_app_window.bind(this),this.files=new Bte(this,Q),this.tabs={},this.debugger={},P.appendChild(this.root=cr("div","root",this.editor_container=cr("div","editor_container"),cr("div","bottom",this.debugger_container=cr("div","debugger",this.debugger_loaded=cr("div","debugger_wrapper",cr("div","tabs",[["Call tree","F2","calltree"],["Logs","F3","logs"],["IO trace","F4","io_trace"]].map(([Ee,Oe,dt])=>this.tabs[dt]=cr("a",{click:()=>this.set_active_tab(dt),href:"javascript: void(0)",class:"tab"},cr("span","tab_label",Ee),cr("span","hotkey_key",Oe)))),this.debugger.calltree=cr("div",{class:"tab_content",tabindex:0}),this.debugger.logs=cr("div",{class:"tab_content logs",tabindex:0}),this.debugger.io_trace=cr("div",{class:"tab_content io_trace",tabindex:0})),this.debugger_loading=cr("div","debugger_wrapper",this.debugger_loading_message=cr("div"))),this.problems_container=cr("div",{class:"problems_container",tabindex:0},this.problems=cr("div"))),this.files.el,this.statusbar=cr("div","statusbar",this.status=cr("div","status"),cr("div","statusbar_controls",cr("div","statusbar_module_with_spinner",this.loading_spinner=cr("div","spinner"),this.current_module=cr("div","current_module")),cr("div","options",[!0,!1].map(Ee=>{let Oe="run_on_edit"+Ee;return cr("label",{for:Oe},cr("input",{id:Oe,type:"radio",name:"run_on_edit",checked:Ee==Q.run_on_edit,change(dt){let Mt=Ee==dt.target.checked;localStorage.run_on_edit=Mt,As("change_run_on_edit",Mt)}}),"Run on",Ee?" edit":cr("span",{class:"hotkey_key",style:"margin-right: 0.2em"},zC+"Enter"))})),cr("div","options use_ts",cr("label",{for:"js"},cr("input",{id:"js",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!1)}),"JavaScript"),cr("label",{for:"ts"},cr("input",{id:"ts",type:"radio",name:"use_ts",change:this.files.change_use_ts.bind(this.files,!0)}),"TypeScript")),cr("div","options",cr("label",{for:"standard"},cr("input",{id:"standard",type:"radio",name:"keyboard",checked:localStorage.keyboard=="standard"||localStorage.keyboard==null,change:()=>{this.editor.set_keyboard_handler("standard")}}),"Standard"),cr("label",{for:"vim"},cr("input",{id:"vim",type:"radio",name:"keyboard",checked:localStorage.keyboard=="vim",change:()=>{this.editor.set_keyboard_handler("vim")}}),"VIM")),cr("span","statusbar_actions",cr("span","",cr("a",{href:"javascript: void(0)",click:()=>this.clear_io_trace()},"Clear IO trace"),cr("span","hotkey_key","F6")),cr("span","",cr("a",{class:"open_app_window_button",href:"javascript: void(0)",click:this.open_app_window},"(Re)open app window",this.open_app_window_tooltip=cr("div",{class:"open_app_window_tooltip"},"Click here to open app window")),cr("span","hotkey_key","F7"))),cr("span","statusbar_links",cr("a",{class:"show_help",href:"javascript: void(0)",click:()=>this.help_dialog.showModal()},"Help"),cr("a",{class:"website",href:"https://leporello.tech",target:"__blank"},"Website")),cr("span","",cr("button",{class:"statusbar_button",click:()=>this.render_share_dialog()},"Share"),cr("button",{class:"statusbar_button",click:()=>this.files.el.showModal()},"Files"),this.help_dialog=this.render_help()))))),window.addEventListener("keydown",()=>this.clear_status(),!0),window.addEventListener("click",()=>this.clear_status(),!0),window.addEventListener("keydown",Ee=>{Ee.key=="F2"&&this.set_active_tab("calltree"),Ee.key=="F3"&&this.set_active_tab("logs"),Ee.key=="F4"&&this.set_active_tab("io_trace"),Ee.key=="F6"&&this.clear_io_trace(),Ee.key=="F7"&&this.open_app_window()}),this.editor=new Fte(this,this.editor_container);let ae=document.querySelector(":root");ae.style.setProperty("--code-font-family",this.editor.getFontFamily()),ae.style.setProperty("--code-line-height",this.editor.getLineHeight()),this.calltree=new Gte(this,this.debugger.calltree),this.logs=new Vte(this,this.debugger.logs),this.io_trace=new jte(this,this.debugger.io_trace),this.render_current_module(Q.current_module),this.set_active_tab("calltree",!0),P.addEventListener("focusin",Ee=>{let Oe;this.editor_container.contains(document.activeElement)?this.editor.has_value_explorer()?Oe=!this.debugger_container.contains(this.editor.value_explorer.return_to):Oe=!0:Oe=!1,this.prev_is_focus_in_editor!=Oe&&(this.prev_is_focus_in_editor=Oe,yte(yv(),Oe))})}set_active_tab(P,Q=!1){this.active_tab=P,Object.values(this.tabs).forEach(ae=>ae.classList.remove("active")),this.tabs[P].classList.add("active"),Object.values(this.debugger).forEach(ae=>ae.style.display="none"),this.debugger[P].style.display="block",P=="io_trace"&&this.io_trace.render_io_trace(yv(),!1),Q||this.debugger[P].focus(),P=="calltree"&&!Q&&(As("calltree.show_value_explorer"),this.calltree.reveal_current_calltree_node())}clear_io_trace(){As("clear_io_trace")}open_app_window(){this.toggle_open_app_window_tooltip(!1),localStorage.onboarding_open_app_window=!0,k4e(yv())}render_debugger_loading(P){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loaded.style="display: none",this.debugger_loading.style="",P.run_state.status==Xc.parse||(P.run_state.status==Xc.parse_finished?(this.debugger_loading_message.innerHTML="",this.debugger_loading_message.appendChild(cr("a",{class:"run_button",href:"javascript: void(0)",click:()=>As("reload_app_window_and_run_code")},cr("span","run_button_label","Run"),cr("span","hotkey_key",zC+"Enter")))):this.debugger_loading_message.innerText=P.run_state.status==Xc.load_external_imports?"Loading external modules...":"Executing code...")}render_debugger(P){this.debugger_container.style="",this.problems_container.style="display: none",this.debugger_loading.style="display: none",this.debugger_loaded.style="",this.calltree.render_calltree(P),this.logs.render_logs(P,null,P.logs)}render_io_trace(P){this.active_tab=="io_trace"?this.io_trace.render_io_trace(P,!0):this.io_trace.clear()}render_problems(P){this.debugger_container.style="display: none",this.problems_container.style="",this.problems.innerHTML="",P.forEach(Q=>{let Ee=this.editor.get_session(Q.module).getPositionAt(Q.index),Oe=gv(Q.module);this.problems.appendChild(cr("div","problem",cr("a",{href:"javascript:void(0)",click:()=>As("goto_problem",Q)},`${Oe}:${Ee.lineNumber}:${Ee.column} - ${Q.message}`)))})}set_status(P){for(let Q of this.statusbar.children)Q.classList.toggle("display-none",!0);this.status.classList.toggle("display-none",!1),this.status.innerText=P}clear_status(){for(let P of this.statusbar.children)P.classList.toggle("display-none",!1);this.status.innerText="",this.status.classList.toggle("display-none",!0)}render_current_module(P){this.clear_status(),this.current_module.innerText=gv(P);let Q=this.root.querySelector(".use_ts");if(P.startsWith("scratch/")){Q.style.visibility="visible";let ae=/\.(js|jsx)$/.test(P);this.root.querySelectorAll("[name=use_ts]").forEach(Ee=>{Ee.checked=Ee.id=="js"?ae:!ae})}else Q.style.visibility="hidden"}render_help(){let P=[["Focus value inspector","F1"],["Navigate value inspector","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave value inspector","Esc"],["Focus call tree view","F2"],["Navigate call tree view","\u2190 \u2192 \u2191 \u2193 or hjkl"],["Leave call tree view","Esc"],["Focus console logs","F3"],["Navigate console logs","\u2191 \u2193 or jk"],["Leave console logs","Esc"],["Focus IO trace","F4"],["Leave IO trace","F4 or Esc"],["Go to definition",zC+"F12","gd"],["Expand selection to eval expression",`${zC}\u2193 or ${zC}j`],["Collapse selection",`${zC}\u2191 or ${zC}k`],["Step into call","F11"],["Step out of call","Shift-F11"],["Jump to return statement or error (in call tree view)",zC+"Enter"],["Jump to error origin (in call tree view)","e"],["Clear IO trace","F6"],["(Re)open run window (F7)","F7"]];return cr("dialog","help_dialog",cr("table","help",cr("thead","",cr("th","","Action"),cr("th","key","Standard"),cr("th","key","VIM")),cr("tbody","",P.map(([Q,ae,Ee])=>cr("tr","",cr("td","",Q),cr("td",Ee==null?{class:"key spanned",colspan:2}:{class:"key"},ae),Ee==null?null:cr("td","key",Ee))))),cr("form",{method:"dialog"},cr("button",null,"Close")))}render_share_dialog(){let P=new Ute().el;this.root.appendChild(P),P.showModal()}toggle_open_app_window_tooltip(P){this.open_app_window_tooltip.classList.toggle("on",P)}};var obt=x=>new globalThis.app_window.Function("url",` return import(url) - `)(x),tbt=async x=>{let P=x.run_state.external_imports,Q=await Promise.allSettled(P.map(Ee=>ebt(/^\w+:\/\//.test(Ee)?Ee:"https://esm.sh/"+Ee))),ae=Object.fromEntries(Q.map((Ee,Oe)=>[P[Oe],{ok:Ee.status=="fulfilled",error:Ee.reason,module:Ee.value}]));Ws("external_imports_loaded",x,ae)},Tze=x=>{x.run_state.status==tu.parse&&$4e().then(P=>Ws("parse_finished",!0,P))},nbt=(x,P)=>{x.editor.clear_markers(P,"coloring")},rbt=(x,P)=>{nbt(x,P.current_module)},Sze=(x,P)=>{let Q=P.current_module,ae=x.editor.get_session(Q);x.editor.set_markers(Q,"coloring",v3e(P,Q).map(Ee=>{let Oe=ae.getPositionAt(Ee.index),dt=ae.getPositionAt(Ee.index+Ee.length);return{range:new monaco.Range(Oe.lineNumber,Oe.column,dt.lineNumber,dt.column),options:{shouldFillLineOnLineBreak:!0,className:Ee.result.ok?"evaluated_ok":"evaluated_error"}}}))},Aze=(x,P)=>{P.parse_result!=null&&(P.parse_result.ok||x.render_problems(P.parse_result.problems))},Ize=(x,P,Q)=>{Lbe(P.current_module,P.files[P.current_module]),Tze(P),x.editor.switch_session(P.current_module),Aze(x,P),Q!=null&&Q.with_app_window&&!localStorage.onboarding_open_app_window&&x.toggle_open_app_window_tooltip(!0)},xze=(x,P,Q,ae)=>{if(x!=P){if(x.project_dir!=P.project_dir&&Q.files.render(P),x.files!=P.files)for(let Ee in x.files)P.files[Ee]==null&&Y4e(Ee);if(x.current_module!=P.current_module&&(Q.files.render_current_module(P.current_module),localStorage.current_module=P.current_module,Q.render_current_module(P.current_module),Lbe(P.current_module,P.files[P.current_module])),x.entrypoint!=P.entrypoint&&(localStorage.entrypoint=P.entrypoint),x.html_file!=P.html_file&&(P.html_file==null?delete P.html_file:localStorage.html_file=P.html_file),x.current_module!=P.current_module&&(Q.editor.unembed_value_explorer(),Q.editor.switch_session(P.current_module,P.files[P.current_module])),hL(P)!=Q.editor.get_cursor_position()&&ae!="on_deferred_call"&&Q.editor.set_cursor_position(hL(P)),(x.run_state?.status!=P.run_state.status||P.run_state.status==tu.reload_app_window&&x.run_state.reload_counter!=P.run_state.reload_counter)&&(Tze(P),P.run_state.status==tu.reload_app_window&&Ebe(P),P.run_state.status==tu.load_external_imports&&tbt(P),P.run_state.status==tu.eval_modules&&P.run_state.promise.then(Ee=>{Ws("eval_modules_finished",P.execution_id,Ee)}),Q.loading_spinner.style.visibility=P.run_state.status==tu.eval_modules_finished||P.run_state.status==tu.reload_app_window_finished?"hidden":"initial"),x.parse_result!=P.parse_result){if(Aze(Q,P),x.parse_result?.is_external_imports_problems){let Ee=new Set(x.parse_result.problems.map(Oe=>Oe.module));for(let Oe of Ee){let dt=monaco.editor.getModel(monaco.Uri.file(Oe));dt!=null&&monaco.editor.setModelMarkers(dt,"is_external_imports_problems",[])}}if(P.parse_result.is_external_imports_problems){let Ee=new Map;for(let Oe of P.parse_result.problems){let dt=Ee.get(Oe.module);dt==null&&(dt=[],Ee.set(Oe.module,dt)),dt.push(Oe)}for(let[Oe,dt]of Ee.entries()){let Mt=monaco.editor.getModel(monaco.Uri.file(Oe));Mt!=null&&monaco.editor.setModelMarkers(Mt,"is_external_imports_problems",dt.map(zt=>{let wt=Mt.getPositionAt(zt.index),lr=Mt.getPositionAt(zt.index+zt.length);return{startColumn:wt.column,startLineNumber:wt.lineNumber,endColumn:lr.column,endLineNumber:lr.lineNumber,severity:monaco.MarkerSeverity.Error,message:zt.message}}))}}}if(x.parse_result!=P.parse_result&&!P.parse_result.ok&&rbt(Q,P),P.parse_result?.ok?x.calltree==null||x.execution_id!=P.execution_id?P.calltree==null?(Q.calltree.clear_calltree(),Q.render_debugger_loading(P)):(Q.render_debugger(P),Sze(Q,P),Q.logs.rerender_logs(P,P.logs),(x.io_trace!=P.io_trace||P.io_trace.length!=Q.io_trace.io_trace_length||P.rt_cxt!=null&&P.rt_cxt.io_trace_index!=Q.io_trace.io_trace_index)&&Q.render_io_trace(P)):(rI(x)==null&&rI(P)!=null&&Q.calltree.render_deferred_calls(P),P.io_trace.length!=Q.io_trace.io_trace_length&&Q.render_io_trace(P),(x.calltree!=P.calltree||x.calltree_node_is_expanded!=P.calltree_node_is_expanded)&&Q.calltree.render_expand_node(x,P),P.current_calltree_node!=x.current_calltree_node&&Q.calltree.render_select_node(x,P),x.colored_frames!=P.colored_frames&&Sze(Q,P),Q.logs.render_logs(P,x.logs,P.logs),(x.run_state.status!=P.run_state.status&&P.run_state.status=="eval_modules_finished"||(x.current_calltree_node!=P.current_calltree_node||x.calltree_node_is_expanded!=P.calltree_node_is_expanded)&&P.run_state.status=="eval_modules_finished")&&Ite(P,Q.is_focus_in_editor)):Q.calltree.clear_calltree(),x.selection_state!=P.selection_state){Q.editor.clear_markers(P.current_module,"selection");let Ee=P.selection_state?.node;if(Ee!=null){let Oe=Q.editor.get_session(P.current_module),dt=Oe.getPositionAt(Ee.index),Mt=Oe.getPositionAt(Ee.index+Ee.length);Q.editor.set_markers(P.current_module,"selection",[{range:new monaco.Range(dt.lineNumber,dt.column,Mt.lineNumber,Mt.column),options:{className:"selection"}}])}}x.value_explorer!=P.value_explorer&&(P.value_explorer==null?Q.editor.unembed_value_explorer():Q.editor.embed_value_explorer(P,P.value_explorer))}},Rze={set_focus:(x,P,Q)=>{Q.editor.focus()},set_status:(x,[P],Q)=>{Q.set_status(P)},save_to_localstorage(x,[P,Q]){localStorage[P]=Q},write:(x,[P,Q],ae,Ee)=>{if(P.startsWith("scratch/"))Fbe(P,Q);else if(P.startsWith("local/"))E4e(/local\/(.*)/.exec(P)[1],Q);else throw new Error("illegal state")}};var ibt=[{id:"github_api",name:"Github API",path:"github_api/index.js"},{id:"fibonacci",name:"Fibonacci numbers",path:"fibonacci/index.js"},{id:"todos-preact",name:"TODO app in preact.js",path:"todos-preact/index.js",with_app_window:!0},{id:"ethers",name:"ethers.js",path:"ethers/block_by_timestamp.js"},{id:"plot",name:"Plot",path:"plot/index.js"},{id:"fractal_tree",name:"Fractal tree",path:"fractal_tree/fractal_tree.js",with_app_window:!0},{id:"animated_fractal_tree",name:"Animated fractal tree",path:"animated_fractal_tree/animated_fractal_tree.js",with_app_window:!0},{id:"canvas_animation_bubbles",name:"Canvas animated bubbles",path:"canvas_animation_bubbles/bubbles.js",with_app_window:!0}];async function Dze(){let P=new URLSearchParams(window.location.search).get("example"),Q=new URL(window.location);Q.searchParams.delete("example"),history.replaceState(null,null,Q.href);let ae=ibt.find(Mt=>Mt.id==P);if(ae==null)return null;let Ee=globalThis.location.origin+"/docs/examples/"+ae.path,dt=await(await fetch(Ee)).text();return{...ae,contents:dt}}var u3e=()=>{if(globalThis.showDirectoryPicker==null)throw new Error("Your browser is not supporting File System Access API");cL(!0).then(x=>{Ws("load_local_dir",x)})},p3e=async()=>{b4e(),Ws("load_local_dir",null)},cEe,iI,m0,Cze=async(x,P)=>{cEe=P;let Q=await cL(!1),ae,Ee,Oe=await Dze();if(Oe!=null)Ee=Oe.contents,ae=Oe.name;else{let wt=await Eze();wt!=null&&({name:ae,contents:Ee}=wt)}let dt,Mt=pL();if(ae!=null){/(js|ts)(x)?$/.test(ae)||(ae=ae+".js");let wt=Mt.children.find(lr=>lr.contents==Ee);wt==null&&(Mt=o3e(ae,Ee),wt=Mt.children[0]),dt={current_module:wt.path,entrypoint:wt.path,html_file:null}}else dt={current_module:localStorage.current_module,entrypoint:localStorage.entrypoint,html_file:localStorage.html_file};let zt={scratch_files:Mt,local_files:Q};m0=cEe.get_initial_state({project_dir:zt,on_deferred_call:(...wt)=>Ws("on_deferred_call",...wt),allow_sync_execution:!1,...dt}),globalThis.__state=m0,iI=new Jte(x,m0),globalThis.__ui=iI,Ize(iI,m0,Oe),N4e(m0)},yv=()=>m0,Ws=(x,...P)=>{x=="input"||x=="write"?console.log("exec",x):console.log("exec",x,...P);let Q=x.split(".").reduce((dt,Mt)=>dt?.[Mt],cEe);if(Q==null)throw new Error("command "+x+" + not found");let ae=Q(m0,...P);console.log("nextstate",ae);let Ee,Oe;if(ae.state!=null?{state:Ee,effects:Oe}=ae:(Ee=ae,Oe=null),m0?.current_module==null)throw console.error("command did not return state, returned",ae),new Error("illegal state");xze(m0,Ee,iI,x),Oe!=null&&(Array.isArray(Oe)?Oe:[Oe]).forEach(dt=>{dt.type=="write"||dt.type=="save_to_localstorage"?console.log("apply effect",dt.type):console.log("apply effect",dt.type,...dt.args??[]),Rze[dt.type](Ee,dt.args,iI,m0)}),globalThis.__prev_state=m0,globalThis.__state=Ee,m0=Ee};Cze(globalThis.document.getElementById("app"),Wte); + `)(x),abt=async x=>{let P=x.run_state.external_imports,Q=await Promise.allSettled(P.map(Ee=>obt(/^\w+:\/\//.test(Ee)?Ee:"https://esm.sh/"+Ee))),ae=Object.fromEntries(Q.map((Ee,Oe)=>[P[Oe],{ok:Ee.status=="fulfilled",error:Ee.reason,module:Ee.value}]));As("external_imports_loaded",x,ae)},Rze=x=>{x.run_state.status==Xc.parse&&e3e().then(P=>As("parse_finished",!0,P))},sbt=(x,P)=>{x.editor.clear_markers(P,"coloring")},lbt=(x,P)=>{sbt(x,P.current_module)},xze=(x,P)=>{let Q=P.current_module,ae=x.editor.get_session(Q);x.editor.set_markers(Q,"coloring",w3e(P,Q).map(Ee=>{let Oe=ae.getPositionAt(Ee.index),dt=ae.getPositionAt(Ee.index+Ee.length);return{range:new monaco.Range(Oe.lineNumber,Oe.column,dt.lineNumber,dt.column),options:{shouldFillLineOnLineBreak:!0,className:Ee.result.ok?"evaluated_ok":"evaluated_error"}}}))},Dze=(x,P)=>{P.parse_result!=null&&(P.parse_result.ok||x.render_problems(P.parse_result.problems))},Cze=(x,P,Q)=>{Pbe(P.current_module,P.files[P.current_module]),Rze(P),x.editor.switch_session(P.current_module),Dze(x,P),Q!=null&&Q.with_app_window&&!localStorage.onboarding_open_app_window&&x.toggle_open_app_window_tooltip(!0)},Nze=(x,P,Q,ae)=>{if(x!=P){if(x.project_dir!=P.project_dir&&Q.files.render(P),x.files!=P.files)for(let Ee in x.files)P.files[Ee]==null&&Z4e(Ee);if(x.current_module!=P.current_module&&(Q.files.render_current_module(P.current_module),localStorage.current_module=P.current_module,Q.render_current_module(P.current_module),Pbe(P.current_module,P.files[P.current_module])),x.entrypoint!=P.entrypoint&&(localStorage.entrypoint=P.entrypoint),x.html_file!=P.html_file&&(P.html_file==null?delete P.html_file:localStorage.html_file=P.html_file),x.current_module!=P.current_module&&(Q.editor.unembed_value_explorer(),Q.editor.switch_session(P.current_module,P.files[P.current_module])),OC(P)!=Q.editor.get_cursor_position()&&ae!="on_deferred_call"&&Q.editor.set_cursor_position(OC(P)),(x.run_state?.status!=P.run_state.status||P.run_state.status==Xc.reload_app_window&&x.run_state.reload_counter!=P.run_state.reload_counter)&&(Rze(P),P.run_state.status==Xc.reload_app_window&&O4e(P),P.run_state.status==Xc.load_external_imports&&abt(P),P.run_state.status==Xc.eval_modules&&P.run_state.promise.then(Ee=>{As("eval_modules_finished",P.execution_id,Ee)}),Q.loading_spinner.style.visibility=P.run_state.status==Xc.eval_modules_finished||P.run_state.status==Xc.reload_app_window_finished||P.run_state.status==Xc.parse_finished?"hidden":"initial"),x.parse_result!=P.parse_result){if(Dze(Q,P),x.parse_result?.is_external_imports_problems){let Ee=new Set(x.parse_result.problems.map(Oe=>Oe.module));for(let Oe of Ee){let dt=monaco.editor.getModel(monaco.Uri.file(Oe));dt!=null&&monaco.editor.setModelMarkers(dt,"is_external_imports_problems",[])}}if(P.parse_result.is_external_imports_problems){let Ee=new Map;for(let Oe of P.parse_result.problems){let dt=Ee.get(Oe.module);dt==null&&(dt=[],Ee.set(Oe.module,dt)),dt.push(Oe)}for(let[Oe,dt]of Ee.entries()){let Mt=monaco.editor.getModel(monaco.Uri.file(Oe));Mt!=null&&monaco.editor.setModelMarkers(Mt,"is_external_imports_problems",dt.map(Ft=>{let zt=Mt.getPositionAt(Ft.index),Yn=Mt.getPositionAt(Ft.index+Ft.length);return{startColumn:zt.column,startLineNumber:zt.lineNumber,endColumn:Yn.column,endLineNumber:Yn.lineNumber,severity:monaco.MarkerSeverity.Error,message:Ft.message}}))}}}if(x.parse_result!=P.parse_result&&!P.parse_result.ok&&lbt(Q,P),P.parse_result?.ok?x.calltree==null||x.execution_id!=P.execution_id?P.calltree==null?(Q.calltree.clear_calltree(),Q.render_debugger_loading(P)):(Q.render_debugger(P),xze(Q,P),Q.logs.rerender_logs(P,P.logs),(x.io_trace!=P.io_trace||P.io_trace.length!=Q.io_trace.io_trace_length||P.rt_cxt!=null&&P.rt_cxt.io_trace_index!=Q.io_trace.io_trace_index)&&Q.render_io_trace(P)):(f0(x)==null&&f0(P)!=null&&Q.calltree.render_deferred_calls(P),P.io_trace.length!=Q.io_trace.io_trace_length&&Q.render_io_trace(P),(x.calltree!=P.calltree||x.calltree_node_is_expanded!=P.calltree_node_is_expanded)&&Q.calltree.render_expand_node(x,P),P.current_calltree_node!=x.current_calltree_node&&Q.calltree.render_select_node(x,P),x.colored_frames!=P.colored_frames&&xze(Q,P),Q.logs.render_logs(P,x.logs,P.logs),(x.run_state.status!=P.run_state.status&&P.run_state.status=="eval_modules_finished"||(x.current_calltree_node!=P.current_calltree_node||x.calltree_node_is_expanded!=P.calltree_node_is_expanded)&&P.run_state.status=="eval_modules_finished")&&yte(P,Q.is_focus_in_editor)):Q.calltree.clear_calltree(),x.selection_state!=P.selection_state){Q.editor.clear_markers(P.current_module,"selection");let Ee=P.selection_state?.node;if(Ee!=null){let Oe=Q.editor.get_session(P.current_module),dt=Oe.getPositionAt(Ee.index),Mt=Oe.getPositionAt(Ee.index+Ee.length);Q.editor.set_markers(P.current_module,"selection",[{range:new monaco.Range(dt.lineNumber,dt.column,Mt.lineNumber,Mt.column),options:{className:"selection"}}])}}x.value_explorer!=P.value_explorer&&(P.value_explorer==null?Q.editor.unembed_value_explorer():Q.editor.embed_value_explorer(P,P.value_explorer))}},Pze={set_focus:(x,P,Q)=>{Q.editor.focus()},set_status:(x,[P],Q)=>{Q.set_status(P)},save_to_localstorage(x,[P,Q]){localStorage[P]=Q},write:(x,[P,Q],ae,Ee)=>{if(P.startsWith("scratch/"))pEe(P,Q);else if(P.startsWith("local/"))I4e(/local\/(.*)/.exec(P)[1],Q);else throw new Error("illegal state")}};var cbt=[{id:"github_api",name:"Github API",path:"github_api/index.js"},{id:"fibonacci",name:"Fibonacci numbers",path:"fibonacci/index.js"},{id:"todos-preact",name:"TODO app in preact.js",path:"todos-preact/index.js",with_app_window:!0},{id:"ethers",name:"ethers.js",path:"ethers/block_by_timestamp.js"},{id:"plot",name:"Plot",path:"plot/index.js"},{id:"fractal_tree",name:"Fractal tree",path:"fractal_tree/fractal_tree.js",with_app_window:!0},{id:"animated_fractal_tree",name:"Animated fractal tree",path:"animated_fractal_tree/animated_fractal_tree.js",with_app_window:!0},{id:"canvas_animation_bubbles",name:"Canvas animated bubbles",path:"canvas_animation_bubbles/bubbles.js",with_app_window:!0}];async function Mze(){let P=new URLSearchParams(window.location.search).get("example"),Q=new URL(window.location);Q.searchParams.delete("example"),history.replaceState(null,null,Q.href);let ae=cbt.find(Mt=>Mt.id==P);if(ae==null)return null;let Ee=globalThis.location.origin+"/docs/examples/"+ae.path,dt=await(await fetch(Ee)).text();return{...ae,contents:dt}}var Eze=()=>{if(globalThis.showDirectoryPicker==null)throw new Error("Your browser is not supporting File System Access API");mL(!0).then(x=>{As("load_local_dir",x)})},Sze=async()=>{A4e(),As("load_local_dir",null)},fEe,oI,_0,Lze=async(x,P)=>{fEe=P;let Q=await mL(!1),ae,Ee,Oe=await Mze();if(Oe!=null)Ee=Oe.contents,ae=Oe.name;else{let Yn=await Ize();Yn!=null&&({name:ae,contents:Ee}=Yn)}let dt,Mt=EL();if(ae!=null){/(js|ts)(x)?$/.test(ae)||(ae=ae+".js");let Yn=Mt.children.find(Jr=>Jr.contents==Ee);Yn==null&&(Mt=_ze(ae,Ee),Yn=Mt.children[0]),dt={current_module:Yn.path,entrypoint:Yn.path,html_file:null}}else dt={current_module:localStorage.current_module,entrypoint:localStorage.entrypoint,html_file:localStorage.html_file};let Ft={scratch_files:Mt,local_files:Q},zt=localStorage.run_on_edit==null?!0:JSON.parse(localStorage.run_on_edit);_0=fEe.get_initial_state({project_dir:Ft,on_deferred_call:(...Yn)=>As("on_deferred_call",...Yn),allow_sync_execution:!1,run_on_edit:zt,...dt}),globalThis.__state=_0,oI=new Hte(x,_0),globalThis.__ui=oI,Cze(oI,_0,Oe),vbe(_0)},yv=()=>_0,As=(x,...P)=>{x=="input"||x=="write"?console.log("exec",x):console.log("exec",x,...P);let Q=x.split(".").reduce((dt,Mt)=>dt?.[Mt],fEe);if(Q==null)throw new Error("command "+x+" + not found");let ae=Q(_0,...P);console.log("nextstate",ae);let Ee,Oe;if(ae.state!=null?{state:Ee,effects:Oe}=ae:(Ee=ae,Oe=null),_0?.current_module==null)throw console.error("command did not return state, returned",ae),new Error("illegal state");Nze(_0,Ee,oI,x),Oe!=null&&(Array.isArray(Oe)?Oe:[Oe]).forEach(dt=>{dt.type=="write"||dt.type=="save_to_localstorage"?console.log("apply effect",dt.type):console.log("apply effect",dt.type,...dt.args??[]),Pze[dt.type](Ee,dt.args,oI,_0)}),globalThis.__prev_state=_0,globalThis.__state=Ee,_0=Ee};Lze(globalThis.document.getElementById("app"),dze); /*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) diff --git a/styles.css b/styles.css index 88d4d69..a1fbce6 100644 --- a/styles.css +++ b/styles.css @@ -115,13 +115,21 @@ dialog { .tabs > .tab { margin-right: 1em; - padding: 0.3em 1em; + padding: 0.3em 0.8em 0.3em 1em; display: flex; align-items: center; -} - -.tabs > .tab.active { - background-color: rgb(225, 244, 253); + color: inherit; + text-decoration: none; + .hotkey_key { + font-size: 0.8em; + } + .tab_label { + color: linktext; + text-decoration: underline; + } + &.active { + background-color: rgb(225, 244, 253); + } } /* debugger */ @@ -151,6 +159,18 @@ dialog { overflow: auto; } +.debugger .run_button { + margin: 1em; + color: inherit; + text-decoration: none; + font-family: system-ui; + + .run_button_label { + color: linktext; + text-decoration: underline; + } +} + .logs, .io_trace { padding-left: 1em; } @@ -191,6 +211,9 @@ dialog { .callnode .active { background-color: var(--active_color); } +.callnode .deferred_calls { + margin-left: 0em; +} .call_el { /* Make active callnode background start from the left of the calltree @@ -204,8 +227,7 @@ dialog { display: inline-block; } .call_el .expand_icon, .call_el .expand_icon_placeholder { - padding-left: 5px; - padding-right: 2px; + padding: 0px 5px; } .call_header { @@ -375,6 +397,8 @@ dialog { } .embed_value_explorer_content { + overflow-x: auto; + overflow-y: hidden; /* hide vertical scrollbar */ pointer-events: initial; white-space: pre; max-width: fit-content; @@ -391,6 +415,46 @@ dialog { margin-left: 0 !important; } +.embed_value_explorer_content { + .hotkey_step_into { + margin-right: 1em; + } + + &:not(:focus) { + .hotkey_unfocus { + display: none; + } + } + + &:focus { + .hotkey_focus { + display: none; + } + } + + &.hotkeys_right { + display: flex; + flex-direction: row; + } + + .value_explorer_hotkeys { + font-weight: 200; + font-family: system-ui; + font-size: 0.9em; + } + + &.hotkeys_bottom { + .value_explorer_hotkeys { + margin: 1em 0.5em 0.3em 0.5em; + } + } + &.hotkeys_right { + .value_explorer_hotkeys { + margin: 0em 1em; + } + } +} + .value_explorer_node { margin-left: 1em; &.is_calltree_node_explorer > .value_explorer_header { @@ -420,6 +484,11 @@ dialog { font-weight: bold; } +.jump_here { + padding: 0em 1em; + font-family: system-ui; +} + /* status */ .statusbar { @@ -438,17 +507,27 @@ dialog { .status { font-size: 1.5em; -} -.status { color: red; + margin-left: 1em; } -.statusbar_action, .options { - margin-right: 2em; +.statusbar_module_with_spinner { + display: flex; + flex-direction: row; + align-items: center; } -.statusbar_action.first { - margin-left: auto; +.statusbar_controls { + display: flex; + flex: 1; + flex-direction: row; + align-items: center; + justify-content: space-between; +} + +.statusbar_actions { + display: flex; + flex-direction: column; } .open_app_window_button { @@ -482,17 +561,24 @@ dialog { transform: translate(-50%); } -.options { - padding: 5px; -} -.options > * { - margin: 5px; +.statusbar_links { + display: flex; + flex-direction: column; } -.show_help, .github { +.options { + display: flex; + flex-direction: column; +} + +.show_help, .website { margin: 0em 0.5em; } +.website:visited { + color: linktext; +} + .statusbar_button, .upload_button { border: none; color: white; @@ -580,6 +666,13 @@ dialog::backdrop { margin-bottom: 1em; } +.hotkey_key { + margin-left: 5px; + background-color: #e5e5e5; + border-radius: 5px; + padding: 0px 8px; +} + .panel:not([open]) { display: none; }