var cte=(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 ayt=(x,P)=>()=>(x&&(P=x(x=0)),P);var Iyt={};var Z4e=ayt(()=>{define("vs/language/typescript/tsWorker",["require"],x=>{"use strict";var P=(()=>{var Q=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,Ee=Object.getOwnPropertyNames,Pe=Object.prototype.hasOwnProperty,et=(fm,Ni)=>{for(var bt in Ni)Q(fm,bt,{get:Ni[bt],enumerable:!0})},Mt=(fm,Ni,bt,Ms)=>{if(Ni&&typeof Ni=="object"||typeof Ni=="function")for(let xa of Ee(Ni))!Pe.call(fm,xa)&&xa!==bt&&Q(fm,xa,{get:()=>Ni[xa],enumerable:!(Ms=oe(Ni,xa))||Ms.enumerable});return fm},kt=fm=>Mt(Q({},"__esModule",{value:!0}),fm),zt={};et(zt,{TypeScriptWorker:()=>Jb,create:()=>dI});var Gn={};et(Gn,{EndOfLineState:()=>Ya,IndentStyle:()=>Xu,ScriptKind:()=>Ss,ScriptTarget:()=>Fc,TokenClass:()=>Kb,createClassifier:()=>Vo,createLanguageService:()=>Fa,displayPartsToString:()=>Ea,flattenDiagnosticMessageText:()=>Js,typescript:()=>Wl});var ei=void 0,Jr={exports:{}},ci=(()=>{var fm=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},xa=(e,t)=>{for(var r in t)fm(e,r,{get:t[r],enumerable:!0})},v_,qp,NG,Bze=bt({"src/compiler/corePublic.ts"(){"use strict";v_="5.4",qp="5.4.5",NG=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(NG||{})}});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 Fl(e,t){if(e!==void 0)for(let r=0;r=0;i--){let o=e[i];if(t(o,i))return o}}function Jl(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 hEe(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 KC(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function qb(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Qte(e){yield e}function OG(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 WG(e,t,r){let i;for(let o=0;oe[l])}function jze(e,t){let r=[];for(let i of e)vf(r,i,t);return r}function g0(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Vze(e,t,r):jze(e,t)}function Uze(e,t){if(e.length===0)return Ye;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 Um(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 Tx(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 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:tne(t,r),i=i===void 0?t.length:tne(t,i);for(let o=r;or(e[i],e[o])||tl(i,o))}function tT(e,t){return e.length===0?e:e.slice().sort(t)}function*zG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ey(e,t){let r=RL(e);return gEe(e,r,t),r.map(i=>e[i])}function BG(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 nu(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 Tv.call(e,t)}function gW(e,t){return Tv.call(e,t)?e[t]:void 0}function Uh(e){let t=[];for(let r in e)Tv.call(e,r)&&t.push(r);return t}function yEe(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)vf(t,i)}while(e=Object.getPrototypeOf(e));return t}function fI(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 KG(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 mI(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 Hm(){return!1}function Ay(){return!0}function Xb(){}function el(e){return e}function one(e){return e.toLowerCase()}function ah(e){return gne.test(e)?e.replace(gne,one):e}function Uo(){throw new Error("Not implemented")}function Eu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function sh(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 vEe(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 bEe(e,t,r,i,o){if(o){let s=[];for(let l=0;lnu(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 Yb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function nT(e,t){return Iy(e,t)}function EEe(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 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 jd(e,t){return EEe(e,t)}function Ix(e){return e?EW:jd}function lne(){return t9}function cne(e){t9!==e&&(t9=e,yne=void 0)}function PL(e,t){return(yne||(yne=AEe(t9)))(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 tl(e?1:0,t?1:0)}function YC(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=Jze(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?Yb(e.slice(i),t):e.indexOf(t,i)===i)}function xx(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):e}function une(e,t){return Sl(e,t)?e.slice(0,e.length-t.length):void 0}function qG(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 Rx(e,t){for(let r=0;rr===t)}function qze(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function ao(e,t,r){return r?Yb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function $C(e,t){return ao(e,t)?e.substr(t.length):e}function $G(e,t,r=el){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 Km(...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 SEe(e){}function hI(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))(ZG||{}),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))(e9||{}),AEe=(()=>{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)}})()}}),n9,R,Yze=bt({"src/compiler/debug.ts"(){"use strict";Zo(),Zo(),n9=(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))(n9||{}),(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 Wt(yi){i(2,yi)}on.warn=Wt;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 Wt of Uh(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,$e){return p(on)?!0:(s[$e]={level:on,assertion:e[$e]},e[$e]=qa,!1)}function m(on,$e){let Wt=new Error(on?`Debug Failure. ${on}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Wt,$e||m),Wt}e.fail=m;function y(on,$e,Wt){return m(`${$e||"Unexpected node."}\r Node ${he(on.kind)} was unexpected.`,Wt||y)}e.failBadSyntaxKind=y;function E(on,$e,Wt,In){on||($e=$e?`False expression: ${$e}`:"False expression.",Wt&&($e+=`\r Verbose Debug Information: `+(typeof Wt=="string"?Wt:Wt())),m($e,In||E))}e.assert=E;function S(on,$e,Wt,In,si){if(on!==$e){let yi=Wt?In?`${Wt} ${In}`:Wt:"";m(`Expected ${on} === ${$e}. ${yi}`,si||S)}}e.assertEqual=S;function A(on,$e,Wt,In){on>=$e&&m(`Expected ${on} < ${$e}. ${Wt||""}`,In||A)}e.assertLessThan=A;function N(on,$e,Wt){on>$e&&m(`Expected ${on} <= ${$e}`,Wt||N)}e.assertLessThanOrEqual=N;function D(on,$e,Wt){on<$e&&m(`Expected ${on} >= ${$e}`,Wt||D)}e.assertGreaterThanOrEqual=D;function w(on,$e,Wt){on==null&&m($e,Wt||w)}e.assertIsDefined=w;function j(on,$e,Wt){return w(on,$e,Wt||j),on}e.checkDefined=j;function K(on,$e,Wt){for(let In of on)w(In,$e,Wt||K)}e.assertEachIsDefined=K;function Y(on,$e,Wt){return K(on,$e,Wt||Y),on}e.checkEachDefined=Y;function B(on,$e="Illegal value:",Wt){let In=typeof on=="object"&&Is(on,"kind")&&Is(on,"pos")?"SyntaxKind: "+he(on.kind):JSON.stringify(on);return m(`${$e} ${In}`,Wt||B)}e.assertNever=B;function ce(on,$e,Wt,In){h(1,"assertEachNode")&&E($e===void 0||oo(on,$e),Wt||"Unexpected node.",()=>`Node array did not pass test '${re($e)}'.`,In||ce)}e.assertEachNode=ce;function z(on,$e,Wt,In){h(1,"assertNode")&&E(on!==void 0&&($e===void 0||$e(on)),Wt||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re($e)}'.`,In||z)}e.assertNode=z;function ee(on,$e,Wt,In){h(1,"assertNotNode")&&E(on===void 0||$e===void 0||!$e(on),Wt||"Unexpected node.",()=>`Node ${he(on.kind)} should not have passed test '${re($e)}'.`,In||ee)}e.assertNotNode=ee;function me(on,$e,Wt,In){h(1,"assertOptionalNode")&&E($e===void 0||on===void 0||$e(on),Wt||"Unexpected node.",()=>`Node ${he(on?.kind)} did not pass test '${re($e)}'.`,In||me)}e.assertOptionalNode=me;function ge(on,$e,Wt,In){h(1,"assertOptionalToken")&&E($e===void 0||on===void 0||on.kind===$e,Wt||"Unexpected node.",()=>`Node ${he(on?.kind)} was not a '${he($e)}' token.`,In||ge)}e.assertOptionalToken=ge;function q(on,$e,Wt){h(1,"assertMissingNode")&&E(on===void 0,$e||"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(Is(on,"name"))return on.name;{let $e=Function.prototype.toString.call(on),Wt=/^function\s+([\w$]+)\s*\(/.exec($e);return Wt?Wt[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,Wt){let In=ne($e);if(on===0)return In.length>0&&In[0][0]===0?In[0][1]:"0";if(Wt){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 Wt=[];for(let si in on){let yi=on[si];typeof yi=="number"&&Wt.push([yi,si])}let In=Ey(Wt,(si,yi)=>tl(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 ke(on){return xe(on,jW,!0)}e.formatEmitFlags=ke;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 nt(on){return xe(on,FW,!0)}e.formatObjectFlags=nt;function Ft(on){return xe(on,wL,!0)}e.formatFlowFlags=Ft;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 Jn(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",Wt=this.flags&-2048;return`${$e}${Wt?` (${Ft(Wt)})`:""}`}},__debugFlowFlags:{get(){return xe(this.flags,wL,!0)}},__debugToString:{value(){return Sr(this)}}})}function pn(on){en&&(typeof Object.setPrototypeOf=="function"?(Dn||(Dn=Object.create(Object.prototype),Jn(Dn)),Object.setPrototypeOf(on,Dn)):Jn(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} '${bl(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?` '${bl(this.symbol)}'`:""}${si?` (${nt(si)})`:""}`}},__debugFlags:{get(){return be(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?nt(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 Wt=[ld.getNodeConstructor(),ld.getIdentifierConstructor(),ld.getTokenConstructor(),ld.getSourceFileConstructor()];for(let In of Wt)Is(In.prototype,"__debugKind")||Object.defineProperties(In.prototype,{__tsDebuggerDisplay:{value(){return`${ol(this)?"GeneratedIdentifier":Fe(this)?`Identifier '${vr(this)}'`:Ki(this)?`PrivateIdentifier '${vr(this)}'`:Da(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:_p(this)?`NumericLiteral ${this.text}`:L4(this)?`BigIntLiteral ${this.text}n`:_l(this)?"TypeParameterDeclaration":To(this)?"ParameterDeclaration":Pl(this)?"ConstructorDeclaration":Zp(this)?"GetAccessorDeclaration":gp(this)?"SetAccessorDeclaration":ZI(this)?"CallSignatureDeclaration":Fk(this)?"ConstructSignatureDeclaration":U0(this)?"IndexSignatureDeclaration":zk(this)?"TypePredicateNode":xf(this)?"TypeReferenceNode":yh(this)?"FunctionTypeNode":PR(this)?"ConstructorTypeNode":e1(this)?"TypeQueryNode":yp(this)?"TypeLiteralNode":Bk(this)?"ArrayTypeNode":t1(this)?"TupleTypeNode":F4(this)?"OptionalTypeNode":z4(this)?"RestTypeNode":Kv(this)?"UnionTypeNode":n1(this)?"IntersectionTypeNode":r1(this)?"ConditionalTypeNode":PT(this)?"InferTypeNode":MT(this)?"ParenthesizedTypeNode":Gk(this)?"ThisTypeNode":LT(this)?"TypeOperatorNode":kT(this)?"IndexedAccessTypeNode":LR(this)?"MappedTypeNode":Jv(this)?"LiteralTypeNode":MR(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(Hie(this))}},__debugTransformFlags:{get(){return De(this.transformFlags)}},__debugIsParseTreeNode:{get(){return lN(this)}},__debugEmitFlags:{get(){return ke(za(this))}},__debugGetText:{value(si){if(Xs(this))return"";let yi=$e.get(this);if(yi===void 0){let $i=Ro(this),Ao=$i&&Vn($i);yi=Ao?I0(Ao,$i,si):"",$e.set(this,yi)}return yi}}});en=!0}e.enableDebugInfo=uo;function Li(on){let $e=on&7,Wt=$e===0?"in out":$e===3?"[bivariant]":$e===2?"in":$e===1?"out":$e===4?"[independent]":"";return on&8?Wt+=" (unmeasurable)":on&16&&(Wt+=" (unreliable)"),Wt}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 PG(this.sources,this.targets||mn(this.sources,()=>"any"),(Wt,In)=>`${Wt.__debugTypeToString()} -> ${typeof In=="string"?In:In.__debugTypeToString()}`).join(", ");case 2:return PG(this.sources,this.targets,(Wt,In)=>`${Wt.__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 Zn(on){return e.isDebugging?Object.setPrototypeOf(on,Eo.prototype):on}e.attachDebugPrototypeIfDebug=Zn;function jr(on){return console.log(Sr(on))}e.printControlFlowGraph=jr;function Sr(on){let $e=-1;function Wt(ie){return ie.id||(ie.id=$e,$e--),ie.id}let In;(ie=>{ie.lr="\u2500",ie.ud="\u2502",ie.dr="\u256D",ie.dl="\u256E",ie.ul="\u256F",ie.ur="\u2570",ie.udr="\u251C",ie.udl="\u2524",ie.dlr="\u252C",ie.ulr="\u2534",ie.udlr="\u256B"})(In||(In={}));let si;(ie=>{ie[ie.None=0]="None",ie[ie.Up=1]="Up",ie[ie.Down=2]="Down",ie[ie.Left=4]="Left",ie[ie.Right=8]="Right",ie[ie.UpDown=3]="UpDown",ie[ie.LeftRight=12]="LeftRight",ie[ie.UpLeft=5]="UpLeft",ie[ie.UpRight=9]="UpRight",ie[ie.DownLeft=6]="DownLeft",ie[ie.DownRight=10]="DownRight",ie[ie.UpDownLeft=7]="UpDownLeft",ie[ie.UpDownRight=11]="UpDownRight",ie[ie.UpLeftRight=13]="UpLeftRight",ie[ie.DownLeftRight=14]="DownLeftRight",ie[ie.UpDownLeftRight=15]="UpDownLeftRight",ie[ie.NoChildren=16]="NoChildren"})(si||(si={}));let yi=2032,$i=882,Ao=Object.create(null),da=[],Ba=[],vn=G(on,new Set);for(let ie of da)ie.text=un(ie.flowNode,ie.circular),Tt(ie);let kn=He(vn),Be=pt(kn);return Bt(vn,0),U();function dt(ie){return!!(ie.flags&128)}function ct(ie){return!!(ie.flags&12)&&!!ie.antecedents}function Rt(ie){return!!(ie.flags&yi)}function se(ie){return!!(ie.flags&$i)}function we(ie){let H=[];for(let ue of ie.edges)ue.source===ie&&H.push(ue.target);return H}function lt(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"},da.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},da.push(We),ct(ie))for(let Ne of ie.antecedents)tt(We,Ne,H);else Rt(ie)&&tt(We,ie.antecedent,H);return H.delete(ie),We}function tt(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 lt(ie))H=Math.max(H,Tt(ue)+1);return ie.level=H}function He(ie){let H=0;for(let ue of we(ie))H=Math.max(H,He(ue));return H+1}function pt(ie){let H=Nt(Array(ie),0);for(let ue of da)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=we(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=Vn(ie);return I0(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(dt(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 da){We[Dt.level][Dt.lane]=Dt;let Kt=we(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)),Uf(o.major)||r.push(Uf(o.minor)?lh("<",o.version.increment("major")):Uf(o.patch)?lh("<",o.version.increment("minor")):lh("<=",o.version)),!0):!1}function Zze(e,t,r){let i=vne(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(Uf(s))(e==="<"||e===">")&&r.push(lh("<",_m.zero));else switch(e){case"~":r.push(lh(">=",o)),r.push(lh("<",o.increment(Uf(l)?"major":"minor")));break;case"^":r.push(lh(">=",o)),r.push(lh("<",o.increment(o.major>0||Uf(l)?"major":o.minor>0||Uf(d)?"minor":"patch")));break;case"<":case">=":r.push(Uf(l)||Uf(d)?lh(e,o.with({prerelease:"0"})):lh(e,o));break;case"<=":case">":r.push(Uf(l)?lh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Uf(d)?lh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):lh(e,o));break;case"=":case void 0:Uf(l)||Uf(d)?(r.push(lh(">=",o.with({prerelease:"0"}))),r.push(lh("<",o.increment(Uf(l)?"major":"minor").with({prerelease:"0"})))):r.push(lh("=",o));break;default:return!1}return!0}function Uf(e){return e==="*"||e==="x"||e==="X"}function lh(e,t){return{operator:e,operand:t}}function e7e(e,t){if(t.length===0)return!0;for(let r of t)if(t7e(e,r))return!0;return!1}function t7e(e,t){for(let r of t)if(!n7e(e,r.operator,r.operand))return!1;return!0}function n7e(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 r7e(e){return mn(e,i7e).join(" || ")||"*"}function i7e(e){return mn(e,o7e).join(" ")}function o7e(e){return`${e.operator}${e.operand}`}var REe,DEe,CEe,NEe,PEe,bne,r9,_m,ML,MEe,LEe,kEe,wEe,OEe,a7e=bt({"src/compiler/semver.ts"(){"use strict";Zo(),REe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,DEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,CEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,NEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,PEe=/^[a-z0-9-]+$/i,bne=/^(0|[1-9]\d*)$/,r9=class oW{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=R.checkDefined(IEe(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("."):Ye,d=s?So(s)?s:s.split("."):Ye;R.assert(oo(l,p=>CEe.test(p)),"Invalid argument: prerelease"),R.assert(oo(d,p=>PEe.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=IEe(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new oW(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:tl(this.major,t.major)||tl(this.minor,t.minor)||tl(this.patch,t.patch)||$ze(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new oW(this.major+1,0,0);case"minor":return new oW(this.major,this.minor+1,0);case"patch":return new oW(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 oW(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}},r9.zero=new r9(0,0,0,["0"]),_m=r9,ML=class K4e{constructor(t){this._alternatives=t?R.checkDefined(xEe(t),"Invalid range spec."):Ye}static tryParse(t){let r=xEe(t);if(r){let i=new K4e("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new _m(t)),e7e(t,this._alternatives)}toString(){return r7e(this._alternatives)}},MEe=/\|\|/g,LEe=/\s+/g,kEe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,wEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,OEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function WEe(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 s7e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&WEe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function l7e(){if(QG())try{let{performance:e,PerformanceObserver:t}=ei("perf_hooks");if(WEe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function Ene(){return i9}var i9,Sne,qs,c7e=bt({"src/compiler/performanceCore.ts"(){"use strict";Zo(),i9=s7e()||l7e(),Sne=i9?.performance,qs=Sne?()=>Sne.now():Date.now?Date.now:()=>+new Date}}),DW,ru,d7e=bt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";DW=ei(e)}catch{DW=void 0}ru=DW?.logEvent?DW:void 0}});function FEe(e,t,r,i){return e?o9(t,r,i):a9}function o9(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&nl(t)}function s(){--i===0?(nl(r),Yp(e,t,r)):i<0&&R.fail("enter/exit count does not match.")}}function nl(e){if(Dx){let t=QC.get(e)??0;QC.set(e,t+1),Cx.set(e,qs()),rT?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Yp(e,t,r){if(Dx){let i=(r!==void 0?Cx.get(r):void 0)??qs(),o=(t!==void 0?Cx.get(t):void 0)??Tne,s=Nx.get(e)||0;Nx.set(e,s+(i-o)),rT?.measure(e,t,r)}}function u7e(e){return QC.get(e)||0}function p7e(e){return Nx.get(e)||0}function f7e(e){Nx.forEach((t,r)=>e(r,t))}function m7e(e){Cx.forEach((t,r)=>e(r))}function _7e(e){e!==void 0?Nx.delete(e):Nx.clear(),rT?.clearMeasures(e)}function h7e(e){e!==void 0?(QC.delete(e),Cx.delete(e)):(QC.clear(),Cx.clear()),rT?.clearMarks(e)}function g7e(){return Dx}function y7e(e=gd){var t;return Dx||(Dx=!0,LL||(LL=Ene()),LL&&(Tne=LL.performance.timeOrigin,(LL.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(rT=LL.performance))),!0}function v7e(){Dx&&(Cx.clear(),QC.clear(),Nx.clear(),rT=void 0,Dx=!1)}var LL,rT,a9,Dx,Tne,Cx,QC,Nx,b7e=bt({"src/compiler/performance.ts"(){"use strict";Zo(),a9={enter:qa,exit:qa},Dx=!1,Tne=qs(),Cx=new Map,QC=new Map,Nx=new Map}}),Ane={};xa(Ane,{clearMarks:()=>h7e,clearMeasures:()=>_7e,createTimer:()=>o9,createTimerIf:()=>FEe,disable:()=>v7e,enable:()=>y7e,forEachMark:()=>m7e,forEachMeasure:()=>f7e,getCount:()=>u7e,getDuration:()=>p7e,isEnabled:()=>g7e,mark:()=>nl,measure:()=>Yp,nullTimer:()=>a9});var iT=bt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";b7e()}}),or,kL,Ine,xne,E7e=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(!or,"Tracing already started"),t===void 0)try{t=ei("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"),or=e;let re={cat:"__metadata",ph:"M",ts:1e3*qs(),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(or,"Tracing is not in progress"),R.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),or=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*qs(),separateBeginAndEnd:ge})}e.push=A;function N(z){R.assert(S.length>0),j(S.length-1,1e3*qs(),z),S.length--}e.pop=N;function D(){let z=1e3*qs();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*qs()){o==="server"&&ee==="checkTypes"||(nl("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,"}"),nl("endTracing"),Yp("Tracing","beginTracing","endTracing"))}function Y(z){let ee=Vn(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,ke,Et,be;nl("beginDumpTypes");let ze=d[d.length-1].typesPath,nt=t.openSync(ze,"w"),Ft=new Map;t.writeSync(nt,"[");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 Jn={};if(ft.flags&8388608){let jr=ft;Jn={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=Ft.get(Eo),Li||(Li=Ft.size,Ft.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:(ke=ft.aliasTypeArguments)==null?void 0:ke.map(jr=>jr.id),keyofType:ft.flags&4194304?(Et=ft.type)==null?void 0:Et.id:void 0,...Jn,...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(nt,JSON.stringify(Zn)),Je<_t-1&&t.writeSync(nt,`, `)}t.writeSync(nt,`] `),t.closeSync(nt),nl("endDumpTypes"),Yp("Dump types","beginDumpTypes","endDumpTypes")}function ce(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=ce})(kL||(kL={})),Ine=kL.startTracing,xne=kL.dumpLegend}});function oT(e,t=!0){let r=OL[e.category];return t?r.toLowerCase():r}var CW,NW,PW,s9,MW,LW,l9,wL,c9,Px,kW,d9,u9,wW,p9,f9,m9,_9,h9,g9,y9,v9,b9,E9,S9,OW,T9,A9,I9,x9,WW,FW,R9,D9,C9,N9,P9,M9,zW,L9,k9,w9,O9,W9,F9,OL,Mx,z9,B9,G9,V9,ZC,j9,U9,H9,BW,K9,J9,q9,X9,Y9,GW,VW,jW,$9,Q9,Z9,eV,tV,nV,rV,iV,WL,oV,zEe=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||{}),s9=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(s9||{}),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||{}),l9=(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))(l9||{}),wL=(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))(wL||{}),c9=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(c9||{}),Px=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||{}),d9=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(d9||{}),u9=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(u9||{}),wW=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(wW||{}),p9=(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))(p9||{}),f9=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(f9||{}),m9=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(m9||{}),_9=(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))(_9||{}),h9=(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))(h9||{}),g9=(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))(g9||{}),y9=(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))(y9||{}),v9=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(v9||{}),b9=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(b9||{}),E9=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(E9||{}),S9=(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))(S9||{}),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||{}),T9=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(T9||{}),A9=(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))(A9||{}),I9=(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))(I9||{}),x9=(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))(x9||{}),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||{}),R9=(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))(R9||{}),D9=(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))(D9||{}),C9=(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))(C9||{}),N9=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(N9||{}),P9=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(P9||{}),M9=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(M9||{}),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||{}),L9=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(L9||{}),k9=(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))(k9||{}),w9=(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))(w9||{}),O9=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(O9||{}),W9=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(W9||{}),F9=(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))(F9||{}),OL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(OL||{}),Mx=(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))(Mx||{}),z9=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(z9||{}),B9=(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))(B9||{}),G9=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(G9||{}),V9=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(V9||{}),ZC=(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))(ZC||{}),j9=(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))(j9||{}),U9=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(U9||{}),H9=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(H9||{}),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||{}),K9=(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))(K9||{}),J9=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(J9||{}),q9=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(q9||{}),X9=(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))(X9||{}),Y9=(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))(Y9||{}),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||{}),$9=(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))($9||{}),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||{}),Z9=(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))(Z9||{}),eV=(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))(eV||{}),tV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(tV||{}),nV=(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))(nV||{}),rV=(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))(rV||{}),iV=(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))(iV||{}),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}},oV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(oV||{})}});function eN(e){let t=5381;for(let r=0;r{K.isClosed=!0,_I(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 GEe(e,D,j,K,Y);function Y(B,ce,z){z?(B.unchangedPolls=0,D!==r&&(D[ce]=void 0,S(B))):B.unchangedPolls!==zL[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 A7e(e,t,r,i){let o=Xp(),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)||Lp);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)||Lp,K.getTime()===B.getTime()))return;K||(K=r(D)||Lp),s.set(w,K),B===Lp?Y=0:K===Lp&&(Y=2)}for(let B of j)B(D,Y,K)}},!1,500,E);return S.referenceCount=0,l.set(y,S),S}}function I7e(e){let t=[],r=0,i;return o;function o(d,p){let h={fileName:d,callback:p,mtime:gI(e,d)};return t.push(h),l(),{close:()=>{h.isClosed=!0,_I(t,h)}}}function s(){i=void 0,r=GEe(e,t,r,KW[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function VEe(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&&(!Rx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Df(p)))}}}function x7e(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,aV(r,i),t),!0):!1}function aV(e,t){return e===0?0:t===0?2:1}function FL(e){return Pne(e)}function Dne(e){Pne=e}function R7e({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=Ix(!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:Ye},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),Df(re),re.childWatches.forEach(qm))}}}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]===il))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,FL(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let z=qs(),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)}FL(`sysLog:: invokingWatchers:: Elapsed:: ${qs()-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=qs()-z;FL(`sysLog:: Elapsed:: ${me}ms:: onTimerToUpdateChildWatches:: ${m.size} ${y}`)}function K(z){if(!z)return;let ee=z.childWatches;z.childWatches=Ye;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,fa(s(fe)))===0?fe:void 0}):Ye,ge.childWatches,(xe,fe)=>E(xe,fe.dirName),re,qm,pe);return ge.childWatches=q||Ye,J;function re(xe){let fe=A(xe,me);pe(fe)}function pe(xe){(q||(q=[])).push(xe)}}function B(z,ee){return gt(BL,me=>ce(z,me))||jEe(z,ee,t,r)}function ce(z,ee){return z.includes(ee)?!0:t?!1:S(z).includes(ee)}}function D7e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function C7e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Lp),t(e,s!==Lp?0:2,s)):t(e,1,s)}}function jEe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(d3(e,t?.excludeFiles,r,i())||d3(e,t?.excludeDirectories,r,i()))}function UEe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?fa(Yr(e,l)):e;(!l||!jEe(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,ke){ke=J(ke,E);let Et=R.checkDefined(ke.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,C7e(ve,Ie,t),!1,De,ww(ke));case 5:return ce||(ce=A7e(he,l,t,N)),ce(ve,Ie,De,ww(ke));default:R.assertNever(Et)}}function ge(){return Y||(Y=T7e({getModifiedTime:t,setTimeout:r}))}function q(){return B||(B=I7e({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 ke=De?.fallbackPolling;return{watchFile:ve,fallbackPolling:ke===void 0?Ie:ke}}function pe(ve,Ie,De,ke){return p?he(ve,1,UEe(ve,Ie,ke,l,d),De,500,ww(ke)):(z||(z=R7e({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:xe,realpath:m,setTimeout:r,clearTimeout:i})),z(ve,Ie,De,ke))}function xe(ve,Ie,De,ke){R.assert(!De);let Et=fe(ke),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,UEe(ve,Ie,ke,l,d),De,500,ww(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,ke){return VEe(w,l,ve,Ie,Et=>e(ve,Et,De,ke))}function he(ve,Ie,De,ke,Et,be){return VEe(ke?K:j,l,ve,De,ze=>Ce(ve,Ie,ze,ke,Et,be))}function Ce(ve,Ie,De,ke,Et,be){let ze,nt;A&&(ze=ve.substring(ve.lastIndexOf(il)),nt=ze.slice(il.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,ke,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,Jn){let pn;if(Jn&&Sl(Jn,"~")&&(pn=Jn,Jn=Jn.slice(0,Jn.length-1)),Dn==="rename"&&(!Jn||Jn===nt||Sl(Jn,ze))){let Yt=t(ve)||Lp;pn&&De(Dn,pn,Yt),De(Dn,Jn,Yt),A?_t(Yt===Lp?en:Je):Yt===Lp&&_t(en)}else pn&&De(Dn,pn),De(Dn,Jn)}function Zt(){return me(ve,D7e(De),Et,be)}function en(){return me(ve,(Dn,Jn,pn)=>{Jn===0&&(pn||(pn=t(ve)||Lp),pn!==Lp&&(De("rename","",pn),_t(Je)))},Et,be)}}function Ge(ve,Ie,De){let ke=t(ve)||Lp;return o(ve,Ie,(Et,be,ze)=>{Et==="change"&&(ze||(ze=t(ve)||Lp),ze.getTime()===ke.getTime())||(ke=ze||t(ve)||Lp,De(Et,be,ke))})}}function Nne(e){let t=e.writeFile;e.writeFile=(r,i,o)=>jj(r,i,!!o,(s,l,d)=>t.call(e,s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s))}function HEe(e){gd=e}var sV,UW,Lp,HW,KW,zL,BL,Pne,lV,gd,N7e=bt({"src/compiler/sys.ts"(){"use strict";Zo(),sV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(sV||{}),UW=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(UW||{}),Lp=new Date(0),HW={Low:32,Medium:64,High:256},KW=Rne(HW),zL=Rne(HW),BL=["/node_modules/.","/.git","/.#"],Pne=qa,lV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(lV||{}),gd=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=ei("fs"),s=ei("path"),l=ei("os"),d;try{d=ei("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=ei("buffer").Buffer,y=process.platform==="darwin",E=process.platform==="linux"||y,S=l.platform(),A=q(),N=o.realpathSync.native?process.platform==="win32"?ke: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:FL}),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:nt,createHash:d?Ft:eN,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{ei("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:ei(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=ei("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://${ch(Zt)===1?"":"/"}${Zt}`;for(let Dn of _t.nodes)if(Dn.callFrame.url){let Jn=Md(Dn.callFrame.url);hm(en,Jn,A)?Dn.callFrame.url=vI(en,Jn,en,Pd(A),!0):i.test(Jn)||(Dn.callFrame.url=(ft.has(Jn)?ft:ft.set(Jn,`external${Je}.js`)).get(Jn),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,Jn){let pn=+Jn.mtime==0||Zt===2;if(+Dn.mtime==0){if(pn)return;Zt=2}else if(pn)Zt=0;else{if(+Dn.mtime==+Jn.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=ru)==null||ft.logStartReadFile(_t);let en=xe(_t,Je);return(Zt=ru)==null||Zt.logStopReadFile(),en}function ne(_t,Je,ft){var Zt;(Zt=ru)==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=ru)==null||Je.logEvent("ReadDir: "+(_t||"."));try{let ft=o.readdirSync(_t||".",{withFileTypes:!0}),Zt=[],en=[];for(let Dn of ft){let Jn=typeof Dn=="string"?Dn:Dn.name;if(Jn==="."||Jn==="..")continue;let pn;if(typeof Dn=="string"||Dn.isSymbolicLink()){let Yt=Yr(_t,Jn);try{if(pn=ce(Yt),!pn)continue}catch{continue}}else pn=Dn;pn.isFile()?Zt.push(Jn):pn.isDirectory()&&en.push(Jn)}return Zt.sort(),en.sort(),{files:Zt,directories:en}}catch{return e4}}function Ce(_t,Je,ft,Zt,en){return pU(_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 ke(_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 nt(_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})(),gd&&gd.getEnvironmentVariable&&(S7e(gd),R.setAssertionLevel(/^development$/i.test(gd.getEnvironmentVariable("NODE_ENV"))?1:0)),gd&&gd.debugMode&&(R.isDebugging=!0)}});function cV(e){return e===47||e===92}function Mne(e){return JW(e)<0}function dp(e){return JW(e)>0}function dV(e){let t=JW(e);return t>0&&t===e.length}function tN(e){return JW(e)!==0}function kp(e){return/^\.\.?($|[\\/])/.test(e)}function uV(e){return!tN(e)&&!kp(e)}function yI(e){return rc(e).includes(".")}function Tl(e,t){return e.length>t.length&&Sl(e,t)}function Ec(e,t){for(let r of t)if(Tl(e,r))return!0;return!1}function Ry(e){return e.length>0&&cV(e.charCodeAt(e.length-1))}function KEe(e){return e>=97&&e<=122||e>=65&&e<=90}function P7e(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?il:UL,2);return i<0?e.length:i+1}if(KEe(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(il,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&KEe(e.charCodeAt(o+1))){let d=P7e(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 ch(e){let t=JW(e);return t<0?~t:t}function oi(e){e=Md(e);let t=ch(e);return t===e.length?e:(e=$b(e),e.slice(0,Math.max(t,e.lastIndexOf(il))))}function rc(e,t,r){if(e=Md(e),ch(e)===e.length)return"";e=$b(e);let o=e.slice(Math.max(ch(e),e.lastIndexOf(il)+1)),s=t!==void 0&&r!==void 0?Lx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function JEe(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 M7e(e,t,r){if(typeof t=="string")return JEe(e,t,r)||"";for(let i of t){let o=JEe(e,i,r);if(o)return o}return""}function Lx(e,t,r){if(t)return M7e($b(e),t,r?Yb:nT);let i=rc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function L7e(e,t){let r=e.substring(0,t),i=e.substring(t).split(il);return i.length&&!Zs(i)&&i.pop(),[r,...i]}function zc(e,t=""){return e=Yr(t,e),L7e(e,ch(e))}function Av(e,t){return e.length===0?"":(e[0]&&Bc(e[0]))+e.slice(1,t).join(il)}function Md(e){return e.includes("\\")?e.replace(YEe,il):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||ch(r)!==0?e=r:e=Bc(e)+r);return e}function Iv(e,...t){return fa(gt(t)?Yr(e,...t):Md(e))}function GL(e,t){return aT(zc(e,t))}function _o(e,t){return Av(GL(e,t))}function fa(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=Av(aT(zc(e)));return r&&Ry(e)?Bc(r):r}function k7e(e){return e.length===0?"":e.slice(1).join(il)}function pV(e,t){return k7e(GL(e,t))}function rl(e,t,r){let i=dp(e)?fa(e):_o(e,t);return r(i)}function $b(e){return Ry(e)?e.substr(0,e.length-1):e}function Bc(e){return Ry(e)?e:e+il}function v0(e){return!tN(e)&&!kp(e)?"./"+e:e}function VL(e,t,r,i){let o=r!==void 0&&i!==void 0?Lx(e,r,i):Lx(e);return o?e.slice(0,e.length-o.length)+(ao(t,".")?t:"."+t):e}function Lne(e,t){let r=LH(e);return r?e.slice(0,e.length-r.length)+(ao(t,".")?t:"."+t):VL(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,ch(e)),o=t.substring(0,ch(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==ch(t)>0,"Paths must either both be absolute or both be relative");let s=mV(e,t,(typeof r=="boolean"?r:!1)?Yb:nT,typeof r=="function"?r:el);return Av(s)}function nN(e,t,r){return dp(e)?vI(t,e,t,r,!1):e}function jL(e,t,r){return v0(gm(oi(e),t,r))}function vI(e,t,r,i,o){let s=mV(Iv(r,e),Iv(r,t),nT,i),l=s[0];if(o&&dp(l)){let d=l.charAt(0)===il?"file://":"file:///";s[0]=d+l}return Av(s)}function ym(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 il,UL,wne,YEe,XW,w7e=bt({"src/compiler/path.ts"(){"use strict";Zo(),il="/",UL="\\",wne="://",YEe=/\\/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,O7e=bt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";zEe(),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 iu(e){return e>=80}function One(e){return e===32||iu(e)}function HL(e,t){if(e=2?HL(e,i0e):t===1?HL(e,n0e):HL(e,e0e)}function W7e(e,t){return t>=2?HL(e,o0e):t===1?HL(e,r0e):HL(e,t0e)}function F7e(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ca(e){return c0e[e]}function b0(e){return Bne.get(e)}function bI(e){let t=[],r=0,i=0;for(;r127&&Ud(o)&&(t.push(i),i=r);break}}return t.push(i),t}function KL(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?xL(e,bI(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 oN(e){return e>=48&&e<=57}function $Ee(e){return oN(e)||e>=65&&e<=70||e>=97&&e<=102}function z7e(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 Na(e,t,r,i,o){if(Xm(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 aN(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 qL(e,t,r,i){return gV(!1,e,t,!1,r,i)}function XL(e,t,r,i){return gV(!1,e,t,!0,r,i)}function Fne(e,t,r,i,o){return gV(!0,e,t,!1,r,i,o)}function zne(e,t,r,i,o){return gV(!0,e,t,!0,r,i,o)}function QEe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Hh(e,t){return Fne(e,t,QEe,void 0,void 0)}function Qb(e,t){return zne(e,t,QEe,void 0,void 0)}function ZW(e){let t=yV.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 Zb(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&&W7e(e,t)}function $p(e,t,r){let i=xv(e,0);if(!Kh(i,t))return!1;for(let o=eE(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:nt,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:ft,scanJsxIdentifier:Yt,scanJsxAttributeValue:qt,reScanJsxAttributeValue:hi,reScanJsxToken:Zt,reScanLessThanToken:en,reScanHashToken:Dn,reScanQuestionToken:Jn,reScanInvalidIdentifier:ke,scanJsxToken:pn,scanJsDocToken:Li,scanJSDocCommentTextToken:uo,scan:Ie,getText:on,clearCommentDirectives:$e,setText:Wt,setScriptTarget:si,setLanguageVariant:yi,setScriptKind:$i,setJSDocParsingMode:Ao,setOnError:In,resetTokenState:da,setTextPos:da,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,dt){if(o){let ct=p;p=kn,o(vn,Be||0,dt),p=ct}}function B(){let vn=p,kn=!1,Be=!1,dt="";for(;;){let ct=d.charCodeAt(p);if(ct===95){A|=512,kn?(kn=!1,Be=!0,dt+=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(oN(ct)){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)),dt+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,we=(se?"-":"")+"0o"+(+S).toString(8);return se&&vn--,Y(f.Octal_literals_are_not_allowed_Use_the_syntax_0,vn,p-vn,we),9}else kn=B();let Be,dt;d.charCodeAt(p)===46&&(p++,Be=B());let ct=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,we=B();we?(dt=d.substring(ct,se)+we,ct=p):Y(f.Digit_expected)}let Rt;if(A&512?(Rt=kn,Be&&(Rt+="."+Be),dt&&(Rt+=dt)):Rt=d.substring(vn,ct),A&8192)return Y(f.Decimals_with_leading_zeros_are_not_allowed,vn,ct-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(xv(d,p),e))return;let Be=p,{length:dt}=he();dt===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,dt),p=Be)}function ee(){let vn=p,kn=!0;for(;oN(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 dt=[],ct=!1,Rt=!1;for(;dt.length=65&&se<=70)se+=32;else if(!(se>=48&&se<=57||se>=97&&se<=102))break;dt.push(se),p++,Rt=!1}return dt.length=h){Be+=d.substring(dt,p),A|=4,Y(f.Unterminated_string_literal);break}let ct=d.charCodeAt(p);if(ct===kn){Be+=d.substring(dt,p),p++;break}if(ct===92&&!vn){Be+=d.substring(dt,p),Be+=pe(!0),dt=p;continue}if((ct===10||ct===13)&&!vn){Be+=d.substring(dt,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,dt="",ct;for(;;){if(p>=h){dt+=d.substring(Be,p),A|=4,Y(f.Unterminated_template_literal),ct=kn?15:18;break}let Rt=d.charCodeAt(p);if(Rt===96){dt+=d.substring(Be,p),p++,ct=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||!oN(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,wx(ct)):(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?"":wx(kn)}function fe(){if(p+5=0&&Zb(Be,e)){p+=3,A|=8,vn+=xe(),kn=p;continue}if(Be=fe(),!(Be>=0&&Zb(Be,e)))break;A|=1024,vn+=d.substring(kn,p),vn+=wx(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=ZEe.get(S);if(Be!==void 0)return E=Be}}return E=80}function Ge(vn){let kn="",Be=!1,dt=!1;for(;;){let ct=d.charCodeAt(p);if(ct===95){A|=512,Be?(Be=!1,dt=!0):Y(dt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Be=!0,!oN(ct)||ct-48>=vn)break;kn+=d[p],p++,dt=!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=ZN(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&&_V(d,p)){if(p=hV(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 dt=fe();return dt>=0&&Kh(dt,e)?(p+=6,A|=1024,S=String.fromCharCode(dt)+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 ct=xv(d,p+1);if(ct===92){p++;let we=ne();if(we>=0&&Kh(we,e))return p+=3,A|=8,S="#"+xe()+he(),E=81;let lt=fe();if(lt>=0&&Kh(lt,e))return p+=6,A|=1024,S="#"+String.fromCharCode(lt)+he(),E=81;p--}return Kh(ct,e)?(p++,Et(ct,e)):(S="#",Y(f.Invalid_character,p++,eE(kn))),E=81;default:let Rt=Et(kn,e);if(Rt)return E=Rt;if(b_(kn)){p+=eE(kn);continue}else if(Ud(kn)){A|=1,p+=eE(kn);continue}let se=eE(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:l0e.test(d.slice(m,p))}function ke(){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+=eE(vn),E)}function Et(vn,kn){let Be=vn;if(Kh(Be,kn)){for(p+=eE(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(iu(E)){for(;p=h)return E=1;for(let kn=d.charCodeAt(p);p=0&&b_(d.charCodeAt(p-1))&&!(p+1=h)return E=1;let vn=xv(d,p);switch(p+=eE(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 xv(e,t){return e.codePointAt(t)}function eE(e){return e>=65536?2:1}function B7e(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 wx(e){return d0e(e)}var YL,ZEe,Bne,e0e,t0e,n0e,r0e,i0e,o0e,a0e,s0e,l0e,c0e,eF,yV,d0e,G7e=bt({"src/compiler/scanner.ts"(){"use strict";Zo(),YL={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},ZEe=new Map(Object.entries(YL)),Bne=new Map(Object.entries({...YL,"{":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})),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,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],t0e=[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],n0e=[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],r0e=[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],i0e=[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],o0e=[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],a0e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,s0e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,l0e=/@(?:see|link)/i,c0e=F7e(Bne),eF=7,yV=/^#!.*/,d0e=String.fromCodePoint?e=>String.fromCodePoint(e):B7e}});function $c(e){return kp(e)||dp(e)}function Ox(e){return JC(e,JN)}function $L(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 ql(e){return e.start+e.length}function Gne(e){return e.length===0}function vV(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Vne(e,t){return t.start>=e.start&&ql(t)<=ql(e)}function u0e(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 p0e(e,t){return ZL(e.start,e.length,t.start,t.length)}function tF(e,t,r){return ZL(e.start,e.length,t,r)}function ZL(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Une(e,t){return t<=ql(e)&&t>=e.start}function Hne(e,t){let r=Math.max(e.start,t.start),i=Math.min(ql(e),ql(t));return r<=i?uc(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 uc(e,t){return yd(e,t-e)}function sN(e){return yd(e.span.start,e.newLength)}function Kne(e){return Gne(e.span)&&e.newLength===0}function e2(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Jne(e){if(e.length===0)return h2;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=ql(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 nE(e){let t=b0(e.escapedText);return t?ri(t,Wu):void 0}function bl(e){return e.valueDeclaration&&au(e.valueDeclaration)?vr(e.valueDeclaration.name):Vi(e.escapedName)}function _0e(e){let t=e.parent.parent;if(t){if(Kd(t))return EV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return EV(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 EV(t.expression);case 256:{if(Kd(t.statement)||ht(t.statement))return EV(t.statement);break}}}}function EV(e){let t=No(e);return t&&Fe(t)?t:void 0}function t2(e,t){return!!(ou(e)&&Fe(e.name)&&vr(e.name)===vr(t)||Ml(e)&>(e.declarationList.declarations,r=>t2(r,t)))}function $ne(e){return e.name||_0e(e)}function ou(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(Bl(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 $ne(e);case 347:return _0e(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(_c(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 Rv(e){if(Ef(e))return Vr(e.modifiers,Ed)}function E0(e){if($r(e,98303))return Vr(e.modifiers,Sa)}function h0e(e,t){if(e.name)if(Fe(e.name)){let r=e.name.escapedText;return r2(e.parent,t).filter(i=>Zm(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=r2(e.parent,t).filter(Zm);if(rrm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Zne(e){return g0e(e,!1)}function ere(e){return g0e(e,!0)}function tre(e){return!!Hf(e,Zm)}function nre(e){return Hf(e,d1)}function rre(e){return oF(e,q4)}function SV(e){return Hf(e,Dae)}function y0e(e){return Hf(e,fH)}function ire(e){return Hf(e,fH,!0)}function v0e(e){return Hf(e,mH)}function ore(e){return Hf(e,mH,!0)}function b0e(e){return Hf(e,_H)}function are(e){return Hf(e,_H,!0)}function E0e(e){return Hf(e,hH)}function sre(e){return Hf(e,hH,!0)}function lre(e){return Hf(e,K4,!0)}function TV(e){return Hf(e,gH)}function cre(e){return Hf(e,gH,!0)}function AV(e){return Hf(e,Hk)}function iF(e){return Hf(e,yH)}function dre(e){return Hf(e,J4)}function S0e(e){return Hf(e,rm)}function IV(e){return Hf(e,X4)}function rE(e){let t=Hf(e,IP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function iE(e){let t=Hf(e,IP);return!t&&To(e)&&(t=Gr(Fx(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function n2(e){let t=dre(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=rE(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(yp(i)){let o=Gr(i.members,ZI);return o&&o.type}if(yh(i)||FR(i))return i.type}}function r2(e,t){var r;if(!H2(e))return Ye;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=Ej(e,t);R.assert(o.length<2||o[0]!==o[1]),i=ya(o,s=>Qm(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function oE(e){return r2(e,!1)}function T0e(e){return r2(e,!0)}function Hf(e,t,r){return Gr(r2(e,r),t)}function oF(e,t){return oE(e).filter(t)}function A0e(e,t){return oE(e).filter(r=>r.kind===t)}function i2(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:j7e(t)).join("")}function j7e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?pp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function Dv(e){if(bE(e)){if(zR(e.parent)){let t=lR(e.parent);if(t&&Nn(t.tags))return ya(t.tags,r=>rm(r)?r.typeParameters:void 0)}return Ye}if(Xf(e))return R.assert(e.parent.kind===327),ya(e.parent.tags,t=>rm(t)?t.typeParameters:void 0);if(e.typeParameters||zae(e)&&e.typeParameters)return e.typeParameters;if(ar(e)){let t=p6(e);if(t.length)return t;let r=iE(e);if(r&&yh(r)&&r.typeParameters)return r.typeParameters}return Ye}function zx(e){return e.constraint?e.constraint:rm(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 xV(e){return Ys(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 cN(e){return Hd(e)&&!o1(e)&&!!e.questionDotToken}function lF(e){return cN(e.parent)&&e.parent.expression===e}function dN(e){return!Hd(e.parent)||cN(e.parent)||e!==e.parent.expression}function RV(e){return e.kind===226&&e.operatorToken.kind===61}function Ng(e){return xf(e)&&Fe(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function vm(e){return $l(e,8)}function cF(e){return o1(e)&&!!(e.flags&64)}function uN(e){return e.kind===252||e.kind===251}function DV(e){return e.kind===280||e.kind===279}function ure(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function CV(e){return ure(e)||e.kind===307||e.kind===311}function pN(e){return e.kind===355||e.kind===348}function I0e(e){return o2(e.kind)}function o2(e){return e>=166}function NV(e){return e>=0&&e<=165}function EI(e){return NV(e.kind)}function S0(e){return Is(e,"pos")&&Is(e,"end")}function fN(e){return 9<=e&&e<=15}function T0(e){return fN(e.kind)}function PV(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 dF(e){let t=e.kind;return t===17||t===18}function SI(e){return Zu(e)||Jd(e)}function a2(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 aE(e){return a2(e)||fre(e)}function MV(e){return e.kind===11||Cv(e.kind)}function mre(e){return Da(e)||Fe(e)}function ol(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 s2(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function au(e){return(jo(e)||AI(e))&&Ki(e.name)}function Bx(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 mN(e){return!!(OI(e)&31)}function LV(e){return mN(e)||e===126||e===164||e===129}function Sa(e){return Ny(e.kind)}function Yu(e){let t=e.kind;return t===166||t===80}function ic(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&&TI(e.kind)}function Gx(e){return!!e&&(TI(e.kind)||Il(e))}function Fs(e){return e&&x0e(e.kind)}function _N(e){return e.kind===112||e.kind===97}function x0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function TI(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return x0e(e)}}function kV(e){return Yi(e)||M_(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 Nv(e){return e&&(e.kind===177||e.kind===178)}function ku(e){return jo(e)&&R_(e)}function _re(e){return ar(e)&&H6(e)?(!P0(e)||!zv(e.expression))&&!bT(e,!0):e.parent&&di(e.parent)&&jo(e)&&!R_(e)}function AI(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function R0e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function al(e){return Sa(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 iU(e.kind)}function hre(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 hN(e){let t=e.kind;return t===209||t===210}function pF(e){let t=e.kind;return t===208||t===232}function l2(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function gre(e){return Oi(e)||To(e)||d2(e)||u2(e)}function c2(e){return wV(e)||OV(e)}function wV(e){switch(e.kind){case 206:case 210:return!0}return!1}function d2(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function OV(e){switch(e.kind){case 207:case 209:return!0}return!1}function u2(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Mc(e,!0)}function 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 WV(e){return A0(e)||G0(e)}function A0(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function E_(e){return e.kind===213||e.kind===214}function II(e){let t=e.kind;return t===228||t===15}function $u(e){return D0e(vm(e).kind)}function D0e(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 FV(e){return C0e(vm(e).kind)}function C0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return D0e(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 T0(e)}}function ht(e){return U7e(vm(e).kind)}function U7e(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 C0e(e)}}function uT(e){let t=e.kind;return t===216||t===234}function N0e(e){return cH(e)||V4(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 Ll(e)||Yl(e)}function Tre(e){return gt(e,Sre)}function fF(e){return!E2(e)&&!Ll(e)&&!$r(e,32)&&!Ld(e)}function p2(e){return E2(e)||Ll(e)||$r(e,32)}function Vx(e){return e.kind===249||e.kind===250}function mF(e){return Ho(e)||ht(e)}function zV(e){return Ho(e)}function bf(e){return Uc(e)||ht(e)}function Are(e){let t=e.kind;return t===268||t===267||t===80}function P0e(e){let t=e.kind;return t===268||t===267}function M0e(e){let t=e.kind;return t===80||t===267}function BV(e){let t=e.kind;return t===275||t===274}function f2(e){return e.kind===267||e.kind===266}function S_(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 dh(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 H7e(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 Kd(e){return e.kind===168?e.parent&&e.parent.kind!==352||ar(e):H7e(e.kind)}function Rre(e){return Ire(e.kind)}function m2(e){return xre(e.kind)}function Hi(e){let t=e.kind;return xre(t)||Ire(t)||K7e(e)}function K7e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!C0(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 gN(e){let t=e.kind;return t===110||t===80||t===211||t===295}function _2(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 Nre(e){let t=e.kind;return t===11||t===294}function su(e){let t=e.kind;return t===286||t===285}function hF(e){let t=e.kind;return t===296||t===297}function jx(e){return e.kind>=316&&e.kind<=357}function gF(e){return e.kind===327||e.kind===326||e.kind===328||xI(e)||Ux(e)||BT(e)||bE(e)}function Ux(e){return e.kind>=334&&e.kind<=357}function Py(e){return e.kind===178}function Mv(e){return e.kind===177}function wp(e){if(!H2(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function yF(e){return!!e.type}function Lv(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 GV(e){return e.kind===291||e.kind===293||Pg(e)}function vF(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(Qb(l,Na(l,s.end+1,!1,!0)),Hh(l,e.pos)):Qb(l,Na(l,e.pos,!1,!0));return gt(d)&&L0e(Ja(d),t)}let i=r&&lj(r,t);return!!gn(i,o=>L0e(o,t))}var h2,UV,Mre,J7e=bt({"src/compiler/utilitiesPublic.ts"(){"use strict";Zo(),h2=e2(yd(0,0),0),UV=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Mre=1073741823}});function ul(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Lre(e,t){return Vr(e.declarations||Ye,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 uh(e){return(e.flags&33554432)!==0}function q7e(){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||kre(e,t)}function kre(e,t){return Hx(e,t,p3)}function wre(e,t){return Hx(e,t,ZH)}function Hx(e,t,r){return e!==t&&r.some(i=>!z6(D6(e,i),D6(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 Gc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function ph(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 yN(e){let t=Ek.getText();try{return e(Ek),Ek.getText()}finally{Ek.clear(),Ek.writeKeyword(t)}}function g2(e){return e.end-e.pos}function HV(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&&X7e(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&&(uu(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(Th+"@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 X7e(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 kv(e){return`${TF(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 KV(e,t,r,i){R.assert(e.length===t.length);for(let o=0;o=0),Dg(t)[e]}function k0e(e){let t=Vn(e),r=ys(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function v2(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 zl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Kf(e){return!zl(e)}function Bre(e,t){return _l(e)?t===e.expression:Il(e)?t===e.modifiers:hp(e)?t===e.initializer:jo(e)?t===e.questionToken&&ku(e):_c(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||b2(e.modifiers,t,al):ep(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||b2(e.modifiers,t,al):Hl(e)?t===e.exclamationToken:Pl(e)?t===e.typeParameters||t===e.type||b2(e.typeParameters,t,_l):Zp(e)?t===e.typeParameters||b2(e.typeParameters,t,_l):gp(e)?t===e.typeParameters||t===e.type||b2(e.typeParameters,t,_l):Uk(e)?t===e.modifiers||b2(e.modifiers,t,al):!1}function b2(e,t,r){return!e||So(t)||!r(t)?!1:zo(e,t)}function w0e(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 sE(e,t,r){return zl(e)?e.pos:jx(e)||e.kind===12?Na((t||Vn(e)).text,e.pos,!1,!0):r&&wp(e)?sE(e.jsDoc[0],t):e.kind===358&&e._children.length>0?sE(e._children[0],t,r):Na((t||Vn(e)).text,e.pos,!1,!1,M2(e))}function XV(e,t){let r=!zl(e)&&xm(e)?uI(e.modifiers,Ed):void 0;return r?Na((t||Vn(e)).text,r.end):sE(e,t)}function I0(e,t,r=!1){return vN(e.text,t,r)}function $7e(e){return!!Fn(e,eS)}function RF(e){return!!(Yl(e)&&e.exportClause&&bh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function vN(e,t,r=!1){if(zl(t))return"";let i=e.substring(r?t.pos:Na(e,t.pos),t.end);return $7e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function pc(e,t=!1){return I0(Vn(e),e,t)}function Q7e(e){return e.pos}function Jx(e,t){return Sy(e,t,Q7e,tl)}function za(e){let t=e.emitNode;return t&&t.flags||0}function bm(e){let t=e.emitNode;return t&&t.internalFlags||0}function Vre(e,t,r){if(t&&Z7e(e,r))return I0(t,e);switch(e.kind){case 11:{let i=r&2?zj:r&1||za(e)&16777216?eg:nk;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:nk,o=e.rawText??Wj(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 Z7e(e,t){if(Xs(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(_p(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!L4(e)}function jre(e){return Co(e)?'"'+nk(e)+'"':""+e}function Ure(e){return rc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function YV(e){return(Cy(e)&7)!==0||$V(e)}function $V(e){let t=x_(e);return t.kind===260&&t.parent.kind===299}function Ld(e){return Xl(e)&&(e.name.kind===11||T_(e))}function DF(e){return Xl(e)&&e.name.kind===11}function QV(e){return Xl(e)&&Da(e.name)}function Hre(e){return Xl(e)||Fe(e)}function bN(e){return eBe(e.valueDeclaration)}function eBe(e){return!!e&&e.kind===267&&!e.body}function Kre(e){return e.kind===312||e.kind===267||Gx(e)}function T_(e){return!!(e.flags&2048)}function x0(e){return Ld(e)&&ZV(e)}function ZV(e){switch(e.parent.kind){case 312:return ac(e.parent);case 268:return Ld(e.parent.parent)&&Yi(e.parent.parent.parent)&&!ac(e.parent.parent.parent)}return!1}function ej(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!x0(r)&&!(Xl(r)&&T_(r)))}function tBe(e){return e===1||e===100||e===199}function RI(e,t){return ac(e)||tBe(kd(t))&&!!e.commonJsModuleIndicator}function tj(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:du(t,"alwaysStrict")||wae(e.statements)?!0:ac(e)||tm(t)?kd(t)>=5?!0:!t.noImplicitUseStrict:!1}function nj(e){return!!(e.flags&33554432)||$r(e,128)}function rj(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!Gx(t)}return!1}function ij(e){switch(R.type(e),e.kind){case 345:case 353:case 330:return!0;default:return oj(e)}}function oj(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 Jre(e){return mT(e)||N0(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 qre(e){return E2(e)||Xl(e)||og(e)||Wp(e)}function E2(e){return mT(e)||Yl(e)}function aj(e){return Fn(e.parent,t=>!!(yK(t)&1))}function fh(e){return Fn(e.parent,t=>rj(t,t.parent))}function Xre(e,t){let r=fh(e);for(;r;)t(r),r=fh(r)}function xs(e){return!e||g2(e)===0?"(Missing)":pc(e)}function Yre(e){return e.declaration?xs(e.declaration.parameters[0].name):void 0}function S2(e){return e.kind===167&&!Qp(e.expression)}function EN(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 ml(e.text);case 167:return Qp(e.expression)?ml(e.expression.text):void 0;case 295:return VI(e);default:return R.assertNever(e)}}function qx(e){return R.checkDefined(EN(e))}function pp(e){switch(e.kind){case 110:return"this";case 81:case 80:return g2(e)===0?vr(e):pc(e);case 166:return pp(e.left)+"."+pp(e.right);case 211:return Fe(e.name)||Ki(e.name)?pp(e.expression)+"."+pp(e.name):R.assertNever(e.name);case 318:return pp(e.left)+pp(e.right);case 295:return pp(e.namespace)+":"+pp(e.name);default:return R.assertNever(e)}}function Pr(e,t,...r){let i=Vn(e);return Jf(i,e,t,...r)}function Xx(e,t,r,...i){let o=Na(e.text,t.pos);return Zc(e,o,t.end-o,r,...i)}function Jf(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 T2(e,t,r,i){let o=Na(e.text,t.pos);return NF(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 NF(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 sj(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 mh(e,t){let r=Dy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return uc(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 nBe(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 uc(s,l)}case 253:case 229:{let s=Na(e.text,t.pos);return mh(e,s)}case 238:{let s=Na(e.text,t.expression.end);return mh(e,s)}case 357:{let s=Na(e.text,t.tagName.pos);return mh(e,s)}}if(r===void 0)return mh(e,t.pos);R.assert(!Qm(r));let i=zl(r),o=i||qI(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")),uc(o,r.end)}function Op(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function qf(e){return e.scriptKind===6}function R0(e){return!!(tE(e)&4096)}function PF(e){return!!(tE(e)&8&&!up(e,e.parent))}function A2(e){return(Cy(e)&7)===6}function I2(e){return(Cy(e)&7)===4}function Yx(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 Wp(e){return e.kind===213&&e.expression.kind===102}function $x(e){return gP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Ov(e){return og(e)&&Jv(e.argument)&&Da(e.argument.literal)}function Em(e){return e.kind===244&&e.expression.kind===11}function x2(e){return!!(za(e)&2097152)}function LF(e){return x2(e)&&Sc(e)}function rBe(e){return Fe(e.name)&&!e.initializer}function kF(e){return x2(e)&&Ml(e)&&oo(e.declarationList.declarations,rBe)}function lj(e,t){return e.kind!==12?Hh(t.text,e.pos):void 0}function cj(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(Qb(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 z0e(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 z0e(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 z0e(e){return q4(e.parent)||d1(e.parent)||ef(e.parent)&&!_6(e)}function B0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function D0(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(Yo(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Yh(i)||Bo(i,r)}}}function dj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ih(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 SN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function iie(e){return ar(e)?Ma(e.parent)&&pr(e.parent.parent)&&Bl(e.parent.parent)===2||wF(e.parent):!1}function wF(e){return ar(e)?pr(e)&&Bl(e)===1:!1}function oie(e){return(Oi(e)?Yx(e)&&Fe(e.name)&&SN(e):jo(e)?FN(e)&&fc(e):hp(e)&&FN(e))||wF(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 uj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function C0(e){return e&&e.kind===241&&Yo(e.parent)}function Sm(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 sie(e){return e&&e.kind===1}function G0e(e){return e&&e.kind===0}function Zx(e,t,r,i){return gn(e?.properties,o=>{if(!_c(o))return;let s=EN(o.name);return t===s||i&&i===s?r(o):void 0})}function lie(e,t,r){return Zx(e,t,i=>pu(i.initializer)?Gr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function TN(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ri(t,Ma)}}function WF(e,t,r){return R2(e,t,i=>pu(i.initializer)?Gr(i.initializer.elements,o=>Da(o)&&o.text===r):void 0)}function R2(e,t,r){return Zx(TN(e),t,r)}function Fp(e){return Fn(e.parent,Yo)}function cie(e){return Fn(e.parent,Fs)}function sd(e){return Fn(e.parent,di)}function die(e){return Fn(e.parent,t=>di(t)||Yo(t)?"quit":Il(t))}function FF(e){return Fn(e.parent,Gx)}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 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 BF(e){Fe(e)&&(Tc(e.parent)||Sc(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 D2(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 V0e(e){return e.kind===108||Ou(e)}function Ou(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function C2(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 fie(e){return!!e&&(ep(e)||_c(e))&&pr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function N2(e){switch(e.kind){case 183:return e.typeName;case 233:return Gl(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&&ou(t)&&Ki(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Tc(r):di(r)&&!F0(t)&&!Hj(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Tc(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&w0(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function eR(e,t,r,i){return Ef(t)&&jF(e,t,r,i)}function P2(e,t,r,i){return eR(e,t,r,i)||AN(e,t,r)}function AN(e,t,r){switch(t.kind){case 263:return gt(t.members,i=>P2(e,i,t,r));case 231:return!e&>(t.members,i=>P2(e,i,t,r));case 174:case 178:case 176:return gt(t.parameters,i=>eR(e,i,t,r));default:return!1}}function My(e,t){if(eR(e,t))return!0;let r=tg(t);return!!r&&AN(e,r,t)}function pj(e,t,r){let i;if(Nv(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=xT(r.members,t),d=Ef(o)?o:s&&Ef(s)?s:void 0;if(!d||t!==d)return!1;i=l?.parameters}else Hl(t)&&(i=t.parameters);if(eR(e,t,r))return!0;if(i){for(let o of i)if(!O0(o)&&eR(e,o,t,r))return!0}return!1}function fj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return fj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function tR(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!ef(e.parent)&&!d1(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||xI(e.parent)||AP(e.parent)||vE(e.parent)||tR(e);case 318:for(;vE(e.parent);)e=e.parent;return e.parent.kind===186||xI(e.parent)||AP(e.parent)||vE(e.parent)||tR(e);case 81:return pr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||xI(e.parent)||AP(e.parent)||vE(e.parent)||tR(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 mie(e){return bh(e)&&!!e.parent.moduleSpecifier}function lE(e){return e.kind===271&&e.moduleReference.kind===283}function IN(e){return R.assert(lE(e)),e.moduleReference.expression}function mj(e){return N0(e)&&bR(e.initializer).arguments[0]}function nR(e){return e.kind===271&&e.moduleReference.kind!==283}function lu(e){return ar(e)}function j0e(e){return!ar(e)}function ar(e){return!!e&&!!(e.flags&524288)}function KF(e){return!!e&&!!(e.flags&134217728)}function _j(e){return!qf(e)}function M2(e){return!!e&&!!(e.flags&16777216)}function JF(e){return xf(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 U0e(e,!1)}function N0(e){return U0e(e,!0)}function _ie(e){return Xa(e)&&N0(e.parent.parent)}function U0e(e,t){return Oi(e)&&!!e.initializer&&Su(t?bR(e.initializer):e.initializer,!0)}function hj(e){return Ml(e)&&e.declarationList.declarations.length>0&&oo(e.declarationList.declarations,t=>qF(t))}function L2(e){return e===39||e===34}function XF(e,t){return I0(t,e).charCodeAt(0)===34}function xN(e){return pr(e)||Ls(e)||Fe(e)||ra(e)}function k2(e){return ar(e)&&e.initializer&&pr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Gl(e.name)&&rR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function w2(e){let t=k2(e);return t&&cE(t,zv(e.name))}function iBe(e,t){return gn(e.properties,r=>_c(r)&&Fe(r.name)&&r.name.escapedText==="value"&&r.initializer&&cE(r.initializer,t))}function DI(e){if(e&&e.parent&&pr(e.parent)&&e.parent.operatorToken.kind===64){let t=zv(e.parent.left);return cE(e.parent.right,t)||oBe(e.parent.left,e.parent.right,t)}if(e&&ra(e)&&vT(e)){let t=iBe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function cE(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 oBe(e,t,r){let i=pr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&cE(t.right,r);if(i&&rR(e,t.left))return i}function hie(e){let t=Oi(e.parent)?e.parent.name:pr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&cE(e.right,zv(t))&&Gl(t)&&rR(t,e.left)}function gj(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 rR(e,t){return I_(e)&&I_(t)?Yf(e)===Yf(t):Jh(e)&&YF(t)&&(t.expression.kind===110||Fe(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?rR(e,F2(t)):YF(e)&&YF(t)?Lg(e)===Lg(t)&&rR(e.expression,t.expression):!1}function O2(e){for(;Mc(e,!0);)e=e.right;return e}function yT(e){return Fe(e)&&e.escapedText==="exports"}function yj(e){return Fe(e)&&e.escapedText==="module"}function Qh(e){return(kr(e)||W2(e))&&yj(e.expression)&&Lg(e)==="exports"}function Bl(e){let t=aBe(e);return t===5||ar(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"&&Qp(e.arguments[1])&&bT(e.arguments[0],!0)}function YF(e){return kr(e)||W2(e)}function W2(e){return Ys(e)&&Qp(e.argumentExpression)}function P0(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||Gl(e.expression)||P0(e.expression,!0))}function bT(e,t){return Gl(e)||P0(e,t)}function F2(e){return kr(e)?e.name:e.argumentExpression}function aBe(e){if(ra(e)){if(!vT(e))return 0;let t=e.arguments[0];return yT(t)||Qh(t)?8:P0(t)&&Lg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ls(e.left)||sBe(O2(e))?0:bT(e.left.expression,!0)&&Lg(e.left)==="prototype"&&Ma(vj(e))?6:z2(e.left)}function sBe(e){return i1(e)&&_p(e.expression)&&e.expression.text==="0"}function QF(e){if(kr(e))return e.name;let t=ms(e.argumentExpression);return _p(t)||ss(t)?t:e}function Lg(e){let t=QF(e);if(t){if(Fe(t))return t.escapedText;if(ss(t)||_p(t))return ml(t.text)}}function z2(e){if(e.expression.kind===110)return 4;if(Qh(e))return 2;if(bT(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"&&Lg(t)==="exports")&&P0(e))return 1;if(bT(e,!0)||Ys(e)&&i6(e))return 5}return 0}function vj(e){for(;pr(e.right);)e=e.right;return e.right}function B2(e){return pr(e)&&Bl(e)===3}function gie(e){return ar(e)&&e.parent&&e.parent.kind===244&&(!Ys(e)||W2(e))&&!!rE(e.parent)}function G2(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!ar(t)&&!(r.flags&33554432))&&xN(r)&&!xN(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&&Yo(t.initializer)}function iR(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,Eh))==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 Ov(e)?e.argument.literal:void 0;default:R.assertNever(e)}}function RN(e){return V2(e)||R.failBadSyntaxKind(e.parent)}function V2(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Wp(e.parent)||Su(e.parent,!1)?e.parent:void 0;case 201:return R.assert(Da(e)),ri(e.parent.parent,og);default:return}}function oR(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 aR(e){switch(e.kind){case 272:return e.importClause&&ri(e.importClause.namedBindings,Yv);case 271:return e;case 278:return e.exportClause&&ri(e.exportClause,bh);default:return R.assertNever(e)}}function CI(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=Yv(e.namedBindings)?t(e.namedBindings):gn(e.namedBindings.elements,t);if(r)return r}}function NI(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 sR(e){let t=FR(e)?Yc(e.parameters):void 0,r=ri(t&&t.name,Fe);return!!r&&r.escapedText==="new"}function Xf(e){return e.kind===353||e.kind===345||e.kind===347}function j2(e){return Xf(e)||Im(e)}function lBe(e){return td(e)&&pr(e.expression)&&e.expression.operatorToken.kind===64?O2(e.expression):void 0}function H0e(e){return td(e)&&pr(e.expression)&&Bl(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 bj(e){switch(e.kind){case 243:let t=PI(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function PI(e){return Ml(e)?Yc(e.declarationList.declarations):void 0}function K0e(e){return Xl(e)&&e.body&&e.body.kind===267?e.body:void 0}function U2(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 H2(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 Ej(e,t){let r;Qx(e)&&Lv(e)&&wp(e.initializer)&&(r=Ur(r,J0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(wp(i)&&(r=Ur(r,J0e(e,i.jsDoc))),i.kind===169){r=Ur(r,(t?Qne:Fx)(i));break}if(i.kind===168){r=Ur(r,(t?ere:Zne)(i));break}i=Sj(i)}return r||Ye}function J0e(e,t){let r=Ja(t);return ya(t,i=>{if(i===r){let o=Vr(i.tags,s=>cBe(e,s));return i.tags===o?[i]:o}else return Vr(i.tags,zR)})}function cBe(e,t){return!(IP(t)||X4(t))||!t.parent||!Qm(t.parent)||!Fu(t.parent.parent)||t.parent.parent===e}function Sj(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||K0e(t)||Mc(e))return t;if(t.parent&&(PI(t.parent)===e||Mc(t)))return t.parent;if(t.parent&&t.parent.parent&&(PI(t.parent.parent)||bj(t.parent.parent)===e||H0e(t.parent.parent)))return t.parent.parent}function K2(e){if(e.symbol)return e.symbol;if(!Fe(e.name))return;let t=e.name.escapedText,r=dE(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(Qm(e.parent)&&e.parent.tags){let t=Gr(e.parent.tags,Xf);if(t)return t}return dE(e)}function Tj(e){return oF(e,zR)}function dE(e){let t=uE(e);if(t)return hp(t)&&t.type&&Yo(t.type)?t.type:Yo(t)?t:void 0}function uE(e){let t=ET(e);if(t)return H0e(t)||lBe(t)||bj(t)||PI(t)||K0e(t)||t}function ET(e){let t=lR(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Zs(r.jsDoc))return r}function lR(e){return Fn(e.parent,Qm)}function vie(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Gr(r,i=>i.name.escapedText===t)}function q0e(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 MI(e){let t=bie(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||zN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Zh(e){return!!bie(e)}function dBe(e){let t=ms(e.right);return t.kind===226&&DH(t.operatorToken.kind)}function Aj(e){let t=bie(e);return!!t&&Mc(t,!0)&&dBe(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 ks(e)||zs(e)||AI(e)||Sc(e)||Pl(e)}function X0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function J2(e){return X0e(e,196)}function Ly(e){return X0e(e,217)}function Tie(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function q2(e){for(;MT(e);)e=e.type;return e}function ms(e,t){return $l(e,t?17:1)}function Ij(e){return e.kind!==211&&e.kind!==212?!1:(e=Ly(e.parent),e&&e.kind===220)}function M0(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 DN(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if($a(t))return t.parent;case 80:if(Kd(t))return t.name===e?t:void 0;if(Au(t)){let r=t.parent;return Zm(r)&&r.name===t?r:void 0}else{let r=t.parent;return pr(r)&&Bl(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 X2(e){return Qp(e)&&e.parent.kind===167&&Kd(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 Y0e(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&&cR(e)?!0:ar(e)&&(pr(e)&&Bl(e)===2&&cR(e)||kr(e)&&pr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&Y2(e.parent.right))}function xj(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 xj(e)}}function Y2(e){return Gl(e)||ed(e)}function cR(e){let t=Rj(e);return Y2(t)}function Rj(e){return Ll(e)?e.expression:e.right}function Iie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function A_(e){let t=L0(e);if(t&&ar(e)){let r=nre(e);if(r)return r.class}return t}function L0(e){let t=$2(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function dR(e){if(ar(e))return rre(e).map(t=>t.class);{let t=$2(e.heritageClauses,119);return t?.types}}function CN(e){return fu(e)?NN(e)||Ye:di(e)&&bo(hI(A_(e)),dR(e))||Ye}function NN(e){let t=$2(e.heritageClauses,96);return t?t.types:void 0}function $2(e,t){if(e){for(let r of e)if(r.token===t)return r}}function pE(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Wu(e){return 83<=e&&e<=165}function Dj(e){return 19<=e&&e<=79}function t6(e){return Wu(e)||Dj(e)}function n6(e){return 128<=e&&e<=165}function Cj(e){return Wu(e)&&!n6(e)}function $0e(e){return 119<=e&&e<=127}function LI(e){let t=b0(e);return t!==void 0&&Cj(t)}function Q0e(e){let t=b0(e);return t!==void 0&&Wu(t)}function Nj(e){let t=nE(e);return!!t&&!n6(t)}function uR(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 PN(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 Qp(e){return ss(e)||_p(e)}function r6(e){return Xv(e)&&(e.operator===40||e.operator===41)&&_p(e.operand)}function Wv(e){let t=No(e);return!!t&&i6(t)}function i6(e){if(!(e.kind===167||e.kind===212))return!1;let t=Ys(e)?ms(e.argumentExpression):e.expression;return!Qp(t)&&!r6(t)}function ST(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return ml(e.text);case 167:let t=e.expression;return Qp(t)?ml(t.text):r6(t)?t.operator===41?ca(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return VI(e);default:return R.assertNever(e)}}function I_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Yf(e){return Jh(e)?vr(e):$m(e)?sP(e):e.text}function MN(e){return Jh(e)?e.escapedText:$m(e)?VI(e):ml(e.text)}function Z0e(e){return`__@${va(e)}@${e.escapedName}`}function Q2(e,t){return`__#${va(e)}@${t}`}function Z2(e){return ao(e.escapedName,"__@")}function xie(e){return ao(e.escapedName,"__#")}function eSe(e){return e.kind===80&&e.escapedText==="Symbol"}function Rie(e){return Fe(e)?vr(e)==="__proto__":Da(e)&&e.text==="__proto__"}function LN(e,t){switch(e=$l(e),e.kind){case 231:if(BK(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 Pj(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 fp(e,t){if(!Pj(e))return!1;switch(e.kind){case 303:return LN(e.initializer,t);case 304:return LN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return LN(e.initializer,t);case 226:return LN(e.right,t);case 277:return LN(e.expression,t)}}function Mj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function k0(e){return x_(e).kind===169}function x_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Lj(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 Xs(e){return Xm(e.pos)||Xm(e.end)}function tSe(e){return Ro(e,Yi)||e}function kj(e){let t=Oj(e),r=e.kind===214&&e.arguments!==void 0;return wj(e.kind,t,r)}function wj(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 kN(e){let t=Oj(e),r=e.kind===214&&e.arguments!==void 0;return ek(e.kind,t,r)}function Oj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function ek(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 tk(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 tk(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 pR(e){return Vr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function fR(){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,el,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),bv(t,p.file.fileName,jd))):(i&&(i=!1,e=e.slice()),h=e),bv(h,p,I6)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=UC(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Wj(e){return e.replace(RSe,"\\${")}function Die(e){return!!((e.templateFlags||0)&2048)}function Fj(e){return e&&!!(XI(e)?Die(e):Die(e.head)||gt(e.templateSpans,t=>Die(t.literal)))}function nSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function uBe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return PSe.get(e)||nSe(e.charCodeAt(0))}function eg(e,t){let r=t===96?NSe:t===39?CSe:DSe;return e.replace(r,uBe)}function nk(e,t){return e=eg(e,t),Foe.test(e)?e.replace(Foe,r=>nSe(r.charCodeAt(0))):e}function pBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fBe(e){return e.charCodeAt(0)===0?"�":kSe.get(e)||pBe(e.charCodeAt(0))}function zj(e,t){let r=t===39?LSe:MSe;return e.replace(r,fBe)}function $f(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&mBe(e.charCodeAt(0))?e.substring(1,t-1):e}function mBe(e){return e===39||e===34||e===96}function mR(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function o6(e){let t=lP[1];for(let r=lP.length;r<=e;r++)lP.push(lP[r-1]+t);return lP[e]}function _R(){return lP[1].length}function rk(e){var t,r,i,o,s,l=!1;function d(D){let w=bI(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*_R():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 Bj(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 hR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function ky(e){return Pd(hR(e))}function a6(e,t,r){return t.moduleName||Gj(e,t.fileName,r&&r.fileName)}function rSe(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=oR(r);if(!(o&&ss(o)&&!kp(o.text)&&!rSe(e,i.path).includes(rSe(e,Bc(e.getCommonSourceDirectory())))))return a6(e,i)}function Gj(e,t,r){let i=p=>e.getCanonicalFileName(p),o=rl(r?oi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=_o(t,e.getCurrentDirectory()),l=vI(o,s,o,i,!1),d=Tu(l);return r?v0(d):d}function Nie(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Tu(d6(e,t,i.outDir)):o=Tu(e),o+r}function Pie(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 Ec(e,[".mjs",".mts"])?".d.mts":Ec(e,[".cjs",".cts"])?".d.cts":Ec(e,[".json"])?".d.json.ts":".d.ts"}function Mie(e){return Ec(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ec(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ec(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 Vj(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||!ac(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&&lu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!qf(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(YP(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 wN(e,t,r,i,o,s,l){e.writeFile(r,i,o,d=>{t.add(Ul(f.Could_not_write_file_0_Colon_1,r,d))},s,l)}function iSe(e,t,r){if(e.length>ch(e)&&!r(e)){let i=oi(e);iSe(i,t,r),t(e)}}function jj(e,t,r,i,o,s){try{i(e,t,r)}catch{iSe(oi(fa(e)),o,s),i(e,t,r)}}function ON(e,t){let r=Dg(e);return rN(r,t)}function AT(e,t){return rN(e,t)}function tg(e){return Gr(e.members,t=>Pl(t)&&Kf(t.body))}function WN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&O0(e.parameters[0]);return e.parameters[t?1:0]}}function Lie(e){let t=WN(e);return t&&t.type}function w0(e){if(e.parameters.length&&!bE(e)){let t=e.parameters[0];if(O0(t))return t}}function O0(e){return W0(e.name)}function W0(e){return!!e&&e.kind===80&&Uj(e)}function IT(e){return!!Fn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function kI(e){if(!W0(e))return!1;for(;Au(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Uj(e){return e.escapedText==="this"}function xT(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=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(!ar(e)&&Sc(e))return;let t=e.type;return t||!ar(e)?t:pN(e)?e.typeExpression&&e.typeExpression.type:iE(e)}function kie(e){return e.type}function Qf(e){return bE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(ar(e)?n2(e):void 0)}function p6(e){return ya(oE(e),t=>_Be(t)?t.typeParameters:void 0)}function _Be(e){return rm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Xf)||e.parent.tags.some(zR)))}function wie(e){let t=WN(e);return t&&vd(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&&AT(e,r)!==AT(e,i[0].pos)&&t.writeLine()}function Fie(e,t,r,i){r!==i&&AT(e,r)!==AT(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=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,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:Ja(m).end})}}return p;function h(m){return xF(e,m.pos)}}function gR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=kx(t,i),d=t.length,p;for(let h=i,m=l.line;h0){let A=S%_R(),N=o6((S-A)/_R());for(r.rawWrite(N);A;)r.rawWrite(" "),A--}else r.rawWrite("")}hBe(e,o,r,s,h,y),h=y}}else r.writeComment(e.substring(i,o))}function hBe(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 oSe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Kj(e)|536870912),r||t&&ar(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=aSe(e)|268435456),sSe(e.modifierFlagsCache)):gBe(e.modifierFlagsCache))}function cu(e){return jie(e,!0)}function Uie(e){return jie(e,!0,!0)}function Fv(e){return jie(e,!1)}function aSe(e){let t=0;return e.parent&&!To(e)&&(ar(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 gBe(e){return e&65535}function sSe(e){return e&131071|(e&260046848)>>>23}function yBe(e){return sSe(aSe(e))}function Hie(e){return Kj(e)|yBe(e)}function Kj(e){let t=xm(e)?D_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function D_(e){let t=0;if(e)for(let r of e)t|=OI(r.kind);return t}function OI(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 lSe(e){return e===57||e===56}function Kie(e){return lSe(e)||e===54}function zN(e){return e===76||e===77||e===78}function Jj(e){return pr(e)&&zN(e.operatorToken.kind)}function ik(e){return lSe(e)||e===61}function ok(e){return pr(e)&&ik(e.operatorToken.kind)}function wy(e){return e>=64&&e<=79}function qj(e){let t=Xj(e);return t&&!t.isImplements?t.class:void 0}function Xj(e){if(Gy(e)){if(ef(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(d1(e.parent)){let t=uE(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Mc(e,t){return pr(e)&&(t?e.operatorToken.kind===64:wy(e.operatorToken.kind))&&$u(e.left)}function cSe(e){return Mc(e.parent)&&e.parent.left===e}function Oy(e){if(Mc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function _6(e){return qj(e)!==void 0}function Gl(e){return e.kind===80||ak(e)}function zp(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 BN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&BN(e.expression)||e.kind===217&&BN(e.expression)}function ak(e){return kr(e)&&Fe(e.name)&&Gl(e.expression)}function sk(e){if(kr(e)){let t=sk(e.expression);if(t!==void 0)return t+"."+pp(e.name)}else if(Ys(e)){let t=sk(e.expression);if(t!==void 0&&ic(e.argumentExpression))return t+"."+ST(e.argumentExpression)}else{if(Fe(e))return Vi(e.escapedText);if($m(e))return sP(e)}}function zv(e){return P0(e)&&Lg(e)==="prototype"}function GN(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 Yj(e){return!!e.parent&&(kr(e.parent)&&e.parent.name===e||Ys(e.parent)&&e.parent.argumentExpression===e)}function Jie(e){return Au(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e||vE(e.parent)&&e.parent.right===e}function h6(e){return pr(e)&&e.operatorToken.kind===104}function qie(e){return h6(e.parent)&&e===e.parent.right}function $j(e){return e.kind===210&&e.properties.length===0}function Xie(e){return e.kind===209&&e.elements.length===0}function yR(e){if(!(!vBe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function vBe(e){return e&&Nn(e.declarations)>0&&$r(e.declarations[0],2048)}function g6(e){return Gr(zSe,t=>Tl(e,t))}function bBe(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=bBe(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 EBe(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 EBe(i)}function Qj(e,t){let r=Co(t)?t:t.readFile(e);if(!r)return;let i=GH(e,r);return i.error?void 0:i.config}function VN(e,t){return Qj(e,t)||{}}function y6(e){try{return JSON.parse(e)}catch{return}}function Jm(e,t){return!t.directoryExists||t.directoryExists(e)}function Wy(e){switch(e.newLine){case 0:return wSe;case 1:case void 0:return OSe}}function Sf(e,t=e){return R.assert(t>=e||t===-1),{pos:e,end:t}}function v6(e,t){return Sf(e.pos,t)}function fE(e,t){return Sf(t,e.end)}function wg(e){let t=xm(e)?uI(e.modifiers,Ed):void 0;return t&&!Xm(t.end)?fE(e,t.end):e}function C_(e){if(jo(e)||Hl(e))return fE(e,e.name.pos);let t=xm(e)?Zs(e.modifiers):void 0;return t&&!Xm(t.end)?fE(e,t.end):wg(e)}function dSe(e){return e.pos===e.end}function Zj(e,t){return Sf(e,e+ca(t).length)}function RT(e,t){return eoe(e,e,t)}function b6(e,t,r){return Tf(jN(e,r,!1),jN(t,r,!1),r)}function Zie(e,t,r){return Tf(e.end,t.end,r)}function eoe(e,t,r){return Tf(jN(e,r,!1),t.end,r)}function lk(e,t,r){return Tf(e.end,jN(t,r,!1),r)}function eU(e,t,r,i){let o=jN(t,r,i);return iN(r,e.end,o)}function uSe(e,t,r){return iN(r,e.end,t.end)}function toe(e,t){return!Tf(e.pos,e.end,t)}function Tf(e,t,r){return iN(r,e,t)===0}function jN(e,t,r){return Xm(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=SBe(o,t,r);return iN(r,s??t,o)}function roe(e,t,r,i){let o=Na(r.text,e,!1,i);return iN(r,e,Math.min(t,o))}function SBe(e,t=0,r){for(;e-- >t;)if(!Cg(r.text.charCodeAt(e)))return e}function tU(e){let t=Ro(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function UN(e){return Vr(e.declarations,ck)}function ck(e){return Oi(e)&&e.initializer!==void 0}function pSe(e){return e.watch&&Is(e,"watch")}function qm(e){e.close()}function Al(e){return e.flags&33554432?e.links.checkFlags:0}function Af(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Gr(e.declarations,gp)||e.flags&32768&&Gr(e.declarations,Zp)||e.valueDeclaration,i=tE(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 vR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function E6(e){return HN(e)===1}function WI(e){return HN(e)!==0}function HN(e){let{parent:t}=e;switch(t?.kind){case 217:return HN(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:HN(t);case 303:{let s=HN(t.parent);return e===t.name?TBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:HN(t.parent);case 209:return HN(t);default:return 0}}function TBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return R.assertNever(e)}}function nU(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(!nU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function Qu(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 KN(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 ioe(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 fSe(e,t){return!!ym(e,r=>t(r)?!0:void 0)}function S6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Uk(e.declarations[0])}function ooe({moduleSpecifier:e}){return Da(e)?e.text:pc(e)}function rU(e){let t;return Bo(e,r=>{Kf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Kf(r[i])){t=r[i];break}}),t}function Tm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function FI(e){return di(e)||fu(e)||yp(e)}function iU(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 oU(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 T6(e){return e.kind===275||e.kind===279}function bR(e){for(;Ls(e);)e=e.expression;return e}function soe(e,t){if(Ls(e.parent)&&Yj(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 ER(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 ABe(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 IBe(e,t){this.flags=t,(R.isDebugging||or)&&(this.checker=e)}function xBe(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 RBe(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 DBe(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 CBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function coe(e){zoe.push(e),e(ld)}function doe(e){Object.assign(ld,e),gn(zoe,t=>t(ld))}function rg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+R.checkDefined(t[+i]))}function uoe(e){Y6=e}function poe(e){!Y6&&e&&(Y6=e())}function ko(e){return Y6&&Y6[e.key]||e.message}function SR(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=rg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function NBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function mSe(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)NBe(s)&&s.fileName===r?(R.assertLessThanOrEqual(s.start,i),R.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(mSe(s,t))):o.relatedInformation.push(s)}return o}function zI(e,t){let r=[];for(let i of e)r.push(mSe(i,t));return r}function Zc(e,t,r,i,...o){$re(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 aU(e,...t){let r=ko(e);return gt(t)&&(r=rg(r,t)),r}function Ul(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 foe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function _Se(e){return e.file?e.file.path:void 0}function JN(e,t){return I6(e,t)||PBe(e,t)||0}function I6(e,t){return jd(_Se(e),_Se(t))||tl(e.start,t.start)||tl(e.length,t.length)||tl(e.code,t.code)||hSe(e.messageText,t.messageText)||0}function PBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?tl(e.relatedInformation.length,t.relatedInformation.length)||gn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return JN(r,o)})||0:e.relatedInformation?-1:1}function hSe(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 dk(e){return e===4||e===2||e===1||e===6?1:0}function gSe(e){if(e.transformFlags&2)return su(e)||Y0(e)?e:Bo(e,gSe)}function MBe(e){return e.isDeclarationFile?void 0:gSe(e)}function LBe(e){return(e.impliedNodeFormat===99||Ec(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function uk(e){switch(NU(e)){case 3:return o=>{o.externalModuleIndicator=tw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=tw(o)};case 2:let t=[tw];(e.jsx===4||e.jsx===5)&&t.push(MBe),t.push(LBe);let r=Km(...t);return o=>void(o.externalModuleIndicator=r(o))}}function vbt(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 sU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function moe(e){return e.allowUnreachableCode===!1}function _oe(e){return e.allowUnusedLabels===!1}function BI(e){return e>=3&&e<=99||e===100}function du(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function hoe(e){return e.useDefineForClassFields!==!1&&rs(e)>=9}function goe(e,t){return Hx(t,e,YH)}function yoe(e,t){return Hx(t,e,$H)}function voe(e,t){return Hx(t,e,QH)}function D6(e,t){return t.strictFlag?du(e,t.name):t.allowJsFlag?jv(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 lU(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=rl(d,e,t);nP(h)||(h=Bc(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(rl(m,e,t),h);let[y,E]=kBe(h,m,e,t)||Ye;y&&E&&d.setSymlinkedDirectory(E,{real:Bc(y),realPath:Bc(rl(y,e,t))})}}function kBe(e,t,r,i){let o=zc(_o(e,r)),s=zc(_o(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!ySe(o[o.length-2],i)&&!ySe(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 ySe(e,t){return e!==void 0&&(t(e)==="node_modules"||ao(e,"@"))}function wBe(e){return cV(e.charCodeAt(0))?e.slice(1):void 0}function dU(e,t,r){let i=$G(e,t,r);return i===void 0?void 0:wBe(i)}function vSe(e){return e.replace(PU,OBe)}function OBe(e){return"\\"+e}function qN(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 ya(e,i=>i&&L6(i,t,r,kU[r]))}function uU(e){return!/[.*?]/.test(e)}function boe(e,t,r){let i=e&&L6(e,t,r,kU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function L6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=kU[r]){let l="",d=!1,p=GL(e,t),h=Ja(p);if(r!=="exclude"&&h==="**")return;p[0]=$b(p[0]),uU(h)&&p.push("**","*");let m=0;for(let y of p){if(y==="**")l+=o;else if(r==="directories"&&(l+="(",m++),d&&(l+=il),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(PU,s),E!==y&&(l+=LU),l+=E}else l+=y.replace(PU,s);d=!0}for(;m>0;)l+=")?",m--;return l}function Eoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function k6(e,t,r,i,o){e=fa(e),o=fa(o);let s=Yr(o,e);return{includeFilePatterns:mn(M6(r,s,"files"),l=>`^${l}$`),includeFilePattern:qN(r,s,"files"),includeDirectoryPattern:qN(r,s,"directories"),excludePattern:qN(t,s,"exclude"),basePaths:WBe(e,r,i)}}function Bv(e,t){return new RegExp(e,t?"":"i")}function pU(e,t,r,i,o,s,l,d,p){e=fa(e),s=fa(s);let h=k6(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=Pd(o);for(let w of h.basePaths)D(w,Yr(s,w),l);return mm(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&&!Ec(ee,t))&&!(E&&E.test(me)))if(!m)S[0].push(ee);else{let ge=Jl(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 WBe(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=dp(s)?s:fa(Yr(e,s));o.push(FBe(l))}o.sort(Ix(!r));for(let s of o)oo(i,l=>!hm(l,s,e,!r))&&i.push(s)}return i}function FBe(e){let t=Xte(e,WSe);return t<0?yI(e)?$b(oi(e)):e:e.substring(0,e.lastIndexOf(il,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 XN(e,t){let r=e&&jv(e);if(!t||t.length===0)return r?Z6:RR;let i=r?Z6:RR,o=mm(i);return[...i,...to(t,l=>l.scriptKind===7||r&&zBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function pk(e,t){return!e||!hE(e)?t:t===Z6?BSe:t===RR?FSe:[...t,[".json"]]}function zBe(e){return e===1||e===2}function z0(e){return gt(DR,t=>Tl(e,t))}function GI(e){return gt(wU,t=>Tl(e,t))}function Soe({imports:e},t=Km(z0,GI)){return Fl(e,({text:r})=>kp(r)&&!Ec(r,Ik)?t(r):void 0)||!1}function Toe(e,t,r,i){let o=uu(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return ZR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!ZR(r))return Soe(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:lu(i)?BBe(i).map(h=>h.arguments[0]):Ye;for(let h of p)if(kp(h.text)){if(s&&t===1&&pJ(i,h,r)===99||Ec(h.text,Ik))continue;if(GI(h.text))return 3;z0(h.text)&&(d=!0)}return d?2:0}}function BBe(e){let t=0,r;for(let i of e.statements){if(t>3)break;hj(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||Ye}function Aoe(e,t,r){if(!e)return!1;let i=XN(t,r);for(let o of mm(pk(t,i)))if(Tl(e,o))return!0;return!1}function bSe(e){let t=e.match(/\//g);return t?t.length:0}function fk(e,t){return tl(bSe(e),bSe(t))}function Tu(e){for(let t of FU){let r=Ioe(e,t);if(r!==void 0)return r}return e}function Ioe(e,t){return Tl(e,t)?mk(e,t):void 0}function mk(e,t){return e.substring(0,e.length-t.length)}function mE(e,t){return VL(e,t,FU,!1)}function TR(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=>TR(t))}function Xm(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 YN(e){return F6(e)||e===".json"}function $N(e){let t=Wg(e);return t!==void 0?t:R.fail(`File ${e} has unknown extension.`)}function ESe(e){return Wg(e)!==void 0}function Wg(e){return Gr(FU,t=>Tl(e,t))}function _k(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function fU(e,t){let r=[];for(let i of e){if(i===t)return t;Co(i)||r.push(i)}return YG(r,i=>i,t)}function mU(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!==Ye,"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 _U(e){return{pos:sE(e),end:e.end}}function hU(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 QN(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&&rne(e,t,z6)}function ZN(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 B0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Roe(e){if(B6(e,!1))return gU(e)}function gU(e){let t=e.startsWith("-"),r=ZN(`${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===B0({negative:s,base10Value:ZN(r.getTokenValue())}))}function _E(e){return!!(e.flags&33554432)||HF(e)||jBe(e)||VBe(e)||!($h(e)||GBe(e))}function GBe(e){return Fe(e)&&ep(e.parent)&&e.parent.name===e}function VBe(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 jBe(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 xf(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 jT(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Ux(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 _2(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 Z0(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&&O0(t)))return!0}}return!1}function rP(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Loe(e){return e.kind===260&&e.parent.kind===299}function G0(e){return e.kind===218||e.kind===219}function V0(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&&$p(e,t)?L.createIdentifier(e):!i&&!s&&ig(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function iP(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(Th,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(Th,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function SSe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function xR(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 hk(e){return yE(e)||Ml(e)||Sc(e)||Tc(e)||fu(e)||xR(e)||Xl(e)&&!x0(e)&&!T_(e)}function gk(e){if(!pN(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function vU(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 koe(e){var t;return((t=JU(e))==null?void 0:t.kind)===0}function yk(e){return ar(e)&&(e.type&&e.type.kind===323||Fx(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function oP(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||yk(e);case 355:case 348:return gk(e);default:return!1}}function woe(e){let t=e.kind;return(t===211||t===212)&&o1(e.expression)}function bU(e){return ar(e)&&Fu(e)&&wp(e)&&!!IV(e)}function EU(e){return R.checkDefined(U6(e))}function U6(e){let t=IV(e);return t&&t.typeExpression&&t.typeExpression.type}function aP(e){return Fe(e)?e.escapedText:VI(e)}function vk(e){return Fe(e)?vr(e):sP(e)}function Ooe(e){let t=e.kind;return t===80||t===295}function VI(e){return`${e.namespace.escapedText}:${vr(e.name)}`}function sP(e){return`${vr(e.namespace)}:${vr(e.name)}`}function SU(e){return Fe(e)?vr(e):sP(e)}function Zf(e){return!!(e.flags&8576)}function em(e){return e.flags&8192?e.escapedName:e.flags&384?ml(""+e.value):R.fail()}function H6(e){return!!e&&(kr(e)||Ys(e)||pr(e))}function Woe(e){return e===void 0?!1:!!nD(e.attributes)}function jI(e,t){return GSe.call(e,"*",t)}function K6(e){return Fe(e.name)?e.name.escapedText:ml(e.name.text)}var J6,Vv,bk,q6,Ek,X6,TU,AU,TSe,ASe,IU,ISe,xSe,xU,RU,DU,CU,RSe,DSe,CSe,NSe,PSe,Foe,MSe,LSe,kSe,lP,DT,wSe,OSe,ld,zoe,Y6,mc,rs,kd,uu,NU,tm,hh,CT,$6,Q6,hE,If,j0,cP,Sk,jv,dP,PU,WSe,MU,LU,Boe,Goe,Voe,kU,RR,wU,FSe,zSe,OU,DR,Z6,BSe,Tk,Ak,Ik,WU,FU,e4,GSe,HBe=bt({"src/compiler/utilities.ts"(){"use strict";Zo(),J6=[],Vv="tslib",bk=160,q6=1e6,Ek=q7e(),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:Ye})),AsyncIterator:new Map(Object.entries({es2015:Ye})),Atomics:new Map(Object.entries({es2017:Ye})),SharedArrayBuffer:new Map(Object.entries({es2017:Ye})),AsyncIterable:new Map(Object.entries({es2018:Ye})),AsyncIterableIterator:new Map(Object.entries({es2018:Ye})),AsyncGenerator:new Map(Object.entries({es2018:Ye})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ye})),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:Ye,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:Ye})),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:Ye,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ye,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),TU=(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))(TU||{}),AU=/^(\/\/\/\s*/,TSe=/^(\/\/\/\s*/,ASe=/^(\/\/\/\s*/,IU=/^(\/\/\/\s*/,ISe=/^\/\/\/\s*/,xSe=/^(\/\/\/\s*/,xU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(xU||{}),RU=(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))(RU||{}),DU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(DU||{}),CU=(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))(CU||{}),RSe=/\$\{/g,DSe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,CSe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,NSe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,PSe=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,MSe=/["\u0000-\u001f\u2028\u2029\u0085]/g,LSe=/['\u0000-\u001f\u2028\u2029\u0085]/g,kSe=new Map(Object.entries({'"':""","'":"'"})),lP=[""," "],DT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",wSe=`\r `,OSe=` `,ld={getNodeConstructor:()=>loe,getTokenConstructor:()=>RBe,getIdentifierConstructor:()=>DBe,getPrivateIdentifierConstructor:()=>loe,getSourceFileConstructor:()=>loe,getSymbolConstructor:()=>ABe,getTypeConstructor:()=>IBe,getSignatureConstructor:()=>xBe,getSourceMapSourceConstructor:()=>CBe},zoe=[],mc={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:mc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(mc.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||(mc.module.computeValue(e)===100||mc.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(mc.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:mc.esModuleInterop.computeValue(e)||mc.module.computeValue(e)===4||mc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=mc.moduleResolution.computeValue(e);if(!BI(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=mc.moduleResolution.computeValue(e);if(!BI(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:mc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||mc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&mc.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?mc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>du(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>du(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>du(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>du(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>du(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>du(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>du(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>du(e,"useUnknownInCatchVariables")}},rs=mc.target.computeValue,kd=mc.module.computeValue,uu=mc.moduleResolution.computeValue,NU=mc.moduleDetection.computeValue,tm=mc.isolatedModules.computeValue,hh=mc.esModuleInterop.computeValue,CT=mc.allowSyntheticDefaultImports.computeValue,$6=mc.resolvePackageJsonExports.computeValue,Q6=mc.resolvePackageJsonImports.computeValue,hE=mc.resolveJsonModule.computeValue,If=mc.declaration.computeValue,j0=mc.preserveConstEnums.computeValue,cP=mc.incremental.computeValue,Sk=mc.declarationMap.computeValue,jv=mc.allowJs.computeValue,dP=mc.useDefineForClassFields.computeValue,PU=/[^\w\s/]/g,WSe=[42,63],MU=["node_modules","bower_components","jspm_packages"],LU=`(?!(${MU.join("|")})(/|$))`,Boe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${LU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Eoe(e,Boe.singleAsteriskRegexFragment)},Goe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${LU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Eoe(e,Goe.singleAsteriskRegexFragment)},Voe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Eoe(e,Voe.singleAsteriskRegexFragment)},kU={files:Boe,directories:Goe,exclude:Voe},RR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],wU=mm(RR),FSe=[...RR,[".json"]],zSe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],OU=[[".js",".jsx"],[".mjs"],[".cjs"]],DR=mm(OU),Z6=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],BSe=[...Z6,[".json"]],Tk=[".d.ts",".d.cts",".d.mts"],Ak=[".ts",".cts",".mts",".tsx"],Ik=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],WU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(WU||{}),FU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],e4={files:Ye,directories:Ye},GSe=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=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 KBe=bt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Zo()}});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 ke=t.get(De);return ke||(ke=Et=>h(De,Et),t.set(De,ke)),ke}function o(De){r||(r=new Map);let ke=r.get(De);return ke||(ke=Et=>m(De,void 0,Et),r.set(De,ke)),ke}function s(De,ke,Et,be){let ze=ek(226,De),nt=wj(226,De),Ft=vm(ke);if(!Et&&ke.kind===219&&ze>3)return!0;let _t=kN(Ft);switch(tl(_t,ze)){case-1:return!(!Et&&nt===1&&ke.kind===229);case 1:return!1;case 0:if(Et)return nt===1;if(pr(Ft)&&Ft.operatorToken.kind===De){if(l(De))return!1;if(De===40){let ft=be?d(be):0;if(fN(ft)&&ft===d(Ft))return!1}}return kj(Ft)===0}}function l(De){return De===42||De===52||De===51||De===53||De===28}function d(De){if(De=vm(De),fN(De.kind))return De.kind;if(De.kind===226&&De.operatorToken.kind===40){if(De.cachedLiteralKind!==void 0)return De.cachedLiteralKind;let ke=d(De.left),Et=fN(ke)&&ke===d(De.right)?ke:0;return De.cachedLiteralKind=Et,Et}return 0}function p(De,ke,Et,be){return vm(ke).kind===217?ke:s(De,ke,Et,be)?e.createParenthesizedExpression(ke):ke}function h(De,ke){return p(De,ke,!0)}function m(De,ke,Et){return p(De,Et,!1,ke)}function y(De){return xP(De)?e.createParenthesizedExpression(De):De}function E(De){let ke=ek(227,58),Et=vm(De),be=kN(Et);return tl(be,ke)!==1?e.createParenthesizedExpression(De):De}function S(De){let ke=vm(De);return xP(ke)?e.createParenthesizedExpression(De):De}function A(De){let ke=vm(De),Et=xP(ke);if(!Et)switch(ER(ke,!1).kind){case 231:case 218:Et=!0}return Et?e.createParenthesizedExpression(De):De}function N(De){let ke=ER(De,!0);switch(ke.kind){case 213:return e.createParenthesizedExpression(De);case 214:return ke.arguments?De:e.createParenthesizedExpression(De)}return D(De)}function D(De,ke){let Et=vm(De);return $u(Et)&&(Et.kind!==214||Et.arguments)&&(ke||!Hd(Et))?De:st(e.createParenthesizedExpression(De),De)}function w(De){return $u(De)?De:st(e.createParenthesizedExpression(De),De)}function j(De){return FV(De)?De:st(e.createParenthesizedExpression(De),De)}function K(De){let ke=Pc(De,Y);return st(e.createNodeArray(ke,De.hasTrailingComma),De)}function Y(De){let ke=vm(De),Et=kN(ke),be=ek(226,28);return Et>be?De:st(e.createParenthesizedExpression(De),De)}function B(De){let ke=vm(De);if(ra(ke)){let be=ke.expression,ze=vm(be).kind;if(ze===218||ze===219){let nt=e.updateCallExpression(ke,st(e.createParenthesizedExpression(be),be),ke.typeArguments,ke.arguments);return e.restoreOuterExpressions(De,nt,8)}}let Et=ER(ke,!1).kind;return Et===210||Et===218?st(e.createParenthesizedExpression(De),De):De}function ce(De){return!Ho(De)&&(xP(De)||ER(De,!1).kind===210)?st(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(Pc(De,me))}function q(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return me(De)}function J(De){return e.createNodeArray(Pc(De,q))}function re(De){switch(De.kind){case 193:return e.createParenthesizedType(De)}return q(De)}function pe(De){switch(De.kind){case 198:return e.createParenthesizedType(De)}return re(De)}function xe(De){switch(De.kind){case 195:case 198:case 186:return e.createParenthesizedType(De)}return re(De)}function fe(De){return e.createNodeArray(Pc(De,ne))}function ne(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return WR(De)?De.postfix:MR(De)||yh(De)||PR(De)||LT(De)?he(De.type):r1(De)?he(De.falseType):Kv(De)||n1(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 hre(De)&&De.typeParameters?e.createParenthesizedType(De):De}function ve(De,ke){return ke===0?Ge(De):De}function Ie(De){if(gt(De))return e.createNodeArray(Pc(De,ve))}}var zU,JBe=bt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Zo(),zU={getParenthesizeLeftSideOfBinaryForOperator:e=>el,getParenthesizeRightSideOfBinaryForOperator:e=>el,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:el,parenthesizeConditionOfConditionalExpression:el,parenthesizeBranchOfConditionalExpression:el,parenthesizeExpressionOfExportDefault:el,parenthesizeExpressionOfNew:e=>ta(e,$u),parenthesizeLeftSideOfAccess:e=>ta(e,$u),parenthesizeOperandOfPostfixUnary:e=>ta(e,$u),parenthesizeOperandOfPrefixUnary:e=>ta(e,FV),parenthesizeExpressionsOfCommaDelimitedList:e=>ta(e,S0),parenthesizeExpressionForDisallowedComma:el,parenthesizeExpressionOfExpressionStatement:el,parenthesizeConciseBodyOfArrowFunction:el,parenthesizeCheckTypeOfConditionalType:el,parenthesizeExtendsTypeOfConditionalType:el,parenthesizeConstituentTypesOfUnionType:e=>ta(e,S0),parenthesizeConstituentTypeOfUnionType:el,parenthesizeConstituentTypesOfIntersectionType:e=>ta(e,S0),parenthesizeConstituentTypeOfIntersectionType:el,parenthesizeOperandOfTypeOperator:el,parenthesizeOperandOfReadonlyTypeOperator:el,parenthesizeNonArrayTypeOfPostfixType:el,parenthesizeElementTypesOfTupleType:e=>ta(e,S0),parenthesizeElementTypeOfTupleType:el,parenthesizeTypeOfOptionalType:el,parenthesizeTypeArguments:e=>e&&ta(e,S0),parenthesizeLeadingTypeArgument:el}}});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(Ho(m))return m;let E=e.createReturnStatement(m);st(E,m);let S=e.createBlock([E],y);return st(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=E0(m))==null?void 0:y.filter(S=>!$I(S)&&!W4(S)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Rr(E,m),st(E,m),uP(m)&&r4(E,!0),E}function i(m){var y;let E=e.createClassExpression((y=m.modifiers)==null?void 0:y.filter(S=>!$I(S)&&!W4(S)),m.name,m.typeParameters,m.heritageClauses,m.members);return Rr(E,m),st(E,m),uP(m)&&r4(E,!0),E}function o(m){if(Xa(m)){if(m.dotDotDotToken)return R.assertNode(m.name,Fe),Rr(st(e.createSpreadElement(m.name),m),m);let y=h(m.name);return m.initializer?Rr(st(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(st(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let y=h(m.name);return Rr(st(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(y,m.initializer):y),m),m)}return R.assertNode(m.name,Fe),Rr(st(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 nm(m)?Rr(st(e.createObjectLiteralExpression(mn(m.elements,s)),m),m):ta(m,Ma)}function p(m){return H0(m)?Rr(st(e.createArrayLiteralExpression(mn(m.elements,o)),m),m):ta(m,pu)}function h(m){return $o(m)?l(m):ta(m,ht)}}var BU,qBe=bt({"src/compiler/factory/nodeConverters.ts"(){"use strict";Zo(),BU={convertToFunctionBlock:Uo,convertToFunctionExpression:Uo,convertToClassExpression:Uo,convertToArrayAssignmentElement:Uo,convertToObjectAssignmentElement:Uo,convertToAssignmentPattern:Uo,convertToObjectAssignmentPattern:Uo,convertToArrayAssignmentPattern:Uo,convertToAssignmentElementTarget:Uo}}});function VSe(e){Joe.push(e)}function xk(e,t){let r=e&8?el:Rr,i=Eu(()=>e&1?zU:Uoe(w)),o=Eu(()=>e&2?BU:Hoe(w)),s=sh(v=>(C,F)=>Se(C,v,F)),l=sh(v=>C=>it(v,C)),d=sh(v=>C=>Gt(C,v)),p=sh(v=>()=>KD(v)),h=sh(v=>C=>hA(v,C)),m=sh(v=>(C,F)=>SS(v,C,F)),y=sh(v=>(C,F)=>JD(v,C,F)),E=sh(v=>(C,F)=>$s(v,C,F)),S=sh(v=>(C,F)=>HE(v,C,F)),A=sh(v=>(C,F,le)=>kf(v,C,F,le)),N=sh(v=>(C,F,le)=>hb(v,C,F,le)),D=sh(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:ke,createToken:be,createSuper:ze,createThis:nt,createNull:Ft,createTrue:_t,createFalse:Je,createModifier:ft,createModifiersFromModifierFlags:Zt,createQualifiedName:en,updateQualifiedName:Dn,createComputedPropertyName:Jn,updateComputedPropertyName:pn,createTypeParameterDeclaration:Yt,updateTypeParameterDeclaration:qt,createParameterDeclaration:hi,updateParameterDeclaration:uo,createDecorator:Li,updateDecorator:Eo,createPropertySignature:Zn,updatePropertySignature:jr,createPropertyDeclaration:on,updatePropertyDeclaration:$e,createMethodSignature:Wt,updateMethodSignature:In,createMethodDeclaration:si,updateMethodDeclaration:yi,createConstructorDeclaration:vn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:dt,updateGetAccessorDeclaration:ct,createSetAccessorDeclaration:se,updateSetAccessorDeclaration:we,createCallSignature:G,updateCallSignature:tt,createConstructSignature:Tt,updateConstructSignature:He,createIndexSignature:pt,updateIndexSignature:Bt,createClassStaticBlockDeclaration:Ao,updateClassStaticBlockDeclaration:da,createTemplateLiteralTypeSpan:hn,updateTemplateLiteralTypeSpan:dn,createKeywordTypeNode:un,createTypePredicateNode:U,updateTypePredicateNode:Le,createTypeReferenceNode:Nt,updateTypeReferenceNode:k,createFunctionTypeNode:ie,updateFunctionTypeNode:H,createConstructorTypeNode:We,updateConstructorTypeNode:Dt,createTypeQueryNode:wn,updateTypeQueryNode:Bn,createTypeLiteralNode:gi,updateTypeLiteralNode:xi,createArrayTypeNode:nr,updateArrayTypeNode:Wr,createTupleTypeNode:ho,updateTupleTypeNode:Pi,createNamedTupleMember:Ri,updateNamedTupleMember:Hr,createOptionalTypeNode:Io,updateOptionalTypeNode:xn,createRestTypeNode:Os,updateRestTypeNode:Ql,createUnionTypeNode:Bs,updateUnionTypeNode:hl,createIntersectionTypeNode:dd,updateIntersectionTypeNode:mo,createConditionalTypeNode:sa,updateConditionalTypeNode:ud,createInferTypeNode:Ts,updateInferTypeNode:Ca,createImportTypeNode:sc,updateImportTypeNode:Rl,createParenthesizedType:ll,updateParenthesizedType:Mo,createThisTypeNode:tn,createTypeOperatorNode:Gs,updateTypeOperatorNode:rd,createIndexedAccessTypeNode:pd,updateIndexedAccessTypeNode:Sp,createMappedTypeNode:Ns,updateMappedTypeNode:Ic,createLiteralTypeNode:de,updateLiteralTypeNode:$,createTemplateLiteralType:fl,updateTemplateLiteralType:Pf,createObjectBindingPattern:Me,updateObjectBindingPattern:yt,createArrayBindingPattern:cn,updateArrayBindingPattern:br,createBindingElement:mr,updateBindingElement:Fr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:Cr,createObjectLiteralExpression:Jo,updateObjectLiteralExpression:El,createPropertyAccessExpression:e&4?(v,C)=>dr(Vs(v,C),262144):Vs,updatePropertyAccessExpression:gc,createPropertyAccessChain:e&4?(v,C,F)=>dr(bs(v,C,F),262144):bs,updatePropertyAccessChain:Kc,createElementAccessExpression:Oc,updateElementAccessExpression:om,createElementAccessChain:mu,updateElementAccessChain:Re,createCallExpression:Hn,updateCallExpression:go,createCallChain:qo,updateCallChain:Qo,createNewExpression:Zl,updateNewExpression:yc,createTaggedTemplateExpression:cl,updateTaggedTemplateExpression:gl,createTypeAssertion:Vl,updateTypeAssertion:ec,createParenthesizedExpression:Jc,updateParenthesizedExpression:cf,createFunctionExpression:Bu,updateFunctionExpression:Du,createArrowFunction:Mf,updateArrowFunction:G_,createDeleteExpression:xh,updateDeleteExpression:Hg,createTypeOfExpression:zd,updateTypeOfExpression:Kg,createVoidExpression:Tp,updateVoidExpression:dg,createAwaitExpression:Gu,updateAwaitExpression:Z,createPrefixUnaryExpression:it,updatePrefixUnaryExpression:Ot,createPostfixUnaryExpression:Gt,updatePostfixUnaryExpression:O,createBinaryExpression:Se,updateBinaryExpression:jt,createConditionalExpression:er,updateConditionalExpression:ii,createTemplateExpression:Xr,updateTemplateExpression:no,createTemplateHead:Ap,createTemplateMiddle:Vu,createTemplateTail:ab,createNoSubstitutionTemplateLiteral:cs,createTemplateLiteralLikeNode:xc,createYieldExpression:Nm,updateYieldExpression:Pm,createSpreadElement:Ui,updateSpreadElement:Jg,createClassExpression:Zy,updateClassExpression:Mm,createOmittedExpression:_S,createExpressionWithTypeArguments:hS,updateExpressionWithTypeArguments:df,createAsExpression:V_,updateAsExpression:uf,createNonNullExpression:qg,updateNonNullExpression:Oe,createSatisfiesExpression:qe,updateSatisfiesExpression:Pt,createNonNullChain:Vt,updateNonNullChain:_n,createMetaProperty:qn,updateMetaProperty:fn,createTemplateSpan:Xn,updateTemplateSpan:mi,createSemicolonClassElement:sr,createBlock:ni,updateBlock:ur,createVariableStatement:Xo,updateVariableStatement:Ha,createEmptyStatement:Qd,createExpressionStatement:md,updateExpressionStatement:Xg,createIfStatement:wE,updateIfStatement:z1,createDoStatement:OE,updateDoStatement:FD,createWhileStatement:zD,updateWhileStatement:BD,createForStatement:sA,updateForStatement:gS,createForInStatement:B1,updateForInStatement:GD,createForOfStatement:G1,updateForOfStatement:V1,createContinueStatement:j1,updateContinueStatement:U1,createBreakStatement:lA,updateBreakStatement:H1,createReturnStatement:yS,updateReturnStatement:vS,createWithStatement:sb,updateWithStatement:lb,createSwitchStatement:ug,updateSwitchStatement:WE,createLabeledStatement:Za,updateLabeledStatement:cA,createThrowStatement:VD,updateThrowStatement:FE,createTryStatement:Yg,updateTryStatement:Rh,createDebuggerStatement:Lf,createVariableDeclaration:ju,updateVariableDeclaration:Ip,createVariableDeclarationList:rp,updateVariableDeclarationList:ev,createFunctionDeclaration:dA,updateFunctionDeclaration:jD,createClassDeclaration:cb,updateClassDeclaration:zE,createInterfaceDeclaration:J1,updateInterfaceDeclaration:vc,createTypeAliasDeclaration:tv,updateTypeAliasDeclaration:q1,createEnumDeclaration:n_,updateEnumDeclaration:uA,createModuleDeclaration:Ve,updateModuleDeclaration:r_,createModuleBlock:_d,updateModuleBlock:BE,createCaseBlock:X1,updateCaseBlock:db,createNamespaceExportDeclaration:nv,updateNamespaceExportDeclaration:rv,createImportEqualsDeclaration:Ka,updateImportEqualsDeclaration:i_,createImportDeclaration:pA,updateImportDeclaration:fA,createImportClause:GE,updateImportClause:mA,createAssertClause:am,updateAssertClause:sm,createAssertEntry:$g,updateAssertEntry:Y1,createImportTypeAssertionContainer:o_,updateImportTypeAssertionContainer:UD,createImportAttributes:bS,updateImportAttributes:qi,createImportAttribute:Qr,updateImportAttribute:Dh,createNamespaceImport:Uu,updateNamespaceImport:PM,createNamespaceExport:Qg,updateNamespaceExport:MM,createNamedImports:ub,updateNamedImports:yl,createImportSpecifier:Gp,updateImportSpecifier:pg,createExportAssignment:lm,updateExportAssignment:pb,createExportDeclaration:Lm,updateExportDeclaration:Zg,createNamedExports:_A,updateNamedExports:fg,createExportSpecifier:$1,updateExportSpecifier:mg,createMissingDeclaration:j_,createExternalModuleReference:iv,updateExternalModuleReference:HD,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:km,createJSDocTypeLiteral:fb,updateJSDocTypeLiteral:qD,createJSDocTypeExpression:yA,updateJSDocTypeExpression:LM,createJSDocSignature:_r,updateJSDocSignature:id,createJSDocTemplateTag:U_,updateJSDocTemplateTag:lr,createJSDocTypedefTag:vA,updateJSDocTypedefTag:VE,createJSDocParameterTag:qc,updateJSDocParameterTag:Ch,createJSDocPropertyTag:wm,updateJSDocPropertyTag:TS,createJSDocCallbackTag:AS,updateJSDocCallbackTag:mb,createJSDocOverloadTag:ey,updateJSDocOverloadTag:bA,createJSDocAugmentsTag:Om,updateJSDocAugmentsTag:jE,createJSDocImplementsTag:_g,updateJSDocImplementsTag:ip,createJSDocSeeTag:_b,updateJSDocSeeTag:Q1,createJSDocNameReference:UE,updateJSDocNameReference:XD,createJSDocMemberName:IS,updateJSDocMemberName:EA,createJSDocLink:Vp,updateJSDocLink:SA,createJSDocLinkCode:jl,updateJSDocLinkCode:Wc,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:jp,updateJSDocEnumTag:AA,createJSDocUnknownTag:od,updateJSDocUnknownTag:Z1,createJSDocText:IA,updateJSDocText:js,createJSDocComment:YD,updateJSDocComment:KE,createJsxElement:xS,updateJsxElement:kM,createJsxSelfClosingElement:_u,updateJsxSelfClosingElement:ty,createJsxOpeningElement:H_,updateJsxOpeningElement:ex,createJsxClosingElement:xp,updateJsxClosingElement:tx,createJsxFragment:op,createJsxText:av,updateJsxText:xA,createJsxOpeningFragment:$D,createJsxJsxClosingFragment:QD,updateJsxFragment:nx,createJsxAttribute:RA,updateJsxAttribute:ZD,createJsxAttributes:yb,updateJsxAttributes:Rp,createJsxSpreadAttribute:Nh,updateJsxSpreadAttribute:eC,createJsxExpression:DA,updateJsxExpression:ts,createJsxNamespacedName:Tr,updateJsxNamespacedName:ff,createCaseClause:Cu,updateCaseClause:RS,createDefaultClause:tC,updateDefaultClause:JE,createHeritageClause:DS,updateHeritageClause:CA,createCatchClause:hg,updateCatchClause:a_,createPropertyAssignment:mf,updatePropertyAssignment:Wm,createShorthandPropertyAssignment:gg,updateShorthandPropertyAssignment:yg,createSpreadAssignment:lc,updateSpreadAssignment:nC,createEnumMember:wf,updateEnumMember:Ph,createSourceFile:_f,updateSourceFile:Ps,createRedirectedSourceFile:CS,createBundle:NS,updateBundle:PS,createUnparsedSource:ry,createUnparsedPrologue:XE,createUnparsedPrepend:I,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ut,createInputFiles:nn,createSyntheticExpression:Mr,createSyntaxList:wi,createNotEmittedStatement:vi,createPartiallyEmittedExpression:Zi,updatePartiallyEmittedExpression:ma,createCommaListExpression:Nu,updateCommaListExpression:Of,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:PA,createImmediatelyInvokedArrowFunction:MS,createVoidZero:K_,createExportDefault:Lh,createExternalModuleExport:rC,createTypeCheck:MA,createIsNotTypeCheck:KB,createMethodCall:Tb,createGlobalMethodCall:s_,createFunctionBindCall:m8,createFunctionCallCall:_8,createFunctionApplyCall:YE,createArraySliceCall:wM,createArrayConcatCall:kh,createObjectDefinePropertyCall:ax,createObjectGetOwnPropertyDescriptorCall:h8,createReflectGetCall:J_,createReflectSetCall:X,createPropertyDescriptor:Ue,createCallBinding:Ci,createAssignmentTargetWrapper:_i,inlineExpressions:Xi,getInternalName:Rs,getLocalName:Qa,getExportName:Wf,getDeclarationName:q_,getNamespaceMemberName:vg,getExternalModuleOrNamespaceExportName:iy,restoreOuterExpressions:Ut,restoreEnclosingLabel:wr,createUseStrictPrologue:ap,copyPrologue:oy,copyStandardPrologue:LA,copyCustomPrologue:iC,ensureUseStrict:OM,liftToBlock:WM,mergeLexicalEnvironment:ay,replaceModifiers:Ib,replaceDecoratorsAndModifiers:oC,replacePropertyName:Up};return gn(Joe,v=>v(w)),w;function j(v,C){if(v===void 0||v===Ye)v=[];else if(S0(v)){if(C===void 0||v.hasTrailingComma===C)return v.transformFlags===void 0&&jSe(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,jSe(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),rr(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:B0(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(Yf(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 xc(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(ml(v));return Mk(Ke,{flags:C,id:n4,prefix:F,suffix:le}),n4++,Ke}function xe(v,C,F){C===void 0&&v&&(C=b0(v)),C===80&&(C=void 0);let le=re(ml(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)?EE(!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(ml(v))}function Ie(v,C,F,le){let Ke=Ge(ml(v));return Mk(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 ke(v,C,F){let le=Jh(v)?EE(!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 nt(){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=cc(C),F.transformFlags|=Er(F.left)|Rk(F.right),F.flowNode=void 0,F}function Dn(v,C,F){return v.left!==C||v.right!==F?rr(en(C,F),v):v}function Jn(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?rr(Jn(C),v):v}function Yt(v,C,F,le){let Ke=Y(168);return Ke.modifiers=Ga(v),Ke.name=cc(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?rr(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=cc(F),gr.questionToken=le,gr.type=Ke,gr.initializer=sx(Ht),W0(gr.name)?gr.transformFlags=1:gr.transformFlags=Ua(gr.modifiers)|Er(gr.dotDotDotToken)|Uv(gr.name)|Er(gr.questionToken)|Er(gr.initializer)|(gr.questionToken??gr.type?1:0)|(gr.dotDotDotToken??gr.initializer?1024:0)|(D_(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?rr(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?rr(Li(C),v):v}function Zn(v,C,F,le){let Ke=Y(171);return Ke.modifiers=Ga(v),Ke.name=cc(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),rr(v,C)}function on(v,C,F,le,Ke){let Ht=Y(172);Ht.modifiers=Ga(v),Ht.name=cc(C),Ht.questionToken=F&&Hv(F)?F:void 0,Ht.exclamationToken=F&&Wk(F)?F:void 0,Ht.type=le,Ht.initializer=sx(Ke);let gr=Ht.flags&33554432||D_(Ht.modifiers)&128;return Ht.transformFlags=Ua(Ht.modifiers)|Uv(Ht.name)|Er(Ht.initializer)|(gr||Ht.questionToken||Ht.exclamationToken||Ht.type?1:0)|($a(Ht.name)||D_(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&&Hv(le)?le:void 0)||v.exclamationToken!==(le!==void 0&&Wk(le)?le:void 0)||v.type!==Ke||v.initializer!==Ht?rr(on(C,F,le,Ke,Ht),v):v}function Wt(v,C,F,le,Ke,Ht){let gr=Y(173);return gr.modifiers=Ga(v),gr.name=cc(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(Wt(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=cc(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 l_=D_(Us.modifiers)&1024,Rb=!!Us.asteriskToken,Fm=l_&&Rb;Us.transformFlags=Ua(Us.modifiers)|Er(Us.asteriskToken)|Uv(Us.name)|Er(Us.questionToken)|Ua(Us.typeParameters)|Ua(Us.parameters)|Er(Us.type)|Er(Us.body)&-67108865|(Fm?128:l_?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,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),rr(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 da(v,C){return v.body!==C?Ba(Ao(C),v):v}function Ba(v,C){return v!==C&&(v.modifiers=C.modifiers),rr(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 dt(v,C,F,le,Ke){let Ht=Y(177);return Ht.modifiers=Ga(v),Ht.name=cc(C),Ht.parameters=j(F),Ht.type=le,Ht.body=Ke,Ht.body?Ht.transformFlags=Ua(Ht.modifiers)|Uv(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 ct(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.type!==Ke||v.body!==Ht?Rt(dt(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=cc(C),Ke.parameters=j(F),Ke.body=le,Ke.body?Ke.transformFlags=Ua(Ke.modifiers)|Uv(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 we(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.parameters!==le||v.body!==Ke?lt(se(C,F,le,Ke),v):v}function lt(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 tt(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?rr(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=cc(C),le.type=F,le.transformFlags=1,le}function Le(v,C,F,le){return v.assertsModifier!==C||v.parameterName!==F||v.type!==le?rr(U(C,F,le),v):v}function Nt(v,C){let F=K(183);return F.typeName=cc(v),F.typeArguments=C&&i().parenthesizeTypeArguments(j(C)),F.transformFlags=1,F}function k(v,C,F){return v.typeName!==C||v.typeArguments!==F?rr(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?rr(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?rr(gi(C),v):v}function nr(v){let C=K(188);return C.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),C.transformFlags=1,C}function Wr(v,C){return v.elementType!==C?rr(nr(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?rr(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?rr(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?rr(Io(C),v):v}function Os(v){let C=K(191);return C.type=v,C.transformFlags=1,C}function Ql(v,C){return v.type!==C?rr(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?rr(Po(v.kind,C,F),v):v}function Bs(v){return Po(192,v,i().parenthesizeConstituentTypesOfUnionType)}function hl(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?rr(sa(C,F,le,Ke),v):v}function Ts(v){let C=K(195);return C.typeParameter=v,C.transformFlags=1,C}function Ca(v,C){return v.typeParameter!==C?rr(Ts(C),v):v}function fl(v,C){let F=K(203);return F.head=v,F.templateSpans=j(C),F.transformFlags=1,F}function Pf(v,C,F){return v.head!==C||v.templateSpans!==F?rr(fl(C,F),v):v}function sc(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?rr(sc(C,F,le,Ke,Ht),v):v}function ll(v){let C=K(196);return C.type=v,C.transformFlags=1,C}function Mo(v,C){return v.type!==C?rr(ll(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?rr(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 Sp(v,C,F){return v.objectType!==C||v.indexType!==F?rr(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 Ic(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?rr(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?rr(de(C),v):v}function Me(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?rr(Me(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?rr(cn(C),v):v}function mr(v,C,F,le){let Ke=Y(208);return Ke.dotDotDotToken=v,Ke.propertyName=cc(C),Ke.name=cc(F),Ke.initializer=sx(le),Ke.transformFlags|=Er(Ke.dotDotDotToken)|Uv(Ke.propertyName)|Uv(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?rr(mr(C,F,le,Ke),v):v}function Di(v,C){let F=K(209),le=v&&Zs(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?rr(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 El(v,C){return v.properties!==C?rr(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)?Rk(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,cc(C));return _P(v)&&(F.transformFlags|=384),F}function gc(v,C,F){return sF(v)?Kc(v,C,v.questionDotToken,ta(F,Fe)):v.expression!==C||v.name!==F?rr(Vs(C,F),v):v}function bs(v,C,F){let le=Hc(i().parenthesizeLeftSideOfAccess(v,!0),C,cc(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?rr(bs(C,F,le),v):v}function np(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 Oc(v,C){let F=np(i().parenthesizeLeftSideOfAccess(v,!1),void 0,QE(C));return _P(v)&&(F.transformFlags|=384),F}function om(v,C,F){return xV(v)?Re(v,C,v.questionDotToken,F):v.expression!==C||v.argumentExpression!==F?rr(Oc(C,F),v):v}function mu(v,C,F){let le=np(i().parenthesizeLeftSideOfAccess(v,!0),C,QE(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?rr(mu(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 Hn(v,C,F){let le=Lt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ga(C),i().parenthesizeExpressionsOfCommaDelimitedList(j(F)));return hP(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?rr(Hn(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?rr(qo(C,F,le,Ke),v):v}function Zl(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 yc(v,C,F,le){return v.expression!==C||v.typeArguments!==F||v.arguments!==le?rr(Zl(C,F,le),v):v}function cl(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),Fj(le.template)&&(le.transformFlags|=128),le}function gl(v,C,F,le){return v.tag!==C||v.typeArguments!==F||v.template!==le?rr(cl(C,F,le),v):v}function Vl(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 ec(v,C,F){return v.type!==C||v.expression!==F?rr(Vl(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 cf(v,C){return v.expression!==C?rr(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=cc(F),eo.typeParameters=Ga(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=gr;let Us=D_(eo.modifiers)&1024,l_=!!eo.asteriskToken,Rb=Us&&l_;return eo.transformFlags=Ua(eo.modifiers)|Er(eo.asteriskToken)|Uv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|Er(eo.type)|Er(eo.body)&-67108865|(Rb?128:Us?256:l_?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 Mf(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=D_(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 G_(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(Mf(C,F,le,Ke,Ht,gr),v):v}function xh(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?rr(xh(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?rr(zd(C),v):v}function Tp(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?rr(Tp(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?rr(Gu(C),v):v}function it(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)&&!ol(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function Ot(v,C){return v.operand!==C?rr(it(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)&&!ol(F.operand)&&!Bg(F.operand)&&(F.transformFlags|=268435456),F}function O(v,C){return v.operand!==C?rr(Gt(C,v.operator),v):v}function Se(v,C,F){let le=Y(226),Ke=FM(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?Ma(le.left)?le.transformFlags|=5248|rt(le.left):pu(le.left)&&(le.transformFlags|=5120|rt(le.left)):Ht===43||Ht===68?le.transformFlags|=512:zN(Ht)&&(le.transformFlags|=16),Ht===103&&Ki(le.left)&&(le.transformFlags|=536870912),le.jsDoc=void 0,le}function rt(v){return ew(v)?65536:0}function jt(v,C,F,le){return v.left!==C||v.operatorToken!==F||v.right!==le?rr(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?rr(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?rr(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=XBe(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 wl(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 fd(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 xc(v,C,F,le){return v===15?fd(v,C,F,le):wl(v,C,F,le)}function Ap(v,C,F){return v=La(16,v,C,F),xc(16,v,C,F)}function Vu(v,C,F){return v=La(16,v,C,F),xc(17,v,C,F)}function ab(v,C,F){return v=La(16,v,C,F),xc(18,v,C,F)}function cs(v,C,F){return v=La(16,v,C,F),fd(15,v,C,F)}function Nm(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 Pm(v,C,F){return v.expression!==F||v.asteriskToken!==C?rr(Nm(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?rr(Ui(C),v):v}function Zy(v,C,F,le,Ke){let Ht=Y(231);return Ht.modifiers=Ga(v),Ht.name=cc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),Ht.transformFlags|=Ua(Ht.modifiers)|Uv(Ht.name)|Ua(Ht.typeParameters)|Ua(Ht.heritageClauses)|Ua(Ht.members)|(Ht.typeParameters?1:0)|1024,Ht.jsDoc=void 0,Ht}function Mm(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?rr(Zy(C,F,le,Ke,Ht),v):v}function _S(){return K(232)}function hS(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 df(v,C,F){return v.expression!==C||v.typeArguments!==F?rr(hS(C,F),v):v}function V_(v,C){let F=K(234);return F.expression=v,F.type=C,F.transformFlags|=Er(F.expression)|Er(F.type)|1,F}function uf(v,C,F){return v.expression!==C||v.type!==F?rr(V_(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 Oe(v,C){return cF(v)?_n(v,C):v.expression!==C?rr(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?rr(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?rr(Vt(C),v):v}function qn(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?rr(qn(v.keywordToken,C),v):v}function Xn(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?rr(Xn(C,F),v):v}function sr(){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?rr(ni(C,v.multiLine),v):v}function Xo(v,C){let F=K(243);return F.modifiers=Ga(v),F.declarationList=So(C)?rp(C):C,F.transformFlags|=Ua(F.modifiers)|Er(F.declarationList),D_(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?rr(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?rr(md(C),v):v}function wE(v,C,F){let le=K(245);return le.expression=v,le.thenStatement=xb(C),le.elseStatement=xb(F),le.transformFlags|=Er(le.expression)|Er(le.thenStatement)|Er(le.elseStatement),le.jsDoc=void 0,le.flowNode=void 0,le}function z1(v,C,F,le){return v.expression!==C||v.thenStatement!==F||v.elseStatement!==le?rr(wE(C,F,le),v):v}function OE(v,C){let F=K(246);return F.statement=xb(v),F.expression=C,F.transformFlags|=Er(F.statement)|Er(F.expression),F.jsDoc=void 0,F.flowNode=void 0,F}function FD(v,C,F){return v.statement!==C||v.expression!==F?rr(OE(C,F),v):v}function zD(v,C){let F=K(247);return F.expression=v,F.statement=xb(C),F.transformFlags|=Er(F.expression)|Er(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function BD(v,C,F){return v.expression!==C||v.statement!==F?rr(zD(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=xb(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 gS(v,C,F,le,Ke){return v.initializer!==C||v.condition!==F||v.incrementor!==le||v.statement!==Ke?rr(sA(C,F,le,Ke),v):v}function B1(v,C,F){let le=K(249);return le.initializer=v,le.expression=C,le.statement=xb(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 GD(v,C,F,le){return v.initializer!==C||v.expression!==F||v.statement!==le?rr(B1(C,F,le),v):v}function G1(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|=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 V1(v,C,F,le,Ke){return v.awaitModifier!==C||v.initializer!==F||v.expression!==le||v.statement!==Ke?rr(G1(C,F,le,Ke),v):v}function j1(v){let C=K(251);return C.label=cc(v),C.transformFlags|=Er(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function U1(v,C){return v.label!==C?rr(j1(C),v):v}function lA(v){let C=K(252);return C.label=cc(v),C.transformFlags|=Er(C.label)|4194304,C.jsDoc=void 0,C.flowNode=void 0,C}function H1(v,C){return v.label!==C?rr(lA(C),v):v}function yS(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 vS(v,C){return v.expression!==C?rr(yS(C),v):v}function sb(v,C){let F=K(254);return F.expression=v,F.statement=xb(C),F.transformFlags|=Er(F.expression)|Er(F.statement),F.jsDoc=void 0,F.flowNode=void 0,F}function lb(v,C,F){return v.expression!==C||v.statement!==F?rr(sb(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 WE(v,C,F){return v.expression!==C||v.caseBlock!==F?rr(ug(C,F),v):v}function Za(v,C){let F=K(256);return F.label=cc(v),F.statement=xb(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?rr(Za(C,F),v):v}function VD(v){let C=K(257);return C.expression=v,C.transformFlags|=Er(C.expression),C.jsDoc=void 0,C.flowNode=void 0,C}function FE(v,C){return v.expression!==C?rr(VD(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 Rh(v,C,F,le){return v.tryBlock!==C||v.catchClause!==F||v.finallyBlock!==le?rr(Yg(C,F,le),v):v}function Lf(){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=cc(v),Ke.exclamationToken=C,Ke.type=F,Ke.initializer=sx(le),Ke.transformFlags|=Uv(Ke.name)|Er(Ke.initializer)|(Ke.exclamationToken??Ke.type?1:0),Ke.jsDoc=void 0,Ke}function Ip(v,C,F,le,Ke){return v.name!==C||v.type!==le||v.exclamationToken!==F||v.initializer!==Ke?rr(ju(C,F,le,Ke),v):v}function rp(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?rr(rp(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=cc(F),eo.typeParameters=Ga(le),eo.parameters=j(Ke),eo.type=Ht,eo.body=gr,!eo.body||D_(eo.modifiers)&128)eo.transformFlags=1;else{let Us=D_(eo.modifiers)&1024,l_=!!eo.asteriskToken,Rb=Us&&l_;eo.transformFlags=Ua(eo.modifiers)|Er(eo.asteriskToken)|Uv(eo.name)|Ua(eo.typeParameters)|Ua(eo.parameters)|Er(eo.type)|Er(eo.body)&-67108865|(Rb?128:Us?256:l_?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 jD(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?K1(dA(C,F,le,Ke,Ht,gr,eo),v):v}function K1(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=Ga(v),Ht.name=cc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),D_(Ht.modifiers)&128?Ht.transformFlags=1:(Ht.transformFlags|=Ua(Ht.modifiers)|Uv(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 zE(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?rr(cb(C,F,le,Ke,Ht),v):v}function J1(v,C,F,le,Ke){let Ht=Y(264);return Ht.modifiers=Ga(v),Ht.name=cc(C),Ht.typeParameters=Ga(F),Ht.heritageClauses=Ga(le),Ht.members=j(Ke),Ht.transformFlags=1,Ht.jsDoc=void 0,Ht}function vc(v,C,F,le,Ke,Ht){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.heritageClauses!==Ke||v.members!==Ht?rr(J1(C,F,le,Ke,Ht),v):v}function tv(v,C,F,le){let Ke=Y(265);return Ke.modifiers=Ga(v),Ke.name=cc(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 q1(v,C,F,le,Ke){return v.modifiers!==C||v.name!==F||v.typeParameters!==le||v.type!==Ke?rr(tv(C,F,le,Ke),v):v}function n_(v,C,F){let le=Y(266);return le.modifiers=Ga(v),le.name=cc(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?rr(n_(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,D_(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 r_(v,C,F,le){return v.modifiers!==C||v.name!==F||v.body!==le?rr(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 BE(v,C){return v.statements!==C?rr(_d(C),v):v}function X1(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 db(v,C){return v.clauses!==C?rr(X1(C),v):v}function nv(v){let C=Y(270);return C.name=cc(v),C.transformFlags|=Rk(C.name)|1,C.modifiers=void 0,C.jsDoc=void 0,C}function rv(v,C){return v.name!==C?NM(nv(C),v):v}function NM(v,C){return v!==C&&(v.modifiers=C.modifiers),rr(v,C)}function Ka(v,C,F,le){let Ke=Y(271);return Ke.modifiers=Ga(v),Ke.name=cc(F),Ke.isTypeOnly=C,Ke.moduleReference=le,Ke.transformFlags|=Ua(Ke.modifiers)|Rk(Ke.name)|Er(Ke.moduleReference),Eh(Ke.moduleReference)||(Ke.transformFlags|=1),Ke.transformFlags&=-67108865,Ke.jsDoc=void 0,Ke}function i_(v,C,F,le,Ke){return v.modifiers!==C||v.isTypeOnly!==F||v.name!==le||v.moduleReference!==Ke?rr(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?rr(pA(C,F,le,Ke),v):v}function GE(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?rr(GE(C,F,le),v):v}function am(v,C){let F=K(300);return F.elements=j(v),F.multiLine=C,F.token=132,F.transformFlags|=4,F}function sm(v,C,F){return v.elements!==C||v.multiLine!==F?rr(am(C,F),v):v}function $g(v,C){let F=K(301);return F.name=v,F.value=C,F.transformFlags|=4,F}function Y1(v,C,F){return v.name!==C||v.value!==F?rr($g(C,F),v):v}function o_(v,C){let F=K(302);return F.assertClause=v,F.multiLine=C,F}function UD(v,C,F){return v.assertClause!==C||v.multiLine!==F?rr(o_(C,F),v):v}function bS(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?rr(bS(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 Dh(v,C,F){return v.name!==C||v.value!==F?rr(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 PM(v,C){return v.name!==C?rr(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 MM(v,C){return v.name!==C?rr(Qg(C),v):v}function ub(v){let C=K(275);return C.elements=j(v),C.transformFlags|=Ua(C.elements),C.transformFlags&=-67108865,C}function yl(v,C){return v.elements!==C?rr(ub(C),v):v}function Gp(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?rr(Gp(C,F,le),v):v}function lm(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 pb(v,C,F){return v.modifiers!==C||v.expression!==F?rr(lm(C,v.isExportEquals,F),v):v}function Lm(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?ES(Lm(C,F,le,Ke,Ht),v):v}function ES(v,C){return v!==C&&v.modifiers===C.modifiers&&(v.modifiers=C.modifiers),rr(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?rr(_A(C),v):v}function $1(v,C,F){let le=K(281);return le.isTypeOnly=v,le.propertyName=cc(C),le.name=cc(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?rr($1(C,F,le),v):v}function j_(){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 HD(v,C){return v.expression!==C?rr(iv(C),v):v}function KD(v){return K(v)}function JD(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 $s(v,C,F){return C.type!==F?rr(JD(v,F,C.postfix),C):C}function SS(v,C,F){return C.type!==F?rr(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 km(v,C,F){return v.parameters!==C||v.type!==F?rr(gA(C,F),v):v}function fb(v,C=!1){let F=Y(329);return F.jsDocPropertyTags=Ga(v),F.isArrayType=C,F}function qD(v,C,F){return v.jsDocPropertyTags!==C||v.isArrayType!==F?rr(fb(C,F),v):v}function yA(v){let C=K(316);return C.type=v,C}function LM(v,C){return v.type!==C?rr(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?rr(_r(C,F,le),v):v}function Qi(v){let C=GU(v.kind);return v.tagName.escapedText===ml(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 U_(v,C,F,le){let Ke=pf(352,v??xe("template"),le);return Ke.constraint=C,Ke.typeParameters=j(F),Ke}function lr(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.constraint!==F||v.typeParameters!==le||v.comment!==Ke?rr(U_(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=xH(F),Ke.locals=void 0,Ke.nextContainer=void 0,Ke}function VE(v,C=Qi(v),F,le,Ke){return v.tagName!==C||v.typeExpression!==F||v.fullName!==le||v.comment!==Ke?rr(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 Ch(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?rr(qc(C,F,le,Ke,Ht,gr),v):v}function wm(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 TS(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?rr(wm(C,F,le,Ke,Ht,gr),v):v}function AS(v,C,F,le){let Ke=ov(345,v??xe("callback"),le);return Ke.typeExpression=C,Ke.fullName=F,Ke.name=xH(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?rr(AS(C,F,le,Ke),v):v}function ey(v,C,F){let le=pf(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?rr(ey(C,F,le),v):v}function Om(v,C,F){let le=pf(335,v??xe("augments"),F);return le.class=C,le}function jE(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?rr(Om(C,F,le),v):v}function _g(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?rr(_b(C,F,le),v):v}function UE(v){let C=K(317);return C.name=v,C}function XD(v,C){return v.name!==C?rr(UE(C),v):v}function IS(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?rr(IS(C,F),v):v}function Vp(v,C){let F=K(331);return F.name=v,F.text=C,F}function SA(v,C,F){return v.name!==C?rr(Vp(C,F),v):v}function jl(v,C){let F=K(332);return F.name=v,F.text=C,F}function Wc(v,C,F){return v.name!==C?rr(jl(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?rr(TA(C,F),v):v}function ip(v,C=Qi(v),F,le){return v.tagName!==C||v.class!==F||v.comment!==le?rr(_g(C,F,le),v):v}function HE(v,C,F){return pf(v,C??xe(GU(v)),F)}function kf(v,C,F=Qi(C),le){return C.tagName!==F||C.comment!==le?rr(HE(v,F,le),C):C}function hb(v,C,F,le){let Ke=pf(v,C??xe(GU(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?rr(hb(v,F,le,Ke),C):C}function od(v,C){return pf(334,v,C)}function Z1(v,C,F){return v.tagName!==C||v.comment!==F?rr(od(C,F),v):v}function jp(v,C,F){let le=ov(347,v??xe(GU(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?rr(jp(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?rr(IA(C),v):v}function YD(v,C){let F=K(327);return F.comment=v,F.tags=Ga(C),F}function KE(v,C,F){return v.comment!==C||v.tags!==F?rr(YD(C,F),v):v}function xS(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 kM(v,C,F,le){return v.openingElement!==C||v.children!==F||v.closingElement!==le?rr(xS(C,F,le),v):v}function _u(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?rr(_u(C,F,le),v):v}function H_(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 ex(v,C,F,le){return v.tagName!==C||v.typeArguments!==F||v.attributes!==le?rr(H_(C,F,le),v):v}function xp(v){let C=K(287);return C.tagName=v,C.transformFlags|=Er(C.tagName)|2,C}function tx(v,C){return v.tagName!==C?rr(xp(C),v):v}function op(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 nx(v,C,F,le){return v.openingFragment!==C||v.children!==F||v.closingFragment!==le?rr(op(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?rr(av(C,F),v):v}function $D(){let v=K(289);return v.transformFlags|=2,v}function QD(){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 ZD(v,C,F){return v.name!==C||v.initializer!==F?rr(RA(C,F),v):v}function yb(v){let C=Y(292);return C.properties=j(v),C.transformFlags|=Ua(C.properties)|2,C}function Rp(v,C){return v.properties!==C?rr(yb(C),v):v}function Nh(v){let C=K(293);return C.expression=v,C.transformFlags|=Er(C.expression)|2,C}function eC(v,C){return v.expression!==C?rr(Nh(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 ts(v,C){return v.expression!==C?rr(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 ff(v,C,F){return v.namespace!==C||v.name!==F?rr(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 RS(v,C,F){return v.expression!==C||v.statements!==F?rr(Cu(C,F),v):v}function tC(v){let C=K(297);return C.statements=j(v),C.transformFlags=Ua(C.statements),C}function JE(v,C){return v.statements!==C?rr(tC(C),v):v}function DS(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?rr(DS(v.token,C),v):v}function hg(v,C){let F=K(299);return F.variableDeclaration=zM(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 a_(v,C,F){return v.variableDeclaration!==C||v.block!==F?rr(hg(C,F),v):v}function mf(v,C){let F=Y(303);return F.name=cc(v),F.initializer=i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Uv(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(mf(C,F),v):v}function ny(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken),rr(v,C)}function gg(v,C){let F=Y(304);return F.name=cc(v),F.objectAssignmentInitializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Rk(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?rx(gg(C,F),v):v}function rx(v,C){return v!==C&&(v.modifiers=C.modifiers,v.questionToken=C.questionToken,v.exclamationToken=C.exclamationToken,v.equalsToken=C.equalsToken),rr(v,C)}function lc(v){let C=Y(305);return C.expression=i().parenthesizeExpressionForDisallowedComma(v),C.transformFlags|=Er(C.expression)|128|65536,C.jsDoc=void 0,C}function nC(v,C){return v.expression!==C?rr(lc(C),v):v}function wf(v,C){let F=Y(306);return F.name=cc(v),F.initializer=C&&i().parenthesizeExpressionForDisallowedComma(C),F.transformFlags|=Er(F.name)|Er(F.initializer)|1,F.jsDoc=void 0,F}function Ph(v,C,F){return v.name!==C||v.initializer!==F?rr(wf(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|=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 CS(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 qE(v){let C=CS(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 ix(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?qE(v):ix(v);return r(C,v),C}function hf(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?rr(hf(v,C,F,le,Ke,Ht,gr),v):v}function NS(v,C=Ye){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 PS(v,C,F=Ye){return v.sourceFiles!==C||v.prepends!==F?rr(NS(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=Ye,le.libReferenceDirectives=Ye,le.getLineAndCharacterOfPosition=Ke=>ys(le,Ke),le}function vb(v,C){let F=K(v);return F.data=C,F}function XE(v){return vb(307,v)}function I(v,C){let F=vb(308,v);return F.texts=C,F}function ae(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 Mr(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,st(C,v),C}function Zi(v,C){let F=K(360);return F.expression=v,F.original=C,F.transformFlags|=Er(F.expression)|1,st(F,C),F}function ma(v,C){return v.expression!==C?rr(Zi(C,v.original),v):v}function Zd(v){if(Xs(v)&&!lN(v)&&!v.original&&!v.emitNode&&!v.id){if(yP(v))return v.elements;if(pr(v)&&aae(v.operatorToken))return[v.left,v.right]}return v}function Nu(v){let C=K(361);return C.elements=j(Yte(v,Zd)),C.transformFlags|=Ua(C.elements),C}function Of(v,C){return v.elements!==C?rr(Nu(C),v):v}function bb(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?rr(bb(C,F),v):v}function Mh(v){let C=re(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Mk(C,{...v.emitNode.autoGenerate}),C}function jn(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 ox(v){let C=Ge(v.escapedText);return C.flags|=v.flags&-17,C.transformFlags=v.transformFlags,r(C,v),Mk(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 NA(v);if(ol(v))return Mh(v);if(Fe(v))return jn(v);if(lT(v))return ox(v);if(Ki(v))return Eb(v);let C=o2(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 Hn(Bu(void 0,void 0,void 0,void 0,C?[C]:[],void 0,ni(v,!0)),void 0,F?[F]:[])}function MS(v,C,F){return Hn(Mf(void 0,void 0,C?[C]:[],void 0,void 0,ni(v,!0)),void 0,F?[F]:[])}function K_(){return Tp(ce("0"))}function Lh(v){return lm(void 0,!1,v)}function rC(v){return Lm(void 0,!1,_A([$1(!1,void 0,v)]))}function MA(v,C){return C==="null"?w.createStrictEquality(v,Ft()):C==="undefined"?w.createStrictEquality(v,K_()):w.createStrictEquality(zd(v),me(C))}function KB(v,C){return C==="null"?w.createStrictInequality(v,Ft()):C==="undefined"?w.createStrictInequality(v,K_()):w.createStrictInequality(zd(v),me(C))}function Tb(v,C,F){return sT(v)?qo(bs(v,void 0,C),void 0,void 0,F):Hn(Vs(v,C),void 0,F)}function m8(v,C,F){return Tb(v,"bind",[C,...F])}function _8(v,C,F){return Tb(v,"call",[C,...F])}function YE(v,C,F){return Tb(v,"apply",[C,F])}function s_(v,C,F){return Tb(xe(v),C,F)}function wM(v,C){return Tb(v,"slice",C===void 0?[]:[QE(C)])}function kh(v,C){return Tb(v,"concat",C)}function ax(v,C,F){return s_("Object","defineProperty",[v,QE(C),F])}function h8(v,C){return s_("Object","getOwnPropertyDescriptor",[v,QE(C)])}function J_(v,C,F){return s_("Reflect","get",F?[v,C,F]:[v,C])}function X(v,C,F,le){return s_("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",QE(v.enumerable)),Ae(F,"configurable",QE(v.configurable));let le=Ae(F,"writable",QE(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 cf(v,C);case 216:return ec(v,v.type,C);case 234:return uf(v,C,v.type);case 238:return Pt(v,C,v.type);case 235:return Oe(v,C);case 360:return ma(v,C)}}function xt(v){return Fu(v)&&Xs(v)&&Xs(zy(v))&&Xs(P_(v))&&!gt(CR(v))&&!gt(Pk(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,q0(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=$l(v,15),Ht,gr;return Ou(Ke)?(Ht=nt(),gr=Ke):_P(Ke)?(Ht=nt(),gr=F!==void 0&&F<2?st(xe("_super"),Ke):Ke):za(Ke)&8192?(Ht=K_(),gr=i().parenthesizeLeftSideOfAccess(Ke,!1)):kr(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),gr=Vs(st(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.name),st(gr,Ke)):(Ht=Ke.expression,gr=Ke):Ys(Ke)?Wi(Ke.expression,le)?(Ht=fe(C),gr=Oc(st(w.createAssignment(Ht,Ke.expression),Ke.expression),Ke.argumentExpression),st(gr,Ke)):(Ht=Ke.expression,gr=Ke):(Ht=K_(),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):nu(v,w.createComma)}function ds(v,C,F,le=0,Ke){let Ht=Ke?v&&nF(v):No(v);if(Ht&&Fe(Ht)&&!ol(Ht)){let gr=ja(st(Sb(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 Qa(v,C,F,le){return ds(v,C,F,32768,le)}function Wf(v,C,F){return ds(v,C,F,16384)}function q_(v,C,F){return ds(v,C,F)}function vg(v,C,F,le){let Ke=Vs(v,Xs(C)?C:Sb(C));st(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):Wf(C,F,le)}function oy(v,C,F,le){let Ke=LA(v,C,0,F);return iC(v,C,Ke,le)}function Ab(v){return Da(v.expression)&&v.expression.text==="use strict"}function ap(){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&&l_.splice(Ke,0,...C.slice(eo,Us)),eo>gr&&l_.splice(le,0,...C.slice(gr,eo)),gr>Ht&&l_.splice(F,0,...C.slice(Ht,gr)),Ht>0)if(F===0)l_.splice(0,0,...C.slice(0,Ht));else{let Rb=new Map;for(let Fm=0;Fm=0;Fm--){let ZE=C[Fm];Rb.has(ZE.expression.text)||l_.unshift(ZE)}}return S0(v)?st(j(l_,v.hasTrailingComma),v):v}function Ib(v,C){let F;return typeof C=="number"?F=Zt(C):F=C,_l(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):PR(v)?Kt(v,F,v.typeParameters,v.parameters,v.type):hp(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):gh(v)?In(v,F,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):Hl(v)?yi(v,F,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Pl(v)?kn(v,F,v.parameters,v.body):Zp(v)?ct(v,F,v.name,v.parameters,v.type,v.body):gp(v)?we(v,F,v.name,v.parameters,v.body):U0(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)?G_(v,F,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):ed(v)?Mm(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Ml(v)?Ha(v,F,v.declarationList):Sc(v)?jD(v,F,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Tc(v)?zE(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):fu(v)?vc(v,F,v.name,v.typeParameters,v.heritageClauses,v.members):Im(v)?q1(v,F,v.name,v.typeParameters,v.type):yE(v)?uA(v,F,v.name,v.members):Xl(v)?r_(v,F,v.name,v.body):nd(v)?i_(v,F,v.isTypeOnly,v.name,v.moduleReference):Lc(v)?fA(v,F,v.importClause,v.moduleSpecifier,v.attributes):Ll(v)?pb(v,F,v.expression):Yl(v)?Zg(v,F,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):R.assertNever(v)}function oC(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):Hl(v)?yi(v,C,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Zp(v)?ct(v,C,v.name,v.parameters,v.type,v.body):gp(v)?we(v,C,v.name,v.parameters,v.body):ed(v)?Mm(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):Tc(v)?zE(v,C,v.name,v.typeParameters,v.heritageClauses,v.members):R.assertNever(v)}function Up(v,C){switch(v.kind){case 177:return ct(v,v.modifiers,C,v.parameters,v.type,v.body);case 178:return we(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 cc(v){return typeof v=="string"?xe(v):v}function QE(v){return typeof v=="string"?me(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?_t():Je():v}function sx(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function FM(v){return typeof v=="number"?be(v):v}function xb(v){return v&&cH(v)?st(r(Qd(),v),v):v}function zM(v){return typeof v=="string"||v&&!Oi(v)?ju(v,void 0,void 0,void 0):v}function rr(v,C){return v!==C&&(r(v,C),st(v,C)),v}}function GU(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 XBe(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)?Rk(e):Er(e)}function Rk(e){return Er(e)&-67108865}function YBe(e,t){return t|e.transformFlags&134234112}function Er(e){if(!e)return 0;let t=e.transformFlags&~Koe(e.kind);return ou(e)&&ic(e.name)?YBe(e.name,t):t}function Ua(e){return e?e.transformFlags:0}function jSe(e){let t=0;for(let r of e)t|=Er(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 t4(e){return e.flags|=16,e}function VU(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?QBe(R.checkDefined(o)):$Be(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 $Be(e,t,r){let i,o,s,l,d,p,h,m;for(let E of e?e.sections:Ye)switch(E.kind){case"prologue":i=Tn(i,st(L.createUnparsedPrologue(E.data),E));break;case"emitHelpers":o=Tn(o,$U().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,st(L.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Ur(p,S),h=Tn(h,L.createUnparsedPrepend(E.data,S??Ye));break;case"internal":if(t){h||(h=[]);break}case"text":h=Tn(h,st(L.createUnparsedTextLike(E.data,E.kind==="internal"),E));break;default:R.assertNever(E)}if(!h){let E=L.createUnparsedTextLike(void 0,!1);tP(E,0,typeof r=="function"?r():r),h=[E]}let y=Sh.createUnparsedSource(i??Ye,void 0,h);return IR(i,y),IR(h,y),IR(p,y),y.hasNoDefaultLib=m,y.helpers=o,y.referencedFiles=s||Ye,y.typeReferenceDirectives=l,y.libReferenceDirectives=d||Ye,y}function QBe(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=Tn(t,st(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,st(L.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:R.assertNever(o)}let i=L.createUnparsedSource(Ye,r,t??Ye);return IR(r,i),IR(t,i),i.helpers=mn(e.sources&&e.sources.helpers,o=>$U().get(o)),i}function USe(e,t,r,i,o,s){return Co(e)?UU(void 0,e,r,i,void 0,t,o,s):jU(e,t,r,i,o,s)}function jU(e,t,r,i,o,s,l,d){let p=Sh.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 UU(e,t,r,i,o,s,l,d,p,h,m){let y=Sh.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 HSe(e,t,r){return new(JSe||(JSe=ld.getSourceMapSourceConstructor()))(e,t,r)}function Rr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=ZBe(r,e.emitNode))}return e}function ZBe(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=e5e(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 e5e(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var n4,HU,Joe,Fy,qoe,Dk,KSe,L,JSe,t5e=bt({"src/compiler/factory/nodeFactory.ts"(){"use strict";Zo(),n4=0,HU=(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))(HU||{}),Joe=[],qoe={},Dk=joe(),KSe={createBaseSourceFileNode:e=>t4(Dk.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>t4(Dk.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>t4(Dk.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>t4(Dk.createBaseTokenNode(e)),createBaseNode:e=>t4(Dk.createBaseNode(e))},L=xk(4,KSe)}});function wd(e){if(e.emitNode)R.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(lN(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Vn(Ro(Vn(e)))??R.fail("Could not determine parsed source file.");wd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function KU(e){var t,r;let i=(r=(t=Vn(Ro(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function Ck(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 N_(e,t){let r=wd(e);return r.flags=r.flags|t,e}function Nk(e,t){return wd(e).internalFlags=t,e}function UI(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 Ra(e,t){return wd(e).sourceMapRange=t,e}function qSe(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=wd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function uP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function r4(e,t){return wd(e).startsOnNewLine=t,e}function P_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function oc(e,t){return wd(e).commentRange=t,e}function CR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function gE(e,t){return wd(e).leadingComments=t,e}function pP(e,t,r,i){return gE(e,Tn(CR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Pk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function HI(e,t){return wd(e).trailingComments=t,e}function i4(e,t,r,i){return HI(e,Tn(Pk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Yoe(e,t){gE(e,CR(t)),HI(e,Pk(t));let r=wd(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=wd(e);return r.constantValue=t,e}function KI(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 XSe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?Rx(i,t):!1}function o4(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=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 qU(e,t){let r=wd(e);return r.snippetElement=t,e}function XU(e){return wd(e).internalFlags|=4,e}function eae(e,t){let r=wd(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 wd(e).identifierTypeArguments=t,e}function NT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Mk(e,t){return wd(e).autoGenerate=t,e}function YSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function nae(e,t){return wd(e).generatedImportReference=t,e}function rae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var n5e=bt({"src/compiler/factory/emitNode.ts"(){"use strict";Zo()}});function iae(e){let t=e.factory,r=Eu(()=>Nk(t.createTrue(),8)),i=Eu(()=>Nk(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:ke,createDisposeResourcesHelper:Et};function o(be){return dr(t.createIdentifier(be),8196)}function s(be,ze,nt,Ft){e.requestEmitHelper(a4);let _t=[];return _t.push(t.createArrayLiteralExpression(be,!0)),_t.push(ze),nt&&(_t.push(nt),Ft&&_t.push(Ft)),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,nt){return e.requestEmitHelper(l4),st(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(ze+""),be]),nt)}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 nt=[];return nt.push(y(be)),ze.get&&nt.push(h(be)),ze.set&&nt.push(m(be)),t.createObjectLiteralExpression(nt)}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,nt,Ft,_t,Je){return e.requestEmitHelper(c4),t.createCallExpression(o("__esDecorate"),void 0,[be??t.createNull(),ze??t.createNull(),nt,A(Ft),_t,Je])}function D(be,ze,nt){return e.requestEmitHelper(d4),t.createCallExpression(o("__runInitializers"),void 0,nt?[be,ze,nt]:[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(JI),t.createCallExpression(o("__await"),void 0,[be])}function K(be,ze){return e.requestEmitHelper(JI),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(JI),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,nt,Ft){e.requestEmitHelper(_4);let _t=[],Je=0;for(let ft=0;ft{let i="";for(let o=0;oe.name))}function fP(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,JI,p4,f4,m4,_4,h4,g4,y4,v4,b4,E4,S4,T4,A4,NR,I4,Lk,x4,R4,D4,C4,N4,P4,M4,$Se,kk,wk,r5e=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; };`},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); };`},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); } };`},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"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); var _, done = false; for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; for (var p in contextIn.access) context.access[p] = contextIn.access[p]; context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); if (_ = accept(result.get)) descriptor.get = _; if (_ = accept(result.set)) descriptor.set = _; if (_ = accept(result.init)) initializers.unshift(_); } else if (_ = accept(result)) { if (kind === "field") initializers.unshift(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };`},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; };`},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++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); };`},JI={name:"typescript:await",importName:"__await",scoped:!1,text:` var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},p4={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[JI],text:` var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } };`},f4={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[JI],text:` var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } };`},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); } };`},_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) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; };`},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) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); };`},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 || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })();`},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; };`},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; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; };`},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)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); };`},E4={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},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 }); };`},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); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); };`},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; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (g && (g = 0, op[0] && (_ = 0)), _) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } };`},NR={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }));`},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; });`},Lk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[NR,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; };`},x4={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},R4={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[NR],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); };`},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); };`},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; };`},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); };`},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."); var dispose; if (async) { if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); dispose = value[Symbol.asyncDispose]; } if (dispose === void 0) { if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); dispose = value[Symbol.dispose]; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; };`},M4={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } function next() { while (env.stack.length) { var rec = env.stack.pop(); try { var result = rec.dispose && rec.dispose.call(rec.value); if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } catch (e) { fail(e); } } if (env.hasError) throw env.error; } return next(); }; })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });`},kk={name:"typescript:async-super",scoped:!0,text:YU` const ${"_superIndex"} = name => super[name];`},wk={name:"typescript:advanced-async-super",scoped:!0,text:YU` 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 _p(e){return e.kind===9}function L4(e){return e.kind===10}function Da(e){return e.kind===11}function qI(e){return e.kind===12}function ZU(e){return e.kind===14}function XI(e){return e.kind===15}function YI(e){return e.kind===16}function eH(e){return e.kind===17}function k4(e){return e.kind===18}function w4(e){return e.kind===26}function aae(e){return e.kind===28}function tH(e){return e.kind===40}function nH(e){return e.kind===41}function Ok(e){return e.kind===42}function Wk(e){return e.kind===54}function Hv(e){return e.kind===58}function sae(e){return e.kind===59}function O4(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 $I(e){return e.kind===95}function W4(e){return e.kind===90}function mP(e){return e.kind===134}function cae(e){return e.kind===131}function rH(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 _P(e){return e.kind===108}function hP(e){return e.kind===102}function mae(e){return e.kind===84}function Au(e){return e.kind===166}function $a(e){return e.kind===167}function _l(e){return e.kind===168}function To(e){return e.kind===169}function Ed(e){return e.kind===170}function hp(e){return e.kind===171}function jo(e){return e.kind===172}function gh(e){return e.kind===173}function Hl(e){return e.kind===174}function Il(e){return e.kind===175}function Pl(e){return e.kind===176}function Zp(e){return e.kind===177}function gp(e){return e.kind===178}function ZI(e){return e.kind===179}function Fk(e){return e.kind===180}function U0(e){return e.kind===181}function zk(e){return e.kind===182}function xf(e){return e.kind===183}function yh(e){return e.kind===184}function PR(e){return e.kind===185}function e1(e){return e.kind===186}function yp(e){return e.kind===187}function Bk(e){return e.kind===188}function t1(e){return e.kind===189}function MR(e){return e.kind===202}function F4(e){return e.kind===190}function z4(e){return e.kind===191}function Kv(e){return e.kind===192}function n1(e){return e.kind===193}function r1(e){return e.kind===194}function PT(e){return e.kind===195}function MT(e){return e.kind===196}function Gk(e){return e.kind===197}function LT(e){return e.kind===198}function kT(e){return e.kind===199}function LR(e){return e.kind===200}function Jv(e){return e.kind===201}function og(e){return e.kind===205}function iH(e){return e.kind===204}function _ae(e){return e.kind===203}function nm(e){return e.kind===206}function H0(e){return e.kind===207}function Xa(e){return e.kind===208}function pu(e){return e.kind===209}function Ma(e){return e.kind===210}function kr(e){return e.kind===211}function Ys(e){return e.kind===212}function ra(e){return e.kind===213}function K0(e){return e.kind===214}function J0(e){return e.kind===215}function hae(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 gae(e){return e.kind===220}function kR(e){return e.kind===221}function i1(e){return e.kind===222}function qv(e){return e.kind===223}function Xv(e){return e.kind===224}function oH(e){return e.kind===225}function pr(e){return e.kind===226}function wR(e){return e.kind===227}function B4(e){return e.kind===228}function G4(e){return e.kind===229}function Ym(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 Vk(e){return e.kind===234}function aH(e){return e.kind===238}function o1(e){return e.kind===235}function gP(e){return e.kind===236}function QSe(e){return e.kind===237}function V4(e){return e.kind===360}function yP(e){return e.kind===361}function vP(e){return e.kind===239}function yae(e){return e.kind===240}function Ho(e){return e.kind===241}function Ml(e){return e.kind===243}function sH(e){return e.kind===242}function td(e){return e.kind===244}function wT(e){return e.kind===245}function ZSe(e){return e.kind===246}function eTe(e){return e.kind===247}function OT(e){return e.kind===248}function j4(e){return e.kind===249}function jk(e){return e.kind===250}function tTe(e){return e.kind===251}function nTe(e){return e.kind===252}function Am(e){return e.kind===253}function vae(e){return e.kind===254}function bP(e){return e.kind===255}function q0(e){return e.kind===256}function lH(e){return e.kind===257}function WT(e){return e.kind===258}function rTe(e){return e.kind===259}function Oi(e){return e.kind===260}function Uc(e){return e.kind===261}function Sc(e){return e.kind===262}function Tc(e){return e.kind===263}function fu(e){return e.kind===264}function Im(e){return e.kind===265}function yE(e){return e.kind===266}function Xl(e){return e.kind===267}function M_(e){return e.kind===268}function EP(e){return e.kind===269}function Uk(e){return e.kind===270}function nd(e){return e.kind===271}function Lc(e){return e.kind===272}function vh(e){return e.kind===273}function iTe(e){return e.kind===302}function bae(e){return e.kind===300}function oTe(e){return e.kind===301}function a1(e){return e.kind===300}function Eae(e){return e.kind===301}function Yv(e){return e.kind===274}function bh(e){return e.kind===280}function zg(e){return e.kind===275}function Zu(e){return e.kind===276}function Ll(e){return e.kind===277}function Yl(e){return e.kind===278}function Rf(e){return e.kind===279}function Jd(e){return e.kind===281}function aTe(e){return e.kind===282}function cH(e){return e.kind===359}function s1(e){return e.kind===362}function Eh(e){return e.kind===283}function ag(e){return e.kind===284}function FT(e){return e.kind===285}function L_(e){return e.kind===286}function X0(e){return e.kind===287}function Y0(e){return e.kind===288}function l1(e){return e.kind===289}function Sae(e){return e.kind===290}function k_(e){return e.kind===291}function $0(e){return e.kind===292}function c1(e){return e.kind===293}function SP(e){return e.kind===294}function $m(e){return e.kind===295}function OR(e){return e.kind===296}function TP(e){return e.kind===297}function ef(e){return e.kind===298}function Q0(e){return e.kind===299}function _c(e){return e.kind===303}function ep(e){return e.kind===304}function Vy(e){return e.kind===305}function Z0(e){return e.kind===306}function Tae(e){return e.kind===308}function Yi(e){return e.kind===312}function dH(e){return e.kind===313}function zT(e){return e.kind===314}function eS(e){return e.kind===316}function AP(e){return e.kind===317}function vE(e){return e.kind===318}function Aae(e){return e.kind===331}function Iae(e){return e.kind===332}function sTe(e){return e.kind===333}function xae(e){return e.kind===319}function Rae(e){return e.kind===320}function WR(e){return e.kind===321}function U4(e){return e.kind===322}function uH(e){return e.kind===323}function FR(e){return e.kind===324}function H4(e){return e.kind===325}function lTe(e){return e.kind===326}function Qm(e){return e.kind===327}function BT(e){return e.kind===329}function bE(e){return e.kind===330}function d1(e){return e.kind===335}function cTe(e){return e.kind===337}function Dae(e){return e.kind===339}function pH(e){return e.kind===345}function fH(e){return e.kind===340}function mH(e){return e.kind===341}function _H(e){return e.kind===342}function hH(e){return e.kind===343}function K4(e){return e.kind===344}function zR(e){return e.kind===346}function gH(e){return e.kind===338}function dTe(e){return e.kind===354}function Hk(e){return e.kind===347}function Zm(e){return e.kind===348}function J4(e){return e.kind===349}function yH(e){return e.kind===350}function IP(e){return e.kind===351}function rm(e){return e.kind===352}function GT(e){return e.kind===353}function uTe(e){return e.kind===334}function Cae(e){return e.kind===355}function q4(e){return e.kind===336}function X4(e){return e.kind===357}function pTe(e){return e.kind===356}function BR(e){return e.kind===358}var i5e=bt({"src/compiler/factory/nodeTests.ts"(){"use strict";Zo()}});function Kk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function VT(e,t,r,i){if($a(r))return st(e.createElementAccessExpression(t,r.expression),i);{let o=st(Jh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return N_(o,128),o}}function Nae(e,t){let r=Sh.createIdentifier(e||"React");return ja(r,Ro(t)),r}function Pae(e,t,r){if(Au(t)){let i=Pae(e,t.left,r),o=e.createIdentifier(vr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Nae(vr(t),r)}function vH(e,t,r,i){return t?Pae(e,t,i):e.createPropertyAccessExpression(Nae(r,i),"createElement")}function o5e(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)qd(d),l.push(d);else l.push(o[0]);return st(e.createCallExpression(t,void 0,l),s)}function Lae(e,t,r,i,o,s,l){let p=[o5e(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 st(e.createCallExpression(vH(e,t,i,s),void 0,p),l)}function bH(e,t,r){if(Uc(t)){let i=Va(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return st(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=st(e.createAssignment(t,r),t);return st(e.createExpressionStatement(i),t)}}function fTe(e,t,r){return Ho(t)?e.updateBlock(t,st(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Jk(e,t){if(Au(t)){let r=Jk(e,t.left),i=ja(st(e.cloneNode(t.right),t.right),t.right.parent);return st(e.createPropertyAccessExpression(r,i),t)}else return ja(st(e.cloneNode(t),t),t.parent)}function EH(e,t){return Fe(t)?e.createStringLiteralFromNode(t):$a(t)?ja(st(e.cloneNode(t.expression),t.expression),t.expression.parent):ja(st(e.cloneNode(t),t),t.parent)}function a5e(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:d}=xT(t,r);if(r===s)return st(e.createObjectDefinePropertyCall(i,EH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&st(Rr(e.createFunctionExpression(E0(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&st(Rr(e.createFunctionExpression(E0(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function s5e(e,t,r){return Rr(st(e.createAssignment(VT(e,r,t.name,t.name),t.initializer),t),t)}function l5e(e,t,r){return Rr(st(e.createAssignment(VT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function c5e(e,t,r){return Rr(st(e.createAssignment(VT(e,r,t.name,t.name),Rr(st(e.createFunctionExpression(E0(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 a5e(e,t.properties,r,i,!!t.multiLine);case 303:return s5e(e,r,i);case 304:return l5e(e,r,i);case 174:return c5e(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),st(r,t.operand);let d=Xv(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return st(d,t),o&&(d=e.createAssignment(o,d),st(d,t)),r=e.createComma(r,d),st(r,t),oH(t)&&(r=e.createComma(r,l),st(r,t)),r}function SH(e){return(za(e)&65536)!==0}function Bg(e){return(za(e)&32768)!==0}function $4(e){return(za(e)&16384)!==0}function mTe(e){return Da(e.expression)&&e.expression.text==="use strict"}function TH(e){for(let t of e)if(Em(t)){if(mTe(t))return t}else break}function wae(e){let t=Yc(e);return t!==void 0&&Em(t)&&mTe(t)}function qk(e){return e.kind===226&&e.operatorToken.kind===28}function xP(e){return qk(e)||yP(e)}function GR(e){return Fu(e)&&ar(e)&&!!rE(e)}function Q4(e){let t=iE(e);return R.assertIsDefined(t),t}function Z4(e,t=15){switch(e.kind){case 217:return t&16&&GR(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 $l(e,t=15){for(;Z4(e,t);)e=e.expression;return e}function Oae(e,t=15){let r=e.parent;for(;Z4(r,t);)r=r.parent,R.assert(r);return r}function _Te(e){return $l(e,6)}function qd(e){return r4(e,!0)}function Xk(e){let t=Nl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Wae(e){let t=Nl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function AH(e,t,r,i,o,s,l){if(i.importHelpers&&RI(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&&vf(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=Nl(r,Yi),E=wd(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 UI(h,2),h}}}function Fae(e,t,r,i,o){if(r.importHelpers&&RI(t,r)){let s=Xk(t);if(s)return s;let l=kd(r),d=(i||hh(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=Nl(t,Yi),h=wd(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Vv))}}}function VR(e,t,r){let i=aR(t);if(i&&!CI(t)&&!RF(t)){let o=i.name;return ol(o)?o:e.createIdentifier(I0(r,o)||vr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function u1(e,t,r,i,o,s){let l=oR(t);if(l&&Da(l))return u5e(t,i,e,o,s)||d5e(e,l,r)||e.cloneNode(l)}function d5e(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Yk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Cs(i))return e.createStringLiteral(Gj(r,t.fileName))}}function u5e(e,t,r,i,o){return Yk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function $k(e){if(l2(e))return e.initializer;if(_c(e)){let t=e.initializer;return Mc(t,!0)?t.right:void 0}if(ep(e))return e.objectAssignmentInitializer;if(Mc(e,!0))return e.right;if(Ym(e))return $k(e.expression)}function $v(e){if(l2(e))return e.name;if(Pg(e)){switch(e.kind){case 303:return $v(e.initializer);case 304:return e.name;case 305:return $v(e.expression)}return}return Mc(e,!0)?$v(e.left):Ym(e)?$v(e.expression):e}function e3(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function IH(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):$a(r)&&hTe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ki(r)?R.failBadSyntaxKind(r):$a(r)&&hTe(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&&ic(t))return t}function hTe(e){let t=e.kind;return t===11||t===9}function jR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function xH(e){if(e){let t=e;for(;;){if(Fe(t)||!t.body)return Fe(t)?t:t.name;t=t.body}}}function gTe(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 RH(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)||Wk(e)}function Vae(e){return Fe(e)||Gk(e)}function jae(e){return dae(e)||tH(e)||nH(e)}function Uae(e){return Hv(e)||tH(e)||nH(e)}function Hae(e){return Fe(e)||Da(e)}function yTe(e){let t=e.kind;return t===106||t===112||t===97||T0(e)||Xv(e)}function p5e(e){return e===43}function f5e(e){return e===42||e===44||e===45}function m5e(e){return p5e(e)||f5e(e)}function _5e(e){return e===40||e===41}function h5e(e){return _5e(e)||m5e(e)}function g5e(e){return e===48||e===49||e===50}function DH(e){return g5e(e)||h5e(e)}function y5e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function v5e(e){return y5e(e)||DH(e)}function b5e(e){return e===35||e===37||e===36||e===38}function E5e(e){return b5e(e)||v5e(e)}function S5e(e){return e===51||e===52||e===53}function T5e(e){return S5e(e)||E5e(e)}function A5e(e){return e===56||e===57}function I5e(e){return A5e(e)||T5e(e)}function x5e(e){return e===61||I5e(e)||wy(e)}function R5e(e){return x5e(e)||e===28}function Kae(e){return R5e(e.kind)}function n3(e,t,r,i,o,s){let l=new ETe(e,t,r,i,o,s);return d;function d(p,h){let m={value:void 0},y=[NH.enter],E=[p],S=[void 0],A=0;for(;y[A]!==NH.done;)A=y[A](l,A,y,E,S,m,h);return R.assertEqual(A,0),m.value}}function vTe(e){return e===95||e===90}function Qk(e){let t=e.kind;return vTe(t)}function bTe(e){let t=e.kind;return Ny(t)&&!vTe(t)}function Jae(e,t){if(t!==void 0)return t.length===0?t:st(e.createNodeArray([],t.hasTrailingComma),t)}function Zk(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 UR(e,t){return typeof e=="object"?EE(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function D5e(e,t){return typeof e=="string"?e:C5e(e,R.checkDefined(t))}function C5e(e,t){return lT(e)?t(e).slice(1):ol(e)?t(e):Ki(e)?e.escapedText.slice(1):vr(e)}function EE(e,t,r,i,o){return t=UR(t,o),i=UR(i,o),r=D5e(r,o),`${e?"#":""}${t}${r}${i}`}function CH(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 r3(e){let t=e.expression;for(;;){if(t=$l(t),yP(t)){t=Ja(t.elements);continue}if(qk(t)){t=t.right;continue}if(Mc(t,!0)&&ol(t.left))return t;break}}function N5e(e){return Fu(e)&&Xs(e)&&!e.emitNode}function i3(e,t){if(N5e(e))i3(e.expression,t);else if(qk(e))i3(e.left,t),i3(e.right,t);else if(yP(e))for(let r of e.elements)i3(r,t);else t.push(e)}function Yae(e){let t=[];return i3(e,t),t}function ew(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of jR(e)){let r=$v(t);if(r&&hN(r)&&(r.transformFlags&65536||r.transformFlags&128&&ew(r)))return!0}return!1}var NH,ETe,P5e=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--}})(NH||(NH={})),ETe=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 st(e,t){return t?_h(e,t.pos,t.end):e}function xm(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 M5e=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 PH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function tw(e){return gn(e.statements,L5e)||k5e(e)}function L5e(e){return xm(e)&&w5e(e,95)||nd(e)&&Eh(e.moduleReference)||Lc(e)||Ll(e)||Yl(e)?e:void 0}function k5e(e){return e.flags&8388608?STe(e):void 0}function STe(e){return O5e(e)?e:Bo(e,STe)}function w5e(e,t){return gt(e.modifiers,r=>r.kind===t)}function O5e(e){return gP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function TTe(e,t,r){return Bi(t,r,e.typeParameters)||Bi(t,r,e.parameters)||Jt(t,e.type)}function ATe(e,t,r){return Bi(t,r,e.types)}function ITe(e,t,r){return Jt(t,e.type)}function xTe(e,t,r){return Bi(t,r,e.elements)}function RTe(e,t,r){return Jt(t,e.expression)||Jt(t,e.questionDotToken)||Bi(t,r,e.typeArguments)||Bi(t,r,e.arguments)}function DTe(e,t,r){return Bi(t,r,e.statements)}function CTe(e,t,r){return Jt(t,e.label)}function NTe(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 PTe(e,t,r){return Bi(t,r,e.elements)}function MTe(e,t,r){return Jt(t,e.propertyName)||Jt(t,e.name)}function LTe(e,t,r){return Jt(t,e.tagName)||Bi(t,r,e.typeArguments)||Jt(t,e.attributes)}function RP(e,t,r){return Jt(t,e.type)}function kTe(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 DP(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 HR(e,t,r){return Jt(t,e.tagName)||(typeof e.comment=="string"?void 0:Bi(t,r,e.comment))}function W5e(e,t,r){return Jt(t,e.expression)}function Bo(e,t,r){if(e===void 0||e.kind<=165)return;let i=UTe[e.kind];return i===void 0?void 0:i(e,t,r)}function CP(e,t,r){let i=wTe(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 wTe(s))i.push(p),o.push(s)}}}function wTe(e){let t=[];return Bo(e,r,r),t;function r(i){t.unshift(i)}}function OTe(e){e.externalModuleIndicator=tw(e)}function nw(e,t,r,i=!1,o){var s,l,d,p;(s=or)==null||s.push(or.Phase.Parse,"createSourceFile",{path:e},!0),nl("beforeParse");let h;(l=ru)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:y,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=TE.parseSourceFile(e,t,m,void 0,i,6,qa,S);else{let A=E===void 0?y:N=>(N.impliedNodeFormat=E,(y||OTe)(N));h=TE.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=ru)==null||d.logStopParseSourceFile(),nl("afterParse"),Yp("Parse","beforeParse","afterParse"),(p=or)==null||p.pop(),h}function p1(e,t){return TE.parseIsolatedEntityName(e,t)}function rw(e,t){return TE.parseJsonText(e,t)}function ac(e){return e.externalModuleIndicator!==void 0}function MH(e,t,r,i=!1){let o=WH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Qae(e,t,r){let i=TE.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&TE.fixupParentReferences(i.jsDoc),i}function WTe(e,t,r){return TE.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Sd(e){return LH(e)!==void 0}function LH(e){let t=Lx(e,Tk,!1);if(t)return t;if(Tl(e,".ts")){let r=rc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function F5e(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 kH(e,t){let r=[];for(let i of Hh(t,0)||Ye){let o=t.substring(i.pos,i.end);B5e(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 wH(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(mI(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=F5e(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(mI(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(mI(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 z5e(e){if(FH.has(e))return FH.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return FH.set(e,t),t}function B5e(e,t,r){let i=t.kind===2&&HTe.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=z5e(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&&KTe.exec(r);if(o)return FTe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)FTe(e,t,4,l)}}function FTe(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=G5e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function G5e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;onew(jTe||(jTe=ld.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(GTe||(GTe=ld.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(VTe||(VTe=ld.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(BTe||(BTe=ld.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(zTe||(zTe=ld.getNodeConstructor()))(e,-1,-1)},Sh=xk(1,OH),UTe={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:TTe,180:TTe,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:ATe,193:ATe,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:ITe,198:ITe,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:xTe,207:xTe,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:RTe,214:RTe,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:DTe,268:DTe,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:CTe,252:CTe,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:NTe,231:NTe,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:PTe,279:PTe,278:function(t,r,i){return Bi(r,i,t.modifiers)||Jt(r,t.exportClause)||Jt(r,t.moduleSpecifier)||Jt(r,t.attributes)},276:MTe,281:MTe,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:LTe,286:LTe,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:RP,191:RP,316:RP,322:RP,321:RP,323:RP,325:RP,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:kTe,355:kTe,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:DP,351:DP,350:DP,347:DP,357:DP,356:DP,346:DP,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:HR,339:HR,340:HR,341:HR,342:HR,343:HR,338:HR,344:HR,360:W5e},(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=xk(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,ke,Et,be,ze,nt,Ft,_t,Je,ft,Zt,en,Dn,Jn,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 aw(Xi,(Ci=Xi.statements[0])==null?void 0:Ci.expression,Xi.parseDiagnostics,!1,void 0),Xi.referencedFiles=Ye,Xi.typeReferenceDirectives=Ye,Xi.libReferenceDirectives=Ye,Xi.amdDependencies=Ye,Xi.hasNoDefaultLib=!1,Xi.pragmas=RW,Xi}Li(X,Ae,Ue,St,Ut,Wi);let _i=Zn(Ue,xt,Ut,wr||OTe,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=Jn,Ne();let Ut=k(),wr,Wi;if(H()===1)wr=Mo([],Ut,Ut),Wi=fl();else{let Xi;for(;H()!==1;){let Qa;switch(H()){case 23:Qa=AS();break;case 112:case 97:case 106:Qa=fl();break;case 41:Pi(()=>Ne()===9&&Ne()!==59)?Qa=Qr():Qa=ey();break;case 9:case 11:if(Pi(()=>Ne()!==59)){Qa=Xr();break}default:Qa=ey();break}Xi&&So(Xi)?Xi.push(Qa):Xi?Xi=[Xi,Qa]:(Xi=Qa,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=Ts(1,f.Unexpected_token)}let Ci=Wt(X,2,6,!1,wr,Wi,Ie,qa);xt&&$e(Ci),Ci.nodeCount=Je,Ci.identifierCount=Zt,Ci.identifiers=ft,Ci.parseDiagnostics=zI(ze,Ci),nt&&(Ci.jsDocDiagnostics=zI(nt,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=fa(X),De=Ae,ke=Ue,Ft=St,Et=xt,be=dk(xt),ze=[],en=0,ft=new Map,Zt=0,Je=0,Ie=0,pn=!0,Et){case 1:case 2:Jn=524288;break;case 6:Jn=134742016;break;default:Jn=0;break}Yt=!1,t.setText(De),t.setOnError(Nt),t.setScriptTarget(ke),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,ke=void 0,Ft=void 0,Et=void 0,be=void 0,Ie=0,ze=void 0,nt=void 0,en=0,ft=void 0,Dn=void 0,pn=!0}function Zn(X,Ae,Ue,St,xt){let Ut=Sd(ve);Ut&&(Jn|=33554432),Ie=Jn,Ne();let wr=Qo(0,op);R.assert(H()===1);let Wi=ie(),Ci=Sr(fl(),Wi),_i=Wt(ve,X,Ue,Ut,wr,Ci,Ie,St);return kH(_i,De),wH(_i,Xi),_i.commentDirectives=t.getCommentDirectives(),_i.nodeCount=Je,_i.identifierCount=Zt,_i.identifiers=ft,_i.parseDiagnostics=zI(ze,_i),_i.jsDocParsingMode=xt,nt&&(_i.jsDocDiagnostics=zI(nt,_i)),Ae&&$e(_i),_i;function Xi(ds,Rs,Qa){ze.push(SR(ve,De,ds,Rs,Qa))}}let jr=!1;function Sr(X,Ae){if(!Ae)return X;R.assert(!X.jsDoc);let Ue=to(cj(X,De),St=>J_.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=Ft,Ue=WH.createSyntaxCursor(X);Ft={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 Qa=Jl(xt,q_=>q_.start>=ds.pos),Wf=Qa>=0?Jl(xt,q_=>q_.start>=Rs.pos,Qa):-1;Qa>=0&&Ur(ze,xt,Qa,Wf>=0?Wf:void 0),ho(()=>{let q_=Jn;for(Jn|=65536,t.resetTokenState(Rs.pos),Ne();H()!==1;){let vg=t.getTokenFullStart(),iy=Zl(0,op);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))}}Jn=q_},2),wr=Ut>=0?Ci(X.statements,Ut):-1}if(Ut>=0){let ds=X.statements[Ut];Ur(St,X.statements,Ut);let Rs=Jl(xt,Qa=>Qa.start>=ds.pos);Rs>=0&&Ur(ze,xt,Rs)}return Ft=Ae,m.updateSourceFile(X,st(y(St),X.statements));function Wi(ds){return!(ds.flags&65536)&&!!(ds.transformFlags&67108864)}function Ci(ds,Rs){for(let Qa=Rs;Qa118}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,ca(X)),!1)}let Os=Object.keys(YL).filter(X=>X.length>2);function Ql(X){if(J0(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)?vr(X):void 0;if(!Ae||!$p(Ae,ke)){dn(f._0_expected,ca(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=YC(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&&!sc()){Ue?dn(f._0_expected,ca(27)):dn(f.Expected_for_property_initializer);return}if(!Rl()){if(Ue){dn(f._0_expected,ca(27));return}Ql(X)}}function hl(X){return H()===X?(It(),!0):(R.assert(t6(X)),dn(f._0_expected,ca(X)),!1)}function dd(X,Ae,Ue,St){if(H()===Ae){Ne();return}let xt=dn(f._0_expected,ca(Ae));Ue&&xt&&Pa(xt,SR(ve,De,St,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ca(X),ca(Ae)))}function mo(X){return H()===X?(Ne(),!0):!1}function sa(X){if(H()===X)return fl()}function ud(X){if(H()===X)return Pf()}function Ts(X,Ae,Ue){return sa(X)||Gs(X,!1,Ae||f._0_expected,Ue||ca(X))}function Ca(X){let Ae=ud(X);return Ae||(R.assert(t6(X)),Gs(X,!1,f._0_expected,ca(X)))}function fl(){let X=k(),Ae=H();return Ne(),tn(w(Ae),X)}function Pf(){let X=k(),Ae=H();return It(),tn(w(Ae),X)}function sc(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function Rl(){return sc()?(H()===27&&Ne(),!0):!1}function ll(){return Rl()||xn(27)}function Mo(X,Ae,Ue,St){let xt=y(X,St);return _h(xt,Ae,Ue??t.getTokenFullStart()),xt}function tn(X,Ae,Ue){return _h(X,Ae,Ue??t.getTokenFullStart()),Jn&&(X.flags|=Jn),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 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 Sp(X){return pd(Hr(),void 0,X)}function Ns(X,Ae){return pd(Io(),X,Ae)}function Ic(X){return pd(iu(H()),X)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&dn(f.Unicode_escape_sequence_cannot_appear_here),pd(iu(H()))}function $(){return iu(H())||H()===11||H()===9}function Me(){return iu(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():Ic()}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(gc):H()===156?Pi(El):Jo();case 90:return gc();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 El(){return Ne(),Jo()}function Hc(){return Ny(H())&&Ri(Cr)}function Vs(){return H()===23||H()===19||H()===42||H()===26||$()}function gc(){return Ne(),H()===86||H()===100||H()===120||H()===60||H()===128&&Pi(AA)||H()===134&&Pi(IA)}function bs(X,Ae){if(yc(X))return!0;switch(X){case 0:case 1:case 3:return!(H()===27&&Ae)&&xS();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 Me();case 7:return H()===19?Pi(Kc):Ae?Io()&&!mu():q1()&&!mu();case 8:return ts();case 10:return H()===28||H()===26||ts();case 19:return H()===103||H()===87||Io();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||n_();case 16:return V_(!1);case 17:return V_(!0);case 20:case 21:return H()===28||ug();case 22:return I();case 23:return H()===161&&Pi(QD)?!1:iu(H());case 13:return iu(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 np(){return Ne(),Io()}function Oc(){return Ne(),iu(H())}function om(){return Ne(),One(H())}function mu(){return H()===119||H()===96?Pi(Re):!1}function Re(){return Ne(),n_()}function Lt(){return Ne(),ug()}function Hn(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!!(sc()||$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 Tp(){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 Tp()}function Z(X,Ae){let Ue=k(),St=X?Ic(Ae):Ns(Ae);for(;mo(25)&&H()!==30;)St=tn(m.createQualifiedName(St,Ot(X,!1,!0)),Ue);return St}function it(X,Ae){return tn(m.createQualifiedName(X,Ae),X.pos)}function Ot(X,Ae,Ue){if(t.hasPrecedingLineBreak()&&iu(H())&&Pi(jp))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?Ic():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),rt()),X)}function rt(){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(vc(),er(!1)),X)}function er(X){return H()===20?(wn(X),La()):Ts(18,f._0_expected,ca(20))}function ii(X){let Ae=k();return tn(m.createTemplateSpan(vn(Ve),er(X)),Ae)}function Xr(){return wl(H())}function no(X){!X&&t.getTokenFlags()&26656&&wn(!1);let Ae=wl(H());return R.assert(Ae.kind===16,"Template head has wrong token kind"),Ae}function La(){let X=wl(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 wl(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()):fN(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 xc(){if(!t.hasPrecedingLineBreak()&&Bn()===30)return Gu(20,vc,30,32)}function Ap(){let X=k();return tn(m.createTypeReferenceNode(fd(),xc()),X)}function Vu(X){switch(X.kind){case 183:return zl(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 ab(X){return Ne(),tn(m.createTypePredicateNode(void 0,X,vc()),X.pos)}function cs(){let X=k();return Ne(),tn(m.createThisTypeNode(),X)}function Nm(){let X=k();return Ne(),tn(m.createJSDocAllType(),X)}function Pm(){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(vc(),!1),X)}function Jg(){let X=k(),Ae=ie();if(Ri(Of)){let Ue=fn(36),St=Vt(59,!1);return Sr(tn(m.createJSDocFunctionType(Ue,St),X),Ae)}return tn(m.createTypeReferenceNode(Ic(),void 0),X)}function Zy(){let X=k(),Ae;return(H()===110||H()===105)&&(Ae=Ic(),xn(59)),tn(m.createParameterDeclaration(void 0,void 0,Ae,void 0,Mm(),void 0),X)}function Mm(){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 _S(){let X=k();xn(114);let Ae=Z(!0),Ue=t.hasPrecedingLineBreak()?void 0:XE();return tn(m.createTypeQueryNode(Ae,Ue),X)}function hS(){let X=k(),Ae=Ph(!1,!0),Ue=Ns(),St,xt;mo(96)&&(ug()||!n_()?St=vc():xt=ub());let Ut=mo(64)?vc():void 0,wr=m.createTypeParameterDeclaration(Ae,Ue,St,Ut);return wr.expression=xt,tn(wr,X)}function df(){if(H()===30)return Gu(19,hS,30,32)}function V_(X){return H()===26||ts()||Ny(H())||H()===60||ug(!X)}function uf(X){let Ae=Tr(f.Private_identifiers_cannot_be_used_as_parameters);return g2(Ae)===0&&!gt(X)&&Ny(H())&&Ne(),Ae}function qg(){return Hr()||H()===23||H()===19}function Oe(X){return Pt(X)}function qe(X){return Pt(X,!1)}function Pt(X,Ae=!0){let Ue=k(),St=ie(),xt=X?se(()=>Ph(!0)):we(()=>Ph(!0));if(H()===110){let Ci=m.createParameterDeclaration(xt,void 0,pd(!0),void 0,tv(),void 0),_i=Yc(xt);return _i&&Le(_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,uf(xt),sa(58),tv(),r_()),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,ca(59)),Ne(),!0):!1}function qn(X,Ae){let Ue=Tt(),St=hn();yi(!!(X&1)),Ao(!!(X&2));let xt=X&32?zd(17,Zy):zd(16,()=>Ae?Oe(St):qe(St));return yi(Ue),Ao(St),xt}function fn(X){if(!xn(21))return Tp();let Ae=qn(X,!0);return xn(22),Ae}function Xn(){mo(28)||ll()}function mi(X){let Ae=k(),Ue=ie();X===180&&xn(105);let St=df(),xt=fn(4),Ut=Vt(59,!0);Xn();let wr=X===179?m.createCallSignature(St,xt,Ut):m.createConstructSignature(St,xt,Ut);return Sr(tn(wr,Ae),Ue)}function sr(){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,()=>Oe(!1),23,24),xt=tv();Xn();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=df(),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=r_())}return Xn(),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||sc():!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=Ph(!1);return Fr(139)?ny(X,Ae,Ue,177,4):Fr(153)?ny(X,Ae,Ue,178,4):sr()?ur(X,Ae,Ue):Xo(X,Ae,Ue)}function md(){return Ne(),H()===21||H()===30}function Xg(){return Ne()===25}function wE(){switch(Ne()){case 21:case 30:case 25:return!0}return!1}function z1(){let X=k();return tn(m.createTypeLiteralNode(OE()),X)}function OE(){let X;return xn(19)?(X=Qo(4,Qd),xn(20)):X=Tp(),X}function FD(){return Ne(),H()===40||H()===41?Ne()===148:(H()===148&&Ne(),H()===23&&np()&&Ne()===103)}function zD(){let X=k(),Ae=Ic();xn(103);let Ue=vc();return tn(m.createTypeParameterDeclaration(void 0,Ae,Ue,void 0),X)}function BD(){let X=k();xn(19);let Ae;(H()===148||H()===40||H()===41)&&(Ae=fl(),Ae.kind!==148&&xn(148)),xn(23);let Ue=zD(),St=mo(130)?vc():void 0;xn(24);let xt;(H()===58||H()===40||H()===41)&&(xt=fl(),xt.kind!==58&&xn(58));let Ut=tv();ll();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(vc()),X);let Ae=vc();if(WR(Ae)&&Ae.pos===Ae.type.pos){let Ue=m.createOptionalTypeNode(Ae.type);return st(Ue,Ae),Ue.flags=Ae.flags,Ue}return Ae}function gS(){return Ne()===59||H()===58&&Ne()===59}function B1(){return H()===26?iu(Ne())&&gS():iu(H())&&gS()}function GD(){if(Pi(B1)){let X=k(),Ae=ie(),Ue=sa(26),St=Ic(),xt=sa(58);xn(59);let Ut=sA(),wr=m.createNamedTupleMember(Ue,St,xt,Ut);return Sr(tn(wr,X),Ae)}return sA()}function G1(){let X=k();return tn(m.createTupleTypeNode(Gu(21,GD,23,24)),X)}function V1(){let X=k();xn(21);let Ae=vc();return xn(22),tn(m.createParenthesizedType(Ae),X)}function j1(){let X;if(H()===128){let Ae=k();Ne();let Ue=tn(w(128),Ae);X=Mo([Ue],Ae)}return X}function U1(){let X=k(),Ae=ie(),Ue=j1(),St=mo(105);R.assert(!Ue||St,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let xt=df(),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=fl();return H()===25?void 0:X}function H1(X){let Ae=k();X&&Ne();let Ue=H()===112||H()===97||H()===106?fl():wl(H());return X&&(Ue=tn(m.createPrefixUnaryExpression(41,Ue),Ae)),tn(m.createLiteralTypeNode(Ue),Ae)}function yS(){return Ne(),H()===102}function vS(){Ie|=4194304;let X=k(),Ae=mo(114);xn(102),xn(21);let Ue=vc(),St;if(mo(28)){let wr=t.getTokenStart();xn(19);let Wi=H();if(Wi===118||Wi===132?Ne():dn(f._0_expected,ca(118)),xn(59),St=Eb(Wi,!0),!xn(20)){let Ci=Zs(ze);Ci&&Ci.code===f._0_expected.code&&Pa(Ci,SR(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=xc();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(lA)||Ap();case 67:t.reScanAsteriskEqualsToken();case 42:return Nm();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Jg();case 54:return Pm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return H1();case 41:return Pi(sb)?H1(!0):Ap();case 116:return fl();case 110:{let X=cs();return H()===142&&!t.hasPrecedingLineBreak()?ab(X):X}case 114:return Pi(yS)?vS():_S();case 19:return Pi(FD)?BD():z1();case 23:return G1();case 21:return V1();case 102:return vS();case 131:return Pi(jp)?J1():Ap();case 16:return Se();default:return Ap()}}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(sb);case 21:return!X&&Pi(WE);default:return Io()}}function WE(){return Ne(),H()===22||V_(!1)||ug()}function Za(){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),ug()){let Ue=vc();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,Rh()),Ae)}function VD(){if(mo(96)){let X=dt(vc);if(pt()||H()!==58)return X}}function FE(){let X=k(),Ae=Ns(),Ue=Ri(VD),St=m.createTypeParameterDeclaration(void 0,Ae,Ue);return tn(St,X)}function Yg(){let X=k();return xn(140),tn(m.createInferTypeNode(FE()),X)}function Rh(){let X=H();switch(X){case 143:case 158:case 148:return cA(X);case 140:return Yg()}return Be(Za)}function Lf(X){if(dA()){let Ae=U1(),Ue;return yh(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,Le(Ae,Ue),Ae}}function ju(X,Ae,Ue){let St=k(),xt=X===52,Ut=mo(X),wr=Ut&&Lf(xt)||Ae();if(H()===X||Ut){let Wi=[wr];for(;mo(X);)Wi.push(Lf(xt)||Ae());wr=tn(Ue(Mo(Wi,St)),St)}return wr}function Ip(){return ju(51,Rh,m.createIntersectionTypeNode)}function rp(){return ju(52,Ip,m.createUnionTypeNode)}function ev(){return Ne(),H()===105}function dA(){return H()===30||H()===21&&Pi(K1)?!0:H()===105||H()===128&&Pi(ev)}function jD(){if(Ny(H())&&Ph(!1),Io()||H()===110)return Ne(),!0;if(H()===23||H()===19){let X=ze.length;return Tr(),X===ze.length}return!1}function K1(){return Ne(),!!(H()===22||H()===26||jD()&&(H()===59||H()===28||H()===58||H()===64||H()===22&&(Ne(),H()===39)))}function cb(){let X=k(),Ae=Io()&&Ri(zE),Ue=vc();return Ae?tn(m.createTypePredicateNode(void 0,Ae,Ue),X):Ue}function zE(){let X=Ns();if(H()===142&&!t.hasPrecedingLineBreak())return Ne(),X}function J1(){let X=k(),Ae=Ts(131),Ue=H()===110?cs():Ns(),St=mo(142)?vc():void 0;return tn(m.createTypePredicateNode(Ae,Ue,St),X)}function vc(){if(Jn&81920)return da(81920,vc);if(dA())return U1();let X=k(),Ae=rp();if(!pt()&&!t.hasPrecedingLineBreak()&&mo(96)){let Ue=dt(vc);xn(58);let St=Be(vc);xn(59);let xt=Be(vc);return tn(m.createConditionalTypeNode(Ae,Ue,St,xt),X)}return Ae}function tv(){return mo(59)?vc():void 0}function q1(){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(wE);default:return Io()}}function n_(){if(q1())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 o_()?!0:Io()}}function uA(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&n_()}function Ve(){let X=Bt();X&&$i(!1);let Ae=k(),Ue=_d(!0),St;for(;St=sa(28);)Ue=bS(Ue,St,_d(!0),Ae);return X&&$i(!0),Ue}function r_(){return mo(64)?_d(!0):void 0}function _d(X){if(BE())return db();let Ae=rv(X)||pA(X);if(Ae)return Ae;let Ue=k(),St=ie(),xt=sm(0);return xt.kind===80&&H()===39?nv(Ue,xt,X,St,void 0):$u(xt)&&wy(Kt())?bS(xt,fl(),_d(X),Ue):am(xt,Ue,X)}function BE(){return H()===127?Tt()?!0:Pi(js):!1}function X1(){return Ne(),!t.hasPrecedingLineBreak()&&Io()}function db(){let X=k();return Ne(),!t.hasPrecedingLineBreak()&&(H()===42||n_())?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=Ts(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=NM();if(Ae!==0)return Ae===1?GE(!0,!0):Ri(()=>i_(X))}function NM(){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(np))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 i_(X){let Ae=t.getTokenStart();if(Dn?.has(Ae))return;let Ue=GE(!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=_f(),xt=sm(0);return nv(Ae,xt,X,Ue,St)}}function fA(){if(H()===134){if(Ne(),t.hasPrecedingLineBreak()||H()===39)return 0;let X=sm(0);if(!t.hasPrecedingLineBreak()&&X.kind===80&&H()===39)return 1}return 0}function GE(X,Ae){let Ue=k(),St=ie(),xt=_f(),Ut=gt(xt,mP)?2:0,wr=df(),Wi;if(xn(21)){if(X)Wi=qn(Ut,X);else{let vg=qn(Ut,X);if(!vg)return;Wi=vg}if(!xn(22)&&!X)return}else{if(!X)return;Wi=Tp()}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&&FR(Xi);if(!X&&H()!==39&&(ds||H()!==19))return;let Rs=H(),Qa=Ts(39),Wf=Rs===39||Rs===19?mA(gt(xt,mP),Ae):Ns();if(!Ae&&Ci&&H()!==59)return;let q_=m.createArrowFunction(xt,wr,Wi,_i,Qa,Wf);return Sr(tn(q_,Ue),St)}function mA(X,Ae){if(H()===19)return _b(X?2:0);if(H()!==27&&H()!==100&&H()!==86&&xS()&&!uA())return _b(16|(X?2:0));let Ue=pn;pn=!1;let St=X?se(()=>_d(Ae)):we(()=>_d(Ae));return pn=Ue,St}function am(X,Ae,Ue){let St=sa(58);if(!St)return X;let xt;return tn(m.createConditionalExpression(X,St,da(r,()=>_d(!1)),xt=Ts(59),Kf(xt)?_d(Ue):Gs(80,!1,f._0_expected,ca(59))),Ae)}function sm(X){let Ae=k(),Ue=ub();return Y1(X,Ue,Ae)}function $g(X){return X===103||X===165}function Y1(X,Ae,Ue){for(;;){Kt();let St=tk(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?UD(Ae,vc()):qi(Ae,vc())}}else Ae=bS(Ae,fl(),sm(St),Ue)}return Ae}function o_(){return He()&&H()===103?!1:tk(H())>0}function UD(X,Ae){return tn(m.createSatisfiesExpression(X,Ae),X.pos)}function bS(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(yl)),X)}function Dh(){let X=k();return tn(m.createDeleteExpression(We(yl)),X)}function Uu(){let X=k();return tn(m.createTypeOfExpression(We(yl)),X)}function PM(){let X=k();return tn(m.createVoidExpression(We(yl)),X)}function Qg(){return H()===135?hn()?!0:Pi(js):!1}function MM(){let X=k();return tn(m.createAwaitExpression(We(yl)),X)}function ub(){if(Gp()){let Ue=k(),St=pg();return H()===43?Y1(tk(H()),St,Ue):St}let X=H(),Ae=yl();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(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,ca(X)))}return Ae}function yl(){switch(H()){case 40:case 41:case 55:case 54:return Qr();case 91:return Dh();case 114:return Uu();case 116:return PM();case 30:return be===1?Zg(!0,void 0,void 0,!0):km();case 135:if(Qg())return MM();default:return pg()}}function Gp(){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(lm)),Ae)}else if(be===1&&H()===30&&Pi(om))return Zg(!0);let X=lm();if(R.assert($u(X)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){let Ae=H();return Ne(),tn(m.createPostfixUnaryExpression(X,Ae),X.pos)}return X}function lm(){let X=k(),Ae;return H()===102?Pi(md)?(Ie|=4194304,Ae=fl()):Pi(Xg)?(Ne(),Ne(),Ae=tn(m.createMetaProperty(102,Ic()),X),Ie|=8388608):Ae=pb():Ae=H()===108?Lm():pb(),ov(X,Ae)}function pb(){let X=k(),Ae=VE();return id(X,Ae,!0)}function Lm(){let X=k(),Ae=fl();if(H()===30){let Ue=k(),St=Ri(lr);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:(Ts(25,f.super_must_be_followed_by_an_argument_list_or_member_access),tn(Y(Ae,Ot(!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&&!SE(_i.openingElement.tagName,_i.closingElement.tagName)&&SE(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=SS(Ut,X),SE(Ut.tagName,Ci.tagName)||(Ue&&L_(Ue)&&SE(Ci.tagName,Ue.tagName)?Le(Ut.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,vN(De,Ut.tagName)):Le(Ci.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,vN(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 tP(_i,Ci.pos,0),U(Na(De,Wi),Ci.end,f.JSX_expressions_must_have_one_parent_element),tn(m.createBinaryExpression(wr,_i,Ci),xt)}}return wr}function ES(){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(l1(X))Le(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,vN(De,X.tagName))}return;case 31:case 7:return;case 12:case 13:return ES();case 19:return HD(!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),L_(X)&&xt?.kind===284&&!SE(xt.openingElement.tagName,xt.closingElement.tagName)&&SE(X.tagName,xt.closingElement.tagName)))break}return en=St,Mo(Ae,Ue)}function $1(){let X=k();return tn(m.createJsxAttributes(Qo(13,KD)),X)}function mg(X){let Ae=k();if(xn(30),H()===32)return nr(),tn(m.createJsxOpeningFragment(),Ae);let Ue=j_(),St=Jn&524288?void 0:XE(),xt=$1(),Ut;return H()===32?(nr(),Ut=m.createJsxOpeningElement(Ue,St,xt)):(xn(44),xn(32,void 0,!1)&&(X?Ne():nr()),Ut=m.createJsxSelfClosingElement(Ue,St,xt)),tn(Ut,Ae)}function j_(){let X=k(),Ae=iv();if($m(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 HD(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)&&nr(),tn(m.createJsxExpression(Ue,St),Ae)}function KD(){if(H()===19)return $s();let X=k();return tn(m.createJsxAttribute(hA(),JD()),X)}function JD(){if(H()===64){if(Wr()===11)return Xr();if(H()===19)return HD(!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 $s(){let X=k();xn(19),xn(26);let Ae=Ve();return xn(20),tn(m.createJsxSpreadAttribute(Ae),X)}function SS(X,Ae){let Ue=k();xn(31);let St=j_();return xn(32,void 0,!1)&&(Ae||!SE(X.tagName,St)?Ne():nr()),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():nr()),tn(m.createJsxJsxClosingFragment(),Ae)}function km(){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=vc();xn(32);let Ue=yl();return tn(m.createTypeAssertion(Ae,Ue),X)}function fb(){return Ne(),iu(H())||H()===23||Qi()}function qD(){return H()===29&&Pi(fb)}function yA(X){if(X.flags&64)return!0;if(o1(X)){let Ae=X.expression;for(;o1(Ae)&&!(Ae.flags&64);)Ae=Ae.expression;if(Ae.flags&64){for(;o1(X);)X.flags|=64,X=X.expression;return!0}}return!1}function LM(X,Ae,Ue){let St=Ot(!0,!0,!0),xt=Ue||yA(Ae),Ut=xt?B(Ae,Ue,St):Y(Ae,St);if(xt&&Ki(Ut.name)&&Le(Ut.name,f.An_optional_chain_cannot_contain_private_identifiers),Gy(Ae)&&Ae.typeArguments){let wr=Ae.typeArguments.pos-1,Wi=Na(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);Qp(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&&qD()?(St=Ts(29),xt=iu(H())):xt=mo(25),xt){Ae=LM(X,Ae,St);continue}if((St||!Bt())&&mo(23)){Ae=_r(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(lr);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=id(X,Ae,!0);let Ue,St=sa(29);if(St&&(Ue=Ri(lr),Qi())){Ae=pf(X,Ae,St,Ue);continue}if(Ue||H()===21){!St&&Ae.kind===233&&(Ue=Ae.typeArguments,Ae=Ae.expression);let xt=U_(),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 U_(){xn(21);let X=zd(11,TS);return xn(22),X}function lr(){if(Jn&524288||Bn()!==30)return;Ne();let X=zd(20,vc);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()||o_()||!n_()}function VE(){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 fl();case 21:return qc();case 23:return AS();case 19:return ey();case 134:if(!Pi(IA))break;return bA();case 60:return qE();case 86:return ix();case 100:return bA();case 105:return jE();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 Ch(){let X=k();xn(26);let Ae=_d(!0);return tn(m.createSpreadElement(Ae),X)}function wm(){return H()===26?Ch():H()===28?tn(m.createOmittedExpression(),k()):_d(!0)}function TS(){return da(r,wm)}function AS(){let X=k(),Ae=t.getTokenStart(),Ue=xn(23),St=t.hasPrecedingLineBreak(),xt=zd(15,wm);return dd(23,24,Ue,Ae),tn(j(xt,St),X)}function mb(){let X=k(),Ae=ie();if(sa(26)){let Xi=_d(!0);return Sr(tn(m.createSpreadAssignment(Xi),X),Ae)}let Ue=Ph(!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 a_(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,mb,!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=Ph(!1);xn(100);let xt=sa(42),Ut=xt?1:0,wr=gt(St,mP)?2:0,Wi=Ut&&wr?lt(Om):Ut?ct(Om):wr?se(Om):Om(),Ci=df(),_i=fn(Ut|wr),Xi=Vt(59,!1),ds=_b(Ut|wr);$i(X);let Rs=m.createFunctionExpression(St,xt,Wi,Ci,_i,Xi,ds);return Sr(tn(Rs,Ae),Ue)}function Om(){return Hr()?Sp():void 0}function jE(){let X=k();if(xn(105),mo(25)){let Ut=Ic();return tn(m.createMetaProperty(105,Ut),X)}let Ae=k(),Ue=id(Ae,VE(),!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,vN(De,Ue));let xt=H()===21?U_():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,op);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=Tp();return Sr(tn(J(wr,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 wr=_g(!!(X&16),Ae);return Ut&&$i(!0),pn=xt,yi(Ue),Ao(St),wr}function Q1(){let X=k(),Ae=ie();return xn(27),Sr(tn(m.createEmptyStatement(),X),Ae)}function UE(){let X=k(),Ae=ie();xn(101);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);dd(21,22,St,Ue);let Ut=op(),wr=mo(93)?op():void 0;return Sr(tn(xe(xt,Ut,wr),X),Ae)}function XD(){let X=k(),Ae=ie();xn(92);let Ue=op();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 IS(){let X=k(),Ae=ie();xn(117);let Ue=t.getTokenStart(),St=xn(21),xt=vn(Ve);dd(21,22,St,Ue);let Ut=op();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(xp)?St=RS(!0):St=kn(Ve));let xt;if(Ue?xn(165):mo(165)){let Ut=vn(()=>_d(!0));xn(22),xt=he(Ue,St,Ut,op())}else if(mo(103)){let Ut=vn(Ve);xn(22),xt=m.createForInStatement(St,Ut,op())}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,op())}return Sr(tn(xt,X),Ae)}function Vp(X){let Ae=k(),Ue=ie();xn(X===252?83:88);let St=sc()?void 0:Ns();ll();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=sc()?void 0:vn(Ve);return ll(),Sr(tn(m.createReturnStatement(Ue),X),Ae)}function jl(){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,op);return Sr(tn(m.createWithStatement(xt,Ut),X),Ae)}function Wc(){let X=k(),Ae=ie();xn(84);let Ue=vn(Ve);xn(59);let St=Qo(3,op);return Sr(tn(m.createCaseClause(Ue,St),X),Ae)}function TA(){let X=k();xn(90),xn(59);let Ae=Qo(3,op);return tn(m.createDefaultClause(Ae),X)}function Ad(){return H()===84?Wc():TA()}function ip(){let X=k();xn(19);let Ae=Qo(2,Ad);return xn(20),tn(m.createCaseBlock(Ae),X)}function HE(){let X=k(),Ae=ie();xn(109),xn(21);let Ue=vn(Ve);xn(22);let St=ip();return Sr(tn(m.createSwitchStatement(Ue,St),X),Ae)}function kf(){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()||Ql(Ue),Sr(tn(m.createThrowStatement(Ue),X),Ae)}function hb(){let X=k(),Ae=ie();xn(113);let Ue=_g(!1),St=H()===85?gb():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 gb(){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),ll(),Sr(tn(m.createDebuggerStatement(),X),Ae)}function Z1(){let X=k(),Ae=ie(),Ue,St=H()===21,xt=vn(Ve);return Fe(xt)&&mo(59)?Ue=m.createLabeledStatement(xt,op()):(Rl()||Ql(xt),Ue=pe(xt),St&&(Ae=!1)),Sr(tn(Ue,X),Ae)}function jp(){return Ne(),iu(H())&&!t.hasPrecedingLineBreak()}function AA(){return Ne(),H()===86&&!t.hasPrecedingLineBreak()}function IA(){return Ne(),H()===100&&!t.hasPrecedingLineBreak()}function js(){return Ne(),(iu(H())||H()===9||H()===10||H()===11)&&!t.hasPrecedingLineBreak()}function YD(){for(;;)switch(H()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ex();case 135:return tx();case 120:case 156:return X1();case 144:case 145:return ZD();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||iu(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 KE(){return Pi(YD)}function xS(){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 KE()||Pi(wE);case 87:case 95:return KE();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 KE()||!Pi(jp);default:return n_()}}function kM(){return Ne(),Hr()||H()===19||H()===23}function _u(){return Pi(kM)}function ty(){return H_(!0)}function H_(X){return Ne(),X&&H()===165?!1:(Hr()||H()===19)&&!t.hasPrecedingLineBreak()}function ex(){return Pi(H_)}function xp(X){return Ne()===160?H_(X):!1}function tx(){return Pi(xp)}function op(){switch(H()){case 27:return Q1();case 19:return _g(!1);case 115:return JE(k(),ie(),void 0);case 121:if(_u())return JE(k(),ie(),void 0);break;case 135:if(tx())return JE(k(),ie(),void 0);break;case 160:if(ex())return JE(k(),ie(),void 0);break;case 100:return DS(k(),ie(),void 0);case 86:return NA(k(),ie(),void 0);case 101:return UE();case 92:return XD();case 117:return IS();case 99:return EA();case 88:return Vp(251);case 83:return Vp(252);case 107:return SA();case 118:return jl();case 109:return HE();case 111:return kf();case 113:case 85:case 98:return hb();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(KE())return av();break}return Z1()}function nx(X){return X.kind===138}function av(){let X=k(),Ae=ie(),Ue=Ph(!0);if(gt(Ue,nx)){let xt=xA(X);if(xt)return xt;for(let Ut of Ue)Ut.flags|=33554432;return Ba(33554432,()=>$D(X,Ae,Ue))}else return $D(X,Ae,Ue)}function xA(X){return Ba(33554432,()=>{let Ae=yc(en,X);if(Ae)return cl(Ae)})}function $D(X,Ae,Ue){switch(H()){case 115:case 121:case 87:case 160:case 135:return JE(X,Ae,Ue);case 100:return DS(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 wi(X,Ae,Ue);case 162:case 144:case 145:return Zd(X,Ae,Ue);case 102:return jn(X,Ae,Ue);case 95:switch(Ne(),H()){case 90:case 64:return kh(X,Ae,Ue);case 130:return Mh(X,Ae,Ue);default:return wM(X,Ae,Ue)}default:if(Ue){let St=Gs(282,!0,f.Declaration_expected);return eP(St,X),St.modifiers=Ue,St}return}}function QD(){return Ne()===11}function RA(){return Ne(),H()===161||H()===64}function ZD(){return Ne(),!t.hasPrecedingLineBreak()&&(Io()||H()===11)}function yb(X,Ae){if(H()!==19){if(X&4){Xn();return}if(sc()){ll();return}}return _b(X,Ae)}function Rp(){let X=k();if(H()===28)return tn(m.createOmittedExpression(),X);let Ae=sa(26),Ue=Tr(),St=r_();return tn(m.createBindingElement(Ae,void 0,Ue,St),X)}function Nh(){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=r_();return tn(m.createBindingElement(Ae,St,xt,Ut),X)}function eC(){let X=k();xn(19);let Ae=vn(()=>zd(9,Nh));return xn(20),tn(m.createObjectBindingPattern(Ae),X)}function DA(){let X=k();xn(23);let Ae=vn(()=>zd(10,Rp));return xn(24),tn(m.createArrayBindingPattern(Ae),X)}function ts(){return H()===19||H()===23||H()===81||Hr()}function Tr(X){return H()===23?DA():H()===19?eC():Sp(X)}function ff(){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=fl());let Ut=tv(),wr=$g(H())?void 0:r_(),Wi=Ce(St,xt,Ut,wr);return Sr(tn(Wi,Ae),Ue)}function RS(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(tx()),Ue|=6,Ne();break;default:R.fail()}Ne();let St;if(H()===165&&Pi(tC))St=Tp();else{let xt=He();si(X),St=zd(8,X?Cu:ff),si(xt)}return tn(Ge(St,Ue),Ae)}function tC(){return np()&&Ne()===22}function JE(X,Ae,Ue){let St=RS(!1);ll();let xt=re(Ue,St);return Sr(tn(xt,X),Ae)}function DS(X,Ae,Ue){let St=hn(),xt=D_(Ue);xn(100);let Ut=sa(42),wr=xt&2048?Om():Sp(),Wi=Ut?1:0,Ci=xt&1024?2:0,_i=df();xt&32&&Ao(!0);let Xi=fn(Wi|Ci),ds=Vt(59,!1),Rs=yb(Wi|Ci,f.or_expected);Ao(St);let Qa=m.createFunctionDeclaration(Ue,Ut,wr,_i,Xi,ds,Rs);return Sr(tn(Qa,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=df(),xt=fn(0),Ut=Vt(59,!1),wr=yb(0,f.or_expected),Wi=m.createConstructorDeclaration(Ue,xt,wr);return Wi.typeParameters=St,Wi.type=Ut,Sr(tn(Wi,X),Ae)}})}function a_(X,Ae,Ue,St,xt,Ut,wr,Wi){let Ci=St?1:0,_i=gt(Ue,mP)?2:0,Xi=df(),ds=fn(Ci|_i),Rs=Vt(59,!1),Qa=yb(Ci|_i,Wi),Wf=m.createMethodDeclaration(Ue,St,xt,Ut,Xi,ds,Rs,Qa);return Wf.exclamationToken=wr,Sr(tn(Wf,X),Ae)}function mf(X,Ae,Ue,St,xt){let Ut=!xt&&!t.hasPrecedingLineBreak()?sa(54):void 0,wr=tv(),Wi=da(90112,r_);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?a_(X,Ae,Ue,St,xt,Ut,void 0,f.or_expected):mf(X,Ae,Ue,xt,Ut)}function ny(X,Ae,Ue,St,xt){let Ut=cn(),wr=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=wr,gp(Xi)&&(Xi.type=Ci),Sr(tn(Xi,X),Ae)}function gg(){let X;if(H()===60)return!0;for(;Ny(H());){if(X=H(),LV(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 sc()}}return!1}function yg(X,Ae,Ue){Ts(126);let St=rx(),xt=Sr(tn(m.createClassStaticBlockDeclaration(St),X),Ae);return xt.modifiers=Ue,xt}function rx(){let X=Tt(),Ae=hn();yi(!1),Ao(!0);let Ue=_g(!1);return yi(X),Ao(Ae),Ue}function lc(){if(hn()&&H()===135){let X=k(),Ae=Ns(f.Expression_expected);Ne();let Ue=id(X,Ae,!0);return ov(X,Ue)}return lm()}function nC(){let X=k();if(!mo(60))return;let Ae=Rt(lc);return tn(m.createDecorator(Ae),X)}function wf(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(!Hc())return}return tn(w(xt),St)}function Ph(X,Ae,Ue){let St=k(),xt,Ut,wr,Wi=!1,Ci=!1,_i=!1;if(X&&H()===60)for(;Ut=nC();)xt=Tn(xt,Ut);for(;wr=wf(Wi,Ae,Ue);)wr.kind===126&&(Wi=!0),xt=Tn(xt,wr),Ci=!0;if(Ci&&X&&H()===60)for(;Ut=nC();)xt=Tn(xt,Ut),_i=!0;if(_i)for(;wr=wf(Wi,Ae,Ue);)wr.kind===126&&(Wi=!0),xt=Tn(xt,wr);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 CS(){let X=k(),Ae=ie();if(H()===27)return Ne(),Sr(tn(m.createSemicolonClassElement(),X),Ae);let Ue=Ph(!0,!0,!0);if(H()===126&&Pi(bb))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(sr())return ur(X,Ae,Ue);if(iu(H())||H()===11||H()===9||H()===42||H()===23)if(gt(Ue,nx)){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 mf(X,Ae,Ue,St,void 0)}return R.fail("Should not have attempted to parse class member declaration.")}function qE(){let X=k(),Ae=ie(),Ue=Ph(!0);if(H()===86)return hf(X,Ae,Ue,231);let St=Gs(282,!0,f.Expression_expected);return eP(St,X),St.modifiers=Ue,St}function ix(){return hf(k(),ie(),void 0,231)}function NA(X,Ae,Ue){return hf(X,Ae,Ue,263)}function hf(X,Ae,Ue,St){let xt=hn();xn(86);let Ut=Ps(),wr=df();gt(Ue,$I)&&Ao(!0);let Wi=PS(),Ci;xn(19)?(Ci=ae(),xn(20)):Ci=Tp(),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()&&!NS()?pd(Hr()):void 0}function NS(){return H()===119&&Pi(Oc)}function PS(){if(I())return Qo(22,ry)}function ry(){let X=k(),Ae=H();R.assert(Ae===96||Ae===119),Ne();let Ue=zd(7,vb);return tn(m.createHeritageClause(Ae,Ue),X)}function vb(){let X=k(),Ae=lm();if(Ae.kind===233)return Ae;let Ue=XE();return tn(m.createExpressionWithTypeArguments(Ae,Ue),X)}function XE(){return H()===30?Gu(20,vc,30,32):void 0}function I(){return H()===96||H()===119}function ae(){return Qo(5,CS)}function ut(X,Ae,Ue){xn(120);let St=Ns(),xt=df(),Ut=PS(),wr=OE(),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=df();xn(64);let Ut=H()===141&&Ri(lA)||vc();ll();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(r_);return Sr(tn(m.createEnumMember(Ue,St),X),Ae)}function wi(X,Ae,Ue){xn(94);let St=Ns(),xt;xn(19)?(xt=G(()=>zd(6,Mr)),xn(20)):xt=Tp();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,op),xn(20)):Ae=Tp(),tn(m.createModuleBlock(Ae),X)}function Zi(X,Ae,Ue,St){let xt=St&32,Ut=St&8?Ic():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 ma(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():ll();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 ma(X,Ae,Ue);if(mo(145))St|=32;else if(xn(144),H()===11)return ma(X,Ae,Ue);return Zi(X,Ae,Ue,St)}function Nu(){return H()===149&&Pi(Of)}function Of(){return Ne()===21}function bb(){return Ne()===19}function Si(){return Ne()===44}function Mh(X,Ae,Ue){xn(130),xn(145);let St=Ns();ll();let xt=m.createNamespaceExportDeclaration(St);return xt.modifiers=Ue,Sr(tn(xt,X),Ae)}function jn(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()||Sb())&&(Ut=!0,xt=Io()?Ns():void 0),xt&&!PA())return MS(X,Ae,Ue,xt,Ut);let wr;(xt||H()===42||H()===19)&&(wr=K_(xt,St,Ut),xn(161));let Wi=MA(),Ci=H(),_i;(Ci===118||Ci===132)&&!t.hasPrecedingLineBreak()&&(_i=Eb(Ci)),ll();let Xi=m.createImportDeclaration(Ue,wr,Wi,_i);return Sr(tn(Xi,X),Ae)}function ox(){let X=k(),Ae=iu(H())?Ic():wl(11);xn(59);let Ue=_d(!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=zd(24,ox,!0);if(!xn(20)){let wr=Zs(ze);wr&&wr.code===f._0_expected.code&&Pa(wr,SR(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 PA(){return H()===28||H()===161}function MS(X,Ae,Ue,St,xt){xn(64);let Ut=Lh();ll();let wr=m.createImportEqualsDeclaration(Ue,xt,St,Ut);return Sr(tn(wr,X),Ae)}function K_(X,Ae,Ue){let St;return(!X||mo(28))&&(St=H()===42?KB():Tb(275)),tn(m.createImportClause(Ue,X,St),Ae)}function Lh(){return Nu()?rC():Z(!1)}function rC(){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 Tb(X){let Ae=k(),Ue=X===275?m.createNamedImports(Gu(23,_8,19,20)):m.createNamedExports(Gu(23,m8,19,20));return tn(Ue,Ae)}function m8(){let X=ie();return Sr(YE(281),X)}function _8(){return YE(276)}function YE(X){let Ae=k(),Ue=Wu(H())&&!Io(),St=t.getTokenStart(),xt=t.getTokenEnd(),Ut=!1,wr,Wi=!0,Ci=Ic();if(Ci.escapedText==="type")if(H()===130){let ds=Ic();if(H()===130){let Rs=Ic();iu(H())?(Ut=!0,wr=ds,Ci=Xi(),Wi=!1):(wr=Ci,Ci=Rs,Wi=!1)}else iu(H())?(wr=Ci,Wi=!1,Ci=Xi()):(Ut=!0,Ci=ds)}else iu(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(),Ic()}}function s_(X){return tn(m.createNamespaceExport(Ic()),X)}function wM(X,Ae,Ue){let St=hn();Ao(!0);let xt,Ut,wr,Wi=mo(156),Ci=k();mo(42)?(mo(130)&&(xt=s_(Ci)),xn(161),Ut=MA()):(xt=Tb(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(xn(161),Ut=MA()));let _i=H();Ut&&(_i===118||_i===132)&&!t.hasPrecedingLineBreak()&&(wr=Eb(_i)),ll(),Ao(St);let Xi=m.createExportDeclaration(Ue,Wi,xt,Ut,wr);return Sr(tn(Xi,X),Ae)}function kh(X,Ae,Ue){let St=hn();Ao(!0);let xt;mo(64)?xt=!0:xn(90);let Ut=_d(!0);ll(),Ao(St);let wr=m.createExportAssignment(Ue,xt,Ut);return Sr(tn(wr,X),Ae)}let ax;(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"})(ax||(ax={}));let h8;(X=>{X[X.False=0]="False",X[X.True=1]="True",X[X.Unknown=2]="Unknown"})(h8||(h8={}));let J_;(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(),Qa=Wt("file.js",99,1,!1,[],w(1),0,qa),Wf=zI(ze,Qa);return nt&&(Qa.jsDocDiagnostics=zI(nt,Qa)),Eo(),Rs?{jsDocTypeExpression:Rs,diagnostics:Wf}:void 0}X.parseJSDocTypeExpressionForTests=Ae;function Ue(_i){let Xi=k(),ds=(_i?mo:xn)(19),Rs=Ba(16777216,Mm);(!_i||ds)&&hl(20);let Qa=m.createJSDocTypeExpression(Rs);return $e(Qa),tn(Qa,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&&hl(20);let Qa=m.createJSDocNameReference(Rs);return $e(Qa),tn(Qa,_i)}X.parseJSDocNameReference=St;function xt(_i,Xi,ds){Li("",_i,99,void 0,1,0);let Rs=Ba(16777216,()=>Ci(Xi,ds)),Wf=zI(ze,{languageVariant:0,text:_i});return Eo(),Rs?{jsDoc:Rs,diagnostics:Wf}:void 0}X.parseIsolatedJSDocComment=xt;function Ut(_i,Xi,ds){let Rs=_t,Qa=ze.length,Wf=Yt,q_=Ba(16777216,()=>Ci(Xi,ds));return ja(q_,_i),Jn&524288&&(nt||(nt=[]),Ur(nt,ze,Qa)),_t=Rs,ze.length=Qa,Yt=Wf,q_}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),!PH(ds,_i))return;let Qa,Wf,q_,vg,iy,oy=[],Ab=[],ap=en;en|=1<<25;let LA=t.scanRange(_i+3,Xi-5,iC);return en=ap,LA;function iC(){let Rn=1,Or,Nr=_i-(ds.lastIndexOf(` `,_i)+1)+4;function Fi(As){Or||(Or=Nr),oy.push(As),Nr+=As.length}for(It();sv(5););sv(4)&&(Rn=0,Nr=0);e:for(;;){switch(H()){case 60:WM(oy),iy||(iy=k()),zM(oC(Nr)),Rn=0,Or=void 0;break;case 4:oy.push(t.getTokenText()),Rn=0,Nr=0;break;case 42:let As=t.getTokenText();Rn===1?(Rn=2,Fi(As)):(R.assert(Rn===0),Rn=1,Nr+=As.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 wh=t.getTokenFullStart(),Dp=t.getTokenEnd()-1,c_=cc(Dp);if(c_){vg||OM(oy),Ab.push(tn(m.createJSDocText(oy.join("")),vg??_i,wh)),Ab.push(c_),oy=[],vg=t.getTokenEnd();break}default:Rn=2,Fi(t.getTokenText());break}Rn===2?Dt(!1):It()}let Mi=oy.join("").trimEnd();Ab.length&&Mi.length&&Ab.push(tn(m.createJSDocText(Mi),vg??_i,iy)),Ab.length&&Qa&&R.assertIsDefined(iy,"having parsed tags implies that the end of the comment span should be set");let ns=Qa&&Mo(Qa,Wf,q_);return tn(m.createJSDocComment(Ab.length?Mo(Ab,_i,iy):Mi.length?Mi:void 0,ns),_i,Rs)}function OM(Rn){for(;Rn.length&&(Rn[0]===` `||Rn[0]==="\r");)Rn.shift()}function WM(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)),As=2),Rn+=sy.length;break;case 19:As=2;let Cp=t.getTokenFullStart(),lC=t.getTokenEnd()-1,g8=cc(lC);g8?(Mi.push(tn(m.createJSDocText(Fi.join("")),ns??Nr,Cp)),Mi.push(g8),Fi=[],ns=t.getTokenEnd()):wh(t.getTokenText());break;case 62:As===3?As=2:As=3,wh(t.getTokenText());break;case 82:As!==3&&(As=2),wh(t.getTokenValue());break;case 42:if(As===0){As=1,Rn+=1;break}default:As!==3&&(As=2),wh(t.getTokenText());break}As===2||As===3?Dp=Dt(As===3):Dp=It()}OM(Fi);let c_=Fi.join("").trimEnd();if(Mi.length)return c_.length&&Mi.push(tn(m.createJSDocText(c_),ns??Nr)),Mo(Mi,Nr,t.getTokenEnd());if(c_.length)return c_}function cc(Rn){let Or=Ri(sx);if(!Or)return;It(),ay();let Nr=QE(),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 QE(){if(iu(H())){let Rn=k(),Or=Ic();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 sx(){if(Ib(),H()===19&&It()===60&&iu(It())){let Rn=t.getTokenValue();if(FM(Rn))return Rn}}function FM(Rn){return Rn==="link"||Rn==="linkcode"||Rn==="linkplain"}function xb(Rn,Or,Nr,Fi){return tn(m.createJSDocUnknownTag(Or,Up(Rn,k(),Nr,Fi)),Rn)}function zM(Rn){Rn&&(Qa?Qa.push(Rn):(Qa=[Rn],Wf=Rn.pos),q_=Rn.end)}function rr(){return Ib(),H()===19?Ue():void 0}function v(){let Rn=sv(23);Rn&&ay();let Or=sv(62),Nr=sC();return Or&&Ca(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 xf(Rn)&&Fe(Rn.typeName)&&Rn.typeName.escapedText==="Object"&&!Rn.typeArguments}}function F(Rn,Or,Nr,Fi){let Mi=rr(),ns=!Mi;Ib();let{name:As,isBracketed:eu}=v(),wh=Ib();ns&&!Pi(sx)&&(Mi=rr());let Dp=Up(Rn,k(),Fi,wh),c_=le(Mi,As,Nr,Fi);c_&&(Mi=c_,ns=!0);let sy=Nr===1?m.createJSDocPropertyTag(Or,As,eu,Mi,ns,Dp):m.createJSDocParameterTag(Or,As,eu,Mi,ns,Dp);return tn(sy,Rn)}function le(Rn,Or,Nr,Fi){if(Rn&&C(Rn.type)){let Mi=k(),ns,As;for(;ns=Ri(()=>XB(Nr,Fi,Or));)ns.kind===348||ns.kind===355?As=Tn(As,ns):ns.kind===352&&Le(ns.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(As){let eu=tn(m.createJSDocTypeLiteral(As,Rn.type.kind===188),Mi);return tn(m.createJSDocTypeExpression(eu),Mi)}}}function Ke(Rn,Or,Nr,Fi){gt(Qa,J4)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=rr();return tn(m.createJSDocReturnTag(Or,Mi,Up(Rn,k(),Nr,Fi)),Rn)}function Ht(Rn,Or,Nr,Fi){gt(Qa,IP)&&U(Or.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Or.escapedText));let Mi=Ue(!0),ns=Nr!==void 0&&Fi!==void 0?Up(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocTypeTag(Or,Mi,ns),Rn)}function gr(Rn,Or,Nr,Fi){let ns=H()===23||Pi(()=>It()===60&&iu(It())&&FM(t.getTokenValue()))?void 0:St(),As=Nr!==void 0&&Fi!==void 0?Up(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSeeTag(Or,ns,As),Rn)}function eo(Rn,Or,Nr,Fi){let Mi=rr(),ns=Up(Rn,k(),Nr,Fi);return tn(m.createJSDocThrowsTag(Or,Mi,ns),Rn)}function Us(Rn,Or,Nr,Fi){let Mi=k(),ns=l_(),As=t.getTokenFullStart(),eu=Up(Rn,As,Nr,Fi);eu||(As=t.getTokenFullStart());let wh=typeof eu!="string"?Mo(bo([tn(ns,Mi,As)],eu),Mi):ns.text+eu;return tn(m.createJSDocAuthorTag(Or,wh),Rn)}function l_(){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 Rb(Rn,Or,Nr,Fi){let Mi=uZ();return tn(m.createJSDocImplementsTag(Or,Mi,Up(Rn,k(),Nr,Fi)),Rn)}function Fm(Rn,Or,Nr,Fi){let Mi=uZ();return tn(m.createJSDocAugmentsTag(Or,Mi,Up(Rn,k(),Nr,Fi)),Rn)}function ZE(Rn,Or,Nr,Fi){let Mi=Ue(!1),ns=Nr!==void 0&&Fi!==void 0?Up(Rn,k(),Nr,Fi):void 0;return tn(m.createJSDocSatisfiesTag(Or,Mi,ns),Rn)}function uZ(){let Rn=mo(19),Or=k(),Nr=Uhe();t.setInJSDocType(!0);let Fi=XE();t.setInJSDocType(!1);let Mi=m.createExpressionWithTypeArguments(Nr,Fi),ns=tn(Mi,Or);return Rn&&xn(20),ns}function Uhe(){let Rn=k(),Or=t0();for(;mo(25);){let Nr=t0();Or=tn(Y(Or,Nr),Rn)}return Or}function e0(Rn,Or,Nr,Fi,Mi){return tn(Or(Nr,Up(Rn,k(),Fi,Mi)),Rn)}function JB(Rn,Or,Nr,Fi){let Mi=Ue(!0);return ay(),tn(m.createJSDocThisTag(Or,Mi,Up(Rn,k(),Nr,Fi)),Rn)}function pZ(Rn,Or,Nr,Fi){let Mi=Ue(!0);return ay(),tn(m.createJSDocEnumTag(Or,Mi,Up(Rn,k(),Nr,Fi)),Rn)}function BM(Rn,Or,Nr,Fi){let Mi=rr();Ib();let ns=qB();ay();let As=Ga(Nr),eu;if(!Mi||C(Mi.type)){let Dp,c_,sy,Cp=!1;for(;(Dp=Ri(()=>_Z(Nr)))&&Dp.kind!==352;)if(Cp=!0,Dp.kind===351)if(c_){let lC=dn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);lC&&Pa(lC,SR(ve,De,0,0,f.The_tag_was_first_specified_here));break}else c_=Dp;else sy=Tn(sy,Dp);if(Cp){let lC=Mi&&Mi.type.kind===188,g8=m.createJSDocTypeLiteral(sy,lC);Mi=c_&&c_.typeExpression&&!C(c_.typeExpression.type)?c_.typeExpression:tn(g8,Rn),eu=Mi.end}}eu=eu||As!==void 0?k():(ns??Mi??Or).end,As||(As=Up(Rn,eu,Nr,Fi));let wh=m.createJSDocTypedefTag(Or,Mi,ns,As);return tn(wh,Rn,eu)}function qB(Rn){let Or=t.getTokenStart();if(!iu(H()))return;let Nr=t0();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 fZ(Rn){let Or=k(),Nr,Fi;for(;Nr=Ri(()=>XB(4,Rn));){if(Nr.kind===352){Le(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 mZ(Rn,Or){let Nr=fZ(Or),Fi=Ri(()=>{if(sv(60)){let Mi=oC(Or);if(Mi&&Mi.kind===349)return Mi}});return tn(m.createJSDocSignature(void 0,Nr,Fi),Rn)}function Hhe(Rn,Or,Nr,Fi){let Mi=qB();ay();let ns=Ga(Nr),As=mZ(Rn,Nr);ns||(ns=Up(Rn,k(),Nr,Fi));let eu=ns!==void 0?k():As.end;return tn(m.createJSDocCallbackTag(Or,As,Mi,ns),Rn,eu)}function Khe(Rn,Or,Nr,Fi){ay();let Mi=Ga(Nr),ns=mZ(Rn,Nr);Mi||(Mi=Up(Rn,k(),Nr,Fi));let As=Mi!==void 0?k():ns.end;return tn(m.createJSDocOverloadTag(Or,ns,Mi),Rn,As)}function aC(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 _Z(Rn){return XB(1,Rn)}function XB(Rn,Or,Nr){let Fi=!0,Mi=!1;for(;;)switch(It()){case 60:if(Fi){let ns=LS(Rn,Or);return ns&&(ns.kind===348||ns.kind===355)&&Nr&&(Fe(ns.name)||!aC(Nr,ns.name.left))?!1:ns}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 LS(Rn,Or){R.assert(H()===60);let Nr=t.getTokenFullStart();It();let Fi=t0(),Mi=Ib(),ns;switch(Fi.escapedText){case"type":return Rn===1&&Ht(Nr,Fi);case"prop":case"property":ns=1;break;case"arg":case"argument":case"param":ns=6;break;case"template":return Cb(Nr,Fi,Or,Mi);case"this":return JB(Nr,Fi,Or,Mi);default:return!1}return Rn&ns?F(Nr,Fi,Rn,Or):!1}function cr(){let Rn=k(),Or=sv(23);Or&&ay();let Nr=Ph(!1,!0),Fi=t0(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Mi;if(Or&&(ay(),xn(64),Mi=Ba(16777216,Mm),xn(24)),!zl(Fi))return tn(m.createTypeParameterDeclaration(Nr,Fi,void 0,Mi),Rn)}function Db(){let Rn=k(),Or=[];do{ay();let Nr=cr();Nr!==void 0&&Or.push(Nr),Ib()}while(sv(28));return Mo(Or,Rn)}function Cb(Rn,Or,Nr,Fi){let Mi=H()===19?Ue():void 0,ns=Db();return tn(m.createJSDocTemplateTag(Or,Mi,ns,Up(Rn,k(),Nr,Fi)),Rn)}function sv(Rn){return H()===Rn?(It(),!0):!1}function sC(){let Rn=t0();for(mo(23)&&xn(24);mo(25);){let Or=t0();mo(23)&&xn(24),Rn=it(Rn,Or)}return Rn}function t0(Rn){if(!iu(H()))return Gs(80,!Rn,Rn||f.Identifier_expected);Zt++;let Or=t.getTokenStart(),Nr=t.getTokenEnd(),Fi=H(),Mi=rd(t.getTokenValue()),ns=tn(N(Mi,Fi),Or,Nr);return It(),ns}}})(J_=e.JSDocParser||(e.JSDocParser={}))})(TE||(TE={})),(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 TE.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,TE.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(ql(Y.span)===ql(N.span)),R.assert(ql(sN(Y))===ql(sN(N)));let B=sN(Y).length-Y.span.length;d(w,Y.span.start,ql(Y.span),ql(sN(Y)),B,j,A,D);let ce=TE.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,ql(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),_h(B,B.pos+N,B.end+N),j&&o(B)&&R.assert(ce===w.substring(B.pos,B.end)),Bo(B,K,Y),wp(B))for(let z of B.jsDoc)K(z);l(B,j)}function Y(B){B._children=void 0,_h(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)),_h(S,j,K)}function l(S,A){if(A){let N=S.pos,D=w=>{R.assert(w.pos>=N),N=w.end};if(wp(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),wp(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=uc(D,ql(A.span)),j=A.newLength+(A.span.start-D);return e2(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=rU(K);if(Y)K=Y;else return K}}function j(K){if(!zl(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(ql(N.span),w.length),B=A.substring(ql(sN(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={}))})(WH||(WH={})),FH=new Map,HTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,KTe=/^\/\/\/?\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 KR(){return NAe||(NAe=o3(sg))}function Zae(e){return JTe(e,Ul)}function JTe(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 IAe(e,(t??"").trim(),r)}function ese(e,t="",r){if(t=t.trim(),ao(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return f1(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return to(i,o=>f1(e.element,parseInt(o),r));case"string":return to(i,o=>f1(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 qTe(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 AE(o,i,t.alternateMode.diagnostic,e);let l=YC(e,t.optionDeclarations,qTe);return l?AE(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):AE(o,i,t.unknownOptionDiagnostic,r||e)}function zH(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 XTe(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]=f1(i,!1,s),t++):(l==="true"&&t++,s.push(Ul(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Ul(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(Ul(r.optionTypeMismatchDiagnostic,i.name,jH(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=f1(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=f1(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=f1(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]=a3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function YTe(e,t){return zH(mw,e,t)}function BH(e,t){return nse(KR,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 $Te(){return MAe||(MAe=o3(m3))}function QTe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=zH(kAe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Ul(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function ZTe(e,...t){return ta(Ul(e,...t).messageText,Co)}function iw(e,t,r,i,o,s){let l=NP(e,h=>r.readFile(h));if(!Co(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=rw(e,l),p=r.getCurrentDirectory();return d.path=rl(e,p,Pd(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,sw(d,r,_o(oi(e),p),t,_o(e,p),void 0,s,i,o)}function ow(e,t){let r=NP(e,t);return Co(r)?GH(e,r):{config:{},error:r}}function GH(e,t){let r=rw(e,t);return{config:iAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function rse(e,t){let r=NP(e,t);return Co(r)?rw(e,r):{fileName:e,parseDiagnostics:[r]}}function NP(e,t){let r;try{r=t(e)}catch(i){return Ul(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Ul(f.Cannot_read_file_0,e):r}function VH(e){return y0(e,qTe)}function eAe(){return wAe||(wAe=o3(JR))}function tAe(){return OAe||(OAe=VH(sg))}function nAe(){return WAe||(WAe=VH(JR))}function rAe(){return FAe||(FAe=VH(fw))}function j5e(){return yse===void 0&&(yse={name:void 0,type:"object",elementOptions:VH([_se,hse,gse,_w,{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},cw])}),yse}function iAe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(Jf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,rc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),pu(o)){let s=Gr(o.elements,Ma);if(s)return aw(e,s,t,!0,r)}return{}}return aw(e,o,t,!0,r)}function ise(e,t){var r;return aw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function aw(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(Jf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(Jf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(S.name)||r.push(Jf(e,S.name,f.String_literal_with_double_quotes_expected));let A=S2(S.name)?void 0:qx(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(Jf(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(Jf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,jH(m))):r.push(Jf(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)&&XF(h,e)}}function jH(e){return e.type==="listOrElement"?`${jH(e.element)} or Array`:e.type==="list"?"Array":Co(e.type)?e.type:"string"}function oAe(e,t){if(e){if(lw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return So(t);if(e.type==="listOrElement")return So(t)||oAe(e.element,t);let r=Co(e.type)?e.type:"string";return typeof t===r}return!1}function aAe(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?H5e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ay),A=>jL(_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&&K5e(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:U5e(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 mc)if(!E.has(A)&>(mc[A].dependencies,N=>E.has(N))){let N=mc[A].computeValue(e.options),D=mc[A].computeValue({});N!==D&&(S[A]=mc[A].computeValue(e.options))}return Ax(y.compilerOptions,s3(l3(S,p))),y}function s3(e){return{...Oo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function U5e(e){if(Nn(e)){if(Nn(e)!==1)return e;if(e[0]!==g3)return e}}function H5e(e,t,r,i){if(!t)return Ay;let o=k6(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 sAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return sAe(e.element);default:return e.type}}function UH(e,t){return Gc(t,(r,i)=>{if(r===e)return i})}function l3(e,t){return lAe(e,KR(),t)}function K5e(e){return lAe(e,eAe())}function lAe(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=sAe(d);p?d.type==="list"?i.set(s,l.map(h=>UH(h,p))):i.set(s,UH(l,p)):r&&d.isFilePath?i.set(s,jL(r.configFilePath,_o(l,oi(r.configFilePath)),o)):i.set(s,l)}}return i}function cAe(e,t){let r=dAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return XH.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}`):Is(_3,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function dAe(e){let t=vW(e,_3);return l3(t)}function uAe(e,t,r){let i=dAe(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(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=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=R2(t,"files",Ie=>Ie.initializer),ve=AE(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=CAe(ge,m,!0,t,"include")),re&&(xe=CAe(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=MP(N,ee,S,r,p);return hAe(me,PP(E),d)&&m.push(_Ae(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)&&!lw(E[ee]))if(So(E[ee])){let q=E[ee];return!t&&!oo(q,me)&&m.push(Ul(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(Ul(ee,...me))}}function q5e(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 _Ae({includeSpecs:e,excludeSpecs:t},r){return Ul(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 hAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function PP(e){return!Is(e,"files")&&!Is(e,"references")}function c3(e,t,r,i,o){let s=i.length;return hAe(e,o)?i.push(_Ae(r,t)):LG(i,l=>!q5e(l)),s!==i.length}function X5e(e){return!!e.options}function gAe(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(Ul(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||ise(t,l)};let m=e?Y5e(e,r,i,o,l):$5e(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=Ax(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?Ax(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function y(E,S){let A=Q5e(t,S,r,s,l,d,E);if(A&&X5e(A)){let N=A.raw,D,w=j=>{N[j]&&(E[j]=mn(N[j],K=>dp(K)?K:Yr(D||(D=nN(oi(S),i,Pd(r.useCaseSensitiveFileNames))),K)))};w("include"),w("exclude"),w("files"),N.compileOnSave!==void 0&&(E.compileOnSave=N.compileOnSave),Ax(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?Ax({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function Y5e(e,t,r,i,o){Is(e,"excludes")&&o.push(Ul(f.Unknown_option_excludes_Did_you_mean_exclude));let s=TAe(e.compilerOptions,r,o,i),l=AAe(e.typeAcquisition,r,o,i),d=eGe(e.watchOptions,r,o);e.compileOnSave=Z5e(e,r,o);let p=e.extends||e.extends===""?yAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function yAe(e,t,r,i,o,s,l,d){let p,h=i?fAe(i,r):r;if(Co(e))p=vAe(e,t,h,o,l,d);else if(So(e)){p=[];for(let m=0;mj.name===S)&&(h=Tn(h,N.name))))}}function vAe(e,t,r,i,o,s){if(e=Md(e),dp(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(AE(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(AE(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(AE(s,o,f.File_0_not_found,e))}function Q5e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:ah(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=gAe(void 0,h,r,oi(t),rc(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 Z5e(e,t,r){if(!Is(e,cw.name))return!1;let i=UT(cw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function bAe(e,t,r){let i=[];return{options:TAe(e,t,i,r),errors:i}}function EAe(e,t,r){let i=[];return{options:AAe(e,t,i,r),errors:i}}function SAe(e){return e&&rc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function TAe(e,t,r,i){let o=SAe(i);return ose(tAe(),e,t,o,mw,r),i&&(o.configFilePath=Md(i)),o}function JH(e){return{enable:!!e&&rc(e)==="jsconfig.json",include:[],exclude:[]}}function AAe(e,t,r,i){let o=JH(i);return ose(rAe(),e,t,o,mse,r),o}function eGe(e,t,r){return ose(nAe(),e,t,void 0,h3,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]=UT(d,t[l],r,s):s.push(tse(l,o))}return i}}function AE(e,t,r,...i){return e&&t?Jf(e,t,r,...i):Ul(r,...i)}function UT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(AE(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(oAe(e,t)){let d=e.type;if(d==="list"&&So(t))return xAe(e,t,r,i,o,s,l);if(d==="listOrElement")return So(t)?xAe(e,t,r,i,o,s,l):UT(e.element,t,r,i,o,s,l);if(!Co(e.type))return IAe(e,t,i,s,l);let p=f1(e,t,i,s,l);return lw(p)?p:tGe(e,r,p)}else i.push(AE(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,jH(e)))}function tGe(e,t,r){return e.isFilePath&&(r=_o(r,t),r===""&&(r=".")),r}function f1(e,t,r,i,o){var s;if(lw(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(AE(o,i,...l))}function IAe(e,t,r,i,o){if(lw(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return f1(e,l,r,i,o);r.push(JTe(e,(d,...p)=>AE(o,i,d,...p)))}function xAe(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 MP(e,t,r,i,o=Ye){t=fa(t);let s=Pd(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:y}=e,E=XN(r,o),S=pk(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,mm(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=>Bv(ce,i.useCaseSensitiveFileNames)):Ye}if(Jl(A,Y=>Y.test(w))!==-1){let Y=s(w);!l.has(Y)&&!p.has(Y)&&p.set(Y,w)}continue}if(iGe(w,l,d,E,s))continue;oGe(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=fa(r);let p=Pd(i);if(s){for(let h of s)if(p(_o(h,r))===e)return!1}return DAe(e,d,i,o,r)}function RAe(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 DAe(e,Vr(t,o=>!RAe(o)),r,i)}function DAe(e,t,r,i,o){let s=qN(t,Yr(fa(i),o),"exclude"),l=s&&Bv(s,r);return l?l.test(e)?!0:!yI(e)&&l.test(Bc(e)):!1}function CAe(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 AE(i,p,l,d)}}function sse(e,t){if(R.assert(typeof e=="string"),t&&zAe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(RAe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function nGe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=qN(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=fa(Yr(r,h));if(s&&s.test(m))continue;let y=rGe(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||DEc(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(mE(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 oGe(e,t,r,i){let o=gn(r,s=>Ec(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(mE(e,l));t.delete(d)}}function cse(e){let t={};for(let r in e)if(Is(e,r)){let i=BH(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 Gc(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=hW(e.type.keys());return r!==void 0?r:R.fail("Expected 'option.type' to have entries.")}}var cw,pse,LP,fse,dw,u3,JR,uw,pw,qH,XH,sg,YH,$H,QH,p3,f3,ZH,eK,tK,m3,fw,NAe,PAe,_3,mw,MAe,LAe,kAe,mse,wAe,h3,OAe,WAe,FAe,_w,_se,hse,gse,yse,g3,zAe,BAe,aGe=bt({"src/compiler/commandLineParser.ts"(){"use strict";Zo(),cw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},pse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),LP=new Map(jC(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"]],dw=fse.map(e=>e[0]),u3=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}],uw=[{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}],pw={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},qH={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},XH=[{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},pw,qH,{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: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}],sg=[...uw,...XH],YH=sg.filter(e=>!!e.affectsSemanticDiagnostics),$H=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),ZH=sg.filter(e=>!!e.affectsProgramStructure),eK=sg.filter(e=>Is(e,"transpileOptionValue")),tK=[{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=[...uw,...tK],fw=[{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}],PAe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:$Te},_3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},mw={alternateMode:PAe,getOptionsNameMap:KR,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},LAe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:KR},kAe={alternateMode:LAe,getOptionsNameMap:$Te,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},mse={optionDeclarations:fw,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},h3={getOptionsNameMap:eAe,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},_w={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},_se={name:"compilerOptions",type:"object",elementOptions:tAe(),extraKeyDiagnostics:mw},hse={name:"watchOptions",type:"object",elementOptions:nAe(),extraKeyDiagnostics:h3},gse={name:"typeAcquisition",type:"object",elementOptions:rAe(),extraKeyDiagnostics:mse},g3="**/*",zAe=/(^|\/)\*\*\/?$/,BAe=/^[^*?]*(?=\/[^/]*[*?])/}});function yo(e,t,...r){e.trace(aU(t,...r))}function Gg(e,t){return!!e.traceResolution&&t.trace!==void 0}function m1(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+il.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function nK(e){return m1(void 0,e)}function GAe(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 sGe(e){let t=[];return e&1&&t.push(...Ak),e&2&&t.push(...DR),e&4&&t.push(...Tk),e&8&&t.push(".json"),t}function vse(e){if(e)return R.assert(F6(e.extension)),{fileName:e.path,packageId:e.packageId}}function VAe(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}=HAe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return jAe(t,r,i,o,s,l.resultFromCache,d,p)}function jAe(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=qR(s.failedLookupLocations,r),s.affectingLocations=qR(s.affectingLocations,i),s.resolutionDiagnostics=qR(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:kP(r),affectingLocations:kP(i),resolutionDiagnostics:kP(o),alternateResult:d}}function kP(e){return e.length?e:void 0}function qR(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():kP(t)}function UAe(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 rK(e,t,r,i){let o=UAe(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=fa(Yr(r,o));return i.traceEnabled&&yo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function lGe(e,t,r){return rK(e,"typings",t,r)||rK(e,"types",t,r)}function cGe(e,t,r){return rK(e,"tsconfig",t,r)}function dGe(e,t,r){return rK(e,"main",t,r)}function uGe(e,t){let r=UAe(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 pGe(e,t){let r=uGe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)Is(r,l)&&!ML.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,v_);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){kse||(kse=new _m(qp));for(let t in e){if(!Is(e,t))continue;let r=ML.tryParse(t);if(r!==void 0&&r.test(kse))return{version:t,paths:e[t]}}}function wP(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 fGe(r)}function fGe(e){let t;return ym(fa(e),r=>{let i=Yr(r,fIe);(t??(t=[])).push(i)}),t}function mGe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Rg(e,t,!i)===0}function HAe(e,t,r){let i=xGe(e,t,r),o=mGe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function KAe(e,t,r){let i=Sl(e,"/node_modules/@types")||Sl(e,"/node_modules/@types/")?dIe(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=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=wP(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=uu(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}=HAe(ee,i,d)),Y={primary:K,resolvedFileName:ge,originalPath:q,packageId:me,isExternalLibraryImport:IE(ee)}}return h={resolvedTypeReferenceDirective:Y,failedLookupLocations:kP(y),affectingLocations:kP(E),resolutionDiagnostics:kP(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,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(", ")),Fl(m,ee=>{let me=KAe(ee,e,w),ge=Jm(ee,i);if(!ge&&d&&yo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ee),r.typeRoots){let q=$R(4,me,!ge,w);if(q){let J=gw(q.path),re=J?tS(J,!1,w):void 0;return vse(m1(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&&oi(t);if(ee!==void 0){let me;if(!r.typeRoots||!Sl(t,oD))if(d&&yo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ee),$c(e)){let{path:ge}=QAe(ee,e);me=lK(4,ge,!1,w,!0)}else{let ge=aIe(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(uu(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=uu(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 iK(e,t,r,i,o){let s=yw(o?.getPackageJsonInfoCache(),i,r);return ym(t,l=>{if(rc(l)!=="node_modules"){let d=Yr(l,"node_modules"),p=Yr(d,e);return tS(p,!1,s)}})}function b3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=wP(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=fa(s),d=Yr(o,l,"package.json");if(!(t.fileExists(d)&&VN(d,t).typings===null)){let h=rc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function E3(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)Is(e,i)&&(r+=`${i}: ${Ase(e[i])}`);return r+"}"}function oK(e,t){return t.map(r=>Ase(D6(e,r))).join("|")+`|${e.pathsBasePath}`}function aK(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=oK(y,p3)),E}}function _Ge(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(rl(d,e,t))}function o(d,p){(r||(r=new Map)).set(rl(d,e,t),p)}function s(){r=void 0}function l(){return r}}function JAe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function hGe(e,t,r,i){let o=aK(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=rl(h,e,t);return JAe(o,m,y,()=>_1())}function p(h,m,y,E){var S,A;let N=rl(y,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(N))==null?void 0:A.get(h,m)}}function OP(e,t){return t===void 0?e:`${t}|${e}`}function _1(){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=OP(o,s);return t.set(l,[o,s]),l}}function gGe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function yGe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function vGe(e,t,r,i,o){let s=aK(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(OP(y,E)))==null?void 0:D.get(S)}function h(y,E,S){return R.assert(!$c(y)),JAe(s,S,OP(y,E),m)}function m(){let y=new Map;return{get:E,set:S};function E(N){return y.get(rl(N,e,t))}function S(N,D){let w=rl(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=rl(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 XR(e,t,r,i,o){let s=qAe(e,t,r,i,gGe,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function S3(e,t,r,i,o){return qAe(e,t,r,i,yGe,o)}function sK(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function T3(e,t,r,i,o){return YR(e,t,sK(r),i,o)}function XAe(e,t,r,i){let o=oi(t);return r.getFromDirectoryCache(e,i,o,void 0)}function YR(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=uu(r),m&&yo(i,f.Module_resolution_kind_is_not_specified_using_0,Mx[S])):m&&yo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Mx[S]),(d=ru)==null||d.logStartResolveModule(e),S){case 3:E=TGe(e,t,r,i,o,s,l);break;case 99:E=AGe(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=ru)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=ru)==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,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 YAe(e,t,r,i,o){let s=bGe(e,t,i,o);return s?s.value:$c(t)?EGe(e,t,r,i,o):SGe(e,t,i,o)}function bGe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!kp(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 Pse(e,t,p,l,h,r,!1,i)}}function EGe(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=fa(Yr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=fa(p);Sl(h,il)||(h+=il);let m=ao(s,h)&&(d===void 0||d.lengthvoid K.push(ee),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&BI(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&&!rIe(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:qa},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:qa},q=z(l&5,ge);(E=q?.value)!=null&&E.isExternalLibraryImport&&(ce=q.value.resolved.path)}}return VAe(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=YAe(ee,t,r,(J,re,pe,xe)=>lK(J,re,pe,xe,!0),me);if(q)return tf({resolved:q,isExternalLibraryImport:IE(q.path)});if($c(t)){let{path:J,parts:re}=QAe(r,t),pe=lK(ee,J,!1,me,!0);return pe&&tf({resolved:pe,isExternalLibraryImport:zo(re,"node_modules")})}else{let J;if(e&2&&ao(t,"#")&&(J=NGe(ee,t,r,me,s,p)),!J&&e&4&&(J=CGe(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=aIe(ee,t,r,me,s,p)}return ee&4&&(J??(J=pIe(t,me))),J&&{value:J.value&&{resolved:J.value,isExternalLibraryImport:!0}}}}}function QAe(e,t){let r=Yr(e,t),i=zc(r),o=Zs(i);return{path:o==="."||o===".."?Bc(fa(r)):fa(r),parts:i}}function xGe(e,t,r){if(!t.realpath)return e;let i=fa(t.realpath(e));return r&&yo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function lK(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);Jm(l,i.host)||(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=$R(e,t,r,i);if(s){let l=o?gw(s.path):void 0,d=l?tS(l,!1,i):void 0;return m1(d,s)}}if(r||Jm(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 IE(e){return e.includes(Th)}function gw(e,t){let r=fa(e),i=r.lastIndexOf(Th);if(i===-1)return;let o=i+Th.length,s=ZAe(r,o,t);return r.charCodeAt(o)===64&&(s=ZAe(r,s,t)),r.slice(0,s)}function ZAe(e,t,r){let i=e.indexOf(il,t+1);return i===-1?r?e.length:t:i}function Cse(e,t,r,i){return nK($R(e,t,r,i))}function $R(e,t,r,i){let o=eIe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=tIe(t,e,"",r,i);if(s)return s}}function eIe(e,t,r,i){if(!rc(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),tIe(s,e,l,r,i)}function cK(e,t,r,i){return e&1&&Ec(t,Ak)||e&4&&Ec(t,Tk)?dK(t,r,i)!==void 0?{path:t,ext:g6(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Tl(t,".json")?dK(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:eIe(e,t,r,i)}function tIe(e,t,r,i,o){if(!i){let l=oi(e);l&&(i=!Jm(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=dK(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function dK(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return nIe(e,t,r);let o=Wg(e)??"",s=o?mk(e,o):e;return gn(r.compilerOptions.moduleSuffixes,l=>nIe(s+l+o,t,r))}function nIe(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?tS(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&A3(s,i);return m1(s,pK(e,t,r,i,l,d))}function uK(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=yw(i?.getPackageJsonInfoCache(),r,t);p.conditions=Qv(t),p.requestContainingDirectory=e.packageDirectory;let h=pK(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=g0([Qv(t,99),Qv(t,1)],Um);for(let y of m){let E={...p,failedLookupLocations:[],conditions:y,host:r},S=RGe(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 RGe(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,sGe(i),void 0,[Lne(jI(l,"**/*"),".*")]).forEach(h=>{o=xg(o,{path:h,ext:Lx(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=cK(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)||Ew(r.conditions,h))return s(l[h]),!0})}}function yw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Gg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ye,requestContainingDirectory:void 0,reportDiagnostic:qa,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function vw(e,t){let r=zc(e);for(r.pop();r.length>0;){let i=tS(Av(r),!1,t);if(i)return i;r.pop()}}function A3(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=pGe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function tS(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=Jm(e,h);if(S&&h.fileExists(y)){let A=VN(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 pK(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=cGe(o,t,i):l=e&4&&lGe(o,t,i)||e&7&&dGe(o,t,i)||void 0);let d=(E,S,A,N)=>{let D=cK(E,S,A,N);if(D)return nK(D);let w=E===4?5:E,j=N.features,K=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(N.features&=-33);let Y=lK(w,S,A,N,!1);return N.features=j,N.candidateIsFromPackageJsonField=K,Y},p=l?!Jm(oi(l),i.host):void 0,h=r||!Jm(t,i.host),m=Yr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||hm(t,l))){let E=gm(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 GAe(S.value)}let y=l&&GAe(d(e,l,p,i));if(y)return y;if(!(i.features&32))return $R(e,m,h,i)}function rIe(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 bw(e){let t=e.indexOf(il);return e[0]==="@"&&(t=e.indexOf(il,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 DGe(e){return!gt(Uh(e),t=>ao(t,"."))}function CGe(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=vw(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)?`.${il}${E.join(il)}`:".";if(jv(i.compilerOptions)&&!IE(r))return fK(h,e,S,i,o,s);let A=e&5,N=e&-6;return fK(h,A,S,i,o,s)||fK(h,N,S,i,o,s)}function fK(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"&&DGe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Is(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return oIe(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),tf(void 0);let l=iIe(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 NGe(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=vw(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=iIe(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 mK(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 iIe(e,t,r,i,o,s,l,d){let p=oIe(e,t,r,i,o,l,d);if(!Sl(o,il)&&!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,"/")),mK);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 oIe(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),tf(void 0);if(!ao(p,"./")){if(l&&!ao(p,"../")&&!ao(p,"/")&&!dp(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=hw(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=(kp(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),tf(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),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(m1(s,cK(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 Uh(p))if(N==="default"||t.conditions.includes(N)||Ew(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 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||hm(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!_K(t)))){let ee=ky({useCaseSensitiveFileNames:()=>_K(t)}),me=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ge=E(YP(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(YP(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=Av(re);me.unshift(pe),J=Bc(pe)}}me.length>1&&t.reportDiagnostic(Ul(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(hm(J,N,!_K(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=Mie(pe);for(let he of ne){if(!rIe(e,he))continue;let Ce=VL(pe,he,fe,!_K(t));if(t.host.fileExists(Ce))return tf(m1(s,cK(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 Ew(e,t){if(!e.includes("types")||!ao(t,"types@"))return!1;let r=ML.tryParse(t.substring(6));return r?r.test(qp):!1}function aIe(e,t,r,i,o,s){return sIe(e,t,r,i,!1,o,s)}function PGe(e,t,r){return sIe(4,e,t,r,!0,void 0,void 0)}function sIe(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,y3(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,y3(h)),m(h);function m(y){return ym(Md(r),E=>{if(rc(E)!=="node_modules"){let S=uIe(s,t,d,E,l,i);return S||tf(lIe(y,t,E,i,o,s,l))}})}}function lIe(e,t,r,i,o,s,l){let d=Yr(r,"node_modules"),p=Jm(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=cIe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=Yr(d,"@types"),m=p;return p&&!Jm(h,i.host)&&(i.traceEnabled&&yo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),cIe(4,dIe(t,i),h,m,i,s,l)}}function cIe(e,t,r,i,o,s,l){var d,p;let h=fa(Yr(r,t)),{packageName:m,rest:y}=bw(t),E=Yr(r,m),S,A=tS(h,!i,o);if(y!==""&&A&&(!(o.features&8)||!Is(((d=S=tS(E,!i,o))==null?void 0:d.contents.packageJsonContent)??Ye,"exports"))){let w=$R(e,h,!i,o);if(w)return nK(w);let j=pK(e,h,!i,o,A.contents.packageJsonContent,A3(A,o));return m1(A,j)}let N=(w,j,K,Y)=>{let B=(y||!(Y.features&32))&&$R(w,j,K,Y)||pK(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=$R(w,Yr(j,"index.js"),K,Y)),m1(A,B)};if(y!==""&&(A=S??tS(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=fK(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,qp,y);let w=i&&Jm(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=fU(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?jI(E,h):E,A=fa(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=dK(A,l,d);if(D!==void 0)return nK({path:D,ext:N,resolvedUsingTsExtension:void 0})}return s(e,A,l||!Jm(oi(A),d.host),d)})}}}function dIe(e,t){let r=QR(e);return t.traceEnabled&&r!==e&&yo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function x3(e){return`@types/${QR(e)}`}function QR(e){if(ao(e,"@")){let t=e.replace(il,gK);if(t!==e)return t.slice(1)}return e}function WP(e){let t=$C(e,"@types/");return t!==e?Sw(t):e}function Sw(e){return e.includes(gK)?"@"+e.replace(gK,il):e}function uIe(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=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 VAe(e,E&&E.value,E?.value&&IE(E.value.path),d,p,m,y,o);function S(A){let N=YAe(A,e,h,Cse,y);if(N)return{value:N};if($c(e)){let D=fa(Yr(h,e));return tf(Cse(A,D,!1,y))}else{let D=ym(h,w=>{let j=uIe(o,e,void 0,w,s,y);if(j)return j;let K=fa(Yr(w,e));return tf(Cse(A,K,!1,y))});if(D)return D;if(A&5){let w=PGe(e,h,y);return A&4&&(w??(w=pIe(e,y))),w}}}}function pIe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=KAe(r,e,t),o=Jm(r,t.host);!o&&t.traceEnabled&&yo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=$R(4,i,!o,t);if(s){let d=gw(s.path),p=d?tS(d,!1,t):void 0;return tf(m1(p,s))}let l=Nse(4,i,!o,t);if(l)return tf(l)}}function ZR(e,t){return!!e.allowImportingTsExtensions||t&&Sd(t)}function Lse(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=lIe(4,e,o,m,!1,void 0,void 0);return jAe(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 _K(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var kse,fIe,hK,Th,gK,MGe=bt({"src/compiler/moduleNameResolver.ts"(){"use strict";Zo(),fIe=Yr("node_modules","@types"),hK=(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))(hK||{}),Th="/node_modules/",gK="__"}});function Vg(e,t){return e.body&&!e.body.parent&&(ja(e.body,e),Gv(e.body,!1)),e.body?wse(e.body,t):1}function wse(e,t=new Map){let r=is(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=LGe(e,t);return t.set(r,i),i}function LGe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(R0(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=kGe(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 Vg(e,t);case 80:if(e.flags&4096)return 0}return 1}function kGe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Ho(i)||M_(i)||Yi(i)){let o=i.statements,s;for(let l of o)if(t2(l,r)){l.parent||(ja(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 h1(e){return R.attachFlowNodeDebugInfo(e),e}function Ose(e,t){var r,i;nl("beforeBind"),(r=ru)==null||r.logStartBindFile(""+e.fileName),_Ie(e,t),(i=ru)==null||i.logStopBindFile(),nl("afterBind"),Yp("Bind","beforeBind","afterBind")}function wGe(){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,...rt){return Jf(Vn(O)||e,O,Se,...rt)}function pe(O,Se){var rt,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||((rt=or)==null||rt.push(or.Phase.Bind,"bindSourceFile",{path:e.path},!0),Me(e),(jt=or)==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 du(Se,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function fe(O,Se){return z++,new ee(O,Se)}function ne(O,Se,rt){O.flags|=rt,Se.symbol=O,O.declarations=xg(O.declarations,Se),rt&1955&&!O.exports&&(O.exports=oa()),rt&6240&&!O.members&&(O.members=oa()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),rt&111551&&G2(O,Se)}function he(O){if(O.kind===277)return O.isExportEquals?"export=":"default";let Se=No(O);if(Se){if(Ld(O)){let rt=Yf(Se);return T_(O)?"__global":`"${rt}"`}if(Se.kind===167){let rt=Se.expression;if(Qp(rt))return ml(rt.text);if(r6(rt))return ca(rt.operator)+rt.operand.text;R.fail("Only computed properties with literal names have declaration names")}if(Ki(Se)){let rt=sd(O);if(!rt)return;let jt=rt.symbol;return Q2(jt,Se.escapedText)}return $m(Se)?VI(Se):I_(Se)?MN(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(Bl(O)===2)return"export=";R.fail("Unknown binary declaration kind");break;case 324:return sR(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 ou(O)?xs(O.name):Vi(R.checkDefined(he(O)))}function Ge(O,Se,rt,jt,er,ii,Xr){R.assert(Xr||!Wv(rt));let no=$r(rt,2048)||Jd(rt)&&rt.name.escapedText==="default",La=Xr?"__computed":no&&Se?"default":he(rt),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)),ii&&(ka.isReplaceableByMethod=!0);else{if(ii&&!ka.isReplaceableByMethod)return ka;if(ka.flags&er){if(ka.isReplaceableByMethod)O.set(La,ka=fe(0,La));else if(!(jt&3&&ka.flags&67108864)){ou(rt)&&ja(rt.name,rt);let wl=ka.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,fd=!0;(ka.flags&384||jt&384)&&(wl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,fd=!1);let xc=!1;Nn(ka.declarations)&&(no||ka.declarations&&ka.declarations.length&&rt.kind===277&&!rt.isExportEquals)&&(wl=f.A_module_cannot_have_multiple_default_exports,fd=!1,xc=!0);let Ap=[];Im(rt)&&zl(rt.type)&&$r(rt,32)&&ka.flags&2887656&&Ap.push(re(rt,f.Did_you_mean_0,`export type { ${Vi(rt.name.escapedText)} }`));let Vu=No(rt)||rt;gn(ka.declarations,(cs,Nm)=>{let Pm=No(cs)||cs,Ui=fd?re(Pm,wl,Ce(cs)):re(Pm,wl);e.bindDiagnostics.push(xc?Pa(Ui,re(Vu,Nm===0?f.Another_export_default_is_here:f.and_here)):Ui),xc&&Ap.push(re(Pm,f.The_first_export_default_is_here))});let ab=fd?re(Vu,wl,Ce(rt)):re(Vu,wl);e.bindDiagnostics.push(Pa(ab,...Ap)),ka=fe(0,La)}}}return ne(ka,rt,jt),ka.parent?R.assert(ka.parent===Se,"Existing symbol parent should match new one"):ka.parent=Se,ka}function ve(O,Se,rt){let jt=!!(tE(O)&32)||Ie(O);if(Se&2097152)return O.kind===281||O.kind===271&&jt?Ge(o.symbol.exports,o.symbol,O,Se,rt):(R.assertNode(o,dh),Ge(o.locals,void 0,O,Se,rt));if(Xf(O)&&R.assert(ar(O)),!Ld(O)&&(jt||o.flags&128)){if(!dh(o)||!o.locals||$r(O,2048)&&!he(O))return Ge(o.symbol.exports,o.symbol,O,Se,rt);let er=Se&111551?1048576:0,ii=Ge(o.locals,void 0,O,er,rt);return ii.exportSymbol=Ge(o.symbol.exports,o.symbol,O,Se,rt),O.localSymbol=ii,ii}else return R.assertNode(o,dh),Ge(o.locals,void 0,O,Se,rt)}function Ie(O){if(O.parent&&Xl(O)&&(O=O.parent),!Xf(O))return!1;if(!Hk(O)&&O.fullName)return!0;let Se=No(O);return Se?!!(ak(Se.parent)&&ec(Se.parent)||Kd(Se.parent)&&tE(Se.parent)&32):!1}function De(O,Se){let rt=o,jt=s,er=l;if(Se&1?(O.kind!==219&&(s=o),o=l=O,Se&32&&(o.locals=oa(),nr(o))):Se&2&&(l=O,Se&32&&(l.locals=void 0)),Se&4){let ii=m,Xr=y,no=E,La=S,ka=D,wl=j,fd=K,xc=Se&16&&!$r(O,1024)&&!O.asteriskToken&&!!gT(O)||O.kind===175;xc||(m=h1({flags:2}),Se&144&&(m.node=O)),S=xc||O.kind===176||ar(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&&Kf(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||ar(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=m)),xc||(m=ii),y=Xr,E=no,S=La,D=ka,j=wl,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=rt,s=jt,l=er}function ke(O){Et(O,Se=>Se.kind===262?Me(Se):void 0),Et(O,Se=>Se.kind!==262?Me(Se):void 0)}function Et(O,Se=Me){O!==void 0&&gn(O,Se)}function be(O){Bo(O,Me,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:da(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:ct(O);break;case 258:Rt(O);break;case 255:se(O);break;case 269:we(O);break;case 296:lt(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:Le(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:{ke(O.statements),Me(O.endOfFileToken);break}case 241:case 268:ke(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 nt(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(GR(O))return!1;case 235:return nt(O.expression);case 226:return Zt(O);case 224:return O.operator===54&&nt(O.operand);case 221:return nt(O.expression)}return!1}function Ft(O){return BN(O)||(kr(O)||o1(O)||Fu(O))&&Ft(O.expression)||pr(O)&&O.operatorToken.kind===28&&Ft(O.right)||Ys(O)&&(Qp(O.argumentExpression)||Gl(O.argumentExpression))&&Ft(O.expression)||Mc(O)&&Ft(O.left)}function _t(O){return Ft(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 kR(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)||_N(O.right)&&nt(O.left)||_N(O.left)&&nt(O.right);case 104:return en(O.left);case 103:return nt(O.right);case 28:return nt(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 h1({flags:4,antecedents:void 0})}function Jn(){return h1({flags:8,antecedents:void 0})}function pn(O,Se,rt){return h1({flags:1024,target:O,antecedents:Se,antecedent:rt})}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,rt){return Se.flags&1?Se:rt?(rt.kind===112&&O&64||rt.kind===97&&O&32)&&!lF(rt)&&!RV(rt.parent)?ge:nt(rt)?(Yt(Se),h1({flags:O,antecedent:Se,node:rt})):Se:O&32?Se:ge}function uo(O,Se,rt,jt){return Yt(O),h1({flags:128,antecedent:O,switchStatement:Se,clauseStart:rt,clauseEnd:jt})}function Li(O,Se,rt){Yt(Se);let jt=h1({flags:O,antecedent:Se,node:rt});return D&&qt(D,jt),jt}function Eo(O,Se){return Yt(O),h1({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 ok(O)}function on(O){return Jj(ms(O))}function $e(O){for(;Fu(O.parent)||Xv(O.parent)&&O.parent.operator===54;)O=O.parent;return!jr(O)&&!Sr(O.parent)&&!(Hd(O.parent)&&O.parent.expression===O)}function Wt(O,Se,rt,jt){let er=A,ii=N;A=rt,N=jt,O(Se),A=er,N=ii}function In(O,Se,rt){Wt(Me,O,Se,rt),(!O||!on(O)&&!Sr(O)&&!(Hd(O)&&dN(O)))&&(qt(Se,hi(32,m,O)),qt(rt,hi(64,m,O)))}function si(O,Se,rt){let jt=y,er=E;y=Se,E=rt,Me(O),y=jt,E=er}function yi(O,Se){let rt=j;for(;rt&&O.parent.kind===256;)rt.continueTarget=Se,rt=rt.next,O=O.parent;return Se}function $i(O){let Se=yi(O,Jn()),rt=Dn(),jt=Dn();qt(Se,m),m=Se,In(O.expression,rt,jt),m=Zn(rt),si(O.statement,jt,Se),qt(Se,m),m=Zn(jt)}function Ao(O){let Se=Jn(),rt=yi(O,Dn()),jt=Dn();qt(Se,m),m=Se,si(O.statement,jt,rt),qt(rt,m),m=Zn(rt),In(O.expression,Se,jt),m=Zn(jt)}function da(O){let Se=yi(O,Jn()),rt=Dn(),jt=Dn();Me(O.initializer),qt(Se,m),m=Se,In(O.condition,rt,jt),m=Zn(rt),si(O.statement,jt,Se),Me(O.incrementor),qt(Se,m),m=Zn(jt)}function Ba(O){let Se=yi(O,Jn()),rt=Dn();Me(O.expression),qt(Se,m),m=Se,O.kind===250&&Me(O.awaitModifier),qt(rt,m),Me(O.initializer),O.initializer.kind!==261&&pt(O.initializer),si(O.statement,rt,Se),qt(Se,m),m=Zn(rt)}function vn(O){let Se=Dn(),rt=Dn(),jt=Dn();In(O.expression,Se,rt),m=Zn(Se),Me(O.thenStatement),qt(jt,m),m=Zn(rt),Me(O.elseStatement),qt(jt,m),m=Zn(jt)}function kn(O){Me(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 dt(O,Se,rt){let jt=O.kind===252?Se:rt;jt&&(qt(jt,m),m=ge)}function ct(O){if(Me(O.label),O.label){let Se=Be(O.label.escapedText);Se&&(Se.referenced=!0,dt(O,Se.breakTarget,Se.continueTarget))}else dt(O,y,E)}function Rt(O){let Se=S,rt=D,jt=Dn(),er=Dn(),ii=Dn();if(O.finallyBlock&&(S=er),qt(ii,m),D=ii,Me(O.tryBlock),qt(jt,m),O.catchClause&&(m=Zn(ii),ii=Dn(),qt(ii,m),D=ii,Me(O.catchClause),qt(jt,m)),S=Se,D=rt,O.finallyBlock){let Xr=Dn();Xr.antecedents=bo(bo(jt.antecedents,ii.antecedents),er.antecedents),m=Xr,Me(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();Me(O.expression);let rt=y,jt=w;y=Se,w=m,Me(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=rt,w=jt,m=Zn(Se)}function we(O){let Se=O.clauses,rt=O.parent.expression.kind===112||nt(O.parent.expression),jt=ge;for(let er=0;erYl(rt)||Ll(rt))}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),ZV(O))xn(O);else{let Se;if(O.name.kind===11){let{text:jt}=O.name;Se=TR(jt),Se===void 0&&Ns(O.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,jt)}let rt=Wr(O,512,110735);e.patternAmbientModules=Tn(e.patternAmbientModules,Se&&!Co(Se)?{pattern:Se,symbol:rt}:void 0)}else{let Se=xn(O);if(Se!==0){let{symbol:rt}=O;rt.constEnumOnlyModule=!(rt.flags&304)&&Se===2&&rt.constEnumOnlyModule!==!1}}}function xn(O){let Se=Vg(O),rt=Se!==0;return Wr(O,rt?512:1024,rt?110735:0),Se}function Os(O){let Se=fe(131072,he(O));ne(Se,O,131072);let rt=fe(2048,"__type");ne(rt,O,2048),rt.members=oa(),rt.members.set(Se.escapedName,Se)}function Ql(O){return Bs(O,4096,"__object")}function Po(O){return Bs(O,4096,"__jsxAttributes")}function ls(O,Se,rt){return Wr(O,Se,rt)}function Bs(O,Se,rt){let jt=fe(Se,rt);return Se&106508&&(jt.parent=o.symbol),ne(jt,O,Se),jt}function hl(O,Se,rt){switch(l.kind){case 267:ve(O,Se,rt);break;case 312:if(Op(o)){ve(O,Se,rt);break}default:R.assertNode(l,dh),l.locals||(l.locals=oa(),nr(l)),Ge(l.locals,void 0,O,Se,rt)}}function dd(){if(!p)return;let O=o,Se=d,rt=l,jt=i,er=m;for(let ii of p){let Xr=ii.parent.parent;o=aj(Xr)||e,l=fh(Xr)||e,m=h1({flags:2}),i=ii,Me(ii.typeExpression);let no=No(ii);if((Hk(ii)||!ii.fullName)&&no&&ak(no.parent)){let La=ec(no.parent);if(La){gl(e.symbol,no.parent,La,!!Fn(no,wl=>kr(wl)&&wl.name.escapedText==="prototype"),!1);let ka=o;switch(z2(no.parent)){case 1:case 2:Op(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=nS(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=ka}}else Hk(ii)||!ii.fullName||ii.fullName.kind===80?(i=ii.parent,hl(ii,524288,788968)):Me(ii.fullName)}o=O,d=Se,l=rt,i=jt,m=er}function mo(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!Aie(O)){let Se=nE(O);if(Se===void 0)return;B&&Se>=119&&Se<=127?e.bindDiagnostics.push(re(O,sa(O),xs(O))):Se===135?ac(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 Ts(O){B&&$u(O.left)&&wy(O.operatorToken.kind)&&sc(O,O.left)}function Ca(O){B&&O.variableDeclaration&&sc(O,O.variableDeclaration.name)}function fl(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 Pf(O){return Fe(O)&&(O.escapedText==="eval"||O.escapedText==="arguments")}function sc(O,Se){if(Se&&Se.kind===80){let rt=Se;if(Pf(rt)){let jt=_T(e,Se);e.bindDiagnostics.push(Zc(e,jt.start,jt.length,Rl(O),vr(rt)))}}}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 ll(O){B&&sc(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&&!Gx(l)){let Se=_T(e,O);e.bindDiagnostics.push(Zc(e,Se.start,Se.length,Mo(O)))}}function Gs(O){B&&sc(O,O.operand)}function rd(O){B&&(O.operator===46||O.operator===47)&&sc(O,O.operand)}function pd(O){B&&Ns(O,f.with_statements_are_not_allowed_in_strict_mode)}function Sp(O){B&&rs(t)>=2&&(Rre(O.statement)||Ml(O.statement))&&Ns(O.label,f.A_label_is_not_allowed_here)}function Ns(O,Se,...rt){let jt=mh(e,O.pos);e.bindDiagnostics.push(Zc(e,jt.start,jt.length,Se,...rt))}function Ic(O,Se,rt){de(O,Se,Se,rt)}function de(O,Se,rt,jt){$(O,{pos:sE(Se,e),end:rt.end},jt)}function $(O,Se,rt){let jt=Zc(e,Se.pos,Se.end-Se.pos,rt);O?e.bindDiagnostics.push(jt):e.bindSuggestionDiagnostics=Tn(e.bindSuggestionDiagnostics,{...jt,category:2})}function Me(O){if(!O)return;ja(O,i),or&&(O.tracingPath=e.path);let Se=B;if(mr(O),O.kind>165){let rt=i;i=O;let jt=yK(O);jt===0?ze(O):De(O,jt),i=rt}else{let rt=i;O.kind===1&&(i=O),yt(O),i=rt}B=Se}function yt(O){if(wp(O))if(ar(O))for(let Se of O.jsDoc)Me(Se);else for(let Se of O.jsDoc)ja(Se,O),Gv(Se,!1)}function cn(O){if(!B)for(let Se of O){if(!Em(Se))return;if(br(Se)){B=!0;return}}}function br(O){let Se=I0(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&&!Xf(Xr);)Xr=Xr.parent;hl(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&&Ft(Se)&&(Se.flowNode=m),gie(Se)&&Hn(Se),ar(Se)&&e.commonJsModuleIndicator&&Qh(Se)&&!R3(l,"module")&&Ge(e.locals,void 0,Se.expression,134217729,111550);break;case 226:switch(Bl(O)){case 1:np(O);break;case 2:Oc(O);break;case 3:Qo(O.left,O);break;case 6:go(O);break;case 4:mu(O);break;case 5:let Xr=O.left.expression;if(ar(O)&&Fe(Xr)){let no=R3(l,Xr.escapedText);if(GF(no?.valueDeclaration)){mu(O);break}}yc(O);break;case 0:break;default:R.fail("Unknown binary expression special property assignment kind")}return Ts(O);case 299:return Ca(O);case 220:return fl(O);case 225:return Gs(O);case 224:return rd(O);case 254:return pd(O);case 256:return Sp(O);case 197:h=!0;return;case 182:break;case 168:return it(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),Sm(O)?0:103359);case 262:return Tp(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 Ql(O);case 218:case 219:return dg(O);case 213:switch(Bl(O)){case 7:return Zl(O);case 8:return Kc(O);case 9:return qo(O);case 0:break;default:return R.fail("Unknown call expression assignment declaration kind")}ar(O)&&G_(O);break;case 231:case 263:return B=!0,xh(O);case 264:return hl(O,64,788872);case 265:return hl(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 gc(O);case 278:return Vs(O);case 277:return El(O);case 312:return cn(O.statements),Cr();case 241:if(!Gx(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 Me(O.typeExpression)}}function Fr(O){let Se=ku(O),rt=Se?98304:4,jt=Se?13247:0;return Gu(O,rt|(O.questionToken?16777216:0),jt)}function Di(O){return Bs(O,2048,"__type")}function Cr(){if(Hr(e),ac(e))Jo();else if(qf(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 El(O){if(!o.symbol||!o.symbol.exports)Bs(O,111551,he(O));else{let Se=cR(O)?2097152:4,rt=Ge(o.symbol.exports,o.symbol,O,Se,-1);O.isExportEquals&&G2(rt,O)}}function Hc(O){gt(O.modifiers)&&e.bindDiagnostics.push(re(O,f.Modifiers_cannot_appear_here));let Se=Yi(O.parent)?ac(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?bh(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 gc(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=Mf(O.arguments[0],void 0,(rt,jt)=>(jt&&ne(jt,rt,67110400),jt));Se&&Ge(Se.exports,Se,O,1048580,0)}function np(O){if(!bs(O))return;let Se=Mf(O.left.expression,void 0,(rt,jt)=>(jt&&ne(jt,rt,67110400),jt));if(Se){let jt=Y2(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 Oc(O){if(!bs(O))return;let Se=O2(O.right);if($j(Se)||o===e&&nS(e,Se))return;if(Ma(Se)&&oo(Se.properties,ep)){gn(Se.properties,om);return}let rt=cR(O)?2097152:1049092,jt=Ge(e.symbol.exports,e.symbol,O,rt|67108864,0);G2(jt,O)}function om(O){Ge(e.symbol.exports,e.symbol,O,69206016,0)}function mu(O){if(R.assert(ar(O)),pr(O)&&kr(O.left)&&Ki(O.left.name)||kr(O)&&Ki(O.name))return;let rt=wu(O,!1,!1);switch(rt.kind){case 262:case 218:let jt=rt.symbol;if(pr(rt.parent)&&rt.parent.operatorToken.kind===64){let Xr=rt.parent.left;P0(Xr)&&zv(Xr.expression)&&(jt=Du(Xr.expression.expression,s))}jt&&jt.valueDeclaration&&(jt.members=jt.members||oa(),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 er=rt.parent,ii=na(rt)?er.symbol.exports:er.symbol.members;Wv(O)?Re(O,er.symbol,ii):Ge(ii,er.symbol,O,67108868,0,!0);break;case 312:if(Wv(O))break;rt.commonJsModuleIndicator?Ge(rt.symbol.exports,rt.symbol,O,1048580,0):Wr(O,1,111550);break;case 267:break;default:R.failBadSyntaxKind(rt)}}function Re(O,Se,rt){Ge(rt,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 Hn(O){O.expression.kind===110?mu(O):P0(O)&&O.parent.parent.kind===312&&(zv(O.expression)?Qo(O,O.parent):cl(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),Vl(O,Se,!0)}function Qo(O,Se){let rt=O.expression,jt=rt.expression;ja(jt,rt),ja(rt,O),ja(O,Se),Jc(jt,O,!0,!0)}function Zl(O){let Se=Du(O.arguments[0]),rt=O.parent.parent.kind===312;Se=gl(Se,O.arguments[0],rt,!1,!1),Vl(O,Se,!1)}function yc(O){var Se;let rt=Du(O.left.expression,l)||Du(O.left.expression,o);if(!ar(O)&&!yie(rt))return;let jt=bR(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&&nS(e,O.left.expression))np(O);else if(Wv(O)){Bs(O,67108868,"__computed");let er=gl(rt,O.left.expression,ec(O.left),!1,!1);Lt(O,er)}else cl(ta(O.left,bT))}function cl(O){R.assert(!Fe(O)),ja(O.expression,O),Jc(O.expression,O,!1,!1)}function gl(O,Se,rt,jt,er){return O?.flags&2097152||(rt&&!jt&&(O=Mf(Se,O,(no,La,ka)=>{if(La)return ne(La,no,67110400),La;{let wl=ka?ka.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=oa());return Ge(wl,ka,no,67110400,110735)}})),er&&O&&O.valueDeclaration&&ne(O,O.valueDeclaration,32)),O}function Vl(O,Se,rt){if(!Se||!cf(Se))return;let jt=rt?Se.members||(Se.members=oa()):Se.exports||(Se.exports=oa()),er=0,ii=0;Fs(DI(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 ec(O){return pr(O.parent)?Bu(O.parent).parent.kind===312:O.parent.parent.kind===312}function Jc(O,Se,rt,jt){let er=Du(O,l)||Du(O,o),ii=ec(Se);er=gl(er,Se.expression,ii,rt,jt),Vl(Se,er,rt)}function cf(O){if(O.flags&1072)return!0;let Se=O.valueDeclaration;if(Se&&ra(Se))return!!DI(Se);let rt=Se?Oi(Se)?Se.initializer:pr(Se)?Se.right:kr(Se)&&pr(Se.parent)?Se.parent.right:void 0:void 0;if(rt=rt&&O2(rt),rt){let jt=zv(Oi(Se)?Se.name:pr(Se)?Se.left:Se);return!!cE(pr(rt)&&(rt.operatorToken.kind===57||rt.operatorToken.kind===61)?rt.right:rt,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 rt=Du(O.expression);return rt&&rt.exports&&rt.exports.get(Lg(O))}}function Mf(O,Se,rt){if(nS(e,O))return e.symbol;if(Fe(O))return rt(O,Du(O),Se);{let jt=Mf(O.expression,Se,rt),er=F2(O);return Ki(er)&&R.fail("unexpected PrivateIdentifier"),rt(er,jt&&jt.exports&&jt.exports.get(Lg(O)),jt)}}function G_(O){!e.commonJsModuleIndicator&&Su(O,!1)&&bs(O)}function xh(O){if(O.kind===263)hl(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,rt=fe(4194308,"prototype"),jt=Se.exports.get(rt.escapedName);jt&&(O.name&&ja(O.name,O),e.bindDiagnostics.push(re(jt.declarations[0],f.Duplicate_identifier_0,bl(rt)))),Se.exports.set(rt.escapedName,rt),rt.parent=Se}function Hg(O){return R0(O)?hl(O,128,899967):hl(O,256,899327)}function zd(O){if(B&&sc(O,O.name),!$o(O.name)){let Se=O.kind===260?O:O.parent.parent;ar(O)&&N0(Se)&&!rE(O)&&!(tE(O)&32)?Wr(O,2097152,2097152):YV(O)?hl(O,2,111551):k0(O)?Wr(O,1,111551):Wr(O,1,111550)}}function Kg(O){if(!(O.kind===348&&o.kind!==330)&&(B&&!(O.flags&33554432)&&sc(O,O.name),$o(O.name)?Bs(O,1,"__"+O.parent.parameters.indexOf(O)):Wr(O,1,111551),up(O,O.parent))){let Se=O.parent.parent;Ge(Se.symbol.members,Se.symbol,O,4|(O.questionToken?16777216:0),0)}}function Tp(O){!e.isDeclarationFile&&!(O.flags&33554432)&&PN(O)&&(Y|=4096),ll(O),B?(tn(O),hl(O,16,110991)):Wr(O,16,110991)}function dg(O){!e.isDeclarationFile&&!(O.flags&33554432)&&PN(O)&&(Y|=4096),m&&(O.flowNode=m),ll(O);let Se=O.name?O.name.escapedText:"__function";return Bs(O,16,Se)}function Gu(O,Se,rt){return!e.isDeclarationFile&&!(O.flags&33554432)&&PN(O)&&(Y|=4096),m&&OF(O)&&(O.flowNode=m),Wv(O)?Bs(O,Se,"__computed"):Wr(O,Se,rt)}function Z(O){let Se=Fn(O,rt=>rt.parent&&r1(rt.parent)&&rt.parent.extendsType===rt);return Se&&Se.parent}function it(O){if(rm(O.parent)){let Se=e6(O.parent);Se?(R.assertNode(Se,dh),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,dh),Se.locals??(Se.locals=oa()),Ge(Se.locals,void 0,O,262144,526824)):Bs(O,262144,he(O))}else Wr(O,262144,526824)}function Ot(O){let Se=Vg(O);return Se===1||Se===2&&j0(t)}function Gt(O){if(!(m.flags&1))return!1;if(m===ge&&(m2(O)&&O.kind!==242||O.kind===263||O.kind===267&&Ot(O))&&(m=q,!t.allowUnreachableCode)){let rt=moe(t)&&!(O.flags&33554432)&&(!Ml(O)||!!(Cy(O.declarationList)&7)||O.declarationList.declarations.some(jt=>!!jt.initializer));OGe(O,(jt,er)=>de(rt,jt,er,f.Unreachable_code_detected))}return!0}}function OGe(e,t){if(Hi(e)&&mIe(e)&&Ho(e.parent)){let{statements:r}=e.parent,i=mU(r,e);WG(i,mIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function mIe(e){return!Sc(e)&&!WGe(e)&&!yE(e)&&!(Ml(e)&&!(Cy(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function WGe(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 nS(e,t){let r=0,i=NL();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),Mc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function yK(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,dh))==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(S_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var vK,bK,_Ie,FGe=bt({"src/compiler/binder.ts"(){"use strict";Zo(),iT(),vK=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(vK||{}),bK=(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))(bK||{}),_Ie=wGe()}});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:fI(E),visitedSymbols:fI(S)}}finally{jh(E),jh(S)}},walkSymbol:me=>{try{return ee(me),{visitedTypes:fI(E),visitedSymbols:fI(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=va(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 zGe=bt({"src/compiler/symbolWalker.ts"(){"use strict";Zo()}});function Tw({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 ZR(r,i.fileName)?[3,2]:[2];if(uu(r)===1)return p===2?[2,1]:[1,2];let h=ZR(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(z0(o))return 2;if(Sl(o,"/index"))return 1}return Toe(t,d??i.impliedNodeFormat,r,i)}}function BGe(e,t,r,i,o,s,l={}){let d=hIe(e,t,r,i,o,Tw({},e,t,s),{},l);if(d!==s)return d}function D3(e,t,r,i,o,s={}){return hIe(e,t,r,i,o,Tw({},e,t),{},s)}function GGe(e,t,r,i,o,s={}){let l=EK(t.fileName,i),d=TIe(l,r,i,o,s);return Fl(d,p=>zse(p,l,t,i,e,o,!0,s.overrideImportMode))}function hIe(e,t,r,i,o,s,l,d={}){let p=EK(r,o),h=TIe(p,i,o,l,d);return Fl(h,m=>zse(m,p,t,o,e,l,void 0,d.overrideImportMode))||bIe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function VGe(e,t,r,i,o={}){return gIe(e,t,r,i,o)[0]}function gIe(e,t,r,i,o={}){var s;let l=AF(e);if(!l)return Ye;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 yIe(e,t,r,i,o,s,l={}){return vIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function vIe(e,t,r,i,o,s,l={},d){let p=!1,h=HGe(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,y,E,S]=gIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!y)return{moduleSpecifiers:Ye,computedWithoutCache:p};p=!0,E||(E=AIe(EK(i.fileName,o),y.originalFileName,o));let A=jGe(E,r,i,o,s,l,d);return S?.set(i.path,y.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function jGe(e,t,r,i,o,s={},l){let d=EK(r.fileName,i),p=Tw(o,t,r),h=gn(e,N=>gn(i.getFileIncludeReasons().get(rl(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=Bw(r,D.index).text;return p.relativePreference!==1||!kp(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=bIe(N.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,N.isRedirect);if(!w)continue;N.isRedirect?S=Tn(S,w):uV(w)?IE(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 EK(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 bIe(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&&qGe(m,e,y,S,A,r)||Aw(v0(gm(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=DIe(e,D,S);if(!w)return d?void 0:N;let j=d?void 0:JGe(e,y,r,i,o),K=d||j===void 0?h&&IIe(w,h,A,i,r):void 0;if(d)return K;let Y=j??(K===void 0&&p!==void 0?Aw(w,A,r):K);if(!Y)return N;if(l===1&&!kp(Y))return Y;if(l===3&&!kp(Y)){let B=r.configFilePath?rl(oi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=rl(e,B,S),z=ao(E,B),ee=ao(ce,B);if(z&&!ee||!z&&ee)return Y;let me=Fse(i,oi(ce)),ge=Fse(i,y),q=!hR(i);return UGe(me,ge,q)?N:Y}return CIe(Y)||C3(N)e.fileExists(Yr(r,"package.json"))?r:void 0)}function SIe(e,t,r,i,o){var s;let l=ky(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=rl(t,d,l),m=r.redirectTargetsMap.get(h)||Ye,E=[...p?[p]:Ye,t,...m].map(w=>_o(w,d)),S=!oo(E,nP);if(!i){let w=gn(E,j=>!(S&&nP(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&&ym(oi(N),w=>{let j=A.get(Bc(rl(w,d,l)));if(j)return fV(e,w,l)?!1:gn(E,K=>{if(!fV(K,w,l))return;let Y=gm(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&&nP(w)?void 0:o(w,w===p)):void 0)}function TIe(e,t,r,i,o={}){var s;let l=rl(e.importingSourceFileName,r.getCurrentDirectory(),ky(r)),d=rl(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=AIe(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function AIe(e,t,r){let i=new Map,o=!1;SIe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=IE(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(EIe),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(EIe),s.push(...l)}return s}function HGe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>QV(l)&&(!x0(l)||!$c(Yf(l.name))));if(i)return i.name.text;let s=to(e.declarations,l=>{var d,p,h,m;if(!Xl(l))return;let y=N(l);if(!((d=y?.parent)!=null&&d.parent&&M_(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 IIe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=fa(d),h=p.indexOf("*"),m=r.map(y=>({ending:y,value:Aw(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(!kp(N))return jI(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===Aw(e,[l],o,i)}}function N3(e,t,r,i,o,s,l,d,p){if(typeof s=="string"){let h=!hR(t),m=()=>t.getCommonSourceDirectory(),y=p&&$K(r,e,h,m),E=p&&YK(r,e,h,m),S=_o(Yr(i,s),void 0),A=GI(r)?Tu(r)+Gse(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&&hm(S,A,h)){let j=gm(S,A,!1);return{moduleFileToTry:_o(Yr(Yr(o,s),j),void 0)}}if(hm(S,r,h)){let j=gm(S,r,!1);return{moduleFileToTry:_o(Yr(Yr(o,s),j),void 0)}}if(y&&hm(S,y,h)){let j=gm(S,y,!1);return{moduleFileToTry:Yr(o,j)}}if(E&&hm(S,E,h)){let j=gm(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:jI(o,j)}}if(ao(r,D,h)&&Sl(r,w,h)){let j=r.slice(D.length,r.length-w.length);return{moduleFileToTry:jI(o,j)}}if(y&&ao(y,D,h)&&Sl(y,w,h)){let j=y.slice(D.length,y.length-w.length);return{moduleFileToTry:jI(o,j)}}if(E&&ao(E,D,h)&&Sl(E,w,h)){let j=E.slice(D.length,E.length-w.length);return{moduleFileToTry:jI(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||Ew(l,h)){let m=s[h],y=N3(e,t,r,i,o,m,l,d,p);if(y)return y}}}}function KGe(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 JGe(e,t,r,i,o){var s,l,d;if(!i.readFile||!Q6(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||y6(i.readFile(h)),E=y?.imports;if(!E)return;let S=Qv(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 qGe(e,t,r,i,o,s){let l=xIe(t,e,i);if(l===void 0)return;let d=xIe(r,e,i),p=ya(d,m=>mn(l,y=>v0(gm(m,y,i)))),h=JG(p,fk);if(h)return Aw(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=j6(e);if(!m)return;let E=Tw(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(uu(l)!==1){if(ee)return;if(me)return ce}if(z){S=z,A=!0;break}if(B||(B=ce),Y=e.indexOf(il,Y+1),Y===-1){S=Aw(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=WP(w);return uu(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=WP(fe),he=Qv(l,re),Ce=J?.exports?KGe(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=IIe(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&&fU(W6(pe.paths),xe))){let fe=rl(xe,z,r),ne=r(me);if(Tu(fe)===Tu(ne))return{packageRootPath:z,moduleFileToTry:me};if(J?.type!=="module"&&!Ec(ne,Ik)&&ao(ne,fe)&&oi(ne)===$b(fe)&&Tu(rc(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 XGe(e,t){if(!e.fileExists)return;let r=mm(XN({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 xIe(e,t,r){return to(t,i=>{let o=DIe(e,i,r);return o!==void 0&&CIe(o)?void 0:o})}function Aw(e,t,r,i){if(Ec(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(Ec(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||{})}}),rS={};xa(rS,{RelativePreference:()=>Vse,countPathComponents:()=>C3,forEachFileNameOfModule:()=>SIe,getModuleSpecifier:()=>D3,getModuleSpecifierPreferences:()=>Tw,getModuleSpecifiers:()=>yIe,getModuleSpecifiersWithCacheInfo:()=>vIe,getNodeModulesPackageName:()=>GGe,tryGetJSExtensionForFile:()=>Gse,tryGetModuleSpecifiersFromCache:()=>VGe,tryGetRealFileNameForNonJsDeclarationFileName:()=>RIe,updateModuleSpecifier:()=>BGe});var Use=bt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";jse()}});function YGe(){this.flags=0}function is(e){return e.id||(e.id=Jse,Jse++),e.id}function va(e){return e.id||(e.id=Kse,Kse++),e.id}function SK(e,t){let r=Vg(e);return r===1||t&&r===2}function Hse(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=dP(B),ge=hoe(B),q=CT(B),J=du(B,"strictNullChecks"),re=du(B,"strictFunctionTypes"),pe=du(B,"strictBindCallApply"),xe=du(B,"strictPropertyInitialization"),fe=du(B,"noImplicitAny"),ne=du(B,"noImplicitThis"),he=du(B,"useUnknownInCatchVariables"),Ce=!!B.keyofStringsOnly,Ge=Ce?1:0,ve=B.suppressExcessPropertyErrors?0:8192,Ie=B.exactOptionalPropertyTypes,De=Dft(),ke=sgt(),Et=K_(),be=oa(),ze=Ka(4,"undefined");ze.declarations=[];var nt=Ka(1536,"globalThis",8);nt.exports=be,nt.declarations=[],be.set(nt.escapedName,nt);var Ft=Ka(4,"arguments"),_t=Ka(4,"require"),Je=B.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",ft=!B.verbatimModuleSyntax||!!B.importsNotUsedAsValues,Zt,en,Dn=0,Jn,pn=0;let Yt={getNodeCount:()=>nu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>nu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>nu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:ju.size,identity:rp.size,subtype:Rh.size,strictSubtype:Lf.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===Ft,isUnknownSymbol:n=>n===ct,getMergedSymbol:ts,getDiagnostics:$6e,getGlobalDiagnostics:Tht,getRecursionIdentity:qZ,getUnmatchedProperties:Eye,getTypeOfSymbolAtLocation:(n,a)=>{let c=Ro(a);return c?hdt(n,c):pt},getTypeOfSymbol:cr,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(up(c,c.parent)),PM(c,ml(a)))},getDeclaredTypeOfSymbol:Qs,getPropertiesOfType:_s,getPropertyOfType:(n,a)=>_a(n,ml(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=Ro(c);if(!u)return;let _=ml(a),g=Iee(_,u);return g?ave(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Ue(n,ml(a)),getIndexInfoOfType:(n,a)=>Eg(n,a===0?Ne:It),getIndexInfosOfType:hu,getIndexInfosOfIndexSymbol:_ge,getSignaturesOfType:Ko,getIndexTypeOfType:(n,a)=>r0(n,a===0?Ne:It),getIndexType:n=>X_(n),getBaseTypes:Cp,getBaseTypeOfLiteralType:my,getWidenedType:Kp,getTypeFromTypeNode:n=>{let a=Ro(n,ji);return a?Ti(a):pt},getParameterType:__,getParameterIdentifierInfoAtPosition:Kpt,getPromisedTypeOfPromise:Y8,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?Aht(c,a):[]},getSymbolAtLocation:n=>{let a=Ro(n);return a?Gm(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=Ro(n);return a?Mht(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=Ro(n);return a?Lht(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=Ro(n,Jd);return a?kht(a):void 0},getExportSymbolOfSymbol(n){return ts(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=Ro(n);return a?gx(a):pt},getTypeOfAssignmentPattern:n=>{let a=Ro(n,hN);return a&&tte(a)||pt},getPropertySymbolOfDestructuringAssignment:n=>{let a=Ro(n,Fe);return a?wht(a):void 0},signatureToString:(n,a,c,u)=>Mh(n,Ro(a),c,u),typeToString:(n,a,c)=>jn(n,Ro(a),c),symbolToString:(n,a,c,u)=>Si(n,Ro(a),c,u),typePredicateToString:(n,a,c)=>Lh(n,Ro(a),c),writeSignature:(n,a,c,u,_)=>Mh(n,Ro(a),c,u,_),writeType:(n,a,c,u)=>jn(n,Ro(a),c,u),writeSymbol:(n,a,c,u,_)=>Si(n,Ro(a),c,u,_),writeTypePredicate:(n,a,c,u)=>Lh(n,Ro(a),c,u),getAugmentedPropertiesOfType:sbe,getRootSymbols:o4e,getSymbolOfExpando:kee,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?Kye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=Ro(n,A0);return c&&Hye(c,a)},getContextualTypeForJsxAttribute:n=>{let a=Ro(n,_F);return a&&vWe(a,void 0)},isContextSensitive:Bf,getTypeOfPropertyOfContextualType:p0,getFullyQualifiedName:jp,getResolvedSignature:(n,a,c)=>Li(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:qt,getResolvedSignatureForSignatureHelp:(n,a,c)=>hi(n,()=>Li(n,a,c,16)),getExpandedParameters:bwe,hasEffectiveRestParameter:Gh,containsArgumentsReference:pge,getConstantValue:n=>{let a=Ro(n,d4e);return a?lbe(a):void 0},isValidPropertyAccess:(n,a)=>{let c=Ro(n,yre);return!!c&&tpt(c,ml(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=Ro(n,kr);return!!u&&XWe(u,a,c)},getSignatureFromDeclaration:n=>{let a=Ro(n,Yo);return a?cm(a):void 0},isImplementationOfOverload:n=>{let a=Ro(n,Yo);return a?l4e(a):void 0},getImmediateAliasedSymbol:$ye,getAliasedSymbol:Wc,getEmitResolver:tv,getExportsOfModule:xA,getExportsAndPropertiesOfModule:$D,forEachExportAndPropertyOfModule:QD,getSymbolWalker:Wse(Fat,zf,us,Cp,u_,cr,zm,Pu,zp,Hs),getAmbientModules:Ygt,getJsxIntrinsicTagNamesAt:kut,isOptionalParameter:n=>{let a=Ro(n,To);return a?E8(a):!1},tryGetMemberInModuleExports:(n,a)=>RA(ml(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>ZD(ml(n),a),tryFindAmbientModule:n=>bZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>bZ(n,!1),getApparentType:Mu,getUnionType:ti,isTypeAssignableTo:ga,createAnonymousType:Ps,createSignature:bg,createSymbol:Ka,createIndexInfo:Fh,getAnyType:()=>G,getStringType:()=>Ne,getStringLiteralType:Ku,getNumberType:()=>It,getNumberLiteralType:f_,getBigIntType:()=>Dt,createPromiseType:$5,createArrayType:Gd,getElementTypeOfArrayType:T5,getBooleanType:()=>gi,getFalseType:n=>n?Kt:En,getTrueType:n=>n?wn:Bn,getVoidType:()=>nr,getUndefinedType:()=>Le,getNullType:()=>ue,getESSymbolType:()=>xi,getNeverType:()=>Wr,getOptionalType:()=>H,getPromiseType:()=>s5(!1),getPromiseLikeType:()=>sOe(!1),getAsyncIterableType:()=>{let n=NZ(!1);if(n!==Mo)return n},isSymbolAccessible:wi,isArrayType:Vf,isTupleType:wa,isArrayLikeType:fv,isEmptyAnonymousObjectType:Bh,isTypeInvalidDueToUnionDiscriminant:vat,getExactOptionalProperties:Klt,getAllPossiblePropertiesOfTypes:bat,getSuggestedSymbolForNonexistentProperty:cve,getSuggestionForNonexistentProperty:dve,getSuggestedSymbolForNonexistentJSXAttribute:JWe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>uve(n,ml(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>$ut(n,ml(a),c),getSuggestedSymbolForNonexistentModule:Ree,getSuggestionForNonexistentExport:Qut,getSuggestedSymbolForNonexistentClassMember:KWe,getBaseConstraintOfType:Bd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?FA(n):void 0,resolveName(n,a,c,u){return yl(a,ml(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Vi(zE(n)),getJsxFragmentFactory:n=>{let a=dbe(n);return a&&Vi(zp(a).escapedText)},getAccessibleSymbolChain:vb,getTypePredicateOfSignature:zf,resolveExternalModuleName:n=>{let a=Ro(n,ht);return a&&_u(a,a,!0)},resolveExternalModuleSymbol:xp,tryGetThisTypeAt:(n,a,c)=>{let u=Ro(n);return u&&Gye(u,a,c)},getTypeArgumentConstraint:n=>{let a=Ro(n,ji);return a&&amt(a)},getSuggestionDiagnostics:(n,a)=>{let c=Ro(n,Yi)||R.fail("Could not determine parsed source file.");if(QN(c,B,e))return Ye;let u;try{return i=a,obe(c),R.assert(!!(Qr(c).flags&1)),u=Ur(u,cA.getDiagnostics(c.fileName)),f6e(Y6e(c),(_,g,T)=>{!Kx(_)&&!X6e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||Ye}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Yt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Nr,isDeclarationVisible:s_,isPropertyAccessible:fve,getTypeOnlyAliasDeclaration:kf,getMemberOverrideModifierStatus:F_t,isTypeParameterPossiblyReferenced:m5,typeHasCallOrConstructSignatures:nte};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,WV),n){let c=[],u=[];for(;n;){let g=Qr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,G0(n)){let T=qi(Tr(n)),M=T.type;u.push([T,M]),T.type=void 0}n=Fn(n.parent,WV)}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,A0);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,A0);Zt=c;let g=_?TC(_,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,Wt=new Map,In=new Map,si=new Map,yi=new Map,$i=new Map,Ao=new Map,da=new Map,Ba=new Map,vn=new Map,kn=[],Be=new Map,dt=new Set,ct=Ka(4,"unknown"),Rt=Ka(0,"__resolving__"),se=new Map,we=new Map,lt=new Set,G=lc(1,"any"),tt=lc(1,"any",262144,"auto"),Tt=lc(1,"any",void 0,"wildcard"),He=lc(1,"any",void 0,"blocked string"),pt=lc(1,"error"),Bt=lc(1,"unresolved"),hn=lc(1,"any",65536,"non-inferrable"),dn=lc(1,"intrinsic"),un=lc(2,"unknown"),U=lc(2,"unknown",void 0,"non-null"),Le=lc(32768,"undefined"),Nt=J?Le:lc(32768,"undefined",65536,"widening"),k=lc(32768,"undefined",void 0,"missing"),ie=Ie?k:Le,H=lc(32768,"undefined",void 0,"optional"),ue=lc(65536,"null"),We=J?ue:lc(65536,"null",65536,"widening"),Ne=lc(4,"string"),It=lc(8,"number"),Dt=lc(64,"bigint"),Kt=lc(512,"false",void 0,"fresh"),En=lc(512,"false"),wn=lc(512,"true",void 0,"fresh"),Bn=lc(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=lc(4096,"symbol"),nr=lc(16384,"void"),Wr=lc(131072,"never"),ho=lc(131072,"never",262144,"silent"),Pi=lc(131072,"never",void 0,"implicit"),Ri=lc(131072,"never",void 0,"unreachable"),Hr=lc(67108864,"object"),Io=ti([Ne,It]),xn=ti([Ne,It,xi]),Os=Ce?Ne:xn,Ql=ti([It,Dt]),Po=ti([Ne,It,gi,Dt,ue,Le]),ls=BA(["",""],[It]),Bs=f5(n=>n.flags&262144?vlt(n):n,()=>"(restrictive mapper)"),hl=f5(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),dd=lc(131072,"never",void 0,"unique literal"),mo=f5(n=>n.flags&262144?dd:n,()=>"(unique literal mapper)"),sa,ud=f5(n=>(sa&&(n===Sp||n===Ns||n===Ic)&&sa(!0),n),()=>"(unmeasurable reporter)"),Ts=f5(n=>(sa&&(n===Sp||n===Ns||n===Ic)&&sa(!1),n),()=>"(unreliable reporter)"),Ca=Ps(void 0,K,Ye,Ye,Ye),fl=Ps(void 0,K,Ye,Ye,Ye);fl.objectFlags|=2048;var Pf=Ka(2048,"__type");Pf.members=oa();var sc=Ps(Pf,K,Ye,Ye,Ye),Rl=Ps(void 0,K,Ye,Ye,Ye),ll=J?ti([Le,ue,Rl]):un,Mo=Ps(void 0,K,Ye,Ye,Ye);Mo.instantiations=new Map;var tn=Ps(void 0,K,Ye,Ye,Ye);tn.objectFlags|=262144;var Gs=Ps(void 0,K,Ye,Ye,Ye),rd=Ps(void 0,K,Ye,Ye,Ye),pd=Ps(void 0,K,Ye,Ye,Ye),Sp=_f(),Ns=_f();Ns.constraint=Sp;var Ic=_f(),de=_f(),$=_f();$.constraint=de;var Me=o5(1,"<>",0,G),yt=bg(void 0,void 0,void 0,Ye,G,void 0,0,0),cn=bg(void 0,void 0,void 0,Ye,pt,void 0,0,0),br=bg(void 0,void 0,void 0,Ye,G,void 0,0,0),mr=bg(void 0,void 0,void 0,Ye,ho,void 0,0,0),Fr=Fh(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),El=hv(G,G,un),Hc=hv(Wr,G,Le),Vs={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Zat,getGlobalIterableType:NZ,getGlobalIterableIteratorType:est,getGlobalGeneratorType:tst,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},gc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:nst,getGlobalIterableType:Rge,getGlobalIterableIteratorType:rst,getGlobalGeneratorType:ist,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,np=[],Oc,om,mu,Re,Lt,Hn,go,qo,Qo,Zl,yc,cl,gl,Vl,ec,Jc,cf,Bu,Du,Mf,G_,xh,Hg,zd,Kg,Tp,dg,Gu,Z,it,Ot,Gt,O,Se,rt,jt,er,ii,Xr,no,La,ka,wl,fd,xc,Ap,Vu,ab,cs,Nm,Pm,Ui,Jg,Zy,Mm,_S,hS,df=new Map,V_=0,uf=0,qg=0,Oe=!1,qe=0,Pt,Vt,_n,qn=[],fn=[],Xn=[],mi=0,sr=[],ni=[],ur=0,Xo=Ku(""),Ha=f_(0),Qd=wZ({negative:!1,base10Value:"0"}),md=[],Xg=[],wE=[],z1=0,OE=!1,FD=0,zD=10,BD=[],sA=[],gS=[],B1=[],GD=[],G1=[],V1=[],j1=[],U1=[],lA=[],H1=[],yS=[],vS=[],sb=[],lb=[],ug=[],WE=[],Za=fR(),cA=fR(),VD=Ph(),FE,Yg,Rh=new Map,Lf=new Map,ju=new Map,Ip=new Map,rp=new Map,ev=new Map,dA=oa();dA.set(ze.escapedName,ze);var jD=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",B.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return lgt(),Yt;function K1(n){return n?vn.get(n):void 0}function cb(n,a){return n&&vn.set(n,a),a}function zE(n){if(n){let a=Vn(n);if(a)if(l1(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=So(c)?c[0]:c;if(a.localJsxFragmentFactory=p1(_.arguments.factory,ce),Qe(a.localJsxFragmentFactory,vc,Yu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=zp(a.localJsxFragmentFactory).escapedText}let u=dbe(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=zp(u).escapedText}else{let c=J1(a);if(c)return a.localJsxNamespace=c}}return FE||(FE="React",B.jsxFactory?(Yg=p1(B.jsxFactory,ce),Qe(Yg,vc),Yg&&(FE=zp(Yg).escapedText)):B.reactNamespace&&(FE=ml(B.reactNamespace))),Yg||(Yg=L.createQualifiedName(L.createIdentifier(Vi(FE)),"createElement")),FE}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=p1(c.arguments.factory,ce),Qe(n.localJsxFactory,vc,Yu),n.localJsxFactory)return n.localJsxNamespace=zp(n.localJsxFactory).escapedText}}function vc(n){return _h(n,-1,-1),Sn(n,vc,void 0)}function tv(n,a){return $6e(n,a),ke}function q1(n,a,...c){let u=n?Pr(n,a,...c):Ul(a,...c),_=Za.lookup(u);return _||(Za.add(u),u)}function n_(n,a,c,...u){let _=Ve(a,c,...u);return _.skippedOn=n,_}function uA(n,a,...c){return n?Pr(n,a,...c):Ul(a,...c)}function Ve(n,a,...c){let u=uA(n,a,...c);return Za.add(u),u}function r_(n,a){n?Za.add(a):cA.add({...a,category:2})}function _d(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Vn(a);r_(n,"message"in c?Zc(_,0,0,c,...u):sj(_,c));return}r_(n,"message"in c?Pr(a,c,...u):Mg(Vn(a),a,c))}function BE(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 X1(n,a){let c=Array.isArray(n)?gn(n,TV):TV(n);return c&&Pa(a,Pr(c,f.The_declaration_was_marked_as_deprecated_here)),cA.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!!(XS(n)&536870912)}function rv(n,a,c){let u=Pr(n,f._0_is_deprecated,c);return X1(a,u)}function NM(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 X1(a,_)}function Ka(n,a,c){y++;let u=new d(n|33554432,a);return u.links=new Yse,u.links.checkFlags=c||0,u}function i_(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 GE(n,a){a.mergeId||(a.mergeId=qse,qse++),BD[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)),GE(a,n),a}function am(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 _=jl(n);if(_===ct)return a;n=mA(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&G2(n,a.valueDeclaration),Ur(n.declarations,a.declarations),a.members&&(n.members||(n.members=oa()),o_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=oa()),o_(n.exports,a.exports,c)),c||GE(n,a)}else if(n.flags&1024)n!==nt&&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&&Vn(a.declarations[0]),W=n.declarations&&Vn(n.declarations[0]),V=y2(M,B.checkJs),te=y2(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=KC(bs,`${_e.path}|${je.path}`,()=>({firstFile:_e,secondFile:je,conflictingSymbols:new Map})),At=KC(mt.conflictingSymbols,ye,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));V||u(At.firstFileLocations,a),te||u(At.secondFileLocations,n)}else V||sm(a,T,ye,n),te||sm(n,T,ye,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)vf(_,T)}}function sm(n,a,c,u){gn(n.declarations,_=>{$g(_,a,c,u.declarations)})}function $g(n,a,c,u){let _=(cE(n,!1)?gj(n):No(n))||n,g=q1(_,a,c);for(let T of u||Ye){let M=(cE(T,!1)?gj(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=>JN(te,V)===0||JN(te,W)===0)||Pa(g,Nn(g.relatedInformation)?V:W)}}function Y1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=oa();return o_(c,n),o_(c,a),c}function o_(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?am(g,u,c):ts(u))})}function UD(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(T_(_))o_(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=xp(T),T.flags&1920)if(gt(om,M=>T===M.symbol)){let M=am(_.symbol,T,!0);mu||(mu=new Map),mu.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)&&am(M.get(W),V)}am(T,_.symbol)}else Ve(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function bS(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=>Za.add(Pr(T,g,_))}}function qi(n){if(n.flags&33554432)return n.links;let a=va(n);return sA[a]??(sA[a]=new Yse)}function Qr(n){let a=is(n);return gS[a]||(gS[a]=new YGe)}function Dh(n){return n.kind===312&&!Op(n)}function Uu(n,a,c){if(c){let u=ts(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 PM(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 Qg(n,a){let c=Vn(n),u=Vn(a),_=fh(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)||Dye(a))return!0;if(n.pos<=a.pos&&!(jo(n)&&C2(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let W=pE(a,208);return W?Fn(W,Xa)!==Fn(n,Xa)||n.pos$a(W)&&W.parent.parent===n);if(jo(n))return!M(n,a,!1);if(up(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)||up(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(SS(V,W,_))return!0;break}let te=W.parent.parent;return Vx(te)&&SS(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||up(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 MM(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 fc(M)?!ge:T(M.name);default:return RV(M)||Hd(M)?u<7:Xa(M)&&M.dotDotDotToken&&nm(M.parent)?u<4:ji(M)?!1:Bo(M,T)||!1}}}function ub(n){return uT(n)&&Ng(n.type)||IP(n)&&Ng(n.typeExpression)}function yl(n,a,c,u,_,g,T=!1,M=!0){return Gp(n,a,c,u,_,g,T,M,Uu)}function Gp(n,a,c,u,_,g,T,M,W){var V,te,ye;let _e=n,je,mt,At,rn,sn,ir=!1,Mn=n,an,On=!1;e:for(;n;){if(a==="const"&&ub(n))return;if(f2(n)&&mt&&n.name===mt&&(mt=n,n=n.parent),dh(n)&&n.locals&&!Dh(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&&(MM(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(ir=ir||lm(n,mt),n.kind){case 312:if(!Op(n))break;On=!0;case 267:let $n=((V=Tr(n))==null?void 0:V.exports)||K;if(n.kind===312||Xl(n)&&n.flags&33554432&&!T_(n)){if(je=$n.get("default")){let xo=yR(je);if(xo&&je.flags&c&&xo.escapedName===a)break e;je=void 0}let Qn=$n.get(a);if(Qn&&Qn.flags===2097152&&(ul(Qn,281)||ul(Qn,280)))break}if(a!=="default"&&(je=W($n,a,c&2623475)))if(Yi(n)&&n.commonJsModuleIndicator&&!((te=je.declarations)!=null&&te.some(Xf)))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&&tm(B)&&!(n.flags&33554432)&&Vn(n)!==Vn(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 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=Ft;break e}break;case 218:if(c&3&&a==="arguments"){je=Ft;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 Un=lR(n);Un&&(n=Un.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))&&k0(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}pb(n)&&(At=n),mt=n,n=rm(n)?e6(n)||n.parent:(Zm(n)||J4(n))&&dE(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&&ar(_e)&&_e.parent&&Su(_e.parent,!1))return _t;function Ln(){return rn&&!ge?(Ve(Mn,Mn&&rn.type&&QL(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),Lm(_)),!0):!1}if(je){if(u&&Ln())return}else{u&&r(()=>{if(!Mn||Mn.parent.kind!==331&&!ES(Mn,a,_)&&!Ln()&&!_A(Mn)&&!$1(Mn,a,c)&&!iv(Mn,a)&&!hA(Mn,a,c)&&!HD(Mn,a,c)&&!mg(Mn,a,c)){let $n,Un;if(_&&(Un=Xut(_),Un&&Ve(Mn,u,Lm(_),Un)),!Un&&M&&FD{var $n;if(Mn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Un=mf(je);(Un.flags&2||Un.flags&32||Un.flags&384)&&$s(Un,Mn)}if(je&&On&&(c&111551)===111551&&!(_e.flags&16777216)){let Un=ts(je);Nn(Un.declarations)&&oo(Un.declarations,Qn=>Uk(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&&!ir&&(c&111551)===111551){let Un=ts(gZ(je)),Qn=x_(sn);Un===Tr(sn)?Ve(Mn,f.Parameter_0_cannot_reference_itself,xs(sn.name)):Un.valueDeclaration&&Un.valueDeclaration.pos>sn.pos&&Qn.parent.locals&&W(Qn.parent.locals,Un.escapedName,c)===Un&&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)&&!_E(Mn)){let Un=kf(je,111551);if(Un){let Qn=Un.kind===281||Un.kind===278||Un.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),Un,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&&!a2(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?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 lm(n,a){return n.kind!==219&&n.kind!==218?e1(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 pb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Lm(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&&(rm(c.parent)?ET(c.parent):c.parent)===a)return!(rm(c.parent)&&Gr(c.parent.parent.tags,Xf))}return!1}function ES(n,a,c){if(!Fe(n)||n.escapedText!==a||Q6e(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=cr(g);if(_a(T,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Lm(c),Si(g)),!0;if(_===u&&!na(_)){let M=Qs(g).thisType;if(_a(M,a))return Ve(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Lm(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,pc(a)),!0):!1}function fg(n){switch(n.kind){case 80:case 211:return n.parent?fg(n.parent):void 0;case 233:if(Gl(n.expression))return n.expression;default:return}}function $1(n,a,c){let u=1920|(ar(n)?111551:0);if(c===u){let _=jl(yl(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(_a(Qs(_),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=jl(yl(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 j_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function iv(n,a){return j_(a)&&n.parent.kind===281?(Ve(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function HD(n,a,c){if(c&111551){if(j_(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=jl(yl(n,a,788544,void 0,void 0,!1)),_=u&&Ad(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):KD(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 KD(n,a){let c=Fn(n.parent,u=>$a(u)||hp(u)?!1:yp(u)||"quit");if(c&&c.members.length===1){let u=Qs(a);return!!(u.flags&1048576)&&eG(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 hA(n,a,c){if(c&111127){if(jl(yl(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&&jl(yl(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 $s(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(_=>YV(_)||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)),tm(B)&&(_=Ve(a,f.Enum_0_used_before_its_declaration,g))),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}}function SS(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 km(n){return n.declarations&&uI(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&&cR(n)||pr(n)&&Bl(n)===2&&cR(n)||Ls(n)&&pr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&qD(n.parent.right)||n.kind===304||n.kind===303&&qD(n.initializer)||n.kind===260&&N0(n)||n.kind===208&&N0(n.parent.parent)}function qD(n){return Y2(n)||ks(n)&&Z_(n)}function yA(n,a){let c=_b(n);if(c){let _=bR(c.expression).arguments[0];return Fe(c.name)?jl(_a(Bwe(_),c.name.escapedText)):void 0}if(Oi(n)||n.moduleReference.kind===283){let _=_u(n,mj(n)||IN(n)),g=xp(_);return ip(n,_,g,!1),g}let u=Z1(n.moduleReference,a);return LM(n,u),u}function LM(n,a){if(ip(n,void 0,a,!1)&&!n.isTypeOnly){let c=kf(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);Pa(Ve(n.moduleReference,_),Pr(c,g,T))}}function _r(n,a,c,u){let _=n.exports.get("export="),g=_?_a(cr(_),a,!0):n.exports.get(a),T=jl(g,u);return ip(c,g,T,!1),T}function id(n){return Ll(n)&&!n.isExportEquals||$r(n,2048)||Jd(n)||bh(n)}function Qi(n){return ss(n)?e.getModeForUsageLocation(Vn(n),n):void 0}function pf(n,a){return n===99&&a===1}function ov(n){return Qi(n)===99&&Sl(n.text,".json")}function U_(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=_r(a,"default",void 0,!0);return!(g&>(g.declarations,id)||_r(a,ml("__esModule"),void 0,c))}return lu(n)?typeof n.externalModuleIndicator!="object"&&!_r(a,ml("__esModule"),void 0,c):av(a)}function lr(n,a){let c=_u(n,n.parent.moduleSpecifier);if(c)return vA(c,n,a)}function vA(n,a,c){var u;let _;bN(n)?_=n:_=_r(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Yi),T=VE(a);if(!T)return _;let M=ov(T),W=U_(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 vh(a)?qc(n,a):bA(n,n,a,SI(a)&&a.propertyName||a.name);else if(W||M){let V=xp(n,c)||jl(n,c);return ip(a,n,V,!1),V}return ip(a,_,void 0,!1),_}function VE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Eh(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!!(Yl(W)&&W.moduleSpecifier&&((te=(V=_u(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 Ch(n,a){let c=n.parent.parent.moduleSpecifier,u=_u(n,c),_=op(u,c,a,!1);return ip(n,u,_,!1),_}function wm(n,a){let c=n.parent.moduleSpecifier,u=c&&_u(n,c),_=c&&op(u,c,a,!1);return ip(n,u,_,!1),_}function TS(n,a){if(n===ct&&a===ct)return ct;if(n.flags&790504)return n;let c=Ka(n.flags|a.flags,n.escapedName);return R.assert(n.declarations||a.declarations),c.declarations=g0(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 AS(n,a,c,u){var _;if(n.flags&1536){let g=Rp(n).get(a.escapedText),T=jl(g,u),M=(_=qi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return ip(c,g,T,!1,M,a.escapedText),T}}function mb(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return jl(_a(Ti(c),a))}}function ey(n,a,c=!1){var u;let _=mj(n)||n.moduleSpecifier,g=_u(n,_),T=!kr(a)&&a.propertyName||a.name;if(!Fe(T))return;let M=T.escapedText==="default"&&q,W=op(g,_,!1,M);if(W&&T.escapedText){if(bN(g))return g;let V;g&&g.exports&&g.exports.get("export=")?V=_a(cr(W),T.escapedText,!0):V=mb(W,T.escapedText),V=jl(V,c);let te=AS(W,T,a,c);if(te===void 0&&T.escapedText==="default"){let _e=(u=g.declarations)==null?void 0:u.find(Yi);(ov(_)||U_(_e,g,c,_))&&(te=xp(g,c)||jl(g,c))}let ye=te&&V&&te!==V?TS(V,te):te||V;return ye||bA(g,W,n,T),ye}}function bA(n,a,c,u){var _;let g=jp(n,c),T=xs(u),M=Ree(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):Om(c,u,T,n,g)}function Om(n,a,c,u,_){var g,T;let M=(T=(g=ri(u.valueDeclaration,dh))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),W=u.exports;if(M){let V=W?.get("export=");if(V)a_(V,M)?jE(n,a,c,_):Ve(a,f.Module_0_has_no_exported_member_1,_,c);else{let te=W?Gr(uge(W),_e=>!!a_(_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 jE(n,a,c,u){if(z>=5){let _=hh(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(ar(n)){let _=hh(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 _=hh(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(Zu(n)&&vr(n.propertyName||n.name)==="default"){let T=VE(n),M=T&&_u(n,T);if(M)return vA(M,n,a)}let c=Xa(n)?x_(n):n.parent.parent.parent,u=_b(c),_=ey(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Fe(g)?jl(_a(cr(_),g.escapedText),a):(ip(n,void 0,_,!1),_)}function _b(n){if(Oi(n)&&n.initializer&&kr(n.initializer))return n.initializer}function Q1(n,a){if(S_(n.parent)){let c=xp(n.parent.symbol,a);return ip(n,void 0,c,!1),c}}function UE(n,a,c){if(vr(n.propertyName||n.name)==="default"){let _=VE(n),g=_&&_u(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 ip(n,void 0,u,!1),u}function XD(n,a){let c=Ll(n)?n.expression:n.right,u=IS(c,a);return ip(n,void 0,u,!1),u}function IS(n,a){if(ed(n))return nc(n).symbol;if(!Yu(n)&&!Gl(n))return;let c=js(n,901119,!0,a);return c||(nc(n),Qr(n).resolvedSymbol)}function EA(n,a){if(pr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return IS(n.parent.right,a)}function Vp(n,a=!1){switch(n.kind){case 271:case 260:return yA(n,a);case 273:return lr(n,a);case 274:return Ch(n,a);case 280:return wm(n,a);case 276:case 208:return _g(n,a);case 281:return UE(n,901119,a);case 277:case 226:return XD(n,a);case 270:return Q1(n,a);case 304:return js(n.name,901119,!0,a);case 303:return IS(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 jl(n,a){return!a&&SA(n)?Wc(n):n}function Wc(n){R.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=qi(n);if(a.aliasTarget)a.aliasTarget===Rt&&(a.aliasTarget=ct);else{a.aliasTarget=Rt;let c=km(n);if(!c)return R.fail();let u=Vp(c);a.aliasTarget===Rt?a.aliasTarget=u||ct:Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return a.aliasTarget}function TA(n){if(qi(n).aliasTarget!==Rt)return Wc(n)}function Ad(n,a,c){let u=a&&kf(n),_=u&&Yl(u),g=u&&(_?_u(u.moduleSpecifier,u.moduleSpecifier,!0):Wc(u.symbol)),T=_&&g?Nh(g):void 0,M=c?0:n.flags,W;for(;n.flags&2097152;){let V=mf(Wc(n));if(!_&&V===g||T?.get(V.escapedName)===V)break;if(V===ct)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 ip(n,a,c,u,_,g){if(!n||kr(n))return!1;let T=Tr(n);if(aE(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 HE(M,a,u)||HE(M,c,u)}function HE(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,aE);n.typeOnlyDeclaration=g??qi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function kf(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?jl(Nh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Wc(c.typeOnlyDeclaration.symbol);return Ad(u)&a?c.typeOnlyDeclaration:void 0}}function hb(n){if(!ft)return;let a=Tr(n),c=Wc(a);c&&(c===ct||Ad(a,!0)&111551&&!nW(c))&&gb(a)}function gb(n){R.assert(ft);let a=qi(n);if(!a.referenced){a.referenced=!0;let c=km(n);if(!c)return R.fail();nR(c)&&Ad(jl(n))&111551&&nc(c.moduleReference)}}function od(n){let a=qi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function Z1(n,a){return n.kind===80&&GN(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 jp(n,a){return n.parent?jp(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=zp(n),c=yl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Au(a.parent);){let u=cr(c);if(c=_a(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function js(n,a,c,u,_){if(zl(n))return;let g=1920|(ar(n)?a&111551:0),T;if(n.kind===80){let M=a===g||Xs(n)?f.Cannot_find_namespace_0:L8e(zp(n)),W=ar(n)&&!Xs(n)?YD(n,a):void 0;if(T=ts(yl(_||n,n.escapedText,a,c||W?void 0:M,n,!0,!1)),!T)return ts(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||zl(W))return;if(V===ct)return V;if(V.valueDeclaration&&ar(V.valueDeclaration)&&uu(B)!==100&&Oi(V.valueDeclaration)&&V.valueDeclaration.initializer&&gFe(V.valueDeclaration.initializer)){let te=V.valueDeclaration.initializer.arguments[0],ye=_u(te,te);if(ye){let _e=xp(ye);_e&&(V=_e)}}if(T=ts(Uu(Rp(V),W.escapedText,a)),!T&&V.flags&2097152&&(T=ts(Uu(Rp(Wc(V)),W.escapedText,a))),!T){if(!c){let te=jp(V),ye=xs(W),_e=Ree(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&&!kR(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,pp(je));return}if(a&1920&&Au(n.parent)){let At=ts(Uu(Rp(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."),!Xs(n)&&Yu(n)&&(T.flags&2097152||n.parent.kind===277)&&ip(xj(n),T,void 0,!0),T.flags&a||u?T:Wc(T)}function YD(n,a){if(DZ(n.parent)){let c=KE(n.parent);if(c)return yl(c,n.escapedText,a,void 0,n,!0)}}function KE(n){if(Fn(n,_=>jx(_)||_.flags&16777216?Xf(_):"quit"))return;let c=ET(n);if(c&&td(c)&&B2(c.expression)){let _=Tr(c.expression.left);if(_)return xS(_)}if(c&&ks(c)&&B2(c.parent)&&td(c.parent.parent)){let _=Tr(c.parent.left);if(_)return xS(_)}if(c&&(Sm(c)||_c(c))&&pr(c.parent.parent)&&Bl(c.parent.parent)===6){let _=Tr(c.parent.parent.left);if(_)return xS(_)}let u=uE(n);if(u&&Yo(u)){let _=Tr(u);return _&&_.valueDeclaration}}function xS(n){let a=n.parent.valueDeclaration;return a?(xN(a)?DI(a):pT(a)?w2(a):void 0)||a:void 0}function kM(n){let a=n.valueDeclaration;if(!a||!ar(a)||n.flags&524288||cE(a,!1))return;let c=Oi(a)?w2(a):DI(a);if(c){let u=ff(c);if(u)return bve(u,n)}}function _u(n,a,c){let _=uu(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)?H_(n,a.text,c,a,u):void 0}function H_(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=$C(a,"@types/");Ve(u,Qn,xo,a)}let rn=bZ(a,!0);if(rn)return rn;let sn=Vn(n),ir=ss(n)?n:((g=Xl(n)?n:n.parent&&Xl(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,Wp))==null?void 0:M.arguments[0])||((W=Fn(n,Lc))==null?void 0:W.moduleSpecifier)||((V=Fn(n,lE))==null?void 0:V.moduleReference.expression)||((te=Fn(n,Yl))==null?void 0:te.moduleSpecifier),Mn=ir&&ss(ir)?e.getModeForUsageLocation(sn,ir):sn.impliedNodeFormat,an=uu(B),On=(ye=e.getResolvedModule(sn,a,Mn))==null?void 0:ye.resolvedModule,Ln=On&&SJ(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,Lc))==null?void 0:_e.importClause)||Fn(n,Km(nd,Yl));(Qn&&!Qn.isTypeOnly||Fn(n,Wp))&&Ve(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Un(R.checkDefined(g6(a))))}else if(On.resolvedUsingTsExtension&&!ZR(B,sn.fileName)){let Qn=((je=Fn(n,Lc))==null?void 0:je.importClause)||Fn(n,Km(nd,Yl));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&&!YN(On.extension)&&ex(!1,u,sn,Mn,On,a),an===3||an===99){let Qn=sn.impliedNodeFormat===1&&!Fn(n,Wp)||!!Fn(n,nd),xo=Fn(n,vo=>og(vo)||Yl(vo)||Lc(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,Dc=Wo===".ts"?".mts":Wo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?Dc?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,Dc,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")):Dc?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,Dc):vo=Fo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Za.add(Mg(Vn(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 ts($n.symbol)}c&&Ve(u,f.File_0_is_not_a_module,$n.fileName);return}if(om){let Qn=YG(om,xo=>xo.pattern,a);if(Qn){let xo=mu&&mu.get(a);return ts(xo||Qn.symbol)}}if(On&&!YN(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 ex(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=kp(a)&&!yI(a),xo=an===3||an===99;if(!hE(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=jD.find(([fo,Dc])=>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 Un(Qn){let xo=mk(a,Qn);if(x6(z)||Mn===99){let vo=Sd(a)&&ZR(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 ex(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 xp(n,a){if(n?.exports){let c=jl(n.exports.get("export="),a),u=tx(ts(c),ts(n));return ts(u)||n}}function tx(n,a){if(!n||n===ct||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)?am(u.exports.get(g),_):_)}),u===n&&(qi(u).resolvedExports=void 0,qi(u).resolvedMembers=void 0),qi(u).cjsExportMerged=u,c.cjsExportMerged=u}function op(n,a,c,u){var _;let g=xp(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!ul(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(Lc(T)&&aR(T)||Wp(T)){let M=Wp(T)?T.arguments[0]:T.moduleSpecifier,W=cr(g),V=_Fe(W,g,n,M);if(V)return nx(g,V,T);let te=(_=n?.declarations)==null?void 0:_.find(Yi),ye=te&&pf(Qi(M),te.impliedNodeFormat);if(hh(B)||ye){let _e=i5(W,0);if((!_e||!_e.length)&&(_e=i5(W,1)),_e&&_e.length||_a(W,"default",!0)||ye){let je=W.flags&3670016?hFe(W,g,n,M):Eve(g,g.parent);return nx(g,je,T)}}}}return g}function nx(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 _=u_(a);return u.links.type=Ps(u,_.members,Ye,Ye,_.indexInfos),u}function av(n){return n.exports.get("export=")!==void 0}function xA(n){return uge(Nh(n))}function $D(n){let a=xA(n),c=xp(n);if(c!==n){let u=cr(c);yb(u)&&Ur(a,_s(u))}return a}function QD(n,a){Nh(n).forEach((_,g)=>{CS(g)||a(_,g)});let u=xp(n);if(u!==n){let _=cr(u);yb(_)&&yat(_,(g,T)=>{a(g,T)})}}function RA(n,a){let c=Nh(a);if(c)return c.get(n)}function ZD(n,a){let c=RA(n,a);if(c)return c;let u=xp(a);if(u===a)return;let _=cr(u);return yb(_)?_a(_,n):void 0}function yb(n){return!(n.flags&402784252||Lr(n)&1||Vf(n)||wa(n))}function Rp(n){return n.flags&6256?Xhe(n,"resolvedExports"):n.flags&1536?Nh(n):n.exports||K}function Nh(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 eC(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:pc(u.moduleSpecifier)});else if(c&&u&&T&&jl(T)!==jl(_)){let M=c.get(g);M.exportsWithDuplicate?M.exportsWithDuplicate.push(u):M.exportsWithDuplicate=[u]}})}function DA(n){let a=[],c,u=new Set;n=xp(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&&vf(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=_u(je,je.moduleSpecifier),At=g(mt,je,W||je.isTypeOnly);eC(ye,At,_e,je)}_e.forEach(({exportsWithDuplicate:je},mt)=>{if(!(mt==="export="||!(je&&je.length)||V.has(mt)))for(let At of je)Za.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)))}),eC(V,ye)}return M?.isTypeOnly&&(c??(c=new Map),V.forEach((ye,_e)=>c.set(_e,M))),V}}function ts(n){let a;return n&&n.mergeId&&(a=BD[n.mergeId])?a:n}function Tr(n){return ts(n.symbol&&gZ(n.symbol))}function ff(n){return S_(n)?Tr(n):void 0}function Cu(n){return ts(n.parent&&gZ(n.parent))}function RS(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 tC(n,a){let c=Vn(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(Xs(M))continue;let W=_u(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(!ac(M))continue;let W=Tr(M);hg(W,n)&&(g=Tn(g,W))}return _.extendedContainers=g||Ye}function JE(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(M_(te.parent)&&te.parent.parent&&xp(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)&&Gl(te.parent.left.expression))return Qh(te.parent.left)||yT(te.parent.left.expression)?Tr(Vn(te)):(nc(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&&tC(n,a),je=DS(te,c);if(a&&te.flags&ry(c)&&vb(te,a,1920,!1))return Tn(bo(bo([te],ye),_e),je);let mt=!(te.flags&ry(c))&&te.flags&788968&&Qs(te).flags&524288&&c===111551?PS(a,rn=>Gc(rn,sn=>{if(sn.flags&ry(c)&&cr(sn)===Qs(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 DS(n,a){let c=!!Nn(n.declarations)&&Va(n.declarations);if(a&111551&&c&&c.parent&&Oi(c.parent)&&(Ma(c)&&c===c.parent.initializer||yp(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&&a_(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&&a_(c,a))return n;let u=Rp(n),_=u.get(a.escapedName);return _&&a_(_,a)?_:Gc(u,g=>{if(a_(g,a))return g})}function a_(n,a){if(ts(jl(ts(n)))===ts(jl(ts(a))))return n}function mf(n){return ts(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&&Kf(c.body))return c}function gg(n){var a;let c=new p(Yt,n);return m++,c.id=m,(a=or)==null||a.recordType(c),c}function yg(n,a){let c=gg(n);return c.symbol=a,c}function rx(n){return new p(Yt,n)}function lc(n,a,c=0,u){nC(a,u);let _=gg(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function nC(n,a){let c=`${n},${a??""}`;lt.has(c)&&R.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),lt.add(c)}function wf(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 Ph(){return ti(Oo(IK.keys(),Ku))}function _f(n){return yg(262144,n)}function CS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function qE(n){let a;return n.forEach((c,u)=>{ix(c,u)&&(a||(a=[])).push(c)}),a||Ye}function ix(n,a){return!CS(a)&&Wm(n)}function NA(n){let a=qE(n),c=TZ(n);return c?bo(a,[c]):a}function hf(n,a,c,u,_){let g=n;return g.members=a,g.properties=Ye,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==K&&(g.properties=qE(a)),g}function Ps(n,a,c,u,_){return hf(wf(16,n),a,c,u,_)}function NS(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:Ye,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function PS(n,a){let c;for(let u=n;u;u=u.parent){if(dh(u)&&u.locals&&!Dh(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!Op(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 vb(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=qi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),M=PS(a,(sn,ir,Mn,an)=>an),W=`${u?0:1}|${M&&is(M)}|${c}`;if(T.has(W))return T.get(W);let V=va(n),te=_.get(V);te||_.set(V,te=[]);let ye=PS(a,_e);return T.set(W,ye),ye;function _e(sn,ir,Mn){if(!vf(te,sn))return;let an=At(sn,ir,Mn);return te.pop(),an}function je(sn,ir){return!XE(sn,a,ir)||!!vb(sn.parent,a,ry(ir),u,_)}function mt(sn,ir,Mn){return(n===(ir||sn)||ts(n)===ts(ir||sn))&&!gt(sn.declarations,Zd)&&(Mn||je(ts(sn),c))}function At(sn,ir,Mn){return mt(sn.get(n.escapedName),void 0,ir)?[n]:Gc(sn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(S6(On)&&a&&ac(Vn(a)))&&(!u||gt(On.declarations,lE))&&(!Mn||!gt(On.declarations,mie))&&(ir||!ul(On,281))){let Ln=Wc(On),$n=rn(On,Ln,ir);if($n)return $n}if(On.escapedName===n.escapedName&&On.exportSymbol&&mt(ts(On.exportSymbol),void 0,ir))return[n]})||(sn===be?rn(nt,nt,ir):void 0)}function rn(sn,ir,Mn){if(mt(sn,ir,Mn))return[sn];let an=Rp(ir),On=an&&_e(an,!0);if(On&&je(sn,ry(c)))return[sn].concat(On)}}function XE(n,a,c){let u=!1;return PS(a,_=>{let g=ts(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!ul(g,281);return g=T?Wc(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 ae(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=vb(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=JE(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 wi(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:ar(a)?a:void 0}}return{accessibility:1,errorSymbolName:Si(n,a,c)}}return{accessibility:0}}function Zi(n){let a=Fn(n,ma);return a&&Tr(a)}function ma(n){return Ld(n)||n.kind===312&&Op(n)}function Zd(n){return DF(n)||n.kind===312&&Op(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(!s_(g)){let W=gA(g);if(W&&!$r(W,32)&&s_(W.parent))return _(g,W);if(Oi(g)&&Ml(g.parent.parent)&&!$r(g.parent.parent,32)&&s_(g.parent.parent.parent))return _(g,g.parent.parent);if(CF(g)&&!$r(g,32)&&s_(g.parent))return _(g,g);if(Xa(g)){if(n.flags&2097152&&ar(g)&&((T=g.parent)!=null&&T.parent)&&Oi(g.parent.parent)&&((M=g.parent.parent.parent)!=null&&M.parent)&&Ml(g.parent.parent.parent.parent)&&!$r(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&s_(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let V=Fn(g,Ml);return $r(V,32)?!0:s_(V.parent)?_(g,V):!1}}return!1}return!0}function _(g,T){return a&&(Qr(g).isVisible=!0,c=xg(c,T)),!0}}function Of(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 bb(n,a){let c=Of(n),u=zp(n),_=yl(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&W0(u)&&wi(Tr(wu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&Nu(_,!0)||{accessibility:1,errorSymbolName:pc(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():yN(M);function M(W){let V=T(n,c,a,g),te=a?.kind===312?eJ():aS(),ye=a&&Vn(a);return te.writeNode(4,V,ye,W),W}}function Mh(n,a,c=0,u,_){return _?g(_).getText():yN(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=Mw(),te=a&&Vn(a);return V.writeNode(4,W,te,Bj(T)),T}}function jn(n,a,c=1064960,u=rk("")){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?aS():ZK(),M=a&&Vn(a);T.writeNode(4,g,M,u);let W=u.getText(),V=_?q6*2:bk*2;return V&&W&&W.length>=V?W.substr(0,V-3)+"...":W}function ox(n,a){let c=Sb(n.symbol)?jn(n,n.symbol.valueDeclaration):jn(n),u=Sb(a.symbol)?jn(a,a.symbol.valueDeclaration):jn(a);return c===u&&(c=Eb(n),u=Eb(a)),[c,u]}function Eb(n){return jn(n,void 0,64)}function Sb(n){return n&&!!n.valueDeclaration&&ht(n.valueDeclaration)&&!Bf(n.valueDeclaration)}function PA(n=0){return n&848330095}function MS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Ff(n.symbol)||!!(n.flags&524288)&&!!(Lr(n)&16777216))}function K_(){return{typeToTypeNode:(at,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>u(at,ui)),indexInfoToIndexSignatureDeclaration:(at,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>te(at,ui,void 0)),signatureToSignatureDeclaration:(at,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>ye(at,Te,Ai)),symbolToEntityName:(at,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>fo(at,Ai,Te,!1)),symbolToExpression:(at,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>Dc(at,Ai,Te)),symbolToTypeParameterDeclarations:(at,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>On(at,ui)),symbolToParameterDeclaration:(at,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>rn(at,ui)),typeParameterToDeclaration:(at,Te,Cn,Dr)=>a(Te,Cn,Dr,ui=>mt(at,ui)),symbolTableToDeclarationStatements:(at,Te,Cn,Dr,ui)=>a(Te,Cn,Dr,Ai=>vl(at,Ai,ui)),symbolToNode:(at,Te,Cn,Dr,ui)=>a(Cn,Dr,ui,Ai=>n(at,Ai,Te))};function n(at,Te,Cn){if(Te.flags&1073741824){if(at.valueDeclaration){let ui=No(at.valueDeclaration);if(ui&&$a(ui))return ui}let Dr=qi(at).nameType;if(Dr&&Dr.flags&9216)return Te.enclosingDeclaration=Dr.symbol.valueDeclaration,L.createComputedPropertyName(Dc(Dr.symbol,Te,Cn))}return Dc(at,Te,Cn)}function a(at,Te,Cn,Dr){R.assert(at===void 0||(at.flags&16)===0);let ui=Cn?.trackSymbol?Cn.moduleResolverHost:Te&134217728?QGe(e):void 0,Ai={enclosingDeclaration:at,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 xK(Ai,Cn,ui);let Ii=Dr(Ai);return Ai.truncating&&Ai.flags&1&&Ai.tracker.reportTruncationError(),Ai.encounteredError?void 0:Ii}function c(at){return at.truncating?at.truncating:at.truncating=at.approximateLength>(at.flags&1?q6:bk)}function u(at,Te){let Cn=Te.flags,Dr=_(at,Te);return Te.flags=Cn,Dr}function _(at,Te){var Cn,Dr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=Te.flags&8388608;if(Te.flags&=-8388609,!at){if(!(Te.flags&262144)){Te.encounteredError=!0;return}return Te.approximateLength+=3,L.createKeywordTypeNode(133)}if(Te.flags&536870912||(at=p_(at)),at.flags&1)return at.aliasSymbol?L.createTypeReferenceNode(Qn(at.aliasSymbol),W(at.aliasTypeArguments,Te)):at===Bt?pP(L.createKeywordTypeNode(133),3,"unresolved"):(Te.approximateLength+=3,L.createKeywordTypeNode(at===dn?141:133));if(at.flags&2)return L.createKeywordTypeNode(159);if(at.flags&4)return Te.approximateLength+=6,L.createKeywordTypeNode(154);if(at.flags&8)return Te.approximateLength+=6,L.createKeywordTypeNode(150);if(at.flags&64)return Te.approximateLength+=6,L.createKeywordTypeNode(163);if(at.flags&16&&!at.aliasSymbol)return Te.approximateLength+=7,L.createKeywordTypeNode(136);if(at.flags&1056){if(at.symbol.flags&8){let An=Cu(at.symbol),Zr=xo(An,Te,788968);if(Qs(An)===at)return Zr;let Gi=bl(at.symbol);return $p(Gi,0)?bi(Zr,L.createTypeReferenceNode(Gi,void 0)):og(Zr)?(Zr.isTypeOf=!0,L.createIndexedAccessTypeNode(Zr,L.createLiteralTypeNode(L.createStringLiteral(Gi)))):xf(Zr)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(Zr.typeName),L.createLiteralTypeNode(L.createStringLiteral(Gi))):R.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return xo(at.symbol,Te,788968)}if(at.flags&128)return Te.approximateLength+=at.value.length+2,L.createLiteralTypeNode(dr(L.createStringLiteral(at.value,!!(Te.flags&268435456)),16777216));if(at.flags&256){let An=at.value;return Te.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(at.flags&2048)return Te.approximateLength+=B0(at.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(at.value));if(at.flags&512)return Te.approximateLength+=at.intrinsicName.length,L.createLiteralTypeNode(at.intrinsicName==="true"?L.createTrue():L.createFalse());if(at.flags&8192){if(!(Te.flags&1048576)){if(ut(at.symbol,Te.enclosingDeclaration))return Te.approximateLength+=6,xo(at.symbol,Te,111551);Te.tracker.reportInaccessibleUniqueSymbolError&&Te.tracker.reportInaccessibleUniqueSymbolError()}return Te.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(at.flags&16384)return Te.approximateLength+=4,L.createKeywordTypeNode(116);if(at.flags&32768)return Te.approximateLength+=9,L.createKeywordTypeNode(157);if(at.flags&65536)return Te.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(at.flags&131072)return Te.approximateLength+=5,L.createKeywordTypeNode(146);if(at.flags&4096)return Te.approximateLength+=6,L.createKeywordTypeNode(155);if(at.flags&67108864)return Te.approximateLength+=6,L.createKeywordTypeNode(151);if(iP(at))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&&at.aliasSymbol&&(Te.flags&16384||ae(at.aliasSymbol,Te.enclosingDeclaration))){let An=W(at.aliasTypeArguments,Te);return CS(at.aliasSymbol.escapedName)&&!(at.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Nn(An)===1&&at.aliasSymbol===qo.symbol?L.createArrayTypeNode(An[0]):xo(at.aliasSymbol,Te,788968,An)}let Ai=Lr(at);if(Ai&4)return R.assert(!!(at.flags&524288)),at.node?Xt(at,Wn):Wn(at);if(at.flags&262144||Ai&3){if(at.flags&262144&&zo(Te.inferTypeParameters,at)){Te.approximateLength+=bl(at.symbol).length+6;let Zr,Gi=Pu(at);if(Gi){let co=Uwe(at,!0);co&&py(Gi,co)||(Te.approximateLength+=9,Zr=Gi&&u(Gi,Te))}return L.createInferTypeNode(je(at,Te,Zr))}if(Te.flags&4&&at.flags&262144){let Zr=Wo(at,Te);return Te.approximateLength+=vr(Zr).length,L.createTypeReferenceNode(L.createIdentifier(vr(Zr)),void 0)}if(at.symbol)return xo(at.symbol,Te,788968);let An=(at===de||at===$)&&w&&w.symbol?(at===$?"sub-":"super-")+bl(w.symbol):"?";return L.createTypeReferenceNode(L.createIdentifier(An),void 0)}if(at.flags&1048576&&at.origin&&(at=at.origin),at.flags&3145728){let An=at.flags&1048576?rC(at.types):at.types;if(Nn(An)===1)return u(An[0],Te);let Zr=W(An,Te,!0);if(Zr&&Zr.length>0)return at.flags&1048576?L.createUnionTypeNode(Zr):L.createIntersectionTypeNode(Zr);!Te.encounteredError&&!(Te.flags&262144)&&(Te.encounteredError=!0);return}if(Ai&48)return R.assert(!!(at.flags&524288)),Qt(at);if(at.flags&4194304){let An=at.type;Te.approximateLength+=6;let Zr=u(An,Te);return L.createTypeOperatorNode(143,Zr)}if(at.flags&134217728){let An=at.texts,Zr=at.types,Gi=L.createTemplateHead(An[0]),co=L.createNodeArray(mn(Zr,(la,bc)=>L.createTemplateLiteralTypeSpan(u(la,Te),(bcIi(An));if(at.flags&33554432){let An=u(at.baseType,Te),Zr=UM(at)&&Age("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=_f(Ka(262144,"T")),as=Wo(Cl,Te),Cc=L.createTypeReferenceNode(as);Te.approximateLength+=37;let Ks=UA(An.root.checkType,Cl,An.mapper),g_=Te.inferTypeParameters;Te.inferTypeParameters=An.root.inferTypeParameters;let Ze=u(io(An.root.extendsType,Ks),Te);Te.inferTypeParameters=g_;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(Cc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(as)),u(An.checkType,Te),L.createConditionalTypeNode(Cc,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(o0(An)),bc=zr(a0(An));return L.createConditionalTypeNode(Zr,co,la,bc)}function zr(An){var Zr,Gi,co;return An.flags&1048576?(Zr=Te.visitedTypes)!=null&&Zr.has(gu(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!!C8(An)}function ot(An){return!!An.target&&Ar(An.target)&&!Ar(An)}function wt(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,bc,Cl=!dC(An)&&!(wA(An).flags&2)&&Te.flags&4&&!(gf(An).flags&262144&&((Zr=Pu(gf(An)))==null?void 0:Zr.flags)&4194304);if(dC(An)){if(ot(An)&&Te.flags&4){let vt=_f(Ka(262144,"T")),$t=Wo(vt,Te);bc=L.createTypeReferenceNode($t)}la=L.createTypeOperatorNode(143,bc||u(wA(An),Te))}else if(Cl){let vt=_f(Ka(262144,"T")),$t=Wo(vt,Te);bc=L.createTypeReferenceNode($t),la=bc}else la=u(gf(An),Te);let as=je(d_(An),Te,la),Cc=An.declaration.nameType?u(lv(An),Te):void 0,Ks=u(Gb(ly(An),!!(Oh(An)&4)),Te),g_=L.createMappedTypeNode(Gi,as,Cc,co,Ks,void 0);Te.approximateLength+=10;let Ze=dr(g_,1);if(ot(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(bc.typeName),vt.flags&2?void 0:u(vt,Te))),Ze,L.createKeywordTypeNode(146))}else if(Cl)return L.createConditionalTypeNode(u(gf(An),Te),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(bc.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(e1(Ks)&&Ti(Ks)===An){let g_=Ol(Te,Ks);if(g_)return g_}return(Zr=Te.visitedTypes)!=null&&Zr.has(co)?g(Te):Xt(An,ln)}let as=MS(An)?788968:111551;if(Z_(la.valueDeclaration))return xo(la,Te,as);if(la.flags&32&&!pZ(la)&&!(la.valueDeclaration&&di(la.valueDeclaration)&&Te.flags&2048&&(!Tc(la.valueDeclaration)||wi(la,Te.enclosingDeclaration,as,!1).accessibility!==0))||la.flags&896||bc())return xo(la,Te,as);if((Gi=Te.visitedTypes)!=null&&Gi.has(co)){let Cc=KB(An);return Cc?xo(Cc,Te,788968):g(Te)}else return Xt(An,ln)}else return ln(An);function bc(){var Cl;let as=!!(la.flags&8192)&>(la.declarations,Ks=>na(Ks)),Cc=!!(la.flags&16)&&(la.parent||gn(la.declarations,Ks=>Ks.parent.kind===312||Ks.parent.kind===268));if(as||Cc)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 bc=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?"+":"")+va(An.symbol):void 0;Te.visitedTypes||(Te.visitedTypes=new Set),as&&!Te.symbolDepth&&(Te.symbolDepth=new Map);let Cc=Te.enclosingDeclaration&&Qr(Te.enclosingDeclaration),Ks=`${gu(An)}|${Te.flags}`;Cc&&(Cc.serializedTypes||(Cc.serializedTypes=new Map));let g_=(Gi=Cc?.serializedTypes)==null?void 0:Gi.get(Ks);if(g_)return(co=g_.trackedSymbols)==null||co.forEach(([Br,zi,wo])=>Te.tracker.trackSymbol(Br,zi,wo)),g_.truncating&&(Te.truncating=!0),Te.approximateLength+=g_.addedLength,bn(g_.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(bc);let vt=Te.trackedSymbols;Te.trackedSymbols=void 0;let $t=Te.approximateLength,Kn=Zr(An),Ir=Te.approximateLength-$t;return!Te.reportedDiagnostic&&!Te.encounteredError&&((la=Cc?.serializedTypes)==null||la.set(Ks,{node:Kn,truncating:Te.truncating,addedLength:Ir,trackedSymbols:Te.trackedSymbols})),Te.visitedTypes.delete(bc),as&&Te.symbolDepth.set(as,Ze),Te.trackedSymbols=vt,Kn;function bn(Br){return!Xs(Br)&&Ro(Br)===Br?Br:st(L.cloneNode(Sn(Br,bn,void 0,hr)),Br)}function hr(Br,zi,wo,ua,pa){return Br&&Br.length===0?st(L.createNodeArray(void 0,Br.hasTrailingComma),Br):zn(Br,zi,wo,ua,pa)}}function ln(An){if(Hu(An)||An.containsError)return wt(An);let Zr=u_(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?vv(Zr.properties,Cc=>!(Cc.flags&4194304)):Nn(Zr.properties))&&Cl.push(NS(Zr)),u(ha(Cl),Te)}let co=Te.flags;Te.flags|=4194304;let la=lo(Zr);Te.flags=co;let bc=L.createTypeLiteralNode(la);return Te.approximateLength+=2,dr(bc,Te.flags&1024?0:1),bc}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=Pc(Zr,(Gi,co)=>Gb(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 Cc=(An.target.typeParameters||Ye).length;bc=W(Zr.slice(co,Cc),Te)}let Cl=Te.flags;Te.flags|=16;let as=xo(An.symbol,Te,788968,bc);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 bc of la)co=co?L.createQualifiedName(co,bc):bc;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 bc of la)co=L.createQualifiedName(co,bc);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;Af(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 ot;T(at,Te)?ot=g(Te):(ui&&(Te.reverseMappedStack||(Te.reverseMappedStack=[]),Te.reverseMappedStack.push(at)),ot=Ai?Es(Te,Ai,at,Ii):L.createKeywordTypeNode(133),ui&&Te.reverseMappedStack.pop());let wt=h_(at)?[L.createToken(148)]:void 0;wt&&(Te.approximateLength+=9);let Qt=L.createPropertySignature(wt,zr,Ar,ot);Cn.push(Xt(Qt));function Xt(ln){var Wn;let bi=(Wn=at.declarations)==null?void 0:Wn.find(pi=>pi.kind===355);if(bi){let pi=i2(bi.comment);pi&&gE(ln,[{kind:3,text:`* * `+pi.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else at.valueDeclaration&&oc(ln,at.valueDeclaration);return ln}}function W(at,Te,Cn){if(gt(at)){if(c(Te))if(Cn){if(at.length>2)return[u(at[0],Te),L.createTypeReferenceNode(`... ${at.length-2} more ...`,void 0),u(at[at.length-1],Te)]}else return[L.createTypeReferenceNode("...",void 0)];let ui=!(Te.flags&64)?Xp():void 0,Ai=[],Ii=0;for(let zr of at){if(Ii++,c(Te)&&Ii+2{if(!Coe(Ar,([ot],[wt])=>V(ot,wt)))for(let[ot,wt]of Ar)Ai[wt]=u(ot,Te)}),Te.flags=zr}return Ai}}function V(at,Te){return at===Te||!!at.symbol&&at.symbol===Te.symbol||!!at.aliasSymbol&&at.aliasSymbol===Te.aliasSymbol}function te(at,Te,Cn){let Dr=Yre(at)||"x",ui=u(at.keyType,Te),Ai=L.createParameterDeclaration(void 0,void 0,Dr,void 0,ui,void 0);return Cn||(Cn=u(at.type||G,Te)),!at.type&&!(Te.flags&2097152)&&(Te.encounteredError=!0),Te.approximateLength+=Dr.length+4,L.createIndexSignature(at.isReadonly?[L.createToken(148)]:void 0,[Ai],Cn)}function ye(at,Te,Cn,Dr){var ui;let Ai=Cn.flags&256;Ai&&(Cn.flags&=-257),Cn.approximateLength+=3;let Ii,zr;Cn.flags&32&&at.target&&at.mapper&&at.target.typeParameters?zr=at.target.typeParameters.map(lo=>u(io(lo,at.mapper),Cn)):Ii=at.typeParameters&&at.typeParameters.map(lo=>mt(lo,Cn));let Ar=bwe(at,!0)[0],ot;if(Cn.enclosingDeclaration&&at.declaration&&at.declaration!==Cn.enclosingDeclaration&&!ar(at.declaration)&&(gt(Ar)||gt(at.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,Cc)=>{co.has(as)||(la=Tn(la,as),co.set(as,Cc))}),!la)return;let bc=ot;function Cl(){gn(la,as=>co.delete(as)),bc?.()}if(Gi)ot=Cl;else{let as=Sh.createBlock(Ye);Qr(as).fakeScopeForSignatureDeclaration=An,as.locals=co;let Cc=Cn.enclosingDeclaration;ja(as,Cc),Cn.enclosingDeclaration=as,ot=()=>{Cn.enclosingDeclaration=Cc,Cl()}}};var wt=lo;lo("params",An=>{for(let Zr of Ar)An(Zr.escapedName,Zr)}),Cn.flags&4&&lo("typeParams",An=>{for(let Zr of at.typeParameters??Ye){let Gi=Wo(Zr,Cn).escapedText;An(Gi,Zr.symbol)}})}let Qt=(gt(Ar,lo=>lo!==Ar[Ar.length-1]&&!!(Al(lo)&32768))?at.parameters:Ar).map(lo=>rn(lo,Cn,Te===176,Dr?.privateSymbolVisitor,Dr?.bundledImports)),Xt=Cn.flags&33554432?void 0:_e(at,Cn);Xt&&Qt.unshift(Xt);let ln,Wn=zf(at);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(at);lo&&!(Ai&&xt(lo))?ln=Oa(Cn,lo,at,Dr?.privateSymbolVisitor,Dr?.bundledImports):Ai||(ln=L.createKeywordTypeNode(133))}let bi=Dr?.modifiers;if(Te===185&&at.flags&4){let lo=D_(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=at.declaration)==null?void 0:ui.kind)===330&&at.declaration.parent.kind===346){let lo=pc(at.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(An=>An.replace(/^\s+/," ")).join(` `);pP(pi,3,lo,!0)}return ot?.(),pi}function _e(at,Te){if(at.thisParameter)return rn(at.thisParameter,Te);if(at.declaration&&ar(at.declaration)){let Cn=iF(at.declaration);if(Cn&&Cn.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,u(Ti(Cn.typeExpression),Te))}}function je(at,Te,Cn){let Dr=Te.flags;Te.flags&=-513;let ui=L.createModifiersFromModifierFlags(aye(at)),Ai=Wo(at,Te),Ii=FA(at),zr=Ii&&u(Ii,Te);return Te.flags=Dr,L.createTypeParameterDeclaration(ui,Ai,Cn,zr)}function mt(at,Te,Cn=Pu(at)){let Dr=Cn&&u(Cn,Te);return je(at,Te,Dr)}function At(at){let Te=ul(at,169);if(Te)return Te;if(!uh(at))return ul(at,348)}function rn(at,Te,Cn,Dr,ui){let Ai=At(at),Ii=cr(at);Ai&&c4e(Ai)&&(Ii=Bb(Ii));let zr=Es(Te,Ii,at,Te.enclosingDeclaration,Dr,ui),Ar=!(Te.flags&8192)&&Cn&&Ai&&xm(Ai)?mn(E0(Ai),L.cloneNode):void 0,wt=Ai&&qh(Ai)||Al(at)&32768?L.createToken(26):void 0,Qt=sn(at,Ai,Te),ln=Ai&&E8(Ai)||Al(at)&16384?L.createToken(58):void 0,Wn=L.createParameterDeclaration(Ar,wt,Qt,ln,zr,void 0);return Te.approximateLength+=bl(at).length+3,Wn}function sn(at,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):bl(at);function Dr(ui){return Ai(ui);function Ai(Ii){Cn.tracker.canTrackSymbol&&$a(Ii)&&qhe(Ii)&&ir(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)),Xs(zr)||(zr=L.cloneNode(zr)),dr(zr,16777217)}}}function ir(at,Te,Cn){if(!Cn.tracker.canTrackSymbol)return;let Dr=zp(at),ui=yl(Dr,Dr.escapedText,1160127,void 0,void 0,!0);ui&&Cn.tracker.trackSymbol(ui,Te,111551)}function Mn(at,Te,Cn,Dr){return Te.tracker.trackSymbol(at,Te.enclosingDeclaration,Cn),an(at,Te,Cn,Dr)}function an(at,Te,Cn,Dr){let ui;return!(at.flags&262144)&&(Te.enclosingDeclaration||Te.flags&64)&&!(Te.flags&134217728)?(ui=R.checkDefined(Ii(at,Cn,!0)),R.assert(ui&&ui.length>0)):ui=[at],ui;function Ii(zr,Ar,ot){let wt=vb(zr,Te.enclosingDeclaration,Ar,!!(Te.flags&128)),Qt;if(!wt||XE(wt[0],Te.enclosingDeclaration,wt.length===1?Ar:ry(Ar))){let ln=JE(wt?wt[0]:zr,Te.enclosingDeclaration,Ar);if(Nn(ln)){Qt=ln.map(pi=>gt(pi.declarations,Zd)?Un(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=")&&a_(pi.exports.get("export="),zr)){wt=lo;break}wt=lo.concat(wt||[hg(pi,zr)||zr]);break}}}}if(wt)return wt;if(ot||!(zr.flags&6144))return!ot&&!Dr&&gn(zr.declarations,Zd)?void 0:[zr];function Xt(ln,Wn){let bi=Qt[ln],pi=Qt[Wn];if(bi&&pi){let lo=kp(pi);return kp(bi)===lo?C3(bi)-C3(pi):lo?-1:1}return 0}}}function On(at,Te){let Cn;return RC(at).flags&524384&&(Cn=L.createNodeArray(mn(Nr(at),ui=>mt(ui,Te)))),Cn}function Ln(at,Te,Cn){var Dr;R.assert(at&&0<=Te&&TeOb(wt,Ar.links.mapper)),Cn)}else Ii=On(ui,Cn)}return Ii}function $n(at){return kT(at.objectType)?$n(at.objectType):at}function Un(at,Te,Cn){let Dr=ul(at,312);if(!Dr){let ot=Fl(at.declarations,wt=>CA(wt,at));ot&&(Dr=ul(ot,312))}if(Dr&&Dr.moduleName!==void 0)return Dr.moduleName;if(!Dr){if(Te.tracker.trackReferencedAmbientModule){let ot=Vr(at.declarations,Ld);if(Nn(ot))for(let wt of ot)Te.tracker.trackReferencedAmbientModule(wt,at)}if(AK.test(at.escapedName))return at.escapedName.substring(1,at.escapedName.length-1)}if(!Te.enclosingDeclaration||!Te.tracker.moduleResolverHost)return AK.test(at.escapedName)?at.escapedName.substring(1,at.escapedName.length-1):Vn(ej(at)).fileName;let ui=Vn(Nl(Te.enclosingDeclaration)),Ai=Cn||ui?.impliedNodeFormat,Ii=OP(ui.path,Ai),zr=qi(at),Ar=zr.specifierCache&&zr.specifierCache.get(Ii);if(!Ar){let ot=!!Cs(B),{moduleResolverHost:wt}=Te.tracker,Qt=ot?{...B,baseUrl:wt.getCommonSourceDirectory()}:B;Ar=Va(yIe(at,Yt,Qt,ui,wt,{importModuleSpecifierPreference:ot?"non-relative":"project-relative",importModuleSpecifierEnding:ot?"minimal":Ai===99?"js":void 0},{overrideImportMode:Cn})),zr.specifierCache??(zr.specifierCache=new Map),zr.specifierCache.set(Ii,Ar)}return Ar}function Qn(at){let Te=L.createIdentifier(Vi(at.escapedName));return at.parent?L.createQualifiedName(Qn(at.parent),Te):Te}function xo(at,Te,Cn,Dr){let ui=Mn(at,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,ot=Dr||Ln(ui,0,Te),wt=Vn(Nl(Te.enclosingDeclaration)),Qt=AF(ui[0]),Xt,ln;if((uu(B)===3||uu(B)===99)&&Qt?.impliedNodeFormat===99&&Qt.impliedNodeFormat!==wt?.impliedNodeFormat&&(Xt=Un(ui[0],Te,99),ln=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),Xt||(Xt=Un(ui[0],Te)),!(Te.flags&67108864)&&uu(B)!==1&&Xt.includes("/node_modules/")){let bi=Xt;if(uu(B)===3||uu(B)===99){let pi=wt?.impliedNodeFormat===99?1:99;Xt=Un(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||Yu(Ar)){if(Ar){let bi=Fe(Ar)?Ar:Ar.right;By(bi,void 0)}return L.createImportTypeNode(Wn,ln,Ar,ot,Ai)}else{let bi=$n(Ar),pi=bi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(Wn,ln,pi,ot,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,ot=NT(Ar);return By(Ar,void 0),L.createTypeReferenceNode(Ii,ot)}function zr(Ar,ot,wt){let Qt=ot===Ar.length-1?Dr:Ln(Ar,ot,Te),Xt=Ar[ot],ln=Ar[ot-1],Wn;if(ot===0)Te.flags|=16777216,Wn=YE(Xt,Te),Te.approximateLength+=(Wn?Wn.length:0)+1,Te.flags^=16777216;else if(ln&&Rp(ln)){let pi=Rp(ln);Gc(pi,(lo,An)=>{if(a_(lo,Xt)&&!y8(An)&&An!=="export=")return Wn=Vi(An),!0})}if(Wn===void 0){let pi=Fl(Xt.declarations,No);if(pi&&$a(pi)&&Yu(pi.expression)){let lo=zr(Ar,ot-1,wt);return Yu(lo)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(lo)),L.createTypeQueryNode(pi.expression)):lo}Wn=YE(Xt,Te)}if(Te.approximateLength+=Wn.length+1,!(Te.flags&16)&&ln&&Nb(ln)&&Nb(ln).get(Xt.escapedName)&&a_(Nb(ln).get(Xt.escapedName),Xt)){let pi=zr(Ar,ot-1,wt);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,ot>wt){let pi=zr(Ar,ot-1,wt);return Yu(pi)?L.createQualifiedName(pi,bi):R.fail("Impossible construct - an export of an indexed access cannot be reachable")}return bi}}function vo(at,Te,Cn){let Dr=yl(Te.enclosingDeclaration,at,788968,void 0,at,!1);return Dr&&Dr.flags&262144?Dr!==Cn.symbol:!1}function Wo(at,Te){var Cn,Dr;if(Te.flags&4&&Te.typeParameterNames){let Ai=Te.typeParameterNames.get(gu(at));if(Ai)return Ai}let ui=fo(at.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,at);)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(gu(at),ui),(Te.typeParameterNamesByText||(Te.typeParameterNamesByText=new Set)).add(zr)}return ui}function fo(at,Te,Cn,Dr){let ui=Mn(at,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),ot=Ii[zr];zr===0&&(Te.flags|=16777216);let wt=YE(ot,Te);zr===0&&(Te.flags^=16777216);let Qt=dr(L.createIdentifier(wt),16777216);return Ar&&By(Qt,L.createNodeArray(Ar)),Qt.symbol=ot,zr>0?L.createQualifiedName(Ai(Ii,zr-1),Qt):Qt}}function Dc(at,Te,Cn){let Dr=Mn(at,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 ot=YE(Ar,Te);Ii===0&&(Te.flags^=16777216);let wt=ot.charCodeAt(0);if(L2(wt)&>(Ar.declarations,Zd))return L.createStringLiteral(Un(Ar,Te));if(Ii===0||vU(ot,ce)){let Qt=dr(L.createIdentifier(ot),16777216);return zr&&By(Qt,L.createNodeArray(zr)),Qt.symbol=Ar,Ii>0?L.createPropertyAccessExpression(ui(Ai,Ii-1),Qt):Qt}else{wt===91&&(ot=ot.substring(1,ot.length-1),wt=ot.charCodeAt(0));let Qt;if(L2(wt)&&!(Ar.flags&8)?Qt=L.createStringLiteral($f(ot).replace(/\\./g,Xt=>Xt.substring(1)),wt===39):""+ +ot===ot&&(Qt=L.createNumericLiteral(+ot)),!Qt){let Xt=dr(L.createIdentifier(ot),16777216);zr&&By(Xt,L.createNodeArray(zr)),Xt.symbol=Ar,Qt=Xt}return L.createElementAccessExpression(ui(Ai,Ii-1),Qt)}}}function jf(at){let Te=No(at);return Te?$a(Te)?!!(po(Te.expression).flags&402653316):Ys(Te)?!!(po(Te.argumentExpression).flags&402653316):Da(Te):!1}function lp(at){let Te=No(at);return!!(Te&&Da(Te)&&(Te.singleQuote||!Xs(Te)&&ao(pc(Te,!1),"'")))}function Pn(at,Te){let Cn=!!Nn(at.declarations)&&oo(at.declarations,jf),Dr=!!Nn(at.declarations)&&oo(at.declarations,lp),ui=!!(at.flags&8192),Ai=Yn(at,Te,Dr,Cn,ui);if(Ai)return Ai;let Ii=Vi(at.escapedName);return V6(Ii,rs(B),Dr,Cn,ui)}function Yn(at,Te,Cn,Dr,ui){let Ai=qi(at).nameType;if(Ai){if(Ai.flags&384){let Ii=""+Ai.value;return!$p(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(Dc(Ai.symbol,Te,111551))}}function ro(at){let Te={...at};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 xK(Te,Te.tracker.inner,Te.tracker.moduleResolverHost),Te}function yr(at,Te){return at.declarations&&Gr(at.declarations,Cn=>!!vd(Cn)&&(!Te||!!Fn(Cn,Dr=>Dr===Te)))}function Do(at,Te){return!(Lr(Te)&4)||!xf(at)||Nn(at.typeArguments)>=Wh(Te.target.typeParameters)}function os(at){for(;Qr(at).fakeScopeForSignatureDeclaration;)at=at.parent;return at}function Es(at,Te,Cn,Dr,ui,Ai){if(!Ut(Te)&&Dr){let Ar=yr(Cn,os(Dr));if(Ar&&!Fs(Ar)&&!Zp(Ar)){let ot=vd(Ar);if(Vd(ot,Ar,Te)&&Do(ot,Te)){let wt=Ol(at,ot,ui,Ai);if(wt)return wt}}}let Ii=at.flags;Te.flags&8192&&Te.symbol===Cn&&(!at.enclosingDeclaration||gt(Cn.declarations,Ar=>Vn(Ar)===Vn(at.enclosingDeclaration)))&&(at.flags|=1048576);let zr=u(Te,at);return at.flags=Ii,zr}function Vd(at,Te,Cn){let Dr=Ti(at);return Dr===Cn?!0:To(Te)&&Te.questionToken?pm(Cn,524288)===Dr:!1}function Oa(at,Te,Cn,Dr,ui){if(!Ut(Te)&&at.enclosingDeclaration){let Ai=Cn.declaration&&Qf(Cn.declaration),Ii=os(at.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 ot=Ol(at,Ai,Dr,ui);if(ot)return ot}}}return u(Te,at)}function Lu(at,Te,Cn){let Dr=!1,ui=zp(at);if(ar(at)&&(yT(ui)||Qh(ui.parent)||Au(ui.parent)&&yj(ui.parent.left)&&yT(ui.parent.right)))return Dr=!0,{introducesError:Dr,node:at};let Ai=Of(at),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(at))){let zr=Qs(Ii),Ar=Ii.flags&262144?Wo(zr,Te):L.cloneNode(at);return Ar.symbol=Ii,{introducesError:Dr,node:dr(Rr(Ar,at),16777216)}}return{introducesError:Dr,node:at}}function Ol(at,Te,Cn,Dr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ui=!1,Ai=Vn(Te),Ii=Qe(Te,zr,ji);if(ui)return;return Ii===Te?st(L.cloneNode(Te),Te):Ii;function zr(Ar){if(xae(Ar)||Ar.kind===326)return L.createKeywordTypeNode(133);if(Rae(Ar))return L.createKeywordTypeNode(159);if(WR(Ar))return L.createUnionTypeNode([Qe(Ar.type,zr,ji),L.createLiteralTypeNode(L.createNull())]);if(uH(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,at):void 0;return L.createPropertySignature(void 0,ln,Xt.isBracketed||Xt.typeExpression&&uH(Xt.typeExpression.type)?L.createToken(58):void 0,bi||Xt.typeExpression&&Qe(Xt.typeExpression.type,zr,ji)||L.createKeywordTypeNode(133))}));if(xf(Ar)&&Fe(Ar.typeName)&&Ar.typeName.escapedText==="")return Rr(L.createKeywordTypeNode(133),Ar);if((Gy(Ar)||xf(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(FR(Ar))if(sR(Ar)){let Xt;return L.createConstructorTypeNode(void 0,zn(Ar.typeParameters,zr,_l),to(Ar.parameters,(ln,Wn)=>ln.name&&Fe(ln.name)&&ln.name.escapedText==="new"?(Xt=ln.type,void 0):L.createParameterDeclaration(void 0,ot(ln),wt(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,_l),mn(Ar.parameters,(Xt,ln)=>L.createParameterDeclaration(void 0,ot(Xt),wt(Xt,ln),Xt.questionToken,Qe(Xt.type,zr,ji),void 0)),Qe(Ar.type,zr,ji)||L.createKeywordTypeNode(133));if(xf(Ar)&&M2(Ar)&&(!Do(Ar,Ti(Ar))||Zwe(Ar)||ct===mC(Ar,788968,!0)))return Rr(u(Ti(Ar),at),Ar);if(Ov(Ar)){let Xt=Qr(Ar).resolvedSymbol;return M2(Ar)&&Xt&&(!Ar.isTypeOf&&!(Xt.flags&788968)||!(Nn(Ar.typeArguments)>=Wh(Nr(Xt))))?Rr(u(Ti(Ar),at),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(Yu(Ar)||Gl(Ar)){let{introducesError:Xt,node:ln}=Lu(Ar,at,Cn);if(ui=ui||Xt,ln!==Ar)return ln}return Ai&&t1(Ar)&&ys(Ai,Ar.pos).line===ys(Ai,Ar.end).line&&dr(Ar,1),Sn(Ar,zr,void 0);function ot(Xt){return Xt.dotDotDotToken||(Xt.type&&H4(Xt.type)?L.createToken(26):void 0)}function wt(Xt,ln){return Xt.name&&Fe(Xt.name)&&Xt.name.escapedText==="this"?"this":ot(Xt)?"args":`arg${ln}`}function Qt(Xt,ln){if(Dr){if(at.tracker&&at.tracker.moduleResolverHost){let Wn=ube(Xt);if(Wn){let pi={getCanonicalFileName:Pd(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>at.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>at.tracker.moduleResolverHost.getCommonSourceDirectory()},lo=a6(pi,Wn);return L.createStringLiteral(lo)}}}else if(at.tracker&&at.tracker.trackExternalModuleSymbolOfImportTypeNode){let Wn=ty(ln,ln,void 0);Wn&&at.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return ln}}}function vl(at,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,ot=[],wt=Te;Te={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Dr=wt.remappedSymbolReferences)==null?void 0:Dr.entries()),tracker:void 0};let Qt={...wt.tracker.inner,trackSymbol:(Ct,xr,fi)=>{var Kr,li;if((Kr=Te.remappedSymbolNames)!=null&&Kr.has(va(Ct)))return!1;if(wi(Ct,xr,fi,!1).accessibility===0){let aa=an(Ct,Te,fi);if(!(Ct.flags&4)){let Go=aa[0],Ws=Vn(wt.enclosingDeclaration);gt(Go.declarations,fs=>Vn(fs)===Ws)&&as(Go)}}else if((li=wt.tracker.inner)!=null&&li.trackSymbol)return wt.tracker.inner.trackSymbol(Ct,xr,fi);return!1}};Te.tracker=new xK(Te,Qt,wt.tracker.moduleResolverHost),Gc(at,(Ct,xr)=>{let fi=Vi(xr);Vm(Ct,fi)});let Xt=!Cn,ln=at.get("export=");return ln&&at.size>1&&ln.flags&2098688&&(at=oa(),at.set("export=",ln)),la(at),Zr(zr);function Wn(Ct){return!!Ct&&Ct.kind===80}function bi(Ct){return Ml(Ct)?Vr(mn(Ct.declarationList.declarations,No),Wn):Vr([No(Ct)],Wn)}function pi(Ct){let xr=Gr(Ct,Ll),fi=Jl(Ct,Xl),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&&M_(Kr.body)){let li=Vr(Ct,Go=>!!(cu(Go)&32)),es=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(ya(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&&t2(Go,es))){zr=[];let Go=!gt(aa.statements,Ws=>$r(Ws,32)||Ll(Ws)||Yl(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=>Yl(Kr)&&!Kr.moduleSpecifier&&!!Kr.exportClause&&Rf(Kr.exportClause));Nn(xr)>1&&(Ct=[...Vr(Ct,li=>!Yl(li)||!!li.moduleSpecifier||!li.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(ya(xr,li=>ta(li.exportClause,Rf).elements)),void 0)]);let fi=Vr(Ct,Kr=>Yl(Kr)&&!!Kr.moduleSpecifier&&!!Kr.exportClause&&Rf(Kr.exportClause));if(Nn(fi)>1){let Kr=XC(fi,li=>Da(li.moduleSpecifier)?">"+li.moduleSpecifier.text:">");if(Kr.length!==fi.length)for(let li of Kr)li.length>1&&(Ct=[...Vr(Ct,es=>!li.includes(es)),L.createExportDeclaration(void 0,!1,L.createNamedExports(ya(li,es=>ta(es.exportClause,Rf).elements)),li[0].moduleSpecifier)])}return Ct}function An(Ct){let xr=Jl(Ct,fi=>Yl(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&Rf(fi.exportClause));if(xr>=0){let fi=Ct[xr],Kr=to(fi.exportClause.elements,li=>{if(!li.propertyName){let es=RL(Ct),aa=Vr(es,Go=>t2(Ct[Go],li.name));if(Nn(aa)&&oo(aa,Go=>hk(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):Sv(Ct,xr)}return Ct}function Zr(Ct){return Ct=pi(Ct),Ct=lo(Ct),Ct=An(Ct),Ii&&(Yi(Ii)&&Op(Ii)||Xl(Ii))&&(!gt(Ct,p2)||!Tre(Ct)&>(Ct,fF))&&Ct.push(Kk(L)),Ct}function Gi(Ct){let xr=(cu(Ct)|32)&-129;return L.replaceModifiers(Ct,xr)}function co(Ct){let xr=cu(Ct)&-33;return L.replaceModifiers(Ct,xr)}function la(Ct,xr,fi){xr||ot.push(new Map),Ct.forEach(Kr=>{bc(Kr,!1,!!fi)}),xr||(ot[ot.length-1].forEach(Kr=>{bc(Kr,!0,!!fi)}),ot.pop())}function bc(Ct,xr,fi){let Kr=ts(Ct);if(Ar.has(va(Kr)))return;if(Ar.add(va(Kr)),!xr||Nn(Ct.declarations)&>(Ct.declarations,es=>!!Fn(es,aa=>aa===Ii))){let es=Te;Te=ro(Te),Cl(Ct,xr,fi),Te.reportedDiagnostic&&(wt.reportedDiagnostic=Te.reportedDiagnostic),Te.trackedSymbols&&(es.trackedSymbols?R.assert(Te.trackedSymbols===es.trackedSymbols):es.trackedSymbols=Te.trackedSymbols),Te=es}}function Cl(Ct,xr,fi,Kr=Ct.escapedName){var li,es,aa,Go,Ws,fs;let Wa=Vi(Kr),Dd=Kr==="default";if(xr&&!(Te.flags&131072)&&LI(Wa)&&!Dd){Te.encounteredError=!0;return}let Cd=Dd&&!!(Ct.flags&-113||Ct.flags&16&&Nn(_s(cr(Ct))))&&!(Ct.flags&2097152),vu=!Cd&&!xr&&LI(Wa)&&!Dd;(Cd||vu)&&(xr=!0);let Kl=(xr?0:32)|(Dd&&!Cd?2048:0),Nd=Ct.flags&1536&&Ct.flags&7&&Kr!=="export=",qu=Nd&&Ds(cr(Ct),Ct);if((Ct.flags&8208||qu)&&bn(cr(Ct),Ct,Vm(Ct,Wa),Kl),Ct.flags&524288&&g_(Ct,Wa,Kl),Ct.flags&98311&&Kr!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!qu)if(fi)Aa(Ct)&&(vu=!1,Cd=!1);else{let ad=cr(Ct),Mp=Vm(Ct,Wa);if(ad.symbol&&ad.symbol!==Ct&&ad.symbol.flags&16&>(ad.symbol.declarations,G0)&&((li=ad.symbol.members)!=null&&li.size||(es=ad.symbol.exports)!=null&&es.size))Te.remappedSymbolReferences||(Te.remappedSymbolReferences=new Map),Te.remappedSymbolReferences.set(va(ad.symbol),Ct),Cl(ad.symbol,xr,fi,Kr),Te.remappedSymbolReferences.delete(va(ad.symbol));else if(!(Ct.flags&16)&&Ds(ad,Ct))bn(ad,Ct,Mp,Kl);else{let bx=Ct.flags&2?nL(Ct)?2:1:(aa=Ct.parent)!=null&&aa.valueDeclaration&&Yi((Go=Ct.parent)==null?void 0:Go.valueDeclaration)?2:void 0,th=Cd||!(Ct.flags&4)?Mp:y_(Mp,Ct),Ub=Ct.declarations&&Gr(Ct.declarations,iW=>Oi(iW));Ub&&Uc(Ub.parent)&&Ub.parent.declarations.length===1&&(Ub=Ub.parent.parent);let Hb=(Ws=Ct.declarations)==null?void 0:Ws.find(kr);if(Hb&&pr(Hb.parent)&&Fe(Hb.parent.right)&&((fs=ad.symbol)!=null&&fs.valueDeclaration)&&Yi(ad.symbol.valueDeclaration)){let iW=Mp===Hb.parent.right.escapedText?void 0:Hb.parent.right;Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,iW,Mp)])),0),Te.tracker.trackSymbol(ad.symbol,Te.enclosingDeclaration,111551)}else{let iW=st(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(th,void 0,Es(Te,ad,Ct,Ii,as,Cn))],bx)),Ub);Ks(iW,th!==Mp?Kl&-33:Kl),th!==Mp&&!xr&&(Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,th,Mp)])),0),vu=!1,Cd=!1)}}}if(Ct.flags&384&&Ir(Ct,Wa,Kl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&pr(Ct.valueDeclaration.parent)&&ed(Ct.valueDeclaration.parent.right)?Ei(Ct,Vm(Ct,Wa),Kl):ua(Ct,Vm(Ct,Wa),Kl)),(Ct.flags&1536&&(!Nd||$t(Ct))||qu)&&Kn(Ct,Wa,Kl),Ct.flags&64&&!(Ct.flags&32)&&Ze(Ct,Wa,Kl),Ct.flags&2097152&&Ei(Ct,Vm(Ct,Wa),Kl),Ct.flags&4&&Ct.escapedName==="export="&&Aa(Ct),Ct.flags&8388608&&Ct.declarations)for(let ad of Ct.declarations){let Mp=_u(ad,ad.moduleSpecifier);Mp&&Ks(L.createExportDeclaration(void 0,ad.isTypeOnly,void 0,L.createStringLiteral(Un(Mp,Te))),0)}Cd?Ks(L.createExportAssignment(void 0,!1,L.createIdentifier(Vm(Ct,Wa))),0):vu&&Ks(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Vm(Ct,Wa),Wa)])),0)}function as(Ct){if(gt(Ct.declarations,k0))return;R.assertIsDefined(ot[ot.length-1]),y_(Vi(Ct.escapedName),Ct);let xr=!!(Ct.flags&2097152)&&!gt(Ct.declarations,fi=>!!Fn(fi,Yl)||bh(fi)||nd(fi)&&!Eh(fi.moduleReference));ot[xr?0:ot.length-1].set(va(Ct),Ct)}function Cc(Ct){return Yi(Ct)&&(Op(Ct)||qf(Ct))||Ld(Ct)&&!T_(Ct)}function Ks(Ct,xr){if(xm(Ct)){let fi=0,Kr=Te.enclosingDeclaration&&(Xf(Te.enclosingDeclaration)?Vn(Te.enclosingDeclaration):Te.enclosingDeclaration);xr&32&&Kr&&(Cc(Kr)||Xl(Kr))&&hk(Ct)&&(fi|=32),Xt&&!(fi&32)&&(!Kr||!(Kr.flags&33554432))&&(yE(Ct)||Ml(Ct)||Sc(Ct)||Tc(Ct)||Xl(Ct))&&(fi|=128),xr&2048&&(Tc(Ct)||fu(Ct)||Sc(Ct))&&(fi|=2048),fi&&(Ct=L.replaceModifiers(Ct,fi|cu(Ct)))}zr.push(Ct)}function g_(Ct,xr,fi){var Kr;let li=lwe(Ct),es=qi(Ct).typeParameters,aa=mn(es,Cd=>mt(Cd,Te)),Go=(Kr=Ct.declarations)==null?void 0:Kr.find(Xf),Ws=i2(Go?Go.comment||Go.parent.comment:void 0),fs=Te.flags;Te.flags|=8388608;let Wa=Te.enclosingDeclaration;Te.enclosingDeclaration=Go;let Dd=Go&&Go.typeExpression&&eS(Go.typeExpression)&&Ol(Te,Go.typeExpression.type,as,Cn)||u(li,Te);Ks(gE(L.createTypeAliasDeclaration(void 0,Vm(Ct,xr),aa,Dd),Ws?[{kind:3,text:`* * `+Ws.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),Te.flags=fs,Te.enclosingDeclaration=Wa}function Ze(Ct,xr,fi){let Kr=Ff(Ct),li=Nr(Ct),es=mn(li,vu=>mt(vu,Te)),aa=Cp(Kr),Go=Nn(aa)?ha(aa):void 0,Ws=ya(_s(Kr),vu=>Nc(vu,Go)),fs=Vh(0,Kr,Go,179),Wa=Vh(1,Kr,Go,180),Dd=yy(Kr,Go),Cd=Nn(aa)?[L.createHeritageClause(96,to(aa,vu=>iI(vu,111551)))]:void 0;Ks(L.createInterfaceDeclaration(void 0,Vm(Ct,xr),es,Cd,[...Dd,...Wa,...fs,...Ws]),fi)}function vt(Ct){let xr=Oo(Rp(Ct).values()),fi=ts(Ct);if(fi!==Ct){let Kr=new Set(xr);for(let li of Rp(fi).values())Ad(jl(li))&111551||Kr.add(li);xr=Oo(Kr)}return Vr(xr,Kr=>zi(Kr)&&$p(Kr.escapedName,99))}function $t(Ct){return oo(vt(Ct),xr=>!(Ad(jl(xr))&111551))}function Kn(Ct,xr,fi){let Kr=vt(Ct),li=CL(Kr,Go=>Go.parent&&Go.parent===Ct?"real":"merged"),es=li.get("real")||Ye,aa=li.get("merged")||Ye;if(Nn(es)){let Go=Vm(Ct,xr);Br(es,Go,fi,!!(Ct.flags&67108880))}if(Nn(aa)){let Go=Vn(Te.enclosingDeclaration),Ws=Vm(Ct,xr),fs=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(to(Vr(aa,Wa=>Wa.escapedName!=="export="),Wa=>{var Dd,Cd;let vu=Vi(Wa.escapedName),Kl=Vm(Wa,vu),Nd=Wa.declarations&&km(Wa);if(Go&&(Nd?Go!==Vn(Nd):!gt(Wa.declarations,Mp=>Vn(Mp)===Go))){(Cd=(Dd=Te.tracker)==null?void 0:Dd.reportNonlocalAugmentation)==null||Cd.call(Dd,Go,Ct,Wa);return}let qu=Nd&&Vp(Nd,!0);as(qu||Wa);let ad=qu?Vm(qu,Vi(qu.escapedName)):Kl;return L.createExportSpecifier(!1,vu===ad?void 0:ad,vu)})))]);Ks(L.createModuleDeclaration(void 0,L.createIdentifier(Ws),fs,32),0)}}function Ir(Ct,xr,fi){Ks(L.createEnumDeclaration(L.createModifiersFromModifierFlags(Mve(Ct)?4096:0),Vm(Ct,xr),mn(Vr(_s(cr(Ct)),Kr=>!!(Kr.flags&8)),Kr=>{let li=Kr.declarations&&Kr.declarations[0]&&Z0(Kr.declarations[0])?lbe(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 es of li){let aa=ye(es,262,Te,{name:L.createIdentifier(fi),privateSymbolVisitor:as,bundledImports:Cn});Ks(st(aa,hr(es)),Kr)}if(!(xr.flags&1536&&xr.exports&&xr.exports.size)){let es=Vr(_s(Ct),zi);Br(es,fi,Kr,!0)}}function hr(Ct){if(Ct.declaration&&Ct.declaration.parent){if(pr(Ct.declaration.parent)&&Bl(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 es=CL(Ct,Kl=>!Nn(Kl.declarations)||gt(Kl.declarations,Nd=>Vn(Nd)===Vn(Te.enclosingDeclaration))?"local":"remote").get("local")||Ye,aa=Sh.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},Wa=Te;Te=fs,la(oa(es),Kr,!0),Te=Wa,Xt=Ws;let Dd=zr;zr=Go;let Cd=mn(Dd,Kl=>Ll(Kl)&&!Kl.isExportEquals&&Fe(Kl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Kl.expression,L.createIdentifier("default"))])):Kl),vu=oo(Cd,Kl=>$r(Kl,32))?mn(Cd,co):Cd;aa=L.updateModuleDeclaration(aa,aa.modifiers,aa.name,L.createModuleBlock(vu)),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(Gl(li)){if(Fe(li)&&vr(li)==="")return es(void 0);let aa;if({introducesError:aa,node:li}=Lu(li,Te,as),aa)return es(void 0)}return es(L.createExpressionWithTypeArguments(li,mn(fi.typeArguments,aa=>Ol(Te,aa,as,Cn)||u(Ti(aa),Te))));function es(aa){return Te.enclosingDeclaration=Kr,aa}});if(xr.length===Ct.length)return xr}function ua(Ct,xr,fi){var Kr,li;let es=(Kr=Ct.declarations)==null?void 0:Kr.find(di),aa=Te.enclosingDeclaration;Te.enclosingDeclaration=es||aa;let Go=Nr(Ct),Ws=mn(Go,nh=>mt(nh,Te)),fs=Hp(Ff(Ct)),Wa=Cp(fs),Dd=es&&dR(es),Cd=Dd&&wo(Dd)||to(c_(fs),_L),vu=cr(Ct),Kl=!!((li=vu.symbol)!=null&&li.valueDeclaration)&&di(vu.symbol.valueDeclaration),Nd=Kl?Dp(vu):G,qu=[...Nn(Wa)?[L.createHeritageClause(96,mn(Wa,nh=>rI(nh,Nd,xr)))]:[],...Nn(Cd)?[L.createHeritageClause(119,Cd)]:[]],ad=G_t(fs,Wa,_s(fs)),Mp=Vr(ad,nh=>{let hL=nh.valueDeclaration;return!!hL&&!(ou(hL)&&Ki(hL.name))}),th=gt(ad,nh=>{let hL=nh.valueDeclaration;return!!hL&&ou(hL)&&Ki(hL.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ye,Ub=ya(Mp,nh=>ui(nh,!1,Wa[0])),Hb=ya(Vr(_s(vu),nh=>!(nh.flags&4194304)&&nh.escapedName!=="prototype"&&!zi(nh)),nh=>ui(nh,!0,Nd)),iyt=!Kl&&!!Ct.valueDeclaration&&ar(Ct.valueDeclaration)&&!gt(Ko(vu,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Vh(1,vu,Nd,176),oyt=yy(fs,Wa[0]);Te.enclosingDeclaration=aa,Ks(st(L.createClassDeclaration(void 0,xr,Ws,qu,[...oyt,...Hb,...iyt,...Ub,...th]),Ct.declarations&&Vr(Ct.declarations,nh=>Tc(nh)||ed(nh))[0]),fi)}function pa(Ct){return Fl(Ct,xr=>{if(Zu(xr)||Jd(xr))return vr(xr.propertyName||xr.name);if(pr(xr)||Ll(xr)){let fi=Ll(xr)?xr.expression:xr.right;if(kr(fi))return vr(fi.name)}if(fb(xr)){let fi=No(xr);if(fi&&Fe(fi))return vr(fi)}})}function Ei(Ct,xr,fi){var Kr,li,es,aa,Go,Ws;let fs=km(Ct);if(!fs)return R.fail();let Wa=ts(Vp(fs,!0));if(!Wa)return;let Dd=bN(Wa)&&pa(Ct.declarations)||Vi(Wa.escapedName);Dd==="export="&&q&&(Dd="default");let Cd=Vm(Wa,Dd);switch(as(Wa),fs.kind){case 208:if(((li=(Kr=fs.parent)==null?void 0:Kr.parent)==null?void 0:li.kind)===260){let Nd=Un(Wa.parent||Wa,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(((es=fs.parent)==null?void 0:es.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=Un(Wa.parent||Wa,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(Wa.escapedName==="export="&>(Wa.declarations,Nd=>Yi(Nd)&&qf(Nd))){Aa(Ct);break}let vu=!(Wa.flags&512)&&!Oi(fs);Ks(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(xr),vu?fo(Wa,Te,-1,!1):L.createExternalModuleReference(L.createStringLiteral(Un(Wa,Te)))),vu?fi:0);break;case 270:Ks(L.createNamespaceExportDeclaration(vr(fs.name)),0);break;case 273:{let Nd=Un(Wa.parent||Wa,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=Un(Wa.parent||Wa,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(Un(Wa,Te))),0);break;case 276:{let Nd=Un(Wa.parent||Wa,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 Kl=fs.parent.parent.moduleSpecifier;Kl&&((Ws=fs.propertyName)==null?void 0:Ws.escapedText)==="default"&&(Dd="default"),Lo(Vi(Ct.escapedName),Kl?Dd:Cd,Kl&&ss(Kl)?L.createStringLiteral(Kl.text):void 0);break;case 277:Aa(Ct);break;case 226:case 211:case 212:Ct.escapedName==="default"||Ct.escapedName==="export="?Aa(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 Aa(Ct){var xr;if(Ct.flags&4194304)return!1;let fi=Vi(Ct.escapedName),Kr=fi==="export=",es=Kr||fi==="default",aa=Ct.declarations&&km(Ct),Go=aa&&Vp(aa,!0);if(Go&&Nn(Go.declarations)&>(Go.declarations,Ws=>Vn(Ws)===Vn(Ii))){let Ws=aa&&(Ll(aa)||pr(aa)?Rj(aa):Iie(aa)),fs=Ws&&Gl(Ws)?tht(Ws):void 0,Wa=fs&&js(fs,-1,!0,!0,Ii);(Wa||Go)&&as(Wa||Go);let Dd=Te.tracker.disableTrackSymbol;if(Te.tracker.disableTrackSymbol=!0,es)zr.push(L.createExportAssignment(void 0,Kr,Dc(Go,Te,-1)));else if(fs===Ws&&fs)Lo(fi,vr(fs));else if(Ws&&ed(Ws))Lo(fi,Vm(Go,bl(Go)));else{let Cd=y_(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=y_(fi,Ct),fs=Kp(cr(ts(Ct)));if(Ds(fs,Ct))bn(fs,Ct,Ws,es?0:32);else{let Wa=((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))],Wa));Ks(Dd,Go&&Go.flags&4&&Go.escapedName==="export="?128:fi===Ws?32:0)}return es?(zr.push(L.createExportAssignment(void 0,Kr,L.createIdentifier(Ws))),!0):fi!==Ws?(Lo(fi,Ws),!0):!1}}function Ds(Ct,xr){let fi=Vn(Te.enclosingDeclaration);return Lr(Ct)&48&&!Nn(hu(Ct))&&!MS(Ct)&&!!(Nn(Vr(_s(Ct),zi))||Nn(Ko(Ct,0)))&&!Nn(Ko(Ct,1))&&!yr(xr,Ii)&&!(Ct.symbol&>(Ct.symbol.declarations,Kr=>Vn(Kr)!==fi))&&!gt(_s(Ct),Kr=>y8(Kr.escapedName))&&!gt(_s(Ct),Kr=>gt(Kr.declarations,li=>Vn(li)!==fi))&&oo(_s(Ct),Kr=>$p(bl(Kr),ce)?Kr.flags&98304?Db(Kr)===LS(Kr):!0:!1)}function ps(Ct,xr,fi){return function(li,es,aa){var Go,Ws,fs,Wa,Dd;let Cd=Af(li),vu=!!(Cd&2);if(es&&li.flags&2887656)return[];if(li.flags&4194304||li.escapedName==="constructor"||aa&&_a(aa,li.escapedName)&&h_(_a(aa,li.escapedName))===h_(li)&&(li.flags&16777216)===(_a(aa,li.escapedName).flags&16777216)&&py(cr(li),Ue(aa,li.escapedName)))return[];let Kl=Cd&-1025|(es?256:0),Nd=Pn(li,Te),qu=(Go=li.declarations)==null?void 0:Go.find(Km(jo,Nv,Oi,hp,pr,kr));if(li.flags&98304&&fi){let ad=[];if(li.flags&65536){let Mp=li.declarations&&gn(li.declarations,th=>{if(th.kind===178)return th;if(ra(th)&&vT(th))return gn(th.arguments[2].properties,Ub=>{let Hb=No(Ub);if(Hb&&Fe(Hb)&&vr(Hb)==="set")return Ub})});R.assert(!!Mp);let bx=Fs(Mp)?cm(Mp).parameters[0]:void 0;ad.push(st(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Kl),Nd,[L.createParameterDeclaration(void 0,void 0,bx?sn(bx,At(bx),Te):"value",void 0,vu?void 0:Es(Te,cr(li),li,Ii,as,Cn))],void 0),((Ws=li.declarations)==null?void 0:Ws.find(Py))||qu))}if(li.flags&32768){let Mp=Cd&2;ad.push(st(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Kl),Nd,[],Mp?void 0:Es(Te,cr(li),li,Ii,as,Cn),void 0),((fs=li.declarations)==null?void 0:fs.find(Mv))||qu))}return ad}else if(li.flags&98311)return st(Ct(L.createModifiersFromModifierFlags((h_(li)?8:0)|Kl),Nd,li.flags&16777216?L.createToken(58):void 0,vu?void 0:Es(Te,LS(li),li,Ii,as,Cn),void 0),((Wa=li.declarations)==null?void 0:Wa.find(Km(jo,Oi)))||qu);if(li.flags&8208){let ad=cr(li),Mp=Ko(ad,0);if(Kl&2)return st(Ct(L.createModifiersFromModifierFlags((h_(li)?8:0)|Kl),Nd,li.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Dd=li.declarations)==null?void 0:Dd.find(Fs))||Mp[0]&&Mp[0].declaration||li.declarations&&li.declarations[0]);let bx=[];for(let th of Mp){let Ub=ye(th,xr,Te,{name:Nd,questionToken:li.flags&16777216?L.createToken(58):void 0,modifiers:Kl?L.createModifiersFromModifierFlags(Kl):void 0}),Hb=th.declaration&&B2(th.declaration.parent)?th.declaration.parent:th.declaration;bx.push(st(Ub,Hb))}return bx}return R.fail(`Unhandled class member kind! ${li.__debugFlags||li.flags}`)}}function Nc(Ct,xr){return Ai(Ct,!1,xr)}function Vh(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=Dc(Ct.target.symbol,Te,788968)):Ct.symbol&&nn(Ct.symbol,Ii,xr)&&(Kr=Dc(Ct.symbol,Te,788968)),Kr)return L.createExpressionWithTypeArguments(Kr,fi)}function _L(Ct){let xr=iI(Ct,788968);if(xr)return xr;if(Ct.symbol)return L.createExpressionWithTypeArguments(Dc(Ct.symbol,Te,788968),void 0)}function y_(Ct,xr){var fi,Kr;let li=xr?va(xr):void 0;if(li&&Te.remappedSymbolNames.has(li))return Te.remappedSymbolNames.get(li);xr&&(Ct=vx(xr,Ct));let es=0,aa=Ct;for(;(fi=Te.usedSymbolNames)!=null&&fi.has(Ct);)es++,Ct=`${aa}_${es}`;return(Kr=Te.usedSymbolNames)==null||Kr.add(Ct),li&&Te.remappedSymbolNames.set(li,Ct),Ct}function vx(Ct,xr){if(xr==="default"||xr==="__class"||xr==="__function"){let fi=Te.flags;Te.flags|=16777216;let Kr=YE(Ct,Te);Te.flags=fi,xr=Kr.length>0&&L2(Kr.charCodeAt(0))?$f(Kr):Kr}return xr==="default"?xr="_default":xr==="export="&&(xr="_exports"),xr=$p(xr,ce)&&!LI(xr)?xr:"_"+xr.replace(/[^a-zA-Z0-9]/g,"_"),xr}function Vm(Ct,xr){let fi=va(Ct);return Te.remappedSymbolNames.has(fi)?Te.remappedSymbolNames.get(fi):(xr=vx(Ct,xr),Te.remappedSymbolNames.set(fi,xr),xr)}}}function Lh(n,a,c=16384,u){return u?_(u).getText():yN(_);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=aS(),W=a&&Vn(a);return M.writeNode(4,T,W,g),g}}function rC(n){let a=[],c=0;for(let u=0;uNo(T)?T:void 0),g=_&&No(_);if(_&&g){if(ra(_)&&vT(_))return bl(n);if($a(g)&&!(Al(n)&4096)){let T=qi(n).nameType;if(T&&T.flags&384){let M=_8(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=_8(n,a);return u!==void 0?u:bl(n)}function s_(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 s_(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(x0(n))return!0;let c=X(n);return!(lte(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Dh(c):s_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(mp(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 s_(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 wM(n,a){let c;n.parent&&n.parent.kind===277?c=yl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=UE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(va(c)),g(c.declarations)),u;function g(T){gn(T,M=>{let W=gA(M)||M;if(a?Qr(M).isVisible=!0:(u=u||[],vf(u,W)),nR(M)){let V=M.moduleReference,te=zp(V),ye=yl(M,te.escapedText,901119,void 0,void 0,!1);ye&&_&&qb(_,va(ye))&&g(ye.declarations)}})}}function kh(n,a){let c=ax(n,a);if(c>=0){let{length:u}=md;for(let _=c;_=z1;c--){if(h8(md[c],wE[c]))return-1;if(md[c]===n&&wE[c]===a)return c}return-1}function h8(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 J_(){return md.pop(),wE.pop(),Xg.pop()}function X(n){return Fn(x_(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=Qs(Cu(n));return a.typeParameters?cv(a,mn(a.typeParameters,c=>G)):a}function Ue(n,a){let c=_a(n,a);return c?cr(c):void 0}function St(n,a){var c;let u;return Ue(n,a)||(u=(c=cx(n,a))==null?void 0:c.type)&&ap(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=dc(n,W=>!(W.flags&98304)),n.flags&131072)return Ca;if(n.flags&1048576)return dl(n,W=>Wi(W,a,c));let u=ti(mn(a,uv)),_=[],g=[];for(let W of _s(n)){let V=_C(W,8576);!ga(V,u)&&!(Af(W)&6)&&kZ(W)?_.push(W):g.push(V)}if(VA(n)||jA(u)){if(g.length&&(u=ti([u,...g])),u.flags&131072)return n;let W=cst();return W?fC(W,[n,u]):pt}let T=oa();for(let W of _)T.set(W.escapedName,Hge(W,!1));let M=Ps(c,T,Ye,Ye,hu(n));return M.objectFlags|=4194304,M}function Ci(n){return!!(n.flags&465829888)&&Dl(Bd(n)||un,32768)}function _i(n){let a=Bm(n,Ci)?dl(n,c=>c.flags&465829888?cy(c):c):n;return pm(a,524288)}function Xi(n,a){let c=ds(n);return c?Vb(c,a):a}function ds(n){let a=Rs(n);if(a&&U2(a)&&a.flowNode){let c=Qa(n);if(c){let u=st(Sh.createStringLiteral(c),n),_=$u(a)?a:Sh.createParenthesizedExpression(a),g=st(Sh.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 Qa(n){let a=n.parent;return n.kind===208&&a.kind===206?Wf(n.propertyName||n.name):n.kind===303||n.kind===304?Wf(n.name):""+a.elements.indexOf(n)}function Wf(n){let a=uv(n);return a.flags&384?""+a.value:void 0}function q_(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&&k0(n)?a=_y(a):J&&u.parent.initializer&&!um(U8e(u.parent.initializer),65536)&&(a=pm(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=p_(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=Np(a,T,32,g);_=Xi(n,M)}else{let g=_v(65|(n.dotDotDotToken?0:128),a,Le,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let M=dl(a,W=>W.flags&58982400?cy(W):W);_=sp(M,wa)?dl(M,W=>KM(W,T)):Gd(g)}else if(fv(a)){let M=f_(T),W=32|(c||rL(n)?16:0),V=kb(a,M,W,n.name)||pt;_=Xi(n,V)}else _=g}return n.initializer?vd(Wx(n))?J&&!um(oL(n,0),16777216)?_i(_):_:zee(n,ti([_i(_),oL(n,0)],2)):_}function iy(n){let a=iE(n);if(a)return Ti(a)}function oy(n){let a=ms(n,!0);return a.kind===106||a.kind===80&&zm(a)===ze}function Ab(n){let a=ms(n,!0);return a.kind===209&&a.elements.length===0}function ap(n,a=!1,c=!0){return J&&c?Bb(n,a):n}function LA(n,a,c){if(Oi(n)&&n.parent.parent.kind===249){let T=X_(ove(po(n.parent.parent.expression,c)));return T.flags&4456448?ROe(T):Ne}if(Oi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return lG(T)||G}if($o(n.parent))return q_(n);let u=jo(n)&&!R_(n)||hp(n)||Cae(n),_=a&&oP(n),g=eo(n);if($V(n))return g?xt(g)||g===un?g:pt:he?un:G;if(g)return ap(g,u,_);if((fe||ar(n))&&Oi(n)&&!$o(n.name)&&!(lte(n)&32)&&!(n.flags&33554432)){if(!(XS(n)&6)&&(!n.initializer||oy(n.initializer)))return tt;if(n.initializer&&Ab(n.initializer))return Jc}if(To(n)){let T=n.parent;if(T.kind===178&&cC(T)){let V=ul(Tr(n.parent),177);if(V){let te=cm(V),ye=mbe(T);return ye&&n===ye?(R.assert(!ye.type),cr(te.thisParameter)):us(te)}}let M=wat(T,n);if(M)return M;let W=n.symbol.escapedName==="this"?fWe(T):mWe(n);if(W)return ap(W,!1,_)}if(pT(n)&&n.initializer){if(ar(n)&&!To(n)){let M=Ga(n,Tr(n),w2(n));if(M)return M}let T=zee(n,oL(n,c));return ap(T,u,_)}if(jo(n)&&(fe||ar(n)))if(fc(n)){let T=Vr(n.parent.members,Il),M=T.length?ay(n.symbol,T):cu(n)&128?JZ(n.symbol):void 0;return M&&ap(M,!0,_)}else{let T=ny(n.parent),M=T?Ib(n.symbol,T):cu(n)&128?JZ(n.symbol):void 0;return M&&ap(M,!0,_)}if(k_(n))return wn;if($o(n.name))return C(n.name,!1,!0)}function iC(n){if(n.valueDeclaration&&pr(n.valueDeclaration)){let a=qi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!WM(n)&&oo(n.declarations,c=>pr(c)&&yee(c)&&(c.left.kind!==212||Qp(c.left.argumentExpression))&&!cc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function OM(n){let a=n.valueDeclaration;return a&&jo(a)&&!vd(a)&&!a.initializer&&(fe||ar(a))}function WM(n){if(n.declarations)for(let a of n.declarations){let c=wu(a,!1,!1);if(c&&(c.kind===176||Z_(c)))return c}}function $E(n){let a=Vn(n.declarations[0]),c=Vi(n.escapedName),u=n.declarations.every(g=>ar(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,Vb(_,tt,Le)}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=oC(_,n);if(fe&&(g===tt||g===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),jn(g)),!sp(g,B5))return tW(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);ja(u.expression,u),ja(u,a),u.flowNode=a.returnFlowNode;let _=oC(u,n);return fe&&(_===tt||_===Jc)&&Ve(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,Si(n),jn(_)),sp(_,B5)?void 0:tW(_)}function oC(n,a){let c=a?.valueDeclaration&&(!OM(a)||cu(a.valueDeclaration)&128)&&JZ(a)||Le;return Vb(n,tt,c)}function Up(n,a){let c=DI(n.valueDeclaration);if(c){let M=ar(c)?rE(c):void 0;return M&&M.typeExpression?Ti(M.typeExpression):n.valueDeclaration&&Ga(n.valueDeclaration,n,c)||GS(nc(c))}let u,_=!1,g=!1;if(iC(n)&&(u=Ib(n,WM(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)?z2(te):Bl(te);(ye===4||pr(te)&&yee(te,ye))&&(FM(te)?_=!0:g=!0),ra(te)||(W=cc(W,te,n,V)),W||(M||(M=[])).push(pr(te)||ra(te)?QE(n,a,te,ye):Wr)}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=Kp(ap(u,!1,g&&!_));return n.valueDeclaration&&ar(n.valueDeclaration)&&dc(T,M=>!!(M.flags&-98305))===Wr?(c0(n.valueDeclaration,G),G):T}function Ga(n,a,c){var u,_;if(!ar(n)||!c||!Ma(c)||c.properties.length)return;let g=oa();for(;pr(n)||kr(n);){let W=ff(n);(u=W?.exports)!=null&&u.size&&o_(g,W.exports),n=pr(n)?n.parent:n.parent.parent}let T=ff(n);(_=T?.exports)!=null&&_.size&&o_(g,T.exports);let M=Ps(a,g,Ye,Ye,Ye);return M.objectFlags|=4096,M}function cc(n,a,c,u){var _;let g=vd(a.parent);if(g){let T=Kp(Ti(g));if(n)!Ut(n)&&!Ut(T)&&!py(n,T)&&y6e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=RS(c.parent);if(T.valueDeclaration){let M=vd(T.valueDeclaration);if(M){let W=_a(Ti(M),c.escapedName);if(W)return Db(W)}}}return n}function QE(n,a,c,u){if(ra(c)){if(a)return cr(a);let T=nc(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 xve(te)}return G}if(sx(c.left,c.right))return G;let _=u===1&&(kr(c.left)||Ys(c.left))&&(Qh(c.left.expression)||Fe(c.left.expression)&&yT(c.left.expression)),g=a?cr(a):_?yu(nc(c.right)):GS(nc(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=u_(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&&Vn(te.valueDeclaration)!==Vn(je.valueDeclaration)){let At=Vi(te.escapedName),rn=((_e=ri(je.valueDeclaration,ou))==null?void 0:_e.name)||je.valueDeclaration;Pa(Ve(te.valueDeclaration,f.Duplicate_identifier_0,At),Pr(rn,f._0_was_also_declared_here,At)),Pa(Ve(rn,f.Duplicate_identifier_0,At),Pr(te.valueDeclaration,f._0_was_also_declared_here,At))}let mt=Ka(te.flags|je.flags,ye);mt.links.type=ti([cr(te),cr(je)]),mt.valueDeclaration=je.valueDeclaration,mt.declarations=bo(je.declarations,te.declarations),M.set(ye,mt)}else M.set(ye,am(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===Ff(V.symbol)&&(V.objectFlags|=16777216),V}return XZ(g)?(c0(c,ec),ec):g}function sx(n,a){return kr(n)&&n.expression.kind===110&&CP(a,c=>Id(n,c))}function FM(n){let a=wu(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!B2(a.parent)}function xb(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&&FM(g)})}function zM(n,a,c){if(n.initializer){let u=$o(n.name)?C(n.name,!0,!1):un;return ap(zee(n,oL(n,c?0:1,u)))}return $o(n.name)?C(n.name,a,c):(c&&!gr(n)&&c0(n,G),a?hn:G)}function rr(n,a,c){let u=oa(),_,g=131200;gn(n.elements,M=>{let W=M.propertyName||M.name;if(M.dotDotDotToken){_=Fh(Ne,G,!1);return}let V=uv(W);if(!Zf(V)){g|=512;return}let te=em(V),ye=4|(M.initializer?16777216:0),_e=Ka(ye,te);_e.links.type=zM(M,a,c),_e.links.bindingElement=M,u.set(_e.escapedName,_e)});let T=Ps(void 0,u,Ye,Ye,_?[_]:Ye);return T.objectFlags|=g,a&&(T.pattern=n,T.objectFlags|=131072),T}function v(n,a,c){let u=n.elements,_=Zs(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return ce>=2?uOe(G):ec;let T=mn(u,te=>jc(te)?G:zM(te,a,c)),M=mW(u,te=>!(te===g||jc(te)||rL(te)),u.length-1)+1,W=mn(u,(te,ye)=>te===g?4:ye>=M?2:1),V=zh(T,W);return a&&(V=Kwe(V),V.pattern=n,V.objectFlags|=131072),V}function C(n,a=!1,c=!1){return n.kind===206?rr(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=nht(g),T.links.target=T,u.set(T.escapedName,T)});let _=Ps(c,u,Ye,Ye,Ye);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Ke(n){let a=ff(n),c=$at(!1);return c&&a&&a===c}function Ht(n,a,c){return n?(n.flags&4096&&Ke(a.parent)&&(n=Kge(a)),c&&ree(a,n),n.flags&8192&&(Xa(a)||!a.type)&&n.symbol!==Tr(a)&&(n=xi),Kp(n)):(n=To(a)&&a.dotDotDotToken?ec:G,c&&(gr(a)||c0(a,n)),n)}function gr(n){let a=x_(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=Wx(a)),To(a)?BZ(a.parent):!1):!1}function l_(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 _=Tr(Vn(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,Ye,Ye,Ye)}R.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Yi(c)&&qf(c))return c.statements.length?Kp(GS(po(c.statements[0].expression))):Ca;if(Nv(c))return e0(n);if(!kh(n,0))return n.flags&512&&!(n.flags&67108864)?BM(n):Xa(c)&&a===1?pt:aC(n);let u;if(c.kind===277)u=Ht(eo(c)||nc(c.expression),c);else if(pr(c)||ar(c)&&(ra(c)||(kr(c)||$F(c))&&pr(c.parent)))u=Up(n);else if(kr(c)||Ys(c)||Fe(c)||ss(c)||_p(c)||Tc(c)||Sc(c)||Hl(c)&&!Sm(c)||gh(c)||Yi(c)){if(n.flags&9136)return BM(n);u=pr(c.parent)?Up(n):eo(c)||G}else if(_c(c))u=eo(c)||UFe(c);else if(k_(c))u=eo(c)||xWe(c);else if(ep(c))u=eo(c)||sL(c.name,0);else if(Sm(c))u=eo(c)||HFe(c,0);else if(To(c)||jo(c)||hp(c)||Oi(c)||Xa(c)||pN(c))u=F(c,!0);else if(yE(c))u=BM(n);else if(Z0(c))u=fZ(n);else return R.fail("Unhandled declaration kind! "+R.formatSyntaxKind(c.kind)+" for "+R.formatSymbol(n));return J_()?u:n.flags&512&&!(n.flags&67108864)?BM(n):Xa(c)&&a===1?u:aC(n)}function Fm(n){if(n)switch(n.kind){case 177:return Qf(n);case 178:return wie(n);case 172:return R.assert(R_(n)),vd(n)}}function ZE(n){let a=Fm(n);return a&&Ti(a)}function uZ(n){let a=mbe(n);return a&&a.symbol}function Uhe(n){return i0(cm(n))}function e0(n){let a=qi(n);if(!a.type){if(!kh(n,0))return pt;let c=ul(n,177),u=ul(n,178),_=ri(ul(n,172),ku),g=c&&ar(c)&&iy(c)||ZE(c)||ZE(u)||ZE(_)||c&&c.body&&Oee(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),J_()||(Fm(c)?Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)):Fm(u)||Fm(_)?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(!kh(n,8))return pt;let c=ul(n,178)??ri(ul(n,172),ku),u=ZE(c);J_()||(Fm(c)&&Ve(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Si(n)),u=G),a.writeType=u||e0(n)}return a.writeType}function pZ(n){let a=Dp(Ff(n));return a.flags&8650752?a:a.flags&2097152?Gr(a.types,c=>!!(c.flags&8650752)):void 0}function BM(n){let a=qi(n),c=a;if(!a.type){let u=n.valueDeclaration&&kee(n.valueDeclaration,!1);if(u){let _=bve(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&&bN(n))return G;if(a&&(a.kind===226||Ls(a)&&a.parent.kind===226))return Up(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){let u=xp(n);if(u!==n){if(!kh(n,0))return pt;let _=ts(n.exports.get("export=")),g=Up(_,_===u?void 0:u);return J_()?g:aC(n)}}let c=wf(16,n);if(n.flags&32){let u=pZ(n);return u?ha([c,u]):c}else return J&&n.flags&16777216?Bb(c,!0):c}function fZ(n){let a=qi(n);return a.type||(a.type=uwe(n))}function mZ(n){let a=qi(n);if(!a.type){if(!kh(n,0))return pt;let c=Wc(n),u=n.declarations&&Vp(km(n),!0),_=Fl(u?.declarations,g=>Ll(g)?eo(g):void 0);if(a.type=u?.declarations&&Zee(u.declarations)&&n.declarations.length?$E(u):Zee(n.declarations)?tt:_||(Ad(c)&111551?cr(c):pt),!J_())return aC(u??n),a.type=pt}return a.type}function Hhe(n){let a=qi(n);return a.type||(a.type=io(cr(a.target),a.mapper))}function Khe(n){let a=qi(n);return a.writeType||(a.writeType=io(LS(a.target),a.mapper))}function aC(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=km(n);c&&Ve(c,f.Circular_definition_of_import_alias_0,Si(n))}return G}function _Z(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):ha(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?ti(a.deferralWriteConstituents):ha(a.deferralWriteConstituents)),a.writeType}function LS(n){let a=Al(n);return n.flags&4?a&2?a&65536?XB(n)||_Z(n):n.links.writeType||n.links.type:Gb(cr(n),!!(n.flags&16777216)):n.flags&98304?a&1?Khe(n):JB(n):cr(n)}function cr(n,a){let c=Al(n);return c&65536?_Z(n):c&1?Hhe(n):c&262144?hat(n):c&8192?Nct(n):n.flags&7?l_(n,a):n.flags&9136?BM(n):n.flags&8?fZ(n):n.flags&98304?e0(n):n.flags&2097152?mZ(n):pt}function Db(n){return Gb(cr(n),!!(n.flags&16777216))}function Cb(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 sC(n,a){return c(n);function c(u){if(Lr(u)&7){let _=sv(u);return _===a||gt(Cp(_),c)}else if(u.flags&2097152)return gt(u.types,c);return!1}}function t0(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=Bl(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,FOe(n));let _=t0(u,Dv(n)),g=a&&(n.kind===263||n.kind===231||n.kind===264||Z_(n))&&Ff(Tr(n)).thisType;return g?Tn(_,g):_}case 348:let c=K2(n);c&&(n=c.valueDeclaration);break;case 327:{let u=Rn(n,a);return n.tags?t0(u,ya(n.tags,_=>rm(_)?_.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||Z_(c)||j2(c))&&(a=t0(a,Dv(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 ns(n){if(Ko(n,1).length>0)return!0;if(n.flags&8650752){let a=Bd(n);return!!a&&Mi(a)}return!1}function As(n){let a=Og(n.symbol);return a&&A_(a)}function eu(n,a,c){let u=Nn(a),_=ar(c);return Vr(Ko(n,1),g=>(_||u>=Wh(g.typeParameters))&&u<=Nn(g.typeParameters))}function wh(n,a,c){let u=eu(n,a,c),_=mn(a,Ti);return Pc(u,g=>gt(g.typeParameters)?S8(g,_,ar(c)):g)}function Dp(n){if(!n.resolvedBaseConstructorType){let a=Og(n.symbol),c=a&&A_(a),u=As(n);if(!u)return n.resolvedBaseConstructorType=Le;if(!kh(n,1))return pt;let _=po(u.expression);if(c&&u!==c&&(R.assert(!c.typeArguments),po(c.expression)),_.flags&2621440&&u_(_),!J_())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&&!ns(_)){let g=Ve(u.expression,f.Type_0_is_not_a_constructor_function_type,jn(_));if(_.flags&262144){let T=jM(_),M=un;if(T){let W=Ko(T,1);W[0]&&(M=us(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),jn(M)))}return n.resolvedBaseConstructorType=pt}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function c_(n){let a=Ye;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=dR(c);if(u)for(let _ of u){let g=Ti(_);Ut(g)||(a===Ye?a=[g]:a.push(g))}}return a}function sy(n,a){Ve(n,f.Type_0_recursively_references_itself_as_a_base_type,jn(a,void 0,2))}function Cp(n){if(!n.baseTypesResolved){if(kh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[lC(n)]:n.symbol.flags&96?(n.symbol.flags&32&&g8(n),n.symbol.flags&64&&Hot(n)):R.fail("type must be class or interface"),!J_()&&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 lC(n){let a=Pc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?Np(c,It):c);return Gd(ti(a||Ye),n.readonly)}function g8(n){n.resolvedBaseTypes=J6;let a=Mu(Dp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Ye;let c=As(n),u,_=a.symbol?Qs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Uot(_))u=Jwe(c,a.symbol);else if(a.flags&1)u=a;else{let T=wh(a,c.typeArguments,c);if(!T.length)return Ve(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Ye;u=us(T[0])}if(Ut(u))return n.resolvedBaseTypes=Ye;let g=p_(u);if(!YB(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,jn(g));return Za.add(Mg(Vn(c.expression),c.expression,M)),n.resolvedBaseTypes=Ye}return n===g||sC(g,n)?(Ve(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,jn(n,void 0,2)),n.resolvedBaseTypes=Ye):(n.resolvedBaseTypes===J6&&(n.members=void 0),n.resolvedBaseTypes=[g])}function Uot(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 Hot(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Ye,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&NN(a))for(let c of NN(a)){let u=p_(Ti(c));Ut(u)||(YB(u)?n!==u&&!sC(u,n)?n.resolvedBaseTypes===Ye?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 Kot(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=NN(a);if(c){for(let u of c)if(Gl(u.expression)){let _=js(u.expression,788968,!0);if(!_||!(_.flags&64)||Ff(_).thisType)return!1}}}return!0}function Ff(n){let a=qi(n),c=a;if(!a.declaredType){let u=n.flags&32?1:2,_=bve(n,n.valueDeclaration&&kpt(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=wf(u,n),T=Or(n),M=Nr(n);(T||M||u===1||!Kot(n))&&(g.objectFlags|=4,g.typeParameters=bo(T,M),g.outerTypeParameters=T,g.localTypeParameters=M,g.instantiations=new Map,g.instantiations.set(dm(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 lwe(n){var a;let c=qi(n);if(!c.declaredType){if(!kh(n,2))return pt;let u=R.checkDefined((a=n.declarations)==null?void 0:a.find(j2),"Type alias symbol with no valid declaration found"),_=Xf(u)?u.typeExpression:u.type,g=_?Ti(_):pt;if(J_()){let T=Nr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(dm(T),g))}else g=pt,u.kind===347?Ve(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,Si(n)):Ve(ou(u)&&u.name||u,f.Type_alias_0_circularly_references_itself,Si(n));c.declaredType=g}return c.declaredType}function hZ(n){return n.flags&1056&&n.symbol.flags&8?Qs(Cu(n.symbol)):n}function cwe(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(cC(g)){let T=Tr(g),M=CC(g),W=fx(M!==void 0?ult(M,va(n),T):dwe(T));qi(T).declaredType=W,c.push(yu(W))}}}let u=c.length?ti(c,1,n,void 0):dwe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function dwe(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 uwe(n){let a=qi(n);if(!a.declaredType){let c=cwe(Cu(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function kA(n){let a=qi(n);return a.declaredType||(a.declaredType=_f(n))}function Jot(n){let a=qi(n);return a.declaredType||(a.declaredType=Qs(Wc(n)))}function Qs(n){return pwe(n)||pt}function pwe(n){if(n.flags&96)return Ff(n);if(n.flags&524288)return lwe(n);if(n.flags&262144)return kA(n);if(n.flags&384)return cwe(n);if(n.flags&8)return uwe(n);if(n.flags&2097152)return Jot(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 qot(n){let a=zx(n);return!a||$B(a)}function fwe(n){let a=vd(n);return a?$B(a):!Lv(n)}function Xot(n){let a=Qf(n),c=Dv(n);return(n.kind===176||!!a&&$B(a))&&n.parameters.every(fwe)&&c.every(qot)}function Yot(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return fwe(a);case 174:case 173:case 176:case 177:case 178:return Xot(a)}}return!1}function mwe(n,a,c){let u=oa();for(let _ of n)u.set(_.escapedName,c&&Yot(_)?_:Xge(_,a));return u}function _we(n,a){for(let c of a){if(hwe(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&pr(u.valueDeclaration)&&!iC(u)&&!die(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function hwe(n){return!!n.valueDeclaration&&au(n.valueDeclaration)&&na(n.valueDeclaration)}function Jhe(n){if(!n.declaredProperties){let a=n.symbol,c=Nb(a);n.declaredProperties=qE(c),n.declaredCallSignatures=Ye,n.declaredConstructSignatures=Ye,n.declaredIndexInfos=Ye,n.declaredCallSignatures=kS(c.get("__call")),n.declaredConstructSignatures=kS(c.get("__new")),n.declaredIndexInfos=jwe(a)}return n}function qhe(n){if(!$a(n)&&!Ys(n))return!1;let a=$a(n)?n.expression:n.argumentExpression;return Gl(a)&&Zf($a(n)?Sg(n):nc(a))}function y8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function QB(n){let a=No(n);return!!a&&qhe(a)}function cC(n){return!Wv(n)||QB(n)}function $ot(n){return i6(n)&&!qhe(n)}function Qot(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 gwe(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=Ys(g)?nc(g.argumentExpression):Sg(g);if(Zf(T)){let M=em(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,Qot(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?DA(n).exports:n.exports:n.members;c[a]=_||K;let g=oa();for(let W of n.declarations||Ye){let V=nie(W);if(V)for(let te of V)u===fc(te)&&QB(te)&&gwe(n,_,g,te)}let T=RS(n).assignmentDeclarationMembers;if(T){let W=Oo(T.values());for(let V of W){let te=Bl(V),ye=te===3||pr(V)&&yee(V,te)||te===9||te===6;u===!ye&&QB(V)&&gwe(n,_,g,V)}}let M=Y1(_,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,am(_e,te))}})}c[a]=M||K}return c[a]}function Nb(n){return n.flags&6256?Xhe(n,"resolvedMembers"):n.members||K}function gZ(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=qi(n);if(!a.lateSymbol&>(n.declarations,QB)){let c=ts(n.parent);gt(n.declarations,fc)?Rp(c):Nb(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Hp(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=Pc(n.types,_=>Hp(_,a,c));return u!==n.types?ha(u):n}return c?Mu(n):n}function ywe(n,a,c,u){let _,g,T,M,W;BG(c,u,0,c.length)?(g=a.symbol?Nb(a.symbol):oa(a.declaredProperties),T=a.declaredCallSignatures,M=a.declaredConstructSignatures,W=a.declaredIndexInfos):(_=Pp(c,u),g=mwe(a.declaredProperties,_,c.length===1),T=FZ(a.declaredCallSignatures,_),M=FZ(a.declaredConstructSignatures,_),W=UOe(a.declaredIndexInfos,_));let V=Cp(a);if(V.length){if(a.symbol&&g===Nb(a.symbol)){let ye=oa(a.declaredProperties),_e=mge(a.symbol);_e&&ye.set("__index",_e),g=ye}hf(n,g,T,M,W);let te=Zs(u);for(let ye of V){let _e=te?Hp(io(ye,_),te):ye;_we(g,_s(_e)),T=bo(T,Ko(_e,0)),M=bo(M,Ko(_e,1));let je=_e!==G?hu(_e):[Fh(Ne,G,!1)];W=bo(W,Vr(je,mt=>!sge(W,mt.keyType)))}}hf(n,g,T,M,W)}function Zot(n){ywe(n,Jhe(n),Ye,Ye)}function eat(n){let a=Jhe(n.target),c=bo(a.typeParameters,[a.thisType]),u=Hs(n),_=u.length===c.length?u:bo(u,[n]);ywe(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 v8(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 vwe(n,a){let c=v8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function tat(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]=nat(n,a))}function nat(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=v8(n);return c.flags|=a,c}function bwe(n,a){if(Xd(n)){let _=n.parameters.length-1,g=n.parameters[_].escapedName,T=cr(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]:iL(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=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 rat(n){let a=Dp(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,Ye,n,void 0,0,_?4:0)];let g=As(n),T=ar(g),M=a5(g),W=Nn(M),V=[];for(let te of c){let ye=Wh(te.typeParameters),_e=Nn(te.typeParameters);if(T||W>=ye&&W<=_e){let je=_e?SZ(te,Mb(M,te.typeParameters,ye,T)):v8(te);je.typeParameters=n.localTypeParameters,je.resolvedReturnType=n,je.flags=_?je.flags|4:je.flags&-5,V.push(je)}}return V}function yZ(n,a,c,u,_){for(let g of n)if(E5(g,a,c,u,_,c?Nlt:P8))return g}function iat(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||!yZ(a,_,!1,!1,!0)){let g=iat(n,_,u);if(g){let T=_;if(g.length>1){let M=_.thisParameter,W=gn(g,V=>V.thisParameter);if(W){let V=ha(to(g,te=>te.thisParameter&&cr(te.thisParameter)));M=KA(W,V)}T=vwe(_,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&&!Ewe(T.typeParameters,M.typeParameters))?void 0:mn(_,M=>sat(M,T)),!_)break}a=_}return a||Ye}function Ewe(n,a){if(Nn(n)!==Nn(a))return!1;if(!n||!a)return!0;let c=Pp(a,n);for(let u=0;u=_?n:a,T=g===n?a:n,M=g===n?u:_,W=Gh(n)||Gh(a),V=W&&!Gh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=eh(g)&&ye>=eh(T),sn=ye>=u?void 0:iL(n,ye),ir=ye>=_?void 0:iL(a,ye),Mn=sn===ir?sn:sn?ir?void 0:sn:ir,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(__(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function sat(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Pp(a.typeParameters,n.typeParameters));let _=n.declaration,g=aat(n,a,u),T=oat(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?BS(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(W.mapper=n.mapper),W}function Swe(n){let a=hu(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;oo(n,g=>!!Eg(g,_))&&c.push(Fh(_,ti(mn(n,g=>r0(g,_))),gt(n,g=>Eg(g,_).isReadonly)))}return c}return Ye}function lat(n){let a=Yhe(mn(n.types,_=>_===Lt?[cn]:Ko(_,0))),c=Yhe(mn(n.types,_=>Ko(_,1))),u=Swe(n.types);hf(n,K,a,c,u)}function ZB(n,a){return n?a?ha([n,a]):n:a}function Twe(n){let a=vv(n,u=>Ko(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 cat(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=v8(te);return ye.resolvedReturnType=cat(us(te),_,g,M),ye})),c=Awe(c,V)}a=Awe(a,Ko(W,0)),u=nu(hu(W),(V,te)=>Iwe(V,te,!1),u)}hf(n,K,a||Ye,c||Ye,u||Ye)}function Awe(n,a){for(let c of a)(!n||oo(n,u=>!E5(u,c,!1,!1,!1,P8)))&&(n=Tn(n,c));return n}function Iwe(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(hf(n,c,Ye,Ye,Ye),a.flags&32){let T=Ff(a),M=Dp(T);M.flags&11272192?(c=oa(NA(c)),_we(c,_s(M))):M===G&&(_=Fh(Ne,G,!1))}let g=TZ(c);if(g?u=_ge(g):(_&&(u=Tn(u,_)),a.flags&384&&(Qs(a).flags&32||gt(n.properties,T=>!!(cr(T).flags&296)))&&(u=Tn(u,Fr))),hf(n,c,Ye,Ye,u||Ye),a.flags&8208&&(n.callSignatures=kS(a)),a.flags&32){let T=Ff(a),M=a.members?kS(a.members.get("__constructor")):Ye;a.flags&16&&(M=Ur(M.slice(),to(n.callSignatures,W=>Z_(W.declaration)?bg(W.declaration,W.typeParameters,W.thisParameter,W.parameters,T,void 0,W.minArgumentCount,W.flags&167):void 0))),M.length||(M=rat(T)),n.constructSignatures=M}}function pat(n,a,c){return io(n,Pp([a.indexType,a.objectType],[f_(0),zh([c])]))}function fat(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=ha(c.types.filter(_=>_!==n.constraintType));return u!==Wr?u:void 0}function mat(n){let a=Eg(n.source,Ne),c=Oh(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[Fh(Ne,oee(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Ye,T=oa(),M=fat(n);for(let W of _s(n.source)){if(M){let ye=_C(W,8576);if(!ga(ye,M))continue}let V=8192|(u&&h_(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=cr(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=pat(n.mappedType,n.constraintType.type,ye);te.links.mappedType=_e,te.links.constraintType=X_(ye)}else te.links.mappedType=n.mappedType,te.links.constraintType=n.constraintType;T.set(W.escapedName,te)}hf(n,T,Ye,Ye,g)}function e5(n){if(n.flags&4194304){let a=Mu(n.type);return zb(a)?_Oe(a):X_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=e5(a);if(c!==a)return $ge(n,UA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return dl(n,e5,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===sc?n:ha(Pc(n.types,e5))}return n}function $he(n){return Al(n)&4096}function Qhe(n,a,c,u){for(let _ of _s(n))u(_C(_,a));if(n.flags&1)u(Ne);else for(let _ of hu(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function _at(n){let a=oa(),c;hf(n,K,Ye,Ye,Ye);let u=d_(n),_=gf(n),g=n.target||n,T=lv(g),M=vZ(g)!==2,W=ly(g),V=Mu(wA(n)),te=Oh(n),ye=Ce?128:8576;dC(n)?Qhe(V,ye,Ce,_e):YA(e5(_),_e),hf(n,a,Ye,Ye,c||Ye);function _e(mt){let At=T?io(T,D8(n.mapper,u,mt)):mt;YA(At,rn=>je(mt,rn))}function je(mt,At){if(Zf(At)){let rn=em(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 ir=Zf(mt)?_a(V,em(mt)):void 0,Mn=!!(te&4||!(te&8)&&ir&&ir.flags&16777216),an=!!(te&1||!(te&2)&&ir&&h_(ir)),On=J&&!Mn&&ir&&ir.flags&16777216,Ln=ir?$he(ir):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,ir&&($n.links.syntheticOrigin=ir,$n.declarations=M?ir.declarations:void 0),a.set(rn,$n)}}else if(AZ(At)||At.flags&33){let rn=At.flags&5?Ne:At.flags&40?It:At,sn=io(W,D8(n.mapper,u,mt)),ir=b8(V,At),Mn=!!(te&1||!(te&2)&&ir?.isReadonly),an=Fh(rn,sn,Mn);c=Iwe(c,an,!0)}}}function hat(n){if(!n.links.type){let a=n.links.mappedType;if(!kh(n,0))return a.containsError=!0,pt;let c=ly(a.target||a),u=D8(a.mapper,d_(a),n.links.keyType),_=io(c,u),g=J&&n.flags&16777216&&!Dl(_,49152)?Bb(_,!0):n.links.checkFlags&524288?eee(_):_;J_()||(Ve(D,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Si(n),jn(a)),g=pt),n.links.type=g}return n.links.type}function d_(n){return n.typeParameter||(n.typeParameter=kA(Tr(n.declaration.typeParameter)))}function gf(n){return n.constraintType||(n.constraintType=Pu(d_(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(ap(Ti(n.declaration.type),!0,!!(Oh(n)&4)),n.mapper):pt)}function xwe(n){return zx(n.declaration.typeParameter)}function dC(n){let a=xwe(n);return a.kind===198&&a.operator===143}function wA(n){if(!n.modifiersType)if(dC(n))n.modifiersType=io(Ti(xwe(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 Oh(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 Rwe(n){let a=Oh(n);return a&8?-1:a&4?1:0}function Zhe(n){let a=Rwe(n),c=wA(n);return a||(Hu(c)?Rwe(c):0)}function gat(n){return!!(Lr(n)&32&&Oh(n)&4)}function Hu(n){if(Lr(n)&32){let a=gf(n);if(jA(a))return!0;let c=lv(n);if(c&&jA(io(c,zS(d_(n),a))))return!0}return!1}function vZ(n){let a=lv(n);return a?ga(a,d_(n))?1:2:0}function u_(n){return n.members||(n.flags&524288?n.objectFlags&4?eat(n):n.objectFlags&3?Zot(n):n.objectFlags&1024?mat(n):n.objectFlags&16?uat(n):n.objectFlags&32?_at(n):R.fail("Unhandled object type "+R.formatObjectFlags(n.objectFlags)):n.flags&1048576?lat(n):n.flags&2097152?dat(n):R.fail("Unhandled type "+R.formatTypeFlags(n.flags))),n}function Pb(n){return n.flags&524288?u_(n).properties:Ye}function n0(n,a){if(n.flags&524288){let u=u_(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&&hu(c).length===0)break}n.resolvedProperties=qE(a)}return n.resolvedProperties}function _s(n){return n=GM(n),n.flags&3145728?t5(n):Pb(n)}function yat(n,a){n=GM(n),n.flags&3670016&&u_(n).members.forEach((c,u)=>{ix(c,u)&&a(c,u)})}function vat(n,a){return a.properties.some(u=>{let _=u.name&&($m(u.name)?Ku(vk(u.name)):uv(u.name)),g=_&&Zf(_)?em(_):void 0,T=g===void 0?void 0:Ue(n,g);return!!T&&k8(T)&&!ga(gx(u),T)})}function bat(n){let a=ti(n);if(!(a.flags&1048576))return sbe(a);let c=oa();for(let u of n)for(let{escapedName:_}of sbe(u))if(!c.has(_)){let g=kwe(a,_);g&&c.set(_,g)}return Oo(c.values())}function OA(n){return n.flags&262144?Pu(n):n.flags&8388608?Sat(n):n.flags&16777216?Nwe(n):Bd(n)}function Pu(n){return n5(n)?jM(n):void 0}function Eat(n,a){let c=C8(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(Nwe(n),a+1)||n.flags&33554432&&WA(n.baseType,a)||Lr(n)&32&&Eat(n,a)||zb(n)&&Jl(OS(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&WA(u,a))>=0))}function Sat(n){return n5(n)?Tat(n):void 0}function ege(n){let a=uy(n,!1);return a!==n?a:OA(n)}function Tat(n){if(ige(n))return MZ(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=olt(n),c=a0(n);n.resolvedDefaultConstraint=xt(a)?c:xt(c)?a:ti([a,c])}return n.resolvedDefaultConstraint}function Dwe(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=$ge(n,UA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function Cwe(n){return Dwe(n)||tge(n)}function Nwe(n){return n5(n)?Cwe(n):void 0}function Aat(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||Bh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||Bh(_))&&(c=Tn(c,_));return y5(ha(c),!1)}}function Bd(n){if(n.flags&464781312||zb(n)){let a=nge(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 nge(n)!==rd}function nge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!kh(g,4))return rd;let T,M=qZ(g);if((a.length<10||a.length<50&&!zo(a,M))&&(a.push(M),T=_(uy(g,!1)),a.pop()),!J_()){if(g.flags&262144){let W=hge(g);if(W){let V=Ve(W,f.Type_parameter_0_has_a_circular_constraint,jn(g));D&&!M0(W,D)&&!M0(D,W)&&Pa(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=jM(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?ha(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?ux(g.symbol,T):Ne}if(g.flags&8388608){if(ige(g))return u(MZ(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=Cwe(g);return T&&u(T)}if(g.flags&33554432)return u(Ege(g));if(zb(g)){let T=mn(OS(g),(M,W)=>{let V=M.flags&262144&&g.target.elementFlags[W]&8&&u(M)||M;return V!==M&&sp(V,te=>l0(te)&&!zb(te))?V:M});return zh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function Iat(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Hp(n,a,!0))}function rge(n){if(n.default)n.default===pd&&(n.default=rd);else if(n.target){let a=rge(n.target);n.default=a?io(a,n.mapper):Gs}else{n.default=pd;let a=n.symbol&&gn(n.symbol.declarations,u=>_l(u)&&u.default),c=a?Ti(a):Gs;n.default===pd&&(n.default=c)}return n.default}function FA(n){let a=rge(n);return a!==Gs&&a!==rd?a:void 0}function xat(n){return rge(n)!==rd}function Pwe(n){return!!(n.symbol&&gn(n.symbol.declarations,a=>_l(a)&&a.default))}function Mwe(n){return n.resolvedApparentType||(n.resolvedApparentType=Rat(n))}function Rat(n){let a=n.target??n,c=C8(a);if(c&&!a.declaration.nameType){let u=wA(n),_=Hu(u)?Mwe(u):Bd(u);if(_&&sp(_,g=>l0(g)||Lwe(g)))return io(a,UA(c,_,n.mapper))}return n}function Lwe(n){return!!(n.flags&2097152)&&oo(n.types,l0)}function ige(n){let a;return!!(n.flags&8388608&&Lr(a=n.objectType)&32&&!Hu(a)&&jA(n.indexType)&&!(Oh(a)&8)&&!a.declaration.nameType)}function Mu(n){let a=n.flags&465829888?Bd(n)||un:n,c=Lr(a);return c&32?Mwe(a):c&4&&a!==n?Hp(a,n):a.flags&2097152?Iat(a,n):a.flags&402653316?Zl:a.flags&296?yc:a.flags&2112?dst():a.flags&528?cl:a.flags&12288?aOe():a.flags&67108864?Ca:a.flags&4194304?Os:a.flags&2&&!J?Ca:a}function GM(n){return p_(Mu(p_(n)))}function kwe(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 Un=Mu($n);if(!(Ut(Un)||Un.flags&131072)){let Qn=_a(Un,a,c),xo=Qn?Af(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((RC(Qn)||Qn)===(RC(T)||T)&&sye(T,Qn,(Wo,fo)=>Wo===fo?-1:0)===-1)je=!!T.parent&&!!Nn(Nr(T.parent));else{M||(M=new Map,M.set(va(T),T));let Wo=va(Qn);M.has(Wo)||M.set(Wo,Qn)}V&&h_(Qn)?_e|=8:!V&&!h_(Qn)&&(_e&=-9),_e|=(xo&6?0:256)|(xo&4?512:0)|(xo&2?1024:0)|(xo&256?2048:0),rve(Qn)||(ye=2)}else if(V){let vo=!y8(a)&&cx(Un,a);vo?(_e|=32|(vo.isReadonly?8:0),W=Tn(W,wa(Un)?$Z(Un)||Le:vo.type)):u0(Un)&&!(Lr(Un)&2097152)?(_e|=32,W=Tn(W,Le)):_e|=16}}}if(!T||V&&(M||_e&48)&&_e&1536&&!(M&&Dat(M.values())))return;if(!M&&!(_e&16)&&!W)if(je){let $n=(u=ri(T,uh))==null?void 0:u.links,Un=KA(T,$n?.type);return Un.parent=(g=(_=T.valueDeclaration)==null?void 0:_.symbol)==null?void 0:g.parent,Un.links.containingType=n,Un.links.mapper=$n?.mapper,Un.links.writeType=LS(T),Un}else return T;let mt=M?Oo(M.values()):[T],At,rn,sn,ir=[],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 Un=cr($n);rn||(rn=Un,sn=qi($n).nameType);let Qn=LS($n);(Mn||Qn!==Un)&&(Mn=Tn(Mn||ir.slice(),Qn)),Un!==rn&&(_e|=64),(k8(Un)||GA(Un))&&(_e|=128),Un.flags&131072&&Un!==dd&&(_e|=131072),ir.push(Un)}Ur(ir,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,ir.length>2?(Ln.links.checkFlags|=65536,Ln.links.deferralParent=n,Ln.links.deferralConstituents=ir,Ln.links.deferralWriteConstituents=Mn):(Ln.links.type=V?ti(ir):ha(ir),Mn&&(Ln.links.writeType=V?ti(Mn):ha(Mn))),Ln}function wwe(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=kwe(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 Dat(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=wwe(n,a,c);return u&&!(Al(u)&16)?u:void 0}function p_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Cat(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(gt(t5(n),Nat)?33554432:0)),n.objectFlags&33554432?Wr:n):n}function Cat(n){let a=Pc(n.types,p_);if(a===n.types)return n;let c=ti(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Nat(n){return Owe(n)||Wwe(n)}function Owe(n){return!(n.flags&16777216)&&(Al(n)&131264)===192&&!!(cr(n).flags&131072)}function Wwe(n){return!n.valueDeclaration&&!!(Al(n)&1024)}function oge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&>(n.types,oge)||n.flags&2097152&&Pat(n))}function Pat(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,mo));return p_(a)!==a}function age(n,a){if(a.flags&2097152&&Lr(a)&33554432){let c=Gr(t5(a),Owe);if(c)return Fo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,jn(a,void 0,536870912),Si(c));let u=Gr(t5(a),Wwe);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,jn(a,void 0,536870912),Si(u))}return n}function _a(n,a,c,u){var _,g;if(n=GM(n),n.flags&524288){let T=u_(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?Hn:T.constructSignatures.length?go:void 0;if(W){let V=n0(W,a);if(V)return V}return n0(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=u_(n);return a===0?c.callSignatures:c.constructSignatures}return Ye}function Ko(n,a){let c=i5(GM(n),a);if(a===0&&!Nn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let u;if(sp(n,_=>{var g;return!!((g=_.symbol)!=null&&g.parent)&&Mat(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=dl(n,T=>Ob((Fwe(T.symbol.parent)?Qo:qo).typeParameters[0],T.mapper)),g=Gd(_,Bm(n,T=>Fwe(T.symbol.parent)));return n.arrayFallbackSignatures=Ko(Ue(g,u),a)}n.arrayFallbackSignatures=c}return c}function Mat(n){return!n||!qo.symbol||!Qo.symbol?!1:!!a_(n,qo.symbol)||!!a_(n,Qo.symbol)}function Fwe(n){return!n||!Qo.symbol?!1:!!a_(n,Qo.symbol)}function sge(n,a){return Gr(n,c=>c.keyType===a)}function lge(n,a){let c,u,_;for(let g of n)g.keyType===Ne?c=g:lx(a,g.keyType)&&(u?(_||(_=[u])).push(g):u=g);return _?Fh(un,ha(mn(_,g=>g.type)),nu(_,(g,T)=>g&&T.isReadonly,!0)):u||(c&&lx(a,Ne)?c:void 0)}function lx(n,a){return ga(n,a)||a===Ne&&ga(n,It)||a===It&&(n===ls||!!(n.flags&128)&&ig(n.value))}function cge(n){return n.flags&3670016?u_(n).indexInfos:Ye}function hu(n){return cge(GM(n))}function Eg(n,a){return sge(hu(n),a)}function r0(n,a){var c;return(c=Eg(n,a))==null?void 0:c.type}function dge(n,a){return hu(n).filter(c=>lx(a,c.keyType))}function b8(n,a){return lge(hu(n),a)}function cx(n,a){return b8(n,y8(a)?xi:Ku(Vi(a)))}function zwe(n){var a;let c;for(let u of Dv(n))c=xg(c,kA(u.symbol));return c?.length?c:Sc(n)?(a=VM(n))==null?void 0:a.typeParameters:void 0}function uge(n){let a=[];return n.forEach((c,u)=>{CS(u)||a.push(c)}),a}function bZ(n,a){if($c(n))return;let c=Uu(be,'"'+n+'"',512);return c&&a?ts(c):c}function E8(n){if(NI(n)||gk(n)||yk(n))return!0;if(n.initializer){let c=cm(n.parent),u=n.parent.parameters.indexOf(n);return R.assert(u>=0),u>=eh(c,3)}let a=gT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Mee(a).length:!1}function Lat(n){return jo(n)&&!R_(n)&&n.questionToken}function o5(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function Wh(n){let a=0;if(n)for(let c=0;c=c&&g<=_){let T=n?n.slice():[];for(let W=g;W<_;W++)T[W]=pt;let M=xye(u);for(let W=g;W<_;W++){let V=FA(a[W]);u&&V&&(py(V,un)||py(V,Ca))&&(V=G),T[W]=V?io(V,Pp(a,T)):M}return T.length=a.length,T}return n&&n.slice()}function cm(n){let a=Qr(n);if(!a.resolvedSignature){let c=[],u=0,_=0,g,T=ar(n)?iF(n):void 0,M=!1,W=gT(n),V=sR(n);!W&&ar(n)&&Sie(n)&&!tre(n)&&!iE(n)&&(u|=32);for(let mt=V?1:0;mtW.arguments.length&&!sn||yk(At)||(_=c.length)}if((n.kind===177||n.kind===178)&&cC(n)&&(!M||!g)){let mt=n.kind===177?178:177,At=ul(Tr(n),mt);At&&(g=uZ(At))}T&&T.typeExpression&&(g=KA(Ka(1,"this"),Ti(T.typeExpression)));let ye=bE(n)?uE(n):n,_e=ye&&Pl(ye)?Ff(ts(ye.parent.symbol)):void 0,je=_e?_e.localTypeParameters:zwe(n);(VV(n)||ar(n)&&kat(n,c))&&(u|=1),(PR(n)&&$r(n,64)||Pl(n)&&$r(n.parent,64))&&(u|=4),a.resolvedSignature=bg(n,je,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function kat(n,a){if(bE(n)||!pge(n))return!1;let c=Zs(n.parameters),u=c?Fx(c):oE(n).filter(Zm),_=Fl(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=[ec],g.links.deferralWriteConstituents=[ec]),_&&a.pop(),a.push(g),!0}function VM(n){if(!(ar(n)&&Fs(n)))return;let a=rE(n);return a?.typeExpression&&eI(Ti(a.typeExpression))}function wat(n,a){let c=VM(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?X5(c,u):__(c,u)}function Oat(n){let a=VM(n);return a&&us(a)}function pge(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===Ft.escapedName&&rW(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!Lj(u)&&!Yh(u)&&!!Bo(u,c)}}}function kS(n){if(!n||!n.declarations)return Ye;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(ar(u)&&u.jsDoc){let _=Tj(u);if(Nn(_)){for(let g of _){let T=g.typeExpression;T.type===void 0&&!Pl(u)&&c0(T,G),a.push(cm(T))}continue}}a.push(!G0(u)&&!Sm(u)&&VM(u)||cm(u))}}return a}function Bwe(n){let a=_u(n,n);if(a){let c=xp(a);if(c)return cr(c)}return G}function i0(n){if(n.thisParameter)return cr(n.thisParameter)}function zf(n){if(!n.resolvedTypePredicate){if(n.target){let a=zf(n.target);n.resolvedTypePredicate=a?blt(a,n.mapper):Me}else if(n.compositeSignatures)n.resolvedTypePredicate=wst(n.compositeSignatures,n.compositeKind)||Me;else{let a=n.declaration&&Qf(n.declaration),c;if(!a){let u=VM(n.declaration);u&&n!==u&&(c=zf(u))}n.resolvedTypePredicate=a&&zk(a)?Wat(a,n):c||Me}R.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Me?void 0:n.resolvedTypePredicate}function Wat(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,Jl(a.parameters,_=>_.escapedName===c.escapedText),u)}function Gwe(n,a,c){return a!==2097152?ti(n,c):ha(n)}function us(n){if(!n.resolvedReturnType){if(!kh(n,3))return pt;let a=n.target?io(us(n.target),n.mapper):n.compositeSignatures?io(Gwe(mn(n.compositeSignatures,us),n.compositeKind,2),n.mapper):uC(n.declaration)||(zl(n.declaration.body)?G:Oee(n.declaration));if(n.flags&8?a=E8e(a):n.flags&16&&(a=Bb(a)),!J_()){if(n.declaration){let c=Qf(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 uC(n){if(n.kind===176)return Ff(ts(n.parent.symbol));let a=Qf(n);if(bE(n)){let c=lR(n);if(c&&Pl(c.parent)&&!a)return Ff(ts(c.parent.parent.symbol))}if(sR(n))return Ti(n.parameters[0].type);if(a)return Ti(a);if(n.kind===177&&cC(n)){let c=ar(n)&&iy(n);if(c)return c;let u=ul(Tr(n),178),_=ZE(u);if(_)return _}return Oat(n)}function EZ(n){return n.compositeSignatures&>(n.compositeSignatures,EZ)||!n.resolvedReturnType&&ax(n,3)>=0}function Fat(n){return Vwe(n)||G}function Vwe(n){if(Xd(n)){let a=cr(n.parameters[n.parameters.length-1]),c=wa(a)?$Z(a):a;return c&&r0(c,It)}}function S8(n,a,c,u){let _=fge(n,Mb(a,n.typeParameters,Wh(n.typeParameters),c));if(u){let g=eFe(us(_));if(g){let T=v8(g);T.typeParameters=u;let M=v8(_);return M.resolvedReturnType=zA(T),M}}return _}function fge(n,a){let c=n.instantiations||(n.instantiations=new Map),u=dm(a),_=c.get(u);return _||c.set(u,_=SZ(n,a)),_}function SZ(n,a){return yC(n,zat(n,a),!0)}function zat(n,a){return Pp(n.typeParameters,a)}function T8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Bat(n)):n}function Bat(n){return yC(n,HOe(n.typeParameters),!0)}function Gat(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Vat(n)):n}function Vat(n){return S8(n,mn(n.typeParameters,a=>a.target&&!Pu(a.target)?a.target:a),ar(n.declaration))}function jat(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=HOe(a),u=Pp(a,mn(a,g=>Pu(g)||un)),_=mn(a,g=>io(g,u)||un);for(let g=0;g{AZ(_)&&!sge(a,_)&&a.push(Fh(_,c.type?Ti(c.type):G,mp(c,8),c))})}return a}return Ye}function AZ(n){return!!(n.flags&4108)||GA(n)||!!(n.flags&2097152)&&!hC(n)&>(n.types,AZ)}function hge(n){return to(Vr(n.symbol&&n.symbol.declarations,_l),zx)[0]}function Uwe(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()=>imt(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,zS(kA(Tr(M.typeParameter)),M.typeParameter.constraint?Ti(M.typeParameter.constraint):Os)))}}}return u&&ha(u)}function jM(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=Uwe(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 Hwe(n){let a=ul(n.symbol,168),c=rm(a.parent)?e6(a.parent):a.parent;return c&&ff(c)}function dm(n){let a="";if(n){let c=n.length,u=0;for(;u1&&(a+=":"+g),u+=g}}return a}function dx(n,a){return n?`@${va(n)}`+(a?`:${dm(a)}`:""):""}function IZ(n,a){let c=0;for(let u of n)(a===void 0||!(u.flags&a))&&(c|=Lr(u));return c&458752}function pC(n,a){return gt(a)&&n===Mo?un:cv(n,a)}function cv(n,a){let c=dm(a),u=n.instantiations.get(c);return u||(u=wf(4,n.symbol),n.instantiations.set(c,u),u.objectFlags|=a?IZ(a):0,u.target=n,u.resolvedTypeArguments=a),u}function Kwe(n){let a=yg(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=px(a);let T=gC(u);_=c?pv(T,c):T}let g=wf(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(!kh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>pt))||Ye;let u=n.node,_=u?u.kind===183?bo(n.target.outerTypeParameters,Gee(u,n.target.localTypeParameters)):u.kind===188?[Ti(u.elementType)]:mn(u.elements,Ti):Ye;J_()?n.resolvedTypeArguments=n.mapper?pv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>pt))||Ye,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 Jwe(n,a){let c=Qs(ts(a)),u=c.localTypeParameters;if(u){let _=Nn(n.typeArguments),g=Wh(u),T=ar(n);if(!(!fe&&T)&&(_u.length)){let V=T&&Gy(n)&&!d1(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=jn(c,void 0,2);if(Ve(n,te,ye,g,u.length),!T)return pt}if(n.kind===183&&fOe(n,Nn(n.typeArguments)!==u.length))return gge(c,n,void 0);let W=bo(c.outerTypeParameters,Mb(a5(n),u,g,T));return cv(c,W)}return wS(n,a)?c:pt}function fC(n,a,c,u){let _=Qs(n);if(_===dn){let V=w3.get(n.escapedName);if(V!==void 0&&a&&a.length===1)return V===4?yge(a[0]):ux(n,a[0])}let g=qi(n),T=g.typeParameters,M=dm(a)+dx(c,u),W=g.instantiations.get(M);return W||g.instantiations.set(M,W=qOe(_,Pp(T,Mb(a,T,Wh(T),ar(n.valueDeclaration))),c,u)),W}function Uat(n,a){if(Al(a)&1048576){let _=a5(n),g=dx(a,_),T=we.get(g);return T||(T=lc(1,"error",void 0,`alias ${g}`),T.aliasSymbol=a,T.aliasTypeArguments=_,we.set(g,T)),T}let c=Qs(a),u=qi(a).typeParameters;if(u){let _=Nn(n.typeArguments),g=Wh(u);if(_u.length)return Ve(n,g===u.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,Si(a),g,u.length),pt;let T=px(n),M=T&&(qwe(a)||!qwe(T))?T:void 0,W;if(M)W=gC(M);else if(vF(n)){let V=mC(n,2097152,!0);if(V&&V!==ct){let te=Wc(V);te&&te.flags&524288&&(M=te,W=a5(n)||(u?[]:void 0))}}return fC(a,a5(n),M,W)}return wS(n,a)?c:pt}function qwe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(j2);return!!(c&&Fp(c))}function Hat(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(Gl(a))return a}}function Xwe(n){return n.parent?`${Xwe(n.parent)}.${n.escapedName}`:n.escapedName}function xZ(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let u=n.kind===166?xZ(n.left):n.kind===211?xZ(n.expression):void 0,_=u?`${Xwe(u)}.${c}`:c,g=se.get(_);return g||(se.set(_,g=Ka(524288,c,1048576)),g.parent=u,g.links.declaredType=Bt),g}return ct}function mC(n,a,c){let u=Hat(n);if(!u)return ct;let _=js(u,a,c);return _&&_!==ct?_:c?ct:xZ(u)}function RZ(n,a){if(a===ct)return pt;if(a=kM(a)||a,a.flags&96)return Jwe(n,a);if(a.flags&524288)return Uat(n,a);let c=pwe(a);if(c)return wS(n,a)?yu(c):pt;if(a.flags&111551&&DZ(n)){let u=Kat(n,a);return u||(mC(n,788968),cr(a))}return pt}function Kat(n,a){let c=Qr(n);if(!c.resolvedJSDocType){let u=cr(a),_=u;if(a.valueDeclaration){let g=n.kind===205&&n.qualifier;u.symbol&&u.symbol!==a&&g&&(_=RZ(n,u.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function yge(n){return vge(n)?Ywe(n,un):n}function vge(n){return!!(n.flags&3145728&>(n.types,vge)||n.flags&33554432&&!UM(n)&&vge(n.baseType)||n.flags&524288&&!Bh(n)||n.flags&432275456&&!GA(n))}function UM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function bge(n,a){return a.flags&3||a===n||n.flags&1?n:Ywe(n,a)}function Ywe(n,a){let c=`${gu(n)}>${gu(a)}`,u=Ao.get(c);if(u)return u;let _=gg(33554432);return _.baseType=n,_.constraint=a,Ao.set(c,_),_}function Ege(n){return UM(n)?n.baseType:ha([n.constraint,n.baseType])}function $we(n){return n.kind===189&&n.elements.length===1}function Qwe(n,a,c){return $we(a)&&$we(c)?Qwe(n,a.elements[0],c.elements[0]):wb(Ti(a))===wb(n)?Ti(c):void 0}function Jat(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=Qwe(n,_.checkType,_.extendsType);g&&(c=Tn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=Ti(_);if(d_(g)===wb(n)){let T=C8(g);if(T){let M=Pu(T);M&&sp(M,l0)&&(c=Tn(c,ti([It,ls])))}}}a=_}return c?bge(n,ha(c)):n}function DZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function wS(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 Zwe(n){if(Fe(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return wS(n),Ne;case"Number":return wS(n),It;case"Boolean":return wS(n),gi;case"Void":return wS(n),nr;case"Undefined":return wS(n),Le;case"Null":return wS(n),ue;case"Function":case"function":return wS(n),Lt;case"array":return(!a||!a.length)&&!fe?ec: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?[Fh(c,u,!1)]:Ye;return Ps(void 0,K,Ye,Ye,_)}return G}return wS(n),fe?void 0:G}}}function qat(n){let a=Ti(n.type);return J?A5(a,65536):a}function Sge(n){let a=Qr(n);if(!a.resolvedType){if(Ng(n)&&uT(n.parent))return a.resolvedSymbol=ct,a.resolvedType=nc(n.parent.expression);let c,u,_=788968;DZ(n)&&(u=Zwe(n),u||(c=mC(n,_,!0),c===ct?c=mC(n,_|111551):mC(n,_),u=RZ(n,c))),u||(c=mC(n,_),u=RZ(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function a5(n){return mn(n.typeArguments,Ti)}function eOe(n){let a=Qr(n);if(!a.resolvedType){let c=bFe(n);a.resolvedType=yu(Kp(c))}return a.resolvedType}function tOe(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=Qs(n);return u.flags&524288?Nn(u.typeParameters)!==a?(Ve(c(n),f.Global_type_0_must_have_1_type_parameter_s,bl(n),a),a?Mo:Ca):u:(Ve(c(n),f.Global_type_0_must_be_a_class_or_interface_type,bl(n)),a?Mo:Ca)}function Tge(n,a){return HM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Age(n,a){return HM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function CZ(n,a,c){let u=HM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&(Qs(u),Nn(qi(u).typeParameters)!==a)){let _=u.declarations&&Gr(u.declarations,Im);Ve(_,f.Global_type_0_must_have_1_type_parameter_s,bl(u),a);return}return u}function HM(n,a,c){return yl(void 0,n,a,c,n,!1,!1,!1)}function tc(n,a,c){let u=Age(n,c);return u||c?tOe(u,a):void 0}function Xat(){return xh||(xh=tc("TypedPropertyDescriptor",1,!0)||Mo)}function Yat(){return er||(er=tc("TemplateStringsArray",0,!0)||Ca)}function nOe(){return ii||(ii=tc("ImportMeta",0,!0)||Ca)}function rOe(){if(!Xr){let n=Ka(0,"ImportMetaExpression"),a=nOe(),c=Ka(4,"meta",8);c.parent=n,c.links.type=a;let u=oa([c]);n.members=u,Xr=Ps(n,u,Ye,Ye,Ye)}return Xr}function iOe(n){return no||(no=tc("ImportCallOptions",0,n))||Ca}function Ige(n){return La||(La=tc("ImportAttributes",0,n))||Ca}function oOe(n){return Du||(Du=Tge("Symbol",n))}function $at(n){return Mf||(Mf=Age("SymbolConstructor",n))}function aOe(){return G_||(G_=tc("Symbol",0,!1))||Ca}function s5(n){return Hg||(Hg=tc("Promise",1,n))||Mo}function sOe(n){return zd||(zd=tc("PromiseLike",1,n))||Mo}function xge(n){return Kg||(Kg=Tge("Promise",n))}function Qat(n){return Tp||(Tp=tc("PromiseConstructorLike",0,n))||Ca}function NZ(n){return O||(O=tc("AsyncIterable",1,n))||Mo}function Zat(n){return Se||(Se=tc("AsyncIterator",3,n))||Mo}function est(n){return rt||(rt=tc("AsyncIterableIterator",1,n))||Mo}function tst(n){return jt||(jt=tc("AsyncGenerator",3,n))||Mo}function Rge(n){return dg||(dg=tc("Iterable",1,n))||Mo}function nst(n){return Gu||(Gu=tc("Iterator",3,n))||Mo}function rst(n){return Z||(Z=tc("IterableIterator",1,n))||Mo}function ist(n){return it||(it=tc("Generator",3,n))||Mo}function ost(n){return Ot||(Ot=tc("IteratorYieldResult",1,n))||Mo}function ast(n){return Gt||(Gt=tc("IteratorReturnResult",1,n))||Mo}function lOe(n){return ka||(ka=tc("Disposable",0,n))||Ca}function sst(n){return wl||(wl=tc("AsyncDisposable",0,n))||Ca}function cOe(n,a=0){let c=HM(n,788968,void 0);return c&&tOe(c,a)}function lst(){return fd||(fd=CZ("Extract",2,!0)||ct),fd===ct?void 0:fd}function cst(){return xc||(xc=CZ("Omit",2,!0)||ct),xc===ct?void 0:xc}function Dge(n){return Ap||(Ap=CZ("Awaited",1,n)||(n?ct:void 0)),Ap===ct?void 0:Ap}function dst(){return Vu||(Vu=tc("BigInt",0,!1))||Ca}function ust(n){return Nm??(Nm=tc("ClassDecoratorContext",1,n))??Mo}function pst(n){return Pm??(Pm=tc("ClassMethodDecoratorContext",2,n))??Mo}function fst(n){return Ui??(Ui=tc("ClassGetterDecoratorContext",2,n))??Mo}function mst(n){return Jg??(Jg=tc("ClassSetterDecoratorContext",2,n))??Mo}function _st(n){return Zy??(Zy=tc("ClassAccessorDecoratorContext",2,n))??Mo}function hst(n){return Mm??(Mm=tc("ClassAccessorDecoratorTarget",2,n))??Mo}function gst(n){return _S??(_S=tc("ClassAccessorDecoratorResult",2,n))??Mo}function yst(n){return hS??(hS=tc("ClassFieldDecoratorContext",2,n))??Mo}function vst(){return ab||(ab=Tge("NaN",!1))}function bst(){return cs||(cs=CZ("Record",2,!0)||ct),cs===ct?void 0:cs}function A8(n,a){return n!==Mo?cv(n,a):Ca}function dOe(n){return A8(Xat(),[n])}function uOe(n){return A8(Rge(!0),[n])}function Gd(n,a){return A8(a?Qo:qo,[n])}function Cge(n){switch(n.kind){case 190:return 2;case 191:return pOe(n);case 202:return n.questionToken?2:n.dotDotDotToken?pOe(n):1;default:return 1}}function pOe(n){return p5(n.type)?4:8}function Est(n){let a=Ast(n.parent);if(p5(n))return a?Qo:qo;let u=mn(n.elements,Cge);return Nge(u,a,mn(n.elements,Sst))}function Sst(n){return MR(n)||To(n)?n:void 0}function fOe(n,a){return!!px(n)||mOe(n)&&(n.kind===188?Lb(n.elementType):n.kind===189?gt(n.elements,Lb):a||gt(n.typeArguments,Lb))}function mOe(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 mOe(a);case 265:return!0}return!1}function Lb(n){switch(n.kind){case 183:return DZ(n)||!!(mC(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 Tst(n){let a=Qr(n);if(!a.resolvedType){let c=Est(n);if(c===Mo)a.resolvedType=Ca;else if(!(n.kind===189&>(n.elements,u=>!!(Cge(u)&8)))&&fOe(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 Ast(n){return LT(n)&&n.operator===148}function zh(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?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,_=Ist(n,a,c)),_}function Ist(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 c5(mn(a,(At,rn)=>n.elementFlags[rn]&8?At:un))?dl(a[mt],At=>Mge(n,jG(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,(ir,Mn)=>{var an;return je(ir,At.target.elementFlags[Mn],(an=At.target.labeledElementDeclarations)==null?void 0:an[Mn])})}else je(fv(At)&&r0(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?Np(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?ap(mt,!0):mt),M.push(At),W.push(rn)}}function KM(n,a,c=0){let u=n.target,_=dv(n)-c;return a>u.fixedLength?uct(n)||zh(Ye):zh(Hs(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function _Oe(n){return ti(Tn(nne(n.target.fixedLength,a=>Ku(""+a)),X_(n.target.readonly?Qo:qo)))}function xst(n,a){let c=Jl(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function I8(n,a){return n.elementFlags.length-mW(n.elementFlags,c=>!(c&a))-1}function Lge(n){return n.fixedLength+I8(n,3)}function OS(n){let a=Hs(n),c=dv(n);return a.length===c?a:a.slice(0,c)}function Rst(n){return ap(Ti(n.type),!0)}function gu(n){return n.id}function dy(n,a){return Sy(n,a,gu,tl)>=0}function l5(n,a){let c=Sy(n,a,gu,tl);return c<0?(n.splice(~c,0,a),!0):!1}function Dst(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,gu,tl);g<0&&n.splice(~g,0,c)}return a}function hOe(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?hOe(n,a|(kst(_)?1048576:0),_.types):Dst(n,a,_),u=_);return a}function Cst(n,a){var c;if(n.length<2)return n;let u=dm(n),_=da.get(u);if(_)return _;let g=a&>(n,V=>!!(V.flags&524288)&&!Hu(V)&&tye(u_(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){Y_(V,ti(mn(n,_e=>_e===V?Wr:_e)),Lf)&&Sv(n,M);continue}let te=V.flags&61603840?Gr(_s(V),_e=>m_(cr(_e))):void 0,ye=te&&yu(cr(te));for(let _e of n)if(V!==_e){if(W===1e5&&W/(T-M)*T>1e6){(c=or)==null||c.instant(or.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&&m_(je)&&yu(je)!==ye)continue}if(Y_(V,_e,Lf)&&(!(Lr(sv(V))&1)||!(Lr(sv(_e))&1)||s0(V,_e))){Sv(n,M);break}}}}return da.set(u,n),n}function Nst(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||FS(_)&&dy(n,_.regularType))&&Sv(n,u)}}function Pst(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,_=>Mst(u,_))&&Sv(n,c)}}}function Mst(n,a){return a.flags&134217728?see(n,a):aee(n,a)}function Lst(n){let a=[];for(let c of n)if(c.flags&2097152&&Lr(c)&67108864){let u=c.types[0].flags&8650752?0:1;vf(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(sp(_,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])&&Sv(n,g)}}l5(n,c)}}}function kst(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function gOe(n,a){for(let c of a)if(c.flags&1048576){let u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?vf(n,c):u&&u.flags&1048576&&gOe(n,u.types)}}function kge(n,a){let c=rx(n);return c.types=a,c}function ti(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]===Le&&g[1]===k&&Sv(g,1),(T&402664352||T&16384&&T&32768)&&Nst(g,T,!!(a&2)),T&128&&T&402653184&&Pst(g),T&536870912&&Lst(g),a===2&&(g=Cst(g,!!(T&524288)),!g))return pt;if(g.length===0)return T&65536?T&4194304?ue:We:T&32768?T&4194304?Le:Nt:Wr}if(!_&&T&1048576){let W=[];gOe(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(nu(W,(ye,_e)=>ye+_e.types.length,0)+V.length===g.length){for(let ye of W)l5(V,ye);_=kge(1048576,V)}}let M=(T&36323331?0:32768)|(T&2097152?16777216:0);return Oge(g,M,c,u,_)}function wst(n,a){let c,u=[];for(let g of n){let T=zf(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?us(g):void 0;if(M!==Kt&&M!==En)return}}if(!c)return;let _=Gwe(u,a);return o5(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 Wr;if(n.length===1)return n[0];let T=(_?_.flags&1048576?`|${dm(_.types)}`:_.flags&2097152?`&${dm(_.types)}`:`#${_.type.id}|${dm(n)}`:dm(n))+dx(c,u),M=Zn.get(T);return M||(M=gg(1048576),M.objectFlags=a|IZ(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 Ost(n){let a=Qr(n);if(!a.resolvedType){let c=px(n);a.resolvedType=ti(mn(n.types,Ti),1,c,gC(c))}return a.resolvedType}function Wst(n,a,c){let u=c.flags;return u&2097152?vOe(n,a,c.types):(Bh(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=Le),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=u&473694207),a)}function vOe(n,a,c){for(let u of c)a=Wst(n,a,yu(u));return a}function Fst(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||Bh(u)&&a&470302716)&&Sv(n,c)}}function zst(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 Bst(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(Wb(_,u)){Sv(n,a);break}else if(GA(u))return!0}}return!1}function bOe(n,a){for(let c=0;c!(u.flags&a))}function Gst(n){let a,c=Jl(n,T=>!!(Lr(T)&32768));if(c<0)return!1;let u=c+1;for(;u!!(mt.flags&469893116)||Bh(mt))){if(_5(je,_e))return ye;if(!(je.flags&1048576&&Bm(je,mt=>_5(mt,_e)))&&!_5(_e,je))return Wr;M=67108864}}}let W=dm(T)+dx(a,c),V=Sr.get(W);if(!V){if(g&1048576)if(Gst(T))V=ha(T,a,c);else if(oo(T,te=>!!(te.flags&1048576&&te.types[0].flags&32768))){let te=gt(T,O8)?k:Le;bOe(T,32768),V=ti([ha(T),te],1,a,c)}else if(oo(T,te=>!!(te.flags&1048576&&(te.types[0].flags&65536||te.types[1].flags&65536))))bOe(T,65536),V=ti([ha(T),ue],1,a,c);else if(T.length>=4){let te=Math.floor(T.length/2);V=ha([ha(T.slice(0,te)),ha(T.slice(te))],a,c)}else{if(!c5(T))return pt;let te=jst(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=Vst(T,M,a,c);Sr.set(W,V)}return V}function EOe(n){return nu(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function c5(n){var a;let c=EOe(n);return c>=1e5?((a=or)==null||a.instant(or.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 jst(n){let a=EOe(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=ha(_);T.flags&131072||c.push(T)}return c}function SOe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?SOe(n.origin):Wge(n.types)}function Wge(n){return nu(n,(a,c)=>a+SOe(c),0)}function Ust(n){let a=Qr(n);if(!a.resolvedType){let c=px(n),u=mn(n.types,Ti),_=u.length===2?u.indexOf(sc):-1,g=_>=0?u[1-_]:un,T=!!(g.flags&76||g.flags&134217728&&GA(g));a.resolvedType=ha(u,c,gC(c),T)}return a.resolvedType}function TOe(n,a){let c=gg(4194304);return c.type=n,c.indexFlags=a,c}function Hst(n){let a=rx(4194304);return a.type=n,a}function AOe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=TOe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=TOe(n,0))}function IOe(n,a){let c=d_(n),u=gf(n),_=lv(n.target||n);if(!_&&!(a&2))return u;let g=[];if(jA(u)){if(dC(n))return AOe(n,a);YA(u,M)}else if(dC(n)){let W=Mu(wA(n));Qhe(W,8576,!!(a&1),M)}else YA(e5(u),M);let T=a&2?dc(ti(g),W=>!(W.flags&5)):ti(g);if(T.flags&1048576&&u.flags&1048576&&dm(T.types)===dm(u.types))return u;return T;function M(W){let V=_?io(_,D8(n.mapper,c,W)):W;g.push(V===Ne?Io:V)}}function Kst(n){let a=d_(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(_p(n))return yu(po(n));if($a(n))return yu(Sg(n));let a=ST(n);return a!==void 0?Ku(Vi(a)):ht(n)?yu(po(n)):Wr}function _C(n,a,c){if(c||!(Af(n)&6)){let u=qi(gZ(n)).nameType;if(!u){let _=No(n.valueDeclaration);u=n.escapedName==="default"?Ku("default"):_&&uv(_)||(Z2(n)?void 0:Ku(bl(n)))}if(u&&u.flags&a)return u}return Wr}function xOe(n,a){return!!(n.flags&a||n.flags&2097152&>(n.types,c=>xOe(c,a)))}function Jst(n,a,c){let u=c&&(Lr(n)&7||n.aliasSymbol)?Hst(n):void 0,_=mn(_s(n),T=>_C(T,a)),g=mn(hu(n),T=>T!==Fr&&xOe(T.keyType,a)?T.keyType===Ne&&a&8?Io:T.keyType:Wr);return ti(bo(_,g),1,void 0,void 0,u)}function Fge(n,a=0){return!!(n.flags&58982400||zb(n)||Hu(n)&&(!Kst(n)||vZ(n)===2)||n.flags&1048576&&!(a&4)&&oge(n)||n.flags&2097152&&Dl(n,465829888)&>(n.types,Bh))}function X_(n,a=Ge){return n=p_(n),UM(n)?yge(X_(n.baseType,a)):Fge(n,a)?AOe(n,a):n.flags&1048576?ha(mn(n.types,c=>X_(c,a))):n.flags&2097152?ti(mn(n.types,c=>X_(c,a))):Lr(n)&32?IOe(n,a):n===Tt?Tt:n.flags&2?Wr:n.flags&131073?Os:Jst(n,(a&2?128:402653316)|(a&1?0:12584),a===Ge)}function ROe(n){if(Ce)return n;let a=lst();return a?fC(a,[n,Ne]):Ne}function qst(n){let a=ROe(X_(n));return a.flags&131072?Ne:a}function Xst(n){let a=Qr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=X_(Ti(n.type));break;case 158:a.resolvedType=n.type.kind===155?Kge(J2(n.parent)):pt;break;case 148:a.resolvedType=Ti(n.type);break;default:R.assertNever(n.operator)}return a.resolvedType}function Yst(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=Jl(a,V=>!!(V.flags&1179648));if(c>=0)return c5(a)?dl(a[c],V=>BA(n,jG(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=`${dm(u)}|${mn(_,V=>V.length).join(",")}|${_.join("")}`,M=yi.get(T);return M||yi.set(T,M=Qst(_,u)),M;function W(V,te){for(let ye=0;yeux(n,c)):a.flags&128?Ku(DOe(n,a.value)):a.flags&134217728?BA(...Zst(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||jA(a)?COe(n,a):d5(a)?COe(n,BA(["",""],[a])):a}function DOe(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 Zst(n,a,c){switch(w3.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>ux(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>ux(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[ux(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]===""?[ux(n,c[0]),...c.slice(1)]:c]}return[a,c]}function COe(n,a){let c=`${va(n)},${gu(a)}`,u=$i.get(c);return u||$i.set(c,u=elt(n,a)),u}function elt(n,a){let c=yg(268435456,n);return c.type=a,c}function tlt(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 x8(n){if(fe)return!1;if(Lr(n)&4096)return!0;if(n.flags&1048576)return oo(n.types,x8);if(n.flags&2097152)return gt(n.types,x8);if(n.flags&465829888){let a=nge(n);return a!==n&&x8(a)}return!1}function PZ(n,a){return Zf(n)?em(n):a&&ic(a)?ST(a):void 0}function zge(n,a){if(a.flags&8208){let c=Fn(n.parent,u=>!Ls(u))||n.parent;return A0(c)?E_(c)&&Fe(n)&&F8e(c,n):oo(a.declarations,u=>!Yo(u)||nv(u))}return!0}function NOe(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,M=_&&Ki(_)?void 0:PZ(c,_);if(M!==void 0){if(g&256)return p0(a,M)||G;let V=_a(a,M);if(V){if(g&64&&_&&V.declarations&&db(V)&&zge(_,V)){let ye=T?.argumentExpression??(kT(_)?_.indexType:_);rv(ye,V.declarations,M)}if(T){if(V5(V,T,qWe(T.expression,a.symbol)),WFe(T,V,MI(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),GWe(T,V))return tt}let te=g&4?LS(V):cr(V);return T&&MI(T)!==1?Vb(T,te):_&&kT(_)&&O8(te)?ti([te,Le]):te}if(sp(a,wa)&&ig(M)){let te=+M;if(_&&sp(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),Le;Ve(ye,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,jn(a),dv(a),Vi(M))}else Ve(ye,f.Property_0_does_not_exist_on_type_1,Vi(M),jn(a))}if(te>=0)return W(Eg(a,It)),y8e(a,te,g&1?k:void 0)}}if(!(c.flags&98304)&&xd(c,402665900)){if(a.flags&131073)return a;let V=b8(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,jn(n)):Ve(T,f.Type_0_cannot_be_used_to_index_type_1,jn(c),jn(n)));return}if(_&&V.keyType===Ne&&!xd(c,12)){let te=Bge(_);return Ve(te,f.Type_0_cannot_be_used_as_an_index_type,jn(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 Wr;if(x8(a))return G;if(T&&!Fee(a)){if(u0(a)){if(fe&&c.flags&384)return Za.add(Pr(T,f.Property_0_does_not_exist_on_type_1,c.value,jn(a))),Le;if(c.flags&12){let te=mn(a.properties,ye=>cr(ye));return ti(Tn(te,Le))}}if(a.symbol===nt&&M!==void 0&&nt.exports.has(M)&&nt.exports.get(M).flags&418)Ve(T,f.Property_0_does_not_exist_on_type_1,Vi(M),jn(a));else if(fe&&!B.suppressImplicitAnyIndexErrors&&!(g&128))if(M!==void 0&&HWe(M,a)){let te=jn(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+"["+pc(T.argumentExpression)+"]")}else if(r0(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,jn(a),te);else{let ye=Zut(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,jn(a),ye);else{let _e;if(c.flags&1024)_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,"["+jn(c)+"]",jn(a));else if(c.flags&8192){let je=jp(c.symbol,T);_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,"["+je+"]",jn(a))}else c.flags&128||c.flags&256?_e=Fo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,jn(a)):c.flags&12&&(_e=Fo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,jn(c),jn(a)));_e=Fo(_e,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,jn(u),jn(a)),Za.add(Mg(Vn(T),T,_e))}}}return}}if(x8(a))return G;if(_){let V=Bge(_);c.flags&384?Ve(V,f.Property_0_does_not_exist_on_type_1,""+c.value,jn(a)):c.flags&12?Ve(V,f.Type_0_has_no_matching_index_signature_for_type_1,jn(a),jn(c)):Ve(V,f.Type_0_cannot_be_used_as_an_index_type,jn(c))}if(xt(c))return c;return;function W(V){V&&V.isReadonly&&T&&(Zh(T)||Ij(T))&&Ve(T,f.Index_signature_in_type_0_only_permits_reading,jn(a))}}function Bge(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 POe(n){return!!(n.flags&402653184)&&!GA(n)}function hC(n){return!!R8(n)}function VA(n){return!!(R8(n)&4194304)}function jA(n){return!!(R8(n)&8388608)}function R8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|nu(n.types,(a,c)=>a|R8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|R8(n.baseType)|R8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Hu(n)||zb(n)?4194304:0)|(n.flags&63176704||POe(n)?8388608:0)}function uy(n,a){return n.flags&8388608?rlt(n,a):n.flags&16777216?ilt(n,a):n}function MOe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Fge(n)){let u=mn(n.types,_=>uy(Np(_,a),c));return n.flags&2097152||c?ha(u):ti(u)}}function nlt(n,a,c){if(a.flags&1048576){let u=mn(a.types,_=>uy(Np(n,_),c));return c?ha(u):ti(u)}}function rlt(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=nlt(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=MOe(u,_,a);if(T)return n[c]=T}if(zb(u)&&_.flags&296){let T=$M(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return Hu(u)&&vZ(u)!==2?n[c]=dl(MZ(u,n.indexType),T=>uy(T,a)):n[c]=n}function ilt(n,a){let c=n.checkType,u=n.extendsType,_=o0(n),g=a0(n);if(g.flags&131072&&wb(_)===wb(c)){if(c.flags&1||ga(HA(c),HA(u)))return uy(_,a);if(LOe(c,u))return Wr}else if(_.flags&131072&&wb(g)===wb(c)){if(!(c.flags&1)&&ga(HA(c),HA(u)))return Wr;if(c.flags&1||LOe(c,u))return uy(g,a)}return n}function LOe(n,a){return!!(ti([ZB(n,a),Wr]).flags&131072)}function MZ(n,a){let c=Pp([d_(n)],[a]),u=BS(n.mapper,c);return io(ly(n.target||n),u)}function Np(n,a,c=0,u,_,g){return kb(n,a,c,u,_,g)||(u?pt:un)}function kOe(n,a){return sp(n,c=>{if(c.flags&384){let u=em(c);if(ig(u)){let _=+u;return _>=0&&_0&&!gt(n.elements,a=>F4(a)||z4(a)||MR(a)&&!!(a.questionToken||a.dotDotDotToken))}function WOe(n,a){return hC(n)||a&&wa(n)&>(OS(n),hC)}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=q2(n.node.checkType),_e=q2(n.node.extendsType),je=OOe(ye)&&OOe(_e)&&Nn(ye.elements)===Nn(_e.elements),mt=WOe(V,je),At;if(n.inferTypeParameters){let sn=F8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=BS(sn.nonFixingMapper,a)),mt||hy(sn.inferences,V,te,1536),At=a?BS(sn.mapper,a):sn.mapper}let rn=At?io(n.extendsType,At):te;if(!mt&&!WOe(rn,je)){if(!(rn.flags&3)&&(V.flags&1||!ga(N8(V),N8(rn)))){(V.flags&1||c&&!(rn.flags&131072)&&Bm(N8(rn),ir=>ga(ir,N8(V))))&&(T||(T=[])).push(io(Ti(n.node.trueType),At||a));let sn=Ti(n.node.falseType);if(sn.flags&16777216){let ir=sn.root;if(ir.node.parent===n.node&&(!ir.isDistributive||ir.checkType===n.checkType)){n=ir;continue}if(W(sn,a))continue}g=io(sn,a);break}if(rn.flags&3||ga(HA(V),HA(rn))){let sn=Ti(n.node.trueType),ir=At||a;if(W(sn,ir))continue;g=io(sn,ir);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?ti(Tn(T,g)):g;function W(V,te){if(V.flags&16777216&&te){let ye=V.root;if(ye.outerTypeParameters){let _e=BS(V.mapper,te),je=mn(ye.outerTypeParameters,rn=>Ob(rn,_e)),mt=Pp(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 o0(n){return n.resolvedTrueType||(n.resolvedTrueType=io(Ti(n.root.node.trueType),n.mapper))}function a0(n){return n.resolvedFalseType||(n.resolvedFalseType=io(Ti(n.root.node.falseType),n.mapper))}function olt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(Ti(n.root.node.trueType),n.combinedMapper):o0(n))}function FOe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Tn(a,Qs(c)))}),a}function alt(n){return n.isDistributive&&(m5(n.checkType,n.node.trueType)||m5(n.checkType,n.node.falseType))}function slt(n){let a=Qr(n);if(!a.resolvedType){let c=Ti(n.checkType),u=px(n),_=gC(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:FOe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=Vge(M,void 0,!1),T&&(M.instantiations=new Map,M.instantiations.set(dm(T),a.resolvedType))}return a.resolvedType}function llt(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=kA(Tr(n.typeParameter))),a.resolvedType}function zOe(n){return Fe(n)?[n]:Tn(zOe(n.left),n.right)}function clt(n){var a;let c=Qr(n);if(!c.resolvedType){if(!Ov(n))return Ve(n.argument,f.String_literal_expected),c.resolvedSymbol=ct,c.resolvedType=pt;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=_u(n,n.argument.literal);if(!_)return c.resolvedSymbol=ct,c.resolvedType=pt;let g=!!((a=_.exports)!=null&&a.get("export=")),T=xp(_,!1);if(zl(n.qualifier))if(T.flags&u)c.resolvedType=BOe(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=ct,c.resolvedType=pt}else{let M=zOe(n.qualifier),W=T,V;for(;V=M.shift();){let te=M.length?1920:u,ye=ts(jl(W)),_e=n.isTypeOf||ar(n)&&g?_a(cr(ye),V.escapedText,!1,!0):void 0,mt=(n.isTypeOf?void 0:Uu(Rp(ye),V.escapedText,te))??_e;if(!mt)return Ve(V,f.Namespace_0_has_no_exported_member_1,jp(W),xs(V)),c.resolvedType=pt;Qr(V).resolvedSymbol=mt,Qr(V.parent).resolvedSymbol=mt,W=mt}c.resolvedType=BOe(n,c,W,u)}}return c.resolvedType}function BOe(n,a,c,u){let _=jl(c);return a.resolvedSymbol=_,u===111551?EFe(cr(c),n):RZ(n,_)}function GOe(n){let a=Qr(n);if(!a.resolvedType){let c=px(n);if(Nb(n.symbol).size===0&&!c)a.resolvedType=sc;else{let u=wf(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=gC(c),BT(n)&&n.isArrayType&&(u=Gd(u)),a.resolvedType=u}}return a.resolvedType}function px(n){let a=n.parent;for(;MT(a)||eS(a)||LT(a)&&a.operator===148;)a=a.parent;return j2(a)?Tr(a):void 0}function gC(n){return n?Nr(n):void 0}function LZ(n){return!!(n.flags&524288)&&!Hu(n)}function jge(n){return fy(n)||!!(n.flags&474058748)}function Uge(n,a){if(!(n.flags&1048576))return n;if(oo(n.types,jge))return Gr(n.types,fy)||Ca;let c=Gr(n.types,g=>!jge(g));if(!c||Gr(n.types,g=>g!==c&&!jge(g)))return n;return _(c);function _(g){let T=oa();for(let W of _s(g))if(!(Af(W)&6)){if(kZ(W)){let V=W.flags&65536&&!(W.flags&32768),ye=Ka(16777220,W.escapedName,$he(W)|(a?8:0));ye.links.type=V?Le:ap(cr(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,Ye,Ye,hu(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 c5([n,a])?dl(n,V=>WS(V,a,c,u,_)):pt;if(a=Uge(a,_),a.flags&1048576)return c5([n,a])?dl(a,V=>WS(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(LZ(te)&&LZ(a))return ha(bo(V.slice(0,V.length-1),[WS(te,a,c,u,_)]))}return ha([n,a])}let g=oa(),T=new Set,M=n===Ca?hu(a):Swe([n,a]);for(let V of _s(a))Af(V)&6?T.add(V.escapedName):kZ(V)&&g.set(V.escapedName,Hge(V,_));for(let V of _s(n))if(!(T.has(V.escapedName)||!kZ(V)))if(g.has(V.escapedName)){let te=g.get(V.escapedName),ye=cr(te);if(te.flags&16777216){let _e=bo(V.declarations,te.declarations),je=4|V.flags&16777216,mt=Ka(je,V.escapedName),At=cr(V),rn=eee(At),sn=eee(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=Ps(c,g,Ye,Ye,Pc(M,V=>dlt(V,_)));return W.objectFlags|=2228352|u,W}function kZ(n){var a;return!gt(n.declarations,au)&&(!(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===h_(n))return n;let u=4|n.flags&16777216,_=Ka(u,n.escapedName,$he(n)|(a?8:0));return _.links.type=c?Le:cr(n),_.declarations=n.declarations,_.links.nameType=qi(n).nameType,_.links.syntheticOrigin=n,_}function dlt(n,a){return n.isReadonly!==a?Fh(n.keyType,n.type,a,n.declaration):n}function u5(n,a,c,u){let _=yg(n,c);return _.value=a,_.regularType=u||_,_}function fx(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 yu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=dl(n,yu)):n}function FS(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 f_(n){let a;return $e.get(n)||($e.set(n,a=u5(256,n)),a)}function wZ(n){let a,c=B0(n);return Wt.get(c)||(Wt.set(c,a=u5(2048,n)),a)}function ult(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 plt(n){if(n.literal.kind===106)return ue;let a=Qr(n);return a.resolvedType||(a.resolvedType=yu(po(n.literal))),a.resolvedType}function flt(n){let a=yg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${va(a.symbol)}`,a}function Kge(n){if(ar(n)&&eS(n)){let a=ET(n);a&&(n=PI(a)||a)}if(oie(n)){let a=wF(n)?ff(n.left):ff(n);if(a){let c=qi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=flt(a))}}return xi}function mlt(n){let a=wu(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!na(a)&&(!Pl(a)||M0(n,a.body)))return Ff(Tr(c)).thisType;if(c&&Ma(c)&&pr(c.parent)&&Bl(c.parent)===6)return Ff(ff(c.parent.left).parent).thisType;let u=n.flags&16777216?dE(n):void 0;return u&&ks(u)&&pr(u.parent)&&Bl(u.parent)===3?Ff(ff(u.parent.left).parent).thisType:Z_(a)&&M0(n,a.body)?Ff(Tr(a)).thisType:(Ve(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),pt)}function OZ(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=mlt(n)),a.resolvedType}function VOe(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 _lt(n){let a=Qr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?VOe(n):ap(Ti(n.type),!0,!!n.questionToken))}function Ti(n){return Jat(jOe(n),n)}function jOe(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 nr;case 157:return Le;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 OZ(n);case 201:return plt(n);case 183:return Sge(n);case 182:return n.assertsModifier?nr:gi;case 233:return Sge(n);case 186:return eOe(n);case 188:case 189:return Tst(n);case 190:return Rst(n);case 192:return Ost(n);case 193:return Ust(n);case 321:return qat(n);case 323:return ap(Ti(n.type));case 202:return _lt(n);case 196:case 322:case 316:return Ti(n.type);case 191:return VOe(n);case 325:return ght(n);case 184:case 185:case 187:case 329:case 324:case 330:return GOe(n);case 198:return Xst(n);case 199:return wOe(n);case 200:return Gge(n);case 194:return slt(n);case 195:return llt(n);case 203:return Yst(n);case 205:return clt(n);case 80:case 166:case 211:let a=Gm(n);return a?Qs(a):pt;default:return pt}}function WZ(n,a,c){if(n&&n.length)for(let u=0;uu.typeParameter),mn(c,()=>un))}function BS(n,a){return n?zZ(4,n,a):a}function ylt(n,a){return n?zZ(5,n,a):a}function UA(n,a,c){return c?zZ(5,zS(n,a),c):zS(n,a)}function D8(n,a,c){return n?zZ(5,n,zS(a,c)):zS(a,c)}function vlt(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 blt(n,a){return o5(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function yC(n,a,c){let u;if(n.typeParameters&&!c){u=mn(n.typeParameters,qge),a=BS(Pp(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=bg(n.declaration,u,n.thisParameter&&Xge(n.thisParameter,a),WZ(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&&!d0(c.type)&&(!(n.flags&65536)||c.writeType&&!d0(c.writeType)))return n;Al(n)&1&&(n=c.target,a=BS(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 Elt(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(Z_(_)){let te=zwe(_);W=Ur(W,te)}M=W||Ye;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=BS(n.mapper,a),V=mn(M,mt=>Ob(mt,W)),te=c||n.aliasSymbol,ye=c?u:pv(n.aliasTypeArguments,a),_e=dm(V)+dx(te,ye);T.instantiations||(T.instantiations=new Map,T.instantiations.set(dm(M)+dx(T.aliasSymbol,T.aliasTypeArguments),T));let je=T.instantiations.get(_e);if(!je){let mt=Pp(M,V);je=T.objectFlags&4?gge(n.target,n.node,mt,te,ye):T.objectFlags&32?Tlt(T,mt,te,ye):Yge(T,mt,te,ye),T.instantiations.set(_e,je);let At=Lr(je);if(je.flags&3899393&&!(At&524288)){let rn=gt(V,d0);Lr(je)&524288||(At&52?je.objectFlags|=524288|(rn?1048576:0):je.objectFlags|=rn?0:524288)}}return je}return n}function Slt(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)&&Slt(u)&&jOe(u)===n;case 186:let _=u.exprName,g=zp(_);if(!W0(g)){let T=zm(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=>M0(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 C8(n){let a=gf(n);if(a.flags&4194304){let c=wb(a.type);if(c.flags&262144)return c}}function Tlt(n,a,c,u){let _=C8(n);if(_){let T=io(_,a);if(_!==T)return q8e(p_(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(Vf(T)||T.flags&1&&ax(_,4)<0&&(M=Pu(_))&&sp(M,l0))return Ilt(T,n,UA(_,T,a));if(wa(T))return Alt(T,n,_,a);if(Lwe(T))return ha(mn(T.types,g))}return Yge(n,UA(_,T,a))}return T}}function KOe(n,a){return a&1?!0:a&2?!1:n}function Alt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?UA(c,n,u):u,M=mn(OS(n),(ye,_e)=>{let je=_[_e];return _eye&1?2:ye):W&8?mn(_,ye=>ye&2?1:ye):_,te=KOe(n.target.readonly,Oh(a));return zo(M,pt)?pt:zh(M,V,te,n.target.labeledElementDeclarations)}function Ilt(n,a,c){let u=JOe(a,It,!0,c);return Ut(u)?pt:Gd(u,KOe(XM(n),Oh(a)))}function JOe(n,a,c,u){let _=D8(u,d_(n),a),g=io(ly(n.target||n),_),T=Oh(n);return J&&T&4&&!Dl(g,49152)?Bb(g,!0):J&&T&8&&c?pm(g,524288):g}function Yge(n,a,c,u){R.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=wf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let g=d_(n),T=qge(g);_.typeParameter=T,a=BS(zS(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?IZ(_.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":"")+dm(T)+dx(u,_),W=g.instantiations.get(M);if(!W){let V=Pp(g.outerTypeParameters,T),te=g.checkType,ye=g.isDistributive?p_(Ob(te,V)):void 0;W=ye&&te!==ye&&ye.flags&1179648?q8e(ye,_e=>Vge(g,UA(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?qOe(n,a,void 0,void 0):n}function qOe(n,a,c,u){var _;if(!d0(n))return n;if(A===100||S>=5e6)return(_=or)==null||_.instant(or.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=xlt(n,a,c,u);return A--,g}function xlt(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?Rlt(n,a):Elt(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?ha(M,W,V):ti(M,1,W,V)}if(_&4194304)return X_(io(n.type,a));if(_&134217728)return BA(n.texts,pv(n.types,a));if(_&268435456)return ux(n.symbol,io(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:pv(n.aliasTypeArguments,a);return Np(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return $ge(n,BS(n.mapper,a),!1,c,u);if(_&33554432){let g=io(n.baseType,a);if(UM(n))return yge(g);let T=io(n.constraint,a);return g.flags&8650752&&hC(T)?bge(g,T):T.flags&3||ga(HA(g),HA(T))?g:g.flags&8650752?bge(g,T):ha([T,g])}return n}function Rlt(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 _=x8e(io(n.source,a),c,u);return _||n}function N8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,hl))}function HA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Bs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Dlt(n,a){return Fh(n.keyType,io(n.type,a),n.isReadonly,n.declaration)}function Bf(n){switch(R.assert(n.kind!==174||Sm(n)),n.kind){case 218:case 219:case 174:case 262:return XOe(n);case 210:return gt(n.properties,Bf);case 209:return gt(n.elements,Bf);case 227:return Bf(n.whenTrue)||Bf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Bf(n.left)||Bf(n.right));case 303:return Bf(n.initializer);case 217:return Bf(n.expression);case 292:return gt(n.properties,Bf)||L_(n.parent)&>(n.parent.parent.children,Bf);case 291:{let{initializer:a}=n;return!!a&&Bf(a)}case 294:{let{expression:a}=n;return!!a&&Bf(a)}}return!1}function XOe(n){return G6(n)||Clt(n)}function Clt(n){return n.typeParameters||Qf(n)||!n.body?!1:n.body.kind!==241?Bf(n.body):!!D0(n.body,a=>!!a.expression&&Bf(a.expression))}function BZ(n){return(G0(n)||Sm(n))&&XOe(n)}function YOe(n){if(n.flags&524288){let a=u_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=wf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=Ye,c.constructSignatures=Ye,c.indexInfos=Ye,c}}else if(n.flags&2097152)return ha(mn(n.types,YOe));return n}function py(n,a){return Y_(n,a,rp)}function P8(n,a){return Y_(n,a,rp)?-1:0}function Qge(n,a){return Y_(n,a,ju)?-1:0}function Nlt(n,a){return Y_(n,a,Rh)?-1:0}function Wb(n,a){return Y_(n,a,Rh)}function _5(n,a){return Y_(n,a,Lf)}function ga(n,a){return Y_(n,a,ju)}function s0(n,a){return n.flags&1048576?oo(n.types,c=>s0(c,a)):a.flags&1048576?gt(a.types,c=>s0(n,c)):n.flags&2097152?gt(n.types,c=>s0(c,a)):n.flags&58982400?s0(Bd(n)||un,a):Bh(a)?!!(n.flags&67633152):a===Re?!!(n.flags&67633152)&&!Bh(n):a===Lt?!!(n.flags&524288)&&Pye(n):sC(n,sv(a))||Vf(a)&&!XM(a)&&s0(n,Qo)}function GZ(n,a){return Y_(n,a,Ip)}function h5(n,a){return GZ(n,a)||GZ(a,n)}function tu(n,a,c,u,_,g){return Gf(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 Y_(n,a,c)?!0:!u||!M8(_,n,a,c,g,T,M)?Gf(n,a,c,u,g,T,M):!1}function $Oe(n){return!!(n.flags&16777216||n.flags&2097152&>(n.types,$Oe))}function M8(n,a,c,u,_,g,T){if(!n||$Oe(c))return!1;if(!Gf(a,c,u,void 0)&&Plt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!ub(n))break;case 294:case 217:return M8(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return M8(n.right,a,c,u,_,g,T)}break;case 210:return zlt(n,a,c,u,g,T);case 209:return Wlt(n,a,c,u,g,T);case 292:return Olt(n,a,c,u,g,T);case 219:return Mlt(n,a,c,u,g,T)}return!1}function Plt(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)&&Gf(ye,c,u,void 0)})){let te=T||{};tu(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 Mlt(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=ti(mn(M,us));if(!Gf(V,te,u,void 0)){let ye=W&&M8(W,V,te,u,void 0,_,g);if(ye)return ye;let _e=g||{};if(Gf(V,te,u,W,void 0,_,_e),_e.errors)return c.symbol&&Nn(c.symbol.declarations)&&Pa(_e.errors[_e.errors.length-1],Pr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Vc(n)&2)&&!Ue(V,"then")&&Gf($5(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 QOe(n,a,c){let u=kb(a,c);if(u)return u;if(a.flags&1048576){let _=a8e(n,a);if(_)return kb(_,c)}}function ZOe(n,a){w5(n,a,!1);let c=sL(n,1);return V8(),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=QOe(a,c,te);if(!_e||_e.flags&8388608)continue;let je=kb(a,te);if(!je)continue;let mt=PZ(te,void 0);if(!Gf(je,_e,u,void 0)){let At=V&&M8(V,je,_e,u,void 0,_,g);if(T=!0,!At){let rn=g||{},sn=V?ZOe(V,je):je;if(Ie&&jZ(sn,_e)){let ir=Pr(W,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,jn(sn),jn(_e));Za.add(ir),rn.errors=[ir]}else{let ir=!!(mt&&(_a(c,mt)||ct).flags&16777216),Mn=!!(mt&&(_a(a,mt)||ct).flags&16777216);_e=Gb(_e,ir),je=Gb(je,ir&&Mn),Gf(sn,_e,u,W,ye,_,rn)&&sn!==je&&Gf(je,_e,u,W,ye,_,rn)}if(rn.errors){let ir=rn.errors[rn.errors.length-1],Mn=Zf(te)?em(te):void 0,an=Mn!==void 0?_a(c,Mn):void 0,On=!1;if(!an){let Ln=b8(c,te);Ln&&Ln.declaration&&!Vn(Ln.declaration).hasNoDefaultLib&&(On=!0,Pa(ir,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];Vn(Ln).hasNoDefaultLib||Pa(ir,Pr(Ln,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Mn&&!(te.flags&8192)?Vi(Mn):jn(te),jn(c)))}}}}}return T}function Llt(n,a,c,u,_,g){let T=dc(c,YZ),M=dc(c,te=>!YZ(te)),W=M!==Wr?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!==Wr?QOe(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 ir=PZ(je,void 0);if(!Gf(sn,At,u,void 0)){let Mn=_e&&M8(_e,sn,At,u,void 0,_,g);if(V=!0,!Mn){let an=g||{},On=_e?ZOe(_e,sn):sn;if(Ie&&jZ(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,jn(On),jn(At));Za.add(Ln),an.errors=[Ln]}else{let Ln=!!(ir&&(_a(T,ir)||ct).flags&16777216),$n=!!(ir&&(_a(a,ir)||ct).flags&16777216);At=Gb(At,Ln),sn=Gb(sn,Ln&&$n),Gf(On,At,u,ye,mt,_,an)&&On!==sn&&Gf(sn,At,u,ye,mt,_,an)}}}}return V}function*klt(n){if(Nn(n.properties))for(let a of n.properties)c1(a)||Qye(vk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Ku(vk(a.name))})}function*wlt(n,a){if(!Nn(n.children))return;let c=0;for(let u=0;u1,rn,sn;if(Rge(!1)!==Mo){let Mn=uOe(G);rn=dc(je,an=>ga(an,Mn)),sn=dc(je,an=>!ga(an,Mn))}else rn=dc(je,YZ),sn=dc(je,Mn=>!YZ(Mn));if(At){if(rn!==Wr){let Mn=zh(See(V,0)),an=wlt(V,W);T=Llt(an,Mn,rn,u,_,g)||T}else if(!Y_(Np(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,jn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}else if(sn!==Wr){let Mn=mt[0],an=e8e(Mn,_e,W);an&&(T=g5(function*(){yield an}(),a,c,u,_,g)||T)}else if(!Y_(Np(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,jn(je));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(Mn)}}return T;function W(){if(!M){let V=pc(n.parent.tagName),te=W5(QA(n)),ye=te===void 0?"children":Vi(te),_e=Np(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:aU(je,V,ye,jn(_e))}}return M}}function*t8e(n,a){let c=Nn(n.elements);if(c)for(let u=0;uW:eh(n)>W))return u&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,eh(n),W),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Gat(a),n=tFe(n,a,void 0,T));let te=Jp(n),ye=K8(n),_e=K8(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=i0(n);if(rn&&rn!==nr){let Mn=i0(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),ir=ye||_e?sn-1:-1;for(let Mn=0;Mn=eh(n)&&Mn=3&&a[0].flags&32768&&a[1].flags&65536&>(a,Bh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function JM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function r8e(n){return n.flags&524288&&!Hu(n)&&_s(n).length===0&&hu(n).length===1&&!!Eg(n,Ne)||n.flags&3145728&&oo(n.types,r8e)||!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=va(u)+","+va(_),T=ev.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let M=cr(_);for(let W of _s(cr(u)))if(W.flags&8){let V=_a(M,W.escapedName);if(!V||!(V.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,bl(W),jn(Qs(_),void 0,64)),ev.set(g,6)):ev.set(g,2),!1;let te=CC(ul(W,306)),ye=CC(ul(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,bl(_),bl(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,bl(_),bl(V),At),ev.set(g,6)}return!1}}}return ev.set(g,1),!0}function L8(n,a,c,u){let _=n.flags,g=a.flags;return g&1||_&131072||n===Tt||g&2&&!(c===Lf&&_&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===Lf&&Bh(n)&&!(Lr(n)&8192))||(c===ju||c===Ip)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||jlt(a)))}function Y_(n,a,c){if(FS(n)&&(n=n.regularType),FS(a)&&(a=a.regularType),n===a)return!0;if(c!==rp){if(c===Ip&&!(a.flags&131072)&&L8(a,n,c)||L8(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(KZ(n,a,0,c,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?Gf(n,a,c,void 0):!1}function i8e(n,a){return Lr(n)&2048&&Qye(a.escapedName)}function y5(n,a){for(;;){let c=FS(n)?n.regularType:zb(n)?Hlt(n,a):Lr(n)&4?n.node?cv(n.target,Hs(n)):cye(n)||n:n.flags&3145728?Ult(n,a):n.flags&33554432?a?n.baseType:Ege(n):n.flags&25165824?uy(n,a):n;if(c===n)return c;n=c}}function Ult(n,a){let c=p_(n);if(c!==n)return c;if(n.flags&2097152&>(n.types,Bh)){let u=Pc(n.types,_=>y5(_,a));if(u!==n.types)return ha(u)}return n}function Hlt(n,a){let c=OS(n),u=Pc(c,_=>_.flags&25165824?uy(_,a):_);return c!==u?Mge(n.target,u):n}function Gf(n,a,c,u,_,g,T){var M;let W,V,te,ye,_e,je,mt=0,At=0,rn=0,sn=0,ir=!1,Mn=0,an=0,On,Ln,$n=16e6-c.size>>3;R.assert(c!==rp||!u,"no error reporting in identity checking");let Un=yr(n,a,3,!!u,_);if(Ln&&Wo(),ir){let Ze=KZ(n,a,0,c,!1);c.set(Ze,6),(M=or)==null||M.instant(or.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,jn(n),jn(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&&!Un&&n.symbol){let $t=qi(n.symbol);if($t.originatingImport&&!Wp($t.originatingImport)&&Gf(cr($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(Vn(u),u,W,Ze);V&&Pa(vt,...V),T&&(T.errors||(T.errors=[])).push(vt),(!T||!T.skipLogging)&&Za.add(vt)}return u&&T&&T.skipLogging&&Un===0&&R.assert(!!T.errors,"missed opportunity to interact with error."),Un!==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&&lp(void 0,...vt);return}let $t="",Kn=[];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}`:$p(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),Kn.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:{Kn.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:{Kn.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):Kn.shift();for(let[Ir,...bn]of Kn){let hr=Ir.elidedInCompatabilityPyramid;Ir.elidedInCompatabilityPyramid=!1,fo(Ir,...bn),Ir.elidedInCompatabilityPyramid=hr}vt&&lp(void 0,...vt)}function fo(Ze,...vt){R.assert(!!u),Ln&&Wo(),!Ze.elidedInCompatabilityPyramid&&(an===0?W=Fo(W,Ze,...vt):an--)}function Dc(Ze,...vt){fo(Ze,...vt),an++}function jf(Ze){R.assert(!!W),V?V.push(Ze):V=[Ze]}function lp(Ze,vt,$t){Ln&&Wo();let[Kn,Ir]=ox(vt,$t),bn=vt,hr=Kn;if(k8(vt)&&!rye($t)&&(bn=my(vt),R.assert(!ga(bn,$t),"generalized source shouldn't be assignable"),hr=Eb(bn)),($t.flags&8388608&&!(vt.flags&8388608)?$t.objectType.flags:$t.flags)&262144&&$t!==de&&$t!==$){let zi=Bd($t),wo;zi&&(ga(bn,zi)||(wo=ga(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?Kn:hr,Ir,jn(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&&o8e(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===Ip)Ze=f.Type_0_is_not_comparable_to_type_1;else if(Kn===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&&o8e(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=ept(vt,$t);if(zi){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,hr,Ir,jn(zi));return}}Ze=f.Type_0_is_not_assignable_to_type_1}fo(Ze,hr,Ir)}function Pn(Ze,vt){let $t=Sb(Ze.symbol)?jn(Ze,Ze.symbol.valueDeclaration):jn(Ze),Kn=Sb(vt.symbol)?jn(vt,vt.symbol.valueDeclaration):jn(vt);(Zl===Ze&&Ne===vt||yc===Ze&&It===vt||cl===Ze&&gi===vt||aOe()===Ze&&xi===vt)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Kn,$t)}function Yn(Ze,vt,$t){return wa(Ze)?Ze.target.readonly&&S5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,jn(Ze),jn(vt)),!1):l0(vt):XM(Ze)&&S5(vt)?($t&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,jn(Ze),jn(vt)),!1):wa(vt)?Vf(Ze):!0}function ro(Ze,vt,$t){return yr(Ze,vt,3,$t)}function yr(Ze,vt,$t=3,Kn=!1,Ir,bn=0){if(Ze===vt)return-1;if(Ze.flags&524288&&vt.flags&402784252)return c===Ip&&!(vt.flags&131072)&&L8(vt,Ze,c)||L8(Ze,vt,c,Kn?fo:void 0)?-1:(Kn&&Do(Ze,vt,Ze,vt,Ir),0);let hr=y5(Ze,!1),Br=y5(vt,!0);if(hr===Br)return-1;if(c===rp)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===Ip&&!(Br.flags&131072)&&L8(Br,hr,c)||L8(hr,Br,c,Kn?fo:void 0))return-1;if(hr.flags&469499904||Br.flags&469499904){if(!(bn&2)&&u0(hr)&&Lr(hr)&8192&&Vd(hr,Br,Kn))return Kn&&lp(Ir,hr,vt.aliasSymbol?vt:Br),0;let wo=(c!==Ip||m_(hr))&&!(bn&2)&&hr.flags&405405692&&hr!==Re&&Br.flags&2621440&&s8e(Br)&&(_s(hr).length>0||nte(hr)),ua=!!(Lr(hr)&2048);if(wo&&!Jlt(hr,Br,ua)){if(Kn){let Lo=jn(Ze.aliasSymbol?Ze:hr),Aa=jn(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,Aa):fo(f.Type_0_has_no_properties_in_common_with_type_1,Lo,Aa)}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,Kn,bn):Ai(hr,Br,Kn,bn,$t);if(Ei)return Ei}return Kn&&Do(Ze,vt,hr,Br,Ir),0}function Do(Ze,vt,$t,Kn,Ir){var bn,hr;let Br=!!cye(Ze),zi=!!cye(vt);$t=Ze.aliasSymbol||Br?Ze:$t,Kn=vt.aliasSymbol||zi?vt:Kn;let wo=Mn>0;if(wo&&Mn--,$t.flags&524288&&Kn.flags&524288){let ua=W;Yn($t,Kn,!0),W!==ua&&(wo=!!W)}if($t.flags&524288&&Kn.flags&402784252)Pn($t,Kn);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&&Kn.flags&2097152){let ua=Kn.types,pa=US(nf.IntrinsicAttributes,u),Ei=US(nf.IntrinsicClassAttributes,u);if(!Ut(pa)&&!Ut(Ei)&&(zo(ua,pa)||zo(ua,Ei)))return}else W=age(W,vt);if(!Ir&&wo){On=[$t,Kn];return}if(lp(Ir,$t,Kn),$t.flags&262144&&((hr=(bn=$t.symbol)==null?void 0:bn.declarations)!=null&&hr[0])&&!OA($t)){let ua=qge($t);if(ua.constraint=io(Kn,zS($t,ua)),n5(ua)){let pa=jn(Kn,$t.symbol.declarations[0]);jf(Pr($t.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,pa))}}}function os(Ze,vt){if(or&&Ze.flags&3145728&&vt.flags&3145728){let $t=Ze,Kn=vt;if($t.objectFlags&Kn.objectFlags&32768)return;let Ir=$t.types.length,bn=Kn.types.length;Ir*bn>1e6&&or.instant(or.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 ti(nu(Ze,(Kn,Ir)=>{var bn;Ir=Mu(Ir);let hr=Ir.flags&3145728?r5(Ir,vt):n0(Ir,vt),Br=hr&&cr(hr)||((bn=cx(Ir,vt))==null?void 0:bn.type)||Le;return Tn(Kn,Br)},void 0)||Ye)}function Vd(Ze,vt,$t){var Kn;if(!z5(vt)||!fe&&Lr(vt)&4096)return!1;let Ir=!!(Lr(Ze)&2048);if((c===ju||c===Ip)&&(eL(Re,vt)||!Ir&&fy(vt)))return!1;let bn=vt,hr;vt.flags&1048576&&(bn=A4e(Ze,vt,yr)||ryt(vt),hr=bn.flags&1048576?bn.types:[bn]);for(let Br of _s(Ze))if(Oa(Br,Ze.symbol)&&!i8e(Ze,Br)){if(!tve(bn,Br.escapedName,Ir)){if($t){let zi=dc(bn,z5);if(!u)return R.fail();if($0(u)||su(u)||su(u.parent)){Br.valueDeclaration&&k_(Br.valueDeclaration)&&Vn(u)===Vn(Br.valueDeclaration.name)&&(u=Br.valueDeclaration.name);let wo=Si(Br),ua=JWe(wo,zi),pa=ua?Si(ua):void 0;pa?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,wo,jn(zi),pa):fo(f.Property_0_does_not_exist_on_type_1,wo,jn(zi))}else{let wo=((Kn=Ze.symbol)==null?void 0:Kn.declarations)&&Yc(Ze.symbol.declarations),ua;if(Br.valueDeclaration&&Fn(Br.valueDeclaration,pa=>pa===wo)&&Vn(wo)===Vn(u)){let pa=Br.valueDeclaration;R.assertNode(pa,Pg);let Ei=pa.name;u=Ei,Fe(Ei)&&(ua=dve(Ei,zi))}ua!==void 0?Dc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Si(Br),jn(zi),ua):Dc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Si(Br),jn(zi))}}return!0}if(hr&&!yr(cr(Br),Es(hr,Br.escapedName),3,$t))return $t&&vo(f.Types_of_property_0_are_incompatible,Si(Br)),!0}return!1}function Oa(Ze,vt){return Ze.valueDeclaration&&vt.valueDeclaration&&Ze.valueDeclaration.parent===vt.valueDeclaration}function Lu(Ze,vt,$t,Kn){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===Ip?Te(Ze,vt,$t&&!(Ze.flags&402784252),Kn):Dr(Ze,vt,$t&&!(Ze.flags&402784252),Kn)}if(vt.flags&1048576)return vl(W8(Ze),vt,$t&&!(Ze.flags&402784252)&&!(vt.flags&402784252),Kn);if(vt.flags&2097152)return at(Ze,vt,$t,2);if(c===Ip&&vt.flags&402784252){let Ir=Pc(Ze.types,bn=>bn.flags&465829888?Bd(bn)||un:bn);if(Ir!==Ze.types){if(Ze=ha(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 Ol(Ze,vt){let $t=-1,Kn=Ze.types;for(let Ir of Kn){let bn=vl(Ir,vt,!1,0);if(!bn)return 0;$t&=bn}return $t}function vl(Ze,vt,$t,Kn){let Ir=vt.types;if(vt.flags&1048576){if(dy(Ir,Ze))return-1;if(c!==Ip&&Lr(vt)&32768&&!(Ze.flags&1024)&&(Ze.flags&2688||(c===Rh||c===Lf)&&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=O8e(vt,Ze);if(bn){let hr=yr(Ze,bn,2,!1,void 0,Kn);if(hr)return hr}}for(let bn of Ir){let hr=yr(Ze,bn,2,!1,void 0,Kn);if(hr)return hr}if($t){let bn=a8e(Ze,vt,yr);bn&&yr(Ze,bn,2,!0,void 0,Kn)}return 0}function at(Ze,vt,$t,Kn){let Ir=-1,bn=vt.types;for(let hr of bn){let Br=yr(Ze,hr,2,$t,void 0,Kn);if(!Br)return 0;Ir&=Br}return Ir}function Te(Ze,vt,$t,Kn){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 ua=yr(zi,hr.types[Br%hr.types.length],3,!1,void 0,Kn);if(ua){Ir&=ua;continue}}let wo=yr(zi,vt,1,$t,void 0,Kn);if(!wo)return 0;Ir&=wo}return Ir}function ui(Ze=Ye,vt=Ye,$t=Ye,Kn,Ir){if(Ze.length!==vt.length&&c===rp)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 Aa;return sn===3?((bn=or)==null||bn.instant(or.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}),Aa=3):((hr=or)==null||hr.push(or.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ze.id,targetId:vt.id}),Aa=Ii(Ze,vt,$t,Kn),(Br=or)==null||Br.pop()),sa&&(sa=Ei),Ir&1&&At--,Ir&2&&rn--,sn=pa,Aa?(Aa===-1||At===0&&rn===0)&&Ds(Aa===-1||Aa===3):(c.set(zi,($t?4:0)|2|Lo),$n--,Ds(!1)),Aa;function Ds(ps){for(let Nc=ua;NcBr!==Ze)&&(bn=yr(hr,vt,1,!1,void 0,Kn))}bn&&!(Kn&2)&&vt.flags&2097152&&!VA(vt)&&Ze.flags&2621440?(bn&=bi(Ze,vt,$t,void 0,!1,0),bn&&u0(Ze)&&Lr(Ze)&8192&&(bn&=as(Ze,vt,!1,$t,0))):bn&&LZ(vt)&&!l0(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,Kn))}return bn&&Qn(Ir),bn}function zr(Ze,vt){let $t=Mu(wA(vt)),Kn=[];return Qhe($t,8576,!1,Ir=>void Kn.push(io(Ze,D8(vt.mapper,d_(vt),Ir)))),ti(Kn)}function Ar(Ze,vt,$t,Kn,Ir){let bn,hr,Br=!1,zi=Ze.flags,wo=vt.flags;if(c===rp){if(zi&3145728){let Ei=Ol(Ze,vt);return Ei&&(Ei&=Ol(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(o0(Ze),o0(vt),3,!1))&&(bn&=yr(a0(Ze),a0(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,Kn))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&&!(UZ(Ze)||UZ(vt))){let Ei=l8e(Ze.aliasSymbol);if(Ei===Ye)return 1;let Lo=qi(Ze.aliasSymbol).typeParameters,Aa=Wh(Lo),Ds=Mb(Ze.aliasTypeArguments,Lo,Aa,ar(Ze.aliasSymbol.valueDeclaration)),ps=Mb(vt.aliasTypeArguments,Lo,Aa,ar(Ze.aliasSymbol.valueDeclaration)),Nc=pa(Ds,ps,Ei,Kn);if(Nc!==void 0)return Nc}if(g8e(Ze)&&!Ze.target.readonly&&(bn=yr(Hs(Ze)[0],vt,1))||g8e(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(X_(vt),gf(Ze),3)&&!(Oh(Ze)&4)){let Ei=ly(Ze),Lo=Np(vt,d_(Ze));if(bn=yr(Ei,Lo,3,$t))return bn}if(c===Ip&&zi&262144){let Ei=Pu(Ze);if(Ei)for(;Ei&&Bm(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(wa(Ei)){if(bn=yr(Ze,_Oe(Ei),2,$t))return bn}else{let Lo=ege(Ei);if(Lo){if(yr(Ze,X_(Lo,vt.indexFlags|4),2,$t)===-1)return-1}else if(Hu(Ei)){let Aa=lv(Ei),Ds=gf(Ei),ps;if(Aa&&dC(Ei)){let Nc=zr(Aa,Ei);ps=ti([Nc,Aa])}else ps=Aa||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===Ip){let Ei=vt.objectType,Lo=vt.indexType,Aa=Bd(Ei)||Ei,Ds=Bd(Lo)||Lo;if(!VA(Aa)&&!jA(Ds)){let ps=4|(Aa!==Ei?2:0),Nc=kb(Aa,Ds,ps);if(Nc){if($t&&hr&&Qn(Ir),bn=yr(Ze,Nc,2,$t,void 0,Kn))return bn;$t&&hr&&W&&(W=ua([hr])<=ua([W])?hr:W)}}}$t&&(hr=void 0)}else if(Hu(vt)&&c!==rp){let Ei=!!vt.declaration.nameType,Lo=ly(vt),Aa=Oh(vt);if(!(Aa&8)){if(!Ei&&Lo.flags&8388608&&Lo.objectType===Ze&&Lo.indexType===d_(vt))return-1;if(!Hu(Ze)){let Ds=Ei?lv(vt):gf(vt),ps=X_(Ze,2),Nc=Aa&4,Vh=Nc?ZB(Ds,ps):void 0;if(Nc?!(Vh.flags&131072):yr(Ds,ps,3)){let yy=ly(vt),rI=d_(vt),iI=tL(yy,-98305);if(!Ei&&iI.flags&8388608&&iI.indexType===rI){if(bn=yr(Ze,iI.objectType,2,$t))return bn}else{let _L=Ei?Vh||Ds:Vh?ha([Vh,rI]):rI,y_=Np(Ze,_L);if(bn=yr(y_,yy,3,$t))return bn}}hr=W,Qn(Ir)}}}else if(wo&16777216){if(qM(vt,je,rn,10))return 3;let Ei=vt;if(!Ei.root.inferTypeParameters&&!alt(Ei.root)&&!(Ze.flags&16777216&&Ze.root===Ei.root)){let Lo=!ga(N8(Ei.checkType),N8(Ei.extendsType)),Aa=!Lo&&ga(HA(Ei.checkType),HA(Ei.extendsType));if((bn=Lo?-1:yr(Ze,o0(Ei),2,!1,void 0,Kn))&&(bn&=Aa?-1:yr(Ze,a0(Ei),2,!1,void 0,Kn),bn))return bn}}else if(wo&134217728){if(zi&134217728){if(c===Ip)return Lct(Ze,vt)?0:-1;io(Ze,ud)}if(see(Ze,vt))return-1}else if(vt.flags&268435456&&!(Ze.flags&268435456)&&aee(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,Kn))return bn;if(bn=yr(Hp(Ei,Ze),vt,1,$t&&Ei!==un&&!(wo&zi&262144),void 0,Kn))return bn;if(ige(Ze)){let Lo=OA(Ze.indexType);if(Lo&&(bn=yr(Np(Ze.objectType,Lo),vt,1,$t)))return bn}}}else if(zi&4194304){let Ei=Fge(Ze.type,Ze.indexFlags)&&Lr(Ze.type)&32;if(bn=yr(Os,vt,1,$t&&!Ei))return bn;if(Ei){let Lo=Ze.type,Aa=lv(Lo),Ds=Aa&&dC(Lo)?zr(Aa,Lo):Aa||gf(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(qM(Ze,_e,At,10))return 3;if(wo&16777216){let Aa=Ze.root.inferTypeParameters,Ds=Ze.extendsType,ps;if(Aa){let Nc=F8(Aa,void 0,0,ro);hy(Nc.inferences,vt.extendsType,Ds,1536),Ds=io(Ds,Nc.mapper),ps=Nc.mapper}if(py(Ds,vt.extendsType)&&(yr(Ze.checkType,vt.checkType,3)||yr(vt.checkType,Ze.checkType,3))&&((bn=yr(io(o0(Ze),ps),o0(vt),3,$t))&&(bn&=yr(a0(Ze),a0(vt),3,$t)),bn))return bn}let Ei=tge(Ze);if(Ei&&(bn=yr(Ei,vt,1,$t)))return bn;let Lo=!(wo&16777216)&&n5(Ze)?Dwe(Ze):void 0;if(Lo&&(Qn(Ir),bn=yr(Lo,vt,1,$t)))return bn}else{if(c!==Rh&&c!==Lf&&gat(vt)&&fy(Ze))return-1;if(Hu(vt))return Hu(Ze)&&(bn=ot(Ze,vt,$t))?bn:0;let Ei=!!(zi&402784252);if(c!==rp)Ze=Mu(Ze),zi=Ze.flags;else if(Hu(Ze))return 0;if(Lr(Ze)&4&&Lr(vt)&4&&Ze.target===vt.target&&!wa(Ze)&&!(UZ(Ze)||UZ(vt))){if(XZ(Ze))return-1;let Lo=oye(Ze.target);if(Lo===Ye)return 1;let Aa=pa(Hs(Ze),Hs(vt),Lo,Kn);if(Aa!==void 0)return Aa}else{if(XM(vt)?sp(Ze,l0):Vf(vt)&&sp(Ze,Lo=>wa(Lo)&&!Lo.target.readonly))return c!==rp?yr(r0(Ze,It)||G,r0(vt,It)||G,3,$t):0;if(zb(Ze)&&wa(vt)&&!zb(vt)){let Lo=cy(Ze);if(Lo!==Ze)return yr(Lo,vt,1,$t)}else if((c===Rh||c===Lf)&&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,Kn),bn&&(bn&=lo(Ze,vt,0,Lo,Kn),bn&&(bn&=lo(Ze,vt,1,Lo,Kn),bn&&(bn&=as(Ze,vt,Ei,Lo,Kn)))),Br&&bn)W=hr||W||Ir.errorInfo;else if(bn)return bn}if(zi&2621440&&wo&1048576){let Lo=tL(vt,36175872);if(Lo.flags&1048576){let Aa=wt(Ze,Lo);if(Aa)return Aa}}}return 0;function ua(Ei){return Ei?nu(Ei,(Lo,Aa)=>Lo+1+ua(Aa.next),0):0}function pa(Ei,Lo,Aa,Ds){if(bn=ui(Ei,Lo,Aa,$t,Ds))return bn;if(gt(Aa,Nc=>!!(Nc&24))){hr=void 0,Qn(Ir);return}let ps=Lo&&qlt(Lo,Aa);if(Br=!ps,Aa!==Ye&&!ps){if(Br&&!($t&>(Aa,Nc=>(Nc&7)===0)))return 0;hr=W,Qn(Ir)}}}function ot(Ze,vt,$t){if(c===Ip||(c===rp?Oh(Ze)===Oh(vt):Zhe(Ze)<=Zhe(vt))){let Ir,bn=gf(vt),hr=io(gf(Ze),Zhe(Ze)<0?Ts:ud);if(Ir=yr(bn,hr,3,$t)){let Br=Pp([d_(Ze)],[d_(vt)]);if(io(lv(Ze),Br)===io(lv(vt),Br))return Ir&yr(io(ly(Ze),Br),ly(vt),3,$t)}}return 0}function wt(Ze,vt){var $t;let Kn=_s(Ze),Ir=w8e(Kn,vt);if(!Ir)return 0;let bn=1;for(let pa of Ir)if(bn*=sdt(Db(pa)),bn>25)return($t=or)==null||$t.instant(or.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ze.id,targetId:vt.id,numCombinations:bn}),0;let hr=new Array(Ir.length),Br=new Set;for(let pa=0;papa[Aa],!1,0,J||c===Ip))continue e}vf(wo,Lo,Iy),Ei=!0}if(!Ei)return 0}let ua=-1;for(let pa of wo)if(ua&=bi(Ze,pa,!1,Br,!1,0),ua&&(ua&=lo(Ze,pa,0,!1,0),ua&&(ua&=lo(Ze,pa,1,!1,0),ua&&!(wa(Ze)&&wa(pa))&&(ua&=as(Ze,pa,!1,!1,0)))),!ua)return ua;return ua}function Qt(Ze,vt){if(!vt||Ze.length===0)return Ze;let $t;for(let Kn=0;Kn5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,jn(Ze),jn(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,jn(Ze),jn(vt),mn(bn,hr=>Si(hr)).join(", ")),Ir&&W&&Mn++)}function bi(Ze,vt,$t,Kn,Ir,bn){if(c===rp)return pi(Ze,vt,Kn);let hr=-1;if(wa(vt)){if(l0(Ze)){if(!vt.target.readonly&&(XM(Ze)||wa(Ze)&&Ze.target.readonly))return 0;let pa=dv(Ze),Ei=dv(vt),Lo=wa(Ze)?Ze.target.combinedFlags&4:4,Aa=vt.target.combinedFlags&4,Ds=wa(Ze)?Ze.target.minLength:0,ps=vt.target.minLength;if(!Lo&&pa=yy?Ei-1-Math.min(Vm,rI):y_,xr=vt.target.elementFlags[Ct];if(xr&8&&!(vx&8))return $t&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ct),0;if(vx&8&&!(xr&12))return $t&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,y_,Ct),0;if(xr&1&&!(vx&1))return $t&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Ct),0;if(_L&&((vx&12||xr&12)&&(_L=!1),_L&&Kn?.has(""+y_)))continue;let fi=Gb(Nc[y_],!!(vx&xr&2)),Kr=Vh[Ct],li=vx&8&&xr&4?Gd(Kr):Gb(Kr,!!(xr&2)),es=yr(fi,li,3,$t,void 0,bn);if(!es)return $t&&(Ei>1||pa>1)&&(iI&&y_>=yy&&Vm>=rI&&yy!==pa-rI-1?vo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,yy,pa-rI-1,Ct):vo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,y_,Ct)),0;hr&=es}return hr}if(vt.target.combinedFlags&12)return 0}let Br=(c===Rh||c===Lf)&&!u0(Ze)&&!XZ(Ze)&&!wa(Ze),zi=Sye(Ze,vt,Br,!1);if(zi)return $t&&An(Ze,vt)&&Wn(Ze,vt,zi,Br),0;if(u0(vt)){for(let pa of Qt(_s(Ze),Kn))if(!n0(vt,pa.escapedName)&&!(cr(pa).flags&32768))return $t&&fo(f.Property_0_does_not_exist_on_type_1,Si(pa),jn(vt)),0}let wo=_s(vt),ua=wa(Ze)&&wa(vt);for(let pa of Qt(wo,Kn)){let Ei=pa.escapedName;if(!(pa.flags&4194304)&&(!ua||ig(Ei)||Ei==="length")&&(!Ir||pa.flags&16777216)){let Lo=_a(Ze,Ei);if(Lo&&Lo!==pa){let Aa=ln(Ze,vt,Lo,pa,Db,$t,bn,c===Ip);if(!Aa)return 0;hr&=Aa}}}return hr}function pi(Ze,vt,$t){if(!(Ze.flags&524288&&vt.flags&524288))return 0;let Kn=Qt(Pb(Ze),$t),Ir=Qt(Pb(vt),$t);if(Kn.length!==Ir.length)return 0;let bn=-1;for(let hr of Kn){let Br=n0(vt,hr.escapedName);if(!Br)return 0;let zi=sye(hr,Br,yr);if(!zi)return 0;bn&=zi}return bn}function lo(Ze,vt,$t,Kn,Ir){var bn,hr;if(c===rp)return la(Ze,vt,$t);if(vt===tn||Ze===tn)return-1;let Br=Ze.symbol&&Z_(Ze.symbol.valueDeclaration),zi=vt.symbol&&Z_(vt.symbol.valueDeclaration),wo=Ko(Ze,Br&&$t===1?0:$t),ua=Ko(vt,zi&&$t===1?0:$t);if($t===1&&wo.length&&ua.length){let Ds=!!(wo[0].flags&4),ps=!!(ua[0].flags&4);if(Ds&&!ps)return Kn&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!g_(wo[0],ua[0],Kn))return 0}let pa=-1,Ei=$t===1?Gi:Zr,Lo=Lr(Ze),Aa=Lr(vt);if(Lo&64&&Aa&64&&Ze.symbol===vt.symbol||Lo&4&&Aa&4&&Ze.target===vt.target){R.assertEqual(wo.length,ua.length);for(let Ds=0;DsMh(yy,void 0,262144,$t);return fo(f.Type_0_is_not_assignable_to_type_1,Vh(ps),Vh(Nc)),fo(f.Types_of_construct_signatures_are_incompatible),pa}}else e:for(let Ds of ua){let ps=xo(),Nc=Kn;for(let Vh of wo){let yy=co(Vh,Ds,!0,Nc,Ir,Ei(Vh,Ds));if(yy){pa&=yy,Qn(ps);continue e}Nc=!1}return Nc&&fo(f.Type_0_provides_no_match_for_the_signature_1,jn(Ze),Mh(Ds,void 0,void 0,$t)),0}return pa}function An(Ze,vt){let $t=i5(Ze,0),Kn=i5(Ze,1),Ir=Pb(Ze);return($t.length||Kn.length)&&!Ir.length?!!(Ko(vt,0).length&&$t.length||Ko(vt,1).length&&Kn.length):!0}function Zr(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Kn)=>vo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,jn($t),jn(Kn)):($t,Kn)=>vo(f.Call_signature_return_types_0_and_1_are_incompatible,jn($t),jn(Kn))}function Gi(Ze,vt){return Ze.parameters.length===0&&vt.parameters.length===0?($t,Kn)=>vo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,jn($t),jn(Kn)):($t,Kn)=>vo(f.Construct_signature_return_types_0_and_1_are_incompatible,jn($t),jn(Kn))}function co(Ze,vt,$t,Kn,Ir,bn){let hr=c===Rh?16:c===Lf?24:0;return eye($t?T8(Ze):Ze,$t?T8(vt):vt,hr,Kn,fo,bn,Br,ud);function Br(zi,wo,ua){return yr(zi,wo,3,ua,void 0,Ir)}}function la(Ze,vt,$t){let Kn=Ko(Ze,$t),Ir=Ko(vt,$t);if(Kn.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!==Lf&&!$t&&hr&&zi.type.flags&1?-1:Hu(Ze)&&hr?yr(ly(Ze),zi.type,3,Kn):Cc(Ze,zi,Kn,Ir);if(!wo)return 0;Br&=wo}return Br}function Cc(Ze,vt,$t,Kn){let Ir=b8(Ze,vt.keyType);return Ir?Cl(Ir,vt,$t,Kn):!(Kn&1)&&(c!==Lf||Lr(Ze)&8192)&&tee(Ze)?bc(Ze,vt,$t,Kn):($t&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,jn(vt.keyType),jn(Ze)),0)}function Ks(Ze,vt){let $t=hu(Ze),Kn=hu(vt);if($t.length!==Kn.length)return 0;for(let Ir of Kn){let bn=Eg(Ze,Ir.keyType);if(!(bn&&yr(bn.type,Ir.type,3)&&bn.isReadonly===Ir.isReadonly))return 0}return-1}function g_(Ze,vt,$t){if(!Ze.declaration||!vt.declaration)return!0;let Kn=wI(Ze.declaration,6),Ir=wI(vt.declaration,6);return Ir===2||Ir===4&&Kn!==2||Ir!==4&&!Kn?!0:($t&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,MA(Kn),MA(Ir)),!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=OA(n);if(a&&a!==n)return rye(a)}return m_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function o8e(n,a){return wa(n)&&wa(a)?Ye:_s(a).filter(c=>jZ(Ue(n,c.escapedName),cr(c)))}function jZ(n,a){return!!n&&!!a&&Dl(n,32768)&&!!O8(a)}function Klt(n){return _s(n).filter(a=>O8(cr(a)))}function a8e(n,a,c=Qge){return A4e(n,a,c)||Zgt(n,a)||eyt(n,a)||tyt(n,a)||nyt(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 s8e(n){if(n.flags&524288){let a=u_(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,s8e):!1}function Jlt(n,a,c){for(let u of _s(n))if(tve(a,u.escapedName,c))return!0;return!1}function oye(n){return n===qo||n===Qo||n.objectFlags&8?Y:c8e(n.symbol,n.typeParameters)}function l8e(n){return c8e(n,qi(n).typeParameters)}function c8e(n,a=Ye){var c,u;let _=qi(n);if(!_.variances){(c=or)==null||c.push(or.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:gu(Qs(n))});let g=OE;OE||(OE=!0,z1=md.length),_.variances=Ye;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=sa;sa=At=>At?ye=!0:te=!0;let je=v5(n,M,Sp),mt=v5(n,M,Ns);V=(ga(mt,je)?1:0)|(ga(je,mt)?2:0),V===3&&ga(v5(n,M,Ic),je)&&(V=4),sa=_e,(te||ye)&&(te&&(V|=8),ye&&(V|=16))}T.push(V)}g||(OE=!1,z1=0),_.variances=T,(u=or)==null||u.pop({variances:T.map(R.formatVariance)})}return _.variances}function v5(n,a,c){let u=zS(a,c),_=Qs(n);if(Ut(_))return _;let g=n.flags&524288?fC(n,pv(qi(n).typeParameters,u)):cv(_,pv(_.typeParameters,u));return dt.add(gu(g)),g}function UZ(n){return dt.has(gu(n))}function aye(n){var a;return nu((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|cu(u),0)&28672}function qlt(n,a){for(let c=0;c!!(a.flags&262144)||HZ(a))}function $lt(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||Xlt(_e)){let je=_.indexOf(_e);je<0&&(je=_.length,_.push(_e)),ye+="="+je;continue}g="*"}else if(te<4&&HZ(_e)){ye+="<"+W(_e,te+1)+">";continue}ye+="-"+_e.id}return ye}}function KZ(n,a,c,u,_){if(u===rp&&n.id>a.id){let T=n;n=a,a=T}let g=c?":"+c:"";return HZ(n)&&HZ(a)?$lt(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=_a(c,n.escapedName),_=u&&b5(u,a);if(_)return _}return}return a(n)}function mx(n){return n.parent&&n.parent.flags&32?Qs(Cu(n)):void 0}function JZ(n){let a=mx(n),c=a&&Cp(a)[0];return c&&Ue(c,n.escapedName)}function Qlt(n,a){return b5(n,c=>{let u=mx(c);return u?sC(u,a):!1})}function Zlt(n,a){return!b5(a,c=>Af(c)&4?!Qlt(n,mx(c)):!1)}function d8e(n,a,c){return b5(a,u=>Af(u,c)&4?!sC(n,mx(u)):!1)?void 0:n}function qM(n,a,c,u=3){if(c>=u){if((Lr(n)&96)===96&&(n=u8e(n)),n.flags&2097152)return gt(n.types,M=>qM(M,a,c,u));let _=qZ(n),g=0,T=0;for(let M=0;M=T&&(g++,g>=u))return!0;T=W.id}}}return!1}function u8e(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 p8e(n,a){return(Lr(n)&96)===96&&(n=u8e(n)),n.flags&2097152?gt(n.types,c=>p8e(c,a)):qZ(n)===a}function qZ(n){if(n.flags&524288&&!Aye(n)){if(Lr(n)&4&&n.node)return n.node;if(n.symbol&&!(Lr(n)&16&&n.symbol.flags&32))return n.symbol;if(wa(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function ect(n,a){return sye(n,a,P8)!==0}function sye(n,a,c){if(n===a)return-1;let u=Af(n)&6,_=Af(a)&6;if(u!==_)return 0;if(u){if(RC(n)!==RC(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return h_(n)!==h_(a)?0:c(cr(n),cr(a))}function tct(n,a,c){let u=Jp(n),_=Jp(a),g=eh(n),T=eh(a),M=Gh(n),W=Gh(a);return!!(u===_&&g===T&&M===W||c&&g<=T)}function E5(n,a,c,u,_,g){if(n===a)return-1;if(!tct(n,a,c)||Nn(n.typeParameters)!==Nn(a.typeParameters))return 0;if(a.typeParameters){let W=Pp(n.typeParameters,a.typeParameters);for(let V=0;Va|(c.flags&1048576?f8e(c.types):c.flags),0)}function ict(n){if(n.length===1)return n[0];let a=J?Pc(n,u=>dc(u,_=>!(_.flags&98304))):n,c=rct(a)?ti(a):nu(a,(u,_)=>Wb(u,_)?_:u);return a===n?c:A5(c,f8e(n)&98304)}function oct(n){return nu(n,(a,c)=>Wb(c,a)?c:a)}function Vf(n){return!!(Lr(n)&4)&&(n.target===qo||n.target===Qo)}function XM(n){return!!(Lr(n)&4)&&n.target===Qo}function l0(n){return Vf(n)||wa(n)}function S5(n){return Vf(n)&&!XM(n)||wa(n)&&!n.target.readonly}function T5(n){return Vf(n)?Hs(n)[0]:void 0}function fv(n){return Vf(n)||!(n.flags&98304)&&ga(n,cf)}function lye(n){return S5(n)||!(n.flags&98305)&&ga(n,ec)}function cye(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 _=As(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=Cp(a);if(c.length!==1||Nb(n.symbol).size)return;let u=Nn(a.typeParameters)?io(c[0],Pp(a.typeParameters,Hs(n).slice(0,a.typeParameters.length))):c[0];return Nn(Hs(n))>Nn(a.typeParameters)&&(u=Hp(u,Ja(Hs(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function m8e(n){return J?n===Pi:n===Nt}function XZ(n){let a=T5(n);return!!a&&m8e(a)}function YM(n){let a;return wa(n)||!!_a(n,"0")||fv(n)&&!!(a=Ue(n,"length"))&&sp(a,c=>!!(c.flags&256))}function YZ(n){return fv(n)||YM(n)}function act(n,a){let c=Ue(n,""+a);if(c)return c;if(sp(n,wa))return y8e(n,a,B.noUncheckedIndexedAccess?Le:void 0)}function sct(n){return!(n.flags&240544)}function m_(n){return!!(n.flags&109472)}function _8e(n){let a=cy(n);return a.flags&2097152?gt(a.types,m_):m_(a)}function lct(n){return n.flags&2097152&&Gr(n.types,m_)||n}function k8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:oo(n.types,m_):m_(n)}function my(n){return n.flags&1056?hZ(n):n.flags&402653312?Ne:n.flags&256?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?cct(n):n}function cct(n){let a=`B${gu(n)}`;return K1(a)??cb(a,dl(n,my))}function dye(n){return n.flags&402653312?Ne:n.flags&288?It:n.flags&2048?Dt:n.flags&512?gi:n.flags&1048576?dl(n,dye):n}function GS(n){return n.flags&1056&&FS(n)?hZ(n):n.flags&128&&FS(n)?Ne:n.flags&256&&FS(n)?It:n.flags&2048&&FS(n)?Dt:n.flags&512&&FS(n)?gi:n.flags&1048576?dl(n,GS):n}function h8e(n){return n.flags&8192?xi:n.flags&1048576?dl(n,h8e):n}function uye(n,a){return Bee(n,a)||(n=h8e(GS(n))),yu(n)}function dct(n,a,c){if(n&&m_(n)){let u=a?c?Y8(a):a:void 0;n=uye(n,u)}return n}function pye(n,a,c,u){if(n&&m_(n)){let _=a?KS(c,a,u):void 0;n=uye(n,_)}return n}function wa(n){return!!(Lr(n)&4&&n.target.objectFlags&8)}function zb(n){return wa(n)&&!!(n.target.combinedFlags&8)}function g8e(n){return zb(n)&&n.target.elementFlags.length===1}function $Z(n){return $M(n,n.target.fixedLength)}function y8e(n,a,c){return dl(n,u=>{let _=u,g=$Z(_);return g?c&&a>=Lge(_.target)?ti([g,c]):g:Le})}function uct(n){let a=$Z(n);return a&&Gd(a)}function $M(n,a,c=0,u=!1,_=!1){let g=dv(n)-c;if(a(c&12)===(a.target.elementFlags[u]&12))}function v8e({value:n}){return n.base10Value==="0"}function b8e(n){return dc(n,a=>um(a,4194304))}function fct(n){return dl(n,mct)}function mct(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&&v8e(n)?n:Wr}function A5(n,a){let c=a&~n.flags&98304;return c===0?n:ti(c===32768?[n,Le]:c===65536?[n,ue]:[n,Le,ue])}function Bb(n,a=!1){R.assert(J);let c=a?ie:Le;return n===c||n.flags&1048576&&n.types[0]===c?n:ti([n,c])}function _ct(n){return Bu||(Bu=HM("NonNullable",524288,void 0)||ct),Bu!==ct?fC(Bu,[n]):ha([n,Ca])}function _y(n){return J?XA(n,2097152):n}function E8e(n){return J?ti([n,H]):n}function QZ(n){return J?dee(n,H):n}function ZZ(n,a,c){return c?dN(a)?Bb(n):E8e(n):n}function w8(n,a){return lF(a)?_y(n):Hd(a)?QZ(n):n}function Gb(n,a){return Ie&&a?dee(n,k):n}function O8(n){return n===k||!!(n.flags&1048576)&&n.types[0]===k}function eee(n){return Ie?dee(n,k):pm(n,524288)}function hct(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function tee(n){let a=Lr(n);return n.flags&2097152?oo(n.types,tee):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!nte(n))||!!(a&4194304)||!!(a&1024&&tee(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 gct(n,a){let c=oa();for(let u of Pb(n)){let _=cr(u),g=a(_);c.set(u.escapedName,g===_?u:KA(u,g))}return c}function W8(n){if(!(u0(n)&&Lr(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=gct(n,W8),_=Ps(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function S8e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function T8e(n){if(!n.siblings){let a=[];for(let c of T8e(n.parent))if(u0(c)){let u=n0(c,n.propertyName);u&&YA(cr(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function yct(n){if(!n.resolvedProperties){let a=new Map;for(let c of T8e(n))if(u0(c)&&!(Lr(c)&2097152))for(let u of _s(c))a.set(u.escapedName,u);n.resolvedProperties=Oo(a.values())}return n.resolvedProperties}function vct(n,a){if(!(n.flags&4))return n;let c=cr(n),u=a&&S8e(a,n.escapedName,void 0),_=fye(c,u);return _===c?n:KA(n,_)}function bct(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 Ect(n,a){let c=oa();for(let _ of Pb(n))c.set(_.escapedName,vct(_,a));if(a)for(let _ of yct(a))c.has(_.escapedName)||c.set(_.escapedName,bct(_));let u=Ps(n.symbol,c,Ye,Ye,Pc(hu(n),_=>Fh(_.keyType,Kp(_.type),_.isReadonly)));return u.objectFlags|=Lr(n)&266240,u}function Kp(n){return fye(n,void 0)}function fye(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(u0(n))c=Ect(n,a);else if(n.flags&1048576){let u=a||S8e(void 0,void 0,n.types),_=Pc(n.types,g=>g.flags&98304?g:fye(g,u));c=ti(_,gt(_,fy)?2:1)}else n.flags&2097152?c=ha(Pc(n.types,Kp)):l0(n)&&(c=cv(n.target,Pc(Hs(n),Kp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function nee(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)nee(c)&&(a=!0);if(l0(n))for(let c of Hs(n))nee(c)&&(a=!0);if(u0(n))for(let c of Pb(n)){let u=cr(c);Lr(u)&65536&&(nee(u)||Ve(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,Si(c),jn(Kp(u))),a=!0)}}return a}function c0(n,a,c){let u=jn(Kp(a));if(ar(n)&&!_k(Vn(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=nE(g.name);if((ZI(g.parent)||gh(g.parent)||yh(g.parent))&&g.parent.parameters.includes(g)&&(yl(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&iU(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&&zR(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 ree(n,a,c){r(()=>{fe&&Lr(a)&65536&&(!c||!Xye(n))&&(nee(a)||c0(n,a,c))})}function mye(n,a,c){let u=Jp(n),_=Jp(a),g=H8(n),T=H8(a),M=T?_-1:_,W=g?M:Math.min(u,M),V=i0(n);if(V){let te=i0(a);te&&c(V,te)}for(let te=0;tea.typeParameter),mn(n.inferences,(a,c)=>()=>(a.isFixed||(Ict(n),iee(n.inferences),a.isFixed=!0),Iye(n,c))))}function Act(n){return Jge(mn(n.inferences,a=>a.typeParameter),mn(n.inferences,(a,c)=>()=>Iye(n,c)))}function iee(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 Ict(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?yWe(a,2):Ju(a,2);u&&hy(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 A8e(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 xct(n){let a=Vr(n.inferences,IC);return a.length?hye(mn(a,A8e),n.signature,n.flags,n.compareTypes):void 0}function vye(n){return n&&n.mapper}function d0(n){let a=Lr(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!I8e(n)&&(a&4&&(n.node||gt(Hs(n),d0))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!I8e(n)&>(n.types,d0));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function I8e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=ul(n.aliasSymbol,265);return!!(a&&Fn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function z8(n,a,c=0){return!!(n===a||n.flags&3145728&>(n.types,u=>z8(u,a,c))||c<3&&n.flags&16777216&&(z8(o0(n),a,c+1)||z8(a0(n),a,c+1)))}function Rct(n,a){let c=zf(n);return c?!!c.type&&z8(c.type,a):z8(us(n),a)}function Dct(n){let a=oa();YA(n,u=>{if(!(u.flags&128))return;let _=ml(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?[Fh(Ne,Ca,!1)]:Ye;return Ps(void 0,a,Ye,Ye,c)}function x8e(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(np,_))return;np.push(_);let g=Cct(n,a,c);return np.pop(),Kc.set(u,g),g}function bye(n){return!(Lr(n)&262144)||u0(n)&>(_s(n),a=>bye(cr(a)))||wa(n)&>(OS(n),bye)}function Cct(n,a,c){if(!(Eg(n,Ne)||_s(n).length!==0&&bye(n)))return;if(Vf(n))return Gd(oee(Hs(n)[0],a,c),XM(n));if(wa(n)){let _=mn(OS(n),T=>oee(T,a,c)),g=Oh(a)&4?Pc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return zh(_,g,n.target.readonly,n.target.labeledElementDeclarations)}let u=wf(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=c,u}function Nct(n){let a=qi(n);return a.type||(a.type=oee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function oee(n,a,c){let u=Np(c.type,d_(a)),_=ly(a),g=yye(u);return hy([g],n,_),R8e(g)||un}function*Eye(n,a,c,u){let _=_s(a);for(let g of _)if(!hwe(g)&&(c||!(g.flags&16777216||Al(g)&48))){let T=_a(n,g.escapedName);if(!T)yield g;else if(u){let M=cr(g);if(M.flags&109472){let W=cr(T);W.flags&1||yu(W)===yu(M)||(yield g)}}}}function Sye(n,a,c,u){return hW(Eye(n,a,c,u))}function Pct(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthux(g,_),n)===n&&aee(n,a)}return!1}function N8e(n,a){if(a.flags&2097152)return oo(a.types,c=>c===sc||N8e(n,c));if(a.flags&4||ga(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&C8e(c,!1)||a.flags&64&&B6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&aee(Ku(c),a)||a.flags&134217728&&see(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ga(n.types[0],a)}return!1}function P8e(n,a){return n.flags&128?M8e([n.value],Ye,a):n.flags&134217728?xL(n.texts,a.texts)?mn(n.types,wct):M8e(n.texts,n.types,a):void 0}function see(n,a){let c=P8e(n,a);return!!c&&oo(c,(u,_)=>N8e(u,a.types[_]))}function wct(n){return n.flags&402653317?n:BA(["",""],[n])}function M8e(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 ir=_e,Mn=je;for(;Mn=mt(ir).indexOf(sn,Mn),!(Mn>=0);){if(ir++,ir===n.length)return;Mn=0}At(ir,Mn),je+=sn.length}else if(je!zo(yr,os)):Pn,Do?Vr(Yn,os=>!zo(Do,os)):Yn]}function ir(Pn,Yn,ro){let yr=Pn.length!!On(Do));if(!yr||Yn&&yr!==Yn)return;Yn=yr}return Yn}function $n(Pn,Yn,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 Oa of Yn)if(On(Oa))Do=Oa,yr++;else for(let Lu=0;LuEs[Ol]?void 0:Lu);if(Oa.length){_e(ti(Oa),Do);return}}}else for(let Do of Yn)On(Do)?yr++:_e(Pn,Do);if(ro&2097152?yr===1:yr>0)for(let Do of Yn)On(Do)&&je(Pn,Do,1)}function Un(Pn,Yn,ro){if(ro.flags&1048576||ro.flags&2097152){let yr=!1;for(let Do of ro.types)yr=Un(Pn,Yn,Do)||yr;return yr}if(ro.flags&4194304){let yr=On(ro.type);if(yr&&!yr.isFixed&&!D8e(Pn)){let Do=x8e(Pn,Yn,ro);Do&&je(Do,yr.typeParameter,Lr(Pn)&262144?16:8)}return!0}if(ro.flags&262144){je(X_(Pn,Pn.pattern?2:0),ro,32);let yr=OA(ro);if(yr&&Un(Pn,Yn,yr))return!0;let Do=mn(_s(Pn),cr),os=mn(hu(Pn),Es=>Es!==Fr?Es.type:Wr);return _e(ti(bo(Do,os)),ly(Yn)),!0}return!1}function Qn(Pn,Yn){if(Pn.flags&16777216)_e(Pn.checkType,Yn.checkType),_e(Pn.extendsType,Yn.extendsType),_e(o0(Pn),o0(Yn)),_e(a0(Pn),a0(Yn));else{let ro=[o0(Yn),a0(Yn)];At(Pn,ro,Yn.flags,_?64:0)}}function xo(Pn,Yn){let ro=P8e(Pn,Yn),yr=Yn.types;if(ro||oo(Yn.texts,Do=>Do.length===0))for(let Do=0;Dovl|at.flags,0);if(!(Ol&4)){let vl=os.value;Ol&296&&!C8e(vl,!0)&&(Ol&=-297),Ol&2112&&!B6(vl,!0)&&(Ol&=-2113);let at=nu(Lu,(Te,Cn)=>Cn.flags&Ol?Te.flags&4?Te:Cn.flags&4?os:Te.flags&134217728?Te:Cn.flags&134217728&&see(os,Cn)?os:Te.flags&268435456?Te:Cn.flags&268435456&&vl===DOe(Cn.symbol,vl)?os:Te.flags&128?Te:Cn.flags&128&&Cn.value===vl?Cn:Te.flags&8?Te:Cn.flags&8?f_(+vl):Te.flags&32?Te:Cn.flags&32?f_(+vl):Te.flags&256?Te:Cn.flags&256&&Cn.value===+vl?Cn:Te.flags&64?Te:Cn.flags&64?kct(vl):Te.flags&2048?Te:Cn.flags&2048&&B0(Cn.value)===vl?Cn:Te.flags&16?Te:Cn.flags&16?vl==="true"?wn:vl==="false"?Kt:gi:Te.flags&512?Te:Cn.flags&512&&Cn.intrinsicName===vl?Cn:Te.flags&32768?Te:Cn.flags&32768&&Cn.intrinsicName===vl?Cn:Te.flags&65536?Te:Cn.flags&65536&&Cn.intrinsicName===vl?Cn:Te:Te,Wr);if(!(at.flags&131072)){_e(at,Es);continue}}}}_e(os,Es)}}function vo(Pn,Yn){_e(gf(Pn),gf(Yn)),_e(ly(Pn),ly(Yn));let ro=lv(Pn),yr=lv(Yn);ro&&yr&&_e(ro,yr)}function Wo(Pn,Yn){var ro,yr;if(Lr(Pn)&4&&Lr(Yn)&4&&(Pn.target===Yn.target||Vf(Pn)&&Vf(Yn))){ir(Hs(Pn),Hs(Yn),oye(Pn.target));return}if(Hu(Pn)&&Hu(Yn)&&vo(Pn,Yn),Lr(Yn)&32&&!Yn.declaration.nameType){let Do=gf(Yn);if(Un(Pn,Yn,Do))return}if(!Mct(Pn,Yn)){if(l0(Pn)){if(wa(Yn)){let Do=dv(Pn),os=dv(Yn),Es=Hs(Yn),Vd=Yn.target.elementFlags;if(wa(Pn)&&pct(Pn,Yn)){for(let Ol=0;Ol0){let os=Ko(Yn,ro),Es=os.length;for(let Vd=0;Vd1){let a=Vr(n,Aye);if(a.length){let c=ti(a,2);return bo(Vr(n,u=>!Aye(u)),[c])}}return n}function Bct(n){return n.priority&416?ha(n.contraCandidates):oct(n.contraCandidates)}function Gct(n,a){let c=zct(n.candidates),u=Fct(n.typeParameter)||WA(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!Rct(a,n.typeParameter)),g=u?Pc(c,yu):_?Pc(c,GS):c,T=n.priority&416?ti(g,2):ict(g);return Kp(T)}function Iye(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?Gct(c,n.signature):void 0,M=c.contraCandidates?Bct(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=FA(c.typeParameter);W&&(u=io(W,ylt(glt(n,a),n.nonFixingMapper)))}}else u=R8e(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,Hp(T,u)))&&(c.inferredType=_&&n.compareTypes(_,Hp(T,_))?_:T)}}return c.inferredType}function xye(n){return n?G:un}function Rye(n){let a=[];for(let c=0;cfu(a)||Im(a)||yp(a)))}function lee(n,a,c,u){switch(n.kind){case 80:if(!kI(n)){let T=zm(n);return T!==ct?`${u?is(u):"-1"}|${gu(a)}|${gu(c)}|${va(T)}`:void 0}case 110:return`0|${u?is(u):"-1"}|${gu(a)}|${gu(c)}`;case 235:case 217:return lee(n.expression,a,c,u);case 166:let _=lee(n.left,a,c,u);return _&&_+"."+n.right.escapedText;case 211:case 212:let g=JA(n);if(g!==void 0){let T=lee(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)}#${gu(a)}`}}function Id(n,a){switch(a.kind){case 217:case 235:return Id(n,a.expression);case 226:return Mc(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 kI(n)?a.kind===110:a.kind===80&&zm(n)===zm(a)||(Oi(a)||Xa(a))&&mf(zm(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(Ys(n))return Vct(n);if(Xa(n)){let a=Qa(n);return a?ml(a):void 0}if(To(n))return""+n.parent.parameters.indexOf(n)}function Cye(n){return n.flags&8192?n.escapedName:n.flags&384?ml(""+n.value):void 0}function Vct(n){return Qp(n.argumentExpression)?ml(n.argumentExpression.text):Gl(n.argumentExpression)?jct(n.argumentExpression):void 0}function jct(n){let a=js(n,111551,!0);if(!a||!(nL(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(pT(c)&&Qg(c,n)){let _=k2(c);if(_){let g=$o(c.parent)?q_(c):Rd(_);return g&&Cye(g)}if(Z0(c))return qx(c.name)}}function k8e(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 QM(n,a){if(n&&n.flags&1048576){let c=wwe(n,a);if(c&&Al(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!hC(cr(c))),!!c.links.isDiscriminantProperty}return!1}function w8e(n,a){let c;for(let u of n)if(QM(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function Uct(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Ue(_,a);if(g){if(!k8(g))return;let T=!1;YA(g,M=>{let W=gu(yu(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||vv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=gn(a,_=>_.flags&59506688?gn(_s(_),g=>m_(cr(g))?g.escapedName:void 0):void 0),u=c&&Uct(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(gu(yu(a)));return u!==un?u:void 0}function O8e(n,a){let c=I5(n),u=c&&Ue(a,c);return u&&x5(n,u)}function Hct(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 W8e(n,a){return Id(n,a)||k8e(n,a)}function F8e(n,a){if(n.arguments){for(let c of n.arguments)if(W8e(a,c)||qA(c,a))return!0}return!!(n.expression.kind===211&&W8e(a,n.expression.expression))}function Nye(n){return(!n.id||n.id<0)&&(n.id=Xse,Xse++),n.id}function Kct(n,a){if(!(n.flags&1048576))return ga(n,a);for(let c of n.types)if(ga(c,a))return!0;return!1}function Jct(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${gu(n)},${gu(a)}`;return K1(c)??cb(c,qct(n,a))}function qct(n,a){let c=dc(n,_=>Kct(a,_)),u=a.flags&512&&FS(a)?dl(c,fx):c;return ga(a,u)?u:n}function Pye(n){let a=u_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Wb(n,Lt))}function ZM(n,a){return Mye(n,a)&a}function um(n,a){return ZM(n,a)!==0}function Mye(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=v8e(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: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?nu(n.types,(u,_)=>u|Mye(_,a),0):c&2097152?Xct(n,a):83886079}function Xct(n,a){let c=Dl(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 pm(n,a){return dc(n,c=>um(c,a))}function XA(n,a){let c=z8e(pm(J&&n.flags&2?ll:n,a));if(J)switch(a){case 524288:return dl(c,u=>um(u,65536)?ha([u,um(u,131072)&&!Dl(c,65536)?ti([Ca,ue]):Ca]):u);case 1048576:return dl(c,u=>um(u,131072)?ha([u,um(u,65536)&&!Dl(c,32768)?ti([Ca,Le]):Ca]):u);case 2097152:case 4194304:return dl(c,u=>um(u,262144)?_ct(u):u)}return c}function z8e(n){return n===ll?un:n}function Lye(n,a){return a?ti([_i(n),Rd(a)]):n}function B8e(n,a){var c;let u=uv(a);if(!Zf(u))return pt;let _=em(u);return Ue(n,_)||B8((c=cx(n,_))==null?void 0:c.type)||pt}function G8e(n,a){return sp(n,YM)&&act(n,a)||B8(_v(65,n,Le,void 0))||pt}function B8(n){return n&&(B.noUncheckedIndexedAccess?ti([n,k]):n)}function V8e(n){return Gd(_v(65,n,Le,void 0)||pt)}function Yct(n){return n.parent.kind===209&&kye(n.parent)||n.parent.kind===303&&kye(n.parent.parent)?Lye(R5(n),n.right):Rd(n.right)}function kye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function $ct(n,a){return G8e(R5(n),n.elements.indexOf(a))}function Qct(n){return V8e(R5(n.parent))}function j8e(n){return B8e(R5(n.parent),n.name)}function Zct(n){return Lye(j8e(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 Yct(a);case 220:return Le;case 209:return $ct(a,n);case 230:return Qct(a);case 303:return j8e(a);case 304:return Zct(a)}return pt}function edt(n){let a=n.parent,c=H8e(a.parent),u=a.kind===206?B8e(c,n.propertyName||n.name):n.dotDotDotToken?V8e(c):G8e(c,a.elements.indexOf(n));return Lye(u,n.initializer)}function U8e(n){return Qr(n).resolvedType||Rd(n)}function tdt(n){return n.initializer?U8e(n.initializer):n.parent.parent.kind===249?Ne:n.parent.parent.kind===250&&lG(n.parent.parent)||pt}function H8e(n){return n.kind===260?tdt(n):edt(n)}function ndt(n){return n.kind===260&&n.initializer&&Ab(n.initializer)||n.kind!==208&&n.parent.kind===226&&Ab(n.parent.right)}function VS(n){switch(n.kind){case 217:return VS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return VS(n.left);case 28:return VS(n.right)}}return n}function K8e(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?K8e(a):n}function rdt(n){return n.kind===296?yu(Rd(n.expression)):Wr}function cee(n){let a=Qr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(rdt(c))}return a.switchTypes}function J8e(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 idt(n,a){return n.flags&1048576?!gn(n.types,c=>!zo(a,c)):zo(a,n)}function eL(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&odt(n,a))}function odt(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&&hZ(n)===a?!0:dy(a.types,n)}function YA(n,a){return n.flags&1048576?gn(n.types,a):a(n)}function Bm(n,a){return n.flags&1048576?gt(n.types,a):a(n)}function sp(n,a){return n.flags&1048576?oo(n.types,a):a(n)}function adt(n,a){return n.flags&3145728?oo(n.types,a):a(n)}function dc(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=kge(1048576,M)}}return Oge(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:Wr}function dee(n,a){return dc(n,c=>c!==a)}function sdt(n){return n.flags&1048576?n.types.length:1}function dl(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?dl(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 q8e(n,a,c,u){return n.flags&1048576&&c?ti(mn(n.types,a),1,c,u):dl(n,a)}function tL(n,a){return dc(n,c=>(c.flags&a)!==0)}function X8e(n,a){return Dl(n,134217804)&&Dl(a,402655616)?dl(n,c=>c.flags&4?tL(a,402653316):GA(c)&&!Dl(a,402653188)?tL(a,128):c.flags&8?tL(a,264):c.flags&64?tL(a,2112):c):n}function vC(n){return n.flags===0}function $A(n){return n.flags===0?n.type:n}function bC(n,a){return a?{flags:0,type:n.flags&131072?ho:n}:n}function ldt(n){let a=wf(256);return a.elementType=n,a}function wye(n){return kn[n.id]||(kn[n.id]=ldt(n))}function Y8e(n,a){let c=W8(my(nG(a)));return eL(c,n.elementType)?n:wye(ti([n.elementType,c]))}function cdt(n){return n.flags&131072?Jc:Gd(n.flags&1048576?ti(n.types,2):n)}function ddt(n){return n.finalArrayType||(n.finalArrayType=cdt(n.elementType))}function D5(n){return Lr(n)&256?ddt(n):n}function udt(n){return Lr(n)&256?n.elementType:Wr}function pdt(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Lr(c)&256))return!1;a=!0}return a}function $8e(n){let a=K8e(n),c=a.parent,u=kr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Fe(c.name)&&Mj(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 fdt(n){return(Oi(n)||jo(n)||hp(n)||To(n))&&!!(vd(n)||ar(n)&&Lv(n)&&n.initializer&&G0(n.initializer)&&Qf(n.initializer))}function uee(n,a){if(n=jl(n),n.flags&8752)return cr(n);if(n.flags&7){if(Al(n)&262144){let u=n.links.syntheticOrigin;if(u&&uee(u))return cr(n)}let c=n.valueDeclaration;if(c){if(fdt(c))return cr(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,_,Le,void 0)}}a&&Pa(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=mf(zm(n));return uee(c,a);case 110:return kdt(n);case 108:return Vye(n);case 211:{let u=C5(n.expression,a);if(u){let _=n.name,g;if(Ki(_)){if(!u.symbol)return;g=_a(u,Q2(u.symbol,_.escapedText))}else g=_a(u,_.escapedText);return g&&uee(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=EC(n.right);u=Lve(T)}else n.parent.kind===244?u=C5(n.expression,void 0):n.expression.kind!==108&&(Hd(n)?u=$_(w8(po(n.expression),n.expression),n.expression):u=EC(n.expression));let _=Ko(u&&Mu(u)||un,0),g=_.length===1&&!_[0].typeParameters?_[0]:gt(_,Q8e)?TC(n):void 0;c=a.effectsSignature=g&&Q8e(g)?g:cn}return c===cn?void 0:c}function Q8e(n){return!!(zf(n)||n.declaration&&(uC(n.declaration)||un).flags&131072)}function mdt(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 _dt(n){let a=Fn(n,kV),c=Vn(n),u=mh(c,a.statements.pos);Za.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=pee(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 pee(n,a){for(;;){if(n===Pt)return Vt;let c=n.flags;if(c&4096){if(!a){let u=Nye(n),_=lA[u];return _!==void 0?_:lA[u]=pee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=N5(n.node);if(u){let _=zf(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=>pee(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&&LFe(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=pee(n.antecedent,!1);return u.antecedents=_,g}else return!(c&1)}}}function fee(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let u=Nye(n),_=H1[u];return _!==void 0?_:H1[u]=fee(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=>fee(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=fee(n.antecedent,!1);return u.antecedents=_,g}else return!!(c&1)}}}function Z8e(n){switch(n.kind){case 110:return!0;case 80:if(!kI(n)){let c=zm(n);return nL(c)||_ee(c)&&!eWe(c)}break;case 211:case 212:return Z8e(n.expression)&&h_(Qr(n).resolvedSymbol||ct);case 206:case 207:let a=x_(n.parent);return To(a)||Loe(a)?!Oye(a):Oi(a)&&mG(a)}return!1}function Vb(n,a,c=a,u,_=(g=>(g=ri(n,U2))==null?void 0:g.flowNode)()){let g,T=!1,M=0;if(Oe)return pt;if(!_)return a;qe++;let W=qg,V=$A(_e(_));qg=W;let te=Lr(V)&256&&$8e(n)?Jc:D5(V);if(te===Ri||n.parent&&n.parent.kind===235&&!(te.flags&131072)&&pm(te,2097152).flags&131072)return a;return te===U?un:te;function ye(){return T?g:(T=!0,g=lee(n,a,c,u))}function _e(ot){var wt;if(M===2e3)return(wt=or)==null||wt.instant(or.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ot.id}),Oe=!0,_dt(n),pt;M++;let Qt;for(;;){let Xt=ot.flags;if(Xt&4096){for(let Wn=W;Wn=0&&Qt.parameterIndex!(Wn.flags&163840)):wt.kind===221&&qA(wt.expression,n)&&(Xt=os(Xt,ot.switchStatement,ot.clauseStart,ot.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));let ln=Un(wt,Xt);ln&&(Xt=vo(Xt,ln,ot.switchStatement,ot.clauseStart,ot.clauseEnd))}return bC(Xt,vC(Qt))}function an(ot){let wt=[],Qt=!1,Xt=!1,ln;for(let Wn of ot.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;vf(wt,pi),eL(pi,c)||(Qt=!0),vC(bi)&&(Xt=!0)}if(ln){let Wn=_e(ln),bi=$A(Wn);if(!(bi.flags&131072)&&!zo(wt,bi)&&!LFe(ln.switchStatement)){if(bi===a&&a===c)return bi;wt.push(bi),eL(bi,c)||(Qt=!0),vC(Wn)&&(Xt=!0)}}return bC(Ln(wt,Qt?2:1),Xt)}function On(ot){let wt=Nye(ot),Qt=B1[wt]||(B1[wt]=new Map),Xt=ye();if(!Xt)return a;let ln=Qt.get(Xt);if(ln)return ln;for(let An=V_;An{let An=St(lo,Xt)||un;return!(An.flags&131072)&&!(pi.flags&131072)&&h5(pi,An)})}function xo(ot,wt,Qt,Xt,ln){if((Qt===37||Qt===38)&&ot.flags&1048576){let Wn=I5(ot);if(Wn&&Wn===JA(wt)){let bi=x5(ot,Rd(Xt));if(bi)return Qt===(ln?37:38)?bi:m_(Ue(bi,Wn)||un)?dee(ot,bi):ot}}return Qn(ot,wt,Wn=>ro(Wn,Qt,Xt,ln))}function vo(ot,wt,Qt,Xt,ln){if(Xtx5(ot,pi)||un));if(bi!==un)return bi}return Qn(ot,wt,Wn=>Es(Wn,Qt,Xt,ln))}function Wo(ot,wt,Qt){if(Id(n,wt))return XA(ot,Qt?4194304:8388608);J&&Qt&&qA(wt,n)&&(ot=XA(ot,2097152));let Xt=Un(wt,ot);return Xt?Qn(ot,Xt,ln=>pm(ln,Qt?4194304:8388608)):ot}function fo(ot,wt,Qt){let Xt=_a(ot,wt);return Xt?!!(Xt.flags&16777216||Al(Xt)&48)||Qt:!!cx(ot,wt)||!Qt}function Dc(ot,wt,Qt){let Xt=em(wt);if(Bm(ot,Wn=>fo(Wn,Xt,!0)))return dc(ot,Wn=>fo(Wn,Xt,Qt));if(Qt){let Wn=bst();if(Wn)return ha([ot,fC(Wn,[wt,un])])}return ot}function jf(ot,wt,Qt,Xt,ln){return ln=ln!==(Qt.kind===112)!=(Xt!==38&&Xt!==36),zr(ot,wt,ln)}function lp(ot,wt,Qt){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Wo(zr(ot,wt.right,Qt),wt.left,Qt);case 35:case 36:case 37:case 38:let Xt=wt.operatorToken.kind,ln=VS(wt.left),Wn=VS(wt.right);if(ln.kind===221&&ss(Wn))return yr(ot,ln,Xt,Wn,Qt);if(Wn.kind===221&&ss(ln))return yr(ot,Wn,Xt,ln,Qt);if(Id(n,ln))return ro(ot,Xt,Wn,Qt);if(Id(n,Wn))return ro(ot,Xt,ln,Qt);J&&(qA(ln,n)?ot=Yn(ot,Xt,Wn,Qt):qA(Wn,n)&&(ot=Yn(ot,Xt,ln,Qt)));let bi=Un(ln,ot);if(bi)return xo(ot,bi,Xt,Wn,Qt);let pi=Un(Wn,ot);if(pi)return xo(ot,pi,Xt,ln,Qt);if(vl(ln))return at(ot,Xt,Wn,Qt);if(vl(Wn))return at(ot,Xt,ln,Qt);if(_N(Wn)&&!Ls(ln))return jf(ot,ln,Wn,Xt,Qt);if(_N(ln)&&!Ls(Wn))return jf(ot,Wn,ln,Xt,Qt);break;case 104:return Te(ot,wt,Qt);case 103:if(Ki(wt.left))return Pn(ot,wt,Qt);let lo=VS(wt.right);if(O8(ot)&&Ls(n)&&Id(n.expression,lo)){let An=Rd(wt.left);if(Zf(An)&&JA(n)===em(An))return pm(ot,Qt?524288:65536)}if(Id(n,lo)){let An=Rd(wt.left);if(Zf(An))return Dc(ot,An,Qt)}break;case 28:return zr(ot,wt.right,Qt);case 56:return Qt?zr(zr(ot,wt.left,!0),wt.right,!0):ti([zr(ot,wt.left,!1),zr(ot,wt.right,!1)]);case 57:return Qt?ti([zr(ot,wt.left,!0),zr(ot,wt.right,!0)]):zr(zr(ot,wt.left,!1),wt.right,!1)}return ot}function Pn(ot,wt,Qt){let Xt=VS(wt.right);if(!Id(n,Xt))return ot;R.assertNode(wt.left,Ki);let ln=xee(wt.left);if(ln===void 0)return ot;let Wn=ln.parent,bi=fc(R.checkDefined(ln.valueDeclaration,"should always have a declaration"))?cr(Wn):Qs(Wn);return Dr(ot,bi,Qt,!0)}function Yn(ot,wt,Qt,Xt){let ln=wt===35||wt===37,Wn=wt===35||wt===36?98304:32768,bi=Rd(Qt);return ln!==Xt&&sp(bi,lo=>!!(lo.flags&Wn))||ln===Xt&&sp(bi,lo=>!(lo.flags&(3|Wn)))?XA(ot,2097152):ot}function ro(ot,wt,Qt,Xt){if(ot.flags&1)return ot;(wt===36||wt===38)&&(Xt=!Xt);let ln=Rd(Qt),Wn=wt===35||wt===36;if(ln.flags&98304){if(!J)return ot;let bi=Wn?Xt?262144:2097152:ln.flags&65536?Xt?131072:1048576:Xt?65536:524288;return XA(ot,bi)}if(Xt){if(!Wn&&(ot.flags&2||Bm(ot,Bh))){if(ln.flags&469893116||Bh(ln))return ln;if(ln.flags&524288)return Hr}let bi=dc(ot,pi=>h5(pi,ln)||Wn&&hct(pi,ln));return X8e(bi,ln)}return m_(ln)?dc(ot,bi=>!(_8e(bi)&&h5(bi,ln))):ot}function yr(ot,wt,Qt,Xt,ln){(Qt===36||Qt===38)&&(ln=!ln);let Wn=VS(wt.expression);if(!Id(n,Wn)){J&&qA(Wn,n)&&ln===(Xt.text!=="undefined")&&(ot=XA(ot,2097152));let bi=Un(Wn,ot);return bi?Qn(ot,bi,pi=>Do(pi,Xt,ln)):ot}return Do(ot,Xt,ln)}function Do(ot,wt,Qt){return Qt?Vd(ot,wt.text):XA(ot,IK.get(wt.text)||32768)}function os(ot,wt,Qt,Xt,ln){return Qt!==Xt&&oo(cee(wt).slice(Qt,Xt),ln)?pm(ot,2097152):ot}function Es(ot,wt,Qt,Xt){let ln=cee(wt);if(!ln.length)return ot;let Wn=ln.slice(Qt,Xt),bi=Qt===Xt||zo(Wn,Wr);if(ot.flags&2&&!bi){let Zr;for(let Gi=0;Gih5(pi,Zr)),pi);if(!bi)return lo;let An=dc(ot,Zr=>!(_8e(Zr)&&zo(ln,yu(lct(Zr)))));return lo.flags&131072?An:ti([lo,An])}function Vd(ot,wt){switch(wt){case"string":return Oa(ot,Ne,1);case"number":return Oa(ot,It,2);case"bigint":return Oa(ot,Dt,4);case"boolean":return Oa(ot,gi,8);case"symbol":return Oa(ot,xi,16);case"object":return ot.flags&1?ot:ti([Oa(ot,Hr,32),Oa(ot,ue,131072)]);case"function":return ot.flags&1?ot:Oa(ot,Lt,64);case"undefined":return Oa(ot,Le,65536)}return Oa(ot,Hr,128)}function Oa(ot,wt,Qt){return dl(ot,Xt=>Y_(Xt,wt,Lf)?um(Xt,Qt)?Xt:Wr:Wb(wt,Xt)?wt:um(Xt,Qt)?ha([Xt,wt]):Wr)}function Lu(ot,wt,Qt,Xt){let ln=J8e(wt);if(!ln)return ot;let Wn=Jl(wt.caseBlock.clauses,lo=>lo.kind===297);if(Qt===Xt||Wn>=Qt&&WnZM(An,lo)===lo)}let pi=ln.slice(Qt,Xt);return ti(mn(pi,lo=>lo?Vd(ot,lo):Wr))}function Ol(ot,wt,Qt,Xt){let ln=Jl(wt.caseBlock.clauses,pi=>pi.kind===297),Wn=Qt===Xt||ln>=Qt&&lnpi.kind===296?zr(ot,pi.expression,!0):Wr))}function vl(ot){return(kr(ot)&&vr(ot.name)==="constructor"||Ys(ot)&&ss(ot.argumentExpression)&&ot.argumentExpression.text==="constructor")&&Id(n,ot.expression)}function at(ot,wt,Qt,Xt){if(Xt?wt!==35&&wt!==37:wt!==36&&wt!==38)return ot;let ln=Rd(Qt);if(!cbe(ln)&&!ns(ln))return ot;let Wn=_a(ln,"prototype");if(!Wn)return ot;let bi=cr(Wn),pi=xt(bi)?void 0:bi;if(!pi||pi===Re||pi===Lt)return ot;if(xt(ot))return pi;return dc(ot,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:Wb(An,Zr)}}function Te(ot,wt,Qt){let Xt=VS(wt.left);if(!Id(n,Xt))return Qt&&J&&qA(Xt,n)?XA(ot,2097152):ot;let ln=wt.right,Wn=Rd(ln);if(!s0(Wn,Re))return ot;let bi=N5(wt),pi=bi&&zf(bi);if(pi&&pi.kind===1&&pi.parameterIndex===0)return Dr(ot,pi.type,Qt,!0);if(!s0(Wn,Lt))return ot;let lo=dl(Wn,Cn);return xt(ot)&&(lo===Re||lo===Lt)||!Qt&&!(lo.flags&524288&&!Bh(lo))?ot:Dr(ot,lo,Qt,!0)}function Cn(ot){let wt=Ue(ot,"prototype");if(wt&&!xt(wt))return wt;let Qt=Ko(ot,1);return Qt.length?ti(mn(Qt,Xt=>us(T8(Xt)))):Ca}function Dr(ot,wt,Qt,Xt){let ln=ot.flags&1048576?`N${gu(ot)},${gu(wt)},${(Qt?1:0)|(Xt?2:0)}`:void 0;return K1(ln)??cb(ln,ui(ot,wt,Qt,Xt))}function ui(ot,wt,Qt,Xt){if(!Qt){if(ot===wt)return Wr;if(Xt)return dc(ot,lo=>!s0(lo,wt));let pi=Dr(ot,wt,!0,!1);return dc(ot,lo=>!eL(lo,pi))}if(ot.flags&3||ot===wt)return wt;let ln=Xt?s0:Wb,Wn=ot.flags&1048576?I5(ot):void 0,bi=dl(wt,pi=>{let lo=Wn&&Ue(pi,Wn),An=lo&&x5(ot,lo),Zr=dl(An||ot,Xt?Gi=>s0(Gi,pi)?Gi:s0(pi,Gi)?pi:Wr:Gi=>_5(Gi,pi)?Gi:_5(pi,Gi)?pi:Wb(Gi,pi)?Gi:Wb(pi,Gi)?pi:Wr);return Zr.flags&131072?dl(ot,Gi=>Dl(Gi,465829888)&&ln(pi,Bd(Gi)||un)?ha([Gi,pi]):Wr):Zr});return bi.flags&131072?Wb(wt,ot)?wt:ga(ot,wt)?ot:ga(wt,ot)?wt:ha([ot,wt]):bi}function Ai(ot,wt,Qt){if(F8e(wt,n)){let Xt=Qt||!sT(wt)?N5(wt):void 0,ln=Xt&&zf(Xt);if(ln&&(ln.kind===0||ln.kind===1))return Ii(ot,ln,wt,Qt)}if(O8(ot)&&Ls(n)&&kr(wt.expression)){let Xt=wt.expression;if(Id(n.expression,VS(Xt.expression))&&Fe(Xt.name)&&Xt.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){let ln=wt.arguments[0];if(ss(ln)&&JA(n)===ml(ln.text))return pm(ot,Qt?524288:65536)}}return ot}function Ii(ot,wt,Qt,Xt){if(wt.type&&!(xt(ot)&&(wt.type===Re||wt.type===Lt))){let ln=mdt(wt,Qt);if(ln){if(Id(n,ln))return Dr(ot,wt.type,Xt,!1);J&&qA(ln,n)&&(Xt&&!um(wt.type,65536)||!Xt&&sp(wt.type,B5))&&(ot=XA(ot,2097152));let Wn=Un(ln,ot);if(Wn)return Qn(ot,Wn,bi=>Dr(bi,wt.type,Xt,!1))}}return ot}function zr(ot,wt,Qt){if(lF(wt)||pr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return Ar(ot,wt,Qt);switch(wt.kind){case 80:if(!Id(n,wt)&&N<5){let Xt=zm(wt);if(nL(Xt)){let ln=Xt.valueDeclaration;if(ln&&Oi(ln)&&!ln.type&&ln.initializer&&Z8e(n)){N++;let Wn=zr(ot,ln.initializer,Qt);return N--,Wn}}}case 110:case 108:case 211:case 212:return Wo(ot,wt,Qt);case 213:return Ai(ot,wt,Qt);case 217:case 235:return zr(ot,wt.expression,Qt);case 226:return lp(ot,wt,Qt);case 224:if(wt.operator===54)return zr(ot,wt.operand,!Qt);break}return ot}function Ar(ot,wt,Qt){if(Id(n,wt))return XA(ot,Qt?2097152:262144);let Xt=Un(wt,ot);return Xt?Qn(ot,Xt,ln=>pm(ln,Qt?2097152:262144)):ot}}function hdt(n,a){if(n=mf(n),(a.kind===80||a.kind===81)&&(GN(a)&&(a=a.parent),$h(a)&&(!Zh(a)||WI(a)))){let c=QZ(WI(a)&&a.kind===211?Aee(a,void 0,!0):Rd(a));if(mf(Qr(a).resolvedSymbol)===n)return c}return kg(a)&&Py(a.parent)&&Fm(a.parent)?JB(a.parent.symbol):Yj(a)&&WI(a.parent)?LS(n):Db(n)}function G8(n){return Fn(n.parent,a=>Yo(a)&&!gT(a)||a.kind===268||a.kind===312||a.kind===172)}function eWe(n){return!tWe(n,void 0)}function tWe(n,a){let c=Fn(n.valueDeclaration,mee);if(!c)return!1;let u=Qr(c);return u.flags&131072||(u.flags|=131072,gdt(c)||rWe(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&nWe(a.name))}function gdt(n){return!!Fn(n.parent,a=>mee(a)&&!!(Qr(a).flags&131072))}function mee(n){return Fs(n)||Yi(n)}function rWe(n){switch(n.kind){case 80:if(Zh(n)){let c=zm(n);if(_ee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let u=Fn(n,mee),_=Fn(c.valueDeclaration,mee);c.lastAssignmentPos=u===_?ydt(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&&_ee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Bo(n,rWe)}function ydt(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 nL(n){return n.flags&3&&(nve(n)&6)!==0}function _ee(n){let a=n.valueDeclaration&&x_(n.valueDeclaration);return!!a&&(To(a)||Oi(a)&&(Q0(a.parent)||vdt(a)))}function vdt(n){return!!(n.parent.flags&1)&&!(tE(n)&32||n.parent.parent.kind===243&&Dh(n.parent.parent.parent))}function bdt(n){let a=Qr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!kh(n,9))return aC(n.symbol),!0;let c=!!um(oL(n,0),16777216);if(!J_())return aC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function Edt(n,a){return J&&a.kind===169&&a.initializer&&um(n,16777216)&&!bdt(a)?pm(n,524288):n}function Sdt(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&&!(Bm(n,oWe)&&jA(Rd(c.argumentExpression)))}function iWe(n){return n.flags&2097152?gt(n.types,iWe):!!(n.flags&465829888&&cy(n).flags&1146880)}function oWe(n){return n.flags&2097152?gt(n.types,oWe):!!(n.flags&465829888&&!Dl(cy(n),98304))}function Tdt(n,a){let c=(Fe(n)||kr(n)||Ys(n))&&!((L_(n.parent)||FT(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Ju(n,8):Ju(n,void 0));return c&&!hC(c)}function Wye(n,a,c){return!(c&&c&2)&&Bm(n,iWe)&&(Sdt(n,a)||Tdt(a,c))?dl(n,cy):n}function aWe(n){return!!Fn(n,a=>{let c=a.parent;return c===void 0?"quit":Ll(c)?c.expression===a&&Gl(a):Jd(c)?c.name===a||c.propertyName===a:!1})}function hee(n,a){if(ft&&SA(n,111551)&&!IT(a)){let c=Wc(n);Ad(n,!0)&1160127&&(tm(B)||j0(B)&&aWe(a)||!nW(mf(c))?gb(n):od(n))}}function Adt(n,a,c){var u;let _=cr(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=x_(T);if(M.kind===260&&XS(M)&6||M.kind===169){let W=Qr(T);if(!(W.flags&4194304)){W.flags|=4194304;let V=wr(T,0),te=V&&dl(V,cy);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?Wr:vg(g,_e,!0)}}}}if(To(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&BZ(T)){let M=j8(T);if(M&&M.parameters.length===1&&Xd(M)){let W=GM(io(cr(M.parameters[0]),(u=jS(T))==null?void 0:u.nonFixingMapper));if(W.flags&1048576&&sp(W,wa)&&!gt(T.parameters,Oye)){let V=Vb(T,W,W,void 0,a.flowNode),te=T.parameters.indexOf(g)-(w0(T)?1:0);return Np(V,f_(te))}}}}}return _}function Idt(n,a){if(kI(n))return L5(n);let c=zm(n);if(c===ct)return pt;if(c===Ft){if(jWe(n))return Ve(n,f.arguments_cannot_be_referenced_in_property_initializers),pt;let an=Fp(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=Fp(an),an&&(Qr(an).flags|=512);return cr(c)}Rdt(n)&&hee(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&&(Qr(g).flags|=262144,Qr(an).flags|=262144,Qr(n).flags|=536870912)}Ndt(n,c);let T=Adt(u,n,a),M=MI(n);if(M){if(!(u.flags&3)&&!(ar(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(h_(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 Aj(n)?my(T):T}else if(W)g=km(c);else return T;if(!g)return T;T=Wye(T,n,a);let V=x_(g).kind===169,te=G8(g),ye=G8(n),_e=ye!==te,je=n.parent&&n.parent.parent&&Vy(n.parent)&&kye(n.parent.parent),mt=c.flags&134217728,At=T===tt||T===Jc,rn=At&&n.parent.kind===235;for(;ye!==te&&(ye.kind===218||ye.kind===219||OF(ye))&&(nL(u)&&T!==Jc||_ee(u)&&tWe(u,n));)ye=G8(ye);let sn=V||W||_e||je||mt||xdt(n,g)||T!==tt&&T!==Jc&&(!J||(T.flags&16387)!==0||IT(n)||Dye(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,ir=rn?Le:sn?V?Edt(T,g):T:At?Le:Bb(T),Mn=rn?_y(Vb(n,T,ir,ye)):Vb(n,T,ir,ye);if(!$8e(n)&&(T===tt||T===Jc)){if(Mn===tt||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),jn(Mn)),Ve(n,f.Variable_0_implicitly_has_an_1_type,Si(c),jn(Mn))),tW(Mn)}else if(!sn&&!JM(T)&&JM(Mn))return Ve(n,f.Variable_0_is_used_before_being_assigned,Si(c)),T;return M?my(Mn):Mn}function xdt(n,a){if(Xa(a)){let c=Fn(n,Xa);return c&&x_(c)===x_(a)}}function Rdt(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&&Yl(u)&&u.isTypeOnly)return!1}return!0}function Ddt(n,a){return!!Fn(n,c=>c===a?"quit":Yo(c)||c.parent&&jo(c.parent)&&!fc(c.parent)&&c.parent.initializer===c)}function Cdt(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||Lj(a)?"quit":Pv(a,!1))}function Ndt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=fh(a.valueDeclaration),u=Ddt(n,c),_=Fye(c);if(_){if(u){let g=!0;if(OT(c)){let T=pE(a.valueDeclaration,261);if(T&&T.parent===c){let M=Cdt(n.parent,c);if(M){let W=Qr(M);W.flags|=8192;let V=W.capturedBlockScopeBindings||(W.capturedBlockScopeBindings=[]);vf(V,a),M===c.initializer&&(g=!1)}}}g&&(Qr(_).flags|=4096)}if(OT(c)){let g=pE(a.valueDeclaration,261);g&&g.parent===c&&Mdt(n,c)&&(Qr(a.valueDeclaration).flags|=65536)}Qr(a.valueDeclaration).flags|=32768}u&&(Qr(a.valueDeclaration).flags|=16384)}function Pdt(n,a){let c=Qr(n);return!!c&&zo(c.capturedBlockScopeBindings,Tr(a))}function Mdt(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 zye(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 sWe(n){return hT(n)?n:Yo(n)?void 0:Bo(n,sWe)}function Bye(n){let a=Tr(n),c=Qs(a);return Dp(c)===We}function lWe(n,a,c){let u=a.parent;L0(u)&&!Bye(u)&&U2(n)&&n.flowNode&&!fee(n.flowNode,!1)&&Ve(n,c)}function Ldt(n,a){jo(a)&&fc(a)&&ee&&a.initializer&&QL(a.initializer,n.pos)&&Ef(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&&lWe(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(Ldt(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:cWe(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=cr(nt);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=ar(n);if(Yo(c)&&(!Uye(n)||w0(c))){let _=Uhe(c)||u&&Odt(c);if(!_){let g=wdt(c);if(u&&g){let T=po(g).symbol;T&&T.members&&T.flags&16&&(_=Qs(T).thisType)}else Z_(c)&&(_=Qs(ts(c.symbol)).thisType);_||(_=fWe(c))}if(_)return Vb(n,_)}if(di(c.parent)){let _=Tr(c.parent),g=na(c)?cr(_):Qs(_).thisType;return Vb(n,g)}if(Yi(c))if(c.commonJsModuleIndicator){let _=Tr(c);return _&&cr(_)}else{if(c.externalModuleIndicator)return Le;if(a)return cr(nt)}}function kdt(n){let a=wu(n,!1,!1);if(Yo(a)){let c=cm(a);if(c.thisParameter)return uee(c.thisParameter)}if(di(a.parent)){let c=Tr(a.parent);return na(a)?cr(c):Qs(c).thisType}}function wdt(n){if(n.kind===218&&pr(n.parent)&&Bl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&pr(n.parent.parent)&&Bl(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)&&Bl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&_c(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&&Bl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Hl(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&&Bl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Odt(n){let a=iF(n);if(a&&a.typeExpression)return Ti(a.typeExpression);let c=VM(n);if(c)return i0(c)}function cWe(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=D2(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)$r(u,1024)&&(g=!0),u=D2(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&&lWe(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))&&Xre(n.parent,ye=>{(!Yi(ye)||Op(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),_&&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(!L0(M))return Ve(n,f.super_can_only_be_referenced_in_a_derived_class),pt;if(Bye(M))return a?pt:We;let W=Qs(Tr(M)),V=W&&Cp(W)[0];if(!V)return pt;if(u.kind===176&&cWe(n,u))return Ve(n,f.super_cannot_be_referenced_in_constructor_arguments),pt;return T===32?Dp(W):Hp(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 dWe(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 uWe(n){return Lr(n)&4&&n.target===Vl?Hs(n)[0]:void 0}function Wdt(n){return dl(n,a=>a.flags&2097152?gn(a.types,uWe):uWe(a))}function pWe(n,a){let c=n,u=a;for(;u;){let _=Wdt(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=f0(c,void 0)}}function fWe(n){if(n.kind===219)return;if(BZ(n)){let c=j8(n);if(c){let u=c.thisParameter;if(u)return cr(u)}}let a=ar(n);if(ne||a){let c=dWe(n);if(c){let _=f0(c,void 0),g=pWe(c,_);return g?io(g,vye(jS(c))):Kp(_?_y(_):nc(c))}let u=Ly(n.parent);if(Mc(u)){let _=u.left;if(Ls(_)){let{expression:g}=_;if(a&&Fe(g)){let T=Vn(u);if(T.commonJsModuleIndicator&&zm(g)===T.symbol)return}return Kp(nc(g))}}}}function mWe(n){let a=n.parent;if(!BZ(a))return;let c=gT(a);if(c&&c.arguments){let _=Mee(c),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return hve(_,g,_.length,G,void 0,0);let T=Qr(c),M=T.resolvedSignature;T.resolvedSignature=yt;let W=g<_.length?GS(po(_[g])):n.initializer?void 0:Nt;return T.resolvedSignature=M,W}let u=j8(a);if(u){let _=a.parameters.indexOf(n)-(w0(a)?1:0);return n.dotDotDotToken&&Zs(a.parameters)===n?X5(u,_):HS(u,_)}}function jye(n,a){let c=vd(n)||(ar(n)?U6(n):void 0);if(c)return Ti(c);switch(n.kind){case 169:return mWe(n);case 208:return Fdt(n,a);case 172:if(na(n))return zdt(n,a)}}function Fdt(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=jye(c,a)||c.kind!==208&&c.initializer&&oL(c,n.dotDotDotToken?32:0);if(!_||$o(u)||S2(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(Zf(g)){let T=em(g);return Ue(_,T)}}function zdt(n,a){let c=ht(n.parent)&&Ju(n.parent,a);if(c)return p0(c,Tr(n).escapedName)}function Bdt(n,a){let c=n.parent;if(Lv(c)&&n===c.initializer){let u=jye(c,a);if(u)return u;if(!(a&8)&&$o(c.name)&&c.name.elements.length>0)return C(c.name,!0,!1)}}function Gdt(n,a){let c=Fp(n);if(c){let u=gee(c,a);if(u){let _=Vc(c);if(_&1){let g=(_&2)!==0;u.flags&1048576&&(u=dc(u,M=>!!KS(1,M,g)));let T=KS(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=dl(u,mv);return g&&ti([g,CFe(g)])}return u}}}function Vdt(n,a){let c=Ju(n,a);if(c){let u=mv(c);return u&&ti([u,CFe(u)])}}function jdt(n,a){let c=Fp(n);if(c){let u=Vc(c),_=gee(c,a);if(_){let g=(u&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=dc(_,T=>!!KS(1,T,g))),n.asteriskToken?_:KS(0,_,g)}}}function Uye(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 _We(n,a){let c=!!(Vc(a)&2),u=gee(a,void 0);if(u)return KS(n,u,c)||void 0}function gee(n,a){let c=uC(n);if(c)return c;let u=Xye(n);if(u&&!EZ(u)){let g=us(u),T=Vc(n);return T&1?dc(g,M=>!!(M.flags&58998787)||Wve(M,T,void 0)):T&2?dc(g,M=>!!(M.flags&58998787)||!!lL(M)):g}let _=gT(n);if(_)return Ju(_,a)}function hWe(n,a){let u=Mee(n).indexOf(a);return u===-1?void 0:Hye(n,u)}function Hye(n,a){if(Wp(n))return a===0?Ne:a===1?iOe(!1):G;let c=Qr(n).resolvedSignature===br?br:TC(n);if(su(n)&&a===0)return Eee(c,n);let u=c.parameters.length-1;return Xd(c)&&a>=u?Np(cr(c.parameters[u]),f_(a-u),256):__(c,a)}function Udt(n){let a=Cve(n);return a?zA(a):void 0}function Hdt(n,a){if(n.parent.kind===215)return hWe(n.parent,a)}function Kdt(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?qdt(c):void 0;case 57:case 61:let T=Ju(c,a);return n===g&&(T&&T.pattern||!T&&!hie(c))?Rd(u):T;case 56:case 28:return n===g?Ju(c,a):void 0;default:return}}function Jdt(n){if(S_(n)&&n.symbol)return n.symbol;if(Fe(n))return zm(n);if(kr(n)){let c=Rd(n.expression);return Ki(n.name)?a(c,n.name):_a(c,n.name.escapedText)}if(Ys(n)){let c=nc(n.argumentExpression);if(!Zf(c))return;let u=Rd(n.expression);return _a(u,em(c))}return;function a(c,u){let _=Iee(u.escapedText,u);return _&&ave(c,_)}}function qdt(n){var a,c;let u=Bl(n);switch(u){case 0:case 4:let _=Jdt(n.left),g=_&&_.valueDeclaration;if(g&&(jo(g)||hp(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):gWe(n);case 5:if(yee(n,u))return gWe(n);if(!S_(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=yl(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 p0(Ti(je),mt)}return}}return ar(W)||W===n.left?void 0:Rd(n.left)}case 1:case 6:case 3:case 2:let T;u!==2&&(T=S_(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 yee(n,a=Bl(n)){if(a===4)return!0;if(!ar(n)||a!==5||!Fe(n.left.expression))return!1;let c=n.left.expression.escapedText,u=yl(n.left,c,111551,void 0,void 0,!0,!0);return GF(u?.valueDeclaration)}function gWe(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(!Sm(wu(a.expression,!1,!1)))return;let c=L5(a.expression),u=Lg(a);return u!==void 0&&p0(c,u)||void 0}function Xdt(n){return!!(Al(n)&262144&&!n.links.type&&ax(n,0)>=0)}function p0(n,a,c){return dl(n,u=>{var _;if(Hu(u)&&!u.declaration.nameType){let g=gf(u),T=Bd(g)||g,M=c||Ku(Vi(a));if(ga(M,T))return MZ(u,M)}else if(u.flags&3670016){let g=_a(u,a);if(g)return Xdt(g)?void 0:Gb(cr(g),!!(g&&g.flags&16777216));if(wa(u)&&ig(a)&&+a>=0){let T=$M(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 yWe(n,a){if(R.assert(Sm(n)),!(n.flags&67108864))return Kye(n,a)}function Kye(n,a){let c=n.parent,u=_c(n)&&jye(n,a);if(u)return u;let _=f0(c,a);if(_){if(cC(n)){let g=Tr(n);return p0(_,g.escapedName,qi(g).nameType)}if(Wv(n)){let g=No(n);if(g&&$a(g)){let T=po(g.expression),M=Zf(T)&&p0(_,em(T));if(M)return M}}if(n.name){let g=uv(n.name);return dl(_,T=>{var M;return(M=lge(cge(T),g))==null?void 0:M.type},!0)}}}function Ydt(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?I8(g.target,3):0;return T>0&&T<=M?Hs(g)[dv(g)-T]:$M(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)?Np(W,f_(T)):W,!0))}function Zdt(n,a){let c=n.parent;return _F(c)?Ju(n,a):ag(c)?Qdt(c,n,a):void 0}function vWe(n,a){if(k_(n)){let c=f0(n.parent,a);return!c||xt(c)?void 0:p0(c,aP(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 eut(n,a){return Hct(a,n)||iye(a,bo(mn(Vr(n.properties,c=>c.symbol?c.kind===303?k5(c.initializer)&&QM(a,c.symbol.escapedName):c.kind===304?QM(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)&&QM(a,c.escapedName)}),c=>[()=>Le,c.escapedName])),ga)}function tut(n,a){let c=W5(QA(n));return iye(a,bo(mn(Vr(n.properties,u=>!!u.symbol&&u.kind===291&&QM(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)&&pR(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&QM(a,u.escapedName)}),u=>[()=>Le,u.escapedName])),ga)}function f0(n,a){let c=Sm(n)?yWe(n,a):Ju(n,a),u=vee(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=dl(u,g=>Lr(g)&32?g:Mu(g),!0);return _.flags&1048576&&Ma(n)?eut(n,_):_.flags&1048576&&$0(n)?tut(n,_):_}}function vee(n,a,c){if(n&&Dl(n,465829888)){let u=jS(a);if(u&&c&1&>(u.inferences,Fft))return bee(n,u.nonFixingMapper);if(u?.returnMapper){let _=bee(n,u.returnMapper);return _.flags&1048576&&dy(_.types,En)&&dy(_.types,Bn)?dc(_,g=>g!==En&&g!==Bn):_}}return n}function bee(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?ti(mn(n.types,c=>bee(c,a)),0):n.flags&2097152?ha(mn(n.types,c=>bee(c,a))):n}function Ju(n,a){var c;if(n.flags&67108864)return;let u=EWe(n,!a);if(u>=0)return fn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Bdt(n,a);case 219:case 253:return Gdt(n,a);case 229:return jdt(_,a);case 223:return Vdt(_,a);case 213:case 214:return hWe(_,n);case 170:return Udt(_);case 216:case 234:return Ng(_.type)?Ju(_,a):Ti(_.type);case 226:return Kdt(n,a);case 303:case 304:return Kye(_,a);case 305:return Ju(_.parent,a);case 209:{let g=_,T=f0(g,a),M=Jx(g.elements,n),W=(c=Qr(g)).spreadIndices??(c.spreadIndices=Ydt(g.elements));return Jye(T,M,g.elements.length,W.first,W.last)}case 227:return $dt(n,a);case 239:return R.assert(_.parent.kind===228),Hdt(_.parent,n);case 217:{if(ar(_)){if(bU(_))return Ti(EU(_));let g=rE(_);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 Zdt(_,a);case 291:case 293:return vWe(_,a);case 286:case 285:return out(_,a);case 301:return iut(_)}}function bWe(n){w5(n,Ju(n,void 0),!0)}function w5(n,a,c){qn[mi]=n,fn[mi]=a,Xn[mi]=c,mi++}function V8(){mi--}function EWe(n,a){for(let c=mi-1;c>=0;c--)if(n===qn[c]&&(a||!Xn[c]))return c;return-1}function nut(n,a){sr[ur]=n,ni[ur]=a,ur++}function rut(){ur--}function jS(n){for(let a=ur-1;a>=0;a--)if(M0(n,sr[a]))return ni[a]}function iut(n){return p0(Ige(!1),K6(n))}function out(n,a){if(L_(n)&&a!==4){let c=EWe(n.parent,!a);if(c>=0)return fn[c]}return Hye(n,0)}function Eee(n,a){return iFe(a)!==0?aut(n,a):cut(n,a)}function aut(n,a){let c=Rve(n,un);c=SWe(a,QA(a),c);let u=US(nf.IntrinsicAttributes,a);return Ut(u)||(c=ZB(u,c)),c}function sut(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 ha(u)}let c=us(n);return xt(c)?c:Ue(c,a)}function lut(n){if(_x(n.tagName)){let c=PWe(n),u=Lee(n,c);return zA(u)}let a=nc(n.tagName);if(a.flags&128){let c=NWe(a,n);if(!c)return pt;let u=Lee(n,c);return zA(u)}return a}function SWe(n,a,c){let u=Cut(a);if(u){let _=lut(n),g=kWe(u,ar(n),_,c);if(g)return g}return c}function cut(n,a){let c=QA(a),u=Put(c),_=u===void 0?Rve(n,un):u===""?us(n):sut(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(_=SWe(a,c,_),xt(_))return _;{let g=_,T=US(nf.IntrinsicClassAttributes,a);if(!Ut(T)){let W=Nr(T.symbol),V=us(n),te;if(W){let ye=Mb([V],W,Wh(W),ar(a));te=io(T,Pp(W,ye))}else te=T;g=ZB(te,g)}let M=US(nf.IntrinsicAttributes,a);return Ut(M)||(g=ZB(M,g)),g}}function dut(n){return du(B,"noImplicitAny")?nu(n,(a,c)=>a===c||!a?a:Ewe(a.typeParameters,c.typeParameters)?fut(a,c):void 0):void 0}function uut(n,a,c){if(!n||!a)return n||a;let u=ti([cr(n),io(cr(a),c)]);return KA(n,u)}function put(n,a,c){let u=Jp(n),_=Jp(a),g=u>=_?n:a,T=g===n?a:n,M=g===n?u:_,W=Gh(n)||Gh(a),V=W&&!Gh(g),te=new Array(M+(V?1:0));for(let ye=0;ye=eh(g)&&ye>=eh(T),sn=ye>=u?void 0:iL(n,ye),ir=ye>=_?void 0:iL(a,ye),Mn=sn===ir?sn:sn?ir?void 0:sn:ir,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(__(T,M)),T===a&&(ye.links.type=io(ye.links.type,c)),te[M]=ye}return te}function fut(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Pp(a.typeParameters,n.typeParameters));let _=n.declaration,g=put(n,a,u),T=uut(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?BS(n.mapper,u):u),W}function qye(n,a){let c=Ko(n,0),u=Vr(c,_=>!mut(_,a));return u.length===1?u[0]:dut(u)}function mut(n,a){let c=0;for(;cYM(_e)||Hu(_e)&&!_e.nameType&&!!C8(_e.target||_e)),ye=!1;for(let _e=0;_e<_;_e++){let je=u[_e];if(je.kind===230){ce<2&&Rc(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=r0(mt,It)||qve(65,mt,Le,void 0,!1)||un;g.push(At),T.push(4)}else g.push(_v(33,mt,Le,je.expression)),T.push(4)}else if(Ie&&je.kind===232)ye=!0,g.push(ie),T.push(2);else{let mt=sL(je,a,c);if(g.push(ap(mt,!0,ye)),T.push(ye?2:1),te&&a&&a&2&&!(a&4)&&Bf(je)){let At=jS(n);R.assert(At),gye(At,je,mt)}}}return V8(),M?zh(g,T):AWe(c||W||te?zh(g,T,W&&!(V&&Bm(V,lye))):Gd(g.length?ti(Pc(g,(_e,je)=>T[je]&8?kb(_e,It)||G:_e),2):J?Pi:Nt,W))}function AWe(n){if(!(Lr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Kwe(n),a.objectFlags|=147456),a}function yut(n){switch(n.kind){case 167:return vut(n);case 80:return ig(n.escapedText);case 9:case 11:return ig(n.text);default:return!1}}function vut(n){return xd(Sg(n),296)}function Sg(n){let a=Qr(n.expression);if(!a.resolvedType){if((yp(n.parent.parent)||di(n.parent.parent)||fu(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)&&!fc(n.parent)&&ed(n.parent.parent)){let c=fh(n.parent.parent),u=Fye(c);u&&(Qr(u).flags|=4096,Qr(n).flags|=32768,Qr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xd(a.resolvedType,402665900)&&!ga(a.resolvedType,xn))&&Ve(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function but(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return ig(n.escapedName)||c&&ou(c)&&yut(c.name)}function IWe(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return Z2(n)||c&&ou(c)&&$a(c.name)&&xd(Sg(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=oa(),sn=!1,ir=!1,Mn=!1);let Qn=p_(po(Ln.expression,a&2));if(O5(Qn)){let xo=Uge(Qn,te);if(_&&RWe(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),hx(Ln);Un&&!(Un.flags&8576)?ga(Un,xn)&&(ga(Un,It)?ir=!0:ga(Un,xi)?Mn=!0:sn=!0,u&&(rn=!0)):g.set($n.escapedName,$n),T.push($n)}if(V8(),V){let Ln=Fn(W.pattern.parent,Un=>Un.kind===260||Un.kind===226||Un.kind===169);if(Fn(n,Un=>Un===Ln||Un.kind===305).kind!==305)for(let Un of _s(W))!g.get(Un.escapedName)&&!_a(M,Un.escapedName)&&(Un.flags&16777216||Ve(Un.valueDeclaration||((c=ri(Un,uh))==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(Un.escapedName,Un),T.push(Un))}if(Ut(M))return pt;if(M!==Ca)return T.length>0&&(M=WS(M,On(),n.symbol,At,te),T=[],g=oa(),sn=!1,ir=!1),dl(M,Ln=>Ln===Ca?On():Ln);return On();function On(){let Ln=[];sn&&Ln.push(Yye(n,an,T,Ne)),ir&&Ln.push(Yye(n,an,T,It)),Mn&&Ln.push(Yye(n,an,T,xi));let $n=Ps(n.symbol,g,Ye,Ye,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=b8e(dl(n,cy));return!!(a.flags&126615553||a.flags&3145728&&oo(a.types,O5))}function Sut(n){eve(n)}function Tut(n,a){return hx(n),F5(n)||G}function Aut(n){eve(n.openingElement),_x(n.closingElement.tagName)?Tee(n.closingElement):po(n.closingElement.tagName),See(n)}function Iut(n,a){return hx(n),F5(n)||G}function xut(n){eve(n.openingFragment);let a=Vn(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),See(n),F5(n)||G}function Qye(n){return n.includes("-")}function _x(n){return Fe(n)&&mR(n.escapedText)||$m(n)}function xWe(n,a){return n.initializer?sL(n.initializer,a):wn}function Rut(n,a=0){let c=n.attributes,u=Ju(c,0),_=J?oa():void 0,g=oa(),T=fl,M=!1,W,V=!1,te=2048,ye=W5(QA(n));for(let mt of c.properties){let At=mt.symbol;if(k_(mt)){let rn=xWe(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),aP(mt.name)===ye&&(V=!0),u){let ir=_a(u,At.escapedName);ir&&ir.declarations&&db(ir)&&Fe(mt.name)&&rv(mt.name,ir.declarations,mt.name.escapedText)}if(u&&a&2&&!(a&4)&&Bf(mt)){let ir=jS(c);R.assert(ir);let Mn=mt.initializer.expression;gye(ir,Mn,rn)}}else{R.assert(mt.kind===293),g.size>0&&(T=WS(T,je(),c.symbol,te,!1),g=oa());let rn=p_(po(mt.expression,a&2));xt(rn)&&(M=!0),O5(rn)?(T=WS(T,rn,c.symbol,te,!1),_&&RWe(rn,_,mt)):(Ve(mt.expression,f.Spread_types_may_only_be_created_from_object_types),W=W?ha([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&&pR(_e.children).length>0){let mt=See(_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=f0(n.attributes,void 0),rn=At&&p0(At,ye),sn=Ka(4,ye);sn.links.type=mt.length===1?mt[0]:rn&&Bm(rn,YM)?zh(mt):Gd(ti(mt)),sn.valueDeclaration=L.createPropertySignature(void 0,Vi(ye),void 0,void 0),ja(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;let ir=oa();ir.set(ye,sn),T=WS(T,Ps(c.symbol,ir,Ye,Ye,Ye),c.symbol,te,!1)}}if(M)return G;if(W&&T!==fl)return ha([W,T]);return W||(T===fl?je():T);function je(){te|=ve;let mt=Ps(c.symbol,g,Ye,Ye,Ye);return mt.objectFlags|=te|128|131072,mt}}function See(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(sL(u,a))}return c}function RWe(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 Dut(n,a){return Rut(n.parent,a)}function US(n,a){let c=QA(a),u=c&&Rp(c),_=u&&Uu(u,n,788968);return _?Qs(_):pt}function Tee(n){let a=Qr(n);if(!a.resolvedSymbol){let c=US(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=ct;{if(!Fe(n.tagName)&&!$m(n.tagName))return R.fail();let u=$m(n.tagName)?VI(n.tagName):n.tagName.escapedText,_=_a(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=t4e(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,SU(n.tagName),"JSX."+nf.IntrinsicElements),a.resolvedSymbol=ct)}}return a.resolvedSymbol}function Zye(n){let a=n&&Vn(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=uu(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(Xs(M)&&M.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let W=H_(M||n,u,g,n),V=W&&W!==ct?ts(jl(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=Zye(n);if(!u||u===ct){let _=zE(n);u=yl(n,_,1920,void 0,_,!1)}if(u){let _=jl(Uu(Rp(jl(u)),nf.JSX,1920));if(_&&_!==ct)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=jl(HM(nf.JSX,1920,void 0));if(c!==ct)return c}function DWe(n,a){let c=a&&Uu(a.exports,n,788968),u=c&&Qs(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 Cut(n){return n&&Uu(n.exports,nf.LibraryManagedAttributes,788968)}function Nut(n){return n&&Uu(n.exports,nf.ElementType,788968)}function Put(n){return DWe(nf.ElementAttributesPropertyNameContainer,n)}function W5(n){return DWe(nf.ElementChildrenAttributeNameContainer,n)}function CWe(n,a){if(n.flags&4)return[yt];if(n.flags&128){let _=NWe(n,a);return _?[Lee(a,_)]:(Ve(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+nf.IntrinsicElements),Ye)}let c=Mu(n),u=Ko(c,1);return u.length===0&&(u=Ko(c,0)),u.length===0&&c.flags&1048576&&(u=Yhe(mn(c.types,_=>CWe(_,a)))),u}function NWe(n,a){let c=US(nf.IntrinsicElements,a);if(!Ut(c)){let u=n.value,_=_a(c,ml(u));if(_)return cr(_);let g=r0(c,Ne);return g||void 0}return G}function Mut(n,a,c){if(n===1){let _=LWe(c);_&&Gf(a,_,ju,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=MWe(c);_&&Gf(a,_,ju,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=LWe(c),g=MWe(c);if(!_||!g)return;let T=ti([_,g]);Gf(a,T,ju,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=pc(c.tagName);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function PWe(n){var a;R.assert(_x(n.tagName));let c=Qr(n);if(!c.resolvedJsxElementAttributesType){let u=Tee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=cr(u)||pt;if(c.jsxFlags&2){let _=$m(n.tagName)?VI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=cx(US(nf.IntrinsicElements,n),_))==null?void 0:a.type)||pt}else return c.resolvedJsxElementAttributesType=pt}return c.resolvedJsxElementAttributesType}function MWe(n){let a=US(nf.ElementClass,n);if(!Ut(a))return a}function F5(n){return US(nf.Element,n)}function LWe(n){let a=F5(n);if(a)return ti([a,ue])}function Lut(n){let a=QA(n);if(!a)return;let c=Nut(a);if(!c)return;let u=kWe(c,ar(n));if(!(!u||Ut(u)))return u}function kWe(n,a,...c){let u=Qs(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:fC(n,g)}}if(Nn(u.typeParameters)>=c.length){let _=Mb(c,u.typeParameters,c.length,a);return cv(u,_)}}function kut(n){let a=US(nf.IntrinsicElements,n);return a?_s(a):Ye}function wut(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 eve(n){let a=su(n);if(a&&Dgt(n),wut(n),!Zye(n)){let c=Za&&B.jsx===2?f.Cannot_find_name_0:void 0,u=zE(n),_=a?n.tagName:n,g;if(l1(n)&&u==="null"||(g=yl(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,ft&&g.flags&2097152&&!kf(g)&&gb(g)),l1(n)){let T=Vn(n),M=J1(T);M&&yl(_,M,111551,c,M,!0)}}if(a){let c=n,u=TC(c);wee(u,n);let _=Lut(c);if(_!==void 0){let g=c.tagName,T=_x(g)?Ku(SU(g)):po(g);Gf(T,_,ju,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let M=pc(g);return Fo(void 0,f._0_cannot_be_used_as_a_JSX_component,M)})}else Mut(iFe(c),us(u),c)}}function tve(n,a,c){if(n.flags&524288){if(n0(n,a)||cx(n,a)||y8(a)&&Eg(n,Ne)||c&&Qye(a))return!0}else if(n.flags&3145728&&z5(n)){for(let u of n.types)if(tve(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 Out(n,a){if(Ngt(n),n.expression){let c=po(n.expression,a);return n.dotDotDotToken&&c!==G&&!Vf(c)&&Ve(n,f.JSX_spread_child_must_be_an_array_type),c}else return pt}function nve(n){return n.valueDeclaration?XS(n.valueDeclaration):0}function rve(n){if(n.flags&8192||Al(n)&4)return!0;if(ar(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&pr(a)&&Bl(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 wWe(n,a,c,u,_,T)}function wWe(n,a,c,u,_,g){var T;let M=Af(_,c);if(a){if(ce<2&&OWe(_))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(_),jn(mx(_))),!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&&OWe(_)&&(C2(n)||fie(n)||nm(n.parent)&&GF(n.parent.parent))){let V=Og(Cu(_));if(V&&Rht(n))return g&&Ve(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Si(_),Yf(V.name)),!1}if(!(M&6))return!0;if(M&2){let V=Og(Cu(_));return abe(n,V)?!0:(g&&Ve(g,f.Property_0_is_private_and_only_accessible_within_class_1,Si(_),jn(mx(_))),!1)}if(a)return!0;let W=Z6e(n,V=>{let te=Qs(Tr(V));return d8e(te,_,c)});return!W&&(W=Wut(n),W=W&&d8e(W,_,c),M&256||!W)?(g&&Ve(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Si(_),jn(mx(_)||u)),!1):M&256?!0:(u.flags&262144&&(u=u.isThisType?Pu(u):Bd(u)),!u||!sC(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(_),jn(W),jn(u)),!1):!0)}function Wut(n){let a=Fut(n),c=a?.type&&Ti(a.type);if(c&&c.flags&262144&&(c=Pu(c)),c&&Lr(c)&7)return sv(c)}function Fut(n){let a=wu(n,!1,!1);return a&&Yo(a)?w0(a):void 0}function OWe(n){return!!b5(n,a=>!(a.flags&8192))}function EC(n){return $_(po(n),n)}function B5(n){return um(n,50331648)}function ove(n){return B5(n)?_y(n):n}function zut(n,a){let c=Gl(n)?pp(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 But(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 WWe(n,a,c){if(J&&n.flags&2){if(Gl(a)){let _=pp(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=ZM(n,50331648);if(u&50331648){c(a,u);let _=_y(n);return _.flags&229376?pt:_}return n}function $_(n,a){return WWe(n,a,zut)}function FWe(n,a){let c=$_(n,a);if(c.flags&16384){if(Gl(a)){let u=pp(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 Aee(n,a,c){return n.flags&64?Gut(n,a):sve(n,n.expression,EC(n.expression),n.name,a,c)}function Gut(n,a){let c=po(n.expression),u=w8(c,n.expression);return ZZ(sve(n,n.expression,$_(u,n.expression),n.name,a),n,u!==c)}function zWe(n,a){let c=HF(n)&&W0(n.left)?$_(L5(n.left),n.left):EC(n.left);return sve(n,n.left,c,n.right,a)}function BWe(n){for(;n.parent.kind===217;)n=n.parent;return E_(n.parent)&&n.parent.expression===n}function Iee(n,a){for(let c=zF(a);c;c=sd(c)){let{symbol:u}=c,_=Q2(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function Vut(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(!xee(n)&&!a)return yn(n,f.Cannot_find_name_0,vr(n))}return!1}function jut(n){Vut(n);let a=xee(n);return a&&V5(a,void 0,!1),G}function xee(n){if(!$h(n))return;let a=Qr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Iee(n.escapedText,n)),a.resolvedSymbol}function ave(n,a){return _a(n,a.escapedName)}function Uut(n,a,c){let u,_=_s(n);_&&gn(_,T=>{let M=T.valueDeclaration;if(M&&ou(M)&&Ki(M.name)&&M.name.escapedText===a.escapedText)return u=T,!0});let g=Lm(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,jn(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,Lm(M.name||P3)),!0}return!1}function GWe(n,a){return(iC(a)||C2(n)&&OM(a))&&wu(n,!0,!1)===WM(a)}function sve(n,a,c,u,_,g){let T=Qr(a).resolvedSymbol,M=MI(n),W=Mu(M!==0||BWe(n)?Kp(c):c),V=xt(W)||W===ho,te;if(Ki(u)){ce<99&&(M!==0&&Rc(n,1048576),M!==1&&Rc(n,524288));let _e=Iee(u.escapedText,u);if(M&&_e&&_e.valueDeclaration&&Hl(_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&&ave(c,_e),te===void 0){if(Uut(c,u,_e))return pt;let je=zF(u);je&&y2(Vn(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&&hee(T,n),Ut(W)?pt:W;te=_a(W,u.escapedText,Fee(W),n.kind===166)}Fe(a)&&T&&(tm(B)||!(te&&(nW(te)||te.flags&8&&n.parent.kind===306))||j0(B)&&aWe(n))&&hee(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),Hut(te,n,u),V5(te,n,qWe(a,T)),Qr(n).resolvedSymbol=te,ive(n,a.kind===108,WI(n),W,te),WFe(n,te,M))return Ve(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,vr(u)),pt;ye=GWe(n,te)?tt:g||E6(n)?LS(te):cr(te)}else{let _e=!Ki(u)&&(M===0||!VA(c)||iP(c))?cx(W,u.escapedText):void 0;if(!(_e&&_e.type)){let je=lve(n,c.symbol,!0);return!je&&x8(c)?G:c.symbol===nt?(nt.exports.has(u.escapedText)&&nt.exports.get(u.escapedText).flags&418?Ve(u,f.Property_0_does_not_exist_on_type_1,Vi(u.escapedText),jn(c)):fe&&Ve(u,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,jn(c)),G):(u.escapedText&&!_A(n)&&UWe(u,iP(c)?W:c,je),pt)}_e.isReadonly&&(Zh(n)||Ij(n))&&Ve(n,f.Index_signature_in_type_0_only_permits_reading,jn(W)),ye=B.noUncheckedIndexedAccess&&!Zh(n)?ti([_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 VWe(n,te,ye,u,_)}function lve(n,a,c){var u;let _=Vn(n);if(_&&B.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let g=gn(a?.declarations,Vn),T=!a?.valueDeclaration||!di(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||My(!1,a.valueDeclaration);return!(_!==g&&g&&Dh(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&kr(n)&&n.expression.kind===110&&T)}return!1}function VWe(n,a,c,u,_){let g=MI(n);if(g===1)return Gb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Zee(a.declarations))return c;if(c===tt)return oC(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&&B6e(W)&&!na(W)){let V=G8(n);V.kind===176&&V.parent===W.parent&&!(W.flags&33554432)&&(T=!0)}}else J&&a&&a.valueDeclaration&&kr(a.valueDeclaration)&&z2(a.valueDeclaration)&&G8(n)===G8(a.valueDeclaration)&&(T=!0);let M=Vb(n,c,T?Bb(c):c);return T&&!JM(c)&&JM(M)?(Ve(u,f.Property_0_is_used_before_being_assigned,Si(a)),c):g?my(M):M}function Hut(n,a,c){let{valueDeclaration:u}=n;if(!u||Vn(a).isDeclarationFile)return;let _,g=vr(c);jWe(a)&&!Lat(u)&&!(Ls(a)&&Ls(a.expression))&&!Qg(u,c)&&!(Hl(u)&<e(u)&256)&&(me||!Kut(n))?_=Ve(c,f.Property_0_is_used_before_its_initialization,g):u.kind===263&&a.parent.kind!==183&&!(u.flags&33554432)&&!Qg(u,c)&&(_=Ve(c,f.Class_0_used_before_its_declaration,g)),_&&Pa(_,Pr(u,f._0_is_declared_here,g))}function jWe(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 Kut(n){if(!(n.parent.flags&32))return!1;let a=cr(n.parent);for(;;){if(a=a.symbol&&Jut(a),!a)return!1;let c=_a(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Jut(n){let a=Cp(n);if(a.length!==0)return ha(a)}function UWe(n,a,c){let u,_;if(!Ki(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let T of a.types)if(!_a(T,n.escapedText)&&!cx(T,n.escapedText)){u=Fo(u,f.Property_0_does_not_exist_on_type_1,xs(n),jn(T));break}}if(HWe(n.escapedText,a)){let T=xs(n),M=jn(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=Y8(a);if(T&&_a(T,n.escapedText))u=Fo(u,f.Property_0_does_not_exist_on_type_1,xs(n),jn(a)),_=Pr(n,f.Did_you_forget_to_use_await);else{let M=xs(n),W=jn(a),V=Yut(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=bl(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=qut(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=Mg(Vn(n),n,u);_&&Pa(g,_),r_(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function qut(n){return B.lib&&!B.lib.includes("dom")&&adt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&fy(n)}function HWe(n,a){let c=a.symbol&&_a(cr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&na(c.valueDeclaration)}function Xut(n){let a=Lm(n),u=X6().get(a);return u&&GG(u.keys())}function Yut(n,a){let c=Mu(a).symbol;if(!c)return;let u=bl(c),g=X6().get(u);if(g){for(let[T,M]of g)if(zo(M,n))return T}}function KWe(n,a){return G5(n,_s(a),106500)}function cve(n,a){let c=_s(a);if(typeof n!="string"){let u=n.parent;kr(u)&&(c=Vr(c,_=>XWe(u,a,_))),n=vr(n)}return G5(n,c,111551)}function JWe(n,a){let c=Co(n)?n:vr(n),u=_s(a);return(c==="for"?Gr(u,g=>bl(g)==="htmlFor"):c==="class"?Gr(u,g=>bl(g)==="className"):void 0)??G5(c,u,111551)}function dve(n,a){let c=cve(n,a);return c&&bl(c)}function uve(n,a,c){return R.assert(a!==void 0,"outername should always be defined"),Gp(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 $ut(n,a,c){let u=uve(n,a,c);return u&&bl(u)}function Ree(n,a){return a.exports&&G5(vr(n),xA(a),2623475)}function Qut(n,a){let c=Ree(n,a);return c&&bl(c)}function Zut(n,a,c){function u(T){let M=n0(n,T);if(M){let W=eI(cr(M));return!!W&&eh(W)>=1&&ga(c,__(W,0))}return!1}let _=Zh(a)?"set":"get";if(!u(_))return;let g=sk(a.expression);return g===void 0?g=_:g+="."+_,g}function ept(n,a){let c=a.types.filter(u=>!!(u.flags&128));return YC(n.value,c,u=>u.value)}function G5(n,a,c){return YC(n,a,u);function u(_){let g=bl(_);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 _=mp(u,2),g=n.valueDeclaration&&ou(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 qWe(n,a){return n.kind===110||!!a&&Gl(n)&&a===zm(zp(n))}function tpt(n,a){switch(n.kind){case 211:return pve(n,n.expression.kind===108,a,Kp(po(n.expression)));case 166:return pve(n,!1,a,Kp(po(n.left)));case 205:return pve(n,!1,a,Ti(n))}}function XWe(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 _=_a(u,c);return!!_&&fve(n,a,!1,u,_)}function fve(n,a,c,u,_){if(xt(u))return!0;if(_.valueDeclaration&&au(_.valueDeclaration)){let g=sd(_.valueDeclaration);return!Hd(n)&&!!Fn(n,T=>T===g)}return wWe(n,a,c,u,_)}function npt(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 zm(a)}function rpt(n){return hu(n).length===1&&!!Eg(n,It)}function ipt(n){let a=ms(n);if(a.kind===80){let c=zm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&npt(_)===c&&rpt(Rd(_.expression)))return!0;u=_,_=_.parent}}}return!1}function opt(n,a){return n.flags&64?apt(n,a):YWe(n,EC(n.expression),a)}function apt(n,a){let c=po(n.expression),u=w8(c,n.expression);return ZZ(YWe(n,$_(u,n.expression),a),n,u!==c)}function YWe(n,a,c){let u=MI(n)!==0||BWe(n)?Kp(a):a,_=n.argumentExpression,g=po(_);if(Ut(u)||u===ho)return u;if(Fee(u)&&!ss(_))return Ve(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),pt;let T=ipt(_)?It:g,M=Zh(n)?4|(VA(u)&&!iP(u)?2:0):32,W=kb(u,T,M,n)||pt;return i6e(VWe(n,Qr(n).resolvedSymbol,W,_,c),n)}function $We(n){return E_(n)||J0(n)||su(n)}function ZA(n){return $We(n)&&gn(n.typeArguments,Ia),n.kind===215?po(n.template):su(n)?po(n.attributes):pr(n)?po(n.left):E_(n)&&gn(n.arguments,a=>{po(a)}),yt}function Q_(n){return ZA(n),cn}function spt(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,TK(V)?(M++,W=M,g++):W=T,a.splice(W,0,c?tat(V,c):V)}}function Dee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Cee(n){return Jl(n,Dee)}function QWe(n){return!!(n.flags&16384)}function lpt(n){return!!(n.flags&49155)}function Nee(n,a,c,u=!1){let _,g=!1,T=Jp(c),M=eh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let W=Ja(n.template.templateSpans);g=zl(W.literal)||!!W.literal.isUnterminated}else{let W=n.template;R.assert(W.kind===15),g=!!W.isUnterminated}else if(n.kind===170)_=aFe(n,c);else if(n.kind===226)_=1;else if(su(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=Cee(a);if(W>=0)return W>=eh(c)&&(Gh(c)||WT)return!1;if(g||_>=M)return!0;for(let W=_;W=u&&a.length<=c}function ZWe(n,a){let c;return!!(n.target&&(c=HS(n.target,a))&&hC(c))}function eI(n){return U8(n,0,!1)}function eFe(n){return U8(n,0,!1)||U8(n,1,!1)}function U8(n,a,c){if(n.flags&524288){let u=u_(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 tFe(n,a,c,u){let _=F8(n.typeParameters,n,0,u),g=H8(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),M=T?yC(a,T):a;return mye(M,n,(W,V)=>{hy(_.inferences,W,V)}),c||_ye(a,n,(W,V)=>{hy(_.inferences,W,V,128)}),S8(n,Rye(_),ar(a.declaration))}function cpt(n,a,c,u){let _=Eee(a,n),g=AC(n.attributes,_,u,c);return hy(u.inferences,g,_),Rye(u)}function nFe(n){if(!n)return nr;let a=po(n);return qie(n)?a:cN(n.parent)?_y(a):Hd(n.parent)?QZ(a):a}function _ve(n,a,c,u,_){if(su(n))return cpt(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(d0(te)){let ye=jS(n);if(!(!W&&Ju(n,8)!==V)){let At=vye(Sct(ye,1)),rn=io(V,At),sn=eI(rn),ir=sn&&sn.typeParameters?zA(fge(sn,sn.typeParameters)):rn;hy(_.inferences,ir,te,128)}let je=F8(a.typeParameters,a,_.flags),mt=io(V,ye&&ye.returnMapper);hy(je.inferences,mt,te),_.returnMapper=gt(je.inferences,IC)?vye(xct(je)):void 0}}}let g=K8(a),T=g?Math.min(Jp(a)-1,c.length):c.length;if(g&&g.flags&262144){let W=Gr(_.inferences,V=>V.typeParameter===g);W&&(W.impliedArity=Jl(c,Dee,T)<0?c.length-T:void 0)}let M=i0(a);if(M&&d0(M)){let W=oFe(n);hy(_.inferences,nFe(W),M)}for(let W=0;W=c-1){let te=n[c-1];if(Dee(te)){let ye=te.kind===237?te.type:AC(te.expression,u,_,g);return fv(ye)?rFe(ye):Gd(_v(33,ye,Le,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=Pp(g,T));let _e=T[W];if(!tu(_e,Hp(io(V,M),_e),c?a[W]:void 0,ye,te))return}}return T}function iFe(n){if(_x(n.tagName))return 2;let a=Mu(po(n.tagName));return Nn(Ko(a,1))?0:Nn(Ko(a,0))?1:2}function dpt(n,a,c,u,_,g,T){let M=Eee(a,n),W=AC(n.attributes,M,void 0,u),V=u&4?W8(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=(L_(n)||FT(n))&&!(_x(n.tagName)||$m(n.tagName))?po(n.tagName):void 0;if(!_e)return!0;let je=Ko(_e,0);if(!Nn(je))return!0;let mt=u4e(n);if(!mt)return!0;let At=js(mt,111551,!0,!1,n);if(!At)return!0;let rn=cr(At),sn=Ko(rn,0);if(!Nn(sn))return!0;let ir=!1,Mn=0;for(let On of sn){let Ln=__(On,0),$n=Ko(Ln,0);if(Nn($n))for(let Un of $n){if(ir=!0,Gh(Un))return!0;let Qn=Jp(Un);Qn>Mn&&(Mn=Qn)}}if(!ir)return!0;let an=1/0;for(let On of je){let Ln=eh(On);Ln{_.push(g.expression)}),_}if(n.kind===170)return upt(n);if(n.kind===226)return[n.left];if(su(n))return n.attributes.properties.length>0||L_(n)&&n.parent.children.length>0?[n.attributes]:Ye;let a=n.arguments||Ye,c=Cee(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 upt(n){let a=n.expression,c=Cve(n);if(c){let u=[];for(let _ of c.parameters){let g=cr(_);u.push(U5(a,g))}return u}return R.fail()}function aFe(n,a){return B.experimentalDecorators?ppt(n,a):2}function ppt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return R_(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 sFe(n){let a=Vn(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}=sFe(n);return"message"in a?Zc(u,_,g,a,...c):sj(u,a)}else return"message"in a?Pr(n,a,...c):Mg(Vn(n),n,a)}function fpt(n){return E_(n)?kr(n.expression)?n.expression.name:n.expression:J0(n)?kr(n.tag)?n.tag.name:n.tag:su(n)?n.tagName:n}function mpt(n){if(!ra(n)||!Fe(n.expression))return!1;let a=yl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!To(c)||!G0(c.parent)||!K0(c.parent.parent)||!Fe(c.parent.parent.expression))return!1;let u=xge(!1);return u?Gm(c.parent.parent.expression,!0)===u:!1}function lFe(n,a,c,u){var _;let g=Cee(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=eh(At),sn=Jp(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),T2(Vn(n),c,M)}return Xx(Vn(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),T2(Vn(n),c,M)}return Xx(Vn(n),c,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_)}function SC(n,a,c,u,_,g){let T=n.kind===215,M=n.kind===170,W=su(n),V=n.kind===226,te=!j&&!c,ye;!M&&!V&&!hT(n)&&(ye=n.typeArguments,(T||W||n.expression.kind!==108)&&gn(ye,Ia));let _e=c||[];spt(a,_e,_),R.assert(_e.length,"Revert #54442 and add a testcase with whatever triggered this");let je=Mee(n),mt=_e.length===1&&!_e[0].typeParameters,At=!M&&!mt&>(je,Bf)?4:0,rn,sn,ir,Mn,an=!!(u&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(_e.length>1&&(Mn=Ln(_e,Rh,mt,an)),Mn||(Mn=Ln(_e,ju,mt,an)),Mn)return Mn;if(Mn=hpt(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],Un;rn.length>3&&(Un=Fo(Un,f.The_last_overload_gave_the_following_error),Un=Fo(Un,f.No_overload_matches_this_call)),g&&(Un=Fo(Un,g));let Qn=j5(n,je,$n,ju,0,!0,()=>Un);if(Qn)for(let xo of Qn)$n.declaration&&rn.length>3&&Pa(xo,Pr($n.declaration,f.The_last_overload_is_declared_here)),On($n,xo),Za.add(xo);else R.fail("No error for last overload signature")}else{let $n=[],Un=0,Qn=Number.MAX_VALUE,xo=0,vo=0;for(let lp of rn){let Yn=j5(n,je,lp,ju,0,!0,()=>Fo(void 0,f.Overload_0_of_1_2_gave_the_following_error,vo+1,_e.length,Mh(lp)));Yn?(Yn.length<=Qn&&(Qn=Yn.length,xo=vo),Un=Math.max(Un,Yn.length),$n.push(Yn)):R.fail("No error for 3 or fewer overload signatures"),vo++}let Wo=Un>1?$n[xo]:mm($n);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 Dc=[...ya(Wo,lp=>lp.relatedInformation)],jf;if(oo(Wo,lp=>lp.start===Wo[0].start&&lp.length===Wo[0].length&&lp.file===Wo[0].file)){let{file:lp,start:Pn,length:Yn}=Wo[0];jf={file:lp,start:Pn,length:Yn,code:fo.code,category:fo.category,messageText:fo,relatedInformation:Dc}}else jf=Mg(Vn(n),fpt(n),fo,Dc);On(rn[0],jf),Za.add(jf)}else if(sn)Za.add(lFe(n,[sn],je,g));else if(ir)gve(ir,n.typeArguments,!0,g);else{let $n=Vr(a,Un=>mve(Un,ye));$n.length===0?Za.add(_pt(n,a,ye,g)):Za.add(lFe(n,$n,je,g))}return Mn;function On($n,Un){var Qn,xo;let vo=rn,Wo=sn,fo=ir,Dc=((xo=(Qn=$n.declaration)==null?void 0:Qn.symbol)==null?void 0:xo.declarations)||Ye,lp=Dc.length>1?Gr(Dc,Pn=>Fs(Pn)&&Kf(Pn.body)):void 0;if(lp){let Pn=cm(lp),Yn=!Pn.typeParameters;Ln([Pn],ju,Yn)&&Pa(Un,Pr(lp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}rn=vo,sn=Wo,ir=fo}function Ln($n,Un,Qn,xo=!1){if(rn=void 0,sn=void 0,ir=void 0,Qn){let vo=$n[0];if(gt(ye)||!Nee(n,je,vo,xo))return;if(j5(n,je,vo,Un,0,!1,void 0)){rn=[vo];return}return vo}for(let vo=0;vo<$n.length;vo++){let Wo=$n[vo];if(!mve(Wo,ye)||!Nee(n,je,Wo,xo))continue;let fo,Dc;if(Wo.typeParameters){let jf;if(gt(ye)){if(jf=gve(Wo,ye,!1),!jf){ir=Wo;continue}}else Dc=F8(Wo.typeParameters,Wo,ar(n)?2:0),jf=_ve(n,Wo,je,At|8,Dc),At|=Dc.flags&4?8:0;if(fo=S8(Wo,jf,ar(Wo.declaration),Dc&&Dc.inferredTypeParameters),K8(Wo)&&!Nee(n,je,fo,xo)){sn=fo;continue}}else fo=Wo;if(j5(n,je,fo,Un,At,!1,void 0)){(rn||(rn=[])).push(fo);continue}if(At){if(At=0,Dc){let jf=_ve(n,Wo,je,At,Dc);if(fo=S8(Wo,jf,ar(Wo.declaration),Dc.inferredTypeParameters),K8(Wo)&&!Nee(n,je,fo,xo)){sn=fo;continue}}if(j5(n,je,fo,Un,At,!1,void 0)){(rn||(rn=[])).push(fo);continue}}return $n[vo]=fo,fo}}}function hpt(n,a,c,u,_){return R.assert(a.length>0),hx(n),u||a.length===1||a.some(g=>!!g.typeParameters)?vpt(n,a,c,_):gpt(a)}function gpt(n){let a=to(n,W=>W.thisParameter),c;a.length&&(c=cFe(a,a.map(q5)));let{min:u,max:_}=xoe(n,ypt),g=[];for(let W=0;W<_;W++){let V=to(n,te=>Xd(te)?WHS(te,W))))}let T=to(n,W=>Xd(W)?Ja(W.parameters):void 0),M=128;if(T.length!==0){let W=Gd(ti(to(n,Vwe),2));g.push(dFe(T,W)),M|=1}return n.some(TK)&&(M|=2),bg(n[0].declaration,void 0,c,g,ha(n.map(us)),void 0,u,M)}function ypt(n){let a=n.parameters.length;return Xd(n)?a-1:a}function cFe(n,a){return dFe(n,ti(a,2))}function dFe(n,a){return KA(Va(n),a)}function vpt(n,a,c,u){let _=Spt(a,Zt===void 0?c.length:Zt),g=a[_],{typeParameters:T}=g;if(!T)return g;let M=$We(n)?n.typeArguments:void 0,W=M?SZ(g,bpt(M,T,ar(n))):Ept(n,T,g,c,u);return a[_]=W,W}function bpt(n,a,c){let u=n.map(gx);for(;u.length>a.length;)u.pop();for(;u.length=a)return _;T>u&&(u=T,c=_)}return c}function Tpt(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=A_(sd(n));if(V){let te=wh(W,V.typeArguments,V);return SC(n,te,a,c,0)}}return ZA(n)}let u,_=po(n.expression);if(sT(n)){let W=w8(_,n.expression);u=W===_?0:dN(n)?16:8,_=W}else u=0;if(_=WWe(_,n.expression,But),_===ho)return mr;let g=Mu(_);if(Ut(g))return Q_(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,jn(_));else{let W;if(n.arguments.length===1){let V=Vn(n).text;Ud(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 Q_(n)}return c&8&&!n.typeArguments&&T.some(Apt)?(JFe(n,c),br):T.some(W=>ar(W.declaration)&&!!SV(W.declaration))?(Ve(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,jn(_)),Q_(n)):SC(n,T,a,c,u)}function Apt(n){return!!(n.typeParameters&&cbe(us(n)))}function K5(n,a,c,u){return xt(n)||xt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(p_(a).flags&131072)&&ga(n,Lt)}function Ipt(n,a,c){if(n.arguments&&ce<1){let T=Cee(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=EC(n.expression);if(u===ho)return mr;if(u=Mu(u),Ut(u))return Q_(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(!xpt(n,_[0]))return Q_(n);if(uFe(_,M=>!!(M.flags&4)))return Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Q_(n);let T=u.symbol&&Og(u.symbol);return T&&$r(T,64)?(Ve(n,f.Cannot_create_an_instance_of_an_abstract_class),Q_(n)):SC(n,_,a,c,0)}let g=Ko(u,0);if(g.length){let T=SC(n,g,a,c,0);return fe||(T.declaration&&!Z_(T.declaration)&&us(T)!==nr&&Ve(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),i0(T)===nr&&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),Q_(n)}function uFe(n,a){return So(n)?gt(n,c=>uFe(c,a)):n.compositeKind===1048576?gt(n.compositeSignatures,a):a(n)}function yve(n,a){let c=Cp(a);if(!Nn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=Twe(_),T=0;for(let M of u.types){if(!g[T]&&Lr(M)&3&&(M.symbol===n||yve(n,M)))return!0;T++}return!1}return u.symbol===n?!0:yve(n,u)}function xpt(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=wI(c,6);if(!u||c.kind!==176)return!0;let _=Og(c.parent.symbol),g=Qs(c.parent.symbol);if(!abe(n,_)){let T=sd(n);if(T&&u&4){let M=gx(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,jn(g)),u&4&&Ve(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,jn(g)),!1}return!0}function pFe(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,jn(te)),u=Fo(u,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,jn(a))),V)break;V||(u=Fo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,jn(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,jn(a)))}else u=Fo(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,jn(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 vve(n,a,c,u){let{messageChain:_,relatedMessage:g}=pFe(n,a,c),T=Mg(Vn(n),n,_);if(g&&Pa(T,Pr(n,g)),ra(n.parent)){let{start:M,length:W}=sFe(n.parent);T.start=M,T.length=W}Za.add(T),fFe(a,c,u?Pa(T,u):T)}function fFe(n,a,c){if(!n.symbol)return;let u=qi(n.symbol).originatingImport;if(u&&!Wp(u)){let _=Ko(cr(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 Rpt(n,a,c){let u=po(n.tag),_=Mu(u);if(Ut(_))return Q_(n);let g=Ko(_,0),T=Ko(_,1).length;if(K5(u,_,g.length,T))return ZA(n);if(!g.length){if(pu(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 Za.add(M),Q_(n)}return vve(n.tag,_,0),Q_(n)}return SC(n,g,a,c,0)}function Dpt(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 Cpt(n,a,c){let u=po(n.expression),_=Mu(u);if(Ut(_))return Q_(n);let g=Ko(_,0),T=Ko(_,1).length;if(K5(u,_,g.length,T))return ZA(n);if(Mpt(n,g)&&!Fu(n.expression)){let W=pc(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),Q_(n)}let M=Dpt(n);if(!g.length){let W=pFe(n.expression,_,0),V=Fo(W.messageChain,M),te=Mg(Vn(n.expression),n.expression,V);return W.relatedMessage&&Pa(te,Pr(n.expression,W.relatedMessage)),Za.add(te),fFe(_,0,te),Q_(n)}return SC(n,g,a,c,0,M)}function Lee(n,a){let c=QA(n),u=c&&Rp(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=Ka(1,"props");return M.links.type=a,bg(T,void 0,void 0,[M],_?Qs(_):pt,void 0,1,0)}function Npt(n,a,c){if(_x(n.tagName)){let T=PWe(n),M=Lee(n,T);return Fb(AC(n.attributes,Eee(M,n),void 0,0),T,n.tagName,n.attributes),Nn(n.typeArguments)&&(gn(n.typeArguments,Ia),Za.add(Xx(Vn(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 Q_(n);let g=CWe(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,pc(n.tagName)),Q_(n)):SC(n,g,a,c,0)}function Ppt(n,a,c){let u=po(n.right);if(!xt(u)){let _=Lve(u);if(_){let g=Mu(_);if(Ut(g))return Q_(n);let T=Ko(g,0),M=Ko(g,1);if(K5(_,g,T.length,M.length))return ZA(n);if(T.length)return SC(n,T,a,c,0)}else if(!(nte(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),Q_(n)}return yt}function Mpt(n,a){return a.length&&oo(a,c=>c.minArgumentCount===0&&!Xd(c)&&c.parameters.length1?nc(n.arguments[1]):void 0;for(let g=2;g{let T=Kp(_);GZ(g,T)||n8e(_,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 Gpt(n){let a=po(n.expression),c=w8(a,n.expression);return ZZ(_y(c),n,c!==a)}function Vpt(n){return n.flags&64?Gpt(n):_y(po(n.expression))}function bFe(n){if(m4e(n),gn(n.typeArguments,Ia),n.kind===233){let c=Ly(n.parent);c.kind===226&&c.operatorToken.kind===104&&M0(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)?L5(n.exprName):po(n.exprName);return EFe(a,n)}function EFe(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&&Za.add(Xx(Vn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,jn(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=u_(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 ir=Ps(Ka(0,"__instantiationExpression"),At.members,rn,sn,At.indexInfos);return ir.objectFlags|=8388608,ir.node=a,ir}}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 dl(mt,M);if(mt.flags&2097152)return ha(Pc(mt.types,je))}return mt}}function W(V){let te=Vr(V,ye=>!!ye.typeParameters&&mve(ye,c));return Pc(te,ye=>{let _e=gve(ye,c,!0);return _e?S8(ye,_e,ar(ye.declaration)):ye})}}function jpt(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 Upt(n){return Bgt(n),n.keywordToken===105?Ave(n):n.keywordToken===102?Hpt(n):R.assertNever(n.keywordToken)}function SFe(n){switch(n.keywordToken){case 102:return rOe();case 105:let a=Ave(n);return Ut(a)?pt:lft(a);default:R.assertNever(n.keywordToken)}}function Ave(n){let a=pie(n);if(a)if(a.kind===176){let c=Tr(a.parent);return cr(c)}else{let c=Tr(a);return cr(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 Hpt(n){z===100||z===199?Vn(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=Vn(n);return R.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?nOe():pt}function q5(n){let a=n.valueDeclaration;return ap(cr(n),!1,!!a&&(Lv(a)||oP(a)))}function Ive(n,a,c="arg"){return n?(R.assert(Fe(n.name)),n.name.escapedText):`${c}_${a}`}function iL(n,a,c){let u=n.parameters.length-(Xd(n)?1:0);if(a=u-1)return a===u-1?g:Gd(Np(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=__(n,g);if(dc(T,QWe).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Gh(n){if(Xd(n)){let a=cr(n.parameters[n.parameters.length-1]);return!wa(a)||a.target.hasRestElement}return!1}function H8(n){if(Xd(n)){let a=cr(n.parameters[n.parameters.length-1]);if(!wa(a))return xt(a)?ec:a;if(a.target.hasRestElement)return KM(a,a.target.fixedLength)}}function K8(n){let a=H8(n);return a&&!Vf(a)&&!xt(a)?a:void 0}function xve(n){return Rve(n,Wr)}function Rve(n,a){return n.parameters.length>0?__(n,0):a}function xFe(n,a,c){let u=n.parameters.length-(Xd(n)?1:0);for(let _=0;_=0);let g=Pl(u.parent)?cr(Tr(u.parent.parent)):r4e(u.parent),T=Pl(u.parent)?Le:i4e(u.parent),M=f_(_),W=i_("target",g),V=i_("propertyKey",T),te=i_("parameterIndex",M);c.decoratorSignature=Q8(void 0,void 0,[W,V,te],nr);break}case 174:case 177:case 178:case 172:{let u=a;if(!di(u.parent))break;let _=r4e(u),g=i_("target",_),T=i4e(u),M=i_("propertyKey",T),W=jo(u)?nr:dOe(gx(u));if(ce!==0&&(!jo(a)||R_(a))){let te=dOe(gx(u)),ye=i_("descriptor",te);c.decoratorSignature=Q8(void 0,void 0,[g,M,ye],ti([W,nr]))}else c.decoratorSignature=Q8(void 0,void 0,[g,M],ti([W,nr]));break}}return c.decoratorSignature===yt?void 0:c.decoratorSignature}function Cve(n){return ee?sft(n):aft(n)}function $5(n){let a=s5(!0);return a!==Mo?(n=mv(cL(n))||un,cv(a,[n])):un}function CFe(n){let a=sOe(!0);return a!==Mo?(n=mv(cL(n))||un,cv(a,[n])):un}function Q5(n,a){let c=$5(a);return c===un?(Ve(n,Wp(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,Wp(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 lft(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,Ye,Ye,Ye)}function Oee(n,a){if(!n.body)return pt;let c=Vc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,M,W=nr;if(n.body.kind!==241)g=nc(n.body,a&&a&-9),u&&(g=cL($8(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=wFe(n,a);V?V.length>0&&(g=ti(V,2)):W=Wr;let{yieldTypes:te,nextTypes:ye}=cft(n,a);T=gt(te)?ti(te,2):void 0,M=gt(ye)?ha(ye):void 0}else{let V=wFe(n,a);if(!V)return c&2?Q5(n,Wr):Wr;if(V.length===0){let te=gee(n,void 0),ye=te&&(cG(te,c)||nr).flags&32768?Le:nr;return c&2?Q5(n,ye):ye}g=ti(V,2)}if(g||T||M){if(T&&ree(n,T,3),g&&ree(n,g,1),M&&ree(n,M,2),g&&m_(g)||T&&m_(T)||M&&m_(M)){let V=Xye(n),te=V?V===cm(n)?_?void 0:g:vee(us(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=dct(g,te,u)}T&&(T=Kp(T)),g&&(g=Kp(g)),M&&(M=Kp(M))}return _?NFe(T||Wr,g||W,M||_We(2,n)||un,u):u?$5(g||W):g||W}function NFe(n,a,c,u){let _=u?Vs:gc,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?S6e(T,_):void 0,W=M?M.returnType:G,V=M?M.nextType:Le;return ga(a,W)&&ga(V,c)?T!==Mo?A8(T,[n]):(_.getGlobalIterableIteratorType(!0),Ca):(_.getGlobalGeneratorType(!0),Ca)}return A8(g,[n,a,c])}function cft(n,a){let c=[],u=[],_=(Vc(n)&2)!==0;return tie(n.body,g=>{let T=g.expression?po(g.expression,a):Nt;vf(c,PFe(g,T,G,_));let M;if(g.asteriskToken){let W=Xee(T,_?19:17,g.expression);M=W&&W.nextType}else M=Ju(g,void 0);M&&vf(u,M)}),{yieldTypes:c,nextTypes:u}}function PFe(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 MFe(n,a,c){let u=0;for(let _=0;_=a?c[_]:void 0;u|=g!==void 0?IK.get(g)||32768:0}return u}function LFe(n){let a=Qr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=dft(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function dft(n){if(n.expression.kind===221){let u=J8e(n);if(!u)return!1;let _=cy(nc(n.expression.expression)),g=MFe(0,0,u);return _.flags&3?(556800&g)===556800:!Bm(_,T=>ZM(T,g)===g)}let a=nc(n.expression);if(!k8(a))return!1;let c=cee(n);return!c.length||gt(c,sct)?!1:idt(dl(a,yu),c)}function kFe(n){return n.endFlowNode&&P5(n.endFlowNode)}function wFe(n,a){let c=Vc(n),u=[],_=kFe(n),g=!1;if(D0(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&&nc(M.expression).symbol===n.symbol){g=!0;return}let W=nc(M,a&&a&-9);c&2&&(W=cL($8(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),vf(u,W)}else _=!0}),!(u.length===0&&!_&&(g||uft(n))))return J&&u.length&&_&&!(Z_(n)&&u.some(T=>T.symbol===n.symbol))&&vf(u,Le),u}function uft(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=Vc(n),_=a&&cG(a,u);if(_&&(Dl(_,16384)||_.flags&32769)||n.kind===173||zl(n.body)||n.body.kind!==241||!kFe(n))return;let g=n.flags&1024,T=Qf(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&&!ga(Le,_))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(cm(n));if(N6e(n,M))return}Ve(T,f.Not_all_code_paths_return_a_value)}}}function OFe(n,a){if(R.assert(n.kind!==174||Sm(n)),hx(n),ks(n)&&dL(n,n.name),a&&a&4&&Bf(n)){if(!Qf(n)&&!G6(n)){let u=j8(n);if(u&&d0(us(u))){let _=Qr(n);if(_.contextFreeType)return _.contextFreeType;let g=Oee(n,a),T=bg(void 0,void 0,void 0,Ye,g,void 0,0,64),M=Ps(n.symbol,K,[T],Ye,Ye);return M.objectFlags|=262144,_.contextFreeType=M}}return tn}return!ate(n)&&n.kind===218&&pbe(n),pft(n,a),cr(Tr(n))}function pft(n,a){let c=Qr(n);if(!(c.flags&64)){let u=j8(n);if(!(c.flags&64)){c.flags|=64;let _=Yc(Ko(cr(Tr(n)),0));if(!_)return;if(Bf(n))if(u){let g=jS(n),T;if(a&&a&2){xFe(_,u,g);let M=H8(u);M&&M.flags&262144&&(T=yC(u,g.nonFixingMapper))}T||(T=g?yC(u,g.mapper):u),qpt(_,T)}else Xpt(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=jS(n);a&&a&2&&xFe(_,u,g)}if(u&&!uC(n)&&!_.resolvedReturnType){let g=Oee(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}q8(n)}}}function fft(n){R.assert(n.kind!==174||Sm(n));let a=Vc(n),c=uC(n);if(Nve(n,c),n.body)if(Qf(n)||us(cm(n)),n.body.kind===241)Ia(n.body);else{let u=po(n.body),_=c&&cG(c,a);if(_){let g=Pee(n.body);if((a&3)===2){let T=$8(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 Wee(n,a,c,u=!1){if(!ga(a,Ql)){let _=u&&lL(a);return BE(n,!!_&&ga(_,Ql),c),!1}return!0}function mft(n){if(!ra(n)||!vT(n))return!1;let a=nc(n.arguments[2]);if(Ue(a,"value")){let _=_a(a,"writable"),g=_&&cr(_);if(!g||g===Kt||g===En)return!0;if(_&&_.valueDeclaration&&_c(_.valueDeclaration)){let T=_.valueDeclaration.initializer,M=po(T);if(M===Kt||M===En)return!0}return!1}return!_a(a,"set")}function h_(n){return!!(Al(n)&8||n.flags&4&&Af(n)&8||n.flags&3&&nve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||gt(n.declarations,mft))}function WFe(n,a,c){var u,_;if(c===0)return!1;if(h_(a)){if(a.flags&4&&Ls(n)&&n.expression.kind===110){let g=Fp(n);if(!(g&&(g.kind===176||Z_(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=km(T);return!!M&&M.kind===274}}}return!1}function J8(n,a,c){let u=$l(n,7);return u.kind!==80&&!Ls(u)?(Ve(n,a),!1):u.flags&64?(Ve(n,c),!1):!0}function _ft(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=mf(c.resolvedSymbol);return u&&(h_(u)?Ve(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):hft(a,u)),gi}function hft(n,a){let c=cr(a);J&&!(c.flags&131075)&&!(Ie?a.flags&16777216:um(c,16777216))&&Ve(n,f.The_operand_of_a_delete_operator_must_be_optional)}function gft(n){return po(n.expression),VD}function yft(n){return hx(n),Nt}function FFe(n){let a=!1,c=FF(n);if(c&&Il(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(BF(n)){let u=Vn(n);if(!JS(u)){let _;if(!RI(u,B)){_??(_=mh(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=Zc(u,_.start,_.length,g);Za.add(T),a=!0}switch(z){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=mh(u,n.pos)),Za.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:_??(_=mh(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;Za.add(Zc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Vn(n);if(!JS(u)){let _=mh(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=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);Pa(T,M)}Za.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 vft(n){r(()=>FFe(n));let a=po(n.expression),c=$8(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)&&r_(!1,Pr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function bft(n){let a=po(n.operand);if(a===ho)return ho;switch(n.operand.kind){case 9:switch(n.operator){case 41:return fx(f_(-n.operand.text));case 40:return fx(f_(+n.operand.text))}break;case 10:if(n.operator===41)return fx(wZ({negative:!0,base10Value:ZN(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return $_(a,n.operand),Z5(a,12288)&&Ve(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,ca(n.operator)),n.operator===40?(Z5(a,2112)&&Ve(n.operand,f.Operator_0_cannot_be_applied_to_type_1,ca(n.operator),jn(my(a))),It):Pve(a);case 54:Jve(a,n.operand);let c=ZM(a,12582912);return c===4194304?Kt:c===8388608?wn:gi;case 46:case 47:return Wee(n.operand,$_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&J8(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 Eft(n){let a=po(n.operand);return a===ho?ho:(Wee(n.operand,$_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&J8(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 Dl(n,2112)?xd(n,3)||Dl(n,296)?Ql: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)&&ga(n,It)||!!(a&2112)&&ga(n,Dt)||!!(a&402653316)&&ga(n,Ne)||!!(a&528)&&ga(n,gi)||!!(a&16384)&&ga(n,nr)||!!(a&131072)&&ga(n,Wr)||!!(a&65536)&&ga(n,ue)||!!(a&32768)&&ga(n,Le)||!!(a&4096)&&ga(n,xi)||!!(a&67108864)&&ga(n,Hr)}function eG(n,a,c){return n.flags&1048576?oo(n.types,u=>eG(u,a,c)):xd(n,a,c)}function Fee(n){return!!(Lr(n)&16)&&!!n.symbol&&Mve(n.symbol)}function Mve(n){return(n.flags&128)!==0}function Lve(n){let a=A6e("hasInstance"),c=n0(n,a);if(c){let u=cr(c);if(u&&Ko(u,0).length!==0)return u}}function Sft(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=TC(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 Tft(n){return Bm(n,a=>a===Rl||!!(a.flags&2097152)&&Bh(cy(a)))}function Aft(n,a,c,u){if(c===ho||u===ho)return ho;if(Ki(n)){if(ce<99&&Rc(n,2097152),!Qr(n).resolvedSymbol&&sd(n)){let _=lve(n,u.symbol,!0);UWe(n,u,_)}}else tu($_(c,n),xn,n);return tu($_(u,a),Hr,a)&&Tft(u)&&Ve(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,jn(u)),gi}function Ift(n,a,c){let u=n.properties;if(J&&u.length===0)return $_(a,n);for(let _=0;_KM(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&&!um(po(g.objectAssignmentInitializer),16777216)&&(a=pm(a,524288)),Nft(g.name,g.equalsToken,g.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(De(_,c),_=_.left,J&&(a=pm(a,524288))),_.kind===210?Ift(_,a,u):_.kind===209?xft(_,a,c):Rft(_,a,c)}function Rft(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 J8(n,_,g)&&Fb(a,u,n,n),Bx(n)&&Rc(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 kve(n,a){return(a.flags&98304)!==0||GZ(n,a)}function Dft(){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]},ar(_e)&&DI(_e)?(je.skip=!0,ye(je,po(_e.right,mt)),je):(Cft(_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(ik(rn)){let sn=mt.parent;for(;sn.kind===217||ok(sn);)sn=sn.parent;(rn===56||wT(sn))&&Kve(mt.left,At,wT(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=GFe(_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 Cft(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,ca(a.operatorToken.kind),ca(c.kind)),pr(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===56)&&yn(u,f._0_and_1_operations_cannot_be_mixed_without_parentheses,ca(u.operatorToken.kind),ca(c.kind)))}function Nft(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;ik(g)?T=uL(n,u):T=po(n,u);let M=po(c,u);return GFe(n,a,c,T,M,u,_)}function GFe(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=$_(u,n),_=$_(_,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,ca(a.kind),ca(an)),It;{let $n=Wee(n,u,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Un=Wee(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&&Un&&je(Qn),Qn}case 40:case 65:if(u===ho||_===ho)return ho;!xd(u,402653316)&&!xd(_,402653316)&&(u=$_(u,n),_=$_(_,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((Un,Qn)=>xd(Un,402655727)&&xd(Qn,402655727)),G);case 30:case 32:case 33:case 34:return ye(M)&&(u=dye($_(u,n)),_=dye($_(_,c)),At(($n,Un)=>{if(xt($n)||xt(Un))return!0;let Qn=ga($n,Ql),xo=ga(Un,Ql);return Qn&&xo||!Qn&&!xo&&h5($n,Un)})),gi;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((PV(n)||PV(c))&&(!ar(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")}ir(T,M,n,c),At(($n,Un)=>kve($n,Un)||kve(Un,$n))}return gi;case 104:return Sft(n,c,u,_,g);case 103:return Aft(n,c,u,_);case 56:case 77:{let $n=um(u,4194304)?ti([fct(J?u:my(_)),_]):u;return M===77&&je(_),$n}case 57:case 76:{let $n=um(u,8388608)?ti([_y(b8e(u)),_],2):u;return M===76&&je(_),$n}case 61:case 78:{let $n=um(u,262144)?ti([_y(u),_],2):u;return M===78&&je(_),$n}case 64:let Ln=pr(n.parent)?Bl(n.parent):0;return V(Ln,_),mt(Ln)?((!(_.flags&524288)||Ln!==2&&Ln!==6&&!fy(_)&&!Pye(_)&&!(Lr(_)&1))&&je(_),u):(je(_),_);case 28:if(!B.allowUnreachableCode&&tG(n)&&!te(n.parent)){let $n=Vn(n),Un=$n.text,Qn=Na(Un,n.pos);$n.parseDiagnostics.some(vo=>vo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:vV(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 Pb(On)){let $n=cr(Ln);if($n.symbol&&$n.symbol.flags&32){let Un=Ln.escapedName,Qn=yl(Ln.valueDeclaration,Un,788968,void 0,Un,!1);Qn?.declarations&&Qn.declarations.some(GT)&&(sm(Qn,f.Duplicate_identifier_0,Vi(Un),Ln),sm(Ln,f.Duplicate_identifier_0,Vi(Un),Qn))}}}function te(an){return an.parent.kind===217&&_p(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,ca(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(zP(a.kind)&&n.kind===211&&(Ln=Aee(n,void 0,!0)),J8(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 Un=Ue(Rd(n.expression),n.name.escapedText);jZ(an,Un)&&($n=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,$n)}}}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),$n=DI(c);return!!$n&&Ma($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,Un=_;!On&&an&&([$n,Un]=Pft(u,_,an));let[Qn,xo]=ox($n,Un);sn(Ln,On,Qn,xo)||BE(Ln,On,f.Operator_0_cannot_be_applied_to_types_1_and_2,ca(a.kind),Qn,xo)}function sn(an,On,Ln,$n){switch(a.kind){case 37:case 35:case 38:case 36:return BE(an,On,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Ln,$n);default:return}}function ir(an,On,Ln,$n){let Un=Mn(ms(Ln)),Qn=Mn(ms($n));if(Un||Qn){let xo=Ve(an,f.This_condition_will_always_return_0,ca(On===37||On===35?97:112));if(Un&&Qn)return;let vo=On===38||On===36?ca(54):"",Wo=Un?$n:Ln,fo=ms(Wo);Pa(xo,Pr(Wo,f.Did_you_mean_0,`${vo}Number.isNaN(${Gl(fo)?pp(fo):"..."})`))}}function Mn(an){if(Fe(an)&&an.escapedText==="NaN"){let On=vst();return!!On&&On===zm(an)}return!1}}function Pft(n,a,c){let u=n,_=a,g=my(n),T=my(a);return c(g,T)||(u=g,_=T),[u,_]}function Mft(n){r(_e);let a=Fp(n);if(!a)return G;let c=Vc(a);if(!(c&1))return G;let u=(c&2)!==0;n.asteriskToken&&(u&&ce<99&&Rc(n,26624),!u&&ce<2&&B.downlevelIteration&&Rc(n,256));let _=uC(a);_&&_.flags&1048576&&(_=dc(_,je=>Wve(je,c,void 0)));let g=_&&C6e(_,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=PFe(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 KS(2,_,u)||G;let ye=_We(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||hd(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 Lft(n,a){let c=uL(n.condition,a);Kve(n.condition,c,n.whenTrue);let u=po(n.whenTrue,a),_=po(n.whenFalse,a);return ti([u,_],2)}function VFe(n){let a=n.parent;return Fu(a)&&VFe(a)||Ys(a)&&a.argumentExpression===n}function kft(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(ga(g,Po)?g:Ne)}if(aL(n)||VFe(n)||Bm(Ju(n,void 0)||un,wft))return BA(a,c);let u=n.parent.kind!==215&&U6e(n);return u?fx(Ku(u)):Ne}function wft(n){return!!(n.flags&134217856||n.flags&58982400&&Dl(Bd(n)||un,402653316))}function Oft(n){return $0(n)&&!FT(n.parent)?n.parent.parent:n}function AC(n,a,c,u){let _=Oft(n);w5(_,a,!1),nut(_,c);let g=po(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=Dl(g,2944)&&Bee(g,vee(a,n,void 0))?yu(g):g;return rut(),V8(),T}function nc(n,a){if(a)return po(n,a);let c=Qr(n);if(!c.resolvedType){let u=V_,_=_n;V_=uf,_n=void 0,c.resolvedType=po(n,a),_n=_,V_=u}return c.resolvedType}function jFe(n){return n=ms(n,!0),n.kind===216||n.kind===234||GR(n)}function oL(n,a,c){let u=k2(n);if(ar(n)){let g=U6(n);if(g)return Tve(u,g,a)}let _=Ove(u)||(c?AC(u,c,void 0,a||0):nc(u,a));return To(n)&&n.name.kind===207&&wa(_)&&!_.target.hasRestElement&&dv(_)Bee(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)||Bee(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 aL(n){let a=n.parent;return uT(a)&&Ng(a.type)||GR(a)&&Ng(Q4(a))||Sve(n)&&WA(Ju(n,0))||(Fu(a)||pu(a)||Ym(a))&&aL(a)||(_c(a)||ep(a)||vP(a))&&aL(a.parent)}function sL(n,a,c){let u=po(n,a,c);return aL(n)||iie(n)?yu(u):jFe(n)?u:uye(u,vee(Ju(n,void 0),n,void 0))}function UFe(n,a){return n.name.kind===167&&Sg(n.name),sL(n.initializer,a)}function HFe(n,a){g4e(n),n.name.kind===167&&Sg(n.name);let c=OFe(n,a);return KFe(n,c,a)}function KFe(n,a,c){if(c&&c&10){let u=U8(a,0,!0),_=U8(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=f0(n,2);if(T){let M=U8(_y(T),u?0:1,!1);if(M&&!M.typeParameters){if(c&8)return JFe(n,c),tn;let W=jS(n),V=W.signature&&us(W.signature),te=V&&eFe(V);if(te&&!te.typeParameters&&!oo(W.inferences,IC)){let ye=Gft(W,g.typeParameters),_e=fge(g,ye),je=mn(W.inferences,mt=>yye(mt.typeParameter));if(mye(_e,M,(mt,At)=>{hy(je,mt,At,0,!0)}),gt(je,IC)&&(_ye(_e,M,(mt,At)=>{hy(je,mt,At)}),!zft(W.inferences,je)))return Bft(W.inferences,je),W.inferredTypeParameters=bo(W.inferredTypeParameters,ye),zA(_e)}return zA(tFe(g,M,W))}}}}return a}function JFe(n,a){if(a&2){let c=jS(n);c.flags|=4}}function IC(n){return!!(n.candidates||n.contraCandidates)}function Fft(n){return!!(n.candidates||n.contraCandidates||Pwe(n.typeParameter))}function zft(n,a){for(let c=0;cc.symbol.escapedName===a)}function Vft(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 qFe(n){let a=eI(n);if(a&&!a.typeParameters)return us(a)}function jft(n){let a=po(n.expression),c=w8(a,n.expression),u=qFe(a);return u&&ZZ(u,n,c!==a)}function Rd(n){let a=Ove(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,Noe(n,n.flags|268435456)}return u}function Ove(n){let a=ms(n,!0);if(GR(a)){let c=Q4(a);if(!Ng(c))return Ti(c)}if(a=ms(n),qv(a)){let c=Ove(a.expression);return c?nI(c):void 0}if(ra(a)&&a.expression.kind!==108&&!Su(a,!0)&&!mFe(a))return sT(a)?jft(a):qFe(EC(a.expression));if(uT(a)&&!Ng(a.type))return Ti(a.type);if(T0(n)||_N(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 V8(),c}function po(n,a,c){var u,_;(u=or)==null||u.push(or.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let g=D;D=n,S=0;let T=Kft(n,a,c),M=KFe(n,T,a);return Fee(M)&&Uft(n,M),D=g,(_=or)==null||_.pop(),M}function Uft(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&ete(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),tm(B)&&(R.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!_E(n)&&Ve(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Hft(n,a){if(wp(n)){if(bU(n))return Tve(n.expression,EU(n),a);if(GR(n))return yFe(n,a)}return po(n.expression,a)}function Kft(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return Idt(n,a);case 81:return jut(n);case 110:return L5(n);case 108:return Vye(n);case 106:return We;case 15:case 11:return Tye(n)?He:fx(Ku(n.text));case 9:return hbe(n),fx(f_(+n.text));case 10:return qgt(n),fx(wZ({negative:!1,base10Value:ZN(n.text)}));case 112:return wn;case 97:return Kt;case 228:return kft(n);case 14:return gl;case 209:return TWe(n,a,c);case 210:return Eut(n,a);case 211:return Aee(n,a);case 166:return zWe(n,a);case 212:return opt(n,a);case 213:if(n.expression.kind===102)return Wpt(n);case 214:return Opt(n,a);case 215:return Fpt(n);case 217:return Hft(n,a);case 231:return L_t(n);case 218:case 219:return OFe(n,a);case 221:return gft(n);case 216:case 234:return zpt(n,a);case 235:return Vpt(n);case 233:return bFe(n);case 238:return jpt(n);case 236:return Upt(n);case 220:return _ft(n);case 222:return yft(n);case 223:return vft(n);case 224:return bft(n);case 225:return Eft(n);case 226:return De(n,a);case 227:return Lft(n,a);case 230:return _ut(n,a);case 232:return Nt;case 229:return Mft(n);case 237:return hut(n);case 294:return Out(n,a);case 284:return Iut(n,a);case 285:return Tut(n,a);case 288:return xut(n);case 292:return Dut(n,a);case 286:R.fail("Shouldn't ever directly check a JsxOpeningElement")}return pt}function XFe(n){Ag(n),n.expression&&hd(n.expression,f.Type_expected),Ia(n.constraint),Ia(n.default);let a=kA(Tr(n));Bd(a),xat(a)||Ve(n.default,f.Type_parameter_0_has_a_circular_default,jn(a));let c=Pu(a),u=FA(a);c&&u&&tu(u,Hp(io(c,zS(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),hx(n),r(()=>pL(n.name,f.Type_parameter_name_cannot_be_0))}function Jft(n){var a,c;if(fu(n.parent)||di(n.parent)||Im(n.parent)){let u=kA(Tr(n)),_=aye(u)&24576;if(_){let g=Tr(n.parent);if(Im(n.parent)&&!(Lr(Qs(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=or)==null||a.push(or.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:gu(Qs(g)),id:gu(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=or)==null||c.pop()}}}}function YFe(n){Ag(n),sG(n);let a=Fp(n);$r(n,31)&&(a.kind===176&&Kf(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&&oP(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)&&!ga(p_(cr(n.symbol)),cf)&&Ve(n,f.A_rest_parameter_must_be_of_an_array_type)}function qft(n){let a=Xft(n);if(!a){Ve(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=cm(a),u=zf(c);if(!u)return;Ia(n.type);let{parameterName:_}=n;if(u.kind===0||u.kind===2)OZ(_);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,cr(c.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(_){let g=!1;for(let{name:T}of a.parameters)if($o(T)&&$Fe(T,_,u.parameterName)){g=!0;break}g||Ve(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function Xft(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 $Fe(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)&&$Fe(_,a,c))return!0}}function q8(n){n.kind===181?Sgt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&ate(n);let a=Vc(n);a&4||((a&3)===3&&ce<99&&Rc(n,6144),(a&3)===2&&ce<4&&Rc(n,64),a&3&&ce<2&&Rc(n,128)),dG(Dv(n)),N_t(n),gn(n.parameters,YFe),n.type&&Ia(n.type),r(c);function c(){Jmt(n);let u=Qf(n),_=u;if(ar(n)){let g=rE(n);if(g&&g.typeExpression&&xf(g.typeExpression.type)){let T=eI(Ti(g.typeExpression));T&&T.declaration&&(u=Qf(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===nr?Ve(_,f.A_generator_cannot_have_a_void_type_annotation):Wve(T,g,_)}else(g&3)===2&&xmt(n,u,_)}n.kind!==181&&n.kind!==324&&jb(n)}}function Wve(n,a,c){let u=KS(0,n,(a&2)!==0)||G,_=KS(1,n,(a&2)!==0)||u,g=KS(2,n,(a&2)!==0)||un,T=NFe(u,_,g,!!(a&2));return tu(T,n,c)}function Yft(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)up(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&&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,pc(T));else{let te=!!(V&8),ye=!!(W&8);te||ye?te!==ye&&Ve(T,f.Duplicate_identifier_0,pc(T)):V&W&-17?Ve(T,f.Duplicate_identifier_0,pc(T)):g.set(M,V|W)}else g.set(M,W)}}function $ft(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=YE(Tr(n));Ve(c,g,_,T);break}}}}function QFe(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 Fve(n){if(n.kind===264){let c=Tr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=mge(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(gu(_));g?g.declarations.push(u):c.set(gu(_),{type:_,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(let _ of u.declarations)Ve(_,f.Duplicate_index_signature_for_type_0,jn(u.type))})}}function ZFe(n){!Ag(n)&&!Ugt(n)&&ste(n.name),sG(n),zve(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 Qft(n){return Ki(n.name)&&Ve(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),ZFe(n)}function Zft(n){g4e(n)||ste(n.name),Hl(n)&&n.asteriskToken&&Fe(n.name)&&vr(n.name)==="constructor"&&Ve(n.name,f.Class_constructor_may_not_be_a_generator),p6e(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),zve(n)}function zve(n){if(Ki(n.name)&&ce<99){for(let a=fh(n);a;a=fh(a))Qr(a).flags|=1048576;if(ed(n.parent)){let a=Fye(n.parent);a&&(Qr(n.name).flags|=32768,Qr(a).flags|=4096)}}}function emt(n){Ag(n),Bo(n,Ia)}function tmt(n){q8(n),Vgt(n)||jgt(n),Ia(n.body);let a=Tr(n),c=ul(a,n.kind);if(n===c&&jee(a),zl(n.body))return;r(_);return;function u(g){return au(g)?!0:g.kind===172&&!na(g)&&!!g.initializer}function _(){let g=n.parent;if(L0(g)){zye(n.parent,g);let T=Bye(g),M=sWe(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(!nmt(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($l(te.expression))){V=te;break}if(e6e(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 nmt(n,a){let c=Ly(n.parent);return td(c)&&c.parent===a}function e6e(n){return n.kind===108||n.kind===110?!0:uie(n)?!1:!!Bo(n,e6e)}function t6e(n){Fe(n.name)&&vr(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(!ate(n)&&!Pgt(n)&&ste(n.name),iG(n),q8(n),n.kind===177&&!(n.flags&33554432)&&Kf(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),cC(n)){let u=Tr(n),_=ul(u,177),g=ul(u,178);if(_&&g&&!(DC(_)&1)){Qr(_).flags|=1;let T=cu(_),M=cu(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=e0(Tr(n));n.kind===177&&Nve(n,c)}}function rmt(n){iG(n)}function imt(n,a,c){return n.typeArguments&&c{let u=Bve(n);u&&n6e(n,u)});let c=Qr(n).resolvedSymbol;c&>(c.declarations,u=>xR(u)&&!!(u.flags&536870912))&&rv(J5(n),c.declarations,c.escapedName)}}function amt(n){let a=ri(n.parent,vF);if(!a)return;let c=Bve(a);if(!c)return;let u=Pu(c[a.typeArguments.indexOf(n)]);return u&&io(u,Pp(c,Gee(a,c)))}function smt(n){eOe(n)}function lmt(n){gn(n.members,Ia),r(a);function a(){let c=GOe(n);Yee(c,c.symbol),Fve(n),QFe(n)}}function cmt(n){Ia(n.elementType)}function dmt(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}(Vf(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 umt(n){gn(n.types,Ia),Ti(n)}function i6e(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=Hu(c)&&vZ(c)===2?IOe(c,0):X_(c,0),g=!!Eg(c,It);if(sp(u,T=>ga(T,_)||g&&lx(T,It)))return a.kind===212&&Zh(a)&&Lr(c)&32&&Oh(c)&1&&Ve(a,f.Index_signature_in_type_0_only_permits_reading,jn(c)),n;if(VA(c)){let T=PZ(u,a);if(T){let M=YA(Mu(c),W=>_a(W,T));if(M&&Af(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,jn(u),jn(c)),pt}function pmt(n){Ia(n.objectType),Ia(n.indexType),i6e(wOe(n),n)}function fmt(n){mmt(n),Ia(n.typeParameter),Ia(n.nameType),Ia(n.type),n.type||c0(n,G);let a=Gge(n),c=lv(a);if(c)tu(c,Os,n.nameType);else{let u=gf(a);tu(u,Os,zx(n.typeParameter))}}function mmt(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 _mt(n){OZ(n)}function hmt(n){Lgt(n),Ia(n.type)}function gmt(n){Bo(n,Ia)}function ymt(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=Tr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=qi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=kA(a),_=Lre(a,168);if(!L6e(_,[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 vmt(n){for(let a of n.templateSpans){Ia(a.type);let c=Ti(a.type);tu(c,Po,a.type)}Ti(n)}function bmt(n){Ia(n.argument),n.attributes&&nD(n.attributes,yn),r6e(n)}function Emt(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 rG(n){return(mp(n,2)||au(n))&&!!(n.flags&33554432)}function Vee(n,a){let c=lte(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let u=aj(n);u&&u.flags&128&&!(c&128)&&!(M_(n.parent)&&Xl(n.parent.parent)&&T_(n.parent.parent))&&(c|=32),c|=128}return c&a}function jee(n){r(()=>Smt(n))}function Smt(n){function a(an,On){return On!==void 0&&On.parent===an[0].parent?On:an[0]}function c(an,On,Ln,$n,Un){if(($n^Un)!==0){let xo=Vee(a(an,On),Ln);gn(an,vo=>{let Wo=Vee(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 Un=NI(a(an,On));gn(an,Qn=>{NI(Qn)!==Un&&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&&zl(an.name))return;let On=!1,Ln=Bo(an.parent,Un=>{if(On)return Un;On=Un===an});if(Ln&&Ln.pos===an.end&&Ln.kind===an.kind){let Un=Ln.name||Ln,Qn=Ln.name;if(an.name&&Qn&&(Ki(an.name)&&Ki(Qn)&&an.name.escapedText===Qn.escapedText||$a(an.name)&&$a(Qn)&&py(Sg(an.name),Sg(Qn))||I_(an.name)&&I_(Qn)&&MN(an.name)===MN(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(Un,vo)}return}if(Kf(Ln.body)){Ve(Un,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,ir=!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&&(ir=!0),On.kind===262||On.kind===174||On.kind===173||On.kind===176){Mn.push(On);let Un=Vee(On,_);g|=Un,T&=Un,M=M||NI(On),W=W&&NI(On);let Qn=Kf(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)}ar(an)&&Yo(an)&&an.jsDoc&&(V=Nn(Tj(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)}),ir&&!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&&Pa(Ve(No(On)||On,Ln,bl(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=kS(n),On=cm(te);for(let Ln of an)if(!Vlt(On,Ln)){let $n=Ln.declaration&&bE(Ln.declaration)?Ln.declaration.parent.tagName:Ln.declaration;Pa(Ve($n,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Pr(te,f.The_implementation_signature_is_declared_here));break}}}function X8(n){r(()=>Tmt(n))}function Tmt(n){let a=n.localSymbol;if(!a&&(a=Tr(n),!a.exportSymbol)||ul(a,n.kind)!==n)return;let c=0,u=0,_=0;for(let V of a.declarations){let te=W(V),ye=Vee(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=Ll(ye)?ye.expression:ye.right;if(!Gl(_e))return 1;te=_e;case 271:case 274:case 273:let je=0,mt=Wc(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 lL(n,a,c,...u){let _=Y8(n,a);return _&&nI(_,a,c,...u)}function Y8(n,a,c){if(xt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Cb(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):Ye;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=i0(te);ye&&ye!==nr&&!Y_(n,ye,Rh)?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,jn(n),jn(T));return}let W=pm(ti(mn(M,xve)),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=ti(mn(V,xve),2)}function $8(n,a,c,u,..._){return(a?nI(n,c,u,..._):mv(n,c,u,..._))||pt}function o6e(n){if(eG(cy(n),402915324))return!1;let a=Ue(n,"then");return!!a&&Ko(pm(a,2097152),0).length>0}function Uee(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 cL(n){return n.flags&1048576?dl(n,cL):Uee(n)?n.aliasTypeArguments[0]:n}function a6e(n){if(xt(n)||Uee(n))return!1;if(VA(n)){let a=Bd(n);if(a?a.flags&3||fy(a)||Bm(a,o6e):Dl(n,8650752))return!0}return!1}function Amt(n){let a=Dge(!0);if(a)return fC(a,[cL(n)])}function Imt(n){if(a6e(n)){let a=Amt(n);if(a)return a}return R.assert(Uee(n)||Y8(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 _&&Imt(_)}function mv(n,a,c,...u){if(xt(n)||Uee(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(WE.lastIndexOf(n.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let M=a?V=>mv(V,a,c,...u):mv;WE.push(n.id);let W=dl(n,M);return WE.pop(),_.awaitedTypeOfType=W}if(a6e(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=Y8(n,void 0,g);if(T){if(n.id===T.id||WE.lastIndexOf(T.id)>=0){a&&Ve(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}WE.push(n.id);let M=mv(T,a,c,...u);return WE.pop(),M?_.awaitedTypeOfType=M:void 0}if(o6e(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,jn(n),jn(g.value))),M=Fo(M,c,...u),Za.add(Mg(Vn(a),a,M))}return}return _.awaitedTypeOfType=n}function xmt(n,a,c){let u=Ti(a);if(ce>=2){if(Ut(u))return;let g=s5(!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,jn(mv(u)||nr));return}}else{if(Dmt(a),Ut(u))return;let g=N2(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,jn(u));return}let T=js(g,111551,!0),M=T?cr(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,pp(g));return}let W=Qat(!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,pp(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&&zp(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),pp(g));return}}$8(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 Rmt(n){let a=TC(n);wee(a,n);let c=us(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)}tu(c,g,n.expression,_)}function Q8(n,a,c,u,_,g=c.length,T=0){let M=L.createFunctionTypeNode(void 0,Ye,L.createKeywordTypeNode(133));return bg(M,n,a,c,u,_,g,T)}function Vve(n,a,c,u,_,g,T){let M=Q8(n,a,c,u,_,g,T);return zA(M)}function s6e(n){return Vve(void 0,void 0,Ye,n)}function l6e(n){let a=i_("value",n);return Vve(void 0,void 0,[a],nr)}function Dmt(n){c6e(n&&N2(n),!1)}function c6e(n,a){if(!n)return;let c=zp(n),u=(n.kind===80?788968:1920)|2097152,_=yl(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(ft&&Wm(_)&&!nW(Wc(_))&&!kf(_))gb(_);else if(a&&tm(B)&&kd(B)>=5&&!Wm(_)&&!gt(_.declarations,aE)){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||Ye,fb);T&&Pa(g,Pr(T,f._0_was_imported_here,vr(c)))}}}function xC(n){let a=jve(n);a&&Yu(a)&&c6e(a,!0)}function jve(n){if(n)switch(n.kind){case 193:case 192:return d6e(n.types);case 194:return d6e([n.trueType,n.falseType]);case 196:case 202:return jve(n.type);case 183:return n.typeName}}function d6e(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 Hee(n){let a=vd(n);return qh(n)?dj(a):a}function iG(n){if(!jT(n)||!Ef(n)||!n.modifiers||!jF(ee,n,n.parent,n.parent.parent))return;let a=Gr(n.modifiers,Ed);if(a){if(ee?(Rc(a,8),n.kind===169&&Rc(a,32)):ce<99&&(Rc(a,8),Tc(n)?n.name?k6e(n)&&Rc(a,8388608):Rc(a,8388608):ed(n)||(Ki(n.name)&&(Hl(n)||Nv(n)||ku(n))&&Rc(a,8388608),$a(n.name)&&Rc(a,16777216))),B.emitDecoratorMetadata)switch(Rc(a,16),n.kind){case 263:let c=tg(n);if(c)for(let T of c.parameters)xC(Hee(T));break;case 177:case 178:let u=n.kind===177?178:177,_=ul(Tr(n),u);xC(Fm(n)||_&&Fm(_));break;case 174:for(let T of n.parameters)xC(Hee(T));xC(Qf(n));break;case 172:xC(vd(n));break;case 169:xC(Hee(n));let g=n.parent;for(let T of g.parameters)xC(Hee(T));xC(Qf(g));break}for(let c of n.modifiers)Ed(c)&&Rmt(c)}}function Cmt(n){r(a);function a(){p6e(n),pbe(n),dL(n,n.name)}}function Nmt(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&&pL(n.name,f.Type_alias_name_cannot_be_0),Ia(n.typeExpression),dG(Dv(n))}function Pmt(n){Ia(n.constraint);for(let a of n.typeParameters)Ia(a)}function Mmt(n){Ia(n.typeExpression)}function Lmt(n){Ia(n.typeExpression);let a=uE(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=u6e(n.class.expression),_=L0(a);if(_){let g=u6e(_.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 Gmt(n){let a=ET(n);a&&au(a)&&Ve(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function u6e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function p6e(n){var a;iG(n),q8(n);let c=Vc(n);if(n.name&&n.name.kind===167&&Sg(n.name),cC(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&&jee(T),g.parent&&jee(g)}let u=n.kind===173?void 0:n.body;if(Ia(u),Nve(n,uC(n)),r(_),ar(n)){let g=rE(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 _(){Qf(n)||(zl(u)&&!rG(n)&&c0(n,G),c&1&&Kf(u)&&us(cm(n)))}}function jb(n){r(a);function a(){let c=Vn(n),u=df.get(c.path);u||(u=[],df.set(c.path,u)),u.push(n)}}function f6e(n,a){for(let c of n)switch(c.kind){case 263:case 231:Vmt(c,a),Uve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:h6e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&h6e(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:jmt(c,a);break;default:R.assertNever(c,"Node should not have been registered for unused identifiers check")}}function m6e(n,a,c){let u=No(n)||n,_=xR(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 Z8(n){return Fe(n)&&vr(n).charCodeAt(0)===95}function Vmt(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&&(mp(c,2)||ou(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,bl(_.symbol)));break;case 181:case 240:case 175:break;default:R.fail("Unexpected class member")}}function jmt(n,a){let{typeParameter:c}=n;Hve(c)&&a(n,1,Pr(n,f._0_is_declared_but_its_value_is_never_read,vr(c.name)))}function Uve(n,a){let c=Tr(n).declarations;if(!c||Ja(c)!==n)return;let u=Dv(n),_=new Set;for(let g of u){if(!Hve(g))continue;let T=vr(g.name),{parent:M}=g;if(M.kind!==195&&M.typeParameters.every(Hve)){if(qb(_,M)){let W=Vn(M),V=rm(M)?_U(M):hU(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 Hve(n){return!(ts(n.symbol).isReferenced&262144)&&!Z8(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 _6e(n){return ri(x_(n),To)}function Umt(n){return Xa(n)?nm(n.parent)?!!(n.propertyName&&Z8(n.name)):Z8(n.name):Ld(n)||(Oi(n)&&Vx(n.parent.parent)||g6e(n))&&Z8(n.name)}function h6e(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(!Umt(T))if(g6e(T))oG(c,Kmt(T),T,is);else if(Xa(T)&&nm(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=XS(T)&7,W=No(T);(M!==4&&M!==6||!W||!Z8(W))&&oG(_,T.parent,T,is)}else{let M=g.valueDeclaration&&_6e(g.valueDeclaration),W=g.valueDeclaration&&No(g.valueDeclaration);M&&W?!up(M,M.parent)&&!O0(M)&&!Z8(W)&&(Xa(T)&&H0(T.parent)?oG(u,T.parent,T,is):a(M,1,Pr(W,f._0_is_declared_but_its_value_is_never_read,bl(g)))):m6e(T,bl(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)m6e(V,vr(V.name),a)}),u.forEach(([g,T])=>{let M=_6e(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 Hmt(){var n;for(let a of ug)if(!((n=Tr(a))!=null&&n.isReferenced)){let c=Wx(a);R.assert(k0(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||Pa(u,Zc(Vn(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))),Za.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 g6e(n){return n.kind===273||n.kind===276||n.kind===274}function Kmt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Kee(n){if(n.kind===241&&gy(n),kV(n)){let a=Oe;gn(n.statements,Ia),Oe=a}else gn(n.statements,Ia);n.locals&&jb(n)}function Jmt(n){ce>=2||!VV(n)||n.flags&33554432||zl(n.body)||gn(n.parameters,a=>{a.name&&!$o(a.name)&&a.name.escapedText===Ft.escapedName&&n_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function eW(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||(vh(n)||nd(n)||Zu(n))&&aE(n))return!1;let u=x_(n);return!(To(u)&&zl(u.parent.body))}function qmt(n){Fn(n,a=>DC(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 Xmt(n){Fn(n,a=>DC(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 Ymt(n,a){if(z>=5&&!(z>=100&&Vn(n).impliedNodeFormat===1)||!a||!eW(n,a,"require")&&!eW(n,a,"exports")||Xl(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&Op(c)&&n_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,xs(a),xs(a))}function $mt(n,a){if(!a||ce>=4||!eW(n,a,"Promise")||Xl(n)&&Vg(n)!==1)return;let c=X(n);c.kind===312&&Op(c)&&c.flags&4096&&n_("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 Qmt(n,a){ce<=8&&(eW(n,a,"WeakMap")||eW(n,a,"WeakSet"))&&sb.push(n)}function Zmt(n){let a=fh(n);DC(a)&1048576&&(R.assert(ou(n)&&Fe(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),n_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function e_t(n,a){a&&ce>=2&&ce<=8&&eW(n,a,"Reflect")&&lb.push(n)}function t_t(n){let a=!1;if(ed(n)){for(let c of n.members)if(DC(c)&2097152){a=!0;break}}else if(ks(n))DC(n)&2097152&&(a=!0);else{let c=fh(n);c&&DC(c)&2097152&&(a=!0)}a&&(R.assert(ou(n)&&Fe(n.name),"The target of a Reflect collision check should be an identifier"),n_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,xs(n.name),"Reflect"))}function dL(n,a){a&&(Ymt(n,a),$mt(n,a),Qmt(n,a),e_t(n,a),di(n)?(pL(a,f.Class_name_cannot_be_0),n.flags&33554432||C_t(a)):yE(n)&&pL(a,f.Enum_name_cannot_be_0))}function n_t(n){if(XS(n)&7||k0(n))return;let a=Tr(n);if(a.flags&1){if(!Fe(n.name))return R.fail();let c=yl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&nve(c)&7){let u=pE(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 tW(n){return n===tt?G:n===Jc?ec:n}function sG(n){var a;if(iG(n),Xa(n)||Ia(n.type),!n.name)return;if(n.name.kind===167&&(Sg(n.name),pT(n)&&n.initializer&&nc(n.initializer)),Xa(n)){if(n.propertyName&&Fe(n.name)&&k0(n)&&zl(Fp(n).body)){ug.push(n);return}nm(n.parent)&&n.dotDotDotToken&&ce<5&&Rc(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(Zf(W)){let V=em(W),te=_a(T,V);te&&(V5(te,void 0,!1),ive(n,!!_.initializer&&_.initializer.kind===108,!1,T,te))}}}if($o(n.name)&&(n.name.kind===207&&ce<2&&B.downlevelIteration&&Rc(n,512),gn(n.name.elements,Ia)),n.initializer&&k0(n)&&zl(Fp(n).body)){Ve(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($o(n.name)){if(Dye(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=nc(n.initializer);J&&g?FWe(M,n):Fb(M,F(n),n,n.initializer)}g&&(H0(n.name)?_v(65,T,Le,n):J&&FWe(T,n))}return}let c=Tr(n);if(c.flags&2097152&&(N0(n)||_ie(n))){$ee(n);return}let u=tW(cr(c));if(n===c.valueDeclaration){let _=pT(n)&&k2(n);if(_&&!(ar(n)&&Ma(_)&&(_.properties.length===0||zv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=nc(_);Fb(T,u,n,_,void 0);let M=XS(n)&7;if(M===6){let W=sst(!0),V=lOe(!0);if(W!==Ca&&V!==Ca){let te=ti([W,V,ue,Le]);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=lOe(!0);if(W!==Ca){let V=ti([W,ue,Le]);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&&Qx(g)&&!v6e(g,n))&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}else{let _=tW(F(n));!Ut(u)&&!Ut(_)&&!py(u,_)&&!(c.flags&67108864)&&y6e(c.valueDeclaration,u,n,_),pT(n)&&n.initializer&&Fb(nc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!v6e(n,c.valueDeclaration)&&Ve(n.name,f.All_declarations_of_0_must_have_identical_modifiers,xs(n.name))}n.kind!==172&&n.kind!==171&&(X8(n),(n.kind===260||n.kind===208)&&n_t(n),dL(n,n.name))}function y6e(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,jn(a),jn(u));n&&Pa(M,Pr(n,f._0_was_also_declared_here,T))}function v6e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(NI(n)!==NI(a))return!1;let c=1358;return wI(n,c)===wI(a,c)}function r_t(n){var a,c;(a=or)==null||a.push(or.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Fgt(n),sG(n),(c=or)==null||c.pop()}function i_t(n){return wgt(n),sG(n)}function Jee(n){let a=Cy(n)&7;(a===4||a===6)&&Rc(n,33554432),gn(n.declarations,Ia)}function o_t(n){!Ag(n)&&!_be(n.declarationList)&&zgt(n),Jee(n.declarationList)}function a_t(n){gy(n),po(n.expression)}function s_t(n){gy(n);let a=uL(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);pr(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=ms(g.left),_(g,T)}function _(g,T){let M=ok(g)?ms(g.right):g;if(Qh(M))return;if(ok(M)){u(M,T);return}let W=M===g?a:uL(M),V=kr(M)&&jFe(M.expression);if(!um(W,4194304)||V)return;let te=Ko(W,0),ye=!!lL(W);if(te.length===0&&!ye)return;let _e=Fe(M)?M:kr(M)?M.name:void 0,je=_e&&Gm(_e);if(!je&&!ye)return;je&&pr(g.parent)&&c_t(g.parent,je)||je&&T&&l_t(g,T,_e,je)||(ye?BE(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 l_t(n,a,c,u){return!!Bo(a,function _(g){if(Fe(g)){let T=Gm(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 Gm(M)===Gm(W);if(kr(M)&&kr(W)){if(Gm(M.name)!==Gm(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 c_t(n,a){for(;pr(n)&&n.operatorToken.kind===56;){if(Bo(n.right,function u(_){if(Fe(_)){let g=Gm(_);if(g&&g===a)return!0}return Bo(_,u)}))return!0;n=n.parent}return!1}function d_t(n){gy(n),Ia(n.statement),uL(n.expression)}function u_t(n){gy(n),uL(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 uL(n,a){return Jve(po(n,a),n)}function p_t(n){gy(n)||n.initializer&&n.initializer.kind===261&&_be(n.initializer),n.initializer&&(n.initializer.kind===261?Jee(n.initializer):po(n.initializer)),n.condition&&uL(n.condition),n.incrementor&&po(n.incrementor),Ia(n.statement),n.locals&&jb(n)}function f_t(n){h4e(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&&Rc(n,16384):B.downlevelIteration&&ce<2&&Rc(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);J8(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 m_t(n){h4e(n);let a=ove(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):ga(qst(a),u)?J8(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,jn(a)),Ia(n.statement),n.locals&&jb(n)}function lG(n){let a=n.awaitModifier?15:13;return _v(a,EC(n.expression),Le,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===Wr){Zve(u,a,g);return}let T=ce>=2,M=!T&&B.downlevelIteration,W=B.noUncheckedIndexedAccess&&!!(n&128);if(T||M||g){let mt=Xee(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?B8(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=ti(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?B8(Ne):Ne}if(!fv(V)){if(u&&!te){let mt=!!(n&4)&&!ye,[At,rn]=je(mt,M);BE(u,rn&&!!lL(V),At,jn(V))}return ye?W?B8(Ne):Ne:void 0}let _e=r0(V,It);if(ye&&_e)return _e.flags&402653316&&!B.noUncheckedIndexedAccess?Ne:ti(W?[_e,Ne,Le]:[_e,Ne],2);return n&128?B8(_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]:__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 __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 _=Xee(c,n,u);return _&&_[MIe(a)]}function hv(n=Wr,a=Wr,c=un){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let u=dm([n,a,c]),_=Di.get(u);return _||(_={yieldType:n,returnType:a,nextType:c},Di.set(u,_)),_}return{yieldType:n,returnType:a,nextType:c}}function b6e(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&&ti(a),c&&ti(c),u&&ha(u)):Cr}function qee(n,a){return n[a]}function Tg(n,a,c){return n[a]=c}function Xee(n,a,c){var u,_;if(xt(n))return Jo;if(!(n.flags&1048576)){let V=c?{errors:void 0}:void 0,te=E6e(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)Za.add(ye);return te}let g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=qee(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=E6e(V,a,c,te);if(ye===Cr){if(c){let _e=Zve(c,n,!!(a&2));te?.errors&&Pa(_e,...te.errors)}Tg(n,g,Cr);return}else if((_=te?.errors)!=null&&_.length)for(let _e of te.errors)Za.add(_e);M=Tn(M,ye)}let W=M?b6e(M):Cr;return Tg(n,g,W),W===Cr?void 0:W}function Yve(n,a){if(n===Cr)return Cr;if(n===Jo)return Jo;let{yieldType:c,returnType:u,nextType:_}=n;return a&&Dge(!0),hv(nI(c,a)||G,nI(u,a)||G,_)}function E6e(n,a,c,u){if(xt(n))return Jo;let _=!1;if(a&2){let g=$ve(n,Vs)||T6e(n,Vs);if(g)if(g===Cr&&c)_=!0;else return a&8?Yve(g,c):g}if(a&1){let g=$ve(n,gc)||T6e(n,gc);if(g)if(g===Cr&&c)_=!0;else if(a&2){if(g!==Cr)return g=Yve(g,c),_?g:Tg(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,gc,c,u,_);if(g!==Cr)return a&2?(g=Yve(g,c),_?g:Tg(n,"iterationTypesOfAsyncIterable",g)):g}return Cr}function $ve(n,a){return qee(n,a.iterableCacheKey)}function S6e(n,a){let c=$ve(n,a)||Qve(n,a,void 0,void 0,!1);return c===Cr?Hc:c}function T6e(n,a){let c;if(Cb(n,c=a.getGlobalIterableType(!1))||Cb(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Hs(n),{returnType:_,nextType:g}=S6e(c,a);return Tg(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 Tg(n,a.iterableCacheKey,hv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function A6e(n){let a=oOe(!1),c=a&&Ue(cr(a),ml(n));return c&&Zf(c)?em(c):`__@${n}`}function Qve(n,a,c,u,_){let g=_a(n,A6e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?cr(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=ha(mn(M,us)),V=I6e(W,a,c,u,_)??Cr;return _?V:Tg(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,_=!!lL(a)||!c&&jk(n.parent)&&n.parent.expression===n&&NZ(!1)!==Mo&&ga(a,NZ(!1));return BE(n,_,u,jn(a))}function h_t(n,a,c,u){return I6e(n,a,c,u,!1)}function I6e(n,a,c,u,_){if(xt(n))return Jo;let g=x6e(n,a)||g_t(n,a);return g===Cr&&c&&(g=void 0,_=!0),g??(g=D6e(n,a,c,u,_)),g===Cr?void 0:g}function x6e(n,a){return qee(n,a.iteratorCacheKey)}function g_t(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Cb(n,c)){let[u]=Hs(n),_=x6e(c,a)||D6e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===Cr?Hc:_;return Tg(n,a.iteratorCacheKey,hv(u,g,T))}if(Cb(n,a.getGlobalIteratorType(!1))||Cb(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Hs(n);return Tg(n,a.iteratorCacheKey,hv(u,_,g))}}function R6e(n,a){let c=Ue(n,"done")||Kt;return ga(a===0?Kt:wn,c)}function y_t(n){return R6e(n,0)}function v_t(n){return R6e(n,1)}function b_t(n){if(xt(n))return Jo;let a=qee(n,"iterationTypesOfIteratorResult");if(a)return a;if(Cb(n,ost(!1))){let T=Hs(n)[0];return Tg(n,"iterationTypesOfIteratorResult",hv(T,void 0,void 0))}if(Cb(n,ast(!1))){let T=Hs(n)[0];return Tg(n,"iterationTypesOfIteratorResult",hv(void 0,T,void 0))}let c=dc(n,y_t),u=c!==Wr?Ue(c,"value"):void 0,_=dc(n,v_t),g=_!==Wr?Ue(_,"value"):void 0;return!u&&!g?Tg(n,"iterationTypesOfIteratorResult",Cr):Tg(n,"iterationTypesOfIteratorResult",hv(u,g||nr,void 0))}function ebe(n,a,c,u,_){var g,T,M,W;let V=_a(n,c);if(!V&&c!=="next")return;let te=V&&!(c==="next"&&V.flags&16777216)?c==="next"?cr(V):pm(cr(V),2097152):void 0;if(xt(te))return c==="next"?Jo:El;let ye=te?Ko(te,0):Ye;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 Un=Ln?an:On,{mapper:Qn}=te;return hv(Ob(Un.typeParameters[0],Qn),Ob(Un.typeParameters[1],Qn),c==="next"?Ob(Un.typeParameters[2],Qn):void 0)}}let _e,je;for(let an of ye)c!=="throw"&>(an.parameters)&&(_e=Tn(_e,__(an,0))),je=Tn(je,us(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?ha(je):Wr,ir=a.resolveIterationType(sn,u)||G,Mn=b_t(ir);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 D6e(n,a,c,u,_){let g=b6e([ebe(n,a,"next",c,u),ebe(n,a,"return",c,u),ebe(n,a,"throw",c,u)]);return _?g:Tg(n,a.iteratorCacheKey,g)}function KS(n,a,c){if(xt(a))return;let u=C6e(a,c);return u&&u[MIe(n)]}function C6e(n,a){if(xt(n))return Jo;let c=a?2:1,u=a?Vs:gc;return Xee(n,c,void 0)||h_t(n,u,void 0,void 0)}function E_t(n){gy(n)||kgt(n)}function cG(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=KS(1,n,u);return _?u?mv(cL(_)):_:pt}return u?mv(n)||pt:n}function N6e(n,a){let c=cG(a,Vc(n));return!!(c&&(Dl(c,16384)||c.flags&32769))}function S_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=cm(a),u=us(c),_=Vc(a);if(J||n.expression||u.flags&131072){let g=n.expression?nc(n.expression):Le;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(uC(a)){let T=cG(u,_)??u,M=_&2?$8(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&&!N6e(a,u)&&Ve(n,f.Not_all_code_paths_return_a_value)}function T_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=Vn(n);if(!JS(a)){let c=mh(a,n.pos).start,u=n.statement.pos;qS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function A_t(n){gy(n);let a,c=!1,u=po(n.expression);gn(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(yn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(g(_)),gn(_.statements,Ia),B.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&P5(_.fallthroughFlowNode)&&Ve(_,f.Fallthrough_case_in_switch);function g(T){return()=>{let M=po(T.expression);kve(u,M)||n8e(M,u,T.expression,void 0)}}}),n.caseBlock.locals&&jb(n.caseBlock)}function I_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,pc(n.label)),!0):!1),Ia(n.statement)}function x_t(n){gy(n)||Fe(n.expression)&&!n.expression.escapedText&&Xgt(n,f.Line_break_not_permitted_here),n.expression&&po(n.expression)}function R_t(n){gy(n),Kee(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;_&&ph(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))})}}Kee(a.block)}n.finallyBlock&&Kee(n.finallyBlock)}function Yee(n,a,c){let u=hu(n);if(u.length===0)return;for(let g of Pb(n))c&&g.flags&4194304||P6e(n,g,_C(g,8576,!0),Db(g));let _=a.valueDeclaration;if(_&&di(_)){for(let g of _.members)if(!na(g)&&!cC(g)){let T=Tr(g);P6e(n,T,Rd(g.name.expression),Db(T))}}if(u.length>1)for(let g of u)D_t(n,g)}function P6e(n,a,c,u){let _=a.valueDeclaration,g=No(_);if(g&&Ki(g))return;let T=dge(n,c),M=Lr(n)&2?ul(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(Cp(n),je=>!!n0(je,a.escapedName)&&!!r0(je,te.keyType))?M:void 0);if(_e&&!ga(u,te.type)){let je=uA(_e,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Si(a),jn(u),jn(te.keyType),jn(te.type));W&&_e!==W&&Pa(je,Pr(W,f._0_is_declared_here,Si(a))),Za.add(je)}}}function D_t(n,a){let c=a.declaration,u=dge(n,a.keyType),_=Lr(n)&2?ul(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(Cp(n),V=>!!Eg(V,a.keyType)&&!!r0(V,T.keyType))?_:void 0);W&&!ga(a.type,T.type)&&Ve(W,f._0_index_type_1_is_not_assignable_to_2_index_type_3,jn(a.keyType),jn(a.type),jn(T.keyType),jn(T.type))}}function pL(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 C_t(n){ce>=1&&n.escapedText==="Object"&&(z<5||Vn(n).impliedNodeFormat===1)&&Ve(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,ZC[z])}function N_t(n){let a=Vr(oE(n),Zm);if(!Nn(a))return;let c=ar(n),u=new Set,_=new Set;if(gn(n.parameters,({name:T},M)=>{Fe(T)&&u.add(T.escapedText),$o(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)&&!Vf(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,pp(T),pp(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,P_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 P_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;Wfc(c)&&au(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),w6e(n),gn(n.members,Ia),jb(n)}function w6e(n){vgt(n),iG(n),dL(n,n.name),dG(Dv(n)),X8(n);let a=Tr(n),c=Qs(a),u=Hp(c),_=cr(a);M6e(a),jee(a),Yft(n),!!(n.flags&33554432)||$ft(n);let T=A_(n);if(T){gn(T.typeArguments,Ia),ce<2&&Rc(T.parent,1);let V=L0(n);V&&V!==T&&po(V.expression);let te=Cp(c);te.length&&r(()=>{let ye=te[0],_e=Dp(c),je=Mu(_e);if(W_t(je,T),Ia(T.expression),gt(T.typeArguments)){gn(T.typeArguments,Ia);for(let At of eu(je,T.typeArguments,T))if(!n6e(T,At.typeParameters))break}let mt=Hp(ye,c.thisType);if(tu(u,mt,void 0)?tu(_,YOe(je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):F6e(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=wh(je,T.typeArguments,T);gn(At,rn=>!Z_(rn.declaration)&&!py(us(rn),ye))&&Ve(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}B_t(c,ye)})}O_t(n,c,u,_);let M=dR(n);if(M)for(let V of M)(!Gl(V.expression)||Hd(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(()=>{Yee(c,a),Yee(_,a,!0),Fve(n),j_t(n)});function W(V){return()=>{let te=p_(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=Hp(te,c.thisType);tu(u,_e,void 0)||F6e(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 O_t(n,a,c,u){let g=A_(n)&&Cp(a),T=g?.length?Hp(Va(g),a.thisType):void 0,M=Dp(a);for(let W of n.members)Hj(W)||(Pl(W)&&gn(W.parameters,V=>{up(V,W)&&O6e(n,u,M,T,a,c,V,!0)}),O6e(n,u,M,T,a,c,W,!1))}function O6e(n,a,c,u,_,g,T,M,W=!0){let V=T.name&&Gm(T.name)||Gm(T);return V?W6e(n,a,c,u,_,g,m6(T),F0(T),na(T),M,bl(V),W?T:void 0):0}function W6e(n,a,c,u,_,g,T,M,W,V,te,ye){let _e=ar(n),je=!!(n.flags&33554432);if(u&&(T||B.noImplicitOverride)){let mt=ml(te),At=W?a:g,rn=W?c:u,sn=_a(At,mt),ir=_a(rn,mt),Mn=jn(u);if(sn&&!ir&&T){if(ye){let an=KWe(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&&ir?.declarations&&B.noImplicitOverride&&!je){let an=gt(ir.declarations,F0);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=jn(_);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 F6e(n,a,c,u){let _=!1;for(let g of n.members){if(na(g))continue;let T=g.name&&Gm(g.name)||Gm(g);if(T){let M=_a(a,T.escapedName),W=_a(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),jn(a),jn(c));tu(cr(M),cr(W),g.name||g,void 0,V)||(_=!0)}}}_||tu(a,c,n.name||n,u)}function W_t(n,a){let c=Ko(n,1);if(c.length){let u=c[0].declaration;if(u&&mp(u,2)){let _=Og(n.symbol);abe(a,_)||Ve(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,jp(n.symbol))}}}function F_t(n,a,c){if(!a.name)return 0;let u=Tr(n),_=Qs(u),g=Hp(_),T=cr(u),W=A_(n)&&Cp(_),V=W?.length?Hp(Va(W),_.thisType):void 0,te=Dp(_),ye=a.parent?m6(a):$r(a,16);return W6e(n,T,te,V,_,g,ye,F0(a),na(a),!1,bl(c))}function RC(n){return Al(n)&1?n.links.target:n}function z_t(n){return Vr(n.declarations,a=>a.kind===263||a.kind===264)}function B_t(n,a){var c,u,_,g;let T=_s(a),M;e:for(let W of T){let V=RC(W);if(V.flags&4194304)continue;let te=n0(n,V.escapedName);if(!te)continue;let ye=RC(te),_e=Af(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 Cp(n)){if(mt===a)continue;let At=n0(mt,V.escapedName),rn=At&&RC(At);if(rn&&rn!==V)continue e}M||(M=Ve(je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,jn(n),jn(a))),je.kind===231?Pa(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),jn(a))):Pa(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,jn(n),Si(W),jn(a)))}}else{let je=Af(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=>z6e(Mn,_e)):(u=V.declarations)!=null&&u.every(Mn=>z6e(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),jn(a),jn(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||!G6e(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),jn(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,jn(a),Si(V),jn(n))}}}function z6e(n,a){return a&64&&(!jo(n)||!n.initializer)||fu(n.parent)}function G_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(Hp(_,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 V_t(n,a){let c=Cp(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(Hp(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&&!ect(W.prop,M)){_=!1;let te=jn(W.containingType),ye=jn(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,jn(n),te,ye),Za.add(Mg(Vn(a),a,_e))}}}return _}function j_t(n){if(!J||!xe||n.flags&33554432)return;let a=ny(n);for(let c of n.members)if(!(cu(c)&128)&&!na(c)&&B6e(c)){let u=c.name;if(Fe(u)||Ki(u)||$a(u)){let _=cr(Tr(c));_.flags&3||JM(_)||(!a||!G6e(u,_,a))&&Ve(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,xs(u))}}}function B6e(n){return n.kind===172&&!F0(n)&&!n.exclamationToken&&!n.initializer}function U_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=Vb(T,a,Bb(a));if(!JM(M))return!0}return!1}function G6e(n,a,c){let u=$a(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);ja(u.expression,u),ja(u,c),u.flowNode=c.returnFlowNode;let _=Vb(u,a,Bb(a));return!JM(_)}function H_t(n){Ag(n)||xgt(n),dG(n.typeParameters),r(()=>{pL(n.name,f.Interface_name_cannot_be_0),X8(n);let a=Tr(n);M6e(a);let c=ul(a,264);if(n===c){let u=Qs(a),_=Hp(u);if(V_t(u,n.name)){for(let g of Cp(u))tu(_,Hp(g,u.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);Yee(u,a)}}QFe(n)}),gn(NN(n),a=>{(!Gl(a.expression)||Hd(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 K_t(n){Ag(n),pL(n.name,f.Type_alias_name_cannot_be_0),X8(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):(Ia(n.type),jb(n))}function V6e(n){let a=Qr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=J_t(u,c);Qr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function J_t(n,a){if(S2(n.name))Ve(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=qx(n.name);ig(c)&&!rP(c)&&Ve(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return q_t(n);if(!(n.parent.flags&33554432&&!R0(n.parent))){if(a!==void 0)return a;Ve(n.name,f.Enum_member_must_have_initializer)}}function q_t(n){let a=R0(n.parent),c=n.initializer,u=fL(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 fL(n,a){switch(n.kind){case 224:let c=fL(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=fL(n.left,a),_=fL(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 U6e(n,a);case 9:return hbe(n),+n.text;case 217:return fL(n.expression,a);case 80:{let T=n;if(rP(T.escapedText)&&js(T,111551,!0)===HM(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(Gl(n)){let T=js(n,111551,!0);if(T){if(T.flags&8)return a?j6e(n,T,a):CC(T.valueDeclaration);if(nL(T)){let M=T.valueDeclaration;if(M&&Oi(M)&&!M.type&&M.initializer&&(!a||M!==a&&Qg(M,a)))return fL(M.initializer,M)}}}break;case 212:let g=n.expression;if(Gl(g)&&ss(n.argumentExpression)){let T=js(g,111551,!0);if(T&&T.flags&384){let M=ml(n.argumentExpression.text),W=T.exports.get(M);if(W)return a?j6e(n,W,a):CC(W.valueDeclaration)}}break}}function j6e(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)?CC(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 U6e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=fL(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function X_t(n){r(()=>Y_t(n))}function Y_t(n){Ag(n),dL(n,n.name),X8(n),n.members.forEach($_t),V6e(n);let a=Tr(n),c=ul(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=R0(n);gn(a.declarations,g=>{yE(g)&&R0(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 $_t(n){Ki(n.name)&&Ve(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&po(n.initializer)}function Q_t(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&Kf(c.body))&&!(c.flags&33554432))return c}}function Z_t(n,a){let c=fh(n),u=fh(a);return Dh(c)?Dh(u):Dh(u)?!1:c===u}function eht(n){n.body&&(Ia(n.body),T_(n)||jb(n)),r(a);function a(){var c,u;let _=T_(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)&&dL(n,n.name),X8(n);let W=Tr(n);if(W.flags&512&&!g&&SK(n,j0(B))){if(tm(B)&&!Vn(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=Q_t(W);V&&(Vn(n)!==Vn(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(x0(n)){if((_||Tr(n).flags&33554432)&&n.body)for(let te of n.body.statements)tbe(te,_)}else Dh(n.parent)?_?Ve(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):$c(Yf(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: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)tbe(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function tht(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 nbe(n){let a=oR(n);if(!a||zl(a))return!1;if(!Da(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)&&!Tb(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)Da(g.value)||(_=!0,Ve(g.value,u));return!_}return!0}function $ee(n){var a,c,u,_;let g=Tr(n),T=Wc(g);if(T!==ct){if(g=ts(g.exportSymbol||g),ar(n)&&!(T.flags&111551)&&!aE(n)){let V=SI(n)?n.propertyName||n.name:ou(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=Vn(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(jx);_e&&Pa(te,Pr(_e,f._0_is_automatically_exported_here,Vi(ye.escapedName)))}}else{R.assert(n.kind!==260);let te=Fn(n,Km(Lc,nd)),ye=(te&&((_=iR(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,aE)&&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(tm(B)&&!aE(n)&&!(n.flags&33554432)){let V=kf(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&&nR(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&&mp(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||Vn(V)!==Vn(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&&!ar(n)&&(z===1||Vn(n).impliedNodeFormat===1)&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Zu(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)||!km(n))return n;let c=Wc(n);if(c===ct)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){dL(n,n.name),$ee(n),n.kind===276&&vr(n.propertyName||n.name)==="default"&&hh(B)&&z!==4&&(z<5||Vn(n).impliedNodeFormat===1)&&Rc(n,131072)}function H6e(n){var a;let c=n.attributes;if(c){let u=Ige(!0);u!==Ca&&tu(le(c),A5(u,32768),c);let _=uJ(n),g=nD(c,_?yn:void 0),T=n.attributes.token===118;if(_&&g)return;if((z===199&&n.moduleSpecifier&&Qi(n.moduleSpecifier))!==99&&z!==99&&z!==200){let W=T?z===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:z===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return yn(c,W)}if(Lc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return yn(c,T?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(g)return yn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function nht(n){return yu(nc(n.value))}function rht(n){if(!uG(n,ar(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),nbe(n)){let a=n.importClause;a&&!$gt(a)&&(a.name&&Qee(a),a.namedBindings&&(a.namedBindings.kind===274?(Qee(a.namedBindings),z!==4&&(z<5||Vn(n).impliedNodeFormat===1)&&hh(B)&&Rc(n,65536)):_u(n,n.moduleSpecifier)&&gn(a.namedBindings.elements,Qee)))}H6e(n)}}function iht(n){if(!uG(n,ar(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),nR(n)||nbe(n)))if(Qee(n),$r(n,32)&&hb(n),n.moduleReference.kind!==283){let a=Wc(Tr(n));if(a!==ct){let c=Ad(a);if(c&111551){let u=zp(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&&pL(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&&Vn(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 oht(n){if(!uG(n,ar(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)&&Gie(n)&&hd(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Rf(n.exportClause)&&Nn(n.exportClause.elements)&&ce===0&&Rc(n,4194304),aht(n),!n.moduleSpecifier||nbe(n))if(n.exportClause&&!bh(n.exportClause)){gn(n.exportClause.elements,pht);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=_u(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&&$ee(n.exportClause),z!==4&&(z<5||Vn(n).impliedNodeFormat===1)&&(n.exportClause?hh(B)&&Rc(n,65536):Rc(n,32768))}H6e(n)}}function aht(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?T4e(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 sht(n){return ZF(n,a=>!!Tr(a).isReferenced)}function lht(n){return ZF(n,a=>!!qi(Tr(a)).constEnumReferenced)}function cht(n){return Lc(n)&&n.importClause&&!n.importClause.isTypeOnly&&sht(n.importClause)&&!ite(n.importClause,!0)&&!lht(n.importClause)}function dht(n){return nd(n)&&Eh(n.moduleReference)&&!n.isTypeOnly&&Tr(n).isReferenced&&!ite(n,!1)&&!qi(Tr(n)).constEnumReferenced}function uht(n){if(ft)for(let a of n.statements)(cht(a)||dht(a))&&Ve(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function pht(n){if($ee(n),If(B)&&wM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)hh(B)&&z!==4&&(z<5||Vn(n).impliedNodeFormat===1)&&vr(n.propertyName||n.name)==="default"&&Rc(n,131072);else{let a=n.propertyName||n.name,c=yl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===ze||c===nt||c.declarations&&Dh(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&&hb(n);let u=c&&(c.flags&2097152?Wc(c):c);(!u||Ad(u)&111551)&&nc(n.propertyName||n.name)}}}function fht(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(nc(n.expression),Ti(u),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&B.verbatimModuleSyntax&&(z===1||Vn(n).impliedNodeFormat===1);if(n.expression.kind===80){let g=n.expression,T=mf(js(g,-1,!0,!0,n));if(T){let M=kf(T,111551);if(hee(T,g),Ad(T)&111551?(nc(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)&&tm(B)&&!(T.flags&111551)){let W=Ad(T,!1,!0);T.flags&2097152&&W&788968&&!(W&111551)&&(!M||Vn(M)!==Vn(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&&Vn(M)!==Vn(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 nc(g);If(B)&&wM(g,!0)}else nc(n.expression);_&&Ve(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),K6e(c),n.flags&33554432&&!Gl(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&&Vn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Vn(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 mht(n){return Gc(n.exports,(a,c)=>c!=="export=")}function K6e(n){let a=Tr(n),c=qi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&mht(a)){let g=km(u)||u.valueDeclaration;g&&!Tb(g)&&!ar(g)&&Ve(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Nh(a);_&&_.forEach(({declarations:g,flags:T},M)=>{if(M==="__export"||T&1920)return;let W=vv(g,TW(LIe,AW(fu)));if(!(T&524288&&W<=2)&&W>1&&!Zee(g))for(let V of g)NIe(V)&&Za.add(Pr(V,f.Cannot_redeclare_exported_variable_0,Vi(M)))}),c.exportsChecked=!0}}function Zee(n){return n&&n.length>1&&n.every(a=>ar(a)&&Ls(a)&&(yT(a.expression)||Qh(a.expression)))}function Ia(n){if(n){let a=D;D=n,S=0,_ht(n),D=a}}function _ht(n){H2(n)&&gn(n.jsDoc,({comment:c,tags:u})=>{J6e(c),gn(u,_=>{J6e(_.comment),ar(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&&U2(n)&&n.flowNode&&!P5(n.flowNode)&&_d(B.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return XFe(n);case 169:return YFe(n);case 172:return ZFe(n);case 171:return Qft(n);case 185:case 184:case 179:case 180:case 181:return q8(n);case 174:case 173:return Zft(n);case 175:return emt(n);case 176:return tmt(n);case 177:case 178:return t6e(n);case 183:return Gve(n);case 182:return qft(n);case 186:return smt(n);case 187:return lmt(n);case 188:return cmt(n);case 189:return dmt(n);case 192:case 193:return umt(n);case 196:case 190:case 191:return Ia(n.type);case 197:return _mt(n);case 198:return hmt(n);case 194:return gmt(n);case 195:return ymt(n);case 203:return vmt(n);case 205:return bmt(n);case 202:return Emt(n);case 335:return Bmt(n);case 336:return zmt(n);case 353:case 345:case 347:return Nmt(n);case 352:return Pmt(n);case 351:return Mmt(n);case 331:case 332:case 333:return kmt(n);case 348:return wmt(n);case 355:return Omt(n);case 324:Wmt(n);case 322:case 321:case 319:case 320:case 329:q6e(n),Bo(n,Ia);return;case 325:hht(n);return;case 316:return Ia(n.type);case 340:case 342:case 341:return Gmt(n);case 357:return Lmt(n);case 350:return Fmt(n);case 199:return pmt(n);case 200:return fmt(n);case 262:return Cmt(n);case 241:case 268:return Kee(n);case 243:return o_t(n);case 244:return a_t(n);case 245:return s_t(n);case 246:return d_t(n);case 247:return u_t(n);case 248:return p_t(n);case 249:return m_t(n);case 250:return f_t(n);case 251:case 252:return E_t(n);case 253:return S_t(n);case 254:return T_t(n);case 255:return A_t(n);case 256:return I_t(n);case 257:return x_t(n);case 258:return R_t(n);case 260:return r_t(n);case 208:return i_t(n);case 263:return w_t(n);case 264:return H_t(n);case 265:return K_t(n);case 266:return X_t(n);case 267:return eht(n);case 272:return rht(n);case 271:return iht(n);case 278:return oht(n);case 277:return fht(n);case 242:case 259:gy(n);return;case 282:return rmt(n)}}function J6e(n){So(n)&&gn(n,a=>{xI(a)&&Ia(a)})}function q6e(n){if(!ar(n))if(U4(n)||WR(n)){let a=ca(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,jn(WR(n)&&!(_===Wr||_===nr)?ti(Tn([_,Le],n.postfix?void 0:ue)):_))}else yn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function hht(n){q6e(n),Ia(n.type);let{parent:a}=n;if(To(a)&&FR(a.parent)){Ja(a.parent.parameters)!==a&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}eS(a)||Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!Zm(c)){Ve(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=K2(c);if(!u)return;let _=dE(c);(!_||Ja(_.parameters).symbol!==u)&&Ve(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function ght(n){let a=Ti(n.type),{parent:c}=n,u=n.parent.parent;if(eS(n.parent)&&Zm(u)){let _=dE(u),g=pH(u.parent.parent);if(_||g){let T=Zs(g?u.parent.parent.typeExpression.parameters:_.parameters),M=K2(u);if(!T||M&&T.symbol===M&&qh(T))return Gd(a)}}return To(c)&&FR(c.parent)?Gd(a):ap(a)}function hx(n){let a=Vn(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 yht(n){let a=Qr(n);a.deferredNodes&&a.deferredNodes.forEach(vht),a.deferredNodes=void 0}function vht(n){var a,c;(a=or)==null||a.push(or.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:fft(n);break;case 177:case 178:t6e(n);break;case 231:k_t(n);break;case 168:Jft(n);break;case 285:Sut(n);break;case 284:Aut(n);break;case 216:case 234:case 217:Bpt(n);break;case 222:po(n.expression);break;case 226:h6(n)&&ZA(n);break}D=u,(c=or)==null||c.pop()}function bht(n){var a,c;(a=or)==null||a.push(or.Phase.Check,"checkSourceFile",{path:n.path},!0),nl("beforeCheck"),Eht(n),nl("afterCheck"),Yp("Check","beforeCheck","afterCheck"),(c=or)==null||c.pop()}function X6e(n,a){if(a)return!1;switch(n){case 0:return!!B.noUnusedLocals;case 1:return!!B.noUnusedParameters;default:return R.assertNever(n)}}function Y6e(n){return df.get(n.path)||Ye}function Eht(n){let a=Qr(n);if(!(a.flags&1)){if(QN(n,B,e))return;Jgt(n),jh(yS),jh(vS),jh(sb),jh(lb),jh(ug),gn(n.statements,Ia),Ia(n.endOfFileToken),yht(n),Op(n)&&jb(n),r(()=>{!n.isDeclarationFile&&(B.noUnusedLocals||B.noUnusedParameters)&&f6e(Y6e(n),(c,u,_)=>{!Kx(c)&&X6e(u,!!(c.flags&33554432))&&Za.add(_)}),n.isDeclarationFile||Hmt()}),B.importsNotUsedAsValues===2&&!n.isDeclarationFile&&ac(n)&&uht(n),Op(n)&&K6e(n),yS.length&&(gn(yS,qmt),jh(yS)),vS.length&&(gn(vS,Xmt),jh(vS)),sb.length&&(gn(sb,Zmt),jh(sb)),lb.length&&(gn(lb,t_t),jh(lb)),a.flags|=1}}function $6e(n,a){try{return i=a,Sht(n)}finally{i=void 0}}function ibe(){for(let n of t)n();t=[]}function obe(n){ibe();let a=r;r=c=>c(),bht(n),r=a}function Sht(n){if(n){ibe();let a=Za.getGlobalDiagnostics(),c=a.length;obe(n);let u=Za.getDiagnostics(n.fileName),_=Za.getGlobalDiagnostics();if(_!==a){let g=ene(a,_,JN);return bo(g,u)}else if(c===0&&_.length>0)return bo(_,u);return u}return gn(e.getSourceFiles(),obe),Za.getDiagnostics()}function Tht(){return ibe(),Za.getGlobalDiagnostics()}function Aht(n,a){if(n.flags&67108864)return[];let c=oa(),u=!1;return _(),c.delete("this"),uge(c);function _(){for(;n;){switch(dh(n)&&n.locals&&!Dh(n)&&T(n.locals,a),n.kind){case 312:if(!ac(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(Nb(Tr(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(vR(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=>{!ul(te,281)&&!ul(te,280)&&te.escapedName!=="default"&&g(te,V)})}}function Iht(n){return n.kind===80&&xR(n.parent)&&No(n.parent)===n}function Q6e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function xht(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function Z6e(n,a){let c,u=sd(n);for(;u&&!(c=a(u));)u=sd(u);return c}function Rht(n){return!!Fn(n,a=>Pl(a)&&Kf(a.body)||jo(a)?!0:di(a)||Fs(a)?"quit":!1)}function abe(n,a){return!!Z6e(n,c=>c===a)}function Dht(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 ete(n){return Dht(n)!==void 0}function Cht(n){switch(Bl(n.parent.parent)){case 1:case 3:return ff(n.parent);case 5:if(kr(n.parent)&&bR(n.parent)===n)return;case 4:case 2:return Tr(n.parent.parent)}}function Nht(n){let a=n.parent;for(;Au(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function Pht(n){if(n.expression.kind===110){let a=wu(n,!1,!1);if(Yo(a)){let c=dWe(a);if(c){let u=f0(c,void 0),_=pWe(c,u);return _&&!xt(_)}}}}function e4e(n){if(kg(n))return ff(n.parent);if(ar(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ki(n)&&!vE(n)&&!Pht(n.parent)){let a=Cht(n);if(a)return a}if(n.parent.kind===277&&Gl(n)){let a=js(n,2998271,!0);if(a&&a!==ct)return a}else if(Yu(n)&&ete(n)){let a=pE(n,271);return R.assert(a!==void 0),Z1(n,!0)}if(Yu(n)){let a=Nht(n);if(a){Ti(a);let c=Qr(n).resolvedSymbol;return c===ct?void 0:c}}for(;Jie(n);)n=n.parent;if(xht(n)){let a=0;n.parent.kind===233?(a=Yh(n)?788968:111551,_6(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=Gl(n)?js(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return K2(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){R.assert(!ar(n));let a=vie(n.parent);return a&&a.symbol}if($h(n)){if(zl(n))return;let a=Fn(n,Km(xI,AP,vE)),c=a?901119:111551;if(n.kind===80){if(tR(n)&&_x(n)){let _=Tee(n.parent);return _===ct?void 0:_}let u=js(n,c,!0,!0,dE(n));if(!u&&a){let _=Fn(n,Km(di,fu));if(_)return pG(n,!0,Tr(_))}if(u&&a){let _=ET(n);if(_&&Z0(_)&&_===u.valueDeclaration)return js(n,c,!0,!0,Vn(_))||u}return u}else{if(Ki(n))return xee(n);if(n.kind===211||n.kind===166){let u=Qr(n);return u.resolvedSymbol?u.resolvedSymbol:(n.kind===211?(Aee(n,0),u.resolvedSymbol||(u.resolvedSymbol=t4e(nc(n.expression),uv(n.name)))):zWe(n,0),!u.resolvedSymbol&&a&&Au(n)?pG(n):u.resolvedSymbol)}else if(vE(n))return pG(n)}}else if(Q6e(n)){let a=n.parent.kind===183?788968:1920,c=js(n,a,!1,!0);return c&&c!==ct?c:xZ(n)}if(n.parent.kind===182)return js(n,1)}function t4e(n,a){let c=dge(n,a);if(c.length&&n.members){let u=TZ(u_(n).members);if(c===hu(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:Gm(M.declarations[0].parent),_.filteredIndexSymbolCache.set(T,M),M}}}}function pG(n,a,c){if(Yu(n)){let T=js(n,901119,a,!0,dE(n));if(!T&&Fe(n)&&c&&(T=ts(Uu(Rp(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&&_a(cr(u),"prototype"),T=g?cr(g):Qs(u);return _a(T,_)}}function Gm(n,a){if(Yi(n))return ac(n)?ts(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&67108864)){if(PIe(n)){let _=Tr(c);return SI(n.parent)&&n.parent.propertyName===n?$ye(_):_}else if(X2(n))return Tr(c.parent);if(n.kind===80){if(ete(n))return e4e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=gx(u),g=_a(_,n.escapedText);if(g)return g}else if(gP(c)&&c.name===n)return c.keywordToken===105&&vr(n)==="target"?Ave(c).symbol:c.keywordToken===102&&vr(n)==="meta"?rOe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!kI(n))return e4e(n);case 110:let _=wu(n,!1,!1);if(Yo(_)){let M=cm(_);if(M.thisParameter)return M.thisParameter}if(UF(n))return po(n).symbol;case 197:return OZ(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(lE(n.parent.parent)&&IN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||ar(n)&&Su(n.parent,!1)||Wp(n.parent)||Jv(n.parent)&&Ov(n.parent.parent)&&n.parent.parent.argument===n.parent)return _u(n,n,a);if(ra(c)&&vT(c)&&c.arguments[1]===n)return Tr(c);case 9:let T=Ys(c)?c.argumentExpression===n?Rd(c.expression):void 0:Jv(c)&&kT(u)?Ti(u.objectType):void 0;return T&&_a(T,ml(n.text));case 90:case 100:case 39:case 86:return ff(n.parent);case 205:return Ov(n)?Gm(n.argument.literal,a):void 0;case 95:return Ll(n.parent)?R.checkDefined(n.parent.symbol):void 0;case 102:case 105:return gP(n.parent)?SFe(n.parent).symbol:void 0;case 104:if(pr(n.parent)){let M=Rd(n.parent.right),W=Lve(M);return W?.symbol??M.symbol}return;case 236:return po(n).symbol;case 295:if(tR(n)&&_x(n)){let M=Tee(n.parent);return M===ct?void 0:M}default:return}}}function Mht(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 ya(u,_=>Vr(hu(_),g=>lx(a,g.keyType)))}}function Lht(n){if(n&&n.kind===304)return js(n.name,2208703)}function kht(n){return Jd(n)?n.parent.parent.moduleSpecifier?ey(n.parent.parent,n):js(n.propertyName||n.name,2998271):js(n,2998271)}function gx(n){if(Yi(n)&&!ac(n)||n.flags&67108864)return pt;let a=Xj(n),c=a&&Ff(Tr(a.class));if(Yh(n)){let u=Ti(n);return c?Hp(u,c.thisType):u}if($h(n))return n4e(n);if(c&&!a.isImplements){let u=Yc(Cp(c));return u?Hp(u,c.thisType):pt}if(xR(n)){let u=Tr(n);return Qs(u)}if(Iht(n)){let u=Gm(n);return u?Qs(u):pt}if(Xa(n))return LA(n,!0,0)||pt;if(Kd(n)){let u=Tr(n);return u?cr(u):pt}if(PIe(n)){let u=Gm(n);return u?cr(u):pt}if($o(n))return LA(n.parent,!0,0)||pt;if(ete(n)){let u=Gm(n);if(u){let _=Qs(u);return Ut(_)?cr(u):_}}return gP(n.parent)&&n.parent.keywordToken===n.kind?SFe(n.parent):a1(n)?Ige(!1):pt}function tte(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,Ma),g=tte(_)||pt,T=Jx(_.properties,n.parent);return zFe(_,g,T)}let a=ta(n.parent,pu),c=tte(a)||pt,u=_v(65,c,Le,n.parent)||pt;return BFe(a,c,a.elements.indexOf(n),u)}function wht(n){let a=tte(ta(n.parent.parent,hN));return a&&_a(a,n.escapedText)}function n4e(n){return GN(n)&&(n=n.parent),yu(Rd(n))}function r4e(n){let a=ff(n.parent);return na(n)?cr(a):Qs(a)}function i4e(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 sbe(n){n=Mu(n);let a=oa(_s(n)),c=Ko(n,0).length?Hn:Ko(n,1).length?go:void 0;return c&&gn(_s(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),qE(a)}function nte(n){return Ko(n,0).length!==0||Ko(n,1).length!==0}function o4e(n){let a=Oht(n);return a?ya(a,o4e):[n]}function Oht(n){if(Al(n)&6)return to(qi(n).containingType.types,a=>_a(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=n;return a?[a,c]:u?[u]:hI(Wht(n))}}function Wht(n){let a,c=n;for(;c=qi(c).target;)a=c;return a}function Fht(n){if(ol(n))return!1;let a=Ro(n,Fe);if(!a)return!1;let c=a.parent;return c?!((kr(c)||_c(c))&&c.name===a)&&rW(a)===Ft:!1}function zht(n){let a=_u(n.parent,n);if(!a||bN(a))return!0;let c=av(a);a=xp(a);let u=qi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):Gc(Nh(a),_)),u.exportsSomeValue;function _(g){return g=jl(g),g&&!!(Ad(g)&111551)}}function Bht(n){return f2(n.parent)&&n===n.parent.name}function Ght(n,a){var c;let u=Ro(n,Fe);if(u){let _=rW(u,Bht(u));if(_){if(_.flags&1048576){let T=ts(_.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=Vn(u);return T!==M?void 0:T}return Fn(u.parent,T=>f2(T)&&Tr(T)===g)}}}}function Vht(n){let a=rae(n);if(a)return a;let c=Ro(n,Fe);if(c){let u=tgt(c);if(SA(u,111551)&&!kf(u,111551))return km(u)}}function jht(n){return n.valueDeclaration&&Xa(n.valueDeclaration)&&Wx(n.valueDeclaration).parent.kind===299}function a4e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){let a=qi(n);if(a.isDeclarationWithCollidingName===void 0){let c=fh(n.valueDeclaration);if(zre(c)||jht(n)){let u=Qr(n.valueDeclaration);if(yl(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 Uht(n){if(!ol(n)){let a=Ro(n,Fe);if(a){let c=rW(a);if(c&&a4e(c))return c.valueDeclaration}}}function Hht(n){let a=Ro(n,Kd);if(a){let c=Tr(a);if(c)return a4e(c)}return!1}function s4e(n){switch(R.assert(ft),n.kind){case 271:return rte(Tr(n));case 273:case 274:case 276:case 281:let a=Tr(n);return!!a&&rte(a,!0);case 278:let c=n.exportClause;return!!c&&(bh(c)||gt(c.elements,s4e));case 277:return n.expression&&n.expression.kind===80?rte(Tr(n),!0):!0}return!1}function Kht(n){let a=Ro(n,nd);return a===void 0||a.parent.kind!==312||!nR(a)?!1:rte(Tr(a))&&a.moduleReference&&!zl(a.moduleReference)}function rte(n,a){if(!n)return!1;let c=mf(Wc(n));return c===ct?!a||!kf(n):!!(Ad(n,a,!0)&111551)&&(j0(B)||!nW(c))}function nW(n){return Mve(n)||!!n.constEnumOnlyModule}function ite(n,a){if(R.assert(ft),fb(n)){let c=Tr(n),u=c&&qi(c);if(u?.referenced)return!0;let _=qi(c).aliasTarget;if(_&&cu(n)&32&&Ad(_)&111551&&(j0(B)||!nW(_)))return!0}return a?!!Bo(n,c=>ite(c,a)):!1}function l4e(n){if(Kf(n.body)){if(Mv(n)||Py(n))return!1;let a=Tr(n),c=kS(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function c4e(n){return!!J&&!E8(n)&&!Zm(n)&&!!n.initializer&&!$r(n,31)}function Jht(n){return J&&E8(n)&&!n.initializer&&$r(n,31)}function qht(n){let a=Ro(n,Sc);if(!a)return!1;let c=Tr(a);return!c||!(c.flags&16)?!1:!!Gc(Rp(c),u=>u.flags&111551&&H6(u.valueDeclaration))}function Xht(n){let a=Ro(n,Sc);if(!a)return Ye;let c=Tr(a);return c&&_s(cr(c))||Ye}function DC(n){var a;let c=n.id||0;return c<0||c>=gS.length?0:((a=gS[c])==null?void 0:a.flags)||0}function CC(n){return V6e(n.parent),Qr(n).enumMemberValue}function d4e(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function lbe(n){if(n.kind===306)return CC(n);let a=Qr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(R0(c.parent))return CC(c)}}function cbe(n){return!!(n.flags&524288)&&Ko(n,0).length>0}function Yht(n,a){var c;let u=Ro(n,Yu);if(!u||a&&(a=Ro(a),!a))return 0;let _=!1;if(Au(u)){let te=js(zp(u),111551,!0,!0,a);_=!!((c=te?.declarations)!=null&&c.every(aE))}let g=js(u,111551,!0,!0,a),T=g&&g.flags&2097152?Wc(g):g;_||(_=!!(g&&kf(g,111551)));let M=js(u,788968,!0,!0,a),W=M&&M.flags&2097152?Wc(M):M;if(g||_||(_=!!(M&&kf(M,788968))),T&&T===W){let te=xge(!1);if(te&&T===te)return 9;let ye=cr(T);if(ye&&ns(ye))return _?10:1}if(!W)return _?11:0;let V=Qs(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:wa(V)?7:xd(V,12288)?8:cbe(V)?10:Vf(V)?7:11}function $ht(n,a,c,u,_){let g=Ro(n,rie);if(!g)return L.createToken(133);let T=Tr(g),M=T&&!(T.flags&133120)?GS(cr(T)):pt;return M.flags&8192&&M.symbol===T&&(c|=1048576),_&&(M=Bb(M)),Et.typeToTypeNode(M,a,c|1024,u)}function Qht(n,a,c,u){let _=Ro(n,Yo);if(!_)return L.createToken(133);let g=cm(_);return Et.typeToTypeNode(us(g),a,c|1024,u)}function Zht(n,a,c,u){let _=Ro(n,ht);if(!_)return L.createToken(133);let g=Kp(n4e(_));return Et.typeToTypeNode(g,a,c|1024,u)}function egt(n){return be.has(ml(n))}function rW(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 yl(u,n.escapedText,3257279,void 0,void 0,!0)}function tgt(n){let a=Qr(n).resolvedSymbol;return a&&a!==ct?a:yl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function ngt(n){if(!ol(n)){let a=Ro(n,Fe);if(a){let c=rW(a);if(c)return mf(c).valueDeclaration}}}function rgt(n){if(!ol(n)){let a=Ro(n,Fe);if(a){let c=rW(a);if(c)return Vr(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 igt(n){return PF(n)||Oi(n)&&mG(n)?FS(cr(Tr(n))):!1}function ogt(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 agt(n,a){let c=cr(Tr(n));return ogt(c,n,a)}function u4e(n){return n?(zE(n),Vn(n).localJsxFactory||Yg):Yg}function dbe(n){if(n){let a=Vn(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=p1(u.arguments.factory,ce),a.localJsxFragmentFactory}}if(B.jsxFragmentFactory)return p1(B.jsxFragmentFactory,ce)}function sgt(){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:Ght,getReferencedImportDeclaration:Vht,getReferencedDeclarationWithCollidingName:Uht,isDeclarationWithCollidingName:Hht,isValueAliasDeclaration:W=>{let V=Ro(W);return V&&ft?s4e(V):!0},hasGlobalName:egt,isReferencedAliasDeclaration:(W,V)=>{let te=Ro(W);return te&&ft?ite(te,V):!0},getNodeCheckFlags:W=>{let V=Ro(W);return V?DC(V):0},isTopLevelValueImportEqualsWithEntityName:Kht,isDeclarationVisible:s_,isImplementationOfOverload:l4e,isRequiredInitializedParameter:c4e,isOptionalUninitializedParameterProperty:Jht,isExpandoFunctionDeclaration:qht,getPropertiesOfContainerFunction:Xht,createTypeOfDeclaration:$ht,createReturnTypeOfSignatureDeclaration:Qht,createTypeOfExpression:Zht,createLiteralConstValue:agt,isSymbolAccessible:wi,isEntityNameVisible:bb,getConstantValue:W=>{let V=Ro(W,d4e);return V?lbe(V):void 0},collectLinkedAliases:wM,getReferencedValueDeclaration:ngt,getReferencedValueDeclarations:rgt,getTypeReferenceSerializationKind:Yht,isOptionalParameter:E8,moduleExportsSomeValue:zht,isArgumentsLocalBinding:Fht,getExternalModuleFileFromDeclaration:W=>{let V=Ro(W,qre);return V&&ube(V)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:igt,isLateBound:W=>{let V=Ro(W,Kd),te=V&&Tr(V);return!!(te&&Al(te)&4096)},getJsxFactoryEntity:u4e,getJsxFragmentFactoryEntity:dbe,getAllAccessorDeclarations(W){W=Ro(W,aF);let V=W.kind===178?177:178,te=ul(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))&&Pdt(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?bZ(te,!0):void 0}};function c(W){let V=Vn(W);if(!V.symbol)return!1;let te=ube(W);if(!te||te===V)return!1;let ye=Nh(V.symbol);for(let _e of Oo(ye.values()))if(_e.mergeId){let je=ts(_e);if(je.declarations){for(let mt of je.declarations)if(Vn(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!==ct?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=Vn(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=Vn(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 ube(n){let a=n.kind===267?ri(n.name,Da):oR(n),c=ty(a,a,void 0);if(c)return ul(c,312)}function lgt(){for(let a of e.getSourceFiles())Ose(a,B);bs=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!Op(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let u of c.declarations)Za.add(Pr(u,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));o_(be,a.locals)}a.jsGlobalAugmentations&&o_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(om=bo(om,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)T_(c.parent)&&UD(c);if(bS(be,dA,f.Declaration_name_conflicts_with_built_in_global_identifier_0),qi(ze).type=Nt,qi(Ft).type=tc("IArguments",0,!0),qi(ct).type=pt,qi(nt).type=wf(16,nt),qo=tc("Array",1,!0),Re=tc("Object",0,!0),Lt=tc("Function",0,!0),Hn=pe&&tc("CallableFunction",0,!0)||Lt,go=pe&&tc("NewableFunction",0,!0)||Lt,Zl=tc("String",0,!0),yc=tc("Number",0,!0),cl=tc("Boolean",0,!0),gl=tc("RegExp",0,!0),ec=Gd(G),Jc=Gd(tt),Jc===Ca&&(Jc=Ps(void 0,K,Ye,Ye,Ye)),Qo=cOe("ReadonlyArray",1)||qo,cf=Qo?A8(Qo,[G]):ec,Vl=cOe("ThisType",1),n)for(let a of n)for(let c of a)T_(c.parent)||UD(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(", ");Za.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))),Za.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 Rc(n,a){if((s&a)!==a&&B.importHelpers){let c=Vn(n);if(RI(c,B)&&!(n.flags&33554432)){let u=dgt(c,n);if(u!==ct){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of cgt(g)){if(o.has(T))continue;o.add(T);let M=jl(Uu(Nh(u),ml(T),111551));M?g&524288?gt(kS(M),W=>Jp(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(kS(M),W=>Jp(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(kS(M),W=>Jp(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 cgt(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 dgt(n,a){return l||(l=H_(n,Vv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ct),l}function Ag(n){var a;let c=fgt(n)||ugt(n);if(c!==void 0)return c;if(To(n)&&O0(n))return hd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=Ml(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(Ef(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&&!Kf(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=Vn(_e);return JS(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,ca(_e.kind));if(n.kind===181&&(_e.kind!==126||!di(n.parent)))return yn(_e,f._0_modifier_cannot_appear_on_an_index_signature,ca(_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,ca(_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,ca(87));let At=rm(n.parent)&&uE(n.parent)||n.parent;if(n.kind===168&&!(Fs(At)||di(At)||yh(At)||PR(At)||ZI(At)||Fk(At)||gh(At)))return yn(_e,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ca(_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(OI(_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(au(n))return yn(_e,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);V|=OI(_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||Vn(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(au(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(ou(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=rm(n.parent)&&(uE(n.parent)||Gr((a=lR(n.parent))==null?void 0:a.tags,GT))||n.parent;if(n.kind!==168||sn&&!(fu(sn)||di(sn)||Im(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?_gt(n,T):!1}function ugt(n){if(!n.modifiers)return!1;let a=pgt(n);return a&&hd(a,f.Modifiers_cannot_appear_here)}function ote(n,a){let c=Gr(n.modifiers,Sa);return c&&c.kind!==a?c:void 0}function pgt(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,Sa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return ote(n,134);case 263:case 185:return ote(n,128);case 231:case 264:case 265:return Gr(n.modifiers,Sa);case 243:return n.declarationList.flags&4?ote(n,135):Gr(n.modifiers,Sa);case 266:return ote(n,87);default:R.assertNever(n)}}}function fgt(n){let a=mgt(n);return a&&hd(a,f.Decorators_are_not_valid_here)}function mgt(n){return RH(n)?Gr(n.modifiers,Ed):void 0}function _gt(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 yx(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?qS(n[0],n.end-1,1,a):!1}function p4e(n,a){if(n&&n.length===0){let c=n.pos-1,u=Na(a.text,n.end)+1;return qS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function hgt(n){let a=!1,c=n.length;for(let u=0;u!!a.initializer||$o(a.name)||qh(a))}function ygt(n){if(ce>=3){let a=n.body&&Ho(n.body)&&TH(n.body.statements);if(a){let c=ggt(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 ate(n){let a=Vn(n);return Ag(n)||p4e(n.typeParameters,a)||hgt(n.parameters)||bgt(n,a)||Fs(n)&&ygt(n)}function vgt(n){let a=Vn(n);return Igt(n)||p4e(n.typeParameters,a)}function bgt(n,a){if(!zs(n))return!1;n.typeParameters&&!(Nn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Ec(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 Egt(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(yx(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 Bm(c,u=>!!(u.flags&8576))||hC(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):sp(c,AZ)?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 Sgt(n){return Ag(n)||Egt(n)}function Tgt(n,a){if(a&&a.length===0){let c=Vn(n),u=a.pos-1,_=Na(c.text,a.end)+1;return qS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function fG(n,a){return yx(a)||Tgt(n,a)}function Agt(n){return n.questionDotToken||n.flags&64?yn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function f4e(n){let a=n.types;if(yx(a))return!0;if(a&&a.length===0){let c=ca(n.token);return qS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return gt(a,m4e)}function m4e(n){return Gy(n)&&hP(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 Igt(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}f4e(u)}}function xgt(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);f4e(c)}return!1}function ste(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 _4e(n,a){return!!n&&yn(n,a)}function Rgt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=ms(u.expression);if(pu(T)||Ma(T))return yn(u.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=u.name;if(_.kind===167&&ste(_),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),xm(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,pc(T));else if(Bae(u)&&u.modifiers)for(let T of u.modifiers)Sa(T)&&yn(T,f._0_modifier_cannot_be_used_here,pc(T));let g;switch(u.kind){case 304:case 303:_4e(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,pc(_));else if(g&4&&M&4)yn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,pc(_));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 Dgt(n){Cgt(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=aP(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 Cgt(n){if(kr(n)&&$m(n.expression))return yn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if($m(n)&&C6(B)&&!mR(n.namespace.escapedText))return yn(n,f.React_components_cannot_include_JSX_namespace_names)}function Ngt(n){if(n.expression&&xP(n.expression))return yn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function h4e(n){if(gy(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Vn(n);if(BF(n)){if(!JS(a))switch(RI(a,B)||Za.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){Za.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:Za.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(!JS(a)){let c=Pr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Fp(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);Pa(c,_)}return Za.add(c),!0}return!1}if(jk(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 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 Pgt(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 qS(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(!Mgt(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(WN(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 Mgt(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 w0(n)}function Lgt(n){if(n.operator===158){if(n.type.kind!==155)return yn(n.type,f._0_expected,ca(155));let a=J2(n.parent);if(ar(a)&&eS(a)){let c=ET(a);c&&(a=PI(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(!SN(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)||!FN(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,ca(155))}function mL(n,a){if($ot(n))return yn(n,a)}function g4e(n){if(ate(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(fbe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(_4e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return qS(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 mL(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 mL(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 mL(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 mL(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 kgt(n){let a=n;for(;a;){if(Gx(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 wgt(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(yx(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 qS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function y4e(n){return Qp(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Ogt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Wgt(n){if((kr(n)||Ys(n)&&y4e(n.argumentExpression))&&Gl(n.expression))return!!(nc(n).flags&1056)}function v4e(n){let a=n.initializer;if(a){let c=!(y4e(a)||Wgt(a)||a.kind===112||a.kind===97||Ogt(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 Fgt(n){let a=XS(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)v4e(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||Vn(n).impliedNodeFormat===1)&&z!==4&&!(n.parent.parent.flags&33554432)&&$r(n.parent.parent,32)&&b4e(n.name),!!c&&E4e(n.name)}function b4e(n){if(n.kind===80){if(vr(n)==="__esModule")return Ggt("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 b4e(c.name)}return!1}function E4e(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)||E4e(c.name)}return!1}function _be(n){let a=n.declarations;if(yx(n.declarations))return!0;if(!n.declarations.length)return qS(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?FFe(n):!1}function S4e(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return S4e(n.parent)}return!0}function zgt(n){if(!S4e(n.parent)){let a=XS(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 Bgt(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),ca(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),ca(n.keywordToken),"meta");break}}function JS(n){return n.parseDiagnostics.length>0}function hd(n,a,...c){let u=Vn(n);if(!JS(u)){let _=mh(u,n.pos);return Za.add(Zc(u,_.start,_.length,a,...c)),!0}return!1}function qS(n,a,c,u,..._){let g=Vn(n);return JS(g)?!1:(Za.add(Zc(g,a,c,u,..._)),!0)}function Ggt(n,a,c,...u){let _=Vn(a);return JS(_)?!1:(n_(n,a,c,...u),!0)}function yn(n,a,...c){let u=Vn(n);return JS(u)?!1:(Za.add(Pr(n,a,...c)),!0)}function Vgt(n){let a=ar(n)?p6(n):void 0,c=n.typeParameters||a&&Yc(a);if(c){let u=c.pos===c.end?c.pos:Na(Vn(n).text,c.pos);return qS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function jgt(n){let a=n.type||Qf(n);if(a)return yn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Ugt(n){if($a(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(Da(n.name)&&n.name.text==="constructor")return yn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(mL(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(mL(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,hp),n.initializer)return yn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(yp(n.parent)){if(mL(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,hp),n.initializer)return yn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&v4e(n),jo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||na(n)||F0(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 Hgt(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 Kgt(n){for(let a of n.statements)if((Kd(a)||a.kind===243)&&Hgt(a))return!0;return!1}function Jgt(n){return!!(n.flags&33554432)&&Kgt(n)}function gy(n){if(n.flags&33554432){if(!Qr(n).hasReportedStatementInAmbientContext&&(Yo(n.parent)||Nv(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 hbe(n){let a=pc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||r_(!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 qgt(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 Xgt(n,a,...c){let u=Vn(n);if(!JS(u)){let _=mh(u,n.pos);return Za.add(Zc(u,ql(_),0,a,...c)),!0}return!1}function Ygt(){return Oc||(Oc=[],be.forEach((n,a)=>{AK.test(a)&&Oc.push(n)})),Oc}function $gt(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?T4e(n.namedBindings):!1}function T4e(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 Qgt(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&&(yx(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,Ym);return c?yn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Zgt(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 eyt(n,a){if(Lr(n)&128&&Bm(a,fv))return Gr(a.types,c=>!fv(c))}function tyt(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 nyt(n,a){let c;if(!(n.flags&406978556)){let u=0;for(let _ of a.types)if(!(_.flags&406978556)){let g=ha([X_(n),X_(_)]);if(g.flags&4194304)return _;if(m_(g)||g.flags&1048576){let T=g.flags&1048576?vv(g.types,m_):1;T>=u&&(c=_,u=T)}}}return c}function ryt(n){if(Dl(n,67108864)){let a=dc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function A4e(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=O8e(a,n);if(u)return u;let _=_s(n);if(_){let g=w8e(_,a);if(g){let T=iye(a,mn(g,M=>[()=>cr(M),M.escapedName]),c);if(T!==a)return T}}}}function gbe(n){let a=ST(n);return a||($a(n)?Cye(Rd(n.expression)):void 0)}function lte(n){return Jn===n||(Jn=n,pn=tE(n)),pn}function XS(n){return en===n||(en=n,Dn=Cy(n)),Dn}function mG(n){let a=XS(n)&7;return a===2||a===4||a===6}}function $Ge(e){return!Nv(e)}function NIe(e){return e.kind!==262&&e.kind!==174||!!e.body}function PIe(e){switch(e.parent.kind){case 276:case 281:return Fe(e);default:return kg(e)}}function MIe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Xd(e){return!!(e.flags&1)}function TK(e){return!!(e.flags&2)}function QGe(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 AK,P3,Kse,Jse,qse,Xse,M3,IK,L3,k3,LIe,w3,Yse,nf,xK,ZGe=bt({"src/compiler/checker.ts"(){"use strict";Zo(),Use(),iT(),AK=/^".+"$/,P3="(anonymous)",Kse=1,Jse=1,qse=1,Xse=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||{}),IK=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||{}),LIe=TW(NIe,$Ge),w3=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={})),xK=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||i9e)(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),kIe(e,t,r,i,o)}function kIe(e,t,r,i,o){let s,l=e.length;(i>0||o=2&&(o=e9e(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function e9e(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(nt){s();let Ft=vI(i,nt,e.getCurrentDirectory(),e.getCanonicalFileName,!0),_t=h.get(Ft);return _t===void 0&&(_t=p.length,p.push(Ft),d.push(nt),h.set(Ft,_t)),l(),_t}function fe(nt,Ft){if(s(),Ft!==null){for(m||(m=[]);m.lengthFt||me===Ft&&ge>_t)}function Ge(nt,Ft,_t,Je,ft,Zt){R.assert(nt>=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(nt,Ft)||Ce(_t,Je,ft))&&(ke(),ce=nt,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(nt,Ft,_t,Je,ft,Zt){R.assert(nt>=ce,"generatedLine cannot backtrack"),R.assert(Ft>=0,"generatedCharacter cannot be negative"),s();let en=[],Dn,Jn=NK(_t.mappings);for(let pn of Jn){if(Zt&&(pn.generatedLine>Zt.line||pn.generatedLine===Zt.line&&pn.generatedCharacter>Zt.character))break;if(ft&&(pn.generatedLine=1024&&Et()}function ke(){if(!(!J||!Ie())){if(s(),N0&&(A+=String.fromCharCode.apply(void 0,S),S.length=0)}function be(){return ke(),Et(),{version:3,file:t,sourceRoot:r,sources:p,names:y,mappings:A,sourcesContent:m}}function ze(nt){nt<0?nt=(-nt<<1)+1:nt=nt<<1;do{let Ft=nt&31;nt=nt>>5,nt>0&&(Ft=Ft|32),De(s9e(Ft))}while(nt>0)}}function DK(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=O3.exec(r);if(i)return i[1].trimEnd();if(!r.match(W3))break}}function a9e(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,a9e))&&(e.names===void 0||e.names===null||So(e.names)&&oo(e.names,Co))}function CK(e){try{let t=JSON.parse(e);if(Zse(t))return t}catch{}}function NK(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=l9e(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 OIe(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 s9e(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 l9e(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 WIe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function FIe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function c9e(e,t){return R.assert(e.sourceIndex===t.sourceIndex),tl(e.sourcePosition,t.sourcePosition)}function d9e(e,t){return tl(e.generatedPosition,t.generatedPosition)}function u9e(e){return e.sourcePosition}function p9e(e){return e.generatedPosition}function tle(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?KL(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?KL(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=NK(t.mappings),K=Oo(j,E);j.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${j.error}`),h=Ye):h=K}return h}function A(j){if(y===void 0){let K=[];for(let Y of S()){if(!WIe(Y))continue;let B=K[Y.sourceIndex];B||(K[Y.sourceIndex]=B=[]),B.push(Y)}y=K.map(Y=>JC(Y,c9e,FIe))}return y[j]}function N(){if(m===void 0){let j=[];for(let K of S())j.push(K);m=JC(j,d9e,FIe)}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=pI(Y,j.pos,u9e,tl);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=pI(K,j.pos,p9e,tl);Y<0&&(Y=~Y);let B=K[Y];return B===void 0||!WIe(B)?j:{fileName:d[B.sourceIndex],pos:B.sourcePosition}}}var PK,O3,W3,F3,f9e=bt({"src/compiler/sourcemap.ts"(){"use strict";Zo(),iT(),PK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,O3=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,W3=/^\s*(\/\/[@#] .*)?$/,F3={getSourcePosition:el,getGeneratedPosition:el}}});function Od(e){return e=Nl(e),e?is(e):0}function m9e(e){return!e||!zg(e)?!1:gt(e.elements,zIe)}function zIe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Rm(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!!aR(e)}function z3(e){if(aR(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)zIe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&CI(e)}function MK(e){return!z3(e)&&(CI(e)||!!e.importClause&&zg(e.importClause.namedBindings)&&m9e(e.importClause.namedBindings))}function LK(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new WK,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&&MK(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),Rf(D.exportClause))N(D);else{let w=D.exportClause.name;d.get(vr(w))||(FP(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=BIe(w,d,p,l);break;case 262:if($r(D,32))if($r(D,2048))h||(FP(l,Od(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;d.get(vr(w))||(FP(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||(FP(l,Od(D),e.factory.getDeclarationName(D)),h=!0);else{let w=D.name;w&&!d.get(vr(w))&&(FP(l,Od(D),w),d.set(vr(w),!0),p=Tn(p,w))}break}let A=AH(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,Rf).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&&FP(l,Od(K),w.name),d.set(vr(w.name),!0),p=Tn(p,w.name)}}}function BIe(e,t,r,i){if($o(e.name))for(let o of e.name.elements)jc(o)||(r=BIe(o,t,r,i));else if(!ol(e.name)){let o=vr(e.name);t.get(o)||(t.set(o,!0),r=Tn(r,e.name),Bg(e.name)&&FP(i,Od(e),e.name))}return r}function FP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function iS(e){return ss(e)||e.kind===9||Wu(e.kind)||Fe(e)}function w_(e){return!Fe(e)&&iS(e)}function zP(e){return e>=65&&e<=79}function BP(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 GIe(e,t,r){for(let i=t;ih9e(i,t,r))}function _9e(e){return g9e(e)||Il(e)}function V3(e){return Vr(e.members,_9e)}function h9e(e,t,r){return jo(e)&&(!!e.initializer||!t)&&fc(e)===r}function g9e(e){return jo(e)&&fc(e)}function Rw(e){return e.kind===172&&e.initializer!==void 0}function rle(e){return!na(e)&&(AI(e)||ku(e))&&Ki(e.name)}function ile(e){let t;if(e){let r=e.parameters,i=r.length>0&&O0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lOK(r.privateEnv,t))}function lle(e){return!e.initializer&&Fe(e.name)}function Dw(e){return oo(e,lle)}var g1,WK,b9e=bt({"src/compiler/transformers/utilities.ts"(){"use strict";Zo(),g1=class MC{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(MC.toKey(t))}get(t){return this._map.get(MC.toKey(t))}set(t,r){return this._map.set(MC.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(MC.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(lT(t)||ol(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=Zk(t),o=Jh(i)&&i!==t?MC.toKey(i):`(generated@${is(i)})`;return EE(!1,r.prefix,o,r.suffix,MC.toKey)}else{let i=`(auto@${r.id})`;return EE(!1,r.prefix,i,r.suffix,MC.toKey)}}return Ki(t)?vr(t).slice(1):vr(t)}},WK=class extends g1{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&&(_I(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;Xie(e.left)||$j(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=>D9e(r.factory,E),createObjectBindingOrAssignmentPattern:E=>N9e(r.factory,E),createArrayBindingOrAssignmentElement:M9e,visitor:t};if(d&&(d=Qe(d,t,ht),R.assert(d),Fe(d)&&cle(e,d.escapedText)||dle(e)?d=y1(h,d,!1,l):o?d=y1(h,d,!0,l):Xs(e)&&(l=d)),GP(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):st(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 c2(r)?E9e(r,t):Fe(r)?r.escapedText===t:!1}function E9e(e,t){let r=jR(e);for(let i of r)if(cle(i,t))return!0;return!1}function dle(e){let t=t3(e);if(t&&$a(t)&&!T0(t.expression))return!0;let r=$v(e);return!!r&&c2(r)&&S9e(r)}function S9e(e){return!!gn(jR(e),dle)}function oS(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=>R9e(r.factory,S),createObjectBindingOrAssignmentPattern:S=>C9e(r.factory,S),createArrayBindingOrAssignmentElement:S=>P9e(r.factory,S),visitor:t};if(Oi(e)){let S=$k(e);S&&(Fe(S)&&cle(e,S.escapedText)||dle(e))&&(S=y1(m,R.checkDefined(Qe(S,m.visitor,ht)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(GP(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,st(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 GP(e,t,r,i,o){let s=$v(t);if(!o){let l=Qe($k(t),e.visitor,ht);l?r?(r=I9e(e,r,l,i),!w_(l)&&c2(s)&&(r=y1(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}wV(s)?T9e(e,t,s,r,i):OV(s)?A9e(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function T9e(e,t,r,i,o){let s=jR(r),l=s.length;if(l!==1){let h=!l2(t)||l!==0;i=y1(e,i,h,o)}let d,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!($v(m).transformFlags&98304)&&!$a(y))d=Tn(d,Qe(m,e.visitor,gre));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=x9e(e,i,y);$a(y)&&(p=Tn(p,E.argumentExpression)),GP(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function A9e(e,t,r,i,o){let s=jR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=y1(e,st(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=!l2(t)||l!==0;i=y1(e,i,h,o)}let d,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!jIe(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);GP(e,m,y,m)}}else{let y=e.context.factory.createElementAccessExpression(i,h);GP(e,m,y,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)GP(e,m,h,m)}function jIe(e){let t=$v(e);if(!t||jc(t))return!0;let r=t3(e);if(r&&!I_(r))return!1;let i=$k(e);return i&&!w_(i)?!1:c2(t)?oo(jR(t),jIe):Fe(t)}function I9e(e,t,r,i){return t=y1(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function x9e(e,t,r){let{factory:i}=e.context;if($a(r)){let o=y1(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(vr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function y1(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(st(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function R9e(e,t){return R.assertEachNode(t,pF),e.createArrayBindingPattern(t)}function D9e(e,t){return R.assertEachNode(t,u2),e.createArrayLiteralExpression(mn(t,e.converters.convertToArrayAssignmentElement))}function C9e(e,t){return R.assertEachNode(t,Xa),e.createObjectBindingPattern(t)}function N9e(e,t){return R.assertEachNode(t,d2),e.createObjectLiteralExpression(mn(t,e.converters.convertToObjectAssignmentElement))}function P9e(e,t){return e.createBindingElement(void 0,void 0,t)}function M9e(e){return e}var FK,L9e=bt({"src/compiler/transformers/destructuring.ts"(){"use strict";Zo(),FK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(FK||{})}});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 wd(l).classThis=t,l}function VP(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return td(r)&&Mc(r.expression,!0)&&Fe(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function zK(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&>(e.members,VP)}function ple(e,t,r,i){if(zK(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]);st(s,t.members);let l=Tc(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 k9e=bt({"src/compiler/transformers/classThis.ts"(){"use strict";Zo()}});function jP(e,t,r){let i=Nl($l(r));return(Tc(i)||Sc(i))&&!i.name&&$r(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function UIe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(I_(t)||Ki(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(I_(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 wd(d).assignedName=t,d}function v1(e){var t;if(!Il(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return td(r)&&fP(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,v1)}function BK(e){return!!e.name||U3(e)}function H3(e,t,r,i){if(U3(t))return t;let{factory:o}=e,s=fle(e,r,i);t.name&&Ra(s.body.statements[0],t.name);let l=Jl(t.members,VP)+1,d=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...d,s,...p]);return st(h,t.members),t=Tc(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 eD(e,t,r,i){if(i&&Da(r)&&fj(r))return t;let{factory:o}=e,s=$l(t),l=ed(s)?ta(H3(e,s,r),ed):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function w9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=UIe(e,t.name,i),d=eD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function O9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.objectAssignmentInitializer),l=eD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function W9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.initializer),l=eD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function F9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.initializer),l=eD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function z9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.initializer),l=eD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function B9e(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=UIe(e,t.name,i),d=eD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,d)}function G9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.left,t.right),l=eD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function V9e(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=eD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function vp(e,t,r,i){switch(t.kind){case 303:return w9e(e,t,r,i);case 304:return O9e(e,t,r,i);case 260:return W9e(e,t,r,i);case 169:return F9e(e,t,r,i);case 208:return z9e(e,t,r,i);case 172:return B9e(e,t,r,i);case 226:return G9e(e,t,r,i);case 277:return V9e(e,t,r,i)}}var j9e=bt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";Zo()}});function GK(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&&!Fj(m))return Sn(t,r,e);let{factory:y}=e;if(XI(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(ac(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=I0(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,` `),st(e.createStringLiteral(i),t)}var VK,U9e=bt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Zo(),VK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(VK||{})}});function hle(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?yle(e):void 0,S=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=sc,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,Me=>Me.kind===315?VU(Me,"js"):Me))}function me($){if($.isDeclarationFile)return $;N=$;let Me=ge($,nt);return Fg(Me,e.readEmitHelpers()),N=void 0,Me}function ge($,Me){let yt=j,cn=K,br=Y;q($);let mr=Me($);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 Me=Ro($);if(Me===$||Ll($))return!1;if(!Me||Me.kind!==$.kind)return!0;switch($.kind){case 272:if(R.assertNode(Me,Lc),$.importClause!==Me.importClause||$.attributes!==Me.attributes)return!0;break;case 271:if(R.assertNode(Me,nd),$.name!==Me.name||$.isTypeOnly!==Me.isTypeOnly||$.moduleReference!==Me.moduleReference&&(Yu($.moduleReference)||Yu(Me.moduleReference)))return!0;break;case 278:if(R.assertNode(Me,Yl),$.exportClause!==Me.exportClause||$.attributes!==Me.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 nr($);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 Me=>ge(Me,yt=>ve(yt,$))}function ve($,Me){switch($.kind){case 176:return In($);case 172:return Wt($,Me);case 177:return Ba($,Me);case 178:return vn($,Me);case 174:return Ao($,Me);case 175:return Sn($,J,e);case 240:return $;case 181:return;default:return R.failBadSyntaxKind($)}}function Ie($){return Me=>ge(Me,yt=>De(yt,$))}function De($,Me){switch($.kind){case 303:case 304:case 305:return J($);case 177:return Ba($,Me);case 178:return vn($,Me);case 174:return Ao($,Me);default:return R.failBadSyntaxKind($)}}function ke($){return Ed($)?void 0:J($)}function Et($){return Sa($)?void 0:J($)}function be($){if(!Ed($)&&!(OI($.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 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 dt($);case 169:return ct($);case 217:return lt($);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 tt($);case 266:return U($);case 243:return Rt($);case 260:return we($);case 267:return It($);case 271:return Io($);case 285:return hn($);case 286:return dn($);default:return Sn($,J,e)}}function nt($){let Me=du(p,"alwaysStrict")&&!(ac($)&&m>=5)&&!qf($);return t.updateSourceFile($,RK($.statements,pe,e,0,Me))}function Ft($){return t.updateObjectLiteralExpression($,zn($.properties,Ie($),Pg))}function _t($){let Me=0;gt(kK($,!0,!0))&&(Me|=1);let yt=A_($);return yt&&$l(yt.expression).kind!==106&&(Me|=64),My(y,$)&&(Me|=2),AN(y,$)&&(Me|=4),xn($)?Me|=8:Po($)?Me|=32:Ql($)&&(Me|=16),Me}function Je($){return!!($.transformFlags&8192)}function ft($){return Ef($)||gt($.typeParameters)||gt($.heritageClauses,Je)||gt($.members,Je)}function Zt($){let Me=_t($),yt=h<=1&&!!(Me&7);if(!ft($)&&!My(y,$)&&!xn($))return t.updateClassDeclaration($,zn($.modifiers,be,Sa),$.name,void 0,zn($.heritageClauses,J,ef),zn($.members,Ge($),Qc));yt&&e.startLexicalEnvironment();let cn=yt||Me&8,br=cn?zn($.modifiers,Et,al):zn($.modifiers,J,al);Me&2&&(br=Jn(br,$));let Fr=cn&&!$.name||Me&4||Me&1?$.name??t.getGeneratedNameForNode($):$.name,Di=t.updateClassDeclaration($,br,Fr,void 0,zn($.heritageClauses,J,ef),Dn($)),Cr=za($);Me&1&&(Cr|=64),dr(Di,Cr);let Jo;if(yt){let El=[Di],Hc=Zj(Na(N.text,$.members.end),20),Vs=t.getInternalName($),gc=t.createPartiallyEmittedExpression(Vs);AR(gc,Hc.end),dr(gc,3072);let bs=t.createReturnStatement(gc);eP(bs,Hc.pos),dr(bs,3840),El.push(bs),Xh(El,e.endLexicalEnvironment());let Kc=t.createImmediatelyInvokedArrowFunction(El);Nk(Kc,1);let np=t.createVariableDeclaration(t.getLocalName($,!1,!1),void 0,void 0,Kc);Rr(np,$);let Oc=t.createVariableStatement(void 0,t.createVariableDeclarationList([np],1));Rr(Oc,$),oc(Oc,$),Ra(Oc,wg($)),qd(Oc),Jo=Oc}else Jo=Di;if(cn){if(Me&8)return[Jo,ls($)];if(Me&32)return[Jo,t.createExportDefault(t.getLocalName($,!1,!0))];if(Me&16)return[Jo,t.createExternalModuleExport(t.getDeclarationName($,!1,!0))]}return Jo}function en($){let Me=zn($.modifiers,Et,al);return My(y,$)&&(Me=Jn(Me,$)),t.updateClassExpression($,Me,$.name,void 0,zn($.heritageClauses,J,ef),Dn($))}function Dn($){let Me=zn($.members,Ge($),Qc),yt,cn=tg($),br=cn&&Vr(cn.parameters,mr=>up(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,Me),st(t.createNodeArray(yt),$.members)):Me}function Jn($,Me){let yt=Yt(Me,Me);if(gt(yt)){let cn=[];Ur(cn,xW($,Qk)),Ur(cn,Vr($,Ed)),Ur(cn,yt),Ur(cn,Vr(_ne($,Qk),Sa)),$=st(t.createNodeArray(cn),$)}return $}function pn($,Me,yt){if(di(yt)&&pj(y,Me,yt)){let cn=Yt(Me,yt);if(gt(cn)){let br=[];Ur(br,Vr($,Ed)),Ur(br,cn),Ur(br,Vr($,Sa)),$=st(t.createNodeArray(br),$)}}return $}function Yt($,Me){if(y)return HIe?hi($,Me):qt($,Me)}function qt($,Me){if(E){let yt;if(uo($)){let cn=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:j,currentNameScope:Me},$));yt=Tn(yt,t.createDecorator(cn))}if(Eo($)){let cn=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:j,currentNameScope:Me},$,Me));yt=Tn(yt,t.createDecorator(cn))}if(Li($)){let cn=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:j,currentNameScope:Me},$));yt=Tn(yt,t.createDecorator(cn))}return yt}}function hi($,Me){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:Me},$)));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:Me},$,Me)));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:Me},$)));yt=Tn(yt,cn)}if(yt){let cn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(yt,!0));return[t.createDecorator(cn)]}}}function uo($){let Me=$.kind;return Me===174||Me===177||Me===178||Me===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($,Me){let yt=$.name;return Ki(yt)?t.createIdentifier(""):$a(yt)?Me&&!w_(yt.expression)?t.getGeneratedNameForNode(yt):yt.expression:Fe(yt)?t.createStringLiteral(vr(yt)):t.cloneNode(yt)}function jr($){let Me=$.name;if($a(Me)&&(!fc($)&&Y||Ef($)&&y)){let yt=Qe(Me.expression,J,ht);R.assert(yt);let cn=vm(yt);if(!w_(cn)){let br=t.getGeneratedNameForNode(Me);return l(br),t.updateComputedPropertyName(Me,t.createAssignment(br,yt))}}return R.checkDefined(Qe(Me,J,ic))}function Sr($){if($.token!==119)return Sn($,J,e)}function on($){return t.updateExpressionWithTypeArguments($,R.checkDefined(Qe($.expression,J,$u)),void 0)}function $e($){return!zl($.body)}function Wt($,Me){let yt=$.flags&33554432||$r($,64);if(yt&&!(y&&Ef($)))return;let cn=di(Me)?yt?zn($.modifiers,Et,al):zn($.modifiers,J,al):zn($.modifiers,ke,al);return cn=pn(cn,$,Me),yt?t.updatePropertyDeclaration($,bo(cn,t.createModifiersFromModifierFlags(128)),R.checkDefined(Qe($.name,J,ic)),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($,Me,yt,cn,br,mr){let Fr=cn[br],Di=Me[Fr];if(Ur($,zn(Me,J,Hi,yt,Fr-yt)),WT(Di)){let Cr=[];si(Cr,Di.tryBlock.statements,0,cn,br+1,mr);let Jo=t.createNodeArray(Cr);st(Jo,Di.tryBlock.statements),$.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,J,Q0),Qe(Di.finallyBlock,J,Ho)))}else Ur($,zn(Me,J,Hi,Fr,1)),Ur($,mr);Ur($,zn(Me,J,Hi,Fr+1))}function yi($,Me){let yt=Me&&Vr(Me.parameters,Cr=>up(Cr,Me));if(!gt(yt))return rf($,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(st(t.createNodeArray(cn),$.statements),!0);return st(Di,$),Rr(Di,$),Di}function $i($){let Me=$.name;if(!Fe(Me))return;let yt=ja(st(t.cloneNode(Me),Me),Me.parent);dr(yt,3168);let cn=ja(st(t.cloneNode(Me),Me),Me.parent);return dr(cn,3072),qd(Ck(st(Rr(t.createExpressionStatement(t.createAssignment(st(t.createPropertyAccessExpression(t.createThis(),yt),$.name),cn)),$),fE($,-1))))}function Ao($,Me){if(!($.transformFlags&1))return $;if(!$e($))return;let yt=di(Me)?zn($.modifiers,J,al):zn($.modifiers,ke,al);return yt=pn(yt,$,Me),t.updateMethodDeclaration($,yt,$.asteriskToken,jr($),void 0,void 0,xl($.parameters,J,e),void 0,rf($.body,J,e))}function da($){return!(zl($.body)&&$r($,64))}function Ba($,Me){if(!($.transformFlags&1))return $;if(!da($))return;let yt=di(Me)?zn($.modifiers,J,al):zn($.modifiers,ke,al);return yt=pn(yt,$,Me),t.updateGetAccessorDeclaration($,yt,jr($),xl($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([]))}function vn($,Me){if(!($.transformFlags&1))return $;if(!da($))return;let yt=di(Me)?zn($.modifiers,J,al):zn($.modifiers,ke,al);return yt=pn(yt,$,Me),t.updateSetAccessorDeclaration($,yt,jr($),xl($.parameters,J,e),rf($.body,J,e)||t.createBlock([]))}function kn($){if(!$e($))return t.createNotEmittedStatement($);let Me=t.updateFunctionDeclaration($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,xl($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([]));if(xn($)){let yt=[Me];return Bs(yt,$),yt}return Me}function Be($){return $e($)?t.updateFunctionExpression($,zn($.modifiers,be,Sa),$.asteriskToken,$.name,void 0,xl($.parameters,J,e),void 0,rf($.body,J,e)||t.createBlock([])):t.createOmittedExpression()}function dt($){return t.updateArrowFunction($,zn($.modifiers,be,Sa),void 0,xl($.parameters,J,e),void 0,$.equalsGreaterThanToken,rf($.body,J,e))}function ct($){if(O0($))return;let Me=t.updateParameterDeclaration($,zn($.modifiers,yt=>Ed(yt)?J(yt):void 0,al),$.dotDotDotToken,R.checkDefined(Qe($.name,J,cT)),void 0,void 0,Qe($.initializer,J,ht));return Me!==$&&(oc(Me,$),st(Me,C_($)),Ra(Me,C_($)),dr(Me.name,64)),Me}function Rt($){if(xn($)){let Me=UN($.declarationList);return Me.length===0?void 0:st(t.createExpressionStatement(t.inlineExpressions(mn(Me,se))),$)}else return Sn($,J,e)}function se($){let Me=$.name;return $o(Me)?KT($,J,e,0,!1,dd):st(t.createAssignment(mo(Me),R.checkDefined(Qe($.initializer,J,ht))),$)}function we($){let Me=t.updateVariableDeclaration($,R.checkDefined(Qe($.name,J,cT)),void 0,void 0,Qe($.initializer,J,ht));return $.type&&eae(Me.name,$.type),Me}function lt($){let Me=$l($.expression,-7);if(uT(Me)){let yt=Qe($.expression,J,ht);return R.assert(yt),t.createPartiallyEmittedExpression(yt,$)}return Sn($,J,e)}function G($){let Me=Qe($.expression,J,ht);return R.assert(Me),t.createPartiallyEmittedExpression(Me,$)}function tt($){let Me=Qe($.expression,J,$u);return R.assert(Me),t.createPartiallyEmittedExpression(Me,$)}function Tt($){let Me=Qe($.expression,J,ht);return R.assert(Me),t.createPartiallyEmittedExpression(Me,$)}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,II)))}function hn($){return t.updateJsxSelfClosingElement($,R.checkDefined(Qe($.tagName,J,gN)),void 0,R.checkDefined(Qe($.attributes,J,$0)))}function dn($){return t.updateJsxOpeningElement($,R.checkDefined(Qe($.tagName,J,gN)),void 0,R.checkDefined(Qe($.attributes,J,$0)))}function un($){return!R0($)||j0(p)}function U($){if(!un($))return t.createNotEmittedStatement($);let Me=[],yt=4,cn=Ne(Me,$);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,Le($,mr)),void 0,[Di]));return Rr(Cr,$),cn&&(gE(Cr,void 0),HI(Cr,void 0)),st(Cr,$),N_(Cr,yt),Me.push(Cr),Me}function Le($,Me){let yt=w;w=Me;let cn=[];i();let br=mn($.members,Nt);return Xh(cn,s()),Ur(cn,br),w=yt,t.createBlock(st(t.createNodeArray(cn),$.members),!0)}function Nt($){let Me=Zn($,!1),yt=k($),cn=t.createAssignment(t.createElementAccessExpression(w,Me),yt),br=yt.kind===11?cn:t.createAssignment(t.createElementAccessExpression(w,cn),Me);return st(t.createExpressionStatement(st(br,$)),$)}function k($){let Me=d.getConstantValue($);return Me!==void 0?typeof Me=="string"?t.createStringLiteral(Me):Me<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Me)):t.createNumericLiteral(Me):(Ts(),$.initializer?R.checkDefined(Qe($.initializer,J,ht)):t.createVoidZero())}function ie($){let Me=Ro($,Xl);return Me?SK(Me,j0(p)):!0}function H($){K||(K=new Map);let Me=We($);K.has(Me)||K.set(Me,$)}function ue($){if(K){let Me=We($);return K.get(Me)===$}return!0}function We($){return R.assertNode($.name,Fe),$.name.escapedText}function Ne($,Me){let yt=t.createVariableDeclaration(t.getLocalName(Me,!1,!0)),cn=j.kind===312?0:1,br=t.createVariableStatement(zn(Me.modifiers,be,Sa),t.createVariableDeclarationList([yt],cn));return Rr(yt,Me),gE(yt,void 0),HI(yt,void 0),Rr(br,Me),H(Me),ue(Me)?(Me.kind===266?Ra(br.declarationList,Me):Ra(br,Me),oc(br,Me),N_(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."),Ca();let Me=[],yt=4,cn=Ne(Me,$);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&&(gE(Cr,void 0),HI(Cr,void 0)),st(Cr,$),N_(Cr,yt),Me.push(Cr),Me}function Dt($,Me){let yt=w,cn=D,br=K;w=Me,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 El=Kt($).body;Fr=fE(El.statements,-1)}Xh(mr,s()),w=yt,D=cn,K=br;let Cr=t.createBlock(st(t.createNodeArray(mr),Fr),!0);return st(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 Me=Qe($.importClause,wn,vh);return Me||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration($,void 0,Me,$.moduleSpecifier,$.attributes):void 0}function wn($){R.assert(!$.isTypeOnly);let Me=de($)?$.name:void 0,yt=Qe($.namedBindings,Bn,BV);return Me||yt?t.updateImportClause($,!1,Me,yt):void 0}function Bn($){if($.kind===274)return de($)?$:void 0;{let Me=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=zn($.elements,gi,Zu);return Me||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 nr($){if($.isTypeOnly)return;if(!$.exportClause||bh($.exportClause))return $;let Me=p.verbatimModuleSyntax||!!$.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),yt=Qe($.exportClause,cn=>Pi(cn,Me),DV);return yt?t.updateExportDeclaration($,void 0,$.isTypeOnly,yt,$.moduleSpecifier,$.attributes):void 0}function Wr($,Me){let yt=zn($.elements,Ri,Jd);return Me||gt(yt)?t.updateNamedExports($,yt):void 0}function ho($){return t.updateNamespaceExport($,R.checkDefined(Qe($.name,J,Fe)))}function Pi($,Me){return bh($)?ho($):Wr($,Me)}function Ri($){return!$.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration($))?$:void 0}function Hr($){return de($)||!ac(N)&&d.isTopLevelValueImportEqualsWithEntityName($)}function Io($){if($.isTypeOnly)return;if(lE($)){let yt=de($);return!yt&&p.importsNotUsedAsValues===1?Rr(st(t.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):yt?Sn($,J,e):void 0}if(!Hr($))return;let Me=Jk(t,$.moduleReference);return dr(Me,7168),Ql($)||!xn($)?Rr(st(t.createVariableStatement(zn($.modifiers,be,Sa),t.createVariableDeclarationList([Rr(t.createVariableDeclaration($.name,void 0,void 0,Me),$)])),$),$):Rr(hl($.name,Me,$),$)}function xn($){return D!==void 0&&$r($,32)}function Os($){return D===void 0&&$r($,32)}function Ql($){return Os($)&&!$r($,2048)}function Po($){return Os($)&&$r($,2048)}function ls($){let Me=t.createAssignment(t.getExternalModuleOrNamespaceExportName(w,$,!1,!0),t.getLocalName($));Ra(Me,Sf($.name?$.name.pos:$.pos,$.end));let yt=t.createExpressionStatement(Me);return Ra(yt,Sf(-1,$.end)),yt}function Bs($,Me){$.push(ls(Me))}function hl($,Me,yt){return st(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(w,$,!1,!0),Me)),yt)}function dd($,Me,yt){return st(t.createAssignment(mo($),Me),yt)}function mo($){return t.getNamespaceMemberName(w,$,!1,!0)}function sa($){let Me=t.getGeneratedNameForNode($);return Ra(Me,$.name),Me}function ud($){return t.getGeneratedNameForNode($)}function Ts(){B&8||(B|=8,e.enableSubstitution(80))}function Ca(){B&2||(B|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function fl($){return Nl($).kind===267}function Pf($){return Nl($).kind===266}function sc($,Me,yt){let cn=ce,br=N;Yi(Me)&&(N=Me),B&2&&fl(Me)&&(ce|=2),B&8&&Pf(Me)&&(ce|=8),S($,Me,yt),ce=cn,N=br}function Rl($,Me){return Me=A($,Me),$===1?Mo(Me):ep(Me)?ll(Me):Me}function ll($){if(B&2){let Me=$.name,yt=Gs(Me);if(yt){if($.objectAssignmentInitializer){let cn=t.createAssignment(yt,$.objectAssignmentInitializer);return st(t.createPropertyAssignment(Me,cn),$)}return st(t.createPropertyAssignment(Me,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&&!ol($)&&!Bg($)){let Me=d.getReferencedExportContainer($,!1);if(Me&&Me.kind!==312&&(ce&2&&Me.kind===267||ce&8&&Me.kind===266))return st(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Me),$),$)}}function rd($){return Ns($)}function pd($){return Ns($)}function Sp($){return $.replace(/\*\//g,"*_/")}function Ns($){let Me=Ic($);if(Me!==void 0){Qoe($,Me);let yt=typeof Me=="string"?t.createStringLiteral(Me):Me<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Me)):t.createNumericLiteral(Me);if(!p.removeComments){let cn=Nl($,Ls);i4(yt,3,` ${Sp(pc(cn))} `)}return yt}return $}function Ic($){if(!tm(p))return kr($)||Ys($)?d.getConstantValue($):void 0}function de($){return p.verbatimModuleSyntax||ar($)||(p.preserveValueImports?d.isValueAliasDeclaration($):d.isReferencedAliasDeclaration($))}}var HIe,H9e=bt({"src/compiler/transformers/ts.ts"(){"use strict";Zo(),HIe=!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=rs(h),y=dP(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 Rm(e,Ce);function Ce(de){if(de.isDeclarationFile||(J=void 0,z=!!(bm(de)&32),!Y&&!z))return de;let $=Sn(de,ve,e);return Fg($,e.readEmitHelpers()),$}function Ge(de){switch(de.kind){case 129:return Wt()?void 0:de;default:return ri(de,Sa)}}function ve(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return 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 Jn(de);case 81:return Ft(de);case 211:return da(de);case 212:return Ba(de);case 224:case 225:return vn(de,!1);case 226:return lt(de,!1);case 217:return tt(de,!1);case 213:return ct(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 lt(de,!0);case 361:return G(de,!0);case 217:return tt(de,!0);default:return ve(de)}}function ke(de){switch(de.kind){case 298:return Sn(de,ke,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 al(de)?Ge(de):ve(de)}}function ze(de){switch(de.kind){case 167:return Yt(de);default:return ve(de)}}function nt(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 Ft(de){return!D||Hi(de.parent)?de:Rr(t.createIdentifier(""),de)}function _t(de){let $=sa(de.left);if($){let Me=Qe(de.right,ve,ht);return Rr(r().createClassPrivateFieldInHelper($.brandCheckIdentifier,Me),de)}return Sn(de,ve,e)}function Je(de){return fp(de,we)&&(de=vp(e,de)),Sn(de,ve,e)}function ft(de){let $=q;q=[];let Me=Sn(de,ve,e),yt=gt(q)?[Me,...q]:Me;return q=$,yt}function Zt(de){return fp(de,we)&&(de=vp(e,de)),Sn(de,ve,e)}function en(de){return fp(de,we)&&(de=vp(e,de)),Sn(de,ve,e)}function Dn(de){return fp(de,we)&&(de=vp(e,de)),Sn(de,ve,e)}function Jn(de){return fp(de,we)&&(de=vp(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||fc(de)&&bm(de)&32)}function uo(de){if(R.assert(!Ef(de)),!au(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 Me=Eo(de);Me&&Io().push(t.createAssignment(Me,t.createFunctionExpression(Vr(de.modifiers,yt=>Sa(yt)&&!QI(yt)&&!fae(yt)),de.asteriskToken,Me,void 0,xl(de.parameters,ve,e),void 0,rf(de.body,ve,e))))}function Li(de,$,Me){if(de!==fe){let yt=fe;fe=de;let cn=$(Me);return fe=yt,cn}return $(Me)}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(Mv(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 $=P_(de),Me=zy(de),yt=de.name,cn=yt,br=yt;if($a(yt)&&!w_(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);Ra(Vs,yt.expression);let gc=Qe(yt.expression,ve,ht),bs=t.createAssignment(Vs,gc);Ra(bs,yt.expression),cn=t.updateComputedPropertyName(yt,bs),br=t.updateComputedPropertyName(yt,Vs)}}let mr=zn(de.modifiers,Ge,Sa),Fr=CH(t,de,mr,de.initializer);Rr(Fr,de),dr(Fr,3072),Ra(Fr,Me);let Di=na(de)?Zn():t.createThis(),Cr=qae(t,de,mr,cn,Di);Rr(Cr,de),oc(Cr,$),Ra(Cr,Me);let Jo=t.createModifiersFromModifierFlags(D_(mr)),El=Xae(t,de,Jo,br,Di);return Rr(El,de),dr(El,3072),Ra(El,Me),Iw([Fr,Cr,El],nt,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 Me=Dt(de,t.createThis());if(Me)return t.createClassStaticBlockDeclaration(t.createBlock([Me],!0))}return}return S&&!na(de)&&J?.data&&J.data.facts&16?t.updatePropertyDeclaration(de,zn(de.modifiers,ve,al),de.name,void 0,void 0,void 0):(fp(de,we)&&(de=vp(e,de)),t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),Qe(de.name,ze,ic),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(...Yae($)),na(de)&&!D){let Me=Dt(de,t.createThis());if(Me){let yt=t.createClassStaticBlockDeclaration(t.createBlock([Me]));return Rr(yt,de),oc(yt,de),oc(Me,{pos:-1,end:-1}),gE(Me,void 0),HI(Me,void 0),yt}}return}return t.updatePropertyDeclaration(de,zn(de.modifiers,Ge,Sa),Qe(de.name,ze,ic),void 0,void 0,Qe(de.initializer,ve,ht))}function $e(de){return R.assert(!Ef(de),"Decorators should already have been transformed and elided."),au(de)?Sr(de):on(de)}function Wt(){return w===-1||w===3&&!!J?.data&&!!(J.data.facts&16)}function In(de){return ku(de)&&(Wt()||fc(de)&&bm(de)&32)?jr(de):$e(de)}function si(){return!!fe&&fc(fe)&&Nv(fe)&&ku(Nl(fe))}function yi(de){if(si()){let $=$l(de);$.kind===110&&pe.add($)}}function $i(de,$){return $=Qe($,ve,ht),yi($),Ao(de,$)}function Ao(de,$){switch(oc($,fE($,-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 da(de){if(Ki(de.name)){let $=sa(de.name);if($)return st(Rr($i($,de.expression),de),de)}if(K&&fe&&Ou(de)&&Fe(de.name)&&UP(fe)&&J?.data){let{classConstructor:$,superClassReference:Me,facts:yt}=J.data;if(yt&1)return nr(de);if($&&Me){let cn=t.createReflectGetCall(Me,t.createStringLiteralFromNode(de.name),$);return Rr(cn,de.expression),st(cn,de.expression),cn}}return Sn(de,ve,e)}function Ba(de){if(K&&fe&&Ou(de)&&UP(fe)&&J?.data){let{classConstructor:$,superClassReference:Me,facts:yt}=J.data;if(yt&1)return nr(de);if($&&Me){let cn=t.createReflectGetCall(Me,Qe(de.argumentExpression,ve,ht),$);return Rr(cn,de.expression),st(cn,de.expression),cn}}return Sn(de,ve,e)}function vn(de,$){if(de.operator===46||de.operator===47){let Me=ms(de.operand);if(Bx(Me)){let yt;if(yt=sa(Me.name)){let cn=Qe(Me.expression,ve,ht);yi(cn);let{readExpression:br,initializeExpression:mr}=dt(cn),Fr=$i(yt,br),Di=Xv(de)||$?void 0:t.createTempVariable(i);return Fr=Y4(t,de,Fr,i,Di),Fr=Tt(yt,mr||br,Fr,64),Rr(Fr,de),st(Fr,de),Di&&(Fr=t.createComma(Fr,Di),st(Fr,de)),Fr}}else if(K&&fe&&Ou(Me)&&UP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:br}=J.data;if(br&1){let mr=nr(Me);return Xv(de)?t.updatePrefixUnaryExpression(de,mr):t.updatePostfixUnaryExpression(de,mr)}if(yt&&cn){let mr,Fr;if(kr(Me)?Fe(Me.name)&&(Fr=mr=t.createStringLiteralFromNode(Me.name)):w_(Me.argumentExpression)?Fr=mr=Me.argumentExpression:(Fr=t.createTempVariable(i),mr=t.createAssignment(Fr,Qe(Me.argumentExpression,ve,ht))),mr&&Fr){let Di=t.createReflectGetCall(cn,Fr,yt);st(Di,Me);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),st(Di,de),Cr&&(Di=t.createComma(Di,Cr),st(Di,de)),Di}}}}return Sn(de,ve,e)}function kn(de){return t.updateForStatement(de,Qe(de.initializer,De,bf),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 dt(de){let $=Xs(de)?de:t.cloneNode(de);if(de.kind===110&&pe.has(de)&&pe.add($),w_(de))return{readExpression:$,initializeExpression:void 0};let Me=t.createTempVariable(i),yt=t.createAssignment(Me,$);return{readExpression:Me,initializeExpression:yt}}function ct(de){var $;if(Bx(de.expression)&&sa(de.expression.name)){let{thisArg:Me,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(Me,ve,ht),...zn(de.arguments,ve,ht)]):t.updateCallExpression(de,t.createPropertyAccessExpression(Qe(yt,ve,ht),"call"),void 0,[Qe(Me,ve,ht),...zn(de.arguments,ve,ht)])}if(K&&fe&&Ou(de.expression)&&UP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Me=t.createFunctionCallCall(Qe(de.expression,ve,ht),J.data.classConstructor,zn(de.arguments,ve,ht));return Rr(Me,de),st(Me,de),Me}return Sn(de,ve,e)}function Rt(de){var $;if(Bx(de.tag)&&sa(de.tag.name)){let{thisArg:Me,target:yt}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(Qe(yt,ve,ht),"bind"),void 0,[Qe(Me,ve,ht)]),void 0,Qe(de.template,ve,II))}if(K&&fe&&Ou(de.tag)&&UP(fe)&&(($=J?.data)!=null&&$.classConstructor)){let Me=t.createFunctionBindCall(Qe(de.tag,ve,ht),J.data.classConstructor,[]);return Rr(Me,de),st(Me,de),t.updateTaggedTemplateExpression(de,Me,void 0,Qe(de.template,ve,II))}return Sn(de,ve,e)}function se(de){if(J&&re.set(Nl(de),J),D){if(VP(de)){let yt=Qe(de.body.statements[0].expression,ve,ht);return Mc(yt,!0)&&yt.left===yt.right?void 0:yt}if(v1(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 Me=t.createImmediatelyInvokedArrowFunction($);return Rr(ms(Me.expression),de),N_(ms(Me.expression),4),Rr(Me,de),st(Me,de),Me}}function we(de){if(ed(de)&&!de.name){let $=V3(de);return gt($,v1)?!1:(D||!!bm(de))&>($,yt=>Il(yt)||au(yt)||N&&Rw(yt))}return!1}function lt(de,$){if(Oy(de)){let Me=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(DL([...ge,de])):de;return ge=Me,yt}if(Mc(de)){fp(de,we)&&(de=vp(e,de),R.assertNode(de,Mc));let Me=$l(de.left,9);if(Bx(Me)){let yt=sa(Me.name);if(yt)return st(Rr(Tt(yt,Me.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&fe&&Ou(de.left)&&UP(fe)&&J?.data){let{classConstructor:yt,superClassReference:cn,facts:br}=J.data;if(br&1)return t.updateBinaryExpression(de,nr(de.left),de.operatorToken,Qe(de.right,ve,ht));if(yt&&cn){let mr=Ys(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(zP(de.operatorToken.kind)){let Cr=mr;w_(mr)||(Cr=t.createTempVariable(i),mr=t.createAssignment(Cr,mr));let Jo=t.createReflectGetCall(cn,Cr,yt);Rr(Jo,de.left),st(Jo,de.left),Fr=t.createBinaryExpression(Jo,BP(de.operatorToken.kind),Fr),st(Fr,de)}let Di=$?void 0:t.createTempVariable(i);return Di&&(Fr=t.createAssignment(Di,Fr),st(Di,de)),Fr=t.createReflectSetCall(cn,mr,Fr,yt),Rr(Fr,de),st(Fr,de),Di&&(Fr=t.createComma(Fr,Di),st(Fr,de)),Fr}}}}return Y9e(de)?_t(de):Sn(de,ve,e)}function G(de,$){let Me=$?xw(de.elements,De):xw(de.elements,ve,De);return t.updateCommaListExpression(de,Me)}function tt(de,$){let Me=$?De:ve,yt=Qe(de.expression,Me,ht);return t.updateParenthesizedExpression(de,yt)}function Tt(de,$,Me,yt){if($=Qe($,ve,ht),Me=Qe(Me,ve,ht),yi($),zP(yt)){let{readExpression:cn,initializeExpression:br}=dt($);$=br||cn,Me=t.createBinaryExpression(Ao(de,cn),BP(yt),Me)}switch(oc($,fE($,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Me,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Me,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper($,de.brandCheckIdentifier,Me,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,rle)}function pt(de){var $;let Me=0,yt=Nl(de);Tc(yt)&&My(E,yt)&&(Me|=1),D&&(zK(de)||U3(de))&&(Me|=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))&&(Me|=2),(jo(Cr)||Il(Cr))&&(j&&Cr.transformFlags&16384&&(Me|=8,Me&1||(Me|=2)),K&&Cr.transformFlags&134217728&&(Me&1||(Me|=6)))):F0(Nl(Cr))||(ku(Cr)?(Fr=!0,mr||(mr=au(Cr))):au(Cr)?(mr=!0,p.getNodeCheckFlags(Cr)&262144&&(Me|=2)):jo(Cr)&&(cn=!0,br||(br=!!Cr.initializer)));return(A&&cn||S&&br||D&&mr||D&&Fr&&w===-1)&&(Me|=16),Me}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 Me;let yt=xe,cn=ge,br=J;xe=de,ge=void 0,ho();let mr=bm(de)&32;if(D||mr){let Cr=No(de);if(Cr&&Fe(Cr))Hr().data.className=Cr;else if((Me=de.emitNode)!=null&&Me.assignedName&&Da(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Fe(de.emitNode.assignedName.textSourceNode))Hr().data.className=de.emitNode.assignedName.textSourceNode;else if($p(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 Me,yt;let cn;if($&2)if(D&&((Me=de.emitNode)!=null&&Me.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,Sa),Cr=zn(de.heritageClauses,ke,ef),{members:Jo,prologue:El}=ie(de),Hc=[];if(cn&&Io().unshift(cn),gt(ge)&&Hc.push(t.createExpressionStatement(t.inlineExpressions(ge))),S||D||bm(de)&32){let bs=V3(de);gt(bs)&&It(Hc,bs,t.getInternalName(de))}Hc.length>0&&mr&&Fr&&(Di=zn(Di,bs=>Qk(bs)?void 0:bs,Sa),Hc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));let Vs=Ri().classConstructor;br&&Vs&&(Bn(),me[Od(de)]=Vs);let gc=t.updateClassDeclaration(de,Di,de.name,void 0,Cr,Jo);return Hc.unshift(gc),El&&Hc.unshift(t.createExpressionStatement(El)),Hc}function U(de){return hn(de,Le)}function Le(de,$){var Me,yt,cn;let br=!!($&1),mr=V3(de),Fr=p.getNodeCheckFlags(de),Di=Fr&262144,Cr;function Jo(){var Oc;if(D&&((Oc=de.emitNode)!=null&&Oc.classThis))return Ri().classConstructor=de.emitNode.classThis;let om=Fr&32768,mu=t.createTempVariable(om?d:i,!0);return Ri().classConstructor=t.cloneNode(mu),mu}(Me=de.emitNode)!=null&&Me.classThis&&(Ri().classThis=de.emitNode.classThis),$&2&&(Cr??(Cr=Jo()));let El=zn(de.modifiers,Ge,Sa),Hc=zn(de.heritageClauses,ke,ef),{members:Vs,prologue:gc}=ie(de),bs=t.updateClassExpression(de,El,de.name,void 0,Hc,Vs),Kc=[];if(gc&&Kc.push(gc),(D||bm(de)&32)&>(mr,Oc=>Il(Oc)||au(Oc)||N&&Rw(Oc))||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 Oc=t.cloneNode(Cr);Oc.emitNode.autoGenerate.flags&=-9,me[Od(de)]=Oc}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&&(N_(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:Me}=J.data;return $??Me??de}return de}function ie(de){let $=!!(bm(de)&32);if(D||z){for(let mr of de.members)if(au(mr))if(hi(mr))hl(mr,mr.name,xn);else{let Fr=Hr();HT(Fr,mr.name,{kind:"untransformed"})}if(D&>(He(de))&&H(),Wt()){for(let mr of de.members)if(ku(mr)){let Fr=t.getGeneratedPrivateNameForNode(mr.name,void 0,"_accessor_storage");if(D||$&&fc(mr))hl(mr,Fr,Os);else{let Di=Hr();HT(Di,Fr,{kind:"untransformed"})}}}}let Me=zn(de.members,be,Qc),yt;gt(Me,Pl)||(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(Me,VP),Di=Gr(Me,v1);mr=Tn(mr,Fr),mr=Tn(mr,Di),mr=Tn(mr,yt),mr=Tn(mr,br);let Cr=Fr||Di?Vr(Me,Jo=>Jo!==Fr&&Jo!==Di):Me;mr=Ur(mr,Cr),Me=st(t.createNodeArray(mr),de.members)}return{members:Me,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,Pl),!J?.data||!(J.data.facts&16))return de;let Me=A_($),yt=!!(Me&&$l(Me.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(st(t.createConstructorDeclaration(void 0,cn??[],br),de||$),de)):de}function We(de,$,Me,yt,cn,br,mr){let Fr=yt[cn],Di=$[Fr];if(Ur(de,zn($,ve,Hi,Me,Fr-Me)),Me=Fr+1,WT(Di)){let Cr=[];We(Cr,Di.tryBlock.statements,0,yt,cn+1,br,mr);let Jo=t.createNodeArray(Cr);st(Jo,Di.tryBlock.statements),de.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,Cr),Qe(Di.catchClause,ve,Q0),Qe(Di.finallyBlock,ve,Ho)))}else{for(Ur(de,zn($,ve,Hi,Fr,1));Me<$.length;){let Cr=$[Me];if(up(Nl(Cr),mr))Me++;else break}Ur(de,br)}Ur(de,zn($,ve,Hi,Me))}function Ne(de,$,Me){let yt=kK(de,!1,!1),cn=yt;y||(cn=Vr(cn,Vs=>!!Vs.initializer||Ki(Vs.name)||R_(Vs)));let br=He(de),mr=gt(cn)||gt(br);if(!$&&!mr)return rf(void 0,ve,e);l();let Fr=!$&&Me,Di=0,Cr=[],Jo=[],El=t.createThis();if(xi(Jo,br,El),$){let Vs=Vr(yt,bs=>up(Nl(bs),$)),gc=Vr(cn,bs=>!up(Nl(bs),$));It(Jo,Vs,El),It(Jo,gc,El)}else It(Jo,cn,El);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 gc=$.body.statements[Di];if(up(Nl(gc),$))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 st(t.createBlock(st(t.createNodeArray(Cr),$?$.body.statements:de.members),Hc),$?$.body:void 0)}function It(de,$,Me){for(let yt of $){if(na(yt)&&!D)continue;let cn=Dt(yt,Me);cn&&de.push(cn)}}function Dt(de,$){let Me=Il(de)?Li(de,se,de):En(de,$);if(!Me)return;let yt=t.createExpressionStatement(Me);Rr(yt,de),N_(yt,za(de)&3072),oc(yt,de);let cn=Nl(de);return To(cn)?(Ra(yt,cn),Ck(yt)):Ra(yt,C_(de)),gE(Me,void 0),HI(Me,void 0),R_(cn)&&N_(yt,3072),yt}function Kt(de,$){let Me=[];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),N_(cn,za(yt)&3072),Ra(cn,C_(yt)),oc(cn,yt),Me.push(cn))}return Me}function En(de,$){var Me;let yt=fe,cn=wn(de,$);return cn&&fc(de)&&((Me=J?.data)!=null&&Me.facts)&&(Rr(cn,de),N_(cn,4),Ra(cn,zy(de.name)),re.set(Nl(de),J)),fe=yt,cn}function wn(de,$){let Me=!y;fp(de,we)&&(de=vp(e,de));let yt=R_(de)?t.getGeneratedPrivateNameForNode(de.name):$a(de.name)&&!w_(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(fc(de)&&(fe=de),Ki(yt)&&hi(de)){let mr=sa(yt);if(mr)return mr.kind==="f"?mr.isStatic?K9e(t,mr.variableName,Qe(de.initializer,ve,ht)):J9e(t,$,Qe(de.initializer,ve,ht),mr.brandCheckIdentifier):void 0;R.fail("Undeclared private name for property declaration.")}if((Ki(yt)||fc(de))&&!de.initializer)return;let cn=Nl(de);if($r(cn,64))return;let br=Qe(de.initializer,ve,ht);if(up(cn,cn.parent)&&Fe(yt)){let mr=t.cloneNode(yt);br?(Fu(br)&&qk(br.expression)&&fP(br.expression.left,"___runInitializers")&&i1(br.expression.right)&&_p(br.expression.right.expression)&&(br=br.expression.left),br=t.inlineExpressions([br,mr])):br=mr,dr(yt,3168),Ra(mr,cn.name),dr(mr,3072)}else br??(br=t.createVoidZero());if(Me||Ki(yt)){let mr=VT(t,$,yt,yt);return N_(mr,1024),t.createAssignment(mr,br)}else{let mr=$a(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,$,Me){if(!D||!gt($))return;let{weakSetName:yt}=Hr().data;R.assert(yt,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(q9e(t,Me,yt)))}function nr(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($a(de)){let Me=r3(de),yt=Qe(de.expression,ve,ht),cn=vm(yt),br=w_(cn);if(!(!!Me||Mc(cn)&&ol(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=ale({className:void 0,weakSetName:void 0}))}function Io(){return ge??(ge=[])}function xn(de,$,Me,yt,cn,br,mr){ku(de)?Bs(de,$,Me,yt,cn,br,mr):jo(de)?Os(de,$,Me,yt,cn,br,mr):Hl(de)?Ql(de,$,Me,yt,cn,br,mr):Zp(de)?Po(de,$,Me,yt,cn,br,mr):gp(de)&&ls(de,$,Me,yt,cn,br,mr)}function Os(de,$,Me,yt,cn,br,mr){if(cn){let Fr=R.checkDefined(Me.classThis??Me.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 Ql(de,$,Me,yt,cn,br,mr){let Fr=mo($),Di=cn?R.checkDefined(Me.classThis??Me.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,$,Me,yt,cn,br,mr){let Fr=mo($,"_get"),Di=cn?R.checkDefined(Me.classThis??Me.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,$,Me,yt,cn,br,mr){let Fr=mo($,"_set"),Di=cn?R.checkDefined(Me.classThis??Me.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,$,Me,yt,cn,br,mr){let Fr=mo($,"_get"),Di=mo($,"_set"),Cr=cn?R.checkDefined(Me.classThis??Me.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 hl(de,$,Me){let yt=Ri(),cn=Hr(),br=OK(cn,$),mr=fc(de),Fr=!X9e($)&&br===void 0;Me(de,$,yt,cn,mr,Fr,br)}function dd(de,$,Me){let{className:yt}=Hr().data,cn=yt?{prefix:"_",node:yt,suffix:"_"}:"_",br=typeof de=="object"?t.getGeneratedNameForNode(de,24,cn,Me):typeof de=="string"?t.createUniqueName(de,16,cn,Me):t.createTempVariable(void 0,!0,cn,Me);return p.getNodeCheckFlags($)&32768?d(br):i(br),br}function mo(de,$){let Me=EN(de);return dd(Me?.substring(1)??de,de,$)}function sa(de){let $=sle(J,de);return $?.kind==="untransformed"?void 0:$}function ud(de){let $=t.getGeneratedNameForNode(de),Me=sa(de.name);if(!Me)return Sn(de,ve,e);let yt=de.expression;return(C2(de)||Ou(de)||!iS(de.expression))&&(yt=t.createTempVariable(i,!0),Io().push(t.createBinaryExpression(yt,64,Qe(de.expression,ve,ht)))),t.createAssignmentTargetWrapper($,Tt(Me,yt,$,64))}function Ts(de){if(Ma(de)||pu(de))return tn(de);if(Bx(de))return ud(de);if(K&&fe&&Ou(de)&&UP(fe)&&J?.data){let{classConstructor:$,superClassReference:Me,facts:yt}=J.data;if(yt&1)return nr(de);if($&&Me){let cn=Ys(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(Me,cn,br,$))}}}return Sn(de,ve,e)}function Ca(de){if(fp(de,we)&&(de=vp(e,de)),Mc(de,!0)){let $=Ts(de.left),Me=Qe(de.right,ve,ht);return t.updateBinaryExpression(de,$,de.operatorToken,Me)}return Ts(de)}function fl(de){if($u(de.expression)){let $=Ts(de.expression);return t.updateSpreadElement(de,$)}return Sn(de,ve,e)}function Pf(de){if(u2(de)){if(Ym(de))return fl(de);if(!jc(de))return Ca(de)}return Sn(de,ve,e)}function sc(de){let $=Qe(de.name,ve,ic);if(Mc(de.initializer,!0)){let Me=Ca(de.initializer);return t.updatePropertyAssignment(de,$,Me)}if($u(de.initializer)){let Me=Ts(de.initializer);return t.updatePropertyAssignment(de,$,Me)}return Sn(de,ve,e)}function Rl(de){return fp(de,we)&&(de=vp(e,de)),Sn(de,ve,e)}function ll(de){if($u(de.expression)){let $=Ts(de.expression);return t.updateSpreadAssignment(de,$)}return Sn(de,ve,e)}function Mo(de){return R.assertNode(de,d2),Vy(de)?ll(de):ep(de)?Rl(de):_c(de)?sc(de):Sn(de,ve,e)}function tn(de){return pu(de)?t.updateArrayLiteralExpression(de,zn(de.elements,Pf,ht)):t.updateObjectLiteralExpression(de,zn(de.properties,Mo,Pg))}function Gs(de,$,Me){let yt=Nl($),cn=re.get(yt);if(cn){let br=J,mr=he;J=cn,he=ne,ne=!Il(yt)||!(bm(yt)&32),ce(de,$,Me),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,$,Me),ne=he,he=mr,J=br;return}case 167:{let br=J,mr=ne;J=J?.previous,ne=he,ce(de,$,Me),ne=mr,J=br;return}}ce(de,$,Me)}function rd(de,$){return $=B(de,$),de===1?pd($):$}function pd(de){switch(de.kind){case 80:return Ns(de);case 110:return Sp(de)}return de}function Sp(de){if(ee&2&&J?.data&&!pe.has(de)){let{facts:$,classConstructor:Me,classThis:yt}=J.data,cn=ne?yt??Me:Me;if(cn)return st(Rr(t.cloneNode(cn),de),de);if($&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Ns(de){return Ic(de)||de}function Ic(de){if(ee&1&&p.getNodeCheckFlags(de)&536870912){let $=p.getReferencedValueDeclaration(de);if($){let Me=me[$.id];if(Me){let yt=t.cloneNode(Me);return Ra(yt,de),oc(yt,de),yt}}}}}function K9e(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function J9e(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function q9e(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function X9e(e){return!lT(e)&&e.escapedText==="#constructor"}function Y9e(e){return Ki(e.left)&&e.operatorToken.kind===103}function $9e(e){return jo(e)&&fc(e)}function UP(e){return Il(e)||$9e(e)}var Q9e=bt({"src/compiler/transformers/classFields.ts"(){"use strict";Zo()}});function yle(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=rs(o),l=du(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&&Qf(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)&&Kf(ge.body)?ge:void 0,re=[];if(J){let pe=S(J,q),xe=pe.length;for(let fe=0;fepe.parent&&r1(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(st(Sh.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 sQk(Wt)||Ed(Wt)?void 0:Wt,al),Jn=C_(Je),pn=ke(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,Qc),uo=[];({members:hi,decorationStatements:uo}=D(Je,hi));let Li=l>=9&&!!pn&>(hi,Wt=>jo(Wt)&&$r(Wt,256)||Il(Wt));Li&&(hi=st(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(pn,t.createThis()))])),...hi]),hi));let Eo=t.createClassExpression(Dn,ft&&ol(ft)?void 0:ft,void 0,qt,hi);Rr(Eo,Je),st(Eo,Jn);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),st(on,Jn),oc(on,Je);let $e=[on];if(Ur($e,uo),he($e,Je),Zt)if(en){let Wt=t.createExportDefault(Yt);$e.push(Wt)}else{let Wt=t.createExternalModuleExport(t.getDeclarationName(Je));$e.push(Wt)}return $e}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,Qc))}function Y(Je){return t.updateConstructorDeclaration(Je,zn(Je.modifiers,m,Sa),zn(Je.parameters,y,To),Qe(Je.body,y,Ho))}function B(Je,ft){return Je!==ft&&(oc(Je,ft),Ra(Je,C_(ft))),Je}function ce(Je){return B(t.updateMethodDeclaration(Je,zn(Je.modifiers,m,Sa),Je.asteriskToken,R.checkDefined(Qe(Je.name,y,ic)),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,Sa),R.checkDefined(Qe(Je.name,y,ic)),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,Sa),R.checkDefined(Qe(Je.name,y,ic)),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,Sa),R.checkDefined(Qe(Je.name,y,ic)),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,cT)),void 0,void 0,Qe(Je.initializer,y,ht));return ft!==Je&&(oc(ft,Je),st(ft,C_(Je)),Ra(ft,C_(Je)),dr(ft.name,64)),ft}function q(Je){return fP(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,ya(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 P2(!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),Jn=Ie(ft,!$r(ft,128)),pn=l>0?jo(ft)&&!R_(ft)?t.createVoidZero():t.createNull():void 0,Yt=r().createDecorateHelper(en,Dn,Jn,pn);return dr(Yt,3072),Ra(Yt,C_(ft)),Yt}function he(Je,ft){let Zt=Ce(ft);Zt&&Je.push(Rr(t.createExpressionStatement(Zt),ft))}function Ce(Je){let ft=wK(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),Jn=r().createDecorateHelper(Zt,Dn),pn=t.createAssignment(Dn,en?t.createAssignment(en,Jn):Jn);return dr(pn,3072),Ra(pn,C_(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);st(Dn,en.expression),dr(Dn,3072),Zt.push(Dn)}}return Zt}function Ie(Je,ft){let Zt=Je.name;return Ki(Zt)?t.createIdentifier(""):$a(Zt)?ft&&!w_(Zt.expression)?t.getGeneratedNameForNode(Zt):Zt.expression:Fe(Zt)?t.createStringLiteral(vr(Zt)):t.cloneNode(Zt)}function De(){p||(e.enableSubstitution(80),p=[])}function ke(Je){if(o.getNodeCheckFlags(Je)&262144){De();let ft=t.createUniqueName(Je.name&&!ol(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?nt(ft):ft}function nt(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),oc(en,Je),en}}}}}var eVe=bt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Zo()}});function ble(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=rs(e.getCompilerOptions()),d,p,h,m,y,E;return Rm(e,S);function S(k){d=void 0,E=!1;let ie=Sn(k,ee,e);return Fg(ie,e.readEmitHelpers()),E&&(UI(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)&&fc(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 Jn(k);case 226:return uo(k,!1);case 303:return on(k);case 260:return $e(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 dt(k,!1);case 360:return ct(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 nt(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 dt(k,!0);default:return ee(k)}}function re(k){let ie=k.name&&Fe(k.name)&&!ol(k.name)?vr(k.name):k.name&&Ki(k.name)&&!ol(k.name)?vr(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(eR(!1,k)){let wn=gt(k.members,Bn=>(au(Bn)||ku(Bn))&&fc(Bn));Dt=t.createUniqueName("_classThis",wn?24:48)}for(let wn of k.members){if(AI(wn)&&P2(!1,wn,k))if(fc(wn)){if(!ue){ue=t.createUniqueName("_staticExtraInitializers",48);let Bn=r().createRunInitializersHelper(Dt??t.createThis(),ue);Ra(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);Ra(Bn,k.name??wg(k)),En??(En=[]),En.push(Bn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Il(wn)?v1(wn)||(We=!0):jo(wn)&&(fc(wn)?We||(We=!!wn.initializer||Ef(wn)):Ne||(Ne=!nj(wn))),(au(wn)||ku(wn))&&fc(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(),!BK(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=lt(wK(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=$2(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=$l(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 nr=k.members;if(nr=zn(nr,Hr=>Pl(Hr)?Hr:q(Hr),Qc),nr=zn(nr,Hr=>Pl(Hr)?q(Hr):Hr,Qc),y){let Hr;for(let Io of y){Io=Qe(Io,function Os(Ql){if(!(Ql.transformFlags&16384))return Ql;switch(Ql.kind){case 110:return Hr||(Hr=t.createUniqueName("_outerThis",16),ue.unshift(xe(Hr,t.createThis()))),Hr;default:return Sn(Ql,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=A_(k),xn=!!(Io&&$l(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 Ql=t.createBlock(Os,!0);It=t.createConstructorDeclaration(void 0,[],Ql)}}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"),Ql=r().createESDecorateHelper(t.createNull(),xn,H.classDecoratorsName,{kind:"class",name:Os,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Po=t.createExpressionStatement(Ql);Ra(Po,wg(k)),We.push(Po);let ls=t.createPropertyAccessExpression(H.classDescriptorName,"value"),Bs=t.createAssignment(H.classThis,ls),hl=t.createAssignment(ie,Bs);We.push(t.createExpressionStatement(hl))}if(We.push(Le(xi,H.metadataReference)),gt(H.pendingStaticInitializers)){for(let Hr of H.pendingStaticInitializers){let Io=t.createExpressionStatement(Hr);Ra(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);Ra(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&&Nk(Wr,32);let ho=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));if(Wr||It||ho){let Hr=[],Io=nr.findIndex(v1);Wr?(Ur(Hr,nr,0,Io+1),Hr.push(Wr),Ur(Hr,nr,Io+1)):Ur(Hr,nr),It&&Hr.push(It),ho&&Hr.push(ho),nr=st(t.createNodeArray(Hr),nr)}let Pi=o(),Ri;if(En){Ri=t.createClassExpression(void 0,void 0,void 0,Dt,nr),H.classThis&&(Ri=ple(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,nr),ue.push(t.createReturnStatement(Ri));if(Kt){UI(Ri,32);for(let Hr of Ri.members)(au(Hr)||ku(Hr))&&fc(Hr)&&UI(Hr,32)}return Rr(Ri,k),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,Pi))}function he(k){return My(!1,k)||AN(!1,k)}function Ce(k){if(he(k)){let ie=[],H=Nl(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),oc(wn,P_(k)),Ra(wn,wg(k)),ie.push(wn)}else{let Dt=t.createExportDefault(It);Rr(Dt,k),oc(Dt,P_(k)),Ra(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=>$I(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);Rr(wn,k);let Bn=t.createVariableDeclarationList([wn],1),gi=t.createVariableStatement(Kt,Bn);if(Rr(gi,k),oc(gi,P_(k)),ie.push(gi),We){let xi=t.createExternalModuleExport(En);Rr(xi,k),ie.push(xi)}}return oh(ie)}else{let ie=zn(k.modifiers,ge,Sa),H=zn(k.heritageClauses,ee,ef);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,Sa),H=zn(k.heritageClauses,ee,ef);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);st(En,Dt.tryBlock.statements),k.push(t.updateTryStatement(Dt,t.updateBlock(Dt.tryBlock,Kt),Qe(Dt.catchClause,ee,Q0),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,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=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),st(ue,k.body)}}return ue??(ue=Qe(k.body,ee,Ho)),j(),t.updateConstructorDeclaration(k,ie,H,ue)}function ke(k,ie){return k!==ie&&(oc(k,ie),Ra(k,wg(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=jr(k.name),Y(),{modifiers:Bn,referencedName:ue,name:We,initializersName:Ne,descriptorName:Kt,thisArg:Dt}}let En=lt(j3(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),nr={memberDecoratorsName:Bn};ie.memberInfos??(ie.memberInfos=new Map),ie.memberInfos.set(k,nr),y??(y=[]),y.push(xi);let Wr=AI(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=Zp(k)?"getter":gp(k)?"setter":Hl(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(I_(k.name))Pi={computed:!0,name:t.createStringLiteralFromNode(k.name)};else{let Hr=k.name.expression;I_(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)||Zp(k)||Hl(k),set:jo(k)||gp(k)},metadata:ie.metadataReference};if(AI(k)){let Hr=na(k)?ie.staticMethodExtraInitializersName:ie.instanceMethodExtraInitializersName;R.assertIsDefined(Hr);let Io;au(k)&&H&&(Io=H(k,zn(wn,Ql=>ri(Ql,mP),Sa)),nr.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);Ra(Os,wg(k)),Wr.push(Os)}else if(jo(k)){Ne=nr.memberInitializersName??(nr.memberInitializersName=pe(k,"initializers")),It=nr.memberExtraInitializersName??(nr.memberExtraInitializersName=pe(k,"extraInitializers")),na(k)&&(Dt=ie.classThis);let Hr;au(k)&&R_(k)&&H&&(Hr=H(k,void 0),nr.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);Ra(xn,wg(k)),Wr.push(xn)}}return We===void 0&&(K(),We=jr(k.name),Y()),!gt(wn)&&(Hl(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(),ke(hn(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),ke(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(),ke(dn(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),ke(t.updateGetAccessorDeclaration(k,ie,H,We,void 0,Ne),k)}}function nt(k){w(k);let{modifiers:ie,name:H,descriptorName:ue}=Et(k,p,pt);if(ue)return j(),ke(un(ie,H,ue),k);{let We=zn(k.parameters,ee,To),Ne=Qe(k.body,ee,Ho);return j(),ke(t.updateSetAccessorDeclaration(k,ie,H,We,Ne),k)}}function Ft(k){w(k);let ie;if(v1(k))ie=Sn(k,ee,e);else if(VP(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){fp(k,pn)&&(k=vp(e,k,Yt(k.initializer))),w(k),R.assert(!nj(k),"Not yet implemented.");let{modifiers:ie,name:H,initializersName:ue,extraInitializersName:We,descriptorName:Ne,thisArg:It}=Et(k,p,R_(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=we(p,!0,Dt),We&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),We)))):(Dt=we(p,!1,Dt),We&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),We))))),j(),R_(k)&&Ne){let En=P_(k),wn=zy(k),Bn=k.name,gi=Bn,xi=Bn;if($a(Bn)&&!w_(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);Ra(Hr,Bn.expression);let Io=Qe(Bn.expression,ee,ht),xn=t.createAssignment(Hr,Io);Ra(xn,Bn.expression),gi=t.updateComputedPropertyName(Bn,xn),xi=t.updateComputedPropertyName(Bn,Hr)}}let nr=zn(ie,Ri=>Ri.kind!==129?Ri:void 0,Sa),Wr=CH(t,k,nr,Dt);Rr(Wr,k),dr(Wr,3072),Ra(Wr,wn),Ra(Wr.name,k.name);let ho=dn(nr,gi,Ne);Rr(ho,k),oc(ho,En),Ra(ho,wn);let Pi=un(nr,xi,Ne);return Rr(Pi,k),dr(Pi,3072),Ra(Pi,wn),[Wr,ho,Pi]}return ke(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),st(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),st(H,k);let ue=Qe(k.template,ee,II);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),st(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),st(H,k.expression),H}return Sn(k,ee,e)}function Jn(k){fp(k,pn)&&(k=vp(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&&(oc(ie,k),st(ie,C_(k)),Ra(ie,C_(k)),dr(ie.name,64)),ie}function pn(k){return ed(k)&&!k.name&&he(k)}function Yt(k){let ie=$l(k);return ed(ie)&&!ie.name&&!My(!1,ie)}function qt(k){return t.updateForStatement(k,Qe(k.initializer,J,bf),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(Mc(k)){if(fp(k,pn))return k=vp(e,k,Yt(k.right)),Sn(k,ee,e);if(Ou(k.left)&&h&&m){let H=Ys(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(zP(k.operatorToken.kind)){let Ne=H;w_(H)||(Ne=t.createTempVariable(s),H=t.createAssignment(Ne,H));let It=t.createReflectGetCall(m,Ne,h);Rr(It,k.left),st(It,k.left),ue=t.createBinaryExpression(It,BP(k.operatorToken.kind),ue),st(ue,k)}let We=ie?void 0:t.createTempVariable(s);return We&&(ue=t.createAssignment(We,ue),st(We,k)),ue=t.createReflectSetCall(m,H,ue,h),Rr(ue,k),st(ue,k),We&&(ue=t.createComma(ue,We),st(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=Ys(H)?Qe(H.argumentExpression,ee,ht):Fe(H.name)?t.createStringLiteralFromNode(H.name):void 0;if(ue){let We=ue;w_(ue)||(We=t.createTempVariable(s),ue=t.createAssignment(We,ue));let Ne=t.createReflectGetCall(m,We,h);Rr(Ne,k),st(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),st(Ne,k),It&&(Ne=t.createComma(Ne,It),st(Ne,k)),Ne}}}return Sn(k,ee,e)}function Eo(k,ie){let H=ie?xw(k.elements,J):xw(k.elements,ee,J);return t.updateCommaListExpression(k,H)}function Zn(k){if(I_(k)||Ki(k)){let Ne=t.createStringLiteralFromNode(k),It=Qe(k,ee,ic);return{referencedName:Ne,name:It}}if(I_(k.expression)&&!Fe(k.expression)){let Ne=t.createStringLiteralFromNode(k.expression),It=Qe(k,ee,ic);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 $a(k)?Sr(k):Qe(k,ee,ic)}function Sr(k){let ie=Qe(k.expression,ee,ht);return w_(ie)||(ie=se(ie)),t.updateComputedPropertyName(k,ie)}function on(k){return fp(k,pn)&&(k=vp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function $e(k){return fp(k,pn)&&(k=vp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function Wt(k){return fp(k,pn)&&(k=vp(e,k,Yt(k.initializer))),Sn(k,ee,e)}function In(k){if(Ma(k)||pu(k))return kn(k);if(Ou(k)&&h&&m){let ie=Ys(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),st(ue,k),ue}}return Sn(k,ee,e)}function si(k){if(Mc(k,!0)){fp(k,pn)&&(k=vp(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($u(k.expression)){let ie=In(k.expression);return t.updateSpreadElement(k,ie)}return Sn(k,ee,e)}function $i(k){return R.assertNode(k,u2),Ym(k)?yi(k):jc(k)?Sn(k,ee,e):si(k)}function Ao(k){let ie=Qe(k.name,ee,ic);if(Mc(k.initializer,!0)){let H=si(k.initializer);return t.updatePropertyAssignment(k,ie,H)}if($u(k.initializer)){let H=In(k.initializer);return t.updatePropertyAssignment(k,ie,H)}return Sn(k,ee,e)}function da(k){return fp(k,pn)&&(k=vp(e,k,Yt(k.objectAssignmentInitializer))),Sn(k,ee,e)}function Ba(k){if($u(k.expression)){let ie=In(k.expression);return t.updateSpreadAssignment(k,ie)}return Sn(k,ee,e)}function vn(k){return R.assertNode(k,d2),Vy(k)?Ba(k):ep(k)?da(k):_c(k)?Ao(k):Sn(k,ee,e)}function kn(k){if(pu(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 fp(k,pn)&&(k=vp(e,k,Yt(k.expression))),Sn(k,ee,e)}function dt(k,ie){let H=ie?J:ee,ue=Qe(k.expression,H,ht);return t.updateParenthesizedExpression(k,ue)}function ct(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 we(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 lt(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=$l(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 tt(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),Ra(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),Ra(Bn,wg(k)),dr(Bn,3072),Bn}function Tt(k,ie){return t.createObjectLiteralExpression([tt(k,k.name,ie,k.asteriskToken,"value",zn(k.parameters,ee,To),Qe(k.body,ee,Ho))])}function He(k,ie){return t.createObjectLiteralExpression([tt(k,k.name,ie,void 0,"get",[],Qe(k.body,ee,Ho))])}function pt(k,ie){return t.createObjectLiteralExpression([tt(k,k.name,ie,void 0,"set",zn(k.parameters,ee,To),Qe(k.body,ee,Ho))])}function Bt(k,ie){return t.createObjectLiteralExpression([tt(k,k.name,ie,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(k.name)))])),tt(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 Le(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 tVe=bt({"src/compiler/transformers/esDecorators.ts"(){"use strict";Zo()}});function Ele(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,Rm(e,K);function K($e){if($e.isDeclarationFile)return $e;Y(1,!1),Y(2,!tj($e,d));let Wt=Sn($e,q,e);return Fg(Wt,e.readEmitHelpers()),Wt}function Y($e,Wt){D=Wt?D|$e:D&~$e}function B($e){return(D&$e)!==0}function ce(){return!B(1)}function z(){return B(2)}function ee($e,Wt,In){let si=$e&~D;if(si){Y(si,!0);let yi=Wt(In);return Y(si,!1),yi}return Wt(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,ke,$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(Eie($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 Wt=new Set;be($e.variableDeclaration,Wt);let In;if(Wt.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 Wt=nt($e.declarationList,!1);return Wt?t.createExpressionStatement(Wt):void 0}return Sn($e,q,e)}function xe($e){return t.updateForInStatement($e,ze($e.initializer)?nt($e.initializer,!0):R.checkDefined(Qe($e.initializer,q,bf)),R.checkDefined(Qe($e.expression,q,ht)),Iu($e.statement,J,e))}function fe($e){return t.updateForOfStatement($e,Qe($e.awaitModifier,q,rH),ze($e.initializer)?nt($e.initializer,!0):R.checkDefined(Qe($e.initializer,q,bf)),R.checkDefined(Qe($e.expression,q,ht)),Iu($e.statement,J,e))}function ne($e){let Wt=$e.initializer;return t.updateForStatement($e,ze(Wt)?nt(Wt,!1):Qe($e.initializer,q,bf),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(st(t.createYieldExpression(void 0,Qe($e.expression,q,ht)),$e),$e)}function Ce($e){let Wt=A;A=void 0;let In=t.updateConstructorDeclaration($e,zn($e.modifiers,q,Sa),xl($e.parameters,q,e),Zt($e));return A=Wt,In}function Ge($e){let Wt,In=Vc($e),si=A;A=void 0;let yi=t.updateMethodDeclaration($e,zn($e.modifiers,q,al),$e.asteriskToken,$e.name,void 0,void 0,Wt=In&2?Dn($e):xl($e.parameters,q,e),void 0,In&2?Jn($e,Wt):Zt($e));return A=si,yi}function ve($e){let Wt=A;A=void 0;let In=t.updateGetAccessorDeclaration($e,zn($e.modifiers,q,al),$e.name,xl($e.parameters,q,e),void 0,Zt($e));return A=Wt,In}function Ie($e){let Wt=A;A=void 0;let In=t.updateSetAccessorDeclaration($e,zn($e.modifiers,q,al),$e.name,xl($e.parameters,q,e),Zt($e));return A=Wt,In}function De($e){let Wt,In=A;A=void 0;let si=Vc($e),yi=t.updateFunctionDeclaration($e,zn($e.modifiers,q,al),$e.asteriskToken,$e.name,void 0,Wt=si&2?Dn($e):xl($e.parameters,q,e),void 0,si&2?Jn($e,Wt):rf($e.body,q,e));return A=In,yi}function ke($e){let Wt,In=A;A=void 0;let si=Vc($e),yi=t.updateFunctionExpression($e,zn($e.modifiers,q,Sa),$e.asteriskToken,$e.name,void 0,Wt=si&2?Dn($e):xl($e.parameters,q,e),void 0,si&2?Jn($e,Wt):rf($e.body,q,e));return A=In,yi}function Et($e){let Wt,In=Vc($e);return t.updateArrowFunction($e,zn($e.modifiers,q,Sa),void 0,Wt=In&2?Dn($e):xl($e.parameters,q,e),void 0,$e.equalsGreaterThanToken,In&2?Jn($e,Wt):rf($e.body,q,e))}function be({name:$e},Wt){if(Fe($e))Wt.add($e.escapedText);else for(let In of $e.elements)jc(In)||be(In,Wt)}function ze($e){return!!$e&&Uc($e)&&!($e.flags&7)&&$e.declarations.some(ft)}function nt($e,Wt){Ft($e);let In=UN($e);return In.length===0?Wt?Qe(t.converters.convertToAssignmentElementTarget($e.declarations[0].name),q,ht):void 0:t.inlineExpressions(mn(In,Je))}function Ft($e){gn($e.declarations,_t)}function _t({name:$e}){if(Fe($e))s($e);else for(let Wt of $e.elements)jc(Wt)||_t(Wt)}function Je($e){let Wt=Ra(t.createAssignment(t.converters.convertToAssignmentElementTarget($e.name),$e.initializer),$e);return R.checkDefined(Qe(Wt,q,ht))}function ft({name:$e}){if(Fe($e))return y.has($e.escapedText);for(let Wt of $e.elements)if(!jc(Wt)&&ft(Wt))return!0;return!1}function Zt($e){R.assertIsDefined($e.body);let Wt=E,In=S;E=new Set,S=!1;let si=rf($e.body,q,e),yi=Nl($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 da=si.statements.slice();Xh(da,[Ao]),si=t.updateBlock(si,da)}S&&(l.getNodeCheckFlags($e)&256?KI(si,wk):l.getNodeCheckFlags($e)&128&&KI(si,kk))}return E=Wt,S=In,si}function en(){R.assert(A);let $e=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Wt=t.createVariableStatement(void 0,[$e]);return qd(Wt),N_(Wt,2097152),Wt}function Dn($e){if(Dw($e.parameters))return xl($e.parameters,q,e);let Wt=[];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));Wt.push($i)}break}let yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(si.name,8));Wt.push(yi)}let In=t.createNodeArray(Wt);return st(In,$e.parameters),In}function Jn($e,Wt){let In=Dw($e.parameters)?void 0:xl($e.parameters,q,e);i();let yi=Nl($e,Yo).type,$i=p<2?Yt(yi):void 0,Ao=$e.kind===219,da=A,vn=(l.getNodeCheckFlags($e)&512)!==0&&!A;vn&&(A=t.createUniqueName("arguments"));let kn;if(In)if(Ao){let lt=[];R.assert(Wt.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(lt,[Tt])}vn&&Xh(lt,[en()]);let tt=t.createBlock(lt,!0);st(tt,$e.body),G&&S&&(l.getNodeCheckFlags($e)&256?KI(tt,wk):l.getNodeCheckFlags($e)&128&&KI(tt,kk)),we=tt}return y=Be,Ao||(E=dt,S=ct,A=da),we}function pn($e,Wt){return Ho($e)?t.updateBlock($e,zn($e.statements,J,Hi,Wt)):t.converters.convertToFunctionBlock(R.checkDefined(Qe($e,J,mF)))}function Yt($e){let Wt=$e&&N2($e);if(Wt&&Yu(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($e,Wt,In){if(h&1&&Sr(Wt)){let si=l.getNodeCheckFlags(Wt)&384;if(si!==m){let yi=m;m=si,w($e,Wt,In),m=yi;return}}else if(h&&N[is(Wt)]){let si=m;m=0,w($e,Wt,In),m=si;return}w($e,Wt,In)}function uo($e,Wt){return Wt=j($e,Wt),$e===1&&m?Li(Wt):Wt}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?st(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 Wt=$e.expression;if(Ou(Wt)){let In=kr(Wt)?Eo(Wt):Zn(Wt);return t.createCallExpression(t.createPropertyAccessExpression(In,"call"),void 0,[t.createThis(),...$e.arguments])}return $e}function Sr($e){let Wt=$e.kind;return Wt===263||Wt===176||Wt===174||Wt===177||Wt===178}function on($e,Wt){return m&256?st(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),"value"),Wt):st(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),Wt)}}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 nVe=bt({"src/compiler/transformers/es2017.ts"(){"use strict";Zo()}});function Sle(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=da;let m=e.onSubstituteNode;e.onSubstituteNode=Ba;let y=!1,E,S,A,N=0,D=0,w,j,K,Y,B=[];return Rm(e,ge);function ce(se,we){return D!==(D&~se|we)}function z(se,we){let lt=D;return D=(D&~se|we)&3,lt}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 we=Et(se);return Fg(we,e.readEmitHelpers()),w=void 0,j=void 0,we}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,we,lt,G){if(ce(lt,G)){let tt=z(lt,G),Tt=se(we);return ee(tt),Tt}return se(we)}function xe(se){return Sn(se,q,e)}function fe(se,we){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,we);case 361:return nt(se,we);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(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(Wt,se,2,1);case 219:return pe($e,se,2,0);case 169:return uo(se);case 244:return De(se);case 217:return ke(se,we);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(st(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 we=Qe(R.checkDefined(se.expression),q,ht);return Rr(st(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(se,se.asteriskToken,st(r().createAsyncDelegatorHelper(st(r().createAsyncValuesHelper(we),we)),we)))),se),se)}return Rr(st(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 we=uj(se);return we.kind===250&&we.awaitModifier?Dn(we,se):t.restoreEnclosingLabel(Qe(we,q,Hi,t.liftToBlock),se)}return Sn(se,q,e)}function ve(se){let we,lt=[];for(let G of se)if(G.kind===305){we&&(lt.push(t.createObjectLiteralExpression(we)),we=void 0);let tt=G.expression;lt.push(Qe(tt,q,ht))}else we=Tn(we,G.kind===303?t.createPropertyAssignment(G.name,Qe(G.initializer,q,ht)):Qe(G,q,Pg));return we&<.push(t.createObjectLiteralExpression(we)),lt}function Ie(se){if(se.transformFlags&65536){let we=ve(se.properties);we.length&&we[0].kind!==210&&we.unshift(t.createObjectLiteralExpression());let lt=we[0];if(we.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(tt,[hn])}tt.push(He);let Bt=t.updateBlock(se.body,tt);return pt&&Y&&(l.getNodeCheckFlags(se)&256?KI(Bt,wk):l.getNodeCheckFlags(se)&128&&KI(Bt,kk)),K=lt,Y=G,Bt}function yi(se){i();let we=0,lt=[],G=Qe(se.body,q,mF)??t.createBlock([]);Ho(G)&&(we=t.copyPrologue(G.statements,lt,!1,q)),Ur(lt,$i(void 0,se));let tt=o();if(we>0||gt(lt)||gt(tt)){let Tt=t.converters.convertToFunctionBlock(G,!0);return Xh(lt,tt),Ur(lt,Tt.statements.slice(we)),t.updateBlock(Tt,st(t.createNodeArray(lt),Tt.statements))}return G}function $i(se,we){let lt=!1;for(let G of we.parameters)if(lt){if($o(G.name)){if(G.name.elements.length>0){let tt=oS(G,q,e,0,t.getGeneratedNameForNode(G));if(gt(tt)){let Tt=t.createVariableDeclarationList(tt),He=t.createVariableStatement(void 0,Tt);dr(He,2097152),se=Tn(se,He)}}else if(G.initializer){let tt=t.getGeneratedNameForNode(G),Tt=Qe(G.initializer,q,ht),He=t.createAssignment(tt,Tt),pt=t.createExpressionStatement(He);dr(pt,2097152),se=Tn(se,pt)}}else if(G.initializer){let tt=t.cloneNode(G.name);st(tt,G.name),dr(tt,96);let Tt=Qe(G.initializer,q,ht);N_(Tt,3168);let He=t.createAssignment(tt,Tt);st(He,G),dr(He,3072);let pt=t.createBlock([t.createExpressionStatement(He)]);st(pt,G),dr(pt,3905);let Bt=t.createTypeCheck(t.cloneNode(G.name),"undefined"),hn=t.createIfStatement(Bt,pt);qd(hn),st(hn,G),dr(hn,2101056),se=Tn(se,hn)}}else if(G.transformFlags&65536){lt=!0;let tt=oS(G,q,e,1,t.getGeneratedNameForNode(G),!1,!0);if(gt(tt)){let Tt=t.createVariableDeclarationList(tt),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 da(se,we,lt){if(E&1&&ct(we)){let G=l.getNodeCheckFlags(we)&384;if(G!==N){let tt=N;N=G,h(se,we,lt),N=tt;return}}else if(E&&B[is(we)]){let G=N;N=0,h(se,we,lt),N=G;return}h(se,we,lt)}function Ba(se,we){return we=m(se,we),se===1&&N?vn(we):we}function vn(se){switch(se.kind){case 211:return kn(se);case 212:return Be(se);case 213:return dt(se)}return se}function kn(se){return se.expression.kind===108?st(t.createPropertyAccessExpression(t.createUniqueName("_super",48),se.name),se):se}function Be(se){return se.expression.kind===108?Rt(se.argumentExpression,se):se}function dt(se){let we=se.expression;if(Ou(we)){let lt=kr(we)?kn(we):Be(we);return t.createCallExpression(t.createPropertyAccessExpression(lt,"call"),void 0,[t.createThis(),...se.arguments])}return se}function ct(se){let we=se.kind;return we===263||we===176||we===174||we===177||we===178}function Rt(se,we){return N&256?st(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),"value"),we):st(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[se]),we)}}var rVe=bt({"src/compiler/transformers/es2018.ts"(){"use strict";Zo()}});function Tle(e){let t=e.factory;return Rm(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 iVe=bt({"src/compiler/transformers/es2019.ts"(){"use strict";Zo()}});function Ale(e){let{factory:t,hoistVariableDeclaration:r}=e;return Rm(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,s1),N}case 211:case 212:if(Hd(A)){let N=m(A,!1,!1);return R.assertNotNode(N,s1),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&&!J0(A);)A=ta(vm(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 s1(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,s1);let j;return N&&(iS(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 s1(D)?st(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(vm(w),sT(j[0]),!1),Y=s1(K)?K.thisArg:void 0,B=s1(K)?K.expression:K,ce=t.restoreOuterExpressions(w,B,8);iS(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 lVe(e){let t=0;for(let r of e){let i=jK(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var cVe=bt({"src/compiler/transformers/esnext.ts"(){"use strict";Zo()}});function Nle(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return Rm(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,nt;let Ft=be==="createElement"?s.importSpecifier:P6(s.importSpecifier,i),_t=(nt=(ze=s.utilizedImplicitRuntimeImports)==null?void 0:ze.get(Ft))==null?void 0:nt.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=N6(i,be);let ze=Sn(be,E,e);Fg(ze,e.readEmitHelpers());let nt=ze.statements;if(s.filenameDeclaration&&(nt=fT(nt.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Ft,_t]of Oo(s.utilizedImplicitRuntimeImports.entries()))if(ac(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),nt=fT(nt.slice(),Je)}else if(Op(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),nt=fT(nt.slice(),Je)}}return nt!==ze.statements&&(ze=t.updateSourceFile(ze,nt)),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=>_c(ze)&&(Fe(ze.name)&&vr(ze.name)==="__proto__"||Da(ze.name)&&ze.name.text==="__proto__"))}function D(be){let ze=!1;for(let nt of be.attributes.properties)if(c1(nt)&&(!Ma(nt.expression)||nt.expression.properties.some(Vy)))ze=!0;else if(ze&&k_(nt)&&Fe(nt.name)&&nt.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=pR(be);if(Nn(ze)===1&&!ze[0].dotDotDotToken){let Ft=A(ze[0]);return Ft&&t.createPropertyAssignment("children",Ft)}let nt=to(be,A);return Nn(nt)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(nt)):void 0}function z(be,ze,nt,Ft){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]:Ye);return ee(_t,en,ft,ze||Ye,nt,Ft)}function ee(be,ze,nt,Ft,_t,Je){var ft;let Zt=pR(Ft),en=Nn(Zt)>1||!!((ft=Zt[0])!=null&&ft.dotDotDotToken),Dn=[be,ze];if(nt&&Dn.push(ne(nt.initializer)),i.jsx===5){let pn=Nl(o);if(pn&&Yi(pn)){nt===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 Jn=st(t.createCallExpression(p(en),void 0,Dn),Je);return _t&&qd(Jn),Jn}function me(be,ze,nt,Ft){let _t=De(be),Je=be.attributes.properties,ft=Nn(Je)?re(Je):t.createNull(),Zt=s.importSpecifier===void 0?vH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):m("createElement"),en=Mae(t,Zt,_t,ft,to(ze,A),Ft);return nt&&qd(en),en}function ge(be,ze,nt,Ft){let _t;if(ze&&ze.length){let Je=B(ze);Je&&(_t=Je)}return ee(h(),_t||t.createObjectLiteralExpression([]),void 0,ze,nt,Ft)}function q(be,ze,nt,Ft){let _t=Lae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,to(ze,A),be,Ft);return nt&&qd(_t),_t}function J(be){return Ma(be.expression)&&!N(be.expression)?Pc(be.expression.properties,ze=>R.checkDefined(Qe(ze,E,Pg))):t.createSpreadAssignment(R.checkDefined(Qe(be.expression,E,ht)))}function re(be,ze){let nt=rs(i);return nt&&nt>=5?t.createObjectLiteralExpression(pe(be,ze)):xe(be,ze)}function pe(be,ze){let nt=mm(OG(be,c1,(Ft,_t)=>mm(mn(Ft,Je=>_t?J(Je):fe(Je)))));return ze&&nt.push(ze),nt}function xe(be,ze){let nt=[],Ft=[];for(let Je of be){if(c1(Je)){if(Ma(Je.expression)&&!N(Je.expression)){for(let ft of Je.expression.properties){if(Vy(ft)){_t(),nt.push(R.checkDefined(Qe(ft.expression,E,ht)));continue}Ft.push(R.checkDefined(Qe(ft,E)))}continue}_t(),nt.push(R.checkDefined(Qe(Je.expression,E,ht)));continue}Ft.push(fe(Je))}return ze&&Ft.push(ze),_t(),nt.length&&!Ma(nt[0])&&nt.unshift(t.createObjectLiteralExpression()),ih(nt)||r().createAssignHelper(nt);function _t(){Ft.length&&(nt.push(t.createObjectLiteralExpression(Ft)),Ft=[])}}function fe(be){let ze=ke(be),nt=ne(be.initializer);return t.createPropertyAssignment(ze,nt)}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),nt=t.createStringLiteral(Ie(be.text)||be.text,ze);return st(nt,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):Y0(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,nt=0,Ft=-1;for(let _t=0;_t{if(Je)return wx(parseInt(Je,10));if(ft)return wx(parseInt(ft,16));{let en=JIe.get(Zt);return en?wx(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)&&mR(ze.escapedText)?t.createStringLiteral(vr(ze)):$m(ze)?t.createStringLiteral(vr(ze.namespace)+":"+vr(ze.name)):Jk(t,ze)}}function ke(be){let ze=be.name;if(Fe(ze)){let nt=vr(ze);return/^[A-Za-z_]\w*$/.test(nt)?ze:t.createStringLiteral(nt)}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 JIe,dVe=bt({"src/compiler/transformers/jsx.ts"(){"use strict";Zo(),JIe=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 Rm(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(Ys(y)){let S=t.createTempVariable(r),A=t.createTempVariable(r);h=st(t.createElementAccessExpression(st(t.createAssignment(S,y.expression),y.expression),st(t.createAssignment(A,y.argumentExpression),y.argumentExpression)),y),m=st(t.createElementAccessExpression(S,A),y)}else if(kr(y)){let S=t.createTempVariable(r);h=st(t.createPropertyAccessExpression(st(t.createAssignment(S,y.expression),y.expression),y.name),y),m=st(t.createPropertyAccessExpression(S,y.name),y)}else h=y,m=y;return st(t.createAssignment(h,st(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 st(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var uVe=bt({"src/compiler/transformers/es2016.ts"(){"use strict";Zo()}});function qIe(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=Mf;let y,E,S,A;function N(Z){A=Tn(A,t.createVariableDeclaration(Z))}let D,w;return Rm(e,j);function j(Z){if(Z.isDeclarationFile)return Z;y=Z,E=Z.text;let it=re(Z);return Fg(it,e.readEmitHelpers()),y=void 0,E=void 0,A=void 0,S=0,it}function K(Z,it){let Ot=S;return S=(S&~Z|it)&32767,Ot}function Y(Z,it,Ot){S=(S&~it|Ot)&-32768|Z}function B(Z){return(S&8192)!==0&&Z.kind===253&&!Z.expression}function ce(Z){return Z.transformFlags&4194304&&(Am(Z)||wT(Z)||vae(Z)||bP(Z)||EP(Z)||OR(Z)||TP(Z)||WT(Z)||Q0(Z)||q0(Z)||Pv(Z,!1)||Ho(Z))}function z(Z){return(Z.transformFlags&1024)!==0||D!==void 0||S&8192&&ce(Z)||Pv(Z,!1)&&mo(Z)||(bm(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 it=Nl(Z);if(jo(it)&&fc(it)){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?ec(Z,!0):ee(Z)}function J(Z,it){switch(Z.kind){case 126:return;case 263:return De(Z);case 231:return ke(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 Le(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 om(Z);case 217:return k(Z,it);case 226:return ie(Z,it);case 361:return H(Z,it);case 15:case 16:case 17:case 18:return Qo(Z);case 11:return Zl(Z);case 9:return yc(Z);case 215:return cl(Z);case 228:return gl(Z);case 229:return gc(Z);case 230:return qo(Z);case 108:return ec(Z,!1);case 110:return Ce(Z);case 236:return Jc(Z);case 174:return Jo(Z);case 177:case 178:return El(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 it=K(8064,64),Ot=[],Gt=[];i();let O=t.copyPrologue(Z.statements,Ot,!1,ee);return Ur(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(it,0,0),t.updateSourceFile(Z,st(t.createNodeArray(bo(Ot,Gt)),Z.statements))}function pe(Z){if(D!==void 0){let it=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let Ot=Sn(Z,ee,e);return D.allowedNonLabeledJumps=it,Ot}return Sn(Z,ee,e)}function xe(Z){let it=K(7104,0),Ot=Sn(Z,ee,e);return Y(it,0,0),Ot}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(st(t.createIdentifier(Vi(Z.escapedText)),Z),Z):Z}function Ie(Z){if(D){let it=Z.kind===252?2:4;if(!(Z.label&&D.labels&&D.labels.get(vr(Z.label))||!Z.label&&D.allowedNonLabeledJumps&it)){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 rt=D.loopOutParameters,jt;for(let er=0;erFe(it.name)&&!it.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 it=Z;return $a(it.name)?!!Bo(it.name,ft):!1}}return!!Bo(Z,ft)}function Zt(Z,it,Ot,Gt){let O=!!Ot&&$l(Ot.expression).kind!==106;if(!Z)return _t(it,O);let Se=[],rt=[];o();let jt=t.copyStandardPrologue(Z.body.statements,Se,0);(Gt||ft(Z.body))&&(S|=8192),Ur(rt,zn(Z.body.statements,ee,Hi,jt));let er=O||S&8192;kn(Se,Z),Rt(Se,Z,Gt),lt(Se,Z),er?we(Se,Z,Ao()):se(Se,Z),t.mergeLexicalEnvironment(Se,s()),er&&!$i(Z.body)&&rt.push(t.createReturnStatement(ne()));let ii=t.createBlock(st(t.createNodeArray([...Se,...rt]),Z.body.statements),!0);return st(ii,Z.body),yi(ii,Z.body,Gt)}function en(Z){return ol(Z)&&vr(Z)==="_this"}function Dn(Z){return ol(Z)&&vr(Z)==="_super"}function Jn(Z){return Ml(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 Mc(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 it=0;it0;Gt--){let O=Z.statements[Gt];if(Am(O)&&O.expression&&en(O.expression)){let Se=Z.statements[Gt-1],rt;if(td(Se)&&Eo($l(Se.expression)))rt=Se.expression;else if(Ot&&Jn(Se)){let ii=Se.declarationList.declarations[0];jr($l(ii.initializer))&&(rt=t.createAssignment(ne(),ii.initializer))}if(!rt)break;let jt=t.createReturnStatement(rt);Rr(jt,Se),st(jt,Se);let er=t.createNodeArray([...Z.statements.slice(0,Gt-1),jt,...Z.statements.slice(Gt+1)]);return st(er,Z.statements),t.updateBlock(Z,er)}}return Z}function $e(Z){if(Jn(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 it=Z;return $a(it.name)?t.replacePropertyName(it,Sn(it.name,$e,void 0)):Z}}return Sn(Z,$e,void 0)}function Wt(Z,it){if(it.transformFlags&16384||S&65536||S&131072)return Z;for(let Ot of it.statements)if(Ot.transformFlags&134217728&&!B3(Ot))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(Vl(),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 it=Z;return $a(it.name)?t.replacePropertyName(it,Sn(it.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,it,Ot){let Gt=Z;return Z=Sr(Z),Z=on(Z,it),Z!==Gt&&(Z=Wt(Z,it)),Ot&&(Z=si(Z)),Z}function $i(Z){if(Z.kind===253)return!0;if(Z.kind===245){let it=Z;if(it.elseStatement)return $i(it.thenStatement)&&$i(it.elseStatement)}else if(Z.kind===241){let it=Zs(Z.statements);if(it&&$i(it))return!0}return!1}function Ao(){return dr(t.createThis(),8)}function da(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Vl(),t.createNull()),t.createFunctionApplyCall(Vl(),Ao(),t.createIdentifier("arguments"))),Ao())}function Ba(Z){if(!Z.dotDotDotToken)return $o(Z.name)?Rr(st(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Z),void 0,void 0,void 0),Z),Z):Z.initializer?Rr(st(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,it){if(!gt(it.parameters,vn))return!1;let Ot=!1;for(let Gt of it.parameters){let{name:O,initializer:Se,dotDotDotToken:rt}=Gt;rt||($o(O)?Ot=Be(Z,Gt,O,Se)||Ot:Se&&(dt(Z,Gt,O,Se),Ot=!0))}return Ot}function Be(Z,it,Ot,Gt){return Ot.elements.length>0?(fT(Z,dr(t.createVariableStatement(void 0,t.createVariableDeclarationList(oS(it,ee,e,0,t.getGeneratedNameForNode(it)))),2097152)),!0):Gt?(fT(Z,dr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(it),R.checkDefined(Qe(Gt,ee,ht)))),2097152)),!0):!1}function dt(Z,it,Ot,Gt){Gt=R.checkDefined(Qe(Gt,ee,ht));let O=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ot),"undefined"),dr(st(t.createBlock([t.createExpressionStatement(dr(st(t.createAssignment(dr(ja(st(t.cloneNode(Ot),Ot),Ot.parent),96),dr(Gt,96|za(Gt)|3072)),it),3072))]),it),3905));qd(O),st(O,it),dr(O,2101056),fT(Z,O)}function ct(Z,it){return!!(Z&&Z.dotDotDotToken&&!it)}function Rt(Z,it,Ot){let Gt=[],O=Zs(it.parameters);if(!ct(O,Ot))return!1;let Se=O.name.kind===80?ja(st(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);dr(Se,96);let rt=O.name.kind===80?t.cloneNode(O.name):Se,jt=it.parameters.length-1,er=t.createLoopVariable();Gt.push(dr(st(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Se,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));let ii=t.createForStatement(st(t.createVariableDeclarationList([t.createVariableDeclaration(er,void 0,void 0,t.createNumericLiteral(jt))]),O),st(t.createLessThan(er,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),st(t.createPostfixIncrement(er),O),t.createBlock([qd(st(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(rt,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(st(t.createVariableStatement(void 0,t.createVariableDeclarationList(oS(O,ee,e,0,rt))),O),2097152)),JV(Z,Gt),!0}function se(Z,it){return S&131072&&it.kind!==219?(we(Z,it,t.createThis()),!0):!1}function we(Z,it,Ot){Du();let Gt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ne(),void 0,void 0,Ot)]));dr(Gt,2100224),Ra(Gt,it),fT(Z,Gt)}function lt(Z,it){if(S&32768){let Ot;switch(it.kind){case 219:return Z;case 174:case 177:case 178:Ot=t.createVoidZero();break;case 176:Ot=t.createPropertyAccessExpression(dr(t.createThis(),8),"constructor");break;case 262:case 218:Ot=t.createConditionalExpression(t.createLogicalAnd(dr(t.createThis(),8),t.createBinaryExpression(dr(t.createThis(),8),104,t.getLocalName(it))),void 0,t.createPropertyAccessExpression(dr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return R.failBadSyntaxKind(it)}let Gt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ot)]));dr(Gt,2100224),fT(Z,Gt)}return Z}function G(Z,it){for(let Ot of it.members)switch(Ot.kind){case 240:Z.push(tt(Ot));break;case 174:Z.push(Tt(dg(it,Ot),Ot,it));break;case 177:case 178:let Gt=xT(it.members,Ot);Ot===Gt.firstAccessor&&Z.push(He(dg(it,Ot),Gt,it));break;case 176:case 175:break;default:R.failBadSyntaxKind(Ot,y&&y.fileName);break}}function tt(Z){return st(t.createEmptyStatement(),Z)}function Tt(Z,it,Ot){let Gt=P_(it),O=zy(it),Se=un(it,it,void 0,Ot),rt=Qe(it.name,ee,ic);R.assert(rt);let jt;if(!Ki(rt)&&dP(e.getCompilerOptions())){let ii=$a(rt)?rt.expression:Fe(rt)?t.createStringLiteral(Vi(rt.escapedText)):rt;jt=t.createObjectDefinePropertyCall(Z,ii,t.createPropertyDescriptor({value:Se,enumerable:!1,writable:!0,configurable:!0}))}else{let ii=VT(t,Z,rt,it.name);jt=t.createAssignment(ii,Se)}dr(Se,3072),Ra(Se,O);let er=st(t.createExpressionStatement(jt),it);return Rr(er,it),oc(er,Gt),dr(er,96),er}function He(Z,it,Ot){let Gt=t.createExpressionStatement(pt(Z,it,Ot,!1));return dr(Gt,3072),Ra(Gt,zy(it.firstAccessor)),Gt}function pt(Z,{firstAccessor:it,getAccessor:Ot,setAccessor:Gt},O,Se){let rt=ja(st(t.cloneNode(Z),Z),Z.parent);dr(rt,3136),Ra(rt,it.name);let jt=Qe(it.name,ee,ic);if(R.assert(jt),Ki(jt))return R.failBadSyntaxKind(jt,"Encountered unhandled private identifier while transforming ES2015.");let er=EH(t,jt);dr(er,3104),Ra(er,it.name);let ii=[];if(Ot){let no=un(Ot,void 0,void 0,O);Ra(no,zy(Ot)),dr(no,1024);let La=t.createPropertyAssignment("get",no);oc(La,P_(Ot)),ii.push(La)}if(Gt){let no=un(Gt,void 0,void 0,O);Ra(no,zy(Gt)),dr(no,1024);let La=t.createPropertyAssignment("set",no);oc(La,P_(Gt)),ii.push(La)}ii.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,[rt,er,t.createObjectLiteralExpression(ii,!0)]);return Se&&qd(Xr),Xr}function Bt(Z){Z.transformFlags&16384&&!(S&16384)&&(S|=131072);let it=D;D=void 0;let Ot=K(15232,66),Gt=t.createFunctionExpression(void 0,void 0,void 0,void 0,xl(Z.parameters,ee,e),void 0,U(Z));return st(Gt,Z),Rr(Gt,Z),dr(Gt,16),Y(Ot,0,0),D=it,Gt}function hn(Z){let it=za(Z)&524288?K(32662,69):K(32670,65),Ot=D;D=void 0;let Gt=xl(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(it,229376,0),D=Ot,t.updateFunctionExpression(Z,void 0,Z.asteriskToken,Se,void 0,Gt,void 0,O)}function dn(Z){let it=D;D=void 0;let Ot=K(32670,65),Gt=xl(Z.parameters,ee,e),O=U(Z),Se=S&32768?t.getLocalName(Z):Z.name;return Y(Ot,229376,0),D=it,t.updateFunctionDeclaration(Z,zn(Z.modifiers,ee,Sa),Z.asteriskToken,Se,void 0,Gt,void 0,O)}function un(Z,it,Ot,Gt){let O=D;D=void 0;let Se=Gt&&di(Gt)&&!na(Z)?K(32670,73):K(32670,65),rt=xl(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,Rr(st(t.createFunctionExpression(void 0,Z.asteriskToken,Ot,void 0,rt,void 0,jt),it),Z)}function U(Z){let it=!1,Ot=!1,Gt,O,Se=[],rt=[],jt=Z.body,er;if(o(),Ho(jt)&&(er=t.copyStandardPrologue(jt.statements,Se,0,!1),er=t.copyCustomPrologue(jt.statements,rt,er,ee,LF),er=t.copyCustomPrologue(jt.statements,rt,er,ee,kF)),it=kn(rt,Z)||it,it=Rt(rt,Z,!1)||it,Ho(jt))er=t.copyCustomPrologue(jt.statements,rt,er,ee),Gt=jt.statements,Ur(rt,zn(jt.statements,ee,Hi,er)),!it&&jt.multiLine&&(it=!0);else{R.assert(Z.kind===219),Gt=v6(jt,-1);let Xr=Z.equalsGreaterThanToken;!Xs(Xr)&&!Xs(jt)&&(lk(Xr,jt,y)?Ot=!0:it=!0);let no=Qe(jt,ee,ht),La=t.createReturnStatement(no);st(La,jt),Yoe(La,jt),dr(La,2880),rt.push(La),O=jt}if(t.mergeLexicalEnvironment(Se,s()),lt(Se,Z),se(Se,Z),gt(Se)&&(it=!0),rt.unshift(...Se),Ho(jt)&&Um(rt,jt.statements))return jt;let ii=t.createBlock(st(t.createNodeArray(rt),Gt),it);return st(ii,Z.body),!it&&Ot&&dr(ii,1),O&&Xoe(ii,20,O),Rr(ii,Z.body),ii}function Le(Z,it){if(it)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,it){return Sn(Z,it?me:ee,e)}function ie(Z,it){return Oy(Z)?KT(Z,ee,e,0,!it):Z.operatorToken.kind===28?t.updateBinaryExpression(Z,R.checkDefined(Qe(Z.left,me,ht)),Z.operatorToken,R.checkDefined(Qe(Z.right,it?me:ee,ht))):Sn(Z,ee,e)}function H(Z,it){if(it)return Sn(Z,me,e);let Ot;for(let O=0;Oer.name)),jt=Gt?t.createYieldExpression(t.createToken(42),dr(rt,8388608)):rt;if(Se)O.push(t.createExpressionStatement(jt)),Ns(it.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(it.loopOutParameters,1,0,O),it.nonLocalJumps&8){let Xr;Ot?(Ot.nonLocalJumps|=8,Xr=t.createReturnStatement(er)):Xr=t.createReturnStatement(t.createPropertyAccessExpression(er,"value")),O.push(t.createIfStatement(t.createTypeCheck(er,"object"),Xr))}if(it.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(er,t.createStringLiteral("break")),t.createBreakStatement())),it.labeledNonLocalBreaks||it.labeledNonLocalContinues){let Xr=[];Me(it.labeledNonLocalBreaks,!0,er,Ot,Xr),Me(it.labeledNonLocalContinues,!1,er,Ot,Xr),O.push(t.createSwitchStatement(er,t.createCaseBlock(Xr)))}}return O}function $(Z,it,Ot,Gt){it?(Z.labeledNonLocalBreaks||(Z.labeledNonLocalBreaks=new Map),Z.labeledNonLocalBreaks.set(Ot,Gt)):(Z.labeledNonLocalContinues||(Z.labeledNonLocalContinues=new Map),Z.labeledNonLocalContinues.set(Ot,Gt))}function Me(Z,it,Ot,Gt,O){Z&&Z.forEach((Se,rt)=>{let jt=[];if(!Gt||Gt.labels&&Gt.labels.get(rt)){let er=t.createIdentifier(rt);jt.push(it?t.createBreakStatement(er):t.createContinueStatement(er))}else $(Gt,it,rt,Se),jt.push(t.createReturnStatement(Ot));O.push(t.createCaseClause(t.createStringLiteral(Se),jt))})}function yt(Z,it,Ot,Gt,O){let Se=it.name;if($o(Se))for(let rt of Se.elements)jc(rt)||yt(Z,rt,Ot,Gt,O);else{Ot.push(t.createParameterDeclaration(void 0,void 0,Se));let rt=p.getNodeCheckFlags(it);if(rt&65536||O){let jt=t.createUniqueName("out_"+vr(Se)),er=0;rt&65536&&(er|=1),OT(Z)&&(Z.initializer&&p.isBindingCapturedByNode(Z.initializer,it)&&(er|=2),(Z.condition&&p.isBindingCapturedByNode(Z.condition,it)||Z.incrementor&&p.isBindingCapturedByNode(Z.incrementor,it))&&(er|=1)),Gt.push({flags:er,originalName:Se,outParamName:jt})}}}function cn(Z,it,Ot,Gt){let O=it.properties,Se=O.length;for(let rt=Gt;rtMl(Vu)&&!!Va(Vu.declarationList.declarations).initializer,Gt=D;D=void 0;let O=zn(it.statements,ge,Hi);D=Gt;let Se=Vr(O,Ot),rt=Vr(O,Vu=>!Ot(Vu)),er=ta(Va(Se),Ml).declarationList.declarations[0],ii=$l(er.initializer),Xr=ri(ii,Mc);!Xr&&pr(ii)&&ii.operatorToken.kind===28&&(Xr=ri(ii.left,Mc));let no=ta(Xr?$l(Xr.right):ii,ra),La=ta($l(no.expression),ks),ka=La.body.statements,wl=0,fd=-1,xc=[];if(Xr){let Vu=ri(ka[wl],td);Vu&&(xc.push(Vu),wl++),xc.push(ka[wl]),wl++,xc.push(t.createExpressionStatement(t.createAssignment(Xr.left,ta(er.name,Fe))))}for(;!Am(xy(ka,fd));)fd--;Ur(xc,ka,wl,fd),fd<-1&&Ur(xc,ka,fd+1);let Ap=ri(xy(ka,fd),Am);for(let Vu of rt)Am(Vu)&&Ap?.expression&&!Fe(Ap.expression)?xc.push(Ap):xc.push(Vu);return Ur(xc,Se,1),t.restoreOuterExpressions(Z.expression,t.restoreOuterExpressions(er.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,xc))),void 0,no.arguments))))}function Oc(Z,it){if(Z.transformFlags&32768||Z.expression.kind===108||Ou($l(Z.expression))){let{target:Ot,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(Ot,q,ht)),Z.expression.kind===108?Gt:R.checkDefined(Qe(Gt,ee,ht)),mu(Z.arguments,!0,!1,!1)):O=st(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=it?t.createAssignment(ne(),Se):Se}return Rr(O,Z)}return hT(Z)&&(S|=131072),Sn(Z,ee,e)}function om(Z){if(gt(Z.arguments,Ym)){let{target:it,thisArg:Ot}=t.createCallBinding(t.createPropertyAccessExpression(Z.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(R.checkDefined(Qe(it,ee,ht)),Ot,mu(t.createNodeArray([t.createVoidZero(),...Z.arguments]),!0,!1,!1)),void 0,[])}return Sn(Z,ee,e)}function mu(Z,it,Ot,Gt){let O=Z.length,Se=mm(OG(Z,Re,(ii,Xr,no,La)=>Xr(ii,Ot,Gt&&La===O)));if(Se.length===1){let ii=Se[0];if(it&&!d.downlevelIteration||yU(ii.expression)||fP(ii.expression,"___spreadArray"))return ii.expression}let rt=r(),jt=Se[0].kind!==0,er=jt?t.createArrayLiteralExpression():Se[0].expression;for(let ii=jt?0:1;ii0&&Gt.push(t.createStringLiteral(Ot.literal.text)),it=t.createCallExpression(t.createPropertyAccessExpression(it,"concat"),void 0,Gt)}return st(it,Z)}function Vl(){return t.createUniqueName("_super",48)}function ec(Z,it){let Ot=S&8&&!it?t.createPropertyAccessExpression(Rr(Vl(),Z),"prototype"):Vl();return Rr(Ot,Z),oc(Ot,Z),Ra(Ot,Z),Ot}function Jc(Z){return Z.keywordToken===105&&Z.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Z}function cf(Z,it,Ot){if(w&1&&Yo(it)){let Gt=K(32670,za(it)&16?81:65);m(Z,it,Ot),Y(Gt,0,0);return}m(Z,it,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 Mf(Z,it){return it=h(Z,it),Z===1?Hg(it):Fe(it)?G_(it):it}function G_(Z){if(w&2&&!SH(Z)){let it=Ro(Z,Fe);if(it&&xh(it))return st(t.getGeneratedNameForNode(it),Z)}return Z}function xh(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 Tp(Z)}return Z}function zd(Z){if(w&2&&!SH(Z)){let it=p.getReferencedDeclarationWithCollidingName(Z);if(it&&!(di(it)&&Kg(it,Z)))return st(t.getGeneratedNameForNode(No(it)),Z)}return Z}function Kg(Z,it){let Ot=Ro(it);if(!Ot||Ot===Z||Ot.end<=Z.pos||Ot.pos>=Z.end)return!1;let Gt=fh(Z);for(;Ot;){if(Ot===Gt||Ot===Z)return!1;if(Qc(Ot)&&Ot.parent===Z)return!0;Ot=Ot.parent}return!1}function Tp(Z){return w&1&&S&16?st(ne(),Z):Z}function dg(Z,it){return na(it)?t.getInternalName(Z):t.createPropertyAccessExpression(t.getInternalName(Z),"prototype")}function Gu(Z,it){if(!Z||!it||gt(Z.parameters))return!1;let Ot=Yc(Z.body.statements);if(!Ot||!Xs(Ot)||Ot.kind!==244)return!1;let Gt=Ot.expression;if(!Xs(Gt)||Gt.kind!==213)return!1;let O=Gt.expression;if(!Xs(O)||O.kind!==108)return!1;let Se=ih(Gt.arguments);if(!Se||!Xs(Se)||Se.kind!==230)return!1;let rt=Se.expression;return Fe(rt)&&rt.escapedText==="arguments"}}var pVe=bt({"src/compiler/transformers/es2015.ts"(){"use strict";Zo()}});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),Rm(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):_c(S)?m(S):S)}function h(E){if(Ki(E.name))return E;let S=y(E.name);return S?st(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=nE(E);if(S!==void 0&&S>=83&&S<=118)return st(t.createStringLiteralFromNode(E),E)}}var fVe=bt({"src/compiler/transformers/es5.ts"(){"use strict";Zo()}});function mVe(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=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 Rm(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 da(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 nt(Re);case 243:return _t(Re);case 248:return Be(Re);case 249:return ct(Re);case 252:return lt(Re);case 251:return se(Re);case 253:return tt(Re);default:return Re.transformFlags&1048576?ke(Re):Re.transformFlags&4196352?Sn(Re,ve,e):Re}}function ke(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(st(t.createFunctionDeclaration(Re.modifiers,void 0,Re.name,void 0,xl(Re.parameters,ve,e),void 0,Ft(Re.body)),Re),Re);else{let Lt=S,Hn=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Hn}if(S){s(Re);return}else return Re}function ze(Re){if(Re.asteriskToken)Re=Rr(st(t.createFunctionExpression(void 0,void 0,Re.name,void 0,xl(Re.parameters,ve,e),void 0,Ft(Re.body)),Re),Re);else{let Lt=S,Hn=A;S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Hn}return Re}function nt(Re){let Lt=S,Hn=A;return S=!1,A=!1,Re=Sn(Re,ve,e),S=Lt,A=Hn,Re}function Ft(Re){let Lt=[],Hn=S,go=A,qo=N,Qo=D,Zl=w,yc=j,cl=K,gl=Y,Vl=B,ec=ce,Jc=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);jr(Re.statements,Du);let Mf=$();return Xh(Lt,o()),Lt.push(t.createReturnStatement(Mf)),S=Hn,A=go,N=qo,D=Qo,w=Zl,j=yc,K=cl,Y=gl,B=Vl,ce=ec,z=Jc,ee=cf,me=Bu,st(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 Hn of Re.declarationList.declarations)l(Hn.name);let Lt=UN(Re.declarationList);return Lt.length===0?void 0:Ra(t.createExpressionStatement(t.inlineExpressions(mn(Lt,yi))),Re)}}function Je(Re){let Lt=kj(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:Hn}=Re;if(U(Hn)){let go;switch(Lt.kind){case 211:go=t.updatePropertyAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,$u))),Lt.name);break;case 212:go=t.updateElementAccessExpression(Lt,H(R.checkDefined(Qe(Lt.expression,ve,$u))),H(R.checkDefined(Qe(Lt.argumentExpression,ve,ht))));break;default:go=R.checkDefined(Qe(Lt,ve,ht));break}let qo=Re.operatorToken.kind;return zP(qo)?st(t.createAssignment(go,st(t.createBinaryExpression(H(go),BP(qo),R.checkDefined(Qe(Hn,ve,ht))),Re)),Re):t.updateBinaryExpression(Re,go,Re.operatorToken,R.checkDefined(Qe(Hn,ve,ht)))}return Sn(Re,ve,e)}function Zt(Re){return U(Re.right)?Kie(Re.operatorToken.kind)?Jn(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 Hn(Re.left),Hn(Re.right),t.inlineExpressions(Lt);function Hn(go){pr(go)&&go.operatorToken.kind===28?(Hn(go.left),Hn(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 Hn of Re.elements)pr(Hn)&&Hn.operatorToken.kind===28?Lt.push(en(Hn)):(U(Hn)&&Lt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Lt))]),Lt=[]),Lt.push(R.checkDefined(Qe(Hn,ve,ht))));return t.inlineExpressions(Lt)}function Jn(Re){let Lt=We(),Hn=ue();return ll(Hn,R.checkDefined(Qe(Re.left,ve,ht)),Re.left),Re.operatorToken.kind===56?Gs(Lt,Hn,Re.left):tn(Lt,Hn,Re.left),ll(Hn,R.checkDefined(Qe(Re.right,ve,ht)),Re.right),Ne(Lt),Hn}function pn(Re){if(U(Re.whenTrue)||U(Re.whenFalse)){let Lt=We(),Hn=We(),go=ue();return Gs(Lt,R.checkDefined(Qe(Re.condition,ve,ht)),Re.condition),ll(go,R.checkDefined(Qe(Re.whenTrue,ve,ht)),Re.whenTrue),Mo(Hn),Ne(Lt),ll(go,R.checkDefined(Qe(Re.whenFalse,ve,ht)),Re.whenFalse),Ne(Hn),go}return Sn(Re,ve,e)}function Yt(Re){let Lt=We(),Hn=Qe(Re.expression,ve,ht);if(Re.asteriskToken){let go=za(Re.expression)&8388608?Hn:st(r().createValuesHelper(Hn),Re);rd(go,Re)}else pd(Hn,Re);return Ne(Lt),Pf(Re)}function qt(Re){return hi(Re.elements,void 0,void 0,Re.multiLine)}function hi(Re,Lt,Hn,go){let qo=Le(Re),Qo;if(qo>0){Qo=ue();let cl=zn(Re,ve,ht,0,qo);ll(Qo,t.createArrayLiteralExpression(Lt?[Lt,...cl]:cl)),Lt=void 0}let Zl=nu(Re,yc,[],qo);return Qo?t.createArrayConcatCall(Qo,[t.createArrayLiteralExpression(Zl,go)]):st(t.createArrayLiteralExpression(Lt?[Lt,...Zl]:Zl,go),Hn);function yc(cl,gl){if(U(gl)&&cl.length>0){let Vl=Qo!==void 0;Qo||(Qo=ue()),ll(Qo,Vl?t.createArrayConcatCall(Qo,[t.createArrayLiteralExpression(cl,go)]):t.createArrayLiteralExpression(Lt?[Lt,...cl]:cl,go)),Lt=void 0,cl=[]}return cl.push(R.checkDefined(Qe(gl,ve,ht))),cl}}function uo(Re){let Lt=Re.properties,Hn=Re.multiLine,go=Le(Lt),qo=ue();ll(qo,t.createObjectLiteralExpression(zn(Lt,ve,Pg,0,go),Hn));let Qo=nu(Lt,Zl,[],go);return Qo.push(Hn?qd(ja(st(t.cloneNode(qo),qo),qo.parent)):qo),t.inlineExpressions(Qo);function Zl(yc,cl){U(cl)&&yc.length>0&&(Rl(t.createExpressionStatement(t.inlineExpressions(yc))),yc=[]);let gl=kae(t,Re,cl,qo),Vl=Qe(gl,ve,ht);return Vl&&(Hn&&qd(Vl),yc.push(Vl)),yc}}function Li(Re){return U(Re.argumentExpression)?t.updateElementAccessExpression(Re,H(R.checkDefined(Qe(Re.expression,ve,$u))),R.checkDefined(Qe(Re.argumentExpression,ve,ht))):Sn(Re,ve,e)}function Eo(Re){if(!Wp(Re)&&gn(Re.arguments,U)){let{target:Lt,thisArg:Hn}=t.createCallBinding(Re.expression,l,p,!0);return Rr(st(t.createFunctionApplyCall(H(R.checkDefined(Qe(Lt,ve,$u))),Hn,hi(Re.arguments)),Re),Re)}return Sn(Re,ve,e)}function Zn(Re){if(gn(Re.arguments,U)){let{target:Lt,thisArg:Hn}=t.createCallBinding(t.createPropertyAccessExpression(Re.expression,"bind"),l);return Rr(st(t.createNewExpression(t.createFunctionApplyCall(H(R.checkDefined(Qe(Lt,ve,ht))),Hn,hi(Re.arguments,t.createVoidZero())),void 0,[]),Re),Re)}return Sn(Re,ve,e)}function jr(Re,Lt=0){let Hn=Re.length;for(let go=Lt;go0)break;qo.push(yi(Zl))}qo.length&&(Rl(t.createExpressionStatement(t.inlineExpressions(qo))),go+=qo.length,qo=[])}}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(),Hn=Re.elseStatement?We():void 0;Gs(Re.elseStatement?Hn:Lt,R.checkDefined(Qe(Re.expression,ve,ht)),Re.expression),Sr(Re.thenStatement),Re.elseStatement&&(Mo(Lt),Ne(Hn),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(),Hn=We();Pi(Lt),Ne(Hn),Sr(Re.statement),Ne(Lt),tn(Hn,R.checkDefined(Qe(Re.expression,ve,ht))),Ri()}else Rl(Qe(Re,ve,Hi))}function da(Re){return A?(ho(),Re=Sn(Re,ve,e),Ri(),Re):Sn(Re,ve,e)}function Ba(Re){if(U(Re)){let Lt=We(),Hn=Pi(Lt);Ne(Lt),Gs(Hn,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(),Hn=We(),go=Pi(Hn);if(Re.initializer){let qo=Re.initializer;Uc(qo)?si(qo):Rl(st(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(Hn),Re.incrementor&&Rl(st(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 Hn=UN(Lt);Re=t.updateForStatement(Re,Hn.length>0?t.inlineExpressions(mn(Hn,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 dt(Re){if(U(Re)){let Lt=ue(),Hn=ue(),go=ue(),qo=t.createLoopVariable(),Qo=Re.initializer;l(qo),ll(Lt,R.checkDefined(Qe(Re.expression,ve,ht))),ll(Hn,t.createArrayLiteralExpression()),Rl(t.createForInStatement(go,Lt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Hn,"push"),void 0,[go])))),ll(qo,t.createNumericLiteral(0));let Zl=We(),yc=We(),cl=Pi(yc);Ne(Zl),Gs(cl,t.createLessThan(qo,t.createPropertyAccessExpression(Hn,"length"))),ll(go,t.createElementAccessExpression(Hn,qo)),Gs(yc,t.createBinaryExpression(go,103,Lt));let gl;if(Uc(Qo)){for(let Vl of Qo.declarations)l(Vl.name);gl=t.cloneNode(Qo.declarations[0].name)}else gl=R.checkDefined(Qe(Qo,ve,ht)),R.assert($u(gl));ll(gl,go),Sr(Re.statement),Ne(yc),Rl(t.createExpressionStatement(t.createPostfixIncrement(qo))),Mo(Zl),Ri()}else Rl(Qe(Re,ve,Hi))}function ct(Re){A&&ho();let Lt=Re.initializer;if(Uc(Lt)){for(let Hn of Lt.declarations)l(Hn.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 Ca(Lt,Re)}return Sn(Re,ve,e)}function we(Re){let Lt=mo(Re.label?vr(Re.label):void 0);Lt>0?Mo(Lt,Re):Rl(Re)}function lt(Re){if(A){let Lt=mo(Re.label&&vr(Re.label));if(Lt>0)return Ca(Lt,Re)}return Sn(Re,ve,e)}function G(Re){Sp(Qe(Re.expression,ve,ht),Re)}function tt(Re){return fl(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,Hn=Lt.clauses.length,go=Io(),qo=H(R.checkDefined(Qe(Re.expression,ve,ht))),Qo=[],Zl=-1;for(let gl=0;gl0)break;cl.push(t.createCaseClause(R.checkDefined(Qe(ec.expression,ve,ht)),[Ca(Qo[Vl],ec.expression)]))}else gl++}cl.length&&(Rl(t.createSwitchStatement(qo,t.createCaseBlock(cl))),yc+=cl.length,cl=[]),gl>0&&(yc+=gl,gl=0)}Zl>=0?Mo(Qo[Zl]):Mo(go);for(let gl=0;gl=0;Hn--){let go=j[Hn];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 Hn=j[Lt];if(Bs(Hn)&&Hn.labelText===Re)return Hn.breakLabel;if(ls(Hn)&&dd(Re,Lt-1))return Hn.breakLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Hn=j[Lt];if(ls(Hn))return Hn.breakLabel}return 0}function sa(Re){if(j)if(Re)for(let Lt=j.length-1;Lt>=0;Lt--){let Hn=j[Lt];if(hl(Hn)&&dd(Re,Lt-1))return Hn.continueLabel}else for(let Lt=j.length-1;Lt>=0;Lt--){let Hn=j[Lt];if(hl(Hn))return Hn.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 Ts(Re){let Lt=t.createNumericLiteral(Re);return i4(Lt,3,mVe(Re)),Lt}function Ca(Re,Lt){return R.assertLessThan(0,Re,"Invalid label"),st(t.createReturnStatement(t.createArrayLiteralExpression([Ts(3),ud(Re)])),Lt)}function fl(Re,Lt){return st(t.createReturnStatement(t.createArrayLiteralExpression(Re?[Ts(2),Re]:[Ts(2)])),Lt)}function Pf(Re){return st(t.createCallExpression(t.createPropertyAccessExpression(me,"sent"),void 0,[]),Re)}function sc(){de(0)}function Rl(Re){Re?de(1,[Re]):sc()}function ll(Re,Lt,Hn){de(2,[Re,Lt],Hn)}function Mo(Re,Lt){de(3,[Re],Lt)}function tn(Re,Lt,Hn){de(4,[Re,Lt],Hn)}function Gs(Re,Lt,Hn){de(5,[Re,Lt],Hn)}function rd(Re,Lt){de(7,[Re],Lt)}function pd(Re,Lt){de(6,[Re],Lt)}function Sp(Re,Lt){de(8,[Re],Lt)}function Ns(Re,Lt){de(9,[Re],Lt)}function Ic(){de(10)}function de(Re,Lt,Hn){ce===void 0&&(ce=[],z=[],ee=[]),K===void 0&&Ne(We());let go=ce.length;ce[go]=Re,z[go]=Lt,ee[go]=Hn}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=Me();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 Me(){if(ce){for(let Re=0;Re=0;Lt--){let Hn=Ce[Lt];fe=[t.createWithStatement(Hn.expression,t.createBlock(fe))]}if(he){let{startLabel:Lt,catchLabel:Hn,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(Hn),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(Le,Qe(D.externalHelpersImportDeclaration,J,Hi)),Ur(Le,zn(U.statements,J,Hi,k)),q(Le,!1),Xh(Le,s());let ie=r.updateSourceFile(U,st(r.createNodeArray(Le),U.statements));return Fg(ie,e.readEmitHelpers()),ie}function ce(U){let Le=r.createIdentifier("define"),Nt=Yk(r,U,h,d),k=qf(U)&&U,{aliasedModuleNames:ie,unaliasedModuleNames:H,importAliasNames:ue}=ee(U,!0),We=r.updateSourceFile(U,st(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Le,void 0,[...Nt?[Nt]:[],r.createArrayLiteralExpression(k?Ye:[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:Le,unaliasedModuleNames:Nt,importAliasNames:k}=ee(U,!1),ie=Yk(r,U,h,d),H=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,st(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"),...Le,...Nt]),r.createIdentifier("factory")]))])))],!0),void 0)),ue=r.updateSourceFile(U,st(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,Le){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=u1(r,H,N,h,p,d),We=VR(r,H,N);ue&&(Le&&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)||Yl(U)||!u1(r,U,N,h,p,d))return;let Le=VR(r,U,N),Nt=Eo(U,Le);if(Nt!==Le)return r.createExpressionStatement(r.createAssignment(Le,Nt))}function ge(U){o();let Le=[],Nt=r.copyPrologue(U.statements,Le,!d.noImplicitUseStrict,J);Y()&&Tn(Le,Rt()),Nn(D.exportedNames)&&Tn(Le,r.createExpressionStatement(nu(D.exportedNames,(ie,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(vr(H))),ie),r.createVoidZero()))),Tn(Le,Qe(D.externalHelpersImportDeclaration,J,Hi)),y===2&&Ur(Le,to(D.externalImports,me)),Ur(Le,zn(U.statements,J,Hi,Nt)),q(Le,!0),Xh(Le,s());let k=r.createBlock(Le,!0);return j&&KI(k,XIe),k}function q(U,Le){if(D.exportEquals){let Nt=Qe(D.exportEquals.expression,xe,ht);if(Nt)if(Le){let k=r.createReturnStatement(Nt);st(k,D.exportEquals),dr(k,3840),U.push(k)}else{let k=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Nt));st(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 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 ke(U);case 254:return Et(U);case 245:return be(U);case 255:return ze(U);case 269:return nt(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,Le){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,Le);case 360:return Jn(U,Le);case 213:if(Wp(U)&&N.impliedNodeFormat===void 0)return Yt(U);break;case 226:if(Oy(U))return he(U,Le);break;case 224:case 225:return pn(U,Le)}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 Le of U.properties)switch(Le.kind){case 303:if(ne(Le.initializer))return!0;break;case 304:if(ne(Le.name))return!0;break;case 305:if(ne(Le.expression))return!0;break;case 174:case 177:case 178:return!1;default:R.assertNever(Le,"Unhandled object member kind")}else if(pu(U)){for(let Le of U.elements)if(Ym(Le)){if(ne(Le.expression))return!0}else if(ne(Le))return!0}else if(Fe(U))return Nn(un(U))>($4(U)?1:0);return!1}function he(U,Le){return ne(U.left)?KT(U,xe,e,0,!Le,yi):Sn(U,xe,e)}function Ce(U,Le){if(Le&&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,Le?re:xe,e);return k.push(r.updateForStatement(U,void 0,ue,We,Ne)),k}}return r.updateForStatement(U,Qe(U.initializer,fe,bf),Qe(U.condition,xe,ht),Qe(U.incrementor,fe,ht),Iu(U.statement,Le?re:xe,e))}function Ge(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Le=vn(void 0,U.initializer,!0);if(gt(Le)){let Nt=Qe(U.initializer,fe,bf),k=Qe(U.expression,xe,ht),ie=Iu(U.statement,re,e),H=Ho(ie)?r.updateBlock(ie,[...Le,...ie.statements]):r.createBlock([...Le,ie],!0);return r.updateForInStatement(U,Nt,k,H)}}return r.updateForInStatement(U,Qe(U.initializer,fe,bf),Qe(U.expression,xe,ht),Iu(U.statement,re,e))}function ve(U){if(Uc(U.initializer)&&!(U.initializer.flags&7)){let Le=vn(void 0,U.initializer,!0),Nt=Qe(U.initializer,fe,bf),k=Qe(U.expression,xe,ht),ie=Iu(U.statement,re,e);return gt(Le)&&(ie=Ho(ie)?r.updateBlock(ie,[...Le,...ie.statements]):r.createBlock([...Le,ie],!0)),r.updateForOfStatement(U,U.awaitModifier,Nt,k,ie)}return r.updateForOfStatement(U,U.awaitModifier,Qe(U.initializer,fe,bf),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 ke(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,EP)))}function nt(U){return r.updateCaseBlock(U,zn(U.clauses,re,hF))}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,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,Le){return r.updateParenthesizedExpression(U,Qe(U.expression,Le?fe:xe,ht))}function Jn(U,Le){return r.updatePartiallyEmittedExpression(U,Qe(U.expression,Le?fe:xe,ht))}function pn(U,Le){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!ol(U.operand)&&!Bg(U.operand)&&!tU(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),Le||(k=r.createTempVariable(l),ie=r.createAssignment(k,ie),st(ie,U)),ie=r.createComma(ie,r.cloneNode(U.operand)),st(ie,U));for(let H of Nt)w[is(ie)]=!0,ie=we(H,ie),st(ie,U);return k&&(w[is(ie)]=!0,ie=r.createComma(ie,k),st(ie,U)),ie}}return Sn(U,xe,e)}function Yt(U){if(y===0&&m>=7)return Sn(U,xe,e);let Le=u1(r,U,N,h,p,d),Nt=Qe(Yc(U.arguments),xe,ht),k=Le&&(!Nt||!Da(Nt)||Nt.text!==Le.text)?Le: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,Le){if(j=!0,iS(U)){let Nt=ol(U)?U:Da(U)?r.createStringLiteralFromNode(U):dr(st(r.cloneNode(U),U),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,uo(U),void 0,hi(Nt,Le))}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,Le)))}}function hi(U,Le){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),Le&&dr(ue,16));let We=r.createNewExpression(r.createIdentifier("Promise"),void 0,[ue]);return hh(d)?r.createCallExpression(r.createPropertyAccessExpression(We,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):We}function uo(U,Le){let Nt=U&&!w_(U)&&!Le,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]:[]);hh(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,Le){return!hh(d)||bm(U)&2?Le:nle(U)?i().createImportStarHelper(Le):Le}function Eo(U,Le){return!hh(d)||bm(U)&2?Le:z3(U)?i().createImportStarHelper(Le):MK(U)?i().createImportDefaultHelper(Le):Le}function Zn(U){let Le,Nt=aR(U);if(y!==2)if(U.importClause){let k=[];Nt&&!CI(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&&CI(U)&&k.push(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)))),Le=Tn(Le,Rr(st(r.createVariableStatement(void 0,r.createVariableDeclarationList(k,m>=2?2:0)),U),U))}else return Rr(st(r.createExpressionStatement(jr(U)),U),U);else Nt&&CI(U)&&(Le=Tn(Le,r.createVariableStatement(void 0,r.createVariableDeclarationList([Rr(st(r.createVariableDeclaration(r.cloneNode(Nt.name),void 0,void 0,r.getGeneratedNameForNode(U)),U),U)],m>=2?2:0))));return Le=Ao(Le,U),oh(Le)}function jr(U){let Le=u1(r,U,N,h,p,d),Nt=[];return Le&&Nt.push(Le),r.createCallExpression(r.createIdentifier("require"),void 0,Nt)}function Sr(U){R.assert(lE(U),"import= for internal module references should be handled in an earlier transformer.");let Le;return y!==2?$r(U,32)?Le=Tn(Le,Rr(st(r.createExpressionStatement(we(U.name,jr(U))),U),U)):Le=Tn(Le,Rr(st(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)&&(Le=Tn(Le,Rr(st(r.createExpressionStatement(we(r.getExportName(U),r.getLocalName(U))),U),U))),Le=da(Le,U),oh(Le)}function on(U){if(!U.moduleSpecifier)return;let Le=r.getGeneratedNameForNode(U);if(U.exportClause&&Rf(U.exportClause)){let Nt=[];y!==2&&Nt.push(Rr(st(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Le,void 0,void 0,jr(U))])),U),U));for(let k of U.exportClause.elements)if(m===0)Nt.push(Rr(st(r.createExpressionStatement(i().createCreateBindingHelper(Le,r.createStringLiteralFromNode(k.propertyName||k.name),k.propertyName?r.createStringLiteralFromNode(k.name):void 0)),k),k));else{let ie=!!hh(d)&&!(bm(U)&2)&&vr(k.propertyName||k.name)==="default",H=r.createPropertyAccessExpression(ie?i().createImportDefaultHelper(Le):Le,k.propertyName||k.name);Nt.push(Rr(st(r.createExpressionStatement(we(r.getExportName(k),H,void 0,!0)),k),k))}return oh(Nt)}else if(U.exportClause){let Nt=[];return Nt.push(Rr(st(r.createExpressionStatement(we(r.cloneNode(U.exportClause.name),Li(U,y!==2?jr(U):RF(U)?Le:r.createIdentifier(vr(U.exportClause.name))))),U),U)),oh(Nt)}else return Rr(st(r.createExpressionStatement(i().createExportStarHelper(y!==2?jr(U):Le)),U),U)}function $e(U){if(!U.isExportEquals)return se(r.createIdentifier("default"),Qe(U.expression,xe,ht),U,!0)}function Wt(U){let Le;return $r(U,32)?Le=Tn(Le,Rr(st(r.createFunctionDeclaration(zn(U.modifiers,lt,Sa),U.asteriskToken,r.getDeclarationName(U,!0,!0),void 0,zn(U.parameters,xe,To),void 0,Sn(U.body,xe,e)),U),U)):Le=Tn(Le,Sn(U,xe,e)),Le=Be(Le,U),oh(Le)}function In(U){let Le;return $r(U,32)?Le=Tn(Le,Rr(st(r.createClassDeclaration(zn(U.modifiers,lt,al),r.getDeclarationName(U,!0,!0),void 0,zn(U.heritageClauses,xe,ef),zn(U.members,xe,Qc)),U),U)):Le=Tn(Le,Sn(U,xe,e)),Le=Be(Le,U),oh(Le)}function si(U){let Le,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,lt,Sa)),ue.initializer){let We=r.updateVariableDeclaration(ue,ue.name,void 0,void 0,we(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(st(r.createPropertyAccessExpression(r.createIdentifier("exports"),ue.name),ue.name),r.createIdentifier(Yf(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&&(Le=Tn(Le,r.updateVariableStatement(U,ie,r.updateVariableDeclarationList(U.declarationList,Nt)))),k){let ue=Rr(st(r.createExpressionStatement(r.inlineExpressions(k)),U),U);H&&Ck(ue),Le=Tn(Le,ue)}}else Le=Tn(Le,Sn(U,xe,e));return Le=Ba(Le,U),oh(Le)}function yi(U,Le,Nt){let k=un(U);if(k){let ie=$4(U)?Le:r.createAssignment(U,Le);for(let H of k)dr(ie,8),ie=we(H,ie,Nt);return ie}return r.createAssignment(U,Le)}function $i(U){return $o(U.name)?KT(Qe(U,xe,ck),xe,e,0,!1,yi):r.createAssignment(st(r.createPropertyAccessExpression(r.createIdentifier("exports"),U.name),U.name),U.initializer?Qe(U.initializer,xe,ht):r.createVoidZero())}function Ao(U,Le){if(D.exportEquals)return U;let Nt=Le.importClause;if(!Nt)return U;let k=new g1;Nt.name&&(U=dt(U,k,Nt));let ie=Nt.namedBindings;if(ie)switch(ie.kind){case 274:U=dt(U,k,ie);break;case 275:for(let H of ie.elements)U=dt(U,k,H,!0);break}return U}function da(U,Le){return D.exportEquals?U:dt(U,new g1,Le)}function Ba(U,Le){return vn(U,Le.declarationList,!1)}function vn(U,Le,Nt){if(D.exportEquals)return U;for(let k of Le.declarations)U=kn(U,k,Nt);return U}function kn(U,Le,Nt){if(D.exportEquals)return U;if($o(Le.name))for(let k of Le.name.elements)jc(k)||(U=kn(U,k,Nt));else!ol(Le.name)&&(!Oi(Le)||Le.initializer||Nt)&&(U=dt(U,new g1,Le));return U}function Be(U,Le){if(D.exportEquals)return U;let Nt=new g1;if($r(Le,32)){let k=$r(Le,2048)?r.createIdentifier("default"):r.getDeclarationName(Le);U=ct(U,Nt,k,r.getLocalName(Le),Le)}return Le.name&&(U=dt(U,Nt,Le)),U}function dt(U,Le,Nt,k){let ie=r.getDeclarationName(Nt),H=D.exportSpecifiers.get(ie);if(H)for(let ue of H)U=ct(U,Le,ue.name,ie,ue.name,void 0,k);return U}function ct(U,Le,Nt,k,ie,H,ue){return Le.has(Nt)||(Le.set(Nt,!0),U=Tn(U,se(Nt,k,ie,H,ue))),U}function Rt(){let U;return m===0?U=r.createExpressionStatement(we(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,Le,Nt,k,ie){let H=st(r.createExpressionStatement(we(U,Le,void 0,ie)),Nt);return qd(H),k||dr(H,3072),H}function we(U,Le,Nt,k){return st(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(Le)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),Le),Nt)}function lt(U){switch(U.kind){case 95:case 90:return}return U}function G(U,Le,Nt){Le.kind===312?(N=Le,D=A[Od(N)],S(U,Le,Nt),N=void 0,D=void 0):S(U,Le,Nt)}function tt(U,Le){return Le=E(U,Le),Le.id&&w[Le.id]?Le:U===1?He(Le):ep(Le)?Tt(Le):Le}function Tt(U){let Le=U.name,Nt=hn(Le);if(Nt!==Le){if(U.objectAssignmentInitializer){let k=r.createAssignment(Nt,U.objectAssignmentInitializer);return st(r.createPropertyAssignment(Le,k),U)}return st(r.createPropertyAssignment(Le,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 Le=hn(U.expression);if(w[is(Le)]=!0,!Fe(Le)&&!(za(U.expression)&8192))return UI(r.updateCallExpression(U,Le,void 0,U.arguments),16)}return U}function Bt(U){if(Fe(U.tag)){let Le=hn(U.tag);if(w[is(Le)]=!0,!Fe(Le)&&!(za(U.tag)&8192))return UI(r.updateTaggedTemplateExpression(U,Le,void 0,U.template),16)}return U}function hn(U){var Le,Nt;if(za(U)&8192){let k=Xk(N);return k?r.createPropertyAccessExpression(k,U):U}else if(!(ol(U)&&!(U.emitNode.autoGenerate.flags&64))&&!Bg(U)){let k=p.getReferencedExportContainer(U,$4(U));if(k&&k.kind===312)return st(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(U)),U);let ie=p.getReferencedImportDeclaration(U);if(ie){if(vh(ie))return st(r.createPropertyAccessExpression(r.getGeneratedNameForNode(ie.parent),r.createIdentifier("default")),U);if(Zu(ie)){let H=ie.propertyName||ie.name;return st(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Nt=(Le=ie.parent)==null?void 0:Le.parent)==null?void 0:Nt.parent)||ie),r.cloneNode(H)),U)}}}return U}function dn(U){if(wy(U.operatorToken.kind)&&Fe(U.left)&&(!ol(U.left)||s2(U.left))&&!Bg(U.left)){let Le=un(U.left);if(Le){let Nt=U;for(let k of Le)w[is(Nt)]=!0,Nt=we(k,Nt,U);return Nt}}return U}function un(U){if(ol(U)){if(s2(U)){let Le=D?.exportSpecifiers.get(U);if(Le){let Nt=[];for(let k of Le)Nt.push(k.name);return Nt}}}else{let Le=p.getReferencedImportDeclaration(U);if(Le)return D?.exportedBindings[Od(Le)];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 XIe,hVe=bt({"src/compiler/transformers/module/module.ts"(){"use strict";Zo(),XIe={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=we,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 Rm(e,B);function B(U){if(U.isDeclarationFile||!(RI(U,s)||U.transformFlags&8388608))return U;let Le=Od(U);A=U,K=U,N=m[Le]=LK(e,U),D=t.createUniqueName("exports"),y[Le]=D,w=S[Le]=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=Yk(t,U,d,s),ue=t.createArrayLiteralExpression(mn(Nt,Ne=>Ne.name)),We=dr(t.updateSourceFile(U,st(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)||Zoe(We,k,Ne=>!Ne.scoped),Y&&(E[Le]=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 Le=new Map,Nt=[];for(let k of U){let ie=u1(t,k,A,d,l,s);if(ie){let H=ie.text,ue=Le.get(H);ue!==void 0?Nt[ue].externalImports.push(k):(Le.set(H,Nt.length),Nt.push({name:ie,externalImports:[k]}))}}return Nt}function z(U,Le){let Nt=[];r();let k=du(s,"alwaysStrict")||!s.noImplicitUseStrict&&ac(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,Le)),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 Le=[];if(N.exportedNames)for(let ie of N.exportedNames)ie.escapedText!=="default"&&Le.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(Le,!0))])));let k=me(Nt);return U.push(k),k.name}function me(U){let Le=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,Le,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,Le){let Nt=[];for(let k of Le){let ie=gn(k.externalImports,We=>VR(t,We,A)),H=ie?t.getGeneratedNameForNode(ie):t.createUniqueName(""),ue=[];for(let We of k.externalImports){let Ne=VR(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(Rf(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 Le;return U.importClause&&o(VR(t,U,A)),oh(Et(Le,U))}function re(U){R.assertIsDefined(U)}function pe(U){R.assert(lE(U),"import= for internal module references should be handled in an earlier transformer.");let Le;return o(VR(t,U,A)),oh(be(Le,U))}function xe(U){if(U.isExportEquals)return;let Le=Qe(U.expression,$i,ht);return ft(t.createIdentifier("default"),Le,!0)}function fe(U){$r(U,32)?j=Tn(j,t.updateFunctionDeclaration(U,zn(U.modifiers,Rt,al),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=Ft(j,U)}function ne(U){let Le,Nt=t.getLocalName(U);return o(Nt),Le=Tn(Le,st(t.createExpressionStatement(t.createAssignment(Nt,st(t.createClassExpression(zn(U.modifiers,Rt,al),U.name,void 0,zn(U.heritageClauses,$i,ef),zn(U.members,$i,Qc)),U))),U)),Le=Ft(Le,U),oh(Le)}function he(U){if(!Ge(U.declarationList))return Qe(U,$i,Hi);let Le;if(I2(U.declarationList)||A2(U.declarationList)){let Nt=zn(U.modifiers,Rt,al),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);Le=Tn(Le,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&&(Le=Tn(Le,st(t.createExpressionStatement(t.inlineExpressions(Nt)),U)))}return Le=ze(Le,U,!1),oh(Le)}function Ce(U){if($o(U.name))for(let Le of U.name.elements)jc(Le)||Ce(Le);else o(t.cloneNode(U.name))}function Ge(U){return(za(U)&4194304)===0&&(K.kind===312||(Nl(U).flags&7)===0)}function ve(U,Le){let Nt=Le?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,Le,Nt){return ke(U,Le,Nt,!0)}function De(U,Le,Nt){return ke(U,Le,Nt,!1)}function ke(U,Le,Nt,k){return o(t.cloneNode(U)),k?Zt(U,dn(st(t.createAssignment(U,Le),Nt))):dn(st(t.createAssignment(U,Le),Nt))}function Et(U,Le){if(N.exportEquals)return U;let Nt=Le.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,Le){return N.exportEquals?U:_t(U,Le)}function ze(U,Le,Nt){if(N.exportEquals)return U;for(let k of Le.declarationList.declarations)(k.initializer||Nt)&&(U=nt(U,k,Nt));return U}function nt(U,Le,Nt){if(N.exportEquals)return U;if($o(Le.name))for(let k of Le.name.elements)jc(k)||(U=nt(U,k,Nt));else if(!ol(Le.name)){let k;Nt&&(U=Je(U,Le.name,t.getLocalName(Le)),k=vr(Le.name)),U=_t(U,Le,k)}return U}function Ft(U,Le){if(N.exportEquals)return U;let Nt;if($r(Le,32)){let k=$r(Le,2048)?t.createStringLiteral("default"):Le.name;U=Je(U,k,t.getLocalName(Le)),Nt=Yf(k)}return Le.name&&(U=_t(U,Le,Nt)),U}function _t(U,Le,Nt){if(N.exportEquals)return U;let k=t.getDeclarationName(Le),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,Le,Nt,k){return U=Tn(U,ft(Le,Nt,k)),U}function ft(U,Le,Nt){let k=t.createExpressionStatement(Zt(U,Le));return qd(k),Nt||dr(k,3072),k}function Zt(U,Le){let Nt=Fe(U)?t.createStringLiteralFromNode(U):U;return dr(Le,za(Le)|3072),oc(t.createCallExpression(D,void 0,[Nt,Le]),Le)}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 Jn(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 Wt(U);case 299:return In(U);case 241:return si(U);default:return $i(U)}}function Dn(U,Le){let Nt=K;return K=U,U=t.updateForStatement(U,Qe(U.initializer,Le?qt:Ao,bf),Qe(U.condition,$i,ht),Qe(U.incrementor,Ao,ht),Iu(U.statement,Le?en:$i,e)),K=Nt,U}function Jn(U){let Le=K;return K=U,U=t.updateForInStatement(U,qt(U.initializer),Qe(U.expression,$i,ht),Iu(U.statement,en,e)),K=Le,U}function pn(U){let Le=K;return K=U,U=t.updateForOfStatement(U,U.awaitModifier,qt(U.initializer),Qe(U.expression,$i,ht),Iu(U.statement,en,e)),K=Le,U}function Yt(U){return Uc(U)&&Ge(U)}function qt(U){if(Yt(U)){let Le;for(let Nt of U.declarations)Le=Tn(Le,ve(Nt,!1)),Nt.initializer||Ce(Nt);return Le?t.inlineExpressions(Le):t.createOmittedExpression()}else return Qe(U,Ao,bf)}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,EP)))}function Sr(U){let Le=K;return K=U,U=t.updateCaseBlock(U,zn(U.clauses,en,hF)),K=Le,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 Wt(U){return Sn(U,en,e)}function In(U){let Le=K;return K=U,U=t.updateCatchClause(U,U.variableDeclaration,R.checkDefined(Qe(U.block,en,Ho))),K=Le,U}function si(U){let Le=K;return K=U,U=Sn(U,en,e),K=Le,U}function yi(U,Le){if(!(U.transformFlags&276828160))return U;switch(U.kind){case 248:return Dn(U,!1);case 244:return da(U);case 217:return Ba(U,Le);case 360:return vn(U,Le);case 226:if(Oy(U))return Be(U,Le);break;case 213:if(Wp(U))return kn(U);break;case 224:case 225:return ct(U,Le)}return Sn(U,$i,e)}function $i(U){return yi(U,!1)}function Ao(U){return yi(U,!0)}function da(U){return t.updateExpressionStatement(U,Qe(U.expression,Ao,ht))}function Ba(U,Le){return t.updateParenthesizedExpression(U,Qe(U.expression,Le?Ao:$i,ht))}function vn(U,Le){return t.updatePartiallyEmittedExpression(U,Qe(U.expression,Le?Ao:$i,ht))}function kn(U){let Le=u1(t,U,A,d,l,s),Nt=Qe(Yc(U.arguments),$i,ht),k=Le&&(!Nt||!Da(Nt)||Nt.text!==Le.text)?Le:Nt;return t.createCallExpression(t.createPropertyAccessExpression(w,t.createIdentifier("import")),void 0,k?[k]:[])}function Be(U,Le){return dt(U.left)?KT(U,$i,e,0,!Le):Sn(U,$i,e)}function dt(U){if(Mc(U,!0))return dt(U.left);if(Ym(U))return dt(U.expression);if(Ma(U))return gt(U.properties,dt);if(pu(U))return gt(U.elements,dt);if(ep(U))return dt(U.name);if(_c(U))return dt(U.initializer);if(Fe(U)){let Le=l.getReferencedExportContainer(U);return Le!==void 0&&Le.kind===312}else return!1}function ct(U,Le){if((U.operator===46||U.operator===47)&&Fe(U.operand)&&!ol(U.operand)&&!Bg(U.operand)&&!tU(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),Le||(k=t.createTempVariable(o),ie=t.createAssignment(k,ie),st(ie,U)),ie=t.createComma(ie,t.cloneNode(U.operand)),st(ie,U));for(let H of Nt)ie=Zt(H,dn(ie));return k&&(ie=t.createComma(ie,k),st(ie,U)),ie}}return Sn(U,$i,e)}function Rt(U){switch(U.kind){case 95:case 90:return}return U}function se(U,Le,Nt){if(Le.kind===312){let k=Od(Le);A=Le,N=m[k],D=y[k],Y=E[k],w=S[k],Y&&delete E[k],h(U,Le,Nt),A=void 0,N=void 0,D=void 0,w=void 0,Y=void 0}else h(U,Le,Nt)}function we(U,Le){return Le=p(U,Le),un(Le)?Le:U===1?tt(Le):U===4?lt(Le):Le}function lt(U){switch(U.kind){case 304:return G(U)}return U}function G(U){var Le,Nt;let k=U.name;if(!ol(k)&&!Bg(k)){let ie=l.getReferencedImportDeclaration(k);if(ie){if(vh(ie))return st(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ie.parent),t.createIdentifier("default"))),U);if(Zu(ie))return st(t.createPropertyAssignment(t.cloneNode(k),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Nt=(Le=ie.parent)==null?void 0:Le.parent)==null?void 0:Nt.parent)||ie),t.cloneNode(ie.propertyName||ie.name))),U)}}return U}function tt(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 Le,Nt;if(za(U)&8192){let k=Xk(A);return k?t.createPropertyAccessExpression(k,U):U}if(!ol(U)&&!Bg(U)){let k=l.getReferencedImportDeclaration(U);if(k){if(vh(k))return st(t.createPropertyAccessExpression(t.getGeneratedNameForNode(k.parent),t.createIdentifier("default")),U);if(Zu(k))return st(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Nt=(Le=k.parent)==null?void 0:Le.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)&&(!ol(U.left)||s2(U.left))&&!Bg(U.left)){let Le=Bt(U.left);if(Le){let Nt=U;for(let k of Le)Nt=Zt(k,dn(Nt));return Nt}}return U}function pt(U){return $x(U)?t.createPropertyAccessExpression(w,t.createIdentifier("meta")):U}function Bt(U){let Le,Nt=hn(U);if(Nt){let k=l.getReferencedExportContainer(U,!1);k&&k.kind===312&&(Le=Tn(Le,t.getDeclarationName(Nt))),Le=Ur(Le,N?.exportedBindings[Od(Nt)])}else if(ol(U)&&s2(U)){let k=N?.exportSpecifiers.get(U);if(k){let ie=[];for(let H of k)ie.push(H.name);return ie}}return Le}function hn(U){if(!ol(U)){let Le=l.getReferencedImportDeclaration(U);if(Le)return Le;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 gVe=bt({"src/compiler/transformers/module/system.ts"(){"use strict";Zo()}});function HK(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 Rm(e,E);function E(z){if(z.isDeclarationFile)return z;if(ac(z)||tm(s)){m=z,y=void 0;let ee=S(z);return m=void 0,y&&(ee=t.updateSourceFile(ee,st(t.createNodeArray(JV(ee.statements.slice(),y)),ee.statements))),!ac(z)||kd(s)===200||gt(ee.statements,p2)?ee:t.updateSourceFile(ee,st(t.createNodeArray([...ee.statements,Kk(t)]),ee.statements))}return z}function S(z){let ee=AH(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,st(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=u1(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(lE(z),"import= for internal module references should be handled in an earlier transformer.");let ee;return ee=Tn(ee,Rr(st(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),oh(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||!bh(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)?((ac(ee)||tm(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 yVe=bt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Zo()}});function Ole(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=HK(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=UK(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 vVe=bt({"src/compiler/transformers/module/node.ts"(){"use strict";Zo()}});function J3(e){return Oi(e)||jo(e)||hp(e)||Xa(e)||Py(e)||Mv(e)||Fk(e)||ZI(e)||Hl(e)||gh(e)||Sc(e)||To(e)||_l(e)||Gy(e)||nd(e)||Im(e)||Pl(e)||U0(e)||kr(e)||Ys(e)||pr(e)||Xf(e)}function Wle(e){if(Py(e)||Mv(e))return t;return gh(e)||Hl(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)||hp(e)||kr(e)||Ys(e)||pr(e)||Xa(e)||Pl(e))return r;return Py(e)||Mv(e)?i:Fk(e)||ZI(e)||Hl(e)||gh(e)||Sc(e)||U0(e)?o:To(e)?up(e,e.parent)&&$r(e.parent,2)?r:s:_l(e)?d:Gy(e)?p:nd(e)?h:Im(e)||Xf(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 Tc(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:Xf(e)?R.checkDefined(e.typeExpression):e.type,typeName:Xf(e)?No(e):e.name}}}var bVe=bt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Zo()}});function Fle(e,t,r){let i=e.getCompilerOptions();return Nw(t,e,L,i,r?[r]:Vr(e.getSourceFiles(),_j),[KK],!1).diagnostics}function KK(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:ke,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 tt of G)h.add(tt)}}function J(G,tt){let Tt=z.getTypeReferenceDirectivesForSymbol(tt,-1);if(Nn(Tt))return q(Tt);let He=Vn(G);Y.set(Od(He),He)}function re(G){let tt=iR(G),Tt=tt&&z.tryFindAmbientModule(tt);if(Tt?.declarations)for(let He of Tt.declarations)Ld(He)&&Vn(He)!==K&&J(He,Tt)}function pe(G){if(G.accessibility===0){if(G.aliasesToMakeVisible)if(!m)m=G.aliasesToMakeVisible;else for(let tt of G.aliasesToMakeVisible)vf(m,tt)}else{let tt=r(G);if(tt)return tt.typeName?e.addDiagnostic(Pr(G.errorNode||tt.errorNode,tt.diagnosticMessage,pc(tt.typeName),G.errorSymbolName,G.errorModuleName)):e.addDiagnostic(Pr(G.errorNode||tt.errorNode,tt.diagnosticMessage,G.errorSymbolName,G.errorModuleName)),!0}return!1}function xe(G){o||(S||(S=[])).push(G)}function fe(G,tt,Tt){if(G.flags&262144)return!1;let He=pe(z.isSymbolAccessible(G,tt,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&&Ll(j)?j.isExportEquals?"export=":"default":"(Missing)"}function Ce(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"unique symbol"))}function Ge(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,he()))}function ve(){(w||j)&&e.addDiagnostic(Pr(w||j,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,he(),"this"))}function 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 ke(G,tt,Tt){var He;let pt=(He=tt.declarations)==null?void 0:He.find(hn=>Vn(hn)===G),Bt=Vr(Tt.declarations,hn=>Vn(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,tt){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,tt);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 Le=!1,Nt=A.createBundle(mn(G.sourceFiles,H=>{if(H.isDeclarationFile)return;if(Le=Le||H.hasNoDefaultLib,K=H,p=H,m=void 0,E=!1,y=new Map,r=t,l=!1,d=!1,nt(H,Y),Ft(H,B),Op(H)||qf(H)){s=!1,i=!1;let We=lu(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(st(A.createNodeArray($e(We)),H.statements)))],!0,[],[],!1,[])}i=!0;let ue=lu(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=VU(H,"dts",ge);return Le=Le||!!ue.hasNoDefaultLib,nt(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=Le;let k=oi(Md(qP(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=nt(K,new Map),B=Ft(K,new Map);let tt=[],Tt=oi(Md(qP(G,N,!0).declarationFilePath)),He=U(tt,Tt),pt;if(lu(K))pt=A.createNodeArray(be(G)),Y.forEach(He),ce=Vr(pt,mT);else{let Le=zn(G.statements,si,Hi);pt=st(A.createNodeArray($e(Le)),G.statements),Y.forEach(He),ce=Vr(pt,mT),ac(G)&&(!s||l&&!d)&&(pt=st(A.createNodeArray([...pt,Kk(A)]),pt))}let Bt=A.updateSourceFile(G,pt,!0,tt,dn(),G.hasNoDefaultLib,hn());return Bt.exportedModulesFromDeclarationEmit=S,Bt;function hn(){return Oo(B.keys(),Le=>({fileName:Le,pos:-1,end:-1}))}function dn(){return h?to(Oo(h.keys()),un):[]}function un([Le,Nt]){if(ce){for(let k of ce)if(nd(k)&&Eh(k.moduleReference)){let ie=k.moduleReference.expression;if(ss(ie)&&ie.text===Le)return}else if(Lc(k)&&Da(k.moduleSpecifier)&&k.moduleSpecifier.text===Le)return}return{fileName:Le,pos:-1,end:-1,...Nt?{resolutionMode:Nt}:void 0}}function U(Le,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=qP(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(!kp(H)){q([[H,void 0]]);return}let ue=vI(Nt,ie,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(ao(ue,"./")&&yI(ue)&&(ue=ue.substring(2)),ao(ue,"node_modules/")||IE(ue))return;Le.push({pos:-1,end:-1,fileName:ue})}}}}function nt(G,tt){return me||!zT(G)&&lu(G)||gn(G.referencedFiles,Tt=>{let He=N.getSourceFileFromReference(G,Tt);He&&tt.set(Od(He),He)}),tt}function Ft(G,tt){return gn(G.libReferenceDirectives,Tt=>{N.getLibFileFromReference(Tt)&&tt.set(ah(Tt.fileName),!0)}),tt}function _t(G){if(G.kind===80)return G;return G.kind===207?A.updateArrayBindingPattern(G,zn(G.elements,tt,pF)):A.updateObjectBindingPattern(G,zn(G.elements,tt,Xa));function tt(Tt){return Tt.kind===232?Tt:(Tt.propertyName&&$a(Tt.propertyName)&&Gl(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,tt,Tt){let He;E||(He=r,r=jy(G));let pt=A.updateParameterDeclaration(G,SVe(A,G,tt),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 TVe(G)&&z.isLiteralConstDeclaration(Ro(G))}function Zt(G){if(ft(G))return z.createLiteralConstValue(Ro(G),D)}function en(G,tt,Tt){if(!Tt&&mp(G,2)||ft(G))return;let He=G.kind===169&&(z.isRequiredInitializedParameter(G)||z.isOptionalUninitializedParameterProperty(G));if(tt&&!He)return Qe(tt,Wt,ji);if(!Ro(G))return tt?Qe(tt,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,JT,D));if(G.kind===169||G.kind===172||G.kind===171)return hp(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 Jn(G){var tt;if(G.body)return!0;let Tt=(tt=G.symbol.declarations)==null?void 0:tt.filter(He=>Sc(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,tt,Tt){if(mp(G,2))return A.createNodeArray();let He=mn(tt,pt=>Je(pt,Tt));return He?A.createNodeArray(He,tt.hasTrailingComma):A.createNodeArray()}function qt(G,tt){let Tt;if(!tt){let He=w0(G);He&&(Tt=[Je(He)])}if(gp(G)){let He;if(!tt){let pt=WN(G);if(pt){let Bt=we(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||Ye)}function hi(G,tt){return mp(G,2)?void 0:zn(tt,Wt,_l)}function uo(G){return Yi(G)||Im(G)||Xl(G)||Tc(G)||fu(G)||Yo(G)||U0(G)||LR(G)}function Li(G,tt){let Tt=z.isEntityNameVisible(G,tt);pe(Tt),q(z.getTypeReferenceDirectivesForEntityName(G))}function Eo(G,tt){return wp(G)&&wp(tt)&&(G.jsDoc=tt.jsDoc),oc(G,P_(tt))}function Zn(G,tt){if(tt){if(s=s||G.kind!==267&&G.kind!==205,ss(tt))if(o){let Tt=Cie(e.getEmitHost(),z,G);if(Tt)return A.createStringLiteral(Tt)}else{let Tt=z.getSymbolOfExternalModuleSpecifier(tt);Tt&&(S||(S=[])).push(Tt)}return tt}}function jr(G){if(z.isDeclarationVisible(G))if(G.moduleReference.kind===283){let tt=IN(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,Zn(G,tt)))}else{let tt=r;return r=jy(G),Li(G.moduleReference,p),r=tt,G}}function Sr(G){if(!G.importClause)return A.updateImportDeclaration(G,G.modifiers,G.importClause,Zn(G,G.moduleSpecifier),on(G.attributes));let tt=G.importClause&&G.importClause.name&&z.isDeclarationVisible(G.importClause)?G.importClause.name:void 0;if(!G.importClause.namedBindings)return tt&&A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,tt,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 tt||He?A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,tt,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||tt)return A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,tt,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 tt=nD(G);return G&&tt!==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)&&!(ac(Tt.parent)&&o);let pt=Ao(Tt);i=He,y.set(Od(Tt),pt)}return zn(G,tt,Hi);function tt(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,p2):p2(pt))&&(s=!0)),pt}}return Tt}}function Wt(G){if(Be(G)||Kd(G)&&(Dn(G)||Wv(G)&&!z.isLateBound(Ro(G)))||Yo(G)&&z.isImplementationOfOverload(G)||yae(G))return;let tt;uo(G)&&(tt=p,p=G);let Tt=r,He=J3(G),pt=E,Bt=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((Hl(G)||gh(G))&&mp(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)),e1(G)&&Li(G.exprName,p),Bt&&(E=!0),IVe(G))switch(G.kind){case 233:{(Yu(G.expression)||Gl(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=we(G,z.getAllAccessorDeclarations(G));return hn(A.updateGetAccessorDeclaration(G,Rt(G),G.name,qt(G,mp(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,mp(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 $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,Wt,e));case 194:{let dn=Qe(G.checkType,Wt,ji),un=Qe(G.extendsType,Wt,ji),U=p;p=G.trueType;let Le=Qe(G.trueType,Wt,ji);p=U;let Nt=Qe(G.falseType,Wt,ji);return R.assert(dn),R.assert(un),R.assert(Le),R.assert(Nt),hn(A.updateConditionalTypeNode(G,dn,un,Le,Nt))}case 184:return hn(A.updateFunctionTypeNode(G,zn(G.typeParameters,Wt,_l),Yt(G,G.parameters),R.checkDefined(Qe(G.type,Wt,ji))));case 185:return hn(A.updateConstructorTypeNode(G,Rt(G),zn(G.typeParameters,Wt,_l),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,Zn(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 t1(G)&&ys(K,G.pos).line===ys(K,G.end).line&&dr(G,1),hn(Sn(G,Wt,e));function hn(dn){return dn&&He&&Wv(G)&&kn(G),uo(G)&&(p=tt),He&&!E&&(r=Tt),Bt&&(E=pt),dn===G?dn:dn&&Rr(Eo(dn,G),G)}}function In(G){return G.parent.kind===174&&mp(G.parent,2)}function si(G){if(!AVe(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),Ck(G),[pt,A.updateExportAssignment(G,G.modifiers,Tt)]}}}let tt=Ao(G);return y.set(Od(G),tt),G}function yi(G){if(nd(G)||mp(G,2048)||!xm(G))return G;let tt=A.createModifiersFromModifierFlags(cu(G)&131039);return A.replaceModifiers(G,tt)}function $i(G,tt,Tt,He){let pt=A.updateModuleDeclaration(G,tt,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),st(Bt,pt),Bt}function Ao(G){if(m)for(;Rx(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 tt;uo(G)&&(tt=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,Wt,_l),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),lt(G.heritageClauses),zn(G.members,Wt,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)&&Jn(G)){let dn=z.getPropertiesOfContainerFunction(G),un=Sh.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=[],Le=to(dn,We=>{if(!H6(We.valueDeclaration))return;let Ne=Vi(We.escapedName);if(!$p(Ne,99))return;r=jy(We.valueDeclaration);let It=z.createTypeOfDeclaration(We.valueDeclaration,un,JT,D);r=He;let Dt=LI(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?Le.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(mn(U,([We,Ne])=>A.createExportSpecifier(!1,We,Ne))))):Le=to(Le,We=>A.replaceModifiers(We,0));let Nt=A.createModuleDeclaration(Rt(G),G.name,A.createModuleBlock(Le),32);if(!mp(hn,2048))return[hn,Nt];let k=A.createModifiersFromModifierFlags(cu(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),Le=$e(U);G.flags&33554432&&(l=!1),!T_(G)&&!ct(Le)&&!d&&(l?Le=A.createNodeArray([...Le,Kk(A)]):Le=zn(Le,yi,Hi));let Nt=A.updateModuleBlock(hn,Le);i=pt,l=dn,d=un;let k=Rt(G);return Bt($i(G,k,x0(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=DL(ya(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,Wt,Qc)),ie=A.createNodeArray(k),H=A_(G);if(H&&!Gl(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,Wt,ji))));return r=En,wn}return A.updateHeritageClause(Kt,zn(A.createNodeArray(Vr(Kt.types,En=>Gl(En.expression)||En.expression.kind===106)),Wt,Gy))}));return[It,Bt(A.updateClassDeclaration(G,hn,G.name,dn,Dt,ie))]}else{let ue=lt(G.heritageClauses);return Bt(A.updateClassDeclaration(G,hn,G.name,dn,ue,ie))}}case 243:return Bt(da(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=tt),Tt&&(r=He),G.kind===267&&(i=pt),hn===G?hn:(j=void 0,w=void 0,hn&&Rr(Eo(hn,G),G))}}function da(G){if(!gn(G.declarationList.declarations,pn))return;let tt=zn(G.declarationList.declarations,Wt,Oi);if(!Nn(tt))return;let Tt=A.createNodeArray(Rt(G)),He;return I2(G.declarationList)||A2(G.declarationList)?(He=A.createVariableDeclarationList(tt,2),Rr(He,G.declarationList),st(He,G.declarationList),oc(He,G.declarationList)):He=A.updateVariableDeclarationList(G.declarationList,tt),A.updateVariableStatement(G,Tt,He)}function Ba(G){return mm(to(G.elements,tt=>vn(tt)))}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 tt;E||(tt=r,r=Wle(G)),w=G.name,R.assert(z.isLateBound(Ro(G)));let He=G.name.expression;Li(He,p),E||(r=tt),w=void 0}function Be(G){return!!ge&&!!G&&jV(G,K)}function dt(G){return Ll(G)||Yl(G)}function ct(G){return gt(G,dt)}function Rt(G){let tt=cu(G),Tt=se(G);return tt===Tt?Iw(G.modifiers,He=>ri(He,Sa),Sa):A.createModifiersFromModifierFlags(Tt)}function se(G){let tt=130030,Tt=i&&!EVe(G)?128:0,He=G.parent.kind===312;return(!He||o&&He&&ac(G.parent))&&(tt^=128,Tt=0),YIe(G,tt,Tt)}function we(G,tt){let Tt=zle(G);return!Tt&&G!==tt.firstAccessor&&(Tt=zle(tt.firstAccessor),r=jy(tt.firstAccessor)),!Tt&&tt.secondAccessor&&G!==tt.secondAccessor&&(Tt=zle(tt.secondAccessor),r=jy(tt.secondAccessor)),Tt}function lt(G){return A.createNodeArray(Vr(mn(G,tt=>A.updateHeritageClause(tt,zn(A.createNodeArray(Vr(tt.types,Tt=>Gl(Tt.expression)||tt.token===96&&Tt.expression.kind===106)),Wt,Gy))),tt=>tt.types&&!!tt.types.length))}}function EVe(e){return e.kind===264}function SVe(e,t,r,i){return e.createModifiersFromModifierFlags(YIe(t,r,i))}function YIe(e,t=131070,r=0){let i=cu(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 TVe(e){switch(e.kind){case 172:case 171:return!mp(e,2);case 169:case 260:return!0}return!1}function AVe(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 IVe(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,xVe=bt({"src/compiler/transformers/declarations.ts"(){"use strict";Zo(),Use(),JT=531469}});function RVe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return HK;case 4:return wle;case 100:case 199:return Ole;default:return UK}}function JK(e,t,r){return{scriptTransformers:DVe(e,t,r),declarationTransformers:CVe(t)}}function DVe(e,t,r){if(r)return Ye;let i=rs(e),o=kd(e),s=dP(e),l=[];return Ur(l,t&&mn(t.before,QIe)),l.push(hle),e.experimentalDecorators&&l.push(vle),C6(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(RVe(o)),i<1&&l.push(Lle),Ur(l,t&&mn(t.after,QIe)),l}function CVe(e){let t=[];return t.push(KK),Ur(t,e&&mn(e.afterDeclarations,PVe)),t}function NVe(e){return t=>dH(t)?e.transformBundle(t):e.transformSourceFile(t)}function $Ie(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):NVe(i)}}function QIe(e){return $Ie(e,Rm)}function PVe(e){return $Ie(e,(t,r)=>r)}function HP(e,t){return t}function Cw(e,t,r){r(e,t)}function Nw(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=HP,me=Cw,ge=0,q=[],J={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Eu(()=>iae(J)),startLexicalEnvironment:be,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:nt,endLexicalEnvironment:Ft,setLexicalEnvironmentFlags:_t,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:De,hoistFunctionDeclaration:ke,addInitializationStatement:Et,startBlockScope:ft,endBlockScope:Zt,addBlockScopedVariable:en,requestEmitHelper:Dn,readEmitHelpers:Jn,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)KU(Vn(Ro(Yt)));nl("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=or)==null||d.push(or.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=or)==null||p.pop();return ge=2,nl("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&&(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 ke(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 nt(){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));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 Jn(){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)KU(Vn(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 qK,KP,MVe=bt({"src/compiler/transformer.ts"(){"use strict";Zo(),iT(),qK={scriptTransformers:Ye,declarationTransformers:Ye},KP={factory:L,getCompilerOptions:()=>({}),getEmitResolver:Uo,getEmitHost:Uo,getEmitHelperFactory:Uo,startLexicalEnvironment:qa,resumeLexicalEnvironment:qa,suspendLexicalEnvironment:qa,endLexicalEnvironment:Xb,setLexicalEnvironmentFlags:qa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:qa,hoistFunctionDeclaration:qa,addInitializationStatement:qa,startBlockScope:qa,endBlockScope:Xb,addBlockScopedVariable:qa,requestEmitHelper:qa,readEmitHelpers:Uo,enableSubstitution:qa,enableEmitNotification:qa,isSubstitutionEnabled:Uo,isEmitNotificationEnabled:Uo,onSubstituteNode:HP,onEmitNode:Cw,addDiagnostic:qa}}});function Ble(e){return Tl(e,".tsbuildinfo")}function XK(e,t,r,i=!1,o,s){let l=So(r)?r:Vj(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(qP(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(qP(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(!cP(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?Iv(e.outDir,gm(e.rootDir,o,!0)):Yr(e.outDir,rc(o)):o}return i+".tsbuildinfo"}function JP(e,t){let r=Cs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&ZIe(i,e),s=t||If(e)?Tu(r)+".d.ts":void 0,l=s&&Sk(e)?s+".map":void 0,d=Uy(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function qP(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return JP(i,r);{let o=Nie(e.fileName,t,q3(e.fileName,i)),s=qf(e),l=s&&Rg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,d=i.emitDeclarationOnly||l?void 0:o,p=!d||qf(e)?void 0:ZIe(d,i),h=r||If(i)&&!s?Pie(e.fileName,t):void 0,m=h&&Sk(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function ZIe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function q3(e,t){return Tl(e,".json")?".json":t.jsx===1&&Ec(e,[".jsx",".tsx"])?".jsx":Ec(e,[".mts",".mjs"])?".mjs":Ec(e,[".cts",".cjs"])?".cjs":".js"}function e1e(e,t,r,i){return r?Iv(r,gm(i(),e,t)):e}function XP(e,t,r,i=()=>tD(t,r)){return YK(e,t.options,r,i)}function YK(e,t,r,i){return mE(e1e(e,r,t.declarationDir||t.outDir,i),l6(e))}function t1e(e,t,r,i=()=>tD(t,r)){if(t.options.emitDeclarationOnly)return;let o=Tl(e,".json"),s=$K(e,t.options,r,i);return!o||Rg(e,s,R.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function $K(e,t,r,i){return mE(e1e(e,r,t.outDir,i),q3(e,t))}function n1e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Ye}}function r1e(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=JP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function i1e(e,t,r,i,o){if(Sd(t))return;let s=t1e(t,e,r,o);if(i(s),!Tl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),If(e.options))){let l=XP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function YP(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=Kle(t(),r,i),s&&s[s.length-1]!==il&&(s+=il),s}function tD({options:e,fileNames:t},r){return YP(e,()=>Vr(t,i=>!(e.noEmitForJsFiles&&Ec(i,DR))&&!Sd(i)),oi(Md(R.checkDefined(e.configFilePath))),Pd(!r))}function X3(e,t){let{addOutput:r,getOutputs:i}=n1e();if(Cs(e.options))r1e(e,r);else{let o=Eu(()=>tD(e,t));for(let s of e.fileNames)i1e(e,s,t,r,o);r(Uy(e.options))}return i()}function o1e(e,t,r){t=fa(t),R.assert(zo(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=n1e();return Cs(e.options)?r1e(e,i):i1e(e,t,r,i),o()}function QK(e,t){if(Cs(e.options)){let{jsFilePath:o,declarationFilePath:s}=JP(e.options,!1);return R.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Eu(()=>tD(e,t));for(let o of e.fileNames){if(Sd(o))continue;let s=t1e(o,e,t,r);if(s)return s;if(!Tl(o,".json")&&If(e.options))return XP(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||Sk(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,y=fR(),E=Wy(p),S=rk(E),{enter:A,exit:N}=o9("printTime","beforePrint","afterPrint"),D,w=!1;return A(),XK(t,j,Vj(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 ke;fe&&ne&&dH(ne)&&(ke=oi(_o(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Et(t.getCommonSourceDirectory()),sourceFiles:ne.sourceFiles.map(be=>Et(_o(be.fileName,t.getCurrentDirectory())))}),(he=or)==null||he.push(or.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:J}),Y(ne,J,re,Et),(Ce=or)==null||Ce.pop(),(Ge=or)==null||Ge.push(or.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),B(ne,pe,xe,Et),(ve=or)==null||ve.pop(),(Ie=or)==null||Ie.push(or.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),K(D,fe),(De=or)==null||De.pop();function Et(be){return v0(gm(ke,be,t.getCanonicalFileName))}}function K(J,re){if(!re||r||w)return;if(t.isEmitBlocked(re)){w=!0;return}let pe=t.getBuildInfo(J)||Pw(void 0,J);wN(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=Nw(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=xE(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,_j),he=Cs(p)?[L.createBundle(ne,Yi(J)?void 0:J.prepends)]:ne;s&&!If(p)&&ne.forEach(ce);let Ce=Nw(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=xE(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(Ll(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=$se(t,rc(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 ke=q(fe,ve,J,re,Ce);if(ke&&(S.isAtStartOfLine()||S.rawWrite(E),Ie=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${ke}`)),re){let Et=ve.toString();wN(t,y,re,Et,!1,Ge),xe.bundleFileInfo&&(xe.bundleFileInfo.mapHash=XT(Et,t))}}else S.writeLine();let De=S.getText();wN(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))),ch(xe)===0&&(xe=Yr(t.getCommonSourceDirectory(),xe)),xe}return oi(fa(re))}function q(J,re,pe,xe,fe){if(J.inlineSourceMap){let he=re.toString();return`data:application/json;base64,${$ie(gd,he)}`}let ne=rc(Md(R.checkDefined(xe)));if(J.mapRoot){let he=Md(J.mapRoot);return fe&&(he=oi(d6(fe.fileName,t,he))),ch(he)===0?(he=Yr(t.getCommonSourceDirectory(),he),encodeURI(vI(oi(fa(pe)),Yr(he,ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Yr(he,ne))}return encodeURI(ne)}}function Pw(e,t){return{bundle:t,program:e,version:qp}}function Gle(e){return JSON.stringify(e)}function $3(e,t){return Qj(e,t)}function LVe(e,t,r){var i;let o=R.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&y0(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,d)=>{let p=s?.get(d),h=p?.directives.map(E=>{let S=st(L.createStringLiteral(E.expression.text),E.expression),A=st(L.createExpressionStatement(S),E);return ja(S,A),A}),m=L.createToken(1),y=L.createSourceFile(h??[],m,0);return y.fileName=gm(r.getCurrentDirectory(),_o(l,t),!r.useCaseSensitiveFileNames()),y.text=p?.text??"",tP(y,0,p?.text.length??0),IR(y.statements,y),tP(m,y.end,0),ja(m,y),y})}function Vle(e,t,r,i){var o,s;(o=or)==null||o.push(or.Phase.Emit,"emitUsingBuildInfo",{},!0),nl("beforeEmit");let l=kVe(e,t,r,i);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(s=or)==null||s.pop(),l}function kVe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=JP(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=UU(s,m,l,y,d,E,p,S,o,h,!0),D=[],w=EJ(e.projectReferences,r,ce=>t.readFile(ce),t),j=LVe(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:Xb,getSourceFileByPath:Xb,getSourceFiles:()=>j,getLibFileFromReference:Uo,isSourceFileFromExternalLibrary:Hm,getResolvedProjectReferenceToRedirect:Xb,getProjectReferenceRedirect:Xb,isSourceOfProjectReferenceRedirect:Hm,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:Hm,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,Pw(z,ce)},getSourceFileFromReference:Xb,redirectTargetsMap:Xp(),getFileIncludeReasons:Uo,createHash:ea(t,t.createHash)};return Y3(Q3,B,void 0,JK(e.options,i)),D}function xE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Cw,isEmitNotificationEnabled:o,substituteNode:s=HP,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,ke=e.recordInternalSection,Et=0,be="text",ze=!0,nt,Ft,_t=-1,Je,ft=-1,Zt=-1,en=-1,Dn=-1,Jn,pn,Yt=!1,qt=!!e.removeComments,hi,uo,{enter:Li,exit:Eo}=FEe(E,"commentTime","beforeComment","afterComment"),Zn=L.parenthesizer,jr={select:I=>I===0?Zn.parenthesizeLeadingTypeArgument:void 0},Sr=Kg();return tt(),{printNode:on,printList:$e,printFile:In,printBundle:Wt,writeNode:yi,writeList:$i,writeFile:ct,writeBundle:Be,bundleFileInfo:Ie};function on(I,ae,ut){switch(I){case 0:R.assert(Yi(ae),"Expected a SourceFile node.");break;case 2:R.assert(Fe(ae),"Expected an Identifier node.");break;case 1:R.assert(ht(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return In(ae);case 313:return Wt(ae);case 314:return si(ae)}return yi(I,ae,ut,Rt()),se()}function $e(I,ae,ut){return $i(I,ae,ut,Rt()),se()}function Wt(I){return Be(I,Rt(),void 0),se()}function In(I){return ct(I,Rt(),void 0),se()}function si(I){return dt(I,Rt()),se()}function yi(I,ae,ut,nn){let Mr=he;G(nn,void 0),we(I,ae,ut),tt(),he=Mr}function $i(I,ae,ut,nn){let Mr=he;G(nn,void 0),ut&<(ut),$s(void 0,ae,I),tt(),he=Mr}function Ao(){return he.getTextPosWithWriteLine?he.getTextPosWithWriteLine():he.getTextPos()}function da(I,ae,ut){let nn=Zs(Ie.sections);nn&&nn.kind===ut?nn.end=ae:Ie.sections.push({pos:I,end:ae,kind:ut})}function Ba(I){if(ke&&Ie&&w&&(Kd(I)||Ml(I))&&jV(I,w)&&be!=="internal"){let ae=be;return kn(he.getTextPos()),Et=Ao(),be="internal",ae}}function vn(I){I&&(kn(he.getTextPos()),Et=Ao(),be=I)}function kn(I){return EtR.assert(aoe(ma))),Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"prepend",data:De(Mr.fileName),texts:Zi}))}}Et=Ao();for(let Mr of I.sourceFiles)we(0,Mr,Mr);if(Ie&&I.sourceFiles.length){let Mr=he.getTextPos();if(kn(Mr)){let wi=MM(I);wi&&(Ie.sources||(Ie.sources={}),Ie.sources.prologues=wi);let vi=Dt(I);vi&&(Ie.sources||(Ie.sources={}),Ie.sources.helpers=vi)}}tt(),he=nn}function dt(I,ae){let ut=he;G(ae,void 0),we(4,I,void 0),tt(),he=ut}function ct(I,ae,ut){ve=!0;let nn=he;G(ae,ut),ub(I),Qg(I),we(0,I,I),tt(),he=nn}function Rt(){return Ce||(Ce=rk(A))}function se(){let I=Ce.getText();return Ce.clear(),I}function we(I,ae,ut){ut&<(ut),U(I,ae,void 0)}function lt(I){w=I,Jn=void 0,pn=void 0,I&&ry(I)}function G(I,ae){I&&e.omitTrailingSemicolon&&(I=Bj(I)),he=I,nt=ae,ze=!he||!nt}function tt(){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,Jn=void 0,pn=void 0,G(void 0,void 0)}function Tt(){return Jn||(Jn=Dg(R.checkDefined(w)))}function He(I,ae){if(I===void 0)return;let ut=Ba(I);U(4,I,ae),vn(ut)}function pt(I){I!==void 0&&U(2,I,void 0)}function Bt(I,ae){I!==void 0&&U(1,I,ae)}function hn(I){U(Da(I)?6:4,I)}function dn(I){fe&&bm(I)&4&&(fe=!1)}function un(I){fe=I}function U(I,ae,ut){uo=ut,k(0,I,ae)(I,ae),uo=void 0}function Le(I){return!qt&&!Yi(I)}function Nt(I){return!ze&&!Yi(I)&&!KF(I)&&!zT(I)&&!Tae(I)}function k(I,ae,ut){switch(I){case 0:if(i!==Cw&&(!o||o(ut)))return H;case 1:if(s!==HP&&(hi=s(ae,ut)||ut)!==ut)return uo&&(hi=uo(hi)),It;case 2:if(Le(ut))return QD;case 3:if(Nt(ut))return qE;case 4:return ue;default:return R.assertNever(I)}}function ie(I,ae,ut){return k(I+1,ae,ut)}function H(I,ae){let ut=ie(0,I,ae);i(I,ae,ut)}function ue(I,ae){if(l?.(ae),fe){let ut=fe;dn(ae),We(I,ae),un(ut)}else We(I,ae);d?.(ae),uo=void 0}function We(I,ae,ut=!0){if(ut){let nn=JU(ae);if(nn)return ho(I,ae,nn)}if(I===0)return Y1(ta(ae,Yi));if(I===2)return Hr(ta(ae,Fe));if(I===6)return Bn(ta(ae,Da),!0);if(I===3)return Ne(ta(ae,_l));if(I===7)return j1(ta(ae,a1));if(I===5)return R.assertNode(ae,sH),no(!0);if(I===4){switch(ae.kind){case 16:case 17:case 18:return Bn(ae,!1);case 80:return Hr(ae);case 81:return Io(ae);case 166:return xn(ae);case 167:return Ql(ae);case 168:return Po(ae);case 169:return ls(ae);case 170:return Bs(ae);case 171:return hl(ae);case 172:return dd(ae);case 173:return mo(ae);case 174:return sa(ae);case 175:return ud(ae);case 176:return Ts(ae);case 177:case 178:return Ca(ae);case 179:return fl(ae);case 180:return Pf(ae);case 181:return sc(ae);case 182:return Mo(ae);case 183:return tn(ae);case 184:return Gs(ae);case 185:return Ic(ae);case 186:return de(ae);case 187:return $(ae);case 188:return Me(ae);case 189:return cn(ae);case 190:return mr(ae);case 192:return Fr(ae);case 193:return Di(ae);case 194:return Cr(ae);case 195:return Jo(ae);case 196:return El(ae);case 233:return Ot(ae);case 197:return Hc();case 198:return Vs(ae);case 199:return gc(ae);case 200:return bs(ae);case 201:return Kc(ae);case 202:return br(ae);case 203:return np(ae);case 204:return Rl(ae);case 205:return Oc(ae);case 206:return om(ae);case 207:return mu(ae);case 208:return Re(ae);case 239:return jt(ae);case 240:return ll();case 241:return er(ae);case 243:return Xr(ae);case 242:return no(!1);case 244:return La(ae);case 245:return ka(ae);case 246:return fd(ae);case 247:return xc(ae);case 248:return Ap(ae);case 249:return Vu(ae);case 250:return ab(ae);case 251:return Nm(ae);case 252:return Pm(ae);case 253:return hS(ae);case 254:return df(ae);case 255:return V_(ae);case 256:return uf(ae);case 257:return qg(ae);case 258:return Oe(ae);case 259:return qe(ae);case 260:return Pt(ae);case 261:return Vt(ae);case 262:return _n(ae);case 263:return Xo(ae);case 264:return Qd(ae);case 265:return md(ae);case 266:return Xg(ae);case 267:return wE(ae);case 268:return z1(ae);case 269:return OE(ae);case 270:return H1(ae);case 271:return FD(ae);case 272:return BD(ae);case 273:return sA(ae);case 274:return gS(ae);case 280:return yS(ae);case 275:return B1(ae);case 276:return GD(ae);case 277:return G1(ae);case 278:return V1(ae);case 279:return vS(ae);case 281:return sb(ae);case 300:return U1(ae);case 301:return lA(ae);case 282:return;case 283:return WE(ae);case 12:return Yg(ae);case 286:case 289:return FE(ae);case 287:case 290:return Rh(ae);case 291:return ju(ae);case 292:return Lf(ae);case 293:return Ip(ae);case 294:return jD(ae);case 295:return K1(ae);case 296:return zE(ae);case 297:return J1(ae);case 298:return tv(ae);case 299:return q1(ae);case 303:return n_(ae);case 304:return uA(ae);case 305:return Ve(ae);case 306:return r_(ae);case 307:return xi(ae);case 314:case 308:return gi(ae);case 309:case 310:return nr(ae);case 311:return Wr(ae);case 312:return Y1(ae);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(ae);case 317:return db(ae);case 319:return _r("*");case 320:return _r("?");case 321:return pd(ae);case 322:return Sp(ae);case 323:return Ns(ae);case 324:return rd(ae);case 191:case 325:return yt(ae);case 326:return;case 327:return _d(ae);case 329:return fA(ae);case 330:return GE(ae);case 334:case 339:case 344:return pA(ae);case 335:case 336:return nv(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ka(ae);case 346:return i_(ae);case 348:case 355:return mA(ae);case 347:case 349:case 350:case 351:case 356:case 357:return BE(ae);case 352:return rv(ae);case 353:return NM(ae);case 354:return X1(ae);case 359:return}if(ht(ae)&&(I=1,s!==HP)){let nn=s(I,ae)||ae;nn!==ae&&(ae=nn,uo&&(ae=uo(ae)))}}if(I===1)switch(ae.kind){case 9:case 10:return wn(ae);case 11:case 14:case 15:return Bn(ae,!1);case 80:return Hr(ae);case 81:return Io(ae);case 209:return Lt(ae);case 210:return Hn(ae);case 211:return go(ae);case 212:return Qo(ae);case 213:return Zl(ae);case 214:return yc(ae);case 215:return cl(ae);case 216:return gl(ae);case 217:return Vl(ae);case 218:return ec(ae);case 219:return Jc(ae);case 220:return Bu(ae);case 221:return Du(ae);case 222:return Mf(ae);case 223:return G_(ae);case 224:return xh(ae);case 225:return zd(ae);case 226:return Sr(ae);case 227:return Tp(ae);case 228:return dg(ae);case 229:return Gu(ae);case 230:return Z(ae);case 231:return it(ae);case 232:return;case 234:return Gt(ae);case 235:return O(ae);case 233:return Ot(ae);case 238:return Se(ae);case 236:return rt(ae);case 237:return R.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Za(ae);case 285:return cA(ae);case 288:return VD(ae);case 358:return R.fail("SyntaxList should not be printed");case 359:return;case 360:return Qr(ae);case 361:return Dh(ae);case 362:return R.fail("SyntheticReferenceExpression should not be printed")}if(Wu(ae.kind))return AS(ae,Qi);if(NV(ae.kind))return AS(ae,_r);R.fail(`Unhandled SyntaxKind: ${R.formatSyntaxKind(ae.kind)}.`)}function Ne(I){He(I.name),lr(),Qi("in"),lr(),He(I.constraint)}function It(I,ae){let ut=ie(1,I,ae);R.assertIsDefined(hi),ae=hi,hi=void 0,ut(I,ae)}function Dt(I){let ae;if(N===0||e.noEmitHelpers)return;let ut=new Map;for(let nn of I.sourceFiles){let Mr=Xk(nn)!==void 0,wi=En(nn);if(wi)for(let vi of wi)!vi.scoped&&!Mr&&!ut.get(vi.name)&&(ut.set(vi.name,!0),(ae||(ae=[])).push(vi.name))}return ae}function Kt(I){let ae=!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 wi=0;wi"),lr(),He(I.type),ip(I)}function rd(I){Qi("function"),iv(I,I.parameters),_r(":"),He(I.type)}function pd(I){_r("?"),He(I.type)}function Sp(I){_r("!"),He(I.type)}function Ns(I){He(I.type),_r("=")}function Ic(I){Ad(I),pg(I,I.modifiers),Qi("new"),lr(),j_(I,I.typeParameters),iv(I,I.parameters),lr(),_r("=>"),lr(),He(I.type),ip(I)}function de(I){Qi("typeof"),lr(),He(I.exprName),mg(I,I.typeArguments)}function $(I){kf(0,void 0),_r("{");let ae=za(I)&1?768:32897;$s(I,I.members,ae|524288),_r("}"),hb()}function Me(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 ae=za(I)&1?528:657;$s(I,I.elements,ae|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),lr(),He(I.type)}function mr(I){He(I.type,Zn.parenthesizeTypeOfOptionalType),_r("?")}function Fr(I){$s(I,I.types,516,Zn.parenthesizeConstituentTypeOfUnionType)}function Di(I){$s(I,I.types,520,Zn.parenthesizeConstituentTypeOfIntersectionType)}function Cr(I){He(I.checkType,Zn.parenthesizeCheckTypeOfConditionalType),lr(),Qi("extends"),lr(),He(I.extendsType,Zn.parenthesizeExtendsTypeOfConditionalType),lr(),_r("?"),lr(),He(I.trueType),lr(),_r(":"),lr(),He(I.falseType)}function Jo(I){Qi("infer"),lr(),He(I.typeParameter)}function El(I){_r("("),He(I.type),_r(")")}function Hc(){Qi("this")}function Vs(I){mb(I.operator,Qi),lr();let ae=I.operator===148?Zn.parenthesizeOperandOfReadonlyTypeOperator:Zn.parenthesizeOperandOfTypeOperator;He(I.type,ae)}function gc(I){He(I.objectType,Zn.parenthesizeNonArrayTypeOfPostfixType),_r("["),He(I.indexType),_r("]")}function bs(I){let ae=za(I);_r("{"),ae&1?lr():(qc(),Ch()),I.readonlyToken&&(He(I.readonlyToken),I.readonlyToken.kind!==148&&Qi("readonly"),lr()),_r("["),U(3,I.typeParameter),I.nameType&&(lr(),Qi("as"),lr(),He(I.nameType)),_r("]"),I.questionToken&&(He(I.questionToken),I.questionToken.kind!==58&&_r("?")),_r(":"),lr(),He(I.type),id(),ae&1?lr():(qc(),wm()),$s(I,I.members,2),_r("}")}function Kc(I){Bt(I.literal)}function np(I){He(I.head),$s(I,I.templateSpans,262144)}function Oc(I){I.isTypeOf&&(Qi("typeof"),lr()),Qi("import"),_r("("),He(I.argument),I.attributes&&(_r(","),lr(),U(7,I.attributes)),_r(")"),I.qualifier&&(_r("."),He(I.qualifier)),mg(I,I.typeArguments)}function om(I){_r("{"),$s(I,I.elements,525136),_r("}")}function mu(I){_r("["),$s(I,I.elements,524880),_r("]")}function Re(I){He(I.dotDotDotToken),I.propertyName&&(He(I.propertyName),_r(":"),lr()),He(I.name),pb(I.initializer,I.name.end,I,Zn.parenthesizeExpressionForDisallowedComma)}function Lt(I){let ae=I.elements,ut=I.multiLine?65536:0;SS(I,ae,8914|ut,Zn.parenthesizeExpressionForDisallowedComma)}function Hn(I){kf(0,void 0),gn(I.properties,Z1);let ae=za(I)&131072;ae&&Ch();let ut=I.multiLine?65536:0,nn=w&&w.languageVersion>=1&&!qf(w)?64:0;$s(I,I.properties,526226|nn|ut),ae&&wm(),hb()}function go(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess);let ae=I.questionDotToken||_h(L.createToken(25),I.expression.end,I.name.pos),ut=Vp(I,I.expression,ae),nn=Vp(I,ae,I.name);Om(ut,!1),ae.kind!==29&&qo(I.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&_r("."),I.questionDotToken?He(ae):Ui(ae.kind,I.expression.end,_r,I),Om(nn,!1),He(I.name),jE(ut,nn)}function qo(I){if(I=vm(I),_p(I)){let ae=TA(I,!0,!1);return!(I.numericLiteralFlags&448)&&!ae.includes(ca(25))&&!ae.includes("E")&&!ae.includes("e")}else if(Ls(I)){let ae=$oe(I);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}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 Zl(I){let ae=bm(I)&16;ae&&(_r("("),fb("0"),_r(","),lr()),Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),ae&&_r(")"),He(I.questionDotToken),mg(I,I.typeArguments),SS(I,I.arguments,2576,Zn.parenthesizeExpressionForDisallowedComma)}function yc(I){Ui(105,I.pos,Qi,I),lr(),Bt(I.expression,Zn.parenthesizeExpressionOfNew),mg(I,I.typeArguments),SS(I,I.arguments,18960,Zn.parenthesizeExpressionForDisallowedComma)}function cl(I){let ae=bm(I)&16;ae&&(_r("("),fb("0"),_r(","),lr()),Bt(I.tag,Zn.parenthesizeLeftSideOfAccess),ae&&_r(")"),mg(I,I.typeArguments),lr(),Bt(I.template)}function gl(I){_r("<"),He(I.type),_r(">"),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function Vl(I){let ae=Ui(21,I.pos,_r,I),ut=XD(I.expression,I);Bt(I.expression,void 0),IS(I.expression,I),jE(ut),Ui(22,I.expression?I.expression.end:ae,_r,I)}function ec(I){jp(I.name),qn(I)}function Jc(I){pg(I,I.modifiers),fn(I,cf)}function cf(I){j_(I,I.typeParameters),KD(I,I.parameters),lm(I.type),lr(),He(I.equalsGreaterThanToken)}function Bu(I){Ui(91,I.pos,Qi,I),lr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function Du(I){Ui(114,I.pos,Qi,I),lr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function Mf(I){Ui(116,I.pos,Qi,I),lr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function G_(I){Ui(135,I.pos,Qi,I),lr(),Bt(I.expression,Zn.parenthesizeOperandOfPrefixUnary)}function xh(I){mb(I.operator,pf),Hg(I)&&lr(),Bt(I.operand,Zn.parenthesizeOperandOfPrefixUnary)}function Hg(I){let ae=I.operand;return ae.kind===224&&(I.operator===40&&(ae.operator===40||ae.operator===46)||I.operator===41&&(ae.operator===41||ae.operator===47))}function zd(I){Bt(I.operand,Zn.parenthesizeOperandOfPostfixUnary),mb(I.operator,pf)}function Kg(){return n3(I,ae,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 ma=Zi.shouldEmitCommentsStack[Zi.stackIndex]=Le(vi),Zd=Zi.shouldEmitSourceMapsStack[Zi.stackIndex]=Nt(vi);l?.(vi),ma&&RA(vi),Zd&&ix(vi),dn(vi)}else Zi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Zi}function ae(vi,Zi,ma){return wi(vi,ma,"left")}function ut(vi,Zi,ma){let Zd=vi.kind!==28,Nu=Vp(ma,ma.left,vi),Of=Vp(ma,vi,ma.right);Om(Nu,Zd),hg(vi.pos),AS(vi,vi.kind===103?Qi:pf),Wm(vi.end,!0),Om(Of,!0)}function nn(vi,Zi,ma){return wi(vi,ma,"right")}function Mr(vi,Zi){let ma=Vp(vi,vi.left,vi.operatorToken),Zd=Vp(vi,vi.operatorToken,vi.right);if(jE(ma,Zd),Zi.stackIndex>0){let Nu=Zi.preserveSourceNewlinesStack[Zi.stackIndex],Of=Zi.containerPosStack[Zi.stackIndex],bb=Zi.containerEndStack[Zi.stackIndex],Si=Zi.declarationListContainerEndStack[Zi.stackIndex],Mh=Zi.shouldEmitCommentsStack[Zi.stackIndex],jn=Zi.shouldEmitSourceMapsStack[Zi.stackIndex];un(Nu),jn&&NA(vi),Mh&&ZD(vi,Of,bb,Si),d?.(vi),Zi.stackIndex--}}function wi(vi,Zi,ma){let Zd=ma==="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===QD||Nu===qE||Nu===ue)&&pr(vi))return vi;uo=Zd,Nu(1,vi)}}function Tp(I){let ae=Vp(I,I.condition,I.questionToken),ut=Vp(I,I.questionToken,I.whenTrue),nn=Vp(I,I.whenTrue,I.colonToken),Mr=Vp(I,I.colonToken,I.whenFalse);Bt(I.condition,Zn.parenthesizeConditionOfConditionalExpression),Om(ae,!0),He(I.questionToken),Om(ut,!0),Bt(I.whenTrue,Zn.parenthesizeBranchOfConditionalExpression),jE(ae,ut),Om(nn,!0),He(I.colonToken),Om(Mr,!0),Bt(I.whenFalse,Zn.parenthesizeBranchOfConditionalExpression),jE(nn,Mr)}function dg(I){He(I.head),$s(I,I.templateSpans,262144)}function Gu(I){Ui(127,I.pos,Qi,I),He(I.asteriskToken),ES(I.expression&&Mm(I.expression),_S)}function Z(I){Ui(26,I.pos,_r,I),Bt(I.expression,Zn.parenthesizeExpressionForDisallowedComma)}function it(I){jp(I.name),Ha(I)}function Ot(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),mg(I,I.typeArguments)}function Gt(I){Bt(I.expression,void 0),I.type&&(lr(),Qi("as"),lr(),He(I.type))}function O(I){Bt(I.expression,Zn.parenthesizeLeftSideOfAccess),pf("!")}function Se(I){Bt(I.expression,void 0),I.type&&(lr(),Qi("satisfies"),lr(),He(I.type))}function rt(I){TS(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,ae){Ui(19,I.pos,_r,I);let ut=ae||za(I)&1?768:129;$s(I,I.statements,ut),Ui(20,I.statements.end,_r,I,!!(ut&1))}function Xr(I){Gp(I,I.modifiers,!1),He(I.declarationList),id()}function no(I){I?_r(";"):id()}function La(I){Bt(I.expression,Zn.parenthesizeExpressionOfExpressionStatement),(!w||!qf(w)||Xs(I.expression))&&id()}function ka(I){let ae=Ui(101,I.pos,Qi,I);lr(),Ui(21,ae,_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?(lr(),He(I.elseStatement)):fg(I,I.elseStatement))}function wl(I,ae){let ut=Ui(117,ae,Qi,I);lr(),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?lr():ey(I,I.statement,I.expression),wl(I,I.statement.end),id()}function xc(I){wl(I,I.pos),fg(I,I.statement)}function Ap(I){let ae=Ui(99,I.pos,Qi,I);lr();let ut=Ui(21,ae,_r,I);cs(I.initializer),ut=Ui(27,I.initializer?I.initializer.end:ut,_r,I),ES(I.condition),ut=Ui(27,I.condition?I.condition.end:ut,_r,I),ES(I.incrementor),Ui(22,I.incrementor?I.incrementor.end:ut,_r,I),fg(I,I.statement)}function Vu(I){let ae=Ui(99,I.pos,Qi,I);lr(),Ui(21,ae,_r,I),cs(I.initializer),lr(),Ui(103,I.initializer.end,Qi,I),lr(),Bt(I.expression),Ui(22,I.expression.end,_r,I),fg(I,I.statement)}function ab(I){let ae=Ui(99,I.pos,Qi,I);lr(),_A(I.awaitModifier),Ui(21,ae,_r,I),cs(I.initializer),lr(),Ui(165,I.initializer.end,Qi,I),lr(),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 Nm(I){Ui(88,I.pos,Qi,I),Zg(I.label),id()}function Pm(I){Ui(83,I.pos,Qi,I),Zg(I.label),id()}function Ui(I,ae,ut,nn,Mr){let wi=Ro(nn),vi=wi&&wi.kind===nn.kind,Zi=ae;if(vi&&w&&(ae=Na(w.text,ae)),vi&&nn.pos!==Zi){let ma=Mr&&w&&!Tf(Zi,ae,w);ma&&Ch(),hg(Zi),ma&&wm()}if(!S&&(I===19||I===20)?ae=TS(I,ae,ut,nn):ae=mb(I,ut,ae),vi&&nn.end!==ae){let ma=nn.kind===294;Wm(ae,!ma,ma)}return ae}function Jg(I){return I.kind===2||!!I.hasTrailingNewLine}function Zy(I){if(!w)return!1;let ae=Hh(w.text,I.pos);if(ae){let ut=Ro(I);if(ut&&Fu(ut.parent))return!0}return gt(ae,Jg)||gt(CR(I),Jg)?!0:V4(I)?I.pos!==I.expression.pos&>(Qb(w.text,I.expression.pos),Jg)?!0:Zy(I.expression):!1}function Mm(I){if(!qt&&V4(I)&&Zy(I)){let ae=Ro(I);if(ae&&Fu(ae)){let ut=L.createParenthesizedExpression(I.expression);return Rr(ut,I),st(ut,ae),ut}return L.createParenthesizedExpression(I)}return I}function _S(I){return Mm(Zn.parenthesizeExpressionForDisallowedComma(I))}function hS(I){Ui(107,I.pos,Qi,I),ES(I.expression&&Mm(I.expression),Mm),id()}function df(I){let ae=Ui(118,I.pos,Qi,I);lr(),Ui(21,ae,_r,I),Bt(I.expression),Ui(22,I.expression.end,_r,I),fg(I,I.statement)}function V_(I){let ae=Ui(109,I.pos,Qi,I);lr(),Ui(21,ae,_r,I),Bt(I.expression),Ui(22,I.expression.end,_r,I),lr(),He(I.caseBlock)}function uf(I){He(I.label),Ui(59,I.label.end,_r,I),lr(),He(I.statement)}function qg(I){Ui(111,I.pos,Qi,I),ES(Mm(I.expression),Mm),id()}function Oe(I){Ui(113,I.pos,Qi,I),lr(),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),lr(),He(I.finallyBlock))}function qe(I){TS(89,I.pos,Qi),id()}function Pt(I){var ae,ut,nn;He(I.name),He(I.exclamationToken),lm(I.type),pb(I.initializer,((ae=I.type)==null?void 0:ae.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(A2(I))Qi("await"),lr(),Qi("using");else{let ae=MF(I)?"let":Yx(I)?"const":I2(I)?"using":"var";Qi(ae)}lr(),$s(I,I.declarations,528)}function _n(I){qn(I)}function qn(I){Gp(I,I.modifiers,!1),Qi("function"),He(I.asteriskToken),lr(),pt(I.name),fn(I,Xn)}function fn(I,ae){let ut=I.body;if(ut)if(Ho(ut)){let nn=za(I)&131072;nn&&Ch(),Ad(I),gn(I.parameters,od),od(I.body),ae(I),sr(ut),ip(I),nn&&wm()}else ae(I),lr(),Bt(ut,Zn.parenthesizeConciseBodyOfArrowFunction);else ae(I),id()}function Xn(I){j_(I,I.typeParameters),iv(I,I.parameters),lm(I.type)}function mi(I){if(za(I)&1)return!0;if(I.multiLine||!Xs(I)&&w&&!RT(I,w)||_g(I,Yc(I.statements),2)||Q1(I,Zs(I.statements),2,I.statements))return!1;let ae;for(let ut of I.statements){if(_b(ae,ut,2)>0)return!1;ae=ut}return!0}function sr(I){l?.(I),lr(),_r("{"),Ch();let ae=mi(I)?ni:ur;Tr(I,I.statements,ae),wm(),TS(20,I.statements.end,_r,I),d?.(I)}function ni(I){ur(I,!0)}function ur(I,ae){let ut=Uu(I.statements),nn=he.getTextPos();Kt(I),ut===0&&nn===he.getTextPos()&&ae?(wm(),$s(I,I.statements,768),Ch()):$s(I,I.statements,1,void 0,ut)}function Xo(I){Ha(I)}function Ha(I){kf(0,void 0),gn(I.members,Z1),Gp(I,I.modifiers,!0),Ui(86,C_(I).pos,Qi,I),I.name&&(lr(),pt(I.name));let ae=za(I)&131072;ae&&Ch(),j_(I,I.typeParameters),$s(I,I.heritageClauses,0),lr(),_r("{"),$s(I,I.members,129),_r("}"),ae&&wm(),hb()}function Qd(I){kf(0,void 0),Gp(I,I.modifiers,!1),Qi("interface"),lr(),He(I.name),j_(I,I.typeParameters),$s(I,I.heritageClauses,512),lr(),_r("{"),$s(I,I.members,129),_r("}"),hb()}function md(I){Gp(I,I.modifiers,!1),Qi("type"),lr(),He(I.name),j_(I,I.typeParameters),lr(),_r("="),lr(),He(I.type),id()}function Xg(I){Gp(I,I.modifiers,!1),Qi("enum"),lr(),He(I.name),lr(),_r("{"),$s(I,I.members,145),_r("}")}function wE(I){Gp(I,I.modifiers,!1),~I.flags&2048&&(Qi(I.flags&32?"namespace":"module"),lr()),He(I.name);let ae=I.body;if(!ae)return id();for(;ae&&Xl(ae);)_r("."),He(ae.name),ae=ae.body;lr(),He(ae)}function z1(I){Ad(I),gn(I.statements,od),ii(I,SA(I)),ip(I)}function OE(I){Ui(19,I.pos,_r,I),$s(I,I.clauses,129),Ui(20,I.clauses.end,_r,I,!0)}function FD(I){Gp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),lr(),I.isTypeOnly&&(Ui(156,I.pos,Qi,I),lr()),He(I.name),lr(),Ui(64,I.name.end,_r,I),lr(),zD(I.moduleReference),id()}function zD(I){I.kind===80?Bt(I):He(I)}function BD(I){Gp(I,I.modifiers,!1),Ui(102,I.modifiers?I.modifiers.end:I.pos,Qi,I),lr(),I.importClause&&(He(I.importClause),lr(),Ui(161,I.importClause.end,Qi,I),lr()),Bt(I.moduleSpecifier),I.attributes&&Zg(I.attributes),id()}function sA(I){I.isTypeOnly&&(Ui(156,I.pos,Qi,I),lr()),He(I.name),I.name&&I.namedBindings&&(Ui(28,I.name.end,_r,I),lr()),He(I.namedBindings)}function gS(I){let ae=Ui(42,I.pos,_r,I);lr(),Ui(130,ae,Qi,I),lr(),He(I.name)}function B1(I){lb(I)}function GD(I){ug(I)}function G1(I){let ae=Ui(95,I.pos,Qi,I);lr(),I.isExportEquals?Ui(64,ae,pf,I):Ui(90,ae,Qi,I),lr(),Bt(I.expression,I.isExportEquals?Zn.getParenthesizeRightSideOfBinaryForOperator(64):Zn.parenthesizeExpressionOfExportDefault),id()}function V1(I){Gp(I,I.modifiers,!1);let ae=Ui(95,I.pos,Qi,I);if(lr(),I.isTypeOnly&&(ae=Ui(156,ae,Qi,I),lr()),I.exportClause?He(I.exportClause):ae=Ui(42,ae,_r,I),I.moduleSpecifier){lr();let ut=I.exportClause?I.exportClause.end:ae;Ui(161,ut,Qi,I),lr(),Bt(I.moduleSpecifier)}I.attributes&&Zg(I.attributes),id()}function j1(I){_r("{"),lr(),Qi(I.token===132?"assert":"with"),_r(":"),lr();let ae=I.elements;$s(I,ae,526226),lr(),_r("}")}function U1(I){Ui(I.token,I.pos,Qi,I),lr();let ae=I.elements;$s(I,ae,526226)}function lA(I){He(I.name),_r(":"),lr();let ae=I.value;if(!(za(ae)&1024)){let ut=P_(ae);Wm(ut.pos)}He(ae)}function H1(I){let ae=Ui(95,I.pos,Qi,I);lr(),ae=Ui(130,ae,Qi,I),lr(),ae=Ui(145,ae,Qi,I),lr(),He(I.name),id()}function yS(I){let ae=Ui(42,I.pos,_r,I);lr(),Ui(130,ae,Qi,I),lr(),He(I.name)}function vS(I){lb(I)}function sb(I){ug(I)}function lb(I){_r("{"),$s(I,I.elements,525136),_r("}")}function ug(I){I.isTypeOnly&&(Qi("type"),lr()),I.propertyName&&(He(I.propertyName),lr(),Ui(130,I.propertyName.end,Qi,I),lr()),He(I.name)}function WE(I){Qi("require"),_r("("),Bt(I.expression),_r(")")}function Za(I){He(I.openingElement),$s(I,I.children,262144),He(I.closingElement)}function cA(I){_r("<"),cb(I.tagName),mg(I,I.typeArguments),lr(),He(I.attributes),_r("/>")}function VD(I){He(I.openingFragment),$s(I,I.children,262144),He(I.closingFragment)}function FE(I){if(_r("<"),L_(I)){let ae=XD(I.tagName,I);cb(I.tagName),mg(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&lr(),He(I.attributes),IS(I.attributes,I),jE(ae)}_r(">")}function Yg(I){he.writeLiteral(I.text)}function Rh(I){_r("")}function Lf(I){$s(I,I.properties,262656)}function ju(I){He(I.name),Lm("=",_r,I.initializer,hn)}function Ip(I){_r("{..."),Bt(I.expression),_r("}")}function rp(I){let ae=!1;return XL(w?.text||"",I+1,()=>ae=!0),ae}function ev(I){let ae=!1;return qL(w?.text||"",I+1,()=>ae=!0),ae}function dA(I){return rp(I)||ev(I)}function jD(I){var ae;if(I.expression||!qt&&!Xs(I)&&dA(I.pos)){let ut=w&&!Xs(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,((ae=I.expression)==null?void 0:ae.end)||nn,_r,I),ut&&he.decreaseIndent()}}function K1(I){pt(I.namespace),_r(":"),pt(I.name)}function cb(I){I.kind===80?Bt(I):He(I)}function zE(I){Ui(84,I.pos,Qi,I),lr(),Bt(I.expression,Zn.parenthesizeExpressionForDisallowedComma),vc(I,I.statements,I.expression.end)}function J1(I){let ae=Ui(90,I.pos,Qi,I);vc(I,I.statements,ae)}function vc(I,ae,ut){let nn=ae.length===1&&(!w||Xs(I)||Xs(ae[0])||b6(I,ae[0],w)),Mr=163969;nn?(TS(59,ut,_r,I),lr(),Mr&=-130):Ui(59,ut,_r,I),$s(I,ae,Mr)}function tv(I){lr(),mb(I.token,Qi),lr(),$s(I,I.types,528)}function q1(I){let ae=Ui(85,I.pos,Qi,I);lr(),I.variableDeclaration&&(Ui(21,ae,_r,I),He(I.variableDeclaration),Ui(22,I.variableDeclaration.end,_r,I),lr()),He(I.block)}function n_(I){He(I.name),_r(":"),lr();let ae=I.initializer;if(!(za(ae)&1024)){let ut=P_(ae);Wm(ut.pos)}Bt(ae,Zn.parenthesizeExpressionForDisallowedComma)}function uA(I){He(I.name),I.objectAssignmentInitializer&&(lr(),_r("="),lr(),Bt(I.objectAssignmentInitializer,Zn.parenthesizeExpressionForDisallowedComma))}function Ve(I){I.expression&&(Ui(26,I.pos,_r,I),Bt(I.expression,Zn.parenthesizeExpressionForDisallowedComma))}function r_(I){He(I.name),pb(I.initializer,I.name.end,I,Zn.parenthesizeExpressionForDisallowedComma)}function _d(I){if(Ge("/**"),I.comment){let ae=i2(I.comment);if(ae){let ut=ae.split(/\r\n?|\n/g);for(let nn of ut)qc(),lr(),_r("*"),lr(),Ge(nn)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(lr(),He(I.tags[0])):$s(I,I.tags,33)),lr(),Ge("*/")}function BE(I){am(I.tagName),$g(I.typeExpression),sm(I.comment)}function X1(I){am(I.tagName),He(I.name),sm(I.comment)}function db(I){lr(),_r("{"),He(I.name),_r("}")}function nv(I){am(I.tagName),lr(),_r("{"),He(I.class),_r("}"),sm(I.comment)}function rv(I){am(I.tagName),$g(I.constraint),lr(),$s(I,I.typeParameters,528),sm(I.comment)}function NM(I){am(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?$g(I.typeExpression):(lr(),_r("{"),Ge("Object"),I.typeExpression.isArrayType&&(_r("["),_r("]")),_r("}"))),I.fullName&&(lr(),He(I.fullName)),sm(I.comment),I.typeExpression&&I.typeExpression.kind===329&&fA(I.typeExpression)}function Ka(I){am(I.tagName),I.name&&(lr(),He(I.name)),sm(I.comment),GE(I.typeExpression)}function i_(I){sm(I.comment),GE(I.typeExpression)}function pA(I){am(I.tagName),sm(I.comment)}function fA(I){$s(I,L.createNodeArray(I.jsDocPropertyTags),33)}function GE(I){I.typeParameters&&$s(I,L.createNodeArray(I.typeParameters),33),I.parameters&&$s(I,L.createNodeArray(I.parameters),33),I.type&&(qc(),lr(),_r("*"),lr(),He(I.type))}function mA(I){am(I.tagName),$g(I.typeExpression),lr(),I.isBracketed&&_r("["),He(I.name),I.isBracketed&&_r("]"),sm(I.comment)}function am(I){_r("@"),He(I)}function sm(I){let ae=i2(I);ae&&(lr(),Ge(ae))}function $g(I){I&&(lr(),_r("{"),He(I.type),_r("}"))}function Y1(I){qc();let ae=I.statements;if(ae.length===0||!Em(ae[0])||Xs(ae[0])){Tr(I,ae,qi);return}qi(I)}function o_(I){bS(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let ae of I.prepends)if(zT(ae)&&ae.syntheticReferences)for(let ut of ae.syntheticReferences)He(ut),qc()}function UD(I){I.isDeclarationFile&&bS(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function bS(I,ae,ut,nn){if(I){let Mr=he.getTextPos();U_('/// '),Ie&&Ie.sections.push({pos:Mr,end:he.getTextPos(),kind:"no-default-lib"}),qc()}if(w&&w.moduleName&&(U_(`/// `),qc()),w&&w.amdDependencies)for(let Mr of w.amdDependencies)Mr.name?U_(`/// `):U_(`/// `),qc();for(let Mr of ae){let wi=he.getTextPos();U_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"reference",data:Mr.fileName}),qc()}for(let Mr of ut){let wi=he.getTextPos(),vi=Mr.resolutionMode&&Mr.resolutionMode!==w?.impliedNodeFormat?`resolution-mode="${Mr.resolutionMode===99?"import":"require"}"`:"";U_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:Mr.resolutionMode?Mr.resolutionMode===99?"type-import":"type-require":"type",data:Mr.fileName}),qc()}for(let Mr of nn){let wi=he.getTextPos();U_(`/// `),Ie&&Ie.sections.push({pos:wi,end:he.getTextPos(),kind:"lib",data:Mr.fileName}),qc()}}function qi(I){let ae=I.statements;Ad(I),gn(I.statements,od),Kt(I);let ut=Jl(ae,nn=>!Em(nn));UD(I),$s(I,ae,1,void 0,ut===-1?ae.length:ut),ip(I)}function Qr(I){let ae=za(I);!(ae&1024)&&I.pos!==I.expression.pos&&Wm(I.expression.pos),Bt(I.expression),!(ae&2048)&&I.end!==I.expression.end&&hg(I.expression.end)}function Dh(I){SS(I,I.elements,528,void 0)}function Uu(I,ae,ut,nn){let Mr=!!ae;for(let wi=0;wi=ut.length||vi===0;if(ma&&nn&32768){p?.(ut),h?.(ut);return}nn&15360&&(_r(OVe(nn)),ma&&ut&&Wm(ut.pos,!0)),p?.(ut),ma?nn&1&&!(fe&&(!ae||w&&RT(ae,w)))?qc():nn&256&&!(nn&524288)&&lr():km(I,ae,ut,nn,Mr,wi,vi,ut.hasTrailingComma,ut),h?.(ut),nn&15360&&(ma&&ut&&hg(ut.end),_r(WVe(nn)))}function km(I,ae,ut,nn,Mr,wi,vi,Zi,ma){let Zd=(nn&262144)===0,Nu=Zd,Of=_g(ae,ut[wi],nn);Of?(qc(Of),Nu=!1):nn&256&&lr(),nn&128&&Ch();let bb=GVe(I,Mr),Si,Mh,jn=!1;for(let MS=0;MS0){if(nn&131||(Ch(),jn=!0),Nu&&nn&60&&!Xm(K_.pos)){let rC=P_(K_);Wm(rC.pos,!!(nn&512),!0)}qc(Lh),Nu=!1}else Si&&nn&512&&lr()}if(Mh=Ba(K_),Nu){let Lh=P_(K_);Wm(Lh.pos)}else Nu=Zd;ne=K_.pos,bb(K_,I,Mr,MS),jn&&(wm(),jn=!1),Si=K_}let ox=Si?za(Si):0,Eb=qt||!!(ox&2048),Sb=Zi&&nn&64&&nn&16;Sb&&(Si&&!Eb?Ui(28,Si.end,_r,Si):_r(",")),Si&&(ae?ae.end:-1)!==Si.end&&nn&60&&!Eb&&hg(Sb&&ma?.end?ma.end:Si.end),nn&128&&wm(),vn(Mh);let PA=Q1(ae,ut[wi+vi-1],nn,ma);PA?qc(PA):nn&2097408&&lr()}function fb(I){he.writeLiteral(I)}function qD(I){he.writeStringLiteral(I)}function yA(I){he.write(I)}function LM(I,ae){he.writeSymbol(I,ae)}function _r(I){he.writePunctuation(I)}function id(){he.writeTrailingSemicolon(";")}function Qi(I){he.writeKeyword(I)}function pf(I){he.writeOperator(I)}function ov(I){he.writeParameter(I)}function U_(I){he.writeComment(I)}function lr(){he.writeSpace(" ")}function vA(I){he.writeProperty(I)}function VE(I){he.nonEscapingWrite?he.nonEscapingWrite(I):he.write(I)}function qc(I=1){for(let ae=0;ae0)}function Ch(){he.increaseIndent()}function wm(){he.decreaseIndent()}function TS(I,ae,ut,nn){return ze?mb(I,ut,ae):PS(nn,I,ut,ae,mb)}function AS(I,ae){m&&m(I),ae(ca(I.kind)),y&&y(I)}function mb(I,ae,ut){let nn=ca(I);return ae(nn),ut<0?ut:ut+nn.length}function ey(I,ae,ut){if(za(I)&1)lr();else if(fe){let nn=Vp(I,ae,ut);nn?qc(nn):lr()}else qc()}function bA(I){let ae=I.split(/\r\n?|\n/g),ut=Pre(ae);for(let nn of ae){let Mr=ut?nn.slice(ut):nn;Mr.length&&(qc(),Ge(Mr))}}function Om(I,ae){I?(Ch(),qc(I)):ae&&lr()}function jE(I,ae){I&&wm(),ae&&wm()}function _g(I,ae,ut){if(ut&2||fe){if(ut&65536)return 1;if(ae===void 0)return!I||w&&RT(I,w)?0:1;if(ae.pos===ne||ae.kind===12)return 0;if(w&&I&&!Xm(I.pos)&&!Xs(ae)&&(!ae.parent||Nl(ae.parent)===Nl(I)))return fe?UE(nn=>noe(ae.pos,I.pos,w,nn)):b6(I,ae,w)?0:1;if(EA(ae,ut))return 1}return ut&1?1:0}function _b(I,ae,ut){if(ut&2||fe){if(I===void 0||ae===void 0||ae.kind===12)return 0;if(w&&!Xs(I)&&!Xs(ae))return fe&&Cu(I,ae)?UE(nn=>eU(I,ae,w,nn)):!fe&&ff(I,ae)?lk(I,ae,w)?0:1:ut&65536?1:0;if(EA(I,ut)||EA(ae,ut))return 1}else if(uP(ae))return 1;return ut&1?1:0}function Q1(I,ae,ut,nn){if(ut&2||fe){if(ut&65536)return 1;if(ae===void 0)return!I||w&&RT(I,w)?0:1;if(w&&I&&!Xm(I.pos)&&!Xs(ae)&&(!ae.parent||ae.parent===I)){if(fe){let Mr=nn&&!Xm(nn.end)?nn.end:ae.end;return UE(wi=>roe(Mr,I.end,w,wi))}return Zie(I,ae,w)?0:1}if(EA(ae,ut))return 1}return ut&1&&!(ut&131072)?1:0}function UE(I){R.assert(!!fe);let ae=I(!0);return ae===0?I(!1):ae}function XD(I,ae){let ut=fe&&_g(ae,I,0);return ut&&Om(ut,!1),!!ut}function IS(I,ae){let ut=fe&&Q1(ae,I,0,void 0);ut&&qc(ut)}function EA(I,ae){if(Xs(I)){let ut=uP(I);return ut===void 0?(ae&65536)!==0:ut}return(ae&65536)!==0}function Vp(I,ae,ut){return za(I)&262144?0:(I=jl(I),ae=jl(ae),ut=jl(ut),uP(ut)?1:w&&!Xs(I)&&!Xs(ae)&&!Xs(ut)?fe?UE(nn=>eU(ae,ut,w,nn)):lk(ae,ut,w)?0:1:0)}function SA(I){return I.statements.length===0&&(!w||lk(I,I,w))}function jl(I){for(;I.kind===217&&Xs(I);)I=I.expression;return I}function Wc(I,ae){if(ol(I)||lT(I))return AA(I);if(Da(I)&&I.textSourceNode)return Wc(I.textSourceNode,ae);let ut=w,nn=!!ut&&!!I.parent&&!Xs(I);if(Jh(I)){if(!nn||Vn(I)!==Nl(ut))return vr(I)}else if($m(I)){if(!nn||Vn(I)!==Nl(ut))return sP(I)}else if(R.assertNode(I,T0),!nn)return I.text;return I0(ut,I,ae)}function TA(I,ae,ut){if(I.kind===11&&I.textSourceNode){let Mr=I.textSourceNode;if(Fe(Mr)||Ki(Mr)||_p(Mr)||$m(Mr)){let wi=_p(Mr)?Mr.text:Wc(Mr);return ut?`"${zj(wi)}"`:ae||za(I)&16777216?`"${eg(wi)}"`:`"${nk(wi)}"`}else return TA(Mr,ae,ut)}let nn=(ae?1:0)|(ut?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Vre(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 ip(I){I&&za(I)&1048576||(q=ge.pop(),z=ce.pop(),re=J.pop())}function HE(I){(!re||re===Zs(J))&&(re=new Set),re.add(I)}function kf(I,ae){ee.push(me),me=I,pe.push(re),xe=ae}function hb(){me=ee.pop(),xe=pe.pop()}function gb(I){(!xe||xe===Zs(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:jp(I.name);break;case 262:jp(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:jp(I.name),od(I.namedBindings);break;case 274:jp(I.name);break;case 280:jp(I.name);break;case 275:gn(I.elements,od);break;case 276:jp(I.propertyName||I.name);break}}function Z1(I){if(I)switch(I.kind){case 303:case 304:case 172:case 174:case 177:case 178:jp(I.name);break}}function jp(I){I&&(ol(I)||lT(I)?AA(I):$o(I)&&od(I))}function AA(I){let ae=I.emitNode.autoGenerate;if((ae.flags&7)===4)return IA(Zk(I),Ki(I),ae.flags,ae.prefix,ae.suffix);{let ut=ae.id;return Y[ut]||(Y[ut]=$D(I))}}function IA(I,ae,ut,nn,Mr){let wi=is(I),vi=ae?K:j;return vi[wi]||(vi[wi]=xA(I,ae,ut??0,UR(nn,AA),UR(Mr)))}function js(I,ae){return KE(I,ae)&&!YD(I,ae)&&!B.has(I)}function YD(I,ae){return ae?!!xe?.has(I):!!re?.has(I)}function KE(I,ae){return w?IF(w,I,r):!0}function xS(I,ae){for(let ut=ae;ut&&M0(ut,ae);ut=ut.nextContainer)if(dh(ut)&&ut.locals){let nn=ut.locals.get(ml(I));if(nn&&nn.flags&3257279)return!1}return!0}function kM(I){switch(I){case"":return q;case"#":return me;default:return z?.get(I)??0}}function _u(I,ae){switch(I){case"":q=ae;break;case"#":me=ae;break;default:z??(z=new Map),z.set(I,ae);break}}function ty(I,ae,ut,nn,Mr){nn.length>0&&nn.charCodeAt(0)===35&&(nn=nn.slice(1));let wi=EE(ut,nn,"",Mr),vi=kM(wi);if(I&&!(vi&I)){let ma=EE(ut,nn,I===268435456?"_i":"_n",Mr);if(js(ma,ut))return vi|=I,ut?gb(ma):ae&&HE(ma),_u(wi,vi),ma}for(;;){let Zi=vi&268435455;if(vi++,Zi!==8&&Zi!==13){let ma=Zi<26?"_"+String.fromCharCode(97+Zi):"_"+(Zi-26),Zd=EE(ut,nn,ma,Mr);if(js(Zd,ut))return ut?gb(Zd):ae&&HE(Zd),_u(wi,vi),Zd}}}function H_(I,ae=js,ut,nn,Mr,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 ma=EE(Mr,wi,I,vi);if(ae(ma,Mr))return Mr?gb(ma):nn?HE(ma):B.add(ma),ma}I.charCodeAt(I.length-1)!==95&&(I+="_");let Zi=1;for(;;){let ma=EE(Mr,wi,I+Zi,vi);if(ae(ma,Mr))return Mr?gb(ma):nn?HE(ma):B.add(ma),ma;Zi++}}function ex(I){return H_(I,KE,!0,!1,!1,"","")}function xp(I){let ae=Wc(I.name);return xS(ae,ri(I,dh))?ae:H_(ae,js,!1,!1,!1,"","")}function tx(I){let ae=oR(I),ut=Da(ae)?Ure(ae.text):"module";return H_(ut,js,!1,!1,!1,"","")}function op(){return H_("default",js,!1,!1,!1,"","")}function nx(){return H_("class",js,!1,!1,!1,"","")}function av(I,ae,ut,nn){return Fe(I.name)?IA(I.name,ae):ty(0,!1,ae,ut,nn)}function xA(I,ae,ut,nn,Mr){switch(I.kind){case 80:case 81:return H_(Wc(I),js,!!(ut&16),!!(ut&8),ae,nn,Mr);case 267:case 266:return R.assert(!nn&&!Mr&&!ae),xp(I);case 272:case 278:return R.assert(!nn&&!Mr&&!ae),tx(I);case 262:case 263:{R.assert(!nn&&!Mr&&!ae);let wi=I.name;return wi&&!ol(wi)?xA(wi,!1,ut,nn,Mr):op()}case 277:return R.assert(!nn&&!Mr&&!ae),op();case 231:return R.assert(!nn&&!Mr&&!ae),nx();case 174:case 177:case 178:return av(I,ae,nn,Mr);case 167:return ty(0,!0,ae,nn,Mr);default:return ty(0,!1,ae,nn,Mr)}}function $D(I){let ae=I.emitNode.autoGenerate,ut=UR(ae.prefix,AA),nn=UR(ae.suffix);switch(ae.flags&7){case 1:return ty(0,!!(ae.flags&8),Ki(I),ut,nn);case 2:return R.assertNode(I,Fe),ty(268435456,!!(ae.flags&8),!1,ut,nn);case 3:return H_(vr(I),ae.flags&32?KE:js,!!(ae.flags&16),!!(ae.flags&8),Ki(I),ut,nn)}return R.fail(`Unsupported GeneratedIdentifierKind: ${R.formatEnum(ae.flags&7,LW,!0)}.`)}function QD(I,ae){let ut=ie(2,I,ae),nn=Zt,Mr=en,wi=Dn;RA(ae),ut(I,ae),ZD(ae,nn,Mr,wi)}function RA(I){let ae=za(I),ut=P_(I);yb(I,ae,ut.pos,ut.end),ae&4096&&(qt=!0)}function ZD(I,ae,ut,nn){let Mr=za(I),wi=P_(I);Mr&4096&&(qt=!1),Rp(I,Mr,wi.pos,wi.end,ae,ut,nn);let vi=tae(I);vi&&Rp(I,Mr,vi.pos,vi.end,ae,ut,nn)}function yb(I,ae,ut,nn){Li(),Yt=!1;let Mr=ut<0||(ae&1024)!==0||I.kind===12,wi=nn<0||(ae&2048)!==0||I.kind===12;(ut>0||nn>0)&&ut!==nn&&(Mr||RS(ut,I.kind!==359),(!Mr||ut>=0&&ae&1024)&&(Zt=ut),(!wi||nn>=0&&ae&2048)&&(en=nn,I.kind===261&&(Dn=nn))),gn(CR(I),Nh),Eo()}function Rp(I,ae,ut,nn,Mr,wi,vi){Li();let Zi=nn<0||(ae&2048)!==0||I.kind===12;gn(Pk(I),eC),(ut>0||nn>0)&&ut!==nn&&(Zt=Mr,en=wi,Dn=vi,!Zi&&I.kind!==359&&a_(nn)),Eo()}function Nh(I){(I.hasLeadingNewline||I.kind===2)&&he.writeLine(),DA(I),I.hasTrailingNewLine||I.kind===2?he.writeLine():he.writeSpace(" ")}function eC(I){he.isAtStartOfLine()||he.writeSpace(" "),DA(I),I.hasTrailingNewLine&&he.writeLine()}function DA(I){let ae=ts(I),ut=I.kind===3?bI(ae):void 0;gR(ae,ut,he,0,ae.length,A)}function ts(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function Tr(I,ae,ut){Li();let{pos:nn,end:Mr}=ae,wi=za(I),vi=nn<0||(wi&1024)!==0,Zi=qt||Mr<0||(wi&2048)!==0;vi||wf(ae),Eo(),wi&4096&&!qt?(qt=!0,ut(I),qt=!1):ut(I),Li(),Zi||(RS(ae.end,!0),Yt&&!he.isAtStartOfLine()&&he.writeLine()),Eo()}function ff(I,ae){return I=Nl(I),I.parent&&I.parent===Nl(ae).parent}function Cu(I,ae){if(ae.pos-1&&nn.indexOf(ae)===Mr+1}function RS(I,ae){Yt=!1,ae?I===0&&w?.isDeclarationFile?yg(I,JE):yg(I,CA):I===0&&yg(I,tC)}function tC(I,ae,ut,nn,Mr){_f(I,ae)&&CA(I,ae,ut,nn,Mr)}function JE(I,ae,ut,nn,Mr){_f(I,ae)||CA(I,ae,ut,nn,Mr)}function DS(I,ae){return e.onlyPrintJsDocStyle?PH(I,ae)||xF(I,ae):!0}function CA(I,ae,ut,nn,Mr){!w||!DS(w.text,I)||(Yt||(Fie(Tt(),he,Mr,I),Yt=!0),Ps(I),gR(w.text,Tt(),he,I,ae,A),Ps(ae),nn?he.writeLine():ut===3&&he.writeSpace(" "))}function hg(I){qt||I===-1||RS(I,!0)}function a_(I){rx(I,mf)}function mf(I,ae,ut,nn){!w||!DS(w.text,I)||(he.isAtStartOfLine()||he.writeSpace(" "),Ps(I),gR(w.text,Tt(),he,I,ae,A),Ps(ae),nn&&he.writeLine())}function Wm(I,ae,ut){qt||(Li(),rx(I,ae?mf:ut?ny:gg),Eo())}function ny(I,ae,ut){w&&(Ps(I),gR(w.text,Tt(),he,I,ae,A),Ps(ae),ut===2&&he.writeLine())}function gg(I,ae,ut,nn){w&&(Ps(I),gR(w.text,Tt(),he,I,ae,A),Ps(ae),nn?he.writeLine():he.writeSpace(" "))}function yg(I,ae){w&&(Zt===-1||I!==Zt)&&(lc(I)?nC(ae):qL(w.text,I,ae,I))}function rx(I,ae){w&&(en===-1||I!==en&&I!==Dn)&&XL(w.text,I,ae)}function lc(I){return pn!==void 0&&Ja(pn).nodePos===I}function nC(I){if(!w)return;let ae=Ja(pn).detachedCommentEndPos;pn.length-1?pn.pop():pn=void 0,qL(w.text,ae,I,ae)}function wf(I){let ae=w&&Bie(w.text,Tt(),he,Ph,I,A,qt);ae&&(pn?pn.push(ae):pn=[ae])}function Ph(I,ae,ut,nn,Mr,wi){!w||!DS(w.text,nn)||(Ps(nn),gR(I,ae,ut,nn,Mr,wi),Ps(Mr))}function _f(I,ae){return!!w&&qV(w.text,I,ae)}function CS(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=CK(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function qE(I,ae){let ut=ie(3,I,ae);ix(ae),ut(I,ae),NA(ae)}function ix(I){let ae=za(I),ut=zy(I);if(CV(I)){R.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let nn=CS(I.parent);nn&&nt&&nt.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&&!(ae&32)&&ut.pos>=0&&NS(ut.source||Ft,hf(nn,ut.pos)),ae&128&&(ze=!0)}}function NA(I){let ae=za(I),ut=zy(I);CV(I)||(ae&128&&(ze=!1),I.kind!==359&&!(ae&64)&&ut.end>=0&&NS(ut.source||Ft,ut.end))}function hf(I,ae){return I.skipTrivia?I.skipTrivia(ae):Na(I.text,ae)}function Ps(I){if(ze||Xm(I)||XE(Ft))return;let{line:ae,character:ut}=ys(Ft,I);nt.addMapping(he.getLine(),he.getColumn(),_t,ae,ut,void 0)}function NS(I,ae){if(I!==Ft){let ut=Ft,nn=_t;ry(I),Ps(ae),vb(ut,nn)}else Ps(ae)}function PS(I,ae,ut,nn,Mr){if(ze||I&&KF(I))return Mr(ae,ut,nn);let wi=I&&I.emitNode,vi=wi&&wi.flags||0,Zi=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[ae],ma=Zi&&Zi.source||Ft;return nn=hf(ma,Zi?Zi.pos:nn),!(vi&256)&&nn>=0&&NS(ma,nn),nn=Mr(ae,ut,nn),Zi&&(nn=Zi.end),!(vi&512)&&nn>=0&&NS(ma,nn),nn}function ry(I){if(!ze){if(Ft=I,I===Je){_t=ft;return}XE(I)||(_t=nt.addSource(I.fileName),e.inlineSources&&nt.setSourceContent(_t,I.text),Je=I,ft=_t)}}function vb(I,ae){Ft=I,_t=ae}function XE(I){return Tl(I.fileName,".json")}}function wVe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function OVe(e){return jle[e&15360][0]}function WVe(e){return jle[e&15360][1]}function FVe(e,t,r,i){t(e)}function zVe(e,t,r,i){t(e,r.select(i))}function BVe(e,t,r,i){t(e,r)}function GVe(e,t){return e.length===1?FVe:typeof t=="object"?zVe:BVe}var jle,Q3,ZK,aS,eJ,Mw,VVe=bt({"src/compiler/emitter.ts"(){"use strict";Zo(),Zo(),iT(),jle=wVe(),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},ZK=Eu(()=>xE({})),aS=Eu(()=>xE({removeComments:!0})),eJ=Eu(()=>xE({removeComments:!0,neverAsciiEscape:!0})),Mw=Eu(()=>xE({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 rl(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 rc(fa(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,el,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;bv(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 pU(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)||Ye,directories:e.getDirectories(ne)||Ye};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,jd)&&z.files.push(ee);else{let J=Sy(ge,q,el,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=y0(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||Ye,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 tJ(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 nJ(e,t,r){KN(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:qm})}function Lw(e,t,r){t?KN(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Df,onExistingValue:o}):Qu(e,Df);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 kw({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(yI(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(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(!Ec(r,DR))return!1;let S=Tu(r),A=So(s)?void 0:jVe(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 jv(o);case 6:return hE(o);case 0:return!1}}}function jVe(e){return!!e.getState}function Ule(e,t){return e?e.isEmittedFile(t):!1}function rJ(e,t,r,i){Dne(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:cD;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=qs(),z=s.watchDirectory(N,D,w,j,K,Y),ee=qs()-ce;return r(`Elapsed:: ${ee}ms ${B}`),{close:()=>{let me=`DirectoryWatcher:: Close:: ${A(N,w,j,K,Y,i)}`;r(me);let ge=qs();z.close();let q=qs()-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=qs();w.call(void 0,...ce);let me=qs()-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 ww(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Df(e){e.watcher.close()}var iJ,oJ,UVe=bt({"src/compiler/watchUtilities.ts"(){"use strict";Zo(),iJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(iJ||{}),oJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(oJ||{})}});function Hle(e,t,r="tsconfig.json"){return ym(e,i=>{let o=Yr(i,r);return t(o)?o:void 0})}function nz(e,t){let r=oi(t),i=dp(e)?e:Yr(r,e);return fa(i)}function Kle(e,t,r){let i;return gn(e,s=>{let l=GL(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{nl("beforeIORead"),l=e(i,t().charset),nl("afterIORead"),Yp("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?nw(i,l,o,r):void 0}}function sJ(e,t,r){return(i,o,s,l)=>{try{nl("beforeIOWrite"),jj(i,o,s,e,t,r),nl("afterIOWrite"),Yp("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function lJ(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(fa(r.getExecutingFilePath()))}let d=Wy(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:aJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Yr(l(),$L(m)),writeFile:sJ((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 Ow(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")&&!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&&(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 a1e(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)),If(e.getCompilerOptions())&&(i=Ur(i,e.getDeclarationDiagnostics(t,r))),Ox(i||Ye)}function s1e(e,t){let r="";for(let i of e)r+=cJ(i,t);return r}function cJ(e,t){let r=`${oT(e)} TS${e.code}: ${O_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=ys(e.file,e.start),s=e.file.fileName;return`${nN(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function l1e(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 sS(e,t){return t+e+$le}function c1e(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+=dJ(o,s,t),r+=" - "}if(r+=sS(oT(i),l1e(i.category)),r+=sS(` TS${i.code}: `,"\x1B[90m"),r+=O_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=c1e(i.file,i.start,i.length,"",l1e(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+=p1e+dJ(o,s,t),r+=c1e(o,s,l,Zle,"\x1B[96m",t)),r+=t.getNewLine(),r+=Zle+O_(d,t.getNewLine())}r+=t.getNewLine()}return r}function O_(e,t,r=0){if(Co(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oYR(s,e,r,i,o,t,l)}}function _J(e){return Co(e)?e:ah(e.fileName)}function rz(e,t,r,i,o){return{nameAndMode:f1e,resolve:(s,l)=>Ese(s,e,r,i,t,o,l)}}function Fw(e,t,r,i,o,s,l,d){if(e.length===0)return Ye;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=OP(E,S),N=h.get(A);N||h.set(A,N=m.resolve(E,S)),p.push(N)}return p}function hJ(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 gJ(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 d1e(e){let t=ah(e.fileName),r=u3.get(t);return{libName:t,libFileName:r}}function RE(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function rD(e){return e.pos!==void 0}function $P(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=Bw(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,ah(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 yJ(e,t,r,i,o,s,l,d,p,h){if(!e||d?.()||!Um(e.getRootFileNames(),t))return!1;let m;if(!Um(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(!nU(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 HV(w,j)&&D(e.getResolvedProjectReferences()[K],w)}function D(w,j){if(w){if(zo(m,w))return!0;let Y=iD(j),B=p(Y);return!B||w.commandLine.options.configFile!==B.options.configFile||!Um(w.commandLine.fileNames,B.fileNames)?!1:((m||(m=[])).push(w),!gn(w.references,(ce,z)=>!D(ce,w.commandLine.projectReferences[z])))}let K=iD(j);return!p(K)}}function qT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function zw(e,t,r,i){let o=vJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function vJ(e,t,r,i){switch(uu(i)){case 3:case 99:return Ec(e,[".d.mts",".mts",".mjs"])?99:Ec(e,[".d.cts",".cts",".cjs"])?1:Ec(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=yw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=vw(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function HVe(e,t){return e?Hx(e.getCompilerOptions(),t,f3):!1}function KVe(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)?KVe(e,t,r,i,o):e,{rootNames:ce,options:z,configFileParsingDiagnostics:ee,projectReferences:me,typeScriptVersion:ge}=B,{oldProgram:q}=B,J=Eu(()=>Nm("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),re,pe,xe,fe,ne,he,Ce,Ge=new Map,ve=Xp(),Ie={},De={},ke=_1(),Et,be,ze,nt,Ft,_t,Je,ft,Zt,en,Dn=typeof z.maxNodeModuleJsDepth=="number"?z.maxNodeModuleJsDepth:0,Jn=0,pn=new Map,Yt=new Map;(s=or)==null||s.push(or.Phase.Program,"createProgram",{configFilePath:z.configFilePath,rootDir:z.rootDir},!0),nl("beforeProgram");let qt=B.host||Jle(z),hi=lz(qt),uo=z.noLib,Li=Eu(()=>qt.getDefaultLibFileName(z)),Eo=qt.getDefaultLibLocation?qt.getDefaultLibLocation():oi(Li()),Zn=fR(),jr=qt.getCurrentDirectory(),Sr=XN(z),on=pk(z,Sr),$e=new Map,Wt,In,si,yi=qt.hasInvalidatedResolutions||Hm;qt.resolveModuleNameLiterals?(si=qt.resolveModuleNameLiterals.bind(qt),In=(l=qt.getModuleResolutionCache)==null?void 0:l.call(qt)):qt.resolveModuleNames?(si=(Oe,qe,Pt,Vt,_n,qn)=>qt.resolveModuleNames(Oe.map(Yle),qe,qn?.map(Yle),Pt,Vt,_n).map(fn=>fn?fn.extension!==void 0?{resolvedModule:fn}:{resolvedModule:{...fn,extension:$N(fn.resolvedFileName)}}:ece),In=(d=qt.getModuleResolutionCache)==null?void 0:d.call(qt)):(In=XR(jr,Z,z),si=(Oe,qe,Pt,Vt,_n)=>Fw(Oe,qe,Pt,Vt,_n,qt,In,mJ));let $i;if(qt.resolveTypeReferenceDirectiveReferences)$i=qt.resolveTypeReferenceDirectiveReferences.bind(qt);else if(qt.resolveTypeReferenceDirectives)$i=(Oe,qe,Pt,Vt,_n)=>qt.resolveTypeReferenceDirectives(Oe.map(_J),qe,Pt,Vt,_n?.impliedNodeFormat).map(qn=>({resolvedTypeReferenceDirective:qn}));else{let Oe=S3(jr,Z,void 0,In?.getPackageJsonInfoCache(),In?.optionsToRedirectsKey);$i=(qe,Pt,Vt,_n,qn)=>Fw(qe,Pt,Vt,_n,qn,qt,Oe,rz)}let Ao=qt.hasInvalidatedLibResolutions||Hm,da;if(qt.resolveLibrary)da=qt.resolveLibrary.bind(qt);else{let Oe=XR(jr,Z,z,In?.getPackageJsonInfoCache());da=(qe,Pt,Vt)=>T3(qe,Pt,Vt,qt,Oe)}let Ba=new Map,vn=new Map,kn=Xp(),Be=!1,dt=new Map,ct=new Map,Rt=qt.useCaseSensitiveFileNames()?new Map:void 0,se,we,lt,G,tt=!!((p=qt.useSourceOfProjectReferenceRedirect)!=null&&p.call(qt))&&!z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:He,directoryExists:pt}=JVe({compilerHost:qt,getSymlinkCache:V_,useSourceOfProjectReferenceRedirect:tt,toPath:nr,getResolvedProjectReferences:Po,getSourceOfProjectReferenceRedirect:Du,forEachResolvedProjectReference:Bu}),Bt=qt.readFile.bind(qt);(h=or)==null||h.push(or.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let hn=HVe(q,z);(m=or)==null||m.pop();let dn;if((y=or)==null||y.push(or.Phase.Program,"tryReuseStructureFromOldProgram",{}),dn=Io(),(E=or)==null||E.pop(),dn!==2){if(re=[],pe=[],me&&(se||(se=me.map(Gt)),ce.length&&se?.forEach((Oe,qe)=>{if(!Oe)return;let Pt=Cs(Oe.commandLine.options);if(tt){if(Pt||kd(Oe.commandLine.options)===0)for(let Vt of Oe.commandLine.fileNames)Lt(Vt,{kind:1,index:qe})}else if(Pt)Lt(mE(Pt,".d.ts"),{kind:2,index:qe});else if(kd(Oe.commandLine.options)===0){let Vt=Eu(()=>tD(Oe.commandLine,!qt.useCaseSensitiveFileNames()));for(let _n of Oe.commandLine.fileNames)!Sd(_n)&&!Tl(_n,".json")&&Lt(XP(_n,Oe.commandLine,!qt.useCaseSensitiveFileNames(),Vt),{kind:2,index:qe})}})),(S=or)==null||S.push(or.Phase.Program,"processRootFiles",{count:ce.length}),gn(ce,(Oe,qe)=>Vs(Oe,!1,!1,{kind:0,index:qe})),(A=or)==null||A.pop(),be??(be=ce.length?b3(z,qt):Ye),ze=_1(),be.length){(N=or)==null||N.push(or.Phase.Program,"processTypeReferences",{count:be.length});let Oe=z.configFilePath?oi(z.configFilePath):jr,qe=Yr(Oe,oD),Pt=Ri(be,qe);for(let Vt=0;Vt{Vs(Tp(qe),!0,!1,{kind:6,index:Pt})})}xe=Ey(re,gi).concat(pe),re=void 0,pe=void 0}if(q&&qt.onReleaseOldSourceFile){let Oe=q.getSourceFiles();for(let qe of Oe){let Pt=fl(qe.resolvedPath);(hn||!Pt||Pt.impliedNodeFormat!==qe.impliedNodeFormat||qe.resolvedPath===qe.path&&Pt.resolvedPath!==qe.path)&&qt.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!fl(qe.path))}qt.getParsedCommandLine||q.forEachResolvedProjectReference(qe=>{G_(qe.sourceFile.path)||qt.onReleaseOldSourceFile(qe.sourceFile,q.getCompilerOptions(),!1)})}q&&qt.onReleaseParsedCommandLine&&iz(q.getProjectReferences(),q.getResolvedProjectReferences(),(Oe,qe,Pt)=>{let Vt=qe?.commandLine.projectReferences[Pt]||q.getProjectReferences()[Pt],_n=iD(Vt);we?.has(nr(_n))||qt.onReleaseParsedCommandLine(_n,Oe,q.getCompilerOptions())}),q=void 0,Ft=void 0,Je=void 0,Zt=void 0;let un={getRootFileNames:()=>ce,getSourceFile:Ca,getSourceFileByPath:fl,getSourceFiles:()=>xe,getMissingFilePaths:()=>ct,getModuleResolutionCache:()=>In,getFilesByNameMap:()=>dt,getCompilerOptions:()=>z,getSyntacticDiagnostics:sc,getOptionsDiagnostics:Cr,getGlobalDiagnostics:El,getSemanticDiagnostics:Rl,getCachedSemanticDiagnostics:ll,getSuggestionDiagnostics:Me,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:()=>ke,getAutomaticTypeDirectiveNames:()=>be,getAutomaticTypeDirectiveResolutions:()=>ze,isSourceFileFromExternalLibrary:hl,isSourceFileDefaultLibrary:dd,getModeForUsageLocation:uf,getModeForResolutionAtIndex:qg,getSourceFileFromReference:om,getLibFileFromReference:Oc,sourceFileToPackageName:vn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:Be,resolvedModules:_t,resolvedTypeReferenceDirectiveNames:ft,resolvedLibReferences:nt,getResolvedModule:U,getResolvedModuleFromModuleSpecifier:Le,getResolvedTypeReferenceDirective:Nt,forEachResolvedModule:k,forEachResolvedTypeReferenceDirective:ie,getCurrentPackagesMap:()=>en,typesPackageExists:We,packageBundlesTypes:Ne,isEmittedFile:hS,getConfigFileParsingDiagnostics:Hc,getProjectReferences:ls,getResolvedProjectReferences:Po,getProjectReferenceRedirect:Vl,getResolvedProjectReferenceToRedirect:cf,getResolvedProjectReferenceByPath:G_,forEachResolvedProjectReference:Bu,isSourceOfProjectReferenceRedirect:Mf,emitBuildInfo:Ql,fileExists:He,readFile:Bt,directoryExists:pt,getSymlinkCache:V_,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(Oe=>{switch(Oe.kind){case 1:return Zn.add(ii(Oe.file&&fl(Oe.file),Oe.fileProcessingReason,Oe.diagnostic,Oe.args||Ye));case 0:let{file:qe,pos:Pt,end:Vt}=$P(un,Oe.reason);return Zn.add(Zc(qe,R.checkDefined(Pt),R.checkDefined(Vt)-Pt,Oe.diagnostic,...Oe.args||Ye));case 2:return Oe.diagnostics.forEach(_n=>Zn.add(_n));default:R.assertNever(Oe)}}),O(),nl("afterProgram"),Yp("Program","beforeProgram","afterProgram"),(Y=or)==null||Y.pop(),un;function U(Oe,qe,Pt){var Vt;return(Vt=_t?.get(Oe.path))==null?void 0:Vt.get(qe,Pt)}function Le(Oe){let qe=Vn(Oe);return R.assertIsDefined(qe,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),U(qe,Oe.text,uf(qe,Oe))}function Nt(Oe,qe,Pt){var Vt;return(Vt=ft?.get(Oe.path))==null?void 0:Vt.get(qe,Pt)}function k(Oe,qe){H(_t,Oe,qe)}function ie(Oe,qe){H(ft,Oe,qe)}function H(Oe,qe,Pt){var Vt;Pt?(Vt=Oe?.get(Pt.path))==null||Vt.forEach((_n,qn,fn)=>qe(_n,qn,fn,Pt.path)):Oe?.forEach((_n,qn)=>_n.forEach((fn,Xn,mi)=>qe(fn,Xn,mi,qn)))}function ue(){return en||(en=new Map,k(({resolvedModule:Oe})=>{Oe?.packageId&&en.set(Oe.packageId.name,Oe.extension===".d.ts"||!!en.get(Oe.packageId.name))}),en)}function We(Oe){return ue().has(x3(Oe))}function Ne(Oe){return!!ue().get(Oe)}function It(Oe){var qe;(qe=Oe.resolutionDiagnostics)!=null&&qe.length&&(Et??(Et=[])).push({kind:2,diagnostics:Oe.resolutionDiagnostics})}function Dt(Oe,qe,Pt,Vt){if(qt.resolveModuleNameLiterals||!qt.resolveModuleNames)return It(Pt);if(!In||$c(qe))return;let _n=_o(Oe.originalFileName,jr),qn=oi(_n),fn=wn(Oe),Xn=In.getFromNonRelativeNameCache(qe,Vt,qn,fn);Xn&&It(Xn)}function Kt(Oe,qe,Pt){var Vt,_n;if(!Oe.length)return Ye;let qn=_o(qe.originalFileName,jr),fn=wn(qe);(Vt=or)==null||Vt.push(or.Phase.Program,"resolveModuleNamesWorker",{containingFileName:qn}),nl("beforeResolveModule");let Xn=si(Oe,qn,fn,z,qe,Pt);return nl("afterResolveModule"),Yp("ResolveModule","beforeResolveModule","afterResolveModule"),(_n=or)==null||_n.pop(),Xn}function En(Oe,qe,Pt){var Vt,_n;if(!Oe.length)return[];let qn=Co(qe)?void 0:qe,fn=Co(qe)?qe:_o(qe.originalFileName,jr),Xn=qn&&wn(qn);(Vt=or)==null||Vt.push(or.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:fn}),nl("beforeResolveTypeReference");let mi=$i(Oe,fn,Xn,z,qn,Pt);return nl("afterResolveTypeReference"),Yp("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(_n=or)==null||_n.pop(),mi}function wn(Oe){let qe=cf(Oe.originalFileName);if(qe||!Sd(Oe.originalFileName))return qe;let Pt=Bn(Oe.path);if(Pt)return Pt;if(!qt.realpath||!z.preserveSymlinks||!Oe.originalFileName.includes(Th))return;let Vt=nr(qt.realpath(Oe.originalFileName));return Vt===Oe.path?void 0:Bn(Vt)}function Bn(Oe){let qe=Du(Oe);if(Co(qe))return cf(qe);if(qe)return Bu(Pt=>{let Vt=Cs(Pt.commandLine.options);if(Vt)return nr(Vt)===Oe?Pt:void 0})}function gi(Oe,qe){return tl(xi(Oe),xi(qe))}function xi(Oe){if(hm(Eo,Oe.fileName,!1)){let qe=rc(Oe.fileName);if(qe==="lib.d.ts"||qe==="lib.es6.d.ts")return 0;let Pt=xx($C(qe,"lib."),".d.ts"),Vt=dw.indexOf(Pt);if(Vt!==-1)return Vt+1}return dw.length+2}function nr(Oe){return rl(Oe,jr,Z)}function Wr(){if(ne===void 0){let Oe=Vr(xe,qe=>TT(qe,un));ne=YP(z,()=>to(Oe,qe=>qe.isDeclarationFile?void 0:qe.fileName),jr,Z,qe=>Ot(Oe,qe))}return ne}function ho(){var Oe;if(!Ce){mo(),Ce=new Set;for(let qe of xe)(Oe=qe.classifiableNames)==null||Oe.forEach(Pt=>Ce.add(Pt))}return Ce}function Pi(Oe,qe){if(dn===0&&!qe.ambientModuleNames.length)return Kt(Oe,qe,void 0);let Pt,Vt,_n,qn=ece,fn=q&&q.getSourceFile(qe.fileName);for(let ni=0;ni{let Vt=(qe?qe.commandLine.projectReferences:me)[Pt],_n=Gt(Vt);return Oe?!_n||_n.sourceFile!==Oe.sourceFile||!Um(Oe.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},(Oe,qe)=>{let Pt=qe?G_(qe.sourceFile.path).commandLine.projectReferences:me;return!Um(Oe,Pt,HV)})}function Io(){var Oe;if(!q)return 0;let qe=q.getCompilerOptions();if(bF(qe,z))return 0;let Pt=q.getRootFileNames();if(!Um(Pt,ce)||!Hr())return 0;me&&(se=me.map(Gt));let Vt=[],_n=[];if(dn=2,Gc(q.getMissingFilePaths(),sr=>qt.fileExists(sr)))return 0;let qn=q.getSourceFiles(),fn;(sr=>{sr[sr.Exists=0]="Exists",sr[sr.Modified=1]="Modified"})(fn||(fn={}));let Xn=new Map;for(let sr of qn){let ni=Qo(sr.fileName,In,qt,z),ur=qt.getSourceFileByPath?qt.getSourceFileByPath(sr.fileName,sr.resolvedPath,ni,void 0,hn):qt.getSourceFile(sr.fileName,ni,void 0,hn);if(!ur)return 0;ur.packageJsonLocations=(Oe=ni.packageJsonLocations)!=null&&Oe.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(sr.redirectInfo){if(ur!==sr.redirectInfo.unredirected)return 0;Xo=!1,ur=sr}else if(q.redirectTargetsMap.has(sr.path)){if(ur!==sr)return 0;Xo=!1}else Xo=ur!==sr;ur.path=sr.path,ur.originalFileName=sr.originalFileName,ur.resolvedPath=sr.resolvedPath,ur.fileName=sr.fileName;let Ha=q.sourceFileToPackageName.get(sr.path);if(Ha!==void 0){let Qd=Xn.get(Ha),md=Xo?1:0;if(Qd!==void 0&&md===1||Qd===1)return 0;Xn.set(Ha,md)}if(Xo)sr.impliedNodeFormat!==ur.impliedNodeFormat?dn=1:Um(sr.libReferenceDirectives,ur.libReferenceDirectives,gc)?sr.hasNoDefaultLib!==ur.hasNoDefaultLib?dn=1:Um(sr.referencedFiles,ur.referencedFiles,gc)?(np(ur),Um(sr.imports,ur.imports,bs)&&Um(sr.moduleAugmentations,ur.moduleAugmentations,bs)?(sr.flags&12582912)!==(ur.flags&12582912)?dn=1:Um(sr.typeReferenceDirectives,ur.typeReferenceDirectives,gc)||(dn=1):dn=1):dn=1:dn=1,_n.push(ur);else if(yi(sr.path))dn=1,_n.push(ur);else for(let Qd of sr.ambientModuleNames)Ge.set(Qd,sr.fileName);Vt.push(ur)}if(dn!==2)return dn;for(let sr of _n){let ni=u1e(sr),ur=Pi(ni,sr);(Je??(Je=new Map)).set(sr.path,ur),KV(ni,ur,Xg=>q.getResolvedModule(sr,Xg.text,uf(sr,Xg)),Wre)&&(dn=1);let Ha=sr.typeReferenceDirectives,Qd=Ri(Ha,sr);(Zt??(Zt=new Map)).set(sr.path,Qd),KV(Ha,Qd,Xg=>q.getResolvedTypeReferenceDirective(sr,_J(Xg),Ww(Xg,sr.impliedNodeFormat)),Fre)&&(dn=1)}if(dn!==2)return dn;if(wre(qe,z)||q.resolvedLibReferences&&Gc(q.resolvedLibReferences,(sr,ni)=>dg(ni).actual!==sr.actual))return 1;if(qt.hasChangedAutomaticTypeDirectiveNames){if(qt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=b3(z,qt),!Um(q.getAutomaticTypeDirectiveNames(),be))return 1;ct=q.getMissingFilePaths(),R.assert(Vt.length===q.getSourceFiles().length);for(let sr of Vt)dt.set(sr.path,sr);return q.getFilesByNameMap().forEach((sr,ni)=>{if(!sr){dt.set(ni,sr);return}if(sr.path===ni){q.isSourceFileFromExternalLibrary(sr)&&Yt.set(sr.path,!0);return}dt.set(ni,dt.get(sr.path))}),xe=Vt,ve=q.getFileIncludeReasons(),Et=q.getFileProcessingDiagnostics(),ke=q.getResolvedTypeReferenceDirectives(),be=q.getAutomaticTypeDirectiveNames(),ze=q.getAutomaticTypeDirectiveResolutions(),vn=q.sourceFileToPackageName,kn=q.redirectTargetsMap,Be=q.usesUriStyleNodeCoreModules,_t=q.resolvedModules,ft=q.resolvedTypeReferenceDirectiveNames,nt=q.resolvedLibReferences,en=q.getCurrentPackagesMap(),2}function xn(Oe){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:hl,getResolvedProjectReferenceToRedirect:cf,getProjectReferenceRedirect:Vl,isSourceOfProjectReferenceRedirect:Mf,getSymlinkCache:V_,writeFile:Oe||Os,isEmitBlocked:ud,readFile:qe=>qt.readFile(qe),fileExists:qe=>{let Pt=nr(qe);return fl(Pt)?!0:ct.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(Oe,qe,Pt,Vt,_n,qn){qt.writeFile(Oe,qe,Pt,Vt,_n,qn)}function Ql(Oe){var qe,Pt;R.assert(!Cs(z)),(qe=or)==null||qe.push(or.Phase.Emit,"emitBuildInfo",{},!0),nl("beforeEmit");let Vt=Y3(Q3,xn(Oe),void 0,qK,!1,!0);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),(Pt=or)==null||Pt.pop(),Vt}function Po(){return se}function ls(){return me}function Bs(){return EJ(me,(Oe,qe)=>{var Pt;return(Pt=se[qe])==null?void 0:Pt.commandLine},Oe=>{let qe=nr(Oe),Pt=fl(qe);return Pt?Pt.text:dt.has(qe)?void 0:qt.readFile(qe)},qt)}function hl(Oe){return!!Yt.get(Oe.path)}function dd(Oe){if(!Oe.isDeclarationFile)return!1;if(Oe.hasNoDefaultLib)return!0;if(!z.noLib)return!1;let qe=qt.useCaseSensitiveFileNames()?nT:Yb;return z.lib?gt(z.lib,Pt=>qe(Oe.fileName,nt.get(Pt).actual)):qe(Oe.fileName,Li())}function mo(){return he||(he=Hse(un))}function sa(Oe,qe,Pt,Vt,_n,qn){var fn,Xn;(fn=or)==null||fn.push(or.Phase.Emit,"emit",{path:Oe?.path},!0);let mi=pd(()=>Ts(un,Oe,qe,Pt,Vt,_n,qn));return(Xn=or)==null||Xn.pop(),mi}function ud(Oe){return $e.has(nr(Oe))}function Ts(Oe,qe,Pt,Vt,_n,qn,fn){if(!fn){let sr=bJ(Oe,qe,Pt,Vt);if(sr)return sr}let Xn=mo().getEmitResolver(Cs(z)?void 0:qe,Vt);nl("beforeEmit");let mi=Y3(Xn,xn(Pt),qe,JK(z,qn,_n),_n,!1,fn);return nl("afterEmit"),Yp("Emit","beforeEmit","afterEmit"),mi}function Ca(Oe){return fl(nr(Oe))}function fl(Oe){return dt.get(Oe)||void 0}function Pf(Oe,qe,Pt){return Ox(Oe?qe(Oe,Pt):ya(un.getSourceFiles(),Vt=>(Pt&&Pt.throwIfCancellationRequested(),qe(Vt,Pt))))}function sc(Oe,qe){return Pf(Oe,rd,qe)}function Rl(Oe,qe){return Pf(Oe,Sp,qe)}function ll(Oe){var qe;return Oe?(qe=Ie.perFile)==null?void 0:qe.get(Oe.path):Ie.allDiagnostics}function Mo(Oe,qe){return Ns(Oe,qe)}function tn(Oe){var qe;if(QN(Oe,z,un))return Ye;let Pt=Zn.getDiagnostics(Oe.fileName);return(qe=Oe.commentDirectives)!=null&&qe.length?$(Oe,Oe.commentDirectives,Pt).diagnostics:Pt}function Gs(Oe,qe){let Pt=un.getCompilerOptions();return!Oe||Cs(Pt)?br(Oe,qe):Pf(Oe,Di,qe)}function rd(Oe){return lu(Oe)?(Oe.additionalSyntacticDiagnostics||(Oe.additionalSyntacticDiagnostics=cn(Oe)),bo(Oe.additionalSyntacticDiagnostics,Oe.parseDiagnostics)):Oe.parseDiagnostics}function pd(Oe){try{return Oe()}catch(qe){throw qe instanceof Px&&(he=void 0),qe}}function Sp(Oe,qe){return bo(sz(Ns(Oe,qe),z),tn(Oe))}function Ns(Oe,qe){return Fr(Oe,qe,Ie,Ic)}function Ic(Oe,qe){return pd(()=>{if(QN(Oe,z,un))return Ye;let Pt=mo();R.assert(!!Oe.bindDiagnostics);let _n=(Oe.scriptKind===1||Oe.scriptKind===2)&&_k(Oe,z),qn=y2(Oe,z.checkJs),Xn=!(!!Oe.checkJsDirective&&Oe.checkJsDirective.enabled===!1)&&(Oe.scriptKind===3||Oe.scriptKind===4||Oe.scriptKind===5||qn||_n||Oe.scriptKind===7),mi=Xn?Oe.bindDiagnostics:Ye,sr=Xn?Pt.getDiagnostics(Oe,qe):Ye;return qn&&(mi=Vr(mi,ni=>dz.has(ni.code)),sr=Vr(sr,ni=>dz.has(ni.code))),de(Oe,Xn&&!qn,mi,sr,_n?Oe.jsDocDiagnostics:void 0)})}function de(Oe,qe,...Pt){var Vt;let _n=mm(Pt);if(!qe||!((Vt=Oe.commentDirectives)!=null&&Vt.length))return _n;let{diagnostics:qn,directives:fn}=$(Oe,Oe.commentDirectives,_n);for(let Xn of fn.getUnusedExpectations())qn.push(Zre(Oe,Xn.range,f.Unused_ts_expect_error_directive));return qn}function $(Oe,qe,Pt){let Vt=Gre(Oe,qe);return{diagnostics:Pt.filter(qn=>yt(qn,Vt)===-1),directives:Vt}}function Me(Oe,qe){return pd(()=>mo().getSuggestionDiagnostics(Oe,qe))}function yt(Oe,qe){let{file:Pt,start:Vt}=Oe;if(!Pt)return-1;let _n=Dg(Pt),qn=kx(_n,Vt).line-1;for(;qn>=0;){if(qe.markUsed(qn))return qn;let fn=Pt.text.slice(_n[qn],_n[qn+1]).trim();if(fn!==""&&!/^(\s*)\/\/(.*)$/.test(fn))return-1;qn--}return-1}function cn(Oe){return pd(()=>{let qe=[];return Pt(Oe,Oe),CP(Oe,Pt,Vt),qe;function Pt(Xn,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.questionToken===Xn)return qe.push(fn(Xn,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===Xn)return qe.push(fn(Xn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Xn.kind){case 273:if(Xn.isTypeOnly)return qe.push(fn(mi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Xn.isTypeOnly)return qe.push(fn(Xn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Xn.isTypeOnly)return qe.push(fn(Xn,f._0_declarations_can_only_be_used_in_TypeScript_files,Zu(Xn)?"import...type":"export...type")),"skip";break;case 271:return qe.push(fn(Xn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Xn.isExportEquals)return qe.push(fn(Xn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Xn.token===119)return qe.push(fn(Xn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let ni=ca(120);return R.assertIsDefined(ni),qe.push(fn(Xn,f._0_declarations_can_only_be_used_in_TypeScript_files,ni)),"skip";case 267:let ur=Xn.flags&32?ca(145):ca(144);return R.assertIsDefined(ur),qe.push(fn(Xn,f._0_declarations_can_only_be_used_in_TypeScript_files,ur)),"skip";case 265:return qe.push(fn(Xn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Xn.body?void 0:(qe.push(fn(Xn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Xo=R.checkDefined(ca(94));return qe.push(fn(Xn,f._0_declarations_can_only_be_used_in_TypeScript_files,Xo)),"skip";case 235:return qe.push(fn(Xn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return qe.push(fn(Xn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return qe.push(fn(Xn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:R.fail()}}function Vt(Xn,mi){if(RH(mi)){let sr=Gr(mi.modifiers,Ed);sr&&qe.push(fn(sr,f.Decorators_are_not_valid_here))}else if(jT(mi)&&mi.modifiers){let sr=Jl(mi.modifiers,Ed);if(sr>=0){if(To(mi)&&!z.experimentalDecorators)qe.push(fn(mi.modifiers[sr],f.Decorators_are_not_valid_here));else if(Tc(mi)){let ni=Jl(mi.modifiers,$I);if(ni>=0){let ur=Jl(mi.modifiers,W4);if(sr>ni&&ur>=0&&sr=0&&sr=0&&qe.push(Pa(fn(mi.modifiers[Xo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),fn(mi.modifiers[sr],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(Xn===mi.typeParameters)return qe.push(qn(Xn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Xn===mi.modifiers)return _n(mi.modifiers,mi.kind===243),"skip";break;case 172:if(Xn===mi.modifiers){for(let sr of Xn)Sa(sr)&&sr.kind!==126&&sr.kind!==129&&qe.push(fn(sr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ca(sr.kind)));return"skip"}break;case 169:if(Xn===mi.modifiers&>(Xn,Sa))return qe.push(qn(Xn,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(Xn===mi.typeArguments)return qe.push(qn(Xn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(Xn,mi){for(let sr of Xn)switch(sr.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(sr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ca(sr.kind)));break;case 126:case 95:case 90:case 129:}}function qn(Xn,mi,...sr){let ni=Xn.pos;return Zc(Oe,ni,Xn.end-ni,mi,...sr)}function fn(Xn,mi,...sr){return Jf(Oe,Xn,mi,...sr)}})}function br(Oe,qe){return Fr(Oe,qe,De,mr)}function mr(Oe,qe){return pd(()=>{let Pt=mo().getEmitResolver(Oe,qe);return Fle(xn(qa),Pt,Oe)||Ye})}function Fr(Oe,qe,Pt,Vt){var _n;let qn=Oe?(_n=Pt.perFile)==null?void 0:_n.get(Oe.path):Pt.allDiagnostics;if(qn)return qn;let fn=Vt(Oe,qe);return Oe?(Pt.perFile||(Pt.perFile=new Map)).set(Oe.path,fn):Pt.allDiagnostics=fn,fn}function Di(Oe,qe){return Oe.isDeclarationFile?[]:br(Oe,qe)}function Cr(){return Ox(bo(Zn.getGlobalDiagnostics(),Jo()))}function Jo(){if(!z.configFile)return Ye;let Oe=Zn.getDiagnostics(z.configFile.fileName);return Bu(qe=>{Oe=bo(Oe,Zn.getDiagnostics(qe.sourceFile.fileName))}),Oe}function El(){return ce.length?Ox(mo().getGlobalDiagnostics().slice()):Ye}function Hc(){return ee||Ye}function Vs(Oe,qe,Pt,Vt){Re(fa(Oe),qe,Pt,void 0,Vt)}function gc(Oe,qe){return Oe.fileName===qe.fileName}function bs(Oe,qe){return Oe.kind===80?qe.kind===80&&Oe.escapedText===qe.escapedText:qe.kind===11&&Oe.text===qe.text}function Kc(Oe,qe){let Pt=L.createStringLiteral(Oe),Vt=L.createImportDeclaration(void 0,void 0,Pt,void 0);return UI(Vt,2),ja(Pt,Vt),ja(Vt,qe),Pt.flags&=-17,Vt.flags&=-17,Pt}function np(Oe){if(Oe.imports)return;let qe=lu(Oe),Pt=ac(Oe),Vt,_n,qn;if((tm(z)||Pt)&&!Oe.isDeclarationFile){z.importHelpers&&(Vt=[Kc(Vv,Oe)]);let sr=P6(N6(z,Oe),z);sr&&(Vt||(Vt=[])).push(Kc(sr,Oe))}for(let sr of Oe.statements)fn(sr,!1);(Oe.flags&4194304||qe)&&Xn(Oe),Oe.imports=Vt||Ye,Oe.moduleAugmentations=_n||Ye,Oe.ambientModuleNames=qn||Ye;return;function fn(sr,ni){if(E2(sr)){let ur=oR(sr);ur&&Da(ur)&&ur.text&&(!ni||!$c(ur.text))&&(Gv(sr,!1),Vt=Tn(Vt,ur),!Be&&Jn===0&&!Oe.isDeclarationFile&&(Be=ao(ur.text,"node:")))}else if(Xl(sr)&&Ld(sr)&&(ni||$r(sr,128)||Oe.isDeclarationFile)){sr.name.parent=sr;let ur=Yf(sr.name);if(Pt||ni&&!$c(ur))(_n||(_n=[])).push(sr.name);else if(!ni){Oe.isDeclarationFile&&(qn||(qn=[])).push(ur);let Xo=sr.body;if(Xo)for(let Ha of Xo.statements)fn(Ha,!0)}}}function Xn(sr){let ni=/import|require/g;for(;ni.exec(sr.text)!==null;){let ur=mi(sr,ni.lastIndex);qe&&Su(ur,!0)||Wp(ur)&&ur.arguments.length>=1&&ss(ur.arguments[0])?(Gv(ur,!1),Vt=Tn(Vt,ur.arguments[0])):Ov(ur)&&(Gv(ur,!1),Vt=Tn(Vt,ur.argument.literal))}}function mi(sr,ni){let ur=sr,Xo=Ha=>{if(Ha.pos<=ni&&(niTl(_n,fn))){Pt&&(z0(_n)?Pt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Oe):Pt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Oe,"'"+mm(Sr).join("', '")+"'"));return}let qn=qe(Oe);if(Pt)if(qn)RE(Vt)&&_n===qt.getCanonicalFileName(fl(Vt.file).fileName)&&Pt(f.A_file_cannot_have_a_reference_to_itself);else{let fn=Vl(Oe);fn?Pt(f.Output_file_0_has_not_been_built_from_source_file_1,fn,Oe):Pt(f.File_0_not_found,Oe)}return qn}else{let _n=z.allowNonTsExtensions&&qe(Oe);if(_n)return _n;if(Pt&&z.allowNonTsExtensions){Pt(f.File_0_not_found,Oe);return}let qn=gn(Sr[0],fn=>qe(Oe+fn));return Pt&&!qn&&Pt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Oe,"'"+mm(Sr).join("', '")+"'"),qn}}function Re(Oe,qe,Pt,Vt,_n){mu(Oe,qn=>qo(qn,qe,Pt,_n,Vt),(qn,...fn)=>Xr(void 0,_n,qn,fn),_n)}function Lt(Oe,qe){return Re(Oe,!1,!1,void 0,qe)}function Hn(Oe,qe,Pt){!RE(Pt)&>(ve.get(qe.path),RE)?Xr(qe,Pt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[qe.fileName,Oe]):Xr(qe,Pt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Oe,qe.fileName])}function go(Oe,qe,Pt,Vt,_n,qn,fn){var Xn;let mi=Sh.createRedirectedSourceFile({redirectTarget:Oe,unredirected:qe});return mi.fileName=Pt,mi.path=Vt,mi.resolvedPath=_n,mi.originalFileName=qn,mi.packageJsonLocations=(Xn=fn.packageJsonLocations)!=null&&Xn.length?fn.packageJsonLocations:void 0,mi.packageJsonScope=fn.packageJsonScope,Yt.set(Vt,Jn>0),mi}function qo(Oe,qe,Pt,Vt,_n){var qn,fn;(qn=or)==null||qn.push(or.Phase.Program,"findSourceFile",{fileName:Oe,isDefaultLib:qe||void 0,fileIncludeKind:kW[Vt.kind]});let Xn=Zl(Oe,qe,Pt,Vt,_n);return(fn=or)==null||fn.pop(),Xn}function Qo(Oe,qe,Pt,Vt){let _n=vJ(_o(Oe,jr),qe?.getPackageJsonInfoCache(),Pt,Vt),qn=rs(Vt),fn=uk(Vt);return typeof _n=="object"?{..._n,languageVersion:qn,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}:{languageVersion:qn,impliedNodeFormat:_n,setExternalModuleIndicator:fn,jsDocParsingMode:Pt.jsDocParsingMode}}function Zl(Oe,qe,Pt,Vt,_n){var qn;let fn=nr(Oe);if(tt){let ur=Du(fn);if(!ur&&qt.realpath&&z.preserveSymlinks&&Sd(Oe)&&Oe.includes(Th)){let Xo=nr(qt.realpath(Oe));Xo!==fn&&(ur=Du(Xo))}if(ur){let Xo=Co(ur)?qo(ur,qe,Pt,Vt,_n):void 0;return Xo&&cl(Xo,fn,Oe,void 0),Xo}}let Xn=Oe;if(dt.has(fn)){let ur=dt.get(fn);if(yc(ur||void 0,Vt),ur&&z.forceConsistentCasingInFileNames!==!1){let Xo=ur.fileName;nr(Xo)!==nr(Oe)&&(Oe=Vl(Oe)||Oe);let Qd=pV(Xo,jr),md=pV(Oe,jr);Qd!==md&&Hn(Oe,ur,Vt)}return ur&&Yt.get(ur.path)&&Jn===0?(Yt.set(ur.path,!1),z.noResolve||(xh(ur,qe),Hg(ur)),z.noLib||Gu(ur),pn.set(ur.path,!1),it(ur)):ur&&pn.get(ur.path)&&JnXr(void 0,Vt,f.Cannot_read_file_0_Colon_1,[Oe,ur]),hn);if(_n){let ur=kv(_n),Xo=Ba.get(ur);if(Xo){let Ha=go(Xo,ni,Oe,fn,nr(Oe),Xn,sr);return kn.add(Xo.path,Oe),cl(Ha,fn,Oe,mi),yc(Ha,Vt),vn.set(fn,TF(_n)),pe.push(Ha),Ha}else ni&&(Ba.set(ur,ni),vn.set(fn,TF(_n)))}if(cl(ni,fn,Oe,mi),ni){if(Yt.set(fn,Jn>0),ni.fileName=Oe,ni.path=fn,ni.resolvedPath=nr(Oe),ni.originalFileName=Xn,ni.packageJsonLocations=(qn=sr.packageJsonLocations)!=null&&qn.length?sr.packageJsonLocations:void 0,ni.packageJsonScope=sr.packageJsonScope,yc(ni,Vt),qt.useCaseSensitiveFileNames()){let ur=ah(fn),Xo=Rt.get(ur);Xo?Hn(Oe,Xo,Vt):Rt.set(ur,ni)}uo=uo||ni.hasNoDefaultLib&&!Pt,z.noResolve||(xh(ni,qe),Hg(ni)),z.noLib||Gu(ni),it(ni),qe?re.push(ni):pe.push(ni)}return ni}function yc(Oe,qe){Oe&&ve.add(Oe.path,qe)}function cl(Oe,qe,Pt,Vt){Vt?(gl(Pt,Vt,Oe),gl(Pt,qe,Oe||!1)):gl(Pt,qe,Oe)}function gl(Oe,qe,Pt){dt.set(qe,Pt),Pt!==void 0?ct.delete(qe):ct.set(qe,Oe)}function Vl(Oe){let qe=ec(Oe);return qe&&Jc(qe,Oe)}function ec(Oe){if(!(!se||!se.length||Sd(Oe)||Tl(Oe,".json")))return cf(Oe)}function Jc(Oe,qe){let Pt=Cs(Oe.commandLine.options);return Pt?mE(Pt,".d.ts"):XP(qe,Oe.commandLine,!qt.useCaseSensitiveFileNames())}function cf(Oe){lt===void 0&&(lt=new Map,Bu(Pt=>{nr(z.configFilePath)!==Pt.sourceFile.path&&Pt.commandLine.fileNames.forEach(Vt=>lt.set(nr(Vt),Pt.sourceFile.path))}));let qe=lt.get(nr(Oe));return qe&&G_(qe)}function Bu(Oe){return hJ(se,Oe)}function Du(Oe){if(Sd(Oe))return G===void 0&&(G=new Map,Bu(qe=>{let Pt=Cs(qe.commandLine.options);if(Pt){let Vt=mE(Pt,".d.ts");G.set(nr(Vt),!0)}else{let Vt=Eu(()=>tD(qe.commandLine,!qt.useCaseSensitiveFileNames()));gn(qe.commandLine.fileNames,_n=>{if(!Sd(_n)&&!Tl(_n,".json")){let qn=XP(_n,qe.commandLine,!qt.useCaseSensitiveFileNames(),Vt);G.set(nr(qn),_n)}})}})),G.get(Oe)}function Mf(Oe){return tt&&!!cf(Oe)}function G_(Oe){if(we)return we.get(Oe)||void 0}function xh(Oe,qe){gn(Oe.referencedFiles,(Pt,Vt)=>{Re(nz(Pt.fileName,Oe.fileName),qe,!1,void 0,{kind:4,file:Oe.path,index:Vt})})}function Hg(Oe){let qe=Oe.typeReferenceDirectives;if(!qe.length)return;let Pt=Zt?.get(Oe.path)||Ri(qe,Oe),Vt=_1();(ft??(ft=new Map)).set(Oe.path,Vt);for(let _n=0;_n{let{libName:Vt,libFileName:_n}=d1e(qe);if(_n)Vs(Tp(_n),!0,!0,{kind:7,file:Oe.path,index:Pt});else{let qn=xx($C(Vt,"lib."),".d.ts"),fn=YC(qn,dw,el),Xn=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:Oe.path,index:Pt},diagnostic:Xn,args:mi})}})}function Z(Oe){return qt.getCanonicalFileName(Oe)}function it(Oe){var qe;if(np(Oe),Oe.imports.length||Oe.moduleAugmentations.length){let Pt=u1e(Oe),Vt=Je?.get(Oe.path)||Pi(Pt,Oe);R.assert(Vt.length===Pt.length);let _n=((qe=wn(Oe))==null?void 0:qe.commandLine.options)||z,qn=_1();(_t??(_t=new Map)).set(Oe.path,qn);for(let fn=0;fnDn,md=Ha&&!SJ(_n,Xn,Oe)&&!_n.noResolve&&fnac(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(Oe&&!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(hE(z)&&(uu(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(Xn=>ch(Xn.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&&!jv(z)&&Zn.add(Ul(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),z.emitDeclarationOnly&&(If(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",LP.get(""+z.jsx)),p1(z.jsxFactory,qe)||Nm("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,z.jsxFactory)):z.reactNamespace&&!$p(z.reactNamespace,qe)&&Nm("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",LP.get(""+z.jsx)),p1(z.jsxFragmentFactory,qe)||Nm("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",LP.get(""+z.jsx)),z.jsxImportSource&&z.jsx===2&&cs(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",LP.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&&Mm("preserveValueImports","verbatimModuleSyntax"),z.importsNotUsedAsValues&&Mm("importsNotUsedAsValues","verbatimModuleSyntax")),z.allowImportingTsExtensions&&!(z.noEmit||z.emitDeclarationOnly)&&Nm("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let _n=uu(z);if(z.resolvePackageJsonExports&&!BI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),z.resolvePackageJsonImports&&!BI(_n)&&cs(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),z.customConditions&&!BI(_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&&Nm("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),ZC[Vt]&&100<=Vt&&Vt<=199&&!(3<=_n&&_n<=99)){let fn=ZC[Vt];Nm("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,fn,fn)}else if(Mx[_n]&&3<=_n&&_n<=99&&!(100<=Vt&&Vt<=199)){let fn=Mx[_n];Nm("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(),Xn=new Set;XK(fn,mi=>{z.emitDeclarationOnly||qn(mi.jsFilePath,Xn),qn(mi.declarationFilePath,Xn)})}function qn(fn,Xn){if(fn){let mi=nr(fn);if(dt.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),_S(fn,A6(ni))}let sr=qt.useCaseSensitiveFileNames()?mi:ah(mi);Xn.has(sr)?_S(fn,Ul(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,fn)):Xn.add(sr)}}}function Se(){let Oe=z.ignoreDeprecations;if(Oe){if(Oe==="5.0")return new _m(Oe);J()}return _m.zero}function rt(Oe,qe,Pt,Vt){let _n=new _m(Oe),qn=new _m(qe),fn=new _m(ge||v_),Xn=Se(),mi=qn.compareTo(fn)!==1,sr=!mi&&Xn.compareTo(_n)===-1;(mi||sr)&&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,Oe):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,Oe)})}function jt(){function Oe(qe,Pt,Vt,_n,...qn){if(Vt){let fn=Fo(void 0,f.Use_0_instead,Vt),Xn=Fo(fn,_n,...qn);Ui(!Pt,qe,void 0,Xn)}else Ui(!Pt,qe,void 0,_n,...qn)}rt("5.0","5.5",Oe,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(Oe,qe,Pt){function Vt(_n,qn,fn,Xn,...mi){Pm(qe,Pt,Xn,...mi)}rt("5.0","5.5",Vt,_n=>{Oe.prepend&&_n("prepend")})}function ii(Oe,qe,Pt,Vt){var _n;let qn,fn,Xn=RE(qe)?qe:void 0;Oe&&((_n=ve.get(Oe.path))==null||_n.forEach(Xo)),qe&&Xo(qe),Xn&&qn?.length===1&&(qn=void 0);let mi=Xn&&$P(un,Xn),sr=qn&&Fo(qn,f.The_file_is_in_the_program_because_Colon),ni=Oe&&zJ(Oe),ur=Fo(ni?sr?[sr,...ni]:ni:sr,Pt,...Vt||Ye);return mi&&rD(mi)?NF(mi.file,mi.pos,mi.end-mi.pos,ur,fn):A6(ur,fn);function Xo(Ha){(qn||(qn=[])).push(VJ(un,Ha)),!Xn&&RE(Ha)?Xn=Ha:Xn!==Ha&&(fn=Tn(fn,La(Ha))),Ha===qe&&(qe=void 0)}}function Xr(Oe,qe,Pt,Vt){(Et||(Et=[])).push({kind:1,file:Oe&&Oe.path,fileProcessingReason:qe,diagnostic:Pt,args:Vt})}function no(Oe,qe,Pt){Zn.add(ii(Oe,void 0,qe,Pt))}function La(Oe){if(RE(Oe)){let Vt=$P(un,Oe),_n;switch(Oe.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(Oe)}return rD(Vt)?Zc(Vt.file,Vt.pos,Vt.end-Vt.pos,_n):void 0}if(!z.configFile)return;let qe,Pt;switch(Oe.kind){case 0:if(!z.configFile.configFileSpecs)return;let Vt=_o(ce[Oe.index],jr),_n=BJ(un,Vt);if(_n){qe=WF(z.configFile,"files",_n),Pt=f.File_is_matched_by_files_list_specified_here;break}let qn=GJ(un,Vt);if(!qn||!Co(qn))return;qe=WF(z.configFile,"include",qn),Pt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let fn=R.checkDefined(se?.[Oe.index]),Xn=iz(me,se,(Xo,Ha,Qd)=>Xo===fn?{sourceFile:Ha?.sourceFile||z.configFile,index:Qd}:void 0);if(!Xn)return;let{sourceFile:mi,index:sr}=Xn,ni=R2(mi,"references",Xo=>pu(Xo.initializer)?Xo.initializer:void 0);return ni&&ni.elements.length>sr?Jf(mi,ni.elements[sr],Oe.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",Oe.typeReference),Pt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Oe.index!==void 0){qe=ab("lib",z.lib[Oe.index]),Pt=f.File_is_library_specified_here;break}let ur=Gc(pw.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(Oe)}return qe&&Jf(z.configFile,qe,Pt)}function ka(){let Oe=z.suppressOutputPathCheck?void 0:Uy(z);iz(me,se,(qe,Pt,Vt)=>{let _n=(Pt?Pt.commandLine.projectReferences:me)[Vt],qn=Pt&&Pt.sourceFile;if(er(_n,qn,Vt),!qe){Pm(qn,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||Pm(qn,Vt,f.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),fn.noEmit&&Pm(qn,Vt,f.Referenced_project_0_may_not_disable_emit,_n.path)),_n.prepend){let Xn=Cs(fn);Xn?qt.fileExists(Xn)||Pm(qn,Vt,f.Output_file_0_from_project_1_does_not_exist,Xn,_n.path):Pm(qn,Vt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Pt&&Oe&&Oe===Uy(fn)&&(Pm(qn,Vt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Oe,_n.path),$e.set(nr(Oe),!0))})}function wl(Oe,qe,Pt,...Vt){let _n=!0;Ap(qn=>{Ma(qn.initializer)&&Zx(qn.initializer,Oe,fn=>{let Xn=fn.initializer;pu(Xn)&&Xn.elements.length>qe&&(Zn.add(Jf(z.configFile,Xn.elements[qe],Pt,...Vt)),_n=!1)})}),_n&&Zn.add(Ul(Pt,...Vt))}function fd(Oe,qe,Pt,...Vt){let _n=!0;Ap(qn=>{Ma(qn.initializer)&&Zy(qn.initializer,Oe,qe,void 0,Pt,...Vt)&&(_n=!1)}),_n&&Zn.add(Ul(Pt,...Vt))}function xc(Oe,qe){return Zx(Jg(),Oe,qe)}function Ap(Oe){return xc("paths",Oe)}function Vu(Oe,qe){return xc(Oe,Pt=>Da(Pt.initializer)&&Pt.initializer.text===qe?Pt.initializer:void 0)}function ab(Oe,qe){let Pt=Jg();return Pt&&lie(Pt,Oe,qe)}function cs(Oe,qe,Pt,Vt){Ui(!0,qe,Pt,Oe,qe,Pt,Vt)}function Nm(Oe,qe,...Pt){Ui(!1,Oe,void 0,qe,...Pt)}function Pm(Oe,qe,Pt,...Vt){let _n=R2(Oe||z.configFile,"references",qn=>pu(qn.initializer)?qn.initializer:void 0);_n&&_n.elements.length>qe?Zn.add(Jf(Oe||z.configFile,_n.elements[qe],Pt,...Vt)):Zn.add(Ul(Pt,...Vt))}function Ui(Oe,qe,Pt,Vt,..._n){let qn=Jg();(!qn||!Zy(qn,Oe,qe,Pt,Vt,..._n))&&("messageText"in Vt?Zn.add(A6(Vt)):Zn.add(Ul(Vt,..._n)))}function Jg(){return Wt===void 0&&(Wt=Zx(TN(z.configFile),"compilerOptions",Oe=>Ma(Oe.initializer)?Oe.initializer:void 0)||!1),Wt||void 0}function Zy(Oe,qe,Pt,Vt,_n,...qn){let fn=!1;return Zx(Oe,Pt,Xn=>{"messageText"in _n?Zn.add(Mg(z.configFile,qe?Xn.name:Xn.initializer,_n)):Zn.add(Jf(z.configFile,qe?Xn.name:Xn.initializer,_n,...qn)),fn=!0},Vt),fn}function Mm(Oe,qe){let Pt=Jg();Pt?Zy(Pt,!0,Oe,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Oe,qe):cs(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Oe,qe)}function _S(Oe,qe){$e.set(nr(Oe),!0),Zn.add(qe)}function hS(Oe){if(z.noEmit)return!1;let qe=nr(Oe);if(fl(qe))return!1;let Pt=Cs(z);if(Pt)return df(qe,Pt)||df(qe,Tu(Pt)+".d.ts");if(z.declarationDir&&hm(z.declarationDir,qe,jr,!qt.useCaseSensitiveFileNames()))return!0;if(z.outDir)return hm(z.outDir,qe,jr,!qt.useCaseSensitiveFileNames());if(Ec(qe,DR)||Sd(qe)){let Vt=Tu(qe);return!!fl(Vt+".ts")||!!fl(Vt+".tsx")}return!1}function df(Oe,qe){return Rg(Oe,qe,jr,!qt.useCaseSensitiveFileNames())===0}function V_(){return qt.getSymlinkCache?qt.getSymlinkCache():(fe||(fe=cU(jr,Z)),xe&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(k,ie,ze),fe)}function uf(Oe,qe){var Pt;let Vt=((Pt=wn(Oe))==null?void 0:Pt.commandLine.options)||z;return fJ(Oe,qe,Vt)}function qg(Oe,qe){return uf(Oe,Bw(Oe,qe))}}function JVe(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}${il}`;return ph(t,D=>A===D||ao(D,N)||ao(A,`${D}/`))}function y(S){var A;if(!e.getResolvedProjectReferences()||nP(S)||!s||!S.includes(Th))return;let N=e.getSymlinkCache(),D=Bc(e.toPath(S));if((A=N.getSymlinkedDirectories())!=null&&A.has(D))return;let w=fa(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(Th)?A&&((N=j.getSymlinkedFiles())!=null&&N.has(Y))?!0:IL(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 bJ(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&&If(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||Xb,trace:e.trace?r=>e.trace(r):void 0}}function EJ(e,t,r,i){if(!e)return Ye;let o;for(let s=0;si);for(let i of t)i.kind===11&&r.push(i);return r}function Bw({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))(TJ||{}),AJ="\x1B[7m",IJ=" ",$le="\x1B[0m",Qle="...",p1e=" ",Zle=" ",ece={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},cz={getName:Yle,getMode:(e,t,r)=>pJ(t,e,r)},f1e={getName:_J,getMode:(e,t)=>Ww(e,t?.impliedNodeFormat)},oD="__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:Ye,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),XVe=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 Dm,YVe=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=Vn(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 rl(q.getProjectReferenceRedirect(J)||J,re,pe)}function d(q,J,re){let pe;if(J.imports&&J.imports.length>0){let he=q.getTypeChecker();for(let Ce of J.imports){let Ge=s(he,Ce);Ge?.forEach(ne)}}let xe=oi(J.resolvedPath);if(J.referencedFiles&&J.referencedFiles.length>0)for(let he of J.referencedFiles){let Ce=l(q,he.fileName,xe,re);ne(Ce)}if(q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:he})=>{if(!he)return;let Ce=he.resolvedFileName,Ge=l(q,Ce,xe,re);ne(Ge)},J),J.moduleAugmentations.length){let he=q.getTypeChecker();for(let Ce of J.moduleAugmentations){if(!Da(Ce))continue;let Ge=he.getSymbolAtLocation(Ce);Ge&&fe(Ge)}}for(let he of q.getTypeChecker().getAmbientModules())he.declarations&&he.declarations.length>1&&fe(he);return pe;function fe(he){if(he.declarations)for(let Ce of he.declarations){let Ge=Vn(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 ke=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 nt=(fe=J.oldExportedModulesMap)==null?void 0:fe.get(De.resolvedPath),Ft=nt===void 0?J.exportedModulesMap.getValues(De.resolvedPath):nt||void 0;Ft&&ve.set(De.resolvedPath,Ft)}}ne.set(De.resolvedPath,{version:ke,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]:Ye}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(RJ(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(HC(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===Ye?Ye: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=>T_(J.parent))}function z(q){return ce(q)||!Op(q)&&!qf(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||Ye,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&&(tm(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(HC(ne.values(),Ce=>Ce))}})(Dm||(Dm={}))}});function eb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),If(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function aD(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 $Ve(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!ph(e,r=>!t.has(r))}function QVe(e,t){var r,i;let o=Dm.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&&_1e(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let d=Dm.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||!$Ve(K=y&&y.getValues(D),E&&E.getValues(D))||K&&ph(K,Y=>!o.fileInfos.has(Y)&&t.fileInfos.has(Y)))m1e(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?y1e(B,e):h1e(B,e)),h){if(Y.isDeclarationFile&&!S||Y.hasNoDefaultLib&&!A)return;let ce=t.semanticDiagnosticsPerFile.get(D);ce&&(o.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?y1e(ce,e):h1e(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,_1e(s,t.compilerOptions,Y))}}),d&&Gc(t.fileInfos,(N,D)=>o.fileInfos.has(D)?!1:l||N.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Dm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(N=>m1e(o,N.resolvedPath));else if(p){let N=yoe(s,p)?eb(s):aD(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 m1e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function _1e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Co(r)?[r]:r[0]}function h1e(e,t){return e.length?Pc(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{...SF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:g1e(e.next,t,r,i)};let s=g1e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function g1e(e,t,r,i){return Pc(e,o=>nce(o,t,r,i))}function y1e(e,t){if(!e.length)return Ye;let r;return e.map(o=>{let s=v1e(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=>v1e(d,t,i)):[]:void 0,s});function i(o){return r??(r=oi(_o(Uy(t.getCompilerOptions()),t.getCurrentDirectory()))),rl(o,r,t.getCanonicalFileName)}}function v1e(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 ZVe(e){Dm.releaseCache(e),e.program=void 0}function eje(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 tje(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 b1e(e,t){R.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function E1e(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 rje(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=aD(i,d);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function ije(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 S1e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=R.checkDefined(e.program),r=t.getCompilerOptions();gn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!QN(i,r,t)&&rce(e,i.resolvedPath))}}function oje(e,t,r,i){if(rce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){S1e(e),Dm.updateShapeSignature(e,R.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||aje(e,t,r,i)}function xJ(e,t,r,i){if(rce(e,t),!e.changedFilesSet.has(t)){let o=R.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Dm.updateShapeSignature(e,o,s,r,i,!0),If(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 T1e(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?(Dm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>xJ(e,s.resolvedPath,r,i)),S1e(e),!0):!1}function aje(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!T1e(e,t.resolvedPath))return;if(tm(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let d=Dm.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(xJ(e,p,r,i),T1e(e,p)){let h=R.checkDefined(e.program).getSourceFileByPath(p);d.push(...Dm.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&&ph(d,p=>A1e(e,p,s,r,i))})}function A1e(e,t,r,i,o){var s,l;if(qb(r,t)){if(ice(e,t,i,o))return!0;xJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>A1e(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&xJ(e,d,i,o))}}function oce(e,t,r){return bo(sje(e,t,r),R.checkDefined(e.program).getProgramDiagnostics(t))}function sje(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 ace(e){return!!Cs(e.options||{})}function lje(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(),([ke,Et])=>{let be=ee(ke);return ge(ke,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||(If(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Pw(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),ke=De!==void 0?De||void 0:Ce.signature;if(e.compilerOptions.composite){let Et=e.program.getSourceFileByPath(he);if(!qf(Et)&&TT(Et,e.program)){let be=(ve=e.emitSignatures)==null?void 0:ve.get(he);be!==ke&&(S||(S=[])).push(be===void 0?Ie:[Ie,!Co(be)&&be[0]===ke?Ye:be])}}return Ce.version===ke?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:ke!==void 0?De===void 0?Ce:{version:Ce.version,signature:ke,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=eb(e.compilerOptions),Ce=new Set;for(let Ge of Oo(e.affectedFilesPendingEmit.keys()).sort(jd))if(qb(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 Pw(B,t);function ce(he){return z(_o(he,s))}function z(he){return v0(gm(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(tl),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(ke=>ke.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}=KR();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)}${OL[h.category]}${h.code}: ${d(h.messageText)}`).join(` `)),(i.createHash??eN)(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)),`${v0(gm(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function XT(e,t,r){return(t.createHash??eN)(I1e(e,r))}function DJ(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=QVe(t,s);t.getBuildInfo=N=>lje(l,N),t=void 0,i=void 0,s=void 0;let d=()=>l,p=NJ(d,o);return p.getState=d,p.saveEmitState=()=>eje(l),p.restoreEmitState=N=>tje(l,N),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=N=>Dm.getAllDependencies(l,R.checkDefined(l.program),N),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>ZVe(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=E1e(l,D,r),z=eb(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=rje(l,w);if(!q){let J=ije(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?aD(z,ee):l.programEmitPending?aD(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=aD(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 If(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=RJ(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&&Dm.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&&b1e(l,N);let Y=bJ(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||Ye,emittedFiles:ee,sourceMaps:B}}else nje(l,j);return R.checkDefined(l.program).emit(N,y(D,K),w,j,K)}function S(N,D){for(;;){let w=E1e(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){b1e(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 oce(l,N,D);for(;S(D););let j;for(let K of R.checkDefined(l.program).getSourceFiles())j=Ur(j,oce(l,K,D));return j||Ye}}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=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(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?HH(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&&!Cs(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?HH(d.options,N):{},referencedMap:j(d.referencedMap),exportedModulesMap:j(d.exportedModulesMap),semanticDiagnosticsPerFile:K(d.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(d.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:d.affectedFilesPendingEmit&&y0(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:qa,restoreEmitState:qa,getProgram:Uo,getProgramOrUndefined:Xb,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:Hm};function A(Y){return rl(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=Dm.createManyToManyPathMap();return Y.forEach(([ce,z])=>B.set(D(ce),w(z))),B}function K(Y){return Y&&y0(Y,B=>D(Ty(B)?B:B[0]),B=>Ty(B)?Ye:B[1])}}function CJ(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=rl(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 PJ,MJ,cje=bt({"src/compiler/builder.ts"(){"use strict";Zo(),PJ=(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))(PJ||{}),MJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(MJ||{})}});function x1e(e,t,r,i,o,s){return DJ(0,pz(e,t,r,i,o,s))}function LJ(e,t,r,i,o,s){return DJ(1,pz(e,t,r,i,o,s))}function R1e(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:d}=pz(e,t,r,i,o,s);return NJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),d)}var dje=bt({"src/compiler/builderPublic.ts"(){"use strict";Zo()}});function fz(e){return Sl(e,"/node_modules/.staging")?xx(e,"/.staging"):gt(BL,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]!==il&&!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=pce(e,t);return t>r+1}function fce(e){return C1e(oi(e))}function D1e(e,t){if(t.lengtho.length+1?_ce(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:N1e(d,l,l.length-1,p,h,o)}function N1e(e,t,r,i,o,s){if(o!==-1)return _ce(e,t,o+1);let l=!0,d=r;for(let p=0;puje(i,o,s,e,r,t,l)}}function uje(e,t,r,i,o,s,l){let d=_z(e),p=YR(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}=Lse(R.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,d,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=qR(p.failedLookupLocations,y),p.affectingLocations=qR(p.affectingLocations,E),p.resolutionDiagnostics=qR(p.resolutionDiagnostics,S),p}return p}function wJ(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=XR(j(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,z=S3(j(),e.getCanonicalFileName,e.getCompilationSettings(),B.getPackageJsonInfoCache(),B.optionsToRedirectsKey),ee=new Map,me=XR(j(),e.getCanonicalFileName,sK(e.getCompilationSettings()),B.getPackageJsonInfoCache()),ge=new Map,q=new Map,J=gce(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:ke,finishCachingPerDirectoryResolution:be,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:_t,resolveLibrary:ft,resolveSingleModuleNameWithoutWatching:Zt,removeResolutionsFromProjectReferenceRedirects:$e,removeResolutionsOfFile:Wt,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:si,invalidateResolutionsOfFailedLookupLocations:da,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:De,isFileWithInvalidatedNonRelativeUnresolvedImports:Ie,updateTypeRootsWatch:ct,closeTypeRootsWatch:Be,clear:he,onChangesAffectModuleResolution:Ce};function fe(se){return se.resolvedModule}function ne(se){return se.resolvedTypeReferenceDirective}function he(){Qu(ge,Df),Qu(q,Df),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 we=s.get(se);return!!we&&!!we.length}function De(se,we){da();let lt=o;return o=void 0,{hasInvalidatedResolutions:G=>se(G)||w||!!lt?.has(G)||Ie(G),hasInvalidatedLibResolutions:G=>{var tt;return we(G)||!!((tt=ee?.get(G))!=null&&tt.isInvalidated)}}}function ke(){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((we,lt)=>{var G;(G=se?.resolvedLibReferences)!=null&&G.has(lt)||(Zn(we,e.toPath(oz(e.getCompilationSettings(),j(),lt)),fe),ee.delete(lt))})}function be(se,we){s=void 0,w=!1,l.forEach(uo),l.clear(),se!==we&&(Et(se),se?.getSourceFiles().forEach(lt=>{var G;let tt=Op(lt)?((G=lt.packageJsonLocations)==null?void 0:G.length)??0:0,Tt=m.get(lt.path)??Ye;for(let He=Tt.length;Hett)for(let He=tt;He{se?.getSourceFileByPath(G)||(lt.forEach(tt=>q.get(tt).files--),m.delete(G))})),ge.forEach(ze),q.forEach(nt),y=!1,B.isReadonly=!0,z.isReadonly=!0,me.isReadonly=!0,B.getPackageJsonInfoCache().isReadonly=!0}function ze(se,we){se.refCount===0&&(ge.delete(we),se.watcher.close())}function nt(se,we){var lt;se.files===0&&se.resolutions===0&&!((lt=se.symlinks)!=null&<.size)&&(q.delete(we),se.watcher.close())}function Ft({entries:se,containingFile:we,containingSourceFile:lt,redirectedReference:G,options:tt,perFileCache:Tt,reusedNames:He,loader:pt,getResolutionWithResolvedFileName:Bt,deferWatchingNonRelativeResolution:hn,shouldRetryResolution:dn,logChanges:un}){let U=e.toPath(we),Le=Tt.get(U)||Tt.set(U,_1()).get(U),Nt=[],k=un&&Ie(U),ie=e.getCurrentProgram(),H=ie&&ie.getResolvedProjectReferenceToRedirect(we),ue=H?!G||G.sourceFile.path!==H.sourceFile.path:!!G,We=_1();for(let It of se){let Dt=pt.nameAndMode.getName(It),Kt=pt.nameAndMode.getMode(It,lt,G?.commandLine.options||tt),En=Le.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&&pje(En)&&e.onDiscoveredSymlink(),Le.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(tt,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,we,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,lt,G?.commandLine.options||tt),!0)),Le.size()!==We.size()&&Le.forEach((It,Dt,Kt)=>{We.has(Dt,Kt)||(Zn(It,U,Bt),Le.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,we,lt,G,tt,Tt){return Ft({entries:se,containingFile:we,containingSourceFile:tt,redirectedReference:lt,options:G,reusedNames:Tt,perFileCache:ce,loader:rz(we,lt,G,_z(e),z),getResolutionWithResolvedFileName:ne,shouldRetryResolution:He=>He.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(se,we,lt,G,tt,Tt){return Ft({entries:se,containingFile:we,containingSourceFile:tt,redirectedReference:lt,options:G,reusedNames:Tt,perFileCache:Y,loader:yce(we,lt,G,e,B),getResolutionWithResolvedFileName:fe,shouldRetryResolution:He=>!He.resolvedModule||!YN(He.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function ft(se,we,lt,G){let tt=_z(e),Tt=ee?.get(G);if(!Tt||Tt.isInvalidated){let He=Tt;Tt=T3(se,we,lt,tt,me);let pt=e.toPath(we);Dn(se,Tt,pt,fe,!1),ee.set(G,Tt),He&&Zn(He,pt,fe)}else if(Gg(lt,tt)){let He=fe(Tt);yo(tt,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,we,He?.resolvedFileName,He?.packageId&&kv(He.packageId))}return Tt}function Zt(se,we){var lt,G;let tt=e.toPath(we),Tt=Y.get(tt),He=Tt?.get(se,void 0);if(He&&!He.isInvalidated)return He;let pt=(lt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:lt.call(e,B),Bt=_z(e),hn=YR(se,we,e.getCompilationSettings(),Bt,B);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,B,se,we,hn,pt),hn}function en(se){return Sl(se,"/node_modules/@types")}function Dn(se,we,lt,G,tt){var Tt;if(we.refCount)we.refCount++,R.assertIsDefined(we.files);else{we.refCount=1,R.assert(!((Tt=we.files)!=null&&Tt.size)),!tt||$c(se)?pn(we):l.add(se,we);let He=G(we);if(He&&He.resolvedFileName){let pt=e.toPath(He.resolvedFileName),Bt=h.get(pt);Bt||h.set(pt,Bt=new Set),Bt.add(we)}}(we.files??(we.files=new Set)).add(lt)}function Jn(se,we){let lt=e.toPath(se),G=kJ(se,lt,J,re,pe,j);if(G){let{dir:tt,dirPath:Tt,nonRecursive:He}=G;Tt===re?(R.assert(He),we=!0):Li(tt,Tt,He)}return we}function pn(se){R.assert(!!se.refCount);let{failedLookupLocations:we,affectingLocations:lt,alternateResult:G}=se;if(!we?.length&&!lt?.length&&!G)return;(we?.length||G)&&d.add(se);let tt=!1;if(we)for(let Tt of we)tt=Jn(Tt,tt);G&&(tt=Jn(G,tt)),tt&&Li(J,re,!0),Yt(se,!we?.length&&!G)}function Yt(se,we){R.assert(!!se.refCount);let{affectingLocations:lt}=se;if(lt?.length){we&&p.add(se);for(let G of lt)qt(G,!0)}}function qt(se,we){let lt=q.get(se);if(lt){we?lt.resolutions++:lt.files++;return}let G=se,tt=!1,Tt;e.realpath&&(G=e.realpath(se),se!==G&&(tt=!0,Tt=q.get(G)));let He=we?1:0,pt=we?0:1;if(!tt||!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()}):lD,resolutions:tt?0:He,files:tt?0:pt,symlinks:void 0};q.set(G,Bt),tt&&(Tt=Bt)}if(tt){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,we){var lt;let G=q.get(se);G?.resolutions&&(S??(S=new Set)).add(se),G?.files&&(E??(E=new Set)).add(se),(lt=G?.symlinks)==null||lt.forEach(tt=>hi(tt,we)),we?.delete(e.toPath(se))}function uo(se,we){let lt=e.getCurrentProgram();!lt||!lt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(we)?se.forEach(pn):se.forEach(G=>Yt(G,!0))}function Li(se,we,lt){let G=ge.get(we);G?(R.assert(!!lt==!!G.nonRecursive),G.refCount++):ge.set(we,{watcher:Sr(se,we,lt),refCount:1,nonRecursive:lt})}function Eo(se,we,lt){let G=e.toPath(se),tt=kJ(se,G,J,re,pe,j);if(tt){let{dirPath:Tt}=tt;Tt===re?we=!0:jr(Tt,lt)}return we}function Zn(se,we,lt,G){if(R.checkDefined(se.files).delete(we),se.refCount--,se.refCount)return;let tt=lt(se);if(tt&&tt.resolvedFileName){let Bt=e.toPath(tt.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&&nt(hn,Bt)}}function jr(se,we){let lt=ge.get(se);lt.refCount--,we&&ze(lt,se)}function Sr(se,we,lt){return e.watchDirectoryOfFailedLookupLocation(se,G=>{let tt=e.toPath(G);K&&K.addOrDeleteFileOrDirectory(G,tt),$i(tt,we===tt)},lt?0:1)}function on(se,we,lt,G){let tt=se.get(we);tt&&(tt.forEach(Tt=>Zn(Tt,we,lt,G)),se.delete(we))}function $e(se){if(!Tl(se,".json"))return;let we=e.getCurrentProgram();if(!we)return;let lt=we.getResolvedProjectReferenceByPath(se);lt&<.commandLine.fileNames.forEach(G=>Wt(e.toPath(G)))}function Wt(se,we){on(Y,se,fe,we),on(ce,se,ne,we)}function In(se,we){if(!se)return!1;let lt=!1;return se.forEach(G=>{if(!(G.isInvalidated||!we(G))){G.isInvalidated=lt=!0;for(let tt of R.checkDefined(G.files))(o??(o=new Set)).add(tt),y=y||Sl(tt,oD)}}),lt}function si(se){Wt(se);let we=y;In(h.get(se),Ay)&&y&&!we&&e.onChangedAutomaticTypeDirectiveNames()}function yi(se){R.assert(s===se||s===void 0),s=se}function $i(se,we){if(we)(D||(D=new Set)).add(se);else{let lt=fz(se);if(!lt||(se=lt,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(Ule(e.getCurrentProgram(),se)||Tl(se,".map"))return!1;(A||(A=new Set)).add(se);let tt=gw(se,!0);tt&&(N||(N=new Set)).add(tt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ao(){let se=B.getPackageJsonInfoCache().getInternalMap();se&&(A||N||D)&&se.forEach((we,lt)=>vn(lt)?se.delete(lt):void 0)}function da(){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 we=!1;return E&&((se=e.getCurrentProgram())==null||se.getSourceFiles().forEach(lt=>{gt(lt.packageJsonLocations,G=>E.has(G))&&((o??(o=new Set)).add(lt.path),we=!0)}),E=void 0),!A&&!N&&!D&&!S||(we=In(d,Ba)||we,Ao(),A=void 0,N=void 0,D=void 0,we=In(p,kn)||we,S=void 0),we}function Ba(se){var we;return kn(se)?!0:!A&&!N&&!D?!1:((we=se.failedLookupLocations)==null?void 0:we.some(lt=>vn(e.toPath(lt))))||!!se.alternateResult&&vn(e.toPath(se.alternateResult))}function vn(se){return A?.has(se)||IL(N?.keys()||[],we=>ao(se,we)?!0:void 0)||IL(D?.keys()||[],we=>se.length>we.length&&ao(se,we)&&(dV(we)||se[we.length]===il)?!0:void 0)}function kn(se){var we;return!!S&&((we=se.affectingLocations)==null?void 0:we.some(lt=>S.has(lt)))}function Be(){Qu(xe,qm)}function dt(se){return Rt(se)?e.watchTypeRootsDirectory(se,we=>{let lt=e.toPath(we);K&&K.addOrDeleteFileOrDirectory(we,lt),y=!0,e.onChangedAutomaticTypeDirectiveNames();let G=hce(se,e.toPath(se),re,pe,j,tt=>ge.has(tt));G&&$i(lt,G===lt)},1):lD}function ct(){let se=e.getCompilationSettings();if(se.types){Be();return}let we=wP(se,{getCurrentDirectory:j});we?KN(xe,new Set(we),{createNewValue:dt,onDeleteValue:qm}):Be()}function Rt(se){return e.getCompilationSettings().typeRoots?!0:fce(e.toPath(se))}}function pje(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var fje=bt({"src/compiler/resolutionCache.ts"(){"use strict";Zo()}});function Gw(e,t){let r=e===gd&&Ice?Ice:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Pd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(cJ(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(qle(i,r)+r.getNewLine()),i[0]=void 0}}function M1e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&zo(Ez,t.code)?(e.clearScreen(),!0):!1}function mje(e,t){return zo(Ez,e.code)?t+t:t}function Vw(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)=>{M1e(e,r,o);let s=`[${sS(Vw(e),"\x1B[90m")}] `;s+=`${O_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";M1e(e,r,o)||(s+=i),s+=`${Vw(e)} - `,s+=`${O_(r.messageText,e.newLine)}${mje(r,i)}`,e.write(s)}}function L1e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>O1e(o,s,p);let d=iw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function hz(e){return vv(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 OJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function k1e(e,t){let r=sS(":"+e.line,"\x1B[90m");return tN(e.fileName)&&tN(t)?gm(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]&&k1e(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=Ul(...d),h=s.length>1?_je(o,i):"";return`${r}${O_(p.messageText,r)}${r}${r}${h}`}function _je(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 FJ(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>nN(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${sD(l,s)}`),(r=o.get(l.path))==null||r.forEach(d=>t(` ${VJ(e,d,s).messageText}`)),(i=zJ(l,s))==null||i.forEach(d=>t(` ${d.messageText}`))}function zJ(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,sD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Fo(void 0,f.File_redirects_to_file_0,sD(e.redirectInfo.redirectTarget,t))),Op(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,sD(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,sD(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 BJ(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 GJ(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=boe(p,l,"files");return!!h&&Bv(`(${h})$`,d).test(t)})}function VJ(e,t,r){var i,o;let s=e.getCompilerOptions();if(RE(t)){let l=$P(e,t),d=rD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(R.assert(rD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:rD(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,sD(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(BJ(e,l))return Fo(void 0,f.Part_of_files_list_in_tsconfig_json);let p=GJ(e,l);return Co(p)?Fo(void 0,f.Matched_by_include_pattern_0_in_1,p,sD(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,sD(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=Gc(pw.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 sD(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:Ye}:e.emit(void 0,o,s,l,d),{emittedFiles:E,diagnostics:S}=y;Ur(h,S);let A=Ox(h);if(A.forEach(t),r){let N=e.getCurrentDirectory();gn(E,D=>{let w=_o(D,N);r(`TSFILE: ${w}`)}),WJ(e,r)}return i&&i(hz(A),gz(A)),{emitResult:y,diagnostics:A}}function Sce(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 jJ(e=gd,t){return{onWatchStatusChange:t||vce(e),watchFile:ea(e,e.watchFile)||cD,watchDirectory:ea(e,e.watchDirectory)||cD,setTimeout:ea(e,e.setTimeout)||qa,clearTimeout:ea(e,e.clearTimeout)||qa}}function UJ(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):qa,o=rJ(e,r,i);return o.writeLog=i,o}function HJ(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:aJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ea(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:sJ((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(PK)){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||eN)(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 KJ(e,t){let r=Eu(()=>oi(fa(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Eu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Yr(r(),$L(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||LJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ea(e,e.now)}}function w1e(e=gd,t,r,i){let o=l=>e.write(l+e.newLine),s=KJ(e,t);return HG(s,jJ(e,i)),s.afterProgramCreate=l=>{let d=l.getCompilerOptions(),p=Wy(d);yz(l,r,o,h=>s.onWatchStatusChange(Ul(OJ(h),h),p,d,h))},s}function O1e(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||Gw(o),h=w1e(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>O1e(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=w1e(o,s,l||Gw(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function W1e(e){let t=e.system||gd,r=e.host||(e.host=JJ(e.options,t)),i=xce(e),o=Sce(i,e.reportDiagnostic||Gw(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,Ez,lD,cD,kc,hje=bt({"src/compiler/watch.ts"(){"use strict";Zo(),Ice=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],lD={close:qa},cD=()=>lD,kc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function 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!==qp||!i.program))return uce(i,r,t)}function JJ(e,t=gd){let r=lJ(e,void 0,t);return r.createHash=ea(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,bz(r),Ow(r,i=>rl(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||LJ;let l=Sz(t,o);return s(e,t,o,l,r,i)}function F1e(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 z1e(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),da(),fe=Dn()),R.assert(ce),R.assert(B);let{watchFile:ne,watchDirectory:he,writeLog:Ce}=UJ(e,ce),Ge=Pd(A);Ce(`Current directory: ${N} CaseSensitiveFileNames: ${A}`);let ve;D&&(ve=ne(D,In,2e3,z,kc.ConfigFile));let Ie=HJ(e,()=>ce,pe);bz(Ie);let De=Ie.getSourceFile;Ie.getSourceFile=(He,...pt)=>hi(He,Jn(He),...pt),Ie.getSourceFileByPath=hi,Ie.getNewLine=()=>fe,Ie.fileExists=qt,Ie.onReleaseOldSourceFile=Eo,Ie.onReleaseParsedCommandLine=Be,Ie.toPath=Jn,Ie.getCompilationSettings=()=>ce,Ie.useSourceOfProjectReferenceRedirect=ea(e,e.useSourceOfProjectReferenceRedirect),Ie.watchDirectoryOfFailedLookupLocation=(He,pt,Bt)=>he(He,pt,Bt,z,kc.FailedLookupLocations),Ie.watchAffectingFileLocation=(He,pt)=>ne(He,pt,2e3,z,kc.AffectingFileLocation),Ie.watchTypeRootsDirectory=(He,pt,Bt)=>he(He,pt,Bt,z,kc.TypeRoots),Ie.getCachedDirectoryStructureHost=()=>re,Ie.scheduleInvalidateResolutionsOfFailedLookupLocations=on,Ie.onInvalidatedResolution=Wt,Ie.onChangedAutomaticTypeDirectiveNames=Wt,Ie.fileIsOpen=Hm,Ie.getCurrentProgram=Je,Ie.writeLog=Ce,Ie.getParsedCommandLine=vn;let ke=wJ(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=ke.resolveModuleNameLiterals.bind(ke)),Ie.resolveTypeReferenceDirectiveReferences=ea(e,e.resolveTypeReferenceDirectiveReferences),Ie.resolveTypeReferenceDirectives=ea(e,e.resolveTypeReferenceDirectives),!Ie.resolveTypeReferenceDirectiveReferences&&!Ie.resolveTypeReferenceDirectives&&(Ie.resolveTypeReferenceDirectiveReferences=ke.resolveTypeReferenceDirectiveReferences.bind(ke)),Ie.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):ke.resolveLibrary.bind(ke),Ie.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ea(e,e.getModuleResolutionCache):()=>ke.getModuleResolutionCache();let be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ea(e,e.hasInvalidatedResolutions)||Ay:Hm,ze=e.resolveLibrary?ea(e,e.hasInvalidatedLibResolutions)||Ay:Hm;return t=Sz(ce,Ie),ft(),lt(),D&&tt(Jn(D),ce,z,kc.ExtendedConfigFile),D?{getCurrentProgram:_t,getProgram:yi,close:nt,getResolutionCache:Ft}:{getCurrentProgram:_t,getProgram:yi,updateRootFileNames:en,close:nt,getResolutionCache:Ft};function nt(){Sr(),ke.clear(),Qu(y,He=>{He&&He.fileWatcher&&(He.fileWatcher.close(),He.fileWatcher=void 0)}),ve&&(ve.close(),ve=void 0),h?.clear(),h=void 0,p&&(Qu(p,Df),p=void 0),o&&(Qu(o,Df),o=void 0),i&&(Qu(i,qm),i=void 0),d&&(Qu(d,He=>{var pt;(pt=He.watcher)==null||pt.close(),He.watcher=void 0,He.watchedDirectories&&Qu(He.watchedDirectories,Df),He.watchedDirectories=void 0}),d=void 0)}function Ft(){return ke}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)&&ke.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:pt,hasInvalidatedLibResolutions:Bt}=ke.createHasInvalidatedResolutions(be,ze),{originalReadFile:hn,originalFileExists:dn,originalDirectoryExists:un,originalCreateDirectory:U,originalWriteFile:Le,readFileWithCache:Nt}=Ow(Ie,Jn);return yJ(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=Le,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,ke.startCachingPerDirectoryResolution(),Ie.hasInvalidatedResolutions=He,Ie.hasInvalidatedLibResolutions=pt,Ie.hasChangedAutomaticTypeDirectiveNames=jr;let hn=Je();if(t=Y(B,ce,Ie,t,ge,ee),ke.finishCachingPerDirectoryResolution(t.getProgram(),hn),nJ(t.getProgram(),i||(i=new Map),se),Bt&&ke.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 Jn(He){return rl(He,N,Ge)}function pn(He){return typeof He=="boolean"}function Yt(He){return typeof He.version=="boolean"}function qt(He){let pt=Jn(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 Le=De(He,Bt,hn);if(un)Le?(un.sourceFile=Le,un.version=Le.version,un.fileWatcher||(un.fileWatcher=dt(pt,He,ct,250,z,kc.SourceFile))):(un.fileWatcher&&un.fileWatcher.close(),y.set(pt,!1));else if(Le){let Nt=dt(pt,He,ct,250,z,kc.SourceFile);y.set(pt,{sourceFile:Le,version:Le.version,fileWatcher:Nt})}else y.set(pt,!1);return Le}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||ke.removeResolutionsOfFile(He.path)))}function Zn(He){e.onWatchStatusChange&&e.onWatchStatusChange(Ul(He),fe,ce||w)}function jr(){return ke.hasChangedAutomaticTypeDirectiveNames()}function Sr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function on(){if(!e.setTimeout||!e.clearTimeout)return ke.invalidateResolutionsOfFailedLookupLocations();let He=Sr();Ce(`Scheduling invalidateFailedLookup${He?", Cancelled earlier one":""}`),l=e.setTimeout($e,250,"timerToInvalidateFailedLookupResolutions")}function $e(){l=void 0,ke.invalidateResolutionsOfFailedLookupLocations()&&Wt()}function Wt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ce("Scheduling update"),s=e.setTimeout(si,250,"timerToUpdateProgram"))}function In(){R.assert(!!D),r=2,Wt()}function si(){s=void 0,m=!0,yi()}function yi(){var He,pt,Bt,hn;switch(r){case 1:(He=ru)==null||He.logStartUpdateProgram("PartialConfigReload"),$i();break;case 2:(pt=ru)==null||pt.logStartUpdateProgram("FullConfigReload"),Ao();break;default:(Bt=ru)==null||Bt.logStartUpdateProgram("SynchronizeProgram"),ft();break}return(hn=ru)==null||hn.logStopUpdateProgram("Done"),_t()}function $i(){Ce("Reloading new file names and options"),R.assert(ce),R.assert(D),r=0,B=MP(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(),da(),S=!0,ft(),lt(),tt(Jn(D),ce,z,kc.ExtendedConfigFile)}function da(){R.assert(D),Ba(iw(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=PP(He.raw),J=!0}function vn(He){let pt=Jn(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=MP(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=iw(He,void 0,xe,h||(h=new Map),j);return xe.onUnRecoverableConfigFileDiagnostic=pt,Bt}function Be(He){var pt;let Bt=Jn(He),hn=d?.get(Bt);hn&&(d.delete(Bt),hn.watchedDirectories&&Qu(hn.watchedDirectories,Df),(pt=hn.watcher)==null||pt.close(),tJ(Bt,p))}function dt(He,pt,Bt,hn,dn,un){return ne(pt,(U,Le)=>Bt(U,Le,He),hn,dn,un)}function ct(He,pt,Bt){Rt(He,Bt,pt),pt===2&&y.has(Bt)&&ke.invalidateResolutionOfFile(Bt),uo(Bt),Wt()}function Rt(He,pt,Bt){re&&re.addOrDeleteFile(He,pt,Bt)}function se(He,pt){return d?.has(He)?lD:dt(He,pt,we,500,z,kc.MissingFile)}function we(He,pt,Bt){Rt(He,Bt,pt),pt===0&&i.has(Bt)&&(i.get(Bt).close(),i.delete(Bt),uo(Bt),Wt())}function lt(){Lw(o||(o=new Map),me,G)}function G(He,pt){return he(He,Bt=>{R.assert(D),R.assert(ce);let hn=Jn(Bt);re&&re.addOrDeleteFileOrDirectory(Bt,hn),uo(hn),!kw({watchedDirPath:Jn(He),fileOrDirectory:Bt,fileOrDirectoryPath:hn,configFileName:D,extraFileExtensions:K,options:ce,program:_t()||B,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Jn})&&r!==2&&(r=1,Wt())},pt,z,kc.WildcardDirectory)}function tt(He,pt,Bt,hn){ez(He,pt,p||(p=new Map),(dn,un)=>ne(dn,(U,Le)=>{var Nt;Rt(dn,un,Le),h&&tz(h,un,Jn);let k=(Nt=p.get(un))==null?void 0:Nt.projects;k?.size&&k.forEach(ie=>{if(D&&Jn(D)===ie)r=2;else{let H=d?.get(ie);H&&(H.updateLevel=2),ke.removeResolutionsFromProjectReferenceRedirects(ie)}Wt()})},2e3,Bt,hn),Jn)}function Tt(He,pt,Bt){var hn,dn,un,U;Bt.watcher||(Bt.watcher=ne(He,(Le,Nt)=>{Rt(He,pt,Nt);let k=d?.get(pt);k&&(k.updateLevel=2),ke.removeResolutionsFromProjectReferenceRedirects(pt),Wt()},2e3,((hn=Bt.parsedCommandLine)==null?void 0:hn.watchOptions)||z,kc.ConfigFileOfReferencedProject)),Lw(Bt.watchedDirectories||(Bt.watchedDirectories=new Map),(dn=Bt.parsedCommandLine)==null?void 0:dn.wildcardDirectories,(Le,Nt)=>{var k;return he(Le,ie=>{let H=Jn(ie);re&&re.addOrDeleteFileOrDirectory(ie,H),uo(H);let ue=d?.get(pt);ue?.parsedCommandLine&&(kw({watchedDirPath:Jn(Le),fileOrDirectory:ie,fileOrDirectoryPath:H,configFileName:He,options:ue.parsedCommandLine.options,program:ue.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:A,writeLog:Ce,toPath:Jn})||ue.updateLevel!==2&&(ue.updateLevel=1,Wt()))},Nt,((k=Bt.parsedCommandLine)==null?void 0:k.watchOptions)||z,kc.WildcardDirectoryOfReferencedProject)}),tt(pt,(un=Bt.parsedCommandLine)==null?void 0:un.options,((U=Bt.parsedCommandLine)==null?void 0:U.watchOptions)||z,kc.ExtendedConfigOfReferencedProject)}}var gje=bt({"src/compiler/watchPublic.ts"(){"use strict";Zo()}});function qJ(e){return Tl(e,".json")?e:Yr(e,"tsconfig.json")}var XJ,yje=bt({"src/compiler/tsbuild.ts"(){"use strict";Zo(),XJ=(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))(XJ||{})}});function vje(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function Rce(e,t){return vje(e,t,()=>new Map)}function jw(e){return e.now?e.now():new Date}function b1(e){return!!e&&!!e.buildOrder}function Tz(e){return b1(e)?e.buildOrder:e}function Dce(e,t){return r=>{let i=t?`[${sS(Vw(e),"\x1B[90m")}] `:`${Vw(e)} - `;i+=`${O_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function B1e(e,t,r,i){let o=KJ(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Xb,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):qa,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):qa,o.reportDiagnostic=r||Gw(e),o.reportSolutionBuilderStatus=i||Dce(e),o.now=ea(e,e.now),o}function G1e(e=gd,t,r,i,o){let s=B1e(e,t,r,i);return s.reportErrorSummary=o,s}function V1e(e=gd,t,r,i,o){let s=B1e(e,t,r,i),l=jJ(e,o);return HG(s,l),s}function bje(e){let t={};return uw.forEach(r=>{Is(e,r.name)&&(t[r.name]=e[r.name])}),t}function j1e(e,t,r){return fxe(!1,e,t,r)}function U1e(e,t,r,i){return fxe(!0,e,t,r,i)}function Eje(e,t,r,i,o){let s=t,l=t,d=bje(i),p=HJ(s,()=>N.projectCompilerOptions);bz(p),p.getParsedCommandLine=D=>E1(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=XR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(D,w,j,K,Y)=>Fw(D,w,j,K,Y,s,h,mJ),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)=>Fw(D,w,j,K,Y,s,m,rz));let y;p.resolveLibrary||(y=XR(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(D,w,j)=>T3(D,w,j,s,y)),p.getBuildInfo=(D,w)=>ixe(N,D,W_(N,w),void 0);let{watchFile:E,watchDirectory:S,writeLog:A}=UJ(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 Cf(e,t){return rl(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=Cf(e,t);return r.set(t,o),o}function H1e(e){return!!e.options}function Sje(e,t){let r=e.configFileCache.get(t);return r&&H1e(r)?r:void 0}function E1(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return H1e(o)?o:void 0;nl("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=Ul(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=iw(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=qa),i.set(r,y||s),nl("SolutionBuilder::afterConfigFileParsing"),Yp("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function QP(e,t){return qJ(Iv(e.compilerHost.getCurrentDirectory(),t))}function K1e(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)d(p);return l?{buildOrder:s||Ye,circularDiagnostics:l}:s||Ye;function d(p,h){let m=W_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(Ul(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=E1(e,p,m);if(y&&y.projectReferences)for(let E of y.projectReferences){let S=QP(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function Az(e){return e.buildOrder||Tje(e)}function Tje(e){let t=K1e(e,e.rootNames.map(o=>QP(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:qm}),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(Df)}),ng(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(qm)}),ng(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(qm)})),e.buildOrder=t}function J1e(e,t,r){let i=t&&QP(e,t),o=Az(e);if(b1(o))return o;if(i){let l=W_(e,i);if(Jl(o,p=>W_(e,p)===l)===-1)return}let s=i?K1e(e,[i]):o;return R.assert(!b1(s)),R.assert(!r||i!==void 0),R.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function q1e(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}=Ow(r,E=>Cf(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 X1e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Y1e({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(W_(e,i),0)),t&&t.throwIfCancellationRequested()}function Q1e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Aje(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:()=>{axe(e,i,r),s=!1},done:()=>(s&&axe(e,i,r),nl("SolutionBuilder::Timestamps only updates"),Q1e(e,r))}}function Z1e(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(el),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),nl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Q1e(t,i)}function E(z){return ce(0),p&&z(p)}function S(z){return E(z)||Ye}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){ZP(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,xje(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}=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}=yz(p,xe,void 0,void 0,(ze,nt,Ft,_t,Je,ft)=>fe.push({name:ze,text:nt,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=fR(),Ie=new Map,De=p.getCompilerOptions(),ke=cP(De),Et,be;return fe.forEach(({name:ze,text:nt,writeByteOrderMark:Ft,data:_t})=>{let Je=Cf(t,ze);Ie.set(Cf(t,ze),ze),_t?.buildInfo&&kce(t,_t.buildInfo,i,De,Ge);let ft=_t?.differsOnlyInMap?gI(t.host,ze):void 0;wN(z?{writeFile:z}:Ce,ve,ze,nt,Ft),_t?.differsOnlyInMap?t.host.setModifiedTime(ze,ft):!ke&&t.watch&&(Et||(Et=Lce(t,i))).set(Je,be||(be=jw(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&&(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=>nxe(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=>nxe(t,s,J)),oxe(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=QP(t,Ge.path);return E1(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=Z1e(0,t,r,i,o,s,l);R.assert(!!pe.length);let xe=fR(),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 ke,Et;fe.set(Cf(t,Ge),Ge),De?.buildInfo&&(((ke=De.buildInfo.program)==null?void 0:ke.outSignature)!==((Et=he?.program)==null?void 0:Et.outSignature)&&(ne&=-3),kce(t,De.buildInfo,i,s.options,ne)),wN(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:Nje(t,r,i,o,s,l,R.checkDefined(h)),d++;break;case 8:default:}R.assert(d>q)}}}function Ije({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!qT(r).length||!cP(r.options)}function exe(e,t,r){if(!e.projectPendingBuild.size||b1(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s{let S=R.checkDefined(e.filesWatched.get(d));R.assert(YJ(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(YJ(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Df(h)):_I(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=jw(e.host);l?(l.buildInfo=t,l.modifiedTime=d,o&2||(l.latestChangedDtsTime=d)):e.buildInfoCache.set(r,{path:Cf(e,s),buildInfo:t,modifiedTime:d,latestChangedDtsTime:o&2?void 0:d})}function wce(e,t,r){let i=Cf(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function ixe(e,t,r,i){let o=Cf(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||Lp}),d}function Oce(e,t,r,i){let o=rxe(e,t);if(rD&&(N=q,D=J),S&&j.add(Cf(e,q))}if(S){A||(A=CJ(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=Lce(e,r);for(let re of q){let pe=Cf(e,re),xe=J?.get(pe);if(xe||(xe=gI(e.host,re),J?.set(pe,xe)),xe===Lp)return{type:4,missingOutputFileName:re};if(xeOce(e,q,y,m));if(ee)return ee;let me=e.lastCachedPackageJsonLookups.get(r),ge=me&&ph(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 Dje(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;nl("SolutionBuilder::beforeUpToDateCheck");let o=Rje(e,t,r);return nl("SolutionBuilder::afterUpToDateCheck"),Yp("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function oxe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Uy(t.options);if(l){o?.has(Cf(e,l))||(e.options.verbose&&xu(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=jw(e.host)),wce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=X3(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=Cf(e,E);o?.has(S)||(y&&(y=!1,xu(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=jw(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((y,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function Cje(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 axe(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);oxe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:QK(t,!e.host.useCaseSensitiveFileNames())})}function Nje(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 lxe(e,t,r){nl("SolutionBuilder::beforeClean");let i=Mje(e,t,r);return nl("SolutionBuilder::afterClean"),Yp("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Mje(e,t,r){let i=J1e(e,t,r);if(!i)return 3;if(b1(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=E1(e,d,p);if(h===void 0){mxe(e,p);continue}let m=X3(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;let y=new Set(h.fileNames.map(E=>Cf(e,E)));for(let E of m)y.has(Cf(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,X1e(e,t),Y1e(e,t,r),q1e(e)}function Iz(e,t,r){e.reportFileChangeDetected=!0,Fce(e,t,r),cxe(e,250,!0)}function cxe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Lje,t,"timerToBuildInvalidatedProject",e,r))}function Lje(e,t,r){nl("SolutionBuilder::beforeBuild");let i=kje(t,r);nl("SolutionBuilder::afterBuild"),Yp("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&_xe(t,i)}function kje(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=Az(e),o=Nce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=exe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){cxe(e,100,!1);return}txe(e,s,i).done(),s.kind!==2&&r++}return Cce(e),i}function dxe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,$J(e,t,()=>Iz(e,r,2),2e3,i?.watchOptions,kc.ConfigFile,t))}function uxe(e,t,r){ez(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>$J(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>Iz(e,l,2))},2e3,r?.watchOptions,kc.ExtendedConfigFile),i=>Cf(e,i))}function pxe(e,t,r,i){e.watch&&Lw(Rce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;kw({watchedDirPath:Cf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Cf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((d=Sje(e,r))==null?void 0:d.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Cf(e,p)})||Iz(e,r,1)},s,i?.watchOptions,kc.WildcardDirectory,t))}function zce(e,t,r,i){e.watch&&KN(Rce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>$J(e,o,()=>Iz(e,r,0),250,i?.watchOptions,kc.SourceFile,t),onDeleteValue:qm})}function Bce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||KN(Rce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>$J(e,o,()=>Iz(e,r,0),2e3,i?.watchOptions,kc.PackageJson,t),onDeleteValue:qm})}function wje(e,t){if(e.watchAllProjectsPending){nl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Tz(t)){let i=W_(e,r),o=E1(e,r,i);dxe(e,r,i,o),uxe(e,i,o),o&&(pxe(e,r,i,o),zce(e,r,i,o),Bce(e,r,i,o))}nl("SolutionBuilder::afterWatcherCreation"),Yp("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Oje(e){Qu(e.allWatchedConfigFiles,qm),Qu(e.allWatchedExtendedConfigFiles,Df),Qu(e.allWatchedWildcardDirectories,t=>Qu(t,Df)),Qu(e.allWatchedInputFiles,t=>Qu(t,qm)),Qu(e.allWatchedPackageJsonFiles,t=>Qu(t,qm))}function fxe(e,t,r,i,o){let s=Eje(e,t,r,i,o);return{build:(l,d,p,h)=>sxe(s,l,d,p,h),clean:l=>lxe(s,l),buildReferences:(l,d,p,h)=>sxe(s,l,d,p,h,!0),cleanReferences:l=>lxe(s,l,!0),getNextInvalidatedProject:l=>($1e(s,l),Nce(s,Az(s),!1)),getBuildOrder:()=>Az(s),getUpToDateStatusOfProject:l=>{let d=QP(s,l),p=W_(s,d);return Wce(s,E1(s,d,p),p)},invalidateProject:(l,d)=>Fce(s,l,d||0),close:()=>Oje(s)}}function cd(e,t){return nN(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function xu(e,t,...r){e.host.reportSolutionBuilderStatus(Ul(t,...r))}function Gce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Ul(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function xz({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function ZP(e,t,r){xz(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function mxe(e,t){ZP(e,t,[e.configFileCache.get(t)])}function _xe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];b1(t)?(hxe(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)||Ye)}),r&&i.forEach(l=>o+=hz(l)),r&&i.forEach(l=>[...s,...gz(l)])),e.watch?Gce(e,OJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function hxe(e,t){e.options.verbose&&xu(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+cd(e,r)).join(""))}function Wje(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,qp);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&&Wje(e,t,r)}var gxe,yxe,ZJ,Fje=bt({"src/compiler/tsbuildPublic.ts"(){"use strict";Zo(),iT(),gxe=new Date(-864e13),yxe=new Date(864e13),ZJ=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(ZJ||{})}}),Zo=bt({"src/compiler/_namespaces/ts.ts"(){"use strict";Bze(),Xze(),Yze(),a7e(),c7e(),d7e(),E7e(),zEe(),N7e(),w7e(),O7e(),G7e(),J7e(),HBe(),KBe(),JBe(),qBe(),t5e(),n5e(),r5e(),i5e(),P5e(),M5e(),V5e(),aGe(),MGe(),FGe(),zGe(),ZGe(),o9e(),f9e(),b9e(),L9e(),k9e(),j9e(),U9e(),H9e(),Q9e(),Z9e(),eVe(),tVe(),nVe(),rVe(),iVe(),oVe(),aVe(),cVe(),dVe(),uVe(),pVe(),fVe(),_Ve(),hVe(),gVe(),yVe(),vVe(),bVe(),xVe(),MVe(),VVe(),UVe(),qVe(),XVe(),YVe(),cje(),dje(),fje(),hje(),gje(),yje(),Fje(),Use(),iT()}});function vxe(e){return gd.args.includes(e)}function bxe(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"})(tq||(tq={})),Vce=` `}}),Bje=bt({"src/jsTyping/types.ts"(){"use strict"}}),Nz=bt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";zje(),Bje()}});function Sxe(e,t){return new _m(gW(t,`ts${v_}`)||gW(t,"latest")).compareTo(e.version)<=0}function Txe(e){return Jce.has(e)?"node":e}function Gje(e,t){let r=ow(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function Vje(e,t){var r;let i=ow(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function jje(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=fa(Y);if(z0(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=g0(d.map(Txe),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&&Sxe(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:${DE(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=ow(ee,pe=>e.readFile(pe)).config,ge=ya([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(rc(pe)!==B)return!1;let xe=zc(fa(pe)),fe=xe[xe.length-3][0]==="@";return fe&&ah(xe[xe.length-4])===ce||!fe&&ah(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=fa(pe),ne=ow(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(!z0(z))return;let ee=Tu(ah(rc(z))),me=qG(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 Uje(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 Hje(e,t){return typeof e=="object"?Axe(t,e.result,e.name,e.isScopeName):Axe(t,e,t,!1)}function Axe(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,Kje=bt({"src/jsTyping/jsTyping.ts"(){"use strict";Jw(),Nz(),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}}),F_={};xa(F_,{NameValidationResult:()=>qce,discoverTypings:()=>jje,isTypingUpToDate:()=>Sxe,loadSafeList:()=>Gje,loadTypesMap:()=>Vje,nodeCoreModuleList:()=>Kce,nodeCoreModules:()=>Jce,nonRelativeModuleNameForTypingCache:()=>Txe,prefixedNodeCoreModuleList:()=>Hce,renderPackageNameValidationFailure:()=>Hje,validatePackageName:()=>Uje});var Jje=bt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";Kje()}}),Jw=bt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Zo(),Jje(),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,nq,rq,iq,Nf,oq,aq,sq,lq,cq,dq,uq,Yce,qw,pq,fq,mq,_q,hq,gq,yq,vq,bq,qje=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={})),nq=(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))(nq||{}),rq=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(rq||{}),iq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(iq||{}),Nf={},oq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(oq||{}),aq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(aq||{}),sq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(sq||{}),lq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(lq||{}),cq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(cq||{}),dq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(dq||{}),uq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(uq||{}),Yce=Pz(` `),qw=(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))(qw||{}),pq=(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))(pq||{}),fq=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(fq||{}),mq=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(mq||{}),_q=(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))(_q||{}),hq=(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))(hq||{}),gq=(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))(gq||{}),yq=(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))(yq||{}),vq=(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))(vq||{}),bq=(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))(bq||{})}});function Xw(e){switch(e.kind){case 260:return ar(e)&&AV(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=Lq(e);let t=e.parent;return e.kind===312?1:Ll(t)||Jd(t)||Eh(t)||Zu(t)||vh(t)||nd(t)&&e===t.name?7:Lz(e)?Xje(e):kg(e)?Xw(t):Yu(e)&&Fn(e,Km(AP,xI,vE))?7:Zje(e)?2:Yje(e)?4:_l(t)?(R.assert(rm(t.parent)),2):Jv(t)?3:1}function Xje(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 nR(e.parent)&&e.parent.moduleReference===e}function Yje(e){return $je(e)||Qje(e)}function $je(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 Qje(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 Zje(e){switch(GN(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 Eq(e,t=!1,r=!1){return Yw(e,ra,Tq,t,r)}function nM(e,t=!1,r=!1){return Yw(e,K0,Tq,t,r)}function Sq(e,t=!1,r=!1){return Yw(e,E_,Tq,t,r)}function $ce(e,t=!1,r=!1){return Yw(e,J0,eUe,t,r)}function Qce(e,t=!1,r=!1){return Yw(e,Ed,Tq,t,r)}function Zce(e,t=!1,r=!1){return Yw(e,su,tUe,t,r)}function Tq(e){return e.expression}function eUe(e){return e.tag}function tUe(e){return e.tagName}function Yw(e,t,r,i,o){let s=i?ede(e):kz(e);return o&&(s=$l(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function kz(e){return dD(e)?e.parent:e}function ede(e){return dD(e)||Rq(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 $w(e,t){return kr(e.expression)?e.expression.name.text===t:!1}function Qw(e){var t;return Fe(e)&&((t=ri(e.parent,uN))==null?void 0:t.label)===e}function Aq(e){var t;return Fe(e)&&((t=ri(e.parent,q0))==null?void 0:t.label)===e}function Iq(e){return Aq(e)||Qw(e)}function xq(e){var t;return((t=ri(e.parent,Ux))==null?void 0:t.tagName)===e}function tde(e){var t;return((t=ri(e.parent,Au))==null?void 0:t.right)===e}function dD(e){var t;return((t=ri(e.parent,kr))==null?void 0:t.name)===e}function Rq(e){var t;return((t=ri(e.parent,Ys))==null?void 0:t.argumentExpression)===e}function Dq(e){var t;return((t=ri(e.parent,Xl))==null?void 0:t.name)===e}function Cq(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 nde(e){return lE(e.parent.parent)&&IN(e.parent.parent)===e}function $T(e){for(Xf(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 lS(e){switch(e.kind){case 312:return ac(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(x_(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=Bl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=lS(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 vh(e.parent)?"alias":"";case 277:let s=lS(e.expression);return s===""?"const":s;default:return""}function t(r){return Yx(r)?"const":MF(r)?"let":"var"}}function uD(e){switch(e.kind){case 110:return!0;case 80:return Uj(e)&&e.parent.kind===169;default:return!1}}function im(e,t){let r=Dg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function of(e,t){return Nq(e.pos,e.end,t)}function rde(e,t){return eO(e,t.pos)&&eO(e,t.end)}function Zw(e,t){return e.pos<=t&&t<=e.end}function eO(e,t){return e.pos=r.end}function tO(e,t,r){return e.pos<=t&&e.end>=r}function rM(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=>BR(r)&&of(r,e));return R.assert(!t||zo(t.getChildren(),e)),t}function Ixe(e){return e.kind===90}function nUe(e){return e.kind===86}function rUe(e){return e.kind===100}function iUe(e){if(ou(e))return e.name;if(Tc(e)){let t=e.modifiers&&Gr(e.modifiers,Ixe);if(t)return t}if(ed(e)){let t=Gr(e.getChildren(),nUe);if(t)return t}}function oUe(e){if(ou(e))return e.name;if(Sc(e)){let t=Gr(e.modifiers,Ixe);if(t)return t}if(ks(e)){let t=Gr(e.getChildren(),rUe);if(t)return t}}function aUe(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=aUe(e);return i&&t.getTypeAtLocation(i)}function sUe(e,t){if(!t)switch(e.kind){case 263:case 231:return iUe(e);case 262:case 218:return oUe(e);case 176:return e}if(ou(e))return e.name}function xxe(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=ih(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 Rxe(e,t){if(e.exportClause){if(Rf(e.exportClause))return ih(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(bh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function lUe(e){if(e.types.length===1)return e.types[0].expression}function Dxe(e,t){let{parent:r}=e;if(Sa(e)&&(t||e.kind!==90)?xm(r)&&zo(r.modifiers,e):e.kind===86?Tc(r)||ed(e):e.kind===100?Sc(r)||ks(e):e.kind===120?fu(r):e.kind===94?yE(r):e.kind===156?Im(r):e.kind===145||e.kind===144?Xl(r):e.kind===102?nd(r):e.kind===139?Zp(r):e.kind===153&&gp(r)){let i=sUe(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(vh(r)&&r.isTypeOnly){let i=xxe(r.parent,t);if(i)return i}if(Yl(r)&&r.isTypeOnly){let i=Rxe(r,t);if(i)return i}}if(e.kind===130){if(Zu(r)&&r.propertyName||Jd(r)&&r.propertyName||Yv(r)||bh(r))return r.name;if(Yl(r)&&r.exportClause&&bh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Lc(r)){let i=xxe(r,t);if(i)return i}if(e.kind===95){if(Yl(r)){let i=Rxe(r,t);if(i)return i}if(Ll(r))return $l(r.expression)}if(e.kind===149&&Eh(r))return r.expression;if(e.kind===161&&(Lc(r)||Yl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&ef(r)&&r.token===e.kind){let i=lUe(r);if(i)return i}if(e.kind===96){if(_l(r)&&r.constraint&&xf(r.constraint))return r.constraint.typeName;if(r1(r)&&xf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&PT(r))return r.typeParameter.name;if(e.kind===103&&_l(r)&&LR(r.parent))return r.name;if(e.kind===143&<(r)&&r.operator===143&&xf(r.type))return r.type.typeName;if(e.kind===148&<(r)&&r.operator===148&&Bk(r.type)&&xf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&K0(r)||e.kind===116&&i1(r)||e.kind===114&&kR(r)||e.kind===135&&qv(r)||e.kind===127&&G4(r)||e.kind===91&&gae(r))&&r.expression)return $l(r.expression);if((e.kind===103||e.kind===104)&&pr(r)&&r.operatorToken===e)return $l(r.right);if(e.kind===130&&Vk(r)&&xf(r.type))return r.type.typeName;if(e.kind===103&&j4(r)||e.kind===165&&jk(r))return $l(r.expression)}return e}function Lq(e){return Dxe(e,!1)}function Gz(e){return Dxe(e,!0)}function zu(e,t){return pD(e,t,r=>I_(r)||Wu(r.kind)||Ki(r))}function pD(e,t,r){return Cxe(e,t,!1,r,!1)}function so(e,t){return Cxe(e,t,!0,void 0,!1)}function Cxe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),h=pI(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 Ac(e,t,r,i){let o=s(r||t);return R.assert(!(o&&jz(o))),o;function s(l){if(Nxe(l)&&l.kind!==1)return l;let d=l.getChildren(t),p=pI(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)||jz(m)){let S=sde(d,p,t,l.kind);return S?!i&&gF(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||gF(l));let h=sde(d,d.length,t,l.kind);return h&&ade(h,t)}}function Nxe(e){return EI(e)&&!jz(e)}function ade(e,t){if(Nxe(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(jz(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 S1(e,t,r=Ac(t,e)){if(r&&MV(r)){let i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function cde(e,t){let r=so(e,t);return!!(qI(r)||r.kind===19&&SP(r.parent)&&ag(r.parent.parent)||r.kind===30&&su(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=ca(e.kind),o=ca(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 Oq(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=Ac(r.getFullStart(),t),r&&r.kind===29&&(r=Ac(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=Ac(r.getFullStart(),t)}}function Hy(e,t,r){return wc.getRangeOfEnclosingComment(e,t,void 0,r)}function ude(e,t){let r=so(e,t);return!!Fn(r,Qm)}function pde(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function iM(e,t=0){let r=[],i=Kd(e)?bV(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 fde(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 Wq(e){return!!(e===11||e===14||Cv(e))}function Pxe(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&&(Pxe(r,t[0],t[1])||Pxe(r,t[1],t[0]))}function iO(e,t,r){return Cv(e.kind)&&e.getStart(r){let r=is(t);return!e[r]&&(e[r]=!0)}}function fD(e){return e.getText(0,e.getLength())}function sO(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 Hq(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 Kq(e,t){return{...QT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function Yz(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"?A1(r,i):r,void 0)}function A1(e,t){return L.createStringLiteral(e,t===0)}function Jq(e,t){return XF(e,t)?1:0}function af(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Gr(e.imports,i=>Da(i)&&!Xs(i.parent));return r?Jq(r,e):1}}function qq(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:Fl(e.declarations,t=>{let r=No(t);return r&&r.kind===80?r.escapedText:void 0})}function Zz(e){return ss(e)&&(Eh(e.parent)||Lc(e.parent)||Su(e.parent,!1)&&e.parent.arguments[0]===e||Wp(e.parent)&&e.parent.arguments[0]===e)}function cO(e){return Xa(e)&&nm(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 dO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!cUe(r,e.parent,t))return e;e=e.parent}}function cUe(e,t,r){return vV(e,t.getStart(r))&&t.getEnd()<=ql(e)}function mD(e,t){return xm(e)?Gr(e.modifiers,r=>r.kind===t):void 0}function aM(e,t,r,i,o){let l=(So(r)?r[0]:r).kind===243?hj:mT,d=Vr(t.statements,l),p=So(r)?Cm.detectImportDeclarationSorting(r,o):3,h=Cm.getOrganizeImportsComparer(o,p===2),m=So(r)?Ey(r,(y,E)=>Cm.compareImportsOrRequireStatements(y,E,h)):[r];if(!d.length)e.insertNodesAtTopOfFile(t,m,i);else if(d&&(p=Cm.detectImportDeclarationSorting(d,o))){let y=Cm.getOrganizeImportsComparer(o,p===2);for(let E of m){let S=Cm.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=Zs(d);y?e.insertNodesAfter(t,y,m):e.insertNodesAtTopOfFile(t,m,i)}}function Xq(e,t){return R.assert(e.isTypeOnly),ta(e.getChildAt(0,t),jq)}function _D(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Yq(e,t,r){return(r?nT:Yb)(e.fileName,t.fileName)&&_D(e.textSpan,t.textSpan)}function $q(e){return(t,r)=>Yq(t,r,e)}function Qq(e,t){if(e){for(let r=0;rTo(r)?!0:Xa(r)||nm(r)||H0(r)?!1:"quit")}function dUe(){let e=bk*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(tp(" ",16)),t.push(tp("...",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(tp(y,16))),r=!1}}function d(y,E){o>e||(l(),o+=y.length,t.push(tp(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(hD()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function Ede(e,t){return tp(e,r(t));function r(i){let o=i.flags;return o&3?eX(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 tp(e,t){return{text:e,kind:qw[t]}}function kl(){return tp(" ",16)}function bp(e){return tp(ca(e),5)}function Yd(e){return tp(ca(e),15)}function lM(e){return tp(ca(e),12)}function Sde(e){return tp(e,13)}function Tde(e){return tp(e,14)}function tX(e){let t=b0(e);return t===void 0?sf(e):bp(t)}function sf(e){return tp(e,17)}function Ade(e){return tp(e,0)}function Ide(e){return tp(e,18)}function n7(e){return tp(e,24)}function xde(e,t){return{text:e,kind:qw[23],target:{fileName:Vn(t).fileName,textSpan:Ru(t)}}}function nX(e){return tp(e,22)}function Rde(e,t){var r;let i=Aae(e)?"link":Iae(e)?"linkcode":"linkplain",o=[nX(`{@${i} `)];if(!e.name)e.text&&o.push(n7(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?oX(s,t):void 0,d=pUe(e.text),p=pc(e.name)+e.text.slice(0,d),h=uUe(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(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(nX("}")),o}function uUe(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))||Gxe}function hD(){return tp(` `,6)}function nb(e){try{return e(SX),SX.displayParts()}finally{SX.clear()}}function uO(e,t,r,i=0){return nb(o=>{e.writeType(t,r,i|1024|16384,o)})}function cM(e,t,r,i,o=0){return nb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function rX(e,t,r,i=0){return i|=25632,nb(o=>{e.writeSignature(t,r,i,void 0,o)})}function Lxe(e,t){let r=t.getSourceFile();return nb(i=>{Mw().writeNode(4,e,r,i)})}function Dde(e){return!!e.parent&&SI(e.parent)&&e.parent.propertyName===e}function iX(e,t){return w6(e,t.getScriptKind&&t.getScriptKind(e))}function oX(e,t){let r=e;for(;fUe(r)||uh(r)&&r.links.target;)uh(r)&&r.links.target?r=r.links.target:r=bd(r,t);return r}function fUe(e){return(e.flags&2097152)!==0}function Cde(e,t){return va(bd(e,t))}function Nde(e,t){for(;Cg(e.charCodeAt(t));)t+=1;return t}function r7(e,t){for(;t>-1&&b_(e.charCodeAt(t));)t-=1;return t+1}function sl(e,t=!0){let r=e&&kxe(e);return r&&!t&&Ep(r),r}function pO(e,t,r){let i=r(e);return i?Rr(i,e):i=kxe(e,r),i&&!t&&Ep(i),i}function kxe(e,t){let r=t?s=>pO(s,!0,t):sl,o=Sn(e,r,void 0,t?s=>s&&aX(s,!0,t):s=>s&&dS(s),r);if(o===e){let s=Da(e)?Rr(L.createStringLiteralFromNode(e),e):_p(e)?Rr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return st(s,e)}return o.parent=void 0,o}function dS(e,t=!0){if(e){let r=L.createNodeArray(e.map(i=>sl(i,t)),e.hasTrailingComma);return st(r,e),r}return e}function aX(e,t,r){return L.createNodeArray(e.map(i=>pO(i,t,r)),e.hasTrailingComma)}function Ep(e){sX(e),Pde(e)}function sX(e){Mde(e,1024,_Ue)}function Pde(e){Mde(e,2048,rU)}function ZT(e,t){let r=e.getSourceFile(),i=r.text;mUe(e,i)?gD(e,t,r):mO(e,t,r),dM(e,t,r)}function mUe(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 fO(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=hUe(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 gD(e,t,r,i,o){qL(r.text,e.pos,Lde(t,r,i,o,pP))}function dM(e,t,r,i,o){XL(r.text,e.end,Lde(t,r,i,o,i4))}function mO(e,t,r,i,o){XL(r.text,e.pos,Lde(t,r,i,o,pP))}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 hUe(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||Ma(e)||(Vk(e)||aH(e))&&Ma(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 cX(i,t);default:return t.getContextualType(e,r)}}function uM(e,t,r){let i=af(e,t),o=JSON.stringify(r);return i===0?`'${$f(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 kde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function lX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function cX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function pM(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:Kq(r,i)});return s?d:void 0}function wde(e){return e===179||e===180||e===181||e===171||e===173}function wxe(e){return e===262||e===176||e===174||e===177||e===178}function Oxe(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 gUe(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(Oxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&M_(d))return!1}else if(wxe(e.kind)){let d=Ja(e.getChildren(t));if(d&&C0(d))return!1}else if(!s7(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,d=>!d.parent),o=cS(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":TX(o.kind));return!!i&&gUe(i,r)}function _O(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(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,mh(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 dX(e,t,r,i,o){return p7(e,e.readDirectory,t,r,i,o)||Ye}function hO(e,t){return p7(e,e.fileExists,t)}function d7(e,t){return u7(()=>Jm(t,e))||!1}function u7(e){try{return e()}catch{return}}function p7(e,t,...r){return u7(()=>t&&t.apply(e,r))}function uX(e,t,r){let i=[];return ym(e,o=>{if(o===r)return!0;let s=Yr(o,"package.json");hO(t,s)&&i.push(s)}),i}function Ode(e,t){let r;return ym(e,i=>{if(i==="node_modules"||(r=Hle(i,o=>hO(t,o),"package.json"),r))return!0}),r}function Wde(e,t){if(!t.fileExists)return[];let r=[];return ym(oi(e),i=>{let o=Yr(i,"package.json");if(t.fileExists(o)){let s=pX(o,t);s&&r.push(s)}}),r}function pX(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 fM(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=$f(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)||kp(A)||dp(A)?!0:d(A)}function y(A){return!!(lu(e)&&F_.nodeCoreModules.has(A)&&(o===void 0&&(o=f7(e)),o))}function E(A,N){if(!A.includes("node_modules"))return;let D=rS.getNodeModulesPackageName(r.getCompilationSettings(),e,A,N,t);if(D&&!kp(D)&&!dp(D))return S(D)}function S(A){let N=zc(WP(A)).slice(1);return ao(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function f7(e){return gt(e.imports,({text:t})=>F_.nodeCoreModules.has(t))}function gO(e){return zo(zc(e),"node_modules")}function fX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Fde(e,t){let r=Ru(e),i=pI(t,r,el,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,fX)}}function zde(e,t){var r;let i=pI(t,e.start,l=>l.start,tl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=ql(e);for(;;){let l=ri(t[i],fX);if(!l||l.start>s)break;Vne(e,l)&&o.push(l),i++}return o}function I1({startPosition:e,endPosition:t}){return uc(e,t===void 0?e:t)}function mX(e,t){let r=so(e,t.start);return Fn(r,o=>o.getStart(e)ql(t)?"quit":ht(o)&&_D(t,Ru(o,e)))}function _X(e,t,r=el){return e?So(e)?r(mn(e,t)):t(e,0):void 0}function hX(e){return So(e)?Va(e):e}function Bde(e,t){if(Wxe(e)){let r=Fxe(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 m7(e,t,r){return Wxe(e)?Fxe(e)||Wd.moduleSymbolToValidIdentifier(Gde(e),t,!!r):e.name}function Wxe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function Fxe(e){return Fl(e.declarations,t=>{var r,i,o;return Ll(t)?(r=ri($l(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 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=ar(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;oXl(r)&&T_(r))}function _7(e){return!!(bV(e)&65536)}function h7(e,t){return Fl(e.imports,i=>{if(F_.nodeCoreModules.has(i.text))return ao(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function yO(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&&!_O(t);return{...e,semicolons:i?"remove":"ignore"}}function yX(e){return e===2||e===3}function yD(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(!TP(d)){let p=ms(d.expression);if(T0(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(Sl(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(B0(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&Z0(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(B0(d))}}}function vX(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!z0(s))return!1;let l=t.getCompilerOptions(),d=kd(l),p=typeof e=="string"?zw(rl(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,bX,Bxe,v7,EX,SX,Gxe,b7,TX,yUe=bt({"src/services/utilities.ts"(){"use strict";ai(),$d=Dy(99,!0),bX=(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))(bX||{}),Bxe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(EX||{}),SX=dUe(),Gxe=` `,b7="anonymous function",TX=Km(wde,wxe,Oxe,s7)}});function AX(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=j6(w.fileName);if(fe){let{topLevelNodeModulesIndex:ne,topLevelPackageNameIndex:he,packageRootIndex:Ce}=fe;if(B=Sw(WP(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(Th);ne>Ie&&o.set(B,ve)}else o.set(B,ve)}}}let z=j===1&&yR(A)||A,ee=j===0||aO(z)?Vi(N):Bde(z,void 0),me=typeof ee=="string"?ee:ee[0],ge=typeof ee=="string"?void 0:ee[1],q=$f(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)||!Um(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)||Ye;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} ${va(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(!Um(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=Jl(S.statements,j,N+1),D=Jl(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 IX(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=!!rS.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&vUe(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 vUe(e,t,r,i){let o=ym(t,l=>rc(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 xX(e,t,r,i,o){var s,l;let d=hR(t),p=r.autoImportFileExcludePatterns&&to(r.autoImportFileExcludePatterns,m=>{let y=L6(m,"","exclude");return y?Bv(y,d):void 0});Vxe(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=qs(),y=e.getTypeChecker();Vxe(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: ${qs()-m}`)}}function Vxe(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&&IE(h)){let y=oi(h);return ym(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)Op(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function vO(e,t,r,i,o){var s,l,d,p,h;let m=qs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||AX({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{xX(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&&jxe(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&&jxe(B,K)&&Tm(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 ${qs()-m} ms`),y}function E7(e,t,r){let i=bUe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=S7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function jxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!Z2(e)&&!xie(e)}function bUe(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=yR(e);if(i)return{resolvedSymbol:i,name:i.name};let o=EUe(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 EUe(e){return e.declarations&&Fl(e.declarations,t=>{var r;if(Ll(t))return(r=ri($l(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 RX,DX,SUe=bt({"src/services/exportInfoMap.ts"(){"use strict";ai(),RX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(RX||{}),DX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(DX||{})}});function Uxe(){let e=Dy(99,!1);function t(i,o,s){return IUe(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=DUe(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(),uR(l)||(N(),d=l);let D=e.getTokenEnd();if(AUe(e.getTokenStart(),D,y,PUe(l),S),D>=i.length){let w=TUe(e,l,Zs(p));w!==void 0&&(E=w)}}while(l!==1);function N(){switch(l){case 44:case 69:!qxe[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=Zs(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)&&!RUe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function TUe(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 AUe(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 IUe(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:xUe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function xUe(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 RUe(e,t){if(!Fq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function DUe(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 CUe(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 NUe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function PUe(e){if(Wu(e))return 3;if(CUe(e)||NUe(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 Jxe(CX(e,t,r,i,o))}function Hxe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function CX(e,t,r,i,o){let s=[];return r.forEachChild(function d(p){if(!(!p||!tF(o,p.pos,p.getFullWidth()))){if(Hxe(t,p.kind),Fe(p)&&!zl(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&Kxe(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 Kxe(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&&MUe(e)?14:void 0:i&2097152?Kxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function MUe(e){return gt(e.declarations,t=>Xl(t)&&Vg(t)===1)}function LUe(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 Jxe(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&&fde(ce.parent))return 10;if(Dj(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(Ng(ce.parent))return 3}return 2}}}function Y(B){if(B&&ZL(i,o,B.pos,B.getFullWidth())){Hxe(e,B.kind);for(let ce of B.getChildren(t))w(ce)||Y(ce)}}}var qxe,Xxe=bt({"src/services/classifier.ts"(){"use strict";ai(),qxe=ine([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),T7,kUe=bt({"src/services/documentHighlights.ts"(){"use strict";ai(),(e=>{function t(q,J,re,pe,xe){let fe=zu(re,pe);if(fe.parent&&(L_(fe.parent)&&fe.parent.tagName===fe||X0(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=CL(ne.map(ws.toHighlightSpan),Ge=>Ge.fileName,Ge=>Ge.span),Ce=Pd(re.useCaseSensitiveFileNames());return Oo(HC(he.entries(),([Ge,ve])=>{if(!fe.has(Ge)){if(!re.redirectTargetsMap.has(rl(Ge,re.getCurrentDirectory(),Ce)))return;let Ie=re.getSourceFile(Ge);Ge=Gr(xe,ke=>!!ke.redirectInfo&&ke.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,Am,Y);case 111:return pe(q.parent,lH,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,bP,w);case 84:case 90:return TP(q.parent)||OR(q.parent)?pe(q.parent.parent.parent,bP,w):void 0;case 83:case 88:return pe(q.parent,uN,D);case 99:case 117:case 92:return pe(q.parent,ne=>Pv(ne,!0),N);case 137:return re(Pl,[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)&&(Kd(q.parent)||Ml(q.parent))?xe(E(q.kind,q.parent)):void 0}function re(fe,ne){return pe(q.parent,fe,he=>{var Ce;return to((Ce=ri(he,S_))==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 lH(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(C0(re)||re.kind===312)return re;if(WT(re)&&re.tryBlock===J&&re.catchClause)return J;J=re}}function p(q){return uN(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(...mI(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,OI(q)),re=>mD(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&&Tc(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,Pl);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))}),C0(re)&&D0(re,xe=>{pe.push(hs(xe,107,J))}),pe}function Y(q,J){let re=Fp(q);if(!re)return;let pe=[];return D0(ta(re.body,Ho),xe=>{pe.push(hs(xe,107,J))}),gn(l(re.body),xe=>{pe.push(hs(xe,111,J))}),pe}function B(q){let J=Fp(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=Fp(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)&&!fu(q)&&!Xl(q)&&!Im(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(!b_(J.text.charCodeAt(Ce))){he=!1;break}if(he){pe.push({fileName:J.fileName,textSpan:uc(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=>q0(re)?re.label.escapedText===J:"quit")}})(T7||(T7={}))}});function bO(e){return!!e.sourceFile}function Kde(e,t,r){return PX(e,t,r)}function PX(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)=>{bO(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=rl(D,t,s),z=MX(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=rl(D,t,s),z=MX(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=bO(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&&zw(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:uk(re),jsDocParsingMode:r};fe.languageVersion=xe,R.assertEqual(r,fe.jsDocParsingMode);let ne=o.size,he=Jde(K,fe.impliedNodeFormat),Ce=KC(o,he,()=>new Map);if(or){o.size>ne&&or.instant(or.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:he});let De=!Sd(w)&&Gc(o,(ke,Et)=>Et!==he&&ke.has(w)&&Et);De&&or.instant(or.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=bY(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(bO(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=rl(D,t,s),B=MX(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&&(bO(B)?Y.delete(D):(B.delete(j),B.size===1&&Y.set(D,IL(B.values(),el))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:y,releaseDocument:A,releaseDocumentWithKey:N,getKeyForCompilationSettings:MX,getDocumentRegistryBucketKeyWithMode:Jde,reportStats:l,getBuckets:()=>o}}function MX(e){return oK(e,f3)}function Jde(e,t){return t?`${e}|${t}`:e}var wUe=bt({"src/services/documentRegistry.ts"(){"use strict";ai()}});function qde(e,t,r,i,o,s,l){let d=hR(i),p=Pd(d),h=LX(t,r,p,l),m=LX(r,t,p,l);return fr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{WUe(e,y,h,t,r,i.getCurrentDirectory(),d),FUe(e,y,h,m,i,p)})}function LX(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:OUe(d.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let d=dU(l,o,r);return d===void 0?void 0:t+"/"+d}}function OUe(e,t,r,i){let o=jL(e,t,i);return Xde(oi(r),o)}function WUe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=oi(d.fileName),h=TN(d);if(!h)return;Yde(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!pu(S.initializer))return;let D=to(S.initializer.elements,j=>Da(j)?j.text:void 0);if(D.length===0)return;let w=k6(p,[],D,l,s);Bv(R.checkDefined(w.includeFilePattern),l).test(i)&&!Bv(R.checkDefined(w.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Ja(S.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Yde(S.initializer,(N,D)=>{let w=BH(D);R.assert(w?.type!=="listOrElement"),w&&(w.isFilePath||w.type==="list"&&w.element.isFilePath)?m(N):D==="paths"&&Yde(N.initializer,j=>{if(pu(j.initializer))for(let K of j.initializer.elements)y(K)})});return}});function m(S){let A=pu(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,$xe(S,d),E(N)),!0):!1}function E(S){return gm(p,S,!l)}}function FUe(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;GUe(d,t,N=>{if(!kp(N))return;let D=Xde(S,N),w=r(D);return w===void 0?void 0:v0(gm(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?Yxe(N,YR(N.text,E,e.getCompilerOptions(),o),r,l):BUe(D,N,d,e,o,r);return w!==void 0&&(w.updated||A&&kp(N.text))?rS.updateModuleSpecifier(e.getCompilerOptions(),d,h,w.newFileName,QT(e,o),N.text):void 0})}}function zUe(e,t){return fa(Yr(e,t))}function Xde(e,t){return v0(zUe(e,t))}function BUe(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 Yxe(t,d,s,i.getSourceFiles())}}function Yxe(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)||kp(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 GUe(e,t,r,i){for(let o of e.referencedFiles||Ye){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,$xe(o,e),s)}}function $xe(e,t){return Sf(e.getStart(t)+1,e.end-1)}function Yde(e,t){if(Ma(e))for(let r of e.properties)_c(r)&&Da(r.name)&&t(r,r.name.text)}var VUe=bt({"src/services/getEditsForFileRename.ts"(){"use strict";ai()}});function mM(e,t){return{kind:e,isCaseSensitive:t}}function $de(e){let t=new Map,r=e.trim().split(".").map(i=>KUe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>mM(2,!0),getFullMatch:()=>mM(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>jUe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Qde(i,Ja(r),t),patternContainsDots:r.length>1}}function jUe(e,t,r,i){if(!Qde(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=eRe(s,Qde(e[d],r[l],i));return s}function Qxe(e,t){let r=t.get(e);return r||t.set(e,r=iue(e)),r}function Zxe(e,t,r){let i=JUe(e,t.textLowerCase);if(i===0)return mM(t.text.length===e.length?0:1,ao(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=Qxe(e,r);for(let s of o)if(Zde(e,s,t.text,!0))return mM(2,Zde(e,s,t.text,!1));if(t.text.length0)return mM(2,!0);if(t.characterSpans.length>0){let o=Qxe(e,r),s=tRe(e,o,t,!1)?!0:tRe(e,o,t,!0)?!1:void 0;if(s!==void 0)return mM(3,s)}}}function Qde(e,t,r){if(kX(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=Zxe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=eRe(o,Zxe(e,s,r));return o}function eRe(e,t){return JG([e,t],UUe)}function UUe(e,t){return e===void 0?1:t===void 0?-1:tl(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&&oRe(0,o.length,s=>HUe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function HUe(e,t,r){return r?eue(e)===eue(t):e===t}function tRe(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 nRe(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 JUe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(kX(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 qUe(e){return vD(e)||nRe(e)||tue(e)||e===95||e===36}function XUe(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 rRe(e,!1)}function iue(e){return rRe(e,!0)}function rRe(e,t){let r=[],i=0;for(let o=1;ooue(i)&&i!==95,t,r)}function YUe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var A7,QUe=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 aRe(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)&&(Zs(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(),kH(i,e),wH(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 ZUe=bt({"src/services/preProcess.ts"(){"use strict";ai()}});function aue(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 rl(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&&wX({getSourceFileLike:y,getCanonicalFileName:t,log:Y=>e.log(Y)},A,DK(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?eHe(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 wX(e,t,r,i){let o=Qse(r);if(o){let d=lRe.exec(o);if(d){if(d[1]){let p=d[1];return sRe(e,Qie(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 sRe(e,h,p);if(h!==void 0)return h||void 0}}function sRe(e,t,r){let i=CK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Co)))return tle(e,i,r)}function eHe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return kx(Dg(this),r)}}}var lRe,tHe=bt({"src/services/sourcemaps.ts"(){"use strict";ai(),lRe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function OX(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Ec(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(yde(t)||Hq(t.getCompilerOptions()))&&nHe(e)&&o.push(Pr(aHe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=lu(e);if(BX.clear(),p(e),CT(t.getCompilerOptions()))for(let h of e.imports){let m=RN(h),y=rHe(m);if(!y)continue;let E=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,S=E&&t.getSourceFile(E.resolvedFileName);S&&S.externalModuleIndicator&&S.externalModuleIndicator!==!0&&Ll(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&o.push(Pr(y,f.Import_may_be_converted_to_a_default_import))}return Ur(o,e.bindSuggestionDiagnostics),Ur(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(d)lHe(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(Ml(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))}zX(h)&&iHe(h,s,o),h.forEachChild(p)}}function nHe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Su(cRe(r.initializer),!0));case 244:{let{expression:r}=t;if(!pr(r))return Su(r,!0);let i=Bl(r);return i===1||i===2}default:return!1}})}function cRe(e){return kr(e)?cRe(e.expression):e}function rHe(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 iHe(e,t,r){oHe(e,t)&&!BX.has(fRe(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 oHe(e,t){return!PN(e)&&e.body&&Ho(e.body)&&sHe(e.body,t)&&WX(e,t)}function WX(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function aHe(e){return pr(e)?e.left:e}function sHe(e,t){return!!D0(e,r=>I7(r,t))}function I7(e,t){return Am(e)&&!!e.expression&&FX(e.expression,t)}function FX(e,t){if(!dRe(e)||!uRe(e)||!e.arguments.every(i=>pRe(i,t)))return!1;let r=e.expression.expression;for(;dRe(r)||kr(r);)if(ra(r)){if(!uRe(r)||!r.arguments.every(i=>pRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function dRe(e){return ra(e)&&($w(e,"then")||$w(e,"catch")||$w(e,"finally"))}function uRe(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 pRe(e,t){switch(e.kind){case 262:case 218:if(Vc(e)&1)return!1;case 219:BX.set(fRe(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)||Lv(o)&&!!o.initializer&&Yo(o.initializer)):!1}default:return!1}}function fRe(e){return`${e.pos.toString()}:${e.end.toString()}`}function lHe(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 Sc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function zX(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var BX,cHe=bt({"src/services/suggestionDiagnostics.ts"(){"use strict";ai(),BX=new Map}});function sue(e,t){let r=[],i=t.compilerOptions?GX(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 eK)i.verbatimModuleSyntax&&_Re.has(E.name)||(i[E.name]=E.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=Wy(i),l={getSourceFile:E=>E===fa(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=nw(d,e,{languageVersion:rs(i),impliedNodeFormat:zw(rl(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:uk(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 mRe(e,t,r,i,o){let s=sue(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Ur(i,s.diagnostics),s.outputText}function GX(e,t){lue=lue||Vr(sg,r=>typeof r.type=="object"&&!Gc(r.type,i=>typeof i!="number")),e=zq(e);for(let r of lue){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(Zae(r))}return e}var _Re,lue,dHe=bt({"src/services/transpile.ts"(){"use strict";ai(),_Re=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function hRe(e,t,r,i,o,s,l){let d=$de(i);if(!d)return Ye;let p=[],h=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(gRe(m,!!l,h)||m.getNamedDeclarations().forEach((y,E)=>{uHe(d,E,y,t,m.fileName,!!l,h,p)}));return p.sort(_He),(o===void 0?p:p.slice(0,o)).map(hHe)}function gRe(e,t,r){return e!==r&&t&&(gO(e.path)||e.hasNoDefaultLib)}function uHe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(pHe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(mHe(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 pHe(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=>gRe(d.getSourceFile(),r,i)));default:return!0}}function fHe(e,t){let r=No(e);return!!r&&(yRe(r,t)||r.kind===167&&cue(r.expression,t))}function cue(e,t){return yRe(e,t)||kr(e)&&(t.push(e.name.text),!0)&&cue(e.expression,t)}function yRe(e,t){return I_(e)&&(t.push(Yf(e)),!0)}function mHe(e){let t=[],r=No(e);if(r&&r.kind===167&&!cue(r.expression,t))return Ye;t.shift();let i=$T(e);for(;i;){if(!fHe(i,t))return Ye;i=$T(i)}return t.reverse()}function _He(e,t){return tl(e.matchKind,t.matchKind)||PL(e.name,t.name)}function hHe(e){let t=e.declaration,r=$T(t),i=r&&No(r);return{name:e.name,kind:lS(t),kindModifiers:iM(t),matchKind:A7[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Ru(t),containerName:i?i.text:"",containerKind:i?lS(r):""}}var gHe=bt({"src/services/navigateTo.ts"(){"use strict";ai()}}),due={};xa(due,{getNavigateToItems:()=>hRe});var vRe=bt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";gHe()}});function bRe(e,t){HX=t,EO=e;try{return mn(SHe(ARe(e)),THe)}finally{SRe()}}function ERe(e,t){HX=t,EO=e;try{return LRe(ARe(e))}finally{SRe()}}function SRe(){EO=void 0,HX=void 0,SO=[],Xy=void 0,KX=[]}function x7(e){return _M(e.getText(EO))}function VX(e){return e.node.kind}function TRe(e,t){e.children?e.children.push(t):e.children=[t]}function ARe(e){R.assert(!SO.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)x1(r);return CE(),R.assert(!Xy&&!SO.length),t}function uS(e,t){TRe(Xy,uue(e,t))}function uue(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 IRe(e){bD||(bD=new Map),bD.set(e,!0)}function xRe(e){for(let t=0;t0;i--){let o=r[i];pS(e,o)}return[r.length-1,r[0]]}function pS(e,t){let r=uue(e,t);TRe(Xy,r),SO.push(Xy),vue.push(bD),bD=void 0,Xy=r}function CE(){Xy.children&&(jX(Xy.children,Xy),mue(Xy.children)),Xy=SO.pop(),bD=vue.pop()}function NE(e,t,r){pS(e,r),x1(t),CE()}function DRe(e){e.initializer&&IHe(e.initializer)?(pS(e),Bo(e.initializer,x1),CE()):NE(e,e.initializer)}function pue(e){let t=No(e);if(t===void 0)return!1;if($a(t)){let r=t.expression;return Gl(r)||_p(r)||Qp(r)}return!!t}function x1(e){if(HX.throwIfCancellationRequested(),!(!e||EI(e)))switch(e.kind){case 176:let t=e;NE(t,t.body);for(let l of t.parameters)up(l,t)&&uS(l);break;case 174:case 177:case 178:case 173:pue(e)&&NE(e,e.body);break;case 172:pue(e)&&DRe(e);break;case 171:pue(e)&&uS(e);break;case 273:let r=e;r.name&&uS(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)uS(i);else for(let l of i.elements)uS(l);break;case 304:NE(e,e.name);break;case 305:let{expression:o}=e;Fe(o)?uS(e,o):uS(e);break;case 208:case 303:case 260:{let l=e;$o(l.name)?x1(l.name):DRe(l);break}case 262:let s=e.name;s&&Fe(s)&&IRe(s.text),NE(e,e.body);break;case 219:case 218:NE(e,e.body);break;case 266:pS(e);for(let l of e.members)AHe(l)||uS(l);CE();break;case 263:case 231:case 264:pS(e);for(let l of e.members)x1(l);CE();break;case 267:NE(e,wRe(e).body);break;case 277:{let l=e.expression,d=Ma(l)||ra(l)?l:zs(l)||ks(l)?l.body:void 0;d?(pS(e),x1(d),CE()):uS(e);break}case 281:case 271:case 181:case 179:case 180:case 265:uS(e);break;case 213:case 226:{let l=Bl(e);switch(l){case 1:case 2:NE(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)?(IRe(h.expression.text),y=h.expression):[m,y]=RRe(d,h.expression),l===6?Ma(d.right)&&d.right.properties.length>0&&(pS(d,y),Bo(d.right,x1),CE()):ks(d.right)||zs(d.right)?NE(e,d.right,y):(pS(d,y),NE(e,d.right,p.name),CE()),xRe(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]=RRe(e,p);pS(e,y),pS(e,st(L.createIdentifier(h.text),h)),x1(e.arguments[2]),CE(),CE(),xRe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Fe(h)&&Lg(p)!=="prototype"&&bD&&bD.has(h.text)){ks(d.right)||zs(d.right)?NE(e,d.right,h):P0(p)&&(pS(d,h),NE(d.left,d.right,F2(p)),CE());return}break}case 4:case 0:case 8:break;default:R.assertNever(l)}}default:wp(e)&&gn(e.jsDoc,l=>{gn(l.tags,d=>{Xf(d)&&uS(d)})}),Bo(e,x1)}}function jX(e,t){let r=new Map;LG(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(CRe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return CRe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function yHe(e,t,r,i){function o(d){return ks(d)||Sc(d)||Oi(d)}let s=pr(t.node)||ra(t.node)?Bl(t.node):0,l=pr(e.node)||ra(e.node)?Bl(e.node):0;if(hM[s]&&hM[l]||o(e.node)&&hM[s]||o(t.node)&&hM[l]||Tc(e.node)&&fue(e.node)&&hM[s]||Tc(t.node)&&hM[l]||Tc(e.node)&&fue(e.node)&&o(t.node)||Tc(t.node)&&o(e.node)&&fue(e.node)){let d=e.additionalNodes&&Zs(e.additionalNodes)||e.node;if(!Tc(e.node)&&!Tc(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=st(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&&(jX(e.children,e),mue(e.children)));d=e.node=st(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&&jX(e.children,e);let p=t.node;return i.children[r-1].node.end===d.end?st(d,{pos:d.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(st(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function CRe(e,t,r,i){return yHe(e,t,r,i)?!0:vHe(e.node,t.node,i)?(bHe(e,t),!0):!1}function vHe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(NRe(e,r)&&NRe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return na(e)===na(t);case 267:return PRe(e,t)&&gue(e)===gue(t);default:return!0}}function fue(e){return!!(e.flags&16)}function NRe(e,t){let r=M_(e.parent)?e.parent.parent:e.parent;return r===t.node||zo(t.additionalNodes,r)}function PRe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||PRe(e.body,t.body))}function bHe(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&&(jX(e.children,e),mue(e.children))}function mue(e){e.sort(EHe)}function EHe(e,t){return PL(MRe(e.node),MRe(t.node))||tl(VX(e),VX(t))}function MRe(e){if(e.kind===267)return kRe(e);let t=No(e);if(t&&ic(t)){let r=ST(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return WRe(e);default:return}}function _ue(e,t){if(e.kind===267)return _M(kRe(e));if(t){let r=Fe(t)?t.text:Ys(t)?`[${x7(t.argumentExpression)}]`:x7(t);if(r.length>0)return _M(r)}switch(e.kind){case 312:let r=e;return ac(r)?`"${eg(rc(Tu(fa(r.fileName))))}"`:"";case 277:return Ll(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Fv(e)&2048?"default":WRe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function SHe(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(VX(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(VX(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function LRe(e){return{text:_ue(e.node,e.name),kind:lS(e.node),kindModifiers:ORe(e.node),spans:hue(e),nameSpan:e.name&&yue(e.name),childItems:mn(e.children,LRe)}}function THe(e){return{text:_ue(e.node,e.name),kind:lS(e.node),kindModifiers:ORe(e.node),spans:hue(e),childItems:mn(e.children,t)||KX,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:_ue(r.node,r.name),kind:lS(r.node),kindModifiers:iM(r.node),spans:hue(r),childItems:KX,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 kRe(e){return Ld(e)?pc(e.name):gue(e)}function gue(e){let t=[Yf(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Yf(e.name));return t.join(".")}function wRe(e){return e.body&&Xl(e.body)?wRe(e.body):e}function AHe(e){return!e.name||e.name.kind===167}function yue(e){return e.kind===312?tb(e):Ru(e,EO)}function ORe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),iM(e)}function WRe(e){let{parent:t}=e;if(e.name&&g2(e.name)>0)return _M(xs(e.name));if(Oi(t))return _M(xs(t.name));if(pr(t)&&t.operatorToken.kind===64)return x7(t.left).replace(zRe,"");if(_c(t))return x7(t.name);if(Fv(e)&2048)return"default";if(di(e))return"";if(ra(t)){let r=FRe(t.expression);if(r!==void 0){if(r=_M(r),r.length>UX)return`${r} callback`;let i=_M(to(t.arguments,o=>ss(o)||II(o)?o.getText(EO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function FRe(e){if(Fe(e))return e.text;if(kr(e)){let t=FRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function IHe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function _M(e){return e=e.length>UX?e.substring(0,UX)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var zRe,UX,HX,EO,SO,Xy,vue,bD,KX,hM,xHe=bt({"src/services/navigationBar.ts"(){"use strict";ai(),zRe=/\s+/g,UX=150,SO=[],vue=[],KX=[],hM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),bue={};xa(bue,{getNavigationBarItems:()=>bRe,getNavigationTree:()=>ERe});var BRe=bt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";xHe()}});function lg(e,t){JX.set(e,t)}function RHe(e,t){return Oo(kG(JX.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>PE(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function DHe(e,t,r,i){let o=JX.get(t);return o&&o.getEditsForAction(e,r,i)}var JX,GRe=bt({"src/services/refactorProvider.ts"(){"use strict";ai(),Ah(),JX=new Map}});function VRe(e,t=!0){let{file:r,program:i}=e,o=I1(e),s=so(r,o.start),l=s.parent&&Fv(s.parent)&32&&t?s.parent:dO(s,r,o);if(!l||!Yi(l.parent)&&!(M_(l.parent)&&Ld(l.parent.parent)))return{error:ko(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=kHe(l.parent,d),h=Fv(l)||(Ll(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 CHe(e,t,r,i,o){NHe(e,r,i,t.getTypeChecker()),PHe(t,r,i,o)}function NHe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(Ll(r)&&!r.isExportEquals){let l=r.expression,d=jRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([d])))}else o.delete(e,R.checkDefined(mD(r,90),"Should find a default keyword in modifier list"));else{let l=R.checkDefined(mD(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 PHe(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?MHe(h,p,o,r.text):LHe(h,p,o)})}function MHe(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 LHe(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,jRe("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 jRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function kHe(e,t){if(Yi(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&x0(r.valueDeclaration)?t.getMergedSymbol(r):r}var qX,R7,D7,wHe=bt({"src/services/refactors/convertExport.ts"(){"use strict";ai(),Ah(),qX="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(qX,{kinds:[R7.kind,D7.kind],getAvailableActions:function(t){let r=VRe(t,t.triggerReason==="invoked");if(!r)return Ye;if(!jg(r)){let i=r.wasDefault?R7:D7;return[{name:qX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:qX,description:ko(f.Convert_default_export_to_named_export),actions:[{...R7,notApplicableReason:r.error},{...D7,notApplicableReason:r.error}]}]:Ye},getEditsForAction:function(t,r){R.assert(r===R7.name||r===D7.name,"Unexpected action name");let i=VRe(t);return R.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:fr.ChangeTracker.with(t,s=>CHe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function URe(e,t=!0){let{file:r}=e,i=I1(e),o=so(r,i.start),s=t?Fn(o,Lc):dO(o,r,i);if(!s||!Lc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=cS(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}:HRe(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 HRe(e,t){return CT(e.getCompilerOptions())&&zHe(t.parent.moduleSpecifier,e.getTypeChecker())}function OHe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?WHe(e,o,r,i.import,CT(t.getCompilerOptions())):JRe(e,t,r,i.import,i.convertTo===1)}function WHe(e,t,r,i,o){let s=!1,l=[],d=new Map;ws.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!vre(y.parent))s=!0;else{let E=KRe(y.parent).text;t.resolveName(E,y,-1,!0)&&d.set(E,!0),R.assert(FHe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});let p=new Map;for(let y of l){let E=KRe(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,Sue(m,void 0,h)):r.replaceNode(e,m,Sue(m,s?L.createIdentifier(i.name.text):void 0,h))}function KRe(e){return kr(e)?e.name:e.right}function FHe(e){return kr(e)?e.expression:e.left}function JRe(e,t,r,i,o=HRe(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!!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);ep(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,Sue(l,void 0,A))}}function zHe(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 XX,C7,BHe=bt({"src/services/refactors/convertImport.ts"(){"use strict";ai(),Ah(),XX="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(XX,{kinds:fI(C7).map(e=>e.kind),getAvailableActions:function(t){let r=URe(t,t.triggerReason==="invoked");if(!r)return Ye;if(!jg(r)){let i=C7[r.convertTo];return[{name:XX,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?fI(C7).map(i=>({name:XX,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Ye},getEditsForAction:function(t,r){R.assert(gt(fI(C7),s=>s.name===r),"Unexpected action name");let i=URe(t);return R.assert(i&&!jg(i),"Expected applicable refactor info"),{edits:fr.ChangeTracker.with(t,s=>OHe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function qRe(e,t=!0){let{file:r,startPosition:i}=e,o=lu(r),s=Jz(I1(e)),l=s.pos===s.end&&t,d=GHe(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=KHe(d,o);if(h===void 0)return{error:ko(f.No_type_could_be_extracted_from_this_type_node)};let m=JHe(d,h);if(!ji(m))return{error:ko(f.Selection_is_not_a_valid_type_node)};let y=[];(Kv(m.parent)||n1(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=VHe(p,E,h,r);if(!S)return{error:ko(f.No_type_could_be_extracted_from_this_type_node)};let A=YX(p,E);return{isJS:o,selection:E,enclosingNode:h,typeParameters:S,typeElements:A}}function GHe(e,t,r,i){let o=[()=>so(e,t),()=>pD(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)&&!fS(r,h.parent,e)&&(i||d));if(p)return p}}function YX(e,t){if(t){if(So(t)){let r=[];for(let i of t){let o=YX(e,i);if(!o)return;Ur(r,o)}return r}if(n1(t)){let r=[],i=new Map;for(let o of t.types){let s=YX(e,o);if(!s||!s.every(l=>l.name&&Tm(i,lO(l.name))))return;Ur(r,s)}return r}else{if(MT(t))return YX(e,t.type);if(yp(t))return t.members}}}function fS(e,t,r){return tO(e,Na(r.text,t.pos),t.end)}function VHe(e,t,r,i){let o=[],s=mI(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(xf(p)){if(Fe(p.typeName)){let h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(let y of m?.declarations||Ye)if(_l(y)&&y.getSourceFile()===i){if(y.name.escapedText===h.escapedText&&fS(y,l,i))return!0;if(fS(r,y,i)&&!fS(l,y,i)){vf(o,y);break}}}}else if(PT(p)){let h=Fn(p,m=>r1(m)&&fS(m.extendsType,p,i));if(!h||!fS(l,h,i))return!0}else if(zk(p)||Gk(p)){let h=Fn(p.parent,Yo);if(h&&h.type&&fS(h.type,p,i)&&!fS(l,h,i))return!0}else if(e1(p)){if(Fe(p.exprName)){let h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&fS(r,h.valueDeclaration,i)&&!fS(l,h.valueDeclaration,i))return!0}else if(W0(p.exprName.left)&&!fS(l,p.parent,i))return!0}return i&&t1(p)&&ys(i,p.pos).line===ys(i,p.end).line&&dr(p,1),Bo(p,d)}}function jHe(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,XU(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 UHe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:d}=i,p=L.createInterfaceDeclaration(void 0,r,l,void 0,d);st(p,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,XU(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:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.ExcludeWhitespace})}function HHe(e,t,r,i,o){var s;mI(o.selection).forEach(A=>{dr(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=zx(A),D=L.createTypeParameterDeclaration(void 0,A.name),w=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ta(N,eS),[D]);E.push(w)});let S=L.createJSDocComment(void 0,L.createNodeArray(bo(E,[y])));if(Qm(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 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 KHe(e,t){return Fn(e,Hi)||(t?Fn(e,Qm):void 0)}function JHe(e,t){return Fn(e,r=>r===t?"quit":!!(Kv(r.parent)||n1(r.parent)))??e}var $X,N7,P7,M7,qHe=bt({"src/services/refactors/extractType.ts"(){"use strict";ai(),Ah(),$X="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($X,{kinds:[N7.kind,P7.kind,M7.kind],getAvailableActions:function(t){let r=qRe(t,t.triggerReason==="invoked");return r?jg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:$X,description:ko(f.Extract_type),actions:[{...M7,notApplicableReason:r.error},{...N7,notApplicableReason:r.error},{...P7,notApplicableReason:r.error}]}]:Ye:[{name:$X,description:ko(f.Extract_type),actions:r.isJS?[M7]:Tn([N7],r.typeElements&&P7)}]:Ye},getEditsForAction:function(t,r){let{file:i}=t,o=qRe(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"),jHe(h,i,s,o);case M7.name:return R.assert(o.isJS,"Invalid actionName/JS combo"),HHe(h,t,i,s,o);case P7.name:return R.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),UHe(h,i,s,o);default:R.fail("Unexpected action name")}}),d=i.fileName,p=fO(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function jg(e){return e.error!==void 0}function PE(e,t){return t?e.substr(0,t.length)===t:!0}var XHe=bt({"src/services/refactors/helpers.ts"(){"use strict"}});function XRe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=zu(e,t),p=d.parent;if(Fe(d)){if(ck(p)&&SN(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(YRe(p))return;let h=$Re(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(!ck(m)||!SN(m)||!Fe(m.name)||YRe(m))return;let y=$Re(m,l,e);return y&&{references:y,declaration:m,replacement:m.initializer}}return{error:ko(f.Could_not_find_variable_to_inline)}}}function YRe(e){let t=ta(e.parent.parent,Ml);return gt(t.modifiers,$I)}function $Re(e,t,r){let i=[],o=ws.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(ws.isWriteAccessForReference(s)&&!ep(s.parent)||Jd(s.parent)||Ll(s.parent)||e1(s.parent)||QL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function YHe(e,t){t=sl(t);let{parent:r}=e;return ht(r)&&(kN(t){for(let y of l)m.replaceNode(r,y,YHe(y,p));m.delete(r,d)})}}})}});function QHe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=w7(e,r.all,l),p=kue(e,t,o,r);i.createNewFile(e,p,ZHe(e,d,i,r,t,o,p,s)),Aue(t,i,e.fileName,p,ky(o))}function ZHe(e,t,r,i,o,s,l,d){let p=o.getTypeChecker(),h=xW(e.statements,Em);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return L7(e,i.ranges,r),[...h,...i.all];let m=!vX(l,o,s,!!e.commonJsModuleIndicator),y=af(e,d),E=Due(e,t.oldFileImportsFromTargetFile,l,o,s,m,y);E&&aM(r,e,E,!0,d),Iue(e,i.all,r,t.unusedImportsFromOldFile,p),L7(e,i.ranges,r),xue(r,o,s,e,t.movedSymbols,l,y);let S=eKe(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 eKe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)xO(S,A=>{Tn(h,RO(A,IO(A),N=>t.has(o.getSymbolAtLocation(N))))});let m,y=[],E=T1();return r.forEach(S=>{if(S.declarations)for(let A of S.declarations){if(!O7(A))continue;let N=Mue(A);if(!N)continue;let D=nY(A);E(D)&&Lue(e,D,N,i,d),$r(A,2048)?m=N:y.push(N.text)}}),Tn(h,k7(e,m,y,rc(e.fileName),s,l,d,p)),h}var AO,eY,tY,tKe=bt({"src/services/refactors/moveToNewFile.ts"(){"use strict";ai(),Ah(),AO="Move to a new file",eY=ko(f.Move_to_a_new_file),tY={name:AO,description:eY,kind:"refactor.move.newFile"},lg(AO,{kinds:[tY.kind],getAvailableActions:function(t){let r=DO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:AO,description:eY,actions:[tY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:AO,description:eY,actions:[{...tY,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Ye},getEditsForAction:function(t,r){R.assert(r===AO,"Wrong refactor invoked");let i=R.checkDefined(DO(t));return{edits:fr.ChangeTracker.with(t,s=>QHe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function QRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function nKe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,ZRe(t,r,w7(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);ZRe(t,h,w7(t,o.all,p,EKe(h,o.all,p)),s,o,i,l,d,m)}}function ZRe(e,t,r,i,o,s,l,d,p){let h=s.getTypeChecker(),m=xW(e.statements,Em);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=!vX(y,s,l,!!e.commonJsModuleIndicator),S=af(e,d),A=Due(e,r.oldFileImportsFromTargetFile,y,s,l,E,S);A&&aM(i,e,A,!0,d),Iue(e,o.all,i,r.unusedImportsFromOldFile,h),L7(e,o.ranges,i),xue(i,s,l,e,r.movedSymbols,y,S);let N=rKe(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?bKe(i,s,D,t,o):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&aM(i,t,N,!0,d)),p&&p.writeFixes(i,S),N.length&&D.length?[...m,...N,4,...D]:[...m,...N,...D]}function rKe(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)xO(j,K=>{Tn(y,RO(K,L.createStringLiteral(IO(K).text),Y=>r.has(s.getSymbolAtLocation(Y))))})}});else{let D=l.getSourceFile(t);for(let w of e.statements)xO(w,j=>{var K;let Y=IO(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,RO(j,A1(ee,h),me=>r.has(s.getSymbolAtLocation(me))))}else Tn(y,RO(j,L.createStringLiteral(IO(j).text),ee=>r.has(s.getSymbolAtLocation(ee))))})}let E=l.getSourceFile(t),S,A=[],N=T1();return i.forEach(D=>{if(D.declarations)for(let w of D.declarations){if(!O7(w))continue;let j=Mue(w);if(!j)continue;let K=nY(w);N(K)&&Lue(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 Aue(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=fa(Yr(r,"..",i)),d=jL(s.fileName,l,o),p=s.statements[0]&&ri(s.statements[0].expression,Ma),h=p&&Gr(p.properties,m=>_c(m)&&Da(m.name)&&m.name.text==="files");h&&pu(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 Iue(e,t,r,i,o){for(let s of e.statements)zo(t,s)||xO(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)xO(h,m=>{if(d.getSymbolAtLocation(IO(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)};Nue(p,m,e,y);let E=Iv(oi(i.path),s),S=D3(t.getCompilerOptions(),p,p.fileName,E,QT(t,r)),A=RO(m,A1(S,l),y);A&&e.insertNodeAfter(p,h,A);let N=iKe(m);N&&oKe(e,p,d,o,S,N,m,l)})}function iKe(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 oKe(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,aKe(l,p,o,d))}}function aKe(e,t,r,i){let o=L.createIdentifier(t),s=A1(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 IO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function xO(e,t){if(Lc(e))Da(e.moduleSpecifier)&&t(e);else if(nd(e))Eh(e.moduleReference)&&ss(e.moduleReference.expression)&&t(e);else if(Ml(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($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=Iv(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 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?eDe(L.createObjectBindingPattern(m),void 0,Rue(A1(h,d))):void 0}}function eDe(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 ya(t,o=>{if(nDe(o)&&!tDe(e,o,i)&&Wue(o,s=>{var l;return r.has(R.checkDefined((l=ri(s,S_))==null?void 0:l.symbol))})){let s=cKe(sl(o),i);if(s)return s}return sl(o)})}function tDe(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&&Pue(t).some(s=>e.symbol.exports.has(ml(s)))}function Nue(e,t,r,i){switch(t.kind){case 272:sKe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:lKe(e,t,r,i);break;default:R.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function sKe(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 lKe(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 nDe(e){return R.assert(Yi(e.parent),"Node parent should be a SourceFile"),sDe(e)||Ml(e)}function cKe(e,t){return t?[dKe(e)]:uKe(e)}function dKe(e){let t=xm(e)?bo([L.createModifier(95)],E0(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)?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 uKe(e){return[e,...Pue(e).map(rDe)]}function rDe(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 Ye;case 244:return R.fail("Can't export an ExpressionStatement");default:return R.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function RO(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&&pKe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,o,s),sl(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=fKe(e.name,r);return i?eDe(i,e.type,Rue(t),e.parent.flags):void 0}default:return R.assertNever(e,`Unexpected import kind ${e.kind}`)}}function pKe(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 fKe(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 td(e)?ri(e.expression.left.name,Fe):ri(e.name,Fe)}function nY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return nY(ta(e.parent.parent,t=>Oi(t)||Xa(t)));default:return e}}function Lue(e,t,r,i,o){if(!tDe(e,t,o,r))if(o)td(t)||i.insertExportModifier(e,t);else{let s=Pue(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(rDe))}}function kue(e,t,r,i){let o=t.getTypeChecker();if(i){let s=w7(e,i.all,o),l=oi(e.fileName),d=$N(e.fileName);return Yr(l,gKe(yKe(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function mKe(e){let{file:t}=e,r=Jz(I1(e)),{statements:i}=t,o=Jl(i,h=>h.end>r.pos);if(o===-1)return;let s=i[o],l=lDe(t,s);l&&(o=l.start);let d=Jl(i,h=>h.end>=r.end,o);d!==-1&&r.end<=i[d].getStart()&&d--;let p=lDe(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 DO(e){let t=mKe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return WG(o,_Ke,(l,d)=>{for(let p=l;p!!(t.transformFlags&2))}function _Ke(e){return!hKe(e)&&!Em(e)}function hKe(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(wue(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)Oue(y,r,(E,S)=>{if(E.declarations){if(i.has(bd(E,r))){p.add(E);return}for(let A of E.declarations)if(iDe(A)){let N=s.get(E);s.set(E,(N===void 0||N)&&S)}else O7(A)&&vKe(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,iDe)?S:void 0}}function gKe(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 yKe(e,t){return ph(e,$z)||ph(t,$z)||"newFile"}function Oue(e,t,r){e.forEachChild(function i(o){if(Fe(o)&&!kg(o)){let s=t.getSymbolAtLocation(o);s&&r(s,_E(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 Fl(e.declarationList.declarations,r=>aDe(r.name,t));case 244:{let{expression:r}=e;return pr(r)&&Bl(r)===1?t(e):void 0}}}function iDe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return oDe(e);case 208:return Oi(e.parent.parent)&&oDe(e.parent.parent);default:return!1}}function oDe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&Su(e.initializer,!0)}function O7(e){return sDe(e)&&Yi(e.parent)||Oi(e)&&Yi(e.parent.parent.parent)}function vKe(e){return Oi(e)?e.parent.parent.parent:e.parent}function aDe(e,t){switch(e.kind){case 80:return t(ta(e.parent,r=>Oi(r)||Xa(r)));case 207:case 206:return Fl(e.elements,r=>jc(r)?void 0:aDe(r.name,t));default:return R.assertNever(e,`Unexpected name kind ${e.kind}`)}}function sDe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function bKe(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)nDe(y)&&$r(y,32)&&Wue(y,E=>{var S;let A=S_(E)?(S=d.get(E.symbol.escapedName))==null?void 0:S.declarations:void 0,N=Fl(A,D=>Yl(D)?D:Jd(D)?ri(D.parent.parent,Yl):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&&Rf(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)Yl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function lDe(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=>Vn(p)===e&&Hi(p)?p:void 0),l=Jl(e.statements,p=>p.end>=o.end),d=Jl(e.statements,p=>p.end>=i.end);return{toMove:s,start:d,end:l}}}function EKe(e,t,r){let i=new Set;for(let o of e.imports){let s=RN(o);if(Lc(s)&&s.importClause&&s.importClause.namedBindings&&zg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(bd(d,r))}if(qF(s.parent)&&nm(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)Oue(o,r,s=>{let l=bd(s,r);l.valueDeclaration&&Vn(l.valueDeclaration)===e&&i.add(l)});return i}var W7,rY,iY,SKe=bt({"src/services/refactors/moveToFile.ts"(){"use strict";jse(),ai(),GRe(),W7="Move to file",rY=ko(f.Move_to_file),iY={name:"Move to file",description:rY,kind:"refactor.move.file"},lg(W7,{kinds:[iY.kind],getAvailableActions:function(t,r){let i=DO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:W7,description:rY,actions:[iY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:W7,description:rY,actions:[{...iY,notApplicableReason:ko(f.Selection_is_not_a_valid_statement_or_statements)}]}]:Ye:Ye},getEditsForAction:function(t,r,i){R.assert(r===W7,"Wrong refactor invoked");let o=R.checkDefined(DO(t)),{host:s,program:l}=t;R.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return z0(d)||GI(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?QRe(ko(f.Cannot_move_statements_to_the_selected_file)):{edits:fr.ChangeTracker.with(t,h=>nKe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:QRe(ko(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function TKe(e){let{file:t,startPosition:r,program:i}=e;return dDe(t,r,i)?[{name:oY,description:Fue,actions:[zue]}]:Ye}function AKe(e){let{file:t,startPosition:r,program:i}=e,o=dDe(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(CR(A)))?0:1)}function y(E){R.assert(Fe(E.name));let S=st(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=wO(A);N.length&&gE(S,[{text:`* ${N.split(` `).map(D=>` * ${D}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function cDe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function dDe(e,t,r){let i=so(e,t),o=Fn(i,cDe);if(!o||Fs(o)&&o.body&&Zw(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=>Vn(E)===e)||!cDe(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 oY,Fue,zue,IKe=bt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";ai(),Ah(),oY="Convert overload list to single signature",Fue=ko(f.Convert_overload_list_to_single_signature),zue={name:oY,description:Fue,kind:"refactor.rewrite.function.overloadList"},lg(oY,{kinds:[zue.kind],getEditsForAction:AKe,getAvailableActions:TKe})}});function xKe(e){let{file:t,startPosition:r,triggerReason:i}=e,o=uDe(t,r,i==="invoked");return o?jg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:aY,description:Bue,actions:[{...F7,notApplicableReason:o.error},{...CO,notApplicableReason:o.error}]}]:Ye:[{name:aY,description:Bue,actions:[o.addBraces?F7:CO]}]:Ye}function RKe(e,t){let{file:r,startPosition:i}=e,o=uDe(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),gD(s,m,r,3,!0)}else if(t===CO.name&&l){let m=s||L.createVoidZero();p=i7(m)?L.createParenthesizedExpression(m):m,mO(l,p,r,3,!1),gD(l,p,r,3,!1),dM(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 uDe(e,t,r=!0,i){let o=so(e,t),s=Fp(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(PE(F7.kind,i)&&ht(s.body))return{func:s,addBraces:!0,expression:s.body};if(PE(CO.kind,i)&&Ho(s.body)&&s.body.statements.length===1){let l=Va(s.body.statements);if(Am(l)){let d=l.expression&&Ma(ER(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:d,returnStatement:l}}}}}var aY,Bue,F7,CO,DKe=bt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";ai(),Ah(),aY="Add or remove braces in an arrow function",Bue=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"},CO={name:"Remove braces from arrow function",description:ko(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},lg(aY,{kinds:[CO.kind],getEditsForAction:RKe,getAvailableActions:xKe})}}),CKe={},NKe=bt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";IKe(),DKe()}});function PKe(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=fDe(t,r,i);if(!s)return Ye;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(PE(PO.kind,o)){let m=l||zs(d)&&Oi(d.parent)?void 0:ko(f.Could_not_convert_to_named_function);m?h.push({...PO,notApplicableReason:m}):p.push(PO)}if(PE(NO.kind,o)){let m=!l&&zs(d)?void 0:ko(f.Could_not_convert_to_anonymous_function);m?h.push({...NO,notApplicableReason:m}):p.push(NO)}if(PE(MO.kind,o)){let m=ks(d)?void 0:ko(f.Could_not_convert_to_arrow_function);m?h.push({...MO,notApplicableReason:m}):p.push(MO)}return[{name:Gue,description:hDe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function MKe(e,t){let{file:r,startPosition:i,program:o}=e,s=fDe(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case NO.name:d.push(...OKe(e,l));break;case PO.name:let p=wKe(l);if(!p)return;d.push(...WKe(e,l,p));break;case MO.name:if(!ks(l))return;d.push(...FKe(e,l));break;default:return R.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function pDe(e){let t=!1;return e.forEachChild(function r(i){if(uD(i)){t=!0;return}!di(i)&&!Sc(i)&&!ks(i)&&Bo(i,r)}),t}function fDe(e,t,r){let i=so(e,t),o=r.getTypeChecker(),s=kKe(e,o,i.parent);if(s&&!pDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Fp(i);if(l&&(ks(l)||zs(l))&&!of(l.body,i)&&!pDe(l.body)&&!o.containsArgumentsReference(l))return ks(l)&&_De(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function LKe(e){return Oi(e)||Uc(e)&&e.declarations.length===1}function kKe(e,t,r){if(!LKe(r))return;let o=(Oi(r)?r:Va(r.declarations)).initializer;if(o&&(zs(o)||ks(o)&&!_De(e,t,o)))return o}function mDe(e){if(ht(e)){let t=L.createReturnStatement(e),r=e.getSourceFile();return st(t,e),Ep(t),mO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function wKe(e){let t=e.parent;if(!Oi(t)||!SN(t))return;let r=t.parent,i=r.parent;if(!(!Uc(r)||!Ml(i)||!Fe(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function OKe(e,t){let{file:r}=e,i=mDe(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 WKe(e,t,r){let{file:i}=e,o=mDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;sX(d);let h=tE(s)&32|cu(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 FKe(e,t){let{file:r}=e,o=t.body.statements[0],s;zKe(t.body,o)?(s=o.expression,Ep(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 zKe(e,t){return e.statements.length===1&&Am(t)&&!!t.expression}function _De(e,t,r){return!!r.name&&ws.Core.isSymbolReferencedInFile(r.name,t,e)}var Gue,hDe,NO,PO,MO,BKe=bt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";ai(),Ah(),Gue="Convert arrow function or function expression",hDe=ko(f.Convert_arrow_function_or_function_expression),NO={name:"Convert to anonymous function",description:ko(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},PO={name:"Convert to named function",description:ko(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},MO={name:"Convert to arrow function",description:ko(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},lg(Gue,{kinds:[NO.kind,PO.kind,MO.kind],getEditsForAction:MKe,getAvailableActions:PKe})}}),GKe={},VKe=bt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";BKe()}});function jKe(e){let{file:t,startPosition:r}=e;return lu(t)||!vDe(t,r,e.program.getTypeChecker())?Ye:[{name:B7,description:Hue,actions:[Kue]}]}function UKe(e,t){R.assert(t===B7,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=vDe(r,i,o.getTypeChecker());if(!d||!s)return;let p=KKe(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:fr.ChangeTracker.with(e,m=>HKe(r,o,l,m,d,p))}:{edits:[]}}function HKe(e,t,r,i,o,s){let l=s.signature,d=mn(TDe(o,t,r),m=>sl(m));if(l){let m=mn(TDe(l,t,r),y=>sl(y));h(l,m)}h(o,d);let p=JC(s.functionCalls,(m,y)=>tl(m.pos,y.pos));for(let m of p)if(m.arguments&&m.arguments.length){let y=sl(nJe(o,m.arguments),!0);i.replaceNodeRange(Vn(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 KKe(e,t,r){let i=iJe(e),o=Pl(e)?rJe(e):[],s=g0([...i,...o],Iy),l=t.getTypeChecker(),d=ya(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=Pl(e),w=mn(i,j=>Vue(j,l));for(let j of y){if(j.kind===ws.EntryKind.Span){S.valid=!1;continue}if(zo(w,m(j.node))){if(YKe(j.node.parent)){S.signature=j.node.parent;continue}let Y=yDe(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))||nM(j.node)){if(gDe(j))continue;let B=jue(j);if(B){S.declarations.push(B);continue}let ce=yDe(j);if(ce){S.functionCalls.push(ce);continue}}if(D&&zo(N,m(j.node))){if(gDe(j))continue;let B=jue(j);if(B){S.declarations.push(B);continue}let ce=JKe(j);if(ce){E.accessExpressions.push(ce);continue}if(Tc(e.parent)){let z=qKe(j);if(z){E.typeUsages.push(z);continue}}}S.valid=!1}return S}function m(y){let E=l.getSymbolAtLocation(y);return E&&oX(E,l)}}function Vue(e,t){let r=OO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Al(o)&6))return o}}function gDe(e){let t=e.node;if(Zu(t.parent)||vh(t.parent)||nd(t.parent)||Yv(t.parent)||Jd(t.parent)||Ll(t.parent))return t}function jue(e){if(Kd(e.node.parent))return e.node}function yDe(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=ri(r,E_);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,E_);if(l&&l.expression===o)return l}break;case 212:let s=ri(r,Ys);if(s&&s.parent&&s.argumentExpression===t){let l=ri(s.parent,E_);if(l&&l.expression===s)return l}break}}}function JKe(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,Ys);if(o&&o.expression===t)return o;break}}}function qKe(e){let t=e.node;if(YT(t)===2||_6(t.parent))return t}function vDe(e,t,r){let i=pD(e,t),o=cie(i);if(!XKe(i)&&o&&$Ke(o,r)&&of(o,i)&&!(o.body&&of(o.body,i)))return o}function XKe(e){let t=Fn(e,jx);if(t){let r=Fn(t,i=>!jx(i));return!!r&&Fs(r)}return!1}function YKe(e){return gh(e)&&(fu(e.parent)||yp(e.parent))}function $Ke(e,t){var r;if(!QKe(e.parameters,t))return!1;switch(e.kind){case 262:return bDe(e)&&z7(e,t);case 174:if(Ma(e.parent)){let i=Vue(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&z7(e,t)}return z7(e,t);case 176:return Tc(e.parent)?bDe(e.parent)&&z7(e,t):EDe(e.parent.parent)&&z7(e,t);case 218:case 219:return EDe(e.parent)}return!1}function z7(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function bDe(e){return e.name?!0:!!mD(e,90)}function QKe(e,t){return eJe(e)>=ADe&&oo(e,r=>ZKe(r,t))}function ZKe(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 EDe(e){return Oi(e)&&Yx(e)&&Fe(e.name)&&!e.type}function Uue(e){return e.length>0&&uD(e[0].name)}function eJe(e){return Uue(e)?e.length-1:e.length}function SDe(e){return Uue(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function tJe(e,t){return Fe(t)&&Yf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function nJe(e,t){let r=SDe(e.parameters),i=qh(Ja(r)),o=i?t.slice(0,r.length-1):t,s=mn(o,(d,p)=>{let h=sY(r[p]),m=tJe(h,d);return Ep(m.name),_c(m)&&Ep(m.initializer),ZT(d,m),m});if(i&&t.length>=r.length){let d=t.slice(r.length-1),p=L.createPropertyAssignment(sY(Ja(r)),L.createArrayLiteralExpression(d));s.push(p)}return L.createObjectLiteralExpression(s,!1)}function TDe(e,t,r){let i=t.getTypeChecker(),o=SDe(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 Ep(D.name),ZT(N.name,D.name),N.type&&(Ep(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,sY(N),qh(N)&&A(N)?L.createArrayLiteralExpression():N.initializer);return Ep(D),N.initializer&&D.initializer&&ZT(N.initializer,D.initializer),D}function y(N){let D=mn(N,E);return N_(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,sY(N),A(N)?L.createToken(58):N.questionToken,D);return Ep(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 pM(D,N,t,r)}function A(N){if(qh(N)){let D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function sY(e){return Yf(e.name)}function rJe(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[R.checkDefined(mD(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 iJe(e){switch(e.kind){case 262:return e.name?[e.name]:[R.checkDefined(mD(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 B7,ADe,Hue,Kue,oJe=bt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";ai(),Ah(),B7="Convert parameters to destructured object",ADe=1,Hue=ko(f.Convert_parameters_to_destructured_object),Kue={name:B7,description:Hue,kind:"refactor.rewrite.parameters.toDestructured"},lg(B7,{kinds:[Kue.kind],getEditsForAction:UKe,getAvailableActions:jKe})}}),aJe={},sJe=bt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";oJe()}});function lJe(e){let{file:t,startPosition:r}=e,i=IDe(t,r),o=Jue(i),s=Da(o),l={name:lY,description:cY,actions:[]};return s&&e.triggerReason!=="invoked"?Ye:$h(o)&&(s||pr(o)&&que(o).isValidConcatenation)?(l.actions.push(dY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...dY,notApplicableReason:ko(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):Ye}function IDe(e,t){let r=so(e,t),i=Jue(r);return!que(i).isValidConcatenation&&Fu(i.parent)&&pr(i.parent.parent)?i.parent.parent:r}function cJe(e,t){let{file:r,startPosition:i}=e,o=IDe(r,i);switch(t){case cY:return{edits:dJe(e,o)};default:return R.fail("invalid action")}}function dJe(e,t){let r=Jue(t),i=e.file,o=fJe(que(r),i),s=Qb(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 uJe(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!(pr(r.parent)&&uJe(r.parent));default:return"quit"}})||e}function que(e){let t=l=>{if(!pr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Da(l)||XI(l)};let{nodes:d,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Da(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 pJe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function xDe(e){let t=YI(e)||eH(e)?-2:-1;return pc(e).slice(1,t)}function RDe(e,t){let r=[],i="",o="";for(;e{DDe(K);let B=Y===E.templateSpans.length-1,ce=K.literal.text+(B?A:""),z=xDe(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 DDe(e){let t=e.getSourceFile();dM(e,e.expression,t,3,!1),mO(e.expression,e.expression,t,3,!1)}function mJe(e){return Fu(e)&&(DDe(e),e=e.expression),e}var lY,cY,dY,CDe,NDe,_Je=bt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";ai(),Ah(),lY="Convert to template string",cY=ko(f.Convert_to_template_string),dY={name:lY,description:cY,kind:"refactor.rewrite.string"},lg(lY,{kinds:[dY.kind],getEditsForAction:cJe,getAvailableActions:lJe}),CDe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){let s=i.shift();dM(e[s],o,t,3,!1),r(s,o)}}}}),hJe={},gJe=bt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";_Je()}});function yJe(e){let t=PDe(e,e.triggerReason==="invoked");return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:G7,description:fY,actions:[{...mY,notApplicableReason:t.error}]}]:Ye:[{name:G7,description:fY,actions:[mY]}]:Ye}function vJe(e,t){let r=PDe(e);return R.assert(r&&!jg(r),"Expected applicable refactor info"),{edits:fr.ChangeTracker.with(e,o=>RJe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function uY(e){return pr(e)||wR(e)}function bJe(e){return td(e)||Am(e)||Ml(e)}function pY(e){return uY(e)||bJe(e)}function PDe(e,t=!0){let{file:r,program:i}=e,o=I1(e),s=o.length===0;if(s&&!t)return;let l=so(r,o.start),d=Vz(r,o.start+o.length),p=uc(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),h=s?IJe(l):AJe(l,p),m=h&&pY(h)?xJe(h):void 0;if(!m)return{error:ko(f.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return wR(m)?EJe(m,y):SJe(m)}function EJe(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((kr(r)||Fe(r))&&Xue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(pr(r)){let o=MDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}}function SJe(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=MDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:ko(f.Could_not_find_matching_access_expressions)}}function MDe(e,t){let r=[];for(;pr(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)&&!kr(t)&&!Ys(t)))return TJe(e,t)?t:void 0}function TJe(e,t){for(;(ra(e)||kr(e)||Ys(e))&&LO(e)!==LO(t);)e=e.expression;for(;kr(e)&&kr(t)||Ys(e)&&Ys(t);){if(LO(e)!==LO(t))return!1;e=e.expression,t=t.expression}return Fe(e)&&Fe(t)&&e.getText()===t.getText()}function LO(e){if(Fe(e)||Qp(e))return e.getText();if(kr(e))return LO(e.name);if(Ys(e))return LO(e.argumentExpression)}function AJe(e,t){for(;e.parent;){if(pY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function IJe(e){for(;e.parent;){if(pY(e)&&!pY(e.parent))return e;e=e.parent}}function xJe(e){if(uY(e))return e;if(Ml(e)){let t=PI(e),r=t?.initializer;return r&&uY(r)?r:void 0}return e.expression&&uY(e.expression)?e.expression:void 0}function Yue(e){if(e=ms(e),pr(e))return Yue(e.left);if((kr(e)||Ys(e)||ra(e))&&!Hd(e))return e}function LDe(e,t,r){if(kr(t)||Ys(t)||ra(t)){let i=LDe(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(Ys(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function RJe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=LDe(t,s,l);h&&(kr(h)||Ys(h)||ra(h))&&(pr(d)?r.replaceNodeRange(e,p,s,h):wR(d)&&r.replaceNode(e,d,L.createBinaryExpression(h,L.createToken(61),d.whenFalse)))}var G7,fY,mY,DJe=bt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";ai(),Ah(),G7="Convert to optional chain expression",fY=ko(f.Convert_to_optional_chain_expression),mY={name:G7,description:fY,kind:"refactor.rewrite.expression.optionalChain"},lg(G7,{kinds:[mY.kind],getEditsForAction:vJe,getAvailableActions:yJe})}}),CJe={},NJe=bt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";DJe()}});function kDe(e){let t=e.kind,r=$ue(e.file,I1(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ye;let A=[];return PE(TD.kind,t)&&A.push({name:ED,description:TD.description,actions:[{...TD,notApplicableReason:S(r.errors)}]}),PE(SD.kind,t)&&A.push({name:ED,description:SD.description,actions:[{...SD,notApplicableReason:S(r.errors)}]}),A}let o=OJe(i,e);if(o===void 0)return Ye;let s=[],l=new Map,d,p=[],h=new Map,m,y=0;for(let{functionExtraction:A,constantExtraction:N}of o){if(PE(TD.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:TD.kind})):d||(d={description:D,name:`function_scope_${y}`,notApplicableReason:S(A.errors),kind:TD.kind})}if(PE(SD.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:SD.kind})):m||(m={description:D,name:`constant_scope_${y}`,notApplicableReason:S(N.errors),kind:SD.kind})}y++}let E=[];return s.length?E.push({name:ED,description:ko(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:ED,description:ko(f.Extract_function),actions:[d]}),p.length?E.push({name:ED,description:ko(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:ED,description:ko(f.Extract_constant),actions:[m]}),E.length?E:Ye;function S(A){let N=A[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function wDe(e,t){let i=$ue(e.file,I1(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"),kJe(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"),wJe(i,e,l)}R.fail("Unrecognized action name")}function $ue(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=ode(e,t.start),l=Vz(e,ql(t)),d=s&&l&&r?PJe(s,l,e):t,p=o?nqe(s):dO(s,e,d),h=o?p:dO(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(!WDe(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(Am(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:MJe(E),facts:m,thisNode:y}};function A(j){if(Am(j)){if(j.expression)return j.expression}else if(Ml(j)||Uc(j)){let K=Ml(j)?j.declarationList.declarations:j.declarations,Y=0,B;for(let ce of K)ce.initializer&&(Y++,B=ce.initializer);if(Y===1)return B}else if(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){Fp(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(!Xm(j.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Hi(j)&&!($h(j)&&ODe(j))&&!npe(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(uD(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: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,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 PJe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function MJe(e){if(Hi(e))return[e];if($h(e))return td(e.parent)?[e.parent]:e;if(npe(e))return e}function Que(e){return zs(e)?zV(e.body):Fs(e)||Yi(e)||M_(e)||di(e)}function LJe(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),Que(t)&&(r.push(t),t.kind===312))return r}function kJe(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(),VJe(o,i[r],s[r],d,e,t)}function wJe(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 jJe(p,i[r],s[r],e.facts,t)}function OJe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Zue(e,t);return r.map((l,d)=>{let p=WJe(l),h=FJe(l),m=Fs(l)?zJe(l):di(l)?BJe(l):GJe(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 Zue(e,t){let{file:r}=t,i=LJe(e),o=eqe(e,r),s=tqe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function WJe(e){return Fs(e)?"inner function":di(e)?"method":"function"}function FJe(e){return di(e)?"readonly field":"constant"}function zJe(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 BJe(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 GJe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function VJe(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=ar(t),A=L.createIdentifier(E),N,D=[],w=[],j;r.forEach((Ie,De)=>{let ke;if(!S){let be=p.getTypeOfSymbolAtLocation(Ie.symbol,Ie.node);be=p.getBaseTypeOfLiteralType(be),ke=Wd.typeToAutoImportableTypeNode(p,m,be,t,h,1)}let Et=L.createParameterDeclaration(void 0,void 0,De,void 0,ke);D.push(Et),Ie.usage===2&&(j||(j=[])).push(Ie),w.push(L.createIdentifier(De))});let Y=Oo(i.values(),Ie=>({type:Ie,declaration:HJe(Ie,d.startPosition)})).sort(KJe),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}=qJe(e,s,j,o,!!(l.facts&1));Ep(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=$Je(J,t);re?q.insertNodeBefore(d.file,re,me,!0):q.insertNodeAtEndOfScope(d.file,t,me),m.writeFixes(q);let pe=[],xe=JJe(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(sl(Ie.name),void 0,sl(Ie.type),fe)],Ie.parent.flags)))}else{let Ie=[],De=[],ke=s[0].parent.flags,Et=!1;for(let ze of s){Ie.push(L.createBindingElement(void 0,void 0,sl(ze.name)));let nt=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(ze)),t,1);De.push(L.createPropertySignature(void 0,ze.symbol.name,void 0,nt)),Et=Et||ze.type!==void 0,ke=ke&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)],ke)))}else if(s.length||j){if(s.length)for(let De of s){let ke=De.parent.flags;ke&2&&(ke=ke&-3|1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(De.symbol.name,void 0,ve(De.type))],ke)))}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,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=fO(ne,Ce,E,!1);return{renameFilename:Ce,renameLocation:Ge,edits:ne};function ve(Ie){if(Ie===void 0)return;let De=sl(Ie),ke=De;for(;MT(ke);)ke=ke.type;return Kv(ke)&&Gr(ke.types,Et=>Et.kind===157)?De:L.createUnionTypeNode([De,L.createKeywordTypeNode(157)])}}function jJe(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)&&!nE(e.name)?e.name.text:eA(di(t)?"newProperty":"newLocal",l),p=ar(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=XJe(ms(e),r);({variableType:h,initializer:m}=N(h,m)),Ep(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));tpe(e)&&(j=L.createJsxExpression(void 0,j));let K=e.pos,Y=QJe(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=UJe(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=ZJe(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=fO(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=ih(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,xm(e)?E0(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,xm(e)?E0(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 UJe(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 HJe(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=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&&Am(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(is(m).toString()),S=E?sl(E):Sn(m,h,void 0);return d=y,S}}}function XJe(e,t){return t.size?r(e):e;function r(i){let o=t.get(is(i).toString());return o?sl(o):Sn(i,r,void 0)}}function YJe(e){if(Fs(e)){let t=e.body;if(Ho(t))return t.statements}else{if(M_(e)||Yi(e))return e.statements;if(di(e))return e.members;}return Ye}function $Je(e,t){return Gr(YJe(t),r=>r.pos>=e&&Fs(r)&&!Pl(r))}function QJe(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 ZJe(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(WDe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&OR(i)?(R.assert(bP(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 eqe(e,t){return Yy(e.range)?{pos:Va(e.range).getStart(t),end:Ja(e.range).getEnd()}:e.range}function tqe(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)&&ar(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)&&!k_(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++),ij(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=rj(t[0],t[0].parent)?t[0]:fh(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&&mp(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=>ij(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(Kd(re)&&re.symbol&&y.push(re),Mc(re))z(re.left,2),z(re.right);else if(bre(re))z(re.operand,2);else if(kr(re)||Ys(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&&!tO(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&&ep(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 nqe(e){return Fn(e,t=>t.parent&&ODe(t)&&!pr(t.parent))}function ODe(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 WDe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function tpe(e){return npe(e)||(ag(e)||FT(e)||Y0(e))&&(ag(e.parent)||Y0(e.parent))}function npe(e){return Da(e)&&e.parent&&k_(e.parent)}var ED,SD,TD,Td,rpe,rqe=bt({"src/services/refactors/extractSymbol.ts"(){"use strict";ai(),Ah(),ED="Extract Symbol",SD={name:"Extract Constant",description:ko(f.Extract_constant),kind:"refactor.extract.constant"},TD={name:"Extract Function",description:ko(f.Extract_function),kind:"refactor.extract.function"},lg(ED,{kinds:[SD.kind,TD.kind],getEditsForAction:wDe,getAvailableActions:kDe}),(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={})),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||{})}}),FDe={};xa(FDe,{Messages:()=>Td,RangeFacts:()=>rpe,getRangeToExtract:()=>$ue,getRefactorActionsToExtractSymbol:()=>kDe,getRefactorEditsToExtractSymbol:()=>wDe});var iqe=bt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";rqe()}}),V7,_Y,hY,oqe=bt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";ai(),Ah(),V7="Generate 'get' and 'set' accessors",_Y=ko(f.Generate_get_and_set_accessors),hY={name:V7,description:_Y,kind:"refactor.rewrite.property.generateAccessors"},lg(V7,{kinds:[hY.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)+fO(o,s,l.text,To(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return Ye;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:_Y,actions:[{...hY,notApplicableReason:t.error}]}]:Ye:[{name:V7,description:_Y,actions:[hY]}]:Ye}})}}),aqe={},sqe=bt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";oqe()}});function lqe(e){let t=zDe(e);if(t&&!jg(t))return{renameFilename:void 0,renameLocation:void 0,edits:fr.ChangeTracker.with(e,i=>dqe(e.file,i,t.declaration,t.returnTypeNode))}}function cqe(e){let t=zDe(e);return t?jg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:j7,description:gY,actions:[{...U7,notApplicableReason:t.error}]}]:Ye:[{name:j7,description:gY,actions:[U7]}]:Ye}function dqe(e,t,r,i){let o=hs(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 zDe(e){if(ar(e.file)||!PE(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":uqe(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=pqe(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 uqe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function pqe(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,gY,U7,fqe=bt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";ai(),Ah(),j7="Infer function return type",gY=ko(f.Infer_function_return_type),U7={name:j7,description:gY,kind:"refactor.rewrite.function.returnType"},lg(j7,{kinds:[U7.kind],getEditsForAction:lqe,getAvailableActions:cqe})}}),mqe={},_qe=bt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";fqe()}}),R1={};xa(R1,{addExportToChanges:()=>Lue,addExports:()=>Cue,addNewFileToTsconfig:()=>Aue,addOrRemoveBracesToArrowFunction:()=>CKe,containsJsx:()=>wue,convertArrowFunctionOrFunctionExpression:()=>GKe,convertParamsToDestructuredObject:()=>aJe,convertStringOrTemplateLiteral:()=>hJe,convertToOptionalChainExpression:()=>CJe,createNewFileName:()=>kue,createOldFileImportsFromTargetFile:()=>Due,deleteMovedStatements:()=>L7,deleteUnusedImports:()=>Nue,deleteUnusedOldImports:()=>Iue,doChangeNamedToNamespaceOrDefault:()=>JRe,extractSymbol:()=>FDe,filterImport:()=>RO,forEachImportInStatement:()=>xO,generateGetAccessorAndSetAccessor:()=>aqe,getApplicableRefactors:()=>RHe,getEditsForRefactor:()=>DHe,getStatementsToMove:()=>DO,getTopLevelDeclarationStatement:()=>nY,getUsageInfo:()=>w7,inferFunctionReturnType:()=>mqe,isRefactorErrorInfo:()=>jg,isTopLevelDeclaration:()=>O7,makeImportOrRequire:()=>k7,moduleSpecifierFromImport:()=>IO,nameOfTopLevelDeclaration:()=>Mue,refactorKindBeginsWith:()=>PE,registerRefactor:()=>lg,updateImportsInOtherFiles:()=>xue});var Ah=bt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";GRe(),wHe(),BHe(),qHe(),XHe(),$He(),tKe(),SKe(),NKe(),VKe(),sJe(),gJe(),NJe(),iqe(),sqe(),_qe()}});function BDe(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 gqe(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),SP(p)&&(l=!1),Fe(p)&&!l&&!Eqe(p)&&!rP(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let y=yqe(m,YT(p));if(y!==void 0){let E=0;p.parent&&(Xa(p.parent)||lpe.get(p.parent.kind)===y)&&p.parent.name===p&&(E=1),y===6&&VDe(p)&&(y=9),y=vqe(s,p,y);let S=m.valueDeclaration;if(S){let A=tE(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)&&bqe(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 yqe(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=GDe(i)),i&&lpe.get(i.kind)}function vqe(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)||Sqe(t))return r===9?11:10}}return r}function bqe(e,t){return Xa(e)&&(e=GDe(e)),Oi(e)?(!Yi(e.parent.parent.parent)||Q0(e.parent))&&e.getSourceFile()===t:Sc(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function GDe(e){for(;;)if(Xa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function Eqe(e){let t=e.parent;return t&&(vh(t)||Zu(t)||Yv(t))}function Sqe(e){for(;VDe(e);)e=e.parent;return ra(e.parent)&&e.parent.expression===e}function VDe(e){return Au(e.parent)&&e.parent.right===e||kr(e.parent)&&e.parent.name===e}var ope,ape,spe,lpe,jDe=bt({"src/services/classifier2020.ts"(){"use strict";ai(),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 UDe(e,t,r,i){let o=o2(e)?new SY(e,t,r):e===80?new AY(80,t,r):e===81?new IY(81,t,r):new ppe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function Tqe(e,t){if(!o2(e.kind))return Ye;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(Aqe(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 yY(e,t){if(!e)return Ye;let r=LE.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(HDe))){let i=new Set;for(let o of e){let s=KDe(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 Ye;let r=LE.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(HDe))){let i=new Set;for(let o of e){let s=KDe(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(hD(),r))}}return r}function KDe(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=fc(t);return Fl(CN(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 Iqe(){return{getNodeConstructor:()=>SY,getTokenConstructor:()=>ppe,getIdentifierConstructor:()=>AY,getPrivateIdentifierConstructor:()=>IY,getSourceFileConstructor:()=>QDe,getSymbolConstructor:()=>XDe,getTypeConstructor:()=>YDe,getSignatureConstructor:()=>$De,getSourceMapSourceConstructor:()=>ZDe}}function kO(e){let t=!0;for(let i in e)if(Is(e,i)&&!JDe(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(Is(e,i)){let o=JDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function JDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function wO(e){return e?mn(e,t=>t.text).join(""):""}function J7(){return{target:1,jsx:1}}function vY(){return Wd.getSupportedErrorCodes()}function qDe(e,t,r){e.version=r,e.scriptSnapshot=t}function q7(e,t,r,i,o,s){let l=nw(e,fD(t),r,o,s);return qDe(l,t,i),l}function bY(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=ql(i.span)!==e.text.length?e.text.substr(ql(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=MH(e,l,i,o);return qDe(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 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 eCe(e),l,d,p=0,h=e.getCancellationToken?new nCe(e.getCancellationToken()):tCe,m=e.getCurrentDirectory();poe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(k){e.log&&e.log(k)}let E=hR(e),S=Pd(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()||J7(),It=e.hasInvalidatedResolutions||Hm,Dt=ea(e,e.hasInvalidatedLibResolutions)||Hm,Kt=ea(e,e.hasChangedAutomaticTypeDirectiveNames),En=(ie=e.getProjectReferences)==null?void 0:ie.call(e),wn,Bn={getSourceFile:Os,getSourceFileByPath:Ql,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=>Jm(Po,e),getDirectories:Po=>e.getDirectories?e.getDirectories(Po):[],readDirectory:(Po,ls,Bs,hl,dd)=>(R.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Po,ls,Bs,hl,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}=Ow(Bn,Po=>rl(Po,m,S),(...Po)=>gi.call(Bn,...Po));Bn.getSourceFile=xi,(H=e.setCompilerHost)==null||H.call(e,Bn);let nr={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(yJ(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=rl(Po,m,S),Bs=wn?.get(ls);if(Bs!==void 0)return Bs||void 0;let hl=e.getParsedCommandLine?e.getParsedCommandLine(Po):Hr(Po);return(wn||(wn=new Map)).set(ls,hl||!1),hl}function Hr(Po){let ls=Os(Po,100);if(ls)return ls.path=rl(Po,m,S),ls.resolvedPath=ls.path,ls.originalFileName=ls.fileName,sw(ls,nr,_o(oi(Po),m),void 0,_o(Po,m))}function Io(Po,ls,Bs){var hl;e.getParsedCommandLine?(hl=e.onReleaseParsedCommandLine)==null||hl.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,hl){return Ql(Po,rl(Po,m,S),ls,Bs,hl)}function Ql(Po,ls,Bs,hl,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=iX(Po,e),ud=e.getScriptVersion(Po);if(!dd){let Ts=l&&l.getSourceFileByPath(ls);if(Ts){if(sa===Ts.scriptKind||ho.has(Ts.resolvedPath))return t.updateDocumentWithKey(Po,ls,e,Wr,mo,ud,sa,Bs);t.releaseDocumentWithKey(Ts.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ts.scriptKind,Ts.impliedNodeFormat),ho.add(Ts.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(!If(l.getCompilerOptions()))return H.slice();let ue=l.getDeclarationDiagnostics(ie,h);return[...H,...ue]}function me(k){return D(),OX(N(k),l,h)}function ge(){return D(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function q(k,ie,H=Nf,ue){let We={...H,includeCompletionsForModuleExports:H.includeCompletionsForModuleExports||H.includeExternalModuleExports,includeCompletionsWithInsertText:H.includeCompletionsWithInsertText||H.includeInsertTextCompletions};return D(),L1.getCompletionsAtPosition(e,l,y,N(k),ie,We,H.triggerCharacter,H.triggerKind,h,ue&&wc.getFormatContext(ue,e),H.includeSymbol)}function J(k,ie,H,ue,We,Ne=Nf,It){return D(),L1.getCompletionEntryDetails(l,y,N(k),ie,{name:H,source:We,data:It},e,ue&&wc.getFormatContext(ue,e),Ne,h)}function re(k,ie,H,ue,We=Nf){return D(),L1.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=Cqe(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=>uO(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 K0(k.parent)&&k.pos===k.parent.pos?k.parent.expression:MR(k.parent)&&k.pos===k.parent.pos||$x(k.parent)&&k.parent.name===k||$m(k.parent)?k.parent:k}function fe(k,ie,H){switch(ie.kind){case 80:return!Iq(ie)&&!xq(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 $x(ie);default:return!1}}function ne(k,ie,H,ue){return D(),ND.getDefinitionAtPosition(l,N(k),ie,H,ue)}function he(k,ie){return D(),ND.getDefinitionAndBoundSpan(l,N(k),ie)}function Ce(k,ie){return D(),ND.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=fa(k);R.assert(H.some(It=>fa(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)&&(L_(It.parent)||X0(It.parent))&&mR(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=af(Ne,We??Nf),Kt=typeof We=="boolean"?We:We?.providePrefixAndSuffixTextForRename;return ke(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(),ke(zu(N(k),ie),ie,{use:ws.FindReferencesUse.References},ws.toReferenceEntry)}function ke(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 hRe(Ne,l.getTypeChecker(),h,k,ie,ue,We)}function nt(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}=Nf){D();let ue=N(k);return $O.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(dD(Ne)||tde(Ne))Ne=Ne.parent;else if(Dq(Ne))if(Ne.parent.parent.kind===267&&Ne.parent.parent.body===Ne.parent)Ne=Ne.parent.parent.name;else break;else break;return uc(Ne.getStart(),We.getEnd())}function ft(k,ie){let H=s.getCurrentSourceFile(k);return RY.spanInSourceFileAtLocation(H,ie)}function Zt(k){return bRe(s.getCurrentSourceFile(k),h)}function en(k){return ERe(s.getCurrentSourceFile(k),h)}function Dn(k,ie,H){return D(),(H||"original")==="2020"?BDe(l,h,N(k),ie):Ude(l.getTypeChecker(),h,N(k),l.getClassifiableNames(),ie)}function Jn(k,ie,H){return D(),(H||"original")==="original"?CX(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 NX(h,s.getCurrentSourceFile(k),ie)}function qt(k){let ie=s.getCurrentSourceFile(k);return TQ.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=pD(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):Ye}function Li(k,ie,H){let ue=qs(),We=kO(H),Ne=s.getCurrentSourceFile(k);y("getIndentationAtPosition: getCurrentSourceFile: "+(qs()-ue)),ue=qs();let It=wc.SmartIndenter.getIndentation(ie,Ne,We);return y("getIndentationAtPosition: computeIndentation : "+(qs()-ue)),It}function Eo(k,ie,H,ue){let We=s.getCurrentSourceFile(k);return wc.formatSelection(ie,H,We,wc.getFormatContext(kO(ue),e))}function Zn(k,ie){return wc.formatDocument(s.getCurrentSourceFile(k),wc.getFormatContext(kO(ie),e))}function jr(k,ie,H,ue){let We=s.getCurrentSourceFile(k),Ne=wc.getFormatContext(kO(ue),e);if(!Hy(We,ie))switch(H){case"{":return wc.formatOnOpeningCurly(ie,We,Ne);case"}":return wc.formatOnClosingCurly(ie,We,Ne);case";":return wc.formatOnSemicolon(ie,We,Ne);case` `:return wc.formatOnEnter(ie,We,Ne)}return[]}function Sr(k,ie,H,ue,We,Ne=Nf){D();let It=N(k),Dt=uc(ie,H),Kt=wc.getFormatContext(We,e);return ya(g0(ue,Iy,tl),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=Nf){D(),R.assert(k.type==="file");let We=N(k.fileName),Ne=wc.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=Nf){D(),R.assert(k.type==="file");let ue=N(k.fileName),We=wc.getFormatContext(ie,e),Ne=k.mode??(k.skipDestructiveCodeActions?"SortAndCombine":"All");return Cm.organizeImports(ue,We,e,l,H,Ne)}function Wt(k,ie,H,ue=Nf){return qde(j(),k,ie,e,wc.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=>rl(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?wc.getFormatContext(ue,e).options:void 0;return LE.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(S1(ue,ie))return!1;if(lde(ue,ie))return H===123;if(kq(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=Ac(ie,H);if(!ue)return;let We=ue.kind===32&&L_(ue.parent)?ue.parent.parent:qI(ue)&&ag(ue.parent)?ue.parent:void 0;if(We&&ct(We))return{newText:``};let Ne=ue.kind===32&&l1(ue.parent)?ue.parent.parent:qI(ue)&&Y0(ue.parent)?ue.parent:void 0;if(Ne&&Rt(Ne))return{newText:""}}function da(k,ie){let H=s.getCurrentSourceFile(k),ue=Ac(ie,H);if(!ue||ue.parent.kind===312)return;let We="[a-zA-Z0-9:\\-\\._$]*";if(Y0(ue.parent.parent)){let Ne=ue.parent.parent.openingFragment,It=ue.parent.parent.closingFragment;if(Kx(Ne)||Kx(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=>!!(L_(xi)||X0(xi)));if(!Ne)return;R.assert(L_(Ne)||X0(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 nr=It;nr<=Dt;nr++){let Wr=ue.text.substring(Ne[nr],ue.getLineEndOfPosition(Ne[nr])),ho=Bn.exec(Wr);ho&&(En=Math.min(En,ho.index),wn.set(nr.toString(),ho.index),Wr.substr(ho.index,xi.length)!==xi&&(Kt=H===void 0||H))}for(let nr=It;nr<=Dt;nr++){if(It!==Dt&&Ne[nr]===ie.end)continue;let Wr=wn.get(nr.toString());Wr!==void 0&&(gi?We.push(...kn(k,{pos:Ne[nr]+En,end:ue.getLineEndOfPosition(Ne[nr])},Kt,gi)):Kt?We.push({newText:xi,span:{length:0,start:Ne[nr]+En}}):ue.text.substr(Ne[nr]+Wr,xi.length)===xi&&We.push({newText:"",span:{length:xi.length,start:Ne[nr]+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?"{/*":"/*",nr=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||!bde(Dt,Bn,Hr===-1?ie.end:Bn+Hr),Bn=Hr===-1?ie.end+1:Bn+Hr+nr.length}}if(En||!Kt){((We=Hy(Ne,ie.pos))==null?void 0:We.kind)!==2&&bv(wn,ie.pos,tl),bv(wn,ie.end,tl);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-nr.length:0,Hr=Dt.substr(Ri,nr.length)===nr?nr.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 dt(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 ct({openingElement:k,closingElement:ie,parent:H}){return!SE(k.tagName,ie.tagName)||ag(H)&&SE(k.tagName,H.openingElement.tagName)&&ct(H)}function Rt({closingFragment:k,parent:ie}){return!!(k.flags&262144)||Y0(ie)&&Rt(ie)}function se(k,ie,H){let ue=s.getCurrentSourceFile(k),We=wc.getRangeOfEnclosingComment(ue,ie);return We&&(!H||We.kind===3)?tb(We):void 0}function we(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 nr;for(let ho=0;ho"("+Ne(Ri.text)+")").join("|")+")",nr=/(?:$|\*\/)/.source,Wr=/(?:.*?)/.source,ho="("+xi+Wr+")",Pi=gi+ho+nr;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 lt(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:wc.getFormatContext(ue,e),cancellationToken:h,preferences:H,triggerReason:We,kind:Ne}}function tt(k,ie,H){return{file:k,program:j(),host:e,span:ie,preferences:H,cancellationToken:h}}function Tt(k,ie){return xQ.getSmartSelectionRange(ie,s.getCurrentSourceFile(k))}function He(k,ie,H=Nf,ue,We,Ne){D();let It=N(k);return R1.getApplicableRefactors(G(It,ie,H,Nf,ue,We),Ne)}function pt(k,ie,H=Nf){D();let ue=N(k),We=R.checkDefined(l.getSourceFiles()),Ne=$N(k),It=DO(G(ue,ie,H,Nf)),Dt=wue(It?.all),Kt=to(We,En=>{let wn=$N(En.fileName);return!l?.isSourceFileFromExternalLibrary(ue)&&!(ue===N(En.fileName)||Ne===".ts"&&wn===".d.ts"||Ne===".d.ts"&&ao(rc(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=Nf,It){D();let Dt=N(k);return R1.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=D1.resolveCallHierarchyDeclaration(l,zu(N(k),ie));return H&&_X(H,ue=>D1.createCallHierarchyItem(l,ue))}function un(k,ie){D();let H=N(k),ue=hX(D1.resolveCallHierarchyDeclaration(l,ie===0?H:zu(H,ie)));return ue?D1.getIncomingCalls(l,ue,h):[]}function U(k,ie){D();let H=N(k),ue=hX(D1.resolveCallHierarchyDeclaration(l,ie===0?H:zu(H,ie)));return ue?D1.getOutgoingCalls(l,ue):[]}function Le(k,ie,H=Nf){D();let ue=N(k);return vQ.provideInlayHints(tt(ue,ie,H))}let Nt={dispose:ce,cleanupSemanticCache:B,getSyntacticDiagnostics:z,getSemanticDiagnostics:ee,getSuggestionDiagnostics:me,getCompilerOptionsDiagnostics:ge,getSyntacticClassifications:pn,getSemanticClassifications:Dn,getEncodedSyntacticClassifications:Yt,getEncodedSemanticClassifications:Jn,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:lt,getSmartSelectionRange:Tt,findRenameLocations:Ie,getNavigationBarItems:Zt,getNavigationTree:en,getOutliningSpans:qt,getTodoComments:we,getBraceMatchingAtPosition:uo,getIndentationAtPosition:Li,getFormattingEditsForRange:Eo,getFormattingEditsForDocument:Zn,getFormattingEditsAfterKeystroke:jr,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:$i,getJsxClosingTagAtPosition:Ao,getLinkedEditingRangeAtPosition:da,getSpanOfEnclosingComment:se,getCodeFixesAtPosition:Sr,getCombinedCodeFix:on,applyCodeActionCommand:In,organizeImports:$e,getEditsForFileRename:Wt,getEmitOutput:nt,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:dt,provideInlayHints:Le,getSupportedCodeFixes:vY};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:rCe.forEach(k=>Nt[k]=()=>{throw new Error(`LanguageService Operation: ${k} not allowed in LanguageServiceMode.Syntactic`)});break;default:R.assertNever(o)}return Nt}function EY(e){return e.nameTable||xqe(e),e.nameTable}function xqe(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Fe(i)&&!xq(i)&&i.escapedText||Qp(i)&&Rqe(i)){let o=MN(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),wp(i))for(let o of i.jsDoc)Bo(o,r)})}function Rqe(e){return kg(e)||e.parent.kind===283||Nqe(e)||X2(e)}function OO(e){let t=Dqe(e);return t&&(Ma(t.parent)||$0(t.parent))?t:void 0}function Dqe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return GV(e.parent.parent)?e.parent.parent:void 0;case 80:return GV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function Cqe(e,t){let r=OO(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=lO(e.name);if(!o)return Ye;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:Ye}let s=Ma(e.parent)||$0(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)):g0(l,Iy)}function Nqe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function dpe(e){if(gd)return Yr(oi(fa(gd.getExecutingFilePath())),$L(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var upe,SY,TY,XDe,ppe,AY,IY,YDe,$De,QDe,ZDe,eCe,tCe,nCe,xY,fpe,rCe,Pqe=bt({"src/services/services.ts"(){"use strict";ai(),vRe(),BRe(),Ah(),Xxe(),jDe(),upe="0.8",SY=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(!Xm(this.pos)&&!Xm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Vn(this)}getStart(e,t){return this.assertHasRealPosition(),sE(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=Tqe(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=Zs(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Bo(this,e,t)}},TY=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 Vn(this)}getStart(e,t){return sE(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||Ye}getFirstToken(){}getLastToken(){}forEachChild(){}},XDe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return bl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ye,!this.declarations&&uh(this)&&this.links.target&&uh(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(Mv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=K7(Vr(this.declarations,Mv),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=yY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Mv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=yY(Vr(this.declarations,Mv),t)),Nn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Py(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=yY(Vr(this.declarations,Py),t)),Nn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},ppe=class extends TY{constructor(e,t,r){super(t,r),this.kind=e}},AY=class extends TY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return vr(this)}},AY.prototype.kind=80,IY=class extends TY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return vr(this)}},IY.prototype.kind=81,YDe=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)}},$De=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()&&iP(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=K7(hI(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=yY(hI(this.declaration),this.checker))}},QDe=class extends SY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return MH(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=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=nF(s);return l&&($a(l)&&kr(l.expression)?l.expression.name.text:ic(l)?lO(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=Zs(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&&(Rf(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:Bl(s)!==0&&t(s);default:Bo(s,o)}}}},ZDe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return ys(this,e)}},eCe=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=iX(e,this.host),y=this.host.getScriptVersion(e),E;if(this.currentFileName!==e){let S={languageVersion:99,impliedNodeFormat:zw(rl(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:uk(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=bY(this.currentSourceFile,h,y,S)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=E),this.currentSourceFile}},tCe={isCancellationRequested:Hm,throwIfCancellationRequested:qa},nCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=or)==null||e.instant(or.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Px}},xY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=qs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=or)==null||e.instant(or.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Px}},fpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],rCe=[...fpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],doe(Iqe())}});function iCe(e,t,r){let i=[];r=GX(r,i);let o=So(e)?e:[e],s=Nw(void 0,void 0,L,r,o,t,!0);return s.diagnostics=bo(s.diagnostics,i),s}var Mqe=bt({"src/services/transform.ts"(){"use strict";ai()}});function Lqe(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=Ac(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)?uI(y.modifiers,Ed):void 0,A=S?Na(e.text,S.end):y.getStart(e);return uc(A,(E||y).getEnd())}function s(y,E){return o(y,cS(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(Ac(ne.pos,e,ne.parent),he.members.length?he.members[0]:he.getLastToken(e));case 263:let Ce=ne.parent;return l(Ac(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(C0(ne.parent))return o(ne);case 299:return m(Zs(ne.parent.statements));case 269:let he=ne.parent,Ce=Zs(he.clauses);return Ce?m(Zs(Ce.statements)):void 0;case 206:let Ge=ne.parent;return m(Zs(Ge.elements)||Ge);default:if(Ky(ne.parent)){let ve=ne.parent;return o(Zs(ve.properties)||ve)}return m(ne.parent)}}function ge(ne){switch(ne.parent.kind){case 207:let he=ne.parent;return o(Zs(he.elements)||he);default:if(Ky(ne.parent)){let Ce=ne.parent;return o(Zs(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 kqe=bt({"src/services/breakpoints.ts"(){"use strict";ai()}}),RY={};xa(RY,{spanInSourceFileAtLocation:()=>Lqe});var wqe=bt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";kqe()}});function Oqe(e){return(ks(e)||ed(e))&&ou(e)}function oCe(e){return jo(e)||Oi(e)}function WO(e){return(ks(e)||zs(e)||ed(e))&&oCe(e.parent)&&e===e.parent.initializer&&Fe(e.parent.name)&&(!!(Cy(e.parent)&2)||jo(e.parent))}function aCe(e){return Yi(e)||Xl(e)||Sc(e)||ks(e)||Tc(e)||ed(e)||Il(e)||Hl(e)||gh(e)||Zp(e)||gp(e)}function AD(e){return Yi(e)||Xl(e)&&Fe(e.name)||Sc(e)||Tc(e)||Il(e)||Hl(e)||gh(e)||Zp(e)||gp(e)||Oqe(e)||WO(e)}function sCe(e){return Yi(e)?e:ou(e)?e.name:WO(e)?e.parent.name:R.checkDefined(e.modifiers&&Gr(e.modifiers,lCe))}function lCe(e){return e.kind===90}function cCe(e,t){let r=sCe(t);return r&&e.getSymbolAtLocation(r)}function Wqe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Sc(t)||Tc(t))&&!ou(t)){let o=t.modifiers&&Gr(t.modifiers,lCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Il(t)){let o=t.getSourceFile(),s=Na(o.text,C_(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):Qp(r)?r.text:$a(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=Mw();i=yN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Fqe(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():M_(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(M_(e.parent)&&Fe(e.parent.parent.name))return e.parent.parent.name.getText()}}function dCe(e,t){if(t.body)return t;if(Pl(t))return tg(t.parent);if(Sc(t)||Hl(t)){let r=cCe(e,t);return r&&r.valueDeclaration&&Fs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function uCe(e,t){let r=cCe(e,t),i;if(r&&r.declarations){let o=RL(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)AD(p)&&((!d||d.parent!==p.parent||d.end!==p.pos)&&(i=Tn(i,p)),d=p)}return i}function DY(e,t){return Il(t)?t:Fs(t)?dCe(e,t)??uCe(e,t)??t:uCe(e,t)??t}function pCe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(AD(t))return DY(r,t);if(aCe(t)){let o=Fn(t,AD);return o&&DY(r,o)}if(kg(t)){if(AD(t.parent))return DY(r,t.parent);if(aCe(t.parent)){let o=Fn(t.parent,AD);return o&&DY(r,o)}return oCe(t.parent)&&t.parent.initializer&&WO(t.parent.initializer)?t.parent.initializer:void 0}if(Pl(t))return AD(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 mpe(e,t){let r=t.getSourceFile(),i=Wqe(e,t),o=Fqe(t),s=lS(t),l=iM(t),d=uc(Na(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=uc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:d,selectionSpan:p}}function zqe(e){return e!==void 0}function Bqe(e){if(e.kind===ws.EntryKind.Node){let{node:t}=e;if(Sq(t,!0,!0)||$ce(t,!0,!0)||Qce(t,!0,!0)||Zce(t,!0,!0)||dD(t)||Rq(t)){let r=t.getSourceFile();return{declaration:Fn(t,AD)||r,range:Vq(t,r)}}}}function fCe(e){return is(e.declaration)}function Gqe(e,t){return{from:e,fromSpans:t}}function Vqe(e,t){return Gqe(mpe(e,t[0].declaration),mn(t,r=>tb(r.range)))}function jqe(e,t,r){if(Yi(t)||Xl(t)||Il(t))return[];let i=sCe(t),o=Vr(ws.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:ws.FindReferencesUse.References},Bqe),zqe);return o?XC(o,fCe,s=>Vqe(e,s)):[]}function Uqe(e,t){function r(o){let s=J0(o)?o.tag:su(o)?o.tagName:Ls(o)||Il(o)?o:o.expression,l=pCe(e,s);if(l){let d=Vq(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(AD(o)){if(di(o))for(let s of o.members)s.name&&$a(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 Hqe(e,t){gn(e.statements,t)}function Kqe(e,t){!$r(e,128)&&e.body&&M_(e.body)&&gn(e.body.statements,t)}function Jqe(e,t,r){let i=dCe(e,t);i&&(gn(i.parameters,r),r(i.body))}function qqe(e,t){t(e.body)}function Xqe(e,t){gn(e.modifiers,t);let r=L0(e);r&&t(r.expression);for(let i of e.members)xm(i)&&gn(i.modifiers,t),jo(i)?t(i.initializer):Pl(i)&&i.body?(gn(i.parameters,t),t(i.body)):Il(i)&&t(i)}function Yqe(e,t){let r=[],i=Uqe(e,r);switch(t.kind){case 312:Hqe(t,i);break;case 267:Kqe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Jqe(e.getTypeChecker(),t,i);break;case 263:case 231:Xqe(t,i);break;case 175:qqe(t,i);break;default:R.assertNever(t)}return r}function $qe(e,t){return{to:e,fromSpans:t}}function Qqe(e,t){return $qe(mpe(e,t[0].declaration),mn(t,r=>tb(r.range)))}function Zqe(e,t){return t.flags&33554432||gh(t)?[]:XC(Yqe(e,t),fCe,r=>Qqe(e,r))}var eXe=bt({"src/services/callHierarchy.ts"(){"use strict";ai()}}),D1={};xa(D1,{createCallHierarchyItem:()=>mpe,getIncomingCalls:()=>jqe,getOutgoingCalls:()=>Zqe,resolveCallHierarchyDeclaration:()=>pCe});var tXe=bt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";eXe()}}),mCe={};xa(mCe,{TokenEncodingConsts:()=>ope,TokenModifier:()=>spe,TokenType:()=>ape,getEncodedSemanticClassifications:()=>ipe,getSemanticClassifications:()=>BDe});var nXe=bt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";jDe()}}),_pe={};xa(_pe,{v2020:()=>mCe});var rXe=bt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";nXe()}});function t_(e,t,r){return gpe(e,tA(r),t,void 0,void 0)}function ia(e,t,r,i,o,s){return gpe(e,tA(r),t,i,tA(o),s)}function hpe(e,t,r,i,o,s){return gpe(e,tA(r),t,i,o&&tA(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 ba(e){for(let t of e.errorCodes)ype=void 0,CY.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)R.assert(!NY.has(t)),NY.set(t,e)}function iXe(){return ype??(ype=Oo(CY.keys()))}function oXe(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 aXe(e){let t=hCe(e),r=CY.get(String(e.errorCode));return ya(r,i=>mn(i.getCodeActions(e),oXe(i,t)))}function sXe(e){return NY.get(ta(e.fixId,Co)).getAllCodeActions(e)}function ID(e,t){return{changes:e,commands:t}}function _Ce(e,t){return{fileName:e,textChanges:t}}function vs(e,t,r){let i=[],o=fr.ChangeTracker.with(e,s=>xD(e,t,l=>r(s,l,i)));return ID(o,i.length===0?void 0:i)}function xD(e,t,r){for(let i of hCe(e))zo(t,i.code)&&r(i)}function hCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...OX(t,e,r)]}var CY,NY,ype,lXe=bt({"src/services/codeFixProvider.ts"(){"use strict";ai(),CY=Xp(),NY=new Map}});function gCe(e,t,r){let i=Vk(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function yCe(e,t){if(!ar(e))return Fn(so(e,t),r=>Vk(r)||hae(r))}var PY,vpe,cXe=bt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";ai(),Ta(),PY="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],ba({errorCodes:vpe,getCodeActions:function(t){let r=yCe(t.sourceFile,t.span.start);if(r===void 0)return;let i=fr.ChangeTracker.with(t,o=>gCe(o,t.sourceFile,r));return[ia(PY,i,f.Add_unknown_conversion_for_non_overlapping_types,PY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[PY],getAllCodeActions:e=>vs(e,vpe,(t,r)=>{let i=yCe(r.file,r.start);i&&gCe(t,r.file,i)})})}}),dXe=bt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";ai(),Ta(),ba({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[t_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function vCe(e,t,r,i){let o=r(s=>uXe(s,e.sourceFile,t,i));return ia(MY,o,f.Add_async_modifier_to_containing_function,MY,f.Add_all_missing_async_modifiers)}function uXe(e,t,r,i){if(i&&i.has(is(r)))return;i?.add(is(r));let o=L.replaceModifiers(sl(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(Fv(r)|1024)));e.replaceNode(t,r,o)}function bCe(e,t){if(!t)return;let r=so(e,t.start);return Fn(r,o=>o.getStart(e)ql(t)?"quit":(zs(o)||Hl(o)||ks(o)||Sc(o))&&_D(t,Ru(o,e)))}function pXe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ty(r)&&Ty(i)&&_D({start:r,length:i},e)&&s===t&&!!o&>(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var MY,bpe,fXe=bt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";ai(),Ta(),MY="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],ba({fixIds:[MY],errorCodes:bpe,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Gr(s.getTypeChecker().getDiagnostics(r,o),pXe(l,i)),p=d&&d.relatedInformation&&Gr(d.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=bCe(r,p);return h?[vCe(t,h,y=>fr.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&&Gr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=bCe(t,s);return l?vCe(e,l,p=>(p(i),[]),r):void 0})}})}});function ECe(e,t,r,i,o){let s=mX(e,r);return s&&mXe(e,t,r,i,o)&&ACe(s)?s:void 0}function SCe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=_Xe(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 t_("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function TCe(e,t,r,i,o,s){let l=o(d=>Epe(d,r,e.sourceFile,i,t,s));return ia(LY,l,f.Add_await,LY,f.Fix_all_expressions_possibly_missing_await)}function mXe(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)&&_D({start:d,length:p},r)&&m===t&&!!h&>(h,y=>y.code===f.Did_you_forget_to_use_await.code))}function _Xe(e,t,r,i,o){let s=hXe(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=pE(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||$r(E,32)||!y||!ACe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(ws.Core.eachSymbolReferenceInFile(y,o,t,N=>p!==N&&!gXe(N,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function hXe(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 gXe(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(kY,s.code)||i.getTypeAtLocation(o).flags&1}function ACe(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 Epe(e,t,r,i,o,s){if(jk(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(va(h)))continue}let d=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(d)?L.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Spe&&kr(o.parent)){if(s&&Fe(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(va(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),ICe(e,o.parent.expression,r)}else if(zo(Tpe,t)&&E_(o.parent)){if(s&&Fe(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(va(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),ICe(e,o,r)}else{if(s&&Oi(o.parent)&&Fe(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!qb(s,va(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function ICe(e,t,r){let i=Ac(t.pos,r);i&&l7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var LY,Spe,Tpe,kY,yXe=bt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";ai(),Ta(),LY="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],kY=[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],ba({fixIds:[LY],errorCodes:kY,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=ECe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>fr.ChangeTracker.with(t,m);return DL([SCe(t,d,i,p,h),TCe(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,kY,(l,d)=>{let p=ECe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return SCe(e,p,d.code,o,h,s)||TCe(e,p,d.code,o,h,s)})}})}});function xCe(e,t,r,i,o){let s=so(t,r),l=Fn(s,h=>Vx(h.parent)?h.parent.initializer===h:vXe(h)?!1:"quit");if(l)return wY(e,l,t,o);let d=s.parent;if(pr(d)&&d.operatorToken.kind===64&&td(d.parent))return wY(e,s,t,o);if(pu(d)){let h=i.getTypeChecker();return oo(d.elements,m=>bXe(m,h))?wY(e,d,t,o):void 0}let p=Fn(s,h=>td(h.parent)?!0:EXe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return RCe(p,h)?wY(e,p,t,o):void 0}}function wY(e,t,r,i){(!i||qb(i,t))&&e.insertModifierBefore(r,87,t)}function vXe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function bXe(e,t){let r=Fe(e)?e:Mc(e,!0)&&Fe(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function EXe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function RCe(e,t){return pr(e)?e.operatorToken.kind===28?oo([e.left,e.right],r=>RCe(r,t)):e.operatorToken.kind===64&&Fe(e.left)&&!t.getSymbolAtLocation(e.left):!1}var OY,Ape,SXe=bt({"src/services/codefixes/addMissingConst.ts"(){"use strict";ai(),Ta(),OY="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],ba({errorCodes:Ape,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>xCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ia(OY,r,f.Add_const_to_unresolved_variable,OY,f.Add_const_to_all_unresolved_variables)]},fixIds:[OY],getAllCodeActions:e=>{let t=new Set;return vs(e,Ape,(r,i)=>xCe(r,i.file,i.start,e.program,t))}})}});function DCe(e,t,r,i){let o=so(t,r);if(!Fe(o))return;let s=o.parent;s.kind===172&&(!i||qb(i,s))&&e.insertModifierBefore(t,138,s)}var WY,Ipe,TXe=bt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";ai(),Ta(),WY="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],ba({errorCodes:Ipe,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>DCe(i,t.sourceFile,t.span.start));if(r.length>0)return[ia(WY,r,f.Prefix_with_declare,WY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[WY],getAllCodeActions:e=>{let t=new Set;return vs(e,Ipe,(r,i)=>DCe(r,i.file,i.start,t))}})}});function CCe(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 FY,xpe,AXe=bt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";ai(),Ta(),FY="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],ba({errorCodes:xpe,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>CCe(i,t.sourceFile,t.span.start));return[ia(FY,r,f.Call_decorator_expression,FY,f.Add_to_all_uncalled_decorators)]},fixIds:[FY],getAllCodeActions:e=>vs(e,xpe,(t,r)=>CCe(t,r.file,r.start))})}});function NCe(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=PCe(t,o);for(;p;)d=L.createArrayTypeNode(d),l=p.getEnd(),p=PCe(t,p);let h=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Bk(d)?L.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,Sf(o.getStart(t),l),h)}function PCe(e,t){let r=cS(t.name,t.parent,e);if(r&&r.kind===23&&H0(r.parent)&&To(r.parent.parent))return r.parent.parent}var zY,Rpe,IXe=bt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";ai(),Ta(),zY="addNameToNamelessParameter",Rpe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],ba({errorCodes:Rpe,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>NCe(i,t.sourceFile,t.span.start));return[ia(zY,r,f.Add_parameter_name,zY,f.Add_names_to_all_parameters_without_names)]},fixIds:[zY],getAllCodeActions:e=>vs(e,Rpe,(t,r)=>NCe(t,r.file,r.start))})}});function xXe(e,t,r){var i,o;let s=MCe(mX(e,t),r);if(!s)return Ye;let{source:l,target:d}=s,p=RXe(l,d,r)?r.getTypeAtLocation(d.expression):r.getTypeAtLocation(d);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Vn(h).fileName.match(/\.d\.ts$/))?Ye:r.getExactOptionalProperties(p)}function RXe(e,t,r){return kr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function MCe(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||!TI(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(_c(e.parent)&&Fe(e.parent.name)||ep(e.parent)){let i=MCe(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:_c(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function DXe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(hp(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 Dpe,LCe,CXe=bt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";ai(),Ta(),Dpe="addOptionalPropertyUndefined",LCe=[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],ba({errorCodes:LCe,getCodeActions(e){let t=e.program.getTypeChecker(),r=xXe(e.sourceFile,e.span,t);if(!r.length)return;let i=fr.ChangeTracker.with(e,o=>DXe(o,r));return[t_(Dpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Dpe]})}});function kCe(e,t){let r=so(e,t);return ri(To(r.parent)?r.parent.parent:r.parent,wCe)}function wCe(e){return NXe(e)&&OCe(e)}function OCe(e){return Fs(e)?e.parameters.some(OCe)||!e.type&&!!n2(e):!e.type&&!!iE(e)}function WCe(e,t,r){if(Fs(r)&&(n2(r)||r.parameters.some(i=>!!iE(i)))){if(!r.typeParameters){let o=p6(r);o.length&&e.insertTypeParameters(t,r,o)}let i=zs(r)&&!hs(r,21,t);i&&e.insertNodeBefore(t,Va(r.parameters),L.createToken(21));for(let o of r.parameters)if(!o.type){let s=iE(o);s&&e.tryInsertTypeAnnotation(t,o,Qe(s,mS,ji))}if(i&&e.insertNodeAfter(t,Ja(r.parameters),L.createToken(22)),!r.type){let o=n2(r);o&&e.tryInsertTypeAnnotation(t,r,Qe(o,mS,ji))}}else{let i=R.checkDefined(iE(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,mS,ji))}}function NXe(e){return Fs(e)||e.kind===260||e.kind===171||e.kind===172}function mS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Ye);case 323:return MXe(e);case 322:return mS(e.type);case 321:return LXe(e);case 325:return kXe(e);case 324:return wXe(e);case 183:return WXe(e);case 329:return PXe(e);default:let t=Sn(e,mS,void 0);return dr(t,1),t}}function PXe(e){let t=L.createTypeLiteralNode(mn(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Fe(r.name)?r.name:r.name.right,gk(r)?L.createToken(58):void 0,r.typeExpression&&Qe(r.typeExpression.type,mS,ji)||L.createKeywordTypeNode(133))));return dr(t,1),t}function MXe(e){return L.createUnionTypeNode([Qe(e.type,mS,ji),L.createTypeReferenceNode("undefined",Ye)])}function LXe(e){return L.createUnionTypeNode([Qe(e.type,mS,ji),L.createTypeReferenceNode("null",Ye)])}function kXe(e){return L.createArrayTypeNode(Qe(e.type,mS,ji))}function wXe(e){return L.createFunctionTypeNode(Ye,e.parameters.map(OXe),e.type??L.createKeywordTypeNode(133))}function OXe(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,mS,ji),e.initializer)}function WXe(e){let t=e.typeName,r=e.typeArguments;if(Fe(e.typeName)){if(JF(e))return FXe(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",Ye)]):r=zn(e.typeArguments,mS,ji)}return L.createTypeReferenceNode(t,r)}function FXe(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 BY,Cpe,zXe=bt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";ai(),Ta(),BY="annotateWithTypeFromJSDoc",Cpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],ba({errorCodes:Cpe,getCodeActions(e){let t=kCe(e.sourceFile,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,i=>WCe(i,e.sourceFile,t));return[ia(BY,r,f.Annotate_with_type_from_JSDoc,BY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[BY],getAllCodeActions:e=>vs(e,Cpe,(t,r)=>{let i=kCe(r.file,r.start);i&&WCe(t,r.file,i)})})}});function FCe(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(Sc(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&&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&&pr(B)&&Ma(B.right)&>(B.right.properties,VY)||e.delete(t,N.valueDeclaration.parent);return}A(N,void 0,E)}),E;function S(N,D){return Ls(N)?kr(N)&&VY(N)?!0:Yo(D):oo(N.properties,w=>!!(Hl(w)||aF(w)||_c(w)&&ks(w.initializer)&&w.name||VY(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)===bl(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=af(t,o),ge=BXe(j,s,me);ge&&ce(w,Y,ge);return}else if(Ma(Y)){gn(Y.properties,me=>{(Hl(me)||aF(me))&&w.push(me),_c(me)&&ks(me.initializer)&&ce(w,me.initializer,me.name),VY(me)});return}else{if(lu(t)||!kr(j))return;let me=L.createPropertyDeclaration(D,j.name,void 0,void 0,Y);gD(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,GY(ge,134)),re=L.createMethodDeclaration(J,void 0,q,void 0,void 0,ge.parameters,void 0,ge.body);gD(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,GY(ge,134)),xe=L.createMethodDeclaration(pe,void 0,q,void 0,void 0,ge.parameters,void 0,re);gD(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=GY(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=GY(y,95);return L.createClassDeclaration(S,y.name,void 0,void 0,E)}}function GY(e,t){return xm(e)?Vr(e.modifiers,r=>r.kind===t):void 0}function VY(e){return e.name?!!(Fe(e.name)&&e.name.text==="constructor"):!1}function BXe(e,t,r){if(kr(e))return e.name;let i=e.argumentExpression;if(_p(i))return i;if(ss(i))return $p(i.text,rs(t))?L.createIdentifier(i.text):XI(i)?L.createStringLiteral(i.text,r===0):i}var jY,Npe,GXe=bt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";ai(),Ta(),jY="convertFunctionToEs6Class",Npe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],ba({errorCodes:Npe,getCodeActions(e){let t=fr.ChangeTracker.with(e,r=>FCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ia(jY,t,f.Convert_function_to_an_ES2015_class,jY,f.Convert_all_constructor_functions_to_classes)]},fixIds:[jY],getAllCodeActions:e=>vs(e,Npe,(t,r)=>FCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function zCe(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(Fp(so(t,r)),zX),!s)return;let l=new Map,d=ar(s),p=jXe(s,i),h=UXe(s,i,l);if(!WX(h,i))return;let m=h.body&&Ho(h.body)?VXe(h.body,i):Ye,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(!m.length)return;let E=Na(t.text,C_(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let S of m)if(Bo(S,function A(N){if(ra(N)){let D=RD(N,N,y,!1);if(C1())return!0;e.replaceNodeWithNodes(t,S,D)}else if(!Yo(N)&&(Bo(N,A),C1()))return!0}),C1())return}function VXe(e,t){let r=[];return D0(e,i=>{I7(i,t)&&r.push(i)}),r}function jXe(e,t){if(!e.body)return new Set;let r=new Set;return Bo(e.body,function i(o){FO(o,t,"then")?(r.add(is(o)),gn(o.arguments,i)):FO(o,t,"catch")||FO(o,t,"finally")?(r.add(is(o)),Bo(o,i)):GCe(o,t)?r.add(is(o)):Bo(o,i)}),r}function FO(e,t,r){if(!ra(e))return!1;let o=$w(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function BCe(e,t){return(Lr(e)&4)!==0&&e.target===t}function UY(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(BCe(i,r.getPromiseType())||BCe(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 GCe(e,t){return ht(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function UXe(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=JCe(p,t),m=va(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=VCe(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=VCe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(y,d)}else{let S=sl(l);r.set(m,gM(S)),o.add(y,d)}}}}),pO(e,!0,s=>{if(Xa(s)&&Fe(s.name)&&nm(s.parent)){let l=t.getSymbolAtLocation(s.name),d=l&&i.get(String(va(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(va(l)));if(d)return L.createIdentifier(d.text)}})}function VCe(e,t){let r=(t.get(e.text)||Ye).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return gM(i)}function C1(){return!$7}function ME(){return $7=!1,Ye}function RD(e,t,r,i,o){if(FO(t,r.checker,"then"))return JXe(t,xy(t.arguments,0),xy(t.arguments,1),r,i,o);if(FO(t,r.checker,"catch"))return HCe(t,xy(t.arguments,0),r,i,o);if(FO(t,r.checker,"finally"))return KXe(t,xy(t.arguments,0),r,i,o);if(kr(t))return RD(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(R.assertNode(Nl(t).parent,kr),qXe(e,t,r,i,o)):ME()}function HY({checker:e},t){if(t.kind===106)return!0;if(Fe(t)&&!ol(t)&&vr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function HXe(e){let t=L.createUniqueName(e.identifier.text,16);return gM(t)}function jCe(e,t,r){let i;return r&&!BO(e,t)&&(zO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=HXe(r);t.synthNamesMap.set(s,l)}})):i=gM(L.createUniqueName("result",16),r.types),kpe(i)),i}function UCe(e,t,r,i,o){let s=[],l;if(i&&!BO(e,t)){l=sl(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&&$Xe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(sl($Ce(o)),void 0,void 0,l)],2))),s}function KXe(e,t,r,i,o){if(!t||HY(r,t))return RD(e,e.expression.expression,r,i,o);let s=jCe(e,r,o),l=RD(e,e.expression.expression,r,!0,s);if(C1())return ME();let d=Mpe(t,i,void 0,void 0,e,r);if(C1())return ME();let p=L.createBlock(l),h=L.createBlock(d),m=L.createTryStatement(p,void 0,h);return UCe(e,r,m,s,o)}function HCe(e,t,r,i,o){if(!t||HY(r,t))return RD(e,e.expression.expression,r,i,o);let s=XCe(t,r),l=jCe(e,r,o),d=RD(e,e.expression.expression,r,!0,l);if(C1())return ME();let p=Mpe(t,i,l,s,e,r);if(C1())return ME();let h=L.createBlock(d),m=L.createCatchClause(s&&sl(Y7(s)),L.createBlock(p)),y=L.createTryStatement(h,m,void 0);return UCe(e,r,y,l,o)}function JXe(e,t,r,i,o,s){if(!t||HY(i,t))return HCe(e,r,i,o,s);if(r&&!HY(i,r))return ME();let l=XCe(t,i),d=RD(e.expression.expression,e.expression.expression,i,!0,l);if(C1())return ME();let p=Mpe(t,o,s,l,e,i);return C1()?ME():bo(d,p)}function qXe(e,t,r,i,o){if(BO(e,r)){let s=sl(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return KY(o,L.createAwaitExpression(t),void 0)}function KY(e,t,r){return!e||YCe(e)?[L.createExpressionStatement(t)]:zO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(sl(Lpe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(sl(Y7(e)),void 0,r,t)],2))]}function Ppe(e,t){if(t&&e){let r=L.createUniqueName("result",16);return[...KY(gM(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(sl(e),void 0,zO(i)?[Lpe(i)]:[]);if(BO(o,s))return Ppe(d,UY(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return ME();let m=h[0].getReturnType(),y=KY(r,L.createAwaitExpression(d),UY(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=JCe(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(Am(D))if(N=!0,I7(D,s.checker))A=A.concat(qCe(s,D,t,r));else{let w=S&&D.expression?KCe(s.checker,S,D.expression):D.expression;A.push(...Ppe(w,UY(o,e,s.checker)))}else{if(t&&D0(D,Ay))return ME();A.push(D)}return BO(o,s)?A.map(D=>sl(D)):XXe(A,r,s,N)}else{let A=FX(E,s.checker)?qCe(s,L.createReturnStatement(E),t,r):Ye;if(A.length>0)return A;if(S){let N=KCe(s.checker,S,E);if(BO(o,s))return Ppe(N,UY(o,e,s.checker));{let D=KY(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(S)||S),D}}else return ME()}}default:return ME()}return Ye}function KCe(e,t,r){let i=sl(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function JCe(e,t){let r=t.getSignaturesOfType(e,0);return Zs(r)}function XXe(e,t,r,i){let o=[];for(let s of e)if(Am(s)){if(s.expression){let l=GCe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):zO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(Lpe(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Y7(t),void 0,void 0,l)],2)))}}else o.push(sl(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 qCe(e,t,r,i){let o=[];return Bo(t,function s(l){if(ra(l)){let d=RD(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else Yo(l)||Bo(l,s)}),o}function XCe(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=ya(p.elements,m=>jc(m)?[]:[o(m.name)]);return YXe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(va(m).toString())||gM(p,r)}function l(p){var h;return((h=ri(p,S_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function d(p){return p.original?p.original:p}}function YCe(e){return e?zO(e)?!e.identifier.text:oo(e.elements,YCe):!0}function gM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function YXe(e,t=Ye,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Lpe(e){return e.hasBeenReferenced=!0,e.identifier}function Y7(e){return zO(e)?kpe(e):$Ce(e)}function $Ce(e){for(let t of e.elements)Y7(t);return e.bindingPattern}function kpe(e){return e.hasBeenDeclared=!0,e.identifier}function zO(e){return e.kind===0}function $Xe(e){return e.kind===1}function BO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(is(e.original))}var JY,wpe,$7,QXe=bt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";ai(),Ta(),JY="convertToAsyncFunction",wpe=[f.This_may_be_converted_to_an_async_function.code],$7=!0,ba({errorCodes:wpe,getCodeActions(e){$7=!0;let t=fr.ChangeTracker.with(e,r=>zCe(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,wpe,(t,r)=>zCe(t,r.file,r.start,e.program.getTypeChecker()))})}});function ZXe(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=RN(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(sl(p),"default"));break}}}function eYe(e,t,r,i,o){let s={original:fYe(e),additional:new Set},l=tYe(e,t,s);nYe(e,l,r);let d=!1,p;for(let h of Vr(e.statements,Ml)){let m=ZCe(e,h,r,t,s,i,o);m&&EF(m,p??(p=new Map))}for(let h of Vr(e.statements,m=>!Ml(m))){let m=rYe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function tYe(e,t,r){let i=new Map;return QCe(e,o=>{let{text:s}=o.name;!i.has(s)&&(Nj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,qY(`_${s}`,r))}),i}function nYe(e,t,r){QCe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function QCe(e,t){e.forEachChild(function r(i){if(kr(i)&&nS(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 rYe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return ZCe(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&&oYe(e,r,h,i,l,d)}}}default:return!1}}function ZCe(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(nS(e,E))return p=!0,yM([]);if(Su(E,!0))return p=!0,uYe(y,E.arguments[0],i,o,s,l);if(kr(E)&&Su(E.expression,!0))return p=!0,iYe(y,E.name.text,E.expression.arguments[0],o,l)}return yM([L.createVariableStatement(void 0,L.createVariableDeclarationList([m],d.flags))])});if(p){r.replaceNodeWithNodes(e,t,ya(h,y=>y.newImports));let m;return gn(h,y=>{y.useSitesToUnqualify&&EF(y.useSitesToUnqualify,m??(m=new Map))}),m}}function iYe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=qY(t,i);return yM([rNe(s,t,r,o),XY(void 0,e,L.createIdentifier(s))])}case 80:return yM([rNe(e.text,t,r,o)]);default:return R.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function oYe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!kr(l))return!1;if(nS(e,l))if(nS(e,d))i.delete(e,r.parent);else{let p=Ma(d)?aYe(d,s):Su(d,!0)?lYe(d.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,Sf(l.getStart(e),d.pos),"export default"),!0)}else nS(e,l.expression)&&sYe(e,r,i,o);return!1}function aYe(e,t){let r=wG(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Fe(i.name)?dYe(i.name.text,i.initializer,t):void 0;case 174:return Fe(i.name)?nNe(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 sYe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[XY(void 0,s,t.right),Fpe([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else cYe(t,e,r)}function lYe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:RW;return o.has("export=")?[[Ope(r)],!0]:o.has("default")?o.size>1?[[eNe(r),Ope(r)],!0]:[[Ope(r)],!0]:[[eNe(r)],!1]}function eNe(e){return Fpe(void 0,e)}function Ope(e){return Fpe([L.createExportSpecifier(!1,void 0,"default")],e)}function cYe({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=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 dYe(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 nNe(e,i,t,r);case 231:return _Ye(e,i,t,r);default:return o()}function o(){return XY(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)?aX(e,!0,r):pO(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function uYe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=wG(e.elements,d=>d.dotDotDotToken||d.initializer||d.propertyName&&!Fe(d.propertyName)||!Fe(d.name)?void 0:iNe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return yM([Jy(void 0,l,t,s)])}case 207:{let l=qY($pe(t.text,o),i);return yM([Jy(L.createIdentifier(l),void 0,t,s),XY(void 0,sl(e),L.createIdentifier(l))])}case 80:return pYe(e,t,r,i,s);default:return R.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function pYe(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=qY(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(jC(l.entries(),([m,y])=>L.createImportSpecifier(!1,m===y?void 0:L.createIdentifier(m),L.createIdentifier(y))));return h||(d=!0),yM([Jy(d?sl(e):void 0,h,t,o)],p)}function qY(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function fYe(e){let t=Xp();return tNe(e,r=>t.add(r.text,r)),t}function tNe(e,t){Fe(e)&&mYe(e)&&t(e),e.forEachChild(r=>tNe(r,t))}function mYe(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 nNe(e,t,r,i){return L.createFunctionDeclaration(bo(t,dS(r.modifiers)),sl(r.asteriskToken),e,dS(r.typeParameters),dS(r.parameters),sl(r.type),L.converters.convertToFunctionBlock(Wpe(r.body,i)))}function _Ye(e,t,r,i){return L.createClassDeclaration(bo(t,dS(r.modifiers)),e,dS(r.typeParameters),dS(r.heritageClauses),Wpe(r.members,i))}function rNe(e,t,r,i){return t==="default"?Jy(L.createIdentifier(e),void 0,r,i):Jy(void 0,[iNe(t,e)],r,i)}function iNe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function XY(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 yM(e,t){return{newImports:e,useSitesToUnqualify:t}}var hYe=bt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";ai(),Ta(),ba({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(eYe(t,r.getTypeChecker(),s,rs(r.getCompilerOptions()),af(t,i)))for(let d of r.getSourceFiles())ZXe(d,t,r,s,af(d,i))});return[t_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function oNe(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 aNe(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 YY,zpe,gYe=bt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";ai(),Ta(),YY="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],ba({errorCodes:zpe,getCodeActions(e){let t=oNe(e.sourceFile,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,o=>aNe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ia(YY,r,[f.Rewrite_as_the_indexed_access_type_0,i],YY,f.Rewrite_all_as_indexed_access_types)]},fixIds:[YY],getAllCodeActions:e=>vs(e,zpe,(t,r)=>{let i=oNe(r.file,r.start);i&&aNe(t,r.file,i)})})}});function sNe(e,t){return ri(so(t,e.start).parent,Jd)}function lNe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=yYe(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 yYe(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 Vr(r.elements,o=>{var s;return o===e||((s=Fde(o,i))==null?void 0:s.code)===$Y[0]})}var $Y,QY,vYe=bt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";ai(),Ta(),$Y=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],QY="convertToTypeOnlyExport",ba({errorCodes:$Y,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>lNe(i,sNe(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,$Y,(i,o)=>{let s=sNe(o,t.sourceFile);s&&Tm(r,is(s.parent.parent))&&lNe(i,s,t)})}})}});function cNe(e,t){let{parent:r}=so(e,t);return Zu(r)||Lc(r)&&r.importClause?r:void 0}function dNe(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=>!_E(d)))return!1;return!0}function Q7(e,t,r){var i;if(Zu(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(dS(r.modifiers,!0),L.createImportClause(!0,sl(o.name,!0),void 0),sl(r.moduleSpecifier,!0),sl(r.attributes,!0)),L.createImportDeclaration(dS(r.modifiers,!0),L.createImportClause(!0,void 0,sl(o.namedBindings,!0)),sl(r.moduleSpecifier,!0),sl(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(o.namedBindings,Pc(o.namedBindings.elements,d=>L.updateImportSpecifier(d,!1,d.propertyName,d.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var Bpe,Z7,bYe=bt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";ai(),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],Z7="convertToTypeOnlyImport",ba({errorCodes:Bpe,getCodeActions:function(t){var r;let i=cNe(t.sourceFile,t.span.start);if(i){let o=fr.ChangeTracker.with(t,d=>Q7(d,t.sourceFile,i)),s=i.kind===276&&dNe(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)?[t_(Z7,s,f.Use_import_type),l]:[l]}},fixIds:[Z7],getAllCodeActions:function(t){let r=new Set;return vs(t,Bpe,(i,o)=>{let s=cNe(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)&&dNe(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 uNe(e,t,r,i,o=!1){if(!GT(t))return;let s=SYe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=EYe(t),h=l.getStart(),m="";!d&&l.comment&&(h=pNe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&>(d)?(h=t.getStart(),m=""):(h=pNe(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 EYe(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 SYe(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 TYe(i,r);if(r.kind===316)return AYe(i,r)}}function TYe(e,t){let r=fNe(t);if(gt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function AYe(e,t){let r=sl(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function fNe(e){let t=e.jsDocPropertyTags;return gt(t)?to(t,i=>{var o;let s=IYe(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&BT(l)){let h=fNe(l);p=L.createTypeLiteralNode(h)}else l&&(p=sl(l));if(p&&s){let h=d?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,h,p)}}):void 0}function IYe(e){return e.name.kind===80?e.name.text:e.name.right.text}function xYe(e){return wp(e)?ya(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>GT(i))}):[]}var ZY,Gpe,RYe=bt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";ai(),Ta(),ZY="convertTypedefToType",Gpe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],ba({fixIds:[ZY],errorCodes:Gpe,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=>uNe(o,r,e.sourceFile,t));if(i.length>0)return[ia(ZY,i,f.Convert_typedef_to_TypeScript_type,ZY,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&&uNe(t,o,r.file,i,!0)})})}});function mNe(e,t){let r=so(e,t);if(Fe(r)){let i=ta(r.parent.parent,hp),o=r.getText(e);return{container:ta(i.parent,yp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function _Ne(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 e$,Vpe,DYe=bt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";ai(),Ta(),e$="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],ba({errorCodes:Vpe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=mNe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=fr.ChangeTracker.with(t,p=>_Ne(p,r,o));return[ia(e$,d,[f.Convert_0_to_1_in_0,l,s],e$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[e$],getAllCodeActions:e=>vs(e,Vpe,(t,r)=>{let i=mNe(r.file,r.start);i&&_Ne(t,r.file,i)})})}});function hNe(e,t){return R.checkDefined(sd(so(e,t)),"There should be a containing class")}function gNe(e){return!e.valueDeclaration||!(cu(e.valueDeclaration)&2)}function yNe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=CYe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(TW(gNe,D=>!d.has(D.escapedName))),y=l.getTypeAtLocation(i),E=Gr(i.members,D=>Pl(D));y.getNumberIndexType()||A(p,1),y.getStringIndexType()||A(p,0);let S=N1(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,DD(e)))}function N(D,w,j){E?o.insertNodeAfter(D,E,j):o.insertMemberAtStart(D,w,j)}}function CYe(e,t){let r=A_(e);if(!r)return oa();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return oa(o.filter(gNe))}var jpe,t$,NYe=bt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";ai(),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],t$="fixClassIncorrectlyImplementsInterface",ba({errorCodes:jpe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=hNe(t,r.start);return to(dR(i),o=>{let s=fr.ChangeTracker.with(e,l=>yNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ia(t$,s,[f.Implement_interface_0,o.getText(t)],t$,f.Implement_all_unimplemented_interfaces)})},fixIds:[t$],getAllCodeActions(e){let t=new Map;return vs(e,jpe,(r,i)=>{let o=hNe(i.file,i.start);if(Tm(t,is(o)))for(let s of dR(o))yNe(e,s,i.file,o,r,e.preferences)})}})}});function N1(e,t,r,i,o){return vNe(e,t,!1,r,i,o)}function vNe(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=INe(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=SNe(e,B,K,j,!1,t,o,i,s),z=r$(e,t),ee=bNe(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=af(e,i);for(let Y of d)qpe(D,e,Y);for(let Y of p)MNe(D,e,Y,j);h.forEach(({importClauseOrBindingPattern:Y,defaultImport:B,namedImports:ce})=>{PNe(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?wNe:kNe)(me,j,B,ce&&Oo(ce.entries(),([J,re])=>({addAsTypeOnly:re,name:J})),z,l,i);K=Tx(K,q)}),K&&aM(D,e,K,!0,i)}function N(){return d.length>0||p.length>0||h.size>0||m.size>0}}function PYe(e,t,r,i){let o=fM(e,i,r),s=TNe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(d,p,h,m){let{fixes:y,computedWithoutCacheCount:E}=n$(d,p,h,!1,t,e,r,i,s,m),S=xNe(y,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function MYe(e,t,r,i,o,s,l,d,p,h,m,y){let E;r?(E=vO(i,l,d,m,y).get(i.path,r),R.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=uV($f(t.name))?[kYe(e,o,t,d,l)]:SNe(i,e,o,t,s,d,l,m,y),R.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=r$(i,d),A=_E(so(i,h)),N=R.checkDefined(bNe(i,E,d,h,A,S,l,m));return{moduleSpecifier:N.moduleSpecifier,codeAction:ENe(Jpe({host:l,formatContext:p,preferences:m},i,o,N,!1,d,m))}}function LYe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=VG(Kpe(e,r.getTypeChecker(),t,l)),p=CNe(e,t,d,r),h=d!==t.text;return p&&ENe(Jpe({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function bNe(e,t,r,i,o,s,l,d){let p=fM(e,d,l);return xNe(n$(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function ENe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function SNe(e,t,r,i,o,s,l,d,p){let h=ANe(s,l);return vO(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 kYe(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 n$(e,t,r,i,o,s,l,d,p=TNe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),y=ya(e,p.getImportsForExportInfo),E=t!==void 0&&wYe(y,t),S=WYe(y,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:Ye,S]};let{fixes:A,computedWithoutCacheCount:N=0}=zYe(e,y,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:N,fixes:[...E?[E]:Ye,...A]}}function wYe(e,t){return Fl(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=OYe(r),l=s&&((o=iR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function OYe(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,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||sU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function WYe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=a2(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=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 TNe(e,t,r){let i;for(let o of t.imports){let s=RN(o);if(qF(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=Xp())).add(va(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=Xp())).add(va(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:d})=>{if(!(l&111551)&&lu(t))return Ye;let p=i?.get(va(o));if(!p)return Ye;let h=Hpe(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function r$(e,t){if(!lu(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||!lu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function ANe(e,t){return sh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function FYe(e,t,r,i,o,s,l,d,p){let h=lu(t),m=e.getCompilerOptions(),y=QT(e,l),E=ANe(e,l),S=uu(m),A=Yz(S),N=p?j=>({moduleSpecifiers:rS.tryGetModuleSpecifiersFromCache(j,t,y,d),computedWithoutCache:!1}):(j,K)=>rS.getModuleSpecifiersWithCacheInfo(j,K,m,t,y,d,void 0,!0),D=0,w=ya(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&&IE(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=S7(re,Y,m))==null?void 0:ge.name),pe||(pe=Ype(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 zYe(e,t,r,i,o,s,l,d,p,h){let m=Fl(t,y=>BYe(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:FYe(r,i,o,s,l,e,d,p,h)}function BYe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,d){var p;let h=(p=iR(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 INe(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=UYe(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=VG(Kpe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=CNe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=JYe(e,o,i);else return;let l=fM(e.sourceFile,e.preferences,e.host);return s&&GYe(s,e.sourceFile,e.program,l,e.host)}function GYe(e,t,r,i,o){let s=l=>rl(l,o.getCurrentDirectory(),ky(o));return tT(e,(l,d)=>Ev(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||tl(l.fix.kind,d.fix.kind)||RNe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function xNe(e,t,r,i,o){if(gt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>RNe(l,s,t,r,i.allowsImportingSpecifier,d=>rl(d,o.getCurrentDirectory(),ky(o)))===-1?l:s)}function RNe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Ev(o(t.moduleSpecifier),o(e.moduleSpecifier))||jYe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Ev(DNe(e,r,i.getCompilerOptions(),s),DNe(t,r,i.getCompilerOptions(),s))||fk(e.moduleSpecifier,t.moduleSpecifier):0}function DNe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&VYe(e.exportInfo.moduleFileName)){let s=i(oi(e.exportInfo.moduleFileName));return ao(t.path,s)}return!1}function VYe(e){return rc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function jYe(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 UYe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=HYe(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=r$(e,t);return n$(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 HYe(e,t){let r=Fe(e)?t.getSymbolAtLocation(e):void 0;if(S6(r))return r;let{parent:i}=e;if(su(i)&&i.tagName===e||l1(i)){let o=t.resolveName(t.getJsxNamespace(i),su(i)?e:i,111551,!1);if(S6(o))return o}}function Hpe(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 YYe(e,r,!!i);case 3:return KYe(e,r,!!i);default:return R.assertNever(t)}}function KYe(e,t,r){if(CT(t))return 1;let i=kd(t);switch(i){case 2:case 1:case 3:return ar(e)&&(ac(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 JYe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return ya(Kpe(e,d,s,p),h=>{if(h==="default")return;let m=_E(s),y=r$(e,t),E=XYe(h,tR(s),YT(s),r,e,t,l,i,o);return Oo(kG(E.values(),S=>n$(S,s.getStart(e),m,y,t,e,i,o).fixes),S=>({fix:S,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function CNe(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||Vn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Kpe(e,t,r,i){let o=r.parent;if((su(o)||X0(o))&&o.tagName===r&&yX(i.jsx)){let s=t.getJsxNamespace(e);if(qYe(s,r,t))return!mR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function qYe(e,t,r){if(mR(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||gt(i.declarations,aE)&&!(i.flags&111551)}function XYe(e,t,r,i,o,s,l,d,p){var h;let m=Xp(),y=fM(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=sh(N=>QT(N?d.getPackageJsonAutoImportProvider():s,d));function A(N,D,w,j,K,Y){let B=S(Y);if(D&&IX(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:bd(w,ce).flags,isFromPackageJson:Y})}}return xX(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||Ype(N,rs(Y),t)===e)&&WNe(B.resolvedSymbol,r)&&A(N,D,B.symbol,B.exportKind,w,j);let ce=K.tryGetMemberInModuleExportsAndProperties(e,N);ce&&WNe(ce,r)&&A(N,D,ce,0,w,j)}),m}function YYe(e,t,r){let i=CT(t),o=ar(e);if(!o&&kd(t)>=5)return i?1:2;if(o)return ac(e)||r?i?1:2:3;for(let s of e.statements)if(nd(s)&&!zl(s.moduleReference))return 3;return i?1:3}function Jpe(e,t,r,i,o,s,l){let d,p=fr.ChangeTracker.with(e,h=>{d=$Ye(h,t,r,i,o,s,l)});return ia(Qpe,p,d,Zpe,f.Add_all_missing_imports)}function $Ye(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 MNe(e,t,i,d),[f.Change_0_to_1,r,LNe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:y}=i;PNe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:Ye,l);let E=$f(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?wNe:kNe,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 aM(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=QYe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,NNe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,NNe(h)]}default:return R.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function NNe(e){var t,r;return e.kind===271?((r=ri((t=ri(e.moduleReference,Eh))==null?void 0:t.expression,ss))==null?void 0:r.text)||e.moduleReference.getText():ta(e.parent.moduleSpecifier,Da).text}function QYe(e,t,r,i,o){let s=r.getCompilerOptions(),l=sU(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Cm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let h=L.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Cm.getOrganizeImportsComparer(o,p===2),y=Cm.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:sE(t.getFirstToken()),end:sE(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,Xq(p,i)),!s.allowImportingTsExtensions){let m=iR(p.parent),y=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(y?.resolvedUsingTsExtension){let E=VL(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){Cm.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 PNe(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=Cm.detectImportSpecifierSorting(p,s);A!==3&&(m=A===2)}m===void 0&&(m=Cm.detectSorting(t,s)===2);let y=Cm.getOrganizeImportsComparer(s,m),E=Ey(o.map(A=>L.createImportSpecifier((!r.isTypeOnly||d)&&i$(A,s),void 0,L.createIdentifier(A.name))),(A,N)=>Cm.compareImportOrExportSpecifiers(A,N,y)),S=p?.length&&Cm.detectImportSpecifierSorting(p,s);if(S&&!(m&&S===1))for(let A of E){let N=d&&!A.isTypeOnly?0:Cm.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,Xq(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 qpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function MNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,LNe(r,o))}function LNe(e,t){let r=qq(t);return`import(${r}${e}${r}).`}function Xpe({addAsTypeOnly:e}){return e===2}function i$(e,t){return Xpe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function kNe(e,t,r,i,o,s,l){let d=A1(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=Tx(p,Jy(r&&L.createIdentifier(r.name),i?.map(m=>L.createImportSpecifier(!h&&i$(m,l),void 0,L.createIdentifier(m.name))),e,t,h))}if(o){let h=o.importKind===3?L.createImportEqualsDeclaration(void 0,i$(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(d)):L.createImportDeclaration(void 0,L.createImportClause(i$(o,l),void 0,L.createNamespaceImport(L.createIdentifier(o.name))),d,void 0);p=Tx(p,h)}return R.checkDefined(p)}function wNe(e,t,r,i,o){let s=A1(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=ONe(L.createObjectBindingPattern(d),s);l=Tx(l,p)}if(o){let d=ONe(o.name,s);l=Tx(l,d)}return R.checkDefined(l)}function ONe(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 WNe({declarations:e},t){return gt(e,r=>!!(Xw(r)&t))}function Ype(e,t,r){return $pe(Tu($f(e.name)),t,r)}function $pe(e,t,r){let i=rc(xx(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;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=vNe(t,r,!0,i,o,s);return xD(e,efe,d=>l.addImportFromDiagnostic(d,e)),ID(fr.ChangeTracker.with(e,l.writeFixes))}})}});function FNe(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=rme(o.file,yd(o.start,o.length));if(s!==void 0&&(Fe(s)&&_l(s.parent)&&(s=s.parent),_l(s))){if(LR(s.parent))return;let l=so(t,r.start),d=e.getTypeChecker();return{constraint:t$e(d,l)||e$e(o.messageText),declaration:s,token:l}}}function zNe(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=DD({program:t,host:i}),y=N1(o,t,r,i),E=V$(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 e$e(e){let[,t]=O_(e,` `,0).match(/`extends (.*)`/)||[];return t}function t$e(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(ht(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var o$,tfe,n$e=bt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";ai(),Ta(),o$="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],ba({errorCodes:tfe,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=FNe(i,t,r);if(l===void 0)return;let d=fr.ChangeTracker.with(e,p=>zNe(p,i,o,s,t,l));return[ia(o$,d,f.Add_extends_constraint,o$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[o$],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return ID(fr.ChangeTracker.with(e,s=>{xD(e,tfe,l=>{let d=FNe(t,l.file,yd(l.start,l.length));if(d&&Tm(o,is(d.declaration)))return zNe(s,t,r,i,l.file,d)})}))}})}});function BNe(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 r$e(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 i$e(e,t.sourceFile,i);default:R.fail("Unexpected error code: "+r)}}function r$e(e,t,r){let i=VNe(t,r);if(lu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}let o=i.modifiers||Ye,s=Gr(o,QI),l=Gr(o,uae),d=Gr(o,y=>Fq(y.kind)),p=uI(o,Ed),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 i$e(e,t,r){let i=VNe(t,r);if(lu(t)){e.filterJSDocTags(t,i,AW(K4));return}let o=Gr(i.modifiers,pae);R.assertIsDefined(o),e.deleteModifier(t,o)}function GNe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return up(e,e.parent);default:return!1}}function VNe(e,t){let r=so(e,t),i=Fn(r,o=>di(o)?"quit":GNe(o));return R.assert(i&&GNe(i)),i}var nfe,vM,GO,rfe,ife,o$e=bt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";ai(),Ta(),nfe="fixOverrideModifier",vM="fixAddOverrideModifier",GO="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:vM,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:vM,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:GO,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:GO,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:vM,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:vM,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:vM,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:GO,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:GO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},ba({errorCodes:rfe,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=ife[r];if(!o)return Ye;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=fr.ChangeTracker.with(t,h=>BNe(h,t,r,i.start));return[hpe(nfe,p,s,l,d)]},fixIds:[nfe,vM,GO],getAllCodeActions:e=>vs(e,rfe,(t,r)=>{let{code:i,start:o}=r,s=ife[i];!s||s.fixId!==e.fixId||BNe(t,e,i,o)})})}});function jNe(e,t,r,i){let o=af(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 UNe(e,t){return ta(so(e,t).parent,kr)}var a$,ofe,a$e=bt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";ai(),Ta(),a$="fixNoPropertyAccessFromIndexSignature",ofe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],ba({errorCodes:ofe,fixIds:[a$],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=UNe(t,r.start),s=fr.ChangeTracker.with(e,l=>jNe(l,e.sourceFile,o,i));return[ia(a$,s,[f.Use_element_access_for_0,o.name.text],a$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>vs(e,ofe,(t,r)=>jNe(t,r.file,UNe(r.file,r.start),e.preferences))})}});function HNe(e,t,r,i){let o=so(t,r);if(!uD(o))return;let s=wu(o,!1,!1);if(!(!Sc(s)&&!ks(s))&&!Yi(wu(s,!1,!1))){let l=R.checkDefined(hs(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 s$,afe,s$e=bt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";ai(),Ta(),s$="fixImplicitThis",afe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ba({errorCodes:afe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=fr.ChangeTracker.with(t,d=>{s=HNe(d,r,o.start,i.getTypeChecker())});return s?[ia(s$,l,s,s$,f.Fix_all_implicit_this_errors)]:Ye},fixIds:[s$],getAllCodeActions:e=>vs(e,afe,(t,r)=>{HNe(t,r.file,r.start,e.program.getTypeChecker())})})}});function KNe(e,t,r){var i,o;let s=so(e,t);if(Fe(s)){let l=Fn(s,Lc);if(l===void 0)return;let d=Da(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(d===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(d))==null?void 0:i.resolvedModule;if(p===void 0)return;let h=r.getSourceFile(p.resolvedFileName);if(h===void 0||yD(r,h))return;let m=h.symbol,y=(o=ri(m.valueDeclaration,dh))==null?void 0:o.locals;if(y===void 0)return;let E=y.get(s.escapedText);if(E===void 0)return;let S=c$e(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:xR(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function l$e(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=l$(o,r.isTypeOnly);s?JNe(e,t,o,s,[r]):hk(i)?e.insertExportModifier(o,i):qNe(e,t,o,[r])}function sfe(e,t,r,i,o){Nn(i)&&(o?JNe(e,t,r,o,i):qNe(e,t,r,i))}function l$(e,t){let r=i=>Yl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return uI(e.statements,r)}function JNe(e,t,r,i,o){let s=i.exportClause&&Rf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(tm(t.getCompilerOptions())||Gr(s,d=>d.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...XNe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function qNe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(XNe(i,tm(t.getCompilerOptions()))),void 0,void 0))}function XNe(e,t){return L.createNodeArray(mn(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function c$e(e){if(e.valueDeclaration===void 0)return Yc(e.declarations);let t=e.valueDeclaration,r=Oi(t)?ri(t.parent.parent,Ml):void 0;return r&&Nn(r.declarationList.declarations)===1?r:t}var c$,lfe,d$e=bt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";ai(),Ta(),c$="fixImportNonExportedMember",lfe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],ba({errorCodes:lfe,fixIds:[c$],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=KNe(t,r.start,i);if(o===void 0)return;let s=fr.ChangeTracker.with(e,l=>l$e(l,i,o));return[ia(c$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],c$,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return ID(fr.ChangeTracker.with(e,r=>{let i=new Map;xD(e,lfe,o=>{let s=KNe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:d,moduleSourceFile:p}=s;if(l$(p,l.isTypeOnly)===void 0&&hk(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=l$(s,!0);l&&l.isTypeOnly?(sfe(r,t,s,o.typeOnlyExports,l),sfe(r,t,s,o.exports,l$(s,!1))):sfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function u$e(e,t){let r=so(e,t);return Fn(r,i=>i.kind===202)}function p$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 d$,YNe,f$e=bt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";ai(),Ta(),d$="fixIncorrectNamedTupleSyntax",YNe=[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],ba({errorCodes:YNe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=u$e(r,i.start),s=fr.ChangeTracker.with(t,l=>p$e(l,r,o));return[ia(d$,s,f.Move_labeled_tuple_element_modifiers_to_labels,d$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[d$]})}});function $Ne(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)&&!k_(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(Zu(s)&&s.name===o){R.assertNode(o,Fe,"Expected an identifier for spelling (import)");let p=Fn(o,Lc),h=_$e(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(k_(s)&&s.name===o){R.assertNode(o,Fe,"Expected an identifier for JSX attribute");let p=Fn(o,su),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?A_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(d=l.getSuggestedSymbolForNonexistentClassMember(pc(o),m))}else{let p=YT(o),h=pc(o);R.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,m$e(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function QNe(e,t,r,i,o){let s=bl(i);if(!$p(s,o)&&kr(r.parent)){let l=i.valueDeclaration;l&&ou(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 m$e(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function _$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 cfe,dfe,h$e=bt({"src/services/codefixes/fixSpelling.ts"(){"use strict";ai(),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],ba({errorCodes:dfe,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=$Ne(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=>QNe(p,t,o,s,l));return[ia("spelling",d,[f.Change_spelling_to_0,bl(s)],cfe,f.Fix_all_detected_spelling_errors)]},fixIds:[cfe],getAllCodeActions:e=>vs(e,dfe,(t,r)=>{let i=$Ne(r.file,r.start,e,r.code),o=rs(e.host.getCompilationSettings());i&&QNe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function ZNe(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 ufe(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)&&pfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(q0(o)&&td(o.statement)){let s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=ZNe(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(Ho(o)&&Nn(o.statements)===1){let s=Va(o.statements);if(q0(s)&&td(s.statement)){let l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),d=ZNe(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){$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 ePe(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(!kg(o)||!Qx(o.parent)&&!k_(o.parent))return;let p=g$e(o.parent);return!p||!Fs(p)||!p.body?void 0:ufe(e,p,e.getTypeAtLocation(o.parent),!0)}}function g$e(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(SP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function tPe(e,t,r,i){Ep(r);let o=_O(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:fr.LeadingTriviaOption.Exclude,trailingTriviaOption:fr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function nPe(e,t,r,i,o,s){let l=s||i7(i)?L.createParenthesizedExpression(i):i;Ep(o),ZT(o,l),e.replaceNode(t,r.body,l)}function rPe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function y$e(e,t,r){let i=fr.ChangeTracker.with(e,o=>tPe(o,e.sourceFile,t,r));return ia(u$,i,f.Add_a_return_statement,p$,f.Add_all_missing_return_statement)}function v$e(e,t,r,i){let o=fr.ChangeTracker.with(e,s=>nPe(s,e.sourceFile,t,r,i,!1));return ia(u$,o,f.Remove_braces_from_arrow_function_body,f$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function b$e(e,t,r){let i=fr.ChangeTracker.with(e,o=>rPe(o,e.sourceFile,t,r));return ia(u$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,m$,f.Wrap_all_object_literal_with_parentheses)}var u$,p$,f$,m$,ffe,E$e=bt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";ai(),Ta(),u$="returnValueCorrect",p$="fixAddReturnStatement",f$="fixRemoveBracesFromArrowFunctionBody",m$="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],ba({errorCodes:ffe,fixIds:[p$,f$,m$],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=ePe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Tn([y$e(t,l.expression,l.statement)],zs(l.declaration)?v$e(t,l.declaration,l.expression,l.commentSource):void 0):[b$e(t,l.declaration,l.expression)]},getAllCodeActions:e=>vs(e,ffe,(t,r)=>{let i=ePe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case p$:tPe(t,r.file,i.expression,i.statement);break;case f$:if(!zs(i.declaration))return;nPe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case m$:if(!zs(i.declaration))return;rPe(t,r.file,i.declaration,i.expression);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function iPe(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=Jl(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(!Jh(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)&&su(l.parent)){let S=rs(o.getCompilerOptions()),A=D$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:_Pe(l)}}if(ra(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:_Pe(l)}}if(!kr(d))return;let p=Uq(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Fe(l)&&ra(d.parent)){let S=Gr(h.declarations,Xl),A=S?.getSourceFile();if(S&&A&&!yD(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&&!yD(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=>fu(S)||yp(S));if(y&&!yD(o,y.getSourceFile())){let S=!yp(y)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ki(l)||fu(y)))return;let A=y.getSourceFile(),N=yp(y)?0:(S?256:0)|(gX(l.text)?2:0),D=lu(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,yE);if(E&&!(p.flags&1056)&&!Ki(l)&&!yD(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function S$e(e,t){return t.isJSFile?hI(T$e(e,t)):A$e(e,t)}function T$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(fu(t)||yp(t))return;let s=fr.ChangeTracker.with(e,d=>oPe(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 oPe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=aPe(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=cPe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=tg(r);if(!l)return;let d=aPe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function aPe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),P1()))}function A$e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=sPe(e.program.getTypeChecker(),t,o),p=m=>fr.ChangeTracker.with(e,y=>lPe(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(t_(rb,p(2),[f.Declare_private_property_0,s])),h.push(I$e(e,r,t,o.text,d))),h}function sPe(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 lPe(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=cPe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function cPe(e){let t;for(let r of e.members){if(!jo(r))break;t=r}return t}function I$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 t_(rb,p,[f.Add_index_signature_for_property_0,i])}function x$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=>dPe(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(t_(rb,p(2),[f.Declare_private_method_0,d])),h}function dPe(e,t,r,i,o,s,l){let d=N1(l,e.program,e.preferences,e.host),p=di(s)?174:173,h=$fe(p,e,d,r,i,o,s),m=C$e(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function uPe(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=Zs(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function pPe(e,t,r){let i=af(t.sourceFile,t.preferences),o=N1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?$fe(262,t,o,r.call,vr(r.token),r.modifierFlags,r.parentDeclaration):G$(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."),Am(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function fPe(e,t,r){let i=N1(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,c1),p=mn(r.attributes,y=>{let E=_$(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 mPe(e,t,r){let i=N1(t.sourceFile,t.program,t.preferences,t.host),o=af(t.sourceFile,t.preferences),s=rs(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),d=mn(r.properties,h=>{let m=_$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return L.createPropertyAssignment(N$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 _$(e,t,r,i,o,s){if(o.flags&3)return P1();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 Fl(o.types,d=>_$(e,t,r,i,d,s))??P1();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(R$e(o)){let l=mn(t.getPropertiesOfType(o),d=>{let p=_$(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||Ye,Km(yh,gh,Hl))===void 0)return P1();let d=t.getSignaturesOfType(o,0);return d===void 0?P1():G$(218,e,i,d[0],lB(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??P1()}if(Lr(o)&1){let l=Og(o.symbol);if(l===void 0||F0(l))return P1();let d=tg(l);return d&&Nn(d.parameters)?P1():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return P1()}function P1(){return L.createIdentifier("undefined")}function R$e(e){return e.flags&524288&&(Lr(e)&128||e.symbol&&ri(ih(e.symbol.declarations),yp))}function D$e(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return Ye;let o=i.getProperties();if(!Nn(o))return Ye;let s=new Set;for(let l of r.attributes.properties)if(k_(l)&&s.add(aP(l.name)),c1(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return Vr(o,l=>$p(l.name,t,1)&&!(l.flags&16777216||Al(l)&48||s.has(l.escapedName)))}function C$e(e,t){if(yp(e))return;let r=Fn(t,i=>Hl(i)||Pl(i));return r&&r.parent===e?r:void 0}function N$e(e,t,r,i){if(uh(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&$a(o))return o}return V6(e.name,t,r===0,!1,!1)}function _Pe(e){if(Fn(e,SP)){let t=Fn(e.parent,Am);if(t)return t}return Vn(e)}var rb,eB,tB,nB,mfe,P$e=bt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";ai(),Ta(),rb="fixMissingMember",eB="fixMissingProperties",tB="fixMissingAttributes",nB="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],ba({errorCodes:mfe,getCodeActions(e){let t=e.program.getTypeChecker(),r=iPe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=fr.ChangeTracker.with(e,o=>mPe(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=>fPe(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=>pPe(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=>uPe(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(x$e(e,r),S$e(e,r))}},fixIds:[rb,nB,eB,tB],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return ID(fr.ChangeTracker.with(e,l=>{xD(e,mfe,d=>{let p=iPe(d.file,d.start,d.code,i,e.program);if(!(!p||!Tm(o,is(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===nB&&(p.kind===2||p.kind===5))pPe(l,e,p);else if(r===eB&&p.kind===3)mPe(l,e,p);else if(r===tB&&p.kind===4)fPe(l,e,p);else if(p.kind===1&&uPe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,y=KC(s,h,()=>[]);y.some(E=>E.token.text===m.text)||y.push(p)}}}),s.forEach((d,p)=>{let h=yp(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))dPe(e,l,N,A,S&256,y,E);else if(D&&!fu(y)&&!yp(y))oPe(l,E,y,A,!!(S&256));else{let w=sPe(i,y,A);lPe(l,E,y,A.text,w,S&256)}}})}))}})}});function hPe(e,t,r){let i=ta(M$e(t,r),ra),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function M$e(e,t){let r=so(e,t.start),i=ql(t);for(;r.endhPe(o,t,r));return[ia(h$,i,f.Add_missing_new_operator_to_call,h$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[h$],getAllCodeActions:e=>vs(e,_fe,(t,r)=>hPe(t,e.sourceFile,r))})}});function gPe(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,yPe);if(d===void 0)return;let p=Zs(d);if(p===void 0||p.body===void 0||yD(t,p.getSourceFile()))return;let h=k$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,...O$e(p,d)];for(let N=0,D=0,w=0;N{Nn(o.parameters)?e.replaceNodeRangeWithNodes(t,Va(o.parameters),Ja(o.parameters),vPe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:fr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:fr.TrailingTriviaOption.Include}):gn(vPe(o,i),(s,l)=>{Nn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function yPe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function vPe(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 O$e(e,t){let r=[];for(let i of t)if(W$e(i)){if(Nn(i.parameters)===Nn(e.parameters)){r.push(i);continue}if(Nn(i.parameters)>Nn(e.parameters))return[]}return r}function W$e(e){return yPe(e)&&e.body===void 0}function bPe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function F$e(e,t){return Nn(e)&>(e,r=>tg$(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=>g$(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,hfe,(t,r)=>{let i=gPe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===rB&&g$(t,e.sourceFile,o,s),e.fixId===iB&&g$(t,e.sourceFile,o,l)}})})}});function EPe(e,t){return{type:"install package",file:e,packageName:t}}function SPe(e,t){let r=ri(so(e,t),Da);if(!r)return;let i=r.text,{packageName:o}=bw(i);return $c(o)?void 0:o}function TPe(e,t,r){var i;return r===gfe?F_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?x3(e):void 0}var APe,y$,gfe,yfe,B$e=bt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";ai(),Ta(),APe="fixCannotFindModule",y$="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],ba({errorCodes:yfe,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=SPe(i,o);if(s===void 0)return;let l=TPe(s,r,t.errorCode);return l===void 0?[]:[ia(APe,[],[f.Install_0,l],y$,f.Install_all_missing_types_packages,EPe(i.fileName,l))]},fixIds:[y$],getAllCodeActions:e=>vs(e,yfe,(t,r,i)=>{let o=SPe(r.file,r.start);if(o!==void 0)switch(e.fixId){case y$:{let s=TPe(o,e.host,r.code);s&&i.push(EPe(r.file.fileName,s));break}default:R.fail(`Bad fixId: ${e.fixId}`)}})})}});function IPe(e,t){let r=so(e,t);return ta(r.parent,di)}function xPe(e,t,r,i,o){let s=A_(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(G$e),h=N1(t,r.program,o,r.host);Yfe(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function G$e(e){let t=Fv(Va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var vfe,v$,V$e=bt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";ai(),Ta(),vfe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],v$="fixClassDoesntImplementInheritedAbstractMember",ba({errorCodes:vfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=fr.ChangeTracker.with(t,s=>xPe(IPe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ia(v$,o,f.Implement_inherited_abstract_class,v$,f.Implement_all_inherited_abstract_classes)]},fixIds:[v$],getAllCodeActions:function(t){let r=new Map;return vs(t,vfe,(i,o)=>{let s=IPe(o.file,o.start);Tm(r,is(s))&&xPe(s,t.sourceFile,t,i,t.preferences)})}})}});function RPe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function DPe(e,t){let r=so(e,t);if(r.kind!==110)return;let i=Fp(r),o=CPe(i.body);return o&&!o.expression.arguments.some(s=>kr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function CPe(e){return td(e)&&hT(e.expression)?e:Yo(e)?void 0:Bo(e,CPe)}var b$,bfe,j$e=bt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";ai(),Ta(),b$="classSuperMustPrecedeThisAccess",bfe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],ba({errorCodes:bfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=DPe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=fr.ChangeTracker.with(e,d=>RPe(d,t,o,s));return[ia(b$,l,f.Make_super_call_the_first_statement_in_the_constructor,b$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[b$],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return vs(e,bfe,(i,o)=>{let s=DPe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Tm(r,is(l.parent))&&RPe(i,t,l,d)})}})}});function NPe(e,t){let r=so(e,t);return R.assert(Pl(r.parent),"token should be at the constructor declaration"),r.parent}function PPe(e,t,r){let i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Ye));e.insertNodeAtConstructorStart(t,r,i)}var E$,Efe,U$e=bt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";ai(),Ta(),E$="constructorForDerivedNeedSuperCall",Efe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],ba({errorCodes:Efe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=NPe(t,r.start),o=fr.ChangeTracker.with(e,s=>PPe(s,t,i));return[ia(E$,o,f.Add_missing_super_call,E$,f.Add_all_missing_super_calls)]},fixIds:[E$],getAllCodeActions:e=>vs(e,Efe,(t,r)=>PPe(t,e.sourceFile,NPe(r.file,r.start)))})}});function MPe(e,t){tme(e,t,"jsx",L.createStringLiteral("react"))}var Sfe,Tfe,H$e=bt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";ai(),Ta(),Sfe="fixEnableJsxFlag",Tfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],ba({errorCodes:Tfe,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=fr.ChangeTracker.with(t,o=>MPe(o,r));return[t_(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&&MPe(t,r)})})}});function LPe(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=rme(o.file,yd(o.start,o.length));if(s!==void 0&&ht(s)&&pr(s.parent))return{suggestion:K$e(o.messageText),expression:s.parent,arg:s}}function kPe(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 K$e(e){let[,t]=O_(e,` `,0).match(/'(.*)'/)||[];return t}var S$,Afe,J$e=bt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";ai(),Ta(),S$="fixNaNEquality",Afe=[f.This_condition_will_always_return_0.code],ba({errorCodes:Afe,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=LPe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=fr.ChangeTracker.with(e,h=>kPe(h,t,d,l));return[ia(S$,p,[f.Use_0,s],S$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[S$],getAllCodeActions:e=>vs(e,Afe,(t,r)=>{let i=LPe(e.program,r.file,yd(r.start,r.length));i&&kPe(t,r.file,i.arg,i.expression)})})}}),q$e=bt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";ai(),Ta(),ba({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=>{tme(m,i,"module",L.createStringLiteral("esnext"))});o.push(t_("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(!TN(i))return;let E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),eme(m,i,E)});o.push(t_("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function wPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function OPe(e,t){return ta(so(e,t).parent,ep)}var T$,Ife,X$e=bt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";ai(),Ta(),T$="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],ba({errorCodes:Ife,fixIds:[T$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=OPe(t,r.start),o=fr.ChangeTracker.with(e,s=>wPe(s,e.sourceFile,i));return[ia(T$,o,[f.Change_0_to_1,"=",":"],T$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>vs(e,Ife,(t,r)=>wPe(t,r.file,OPe(r.file,r.start)))})}});function WPe(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 FPe(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(;dFPe(l,t,i,o));return[ia(A$,s,f.Change_extends_to_implements,A$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[A$],getAllCodeActions:e=>vs(e,xfe,(t,r)=>{let i=WPe(r.file,r.start);i&&FPe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function zPe(e,t,r){let i=so(e,t);if(Fe(i)||Ki(i))return{node:i,className:r===Rfe?sd(i).name.text:void 0}}function BPe(e,t,{node:r,className:i}){Ep(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var I$,Rfe,Dfe,$$e=bt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";ai(),Ta(),I$="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],ba({errorCodes:Dfe,getCodeActions(e){let{sourceFile:t}=e,r=zPe(t,e.span.start,e.errorCode);if(!r)return;let i=fr.ChangeTracker.with(e,o=>BPe(o,t,r));return[ia(I$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],I$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[I$],getAllCodeActions:e=>vs(e,Dfe,(t,r)=>{let i=zPe(r.file,r.start,r.code);i&&BPe(t,e.sourceFile,i)})})}});function Q$e(e){return Is(Pfe,e)}function Cfe(e,t,r,i,o){let s=r.getText()[i];if(!Q$e(s))return;let l=o?Pfe[s]:`{${uM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var x$,oB,Nfe,Pfe,Z$e=bt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";ai(),Ta(),x$="fixInvalidJsxCharacters_expression",oB="fixInvalidJsxCharacters_htmlEntity",Nfe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],ba({errorCodes:Nfe,fixIds:[x$,oB],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=fr.ChangeTracker.with(e,l=>Cfe(l,r,t,i.start,!1)),s=fr.ChangeTracker.with(e,l=>Cfe(l,r,t,i.start,!0));return[ia(x$,o,f.Wrap_invalid_character_in_an_expression_container,x$,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,Nfe,(t,r)=>Cfe(t,e.preferences,r.file,r.start,e.fixId===oB))}}),Pfe={">":">","}":"}"}}});function eQe(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 tQe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Nn(i.parameters))return;let s=e.sourceFile,l=oE(i),d=new Set;for(let y of l)Zm(y)&&Fe(y.name)&&d.add(y.name.escapedText);let p=Fl(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 t_(Mfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function GPe(e,t){let r=so(e,t);if(r.parent&&Zm(r.parent)&&Fe(r.parent.name)){let i=r.parent,o=ET(i),s=dE(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var aB,Mfe,Lfe,nQe=bt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";ai(),Ta(),aB="deleteUnmatchedParameter",Mfe="renameUnmatchedParameter",Lfe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],ba({fixIds:[aB,Mfe],errorCodes:Lfe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=GPe(r,i.start);if(s)return Tn(o,eQe(t,s)),Tn(o,tQe(t,s)),o},getAllCodeActions:function(t){let r=new Map;return ID(fr.ChangeTracker.with(t,i=>{xD(t,Lfe,({file:o,start:s})=>{let l=GPe(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 rQe(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||Ye,Km(vh,Zu,nd))}function iQe(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 oQe(e,t,r,i){R1.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var R$,VPe,aQe=bt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";ai(),Ta(),R$="fixUnreferenceableDecoratorMetadata",VPe=[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],ba({errorCodes:VPe,getCodeActions:e=>{let t=rQe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,s=>t.kind===276&&oQe(s,e.sourceFile,t,e.program)),i=fr.ChangeTracker.with(e,s=>iQe(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Tn(o,t_(R$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Tn(o,t_(R$,i,f.Use_import_type))),o},fixIds:[R$]})}});function jPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function VO(e,t){return ia(jO,e,t,N$,f.Delete_all_unused_declarations)}function UPe(e,t,r){e.delete(t,R.checkDefined(ta(r.parent,oj).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 HPe(e){return e.kind===102?ri(e.parent,Lc):void 0}function KPe(e,t){return Uc(t.parent)&&Va(t.parent.getChildren(e))===t}function JPe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function sQe(e,t,r){gn(r.elements,i=>e.delete(t,i))}function lQe(e,t,r,{parent:i}){if(Oi(i)&&i.initializer&&A0(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:_O(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function qPe(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)&&cQe(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),To(i.parent)&&Fx(i.parent).forEach(o=>{Fe(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function cQe(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 D$(e,t,r,i,o,s,l,d){dQe(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&&mQe(p)&&r.delete(e,p.parent.parent)})}function dQe(e,t,r,i,o,s,l,d){let{parent:p}=e;if(To(p))uQe(t,r,p,i,o,s,l,d);else if(!(d&&Fe(e)&&ws.Core.isSymbolReferencedInFile(e,i,r))){let h=vh(p)?e:$a(p)?p.parent:p;R.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function uQe(e,t,r,i,o,s,l,d=!1){if(pQe(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)Sa(p)&&e.deleteModifier(t,p);else!r.initializer&&XPe(r,i,o)&&e.delete(t,r)}function XPe(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 pQe(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=Hl(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=_P(E.node)&&ra(E.node.parent)&&E.node.parent.arguments.length>p,A=kr(E.node.parent)&&_P(E.node.parent.expression)&&ra(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,N=(Hl(E.node.parent)||gh(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&&fQe(e,t,d.name)?YPe(d,r,l):!0;case 218:case 219:return YPe(d,r,l);case 178:return!1;case 177:return!0;default:return R.failBadSyntaxKind(d)}}function fQe(e,t,r){return!!ws.Core.eachSymbolReferenceInFile(r,e,t,i=>Fe(i)&&ra(i.parent)&&i.parent.arguments.includes(i))}function YPe(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 mQe(e){return(pr(e.parent)&&e.parent.left===e||(oH(e.parent)||Xv(e.parent))&&e.parent.operand===e)&&td(e.parent.parent)}var jO,C$,N$,sB,P$,wfe,_Qe=bt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";ai(),Ta(),jO="unusedIdentifier",C$="unusedIdentifier_prefix",N$="unusedIdentifier_delete",sB="unusedIdentifier_deleteImports",P$="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],ba({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(rm(d))return[VO(fr.ChangeTracker.with(e,y=>y.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let y=fr.ChangeTracker.with(e,E=>UPe(E,r,d));return[VO(y,f.Remove_type_parameters)]}let p=HPe(d);if(p){let y=fr.ChangeTracker.with(e,E=>E.delete(r,p));return[ia(jO,y,[f.Remove_import_from_0,ooe(p)],sB,f.Delete_all_unused_imports)]}else if(kfe(d)){let y=fr.ChangeTracker.with(e,E=>D$(r,d,E,s,l,i,o,!1));if(y.length)return[ia(jO,y,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],sB,f.Delete_all_unused_imports)]}if(nm(d.parent)||H0(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[VO(fr.ChangeTracker.with(e,S=>sQe(S,r,d.parent)),E)]}return[VO(fr.ChangeTracker.with(e,y=>lQe(e,y,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(KPe(r,d))return[VO(fr.ChangeTracker.with(e,y=>JPe(y,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let y=fr.ChangeTracker.with(e,S=>jPe(S,r,d)),E=ta(d.parent,PT).typeParameter.name.text;h.push(ia(jO,y,[f.Replace_infer_0_with_unknown,E],P$,f.Replace_all_unused_infer_with_unknown))}else{let y=fr.ChangeTracker.with(e,E=>D$(r,d,E,s,l,i,o,!1));if(y.length){let E=$a(d.parent)?d.parent:d;h.push(VO(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=fr.ChangeTracker.with(e,y=>qPe(y,t,r,d));return m.length&&h.push(ia(jO,m,[f.Prefix_0_with_an_underscore,d.getText(r)],C$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[C$,N$,sB,P$],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 C$:qPe(l,d.code,t,p);break;case sB:{let h=HPe(p);h?l.delete(t,h):kfe(p)&&D$(t,p,l,o,s,r,i,!0);break}case N$:{if(p.kind===140||kfe(p))break;if(rm(p))l.delete(t,p);else if(p.kind===30)UPe(l,t,p);else if(nm(p.parent)){if(p.parent.parent.initializer)break;(!To(p.parent.parent)||XPe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(H0(p.parent.parent)&&p.parent.parent.parent.initializer)break;KPe(t,p)?JPe(l,t,p.parent):D$(t,p,l,o,s,r,i,!0)}break}case P$:p.kind===140&&jPe(l,t,p);break;default:R.fail(JSON.stringify(e.fixId))}})}})}});function $Pe(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(Ye));return}case 247:case 248:e.delete(t,d);return}if(Ho(l.parent)){let p=r+i,h=R.checkDefined(hQe(mU(l.parent.statements,l),m=>m.pos$Pe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ia(M$,r,f.Remove_unreachable_code,M$,f.Remove_all_unreachable_code)]},fixIds:[M$],getAllCodeActions:e=>vs(e,Ofe,(t,r)=>$Pe(t,r.file,r.start,r.length,r.code))})}});function QPe(e,t,r){let i=so(t,r),o=ta(i.parent,q0),s=i.getStart(t),l=o.statement.getStart(t),d=Tf(s,l,t)?l:Na(t.text,hs(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var L$,Wfe,yQe=bt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";ai(),Ta(),L$="fixUnusedLabel",Wfe=[f.Unused_label.code],ba({errorCodes:Wfe,getCodeActions(e){let t=fr.ChangeTracker.with(e,r=>QPe(r,e.sourceFile,e.span.start));return[ia(L$,t,f.Remove_unused_label,L$,f.Remove_all_unused_labels)]},fixIds:[L$],getAllCodeActions:e=>vs(e,Wfe,(t,r)=>QPe(t,r.file,r.start))})}});function ZPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function eMe(e,t,r){let i=Fn(so(e,t),vQe),o=i&&i.type;return o&&{typeNode:o,type:bQe(r,o)}}function vQe(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 bQe(e,t){if(WR(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,k$,zfe,EQe=bt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";ai(),Ta(),Ffe="fixJSDocTypes_plain",k$="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],ba({errorCodes:zfe,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=eMe(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,k$,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=>ZPe(S,t,o,h,r));return ia("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,y)}},fixIds:[Ffe,k$],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return vs(e,zfe,(s,l)=>{let d=eMe(l.file,l.start,o);if(!d)return;let{typeNode:p,type:h}=d,m=p.kind===321&&t===k$?o.getNullableType(h,32768):h;ZPe(s,i,p,m,o)})}})}});function tMe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function nMe(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 w$,Bfe,SQe=bt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";ai(),Ta(),w$="fixMissingCallParentheses",Bfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],ba({errorCodes:Bfe,fixIds:[w$],getCodeActions(e){let{sourceFile:t,span:r}=e,i=nMe(t,r.start);if(!i)return;let o=fr.ChangeTracker.with(e,s=>tMe(s,e.sourceFile,i));return[ia(w$,o,f.Add_missing_call_parentheses,w$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>vs(e,Bfe,(t,r)=>{let i=nMe(r.file,r.start);i&&tMe(t,r.file,i)})})}});function TQe(e){if(e.type)return e.type;if(Oi(e.parent)&&e.parent.type&&yh(e.parent.type))return e.parent.type.type}function rMe(e,t){let r=so(e,t),i=Fp(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)||Va(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:TQe(i)}}function iMe(e,t,{insertBefore:r,returnType:i}){if(i){let o=N2(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var O$,Gfe,AQe=bt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";ai(),Ta(),O$="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],ba({errorCodes:Gfe,getCodeActions(e){let{sourceFile:t,span:r}=e,i=rMe(t,r.start);if(!i)return;let o=fr.ChangeTracker.with(e,s=>iMe(s,t,i));return[ia(O$,o,f.Add_async_modifier_to_containing_function,O$,f.Add_all_missing_async_modifiers)]},fixIds:[O$],getAllCodeActions:function(t){let r=new Map;return vs(t,Gfe,(i,o)=>{let s=rMe(o.file,o.start);!s||!Tm(r,is(s.insertBefore))||iMe(i,t.sourceFile,s)})}})}});function oMe(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=ih(ome(h,d));if(!m)return[];let y=Vi(qx(p.name)),E=d.getPropertyOfType(d.getTypeAtLocation(m),y);if(!E||!E.valueDeclaration)return[];s=E.valueDeclaration.pos,l=E.valueDeclaration.end,e=Vn(E.valueDeclaration)}else R.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return bMe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Vfe,W$,IQe=bt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";ai(),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],W$="fixPropertyOverrideAccessor",ba({errorCodes:Vfe,getCodeActions(e){let t=oMe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ia(W$,t,f.Generate_get_and_set_accessors,W$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[W$],getAllCodeActions:e=>vs(e,Vfe,(t,r)=>{let i=oMe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function xQe(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 gp(Fp(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 RQe(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 aMe(e,t,r,i,o,s,l,d,p){if(!mN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=N1(t,o,p,d);switch(i=RQe(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)||hp(h))return sMe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(kr(h)){let S=UO(h.name,o,s),A=pM(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)?(sMe(e,m,Vn(S.valueDeclaration),S.valueDeclaration,o,d,s),m.writeFixes(e),S.valueDeclaration):void 0}}let y=Fp(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(gp(y)){lMe(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);DQe(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)&&(F$(e,m,t,y,UO(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:gp(y)&&(lMe(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)&&(CQe(e,t,y,o,d,s),E=y);break;default:return R.fail(String(i))}return m.writeFixes(e),E}function sMe(e,t,r,i,o,s,l){Fe(i.name)&&F$(e,t,r,i,UO(i.name,o,l),o,s)}function DQe(e,t,r,i,o,s,l,d){if(!Fe(i.name))return;let p=MQe(o,r,s,d);if(R.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),ar(o))cMe(e,r,p,s,l);else{let h=zs(o)&&!hs(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&&F$(e,t,r,m,y,s,l);h&&e.insertNodeAfter(r,Ja(o.parameters),L.createToken(22))}}function CQe(e,t,r,i,o,s){let l=dMe(r,t,i,s);if(!l||!l.length)return;let d=Ufe(i,l,s).thisParameter(),p=pM(d,r,i,o);p&&(ar(r)?NQe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function NQe(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function lMe(e,t,r,i,o,s,l){let d=Yc(i.parameters);if(d&&Fe(i.name)&&Fe(d.name)){let p=UO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=UO(d.name,o,l)),ar(i)?cMe(e,r,[{declaration:d,type:p}],o,s):F$(e,t,r,d,p,o,s)}}function F$(e,t,r,i,o,s,l){let d=pM(o,i,s,l);if(d)if(ar(r)&&i.kind!==171){let p=Oi(i)?ri(i.parent.parent,Ml):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 PQe(d,i,r,e,t,rs(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function PQe(e,t,r,i,o,s){let l=M1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(gn(l.symbols,d=>o.addImportFromExportedSymbol(d,!0)),!0):!1}function cMe(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||iE(p)||!Fe(p.name))return;let h=d.type&&pM(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)&&!hs(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 jfe(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 UO(e,t,r){let i=jfe(e,t,r);return Ufe(t,i,r).single()}function MQe(e,t,r,i){let o=dMe(e,t,r,i);return o&&Ufe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Fe(s.name)?UO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function dMe(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)||jo(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 ke=new Map;return De.forEach((Et,be)=>{ke.set(be,d(Et))}),{isNumber:Ie.some(Et=>Et.isNumber),isString:Ie.some(Et=>Et.isString),isNumberOrString:Ie.some(Et=>Et.isNumberOrString),candidateTypes:ya(Ie,Et=>Et.candidateTypes),properties:ke,calls:ya(Ie,Et=>Et.calls),constructs:ya(Ie,Et=>Et.constructs),numberIndex:gn(Ie,Et=>Et.numberIndex),stringIndex:gn(Ie,Et=>Et.stringIndex),candidateThisTypes:ya(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 ke=[...De.constructs||[],...De.calls||[]];return Ie.parameters.map((Et,be)=>{let ze=[],nt=qh(Et),Ft=!1;for(let Je of ke)if(Je.argumentTypes.length<=be)Ft=ar(Ie),ze.push(i.getUndefinedType());else if(nt)for(let ft=be;ftke.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=[],ke=[],Et=[],be=[],ze=!1,nt=!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)),ke.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),nt=nt||en.isReadonly)}let _t=Zte(Ft,(ft,Zt)=>{let en=Zt.lengthi.getBaseTypeOfLiteralType(Ft)),nt=(Et=Ie.calls)!=null&&Et.length?J(Ie):void 0;return nt&&ze?be.push(i.getUnionType([nt,...ze],2)):(nt&&be.push(nt),Nn(ze)&&be.push(...ze)),be.push(...re(Ie)),be}function J(Ie){let De=new Map;Ie.properties&&Ie.properties.forEach((ze,nt)=>{let Ft=i.createSymbol(4,nt);Ft.links.type=ee(ze),De.set(nt,Ft)});let ke=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,ke,Et,be)}function re(Ie){if(!Ie.properties||!Ie.properties.size)return[];let De=s.filter(ke=>pe(ke,Ie));return 0xe(ke,Ie)):[]}function pe(Ie,De){return De.properties?!Gc(De.properties,(ke,Et)=>{let be=i.getTypeOfPropertyOfType(Ie,Et);return be?ke.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,he(ke.calls)):!i.isTypeAssignableTo(be,ee(ke)):!0}):!1}function xe(Ie,De){if(!(Lr(Ie)&4)||!De.properties)return Ie;let ke=Ie.target,Et=ih(ke.typeParameters);if(!Et)return Ie;let be=[];return De.properties.forEach((ze,nt)=>{let Ft=i.getTypeOfPropertyOfType(ke,nt);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,ke){if(Ie===ke)return[De];if(Ie.flags&3145728)return ya(Ie.types,ze=>fe(ze,De,ke));if(Lr(Ie)&4&&Lr(De)&4){let ze=i.getTypeArguments(Ie),nt=i.getTypeArguments(De),Ft=[];if(ze&&nt)for(let _t=0;_tbe.argumentTypes.length));for(let be=0;bent.argumentTypes[be]||i.getUndefinedType())),Ie.some(nt=>nt.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,ke,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 z$,Hfe,LQe=bt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";ai(),Ta(),z$="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],ba({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=fr.ChangeTracker.with(e,E=>{h=aMe(E,t,p,o,r,s,Ay,l,d)}),y=h&&No(h);return!y||m.length===0?void 0:[ia(z$,m,[xQe(o,p),pc(y)],z$,f.Infer_all_types_from_usage)]},fixIds:[z$],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=T1();return vs(e,Hfe,(d,p)=>{aMe(d,t,so(p.file,p.start),p.code,r,i,l,o,s)})}})}});function uMe(e,t,r){if(ar(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 pMe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var B$,Kfe,kQe=bt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";ai(),Ta(),B$="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],ba({errorCodes:Kfe,fixIds:[B$],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=uMe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,y=fr.ChangeTracker.with(t,E=>pMe(E,r,d,h));return[ia(B$,y,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],B$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>vs(e,Kfe,(t,r)=>{let i=uMe(r.file,e.program.getTypeChecker(),r.start);i&&pMe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function fMe(e,t,r,i){let{line:o}=ys(t,r);(!i||qb(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Jfe,qfe,Xfe,wQe=bt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";ai(),Ta(),Jfe="disableJsDiagnostics",qfe="disableJsDiagnostics",Xfe=to(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),ba({errorCodes:Xfe,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!ar(r)||!_k(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":qy(s,l.options),p=[t_(Jfe,[_Ce(r.fileName,[oO(r.checkJsDirective?uc(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(Jfe,fr.ChangeTracker.with(t,h=>fMe(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)=>{fr.isValidLocationToAddComment(i.file,i.start)&&fMe(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)||mMe(p,e,r,i,o,s,l,void 0)}function DD(e){return{trackSymbol:()=>!1,moduleResolverHost:Kq(e.program,e.host)}}function mMe(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?cu(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,DD(i));if(s){let ne=M1(xe,S);ne&&(xe=ne.typeNode,CD(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,DD(i)),he=xT(m,y),Ce=he.secondAccessor?[he.firstAccessor,he.secondAccessor]:[he.firstAccessor];if(s){let Ge=M1(ne,S);Ge&&(ne=Ge.typeNode,CD(s,Ge.symbols))}for(let Ge of Ce)if(Zp(Ge))l(L.createGetAccessorDeclaration(j,ge(N),Ye,J(ne),q(d,ce,B)));else{R.assertNode(Ge,gp,"The counterpart to a getter should be a setter");let ve=WN(Ge),Ie=ve&&Fe(ve.name)?vr(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()?ya(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(FQe(E,i,t,fe,ge(N),Y&&!!(p&1),j,ce,d));break}function z(pe,xe,fe,ne,he){let Ce=G$(174,i,pe,xe,he,ne,fe,Y&&!!(p&1),t,s);Ce&&l(Ce)}function ee(){let pe;return w&&(pe=Tx(pe,L.createModifiersFromModifierFlags(w))),me()&&(pe=Tn(pe,L.createToken(164))),pe&&L.createNodeArray(pe)}function me(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&F0(y))}function ge(pe){return Fe(pe)&&pe.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(vr(pe),ce===0)):sl(pe,!1)}function q(pe,xe,fe){return fe?void 0:sl(pe,!1)||Zfe(xe)}function J(pe){return sl(pe,!1)}function re(pe,xe){if(Al(pe)&262144){let fe=pe.links.nameType;if(fe&&Zf(fe))return L.createIdentifier(Vi(em(fe)))}return sl(No(xe),!1)}}function G$(e,t,r,i,o,s,l,d,p,h){let m=t.program,y=m.getTypeChecker(),E=rs(m.getCompilerOptions()),S=ar(p),A=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,p,A,DD(t));if(!N)return;let D=S?void 0:N.typeParameters,w=N.parameters,j=S?void 0:N.type;if(h){if(D){let ce=Pc(D,z=>{let ee=z.constraint,me=z.default;if(ee){let ge=M1(ee,E);ge&&(ee=ge.typeNode,CD(h,ge.symbols))}if(me){let ge=M1(me,E);ge&&(me=ge.typeNode,CD(h,ge.symbols))}return L.updateTypeParameterDeclaration(z,z.modifiers,z.name,ee,me)});D!==ce&&(D=st(L.createNodeArray(ce,D.hasTrailingComma),D))}let B=Pc(w,ce=>{let z=S?void 0:ce.type;if(z){let ee=M1(z,E);ee&&(z=ee.typeNode,CD(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=st(L.createNodeArray(B,w.hasTrailingComma),w)),j){let ce=M1(j,E);ce&&(j=ce.typeNode,CD(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(Hl(N))return L.updateMethodDeclaration(N,l,Y,s??L.createIdentifier(""),K,D,w,j,o);if(Sc(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ri(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=rs(t.program.getCompilerOptions()),h=DD(t),m=t.program.getTypeChecker(),y=ar(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}=gMe(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:OQe(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,lB(f.Function_not_implemented.message,d));default:R.fail("Unexpected kind")}}function OQe(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 _Me(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function V$(e,t,r,i,o,s,l){let d=e.typeToTypeNode(r,i,s,l);if(d&&og(d)){let p=M1(d,o);p&&(CD(t,p.symbols),d=p.typeNode)}return sl(d)}function hMe(e){return e.isUnionOrIntersection()?e.types.some(hMe):e.flags&262144}function gMe(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 FQe(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=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 BQe(l,o,s,void 0,A,zQe(i,e,t,r),d,p)}function zQe(e,t,r,i){if(Nn(e)){let o=t.getUnionType(mn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,DD(r))}}function BQe(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 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 eme(e,t,r){let i=TN(t);if(!i)return;let o=nme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,j$("compilerOptions",L.createObjectLiteralExpression(r.map(([l,d])=>j$(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,j$(l,d)):e.replaceNode(t,p.initializer,d)}}function tme(e,t,r,i){eme(e,t,[[r,i]])}function j$(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function nme(e,t){return Gr(e.properties,r=>_c(r)&&!!r.name&&Da(r.name)&&r.name.text===t)}function M1(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=zp(s.qualifier),d=m7(l.symbol,t),p=d!==l.text?vMe(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 vMe(e,t){return e.kind===80?t:L.createQualifiedName(vMe(e.left,t),e.right)}function CD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function rme(e,t){let r=ql(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 bMe(e,t,r,i,o,s){let l=TMe(e,t,r,i);if(!l||R1.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;Ep(m),Ep(y),Ep(N),Ep(A);let D,w;if(di(A)){let K=cu(N);if(lu(e)){let Y=L.createModifiersFromModifierFlags(K);D=Y,w=Y}else D=L.createModifiersFromModifierFlags(UQe(K)),w=L.createModifiersFromModifierFlags(HQe(K));jT(N)&&(w=bo(Rv(N),w))}YQe(d,e,N,S,m,w);let j=KQe(m,y,S,D,p,A);if(Ep(j),AMe(d,e,j,N,A),h){let K=tg(A);K&&$Qe(d,e,K,m.text,E)}else{let K=JQe(m,y,S,D,p,A);Ep(K),AMe(d,e,K,N,A)}return d.getChanges()}function VQe(e){return Fe(e)||Da(e)}function jQe(e){return up(e,e.parent)||jo(e)||_c(e)}function EMe(e,t){return Fe(t)?L.createIdentifier(e):L.createStringLiteral(e)}function SMe(e,t,r){let i=t?r.name:L.createThis();return Fe(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function UQe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function HQe(e){return e&=-2,e&=-5,e|=2,e}function TMe(e,t,r,i,o=!0){let s=so(e,r),l=r===i&&o,d=Fn(s.parent,jQe),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(!VQe(d.name))return{error:ko(f.Name_is_not_valid)};if((cu(d)&98303|p)!==p)return{error:ko(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=gX(h),y=EMe(m?h:eA(`_${h}`,e),d.name),E=EMe(m?eA(h.substring(1),e):h,d.name);return{isStatic:fc(d),isReadonly:FN(d),type:QQe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:y,accessorName:E,renameAccessor:m}}function KQe(e,t,r,i,o,s){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(SMe(e,o,s))],!0))}function JQe(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(SMe(e,o,s),L.createIdentifier("value")))],!0))}function qQe(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 XQe(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 YQe(e,t,r,i,o,s){jo(r)?qQe(e,t,r,i,o,s):_c(r)?XQe(e,t,r,o):e.replaceNode(t,r,L.updateParameterDeclaration(r,s,r.dotDotDotToken,ta(o,Fe),r.questionToken,r.type,r.initializer))}function AMe(e,t,r,i,o){up(i,i.parent)?e.insertMemberAtStart(t,o,r):_c(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function $Qe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Ys(l)&&l.expression.kind===110&&Da(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 QQe(e,t){let r=kie(e);if(jo(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=L0(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 ZQe=bt({"src/services/codefixes/generateAccessors.ts"(){"use strict";ai()}});function eZe(e,t){let r=Vn(t),i=aR(t),o=e.program.getCompilerOptions(),s=[];return s.push(IMe(e,r,t,Jy(i.name,void 0,t.moduleSpecifier,af(r,e.preferences)))),kd(o)===1&&s.push(IMe(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),s}function IMe(e,t,r,i){let o=fr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return t_(ame,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function tZe(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 xMe(e,o)}function nZe(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?xMe(e,r):[]}function xMe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&uh(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Wp(o)||Ur(i,eZe(e,o)),ht(t)&&!(ou(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(t_(ame,l,f.Use_synthetic_default_member))}return i}var ame,rZe=bt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";ai(),Ta(),ame="invalidImportSyntax",ba({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:tZe}),ba({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:nZe})}});function RMe(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:ar(r.parent)}}}function iZe(e,t){if(t.isJs)return;let r=fr.ChangeTracker.with(e,i=>DMe(i,e.sourceFile,t.prop));return ia(U$,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],H$,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function DMe(e,t,r){Ep(r);let i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function oZe(e,t){let r=fr.ChangeTracker.with(e,i=>CMe(i,e.sourceFile,t));return ia(U$,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],K$,f.Add_undefined_type_to_all_uninitialized_properties)}function CMe(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 aZe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=PMe(r,t.prop);if(!i)return;let o=fr.ChangeTracker.with(e,s=>NMe(s,e.sourceFile,t.prop,i));return ia(U$,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],J$,f.Add_initializers_to_all_uninitialized_properties)}function NMe(e,t,r,i){Ep(r);let o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function PMe(e,t){return MMe(e,e.getTypeFromTypeNode(t.type))}function MMe(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 Fl(t.types,r=>MMe(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 U$,H$,K$,J$,sme,sZe=bt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";ai(),Ta(),U$="strictClassInitialization",H$="addMissingPropertyDefiniteAssignmentAssertions",K$="addMissingPropertyUndefinedType",J$="addMissingPropertyInitializer",sme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],ba({errorCodes:sme,getCodeActions:function(t){let r=RMe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Tn(i,oZe(t,r)),Tn(i,iZe(t,r)),Tn(i,aZe(t,r)),i},fixIds:[H$,K$,J$],getAllCodeActions:e=>vs(e,sme,(t,r)=>{let i=RMe(r.file,r.start);if(i)switch(e.fixId){case H$:DMe(t,r.file,i.prop);break;case K$:CMe(t,r.file,i);break;case J$:let o=e.program.getTypeChecker(),s=PMe(o,i.prop);if(!s)return;NMe(t,r.file,i.prop,s);break;default:R.fail(JSON.stringify(e.fixId))}})})}});function LMe(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 kMe(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=nm(o.name)?lZe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:CT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:ta(o.parent.parent,Ml),required:Va(i.arguments)}}function lZe(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 q$,lme,cZe=bt({"src/services/codefixes/requireInTs.ts"(){"use strict";ai(),Ta(),q$="requireInTs",lme=[f.require_call_may_be_converted_to_an_import.code],ba({errorCodes:lme,getCodeActions(e){let t=kMe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=fr.ChangeTracker.with(e,i=>LMe(i,e.sourceFile,t));return[ia(q$,r,f.Convert_require_to_import,q$,f.Convert_all_require_to_import)]},fixIds:[q$],getAllCodeActions:e=>vs(e,lme,(t,r)=>{let i=kMe(r.file,e.program,r.start);i&&LMe(t,e.sourceFile,i)})})}});function wMe(e,t){let r=so(e,t);if(!Fe(r))return;let{parent:i}=r;if(nd(i)&&Eh(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 OMe(e,t,r,i){e.replaceNode(t,r.importNode,Jy(r.name,void 0,r.moduleSpecifier,af(t,i)))}var X$,cme,dZe=bt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";ai(),Ta(),X$="useDefaultImport",cme=[f.Import_may_be_converted_to_a_default_import.code],ba({errorCodes:cme,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=wMe(t,r);if(!i)return;let o=fr.ChangeTracker.with(e,s=>OMe(s,t,i,e.preferences));return[ia(X$,o,f.Convert_to_default_import,X$,f.Convert_all_to_default_imports)]},fixIds:[X$],getAllCodeActions:e=>vs(e,cme,(t,r)=>{let i=wMe(r.file,r.start);i&&OMe(t,r.file,i,e.preferences)})})}});function WMe(e,t,r){let i=ri(so(t,r.start),_p);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var Y$,dme,uZe=bt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";ai(),Ta(),Y$="useBigintLiteral",dme=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],ba({errorCodes:dme,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>WMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(Y$,r,f.Convert_to_a_bigint_numeric_literal,Y$,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[Y$],getAllCodeActions:e=>vs(e,dme,(t,r)=>WMe(t,r.file,r))})}});function FMe(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 zMe(e,t,r){let i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var BMe,$$,ume,pZe=bt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";ai(),Ta(),BMe="fixAddModuleReferTypeMissingTypeof",$$=BMe,ume=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ba({errorCodes:ume,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=FMe(r,i.start),s=fr.ChangeTracker.with(t,l=>zMe(l,r,o));return[ia($$,s,f.Add_missing_typeof,$$,f.Add_missing_typeof)]},fixIds:[$$],getAllCodeActions:e=>vs(e,ume,(t,r)=>zMe(t,e.sourceFile,FMe(r.file,r.start)))})}});function GMe(e,t){let o=so(e,t).parent.parent;if(!(!pr(o)&&(o=o.parent,!pr(o)))&&zl(o.operatorToken))return o}function VMe(e,t,r){let i=fZe(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function fZe(e){let t=[],r=e;for(;;)if(pr(r)&&zl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),_2(r.right))return t.push(r.right),t;if(pr(r.right)){r=r.right;continue}else return}else return}var Q$,pme,mZe=bt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";ai(),Ta(),Q$="wrapJsxInFragment",pme=[f.JSX_expressions_must_have_one_parent_element.code],ba({errorCodes:pme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=GMe(r,i.start);if(!o)return;let s=fr.ChangeTracker.with(t,l=>VMe(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=GMe(e.sourceFile,r.start);i&&VMe(t,e.sourceFile,i)})})}});function jMe(e,t){let r=so(e,t),i=ri(r.parent.parent,U0);if(!i)return;let o=fu(i.parent)?i.parent:ri(i.parent.parent,Im);if(o)return{indexSignature:i,container:o}}function _Ze(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function UMe(e,t,{indexSignature:r,container:i}){let s=(fu(i)?i.members:i.type.members).filter(m=>!U0(m)),l=Va(r.parameters),d=L.createTypeParameterDeclaration(void 0,ta(l.name,Fe),l.type),p=L.createMappedTypeNode(FN(r)?L.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=L.createIntersectionTypeNode([...CN(i),p,...s.length?[L.createTypeLiteralNode(s)]:Ye]);e.replaceNode(t,i,_Ze(i,h))}var Z$,fme,hZe=bt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";ai(),Ta(),Z$="fixConvertToMappedObjectType",fme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],ba({errorCodes:fme,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=jMe(r,i.start);if(!o)return;let s=fr.ChangeTracker.with(t,d=>UMe(d,r,o)),l=vr(o.container.name);return[ia(Z$,s,[f.Convert_0_to_mapped_object_type,l],Z$,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[Z$],getAllCodeActions:e=>vs(e,fme,(t,r)=>{let i=jMe(r.file,r.start);i&&UMe(t,r.file,i)})})}}),mme,HMe,gZe=bt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";ai(),Ta(),mme="removeAccidentalCallParentheses",HMe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],ba({errorCodes:HMe,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[t_(mme,r,f.Remove_parentheses)]},fixIds:[mme]})}});function KMe(e,t,r){let i=ri(so(t,r.start),d=>d.kind===135),o=i&&ri(i.parent,qv);if(!o)return;let s=o;if(Fu(o.parent)){let d=ER(o.expression,!1);if(Fe(d)){let p=Ac(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var eQ,_me,yZe=bt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";ai(),Ta(),eQ="removeUnnecessaryAwait",_me=[f.await_has_no_effect_on_the_type_of_this_expression.code],ba({errorCodes:_me,getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>KMe(i,t.sourceFile,t.span));if(r.length>0)return[ia(eQ,r,f.Remove_unnecessary_await,eQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[eQ],getAllCodeActions:e=>vs(e,_me,(t,r)=>KMe(t,r.file,r))})}});function JMe(e,t){return Fn(so(e,t.start),Lc)}function qMe(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,tQ,vZe=bt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";ai(),Ta(),hme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],tQ="splitTypeOnlyImport",ba({errorCodes:hme,fixIds:[tQ],getCodeActions:function(t){let r=fr.ChangeTracker.with(t,i=>qMe(i,JMe(t.sourceFile,t.span),t));if(r.length)return[ia(tQ,r,f.Split_into_two_separate_import_declarations,tQ,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>vs(e,hme,(t,r)=>{qMe(t,JMe(e.sourceFile,r),e)})})}});function XMe(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=hs(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function YMe(e,t,r){e.replaceNode(t,r,L.createToken(121))}var nQ,gme,bZe=bt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";ai(),Ta(),nQ="fixConvertConstToLet",gme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],ba({errorCodes:gme,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=XMe(r,i.start,o);if(s===void 0)return;let l=fr.ChangeTracker.with(t,d=>YMe(d,r,s.token));return[hpe(nQ,l,f.Convert_const_to_let,nQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return ID(fr.ChangeTracker.with(e,i=>{xD(e,gme,o=>{let s=XMe(o.file,o.start,t);if(s&&Tm(r,va(s.symbol)))return YMe(i,o.file,s.token)})}))},fixIds:[nQ]})}});function $Me(e,t,r){let i=so(e,t);return i.kind===27&&i.parent&&(Ma(i.parent)||pu(i.parent))?{node:i}:void 0}function QMe(e,t,{node:r}){let i=L.createToken(28);e.replaceNode(t,r,i)}var rQ,ZMe,yme,EZe=bt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";ai(),Ta(),rQ="fixExpectedComma",ZMe=f._0_expected.code,yme=[ZMe],ba({errorCodes:yme,getCodeActions(e){let{sourceFile:t}=e,r=$Me(t,e.span.start,e.errorCode);if(!r)return;let i=fr.ChangeTracker.with(e,o=>QMe(o,t,r));return[ia(rQ,i,[f.Change_0_to_1,";",","],rQ,[f.Change_0_to_1,";",","])]},fixIds:[rQ],getAllCodeActions:e=>vs(e,yme,(t,r)=>{let i=$Me(r.file,r.start,r.code);i&&QMe(t,e.sourceFile,i)})})}});function eLe(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)||!K0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=SZe(p.parent.parent);if(gt(h)){let m=h[0],y=!Kv(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);ar(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 SZe(e){var t;if(ar(e)){if(Fu(e.parent)){let r=(t=rE(e.parent))==null?void 0:t.typeExpression.type;if(r&&xf(r)&&Fe(r.typeName)&&vr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var tLe,vme,bme,TZe=bt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";ai(),Ta(),tLe="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],ba({errorCodes:bme,fixIds:[vme],getCodeActions(e){let t=fr.ChangeTracker.with(e,r=>eLe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ia(tLe,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)=>eLe(t,r.file,r,e.program,new Set))}})}}),Wd={};xa(Wd,{PreserveOptionalFlags:()=>ime,addNewNodeForMemberSymbol:()=>mMe,codeFixAll:()=>vs,createCodeFixAction:()=>ia,createCodeFixActionMaybeFixAll:()=>hpe,createCodeFixActionWithoutFixAll:()=>t_,createCombinedCodeActions:()=>ID,createFileTextChanges:()=>_Ce,createImportAdder:()=>N1,createImportSpecifierResolver:()=>PYe,createJsonPropertyAssignment:()=>j$,createMissingMemberNodes:()=>Yfe,createSignatureDeclarationFromCallExpression:()=>$fe,createSignatureDeclarationFromSignature:()=>G$,createStubbedBody:()=>lB,eachDiagnostic:()=>xD,findAncestorMatchingSpan:()=>rme,findJsonProperty:()=>nme,generateAccessorFromProperty:()=>bMe,getAccessorConvertiblePropertyAtPosition:()=>TMe,getAllFixes:()=>sXe,getAllSupers:()=>ome,getArgumentTypesAndTypeParameters:()=>gMe,getFixes:()=>aXe,getImportCompletionAction:()=>MYe,getImportKind:()=>Hpe,getJSDocTypedefNodes:()=>xYe,getNoopSymbolTrackerWithResolver:()=>DD,getPromoteTypeOnlyCompletionAction:()=>LYe,getSupportedErrorCodes:()=>iXe,importFixName:()=>Qpe,importSymbols:()=>CD,moduleSpecifierToValidIdentifier:()=>$pe,moduleSymbolToValidIdentifier:()=>Ype,parameterShouldGetTypeFromJSDoc:()=>wCe,registerCodeFix:()=>ba,setJsonCompilerOptionValue:()=>tme,setJsonCompilerOptionValues:()=>eme,tryGetAutoImportableReferenceFromTypeNode:()=>M1,typeToAutoImportableTypeNode:()=>V$});var Ta=bt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";lXe(),cXe(),dXe(),fXe(),yXe(),SXe(),TXe(),AXe(),IXe(),CXe(),zXe(),GXe(),QXe(),hYe(),gYe(),vYe(),bYe(),RYe(),DYe(),NYe(),ZYe(),n$e(),o$e(),a$e(),s$e(),d$e(),f$e(),h$e(),E$e(),P$e(),L$e(),z$e(),B$e(),V$e(),j$e(),U$e(),H$e(),J$e(),q$e(),X$e(),Y$e(),$$e(),Z$e(),nQe(),aQe(),_Qe(),gQe(),yQe(),EQe(),SQe(),AQe(),IQe(),LQe(),kQe(),wQe(),GQe(),ZQe(),rZe(),sZe(),cZe(),dZe(),uZe(),pZe(),mZe(),hZe(),gZe(),yZe(),vZe(),bZe(),EZe(),TZe()}});function AZe(e){return!!(e.kind&1)}function IZe(e){return!!(e.kind&2)}function cB(e){return!!(e&&e.kind&4)}function bM(e){return!!(e&&e.kind===32)}function xZe(e){return cB(e)||bM(e)||Eme(e)}function RZe(e){return(cB(e)||bM(e))&&!!e.isFromPackageJson}function DZe(e){return!!(e.kind&8)}function CZe(e){return!!(e.kind&16)}function nLe(e){return!!(e&&e.kind&64)}function rLe(e){return!!(e&&e.kind&128)}function NZe(e){return!!(e&&e.kind&256)}function Eme(e){return!!(e&&e.kind&512)}function iLe(e,t,r,i,o,s,l,d,p){var h,m,y;let E=qs(),S=l||BI(uu(i.getCompilerOptions())),A=!1,N=0,D=0,w=0,j=0,K=p({tryResolve:B,skippedAny:()=>A,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>fQ}),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}: ${qs()-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||oLe(N.data))return N;if(!NLe(N.name,m))return;let{origin:w}=R.checkDefined(gLe(N.name,N.data,i,o)),j=y.get(t.path,N.data.exportMapKey),K=j&&S.tryResolve(j,!$c($f(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=fLe(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=cLe(h),p}function Sme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function aLe(e,t,r,i,o,s){let l=so(e,t);if(!Ux(l)&&!Qm(l))return[];let d=Qm(l)?l:l.parent;if(!Qm(d))return[];let p=d.parent;if(!Yo(p))return[];let h=lu(e),m=o.includeCompletionsWithSnippetText||void 0,y=vv(d.tags,E=>Zm(E)&&E.getEnd()<=t);return to(p.parameters,E=>{if(!Fx(E).length){if(Fe(E.name)){let S={tabstop:1},A=E.name.text,N=HO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),D=m?HO(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=sLe(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),N=m?sLe(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 sLe(e,t,r,i,o,s,l,d,p){if(!o)return[HO(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(nm(E)&&!A){let w={tabstop:N.tabstop},j=HO(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[HO(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?EN(E.propertyName):E.name.text;if(!A)return;let N=`${y}.${A}`;return[HO(N,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=EN(E.propertyName);return A&&h(`${y}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function HO(e,t,r,i,o,s,l,d,p,h){if(s&&R.assertIsDefined(h),t&&(e=LZe(e,t)),s&&(e=V0(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,Yo),D);if(w){let j=s?aQ({removeComments:!0,module:d.module,target:d.target}):xE({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 LZe(e,t){let r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function kZe(e){return{name:ca(e),kind:"keyword",kindModifiers:"",sortText:Fd.GlobalsOrKeywords}}function wZe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function lLe(e,t,r){return{kind:4,keywordCompletions:yLe(e,t),isNewIdentifierLocation:r}}function OZe(e){switch(e){case 156:return 8;default:R.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function cLe(e){return e?.kind===80?Ru(e):void 0}function WZe(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(dk(e.scriptKind)===1){let Ge=zZe(N,e);if(Ge)return Ge}let xe=Fn(y,OR);if(xe&&(mae(y)||M0(y,xe.expression))){let Ge=y7(pe,xe.parent.clauses);re=re.filter(ve=>!Ge.hasValue(ve)),m.forEach((ve,Ie)=>{if(ve.valueDeclaration&&Z0(ve.valueDeclaration)){let De=pe.getConstantValue(ve.valueDeclaration);De!==void 0&&Ge.hasValue(De)&&(j[Ie]={kind:256})}})}let fe=FG(),ne=dLe(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,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 yLe(w,!ge&&lu(e)))(B&&oM(b0(Ge.name))||!B&&Eet(Ge.name)||!he.has(Ge.name))&&(he.add(Ge.name),bv(fe,Ge,dB,!0));for(let Ge of set(y,p))he.has(Ge.name)||(he.add(Ge.name),bv(fe,Ge,dB,!0));for(let Ge of re){let ve=GZe(e,l,Ge);he.add(ve.name),bv(fe,ve,dB,!0)}ne||BZe(e,N.pos,he,rs(i),fe);let Ce;if(l.includeCompletionsWithInsertText&&y&&!z&&!ee&&(Ce=Fn(y,EP))){let Ge=uLe(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:FZe(E),isNewIdentifierLocation:A,optionalReplacementSpan:cLe(N),entries:fe}}function dLe(e,t){return!lu(e)||!!_k(e,t)}function uLe(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=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=iQ(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=aQ({removeComments:!0,module:i.module,target:i.target,newLine:yO(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 iQ(e,t,r){switch(e.kind){case 183:let i=e.typeName;return oQ(i,t,r);case 199:let o=iQ(e.objectType,t,r),s=iQ(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=iQ(e.type,t,r);return d&&(Fe(d)?d:L.createParenthesizedExpression(d));case 186:return oQ(e.exprName,t,r);case 205:R.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function oQ(e,t,r){if(Fe(e))return e;let i=Vi(e.right.escapedText);return vU(i,t)?L.createPropertyAccessExpression(oQ(e.left,t,r),i):L.createElementAccessExpression(oQ(e.left,t,r),L.createStringLiteral(i,r===0))}function FZe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function zZe(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:Fd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function BZe(e,t,r,i,o){EY(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:Fd.JavascriptIdentifiers,isFromUncheckedFile:!0},dB))})}function Tme(e,t,r){return typeof r=="object"?B0(r)+"n":Co(r)?uM(e,t,r):JSON.stringify(r)}function GZe(e,t,r){return{name:Tme(e,t,r),kind:"string",kindModifiers:"",sortText:Fd.LocationPriority}}function VZe(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=Bq(r),re,pe,xe=Ame(y),fe,ne,he,Ce=p.getTypeChecker(),Ge=y&&CZe(y),ve=y&&IZe(y)||m;if(y&&AZe(y))ge=m?`this${Ge?"?.":""}[${mLe(l,j,h)}]`:`this${Ge?"?.":"."}${h}`;else if((ve||Ge)&&S){ge=ve?m?`[${mLe(l,j,h)}]`:`[${h}]`:h,(Ge||S.questionDotToken)&&(ge=`?.${ge}`);let De=hs(S,25,l)||hs(S,29,l);if(!De)return;let ke=ao(h,S.name.text)?S.name.end:De.end;J=uc(De.getStart(l),ke)}if(A&&(ge===void 0&&(ge=h),ge=`{${ge}}`,typeof A!="boolean"&&(J=Ru(A,l))),y&&DZe(y)&&S){ge===void 0&&(ge=h);let De=Ac(S.pos,l),ke="";De&&l7(De.end,De.parent,l)&&(ke=";"),ke+=`(await ${S.expression.getText()})`,ge=m?`${ke}${ge}`:`${ke}${Ge?"?.":"."}${ge}`;let be=ri(S.parent,qv)?S.parent:S.expression;J=uc(be.getStart(l),S.end)}if(bM(y)&&(fe=[sf(y.moduleSpecifier)],N&&({insertText:ge,replacementSpan:J}=XZe(h,N,y,D,l,w,j),pe=j.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(ne=!0),K===0&&i&&((ee=Ac(i.pos,l,i))==null?void 0:ee.kind)!==28&&(Hl(i.parent.parent)||Zp(i.parent.parent)||gp(i.parent.parent)||Vy(i.parent)||((me=Fn(i.parent,_c))==null?void 0:me.getLastToken(l))===i||ep(i.parent)&&ys(l,i.getEnd()).line!==ys(l,s).line)&&(xe="ObjectLiteralMemberWithComma/",ne=!0),j.includeCompletionsWithClassMemberSnippets&&j.includeCompletionsWithInsertText&&K===3&&jZe(e,o,l)){let De,ke=pLe(d,p,w,j,h,e,o,s,i,Y);if(ke)({insertText:ge,filterText:q,isSnippet:pe,importAdder:De}=ke),De?.hasFixes()&&(ne=!0,xe="ClassMemberSnippet/");else return}if(y&&rLe(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"&&!(k_(o.parent)&&o.parent.initializer)){let De=j.jsxAttributeCompletionStyle==="braces",ke=Ce.getTypeOfSymbolAtLocation(e,o);j.jsxAttributeCompletionStyle==="auto"&&!(ke.flags&528)&&!(ke.flags&1048576&&Gr(ke.types,Et=>!!(Et.flags&528)))&&(ke.flags&402653316||ke.flags&1048576&&oo(ke.types,Et=>!!(Et.flags&402686084||mde(Et)))?(ge=`${V0(h)}=${uM(l,j,"$1")}`,pe=!0):De=!0),De&&(ge=`${V0(h)}={$1}`,pe=!0)}if(ge!==void 0&&!j.includeCompletionsWithInsertText)return;(cB(y)||bM(y))&&(re=fLe(y),ne=!N);let Ie=Fn(o,T6);if(Ie?.kind===275){let De=b0(h);Ie&&De&&(De===135||Cj(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:YZe(e,E,Ce)||void 0,insertText:ge,filterText:q,replacementSpan:J,sourceDisplay:fe,labelDetails:he,isSnippet:pe,isPackageJsonImport:RZe(y)||void 0,isImportStatementCompletion:!!N||void 0,data:re,...z?{symbol:e}:void 0}}function jZe(e,t,r){return ar(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&&BR(t)&&di(t.parent))}function pLe(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=aQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:yO(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),qU(me,{kind:0,order:0})}else j=L.createBlock([],!0);let K=0,{modifiers:Y,range:B,decorators:ce}=UZe(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(E0(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 UZe(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|=D_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Ed)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=HZe(e)){let d=OI(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 HZe(e){if(Sa(e))return e.kind;if(Fe(e)){let t=nE(e);if(t&&Ny(t))return t}}function KZe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),y=JZe(e,r,m,i,o,l);if(!y)return;let E=aQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:yO(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=xE({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 JZe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=sl(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=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||!yh(N))return;let D;if(s.includeCompletionsWithSnippetText){let j=L.createEmptyStatement();D=L.createBlock([j],!0),qU(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 aQ(e){let t,r=fr.createWriter(Wy(e)),i=xE(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=V0(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=ya(S,Y=>{let B=fr.assignPositionsToNode(Y);return wc.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=wc.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 fLe(e){let t=e.fileName?void 0:$f(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return bM(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:$f(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function qZe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return oLe(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 XZe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=V0(uM(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?` ${ca(156)} `:" ",A=E?`${ca(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:d,insertText:`import${S}${V0(e)}${m} = require(${p})${N}`};case 1:return{replacementSpan:d,insertText:`import${S}${V0(e)}${m} from ${p}${N}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${V0(e)} from ${p}${N}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${V0(e)}${m} } from ${p}${N}`}}}function mLe(e,t,r){return/^\d+$/.test(r)?r:uM(e,t,r)}function YZe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Ame(e){if(cB(e))return $f(e.moduleSymbol.name);if(bM(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=qs(),q=yet(i,o),J=_O(l),re=p.getTypeChecker(),pe=new Map;for(let ne=0;neze.getSourceFile()===o.getSourceFile()));pe.set(ve,be),bv(t,Et,dB,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(qs()-ge)),{has:ne=>pe.has(ne),add:ne=>pe.set(ne,!0)};function xe(ne,he){var Ce;let Ge=ne.flags;if(!Yi(o)){if(Ll(o.parent))return!0;if(ri(q,Oi)&&ne.valueDeclaration===q)return!1;let ve=ne.valueDeclaration??((Ce=ne.declarations)==null?void 0:Ce[0]);if(q&&ve&&(_l(q)&&_l(ve)||To(q)&&To(ve))){let De=ve.pos,ke=To(q)?q.parent.parameters:PT(q.parent)?void 0:q.parent.typeParameters;if(De>=q.pos&&ke&&DeTme(r,l,K)===o.name);return j!==void 0?{type:"literal",literal:j}:Fl(h,(K,Y)=>{let B=S[Y],ce=lQ(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||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 ZZe(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}=sQ(i,r);if(S1(r,i,A))return _Q.getStringLiteralCompletionDetails(y,r,i,A,e,s,p,d);let D=_Le(e,t,r,i,o,s,d);switch(D.type){case"request":{let{request:w}=D;switch(w.kind){case 1:return LE.getJSDocTagNameCompletionDetails(y);case 2:return LE.getJSDocTagCompletionDetails(y);case 3:return LE.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}=eet(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=uLe(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 wme().some(w=>w.name===y)?xme(y,"keyword",5):void 0;default:R.assertNever(D)}}function xme(e,t,r){return uB(e,"",t,[tp(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 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 eet(e,t,r,i,o,s,l,d,p,h,m,y,E,S,A,N){if(S?.moduleSpecifier&&m&&ILe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[sf(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:ce,eraseRange:z}=pLe(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(nLe(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)||bM(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&&su(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 tet(e,t,r,i,o,s,l){let d=_Le(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function net(e,t,r){return Fl(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 ret(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,OR);return s?cX(s,i):void 0;case 19:return SP(o)&&!ag(o.parent)&&!Y0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=$O.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 Dme(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Va(i):e.parent&&(iet(e.parent)?e:Dme(e.parent,t,r))}function iet(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function hLe(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),y=dLe(r,i),E=qs(),S=so(r,o);t("getCompletionData: Get current token: "+(qs()-E)),E=qs();let A=Hy(r,o,S);t("getCompletionData: Is inside comment: "+(qs()-E));let N=!1,D=!1;if(A){if(ude(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let We=im(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(We,o)))return{kind:2}}}let ue=cet(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&&Zm(ue)&&(zl(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=qs();let w=!N&&lu(r),j=sQ(o,r),K=j.previousToken,Y=j.contextToken;t("getCompletionData: Get previous token: "+(qs()-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=ILe(Y,r);if(ue.keywordCompletion){if(ue.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[kZe(ue.keywordCompletion)],isNewIdentifierLocation:ue.isNewIdentifierLocation};xe=OZe(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?lLe(xe,w,da()):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=bR(ce);if(zl(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(!ALe(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?lLe(xe,w,fe):void 0;t("getCompletionData: Semantic work: "+(qs()-he));let nt=K&&ret(K,o,r,m),_t=!ri(K,ss)&&!J?to(nt&&(nt.isUnion()?nt.types:[nt]),ue=>ue.isLiteral()&&!(ue.flags&1024)?ue.value:void 0):[],Je=K&&nt&&net(K,nt,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:ke,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=rm(ue)?ue.constraint:ue.typeExpression;return We&&We.kind===316?We:void 0}if(d1(ue)||q4(ue))return ue.class}function en(){Ce=2;let ue=Ov(B),We=ue&&!B.isTypeOf||Yh(B.parent)||rO(Y,r,m),Ne=Lz(B);if(Yu(B)||ue||kr(B)){let It=Xl(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=>Nme(gi,m),Bn=It?gi=>{var xi;return!!(gi.flags&1920)&&!((xi=gi.declarations)!=null&&xi.every(nr=>nr.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 nr=z&&!ee&&s.includeAutomaticOptionalChainCompletions!==!1;(nr||ee)&&(gi=gi.getNonNullableType(),nr&&(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)&&Jn(Dt,!1,Ne);else ve.push(...Vr(uQ(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)&&Jn(Kt,!0,Ne)}}function Jn(ue,We,Ne){var It;let Dt=Fl(ue.declarations,Bn=>ri(No(Bn),$a));if(Dt){let Bn=pn(Dt.expression),gi=Bn&&m.getSymbolAtLocation(Bn),xi=gi&&Dme(gi,Y,m),nr=xi&&va(xi);if(nr&&Tm(Et,nr)){let Wr=ve.length;ve.push(xi);let ho=xi.parent;if(!ho||!aO(ho)||m.tryGetMemberInModuleExportsAndProperties(xi.name,ho)!==xi)De[Wr]={kind:wn(2)};else{let Pi=$c($f(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,_E(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(nr&&Et.has(nr))return;En(ue),Kt(ue),ve.push(ue)}}else En(ue),Kt(ue),ve.push(ue);function Kt(Bn){_et(Bn)&&(ke[va(Bn)]=Fd.LocalDeclarationPriority)}function En(Bn){s.includeCompletionsWithInsertText&&(We&&Tm(Et,va(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()||dt()||ct()||qt()||Rt()||hi()||(Li(),1))===1}function qt(){return we(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(dQ(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=lt(Y)?5:1,Ce=1,fe=da(),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&&!_E(K);ve=bo(ve,m.getSymbolsInScope(We,Ne)),R.assertEachIsDefined(ve,"getSymbolsInScope() should all be defined");for(let Dt=0;DtEn.getSourceFile()===r)&&(ke[va(Kt)]=Fd.GlobalsOrKeywords),It&&!(Kt.flags&111551)){let En=Kt.declarations&&Gr(Kt.declarations,a2);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&&!met(Dt,r,m))for(let Kt of uQ(Dt,m))De[ve.length]={kind:1},ve.push(Kt),ke[va(Kt)]=Fd.SuggestedClassMembers}$e(),be&&(xe=Y&&uT(Y.parent)?6:7)}function Eo(){return re?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Hq(e.getCompilerOptions())?!0:gde(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&&aE(pe.parent)||!Sr(Y)&&(rO(Y,r,m)||Yh(pe)||on(Y))}function Sr(ue){return ue&&(ue.kind===114&&(ue.parent.kind===186||kR(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||TI(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=vO(r,d,e,s,h),En=(We=d.getPackageJsonAutoImportProvider)==null?void 0:We.call(d),wn=l?void 0:fM(r,s,d);iLe("collectAutoImports",d,Ie||(Ie=Wd.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!re,_E(pe),gi=>{Kt.search(r.path,me,(xi,nr)=>{if(!$p(xi,rs(d.getCompilationSettings()))||!l&&LI(xi)||!be&&!re&&!(nr&111551)||be&&!(nr&790504))return!1;let Wr=xi.charCodeAt(0);return me&&(Wr<65||Wr>90)?!1:l?!0:NLe(xi,It)},(xi,nr,Wr,ho)=>{if(l&&!gt(xi,Os=>l.source===$f(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&&yR(Ri.symbol)||Ri.symbol;Wt(xn,{kind:Hr?32:4,moduleSpecifier:Hr,symbolName:nr,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 nr=$f(gi.moduleSymbol.name);return F_.nodeCoreModules.has(nr)&&ao(nr,"node:")!==h7(r,e)?!1:wn?wn.allowsImportingAmbientModule(gi.moduleSymbol,ze(gi.isFromPackageJson)):!0}return IX(gi.isFromPackageJson?En:e,r,xi,s,wn,ze(gi.isFromPackageJson),Dt)}}function Wt(ue,We){let Ne=va(ue);ke[Ne]!==Fd.GlobalsOrKeywords&&(De[ve.length]=We,ke[Ne]=re?Fd.LocationPriority:Fd.AutoImportSuggestions,ve.push(ue))}function In(ue,We){ar(pe)||ue.forEach(Ne=>{if(!si(Ne))return;let It=lQ(Ne,rs(i),void 0,0,!1);if(!It)return;let{name:Dt}=It,Kt=KZe(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&&!Pq(It,We,Ne);)It=It.parent;return It}function $i(ue){let We=qs(),Ne=Ba(ue)||Tt(ue)||Bt(ue)||Ao(ue)||L4(ue);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(qs()-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 da(){if(Y){let ue=Y.parent.kind,We=cQ(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(ZU(ue)||MV(ue))&&(eO(ue,o)||o===ue.end&&(!!ue.isUnterminated||ZU(ue)))}function vn(){let ue=pet(Y);if(!ue)return 0;let Ne=(n1(ue.parent)?ue.parent:void 0)||ue,It=TLe(Ne,m);if(!It)return 0;let Dt=m.getTypeFromTypeNode(Ne),Kt=uQ(It,m),En=uQ(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=oet(Y,o,r);if(!We)return 0;Ce=0;let Ne,It;if(We.kind===210){let Dt=het(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=dQ(Dt,Kt,We,m),It=We.properties,Ne.length===0&&!wn)return 0}else{R.assert(We.kind===206),fe=!1;let Dt=x_(We.parent);if(!Qx(Dt))return R.fail("Root declaration is not variable-like.");let Kt=Lv(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 dt(){if(Y===void 0)return 0;let ue=Y.kind===19||Y.kind===28?ri(Y.parent,a1):Y.kind===59?ri(Y.parent.parent,a1):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 ct(){var ue;let We=Y&&(Y.kind===19||Y.kind===28)?ri(Y.parent,Rf):void 0;if(!We)return 0;let Ne=Fn(We,Km(Yi,Xl));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)&&(ke[va(It)]=Fd.OptionalMember)}),1}function Rt(){let ue=uet(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)?cu(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?hI(A_(ue)):CN(ue),Dt=ya(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&&$a(wn.name)){let Bn={kind:512,symbolName:m.symbolToString(Kt)};De[En]=Bn}})}return 1}function se(ue){return!!ue.parent&&To(ue.parent)&&Pl(ue.parent.parent)&&(mN(ue.kind)||kg(ue))}function we(ue){if(ue){let We=ue.parent;switch(ue.kind){case 21:case 28:return Pl(ue.parent)?ue.parent:void 0;default:if(se(ue))return We.parent}}}function lt(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=Ac(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 tt(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||TI(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&&!Pl(We.parent);case 130:return Ne===276||Ne===281||Ne===274;case 139:case 153:return!pQ(ue);case 80:{if(Ne===276&&ue===We.name&&ue.text==="type"||Fn(ue.parent,Oi)&&tt(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)&&!Hl(ue.parent)}if(pB(cQ(ue))&&pQ(ue)||se(ue)&&(!Fe(ue)||mN(cQ(ue))||H(ue)))return!1;switch(cQ(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=pE(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&&(Rw(Dt)||yF(Dt)))return!0}return kg(ue)&&!ep(ue.parent)&&!k_(ue.parent)&&!((di(ue.parent)||fu(ue.parent)||_l(ue.parent))&&(ue!==K||o>K.end))}function He(ue,We){return ue.kind!==64&&(ue.kind===27||!Tf(ue.end,We,r))}function pt(ue){return TI(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&&!rO(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&&I_(wn)?MN(wn):void 0}En!==void 0&&It.add(En)}let Dt=ue.filter(Kt=>!It.has(Kt.escapedName));return Le(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=va(ue);ke[We]=ke[We]??Fd.OptionalMember}})}function Le(ue,We){if(ue.size!==0)for(let Ne of We)ue.has(Ne.name)&&(ke[va(Ne)]=Fd.MemberDeclaredBySpreadAssignment)}function Nt(ue){for(let We=ue;We!It.has(Dt.escapedName)&&!!Dt.declarations&&!(Af(Dt)&2)&&!(Dt.valueDeclaration&&au(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(aP(Kt.name)):c1(Kt)&&un(Kt,It));let Dt=ue.filter(Kt=>!Ne.has(Kt.escapedName));return Le(It,Dt),Dt}function H(ue){return ue.getStart(r)<=o&&o<=ue.getEnd()}}function oet(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(Ma(o)||nm(o))return o;break;case 42:return Hl(o)?ri(o.parent,Ma):void 0;case 134:return ri(o.parent,Ma);case 80:if(e.text==="async"&&ep(e.parent))return e.parent.parent;{if(Ma(e.parent.parent)&&(Vy(e.parent)||ep(e.parent)&&ys(r,e.getEnd()).line!==ys(r,t).line))return e.parent.parent;let l=Fn(o,_c);if(l?.getLastToken(r)===e&&Ma(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Hl(o.parent)||Zp(o.parent)||gp(o.parent))&&Ma(o.parent.parent))return o.parent.parent;if(Vy(o)&&Ma(o.parent))return o.parent;let s=Fn(o,_c);if(e.kind!==59&&s?.getLastToken(r)===e&&Ma(s.parent))return s.parent}}}function sQ(e,t){let r=Ac(e,t);return r&&e<=r.end&&(Jh(r)||Wu(r.kind))?{contextToken:Ac(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function gLe(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"&&yR(d)||d,{symbol:d,origin:qZe(t,e,l)}):void 0}function lQ(e,t,r,i,o){if(NZe(r))return;let s=xZe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&L2(s.charCodeAt(0))||Z2(e))return;let l={name:s,needsConvertPropertyAccess:!1};if($p(s,t,o?1:0)||e.valueDeclaration&&au(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 yLe(e,t){if(!t)return vLe(e);let r=e+8+1;return fB[r]||(fB[r]=vLe(e).filter(i=>!aet(b0(i.name))))}function vLe(e){return fB[e]||(fB[e]=wme().filter(t=>{let r=b0(t.name);switch(e){case 0:return!1;case 1:return ELe(r)||r===138||r===144||r===156||r===145||r===128||oM(r)&&r!==157;case 5:return ELe(r);case 2:return pB(r);case 3:return bLe(r);case 4:return mN(r);case 6:return oM(r)||r===87;case 7:return oM(r);case 8:return r===156;default:return R.assertNever(e)}}))}function aet(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 bLe(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 LV(e)}}function ELe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!n6(e)&&!pB(e)}function cQ(e){return Fe(e)?nE(e)??0:e.kind}function set(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Lc(o)||Yl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:ca(132),kind:"keyword",kindModifiers:"",sortText:Fd.GlobalsOrKeywords})}return r}function cet(e,t){return Fn(e,r=>Ux(r)&&Zw(r,t)?!0:Qm(r)?"quit":!1)}function dQ(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=det(s,r,i);return s.isClass()&&SLe(l)?[]:o?Vr(l,d):l;function d(p){return Nn(p.declarations)?gt(p.declarations,h=>h.parent!==r):!0}}function det(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()&&SLe(i.getApparentProperties())))):e.getApparentProperties()}function SLe(e){return gt(e,t=>!!(Af(t)&6))}function uQ(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 uet(e,t,r,i){switch(r.kind){case 358:return ri(r.parent,FI);case 1:let o=ri(Zs(ta(r.parent,Yi).statements),FI);if(o&&!hs(o,20,e))return o;break;case 81:if(ri(r.parent,jo))return Fn(r,di);break;case 80:{if(nE(r)||jo(r.parent)&&r.parent.initializer===r)return;if(pQ(r))return Fn(r,FI)}}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 pQ(r)&&r.parent.name===r?r.parent.parent:ri(r,FI);case 19:case 28:return ri(t.parent,FI);default:if(FI(r)){if(ys(e,t.getEnd()).line!==ys(e,i).line)return r;let o=di(t.parent.parent)?pB:bLe;return o(t.kind)||t.kind===42||Fe(t)&&o(nE(t)??0)?t.parent.parent:void 0}return}}}function pet(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(yp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&yp(t.parent))return t.parent;break}}function TLe(e,t){if(!e)return;if(ji(e)&&vF(e.parent))return t.getTypeArgumentConstraint(e);let r=TLe(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 pQ(e){return e.parent&&uF(e.parent)&&FI(e.parent.parent)}function fet(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)&&!!sd(r);case"<":return!!r&&r.kind===30&&(!pr(r.parent)||ALe(r.parent));case"/":return!!r&&(ss(r)?!!V2(r):r.kind===44&&X0(r.parent));case" ":return!!r&&hP(r)&&r.parent.kind===312;default:return R.assertNever(t)}}function ALe({left:e}){return zl(e)}function met(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 _et(e){return!!(e.valueDeclaration&&cu(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function het(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 ILe(e,t){var r,i,o;let s,l=!1,d=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(d||s===156),isTopLevelTypeOnly:!!((i=(r=ri(d,Lc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ri(d,nd))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&RLe(d,e),replacementSpan:get(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,Cme(h.moduleReference)?h:void 0}if(RLe(h,e)&&DLe(h.parent))return h;if(zg(h)||Yv(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),DLe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Yl(h)&&e.kind===42||Rf(h)&&e.kind===20){l=!0,s=161;return}if(hP(e)&&Yi(h))return s=156,e;if(hP(e)&&Lc(h))return s=156,Cme(h.moduleSpecifier)?h:void 0}}function get(e){var t;if(!e)return;let r=Fn(e,Km(Lc,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?xLe((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 tb(s)}function xLe(e){var t;return Gr((t=ri(e,zg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&LI(r.name.text)&&((i=Ac(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function RLe(e,t){return Zu(e)&&(e.isTypeOnly||t===e.name&&Xz(t))}function DLe(e){if(!Cme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(zg(e)){let t=xLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Cme(e){var t;return zl(e)?!0:!((t=ri(Eh(e)?e.expression:e,ss))!=null&&t.text)}function yet(e,t){if(!e)return;let r=Fn(e,o=>C0(o)||CLe(o)||$o(o)?"quit":(To(o)||_l(o))&&!U0(o.parent)),i=Fn(t,o=>C0(o)||CLe(o)||$o(o)?"quit":Oi(o));return r||i}function CLe(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(bd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Tm(r,va(o))&&t.getExportsOfModule(o).some(s=>Nme(s,t,r))}}function vet(e,t){let r=bd(e,t).declarations;return!!Nn(r)&&oo(r,_7)}function NLe(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||{}),fB=[],wme=Eu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:ca(t),kind:"keyword",kindModifiers:"",sortText:Fd.GlobalsOrKeywords});return e})}});function Ome(){let e=new Map;function t(r){let i=e.get(r.name);(!i||Gme[i.kind]({name:eg(S.value,y),kindModifiers:"",kind:"string",sortText:Fd.LocationPriority,replacementSpan:Bq(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return R.assertNever(e)}}function xet(e,t,r,i,o,s,l,d){if(!i||!ss(i))return;let p=LLe(t,i,r,o,s,d);return p&&Ret(e,i,p,t,o.getTypeChecker(),l)}function Ret(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Gr(r.paths,d=>d.name===e);return l&&uB(e,MLe(l.extension),l.kind,[sf(e)])}case 1:{let l=Gr(r.symbols,d=>d.name===e);return l&&Rme(l,l.name,o,i,t,s)}case 2:return Gr(r.types,l=>l.value===e)?uB(e,"","string",[sf(e)]):void 0;default:return R.assertNever(r)}}function PLe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:MLe(d),sortText:Fd.LocationPriority,replacementSpan:l}))}}function MLe(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 LLe(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:OLe(e,t,i,o,s)}:p(S)}case 303:return Ma(d.parent)&&d.name===t?Net(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===ms(A)?kLe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!Uet(t)&&!Wp(d)){let S=$O.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&Cet(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:OLe(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:mQ(l.getTypeArgumentConstraint(S)),isNewIdentifier:!1}:void 0}case 199:let{indexType:y,objectType:E}=m;return Zw(y,r)?kLe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(Wme(m.parent));if(!S)return;let A=Det(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=mQ(o7(t,l,m));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Wme(e){switch(e.kind){case 196:return J2(e);case 217:return Ly(e);default:return e}}function Det(e,t){return to(e.types,r=>r!==t&&Jv(r)&&Da(r.literal)?r.literal.text:void 0)}function Cet(e,t,r,i){let o=!1,s=new Map,l=su(e)?R.checkDefined(Fn(t.parent,k_)):t,d=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=ya(d,h=>{if(!Xd(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(su(e)){let y=i.getTypeOfPropertyOfType(m,vk(l.name));y&&(m=y)}return o=o||!!(m.flags&4),mQ(m,s)});return Nn(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function kLe(e){return e&&{kind:1,symbols:Vr(e.getApparentProperties(),t=>!(t.valueDeclaration&&au(t.valueDeclaration))),hasIndexSignature:lX(e)}}function Net(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:dQ(r,i,t,e),hasIndexSignature:lX(r)}}function mQ(e,t=new Map){return e?(e=Uq(e),e.isUnion()?ya(e.types,r=>mQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Tm(t,e.value)?[e]:Ye):Ye}function EM(e,t,r){return{name:e,kind:t,extension:r}}function Fme(e){return EM(e,"directory",void 0)}function wLe(e,t,r){let i=Vet(e,t),o=e.length===0?void 0:yd(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(il)||s.includes(UL)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function OLe(e,t,r,i,o){return wLe(t.text,t.getStart(e)+1,Pet(e,t,r,i,o))}function Pet(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=zme(h,1,e,m,o,l);return jet(s)||!h.baseUrl&&!h.paths&&(dp(s)||Mne(s))?Met(s,p,h,i,d,y):Oet(s,p,l,h,i,y,m)}function zme(e,t,r,i,o,s){return{extensionsToSearch:mm(Let(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function Met(e,t,r,i,o,s){return r.rootDirs?wet(r.rootDirs,e,t,s,r,i,o):Oo(KO(e,t,s,i,!0,o).values())}function Let(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=[...XN(e),r],o=uu(e);return Yz(o)?pk(e,i):i}function ket(e,t,r,i){e=e.map(s=>Bc(fa(dp(s)?s:Yr(t,s))));let o=Fl(e,s=>hm(s,r,t,i)?r.substr(s.length):void 0);return g0([...e.map(s=>Yr(s,o)),r].map(s=>$b(s)),nT,jd)}function wet(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=ket(e,d,r,p);return g0(ya(h,m=>Oo(KO(t,m,i,s,!0,l).values())),(m,y)=>m.name===y.name&&m.kind===y.kind&&m.extension===y.extension)}function KO(e,t,r,i,o,s,l=Ome()){var d;e===void 0&&(e=""),e=Md(e),Ry(e)||(e=oi(e)),e===""&&(e="."+il),e=Bc(e);let p=Iv(t,e),h=Ry(p)?p:oi(p);if(!o){let S=Ode(h,i);if(S){let N=VN(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(FLe(l,j,w,r,i,D))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!d7(i,h))return l;let y=dX(i,h,r.extensionsToSearch,void 0,["./*"]);if(y)for(let S of y){if(S=fa(S),s&&Rg(S,s,t,m)===0)continue;let{name:A,extension:N}=WLe(rc(S),i.getCompilationSettings(),r,!1);l.add(EM(A,"script",N))}let E=c7(i,h);if(E)for(let S of E){let A=rc(fa(S));A!=="@types"&&l.add(Fme(A))}return l}function WLe(e,t,r,i){let o=rS.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Wg(o)};if(r.referenceKind===0)return{name:e,extension:Wg(e)};let s=Tw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(d=>d!==0&&d!==1)),s[0]===3){if(Ec(e,Ak))return{name:e,extension:Wg(e)};let d=rS.tryGetJSExtensionForFile(e,t);return d?{name:mE(e,d),extension:d}:{name:e,extension:Wg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Ec(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Tu(e),extension:Wg(e)};let l=rS.tryGetJSExtensionForFile(e,t);return l?{name:mE(e,l),extension:l}:{name:e,extension:Wg(e)}}function FLe(e,t,r,i,o,s){let l=p=>s[p],d=(p,h)=>{let m=TR(p),y=TR(h),E=typeof m=="object"?m.prefix.length:p.length,S=typeof y=="object"?y.prefix.length:h.length;return tl(S,E)};return zLe(e,!1,t,r,i,o,Uh(s),l,d)}function zLe(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=TR(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:Wet(E,S,r,i,o,t&&N,s).map(({name:w,kind:j,extension:K})=>EM(w,j,K))})}}return h.forEach(y=>y.results.forEach(E=>e.add(E))),m!==void 0}function Oet(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=Ome(),m=uu(i);if(d){let E=fa(Yr(o.getCurrentDirectory(),d));KO(e,E,s,o,!1,void 0,h)}if(p){let E=c6(i,o);FLe(h,e,E,s,o,p)}let y=GLe(e);for(let E of zet(e,y,l))h.add(EM(E,"external module name",void 0));if(ULe(o,i,t,y,s,h),Yz(m)){let E=!1;if(y===void 0)for(let S of Get(o,t)){let A=EM(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)&&KO(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(hO(o,K)){let B=VN(K,o).exports;if(B){if(typeof B!="object"||B===null)return;let ce=Uh(B),z=D.join("/")+(D.length&&Ry(e)?"/":""),ee=Qv(i,r);zLe(h,!0,z,j,s,o,ce,me=>hI(BLe(B[me],ee)),mK);return}}return A(N)}}ym(t,S)}}return Oo(h.values())}function BLe(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)||Ew(t,r)){let i=e[r];return BLe(i,t)}}}function GLe(e){return Bme(e)?Ry(e)?e:oi(e):void 0}function Wet(e,t,r,i,o,s,l){if(!Sl(e,"*"))return e.includes("*")?Ye:h(e,"script");let d=e.slice(0,e.length-1),p=$G(r,d);if(p===void 0)return e[e.length-2]==="/"?h(d,"directory"):ya(t,y=>{var E;return(E=VLe("",i,y,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return ya(t,m=>VLe(p,i,m,o,s,l));function h(m,y){return ao(m,r)?[{name:$b(m),kind:y,extension:void 0}]:Ye}}function VLe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=TR(r);if(l===void 0||Co(l))return;let d=Iv(l.prefix),p=Ry(l.prefix)?d:oi(d),h=Ry(l.prefix)?"":rc(d),m=Bme(e),y=m?Ry(e)?e:oi(e):void 0,E=m?Yr(p,h+y):p,S=fa(l.suffix),A=S&&l6("_"+S),N=A?[mE(S,A),S]:[S],D=fa(Yr(t,E)),w=m?D:Bc(D)+h,j=S?N.map(ce=>"**/*"+ce):["./*"],K=to(dX(s,D,i.extensionsToSearch,void 0,j),ce=>{let z=B(ce);if(z){if(Bme(z))return Fme(zc(jLe(z))[1]);let{name:ee,extension:me}=WLe(z,s.getCompilationSettings(),i,o);return EM(ee,"script",me)}}),Y=S?Ye:to(c7(s,D),ce=>ce==="node_modules"?void 0:Fme(ce));return[...K,...Y];function B(ce){return Fl(N,z=>{let ee=Fet(fa(ce),w,z);return ee===void 0?void 0:jLe(ee)})}}function Fet(e,t,r){return ao(e,t)&&Sl(e,r)?e.slice(t.length,e.length-r.length):void 0}function jLe(e){return e[0]===il?e.slice(1):e}function zet(e,t,r){let o=r.getAmbientModules().map(s=>$f(s.name)).filter(s=>ao(s,e)&&!s.includes("*"));if(t!==void 0){let s=Bc(t);return o.map(l=>$C(l,s))}return o}function Bet(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=HLe.exec(d);if(!p)return;let[,h,m,y]=p,E=oi(e.path),S=m==="path"?KO(y,E,zme(r,0,e),i,!0,e.path):m==="types"?ULe(i,r,E,GLe(y),zme(r,1,e)):R.fail();return wLe(y,l.pos+h.length,Oo(S.values()))}function ULe(e,t,r,i,o,s=Ome()){let l=new Map,d=u7(()=>wP(t,e))||Ye;for(let h of d)p(h);for(let h of uX(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=Sw(m);if(!(t.types&&!zo(t.types,y)))if(i===void 0)l.has(y)||(s.add(EM(y,"external module name",void 0)),l.set(y,!0));else{let E=Yr(h,m),S=dU(i,y,ky(e));S!==void 0&&KO(S,E,o,e,!1,void 0,s)}}}}function Get(e,t){if(!e.readFile||!e.fileExists)return Ye;let r=[];for(let i of uX(t,e)){let o=VN(i,e);for(let s of KLe){let l=o[s];if(l)for(let d in l)Is(l,d)&&!ao(d,"@types/")&&r.push(d)}}return r}function Vet(e,t){let r=Math.max(e.lastIndexOf(il),e.lastIndexOf(UL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||$p(e.substr(i,o),99)?void 0:yd(t+i,o)}function jet(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(il)}function Uet(e){return ra(e.parent)&&Yc(e.parent.arguments)===e&&Fe(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Gme,HLe,KLe,Het=bt({"src/services/stringCompletions.ts"(){"use strict";jse(),ai(),Vme(),Gme={directory:0,script:1,"external module name":2},HLe=/^(\/\/\/\s*xet,getStringLiteralCompletions:()=>Aet});var Ket=bt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";Het()}}),L1={};xa(L1,{CompletionKind:()=>kme,CompletionSource:()=>Mme,SortText:()=>Fd,StringCompletions:()=>_Q,SymbolOriginInfoKind:()=>Lme,createCompletionDetails:()=>uB,createCompletionDetailsForSymbol:()=>Rme,getCompletionEntriesFromSymbols:()=>Ime,getCompletionEntryDetails:()=>ZZe,getCompletionEntrySymbol:()=>tet,getCompletionsAtPosition:()=>PZe,getPropertiesForObjectExpression:()=>dQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Pme,moduleSpecifierResolutionLimit:()=>fQ});var Vme=bt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";Tet(),Ket()}});function jme(e,t,r,i){let o=Yet(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=Jet(e,t,o,l,r,i);return{indirectUsers:h,...qet(p,s,l.exportKind,r,d)}}}function Jet(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let d=T1(),p=T1(),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)x0(K)&&t.has(K.getSourceFile().fileName)&&w(K);return y.map(Vn)}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(Wp(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&&CI(B)&&w(mB(B));break;case 278:B.exportClause?B.exportClause.kind===280?w(mB(B),!0):h.push(B):S(ttt(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,hQ)||K.getSourceFile();w(Y,!!N(K,!0))}function N(K,Y=!1){return Fn(K,B=>Y&&hQ(B)?"quit":xm(B)&>(B.modifiers,$I))}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||Xet(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(va(K).toString())}}function qet(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=zp(E.qualifier);N.escapedText===bl(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&&Rf(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 Xet(e,t,r){let i=r.getSymbolAtLocation(t);return!!qLe(e,o=>{if(!Yl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Rf(s)&&s.elements.some(d=>r.getExportSpecifierLocalTargetSymbol(d)===i)})}function JLe(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})}}XLe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(Xs(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function Yet(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),XLe(o,(s,l)=>{let d=t.getSymbolAtLocation(l);if(d){let p=va(d).toString(),h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function qLe(e,t){return gn(e.kind===312?e.statements:e.body.statements,r=>t(r)||hQ(r)&&gn(r.body&&r.body.statements,t))}function XLe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(RN(r),r);else qLe(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 YLe(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=Qet(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(bh(h))return l(t,0);if(Ll(h))return y(h);if(Ll(m))return y(m);if(pr(h))return E(h,!0);if(pr(m))return E(m,!0);if(GT(h)||pH(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(Bl(S)){case 1:N=0;break;case 2:N=2;break;default:return}let D=A?r.getSymbolAtLocation(oU(ta(S.left,Ls))):t;return D&&l(D,N)}}function s(){if(!Zet(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=ett(h,r),h.escapedName==="export="&&(h=$et(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=Ume(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return $r(p,2048)?1:0}}function $et(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=R.checkDefined(e.valueDeclaration);if(Ll(o))return(r=ri(o.expression,S_))==null?void 0:r.symbol;if(pr(o))return(i=ri(o.right,S_))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function Qet(e,t){let r=Oi(e)?e:Xa(e)?Wx(e):void 0;return r?e.name!==t||Q0(r.parent)?void 0:Ml(r.parent.parent)?r.parent.parent:void 0:e}function Zet(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 ar(e)&&N0(t.parent.parent);default:return!1}}function Ume(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return aO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function ett(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(ep(r)&&pr(r.parent.parent)&&Bl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function ttt(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,hQ))}function hQ(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,ntt=bt({"src/services/importTracker.ts"(){"use strict";ai(),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 cg(e,t=1){return{kind:t,node:e.name||e,context:rtt(e)}}function qme(e){return e&&e.kind===void 0}function rtt(e){if(Kd(e))return nA(e);if(e.parent){if(!Kd(e.parent)&&!Ll(e.parent)){if(ar(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&&Bl(r)!==0)return nA(r)}if(L_(e.parent)||X0(e.parent))return e.parent.parent;if(FT(e.parent)||q0(e.parent)||uN(e.parent))return e.parent;if(ss(e)){let r=V2(e);if(r){let i=Fn(r,o=>Kd(o)||Hi(o)||Ux(o));return Kd(i)?nA(i):i}}let t=Fn(e,$a);return t?nA(t.parent):void 0}if(e.parent.name===e||Pl(e.parent)||Ll(e.parent)||(SI(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:Ml(e.parent.parent)?e.parent.parent:Vx(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)||Vx(t))):e;case 255:return{start:Gr(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)?hB(r.start,t,r.end):hB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function itt(e,t,r,i,o){let s=zu(i,o),l={use:1},d=k1.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=k1.getAdjustedNode(s,l),m=ott(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:to(d,({definition:y,references:E})=>y&&{definition:p.runWithCancellationToken(t,S=>ltt(y,S,s)),references:E.map(S=>dtt(S,m))})}function ott(e){return e.kind===90||!!DN(e)||X2(e)||e.kind===137&&Pl(e.parent)}function att(e,t,r,i,o){let s=zu(i,o),l,d=$Le(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=NL(d),m=new Map;for(;!h.isEmpty();){let y=h.dequeue();if(!Tm(m,is(y.node)))continue;l=Tn(l,y);let E=$Le(e,t,r,y.node,y.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return mn(l,h=>ptt(h,p))}function $Le(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return k1.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 QLe(o,i,e,r,t,{implementations:!0,use:1})}function stt(e,t,r,i,o,s,l){return mn(ZLe(k1.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function QLe(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return ZLe(k1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function ZLe(e){return e&&ya(e,t=>t.references)}function ltt(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:y,kind:E}=e2e(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:[tp(m.text,17)]}}case 2:{let{node:m}=e,y=ca(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||[sf("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:[tp(pc(m),8)]}}case 5:return{textSpan:tb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[tp(`"${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 _B(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:hB($a(e)?e.expression:e,t)}}function e2e(e,t,r){let i=k1.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 ctt(e,t,r,i,o){return{...gQ(e),...i&&utt(e,t,r,o)}}function dtt(e,t){let r=t2e(e);return t?{...r,isDefinition:e.kind!==0&&n2e(e.node,t)}:r}function t2e(e){let t=gQ(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 gQ(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,...Xme(r,t,e.context)}}}function utt(e,t,r,i){if(e.kind!==0&&Fe(t)){let{node:o,kind:s}=e,l=o.parent,d=t.text,p=ep(l);if(p||cO(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)&&pr(y.parent)&&Qh(y.parent.left)?h:m}else return h}else if(Zu(l)&&!l.propertyName){let h=Jd(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return zo(h.declarations,l)?{prefixText:d+" as "}:Nf}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&&_p(e.node)&&Ls(e.node.parent)){let o=qq(i);return{prefixText:o,suffixText:o}}return Nf}function ptt(e,t){let r=gQ(e);if(e.kind!==0){let{node:i}=e;return{...r,...ftt(i,t)}}else return{...r,kind:"",displayParts:[]}}function ftt(e,t){let r=t.getSymbolAtLocation(Kd(e)&&e.name?e.name:e);return r?e2e(r,t,e):e.kind===210?{kind:"interface",displayParts:[Yd(21),sf("object literal"),Yd(22)]}:e.kind===231?{kind:"local class",displayParts:[Yd(21),sf("anonymous local class"),Yd(22)]}:{kind:lS(e),displayParts:[]}}function mtt(e){let t=gQ(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 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()),uc(i,o)}function Yme(e){return e.kind===0?e.textSpan:hB(e.node,e.node.getSourceFile())}function $me(e){let t=DN(e);return!!t&&_tt(t)||e.kind===90||WI(e)}function n2e(e,t){var r;if(!t)return!1;let i=DN(e)||(e.kind===90?e.parent:X2(e)||e.kind===137&&Pl(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 _tt(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||Q0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return R.failBadSyntaxKind(e)}}var Qme,Zme,e_e,k1,htt=bt({"src/services/findAllReferences.ts"(){"use strict";ai(),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,dt,ct,Rt,se,we={},lt=new Set(Rt.map(G=>G.fileName))){var G,tt;if(dt=r(dt,we),Yi(dt)){let un=ND.getReferenceAtPosition(dt,Be,ct);if(!un?.file)return;let U=ct.getTypeChecker().getMergedSymbol(un.file.symbol);if(U)return h(ct,U,!1,Rt,lt);let Le=ct.getFileIncludeReasons();return Le?[{definition:{type:5,reference:un.reference,file:dt},references:o(un.file,Le,ct)||Ye}]:void 0}if(!we.implementations){let un=y(dt,Rt,se);if(un)return un}let Tt=ct.getTypeChecker(),He=Tt.getSymbolAtLocation(Pl(dt)&&dt.parent.name||dt);if(!He){if(!we.implementations&&ss(dt)){if(Zz(dt)){let un=ct.getFileIncludeReasons(),U=(tt=(G=ct.getResolvedModuleFromModuleSpecifier(dt))==null?void 0:G.resolvedModule)==null?void 0:tt.resolvedFileName,Le=U?ct.getSourceFile(U):void 0;if(Le)return[{definition:{type:4,node:dt},references:o(Le,un,ct)||Ye}]}return jr(dt,Rt,Tt,se)}return}if(He.escapedName==="export=")return h(ct,He.parent,!1,Rt,lt);let pt=l(He,ct,Rt,se,we,lt);if(pt&&!(He.flags&33554432))return pt;let Bt=s(dt,He,Tt),hn=Bt&&l(Bt,ct,Rt,se,we,lt),dn=E(He,dt,Rt,lt,Tt,se,we);return d(ct,pt,dn,hn)}e.getReferencedSymbolsForNode=t;function r(Be,dt){return dt.use===1?Be=Lq(Be):dt.use===2&&(Be=Gz(Be)),Be}e.getAdjustedNode=r;function i(Be,dt,ct,Rt=new Set(ct.map(se=>se.fileName))){var se,we;let lt=(se=dt.getSourceFile(Be))==null?void 0:se.symbol;if(lt)return((we=h(dt,lt,!1,ct,Rt)[0])==null?void 0:we.references)||Ye;let G=dt.getFileIncludeReasons(),tt=dt.getSourceFile(Be);return tt&&G&&o(tt,G,dt)||Ye}e.getReferencesForFileName=i;function o(Be,dt,ct){let Rt,se=dt.get(Be.path)||Ye;for(let we of se)if(RE(we)){let lt=ct.getSourceFileByPath(we.file),G=$P(ct,we);rD(G)&&(Rt=Tn(Rt,{kind:0,fileName:lt.fileName,textSpan:tb(G)}))}return Rt}function s(Be,dt,ct){if(Be.parent&&Uk(Be.parent)){let Rt=ct.getAliasedSymbol(dt),se=ct.getMergedSymbol(Rt);if(Rt!==se)return se}}function l(Be,dt,ct,Rt,se,we){let lt=Be.flags&1536&&Be.declarations&&Gr(Be.declarations,Yi);if(!lt)return;let G=Be.exports.get("export="),tt=h(dt,Be,!!G,ct,we);if(!G||!we.has(lt.fileName))return tt;let Tt=dt.getTypeChecker();return Be=bd(G,Tt),d(dt,tt,E(Be,void 0,ct,we,Tt,Rt,se))}function d(Be,...dt){let ct;for(let Rt of dt)if(!(!Rt||!Rt.length)){if(!ct){ct=Rt;continue}for(let se of Rt){if(!se.definition||se.definition.type!==0){ct.push(se);continue}let we=se.definition.symbol,lt=Jl(ct,tt=>!!tt.definition&&tt.definition.type===0&&tt.definition.symbol===we);if(lt===-1){ct.push(se);continue}let G=ct[lt];ct[lt]={definition:G.definition,references:G.references.concat(se.references).sort((tt,Tt)=>{let He=p(Be,tt),pt=p(Be,Tt);if(He!==pt)return tl(He,pt);let Bt=Yme(tt),hn=Yme(Tt);return Bt.start!==hn.start?tl(Bt.start,hn.start):tl(Bt.length,hn.length)})}}}return ct}function p(Be,dt){let ct=dt.kind===0?Be.getSourceFile(dt.fileName):dt.node.getSourceFile();return Be.getSourceFiles().indexOf(ct)}function h(Be,dt,ct,Rt,se){R.assert(!!dt.valueDeclaration);let we=to(JLe(Be,Rt,dt),G=>{if(G.kind==="import"){let tt=G.literal.parent;if(Jv(tt)){let Tt=ta(tt.parent,og);if(ct&&!Tt.qualifier)return}return cg(G.literal)}else if(G.kind==="implicit"){let tt=G.literal.text!==Vv&&CP(G.referencingFile,Tt=>Tt.transformFlags&2?ag(Tt)||FT(Tt)||Y0(Tt)?Tt:void 0:"skip")||G.referencingFile.statements[0]||G.referencingFile;return cg(tt)}else return{kind:0,fileName:G.referencingFile.fileName,textSpan:tb(G.ref)}});if(dt.declarations)for(let G of dt.declarations)switch(G.kind){case 312:break;case 267:se.has(G.getSourceFile().fileName)&&we.push(cg(G.name));break;default:R.assert(!!(dt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let lt=dt.exports.get("export=");if(lt?.declarations)for(let G of lt.declarations){let tt=G.getSourceFile();if(se.has(tt.fileName)){let Tt=pr(G)&&kr(G.left)?G.left.expression:Ll(G)?R.checkDefined(hs(G,95,tt)):No(G)||G;we.push(cg(Tt))}}return we.length?[{definition:{type:0,symbol:dt},references:we}]:Ye}function m(Be){return Be.kind===148&<(Be.parent)&&Be.parent.operator===148}function y(Be,dt,ct){if(oM(Be.kind))return Be.kind===116&&i1(Be.parent)||Be.kind===148&&!m(Be)?void 0:Ce(dt,Be.kind,ct,Be.kind===148?m:void 0);if($x(Be.parent)&&Be.parent.name===Be)return he(dt,ct);if(QI(Be)&&Il(Be.parent))return[{definition:{type:2,node:Be},references:[cg(Be)]}];if(Qw(Be)){let Rt=wz(Be.parent,Be.text);return Rt&&fe(Rt.parent,Rt)}else if(Aq(Be))return fe(Be.parent,Be);if(uD(Be))return Zn(Be,dt,ct);if(Be.kind===108)return Li(Be)}function E(Be,dt,ct,Rt,se,we,lt){let G=dt&&N(Be,dt,se,!kn(lt))||Be,tt=dt?yi(dt,G):7,Tt=[],He=new j(ct,Rt,dt?A(dt):0,se,we,tt,lt,Tt),pt=!kn(lt)||!G.declarations?void 0:Gr(G.declarations,Jd);if(pt)Et(pt.name,G,pt,He.createSearch(dt,Be,void 0),He,!0,!0);else if(dt&&dt.kind===90&&G.escapedName==="default"&&G.parent)_t(dt,G,He),K(dt,G,{exportingModuleSymbol:G.parent,exportKind:1},He);else{let Bt=He.createSearch(dt,G,void 0,{allSearchSymbols:dt?on(G,dt,se,lt.use===2,!!lt.providePrefixAndSuffixTextForRename,!!lt.implementations):[G]});S(G,He,Bt)}return Tt}function S(Be,dt,ct){let Rt=me(Be);if(Rt)ve(Rt,Rt.getSourceFile(),ct,dt,!(Yi(Rt)&&!zo(dt.sourceFiles,Rt)));else for(let se of dt.sourceFiles)dt.cancellationToken.throwIfCancellationRequested(),z(se,ct,dt)}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,dt,ct,Rt){let{parent:se}=dt;return Jd(se)&&Rt?be(dt,Be,se,ct):Fl(Be.declarations,we=>{if(!we.parent){if(Be.flags&33554432)return;R.fail(`Unexpected symbol at ${R.formatSyntaxKind(dt.kind)}: ${R.formatSymbol(Be)}`)}return yp(we.parent)&&Kv(we.parent.parent)?ct.getPropertyOfType(ct.getTypeFromTypeNode(we.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 dt=Be.declarations&&Gr(Be.declarations,ct=>!Yi(ct)&&!Xl(ct));return dt&&dt.symbol}class j{constructor(dt,ct,Rt,se,we,lt,G,tt){this.sourceFiles=dt,this.sourceFilesSet=ct,this.specialSearchKind=Rt,this.checker=se,this.cancellationToken=we,this.searchMeaning=lt,this.options=G,this.result=tt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=T1(),this.markSeenReExportRHS=T1(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(dt){return this.sourceFilesSet.has(dt.fileName)}getImportSearches(dt,ct){return this.importTracker||(this.importTracker=jme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(dt,ct,this.options.use===2)}createSearch(dt,ct,Rt,se={}){let{text:we=$f(bl(yR(ct)||w(ct)||ct)),allSearchSymbols:lt=[ct]}=se,G=ml(we),tt=this.options.implementations&&dt?vn(dt,ct,this.checker):void 0;return{symbol:ct,comingFrom:Rt,text:we,escapedText:G,parents:tt,allSearchSymbols:lt,includes:Tt=>zo(lt,Tt)}}referenceAdder(dt){let ct=va(dt),Rt=this.symbolIdToReferences[ct];return Rt||(Rt=this.symbolIdToReferences[ct]=[],this.result.push({definition:{type:0,symbol:dt},references:Rt})),(se,we)=>Rt.push(cg(se,we))}addStringOrCommentReference(dt,ct){this.result.push({definition:void 0,references:[{kind:0,fileName:dt,textSpan:ct}]})}markSearchedSymbols(dt,ct){let Rt=is(dt),se=this.sourceFileToSeenSymbols[Rt]||(this.sourceFileToSeenSymbols[Rt]=new Set),we=!1;for(let lt of ct)we=qb(se,va(lt))||we;return we}}function K(Be,dt,ct,Rt){let{importSearches:se,singleReferences:we,indirectUsers:lt}=Rt.getImportSearches(dt,ct);if(we.length){let G=Rt.referenceAdder(dt);for(let tt of we)B(tt,Rt)&&G(tt)}for(let[G,tt]of se)Ge(G.getSourceFile(),Rt.createSearch(G,tt,1),Rt);if(lt.length){let G;switch(ct.exportKind){case 0:G=Rt.createSearch(Be,dt,1);break;case 1:G=Rt.options.use===2?void 0:Rt.createSearch(Be,dt,1,{text:"default"});break;case 2:break}if(G)for(let tt of lt)z(tt,G,Rt)}}function Y(Be,dt,ct,Rt,se,we,lt,G){let tt=jme(Be,new Set(Be.map(Bt=>Bt.fileName)),dt,ct),{importSearches:Tt,indirectUsers:He,singleReferences:pt}=tt(Rt,{exportKind:lt?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,lt?"default":we)){let dn=dt.getSymbolAtLocation(hn),un=gt(dn?.declarations,U=>!!ri(U,Ll));Fe(hn)&&!SI(hn.parent)&&(dn===Rt||un)&&G(hn)}}e.eachExportReference=Y;function B(Be,dt){return Ie(Be,dt)?dt.options.use!==2?!0:Fe(Be)?!(SI(Be.parent)&&Be.escapedText==="default"):!1:!1}function ce(Be,dt){if(Be.declarations)for(let ct of Be.declarations){let Rt=ct.getSourceFile();Ge(Rt,dt.createSearch(ct,Be,0),dt,dt.includesSourceFile(Rt))}}function z(Be,dt,ct){EY(Be).get(dt.escapedText)!==void 0&&Ge(Be,dt,ct)}function ee(Be,dt){return Ky(Be.parent.parent)?dt.getPropertySymbolOfDestructuringAssignment(Be):void 0}function me(Be){let{declarations:dt,flags:ct,parent:Rt,valueDeclaration:se}=Be;if(se&&(se.kind===218||se.kind===231))return se;if(!dt)return;if(ct&8196){let G=Gr(dt,tt=>mp(tt,2)||au(tt));return G?pE(G,263):void 0}if(dt.some(cO))return;let we=Rt&&!(Be.flags&262144);if(we&&!(aO(Rt)&&!Rt.globalExports))return;let lt;for(let G of dt){let tt=$T(G);if(lt&<!==tt||!tt||tt.kind===312&&!Op(tt))return;if(lt=tt,ks(lt)){let Tt;for(;Tt=Sj(lt);)lt=Tt}}return we?lt.getSourceFile():lt}function ge(Be,dt,ct,Rt=ct){return q(Be,dt,ct,()=>!0,Rt)||!1}e.isSymbolReferencedInFile=ge;function q(Be,dt,ct,Rt,se=ct){let we=up(Be.parent,Be.parent.parent)?Va(dt.getSymbolsOfParameterPropertyDeclaration(Be.parent,Be.text)):dt.getSymbolAtLocation(Be);if(we)for(let lt of pe(ct,we.name,se)){if(!Fe(lt)||lt===Be||lt.escapedText!==Be.escapedText)continue;let G=dt.getSymbolAtLocation(lt);if(G===we||dt.getShorthandAssignmentValueSymbol(lt.parent)===we||Jd(lt.parent)&&be(lt,G,lt.parent,dt)===we){let tt=Rt(lt);if(tt)return tt}}}e.eachSymbolReferenceInFile=q;function J(Be,dt){return Vr(pe(dt,Be),se=>!!DN(se)).reduce((se,we)=>{let lt=Rt(we);return!gt(se.declarationNames)||lt===se.depth?(se.declarationNames.push(we),se.depth=lt):ltHe===se)&&Rt(lt,tt))return!0}return!1}e.someSignatureUsage=re;function pe(Be,dt,ct=Be){return to(xe(Be,dt,ct),Rt=>{let se=zu(Be,Rt);return se===Be?void 0:se})}function xe(Be,dt,ct=Be){let Rt=[];if(!dt||!dt.length)return Rt;let se=Be.text,we=se.length,lt=dt.length,G=se.indexOf(dt,ct.pos);for(;G>=0&&!(G>ct.end);){let tt=G+lt;(G===0||!Zb(se.charCodeAt(G-1),99))&&(tt===we||!Zb(se.charCodeAt(tt),99))&&Rt.push(G),G=se.indexOf(dt,G+lt+1)}return Rt}function fe(Be,dt){let ct=Be.getSourceFile(),Rt=dt.text,se=to(pe(ct,Rt,Be),we=>we===dt||Qw(we)&&wz(we,Rt)===dt?cg(we):void 0);return[{definition:{type:1,node:dt},references:se}]}function ne(Be,dt){switch(Be.kind){case 81:if(vE(Be.parent))return!0;case 80:return Be.text.length===dt.length;case 15:case 11:{let ct=Be;return(Oz(ct)||Dq(Be)||nde(Be)||ra(Be.parent)&&vT(Be.parent)&&Be.parent.arguments[1]===Be)&&ct.text.length===dt.length}case 9:return Oz(Be)&&Be.text.length===dt.length;case 90:return dt.length===7;default:return!1}}function he(Be,dt){let ct=ya(Be,Rt=>(dt.throwIfCancellationRequested(),to(pe(Rt,"meta",Rt),se=>{let we=se.parent;if($x(we))return cg(we)})));return ct.length?[{definition:{type:2,node:ct[0].node},references:ct}]:void 0}function Ce(Be,dt,ct,Rt){let se=ya(Be,we=>(ct.throwIfCancellationRequested(),to(pe(we,ca(dt),we),lt=>{if(lt.kind===dt&&(!Rt||Rt(lt)))return cg(lt)})));return se.length?[{definition:{type:2,node:se[0].node},references:se}]:void 0}function Ge(Be,dt,ct,Rt=!0){return ct.cancellationToken.throwIfCancellationRequested(),ve(Be,Be,dt,ct,Rt)}function ve(Be,dt,ct,Rt,se){if(Rt.markSearchedSymbols(dt,ct.allSearchSymbols))for(let we of xe(dt,ct.text,Be))De(dt,we,ct,Rt,se)}function Ie(Be,dt){return!!(YT(Be)&dt.searchMeaning)}function De(Be,dt,ct,Rt,se){let we=zu(Be,dt);if(!ne(we,ct.text)){!Rt.options.implementations&&(Rt.options.findInStrings&&S1(Be,dt)||Rt.options.findInComments&&hde(Be,dt))&&Rt.addStringOrCommentReference(Be.fileName,yd(dt,ct.text.length));return}if(!Ie(we,Rt))return;let lt=Rt.checker.getSymbolAtLocation(we);if(!lt)return;let G=we.parent;if(Zu(G)&&G.propertyName===we)return;if(Jd(G)){R.assert(we.kind===80),Et(we,lt,G,ct,Rt,se);return}if(pN(G)&&G.isNameFirst&&G.typeExpression&&BT(G.typeExpression.type)&&G.typeExpression.type.jsDocPropertyTags&&Nn(G.typeExpression.type.jsDocPropertyTags)){ke(G.typeExpression.type.jsDocPropertyTags,we,ct,Rt);return}let tt=si(ct,lt,we,Rt);if(!tt){Ft(lt,ct,Rt);return}switch(Rt.specialSearchKind){case 0:se&&_t(we,tt,Rt);break;case 1:Je(we,Be,ct,Rt);break;case 2:ft(we,ct,Rt);break;default:R.assertNever(Rt.specialSearchKind)}ar(we)&&Xa(we.parent)&&N0(we.parent.parent.parent)&&(lt=we.parent.symbol,!lt)||nt(we,lt,ct,Rt)}function ke(Be,dt,ct,Rt){let se=Rt.referenceAdder(ct.symbol);_t(dt,ct.symbol,Rt),gn(Be,we=>{Au(we.name)&&se(we.name.left)})}function Et(Be,dt,ct,Rt,se,we,lt){R.assert(!lt||!!se.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:G,propertyName:tt,name:Tt}=ct,He=G.parent,pt=be(Be,dt,ct,se.checker);if(!lt&&!Rt.includes(pt))return;if(tt?Be===tt?(He.moduleSpecifier||Bt(),we&&se.options.use!==2&&se.markSeenReExportRHS(Tt)&&_t(Tt,R.checkDefined(ct.symbol),se)):se.markSeenReExportRHS(Be)&&Bt():se.options.use===2&&Tt.escapedText==="default"||Bt(),!kn(se.options)||lt){let dn=Be.escapedText==="default"||ct.name.escapedText==="default"?1:0,un=R.checkDefined(ct.symbol),U=Ume(un,dn,se.checker);U&&K(Be,un,U,se)}if(Rt.comingFrom!==1&&He.moduleSpecifier&&!tt&&!kn(se.options)){let hn=se.checker.getExportSpecifierLocalTargetSymbol(ct);hn&&ce(hn,se)}function Bt(){we&&_t(Be,pt,se)}}function be(Be,dt,ct,Rt){return ze(Be,ct)&&Rt.getExportSpecifierLocalTargetSymbol(ct)||dt}function ze(Be,dt){let{parent:ct,propertyName:Rt,name:se}=dt;return R.assert(Rt===Be||se===Be),Rt?Rt===Be:!ct.parent.moduleSpecifier}function nt(Be,dt,ct,Rt){let se=YLe(Be,dt,Rt.checker,ct.comingFrom===1);if(!se)return;let{symbol:we}=se;se.kind===0?kn(Rt.options)||ce(we,Rt):K(Be,we,se.exportInfo,Rt)}function Ft({flags:Be,valueDeclaration:dt},ct,Rt){let se=Rt.checker.getShorthandAssignmentValueSymbol(dt),we=dt&&No(dt);!(Be&33554432)&&we&&ct.includes(se)&&_t(we,se,Rt)}function _t(Be,dt,ct){let{kind:Rt,symbol:se}="kind"in dt?dt:{kind:void 0,symbol:dt};if(ct.options.use===2&&Be.kind===90)return;let we=ct.referenceAdder(se);ct.options.implementations?Yt(Be,we,ct):we(Be,Rt)}function Je(Be,dt,ct,Rt){nM(Be)&&_t(Be,ct.symbol,Rt);let se=()=>Rt.referenceAdder(ct.symbol);if(di(Be.parent))R.assert(Be.kind===90||Be.parent.name===Be),Zt(ct.symbol,dt,se());else{let we=Ba(Be);we&&(Dn(we,se()),pn(we,Rt))}}function ft(Be,dt,ct){_t(Be,dt.symbol,ct);let Rt=Be.parent;if(ct.options.use===2||!di(Rt))return;R.assert(Rt.name===Be);let se=ct.referenceAdder(dt.symbol);for(let we of Rt.members)AI(we)&&na(we)&&we.body&&we.body.forEachChild(function lt(G){G.kind===110?se(G):!Yo(G)&&!di(G)&&G.forEachChild(lt)})}function Zt(Be,dt,ct){let Rt=en(Be);if(Rt&&Rt.declarations)for(let se of Rt.declarations){let we=hs(se,137,dt);R.assert(se.kind===176&&!!we),ct(we)}Be.exports&&Be.exports.forEach(se=>{let we=se.valueDeclaration;if(we&&we.kind===174){let lt=we.body;lt&&da(lt,110,G=>{nM(G)&&ct(G)})}})}function en(Be){return Be.members&&Be.members.get("__constructor")}function Dn(Be,dt){let ct=en(Be.symbol);if(ct&&ct.declarations)for(let Rt of ct.declarations){R.assert(Rt.kind===176);let se=Rt.body;se&&da(se,108,we=>{Eq(we)&&dt(we)})}}function Jn(Be){return!!en(Be.symbol)}function pn(Be,dt){if(Jn(Be))return;let ct=Be.symbol,Rt=dt.createSearch(void 0,ct,void 0);S(ct,dt,Rt)}function Yt(Be,dt,ct){if(kg(Be)&&$i(Be.parent)){dt(Be);return}if(Be.kind!==80)return;Be.parent.kind===304&&Ao(Be,ct.checker,dt);let Rt=qt(Be);if(Rt){dt(Rt);return}let se=Fn(Be,G=>!Au(G.parent)&&!ji(G.parent)&&!dT(G.parent)),we=se.parent;if(yF(we)&&we.type===se&&ct.markSeenContainingTypeReference(we))if(Lv(we))lt(we.initializer);else if(Yo(we)&&we.body){let G=we.body;G.kind===241?D0(G,tt=>{tt.expression&<(tt.expression)}):lt(G)}else uT(we)&<(we.expression);function lt(G){hi(G)&&dt(G)}}function qt(Be){return Fe(Be)||kr(Be)?qt(Be.parent):Gy(Be)?ri(Be.parent.parent,Km(di,fu)):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,dt,ct,Rt){if(Be===dt)return!0;let se=va(Be)+","+va(dt),we=ct.get(se);if(we!==void 0)return we;ct.set(se,!1);let lt=!!Be.declarations&&Be.declarations.some(G=>CN(G).some(tt=>{let Tt=Rt.getTypeAtLocation(tt);return!!Tt&&!!Tt.symbol&&uo(Tt.symbol,dt,ct,Rt)}));return ct.set(se,lt),lt}function Li(Be){let dt=D2(Be,!1);if(!dt)return;let ct=256;switch(dt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ct&=Fv(dt),dt=dt.parent;break;default:return}let Rt=dt.getSourceFile(),se=to(pe(Rt,"super",dt),we=>{if(we.kind!==108)return;let lt=D2(we,!1);return lt&&na(lt)===!!ct&<.parent.symbol===dt.symbol?cg(we):void 0});return[{definition:{type:0,symbol:dt.symbol},references:se}]}function Eo(Be){return Be.kind===80&&Be.parent.kind===169&&Be.parent.name===Be}function Zn(Be,dt,ct){let Rt=wu(Be,!1,!1),se=256;switch(Rt.kind){case 174:case 173:if(Sm(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(ac(Rt)||Eo(Be))return;case 262:case 218:break;default:return}let we=ya(Rt.kind===312?dt:[Rt.getSourceFile()],G=>(ct.throwIfCancellationRequested(),pe(G,"this",Yi(Rt)?G:Rt).filter(tt=>{if(!uD(tt))return!1;let Tt=wu(tt,!1,!1);if(!S_(Tt))return!1;switch(Rt.kind){case 218:case 262:return Rt.symbol===Tt.symbol;case 174:case 173:return Sm(Rt)&&Rt.symbol===Tt.symbol;case 231:case 263:case 210:return Tt.parent&&S_(Tt.parent)&&Rt.symbol===Tt.parent.symbol&&na(Tt)===!!se;case 312:return Tt.kind===312&&!ac(Tt)&&!Eo(tt)}}))).map(G=>cg(G));return[{definition:{type:3,node:Fl(we,G=>To(G.node.parent)?G.node:void 0)||Be},references:we}]}function jr(Be,dt,ct,Rt){let se=Bz(Be,ct),we=ya(dt,lt=>(Rt.throwIfCancellationRequested(),to(pe(lt,Be.text),G=>{if(ss(G)&&G.text===Be.text)if(se){let tt=Bz(G,ct);if(se!==ct.getStringType()&&(se===tt||Sr(G,ct)))return cg(G,2)}else return XI(G)&&!RT(G,lt)?void 0:cg(G,2)})));return[{definition:{type:4,node:Be},references:we}]}function Sr(Be,dt){if(hp(Be.parent))return dt.getPropertyOfType(dt.getTypeAtLocation(Be.parent.parent),Be.text)}function on(Be,dt,ct,Rt,se,we){let lt=[];return $e(Be,dt,ct,Rt,!(Rt&&se),(G,tt,Tt)=>{Tt&&In(Be)!==In(Tt)&&(Tt=void 0),lt.push(Tt||tt||G)},()=>!we),lt}function $e(Be,dt,ct,Rt,se,we,lt){let G=OO(dt);if(G){let dn=ct.getShorthandAssignmentValueSymbol(dt.parent);if(dn&&Rt)return we(dn,void 0,void 0,3);let un=ct.getContextualType(G.parent),U=un&&Fl(X7(G,ct,un,!0),ie=>Bt(ie,4));if(U)return U;let Le=ee(dt,ct),Nt=Le&&we(Le,void 0,void 0,4);if(Nt)return Nt;let k=dn&&we(dn,void 0,void 0,3);if(k)return k}let tt=s(dt,Be,ct);if(tt){let dn=we(tt,void 0,void 0,1);if(dn)return dn}let Tt=Bt(Be);if(Tt)return Tt;if(Be.valueDeclaration&&up(Be.valueDeclaration,Be.valueDeclaration.parent)){let dn=ct.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=ul(Be,281);if(!Rt||He&&!He.propertyName){let dn=He&&ct.getExportSpecifierLocalTargetSymbol(He);if(dn){let un=we(dn,void 0,void 0,1);if(un)return un}}if(!Rt){let dn;return se?dn=cO(dt.parent)?e7(ct,dt.parent):void 0:dn=hn(Be,ct),dn&&Bt(dn,4)}if(R.assert(Rt),se){let dn=hn(Be,ct);return dn&&Bt(dn,4)}function Bt(dn,un){return Fl(ct.getRootSymbols(dn),U=>we(dn,U,void 0,un)||(U.parent&&U.parent.flags&96&<(U)?Wt(U.parent,U.name,ct,Le=>we(dn,U,Le,un)):void 0))}function hn(dn,un){let U=ul(dn,208);if(U&&cO(U))return e7(un,U)}}function Wt(Be,dt,ct,Rt){let se=new Map;return we(Be);function we(lt){if(!(!(lt.flags&96)||!Tm(se,va(lt))))return Fl(lt.declarations,G=>Fl(CN(G),tt=>{let Tt=ct.getTypeAtLocation(tt),He=Tt&&Tt.symbol&&ct.getPropertyOfType(Tt,dt);return Tt&&He&&(Fl(ct.getRootSymbols(He),Rt)||we(Tt.symbol))}))}}function In(Be){return Be.valueDeclaration?!!(cu(Be.valueDeclaration)&256):!1}function si(Be,dt,ct,Rt){let{checker:se}=Rt;return $e(dt,ct,se,!1,Rt.options.use!==2||!!Rt.options.providePrefixAndSuffixTextForRename,(we,lt,G,tt)=>(G&&In(dt)!==In(G)&&(G=void 0),Be.includes(G||lt||we)?{symbol:lt&&!(Al(we)&6)?lt:we,kind:tt}:void 0),we=>!(Be.parents&&!Be.parents.some(lt=>uo(we.parent,lt,Rt.inheritsFromCache,se))))}function yi(Be,dt){let ct=YT(Be),{declarations:Rt}=dt;if(Rt){let se;do{se=ct;for(let we of Rt){let lt=Xw(we);lt&ct&&(ct|=lt)}}while(ct!==se)}return ct}e.getIntersectingMeaningFromDeclarations=yi;function $i(Be){return Be.flags&33554432?!(fu(Be)||Im(Be)):Qx(Be)?Lv(Be):Fs(Be)?!!Be.body:di(Be)||f2(Be)}function Ao(Be,dt,ct){let Rt=dt.getSymbolAtLocation(Be),se=dt.getShorthandAssignmentValueSymbol(Rt.valueDeclaration);if(se)for(let we of se.getDeclarations())Xw(we)&1&&ct(we)}e.getReferenceEntriesForShorthandPropertyAssignment=Ao;function da(Be,dt,ct){Bo(Be,Rt=>{Rt.kind===dt&&ct(Rt),da(Rt,dt,ct)})}function Ba(Be){return qj(kz(Be).parent)}function vn(Be,dt,ct){let Rt=dD(Be)?Be.parent:void 0,se=Rt&&ct.getTypeAtLocation(Rt.expression),we=to(se&&(se.isUnionOrIntersection()?se.types:se.symbol===dt.parent?void 0:[se]),lt=>lt.symbol&<.symbol.flags&96?lt.symbol:void 0);return we.length===0?void 0:we}function kn(Be){return Be.use===2&&Be.providePrefixAndSuffixTextForRename}})(k1||(k1={}))}}),ws={};xa(ws,{Core:()=>k1,DefinitionKind:()=>Qme,EntryKind:()=>Zme,ExportKind:()=>Kme,FindReferencesUse:()=>e_e,ImportExport:()=>Jme,createImportTracker:()=>jme,findModuleReferences:()=>JLe,findReferenceOrRenameEntries:()=>stt,findReferencedSymbols:()=>itt,getContextNode:()=>nA,getExportInfo:()=>Ume,getImplementationsAtPosition:()=>att,getImportOrExportSymbol:()=>YLe,getReferenceEntriesForNode:()=>QLe,getTextSpanOfEntry:()=>Yme,isContextWithStartAndEndNode:()=>qme,isDeclarationOfSymbol:()=>n2e,isWriteAccessForReference:()=>$me,nodeEntry:()=>cg,toContextSpan:()=>Xme,toHighlightSpan:()=>mtt,toReferenceEntry:()=>t2e,toRenameLocation:()=>ctt});var t_e=bt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";ntt(),htt()}});function r2e(e,t,r,i,o){var s;let l=o2e(t,r,e),d=l&&[Dtt(l.reference.fileName,l.fileName,l.unverified)]||Ye;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 ytt(m,p)||Ye;if(Qw(p)){let D=wz(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=>Il(j)?"quit":Fs(j));return D?[gB(m,D)]:void 0;case 90:if(!TP(p.parent))break;case 84:let w=Fn(p.parent,bP);if(w)return[Rtt(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(QI(p)&&Il(p.parent)){let D=p.parent.parent,{symbol:w,failedAliasResolution:j}=yQ(D,m,o),K=Vr(D.members,Il),Y=w?m.symbolToString(w,D):"",B=p.getSourceFile();return mn(K,ce=>{let{pos:z}=C_(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}=yQ(p,m,o),S=p;if(i&&E){let D=gn([p,...y?.declarations||Ye],j=>Fn(j,Jre)),w=D&&iR(D);w&&({symbol:y,failedAliasResolution:E}=yQ(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,Att(p,m));if(i&&oo(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let A=Ntt(m,p);if(A&&!(su(p.parent)&&Ptt(A))){let D=gB(m,A,E);if(m.getRootSymbols(y).some(w=>gtt(w,A)))return[D];{let w=SM(m,y,p,E,A)||Ye;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=>qO(j,m,D,p,!1,E)):Ye;return bo(w,i2e(m,p))}if(ic(p)&&Xa(h)&&nm(h.parent)&&p===(h.propertyName||h.name)){let D=lO(p),w=m.getTypeAtLocation(h.parent);return D===void 0?Ye:ya(w.isUnion()?w.types:[w],j=>{let K=j.getProperty(D);return K&&SM(m,K,p)})}let N=i2e(m,p);return bo(d,N.length?N:SM(m,y,p,E))}function gtt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Mc(t.parent)||!A0(t.parent)&&e===((r=ri(t.parent,S_))==null?void 0:r.symbol)}function i2e(e,t){let r=OO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return ya(X7(r,e,i,!1),o=>SM(e,o,t))}return Ye}function ytt(e,t){let r=Fn(t,Qc);if(!(r&&r.name))return;let i=Fn(r,di);if(!i)return;let o=A_(i);if(!o)return;let s=ms(o.expression),l=ed(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let d=Vi(qx(r.name)),p=fc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),d):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),d);if(p)return SM(e,p,t)}function o2e(e,t,r){var i,o;let s=TM(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=TM(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=TM(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=pD(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||Iv(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 vtt(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 a2e(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 btt(e,t,r,i){var o,s;if(Lr(t)&4&&vtt(e,t))return JO(e.getTypeArguments(t)[0],e,r,i);if(a2e(e,t)&&t.aliasTypeArguments)return JO(t.aliasTypeArguments[0],e,r,i);if(Lr(t)&32&&t.target&&a2e(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Im(l)&&xf(l.type)&&l.type.typeArguments)return JO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Ett(e,t,r){let i=zu(t,r);if(i===t)return;if($x(i.parent)&&i.parent.name===i)return JO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=yQ(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),d=Stt(o,l,e),p=d&&JO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,JO(l,e,i,s)];return m.length?[...btt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?SM(e,bd(o,e),i,s):void 0}function JO(e,t,r,i){return ya(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&SM(t,o.symbol,r,i))}function Stt(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 Ttt(e,t,r){let i=r2e(e,t,r);if(!i||i.length===0)return;let o=TM(t.referencedFiles,r)||TM(t.typeReferenceDirectives,r)||TM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:tb(o)};let s=zu(t,r),l=yd(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Att(e,t){return to(t.getIndexInfosAtLocation(e),r=>r.declaration&&gB(t,r.declaration))}function yQ(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&Itt(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function Itt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function xtt(e){if(!xN(e))return!1;let t=Fn(e,r=>Mc(r)?!0:xN(r)?!1:"quit");return!!t&&Bl(t)===5}function SM(e,t,r,i,o){let s=Vr(t.declarations,y=>y!==o),l=Vr(s,y=>!xtt(y)),d=gt(l)?l:s;return p()||h()||mn(d,y=>qO(y,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(nM(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 Sq(r)||Cq(r)?m(s,!1):void 0}function m(y,E){if(!y)return;let S=y.filter(E?Pl:Yo),A=S.filter(N=>!!N.body);return S.length?A.length!==0?A.map(N=>qO(N,e,t,r)):[qO(Ja(S),e,t,r,!1,i)]:void 0}}function qO(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,...ws.toContextSpan(d,p,ws.getContextNode(t)),isLocal:!r_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function Rtt(e,t){let r=ws.getContextNode(e),i=Ru(qme(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 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(mp(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 gB(e,t,r){return qO(t,e,t.symbol,t,!1,r)}function TM(e,t){return Gr(e,r=>QL(r,t))}function Dtt(e,t,r){return{fileName:t,textSpan:uc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Ctt(e){let t=Fn(e,i=>!dD(i)),r=t?.parent;return r&&A0(r)&&VF(r)===t?r:void 0}function Ntt(e,t){let r=Ctt(t),i=r&&e.getResolvedSignature(r);return ri(i&&i.declaration,o=>Yo(o)&&!yh(o))}function Ptt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var i_e,Mtt=bt({"src/services/goToDefinition.ts"(){"use strict";ai(),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"])}}),ND={};xa(ND,{createDefinitionInfo:()=>qO,findReferenceInPosition:()=>TM,getDefinitionAndBoundSpan:()=>Ttt,getDefinitionAtPosition:()=>r2e,getReferenceAtPosition:()=>o2e,getTypeDefinitionAtPosition:()=>Ett});var Ltt=bt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";Mtt()}});function ktt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function wtt(e){return e.includeInlayParameterNameHints==="literals"}function s2e(e){return e.interactiveInlayHints===!0}function Ott(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(tF(i,fe.pos,fe.getFullWidth())&&!(ji(fe)&&!Gy(fe)))return s.includeInlayVariableTypeHints&&Oi(fe)||s.includeInlayPropertyDeclarationTypeHints&&jo(fe)?j(fe):s.includeInlayEnumMemberValueHints&&Z0(fe)?D(fe):ktt(s)&&(ra(fe)||K0(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)||Sc(fe)||Hl(fe)||Zp(fe)}function S(fe,ne,he,Ce){let Ge=`${Ce?"...":""}${fe}`,ve;s2e(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&&Yb(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(wtt(s)&&!ce(Ie)){Ge++;continue}let De=0;if(Ym(Ie)){let Et=h.getTypeAtLocation(Ie.expression);if(h.isTupleType(Et)){let{elementFlags:be,fixedLength:ze}=Et.target;if(ze===0)continue;let nt=Jl(be,_t=>!(_t&1));(nt<0?ze:nt)>0&&(De=nt<0?ze:nt)}}let ke=h.getParameterIdentifierInfoAtPosition(Ce,Ge);if(Ge=Ge+(De||1),ke){let{parameter:Et,parameterName:be,isRestParameter:ze}=ke;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:kr(fe)?fe.name.text===ne:!1}function B(fe,ne){if(!$p(ne,d.target,dk(t.scriptKind)))return!1;let he=Hh(l,fe.pos);if(!he?.length)return!1;let Ce=l2e(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 T0(ne)||Fe(ne)&&rP(ne.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ne=fe.escapedText;return re(ne)||rP(ne)}}return T0(fe)}function z(fe){if(zs(fe)&&!hs(fe,21,t)||Qf(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(!s2e(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(ke){var Et,be;if(!ke)return;let ze=ca(ke.kind);if(ze){Ce.push({text:ze});return}if(T0(ke)){Ce.push({text:De(ke)});return}switch(ke.kind){case 80:R.assertNode(ke,Fe);let nt=vr(ke),Ft=ke.symbol&&ke.symbol.declarations&&ke.symbol.declarations.length&&No(ke.symbol.declarations[0]);Ft?Ce.push(xe(nt,Ft)):Ce.push({text:nt});break;case 166:R.assertNode(ke,Au),Ge(ke.left),Ce.push({text:"."}),Ge(ke.right);break;case 182:R.assertNode(ke,zk),ke.assertsModifier&&Ce.push({text:"asserts "}),Ge(ke.parameterName),ke.type&&(Ce.push({text:" is "}),Ge(ke.type));break;case 183:R.assertNode(ke,xf),Ge(ke.typeName),ke.typeArguments&&(Ce.push({text:"<"}),Ie(ke.typeArguments,", "),Ce.push({text:">"}));break;case 168:R.assertNode(ke,_l),ke.modifiers&&Ie(ke.modifiers," "),Ge(ke.name),ke.constraint&&(Ce.push({text:" extends "}),Ge(ke.constraint)),ke.default&&(Ce.push({text:" = "}),Ge(ke.default));break;case 169:R.assertNode(ke,To),ke.modifiers&&Ie(ke.modifiers," "),ke.dotDotDotToken&&Ce.push({text:"..."}),Ge(ke.name),ke.questionToken&&Ce.push({text:"?"}),ke.type&&(Ce.push({text:": "}),Ge(ke.type));break;case 185:R.assertNode(ke,PR),Ce.push({text:"new "}),ve(ke),Ce.push({text:" => "}),Ge(ke.type);break;case 186:R.assertNode(ke,e1),Ce.push({text:"typeof "}),Ge(ke.exprName),ke.typeArguments&&(Ce.push({text:"<"}),Ie(ke.typeArguments,", "),Ce.push({text:">"}));break;case 187:R.assertNode(ke,yp),Ce.push({text:"{"}),ke.members.length&&(Ce.push({text:" "}),Ie(ke.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:R.assertNode(ke,Bk),Ge(ke.elementType),Ce.push({text:"[]"});break;case 189:R.assertNode(ke,t1),Ce.push({text:"["}),Ie(ke.elements,", "),Ce.push({text:"]"});break;case 202:R.assertNode(ke,MR),ke.dotDotDotToken&&Ce.push({text:"..."}),Ge(ke.name),ke.questionToken&&Ce.push({text:"?"}),Ce.push({text:": "}),Ge(ke.type);break;case 190:R.assertNode(ke,F4),Ge(ke.type),Ce.push({text:"?"});break;case 191:R.assertNode(ke,z4),Ce.push({text:"..."}),Ge(ke.type);break;case 192:R.assertNode(ke,Kv),Ie(ke.types," | ");break;case 193:R.assertNode(ke,n1),Ie(ke.types," & ");break;case 194:R.assertNode(ke,r1),Ge(ke.checkType),Ce.push({text:" extends "}),Ge(ke.extendsType),Ce.push({text:" ? "}),Ge(ke.trueType),Ce.push({text:" : "}),Ge(ke.falseType);break;case 195:R.assertNode(ke,PT),Ce.push({text:"infer "}),Ge(ke.typeParameter);break;case 196:R.assertNode(ke,MT),Ce.push({text:"("}),Ge(ke.type),Ce.push({text:")"});break;case 198:R.assertNode(ke,LT),Ce.push({text:`${ca(ke.operator)} `}),Ge(ke.type);break;case 199:R.assertNode(ke,kT),Ge(ke.objectType),Ce.push({text:"["}),Ge(ke.indexType),Ce.push({text:"]"});break;case 200:R.assertNode(ke,LR),Ce.push({text:"{ "}),ke.readonlyToken&&(ke.readonlyToken.kind===40?Ce.push({text:"+"}):ke.readonlyToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"readonly "})),Ce.push({text:"["}),Ge(ke.typeParameter),ke.nameType&&(Ce.push({text:" as "}),Ge(ke.nameType)),Ce.push({text:"]"}),ke.questionToken&&(ke.questionToken.kind===40?Ce.push({text:"+"}):ke.questionToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"?"})),Ce.push({text:": "}),ke.type&&Ge(ke.type),Ce.push({text:"; }"});break;case 201:R.assertNode(ke,Jv),Ge(ke.literal);break;case 184:R.assertNode(ke,yh),ve(ke),Ce.push({text:" => "}),Ge(ke.type);break;case 205:R.assertNode(ke,og),ke.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),Ge(ke.argument),ke.assertions&&(Ce.push({text:", { assert: "}),Ie(ke.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),ke.qualifier&&(Ce.push({text:"."}),Ge(ke.qualifier)),ke.typeArguments&&(Ce.push({text:"<"}),Ie(ke.typeArguments,", "),Ce.push({text:">"}));break;case 171:R.assertNode(ke,hp),(Et=ke.modifiers)!=null&&Et.length&&(Ie(ke.modifiers," "),Ce.push({text:" "})),Ge(ke.name),ke.questionToken&&Ce.push({text:"?"}),ke.type&&(Ce.push({text:": "}),Ge(ke.type));break;case 181:R.assertNode(ke,U0),Ce.push({text:"["}),Ie(ke.parameters,", "),Ce.push({text:"]"}),ke.type&&(Ce.push({text:": "}),Ge(ke.type));break;case 173:R.assertNode(ke,gh),(be=ke.modifiers)!=null&&be.length&&(Ie(ke.modifiers," "),Ce.push({text:" "})),Ge(ke.name),ke.questionToken&&Ce.push({text:"?"}),ve(ke),ke.type&&(Ce.push({text:": "}),Ge(ke.type));break;case 179:R.assertNode(ke,ZI),ve(ke),ke.type&&(Ce.push({text:": "}),Ge(ke.type));break;case 207:R.assertNode(ke,H0),Ce.push({text:"["}),Ie(ke.elements,", "),Ce.push({text:"]"});break;case 206:R.assertNode(ke,nm),Ce.push({text:"{"}),ke.elements.length&&(Ce.push({text:" "}),Ie(ke.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:R.assertNode(ke,Xa),Ge(ke.name);break;case 224:R.assertNode(ke,Xv),Ce.push({text:ca(ke.operator)}),Ge(ke.operand);break;case 203:R.assertNode(ke,_ae),Ge(ke.head),ke.templateSpans.forEach(Ge);break;case 16:R.assertNode(ke,YI),Ce.push({text:De(ke)});break;case 204:R.assertNode(ke,iH),Ge(ke.type),Ge(ke.literal);break;case 17:R.assertNode(ke,eH),Ce.push({text:De(ke)});break;case 18:R.assertNode(ke,k4),Ce.push({text:De(ke)});break;case 197:R.assertNode(ke,Gk),Ce.push({text:"this"});break;default:R.failBadSyntaxKind(ke)}}function ve(ke){ke.typeParameters&&(Ce.push({text:"<"}),Ie(ke.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Ie(ke.parameters,", "),Ce.push({text:")"})}function Ie(ke,Et){ke.forEach((be,ze)=>{ze>0&&Ce.push({text:Et}),Ge(be)})}function De(ke){switch(ke.kind){case 11:return p===0?`'${eg(ke.text,39)}'`:`"${eg(ke.text,34)}"`;case 16:case 17:case 18:{let Et=ke.rawText??Wj(eg(ke.text,96));switch(ke.kind){case 16:return"`"+Et+"${";case 17:return"}"+Et+"${";case 18:return"}"+Et+"`"}}}return ke.text}}function re(fe){return fe==="undefined"}function pe(fe){if((k0(fe)||Oi(fe)&&Yx(fe))&&fe.initializer){let ne=ms(fe.initializer);return!(ce(ne)||K0(ne)||Ma(ne)||uT(ne))}return!0}function xe(fe,ne){let he=ne.getSourceFile();return{text:fe,span:Ru(ne,he),file:he.fileName}}}var l2e,Wtt=bt({"src/services/inlayHints.ts"(){"use strict";ai(),l2e=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),vQ={};xa(vQ,{provideInlayHints:()=>Ott});var Ftt=bt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";Wtt()}});function ztt(e,t){let r=[];return Qq(e,i=>{for(let o of Gtt(i)){let s=Qm(o)&&o.tags&&Gr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Qm(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?PD(o.comment,t):[];s&&s.comment&&(l=l.concat(PD(s.comment,t))),zo(r,l,Btt)||r.push(l)}}),mm(MG(r,[hD()]))}function Btt(e,t){return xL(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Gtt(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(zR(e.parent))return[e.parent.parent];default:return Ej(e)}}function Vtt(e,t){let r=[];return Qq(e,i=>{let o=oE(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:u2e(s,t)}),r.push(...c2e(d2e(s),t))}),r}function c2e(e,t){return ya(e,r=>bo([{name:r.tagName.text,text:u2e(r,t)}],c2e(d2e(r),t)))}function d2e(e){return pN(e)&&e.isNameFirst&&e.typeExpression&&BT(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function PD(e,t){return typeof e=="string"?[sf(e)]:ya(e,r=>r.kind===328?[sf(r.text)]:Rde(r,t))}function u2e(e,t){let{comment:r,kind:i}=e,o=jtt(i);switch(i){case 356:let d=e.typeExpression;return d?s(d):r===void 0?void 0:PD(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(kl());let y=p.typeParameters[p.typeParameters.length-1];gn(p.typeParameters,E=>{h.push(o(E.getText())),y!==E&&h.push(Yd(28),kl())})}return r&&h.push(kl(),...PD(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:PD(r,t);default:return r===void 0?void 0:PD(r,t)}function s(d){return l(d.getText())}function l(d){return r?d.match(/^https?$/)?[sf(d),...PD(r,t)]:[o(d),kl(),...PD(r,t)]:[sf(d)]}}function jtt(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 Utt(){return f2e||(f2e=mn(a_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:L1.SortText.LocationPriority})))}function Htt(){return m2e||(m2e=mn(a_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:L1.SortText.LocationPriority})))}function p2e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[sf(e)],documentation:Ye,tags:void 0,codeActions:void 0}}function Ktt(e){if(!Fe(e.name))return Ye;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&&Zm(l)&&Fe(l.name)&&l.name.escapedText===s)||t!==void 0&&!ao(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:L1.SortText.LocationPriority}}):[]}function Jtt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[sf(e)],documentation:Ye,tags:void 0,codeActions:void 0}}function qtt(e,t,r,i){let o=so(t,r),s=Fn(o,Qm);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 Xtt(e,t){let{text:r}=e,i=im(t,e),o=i;for(;o<=t&&b_(r.charCodeAt(o));o++);return r.slice(i,o)}function Ytt(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 $tt(e,t){return`${e} * @returns${t}`}function Qtt(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:yB(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&&yh(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?Ztt(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 o_e(e.expression,t);case 226:{let o=e;return Bl(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&&(yh(e)||zs(e)&&ht(e.body)||Fs(e)&&e.body&&Ho(e.body)&&!!D0(e.body,r=>r))}function Ztt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Gr(e.members,Pl)}}var a_e,f2e,m2e,_2e,ent=bt({"src/services/jsDoc.ts"(){"use strict";ai(),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"],_2e=p2e}}),LE={};xa(LE,{getDocCommentTemplateAtPosition:()=>qtt,getJSDocParameterNameCompletionDetails:()=>Jtt,getJSDocParameterNameCompletions:()=>Ktt,getJSDocTagCompletionDetails:()=>p2e,getJSDocTagCompletions:()=>Htt,getJSDocTagNameCompletionDetails:()=>_2e,getJSDocTagNameCompletions:()=>Utt,getJsDocCommentsFromDeclarations:()=>ztt,getJsDocTagsFromDeclarations:()=>Vtt});var tnt=bt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";ent()}});function nnt(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=bQ(e,e.statements.filter(Lc)),y=vnt(o,d?()=>y2e(m,o)===2:void 0),E=A=>(h&&(A=int(A,e,i)),p&&(A=h2e(A,y,e,o)),d&&(A=Ey(A,(N,D)=>u_e(N,D,y))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&bnt(e).forEach(A=>S(A,N=>s_e(N,y,o)));for(let A of e.statements.filter(Ld)){if(!A.body)continue;if(bQ(e,A.body.statements.filter(Lc)).forEach(D=>S(D,E)),s!=="RemoveUnused"){let D=A.body.statements.filter(Yl);S(D,w=>s_e(w,y,o))}}return l.getChanges();function S(A,N){if(Nn(A)===0)return;dr(A[0],1024);let D=p?XC(A,K=>vB(K.moduleSpecifier)):[A],w=d?Ey(D,(K,Y)=>c_e(K[0].moduleSpecifier,Y[0].moduleSpecifier,y)):D,j=ya(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 bQ(e,t){let r=Dy(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&rnt(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function rnt(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 int(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 vB(e){return e!==void 0&&ss(e)?e.text:void 0}function ant(e,t,r,i){let o=EQ(t);return h2e(e,o,r,i)}function h2e(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}=snt(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(XO(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(XO(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(..._nt(N));let ce=L.createNodeArray(g2e(B,t,i),j?.importClause.namedBindings.elements.hasTrailingComma),z=ce.length===0?Y?void 0:L.createNamedImports(Ye):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(XO(K,Y,void 0)),s.push(XO(j??K,void 0,z))):s.push(XO(K,Y,z))}}return s}function snt(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 lnt(e,t,r){let i=EQ(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(...ya(p,E=>E.exportClause&&Rf(E.exportClause)?E.exportClause.elements:Ye));let m=g2e(h,t,r),y=p[0];l.push(L.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(Rf(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 XO(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function g2e(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 cnt(e,t,r){let i=EQ(!!r);return c_e(e,t,i)}function c_e(e,t,r){let i=e===void 0?void 0:vB(e),o=t===void 0?void 0:vB(t);return Ev(i===void 0,o===void 0)||Ev($c(i),$c(o))||r(i,o)}function d_e(e){var t;switch(e.kind){case 271:return(t=ri(e.moduleReference,Eh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function dnt(e,t){return y2e(bQ(e,e.statements.filter(Lc)),t)}function y2e(e,t){let r=MD(t,!1),i=MD(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=qC(l,h=>{var m;return((m=ri(h.moduleSpecifier,Da))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let d=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=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 unt(e,t){let r=MD(t,!1),i=MD(t,!0);return qC(e,o=>vB(d_e(o))||"",r,i)}function pnt(e,t,r){let i=Sy(e,t,el,(o,s)=>u_e(o,s,r));return i<0?~i:i}function fnt(e,t,r,i){let o=Sy(e,t,el,(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)||mnt(e,t)}function mnt(e,t){return tl(v2e(e),v2e(t))}function v2e(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 _nt(e){return ya(e,t=>mn(hnt(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function hnt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&zg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function EQ(e){return e?sne:jd}function gnt(e,t){let r=ynt(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 ynt(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 MD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?gnt(t,e):EQ(t)}function vnt(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return MD(e,r)}function bnt(e){let t=[],r=e.statements,i=Nn(r),o=0,s=0;for(;obQ(e,l))}var b2e,p_e,Ent=bt({"src/services/organizeImports.ts"(){"use strict";ai(),b2e=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(!_W(e,(o,s)=>Ev(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!_W(e,(o,s)=>Ix(!0)(o.name.text,s.name.text)))return 0;break;default:if(!_W(e,(o,s)=>Ev(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=MD(t,!1),i=MD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=yW(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?qC(o,p=>p.name.text,r,i):void 0,d=s?.length?qC(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 qC(e,o=>o.name.text,r,i)},new b2e)}}),Cm={};xa(Cm,{coalesceExports:()=>lnt,coalesceImports:()=>ant,compareImportOrExportSpecifiers:()=>l_e,compareImportsOrRequireStatements:()=>u_e,compareModuleSpecifiers:()=>cnt,detectImportDeclarationSorting:()=>unt,detectImportSpecifierSorting:()=>p_e,detectSorting:()=>dnt,getImportDeclarationInsertionIndex:()=>pnt,getImportSpecifierInsertionIndex:()=>fnt,getOrganizeImportsComparer:()=>MD,organizeImports:()=>nnt});var Snt=bt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";Ent()}});function Tnt(e,t){let r=[];return Ant(e,t,r),Int(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function Ant(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 S2e(e,t,r,i){qI(e)||f_e(e.pos,t,r,i)}function bB(e,t,r){return w1(uc(e,t),r)}function xnt(e,t){switch(e.kind){case 241:if(Yo(e.parent))return Rnt(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 w1(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,!t1(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=hs(S,19,t),N=hs(S,20,t);if(!(!A||!N||Tf(A.pos,N.pos,t)))return SQ(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||Tf(A.pos,N.pos,t)))return SQ(A,N,S,t,!1,!0)}function o(S){if(Ho(S.body)||Fu(S.body)||Tf(S.body.getFullStart(),S.body.getEnd(),t))return;let A=uc(S.body.getFullStart(),S.body.getEnd());return w1(A,"code",Ru(S))}function s(S){let A=uc(S.openingElement.getStart(t),S.closingElement.getEnd()),N=S.openingElement.tagName.getText(t),D="<"+N+">...";return w1(A,"code",A,!1,D)}function l(S){let A=uc(S.openingFragment.getStart(t),S.closingFragment.getEnd());return w1(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,!pu(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&&SQ(j,K,S,t,A,N)}function y(S){return S.length?w1(tb(S),"code"):void 0}function E(S){if(Tf(S.getStart(),S.getEnd(),t))return;let A=uc(S.getStart(),S.getEnd());return w1(A,"code",Ru(S))}}function Rnt(e,t,r){let i=Dnt(e,t,r),o=hs(t,20,r);return i&&o&&SQ(i,o,e,r,e.kind!==219)}function SQ(e,t,r,i,o=!1,s=!0){let l=uc(s?e.getFullStart():e.getStart(i),t.getEnd());return w1(l,"code",Ru(r,i),o)}function w1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Dnt(e,t,r){if(toe(e.parameters,r)){let i=hs(e,21,r);if(i)return i}return hs(t,19,r)}var T2e,Cnt=bt({"src/services/outliningElementsCollector.ts"(){"use strict";ai(),T2e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),TQ={};xa(TQ,{collectElements:()=>Tnt});var Nnt=bt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";Cnt()}});function Pnt(e,t,r,i){let o=Gz(zu(t,r));if(I2e(o)){let s=Mnt(o,e.getTypeChecker(),t,e,i);if(s)return s}return AQ(f.You_cannot_rename_this_element)}function Mnt(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 m_e(e.text,e.text,"string","",e,r)}else if(Iq(e)){let E=pc(e);return m_e(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>Lnt(i,E)))return AQ(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)&&V2(e))return o.allowRenameOfImportPath?wnt(e,r,s):void 0;let d=knt(r,s,t,o);if(d)return AQ(d);let p=$y.getSymbolKind(t,s,e),h=Dde(e)||Qp(e)&&e.parent.kind===167?$f(Yf(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 Lnt(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Tl(r.fileName,".d.ts")}function knt(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&Gr(t.declarations,d=>Zu(d));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=A2e(e.path);if(s===void 0)return gt(o,l=>gO(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=A2e(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 A2e(e){let t=zc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function wnt(e,t,r){if(!$c(e.text))return AQ(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:une(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 m_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Ont(o,s)}}function AQ(e){return{canRename:!1,localizedErrorMessage:ko(e)}}function Ont(e,t){let r=e.getStart(t),i=e.getWidth(t);return ss(e)&&(r+=1,i-=2),yd(r,i)}function I2e(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 Wnt=bt({"src/services/rename.ts"(){"use strict";ai()}}),EB={};xa(EB,{getRenameInfo:()=>Pnt,nodeIsEligibleForRename:()=>I2e});var Fnt=bt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";Wnt()}});function znt(e,t,r,i,o){let s=e.getTypeChecker(),l=Vz(t,r);if(!l)return;let d=!!i&&i.kind==="characterTyped";if(d&&(S1(t,r,l)||Hy(t,r)))return;let p=!!i&&i.kind==="invoked",h=nrt(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=Bnt(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,y=>m.kind===0?L2e(m.candidates,m.resolvedSignature,h,t,y):irt(m.symbol,h,t,y)):lu(t)?Vnt(h,e,o):void 0}function Bnt({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Gnt(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&&!x2e(o,i,Fe(l)?l.parent:l))return;let d=wq(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 Gnt(e,t,r){if(!E_(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 x2e(e,r,t.expression);default:return!1}}function Vnt(e,t,r){if(e.invocation.kind===2)return;let i=P2e(e.invocation),o=kr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Fl(t.getSourceFiles(),l=>Fl(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=>L2e(h,h[0],e,l,m,!0))}))}function x2e(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=Ac(i,t,o,!0);if(s)return of(r,s);o=o.parent}return R.fail("Could not find preceding token")}function jnt(e,t,r,i){let o=D2e(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 R2e(e,t,r,i){let o=Unt(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=Qnt(i,s);l!==0&&R.assertLessThan(l,d);let p=ert(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function Unt(e,t,r){if(e.kind===30||e.kind===21)return{list:rrt(e.parent,e,t),argumentIndex:0};{let i=zz(e);return i&&{list:i,argumentIndex:$nt(r,i,e)}}}function D2e(e,t,r,i){let{parent:o}=e;if(E_(o)){let s=o,l=R2e(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(XI(e)&&J0(o))return iO(e,t,r)?h_e(o,0,r):void 0;if(YI(e)&&o.parent.kind===215){let s=o,l=s.parent;R.assert(s.kind===228);let d=iO(e,t,r)?0:1;return h_e(l,d,r)}else if(vP(o)&&J0(o.parent.parent)){let s=o,l=o.parent.parent;if(k4(e)&&!iO(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=Znt(d,e,t,r);return h_e(l,p,r)}else if(su(o)){let s=o.attributes.pos,l=Na(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=Oq(e,r);if(s){let{called:l,nTypeArguments:d}=s,p={kind:1,called:l},h=uc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:d,argumentCount:d+1}}return}}}function Hnt(e,t,r,i){return Knt(e,t,r,i)||D2e(e,t,r,i)}function C2e(e){return pr(e.parent)?C2e(e.parent):e}function __e(e){return pr(e.left)?__e(e.left)+1:2}function Knt(e,t,r,i){let o=Jnt(e);if(o===void 0)return;let s=qnt(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=Zs(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:Xnt(y)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function Jnt(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>To(t)?!0:Xa(t)||nm(t)||H0(t)?!1:"quit")}}function qnt(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=R2e(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:d,argumentsSpan:p}=s,h=Hl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:d,argumentsSpan:p};case 226:{let m=C2e(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 Xnt(e){return e.name==="__type"&&Fl(e.declarations,t=>{var r;return yh(t)?(r=ri(t.parent,S_))==null?void 0:r.symbol:void 0})||e}function Ynt(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=Jl(i,l=>!(l&1));return s<0?o:s}return 0}function $nt(e,t,r){return N2e(e,t,r)}function Qnt(e,t){return N2e(e,t,void 0)}function N2e(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(Ym(l)){o+=Ynt(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 Znt(e,t,r,i){return R.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),pre(t)?iO(t,r,i)?0:e+2:e+1}function h_e(e,t,r){let i=XI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&R.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:trt(e,r),argumentIndex:t,argumentCount:i}}function ert(e,t){let r=e.getFullStart(),i=Na(t.text,e.getEnd(),!1);return yd(r,i-r)}function trt(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Ja(r.templateSpans).literal.getFullWidth()===0&&(o=Na(t.text,o,!1)),yd(i,o-i)}function nrt(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!Ho(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=Hnt(s,t,r,i);if(l)return l}}function rrt(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 P2e(e){return e.kind===0?VF(e.node):e.called}function M2e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function L2e(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let y=M2e(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(P2e(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?cM(p,E,h?d:void 0,void 0):Ye,A=mn(e,K=>art(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:UC(A,el),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},j=w.items[N];if(j.isVariadic){let K=Jl(j.parameters,Y=>!!Y.isRest);-1k2e(y,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Yd(30)],suffixDisplayParts:[Yd(32)],separatorDisplayParts:g_e,parameters:d,documentation:p,tags:h}}function art(e,t,r,i,o,s){let l=(r?lrt:crt)(e,i,o,s);return mn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let y=[...t,...h],E=[...m,...srt(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 srt(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 lrt(e,t,r,i){let o=(e.target||e).typeParameters,s=aS(),l=(o||Ye).map(p=>k2e(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,YO)]:[];return t.getExpandedParameters(e).map(p=>{let h=L.createNodeArray([...d,...mn(p,y=>t.symbolToParameterDeclaration(y,r,YO))]),m=nb(y=>{s.writeList(2576,h,i,y)});return{isVariadic:!1,parameters:l,prefix:[Yd(30)],suffix:[Yd(32),...m]}})}function crt(e,t,r,i){let o=aS(),s=nb(p=>{if(e.typeParameters&&e.typeParameters.length){let h=L.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,YO)));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],uh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>drt(h,t,r,i,o)),prefix:[...s,Yd(21)],suffix:[Yd(22)]}))}function drt(e,t,r,i,o){let s=nb(p=>{let h=t.symbolToParameterDeclaration(e,r,YO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=uh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function k2e(e,t,r,i,o){let s=nb(l=>{let d=t.typeParameterToDeclaration(e,r,YO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var YO,g_e,urt=bt({"src/services/signatureHelp.ts"(){"use strict";ai(),YO=70246400,g_e=[Yd(28),kl()]}}),$O={};xa($O,{getArgumentInfoForCompletions:()=>jnt,getSignatureHelpItems:()=>znt});var prt=bt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";urt()}});function frt(e,t){var r,i;let o={textSpan:uc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=_rt(s);if(!p.length)break;for(let h=0;he)break e;let S=ih(Qb(t.text,y.end));if(S&&S.kind===2&&d(S.pos,S.end),mrt(t,e,y)){if(zV(y)&&Fs(s)&&!Tf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),Ho(y)||vP(y)||YI(y)||k4(y)||m&&YI(m)||Uc(y)&&Ml(s)||BR(y)&&Uc(s)||Oi(y)&&BR(s)&&p.length===1||eS(y)||bE(y)||BT(y)){s=y;break}if(vP(s)&&E&&dF(E)){let w=y.getFullStart()-2,j=E.getStart()+1;l(w,j)}let A=BR(y)&&hrt(m)&&grt(E)&&!Tf(m.getStart(),E.getStart(),t),N=A?m.getEnd():y.getStart(),D=A?E.getStart():yrt(t,y);if(wp(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Va(y.jsDoc).getStart(),D),BR(y)){let w=y.getChildren()[0];w&&wp(w)&&((i=w.jsDoc)!=null&&i.length)&&w.getStart()!==y.pos&&(N=Math.min(N,Va(w.jsDoc).getStart()))}l(N,D),(Da(y)||II(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=uc(p,h);(!o||!_D(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 mrt(e,t,r){return R.assert(r.pos<=t),td===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=QO(s,({kind:d})=>d===23||d===168||d===24);return[r,ZO(IQ(l,({kind:d})=>d===59)),o]}if(hp(e)){let r=QO(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=IQ(o,({kind:l})=>l===59);return i?[i,ZO(s)]:s}if(To(e)){let r=QO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=QO(r,o=>o===r[0]||o===e.questionToken);return IQ(i,({kind:o})=>o===64)}return Xa(e)?IQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function QO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(ZO(i)),i=void 0),r.push(o));return i&&r.push(ZO(i)),r}function IQ(e,t,r=!0){if(e.length<2)return e;let i=Jl(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=DL([o.length?ZO(o):void 0,s,p.length?ZO(p):void 0]);return d?h.concat(l):h}function ZO(e){return R.assertGreaterThanOrEqual(e.length,1),_h(Sh.createSyntaxList(e),e[0].pos,Ja(e).end)}function hrt(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function grt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function yrt(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 w2e,vrt=bt({"src/services/smartSelection.ts"(){"use strict";ai(),w2e=Km(Lc,nd)}}),xQ={};xa(xQ,{getSmartSelectionRange:()=>frt});var brt=bt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";vrt()}});function O2e(e,t,r){let i=W2e(e,t,r);if(i!=="")return i;let o=vR(t);return o&32?ul(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 W2e(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)||kI(r))return"parameter";let o=vR(t);if(o&3)return eX(t)?"parameter":t.valueDeclaration&&Yx(t.valueDeclaration)?"const":t.valueDeclaration&&I2(t.valueDeclaration)?"using":t.valueDeclaration&&A2(t.valueDeclaration)?"await using":gn(t.declarations,MF)?"let":B2e(t)?"local var":"var";if(o&16)return B2e(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 F2e(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Nn(r)&&_7(t)&>(r,s=>!_7(s))?65536:0,o=iM(t,i);if(o)return o.split(",")}return[]}function Ert(e,t){if(!t)return"";let r=new Set(F2e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&gn(F2e(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Oo(r.values()).join(","):""}function z2e(e,t,r,i,o,s,l,d){var p;let h=[],m=[],y=[],E=vR(t),S=l&1?W2e(e,t,o):"",A=!1,N=o.kind===110&&UF(o)||kI(o),D,w,j=!1;if(o.kind===110&&!N)return{displayParts:[bp(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(E_(o)?re=o:(Eq(o)||nM(o)||o.parent&&(su(o.parent)||J0(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(kl()),pe&&(J.flags&4&&(h.push(bp(128)),h.push(kl())),h.push(bp(105)),h.push(kl())),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(kl()),!(Lr(s)&16)&&s.symbol&&(Ur(h,cM(e,s.symbol,i,void 0,5)),h.push(hD())),pe&&(J.flags&4&&(h.push(bp(128)),h.push(kl())),h.push(bp(105)),h.push(kl())),ge(J,xe,262144);break;default:ge(J,xe)}A=!0,j=xe.length>1}}else if(Cq(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(),ul(t,231)?me("local class"):h.push(bp(86)),h.push(kl()),z(t),q(t,r)),E&64&&l&2&&(Y(),h.push(bp(120)),h.push(kl()),z(t),q(t,r)),E&524288&&l&2&&(Y(),h.push(bp(156)),h.push(kl()),z(t),q(t,r),h.push(kl()),h.push(lM(64)),h.push(kl()),Ur(h,uO(e,o.parent&&Ng(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(Y(),gt(t.declarations,J=>yE(J)&&R0(J))&&(h.push(bp(87)),h.push(kl())),h.push(bp(94)),h.push(kl()),z(t)),E&1536&&!N){Y();let J=ul(t,267),re=J&&J.name&&J.name.kind===80;h.push(bp(re?145:144)),h.push(kl()),z(t)}if(E&262144&&l&2)if(Y(),h.push(Yd(21)),h.push(sf("type parameter")),h.push(Yd(22)),h.push(kl()),z(t),t.parent)ce(),z(t.parent,i),q(t.parent,i);else{let J=ul(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(bp(105)),h.push(kl())):re.kind!==179&&re.name&&z(re.symbol),Ur(h,rX(e,pe,r,32))}else Im(re)&&(ce(),h.push(bp(156)),h.push(kl()),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(kl()),h.push(lM(64)),h.push(kl()),h.push(tp(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=DF(re)&&$r(re,128),fe=t.name!=="default"&&!xe,ne=z2e(e,J,Vn(re),re,pe,s,l,fe?t:J);h.push(...ne.displayParts),h.push(hD()),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(bp(95)),h.push(kl()),h.push(bp(145));break;case 277:h.push(bp(95)),h.push(kl()),h.push(bp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(bp(95));break;default:h.push(bp(102))}h.push(kl()),z(t),gn(t.declarations,J=>{if(J.kind===271){let re=J;if(lE(re))h.push(kl()),h.push(lM(64)),h.push(kl()),h.push(bp(149)),h.push(Yd(21)),h.push(tp(pc(IN(re)),8)),h.push(Yd(22));else{let pe=e.getSymbolAtLocation(re.moduleReference);pe&&(h.push(kl()),h.push(lM(64)),h.push(kl()),z(pe,i))}return!0}})}if(!A)if(S!==""){if(s){if(N?(Y(),h.push(bp(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(kl()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let J=nb(re=>{let pe=e.typeParameterToDeclaration(s,i,y_e);K().writeNode(4,pe,Vn(Ro(i)),re)});Ur(h,J)}else Ur(h,uO(e,s,i));if(uh(t)&&t.links.target&&uh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let J=t.links.target.links.tupleLabelDeclaration;R.assertNode(J.name,Fe),h.push(kl()),h.push(Yd(21)),h.push(sf(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=O2e(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)&&nm(re)){let xe=Yf(pe),fe=e.getTypeAtLocation(re);m=Fl(fe.isUnion()?fe.types:[fe],ne=>{let he=ne.getProperty(xe);return he?he.getDocumentationComment(e):void 0})||Ye}}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 aS()}function Y(){h.length&&h.push(hD()),B()}function B(){d&&(me("alias"),h.push(kl()))}function ce(){h.push(kl()),h.push(bp(103)),h.push(kl())}function z(J,re){let pe;d&&J===t&&(J=d),S==="index"&&(pe=e.getIndexInfosOfIndexSymbol(J));let xe=[];J.flags&131072&&pe?(J.parent&&(xe=cM(e,J.parent)),xe.push(Yd(23)),pe.forEach((fe,ne)=>{xe.push(...uO(e,fe.keyType)),ne!==pe.length-1&&(xe.push(kl()),xe.push(Yd(52)),xe.push(kl()))}),xe.push(Yd(24))):xe=cM(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(kl()),z(J)))}function me(J){switch(J){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(tX(J));return;default:h.push(Yd(21)),h.push(tX(J)),h.push(Yd(22));return}}function ge(J,re,pe=0){Ur(h,rX(e,J,i,pe|32)),re.length>1&&(h.push(kl()),h.push(Yd(21)),h.push(lM(40)),h.push(tp((re.length-1).toString(),7)),h.push(kl()),h.push(sf(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=nb(xe=>{let fe=e.symbolToTypeParameterDeclarations(J,re,y_e);K().writeList(53776,fe,Vn(Ro(re)),xe)});Ur(h,pe)}}function Srt(e,t,r,i,o,s=YT(o),l){return z2e(e,t,r,i,o,void 0,s,l)}function B2e(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;!C0(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var y_e,Trt=bt({"src/services/symbolDisplay.ts"(){"use strict";ai(),y_e=70246400}}),$y={};xa($y,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Srt,getSymbolKind:()=>O2e,getSymbolModifiers:()=>Ert});var Art=bt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";Trt()}});function G2e(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 V2e(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 j2e(e,t){return Na(e,t,!1,!0)}function Irt(e,t){let r=t;for(;r0?1:0,E=wv(ON(e,h)+y,e);return E=j2e(e.text,E),wv(ON(e,E),e)}function E_e(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=Qb(e.text,i);if(s){let l=ON(e,t.end);for(let d of s){if(d.kind===2||ON(e,d.pos)>l)break;if(ON(e,d.end)>l)return Na(e.text,d.end,!0,!0)}}}}function LD(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=bo(Qb(e.text,o),Hh(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||Ud(e.text.charCodeAt(d-1)))?d:o}function RQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function xrt(e){return ks(e)||Sc(e)}function Rrt(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 Drt(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,rA(e,t,{leadingTriviaOption:1}),!1,!0)}function Crt(e,t,r,i){let o=S_e(e,i);if(r===void 0||Tf(LD(e,t,{}),o,e))return o;let s=Ac(i.getStart(e),e);if(RQ(t,s)){let l=Ac(t.getStart(e),e);if(RQ(r,l)){let d=Na(e.text,s.getEnd(),!0,!0);if(Tf(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 Nrt(e,t){let r=hs(e,19,t),i=hs(e,20,t);return[r?.end,i?.end]}function DQ(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(ql(i))}`}return e}function Prt(e){return Na(e,0)===e.length}function CQ(e){let t=Sn(e,CQ,J2e,Mrt,CQ),r=Xs(t)?t:Object.create(t);return _h(r,G2e(e),V2e(e)),r}function Mrt(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 _h(l,G2e(e),V2e(e)),l}function U2e(e){let t=0,r=rk(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||!Prt(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 Lrt(e){let t;for(let h of e.statements)if(Em(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(qV(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||{}),AM={leadingTriviaOption:0,trailingTriviaOption:0},K2e=class Ibe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Ibe(qy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=Ibe.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,e8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=rA(t,s,i,o),d=LD(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=rA(t,r,o),l=LD(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=AM){this.replaceRange(t,e8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=AM){this.replaceRange(t,e8(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=AM){this.replaceRangeWithNodes(t,e8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,e8(t,r,r,AM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=AM){this.replaceRangeWithNodes(t,e8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=AM){return!!E_e(t,r,i)}nextCommaToken(t,r){let i=cS(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,Sf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Sf(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=Lrt(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=Xp()),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=wv(r,t),l=Nde(t.text,s),d=H2e(t,l),p=pD(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:im(d.getStart(t),t),end:LD(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=ya(r.jsDoc,s=>Co(s.comment)?L.createJSDocText(s.comment):s.comment),o=ih(r.jsDoc);return o&&Tf(o.pos,o.end,t)&&Nn(i)===0?void 0:L.createNodeArray(MG(i,L.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Rrt(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){let o=UC(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=Drt(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Vr(UC(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,Sf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(Yo(r)){if(o=hs(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=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)||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:", "}:{}:Da(t)&&Lc(t.parent)||zg(t)?{suffix:", "}:Zu(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=Zs(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,DQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of DQ(r)){if(b6(o,s,t))return;let l=s.getStart(t),d=wc.SmartIndenter.findFirstNonWhitespaceColumn(im(l,t),l,t,this.formatContext.options);if(i===void 0)i=d;else if(d!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return wc.SmartIndenter.findFirstNonWhitespaceColumn(im(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=DQ(r).length===0,l=Tm(this.classesWithNodesInsertedAtStart,is(r),{node:r,sourceFile:t}),d=Ma(r)&&(!qf(t)||!s),p=Ma(r)&&qf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:d?",":fu(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 krt(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Sf(r.end),L.createToken(27)),LD(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)||uF(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:" "}),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=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,!Tf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=wc.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&&RQ(r,d)){let p=o[s+1],h=j2e(t.text,p.getFullStart()),m=`${ca(d.kind)}${t.text.substring(d.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{let d=r.getStart(t),p=im(d,t),h,m=!1;if(o.length===1)h=28;else{let y=Ac(r.pos,t);h=RQ(r,y)?y.kind:28,m=im(o[s-1].getStart(t),t)!==p}if((Irt(t.text,r.end)||!Tf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,Sf(l),L.createToken(h));let y=wc.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),E=Na(t.text,l,!0,!1);for(;E!==l&&Ud(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Sf(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Sf(l),i,{prefix:`${ca(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,_U(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=Nrt(t,r);if(i!==void 0&&o!==void 0){let s=DQ(t).length===0,l=Tf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Sf(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,hU(r,i)):x_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=wc.SmartIndenter.getContainingList(r,i);if(r!==Ja(o))return;let s=mW(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=NQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(NQ.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(XC(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?Vn(Nl(N.node))??N.sourceFile:N.kind===2?Vn(Nl(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 oO(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:[oO(yd(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(d,p,h,m){let y=ya(p,A=>A.statements.map(N=>N===4?"":l(N,A.oldFile,h).text)).join(h),E=nw("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,d),S=wc.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=>xx(D(K),m)).join(((S=d.options)==null?void 0:S.joiner)||m):D(d.node),j=A.indentation!==void 0||im(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:wc.SmartIndenter.getIndentation(m,h,K,E===A||im(m,p)===m);S===void 0&&(S=wc.SmartIndenter.shouldIndentChildNode(K,d)&&K.indentSize||0);let B={text:j,getLineAndCharacterOfPosition(z){return ys(this,z)}},ce=wc.formatNodeGivenIndentation(w,B,p.languageVariant,Y,S,{...N,options:K});return T_e(j,ce)}function l(d,p,h){let m=U2e(h),y=yO(h);return xE({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,d,p,m),{text:m.getText(),node:CQ(d)}}e.getNonformattedText=l})(NQ||(NQ={})),J2e={...KP,factory:xk(KP.factory.flags|1,KP.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,"()"):t8(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:wp(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Ja(m.elements)?Ug(s,d,p):t8(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:t8(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):t8(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:wp(p)?2:3});break;default:p.parent?vh(p.parent)&&p.parent.name===p?r(s,d,p.parent):ra(p.parent)&&zo(p.parent.arguments,p)?t8(s,l,d,p):Ug(s,d,p):Ug(s,d,p)}}e.deleteDeclaration=t;function r(s,l,d){if(!d.namedBindings)Ug(s,l,d.parent);else{let p=d.name.getStart(l),h=so(l,d.name.end);if(h&&h.kind===28){let m=Na(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Ug(s,l,d.name)}}function i(s,l,d){if(d.parent.name){let p=R.checkDefined(so(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=pE(d,272);Ug(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){t8(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:wp(m)?2:3});break;default:R.assertNever(m)}}})(x_e||(x_e={}))}}),fr={};xa(fr,{ChangeTracker:()=>K2e,LeadingTriviaOption:()=>A_e,TrailingTriviaOption:()=>I_e,applyChanges:()=>T_e,assignPositionsToNode:()=>CQ,createWriter:()=>U2e,deleteNode:()=>Ug,isThisTypeAnnotatable:()=>xrt,isValidLocationToAddComment:()=>H2e});var Ort=bt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";wrt()}}),R_e,D_e,Wrt=bt({"src/services/formatting/formattingContext.ts"(){"use strict";ai(),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?X2e:q2e;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))(N_e||{}),P_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(P_e||{})}});function Y2e(){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=IM([...e,3]),o=IM([...e,1]),s=Q2e(83,165),l=Q2e(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=IM([80,32,3,86,95,102]),j=IM([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,tke],16),qr("SpaceAfterColon",59,r,[Ji,TB,nit],4),qr("NoSpaceBeforeQuestionMark",r,58,[Ji,TB,tke],16),qr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ji,jrt],4),qr("NoSpaceAfterQuestionMark",58,r,[Ji,Vrt],16),qr("NoSpaceBeforeDot",r,[25,29],[Ji,_it],16),qr("NoSpaceAfterDot",[25,29],r,[Ji],16),qr("NoSpaceBetweenImportParenInImportType",102,21,[Ji,eit],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,gke],16),qr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ji,gke],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,[rke],8),qr("SpaceAfterCloseBrace",20,t(22),[Ji,Krt],4),qr("SpaceBetweenCloseBraceAndElse",20,93,[Ji],4),qr("SpaceBetweenCloseBraceAndWhile",20,117,[Ji],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,cke],16),qr("SpaceAfterConditionalClosingParen",22,23,[AB],4),qr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[ake],16),qr("SpaceAfterStarInGeneratorDeclaration",42,80,[ake],4),qr("SpaceAfterFunctionInFuncDecl",100,r,[iA],4),qr("NewLineAfterOpenBraceInBlockContext",19,r,[rke],8),qr("SpaceAfterGetSetInMember",[139,153],80,[iA],4),qr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ji,hke],16),qr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ji,hke],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,oit],4),qr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ji,Xrt,Yrt],16),qr("SpaceBeforeBinaryKeywordOperator",r,d,[Ji,ib],4),qr("SpaceAfterBinaryKeywordOperator",d,r,[Ji,ib],4),qr("SpaceAfterVoidOperator",116,r,[Ji,dit],4),qr("SpaceBetweenAsyncAndOpenParen",134,21,[Zrt,Ji],4),qr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ji],4),qr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ji],16),qr("SpaceBeforeJsxAttribute",r,80,[tit,Ji],4),qr("SpaceBeforeSlashInJsxOpeningElement",r,44,[fke,Ji],4),qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[fke,Ji],16),qr("NoSpaceBeforeEqualInJsxAttribute",r,64,[uke,Ji],16),qr("NoSpaceAfterEqualInJsxAttribute",64,r,[uke,Ji],16),qr("NoSpaceBeforeJsxNamespaceColon",80,59,[pke],16),qr("NoSpaceAfterJsxNamespaceColon",59,80,[pke],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,[ait],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,sit],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,Hrt,cit],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],[iit],4),qr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ji,uit],16),qr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ji,lit],16),qr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ji],4)],Y=[qr("SpaceAfterConstructor",137,21,[lf("insertSpaceAfterConstructor"),Ji],4),qr("NoSpaceAfterConstructor",137,21,[z_("insertSpaceAfterConstructor"),Ji],16),qr("SpaceAfterComma",28,r,[lf("insertSpaceAfterCommaDelimiter"),Ji,F_e,$rt,Qrt],4),qr("NoSpaceAfterComma",28,r,[z_("insertSpaceAfterCommaDelimiter"),Ji,F_e],16),qr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[lf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),iA],4),qr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[z_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),iA],16),qr("SpaceAfterKeywordInControl",s,21,[lf("insertSpaceAfterKeywordsInControlFlowStatements"),AB],4),qr("NoSpaceAfterKeywordInControl",s,21,[z_("insertSpaceAfterKeywordsInControlFlowStatements"),AB],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,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ji],16),qr("NoSpaceBeforeCloseParen",r,22,[z_("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,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),qr("NoSpaceBeforeCloseBracket",r,24,[z_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ji],16),qr("SpaceAfterOpenBrace",19,r,[eke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),nke],4),qr("SpaceBeforeCloseBrace",r,20,[eke("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),nke],4),qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ji,cke],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"),dke],4,1),qr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[lf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],4),qr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[z_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),dke],16,1),qr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[z_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ji],16),qr("SpaceAfterOpenBraceInJsxExpression",19,r,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,MQ],4),qr("SpaceBeforeCloseBraceInJsxExpression",r,20,[lf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,MQ],4),qr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[z_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,MQ],16),qr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[z_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ji,MQ],16),qr("SpaceAfterSemicolonInFor",27,r,[lf("insertSpaceAfterSemicolonInForStatements"),Ji,k_e],4),qr("NoSpaceAfterSemicolonInFor",27,r,[z_("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,[z_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),qr("NoSpaceAfterBinaryOperator",l,r,[z_("insertSpaceBeforeAndAfterBinaryOperators"),Ji,ib],16),qr("SpaceBeforeOpenParenInFuncDecl",r,21,[lf("insertSpaceBeforeFunctionParenthesis"),Ji,iA],4),qr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[z_("insertSpaceBeforeFunctionParenthesis"),Ji,iA],16),qr("NewLineBeforeOpenBraceInControl",j,19,[lf("placeOpenBraceOnNewLineForControlBlocks"),AB,W_e],8,1),qr("NewLineBeforeOpenBraceInFunction",D,19,[lf("placeOpenBraceOnNewLineForFunctions"),iA,W_e],8,1),qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[lf("placeOpenBraceOnNewLineForFunctions"),ske,W_e],8,1),qr("SpaceAfterTypeAssertion",32,r,[lf("insertSpaceAfterTypeAssertion"),Ji,B_e],4),qr("NoSpaceAfterTypeAssertion",32,r,[z_("insertSpaceAfterTypeAssertion"),Ji,B_e],16),qr("SpaceBeforeTypeAnnotation",r,[58,59],[lf("insertSpaceBeforeTypeAnnotation"),Ji,w_e],4),qr("NoSpaceBeforeTypeAnnotation",r,[58,59],[z_("insertSpaceBeforeTypeAnnotation"),Ji,w_e],16),qr("NoOptionalSemicolon",27,o,[Z2e("semicolons","remove"),fit],32),qr("OptionalSemicolon",r,o,[Z2e("semicolons","insert"),mit],64)],B=[qr("NoSpaceBeforeSemicolon",r,27,[Ji],16),qr("SpaceBeforeOpenBraceInControl",j,19,[L_e("placeOpenBraceOnNewLineForControlBlocks"),AB,z_e,O_e],4,1),qr("SpaceBeforeOpenBraceInFunction",D,19,[L_e("placeOpenBraceOnNewLineForFunctions"),iA,PQ,z_e,O_e],4,1),qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",w,19,[L_e("placeOpenBraceOnNewLineForFunctions"),ske,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,rit],16),qr("SpaceAfterSemicolon",27,r,[Ji],4),qr("SpaceBetweenForAndAwaitKeyword",99,135,[Ji],4),qr("SpaceBetweenStatements",[22,92,93,84],r,[Ji,F_e,Brt],4),qr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ji],4)];return[...K,...Y,...B]}function qr(e,t,r,i,o,s=0){return{leftTokenRange:$2e(t),rightTokenRange:$2e(r),rule:{debugName:e,context:i,action:o,flags:s}}}function IM(e){return{tokens:e,isSpecific:!0}}function $2e(e){return typeof e=="number"?IM([e]):So(e)?IM(e):e}function Q2e(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)zo(r,o)||i.push(o);return IM(i)}function Z2e(e,t){return r=>r.options&&r.options[e]===t}function lf(e){return t=>t.options&&Is(t.options,e)&&!!t.options[e]}function M_e(e){return t=>t.options&&Is(t.options,e)&&!t.options[e]}function z_(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]}function L_e(e){return t=>!t.options||!Is(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function eke(e){return t=>!t.options||!Is(t.options,e)||!!t.options[e]}function k_e(e){return e.contextNode.kind===248}function Brt(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 TB(e){return!ib(e)}function tke(e){return!w_e(e)}function w_e(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||TI(t)}function Grt(e){return jo(e.contextNode)&&e.contextNode.questionToken}function Vrt(e){return!Grt(e)}function jrt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function O_e(e){return e.TokensAreOnSameLine()||PQ(e)}function nke(e){return e.contextNode.kind===206||e.contextNode.kind===200||Urt(e)}function W_e(e){return PQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function rke(e){return ike(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Urt(e){return ike(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function ike(e){return oke(e.contextNode)}function PQ(e){return oke(e.nextTokenParent)}function oke(e){if(lke(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 Hrt(e){return!iA(e)}function ake(e){return e.contextNode.kind===262||e.contextNode.kind===218}function ske(e){return lke(e.contextNode)}function lke(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 Krt(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 cke(e){return e.contextNode.kind===210}function Jrt(e){return e.contextNode.kind===213}function qrt(e){return e.contextNode.kind===214}function Xrt(e){return Jrt(e)||qrt(e)}function Yrt(e){return e.currentTokenSpan.kind!==28}function $rt(e){return e.nextTokenSpan.kind!==24}function Qrt(e){return e.nextTokenSpan.kind!==22}function Zrt(e){return e.contextNode.kind===219}function eit(e){return e.contextNode.kind===205}function Ji(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function dke(e){return e.contextNode.kind!==12}function F_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function MQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function tit(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function uke(e){return e.contextNode.kind===291}function nit(e){return e.nextTokenParent.kind!==295}function pke(e){return e.nextTokenParent.kind===295}function fke(e){return e.contextNode.kind===285}function rit(e){return!iA(e)&&!PQ(e)}function iit(e){return e.TokensAreOnSameLine()&&Ef(e.contextNode)&&mke(e.currentTokenParent)&&!mke(e.nextTokenParent)}function mke(e){for(;e&&ht(e);)e=e.parent;return e&&e.kind===170}function oit(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function z_e(e){return e.formattingRequestKind!==2}function ait(e){return e.contextNode.kind===267}function sit(e){return e.contextNode.kind===187}function lit(e){return e.contextNode.kind===180}function _ke(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 _ke(e.currentTokenSpan,e.currentTokenParent)||_ke(e.nextTokenSpan,e.nextTokenParent)}function B_e(e){return e.contextNode.kind===216}function cit(e){return!B_e(e)}function dit(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function hke(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function uit(e){return e.contextNode.kind===235}function gke(e){return!pit(e)}function pit(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function fit(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(uR(t)){let s=e.nextTokenParent===e.currentTokenParent?cS(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?!hp(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 mit(e){return l7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function _it(e){return!kr(e.contextNode)||!_p(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var hit=bt({"src/services/formatting/rules.ts"(){"use strict";ai(),i8()}});function git(e,t){return{options:e,getRules:yit(),host:t}}function yit(){return G_e===void 0&&(G_e=bit(Y2e())),G_e}function vit(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function bit(e){let t=Eit(e);return r=>{let i=t[yke(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~vit(s);l.action&d&&oo(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function Eit(e){let t=new Array(LQ*LQ),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=yke(s,l),p=t[d];p===void 0&&(p=t[d]=[]),Sit(p,i.rule,o,r,d)}}return t}function yke(e,t){return R.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*LQ+t}function Sit(e,t,r,i,o){let s=t.action&3?r?0:xM.StopRulesAny:t.context!==SB?r?xM.ContextRulesSpecific:xM.ContextRulesAny:r?xM.NoContextRulesSpecific:xM.NoContextRulesAny,l=i[o]||0;e.splice(Tit(l,s),0,t),i[o]=Ait(l,s)}function Tit(e,t){let r=0;for(let i=0;i<=t;i+=kD)r+=e&xB,e>>=kD;return r}function Ait(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=kD*1]="StopRulesAny",e[e.ContextRulesSpecific=kD*2]="ContextRulesSpecific",e[e.ContextRulesAny=kD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=kD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=kD*5]="NoContextRulesAny",e))(xM||{})}});function kQ(e,t,r){let i={pos:e,end:t,kind:r};return R.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>R.formatSyntaxKind(r)}),i}function xit(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=v2(i,t);for(;b_(t.text.charCodeAt(o));)o--;Ud(t.text.charCodeAt(o))&&o--;let s={pos:wv(i-1,t),end:o+1};return RB(s,t,r,2)}function Rit(e,t,r){let i=V_e(e,27,t);return vke(j_e(i),t,r,3)}function Dit(e,t,r){let i=V_e(e,19,t);if(!i)return[];let o=i.parent,s=j_e(o),l={pos:im(s.getStart(t),t),end:e};return RB(l,t,r,4)}function Cit(e,t,r){let i=V_e(e,20,t);return vke(j_e(i),t,r,5)}function Nit(e,t){let r={pos:0,end:e.text.length};return RB(r,e,t,0)}function Pit(e,t,r,i){let o={pos:im(e,r),end:t};return RB(o,r,i,1)}function V_e(e,t,r){let i=Ac(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&&!Mit(t.parent,t);)t=t.parent;return t}function Mit(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 Lit(e,t){return r(t);function r(i){let o=Bo(i,s=>Nq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function kit(e,t){if(!e.length)return o;let r=e.filter(s=>rM(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 wit(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=Ac(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Oit(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(B_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Wit(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=>bke(l,e,i,o,d,s,1,p=>!1,t))}function vke(e,t,r,i){if(!e)return[];let o={pos:im(e.getStart(t),t),end:e.end};return RB(o,t,r,i)}function RB(e,t,r,i){let o=Lit(e,t);return C_e(t.text,t.languageVariant,wit(o,e,t),e.end,s=>bke(e,o,B_.getIndentationForNode(o,e,t,r.options),Oit(o,r.options,t),s,r,i,kit(t.parseDiagnostics,e),t))}function bke(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;Ef(t)&&(ze=m.getLineAndCharacterOfPosition(XV(t,m)).line),me(t,t,be,ze,r,i)}let Y=o.getCurrentLeadingTrivia();if(Y){let be=B_.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=Ac(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,nt,Ft,_t){if(rM(Ft,be,ze)||tO(Ft,be,ze)){if(_t!==-1)return _t}else{let Je=m.getLineAndCharacterOfPosition(be).line,ft=im(be,m),Zt=B_.findFirstNonWhitespaceColumn(ft,be,m,s);if(Je!==nt||be===Zt){let en=B_.getBaseIndentation(s);return en>Zt?en:Zt}}return-1}function ce(be,ze,nt,Ft,_t,Je){let ft=B_.shouldIndentChildNode(s,be)?s.indentSize:0;return Je===ze?{indentation:ze===w?j:_t.getIndentation(),delta:Math.min(s.indentSize,_t.getDelta(be)+ft)}:nt===-1?be.kind===21&&ze===w?{indentation:j,delta:_t.getDelta(be)}:B_.childStartsOnTheSameLineWithElseInIfStatement(Ft,be,ze,m)||B_.childIsUnindentedBranchOfConditionalExpression(Ft,be,ze,m)||B_.argumentStartsOnSameLineAsPreviousArgument(Ft,be,ze,m)?{indentation:_t.getIndentation(),delta:ft}:{indentation:_t.getIndentation()+_t.getDelta(be),delta:ft}:{indentation:nt,delta:ft}}function z(be){if(xm(be)){let ze=Gr(be.modifiers,Sa,Jl(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,nt,Ft){return{getIndentationForComment:(ft,Zt,en)=>{switch(ft){case 20:case 24:case 22:return nt+Je(en)}return Zt!==-1?Zt:nt},getIndentationForToken:(ft,Zt,en,Dn)=>!Dn&&_t(ft,Zt,en)?nt+Je(en):nt,getIndentation:()=>nt,getDelta:Je,recomputeIndentation:(ft,Zt)=>{B_.shouldIndentChildNode(s,Zt,be,m)&&(nt+=ft?s.indentSize:-s.indentSize,Ft=B_.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&&!(Ef(be)&&Zt===z(be))}function Je(ft){return B_.nodeWillIndentChild(s,be,ft,m,!0)?Ft:0}}function me(be,ze,nt,Ft,_t,Je){if(!rM(e,be.getStart(m),be.getEnd()))return;let ft=ee(be,nt,_t,Je),Zt=ze;for(Bo(be,pn=>{en(pn,-1,be,ft,nt,Ft,!1)},pn=>{Dn(pn,be,nt,ft)});o.isOnToken()&&o.getTokenFullStart()Math.min(be.end,e.end))break;Jn(pn,be,ft,be)}function en(pn,Yt,qt,hi,uo,Li,Eo,Zn){if(R.assert(!Xs(pn)),zl(pn)||Bre(qt,pn))return Yt;let jr=pn.getStart(m),Sr=m.getLineAndCharacterOfPosition(jr).line,on=Sr;Ef(pn)&&(on=m.getLineAndCharacterOfPosition(XV(pn,m)).line);let $e=-1;if(Eo&&of(e,qt)&&($e=B(jr,pn.end,uo,e,Yt),$e!==-1&&(Yt=$e)),!rM(e,pn.pos,pn.end))return pn.ende.end)return Yt;if(si.token.end>jr){si.token.pos>jr&&o.skipToStartOf(pn);break}Jn(si,be,hi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Yt;if(EI(pn)){let si=o.readTokenInfo(pn);if(pn.kind!==12)return R.assert(si.token.end===pn.end,"Token end is child end"),Jn(si,be,hi,pn),Yt}let Wt=pn.kind===170?Sr:Li,In=ce(pn,Sr,$e,be,hi,Wt);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(S0(pn)),R.assert(!Xs(pn));let uo=Fit(Yt,pn),Li=hi,Eo=qt;if(!rM(e,pn.pos,pn.end)){pn.endpn.pos)break;if(Sr.token.kind===uo){Eo=m.getLineAndCharacterOfPosition(Sr.token.pos).line,Jn(Sr,Yt,hi,Yt);let on;if(j!==-1)on=j;else{let $e=im(Sr.token.pos,m);on=B_.findFirstNonWhitespaceColumn($e,Sr.token.pos,m,s)}Li=ee(Yt,qt,on,s.indentSize)}else Jn(Sr,Yt,hi,Yt)}let Zn=-1;for(let Sr=0;Srpe(In.pos,Wt,!1))}on!==-1&&$e&&(pe(pn.token.pos,on,Zn===1),w=Sr.line,j=on)}o.advance(),Zt=Yt}}function ge(be,ze,nt,Ft){for(let _t of be){let Je=of(e,_t);switch(_t.kind){case 3:Je&&ne(_t,ze,!nt),nt=!1;break;case 2:nt&&Je&&Ft(_t),nt=!1;break;case 4:nt=!0;break}}return nt}function q(be,ze,nt,Ft){for(let _t of be)if(Kz(_t.kind)&&of(e,_t)){let Je=m.getLineAndCharacterOfPosition(_t.pos);J(_t,Je,ze,nt,Ft)}}function J(be,ze,nt,Ft,_t){let Je=h(be),ft=0;if(!Je)if(A)ft=re(be,ze.line,nt,A,D,N,Ft,_t);else{let Zt=m.getLineAndCharacterOfPosition(e.pos);he(Zt.line,ze.line)}return A=be,S=be.end,N=nt,D=ze.line,ft}function re(be,ze,nt,Ft,_t,Je,ft,Zt){E.updateContext(Ft,Je,be,nt,ft);let en=l(E),Dn=E.options.trimTrailingWhitespace!==!1,Jn=0;return en?qte(en,pn=>{if(Jn=Et(pn,Ft,_t,be,ze),Zt)switch(Jn){case 2:nt.getStart(m)===be.pos&&Zt.recomputeIndentation(!1,ft);break;case 1:nt.getStart(m)===be.pos&&Zt.recomputeIndentation(!0,ft);break;default:R.assert(Jn===0)}Dn=Dn&&!(pn.action&16)&&pn.flags!==1}):Dn=Dn&&be.kind!==1,ze!==_t&&Dn&&he(_t,ze,Ft),Jn}function pe(be,ze,nt){let Ft=U_e(ze,s);if(nt)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 nt=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,nt){for(let Ft=be;FtJe)continue;let ft=Ce(_t,Je);ft!==-1&&(R.assert(ft===_t||!b_(m.text.charCodeAt(ft-1))),Ie(ft,Je+1-ft))}}function Ce(be,ze){let nt=ze;for(;nt>=be&&b_(m.text.charCodeAt(nt));)nt--;return nt!==ze?nt+1:-1}function Ge(be){let ze=A?A.end:e.pos;for(let nt of be)Kz(nt.kind)&&(zeeO(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function Fit(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 zit(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function U_e(e,t){if((!wQ||wQ.tabSize!==t.tabSize||wQ.indentSize!==t.indentSize)&&(wQ={tabSize:t.tabSize,indentSize:t.indentSize},n8=r8=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return r8||(r8=[]),r8[o]===void 0?(i=sO(" ",t.indentSize*o),r8[o]=i):i=r8[o],s?i+sO(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return n8||(n8=[]),n8[i]===void 0?n8[i]=s=sO(" ",i):s=n8[i],o?s+sO(" ",o):s}}var wQ,n8,r8,Bit=bt({"src/services/formatting/formatting.ts"(){"use strict";ai(),i8()}}),B_,Git=bt({"src/services/formatting/smartIndenter.ts"(){"use strict";ai(),i8(),(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=Ac(ne,he,void 0,!0),Ie=Eke(he,ne,ve||null);if(Ie&&Ie.kind===3)return i(he,ne,Ce,Ie);if(!ve)return d(Ce);if(Wq(ve.kind)&&ve.getStart(he)<=ne&&ne=0),ve<=Ie)return J(wv(Ie,ne),he,ne,Ce);let De=wv(ve,ne),{column:ke,character:Et}=q(De,he,ne,Ce);return ke===0?ke:ne.text.charCodeAt(De+Et)===42?ke-1:ke}function o(ne,he,Ce){let Ge=he;for(;Ge>0;){let Ie=ne.text.charCodeAt(Ge);if(!Cg(Ie))break;Ge--}let ve=im(Ge,ne);return J(ve,Ge,ne,Ce)}function s(ne,he,Ce,Ge,ve,Ie){let De,ke=Ce;for(;ke;){if(Pq(ke,he,ne)&&xe(Ie,ke,De,ne,!0)){let be=A(ke,ne),ze=S(Ce,ke,Ge,ne),nt=ze!==0?ve&&ze===2?Ie.indentSize:0:Ge!==be.line?Ie.indentSize:0;return p(ke,be,void 0,nt,ne,!0,Ie)}let Et=ee(ke,ne,Ie,!0);if(Et!==-1)return Et;De=ke,ke=ke.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 ke;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),nt=ze.line===he.line||D(Et,ne,he.line,ve);if(be){let _t=(ke=K(ne,ve))==null?void 0:ke[0],Je=!!_t&&A(_t,ve).line>ze.line,ft=ee(ne,ve,De,Je);if(ft!==-1||(ft=y(ne,Et,he,nt,ve,De),ft!==-1))return ft+Ge}xe(De,Et,ne,ve,Ie)&&!nt&&(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(Kd(ne)||m2(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=cS(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(wR(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(E_(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],ke=ys(Ge,De.getEnd()).line;if(Ce===ke)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&&tO(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:()=>B_,anyContext:()=>SB,createTextRangeWithKind:()=>kQ,formatDocument:()=>Nit,formatNodeGivenIndentation:()=>Wit,formatOnClosingCurly:()=>Cit,formatOnEnter:()=>xit,formatOnOpeningCurly:()=>Dit,formatOnSemicolon:()=>Rit,formatSelection:()=>Pit,getAllRules:()=>Y2e,getFormatContext:()=>git,getFormattingScanner:()=>C_e,getIndentationString:()=>U_e,getRangeOfEnclosingComment:()=>Eke});var i8=bt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";Wrt(),Frt(),zrt(),hit(),Iit(),Bit(),Git()}}),ai=bt({"src/services/_namespaces/ts.ts"(){"use strict";Zo(),Jw(),qje(),yUe(),SUe(),Xxe(),kUe(),wUe(),VUe(),QUe(),ZUe(),tHe(),cHe(),dHe(),Pqe(),Mqe(),wqe(),tXe(),rXe(),Ta(),Vme(),t_e(),Ltt(),Ftt(),tnt(),vRe(),BRe(),Snt(),Nnt(),Ah(),Fnt(),prt(),brt(),Art(),Ort(),i8()}});function Vit(){return Ake??(Ake=new _m(qp))}function Ske(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 jit(e,t,r,i){let o=Ske(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Uit(e,t,r,i){let o=!1;return()=>{Tke&&!o&&(R.log.warn(Ske(e,!1,t,r,i)),o=!0)}}function Hit(e,t={}){let r=typeof t.typeScriptVersion=="string"?new _m(t.typeScriptVersion):t.typeScriptVersion??Vit(),i=typeof t.errorAfter=="string"?new _m(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new _m(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new _m(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,d=!o||r.compareTo(o)>=0;return l?jit(e,i,s,t.message):d?Uit(e,i,s,t.message):qa}function Kit(e,t){return function(){return e(),t.apply(this,arguments)}}function H_e(e,t){let r=Hit(t?.name??R.getFunctionName(e),t);return Kit(r,e)}var Tke,Ake,Ike=bt({"src/deprecatedCompat/deprecate.ts"(){"use strict";WQ(),Tke=!0}});function OQ(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]=H_e(t[d],{...i[d],name:e}))}let o=Jit(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 Jit(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 xke(e){return{overload:t=>({bind:r=>({finish:()=>OQ(e,t,r),deprecate:i=>({finish:()=>OQ(e,t,r,i)})})})}}var qit=bt({"src/deprecatedCompat/deprecations.ts"(){"use strict";WQ(),Ike()}}),Xit=bt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";WQ(),Ike(),coe(e=>{let t=e.getIdentifierConstructor();Is(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:H_e(function(){return nE(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: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."})})})}}),WQ=bt({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";Zo(),qit(),Xit()}}),Yit=bt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";Zo(),Jw(),J_e()}});function Rke(e,t,r,i){try{let o=YR(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 $it(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=Dke(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function Dke(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 Cke(e){return`@types/${e}@ts${v_}`}var Nke,Pke,Qit=bt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";Yit(),J_e(),Nke={isEnabled:()=>!1,writeLine:qa},Pke=class{constructor(e,t,r,i,o,s=Nke){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:tM,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${DE(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=F_.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=ym(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:Kw,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Kw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(d)}}initializeSafeList(){if(this.typesMapLocation){let e=F_.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=F_.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}':${DE(i)}`),this.log.writeLine(`Loaded content of '${r}':${DE(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!Is(o.dependencies,s))continue;let l=rc(s);if(!l)continue;let d=Rke(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 _m(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=F_.validatePackageName(t);if(i!==F_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(F_.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)&&F_.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:qp,projectName:e.projectName});let l=o.map(Cke);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=Rke(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}let y=this.typesRegistry.get(h),E=new _m(y[`ts${v_}`]||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:qp};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||ph(i,o=>!r.has(o))||ph(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:tM,projectName:e,files:t})):this.sendResponse({kind:tM,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Uw}}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:()=>Pke,getNpmCommandForInstallation:()=>Dke,installNpmPackages:()=>$it,typingsName:()=>Cke});var Zit=bt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";Qit()}}),J_e=bt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";Nz(),Zit()}}),eot=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 pl(e){return fa(e)}function o8(e,t,r){let i=dp(e)?e:_o(e,t);return r(i)}function Mke(e){return e}function Lke(){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 FQ,hc,zQ,Qy,tot=bt({"src/server/utilitiesPublic.ts"(){"use strict";ob(),FQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(FQ||{}),hc=Z_e(),zQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(zQ||{}),(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 BQ(e){let t=rc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function kke(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=Sy(e,t,el,r);i>=0&&e.splice(i,1)}var GQ,VQ,not=bt({"src/server/utilities.ts"(){"use strict";ob(),aA(),GQ=class q4e{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(q4e.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=ru)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=ru)==null||s.logStopScheduledOperation()}},VQ=class X4e{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(X4e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=ru)==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=ru)==null||i.logStopScheduledOperation()}}}}),jQ,ehe,the,nhe,rhe,ihe,ohe,ahe,she,lhe,che,dhe,uhe,phe,fhe=bt({"src/server/protocol.ts"(){"use strict";jQ=(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))(jQ||{}),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:()=>jQ,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 rot=bt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";fhe()}});function a8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&rc(e)[0]==="^"||e.includes(":^")&&!e.includes(il)}function wke(e){return!e||l8(e)?Qy.ThrowNoProject():e}function iot(e){R.assert(typeof e=="number",`Expected position ${e} to be a number.`),R.assert(e>=0,"Expected position to be non-negative.")}function oot(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 UQ,HQ,aot=bt({"src/server/scriptInfo.ts"(){"use strict";ob(),aA(),UQ=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=fD(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(!GI(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=bI(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 DK(this.text,t)}},HQ=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=a8(t),this.textStorage=new UQ(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:Rx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){kE(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&&!wD(e)&&e.addMissingFileRoot(t.fileName)}jh(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Qy.ThrowNoProject();case 1:return wke(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return gt(this.containingProjects,l8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){iot(e);let t=this.textStorage.positionToLineOffset(e);return oot(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Co(this.sourceMapFilePath)&&(Df(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Oke(e,t){if(e===t||(e||hc).length===0&&(t||hc).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 sot(e,t){return e.enable!==t.enable||!Oke(e.include,t.include)||!Oke(e.exclude,t.exclude)}function lot(e,t){return jv(e)!==jv(t)}function cot(e,t){return e===t?!1:!Um(e,t)}var DB,KQ,dot=bt({"src/server/typingsCache.ts"(){"use strict";ob(),aA(),DB={isKnownTypesPackageName:Hm,installPackage:Uo,enqueueInstallTypingsRequest:qa,attach:qa,onProjectClosed:qa,globalTypingsCacheLocation:void 0},KQ=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||sot(i,o.typeAcquisition)||lot(e.getCompilationSettings(),o.compilerOptions)||cot(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:hc,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?hc:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function s8(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 uot(e){let t=s8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function _he(e){let t=s8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function hhe(e){let t=s8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function ghe(e){return!e.some(t=>Tl(t,".ts")&&!Sd(t)||Tl(t,".tsx"))}function yhe(e){return e.generatedFilePath!==void 0}function pot(e,t){var r,i;let o=e.getSourceFiles();(r=or)==null||r.push(or.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(d=>$f(d.getName())),l=JC(ya(o,d=>fot(e,d,s,t)));return(i=or)==null||i.pop(),l}function fot(e,t,r,i){return KC(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!YN(s.extension))&&!$c(l)&&!r.some(d=>d===l)&&(o=Tn(o,bw(l).packageName))},t),o||hc})}function wD(e){return e.projectKind===0}function kE(e){return e.projectKind===1}function JQ(e){return e.projectKind===2}function l8(e){return e.projectKind===3||e.projectKind===4}var RM,oA,qQ,XQ,YQ,$Q,QQ,CB,mot=bt({"src/server/project.ts"(){"use strict";ob(),ob(),aA(),RM=(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))(RM||{}),oA=class Y4e{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=Hm,this.dirty=!1,this.typingFiles=hc,this.moduleSpecifierCache=Nhe(this),this.createHash=ea(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=F_.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 xY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||jv(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=wJ(this,this.currentDirectory,!0),this.languageService=cpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),l8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Bp(this),hhe(this)}isJsOnlyProject(){return Bp(this),uot(this)}static resolveModule(t,r,i,o){return Y4e.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=cU(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 Ye;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Ur(t,this.typingFiles)||Ye}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(fa(this.projectService.getExecutingFilePath()));return Yr(t,$L(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 rl(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),kc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),kc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Vr(this.projectErrors,t=>!t.file)||hc}getAllProjectErrors(){return this.projectErrors||hc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Bp(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?(Bp(this),this.builderState=Dm.create(this.program,this.builderState,!0),to(Dm.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:hc};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&&If(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):eN(l[0].text);Dm.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(ya(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&&(Qu(this.missingFilesMap,qm),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 hc}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(){Bp(this)}updateGraph(){var t,r,i,o,s;(t=or)==null||t.push(or.Phase.Session,"updateGraph",{name:this.projectName,kind:RM[this.projectKind]}),(r=ru)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),d=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||hc;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=pot(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=ru)==null||o.logStopUpdateGraph(),(s=or)==null||s.pop(),!l}updateTypingFiles(t){IW(t,this.typingFiles,Ix(!this.useCaseSensitiveFileNames()),qa,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Qu(this.typingWatchers,qm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Hw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),kc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!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),kc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=rc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(hm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(il,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(hm(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=qs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Hm,Hm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=or)==null||t.push(or.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=or)==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(nJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,y)=>this.addMissingFileWatcher(m,y)),this.generatedFilesMap){let m=Cs(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(s6(S.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Df(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&&ph(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||hc;this.externalFiles=this.getExternalFiles(),IW(this.externalFiles,p,Ix(!this.useCaseSensitiveFileNames()),m=>{let y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);y?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let h=qs()-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(kE(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return lD}let o=this.projectService.watchFactory.watchFile(_o(r,this.currentDirectory),(s,l)=>{kE(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),kc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Cs(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),kc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(yhe(this.generatedFilesMap)?Df(this.generatedFilesMap):Qu(this.generatedFilesMap,Df),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+=` `,FJ(this.program,l=>s+=` ${l} `))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${RM[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()||Bp(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:wD(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:pl(N),isSourceOfProjectReferenceRedirect:!1})))||hc,m=y0(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:pl(y),isSourceOfProjectReferenceRedirect:!1})))||hc,m=p.concat(h);return this.lastReportedFileNames=y0(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){Rx(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:iwe}),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?hc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Yr(this.currentDirectory,oD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=AX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||gO(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(Bp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=or)==null||t.push(or.Phase.Session,"getPackageJsonAutoImportProvider");let s=qs();if(this.autoImportProviderHost=$Q.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Bp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",qs()-s),(r=or)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=or)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Gc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(pl(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 XQ(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:Ye,lib:Ye,noLib:!0}}},qQ=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=zq(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:Ye,exclude:Ye}}},XQ=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(){}},YQ=class xbe 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 Ye;let d=r.getCurrentProgram();if(!d)return Ye;let p=qs(),h,m,y=Yr(r.currentDirectory,oD),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.`),Ye;let j=iK(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=iK(`@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 ${qs()-p} ms`),m||Ye;function A(D){ao(D,"@types/")||(h||(h=new Set)).add(D)}function N(D,w,j,K){var Y;let B=uK(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 xbe(r,l,o,s)}isEmpty(){return!gt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=xbe.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||Ye}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()}},YQ.maxDependencies=10,YQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ye,lib:Ye,noLib:!0},$Q=YQ,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=fa(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(fa(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=Hm;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)||hc}getAllProjectErrors(){return this.projectErrors||hc}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 WD(this,e.path,t=>O1(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)||!!WD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return wP(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 Wke(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 OD(e){return Co(e.indentStyle)&&(e.indentStyle=Hke.get(e.indentStyle.toLowerCase()),R.assert(e.indentStyle!==void 0)),e}function NB(e){return jke.forEach((t,r)=>{let i=e[r];Co(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function c8(e,t){let r,i;return JR.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=Uke.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 vhe(e){let t;return fw.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function ZQ(e){return Co(e)?eZ(e):e}function eZ(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 Fke(e,t){for(let r of t)if(r.getProjectName()===e)return r}function tZ(e){return!!e.containingProjects}function zke(e){return!!e.configFileInfo}function WD(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=pl(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=pl(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=pl(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 Bke(e,t){return e.potentialProjectReferences&&ph(e.potentialProjectReferences,t)}function _ot(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?Bke(e,i):gn(e.getProjectReferences(),r)}function She(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function Gke(e,t){return _ot(e,r=>She(e,t,r.sourceFile.path),r=>She(e,t,e.toPath(iD(r))),r=>She(e,t,r))}function hot(e,t){return`${Co(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Vke(e){return!e.isScriptOpen()&&e.mTime!==void 0}function O1(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Bp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function The(e){kE(e)&&(e.projectOptions=!0)}function Ahe(e){let t=1;return()=>e(t++)}function Ihe(){return{idToCallbacks:new Map,pathToId:new Map}}function got(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: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 yot(){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 PB,MB,d8,LB,kB,wB,OB,WB,FB,nZ,zB,BB,GB,Dhe,jke,Uke,Hke,rZ,VB,jB,iZ,oZ,Che,aZ,vot=bt({"src/server/editorServices.ts"(){"use strict";ob(),aA(),fhe(),PB=20*1024*1024,MB=4*1024*1024,d8="projectsUpdatedInBackground",LB="projectLoadingStart",kB="projectLoadingFinish",wB="largeFileReferenced",OB="configFileDiag",WB="projectLanguageServiceState",FB="projectInfo",nZ="openFileInfo",zB="createFileWatcher",BB="createDirectoryWatcher",GB="closeFileWatcher",Dhe="*ensureProjectForOpenFiles*",jke=Wke(sg),Uke=Wke(JR),Hke=new Map(Object.entries({none:0,block:1,smart:2})),rZ={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=Lx(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=>ZQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},iZ={close:qa},oZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(oZ||{}),Che=class Rbe{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=rZ,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||hc,this.pluginProbeLocations=t.pluginProbeLocations||hc,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=Xp()),this.currentDirectory=pl(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 GQ(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 KQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:Pz(this.host.newLine),preferences:Nf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=PX(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=Phe(this),this.watchFactory=this.serverMode!==0?{watchFile:cD,watchDirectory:cD}:rJ(got(this,t.canUseWatchEvents)||this.host,i,o,hot),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return rl(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=rZ,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case Uw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Hw: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(),l8(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Bp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:d8,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=c8(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)?Fke(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(pl(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=Bp(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(rc(p)==="package.json"&&!gO(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);kw({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),kc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var d;s&&(s.close(),s=void 0,(d=l.packageJsonWatches)==null||d.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let d=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(d)if(o=!0,l===t){if(d.isInitialLoadPending())return;d.pendingUpdateLevel=2,d.pendingUpdateReason=r,this.delayUpdateProjectGraph(d)}else d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(d)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?el: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(HC(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:_I(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:_I(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(dp(t.fileName)?t.fileName:_o(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Rx(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(kE(l)){t.hasMixedContent&&t.registerFileUpdate();let d=l.openFileWatchTriggered.get(t.path);d!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),kc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,el)}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,tJ(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=iZ):(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,kc.ConfigFileForInferredRoot):iZ)})}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(!tZ(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=()=>hm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),d=!i||!l(),p=!zke(t);do{if(p){let m=o8(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&&O1(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!zke(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.`),tZ(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 Fke(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(!GI(p)&&(l+=this.host.getFileSize(p),l>PB||l>s)){let h=i.map(m=>o.getFileName(m)).filter(m=>!GI(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=c8(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)){The(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){The(t);return}let r=kE(t)?t.projectOptions:void 0;The(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:s8(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 CB?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:qp};this.eventHandler({eventName:FB,data:i});function o(){return kE(t)&&BQ(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=or)==null||r.instant(or.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=or)==null||i.push(or.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=fa(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=PP(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=or)==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=NP(t,A=>this.host.readFile(A)),m=rw(t,Co(h)?h:""),y=m.parseDiagnostics;Co(h)||y.push(h);let E=sw(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,kc.ExtendedConfigFile,t),A=>this.toPath(A)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,Lw(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;Qu(i.watchedDirectories,Df),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,el)&&(i.config.watchedDirectories&&(Qu(i.config.watchedDirectories,Df),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=pl(d),h=a8(p),m;if(!h&&!t.fileExists(d)){m=o8(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=MP(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&&hm(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 qQ(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(pl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(pl(t))}getScriptInfoOrConfig(t){let r=pl(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=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,kc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let d=fz(this.toPath(s));if(!d)return;let p=rc(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?Vke(h)&&this.refreshScriptInfo(h):yI(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,kc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return 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)||Lp).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=aV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+il,this.filenameToScriptInfo.forEach(r=>{Vke(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(dp(t)||a8(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=o8(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=a8(t);if(R.assert(dp(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(!dp(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 HQ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!dp(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!dp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(o8(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:fD(S)},p=t.projectName,h=wX({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,kc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),d=o.getSourceFile(l);if(d&&d.resolvedPath===l)return d}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&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(pl(t.file));i&&(i.setOptions(OD(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,...OD(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=c8(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),O1(E,m)||WD(E,m.path,A=>(d(A),O1(A,m)),1)&&WD(E,void 0,d,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){R.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&wD(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(Bp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(pl(t),r,i,!1,o?pl(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:pl(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:""}`)}Bp(h);let m=S=>{let A=this.getScriptInfo(s);return A&&O1(S,A)};if(h.isSolution()||!m(h)){if(h=WD(h,s,S=>(Bp(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=>{kE(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=>(Bp(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?Bp(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,O1(o,t)||WD(o,t.path,p=>{if(Bp(p),So(s)?s.push(p):s=[o,p],O1(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(Bp),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()))Bke(i,o=>t.has(o))&&Bp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!qb(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=hJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!d)continue;let p=pl(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}`);Bp(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)&&Gke(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),Gke(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||!ph(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()||!Tm(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:nZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(pl(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(pl(d.fileName),d.content,ZQ(d.scriptKind),d.hasMixedContent,d.projectRootPath?pl(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=ya(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=pl(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=y0(this.externalProjects,i=>i.getProjectName(),i=>!0);ph(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);ph(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=rZ}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])?Rbe.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=Rbe.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=rc(ah(l[y]));if(Tl(E,"js")){let S=Tu(E),A=qG(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=pl(d.fileName);if(BQ(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=NB(t.options),y=c8(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||bw(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 ym(oi(t),d),l}getNearestAncestorDirectoryWithPackageJson(t){return ym(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,kc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=yot())}},Che.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,aZ=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(Th)+Th.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(qm),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 bot=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(oi(l),!0)},getInDirectory:l=>t.get(e.toPath(Yr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{ym(l,d=>{let p=e.toPath(d);if(s(p)!==3)return!0;let h=Yr(d,"package.json");hO(e,h)?i(h,Yr(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=R.checkDefined(pX(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 Eot=bt({"src/server/packageJsonCache.ts"(){"use strict";ob()}});function Sot(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function Kke(e,t){if((wD(e)||JQ(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Tot(e){return If(e)||!!e.emitDecoratorMetadata}function Jke(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:O_(r.messageText,` `),code:r.code,category:oT(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:mn(r.relatedInformation,sZ)}}function sZ(e){return e.file?{span:{start:u8(ys(e.file,e.start)),end:u8(ys(e.file,e.start+e.length)),file:e.file.fileName},message:O_(e.messageText,` `),category:oT(e),code:e.code}:{message:O_(e.messageText,` `),category:oT(e),code:e.code}}function u8(e){return{line:e.line+1,offset:e.character+1}}function p8(e,t){let r=e.file&&u8(ys(e.file,e.start)),i=e.file&&u8(ys(e.file,e.start+e.length)),o=O_(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,sZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function Aot(e,t){return e.every(r=>ql(r.span)i(s,e));return!So(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...ya(s,p=>i(p,d)))}),g0(o,Iy)}function lZ(e){return KG(({textSpan:t})=>t.start+100003*t.length,$q(e))}function xot(e,t,r,i,o,s,l){let d=qke(e,t,r,!0,(m,y)=>m.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(m,y)=>y(DM(m)));if(So(d))return d;let p=[],h=lZ(l);return d.forEach((m,y)=>{for(let E of m)!h.has(E)&&!cZ(DM(E),y)&&(p.push(E),h.add(E))}),p}function Rot(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 Dot(e,t,r,i,o){var s,l;let d=qke(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(DM(y.definition));for(let S of y.references)E(DM(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=lZ(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=lZ(i);return d.forEach((y,E)=>{for(let S of y){let A=cZ(DM(S.definition),E),N=A===void 0?S.definition:{...S.definition,textSpan:yd(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:Pot(S.definition,E)},D=Gr(h,w=>Yq(w.definition,N,i));D||(D={definition:N,references:[]},h.push(D));for(let w of S.references)!m.has(w)&&!cZ(DM(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 qke(e,t,r,i,o,s){let l=new Map,d=NL();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=Rot(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)||Xke(N,D)||(Bp(N),!N.containsFile(pl(D.fileName))))continue;let w=A(N,D);l.set(N,w??hc),S.add(Not(N))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(N=>{if(h.isCancellationRequested()||l.has(N))return;let D=Cot(m,N,y,E);D&&d.enqueue({project:N,location:D})}))}if(l.size===1)return GG(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 Cot(e,t,r,i){if(t.containsFile(pl(e.fileName))&&!Xke(t,e))return e;let o=r();if(o&&t.containsFile(pl(o.fileName)))return o;let s=i();return s&&t.containsFile(pl(s.fileName))?s:void 0}function Xke(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 Not(e){return kE(e)?e.canonicalConfigFilePath:e.getProjectName()}function DM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function cZ(e,t){return sM(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Yke(e,t){return t7(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Pot(e,t){return Zq(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ih(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(ql(e))}}function whe(e,t,r){let i=Ih(e,r),o=t&&Ih(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Mot(e,t){return{start:$ke(t,e.span.start),end:$ke(t,ql(e.span)),newText:e.newText}}function $ke(e,t){return xhe(e)?kot(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Lot(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 kot(e){return{line:e.line+1,offset:e.character+1}}function wot(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 Ohe(e,t,r,i){let o=Oot(e,t,i),{line:s,character:l}=kx(bI(o),r);return{line:s+1,offset:l+1}}function Oot(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 Qke(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:Wot(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Wot(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,ql(r)).replace(/\r|\n/g,"")}function Fot(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,Zke,zhe,ewe,Bhe,zot=bt({"src/server/session.ts"(){"use strict";ob(),aA(),fhe(),Whe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Fhe=jQ,Zke=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=or)==null||t.instant(or.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=or)==null||r.push(or.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=or)==null||i.pop())}catch(p){(o=or)==null||o.popAll(),d=!0,p instanceof Px?(s=or)==null||s.instant(or.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=or)==null||l.instant(or.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"],ewe=[...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 _te{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&&jC(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&jC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:HC(zG(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&&jC(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:zG(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(pl(s.arguments.file),s.arguments.fileContent,eZ(s.arguments.scriptKindName),s.arguments.projectRootPath?pl(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 Zke(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 aZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new VQ(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:ewe.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 d8: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=>p8(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},d8))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: `+eM(t.message),t.stack&&(o+=` `+eM(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=fD(d.getSnapshot());o+=` File text of ${i.file}:${eM(p)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} `,o+=` Projects:: `;let s=0,l=d=>{o+=` Project '${d.projectName}' (${RM[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: ${DE(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=Mhe(t,this.logger,this.byteLength,this.host.newLine);(r=ru)==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=or)==null||i.push(or.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=Kke(r,t)?hc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=or)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=or)==null||i.push(or.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=or)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=or)==null||i.push(or.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=or)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>Jke(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(Bp(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=pl(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=>p8(d,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:O_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:oT(r),code:r.code,source:r.source,startLocation:r.file&&u8(ys(r.file,r.start)),endLocation:r.file&&u8(ys(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:mn(r.relatedInformation,sZ)}))}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:O_(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,sZ)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&Kke(s,l))return hc;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>Jke(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)||hc,o);return r?this.mapDefinitionInfo(l,o):l.map(_te.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=Yke(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:hc,textSpan:void 0};let p=this.mapDefinitionInfoLocations(d.definitions,o),{textSpan:h}=d;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Ih(h,l)}:{definitions:p.map(_te.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||hc,o).slice();if(this.projectService.serverMode===0&&(!gt(d,S=>pl(S.fileName)!==i&&!S.isAmbient)||gt(d,S=>!!S.failedAliasResolution))){let S=KG(w=>w.textSpan.start,$q(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=>pl(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=>pl(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(Th)===K.topLevelNodeModulesIndex){let Y=S.substring(0,K.packageRootIndex),B=(D=o.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=o.getCompilationSettings(),z=vw(_o(Y+"/package.json",o.getCurrentDirectory()),yw(B,o,ce));if(!z)return;let ee=uK(z,{moduleResolution:2},o,o.getModuleResolutionCache()),me=S.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ge=WP(Sw(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)&&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=>pl(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:Yf(N)}));if(gt(j))return j})||hc}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&&ul(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=DN(w);if(j&&K)return ND.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=>p8(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,ql(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)||hc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=Yke(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)||hc,o);return r?l.map(({fileName:d,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(d,p,h,o)):l.map(_te.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?hc: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?hc: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 Lot(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:hc}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 Bp(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?hc:(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=pl(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=xot(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:Ih(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=pl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=Dot(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?wO(m.displayParts):"",E=m&&m.textSpan,S=E?h.positionToLineOffset(E.start).offset:0,A=E?h.getSnapshot().getText(E.start,ql(E)):"";return{refs:ya(l,D=>D.references.map(w=>Qke(this.projectService,w,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:y}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(pl(o)),l=[],d=lZ(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=>Qke(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=pl(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:Ih(d.textSpan,l),hintSpan:Ih(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?OD(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=wO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(ql(l.textSpan)),displayString:p,documentation:d?this.mapDisplayParts(l.documentation,o):wO(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?OD(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?OD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?OD(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||Aot(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(ql(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?Ih(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&&Ih(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,Fot):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?Iot(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)&&!Tot(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Cs(l)}}):hc}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=>p8(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=pl(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=pl(t.file),o=t.tmpfile===void 0?void 0:pl(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=fa(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=>Ih(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=>Ih(i,r)),nameSpan:t.nameSpan&&Ih(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?ya(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(ql(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})):ya(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=Vr(S,N=>m(N)&&!cZ(DM(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 vY();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(pl(d));m=Ohe(fD(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=pl(t.oldFilePath),o=pl(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=>ZL(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 mI(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=>Mot(i,r))}:wot(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=>Ih(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=pl(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:Ih(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=pl(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:Ih(t.span,r),selectionSpan:Ih(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Ih(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Ih(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&&_X(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:ah(t);return fa(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:${DE(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:${eM(this.toStringMessage(t))}`));let A,N;try{A=this.parseMessage(t),N=A.arguments&&A.arguments.file?A.arguments:void 0,(r=or)==null||r.instant(or.Phase.Session,"request",{seq:A.seq,command:A.command}),(i=ru)==null||i.logStartCommand(""+A.command,this.toStringMessage(t).substring(0,100)),(o=or)==null||o.push(or.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:D,responseRequired:w}=this.executeCommand(A);if((s=or)==null||s.pop(),this.logger.hasLevel(2)){let j=Sot(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=ru)==null||l.logStopCommand(""+A.command,"Success"),(d=or)==null||d.instant(or.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=or)==null||p.popAll(),D instanceof Px){(h=ru)==null||h.logStopCommand(""+(A&&A.command),"Canceled: "+D),(m=or)==null||m.instant(or.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=ru)==null||y.logStopCommand(""+(A&&A.command),"Error: "+D),(E=or)==null||E.instant(or.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,dZ,twe,nwe,UB,HB,Ghe,CM,F1,f8,Bot=bt({"src/server/scriptVersionCache.ts"(){"use strict";ob(),aA(),W1=4,dZ=(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))(dZ||{}),twe=class{constructor(){this.goSubtree=!0,this.lineIndex=new CM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new F1,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=CM.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 F1;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 f8(""):new F1}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)}},nwe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return e2(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 nwe(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 Ghe(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 Jne(i)}else return;else return h2}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new aI,i=new Ghe(0,r,new CM);r.versions[r.currentVersion]=i;let o=CM.linesFromText(t);return i.index.load(o.lines),r}},UB.changeNumberThreshold=8,UB.changeLengthThreshold=256,UB.maxVersions=8,HB=UB,Ghe=class $4e{constructor(t,r,i,o=hc){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 $4e&&this.cache===t.cache)return this.version<=t.version?h2:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},CM=class Dbe{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(Dbe.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 twe,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}}},F1=class Cbe{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:${DE(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 tM: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:${DE(t)}`),this.installer.send(t)},Q4e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Vhe.requestDelayMillis=100,jhe=Vhe}}),rwe={};xa(rwe,{ActionInvalidate:()=>Hw,ActionPackageInstalled:()=>Kw,ActionSet:()=>Uw,ActionWatchTypingLocations:()=>tM,Arguments:()=>tq,AutoImportProviderProject:()=>$Q,AuxiliaryProject:()=>XQ,CharRangeSection:()=>dZ,CloseFileWatcherEvent:()=>GB,CommandNames:()=>Fhe,ConfigFileDiagEvent:()=>OB,ConfiguredProject:()=>QQ,CreateDirectoryWatcherEvent:()=>BB,CreateFileWatcherEvent:()=>zB,Errors:()=>Qy,EventBeginInstallTypes:()=>Dz,EventEndInstallTypes:()=>Cz,EventInitializationFailed:()=>eq,EventTypesRegistry:()=>Rz,ExternalProject:()=>CB,GcTimer:()=>VQ,InferredProject:()=>qQ,LargeFileReferencedEvent:()=>wB,LineIndex:()=>CM,LineLeaf:()=>f8,LineNode:()=>F1,LogLevel:()=>FQ,Msg:()=>zQ,OpenFileInfoTelemetryEvent:()=>nZ,Project:()=>oA,ProjectInfoTelemetryEvent:()=>FB,ProjectKind:()=>RM,ProjectLanguageServiceStateEvent:()=>WB,ProjectLoadingFinishEvent:()=>kB,ProjectLoadingStartEvent:()=>LB,ProjectReferenceProjectLoadKind:()=>oZ,ProjectService:()=>aZ,ProjectsUpdatedInBackgroundEvent:()=>d8,ScriptInfo:()=>HQ,ScriptVersionCache:()=>HB,Session:()=>Bhe,TextStorage:()=>UQ,ThrottledOperations:()=>GQ,TypingsCache:()=>KQ,TypingsInstallerAdapter:()=>jhe,allFilesAreJsOrDts:()=>hhe,allRootFilesAreJsOrDts:()=>_he,asNormalizedPath:()=>Mke,convertCompilerOptions:()=>NB,convertFormatOptions:()=>OD,convertScriptKindName:()=>eZ,convertTypeAcquisition:()=>vhe,convertUserPreferences:()=>bhe,convertWatchOptions:()=>c8,countEachFileTypes:()=>s8,createInstallTypingsRequest:()=>q_e,createModuleSpecifierCache:()=>Nhe,createNormalizedPathMap:()=>Lke,createPackageJsonCache:()=>Phe,createSortedArray:()=>Z_e,emptyArray:()=>hc,findArgument:()=>bxe,forEachResolvedProjectReferenceProject:()=>WD,formatDiagnosticToProtocol:()=>p8,formatMessage:()=>Mhe,getBaseConfigFileName:()=>BQ,getLocationInNewDocument:()=>Ohe,hasArgument:()=>vxe,hasNoTypeScriptSource:()=>ghe,indent:()=>eM,isBackgroundProject:()=>l8,isConfigFile:()=>xhe,isConfiguredProject:()=>kE,isDynamicFileName:()=>a8,isExternalProject:()=>JQ,isInferredProject:()=>wD,isInferredProjectName:()=>X_e,makeAutoImportProviderProjectName:()=>$_e,makeAuxiliaryProjectName:()=>Q_e,makeInferredProjectName:()=>Y_e,maxFileSize:()=>MB,maxProgramSizeForNonTsFiles:()=>PB,normalizedPathToPath:()=>o8,nowString:()=>Exe,nullCancellationToken:()=>Whe,nullTypingsInstaller:()=>DB,projectContainsInfoDirectly:()=>O1,protocol:()=>mhe,removeSorted:()=>kke,stringifyIndented:()=>DE,toEvent:()=>Lhe,toNormalizedPath:()=>pl,tryConvertScriptKindName:()=>ZQ,typingsInstaller:()=>K_e,updateProjectIfDirty:()=>Bp});var aA=bt({"src/server/_namespaces/ts.server.ts"(){"use strict";Nz(),J_e(),eot(),tot(),not(),rot(),aot(),dot(),mot(),vot(),bot(),Eot(),zot(),Bot(),Got()}}),iwe={};xa(iwe,{ANONYMOUS:()=>b7,AccessFlags:()=>C9,AssertionLevel:()=>e9,AssignmentDeclarationKind:()=>F9,AssignmentKind:()=>xU,Associativity:()=>DU,BreakpointResolver:()=>RY,BuilderFileEmit:()=>PJ,BuilderProgramKind:()=>MJ,BuilderState:()=>Dm,BundleFileSectionKind:()=>nV,CallHierarchy:()=>D1,CharacterCodes:()=>X9,CheckFlags:()=>A9,CheckMode:()=>L3,ClassificationType:()=>bq,ClassificationTypeNames:()=>vq,CommentDirectiveType:()=>c9,Comparison:()=>NG,CompletionInfoFlags:()=>pq,CompletionTriggerKind:()=>sq,Completions:()=>L1,ContainerFlags:()=>bK,ContextFlags:()=>_9,Debug:()=>R,DiagnosticCategory:()=>OL,Diagnostics:()=>f,DocumentHighlights:()=>T7,ElementFlags:()=>D9,EmitFlags:()=>jW,EmitHint:()=>Z9,EmitOnly:()=>u9,EndOfLineState:()=>_q,EnumKind:()=>T9,ExitStatus:()=>p9,ExportKind:()=>DX,Extension:()=>Y9,ExternalEmitHelpers:()=>Q9,FileIncludeKind:()=>kW,FilePreprocessingDiagnosticsKind:()=>d9,FileSystemEntryKind:()=>lV,FileWatcherEventKind:()=>sV,FindAllReferences:()=>ws,FlattenLevel:()=>FK,FlowFlags:()=>wL,ForegroundColorEscapeSequences:()=>TJ,FunctionFlags:()=>RU,GeneratedIdentifierFlags:()=>LW,GetLiteralTextFlags:()=>TU,GoToDefinition:()=>ND,HighlightSpanKind:()=>cq,IdentifierNameMap:()=>g1,IdentifierNameMultiMap:()=>WK,ImportKind:()=>RX,ImportsNotUsedAsValues:()=>U9,IndentStyle:()=>dq,IndexFlags:()=>N9,IndexKind:()=>L9,InferenceFlags:()=>O9,InferencePriority:()=>w9,InlayHintKind:()=>lq,InlayHints:()=>vQ,InternalEmitFlags:()=>$9,InternalSymbolName:()=>I9,InvalidatedProjectKind:()=>ZJ,JSDocParsingMode:()=>oV,JsDoc:()=>LE,JsTyping:()=>F_,JsxEmit:()=>j9,JsxFlags:()=>s9,JsxReferenceKind:()=>P9,LanguageServiceMode:()=>iq,LanguageVariant:()=>J9,LexicalEnvironmentFlags:()=>tV,ListFormat:()=>rV,LogLevel:()=>n9,MemberOverrideStatus:()=>f9,ModifierFlags:()=>PW,ModuleDetectionKind:()=>z9,ModuleInstanceState:()=>vK,ModuleKind:()=>ZC,ModuleResolutionKind:()=>Mx,ModuleSpecifierEnding:()=>WU,NavigateTo:()=>due,NavigationBar:()=>bue,NewLineKind:()=>H9,NodeBuilderFlags:()=>h9,NodeCheckFlags:()=>x9,NodeFactoryFlags:()=>HU,NodeFlags:()=>NW,NodeResolutionFeatures:()=>hK,ObjectFlags:()=>FW,OperationCanceledException:()=>Px,OperatorPrecedence:()=>CU,OrganizeImports:()=>Cm,OrganizeImportsMode:()=>aq,OuterExpressionKinds:()=>eV,OutliningElementsCollector:()=>TQ,OutliningSpanKind:()=>fq,OutputFileType:()=>mq,PackageJsonAutoImportPreference:()=>rq,PackageJsonDependencyGroup:()=>nq,PatternMatchKind:()=>A7,PollingInterval:()=>UW,PollingWatchKind:()=>V9,PragmaKindFlags:()=>iV,PrivateIdentifierKind:()=>QU,ProcessLevel:()=>VK,ProgramUpdateLevel:()=>iJ,QuotePreference:()=>EX,RelationComparisonResult:()=>MW,Rename:()=>EB,ScriptElementKind:()=>gq,ScriptElementKindModifier:()=>yq,ScriptKind:()=>BW,ScriptSnapshot:()=>Mz,ScriptTarget:()=>K9,SemanticClassificationFormat:()=>oq,SemanticMeaning:()=>bX,SemicolonPreference:()=>uq,SignatureCheckMode:()=>k3,SignatureFlags:()=>zW,SignatureHelp:()=>$O,SignatureKind:()=>M9,SmartSelectionRange:()=>xQ,SnippetKind:()=>VW,SortKind:()=>ZG,StructureIsReused:()=>wW,SymbolAccessibility:()=>v9,SymbolDisplay:()=>$y,SymbolDisplayPartKind:()=>qw,SymbolFlags:()=>OW,SymbolFormatFlags:()=>y9,SyntaxKind:()=>CW,SyntheticSymbolKind:()=>b9,Ternary:()=>W9,ThrottledCancellationToken:()=>xY,TokenClass:()=>hq,TokenFlags:()=>l9,TransformFlags:()=>GW,TypeFacts:()=>M3,TypeFlags:()=>WW,TypeFormatFlags:()=>g9,TypeMapKind:()=>k9,TypePredicateKind:()=>E9,TypeReferenceSerializationKind:()=>S9,UnionReduction:()=>m9,UpToDateStatusType:()=>XJ,VarianceFlags:()=>R9,Version:()=>_m,VersionRange:()=>ML,WatchDirectoryFlags:()=>q9,WatchDirectoryKind:()=>G9,WatchFileKind:()=>B9,WatchLogLevel:()=>oJ,WatchType:()=>kc,accessPrivateIdentifier:()=>sle,addDisposableResourceHelper:()=>P4,addEmitFlags:()=>N_,addEmitHelper:()=>KI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>UI,addNodeFactoryPatcher:()=>VSe,addObjectAllocatorPatcher:()=>coe,addRange:()=>Ur,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>pP,addSyntheticTrailingComment:()=>i4,addToSeen:()=>Tm,advancedAsyncSuperHelper:()=>wk,affectsDeclarationPathOptionDeclarations:()=>QH,affectsEmitOptionDeclarations:()=>$H,allKeysStartWithDot:()=>I3,altDirectorySeparator:()=>UL,and:()=>TW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Um,arrayIsHomogeneous:()=>Coe,arrayIsSorted:()=>_W,arrayOf:()=>nne,arrayReverseIterator:()=>zG,arrayToMap:()=>y0,arrayToMultiMap:()=>CL,arrayToNumericMap:()=>ine,arraysEqual:()=>xL,assertType:()=>SEe,assign:()=>Ax,assignHelper:()=>u4,asyncDelegator:()=>f4,asyncGeneratorHelper:()=>p4,asyncSuperHelper:()=>kk,asyncValues:()=>m4,attachFileToDiagnostics:()=>zI,awaitHelper:()=>JI,awaiterHelper:()=>h4,base64decode:()=>Qie,base64encode:()=>$ie,binarySearch:()=>Sy,binarySearchKey:()=>pI,bindSourceFile:()=>Ose,breakIntoCharacterSpans:()=>rue,breakIntoWordSpans:()=>iue,buildLinkParts:()=>Rde,buildOpts:()=>m3,buildOverload:()=>xke,bundlerModuleNameResolver:()=>xse,canBeConvertedToAsync:()=>zX,canHaveDecorators:()=>jT,canHaveExportModifier:()=>hk,canHaveFlowNode:()=>U2,canHaveIllegalDecorators:()=>RH,canHaveIllegalModifiers:()=>Bae,canHaveIllegalType:()=>gTe,canHaveIllegalTypeParameters:()=>zae,canHaveJSDoc:()=>H2,canHaveLocals:()=>dh,canHaveModifiers:()=>xm,canHaveSymbol:()=>S_,canJsonReportNoInputFiles:()=>PP,canProduceDiagnostics:()=>J3,canUsePropertyAccess:()=>vU,canWatchAffectingLocation:()=>mce,canWatchAtTypes:()=>fce,canWatchDirectoryOrFile:()=>mz,cartesianProduct:()=>mne,cast:()=>ta,chainBundle:()=>Rm,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>VL,changeCompilerHostLikeToUseCache:()=>Ow,changeExtension:()=>mE,changeFullExtension:()=>Lne,changesAffectModuleResolution:()=>bF,changesAffectingProgramStructure:()=>wre,childIsDecorated:()=>AN,classElementOrClassElementParameterIsDecorated:()=>pj,classHasClassThisAssignment:()=>zK,classHasDeclaredOrExplicitlyAssignedName:()=>BK,classHasExplicitlyAssignedName:()=>U3,classOrConstructorParameterIsDecorated:()=>My,classPrivateFieldGetHelper:()=>D4,classPrivateFieldInHelper:()=>N4,classPrivateFieldSetHelper:()=>C4,classicNameResolver:()=>Mse,classifier:()=>_pe,cleanExtendedConfigCache:()=>tz,clear:()=>jh,clearMap:()=>Qu,clearSharedExtendedConfigFileWatcher:()=>tJ,climbPastPropertyAccess:()=>kz,climbPastPropertyOrElementAccess:()=>ede,clone:()=>UG,cloneCompilerOptions:()=>zq,closeFileWatcher:()=>qm,closeFileWatcherOf:()=>Df,codefix:()=>Wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Jne,collectExternalModuleInfo:()=>LK,combine:()=>Tx,combinePaths:()=>Yr,commentPragmas:()=>WL,commonOptionsWithBuild:()=>uw,commonPackageFolders:()=>MU,compact:()=>DL,compareBooleans:()=>Ev,compareDataObjects:()=>nU,compareDiagnostics:()=>JN,compareDiagnosticsSkipRelatedInformation:()=>I6,compareEmitHelpers:()=>oae,compareNumberOfDirectorySeparators:()=>fk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>XEe,comparePathsCaseSensitive:()=>qEe,comparePatternKeys:()=>mK,compareProperties:()=>dne,compareStringsCaseInsensitive:()=>EW,compareStringsCaseInsensitiveEslintCompatible:()=>sne,compareStringsCaseSensitive:()=>jd,compareStringsCaseSensitiveUI:()=>PL,compareTextSpans:()=>bW,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>cw,compilerOptionsAffectDeclarationPath:()=>voe,compilerOptionsAffectEmit:()=>yoe,compilerOptionsAffectSemanticDiagnostics:()=>goe,compilerOptionsDidYouMeanDiagnostics:()=>mw,compilerOptionsIndicateEsModules:()=>Hq,compose:()=>bEe,computeCommonSourceDirectoryOfFilenames:()=>Kle,computeLineAndCharacterOfPosition:()=>kx,computeLineOfPosition:()=>rN,computeLineStarts:()=>bI,computePositionOfLineAndCharacter:()=>$W,computeSignature:()=>XT,computeSignatureWithDiagnostics:()=>RJ,computeSuggestionDiagnostics:()=>OX,computedOptions:()=>mc,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>foe,consumesNodeCoreModules:()=>f7,contains:()=>zo,containsIgnoredPath:()=>nP,containsObjectRestOrSpread:()=>ew,containsParseError:()=>Kx,containsPath:()=>hm,convertCompilerOptionsForTelemetry:()=>cse,convertCompilerOptionsFromJson:()=>bAe,convertJsonOption:()=>UT,convertToBase64:()=>Yie,convertToJson:()=>aw,convertToObject:()=>ise,convertToOptionsWithAbsolutePaths:()=>HH,convertToRelativePath:()=>nN,convertToTSConfig:()=>aAe,convertTypeAcquisitionFromJson:()=>EAe,copyComments:()=>ZT,copyEntries:()=>EF,copyLeadingComments:()=>gD,copyProperties:()=>HG,copyTrailingAsLeadingComments:()=>mO,copyTrailingComments:()=>dM,couldStartTrivia:()=>Wne,countWhere:()=>vv,createAbstractBuilder:()=>R1e,createAccessorPropertyBackingField:()=>CH,createAccessorPropertyGetRedirector:()=>qae,createAccessorPropertySetRedirector:()=>Xae,createBaseNodeFactory:()=>joe,createBinaryExpressionTrampoline:()=>n3,createBindingHelper:()=>NR,createBuildInfo:()=>Pw,createBuilderProgram:()=>DJ,createBuilderProgramUsingProgramBuildInfo:()=>uce,createBuilderStatusReporter:()=>Dce,createCacheWithRedirects:()=>aK,createCacheableExportInfoMap:()=>AX,createCachedDirectoryStructureHost:()=>Z3,createClassNamedEvaluationHelperBlock:()=>fle,createClassThisAssignmentBlock:()=>ule,createClassifier:()=>Uxe,createCommentDirectivesMap:()=>Gre,createCompilerDiagnostic:()=>Ul,createCompilerDiagnosticForInvalidCustomType:()=>Zae,createCompilerDiagnosticFromMessageChain:()=>A6,createCompilerHost:()=>Jle,createCompilerHostFromProgramHost:()=>HJ,createCompilerHostWorker:()=>lJ,createDetachedDiagnostic:()=>SR,createDiagnosticCollection:()=>fR,createDiagnosticForFileFromMessageChain:()=>sj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Xx,createDiagnosticForNodeArrayFromMessageChain:()=>T2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Jf,createDiagnosticForRange:()=>Zre,createDiagnosticMessageChainFromDiagnostic:()=>Qre,createDiagnosticReporter:()=>Gw,createDocumentPositionMapper:()=>tle,createDocumentRegistry:()=>Kde,createDocumentRegistryInternal:()=>PX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>LJ,createEmitHelperFactory:()=>iae,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Mae,createExpressionForJsxFragment:()=>Lae,createExpressionForObjectLiteralElementLike:()=>kae,createExpressionForPropertyName:()=>EH,createExpressionFromEntityName:()=>Jk,createExternalHelpersImportDeclarationIfNeeded:()=>AH,createFileDiagnostic:()=>Zc,createFileDiagnosticFromMessageChain:()=>NF,createForOfBindingStatement:()=>bH,createGetCanonicalFileName:()=>Pd,createGetSourceFile:()=>aJ,createGetSymbolAccessibilityDiagnosticForNode:()=>jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Wle,createGetSymbolWalker:()=>Wse,createIncrementalCompilerHost:()=>JJ,createIncrementalProgram:()=>xce,createInputFiles:()=>USe,createInputFilesWithFilePaths:()=>jU,createInputFilesWithFileTexts:()=>UU,createJsxFactoryExpression:()=>vH,createLanguageService:()=>cpe,createLanguageServiceSourceFile:()=>q7,createMemberAccessForPropertyName:()=>VT,createModeAwareCache:()=>_1,createModeAwareCacheKey:()=>OP,createModuleNotFoundChain:()=>SF,createModuleResolutionCache:()=>XR,createModuleResolutionLoader:()=>mJ,createModuleResolutionLoaderUsingGlobalCache:()=>yce,createModuleSpecifierResolutionHost:()=>QT,createMultiMap:()=>Xp,createNodeConverters:()=>Hoe,createNodeFactory:()=>xk,createOptionNameMap:()=>o3,createOverload:()=>OQ,createPackageJsonImportFilter:()=>fM,createPackageJsonInfo:()=>pX,createParenthesizerRules:()=>Uoe,createPatternMatcher:()=>$de,createPrependNodes:()=>EJ,createPrinter:()=>xE,createPrinterWithDefaults:()=>ZK,createPrinterWithRemoveComments:()=>aS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>eJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Mw,createProgram:()=>az,createProgramHost:()=>KJ,createPropertyNameNodeForIdentifierOrLiteral:()=>V6,createQueue:()=>NL,createRange:()=>Sf,createRedirectedBuilderProgram:()=>NJ,createResolutionCache:()=>wJ,createRuntimeTypeSerializer:()=>yle,createScanner:()=>Dy,createSemanticDiagnosticsBuilderProgram:()=>x1e,createSet:()=>KG,createSolutionBuilder:()=>j1e,createSolutionBuilderHost:()=>G1e,createSolutionBuilderWithWatch:()=>U1e,createSolutionBuilderWithWatchHost:()=>V1e,createSortedArray:()=>FG,createSourceFile:()=>nw,createSourceMapGenerator:()=>$se,createSourceMapSource:()=>HSe,createSuperAccessVariableStatement:()=>K3,createSymbolTable:()=>oa,createSymlinkCache:()=>cU,createSystemWatchFunctions:()=>Cne,createTextChange:()=>oO,createTextChangeFromStartLength:()=>qz,createTextChangeRange:()=>e2,createTextRangeFromNode:()=>Vq,createTextRangeFromSpan:()=>Jz,createTextSpan:()=>yd,createTextSpanFromBounds:()=>uc,createTextSpanFromNode:()=>Ru,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>Gq,createTextWriter:()=>rk,createTokenRange:()=>Zj,createTypeChecker:()=>Hse,createTypeReferenceDirectiveResolutionCache:()=>S3,createTypeReferenceResolutionLoader:()=>rz,createUnparsedSourceFile:()=>VU,createWatchCompilerHost:()=>F1e,createWatchCompilerHostOfConfigFile:()=>Tce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Ace,createWatchFactory:()=>UJ,createWatchHost:()=>jJ,createWatchProgram:()=>z1e,createWatchStatusReporter:()=>vce,createWriteFileMeasuringIO:()=>sJ,declarationNameToString:()=>xs,decodeMappings:()=>NK,decodedTextSpanIntersectsWith:()=>ZL,decorateHelper:()=>a4,deduplicate:()=>g0,defaultIncludeSpec:()=>g3,defaultInitCompilerOptions:()=>_3,defaultMaximumTruncationLength:()=>bk,detectSortCaseSensitivity:()=>qC,diagnosticCategoryName:()=>oT,diagnosticToString:()=>tA,directoryProbablyExists:()=>Jm,directorySeparator:()=>il,displayPart:()=>tp,displayPartsToString:()=>wO,disposeEmitNodes:()=>KU,disposeResourcesHelper:()=>M4,documentSpansEqual:()=>Yq,dumpTracingLegend:()=>xne,elementAt:()=>xy,elideNodes:()=>Jae,emitComments:()=>zie,emitDetachedComments:()=>Bie,emitFiles:()=>Y3,emitFilesAndReportErrors:()=>yz,emitFilesAndReportErrorsAndGetExitStatus:()=>Sce,emitModuleKindIsNonNodeESM:()=>x6,emitNewLineBeforeLeadingCommentOfPosition:()=>Fie,emitNewLineBeforeLeadingComments:()=>Oie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wie,emitSkippedWithNoDiagnostics:()=>uz,emitUsingBuildInfo:()=>Vle,emptyArray:()=>Ye,emptyFileSystemEntries:()=>e4,emptyMap:()=>RW,emptyOptions:()=>Nf,emptySet:()=>hne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>v0,ensureScriptKind:()=>w6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>pp,enumerateInsertsAndDeletes:()=>IW,equalOwnProperties:()=>rne,equateStringsCaseInsensitive:()=>Yb,equateStringsCaseSensitive:()=>nT,equateValues:()=>Iy,esDecorateHelper:()=>c4,escapeJsxAttributeString:()=>zj,escapeLeadingUnderscores:()=>ml,escapeNonAsciiString:()=>nk,escapeSnippetText:()=>V0,escapeString:()=>eg,escapeTemplateSubstitution:()=>Wj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>Y4,explainFiles:()=>FJ,explainIfFileIsRedirectAndImpliedFormat:()=>zJ,exportAssignmentIsAlias:()=>cR,exportStarHelper:()=>R4,expressionResultIsUnused:()=>Poe,extend:()=>vW,extendsHelper:()=>g4,extensionFromPath:()=>$N,extensionIsTS:()=>F6,extensionsNotSupportingExtensionlessResolution:()=>Ik,externalHelpersModuleNameText:()=>Vv,factory:()=>L,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Ec,fileIncludeReasonToDiagnostics:()=>VJ,fileShouldUseJavaScriptRequire:()=>vX,filter:()=>Vr,filterMutate:()=>LG,filterSemanticDiagnostics:()=>sz,find:()=>Gr,findAncestor:()=>Fn,findBestPatternMatch:()=>YG,findChildOfKind:()=>hs,findComputedPropertyNameCacheAssignment:()=>r3,findConfigFile:()=>Hle,findContainingList:()=>zz,findDiagnosticForNode:()=>Fde,findFirstNonJsxWhitespaceToken:()=>ode,findIndex:()=>Jl,findLast:()=>uI,findLastIndex:()=>mW,findListItemInfo:()=>ide,findMap:()=>hEe,findModifier:()=>mD,findNextToken:()=>cS,findPackageJson:()=>Ode,findPackageJsons:()=>uX,findPrecedingMatchingToken:()=>Hz,findPrecedingToken:()=>Ac,findSuperStatementIndexPath:()=>G3,findTokenOnLeftOfPosition:()=>Vz,findUseStrictPrologue:()=>TH,first:()=>Va,firstDefined:()=>Fl,firstDefinedIterator:()=>IL,firstIterator:()=>GG,firstOrOnly:()=>hX,firstOrUndefined:()=>Yc,firstOrUndefinedIterator:()=>hW,fixupCompilerOptions:()=>GX,flatMap:()=>ya,flatMapIterator:()=>kG,flatMapToMutable:()=>UC,flatten:()=>mm,flattenCommaList:()=>Yae,flattenDestructuringAssignment:()=>KT,flattenDestructuringBinding:()=>oS,flattenDiagnosticMessageText:()=>O_,forEach:()=>gn,forEachAncestor:()=>Ore,forEachAncestorDirectory:()=>ym,forEachChild:()=>Bo,forEachChildRecursively:()=>CP,forEachEmittedFile:()=>XK,forEachEnclosingBlockScopeContainer:()=>Xre,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>xX,forEachImportClauseDeclaration:()=>ZF,forEachKey:()=>ph,forEachLeadingCommentRange:()=>qL,forEachNameInAccessChainWalkingLeft:()=>soe,forEachPropertyAssignment:()=>Zx,forEachResolvedProjectReference:()=>hJ,forEachReturnStatement:()=>D0,forEachRight:()=>qte,forEachTrailingCommentRange:()=>XL,forEachTsConfigPropArray:()=>R2,forEachUnique:()=>Qq,forEachYieldExpression:()=>tie,forSomeAncestorDirectory:()=>fSe,formatColorAndReset:()=>sS,formatDiagnostic:()=>cJ,formatDiagnostics:()=>s1e,formatDiagnosticsWithColorAndContext:()=>qle,formatGeneratedName:()=>EE,formatGeneratedNamePart:()=>UR,formatLocation:()=>dJ,formatMessage:()=>aU,formatStringFromArgs:()=>rg,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>IU,fullTripleSlashReferencePathRegEx:()=>AU,generateDjb2Hash:()=>eN,generateTSConfig:()=>uAe,generatorHelper:()=>A4,getAdjustedReferenceLocation:()=>Lq,getAdjustedRenameLocation:()=>Gz,getAliasDeclarationFromName:()=>xj,getAllAccessorDeclarations:()=>xT,getAllDecoratorsOfClass:()=>wK,getAllDecoratorsOfClassElement:()=>j3,getAllJSDocTags:()=>oF,getAllJSDocTagsOfKind:()=>A0e,getAllKeys:()=>yEe,getAllProjectOutputs:()=>X3,getAllSuperTypeNodes:()=>CN,getAllUnscopedEmitHelpers:()=>$U,getAllowJSCompilerOption:()=>jv,getAllowSyntheticDefaultImports:()=>CT,getAncestor:()=>pE,getAnyExtensionFromPath:()=>Lx,getAreDeclarationMapsEnabled:()=>Sk,getAssignedExpandoInitializer:()=>DI,getAssignedName:()=>rF,getAssignedNameOfIdentifier:()=>jP,getAssignmentDeclarationKind:()=>Bl,getAssignmentDeclarationPropertyAccessKind:()=>z2,getAssignmentTargetKind:()=>MI,getAutomaticTypeDirectiveNames:()=>b3,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>tk,getBuildInfo:()=>$3,getBuildInfoFileVersionMap:()=>CJ,getBuildInfoText:()=>Gle,getBuildOrderFromAnyBuildOrder:()=>Tz,getBuilderCreationParameters:()=>pz,getBuilderFileEmit:()=>eb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>L0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>vR,getCombinedModifierFlags:()=>tE,getCombinedNodeFlags:()=>Cy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>bV,getCommentRange:()=>P_,getCommonSourceDirectory:()=>YP,getCommonSourceDirectoryOfConfig:()=>tD,getCompilerOptionValue:()=>D6,getCompilerOptionsDiffValue:()=>cAe,getConditions:()=>Qv,getConfigFileParsingDiagnostics:()=>qT,getConstantValue:()=>$oe,getContainerFlags:()=>yK,getContainerNode:()=>$T,getContainingClass:()=>sd,getContainingClassExcludingClassDecorators:()=>zF,getContainingClassStaticBlock:()=>die,getContainingFunction:()=>Fp,getContainingFunctionDeclaration:()=>cie,getContainingFunctionOrClassStaticBlock:()=>FF,getContainingNodeArray:()=>Moe,getContainingObjectLiteralElement:()=>OO,getContextualTypeFromParent:()=>o7,getContextualTypeFromParentOrAncestorTypeNode:()=>Bz,getCurrentTime:()=>jw,getDeclarationDiagnostics:()=>Fle,getDeclarationEmitExtensionForPath:()=>l6,getDeclarationEmitOutputFilePath:()=>Pie,getDeclarationEmitOutputFilePathWorker:()=>s6,getDeclarationFileExtension:()=>LH,getDeclarationFromName:()=>DN,getDeclarationModifierFlagsFromSymbol:()=>Af,getDeclarationOfKind:()=>ul,getDeclarationsOfKind:()=>Lre,getDeclaredExpandoInitializer:()=>w2,getDecorators:()=>Rv,getDefaultCompilerOptions:()=>J7,getDefaultExportInfoWorker:()=>S7,getDefaultFormatCodeSettings:()=>Pz,getDefaultLibFileName:()=>$L,getDefaultLibFilePath:()=>dpe,getDefaultLikeExportInfo:()=>E7,getDiagnosticText:()=>ZTe,getDiagnosticsWithinSpan:()=>zde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>kJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>hce,getDocumentPositionMapper:()=>wX,getDocumentSpansEqualityComparer:()=>$q,getESModuleInterop:()=>hh,getEditsForFileRename:()=>qde,getEffectiveBaseTypeNode:()=>A_,getEffectiveConstraintOfTypeParameter:()=>zx,getEffectiveContainerForJSDocTemplateTag:()=>e6,getEffectiveImplementsTypeNodes:()=>dR,getEffectiveInitializer:()=>k2,getEffectiveJSDocHost:()=>uE,getEffectiveModifierFlags:()=>cu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uie,getEffectiveModifierFlagsNoCache:()=>Hie,getEffectiveReturnTypeNode:()=>Qf,getEffectiveSetAccessorTypeAnnotationNode:()=>wie,getEffectiveTypeAnnotationNode:()=>vd,getEffectiveTypeParameterDeclarations:()=>Dv,getEffectiveTypeRoots:()=>wP,getElementOrPropertyAccessArgumentExpressionOrName:()=>QF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>jR,getEmitDeclarations:()=>If,getEmitFlags:()=>za,getEmitHelpers:()=>o4,getEmitModuleDetectionKind:()=>NU,getEmitModuleKind:()=>kd,getEmitModuleResolutionKind:()=>uu,getEmitScriptTarget:()=>rs,getEmitStandardClassFields:()=>hoe,getEnclosingBlockScopeContainer:()=>fh,getEnclosingContainer:()=>aj,getEncodedSemanticClassifications:()=>CX,getEncodedSyntacticClassifications:()=>NX,getEndLinePosition:()=>v2,getEntityNameFromTypeNode:()=>N2,getEntrypointsFromPackageJsonInfo:()=>uK,getErrorCountForSummary:()=>hz,getErrorSpanForNode:()=>_T,getErrorSummaryText:()=>bce,getEscapedTextOfIdentifierOrLiteral:()=>MN,getEscapedTextOfJsxAttributeName:()=>aP,getEscapedTextOfJsxNamespacedName:()=>VI,getExpandoInitializer:()=>cE,getExportAssignmentExpression:()=>Rj,getExportInfoMap:()=>vO,getExportNeedsImportStarHelper:()=>nle,getExpressionAssociativity:()=>kj,getExpressionPrecedence:()=>kN,getExternalHelpersModuleName:()=>Xk,getExternalModuleImportEqualsDeclarationExpression:()=>IN,getExternalModuleName:()=>oR,getExternalModuleNameFromDeclaration:()=>Cie,getExternalModuleNameFromPath:()=>Gj,getExternalModuleNameLiteral:()=>u1,getExternalModuleRequireArgument:()=>mj,getFallbackOptions:()=>ww,getFileEmitOutput:()=>tce,getFileMatcherPatterns:()=>k6,getFileNamesFromConfigSpecs:()=>MP,getFileWatcherEventKind:()=>aV,getFilesInErrorForSummary:()=>gz,getFirstConstructorWithBody:()=>tg,getFirstIdentifier:()=>zp,getFirstNonSpaceCharacterPosition:()=>Nde,getFirstProjectOutput:()=>QK,getFixableErrorSpanExpression:()=>mX,getFormatCodeSettingsForWriting:()=>g7,getFullWidth:()=>g2,getFunctionFlags:()=>Vc,getHeritageClause:()=>$2,getHostSignatureFromJSDoc:()=>dE,getIdentifierAutoGenerate:()=>YSe,getIdentifierGeneratedImportReference:()=>rae,getIdentifierTypeArguments:()=>NT,getImmediatelyInvokedFunctionExpression:()=>gT,getImpliedNodeFormatForFile:()=>zw,getImpliedNodeFormatForFileWorker:()=>vJ,getImportNeedsImportDefaultHelper:()=>MK,getImportNeedsImportStarHelper:()=>z3,getIndentSize:()=>_R,getIndentString:()=>o6,getInferredLibraryNameResolveFrom:()=>oz,getInitializedVariables:()=>UN,getInitializerOfBinaryExpression:()=>vj,getInitializerOfBindingOrAssignmentElement:()=>$k,getInterfaceBaseTypeNodes:()=>NN,getInternalEmitFlags:()=>bm,getInvokedExpression:()=>VF,getIsolatedModules:()=>tm,getJSDocAugmentsTag:()=>nre,getJSDocClassTag:()=>SV,getJSDocCommentRanges:()=>cj,getJSDocCommentsAndTags:()=>Ej,getJSDocDeprecatedTag:()=>TV,getJSDocDeprecatedTagNoCache:()=>cre,getJSDocEnumTag:()=>AV,getJSDocHost:()=>ET,getJSDocImplementsTags:()=>rre,getJSDocOverloadTags:()=>Tj,getJSDocOverrideTagNoCache:()=>lre,getJSDocParameterTags:()=>Fx,getJSDocParameterTagsNoCache:()=>Qne,getJSDocPrivateTag:()=>v0e,getJSDocPrivateTagNoCache:()=>ore,getJSDocProtectedTag:()=>b0e,getJSDocProtectedTagNoCache:()=>are,getJSDocPublicTag:()=>y0e,getJSDocPublicTagNoCache:()=>ire,getJSDocReadonlyTag:()=>E0e,getJSDocReadonlyTagNoCache:()=>sre,getJSDocReturnTag:()=>dre,getJSDocReturnType:()=>n2,getJSDocRoot:()=>lR,getJSDocSatisfiesExpressionType:()=>EU,getJSDocSatisfiesTag:()=>IV,getJSDocTags:()=>oE,getJSDocTagsNoCache:()=>T0e,getJSDocTemplateTag:()=>S0e,getJSDocThisTag:()=>iF,getJSDocType:()=>iE,getJSDocTypeAliasName:()=>xH,getJSDocTypeAssertionType:()=>Q4,getJSDocTypeParameterDeclarations:()=>p6,getJSDocTypeParameterTags:()=>Zne,getJSDocTypeParameterTagsNoCache:()=>ere,getJSDocTypeTag:()=>rE,getJSXImplicitImportBase:()=>N6,getJSXRuntimeImport:()=>P6,getJSXTransformEnabled:()=>C6,getKeyForCompilerOptions:()=>oK,getLanguageVariant:()=>dk,getLastChild:()=>rU,getLeadingCommentRanges:()=>Hh,getLeadingCommentRangesOfNode:()=>lj,getLeftmostAccessExpression:()=>bR,getLeftmostExpression:()=>ER,getLibraryNameFromLibFileName:()=>gJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>DK,getLineOfLocalPosition:()=>ON,getLineOfLocalPositionFromLineMap:()=>AT,getLineStartPositionForPosition:()=>im,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>roe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>noe,getLinesBetweenPositions:()=>iN,getLinesBetweenRangeEndAndRangeStart:()=>eU,getLinesBetweenRangeEndPositions:()=>uSe,getLiteralText:()=>Vre,getLocalNameForExternalImport:()=>VR,getLocalSymbolForExportDefault:()=>yR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Vw,getMappedContextSpan:()=>Zq,getMappedDocumentSpan:()=>t7,getMappedLocation:()=>sM,getMatchedFileSpec:()=>BJ,getMatchedIncludeSpec:()=>GJ,getMeaningFromDeclaration:()=>Xw,getMeaningFromLocation:()=>YT,getMembersOfDeclaration:()=>nie,getModeForFileReference:()=>Ww,getModeForResolutionAtIndex:()=>Xle,getModeForUsageLocation:()=>pJ,getModifiedTime:()=>gI,getModifiers:()=>E0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>Bw,getModuleSpecifierEndingPreference:()=>Toe,getModuleSpecifierResolverHost:()=>Kq,getNameForExportedSymbol:()=>m7,getNameFromImportAttribute:()=>K6,getNameFromIndexInfo:()=>Yre,getNameFromPropertyName:()=>lO,getNameOfAccessExpression:()=>oU,getNameOfCompilerOptionValue:()=>UH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>gj,getNameOfJSDocTypedef:()=>$ne,getNameOrArgument:()=>F2,getNameTable:()=>EY,getNamesForExportedSymbol:()=>Bde,getNamespaceDeclarationNode:()=>aR,getNewLineCharacter:()=>Wy,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>qy,getNewTargetContainer:()=>pie,getNextJSDocCommentLocation:()=>Sj,getNodeForGeneratedName:()=>Zk,getNodeId:()=>is,getNodeKind:()=>lS,getNodeModifiers:()=>iM,getNodeModulePathParts:()=>j6,getNonAssignedNameOfDeclaration:()=>nF,getNonAssignmentOperatorForCompoundAssignment:()=>BP,getNonAugmentationDeclaration:()=>ej,getNonDecoratorTokenPosOfNode:()=>XV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>pV,getNormalizedPathComponents:()=>GL,getObjectFlags:()=>Lr,getOperator:()=>Oj,getOperatorAssociativity:()=>wj,getOperatorPrecedence:()=>ek,getOptionFromName:()=>BH,getOptionsForLibraryResolution:()=>sK,getOptionsNameMap:()=>KR,getOrCreateEmitNode:()=>wd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Fae,getOrUpdate:()=>KC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>Od,getOriginalSourceFile:()=>tSe,getOutputDeclarationFileName:()=>XP,getOutputDeclarationFileNameWorker:()=>YK,getOutputExtension:()=>q3,getOutputFileNames:()=>o1e,getOutputJSFileNameWorker:()=>$K,getOutputPathsFor:()=>qP,getOutputPathsForBundle:()=>JP,getOwnEmitOutputFilePath:()=>Nie,getOwnKeys:()=>Uh,getOwnValues:()=>fI,getPackageJsonInfo:()=>tS,getPackageJsonTypesVersionsPaths:()=>v3,getPackageJsonsVisibleToFile:()=>Wde,getPackageNameFromTypesPackageName:()=>WP,getPackageScopeForPath:()=>vw,getParameterSymbolFromJSDoc:()=>K2,getParameterTypeNode:()=>SSe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>iw,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>mV,getPathFromPathComponents:()=>Av,getPathUpdater:()=>LX,getPathsBasePath:()=>c6,getPatternFromSpec:()=>boe,getPendingEmitKind:()=>aD,getPositionOfLineAndCharacter:()=>KL,getPossibleGenericSignatures:()=>wq,getPossibleOriginalInputExtensionForExtension:()=>Mie,getPossibleTypeArgumentsInfo:()=>Oq,getPreEmitDiagnostics:()=>a1e,getPrecedingNonSpaceCharacterPosition:()=>r7,getPrivateIdentifier:()=>OK,getProperties:()=>kK,getProperty:()=>gW,getPropertyArrayElementValue:()=>lie,getPropertyAssignmentAliasLikeExpression:()=>Iie,getPropertyNameForPropertyNameNode:()=>ST,getPropertyNameForUniqueESSymbol:()=>Z0e,getPropertyNameFromType:()=>em,getPropertyNameOfBindingOrAssignmentElement:()=>IH,getPropertySymbolFromBindingElement:()=>e7,getPropertySymbolsFromContextualType:()=>X7,getQuoteFromPreference:()=>qq,getQuotePreference:()=>af,getRangesWhere:()=>WG,getRefactorContextSpan:()=>I1,getReferencedFileLocation:()=>$P,getRegexFromPattern:()=>Bv,getRegularExpressionForWildcard:()=>qN,getRegularExpressionsForWildcards:()=>M6,getRelativePathFromDirectory:()=>gm,getRelativePathFromFile:()=>jL,getRelativePathToDirectoryOrUrl:()=>vI,getRenameLocation:()=>fO,getReplacementSpanForContextToken:()=>Bq,getResolutionDiagnostic:()=>SJ,getResolutionModeOverride:()=>nD,getResolveJsonModule:()=>hE,getResolvePackageJsonExports:()=>$6,getResolvePackageJsonImports:()=>Q6,getResolvedExternalModuleName:()=>a6,getRestIndicatorOfBindingOrAssignmentElement:()=>e3,getRestParameterElementType:()=>dj,getRightMostAssignedExpression:()=>O2,getRootDeclaration:()=>x_,getRootDirectoryOfResolutionCache:()=>gce,getRootLength:()=>ch,getRootPathSplitLength:()=>P1e,getScriptKind:()=>iX,getScriptKindFromFileName:()=>O6,getScriptTargetFeatures:()=>X6,getSelectedEffectiveModifierFlags:()=>wI,getSelectedSyntacticModifierFlags:()=>Vie,getSemanticClassifications:()=>Ude,getSemanticJsxChildren:()=>pR,getSetAccessorTypeAnnotationNode:()=>Lie,getSetAccessorValueParameter:()=>WN,getSetExternalModuleIndicator:()=>uk,getShebang:()=>ZW,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>bj,getSingleVariableOfVariableStatement:()=>PI,getSnapshotText:()=>fD,getSnippetElement:()=>JU,getSourceFileOfModule:()=>AF,getSourceFileOfNode:()=>Vn,getSourceFilePathInNewDir:()=>d6,getSourceFilePathInNewDirWorker:()=>u6,getSourceFileVersionAsHashFromText:()=>vz,getSourceFilesToEmit:()=>Vj,getSourceMapRange:()=>zy,getSourceMapper:()=>aue,getSourceTextOfNodeFromSourceFile:()=>I0,getSpanOfTokenAtPosition:()=>mh,getSpellingSuggestion:()=>YC,getStartPositionOfLine:()=>wv,getStartPositionOfRange:()=>jN,getStartsOnNewLine:()=>uP,getStaticPropertiesAndClassStaticBlock:()=>V3,getStrictOptionValue:()=>du,getStringComparer:()=>Ix,getSubPatternFromSpec:()=>L6,getSuperCallFromStatement:()=>B3,getSuperContainer:()=>D2,getSupportedCodeFixes:()=>vY,getSupportedExtensions:()=>XN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>pk,getSwitchedType:()=>cX,getSymbolId:()=>va,getSymbolNameForPrivateIdentifier:()=>Q2,getSymbolTarget:()=>oX,getSyntacticClassifications:()=>Hde,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>Kj,getSynthesizedDeepClone:()=>sl,getSynthesizedDeepCloneWithReplacements:()=>pO,getSynthesizedDeepClones:()=>dS,getSynthesizedDeepClonesWithReplacements:()=>aX,getSyntheticLeadingComments:()=>CR,getSyntheticTrailingComments:()=>Pk,getTargetLabel:()=>wz,getTargetOfBindingOrAssignmentElement:()=>$v,getTemporaryModuleResolutionState:()=>yw,getTextOfConstantValue:()=>jre,getTextOfIdentifierOrLiteral:()=>Yf,getTextOfJSDocComment:()=>i2,getTextOfJsxAttributeName:()=>vk,getTextOfJsxNamespacedName:()=>sP,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>vN,getTextOfPropertyName:()=>qx,getThisContainer:()=>wu,getThisParameter:()=>w0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>sE,getTokenSourceMapRange:()=>qSe,getTouchingPropertyName:()=>zu,getTouchingToken:()=>pD,getTrailingCommentRanges:()=>Qb,getTrailingSemicolonDeferringWriter:()=>Bj,getTransformFlagsSubtreeExclusions:()=>Koe,getTransformers:()=>JK,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>TN,getTsConfigPropArrayElementValue:()=>WF,getTypeAnnotationNode:()=>kie,getTypeArgumentOrTypeParameterList:()=>fde,getTypeKeywordOfTypeOnlyImport:()=>Xq,getTypeNode:()=>tae,getTypeNodeIfAccessible:()=>pM,getTypeParameterFromJsDoc:()=>vie,getTypeParameterOwner:()=>f0e,getTypesPackageName:()=>x3,getUILocale:()=>lne,getUniqueName:()=>eA,getUniqueSymbolId:()=>Cde,getUseDefineForClassFields:()=>dP,getWatchErrorSummaryDiagnosticMessage:()=>OJ,getWatchFactory:()=>rJ,group:()=>XC,groupBy:()=>yW,guessIndentation:()=>Pre,handleNoEmitOptions:()=>bJ,hasAbstractModifier:()=>F0,hasAccessorModifier:()=>R_,hasAmbientModifier:()=>Hj,hasChangesInResolutions:()=>KV,hasChildOfKind:()=>nO,hasContextSensitiveParameters:()=>G6,hasDecorators:()=>Ef,hasDocComment:()=>ude,hasDynamicName:()=>Wv,hasEffectiveModifier:()=>mp,hasEffectiveModifiers:()=>f6,hasEffectiveReadonlyModifier:()=>FN,hasExtension:()=>yI,hasIndexSignature:()=>lX,hasInitializer:()=>Lv,hasInvalidEscape:()=>Fj,hasJSDocNodes:()=>wp,hasJSDocParameterTags:()=>tre,hasJSFileExtension:()=>z0,hasJsonModuleEmitEnabled:()=>R6,hasOnlyExpressionInitializer:()=>pT,hasOverrideModifier:()=>m6,hasPossibleExternalModuleReference:()=>qre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>$w,hasQuestionToken:()=>NI,hasRecordedExternalHelpers:()=>Wae,hasResolutionModeOverride:()=>Woe,hasRestParameter:()=>VV,hasScopeMarker:()=>Tre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>Gie,hasTSFileExtension:()=>GI,hasTabstop:()=>koe,hasTrailingDirectorySeparator:()=>Ry,hasType:()=>yF,hasTypeArguments:()=>q0e,hasZeroOrOneAsteriskCharacter:()=>lU,helperString:()=>YU,hostGetCanonicalFileName:()=>ky,hostUsesCaseSensitiveFileNames:()=>hR,idText:()=>vr,identifierIsThisKeyword:()=>Uj,identifierToKeywordKind:()=>nE,identity:()=>el,identitySourceMapConsumer:()=>F3,ignoreSourceNewlines:()=>XU,ignoredPaths:()=>BL,importDefaultHelper:()=>x4,importFromModuleSpecifier:()=>RN,importNameElisionDisabled:()=>sU,importStarHelper:()=>Lk,indexOfAnyCharCode:()=>Xte,indexOfNode:()=>Jx,indicesOf:()=>RL,inferredTypesContainingFile:()=>oD,injectClassNamedEvaluationHelperBlockIfMissing:()=>H3,injectClassThisAssignmentIfMissing:()=>ple,insertImports:()=>aM,insertLeadingStatement:()=>fTe,insertSorted:()=>bv,insertStatementAfterCustomPrologue:()=>fT,insertStatementAfterStandardPrologue:()=>F0e,insertStatementsAfterCustomPrologue:()=>JV,insertStatementsAfterStandardPrologue:()=>Xh,intersperse:()=>MG,intrinsicTagNameToString:()=>SU,introducesArgumentsExoticObject:()=>aie,inverseJsxOptionMap:()=>LP,isAbstractConstructorSymbol:()=>ioe,isAbstractModifier:()=>uae,isAccessExpression:()=>Ls,isAccessibilityModifier:()=>Fq,isAccessor:()=>Nv,isAccessorModifier:()=>fae,isAliasSymbolDeclaration:()=>Y0e,isAliasableExpression:()=>Y2,isAmbientModule:()=>Ld,isAmbientPropertyDeclaration:()=>nj,isAnonymousFunctionDefinition:()=>LN,isAnyDirectorySeparator:()=>cV,isAnyImportOrBareOrAccessedRequire:()=>Jre,isAnyImportOrReExport:()=>E2,isAnyImportSyntax:()=>mT,isAnySupportedFileExtension:()=>ESe,isApplicableVersionedTypesKey:()=>Ew,isArgumentExpressionOfElementAccess:()=>Rq,isArray:()=>So,isArrayBindingElement:()=>pF,isArrayBindingOrAssignmentElement:()=>u2,isArrayBindingOrAssignmentPattern:()=>OV,isArrayBindingPattern:()=>H0,isArrayLiteralExpression:()=>pu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ky,isArrayTypeNode:()=>Bk,isArrowFunction:()=>zs,isAsExpression:()=>Vk,isAssertClause:()=>bae,isAssertEntry:()=>oTe,isAssertionExpression:()=>uT,isAssertsKeyword:()=>cae,isAssignmentDeclaration:()=>xN,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>hN,isAssignmentTarget:()=>Zh,isAsteriskToken:()=>Ok,isAsyncFunction:()=>PN,isAsyncModifier:()=>mP,isAutoAccessorPropertyDeclaration:()=>ku,isAwaitExpression:()=>qv,isAwaitKeyword:()=>rH,isBigIntLiteral:()=>L4,isBinaryExpression:()=>pr,isBinaryOperatorToken:()=>Kae,isBindableObjectDefinePropertyCall:()=>vT,isBindableStaticAccessExpression:()=>P0,isBindableStaticElementAccessExpression:()=>$F,isBindableStaticNameExpression:()=>bT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>_ie,isBindingName:()=>cT,isBindingOrAssignmentElement:()=>gre,isBindingOrAssignmentPattern:()=>c2,isBindingPattern:()=>$o,isBlock:()=>Ho,isBlockOrCatchScoped:()=>YV,isBlockScope:()=>rj,isBlockScopedContainerTopLevel:()=>Kre,isBooleanLiteral:()=>_N,isBreakOrContinueStatement:()=>uN,isBreakStatement:()=>nTe,isBuildInfoFile:()=>Ble,isBuilderProgram:()=>Ece,isBundle:()=>dH,isBundleFileTextLike:()=>aoe,isCallChain:()=>sT,isCallExpression:()=>ra,isCallExpressionTarget:()=>Eq,isCallLikeExpression:()=>A0,isCallLikeOrFunctionLikeExpression:()=>WV,isCallOrNewExpression:()=>E_,isCallOrNewExpressionTarget:()=>Sq,isCallSignatureDeclaration:()=>ZI,isCallToHelper:()=>fP,isCaseBlock:()=>EP,isCaseClause:()=>OR,isCaseKeyword:()=>mae,isCaseOrDefaultClause:()=>hF,isCatchClause:()=>Q0,isCatchClauseVariableDeclaration:()=>Loe,isCatchClauseVariableDeclarationOrBindingElement:()=>$V,isCheckJsEnabledForFile:()=>_k,isChildOfNodeWithKind:()=>B0e,isCircularBuildOrder:()=>b1,isClassDeclaration:()=>Tc,isClassElement:()=>Qc,isClassExpression:()=>ed,isClassInstanceProperty:()=>_re,isClassLike:()=>di,isClassMemberModifier:()=>LV,isClassNamedEvaluationHelperBlock:()=>v1,isClassOrTypeElement:()=>uF,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>VP,isCollapsedRange:()=>dSe,isColonToken:()=>sae,isCommaExpression:()=>qk,isCommaListExpression:()=>yP,isCommaSequence:()=>xP,isCommaToken:()=>aae,isComment:()=>Kz,isCommonJsExportPropertyAssignment:()=>wF,isCommonJsExportedExpression:()=>iie,isCompoundAssignment:()=>zP,isComputedNonLiteralName:()=>S2,isComputedPropertyName:()=>$a,isConciseBody:()=>mF,isConditionalExpression:()=>wR,isConditionalTypeNode:()=>r1,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Fk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>PR,isContextualKeyword:()=>n6,isContinueStatement:()=>tTe,isCustomPrologue:()=>x2,isDebuggerStatement:()=>rTe,isDeclaration:()=>Kd,isDeclarationBindingElement:()=>l2,isDeclarationFileName:()=>Sd,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>tU,isDeclarationReadonly:()=>PF,isDeclarationStatement:()=>Rre,isDeclarationWithTypeParameterChildren:()=>oj,isDeclarationWithTypeParameters:()=>ij,isDecorator:()=>Ed,isDecoratorTarget:()=>Qce,isDefaultClause:()=>TP,isDefaultImport:()=>CI,isDefaultModifier:()=>W4,isDefaultedExpandoInitializer:()=>hie,isDeleteExpression:()=>gae,isDeleteTarget:()=>Ij,isDeprecatedDeclaration:()=>_7,isDestructuringAssignment:()=>Oy,isDiagnosticWithLocation:()=>fX,isDiskPathRoot:()=>dV,isDoStatement:()=>ZSe,isDocumentRegistryEntry:()=>bO,isDotDotDotToken:()=>w4,isDottedName:()=>BN,isDynamicName:()=>i6,isESSymbolIdentifier:()=>eSe,isEffectiveExternalModule:()=>RI,isEffectiveModuleDeclaration:()=>Hre,isEffectiveStrictModeSourceFile:()=>tj,isElementAccessChain:()=>xV,isElementAccessExpression:()=>Ys,isEmittedFileOfProgram:()=>Ule,isEmptyArrayLiteral:()=>Xie,isEmptyBindingElement:()=>Xne,isEmptyBindingPattern:()=>qne,isEmptyObjectLiteral:()=>$j,isEmptyStatement:()=>sH,isEmptyStringLiteral:()=>fj,isEntityName:()=>Yu,isEntityNameExpression:()=>Gl,isEnumConst:()=>R0,isEnumDeclaration:()=>yE,isEnumMember:()=>Z0,isEqualityOperatorKind:()=>a7,isEqualsGreaterThanToken:()=>lae,isExclamationToken:()=>Wk,isExcludedFile:()=>ase,isExclusivelyTypeOnlyImportOrExport:()=>uJ,isExpandoPropertyDeclaration:()=>H6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Yl,isExportModifier:()=>$I,isExportName:()=>$4,isExportNamespaceAsDefaultDeclaration:()=>RF,isExportOrDefaultModifier:()=>Qk,isExportSpecifier:()=>Jd,isExportsIdentifier:()=>yT,isExportsOrModuleExportsOrAlias:()=>nS,isExpression:()=>ht,isExpressionNode:()=>$h,isExpressionOfExternalModuleImportEqualsDeclaration:()=>nde,isExpressionOfOptionalChainRoot:()=>lF,isExpressionStatement:()=>td,isExpressionWithTypeArguments:()=>Gy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>_6,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>x0,isExternalModuleImportEqualsDeclaration:()=>lE,isExternalModuleIndicator:()=>p2,isExternalModuleNameRelative:()=>$c,isExternalModuleReference:()=>Eh,isExternalModuleSymbol:()=>aO,isExternalOrCommonJsModule:()=>Op,isFileLevelReservedGeneratedIdentifier:()=>s2,isFileLevelUniqueName:()=>IF,isFileProbablyExternalModule:()=>tw,isFirstDeclarationOfSymbolParameter:()=>eX,isFixablePromiseHandler:()=>FX,isForInOrOfStatement:()=>Vx,isForInStatement:()=>j4,isForInitializer:()=>bf,isForOfStatement:()=>jk,isForStatement:()=>OT,isFunctionBlock:()=>C0,isFunctionBody:()=>zV,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>ks,isFunctionExpressionOrArrowFunction:()=>G0,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Fs,isFunctionLikeKind:()=>TI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Gx,isFunctionOrConstructorTypeNode:()=>hre,isFunctionOrModuleBlock:()=>kV,isFunctionSymbol:()=>yie,isFunctionTypeNode:()=>yh,isFutureReservedKeyword:()=>$0e,isGeneratedIdentifier:()=>ol,isGeneratedPrivateIdentifier:()=>lT,isGetAccessor:()=>Mv,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>aF,isGlobalDeclaration:()=>zxe,isGlobalScopeAugmentation:()=>T_,isGrammarError:()=>Bre,isHeritageClause:()=>ef,isHoistedFunction:()=>LF,isHoistedVariableStatement:()=>kF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>Nj,isIdentifierName:()=>Aie,isIdentifierOrThisTypeNode:()=>Vae,isIdentifierPart:()=>Zb,isIdentifierStart:()=>Kh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>sie,isIdentifierTypeReference:()=>Doe,isIfStatement:()=>wT,isIgnoredFileFromWildCardWatching:()=>kw,isImplicitGlob:()=>uU,isImportAttribute:()=>Eae,isImportAttributeName:()=>mre,isImportAttributes:()=>a1,isImportCall:()=>Wp,isImportClause:()=>vh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>nd,isImportKeyword:()=>hP,isImportMeta:()=>$x,isImportOrExportSpecifier:()=>SI,isImportOrExportSpecifierName:()=>Dde,isImportSpecifier:()=>Zu,isImportTypeAssertionContainer:()=>iTe,isImportTypeNode:()=>og,isImportableFile:()=>IX,isInComment:()=>Hy,isInCompoundLikeAssignment:()=>Aj,isInExpressionContext:()=>UF,isInJSDoc:()=>M2,isInJSFile:()=>ar,isInJSXText:()=>cde,isInJsonFile:()=>KF,isInNonReferenceComment:()=>hde,isInReferenceComment:()=>_de,isInRightSideOfInternalImportEqualsDeclaration:()=>Lz,isInString:()=>S1,isInTemplateString:()=>kq,isInTopLevelContext:()=>BF,isInTypeQuery:()=>IT,isIncrementalCompilation:()=>cP,isIndexSignatureDeclaration:()=>U0,isIndexedAccessTypeNode:()=>kT,isInferTypeNode:()=>PT,isInfinityOrNaNString:()=>rP,isInitializedProperty:()=>Rw,isInitializedVariable:()=>ck,isInsideJsxElement:()=>Uz,isInsideJsxElementOrAttribute:()=>lde,isInsideNodeModules:()=>gO,isInsideTemplateLiteral:()=>iO,isInstanceOfExpression:()=>h6,isInstantiatedModule:()=>SK,isInterfaceDeclaration:()=>fu,isInternalDeclaration:()=>jV,isInternalModuleImportEqualsDeclaration:()=>nR,isInternalName:()=>SH,isIntersectionTypeNode:()=>n1,isIntrinsicJsxName:()=>mR,isIterationStatement:()=>Pv,isJSDoc:()=>Qm,isJSDocAllType:()=>xae,isJSDocAugmentsTag:()=>d1,isJSDocAuthorTag:()=>cTe,isJSDocCallbackTag:()=>pH,isJSDocClassTag:()=>Dae,isJSDocCommentContainingNode:()=>gF,isJSDocConstructSignature:()=>sR,isJSDocDeprecatedTag:()=>gH,isJSDocEnumTag:()=>Hk,isJSDocFunctionType:()=>FR,isJSDocImplementsTag:()=>q4,isJSDocIndexSignature:()=>JF,isJSDocLikeText:()=>PH,isJSDocLink:()=>Aae,isJSDocLinkCode:()=>Iae,isJSDocLinkLike:()=>xI,isJSDocLinkPlain:()=>sTe,isJSDocMemberName:()=>vE,isJSDocNameReference:()=>AP,isJSDocNamepathType:()=>lTe,isJSDocNamespaceBody:()=>M0e,isJSDocNode:()=>jx,isJSDocNonNullableType:()=>U4,isJSDocNullableType:()=>WR,isJSDocOptionalParameter:()=>yk,isJSDocOptionalType:()=>uH,isJSDocOverloadTag:()=>zR,isJSDocOverrideTag:()=>K4,isJSDocParameterTag:()=>Zm,isJSDocPrivateTag:()=>mH,isJSDocPropertyLikeTag:()=>pN,isJSDocPropertyTag:()=>Cae,isJSDocProtectedTag:()=>_H,isJSDocPublicTag:()=>fH,isJSDocReadonlyTag:()=>hH,isJSDocReturnTag:()=>J4,isJSDocSatisfiesExpression:()=>bU,isJSDocSatisfiesTag:()=>X4,isJSDocSeeTag:()=>dTe,isJSDocSignature:()=>bE,isJSDocTag:()=>Ux,isJSDocTemplateTag:()=>rm,isJSDocThisTag:()=>yH,isJSDocThrowsTag:()=>pTe,isJSDocTypeAlias:()=>Xf,isJSDocTypeAssertion:()=>GR,isJSDocTypeExpression:()=>eS,isJSDocTypeLiteral:()=>BT,isJSDocTypeTag:()=>IP,isJSDocTypedefTag:()=>GT,isJSDocUnknownTag:()=>uTe,isJSDocUnknownType:()=>Rae,isJSDocVariadicType:()=>H4,isJSXTagName:()=>tR,isJsonEqual:()=>z6,isJsonSourceFile:()=>qf,isJsxAttribute:()=>k_,isJsxAttributeLike:()=>_F,isJsxAttributeName:()=>Ooe,isJsxAttributes:()=>$0,isJsxChild:()=>_2,isJsxClosingElement:()=>X0,isJsxClosingFragment:()=>Sae,isJsxElement:()=>ag,isJsxExpression:()=>SP,isJsxFragment:()=>Y0,isJsxNamespacedName:()=>$m,isJsxOpeningElement:()=>L_,isJsxOpeningFragment:()=>l1,isJsxOpeningLikeElement:()=>su,isJsxOpeningLikeElementTagName:()=>Zce,isJsxSelfClosingElement:()=>FT,isJsxSpreadAttribute:()=>c1,isJsxTagNameExpression:()=>gN,isJsxText:()=>qI,isJumpStatementTarget:()=>Qw,isKeyword:()=>Wu,isKeywordOrPunctuation:()=>t6,isKnownSymbol:()=>Z2,isLabelName:()=>Iq,isLabelOfLabeledStatement:()=>Aq,isLabeledStatement:()=>q0,isLateVisibilityPaintedStatement:()=>CF,isLeftHandSideExpression:()=>$u,isLeftHandSideOfAssignment:()=>cSe,isLet:()=>MF,isLineBreak:()=>Ud,isLiteralComputedPropertyDeclarationName:()=>X2,isLiteralExpression:()=>T0,isLiteralExpressionOfObject:()=>PV,isLiteralImportTypeNode:()=>Ov,isLiteralKind:()=>fN,isLiteralLikeAccess:()=>YF,isLiteralLikeElementAccess:()=>W2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Oz,isLiteralTypeLikeExpression:()=>yTe,isLiteralTypeLiteral:()=>Ere,isLiteralTypeNode:()=>Jv,isLocalName:()=>Bg,isLogicalOperator:()=>Kie,isLogicalOrCoalescingAssignmentExpression:()=>Jj,isLogicalOrCoalescingAssignmentOperator:()=>zN,isLogicalOrCoalescingBinaryExpression:()=>ok,isLogicalOrCoalescingBinaryOperator:()=>ik,isMappedTypeNode:()=>LR,isMemberName:()=>Jh,isMetaProperty:()=>gP,isMethodDeclaration:()=>Hl,isMethodOrAccessor:()=>AI,isMethodSignature:()=>gh,isMinusToken:()=>nH,isMissingDeclaration:()=>aTe,isMissingPackageJsonInfo:()=>Tse,isModifier:()=>Sa,isModifierKind:()=>Ny,isModifierLike:()=>al,isModuleAugmentationExternal:()=>ZV,isModuleBlock:()=>M_,isModuleBody:()=>Are,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>Qh,isModuleIdentifier:()=>yj,isModuleName:()=>Hae,isModuleOrEnumDeclaration:()=>f2,isModuleReference:()=>Cre,isModuleSpecifierLike:()=>Zz,isModuleWithStringLiteralName:()=>DF,isNameOfFunctionDeclaration:()=>Cq,isNameOfModuleDeclaration:()=>Dq,isNamedClassElement:()=>R0e,isNamedDeclaration:()=>ou,isNamedEvaluation:()=>fp,isNamedEvaluationSource:()=>Pj,isNamedExportBindings:()=>DV,isNamedExports:()=>Rf,isNamedImportBindings:()=>BV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>T6,isNamedTupleMember:()=>MR,isNamespaceBody:()=>P0e,isNamespaceExport:()=>bh,isNamespaceExportDeclaration:()=>Uk,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>mie,isNewExpression:()=>K0,isNewExpressionTarget:()=>nM,isNoSubstitutionTemplateLiteral:()=>XI,isNode:()=>I0e,isNodeArray:()=>S0,isNodeArrayMultiLine:()=>toe,isNodeDescendantOf:()=>M0,isNodeKind:()=>o2,isNodeLikeSystem:()=>QG,isNodeModulesDirectory:()=>qW,isNodeWithPossibleHoistedDeclaration:()=>Eie,isNonContextualKeyword:()=>Cj,isNonExportDefaultModifier:()=>bTe,isNonGlobalAmbientModule:()=>QV,isNonGlobalDeclaration:()=>jde,isNonNullAccess:()=>woe,isNonNullChain:()=>cF,isNonNullExpression:()=>o1,isNonStaticMethodOrAccessorWithPrivateName:()=>rle,isNotEmittedOrPartiallyEmittedNode:()=>N0e,isNotEmittedStatement:()=>cH,isNullishCoalesce:()=>RV,isNumber:()=>Ty,isNumericLiteral:()=>_p,isNumericLiteralName:()=>ig,isObjectBindingElementWithoutPropertyName:()=>cO,isObjectBindingOrAssignmentElement:()=>d2,isObjectBindingOrAssignmentPattern:()=>wV,isObjectBindingPattern:()=>nm,isObjectLiteralElement:()=>GV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>Sm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>OF,isObjectTypeDeclaration:()=>FI,isOctalDigit:()=>QW,isOmittedExpression:()=>jc,isOptionalChain:()=>Hd,isOptionalChainRoot:()=>cN,isOptionalDeclaration:()=>oP,isOptionalJSDocPropertyLikeTag:()=>gk,isOptionalTypeNode:()=>F4,isOuterExpression:()=>Z4,isOutermostOptionalChain:()=>dN,isOverrideModifier:()=>pae,isPackageJsonInfo:()=>E3,isPackedArrayLiteral:()=>yU,isParameter:()=>To,isParameterDeclaration:()=>k0,isParameterPropertyDeclaration:()=>up,isParameterPropertyModifier:()=>mN,isParenthesizedExpression:()=>Fu,isParenthesizedTypeNode:()=>MT,isParseTreeNode:()=>lN,isPartOfTypeNode:()=>Yh,isPartOfTypeQuery:()=>HF,isPartiallyEmittedExpression:()=>V4,isPatternMatch:()=>SW,isPinnedComment:()=>xF,isPlainJsFile:()=>y2,isPlusToken:()=>tH,isPossiblyTypeArgumentPosition:()=>rO,isPostfixUnaryExpression:()=>oH,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>au,isPrivateIdentifierPropertyAccessExpression:()=>Bx,isPrivateIdentifierSymbol:()=>xie,isProgramBundleEmitBuildInfo:()=>ace,isProgramUptoDate:()=>yJ,isPrologueDirective:()=>Em,isPropertyAccessChain:()=>sF,isPropertyAccessEntityNameExpression:()=>ak,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>yre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>I_,isPropertySignature:()=>hp,isProtoSetter:()=>Rie,isPrototypeAccess:()=>zv,isPrototypePropertyAssignment:()=>B2,isPunctuation:()=>Dj,isPushOrUnshiftIdentifier:()=>Mj,isQualifiedName:()=>Au,isQuestionDotToken:()=>O4,isQuestionOrExclamationToken:()=>Gae,isQuestionOrPlusOrMinusToken:()=>Uae,isQuestionToken:()=>Hv,isRawSourceMap:()=>Zse,isReadonlyKeyword:()=>dae,isReadonlyKeywordOrPlusOrMinusToken:()=>jae,isRecognizedTripleSlashComment:()=>qV,isReferenceFileLocation:()=>rD,isReferencedFile:()=>RE,isRegularExpressionLiteral:()=>ZU,isRequireCall:()=>Su,isRequireVariableStatement:()=>hj,isRestParameter:()=>qh,isRestTypeNode:()=>z4,isReturnStatement:()=>Am,isReturnStatementWithFixablePromiseHandler:()=>I7,isRightSideOfAccessExpression:()=>Yj,isRightSideOfInstanceofExpression:()=>qie,isRightSideOfPropertyAccess:()=>dD,isRightSideOfQualifiedName:()=>tde,isRightSideOfQualifiedNameOrPropertyAccess:()=>GN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Jie,isRootedDiskPath:()=>dp,isSameEntityName:()=>rR,isSatisfiesExpression:()=>aH,isScopeMarker:()=>Sre,isSemicolonClassElement:()=>yae,isSetAccessor:()=>Py,isSetAccessorDeclaration:()=>gp,isShebangTrivia:()=>_V,isShiftOperatorOrHigher:()=>DH,isShorthandAmbientModuleSymbol:()=>bN,isShorthandPropertyAssignment:()=>ep,isSignedNumericLiteral:()=>r6,isSimpleCopiableExpression:()=>iS,isSimpleInlineableExpression:()=>w_,isSimpleParameter:()=>lle,isSimpleParameterList:()=>Dw,isSingleOrDoubleQuote:()=>L2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>yD,isSourceFileJS:()=>lu,isSourceFileNotJS:()=>j0e,isSourceFileNotJson:()=>_j,isSourceMapping:()=>ele,isSpecialPropertyDeclaration:()=>gie,isSpreadAssignment:()=>Vy,isSpreadElement:()=>Ym,isStatement:()=>Hi,isStatementButNotDeclaration:()=>m2,isStatementOrBlock:()=>Dre,isStatementWithLocals:()=>zre,isStatic:()=>na,isStaticModifier:()=>QI,isString:()=>Co,isStringAKeyword:()=>Q0e,isStringANonContextualKeyword:()=>LI,isStringAndEmptyAnonymousObjectIntersection:()=>mde,isStringDoubleQuoted:()=>XF,isStringLiteral:()=>Da,isStringLiteralLike:()=>ss,isStringLiteralOrJsxExpression:()=>Nre,isStringLiteralOrTemplate:()=>kde,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>Wq,isStringTextContainingNode:()=>MV,isSuperCall:()=>hT,isSuperKeyword:()=>_P,isSuperOrSuperProperty:()=>V0e,isSuperProperty:()=>Ou,isSupportedSourceFileName:()=>Aoe,isSwitchStatement:()=>bP,isSyntaxList:()=>BR,isSyntheticExpression:()=>QSe,isSyntheticReference:()=>s1,isTagName:()=>xq,isTaggedTemplateExpression:()=>J0,isTaggedTemplateTag:()=>$ce,isTemplateExpression:()=>B4,isTemplateHead:()=>YI,isTemplateLiteral:()=>II,isTemplateLiteralKind:()=>Cv,isTemplateLiteralToken:()=>pre,isTemplateLiteralTypeNode:()=>_ae,isTemplateLiteralTypeSpan:()=>iH,isTemplateMiddle:()=>eH,isTemplateMiddleOrTemplateTail:()=>dF,isTemplateSpan:()=>vP,isTemplateTail:()=>k4,isTextWhiteSpaceLike:()=>bde,isThis:()=>uD,isThisContainerOrFunctionBlock:()=>uie,isThisIdentifier:()=>W0,isThisInTypeQuery:()=>kI,isThisInitializedDeclaration:()=>GF,isThisInitializedObjectBindingExpression:()=>fie,isThisProperty:()=>C2,isThisTypeNode:()=>Gk,isThisTypeParameter:()=>iP,isThisTypePredicate:()=>G0e,isThrowStatement:()=>lH,isToken:()=>EI,isTokenKind:()=>NV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>uh,isTrivia:()=>uR,isTryStatement:()=>WT,isTupleTypeNode:()=>t1,isTypeAlias:()=>j2,isTypeAliasDeclaration:()=>Im,isTypeAssertionExpression:()=>hae,isTypeDeclaration:()=>xR,isTypeElement:()=>dT,isTypeKeyword:()=>oM,isTypeKeywordToken:()=>jq,isTypeKeywordTokenOrIdentifier:()=>Xz,isTypeLiteralNode:()=>yp,isTypeNode:()=>ji,isTypeNodeKind:()=>iU,isTypeOfExpression:()=>kR,isTypeOnlyExportDeclaration:()=>fre,isTypeOnlyImportDeclaration:()=>a2,isTypeOnlyImportOrExportDeclaration:()=>aE,isTypeOperatorNode:()=>LT,isTypeParameterDeclaration:()=>_l,isTypePredicateNode:()=>zk,isTypeQueryNode:()=>e1,isTypeReferenceNode:()=>xf,isTypeReferenceType:()=>vF,isTypeUsableAsPropertyName:()=>Zf,isUMDExportSymbol:()=>S6,isUnaryExpression:()=>FV,isUnaryExpressionWithWrite:()=>bre,isUnicodeIdentifierStart:()=>YW,isUnionTypeNode:()=>Kv,isUnparsedNode:()=>CV,isUnparsedPrepend:()=>Tae,isUnparsedSource:()=>zT,isUnparsedTextLike:()=>ure,isUrl:()=>Mne,isValidBigIntString:()=>B6,isValidESSymbolDeclaration:()=>oie,isValidTypeOnlyAliasUseSite:()=>_E,isValueSignatureDeclaration:()=>Sie,isVarAwaitUsing:()=>A2,isVarConst:()=>Yx,isVarUsing:()=>I2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>SN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>N0,isVariableDeclarationInitializedToRequire:()=>qF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>Qx,isVariableLikeOrAccessor:()=>rie,isVariableStatement:()=>Ml,isVoidExpression:()=>i1,isWatchSet:()=>pSe,isWhileStatement:()=>eTe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>b_,isWithStatement:()=>vae,isWriteAccess:()=>WI,isWriteOnlyAccess:()=>E6,isYieldExpression:()=>G4,jsxModeNeedsExplicitImport:()=>yX,keywordPart:()=>bp,last:()=>Ja,lastOrUndefined:()=>Zs,length:()=>Nn,libMap:()=>u3,libs:()=>dw,lineBreakPart:()=>hD,linkNamePart:()=>xde,linkPart:()=>nX,linkTextPart:()=>n7,listFiles:()=>WJ,loadModuleFromGlobalCache:()=>Lse,loadWithModeAwareCache:()=>Fw,makeIdentifierFromModuleName:()=>Ure,makeImport:()=>Jy,makeImportIfNecessary:()=>vde,makeStringLiteral:()=>A1,mangleScopedPackageName:()=>QR,map:()=>mn,mapAllOrFail:()=>wG,mapDefined:()=>to,mapDefinedEntries:()=>$te,mapDefinedIterator:()=>HC,mapEntries:()=>Zte,mapIterator:()=>jC,mapOneOrMany:()=>_X,mapToDisplayParts:()=>nb,matchFiles:()=>pU,matchPatternOrExact:()=>fU,matchedText:()=>fne,matchesExclude:()=>d3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>poe,memoize:()=>Eu,memoizeCached:()=>ane,memoizeOne:()=>sh,memoizeWeak:()=>vEe,metadataHelper:()=>s4,min:()=>JG,minAndMax:()=>xoe,missingFileModifiedTime:()=>Lp,modifierToFlag:()=>OI,modifiersToFlags:()=>D_,moduleOptionDeclaration:()=>qH,moduleResolutionIsEqualTo:()=>Wre,moduleResolutionNameAndModeGetter:()=>cz,moduleResolutionOptionDeclarations:()=>p3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>BI,moduleResolutionUsesNodeModules:()=>Yz,moduleSpecifiers:()=>rS,moveEmitHelpers:()=>Zoe,moveRangeEnd:()=>v6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>C_,moveRangePos:()=>fE,moveSyntheticComments:()=>Yoe,mutateMap:()=>KN,mutateMapSkippingNewValues:()=>ng,needsParentheses:()=>i7,needsScopeMarker:()=>fF,newCaseClauseTracker:()=>y7,newPrivateEnvironment:()=>ale,noEmitNotification:()=>Cw,noEmitSubstitution:()=>HP,noTransformers:()=>qK,noTruncationMaximumTruncationLength:()=>q6,nodeCanBeDecorated:()=>jF,nodeHasName:()=>t2,nodeIsDecorated:()=>eR,nodeIsMissing:()=>zl,nodeIsPresent:()=>Kf,nodeIsSynthesized:()=>Xs,nodeModuleNameResolver:()=>Rse,nodeModulesPathPart:()=>Th,nodeNextJsonConfigResolver:()=>Dse,nodeOrChildIsDecorated:()=>P2,nodeOverlapsWithStartEnd:()=>Wz,nodePosToString:()=>k0e,nodeSeenTracker:()=>T1,nodeStartsNewLexicalEnvironment:()=>Lj,nodeToDisplayParts:()=>Lxe,noop:()=>qa,noopFileWatcher:()=>lD,normalizePath:()=>fa,normalizeSlashes:()=>Md,not:()=>AW,notImplemented:()=>Uo,notImplementedResolver:()=>Q3,nullNodeConverters:()=>BU,nullParenthesizerRules:()=>zU,nullTransformationContext:()=>KP,objectAllocator:()=>ld,operatorPart:()=>lM,optionDeclarations:()=>sg,optionMapToObject:()=>s3,optionsAffectingProgramStructure:()=>ZH,optionsForBuild:()=>tK,optionsForWatch:()=>JR,optionsHaveChanges:()=>Hx,optionsHaveModuleResolutionChanges:()=>kre,or:()=>Km,orderedRemoveItem:()=>Rx,orderedRemoveItemAt:()=>Sv,outFile:()=>Cs,packageIdToPackageName:()=>TF,packageIdToString:()=>kv,paramHelper:()=>l4,parameterIsThisKeyword:()=>O0,parameterNamePart:()=>Sde,parseBaseNodeFactory:()=>OH,parseBigInt:()=>Roe,parseBuildCommand:()=>QTe,parseCommandLine:()=>YTe,parseCommandLineWorker:()=>zH,parseConfigFileTextToJson:()=>GH,parseConfigFileWithSystem:()=>L1e,parseConfigHostFromCompilerHostLike:()=>lz,parseCustomTypeOption:()=>a3,parseIsolatedEntityName:()=>p1,parseIsolatedJSDocComment:()=>Qae,parseJSDocTypeExpressionForTests:()=>WTe,parseJsonConfigFileContent:()=>pAe,parseJsonSourceFileConfigFileContent:()=>sw,parseJsonText:()=>rw,parseListTypeOption:()=>ese,parseNodeFactory:()=>Sh,parseNodeModuleFromPath:()=>gw,parsePackageName:()=>bw,parsePseudoBigInt:()=>ZN,parseValidBigInt:()=>gU,patchWriteFileEnsuringDirectory:()=>Nne,pathContainsNodeModules:()=>IE,pathIsAbsolute:()=>tN,pathIsBareSpecifier:()=>uV,pathIsRelative:()=>kp,patternText:()=>pne,perfLogger:()=>ru,performIncrementalCompilation:()=>W1e,performance:()=>Ane,plainJSErrors:()=>dz,positionBelongsToNode:()=>Pq,positionIsASICandidate:()=>l7,positionIsSynthesized:()=>Xm,positionsAreOnSameLine:()=>Tf,preProcessFile:()=>aRe,probablyUsesSemicolons:()=>_O,processCommentPragmas:()=>kH,processPragmasIntoFields:()=>wH,processTaggedTemplateExpression:()=>GK,programContainsEsModules:()=>yde,programContainsModules:()=>gde,projectReferenceIsEqualTo:()=>HV,propKeyHelper:()=>E4,propertyNamePart:()=>Tde,pseudoBigIntToString:()=>B0,punctuationPart:()=>Yd,pushIfUnique:()=>vf,quote:()=>uM,quotePreferenceFromString:()=>Jq,rangeContainsPosition:()=>Zw,rangeContainsPositionExclusive:()=>eO,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>rde,rangeContainsStartEnd:()=>tO,rangeEndIsOnSameLineAsRangeStart:()=>lk,rangeEndPositionsAreOnSameLine:()=>Zie,rangeEquals:()=>BG,rangeIsOnSingleLine:()=>RT,rangeOfNode:()=>_U,rangeOfTypeParameters:()=>hU,rangeOverlapsWithStartEnd:()=>rM,rangeStartIsOnSameLineAsRangeEnd:()=>eoe,rangeStartPositionsAreOnSameLine:()=>b6,readBuilderProgram:()=>Sz,readConfigFile:()=>ow,readHelper:()=>v4,readJson:()=>VN,readJsonConfigFile:()=>rse,readJsonOrUndefined:()=>Qj,reduceEachLeadingCommentRange:()=>Fne,reduceEachTrailingCommentRange:()=>zne,reduceLeft:()=>nu,reduceLeftIterator:()=>_Ee,reducePathComponents:()=>aT,refactor:()=>R1,regExpEscape:()=>vSe,relativeComplement:()=>ene,removeAllComments:()=>Ck,removeEmitHelper:()=>XSe,removeExtension:()=>mk,removeFileExtension:()=>Tu,removeIgnoredPath:()=>fz,removeMinAndVersionNumbers:()=>qG,removeOptionality:()=>dde,removePrefix:()=>$C,removeSuffix:()=>xx,removeTrailingDirectorySeparator:()=>$b,repeatString:()=>sO,replaceElement:()=>jG,replaceFirstStar:()=>jI,resolutionExtensionIsTSOrJson:()=>YN,resolveConfigFileProjectName:()=>qJ,resolveJSModule:()=>Ise,resolveLibrary:()=>T3,resolveModuleName:()=>YR,resolveModuleNameFromCache:()=>XAe,resolvePackageNameToPackageJson:()=>iK,resolvePath:()=>Iv,resolveProjectReferencePath:()=>iD,resolveTripleslashReference:()=>nz,resolveTypeReferenceDirective:()=>Ese,resolvingEmptyArray:()=>J6,restHelper:()=>_4,returnFalse:()=>Hm,returnNoopFileWatcher:()=>cD,returnTrue:()=>Ay,returnUndefined:()=>Xb,returnsPromise:()=>WX,runInitializersHelper:()=>d4,sameFlatMap:()=>Yte,sameMap:()=>Pc,sameMapping:()=>OIe,scanShebangTrivia:()=>hV,scanTokenAtPosition:()=>eie,scanner:()=>$d,screenStartingMessageCodes:()=>Ez,semanticDiagnosticsOptionDeclarations:()=>YH,serializeCompilerOptions:()=>l3,server:()=>rwe,servicesVersion:()=>upe,setCommentRange:()=>oc,setConfigFileInOptions:()=>KH,setConstantValue:()=>Qoe,setEachParent:()=>IR,setEmitFlags:()=>dr,setFunctionNameHelper:()=>S4,setGetSourceFileAsHashVersioned:()=>bz,setIdentifierAutoGenerate:()=>Mk,setIdentifierGeneratedImportReference:()=>nae,setIdentifierTypeArguments:()=>By,setInternalEmitFlags:()=>Nk,setLocalizedDiagnosticMessages:()=>uoe,setModuleDefaultHelper:()=>I4,setNodeFlags:()=>Noe,setObjectAllocator:()=>doe,setOriginalNode:()=>Rr,setParent:()=>ja,setParentRecursive:()=>Gv,setPrivateIdentifier:()=>HT,setSnippetElement:()=>qU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>BEe,setStartsOnNewLine:()=>r4,setSyntheticLeadingComments:()=>gE,setSyntheticTrailingComments:()=>HI,setSys:()=>HEe,setSysLog:()=>Dne,setTextRange:()=>st,setTextRangeEnd:()=>AR,setTextRangePos:()=>eP,setTextRangePosEnd:()=>_h,setTextRangePosWidth:()=>tP,setTokenSourceMapRange:()=>Xoe,setTypeNode:()=>eae,setUILocale:()=>cne,setValueDeclaration:()=>G2,shouldAllowImportingTsExtension:()=>ZR,shouldPreserveConstEnums:()=>j0,shouldUseUriStyleNodeCoreModules:()=>h7,showModuleSpecifier:()=>ooe,signatureHasLiteralTypes:()=>TK,signatureHasRestParameter:()=>Xd,signatureToDisplayParts:()=>rX,single:()=>VG,singleElementArray:()=>hI,singleIterator:()=>Qte,singleOrMany:()=>oh,singleOrUndefined:()=>ih,skipAlias:()=>bd,skipAssertions:()=>_Te,skipConstraint:()=>Uq,skipOuterExpressions:()=>$l,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>vm,skipTrivia:()=>Na,skipTypeChecking:()=>QN,skipTypeParentheses:()=>q2,skipWhile:()=>_ne,sliceAfter:()=>mU,some:()=>gt,sort:()=>tT,sortAndDeduplicate:()=>JC,sortAndDeduplicateDiagnostics:()=>Ox,sourceFileAffectingCompilerOptions:()=>f3,sourceFileMayBeEmitted:()=>TT,sourceMapCommentRegExp:()=>O3,sourceMapCommentRegExpDontCareLineStart:()=>PK,spacePart:()=>kl,spanMap:()=>OG,spreadArrayHelper:()=>b4,stableSort:()=>Ey,startEndContainsRange:()=>Nq,startEndOverlapsWithStartEnd:()=>Fz,startOnNewLine:()=>qd,startTracing:()=>Ine,startsWith:()=>ao,startsWithDirectory:()=>fV,startsWithUnderscore:()=>gX,startsWithUseStrict:()=>wae,stringContainsAt:()=>Vde,stringToToken:()=>b0,stripQuotes:()=>$f,supportedDeclarationExtensions:()=>Tk,supportedJSExtensions:()=>OU,supportedJSExtensionsFlat:()=>DR,supportedLocaleDirectories:()=>UV,supportedTSExtensions:()=>RR,supportedTSExtensionsFlat:()=>wU,supportedTSImplementationExtensions:()=>Ak,suppressLeadingAndTrailingTrivia:()=>Ep,suppressLeadingTrivia:()=>sX,suppressTrailingTrivia:()=>Pde,symbolEscapedNameNoDefault:()=>Qz,symbolName:()=>bl,symbolNameNoDefault:()=>$z,symbolPart:()=>Ede,symbolToDisplayParts:()=>cM,syntaxMayBeASICandidate:()=>TX,syntaxRequiresTrailingSemicolonOrASI:()=>s7,sys:()=>gd,sysLog:()=>FL,tagNamesAreEquivalent:()=>SE,takeWhile:()=>xW,targetOptionDeclaration:()=>pw,templateObjectHelper:()=>y4,testFormatSettings:()=>Yce,textChangeRangeIsUnchanged:()=>Kne,textChangeRangeNewSpan:()=>sN,textChanges:()=>fr,textOrKeywordPart:()=>tX,textPart:()=>sf,textRangeContainsPositionInclusive:()=>QL,textSpanContainsPosition:()=>vV,textSpanContainsTextSpan:()=>Vne,textSpanEnd:()=>ql,textSpanIntersection:()=>Hne,textSpanIntersectsWith:()=>tF,textSpanIntersectsWithPosition:()=>Une,textSpanIntersectsWithTextSpan:()=>p0e,textSpanIsEmpty:()=>Gne,textSpanOverlap:()=>jne,textSpanOverlapsWith:()=>u0e,textSpansEqual:()=>_D,textToKeywordObj:()=>YL,timestamp:()=>qs,toArray:()=>mI,toBuilderFileEmit:()=>cce,toBuilderStateFileInfoForMultiEmit:()=>lce,toEditorSettings:()=>kO,toFileNameLowerCase:()=>ah,toLowerCase:()=>one,toPath:()=>rl,toProgramEmitPending:()=>dce,tokenIsIdentifierOrKeyword:()=>iu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>One,tokenToString:()=>ca,trace:()=>yo,tracing:()=>or,tracingEnabled:()=>kL,transform:()=>iCe,transformClassFields:()=>gle,transformDeclarations:()=>KK,transformECMAScriptModule:()=>HK,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:()=>UK,transformNamedEvaluation:()=>vp,transformNodeModule:()=>Ole,transformNodes:()=>Nw,transformSystemModule:()=>wle,transformTypeScript:()=>hle,transpile:()=>mRe,transpileModule:()=>sue,transpileOptionValueCompilerOptions:()=>eK,tryAddToSet:()=>qb,tryAndIgnoreErrors:()=>u7,tryCast:()=>ri,tryDirectoryExists:()=>d7,tryExtractTSExtension:()=>g6,tryFileExists:()=>hO,tryGetClassExtendingExpressionWithTypeArguments:()=>qj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Xj,tryGetDirectories:()=>c7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>V2,tryGetJSDocSatisfiesTypeNode:()=>U6,tryGetModuleNameFromFile:()=>Yk,tryGetModuleSpecifierFromDeclaration:()=>iR,tryGetNativePerformanceHooks:()=>Ene,tryGetPropertyAccessOrIdentifierToString:()=>sk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>t3,tryGetSourceMappingURL:()=>Qse,tryGetTextOfPropertyName:()=>EN,tryIOAndConsumeErrors:()=>p7,tryParseJson:()=>y6,tryParsePattern:()=>TR,tryParsePatterns:()=>W6,tryParseRawSourceMap:()=>CK,tryReadDirectory:()=>dX,tryReadFile:()=>NP,tryRemoveDirectoryPrefix:()=>dU,tryRemoveExtension:()=>Ioe,tryRemovePrefix:()=>$G,tryRemoveSuffix:()=>une,typeAcquisitionDeclarations:()=>fw,typeAliasNamePart:()=>Ade,typeDirectiveIsEqualTo:()=>Fre,typeKeywords:()=>v7,typeParameterNamePart:()=>Ide,typeToDisplayParts:()=>uO,unchangedPollThresholds:()=>zL,unchangedTextChangeRange:()=>h2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Sw,unorderedRemoveItem:()=>_I,unorderedRemoveItemAt:()=>XG,unreachableCodeIsError:()=>moe,unusedLabelIsError:()=>_oe,unwrapInnermostStatementOfLabel:()=>uj,updateErrorForNoInputFiles:()=>c3,updateLanguageServiceSourceFile:()=>bY,updateMissingFilePathsWatch:()=>nJ,updateResolutionField:()=>qR,updateSharedExtendedConfigFileWatcher:()=>ez,updateSourceFile:()=>MH,updateWatchingWildcardDirectories:()=>Lw,usesExtensionsOnImports:()=>Soe,usingSingleLineStringWriter:()=>yN,utf16EncodeAsString:()=>wx,validateLocaleAndSetLanguage:()=>m0e,valuesHelper:()=>T4,version:()=>qp,versionMajorMinor:()=>v_,visitArray:()=>Iw,visitCommaListElements:()=>xw,visitEachChild:()=>Sn,visitFunctionBody:()=>rf,visitIterationBody:()=>Iu,visitLexicalEnvironment:()=>RK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Wx,walkUpLexicalEnvironments:()=>ole,walkUpOuterExpressions:()=>Oae,walkUpParenthesizedExpressions:()=>Ly,walkUpParenthesizedTypes:()=>J2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tie,whitespaceOrMapCommentRegExp:()=>W3,writeCommentRange:()=>gR,writeFile:()=>wN,writeFileEnsuringDirectories:()=>jj,zipWith:()=>PG});var ob=bt({"src/server/_namespaces/ts.ts"(){"use strict";Zo(),Jw(),ai(),WQ(),aA()}}),owe={};xa(owe,{ActionInvalidate:()=>Hw,ActionPackageInstalled:()=>Kw,ActionSet:()=>Uw,ActionWatchTypingLocations:()=>tM,Arguments:()=>tq,AutoImportProviderProject:()=>$Q,AuxiliaryProject:()=>XQ,CharRangeSection:()=>dZ,CloseFileWatcherEvent:()=>GB,CommandNames:()=>Fhe,ConfigFileDiagEvent:()=>OB,ConfiguredProject:()=>QQ,CreateDirectoryWatcherEvent:()=>BB,CreateFileWatcherEvent:()=>zB,Errors:()=>Qy,EventBeginInstallTypes:()=>Dz,EventEndInstallTypes:()=>Cz,EventInitializationFailed:()=>eq,EventTypesRegistry:()=>Rz,ExternalProject:()=>CB,GcTimer:()=>VQ,InferredProject:()=>qQ,LargeFileReferencedEvent:()=>wB,LineIndex:()=>CM,LineLeaf:()=>f8,LineNode:()=>F1,LogLevel:()=>FQ,Msg:()=>zQ,OpenFileInfoTelemetryEvent:()=>nZ,Project:()=>oA,ProjectInfoTelemetryEvent:()=>FB,ProjectKind:()=>RM,ProjectLanguageServiceStateEvent:()=>WB,ProjectLoadingFinishEvent:()=>kB,ProjectLoadingStartEvent:()=>LB,ProjectReferenceProjectLoadKind:()=>oZ,ProjectService:()=>aZ,ProjectsUpdatedInBackgroundEvent:()=>d8,ScriptInfo:()=>HQ,ScriptVersionCache:()=>HB,Session:()=>Bhe,TextStorage:()=>UQ,ThrottledOperations:()=>GQ,TypingsCache:()=>KQ,TypingsInstallerAdapter:()=>jhe,allFilesAreJsOrDts:()=>hhe,allRootFilesAreJsOrDts:()=>_he,asNormalizedPath:()=>Mke,convertCompilerOptions:()=>NB,convertFormatOptions:()=>OD,convertScriptKindName:()=>eZ,convertTypeAcquisition:()=>vhe,convertUserPreferences:()=>bhe,convertWatchOptions:()=>c8,countEachFileTypes:()=>s8,createInstallTypingsRequest:()=>q_e,createModuleSpecifierCache:()=>Nhe,createNormalizedPathMap:()=>Lke,createPackageJsonCache:()=>Phe,createSortedArray:()=>Z_e,emptyArray:()=>hc,findArgument:()=>bxe,forEachResolvedProjectReferenceProject:()=>WD,formatDiagnosticToProtocol:()=>p8,formatMessage:()=>Mhe,getBaseConfigFileName:()=>BQ,getLocationInNewDocument:()=>Ohe,hasArgument:()=>vxe,hasNoTypeScriptSource:()=>ghe,indent:()=>eM,isBackgroundProject:()=>l8,isConfigFile:()=>xhe,isConfiguredProject:()=>kE,isDynamicFileName:()=>a8,isExternalProject:()=>JQ,isInferredProject:()=>wD,isInferredProjectName:()=>X_e,makeAutoImportProviderProjectName:()=>$_e,makeAuxiliaryProjectName:()=>Q_e,makeInferredProjectName:()=>Y_e,maxFileSize:()=>MB,maxProgramSizeForNonTsFiles:()=>PB,normalizedPathToPath:()=>o8,nowString:()=>Exe,nullCancellationToken:()=>Whe,nullTypingsInstaller:()=>DB,projectContainsInfoDirectly:()=>O1,protocol:()=>mhe,removeSorted:()=>kke,stringifyIndented:()=>DE,toEvent:()=>Lhe,toNormalizedPath:()=>pl,tryConvertScriptKindName:()=>ZQ,typingsInstaller:()=>K_e,updateProjectIfDirty:()=>Bp});var Vot=bt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";Nz(),aA()}}),awe={};xa(awe,{ANONYMOUS:()=>b7,AccessFlags:()=>C9,AssertionLevel:()=>e9,AssignmentDeclarationKind:()=>F9,AssignmentKind:()=>xU,Associativity:()=>DU,BreakpointResolver:()=>RY,BuilderFileEmit:()=>PJ,BuilderProgramKind:()=>MJ,BuilderState:()=>Dm,BundleFileSectionKind:()=>nV,CallHierarchy:()=>D1,CharacterCodes:()=>X9,CheckFlags:()=>A9,CheckMode:()=>L3,ClassificationType:()=>bq,ClassificationTypeNames:()=>vq,CommentDirectiveType:()=>c9,Comparison:()=>NG,CompletionInfoFlags:()=>pq,CompletionTriggerKind:()=>sq,Completions:()=>L1,ContainerFlags:()=>bK,ContextFlags:()=>_9,Debug:()=>R,DiagnosticCategory:()=>OL,Diagnostics:()=>f,DocumentHighlights:()=>T7,ElementFlags:()=>D9,EmitFlags:()=>jW,EmitHint:()=>Z9,EmitOnly:()=>u9,EndOfLineState:()=>_q,EnumKind:()=>T9,ExitStatus:()=>p9,ExportKind:()=>DX,Extension:()=>Y9,ExternalEmitHelpers:()=>Q9,FileIncludeKind:()=>kW,FilePreprocessingDiagnosticsKind:()=>d9,FileSystemEntryKind:()=>lV,FileWatcherEventKind:()=>sV,FindAllReferences:()=>ws,FlattenLevel:()=>FK,FlowFlags:()=>wL,ForegroundColorEscapeSequences:()=>TJ,FunctionFlags:()=>RU,GeneratedIdentifierFlags:()=>LW,GetLiteralTextFlags:()=>TU,GoToDefinition:()=>ND,HighlightSpanKind:()=>cq,IdentifierNameMap:()=>g1,IdentifierNameMultiMap:()=>WK,ImportKind:()=>RX,ImportsNotUsedAsValues:()=>U9,IndentStyle:()=>dq,IndexFlags:()=>N9,IndexKind:()=>L9,InferenceFlags:()=>O9,InferencePriority:()=>w9,InlayHintKind:()=>lq,InlayHints:()=>vQ,InternalEmitFlags:()=>$9,InternalSymbolName:()=>I9,InvalidatedProjectKind:()=>ZJ,JSDocParsingMode:()=>oV,JsDoc:()=>LE,JsTyping:()=>F_,JsxEmit:()=>j9,JsxFlags:()=>s9,JsxReferenceKind:()=>P9,LanguageServiceMode:()=>iq,LanguageVariant:()=>J9,LexicalEnvironmentFlags:()=>tV,ListFormat:()=>rV,LogLevel:()=>n9,MemberOverrideStatus:()=>f9,ModifierFlags:()=>PW,ModuleDetectionKind:()=>z9,ModuleInstanceState:()=>vK,ModuleKind:()=>ZC,ModuleResolutionKind:()=>Mx,ModuleSpecifierEnding:()=>WU,NavigateTo:()=>due,NavigationBar:()=>bue,NewLineKind:()=>H9,NodeBuilderFlags:()=>h9,NodeCheckFlags:()=>x9,NodeFactoryFlags:()=>HU,NodeFlags:()=>NW,NodeResolutionFeatures:()=>hK,ObjectFlags:()=>FW,OperationCanceledException:()=>Px,OperatorPrecedence:()=>CU,OrganizeImports:()=>Cm,OrganizeImportsMode:()=>aq,OuterExpressionKinds:()=>eV,OutliningElementsCollector:()=>TQ,OutliningSpanKind:()=>fq,OutputFileType:()=>mq,PackageJsonAutoImportPreference:()=>rq,PackageJsonDependencyGroup:()=>nq,PatternMatchKind:()=>A7,PollingInterval:()=>UW,PollingWatchKind:()=>V9,PragmaKindFlags:()=>iV,PrivateIdentifierKind:()=>QU,ProcessLevel:()=>VK,ProgramUpdateLevel:()=>iJ,QuotePreference:()=>EX,RelationComparisonResult:()=>MW,Rename:()=>EB,ScriptElementKind:()=>gq,ScriptElementKindModifier:()=>yq,ScriptKind:()=>BW,ScriptSnapshot:()=>Mz,ScriptTarget:()=>K9,SemanticClassificationFormat:()=>oq,SemanticMeaning:()=>bX,SemicolonPreference:()=>uq,SignatureCheckMode:()=>k3,SignatureFlags:()=>zW,SignatureHelp:()=>$O,SignatureKind:()=>M9,SmartSelectionRange:()=>xQ,SnippetKind:()=>VW,SortKind:()=>ZG,StructureIsReused:()=>wW,SymbolAccessibility:()=>v9,SymbolDisplay:()=>$y,SymbolDisplayPartKind:()=>qw,SymbolFlags:()=>OW,SymbolFormatFlags:()=>y9,SyntaxKind:()=>CW,SyntheticSymbolKind:()=>b9,Ternary:()=>W9,ThrottledCancellationToken:()=>xY,TokenClass:()=>hq,TokenFlags:()=>l9,TransformFlags:()=>GW,TypeFacts:()=>M3,TypeFlags:()=>WW,TypeFormatFlags:()=>g9,TypeMapKind:()=>k9,TypePredicateKind:()=>E9,TypeReferenceSerializationKind:()=>S9,UnionReduction:()=>m9,UpToDateStatusType:()=>XJ,VarianceFlags:()=>R9,Version:()=>_m,VersionRange:()=>ML,WatchDirectoryFlags:()=>q9,WatchDirectoryKind:()=>G9,WatchFileKind:()=>B9,WatchLogLevel:()=>oJ,WatchType:()=>kc,accessPrivateIdentifier:()=>sle,addDisposableResourceHelper:()=>P4,addEmitFlags:()=>N_,addEmitHelper:()=>KI,addEmitHelpers:()=>Fg,addInternalEmitFlags:()=>UI,addNodeFactoryPatcher:()=>VSe,addObjectAllocatorPatcher:()=>coe,addRange:()=>Ur,addRelatedInfo:()=>Pa,addSyntheticLeadingComment:()=>pP,addSyntheticTrailingComment:()=>i4,addToSeen:()=>Tm,advancedAsyncSuperHelper:()=>wk,affectsDeclarationPathOptionDeclarations:()=>QH,affectsEmitOptionDeclarations:()=>$H,allKeysStartWithDot:()=>I3,altDirectorySeparator:()=>UL,and:()=>TW,append:()=>Tn,appendIfUnique:()=>xg,arrayFrom:()=>Oo,arrayIsEqualTo:()=>Um,arrayIsHomogeneous:()=>Coe,arrayIsSorted:()=>_W,arrayOf:()=>nne,arrayReverseIterator:()=>zG,arrayToMap:()=>y0,arrayToMultiMap:()=>CL,arrayToNumericMap:()=>ine,arraysEqual:()=>xL,assertType:()=>SEe,assign:()=>Ax,assignHelper:()=>u4,asyncDelegator:()=>f4,asyncGeneratorHelper:()=>p4,asyncSuperHelper:()=>kk,asyncValues:()=>m4,attachFileToDiagnostics:()=>zI,awaitHelper:()=>JI,awaiterHelper:()=>h4,base64decode:()=>Qie,base64encode:()=>$ie,binarySearch:()=>Sy,binarySearchKey:()=>pI,bindSourceFile:()=>Ose,breakIntoCharacterSpans:()=>rue,breakIntoWordSpans:()=>iue,buildLinkParts:()=>Rde,buildOpts:()=>m3,buildOverload:()=>xke,bundlerModuleNameResolver:()=>xse,canBeConvertedToAsync:()=>zX,canHaveDecorators:()=>jT,canHaveExportModifier:()=>hk,canHaveFlowNode:()=>U2,canHaveIllegalDecorators:()=>RH,canHaveIllegalModifiers:()=>Bae,canHaveIllegalType:()=>gTe,canHaveIllegalTypeParameters:()=>zae,canHaveJSDoc:()=>H2,canHaveLocals:()=>dh,canHaveModifiers:()=>xm,canHaveSymbol:()=>S_,canJsonReportNoInputFiles:()=>PP,canProduceDiagnostics:()=>J3,canUsePropertyAccess:()=>vU,canWatchAffectingLocation:()=>mce,canWatchAtTypes:()=>fce,canWatchDirectoryOrFile:()=>mz,cartesianProduct:()=>mne,cast:()=>ta,chainBundle:()=>Rm,chainDiagnosticMessages:()=>Fo,changeAnyExtension:()=>VL,changeCompilerHostLikeToUseCache:()=>Ow,changeExtension:()=>mE,changeFullExtension:()=>Lne,changesAffectModuleResolution:()=>bF,changesAffectingProgramStructure:()=>wre,childIsDecorated:()=>AN,classElementOrClassElementParameterIsDecorated:()=>pj,classHasClassThisAssignment:()=>zK,classHasDeclaredOrExplicitlyAssignedName:()=>BK,classHasExplicitlyAssignedName:()=>U3,classOrConstructorParameterIsDecorated:()=>My,classPrivateFieldGetHelper:()=>D4,classPrivateFieldInHelper:()=>N4,classPrivateFieldSetHelper:()=>C4,classicNameResolver:()=>Mse,classifier:()=>_pe,cleanExtendedConfigCache:()=>tz,clear:()=>jh,clearMap:()=>Qu,clearSharedExtendedConfigFileWatcher:()=>tJ,climbPastPropertyAccess:()=>kz,climbPastPropertyOrElementAccess:()=>ede,clone:()=>UG,cloneCompilerOptions:()=>zq,closeFileWatcher:()=>qm,closeFileWatcherOf:()=>Df,codefix:()=>Wd,collapseTextChangeRangesAcrossMultipleVersions:()=>Jne,collectExternalModuleInfo:()=>LK,combine:()=>Tx,combinePaths:()=>Yr,commentPragmas:()=>WL,commonOptionsWithBuild:()=>uw,commonPackageFolders:()=>MU,compact:()=>DL,compareBooleans:()=>Ev,compareDataObjects:()=>nU,compareDiagnostics:()=>JN,compareDiagnosticsSkipRelatedInformation:()=>I6,compareEmitHelpers:()=>oae,compareNumberOfDirectorySeparators:()=>fk,comparePaths:()=>Rg,comparePathsCaseInsensitive:()=>XEe,comparePathsCaseSensitive:()=>qEe,comparePatternKeys:()=>mK,compareProperties:()=>dne,compareStringsCaseInsensitive:()=>EW,compareStringsCaseInsensitiveEslintCompatible:()=>sne,compareStringsCaseSensitive:()=>jd,compareStringsCaseSensitiveUI:()=>PL,compareTextSpans:()=>bW,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>cw,compilerOptionsAffectDeclarationPath:()=>voe,compilerOptionsAffectEmit:()=>yoe,compilerOptionsAffectSemanticDiagnostics:()=>goe,compilerOptionsDidYouMeanDiagnostics:()=>mw,compilerOptionsIndicateEsModules:()=>Hq,compose:()=>bEe,computeCommonSourceDirectoryOfFilenames:()=>Kle,computeLineAndCharacterOfPosition:()=>kx,computeLineOfPosition:()=>rN,computeLineStarts:()=>bI,computePositionOfLineAndCharacter:()=>$W,computeSignature:()=>XT,computeSignatureWithDiagnostics:()=>RJ,computeSuggestionDiagnostics:()=>OX,computedOptions:()=>mc,concatenate:()=>bo,concatenateDiagnosticMessageChains:()=>foe,consumesNodeCoreModules:()=>f7,contains:()=>zo,containsIgnoredPath:()=>nP,containsObjectRestOrSpread:()=>ew,containsParseError:()=>Kx,containsPath:()=>hm,convertCompilerOptionsForTelemetry:()=>cse,convertCompilerOptionsFromJson:()=>bAe,convertJsonOption:()=>UT,convertToBase64:()=>Yie,convertToJson:()=>aw,convertToObject:()=>ise,convertToOptionsWithAbsolutePaths:()=>HH,convertToRelativePath:()=>nN,convertToTSConfig:()=>aAe,convertTypeAcquisitionFromJson:()=>EAe,copyComments:()=>ZT,copyEntries:()=>EF,copyLeadingComments:()=>gD,copyProperties:()=>HG,copyTrailingAsLeadingComments:()=>mO,copyTrailingComments:()=>dM,couldStartTrivia:()=>Wne,countWhere:()=>vv,createAbstractBuilder:()=>R1e,createAccessorPropertyBackingField:()=>CH,createAccessorPropertyGetRedirector:()=>qae,createAccessorPropertySetRedirector:()=>Xae,createBaseNodeFactory:()=>joe,createBinaryExpressionTrampoline:()=>n3,createBindingHelper:()=>NR,createBuildInfo:()=>Pw,createBuilderProgram:()=>DJ,createBuilderProgramUsingProgramBuildInfo:()=>uce,createBuilderStatusReporter:()=>Dce,createCacheWithRedirects:()=>aK,createCacheableExportInfoMap:()=>AX,createCachedDirectoryStructureHost:()=>Z3,createClassNamedEvaluationHelperBlock:()=>fle,createClassThisAssignmentBlock:()=>ule,createClassifier:()=>Uxe,createCommentDirectivesMap:()=>Gre,createCompilerDiagnostic:()=>Ul,createCompilerDiagnosticForInvalidCustomType:()=>Zae,createCompilerDiagnosticFromMessageChain:()=>A6,createCompilerHost:()=>Jle,createCompilerHostFromProgramHost:()=>HJ,createCompilerHostWorker:()=>lJ,createDetachedDiagnostic:()=>SR,createDiagnosticCollection:()=>fR,createDiagnosticForFileFromMessageChain:()=>sj,createDiagnosticForNode:()=>Pr,createDiagnosticForNodeArray:()=>Xx,createDiagnosticForNodeArrayFromMessageChain:()=>T2,createDiagnosticForNodeFromMessageChain:()=>Mg,createDiagnosticForNodeInSourceFile:()=>Jf,createDiagnosticForRange:()=>Zre,createDiagnosticMessageChainFromDiagnostic:()=>Qre,createDiagnosticReporter:()=>Gw,createDocumentPositionMapper:()=>tle,createDocumentRegistry:()=>Kde,createDocumentRegistryInternal:()=>PX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>LJ,createEmitHelperFactory:()=>iae,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Mae,createExpressionForJsxFragment:()=>Lae,createExpressionForObjectLiteralElementLike:()=>kae,createExpressionForPropertyName:()=>EH,createExpressionFromEntityName:()=>Jk,createExternalHelpersImportDeclarationIfNeeded:()=>AH,createFileDiagnostic:()=>Zc,createFileDiagnosticFromMessageChain:()=>NF,createForOfBindingStatement:()=>bH,createGetCanonicalFileName:()=>Pd,createGetSourceFile:()=>aJ,createGetSymbolAccessibilityDiagnosticForNode:()=>jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Wle,createGetSymbolWalker:()=>Wse,createIncrementalCompilerHost:()=>JJ,createIncrementalProgram:()=>xce,createInputFiles:()=>USe,createInputFilesWithFilePaths:()=>jU,createInputFilesWithFileTexts:()=>UU,createJsxFactoryExpression:()=>vH,createLanguageService:()=>cpe,createLanguageServiceSourceFile:()=>q7,createMemberAccessForPropertyName:()=>VT,createModeAwareCache:()=>_1,createModeAwareCacheKey:()=>OP,createModuleNotFoundChain:()=>SF,createModuleResolutionCache:()=>XR,createModuleResolutionLoader:()=>mJ,createModuleResolutionLoaderUsingGlobalCache:()=>yce,createModuleSpecifierResolutionHost:()=>QT,createMultiMap:()=>Xp,createNodeConverters:()=>Hoe,createNodeFactory:()=>xk,createOptionNameMap:()=>o3,createOverload:()=>OQ,createPackageJsonImportFilter:()=>fM,createPackageJsonInfo:()=>pX,createParenthesizerRules:()=>Uoe,createPatternMatcher:()=>$de,createPrependNodes:()=>EJ,createPrinter:()=>xE,createPrinterWithDefaults:()=>ZK,createPrinterWithRemoveComments:()=>aS,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>eJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Mw,createProgram:()=>az,createProgramHost:()=>KJ,createPropertyNameNodeForIdentifierOrLiteral:()=>V6,createQueue:()=>NL,createRange:()=>Sf,createRedirectedBuilderProgram:()=>NJ,createResolutionCache:()=>wJ,createRuntimeTypeSerializer:()=>yle,createScanner:()=>Dy,createSemanticDiagnosticsBuilderProgram:()=>x1e,createSet:()=>KG,createSolutionBuilder:()=>j1e,createSolutionBuilderHost:()=>G1e,createSolutionBuilderWithWatch:()=>U1e,createSolutionBuilderWithWatchHost:()=>V1e,createSortedArray:()=>FG,createSourceFile:()=>nw,createSourceMapGenerator:()=>$se,createSourceMapSource:()=>HSe,createSuperAccessVariableStatement:()=>K3,createSymbolTable:()=>oa,createSymlinkCache:()=>cU,createSystemWatchFunctions:()=>Cne,createTextChange:()=>oO,createTextChangeFromStartLength:()=>qz,createTextChangeRange:()=>e2,createTextRangeFromNode:()=>Vq,createTextRangeFromSpan:()=>Jz,createTextSpan:()=>yd,createTextSpanFromBounds:()=>uc,createTextSpanFromNode:()=>Ru,createTextSpanFromRange:()=>tb,createTextSpanFromStringLiteralLikeContent:()=>Gq,createTextWriter:()=>rk,createTokenRange:()=>Zj,createTypeChecker:()=>Hse,createTypeReferenceDirectiveResolutionCache:()=>S3,createTypeReferenceResolutionLoader:()=>rz,createUnparsedSourceFile:()=>VU,createWatchCompilerHost:()=>F1e,createWatchCompilerHostOfConfigFile:()=>Tce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Ace,createWatchFactory:()=>UJ,createWatchHost:()=>jJ,createWatchProgram:()=>z1e,createWatchStatusReporter:()=>vce,createWriteFileMeasuringIO:()=>sJ,declarationNameToString:()=>xs,decodeMappings:()=>NK,decodedTextSpanIntersectsWith:()=>ZL,decorateHelper:()=>a4,deduplicate:()=>g0,defaultIncludeSpec:()=>g3,defaultInitCompilerOptions:()=>_3,defaultMaximumTruncationLength:()=>bk,detectSortCaseSensitivity:()=>qC,diagnosticCategoryName:()=>oT,diagnosticToString:()=>tA,directoryProbablyExists:()=>Jm,directorySeparator:()=>il,displayPart:()=>tp,displayPartsToString:()=>wO,disposeEmitNodes:()=>KU,disposeResourcesHelper:()=>M4,documentSpansEqual:()=>Yq,dumpTracingLegend:()=>xne,elementAt:()=>xy,elideNodes:()=>Jae,emitComments:()=>zie,emitDetachedComments:()=>Bie,emitFiles:()=>Y3,emitFilesAndReportErrors:()=>yz,emitFilesAndReportErrorsAndGetExitStatus:()=>Sce,emitModuleKindIsNonNodeESM:()=>x6,emitNewLineBeforeLeadingCommentOfPosition:()=>Fie,emitNewLineBeforeLeadingComments:()=>Oie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Wie,emitSkippedWithNoDiagnostics:()=>uz,emitUsingBuildInfo:()=>Vle,emptyArray:()=>Ye,emptyFileSystemEntries:()=>e4,emptyMap:()=>RW,emptyOptions:()=>Nf,emptySet:()=>hne,endsWith:()=>Sl,ensurePathIsNonModuleName:()=>v0,ensureScriptKind:()=>w6,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>pp,enumerateInsertsAndDeletes:()=>IW,equalOwnProperties:()=>rne,equateStringsCaseInsensitive:()=>Yb,equateStringsCaseSensitive:()=>nT,equateValues:()=>Iy,esDecorateHelper:()=>c4,escapeJsxAttributeString:()=>zj,escapeLeadingUnderscores:()=>ml,escapeNonAsciiString:()=>nk,escapeSnippetText:()=>V0,escapeString:()=>eg,escapeTemplateSubstitution:()=>Wj,every:()=>oo,expandPreOrPostfixIncrementOrDecrementExpression:()=>Y4,explainFiles:()=>FJ,explainIfFileIsRedirectAndImpliedFormat:()=>zJ,exportAssignmentIsAlias:()=>cR,exportStarHelper:()=>R4,expressionResultIsUnused:()=>Poe,extend:()=>vW,extendsHelper:()=>g4,extensionFromPath:()=>$N,extensionIsTS:()=>F6,extensionsNotSupportingExtensionlessResolution:()=>Ik,externalHelpersModuleNameText:()=>Vv,factory:()=>L,fileExtensionIs:()=>Tl,fileExtensionIsOneOf:()=>Ec,fileIncludeReasonToDiagnostics:()=>VJ,fileShouldUseJavaScriptRequire:()=>vX,filter:()=>Vr,filterMutate:()=>LG,filterSemanticDiagnostics:()=>sz,find:()=>Gr,findAncestor:()=>Fn,findBestPatternMatch:()=>YG,findChildOfKind:()=>hs,findComputedPropertyNameCacheAssignment:()=>r3,findConfigFile:()=>Hle,findContainingList:()=>zz,findDiagnosticForNode:()=>Fde,findFirstNonJsxWhitespaceToken:()=>ode,findIndex:()=>Jl,findLast:()=>uI,findLastIndex:()=>mW,findListItemInfo:()=>ide,findMap:()=>hEe,findModifier:()=>mD,findNextToken:()=>cS,findPackageJson:()=>Ode,findPackageJsons:()=>uX,findPrecedingMatchingToken:()=>Hz,findPrecedingToken:()=>Ac,findSuperStatementIndexPath:()=>G3,findTokenOnLeftOfPosition:()=>Vz,findUseStrictPrologue:()=>TH,first:()=>Va,firstDefined:()=>Fl,firstDefinedIterator:()=>IL,firstIterator:()=>GG,firstOrOnly:()=>hX,firstOrUndefined:()=>Yc,firstOrUndefinedIterator:()=>hW,fixupCompilerOptions:()=>GX,flatMap:()=>ya,flatMapIterator:()=>kG,flatMapToMutable:()=>UC,flatten:()=>mm,flattenCommaList:()=>Yae,flattenDestructuringAssignment:()=>KT,flattenDestructuringBinding:()=>oS,flattenDiagnosticMessageText:()=>O_,forEach:()=>gn,forEachAncestor:()=>Ore,forEachAncestorDirectory:()=>ym,forEachChild:()=>Bo,forEachChildRecursively:()=>CP,forEachEmittedFile:()=>XK,forEachEnclosingBlockScopeContainer:()=>Xre,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>xX,forEachImportClauseDeclaration:()=>ZF,forEachKey:()=>ph,forEachLeadingCommentRange:()=>qL,forEachNameInAccessChainWalkingLeft:()=>soe,forEachPropertyAssignment:()=>Zx,forEachResolvedProjectReference:()=>hJ,forEachReturnStatement:()=>D0,forEachRight:()=>qte,forEachTrailingCommentRange:()=>XL,forEachTsConfigPropArray:()=>R2,forEachUnique:()=>Qq,forEachYieldExpression:()=>tie,forSomeAncestorDirectory:()=>fSe,formatColorAndReset:()=>sS,formatDiagnostic:()=>cJ,formatDiagnostics:()=>s1e,formatDiagnosticsWithColorAndContext:()=>qle,formatGeneratedName:()=>EE,formatGeneratedNamePart:()=>UR,formatLocation:()=>dJ,formatMessage:()=>aU,formatStringFromArgs:()=>rg,formatting:()=>wc,fullTripleSlashAMDReferencePathRegEx:()=>IU,fullTripleSlashReferencePathRegEx:()=>AU,generateDjb2Hash:()=>eN,generateTSConfig:()=>uAe,generatorHelper:()=>A4,getAdjustedReferenceLocation:()=>Lq,getAdjustedRenameLocation:()=>Gz,getAliasDeclarationFromName:()=>xj,getAllAccessorDeclarations:()=>xT,getAllDecoratorsOfClass:()=>wK,getAllDecoratorsOfClassElement:()=>j3,getAllJSDocTags:()=>oF,getAllJSDocTagsOfKind:()=>A0e,getAllKeys:()=>yEe,getAllProjectOutputs:()=>X3,getAllSuperTypeNodes:()=>CN,getAllUnscopedEmitHelpers:()=>$U,getAllowJSCompilerOption:()=>jv,getAllowSyntheticDefaultImports:()=>CT,getAncestor:()=>pE,getAnyExtensionFromPath:()=>Lx,getAreDeclarationMapsEnabled:()=>Sk,getAssignedExpandoInitializer:()=>DI,getAssignedName:()=>rF,getAssignedNameOfIdentifier:()=>jP,getAssignmentDeclarationKind:()=>Bl,getAssignmentDeclarationPropertyAccessKind:()=>z2,getAssignmentTargetKind:()=>MI,getAutomaticTypeDirectiveNames:()=>b3,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>tk,getBuildInfo:()=>$3,getBuildInfoFileVersionMap:()=>CJ,getBuildInfoText:()=>Gle,getBuildOrderFromAnyBuildOrder:()=>Tz,getBuilderCreationParameters:()=>pz,getBuilderFileEmit:()=>eb,getCheckFlags:()=>Al,getClassExtendsHeritageElement:()=>L0,getClassLikeDeclarationOfSymbol:()=>Og,getCombinedLocalAndExportSymbolFlags:()=>vR,getCombinedModifierFlags:()=>tE,getCombinedNodeFlags:()=>Cy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>bV,getCommentRange:()=>P_,getCommonSourceDirectory:()=>YP,getCommonSourceDirectoryOfConfig:()=>tD,getCompilerOptionValue:()=>D6,getCompilerOptionsDiffValue:()=>cAe,getConditions:()=>Qv,getConfigFileParsingDiagnostics:()=>qT,getConstantValue:()=>$oe,getContainerFlags:()=>yK,getContainerNode:()=>$T,getContainingClass:()=>sd,getContainingClassExcludingClassDecorators:()=>zF,getContainingClassStaticBlock:()=>die,getContainingFunction:()=>Fp,getContainingFunctionDeclaration:()=>cie,getContainingFunctionOrClassStaticBlock:()=>FF,getContainingNodeArray:()=>Moe,getContainingObjectLiteralElement:()=>OO,getContextualTypeFromParent:()=>o7,getContextualTypeFromParentOrAncestorTypeNode:()=>Bz,getCurrentTime:()=>jw,getDeclarationDiagnostics:()=>Fle,getDeclarationEmitExtensionForPath:()=>l6,getDeclarationEmitOutputFilePath:()=>Pie,getDeclarationEmitOutputFilePathWorker:()=>s6,getDeclarationFileExtension:()=>LH,getDeclarationFromName:()=>DN,getDeclarationModifierFlagsFromSymbol:()=>Af,getDeclarationOfKind:()=>ul,getDeclarationsOfKind:()=>Lre,getDeclaredExpandoInitializer:()=>w2,getDecorators:()=>Rv,getDefaultCompilerOptions:()=>J7,getDefaultExportInfoWorker:()=>S7,getDefaultFormatCodeSettings:()=>Pz,getDefaultLibFileName:()=>$L,getDefaultLibFilePath:()=>dpe,getDefaultLikeExportInfo:()=>E7,getDiagnosticText:()=>ZTe,getDiagnosticsWithinSpan:()=>zde,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>kJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>hce,getDocumentPositionMapper:()=>wX,getDocumentSpansEqualityComparer:()=>$q,getESModuleInterop:()=>hh,getEditsForFileRename:()=>qde,getEffectiveBaseTypeNode:()=>A_,getEffectiveConstraintOfTypeParameter:()=>zx,getEffectiveContainerForJSDocTemplateTag:()=>e6,getEffectiveImplementsTypeNodes:()=>dR,getEffectiveInitializer:()=>k2,getEffectiveJSDocHost:()=>uE,getEffectiveModifierFlags:()=>cu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Uie,getEffectiveModifierFlagsNoCache:()=>Hie,getEffectiveReturnTypeNode:()=>Qf,getEffectiveSetAccessorTypeAnnotationNode:()=>wie,getEffectiveTypeAnnotationNode:()=>vd,getEffectiveTypeParameterDeclarations:()=>Dv,getEffectiveTypeRoots:()=>wP,getElementOrPropertyAccessArgumentExpressionOrName:()=>QF,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>jR,getEmitDeclarations:()=>If,getEmitFlags:()=>za,getEmitHelpers:()=>o4,getEmitModuleDetectionKind:()=>NU,getEmitModuleKind:()=>kd,getEmitModuleResolutionKind:()=>uu,getEmitScriptTarget:()=>rs,getEmitStandardClassFields:()=>hoe,getEnclosingBlockScopeContainer:()=>fh,getEnclosingContainer:()=>aj,getEncodedSemanticClassifications:()=>CX,getEncodedSyntacticClassifications:()=>NX,getEndLinePosition:()=>v2,getEntityNameFromTypeNode:()=>N2,getEntrypointsFromPackageJsonInfo:()=>uK,getErrorCountForSummary:()=>hz,getErrorSpanForNode:()=>_T,getErrorSummaryText:()=>bce,getEscapedTextOfIdentifierOrLiteral:()=>MN,getEscapedTextOfJsxAttributeName:()=>aP,getEscapedTextOfJsxNamespacedName:()=>VI,getExpandoInitializer:()=>cE,getExportAssignmentExpression:()=>Rj,getExportInfoMap:()=>vO,getExportNeedsImportStarHelper:()=>nle,getExpressionAssociativity:()=>kj,getExpressionPrecedence:()=>kN,getExternalHelpersModuleName:()=>Xk,getExternalModuleImportEqualsDeclarationExpression:()=>IN,getExternalModuleName:()=>oR,getExternalModuleNameFromDeclaration:()=>Cie,getExternalModuleNameFromPath:()=>Gj,getExternalModuleNameLiteral:()=>u1,getExternalModuleRequireArgument:()=>mj,getFallbackOptions:()=>ww,getFileEmitOutput:()=>tce,getFileMatcherPatterns:()=>k6,getFileNamesFromConfigSpecs:()=>MP,getFileWatcherEventKind:()=>aV,getFilesInErrorForSummary:()=>gz,getFirstConstructorWithBody:()=>tg,getFirstIdentifier:()=>zp,getFirstNonSpaceCharacterPosition:()=>Nde,getFirstProjectOutput:()=>QK,getFixableErrorSpanExpression:()=>mX,getFormatCodeSettingsForWriting:()=>g7,getFullWidth:()=>g2,getFunctionFlags:()=>Vc,getHeritageClause:()=>$2,getHostSignatureFromJSDoc:()=>dE,getIdentifierAutoGenerate:()=>YSe,getIdentifierGeneratedImportReference:()=>rae,getIdentifierTypeArguments:()=>NT,getImmediatelyInvokedFunctionExpression:()=>gT,getImpliedNodeFormatForFile:()=>zw,getImpliedNodeFormatForFileWorker:()=>vJ,getImportNeedsImportDefaultHelper:()=>MK,getImportNeedsImportStarHelper:()=>z3,getIndentSize:()=>_R,getIndentString:()=>o6,getInferredLibraryNameResolveFrom:()=>oz,getInitializedVariables:()=>UN,getInitializerOfBinaryExpression:()=>vj,getInitializerOfBindingOrAssignmentElement:()=>$k,getInterfaceBaseTypeNodes:()=>NN,getInternalEmitFlags:()=>bm,getInvokedExpression:()=>VF,getIsolatedModules:()=>tm,getJSDocAugmentsTag:()=>nre,getJSDocClassTag:()=>SV,getJSDocCommentRanges:()=>cj,getJSDocCommentsAndTags:()=>Ej,getJSDocDeprecatedTag:()=>TV,getJSDocDeprecatedTagNoCache:()=>cre,getJSDocEnumTag:()=>AV,getJSDocHost:()=>ET,getJSDocImplementsTags:()=>rre,getJSDocOverloadTags:()=>Tj,getJSDocOverrideTagNoCache:()=>lre,getJSDocParameterTags:()=>Fx,getJSDocParameterTagsNoCache:()=>Qne,getJSDocPrivateTag:()=>v0e,getJSDocPrivateTagNoCache:()=>ore,getJSDocProtectedTag:()=>b0e,getJSDocProtectedTagNoCache:()=>are,getJSDocPublicTag:()=>y0e,getJSDocPublicTagNoCache:()=>ire,getJSDocReadonlyTag:()=>E0e,getJSDocReadonlyTagNoCache:()=>sre,getJSDocReturnTag:()=>dre,getJSDocReturnType:()=>n2,getJSDocRoot:()=>lR,getJSDocSatisfiesExpressionType:()=>EU,getJSDocSatisfiesTag:()=>IV,getJSDocTags:()=>oE,getJSDocTagsNoCache:()=>T0e,getJSDocTemplateTag:()=>S0e,getJSDocThisTag:()=>iF,getJSDocType:()=>iE,getJSDocTypeAliasName:()=>xH,getJSDocTypeAssertionType:()=>Q4,getJSDocTypeParameterDeclarations:()=>p6,getJSDocTypeParameterTags:()=>Zne,getJSDocTypeParameterTagsNoCache:()=>ere,getJSDocTypeTag:()=>rE,getJSXImplicitImportBase:()=>N6,getJSXRuntimeImport:()=>P6,getJSXTransformEnabled:()=>C6,getKeyForCompilerOptions:()=>oK,getLanguageVariant:()=>dk,getLastChild:()=>rU,getLeadingCommentRanges:()=>Hh,getLeadingCommentRangesOfNode:()=>lj,getLeftmostAccessExpression:()=>bR,getLeftmostExpression:()=>ER,getLibraryNameFromLibFileName:()=>gJ,getLineAndCharacterOfPosition:()=>ys,getLineInfo:()=>DK,getLineOfLocalPosition:()=>ON,getLineOfLocalPositionFromLineMap:()=>AT,getLineStartPositionForPosition:()=>im,getLineStarts:()=>Dg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>roe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>noe,getLinesBetweenPositions:()=>iN,getLinesBetweenRangeEndAndRangeStart:()=>eU,getLinesBetweenRangeEndPositions:()=>uSe,getLiteralText:()=>Vre,getLocalNameForExternalImport:()=>VR,getLocalSymbolForExportDefault:()=>yR,getLocaleSpecificMessage:()=>ko,getLocaleTimeString:()=>Vw,getMappedContextSpan:()=>Zq,getMappedDocumentSpan:()=>t7,getMappedLocation:()=>sM,getMatchedFileSpec:()=>BJ,getMatchedIncludeSpec:()=>GJ,getMeaningFromDeclaration:()=>Xw,getMeaningFromLocation:()=>YT,getMembersOfDeclaration:()=>nie,getModeForFileReference:()=>Ww,getModeForResolutionAtIndex:()=>Xle,getModeForUsageLocation:()=>pJ,getModifiedTime:()=>gI,getModifiers:()=>E0,getModuleInstanceState:()=>Vg,getModuleNameStringLiteralAt:()=>Bw,getModuleSpecifierEndingPreference:()=>Toe,getModuleSpecifierResolverHost:()=>Kq,getNameForExportedSymbol:()=>m7,getNameFromImportAttribute:()=>K6,getNameFromIndexInfo:()=>Yre,getNameFromPropertyName:()=>lO,getNameOfAccessExpression:()=>oU,getNameOfCompilerOptionValue:()=>UH,getNameOfDeclaration:()=>No,getNameOfExpando:()=>gj,getNameOfJSDocTypedef:()=>$ne,getNameOrArgument:()=>F2,getNameTable:()=>EY,getNamesForExportedSymbol:()=>Bde,getNamespaceDeclarationNode:()=>aR,getNewLineCharacter:()=>Wy,getNewLineKind:()=>yO,getNewLineOrDefaultFromHost:()=>qy,getNewTargetContainer:()=>pie,getNextJSDocCommentLocation:()=>Sj,getNodeForGeneratedName:()=>Zk,getNodeId:()=>is,getNodeKind:()=>lS,getNodeModifiers:()=>iM,getNodeModulePathParts:()=>j6,getNonAssignedNameOfDeclaration:()=>nF,getNonAssignmentOperatorForCompoundAssignment:()=>BP,getNonAugmentationDeclaration:()=>ej,getNonDecoratorTokenPosOfNode:()=>XV,getNormalizedAbsolutePath:()=>_o,getNormalizedAbsolutePathWithoutRoot:()=>pV,getNormalizedPathComponents:()=>GL,getObjectFlags:()=>Lr,getOperator:()=>Oj,getOperatorAssociativity:()=>wj,getOperatorPrecedence:()=>ek,getOptionFromName:()=>BH,getOptionsForLibraryResolution:()=>sK,getOptionsNameMap:()=>KR,getOrCreateEmitNode:()=>wd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Fae,getOrUpdate:()=>KC,getOriginalNode:()=>Nl,getOriginalNodeId:()=>Od,getOriginalSourceFile:()=>tSe,getOutputDeclarationFileName:()=>XP,getOutputDeclarationFileNameWorker:()=>YK,getOutputExtension:()=>q3,getOutputFileNames:()=>o1e,getOutputJSFileNameWorker:()=>$K,getOutputPathsFor:()=>qP,getOutputPathsForBundle:()=>JP,getOwnEmitOutputFilePath:()=>Nie,getOwnKeys:()=>Uh,getOwnValues:()=>fI,getPackageJsonInfo:()=>tS,getPackageJsonTypesVersionsPaths:()=>v3,getPackageJsonsVisibleToFile:()=>Wde,getPackageNameFromTypesPackageName:()=>WP,getPackageScopeForPath:()=>vw,getParameterSymbolFromJSDoc:()=>K2,getParameterTypeNode:()=>SSe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Ro,getParsedCommandLineOfConfigFile:()=>iw,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>mV,getPathFromPathComponents:()=>Av,getPathUpdater:()=>LX,getPathsBasePath:()=>c6,getPatternFromSpec:()=>boe,getPendingEmitKind:()=>aD,getPositionOfLineAndCharacter:()=>KL,getPossibleGenericSignatures:()=>wq,getPossibleOriginalInputExtensionForExtension:()=>Mie,getPossibleTypeArgumentsInfo:()=>Oq,getPreEmitDiagnostics:()=>a1e,getPrecedingNonSpaceCharacterPosition:()=>r7,getPrivateIdentifier:()=>OK,getProperties:()=>kK,getProperty:()=>gW,getPropertyArrayElementValue:()=>lie,getPropertyAssignmentAliasLikeExpression:()=>Iie,getPropertyNameForPropertyNameNode:()=>ST,getPropertyNameForUniqueESSymbol:()=>Z0e,getPropertyNameFromType:()=>em,getPropertyNameOfBindingOrAssignmentElement:()=>IH,getPropertySymbolFromBindingElement:()=>e7,getPropertySymbolsFromContextualType:()=>X7,getQuoteFromPreference:()=>qq,getQuotePreference:()=>af,getRangesWhere:()=>WG,getRefactorContextSpan:()=>I1,getReferencedFileLocation:()=>$P,getRegexFromPattern:()=>Bv,getRegularExpressionForWildcard:()=>qN,getRegularExpressionsForWildcards:()=>M6,getRelativePathFromDirectory:()=>gm,getRelativePathFromFile:()=>jL,getRelativePathToDirectoryOrUrl:()=>vI,getRenameLocation:()=>fO,getReplacementSpanForContextToken:()=>Bq,getResolutionDiagnostic:()=>SJ,getResolutionModeOverride:()=>nD,getResolveJsonModule:()=>hE,getResolvePackageJsonExports:()=>$6,getResolvePackageJsonImports:()=>Q6,getResolvedExternalModuleName:()=>a6,getRestIndicatorOfBindingOrAssignmentElement:()=>e3,getRestParameterElementType:()=>dj,getRightMostAssignedExpression:()=>O2,getRootDeclaration:()=>x_,getRootDirectoryOfResolutionCache:()=>gce,getRootLength:()=>ch,getRootPathSplitLength:()=>P1e,getScriptKind:()=>iX,getScriptKindFromFileName:()=>O6,getScriptTargetFeatures:()=>X6,getSelectedEffectiveModifierFlags:()=>wI,getSelectedSyntacticModifierFlags:()=>Vie,getSemanticClassifications:()=>Ude,getSemanticJsxChildren:()=>pR,getSetAccessorTypeAnnotationNode:()=>Lie,getSetAccessorValueParameter:()=>WN,getSetExternalModuleIndicator:()=>uk,getShebang:()=>ZW,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>bj,getSingleVariableOfVariableStatement:()=>PI,getSnapshotText:()=>fD,getSnippetElement:()=>JU,getSourceFileOfModule:()=>AF,getSourceFileOfNode:()=>Vn,getSourceFilePathInNewDir:()=>d6,getSourceFilePathInNewDirWorker:()=>u6,getSourceFileVersionAsHashFromText:()=>vz,getSourceFilesToEmit:()=>Vj,getSourceMapRange:()=>zy,getSourceMapper:()=>aue,getSourceTextOfNodeFromSourceFile:()=>I0,getSpanOfTokenAtPosition:()=>mh,getSpellingSuggestion:()=>YC,getStartPositionOfLine:()=>wv,getStartPositionOfRange:()=>jN,getStartsOnNewLine:()=>uP,getStaticPropertiesAndClassStaticBlock:()=>V3,getStrictOptionValue:()=>du,getStringComparer:()=>Ix,getSubPatternFromSpec:()=>L6,getSuperCallFromStatement:()=>B3,getSuperContainer:()=>D2,getSupportedCodeFixes:()=>vY,getSupportedExtensions:()=>XN,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>pk,getSwitchedType:()=>cX,getSymbolId:()=>va,getSymbolNameForPrivateIdentifier:()=>Q2,getSymbolTarget:()=>oX,getSyntacticClassifications:()=>Hde,getSyntacticModifierFlags:()=>Fv,getSyntacticModifierFlagsNoCache:()=>Kj,getSynthesizedDeepClone:()=>sl,getSynthesizedDeepCloneWithReplacements:()=>pO,getSynthesizedDeepClones:()=>dS,getSynthesizedDeepClonesWithReplacements:()=>aX,getSyntheticLeadingComments:()=>CR,getSyntheticTrailingComments:()=>Pk,getTargetLabel:()=>wz,getTargetOfBindingOrAssignmentElement:()=>$v,getTemporaryModuleResolutionState:()=>yw,getTextOfConstantValue:()=>jre,getTextOfIdentifierOrLiteral:()=>Yf,getTextOfJSDocComment:()=>i2,getTextOfJsxAttributeName:()=>vk,getTextOfJsxNamespacedName:()=>sP,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>vN,getTextOfPropertyName:()=>qx,getThisContainer:()=>wu,getThisParameter:()=>w0,getTokenAtPosition:()=>so,getTokenPosOfNode:()=>sE,getTokenSourceMapRange:()=>qSe,getTouchingPropertyName:()=>zu,getTouchingToken:()=>pD,getTrailingCommentRanges:()=>Qb,getTrailingSemicolonDeferringWriter:()=>Bj,getTransformFlagsSubtreeExclusions:()=>Koe,getTransformers:()=>JK,getTsBuildInfoEmitOutputFilePath:()=>Uy,getTsConfigObjectLiteralExpression:()=>TN,getTsConfigPropArrayElementValue:()=>WF,getTypeAnnotationNode:()=>kie,getTypeArgumentOrTypeParameterList:()=>fde,getTypeKeywordOfTypeOnlyImport:()=>Xq,getTypeNode:()=>tae,getTypeNodeIfAccessible:()=>pM,getTypeParameterFromJsDoc:()=>vie,getTypeParameterOwner:()=>f0e,getTypesPackageName:()=>x3,getUILocale:()=>lne,getUniqueName:()=>eA,getUniqueSymbolId:()=>Cde,getUseDefineForClassFields:()=>dP,getWatchErrorSummaryDiagnosticMessage:()=>OJ,getWatchFactory:()=>rJ,group:()=>XC,groupBy:()=>yW,guessIndentation:()=>Pre,handleNoEmitOptions:()=>bJ,hasAbstractModifier:()=>F0,hasAccessorModifier:()=>R_,hasAmbientModifier:()=>Hj,hasChangesInResolutions:()=>KV,hasChildOfKind:()=>nO,hasContextSensitiveParameters:()=>G6,hasDecorators:()=>Ef,hasDocComment:()=>ude,hasDynamicName:()=>Wv,hasEffectiveModifier:()=>mp,hasEffectiveModifiers:()=>f6,hasEffectiveReadonlyModifier:()=>FN,hasExtension:()=>yI,hasIndexSignature:()=>lX,hasInitializer:()=>Lv,hasInvalidEscape:()=>Fj,hasJSDocNodes:()=>wp,hasJSDocParameterTags:()=>tre,hasJSFileExtension:()=>z0,hasJsonModuleEmitEnabled:()=>R6,hasOnlyExpressionInitializer:()=>pT,hasOverrideModifier:()=>m6,hasPossibleExternalModuleReference:()=>qre,hasProperty:()=>Is,hasPropertyAccessExpressionWithName:()=>$w,hasQuestionToken:()=>NI,hasRecordedExternalHelpers:()=>Wae,hasResolutionModeOverride:()=>Woe,hasRestParameter:()=>VV,hasScopeMarker:()=>Tre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>$r,hasSyntacticModifiers:()=>Gie,hasTSFileExtension:()=>GI,hasTabstop:()=>koe,hasTrailingDirectorySeparator:()=>Ry,hasType:()=>yF,hasTypeArguments:()=>q0e,hasZeroOrOneAsteriskCharacter:()=>lU,helperString:()=>YU,hostGetCanonicalFileName:()=>ky,hostUsesCaseSensitiveFileNames:()=>hR,idText:()=>vr,identifierIsThisKeyword:()=>Uj,identifierToKeywordKind:()=>nE,identity:()=>el,identitySourceMapConsumer:()=>F3,ignoreSourceNewlines:()=>XU,ignoredPaths:()=>BL,importDefaultHelper:()=>x4,importFromModuleSpecifier:()=>RN,importNameElisionDisabled:()=>sU,importStarHelper:()=>Lk,indexOfAnyCharCode:()=>Xte,indexOfNode:()=>Jx,indicesOf:()=>RL,inferredTypesContainingFile:()=>oD,injectClassNamedEvaluationHelperBlockIfMissing:()=>H3,injectClassThisAssignmentIfMissing:()=>ple,insertImports:()=>aM,insertLeadingStatement:()=>fTe,insertSorted:()=>bv,insertStatementAfterCustomPrologue:()=>fT,insertStatementAfterStandardPrologue:()=>F0e,insertStatementsAfterCustomPrologue:()=>JV,insertStatementsAfterStandardPrologue:()=>Xh,intersperse:()=>MG,intrinsicTagNameToString:()=>SU,introducesArgumentsExoticObject:()=>aie,inverseJsxOptionMap:()=>LP,isAbstractConstructorSymbol:()=>ioe,isAbstractModifier:()=>uae,isAccessExpression:()=>Ls,isAccessibilityModifier:()=>Fq,isAccessor:()=>Nv,isAccessorModifier:()=>fae,isAliasSymbolDeclaration:()=>Y0e,isAliasableExpression:()=>Y2,isAmbientModule:()=>Ld,isAmbientPropertyDeclaration:()=>nj,isAnonymousFunctionDefinition:()=>LN,isAnyDirectorySeparator:()=>cV,isAnyImportOrBareOrAccessedRequire:()=>Jre,isAnyImportOrReExport:()=>E2,isAnyImportSyntax:()=>mT,isAnySupportedFileExtension:()=>ESe,isApplicableVersionedTypesKey:()=>Ew,isArgumentExpressionOfElementAccess:()=>Rq,isArray:()=>So,isArrayBindingElement:()=>pF,isArrayBindingOrAssignmentElement:()=>u2,isArrayBindingOrAssignmentPattern:()=>OV,isArrayBindingPattern:()=>H0,isArrayLiteralExpression:()=>pu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ky,isArrayTypeNode:()=>Bk,isArrowFunction:()=>zs,isAsExpression:()=>Vk,isAssertClause:()=>bae,isAssertEntry:()=>oTe,isAssertionExpression:()=>uT,isAssertsKeyword:()=>cae,isAssignmentDeclaration:()=>xN,isAssignmentExpression:()=>Mc,isAssignmentOperator:()=>wy,isAssignmentPattern:()=>hN,isAssignmentTarget:()=>Zh,isAsteriskToken:()=>Ok,isAsyncFunction:()=>PN,isAsyncModifier:()=>mP,isAutoAccessorPropertyDeclaration:()=>ku,isAwaitExpression:()=>qv,isAwaitKeyword:()=>rH,isBigIntLiteral:()=>L4,isBinaryExpression:()=>pr,isBinaryOperatorToken:()=>Kae,isBindableObjectDefinePropertyCall:()=>vT,isBindableStaticAccessExpression:()=>P0,isBindableStaticElementAccessExpression:()=>$F,isBindableStaticNameExpression:()=>bT,isBindingElement:()=>Xa,isBindingElementOfBareOrAccessedRequire:()=>_ie,isBindingName:()=>cT,isBindingOrAssignmentElement:()=>gre,isBindingOrAssignmentPattern:()=>c2,isBindingPattern:()=>$o,isBlock:()=>Ho,isBlockOrCatchScoped:()=>YV,isBlockScope:()=>rj,isBlockScopedContainerTopLevel:()=>Kre,isBooleanLiteral:()=>_N,isBreakOrContinueStatement:()=>uN,isBreakStatement:()=>nTe,isBuildInfoFile:()=>Ble,isBuilderProgram:()=>Ece,isBundle:()=>dH,isBundleFileTextLike:()=>aoe,isCallChain:()=>sT,isCallExpression:()=>ra,isCallExpressionTarget:()=>Eq,isCallLikeExpression:()=>A0,isCallLikeOrFunctionLikeExpression:()=>WV,isCallOrNewExpression:()=>E_,isCallOrNewExpressionTarget:()=>Sq,isCallSignatureDeclaration:()=>ZI,isCallToHelper:()=>fP,isCaseBlock:()=>EP,isCaseClause:()=>OR,isCaseKeyword:()=>mae,isCaseOrDefaultClause:()=>hF,isCatchClause:()=>Q0,isCatchClauseVariableDeclaration:()=>Loe,isCatchClauseVariableDeclarationOrBindingElement:()=>$V,isCheckJsEnabledForFile:()=>_k,isChildOfNodeWithKind:()=>B0e,isCircularBuildOrder:()=>b1,isClassDeclaration:()=>Tc,isClassElement:()=>Qc,isClassExpression:()=>ed,isClassInstanceProperty:()=>_re,isClassLike:()=>di,isClassMemberModifier:()=>LV,isClassNamedEvaluationHelperBlock:()=>v1,isClassOrTypeElement:()=>uF,isClassStaticBlockDeclaration:()=>Il,isClassThisAssignmentBlock:()=>VP,isCollapsedRange:()=>dSe,isColonToken:()=>sae,isCommaExpression:()=>qk,isCommaListExpression:()=>yP,isCommaSequence:()=>xP,isCommaToken:()=>aae,isComment:()=>Kz,isCommonJsExportPropertyAssignment:()=>wF,isCommonJsExportedExpression:()=>iie,isCompoundAssignment:()=>zP,isComputedNonLiteralName:()=>S2,isComputedPropertyName:()=>$a,isConciseBody:()=>mF,isConditionalExpression:()=>wR,isConditionalTypeNode:()=>r1,isConstTypeReference:()=>Ng,isConstructSignatureDeclaration:()=>Fk,isConstructorDeclaration:()=>Pl,isConstructorTypeNode:()=>PR,isContextualKeyword:()=>n6,isContinueStatement:()=>tTe,isCustomPrologue:()=>x2,isDebuggerStatement:()=>rTe,isDeclaration:()=>Kd,isDeclarationBindingElement:()=>l2,isDeclarationFileName:()=>Sd,isDeclarationName:()=>kg,isDeclarationNameOfEnumOrNamespace:()=>tU,isDeclarationReadonly:()=>PF,isDeclarationStatement:()=>Rre,isDeclarationWithTypeParameterChildren:()=>oj,isDeclarationWithTypeParameters:()=>ij,isDecorator:()=>Ed,isDecoratorTarget:()=>Qce,isDefaultClause:()=>TP,isDefaultImport:()=>CI,isDefaultModifier:()=>W4,isDefaultedExpandoInitializer:()=>hie,isDeleteExpression:()=>gae,isDeleteTarget:()=>Ij,isDeprecatedDeclaration:()=>_7,isDestructuringAssignment:()=>Oy,isDiagnosticWithLocation:()=>fX,isDiskPathRoot:()=>dV,isDoStatement:()=>ZSe,isDocumentRegistryEntry:()=>bO,isDotDotDotToken:()=>w4,isDottedName:()=>BN,isDynamicName:()=>i6,isESSymbolIdentifier:()=>eSe,isEffectiveExternalModule:()=>RI,isEffectiveModuleDeclaration:()=>Hre,isEffectiveStrictModeSourceFile:()=>tj,isElementAccessChain:()=>xV,isElementAccessExpression:()=>Ys,isEmittedFileOfProgram:()=>Ule,isEmptyArrayLiteral:()=>Xie,isEmptyBindingElement:()=>Xne,isEmptyBindingPattern:()=>qne,isEmptyObjectLiteral:()=>$j,isEmptyStatement:()=>sH,isEmptyStringLiteral:()=>fj,isEntityName:()=>Yu,isEntityNameExpression:()=>Gl,isEnumConst:()=>R0,isEnumDeclaration:()=>yE,isEnumMember:()=>Z0,isEqualityOperatorKind:()=>a7,isEqualsGreaterThanToken:()=>lae,isExclamationToken:()=>Wk,isExcludedFile:()=>ase,isExclusivelyTypeOnlyImportOrExport:()=>uJ,isExpandoPropertyDeclaration:()=>H6,isExportAssignment:()=>Ll,isExportDeclaration:()=>Yl,isExportModifier:()=>$I,isExportName:()=>$4,isExportNamespaceAsDefaultDeclaration:()=>RF,isExportOrDefaultModifier:()=>Qk,isExportSpecifier:()=>Jd,isExportsIdentifier:()=>yT,isExportsOrModuleExportsOrAlias:()=>nS,isExpression:()=>ht,isExpressionNode:()=>$h,isExpressionOfExternalModuleImportEqualsDeclaration:()=>nde,isExpressionOfOptionalChainRoot:()=>lF,isExpressionStatement:()=>td,isExpressionWithTypeArguments:()=>Gy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>_6,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>x0,isExternalModuleImportEqualsDeclaration:()=>lE,isExternalModuleIndicator:()=>p2,isExternalModuleNameRelative:()=>$c,isExternalModuleReference:()=>Eh,isExternalModuleSymbol:()=>aO,isExternalOrCommonJsModule:()=>Op,isFileLevelReservedGeneratedIdentifier:()=>s2,isFileLevelUniqueName:()=>IF,isFileProbablyExternalModule:()=>tw,isFirstDeclarationOfSymbolParameter:()=>eX,isFixablePromiseHandler:()=>FX,isForInOrOfStatement:()=>Vx,isForInStatement:()=>j4,isForInitializer:()=>bf,isForOfStatement:()=>jk,isForStatement:()=>OT,isFunctionBlock:()=>C0,isFunctionBody:()=>zV,isFunctionDeclaration:()=>Sc,isFunctionExpression:()=>ks,isFunctionExpressionOrArrowFunction:()=>G0,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Fs,isFunctionLikeKind:()=>TI,isFunctionLikeOrClassStaticBlockDeclaration:()=>Gx,isFunctionOrConstructorTypeNode:()=>hre,isFunctionOrModuleBlock:()=>kV,isFunctionSymbol:()=>yie,isFunctionTypeNode:()=>yh,isFutureReservedKeyword:()=>$0e,isGeneratedIdentifier:()=>ol,isGeneratedPrivateIdentifier:()=>lT,isGetAccessor:()=>Mv,isGetAccessorDeclaration:()=>Zp,isGetOrSetAccessorDeclaration:()=>aF,isGlobalDeclaration:()=>zxe,isGlobalScopeAugmentation:()=>T_,isGrammarError:()=>Bre,isHeritageClause:()=>ef,isHoistedFunction:()=>LF,isHoistedVariableStatement:()=>kF,isIdentifier:()=>Fe,isIdentifierANonContextualKeyword:()=>Nj,isIdentifierName:()=>Aie,isIdentifierOrThisTypeNode:()=>Vae,isIdentifierPart:()=>Zb,isIdentifierStart:()=>Kh,isIdentifierText:()=>$p,isIdentifierTypePredicate:()=>sie,isIdentifierTypeReference:()=>Doe,isIfStatement:()=>wT,isIgnoredFileFromWildCardWatching:()=>kw,isImplicitGlob:()=>uU,isImportAttribute:()=>Eae,isImportAttributeName:()=>mre,isImportAttributes:()=>a1,isImportCall:()=>Wp,isImportClause:()=>vh,isImportDeclaration:()=>Lc,isImportEqualsDeclaration:()=>nd,isImportKeyword:()=>hP,isImportMeta:()=>$x,isImportOrExportSpecifier:()=>SI,isImportOrExportSpecifierName:()=>Dde,isImportSpecifier:()=>Zu,isImportTypeAssertionContainer:()=>iTe,isImportTypeNode:()=>og,isImportableFile:()=>IX,isInComment:()=>Hy,isInCompoundLikeAssignment:()=>Aj,isInExpressionContext:()=>UF,isInJSDoc:()=>M2,isInJSFile:()=>ar,isInJSXText:()=>cde,isInJsonFile:()=>KF,isInNonReferenceComment:()=>hde,isInReferenceComment:()=>_de,isInRightSideOfInternalImportEqualsDeclaration:()=>Lz,isInString:()=>S1,isInTemplateString:()=>kq,isInTopLevelContext:()=>BF,isInTypeQuery:()=>IT,isIncrementalCompilation:()=>cP,isIndexSignatureDeclaration:()=>U0,isIndexedAccessTypeNode:()=>kT,isInferTypeNode:()=>PT,isInfinityOrNaNString:()=>rP,isInitializedProperty:()=>Rw,isInitializedVariable:()=>ck,isInsideJsxElement:()=>Uz,isInsideJsxElementOrAttribute:()=>lde,isInsideNodeModules:()=>gO,isInsideTemplateLiteral:()=>iO,isInstanceOfExpression:()=>h6,isInstantiatedModule:()=>SK,isInterfaceDeclaration:()=>fu,isInternalDeclaration:()=>jV,isInternalModuleImportEqualsDeclaration:()=>nR,isInternalName:()=>SH,isIntersectionTypeNode:()=>n1,isIntrinsicJsxName:()=>mR,isIterationStatement:()=>Pv,isJSDoc:()=>Qm,isJSDocAllType:()=>xae,isJSDocAugmentsTag:()=>d1,isJSDocAuthorTag:()=>cTe,isJSDocCallbackTag:()=>pH,isJSDocClassTag:()=>Dae,isJSDocCommentContainingNode:()=>gF,isJSDocConstructSignature:()=>sR,isJSDocDeprecatedTag:()=>gH,isJSDocEnumTag:()=>Hk,isJSDocFunctionType:()=>FR,isJSDocImplementsTag:()=>q4,isJSDocIndexSignature:()=>JF,isJSDocLikeText:()=>PH,isJSDocLink:()=>Aae,isJSDocLinkCode:()=>Iae,isJSDocLinkLike:()=>xI,isJSDocLinkPlain:()=>sTe,isJSDocMemberName:()=>vE,isJSDocNameReference:()=>AP,isJSDocNamepathType:()=>lTe,isJSDocNamespaceBody:()=>M0e,isJSDocNode:()=>jx,isJSDocNonNullableType:()=>U4,isJSDocNullableType:()=>WR,isJSDocOptionalParameter:()=>yk,isJSDocOptionalType:()=>uH,isJSDocOverloadTag:()=>zR,isJSDocOverrideTag:()=>K4,isJSDocParameterTag:()=>Zm,isJSDocPrivateTag:()=>mH,isJSDocPropertyLikeTag:()=>pN,isJSDocPropertyTag:()=>Cae,isJSDocProtectedTag:()=>_H,isJSDocPublicTag:()=>fH,isJSDocReadonlyTag:()=>hH,isJSDocReturnTag:()=>J4,isJSDocSatisfiesExpression:()=>bU,isJSDocSatisfiesTag:()=>X4,isJSDocSeeTag:()=>dTe,isJSDocSignature:()=>bE,isJSDocTag:()=>Ux,isJSDocTemplateTag:()=>rm,isJSDocThisTag:()=>yH,isJSDocThrowsTag:()=>pTe,isJSDocTypeAlias:()=>Xf,isJSDocTypeAssertion:()=>GR,isJSDocTypeExpression:()=>eS,isJSDocTypeLiteral:()=>BT,isJSDocTypeTag:()=>IP,isJSDocTypedefTag:()=>GT,isJSDocUnknownTag:()=>uTe,isJSDocUnknownType:()=>Rae,isJSDocVariadicType:()=>H4,isJSXTagName:()=>tR,isJsonEqual:()=>z6,isJsonSourceFile:()=>qf,isJsxAttribute:()=>k_,isJsxAttributeLike:()=>_F,isJsxAttributeName:()=>Ooe,isJsxAttributes:()=>$0,isJsxChild:()=>_2,isJsxClosingElement:()=>X0,isJsxClosingFragment:()=>Sae,isJsxElement:()=>ag,isJsxExpression:()=>SP,isJsxFragment:()=>Y0,isJsxNamespacedName:()=>$m,isJsxOpeningElement:()=>L_,isJsxOpeningFragment:()=>l1,isJsxOpeningLikeElement:()=>su,isJsxOpeningLikeElementTagName:()=>Zce,isJsxSelfClosingElement:()=>FT,isJsxSpreadAttribute:()=>c1,isJsxTagNameExpression:()=>gN,isJsxText:()=>qI,isJumpStatementTarget:()=>Qw,isKeyword:()=>Wu,isKeywordOrPunctuation:()=>t6,isKnownSymbol:()=>Z2,isLabelName:()=>Iq,isLabelOfLabeledStatement:()=>Aq,isLabeledStatement:()=>q0,isLateVisibilityPaintedStatement:()=>CF,isLeftHandSideExpression:()=>$u,isLeftHandSideOfAssignment:()=>cSe,isLet:()=>MF,isLineBreak:()=>Ud,isLiteralComputedPropertyDeclarationName:()=>X2,isLiteralExpression:()=>T0,isLiteralExpressionOfObject:()=>PV,isLiteralImportTypeNode:()=>Ov,isLiteralKind:()=>fN,isLiteralLikeAccess:()=>YF,isLiteralLikeElementAccess:()=>W2,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Oz,isLiteralTypeLikeExpression:()=>yTe,isLiteralTypeLiteral:()=>Ere,isLiteralTypeNode:()=>Jv,isLocalName:()=>Bg,isLogicalOperator:()=>Kie,isLogicalOrCoalescingAssignmentExpression:()=>Jj,isLogicalOrCoalescingAssignmentOperator:()=>zN,isLogicalOrCoalescingBinaryExpression:()=>ok,isLogicalOrCoalescingBinaryOperator:()=>ik,isMappedTypeNode:()=>LR,isMemberName:()=>Jh,isMetaProperty:()=>gP,isMethodDeclaration:()=>Hl,isMethodOrAccessor:()=>AI,isMethodSignature:()=>gh,isMinusToken:()=>nH,isMissingDeclaration:()=>aTe,isMissingPackageJsonInfo:()=>Tse,isModifier:()=>Sa,isModifierKind:()=>Ny,isModifierLike:()=>al,isModuleAugmentationExternal:()=>ZV,isModuleBlock:()=>M_,isModuleBody:()=>Are,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>Qh,isModuleIdentifier:()=>yj,isModuleName:()=>Hae,isModuleOrEnumDeclaration:()=>f2,isModuleReference:()=>Cre,isModuleSpecifierLike:()=>Zz,isModuleWithStringLiteralName:()=>DF,isNameOfFunctionDeclaration:()=>Cq,isNameOfModuleDeclaration:()=>Dq,isNamedClassElement:()=>R0e,isNamedDeclaration:()=>ou,isNamedEvaluation:()=>fp,isNamedEvaluationSource:()=>Pj,isNamedExportBindings:()=>DV,isNamedExports:()=>Rf,isNamedImportBindings:()=>BV,isNamedImports:()=>zg,isNamedImportsOrExports:()=>T6,isNamedTupleMember:()=>MR,isNamespaceBody:()=>P0e,isNamespaceExport:()=>bh,isNamespaceExportDeclaration:()=>Uk,isNamespaceImport:()=>Yv,isNamespaceReexportDeclaration:()=>mie,isNewExpression:()=>K0,isNewExpressionTarget:()=>nM,isNoSubstitutionTemplateLiteral:()=>XI,isNode:()=>I0e,isNodeArray:()=>S0,isNodeArrayMultiLine:()=>toe,isNodeDescendantOf:()=>M0,isNodeKind:()=>o2,isNodeLikeSystem:()=>QG,isNodeModulesDirectory:()=>qW,isNodeWithPossibleHoistedDeclaration:()=>Eie,isNonContextualKeyword:()=>Cj,isNonExportDefaultModifier:()=>bTe,isNonGlobalAmbientModule:()=>QV,isNonGlobalDeclaration:()=>jde,isNonNullAccess:()=>woe,isNonNullChain:()=>cF,isNonNullExpression:()=>o1,isNonStaticMethodOrAccessorWithPrivateName:()=>rle,isNotEmittedOrPartiallyEmittedNode:()=>N0e,isNotEmittedStatement:()=>cH,isNullishCoalesce:()=>RV,isNumber:()=>Ty,isNumericLiteral:()=>_p,isNumericLiteralName:()=>ig,isObjectBindingElementWithoutPropertyName:()=>cO,isObjectBindingOrAssignmentElement:()=>d2,isObjectBindingOrAssignmentPattern:()=>wV,isObjectBindingPattern:()=>nm,isObjectLiteralElement:()=>GV,isObjectLiteralElementLike:()=>Pg,isObjectLiteralExpression:()=>Ma,isObjectLiteralMethod:()=>Sm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>OF,isObjectTypeDeclaration:()=>FI,isOctalDigit:()=>QW,isOmittedExpression:()=>jc,isOptionalChain:()=>Hd,isOptionalChainRoot:()=>cN,isOptionalDeclaration:()=>oP,isOptionalJSDocPropertyLikeTag:()=>gk,isOptionalTypeNode:()=>F4,isOuterExpression:()=>Z4,isOutermostOptionalChain:()=>dN,isOverrideModifier:()=>pae,isPackageJsonInfo:()=>E3,isPackedArrayLiteral:()=>yU,isParameter:()=>To,isParameterDeclaration:()=>k0,isParameterPropertyDeclaration:()=>up,isParameterPropertyModifier:()=>mN,isParenthesizedExpression:()=>Fu,isParenthesizedTypeNode:()=>MT,isParseTreeNode:()=>lN,isPartOfTypeNode:()=>Yh,isPartOfTypeQuery:()=>HF,isPartiallyEmittedExpression:()=>V4,isPatternMatch:()=>SW,isPinnedComment:()=>xF,isPlainJsFile:()=>y2,isPlusToken:()=>tH,isPossiblyTypeArgumentPosition:()=>rO,isPostfixUnaryExpression:()=>oH,isPrefixUnaryExpression:()=>Xv,isPrivateIdentifier:()=>Ki,isPrivateIdentifierClassElementDeclaration:()=>au,isPrivateIdentifierPropertyAccessExpression:()=>Bx,isPrivateIdentifierSymbol:()=>xie,isProgramBundleEmitBuildInfo:()=>ace,isProgramUptoDate:()=>yJ,isPrologueDirective:()=>Em,isPropertyAccessChain:()=>sF,isPropertyAccessEntityNameExpression:()=>ak,isPropertyAccessExpression:()=>kr,isPropertyAccessOrQualifiedName:()=>vre,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>yre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>I_,isPropertySignature:()=>hp,isProtoSetter:()=>Rie,isPrototypeAccess:()=>zv,isPrototypePropertyAssignment:()=>B2,isPunctuation:()=>Dj,isPushOrUnshiftIdentifier:()=>Mj,isQualifiedName:()=>Au,isQuestionDotToken:()=>O4,isQuestionOrExclamationToken:()=>Gae,isQuestionOrPlusOrMinusToken:()=>Uae,isQuestionToken:()=>Hv,isRawSourceMap:()=>Zse,isReadonlyKeyword:()=>dae,isReadonlyKeywordOrPlusOrMinusToken:()=>jae,isRecognizedTripleSlashComment:()=>qV,isReferenceFileLocation:()=>rD,isReferencedFile:()=>RE,isRegularExpressionLiteral:()=>ZU,isRequireCall:()=>Su,isRequireVariableStatement:()=>hj,isRestParameter:()=>qh,isRestTypeNode:()=>z4,isReturnStatement:()=>Am,isReturnStatementWithFixablePromiseHandler:()=>I7,isRightSideOfAccessExpression:()=>Yj,isRightSideOfInstanceofExpression:()=>qie,isRightSideOfPropertyAccess:()=>dD,isRightSideOfQualifiedName:()=>tde,isRightSideOfQualifiedNameOrPropertyAccess:()=>GN,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Jie,isRootedDiskPath:()=>dp,isSameEntityName:()=>rR,isSatisfiesExpression:()=>aH,isScopeMarker:()=>Sre,isSemicolonClassElement:()=>yae,isSetAccessor:()=>Py,isSetAccessorDeclaration:()=>gp,isShebangTrivia:()=>_V,isShiftOperatorOrHigher:()=>DH,isShorthandAmbientModuleSymbol:()=>bN,isShorthandPropertyAssignment:()=>ep,isSignedNumericLiteral:()=>r6,isSimpleCopiableExpression:()=>iS,isSimpleInlineableExpression:()=>w_,isSimpleParameter:()=>lle,isSimpleParameterList:()=>Dw,isSingleOrDoubleQuote:()=>L2,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>yD,isSourceFileJS:()=>lu,isSourceFileNotJS:()=>j0e,isSourceFileNotJson:()=>_j,isSourceMapping:()=>ele,isSpecialPropertyDeclaration:()=>gie,isSpreadAssignment:()=>Vy,isSpreadElement:()=>Ym,isStatement:()=>Hi,isStatementButNotDeclaration:()=>m2,isStatementOrBlock:()=>Dre,isStatementWithLocals:()=>zre,isStatic:()=>na,isStaticModifier:()=>QI,isString:()=>Co,isStringAKeyword:()=>Q0e,isStringANonContextualKeyword:()=>LI,isStringAndEmptyAnonymousObjectIntersection:()=>mde,isStringDoubleQuoted:()=>XF,isStringLiteral:()=>Da,isStringLiteralLike:()=>ss,isStringLiteralOrJsxExpression:()=>Nre,isStringLiteralOrTemplate:()=>kde,isStringOrNumericLiteralLike:()=>Qp,isStringOrRegularExpressionOrTemplateLiteral:()=>Wq,isStringTextContainingNode:()=>MV,isSuperCall:()=>hT,isSuperKeyword:()=>_P,isSuperOrSuperProperty:()=>V0e,isSuperProperty:()=>Ou,isSupportedSourceFileName:()=>Aoe,isSwitchStatement:()=>bP,isSyntaxList:()=>BR,isSyntheticExpression:()=>QSe,isSyntheticReference:()=>s1,isTagName:()=>xq,isTaggedTemplateExpression:()=>J0,isTaggedTemplateTag:()=>$ce,isTemplateExpression:()=>B4,isTemplateHead:()=>YI,isTemplateLiteral:()=>II,isTemplateLiteralKind:()=>Cv,isTemplateLiteralToken:()=>pre,isTemplateLiteralTypeNode:()=>_ae,isTemplateLiteralTypeSpan:()=>iH,isTemplateMiddle:()=>eH,isTemplateMiddleOrTemplateTail:()=>dF,isTemplateSpan:()=>vP,isTemplateTail:()=>k4,isTextWhiteSpaceLike:()=>bde,isThis:()=>uD,isThisContainerOrFunctionBlock:()=>uie,isThisIdentifier:()=>W0,isThisInTypeQuery:()=>kI,isThisInitializedDeclaration:()=>GF,isThisInitializedObjectBindingExpression:()=>fie,isThisProperty:()=>C2,isThisTypeNode:()=>Gk,isThisTypeParameter:()=>iP,isThisTypePredicate:()=>G0e,isThrowStatement:()=>lH,isToken:()=>EI,isTokenKind:()=>NV,isTraceEnabled:()=>Gg,isTransientSymbol:()=>uh,isTrivia:()=>uR,isTryStatement:()=>WT,isTupleTypeNode:()=>t1,isTypeAlias:()=>j2,isTypeAliasDeclaration:()=>Im,isTypeAssertionExpression:()=>hae,isTypeDeclaration:()=>xR,isTypeElement:()=>dT,isTypeKeyword:()=>oM,isTypeKeywordToken:()=>jq,isTypeKeywordTokenOrIdentifier:()=>Xz,isTypeLiteralNode:()=>yp,isTypeNode:()=>ji,isTypeNodeKind:()=>iU,isTypeOfExpression:()=>kR,isTypeOnlyExportDeclaration:()=>fre,isTypeOnlyImportDeclaration:()=>a2,isTypeOnlyImportOrExportDeclaration:()=>aE,isTypeOperatorNode:()=>LT,isTypeParameterDeclaration:()=>_l,isTypePredicateNode:()=>zk,isTypeQueryNode:()=>e1,isTypeReferenceNode:()=>xf,isTypeReferenceType:()=>vF,isTypeUsableAsPropertyName:()=>Zf,isUMDExportSymbol:()=>S6,isUnaryExpression:()=>FV,isUnaryExpressionWithWrite:()=>bre,isUnicodeIdentifierStart:()=>YW,isUnionTypeNode:()=>Kv,isUnparsedNode:()=>CV,isUnparsedPrepend:()=>Tae,isUnparsedSource:()=>zT,isUnparsedTextLike:()=>ure,isUrl:()=>Mne,isValidBigIntString:()=>B6,isValidESSymbolDeclaration:()=>oie,isValidTypeOnlyAliasUseSite:()=>_E,isValueSignatureDeclaration:()=>Sie,isVarAwaitUsing:()=>A2,isVarConst:()=>Yx,isVarUsing:()=>I2,isVariableDeclaration:()=>Oi,isVariableDeclarationInVariableStatement:()=>SN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>N0,isVariableDeclarationInitializedToRequire:()=>qF,isVariableDeclarationList:()=>Uc,isVariableLike:()=>Qx,isVariableLikeOrAccessor:()=>rie,isVariableStatement:()=>Ml,isVoidExpression:()=>i1,isWatchSet:()=>pSe,isWhileStatement:()=>eTe,isWhiteSpaceLike:()=>Cg,isWhiteSpaceSingleLine:()=>b_,isWithStatement:()=>vae,isWriteAccess:()=>WI,isWriteOnlyAccess:()=>E6,isYieldExpression:()=>G4,jsxModeNeedsExplicitImport:()=>yX,keywordPart:()=>bp,last:()=>Ja,lastOrUndefined:()=>Zs,length:()=>Nn,libMap:()=>u3,libs:()=>dw,lineBreakPart:()=>hD,linkNamePart:()=>xde,linkPart:()=>nX,linkTextPart:()=>n7,listFiles:()=>WJ,loadModuleFromGlobalCache:()=>Lse,loadWithModeAwareCache:()=>Fw,makeIdentifierFromModuleName:()=>Ure,makeImport:()=>Jy,makeImportIfNecessary:()=>vde,makeStringLiteral:()=>A1,mangleScopedPackageName:()=>QR,map:()=>mn,mapAllOrFail:()=>wG,mapDefined:()=>to,mapDefinedEntries:()=>$te,mapDefinedIterator:()=>HC,mapEntries:()=>Zte,mapIterator:()=>jC,mapOneOrMany:()=>_X,mapToDisplayParts:()=>nb,matchFiles:()=>pU,matchPatternOrExact:()=>fU,matchedText:()=>fne,matchesExclude:()=>d3,maybeBind:()=>ea,maybeSetLocalizedDiagnosticMessages:()=>poe,memoize:()=>Eu,memoizeCached:()=>ane,memoizeOne:()=>sh,memoizeWeak:()=>vEe,metadataHelper:()=>s4,min:()=>JG,minAndMax:()=>xoe,missingFileModifiedTime:()=>Lp,modifierToFlag:()=>OI,modifiersToFlags:()=>D_,moduleOptionDeclaration:()=>qH,moduleResolutionIsEqualTo:()=>Wre,moduleResolutionNameAndModeGetter:()=>cz,moduleResolutionOptionDeclarations:()=>p3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>BI,moduleResolutionUsesNodeModules:()=>Yz,moduleSpecifiers:()=>rS,moveEmitHelpers:()=>Zoe,moveRangeEnd:()=>v6,moveRangePastDecorators:()=>wg,moveRangePastModifiers:()=>C_,moveRangePos:()=>fE,moveSyntheticComments:()=>Yoe,mutateMap:()=>KN,mutateMapSkippingNewValues:()=>ng,needsParentheses:()=>i7,needsScopeMarker:()=>fF,newCaseClauseTracker:()=>y7,newPrivateEnvironment:()=>ale,noEmitNotification:()=>Cw,noEmitSubstitution:()=>HP,noTransformers:()=>qK,noTruncationMaximumTruncationLength:()=>q6,nodeCanBeDecorated:()=>jF,nodeHasName:()=>t2,nodeIsDecorated:()=>eR,nodeIsMissing:()=>zl,nodeIsPresent:()=>Kf,nodeIsSynthesized:()=>Xs,nodeModuleNameResolver:()=>Rse,nodeModulesPathPart:()=>Th,nodeNextJsonConfigResolver:()=>Dse,nodeOrChildIsDecorated:()=>P2,nodeOverlapsWithStartEnd:()=>Wz,nodePosToString:()=>k0e,nodeSeenTracker:()=>T1,nodeStartsNewLexicalEnvironment:()=>Lj,nodeToDisplayParts:()=>Lxe,noop:()=>qa,noopFileWatcher:()=>lD,normalizePath:()=>fa,normalizeSlashes:()=>Md,not:()=>AW,notImplemented:()=>Uo,notImplementedResolver:()=>Q3,nullNodeConverters:()=>BU,nullParenthesizerRules:()=>zU,nullTransformationContext:()=>KP,objectAllocator:()=>ld,operatorPart:()=>lM,optionDeclarations:()=>sg,optionMapToObject:()=>s3,optionsAffectingProgramStructure:()=>ZH,optionsForBuild:()=>tK,optionsForWatch:()=>JR,optionsHaveChanges:()=>Hx,optionsHaveModuleResolutionChanges:()=>kre,or:()=>Km,orderedRemoveItem:()=>Rx,orderedRemoveItemAt:()=>Sv,outFile:()=>Cs,packageIdToPackageName:()=>TF,packageIdToString:()=>kv,paramHelper:()=>l4,parameterIsThisKeyword:()=>O0,parameterNamePart:()=>Sde,parseBaseNodeFactory:()=>OH,parseBigInt:()=>Roe,parseBuildCommand:()=>QTe,parseCommandLine:()=>YTe,parseCommandLineWorker:()=>zH,parseConfigFileTextToJson:()=>GH,parseConfigFileWithSystem:()=>L1e,parseConfigHostFromCompilerHostLike:()=>lz,parseCustomTypeOption:()=>a3,parseIsolatedEntityName:()=>p1,parseIsolatedJSDocComment:()=>Qae,parseJSDocTypeExpressionForTests:()=>WTe,parseJsonConfigFileContent:()=>pAe,parseJsonSourceFileConfigFileContent:()=>sw,parseJsonText:()=>rw,parseListTypeOption:()=>ese,parseNodeFactory:()=>Sh,parseNodeModuleFromPath:()=>gw,parsePackageName:()=>bw,parsePseudoBigInt:()=>ZN,parseValidBigInt:()=>gU,patchWriteFileEnsuringDirectory:()=>Nne,pathContainsNodeModules:()=>IE,pathIsAbsolute:()=>tN,pathIsBareSpecifier:()=>uV,pathIsRelative:()=>kp,patternText:()=>pne,perfLogger:()=>ru,performIncrementalCompilation:()=>W1e,performance:()=>Ane,plainJSErrors:()=>dz,positionBelongsToNode:()=>Pq,positionIsASICandidate:()=>l7,positionIsSynthesized:()=>Xm,positionsAreOnSameLine:()=>Tf,preProcessFile:()=>aRe,probablyUsesSemicolons:()=>_O,processCommentPragmas:()=>kH,processPragmasIntoFields:()=>wH,processTaggedTemplateExpression:()=>GK,programContainsEsModules:()=>yde,programContainsModules:()=>gde,projectReferenceIsEqualTo:()=>HV,propKeyHelper:()=>E4,propertyNamePart:()=>Tde,pseudoBigIntToString:()=>B0,punctuationPart:()=>Yd,pushIfUnique:()=>vf,quote:()=>uM,quotePreferenceFromString:()=>Jq,rangeContainsPosition:()=>Zw,rangeContainsPositionExclusive:()=>eO,rangeContainsRange:()=>of,rangeContainsRangeExclusive:()=>rde,rangeContainsStartEnd:()=>tO,rangeEndIsOnSameLineAsRangeStart:()=>lk,rangeEndPositionsAreOnSameLine:()=>Zie,rangeEquals:()=>BG,rangeIsOnSingleLine:()=>RT,rangeOfNode:()=>_U,rangeOfTypeParameters:()=>hU,rangeOverlapsWithStartEnd:()=>rM,rangeStartIsOnSameLineAsRangeEnd:()=>eoe,rangeStartPositionsAreOnSameLine:()=>b6,readBuilderProgram:()=>Sz,readConfigFile:()=>ow,readHelper:()=>v4,readJson:()=>VN,readJsonConfigFile:()=>rse,readJsonOrUndefined:()=>Qj,reduceEachLeadingCommentRange:()=>Fne,reduceEachTrailingCommentRange:()=>zne,reduceLeft:()=>nu,reduceLeftIterator:()=>_Ee,reducePathComponents:()=>aT,refactor:()=>R1,regExpEscape:()=>vSe,relativeComplement:()=>ene,removeAllComments:()=>Ck,removeEmitHelper:()=>XSe,removeExtension:()=>mk,removeFileExtension:()=>Tu,removeIgnoredPath:()=>fz,removeMinAndVersionNumbers:()=>qG,removeOptionality:()=>dde,removePrefix:()=>$C,removeSuffix:()=>xx,removeTrailingDirectorySeparator:()=>$b,repeatString:()=>sO,replaceElement:()=>jG,replaceFirstStar:()=>jI,resolutionExtensionIsTSOrJson:()=>YN,resolveConfigFileProjectName:()=>qJ,resolveJSModule:()=>Ise,resolveLibrary:()=>T3,resolveModuleName:()=>YR,resolveModuleNameFromCache:()=>XAe,resolvePackageNameToPackageJson:()=>iK,resolvePath:()=>Iv,resolveProjectReferencePath:()=>iD,resolveTripleslashReference:()=>nz,resolveTypeReferenceDirective:()=>Ese,resolvingEmptyArray:()=>J6,restHelper:()=>_4,returnFalse:()=>Hm,returnNoopFileWatcher:()=>cD,returnTrue:()=>Ay,returnUndefined:()=>Xb,returnsPromise:()=>WX,runInitializersHelper:()=>d4,sameFlatMap:()=>Yte,sameMap:()=>Pc,sameMapping:()=>OIe,scanShebangTrivia:()=>hV,scanTokenAtPosition:()=>eie,scanner:()=>$d,screenStartingMessageCodes:()=>Ez,semanticDiagnosticsOptionDeclarations:()=>YH,serializeCompilerOptions:()=>l3,server:()=>owe,servicesVersion:()=>upe,setCommentRange:()=>oc,setConfigFileInOptions:()=>KH,setConstantValue:()=>Qoe,setEachParent:()=>IR,setEmitFlags:()=>dr,setFunctionNameHelper:()=>S4,setGetSourceFileAsHashVersioned:()=>bz,setIdentifierAutoGenerate:()=>Mk,setIdentifierGeneratedImportReference:()=>nae,setIdentifierTypeArguments:()=>By,setInternalEmitFlags:()=>Nk,setLocalizedDiagnosticMessages:()=>uoe,setModuleDefaultHelper:()=>I4,setNodeFlags:()=>Noe,setObjectAllocator:()=>doe,setOriginalNode:()=>Rr,setParent:()=>ja,setParentRecursive:()=>Gv,setPrivateIdentifier:()=>HT,setSnippetElement:()=>qU,setSourceMapRange:()=>Ra,setStackTraceLimit:()=>BEe,setStartsOnNewLine:()=>r4,setSyntheticLeadingComments:()=>gE,setSyntheticTrailingComments:()=>HI,setSys:()=>HEe,setSysLog:()=>Dne,setTextRange:()=>st,setTextRangeEnd:()=>AR,setTextRangePos:()=>eP,setTextRangePosEnd:()=>_h,setTextRangePosWidth:()=>tP,setTokenSourceMapRange:()=>Xoe,setTypeNode:()=>eae,setUILocale:()=>cne,setValueDeclaration:()=>G2,shouldAllowImportingTsExtension:()=>ZR,shouldPreserveConstEnums:()=>j0,shouldUseUriStyleNodeCoreModules:()=>h7,showModuleSpecifier:()=>ooe,signatureHasLiteralTypes:()=>TK,signatureHasRestParameter:()=>Xd,signatureToDisplayParts:()=>rX,single:()=>VG,singleElementArray:()=>hI,singleIterator:()=>Qte,singleOrMany:()=>oh,singleOrUndefined:()=>ih,skipAlias:()=>bd,skipAssertions:()=>_Te,skipConstraint:()=>Uq,skipOuterExpressions:()=>$l,skipParentheses:()=>ms,skipPartiallyEmittedExpressions:()=>vm,skipTrivia:()=>Na,skipTypeChecking:()=>QN,skipTypeParentheses:()=>q2,skipWhile:()=>_ne,sliceAfter:()=>mU,some:()=>gt,sort:()=>tT,sortAndDeduplicate:()=>JC,sortAndDeduplicateDiagnostics:()=>Ox,sourceFileAffectingCompilerOptions:()=>f3,sourceFileMayBeEmitted:()=>TT,sourceMapCommentRegExp:()=>O3,sourceMapCommentRegExpDontCareLineStart:()=>PK,spacePart:()=>kl,spanMap:()=>OG,spreadArrayHelper:()=>b4,stableSort:()=>Ey,startEndContainsRange:()=>Nq,startEndOverlapsWithStartEnd:()=>Fz,startOnNewLine:()=>qd,startTracing:()=>Ine,startsWith:()=>ao,startsWithDirectory:()=>fV,startsWithUnderscore:()=>gX,startsWithUseStrict:()=>wae,stringContainsAt:()=>Vde,stringToToken:()=>b0,stripQuotes:()=>$f,supportedDeclarationExtensions:()=>Tk,supportedJSExtensions:()=>OU,supportedJSExtensionsFlat:()=>DR,supportedLocaleDirectories:()=>UV,supportedTSExtensions:()=>RR,supportedTSExtensionsFlat:()=>wU,supportedTSImplementationExtensions:()=>Ak,suppressLeadingAndTrailingTrivia:()=>Ep,suppressLeadingTrivia:()=>sX,suppressTrailingTrivia:()=>Pde,symbolEscapedNameNoDefault:()=>Qz,symbolName:()=>bl,symbolNameNoDefault:()=>$z,symbolPart:()=>Ede,symbolToDisplayParts:()=>cM,syntaxMayBeASICandidate:()=>TX,syntaxRequiresTrailingSemicolonOrASI:()=>s7,sys:()=>gd,sysLog:()=>FL,tagNamesAreEquivalent:()=>SE,takeWhile:()=>xW,targetOptionDeclaration:()=>pw,templateObjectHelper:()=>y4,testFormatSettings:()=>Yce,textChangeRangeIsUnchanged:()=>Kne,textChangeRangeNewSpan:()=>sN,textChanges:()=>fr,textOrKeywordPart:()=>tX,textPart:()=>sf,textRangeContainsPositionInclusive:()=>QL,textSpanContainsPosition:()=>vV,textSpanContainsTextSpan:()=>Vne,textSpanEnd:()=>ql,textSpanIntersection:()=>Hne,textSpanIntersectsWith:()=>tF,textSpanIntersectsWithPosition:()=>Une,textSpanIntersectsWithTextSpan:()=>p0e,textSpanIsEmpty:()=>Gne,textSpanOverlap:()=>jne,textSpanOverlapsWith:()=>u0e,textSpansEqual:()=>_D,textToKeywordObj:()=>YL,timestamp:()=>qs,toArray:()=>mI,toBuilderFileEmit:()=>cce,toBuilderStateFileInfoForMultiEmit:()=>lce,toEditorSettings:()=>kO,toFileNameLowerCase:()=>ah,toLowerCase:()=>one,toPath:()=>rl,toProgramEmitPending:()=>dce,tokenIsIdentifierOrKeyword:()=>iu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>One,tokenToString:()=>ca,trace:()=>yo,tracing:()=>or,tracingEnabled:()=>kL,transform:()=>iCe,transformClassFields:()=>gle,transformDeclarations:()=>KK,transformECMAScriptModule:()=>HK,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:()=>UK,transformNamedEvaluation:()=>vp,transformNodeModule:()=>Ole,transformNodes:()=>Nw,transformSystemModule:()=>wle,transformTypeScript:()=>hle,transpile:()=>mRe,transpileModule:()=>sue,transpileOptionValueCompilerOptions:()=>eK,tryAddToSet:()=>qb,tryAndIgnoreErrors:()=>u7,tryCast:()=>ri,tryDirectoryExists:()=>d7,tryExtractTSExtension:()=>g6,tryFileExists:()=>hO,tryGetClassExtendingExpressionWithTypeArguments:()=>qj,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Xj,tryGetDirectories:()=>c7,tryGetExtensionFromPath:()=>Wg,tryGetImportFromModuleSpecifier:()=>V2,tryGetJSDocSatisfiesTypeNode:()=>U6,tryGetModuleNameFromFile:()=>Yk,tryGetModuleSpecifierFromDeclaration:()=>iR,tryGetNativePerformanceHooks:()=>Ene,tryGetPropertyAccessOrIdentifierToString:()=>sk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>t3,tryGetSourceMappingURL:()=>Qse,tryGetTextOfPropertyName:()=>EN,tryIOAndConsumeErrors:()=>p7,tryParseJson:()=>y6,tryParsePattern:()=>TR,tryParsePatterns:()=>W6,tryParseRawSourceMap:()=>CK,tryReadDirectory:()=>dX,tryReadFile:()=>NP,tryRemoveDirectoryPrefix:()=>dU,tryRemoveExtension:()=>Ioe,tryRemovePrefix:()=>$G,tryRemoveSuffix:()=>une,typeAcquisitionDeclarations:()=>fw,typeAliasNamePart:()=>Ade,typeDirectiveIsEqualTo:()=>Fre,typeKeywords:()=>v7,typeParameterNamePart:()=>Ide,typeToDisplayParts:()=>uO,unchangedPollThresholds:()=>zL,unchangedTextChangeRange:()=>h2,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Sw,unorderedRemoveItem:()=>_I,unorderedRemoveItemAt:()=>XG,unreachableCodeIsError:()=>moe,unusedLabelIsError:()=>_oe,unwrapInnermostStatementOfLabel:()=>uj,updateErrorForNoInputFiles:()=>c3,updateLanguageServiceSourceFile:()=>bY,updateMissingFilePathsWatch:()=>nJ,updateResolutionField:()=>qR,updateSharedExtendedConfigFileWatcher:()=>ez,updateSourceFile:()=>MH,updateWatchingWildcardDirectories:()=>Lw,usesExtensionsOnImports:()=>Soe,usingSingleLineStringWriter:()=>yN,utf16EncodeAsString:()=>wx,validateLocaleAndSetLanguage:()=>m0e,valuesHelper:()=>T4,version:()=>qp,versionMajorMinor:()=>v_,visitArray:()=>Iw,visitCommaListElements:()=>xw,visitEachChild:()=>Sn,visitFunctionBody:()=>rf,visitIterationBody:()=>Iu,visitLexicalEnvironment:()=>RK,visitNode:()=>Qe,visitNodes:()=>zn,visitParameterList:()=>xl,walkUpBindingElementsAndPatterns:()=>Wx,walkUpLexicalEnvironments:()=>ole,walkUpOuterExpressions:()=>Oae,walkUpParenthesizedExpressions:()=>Ly,walkUpParenthesizedTypes:()=>J2,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tie,whitespaceOrMapCommentRegExp:()=>W3,writeCommentRange:()=>gR,writeFile:()=>wN,writeFileEnsuringDirectories:()=>jj,zipWith:()=>PG});var swe=bt({"src/typescript/_namespaces/ts.ts"(){"use strict";Zo(),Jw(),ai(),ob(),Vot()}}),jot=Ms({"src/typescript/typescript.ts"(e,t){swe(),swe(),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=awe}});return jot()})();typeof Jr<"u"&&Jr.exports&&(Jr.exports=ci);var Vo=ci.createClassifier,Fa=ci.createLanguageService,Ea=ci.displayPartsToString,Ya=ci.EndOfLineState,Js=ci.flattenDiagnosticMessageText,Xu=ci.IndentStyle,Ss=ci.ScriptKind,Fc=ci.ScriptTarget,Kb=ci.TokenClass,Wl=ci,ki={};ki["lib.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// /// /// /// /// `,ki["lib.decorators.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// /** * The decorator context types provided to class element decorators. */ type ClassMemberDecoratorContext = | ClassMethodDecoratorContext | ClassGetterDecoratorContext | ClassSetterDecoratorContext | ClassFieldDecoratorContext | ClassAccessorDecoratorContext; /** * The decorator context types provided to any decorator. */ type DecoratorContext = | ClassDecoratorContext | ClassMemberDecoratorContext; type DecoratorMetadataObject = Record & object; type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; /** * Context provided to a class decorator. * @template Class The type of the decorated class associated with this context. */ interface ClassDecoratorContext< Class extends abstract new (...args: any) => any = abstract new (...args: any) => any, > { /** The kind of element that was decorated. */ readonly kind: "class"; /** The name of the decorated class. */ readonly name: string | undefined; /** * Adds a callback to be invoked after the class definition has been finalized. * * @example * \`\`\`ts * function customElement(name: string): ClassDecoratorFunction { * return (target, context) => { * context.addInitializer(function () { * customElements.define(name, this); * }); * } * } * * @customElement("my-element") * class MyElement {} * \`\`\` */ addInitializer(initializer: (this: Class) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class method decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class method. */ interface ClassMethodDecoratorContext< This = unknown, Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any, > { /** The kind of class element that was decorated. */ readonly kind: "method"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the current value of the method from the provided object. * * @example * let fn = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). * * @example * \`\`\`ts * const bound: ClassMethodDecoratorFunction = (value, context) { * if (context.private) throw new TypeError("Not supported on private methods."); * context.addInitializer(function () { * this[context.name] = this[context.name].bind(this); * }); * } * * class C { * message = "Hello"; * * @bound * m() { * console.log(this.message); * } * } * \`\`\` */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class getter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The property type of the decorated class getter. */ interface ClassGetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "getter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class setter decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class setter. */ interface ClassSetterDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "setter"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Context provided to a class \`accessor\` field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of decorated class field. */ interface ClassAccessorDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "accessor"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Invokes the getter on the provided object. * * @example * let value = context.access.get(instance); */ get(object: This): Value; /** * Invokes the setter on the provided object. * * @example * context.access.set(instance, value); */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * Describes the target provided to class \`accessor\` field decorators. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorTarget { /** * Invokes the getter that was defined prior to decorator application. * * @example * let value = target.get.call(instance); */ get(this: This): Value; /** * Invokes the setter that was defined prior to decorator application. * * @example * target.set.call(instance, value); */ set(this: This, value: Value): void; } /** * Describes the allowed return value from a class \`accessor\` field decorator. * @template This The \`this\` type to which the target applies. * @template Value The property type for the class \`accessor\` field. */ interface ClassAccessorDecoratorResult { /** * An optional replacement getter function. If not provided, the existing getter function is used instead. */ get?(this: This): Value; /** * An optional replacement setter function. If not provided, the existing setter function is used instead. */ set?(this: This, value: Value): void; /** * An optional initializer mutator that is invoked when the underlying field initializer is evaluated. * @param value The incoming initializer value. * @returns The replacement initializer value. */ init?(this: This, value: Value): Value; } /** * Context provided to a class field decorator. * @template This The type on which the class element will be defined. For a static class element, this will be * the type of the constructor. For a non-static class element, this will be the type of the instance. * @template Value The type of the decorated class field. */ interface ClassFieldDecoratorContext< This = unknown, Value = unknown, > { /** The kind of class element that was decorated. */ readonly kind: "field"; /** The name of the decorated class element. */ readonly name: string | symbol; /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */ readonly static: boolean; /** A value indicating whether the class element has a private name. */ readonly private: boolean; /** An object that can be used to access the current value of the class element at runtime. */ readonly access: { /** * Determines whether an object has a property with the same name as the decorated element. */ has(object: This): boolean; /** * Gets the value of the field on the provided object. */ get(object: This): Value; /** * Sets the value of the field on the provided object. */ set(object: This, value: Value): void; }; /** * Adds a callback to be invoked either before static initializers are run (when * decorating a \`static\` element), or before instance initializers are run (when * decorating a non-\`static\` element). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } `,ki["lib.decorators.legacy.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; `,ki["lib.dom.asynciterable.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// ///////////////////////////// /// Window Async Iterable APIs ///////////////////////////// interface FileSystemDirectoryHandle { [Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>; entries(): AsyncIterableIterator<[string, FileSystemHandle]>; keys(): AsyncIterableIterator; values(): AsyncIterableIterator; } `,ki["lib.dom.d.ts"]=`/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /// ///////////////////////////// /// Window APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AesCbcParams extends Algorithm { iv: BufferSource; } interface AesCtrParams extends Algorithm { counter: BufferSource; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: BufferSource; iv: BufferSource; tagLength?: number; } interface AesKeyAlgorithm extends KeyAlgorithm { length: number; } interface AesKeyGenParams extends Algorithm { length: number; } interface Algorithm { name: string; } interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; minDecibels?: number; smoothingTimeConstant?: number; } interface AnimationEventInit extends EventInit { animationName?: string; elapsedTime?: number; pseudoElement?: string; } interface AnimationPlaybackEventInit extends EventInit { currentTime?: CSSNumberish | null; timelineTime?: CSSNumberish | null; } interface AssignedNodesOptions { flatten?: boolean; } interface AudioBufferOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface AudioBufferSourceOptions { buffer?: AudioBuffer | null; detune?: number; loop?: boolean; loopEnd?: number; loopStart?: number; playbackRate?: number; } interface AudioConfiguration { bitrate?: number; channels?: string; contentType: string; samplerate?: number; spatialRendering?: boolean; } interface AudioContextOptions { latencyHint?: AudioContextLatencyCategory | number; sampleRate?: number; } interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; channelInterpretation?: ChannelInterpretation; } interface AudioProcessingEventInit extends EventInit { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } interface AudioTimestamp { contextTime?: number; performanceTime?: DOMHighResTimeStamp; } interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfInputs?: number; numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; processorOptions?: any; } interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; hmacCreateSecret?: boolean; minPinLength?: boolean; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface AvcEncoderConfig { format?: AvcBitstreamFormat; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSMatrixComponentOptions { is2D?: boolean; } interface CSSNumericType { angle?: number; flex?: number; frequency?: number; length?: number; percent?: number; percentHint?: CSSNumericBaseType; resolution?: number; time?: number; } interface CSSStyleSheetInit { baseURL?: string; disabled?: boolean; media?: MediaList | string; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { alpha?: boolean; colorSpace?: PredefinedColorSpace; desynchronized?: boolean; willReadFrequently?: boolean; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; } interface ClientQueryOptions { includeUncontrolled?: boolean; type?: ClientTypes; } interface ClipboardEventInit extends EventInit { clipboardData?: DataTransfer | null; } interface ClipboardItemOptions { presentationStyle?: PresentationStyle; } interface CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ComputedEffectTiming extends EffectTiming { activeDuration?: CSSNumberish; currentIteration?: number | null; endTime?: CSSNumberish; localTime?: CSSNumberish | null; progress?: number | null; startTime?: CSSNumberish; } interface ComputedKeyframe { composite: CompositeOperationOrAuto; computedOffset: number; easing: string; offset: number | null; [property: string]: string | number | null | undefined; } interface ConstantSourceOptions { offset?: number; } interface ConstrainBooleanParameters { exact?: boolean; ideal?: boolean; } interface ConstrainDOMStringParameters { exact?: string | string[]; ideal?: string | string[]; } interface ConstrainDoubleRange extends DoubleRange { exact?: number; ideal?: number; } interface ConstrainULongRange extends ULongRange { exact?: number; ideal?: number; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CredentialCreationOptions { publicKey?: PublicKeyCredentialCreationOptions; signal?: AbortSignal; } interface CredentialPropertiesOutput { rk?: boolean; } interface CredentialRequestOptions { mediation?: CredentialMediationRequirement; publicKey?: PublicKeyCredentialRequestOptions; signal?: AbortSignal; } interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } interface CustomEventInit extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface DelayOptions extends AudioNodeOptions { delayTime?: number; maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { x?: number | null; y?: number | null; z?: number | null; } interface DeviceMotionEventInit extends EventInit { acceleration?: DeviceMotionEventAccelerationInit; accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; interval?: number; rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { absolute?: boolean; alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DisplayMediaStreamOptions { audio?: boolean | MediaTrackConstraints; video?: boolean | MediaTrackConstraints; } interface DocumentTimelineOptions { originTime?: DOMHighResTimeStamp; } interface DoubleRange { max?: number; min?: number; } interface DragEventInit extends MouseEventInit { dataTransfer?: DataTransfer | null; } interface DynamicsCompressorOptions extends AudioNodeOptions { attack?: number; knee?: number; ratio?: number; release?: number; threshold?: number; } interface EcKeyAlgorithm extends KeyAlgorithm { namedCurve: NamedCurve; } interface EcKeyGenParams extends Algorithm { namedCurve: NamedCurve; } interface EcKeyImportParams extends Algorithm { namedCurve: NamedCurve; } interface EcdhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface EffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | CSSNumericValue | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { is?: string; } interface ElementDefinitionOptions { extends?: string; } interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; } interface EncodedVideoChunkMetadata { decoderConfig?: VideoDecoderConfig; } interface ErrorEventInit extends EventInit { colno?: number; error?: any; filename?: string; lineno?: number; message?: string; } interface EventInit { bubbles?: boolean; cancelable?: boolean; composed?: boolean; } interface EventListenerOptions { capture?: boolean; } interface EventModifierInit extends UIEventInit { altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; modifierAltGraph?: boolean; modifierCapsLock?: boolean; modifierFn?: boolean; modifierFnLock?: boolean; modifierHyper?: boolean; modifierNumLock?: boolean; modifierScrollLock?: boolean; modifierSuper?: boolean; modifierSymbol?: boolean; modifierSymbolLock?: boolean; shiftKey?: boolean; } interface EventSourceInit { withCredentials?: boolean; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FileSystemCreateWritableOptions { keepExistingData?: boolean; } interface FileSystemFlags { create?: boolean; exclusive?: boolean; } interface FileSystemGetDirectoryOptions { create?: boolean; } interface FileSystemGetFileOptions { create?: boolean; } interface FileSystemRemoveOptions { recursive?: boolean; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget | null; } interface FocusOptions { preventScroll?: boolean; } interface FontFaceDescriptors { ascentOverride?: string; descentOverride?: string; display?: FontDisplay; featureSettings?: string; lineGapOverride?: string; stretch?: string; style?: string; unicodeRange?: string; weight?: string; } interface FontFaceSetLoadEventInit extends EventInit { fontfaces?: FontFace[]; } interface FormDataEventInit extends EventInit { formData: FormData; } interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { gain?: number; } interface GamepadEffectParameters { duration?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetNotificationOptions { tag?: string; } interface GetRootNodeOptions { composed?: boolean; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: BufferSource; salt: BufferSource; } interface HmacImportParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface HmacKeyAlgorithm extends KeyAlgorithm { hash: KeyAlgorithm; length: number; } interface HmacKeyGenParams extends Algorithm { hash: HashAlgorithmIdentifier; length?: number; } interface IDBDatabaseInfo { name?: string; version?: number; } interface IDBIndexParameters { multiEntry?: boolean; unique?: boolean; } interface IDBObjectStoreParameters { autoIncrement?: boolean; keyPath?: string | string[] | null; } interface IDBTransactionOptions { durability?: IDBTransactionDurability; } interface IDBVersionChangeEventInit extends EventInit { newVersion?: number | null; oldVersion?: number; } interface IIRFilterOptions extends AudioNodeOptions { feedback: number[]; feedforward: number[]; } interface IdleRequestOptions { timeout?: number; } interface ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageDataSettings { colorSpace?: PredefinedColorSpace; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } interface IntersectionObserverEntryInit { boundingClientRect: DOMRectInit; intersectionRatio: number; intersectionRect: DOMRectInit; isIntersecting: boolean; rootBounds: DOMRectInit | null; target: Element; time: DOMHighResTimeStamp; } interface IntersectionObserverInit { root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; } interface JsonWebKey { alg?: string; crv?: string; d?: string; dp?: string; dq?: string; e?: string; ext?: boolean; k?: string; key_ops?: string[]; kty?: string; n?: string; oth?: RsaOtherPrimesInfo[]; p?: string; q?: string; qi?: string; use?: string; x?: string; y?: string; } interface KeyAlgorithm { name: string; } interface KeyboardEventInit extends EventModifierInit { /** @deprecated */ charCode?: number; code?: string; isComposing?: boolean; key?: string; /** @deprecated */ keyCode?: number; location?: number; repeat?: boolean; } interface Keyframe { composite?: CompositeOperationOrAuto; easing?: string; offset?: number | null; [property: string]: string | number | null | undefined; } interface KeyframeAnimationOptions extends KeyframeEffectOptions { id?: string; timeline?: AnimationTimeline | null; } interface KeyframeEffectOptions extends EffectTiming { composite?: CompositeOperation; iterationComposite?: IterationCompositeOperation; pseudoElement?: string | null; } interface LockInfo { clientId?: string; mode?: LockMode; name?: string; } interface LockManagerSnapshot { held?: LockInfo[]; pending?: LockInfo[]; } interface LockOptions { ifAvailable?: boolean; mode?: LockMode; signal?: AbortSignal; steal?: boolean; } interface MIDIConnectionEventInit extends EventInit { port?: MIDIPort; } interface MIDIMessageEventInit extends EventInit { data?: Uint8Array; } interface MIDIOptions { software?: boolean; sysex?: boolean; } interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo { configuration?: MediaDecodingConfiguration; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { configuration?: MediaEncodingConfiguration; } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { type: MediaDecodingType; } interface MediaElementAudioSourceOptions { mediaElement: HTMLMediaElement; } interface MediaEncodingConfiguration extends MediaConfiguration { type: MediaEncodingType; } interface MediaEncryptedEventInit extends EventInit { initData?: ArrayBuffer | null; initDataType?: string; } interface MediaImage { sizes?: string; src: string; type?: string; } interface MediaKeyMessageEventInit extends EventInit { message: ArrayBuffer; messageType: MediaKeyMessageType; } interface MediaKeySystemConfiguration { audioCapabilities?: MediaKeySystemMediaCapability[]; distinctiveIdentifier?: MediaKeysRequirement; initDataTypes?: string[]; label?: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; videoCapabilities?: MediaKeySystemMediaCapability[]; } interface MediaKeySystemMediaCapability { contentType?: string; encryptionScheme?: string | null; robustness?: string; } interface MediaMetadataInit { album?: string; artist?: string; artwork?: MediaImage[]; title?: string; } interface MediaPositionState { duration?: number; playbackRate?: number; position?: number; } interface MediaQueryListEventInit extends EventInit { matches?: boolean; media?: string; } interface MediaRecorderOptions { audioBitsPerSecond?: number; bitsPerSecond?: number; mimeType?: string; videoBitsPerSecond?: number; } interface MediaSessionActionDetails { action: MediaSessionAction; fastSeek?: boolean; seekOffset?: number; seekTime?: number; } interface MediaStreamAudioSourceOptions { mediaStream: MediaStream; } interface MediaStreamConstraints { audio?: boolean | MediaTrackConstraints; peerIdentity?: string; preferCurrentTab?: boolean; video?: boolean | MediaTrackConstraints; } interface MediaStreamTrackEventInit extends EventInit { track: MediaStreamTrack; } interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; channelCount?: ULongRange; deviceId?: string; displaySurface?: string; echoCancellation?: boolean[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; height?: ULongRange; noiseSuppression?: boolean[]; sampleRate?: ULongRange; sampleSize?: ULongRange; width?: ULongRange; } interface MediaTrackConstraintSet { aspectRatio?: ConstrainDouble; autoGainControl?: ConstrainBoolean; channelCount?: ConstrainULong; deviceId?: ConstrainDOMString; displaySurface?: ConstrainDOMString; echoCancellation?: ConstrainBoolean; facingMode?: ConstrainDOMString; frameRate?: ConstrainDouble; groupId?: ConstrainDOMString; height?: ConstrainULong; noiseSuppression?: ConstrainBoolean; sampleRate?: ConstrainULong; sampleSize?: ConstrainULong; width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; width?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; channelCount?: boolean; deviceId?: boolean; displaySurface?: boolean; echoCancellation?: boolean; facingMode?: boolean; frameRate?: boolean; groupId?: boolean; height?: boolean; noiseSuppression?: boolean; sampleRate?: boolean; sampleSize?: boolean; width?: boolean; } interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MouseEventInit extends EventModifierInit { button?: number; buttons?: number; clientX?: number; clientY?: number; movementX?: number; movementY?: number; relatedTarget?: EventTarget | null; screenX?: number; screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface MutationObserverInit { /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ attributeFilter?: string[]; /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ attributeOldValue?: boolean; /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ attributes?: boolean; /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ characterData?: boolean; /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ characterDataOldValue?: boolean; /** Set to true if mutations to target's children are to be observed. */ childList?: boolean; /** Set to true if mutations to not just target, but also target's descendants are to be observed. */ subtree?: boolean; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface NotificationOptions { badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; lang?: string; requireInteraction?: boolean; silent?: boolean | null; tag?: string; } interface OfflineAudioCompletionEventInit extends EventInit { renderedBuffer: AudioBuffer; } interface OfflineAudioContextOptions { length: number; numberOfChannels?: number; sampleRate: number; } interface OptionalEffectTiming { delay?: number; direction?: PlaybackDirection; duration?: number | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageTransitionEventInit extends EventInit { persisted?: boolean; } interface PannerOptions extends AudioNodeOptions { coneInnerAngle?: number; coneOuterAngle?: number; coneOuterGain?: number; distanceModel?: DistanceModelType; maxDistance?: number; orientationX?: number; orientationY?: number; orientationZ?: number; panningModel?: PanningModelType; positionX?: number; positionY?: number; positionZ?: number; refDistance?: number; rolloffFactor?: number; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { paymentMethodErrors?: any; total?: PaymentItem; } interface PaymentItem { amount: PaymentCurrencyAmount; label: string; pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { methodDetails?: any; methodName?: string; } interface PaymentMethodData { data?: any; supportedMethods: string; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentValidationErrors { error?: string; paymentMethod?: any; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: BufferSource; } interface PerformanceMarkOptions { detail?: any; startTime?: DOMHighResTimeStamp; } interface PerformanceMeasureOptions { detail?: any; duration?: DOMHighResTimeStamp; end?: string | DOMHighResTimeStamp; start?: string | DOMHighResTimeStamp; } interface PerformanceObserverInit { buffered?: boolean; entryTypes?: string[]; type?: string; } interface PeriodicWaveConstraints { disableNormalization?: boolean; } interface PeriodicWaveOptions extends PeriodicWaveConstraints { imag?: number[] | Float32Array; real?: number[] | Float32Array; } interface PermissionDescriptor { name: PermissionName; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { offset: number; stride: number; } interface PointerEventInit extends MouseEventInit { coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; pointerId?: number; pointerType?: string; predictedEvents?: PointerEvent[]; pressure?: number; tangentialPressure?: number; tiltX?: number; tiltY?: number; twist?: number; width?: number; } interface PopStateEventInit extends EventInit { state?: any; } interface PositionOptions { enableHighAccuracy?: boolean; maximumAge?: number; timeout?: number; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise; reason?: any; } interface PropertyDefinition { inherits: boolean; initialValue?: string; name: string; syntax?: string; } interface PropertyIndexedKeyframes { composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[]; easing?: string | string[]; offset?: number | (number | null)[]; [property: string]: string | string[] | number | null | (number | null)[] | undefined; } interface PublicKeyCredentialCreationOptions { attestation?: AttestationConveyancePreference; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: BufferSource; excludeCredentials?: PublicKeyCredentialDescriptor[]; extensions?: AuthenticationExtensionsClientInputs; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntity; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialEntity { name: string; } interface PublicKeyCredentialParameters { alg: COSEAlgorithmIdentifier; type: PublicKeyCredentialType; } interface PublicKeyCredentialRequestOptions { allowCredentials?: PublicKeyCredentialDescriptor[]; challenge: BufferSource; extensions?: AuthenticationExtensionsClientInputs; rpId?: string; timeout?: number; userVerification?: UserVerificationRequirement; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy { highWaterMark?: number; size?: QueuingStrategySize; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCAnswerOptions extends RTCOfferAnswerOptions { } interface RTCCertificateExpiration { expires?: number; } interface RTCConfiguration { bundlePolicy?: RTCBundlePolicy; certificates?: RTCCertificate[]; iceCandidatePoolSize?: number; iceServers?: RTCIceServer[]; iceTransportPolicy?: RTCIceTransportPolicy; rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { tone?: string; } interface RTCDataChannelEventInit extends EventInit { channel: RTCDataChannel; } interface RTCDataChannelInit { id?: number; maxPacketLifeTime?: number; maxRetransmits?: number; negotiated?: boolean; ordered?: boolean; protocol?: string; } interface RTCDtlsFingerprint { algorithm?: string; value?: string; } interface RTCEncodedAudioFrameMetadata { contributingSources?: number[]; payloadType?: number; sequenceNumber?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata { contributingSources?: number[]; dependencies?: number[]; frameId?: number; height?: number; payloadType?: number; spatialIndex?: number; synchronizationSource?: number; temporalIndex?: number; timestamp?: number; width?: number; } interface RTCErrorEventInit extends EventInit { error: RTCError; } interface RTCErrorInit { errorDetail: RTCErrorDetailType; httpRequestStatusCode?: number; receivedAlert?: number; sctpCauseCode?: number; sdpLineNumber?: number; sentAlert?: number; } interface RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } interface RTCIceCandidatePair { local?: RTCIceCandidate; remote?: RTCIceCandidate; } interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesReceived?: number; bytesSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; remoteCandidateId: string; requestsReceived?: number; requestsSent?: number; responsesReceived?: number; responsesSent?: number; state: RTCStatsIceCandidatePairState; totalRoundTripTime?: number; transportId: string; } interface RTCIceServer { credential?: string; urls: string | string[]; username?: string; } interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats { audioLevel?: number; bytesReceived?: number; concealedSamples?: number; concealmentEvents?: number; decoderImplementation?: string; estimatedPlayoutTimestamp?: DOMHighResTimeStamp; fecPacketsDiscarded?: number; fecPacketsReceived?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; silentConcealedSamples?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalInterFrameDelay?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; trackIdentifier: string; } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; targetBitrate?: number; totalEncodeTime?: number; totalEncodedBytesTarget?: number; totalPacketSendDelay?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { address?: string | null; errorCode: number; errorText?: string; port?: number | null; url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { candidate?: RTCIceCandidate | null; url?: string | null; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodecCapability[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecCapability extends RTCRtpCodec { } interface RTCRtpCodecParameters extends RTCRtpCodec { payloadType: number; } interface RTCRtpCodingParameters { rid?: string; } interface RTCRtpContributingSource { audioLevel?: number; rtpTimestamp: number; source: number; timestamp: DOMHighResTimeStamp; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { active?: boolean; maxBitrate?: number; maxFramerate?: number; networkPriority?: RTCPriorityType; priority?: RTCPriorityType; scaleResolutionDownBy?: number; } interface RTCRtpHeaderExtensionCapability { uri: string; } interface RTCRtpHeaderExtensionParameters { encrypted?: boolean; id: number; uri: string; } interface RTCRtpParameters { codecs: RTCRtpCodecParameters[]; headerExtensions: RTCRtpHeaderExtensionParameters[]; rtcp: RTCRtcpParameters; } interface RTCRtpReceiveParameters extends RTCRtpParameters { } interface RTCRtpSendParameters extends RTCRtpParameters { degradationPreference?: RTCDegradationPreference; encodings: RTCRtpEncodingParameters[]; transactionId: string; } interface RTCRtpStreamStats extends RTCStats { codecId?: string; kind: string; ssrc: number; transportId?: string; } interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { } interface RTCRtpTransceiverInit { direction?: RTCRtpTransceiverDirection; sendEncodings?: RTCRtpEncodingParameters[]; streams?: MediaStream[]; } interface RTCSentRtpStreamStats extends RTCRtpStreamStats { bytesSent?: number; packetsSent?: number; } interface RTCSessionDescriptionInit { sdp?: string; type: RTCSdpType; } interface RTCSetParameterOptions { } interface RTCStats { id: string; timestamp: DOMHighResTimeStamp; type: RTCStatsType; } interface RTCTrackEventInit extends EventInit { receiver: RTCRtpReceiver; streams?: MediaStream[]; track: MediaStreamTrack; transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; dtlsState: RTCDtlsTransportState; localCertificateId?: string; remoteCertificateId?: string; selectedCandidatePairId?: string; srtpCipher?: string; tlsVersion?: string; } interface ReadableStreamGetReaderOptions { /** * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. * * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. */ mode?: ReadableStreamReaderMode; } interface ReadableStreamReadDoneResult { done: true; value?: T; } interface ReadableStreamReadValueResult { done: false; value: T; } interface ReadableWritablePair { readable: ReadableStream; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface ReportingObserverOptions { buffered?: boolean; types?: string[]; } interface RequestInit { /** A BodyInit object or null to set request's body. */ body?: BodyInit | null; /** A string indicating how the request will interact with the browser's cache to set request's cache. */ cache?: RequestCache; /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */ credentials?: RequestCredentials; /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */ headers?: HeadersInit; /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */ integrity?: string; /** A boolean to set request's keepalive. */ keepalive?: boolean; /** A string to set request's method. */ method?: string; /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */ mode?: RequestMode; priority?: RequestPriority; /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */ redirect?: RequestRedirect; /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */ referrer?: string; /** A referrer policy to set request's referrerPolicy. */ referrerPolicy?: ReferrerPolicy; /** An AbortSignal to set request's signal. */ signal?: AbortSignal | null; /** Can only be null. Used to disassociate request from any Window. */ window?: null; } interface ResizeObserverOptions { box?: ResizeObserverBoxOptions; } interface ResponseInit { headers?: HeadersInit; status?: number; statusText?: string; } interface RsaHashedImportParams extends Algorithm { hash: HashAlgorithmIdentifier; } interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { hash: KeyAlgorithm; } interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } interface RsaKeyAlgorithm extends KeyAlgorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaKeyGenParams extends Algorithm { modulusLength: number; publicExponent: BigInteger; } interface RsaOaepParams extends Algorithm { label?: BufferSource; } interface RsaOtherPrimesInfo { d?: string; r?: string; t?: string; } interface RsaPssParams extends Algorithm { saltLength: number; } interface SVGBoundingBoxOptions { clipped?: boolean; fill?: boolean; markers?: boolean; stroke?: boolean; } interface ScrollIntoViewOptions extends ScrollOptions { block?: ScrollLogicalPosition; inline?: ScrollLogicalPosition; } interface ScrollOptions { behavior?: ScrollBehavior; } interface ScrollToOptions extends ScrollOptions { left?: number; top?: number; } interface SecurityPolicyViolationEventInit extends EventInit { blockedURI?: string; columnNumber?: number; disposition: SecurityPolicyViolationEventDisposition; documentURI: string; effectiveDirective: string; lineNumber?: number; originalPolicy: string; referrer?: string; sample?: string; sourceFile?: string; statusCode: number; violatedDirective: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; slotAssignment?: SlotAssignmentMode; } interface ShareData { files?: File[]; text?: string; title?: string; url?: string; } interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit { error: SpeechSynthesisErrorCode; } interface SpeechSynthesisEventInit extends EventInit { charIndex?: number; charLength?: number; elapsedTime?: number; name?: string; utterance: SpeechSynthesisUtterance; } interface StaticRangeInit { endContainer: Node; endOffset: number; startContainer: Node; startOffset: number; } interface StereoPannerOptions extends AudioNodeOptions { pan?: number; } interface StorageEstimate { quota?: number; usage?: number; } interface StorageEventInit extends EventInit { key?: string | null; newValue?: string | null; oldValue?: string | null; storageArea?: Storage | null; url?: string; } interface StreamPipeOptions { preventAbort?: boolean; preventCancel?: boolean; /** * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * * Errors and closures of the source and destination streams propagate as follows: * * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination. * * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source. * * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error. * * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source. * * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. */ preventClose?: boolean; signal?: AbortSignal; } interface StructuredSerializeOptions { transfer?: Transferable[]; } interface SubmitEventInit extends EventInit { submitter?: HTMLElement | null; } interface TextDecodeOptions { stream?: boolean; } interface TextDecoderOptions { fatal?: boolean; ignoreBOM?: boolean; } interface TextEncoderEncodeIntoResult { read: number; written: number; } interface ToggleEventInit extends EventInit { newState?: string; oldState?: string; } interface TouchEventInit extends EventModifierInit { changedTouches?: Touch[]; targetTouches?: Touch[]; touches?: Touch[]; } interface TouchInit { altitudeAngle?: number; azimuthAngle?: number; clientX?: number; clientY?: number; force?: number; identifier: number; pageX?: number; pageY?: number; radiusX?: number; radiusY?: number; rotationAngle?: number; screenX?: number; screenY?: number; target: EventTarget; touchType?: TouchType; } interface TrackEventInit extends EventInit { track?: TextTrack | null; } interface Transformer { flush?: TransformerFlushCallback; readableType?: undefined; start?: TransformerStartCallback; transform?: TransformerTransformCallback; writableType?: undefined; } interface TransitionEventInit extends EventInit { elapsedTime?: number; propertyName?: string; pseudoElement?: string; } interface UIEventInit extends EventInit { detail?: number; view?: Window | null; /** @deprecated */ which?: number; } interface ULongRange { max?: number; min?: number; } interface UnderlyingByteSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableByteStreamController) => void | PromiseLike; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; start?: (controller: ReadableStreamDefaultController) => any; type?: undefined; } interface UnderlyingSink { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback; start?: UnderlyingSourceStartCallback; type?: ReadableStreamType; } interface ValidityStateFlags { badInput?: boolean; customError?: boolean; patternMismatch?: boolean; rangeOverflow?: boolean; rangeUnderflow?: boolean; stepMismatch?: boolean; tooLong?: boolean; tooShort?: boolean; typeMismatch?: boolean; valueMissing?: boolean; } interface VideoColorSpaceInit { fullRange?: boolean | null; matrix?: VideoMatrixCoefficients | null; primaries?: VideoColorPrimaries | null; transfer?: VideoTransferCharacteristics | null; } interface VideoConfiguration { bitrate: number; colorGamut?: ColorGamut; contentType: string; framerate: number; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoDecoderConfig { codec: string; codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; optimizeForLatency?: boolean; } interface VideoDecoderInit { error: WebCodecsErrorCallback; output: VideoFrameOutputCallback; } interface VideoDecoderSupport { config?: VideoDecoderConfig; supported?: boolean; } interface VideoEncoderConfig { alpha?: AlphaOption; avc?: AvcEncoderConfig; bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; displayHeight?: number; displayWidth?: number; framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; } interface VideoEncoderEncodeOptions { keyFrame?: boolean; } interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; } interface VideoEncoderSupport { config?: VideoEncoderConfig; supported?: boolean; } interface VideoFrameBufferInit { codedHeight: number; codedWidth: number; colorSpace?: VideoColorSpaceInit; displayHeight?: number; displayWidth?: number; duration?: number; format: VideoPixelFormat; layout?: PlaneLayout[]; timestamp: number; visibleRect?: DOMRectInit; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface VideoFrameCopyToOptions { layout?: PlaneLayout[]; rect?: DOMRectInit; } interface VideoFrameInit { alpha?: AlphaOption; displayHeight?: number; displayWidth?: number; duration?: number; timestamp?: number; visibleRect?: DOMRectInit; } interface WaveShaperOptions extends AudioNodeOptions { curve?: number[] | Float32Array; oversample?: OverSampleType; } interface WebGLContextAttributes { alpha?: boolean; antialias?: boolean; depth?: boolean; desynchronized?: boolean; failIfMajorPerformanceCaveat?: boolean; powerPreference?: WebGLPowerPreference; premultipliedAlpha?: boolean; preserveDrawingBuffer?: boolean; stencil?: boolean; } interface WebGLContextEventInit extends EventInit { statusMessage?: string; } interface WebTransportCloseInfo { closeCode?: number; reason?: string; } interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; } interface WebTransportHash { algorithm?: string; value?: BufferSource; } interface WebTransportOptions { allowPooling?: boolean; congestionControl?: WebTransportCongestionControl; requireUnreliable?: boolean; serverCertificateHashes?: WebTransportHash[]; } interface WebTransportSendStreamOptions { sendOrder?: number; } interface WheelEventInit extends MouseEventInit { deltaMode?: number; deltaX?: number; deltaY?: number; deltaZ?: number; } interface WindowPostMessageOptions extends StructuredSerializeOptions { targetOrigin?: string; } interface WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } interface WorkletOptions { credentials?: RequestCredentials; } interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; size?: number | null; type: WriteCommandType; } type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; }; declare var NodeFilter: { readonly FILTER_ACCEPT: 1; readonly FILTER_REJECT: 2; readonly FILTER_SKIP: 3; readonly SHOW_ALL: 0xFFFFFFFF; readonly SHOW_ELEMENT: 0x1; readonly SHOW_ATTRIBUTE: 0x2; readonly SHOW_TEXT: 0x4; readonly SHOW_CDATA_SECTION: 0x8; readonly SHOW_ENTITY_REFERENCE: 0x10; readonly SHOW_ENTITY: 0x20; readonly SHOW_PROCESSING_INSTRUCTION: 0x40; readonly SHOW_COMMENT: 0x80; readonly SHOW_DOCUMENT: 0x100; readonly SHOW_DOCUMENT_TYPE: 0x200; readonly SHOW_DOCUMENT_FRAGMENT: 0x400; readonly SHOW_NOTATION: 0x800; }; type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; }; /** * The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) */ interface ANGLE_instanced_arrays { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ ariaChecked: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ ariaColCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ ariaColIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ ariaCurrent: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ ariaDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ ariaDisabled: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ ariaExpanded: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ ariaHasPopup: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ ariaHidden: string | null; ariaInvalid: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ ariaKeyShortcuts: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ ariaLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ ariaLevel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ ariaLive: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ ariaModal: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ ariaMultiLine: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ ariaMultiSelectable: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ ariaOrientation: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ ariaPlaceholder: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ ariaPosInSet: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ ariaRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ ariaRowCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ ariaRowIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ ariaRowSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ ariaSelected: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ ariaSetSize: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ ariaSort: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ ariaValueMax: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ ariaValueMin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ ariaValueNow: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ ariaValueText: string | null; role: string | null; } /** * A controller object that allows you to abort one or more DOM requests as and when desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { /** * Returns the AbortSignal object associated with this object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) */ readonly signal: AbortSignal; /** * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** * A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { /** * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) */ readonly aborted: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ onabort: ((this: AbortSignal, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ readonly reason: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ throwIfAborted(): void; addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { /** * Returns true if range is collapsed, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) */ readonly collapsed: boolean; /** * Returns range's end node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) */ readonly endContainer: Node; /** * Returns range's end offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) */ readonly endOffset: number; /** * Returns range's start node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) */ readonly startContainer: Node; /** * Returns range's start offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** * A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ fftSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ readonly frequencyBinCount: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ maxDecibels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ minDecibels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ smoothingTimeConstant: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ getByteFrequencyData(array: Uint8Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ getByteTimeDomainData(array: Uint8Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ getFloatFrequencyData(array: Float32Array): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ currentTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ effect: AnimationEffect | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ readonly finished: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ onremove: ((this: Animation, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ readonly playState: AnimationPlayState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ playbackRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ readonly replaceState: AnimationReplaceState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ startTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ timeline: AnimationTimeline | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ cancel(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ commitStyles(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ finish(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ pause(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ persist(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ play(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ reverse(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ updatePlaybackRate(playbackRate: number): void; addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Animation: { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ getComputedTiming(): ComputedEffectTiming; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ getTiming(): EffectTiming; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** * Events providing information related to animations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ readonly animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ readonly elapsedTime: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ readonly currentTime: CSSNumberish | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** * A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ readonly localName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ readonly namespaceURI: string | null; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ readonly ownerElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ readonly prefix: string | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) */ readonly specified: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ value: string; } declare var Attr: { prototype: Attr; new(): Attr; }; /** * A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ readonly duration: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ readonly numberOfChannels: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ readonly sampleRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** * An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ buffer: AudioBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ readonly detune: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ loop: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ loopEnd: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ loopStart: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ readonly playbackRate: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ start(when?: number, offset?: number, duration?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; }; /** * An audio-processing graph built from audio modules linked together, each represented by an AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) */ interface AudioContext extends BaseAudioContext { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ readonly baseLatency: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ readonly outputLatency: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ close(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ createMediaStreamDestination(): MediaStreamAudioDestinationNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ getOutputTimestamp(): AudioTimestamp; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ resume(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ suspend(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioContext: { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; }; /** * AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; /** * The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ readonly forwardX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ readonly forwardY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ readonly forwardZ: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ readonly positionX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ readonly positionY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ readonly positionZ: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ readonly upX: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ readonly upY: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ readonly upZ: AudioParam; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** * A generic interface for representing an audio processing module. Examples include: * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ channelCount: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ channelCountMode: ChannelCountMode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ channelInterpretation: ChannelInterpretation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ readonly context: BaseAudioContext; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ readonly numberOfInputs: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ readonly numberOfOutputs: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ disconnect(): void; disconnect(output: number): void; disconnect(destinationNode: AudioNode): void; disconnect(destinationNode: AudioNode, output: number): void; disconnect(destinationNode: AudioNode, output: number, input: number): void; disconnect(destinationParam: AudioParam): void; disconnect(destinationParam: AudioParam, output: number): void; } declare var AudioNode: { prototype: AudioNode; new(): AudioNode; }; /** * The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */ automationRate: AutomationRate; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ readonly maxValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ readonly minValue: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ value: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ cancelAndHoldAtTime(cancelTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ cancelScheduledValues(cancelTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ linearRampToValueAtTime(value: number, endTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ setValueAtTime(value: number, startTime: number): AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) */ interface AudioProcessingEvent extends Event { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) */ readonly inputBuffer: AudioBuffer; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) */ readonly outputBuffer: AudioBuffer; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ interface AudioScheduledSourceNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ start(when?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ stop(when?: number): void; addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioScheduledSourceNode: { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": Event; } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) */ interface AudioWorkletNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ readonly port: MessagePort; addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioWorkletNode: { prototype: AudioWorkletNode; new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ readonly authenticatorData: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ readonly signature: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) */ readonly audioWorklet: AudioWorklet; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ readonly currentTime: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ readonly destination: AudioDestinationNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ readonly listener: AudioListener; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ readonly sampleRate: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ readonly state: AudioContextState; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ createAnalyser(): AnalyserNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ createBiquadFilter(): BiquadFilterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ createBufferSource(): AudioBufferSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ createChannelMerger(numberOfInputs?: number): ChannelMergerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ createConstantSource(): ConstantSourceNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ createConvolver(): ConvolverNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ createDelay(maxDelayTime?: number): DelayNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ createDynamicsCompressor(): DynamicsCompressorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ createGain(): GainNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ createOscillator(): OscillatorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ createPanner(): PannerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ createStereoPanner(): StereoPannerNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ createWaveShaper(): WaveShaperNode; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BaseAudioContext: { prototype: BaseAudioContext; new(): BaseAudioContext; }; /** * The beforeunload event is fired when the window, the document and its resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { /** @deprecated */ returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** * A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ readonly Q: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ readonly detune: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ readonly frequency: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ readonly gain: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ type: BiquadFilterType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** * A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ readonly size: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ readonly type: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ stream(): ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ readonly data: Blob; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ readonly body: ReadableStream | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ readonly bodyUsed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ json(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ text(): Promise; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { /** * Returns the channel name (as passed to the constructor). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** * Closes the BroadcastChannel object, opening it up to garbage collection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) */ close(): void; /** * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) */ postMessage(message: any): void; addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) */ interface ByteLengthQueuingStrategy extends QueuingStrategy { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** * A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ readonly animationName: string; addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSAnimation: { prototype: CSSAnimation; new(): CSSAnimation; }; /** * A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ readonly containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ readonly containerQuery: string; } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ additiveSymbols: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ fallback: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ negative: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ pad: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ prefix: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ range: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ speakAs: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ suffix: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ symbols: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ readonly basePalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ readonly fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** * Any CSS at-rule that contains other rules nested within it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) */ interface CSSGroupingRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ deleteRule(index: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ interface CSSImageValue extends CSSStyleValue { } declare var CSSImageValue: { prototype: CSSImageValue; new(): CSSImageValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ readonly href: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ readonly media: MediaList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ readonly supportsText: string | null; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** * An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** * An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ appendRule(rule: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ deleteRule(select: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ value: string; } declare var CSSKeywordValue: { prototype: CSSKeywordValue; new(value: string): CSSKeywordValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; interface CSSMathClamp extends CSSMathValue { readonly lower: CSSNumericValue; readonly upper: CSSNumericValue; readonly value: CSSNumericValue; } declare var CSSMathClamp: { prototype: CSSMathClamp; new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ readonly value: CSSNumericValue; } declare var CSSMathInvert: { prototype: CSSMathInvert; new(arg: CSSNumberish): CSSMathInvert; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ readonly values: CSSNumericArray; } declare var CSSMathMax: { prototype: CSSMathMax; new(...args: CSSNumberish[]): CSSMathMax; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ readonly values: CSSNumericArray; } declare var CSSMathMin: { prototype: CSSMathMin; new(...args: CSSNumberish[]): CSSMathMin; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ readonly value: CSSNumericValue; } declare var CSSMathNegate: { prototype: CSSMathNegate; new(arg: CSSNumberish): CSSMathNegate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ readonly values: CSSNumericArray; } declare var CSSMathProduct: { prototype: CSSMathProduct; new(...args: CSSNumberish[]): CSSMathProduct; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ readonly values: CSSNumericArray; } declare var CSSMathSum: { prototype: CSSMathSum; new(...args: CSSNumberish[]): CSSMathSum; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ readonly operator: CSSMathOperator; } declare var CSSMathValue: { prototype: CSSMathValue; new(): CSSMathValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ matrix: DOMMatrix; } declare var CSSMatrixComponent: { prototype: CSSMatrixComponent; new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; }; /** * A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ readonly media: MediaList; } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** * An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ readonly namespaceURI: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; } declare var CSSNumericArray: { prototype: CSSNumericArray; new(): CSSNumericArray; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ add(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ div(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ equals(...value: CSSNumberish[]): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ max(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ min(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ mul(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ sub(...values: CSSNumberish[]): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ to(unit: string): CSSUnitValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ toSum(...units: string[]): CSSMathSum; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ type(): CSSNumericType; } declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; /** * CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ readonly style: CSSStyleDeclaration; } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ length: CSSPerspectiveValue; } declare var CSSPerspective: { prototype: CSSPerspective; new(length: CSSPerspectiveValue): CSSPerspective; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ readonly inherits: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ readonly initialValue: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ readonly syntax: string; } declare var CSSPropertyRule: { prototype: CSSPropertyRule; new(): CSSPropertyRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ angle: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ x: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ y: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ z: CSSNumberish; } declare var CSSRotate: { prototype: CSSRotate; new(angle: CSSNumericValue): CSSRotate; new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; }; /** * A single CSS rule. There are several types of rules, listed in the Type constants section below. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ readonly parentStyleSheet: CSSStyleSheet | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) */ readonly type: number; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; } declare var CSSRule: { prototype: CSSRule; new(): CSSRule; readonly STYLE_RULE: 1; readonly CHARSET_RULE: 2; readonly IMPORT_RULE: 3; readonly MEDIA_RULE: 4; readonly FONT_FACE_RULE: 5; readonly PAGE_RULE: 6; readonly NAMESPACE_RULE: 10; readonly KEYFRAMES_RULE: 7; readonly KEYFRAME_RULE: 8; readonly SUPPORTS_RULE: 12; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; }; /** * A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ x: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ y: CSSNumberish; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ z: CSSNumberish; } declare var CSSScale: { prototype: CSSScale; new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ ax: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ ay: CSSNumericValue; } declare var CSSSkew: { prototype: CSSSkew; new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ ax: CSSNumericValue; } declare var CSSSkewX: { prototype: CSSSkewX; new(ax: CSSNumericValue): CSSSkewX; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ ay: CSSNumericValue; } declare var CSSSkewY: { prototype: CSSSkewY; new(ay: CSSNumericValue): CSSSkewY; }; /** * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ alignContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ animation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ animationComposition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ animationDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ animationDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ animationDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ animationFillMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ animationIterationCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ animationPlayState: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ animationTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ appearance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ aspectRatio: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ backdropFilter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ backfaceVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ background: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ backgroundAttachment: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ backgroundBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ backgroundClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ backgroundColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ backgroundImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ backgroundOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ backgroundPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ backgroundPositionX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ backgroundPositionY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ backgroundRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */ baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ border: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ borderBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ borderBlockColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ borderBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ borderBlockEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ borderBlockEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ borderBlockEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ borderBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ borderBlockStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ borderBlockStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ borderBlockStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ borderBlockStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ borderBlockWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ borderBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ borderBottomColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ borderBottomLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ borderBottomRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ borderBottomStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ borderBottomWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ borderCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ borderColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ borderEndEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ borderEndStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ borderImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ borderImageOutset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ borderImageRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ borderImageSlice: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ borderImageSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ borderImageWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ borderInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ borderInlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ borderInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ borderInlineEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ borderInlineEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ borderInlineEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ borderInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ borderInlineStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ borderInlineStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ borderInlineStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ borderInlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ borderInlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ borderLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ borderLeftColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ borderLeftStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ borderLeftWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ borderRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ borderRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ borderRightColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ borderRightStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ borderRightWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ borderSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ borderStartEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ borderStartStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ borderStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ borderTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ borderTopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ borderTopLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ borderTopRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ borderTopStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ borderTopWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ boxSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ breakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ breakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ breakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ captionSide: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ caretColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ clear: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) */ clip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ clipPath: string; clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; colorInterpolation: string; colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ colorScheme: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ columnCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ columnFill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ columnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ columnRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ columnRuleColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ columnRuleStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ columnRuleWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ columnSpan: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ columnWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ columns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ contain: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */ containIntrinsicBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ containIntrinsicHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */ containIntrinsicInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ containIntrinsicSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ containIntrinsicWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ container: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ containerType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ content: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ counterIncrement: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; cx: string; cy: string; d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ display: string; dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; fill: string; fillOpacity: string; fillRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ filter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ flex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ flexBasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ flexDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ flexFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ flexGrow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ flexShrink: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; floodColor: string; floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ fontFeatureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ fontKerning: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ fontOpticalSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ fontPalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ fontSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ fontSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ fontStretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ fontStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ fontSynthesis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ fontSynthesisSmallCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ fontSynthesisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ fontSynthesisWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ fontVariant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ fontVariantAlternates: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ fontVariantCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ fontVariantEastAsian: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ fontVariantLigatures: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ fontVariantNumeric: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ fontVariantPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ fontVariationSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ fontWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ forcedColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ gap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ grid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ gridArea: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ gridAutoColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ gridAutoFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ gridAutoRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ gridColumn: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ gridRow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ gridRowStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ gridTemplate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ gridTemplateAreas: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ gridTemplateColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ gridTemplateRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ height: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ hyphenateCharacter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ hyphens: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) */ imageOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ imageRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ inlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ inset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ insetBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ insetBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ insetBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ insetInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ insetInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ insetInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ isolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ justifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ justifyItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ justifySelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ left: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ lineHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ listStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ listStyleImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ listStylePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ listStyleType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ margin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ marginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ marginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ marginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ marginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ marginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ marginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ marginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ marginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ marginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ mask: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ maskClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ maskComposite: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ maskImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ maskMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ maskOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ maskPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ maskRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ maskSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ maskType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ mathDepth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ mathStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ maxBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ maxHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ maxInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ maxWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ minBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ minHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ minInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ minWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ mixBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ objectFit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ objectPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ offset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ offsetAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ offsetDistance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ offsetPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ offsetPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ offsetRotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ opacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ order: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ orphans: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ outline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ outlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ outlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ outlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ outlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ overflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ overflowAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ overflowClipMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ overflowWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ overflowX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ overflowY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ overscrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ overscrollBehaviorBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ overscrollBehaviorInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ overscrollBehaviorX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ overscrollBehaviorY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ padding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ paddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ paddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ paddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ paddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ paddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ paddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ paddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ paddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ paddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ perspective: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ perspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ placeContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ placeItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ placeSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ pointerEvents: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ position: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ right: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ rotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ rowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; rx: string; ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ scrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ scrollMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ scrollMarginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ scrollMarginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ scrollMarginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ scrollMarginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ scrollMarginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ scrollMarginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ scrollMarginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ scrollMarginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ scrollMarginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ scrollMarginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ scrollPadding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ scrollPaddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ scrollPaddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ scrollPaddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ scrollPaddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ scrollPaddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ scrollPaddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ scrollPaddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ scrollPaddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ scrollPaddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ scrollPaddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ scrollSnapAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ scrollSnapStop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ scrollSnapType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ scrollbarColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ scrollbarGutter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ scrollbarWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ shapeImageThreshold: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ shapeMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ shapeOutside: string; shapeRendering: string; stopColor: string; stopOpacity: string; stroke: string; strokeDasharray: string; strokeDashoffset: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeOpacity: string; strokeWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ tabSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ tableLayout: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ textAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ textAlignLast: string; textAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ textDecoration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ textDecorationColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ textDecorationLine: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ textDecorationSkipInk: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ textDecorationStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ textDecorationThickness: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ textEmphasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ textEmphasisColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ textEmphasisPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ textEmphasisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ textIndent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ textOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ textOverflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ textRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ textShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ textTransform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ textUnderlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ touchAction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ transform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ transformBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ transformOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ transformStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ transition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ transitionDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ transitionDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ transitionProperty: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ transitionTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ translate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ visibility: string; /** * @deprecated This is a legacy alias of \`alignContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ webkitAlignContent: string; /** * @deprecated This is a legacy alias of \`alignItems\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ webkitAlignItems: string; /** * @deprecated This is a legacy alias of \`alignSelf\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ webkitAlignSelf: string; /** * @deprecated This is a legacy alias of \`animation\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ webkitAnimation: string; /** * @deprecated This is a legacy alias of \`animationDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ webkitAnimationDelay: string; /** * @deprecated This is a legacy alias of \`animationDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ webkitAnimationDirection: string; /** * @deprecated This is a legacy alias of \`animationDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ webkitAnimationDuration: string; /** * @deprecated This is a legacy alias of \`animationFillMode\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ webkitAnimationFillMode: string; /** * @deprecated This is a legacy alias of \`animationIterationCount\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ webkitAnimationIterationCount: string; /** * @deprecated This is a legacy alias of \`animationName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ webkitAnimationName: string; /** * @deprecated This is a legacy alias of \`animationPlayState\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ webkitAnimationPlayState: string; /** * @deprecated This is a legacy alias of \`animationTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ webkitAnimationTimingFunction: string; /** * @deprecated This is a legacy alias of \`appearance\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ webkitAppearance: string; /** * @deprecated This is a legacy alias of \`backfaceVisibility\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ webkitBackfaceVisibility: string; /** * @deprecated This is a legacy alias of \`backgroundClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ webkitBackgroundClip: string; /** * @deprecated This is a legacy alias of \`backgroundOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ webkitBackgroundOrigin: string; /** * @deprecated This is a legacy alias of \`backgroundSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ webkitBackgroundSize: string; /** * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ webkitBorderBottomLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ webkitBorderBottomRightRadius: string; /** * @deprecated This is a legacy alias of \`borderRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ webkitBorderRadius: string; /** * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ webkitBorderTopLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderTopRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ webkitBorderTopRightRadius: string; /** * @deprecated This is a legacy alias of \`boxAlign\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) */ webkitBoxAlign: string; /** * @deprecated This is a legacy alias of \`boxFlex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) */ webkitBoxFlex: string; /** * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) */ webkitBoxOrdinalGroup: string; /** * @deprecated This is a legacy alias of \`boxOrient\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) */ webkitBoxOrient: string; /** * @deprecated This is a legacy alias of \`boxPack\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) */ webkitBoxPack: string; /** * @deprecated This is a legacy alias of \`boxShadow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ webkitBoxShadow: string; /** * @deprecated This is a legacy alias of \`boxSizing\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ webkitBoxSizing: string; /** * @deprecated This is a legacy alias of \`filter\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ webkitFilter: string; /** * @deprecated This is a legacy alias of \`flex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ webkitFlex: string; /** * @deprecated This is a legacy alias of \`flexBasis\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ webkitFlexBasis: string; /** * @deprecated This is a legacy alias of \`flexDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ webkitFlexDirection: string; /** * @deprecated This is a legacy alias of \`flexFlow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ webkitFlexFlow: string; /** * @deprecated This is a legacy alias of \`flexGrow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ webkitFlexGrow: string; /** * @deprecated This is a legacy alias of \`flexShrink\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ webkitFlexShrink: string; /** * @deprecated This is a legacy alias of \`flexWrap\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ webkitFlexWrap: string; /** * @deprecated This is a legacy alias of \`justifyContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ webkitJustifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */ webkitLineClamp: string; /** * @deprecated This is a legacy alias of \`mask\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ webkitMask: string; /** * @deprecated This is a legacy alias of \`maskBorder\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) */ webkitMaskBoxImage: string; /** * @deprecated This is a legacy alias of \`maskBorderOutset\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) */ webkitMaskBoxImageOutset: string; /** * @deprecated This is a legacy alias of \`maskBorderRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) */ webkitMaskBoxImageRepeat: string; /** * @deprecated This is a legacy alias of \`maskBorderSlice\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) */ webkitMaskBoxImageSlice: string; /** * @deprecated This is a legacy alias of \`maskBorderSource\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) */ webkitMaskBoxImageSource: string; /** * @deprecated This is a legacy alias of \`maskBorderWidth\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) */ webkitMaskBoxImageWidth: string; /** * @deprecated This is a legacy alias of \`maskClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ webkitMaskClip: string; /** * @deprecated This is a legacy alias of \`maskComposite\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ webkitMaskComposite: string; /** * @deprecated This is a legacy alias of \`maskImage\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ webkitMaskImage: string; /** * @deprecated This is a legacy alias of \`maskOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ webkitMaskOrigin: string; /** * @deprecated This is a legacy alias of \`maskPosition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ webkitMaskPosition: string; /** * @deprecated This is a legacy alias of \`maskRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ webkitMaskRepeat: string; /** * @deprecated This is a legacy alias of \`maskSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ webkitMaskSize: string; /** * @deprecated This is a legacy alias of \`order\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ webkitOrder: string; /** * @deprecated This is a legacy alias of \`perspective\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ webkitPerspective: string; /** * @deprecated This is a legacy alias of \`perspectiveOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ webkitPerspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ webkitTextFillColor: string; /** * @deprecated This is a legacy alias of \`textSizeAdjust\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) */ webkitTextSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ webkitTextStroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ webkitTextStrokeColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ webkitTextStrokeWidth: string; /** * @deprecated This is a legacy alias of \`transform\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ webkitTransform: string; /** * @deprecated This is a legacy alias of \`transformOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ webkitTransformOrigin: string; /** * @deprecated This is a legacy alias of \`transformStyle\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ webkitTransformStyle: string; /** * @deprecated This is a legacy alias of \`transition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ webkitTransition: string; /** * @deprecated This is a legacy alias of \`transitionDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ webkitTransitionDelay: string; /** * @deprecated This is a legacy alias of \`transitionDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ webkitTransitionDuration: string; /** * @deprecated This is a legacy alias of \`transitionProperty\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ webkitTransitionProperty: string; /** * @deprecated This is a legacy alias of \`transitionTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ webkitTransitionTimingFunction: string; /** * @deprecated This is a legacy alias of \`userSelect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ webkitUserSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ whiteSpace: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ widows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ width: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ willChange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; /** @deprecated */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; x: string; y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ getPropertyValue(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ item(index: number): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ removeProperty(property: string): string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** * CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ readonly style: CSSStyleDeclaration; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** * A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ readonly cssRules: CSSRuleList; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ readonly ownerRule: CSSRule | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) */ readonly rules: CSSRuleList; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) */ addRule(selector?: string, style?: string, index?: number): number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ deleteRule(index: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ insertRule(rule: string, index?: number): number; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) */ removeRule(index?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ replace(text: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { toString(): string; } declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** * An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ toMatrix(): DOMMatrix; toString(): string; } declare var CSSTransformComponent: { prototype: CSSTransformComponent; new(): CSSTransformComponent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; } declare var CSSTransformValue: { prototype: CSSTransformValue; new(transforms: CSSTransformComponent[]): CSSTransformValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ readonly transitionProperty: string; addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CSSTransition: { prototype: CSSTransition; new(): CSSTransition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ x: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ y: CSSNumericValue; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ z: CSSNumericValue; } declare var CSSTranslate: { prototype: CSSTranslate; new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ readonly unit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ value: number; } declare var CSSUnitValue: { prototype: CSSUnitValue; new(value: number, unit: string): CSSUnitValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; new(members: CSSUnparsedSegment[]): CSSUnparsedValue; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ readonly fallback: CSSUnparsedValue | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ variable: string; } declare var CSSVariableReferenceValue: { prototype: CSSVariableReferenceValue; new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; }; /** * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ add(request: RequestInfo | URL): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ addAll(requests: RequestInfo[]): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The storage for Cache objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ delete(cacheName: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ has(cacheName: string): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ keys(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ readonly canvas: HTMLCanvasElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ requestFrame(): void; addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CanvasCaptureMediaStreamTrack: { prototype: CanvasCaptureMediaStreamTrack; new(): CanvasCaptureMediaStreamTrack; }; interface CanvasCompositing { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ globalAlpha: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ drawImage(image: CanvasImageSource, dx: number, dy: number): void; drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void; drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void; } interface CanvasDrawPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ beginPath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ fillStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ strokeStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ filter: string; } /** * An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { /** * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end. * * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imagedata: ImageData): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ putImageData(imagedata: ImageData, dx: number, dy: number): void; putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void; } interface CanvasImageSmoothing { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ imageSmoothingEnabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ closePath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ lineTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ moveTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ lineCap: CanvasLineCap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ lineDashOffset: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ lineJoin: CanvasLineJoin; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ lineWidth: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ miterLimit: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ setLineDash(segments: number[]): void; } /** * An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ interface CanvasPattern { /** * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ clearRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ fillRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ strokeRect(x: number, y: number, w: number, h: number): void; } /** * The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ getContextAttributes(): CanvasRenderingContext2DSettings; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ shadowColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ shadowOffsetX: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ shadowOffsetY: number; } interface CanvasState { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ save(): void; } interface CanvasText { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ fillText(text: string, x: number, y: number, maxWidth?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ measureText(text: string): TextMetrics; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ direction: CanvasDirection; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ fontStretch: CanvasFontStretch; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ textRendering: CanvasTextRendering; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ wordSpacing: string; } interface CanvasTransform { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ getTransform(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ resetTransform(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ rotate(angle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ scale(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ transform(a: number, b: number, c: number, d: number, e: number, f: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ translate(x: number, y: number): void; } interface CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** * The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) */ interface ChannelMergerNode extends AudioNode { } declare var ChannelMergerNode: { prototype: ChannelMergerNode; new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode; }; /** * The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) */ interface ChannelSplitterNode extends AudioNode { } declare var ChannelSplitterNode: { prototype: ChannelSplitterNode; new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode; }; /** * The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ data: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ readonly length: number; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ appendData(data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ deleteData(offset: number, count: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ insertData(offset: number, data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ replaceData(offset: number, count: number, data: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ substringData(offset: number, count: number): string; } declare var CharacterData: { prototype: CharacterData; new(): CharacterData; }; interface ChildNode extends Node { /** * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) */ after(...nodes: (Node | string)[]): void; /** * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) */ before(...nodes: (Node | string)[]): void; /** * Removes node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) */ remove(): void; /** * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes. * * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ read(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ readText(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ write(data: ClipboardItems): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** * Events providing information related to modification of the clipboard, that is cut, copy, and paste events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ getType(type: string): Promise; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; }; /** * A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { /** * Returns the WebSocket connection close code provided by the server. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) */ readonly code: number; /** * Returns the WebSocket connection close reason provided by the server. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) */ readonly reason: string; /** * Returns true if the connection closed cleanly; false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** * Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) */ interface Comment extends CharacterData { } declare var Comment: { prototype: Comment; new(data?: string): Comment; }; /** * The DOM CompositionEvent represents events that occur due to the user indirectly entering text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ interface CompositionEvent extends UIEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ readonly data: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { } declare var CompressionStream: { prototype: CompressionStream; new(format: CompressionFormat): CompressionStream; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ readonly offset: AudioParam; addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ConstantSourceNode: { prototype: ConstantSourceNode; new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; }; /** * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ buffer: AudioBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** * This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ create(options?: CredentialCreationOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ get(options?: CredentialRequestOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** * Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) */ readonly subtle: SubtleCrypto; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ getRandomValues(array: T): T; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ readonly algorithm: KeyAlgorithm; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ readonly extractable: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ readonly type: KeyType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { /** * Returns any custom data event was created with. Typically used for synthetic events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ readonly detail: T; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) */ interface DOMException extends Error { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) */ readonly code: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ readonly message: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ readonly name: string; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; } declare var DOMException: { prototype: DOMException; new(message?: string, name?: string): DOMException; readonly INDEX_SIZE_ERR: 1; readonly DOMSTRING_SIZE_ERR: 2; readonly HIERARCHY_REQUEST_ERR: 3; readonly WRONG_DOCUMENT_ERR: 4; readonly INVALID_CHARACTER_ERR: 5; readonly NO_DATA_ALLOWED_ERR: 6; readonly NO_MODIFICATION_ALLOWED_ERR: 7; readonly NOT_FOUND_ERR: 8; readonly NOT_SUPPORTED_ERR: 9; readonly INUSE_ATTRIBUTE_ERR: 10; readonly INVALID_STATE_ERR: 11; readonly SYNTAX_ERR: 12; readonly INVALID_MODIFICATION_ERR: 13; readonly NAMESPACE_ERR: 14; readonly INVALID_ACCESS_ERR: 15; readonly VALIDATION_ERR: 16; readonly TYPE_MISMATCH_ERR: 17; readonly SECURITY_ERR: 18; readonly NETWORK_ERR: 19; readonly ABORT_ERR: 20; readonly URL_MISMATCH_ERR: 21; readonly QUOTA_EXCEEDED_ERR: 22; readonly TIMEOUT_ERR: 23; readonly INVALID_NODE_TYPE_ERR: 24; readonly DATA_CLONE_ERR: 25; }; /** * An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ createHTMLDocument(title?: string): Document; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { a: number; b: number; c: number; d: number; e: number; f: number; m11: number; m12: number; m13: number; m14: number; m21: number; m22: number; m23: number; m24: number; m31: number; m32: number; m33: number; m34: number; m41: number; m42: number; m43: number; m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; setMatrixValue(transformList: string): DOMMatrix; skewXSelf(sx?: number): DOMMatrix; skewYSelf(sy?: number): DOMMatrix; translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix; } declare var DOMMatrix: { prototype: DOMMatrix; new(init?: string | number[]): DOMMatrix; fromFloat32Array(array32: Float32Array): DOMMatrix; fromFloat64Array(array64: Float64Array): DOMMatrix; fromMatrix(other?: DOMMatrixInit): DOMMatrix; }; type SVGMatrix = DOMMatrix; declare var SVGMatrix: typeof DOMMatrix; type WebKitCSSMatrix = DOMMatrix; declare var WebKitCSSMatrix: typeof DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */ readonly a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */ readonly b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */ readonly c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */ readonly d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */ readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */ readonly f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */ readonly m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */ readonly m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */ readonly m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */ readonly m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */ readonly m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */ readonly m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */ readonly m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */ readonly m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */ readonly m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */ readonly m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */ readonly m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */ readonly m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */ readonly m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */ readonly m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */ readonly m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */ readonly m44: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform) */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; toJSON(): any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ translate(tx?: number, ty?: number, tz?: number): DOMMatrix; toString(): string; } declare var DOMMatrixReadOnly: { prototype: DOMMatrixReadOnly; new(init?: string | number[]): DOMMatrixReadOnly; fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly; fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly; fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly; }; /** * Provides the ability to parse XML or HTML source code from a string into a DOM Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) */ interface DOMParser { /** * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser). * * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error. * * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8. * * Values other than the above for type will cause a TypeError exception to be thrown. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ w: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ readonly w: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ readonly y: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; toJSON(): any; } declare var DOMQuad: { prototype: DOMQuad; new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad; fromQuad(other?: DOMQuadInit): DOMQuad; fromRect(other?: DOMRectInit): DOMQuad; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { height: number; width: number; x: number; y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; interface DOMRectList { readonly length: number; item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ readonly bottom: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ readonly height: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ readonly left: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ readonly right: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ readonly top: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ readonly width: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ readonly x: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** * A type returned by some APIs which contains a list of DOMString (strings). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { /** * Returns the number of strings in strings. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) */ readonly length: number; /** * Returns true if strings contains string, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) */ contains(string: string): boolean; /** * Returns the string with index index from strings. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** * Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** * A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { /** * Returns the number of tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) */ readonly length: number; /** * Returns the associated set as string. * * Can be set, to change the associated attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) */ value: string; toString(): string; /** * Adds all arguments passed, except those already present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) */ add(...tokens: string[]): void; /** * Returns true if token is present, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) */ contains(token: string): boolean; /** * Returns the token with index index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) */ item(index: number): string | null; /** * Removes arguments passed, if they are present. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) */ remove(...tokens: string[]): void; /** * Replaces token with newToken. * * Returns true if token was replaced with newToken, and false otherwise. * * Throws a "SyntaxError" DOMException if one of the arguments is the empty string. * * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) */ replace(token: string, newToken: string): boolean; /** * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise. * * Throws a TypeError if the associated attribute has no supported tokens defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) */ supports(token: string): boolean; /** * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()). * * Returns true if token is now present, and false otherwise. * * Throws a "SyntaxError" DOMException if token is empty. * * Throws an "InvalidCharacterError" DOMException if token contains any spaces. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) */ toggle(token: string, force?: boolean): boolean; forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void; [index: number]: string; } declare var DOMTokenList: { prototype: DOMTokenList; new(): DOMTokenList; }; /** * Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { /** * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail. * * Can be set, to change the selected operation. * * The possible values are "none", "copy", "link", and "move". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) */ dropEffect: "none" | "copy" | "link" | "move"; /** * Returns the kinds of operations that are to be allowed. * * Can be set (during the dragstart event), to change the allowed operations. * * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized", * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** * Returns a FileList of the files being dragged, if any. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) */ readonly files: FileList; /** * Returns a DataTransferItemList object, with the drag data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) */ readonly items: DataTransferItemList; /** * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) */ readonly types: ReadonlyArray; /** * Removes the data of the specified formats. Removes all data if the argument is omitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) */ clearData(format?: string): void; /** * Returns the specified data. If there is no such data, returns the empty string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) */ getData(format: string): string; /** * Adds the specified data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) */ setData(format: string, data: string): void; /** * Uses the given element to update the drag feedback, replacing any previously specified feedback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** * One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { /** * Returns the drag data item kind, one of: "string", "file". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) */ readonly kind: string; /** * Returns the drag data item type string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) */ readonly type: string; /** * Returns a File object, if the drag data item kind is File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) */ getAsFile(): File | null; /** * Invokes the callback with the string data as the argument, if the drag data item kind is text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) */ getAsString(callback: FunctionStringCallback | null): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** * A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { /** * Returns the number of items in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) */ readonly length: number; /** * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** * Removes all the entries in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) */ clear(): void; /** * Removes the indexth entry in the drag data store. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { } declare var DecompressionStream: { prototype: DecompressionStream; new(format: CompressionFormat): DecompressionStream; }; /** * A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) */ interface DelayNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ interface DeviceMotionEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ readonly acceleration: DeviceMotionEventAcceleration | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ readonly interval: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ readonly x: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ readonly y: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ readonly z: number | null; } /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ readonly alpha: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ readonly beta: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ readonly gamma: number | null; } /** * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ interface DeviceOrientationEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ readonly absolute: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ readonly alpha: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ readonly beta: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ readonly gamma: number | null; } declare var DeviceOrientationEvent: { prototype: DeviceOrientationEvent; new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; }; interface DocumentEventMap extends GlobalEventHandlersEventMap { "DOMContentLoaded": Event; "fullscreenchange": Event; "fullscreenerror": Event; "pointerlockchange": Event; "pointerlockerror": Event; "readystatechange": Event; "visibilitychange": Event; } /** * Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * Sets or gets the URL for the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) */ readonly URL: string; /** * Sets or gets the color of all active links in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) */ alinkColor: string; /** * Returns a reference to the collection of elements contained by the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) */ readonly all: HTMLAllCollection; /** * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) */ readonly anchors: HTMLCollectionOf; /** * Retrieves a collection of all applet objects in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) */ readonly applets: HTMLCollection; /** * Deprecated. Sets or retrieves a value that indicates the background color behind the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) */ bgColor: string; /** * Specifies the beginning and end of the document body. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) */ body: HTMLElement; /** * Returns document's encoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly characterSet: string; /** * Gets or sets the character set used to encode the object. * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly charset: string; /** * Gets a value that indicates whether standards-compliant mode is switched on for the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) */ readonly compatMode: string; /** * Returns document's content type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) */ readonly contentType: string; /** * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned. * * Can be set, to add a new cookie to the element's set of HTTP cookies. * * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) */ cookie: string; /** * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing. * * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) */ readonly currentScript: HTMLOrSVGScriptElement | null; /** * Returns the Window object of the active document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** * Sets or gets a value that indicates whether the document can be edited. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) */ designMode: string; /** * Sets or retrieves a value that indicates the reading order of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) */ dir: string; /** * Gets an object representing the document type declaration associated with the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) */ readonly doctype: DocumentType | null; /** * Gets a reference to the root node of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) */ readonly documentElement: HTMLElement; /** * Returns document's URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) */ readonly documentURI: string; /** * Sets or gets the security domain of the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) */ domain: string; /** * Retrieves a collection of all embed objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) */ readonly embeds: HTMLCollectionOf; /** * Sets or gets the foreground (text) color of the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) */ fgColor: string; /** * Retrieves a collection, in source order, of all form objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) */ readonly fullscreen: boolean; /** * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) */ readonly fullscreenEnabled: boolean; /** * Returns the head element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) */ readonly head: HTMLHeadElement; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ readonly hidden: boolean; /** * Retrieves a collection, in source order, of img objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) */ readonly images: HTMLCollectionOf; /** * Gets the implementation object of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) */ readonly implementation: DOMImplementation; /** * Returns the character encoding used to create the webpage that is loaded into the document object. * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly inputEncoding: string; /** * Gets the date that the page was last modified, if the page supplies one. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) */ readonly lastModified: string; /** * Sets or gets the color of the document links. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) */ linkColor: string; /** * Retrieves a collection of all a objects that specify the href property and all area objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) */ readonly links: HTMLCollectionOf; /** * Contains information about the current URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; set location(href: string | Location); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ onfullscreenerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ onpointerlockchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** * Fires when the state of the object has changed. * @param ev The event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */ onreadystatechange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ readonly pictureInPictureEnabled: boolean; /** * Return an HTMLCollection of the embed elements in the Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) */ readonly plugins: HTMLCollectionOf; /** * Retrieves a value that indicates the current state of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) */ readonly readyState: DocumentReadyState; /** * Gets the URL of the location that referred the user to the current page. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) */ readonly referrer: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) */ readonly rootElement: SVGSVGElement | null; /** * Retrieves a collection of all script objects in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) */ readonly scripts: HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ readonly scrollingElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ readonly timeline: DocumentTimeline; /** * Contains the title of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) */ title: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ readonly visibilityState: DocumentVisibilityState; /** * Sets or gets the color of the links that the user has visited. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) */ vlinkColor: string; /** * Moves node from another document and returns it. * * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents) */ captureEvents(): void; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) */ clear(): void; /** * Closes an output stream and forces the sent data to display. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) */ close(): void; /** * Creates an attribute object with a specified name. * @param name String that sets the attribute object's name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** * Returns a CDATASection node whose data is data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) */ createCDATASection(data: string): CDATASection; /** * Creates a comment object with the specified data. * @param data Sets the comment object's data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) */ createComment(data: string): Comment; /** * Creates a new document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) */ createDocumentFragment(): DocumentFragment; /** * Creates an instance of the element for the specified tag. * @param tagName The name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. * * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. * * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: * * localName does not match the QName production. * Namespace prefix is not null and namespace is the empty string. * Namespace prefix is "xml" and namespace is not the XML namespace. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". * * When supplied, options's is can be used to create a customized built-in element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement; createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element; createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface: "BlobEvent"): BlobEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent; createEvent(eventInterface: "FormDataEvent"): FormDataEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent; createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent; createEvent(eventInterface: "MessageEvent"): MessageEvent; createEvent(eventInterface: "MouseEvent"): MouseEvent; createEvent(eventInterface: "MouseEvents"): MouseEvent; createEvent(eventInterface: "MutationEvent"): MutationEvent; createEvent(eventInterface: "MutationEvents"): MutationEvent; createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent; createEvent(eventInterface: "PointerEvent"): PointerEvent; createEvent(eventInterface: "PopStateEvent"): PopStateEvent; createEvent(eventInterface: "ProgressEvent"): ProgressEvent; createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent; createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent; createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "SubmitEvent"): SubmitEvent; createEvent(eventInterface: "ToggleEvent"): ToggleEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface: "WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) */ createRange(): Range; /** * Creates a text string from the specified value. * @param data String that specifies the nodeValue property of the text node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) */ createTextNode(data: string): Text; /** * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. * @param root The root element or node to start traversing on. * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. * @param filter A custom NodeFilter function to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * Executes a command on the current document, current selection, or the given range. * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. * @param showUI Display the user interface, defaults to false. * @param value Value to assign. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) */ exitFullscreen(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ exitPictureInPicture(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ exitPointerLock(): void; /** * Returns a reference to the first object with the specified value of the ID attribute. * @param elementId String that specifies the ID value. */ getElementById(elementId: string): HTMLElement | null; /** * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * Gets a collection of objects based on the value of the NAME or ID attribute. * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) */ getElementsByName(elementName: string): NodeListOf; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. * * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. * * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. * * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) */ getSelection(): Selection | null; /** * Gets a value indicating whether the object currently has focus. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) */ hasFocus(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ hasStorageAccess(): Promise; /** * Returns a copy of node. If deep is true, the copy also includes the node's descendants. * * If node is a document or a shadow root, throws a "NotSupportedError" DOMException. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ importNode(node: T, deep?: boolean): T; /** * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. * @param url Specifies a MIME type for the document. * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. * @param replace Specifies whether the existing entry for the document is replaced in the history list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. * @param commandId Specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) */ queryCommandEnabled(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm) */ queryCommandIndeterm(commandId: string): boolean; /** * Returns a Boolean value that indicates the current state of the command. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) */ queryCommandState(commandId: string): boolean; /** * Returns a Boolean value that indicates whether the current command is supported on the current range. * @param commandId Specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) */ queryCommandSupported(commandId: string): boolean; /** * Returns the current value of the document, range, or current selection for the given command. * @param commandId String that specifies a command identifier. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue) */ queryCommandValue(commandId: string): string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents) */ releaseEvents(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; /** * Writes one or more HTML expressions to a document in the specified window. * @param content Specifies the text and HTML tags to write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ write(...text: string[]): void; /** * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. * @param content The text and HTML tags to write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) */ writeln(...text: string[]): void; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Document: { prototype: Document; new(): Document; }; /** * A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; } declare var DocumentFragment: { prototype: DocumentFragment; new(): DocumentFragment; }; interface DocumentOrShadowRoot { /** * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document. * * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document. * * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) */ readonly activeElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ adoptedStyleSheets: CSSStyleSheet[]; /** * Returns document's fullscreen element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) */ readonly fullscreenElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ readonly pictureInPictureElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ readonly pointerLockElement: Element | null; /** * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */ readonly styleSheets: StyleSheetList; /** * Returns the element for the specified x coordinate and the specified y coordinate. * @param x The x-offset * @param y The y-offset */ elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ getAnimations(): Animation[]; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** * A Node containing a doctype. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ readonly name: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ readonly publicId: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ readonly systemId: string; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** * A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { /** * Returns the DataTransfer object for the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** * Inherits properties from its parent, AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ readonly attack: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ readonly knee: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ readonly ratio: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ readonly reduction: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ readonly release: AudioParam; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ interface EXT_color_buffer_float { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */ interface EXT_color_buffer_half_float { readonly RGBA16F_EXT: 0x881A; readonly RGB16F_EXT: 0x881B; readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211; readonly UNSIGNED_NORMALIZED_EXT: 0x8C17; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ interface EXT_float_blend { } /** * The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) */ interface EXT_frag_depth { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ interface EXT_shader_texture_lod { } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ interface EXT_texture_compression_bptc { readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C; readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D; readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E; readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ interface EXT_texture_compression_rgtc { readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB; readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC; readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD; readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE; } /** * The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ interface EXT_texture_norm16 { readonly R16_EXT: 0x822A; readonly RG16_EXT: 0x822C; readonly RGB16_EXT: 0x8054; readonly RGBA16_EXT: 0x805B; readonly R16_SNORM_EXT: 0x8F98; readonly RG16_SNORM_EXT: 0x8F99; readonly RGB16_SNORM_EXT: 0x8F9A; readonly RGBA16_SNORM_EXT: 0x8F9B; } interface ElementEventMap { "fullscreenchange": Event; "fullscreenerror": Event; } /** * Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ readonly classList: DOMTokenList; /** * Returns the value of element's class content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) */ className: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ readonly clientHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ readonly clientLeft: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ readonly clientTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; /** * Returns the value of element's id content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; /** * Returns the local name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) */ readonly localName: string; /** * Returns the namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) */ readonly namespaceURI: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ onfullscreenchange: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ onfullscreenerror: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ outerHTML: string; readonly ownerDocument: Document; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ readonly part: DOMTokenList; /** * Returns the namespace prefix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) */ readonly prefix: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ readonly scrollHeight: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ scrollLeft: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ scrollTop: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ readonly scrollWidth: number; /** * Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * Returns the value of element's slot content attribute. Can be set to change it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) */ slot: string; /** * Returns the HTML-uppercased qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) */ readonly tagName: string; /** * Creates a shadow root for element and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ computedStyleMap(): StylePropertyMapReadOnly; /** * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) */ getAttribute(qualifiedName: string): string | null; /** * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) */ getAttributeNS(namespace: string | null, localName: string): string | null; /** * Returns the qualified names of all element's attributes. Can contain duplicates. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) */ getAttributeNames(): string[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ getAttributeNode(qualifiedName: string): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ getBoundingClientRect(): DOMRect; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ getClientRects(): DOMRectList; /** * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) */ hasAttribute(qualifiedName: string): boolean; /** * Returns true if element has an attribute whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** * Returns true if element has attributes, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) */ hasAttributes(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ hasPointerCapture(pointerId: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ insertAdjacentHTML(position: InsertPosition, text: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** * Returns true if matching selectors against element's root yields element, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ matches(selectors: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ releasePointerCapture(pointerId: number): void; /** * Removes element's first attribute whose qualified name is qualifiedName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) */ removeAttribute(qualifiedName: string): void; /** * Removes element's attribute whose namespace is namespace and local name is localName. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) */ removeAttributeNS(namespace: string | null, localName: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ removeAttributeNode(attr: Attr): Attr; /** * Displays element fullscreen and resolves promise when done. * * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) */ requestFullscreen(options?: FullscreenOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ requestPointerLock(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** * Sets the value of element's first attribute whose qualified name is qualifiedName to value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) */ setAttribute(qualifiedName: string, value: string): void; /** * Sets the value of element's attribute whose namespace is namespace and local name is localName to value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ setAttributeNode(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName. * * Returns true if qualifiedName is now present, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** * @deprecated This is a legacy alias of \`matches\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ webkitMatchesSelector(selectors: string): boolean; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Element: { prototype: Element; new(): Element; }; interface ElementCSSInlineStyle { readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ readonly style: CSSStyleDeclaration; } interface ElementContentEditable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ contentEditable: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ enterKeyHint: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ inputMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ readonly isContentEditable: boolean; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { /** * Returns the form owner of internals's target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) */ readonly form: HTMLFormElement | null; /** * Returns a NodeList of all the label elements that internals's target element is associated with. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) */ readonly labels: NodeList; /** * Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * Returns the error message that would be shown to the user if internals's target element was to be checked for validity. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) */ readonly validationMessage: string; /** * Returns the ValidityState object for internals's target element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) */ readonly validity: ValidityState; /** * Returns true if internals's target element will be validated when the form is submitted; false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) */ readonly willValidate: boolean; /** * Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) */ checkValidity(): boolean; /** * Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) */ reportValidity(): boolean; /** * Sets both the state and submission value of internals's target element to value. * * If value is null, the element won't participate in form submission. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** * Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ readonly byteLength: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ readonly duration: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ readonly timestamp: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { prototype: EncodedVideoChunk; new(init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** * Events providing information related to errors in scripts or in files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** * An event which takes place in the DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { /** * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) */ readonly bubbles: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) */ cancelBubble: boolean; /** * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) */ readonly cancelable: boolean; /** * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) */ readonly composed: boolean; /** * Returns the object whose event listener's callback is currently being invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) */ readonly currentTarget: EventTarget | null; /** * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) */ readonly defaultPrevented: boolean; /** * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) */ readonly eventPhase: number; /** * Returns true if event was dispatched by the user agent, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ readonly isTrusted: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) */ returnValue: boolean; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) */ readonly srcElement: EventTarget | null; /** * Returns the object to which event is dispatched (its target). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) */ readonly target: EventTarget | null; /** * Returns the event's timestamp as the number of milliseconds measured relative to the time origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) */ readonly timeStamp: DOMHighResTimeStamp; /** * Returns the type of event, e.g. "click", "hashchange", or "submit". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) */ readonly type: string; /** * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ composedPath(): EventTarget[]; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) */ preventDefault(): void; /** * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) */ stopImmediatePropagation(): void; /** * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) */ stopPropagation(): void; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; } declare var Event: { prototype: Event; new(type: string, eventInitDict?: EventInit): Event; readonly NONE: 0; readonly CAPTURING_PHASE: 1; readonly AT_TARGET: 2; readonly BUBBLING_PHASE: 3; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ interface EventCounts { forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void; } declare var EventCounts: { prototype: EventCounts; new(): EventCounts; }; interface EventListener { (evt: Event): void; } interface EventListenerObject { handleEvent(object: Event): void; } interface EventSourceEventMap { "error": Event; "message": MessageEvent; "open": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ interface EventSource extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ onerror: ((this: EventSource, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ onopen: ((this: EventSource, ev: Event) => any) | null; /** * Returns the state of this EventSource object's connection. It can have the values described below. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) */ readonly readyState: number; /** * Returns the URL providing the event stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) */ readonly url: string; /** * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) */ readonly withCredentials: boolean; /** * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; }; /** * EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) */ interface EventTarget { /** * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. * * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. * * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. * * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners. * * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. * * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted. * * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ dispatchEvent(event: Event): boolean; /** * Removes the event listener in target's event listener list with the same type, callback, and options. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) */ removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; } declare var EventTarget: { prototype: EventTarget; new(): EventTarget; }; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External) */ interface External { /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider) */ AddSearchProvider(): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled) */ IsSearchProviderInstalled(): void; } /** @deprecated */ declare var External: { prototype: External; new(): External; }; /** * Provides information about files and allows JavaScript in a web page to access their content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) */ interface File extends Blob { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ readonly lastModified: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** * An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent; "error": ProgressEvent; "load": ProgressEvent; "loadend": ProgressEvent; "loadstart": ProgressEvent; "progress": ProgressEvent; } /** * Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) */ interface FileReader extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ readonly error: DOMException | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ onload: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ readonly result: string | ArrayBuffer | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ abort(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ readAsBinaryString(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ createReader(): FileSystemDirectoryReader; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ readonly filesystem: FileSystem; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ readonly fullPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ readonly isDirectory: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ readonly isFile: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ createWritable(options?: FileSystemCreateWritableOptions): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ readonly kind: FileSystemHandleKind; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ seek(position: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ truncate(size: number): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { prototype: FileSystemWritableFileStream; new(): FileSystemWritableFileStream; }; /** * Focus-related events like focus, blur, focusin, or focusout. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ ascentOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ descentOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ display: FontDisplay; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ family: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ featureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ lineGapOverride: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ readonly loaded: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ readonly status: FontFaceLoadStatus; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ stretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ style: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": Event; "loadingdone": Event; "loadingerror": Event; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ readonly status: FontFaceSetLoadStatus; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ load(font: string, text?: string): Promise; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FontFaceSet: { prototype: FontFaceSet; new(initialFaces: FontFace[]): FontFaceSet; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ readonly fonts: FontFaceSet; } /** * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ append(name: string, value: string | Blob): void; append(name: string, value: string): void; append(name: string, blobValue: Blob, filename?: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ delete(name: string): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ get(name: string): FormDataEntryValue | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ getAll(name: string): FormDataEntryValue[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ has(name: string): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ set(name: string, value: string | Blob): void; set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { /** * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** * A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ readonly axes: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ readonly buttons: ReadonlyArray; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ readonly index: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ readonly mapping: GamepadMappingType; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; readonly vibrationActuator: GamepadHapticActuator | null; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ readonly pressed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ readonly touched: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** * This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */ readonly type: GamepadHapticActuatorType; playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; reset(): Promise; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ readonly writable: WritableStream; } /** * An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ clearWatch(watchId: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ readonly accuracy: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ readonly altitude: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ readonly altitudeAccuracy: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ readonly heading: number | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ readonly latitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ readonly longitude: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ readonly coords: GeolocationCoordinates; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ readonly code: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ readonly message: string; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; } declare var GeolocationPositionError: { prototype: GeolocationPositionError; new(): GeolocationPositionError; readonly PERMISSION_DENIED: 1; readonly POSITION_UNAVAILABLE: 2; readonly TIMEOUT: 3; }; interface GlobalEventHandlersEventMap { "abort": UIEvent; "animationcancel": AnimationEvent; "animationend": AnimationEvent; "animationiteration": AnimationEvent; "animationstart": AnimationEvent; "auxclick": MouseEvent; "beforeinput": InputEvent; "beforetoggle": Event; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": MouseEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextmenu": MouseEvent; "copy": ClipboardEvent; "cuechange": Event; "cut": ClipboardEvent; "dblclick": MouseEvent; "drag": DragEvent; "dragend": DragEvent; "dragenter": DragEvent; "dragleave": DragEvent; "dragover": DragEvent; "dragstart": DragEvent; "drop": DragEvent; "durationchange": Event; "emptied": Event; "ended": Event; "error": ErrorEvent; "focus": FocusEvent; "focusin": FocusEvent; "focusout": FocusEvent; "formdata": FormDataEvent; "gotpointercapture": PointerEvent; "input": Event; "invalid": Event; "keydown": KeyboardEvent; "keypress": KeyboardEvent; "keyup": KeyboardEvent; "load": Event; "loadeddata": Event; "loadedmetadata": Event; "loadstart": Event; "lostpointercapture": PointerEvent; "mousedown": MouseEvent; "mouseenter": MouseEvent; "mouseleave": MouseEvent; "mousemove": MouseEvent; "mouseout": MouseEvent; "mouseover": MouseEvent; "mouseup": MouseEvent; "paste": ClipboardEvent; "pause": Event; "play": Event; "playing": Event; "pointercancel": PointerEvent; "pointerdown": PointerEvent; "pointerenter": PointerEvent; "pointerleave": PointerEvent; "pointermove": PointerEvent; "pointerout": PointerEvent; "pointerover": PointerEvent; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "scrollend": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": Event; "touchcancel": TouchEvent; "touchend": TouchEvent; "touchmove": TouchEvent; "touchstart": TouchEvent; "transitioncancel": TransitionEvent; "transitionend": TransitionEvent; "transitionrun": TransitionEvent; "transitionstart": TransitionEvent; "volumechange": Event; "waiting": Event; "webkitanimationend": Event; "webkitanimationiteration": Event; "webkitanimationstart": Event; "webkittransitionend": Event; "wheel": WheelEvent; } interface GlobalEventHandlers { /** * Fires when the user aborts the download. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the object loses the input focus. * @param ev The focus event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback is possible, but would require further buffering. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the contents of the object or selection have changed. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the left mouse button on the object * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user clicks the right mouse button in the client area, opening the context menu. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Fires when the user double-clicks the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires on the source object continuously during a drag operation. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user releases the mouse at the close of a drag operation. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element when the user drags the object to a valid drop target. * @param ev The drag event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. * @param ev The drag event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the target element continuously while the user drags the object over a valid drop target. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Fires on the source object when the user starts to drag a text selection or selected object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** * Occurs when the duration attribute is updated. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the media element is reset to its initial state. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the end of playback is reached. * @param ev The event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when an error occurs during object loading. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** * Fires when the object receives focus. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user presses a key. * @param ev The keyboard event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user presses an alphanumeric key. * @param ev The event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires when the user releases a key. * @param ev The keyboard event * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * Fires immediately after the browser loads the object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event) */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when media data is loaded at the current playback position. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the duration and dimensions of the media have been determined. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when Internet Explorer begins looking for media data. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Fires when the user clicks the object with either mouse button. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse over the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer outside the boundaries of the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user moves the mouse pointer into the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** * Fires when the user releases a mouse button while the mouse is over the object. * @param ev The mouse event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** * Occurs when playback is paused. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the play method is requested. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the audio or video has started playing. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Occurs to indicate progress while downloading media data. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** * Occurs when the playback rate is increased or decreased. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the user resets a form. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** * Fires when the user repositions the scroll box in the scroll bar on the object. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** * Occurs when the seek operation ends. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the current playback position is moved. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Fires when the current selection changes. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when the download has stopped. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** * Occurs if the load operation has been intentionally halted. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs to indicate the current playback position. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** * Occurs when the volume is changed, or playback is muted or unmuted. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * Occurs when playback stops because the next frame of a video resource is not available. * @param ev The event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationiteration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationstart\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`ontransitionend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * Returns the number of elements in the collection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * Returns the item with index index from the collection (determined by tree order). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * Returns the item with ID or name name from the collection. * * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned. * * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** * Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves the character set used to encode the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset) */ charset: string; /** * Sets or retrieves the coordinates of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ download: string; /** * Sets or retrieves the language code of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) */ hreflang: string; /** * Sets or retrieves the shape of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name) */ name: string; ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; /** * Sets or retrieves the relationship between the object and the destination of the link. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ readonly relList: DOMTokenList; /** * Sets or retrieves the relationship between the object and the destination of the link. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev) */ rev: string; /** * Sets or retrieves the shape of the object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape) */ shape: string; /** * Sets or retrieves the window or frame at which to target content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) */ target: string; /** * Retrieves or sets the text of the object as a string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) */ text: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ type: string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; }; /** * Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * Sets or retrieves a text alternative to the graphic. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) */ alt: string; /** * Sets or retrieves the coordinates of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) */ coords: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** * Sets or gets whether clicks in this region cause action. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref) */ noHref: boolean; ping: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ readonly relList: DOMTokenList; /** * Sets or retrieves the shape of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) */ shape: string; /** * Sets or retrieves the window or frame at which to target content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; }; /** * Provides access to the properties of