(function(){"use strict";class o7e{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?g2.isErrorNoTelemetry(g)?new g2(g.message+` `+g.stack):new Error(g.message+` `+g.stack):g},0)}}emit(g){this.listeners.forEach(T=>{T(g)})}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}const a7e=new o7e;function l6(E){s7e(E)||a7e.onUnexpectedError(E)}function Dbe(E){if(E instanceof Error){const{name:g,message:T}=E,W=E.stacktrace||E.stack;return{$isError:!0,name:g,message:T,stack:W,noTelemetry:g2.isErrorNoTelemetry(E)}}return E}const Ste="Canceled";function s7e(E){return E instanceof l7e?!0:E instanceof Error&&E.name===Ste&&E.message===Ste}class l7e extends Error{constructor(){super(Ste),this.name=this.message}}class g2 extends Error{constructor(g){super(g),this.name="CodeExpectedError"}static fromError(g){if(g instanceof g2)return g;const T=new g2;return T.message=g.message,T.stack=g.stack,T}static isErrorNoTelemetry(g){return g.name==="CodeExpectedError"}}class Ev extends Error{constructor(g){super(g||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ev.prototype)}}function c7e(E,g){const T=this;let W=!1,X;return function(){return W||(W=!0,X=E.apply(T,arguments)),X}}var SB;(function(E){function g(Br){return Br&&typeof Br=="object"&&typeof Br[Symbol.iterator]=="function"}E.is=g;const T=Object.freeze([]);function W(){return T}E.empty=W;function*X(Br){yield Br}E.single=X;function ue(Br){return g(Br)?Br:X(Br)}E.wrap=ue;function Re(Br){return Br||T}E.from=Re;function*Be(Br){for(let Bi=Br.length-1;Bi>=0;Bi--)yield Br[Bi]}E.reverse=Be;function it(Br){return!Br||Br[Symbol.iterator]().next().done===!0}E.isEmpty=it;function Le(Br){return Br[Symbol.iterator]().next().value}E.first=Le;function Xe(Br,Bi){let Uo=0;for(const Nr of Br)if(Bi(Nr,Uo++))return!0;return!1}E.some=Xe;function Ft(Br,Bi){for(const Uo of Br)if(Bi(Uo))return Uo}E.find=Ft;function*qt(Br,Bi){for(const Uo of Br)Bi(Uo)&&(yield Uo)}E.filter=qt;function*mn(Br,Bi){let Uo=0;for(const Nr of Br)yield Bi(Nr,Uo++)}E.map=mn;function*Kr(Br,Bi){let Uo=0;for(const Nr of Br)yield*Bi(Nr,Uo++)}E.flatMap=Kr;function*Ei(...Br){for(const Bi of Br)yield*Bi}E.concat=Ei;function co(Br,Bi,Uo){let Nr=Uo;for(const Na of Br)Nr=Bi(Nr,Na);return Nr}E.reduce=co;function*Zn(Br,Bi,Uo=Br.length){for(Bi<0&&(Bi+=Br.length),Uo<0?Uo+=Br.length:Uo>Br.length&&(Uo=Br.length);Bi1)throw new AggregateError(g,"Encountered errors while disposing of store");return Array.isArray(E)?[]:E}else if(E)return E.dispose(),E}function u7e(...E){return TB(()=>Nbe(E))}function TB(E){return{dispose:c7e(()=>{E()})}}class c6{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Nbe(this._toDispose)}finally{this._toDispose.clear()}}add(g){if(!g)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?c6.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(g),g}deleteAndLeak(g){g&&this._toDispose.has(g)&&this._toDispose.delete(g)}}class AB{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new c6,this._store}dispose(){this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}}class wd{static{this.Undefined=new wd(void 0)}constructor(g){this.element=g,this.next=wd.Undefined,this.prev=wd.Undefined}}class d7e{constructor(){this._first=wd.Undefined,this._last=wd.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===wd.Undefined}clear(){let g=this._first;for(;g!==wd.Undefined;){const T=g.next;g.prev=wd.Undefined,g.next=wd.Undefined,g=T}this._first=wd.Undefined,this._last=wd.Undefined,this._size=0}unshift(g){return this._insert(g,!1)}push(g){return this._insert(g,!0)}_insert(g,T){const W=new wd(g);if(this._first===wd.Undefined)this._first=W,this._last=W;else if(T){const ue=this._last;this._last=W,W.prev=ue,ue.next=W}else{const ue=this._first;this._first=W,W.next=ue,ue.prev=W}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(W))}}shift(){if(this._first!==wd.Undefined){const g=this._first.element;return this._remove(this._first),g}}pop(){if(this._last!==wd.Undefined){const g=this._last.element;return this._remove(this._last),g}}_remove(g){if(g.prev!==wd.Undefined&&g.next!==wd.Undefined){const T=g.prev;T.next=g.next,g.next.prev=T}else g.prev===wd.Undefined&&g.next===wd.Undefined?(this._first=wd.Undefined,this._last=wd.Undefined):g.next===wd.Undefined?(this._last=this._last.prev,this._last.next=wd.Undefined):g.prev===wd.Undefined&&(this._first=this._first.next,this._first.prev=wd.Undefined);this._size-=1}*[Symbol.iterator](){let g=this._first;for(;g!==wd.Undefined;)yield g.element,g=g.next}}const p7e=globalThis.performance&&typeof globalThis.performance.now=="function";class IB{static create(g){return new IB(g)}constructor(g){this._now=p7e&&g===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var xB;(function(E){E.None=()=>AB.None;function g(Vo,Ot){return qt(Vo,()=>{},0,void 0,!0,void 0,Ot)}E.defer=g;function T(Vo){return(Ot,Ca=null,eo)=>{let da=!1,Pi;return Pi=Vo(Sc=>{if(!da)return Pi?Pi.dispose():da=!0,Ot.call(Ca,Sc)},null,eo),da&&Pi.dispose(),Pi}}E.once=T;function W(Vo,Ot){return E.once(E.filter(Vo,Ot))}E.onceIf=W;function X(Vo,Ot,Ca){return Xe((eo,da=null,Pi)=>Vo(Sc=>eo.call(da,Ot(Sc)),null,Pi),Ca)}E.map=X;function ue(Vo,Ot,Ca){return Xe((eo,da=null,Pi)=>Vo(Sc=>{Ot(Sc),eo.call(da,Sc)},null,Pi),Ca)}E.forEach=ue;function Re(Vo,Ot,Ca){return Xe((eo,da=null,Pi)=>Vo(Sc=>Ot(Sc)&&eo.call(da,Sc),null,Pi),Ca)}E.filter=Re;function Be(Vo){return Vo}E.signal=Be;function it(...Vo){return(Ot,Ca=null,eo)=>{const da=u7e(...Vo.map(Pi=>Pi(Sc=>Ot.call(Ca,Sc))));return Ft(da,eo)}}E.any=it;function Le(Vo,Ot,Ca,eo){let da=Ca;return X(Vo,Pi=>(da=Ot(da,Pi),da),eo)}E.reduce=Le;function Xe(Vo,Ot){let Ca;const eo={onWillAddFirstListener(){Ca=Vo(da.fire,da)},onDidRemoveLastListener(){Ca?.dispose()}},da=new Qb(eo);return Ot?.add(da),da.event}function Ft(Vo,Ot){return Ot instanceof Array?Ot.push(Vo):Ot&&Ot.add(Vo),Vo}function qt(Vo,Ot,Ca=100,eo=!1,da=!1,Pi,Sc){let Qp,ym,xE,Hi=0,Iv;const v6={leakWarningThreshold:Pi,onWillAddFirstListener(){Qp=Vo(Ay=>{Hi++,ym=Ot(ym,Ay),eo&&!xE&&(t0.fire(ym),ym=void 0),Iv=()=>{const b6=ym;ym=void 0,xE=void 0,(!eo||Hi>1)&&t0.fire(b6),Hi=0},typeof Ca=="number"?(clearTimeout(xE),xE=setTimeout(Iv,Ca)):xE===void 0&&(xE=0,queueMicrotask(Iv))})},onWillRemoveListener(){da&&Hi>0&&Iv?.()},onDidRemoveLastListener(){Iv=void 0,Qp.dispose()}},t0=new Qb(v6);return Sc?.add(t0),t0.event}E.debounce=qt;function mn(Vo,Ot=0,Ca){return E.debounce(Vo,(eo,da)=>eo?(eo.push(da),eo):[da],Ot,void 0,!0,void 0,Ca)}E.accumulate=mn;function Kr(Vo,Ot=(eo,da)=>eo===da,Ca){let eo=!0,da;return Re(Vo,Pi=>{const Sc=eo||!Ot(Pi,da);return eo=!1,da=Pi,Sc},Ca)}E.latch=Kr;function Ei(Vo,Ot,Ca){return[E.filter(Vo,Ot,Ca),E.filter(Vo,eo=>!Ot(eo),Ca)]}E.split=Ei;function co(Vo,Ot=!1,Ca=[],eo){let da=Ca.slice(),Pi=Vo(ym=>{da?da.push(ym):Qp.fire(ym)});eo&&eo.add(Pi);const Sc=()=>{da?.forEach(ym=>Qp.fire(ym)),da=null},Qp=new Qb({onWillAddFirstListener(){Pi||(Pi=Vo(ym=>Qp.fire(ym)),eo&&eo.add(Pi))},onDidAddFirstListener(){da&&(Ot?setTimeout(Sc):Sc())},onDidRemoveLastListener(){Pi&&Pi.dispose(),Pi=null}});return eo&&eo.add(Qp),Qp.event}E.buffer=co;function Zn(Vo,Ot){return(eo,da,Pi)=>{const Sc=Ot(new Oo);return Vo(function(Qp){const ym=Sc.evaluate(Qp);ym!==An&&eo.call(da,ym)},void 0,Pi)}}E.chain=Zn;const An=Symbol("HaltChainable");class Oo{constructor(){this.steps=[]}map(Ot){return this.steps.push(Ot),this}forEach(Ot){return this.steps.push(Ca=>(Ot(Ca),Ca)),this}filter(Ot){return this.steps.push(Ca=>Ot(Ca)?Ca:An),this}reduce(Ot,Ca){let eo=Ca;return this.steps.push(da=>(eo=Ot(eo,da),eo)),this}latch(Ot=(Ca,eo)=>Ca===eo){let Ca=!0,eo;return this.steps.push(da=>{const Pi=Ca||!Ot(da,eo);return Ca=!1,eo=da,Pi?da:An}),this}evaluate(Ot){for(const Ca of this.steps)if(Ot=Ca(Ot),Ot===An)break;return Ot}}function Br(Vo,Ot,Ca=eo=>eo){const eo=(...Qp)=>Sc.fire(Ca(...Qp)),da=()=>Vo.on(Ot,eo),Pi=()=>Vo.removeListener(Ot,eo),Sc=new Qb({onWillAddFirstListener:da,onDidRemoveLastListener:Pi});return Sc.event}E.fromNodeEventEmitter=Br;function Bi(Vo,Ot,Ca=eo=>eo){const eo=(...Qp)=>Sc.fire(Ca(...Qp)),da=()=>Vo.addEventListener(Ot,eo),Pi=()=>Vo.removeEventListener(Ot,eo),Sc=new Qb({onWillAddFirstListener:da,onDidRemoveLastListener:Pi});return Sc.event}E.fromDOMEventEmitter=Bi;function Uo(Vo){return new Promise(Ot=>T(Vo)(Ot))}E.toPromise=Uo;function Nr(Vo){const Ot=new Qb;return Vo.then(Ca=>{Ot.fire(Ca)},()=>{Ot.fire(void 0)}).finally(()=>{Ot.dispose()}),Ot.event}E.fromPromise=Nr;function Na(Vo,Ot){return Vo(Ca=>Ot.fire(Ca))}E.forward=Na;function Ec(Vo,Ot,Ca){return Ot(Ca),Vo(eo=>Ot(eo))}E.runAndSubscribe=Ec;class au{constructor(Ot,Ca){this._observable=Ot,this._counter=0,this._hasChanged=!1;const eo={onWillAddFirstListener:()=>{Ot.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Ot.removeObserver(this)}};this.emitter=new Qb(eo),Ca&&Ca.add(this.emitter)}beginUpdate(Ot){this._counter++}handlePossibleChange(Ot){}handleChange(Ot,Ca){this._hasChanged=!0}endUpdate(Ot){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function nr(Vo,Ot){return new au(Vo,Ot).emitter.event}E.fromObservable=nr;function Xs(Vo){return(Ot,Ca,eo)=>{let da=0,Pi=!1;const Sc={beginUpdate(){da++},endUpdate(){da--,da===0&&(Vo.reportChanges(),Pi&&(Pi=!1,Ot.call(Ca)))},handlePossibleChange(){},handleChange(){Pi=!0}};Vo.addObserver(Sc),Vo.reportChanges();const Qp={dispose(){Vo.removeObserver(Sc)}};return eo instanceof c6?eo.add(Qp):Array.isArray(eo)&&eo.push(Qp),Qp}}E.fromObservableLight=Xs})(xB||(xB={}));class RB{static{this.all=new Set}static{this._idPool=0}constructor(g){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${g}_${RB._idPool++}`,RB.all.add(this)}start(g){this._stopWatch=new IB,this.listenerCount=g}stop(){if(this._stopWatch){const g=this._stopWatch.elapsed();this.durations.push(g),this.elapsedOverall+=g,this.invocationCount+=1,this._stopWatch=void 0}}}let f7e=-1;class Tte{static{this._idPool=1}constructor(g,T,W=(Tte._idPool++).toString(16).padStart(3,"0")){this._errorHandler=g,this.threshold=T,this.name=W,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(g,T){const W=this.threshold;if(W<=0||T{const ue=this._stacks.get(g.value)||0;this._stacks.set(g.value,ue-1)}}getMostFrequentStack(){if(!this._stacks)return;let g,T=0;for(const[W,X]of this._stacks)(!g||T{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const Be=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Be);const it=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],Le=new _7e(`${Be}. HINT: Stack shows most frequent listener (${it[1]}-times)`,it[0]);return(this._options?.onListenerError||l6)(Le),AB.None}if(this._disposed)return AB.None;T&&(g=g.bind(T));const X=new Ite(g);let ue;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(X.stack=Ate.create(),ue=this._leakageMon.check(X.stack,this._size+1)),this._listeners?this._listeners instanceof Ite?(this._deliveryQueue??=new g7e,this._listeners=[this._listeners,X]):this._listeners.push(X):(this._options?.onWillAddFirstListener?.(this),this._listeners=X,this._options?.onDidAddFirstListener?.(this)),this._size++;const Re=TB(()=>{ue?.(),this._removeListener(X)});return W instanceof c6?W.add(Re):Array.isArray(W)&&W.push(Re),Re},this._event}_removeListener(g){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const T=this._listeners,W=T.indexOf(g);if(W===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,T[W]=void 0;const X=this._deliveryQueue.current===this;if(this._size*h7e<=T.length){let ue=0;for(let Re=0;Re0}}class g7e{constructor(){this.i=-1,this.end=0}enqueue(g,T,W){this.i=0,this.end=W,this.current=g,this.value=T}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function y7e(){return globalThis._VSCODE_NLS_MESSAGES}function Cbe(){return globalThis._VSCODE_NLS_LANGUAGE}const v7e=Cbe()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Pbe(E,g){let T;return g.length===0?T=E:T=E.replace(/\{(\d+)\}/g,(W,X)=>{const ue=X[0],Re=g[ue];let Be=W;return typeof Re=="string"?Be=Re:(typeof Re=="number"||typeof Re=="boolean"||Re===void 0||Re===null)&&(Be=String(Re)),Be}),v7e&&(T="["+T.replace(/[aouei]/g,"$&$&")+"]"),T}function Qd(E,g,...T){return Pbe(typeof E=="number"?b7e(E,g):g,T)}function b7e(E,g){const T=y7e()?.[E];if(typeof T!="string"){if(typeof g=="string")return g;throw new Error(`!!! NLS MISSING: ${E} !!!`)}return T}const y2="en";let xte=!1,Rte=!1,Dte=!1,Mbe=!1,Nte=!1,DB,Cte=y2,Lbe=y2,E7e,fA;const mA=globalThis;let Sv;typeof mA.vscode<"u"&&typeof mA.vscode.process<"u"?Sv=mA.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Sv=process);const S7e=typeof Sv?.versions?.electron=="string"&&Sv?.type==="renderer";if(typeof Sv=="object"){xte=Sv.platform==="win32",Rte=Sv.platform==="darwin",Dte=Sv.platform==="linux",Dte&&Sv.env.SNAP&&Sv.env.SNAP_REVISION,Sv.env.CI||Sv.env.BUILD_ARTIFACTSTAGINGDIRECTORY,DB=y2,Cte=y2;const E=Sv.env.VSCODE_NLS_CONFIG;if(E)try{const g=JSON.parse(E);DB=g.userLocale,Lbe=g.osLocale,Cte=g.resolvedLanguage||y2,E7e=g.languagePack?.translationsConfigFile}catch{}Mbe=!0}else typeof navigator=="object"&&!S7e?(fA=navigator.userAgent,xte=fA.indexOf("Windows")>=0,Rte=fA.indexOf("Macintosh")>=0,(fA.indexOf("Macintosh")>=0||fA.indexOf("iPad")>=0||fA.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Dte=fA.indexOf("Linux")>=0,fA?.indexOf("Mobi")>=0,Nte=!0,Cte=Cbe()||y2,DB=navigator.language.toLowerCase(),Lbe=DB):console.error("Unable to resolve platform.");const u6=xte,T7e=Rte,A7e=Mbe,I7e=Nte,x7e=Nte&&typeof mA.importScripts=="function"?mA.origin:void 0,aS=fA,R7e=typeof mA.postMessage=="function"&&!mA.importScripts;(()=>{if(R7e){const E=[];mA.addEventListener("message",T=>{if(T.data&&T.data.vscodeScheduleAsyncWork)for(let W=0,X=E.length;W{const W=++g;E.push({id:W,callback:T}),mA.postMessage({vscodeScheduleAsyncWork:W},"*")}}return E=>setTimeout(E)})();const D7e=!!(aS&&aS.indexOf("Chrome")>=0);aS&&aS.indexOf("Firefox")>=0,!D7e&&aS&&aS.indexOf("Safari")>=0,aS&&aS.indexOf("Edg/")>=0,aS&&aS.indexOf("Android")>=0;function N7e(E){return E}class C7e{constructor(g,T){this.lastCache=void 0,this.lastArgKey=void 0,typeof g=="function"?(this._fn=g,this._computeKey=N7e):(this._fn=T,this._computeKey=g.getCacheKey)}get(g){const T=this._computeKey(g);return this.lastArgKey!==T&&(this.lastArgKey=T,this.lastCache=this._fn(g)),this.lastCache}}class kbe{constructor(g){this.executor=g,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(g){this._error=g}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function P7e(E){return E.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function M7e(E){return E.split(/\r\n|\r|\n/)}function L7e(E){for(let g=0,T=E.length;g=0;T--){const W=E.charCodeAt(T);if(W!==32&&W!==9)return T}return-1}function wbe(E){return E>=65&&E<=90}function NB(E){return 55296<=E&&E<=56319}function Pte(E){return 56320<=E&&E<=57343}function Obe(E,g){return(E-55296<<10)+(g-56320)+65536}function w7e(E,g,T){const W=E.charCodeAt(T);if(NB(W)&&T+1JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new C7e({getCacheKey:JSON.stringify},g=>{function T(Xe){const Ft=new Map;for(let qt=0;qt!Xe.startsWith("_")&&Xe in ue);Re.length===0&&(Re=["_default"]);let Be;for(const Xe of Re){const Ft=T(ue[Xe]);Be=X(Be,Ft)}const it=T(ue._common),Le=W(it,Be);return new Rx(Le)})}static getInstance(g){return Rx.cache.get(Array.from(g))}static{this._locales=new kbe(()=>Object.keys(Rx.ambiguousCharacterData.value).filter(g=>!g.startsWith("_")))}static getLocales(){return Rx._locales.value}constructor(g){this.confusableDictionary=g}isAmbiguous(g){return this.confusableDictionary.has(g)}getPrimaryConfusable(g){return this.confusableDictionary.get(g)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class UN{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(UN.getRawData())),this._data}static isInvisibleCharacter(g){return UN.getData().has(g)}static get codePoints(){return UN.getData()}}var Wbe={};let v2;const Mte=globalThis.vscode;if(typeof Mte<"u"&&typeof Mte.process<"u"){const E=Mte.process;v2={get platform(){return E.platform},get arch(){return E.arch},get env(){return E.env},cwd(){return E.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?v2={get platform(){return process.platform},get arch(){return process.arch},get env(){return Wbe},cwd(){return Wbe.VSCODE_CWD||process.cwd()}}:v2={get platform(){return u6?"win32":T7e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const CB=v2.cwd,F7e=v2.env,z7e=v2.platform,B7e=65,G7e=97,V7e=90,j7e=122,Dx=46,T_=47,Sy=92,Nx=58,U7e=63;class Fbe extends Error{constructor(g,T,W){let X;typeof T=="string"&&T.indexOf("not ")===0?(X="must not be",T=T.replace(/^not /,"")):X="must be";const ue=g.indexOf(".")!==-1?"property":"argument";let Re=`The "${g}" ${ue} ${X} of type ${T}`;Re+=`. Received type ${typeof W}`,super(Re),this.code="ERR_INVALID_ARG_TYPE"}}function H7e(E,g){if(E===null||typeof E!="object")throw new Fbe(g,"Object",E)}function Sf(E,g){if(typeof E!="string")throw new Fbe(g,"string",E)}const _A=z7e==="win32";function Ul(E){return E===T_||E===Sy}function Lte(E){return E===T_}function Cx(E){return E>=B7e&&E<=V7e||E>=G7e&&E<=j7e}function PB(E,g,T,W){let X="",ue=0,Re=-1,Be=0,it=0;for(let Le=0;Le<=E.length;++Le){if(Le2){const Xe=X.lastIndexOf(T);Xe===-1?(X="",ue=0):(X=X.slice(0,Xe),ue=X.length-1-X.lastIndexOf(T)),Re=Le,Be=0;continue}else if(X.length!==0){X="",ue=0,Re=Le,Be=0;continue}}g&&(X+=X.length>0?`${T}..`:"..",ue=2)}else X.length>0?X+=`${T}${E.slice(Re+1,Le)}`:X=E.slice(Re+1,Le),ue=Le-Re-1;Re=Le,Be=0}else it===Dx&&Be!==-1?++Be:Be=-1}return X}function q7e(E){return E?`${E[0]==="."?"":"."}${E}`:""}function zbe(E,g){H7e(g,"pathObject");const T=g.dir||g.root,W=g.base||`${g.name||""}${q7e(g.ext)}`;return T?T===g.root?`${T}${W}`:`${T}${E}${W}`:W}const qh={resolve(...E){let g="",T="",W=!1;for(let X=E.length-1;X>=-1;X--){let ue;if(X>=0){if(ue=E[X],Sf(ue,`paths[${X}]`),ue.length===0)continue}else g.length===0?ue=CB():(ue=F7e[`=${g}`]||CB(),(ue===void 0||ue.slice(0,2).toLowerCase()!==g.toLowerCase()&&ue.charCodeAt(2)===Sy)&&(ue=`${g}\\`));const Re=ue.length;let Be=0,it="",Le=!1;const Xe=ue.charCodeAt(0);if(Re===1)Ul(Xe)&&(Be=1,Le=!0);else if(Ul(Xe))if(Le=!0,Ul(ue.charCodeAt(1))){let Ft=2,qt=Ft;for(;Ft2&&Ul(ue.charCodeAt(2))&&(Le=!0,Be=3));if(it.length>0)if(g.length>0){if(it.toLowerCase()!==g.toLowerCase())continue}else g=it;if(W){if(g.length>0)break}else if(T=`${ue.slice(Be)}\\${T}`,W=Le,Le&&g.length>0)break}return T=PB(T,!W,"\\",Ul),W?`${g}\\${T}`:`${g}${T}`||"."},normalize(E){Sf(E,"path");const g=E.length;if(g===0)return".";let T=0,W,X=!1;const ue=E.charCodeAt(0);if(g===1)return Lte(ue)?"\\":E;if(Ul(ue))if(X=!0,Ul(E.charCodeAt(1))){let Be=2,it=Be;for(;Be2&&Ul(E.charCodeAt(2))&&(X=!0,T=3));let Re=T0&&Ul(E.charCodeAt(g-1))&&(Re+="\\"),W===void 0?X?`\\${Re}`:Re:X?`${W}\\${Re}`:`${W}${Re}`},isAbsolute(E){Sf(E,"path");const g=E.length;if(g===0)return!1;const T=E.charCodeAt(0);return Ul(T)||g>2&&Cx(T)&&E.charCodeAt(1)===Nx&&Ul(E.charCodeAt(2))},join(...E){if(E.length===0)return".";let g,T;for(let ue=0;ue0&&(g===void 0?g=T=Re:g+=`\\${Re}`)}if(g===void 0)return".";let W=!0,X=0;if(typeof T=="string"&&Ul(T.charCodeAt(0))){++X;const ue=T.length;ue>1&&Ul(T.charCodeAt(1))&&(++X,ue>2&&(Ul(T.charCodeAt(2))?++X:W=!1))}if(W){for(;X=2&&(g=`\\${g.slice(X)}`)}return qh.normalize(g)},relative(E,g){if(Sf(E,"from"),Sf(g,"to"),E===g)return"";const T=qh.resolve(E),W=qh.resolve(g);if(T===W||(E=T.toLowerCase(),g=W.toLowerCase(),E===g))return"";let X=0;for(;XX&&E.charCodeAt(ue-1)===Sy;)ue--;const Re=ue-X;let Be=0;for(;BeBe&&g.charCodeAt(it-1)===Sy;)it--;const Le=it-Be,Xe=ReXe){if(g.charCodeAt(Be+qt)===Sy)return W.slice(Be+qt+1);if(qt===2)return W.slice(Be+qt)}Re>Xe&&(E.charCodeAt(X+qt)===Sy?Ft=qt:qt===2&&(Ft=3)),Ft===-1&&(Ft=0)}let mn="";for(qt=X+Ft+1;qt<=ue;++qt)(qt===ue||E.charCodeAt(qt)===Sy)&&(mn+=mn.length===0?"..":"\\..");return Be+=Ft,mn.length>0?`${mn}${W.slice(Be,it)}`:(W.charCodeAt(Be)===Sy&&++Be,W.slice(Be,it))},toNamespacedPath(E){if(typeof E!="string"||E.length===0)return E;const g=qh.resolve(E);if(g.length<=2)return E;if(g.charCodeAt(0)===Sy){if(g.charCodeAt(1)===Sy){const T=g.charCodeAt(2);if(T!==U7e&&T!==Dx)return`\\\\?\\UNC\\${g.slice(2)}`}}else if(Cx(g.charCodeAt(0))&&g.charCodeAt(1)===Nx&&g.charCodeAt(2)===Sy)return`\\\\?\\${g}`;return E},dirname(E){Sf(E,"path");const g=E.length;if(g===0)return".";let T=-1,W=0;const X=E.charCodeAt(0);if(g===1)return Ul(X)?E:".";if(Ul(X)){if(T=W=1,Ul(E.charCodeAt(1))){let Be=2,it=Be;for(;Be2&&Ul(E.charCodeAt(2))?3:2,W=T);let ue=-1,Re=!0;for(let Be=g-1;Be>=W;--Be)if(Ul(E.charCodeAt(Be))){if(!Re){ue=Be;break}}else Re=!1;if(ue===-1){if(T===-1)return".";ue=T}return E.slice(0,ue)},basename(E,g){g!==void 0&&Sf(g,"suffix"),Sf(E,"path");let T=0,W=-1,X=!0,ue;if(E.length>=2&&Cx(E.charCodeAt(0))&&E.charCodeAt(1)===Nx&&(T=2),g!==void 0&&g.length>0&&g.length<=E.length){if(g===E)return"";let Re=g.length-1,Be=-1;for(ue=E.length-1;ue>=T;--ue){const it=E.charCodeAt(ue);if(Ul(it)){if(!X){T=ue+1;break}}else Be===-1&&(X=!1,Be=ue+1),Re>=0&&(it===g.charCodeAt(Re)?--Re===-1&&(W=ue):(Re=-1,W=Be))}return T===W?W=Be:W===-1&&(W=E.length),E.slice(T,W)}for(ue=E.length-1;ue>=T;--ue)if(Ul(E.charCodeAt(ue))){if(!X){T=ue+1;break}}else W===-1&&(X=!1,W=ue+1);return W===-1?"":E.slice(T,W)},extname(E){Sf(E,"path");let g=0,T=-1,W=0,X=-1,ue=!0,Re=0;E.length>=2&&E.charCodeAt(1)===Nx&&Cx(E.charCodeAt(0))&&(g=W=2);for(let Be=E.length-1;Be>=g;--Be){const it=E.charCodeAt(Be);if(Ul(it)){if(!ue){W=Be+1;break}continue}X===-1&&(ue=!1,X=Be+1),it===Dx?T===-1?T=Be:Re!==1&&(Re=1):T!==-1&&(Re=-1)}return T===-1||X===-1||Re===0||Re===1&&T===X-1&&T===W+1?"":E.slice(T,X)},format:zbe.bind(null,"\\"),parse(E){Sf(E,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return g;const T=E.length;let W=0,X=E.charCodeAt(0);if(T===1)return Ul(X)?(g.root=g.dir=E,g):(g.base=g.name=E,g);if(Ul(X)){if(W=1,Ul(E.charCodeAt(1))){let Ft=2,qt=Ft;for(;Ft0&&(g.root=E.slice(0,W));let ue=-1,Re=W,Be=-1,it=!0,Le=E.length-1,Xe=0;for(;Le>=W;--Le){if(X=E.charCodeAt(Le),Ul(X)){if(!it){Re=Le+1;break}continue}Be===-1&&(it=!1,Be=Le+1),X===Dx?ue===-1?ue=Le:Xe!==1&&(Xe=1):ue!==-1&&(Xe=-1)}return Be!==-1&&(ue===-1||Xe===0||Xe===1&&ue===Be-1&&ue===Re+1?g.base=g.name=E.slice(Re,Be):(g.name=E.slice(Re,ue),g.base=E.slice(Re,Be),g.ext=E.slice(ue,Be))),Re>0&&Re!==W?g.dir=E.slice(0,Re-1):g.dir=g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},J7e=(()=>{if(_A){const E=/\\/g;return()=>{const g=CB().replace(E,"/");return g.slice(g.indexOf("/"))}}return()=>CB()})(),Jh={resolve(...E){let g="",T=!1;for(let W=E.length-1;W>=-1&&!T;W--){const X=W>=0?E[W]:J7e();Sf(X,`paths[${W}]`),X.length!==0&&(g=`${X}/${g}`,T=X.charCodeAt(0)===T_)}return g=PB(g,!T,"/",Lte),T?`/${g}`:g.length>0?g:"."},normalize(E){if(Sf(E,"path"),E.length===0)return".";const g=E.charCodeAt(0)===T_,T=E.charCodeAt(E.length-1)===T_;return E=PB(E,!g,"/",Lte),E.length===0?g?"/":T?"./":".":(T&&(E+="/"),g?`/${E}`:E)},isAbsolute(E){return Sf(E,"path"),E.length>0&&E.charCodeAt(0)===T_},join(...E){if(E.length===0)return".";let g;for(let T=0;T0&&(g===void 0?g=W:g+=`/${W}`)}return g===void 0?".":Jh.normalize(g)},relative(E,g){if(Sf(E,"from"),Sf(g,"to"),E===g||(E=Jh.resolve(E),g=Jh.resolve(g),E===g))return"";const T=1,W=E.length,X=W-T,ue=1,Re=g.length-ue,Be=XBe){if(g.charCodeAt(ue+Le)===T_)return g.slice(ue+Le+1);if(Le===0)return g.slice(ue+Le)}else X>Be&&(E.charCodeAt(T+Le)===T_?it=Le:Le===0&&(it=0));let Xe="";for(Le=T+it+1;Le<=W;++Le)(Le===W||E.charCodeAt(Le)===T_)&&(Xe+=Xe.length===0?"..":"/..");return`${Xe}${g.slice(ue+it)}`},toNamespacedPath(E){return E},dirname(E){if(Sf(E,"path"),E.length===0)return".";const g=E.charCodeAt(0)===T_;let T=-1,W=!0;for(let X=E.length-1;X>=1;--X)if(E.charCodeAt(X)===T_){if(!W){T=X;break}}else W=!1;return T===-1?g?"/":".":g&&T===1?"//":E.slice(0,T)},basename(E,g){g!==void 0&&Sf(g,"ext"),Sf(E,"path");let T=0,W=-1,X=!0,ue;if(g!==void 0&&g.length>0&&g.length<=E.length){if(g===E)return"";let Re=g.length-1,Be=-1;for(ue=E.length-1;ue>=0;--ue){const it=E.charCodeAt(ue);if(it===T_){if(!X){T=ue+1;break}}else Be===-1&&(X=!1,Be=ue+1),Re>=0&&(it===g.charCodeAt(Re)?--Re===-1&&(W=ue):(Re=-1,W=Be))}return T===W?W=Be:W===-1&&(W=E.length),E.slice(T,W)}for(ue=E.length-1;ue>=0;--ue)if(E.charCodeAt(ue)===T_){if(!X){T=ue+1;break}}else W===-1&&(X=!1,W=ue+1);return W===-1?"":E.slice(T,W)},extname(E){Sf(E,"path");let g=-1,T=0,W=-1,X=!0,ue=0;for(let Re=E.length-1;Re>=0;--Re){const Be=E.charCodeAt(Re);if(Be===T_){if(!X){T=Re+1;break}continue}W===-1&&(X=!1,W=Re+1),Be===Dx?g===-1?g=Re:ue!==1&&(ue=1):g!==-1&&(ue=-1)}return g===-1||W===-1||ue===0||ue===1&&g===W-1&&g===T+1?"":E.slice(g,W)},format:zbe.bind(null,"/"),parse(E){Sf(E,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return g;const T=E.charCodeAt(0)===T_;let W;T?(g.root="/",W=1):W=0;let X=-1,ue=0,Re=-1,Be=!0,it=E.length-1,Le=0;for(;it>=W;--it){const Xe=E.charCodeAt(it);if(Xe===T_){if(!Be){ue=it+1;break}continue}Re===-1&&(Be=!1,Re=it+1),Xe===Dx?X===-1?X=it:Le!==1&&(Le=1):X!==-1&&(Le=-1)}if(Re!==-1){const Xe=ue===0&&T?1:ue;X===-1||Le===0||Le===1&&X===Re-1&&X===ue+1?g.base=g.name=E.slice(Xe,Re):(g.name=E.slice(Xe,X),g.base=E.slice(Xe,Re),g.ext=E.slice(X,Re))}return ue>0?g.dir=E.slice(0,ue-1):T&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};Jh.win32=qh.win32=qh,Jh.posix=qh.posix=Jh,_A?qh.normalize:Jh.normalize;const K7e=_A?qh.join:Jh.join;_A?qh.resolve:Jh.resolve,_A?qh.relative:Jh.relative,_A?qh.dirname:Jh.dirname,_A?qh.basename:Jh.basename,_A?qh.extname:Jh.extname,_A?qh.sep:Jh.sep;const X7e=/^\w[\w\d+.-]*$/,Y7e=/^\//,$7e=/^\/\//;function Q7e(E,g){if(!E.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${E.authority}", path: "${E.path}", query: "${E.query}", fragment: "${E.fragment}"}`);if(E.scheme&&!X7e.test(E.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(E.path){if(E.authority){if(!Y7e.test(E.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if($7e.test(E.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Z7e(E,g){return!E&&!g?"file":E}function e5e(E,g){switch(E){case"https":case"http":case"file":g?g[0]!==EE&&(g=EE+g):g=EE;break}return g}const Od="",EE="/",t5e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Ty{static isUri(g){return g instanceof Ty?!0:g?typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function":!1}constructor(g,T,W,X,ue,Re=!1){typeof g=="object"?(this.scheme=g.scheme||Od,this.authority=g.authority||Od,this.path=g.path||Od,this.query=g.query||Od,this.fragment=g.fragment||Od):(this.scheme=Z7e(g,Re),this.authority=T||Od,this.path=e5e(this.scheme,W||Od),this.query=X||Od,this.fragment=ue||Od,Q7e(this,Re))}get fsPath(){return kte(this,!1)}with(g){if(!g)return this;let{scheme:T,authority:W,path:X,query:ue,fragment:Re}=g;return T===void 0?T=this.scheme:T===null&&(T=Od),W===void 0?W=this.authority:W===null&&(W=Od),X===void 0?X=this.path:X===null&&(X=Od),ue===void 0?ue=this.query:ue===null&&(ue=Od),Re===void 0?Re=this.fragment:Re===null&&(Re=Od),T===this.scheme&&W===this.authority&&X===this.path&&ue===this.query&&Re===this.fragment?this:new b2(T,W,X,ue,Re)}static parse(g,T=!1){const W=t5e.exec(g);return W?new b2(W[2]||Od,MB(W[4]||Od),MB(W[5]||Od),MB(W[7]||Od),MB(W[9]||Od),T):new b2(Od,Od,Od,Od,Od)}static file(g){let T=Od;if(u6&&(g=g.replace(/\\/g,EE)),g[0]===EE&&g[1]===EE){const W=g.indexOf(EE,2);W===-1?(T=g.substring(2),g=EE):(T=g.substring(2,W),g=g.substring(W)||EE)}return new b2("file",T,g,Od,Od)}static from(g,T){return new b2(g.scheme,g.authority,g.path,g.query,g.fragment,T)}static joinPath(g,...T){if(!g.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let W;return u6&&g.scheme==="file"?W=Ty.file(qh.join(kte(g,!0),...T)).path:W=Jh.join(g.path,...T),g.with({path:W})}toString(g=!1){return wte(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof Ty)return g;{const T=new b2(g);return T._formatted=g.external??null,T._fsPath=g._sep===Bbe?g.fsPath??null:null,T}}else return g}}const Bbe=u6?1:void 0;class b2 extends Ty{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=kte(this,!1)),this._fsPath}toString(g=!1){return g?wte(this,!0):(this._formatted||(this._formatted=wte(this,!1)),this._formatted)}toJSON(){const g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=Bbe),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}const Gbe={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Vbe(E,g,T){let W,X=-1;for(let ue=0;ue=97&&Re<=122||Re>=65&&Re<=90||Re>=48&&Re<=57||Re===45||Re===46||Re===95||Re===126||g&&Re===47||T&&Re===91||T&&Re===93||T&&Re===58)X!==-1&&(W+=encodeURIComponent(E.substring(X,ue)),X=-1),W!==void 0&&(W+=E.charAt(ue));else{W===void 0&&(W=E.substr(0,ue));const Be=Gbe[Re];Be!==void 0?(X!==-1&&(W+=encodeURIComponent(E.substring(X,ue)),X=-1),W+=Be):X===-1&&(X=ue)}}return X!==-1&&(W+=encodeURIComponent(E.substring(X))),W!==void 0?W:E}function n5e(E){let g;for(let T=0;T1&&E.scheme==="file"?T=`//${E.authority}${E.path}`:E.path.charCodeAt(0)===47&&(E.path.charCodeAt(1)>=65&&E.path.charCodeAt(1)<=90||E.path.charCodeAt(1)>=97&&E.path.charCodeAt(1)<=122)&&E.path.charCodeAt(2)===58?g?T=E.path.substr(1):T=E.path[1].toLowerCase()+E.path.substr(2):T=E.path,u6&&(T=T.replace(/\//g,"\\")),T}function wte(E,g){const T=g?n5e:Vbe;let W="",{scheme:X,authority:ue,path:Re,query:Be,fragment:it}=E;if(X&&(W+=X,W+=":"),(ue||X==="file")&&(W+=EE,W+=EE),ue){let Le=ue.indexOf("@");if(Le!==-1){const Xe=ue.substr(0,Le);ue=ue.substr(Le+1),Le=Xe.lastIndexOf(":"),Le===-1?W+=T(Xe,!1,!1):(W+=T(Xe.substr(0,Le),!1,!1),W+=":",W+=T(Xe.substr(Le+1),!1,!0)),W+="@"}ue=ue.toLowerCase(),Le=ue.lastIndexOf(":"),Le===-1?W+=T(ue,!1,!0):(W+=T(ue.substr(0,Le),!1,!0),W+=ue.substr(Le))}if(Re){if(Re.length>=3&&Re.charCodeAt(0)===47&&Re.charCodeAt(2)===58){const Le=Re.charCodeAt(1);Le>=65&&Le<=90&&(Re=`/${String.fromCharCode(Le+32)}:${Re.substr(3)}`)}else if(Re.length>=2&&Re.charCodeAt(1)===58){const Le=Re.charCodeAt(0);Le>=65&&Le<=90&&(Re=`${String.fromCharCode(Le+32)}:${Re.substr(2)}`)}W+=T(Re,!0,!1)}return Be&&(W+="?",W+=T(Be,!1,!1)),it&&(W+="#",W+=g?it:Vbe(it,!1,!1)),W}function jbe(E){try{return decodeURIComponent(E)}catch{return E.length>3?E.substr(0,3)+jbe(E.substr(3)):E}}const Ube=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function MB(E){return E.match(Ube)?E.replace(Ube,g=>jbe(g)):E}var Px;(function(E){E.inMemory="inmemory",E.vscode="vscode",E.internal="private",E.walkThrough="walkThrough",E.walkThroughSnippet="walkThroughSnippet",E.http="http",E.https="https",E.file="file",E.mailto="mailto",E.untitled="untitled",E.data="data",E.command="command",E.vscodeRemote="vscode-remote",E.vscodeRemoteResource="vscode-remote-resource",E.vscodeManagedRemoteResource="vscode-managed-remote-resource",E.vscodeUserData="vscode-userdata",E.vscodeCustomEditor="vscode-custom-editor",E.vscodeNotebookCell="vscode-notebook-cell",E.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",E.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",E.vscodeNotebookCellOutput="vscode-notebook-cell-output",E.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",E.vscodeNotebookMetadata="vscode-notebook-metadata",E.vscodeInteractiveInput="vscode-interactive-input",E.vscodeSettings="vscode-settings",E.vscodeWorkspaceTrust="vscode-workspace-trust",E.vscodeTerminal="vscode-terminal",E.vscodeChatCodeBlock="vscode-chat-code-block",E.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",E.vscodeChatSesssion="vscode-chat-editor",E.webviewPanel="webview-panel",E.vscodeWebview="vscode-webview",E.extension="extension",E.vscodeFileResource="vscode-file",E.tmp="tmp",E.vsls="vsls",E.vscodeSourceControl="vscode-scm",E.commentsInput="comment",E.codeSetting="code-setting",E.outputChannel="output"})(Px||(Px={}));const r5e="tkn";class i5e{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(g){this._preferredWebSchema=g}get _remoteResourcesPath(){return Jh.join(this._serverRootPath,Px.vscodeRemoteResource)}rewrite(g){if(this._delegate)try{return this._delegate(g)}catch(Be){return l6(Be),g}const T=g.authority;let W=this._hosts[T];W&&W.indexOf(":")!==-1&&W.indexOf("[")===-1&&(W=`[${W}]`);const X=this._ports[T],ue=this._connectionTokens[T];let Re=`path=${encodeURIComponent(g.path)}`;return typeof ue=="string"&&(Re+=`&${r5e}=${encodeURIComponent(ue)}`),Ty.from({scheme:I7e?this._preferredWebSchema:Px.vscodeRemoteResource,authority:`${W}:${X}`,path:this._remoteResourcesPath,query:Re})}}const o5e=new i5e,a5e="vscode-app";class LB{static{this.FALLBACK_AUTHORITY=a5e}asBrowserUri(g){const T=this.toUri(g);return this.uriToBrowserUri(T)}uriToBrowserUri(g){return g.scheme===Px.vscodeRemote?o5e.rewrite(g):g.scheme===Px.file&&(A7e||x7e===`${Px.vscodeFileResource}://${LB.FALLBACK_AUTHORITY}`)?g.with({scheme:Px.vscodeFileResource,authority:g.authority||LB.FALLBACK_AUTHORITY,query:null,fragment:null}):g}toUri(g,T){if(Ty.isUri(g))return g;if(globalThis._VSCODE_FILE_ROOT){const W=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(W))return Ty.joinPath(Ty.parse(W,!0),g);const X=K7e(W,g);return Ty.file(X)}return Ty.parse(T.toUrl(g))}}const Hbe=new LB;var qbe;(function(E){const g=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);E.CoopAndCoep=Object.freeze(g.get("3"));const T="vscode-coi";function W(ue){let Re;typeof ue=="string"?Re=new URL(ue).searchParams:ue instanceof URL?Re=ue.searchParams:Ty.isUri(ue)&&(Re=new URL(ue.toString(!0)).searchParams);const Be=Re?.get(T);if(Be)return g.get(Be)}E.getHeadersFromQuery=W;function X(ue,Re,Be){if(!globalThis.crossOriginIsolated)return;const it=Re&&Be?"3":Be?"2":"1";ue instanceof URLSearchParams?ue.set(T,it):ue[T]=it}E.addSearchParam=X})(qbe||(qbe={}));const Ote="default",s5e="$initialize";class l5e{constructor(g,T,W,X,ue){this.vsWorker=g,this.req=T,this.channel=W,this.method=X,this.args=ue,this.type=0}}class Jbe{constructor(g,T,W,X){this.vsWorker=g,this.seq=T,this.res=W,this.err=X,this.type=1}}class c5e{constructor(g,T,W,X,ue){this.vsWorker=g,this.req=T,this.channel=W,this.eventName=X,this.arg=ue,this.type=2}}class u5e{constructor(g,T,W){this.vsWorker=g,this.req=T,this.event=W,this.type=3}}class d5e{constructor(g,T){this.vsWorker=g,this.req=T,this.type=4}}class p5e{constructor(g){this._workerId=-1,this._handler=g,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(g){this._workerId=g}sendMessage(g,T,W){const X=String(++this._lastSentReq);return new Promise((ue,Re)=>{this._pendingReplies[X]={resolve:ue,reject:Re},this._send(new l5e(this._workerId,X,g,T,W))})}listen(g,T,W){let X=null;const ue=new Qb({onWillAddFirstListener:()=>{X=String(++this._lastSentReq),this._pendingEmitters.set(X,ue),this._send(new c5e(this._workerId,X,g,T,W))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(X),this._send(new d5e(this._workerId,X)),X=null}});return ue.event}handleMessage(g){!g||!g.vsWorker||this._workerId!==-1&&g.vsWorker!==this._workerId||this._handleMessage(g)}createProxyToRemoteChannel(g,T){const W={get:(X,ue)=>(typeof ue=="string"&&!X[ue]&&(Xbe(ue)?X[ue]=Re=>this.listen(g,ue,Re):Kbe(ue)?X[ue]=this.listen(g,ue,void 0):ue.charCodeAt(0)===36&&(X[ue]=async(...Re)=>(await T?.(),this.sendMessage(g,ue,Re)))),X[ue])};return new Proxy(Object.create(null),W)}_handleMessage(g){switch(g.type){case 1:return this._handleReplyMessage(g);case 0:return this._handleRequestMessage(g);case 2:return this._handleSubscribeEventMessage(g);case 3:return this._handleEventMessage(g);case 4:return this._handleUnsubscribeEventMessage(g)}}_handleReplyMessage(g){if(!this._pendingReplies[g.seq]){console.warn("Got reply to unknown seq");return}const T=this._pendingReplies[g.seq];if(delete this._pendingReplies[g.seq],g.err){let W=g.err;g.err.$isError&&(W=new Error,W.name=g.err.name,W.message=g.err.message,W.stack=g.err.stack),T.reject(W);return}T.resolve(g.res)}_handleRequestMessage(g){const T=g.req;this._handler.handleMessage(g.channel,g.method,g.args).then(X=>{this._send(new Jbe(this._workerId,T,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=Dbe(X.detail)),this._send(new Jbe(this._workerId,T,void 0,Dbe(X)))})}_handleSubscribeEventMessage(g){const T=g.req,W=this._handler.handleEvent(g.channel,g.eventName,g.arg)(X=>{this._send(new u5e(this._workerId,T,X))});this._pendingEvents.set(T,W)}_handleEventMessage(g){if(!this._pendingEmitters.has(g.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(g.req).fire(g.event)}_handleUnsubscribeEventMessage(g){if(!this._pendingEvents.has(g.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(g.req).dispose(),this._pendingEvents.delete(g.req)}_send(g){const T=[];if(g.type===0)for(let W=0;W{g(W,X)},handleMessage:(W,X,ue)=>this._handleMessage(W,X,ue),handleEvent:(W,X,ue)=>this._handleEvent(W,X,ue)})}onmessage(g){this._protocol.handleMessage(g)}_handleMessage(g,T,W){if(g===Ote&&T===s5e)return this.initialize(W[0],W[1],W[2]);const X=g===Ote?this._requestHandler:this._localChannels.get(g);if(!X)return Promise.reject(new Error(`Missing channel ${g} on worker thread`));if(typeof X[T]!="function")return Promise.reject(new Error(`Missing method ${T} on worker thread channel ${g}`));try{return Promise.resolve(X[T].apply(X,W))}catch(ue){return Promise.reject(ue)}}_handleEvent(g,T,W){const X=g===Ote?this._requestHandler:this._localChannels.get(g);if(!X)throw new Error(`Missing channel ${g} on worker thread`);if(Xbe(T)){const ue=X[T].call(X,W);if(typeof ue!="function")throw new Error(`Missing dynamic event ${T} on request handler.`);return ue}if(Kbe(T)){const ue=X[T];if(typeof ue!="function")throw new Error(`Missing event ${T} on request handler.`);return ue}throw new Error(`Malformed event name ${T}`)}getChannel(g){if(!this._remoteChannels.has(g)){const T=this._protocol.createProxyToRemoteChannel(g);this._remoteChannels.set(g,T)}return this._remoteChannels.get(g)}async initialize(g,T,W){if(this._protocol.setWorkerId(g),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}return T&&(typeof T.baseUrl<"u"&&delete T.baseUrl,typeof T.paths<"u"&&typeof T.paths.vs<"u"&&delete T.paths.vs,typeof T.trustedTypesPolicy<"u"&&delete T.trustedTypesPolicy,T.catchError=!0,globalThis.require.config(T)),import(`${Hbe.asBrowserUri(`${W}.js`).toString(!0)}`).then(ue=>{if(this._requestHandler=ue.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}class Mx{constructor(g,T,W,X){this.originalStart=g,this.originalLength=T,this.modifiedStart=W,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ybe(E,g){return(g<<5)-g+E|0}function m5e(E,g){g=Ybe(149417,g);for(let T=0,W=E.length;T>>W)>>>0}function $be(E,g=0,T=E.byteLength,W=0){for(let X=0;XT.toString(16).padStart(2,"0")).join(""):_5e((E>>>0).toString(16),g/4)}class Qbe{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(g){const T=g.length;if(T===0)return;const W=this._buff;let X=this._buffLen,ue=this._leftoverHighSurrogate,Re,Be;for(ue!==0?(Re=ue,Be=-1,ue=0):(Re=g.charCodeAt(0),Be=0);;){let it=Re;if(NB(Re))if(Be+1>>6,g[T++]=128|(W&63)>>>0):W<65536?(g[T++]=224|(W&61440)>>>12,g[T++]=128|(W&4032)>>>6,g[T++]=128|(W&63)>>>0):(g[T++]=240|(W&1835008)>>>18,g[T++]=128|(W&258048)>>>12,g[T++]=128|(W&4032)>>>6,g[T++]=128|(W&63)>>>0),T>=64&&(this._step(),T-=64,this._totalLen+=64,g[0]=g[64],g[1]=g[65],g[2]=g[66]),T}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),d6(this._h0)+d6(this._h1)+d6(this._h2)+d6(this._h3)+d6(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,$be(this._buff,this._buffLen),this._buffLen>56&&(this._step(),$be(this._buff));const g=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(g/4294967296),!1),this._buffDV.setUint32(60,g%4294967296,!1),this._step()}_step(){const g=Qbe._bigBlock32,T=this._buffDV;for(let Ft=0;Ft<64;Ft+=4)g.setUint32(Ft,T.getUint32(Ft,!1),!1);for(let Ft=64;Ft<320;Ft+=4)g.setUint32(Ft,Wte(g.getUint32(Ft-12,!1)^g.getUint32(Ft-32,!1)^g.getUint32(Ft-56,!1)^g.getUint32(Ft-64,!1),1),!1);let W=this._h0,X=this._h1,ue=this._h2,Re=this._h3,Be=this._h4,it,Le,Xe;for(let Ft=0;Ft<80;Ft++)Ft<20?(it=X&ue|~X&Re,Le=1518500249):Ft<40?(it=X^ue^Re,Le=1859775393):Ft<60?(it=X&ue|X&Re|ue&Re,Le=2400959708):(it=X^ue^Re,Le=3395469782),Xe=Wte(W,5)+it+Be+Le+g.getUint32(Ft*4,!1)&4294967295,Be=Re,Re=ue,ue=Wte(X,30),X=W,W=Xe;this._h0=this._h0+W&4294967295,this._h1=this._h1+X&4294967295,this._h2=this._h2+ue&4294967295,this._h3=this._h3+Re&4294967295,this._h4=this._h4+Be&4294967295}}class Zbe{constructor(g){this.source=g}getElements(){const g=this.source,T=new Int32Array(g.length);for(let W=0,X=g.length;W0||this.m_modifiedCount>0)&&this.m_changes.push(new Mx(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(g,T){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,T),this.m_originalCount++}AddModifiedElement(g,T){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,T),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Lx{constructor(g,T,W=null){this.ContinueProcessingPredicate=W,this._originalSequence=g,this._modifiedSequence=T;const[X,ue,Re]=Lx._getElements(g),[Be,it,Le]=Lx._getElements(T);this._hasStrings=Re&&Le,this._originalStringElements=X,this._originalElementsOrHash=ue,this._modifiedStringElements=Be,this._modifiedElementsOrHash=it,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(g){return g.length>0&&typeof g[0]=="string"}static _getElements(g){const T=g.getElements();if(Lx._isStringArray(T)){const W=new Int32Array(T.length);for(let X=0,ue=T.length;X=g&&X>=W&&this.ElementsAreEqual(T,X);)T--,X--;if(g>T||W>X){let Ft;return W<=X?(E2.Assert(g===T+1,"originalStart should only be one more than originalEnd"),Ft=[new Mx(g,0,W,X-W+1)]):g<=T?(E2.Assert(W===X+1,"modifiedStart should only be one more than modifiedEnd"),Ft=[new Mx(g,T-g+1,W,0)]):(E2.Assert(g===T+1,"originalStart should only be one more than originalEnd"),E2.Assert(W===X+1,"modifiedStart should only be one more than modifiedEnd"),Ft=[]),Ft}const Re=[0],Be=[0],it=this.ComputeRecursionPoint(g,T,W,X,Re,Be,ue),Le=Re[0],Xe=Be[0];if(it!==null)return it;if(!ue[0]){const Ft=this.ComputeDiffRecursive(g,Le,W,Xe,ue);let qt=[];return ue[0]?qt=[new Mx(Le+1,T-(Le+1)+1,Xe+1,X-(Xe+1)+1)]:qt=this.ComputeDiffRecursive(Le+1,T,Xe+1,X,ue),this.ConcatenateChanges(Ft,qt)}return[new Mx(g,T-g+1,W,X-W+1)]}WALKTRACE(g,T,W,X,ue,Re,Be,it,Le,Xe,Ft,qt,mn,Kr,Ei,co,Zn,An){let Oo=null,Br=null,Bi=new e0e,Uo=T,Nr=W,Na=mn[0]-co[0]-X,Ec=-1073741824,au=this.m_forwardHistory.length-1;do{const nr=Na+g;nr===Uo||nr=0&&(Le=this.m_forwardHistory[au],g=Le[0],Uo=1,Nr=Le.length-1)}while(--au>=-1);if(Oo=Bi.getReverseChanges(),An[0]){let nr=mn[0]+1,Xs=co[0]+1;if(Oo!==null&&Oo.length>0){const Vo=Oo[Oo.length-1];nr=Math.max(nr,Vo.getOriginalEnd()),Xs=Math.max(Xs,Vo.getModifiedEnd())}Br=[new Mx(nr,qt-nr+1,Xs,Ei-Xs+1)]}else{Bi=new e0e,Uo=Re,Nr=Be,Na=mn[0]-co[0]-it,Ec=1073741824,au=Zn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const nr=Na+ue;nr===Uo||nr=Xe[nr+1]?(Ft=Xe[nr+1]-1,Kr=Ft-Na-it,Ft>Ec&&Bi.MarkNextChange(),Ec=Ft+1,Bi.AddOriginalElement(Ft+1,Kr+1),Na=nr+1-ue):(Ft=Xe[nr-1],Kr=Ft-Na-it,Ft>Ec&&Bi.MarkNextChange(),Ec=Ft,Bi.AddModifiedElement(Ft+1,Kr+1),Na=nr-1-ue),au>=0&&(Xe=this.m_reverseHistory[au],ue=Xe[0],Uo=1,Nr=Xe.length-1)}while(--au>=-1);Br=Bi.getChanges()}return this.ConcatenateChanges(Oo,Br)}ComputeRecursionPoint(g,T,W,X,ue,Re,Be){let it=0,Le=0,Xe=0,Ft=0,qt=0,mn=0;g--,W--,ue[0]=0,Re[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Kr=T-g+(X-W),Ei=Kr+1,co=new Int32Array(Ei),Zn=new Int32Array(Ei),An=X-W,Oo=T-g,Br=g-W,Bi=T-X,Nr=(Oo-An)%2===0;co[An]=g,Zn[Oo]=T,Be[0]=!1;for(let Na=1;Na<=Kr/2+1;Na++){let Ec=0,au=0;Xe=this.ClipDiagonalBound(An-Na,Na,An,Ei),Ft=this.ClipDiagonalBound(An+Na,Na,An,Ei);for(let Xs=Xe;Xs<=Ft;Xs+=2){Xs===Xe||XsEc+au&&(Ec=it,au=Le),!Nr&&Math.abs(Xs-Oo)<=Na-1&&it>=Zn[Xs])return ue[0]=it,Re[0]=Le,Vo<=Zn[Xs]&&Na<=1448?this.WALKTRACE(An,Xe,Ft,Br,Oo,qt,mn,Bi,co,Zn,it,T,ue,Le,X,Re,Nr,Be):null}const nr=(Ec-g+(au-W)-Na)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ec,nr))return Be[0]=!0,ue[0]=Ec,Re[0]=au,nr>0&&Na<=1448?this.WALKTRACE(An,Xe,Ft,Br,Oo,qt,mn,Bi,co,Zn,it,T,ue,Le,X,Re,Nr,Be):(g++,W++,[new Mx(g,T-g+1,W,X-W+1)]);qt=this.ClipDiagonalBound(Oo-Na,Na,Oo,Ei),mn=this.ClipDiagonalBound(Oo+Na,Na,Oo,Ei);for(let Xs=qt;Xs<=mn;Xs+=2){Xs===qt||Xs=Zn[Xs+1]?it=Zn[Xs+1]-1:it=Zn[Xs-1],Le=it-(Xs-Oo)-Bi;const Vo=it;for(;it>g&&Le>W&&this.ElementsAreEqual(it,Le);)it--,Le--;if(Zn[Xs]=it,Nr&&Math.abs(Xs-An)<=Na&&it<=co[Xs])return ue[0]=it,Re[0]=Le,Vo>=co[Xs]&&Na<=1448?this.WALKTRACE(An,Xe,Ft,Br,Oo,qt,mn,Bi,co,Zn,it,T,ue,Le,X,Re,Nr,Be):null}if(Na<=1447){let Xs=new Int32Array(Ft-Xe+2);Xs[0]=An-Xe+1,S2.Copy2(co,Xe,Xs,1,Ft-Xe+1),this.m_forwardHistory.push(Xs),Xs=new Int32Array(mn-qt+2),Xs[0]=Oo-qt+1,S2.Copy2(Zn,qt,Xs,1,mn-qt+1),this.m_reverseHistory.push(Xs)}}return this.WALKTRACE(An,Xe,Ft,Br,Oo,qt,mn,Bi,co,Zn,it,T,ue,Le,X,Re,Nr,Be)}PrettifyChanges(g){for(let T=0;T0,Be=W.modifiedLength>0;for(;W.originalStart+W.originalLength=0;T--){const W=g[T];let X=0,ue=0;if(T>0){const Ft=g[T-1];X=Ft.originalStart+Ft.originalLength,ue=Ft.modifiedStart+Ft.modifiedLength}const Re=W.originalLength>0,Be=W.modifiedLength>0;let it=0,Le=this._boundaryScore(W.originalStart,W.originalLength,W.modifiedStart,W.modifiedLength);for(let Ft=1;;Ft++){const qt=W.originalStart-Ft,mn=W.modifiedStart-Ft;if(qtLe&&(Le=Ei,it=Ft)}W.originalStart-=it,W.modifiedStart-=it;const Xe=[null];if(T>0&&this.ChangesOverlap(g[T-1],g[T],Xe)){g[T-1]=Xe[0],g.splice(T,1),T++;continue}}if(this._hasStrings)for(let T=1,W=g.length;T0&&mn>it&&(it=mn,Le=Ft,Xe=qt)}return it>0?[Le,Xe]:null}_contiguousSequenceScore(g,T,W){let X=0;for(let ue=0;ue=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[g])}_OriginalRegionIsBoundary(g,T){if(this._OriginalIsBoundary(g)||this._OriginalIsBoundary(g-1))return!0;if(T>0){const W=g+T;if(this._OriginalIsBoundary(W-1)||this._OriginalIsBoundary(W))return!0}return!1}_ModifiedIsBoundary(g){return g<=0||g>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[g])}_ModifiedRegionIsBoundary(g,T){if(this._ModifiedIsBoundary(g)||this._ModifiedIsBoundary(g-1))return!0;if(T>0){const W=g+T;if(this._ModifiedIsBoundary(W-1)||this._ModifiedIsBoundary(W))return!0}return!1}_boundaryScore(g,T,W,X){const ue=this._OriginalRegionIsBoundary(g,T)?1:0,Re=this._ModifiedRegionIsBoundary(W,X)?1:0;return ue+Re}ConcatenateChanges(g,T){const W=[];if(g.length===0||T.length===0)return T.length>0?T:g;if(this.ChangesOverlap(g[g.length-1],T[0],W)){const X=new Array(g.length+T.length-1);return S2.Copy(g,0,X,0,g.length-1),X[g.length-1]=W[0],S2.Copy(T,1,X,g.length,T.length-1),X}else{const X=new Array(g.length+T.length);return S2.Copy(g,0,X,0,g.length),S2.Copy(T,0,X,g.length,T.length),X}}ChangesOverlap(g,T,W){if(E2.Assert(g.originalStart<=T.originalStart,"Left change is not less than or equal to right change"),E2.Assert(g.modifiedStart<=T.modifiedStart,"Left change is not less than or equal to right change"),g.originalStart+g.originalLength>=T.originalStart||g.modifiedStart+g.modifiedLength>=T.modifiedStart){const X=g.originalStart;let ue=g.originalLength;const Re=g.modifiedStart;let Be=g.modifiedLength;return g.originalStart+g.originalLength>=T.originalStart&&(ue=T.originalStart+T.originalLength-g.originalStart),g.modifiedStart+g.modifiedLength>=T.modifiedStart&&(Be=T.modifiedStart+T.modifiedLength-g.modifiedStart),W[0]=new Mx(X,ue,Re,Be),!0}else return W[0]=null,!1}ClipDiagonalBound(g,T,W,X){if(g>=0&&gW||g===W&&T>X?(this.startLineNumber=W,this.startColumn=X,this.endLineNumber=g,this.endColumn=T):(this.startLineNumber=g,this.startColumn=T,this.endLineNumber=W,this.endColumn=X)}isEmpty(){return vs.isEmpty(this)}static isEmpty(g){return g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn}containsPosition(g){return vs.containsPosition(this,g)}static containsPosition(g,T){return!(T.lineNumberg.endLineNumber||T.lineNumber===g.startLineNumber&&T.columng.endColumn)}static strictContainsPosition(g,T){return!(T.lineNumberg.endLineNumber||T.lineNumber===g.startLineNumber&&T.column<=g.startColumn||T.lineNumber===g.endLineNumber&&T.column>=g.endColumn)}containsRange(g){return vs.containsRange(this,g)}static containsRange(g,T){return!(T.startLineNumberg.endLineNumber||T.endLineNumber>g.endLineNumber||T.startLineNumber===g.startLineNumber&&T.startColumng.endColumn)}strictContainsRange(g){return vs.strictContainsRange(this,g)}static strictContainsRange(g,T){return!(T.startLineNumberg.endLineNumber||T.endLineNumber>g.endLineNumber||T.startLineNumber===g.startLineNumber&&T.startColumn<=g.startColumn||T.endLineNumber===g.endLineNumber&&T.endColumn>=g.endColumn)}plusRange(g){return vs.plusRange(this,g)}static plusRange(g,T){let W,X,ue,Re;return T.startLineNumberg.endLineNumber?(ue=T.endLineNumber,Re=T.endColumn):T.endLineNumber===g.endLineNumber?(ue=T.endLineNumber,Re=Math.max(T.endColumn,g.endColumn)):(ue=g.endLineNumber,Re=g.endColumn),new vs(W,X,ue,Re)}intersectRanges(g){return vs.intersectRanges(this,g)}static intersectRanges(g,T){let W=g.startLineNumber,X=g.startColumn,ue=g.endLineNumber,Re=g.endColumn;const Be=T.startLineNumber,it=T.startColumn,Le=T.endLineNumber,Xe=T.endColumn;return WLe?(ue=Le,Re=Xe):ue===Le&&(Re=Math.min(Re,Xe)),W>ue||W===ue&&X>Re?null:new vs(W,X,ue,Re)}equalsRange(g){return vs.equalsRange(this,g)}static equalsRange(g,T){return!g&&!T?!0:!!g&&!!T&&g.startLineNumber===T.startLineNumber&&g.startColumn===T.startColumn&&g.endLineNumber===T.endLineNumber&&g.endColumn===T.endColumn}getEndPosition(){return vs.getEndPosition(this)}static getEndPosition(g){return new rd(g.endLineNumber,g.endColumn)}getStartPosition(){return vs.getStartPosition(this)}static getStartPosition(g){return new rd(g.startLineNumber,g.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(g,T){return new vs(this.startLineNumber,this.startColumn,g,T)}setStartPosition(g,T){return new vs(g,T,this.endLineNumber,this.endColumn)}collapseToStart(){return vs.collapseToStart(this)}static collapseToStart(g){return new vs(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn)}collapseToEnd(){return vs.collapseToEnd(this)}static collapseToEnd(g){return new vs(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn)}delta(g){return new vs(this.startLineNumber+g,this.startColumn,this.endLineNumber+g,this.endColumn)}static fromPositions(g,T=g){return new vs(g.lineNumber,g.column,T.lineNumber,T.column)}static lift(g){return g?new vs(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):null}static isIRange(g){return g&&typeof g.startLineNumber=="number"&&typeof g.startColumn=="number"&&typeof g.endLineNumber=="number"&&typeof g.endColumn=="number"}static areIntersectingOrTouching(g,T){return!(g.endLineNumberg.startLineNumber}toJSON(){return this}}function t0e(E){return E<0?0:E>255?255:E|0}function T2(E){return E<0?0:E>4294967295?4294967295:E|0}class Fte{constructor(g){const T=t0e(g);this._defaultValue=T,this._asciiMap=Fte._createAsciiMap(T),this._map=new Map}static _createAsciiMap(g){const T=new Uint8Array(256);return T.fill(g),T}set(g,T){const W=t0e(T);g>=0&&g<256?this._asciiMap[g]=W:this._map.set(g,W)}get(g){return g>=0&&g<256?this._asciiMap[g]:this._map.get(g)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class g5e{constructor(g,T,W){const X=new Uint8Array(g*T);for(let ue=0,Re=g*T;ueT&&(T=it),Be>W&&(W=Be),Le>W&&(W=Le)}T++,W++;const X=new g5e(W,T,0);for(let ue=0,Re=g.length;ue=this._maxCharCode?0:this._states.get(g,T)}}let zte=null;function v5e(){return zte===null&&(zte=new y5e([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),zte}let p6=null;function b5e(){if(p6===null){p6=new Fte(0);const E=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let T=0;TX);if(X>0){const Be=T.charCodeAt(X-1),it=T.charCodeAt(Re);(Be===40&&it===41||Be===91&&it===93||Be===123&&it===125)&&Re--}return{range:{startLineNumber:W,startColumn:X+1,endLineNumber:W,endColumn:Re+2},url:T.substring(X,Re+1)}}static computeLinks(g,T=v5e()){const W=b5e(),X=[];for(let ue=1,Re=g.getLineCount();ue<=Re;ue++){const Be=g.getLineContent(ue),it=Be.length;let Le=0,Xe=0,Ft=0,qt=1,mn=!1,Kr=!1,Ei=!1,co=!1;for(;Le=0?(X+=W?1:-1,X<0?X=g.length-1:X%=g.length,g[X]):null}}const n0e=Object.freeze(function(E,g){const T=setTimeout(E.bind(g),0);return{dispose(){clearTimeout(T)}}});var wB;(function(E){function g(T){return T===E.None||T===E.Cancelled||T instanceof OB?!0:!T||typeof T!="object"?!1:typeof T.isCancellationRequested=="boolean"&&typeof T.onCancellationRequested=="function"}E.isCancellationToken=g,E.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:xB.None}),E.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n0e})})(wB||(wB={}));class OB{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?n0e:(this._emitter||(this._emitter=new Qb),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class S5e{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new OB),this._token}cancel(){this._token?this._token instanceof OB&&this._token.cancel():this._token=wB.Cancelled}dispose(g=!1){g&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof OB&&this._token.dispose():this._token=wB.None}}class Gte{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(g,T){this._keyCodeToStr[g]=T,this._strToKeyCode[T.toLowerCase()]=g}keyCodeToStr(g){return this._keyCodeToStr[g]}strToKeyCode(g){return this._strToKeyCode[g.toLowerCase()]||0}}const WB=new Gte,Vte=new Gte,jte=new Gte,T5e=new Array(230),A5e=Object.create(null),I5e=Object.create(null);(function(){const g=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],T=[],W=[];for(const X of g){const[ue,Re,Be,it,Le,Xe,Ft,qt,mn]=X;if(W[Re]||(W[Re]=!0,A5e[Be]=Re,I5e[Be.toLowerCase()]=Re),!T[it]){if(T[it]=!0,!Le)throw new Error(`String representation missing for key code ${it} around scan code ${Be}`);WB.define(it,Le),Vte.define(it,qt||Le),jte.define(it,mn||qt||Le)}Xe&&(T5e[Xe]=it)}})();var r0e;(function(E){function g(Be){return WB.keyCodeToStr(Be)}E.toString=g;function T(Be){return WB.strToKeyCode(Be)}E.fromString=T;function W(Be){return Vte.keyCodeToStr(Be)}E.toUserSettingsUS=W;function X(Be){return jte.keyCodeToStr(Be)}E.toUserSettingsGeneral=X;function ue(Be){return Vte.strToKeyCode(Be)||jte.strToKeyCode(Be)}E.fromUserSettings=ue;function Re(Be){if(Be>=98&&Be<=113)return null;switch(Be){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return WB.keyCodeToStr(Be)}E.toElectronAccelerator=Re})(r0e||(r0e={}));function x5e(E,g){const T=(g&65535)<<16>>>0;return(E|T)>>>0}class Tv extends vs{constructor(g,T,W,X){super(g,T,W,X),this.selectionStartLineNumber=g,this.selectionStartColumn=T,this.positionLineNumber=W,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(g){return Tv.selectionsEqual(this,g)}static selectionsEqual(g,T){return g.selectionStartLineNumber===T.selectionStartLineNumber&&g.selectionStartColumn===T.selectionStartColumn&&g.positionLineNumber===T.positionLineNumber&&g.positionColumn===T.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(g,T){return this.getDirection()===0?new Tv(this.startLineNumber,this.startColumn,g,T):new Tv(g,T,this.startLineNumber,this.startColumn)}getPosition(){return new rd(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rd(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(g,T){return this.getDirection()===0?new Tv(g,T,this.endLineNumber,this.endColumn):new Tv(this.endLineNumber,this.endColumn,g,T)}static fromPositions(g,T=g){return new Tv(g.lineNumber,g.column,T.lineNumber,T.column)}static fromRange(g,T){return T===0?new Tv(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new Tv(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn)}static liftSelection(g){return new Tv(g.selectionStartLineNumber,g.selectionStartColumn,g.positionLineNumber,g.positionColumn)}static selectionsArrEqual(g,T){if(g&&!T||!g&&T)return!1;if(!g&&!T)return!0;if(g.length!==T.length)return!1;for(let W=0,X=g.length;W{this._tokenizationSupports.get(g)===T&&(this._tokenizationSupports.delete(g),this.handleChange([g]))})}get(g){return this._tokenizationSupports.get(g)||null}registerFactory(g,T){this._factories.get(g)?.dispose();const W=new C5e(this,g,T);return this._factories.set(g,W),TB(()=>{const X=this._factories.get(g);!X||X!==W||(this._factories.delete(g),X.dispose())})}async getOrCreate(g){const T=this.get(g);if(T)return T;const W=this._factories.get(g);return!W||W.isResolved?null:(await W.resolve(),this.get(g))}isResolved(g){if(this.get(g))return!0;const W=this._factories.get(g);return!!(!W||W.isResolved)}setColorMap(g){this._colorMap=g,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class C5e extends AB{get isResolved(){return this._isResolved}constructor(g,T,W){super(),this._registry=g,this._languageId=T,this._factory=W,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const g=await this._factory.tokenizationSupport;this._isResolved=!0,g&&!this._isDisposed&&this._register(this._registry.register(this._languageId,g))}}class P5e{constructor(g,T,W){this.offset=g,this.type=T,this.language=W,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var a0e;(function(E){E[E.Increase=0]="Increase",E[E.Decrease=1]="Decrease"})(a0e||(a0e={}));var s0e;(function(E){const g=new Map;g.set(0,_s.symbolMethod),g.set(1,_s.symbolFunction),g.set(2,_s.symbolConstructor),g.set(3,_s.symbolField),g.set(4,_s.symbolVariable),g.set(5,_s.symbolClass),g.set(6,_s.symbolStruct),g.set(7,_s.symbolInterface),g.set(8,_s.symbolModule),g.set(9,_s.symbolProperty),g.set(10,_s.symbolEvent),g.set(11,_s.symbolOperator),g.set(12,_s.symbolUnit),g.set(13,_s.symbolValue),g.set(15,_s.symbolEnum),g.set(14,_s.symbolConstant),g.set(15,_s.symbolEnum),g.set(16,_s.symbolEnumMember),g.set(17,_s.symbolKeyword),g.set(27,_s.symbolSnippet),g.set(18,_s.symbolText),g.set(19,_s.symbolColor),g.set(20,_s.symbolFile),g.set(21,_s.symbolReference),g.set(22,_s.symbolCustomColor),g.set(23,_s.symbolFolder),g.set(24,_s.symbolTypeParameter),g.set(25,_s.account),g.set(26,_s.issues);function T(ue){let Re=g.get(ue);return Re||(console.info("No codicon found for CompletionItemKind "+ue),Re=_s.symbolProperty),Re}E.toIcon=T;const W=new Map;W.set("method",0),W.set("function",1),W.set("constructor",2),W.set("field",3),W.set("variable",4),W.set("class",5),W.set("struct",6),W.set("interface",7),W.set("module",8),W.set("property",9),W.set("event",10),W.set("operator",11),W.set("unit",12),W.set("value",13),W.set("constant",14),W.set("enum",15),W.set("enum-member",16),W.set("enumMember",16),W.set("keyword",17),W.set("snippet",27),W.set("text",18),W.set("color",19),W.set("file",20),W.set("reference",21),W.set("customcolor",22),W.set("folder",23),W.set("type-parameter",24),W.set("typeParameter",24),W.set("account",25),W.set("issue",26);function X(ue,Re){let Be=W.get(ue);return typeof Be>"u"&&!Re&&(Be=9),Be}E.fromString=X})(s0e||(s0e={}));var l0e;(function(E){E[E.Automatic=0]="Automatic",E[E.Explicit=1]="Explicit"})(l0e||(l0e={}));var c0e;(function(E){E[E.Automatic=0]="Automatic",E[E.PasteAs=1]="PasteAs"})(c0e||(c0e={}));var u0e;(function(E){E[E.Invoke=1]="Invoke",E[E.TriggerCharacter=2]="TriggerCharacter",E[E.ContentChange=3]="ContentChange"})(u0e||(u0e={}));var d0e;(function(E){E[E.Text=0]="Text",E[E.Read=1]="Read",E[E.Write=2]="Write"})(d0e||(d0e={})),Qd("Array","array"),Qd("Boolean","boolean"),Qd("Class","class"),Qd("Constant","constant"),Qd("Constructor","constructor"),Qd("Enum","enumeration"),Qd("EnumMember","enumeration member"),Qd("Event","event"),Qd("Field","field"),Qd("File","file"),Qd("Function","function"),Qd("Interface","interface"),Qd("Key","key"),Qd("Method","method"),Qd("Module","module"),Qd("Namespace","namespace"),Qd("Null","null"),Qd("Number","number"),Qd("Object","object"),Qd("Operator","operator"),Qd("Package","package"),Qd("Property","property"),Qd("String","string"),Qd("Struct","struct"),Qd("TypeParameter","type parameter"),Qd("Variable","variable");var p0e;(function(E){const g=new Map;g.set(0,_s.symbolFile),g.set(1,_s.symbolModule),g.set(2,_s.symbolNamespace),g.set(3,_s.symbolPackage),g.set(4,_s.symbolClass),g.set(5,_s.symbolMethod),g.set(6,_s.symbolProperty),g.set(7,_s.symbolField),g.set(8,_s.symbolConstructor),g.set(9,_s.symbolEnum),g.set(10,_s.symbolInterface),g.set(11,_s.symbolFunction),g.set(12,_s.symbolVariable),g.set(13,_s.symbolConstant),g.set(14,_s.symbolString),g.set(15,_s.symbolNumber),g.set(16,_s.symbolBoolean),g.set(17,_s.symbolArray),g.set(18,_s.symbolObject),g.set(19,_s.symbolKey),g.set(20,_s.symbolNull),g.set(21,_s.symbolEnumMember),g.set(22,_s.symbolStruct),g.set(23,_s.symbolEvent),g.set(24,_s.symbolOperator),g.set(25,_s.symbolTypeParameter);function T(W){let X=g.get(W);return X||(console.info("No codicon found for SymbolKind "+W),X=_s.symbolProperty),X}E.toIcon=T})(p0e||(p0e={}));class kx{static{this.Comment=new kx("comment")}static{this.Imports=new kx("imports")}static{this.Region=new kx("region")}static fromValue(g){switch(g){case"comment":return kx.Comment;case"imports":return kx.Imports;case"region":return kx.Region}return new kx(g)}constructor(g){this.value=g}}var f0e;(function(E){E[E.AIGenerated=1]="AIGenerated"})(f0e||(f0e={}));var m0e;(function(E){E[E.Invoke=0]="Invoke",E[E.Automatic=1]="Automatic"})(m0e||(m0e={}));var _0e;(function(E){function g(T){return!T||typeof T!="object"?!1:typeof T.id=="string"&&typeof T.title=="string"}E.is=g})(_0e||(_0e={}));var h0e;(function(E){E[E.Type=1]="Type",E[E.Parameter=2]="Parameter"})(h0e||(h0e={})),new o0e,new o0e;var g0e;(function(E){E[E.Invoke=0]="Invoke",E[E.Automatic=1]="Automatic"})(g0e||(g0e={}));var y0e;(function(E){E[E.Unknown=0]="Unknown",E[E.Disabled=1]="Disabled",E[E.Enabled=2]="Enabled"})(y0e||(y0e={}));var v0e;(function(E){E[E.Invoke=1]="Invoke",E[E.Auto=2]="Auto"})(v0e||(v0e={}));var b0e;(function(E){E[E.None=0]="None",E[E.KeepWhitespace=1]="KeepWhitespace",E[E.InsertAsSnippet=4]="InsertAsSnippet"})(b0e||(b0e={}));var E0e;(function(E){E[E.Method=0]="Method",E[E.Function=1]="Function",E[E.Constructor=2]="Constructor",E[E.Field=3]="Field",E[E.Variable=4]="Variable",E[E.Class=5]="Class",E[E.Struct=6]="Struct",E[E.Interface=7]="Interface",E[E.Module=8]="Module",E[E.Property=9]="Property",E[E.Event=10]="Event",E[E.Operator=11]="Operator",E[E.Unit=12]="Unit",E[E.Value=13]="Value",E[E.Constant=14]="Constant",E[E.Enum=15]="Enum",E[E.EnumMember=16]="EnumMember",E[E.Keyword=17]="Keyword",E[E.Text=18]="Text",E[E.Color=19]="Color",E[E.File=20]="File",E[E.Reference=21]="Reference",E[E.Customcolor=22]="Customcolor",E[E.Folder=23]="Folder",E[E.TypeParameter=24]="TypeParameter",E[E.User=25]="User",E[E.Issue=26]="Issue",E[E.Snippet=27]="Snippet"})(E0e||(E0e={}));var S0e;(function(E){E[E.Deprecated=1]="Deprecated"})(S0e||(S0e={}));var T0e;(function(E){E[E.Invoke=0]="Invoke",E[E.TriggerCharacter=1]="TriggerCharacter",E[E.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(T0e||(T0e={}));var A0e;(function(E){E[E.EXACT=0]="EXACT",E[E.ABOVE=1]="ABOVE",E[E.BELOW=2]="BELOW"})(A0e||(A0e={}));var I0e;(function(E){E[E.NotSet=0]="NotSet",E[E.ContentFlush=1]="ContentFlush",E[E.RecoverFromMarkers=2]="RecoverFromMarkers",E[E.Explicit=3]="Explicit",E[E.Paste=4]="Paste",E[E.Undo=5]="Undo",E[E.Redo=6]="Redo"})(I0e||(I0e={}));var x0e;(function(E){E[E.LF=1]="LF",E[E.CRLF=2]="CRLF"})(x0e||(x0e={}));var R0e;(function(E){E[E.Text=0]="Text",E[E.Read=1]="Read",E[E.Write=2]="Write"})(R0e||(R0e={}));var D0e;(function(E){E[E.None=0]="None",E[E.Keep=1]="Keep",E[E.Brackets=2]="Brackets",E[E.Advanced=3]="Advanced",E[E.Full=4]="Full"})(D0e||(D0e={}));var N0e;(function(E){E[E.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",E[E.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",E[E.accessibilitySupport=2]="accessibilitySupport",E[E.accessibilityPageSize=3]="accessibilityPageSize",E[E.ariaLabel=4]="ariaLabel",E[E.ariaRequired=5]="ariaRequired",E[E.autoClosingBrackets=6]="autoClosingBrackets",E[E.autoClosingComments=7]="autoClosingComments",E[E.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",E[E.autoClosingDelete=9]="autoClosingDelete",E[E.autoClosingOvertype=10]="autoClosingOvertype",E[E.autoClosingQuotes=11]="autoClosingQuotes",E[E.autoIndent=12]="autoIndent",E[E.automaticLayout=13]="automaticLayout",E[E.autoSurround=14]="autoSurround",E[E.bracketPairColorization=15]="bracketPairColorization",E[E.guides=16]="guides",E[E.codeLens=17]="codeLens",E[E.codeLensFontFamily=18]="codeLensFontFamily",E[E.codeLensFontSize=19]="codeLensFontSize",E[E.colorDecorators=20]="colorDecorators",E[E.colorDecoratorsLimit=21]="colorDecoratorsLimit",E[E.columnSelection=22]="columnSelection",E[E.comments=23]="comments",E[E.contextmenu=24]="contextmenu",E[E.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",E[E.cursorBlinking=26]="cursorBlinking",E[E.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",E[E.cursorStyle=28]="cursorStyle",E[E.cursorSurroundingLines=29]="cursorSurroundingLines",E[E.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",E[E.cursorWidth=31]="cursorWidth",E[E.disableLayerHinting=32]="disableLayerHinting",E[E.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",E[E.domReadOnly=34]="domReadOnly",E[E.dragAndDrop=35]="dragAndDrop",E[E.dropIntoEditor=36]="dropIntoEditor",E[E.emptySelectionClipboard=37]="emptySelectionClipboard",E[E.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",E[E.extraEditorClassName=39]="extraEditorClassName",E[E.fastScrollSensitivity=40]="fastScrollSensitivity",E[E.find=41]="find",E[E.fixedOverflowWidgets=42]="fixedOverflowWidgets",E[E.folding=43]="folding",E[E.foldingStrategy=44]="foldingStrategy",E[E.foldingHighlight=45]="foldingHighlight",E[E.foldingImportsByDefault=46]="foldingImportsByDefault",E[E.foldingMaximumRegions=47]="foldingMaximumRegions",E[E.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",E[E.fontFamily=49]="fontFamily",E[E.fontInfo=50]="fontInfo",E[E.fontLigatures=51]="fontLigatures",E[E.fontSize=52]="fontSize",E[E.fontWeight=53]="fontWeight",E[E.fontVariations=54]="fontVariations",E[E.formatOnPaste=55]="formatOnPaste",E[E.formatOnType=56]="formatOnType",E[E.glyphMargin=57]="glyphMargin",E[E.gotoLocation=58]="gotoLocation",E[E.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",E[E.hover=60]="hover",E[E.inDiffEditor=61]="inDiffEditor",E[E.inlineSuggest=62]="inlineSuggest",E[E.inlineEdit=63]="inlineEdit",E[E.letterSpacing=64]="letterSpacing",E[E.lightbulb=65]="lightbulb",E[E.lineDecorationsWidth=66]="lineDecorationsWidth",E[E.lineHeight=67]="lineHeight",E[E.lineNumbers=68]="lineNumbers",E[E.lineNumbersMinChars=69]="lineNumbersMinChars",E[E.linkedEditing=70]="linkedEditing",E[E.links=71]="links",E[E.matchBrackets=72]="matchBrackets",E[E.minimap=73]="minimap",E[E.mouseStyle=74]="mouseStyle",E[E.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",E[E.mouseWheelZoom=76]="mouseWheelZoom",E[E.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",E[E.multiCursorModifier=78]="multiCursorModifier",E[E.multiCursorPaste=79]="multiCursorPaste",E[E.multiCursorLimit=80]="multiCursorLimit",E[E.occurrencesHighlight=81]="occurrencesHighlight",E[E.overviewRulerBorder=82]="overviewRulerBorder",E[E.overviewRulerLanes=83]="overviewRulerLanes",E[E.padding=84]="padding",E[E.pasteAs=85]="pasteAs",E[E.parameterHints=86]="parameterHints",E[E.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",E[E.placeholder=88]="placeholder",E[E.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",E[E.quickSuggestions=90]="quickSuggestions",E[E.quickSuggestionsDelay=91]="quickSuggestionsDelay",E[E.readOnly=92]="readOnly",E[E.readOnlyMessage=93]="readOnlyMessage",E[E.renameOnType=94]="renameOnType",E[E.renderControlCharacters=95]="renderControlCharacters",E[E.renderFinalNewline=96]="renderFinalNewline",E[E.renderLineHighlight=97]="renderLineHighlight",E[E.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",E[E.renderValidationDecorations=99]="renderValidationDecorations",E[E.renderWhitespace=100]="renderWhitespace",E[E.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",E[E.roundedSelection=102]="roundedSelection",E[E.rulers=103]="rulers",E[E.scrollbar=104]="scrollbar",E[E.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",E[E.scrollBeyondLastLine=106]="scrollBeyondLastLine",E[E.scrollPredominantAxis=107]="scrollPredominantAxis",E[E.selectionClipboard=108]="selectionClipboard",E[E.selectionHighlight=109]="selectionHighlight",E[E.selectOnLineNumbers=110]="selectOnLineNumbers",E[E.showFoldingControls=111]="showFoldingControls",E[E.showUnused=112]="showUnused",E[E.snippetSuggestions=113]="snippetSuggestions",E[E.smartSelect=114]="smartSelect",E[E.smoothScrolling=115]="smoothScrolling",E[E.stickyScroll=116]="stickyScroll",E[E.stickyTabStops=117]="stickyTabStops",E[E.stopRenderingLineAfter=118]="stopRenderingLineAfter",E[E.suggest=119]="suggest",E[E.suggestFontSize=120]="suggestFontSize",E[E.suggestLineHeight=121]="suggestLineHeight",E[E.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",E[E.suggestSelection=123]="suggestSelection",E[E.tabCompletion=124]="tabCompletion",E[E.tabIndex=125]="tabIndex",E[E.unicodeHighlighting=126]="unicodeHighlighting",E[E.unusualLineTerminators=127]="unusualLineTerminators",E[E.useShadowDOM=128]="useShadowDOM",E[E.useTabStops=129]="useTabStops",E[E.wordBreak=130]="wordBreak",E[E.wordSegmenterLocales=131]="wordSegmenterLocales",E[E.wordSeparators=132]="wordSeparators",E[E.wordWrap=133]="wordWrap",E[E.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",E[E.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",E[E.wordWrapColumn=136]="wordWrapColumn",E[E.wordWrapOverride1=137]="wordWrapOverride1",E[E.wordWrapOverride2=138]="wordWrapOverride2",E[E.wrappingIndent=139]="wrappingIndent",E[E.wrappingStrategy=140]="wrappingStrategy",E[E.showDeprecated=141]="showDeprecated",E[E.inlayHints=142]="inlayHints",E[E.editorClassName=143]="editorClassName",E[E.pixelRatio=144]="pixelRatio",E[E.tabFocusMode=145]="tabFocusMode",E[E.layoutInfo=146]="layoutInfo",E[E.wrappingInfo=147]="wrappingInfo",E[E.defaultColorDecorators=148]="defaultColorDecorators",E[E.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",E[E.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(N0e||(N0e={}));var C0e;(function(E){E[E.TextDefined=0]="TextDefined",E[E.LF=1]="LF",E[E.CRLF=2]="CRLF"})(C0e||(C0e={}));var P0e;(function(E){E[E.LF=0]="LF",E[E.CRLF=1]="CRLF"})(P0e||(P0e={}));var M0e;(function(E){E[E.Left=1]="Left",E[E.Center=2]="Center",E[E.Right=3]="Right"})(M0e||(M0e={}));var L0e;(function(E){E[E.Increase=0]="Increase",E[E.Decrease=1]="Decrease"})(L0e||(L0e={}));var k0e;(function(E){E[E.None=0]="None",E[E.Indent=1]="Indent",E[E.IndentOutdent=2]="IndentOutdent",E[E.Outdent=3]="Outdent"})(k0e||(k0e={}));var w0e;(function(E){E[E.Both=0]="Both",E[E.Right=1]="Right",E[E.Left=2]="Left",E[E.None=3]="None"})(w0e||(w0e={}));var O0e;(function(E){E[E.Type=1]="Type",E[E.Parameter=2]="Parameter"})(O0e||(O0e={}));var W0e;(function(E){E[E.Automatic=0]="Automatic",E[E.Explicit=1]="Explicit"})(W0e||(W0e={}));var F0e;(function(E){E[E.Invoke=0]="Invoke",E[E.Automatic=1]="Automatic"})(F0e||(F0e={}));var Ute;(function(E){E[E.DependsOnKbLayout=-1]="DependsOnKbLayout",E[E.Unknown=0]="Unknown",E[E.Backspace=1]="Backspace",E[E.Tab=2]="Tab",E[E.Enter=3]="Enter",E[E.Shift=4]="Shift",E[E.Ctrl=5]="Ctrl",E[E.Alt=6]="Alt",E[E.PauseBreak=7]="PauseBreak",E[E.CapsLock=8]="CapsLock",E[E.Escape=9]="Escape",E[E.Space=10]="Space",E[E.PageUp=11]="PageUp",E[E.PageDown=12]="PageDown",E[E.End=13]="End",E[E.Home=14]="Home",E[E.LeftArrow=15]="LeftArrow",E[E.UpArrow=16]="UpArrow",E[E.RightArrow=17]="RightArrow",E[E.DownArrow=18]="DownArrow",E[E.Insert=19]="Insert",E[E.Delete=20]="Delete",E[E.Digit0=21]="Digit0",E[E.Digit1=22]="Digit1",E[E.Digit2=23]="Digit2",E[E.Digit3=24]="Digit3",E[E.Digit4=25]="Digit4",E[E.Digit5=26]="Digit5",E[E.Digit6=27]="Digit6",E[E.Digit7=28]="Digit7",E[E.Digit8=29]="Digit8",E[E.Digit9=30]="Digit9",E[E.KeyA=31]="KeyA",E[E.KeyB=32]="KeyB",E[E.KeyC=33]="KeyC",E[E.KeyD=34]="KeyD",E[E.KeyE=35]="KeyE",E[E.KeyF=36]="KeyF",E[E.KeyG=37]="KeyG",E[E.KeyH=38]="KeyH",E[E.KeyI=39]="KeyI",E[E.KeyJ=40]="KeyJ",E[E.KeyK=41]="KeyK",E[E.KeyL=42]="KeyL",E[E.KeyM=43]="KeyM",E[E.KeyN=44]="KeyN",E[E.KeyO=45]="KeyO",E[E.KeyP=46]="KeyP",E[E.KeyQ=47]="KeyQ",E[E.KeyR=48]="KeyR",E[E.KeyS=49]="KeyS",E[E.KeyT=50]="KeyT",E[E.KeyU=51]="KeyU",E[E.KeyV=52]="KeyV",E[E.KeyW=53]="KeyW",E[E.KeyX=54]="KeyX",E[E.KeyY=55]="KeyY",E[E.KeyZ=56]="KeyZ",E[E.Meta=57]="Meta",E[E.ContextMenu=58]="ContextMenu",E[E.F1=59]="F1",E[E.F2=60]="F2",E[E.F3=61]="F3",E[E.F4=62]="F4",E[E.F5=63]="F5",E[E.F6=64]="F6",E[E.F7=65]="F7",E[E.F8=66]="F8",E[E.F9=67]="F9",E[E.F10=68]="F10",E[E.F11=69]="F11",E[E.F12=70]="F12",E[E.F13=71]="F13",E[E.F14=72]="F14",E[E.F15=73]="F15",E[E.F16=74]="F16",E[E.F17=75]="F17",E[E.F18=76]="F18",E[E.F19=77]="F19",E[E.F20=78]="F20",E[E.F21=79]="F21",E[E.F22=80]="F22",E[E.F23=81]="F23",E[E.F24=82]="F24",E[E.NumLock=83]="NumLock",E[E.ScrollLock=84]="ScrollLock",E[E.Semicolon=85]="Semicolon",E[E.Equal=86]="Equal",E[E.Comma=87]="Comma",E[E.Minus=88]="Minus",E[E.Period=89]="Period",E[E.Slash=90]="Slash",E[E.Backquote=91]="Backquote",E[E.BracketLeft=92]="BracketLeft",E[E.Backslash=93]="Backslash",E[E.BracketRight=94]="BracketRight",E[E.Quote=95]="Quote",E[E.OEM_8=96]="OEM_8",E[E.IntlBackslash=97]="IntlBackslash",E[E.Numpad0=98]="Numpad0",E[E.Numpad1=99]="Numpad1",E[E.Numpad2=100]="Numpad2",E[E.Numpad3=101]="Numpad3",E[E.Numpad4=102]="Numpad4",E[E.Numpad5=103]="Numpad5",E[E.Numpad6=104]="Numpad6",E[E.Numpad7=105]="Numpad7",E[E.Numpad8=106]="Numpad8",E[E.Numpad9=107]="Numpad9",E[E.NumpadMultiply=108]="NumpadMultiply",E[E.NumpadAdd=109]="NumpadAdd",E[E.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",E[E.NumpadSubtract=111]="NumpadSubtract",E[E.NumpadDecimal=112]="NumpadDecimal",E[E.NumpadDivide=113]="NumpadDivide",E[E.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",E[E.ABNT_C1=115]="ABNT_C1",E[E.ABNT_C2=116]="ABNT_C2",E[E.AudioVolumeMute=117]="AudioVolumeMute",E[E.AudioVolumeUp=118]="AudioVolumeUp",E[E.AudioVolumeDown=119]="AudioVolumeDown",E[E.BrowserSearch=120]="BrowserSearch",E[E.BrowserHome=121]="BrowserHome",E[E.BrowserBack=122]="BrowserBack",E[E.BrowserForward=123]="BrowserForward",E[E.MediaTrackNext=124]="MediaTrackNext",E[E.MediaTrackPrevious=125]="MediaTrackPrevious",E[E.MediaStop=126]="MediaStop",E[E.MediaPlayPause=127]="MediaPlayPause",E[E.LaunchMediaPlayer=128]="LaunchMediaPlayer",E[E.LaunchMail=129]="LaunchMail",E[E.LaunchApp2=130]="LaunchApp2",E[E.Clear=131]="Clear",E[E.MAX_VALUE=132]="MAX_VALUE"})(Ute||(Ute={}));var Hte;(function(E){E[E.Hint=1]="Hint",E[E.Info=2]="Info",E[E.Warning=4]="Warning",E[E.Error=8]="Error"})(Hte||(Hte={}));var qte;(function(E){E[E.Unnecessary=1]="Unnecessary",E[E.Deprecated=2]="Deprecated"})(qte||(qte={}));var z0e;(function(E){E[E.Inline=1]="Inline",E[E.Gutter=2]="Gutter"})(z0e||(z0e={}));var B0e;(function(E){E[E.Normal=1]="Normal",E[E.Underlined=2]="Underlined"})(B0e||(B0e={}));var G0e;(function(E){E[E.UNKNOWN=0]="UNKNOWN",E[E.TEXTAREA=1]="TEXTAREA",E[E.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",E[E.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",E[E.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",E[E.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",E[E.CONTENT_TEXT=6]="CONTENT_TEXT",E[E.CONTENT_EMPTY=7]="CONTENT_EMPTY",E[E.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",E[E.CONTENT_WIDGET=9]="CONTENT_WIDGET",E[E.OVERVIEW_RULER=10]="OVERVIEW_RULER",E[E.SCROLLBAR=11]="SCROLLBAR",E[E.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",E[E.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(G0e||(G0e={}));var V0e;(function(E){E[E.AIGenerated=1]="AIGenerated"})(V0e||(V0e={}));var j0e;(function(E){E[E.Invoke=0]="Invoke",E[E.Automatic=1]="Automatic"})(j0e||(j0e={}));var U0e;(function(E){E[E.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",E[E.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",E[E.TOP_CENTER=2]="TOP_CENTER"})(U0e||(U0e={}));var H0e;(function(E){E[E.Left=1]="Left",E[E.Center=2]="Center",E[E.Right=4]="Right",E[E.Full=7]="Full"})(H0e||(H0e={}));var q0e;(function(E){E[E.Word=0]="Word",E[E.Line=1]="Line",E[E.Suggest=2]="Suggest"})(q0e||(q0e={}));var J0e;(function(E){E[E.Left=0]="Left",E[E.Right=1]="Right",E[E.None=2]="None",E[E.LeftOfInjectedText=3]="LeftOfInjectedText",E[E.RightOfInjectedText=4]="RightOfInjectedText"})(J0e||(J0e={}));var K0e;(function(E){E[E.Off=0]="Off",E[E.On=1]="On",E[E.Relative=2]="Relative",E[E.Interval=3]="Interval",E[E.Custom=4]="Custom"})(K0e||(K0e={}));var X0e;(function(E){E[E.None=0]="None",E[E.Text=1]="Text",E[E.Blocks=2]="Blocks"})(X0e||(X0e={}));var Y0e;(function(E){E[E.Smooth=0]="Smooth",E[E.Immediate=1]="Immediate"})(Y0e||(Y0e={}));var $0e;(function(E){E[E.Auto=1]="Auto",E[E.Hidden=2]="Hidden",E[E.Visible=3]="Visible"})($0e||($0e={}));var Jte;(function(E){E[E.LTR=0]="LTR",E[E.RTL=1]="RTL"})(Jte||(Jte={}));var Q0e;(function(E){E.Off="off",E.OnCode="onCode",E.On="on"})(Q0e||(Q0e={}));var Z0e;(function(E){E[E.Invoke=1]="Invoke",E[E.TriggerCharacter=2]="TriggerCharacter",E[E.ContentChange=3]="ContentChange"})(Z0e||(Z0e={}));var eEe;(function(E){E[E.File=0]="File",E[E.Module=1]="Module",E[E.Namespace=2]="Namespace",E[E.Package=3]="Package",E[E.Class=4]="Class",E[E.Method=5]="Method",E[E.Property=6]="Property",E[E.Field=7]="Field",E[E.Constructor=8]="Constructor",E[E.Enum=9]="Enum",E[E.Interface=10]="Interface",E[E.Function=11]="Function",E[E.Variable=12]="Variable",E[E.Constant=13]="Constant",E[E.String=14]="String",E[E.Number=15]="Number",E[E.Boolean=16]="Boolean",E[E.Array=17]="Array",E[E.Object=18]="Object",E[E.Key=19]="Key",E[E.Null=20]="Null",E[E.EnumMember=21]="EnumMember",E[E.Struct=22]="Struct",E[E.Event=23]="Event",E[E.Operator=24]="Operator",E[E.TypeParameter=25]="TypeParameter"})(eEe||(eEe={}));var tEe;(function(E){E[E.Deprecated=1]="Deprecated"})(tEe||(tEe={}));var nEe;(function(E){E[E.Hidden=0]="Hidden",E[E.Blink=1]="Blink",E[E.Smooth=2]="Smooth",E[E.Phase=3]="Phase",E[E.Expand=4]="Expand",E[E.Solid=5]="Solid"})(nEe||(nEe={}));var rEe;(function(E){E[E.Line=1]="Line",E[E.Block=2]="Block",E[E.Underline=3]="Underline",E[E.LineThin=4]="LineThin",E[E.BlockOutline=5]="BlockOutline",E[E.UnderlineThin=6]="UnderlineThin"})(rEe||(rEe={}));var iEe;(function(E){E[E.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",E[E.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",E[E.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",E[E.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(iEe||(iEe={}));var oEe;(function(E){E[E.None=0]="None",E[E.Same=1]="Same",E[E.Indent=2]="Indent",E[E.DeepIndent=3]="DeepIndent"})(oEe||(oEe={}));class M5e{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(g,T){return x5e(g,T)}}function L5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:S5e,Emitter:Qb,KeyCode:Ute,KeyMod:M5e,Position:rd,Range:vs,Selection:Tv,SelectionDirection:Jte,MarkerSeverity:Hte,MarkerTag:qte,Uri:Ty,Token:P5e}}class FB{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(g){return g.getChannel(FB.CHANNEL_NAME)}static setChannel(g,T){g.setChannel(FB.CHANNEL_NAME,T)}}var aEe;class k5e{constructor(){this[aEe]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(g){return this._map.has(g)}get(g,T=0){const W=this._map.get(g);if(W)return T!==0&&this.touch(W,T),W.value}set(g,T,W=0){let X=this._map.get(g);if(X)X.value=T,W!==0&&this.touch(X,W);else{switch(X={key:g,value:T,next:void 0,previous:void 0},W){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(g,X),this._size++}return this}delete(g){return!!this.remove(g)}remove(g){const T=this._map.get(g);if(T)return this._map.delete(g),this.removeItem(T),this._size--,T.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const g=this._head;return this._map.delete(g.key),this.removeItem(g),this._size--,g.value}forEach(g,T){const W=this._state;let X=this._head;for(;X;){if(T?g.bind(T)(X.value,X.key,this):g(X.value,X.key,this),this._state!==W)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){const g=this,T=this._state;let W=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==T)throw new Error("LinkedMap got modified during iteration.");if(W){const ue={value:W.key,done:!1};return W=W.next,ue}else return{value:void 0,done:!0}}};return X}values(){const g=this,T=this._state;let W=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==T)throw new Error("LinkedMap got modified during iteration.");if(W){const ue={value:W.value,done:!1};return W=W.next,ue}else return{value:void 0,done:!0}}};return X}entries(){const g=this,T=this._state;let W=this._head;const X={[Symbol.iterator](){return X},next(){if(g._state!==T)throw new Error("LinkedMap got modified during iteration.");if(W){const ue={value:[W.key,W.value],done:!1};return W=W.next,ue}else return{value:void 0,done:!0}}};return X}[(aEe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(g){if(g>=this.size)return;if(g===0){this.clear();return}let T=this._head,W=this.size;for(;T&&W>g;)this._map.delete(T.key),T=T.next,W--;this._head=T,this._size=W,T&&(T.previous=void 0),this._state++}trimNew(g){if(g>=this.size)return;if(g===0){this.clear();return}let T=this._tail,W=this.size;for(;T&&W>g;)this._map.delete(T.key),T=T.previous,W--;this._tail=T,this._size=W,T&&(T.next=void 0),this._state++}addItemFirst(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g,this._state++}addItemLast(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g,this._state++}removeItem(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{const T=g.next,W=g.previous;if(!T||!W)throw new Error("Invalid list");T.previous=W,W.next=T}g.next=void 0,g.previous=void 0,this._state++}touch(g,T){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(T!==1&&T!==2)){if(T===1){if(g===this._head)return;const W=g.next,X=g.previous;g===this._tail?(X.next=void 0,this._tail=X):(W.previous=X,X.next=W),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g,this._state++}else if(T===2){if(g===this._tail)return;const W=g.next,X=g.previous;g===this._head?(W.previous=void 0,this._head=W):(W.previous=X,X.next=W),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g,this._state++}}}toJSON(){const g=[];return this.forEach((T,W)=>{g.push([W,T])}),g}fromJSON(g){this.clear();for(const[T,W]of g)this.set(T,W)}}class w5e extends k5e{constructor(g,T=1){super(),this._limit=g,this._ratio=Math.min(Math.max(0,T),1)}get limit(){return this._limit}set limit(g){this._limit=g,this.checkTrim()}get(g,T=2){return super.get(g,T)}peek(g){return super.get(g,0)}set(g,T){return super.set(g,T,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class O5e extends w5e{constructor(g,T=1){super(g,T)}trim(g){this.trimOld(g)}set(g,T){return super.set(g,T),this.checkTrim(),this}}class W5e{constructor(){this.map=new Map}add(g,T){let W=this.map.get(g);W||(W=new Set,this.map.set(g,W)),W.add(T)}delete(g,T){const W=this.map.get(g);W&&(W.delete(T),W.size===0&&this.map.delete(g))}forEach(g,T){const W=this.map.get(g);W&&W.forEach(T)}get(g){const T=this.map.get(g);return T||new Set}}new O5e(10);function F5e(E){let g=[];for(;Object.prototype!==E;)g=g.concat(Object.getOwnPropertyNames(E)),E=Object.getPrototypeOf(E);return g}function sEe(E){const g=[];for(const T of F5e(E))typeof E[T]=="function"&&g.push(T);return g}function z5e(E,g){const T=X=>function(){const ue=Array.prototype.slice.call(arguments,0);return g(X,ue)},W={};for(const X of E)W[X]=T(X);return W}var lEe;(function(E){E[E.Left=1]="Left",E[E.Center=2]="Center",E[E.Right=4]="Right",E[E.Full=7]="Full"})(lEe||(lEe={}));var cEe;(function(E){E[E.Left=1]="Left",E[E.Center=2]="Center",E[E.Right=3]="Right"})(cEe||(cEe={}));var uEe;(function(E){E[E.Both=0]="Both",E[E.Right=1]="Right",E[E.Left=2]="Left",E[E.None=3]="None"})(uEe||(uEe={}));function B5e(E,g,T,W,X){if(W===0)return!0;const ue=g.charCodeAt(W-1);if(E.get(ue)!==0||ue===13||ue===10)return!0;if(X>0){const Re=g.charCodeAt(W);if(E.get(Re)!==0)return!0}return!1}function G5e(E,g,T,W,X){if(W+X===T)return!0;const ue=g.charCodeAt(W+X);if(E.get(ue)!==0||ue===13||ue===10)return!0;if(X>0){const Re=g.charCodeAt(W+X-1);if(E.get(Re)!==0)return!0}return!1}function V5e(E,g,T,W,X){return B5e(E,g,T,W,X)&&G5e(E,g,T,W,X)}class j5e{constructor(g,T){this._wordSeparators=g,this._searchRegex=T,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(g){this._searchRegex.lastIndex=g,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(g){const T=g.length;let W;do{if(this._prevMatchStartIndex+this._prevMatchLength===T||(W=this._searchRegex.exec(g),!W))return null;const X=W.index,ue=W[0].length;if(X===this._prevMatchStartIndex&&ue===this._prevMatchLength){if(ue===0){w7e(g,T,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=ue,!this._wordSeparators||V5e(this._wordSeparators,g,T,X,ue))return W}while(W);return null}}function U5e(E,g="Unreachable"){throw new Error(g)}function zB(E){if(!E()){debugger;E(),l6(new Ev("Assertion Failed"))}}function dEe(E,g){let T=0;for(;T/?";function q5e(E=""){let g="(-?\\d*\\.\\d\\w*)|([^";for(const T of H5e)E.indexOf(T)>=0||(g+="\\"+T);return g+="\\s]+)",new RegExp(g,"g")}const pEe=q5e();function fEe(E){let g=pEe;if(E&&E instanceof RegExp)if(E.global)g=E;else{let T="g";E.ignoreCase&&(T+="i"),E.multiline&&(T+="m"),E.unicode&&(T+="u"),g=new RegExp(E.source,T)}return g.lastIndex=0,g}const mEe=new d7e;mEe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Kte(E,g,T,W,X){if(g=fEe(g),X||(X=SB.first(mEe)),T.length>X.maxLen){let Le=E-X.maxLen/2;return Le<0?Le=0:W+=Le,T=T.substring(Le,E+X.maxLen/2),Kte(E,g,T,W,X)}const ue=Date.now(),Re=E-1-W;let Be=-1,it=null;for(let Le=1;!(Date.now()-ue>=X.timeBudget);Le++){const Xe=Re-X.windowSize*Le;g.lastIndex=Math.max(0,Xe);const Ft=J5e(g,T,Re,Be);if(!Ft&&it||(it=Ft,Xe<=0))break;Be=Xe}if(it){const Le={word:it[0],startColumn:W+1+it.index,endColumn:W+1+it.index+it[0].length};return g.lastIndex=0,Le}return null}function J5e(E,g,T,W){let X;for(;X=E.exec(g);){const ue=X.index||0;if(ue<=T&&E.lastIndex>=T)return X;if(W>0&&ue>W)return null}return null}class K5e{static computeUnicodeHighlights(g,T,W){const X=W?W.startLineNumber:1,ue=W?W.endLineNumber:g.getLineCount(),Re=new _Ee(T),Be=Re.getCandidateCodePoints();let it;Be==="allNonBasicAscii"?it=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):it=new RegExp(`${X5e(Array.from(Be))}`,"g");const Le=new j5e(null,it),Xe=[];let Ft=!1,qt,mn=0,Kr=0,Ei=0;e:for(let co=X,Zn=ue;co<=Zn;co++){const An=g.getLineContent(co),Oo=An.length;Le.reset(0);do if(qt=Le.next(An),qt){let Br=qt.index,Bi=qt.index+qt[0].length;if(Br>0){const Ec=An.charCodeAt(Br-1);NB(Ec)&&Br--}if(Bi+1=1e3){Ft=!0;break e}Xe.push(new vs(co,Br+1,co,Bi+1))}}while(qt)}return{ranges:Xe,hasMore:Ft,ambiguousCharacterCount:mn,invisibleCharacterCount:Kr,nonBasicAsciiCharacterCount:Ei}}static computeUnicodeHighlightReason(g,T){const W=new _Ee(T);switch(W.shouldHighlightNonBasicASCII(g,null)){case 0:return null;case 2:return{kind:1};case 3:{const ue=g.codePointAt(0),Re=W.ambiguousCharacters.getPrimaryConfusable(ue),Be=Rx.getLocales().filter(it=>!Rx.getInstance(new Set([...T.allowedLocales,it])).isAmbiguous(ue));return{kind:0,confusableWith:String.fromCodePoint(Re),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}}function X5e(E,g){return`[${P7e(E.map(W=>String.fromCodePoint(W)).join(""))}]`}class _Ee{constructor(g){this.options=g,this.allowedCodePoints=new Set(g.allowedCodePoints),this.ambiguousCharacters=Rx.getInstance(new Set(g.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const g=new Set;if(this.options.invisibleCharacters)for(const T of UN.codePoints)hEe(String.fromCodePoint(T))||g.add(T);if(this.options.ambiguousCharacters)for(const T of this.ambiguousCharacters.getConfusableCodePoints())g.add(T);for(const T of this.allowedCodePoints)g.delete(T);return g}shouldHighlightNonBasicASCII(g,T){const W=g.codePointAt(0);if(this.allowedCodePoints.has(W))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,ue=!1;if(T)for(const Re of T){const Be=Re.codePointAt(0),it=W7e(Re);X=X||it,!it&&!this.ambiguousCharacters.isAmbiguous(Be)&&!UN.isInvisibleCharacter(Be)&&(ue=!0)}return!X&&ue?0:this.options.invisibleCharacters&&!hEe(g)&&UN.isInvisibleCharacter(W)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(W)?3:0}}function hEe(E){return E===" "||E===` `||E===" "}class BB{constructor(g,T,W){this.changes=g,this.moves=T,this.hitTimeout=W}}class Y5e{constructor(g,T){this.lineRangeMapping=g,this.changes=T}}class Mc{static addRange(g,T){let W=0;for(;WT))return new Mc(g,T)}static ofLength(g){return new Mc(0,g)}static ofStartAndLength(g,T){return new Mc(g,g+T)}constructor(g,T){if(this.start=g,this.endExclusive=T,g>T)throw new Ev(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(g){return new Mc(this.start+g,this.endExclusive+g)}deltaStart(g){return new Mc(this.start+g,this.endExclusive)}deltaEnd(g){return new Mc(this.start,this.endExclusive+g)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(g){return this.start<=g&&g=g.endExclusive}slice(g){return g.slice(this.start,this.endExclusive)}substring(g){return g.substring(this.start,this.endExclusive)}clip(g){if(this.isEmpty)throw new Ev(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,g))}clipCyclic(g){if(this.isEmpty)throw new Ev(`Invalid clipping range: ${this.toString()}`);return g=this.endExclusive?this.start+(g-this.start)%this.length:g}forEach(g){for(let T=this.start;TT)throw new Ev(`startLineNumber ${g} cannot be after endLineNumberExclusive ${T}`);this.startLineNumber=g,this.endLineNumberExclusive=T}contains(g){return this.startLineNumber<=g&&gX.endLineNumberExclusive>=g.startLineNumber),W=f6(this._normalizedRanges,X=>X.startLineNumber<=g.endLineNumberExclusive)+1;if(T===W)this._normalizedRanges.splice(T,0,g);else if(T===W-1){const X=this._normalizedRanges[T];this._normalizedRanges[T]=X.join(g)}else{const X=this._normalizedRanges[T].join(this._normalizedRanges[W-1]).join(g);this._normalizedRanges.splice(T,W-T,X)}}contains(g){const T=A2(this._normalizedRanges,W=>W.startLineNumber<=g);return!!T&&T.endLineNumberExclusive>g}intersects(g){const T=A2(this._normalizedRanges,W=>W.startLineNumberg.startLineNumber}getUnion(g){if(this._normalizedRanges.length===0)return g;if(g._normalizedRanges.length===0)return this;const T=[];let W=0,X=0,ue=null;for(;W=Re.startLineNumber?ue=new Fl(ue.startLineNumber,Math.max(ue.endLineNumberExclusive,Re.endLineNumberExclusive)):(T.push(ue),ue=Re)}return ue!==null&&T.push(ue),new sS(T)}subtractFrom(g){const T=Xte(this._normalizedRanges,Re=>Re.endLineNumberExclusive>=g.startLineNumber),W=f6(this._normalizedRanges,Re=>Re.startLineNumber<=g.endLineNumberExclusive)+1;if(T===W)return new sS([g]);const X=[];let ue=g.startLineNumber;for(let Re=T;Reue&&X.push(new Fl(ue,Be.startLineNumber)),ue=Be.endLineNumberExclusive}return ueg.toString()).join(", ")}getIntersection(g){const T=[];let W=0,X=0;for(;WT.delta(g)))}}class I2{static{this.zero=new I2(0,0)}static betweenPositions(g,T){return g.lineNumber===T.lineNumber?new I2(0,T.column-g.column):new I2(T.lineNumber-g.lineNumber,T.column-1)}static ofRange(g){return I2.betweenPositions(g.getStartPosition(),g.getEndPosition())}static ofText(g){let T=0,W=0;for(const X of g)X===` `?(T++,W=0):W++;return new I2(T,W)}constructor(g,T){this.lineCount=g,this.columnCount=T}isGreaterThanOrEqualTo(g){return this.lineCount!==g.lineCount?this.lineCount>g.lineCount:this.columnCount>=g.columnCount}createRange(g){return this.lineCount===0?new vs(g.lineNumber,g.column,g.lineNumber,g.column+this.columnCount):new vs(g.lineNumber,g.column,g.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(g){return this.lineCount===0?new rd(g.lineNumber,g.column+this.columnCount):new rd(g.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}class Q5e{constructor(g,T){this.range=g,this.text=T}toSingleEditOperation(){return{range:this.range,text:this.text}}}class Zb{static inverse(g,T,W){const X=[];let ue=1,Re=1;for(const it of g){const Le=new Zb(new Fl(ue,it.original.startLineNumber),new Fl(Re,it.modified.startLineNumber));Le.modified.isEmpty||X.push(Le),ue=it.original.endLineNumberExclusive,Re=it.modified.endLineNumberExclusive}const Be=new Zb(new Fl(ue,T+1),new Fl(Re,W+1));return Be.modified.isEmpty||X.push(Be),X}static clip(g,T,W){const X=[];for(const ue of g){const Re=ue.original.intersect(T),Be=ue.modified.intersect(W);Re&&!Re.isEmpty&&Be&&!Be.isEmpty&&X.push(new Zb(Re,Be))}return X}constructor(g,T){this.original=g,this.modified=T}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Zb(this.modified,this.original)}join(g){return new Zb(this.original.join(g.original),this.modified.join(g.modified))}toRangeMapping(){const g=this.original.toInclusiveRange(),T=this.modified.toInclusiveRange();if(g&&T)return new SE(g,T);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new Ev("not a valid diff");return new SE(new vs(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new vs(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new SE(new vs(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new vs(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(g,T){if(gEe(this.original.endLineNumberExclusive,g)&&gEe(this.modified.endLineNumberExclusive,T))return new SE(new vs(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new vs(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new SE(vs.fromPositions(new rd(this.original.startLineNumber,1),x2(new rd(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),vs.fromPositions(new rd(this.modified.startLineNumber,1),x2(new rd(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),T)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new SE(vs.fromPositions(x2(new rd(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),g),x2(new rd(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),vs.fromPositions(x2(new rd(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),T),x2(new rd(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),T)));throw new Ev}}function x2(E,g){if(E.lineNumber<1)return new rd(1,1);if(E.lineNumber>g.length)return new rd(g.length,g[g.length-1].length+1);const T=g[E.lineNumber-1];return E.column>T.length+1?new rd(E.lineNumber,T.length+1):E}function gEe(E,g){return E>=1&&E<=g.length}class hA extends Zb{static fromRangeMappings(g){const T=Fl.join(g.map(X=>Fl.fromRangeInclusive(X.originalRange))),W=Fl.join(g.map(X=>Fl.fromRangeInclusive(X.modifiedRange)));return new hA(T,W,g)}constructor(g,T,W){super(g,T),this.innerChanges=W}flip(){return new hA(this.modified,this.original,this.innerChanges?.map(g=>g.flip()))}withInnerChangesFromLineRanges(){return new hA(this.original,this.modified,[this.toRangeMapping()])}}class SE{static assertSorted(g){for(let T=1;T${this.modifiedRange.toString()}}`}flip(){return new SE(this.modifiedRange,this.originalRange)}toTextEdit(g){const T=g.getValueOfRange(this.modifiedRange);return new Q5e(this.originalRange,T)}}const Z5e=3;class eze{computeDiff(g,T,W){const ue=new rze(g,T,{maxComputationTime:W.maxComputationTimeMs,shouldIgnoreTrimWhitespace:W.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Re=[];let Be=null;for(const it of ue.changes){let Le;it.originalEndLineNumber===0?Le=new Fl(it.originalStartLineNumber+1,it.originalStartLineNumber+1):Le=new Fl(it.originalStartLineNumber,it.originalEndLineNumber+1);let Xe;it.modifiedEndLineNumber===0?Xe=new Fl(it.modifiedStartLineNumber+1,it.modifiedStartLineNumber+1):Xe=new Fl(it.modifiedStartLineNumber,it.modifiedEndLineNumber+1);let Ft=new hA(Le,Xe,it.charChanges?.map(qt=>new SE(new vs(qt.originalStartLineNumber,qt.originalStartColumn,qt.originalEndLineNumber,qt.originalEndColumn),new vs(qt.modifiedStartLineNumber,qt.modifiedStartColumn,qt.modifiedEndLineNumber,qt.modifiedEndColumn))));Be&&(Be.modified.endLineNumberExclusive===Ft.modified.startLineNumber||Be.original.endLineNumberExclusive===Ft.original.startLineNumber)&&(Ft=new hA(Be.original.join(Ft.original),Be.modified.join(Ft.modified),Be.innerChanges&&Ft.innerChanges?Be.innerChanges.concat(Ft.innerChanges):void 0),Re.pop()),Re.push(Ft),Be=Ft}return zB(()=>dEe(Re,(it,Le)=>Le.original.startLineNumber-it.original.endLineNumberExclusive===Le.modified.startLineNumber-it.modified.endLineNumberExclusive&&it.original.endLineNumberExclusive(g===10?"\\n":String.fromCharCode(g))+`-(${this._lineNumbers[T]},${this._columns[T]})`).join(", ")+"]"}_assertIndex(g,T){if(g<0||g>=T.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(g){return g>0&&g===this._lineNumbers.length?this.getEndLineNumber(g-1):(this._assertIndex(g,this._lineNumbers),this._lineNumbers[g])}getEndLineNumber(g){return g===-1?this.getStartLineNumber(g+1):(this._assertIndex(g,this._lineNumbers),this._charCodes[g]===10?this._lineNumbers[g]+1:this._lineNumbers[g])}getStartColumn(g){return g>0&&g===this._columns.length?this.getEndColumn(g-1):(this._assertIndex(g,this._columns),this._columns[g])}getEndColumn(g){return g===-1?this.getStartColumn(g+1):(this._assertIndex(g,this._columns),this._charCodes[g]===10?1:this._columns[g]+1)}}class R2{constructor(g,T,W,X,ue,Re,Be,it){this.originalStartLineNumber=g,this.originalStartColumn=T,this.originalEndLineNumber=W,this.originalEndColumn=X,this.modifiedStartLineNumber=ue,this.modifiedStartColumn=Re,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=it}static createFromDiffChange(g,T,W){const X=T.getStartLineNumber(g.originalStart),ue=T.getStartColumn(g.originalStart),Re=T.getEndLineNumber(g.originalStart+g.originalLength-1),Be=T.getEndColumn(g.originalStart+g.originalLength-1),it=W.getStartLineNumber(g.modifiedStart),Le=W.getStartColumn(g.modifiedStart),Xe=W.getEndLineNumber(g.modifiedStart+g.modifiedLength-1),Ft=W.getEndColumn(g.modifiedStart+g.modifiedLength-1);return new R2(X,ue,Re,Be,it,Le,Xe,Ft)}}function nze(E){if(E.length<=1)return E;const g=[E[0]];let T=g[0];for(let W=1,X=E.length;W0&&T.originalLength<20&&T.modifiedLength>0&&T.modifiedLength<20&&ue()){const mn=W.createCharSequence(g,T.originalStart,T.originalStart+T.originalLength-1),Kr=X.createCharSequence(g,T.modifiedStart,T.modifiedStart+T.modifiedLength-1);if(mn.getElements().length>0&&Kr.getElements().length>0){let Ei=yEe(mn,Kr,ue,!0).changes;Be&&(Ei=nze(Ei)),qt=[];for(let co=0,Zn=Ei.length;co1&&Ei>1;){const co=qt.charCodeAt(Kr-2),Zn=mn.charCodeAt(Ei-2);if(co!==Zn)break;Kr--,Ei--}(Kr>1||Ei>1)&&this._pushTrimWhitespaceCharChange(X,ue+1,1,Kr,Re+1,1,Ei)}{let Kr=$te(qt,1),Ei=$te(mn,1);const co=qt.length+1,Zn=mn.length+1;for(;Kr!0;const g=Date.now();return()=>Date.now()-gW===X){if(E===g)return!0;if(!E||!g||E.length!==g.length)return!1;for(let W=0,X=E.length;W0}E.isGreaterThan=W;function X(ue){return ue===0}E.isNeitherLessOrGreaterThan=X,E.greaterThan=1,E.lessThan=-1,E.neitherLessOrGreaterThan=0})(Qte||(Qte={}));function VB(E,g){return(T,W)=>g(E(T),E(W))}const jB=(E,g)=>E-g;function cze(E){return(g,T)=>-E(g,T)}class UB{static{this.empty=new UB(g=>{})}constructor(g){this.iterate=g}toArray(){const g=[];return this.iterate(T=>(g.push(T),!0)),g}filter(g){return new UB(T=>this.iterate(W=>g(W)?T(W):!0))}map(g){return new UB(T=>this.iterate(W=>T(g(W))))}findLast(g){let T;return this.iterate(W=>(g(W)&&(T=W),!0)),T}findLastMaxBy(g){let T,W=!0;return this.iterate(X=>((W||Qte.isGreaterThan(g(X,T)))&&(W=!1,T=X),!0)),T}}class gA{static trivial(g,T){return new gA([new $p(Mc.ofLength(g.length),Mc.ofLength(T.length))],!1)}static trivialTimedOut(g,T){return new gA([new $p(Mc.ofLength(g.length),Mc.ofLength(T.length))],!0)}constructor(g,T){this.diffs=g,this.hitTimeout=T}}class $p{static invert(g,T){const W=[];return aze(g,(X,ue)=>{W.push($p.fromOffsetPairs(X?X.getEndExclusives():TE.zero,ue?ue.getStarts():new TE(T,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+T)))}),W}static fromOffsetPairs(g,T){return new $p(new Mc(g.offset1,T.offset1),new Mc(g.offset2,T.offset2))}static assertSorted(g){let T;for(const W of g){if(T&&!(T.seq1Range.endExclusive<=W.seq1Range.start&&T.seq2Range.endExclusive<=W.seq2Range.start))throw new Ev("Sequence diffs must be sorted");T=W}}constructor(g,T){this.seq1Range=g,this.seq2Range=T}swap(){return new $p(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(g){return new $p(this.seq1Range.join(g.seq1Range),this.seq2Range.join(g.seq2Range))}delta(g){return g===0?this:new $p(this.seq1Range.delta(g),this.seq2Range.delta(g))}deltaStart(g){return g===0?this:new $p(this.seq1Range.deltaStart(g),this.seq2Range.deltaStart(g))}deltaEnd(g){return g===0?this:new $p(this.seq1Range.deltaEnd(g),this.seq2Range.deltaEnd(g))}intersect(g){const T=this.seq1Range.intersect(g.seq1Range),W=this.seq2Range.intersect(g.seq2Range);if(!(!T||!W))return new $p(T,W)}getStarts(){return new TE(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new TE(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class TE{static{this.zero=new TE(0,0)}static{this.max=new TE(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(g,T){this.offset1=g,this.offset2=T}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(g){return g===0?this:new TE(this.offset1+g,this.offset2+g)}equals(g){return this.offset1===g.offset1&&this.offset2===g.offset2}}class _6{static{this.instance=new _6}isValid(){return!0}}class uze{constructor(g){if(this.timeout=g,this.startTime=Date.now(),this.valid=!0,g<=0)throw new Ev("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&Ei>0&&Re.get(Kr-1,Ei-1)===3&&(An+=Be.get(Kr-1,Ei-1)),An+=X?X(Kr,Ei):1):An=-1;const Oo=Math.max(co,Zn,An);if(Oo===An){const Br=Kr>0&&Ei>0?Be.get(Kr-1,Ei-1):0;Be.set(Kr,Ei,Br+1),Re.set(Kr,Ei,3)}else Oo===co?(Be.set(Kr,Ei,0),Re.set(Kr,Ei,1)):Oo===Zn&&(Be.set(Kr,Ei,0),Re.set(Kr,Ei,2));ue.set(Kr,Ei,Oo)}const it=[];let Le=g.length,Xe=T.length;function Ft(Kr,Ei){(Kr+1!==Le||Ei+1!==Xe)&&it.push(new $p(new Mc(Kr+1,Le),new Mc(Ei+1,Xe))),Le=Kr,Xe=Ei}let qt=g.length-1,mn=T.length-1;for(;qt>=0&&mn>=0;)Re.get(qt,mn)===3?(Ft(qt,mn),qt--,mn--):Re.get(qt,mn)===1?qt--:mn--;return Ft(-1,-1),it.reverse(),new gA(it,!1)}}class EEe{compute(g,T,W=_6.instance){if(g.length===0||T.length===0)return gA.trivial(g,T);const X=g,ue=T;function Re(Ei,co){for(;EiX.length||Br>ue.length)continue;const Bi=Re(Oo,Br);it.set(Xe,Bi);const Uo=Oo===Zn?Le.get(Xe+1):Le.get(Xe-1);if(Le.set(Xe,Bi!==Oo?new SEe(Uo,Oo,Br,Bi-Oo):Uo),it.get(Xe)===X.length&&it.get(Xe)-Xe===ue.length)break e}}let Ft=Le.get(Xe);const qt=[];let mn=X.length,Kr=ue.length;for(;;){const Ei=Ft?Ft.x+Ft.length:0,co=Ft?Ft.y+Ft.length:0;if((Ei!==mn||co!==Kr)&&qt.push(new $p(new Mc(Ei,mn),new Mc(co,Kr))),!Ft)break;mn=Ft.x,Kr=Ft.y,Ft=Ft.prev}return qt.reverse(),new gA(qt,!1)}}class SEe{constructor(g,T,W,X){this.prev=g,this.x=T,this.y=W,this.length=X}}class pze{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,T){if(g<0){if(g=-g-1,g>=this.negativeArr.length){const W=this.negativeArr;this.negativeArr=new Int32Array(W.length*2),this.negativeArr.set(W)}this.negativeArr[g]=T}else{if(g>=this.positiveArr.length){const W=this.positiveArr;this.positiveArr=new Int32Array(W.length*2),this.positiveArr.set(W)}this.positiveArr[g]=T}}}class fze{constructor(){this.positiveArr=[],this.negativeArr=[]}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,T){g<0?(g=-g-1,this.negativeArr[g]=T):this.positiveArr[g]=T}}class HB{constructor(g,T,W){this.lines=g,this.range=T,this.considerWhitespaceChanges=W,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let X=this.range.startLineNumber;X<=this.range.endLineNumber;X++){let ue=g[X-1],Re=0;X===this.range.startLineNumber&&this.range.startColumn>1&&(Re=this.range.startColumn-1,ue=ue.substring(Re)),this.lineStartOffsets.push(Re);let Be=0;if(!W){const Le=ue.trimStart();Be=ue.length-Le.length,ue=Le.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Be);const it=X===this.range.endLineNumber?Math.min(this.range.endColumn-1-Re-Be,ue.length):ue.length;for(let Le=0;LeString.fromCharCode(T)).join("")}getElement(g){return this.elements[g]}get length(){return this.elements.length}getBoundaryScore(g){const T=AEe(g>0?this.elements[g-1]:-1),W=AEe(gue<=g),X=g-this.firstElementOffsetByLineIdx[W];return new rd(this.range.startLineNumber+W,1+this.lineStartOffsets[W]+X+(X===0&&T==="left"?0:this.trimmedWsLengthsByLineIdx[W]))}translateRange(g){const T=this.translateOffset(g.start,"right"),W=this.translateOffset(g.endExclusive,"left");return W.isBefore(T)?vs.fromPositions(W,W):vs.fromPositions(T,W)}findWordContaining(g){if(g<0||g>=this.elements.length||!tne(this.elements[g]))return;let T=g;for(;T>0&&tne(this.elements[T-1]);)T--;let W=g;for(;WX<=g.start)??0,W=$5e(this.firstElementOffsetByLineIdx,X=>g.endExclusive<=X)??this.elements.length;return new Mc(T,W)}}function tne(E){return E>=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57}const mze={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function TEe(E){return mze[E]}function AEe(E){return E===10?8:E===13?7:ene(E)?6:E>=97&&E<=122?0:E>=65&&E<=90?1:E>=48&&E<=57?2:E===-1?3:E===44||E===59?5:4}function _ze(E,g,T,W,X,ue){let{moves:Re,excludedChanges:Be}=gze(E,g,T,ue);if(!ue.isValid())return[];const it=E.filter(Xe=>!Be.has(Xe)),Le=yze(it,W,X,g,T,ue);return lze(Re,Le),Re=vze(Re),Re=Re.filter(Xe=>{const Ft=Xe.original.toOffsetRange().slice(g).map(mn=>mn.trim());return Ft.join(` `).length>=15&&hze(Ft,mn=>mn.length>=2)>=2}),Re=bze(E,Re),Re}function hze(E,g){let T=0;for(const W of E)g(W)&&T++;return T}function gze(E,g,T,W){const X=[],ue=E.filter(it=>it.modified.isEmpty&&it.original.length>=3).map(it=>new h6(it.original,g,it)),Re=new Set(E.filter(it=>it.original.isEmpty&&it.modified.length>=3).map(it=>new h6(it.modified,T,it))),Be=new Set;for(const it of ue){let Le=-1,Xe;for(const Ft of Re){const qt=it.computeSimilarity(Ft);qt>Le&&(Le=qt,Xe=Ft)}if(Le>.9&&Xe&&(Re.delete(Xe),X.push(new Zb(it.range,Xe.range)),Be.add(it.source),Be.add(Xe.source)),!W.isValid())return{moves:X,excludedChanges:Be}}return{moves:X,excludedChanges:Be}}function yze(E,g,T,W,X,ue){const Re=[],Be=new W5e;for(const qt of E)for(let mn=qt.original.startLineNumber;mnqt.modified.startLineNumber,jB));for(const qt of E){let mn=[];for(let Kr=qt.modified.startLineNumber;Kr{for(const Br of mn)if(Br.originalLineRange.endLineNumberExclusive+1===An.endLineNumberExclusive&&Br.modifiedLineRange.endLineNumberExclusive+1===co.endLineNumberExclusive){Br.originalLineRange=new Fl(Br.originalLineRange.startLineNumber,An.endLineNumberExclusive),Br.modifiedLineRange=new Fl(Br.modifiedLineRange.startLineNumber,co.endLineNumberExclusive),Zn.push(Br);return}const Oo={modifiedLineRange:co,originalLineRange:An};it.push(Oo),Zn.push(Oo)}),mn=Zn}if(!ue.isValid())return[]}it.sort(cze(VB(qt=>qt.modifiedLineRange.length,jB)));const Le=new sS,Xe=new sS;for(const qt of it){const mn=qt.modifiedLineRange.startLineNumber-qt.originalLineRange.startLineNumber,Kr=Le.subtractFrom(qt.modifiedLineRange),Ei=Xe.subtractFrom(qt.originalLineRange).getWithDelta(mn),co=Kr.getIntersection(Ei);for(const Zn of co.ranges){if(Zn.length<3)continue;const An=Zn,Oo=Zn.delta(-mn);Re.push(new Zb(Oo,An)),Le.addRange(An),Xe.addRange(Oo)}}Re.sort(VB(qt=>qt.original.startLineNumber,jB));const Ft=new GB(E);for(let qt=0;qtUo.original.startLineNumber<=mn.original.startLineNumber),Ei=A2(E,Uo=>Uo.modified.startLineNumber<=mn.modified.startLineNumber),co=Math.max(mn.original.startLineNumber-Kr.original.startLineNumber,mn.modified.startLineNumber-Ei.modified.startLineNumber),Zn=Ft.findLastMonotonous(Uo=>Uo.original.startLineNumberUo.modified.startLineNumberW.length||Nr>X.length||Le.contains(Nr)||Xe.contains(Uo)||!IEe(W[Uo-1],X[Nr-1],ue))break}Br>0&&(Xe.addRange(new Fl(mn.original.startLineNumber-Br,mn.original.startLineNumber)),Le.addRange(new Fl(mn.modified.startLineNumber-Br,mn.modified.startLineNumber)));let Bi;for(Bi=0;BiW.length||Nr>X.length||Le.contains(Nr)||Xe.contains(Uo)||!IEe(W[Uo-1],X[Nr-1],ue))break}Bi>0&&(Xe.addRange(new Fl(mn.original.endLineNumberExclusive,mn.original.endLineNumberExclusive+Bi)),Le.addRange(new Fl(mn.modified.endLineNumberExclusive,mn.modified.endLineNumberExclusive+Bi))),(Br>0||Bi>0)&&(Re[qt]=new Zb(new Fl(mn.original.startLineNumber-Br,mn.original.endLineNumberExclusive+Bi),new Fl(mn.modified.startLineNumber-Br,mn.modified.endLineNumberExclusive+Bi)))}return Re}function IEe(E,g,T){if(E.trim()===g.trim())return!0;if(E.length>300&&g.length>300)return!1;const X=new EEe().compute(new HB([E],new vs(1,1,1,E.length),!1),new HB([g],new vs(1,1,1,g.length),!1),T);let ue=0;const Re=$p.invert(X.diffs,E.length);for(const Xe of Re)Xe.seq1Range.forEach(Ft=>{ene(E.charCodeAt(Ft))||ue++});function Be(Xe){let Ft=0;for(let qt=0;qtg.length?E:g);return ue/it>.6&&it>10}function vze(E){if(E.length===0)return E;E.sort(VB(T=>T.original.startLineNumber,jB));const g=[E[0]];for(let T=1;T=0&&Re>=0&&ue+Re<=2){g[g.length-1]=W.join(X);continue}g.push(X)}return g}function bze(E,g){const T=new GB(E);return g=g.filter(W=>{const X=T.findLastMonotonous(Be=>Be.original.startLineNumberBe.modified.startLineNumber0&&(Be=Be.delta(Le))}X.push(Be)}return W.length>0&&X.push(W[W.length-1]),X}function Eze(E,g,T){if(!E.getBoundaryScore||!g.getBoundaryScore)return T;for(let W=0;W0?T[W-1]:void 0,ue=T[W],Re=W+1=W.start&&E.seq2Range.start-Re>=X.start&&T.isStronglyEqual(E.seq2Range.start-Re,E.seq2Range.endExclusive-Re)&&Re<100;)Re++;Re--;let Be=0;for(;E.seq1Range.start+BeLe&&(Le=Kr,it=Xe)}return E.delta(it)}function Sze(E,g,T){const W=[];for(const X of T){const ue=W[W.length-1];if(!ue){W.push(X);continue}X.seq1Range.start-ue.seq1Range.endExclusive<=2||X.seq2Range.start-ue.seq2Range.endExclusive<=2?W[W.length-1]=new $p(ue.seq1Range.join(X.seq1Range),ue.seq2Range.join(X.seq2Range)):W.push(X)}return W}function Tze(E,g,T){const W=$p.invert(T,E.length),X=[];let ue=new TE(0,0);function Re(it,Le){if(it.offset10;){const co=W[0];if(!(co.seq1Range.intersects(qt.seq1Range)||co.seq2Range.intersects(qt.seq2Range)))break;const An=E.findWordContaining(co.seq1Range.start),Oo=g.findWordContaining(co.seq2Range.start),Br=new $p(An,Oo),Bi=Br.intersect(co);if(Kr+=Bi.seq1Range.length,Ei+=Bi.seq2Range.length,qt=qt.join(Br),qt.seq1Range.endExclusive>=co.seq1Range.endExclusive)W.shift();else break}Kr+Ei<(qt.seq1Range.length+qt.seq2Range.length)*2/3&&X.push(qt),ue=qt.getEndExclusives()}for(;W.length>0;){const it=W.shift();it.seq1Range.isEmpty||(Re(it.getStarts(),it),Re(it.getEndExclusives().delta(-1),it))}return Aze(T,X)}function Aze(E,g){const T=[];for(;E.length>0||g.length>0;){const W=E[0],X=g[0];let ue;W&&(!X||W.seq1Range.start0&&T[T.length-1].seq1Range.endExclusive>=ue.seq1Range.start?T[T.length-1]=T[T.length-1].join(ue):T.push(ue)}return T}function Ize(E,g,T){let W=T;if(W.length===0)return W;let X=0,ue;do{ue=!1;const Re=[W[0]];for(let Be=1;Be5||mn.seq1Range.length+mn.seq2Range.length>5)};const it=W[Be],Le=Re[Re.length-1];Xe(Le,it)?(ue=!0,Re[Re.length-1]=Re[Re.length-1].join(it)):Re.push(it)}W=Re}while(X++<10&&ue);return W}function xze(E,g,T){let W=T;if(W.length===0)return W;let X=0,ue;do{ue=!1;const Be=[W[0]];for(let it=1;it5||Ei.length>500)return!1;const Zn=E.getText(Ei).trim();if(Zn.length>20||Zn.split(/\r\n|\r|\n/).length>1)return!1;const An=E.countLinesIn(mn.seq1Range),Oo=mn.seq1Range.length,Br=g.countLinesIn(mn.seq2Range),Bi=mn.seq2Range.length,Uo=E.countLinesIn(Kr.seq1Range),Nr=Kr.seq1Range.length,Na=g.countLinesIn(Kr.seq2Range),Ec=Kr.seq2Range.length,au=130;function nr(Xs){return Math.min(Xs,au)}return Math.pow(Math.pow(nr(An*40+Oo),1.5)+Math.pow(nr(Br*40+Bi),1.5),1.5)+Math.pow(Math.pow(nr(Uo*40+Nr),1.5)+Math.pow(nr(Na*40+Ec),1.5),1.5)>(au**1.5)**1.5*1.3};const Le=W[it],Xe=Be[Be.length-1];Ft(Xe,Le)?(ue=!0,Be[Be.length-1]=Be[Be.length-1].join(Le)):Be.push(Le)}W=Be}while(X++<10&&ue);const Re=[];return sze(W,(Be,it,Le)=>{let Xe=it;function Ft(Zn){return Zn.length>0&&Zn.trim().length<=3&&it.seq1Range.length+it.seq2Range.length>100}const qt=E.extendToFullLines(it.seq1Range),mn=E.getText(new Mc(qt.start,it.seq1Range.start));Ft(mn)&&(Xe=Xe.deltaStart(-mn.length));const Kr=E.getText(new Mc(it.seq1Range.endExclusive,qt.endExclusive));Ft(Kr)&&(Xe=Xe.deltaEnd(Kr.length));const Ei=$p.fromOffsetPairs(Be?Be.getEndExclusives():TE.zero,Le?Le.getStarts():TE.max),co=Xe.intersect(Ei);Re.length>0&&co.getStarts().equals(Re[Re.length-1].getEndExclusives())?Re[Re.length-1]=Re[Re.length-1].join(co):Re.push(co)}),Re}class NEe{constructor(g,T){this.trimmedHash=g,this.lines=T}getElement(g){return this.trimmedHash[g]}get length(){return this.trimmedHash.length}getBoundaryScore(g){const T=g===0?0:CEe(this.lines[g-1]),W=g===this.lines.length?0:CEe(this.lines[g]);return 1e3-(T+W)}getText(g){return this.lines.slice(g.start,g.endExclusive).join(` `)}isStronglyEqual(g,T){return this.lines[g]===this.lines[T]}}function CEe(E){let g=0;for(;gBi===Uo))return new BB([],[],!1);if(g.length===1&&g[0].length===0||T.length===1&&T[0].length===0)return new BB([new hA(new Fl(1,g.length+1),new Fl(1,T.length+1),[new SE(new vs(1,1,g.length,g[g.length-1].length+1),new vs(1,1,T.length,T[T.length-1].length+1))])],[],!1);const X=W.maxComputationTimeMs===0?_6.instance:new uze(W.maxComputationTimeMs),ue=!W.ignoreTrimWhitespace,Re=new Map;function Be(Bi){let Uo=Re.get(Bi);return Uo===void 0&&(Uo=Re.size,Re.set(Bi,Uo)),Uo}const it=g.map(Bi=>Be(Bi.trim())),Le=T.map(Bi=>Be(Bi.trim())),Xe=new NEe(it,g),Ft=new NEe(Le,T),qt=Xe.length+Ft.length<1700?this.dynamicProgrammingDiffing.compute(Xe,Ft,X,(Bi,Uo)=>g[Bi]===T[Uo]?T[Uo].length===0?.1:1+Math.log(1+T[Uo].length):.99):this.myersDiffingAlgorithm.compute(Xe,Ft,X);let mn=qt.diffs,Kr=qt.hitTimeout;mn=xEe(Xe,Ft,mn),mn=Ize(Xe,Ft,mn);const Ei=[],co=Bi=>{if(ue)for(let Uo=0;UoBi.seq1Range.start-Zn===Bi.seq2Range.start-An);const Uo=Bi.seq1Range.start-Zn;co(Uo),Zn=Bi.seq1Range.endExclusive,An=Bi.seq2Range.endExclusive;const Nr=this.refineDiff(g,T,Bi,X,ue);Nr.hitTimeout&&(Kr=!0);for(const Na of Nr.mappings)Ei.push(Na)}co(g.length-Zn);const Oo=PEe(Ei,g,T);let Br=[];return W.computeMoves&&(Br=this.computeMoves(Oo,g,T,it,Le,X,ue)),zB(()=>{function Bi(Nr,Na){if(Nr.lineNumber<1||Nr.lineNumber>Na.length)return!1;const Ec=Na[Nr.lineNumber-1];return!(Nr.column<1||Nr.column>Ec.length+1)}function Uo(Nr,Na){return!(Nr.startLineNumber<1||Nr.startLineNumber>Na.length+1||Nr.endLineNumberExclusive<1||Nr.endLineNumberExclusive>Na.length+1)}for(const Nr of Oo){if(!Nr.innerChanges)return!1;for(const Na of Nr.innerChanges)if(!(Bi(Na.modifiedRange.getStartPosition(),T)&&Bi(Na.modifiedRange.getEndPosition(),T)&&Bi(Na.originalRange.getStartPosition(),g)&&Bi(Na.originalRange.getEndPosition(),g)))return!1;if(!Uo(Nr.modified,T)||!Uo(Nr.original,g))return!1}return!0}),new BB(Oo,Br,Kr)}computeMoves(g,T,W,X,ue,Re,Be){return _ze(g,T,W,X,ue,Re).map(Xe=>{const Ft=this.refineDiff(T,W,new $p(Xe.original.toOffsetRange(),Xe.modified.toOffsetRange()),Re,Be),qt=PEe(Ft.mappings,T,W,!0);return new Y5e(Xe,qt)})}refineDiff(g,T,W,X,ue){const Be=Nze(W).toRangeMapping2(g,T),it=new HB(g,Be.originalRange,ue),Le=new HB(T,Be.modifiedRange,ue),Xe=it.length+Le.length<500?this.dynamicProgrammingDiffing.compute(it,Le,X):this.myersDiffingAlgorithm.compute(it,Le,X);let Ft=Xe.diffs;return Ft=xEe(it,Le,Ft),Ft=Tze(it,Le,Ft),Ft=Sze(it,Le,Ft),Ft=xze(it,Le,Ft),{mappings:Ft.map(mn=>new SE(it.translateRange(mn.seq1Range),Le.translateRange(mn.seq2Range))),hitTimeout:Xe.hitTimeout}}}function PEe(E,g,T,W=!1){const X=[];for(const ue of oze(E.map(Re=>Dze(Re,g,T)),(Re,Be)=>Re.original.overlapOrTouch(Be.original)||Re.modified.overlapOrTouch(Be.modified))){const Re=ue[0],Be=ue[ue.length-1];X.push(new hA(Re.original.join(Be.original),Re.modified.join(Be.modified),ue.map(it=>it.innerChanges[0])))}return zB(()=>!W&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||T.length-X[X.length-1].modified.endLineNumberExclusive!==g.length-X[X.length-1].original.endLineNumberExclusive)?!1:dEe(X,(ue,Re)=>Re.original.startLineNumber-ue.original.endLineNumberExclusive===Re.modified.startLineNumber-ue.modified.endLineNumberExclusive&&ue.original.endLineNumberExclusive=T[E.modifiedRange.startLineNumber-1].length&&E.originalRange.startColumn-1>=g[E.originalRange.startLineNumber-1].length&&E.originalRange.startLineNumber<=E.originalRange.endLineNumber+X&&E.modifiedRange.startLineNumber<=E.modifiedRange.endLineNumber+X&&(W=1);const ue=new Fl(E.originalRange.startLineNumber+W,E.originalRange.endLineNumber+1+X),Re=new Fl(E.modifiedRange.startLineNumber+W,E.modifiedRange.endLineNumber+1+X);return new hA(ue,Re,[E])}function Nze(E){return new Zb(new Fl(E.seq1Range.start+1,E.seq1Range.endExclusive+1),new Fl(E.seq2Range.start+1,E.seq2Range.endExclusive+1))}const MEe={getLegacy:()=>new eze,getDefault:()=>new Rze};function wx(E,g){const T=Math.pow(10,g);return Math.round(E*T)/T}class Jm{constructor(g,T,W,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,g))|0,this.g=Math.min(255,Math.max(0,T))|0,this.b=Math.min(255,Math.max(0,W))|0,this.a=wx(Math.max(Math.min(1,X),0),3)}static equals(g,T){return g.r===T.r&&g.g===T.g&&g.b===T.b&&g.a===T.a}}class e0{constructor(g,T,W,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=wx(Math.max(Math.min(1,T),0),3),this.l=wx(Math.max(Math.min(1,W),0),3),this.a=wx(Math.max(Math.min(1,X),0),3)}static equals(g,T){return g.h===T.h&&g.s===T.s&&g.l===T.l&&g.a===T.a}static fromRGBA(g){const T=g.r/255,W=g.g/255,X=g.b/255,ue=g.a,Re=Math.max(T,W,X),Be=Math.min(T,W,X);let it=0,Le=0;const Xe=(Be+Re)/2,Ft=Re-Be;if(Ft>0){switch(Le=Math.min(Xe<=.5?Ft/(2*Xe):Ft/(2-2*Xe),1),Re){case T:it=(W-X)/Ft+(W1&&(W-=1),W<1/6?g+(T-g)*6*W:W<1/2?T:W<2/3?g+(T-g)*(2/3-W)*6:g}static toRGBA(g){const T=g.h/360,{s:W,l:X,a:ue}=g;let Re,Be,it;if(W===0)Re=Be=it=X;else{const Le=X<.5?X*(1+W):X+W-X*W,Xe=2*X-Le;Re=e0._hue2rgb(Xe,Le,T+1/3),Be=e0._hue2rgb(Xe,Le,T),it=e0._hue2rgb(Xe,Le,T-1/3)}return new Jm(Math.round(Re*255),Math.round(Be*255),Math.round(it*255),ue)}}class D2{constructor(g,T,W,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=wx(Math.max(Math.min(1,T),0),3),this.v=wx(Math.max(Math.min(1,W),0),3),this.a=wx(Math.max(Math.min(1,X),0),3)}static equals(g,T){return g.h===T.h&&g.s===T.s&&g.v===T.v&&g.a===T.a}static fromRGBA(g){const T=g.r/255,W=g.g/255,X=g.b/255,ue=Math.max(T,W,X),Re=Math.min(T,W,X),Be=ue-Re,it=ue===0?0:Be/ue;let Le;return Be===0?Le=0:ue===T?Le=((W-X)/Be%6+6)%6:ue===W?Le=(X-T)/Be+2:Le=(T-W)/Be+4,new D2(Math.round(Le*60),it,ue,g.a)}static toRGBA(g){const{h:T,s:W,v:X,a:ue}=g,Re=X*W,Be=Re*(1-Math.abs(T/60%2-1)),it=X-Re;let[Le,Xe,Ft]=[0,0,0];return T<60?(Le=Re,Xe=Be):T<120?(Le=Be,Xe=Re):T<180?(Xe=Re,Ft=Be):T<240?(Xe=Be,Ft=Re):T<300?(Le=Be,Ft=Re):T<=360&&(Le=Re,Ft=Be),Le=Math.round((Le+it)*255),Xe=Math.round((Xe+it)*255),Ft=Math.round((Ft+it)*255),new Jm(Le,Xe,Ft,ue)}}class wp{static fromHex(g){return wp.Format.CSS.parseHex(g)||wp.red}static equals(g,T){return!g&&!T?!0:!g||!T?!1:g.equals(T)}get hsla(){return this._hsla?this._hsla:e0.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:D2.fromRGBA(this.rgba)}constructor(g){if(g)if(g instanceof Jm)this.rgba=g;else if(g instanceof e0)this._hsla=g,this.rgba=e0.toRGBA(g);else if(g instanceof D2)this._hsva=g,this.rgba=D2.toRGBA(g);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(g){return!!g&&Jm.equals(this.rgba,g.rgba)&&e0.equals(this.hsla,g.hsla)&&D2.equals(this.hsva,g.hsva)}getRelativeLuminance(){const g=wp._relativeLuminanceForComponent(this.rgba.r),T=wp._relativeLuminanceForComponent(this.rgba.g),W=wp._relativeLuminanceForComponent(this.rgba.b),X=.2126*g+.7152*T+.0722*W;return wx(X,4)}static _relativeLuminanceForComponent(g){const T=g/255;return T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(g){const T=this.getRelativeLuminance(),W=g.getRelativeLuminance();return T>W}isDarkerThan(g){const T=this.getRelativeLuminance(),W=g.getRelativeLuminance();return T0)for(const X of W){const ue=X.filter(Le=>Le!==void 0),Re=ue[1],Be=ue[2];if(!Be)continue;let it;if(Re==="rgb"){const Le=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;it=kEe(g6(E,X),y6(Be,Le),!1)}else if(Re==="rgba"){const Le=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;it=kEe(g6(E,X),y6(Be,Le),!0)}else if(Re==="hsl"){const Le=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;it=wEe(g6(E,X),y6(Be,Le),!1)}else if(Re==="hsla"){const Le=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;it=wEe(g6(E,X),y6(Be,Le),!0)}else Re==="#"&&(it=Cze(g6(E,X),Re+Be));it&&g.push(it)}return g}function Mze(E){return!E||typeof E.getValue!="function"||typeof E.positionAt!="function"?[]:Pze(E)}const OEe=new RegExp("\\bMARK:\\s*(.*)$","d"),Lze=/^-+|-+$/g;function kze(E,g){let T=[];if(g.findRegionSectionHeaders&&g.foldingRules?.markers){const W=wze(E,g);T=T.concat(W)}if(g.findMarkSectionHeaders){const W=Oze(E);T=T.concat(W)}return T}function wze(E,g){const T=[],W=E.getLineCount();for(let X=1;X<=W;X++){const ue=E.getLineContent(X),Re=ue.match(g.foldingRules.markers.start);if(Re){const Be={startLineNumber:X,startColumn:Re[0].length+1,endLineNumber:X,endColumn:ue.length+1};if(Be.endColumn>Be.startColumn){const it={range:Be,...WEe(ue.substring(Re[0].length)),shouldBeInComments:!1};(it.text||it.hasSeparatorLine)&&T.push(it)}}}return T}function Oze(E){const g=[],T=E.getLineCount();for(let W=1;W<=T;W++){const X=E.getLineContent(W);Wze(X,W,g)}return g}function Wze(E,g,T){OEe.lastIndex=0;const W=OEe.exec(E);if(W){const X=W.indices[1][0]+1,ue=W.indices[1][1]+1,Re={startLineNumber:g,startColumn:X,endLineNumber:g,endColumn:ue};if(Re.endColumn>Re.startColumn){const Be={range:Re,...WEe(W[1]),shouldBeInComments:!0};(Be.text||Be.hasSeparatorLine)&&T.push(Be)}}}function WEe(E){E=E.trim();const g=E.startsWith("-");return E=E.replace(Lze,""),{text:E,hasSeparatorLine:g}}var FEe;(function(E){async function g(W){let X;const ue=await Promise.all(W.map(Re=>Re.then(Be=>Be,Be=>{X||(X=Be)})));if(typeof X<"u")throw X;return ue}E.settled=g;function T(W){return new Promise(async(X,ue)=>{try{await W(X,ue)}catch(Re){ue(Re)}})}E.withAsyncBody=T})(FEe||(FEe={}));class Av{static fromArray(g){return new Av(T=>{T.emitMany(g)})}static fromPromise(g){return new Av(async T=>{T.emitMany(await g)})}static fromPromises(g){return new Av(async T=>{await Promise.all(g.map(async W=>T.emitOne(await W)))})}static merge(g){return new Av(async T=>{await Promise.all(g.map(async W=>{for await(const X of W)T.emitOne(X)}))})}static{this.EMPTY=Av.fromArray([])}constructor(g,T){this._state=0,this._results=[],this._error=null,this._onReturn=T,this._onStateChanged=new Qb,queueMicrotask(async()=>{const W={emitOne:X=>this.emitOne(X),emitMany:X=>this.emitMany(X),reject:X=>this.reject(X)};try{await Promise.resolve(g(W)),this.resolve()}catch(X){this.reject(X)}finally{W.emitOne=void 0,W.emitMany=void 0,W.reject=void 0}})}[Symbol.asyncIterator](){let g=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(g(this._onReturn?.(),{done:!0,value:void 0})}}static map(g,T){return new Av(async W=>{for await(const X of g)W.emitOne(T(X))})}map(g){return Av.map(this,g)}static filter(g,T){return new Av(async W=>{for await(const X of g)T(X)&&W.emitOne(X)})}filter(g){return Av.filter(this,g)}static coalesce(g){return Av.filter(g,T=>!!T)}coalesce(){return Av.coalesce(this)}static async toPromise(g){const T=[];for await(const W of g)T.push(W);return T}toPromise(){return Av.toPromise(this)}emitOne(g){this._state===0&&(this._results.push(g),this._onStateChanged.fire())}emitMany(g){this._state===0&&(this._results=this._results.concat(g),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(g){this._state===0&&(this._state=2,this._error=g,this._onStateChanged.fire())}}class Fze{constructor(g){this.values=g,this.prefixSum=new Uint32Array(g.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(g,T){g=T2(g);const W=this.values,X=this.prefixSum,ue=T.length;return ue===0?!1:(this.values=new Uint32Array(W.length+ue),this.values.set(W.subarray(0,g),0),this.values.set(W.subarray(g),g+ue),this.values.set(T,g),g-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(g,T){return g=T2(g),T=T2(T),this.values[g]===T?!1:(this.values[g]=T,g-1=W.length)return!1;const ue=W.length-g;return T>=ue&&(T=ue),T===0?!1:(this.values=new Uint32Array(W.length-T),this.values.set(W.subarray(0,g),0),this.values.set(W.subarray(g+T),g),this.prefixSum=new Uint32Array(this.values.length),g-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(g){return g<0?0:(g=T2(g),this._getPrefixSum(g))}_getPrefixSum(g){if(g<=this.prefixSumValidIndex[0])return this.prefixSum[g];let T=this.prefixSumValidIndex[0]+1;T===0&&(this.prefixSum[0]=this.values[0],T++),g>=this.values.length&&(g=this.values.length-1);for(let W=T;W<=g;W++)this.prefixSum[W]=this.prefixSum[W-1]+this.values[W];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],g),this.prefixSum[g]}getIndexOf(g){g=Math.floor(g),this.getTotalSum();let T=0,W=this.values.length-1,X=0,ue=0,Re=0;for(;T<=W;)if(X=T+(W-T)/2|0,ue=this.prefixSum[X],Re=ue-this.values[X],g=ue)T=X+1;else break;return new zze(X,g-Re)}}class zze{constructor(g,T){this.index=g,this.remainder=T,this._prefixSumIndexOfResultBrand=void 0,this.index=g,this.remainder=T}}class Bze{constructor(g,T,W,X){this._uri=g,this._lines=T,this._eol=W,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(g){g.eol&&g.eol!==this._eol&&(this._eol=g.eol,this._lineStarts=null);const T=g.changes;for(const W of T)this._acceptDeleteRange(W.range),this._acceptInsertText(new rd(W.range.startLineNumber,W.range.startColumn),W.text);this._versionId=g.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const g=this._eol.length,T=this._lines.length,W=new Uint32Array(T);for(let X=0;Xg.push(this._models[T])),g}$acceptNewModel(g){this._models[g.url]=new Vze(Ty.parse(g.url),g.lines,g.EOL,g.versionId)}$acceptModelChanged(g,T){if(!this._models[g])return;this._models[g].onEvents(T)}$acceptRemovedModel(g){this._models[g]&&delete this._models[g]}}class Vze extends Bze{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(g){const T=[];for(let W=0;Wthis._lines.length)T=this._lines.length,W=this._lines[T-1].length+1,X=!0;else{const ue=this._lines[T-1].length+1;W<1?(W=1,X=!0):W>ue&&(W=ue,X=!0)}return X?{lineNumber:T,column:W}:g}}class jze{constructor(){this._workerTextModelSyncServer=new Gze}dispose(){}_getModel(g){return this._workerTextModelSyncServer.getModel(g)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(g){this._workerTextModelSyncServer.$acceptNewModel(g)}$acceptModelChanged(g,T){this._workerTextModelSyncServer.$acceptModelChanged(g,T)}$acceptRemovedModel(g){this._workerTextModelSyncServer.$acceptRemovedModel(g)}async $computeUnicodeHighlights(g,T,W){const X=this._getModel(g);return X?K5e.computeUnicodeHighlights(X,T,W):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(g,T){const W=this._getModel(g);return W?kze(W,T):[]}async $computeDiff(g,T,W,X){const ue=this._getModel(g),Re=this._getModel(T);return!ue||!Re?null:qB.computeDiff(ue,Re,W,X)}static computeDiff(g,T,W,X){const ue=X==="advanced"?MEe.getDefault():MEe.getLegacy(),Re=g.getLinesContent(),Be=T.getLinesContent(),it=ue.computeDiff(Re,Be,W),Le=it.changes.length>0?!1:this._modelsAreIdentical(g,T);function Xe(Ft){return Ft.map(qt=>[qt.original.startLineNumber,qt.original.endLineNumberExclusive,qt.modified.startLineNumber,qt.modified.endLineNumberExclusive,qt.innerChanges?.map(mn=>[mn.originalRange.startLineNumber,mn.originalRange.startColumn,mn.originalRange.endLineNumber,mn.originalRange.endColumn,mn.modifiedRange.startLineNumber,mn.modifiedRange.startColumn,mn.modifiedRange.endLineNumber,mn.modifiedRange.endColumn])])}return{identical:Le,quitEarly:it.hitTimeout,changes:Xe(it.changes),moves:it.moves.map(Ft=>[Ft.lineRangeMapping.original.startLineNumber,Ft.lineRangeMapping.original.endLineNumberExclusive,Ft.lineRangeMapping.modified.startLineNumber,Ft.lineRangeMapping.modified.endLineNumberExclusive,Xe(Ft.changes)])}}static _modelsAreIdentical(g,T){const W=g.getLineCount(),X=T.getLineCount();if(W!==X)return!1;for(let ue=1;ue<=W;ue++){const Re=g.getLineContent(ue),Be=T.getLineContent(ue);if(Re!==Be)return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(g,T,W){const X=this._getModel(g);if(!X)return T;const ue=[];let Re;T=T.slice(0).sort((it,Le)=>{if(it.range&&Le.range)return vs.compareRangesUsingStarts(it.range,Le.range);const Xe=it.range?0:1,Ft=Le.range?0:1;return Xe-Ft});let Be=0;for(let it=1;itqB._diffLimit){ue.push({range:it,text:Le});continue}const qt=h5e(Ft,Le,W),mn=X.offsetAt(vs.lift(it).getStartPosition());for(const Kr of qt){const Ei=X.positionAt(mn+Kr.originalStart),co=X.positionAt(mn+Kr.originalStart+Kr.originalLength),Zn={text:Le.substr(Kr.modifiedStart,Kr.modifiedLength),range:{startLineNumber:Ei.lineNumber,startColumn:Ei.column,endLineNumber:co.lineNumber,endColumn:co.column}};X.getValueInRange(Zn.range)!==Zn.text&&ue.push(Zn)}}return typeof Re=="number"&&ue.push({eol:Re,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),ue}async $computeLinks(g){const T=this._getModel(g);return T?E5e(T):null}async $computeDefaultDocumentColors(g){const T=this._getModel(g);return T?Mze(T):null}static{this._suggestionsLimit=1e4}async $textualSuggest(g,T,W,X){const ue=new IB,Re=new RegExp(W,X),Be=new Set;e:for(const it of g){const Le=this._getModel(it);if(Le){for(const Xe of Le.words(Re))if(!(Xe===T||!isNaN(Number(Xe)))&&(Be.add(Xe),Be.size>qB._suggestionsLimit))break e}}return{words:Array.from(Be),duration:ue.elapsed()}}async $computeWordRanges(g,T,W,X){const ue=this._getModel(g);if(!ue)return Object.create(null);const Re=new RegExp(W,X),Be=Object.create(null);for(let it=T.startLineNumber;itthis._host.$fhr(Be,it)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Re,T),Promise.resolve(sEe(this._foreignModule))):new Promise((Be,it)=>{const Le=Xe=>{this._foreignModule=Xe.create(Re,T),Be(sEe(this._foreignModule))};import(`${Hbe.asBrowserUri(`${g}.js`).toString(!0)}`).then(Le).catch(it)})}$fmr(g,T){if(!this._foreignModule||typeof this._foreignModule[g]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+g));try{return Promise.resolve(this._foreignModule[g].apply(this._foreignModule,T))}catch(W){return Promise.reject(W)}}}typeof importScripts=="function"&&(globalThis.monaco=L5e());let rne=!1;function zEe(E){if(rne)return;rne=!0;const g=new f5e(T=>{globalThis.postMessage(T)},T=>new qB(FB.getChannel(T),E));globalThis.onmessage=T=>{g.onmessage(T.data)}}globalThis.onmessage=E=>{rne||zEe(null)};var HN={};/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt *-----------------------------------------------------------------------------*/var Uze=Object.defineProperty,Hze=(E,g)=>{for(var T in g)Uze(E,T,{get:g[T],enumerable:!0})},BEe={};Hze(BEe,{EndOfLineState:()=>Kze,IndentStyle:()=>Yze,ScriptKind:()=>qN,ScriptTarget:()=>$ze,TokenClass:()=>Qze,createClassifier:()=>qze,createLanguageService:()=>GEe,displayPartsToString:()=>Jze,flattenDiagnosticMessageText:()=>Xze,typescript:()=>VEe});var AE=void 0,JB={exports:{}},IE=(()=>{var E=Object.defineProperty,g=Object.getOwnPropertyNames,T=(e,t)=>function(){return e&&(t=(0,e[g(e)[0]])(e=0)),t},W=(e,t)=>function(){return t||(0,e[g(e)[0]])((t={exports:{}}).exports,t),t.exports},X=(e,t)=>{for(var r in t)E(e,r,{get:t[r],enumerable:!0})},ue,Re,Be,it=T({"src/compiler/corePublic.ts"(){ue="5.4",Re="5.4.5",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function Le(e){return e?e.length:0}function Xe(e,t){if(e)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function qt(e,t){if(e!==void 0)for(let r=0;r=0;i--){const o=e[i];if(t(o,i))return o}}function Br(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 Uo(e,t){for(let r=0;rr(i,t[o]))}function Ec(e,t,r){for(let i=r||0;i{const s=t(o,i);if(s!==void 0){const[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function t0(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Ay(e,t){return e.has(t)?!1:(e.add(t),!0)}function*b6(e){yield e}function KB(e,t,r){let i;if(e){i=[];const o=e.length;let s,l,u=0,p=0;for(;u{const[s,l]=t(o,i);r.set(s,l)}),r}function bt(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function XB(e,t,r){let i;for(let o=0;oe[l])}function n9e(e,t){const r=[];for(const i of e)Tf(r,i,t);return r}function RE(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?t9e(e,t,r):n9e(e,t)}function r9e(e,t){if(e.length===0)return et;let r=e[0];const i=[r];for(let o=1;o0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Km(e,t,r=Ny){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&N.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;ol&&N.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 xn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ox(e,t){return e===void 0?t:t===void 0?e:To(e)?To(t)?So(e,t):xn(e,t):To(t)?xn(t,e):[e,t]}function ane(e,t){return t<0?e.length+t:t}function qr(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:ane(t,r),i=i===void 0?t.length:ane(t,i);for(let o=r;or(e[i],e[o])||rl(i,o))}function lS(e,t){return e.length===0?e:e.slice().sort(t)}function*$B(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Iy(e,t){const r=N2(e);return UEe(e,r,t),r.map(i=>e[i])}function QB(e,t,r,i){for(;r>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function id(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function xs(e,t){return Nv.call(e,t)}function T6(e,t){return Nv.call(e,t)?e[t]:void 0}function Kh(e){const t=[];for(const r in e)Nv.call(e,r)&&t.push(r);return t}function HEe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Tf(t,i)}while(e=Object.getPrototypeOf(e));return t}function vA(e){const t=[];for(const r in e)Nv.call(e,r)&&t.push(e[r]);return t}function sne(e,t){const r=new Array(e);for(let i=0;i100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function iG(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())To(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(!To(p))return t(p,l);for(const h of p)if(t(h,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const p=r.get(u);if(To(p))Nr(p,l,t)||(p.push(l),i++);else{const h=p;t(h,l)||(r.set(u,[h,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(To(p)){for(let h=0;ho(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function To(e){return Array.isArray(e)}function bA(e){return To(e)?e:[e]}function Po(e){return typeof e=="string"}function Ry(e){return typeof e=="number"}function ii(e,t){return e!==void 0&&t(e)?e:void 0}function oa(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function $a(e){}function Xm(){return!1}function Dy(){return!0}function n0(){}function nl(e){return e}function une(e){return e.toLowerCase()}function lh(e){return Sne.test(e)?e.replace(Sne,une):e}function Ko(){throw new Error("Not implemented")}function Sd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ch(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function qEe(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function dne(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 JEe(e,t,r,i,o){if(o){const s=[];for(let l=0;lid(s,(u,p)=>p(u),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 Ny(e,t){return e===t}function r0(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function cS(e,t){return Ny(e,t)}function KEe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function R6(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function pne(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Uu(e,t){return KEe(e,t)}function Fx(e){return e?R6:Uu}function fne(){return fG}function mne(e){fG!==e&&(fG=e,Tne=void 0)}function L2(e,t){return(Tne||(Tne=$Ee(fG)))(e,t)}function _ne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Rv(e,t){return rl(e?1:0,t?1:0)}function YN(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const p=a9e(e,u,o-.1);if(p===void 0)continue;N.assert(pr?u-r:1),m=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let v=u;for(let I=1;Ir)return;const A=i;i=o,o=A}const l=i[t.length];return l>r?void 0:l}function Al(e,t,r){const i=e.length-t.length;return i>=0&&(r?r0(e.slice(i),t):e.indexOf(t,i)===i)}function zx(e,t){return Al(e,t)?e.slice(0,e.length-t.length):e}function hne(e,t){return Al(e,t)?e.slice(0,e.length-t.length):void 0}function aG(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 Bx(e,t){for(let r=0;rr===t)}function s9e(e,t){for(let r=0;ro&&(o=l.prefix.length,i=s)}return i}function uo(e,t,r){return r?r0(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function $N(e,t){return uo(e,t)?e.substr(t.length):e}function cG(e,t,r=nl){return uo(r(e),r(t))?e.substring(t.length):void 0}function D6({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&uo(r,e)&&Al(r,t)}function N6(e,t){return r=>e(r)&&t(r)}function Ym(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function C6(e){return(...t)=>!e(...t)}function XEe(e){}function SA(e){return e===void 0?void 0:[e]}function P6(e,t,r,i,o,s){s=s||$a;let l=0,u=0;const p=e.length,h=t.length;let 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))(dG||{}),Cy=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=ane(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(pG||{}),$Ee=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),mG,N,c9e=T({"src/compiler/debug.ts"(){ra(),ra(),mG=(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))(mG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(sn){return e.currentLogLevel<=sn}e.shouldLog=r;function i(sn,tt){e.loggingHost&&r(sn)&&e.loggingHost.log(sn,tt)}function o(sn){i(3,sn)}e.log=o,(sn=>{function tt(hi){i(1,hi)}sn.error=tt;function Bt(hi){i(2,hi)}sn.warn=Bt;function Rn(hi){i(3,hi)}sn.log=Rn;function li(hi){i(4,hi)}sn.trace=li})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(sn){const tt=t;if(t=sn,sn>tt)for(const Bt of Kh(s)){const Rn=s[Bt];Rn!==void 0&&e[Bt]!==Rn.assertion&&sn>=Rn.level&&(e[Bt]=Rn,s[Bt]=void 0)}}e.setAssertionLevel=u;function p(sn){return t>=sn}e.shouldAssert=p;function h(sn,tt){return p(sn)?!0:(s[tt]={level:sn,assertion:e[tt]},e[tt]=$a,!1)}function m(sn,tt){const Bt=new Error(sn?`Debug Failure. ${sn}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Bt,tt||m),Bt}e.fail=m;function v(sn,tt,Bt){return m(`${tt||"Unexpected node."}\r Node ${ye(sn.kind)} was unexpected.`,Bt||v)}e.failBadSyntaxKind=v;function A(sn,tt,Bt,Rn){sn||(tt=tt?`False expression: ${tt}`:"False expression.",Bt&&(tt+=`\r Verbose Debug Information: `+(typeof Bt=="string"?Bt:Bt())),m(tt,Rn||A))}e.assert=A;function I(sn,tt,Bt,Rn,li){if(sn!==tt){const hi=Bt?Rn?`${Bt} ${Rn}`:Bt:"";m(`Expected ${sn} === ${tt}. ${hi}`,li||I)}}e.assertEqual=I;function R(sn,tt,Bt,Rn){sn>=tt&&m(`Expected ${sn} < ${tt}. ${Bt||""}`,Rn||R)}e.assertLessThan=R;function M(sn,tt,Bt){sn>tt&&m(`Expected ${sn} <= ${tt}`,Bt||M)}e.assertLessThanOrEqual=M;function C(sn,tt,Bt){sn= ${tt}`,Bt||C)}e.assertGreaterThanOrEqual=C;function O(sn,tt,Bt){sn==null&&m(tt,Bt||O)}e.assertIsDefined=O;function U(sn,tt,Bt){return O(sn,tt,Bt||U),sn}e.checkDefined=U;function K(sn,tt,Bt){for(const Rn of sn)O(Rn,tt,Bt||K)}e.assertEachIsDefined=K;function Z(sn,tt,Bt){return K(sn,tt,Bt||Z),sn}e.checkEachDefined=Z;function V(sn,tt="Illegal value:",Bt){const Rn=typeof sn=="object"&&xs(sn,"kind")&&xs(sn,"pos")?"SyntaxKind: "+ye(sn.kind):JSON.stringify(sn);return m(`${tt} ${Rn}`,Bt||V)}e.assertNever=V;function se(sn,tt,Bt,Rn){h(1,"assertEachNode")&&A(tt===void 0||Zn(sn,tt),Bt||"Unexpected node.",()=>`Node array did not pass test '${oe(tt)}'.`,Rn||se)}e.assertEachNode=se;function G(sn,tt,Bt,Rn){h(1,"assertNode")&&A(sn!==void 0&&(tt===void 0||tt(sn)),Bt||"Unexpected node.",()=>`Node ${ye(sn?.kind)} did not pass test '${oe(tt)}'.`,Rn||G)}e.assertNode=G;function ne(sn,tt,Bt,Rn){h(1,"assertNotNode")&&A(sn===void 0||tt===void 0||!tt(sn),Bt||"Unexpected node.",()=>`Node ${ye(sn.kind)} should not have passed test '${oe(tt)}'.`,Rn||ne)}e.assertNotNode=ne;function he(sn,tt,Bt,Rn){h(1,"assertOptionalNode")&&A(tt===void 0||sn===void 0||tt(sn),Bt||"Unexpected node.",()=>`Node ${ye(sn?.kind)} did not pass test '${oe(tt)}'.`,Rn||he)}e.assertOptionalNode=he;function ve(sn,tt,Bt,Rn){h(1,"assertOptionalToken")&&A(tt===void 0||sn===void 0||sn.kind===tt,Bt||"Unexpected node.",()=>`Node ${ye(sn?.kind)} was not a '${ye(tt)}' token.`,Rn||ve)}e.assertOptionalToken=ve;function $(sn,tt,Bt){h(1,"assertMissingNode")&&A(sn===void 0,tt||"Unexpected node.",()=>`Node ${ye(sn.kind)} was unexpected'.`,Bt||$)}e.assertMissingNode=$;function Y(sn){}e.type=Y;function oe(sn){if(typeof sn!="function")return"";if(xs(sn,"name"))return sn.name;{const tt=Function.prototype.toString.call(sn),Bt=/^function\s+([\w$]+)\s*\(/.exec(tt);return Bt?Bt[1]:""}}e.getFunctionName=oe;function fe(sn){return`{ name: ${Vi(sn.escapedName)}; flags: ${At(sn.flags)}; declarations: ${Ot(sn.declarations,tt=>ye(tt.kind))} }`}e.formatSymbol=fe;function Ne(sn=0,tt,Bt){const Rn=ie(tt);if(sn===0)return Rn.length>0&&Rn[0][0]===0?Rn[0][1]:"0";if(Bt){const li=[];let hi=sn;for(const[Qi,Io]of Rn){if(Qi>sn)break;Qi!==0&&Qi&sn&&(li.push(Io),hi&=~Qi)}if(hi===0)return li.join("|")}else for(const[li,hi]of Rn)if(li===sn)return hi;return sn.toString()}e.formatEnum=Ne;const pe=new Map;function ie(sn){const tt=pe.get(sn);if(tt)return tt;const Bt=[];for(const li in sn){const hi=sn[li];typeof hi=="number"&&Bt.push([hi,li])}const Rn=Iy(Bt,(li,hi)=>rl(li[0],hi[0]));return pe.set(sn,Rn),Rn}function ye(sn){return Ne(sn,w6,!1)}e.formatSyntaxKind=ye;function Me(sn){return Ne(sn,K6,!1)}e.formatSnippetKind=Me;function Ue(sn){return Ne(sn,q6,!1)}e.formatScriptKind=Ue;function Ee(sn){return Ne(sn,O6,!0)}e.formatNodeFlags=Ee;function De(sn){return Ne(sn,W6,!0)}e.formatModifierFlags=De;function Pe(sn){return Ne(sn,J6,!0)}e.formatTransformFlags=Pe;function We(sn){return Ne(sn,X6,!0)}e.formatEmitFlags=We;function At(sn){return Ne(sn,V6,!0)}e.formatSymbolFlags=At;function Se(sn){return Ne(sn,j6,!0)}e.formatTypeFlags=Se;function je(sn){return Ne(sn,H6,!0)}e.formatSignatureFlags=je;function at(sn){return Ne(sn,U6,!0)}e.formatObjectFlags=at;function Gt(sn){return Ne(sn,W2,!0)}e.formatFlowFlags=Gt;function yt(sn){return Ne(sn,F6,!0)}e.formatRelationComparisonResult=yt;function $e(sn){return Ne(sn,zF,!0)}e.formatCheckMode=$e;function It(sn){return Ne(sn,BF,!0)}e.formatSignatureCheckMode=It;function tn(sn){return Ne(sn,FF,!0)}e.formatTypeFacts=tn;let rn=!1,Pn;function Xn(sn){"__debugFlowFlags"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(){const tt=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",Bt=this.flags&-2048;return`${tt}${Bt?` (${Gt(Bt)})`:""}`}},__debugFlowFlags:{get(){return Ne(this.flags,W2,!0)}},__debugToString:{value(){return Ar(this)}}})}function hn(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Pn||(Pn=Object.create(Object.prototype),Xn(Pn)),Object.setPrototypeOf(sn,Pn)):Xn(sn))}e.attachFlowNodeDebugInfo=hn;let Qt;function $t(sn){"__tsDebuggerDisplay"in sn||Object.defineProperties(sn,{__tsDebuggerDisplay:{value(tt){return tt=String(tt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${tt}`}}})}function _i(sn){rn&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),$t(Qt)),Object.setPrototypeOf(sn,Qt)):$t(sn))}e.attachNodeArrayDebugInfo=_i;function ao(){if(rn)return;const sn=new WeakMap,tt=new WeakMap;Object.defineProperties(lu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Rn=this.flags&33554432?"TransientSymbol":"Symbol",li=this.flags&-33554433;return`${Rn} '${Sl(this)}'${li?` (${At(li)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(lu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Rn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",li=this.flags&524288?this.objectFlags&-1344:0;return`${Rn}${this.symbol?` '${Sl(this.symbol)}'`:""}${li?` (${at(li)})`:""}`}},__debugFlags:{get(){return Se(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?at(this.objectFlags):""}},__debugTypeToString:{value(){let Rn=sn.get(this);return Rn===void 0&&(Rn=this.checker.typeToString(this),sn.set(this,Rn)),Rn}}}),Object.defineProperties(lu.getSignatureConstructor().prototype,{__debugFlags:{get(){return je(this.flags)}},__debugSignatureToString:{value(){var Rn;return(Rn=this.checker)==null?void 0:Rn.signatureToString(this)}}});const Bt=[lu.getNodeConstructor(),lu.getIdentifierConstructor(),lu.getTokenConstructor(),lu.getSourceFileConstructor()];for(const Rn of Bt)xs(Rn.prototype,"__debugKind")||Object.defineProperties(Rn.prototype,{__tsDebuggerDisplay:{value(){return`${sl(this)?"GeneratedIdentifier":Ve(this)?`Identifier '${Sr(this)}'`:Ji(this)?`PrivateIdentifier '${Sr(this)}'`:Ma(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:gp(this)?`NumericLiteral ${this.text}`:zW(this)?`BigIntLiteral ${this.text}n`:gl(this)?"TypeParameterDeclaration":Ao(this)?"ParameterDeclaration":Ml(this)?"ConstructorDeclaration":rf(this)?"GetAccessorDeclaration":vp(this)?"SetAccessorDeclaration":oI(this)?"CallSignatureDeclaration":Bk(this)?"ConstructSignatureDeclaration":e1(this)?"IndexSignatureDeclaration":Gk(this)?"TypePredicateNode":Cf(this)?"TypeReferenceNode":bh(this)?"FunctionTypeNode":UR(this)?"ConstructorTypeNode":aI(this)?"TypeQueryNode":bp(this)?"TypeLiteralNode":Vk(this)?"ArrayTypeNode":sI(this)?"TupleTypeNode":UW(this)?"OptionalTypeNode":HW(this)?"RestTypeNode":Qv(this)?"UnionTypeNode":lI(this)?"IntersectionTypeNode":cI(this)?"ConditionalTypeNode":FS(this)?"InferTypeNode":zS(this)?"ParenthesizedTypeNode":jk(this)?"ThisTypeNode":BS(this)?"TypeOperatorNode":GS(this)?"IndexedAccessTypeNode":qR(this)?"MappedTypeNode":Zv(this)?"LiteralTypeNode":HR(this)?"NamedTupleMember":cg(this)?"ImportTypeNode":ye(this.kind)}${this.flags?` (${Ee(this.flags)})`:""}`}},__debugKind:{get(){return ye(this.kind)}},__debugNodeFlags:{get(){return Ee(this.flags)}},__debugModifierFlags:{get(){return De(Yie(this))}},__debugTransformFlags:{get(){return Pe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return lC(this)}},__debugEmitFlags:{get(){return We(ja(this))}},__debugGetText:{value(li){if($s(this))return"";let hi=tt.get(this);if(hi===void 0){const Qi=Do(this),Io=Qi&&jn(Qi);hi=Io?wE(Io,Qi,li):"",tt.set(this,hi)}return hi}}});rn=!0}e.enableDebugInfo=ao;function Oi(sn){const tt=sn&7;let Bt=tt===0?"in out":tt===3?"[bivariant]":tt===2?"in":tt===1?"out":tt===4?"[independent]":"";return sn&8?Bt+=" (unmeasurable)":sn&16&&(Bt+=" (unreliable)"),Bt}e.formatVariance=Oi;class No{__debugToString(){var tt;switch(this.kind){case 3:return((tt=this.debugInfo)==null?void 0:tt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ei(this.sources,this.targets||Ot(this.sources,()=>"any"),(Bt,Rn)=>`${Bt.__debugTypeToString()} -> ${typeof Rn=="string"?Rn:Rn.__debugTypeToString()}`).join(", ");case 2:return Ei(this.sources,this.targets,(Bt,Rn)=>`${Bt.__debugTypeToString()} -> ${Rn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return V(this)}}}e.DebugTypeMapper=No;function Mn(sn){return e.isDebugging?Object.setPrototypeOf(sn,No.prototype):sn}e.attachDebugPrototypeIfDebug=Mn;function Di(sn){return console.log(Ar(sn))}e.printControlFlowGraph=Di;function Ar(sn){let tt=-1;function Bt(L){return L.id||(L.id=tt,tt--),L.id}let Rn;(L=>{L.lr="─",L.ud="│",L.dr="╭",L.dl="╮",L.ul="╯",L.ur="╰",L.udr="├",L.udl="┤",L.dlr="┬",L.ulr="┴",L.udlr="╫"})(Rn||(Rn={}));let li;(L=>{L[L.None=0]="None",L[L.Up=1]="Up",L[L.Down=2]="Down",L[L.Left=4]="Left",L[L.Right=8]="Right",L[L.UpDown=3]="UpDown",L[L.LeftRight=12]="LeftRight",L[L.UpLeft=5]="UpLeft",L[L.UpRight=9]="UpRight",L[L.DownLeft=6]="DownLeft",L[L.DownRight=10]="DownRight",L[L.UpDownLeft=7]="UpDownLeft",L[L.UpDownRight=11]="UpDownRight",L[L.UpLeftRight=13]="UpLeftRight",L[L.DownLeftRight=14]="DownLeftRight",L[L.UpDownLeftRight=15]="UpDownLeftRight",L[L.NoChildren=16]="NoChildren"})(li||(li={}));const hi=2032,Qi=882,Io=Object.create(null),ma=[],Wa=pt(sn,new Set);for(const L of ma)L.text=pn(L.flowNode,L.circular),ot(L);const Sn=Rt(Wa),kn=Ye(Sn);return _t(Wa,0),_n();function He(L){return!!(L.flags&128)}function mt(L){return!!(L.flags&12)&&!!L.antecedents}function ft(L){return!!(L.flags&hi)}function Ct(L){return!!(L.flags&Qi)}function le(L){const _e=[];for(const J of L.edges)J.source===L&&_e.push(J.target);return _e}function Fe(L){const _e=[];for(const J of L.edges)J.target===L&&_e.push(J.source);return _e}function pt(L,_e){const J=Bt(L);let me=Io[J];if(me&&_e.has(L))return me.circular=!0,me={id:-1,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},ma.push(me),me;if(_e.add(L),!me)if(Io[J]=me={id:J,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},ma.push(me),mt(L))for(const Ge of L.antecedents)j(me,Ge,_e);else ft(L)&&j(me,L.antecedent,_e);return _e.delete(L),me}function j(L,_e,J){const me=pt(_e,J),Ge={source:L,target:me};L.edges.push(Ge),me.edges.push(Ge)}function ot(L){if(L.level!==-1)return L.level;let _e=0;for(const J of Fe(L))_e=Math.max(_e,ot(J)+1);return L.level=_e}function Rt(L){let _e=0;for(const J of le(L))_e=Math.max(_e,Rt(J));return _e+1}function Ye(L){const _e=Oe(Array(L),0);for(const J of ma)_e[J.level]=Math.max(_e[J.level],J.text.length);return _e}function _t(L,_e){if(L.lane===-1){L.lane=_e,L.endLane=_e;const J=le(L);for(let me=0;me0&&_e++;const Ge=J[me];_t(Ge,_e),Ge.endLane>L.endLane&&(_e=Ge.endLane)}L.endLane=_e}}function Vt(L){if(L&2)return"Start";if(L&4)return"Branch";if(L&8)return"Loop";if(L&16)return"Assignment";if(L&32)return"True";if(L&64)return"False";if(L&128)return"SwitchClause";if(L&256)return"ArrayMutation";if(L&512)return"Call";if(L&1024)return"ReduceLabel";if(L&1)return"Unreachable";throw new Error}function yn(L){const _e=jn(L);return wE(_e,L,!1)}function pn(L,_e){let J=Vt(L.flags);if(_e&&(J=`${J}#${Bt(L)}`),Ct(L))L.node&&(J+=` (${yn(L.node)})`);else if(He(L)){const me=[];for(let Ge=L.clauseStart;GeMath.max(Tt,kt.lane),0)+1,J=Oe(Array(_e),""),me=kn.map(()=>Array(_e)),Ge=kn.map(()=>Oe(Array(_e),0));for(const Tt of ma){me[Tt.level][Tt.lane]=Tt;const kt=le(Tt);for(let bn=0;bn0&&(Hn|=1),bn0&&(Hn|=1),bn0?Ge[Tt-1][kt]:0,bn=kt>0?Ge[Tt][kt-1]:0;let Bn=Ge[Tt][kt];Bn||(en&8&&(Bn|=12),bn&2&&(Bn|=3),Ge[Tt][kt]=Bn)}for(let Tt=0;Tt0?L.repeat(_e):"";let J="";for(;J.length<_e;)J+=L;return J}}e.formatControlFlowGraph=Ar})(N||(N={}))}});function QEe(e){const t=e1e.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!t1e.test(s))&&!(l&&!r1e.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function u9e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i=",i.version)),Kf(o.major)||r.push(Kf(o.minor)?uh("<",o.version.increment("major")):Kf(o.patch)?uh("<",o.version.increment("minor")):uh("<=",o.version)),!0):!1}function p9e(e,t,r){const i=Ane(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(Kf(s))(e==="<"||e===">")&&r.push(uh("<",vm.zero));else switch(e){case"~":r.push(uh(">=",o)),r.push(uh("<",o.increment(Kf(l)?"major":"minor")));break;case"^":r.push(uh(">=",o)),r.push(uh("<",o.increment(o.major>0||Kf(l)?"major":o.minor>0||Kf(u)?"minor":"patch")));break;case"<":case">=":r.push(Kf(l)||Kf(u)?uh(e,o.with({prerelease:"0"})):uh(e,o));break;case"<=":case">":r.push(Kf(l)?uh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):Kf(u)?uh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):uh(e,o));break;case"=":case void 0:Kf(l)||Kf(u)?(r.push(uh(">=",o.with({prerelease:"0"}))),r.push(uh("<",o.increment(Kf(l)?"major":"minor").with({prerelease:"0"})))):r.push(uh("=",o));break;default:return!1}return!0}function Kf(e){return e==="*"||e==="x"||e==="X"}function uh(e,t){return{operator:e,operand:t}}function f9e(e,t){if(t.length===0)return!0;for(const r of t)if(m9e(e,r))return!0;return!1}function m9e(e,t){for(const r of t)if(!_9e(e,r.operator,r.operand))return!1;return!0}function _9e(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return N.assertNever(t)}}function h9e(e){return Ot(e,g9e).join(" || ")||"*"}function g9e(e){return Ot(e,y9e).join(" ")}function y9e(e){return`${e.operator}${e.operand}`}var e1e,t1e,n1e,r1e,i1e,Ine,_G,vm,k2,o1e,a1e,s1e,l1e,c1e,v9e=T({"src/compiler/semver.ts"(){ra(),e1e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,t1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n1e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,r1e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i1e=/^[a-z0-9-]+$/i,Ine=/^(0|[1-9]\d*)$/,_G=class a6{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=N.checkDefined(QEe(t),"Invalid version")),N.assert(t>=0,"Invalid argument: major"),N.assert(r>=0,"Invalid argument: minor"),N.assert(i>=0,"Invalid argument: patch");const l=o?To(o)?o:o.split("."):et,u=s?To(s)?s:s.split("."):et;N.assert(Zn(l,p=>n1e.test(p)),"Invalid argument: prerelease"),N.assert(Zn(u,p=>i1e.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=QEe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new a6(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:rl(this.major,t.major)||rl(this.minor,t.minor)||rl(this.patch,t.patch)||u9e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new a6(this.major+1,0,0);case"minor":return new a6(this.major,this.minor+1,0);case"patch":return new a6(this.major,this.minor,this.patch+1);default:return N.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new a6(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return bt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),bt(this.build)&&(t+=`+${this.build.join(".")}`),t}},_G.zero=new _G(0,0,0,["0"]),vm=_G,k2=class QFe{constructor(t){this._alternatives=t?N.checkDefined(ZEe(t),"Invalid range spec."):et}static tryParse(t){const r=ZEe(t);if(r){const i=new QFe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new vm(t)),f9e(t,this._alternatives)}toString(){return h9e(this._alternatives)}},o1e=/\|\|/g,a1e=/\s+/g,s1e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,l1e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,c1e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function u1e(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 b9e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&u1e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function E9e(){if(uG())try{const{performance:e,PerformanceObserver:t}=AE("perf_hooks");if(u1e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function xne(){return hG}var hG,Rne,Ys,S9e=T({"src/compiler/performanceCore.ts"(){ra(),hG=b9e()||E9e(),Rne=hG?.performance,Ys=Rne?()=>Rne.now():Date.now?Date.now:()=>+new Date}}),k6,od,T9e=T({"src/compiler/perfLogger.ts"(){try{const e=HN.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";k6=AE(e)}catch{k6=void 0}od=k6?.logEvent?k6:void 0}});function d1e(e,t,r,i){return e?gG(t,r,i):yG}function gG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&il(t)}function s(){--i===0?(il(r),ef(e,t,r)):i<0&&N.fail("enter/exit count does not match.")}}function il(e){if(Gx){const t=QN.get(e)??0;QN.set(e,t+1),Vx.set(e,Ys()),uS?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function ef(e,t,r){if(Gx){const i=(r!==void 0?Vx.get(r):void 0)??Ys(),o=(t!==void 0?Vx.get(t):void 0)??Dne,s=jx.get(e)||0;jx.set(e,s+(i-o)),uS?.measure(e,t,r)}}function A9e(e){return QN.get(e)||0}function I9e(e){return jx.get(e)||0}function x9e(e){jx.forEach((t,r)=>e(r,t))}function R9e(e){Vx.forEach((t,r)=>e(r))}function D9e(e){e!==void 0?jx.delete(e):jx.clear(),uS?.clearMeasures(e)}function N9e(e){e!==void 0?(QN.delete(e),Vx.delete(e)):(QN.clear(),Vx.clear()),uS?.clearMarks(e)}function C9e(){return Gx}function P9e(e=gu){var t;return Gx||(Gx=!0,w2||(w2=xne()),w2&&(Dne=w2.performance.timeOrigin,(w2.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(uS=w2.performance))),!0}function M9e(){Gx&&(Vx.clear(),QN.clear(),jx.clear(),uS=void 0,Gx=!1)}var w2,uS,yG,Gx,Dne,Vx,QN,jx,L9e=T({"src/compiler/performance.ts"(){ra(),yG={enter:$a,exit:$a},Gx=!1,Dne=Ys(),Vx=new Map,QN=new Map,jx=new Map}}),Nne={};X(Nne,{clearMarks:()=>N9e,clearMeasures:()=>D9e,createTimer:()=>gG,createTimerIf:()=>d1e,disable:()=>M9e,enable:()=>P9e,forEachMark:()=>R9e,forEachMeasure:()=>x9e,getCount:()=>A9e,getDuration:()=>I9e,isEnabled:()=>C9e,mark:()=>il,measure:()=>ef,nullTimer:()=>yG});var dS=T({"src/compiler/_namespaces/ts.performance.ts"(){L9e()}}),sr,O2,Cne,Pne,k9e=T({"src/compiler/tracing.ts"(){ra(),dS(),(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function p(se,G,ne){if(N.assert(!sr,"Tracing already started"),t===void 0)try{t=AE("fs")}catch(oe){throw new Error(`tracing requires having fs (original error: ${oe.message||oe})`)}o=se,s.length=0,l===void 0&&(l=Qr(G,"legend.json")),t.existsSync(G)||t.mkdirSync(G,{recursive:!0});const he=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ve=Qr(G,`trace${he}.json`),$=Qr(G,`types${he}.json`);u.push({configFilePath:ne,tracePath:ve,typesPath:$}),i=t.openSync(ve,"w"),sr=e;const Y={cat:"__metadata",ph:"M",ts:1e3*Ys(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...Y},{name:"thread_name",args:{name:"Main"},...Y},{name:"TracingStartedInBrowser",...Y,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`, `))}e.startTracing=p;function h(){N.assert(sr,"Tracing is not in progress"),N.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),sr=void 0,s.length?Z(s):u[u.length-1].typesPath=void 0}e.stopTracing=h;function m(se){o!=="server"&&s.push(se)}e.recordType=m,(se=>{se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(e.Phase||(e.Phase={}));function v(se,G,ne){U("I",se,G,ne,'"s":"g"')}e.instant=v;const A=[];function I(se,G,ne,he=!1){he&&U("B",se,G,ne),A.push({phase:se,name:G,args:ne,time:1e3*Ys(),separateBeginAndEnd:he})}e.push=I;function R(se){N.assert(A.length>0),O(A.length-1,1e3*Ys(),se),A.length--}e.pop=R;function M(){const se=1e3*Ys();for(let G=A.length-1;G>=0;G--)O(G,se);A.length=0}e.popAll=M;const C=1e3*10;function O(se,G,ne){const{phase:he,name:ve,args:$,time:Y,separateBeginAndEnd:oe}=A[se];oe?(N.assert(!ne,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",he,ve,$,void 0,G)):C-Y%C<=G-Y&&U("X",he,ve,{...$,results:ne},`"dur":${G-Y}`,Y)}function U(se,G,ne,he,ve,$=1e3*Ys()){o==="server"&&G==="checkTypes"||(il("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${se}","cat":"${G}","ts":${$},"name":"${ne}"`),ve&&t.writeSync(i,`,${ve}`),he&&t.writeSync(i,`,"args":${JSON.stringify(he)}`),t.writeSync(i,"}"),il("endTracing"),ef("Tracing","beginTracing","endTracing"))}function K(se){const G=jn(se);return G?{path:G.path,start:ne(bs(G,se.pos)),end:ne(bs(G,se.end))}:void 0;function ne(he){return{line:he.line+1,character:he.character+1}}}function Z(se){var G,ne,he,ve,$,Y,oe,fe,Ne,pe,ie,ye,Me,Ue,Ee,De,Pe,We,At;il("beginDumpTypes");const Se=u[u.length-1].typesPath,je=t.openSync(Se,"w"),at=new Map;t.writeSync(je,"[");const Gt=se.length;for(let yt=0;ytDi.id),referenceLocation:K(Mn.node)}}let hn={};if($e.flags&16777216){const Mn=$e;hn={conditionalCheckType:(Y=Mn.checkType)==null?void 0:Y.id,conditionalExtendsType:(oe=Mn.extendsType)==null?void 0:oe.id,conditionalTrueType:((fe=Mn.resolvedTrueType)==null?void 0:fe.id)??-1,conditionalFalseType:((Ne=Mn.resolvedFalseType)==null?void 0:Ne.id)??-1}}let Qt={};if($e.flags&33554432){const Mn=$e;Qt={substitutionBaseType:(pe=Mn.baseType)==null?void 0:pe.id,constraintType:(ie=Mn.constraint)==null?void 0:ie.id}}let $t={};if(It&1024){const Mn=$e;$t={reverseMappedSourceType:(ye=Mn.source)==null?void 0:ye.id,reverseMappedMappedType:(Me=Mn.mappedType)==null?void 0:Me.id,reverseMappedConstraintType:(Ue=Mn.constraintType)==null?void 0:Ue.id}}let _i={};if(It&256){const Mn=$e;_i={evolvingArrayElementType:Mn.elementType.id,evolvingArrayFinalType:(Ee=Mn.finalArrayType)==null?void 0:Ee.id}}let ao;const Oi=$e.checker.getRecursionIdentity($e);Oi&&(ao=at.get(Oi),ao||(ao=at.size,at.set(Oi,ao)));const No={id:$e.id,intrinsicName:$e.intrinsicName,symbolName:tn?.escapedName&&Vi(tn.escapedName),recursionId:ao,isTuple:It&8?!0:void 0,unionTypes:$e.flags&1048576?(De=$e.types)==null?void 0:De.map(Mn=>Mn.id):void 0,intersectionTypes:$e.flags&2097152?$e.types.map(Mn=>Mn.id):void 0,aliasTypeArguments:(Pe=$e.aliasTypeArguments)==null?void 0:Pe.map(Mn=>Mn.id),keyofType:$e.flags&4194304?(We=$e.type)==null?void 0:We.id:void 0,...Pn,...Xn,...hn,...Qt,...$t,..._i,destructuringPattern:K($e.pattern),firstDeclaration:K((At=tn?.declarations)==null?void 0:At[0]),flags:N.formatTypeFlags($e.flags).split("|"),display:rn};t.writeSync(je,JSON.stringify(No)),yt(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))(w6||{}),O6=(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))(O6||{}),W6=(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))(W6||{}),vG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(vG||{}),F6=(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))(F6||{}),z6=(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))(z6||{}),bG=(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))(bG||{}),W2=(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))(W2||{}),EG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(EG||{}),Ux=class{},B6=(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))(B6||{}),SG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(SG||{}),TG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(TG||{}),G6=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(G6||{}),AG=(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))(AG||{}),IG=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(IG||{}),xG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(xG||{}),RG=(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))(RG||{}),DG=(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))(DG||{}),NG=(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))(NG||{}),CG=(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))(CG||{}),PG=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(PG||{}),MG=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(MG||{}),LG=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(LG||{}),kG=(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))(kG||{}),V6=(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))(V6||{}),wG=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(wG||{}),OG=(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))(OG||{}),WG=(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))(WG||{}),FG=(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))(FG||{}),j6=(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))(j6||{}),U6=(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))(U6||{}),zG=(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))(zG||{}),BG=(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))(BG||{}),GG=(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))(GG||{}),VG=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(VG||{}),jG=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(jG||{}),UG=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(UG||{}),H6=(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))(H6||{}),HG=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(HG||{}),qG=(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))(qG||{}),JG=(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))(JG||{}),KG=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(KG||{}),XG=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(XG||{}),YG=(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))(YG||{}),F2=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(F2||{}),Hx=(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))(Hx||{}),$G=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))($G||{}),QG=(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))(QG||{}),ZG=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(ZG||{}),eV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(eV||{}),ZN=(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))(ZN||{}),tV=(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))(tV||{}),nV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(nV||{}),rV=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(rV||{}),q6=(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))(q6||{}),iV=(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))(iV||{}),oV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(oV||{}),aV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(aV||{}),sV=(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))(sV||{}),lV=(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))(lV||{}),J6=(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))(J6||{}),K6=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(K6||{}),X6=(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))(X6||{}),cV=(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))(cV||{}),uV=(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))(uV||{}),dV=(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))(dV||{}),pV=(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))(pV||{}),fV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(fV||{}),mV=(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))(mV||{}),_V=(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))(_V||{}),hV=(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))(hV||{}),z2={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}},gV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(gV||{})}});function eC(e){let t=5381;for(let r=0;r{K.isClosed=!0,EA(t,K)}}}function u(C){const O=[];return O.pollingInterval=C,O.pollIndex=0,O.pollScheduled=!1,O}function p(C,O){O.pollIndex=m(O,O.pollingInterval,O.pollIndex,Q6[O.pollingInterval]),O.length?M(O.pollingInterval):(N.assert(O.pollIndex===0),O.pollScheduled=!1)}function h(C,O){m(r,250,0,r.length),p(C,O),!O.pollScheduled&&r.length&&M(250)}function m(C,O,U,K){return m1e(e,C,U,K,Z);function Z(V,se,G){G?(V.unchangedPolls=0,C!==r&&(C[se]=void 0,I(V))):V.unchangedPolls!==G2[O]?V.unchangedPolls++:C===r?(V.unchangedPolls=1,C[se]=void 0,A(V,250)):O!==2e3&&(V.unchangedPolls++,C[se]=void 0,A(V,O===250?500:2e3))}}function v(C){switch(C){case 250:return i;case 500:return o;case 2e3:return s}}function A(C,O){v(O).push(C),R(O)}function I(C){r.push(C),R(250)}function R(C){v(C).pollScheduled||M(C)}function M(C){v(C).pollScheduled=e.setTimeout(C===250?h:p,C,C===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",v(C))}}function W9e(e,t,r,i){const o=Zp(),s=i?new Map:void 0,l=new Map,u=Mu(t);return p;function p(m,v,A,I){const R=u(m);o.add(R,v).length===1&&s&&s.set(R,r(m)||Op);const M=ai(R)||".",C=l.get(M)||h(ai(m)||".",M,I);return C.referenceCount++,{close:()=>{C.referenceCount===1?(C.close(),l.delete(M)):C.referenceCount--,o.remove(R,v)}}}function h(m,v,A){const I=e(m,1,(R,M)=>{if(!Po(M))return;const C=go(M,m),O=u(C),U=C&&o.get(O);if(U){let K,Z=1;if(s){const V=s.get(O);if(R==="change"&&(K=r(C)||Op,K.getTime()===V.getTime()))return;K||(K=r(C)||Op),s.set(O,K),V===Op?Z=0:K===Op&&(Z=2)}for(const V of U)V(C,Z,K)}},!1,500,A);return I.referenceCount=0,l.set(v,I),I}}function F9e(e){const t=[];let r=0,i;return o;function o(u,p){const h={fileName:u,callback:p,mtime:TA(e,u)};return t.push(h),l(),{close:()=>{h.isClosed=!0,EA(t,h)}}}function s(){i=void 0,r=m1e(e,t,r,Q6[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function _1e(e,t,r,i,o){const l=Mu(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var v;return(v=e.get(l))==null?void 0:v.callbacks.slice().forEach(A=>A(p,h,m))}),callbacks:[i]}),{close:()=>{const p=e.get(l);p&&(!Bx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Mf(p)))}}}function z9e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,yV(r,i),t),!0):!1}function yV(e,t){return e===0?0:t===0?2:1}function B2(e){return One(e)}function Lne(e){One=e}function B9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const p=new Map,h=Zp(),m=new Map;let v;const A=Fx(!t),I=Mu(t);return(G,ne,he,ve)=>he?R(G,ve,ne):e(G,ne,he,ve);function R(G,ne,he){const ve=I(G);let $=p.get(ve);$?$.refCount++:($={watcher:e(G,oe=>{V(oe,ne)||(ne?.synchronousWatchDirectory?(M(ve,oe),Z(G,ve,ne)):C(G,ve,oe,ne))},!1,ne),refCount:1,childWatches:et},p.set(ve,$),Z(G,ve,ne));const Y=he&&{dirName:G,callback:he};return Y&&h.add(ve,Y),{dirName:G,close:()=>{const oe=N.checkDefined(p.get(ve));Y&&h.remove(ve,Y),oe.refCount--,!oe.refCount&&(p.delete(ve),Mf(oe),oe.childWatches.forEach(Qm))}}}function M(G,ne,he){let ve,$;Po(ne)?ve=ne:$=ne,h.forEach((Y,oe)=>{if(!($&&$.get(oe)===!0)&&(oe===G||uo(G,oe)&&G[oe.length]===al))if($)if(he){const fe=$.get(oe);fe?fe.push(...he):$.set(oe,he.slice())}else $.set(oe,!0);else Y.forEach(({callback:fe})=>fe(ve))})}function C(G,ne,he,ve){const $=p.get(ne);if($&&o(G,1)){O(G,ne,he,ve);return}M(ne,he),K($)}function O(G,ne,he,ve){const $=m.get(ne);$?$.fileNames.push(he):m.set(ne,{dirName:G,options:ve,fileNames:[he]}),v&&(u(v),v=void 0),v=l(U,1e3,"timerToUpdateChildWatches")}function U(){v=void 0,B2(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);const G=Ys(),ne=new Map;for(;!v&&m.size;){const ve=m.entries().next();N.assert(!ve.done);const{value:[$,{dirName:Y,options:oe,fileNames:fe}]}=ve;m.delete($);const Ne=Z(Y,$,oe);M($,ne,Ne?void 0:fe)}B2(`sysLog:: invokingWatchers:: Elapsed:: ${Ys()-G}ms:: ${m.size}`),h.forEach((ve,$)=>{const Y=ne.get($);Y&&ve.forEach(({callback:oe,dirName:fe})=>{To(Y)?Y.forEach(oe):oe(fe)})});const he=Ys()-G;B2(`sysLog:: Elapsed:: ${he}ms:: onTimerToUpdateChildWatches:: ${m.size} ${v}`)}function K(G){if(!G)return;const ne=G.childWatches;G.childWatches=et;for(const he of ne)he.close(),K(p.get(I(he.dirName)))}function Z(G,ne,he){const ve=p.get(ne);if(!ve)return!1;let $;const Y=P6(o(G,1)?Hi(i(G),Ne=>{const pe=go(Ne,G);return!V(pe,he)&&A(pe,ga(s(pe)))===0?pe:void 0}):et,ve.childWatches,(Ne,pe)=>A(Ne,pe.dirName),oe,Qm,fe);return ve.childWatches=$||et,Y;function oe(Ne){const pe=R(Ne,he);fe(pe)}function fe(Ne){($||($=[])).push(Ne)}}function V(G,ne){return bt(V2,he=>se(G,he))||h1e(G,ne,t,r)}function se(G,ne){return G.includes(ne)?!0:t?!1:I(G).includes(ne)}}function G9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function V9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Op),t(e,s!==Op?0:2,s)):t(e,1,s)}}function h1e(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(hF(e,t?.excludeFiles,r,i())||hF(e,t?.excludeDirectories,r,i()))}function g1e(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ga(Qr(e,l)):e;(!l||!h1e(u,r,i,o))&&t(u)}}}function kne({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:v,useNonPollingWatchers:A,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:C}){const O=new Map,U=new Map,K=new Map;let Z,V,se,G,ne=!1;return{watchFile:he,watchDirectory:fe};function he(Ee,De,Pe,We){We=Y(We,A);const At=N.checkDefined(We.watchFile);switch(At){case 0:return ie(Ee,De,250,void 0);case 1:return ie(Ee,De,Pe,void 0);case 2:return ve()(Ee,De,Pe,void 0);case 3:return $()(Ee,De,void 0,void 0);case 4:return ye(Ee,0,V9e(Ee,De,t),!1,Pe,Ow(We));case 5:return se||(se=W9e(ye,l,t,M)),se(Ee,De,Pe,Ow(We));default:N.assertNever(At)}}function ve(){return Z||(Z=O9e({getModifiedTime:t,setTimeout:r}))}function $(){return V||(V=F9e({getModifiedTime:t,setTimeout:r}))}function Y(Ee,De){if(Ee&&Ee.watchFile!==void 0)return Ee;switch(v){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Ee);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Ee);case"UseFsEventsOnParentDirectory":De=!0;default:return De?oe(5,1,Ee):{watchFile:4}}}function oe(Ee,De,Pe){const We=Pe?.fallbackPolling;return{watchFile:Ee,fallbackPolling:We===void 0?De:We}}function fe(Ee,De,Pe,We){return p?ye(Ee,1,g1e(Ee,De,We,l,u),Pe,500,Ow(We)):(G||(G=B9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:Ne,realpath:m,setTimeout:r,clearTimeout:i})),G(Ee,De,Pe,We))}function Ne(Ee,De,Pe,We){N.assert(!Pe);const At=pe(We),Se=N.checkDefined(At.watchDirectory);switch(Se){case 1:return ie(Ee,()=>De(Ee),500,void 0);case 2:return ve()(Ee,()=>De(Ee),500,void 0);case 3:return $()(Ee,()=>De(Ee),void 0,void 0);case 0:return ye(Ee,1,g1e(Ee,De,We,l,u),Pe,500,Ow(At));default:N.assertNever(Se)}}function pe(Ee){if(Ee&&Ee.watchDirectory!==void 0)return Ee;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const De=Ee?.fallbackPolling;return{watchDirectory:0,fallbackPolling:De!==void 0?De:void 0}}}function ie(Ee,De,Pe,We){return _1e(O,l,Ee,De,At=>e(Ee,At,Pe,We))}function ye(Ee,De,Pe,We,At,Se){return _1e(We?K:U,l,Ee,Pe,je=>Me(Ee,De,je,We,At,Se))}function Me(Ee,De,Pe,We,At,Se){let je,at;R&&(je=Ee.substring(Ee.lastIndexOf(al)),at=je.slice(al.length));let Gt=s(Ee,De)?$e():rn();return{close:()=>{Gt&&(Gt.close(),Gt=void 0)}};function yt(Pn){Gt&&(C(`sysLog:: ${Ee}:: Changing watcher to ${Pn===$e?"Present":"Missing"}FileSystemEntryWatcher`),Gt.close(),Gt=Pn())}function $e(){if(ne)return C(`sysLog:: ${Ee}:: Defaulting to watchFile`),tn();try{const Pn=(De===1||!M?o:Ue)(Ee,We,R?It:Pe);return Pn.on("error",()=>{Pe("rename",""),yt(rn)}),Pn}catch(Pn){return ne||(ne=Pn.code==="ENOSPC"),C(`sysLog:: ${Ee}:: Changing to watchFile`),tn()}}function It(Pn,Xn){let hn;if(Xn&&Al(Xn,"~")&&(hn=Xn,Xn=Xn.slice(0,Xn.length-1)),Pn==="rename"&&(!Xn||Xn===at||Al(Xn,je))){const Qt=t(Ee)||Op;hn&&Pe(Pn,hn,Qt),Pe(Pn,Xn,Qt),R?yt(Qt===Op?rn:$e):Qt===Op&&yt(rn)}else hn&&Pe(Pn,hn),Pe(Pn,Xn)}function tn(){return he(Ee,G9e(Pe),At,Se)}function rn(){return he(Ee,(Pn,Xn,hn)=>{Xn===0&&(hn||(hn=t(Ee)||Op),hn!==Op&&(Pe("rename","",hn),yt($e)))},At,Se)}}function Ue(Ee,De,Pe){let We=t(Ee)||Op;return o(Ee,De,(At,Se,je)=>{At==="change"&&(je||(je=t(Ee)||Op),je.getTime()===We.getTime())||(We=je||t(Ee)||Op,Pe(At,Se,We))})}}function wne(e){const t=e.writeFile;e.writeFile=(r,i,o)=>tU(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function y1e(e){gu=e}var vV,Y6,Op,$6,Q6,G2,V2,One,bV,gu,j9e=T({"src/compiler/sys.ts"(){ra(),vV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(vV||{}),Y6=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(Y6||{}),Op=new Date(0),$6={Low:32,Medium:64,High:256},Q6=Mne($6),G2=Mne($6),V2=["/node_modules/.","/.git","/.#"],One=$a,bV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(bV||{}),gu=(()=>{function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=AE("fs"),s=AE("path"),l=AE("os");let u;try{u=AE("crypto")}catch{u=void 0}let p,h="./profile.cpuprofile";const m=AE("buffer").Buffer,v=process.platform==="darwin",A=process.platform==="linux"||v,I=l.platform(),R=$(),M=o.realpathSync.native?process.platform==="win32"?We:o.realpathSync.native:o.realpathSync,C=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,O=process.platform==="win32"||v,U=Sd(()=>process.cwd()),{watchFile:K,watchDirectory:Z}=kne({pollingWatchFileWorker:oe,getModifiedTime:Se,setTimeout,clearTimeout,fsWatchWorker:fe,useCaseSensitiveFileNames:R,getCurrentDirectory:U,fileSystemEntryExists:Ue,fsSupportsRecursiveFsWatch:O,getAccessibleSortedChildDirectories:yt=>ye(yt).directories,realpath:At,tscWatchFile:HN.TSC_WATCHFILE,useNonPollingWatchers:!!HN.TSC_NONPOLLING_WATCHER,tscWatchDirectory:HN.TSC_WATCHDIRECTORY,inodeWatching:A,fsWatchWithTimestamp:v,sysLog:B2}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(yt){process.stdout.write(yt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:pe,writeFile:ie,watchFile:K,watchDirectory:Z,resolvePath:yt=>s.resolve(yt),fileExists:Ee,directoryExists:De,getAccessibleFileSystemEntries:ye,createDirectory(yt){if(!V.directoryExists(yt))try{o.mkdirSync(yt)}catch($e){if($e.code!=="EEXIST")throw $e}},getExecutingFilePath(){return C},getCurrentDirectory:U,getDirectories:Pe,getEnvironmentVariable(yt){return HN[yt]||""},readDirectory:Me,getModifiedTime:Se,setModifiedTime:je,deleteFile:at,createHash:u?Gt:eC,createSHA256Hash:u?Gt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(yt){try{const $e=se(yt);if($e?.isFile())return $e.size}catch{}return 0},exit(yt){he(()=>process.exit(yt))},enableCPUProfiler:G,disableCPUProfiler:he,cpuProfilingEnabled:()=>!!p||Nr(process.execArgv,"--cpu-prof")||Nr(process.execArgv,"--prof"),realpath:At,debugMode:!!HN.NODE_INSPECTOR_IPC||!!HN.VSCODE_INSPECTOR_OPTIONS||bt(process.execArgv,yt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(yt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{AE("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var yt;const $e=(yt=process.stdout)==null?void 0:yt._handle;$e&&$e.setBlocking&&$e.setBlocking(!0)},bufferFrom:ve,base64decode:yt=>ve(yt,"base64").toString("utf8"),base64encode:yt=>ve(yt).toString("base64"),require:(yt,$e)=>{try{const It=Cse($e,yt,V);return{module:AE(It),modulePath:It,error:void 0}}catch(It){return{module:void 0,modulePath:void 0,error:It}}}};return V;function se(yt){return o.statSync(yt,{throwIfNoEntry:!1})}function G(yt,$e){if(p)return $e(),!1;const It=AE("inspector");if(!It||!It.Session)return $e(),!1;const tn=new It.Session;return tn.connect(),tn.post("Profiler.enable",()=>{tn.post("Profiler.start",()=>{p=tn,h=yt,$e()})}),!0}function ne(yt){let $e=0;const It=new Map,tn=Lu(s.dirname(C)),rn=`file://${dh(tn)===1?"":"/"}${tn}`;for(const Pn of yt.nodes)if(Pn.callFrame.url){const Xn=Lu(Pn.callFrame.url);bm(rn,Xn,R)?Pn.callFrame.url=IA(rn,Xn,rn,Mu(R),!0):i.test(Xn)||(Pn.callFrame.url=(It.has(Xn)?It:It.set(Xn,`external${$e}.js`)).get(Xn),$e++)}return yt}function he(yt){if(p&&p!=="stopping"){const $e=p;return p.post("Profiler.stop",(It,{profile:tn})=>{var rn;if(!It){try{(rn=se(h))!=null&&rn.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(ne(tn)))}p=void 0,$e.disconnect(),yt()}),p="stopping",!0}else return yt(),!1}function ve(yt,$e){return m.from&&m.from!==Int8Array.from?m.from(yt,$e):new m(yt,$e)}function $(){return I==="win32"||I==="win64"?!1:!Ee(Y(__filename))}function Y(yt){return yt.replace(/\w/g,$e=>{const It=$e.toUpperCase();return $e===It?$e.toLowerCase():It})}function oe(yt,$e,It){o.watchFile(yt,{persistent:!0,interval:It},rn);let tn;return{close:()=>o.unwatchFile(yt,rn)};function rn(Pn,Xn){const hn=+Xn.mtime==0||tn===2;if(+Pn.mtime==0){if(hn)return;tn=2}else if(hn)tn=0;else{if(+Pn.mtime==+Xn.mtime)return;tn=1}$e(yt,tn,Pn.mtime)}}function fe(yt,$e,It){return o.watch(yt,O?{persistent:!0,recursive:!!$e}:{persistent:!0},It)}function Ne(yt,$e){let It;try{It=o.readFileSync(yt)}catch{return}let tn=It.length;if(tn>=2&&It[0]===254&&It[1]===255){tn&=-2;for(let rn=0;rn=2&&It[0]===255&&It[1]===254?It.toString("utf16le",2):tn>=3&&It[0]===239&&It[1]===187&&It[2]===191?It.toString("utf8",3):It.toString("utf8")}function pe(yt,$e){var It,tn;(It=od)==null||It.logStartReadFile(yt);const rn=Ne(yt);return(tn=od)==null||tn.logStopReadFile(),rn}function ie(yt,$e,It){var tn;(tn=od)==null||tn.logEvent("WriteFile: "+yt),It&&($e="\uFEFF"+$e);let rn;try{rn=o.openSync(yt,"w"),o.writeSync(rn,$e,void 0,"utf8")}finally{rn!==void 0&&o.closeSync(rn)}}function ye(yt){var $e;($e=od)==null||$e.logEvent("ReadDir: "+(yt||"."));try{const It=o.readdirSync(yt||".",{withFileTypes:!0}),tn=[],rn=[];for(const Pn of It){const Xn=typeof Pn=="string"?Pn:Pn.name;if(Xn==="."||Xn==="..")continue;let hn;if(typeof Pn=="string"||Pn.isSymbolicLink()){const Qt=Qr(yt,Xn);try{if(hn=se(Qt),!hn)continue}catch{continue}}else hn=Pn;hn.isFile()?tn.push(Xn):hn.isDirectory()&&rn.push(Xn)}return tn.sort(),rn.sort(),{files:tn,directories:rn}}catch{return aW}}function Me(yt,$e,It,tn,rn){return AU(yt,$e,It,tn,R,process.cwd(),rn,ye,At)}function Ue(yt,$e){const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const tn=se(yt);if(!tn)return!1;switch($e){case 0:return tn.isFile();case 1:return tn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=It}}function Ee(yt){return Ue(yt,0)}function De(yt){return Ue(yt,1)}function Pe(yt){return ye(yt).directories.slice()}function We(yt){return yt.length<260?o.realpathSync.native(yt):o.realpathSync(yt)}function At(yt){try{return M(yt)}catch{return yt}}function Se(yt){var $e;const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return($e=se(yt))==null?void 0:$e.mtime}catch{return}finally{Error.stackTraceLimit=It}}function je(yt,$e){try{o.utimesSync(yt,$e,$e)}catch{return}}function at(yt){try{return o.unlinkSync(yt)}catch{return}}function Gt(yt){const $e=u.createHash("sha256");return $e.update(yt),$e.digest("hex")}}let r;return uG()&&(r=t()),r&&wne(r),r})(),gu&&gu.getEnvironmentVariable&&(w9e(gu),N.setAssertionLevel(/^development$/i.test(gu.getEnvironmentVariable("NODE_ENV"))?1:0)),gu&&gu.debugMode&&(N.isDebugging=!0)}});function EV(e){return e===47||e===92}function Wne(e){return Z6(e)<0}function pp(e){return Z6(e)>0}function SV(e){const t=Z6(e);return t>0&&t===e.length}function tC(e){return Z6(e)!==0}function Wp(e){return/^\.\.?($|[\\/])/.test(e)}function TV(e){return!tC(e)&&!Wp(e)}function AA(e){return rc(e).includes(".")}function Il(e,t){return e.length>t.length&&Al(e,t)}function Tc(e,t){for(const r of t)if(Il(e,r))return!0;return!1}function Py(e){return e.length>0&&EV(e.charCodeAt(e.length-1))}function v1e(e){return e>=97&&e<=122||e>=65&&e<=90}function U9e(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function Z6(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?al:q2,2);return i<0?e.length:i+1}if(v1e(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(Bne);if(r!==-1){const i=r+Bne.length,o=e.indexOf(al,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&v1e(e.charCodeAt(o+1))){const u=U9e(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function dh(e){const t=Z6(e);return t<0?~t:t}function ai(e){e=Lu(e);const t=dh(e);return t===e.length?e:(e=i0(e),e.slice(0,Math.max(t,e.lastIndexOf(al))))}function rc(e,t,r){if(e=Lu(e),dh(e)===e.length)return"";e=i0(e);const o=e.slice(Math.max(dh(e),e.lastIndexOf(al)+1)),s=t!==void 0&&r!==void 0?qx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function b1e(e,t,r){if(uo(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function H9e(e,t,r){if(typeof t=="string")return b1e(e,t,r)||"";for(const i of t){const o=b1e(e,i,r);if(o)return o}return""}function qx(e,t,r){if(t)return H9e(i0(e),t,r?r0:cS);const i=rc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function q9e(e,t){const r=e.substring(0,t),i=e.substring(t).split(al);return i.length&&!tl(i)&&i.pop(),[r,...i]}function zc(e,t=""){return e=Qr(t,e),q9e(e,dh(e))}function Cv(e,t){return e.length===0?"":(e[0]&&Bc(e[0]))+e.slice(1,t).join(al)}function Lu(e){return e.includes("\\")?e.replace(T1e,al):e}function fS(e){if(!bt(e))return[];const t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Qr(e,...t){e&&(e=Lu(e));for(let r of t)r&&(r=Lu(r),!e||dh(r)!==0?e=r:e=Bc(e)+r);return e}function Pv(e,...t){return ga(bt(t)?Qr(e,...t):Lu(e))}function j2(e,t){return fS(zc(e,t))}function go(e,t){return Cv(j2(e,t))}function ga(e){if(e=Lu(e),!t4.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!t4.test(e)))return e;const r=Cv(fS(zc(e)));return r&&Py(e)?Bc(r):r}function J9e(e){return e.length===0?"":e.slice(1).join(al)}function AV(e,t){return J9e(j2(e,t))}function ol(e,t,r){const i=pp(e)?ga(e):go(e,t);return r(i)}function i0(e){return Py(e)?e.substr(0,e.length-1):e}function Bc(e){return Py(e)?e:e+al}function NE(e){return!tC(e)&&!Wp(e)?"./"+e:e}function U2(e,t,r,i){const o=r!==void 0&&i!==void 0?qx(e,r,i):qx(e);return o?e.slice(0,e.length-o.length)+(uo(t,".")?t:"."+t):e}function Fne(e,t){const r=HH(e);return r?e.slice(0,e.length-r.length)+(uo(t,".")?t:"."+t):U2(e,t)}function zne(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,dh(e)),o=t.substring(0,dh(t)),s=R6(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!t4.test(l)&&!t4.test(u))return r(l,u);const p=fS(zc(e)),h=fS(zc(t)),m=Math.min(p.length,h.length);for(let v=1;v0==dh(t)>0,"Paths must either both be absolute or both be relative");const s=xV(e,t,(typeof r=="boolean"?r:!1)?r0:cS,typeof r=="function"?r:nl);return Cv(s)}function nC(e,t,r){return pp(e)?IA(t,e,t,r,!1):e}function H2(e,t,r){return NE(Em(ai(e),t,r))}function IA(e,t,r,i,o){const s=xV(Pv(r,e),Pv(r,t),cS,i),l=s[0];if(o&&pp(l)){const u=l.charAt(0)===al?"file://":"file:///";s[0]=u+l}return Cv(s)}function Sm(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ai(e);if(i===e)return;e=i}}function e4(e){return Al(e,"/node_modules")}var al,q2,Bne,T1e,t4,K9e=T({"src/compiler/path.ts"(){ra(),al="/",q2="\\",Bne="://",T1e=/\\/g,t4=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,X9e=T({"src/compiler/diagnosticInformationMap.generated.ts"(){p1e(),f={Unterminated_string_literal:S(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:S(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:S(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:S(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:S(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:S(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:S(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:S(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:S(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:S(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:S(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:S(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:S(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:S(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:S(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(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:S(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:S(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:S(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:S(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:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(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:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:S(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:S(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:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(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:S(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:S(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:S(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:S(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:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:S(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:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(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:S(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:S(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:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(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:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(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:S(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:S(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:S(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:S(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:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(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:S(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:S(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:S(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:S(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:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:S(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:S(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:S(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:S(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:S(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:S(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:S(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:S(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:S(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:S(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:S(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:S(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:S(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:S(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:S(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:S(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:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(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:S(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:S(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:S(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:S(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:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(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:S(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:S(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:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(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:S(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:S(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:S(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:S(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:S(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:S(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:S(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:S(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:S(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:S(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:S(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:S(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(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:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:S(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:S(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(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:S(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:S(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:S(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:S(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:S(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:S(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:S(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:S(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:S(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:S(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:S(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:S(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:S(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:S(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(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:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(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:S(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:S(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:S(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:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(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:S(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:S(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:S(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:S(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:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(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:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(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:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(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:S(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:S(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:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:S(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:S(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:S(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:S(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:S(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:S(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:S(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:S(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:S(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:S(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:S(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:S(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:S(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(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:S(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:S(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:S(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:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(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:S(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:S(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:S(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:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(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:S(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:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(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:S(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:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(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:S(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:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(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:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(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:S(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:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(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:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(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:S(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:S(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:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(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:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(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:S(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:S(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:S(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:S(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:S(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:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(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:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(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:S(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:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:S(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:S(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:S(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:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(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:S(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:S(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:S(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:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(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:S(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:S(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:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(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:S(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:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(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:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(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:S(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:S(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:S(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:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(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:S(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:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(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:S(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:S(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:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(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:S(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:S(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:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(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:S(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:S(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:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(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:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(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:S(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:S(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:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(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:S(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:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(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:S(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:S(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:S(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:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(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:S(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:S(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:S(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:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(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:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:S(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:S(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:S(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:S(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:S(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:S(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:S(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:S(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:S(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:S(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:S(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:S(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:S(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:S(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:S(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:S(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:S(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:S(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:S(6902,3,"type_Colon_6902","type:"),default_Colon:S(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:S(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:S(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:S(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:S(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:S(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:S(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:S(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:S(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:S(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:S(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:S(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:S(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:S(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:S(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:S(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:S(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:S(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:S(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:S(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:S(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:S(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:S(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:S(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:S(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:S(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:S(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:S(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:S(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:S(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:S(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(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:S(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:S(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:S(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:S(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:S(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:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(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:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(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:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(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:S(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(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:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(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:S(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:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(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:S(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:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(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:S(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:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(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:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(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:S(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:S(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:S(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:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(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:S(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:S(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:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(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:S(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:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(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:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(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:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(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:S(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:S(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:S(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:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(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:S(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:S(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:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(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:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:S(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:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(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:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(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:S(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:S(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:S(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:S(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:S(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:S(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:S(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:S(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:S(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 ad(e){return e>=80}function Gne(e){return e===32||ad(e)}function J2(e,t){if(e=2?J2(e,P1e):t===1?J2(e,N1e):J2(e,R1e)}function Y9e(e,t){return t>=2?J2(e,M1e):t===1?J2(e,C1e):J2(e,D1e)}function $9e(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function fa(e){return O1e[e]}function CE(e){return Hne.get(e)}function xA(e){const t=[];let r=0,i=0;for(;r127&&Hu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function K2(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):r4(Pg(e),t,r,e.text,i)}function r4(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Na(e,xA(i)):"unknown"}`));const 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 Hu(e){return e===10||e===13||e===8232||e===8233}function oC(e){return e>=48&&e<=57}function A1e(e){return oC(e)||e>=65&&e<=70||e>=97&&e<=102}function Q9e(e){return e<=1114111}function i4(e){return e>=48&&e<=55}function Vne(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function ka(e,t,r,i,o){if(Zm(t))return t;let s=!1;for(;;){const 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&&Mg(l)){t++;continue}break}return t}}function aC(e,t){if(N.assert(t>=0),t===0||Hu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+a4=0&&r127&&Mg(R)){v&&Hu(R)&&(m=!0),r++;continue}break e}}return v&&(I=o(u,p,h,m,s,I)),I}function Y2(e,t,r,i){return NV(!1,e,t,!1,r,i)}function $2(e,t,r,i){return NV(!1,e,t,!0,r,i)}function jne(e,t,r,i,o){return NV(!0,e,t,!1,r,i,o)}function Une(e,t,r,i,o){return NV(!0,e,t,!0,r,i,o)}function I1e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Xh(e,t){return jne(e,t,I1e,void 0,void 0)}function o0(e,t){return Une(e,t,I1e,void 0,void 0)}function o4(e){const t=CV.exec(e);if(t)return t[0]}function Yh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&n4(e,t)}function a0(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&&Y9e(e,t)}function tf(e,t,r){let i=Mv(e,0);if(!Yh(i,t))return!1;for(let o=s0(i);om,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>A,getTokenStart:()=>v,getTokenPos:()=>v,getTokenText:()=>u.substring(v,p),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>A===80||A>118,isReservedWord:()=>A>=83&&A<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Se,reScanAsteriskEqualsToken:je,reScanSlashToken:at,reScanTemplateToken:$e,reScanTemplateHeadOrNoSubstitutionTemplate:It,scanJsxIdentifier:Qt,scanJsxAttributeValue:$t,reScanJsxAttributeValue:_i,reScanJsxToken:tn,reScanLessThanToken:rn,reScanHashToken:Pn,reScanQuestionToken:Xn,reScanInvalidIdentifier:We,scanJsxToken:hn,scanJsDocToken:Oi,scanJSDocCommentTextToken:ao,scan:De,getText:sn,clearCommentDirectives:tt,setText:Bt,setScriptTarget:li,setLanguageVariant:hi,setScriptKind:Qi,setJSDocParsingMode:Io,setOnError:Rn,resetTokenState:ma,setTextPos:ma,setInJSDocType:Wa,tryScan:Ar,lookAhead:Di,scanRange:Mn};return N.isDebugging&&Object.defineProperty(K,"__debugShowCurrentPositionInText",{get:()=>{const Sn=K.getText();return Sn.slice(0,K.getTokenFullStart())+"║"+Sn.slice(K.getTokenFullStart())}}),K;function Z(Sn,kn=p,He,mt){if(o){const ft=p;p=kn,o(Sn,He||0,mt),p=ft}}function V(){let Sn=p,kn=!1,He=!1,mt="";for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,kn?(kn=!1,He=!0,mt+=u.substring(Sn,p)):(R|=16384,Z(He?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,Sn=p;continue}if(oC(ft)){kn=!0,He=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,Z(f.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(Sn,p)}function se(){let Sn=p,kn;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,Z(f.Numeric_separators_are_not_allowed_here,p,1),p--,kn=V();else if(!ne())R|=8192,kn=""+ +I;else if(!I)kn="0";else{I=""+parseInt(I,8),R|=32;const le=A===41,Fe=(le?"-":"")+"0o"+(+I).toString(8);return le&&Sn--,Z(f.Octal_literals_are_not_allowed_Use_the_syntax_0,Sn,p-Sn,Fe),9}else kn=V();let He,mt;u.charCodeAt(p)===46&&(p++,He=V());let ft=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;const le=p,Fe=V();Fe?(mt=u.substring(ft,le)+Fe,ft=p):Z(f.Digit_expected)}let Ct;if(R&512?(Ct=kn,He&&(Ct+="."+He),mt&&(Ct+=mt)):Ct=u.substring(Sn,ft),R&8192)return Z(f.Decimals_with_leading_zeros_are_not_allowed,Sn,ft-Sn),I=""+ +Ct,9;if(He!==void 0||R&16)return G(Sn,He===void 0&&!!(R&16)),I=""+ +Ct,9;{I=Ct;const le=Ee();return G(Sn),le}}function G(Sn,kn){if(!Yh(Mv(u,p),e))return;const He=p,{length:mt}=ye();mt===1&&u[He]==="n"?Z(kn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,Sn,He-Sn+1):(Z(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,He,mt),p=He)}function ne(){const Sn=p;let kn=!0;for(;oC(u.charCodeAt(p));)i4(u.charCodeAt(p))||(kn=!1),p++;return I=u.substring(Sn,p),kn}function he(Sn,kn){const He=$(Sn,!1,kn);return He?parseInt(He,16):-1}function ve(Sn,kn){return $(Sn,!0,kn)}function $(Sn,kn,He){let mt=[],ft=!1,Ct=!1;for(;mt.length=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Ct=!1}return mt.length=h){He+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}const ft=u.charCodeAt(p);if(ft===kn){He+=u.substring(mt,p),p++;break}if(ft===92&&!Sn){He+=u.substring(mt,p),He+=fe(!0),mt=p;continue}if((ft===10||ft===13)&&!Sn){He+=u.substring(mt,p),R|=4,Z(f.Unterminated_string_literal);break}p++}return He}function oe(Sn){const kn=u.charCodeAt(p)===96;p++;let He=p,mt="",ft;for(;;){if(p>=h){mt+=u.substring(He,p),R|=4,Z(f.Unterminated_template_literal),ft=kn?15:18;break}const Ct=u.charCodeAt(p);if(Ct===96){mt+=u.substring(He,p),p++,ft=kn?15:18;break}if(Ct===36&&p+1=h)return Z(f.Unexpected_end_of_text),"";const He=u.charCodeAt(p);switch(p++,He){case 48:if(p>=h||!oC(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p=h?(R|=2048,Sn&&Z(f.Unexpected_end_of_text),u.substring(kn,p)):u.charCodeAt(p)!==125?(R|=2048,Sn&&Z(f.Unterminated_Unicode_escape_sequence),u.substring(kn,p)):(p++,R|=8,Kx(ft)):(R|=2048,Sn&&Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(kn,p))}for(;p1114111&&(Z(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),He=!0),p>=h?(Z(f.Unexpected_end_of_text),He=!0):u.charCodeAt(p)===125?p++:(Z(f.Unterminated_Unicode_escape_sequence),He=!0),He?"":Kx(kn)}function pe(){if(p+5=0&&a0(He,e)){p+=3,R|=8,Sn+=Ne(),kn=p;continue}if(He=pe(),!(He>=0&&a0(He,e)))break;R|=1024,Sn+=u.substring(kn,p),Sn+=Kx(He),p+=6,kn=p}else break}return Sn+=u.substring(kn,p),Sn}function Me(){const Sn=I.length;if(Sn>=2&&Sn<=12){const kn=I.charCodeAt(0);if(kn>=97&&kn<=122){const He=x1e.get(I);if(He!==void 0)return A=He}}return A=80}function Ue(Sn){let kn="",He=!1,mt=!1;for(;;){const ft=u.charCodeAt(p);if(ft===95){R|=512,He?(He=!1,mt=!0):Z(mt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(He=!0,!oC(ft)||ft-48>=Sn)break;kn+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&Z(f.Numeric_separators_are_not_allowed_here,p-1,1),kn}function Ee(){return u.charCodeAt(p)===110?(I+="n",R&384&&(I=ZC(I)+"n"),p++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function De(){m=p,R=0;let Sn=!1;for(;;){if(v=p,p>=h)return A=1;const kn=Mv(u,p);if(p===0){if(u.slice(0,256).includes("�"))return Z(f.File_appears_to_be_binary),p=h,A=8;if(kn===35&&RV(u,p)){if(p=DV(u,p),t)continue;return A=6}}switch(kn){case 10:case 13:if(R|=1,t){p++;continue}else return kn===13&&p+1=0&&Yh(He,e))return p+=3,R|=8,I=Ne()+ye(),A=Me();const mt=pe();return mt>=0&&Yh(mt,e)?(p+=6,R|=1024,I=String.fromCharCode(mt)+ye(),A=Me()):(Z(f.Invalid_character),p++,A=0);case 35:if(p!==0&&u[p+1]==="!")return Z(f.can_only_be_used_at_the_start_of_a_file),p++,A=0;const ft=Mv(u,p+1);if(ft===92){p++;const Fe=ie();if(Fe>=0&&Yh(Fe,e))return p+=3,R|=8,I="#"+Ne()+ye(),A=81;const pt=pe();if(pt>=0&&Yh(pt,e))return p+=6,R|=1024,I="#"+String.fromCharCode(pt)+ye(),A=81;p--}return Yh(ft,e)?(p++,At(ft,e)):(I="#",Z(f.Invalid_character,p++,s0(kn))),A=81;default:const Ct=At(kn,e);if(Ct)return A=Ct;if(A_(kn)){p+=s0(kn);continue}else if(Hu(kn)){R|=1,p+=s0(kn);continue}const le=s0(kn);return Z(f.Invalid_character,p,le),p+=le,A=0}}}function Pe(){switch(U){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:U===3?!1:w1e.test(u.slice(m,p))}function We(){N.assert(A===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=v=m,R=0;const Sn=Mv(u,p),kn=At(Sn,99);return kn?A=kn:(p+=s0(Sn),A)}function At(Sn,kn){let He=Sn;if(Yh(He,kn)){for(p+=s0(He);p=h)return A=1;let kn=u.charCodeAt(p);if(kn===60)return u.charCodeAt(p+1)===47?(p+=2,A=31):(p++,A=30);if(kn===123)return p++,A=19;let He=0;for(;p0)break;Mg(kn)||(He=p)}p++}return I=u.substring(m,p),He===-1?13:12}function Qt(){if(ad(A)){for(;p=h)return A=1;for(let kn=u.charCodeAt(p);p=0&&A_(u.charCodeAt(p-1))&&!(p+1=h)return A=1;const Sn=Mv(u,p);switch(p+=s0(Sn),Sn){case 9:case 11:case 12:case 32:for(;p=0&&Yh(kn,e))return p+=3,R|=8,I=Ne()+ye(),A=Me();const He=pe();return He>=0&&Yh(He,e)?(p+=6,R|=1024,I=String.fromCharCode(He)+ye(),A=Me()):(p++,A=0)}if(Yh(Sn,e)){let kn=Sn;for(;p=0),p=Sn,m=Sn,v=Sn,A=0,I=void 0,R=0}function Wa(Sn){C+=Sn?1:-1}}function Mv(e,t){return e.codePointAt(t)}function s0(e){return e>=65536?2:1}function Z9e(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Kx(e){return W1e(e)}var Q2,x1e,Hne,R1e,D1e,N1e,C1e,P1e,M1e,L1e,k1e,w1e,O1e,a4,CV,W1e,eBe=T({"src/compiler/scanner.ts"(){ra(),Q2={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},x1e=new Map(Object.entries(Q2)),Hne=new Map(Object.entries({...Q2,"{":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})),R1e=[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],D1e=[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],N1e=[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],C1e=[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],P1e=[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],M1e=[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],L1e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,k1e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,w1e=/@(?:see|link)/i,O1e=$9e(Hne),a4=7,CV=/^#!.*/,W1e=String.fromCodePoint?e=>String.fromCodePoint(e):Z9e}});function Yc(e){return Wp(e)||pp(e)}function Xx(e){return JN(e,JC)}function Z2(e){switch(os(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 Kl(e){return e.start+e.length}function qne(e){return e.length===0}function PV(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Jne(e,t){return t.start>=e.start&&Kl(t)<=Kl(e)}function F1e(e,t){return Kne(e,t)!==void 0}function Kne(e,t){const r=Yne(e,t);return r&&r.length===0?void 0:r}function z1e(e,t){return tL(e.start,e.length,t.start,t.length)}function s4(e,t,r){return tL(e.start,e.length,t,r)}function tL(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function Xne(e,t){return t<=Kl(e)&&t>=e.start}function Yne(e,t){const r=Math.max(e.start,t.start),i=Math.min(Kl(e),Kl(t));return r<=i?dc(r,i):void 0}function yu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function dc(e,t){return yu(e,t-e)}function sC(e){return yu(e.span.start,e.newLength)}function $ne(e){return qne(e.span)&&e.newLength===0}function nL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Qne(e){if(e.length===0)return yL;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=Kl(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){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Sr(e){return Vi(e.escapedText)}function c0(e){const t=CE(e.escapedText);return t?ii(t,Bd):void 0}function Sl(e){return e.valueDeclaration&&ld(e.valueDeclaration)?Sr(e.valueDeclaration.name):Vi(e.escapedName)}function V1e(e){const t=e.parent.parent;if(t){if(Ju(t))return LV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return LV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(Ve(i))return i}break;case 217:return LV(t.expression);case 256:{if(Ju(t.statement)||vt(t.statement))return LV(t.statement);break}}}}function LV(e){const t=Mo(e);return t&&Ve(t)?t:void 0}function rL(e,t){return!!(sd(e)&&Ve(e.name)&&Sr(e.name)===Sr(t)||Ll(e)&&bt(e.declarationList.declarations,r=>rL(r,t)))}function nre(e){return e.name||V1e(e)}function sd(e){return!!e.name}function l4(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(Bl(r)){case 1:case 4:case 5:case 3:return i3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return nre(e);case 347:return V1e(e);case 277:{const{expression:r}=e;return Ve(r)?r:void 0}case 212:const t=e;if(r3(t))return t.argumentExpression}return e.name}function Mo(e){if(e!==void 0)return l4(e)||(Os(e)||Gs(e)||Zc(e)?c4(e):void 0)}function c4(e){if(e.parent){if(_c(e.parent)||Qa(e.parent))return e.parent.name;if(mr(e.parent)&&e===e.parent.right){if(Ve(e.parent.left))return e.parent.left;if(ws(e.parent.left))return i3(e.parent.left)}else if(wi(e.parent)&&Ve(e.parent.name))return e.parent.name}else return}function Lv(e){if(If(e))return nr(e.modifiers,Eu)}function PE(e){if(Zr(e,98303))return nr(e.modifiers,Ia)}function j1e(e,t){if(e.name)if(Ve(e.name)){const r=e.name.escapedText;return oL(e.parent,t).filter(i=>r_(i)&&Ve(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=oL(e.parent,t).filter(r_);if(rsm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function ire(e){return U1e(e,!1)}function ore(e){return U1e(e,!0)}function are(e){return!!Xf(e,r_)}function sre(e){return Xf(e,hI)}function lre(e){return d4(e,eF)}function kV(e){return Xf(e,Lae)}function H1e(e){return Xf(e,IH)}function cre(e){return Xf(e,IH,!0)}function q1e(e){return Xf(e,xH)}function ure(e){return Xf(e,xH,!0)}function J1e(e){return Xf(e,RH)}function dre(e){return Xf(e,RH,!0)}function K1e(e){return Xf(e,DH)}function pre(e){return Xf(e,DH,!0)}function fre(e){return Xf(e,QW,!0)}function wV(e){return Xf(e,NH)}function mre(e){return Xf(e,NH,!0)}function OV(e){return Xf(e,Jk)}function u4(e){return Xf(e,CH)}function _re(e){return Xf(e,ZW)}function X1e(e){return Xf(e,sm)}function WV(e){return Xf(e,tF)}function u0(e){const t=Xf(e,IP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function d0(e){let t=Xf(e,IP);return!t&&Ao(e)&&(t=An($x(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function iL(e){const t=_re(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=u0(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(bp(i)){const o=An(i.members,oI);return o&&o.type}if(bh(i)||$R(i))return i.type}}function oL(e,t){var r;if(!JL(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=Lj(e,t);N.assert(o.length<2||o[0]!==o[1]),i=Pi(o,s=>n_(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function p0(e){return oL(e,!1)}function Y1e(e){return oL(e,!0)}function Xf(e,t,r){return An(oL(e,r),t)}function d4(e,t){return p0(e).filter(t)}function $1e(e,t){return p0(e).filter(r=>r.kind===t)}function aL(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:nBe(t)).join("")}function nBe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?mp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function kv(e){if(R0(e)){if(QR(e.parent)){const t=ER(e.parent);if(t&&Le(t.tags))return Pi(t.tags,r=>sm(r)?r.typeParameters:void 0)}return et}if(Zf(e))return N.assert(e.parent.kind===327),Pi(e.parent.tags,t=>sm(t)?t.typeParameters:void 0);if(e.typeParameters||Uae(e)&&e.typeParameters)return e.typeParameters;if(lr(e)){const t=y3(e);if(t.length)return t;const r=d0(e);if(r&&bh(r)&&r.typeParameters)return r.typeParameters}return et}function Qx(e){return e.constraint?e.constraint:sm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function $h(e){return e.kind===80||e.kind===81}function p4(e){return e.kind===178||e.kind===177}function f4(e){return Wr(e)&&!!(e.flags&64)}function FV(e){return Qs(e)&&!!(e.flags&64)}function mS(e){return sa(e)&&!!(e.flags&64)}function qu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function cC(e){return qu(e)&&!dI(e)&&!!e.questionDotToken}function m4(e){return cC(e.parent)&&e.parent.expression===e}function uC(e){return!qu(e.parent)||cC(e.parent)||e!==e.parent.expression}function zV(e){return e.kind===226&&e.operatorToken.kind===61}function Lg(e){return Cf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Tm(e){return $l(e,8)}function _4(e){return dI(e)&&!!(e.flags&64)}function dC(e){return e.kind===252||e.kind===251}function BV(e){return e.kind===280||e.kind===279}function hre(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function GV(e){return hre(e)||e.kind===307||e.kind===311}function pC(e){return e.kind===355||e.kind===348}function Q1e(e){return sL(e.kind)}function sL(e){return e>=166}function VV(e){return e>=0&&e<=165}function RA(e){return VV(e.kind)}function ME(e){return xs(e,"pos")&&xs(e,"end")}function fC(e){return 9<=e&&e<=15}function LE(e){return fC(e.kind)}function jV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function wv(e){return 15<=e&&e<=18}function gre(e){return wv(e.kind)}function h4(e){const t=e.kind;return t===17||t===18}function DA(e){return np(e)||Ku(e)}function lL(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 yre(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 f0(e){return lL(e)||yre(e)}function UV(e){return e.kind===11||wv(e.kind)}function vre(e){return Ma(e)||Ve(e)}function sl(e){var t;return Ve(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function _S(e){var t;return Ji(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function cL(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ld(e){return(Jo(e)||CA(e))&&Ji(e.name)}function Zx(e){return Wr(e)&&Ji(e.name)}function ky(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 mC(e){return!!(VA(e)&31)}function HV(e){return mC(e)||e===126||e===164||e===129}function Ia(e){return ky(e.kind)}function Zd(e){const t=e.kind;return t===166||t===80}function ic(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function hS(e){const t=e.kind;return t===80||t===206||t===207}function ea(e){return!!e&&NA(e.kind)}function eR(e){return!!e&&(NA(e.kind)||Rl(e))}function Bs(e){return e&&Z1e(e.kind)}function _C(e){return e.kind===112||e.kind===97}function Z1e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function NA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Z1e(e)}}function qV(e){return $i(e)||O_(e)||Xo(e)&&ea(e.parent)}function $c(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ui(e){return e&&(e.kind===263||e.kind===231)}function Ov(e){return e&&(e.kind===177||e.kind===178)}function Wd(e){return Jo(e)&&P_(e)}function bre(e){return lr(e)&&$3(e)?(!GE(e)||!Hv(e.expression))&&!RS(e,!0):e.parent&&ui(e.parent)&&Jo(e)&&!P_(e)}function CA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function eSe(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function ll(e){return Ia(e)||Eu(e)}function gS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function g4(e){return gS(e)||$c(e)}function kg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ji(e){return hU(e.kind)}function Ere(e){switch(e.kind){case 184:case 185:return!0}return!1}function ta(e){if(e){const t=e.kind;return t===207||t===206}return!1}function hC(e){const t=e.kind;return t===209||t===210}function y4(e){const t=e.kind;return t===208||t===232}function uL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Sre(e){return wi(e)||Ao(e)||pL(e)||fL(e)}function dL(e){return JV(e)||KV(e)}function JV(e){switch(e.kind){case 206:case 210:return!0}return!1}function pL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function KV(e){switch(e.kind){case 207:case 209:return!0}return!1}function fL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Lc(e,!0)}function Tre(e){const t=e.kind;return t===211||t===166||t===205}function Are(e){const t=e.kind;return t===211||t===166}function XV(e){return kE(e)||$E(e)}function kE(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function I_(e){return e.kind===213||e.kind===214}function PA(e){const t=e.kind;return t===228||t===15}function ep(e){return tSe(Tm(e).kind)}function tSe(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 YV(e){return nSe(Tm(e).kind)}function nSe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return tSe(e)}}function Ire(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function xre(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return LE(e)}}function vt(e){return rBe(Tm(e).kind)}function rBe(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 nSe(e)}}function yS(e){const t=e.kind;return t===216||t===234}function rSe(e){return EH(e)||KW(e)}function Wv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Wv(e.statement,t)}return!1}function Rre(e){return kl(e)||Yl(e)}function Dre(e){return bt(e,Rre)}function v4(e){return!TL(e)&&!kl(e)&&!Zr(e,32)&&!ku(e)}function mL(e){return TL(e)||kl(e)||Zr(e,32)}function tR(e){return e.kind===249||e.kind===250}function b4(e){return Xo(e)||vt(e)}function $V(e){return Xo(e)}function Af(e){return Uc(e)||vt(e)}function Nre(e){const t=e.kind;return t===268||t===267||t===80}function iSe(e){const t=e.kind;return t===268||t===267}function oSe(e){const t=e.kind;return t===80||t===267}function QV(e){const t=e.kind;return t===275||t===274}function _L(e){return e.kind===267||e.kind===266}function x_(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 ph(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 iBe(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 Cre(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 Pre(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 Ju(e){return e.kind===168?e.parent&&e.parent.kind!==352||lr(e):iBe(e.kind)}function Mre(e){return Cre(e.kind)}function hL(e){return Pre(e.kind)}function qi(e){const t=e.kind;return Pre(t)||Cre(t)||oBe(e)}function oBe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!zE(e)}function Lre(e){const t=e.kind;return Pre(t)||Cre(t)||t===241}function kre(e){const t=e.kind;return t===283||t===166||t===80}function gC(e){const t=e.kind;return t===110||t===80||t===211||t===295}function gL(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function E4(e){const t=e.kind;return t===291||t===293}function wre(e){const t=e.kind;return t===11||t===294}function cd(e){const t=e.kind;return t===286||t===285}function S4(e){const t=e.kind;return t===296||t===297}function nR(e){return e.kind>=316&&e.kind<=357}function T4(e){return e.kind===327||e.kind===326||e.kind===328||MA(e)||rR(e)||JS(e)||R0(e)}function rR(e){return e.kind>=334&&e.kind<=357}function wy(e){return e.kind===178}function Fv(e){return e.kind===177}function Fp(e){if(!JL(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function A4(e){return!!e.type}function zv(e){return!!e.initializer}function vS(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function ZV(e){return e.kind===291||e.kind===293||kg(e)}function I4(e){return e.kind===183||e.kind===233}function Ore(e){let t=Wre;for(const r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?So(o0(l,ka(l,s.end+1,!1,!0)),Xh(l,e.pos)):o0(l,ka(l,e.pos,!1,!0));return bt(u)&&aSe(Ya(u),t)}const i=r&&bj(r,t);return!!Xe(i,o=>aSe(o,t))}var yL,nj,Wre,aBe=T({"src/compiler/utilitiesPublic.ts"(){ra(),yL=nL(yu(0,0),0),nj=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Wre=1073741823}});function fl(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Fre(e,t){return nr(e.declarations||et,r=>r.kind===t)}function ca(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function fh(e){return(e.flags&33554432)!==0}function sBe(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Mg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:$a,decreaseIndent:$a,clear:()=>e=""}}function x4(e,t){return e.configFilePath!==t.configFilePath||zre(e,t)}function zre(e,t){return iR(e,t,yF)}function Bre(e,t){return iR(e,t,dq)}function iR(e,t,r){return e!==t&&r.some(i=>!H3(k3(e,i),k3(t,i)))}function Gre(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if($i(e))return;e=e.parent}}function Gc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function mh(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function R4(e,t){e.forEach((r,i)=>{t.set(i,r)})}function yC(e){const t=Tk.getText();try{return e(Tk),Tk.getText()}finally{Tk.clear(),Tk.writeKeyword(t)}}function vL(e){return e.end-e.pos}function rj(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Vre(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&&lBe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function D4(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(fd(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(Ih+"@types/")?`@types/${dD(o)}`:o]]),p=u?jo(void 0,u[0],...u[1]):t.typesPackageExists(o)?jo(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,dD(o)):t.packageBundlesTypes(o)?jo(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):jo(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,dD(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function lBe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function N4({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Bv(e){return`${N4(e)}@${e.version}`}function jre(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 ij(e,t,r,i){N.assert(e.length===t.length);for(let o=0;o=0),Pg(t)[e]}function sSe(e){const t=jn(e),r=bs(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function EL(e,t){N.assert(e>=0);const r=Pg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(N.assert(Hu(o.charCodeAt(l)));s<=l&&Hu(o.charCodeAt(l));)l--;return l}}function P4(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 Yf(e){return!zl(e)}function Hre(e,t){return gl(e)?t===e.expression:Rl(e)?t===e.modifiers:yp(e)?t===e.initializer:Jo(e)?t===e.questionToken&&Wd(e):_c(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||SL(e.modifiers,t,ll):rp(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||SL(e.modifiers,t,ll):ql(e)?t===e.exclamationToken:Ml(e)?t===e.typeParameters||t===e.type||SL(e.typeParameters,t,gl):rf(e)?t===e.typeParameters||SL(e.typeParameters,t,gl):vp(e)?t===e.typeParameters||t===e.type||SL(e.typeParameters,t,gl):qk(e)?t===e.modifiers||SL(e.modifiers,t,ll):!1}function SL(e,t,r){return!e||To(t)||!r(t)?!1:Nr(e,t)}function lSe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${bs(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return zo(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function m0(e,t,r){return zl(e)?e.pos:nR(e)||e.kind===12?ka((t||jn(e)).text,e.pos,!1,!0):r&&Fp(e)?m0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?m0(e._children[0],t,r):ka((t||jn(e)).text,e.pos,!1,!1,kL(e))}function sj(e,t){const r=!zl(e)&&Cm(e)?Oo(e.modifiers,Eu):void 0;return r?ka((t||jn(e)).text,r.end):m0(e,t)}function wE(e,t,r=!1){return vC(e.text,t,r)}function uBe(e){return!!Gn(e,u1)}function L4(e){return!!(Yl(e)&&e.exportClause&&Sh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function vC(e,t,r=!1){if(zl(t))return"";let i=e.substring(r?t.pos:ka(e,t.pos),t.end);return uBe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function pc(e,t=!1){return wE(jn(e),e,t)}function dBe(e){return e.pos}function aR(e,t){return xy(e,t,dBe,rl)}function ja(e){const t=e.emitNode;return t&&t.flags||0}function Am(e){const t=e.emitNode;return t&&t.internalFlags||0}function Jre(e,t,r){if(t&&pBe(e,r))return wE(t,e);switch(e.kind){case 11:{const i=r&2?$j:r&1||ja(e)&16777216?ig:ik;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||ja(e)&16777216?ig:ik,o=e.rawText??Xj(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 N.fail(`Literal kind '${e.kind}' not accounted for.`)}function pBe(e,t){if($s(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(gp(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!zW(e)}function Kre(e){return Po(e)?'"'+ik(e)+'"':""+e}function Xre(e){return rc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function lj(e){return(Ly(e)&7)!==0||cj(e)}function cj(e){const t=C_(e);return t.kind===260&&t.parent.kind===299}function ku(e){return Xl(e)&&(e.name.kind===11||R_(e))}function k4(e){return Xl(e)&&e.name.kind===11}function uj(e){return Xl(e)&&Ma(e.name)}function Yre(e){return Xl(e)||Ve(e)}function bC(e){return fBe(e.valueDeclaration)}function fBe(e){return!!e&&e.kind===267&&!e.body}function $re(e){return e.kind===312||e.kind===267||eR(e)}function R_(e){return!!(e.flags&2048)}function OE(e){return ku(e)&&dj(e)}function dj(e){switch(e.parent.kind){case 312:return ac(e.parent);case 268:return ku(e.parent.parent)&&$i(e.parent.parent.parent)&&!ac(e.parent.parent.parent)}return!1}function pj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!OE(r)&&!(Xl(r)&&R_(r)))}function mBe(e){return e===1||e===100||e===199}function LA(e,t){return ac(e)||mBe(wu(t))&&!!e.commonJsModuleIndicator}function fj(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:pd(t,"alwaysStrict")||Bae(e.statements)?!0:ac(e)||om(t)?wu(t)>=5?!0:!t.noImplicitUseStrict:!1}function mj(e){return!!(e.flags&33554432)||Zr(e,128)}function _j(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!eR(t)}return!1}function hj(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return gj(e)}}function gj(e){switch(N.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 ES(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Qre(e){return ES(e)||BE(e)}function w4(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 Zre(e){return TL(e)||Xl(e)||cg(e)||Bp(e)}function TL(e){return ES(e)||Yl(e)}function yj(e){return Gn(e.parent,t=>!!(Cq(t)&1))}function _h(e){return Gn(e.parent,t=>_j(t,t.parent))}function eie(e,t){let r=_h(e);for(;r;)t(r),r=_h(r)}function Rs(e){return!e||vL(e)===0?"(Missing)":pc(e)}function tie(e){return e.declaration?Rs(e.declaration.parameters[0].name):void 0}function AL(e){return e.kind===167&&!nf(e.expression)}function EC(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 hl(e.text);case 167:return nf(e.expression)?hl(e.expression.text):void 0;case 295:return KA(e);default:return N.assertNever(e)}}function sR(e){return N.checkDefined(EC(e))}function mp(e){switch(e.kind){case 110:return"this";case 81:case 80:return vL(e)===0?Sr(e):pc(e);case 166:return mp(e.left)+"."+mp(e.right);case 211:return Ve(e.name)||Ji(e.name)?mp(e.expression)+"."+mp(e.name):N.assertNever(e.name);case 318:return mp(e.left)+mp(e.right);case 295:return mp(e.namespace)+":"+mp(e.name);default:return N.assertNever(e)}}function kr(e,t,...r){const i=jn(e);return $f(i,e,t,...r)}function lR(e,t,r,...i){const o=ka(e.text,t.pos);return Qc(e,o,t.end-o,r,...i)}function $f(e,t,r,...i){const o=SS(e,t);return Qc(e,o.start,o.length,r,...i)}function wg(e,t,r,i){const o=SS(e,t);return O4(e,o.start,o.length,r,i)}function IL(e,t,r,i){const o=ka(e.text,t.pos);return O4(e,o,t.end-o,r,i)}function nie(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),N.assertLessThanOrEqual(t,e.length),N.assertLessThanOrEqual(t+r,e.length)}function O4(e,t,r,i,o){return nie(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 vj(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 rie(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function iie(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function hh(e,t){const r=My(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return dc(i,r.getTokenEnd())}function oie(e,t){const r=My(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function _Be(e,t){const r=ka(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=bs(e,t.body.pos),{line:o}=bs(e,t.body.end);if(i0?t.statements[0].pos:t.end;return dc(s,l)}case 253:case 229:{const s=ka(e.text,t.pos);return hh(e,s)}case 238:{const s=ka(e.text,t.expression.end);return hh(e,s)}case 357:{const s=ka(e.text,t.tagName.pos);return hh(e,s)}}if(r===void 0)return hh(e,t.pos);N.assert(!n_(r));const i=zl(r),o=i||eI(t)?r.pos:ka(e.text,r.pos);return i?(N.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),dc(o,r.end)}function zp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Qf(e){return e.scriptKind===6}function WE(e){return!!(l0(e)&4096)}function W4(e){return!!(l0(e)&8&&!fp(e,e.parent))}function xL(e){return(Ly(e)&7)===6}function RL(e){return(Ly(e)&7)===4}function cR(e){return(Ly(e)&7)===2}function F4(e){return(Ly(e)&7)===1}function TS(e){return e.kind===213&&e.expression.kind===108}function Bp(e){return e.kind===213&&e.expression.kind===102}function uR(e){return gP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function Vv(e){return cg(e)&&Zv(e.argument)&&Ma(e.argument.literal)}function Im(e){return e.kind===244&&e.expression.kind===11}function DL(e){return!!(ja(e)&2097152)}function z4(e){return DL(e)&&Ac(e)}function hBe(e){return Ve(e.name)&&!e.initializer}function B4(e){return DL(e)&&Ll(e)&&Zn(e.declarationList.declarations,hBe)}function bj(e,t){return e.kind!==12?Xh(t.text,e.pos):void 0}function Ej(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?So(o0(t,e.pos),Xh(t,e.pos)):Xh(t,e.pos);return nr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function eg(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 pSe(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),N.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return pSe(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 Nr(t.typeArguments,e)}}}return!1}function pSe(e){return eF(e.parent)||hI(e.parent)||of(e.parent)&&!E3(e)}function fSe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function FE(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 Ho(i,r)}}}function aie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(ea(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else eg(i)||Ho(i,r)}}}function Sj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?ah(e.typeArguments):void 0}function sie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function dR(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 lie(e){return dR(e)||Ov(e)}function SC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function cie(e){return lr(e)?Oa(e.parent)&&mr(e.parent.parent)&&Bl(e.parent.parent)===2||G4(e.parent):!1}function G4(e){return lr(e)?mr(e)&&Bl(e)===1:!1}function uie(e){return(wi(e)?cR(e)&&Ve(e.name)&&SC(e):Jo(e)?FC(e)&&fc(e):yp(e)&&FC(e))||G4(e)}function die(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Tj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function zE(e){return e&&e.kind===241&&ea(e.parent)}function xm(e){return e&&e.kind===174&&e.parent.kind===210}function V4(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function pie(e){return e&&e.kind===1}function mSe(e){return e&&e.kind===0}function pR(e,t,r,i){return Xe(e?.properties,o=>{if(!_c(o))return;const s=EC(o.name);return t===s||i&&i===s?r(o):void 0})}function fie(e,t,r){return pR(e,t,i=>md(i.initializer)?An(i.initializer.elements,o=>Ma(o)&&o.text===r):void 0)}function TC(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ii(t,Oa)}}function j4(e,t,r){return NL(e,t,i=>md(i.initializer)?An(i.initializer.elements,o=>Ma(o)&&o.text===r):void 0)}function NL(e,t,r){return pR(TC(e),t,r)}function Gp(e){return Gn(e.parent,ea)}function mie(e){return Gn(e.parent,Bs)}function su(e){return Gn(e.parent,ui)}function _ie(e){return Gn(e.parent,t=>ui(t)||ea(t)?"quit":Rl(t))}function U4(e){return Gn(e.parent,eR)}function H4(e){const t=Gn(e.parent,r=>ui(r)?"quit":Eu(r));return t&&ui(t.parent)?su(t.parent):su(t??e)}function Fd(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&ui(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function hie(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 q4(e){Ve(e)&&(Ic(e.parent)||Ac(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Fd(e,!0,!1);return $i(t)}function gie(e){const t=Fd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function CL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&$c(e.parent.parent)?e=e.parent.parent:$c(e.parent)&&(e=e.parent);break}}}function AS(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 _Se(e){return e.kind===108||zd(e)}function zd(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function PL(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function J4(e){var t;return!!e&&wi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function yie(e){return!!e&&(rp(e)||_c(e))&&mr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function ML(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 K4(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 X4(e,t,r,i){if(e&&sd(t)&&Ji(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Ic(r):ui(r)&&!KE(t)&&!rU(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Ic(r):ui(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&HE(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function fR(e,t,r,i){return If(t)&&X4(e,t,r,i)}function LL(e,t,r,i){return fR(e,t,r,i)||AC(e,t,r)}function AC(e,t,r){switch(t.kind){case 263:return bt(t.members,i=>LL(e,i,t,r));case 231:return!e&&bt(t.members,i=>LL(e,i,t,r));case 174:case 178:case 176:return bt(t.parameters,i=>fR(e,i,t,r));default:return!1}}function Oy(e,t){if(fR(e,t))return!0;const r=og(t);return!!r&&AC(e,r,t)}function Aj(e,t,r){let i;if(Ov(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=LS(r.members,t),u=If(o)?o:s&&If(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else ql(t)&&(i=t.parameters);if(fR(e,t,r))return!0;if(i){for(const o of i)if(!qE(o)&&fR(e,o,t,r))return!0}return!1}function Ij(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Ij(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function mR(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function tg(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!of(e.parent)&&!hI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||MA(e.parent)||AP(e.parent)||x0(e.parent)||mR(e);case 318:for(;x0(e.parent);)e=e.parent;return e.parent.kind===186||MA(e.parent)||AP(e.parent)||x0(e.parent)||mR(e);case 81:return mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||MA(e.parent)||AP(e.parent)||x0(e.parent)||mR(e))return!0;case 9:case 10:case 11:case 15:case 110:return Y4(e);default:return!1}}function Y4(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!eg(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return tg(t)}}function $4(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function vie(e){return Sh(e)&&!!e.parent.moduleSpecifier}function _0(e){return e.kind===271&&e.moduleReference.kind===283}function IC(e){return N.assert(_0(e)),e.moduleReference.expression}function xj(e){return BE(e)&&LR(e.initializer).arguments[0]}function _R(e){return e.kind===271&&e.moduleReference.kind!==283}function ud(e){return lr(e)}function hSe(e){return!lr(e)}function lr(e){return!!e&&!!(e.flags&524288)}function Q4(e){return!!e&&!!(e.flags&134217728)}function Rj(e){return!Qf(e)}function kL(e){return!!e&&!!(e.flags&16777216)}function Z4(e){return Cf(e)&&Ve(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Td(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||ls(o)}function e3(e){return gSe(e,!1)}function BE(e){return gSe(e,!0)}function bie(e){return Qa(e)&&BE(e.parent.parent)}function gSe(e,t){return wi(e)&&!!e.initializer&&Td(t?LR(e.initializer):e.initializer,!0)}function Dj(e){return Ll(e)&&e.declarationList.declarations.length>0&&Zn(e.declarationList.declarations,t=>e3(t))}function wL(e){return e===39||e===34}function t3(e,t){return wE(t,e).charCodeAt(0)===34}function xC(e){return mr(e)||ws(e)||Ve(e)||sa(e)}function OL(e){return lr(e)&&e.initializer&&mr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Gl(e.name)&&hR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function WL(e){const t=OL(e);return t&&h0(t,Hv(e.name))}function gBe(e,t){return Xe(e.properties,r=>_c(r)&&Ve(r.name)&&r.name.escapedText==="value"&&r.initializer&&h0(r.initializer,t))}function kA(e){if(e&&e.parent&&mr(e.parent)&&e.parent.operatorToken.kind===64){const t=Hv(e.parent.left);return h0(e.parent.right,t)||yBe(e.parent.left,e.parent.right,t)}if(e&&sa(e)&&xS(e)){const t=gBe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function h0(e,t){if(sa(e)){const r=hs(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Oa(e)&&(e.properties.length===0||t))return e}function yBe(e,t,r){const i=mr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&h0(t.right,r);if(i&&hR(e,t.left))return i}function Eie(e){const t=wi(e.parent)?e.parent.name:mr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&h0(e.right,Hv(t))&&Gl(t)&&hR(t,e.left)}function Nj(e){if(mr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&mr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ve(t.left))return t.left}else if(wi(e.parent))return e.parent.name}function hR(e,t){return N_(e)&&N_(t)?em(e)===em(t):$h(e)&&n3(t)&&(t.expression.kind===110||Ve(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?hR(e,BL(t)):n3(e)&&n3(t)?Og(e)===Og(t)&&hR(e.expression,t.expression):!1}function FL(e){for(;Lc(e,!0);)e=e.right;return e}function IS(e){return Ve(e)&&e.escapedText==="exports"}function Cj(e){return Ve(e)&&e.escapedText==="module"}function ng(e){return(Wr(e)||zL(e))&&Cj(e.expression)&&Og(e)==="exports"}function Bl(e){const t=vBe(e);return t===5||lr(e)?t:0}function xS(e){return Le(e.arguments)===3&&Wr(e.expression)&&Ve(e.expression.expression)&&Sr(e.expression.expression)==="Object"&&Sr(e.expression.name)==="defineProperty"&&nf(e.arguments[1])&&RS(e.arguments[0],!0)}function n3(e){return Wr(e)||zL(e)}function zL(e){return Qs(e)&&nf(e.argumentExpression)}function GE(e,t){return Wr(e)&&(!t&&e.expression.kind===110||Ve(e.name)&&RS(e.expression,!0))||r3(e,t)}function r3(e,t){return zL(e)&&(!t&&e.expression.kind===110||Gl(e.expression)||GE(e.expression,!0))}function RS(e,t){return Gl(e)||GE(e,t)}function BL(e){return Wr(e)?e.name:e.argumentExpression}function vBe(e){if(sa(e)){if(!xS(e))return 0;const t=e.arguments[0];return IS(t)||ng(t)?8:GE(t)&&Og(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ws(e.left)||bBe(FL(e))?0:RS(e.left.expression,!0)&&Og(e.left)==="prototype"&&Oa(Pj(e))?6:GL(e.left)}function bBe(e){return uI(e)&&gp(e.expression)&&e.expression.text==="0"}function i3(e){if(Wr(e))return e.name;const t=hs(e.argumentExpression);return gp(t)||ls(t)?t:e}function Og(e){const t=i3(e);if(t){if(Ve(t))return t.escapedText;if(ls(t)||gp(t))return hl(t.text)}}function GL(e){if(e.expression.kind===110)return 4;if(ng(e))return 2;if(RS(e.expression,!0)){if(Hv(e.expression))return 3;let t=e;for(;!Ve(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Og(t)==="exports")&&GE(e))return 1;if(RS(e,!0)||Qs(e)&&u3(e))return 5}return 0}function Pj(e){for(;mr(e.right);)e=e.right;return e.right}function VL(e){return mr(e)&&Bl(e)===3}function Sie(e){return lr(e)&&e.parent&&e.parent.kind===244&&(!Qs(e)||zL(e))&&!!u0(e.parent)}function jL(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!lr(t)&&!(r.flags&33554432))&&xC(r)&&!xC(t)||r.kind!==t.kind&&Yre(r))&&(e.valueDeclaration=t)}function Tie(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||wi(t)&&t.initializer&&ea(t.initializer)}function gR(e){var t,r;switch(e.kind){case 260:case 208:return(t=Gn(e.initializer,i=>Td(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ii(e.moduleSpecifier,ls);case 271:return ii((r=ii(e.moduleReference,Th))==null?void 0:r.expression,ls);case 273:case 280:return ii(e.parent.moduleSpecifier,ls);case 274:case 281:return ii(e.parent.parent.moduleSpecifier,ls);case 276:return ii(e.parent.parent.parent.moduleSpecifier,ls);case 205:return Vv(e)?e.argument.literal:void 0;default:N.assertNever(e)}}function RC(e){return UL(e)||N.failBadSyntaxKind(e.parent)}function UL(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Bp(e.parent)||Td(e.parent,!1)?e.parent:void 0;case 201:return N.assert(Ma(e)),ii(e.parent.parent,cg);default:return}}function yR(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 Vv(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 N.assertNever(e)}}function vR(e){switch(e.kind){case 272:return e.importClause&&ii(e.importClause.namedBindings,nb);case 271:return e;case 278:return e.exportClause&&ii(e.exportClause,Sh);default:return N.assertNever(e)}}function wA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function o3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=nb(e.namedBindings)?t(e.namedBindings):Xe(e.namedBindings.elements,t);if(r)return r}}function OA(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 bR(e){const t=$R(e)?Xc(e.parameters):void 0,r=ii(t&&t.name,Ve);return!!r&&r.escapedText==="new"}function Zf(e){return e.kind===353||e.kind===345||e.kind===347}function HL(e){return Zf(e)||Nm(e)}function EBe(e){return eu(e)&&mr(e.expression)&&e.expression.operatorToken.kind===64?FL(e.expression):void 0}function ySe(e){return eu(e)&&mr(e.expression)&&Bl(e.expression)!==0&&mr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Mj(e){switch(e.kind){case 243:const t=WA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function WA(e){return Ll(e)?Xc(e.declarationList.declarations):void 0}function vSe(e){return Xl(e)&&e.body&&e.body.kind===267?e.body:void 0}function qL(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 JL(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 Lj(e,t){let r;dR(e)&&zv(e)&&Fp(e.initializer)&&(r=qr(r,bSe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Fp(i)&&(r=qr(r,bSe(e,i.jsDoc))),i.kind===169){r=qr(r,(t?rre:$x)(i));break}if(i.kind===168){r=qr(r,(t?ore:ire)(i));break}i=kj(i)}return r||et}function bSe(e,t){const r=Ya(t);return Pi(t,i=>{if(i===r){const o=nr(i.tags,s=>SBe(e,s));return i.tags===o?[i]:o}else return nr(i.tags,QR)})}function SBe(e,t){return!(IP(t)||tF(t))||!t.parent||!n_(t.parent)||!Gd(t.parent.parent)||t.parent.parent===e}function kj(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||vSe(t)||Lc(e))return t;if(t.parent&&(WA(t.parent)===e||Lc(t)))return t.parent;if(t.parent&&t.parent.parent&&(WA(t.parent.parent)||Mj(t.parent.parent)===e||ySe(t.parent.parent)))return t.parent.parent}function KL(e){if(e.symbol)return e.symbol;if(!Ve(e.name))return;const t=e.name.escapedText,r=g0(e);if(!r)return;const i=An(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function a3(e){if(n_(e.parent)&&e.parent.tags){const t=An(e.parent.tags,Zf);if(t)return t}return g0(e)}function wj(e){return d4(e,QR)}function g0(e){const t=y0(e);if(t)return yp(t)&&t.type&&ea(t.type)?t.type:ea(t)?t:void 0}function y0(e){const t=DS(e);if(t)return ySe(t)||EBe(t)||Mj(t)||WA(t)||vSe(t)||t}function DS(e){const t=ER(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===tl(r.jsDoc))return r}function ER(e){return Gn(e.parent,n_)}function Aie(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&An(r,i=>i.name.escapedText===t)}function ESe(e){return!!e.typeArguments}function Iie(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return zy(i)&&r.left===e?r:void 0;case 224:case 225:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:const 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 FA(e){const t=Iie(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||zC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function rg(e){return!!Iie(e)}function TBe(e){const t=hs(e.right);return t.kind===226&&BH(t.operatorToken.kind)}function Oj(e){const t=Iie(e);return!!t&&Lc(t,!0)&&TBe(t)}function xie(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 Rie(e){return Os(e)||Gs(e)||CA(e)||Ac(e)||Ml(e)}function SSe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function XL(e){return SSe(e,196)}function Wy(e){return SSe(e,217)}function Die(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function YL(e){for(;zS(e);)e=e.type;return e}function hs(e,t){return $l(e,t?17:1)}function Wj(e){return e.kind!==211&&e.kind!==212?!1:(e=Wy(e.parent),e&&e.kind===220)}function VE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Wg(e){return!$i(e)&&!ta(e)&&Ju(e.parent)&&e.parent.name===e}function DC(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Za(t))return t.parent;case 80:if(Ju(t))return t.name===e?t:void 0;if(Id(t)){const r=t.parent;return r_(r)&&r.name===t?r:void 0}else{const r=t.parent;return mr(r)&&Bl(r)!==0&&(r.left.symbol||r.symbol)&&Mo(r)===e?r:void 0}case 81:return Ju(t)&&t.name===e?t:void 0;default:return}}function $L(e){return nf(e)&&e.parent.kind===167&&Ju(e.parent.parent)}function Nie(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function TSe(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&&SR(e)?!0:lr(e)&&(mr(e)&&Bl(e)===2&&SR(e)||Wr(e)&&mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&QL(e.parent.right))}function Fj(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 Fj(e)}}function QL(e){return Gl(e)||Zc(e)}function SR(e){const t=zj(e);return QL(t)}function zj(e){return kl(e)?e.expression:e.right}function Cie(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function D_(e){const t=jE(e);if(t&&lr(e)){const r=sre(e);if(r)return r.class}return t}function jE(e){const t=ZL(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function TR(e){if(lr(e))return lre(e).map(t=>t.class);{const t=ZL(e.heritageClauses,119);return t?.types}}function NC(e){return _d(e)?CC(e)||et:ui(e)&&So(SA(D_(e)),TR(e))||et}function CC(e){const t=ZL(e.heritageClauses,96);return t?t.types:void 0}function ZL(e,t){if(e){for(const r of e)if(r.token===t)return r}}function v0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Bd(e){return 83<=e&&e<=165}function Bj(e){return 19<=e&&e<=79}function s3(e){return Bd(e)||Bj(e)}function l3(e){return 128<=e&&e<=165}function Gj(e){return Bd(e)&&!l3(e)}function ASe(e){return 119<=e&&e<=127}function zA(e){const t=CE(e);return t!==void 0&&Gj(t)}function ISe(e){const t=CE(e);return t!==void 0&&Bd(t)}function Vj(e){const t=c0(e);return!!t&&!l3(t)}function AR(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:Zr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function PC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Zr(e,1024)}return!1}function nf(e){return ls(e)||gp(e)}function c3(e){return tb(e)&&(e.operator===40||e.operator===41)&&gp(e.operand)}function jv(e){const t=Mo(e);return!!t&&u3(t)}function u3(e){if(!(e.kind===167||e.kind===212))return!1;const t=Qs(e)?hs(e.argumentExpression):e.expression;return!nf(t)&&!c3(t)}function NS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return hl(e.text);case 167:const t=e.expression;return nf(t)?hl(t.text):c3(t)?t.operator===41?fa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return KA(e);default:return N.assertNever(e)}}function N_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function em(e){return $h(e)?Sr(e):t_(e)?sP(e):e.text}function MC(e){return $h(e)?e.escapedText:t_(e)?KA(e):hl(e.text)}function xSe(e){return`__@${Ta(e)}@${e.escapedName}`}function ek(e,t){return`__#${Ta(e)}@${t}`}function tk(e){return uo(e.escapedName,"__@")}function Pie(e){return uo(e.escapedName,"__#")}function RSe(e){return e.kind===80&&e.escapedText==="Symbol"}function Mie(e){return Ve(e)?Sr(e)==="__proto__":Ma(e)&&e.text==="__proto__"}function LC(e,t){switch(e=$l(e),e.kind){case 231:if(Qq(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 jj(e){switch(e.kind){case 303:return!Mie(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ve(e.name)&&!!e.initializer;case 169:return Ve(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ve(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 Ve(e.left)}break;case 277:return!0}return!1}function _p(e,t){if(!jj(e))return!1;switch(e.kind){case 303:return LC(e.initializer,t);case 304:return LC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return LC(e.initializer,t);case 226:return LC(e.right,t);case 277:return LC(e.expression,t)}}function Uj(e){return e.escapedText==="push"||e.escapedText==="unshift"}function UE(e){return C_(e).kind===169}function C_(e){for(;e.kind===208;)e=e.parent.parent;return e}function Hj(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function $s(e){return Zm(e.pos)||Zm(e.end)}function DSe(e){return Do(e,$i)||e}function qj(e){const t=Kj(e),r=e.kind===214&&e.arguments!==void 0;return Jj(e.kind,t,r)}function Jj(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 kC(e){const t=Kj(e),r=e.kind===214&&e.arguments!==void 0;return nk(e.kind,t,r)}function Kj(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function nk(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 rk(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 rk(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 IR(e){return nr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function xR(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;const m=xy(h,p,nl,P3);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),xv(t,p.file.fileName,Uu))):(i&&(i=!1,e=e.slice()),h=e),xv(h,p,P3)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];const h=Sc(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Xj(e){return e.replace(eTe,"\\${")}function Lie(e){return!!((e.templateFlags||0)&2048)}function Yj(e){return e&&!!(tI(e)?Lie(e):Lie(e.head)||bt(e.templateSpans,t=>Lie(t.literal)))}function NSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function ABe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return iTe.get(e)||NSe(e.charCodeAt(0))}function ig(e,t){const r=t===96?rTe:t===39?nTe:tTe;return e.replace(r,ABe)}function ik(e,t){return e=ig(e,t),joe.test(e)?e.replace(joe,r=>NSe(r.charCodeAt(0))):e}function IBe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xBe(e){return e.charCodeAt(0)===0?"�":sTe.get(e)||IBe(e.charCodeAt(0))}function $j(e,t){const r=t===39?aTe:oTe;return e.replace(r,xBe)}function tm(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&RBe(e.charCodeAt(0))?e.substring(1,t-1):e}function RBe(e){return e===39||e===34||e===96}function RR(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function d3(e){const t=lP[1];for(let r=lP.length;r<=e;r++)lP.push(lP[r-1]+t);return lP[e]}function DR(){return lP[1].length}function ok(e){var t,r,i,o,s,l=!1;function u(C){const O=xA(C);O.length>1?(o=o+O.length-1,s=t.length-C.length+Ya(O),i=s-t.length===0):i=!1}function p(C){C&&C.length&&(i&&(C=d3(r)+C,i=!1),t+=C,u(C))}function h(C){C&&(l=!1),p(C)}function m(C){C&&(l=!0),p(C)}function v(){t="",r=0,i=!0,o=0,s=0,l=!1}function A(C){C!==void 0&&(t+=C,u(C),l=!1)}function I(C){C&&C.length&&h(C)}function R(C){(!i||C)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return v(),{write:h,rawWrite:A,writeLiteral:I,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*DR():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Mg(t.charCodeAt(t.length-1)),clear:v,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(C,O)=>h(C),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:M}}function Qj(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 NR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Fy(e){return Mu(NR(e))}function p3(e,t,r){return t.moduleName||Zj(e,t.fileName,r&&r.fileName)}function CSe(e,t){return e.getCanonicalFileName(go(t,e.getCurrentDirectory()))}function kie(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=yR(r);if(!(o&&ls(o)&&!Wp(o.text)&&!CSe(e,i.path).includes(CSe(e,Bc(e.getCommonSourceDirectory())))))return p3(e,i)}function Zj(e,t,r){const i=p=>e.getCanonicalFileName(p),o=ol(r?ai(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=go(t,e.getCurrentDirectory()),l=IA(o,s,o,i,!1),u=Ad(l);return r?NE(u):u}function wie(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Ad(h3(e,t,i.outDir)):o=Ad(e),o+r}function Oie(e,t){return f3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function f3(e,t,r,i,o){const s=t.declarationDir||t.outDir,l=s?g3(e,s,r,i,o):e,u=m3(l);return Ad(l)+u}function m3(e){return Tc(e,[".mjs",".mts"])?".d.mts":Tc(e,[".cjs",".cts"])?".d.cts":Tc(e,[".json"])?".d.json.ts":".d.ts"}function Wie(e){return Tc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Tc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Tc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ps(e){return e.outFile||e.out}function _3(e,t){var r;if(e.paths)return e.baseUrl??N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function eU(e,t,r){const i=e.getCompilerOptions();if(Ps(i)){const o=wu(i),s=i.emitDeclarationOnly||o===2||o===4;return nr(e.getSourceFiles(),l=>(s||!ac(l))&&CS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return nr(o,s=>CS(s,e,r))}}function CS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&ud(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(Ps(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=go(YP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=g3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Cg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function h3(e,t,r){return g3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function g3(e,t,r,i,o){let s=go(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Qr(t,s)}function wC(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Hl(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function PSe(e,t,r){if(e.length>dh(e)&&!r(e)){const i=ai(e);PSe(i,t,r),t(e)}}function tU(e,t,r,i,o,s){try{i(e,t,r)}catch{PSe(ai(ga(e)),o,s),i(e,t,r)}}function OC(e,t){const r=Pg(e);return rC(r,t)}function PS(e,t){return rC(e,t)}function og(e){return An(e.members,t=>Ml(t)&&Yf(t.body))}function WC(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&qE(e.parameters[0]);return e.parameters[t?1:0]}}function Fie(e){const t=WC(e);return t&&t.type}function HE(e){if(e.parameters.length&&!R0(e)){const t=e.parameters[0];if(qE(t))return t}}function qE(e){return JE(e.name)}function JE(e){return!!e&&e.kind===80&&nU(e)}function MS(e){return!!Gn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function BA(e){if(!JE(e))return!1;for(;Id(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function nU(e){return e.escapedText==="this"}function LS(e,t){let r,i,o,s;return jv(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:N.fail("Accessor has wrong kind")):Xe(e,l=>{if(Ov(l)&&aa(l)===aa(t)){const u=NS(l.name),p=NS(t.name);u===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 vu(e){if(!lr(e)&&Ac(e))return;const t=e.type;return t||!lr(e)?t:pC(e)?e.typeExpression&&e.typeExpression.type:d0(e)}function zie(e){return e.type}function nm(e){return R0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(lr(e)?iL(e):void 0)}function y3(e){return Pi(p0(e),t=>DBe(t)?t.typeParameters:void 0)}function DBe(e){return sm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Zf)||e.parent.tags.some(QR)))}function Bie(e){const t=WC(e);return t&&vu(t)}function Gie(e,t,r,i){Vie(e,t,r.pos,i)}function Vie(e,t,r,i){i&&i.length&&r!==i[0].pos&&PS(e,r)!==PS(e,i[0].pos)&&t.writeLine()}function jie(e,t,r,i){r!==i&&PS(e,r)!==PS(e,i)&&t.writeLine()}function Uie(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(const h of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function Hie(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=nr(Xh(e,o.pos),h)):u=Xh(e,o.pos),u){const m=[];let v;for(const A of u){if(v){const I=PS(t,v.end);if(PS(t,A.pos)>=I+2)break}m.push(A),v=A}if(m.length){const A=PS(t,Ya(m).end);PS(t,ka(e,o.pos))>=A+2&&(Gie(t,r,o,u),Uie(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Ya(m).end})}}return p;function h(m){return M4(e,m.pos)}}function CR(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=Jx(t,i),u=t.length;let p;for(let h=i,m=l.line;h0){let R=I%DR();const M=d3((I-R)/DR());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}NBe(e,o,r,s,h,v),h=v}}else r.writeComment(e.substring(i,o))}function NBe(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function MSe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=iU(e)|536870912),r||t&&lr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=LSe(e)|268435456),kSe(e.modifierFlagsCache)):CBe(e.modifierFlagsCache))}function dd(e){return Kie(e,!0)}function Xie(e){return Kie(e,!0,!0)}function Uv(e){return Kie(e,!1)}function LSe(e){let t=0;return e.parent&&!Ao(e)&&(lr(e)&&(cre(e)&&(t|=8388608),ure(e)&&(t|=16777216),dre(e)&&(t|=33554432),pre(e)&&(t|=67108864),fre(e)&&(t|=134217728)),mre(e)&&(t|=65536)),t}function CBe(e){return e&65535}function kSe(e){return e&131071|(e&260046848)>>>23}function PBe(e){return kSe(LSe(e))}function Yie(e){return iU(e)|PBe(e)}function iU(e){let t=Cm(e)?M_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function M_(e){let t=0;if(e)for(const r of e)t|=VA(r.kind);return t}function VA(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 wSe(e){return e===57||e===56}function $ie(e){return wSe(e)||e===54}function zC(e){return e===76||e===77||e===78}function oU(e){return mr(e)&&zC(e.operatorToken.kind)}function ak(e){return wSe(e)||e===61}function sk(e){return mr(e)&&ak(e.operatorToken.kind)}function zy(e){return e>=64&&e<=79}function aU(e){const t=sU(e);return t&&!t.isImplements?t.class:void 0}function sU(e){if(Hy(e)){if(of(e.parent)&&ui(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(hI(e.parent)){const t=y0(e.parent);if(t&&ui(t))return{class:t,isImplements:!1}}}}function Lc(e,t){return mr(e)&&(t?e.operatorToken.kind===64:zy(e.operatorToken.kind))&&ep(e.left)}function OSe(e){return Lc(e.parent)&&e.parent.left===e}function By(e){if(Lc(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function E3(e){return aU(e)!==void 0}function Gl(e){return e.kind===80||lk(e)}function Vp(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 BC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&BC(e.expression)||e.kind===217&&BC(e.expression)}function lk(e){return Wr(e)&&Ve(e.name)&&Gl(e.expression)}function ck(e){if(Wr(e)){const t=ck(e.expression);if(t!==void 0)return t+"."+mp(e.name)}else if(Qs(e)){const t=ck(e.expression);if(t!==void 0&&ic(e.argumentExpression))return t+"."+NS(e.argumentExpression)}else{if(Ve(e))return Vi(e.escapedText);if(t_(e))return sP(e)}}function Hv(e){return GE(e)&&Og(e)==="prototype"}function GC(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 lU(e){return!!e.parent&&(Wr(e.parent)&&e.parent.name===e||Qs(e.parent)&&e.parent.argumentExpression===e)}function Qie(e){return Id(e.parent)&&e.parent.right===e||Wr(e.parent)&&e.parent.name===e||x0(e.parent)&&e.parent.right===e}function S3(e){return mr(e)&&e.operatorToken.kind===104}function Zie(e){return S3(e.parent)&&e===e.parent.right}function cU(e){return e.kind===210&&e.properties.length===0}function eoe(e){return e.kind===209&&e.elements.length===0}function PR(e){if(!(!MBe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function MBe(e){return e&&Le(e.declarations)>0&&Zr(e.declarations[0],2048)}function T3(e){return An(pTe,t=>Il(e,t))}function LBe(e){const 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)):N.assert(!1,"Unexpected code point")}return t}function toe(e){let t="";const r=LBe(e);let i=0;const o=r.length;let s,l,u,p;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=wS.charAt(s)+wS.charAt(l)+wS.charAt(u)+wS.charAt(p),i+=3;return t}function kBe(e){let t="",r=0;const i=e.length;for(;r>4&3,m=(l&15)<<4|u>>2&15,v=(u&3)<<6|p&63;m===0&&u!==0?i.push(h):v===0&&p!==0?i.push(h,m):i.push(h,m,v),o+=4}return kBe(i)}function uU(e,t){const r=Po(t)?t:t.readFile(e);if(!r)return;const i=ZH(e,r);return i.error?void 0:i.config}function VC(e,t){return uU(e,t)||{}}function A3(e){try{return JSON.parse(e)}catch{return}}function $m(e,t){return!t.directoryExists||t.directoryExists(e)}function Gy(e){switch(e.newLine){case 0:return lTe;case 1:case void 0:return cTe}}function xf(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function I3(e,t){return xf(e.pos,t)}function b0(e,t){return xf(t,e.end)}function Fg(e){const t=Cm(e)?Oo(e.modifiers,Eu):void 0;return t&&!Zm(t.end)?b0(e,t.end):e}function L_(e){if(Jo(e)||ql(e))return b0(e,e.name.pos);const t=Cm(e)?tl(e.modifiers):void 0;return t&&!Zm(t.end)?b0(e,t.end):Fg(e)}function WSe(e){return e.pos===e.end}function dU(e,t){return xf(e,e+fa(t).length)}function kS(e,t){return ooe(e,e,t)}function x3(e,t,r){return Rf(jC(e,r,!1),jC(t,r,!1),r)}function ioe(e,t,r){return Rf(e.end,t.end,r)}function ooe(e,t,r){return Rf(jC(e,r,!1),t.end,r)}function uk(e,t,r){return Rf(e.end,jC(t,r,!1),r)}function pU(e,t,r,i){const o=jC(t,r,i);return iC(r,e.end,o)}function FSe(e,t,r){return iC(r,e.end,t.end)}function aoe(e,t){return!Rf(e.pos,e.end,t)}function Rf(e,t,r){return iC(r,e,t)===0}function jC(e,t,r){return Zm(e.pos)?-1:ka(t.text,e.pos,!1,r)}function soe(e,t,r,i){const o=ka(r.text,e,!1,i),s=wBe(o,t,r);return iC(r,s??t,o)}function loe(e,t,r,i){const o=ka(r.text,e,!1,i);return iC(r,e,Math.min(t,o))}function wBe(e,t=0,r){for(;e-- >t;)if(!Mg(r.text.charCodeAt(e)))return e}function fU(e){const t=Do(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function UC(e){return nr(e.declarations,dk)}function dk(e){return wi(e)&&e.initializer!==void 0}function zSe(e){return e.watch&&xs(e,"watch")}function Qm(e){e.close()}function xl(e){return e.flags&33554432?e.links.checkFlags:0}function Df(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&An(e.declarations,vp)||e.flags&32768&&An(e.declarations,rf)||e.valueDeclaration,i=l0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(xl(e)&6){const 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 bu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function MR(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function R3(e){return HC(e)===1}function jA(e){return HC(e)!==0}function HC(e){const{parent:t}=e;switch(t?.kind){case 217:return HC(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:o}=t;return i===e&&zy(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:HC(t);case 303:{const s=HC(t.parent);return e===t.name?OBe(s):s}case 304:return e===t.objectAssignmentInitializer?0:HC(t.parent);case 209:return HC(t);default:return 0}}function OBe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function mU(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!mU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function tp(e,t){e.forEach(t),e.clear()}function ag(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t?.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function qC(e,t,r){ag(e,t,r);const{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function coe(e){if(e.flags&32){const t=zg(e);return!!t&&Zr(t,64)}return!1}function zg(e){var t;return(t=e.declarations)==null?void 0:t.find(ui)}function Or(e){return e.flags&3899393?e.objectFlags:0}function BSe(e,t){return!!Sm(e,r=>t(r)?!0:void 0)}function D3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&qk(e.declarations[0])}function uoe({moduleSpecifier:e}){return Ma(e)?e.text:pc(e)}function _U(e){let t;return Ho(e,r=>{Yf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Yf(r[i])){t=r[i];break}}),t}function Rm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function UA(e){return ui(e)||_d(e)||bp(e)}function hU(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 ws(e){return e.kind===211||e.kind===212}function gU(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function doe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function N3(e){return e.kind===275||e.kind===279}function LR(e){for(;ws(e);)e=e.expression;return e}function poe(e,t){if(ws(e.parent)&&lU(e))return r(e.parent);function r(i){if(i.kind===211){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ve(i.argumentExpression)||ls(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ws(i.expression))return r(i.expression);if(Ve(i.expression))return t(i.expression)}}function kR(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 WBe(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 FBe(e,t){this.flags=t,(N.isDebugging||sr)&&(this.checker=e)}function zBe(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function foe(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 BBe(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 GBe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function VBe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function moe(e){Uoe.push(e),e(lu)}function _oe(e){Object.assign(lu,e),Xe(Uoe,t=>t(lu))}function sg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+N.checkDefined(t[+i]))}function hoe(e){nW=e}function goe(e){!nW&&e&&(nW=e())}function Wo(e){return nW&&nW[e.key]||e.message}function wR(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),nie(t,r,i);let l=Wo(o);return bt(s)&&(l=sg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function jBe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function GSe(e,t){const r=t.fileName||"",i=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,i),N.assertLessThanOrEqual(e.start+e.length,i);const 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(const s of e.relatedInformation)jBe(s)&&s.fileName===r?(N.assertLessThanOrEqual(s.start,i),N.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(GSe(s,t))):o.relatedInformation.push(s)}return o}function HA(e,t){const r=[];for(const i of e)r.push(GSe(i,t));return r}function Qc(e,t,r,i,...o){nie(e.text,t,r);let s=Wo(i);return bt(o)&&(s=sg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function yU(e,...t){let r=Wo(e);return bt(t)&&(r=sg(r,t)),r}function Hl(e,...t){let r=Wo(e);return bt(t)&&(r=sg(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 C3(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 jo(e,t,...r){let i=Wo(t);return bt(r)&&(i=sg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function yoe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function VSe(e){return e.file?e.file.path:void 0}function JC(e,t){return P3(e,t)||UBe(e,t)||0}function P3(e,t){return Uu(VSe(e),VSe(t))||rl(e.start,t.start)||rl(e.length,t.length)||rl(e.code,t.code)||jSe(e.messageText,t.messageText)||0}function UBe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?rl(e.relatedInformation.length,t.relatedInformation.length)||Xe(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return JC(r,o)})||0:e.relatedInformation?-1:1}function jSe(e,t){if(typeof e=="string"&&typeof t=="string")return Uu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Uu(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;ot.next.length?1:0}function pk(e){return e===4||e===2||e===1||e===6?1:0}function USe(e){if(e.transformFlags&2)return cd(e)||a1(e)?e:Ho(e,USe)}function HBe(e){return e.isDeclarationFile?void 0:USe(e)}function qBe(e){return(e.impliedNodeFormat===99||Tc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function fk(e){switch(VU(e)){case 3:return o=>{o.externalModuleIndicator=rw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=rw(o)};case 2:const t=[rw];(e.jsx===4||e.jsx===5)&&t.push(HBe),t.push(qBe);const r=Ym(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Tbt(e){return e}function M3(e){return e>=5&&e<=99}function L3(e){switch(wu(e)){case 0:case 4:case 3:return!1}return!0}function vU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function voe(e){return e.allowUnreachableCode===!1}function boe(e){return e.allowUnusedLabels===!1}function qA(e){return e>=3&&e<=99||e===100}function pd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Eoe(e){return e.useDefineForClassFields!==!1&&os(e)>=9}function Soe(e,t){return iR(t,e,lq)}function Toe(e,t){return iR(t,e,cq)}function Aoe(e,t){return iR(t,e,uq)}function k3(e,t){return t.strictFlag?pd(e,t.name):t.allowJsFlag?Xv(e):e[t.name]}function w3(e){const t=e.jsx;return t===2||t===4||t===5}function O3(e,t){const r=t?.pragmas.get("jsximportsource"),i=To(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function W3(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function bU(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let h=ol(u,e,t);nP(h)||(h=Bc(h),p!==!1&&!r?.has(h)&&(i||(i=Zp())).add(p.realPath,u),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(u,p,h){N.assert(!s),s=!0,u(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;const{resolvedFileName:h,originalPath:m}=p;u.setSymlinkedFile(ol(m,e,t),h);const[v,A]=JBe(h,m,e,t)||et;v&&A&&u.setSymlinkedDirectory(A,{real:Bc(v),realPath:Bc(ol(v,e,t))})}}function JBe(e,t,r,i){const o=zc(go(e,r)),s=zc(go(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!HSe(o[o.length-2],i)&&!HSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Cv(o),Cv(s)]:void 0}function HSe(e,t){return e!==void 0&&(t(e)==="node_modules"||uo(e,"@"))}function KBe(e){return EV(e.charCodeAt(0))?e.slice(1):void 0}function SU(e,t,r){const i=cG(e,t,r);return i===void 0?void 0:KBe(i)}function qSe(e){return e.replace(jU,XBe)}function XBe(e){return"\\"+e}function KC(e,t,r){const i=F3(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function F3(e,t,r){if(!(e===void 0||e.length===0))return Pi(e,i=>i&&z3(i,t,r,qU[r]))}function TU(e){return!/[.*?]/.test(e)}function Ioe(e,t,r){const i=e&&z3(e,t,r,qU[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function z3(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=qU[r]){let l="",u=!1;const p=j2(e,t),h=Ya(p);if(r!=="exclude"&&h==="**")return;p[0]=i0(p[0]),TU(h)&&p.push("**","*");let m=0;for(let v of p){if(v==="**")l+=o;else if(r==="directories"&&(l+="(",m++),u&&(l+=al),r!=="exclude"){let A="";v.charCodeAt(0)===42?(A+="([^./]"+i+")?",v=v.substr(1)):v.charCodeAt(0)===63&&(A+="[^./]",v=v.substr(1)),A+=v.replace(jU,s),A!==v&&(l+=HU),l+=A}else l+=v.replace(jU,s);u=!0}for(;m>0;)l+=")?",m--;return l}function xoe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function B3(e,t,r,i,o){e=ga(e),o=ga(o);const s=Qr(o,e);return{includeFilePatterns:Ot(F3(r,s,"files"),l=>`^${l}$`),includeFilePattern:KC(r,s,"files"),includeDirectoryPattern:KC(r,s,"directories"),excludePattern:KC(t,s,"exclude"),basePaths:YBe(e,r,i)}}function qv(e,t){return new RegExp(e,t?"":"i")}function AU(e,t,r,i,o,s,l,u,p){e=ga(e),s=ga(s);const h=B3(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(O=>qv(O,o)),v=h.includeDirectoryPattern&&qv(h.includeDirectoryPattern,o),A=h.excludePattern&&qv(h.excludePattern,o),I=m?m.map(()=>[]):[[]],R=new Map,M=Mu(o);for(const O of h.basePaths)C(O,Qr(s,O),l);return da(I);function C(O,U,K){const Z=M(p(U));if(R.has(Z))return;R.set(Z,!0);const{files:V,directories:se}=u(O);for(const G of lS(V,Uu)){const ne=Qr(O,G),he=Qr(U,G);if(!(t&&!Tc(ne,t))&&!(A&&A.test(he)))if(!m)I[0].push(ne);else{const ve=Br(m,$=>$.test(he));ve!==-1&&I[ve].push(ne)}}if(!(K!==void 0&&(K--,K===0)))for(const G of lS(se,Uu)){const ne=Qr(O,G),he=Qr(U,G);(!v||v.test(he))&&(!A||!A.test(he))&&C(ne,he,K)}}}function YBe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=pp(s)?s:ga(Qr(e,s));o.push($Be(l))}o.sort(Fx(!r));for(const s of o)Zn(i,l=>!bm(l,s,e,!r))&&i.push(s)}return i}function $Be(e){const t=Ec(e,uTe);return t<0?AA(e)?i0(ai(e)):e:e.substring(0,e.lastIndexOf(al,t))}function G3(e,t){return t||V3(e)||3}function V3(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 XC(e,t){const r=e&&Xv(e);if(!t||t.length===0)return r?oW:BR;const i=r?oW:BR,o=da(i);return[...i,...Hi(t,l=>l.scriptKind===7||r&&QBe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function mk(e,t){return!e||!T0(e)?t:t===oW?fTe:t===BR?dTe:[...t,[".json"]]}function QBe(e){return e===1||e===2}function XE(e){return bt(GR,t=>Il(e,t))}function JA(e){return bt(JU,t=>Il(e,t))}function Roe({imports:e},t=Ym(XE,JA)){return qt(e,({text:r})=>Wp(r)&&!Tc(r,Rk)?t(r):void 0)||!1}function Doe(e,t,r,i){const o=fd(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return pD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!pD(r))return Roe(i)?2:0;return l();function l(){let u=!1;const p=i.imports.length?i.imports:ud(i)?ZBe(i).map(h=>h.arguments[0]):et;for(const h of p)if(Wp(h.text)){if(s&&t===1&&AJ(i,h,r)===99||Tc(h.text,Rk))continue;if(JA(h.text))return 3;XE(h.text)&&(u=!0)}return u?2:0}}function ZBe(e){let t=0,r;for(const i of e.statements){if(t>3)break;Dj(i)?r=So(r,i.declarationList.declarations.map(o=>o.initializer)):eu(i)&&Td(i.expression,!0)?r=xn(r,i.expression):t++}return r||et}function Noe(e,t,r){if(!e)return!1;const i=XC(t,r);for(const o of da(mk(t,i)))if(Il(e,o))return!0;return!1}function JSe(e){const t=e.match(/\//g);return t?t.length:0}function _k(e,t){return rl(JSe(e),JSe(t))}function Ad(e){for(const t of YU){const r=Coe(e,t);if(r!==void 0)return r}return e}function Coe(e,t){return Il(e,t)?hk(e,t):void 0}function hk(e,t){return e.substring(0,e.length-t.length)}function E0(e,t){return U2(e,t,YU,!1)}function OR(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function j3(e){return Hi(Kh(e),t=>OR(t))}function Zm(e){return!(e>=0)}function U3(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||uo(e,".d.")&&Al(e,".ts")}function YC(e){return U3(e)||e===".json"}function $C(e){const t=Bg(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function KSe(e){return Bg(e)!==void 0}function Bg(e){return An(YU,t=>Il(e,t))}function gk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function IU(e,t){const r=[];for(const i of e){if(i===t)return t;Po(i)||r.push(i)}return lG(r,i=>i,t)}function xU(e,t){const r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function wa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Poe(e,t){N.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function RU(e){return{pos:m0(e),end:e.end}}function DU(e,t){const r=t.pos-1,i=Math.min(e.text.length,ka(e.text,t.end)+1);return{pos:r,end:i}}function QC(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function H3(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&lne(e,t,H3)}function ZC(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const h=e.length-1;let m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}const 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){const v=m>>>4,A=e.charCodeAt(h),R=(A<=57?A-48:10+A-(A<=70?65:97))<<(m&15);s[v]|=R;const M=R>>>16;M&&(s[v+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=u;m>=0;m--){const v=h<<16|s[m],A=v/10|0;s[m]=A,h=v-A*10,A&&!p&&(u=m,p=!0)}l=h+l}return l}function YE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Moe(e){if(q3(e,!1))return NU(e)}function NU(e){const t=e.startsWith("-"),r=ZC(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function q3(e,t){if(e==="")return!1;const r=My(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===YE({negative:s,base10Value:ZC(r.getTokenValue())}))}function S0(e){return!!(e.flags&33554432)||$4(e)||nGe(e)||tGe(e)||!(tg(e)||eGe(e))}function eGe(e){return Ve(e)&&rp(e.parent)&&e.parent.name===e}function tGe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Zr(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function nGe(e){if(e.kind!==80)return!1;const t=Gn(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 Loe(e){return Cf(e)&&Ve(e.typeName)}function koe(e,t=Ny){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;ie.includes(t))}function Woe(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return YS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(rR(e))return JS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return gS(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 gL(e)?t.children:void 0;case 286:case 285:return ji(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return $c(e)?t.members:void 0;case 266:return c1(e)?t.members:void 0;case 312:return t.statements}}function J3(e){if(!e.typeParameters){if(bt(e.parameters,t=>!vu(t)))return!0;if(e.kind!==219){const t=Xc(e.parameters);if(!(t&&qE(t)))return!0}}return!1}function rP(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Foe(e){return e.kind===260&&e.parent.kind===299}function $E(e){return e.kind===218||e.kind===219}function QE(e){return e.replace(/\$/gm,()=>"\\$")}function lg(e){return(+e).toString()===e}function K3(e,t,r,i,o){const s=o&&e==="new";return!s&&tf(e,t)?w.createIdentifier(e):!i&&!s&&lg(e)&&+e>=0?w.createNumericLiteral(+e):w.createStringLiteral(e,!!r)}function iP(e){return!!(e.flags&262144&&e.isThisType)}function X3(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,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Ih,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Ih,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function XSe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function zR(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 yk(e){return I0(e)||Ll(e)||Ac(e)||Ic(e)||_d(e)||zR(e)||Xl(e)&&!OE(e)&&!R_(e)}function vk(e){if(!pC(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function PU(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Yh(e.charCodeAt(1),t):Yh(r,t)}function zoe(e){var t;return((t=oH(e))==null?void 0:t.kind)===0}function bk(e){return lr(e)&&(e.type&&e.type.kind===323||$x(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||bk(e);case 355:case 348:return vk(e);default:return!1}}function Boe(e){const t=e.kind;return(t===211||t===212)&&dI(e.expression)}function MU(e){return lr(e)&&Gd(e)&&Fp(e)&&!!WV(e)}function LU(e){return N.checkDefined(Y3(e))}function Y3(e){const t=WV(e);return t&&t.typeExpression&&t.typeExpression.type}function aP(e){return Ve(e)?e.escapedText:KA(e)}function Ek(e){return Ve(e)?Sr(e):sP(e)}function Goe(e){const t=e.kind;return t===80||t===295}function KA(e){return`${e.namespace.escapedText}:${Sr(e.name)}`}function sP(e){return`${Sr(e.namespace)}:${Sr(e.name)}`}function kU(e){return Ve(e)?Sr(e):sP(e)}function rm(e){return!!(e.flags&8576)}function im(e){return e.flags&8192?e.escapedName:e.flags&384?hl(""+e.value):N.fail()}function $3(e){return!!e&&(Wr(e)||Qs(e)||mr(e))}function Voe(e){return e===void 0?!1:!!_D(e.attributes)}function XA(e,t){return mTe.call(e,"*",t)}function Q3(e){return Ve(e.name)?e.name.escapedText:hl(e.name.text)}var Z3,Kv,Sk,eW,Tk,tW,wU,OU,YSe,$Se,WU,QSe,ZSe,FU,zU,BU,GU,eTe,tTe,nTe,rTe,iTe,joe,oTe,aTe,sTe,lP,wS,lTe,cTe,lu,Uoe,nW,mc,os,wu,fd,VU,om,yh,OS,rW,iW,T0,Nf,ZE,cP,Ak,Xv,uP,jU,uTe,UU,HU,Hoe,qoe,Joe,qU,BR,JU,dTe,pTe,KU,GR,oW,fTe,Ik,xk,Rk,XU,YU,aW,mTe,iGe=T({"src/compiler/utilities.ts"(){ra(),Z3=[],Kv="tslib",Sk=160,eW=1e6,Tk=sBe(),tW=Sd(()=>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:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),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:et,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:et})),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:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),wU=(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))(wU||{}),OU=/^(\/\/\/\s*/,YSe=/^(\/\/\/\s*/,$Se=/^(\/\/\/\s*/,WU=/^(\/\/\/\s*/,QSe=/^\/\/\/\s*/,ZSe=/^(\/\/\/\s*/,FU=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(FU||{}),zU=(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))(zU||{}),BU=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(BU||{}),GU=(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))(GU||{}),eTe=/\$\{/g,tTe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,nTe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,rTe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,iTe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),joe=/[^\u0000-\u007F]/g,oTe=/["\u0000-\u001f\u2028\u2029\u0085]/g,aTe=/['\u0000-\u001f\u2028\u2029\u0085]/g,sTe=new Map(Object.entries({'"':""","'":"'"})),lP=[""," "],wS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lTe=`\r `,cTe=` `,lu={getNodeConstructor:()=>foe,getTokenConstructor:()=>BBe,getIdentifierConstructor:()=>GBe,getPrivateIdentifierConstructor:()=>foe,getSourceFileConstructor:()=>foe,getSymbolConstructor:()=>WBe,getTypeConstructor:()=>FBe,getSignatureConstructor:()=>zBe,getSourceMapSourceConstructor:()=>VBe},Uoe=[],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=>{const t=mc.moduleResolution.computeValue(e);if(!qA(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=>{const t=mc.moduleResolution.computeValue(e);if(!qA(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=>pd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>pd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>pd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>pd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>pd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>pd(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>pd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>pd(e,"useUnknownInCatchVariables")}},os=mc.target.computeValue,wu=mc.module.computeValue,fd=mc.moduleResolution.computeValue,VU=mc.moduleDetection.computeValue,om=mc.isolatedModules.computeValue,yh=mc.esModuleInterop.computeValue,OS=mc.allowSyntheticDefaultImports.computeValue,rW=mc.resolvePackageJsonExports.computeValue,iW=mc.resolvePackageJsonImports.computeValue,T0=mc.resolveJsonModule.computeValue,Nf=mc.declaration.computeValue,ZE=mc.preserveConstEnums.computeValue,cP=mc.incremental.computeValue,Ak=mc.declarationMap.computeValue,Xv=mc.allowJs.computeValue,uP=mc.useDefineForClassFields.computeValue,jU=/[^\w\s/]/g,uTe=[42,63],UU=["node_modules","bower_components","jspm_packages"],HU=`(?!(${UU.join("|")})(/|$))`,Hoe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${HU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>xoe(e,Hoe.singleAsteriskRegexFragment)},qoe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${HU}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>xoe(e,qoe.singleAsteriskRegexFragment)},Joe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>xoe(e,Joe.singleAsteriskRegexFragment)},qU={files:Hoe,directories:qoe,exclude:Joe},BR=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],JU=da(BR),dTe=[...BR,[".json"]],pTe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],KU=[[".js",".jsx"],[".mjs"],[".cjs"]],GR=da(KU),oW=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],fTe=[...oW,[".json"]],Ik=[".d.ts",".d.cts",".d.mts"],xk=[".ts",".cts",".mts",".tsx"],Rk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],XU=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(XU||{}),YU=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],aW={files:et,directories:et},mTe=String.prototype.replace}});function Koe(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=lu.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=lu.getIdentifierConstructor()))(m,-1,-1)}function u(m){return new(i||(i=lu.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=lu.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=lu.getNodeConstructor()))(m,-1,-1)}}var oGe=T({"src/compiler/factory/baseNodeFactory.ts"(){ra()}});function Xoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:v,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:C,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:K,parenthesizeExpressionForDisallowedComma:Z,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:se,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ve,parenthesizeConstituentTypeOfUnionType:he,parenthesizeConstituentTypesOfIntersectionType:Y,parenthesizeConstituentTypeOfIntersectionType:$,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:fe,parenthesizeNonArrayTypeOfPostfixType:Ne,parenthesizeElementTypesOfTupleType:pe,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Me,parenthesizeTypeArguments:De,parenthesizeLeadingTypeArgument:Ue};function i(Pe){t||(t=new Map);let We=t.get(Pe);return We||(We=At=>h(Pe,At),t.set(Pe,We)),We}function o(Pe){r||(r=new Map);let We=r.get(Pe);return We||(We=At=>m(Pe,void 0,At),r.set(Pe,We)),We}function s(Pe,We,At,Se){const je=nk(226,Pe),at=Jj(226,Pe),Gt=Tm(We);if(!At&&We.kind===219&&je>3)return!0;const yt=kC(Gt);switch(rl(yt,je)){case-1:return!(!At&&at===1&&We.kind===229);case 1:return!1;case 0:if(At)return at===1;if(mr(Gt)&&Gt.operatorToken.kind===Pe){if(l(Pe))return!1;if(Pe===40){const It=Se?u(Se):0;if(fC(It)&&It===u(Gt))return!1}}return qj(Gt)===0}}function l(Pe){return Pe===42||Pe===52||Pe===51||Pe===53||Pe===28}function u(Pe){if(Pe=Tm(Pe),fC(Pe.kind))return Pe.kind;if(Pe.kind===226&&Pe.operatorToken.kind===40){if(Pe.cachedLiteralKind!==void 0)return Pe.cachedLiteralKind;const We=u(Pe.left),At=fC(We)&&We===u(Pe.right)?We:0;return Pe.cachedLiteralKind=At,At}return 0}function p(Pe,We,At,Se){return Tm(We).kind===217?We:s(Pe,We,At,Se)?e.createParenthesizedExpression(We):We}function h(Pe,We){return p(Pe,We,!0)}function m(Pe,We,At){return p(Pe,At,!1,We)}function v(Pe){return xP(Pe)?e.createParenthesizedExpression(Pe):Pe}function A(Pe){const We=nk(227,58),At=Tm(Pe),Se=kC(At);return rl(Se,We)!==1?e.createParenthesizedExpression(Pe):Pe}function I(Pe){const We=Tm(Pe);return xP(We)?e.createParenthesizedExpression(Pe):Pe}function R(Pe){const We=Tm(Pe);let At=xP(We);if(!At)switch(kR(We,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Pe):Pe}function M(Pe){const We=kR(Pe,!0);switch(We.kind){case 213:return e.createParenthesizedExpression(Pe);case 214:return We.arguments?Pe:e.createParenthesizedExpression(Pe)}return C(Pe)}function C(Pe,We){const At=Tm(Pe);return ep(At)&&(At.kind!==214||At.arguments)&&(We||!qu(At))?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function O(Pe){return ep(Pe)?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function U(Pe){return YV(Pe)?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function K(Pe){const We=eo(Pe,Z);return dt(e.createNodeArray(We,Pe.hasTrailingComma),Pe)}function Z(Pe){const We=Tm(Pe),At=kC(We),Se=nk(226,28);return At>Se?Pe:dt(e.createParenthesizedExpression(Pe),Pe)}function V(Pe){const We=Tm(Pe);if(sa(We)){const Se=We.expression,je=Tm(Se).kind;if(je===218||je===219){const at=e.updateCallExpression(We,dt(e.createParenthesizedExpression(Se),Se),We.typeArguments,We.arguments);return e.restoreOuterExpressions(Pe,at,8)}}const At=kR(We,!1).kind;return At===210||At===218?dt(e.createParenthesizedExpression(Pe),Pe):Pe}function se(Pe){return!Xo(Pe)&&(xP(Pe)||kR(Pe,!1).kind===210)?dt(e.createParenthesizedExpression(Pe),Pe):Pe}function G(Pe){switch(Pe.kind){case 184:case 185:case 194:return e.createParenthesizedType(Pe)}return Pe}function ne(Pe){switch(Pe.kind){case 194:return e.createParenthesizedType(Pe)}return Pe}function he(Pe){switch(Pe.kind){case 192:case 193:return e.createParenthesizedType(Pe)}return G(Pe)}function ve(Pe){return e.createNodeArray(eo(Pe,he))}function $(Pe){switch(Pe.kind){case 192:case 193:return e.createParenthesizedType(Pe)}return he(Pe)}function Y(Pe){return e.createNodeArray(eo(Pe,$))}function oe(Pe){switch(Pe.kind){case 193:return e.createParenthesizedType(Pe)}return $(Pe)}function fe(Pe){switch(Pe.kind){case 198:return e.createParenthesizedType(Pe)}return oe(Pe)}function Ne(Pe){switch(Pe.kind){case 195:case 198:case 186:return e.createParenthesizedType(Pe)}return oe(Pe)}function pe(Pe){return e.createNodeArray(eo(Pe,ie))}function ie(Pe){return ye(Pe)?e.createParenthesizedType(Pe):Pe}function ye(Pe){return YR(Pe)?Pe.postfix:HR(Pe)||bh(Pe)||UR(Pe)||BS(Pe)?ye(Pe.type):cI(Pe)?ye(Pe.falseType):Qv(Pe)||lI(Pe)?ye(Ya(Pe.types)):FS(Pe)?!!Pe.typeParameter.constraint&&ye(Pe.typeParameter.constraint):!1}function Me(Pe){return ye(Pe)?e.createParenthesizedType(Pe):Ne(Pe)}function Ue(Pe){return Ere(Pe)&&Pe.typeParameters?e.createParenthesizedType(Pe):Pe}function Ee(Pe,We){return We===0?Ue(Pe):Pe}function De(Pe){if(bt(Pe))return e.createNodeArray(eo(Pe,Ee))}}var $U,aGe=T({"src/compiler/factory/parenthesizerRules.ts"(){ra(),$U={getParenthesizeLeftSideOfBinaryForOperator:e=>nl,getParenthesizeRightSideOfBinaryForOperator:e=>nl,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:nl,parenthesizeConditionOfConditionalExpression:nl,parenthesizeBranchOfConditionalExpression:nl,parenthesizeExpressionOfExportDefault:nl,parenthesizeExpressionOfNew:e=>oa(e,ep),parenthesizeLeftSideOfAccess:e=>oa(e,ep),parenthesizeOperandOfPostfixUnary:e=>oa(e,ep),parenthesizeOperandOfPrefixUnary:e=>oa(e,YV),parenthesizeExpressionsOfCommaDelimitedList:e=>oa(e,ME),parenthesizeExpressionForDisallowedComma:nl,parenthesizeExpressionOfExpressionStatement:nl,parenthesizeConciseBodyOfArrowFunction:nl,parenthesizeCheckTypeOfConditionalType:nl,parenthesizeExtendsTypeOfConditionalType:nl,parenthesizeConstituentTypesOfUnionType:e=>oa(e,ME),parenthesizeConstituentTypeOfUnionType:nl,parenthesizeConstituentTypesOfIntersectionType:e=>oa(e,ME),parenthesizeConstituentTypeOfIntersectionType:nl,parenthesizeOperandOfTypeOperator:nl,parenthesizeOperandOfReadonlyTypeOperator:nl,parenthesizeNonArrayTypeOfPostfixType:nl,parenthesizeElementTypesOfTupleType:e=>oa(e,ME),parenthesizeElementTypeOfTupleType:nl,parenthesizeTypeOfOptionalType:nl,parenthesizeTypeArguments:e=>e&&oa(e,ME),parenthesizeLeadingTypeArgument:nl}}});function Yoe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,v){if(Xo(m))return m;const A=e.createReturnStatement(m);dt(A,m);const I=e.createBlock([A],v);return dt(I,m),I}function r(m){var v;if(!m.body)return N.fail("Cannot convert a FunctionDeclaration without a body");const A=e.createFunctionExpression((v=PE(m))==null?void 0:v.filter(I=>!rI(I)&&!jW(I)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return Cr(A,m),dt(A,m),dP(m)&&cW(A,!0),A}function i(m){var v;const A=e.createClassExpression((v=m.modifiers)==null?void 0:v.filter(I=>!rI(I)&&!jW(I)),m.name,m.typeParameters,m.heritageClauses,m.members);return Cr(A,m),dt(A,m),dP(m)&&cW(A,!0),A}function o(m){if(Qa(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Cr(dt(e.createSpreadElement(m.name),m),m);const v=h(m.name);return m.initializer?Cr(dt(e.createAssignment(v,m.initializer),m),m):v}return oa(m,vt)}function s(m){if(Qa(m)){if(m.dotDotDotToken)return N.assertNode(m.name,Ve),Cr(dt(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){const v=h(m.name);return Cr(dt(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(v,m.initializer):v),m),m)}return N.assertNode(m.name,Ve),Cr(dt(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return oa(m,kg)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return u(m)}}function u(m){return am(m)?Cr(dt(e.createObjectLiteralExpression(Ot(m.elements,s)),m),m):oa(m,Oa)}function p(m){return t1(m)?Cr(dt(e.createArrayLiteralExpression(Ot(m.elements,o)),m),m):oa(m,md)}function h(m){return ta(m)?l(m):oa(m,vt)}}var QU,sGe=T({"src/compiler/factory/nodeConverters.ts"(){ra(),QU={convertToFunctionBlock:Ko,convertToFunctionExpression:Ko,convertToClassExpression:Ko,convertToArrayAssignmentElement:Ko,convertToObjectAssignmentElement:Ko,convertToAssignmentPattern:Ko,convertToObjectAssignmentPattern:Ko,convertToArrayAssignmentPattern:Ko,convertToAssignmentElementTarget:Ko}}});function _Te(e){Qoe.push(e)}function Dk(e,t){const r=e&8?nl:Cr,i=Sd(()=>e&1?$U:Xoe(O)),o=Sd(()=>e&2?QU:Yoe(O)),s=ch(b=>(P,B)=>Te(P,b,B)),l=ch(b=>P=>ct(b,P)),u=ch(b=>P=>jt(P,b)),p=ch(b=>()=>oN(b)),h=ch(b=>P=>TT(b,P)),m=ch(b=>(P,B)=>M1(b,P,B)),v=ch(b=>(P,B)=>aN(b,P,B)),A=ch(b=>(P,B)=>Zs(b,P,B)),I=ch(b=>(P,B)=>Q0(b,P,B)),R=ch(b=>(P,B,ce)=>Ff(b,P,B,ce)),M=ch(b=>(P,B,ce)=>Sb(b,P,B,ce)),C=ch(b=>(P,B,ce,Qe)=>Tb(b,P,B,ce,Qe)),O={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:se,createBigIntLiteral:G,createStringLiteral:he,createStringLiteralFromNode:ve,createRegularExpressionLiteral:$,createLiteralLikeNode:Y,createIdentifier:Ne,createTempVariable:pe,createLoopVariable:ie,createUniqueName:ye,getGeneratedNameForNode:Me,createPrivateIdentifier:Ee,createUniquePrivateName:Pe,getGeneratedPrivateNameForNode:We,createToken:Se,createSuper:je,createThis:at,createNull:Gt,createTrue:yt,createFalse:$e,createModifier:It,createModifiersFromModifierFlags:tn,createQualifiedName:rn,updateQualifiedName:Pn,createComputedPropertyName:Xn,updateComputedPropertyName:hn,createTypeParameterDeclaration:Qt,updateTypeParameterDeclaration:$t,createParameterDeclaration:_i,updateParameterDeclaration:ao,createDecorator:Oi,updateDecorator:No,createPropertySignature:Mn,updatePropertySignature:Di,createPropertyDeclaration:sn,updatePropertyDeclaration:tt,createMethodSignature:Bt,updateMethodSignature:Rn,createMethodDeclaration:li,updateMethodDeclaration:hi,createConstructorDeclaration:Sn,updateConstructorDeclaration:kn,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:Fe,createCallSignature:j,updateCallSignature:ot,createConstructSignature:Rt,updateConstructSignature:Ye,createIndexSignature:_t,updateIndexSignature:Vt,createClassStaticBlockDeclaration:Io,updateClassStaticBlockDeclaration:ma,createTemplateLiteralTypeSpan:yn,updateTemplateLiteralTypeSpan:pn,createKeywordTypeNode:_n,createTypePredicateNode:q,updateTypePredicateNode:Oe,createTypeReferenceNode:Lt,updateTypeReferenceNode:L,createFunctionTypeNode:_e,updateFunctionTypeNode:J,createConstructorTypeNode:Ge,updateConstructorTypeNode:kt,createTypeQueryNode:Bn,updateTypeQueryNode:Hn,createTypeLiteralNode:Ni,updateTypeLiteralNode:Ai,createArrayTypeNode:ir,updateArrayTypeNode:Vr,createTupleTypeNode:yo,updateTupleTypeNode:Ci,createNamedTupleMember:Ii,updateNamedTupleMember:Jr,createOptionalTypeNode:xo,updateOptionalTypeNode:Dn,createRestTypeNode:Fs,updateRestTypeNode:Ql,createUnionTypeNode:Vs,updateUnionTypeNode:yl,createIntersectionTypeNode:uu,updateIntersectionTypeNode:ho,createConditionalTypeNode:pa,updateConditionalTypeNode:du,createInferTypeNode:As,updateInferTypeNode:La,createImportTypeNode:sc,updateImportTypeNode:Nl,createParenthesizedType:ul,updateParenthesizedType:ko,createThisTypeNode:nn,createTypeOperatorNode:js,updateTypeOperatorNode:nu,createIndexedAccessTypeNode:pu,updateIndexedAccessTypeNode:Ap,createMappedTypeNode:Ms,updateMappedTypeNode:Rc,createLiteralTypeNode:de,updateLiteralTypeNode:ee,createTemplateLiteralType:_l,updateTemplateLiteralType:wf,createObjectBindingPattern:we,updateObjectBindingPattern:Et,createArrayBindingPattern:un,updateArrayBindingPattern:Er,createBindingElement:yr,updateBindingElement:jr,createArrayLiteralExpression:xi,updateArrayLiteralExpression:Mr,createObjectLiteralExpression:$o,updateObjectLiteralExpression:Tl,createPropertyAccessExpression:e&4?(b,P)=>pr(Us(b,P),262144):Us,updatePropertyAccessExpression:gc,createPropertyAccessChain:e&4?(b,P,B)=>pr(Ss(b,P,B),262144):Ss,updatePropertyAccessChain:qc,createElementAccessExpression:Wc,updateElementAccessExpression:cm,createElementAccessChain:hd,updateElementAccessChain:Ce,createCallExpression:Jn,updateCallExpression:vo,createCallChain:Qo,updateCallChain:na,createNewExpression:Zl,updateNewExpression:yc,createTaggedTemplateExpression:dl,updateTaggedTemplateExpression:vl,createTypeAssertion:Vl,updateTypeAssertion:ec,createParenthesizedExpression:Jc,updateParenthesizedExpression:ff,createFunctionExpression:jd,updateFunctionExpression:Nd,createArrowFunction:Of,updateArrowFunction:U_,createDeleteExpression:Nh,updateDeleteExpression:Kg,createTypeOfExpression:Bu,updateTypeOfExpression:Xg,createVoidExpression:Ip,updateVoidExpression:mg,createAwaitExpression:Ud,updateAwaitExpression:te,createPrefixUnaryExpression:ct,updatePrefixUnaryExpression:zt,createPostfixUnaryExpression:jt,updatePostfixUnaryExpression:F,createBinaryExpression:Te,updateBinaryExpression:Jt,createConditionalExpression:rr,updateConditionalExpression:oi,createTemplateExpression:$r,updateTemplateExpression:io,createTemplateHead:xp,createTemplateMiddle:Hd,createTemplateTail:pb,createNoSubstitutionTemplateLiteral:us,createTemplateLiteralLikeNode:Dc,createYieldExpression:km,updateYieldExpression:wm,createSpreadElement:Ui,updateSpreadElement:Yg,createClassExpression:rv,updateClassExpression:Om,createOmittedExpression:I1,createExpressionWithTypeArguments:x1,updateExpressionWithTypeArguments:mf,createAsExpression:H_,updateAsExpression:_f,createNonNullExpression:$g,updateNonNullExpression:ze,createSatisfiesExpression:Ze,updateSatisfiesExpression:Mt,createNonNullChain:Ut,updateNonNullChain:vn,createMetaProperty:Yn,updateMetaProperty:gn,createTemplateSpan:$n,updateTemplateSpan:fi,createSemicolonClassElement:cr,createBlock:ri,updateBlock:fr,createVariableStatement:Zo,updateVariableStatement:Ka,createEmptyStatement:Zu,createExpressionStatement:mu,updateExpressionStatement:Qg,createIfStatement:V0,updateIfStatement:HI,createDoStatement:j0,updateDoStatement:$D,createWhileStatement:QD,updateWhileStatement:ZD,createForStatement:mT,updateForStatement:R1,createForInStatement:qI,updateForInStatement:eN,createForOfStatement:JI,updateForOfStatement:KI,createContinueStatement:XI,updateContinueStatement:YI,createBreakStatement:_T,updateBreakStatement:$I,createReturnStatement:D1,updateReturnStatement:N1,createWithStatement:fb,updateWithStatement:mb,createSwitchStatement:_g,updateSwitchStatement:U0,createLabeledStatement:ts,updateLabeledStatement:hT,createThrowStatement:tN,updateThrowStatement:H0,createTryStatement:Zg,updateTryStatement:Ch,createDebuggerStatement:Wf,createVariableDeclaration:qd,updateVariableDeclaration:Rp,createVariableDeclarationList:ap,updateVariableDeclarationList:iv,createFunctionDeclaration:gT,updateFunctionDeclaration:nN,createClassDeclaration:_b,updateClassDeclaration:q0,createInterfaceDeclaration:ZI,updateInterfaceDeclaration:vc,createTypeAliasDeclaration:ov,updateTypeAliasDeclaration:ex,createEnumDeclaration:a_,updateEnumDeclaration:yT,createModuleDeclaration:qe,updateModuleDeclaration:s_,createModuleBlock:_u,updateModuleBlock:J0,createCaseBlock:tx,updateCaseBlock:hb,createNamespaceExportDeclaration:av,updateNamespaceExportDeclaration:sv,createImportEqualsDeclaration:Xa,updateImportEqualsDeclaration:l_,createImportDeclaration:vT,updateImportDeclaration:bT,createImportClause:K0,updateImportClause:ET,createAssertClause:um,updateAssertClause:dm,createAssertEntry:ey,updateAssertEntry:nx,createImportTypeAssertionContainer:c_,updateImportTypeAssertionContainer:rN,createImportAttributes:C1,updateImportAttributes:Xi,createImportAttribute:ei,updateImportAttribute:Ph,createNamespaceImport:Jd,updateNamespaceImport:PM,createNamespaceExport:ty,updateNamespaceExport:MM,createNamedImports:gb,updateNamedImports:bl,createImportSpecifier:Up,updateImportSpecifier:hg,createExportAssignment:pm,updateExportAssignment:yb,createExportDeclaration:Wm,updateExportDeclaration:ny,createNamedExports:ST,updateNamedExports:gg,createExportSpecifier:rx,updateExportSpecifier:yg,createMissingDeclaration:q_,createExternalModuleReference:lv,updateExternalModuleReference:iN,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return v(322)},get updateJSDocNonNullableType(){return A(322)},get createJSDocNullableType(){return v(321)},get updateJSDocNullableType(){return A(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:AT,updateJSDocFunctionType:Fm,createJSDocTypeLiteral:vb,updateJSDocTypeLiteral:sN,createJSDocTypeExpression:IT,updateJSDocTypeExpression:LM,createJSDocSignature:hr,updateJSDocSignature:ru,createJSDocTemplateTag:J_,updateJSDocTemplateTag:ur,createJSDocTypedefTag:xT,updateJSDocTypedefTag:X0,createJSDocParameterTag:Kc,updateJSDocParameterTag:Mh,createJSDocPropertyTag:zm,updateJSDocPropertyTag:L1,createJSDocCallbackTag:k1,updateJSDocCallbackTag:bb,createJSDocOverloadTag:ry,updateJSDocOverloadTag:RT,createJSDocAugmentsTag:Bm,updateJSDocAugmentsTag:Y0,createJSDocImplementsTag:vg,updateJSDocImplementsTag:sp,createJSDocSeeTag:Eb,updateJSDocSeeTag:ix,createJSDocNameReference:$0,updateJSDocNameReference:lN,createJSDocMemberName:w1,updateJSDocMemberName:DT,createJSDocLink:Hp,updateJSDocLink:NT,createJSDocLinkCode:jl,updateJSDocLinkCode:Fc,createJSDocLinkPlain:CT,updateJSDocLinkPlain:Au,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return C(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return C(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return C(350)},get createJSDocAuthorTag(){return I(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return I(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return I(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return I(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return I(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return I(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return I(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return I(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return C(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return C(357)},createJSDocEnumTag:qp,updateJSDocEnumTag:PT,createJSDocUnknownTag:iu,updateJSDocUnknownTag:ox,createJSDocText:MT,updateJSDocText:Hs,createJSDocComment:cN,updateJSDocComment:Z0,createJsxElement:O1,updateJsxElement:kM,createJsxSelfClosingElement:gd,updateJsxSelfClosingElement:iy,createJsxOpeningElement:K_,updateJsxOpeningElement:ax,createJsxClosingElement:Dp,updateJsxClosingElement:sx,createJsxFragment:lp,createJsxText:uv,updateJsxText:LT,createJsxOpeningFragment:uN,createJsxJsxClosingFragment:dN,updateJsxFragment:lx,createJsxAttribute:kT,updateJsxAttribute:pN,createJsxAttributes:Ab,updateJsxAttributes:Np,createJsxSpreadAttribute:Lh,updateJsxSpreadAttribute:fN,createJsxExpression:wT,updateJsxExpression:rs,createJsxNamespacedName:Ir,updateJsxNamespacedName:gf,createCaseClause:Cd,updateCaseClause:W1,createDefaultClause:mN,updateDefaultClause:eE,createHeritageClause:F1,updateHeritageClause:OT,createCatchClause:bg,updateCatchClause:u_,createPropertyAssignment:yf,updatePropertyAssignment:Gm,createShorthandPropertyAssignment:Eg,updateShorthandPropertyAssignment:Sg,createSpreadAssignment:lc,updateSpreadAssignment:_N,createEnumMember:zf,updateEnumMember:kh,createSourceFile:vf,updateSourceFile:Ls,createRedirectedSourceFile:z1,createBundle:B1,updateBundle:G1,createUnparsedSource:ay,createUnparsedPrologue:nE,createUnparsedPrepend:D,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ht,createInputFiles:on,createSyntheticExpression:wr,createSyntaxList:ki,createNotEmittedStatement:gi,createPartiallyEmittedExpression:no,updatePartiallyEmittedExpression:ya,createCommaListExpression:Pd,updateCommaListExpression:Bf,createSyntheticReferenceExpression:xb,updateSyntheticReferenceExpression:vi,cloneNode:Db,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 u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:FT,createImmediatelyInvokedArrowFunction:V1,createVoidZero:X_,createExportDefault:Oh,createExternalModuleExport:hN,createTypeCheck:zT,createIsNotTypeCheck:Zz,createMethodCall:Nb,createGlobalMethodCall:d_,createFunctionBindCall:_8,createFunctionCallCall:h8,createFunctionApplyCall:rE,createArraySliceCall:wM,createArrayConcatCall:Wh,createObjectDefinePropertyCall:px,createObjectGetOwnPropertyDescriptorCall:g8,createReflectGetCall:Y_,createReflectSetCall:Q,createPropertyDescriptor:Ke,createCallBinding:Ri,createAssignmentTargetWrapper:mi,inlineExpressions:Yi,getInternalName:Ds,getLocalName:es,getExportName:Gf,getDeclarationName:$_,getNamespaceMemberName:Tg,getExternalModuleOrNamespaceExportName:sy,restoreOuterExpressions:Kt,restoreEnclosingLabel:Fr,createUseStrictPrologue:cp,copyPrologue:ly,copyStandardPrologue:BT,copyCustomPrologue:gN,ensureUseStrict:OM,liftToBlock:WM,mergeLexicalEnvironment:cy,replaceModifiers:Pb,replaceDecoratorsAndModifiers:yN,replacePropertyName:Jp};return Xe(Qoe,b=>b(O)),O;function U(b,P){if(b===void 0||b===et)b=[];else if(ME(b)){if(P===void 0||b.hasTrailingComma===P)return b.transformFlags===void 0&&hTe(b),N.attachNodeArrayDebugInfo(b),b;const Qe=b.slice();return Qe.pos=b.pos,Qe.end=b.end,Qe.hasTrailingComma=P,Qe.transformFlags=b.transformFlags,N.attachNodeArrayDebugInfo(Qe),Qe}const B=b.length,ce=B>=1&&B<=4?b.slice():b;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,hTe(ce),N.attachNodeArrayDebugInfo(ce),ce}function K(b){return t.createBaseNode(b)}function Z(b){const P=K(b);return P.symbol=void 0,P.localSymbol=void 0,P}function V(b,P){return b!==P&&(b.typeArguments=P.typeArguments),or(b,P)}function se(b,P=0){const B=typeof b=="number"?b+"":b;N.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ce=Z(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(b){const P=At(10);return P.text=typeof b=="string"?b:YE(b)+"n",P.transformFlags|=32,P}function ne(b,P){const B=Z(11);return B.text=b,B.singleQuote=P,B}function he(b,P,B){const ce=ne(b,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ve(b){const P=ne(em(b),void 0);return P.textSourceNode=b,P}function $(b){const P=At(14);return P.text=b,P}function Y(b,P){switch(b){case 9:return se(P,0);case 10:return G(P);case 11:return he(P,void 0);case 12:return uv(P,!1);case 13:return uv(P,!0);case 14:return $(P);case 15:return Dc(b,P,void 0,0)}}function oe(b){const P=t.createBaseIdentifierNode(80);return P.escapedText=b,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function fe(b,P,B,ce){const Qe=oe(hl(b));return kk(Qe,{flags:P,id:lW,prefix:B,suffix:ce}),lW++,Qe}function Ne(b,P,B){P===void 0&&b&&(P=CE(b)),P===80&&(P=void 0);const ce=oe(hl(b));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function pe(b,P,B,ce){let Qe=1;P&&(Qe|=8);const Xt=fe("",Qe,B,ce);return b&&b(Xt),Xt}function ie(b){let P=2;return b&&(P|=8),fe("",P,void 0,void 0)}function ye(b,P=0,B,ce){return N.assert(!(P&7),"Argument out of range: flags"),N.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),fe(b,3|P,B,ce)}function Me(b,P=0,B,ce){N.assert(!(P&7),"Argument out of range: flags");const Qe=b?$h(b)?D0(!1,B,b,ce,Sr):`generated@${as(b)}`:"";(B||ce)&&(P|=16);const Xt=fe(Qe,4|P,B,ce);return Xt.original=b,Xt}function Ue(b){const P=t.createBasePrivateIdentifierNode(81);return P.escapedText=b,P.transformFlags|=16777216,P}function Ee(b){return uo(b,"#")||N.fail("First character of private identifier must be #: "+b),Ue(hl(b))}function De(b,P,B,ce){const Qe=Ue(hl(b));return kk(Qe,{flags:P,id:lW,prefix:B,suffix:ce}),lW++,Qe}function Pe(b,P,B){b&&!uo(b,"#")&&N.fail("First character of private identifier must be #: "+b);const ce=8|(b?3:1);return De(b??"",ce,P,B)}function We(b,P,B){const ce=$h(b)?D0(!0,P,b,B,Sr):`#generated@${as(b)}`,Xt=De(ce,4|(P||B?16:0),P,B);return Xt.original=b,Xt}function At(b){return t.createBaseTokenNode(b)}function Se(b){N.assert(b>=0&&b<=165,"Invalid token"),N.assert(b<=15||b>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(b<=9||b>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(b!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const P=At(b);let B=0;switch(b){case 134:B=384;break;case 160:B=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:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function je(){return Se(108)}function at(){return Se(110)}function Gt(){return Se(106)}function yt(){return Se(112)}function $e(){return Se(97)}function It(b){return Se(b)}function tn(b){const P=[];return b&32&&P.push(It(95)),b&128&&P.push(It(138)),b&2048&&P.push(It(90)),b&4096&&P.push(It(87)),b&1&&P.push(It(125)),b&2&&P.push(It(123)),b&4&&P.push(It(124)),b&64&&P.push(It(128)),b&256&&P.push(It(126)),b&16&&P.push(It(164)),b&8&&P.push(It(148)),b&512&&P.push(It(129)),b&1024&&P.push(It(134)),b&8192&&P.push(It(103)),b&16384&&P.push(It(147)),P.length?P:void 0}function rn(b,P){const B=K(166);return B.left=b,B.right=cc(P),B.transformFlags|=Tr(B.left)|Nk(B.right),B.flowNode=void 0,B}function Pn(b,P,B){return b.left!==P||b.right!==B?or(rn(P,B),b):b}function Xn(b){const P=K(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(b),P.transformFlags|=Tr(P.expression)|1024|131072,P}function hn(b,P){return b.expression!==P?or(Xn(P),b):b}function Qt(b,P,B,ce){const Qe=Z(168);return Qe.modifiers=Ua(b),Qe.name=cc(P),Qe.constraint=B,Qe.default=ce,Qe.transformFlags=1,Qe.expression=void 0,Qe.jsDoc=void 0,Qe}function $t(b,P,B,ce,Qe){return b.modifiers!==P||b.name!==B||b.constraint!==ce||b.default!==Qe?or(Qt(P,B,ce,Qe),b):b}function _i(b,P,B,ce,Qe,Xt){const vr=Z(169);return vr.modifiers=Ua(b),vr.dotDotDotToken=P,vr.name=cc(B),vr.questionToken=ce,vr.type=Qe,vr.initializer=fx(Xt),JE(vr.name)?vr.transformFlags=1:vr.transformFlags=Ja(vr.modifiers)|Tr(vr.dotDotDotToken)|Yv(vr.name)|Tr(vr.questionToken)|Tr(vr.initializer)|(vr.questionToken??vr.type?1:0)|(vr.dotDotDotToken??vr.initializer?1024:0)|(M_(vr.modifiers)&31?8192:0),vr.jsDoc=void 0,vr}function ao(b,P,B,ce,Qe,Xt,vr){return b.modifiers!==P||b.dotDotDotToken!==B||b.name!==ce||b.questionToken!==Qe||b.type!==Xt||b.initializer!==vr?or(_i(P,B,ce,Qe,Xt,vr),b):b}function Oi(b){const P=K(170);return P.expression=i().parenthesizeLeftSideOfAccess(b,!1),P.transformFlags|=Tr(P.expression)|1|8192|33554432,P}function No(b,P){return b.expression!==P?or(Oi(P),b):b}function Mn(b,P,B,ce){const Qe=Z(171);return Qe.modifiers=Ua(b),Qe.name=cc(P),Qe.type=ce,Qe.questionToken=B,Qe.transformFlags=1,Qe.initializer=void 0,Qe.jsDoc=void 0,Qe}function Di(b,P,B,ce,Qe){return b.modifiers!==P||b.name!==B||b.questionToken!==ce||b.type!==Qe?Ar(Mn(P,B,ce,Qe),b):b}function Ar(b,P){return b!==P&&(b.initializer=P.initializer),or(b,P)}function sn(b,P,B,ce,Qe){const Xt=Z(172);Xt.modifiers=Ua(b),Xt.name=cc(P),Xt.questionToken=B&&$v(B)?B:void 0,Xt.exclamationToken=B&&zk(B)?B:void 0,Xt.type=ce,Xt.initializer=fx(Qe);const vr=Xt.flags&33554432||M_(Xt.modifiers)&128;return Xt.transformFlags=Ja(Xt.modifiers)|Yv(Xt.name)|Tr(Xt.initializer)|(vr||Xt.questionToken||Xt.exclamationToken||Xt.type?1:0)|(Za(Xt.name)||M_(Xt.modifiers)&256&&Xt.initializer?8192:0)|16777216,Xt.jsDoc=void 0,Xt}function tt(b,P,B,ce,Qe,Xt){return b.modifiers!==P||b.name!==B||b.questionToken!==(ce!==void 0&&$v(ce)?ce:void 0)||b.exclamationToken!==(ce!==void 0&&zk(ce)?ce:void 0)||b.type!==Qe||b.initializer!==Xt?or(sn(P,B,ce,Qe,Xt),b):b}function Bt(b,P,B,ce,Qe,Xt){const vr=Z(173);return vr.modifiers=Ua(b),vr.name=cc(P),vr.questionToken=B,vr.typeParameters=Ua(ce),vr.parameters=Ua(Qe),vr.type=Xt,vr.transformFlags=1,vr.jsDoc=void 0,vr.locals=void 0,vr.nextContainer=void 0,vr.typeArguments=void 0,vr}function Rn(b,P,B,ce,Qe,Xt,vr){return b.modifiers!==P||b.name!==B||b.questionToken!==ce||b.typeParameters!==Qe||b.parameters!==Xt||b.type!==vr?V(Bt(P,B,ce,Qe,Xt,vr),b):b}function li(b,P,B,ce,Qe,Xt,vr,ro){const qs=Z(174);if(qs.modifiers=Ua(b),qs.asteriskToken=P,qs.name=cc(B),qs.questionToken=ce,qs.exclamationToken=void 0,qs.typeParameters=Ua(Qe),qs.parameters=U(Xt),qs.type=vr,qs.body=ro,!qs.body)qs.transformFlags=1;else{const p_=M_(qs.modifiers)&1024,Lb=!!qs.asteriskToken,Vm=p_&&Lb;qs.transformFlags=Ja(qs.modifiers)|Tr(qs.asteriskToken)|Yv(qs.name)|Tr(qs.questionToken)|Ja(qs.typeParameters)|Ja(qs.parameters)|Tr(qs.type)|Tr(qs.body)&-67108865|(Vm?128:p_?256:Lb?2048:0)|(qs.questionToken||qs.typeParameters||qs.type?1:0)|1024}return qs.typeArguments=void 0,qs.jsDoc=void 0,qs.locals=void 0,qs.nextContainer=void 0,qs.flowNode=void 0,qs.endFlowNode=void 0,qs.returnFlowNode=void 0,qs}function hi(b,P,B,ce,Qe,Xt,vr,ro,qs){return b.modifiers!==P||b.asteriskToken!==B||b.name!==ce||b.questionToken!==Qe||b.typeParameters!==Xt||b.parameters!==vr||b.type!==ro||b.body!==qs?Qi(li(P,B,ce,Qe,Xt,vr,ro,qs),b):b}function Qi(b,P){return b!==P&&(b.exclamationToken=P.exclamationToken),or(b,P)}function Io(b){const P=Z(175);return P.body=b,P.transformFlags=Tr(b)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function ma(b,P){return b.body!==P?Wa(Io(P),b):b}function Wa(b,P){return b!==P&&(b.modifiers=P.modifiers),or(b,P)}function Sn(b,P,B){const ce=Z(176);return ce.modifiers=Ua(b),ce.parameters=U(P),ce.body=B,ce.transformFlags=Ja(ce.modifiers)|Ja(ce.parameters)|Tr(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function kn(b,P,B,ce){return b.modifiers!==P||b.parameters!==B||b.body!==ce?He(Sn(P,B,ce),b):b}function He(b,P){return b!==P&&(b.typeParameters=P.typeParameters,b.type=P.type),V(b,P)}function mt(b,P,B,ce,Qe){const Xt=Z(177);return Xt.modifiers=Ua(b),Xt.name=cc(P),Xt.parameters=U(B),Xt.type=ce,Xt.body=Qe,Xt.body?Xt.transformFlags=Ja(Xt.modifiers)|Yv(Xt.name)|Ja(Xt.parameters)|Tr(Xt.type)|Tr(Xt.body)&-67108865|(Xt.type?1:0):Xt.transformFlags=1,Xt.typeArguments=void 0,Xt.typeParameters=void 0,Xt.jsDoc=void 0,Xt.locals=void 0,Xt.nextContainer=void 0,Xt.flowNode=void 0,Xt.endFlowNode=void 0,Xt.returnFlowNode=void 0,Xt}function ft(b,P,B,ce,Qe,Xt){return b.modifiers!==P||b.name!==B||b.parameters!==ce||b.type!==Qe||b.body!==Xt?Ct(mt(P,B,ce,Qe,Xt),b):b}function Ct(b,P){return b!==P&&(b.typeParameters=P.typeParameters),V(b,P)}function le(b,P,B,ce){const Qe=Z(178);return Qe.modifiers=Ua(b),Qe.name=cc(P),Qe.parameters=U(B),Qe.body=ce,Qe.body?Qe.transformFlags=Ja(Qe.modifiers)|Yv(Qe.name)|Ja(Qe.parameters)|Tr(Qe.body)&-67108865|(Qe.type?1:0):Qe.transformFlags=1,Qe.typeArguments=void 0,Qe.typeParameters=void 0,Qe.type=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Fe(b,P,B,ce,Qe){return b.modifiers!==P||b.name!==B||b.parameters!==ce||b.body!==Qe?pt(le(P,B,ce,Qe),b):b}function pt(b,P){return b!==P&&(b.typeParameters=P.typeParameters,b.type=P.type),V(b,P)}function j(b,P,B){const ce=Z(179);return ce.typeParameters=Ua(b),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function ot(b,P,B,ce){return b.typeParameters!==P||b.parameters!==B||b.type!==ce?V(j(P,B,ce),b):b}function Rt(b,P,B){const ce=Z(180);return ce.typeParameters=Ua(b),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(b,P,B,ce){return b.typeParameters!==P||b.parameters!==B||b.type!==ce?V(Rt(P,B,ce),b):b}function _t(b,P,B){const ce=Z(181);return ce.modifiers=Ua(b),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Vt(b,P,B,ce){return b.parameters!==B||b.type!==ce||b.modifiers!==P?V(_t(P,B,ce),b):b}function yn(b,P){const B=K(204);return B.type=b,B.literal=P,B.transformFlags=1,B}function pn(b,P,B){return b.type!==P||b.literal!==B?or(yn(P,B),b):b}function _n(b){return Se(b)}function q(b,P,B){const ce=K(182);return ce.assertsModifier=b,ce.parameterName=cc(P),ce.type=B,ce.transformFlags=1,ce}function Oe(b,P,B,ce){return b.assertsModifier!==P||b.parameterName!==B||b.type!==ce?or(q(P,B,ce),b):b}function Lt(b,P){const B=K(183);return B.typeName=cc(b),B.typeArguments=P&&i().parenthesizeTypeArguments(U(P)),B.transformFlags=1,B}function L(b,P,B){return b.typeName!==P||b.typeArguments!==B?or(Lt(P,B),b):b}function _e(b,P,B){const ce=Z(184);return ce.typeParameters=Ua(b),ce.parameters=Ua(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function J(b,P,B,ce){return b.typeParameters!==P||b.parameters!==B||b.type!==ce?me(_e(P,B,ce),b):b}function me(b,P){return b!==P&&(b.modifiers=P.modifiers),V(b,P)}function Ge(...b){return b.length===4?ke(...b):b.length===3?Tt(...b):N.fail("Incorrect number of arguments specified.")}function ke(b,P,B,ce){const Qe=Z(185);return Qe.modifiers=Ua(b),Qe.typeParameters=Ua(P),Qe.parameters=Ua(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.typeArguments=void 0,Qe}function Tt(b,P,B){return ke(void 0,b,P,B)}function kt(...b){return b.length===5?en(...b):b.length===4?bn(...b):N.fail("Incorrect number of arguments specified.")}function en(b,P,B,ce,Qe){return b.modifiers!==P||b.typeParameters!==B||b.parameters!==ce||b.type!==Qe?V(Ge(P,B,ce,Qe),b):b}function bn(b,P,B,ce){return en(b,b.modifiers,P,B,ce)}function Bn(b,P){const B=K(186);return B.exprName=b,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function Hn(b,P,B){return b.exprName!==P||b.typeArguments!==B?or(Bn(P,B),b):b}function Ni(b){const P=Z(187);return P.members=U(b),P.transformFlags=1,P}function Ai(b,P){return b.members!==P?or(Ni(P),b):b}function ir(b){const P=K(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(b),P.transformFlags=1,P}function Vr(b,P){return b.elementType!==P?or(ir(P),b):b}function yo(b){const P=K(189);return P.elements=U(i().parenthesizeElementTypesOfTupleType(b)),P.transformFlags=1,P}function Ci(b,P){return b.elements!==P?or(yo(P),b):b}function Ii(b,P,B,ce){const Qe=Z(202);return Qe.dotDotDotToken=b,Qe.name=P,Qe.questionToken=B,Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe}function Jr(b,P,B,ce,Qe){return b.dotDotDotToken!==P||b.name!==B||b.questionToken!==ce||b.type!==Qe?or(Ii(P,B,ce,Qe),b):b}function xo(b){const P=K(190);return P.type=i().parenthesizeTypeOfOptionalType(b),P.transformFlags=1,P}function Dn(b,P){return b.type!==P?or(xo(P),b):b}function Fs(b){const P=K(191);return P.type=b,P.transformFlags=1,P}function Ql(b,P){return b.type!==P?or(Fs(P),b):b}function Lo(b,P,B){const ce=K(b);return ce.types=O.createNodeArray(B(P)),ce.transformFlags=1,ce}function cs(b,P,B){return b.types!==P?or(Lo(b.kind,P,B),b):b}function Vs(b){return Lo(192,b,i().parenthesizeConstituentTypesOfUnionType)}function yl(b,P){return cs(b,P,i().parenthesizeConstituentTypesOfUnionType)}function uu(b){return Lo(193,b,i().parenthesizeConstituentTypesOfIntersectionType)}function ho(b,P){return cs(b,P,i().parenthesizeConstituentTypesOfIntersectionType)}function pa(b,P,B,ce){const Qe=K(194);return Qe.checkType=i().parenthesizeCheckTypeOfConditionalType(b),Qe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),Qe.trueType=B,Qe.falseType=ce,Qe.transformFlags=1,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function du(b,P,B,ce,Qe){return b.checkType!==P||b.extendsType!==B||b.trueType!==ce||b.falseType!==Qe?or(pa(P,B,ce,Qe),b):b}function As(b){const P=K(195);return P.typeParameter=b,P.transformFlags=1,P}function La(b,P){return b.typeParameter!==P?or(As(P),b):b}function _l(b,P){const B=K(203);return B.head=b,B.templateSpans=U(P),B.transformFlags=1,B}function wf(b,P,B){return b.head!==P||b.templateSpans!==B?or(_l(P,B),b):b}function sc(b,P,B,ce,Qe=!1){const Xt=K(205);return Xt.argument=b,Xt.attributes=P,Xt.assertions&&Xt.assertions.assertClause&&Xt.attributes&&(Xt.assertions.assertClause=Xt.attributes),Xt.qualifier=B,Xt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Xt.isTypeOf=Qe,Xt.transformFlags=1,Xt}function Nl(b,P,B,ce,Qe,Xt=b.isTypeOf){return b.argument!==P||b.attributes!==B||b.qualifier!==ce||b.typeArguments!==Qe||b.isTypeOf!==Xt?or(sc(P,B,ce,Qe,Xt),b):b}function ul(b){const P=K(196);return P.type=b,P.transformFlags=1,P}function ko(b,P){return b.type!==P?or(ul(P),b):b}function nn(){const b=K(197);return b.transformFlags=1,b}function js(b,P){const B=K(198);return B.operator=b,B.type=b===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function nu(b,P){return b.type!==P?or(js(b.operator,P),b):b}function pu(b,P){const B=K(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(b),B.indexType=P,B.transformFlags=1,B}function Ap(b,P,B){return b.objectType!==P||b.indexType!==B?or(pu(P,B),b):b}function Ms(b,P,B,ce,Qe,Xt){const vr=Z(200);return vr.readonlyToken=b,vr.typeParameter=P,vr.nameType=B,vr.questionToken=ce,vr.type=Qe,vr.members=Xt&&U(Xt),vr.transformFlags=1,vr.locals=void 0,vr.nextContainer=void 0,vr}function Rc(b,P,B,ce,Qe,Xt,vr){return b.readonlyToken!==P||b.typeParameter!==B||b.nameType!==ce||b.questionToken!==Qe||b.type!==Xt||b.members!==vr?or(Ms(P,B,ce,Qe,Xt,vr),b):b}function de(b){const P=K(201);return P.literal=b,P.transformFlags=1,P}function ee(b,P){return b.literal!==P?or(de(P),b):b}function we(b){const P=K(206);return P.elements=U(b),P.transformFlags|=Ja(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function Et(b,P){return b.elements!==P?or(we(P),b):b}function un(b){const P=K(207);return P.elements=U(b),P.transformFlags|=Ja(P.elements)|1024|524288,P}function Er(b,P){return b.elements!==P?or(un(P),b):b}function yr(b,P,B,ce){const Qe=Z(208);return Qe.dotDotDotToken=b,Qe.propertyName=cc(P),Qe.name=cc(B),Qe.initializer=fx(ce),Qe.transformFlags|=Tr(Qe.dotDotDotToken)|Yv(Qe.propertyName)|Yv(Qe.name)|Tr(Qe.initializer)|(Qe.dotDotDotToken?32768:0)|1024,Qe.flowNode=void 0,Qe}function jr(b,P,B,ce,Qe){return b.propertyName!==B||b.dotDotDotToken!==P||b.name!==ce||b.initializer!==Qe?or(yr(P,B,ce,Qe),b):b}function xi(b,P){const B=K(209),ce=b&&tl(b),Qe=U(b,ce&&jc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Qe),B.multiLine=P,B.transformFlags|=Ja(B.elements),B}function Mr(b,P){return b.elements!==P?or(xi(P,b.multiLine),b):b}function $o(b,P){const B=Z(210);return B.properties=U(b),B.multiLine=P,B.transformFlags|=Ja(B.properties),B.jsDoc=void 0,B}function Tl(b,P){return b.properties!==P?or($o(P,b.multiLine),b):b}function Hc(b,P,B){const ce=Z(211);return ce.expression=b,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Tr(ce.expression)|Tr(ce.questionDotToken)|(Ve(ce.name)?Nk(ce.name):Tr(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Us(b,P){const B=Hc(i().parenthesizeLeftSideOfAccess(b,!1),void 0,cc(P));return _P(b)&&(B.transformFlags|=384),B}function gc(b,P,B){return f4(b)?qc(b,P,b.questionDotToken,oa(B,Ve)):b.expression!==P||b.name!==B?or(Us(P,B),b):b}function Ss(b,P,B){const ce=Hc(i().parenthesizeLeftSideOfAccess(b,!0),P,cc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function qc(b,P,B,ce){return N.assert(!!(b.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),b.expression!==P||b.questionDotToken!==B||b.name!==ce?or(Ss(P,B,ce),b):b}function op(b,P,B){const ce=Z(212);return ce.expression=b,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Tr(ce.expression)|Tr(ce.questionDotToken)|Tr(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Wc(b,P){const B=op(i().parenthesizeLeftSideOfAccess(b,!1),void 0,oE(P));return _P(b)&&(B.transformFlags|=384),B}function cm(b,P,B){return FV(b)?Ce(b,P,b.questionDotToken,B):b.expression!==P||b.argumentExpression!==B?or(Wc(P,B),b):b}function hd(b,P,B){const ce=op(i().parenthesizeLeftSideOfAccess(b,!0),P,oE(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Ce(b,P,B,ce){return N.assert(!!(b.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),b.expression!==P||b.questionDotToken!==B||b.argumentExpression!==ce?or(hd(P,B,ce),b):b}function Wt(b,P,B,ce){const Qe=Z(213);return Qe.expression=b,Qe.questionDotToken=P,Qe.typeArguments=B,Qe.arguments=ce,Qe.transformFlags|=Tr(Qe.expression)|Tr(Qe.questionDotToken)|Ja(Qe.typeArguments)|Ja(Qe.arguments),Qe.typeArguments&&(Qe.transformFlags|=1),zd(Qe.expression)&&(Qe.transformFlags|=16384),Qe}function Jn(b,P,B){const ce=Wt(i().parenthesizeLeftSideOfAccess(b,!1),void 0,Ua(P),i().parenthesizeExpressionsOfCommaDelimitedList(U(B)));return hP(ce.expression)&&(ce.transformFlags|=8388608),ce}function vo(b,P,B,ce){return mS(b)?na(b,P,b.questionDotToken,B,ce):b.expression!==P||b.typeArguments!==B||b.arguments!==ce?or(Jn(P,B,ce),b):b}function Qo(b,P,B,ce){const Qe=Wt(i().parenthesizeLeftSideOfAccess(b,!0),P,Ua(B),i().parenthesizeExpressionsOfCommaDelimitedList(U(ce)));return Qe.flags|=64,Qe.transformFlags|=32,Qe}function na(b,P,B,ce,Qe){return N.assert(!!(b.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),b.expression!==P||b.questionDotToken!==B||b.typeArguments!==ce||b.arguments!==Qe?or(Qo(P,B,ce,Qe),b):b}function Zl(b,P,B){const ce=Z(214);return ce.expression=i().parenthesizeExpressionOfNew(b),ce.typeArguments=Ua(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Tr(ce.expression)|Ja(ce.typeArguments)|Ja(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function yc(b,P,B,ce){return b.expression!==P||b.typeArguments!==B||b.arguments!==ce?or(Zl(P,B,ce),b):b}function dl(b,P,B){const ce=K(215);return ce.tag=i().parenthesizeLeftSideOfAccess(b,!1),ce.typeArguments=Ua(P),ce.template=B,ce.transformFlags|=Tr(ce.tag)|Ja(ce.typeArguments)|Tr(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),Yj(ce.template)&&(ce.transformFlags|=128),ce}function vl(b,P,B,ce){return b.tag!==P||b.typeArguments!==B||b.template!==ce?or(dl(P,B,ce),b):b}function Vl(b,P){const B=K(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=b,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function ec(b,P,B){return b.type!==P||b.expression!==B?or(Vl(P,B),b):b}function Jc(b){const P=K(217);return P.expression=b,P.transformFlags=Tr(P.expression),P.jsDoc=void 0,P}function ff(b,P){return b.expression!==P?or(Jc(P),b):b}function jd(b,P,B,ce,Qe,Xt,vr){const ro=Z(218);ro.modifiers=Ua(b),ro.asteriskToken=P,ro.name=cc(B),ro.typeParameters=Ua(ce),ro.parameters=U(Qe),ro.type=Xt,ro.body=vr;const qs=M_(ro.modifiers)&1024,p_=!!ro.asteriskToken,Lb=qs&&p_;return ro.transformFlags=Ja(ro.modifiers)|Tr(ro.asteriskToken)|Yv(ro.name)|Ja(ro.typeParameters)|Ja(ro.parameters)|Tr(ro.type)|Tr(ro.body)&-67108865|(Lb?128:qs?256:p_?2048:0)|(ro.typeParameters||ro.type?1:0)|4194304,ro.typeArguments=void 0,ro.jsDoc=void 0,ro.locals=void 0,ro.nextContainer=void 0,ro.flowNode=void 0,ro.endFlowNode=void 0,ro.returnFlowNode=void 0,ro}function Nd(b,P,B,ce,Qe,Xt,vr,ro){return b.name!==ce||b.modifiers!==P||b.asteriskToken!==B||b.typeParameters!==Qe||b.parameters!==Xt||b.type!==vr||b.body!==ro?V(jd(P,B,ce,Qe,Xt,vr,ro),b):b}function Of(b,P,B,ce,Qe,Xt){const vr=Z(219);vr.modifiers=Ua(b),vr.typeParameters=Ua(P),vr.parameters=U(B),vr.type=ce,vr.equalsGreaterThanToken=Qe??Se(39),vr.body=i().parenthesizeConciseBodyOfArrowFunction(Xt);const ro=M_(vr.modifiers)&1024;return vr.transformFlags=Ja(vr.modifiers)|Ja(vr.typeParameters)|Ja(vr.parameters)|Tr(vr.type)|Tr(vr.equalsGreaterThanToken)|Tr(vr.body)&-67108865|(vr.typeParameters||vr.type?1:0)|(ro?16640:0)|1024,vr.typeArguments=void 0,vr.jsDoc=void 0,vr.locals=void 0,vr.nextContainer=void 0,vr.flowNode=void 0,vr.endFlowNode=void 0,vr.returnFlowNode=void 0,vr}function U_(b,P,B,ce,Qe,Xt,vr){return b.modifiers!==P||b.typeParameters!==B||b.parameters!==ce||b.type!==Qe||b.equalsGreaterThanToken!==Xt||b.body!==vr?V(Of(P,B,ce,Qe,Xt,vr),b):b}function Nh(b){const P=K(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(b),P.transformFlags|=Tr(P.expression),P}function Kg(b,P){return b.expression!==P?or(Nh(P),b):b}function Bu(b){const P=K(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(b),P.transformFlags|=Tr(P.expression),P}function Xg(b,P){return b.expression!==P?or(Bu(P),b):b}function Ip(b){const P=K(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(b),P.transformFlags|=Tr(P.expression),P}function mg(b,P){return b.expression!==P?or(Ip(P),b):b}function Ud(b){const P=K(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(b),P.transformFlags|=Tr(P.expression)|256|128|2097152,P}function te(b,P){return b.expression!==P?or(Ud(P),b):b}function ct(b,P){const B=K(224);return B.operator=b,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Tr(B.operand),(b===46||b===47)&&Ve(B.operand)&&!sl(B.operand)&&!jg(B.operand)&&(B.transformFlags|=268435456),B}function zt(b,P){return b.operand!==P?or(ct(b.operator,P),b):b}function jt(b,P){const B=K(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(b),B.transformFlags|=Tr(B.operand),Ve(B.operand)&&!sl(B.operand)&&!jg(B.operand)&&(B.transformFlags|=268435456),B}function F(b,P){return b.operand!==P?or(jt(P,b.operator),b):b}function Te(b,P,B){const ce=Z(226),Qe=FM(P),Xt=Qe.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Xt,b),ce.operatorToken=Qe,ce.right=i().parenthesizeRightSideOfBinary(Xt,ce.left,B),ce.transformFlags|=Tr(ce.left)|Tr(ce.operatorToken)|Tr(ce.right),Xt===61?ce.transformFlags|=32:Xt===64?Oa(ce.left)?ce.transformFlags|=5248|st(ce.left):md(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Xt===43||Xt===68?ce.transformFlags|=512:zC(Xt)&&(ce.transformFlags|=16),Xt===103&&Ji(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(b){return nw(b)?65536:0}function Jt(b,P,B,ce){return b.left!==P||b.operatorToken!==B||b.right!==ce?or(Te(P,B,ce),b):b}function rr(b,P,B,ce,Qe){const Xt=K(227);return Xt.condition=i().parenthesizeConditionOfConditionalExpression(b),Xt.questionToken=P??Se(58),Xt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Xt.colonToken=ce??Se(59),Xt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Qe),Xt.transformFlags|=Tr(Xt.condition)|Tr(Xt.questionToken)|Tr(Xt.whenTrue)|Tr(Xt.colonToken)|Tr(Xt.whenFalse),Xt}function oi(b,P,B,ce,Qe,Xt){return b.condition!==P||b.questionToken!==B||b.whenTrue!==ce||b.colonToken!==Qe||b.whenFalse!==Xt?or(rr(P,B,ce,Qe,Xt),b):b}function $r(b,P){const B=K(228);return B.head=b,B.templateSpans=U(P),B.transformFlags|=Tr(B.head)|Ja(B.templateSpans)|1024,B}function io(b,P,B){return b.head!==P||b.templateSpans!==B?or($r(P,B),b):b}function Fa(b,P,B,ce=0){N.assert(!(ce&-7177),"Unsupported template flags.");let Qe;if(B!==void 0&&B!==P&&(Qe=lGe(b,B),typeof Qe=="object"))return N.fail("Invalid raw text");if(P===void 0){if(Qe===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=Qe}else Qe!==void 0&&N.assert(P===Qe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function za(b){let P=1024;return b&&(P|=128),P}function Ol(b,P,B,ce){const Qe=At(b);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=za(Qe.templateFlags),Qe}function fu(b,P,B,ce){const Qe=Z(b);return Qe.text=P,Qe.rawText=B,Qe.templateFlags=ce&7176,Qe.transformFlags=za(Qe.templateFlags),Qe}function Dc(b,P,B,ce){return b===15?fu(b,P,B,ce):Ol(b,P,B,ce)}function xp(b,P,B){return b=Fa(16,b,P,B),Dc(16,b,P,B)}function Hd(b,P,B){return b=Fa(16,b,P,B),Dc(17,b,P,B)}function pb(b,P,B){return b=Fa(16,b,P,B),Dc(18,b,P,B)}function us(b,P,B){return b=Fa(16,b,P,B),fu(15,b,P,B)}function km(b,P){N.assert(!b||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");const B=K(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=b,B.transformFlags|=Tr(B.expression)|Tr(B.asteriskToken)|1024|128|1048576,B}function wm(b,P,B){return b.expression!==B||b.asteriskToken!==P?or(km(P,B),b):b}function Ui(b){const P=K(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(b),P.transformFlags|=Tr(P.expression)|1024|32768,P}function Yg(b,P){return b.expression!==P?or(Ui(P),b):b}function rv(b,P,B,ce,Qe){const Xt=Z(231);return Xt.modifiers=Ua(b),Xt.name=cc(P),Xt.typeParameters=Ua(B),Xt.heritageClauses=Ua(ce),Xt.members=U(Qe),Xt.transformFlags|=Ja(Xt.modifiers)|Yv(Xt.name)|Ja(Xt.typeParameters)|Ja(Xt.heritageClauses)|Ja(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.jsDoc=void 0,Xt}function Om(b,P,B,ce,Qe,Xt){return b.modifiers!==P||b.name!==B||b.typeParameters!==ce||b.heritageClauses!==Qe||b.members!==Xt?or(rv(P,B,ce,Qe,Xt),b):b}function I1(){return K(232)}function x1(b,P){const B=K(233);return B.expression=i().parenthesizeLeftSideOfAccess(b,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Tr(B.expression)|Ja(B.typeArguments)|1024,B}function mf(b,P,B){return b.expression!==P||b.typeArguments!==B?or(x1(P,B),b):b}function H_(b,P){const B=K(234);return B.expression=b,B.type=P,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function _f(b,P,B){return b.expression!==P||b.type!==B?or(H_(P,B),b):b}function $g(b){const P=K(235);return P.expression=i().parenthesizeLeftSideOfAccess(b,!1),P.transformFlags|=Tr(P.expression)|1,P}function ze(b,P){return _4(b)?vn(b,P):b.expression!==P?or($g(P),b):b}function Ze(b,P){const B=K(238);return B.expression=b,B.type=P,B.transformFlags|=Tr(B.expression)|Tr(B.type)|1,B}function Mt(b,P,B){return b.expression!==P||b.type!==B?or(Ze(P,B),b):b}function Ut(b){const P=K(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(b,!0),P.transformFlags|=Tr(P.expression)|1,P}function vn(b,P){return N.assert(!!(b.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),b.expression!==P?or(Ut(P),b):b}function Yn(b,P){const B=K(236);switch(B.keywordToken=b,B.name=P,B.transformFlags|=Tr(B.name),b){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return N.assertNever(b)}return B.flowNode=void 0,B}function gn(b,P){return b.name!==P?or(Yn(b.keywordToken,P),b):b}function $n(b,P){const B=K(239);return B.expression=b,B.literal=P,B.transformFlags|=Tr(B.expression)|Tr(B.literal)|1024,B}function fi(b,P,B){return b.expression!==P||b.literal!==B?or($n(P,B),b):b}function cr(){const b=K(240);return b.transformFlags|=1024,b}function ri(b,P){const B=K(241);return B.statements=U(b),B.multiLine=P,B.transformFlags|=Ja(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function fr(b,P){return b.statements!==P?or(ri(P,b.multiLine),b):b}function Zo(b,P){const B=K(243);return B.modifiers=Ua(b),B.declarationList=To(P)?ap(P):P,B.transformFlags|=Ja(B.modifiers)|Tr(B.declarationList),M_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function Ka(b,P,B){return b.modifiers!==P||b.declarationList!==B?or(Zo(P,B),b):b}function Zu(){const b=K(242);return b.jsDoc=void 0,b}function mu(b){const P=K(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(b),P.transformFlags|=Tr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function Qg(b,P){return b.expression!==P?or(mu(P),b):b}function V0(b,P,B){const ce=K(245);return ce.expression=b,ce.thenStatement=Mb(P),ce.elseStatement=Mb(B),ce.transformFlags|=Tr(ce.expression)|Tr(ce.thenStatement)|Tr(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function HI(b,P,B,ce){return b.expression!==P||b.thenStatement!==B||b.elseStatement!==ce?or(V0(P,B,ce),b):b}function j0(b,P){const B=K(246);return B.statement=Mb(b),B.expression=P,B.transformFlags|=Tr(B.statement)|Tr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function $D(b,P,B){return b.statement!==P||b.expression!==B?or(j0(P,B),b):b}function QD(b,P){const B=K(247);return B.expression=b,B.statement=Mb(P),B.transformFlags|=Tr(B.expression)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function ZD(b,P,B){return b.expression!==P||b.statement!==B?or(QD(P,B),b):b}function mT(b,P,B,ce){const Qe=K(248);return Qe.initializer=b,Qe.condition=P,Qe.incrementor=B,Qe.statement=Mb(ce),Qe.transformFlags|=Tr(Qe.initializer)|Tr(Qe.condition)|Tr(Qe.incrementor)|Tr(Qe.statement),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function R1(b,P,B,ce,Qe){return b.initializer!==P||b.condition!==B||b.incrementor!==ce||b.statement!==Qe?or(mT(P,B,ce,Qe),b):b}function qI(b,P,B){const ce=K(249);return ce.initializer=b,ce.expression=P,ce.statement=Mb(B),ce.transformFlags|=Tr(ce.initializer)|Tr(ce.expression)|Tr(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function eN(b,P,B,ce){return b.initializer!==P||b.expression!==B||b.statement!==ce?or(qI(P,B,ce),b):b}function JI(b,P,B,ce){const Qe=K(250);return Qe.awaitModifier=b,Qe.initializer=P,Qe.expression=i().parenthesizeExpressionForDisallowedComma(B),Qe.statement=Mb(ce),Qe.transformFlags|=Tr(Qe.awaitModifier)|Tr(Qe.initializer)|Tr(Qe.expression)|Tr(Qe.statement)|1024,b&&(Qe.transformFlags|=128),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function KI(b,P,B,ce,Qe){return b.awaitModifier!==P||b.initializer!==B||b.expression!==ce||b.statement!==Qe?or(JI(P,B,ce,Qe),b):b}function XI(b){const P=K(251);return P.label=cc(b),P.transformFlags|=Tr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function YI(b,P){return b.label!==P?or(XI(P),b):b}function _T(b){const P=K(252);return P.label=cc(b),P.transformFlags|=Tr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function $I(b,P){return b.label!==P?or(_T(P),b):b}function D1(b){const P=K(253);return P.expression=b,P.transformFlags|=Tr(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function N1(b,P){return b.expression!==P?or(D1(P),b):b}function fb(b,P){const B=K(254);return B.expression=b,B.statement=Mb(P),B.transformFlags|=Tr(B.expression)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function mb(b,P,B){return b.expression!==P||b.statement!==B?or(fb(P,B),b):b}function _g(b,P){const B=K(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(b),B.caseBlock=P,B.transformFlags|=Tr(B.expression)|Tr(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function U0(b,P,B){return b.expression!==P||b.caseBlock!==B?or(_g(P,B),b):b}function ts(b,P){const B=K(256);return B.label=cc(b),B.statement=Mb(P),B.transformFlags|=Tr(B.label)|Tr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function hT(b,P,B){return b.label!==P||b.statement!==B?or(ts(P,B),b):b}function tN(b){const P=K(257);return P.expression=b,P.transformFlags|=Tr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function H0(b,P){return b.expression!==P?or(tN(P),b):b}function Zg(b,P,B){const ce=K(258);return ce.tryBlock=b,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Tr(ce.tryBlock)|Tr(ce.catchClause)|Tr(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function Ch(b,P,B,ce){return b.tryBlock!==P||b.catchClause!==B||b.finallyBlock!==ce?or(Zg(P,B,ce),b):b}function Wf(){const b=K(259);return b.jsDoc=void 0,b.flowNode=void 0,b}function qd(b,P,B,ce){const Qe=Z(260);return Qe.name=cc(b),Qe.exclamationToken=P,Qe.type=B,Qe.initializer=fx(ce),Qe.transformFlags|=Yv(Qe.name)|Tr(Qe.initializer)|(Qe.exclamationToken??Qe.type?1:0),Qe.jsDoc=void 0,Qe}function Rp(b,P,B,ce,Qe){return b.name!==P||b.type!==ce||b.exclamationToken!==B||b.initializer!==Qe?or(qd(P,B,ce,Qe),b):b}function ap(b,P=0){const B=K(261);return B.flags|=P&7,B.declarations=U(b),B.transformFlags|=Ja(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function iv(b,P){return b.declarations!==P?or(ap(P,b.flags),b):b}function gT(b,P,B,ce,Qe,Xt,vr){const ro=Z(262);if(ro.modifiers=Ua(b),ro.asteriskToken=P,ro.name=cc(B),ro.typeParameters=Ua(ce),ro.parameters=U(Qe),ro.type=Xt,ro.body=vr,!ro.body||M_(ro.modifiers)&128)ro.transformFlags=1;else{const qs=M_(ro.modifiers)&1024,p_=!!ro.asteriskToken,Lb=qs&&p_;ro.transformFlags=Ja(ro.modifiers)|Tr(ro.asteriskToken)|Yv(ro.name)|Ja(ro.typeParameters)|Ja(ro.parameters)|Tr(ro.type)|Tr(ro.body)&-67108865|(Lb?128:qs?256:p_?2048:0)|(ro.typeParameters||ro.type?1:0)|4194304}return ro.typeArguments=void 0,ro.jsDoc=void 0,ro.locals=void 0,ro.nextContainer=void 0,ro.endFlowNode=void 0,ro.returnFlowNode=void 0,ro}function nN(b,P,B,ce,Qe,Xt,vr,ro){return b.modifiers!==P||b.asteriskToken!==B||b.name!==ce||b.typeParameters!==Qe||b.parameters!==Xt||b.type!==vr||b.body!==ro?QI(gT(P,B,ce,Qe,Xt,vr,ro),b):b}function QI(b,P){return b!==P&&b.modifiers===P.modifiers&&(b.modifiers=P.modifiers),V(b,P)}function _b(b,P,B,ce,Qe){const Xt=Z(263);return Xt.modifiers=Ua(b),Xt.name=cc(P),Xt.typeParameters=Ua(B),Xt.heritageClauses=Ua(ce),Xt.members=U(Qe),M_(Xt.modifiers)&128?Xt.transformFlags=1:(Xt.transformFlags|=Ja(Xt.modifiers)|Yv(Xt.name)|Ja(Xt.typeParameters)|Ja(Xt.heritageClauses)|Ja(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.transformFlags&8192&&(Xt.transformFlags|=1)),Xt.jsDoc=void 0,Xt}function q0(b,P,B,ce,Qe,Xt){return b.modifiers!==P||b.name!==B||b.typeParameters!==ce||b.heritageClauses!==Qe||b.members!==Xt?or(_b(P,B,ce,Qe,Xt),b):b}function ZI(b,P,B,ce,Qe){const Xt=Z(264);return Xt.modifiers=Ua(b),Xt.name=cc(P),Xt.typeParameters=Ua(B),Xt.heritageClauses=Ua(ce),Xt.members=U(Qe),Xt.transformFlags=1,Xt.jsDoc=void 0,Xt}function vc(b,P,B,ce,Qe,Xt){return b.modifiers!==P||b.name!==B||b.typeParameters!==ce||b.heritageClauses!==Qe||b.members!==Xt?or(ZI(P,B,ce,Qe,Xt),b):b}function ov(b,P,B,ce){const Qe=Z(265);return Qe.modifiers=Ua(b),Qe.name=cc(P),Qe.typeParameters=Ua(B),Qe.type=ce,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function ex(b,P,B,ce,Qe){return b.modifiers!==P||b.name!==B||b.typeParameters!==ce||b.type!==Qe?or(ov(P,B,ce,Qe),b):b}function a_(b,P,B){const ce=Z(266);return ce.modifiers=Ua(b),ce.name=cc(P),ce.members=U(B),ce.transformFlags|=Ja(ce.modifiers)|Tr(ce.name)|Ja(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function yT(b,P,B,ce){return b.modifiers!==P||b.name!==B||b.members!==ce?or(a_(P,B,ce),b):b}function qe(b,P,B,ce=0){const Qe=Z(267);return Qe.modifiers=Ua(b),Qe.flags|=ce&2088,Qe.name=P,Qe.body=B,M_(Qe.modifiers)&128?Qe.transformFlags=1:Qe.transformFlags|=Ja(Qe.modifiers)|Tr(Qe.name)|Tr(Qe.body)|1,Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function s_(b,P,B,ce){return b.modifiers!==P||b.name!==B||b.body!==ce?or(qe(P,B,ce,b.flags),b):b}function _u(b){const P=K(268);return P.statements=U(b),P.transformFlags|=Ja(P.statements),P.jsDoc=void 0,P}function J0(b,P){return b.statements!==P?or(_u(P),b):b}function tx(b){const P=K(269);return P.clauses=U(b),P.transformFlags|=Ja(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function hb(b,P){return b.clauses!==P?or(tx(P),b):b}function av(b){const P=Z(270);return P.name=cc(b),P.transformFlags|=Nk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function sv(b,P){return b.name!==P?CM(av(P),b):b}function CM(b,P){return b!==P&&(b.modifiers=P.modifiers),or(b,P)}function Xa(b,P,B,ce){const Qe=Z(271);return Qe.modifiers=Ua(b),Qe.name=cc(B),Qe.isTypeOnly=P,Qe.moduleReference=ce,Qe.transformFlags|=Ja(Qe.modifiers)|Nk(Qe.name)|Tr(Qe.moduleReference),Th(Qe.moduleReference)||(Qe.transformFlags|=1),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function l_(b,P,B,ce,Qe){return b.modifiers!==P||b.isTypeOnly!==B||b.name!==ce||b.moduleReference!==Qe?or(Xa(P,B,ce,Qe),b):b}function vT(b,P,B,ce){const Qe=K(272);return Qe.modifiers=Ua(b),Qe.importClause=P,Qe.moduleSpecifier=B,Qe.attributes=Qe.assertClause=ce,Qe.transformFlags|=Tr(Qe.importClause)|Tr(Qe.moduleSpecifier),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function bT(b,P,B,ce,Qe){return b.modifiers!==P||b.importClause!==B||b.moduleSpecifier!==ce||b.attributes!==Qe?or(vT(P,B,ce,Qe),b):b}function K0(b,P,B){const ce=Z(273);return ce.isTypeOnly=b,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Tr(ce.name)|Tr(ce.namedBindings),b&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function ET(b,P,B,ce){return b.isTypeOnly!==P||b.name!==B||b.namedBindings!==ce?or(K0(P,B,ce),b):b}function um(b,P){const B=K(300);return B.elements=U(b),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function dm(b,P,B){return b.elements!==P||b.multiLine!==B?or(um(P,B),b):b}function ey(b,P){const B=K(301);return B.name=b,B.value=P,B.transformFlags|=4,B}function nx(b,P,B){return b.name!==P||b.value!==B?or(ey(P,B),b):b}function c_(b,P){const B=K(302);return B.assertClause=b,B.multiLine=P,B}function rN(b,P,B){return b.assertClause!==P||b.multiLine!==B?or(c_(P,B),b):b}function C1(b,P,B){const ce=K(300);return ce.token=B??118,ce.elements=U(b),ce.multiLine=P,ce.transformFlags|=4,ce}function Xi(b,P,B){return b.elements!==P||b.multiLine!==B?or(C1(P,B,b.token),b):b}function ei(b,P){const B=K(301);return B.name=b,B.value=P,B.transformFlags|=4,B}function Ph(b,P,B){return b.name!==P||b.value!==B?or(ei(P,B),b):b}function Jd(b){const P=Z(274);return P.name=b,P.transformFlags|=Tr(P.name),P.transformFlags&=-67108865,P}function PM(b,P){return b.name!==P?or(Jd(P),b):b}function ty(b){const P=Z(280);return P.name=b,P.transformFlags|=Tr(P.name)|32,P.transformFlags&=-67108865,P}function MM(b,P){return b.name!==P?or(ty(P),b):b}function gb(b){const P=K(275);return P.elements=U(b),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function bl(b,P){return b.elements!==P?or(gb(P),b):b}function Up(b,P,B){const ce=Z(276);return ce.isTypeOnly=b,ce.propertyName=P,ce.name=B,ce.transformFlags|=Tr(ce.propertyName)|Tr(ce.name),ce.transformFlags&=-67108865,ce}function hg(b,P,B,ce){return b.isTypeOnly!==P||b.propertyName!==B||b.name!==ce?or(Up(P,B,ce),b):b}function pm(b,P,B){const ce=Z(277);return ce.modifiers=Ua(b),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=Ja(ce.modifiers)|Tr(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function yb(b,P,B){return b.modifiers!==P||b.expression!==B?or(pm(P,b.isExportEquals,B),b):b}function Wm(b,P,B,ce,Qe){const Xt=Z(278);return Xt.modifiers=Ua(b),Xt.isTypeOnly=P,Xt.exportClause=B,Xt.moduleSpecifier=ce,Xt.attributes=Xt.assertClause=Qe,Xt.transformFlags|=Ja(Xt.modifiers)|Tr(Xt.exportClause)|Tr(Xt.moduleSpecifier),Xt.transformFlags&=-67108865,Xt.jsDoc=void 0,Xt}function ny(b,P,B,ce,Qe,Xt){return b.modifiers!==P||b.isTypeOnly!==B||b.exportClause!==ce||b.moduleSpecifier!==Qe||b.attributes!==Xt?P1(Wm(P,B,ce,Qe,Xt),b):b}function P1(b,P){return b!==P&&b.modifiers===P.modifiers&&(b.modifiers=P.modifiers),or(b,P)}function ST(b){const P=K(279);return P.elements=U(b),P.transformFlags|=Ja(P.elements),P.transformFlags&=-67108865,P}function gg(b,P){return b.elements!==P?or(ST(P),b):b}function rx(b,P,B){const ce=K(281);return ce.isTypeOnly=b,ce.propertyName=cc(P),ce.name=cc(B),ce.transformFlags|=Tr(ce.propertyName)|Tr(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function yg(b,P,B,ce){return b.isTypeOnly!==P||b.propertyName!==B||b.name!==ce?or(rx(P,B,ce),b):b}function q_(){const b=Z(282);return b.jsDoc=void 0,b}function lv(b){const P=K(283);return P.expression=b,P.transformFlags|=Tr(P.expression),P.transformFlags&=-67108865,P}function iN(b,P){return b.expression!==P?or(lv(P),b):b}function oN(b){return K(b)}function aN(b,P,B=!1){const ce=TT(b,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function TT(b,P){const B=K(b);return B.type=P,B}function Zs(b,P,B){return P.type!==B?or(aN(b,B,P.postfix),P):P}function M1(b,P,B){return P.type!==B?or(TT(b,B),P):P}function AT(b,P){const B=Z(324);return B.parameters=Ua(b),B.type=P,B.transformFlags=Ja(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function Fm(b,P,B){return b.parameters!==P||b.type!==B?or(AT(P,B),b):b}function vb(b,P=!1){const B=Z(329);return B.jsDocPropertyTags=Ua(b),B.isArrayType=P,B}function sN(b,P,B){return b.jsDocPropertyTags!==P||b.isArrayType!==B?or(vb(P,B),b):b}function IT(b){const P=K(316);return P.type=b,P}function LM(b,P){return b.type!==P?or(IT(P),b):b}function hr(b,P,B){const ce=Z(330);return ce.typeParameters=Ua(b),ce.parameters=U(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function ru(b,P,B,ce){return b.typeParameters!==P||b.parameters!==B||b.type!==ce?or(hr(P,B,ce),b):b}function to(b){const P=ZU(b.kind);return b.tagName.escapedText===hl(P)?b.tagName:Ne(P)}function hf(b,P,B){const ce=K(b);return ce.tagName=P,ce.comment=B,ce}function cv(b,P,B){const ce=Z(b);return ce.tagName=P,ce.comment=B,ce}function J_(b,P,B,ce){const Qe=hf(352,b??Ne("template"),ce);return Qe.constraint=P,Qe.typeParameters=U(B),Qe}function ur(b,P=to(b),B,ce,Qe){return b.tagName!==P||b.constraint!==B||b.typeParameters!==ce||b.comment!==Qe?or(J_(P,B,ce,Qe),b):b}function xT(b,P,B,ce){const Qe=cv(353,b??Ne("typedef"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=FH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function X0(b,P=to(b),B,ce,Qe){return b.tagName!==P||b.typeExpression!==B||b.fullName!==ce||b.comment!==Qe?or(xT(P,B,ce,Qe),b):b}function Kc(b,P,B,ce,Qe,Xt){const vr=cv(348,b??Ne("param"),Xt);return vr.typeExpression=ce,vr.name=P,vr.isNameFirst=!!Qe,vr.isBracketed=B,vr}function Mh(b,P=to(b),B,ce,Qe,Xt,vr){return b.tagName!==P||b.name!==B||b.isBracketed!==ce||b.typeExpression!==Qe||b.isNameFirst!==Xt||b.comment!==vr?or(Kc(P,B,ce,Qe,Xt,vr),b):b}function zm(b,P,B,ce,Qe,Xt){const vr=cv(355,b??Ne("prop"),Xt);return vr.typeExpression=ce,vr.name=P,vr.isNameFirst=!!Qe,vr.isBracketed=B,vr}function L1(b,P=to(b),B,ce,Qe,Xt,vr){return b.tagName!==P||b.name!==B||b.isBracketed!==ce||b.typeExpression!==Qe||b.isNameFirst!==Xt||b.comment!==vr?or(zm(P,B,ce,Qe,Xt,vr),b):b}function k1(b,P,B,ce){const Qe=cv(345,b??Ne("callback"),ce);return Qe.typeExpression=P,Qe.fullName=B,Qe.name=FH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function bb(b,P=to(b),B,ce,Qe){return b.tagName!==P||b.typeExpression!==B||b.fullName!==ce||b.comment!==Qe?or(k1(P,B,ce,Qe),b):b}function ry(b,P,B){const ce=hf(346,b??Ne("overload"),B);return ce.typeExpression=P,ce}function RT(b,P=to(b),B,ce){return b.tagName!==P||b.typeExpression!==B||b.comment!==ce?or(ry(P,B,ce),b):b}function Bm(b,P,B){const ce=hf(335,b??Ne("augments"),B);return ce.class=P,ce}function Y0(b,P=to(b),B,ce){return b.tagName!==P||b.class!==B||b.comment!==ce?or(Bm(P,B,ce),b):b}function vg(b,P,B){const ce=hf(336,b??Ne("implements"),B);return ce.class=P,ce}function Eb(b,P,B){const ce=hf(354,b??Ne("see"),B);return ce.name=P,ce}function ix(b,P,B,ce){return b.tagName!==P||b.name!==B||b.comment!==ce?or(Eb(P,B,ce),b):b}function $0(b){const P=K(317);return P.name=b,P}function lN(b,P){return b.name!==P?or($0(P),b):b}function w1(b,P){const B=K(318);return B.left=b,B.right=P,B.transformFlags|=Tr(B.left)|Tr(B.right),B}function DT(b,P,B){return b.left!==P||b.right!==B?or(w1(P,B),b):b}function Hp(b,P){const B=K(331);return B.name=b,B.text=P,B}function NT(b,P,B){return b.name!==P?or(Hp(P,B),b):b}function jl(b,P){const B=K(332);return B.name=b,B.text=P,B}function Fc(b,P,B){return b.name!==P?or(jl(P,B),b):b}function CT(b,P){const B=K(333);return B.name=b,B.text=P,B}function Au(b,P,B){return b.name!==P?or(CT(P,B),b):b}function sp(b,P=to(b),B,ce){return b.tagName!==P||b.class!==B||b.comment!==ce?or(vg(P,B,ce),b):b}function Q0(b,P,B){return hf(b,P??Ne(ZU(b)),B)}function Ff(b,P,B=to(P),ce){return P.tagName!==B||P.comment!==ce?or(Q0(b,B,ce),P):P}function Sb(b,P,B,ce){const Qe=hf(b,P??Ne(ZU(b)),ce);return Qe.typeExpression=B,Qe}function Tb(b,P,B=to(P),ce,Qe){return P.tagName!==B||P.typeExpression!==ce||P.comment!==Qe?or(Sb(b,B,ce,Qe),P):P}function iu(b,P){return hf(334,b,P)}function ox(b,P,B){return b.tagName!==P||b.comment!==B?or(iu(P,B),b):b}function qp(b,P,B){const ce=cv(347,b??Ne(ZU(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function PT(b,P=to(b),B,ce){return b.tagName!==P||b.typeExpression!==B||b.comment!==ce?or(qp(P,B,ce),b):b}function MT(b){const P=K(328);return P.text=b,P}function Hs(b,P){return b.text!==P?or(MT(P),b):b}function cN(b,P){const B=K(327);return B.comment=b,B.tags=Ua(P),B}function Z0(b,P,B){return b.comment!==P||b.tags!==B?or(cN(P,B),b):b}function O1(b,P,B){const ce=K(284);return ce.openingElement=b,ce.children=U(P),ce.closingElement=B,ce.transformFlags|=Tr(ce.openingElement)|Ja(ce.children)|Tr(ce.closingElement)|2,ce}function kM(b,P,B,ce){return b.openingElement!==P||b.children!==B||b.closingElement!==ce?or(O1(P,B,ce),b):b}function gd(b,P,B){const ce=K(285);return ce.tagName=b,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Tr(ce.tagName)|Ja(ce.typeArguments)|Tr(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function iy(b,P,B,ce){return b.tagName!==P||b.typeArguments!==B||b.attributes!==ce?or(gd(P,B,ce),b):b}function K_(b,P,B){const ce=K(286);return ce.tagName=b,ce.typeArguments=Ua(P),ce.attributes=B,ce.transformFlags|=Tr(ce.tagName)|Ja(ce.typeArguments)|Tr(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function ax(b,P,B,ce){return b.tagName!==P||b.typeArguments!==B||b.attributes!==ce?or(K_(P,B,ce),b):b}function Dp(b){const P=K(287);return P.tagName=b,P.transformFlags|=Tr(P.tagName)|2,P}function sx(b,P){return b.tagName!==P?or(Dp(P),b):b}function lp(b,P,B){const ce=K(288);return ce.openingFragment=b,ce.children=U(P),ce.closingFragment=B,ce.transformFlags|=Tr(ce.openingFragment)|Ja(ce.children)|Tr(ce.closingFragment)|2,ce}function lx(b,P,B,ce){return b.openingFragment!==P||b.children!==B||b.closingFragment!==ce?or(lp(P,B,ce),b):b}function uv(b,P){const B=K(12);return B.text=b,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function LT(b,P,B){return b.text!==P||b.containsOnlyTriviaWhiteSpaces!==B?or(uv(P,B),b):b}function uN(){const b=K(289);return b.transformFlags|=2,b}function dN(){const b=K(290);return b.transformFlags|=2,b}function kT(b,P){const B=Z(291);return B.name=b,B.initializer=P,B.transformFlags|=Tr(B.name)|Tr(B.initializer)|2,B}function pN(b,P,B){return b.name!==P||b.initializer!==B?or(kT(P,B),b):b}function Ab(b){const P=Z(292);return P.properties=U(b),P.transformFlags|=Ja(P.properties)|2,P}function Np(b,P){return b.properties!==P?or(Ab(P),b):b}function Lh(b){const P=K(293);return P.expression=b,P.transformFlags|=Tr(P.expression)|2,P}function fN(b,P){return b.expression!==P?or(Lh(P),b):b}function wT(b,P){const B=K(294);return B.dotDotDotToken=b,B.expression=P,B.transformFlags|=Tr(B.dotDotDotToken)|Tr(B.expression)|2,B}function rs(b,P){return b.expression!==P?or(wT(b.dotDotDotToken,P),b):b}function Ir(b,P){const B=K(295);return B.namespace=b,B.name=P,B.transformFlags|=Tr(B.namespace)|Tr(B.name)|2,B}function gf(b,P,B){return b.namespace!==P||b.name!==B?or(Ir(P,B),b):b}function Cd(b,P){const B=K(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(b),B.statements=U(P),B.transformFlags|=Tr(B.expression)|Ja(B.statements),B.jsDoc=void 0,B}function W1(b,P,B){return b.expression!==P||b.statements!==B?or(Cd(P,B),b):b}function mN(b){const P=K(297);return P.statements=U(b),P.transformFlags=Ja(P.statements),P}function eE(b,P){return b.statements!==P?or(mN(P),b):b}function F1(b,P){const B=K(298);switch(B.token=b,B.types=U(P),B.transformFlags|=Ja(B.types),b){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return N.assertNever(b)}return B}function OT(b,P){return b.types!==P?or(F1(b.token,P),b):b}function bg(b,P){const B=K(299);return B.variableDeclaration=zM(b),B.block=P,B.transformFlags|=Tr(B.variableDeclaration)|Tr(B.block)|(b?0:64),B.locals=void 0,B.nextContainer=void 0,B}function u_(b,P,B){return b.variableDeclaration!==P||b.block!==B?or(bg(P,B),b):b}function yf(b,P){const B=Z(303);return B.name=cc(b),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Yv(B.name)|Tr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Gm(b,P,B){return b.name!==P||b.initializer!==B?oy(yf(P,B),b):b}function oy(b,P){return b!==P&&(b.modifiers=P.modifiers,b.questionToken=P.questionToken,b.exclamationToken=P.exclamationToken),or(b,P)}function Eg(b,P){const B=Z(304);return B.name=cc(b),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Nk(B.name)|Tr(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Sg(b,P,B){return b.name!==P||b.objectAssignmentInitializer!==B?cx(Eg(P,B),b):b}function cx(b,P){return b!==P&&(b.modifiers=P.modifiers,b.questionToken=P.questionToken,b.exclamationToken=P.exclamationToken,b.equalsToken=P.equalsToken),or(b,P)}function lc(b){const P=Z(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(b),P.transformFlags|=Tr(P.expression)|128|65536,P.jsDoc=void 0,P}function _N(b,P){return b.expression!==P?or(lc(P),b):b}function zf(b,P){const B=Z(306);return B.name=cc(b),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Tr(B.name)|Tr(B.initializer)|1,B.jsDoc=void 0,B}function kh(b,P,B){return b.name!==P||b.initializer!==B?or(zf(P,B),b):b}function vf(b,P,B){const ce=t.createBaseSourceFileNode(312);return ce.statements=U(b),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=Ja(ce.statements)|Tr(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function z1(b){const P=Object.create(b.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=b,P}function tE(b){const P=z1(b.redirectInfo);return P.flags|=b.flags&-17,P.fileName=b.fileName,P.path=b.path,P.resolvedPath=b.resolvedPath,P.originalFileName=b.originalFileName,P.packageJsonLocations=b.packageJsonLocations,P.packageJsonScope=b.packageJsonScope,P.emitNode=void 0,P}function ux(b){const P=t.createBaseSourceFileNode(312);P.flags|=b.flags&-17;for(const B in b)if(!(xs(P,B)||!xs(b,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=b[B]}return P}function WT(b){const P=b.redirectInfo?tE(b):ux(b);return r(P,b),P}function bf(b,P,B,ce,Qe,Xt,vr){const ro=WT(b);return ro.statements=U(P),ro.isDeclarationFile=B,ro.referencedFiles=ce,ro.typeReferenceDirectives=Qe,ro.hasNoDefaultLib=Xt,ro.libReferenceDirectives=vr,ro.transformFlags=Ja(ro.statements)|Tr(ro.endOfFileToken),ro}function Ls(b,P,B=b.isDeclarationFile,ce=b.referencedFiles,Qe=b.typeReferenceDirectives,Xt=b.hasNoDefaultLib,vr=b.libReferenceDirectives){return b.statements!==P||b.isDeclarationFile!==B||b.referencedFiles!==ce||b.typeReferenceDirectives!==Qe||b.hasNoDefaultLib!==Xt||b.libReferenceDirectives!==vr?or(bf(b,P,B,ce,Qe,Xt,vr),b):b}function B1(b,P=et){const B=K(313);return B.prepends=P,B.sourceFiles=b,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function G1(b,P,B=et){return b.sourceFiles!==P||b.prepends!==B?or(B1(P,B),b):b}function ay(b,P,B){const ce=K(314);return ce.prologues=b,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=Qe=>bs(ce,Qe),ce}function Ib(b,P){const B=K(b);return B.data=P,B}function nE(b){return Ib(307,b)}function D(b,P){const B=Ib(308,b);return B.texts=P,B}function ae(b,P){return Ib(P?310:309,b)}function ht(b){const P=K(311);return P.data=b.data,P.section=b,P}function on(){const b=K(315);return b.javascriptText="",b.declarationText="",b}function wr(b,P=!1,B){const ce=K(237);return ce.type=b,ce.isSpread=P,ce.tupleNameSource=B,ce}function ki(b){const P=K(358);return P._children=b,P}function gi(b){const P=K(359);return P.original=b,dt(P,b),P}function no(b,P){const B=K(360);return B.expression=b,B.original=P,B.transformFlags|=Tr(B.expression)|1,dt(B,P),B}function ya(b,P){return b.expression!==P?or(no(P,b.original),b):b}function ed(b){if($s(b)&&!lC(b)&&!b.original&&!b.emitNode&&!b.id){if(yP(b))return b.elements;if(mr(b)&&dae(b.operatorToken))return[b.left,b.right]}return b}function Pd(b){const P=K(361);return P.elements=U(ym(b,ed)),P.transformFlags|=Ja(P.elements),P}function Bf(b,P){return b.elements!==P?or(Pd(P),b):b}function xb(b,P){const B=K(362);return B.expression=b,B.thisArg=P,B.transformFlags|=Tr(B.expression)|Tr(B.thisArg),B}function vi(b,P,B){return b.expression!==P||b.thisArg!==B?or(xb(P,B),b):b}function wh(b){const P=oe(b.escapedText);return P.flags|=b.flags&-17,P.transformFlags=b.transformFlags,r(P,b),kk(P,{...b.emitNode.autoGenerate}),P}function Un(b){const P=oe(b.escapedText);P.flags|=b.flags&-17,P.jsDoc=b.jsDoc,P.flowNode=b.flowNode,P.symbol=b.symbol,P.transformFlags=b.transformFlags,r(P,b);const B=WS(b);return B&&Uy(P,B),P}function dx(b){const P=Ue(b.escapedText);return P.flags|=b.flags&-17,P.transformFlags=b.transformFlags,r(P,b),kk(P,{...b.emitNode.autoGenerate}),P}function Rb(b){const P=Ue(b.escapedText);return P.flags|=b.flags&-17,P.transformFlags=b.transformFlags,r(P,b),P}function Db(b){if(b===void 0)return b;if($i(b))return WT(b);if(sl(b))return wh(b);if(Ve(b))return Un(b);if(_S(b))return dx(b);if(Ji(b))return Rb(b);const P=sL(b.kind)?t.createBaseNode(b.kind):t.createBaseTokenNode(b.kind);P.flags|=b.flags&-17,P.transformFlags=b.transformFlags,r(P,b);for(const B in b)xs(P,B)||!xs(b,B)||(P[B]=b[B]);return P}function FT(b,P,B){return Jn(jd(void 0,void 0,void 0,void 0,P?[P]:[],void 0,ri(b,!0)),void 0,B?[B]:[])}function V1(b,P,B){return Jn(Of(void 0,void 0,P?[P]:[],void 0,void 0,ri(b,!0)),void 0,B?[B]:[])}function X_(){return Ip(se("0"))}function Oh(b){return pm(void 0,!1,b)}function hN(b){return Wm(void 0,!1,ST([rx(!1,void 0,b)]))}function zT(b,P){return P==="null"?O.createStrictEquality(b,Gt()):P==="undefined"?O.createStrictEquality(b,X_()):O.createStrictEquality(Bu(b),he(P))}function Zz(b,P){return P==="null"?O.createStrictInequality(b,Gt()):P==="undefined"?O.createStrictInequality(b,X_()):O.createStrictInequality(Bu(b),he(P))}function Nb(b,P,B){return mS(b)?Qo(Ss(b,void 0,P),void 0,void 0,B):Jn(Us(b,P),void 0,B)}function _8(b,P,B){return Nb(b,"bind",[P,...B])}function h8(b,P,B){return Nb(b,"call",[P,...B])}function rE(b,P,B){return Nb(b,"apply",[P,B])}function d_(b,P,B){return Nb(Ne(b),P,B)}function wM(b,P){return Nb(b,"slice",P===void 0?[]:[oE(P)])}function Wh(b,P){return Nb(b,"concat",P)}function px(b,P,B){return d_("Object","defineProperty",[b,oE(P),B])}function g8(b,P){return d_("Object","getOwnPropertyDescriptor",[b,oE(P)])}function Y_(b,P,B){return d_("Reflect","get",B?[b,P,B]:[b,P])}function Q(b,P,B,ce){return d_("Reflect","set",ce?[b,P,B,ce]:[b,P,B])}function xe(b,P,B){return B?(b.push(yf(P,B)),!0):!1}function Ke(b,P){const B=[];xe(B,"enumerable",oE(b.enumerable)),xe(B,"configurable",oE(b.configurable));let ce=xe(B,"writable",oE(b.writable));ce=xe(B,"value",b.value)||ce;let Qe=xe(B,"get",b.get);return Qe=xe(B,"set",b.set)||Qe,N.assert(!(ce&&Qe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),$o(B,!P)}function xt(b,P){switch(b.kind){case 217:return ff(b,P);case 216:return ec(b,b.type,P);case 234:return _f(b,P,b.type);case 238:return Mt(b,P,b.type);case 235:return ze(b,P);case 360:return ya(b,P)}}function Nt(b){return Gd(b)&&$s(b)&&$s(jy(b))&&$s(w_(b))&&!bt(VR(b))&&!bt(Lk(b))}function Kt(b,P,B=15){return b&&oF(b,B)&&!Nt(b)?xt(b,Kt(b.expression,P)):P}function Fr(b,P,B){if(!P)return b;const ce=hT(P,P.label,i1(P.statement)?Fr(b,P.statement):b);return B&&B(P),ce}function Wi(b,P){const B=hs(b);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Ri(b,P,B,ce=!1){const Qe=$l(b,15);let Xt,vr;return zd(Qe)?(Xt=at(),vr=Qe):_P(Qe)?(Xt=at(),vr=B!==void 0&&B<2?dt(Ne("_super"),Qe):Qe):ja(Qe)&8192?(Xt=X_(),vr=i().parenthesizeLeftSideOfAccess(Qe,!1)):Wr(Qe)?Wi(Qe.expression,ce)?(Xt=pe(P),vr=Us(dt(O.createAssignment(Xt,Qe.expression),Qe.expression),Qe.name),dt(vr,Qe)):(Xt=Qe.expression,vr=Qe):Qs(Qe)?Wi(Qe.expression,ce)?(Xt=pe(P),vr=Wc(dt(O.createAssignment(Xt,Qe.expression),Qe.expression),Qe.argumentExpression),dt(vr,Qe)):(Xt=Qe.expression,vr=Qe):(Xt=X_(),vr=i().parenthesizeLeftSideOfAccess(b,!1)),{target:vr,thisArg:Xt}}function mi(b,P){return Us(Jc($o([le(void 0,"value",[_i(void 0,void 0,b,void 0,void 0,void 0)],ri([mu(P)]))])),"value")}function Yi(b){return b.length>10?Pd(b):id(b,O.createComma)}function ds(b,P,B,ce=0,Qe){const Xt=Qe?b&&l4(b):Mo(b);if(Xt&&Ve(Xt)&&!sl(Xt)){const vr=qa(dt(Db(Xt),Xt),Xt.parent);return ce|=ja(Xt),B||(ce|=96),P||(ce|=3072),ce&&pr(vr,ce),vr}return Me(b)}function Ds(b,P,B){return ds(b,P,B,98304)}function es(b,P,B,ce){return ds(b,P,B,32768,ce)}function Gf(b,P,B){return ds(b,P,B,16384)}function $_(b,P,B){return ds(b,P,B)}function Tg(b,P,B,ce){const Qe=Us(b,$s(P)?P:Db(P));dt(Qe,P);let Xt=0;return ce||(Xt|=96),B||(Xt|=3072),Xt&&pr(Qe,Xt),Qe}function sy(b,P,B,ce){return b&&Zr(P,32)?Tg(b,ds(P),B,ce):Gf(P,B,ce)}function ly(b,P,B,ce){const Qe=BT(b,P,0,B);return gN(b,P,Qe,ce)}function Cb(b){return Ma(b.expression)&&b.expression.text==="use strict"}function cp(){return Xu(mu(he("use strict")))}function BT(b,P,B=0,ce){N.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let Qe=!1;const Xt=b.length;for(;Bro&&p_.splice(Qe,0,...P.slice(ro,qs)),ro>vr&&p_.splice(ce,0,...P.slice(vr,ro)),vr>Xt&&p_.splice(B,0,...P.slice(Xt,vr)),Xt>0)if(B===0)p_.splice(0,0,...P.slice(0,Xt));else{const Lb=new Map;for(let Vm=0;Vm=0;Vm--){const aE=P[Vm];Lb.has(aE.expression.text)||p_.unshift(aE)}}return ME(b)?dt(U(p_,b.hasTrailingComma),b):b}function Pb(b,P){let B;return typeof P=="number"?B=tn(P):B=P,gl(b)?$t(b,B,b.name,b.constraint,b.default):Ao(b)?ao(b,B,b.dotDotDotToken,b.name,b.questionToken,b.type,b.initializer):UR(b)?en(b,B,b.typeParameters,b.parameters,b.type):yp(b)?Di(b,B,b.name,b.questionToken,b.type):Jo(b)?tt(b,B,b.name,b.questionToken??b.exclamationToken,b.type,b.initializer):vh(b)?Rn(b,B,b.name,b.questionToken,b.typeParameters,b.parameters,b.type):ql(b)?hi(b,B,b.asteriskToken,b.name,b.questionToken,b.typeParameters,b.parameters,b.type,b.body):Ml(b)?kn(b,B,b.parameters,b.body):rf(b)?ft(b,B,b.name,b.parameters,b.type,b.body):vp(b)?Fe(b,B,b.name,b.parameters,b.body):e1(b)?Vt(b,B,b.parameters,b.type):Os(b)?Nd(b,B,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):Gs(b)?U_(b,B,b.typeParameters,b.parameters,b.type,b.equalsGreaterThanToken,b.body):Zc(b)?Om(b,B,b.name,b.typeParameters,b.heritageClauses,b.members):Ll(b)?Ka(b,B,b.declarationList):Ac(b)?nN(b,B,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):Ic(b)?q0(b,B,b.name,b.typeParameters,b.heritageClauses,b.members):_d(b)?vc(b,B,b.name,b.typeParameters,b.heritageClauses,b.members):Nm(b)?ex(b,B,b.name,b.typeParameters,b.type):I0(b)?yT(b,B,b.name,b.members):Xl(b)?s_(b,B,b.name,b.body):tu(b)?l_(b,B,b.isTypeOnly,b.name,b.moduleReference):kc(b)?bT(b,B,b.importClause,b.moduleSpecifier,b.attributes):kl(b)?yb(b,B,b.expression):Yl(b)?ny(b,B,b.isTypeOnly,b.exportClause,b.moduleSpecifier,b.attributes):N.assertNever(b)}function yN(b,P){return Ao(b)?ao(b,P,b.dotDotDotToken,b.name,b.questionToken,b.type,b.initializer):Jo(b)?tt(b,P,b.name,b.questionToken??b.exclamationToken,b.type,b.initializer):ql(b)?hi(b,P,b.asteriskToken,b.name,b.questionToken,b.typeParameters,b.parameters,b.type,b.body):rf(b)?ft(b,P,b.name,b.parameters,b.type,b.body):vp(b)?Fe(b,P,b.name,b.parameters,b.body):Zc(b)?Om(b,P,b.name,b.typeParameters,b.heritageClauses,b.members):Ic(b)?q0(b,P,b.name,b.typeParameters,b.heritageClauses,b.members):N.assertNever(b)}function Jp(b,P){switch(b.kind){case 177:return ft(b,b.modifiers,P,b.parameters,b.type,b.body);case 178:return Fe(b,b.modifiers,P,b.parameters,b.body);case 174:return hi(b,b.modifiers,b.asteriskToken,P,b.questionToken,b.typeParameters,b.parameters,b.type,b.body);case 173:return Rn(b,b.modifiers,P,b.questionToken,b.typeParameters,b.parameters,b.type);case 172:return tt(b,b.modifiers,P,b.questionToken??b.exclamationToken,b.type,b.initializer);case 171:return Di(b,b.modifiers,P,b.questionToken,b.type);case 303:return Gm(b,P,b.initializer)}}function Ua(b){return b?U(b):void 0}function cc(b){return typeof b=="string"?Ne(b):b}function oE(b){return typeof b=="string"?he(b):typeof b=="number"?se(b):typeof b=="boolean"?b?yt():$e():b}function fx(b){return b&&i().parenthesizeExpressionForDisallowedComma(b)}function FM(b){return typeof b=="number"?Se(b):b}function Mb(b){return b&&EH(b)?dt(r(Zu(),b),b):b}function zM(b){return typeof b=="string"||b&&!wi(b)?qd(b,void 0,void 0,void 0):b}function or(b,P){return b!==P&&(r(b,P),dt(b,P)),b}}function ZU(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 N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function lGe(e,t){switch(Vy||(Vy=My(99,!1,0)),e){case 15:Vy.setText("`"+t+"`");break;case 16:Vy.setText("`"+t+"${");break;case 17:Vy.setText("}"+t+"${");break;case 18:Vy.setText("}"+t+"`");break}let r=Vy.scan();if(r===20&&(r=Vy.reScanTemplateToken(!1)),Vy.isUnterminated())return Vy.setText(void 0),Zoe;let i;switch(r){case 15:case 16:case 17:case 18:i=Vy.getTokenValue();break}return i===void 0||Vy.scan()!==1?(Vy.setText(void 0),Zoe):(Vy.setText(void 0),i)}function Yv(e){return e&&Ve(e)?Nk(e):Tr(e)}function Nk(e){return Tr(e)&-67108865}function cGe(e,t){return t|e.transformFlags&134234112}function Tr(e){if(!e)return 0;const t=e.transformFlags&~$oe(e.kind);return sd(e)&&ic(e.name)?cGe(e.name,t):t}function Ja(e){return e?e.transformFlags:0}function hTe(e){let t=0;for(const r of e)t|=Tr(r);e.transformFlags=t}function $oe(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 sW(e){return e.flags|=16,e}function eH(e,t,r){let i,o,s,l,u,p,h,m,v,A;Po(e)?(s="",l=e,u=e.length,p=t,h=r):(N.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,v=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,A=e.oldFileOfCurrentEmit));const I=A?dGe(N.checkDefined(o)):uGe(o,i,u);return I.fileName=s,I.sourceMapPath=p,I.oldFileOfCurrentEmit=A,m&&v?(Object.defineProperty(I,"text",{get:m}),Object.defineProperty(I,"sourceMapText",{get:v})):(N.assert(!A),I.text=l??"",I.sourceMapText=h),I}function uGe(e,t,r){let i,o,s,l,u,p,h,m;for(const A of e?e.sections:et)switch(A.kind){case"prologue":i=xn(i,dt(w.createUnparsedPrologue(A.data),A));break;case"emitHelpers":o=xn(o,cH().get(A.data));break;case"no-default-lib":m=!0;break;case"reference":s=xn(s,{pos:-1,end:-1,fileName:A.data});break;case"type":l=xn(l,{pos:-1,end:-1,fileName:A.data});break;case"type-import":l=xn(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:99});break;case"type-require":l=xn(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:1});break;case"lib":u=xn(u,{pos:-1,end:-1,fileName:A.data});break;case"prepend":let I;for(const R of A.texts)(!t||R.kind!=="internal")&&(I=xn(I,dt(w.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=qr(p,I),h=xn(h,w.createUnparsedPrepend(A.data,I??et));break;case"internal":if(t){h||(h=[]);break}case"text":h=xn(h,dt(w.createUnparsedTextLike(A.data,A.kind==="internal"),A));break;default:N.assertNever(A)}if(!h){const A=w.createUnparsedTextLike(void 0,!1);tP(A,0,typeof r=="function"?r():r),h=[A]}const v=Ah.createUnparsedSource(i??et,void 0,h);return FR(i,v),FR(h,v),FR(p,v),v.hasNoDefaultLib=m,v.helpers=o,v.referencedFiles=s||et,v.typeReferenceDirectives=l,v.libReferenceDirectives=u||et,v}function dGe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=xn(t,dt(w.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=xn(r,dt(w.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(o)}const i=w.createUnparsedSource(et,r,t??et);return FR(r,i),FR(t,i),i.helpers=Ot(e.sources&&e.sources.helpers,o=>cH().get(o)),i}function gTe(e,t,r,i,o,s){return Po(e)?nH(void 0,e,r,i,void 0,t,o,s):tH(e,t,r,i,o,s)}function tH(e,t,r,i,o,s,l,u){const p=Ah.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;const h=new Map,m=R=>{if(R===void 0)return;let M=h.get(R);return M===void 0&&(M=e(R),h.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},v=R=>{const M=m(R);return M!==void 0?M:`/* Input file ${R} was missing */\r `};let A;return Object.defineProperties(p,{javascriptText:{get:()=>v(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>v(N.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(A===void 0&&s)if(l?.getBuildInfo)A=l.getBuildInfo(s,u.configFilePath)??!1;else{const R=m(s);A=R!==void 0?i7(s,R)??!1:!1}return A||void 0}}}),p}function nH(e,t,r,i,o,s,l,u,p,h,m){const v=Ah.createInputFiles();return v.javascriptPath=e,v.javascriptText=t,v.javascriptMapPath=r,v.javascriptMapText=i,v.declarationPath=o,v.declarationText=s,v.declarationMapPath=l,v.declarationMapText=u,v.buildInfoPath=p,v.buildInfo=h,v.oldFileOfCurrentEmit=m,v}function yTe(e,t,r){return new(bTe||(bTe=lu.getSourceMapSourceConstructor()))(e,t,r)}function Cr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=pGe(r,e.emitNode))}return e}function pGe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:v,snippetElement:A,classThis:I,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=qr(o.slice(),t.leadingComments)),s&&(t.trailingComments=qr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=fGe(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(const M of m)t.helpers=Ng(t.helpers,M);return v!==void 0&&(t.startsOnNewLine=v),A!==void 0&&(t.snippetElement=A),I&&(t.classThis=I),R&&(t.assignedName=R),t}function fGe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var lW,rH,Qoe,Vy,Zoe,Ck,vTe,w,bTe,mGe=T({"src/compiler/factory/nodeFactory.ts"(){ra(),lW=0,rH=(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))(rH||{}),Qoe=[],Zoe={},Ck=Koe(),vTe={createBaseSourceFileNode:e=>sW(Ck.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>sW(Ck.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>sW(Ck.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>sW(Ck.createBaseTokenNode(e)),createBaseNode:e=>sW(Ck.createBaseNode(e))},w=Dk(4,vTe)}});function Ou(e){if(e.emitNode)N.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(lC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=jn(Do(jn(e)))??N.fail("Could not determine parsed source file.");Ou(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function iH(e){var t,r;const i=(r=(t=jn(Do(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Pk(e){const t=Ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function pr(e,t){return Ou(e).flags=t,e}function k_(e,t){const r=Ou(e);return r.flags=r.flags|t,e}function Mk(e,t){return Ou(e).internalFlags=t,e}function YA(e,t){const r=Ou(e);return r.internalFlags=r.internalFlags|t,e}function jy(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Pa(e,t){return Ou(e).sourceMapRange=t,e}function ETe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function eae(e,t,r){const i=Ou(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function dP(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function cW(e,t){return Ou(e).startsOnNewLine=t,e}function w_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function oc(e,t){return Ou(e).commentRange=t,e}function VR(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function A0(e,t){return Ou(e).leadingComments=t,e}function pP(e,t,r,i){return A0(e,xn(VR(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Lk(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function $A(e,t){return Ou(e).trailingComments=t,e}function uW(e,t,r,i){return $A(e,xn(Lk(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function tae(e,t){A0(e,VR(t)),$A(e,Lk(t));const r=Ou(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function nae(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function rae(e,t){const r=Ou(e);return r.constantValue=t,e}function QA(e,t){const r=Ou(e);return r.helpers=xn(r.helpers,t),e}function Gg(e,t){if(bt(t)){const r=Ou(e);for(const i of t)r.helpers=Ng(r.helpers,i)}return e}function STe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?Bx(i,t):!1}function dW(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function iae(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!bt(o))return;const s=Ou(t);let l=0;for(let u=0;u0&&(o[u-l]=p)}l>0&&(o.length-=l)}function oH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function aH(e,t){const r=Ou(e);return r.snippetElement=t,e}function sH(e){return Ou(e).internalFlags|=4,e}function oae(e,t){const r=Ou(e);return r.typeNode=t,e}function aae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Uy(e,t){return Ou(e).identifierTypeArguments=t,e}function WS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function kk(e,t){return Ou(e).autoGenerate=t,e}function TTe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function sae(e,t){return Ou(e).generatedImportReference=t,e}function lae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var _Ge=T({"src/compiler/factory/emitNode.ts"(){ra()}});function cae(e){const t=e.factory,r=Sd(()=>Mk(t.createTrue(),8)),i=Sd(()=>Mk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:C,createAssignHelper:O,createAwaitHelper:U,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:Z,createAsyncValuesHelper:V,createRestHelper:se,createAwaiterHelper:G,createExtendsHelper:ne,createTemplateObjectHelper:he,createSpreadArrayHelper:ve,createPropKeyHelper:$,createSetFunctionNameHelper:Y,createValuesHelper:oe,createReadHelper:fe,createGeneratorHelper:Ne,createCreateBindingHelper:pe,createImportStarHelper:ie,createImportStarCallbackHelper:ye,createImportDefaultHelper:Me,createExportStarHelper:Ue,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:De,createClassPrivateFieldInHelper:Pe,createAddDisposableResourceHelper:We,createDisposeResourcesHelper:At};function o(Se){return pr(t.createIdentifier(Se),8196)}function s(Se,je,at,Gt){e.requestEmitHelper(pW);const yt=[];return yt.push(t.createArrayLiteralExpression(Se,!0)),yt.push(je),at&&(yt.push(at),Gt&&yt.push(Gt)),t.createCallExpression(o("__decorate"),void 0,yt)}function l(Se,je){return e.requestEmitHelper(fW),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Se),je])}function u(Se,je,at){return e.requestEmitHelper(mW),dt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(je+""),Se]),at)}function p(Se){const je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Se.name),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function h(Se){const je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,je))}function m(Se){const je=Se.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Se.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Se.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(je,t.createIdentifier("value")))])))}function v(Se){const je=Se.computed?Se.name:Ve(Se.name)?t.createStringLiteralFromNode(Se.name):Se.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(je,103,t.createIdentifier("obj"))))}function A(Se,je){const at=[];return at.push(v(Se)),je.get&&at.push(h(Se)),je.set&&at.push(m(Se)),t.createObjectLiteralExpression(at)}function I(Se){const je=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Se.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Se.name.computed?Se.name.name:t.createStringLiteralFromNode(Se.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Se.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Se.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),A(Se.name,Se.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),Se.metadata)];return t.createObjectLiteralExpression(je)}function R(Se){return Se.kind==="class"?p(Se):I(Se)}function M(Se,je,at,Gt,yt,$e){return e.requestEmitHelper(_W),t.createCallExpression(o("__esDecorate"),void 0,[Se??t.createNull(),je??t.createNull(),at,R(Gt),yt,$e])}function C(Se,je,at){return e.requestEmitHelper(hW),t.createCallExpression(o("__runInitializers"),void 0,at?[Se,je,at]:[Se,je])}function O(Se){return os(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Se):(e.requestEmitHelper(gW),t.createCallExpression(o("__assign"),void 0,Se))}function U(Se){return e.requestEmitHelper(ZA),t.createCallExpression(o("__await"),void 0,[Se])}function K(Se,je){return e.requestEmitHelper(ZA),e.requestEmitHelper(yW),(Se.emitNode||(Se.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[je?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Se])}function Z(Se){return e.requestEmitHelper(ZA),e.requestEmitHelper(vW),t.createCallExpression(o("__asyncDelegator"),void 0,[Se])}function V(Se){return e.requestEmitHelper(bW),t.createCallExpression(o("__asyncValues"),void 0,[Se])}function se(Se,je,at,Gt){e.requestEmitHelper(EW);const yt=[];let $e=0;for(let It=0;It{let i="";for(let o=0;oe.name))}function fP(e,t){return sa(e)&&Ve(e.expression)&&(ja(e.expression)&8192)!==0&&e.expression.escapedText===t}var uH,pW,fW,mW,_W,hW,gW,ZA,yW,vW,bW,EW,SW,TW,AW,IW,xW,RW,DW,NW,CW,jR,PW,wk,MW,LW,kW,wW,OW,WW,FW,ATe,Ok,Wk,hGe=T({"src/compiler/factory/emitHelpers.ts"(){ra(),uH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(uH||{}),pW={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; };`},fW={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); };`},mW={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); } };`},_W={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; };`},hW={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; };`},gW={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); };`},ZA={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); }`},yW={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[ZA],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]); } };`},vW={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[ZA],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; } };`},bW={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); } };`},EW={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; };`},SW={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()); }); };`},TW={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 __()); }; })();`},AW={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; };`},IW={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; };`},xW={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)); };`},RW={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},DW={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 }); };`},NW={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."); };`},CW={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 }; } };`},jR={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]; }));`},PW={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; });`},wk={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[jR,PW],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; };`},MW={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},LW={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[jR],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); };`},kW={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); };`},wW={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; };`},OW={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); };`},WW={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; };`},FW={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; });`},Ok={name:"typescript:async-super",scoped:!0,text:lH` const ${"_superIndex"} = name => super[name];`},Wk={name:"typescript:advanced-async-super",scoped:!0,text:lH` 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 gp(e){return e.kind===9}function zW(e){return e.kind===10}function Ma(e){return e.kind===11}function eI(e){return e.kind===12}function dH(e){return e.kind===14}function tI(e){return e.kind===15}function nI(e){return e.kind===16}function pH(e){return e.kind===17}function BW(e){return e.kind===18}function GW(e){return e.kind===26}function dae(e){return e.kind===28}function fH(e){return e.kind===40}function mH(e){return e.kind===41}function Fk(e){return e.kind===42}function zk(e){return e.kind===54}function $v(e){return e.kind===58}function pae(e){return e.kind===59}function VW(e){return e.kind===29}function fae(e){return e.kind===39}function Ve(e){return e.kind===80}function Ji(e){return e.kind===81}function rI(e){return e.kind===95}function jW(e){return e.kind===90}function mP(e){return e.kind===134}function mae(e){return e.kind===131}function _H(e){return e.kind===135}function _ae(e){return e.kind===148}function iI(e){return e.kind===126}function hae(e){return e.kind===128}function gae(e){return e.kind===164}function yae(e){return e.kind===129}function _P(e){return e.kind===108}function hP(e){return e.kind===102}function vae(e){return e.kind===84}function Id(e){return e.kind===166}function Za(e){return e.kind===167}function gl(e){return e.kind===168}function Ao(e){return e.kind===169}function Eu(e){return e.kind===170}function yp(e){return e.kind===171}function Jo(e){return e.kind===172}function vh(e){return e.kind===173}function ql(e){return e.kind===174}function Rl(e){return e.kind===175}function Ml(e){return e.kind===176}function rf(e){return e.kind===177}function vp(e){return e.kind===178}function oI(e){return e.kind===179}function Bk(e){return e.kind===180}function e1(e){return e.kind===181}function Gk(e){return e.kind===182}function Cf(e){return e.kind===183}function bh(e){return e.kind===184}function UR(e){return e.kind===185}function aI(e){return e.kind===186}function bp(e){return e.kind===187}function Vk(e){return e.kind===188}function sI(e){return e.kind===189}function HR(e){return e.kind===202}function UW(e){return e.kind===190}function HW(e){return e.kind===191}function Qv(e){return e.kind===192}function lI(e){return e.kind===193}function cI(e){return e.kind===194}function FS(e){return e.kind===195}function zS(e){return e.kind===196}function jk(e){return e.kind===197}function BS(e){return e.kind===198}function GS(e){return e.kind===199}function qR(e){return e.kind===200}function Zv(e){return e.kind===201}function cg(e){return e.kind===205}function hH(e){return e.kind===204}function bae(e){return e.kind===203}function am(e){return e.kind===206}function t1(e){return e.kind===207}function Qa(e){return e.kind===208}function md(e){return e.kind===209}function Oa(e){return e.kind===210}function Wr(e){return e.kind===211}function Qs(e){return e.kind===212}function sa(e){return e.kind===213}function n1(e){return e.kind===214}function r1(e){return e.kind===215}function Eae(e){return e.kind===216}function Gd(e){return e.kind===217}function Os(e){return e.kind===218}function Gs(e){return e.kind===219}function Sae(e){return e.kind===220}function JR(e){return e.kind===221}function uI(e){return e.kind===222}function eb(e){return e.kind===223}function tb(e){return e.kind===224}function gH(e){return e.kind===225}function mr(e){return e.kind===226}function KR(e){return e.kind===227}function qW(e){return e.kind===228}function JW(e){return e.kind===229}function e_(e){return e.kind===230}function Zc(e){return e.kind===231}function jc(e){return e.kind===232}function Hy(e){return e.kind===233}function Uk(e){return e.kind===234}function yH(e){return e.kind===238}function dI(e){return e.kind===235}function gP(e){return e.kind===236}function ITe(e){return e.kind===237}function KW(e){return e.kind===360}function yP(e){return e.kind===361}function vP(e){return e.kind===239}function Tae(e){return e.kind===240}function Xo(e){return e.kind===241}function Ll(e){return e.kind===243}function vH(e){return e.kind===242}function eu(e){return e.kind===244}function VS(e){return e.kind===245}function xTe(e){return e.kind===246}function RTe(e){return e.kind===247}function jS(e){return e.kind===248}function XW(e){return e.kind===249}function Hk(e){return e.kind===250}function DTe(e){return e.kind===251}function NTe(e){return e.kind===252}function Dm(e){return e.kind===253}function Aae(e){return e.kind===254}function bP(e){return e.kind===255}function i1(e){return e.kind===256}function bH(e){return e.kind===257}function US(e){return e.kind===258}function CTe(e){return e.kind===259}function wi(e){return e.kind===260}function Uc(e){return e.kind===261}function Ac(e){return e.kind===262}function Ic(e){return e.kind===263}function _d(e){return e.kind===264}function Nm(e){return e.kind===265}function I0(e){return e.kind===266}function Xl(e){return e.kind===267}function O_(e){return e.kind===268}function EP(e){return e.kind===269}function qk(e){return e.kind===270}function tu(e){return e.kind===271}function kc(e){return e.kind===272}function Eh(e){return e.kind===273}function PTe(e){return e.kind===302}function Iae(e){return e.kind===300}function MTe(e){return e.kind===301}function pI(e){return e.kind===300}function xae(e){return e.kind===301}function nb(e){return e.kind===274}function Sh(e){return e.kind===280}function Vg(e){return e.kind===275}function np(e){return e.kind===276}function kl(e){return e.kind===277}function Yl(e){return e.kind===278}function Pf(e){return e.kind===279}function Ku(e){return e.kind===281}function LTe(e){return e.kind===282}function EH(e){return e.kind===359}function fI(e){return e.kind===362}function Th(e){return e.kind===283}function ug(e){return e.kind===284}function HS(e){return e.kind===285}function W_(e){return e.kind===286}function o1(e){return e.kind===287}function a1(e){return e.kind===288}function mI(e){return e.kind===289}function Rae(e){return e.kind===290}function F_(e){return e.kind===291}function s1(e){return e.kind===292}function _I(e){return e.kind===293}function SP(e){return e.kind===294}function t_(e){return e.kind===295}function XR(e){return e.kind===296}function TP(e){return e.kind===297}function of(e){return e.kind===298}function l1(e){return e.kind===299}function _c(e){return e.kind===303}function rp(e){return e.kind===304}function qy(e){return e.kind===305}function c1(e){return e.kind===306}function Dae(e){return e.kind===308}function $i(e){return e.kind===312}function SH(e){return e.kind===313}function qS(e){return e.kind===314}function u1(e){return e.kind===316}function AP(e){return e.kind===317}function x0(e){return e.kind===318}function Nae(e){return e.kind===331}function Cae(e){return e.kind===332}function kTe(e){return e.kind===333}function Pae(e){return e.kind===319}function Mae(e){return e.kind===320}function YR(e){return e.kind===321}function YW(e){return e.kind===322}function TH(e){return e.kind===323}function $R(e){return e.kind===324}function $W(e){return e.kind===325}function wTe(e){return e.kind===326}function n_(e){return e.kind===327}function JS(e){return e.kind===329}function R0(e){return e.kind===330}function hI(e){return e.kind===335}function OTe(e){return e.kind===337}function Lae(e){return e.kind===339}function AH(e){return e.kind===345}function IH(e){return e.kind===340}function xH(e){return e.kind===341}function RH(e){return e.kind===342}function DH(e){return e.kind===343}function QW(e){return e.kind===344}function QR(e){return e.kind===346}function NH(e){return e.kind===338}function WTe(e){return e.kind===354}function Jk(e){return e.kind===347}function r_(e){return e.kind===348}function ZW(e){return e.kind===349}function CH(e){return e.kind===350}function IP(e){return e.kind===351}function sm(e){return e.kind===352}function KS(e){return e.kind===353}function FTe(e){return e.kind===334}function kae(e){return e.kind===355}function eF(e){return e.kind===336}function tF(e){return e.kind===357}function zTe(e){return e.kind===356}function ZR(e){return e.kind===358}var gGe=T({"src/compiler/factory/nodeTests.ts"(){ra()}});function Kk(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function XS(e,t,r,i){if(Za(r))return dt(e.createElementAccessExpression(t,r.expression),i);{const o=dt($h(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return k_(o,128),o}}function wae(e,t){const r=Ah.createIdentifier(e||"React");return qa(r,Do(t)),r}function Oae(e,t,r){if(Id(t)){const i=Oae(e,t.left,r),o=e.createIdentifier(Sr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return wae(Sr(t),r)}function PH(e,t,r,i){return t?Oae(e,t,i):e.createPropertyAccessExpression(wae(r,i),"createElement")}function yGe(e,t,r,i){return t?Oae(e,t,i):e.createPropertyAccessExpression(wae(r,i),"Fragment")}function Wae(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)Xu(u),l.push(u);else l.push(o[0]);return dt(e.createCallExpression(t,void 0,l),s)}function Fae(e,t,r,i,o,s,l){const p=[yGe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const h of o)Xu(h),p.push(h);else p.push(o[0]);return dt(e.createCallExpression(PH(e,t,i,s),void 0,p),l)}function MH(e,t,r){if(Uc(t)){const i=Ha(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return dt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=dt(e.createAssignment(t,r),t);return dt(e.createExpressionStatement(i),t)}}function BTe(e,t,r){return Xo(t)?e.updateBlock(t,dt(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function Xk(e,t){if(Id(t)){const r=Xk(e,t.left),i=qa(dt(e.cloneNode(t.right),t.right),t.right.parent);return dt(e.createPropertyAccessExpression(r,i),t)}else return qa(dt(e.cloneNode(t),t),t.parent)}function LH(e,t){return Ve(t)?e.createStringLiteralFromNode(t):Za(t)?qa(dt(e.cloneNode(t.expression),t.expression),t.expression.parent):qa(dt(e.cloneNode(t),t),t.parent)}function vGe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=LS(t,r);if(r===s)return dt(e.createObjectDefinePropertyCall(i,LH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&dt(Cr(e.createFunctionExpression(PE(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&dt(Cr(e.createFunctionExpression(PE(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function bGe(e,t,r){return Cr(dt(e.createAssignment(XS(e,r,t.name,t.name),t.initializer),t),t)}function EGe(e,t,r){return Cr(dt(e.createAssignment(XS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function SGe(e,t,r){return Cr(dt(e.createAssignment(XS(e,r,t.name,t.name),Cr(dt(e.createFunctionExpression(PE(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function zae(e,t,r,i){switch(r.name&&Ji(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return vGe(e,t.properties,r,i,!!t.multiLine);case 303:return bGe(e,r,i);case 304:return EGe(e,r,i);case 174:return SGe(e,r,i)}}function nF(e,t,r,i,o){const s=t.operator;N.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),dt(r,t.operand);let u=tb(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return dt(u,t),o&&(u=e.createAssignment(o,u),dt(u,t)),r=e.createComma(r,u),dt(r,t),gH(t)&&(r=e.createComma(r,l),dt(r,t)),r}function kH(e){return(ja(e)&65536)!==0}function jg(e){return(ja(e)&32768)!==0}function rF(e){return(ja(e)&16384)!==0}function GTe(e){return Ma(e.expression)&&e.expression.text==="use strict"}function wH(e){for(const t of e)if(Im(t)){if(GTe(t))return t}else break}function Bae(e){const t=Xc(e);return t!==void 0&&Im(t)&>e(t)}function Yk(e){return e.kind===226&&e.operatorToken.kind===28}function xP(e){return Yk(e)||yP(e)}function eD(e){return Gd(e)&&lr(e)&&!!u0(e)}function iF(e){const t=d0(e);return N.assertIsDefined(t),t}function oF(e,t=15){switch(e.kind){case 217:return t&16&&eD(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(;oF(e,t);)e=e.expression;return e}function Gae(e,t=15){let r=e.parent;for(;oF(r,t);)r=r.parent,N.assert(r);return r}function VTe(e){return $l(e,6)}function Xu(e){return cW(e,!0)}function $k(e){const t=Pl(e,$i),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Vae(e){const t=Pl(e,$i),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function OH(e,t,r,i,o,s,l){if(i.importHelpers&&LA(r,i)){let u;const p=wu(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){const h=dW(r);if(h){const m=[];for(const v of h)if(!v.scoped){const A=v.importName;A&&Tf(m,A)}if(bt(m)){m.sort(Uu),u=e.createNamedImports(Ot(m,I=>P4(r,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));const v=Pl(r,$i),A=Ou(v);A.externalHelpers=!0}}}else{const h=jae(e,r,i,o,s||l);h&&(u=e.createNamespaceImport(h))}if(u){const h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(Kv),void 0);return YA(h,2),h}}}function jae(e,t,r,i,o){if(r.importHelpers&&LA(t,r)){const s=$k(t);if(s)return s;const l=wu(r);let u=(i||yh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const p=dW(t);if(p){for(const h of p)if(!h.scoped){u=!0;break}}}if(u){const p=Pl(t,$i),h=Ou(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(Kv))}}}function tD(e,t,r){const i=vR(t);if(i&&!wA(t)&&!L4(t)){const o=i.name;return sl(o)?o:e.createIdentifier(wE(r,o)||Sr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function gI(e,t,r,i,o,s){const l=yR(t);if(l&&Ma(l))return AGe(t,i,e,o,s)||TGe(e,l,r)||e.cloneNode(l)}function TGe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Qk(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ps(i))return e.createStringLiteral(Zj(r,t.fileName))}}function AGe(e,t,r,i,o){return Qk(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Zk(e){if(uL(e))return e.initializer;if(_c(e)){const t=e.initializer;return Lc(t,!0)?t.right:void 0}if(rp(e))return e.objectAssignmentInitializer;if(Lc(e,!0))return e.right;if(e_(e))return Zk(e.expression)}function rb(e){if(uL(e))return e.name;if(kg(e)){switch(e.kind){case 303:return rb(e.initializer);case 304:return e.name;case 305:return rb(e.expression)}return}return Lc(e,!0)?rb(e.left):e_(e)?rb(e.expression):e}function aF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function WH(e){const t=sF(e);return N.assert(!!t||qy(e),"Invalid property name for binding element."),t}function sF(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Ji(r)?N.failBadSyntaxKind(r):Za(r)&&jTe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Ji(r)?N.failBadSyntaxKind(r):Za(r)&&jTe(r.expression)?r.expression:r}break;case 305:return e.name&&Ji(e.name)?N.failBadSyntaxKind(e.name):e.name}const t=rb(e);if(t&&ic(t))return t}function jTe(e){const t=e.kind;return t===11||t===9}function nD(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function FH(e){if(e){let t=e;for(;;){if(Ve(t)||!t.body)return Ve(t)?t:t.name;t=t.body}}}function UTe(e){const t=e.kind;return t===176||t===178}function Uae(e){const t=e.kind;return t===176||t===177||t===178}function zH(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function Hae(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function qae(e){return $v(e)||zk(e)}function Jae(e){return Ve(e)||jk(e)}function Kae(e){return _ae(e)||fH(e)||mH(e)}function Xae(e){return $v(e)||fH(e)||mH(e)}function Yae(e){return Ve(e)||Ma(e)}function HTe(e){const t=e.kind;return t===106||t===112||t===97||LE(e)||tb(e)}function IGe(e){return e===43}function xGe(e){return e===42||e===44||e===45}function RGe(e){return IGe(e)||xGe(e)}function DGe(e){return e===40||e===41}function NGe(e){return DGe(e)||RGe(e)}function CGe(e){return e===48||e===49||e===50}function BH(e){return CGe(e)||NGe(e)}function PGe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function MGe(e){return PGe(e)||BH(e)}function LGe(e){return e===35||e===37||e===36||e===38}function kGe(e){return LGe(e)||MGe(e)}function wGe(e){return e===51||e===52||e===53}function OGe(e){return wGe(e)||kGe(e)}function WGe(e){return e===56||e===57}function FGe(e){return WGe(e)||OGe(e)}function zGe(e){return e===61||FGe(e)||zy(e)}function BGe(e){return zGe(e)||e===28}function $ae(e){return BGe(e.kind)}function lF(e,t,r,i,o,s){const l=new KTe(e,t,r,i,o,s);return u;function u(p,h){const m={value:void 0},v=[VH.enter],A=[p],I=[void 0];let R=0;for(;v[R]!==VH.done;)R=v[R](l,R,v,A,I,m,h);return N.assertEqual(R,0),m.value}}function qTe(e){return e===95||e===90}function ew(e){const t=e.kind;return qTe(t)}function JTe(e){const t=e.kind;return ky(t)&&!qTe(t)}function Qae(e,t){if(t!==void 0)return t.length===0?t:dt(e.createNodeArray([],t.hasTrailingComma),t)}function tw(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if($h(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function rD(e,t){return typeof e=="object"?D0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function GGe(e,t){return typeof e=="string"?e:VGe(e,N.checkDefined(t))}function VGe(e,t){return _S(e)?t(e).slice(1):sl(e)?t(e):Ji(e)?e.escapedText.slice(1):Sr(e)}function D0(e,t,r,i,o){return t=rD(t,o),i=rD(i,o),r=GGe(r,o),`${e?"#":""}${t}${r}${i}`}function GH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Zae(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 ese(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 cF(e){let t=e.expression;for(;;){if(t=$l(t),yP(t)){t=Ya(t.elements);continue}if(Yk(t)){t=t.right;continue}if(Lc(t,!0)&&sl(t.left))return t;break}}function jGe(e){return Gd(e)&&$s(e)&&!e.emitNode}function uF(e,t){if(jGe(e))uF(e.expression,t);else if(Yk(e))uF(e.left,t),uF(e.right,t);else if(yP(e))for(const r of e.elements)uF(r,t);else t.push(e)}function tse(e){const t=[];return uF(e,t),t}function nw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of nD(e)){const r=rb(t);if(r&&hC(r)&&(r.transformFlags&65536||r.transformFlags&128&&nw(r)))return!0}return!1}var VH,KTe,UGe=T({"src/compiler/factory/utilities.ts"(){ra(),(e=>{function t(m,v,A,I,R,M,C){const O=v>0?R[v-1]:void 0;return N.assertEqual(A[v],t),R[v]=m.onEnter(I[v],O,C),A[v]=u(m,t),v}e.enter=t;function r(m,v,A,I,R,M,C){N.assertEqual(A[v],r),N.assertIsDefined(m.onLeft),A[v]=u(m,r);const O=m.onLeft(I[v].left,R[v],I[v]);return O?(h(v,I,O),p(v,A,I,R,O)):v}e.left=r;function i(m,v,A,I,R,M,C){return N.assertEqual(A[v],i),N.assertIsDefined(m.onOperator),A[v]=u(m,i),m.onOperator(I[v].operatorToken,R[v],I[v]),v}e.operator=i;function o(m,v,A,I,R,M,C){N.assertEqual(A[v],o),N.assertIsDefined(m.onRight),A[v]=u(m,o);const O=m.onRight(I[v].right,R[v],I[v]);return O?(h(v,I,O),p(v,A,I,R,O)):v}e.right=o;function s(m,v,A,I,R,M,C){N.assertEqual(A[v],s),A[v]=u(m,s);const O=m.onExit(I[v],R[v]);if(v>0){if(v--,m.foldState){const U=A[v]===s?"right":"left";R[v]=m.foldState(R[v],O,U)}}else M.value=O;return v}e.exit=s;function l(m,v,A,I,R,M,C){return N.assertEqual(A[v],l),v}e.done=l;function u(m,v){switch(v){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:N.fail("Invalid state")}}e.nextState=u;function p(m,v,A,I,R){return m++,v[m]=t,A[m]=R,I[m]=void 0,m}function h(m,v,A){if(N.shouldAssert(2))for(;m>=0;)N.assert(v[m]!==A,"Circular traversal detected."),m--}})(VH||(VH={})),KTe=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 dt(e,t){return t?gh(e,t.pos,t.end):e}function Cm(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function YS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var HGe=T({"src/compiler/factory/utilitiesPublic.ts"(){ra()}});function Yt(e,t){return t&&e(t)}function Gi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function jH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function rw(e){return Xe(e.statements,qGe)||JGe(e)}function qGe(e){return Cm(e)&&KGe(e,95)||tu(e)&&Th(e.moduleReference)||kc(e)||kl(e)||Yl(e)?e:void 0}function JGe(e){return e.flags&8388608?XTe(e):void 0}function XTe(e){return XGe(e)?e:Ho(e,XTe)}function KGe(e,t){return bt(e.modifiers,r=>r.kind===t)}function XGe(e){return gP(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function YTe(e,t,r){return Gi(t,r,e.typeParameters)||Gi(t,r,e.parameters)||Yt(t,e.type)}function $Te(e,t,r){return Gi(t,r,e.types)}function QTe(e,t,r){return Yt(t,e.type)}function ZTe(e,t,r){return Gi(t,r,e.elements)}function eAe(e,t,r){return Yt(t,e.expression)||Yt(t,e.questionDotToken)||Gi(t,r,e.typeArguments)||Gi(t,r,e.arguments)}function tAe(e,t,r){return Gi(t,r,e.statements)}function nAe(e,t,r){return Yt(t,e.label)}function rAe(e,t,r){return Gi(t,r,e.modifiers)||Yt(t,e.name)||Gi(t,r,e.typeParameters)||Gi(t,r,e.heritageClauses)||Gi(t,r,e.members)}function iAe(e,t,r){return Gi(t,r,e.elements)}function oAe(e,t,r){return Yt(t,e.propertyName)||Yt(t,e.name)}function aAe(e,t,r){return Yt(t,e.tagName)||Gi(t,r,e.typeArguments)||Yt(t,e.attributes)}function RP(e,t,r){return Yt(t,e.type)}function sAe(e,t,r){return Yt(t,e.tagName)||(e.isNameFirst?Yt(t,e.name)||Yt(t,e.typeExpression):Yt(t,e.typeExpression)||Yt(t,e.name))||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function DP(e,t,r){return Yt(t,e.tagName)||Yt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function nse(e,t,r){return Yt(t,e.name)}function iD(e,t,r){return Yt(t,e.tagName)||(typeof e.comment=="string"?void 0:Gi(t,r,e.comment))}function YGe(e,t,r){return Yt(t,e.expression)}function Ho(e,t,r){if(e===void 0||e.kind<=165)return;const i=gAe[e.kind];return i===void 0?void 0:i(e,t,r)}function NP(e,t,r){const i=lAe(e),o=[];for(;o.length=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(const p of lAe(s))i.push(p),o.push(s)}}}function lAe(e){const t=[];return Ho(e,r,r),t;function r(i){t.unshift(i)}}function cAe(e){e.externalModuleIndicator=rw(e)}function iw(e,t,r,i=!1,o){var s,l,u,p;(s=sr)==null||s.push(sr.Phase.Parse,"createSourceFile",{path:e},!0),il("beforeParse");let h;(l=od)==null||l.logStartParseSourceFile(e);const{languageVersion:m,setExternalModuleIndicator:v,impliedNodeFormat:A,jsDocParsingMode:I}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=C0.parseSourceFile(e,t,m,void 0,i,6,$a,I);else{const R=A===void 0?v:M=>(M.impliedNodeFormat=A,(v||cAe)(M));h=C0.parseSourceFile(e,t,m,void 0,i,o,R,I)}return(u=od)==null||u.logStopParseSourceFile(),il("afterParse"),ef("Parse","beforeParse","afterParse"),(p=sr)==null||p.pop(),h}function yI(e,t){return C0.parseIsolatedEntityName(e,t)}function ow(e,t){return C0.parseJsonText(e,t)}function ac(e){return e.externalModuleIndicator!==void 0}function UH(e,t,r,i=!1){const o=XH.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function rse(e,t,r){const i=C0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&C0.fixupParentReferences(i.jsDoc),i}function uAe(e,t,r){return C0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Su(e){return HH(e)!==void 0}function HH(e){const t=qx(e,Ik,!1);if(t)return t;if(Il(e,".ts")){const r=rc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function $Ge(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 qH(e,t){const r=[];for(const i of Xh(t,0)||et){const o=t.substring(i.pos,i.end);ZGe(r,i,o)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const 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 JH(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Xe(bA(r),u=>{const{types:p,lib:h,path:m,["resolution-mode"]:v}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){const A=$Ge(v,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...A?{resolutionMode:A}:{}})}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(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Ot(bA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const 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":{Xe(bA(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:N.fail("Unhandled pragma kind")}})}function QGe(e){if(YH.has(e))return YH.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return YH.set(e,t),t}function ZGe(e,t,r){const i=t.kind===2&&yAe.exec(r);if(i){const s=i[1].toLowerCase(),l=z2[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const p of l.args){const m=QGe(p.name).exec(r);if(!m&&!p.optional)return;if(m){const v=m[2]||m[3];if(p.captureSpan){const A=t.pos+m.index+m[1].length+1;u[p.name]={value:v,pos:A,end:A+v.length}}else u[p.name]=v}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&vAe.exec(r);if(o)return dAe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let l;for(;l=s.exec(r);)dAe(e,t,4,l)}}function dAe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=z2[o];if(!s||!(s.kind&r))return;const l=i[2],u=eVe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function eVe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;onew(hAe||(hAe=lu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(mAe||(mAe=lu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(_Ae||(_Ae=lu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(fAe||(fAe=lu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(pAe||(pAe=lu.getNodeConstructor()))(e,-1,-1)},Ah=Dk(1,KH),gAe={166:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},168:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.constraint)||Yt(r,t.default)||Yt(r,t.expression)},304:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.equalsToken)||Yt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Yt(r,t.expression)},169:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},172:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},171:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)||Yt(r,t.initializer)},303:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Yt(r,t.initializer)},260:function(t,r,i){return Yt(r,t.name)||Yt(r,t.exclamationToken)||Yt(r,t.type)||Yt(r,t.initializer)},208:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.propertyName)||Yt(r,t.name)||Yt(r,t.initializer)},181:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)},185:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)},184:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)},179:YTe,180:YTe,174:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.exclamationToken)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},173:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.questionToken)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)},176:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},177:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},178:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},262:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},218:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.asteriskToken)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.body)},219:function(t,r,i){return Gi(r,i,t.modifiers)||Gi(r,i,t.typeParameters)||Gi(r,i,t.parameters)||Yt(r,t.type)||Yt(r,t.equalsGreaterThanToken)||Yt(r,t.body)},175:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.body)},183:function(t,r,i){return Yt(r,t.typeName)||Gi(r,i,t.typeArguments)},182:function(t,r,i){return Yt(r,t.assertsModifier)||Yt(r,t.parameterName)||Yt(r,t.type)},186:function(t,r,i){return Yt(r,t.exprName)||Gi(r,i,t.typeArguments)},187:function(t,r,i){return Gi(r,i,t.members)},188:function(t,r,i){return Yt(r,t.elementType)},189:function(t,r,i){return Gi(r,i,t.elements)},192:$Te,193:$Te,194:function(t,r,i){return Yt(r,t.checkType)||Yt(r,t.extendsType)||Yt(r,t.trueType)||Yt(r,t.falseType)},195:function(t,r,i){return Yt(r,t.typeParameter)},205:function(t,r,i){return Yt(r,t.argument)||Yt(r,t.attributes)||Yt(r,t.qualifier)||Gi(r,i,t.typeArguments)},302:function(t,r,i){return Yt(r,t.assertClause)},196:QTe,198:QTe,199:function(t,r,i){return Yt(r,t.objectType)||Yt(r,t.indexType)},200:function(t,r,i){return Yt(r,t.readonlyToken)||Yt(r,t.typeParameter)||Yt(r,t.nameType)||Yt(r,t.questionToken)||Yt(r,t.type)||Gi(r,i,t.members)},201:function(t,r,i){return Yt(r,t.literal)},202:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.name)||Yt(r,t.questionToken)||Yt(r,t.type)},206:ZTe,207:ZTe,209:function(t,r,i){return Gi(r,i,t.elements)},210:function(t,r,i){return Gi(r,i,t.properties)},211:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.name)},212:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.questionDotToken)||Yt(r,t.argumentExpression)},213:eAe,214:eAe,215:function(t,r,i){return Yt(r,t.tag)||Yt(r,t.questionDotToken)||Gi(r,i,t.typeArguments)||Yt(r,t.template)},216:function(t,r,i){return Yt(r,t.type)||Yt(r,t.expression)},217:function(t,r,i){return Yt(r,t.expression)},220:function(t,r,i){return Yt(r,t.expression)},221:function(t,r,i){return Yt(r,t.expression)},222:function(t,r,i){return Yt(r,t.expression)},224:function(t,r,i){return Yt(r,t.operand)},229:function(t,r,i){return Yt(r,t.asteriskToken)||Yt(r,t.expression)},223:function(t,r,i){return Yt(r,t.expression)},225:function(t,r,i){return Yt(r,t.operand)},226:function(t,r,i){return Yt(r,t.left)||Yt(r,t.operatorToken)||Yt(r,t.right)},234:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},235:function(t,r,i){return Yt(r,t.expression)},238:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.type)},236:function(t,r,i){return Yt(r,t.name)},227:function(t,r,i){return Yt(r,t.condition)||Yt(r,t.questionToken)||Yt(r,t.whenTrue)||Yt(r,t.colonToken)||Yt(r,t.whenFalse)},230:function(t,r,i){return Yt(r,t.expression)},241:tAe,268:tAe,312:function(t,r,i){return Gi(r,i,t.statements)||Yt(r,t.endOfFileToken)},243:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.declarationList)},261:function(t,r,i){return Gi(r,i,t.declarations)},244:function(t,r,i){return Yt(r,t.expression)},245:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.thenStatement)||Yt(r,t.elseStatement)},246:function(t,r,i){return Yt(r,t.statement)||Yt(r,t.expression)},247:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},248:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.condition)||Yt(r,t.incrementor)||Yt(r,t.statement)},249:function(t,r,i){return Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},250:function(t,r,i){return Yt(r,t.awaitModifier)||Yt(r,t.initializer)||Yt(r,t.expression)||Yt(r,t.statement)},251:nAe,252:nAe,253:function(t,r,i){return Yt(r,t.expression)},254:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.statement)},255:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.caseBlock)},269:function(t,r,i){return Gi(r,i,t.clauses)},296:function(t,r,i){return Yt(r,t.expression)||Gi(r,i,t.statements)},297:function(t,r,i){return Gi(r,i,t.statements)},256:function(t,r,i){return Yt(r,t.label)||Yt(r,t.statement)},257:function(t,r,i){return Yt(r,t.expression)},258:function(t,r,i){return Yt(r,t.tryBlock)||Yt(r,t.catchClause)||Yt(r,t.finallyBlock)},299:function(t,r,i){return Yt(r,t.variableDeclaration)||Yt(r,t.block)},170:function(t,r,i){return Yt(r,t.expression)},263:rAe,231:rAe,264:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Gi(r,i,t.heritageClauses)||Gi(r,i,t.members)},265:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Gi(r,i,t.typeParameters)||Yt(r,t.type)},266:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Gi(r,i,t.members)},306:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},267:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.body)},271:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)||Yt(r,t.moduleReference)},272:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.importClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.attributes)},273:function(t,r,i){return Yt(r,t.name)||Yt(r,t.namedBindings)},300:function(t,r,i){return Gi(r,i,t.elements)},301:function(t,r,i){return Yt(r,t.name)||Yt(r,t.value)},270:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.name)},274:function(t,r,i){return Yt(r,t.name)},280:function(t,r,i){return Yt(r,t.name)},275:iAe,279:iAe,278:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.exportClause)||Yt(r,t.moduleSpecifier)||Yt(r,t.attributes)},276:oAe,281:oAe,277:function(t,r,i){return Gi(r,i,t.modifiers)||Yt(r,t.expression)},228:function(t,r,i){return Yt(r,t.head)||Gi(r,i,t.templateSpans)},239:function(t,r,i){return Yt(r,t.expression)||Yt(r,t.literal)},203:function(t,r,i){return Yt(r,t.head)||Gi(r,i,t.templateSpans)},204:function(t,r,i){return Yt(r,t.type)||Yt(r,t.literal)},167:function(t,r,i){return Yt(r,t.expression)},298:function(t,r,i){return Gi(r,i,t.types)},233:function(t,r,i){return Yt(r,t.expression)||Gi(r,i,t.typeArguments)},283:function(t,r,i){return Yt(r,t.expression)},282:function(t,r,i){return Gi(r,i,t.modifiers)},361:function(t,r,i){return Gi(r,i,t.elements)},284:function(t,r,i){return Yt(r,t.openingElement)||Gi(r,i,t.children)||Yt(r,t.closingElement)},288:function(t,r,i){return Yt(r,t.openingFragment)||Gi(r,i,t.children)||Yt(r,t.closingFragment)},285:aAe,286:aAe,292:function(t,r,i){return Gi(r,i,t.properties)},291:function(t,r,i){return Yt(r,t.name)||Yt(r,t.initializer)},293:function(t,r,i){return Yt(r,t.expression)},294:function(t,r,i){return Yt(r,t.dotDotDotToken)||Yt(r,t.expression)},287:function(t,r,i){return Yt(r,t.tagName)},295:function(t,r,i){return Yt(r,t.namespace)||Yt(r,t.name)},190:RP,191:RP,316:RP,322:RP,321:RP,323:RP,325:RP,324:function(t,r,i){return Gi(r,i,t.parameters)||Yt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))||Gi(r,i,t.tags)},354:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.name)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},317:function(t,r,i){return Yt(r,t.name)},318:function(t,r,i){return Yt(r,t.left)||Yt(r,t.right)},348:sAe,355:sAe,337:function(t,r,i){return Yt(r,t.tagName)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},336:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},335:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.class)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},352:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.constraint)||Gi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},353:function(t,r,i){return Yt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Yt(r,t.typeExpression)||Yt(r,t.fullName)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment)):Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment)))},345:function(t,r,i){return Yt(r,t.tagName)||Yt(r,t.fullName)||Yt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Gi(r,i,t.comment))},349:DP,351:DP,350:DP,347:DP,357:DP,356:DP,346:DP,330:function(t,r,i){return Xe(t.typeParameters,r)||Xe(t.parameters,r)||Yt(r,t.type)},331:nse,332:nse,333:nse,329:function(t,r,i){return Xe(t.jsDocPropertyTags,r)},334:iD,339:iD,340:iD,341:iD,342:iD,343:iD,338:iD,344:iD,360:YGe},(e=>{var t=My(99,!0),r=40960,i,o,s,l,u;function p(Q){return $e++,Q}var h={createBaseSourceFileNode:Q=>p(new u(Q,0,0)),createBaseIdentifierNode:Q=>p(new s(Q,0,0)),createBasePrivateIdentifierNode:Q=>p(new l(Q,0,0)),createBaseTokenNode:Q=>p(new o(Q,0,0)),createBaseNode:Q=>p(new i(Q,0,0))},m=Dk(11,h),{createNodeArray:v,createNumericLiteral:A,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:C,createToken:O,createArrayLiteralExpression:U,createObjectLiteralExpression:K,createPropertyAccessExpression:Z,createPropertyAccessChain:V,createElementAccessExpression:se,createElementAccessChain:G,createCallExpression:ne,createCallChain:he,createNewExpression:ve,createParenthesizedExpression:$,createBlock:Y,createVariableStatement:oe,createExpressionStatement:fe,createIfStatement:Ne,createWhileStatement:pe,createForStatement:ie,createForOfStatement:ye,createVariableDeclaration:Me,createVariableDeclarationList:Ue}=m,Ee,De,Pe,We,At,Se,je,at,Gt,yt,$e,It,tn,rn,Pn,Xn,hn=!0,Qt=!1;function $t(Q,xe,Ke,xt,Nt=!1,Kt,Fr,Wi=0){var Ri;if(Kt=G3(Q,Kt),Kt===6){const Yi=ao(Q,xe,Ke,xt,Nt);return lw(Yi,(Ri=Yi.statements[0])==null?void 0:Ri.expression,Yi.parseDiagnostics,!1,void 0),Yi.referencedFiles=et,Yi.typeReferenceDirectives=et,Yi.libReferenceDirectives=et,Yi.amdDependencies=et,Yi.hasNoDefaultLib=!1,Yi.pragmas=L6,Yi}Oi(Q,xe,Ke,xt,Kt,Wi);const mi=Mn(Ke,Nt,Kt,Fr||cAe,Wi);return No(),mi}e.parseSourceFile=$t;function _i(Q,xe){Oi("",Q,xe,void 0,1,0),ke();const Ke=te(!0),xt=J()===1&&!je.length;return No(),xt?Ke:void 0}e.parseIsolatedEntityName=_i;function ao(Q,xe,Ke=2,xt,Nt=!1){Oi(Q,xe,Ke,xt,6,0),De=Xn,ke();const Kt=L();let Fr,Wi;if(J()===1)Fr=ko([],Kt,Kt),Wi=_l();else{let Yi;for(;J()!==1;){let es;switch(J()){case 23:es=k1();break;case 112:case 97:case 106:es=_l();break;case 41:Ci(()=>ke()===9&&ke()!==59)?es=ei():es=ry();break;case 9:case 11:if(Ci(()=>ke()!==59)){es=$r();break}default:es=ry();break}Yi&&To(Yi)?Yi.push(es):Yi?Yi=[Yi,es]:(Yi=es,J()!==1&&pn(f.Unexpected_token))}const ds=To(Yi)?nn(U(Yi),Kt):N.checkDefined(Yi),Ds=fe(ds);nn(Ds,Kt),Fr=ko([Ds],Kt),Wi=As(1,f.Unexpected_token)}const Ri=Bt(Q,2,6,!1,Fr,Wi,De,$a);Nt&&tt(Ri),Ri.nodeCount=$e,Ri.identifierCount=tn,Ri.identifiers=It,Ri.parseDiagnostics=HA(je,Ri),at&&(Ri.jsDocDiagnostics=HA(at,Ri));const mi=Ri;return No(),mi}e.parseJsonText=ao;function Oi(Q,xe,Ke,xt,Nt,Kt){switch(i=lu.getNodeConstructor(),o=lu.getTokenConstructor(),s=lu.getIdentifierConstructor(),l=lu.getPrivateIdentifierConstructor(),u=lu.getSourceFileConstructor(),Ee=ga(Q),Pe=xe,We=Ke,Gt=xt,At=Nt,Se=pk(Nt),je=[],rn=0,It=new Map,tn=0,$e=0,De=0,hn=!0,At){case 1:case 2:Xn=524288;break;case 6:Xn=134742016;break;default:Xn=0;break}Qt=!1,t.setText(Pe),t.setOnError(Lt),t.setScriptTarget(We),t.setLanguageVariant(Se),t.setScriptKind(At),t.setJSDocParsingMode(Kt)}function No(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Pe=void 0,We=void 0,Gt=void 0,At=void 0,Se=void 0,De=0,je=void 0,at=void 0,rn=0,It=void 0,Pn=void 0,hn=!0}function Mn(Q,xe,Ke,xt,Nt){const Kt=Su(Ee);Kt&&(Xn|=33554432),De=Xn,ke();const Fr=na(0,lp);N.assert(J()===1);const Wi=_e(),Ri=Ar(_l(),Wi),mi=Bt(Ee,Q,Ke,Kt,Fr,Ri,De,xt);return qH(mi,Pe),JH(mi,Yi),mi.commentDirectives=t.getCommentDirectives(),mi.nodeCount=$e,mi.identifierCount=tn,mi.identifiers=It,mi.parseDiagnostics=HA(je,mi),mi.jsDocParsingMode=Nt,at&&(mi.jsDocDiagnostics=HA(at,mi)),xe&&tt(mi),mi;function Yi(ds,Ds,es){je.push(wR(Ee,Pe,ds,Ds,es))}}let Di=!1;function Ar(Q,xe){if(!xe)return Q;N.assert(!Q.jsDoc);const Ke=Hi(Ej(Q,Pe),xt=>Y_.parseJSDocComment(Q,xt.pos,xt.end-xt.pos));return Ke.length&&(Q.jsDoc=Ke),Di&&(Di=!1,Q.flags|=536870912),Q}function sn(Q){const xe=Gt,Ke=XH.createSyntaxCursor(Q);Gt={currentNode:Yi};const xt=[],Nt=je;je=[];let Kt=0,Fr=Ri(Q.statements,0);for(;Fr!==-1;){const ds=Q.statements[Kt],Ds=Q.statements[Fr];qr(xt,Q.statements,Kt,Fr),Kt=mi(Q.statements,Fr);const es=Br(Nt,$_=>$_.start>=ds.pos),Gf=es>=0?Br(Nt,$_=>$_.start>=Ds.pos,es):-1;es>=0&&qr(je,Nt,es,Gf>=0?Gf:void 0),yo(()=>{const $_=Xn;for(Xn|=65536,t.resetTokenState(Ds.pos),ke();J()!==1;){const Tg=t.getTokenFullStart(),sy=Zl(0,lp);if(xt.push(sy),Tg===t.getTokenFullStart()&&ke(),Kt>=0){const ly=Q.statements[Kt];if(sy.end===ly.pos)break;sy.end>ly.pos&&(Kt=mi(Q.statements,Kt+1))}}Xn=$_},2),Fr=Kt>=0?Ri(Q.statements,Kt):-1}if(Kt>=0){const ds=Q.statements[Kt];qr(xt,Q.statements,Kt);const Ds=Br(Nt,es=>es.start>=ds.pos);Ds>=0&&qr(je,Nt,Ds)}return Gt=xe,m.updateSourceFile(Q,dt(v(xt),Q.statements));function Wi(ds){return!(ds.flags&65536)&&!!(ds.transformFlags&67108864)}function Ri(ds,Ds){for(let es=Ds;es118}function xo(){return J()===80?!0:J()===127&&Rt()||J()===135&&yn()?!1:J()>118}function Dn(Q,xe,Ke=!0){return J()===Q?(Ke&&ke(),!0):(xe?pn(xe):pn(f._0_expected,fa(Q)),!1)}const Fs=Object.keys(Q2).filter(Q=>Q.length>2);function Ql(Q){if(r1(Q)){q(ka(Pe,Q.template.pos),Q.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const xe=Ve(Q)?Sr(Q):void 0;if(!xe||!tf(xe,We)){pn(f._0_expected,fa(27));return}const Ke=ka(Pe,Q.pos);switch(xe){case"const":case"let":case"var":q(Ke,Q.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Lo(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":q(Ke,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Lo(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":Lo(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}const xt=YN(xe,Fs,Nt=>Nt)??cs(xe);if(xt){q(Ke,Q.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,xt);return}J()!==0&&q(Ke,Q.end,f.Unexpected_keyword_or_identifier)}function Lo(Q,xe,Ke){J()===Ke?pn(xe):pn(Q,t.getTokenValue())}function cs(Q){for(const xe of Fs)if(Q.length>xe.length+2&&uo(Q,xe))return`${xe} ${Q.slice(xe.length)}`}function Vs(Q,xe,Ke){if(J()===60&&!t.hasPrecedingLineBreak()){pn(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===21){pn(f.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(xe&&!sc()){Ke?pn(f._0_expected,fa(27)):pn(f.Expected_for_property_initializer);return}if(!Nl()){if(Ke){pn(f._0_expected,fa(27));return}Ql(Q)}}function yl(Q){return J()===Q?(Tt(),!0):(N.assert(s3(Q)),pn(f._0_expected,fa(Q)),!1)}function uu(Q,xe,Ke,xt){if(J()===xe){ke();return}const Nt=pn(f._0_expected,fa(xe));Ke&&Nt&&wa(Nt,wR(Ee,Pe,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,fa(Q),fa(xe)))}function ho(Q){return J()===Q?(ke(),!0):!1}function pa(Q){if(J()===Q)return _l()}function du(Q){if(J()===Q)return wf()}function As(Q,xe,Ke){return pa(Q)||js(Q,!1,xe||f._0_expected,Ke||fa(Q))}function La(Q){const xe=du(Q);return xe||(N.assert(s3(Q)),js(Q,!1,f._0_expected,fa(Q)))}function _l(){const Q=L(),xe=J();return ke(),nn(O(xe),Q)}function wf(){const Q=L(),xe=J();return Tt(),nn(O(xe),Q)}function sc(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Nl(){return sc()?(J()===27&&ke(),!0):!1}function ul(){return Nl()||Dn(27)}function ko(Q,xe,Ke,xt){const Nt=v(Q,xt);return gh(Nt,xe,Ke??t.getTokenFullStart()),Nt}function nn(Q,xe,Ke){return gh(Q,xe,Ke??t.getTokenFullStart()),Xn&&(Q.flags|=Xn),Qt&&(Qt=!1,Q.flags|=262144),Q}function js(Q,xe,Ke,...xt){xe?_n(t.getTokenFullStart(),0,Ke,...xt):Ke&&pn(Ke,...xt);const Nt=L(),Kt=Q===80?M("",void 0):wv(Q)?m.createTemplateLiteralLikeNode(Q,"","",void 0):Q===9?A("",void 0):Q===11?I("",void 0):Q===282?m.createMissingDeclaration():O(Q);return nn(Kt,Nt)}function nu(Q){let xe=It.get(Q);return xe===void 0&&It.set(Q,xe=Q),xe}function pu(Q,xe,Ke){if(Q){tn++;const Wi=L(),Ri=J(),mi=nu(t.getTokenValue()),Yi=t.hasExtendedUnicodeEscape();return me(),nn(M(mi,Ri,Yi),Wi)}if(J()===81)return pn(Ke||f.Private_identifiers_are_not_allowed_outside_class_bodies),pu(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return pu(!0);tn++;const xt=J()===1,Nt=t.isReservedWord(),Kt=t.getTokenText(),Fr=Nt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return js(80,xt,xe||Fr,Kt)}function Ap(Q){return pu(Jr(),void 0,Q)}function Ms(Q,xe){return pu(xo(),Q,xe)}function Rc(Q){return pu(ad(J()),Q)}function de(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&pn(f.Unicode_escape_sequence_cannot_appear_here),pu(ad(J()))}function ee(){return ad(J())||J()===11||J()===9}function we(){return ad(J())||J()===11}function Et(Q){if(J()===11||J()===9){const xe=$r();return xe.text=nu(xe.text),xe}return J()===23?Er():J()===81?yr():Rc()}function un(){return Et()}function Er(){const Q=L();Dn(23);const xe=Sn(qe);return Dn(24),nn(m.createComputedPropertyName(xe),Q)}function yr(){const Q=L(),xe=C(nu(t.getTokenValue()));return ke(),nn(xe,Q)}function jr(Q){return J()===Q&&Ii(Mr)}function xi(){return ke(),t.hasPrecedingLineBreak()?!1:Us()}function Mr(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Ci(gc):J()===156?Ci(Tl):$o();case 90:return gc();case 126:case 139:case 153:return ke(),Us();default:return xi()}}function $o(){return J()===60||J()!==42&&J()!==130&&J()!==19&&Us()}function Tl(){return ke(),$o()}function Hc(){return ky(J())&&Ii(Mr)}function Us(){return J()===23||J()===19||J()===42||J()===26||ee()}function gc(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Ci(PT)||J()===134&&Ci(MT)}function Ss(Q,xe){if(yc(Q))return!0;switch(Q){case 0:case 1:case 3:return!(J()===27&&xe)&&O1();case 2:return J()===84||J()===90;case 4:return Ci(Ka);case 5:return Ci(Eg)||J()===27&&!xe;case 6:return J()===23||ee();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return ee()}case 18:return ee();case 9:return J()===23||J()===26||ee();case 24:return we();case 7:return J()===19?Ci(qc):xe?xo()&&!hd():ex()&&!hd();case 8:return rs();case 10:return J()===28||J()===26||rs();case 19:return J()===103||J()===87||xo();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||a_();case 16:return H_(!1);case 17:return H_(!0);case 20:case 21:return J()===28||_g();case 22:return D();case 23:return J()===161&&Ci(dN)?!1:ad(J());case 13:return ad(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever(Q,"Non-exhaustive case in 'isListElement'.")}}function qc(){if(N.assert(J()===19),ke()===20){const Q=ke();return Q===28||Q===19||Q===96||Q===119}return!0}function op(){return ke(),xo()}function Wc(){return ke(),ad(J())}function cm(){return ke(),Gne(J())}function hd(){return J()===119||J()===96?Ci(Ce):!1}function Ce(){return ke(),a_()}function Wt(){return ke(),_g()}function Jn(Q){if(J()===1)return!0;switch(Q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===20;case 3:return J()===20||J()===84||J()===90;case 7:return J()===19||J()===96||J()===119;case 8:return vo();case 19:return J()===32||J()===21||J()===19||J()===96||J()===119;case 11:return J()===22||J()===27;case 15:case 21:case 10:return J()===24;case 17:case 16:case 18:return J()===22||J()===24;case 20:return J()!==28;case 22:return J()===19||J()===20;case 13:return J()===32||J()===44;case 14:return J()===30&&Ci(vi);default:return!1}}function vo(){return!!(sc()||ey(J())||J()===39)}function Qo(){N.assert(rn,"Missing parsing context");for(let Q=0;Q<26;Q++)if(rn&1<=0)}function Xg(Q){return Q===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ip(){const Q=ko([],L());return Q.isMissingList=!0,Q}function mg(Q){return!!Q.isMissingList}function Ud(Q,xe,Ke,xt){if(Dn(Ke)){const Nt=Bu(Q,xe);return Dn(xt),Nt}return Ip()}function te(Q,xe){const Ke=L();let xt=Q?Rc(xe):Ms(xe);for(;ho(25)&&J()!==30;)xt=nn(m.createQualifiedName(xt,zt(Q,!1,!0)),Ke);return xt}function ct(Q,xe){return nn(m.createQualifiedName(Q,xe),Q.pos)}function zt(Q,xe,Ke){if(t.hasPrecedingLineBreak()&&ad(J())&&Ci(qp))return js(80,!0,f.Identifier_expected);if(J()===81){const xt=yr();return xe?xt:js(80,!0,f.Identifier_expected)}return Q?Ke?Rc():de():Ms()}function jt(Q){const xe=L(),Ke=[];let xt;do xt=oi(Q),Ke.push(xt);while(xt.literal.kind===17);return ko(Ke,xe)}function F(Q){const xe=L();return nn(m.createTemplateExpression(io(Q),jt(Q)),xe)}function Te(){const Q=L();return nn(m.createTemplateLiteralType(io(!1),st()),Q)}function st(){const Q=L(),xe=[];let Ke;do Ke=Jt(),xe.push(Ke);while(Ke.literal.kind===17);return ko(xe,Q)}function Jt(){const Q=L();return nn(m.createTemplateLiteralTypeSpan(vc(),rr(!1)),Q)}function rr(Q){return J()===20?(Bn(Q),Fa()):As(18,f._0_expected,fa(20))}function oi(Q){const xe=L();return nn(m.createTemplateSpan(Sn(qe),rr(Q)),xe)}function $r(){return Ol(J())}function io(Q){!Q&&t.getTokenFlags()&26656&&Bn(!1);const xe=Ol(J());return N.assert(xe.kind===16,"Template head has wrong token kind"),xe}function Fa(){const Q=Ol(J());return N.assert(Q.kind===17||Q.kind===18,"Template fragment has wrong token kind"),Q}function za(Q){const xe=Q===15||Q===18,Ke=t.getTokenText();return Ke.substring(1,Ke.length-(t.isUnterminated()?0:xe?1:2))}function Ol(Q){const xe=L(),Ke=wv(Q)?m.createTemplateLiteralLikeNode(Q,t.getTokenValue(),za(Q),t.getTokenFlags()&7176):Q===9?A(t.getTokenValue(),t.getNumericLiteralFlags()):Q===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):fC(Q)?R(Q,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(Ke.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ke.isUnterminated=!0),ke(),nn(Ke,xe)}function fu(){return te(!0,f.Type_expected)}function Dc(){if(!t.hasPrecedingLineBreak()&&Hn()===30)return Ud(20,vc,30,32)}function xp(){const Q=L();return nn(m.createTypeReferenceNode(fu(),Dc()),Q)}function Hd(Q){switch(Q.kind){case 183:return zl(Q.typeName);case 184:case 185:{const{parameters:xe,type:Ke}=Q;return mg(xe)||Hd(Ke)}case 196:return Hd(Q.type);default:return!1}}function pb(Q){return ke(),nn(m.createTypePredicateNode(void 0,Q,vc()),Q.pos)}function us(){const Q=L();return ke(),nn(m.createThisTypeNode(),Q)}function km(){const Q=L();return ke(),nn(m.createJSDocAllType(),Q)}function wm(){const Q=L();return ke(),nn(m.createJSDocNonNullableType(mb(),!1),Q)}function Ui(){const Q=L();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?nn(m.createJSDocUnknownType(),Q):nn(m.createJSDocNullableType(vc(),!1),Q)}function Yg(){const Q=L(),xe=_e();if(Ii(Bf)){const Ke=gn(36),xt=Ut(59,!1);return Ar(nn(m.createJSDocFunctionType(Ke,xt),Q),xe)}return nn(m.createTypeReferenceNode(Rc(),void 0),Q)}function rv(){const Q=L();let xe;return(J()===110||J()===105)&&(xe=Rc(),Dn(59)),nn(m.createParameterDeclaration(void 0,void 0,xe,void 0,Om(),void 0),Q)}function Om(){t.setInJSDocType(!0);const Q=L();if(ho(144)){const xt=m.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),nn(xt,Q)}const xe=ho(26);let Ke=_b();return t.setInJSDocType(!1),xe&&(Ke=nn(m.createJSDocVariadicType(Ke),Q)),J()===64?(ke(),nn(m.createJSDocOptionalType(Ke),Q)):Ke}function I1(){const Q=L();Dn(114);const xe=te(!0),Ke=t.hasPrecedingLineBreak()?void 0:nE();return nn(m.createTypeQueryNode(xe,Ke),Q)}function x1(){const Q=L(),xe=kh(!1,!0),Ke=Ms();let xt,Nt;ho(96)&&(_g()||!a_()?xt=vc():Nt=gb());const Kt=ho(64)?vc():void 0,Fr=m.createTypeParameterDeclaration(xe,Ke,xt,Kt);return Fr.expression=Nt,nn(Fr,Q)}function mf(){if(J()===30)return Ud(19,x1,30,32)}function H_(Q){return J()===26||rs()||ky(J())||J()===60||_g(!Q)}function _f(Q){const xe=Ir(f.Private_identifiers_cannot_be_used_as_parameters);return vL(xe)===0&&!bt(Q)&&ky(J())&&ke(),xe}function $g(){return Jr()||J()===23||J()===19}function ze(Q){return Mt(Q)}function Ze(Q){return Mt(Q,!1)}function Mt(Q,xe=!0){const Ke=L(),xt=_e(),Nt=Q?le(()=>kh(!0)):Fe(()=>kh(!0));if(J()===110){const Ri=m.createParameterDeclaration(Nt,void 0,pu(!0),void 0,ov(),void 0),mi=Xc(Nt);return mi&&Oe(mi,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ar(nn(Ri,Ke),xt)}const Kt=hn;hn=!1;const Fr=pa(26);if(!xe&&!$g())return;const Wi=Ar(nn(m.createParameterDeclaration(Nt,Fr,_f(Nt),pa(58),ov(),s_()),Ke),xt);return hn=Kt,Wi}function Ut(Q,xe){if(vn(Q,xe))return He(_b)}function vn(Q,xe){return Q===39?(Dn(Q),!0):ho(59)?!0:xe&&J()===39?(pn(f._0_expected,fa(59)),ke(),!0):!1}function Yn(Q,xe){const Ke=Rt(),xt=yn();hi(!!(Q&1)),Io(!!(Q&2));const Nt=Q&32?Bu(17,rv):Bu(16,()=>xe?ze(xt):Ze(xt));return hi(Ke),Io(xt),Nt}function gn(Q){if(!Dn(21))return Ip();const xe=Yn(Q,!0);return Dn(22),xe}function $n(){ho(28)||ul()}function fi(Q){const xe=L(),Ke=_e();Q===180&&Dn(105);const xt=mf(),Nt=gn(4),Kt=Ut(59,!0);$n();const Fr=Q===179?m.createCallSignature(xt,Nt,Kt):m.createConstructSignature(xt,Nt,Kt);return Ar(nn(Fr,xe),Ke)}function cr(){return J()===23&&Ci(ri)}function ri(){if(ke(),J()===26||J()===24)return!0;if(ky(J())){if(ke(),xo())return!0}else if(xo())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function fr(Q,xe,Ke){const xt=Ud(16,()=>ze(!1),23,24),Nt=ov();$n();const Kt=m.createIndexSignature(Ke,xt,Nt);return Ar(nn(Kt,Q),xe)}function Zo(Q,xe,Ke){const xt=un(),Nt=pa(58);let Kt;if(J()===21||J()===30){const Fr=mf(),Wi=gn(4),Ri=Ut(59,!0);Kt=m.createMethodSignature(Ke,xt,Nt,Fr,Wi,Ri)}else{const Fr=ov();Kt=m.createPropertySignature(Ke,xt,Nt,Fr),J()===64&&(Kt.initializer=s_())}return $n(),Ar(nn(Kt,Q),xe)}function Ka(){if(J()===21||J()===30||J()===139||J()===153)return!0;let Q=!1;for(;ky(J());)Q=!0,ke();return J()===23?!0:(ee()&&(Q=!0,ke()),Q?J()===21||J()===30||J()===58||J()===59||J()===28||sc():!1)}function Zu(){if(J()===21||J()===30)return fi(179);if(J()===105&&Ci(mu))return fi(180);const Q=L(),xe=_e(),Ke=kh(!1);return jr(139)?oy(Q,xe,Ke,177,4):jr(153)?oy(Q,xe,Ke,178,4):cr()?fr(Q,xe,Ke):Zo(Q,xe,Ke)}function mu(){return ke(),J()===21||J()===30}function Qg(){return ke()===25}function V0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function HI(){const Q=L();return nn(m.createTypeLiteralNode(j0()),Q)}function j0(){let Q;return Dn(19)?(Q=na(4,Zu),Dn(20)):Q=Ip(),Q}function $D(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&op()&&ke()===103)}function QD(){const Q=L(),xe=Rc();Dn(103);const Ke=vc();return nn(m.createTypeParameterDeclaration(void 0,xe,Ke,void 0),Q)}function ZD(){const Q=L();Dn(19);let xe;(J()===148||J()===40||J()===41)&&(xe=_l(),xe.kind!==148&&Dn(148)),Dn(23);const Ke=QD(),xt=ho(130)?vc():void 0;Dn(24);let Nt;(J()===58||J()===40||J()===41)&&(Nt=_l(),Nt.kind!==58&&Dn(58));const Kt=ov();ul();const Fr=na(4,Zu);return Dn(20),nn(m.createMappedTypeNode(xe,Ke,xt,Nt,Kt,Fr),Q)}function mT(){const Q=L();if(ho(26))return nn(m.createRestTypeNode(vc()),Q);const xe=vc();if(YR(xe)&&xe.pos===xe.type.pos){const Ke=m.createOptionalTypeNode(xe.type);return dt(Ke,xe),Ke.flags=xe.flags,Ke}return xe}function R1(){return ke()===59||J()===58&&ke()===59}function qI(){return J()===26?ad(ke())&&R1():ad(J())&&R1()}function eN(){if(Ci(qI)){const Q=L(),xe=_e(),Ke=pa(26),xt=Rc(),Nt=pa(58);Dn(59);const Kt=mT(),Fr=m.createNamedTupleMember(Ke,xt,Nt,Kt);return Ar(nn(Fr,Q),xe)}return mT()}function JI(){const Q=L();return nn(m.createTupleTypeNode(Ud(21,eN,23,24)),Q)}function KI(){const Q=L();Dn(21);const xe=vc();return Dn(22),nn(m.createParenthesizedType(xe),Q)}function XI(){let Q;if(J()===128){const xe=L();ke();const Ke=nn(O(128),xe);Q=ko([Ke],xe)}return Q}function YI(){const Q=L(),xe=_e(),Ke=XI(),xt=ho(105);N.assert(!Ke||xt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Nt=mf(),Kt=gn(4),Fr=Ut(39,!1),Wi=xt?m.createConstructorTypeNode(Ke,Nt,Kt,Fr):m.createFunctionTypeNode(Nt,Kt,Fr);return Ar(nn(Wi,Q),xe)}function _T(){const Q=_l();return J()===25?void 0:Q}function $I(Q){const xe=L();Q&&ke();let Ke=J()===112||J()===97||J()===106?_l():Ol(J());return Q&&(Ke=nn(m.createPrefixUnaryExpression(41,Ke),xe)),nn(m.createLiteralTypeNode(Ke),xe)}function D1(){return ke(),J()===102}function N1(){De|=4194304;const Q=L(),xe=ho(114);Dn(102),Dn(21);const Ke=vc();let xt;if(ho(28)){const Fr=t.getTokenStart();Dn(19);const Wi=J();if(Wi===118||Wi===132?ke():pn(f._0_expected,fa(118)),Dn(59),xt=Rb(Wi,!0),!Dn(20)){const Ri=tl(je);Ri&&Ri.code===f._0_expected.code&&wa(Ri,wR(Ee,Pe,Fr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Dn(22);const Nt=ho(25)?fu():void 0,Kt=Dc();return nn(m.createImportTypeNode(Ke,xt,Nt,Kt,xe),Q)}function fb(){return ke(),J()===9||J()===10}function mb(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ii(_T)||xp();case 67:t.reScanAsteriskEqualsToken();case 42:return km();case 61:t.reScanQuestionToken();case 58:return Ui();case 100:return Yg();case 54:return wm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return $I();case 41:return Ci(fb)?$I(!0):xp();case 116:return _l();case 110:{const Q=us();return J()===142&&!t.hasPrecedingLineBreak()?pb(Q):Q}case 114:return Ci(D1)?N1():I1();case 19:return Ci($D)?ZD():HI();case 23:return JI();case 21:return KI();case 102:return N1();case 131:return Ci(qp)?ZI():xp();case 16:return Te();default:return xp()}}function _g(Q){switch(J()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Q;case 41:return!Q&&Ci(fb);case 21:return!Q&&Ci(U0);default:return xo()}}function U0(){return ke(),J()===22||H_(!1)||_g()}function ts(){const Q=L();let xe=mb();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),xe=nn(m.createJSDocNonNullableType(xe,!0),Q);break;case 58:if(Ci(Wt))return xe;ke(),xe=nn(m.createJSDocNullableType(xe,!0),Q);break;case 23:if(Dn(23),_g()){const Ke=vc();Dn(24),xe=nn(m.createIndexedAccessTypeNode(xe,Ke),Q)}else Dn(24),xe=nn(m.createArrayTypeNode(xe),Q);break;default:return xe}return xe}function hT(Q){const xe=L();return Dn(Q),nn(m.createTypeOperatorNode(Q,Ch()),xe)}function tN(){if(ho(96)){const Q=mt(vc);if(_t()||J()!==58)return Q}}function H0(){const Q=L(),xe=Ms(),Ke=Ii(tN),xt=m.createTypeParameterDeclaration(void 0,xe,Ke);return nn(xt,Q)}function Zg(){const Q=L();return Dn(140),nn(m.createInferTypeNode(H0()),Q)}function Ch(){const Q=J();switch(Q){case 143:case 158:case 148:return hT(Q);case 140:return Zg()}return He(ts)}function Wf(Q){if(gT()){const xe=YI();let Ke;return bh(xe)?Ke=Q?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:Ke=Q?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,Oe(xe,Ke),xe}}function qd(Q,xe,Ke){const xt=L(),Nt=Q===52,Kt=ho(Q);let Fr=Kt&&Wf(Nt)||xe();if(J()===Q||Kt){const Wi=[Fr];for(;ho(Q);)Wi.push(Wf(Nt)||xe());Fr=nn(Ke(ko(Wi,xt)),xt)}return Fr}function Rp(){return qd(51,Ch,m.createIntersectionTypeNode)}function ap(){return qd(52,Rp,m.createUnionTypeNode)}function iv(){return ke(),J()===105}function gT(){return J()===30||J()===21&&Ci(QI)?!0:J()===105||J()===128&&Ci(iv)}function nN(){if(ky(J())&&kh(!1),xo()||J()===110)return ke(),!0;if(J()===23||J()===19){const Q=je.length;return Ir(),Q===je.length}return!1}function QI(){return ke(),!!(J()===22||J()===26||nN()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function _b(){const Q=L(),xe=xo()&&Ii(q0),Ke=vc();return xe?nn(m.createTypePredicateNode(void 0,xe,Ke),Q):Ke}function q0(){const Q=Ms();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),Q}function ZI(){const Q=L(),xe=As(131),Ke=J()===110?us():Ms(),xt=ho(142)?vc():void 0;return nn(m.createTypePredicateNode(xe,Ke,xt),Q)}function vc(){if(Xn&81920)return ma(81920,vc);if(gT())return YI();const Q=L(),xe=ap();if(!_t()&&!t.hasPrecedingLineBreak()&&ho(96)){const Ke=mt(vc);Dn(58);const xt=He(vc);Dn(59);const Nt=He(vc);return nn(m.createConditionalTypeNode(xe,Ke,xt,Nt),Q)}return xe}function ov(){return ho(59)?vc():void 0}function ex(){switch(J()){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 Ci(V0);default:return xo()}}function a_(){if(ex())return!0;switch(J()){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 c_()?!0:xo()}}function yT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&a_()}function qe(){const Q=Vt();Q&&Qi(!1);const xe=L();let Ke=_u(!0),xt;for(;xt=pa(28);)Ke=C1(Ke,xt,_u(!0),xe);return Q&&Qi(!0),Ke}function s_(){return ho(64)?_u(!0):void 0}function _u(Q){if(J0())return hb();const xe=sv(Q)||vT(Q);if(xe)return xe;const Ke=L(),xt=_e(),Nt=dm(0);return Nt.kind===80&&J()===39?av(Ke,Nt,Q,xt,void 0):ep(Nt)&&zy(en())?C1(Nt,_l(),_u(Q),Ke):um(Nt,Ke,Q)}function J0(){return J()===127?Rt()?!0:Ci(Hs):!1}function tx(){return ke(),!t.hasPrecedingLineBreak()&&xo()}function hb(){const Q=L();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||a_())?nn(m.createYieldExpression(pa(42),_u(!0)),Q):nn(m.createYieldExpression(void 0,void 0),Q)}function av(Q,xe,Ke,xt,Nt){N.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Kt=m.createParameterDeclaration(void 0,void 0,xe,void 0,void 0,void 0);nn(Kt,xe.pos);const Fr=ko([Kt],Kt.pos,Kt.end),Wi=As(39),Ri=ET(!!Nt,Ke),mi=m.createArrowFunction(Nt,void 0,Fr,void 0,Wi,Ri);return Ar(nn(mi,Q),xt)}function sv(Q){const xe=CM();if(xe!==0)return xe===1?K0(!0,!0):Ii(()=>l_(Q))}function CM(){return J()===21||J()===30||J()===134?Ci(Xa):J()===39?1:0}function Xa(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;const Q=J(),xe=ke();if(Q===21){if(xe===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(xe===23||xe===19)return 2;if(xe===26)return 1;if(ky(xe)&&xe!==134&&Ci(op))return ke()===130?0:1;if(!xo()&&xe!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),J()===59||J()===28||J()===64||J()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return N.assert(Q===30),!xo()&&J()!==87?0:Se===1?Ci(()=>{ho(87);const xt=ke();if(xt===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(xt===28||xt===64)return!0;return!1})?1:0:2}function l_(Q){const xe=t.getTokenStart();if(Pn?.has(xe))return;const Ke=K0(!1,Q);return Ke||(Pn||(Pn=new Set)).add(xe),Ke}function vT(Q){if(J()===134&&Ci(bT)===1){const xe=L(),Ke=_e(),xt=vf(),Nt=dm(0);return av(xe,Nt,Q,Ke,xt)}}function bT(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;const Q=dm(0);if(!t.hasPrecedingLineBreak()&&Q.kind===80&&J()===39)return 1}return 0}function K0(Q,xe){const Ke=L(),xt=_e(),Nt=vf(),Kt=bt(Nt,mP)?2:0,Fr=mf();let Wi;if(Dn(21)){if(Q)Wi=Yn(Kt,Q);else{const Tg=Yn(Kt,Q);if(!Tg)return;Wi=Tg}if(!Dn(22)&&!Q)return}else{if(!Q)return;Wi=Ip()}const Ri=J()===59,mi=Ut(59,!1);if(mi&&!Q&&Hd(mi))return;let Yi=mi;for(;Yi?.kind===196;)Yi=Yi.type;const ds=Yi&&$R(Yi);if(!Q&&J()!==39&&(ds||J()!==19))return;const Ds=J(),es=As(39),Gf=Ds===39||Ds===19?ET(bt(Nt,mP),xe):Ms();if(!xe&&Ri&&J()!==59)return;const $_=m.createArrowFunction(Nt,Fr,Wi,mi,es,Gf);return Ar(nn($_,Ke),xt)}function ET(Q,xe){if(J()===19)return Eb(Q?2:0);if(J()!==27&&J()!==100&&J()!==86&&O1()&&!yT())return Eb(16|(Q?2:0));const Ke=hn;hn=!1;const xt=Q?le(()=>_u(xe)):Fe(()=>_u(xe));return hn=Ke,xt}function um(Q,xe,Ke){const xt=pa(58);if(!xt)return Q;let Nt;return nn(m.createConditionalExpression(Q,xt,ma(r,()=>_u(!1)),Nt=As(59),Yf(Nt)?_u(Ke):js(80,!1,f._0_expected,fa(59))),xe)}function dm(Q){const xe=L(),Ke=gb();return nx(Q,Ke,xe)}function ey(Q){return Q===103||Q===165}function nx(Q,xe,Ke){for(;;){en();const xt=rk(J());if(!(J()===43?xt>=Q:xt>Q)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{const Kt=J();ke(),xe=Kt===152?rN(xe,vc()):Xi(xe,vc())}}else xe=C1(xe,_l(),dm(xt),Ke)}return xe}function c_(){return Ye()&&J()===103?!1:rk(J())>0}function rN(Q,xe){return nn(m.createSatisfiesExpression(Q,xe),Q.pos)}function C1(Q,xe,Ke,xt){return nn(m.createBinaryExpression(Q,xe,Ke),xt)}function Xi(Q,xe){return nn(m.createAsExpression(Q,xe),Q.pos)}function ei(){const Q=L();return nn(m.createPrefixUnaryExpression(J(),Ge(bl)),Q)}function Ph(){const Q=L();return nn(m.createDeleteExpression(Ge(bl)),Q)}function Jd(){const Q=L();return nn(m.createTypeOfExpression(Ge(bl)),Q)}function PM(){const Q=L();return nn(m.createVoidExpression(Ge(bl)),Q)}function ty(){return J()===135?yn()?!0:Ci(Hs):!1}function MM(){const Q=L();return nn(m.createAwaitExpression(Ge(bl)),Q)}function gb(){if(Up()){const Ke=L(),xt=hg();return J()===43?nx(rk(J()),xt,Ke):xt}const Q=J(),xe=bl();if(J()===43){const Ke=ka(Pe,xe.pos),{end:xt}=xe;xe.kind===216?q(Ke,xt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(s3(Q)),q(Ke,xt,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,fa(Q)))}return xe}function bl(){switch(J()){case 40:case 41:case 55:case 54:return ei();case 91:return Ph();case 114:return Jd();case 116:return PM();case 30:return Se===1?ny(!0,void 0,void 0,!0):Fm();case 135:if(ty())return MM();default:return hg()}}function Up(){switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Se!==1)return!1;default:return!0}}function hg(){if(J()===46||J()===47){const xe=L();return nn(m.createPrefixUnaryExpression(J(),Ge(pm)),xe)}else if(Se===1&&J()===30&&Ci(cm))return ny(!0);const Q=pm();if(N.assert(ep(Q)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){const xe=J();return ke(),nn(m.createPostfixUnaryExpression(Q,xe),Q.pos)}return Q}function pm(){const Q=L();let xe;return J()===102?Ci(mu)?(De|=4194304,xe=_l()):Ci(Qg)?(ke(),ke(),xe=nn(m.createMetaProperty(102,Rc()),Q),De|=8388608):xe=yb():xe=J()===108?Wm():yb(),cv(Q,xe)}function yb(){const Q=L(),xe=X0();return ru(Q,xe,!0)}function Wm(){const Q=L();let xe=_l();if(J()===30){const Ke=L(),xt=Ii(ur);xt!==void 0&&(q(Ke,L(),f.super_may_not_use_type_arguments),to()||(xe=m.createExpressionWithTypeArguments(xe,xt)))}return J()===21||J()===25||J()===23?xe:(As(25,f.super_must_be_followed_by_an_argument_list_or_member_access),nn(Z(xe,zt(!0,!0,!0)),Q))}function ny(Q,xe,Ke,xt=!1){const Nt=L(),Kt=yg(Q);let Fr;if(Kt.kind===286){let Wi=gg(Kt),Ri;const mi=Wi[Wi.length-1];if(mi?.kind===284&&!N0(mi.openingElement.tagName,mi.closingElement.tagName)&&N0(Kt.tagName,mi.closingElement.tagName)){const Yi=mi.children.end,ds=nn(m.createJsxElement(mi.openingElement,mi.children,nn(m.createJsxClosingElement(nn(M(""),Yi,Yi)),Yi,Yi)),mi.openingElement.pos,Yi);Wi=ko([...Wi.slice(0,Wi.length-1),ds],Wi.pos,Yi),Ri=mi.closingElement}else Ri=M1(Kt,Q),N0(Kt.tagName,Ri.tagName)||(Ke&&W_(Ke)&&N0(Ri.tagName,Ke.tagName)?Oe(Kt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,vC(Pe,Kt.tagName)):Oe(Ri.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,vC(Pe,Kt.tagName)));Fr=nn(m.createJsxElement(Kt,Wi,Ri),Nt)}else Kt.kind===289?Fr=nn(m.createJsxFragment(Kt,gg(Kt),AT(Q)),Nt):(N.assert(Kt.kind===285),Fr=Kt);if(!xt&&Q&&J()===30){const Wi=typeof xe>"u"?Fr.pos:xe,Ri=Ii(()=>ny(!0,Wi));if(Ri){const mi=js(28,!1);return tP(mi,Ri.pos,0),q(ka(Pe,Wi),Ri.end,f.JSX_expressions_must_have_one_parent_element),nn(m.createBinaryExpression(Fr,mi,Ri),Nt)}}return Fr}function P1(){const Q=L(),xe=m.createJsxText(t.getTokenValue(),yt===13);return yt=t.scanJsxToken(),nn(xe,Q)}function ST(Q,xe){switch(xe){case 1:if(mI(Q))Oe(Q,f.JSX_fragment_has_no_corresponding_closing_tag);else{const Ke=Q.tagName,xt=Math.min(ka(Pe,Ke.pos),Ke.end);q(xt,Ke.end,f.JSX_element_0_has_no_corresponding_closing_tag,vC(Pe,Q.tagName))}return;case 31:case 7:return;case 12:case 13:return P1();case 19:return iN(!1);case 30:return ny(!1,void 0,Q);default:return N.assertNever(xe)}}function gg(Q){const xe=[],Ke=L(),xt=rn;for(rn|=16384;;){const Nt=ST(Q,yt=t.reScanJsxToken());if(!Nt||(xe.push(Nt),W_(Q)&&Nt?.kind===284&&!N0(Nt.openingElement.tagName,Nt.closingElement.tagName)&&N0(Q.tagName,Nt.closingElement.tagName)))break}return rn=xt,ko(xe,Ke)}function rx(){const Q=L();return nn(m.createJsxAttributes(na(13,oN)),Q)}function yg(Q){const xe=L();if(Dn(30),J()===32)return ir(),nn(m.createJsxOpeningFragment(),xe);const Ke=q_(),xt=(Xn&524288)===0?nE():void 0,Nt=rx();let Kt;return J()===32?(ir(),Kt=m.createJsxOpeningElement(Ke,xt,Nt)):(Dn(44),Dn(32,void 0,!1)&&(Q?ke():ir()),Kt=m.createJsxSelfClosingElement(Ke,xt,Nt)),nn(Kt,xe)}function q_(){const Q=L(),xe=lv();if(t_(xe))return xe;let Ke=xe;for(;ho(25);)Ke=nn(Z(Ke,zt(!0,!1,!1)),Q);return Ke}function lv(){const Q=L();Ai();const xe=J()===110,Ke=de();return ho(59)?(Ai(),nn(m.createJsxNamespacedName(Ke,de()),Q)):xe?nn(m.createToken(110),Q):Ke}function iN(Q){const xe=L();if(!Dn(19))return;let Ke,xt;return J()!==20&&(Q||(Ke=pa(26)),xt=qe()),Q?Dn(20):Dn(20,void 0,!1)&&ir(),nn(m.createJsxExpression(Ke,xt),xe)}function oN(){if(J()===19)return Zs();const Q=L();return nn(m.createJsxAttribute(TT(),aN()),Q)}function aN(){if(J()===64){if(Vr()===11)return $r();if(J()===19)return iN(!0);if(J()===30)return ny(!0);pn(f.or_JSX_element_expected)}}function TT(){const Q=L();Ai();const xe=de();return ho(59)?(Ai(),nn(m.createJsxNamespacedName(xe,de()),Q)):xe}function Zs(){const Q=L();Dn(19),Dn(26);const xe=qe();return Dn(20),nn(m.createJsxSpreadAttribute(xe),Q)}function M1(Q,xe){const Ke=L();Dn(31);const xt=q_();return Dn(32,void 0,!1)&&(xe||!N0(Q.tagName,xt)?ke():ir()),nn(m.createJsxClosingElement(xt),Ke)}function AT(Q){const xe=L();return Dn(31),Dn(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Q?ke():ir()),nn(m.createJsxJsxClosingFragment(),xe)}function Fm(){N.assert(Se!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const Q=L();Dn(30);const xe=vc();Dn(32);const Ke=bl();return nn(m.createTypeAssertion(xe,Ke),Q)}function vb(){return ke(),ad(J())||J()===23||to()}function sN(){return J()===29&&Ci(vb)}function IT(Q){if(Q.flags&64)return!0;if(dI(Q)){let xe=Q.expression;for(;dI(xe)&&!(xe.flags&64);)xe=xe.expression;if(xe.flags&64){for(;dI(Q);)Q.flags|=64,Q=Q.expression;return!0}}return!1}function LM(Q,xe,Ke){const xt=zt(!0,!0,!0),Nt=Ke||IT(xe),Kt=Nt?V(xe,Ke,xt):Z(xe,xt);if(Nt&&Ji(Kt.name)&&Oe(Kt.name,f.An_optional_chain_cannot_contain_private_identifiers),Hy(xe)&&xe.typeArguments){const Fr=xe.typeArguments.pos-1,Wi=ka(Pe,xe.typeArguments.end)+1;q(Fr,Wi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return nn(Kt,Q)}function hr(Q,xe,Ke){let xt;if(J()===24)xt=js(80,!0,f.An_element_access_expression_should_take_an_argument);else{const Kt=Sn(qe);nf(Kt)&&(Kt.text=nu(Kt.text)),xt=Kt}Dn(24);const Nt=Ke||IT(xe)?G(xe,Ke,xt):se(xe,xt);return nn(Nt,Q)}function ru(Q,xe,Ke){for(;;){let xt,Nt=!1;if(Ke&&sN()?(xt=As(29),Nt=ad(J())):Nt=ho(25),Nt){xe=LM(Q,xe,xt);continue}if((xt||!Vt())&&ho(23)){xe=hr(Q,xe,xt);continue}if(to()){xe=!xt&&xe.kind===233?hf(Q,xe.expression,xt,xe.typeArguments):hf(Q,xe,xt,void 0);continue}if(!xt){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),xe=nn(m.createNonNullExpression(xe),Q);continue}const Kt=Ii(ur);if(Kt){xe=nn(m.createExpressionWithTypeArguments(xe,Kt),Q);continue}}return xe}}function to(){return J()===15||J()===16}function hf(Q,xe,Ke,xt){const Nt=m.createTaggedTemplateExpression(xe,xt,J()===15?(Bn(!0),$r()):F(!0));return(Ke||xe.flags&64)&&(Nt.flags|=64),Nt.questionDotToken=Ke,nn(Nt,Q)}function cv(Q,xe){for(;;){xe=ru(Q,xe,!0);let Ke;const xt=pa(29);if(xt&&(Ke=Ii(ur),to())){xe=hf(Q,xe,xt,Ke);continue}if(Ke||J()===21){!xt&&xe.kind===233&&(Ke=xe.typeArguments,xe=xe.expression);const Nt=J_(),Kt=xt||IT(xe)?he(xe,xt,Ke,Nt):ne(xe,Ke,Nt);xe=nn(Kt,Q);continue}if(xt){const Nt=js(80,!1,f.Identifier_expected);xe=nn(V(xe,xt,Nt),Q)}break}return xe}function J_(){Dn(21);const Q=Bu(11,L1);return Dn(22),Q}function ur(){if((Xn&524288)!==0||Hn()!==30)return;ke();const Q=Bu(20,vc);if(en()===32)return ke(),Q&&xT()?Q:void 0}function xT(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||c_()||!a_()}function X0(){switch(J()){case 15:t.getTokenFlags()&26656&&Bn(!1);case 9:case 10:case 11:return $r();case 110:case 108:case 106:case 112:case 97:return _l();case 21:return Kc();case 23:return k1();case 19:return ry();case 134:if(!Ci(MT))break;return RT();case 60:return tE();case 86:return ux();case 100:return RT();case 105:return Y0();case 44:case 69:if(bn()===14)return $r();break;case 16:return F(!1);case 81:return yr()}return Ms(f.Expression_expected)}function Kc(){const Q=L(),xe=_e();Dn(21);const Ke=Sn(qe);return Dn(22),Ar(nn($(Ke),Q),xe)}function Mh(){const Q=L();Dn(26);const xe=_u(!0);return nn(m.createSpreadElement(xe),Q)}function zm(){return J()===26?Mh():J()===28?nn(m.createOmittedExpression(),L()):_u(!0)}function L1(){return ma(r,zm)}function k1(){const Q=L(),xe=t.getTokenStart(),Ke=Dn(23),xt=t.hasPrecedingLineBreak(),Nt=Bu(15,zm);return uu(23,24,Ke,xe),nn(U(Nt,xt),Q)}function bb(){const Q=L(),xe=_e();if(pa(26)){const Yi=_u(!0);return Ar(nn(m.createSpreadAssignment(Yi),Q),xe)}const Ke=kh(!0);if(jr(139))return oy(Q,xe,Ke,177,0);if(jr(153))return oy(Q,xe,Ke,178,0);const xt=pa(42),Nt=xo(),Kt=un(),Fr=pa(58),Wi=pa(54);if(xt||J()===21||J()===30)return u_(Q,xe,Ke,xt,Kt,Fr,Wi);let Ri;if(Nt&&J()!==59){const Yi=pa(64),ds=Yi?Sn(()=>_u(!0)):void 0;Ri=m.createShorthandPropertyAssignment(Kt,ds),Ri.equalsToken=Yi}else{Dn(59);const Yi=Sn(()=>_u(!0));Ri=m.createPropertyAssignment(Kt,Yi)}return Ri.modifiers=Ke,Ri.questionToken=Fr,Ri.exclamationToken=Wi,Ar(nn(Ri,Q),xe)}function ry(){const Q=L(),xe=t.getTokenStart(),Ke=Dn(19),xt=t.hasPrecedingLineBreak(),Nt=Bu(12,bb,!0);return uu(19,20,Ke,xe),nn(K(Nt,xt),Q)}function RT(){const Q=Vt();Qi(!1);const xe=L(),Ke=_e(),xt=kh(!1);Dn(100);const Nt=pa(42),Kt=Nt?1:0,Fr=bt(xt,mP)?2:0,Wi=Kt&&Fr?pt(Bm):Kt?ft(Bm):Fr?le(Bm):Bm(),Ri=mf(),mi=gn(Kt|Fr),Yi=Ut(59,!1),ds=Eb(Kt|Fr);Qi(Q);const Ds=m.createFunctionExpression(xt,Nt,Wi,Ri,mi,Yi,ds);return Ar(nn(Ds,xe),Ke)}function Bm(){return Jr()?Ap():void 0}function Y0(){const Q=L();if(Dn(105),ho(25)){const Kt=Rc();return nn(m.createMetaProperty(105,Kt),Q)}const xe=L();let Ke=ru(xe,X0(),!1),xt;Ke.kind===233&&(xt=Ke.typeArguments,Ke=Ke.expression),J()===29&&pn(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,vC(Pe,Ke));const Nt=J()===21?J_():void 0;return nn(ve(Ke,xt,Nt),Q)}function vg(Q,xe){const Ke=L(),xt=_e(),Nt=t.getTokenStart(),Kt=Dn(19,xe);if(Kt||Q){const Fr=t.hasPrecedingLineBreak(),Wi=na(1,lp);uu(19,20,Kt,Nt);const Ri=Ar(nn(Y(Wi,Fr),Ke),xt);return J()===64&&(pn(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),ke()),Ri}else{const Fr=Ip();return Ar(nn(Y(Fr,void 0),Ke),xt)}}function Eb(Q,xe){const Ke=Rt();hi(!!(Q&1));const xt=yn();Io(!!(Q&2));const Nt=hn;hn=!1;const Kt=Vt();Kt&&Qi(!1);const Fr=vg(!!(Q&16),xe);return Kt&&Qi(!0),hn=Nt,hi(Ke),Io(xt),Fr}function ix(){const Q=L(),xe=_e();return Dn(27),Ar(nn(m.createEmptyStatement(),Q),xe)}function $0(){const Q=L(),xe=_e();Dn(101);const Ke=t.getTokenStart(),xt=Dn(21),Nt=Sn(qe);uu(21,22,xt,Ke);const Kt=lp(),Fr=ho(93)?lp():void 0;return Ar(nn(Ne(Nt,Kt,Fr),Q),xe)}function lN(){const Q=L(),xe=_e();Dn(92);const Ke=lp();Dn(117);const xt=t.getTokenStart(),Nt=Dn(21),Kt=Sn(qe);return uu(21,22,Nt,xt),ho(27),Ar(nn(m.createDoStatement(Ke,Kt),Q),xe)}function w1(){const Q=L(),xe=_e();Dn(117);const Ke=t.getTokenStart(),xt=Dn(21),Nt=Sn(qe);uu(21,22,xt,Ke);const Kt=lp();return Ar(nn(pe(Nt,Kt),Q),xe)}function DT(){const Q=L(),xe=_e();Dn(99);const Ke=pa(135);Dn(21);let xt;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Ci(iy)||J()===135&&Ci(Dp)?xt=W1(!0):xt=kn(qe));let Nt;if(Ke?Dn(165):ho(165)){const Kt=Sn(()=>_u(!0));Dn(22),Nt=ye(Ke,xt,Kt,lp())}else if(ho(103)){const Kt=Sn(qe);Dn(22),Nt=m.createForInStatement(xt,Kt,lp())}else{Dn(27);const Kt=J()!==27&&J()!==22?Sn(qe):void 0;Dn(27);const Fr=J()!==22?Sn(qe):void 0;Dn(22),Nt=ie(xt,Kt,Fr,lp())}return Ar(nn(Nt,Q),xe)}function Hp(Q){const xe=L(),Ke=_e();Dn(Q===252?83:88);const xt=sc()?void 0:Ms();ul();const Nt=Q===252?m.createBreakStatement(xt):m.createContinueStatement(xt);return Ar(nn(Nt,xe),Ke)}function NT(){const Q=L(),xe=_e();Dn(107);const Ke=sc()?void 0:Sn(qe);return ul(),Ar(nn(m.createReturnStatement(Ke),Q),xe)}function jl(){const Q=L(),xe=_e();Dn(118);const Ke=t.getTokenStart(),xt=Dn(21),Nt=Sn(qe);uu(21,22,xt,Ke);const Kt=Wa(67108864,lp);return Ar(nn(m.createWithStatement(Nt,Kt),Q),xe)}function Fc(){const Q=L(),xe=_e();Dn(84);const Ke=Sn(qe);Dn(59);const xt=na(3,lp);return Ar(nn(m.createCaseClause(Ke,xt),Q),xe)}function CT(){const Q=L();Dn(90),Dn(59);const xe=na(3,lp);return nn(m.createDefaultClause(xe),Q)}function Au(){return J()===84?Fc():CT()}function sp(){const Q=L();Dn(19);const xe=na(2,Au);return Dn(20),nn(m.createCaseBlock(xe),Q)}function Q0(){const Q=L(),xe=_e();Dn(109),Dn(21);const Ke=Sn(qe);Dn(22);const xt=sp();return Ar(nn(m.createSwitchStatement(Ke,xt),Q),xe)}function Ff(){const Q=L(),xe=_e();Dn(111);let Ke=t.hasPrecedingLineBreak()?void 0:Sn(qe);return Ke===void 0&&(tn++,Ke=nn(M(""),L())),Nl()||Ql(Ke),Ar(nn(m.createThrowStatement(Ke),Q),xe)}function Sb(){const Q=L(),xe=_e();Dn(113);const Ke=vg(!1),xt=J()===85?Tb():void 0;let Nt;return(!xt||J()===98)&&(Dn(98,f.catch_or_finally_expected),Nt=vg(!1)),Ar(nn(m.createTryStatement(Ke,xt,Nt),Q),xe)}function Tb(){const Q=L();Dn(85);let xe;ho(21)?(xe=Cd(),Dn(22)):xe=void 0;const Ke=vg(!1);return nn(m.createCatchClause(xe,Ke),Q)}function iu(){const Q=L(),xe=_e();return Dn(89),ul(),Ar(nn(m.createDebuggerStatement(),Q),xe)}function ox(){const Q=L();let xe=_e(),Ke;const xt=J()===21,Nt=Sn(qe);return Ve(Nt)&&ho(59)?Ke=m.createLabeledStatement(Nt,lp()):(Nl()||Ql(Nt),Ke=fe(Nt),xt&&(xe=!1)),Ar(nn(Ke,Q),xe)}function qp(){return ke(),ad(J())&&!t.hasPrecedingLineBreak()}function PT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function MT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Hs(){return ke(),(ad(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function cN(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ax();case 135:return sx();case 120:case 156:return tx();case 144:case 145:return pN();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const Q=J();if(ke(),t.hasPrecedingLineBreak())return!1;if(Q===138&&J()===156)return!0;continue;case 162:return ke(),J()===19||J()===80||J()===95;case 102:return ke(),J()===11||J()===42||J()===19||ad(J());case 95:let xe=ke();if(xe===156&&(xe=Ci(ke)),xe===64||xe===42||xe===19||xe===90||xe===130||xe===60)return!0;continue;case 126:ke();continue;default:return!1}}function Z0(){return Ci(cN)}function O1(){switch(J()){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 Z0()||Ci(V0);case 87:case 95:return Z0();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 Z0()||!Ci(qp);default:return a_()}}function kM(){return ke(),Jr()||J()===19||J()===23}function gd(){return Ci(kM)}function iy(){return K_(!0)}function K_(Q){return ke(),Q&&J()===165?!1:(Jr()||J()===19)&&!t.hasPrecedingLineBreak()}function ax(){return Ci(K_)}function Dp(Q){return ke()===160?K_(Q):!1}function sx(){return Ci(Dp)}function lp(){switch(J()){case 27:return ix();case 19:return vg(!1);case 115:return eE(L(),_e(),void 0);case 121:if(gd())return eE(L(),_e(),void 0);break;case 135:if(sx())return eE(L(),_e(),void 0);break;case 160:if(ax())return eE(L(),_e(),void 0);break;case 100:return F1(L(),_e(),void 0);case 86:return WT(L(),_e(),void 0);case 101:return $0();case 92:return lN();case 117:return w1();case 99:return DT();case 88:return Hp(251);case 83:return Hp(252);case 107:return NT();case 118:return jl();case 109:return Q0();case 111:return Ff();case 113:case 85:case 98:return Sb();case 89:return iu();case 60:return uv();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(Z0())return uv();break}return ox()}function lx(Q){return Q.kind===138}function uv(){const Q=L(),xe=_e(),Ke=kh(!0);if(bt(Ke,lx)){const Nt=LT(Q);if(Nt)return Nt;for(const Kt of Ke)Kt.flags|=33554432;return Wa(33554432,()=>uN(Q,xe,Ke))}else return uN(Q,xe,Ke)}function LT(Q){return Wa(33554432,()=>{const xe=yc(rn,Q);if(xe)return dl(xe)})}function uN(Q,xe,Ke){switch(J()){case 115:case 121:case 87:case 160:case 135:return eE(Q,xe,Ke);case 100:return F1(Q,xe,Ke);case 86:return WT(Q,xe,Ke);case 120:return ht(Q,xe,Ke);case 156:return on(Q,xe,Ke);case 94:return ki(Q,xe,Ke);case 162:case 144:case 145:return ed(Q,xe,Ke);case 102:return Un(Q,xe,Ke);case 95:switch(ke(),J()){case 90:case 64:return Wh(Q,xe,Ke);case 130:return wh(Q,xe,Ke);default:return wM(Q,xe,Ke)}default:if(Ke){const xt=js(282,!0,f.Declaration_expected);return eP(xt,Q),xt.modifiers=Ke,xt}return}}function dN(){return ke()===11}function kT(){return ke(),J()===161||J()===64}function pN(){return ke(),!t.hasPrecedingLineBreak()&&(xo()||J()===11)}function Ab(Q,xe){if(J()!==19){if(Q&4){$n();return}if(sc()){ul();return}}return Eb(Q,xe)}function Np(){const Q=L();if(J()===28)return nn(m.createOmittedExpression(),Q);const xe=pa(26),Ke=Ir(),xt=s_();return nn(m.createBindingElement(xe,void 0,Ke,xt),Q)}function Lh(){const Q=L(),xe=pa(26),Ke=Jr();let xt=un(),Nt;Ke&&J()!==59?(Nt=xt,xt=void 0):(Dn(59),Nt=Ir());const Kt=s_();return nn(m.createBindingElement(xe,xt,Nt,Kt),Q)}function fN(){const Q=L();Dn(19);const xe=Sn(()=>Bu(9,Lh));return Dn(20),nn(m.createObjectBindingPattern(xe),Q)}function wT(){const Q=L();Dn(23);const xe=Sn(()=>Bu(10,Np));return Dn(24),nn(m.createArrayBindingPattern(xe),Q)}function rs(){return J()===19||J()===23||J()===81||Jr()}function Ir(Q){return J()===23?wT():J()===19?fN():Ap(Q)}function gf(){return Cd(!0)}function Cd(Q){const xe=L(),Ke=_e(),xt=Ir(f.Private_identifiers_are_not_allowed_in_variable_declarations);let Nt;Q&&xt.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Nt=_l());const Kt=ov(),Fr=ey(J())?void 0:s_(),Wi=Me(xt,Nt,Kt,Fr);return Ar(nn(Wi,xe),Ke)}function W1(Q){const xe=L();let Ke=0;switch(J()){case 115:break;case 121:Ke|=1;break;case 87:Ke|=2;break;case 160:Ke|=4;break;case 135:N.assert(sx()),Ke|=6,ke();break;default:N.fail()}ke();let xt;if(J()===165&&Ci(mN))xt=Ip();else{const Nt=Ye();li(Q),xt=Bu(8,Q?Cd:gf),li(Nt)}return nn(Ue(xt,Ke),xe)}function mN(){return op()&&ke()===22}function eE(Q,xe,Ke){const xt=W1(!1);ul();const Nt=oe(Ke,xt);return Ar(nn(Nt,Q),xe)}function F1(Q,xe,Ke){const xt=yn(),Nt=M_(Ke);Dn(100);const Kt=pa(42),Fr=Nt&2048?Bm():Ap(),Wi=Kt?1:0,Ri=Nt&1024?2:0,mi=mf();Nt&32&&Io(!0);const Yi=gn(Wi|Ri),ds=Ut(59,!1),Ds=Ab(Wi|Ri,f.or_expected);Io(xt);const es=m.createFunctionDeclaration(Ke,Kt,Fr,mi,Yi,ds,Ds);return Ar(nn(es,Q),xe)}function OT(){if(J()===137)return Dn(137);if(J()===11&&Ci(ke)===21)return Ii(()=>{const Q=$r();return Q.text==="constructor"?Q:void 0})}function bg(Q,xe,Ke){return Ii(()=>{if(OT()){const xt=mf(),Nt=gn(0),Kt=Ut(59,!1),Fr=Ab(0,f.or_expected),Wi=m.createConstructorDeclaration(Ke,Nt,Fr);return Wi.typeParameters=xt,Wi.type=Kt,Ar(nn(Wi,Q),xe)}})}function u_(Q,xe,Ke,xt,Nt,Kt,Fr,Wi){const Ri=xt?1:0,mi=bt(Ke,mP)?2:0,Yi=mf(),ds=gn(Ri|mi),Ds=Ut(59,!1),es=Ab(Ri|mi,Wi),Gf=m.createMethodDeclaration(Ke,xt,Nt,Kt,Yi,ds,Ds,es);return Gf.exclamationToken=Fr,Ar(nn(Gf,Q),xe)}function yf(Q,xe,Ke,xt,Nt){const Kt=!Nt&&!t.hasPrecedingLineBreak()?pa(54):void 0,Fr=ov(),Wi=ma(90112,s_);Vs(xt,Fr,Wi);const Ri=m.createPropertyDeclaration(Ke,xt,Nt||Kt,Fr,Wi);return Ar(nn(Ri,Q),xe)}function Gm(Q,xe,Ke){const xt=pa(42),Nt=un(),Kt=pa(58);return xt||J()===21||J()===30?u_(Q,xe,Ke,xt,Nt,Kt,void 0,f.or_expected):yf(Q,xe,Ke,Nt,Kt)}function oy(Q,xe,Ke,xt,Nt){const Kt=un(),Fr=mf(),Wi=gn(0),Ri=Ut(59,!1),mi=Ab(Nt),Yi=xt===177?m.createGetAccessorDeclaration(Ke,Kt,Wi,Ri,mi):m.createSetAccessorDeclaration(Ke,Kt,Wi,mi);return Yi.typeParameters=Fr,vp(Yi)&&(Yi.type=Ri),Ar(nn(Yi,Q),xe)}function Eg(){let Q;if(J()===60)return!0;for(;ky(J());){if(Q=J(),HV(Q))return!0;ke()}if(J()===42||(ee()&&(Q=J(),ke()),J()===23))return!0;if(Q!==void 0){if(!Bd(Q)||Q===153||Q===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return sc()}}return!1}function Sg(Q,xe,Ke){As(126);const xt=cx(),Nt=Ar(nn(m.createClassStaticBlockDeclaration(xt),Q),xe);return Nt.modifiers=Ke,Nt}function cx(){const Q=Rt(),xe=yn();hi(!1),Io(!0);const Ke=vg(!1);return hi(Q),Io(xe),Ke}function lc(){if(yn()&&J()===135){const Q=L(),xe=Ms(f.Expression_expected);ke();const Ke=ru(Q,xe,!0);return cv(Q,Ke)}return pm()}function _N(){const Q=L();if(!ho(60))return;const xe=Ct(lc);return nn(m.createDecorator(xe),Q)}function zf(Q,xe,Ke){const xt=L(),Nt=J();if(J()===87&&xe){if(!Ii(xi))return}else{if(Ke&&J()===126&&Ci(xb))return;if(Q&&J()===126)return;if(!Hc())return}return nn(O(Nt),xt)}function kh(Q,xe,Ke){const xt=L();let Nt,Kt,Fr,Wi=!1,Ri=!1,mi=!1;if(Q&&J()===60)for(;Kt=_N();)Nt=xn(Nt,Kt);for(;Fr=zf(Wi,xe,Ke);)Fr.kind===126&&(Wi=!0),Nt=xn(Nt,Fr),Ri=!0;if(Ri&&Q&&J()===60)for(;Kt=_N();)Nt=xn(Nt,Kt),mi=!0;if(mi)for(;Fr=zf(Wi,xe,Ke);)Fr.kind===126&&(Wi=!0),Nt=xn(Nt,Fr);return Nt&&ko(Nt,xt)}function vf(){let Q;if(J()===134){const xe=L();ke();const Ke=nn(O(134),xe);Q=ko([Ke],xe)}return Q}function z1(){const Q=L(),xe=_e();if(J()===27)return ke(),Ar(nn(m.createSemicolonClassElement(),Q),xe);const Ke=kh(!0,!0,!0);if(J()===126&&Ci(xb))return Sg(Q,xe,Ke);if(jr(139))return oy(Q,xe,Ke,177,0);if(jr(153))return oy(Q,xe,Ke,178,0);if(J()===137||J()===11){const xt=bg(Q,xe,Ke);if(xt)return xt}if(cr())return fr(Q,xe,Ke);if(ad(J())||J()===11||J()===9||J()===42||J()===23)if(bt(Ke,lx)){for(const Nt of Ke)Nt.flags|=33554432;return Wa(33554432,()=>Gm(Q,xe,Ke))}else return Gm(Q,xe,Ke);if(Ke){const xt=js(80,!0,f.Declaration_expected);return yf(Q,xe,Ke,xt,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function tE(){const Q=L(),xe=_e(),Ke=kh(!0);if(J()===86)return bf(Q,xe,Ke,231);const xt=js(282,!0,f.Expression_expected);return eP(xt,Q),xt.modifiers=Ke,xt}function ux(){return bf(L(),_e(),void 0,231)}function WT(Q,xe,Ke){return bf(Q,xe,Ke,263)}function bf(Q,xe,Ke,xt){const Nt=yn();Dn(86);const Kt=Ls(),Fr=mf();bt(Ke,rI)&&Io(!0);const Wi=G1();let Ri;Dn(19)?(Ri=ae(),Dn(20)):Ri=Ip(),Io(Nt);const mi=xt===263?m.createClassDeclaration(Ke,Kt,Fr,Wi,Ri):m.createClassExpression(Ke,Kt,Fr,Wi,Ri);return Ar(nn(mi,Q),xe)}function Ls(){return Jr()&&!B1()?pu(Jr()):void 0}function B1(){return J()===119&&Ci(Wc)}function G1(){if(D())return na(22,ay)}function ay(){const Q=L(),xe=J();N.assert(xe===96||xe===119),ke();const Ke=Bu(7,Ib);return nn(m.createHeritageClause(xe,Ke),Q)}function Ib(){const Q=L(),xe=pm();if(xe.kind===233)return xe;const Ke=nE();return nn(m.createExpressionWithTypeArguments(xe,Ke),Q)}function nE(){return J()===30?Ud(20,vc,30,32):void 0}function D(){return J()===96||J()===119}function ae(){return na(5,z1)}function ht(Q,xe,Ke){Dn(120);const xt=Ms(),Nt=mf(),Kt=G1(),Fr=j0(),Wi=m.createInterfaceDeclaration(Ke,xt,Nt,Kt,Fr);return Ar(nn(Wi,Q),xe)}function on(Q,xe,Ke){Dn(156),t.hasPrecedingLineBreak()&&pn(f.Line_break_not_permitted_here);const xt=Ms(),Nt=mf();Dn(64);const Kt=J()===141&&Ii(_T)||vc();ul();const Fr=m.createTypeAliasDeclaration(Ke,xt,Nt,Kt);return Ar(nn(Fr,Q),xe)}function wr(){const Q=L(),xe=_e(),Ke=un(),xt=Sn(s_);return Ar(nn(m.createEnumMember(Ke,xt),Q),xe)}function ki(Q,xe,Ke){Dn(94);const xt=Ms();let Nt;Dn(19)?(Nt=j(()=>Bu(6,wr)),Dn(20)):Nt=Ip();const Kt=m.createEnumDeclaration(Ke,xt,Nt);return Ar(nn(Kt,Q),xe)}function gi(){const Q=L();let xe;return Dn(19)?(xe=na(1,lp),Dn(20)):xe=Ip(),nn(m.createModuleBlock(xe),Q)}function no(Q,xe,Ke,xt){const Nt=xt&32,Kt=xt&8?Rc():Ms(),Fr=ho(25)?no(L(),!1,void 0,8|Nt):gi(),Wi=m.createModuleDeclaration(Ke,Kt,Fr,xt);return Ar(nn(Wi,Q),xe)}function ya(Q,xe,Ke){let xt=0,Nt;J()===162?(Nt=Ms(),xt|=2048):(Nt=$r(),Nt.text=nu(Nt.text));let Kt;J()===19?Kt=gi():ul();const Fr=m.createModuleDeclaration(Ke,Nt,Kt,xt);return Ar(nn(Fr,Q),xe)}function ed(Q,xe,Ke){let xt=0;if(J()===162)return ya(Q,xe,Ke);if(ho(145))xt|=32;else if(Dn(144),J()===11)return ya(Q,xe,Ke);return no(Q,xe,Ke,xt)}function Pd(){return J()===149&&Ci(Bf)}function Bf(){return ke()===21}function xb(){return ke()===19}function vi(){return ke()===44}function wh(Q,xe,Ke){Dn(130),Dn(145);const xt=Ms();ul();const Nt=m.createNamespaceExportDeclaration(xt);return Nt.modifiers=Ke,Ar(nn(Nt,Q),xe)}function Un(Q,xe,Ke){Dn(102);const xt=t.getTokenFullStart();let Nt;xo()&&(Nt=Ms());let Kt=!1;if(Nt?.escapedText==="type"&&(J()!==161||xo()&&Ci(kT))&&(xo()||Db())&&(Kt=!0,Nt=xo()?Ms():void 0),Nt&&!FT())return V1(Q,xe,Ke,Nt,Kt);let Fr;(Nt||J()===42||J()===19)&&(Fr=X_(Nt,xt,Kt),Dn(161));const Wi=zT(),Ri=J();let mi;(Ri===118||Ri===132)&&!t.hasPrecedingLineBreak()&&(mi=Rb(Ri)),ul();const Yi=m.createImportDeclaration(Ke,Fr,Wi,mi);return Ar(nn(Yi,Q),xe)}function dx(){const Q=L(),xe=ad(J())?Rc():Ol(11);Dn(59);const Ke=_u(!0);return nn(m.createImportAttribute(xe,Ke),Q)}function Rb(Q,xe){const Ke=L();xe||Dn(Q);const xt=t.getTokenStart();if(Dn(19)){const Nt=t.hasPrecedingLineBreak(),Kt=Bu(24,dx,!0);if(!Dn(20)){const Fr=tl(je);Fr&&Fr.code===f._0_expected.code&&wa(Fr,wR(Ee,Pe,xt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return nn(m.createImportAttributes(Kt,Nt,Q),Ke)}else{const Nt=ko([],L(),void 0,!1);return nn(m.createImportAttributes(Nt,!1,Q),Ke)}}function Db(){return J()===42||J()===19}function FT(){return J()===28||J()===161}function V1(Q,xe,Ke,xt,Nt){Dn(64);const Kt=Oh();ul();const Fr=m.createImportEqualsDeclaration(Ke,Nt,xt,Kt);return Ar(nn(Fr,Q),xe)}function X_(Q,xe,Ke){let xt;return(!Q||ho(28))&&(xt=J()===42?Zz():Nb(275)),nn(m.createImportClause(Ke,Q,xt),xe)}function Oh(){return Pd()?hN():te(!1)}function hN(){const Q=L();Dn(149),Dn(21);const xe=zT();return Dn(22),nn(m.createExternalModuleReference(xe),Q)}function zT(){if(J()===11){const Q=$r();return Q.text=nu(Q.text),Q}else return qe()}function Zz(){const Q=L();Dn(42),Dn(130);const xe=Ms();return nn(m.createNamespaceImport(xe),Q)}function Nb(Q){const xe=L(),Ke=Q===275?m.createNamedImports(Ud(23,h8,19,20)):m.createNamedExports(Ud(23,_8,19,20));return nn(Ke,xe)}function _8(){const Q=_e();return Ar(rE(281),Q)}function h8(){return rE(276)}function rE(Q){const xe=L();let Ke=Bd(J())&&!xo(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),Kt=!1,Fr,Wi=!0,Ri=Rc();if(Ri.escapedText==="type")if(J()===130){const ds=Rc();if(J()===130){const Ds=Rc();ad(J())?(Kt=!0,Fr=ds,Ri=Yi(),Wi=!1):(Fr=Ri,Ri=Ds,Wi=!1)}else ad(J())?(Fr=Ri,Wi=!1,Ri=Yi()):(Kt=!0,Ri=ds)}else ad(J())&&(Kt=!0,Ri=Yi());Wi&&J()===130&&(Fr=Ri,Dn(130),Ri=Yi()),Q===276&&Ke&&q(xt,Nt,f.Identifier_expected);const mi=Q===276?m.createImportSpecifier(Kt,Fr,Ri):m.createExportSpecifier(Kt,Fr,Ri);return nn(mi,xe);function Yi(){return Ke=Bd(J())&&!xo(),xt=t.getTokenStart(),Nt=t.getTokenEnd(),Rc()}}function d_(Q){return nn(m.createNamespaceExport(Rc()),Q)}function wM(Q,xe,Ke){const xt=yn();Io(!0);let Nt,Kt,Fr;const Wi=ho(156),Ri=L();ho(42)?(ho(130)&&(Nt=d_(Ri)),Dn(161),Kt=zT()):(Nt=Nb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Dn(161),Kt=zT()));const mi=J();Kt&&(mi===118||mi===132)&&!t.hasPrecedingLineBreak()&&(Fr=Rb(mi)),ul(),Io(xt);const Yi=m.createExportDeclaration(Ke,Wi,Nt,Kt,Fr);return Ar(nn(Yi,Q),xe)}function Wh(Q,xe,Ke){const xt=yn();Io(!0);let Nt;ho(64)?Nt=!0:Dn(90);const Kt=_u(!0);ul(),Io(xt);const Fr=m.createExportAssignment(Ke,Nt,Kt);return Ar(nn(Fr,Q),xe)}let px;(Q=>{Q[Q.SourceElements=0]="SourceElements",Q[Q.BlockStatements=1]="BlockStatements",Q[Q.SwitchClauses=2]="SwitchClauses",Q[Q.SwitchClauseStatements=3]="SwitchClauseStatements",Q[Q.TypeMembers=4]="TypeMembers",Q[Q.ClassMembers=5]="ClassMembers",Q[Q.EnumMembers=6]="EnumMembers",Q[Q.HeritageClauseElement=7]="HeritageClauseElement",Q[Q.VariableDeclarations=8]="VariableDeclarations",Q[Q.ObjectBindingElements=9]="ObjectBindingElements",Q[Q.ArrayBindingElements=10]="ArrayBindingElements",Q[Q.ArgumentExpressions=11]="ArgumentExpressions",Q[Q.ObjectLiteralMembers=12]="ObjectLiteralMembers",Q[Q.JsxAttributes=13]="JsxAttributes",Q[Q.JsxChildren=14]="JsxChildren",Q[Q.ArrayLiteralMembers=15]="ArrayLiteralMembers",Q[Q.Parameters=16]="Parameters",Q[Q.JSDocParameters=17]="JSDocParameters",Q[Q.RestProperties=18]="RestProperties",Q[Q.TypeParameters=19]="TypeParameters",Q[Q.TypeArguments=20]="TypeArguments",Q[Q.TupleElementTypes=21]="TupleElementTypes",Q[Q.HeritageClauses=22]="HeritageClauses",Q[Q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Q[Q.ImportAttributes=24]="ImportAttributes",Q[Q.JSDocComment=25]="JSDocComment",Q[Q.Count=26]="Count"})(px||(px={}));let g8;(Q=>{Q[Q.False=0]="False",Q[Q.True=1]="True",Q[Q.Unknown=2]="Unknown"})(g8||(g8={}));let Y_;(Q=>{function xe(mi,Yi,ds){Oi("file.js",mi,99,void 0,1,0),t.setText(mi,Yi,ds),yt=t.scan();const Ds=Ke(),es=Bt("file.js",99,1,!1,[],O(1),0,$a),Gf=HA(je,es);return at&&(es.jsDocDiagnostics=HA(at,es)),No(),Ds?{jsDocTypeExpression:Ds,diagnostics:Gf}:void 0}Q.parseJSDocTypeExpressionForTests=xe;function Ke(mi){const Yi=L(),ds=(mi?ho:Dn)(19),Ds=Wa(16777216,Om);(!mi||ds)&&yl(20);const es=m.createJSDocTypeExpression(Ds);return tt(es),nn(es,Yi)}Q.parseJSDocTypeExpression=Ke;function xt(){const mi=L(),Yi=ho(19),ds=L();let Ds=te(!1);for(;J()===81;)Ni(),Tt(),Ds=nn(m.createJSDocMemberName(Ds,Ms()),ds);Yi&&yl(20);const es=m.createJSDocNameReference(Ds);return tt(es),nn(es,mi)}Q.parseJSDocNameReference=xt;function Nt(mi,Yi,ds){Oi("",mi,99,void 0,1,0);const Ds=Wa(16777216,()=>Ri(Yi,ds)),Gf=HA(je,{languageVariant:0,text:mi});return No(),Ds?{jsDoc:Ds,diagnostics:Gf}:void 0}Q.parseIsolatedJSDocComment=Nt;function Kt(mi,Yi,ds){const Ds=yt,es=je.length,Gf=Qt,$_=Wa(16777216,()=>Ri(Yi,ds));return qa($_,mi),Xn&524288&&(at||(at=[]),qr(at,je,es)),yt=Ds,je.length=es,Qt=Gf,$_}Q.parseJSDocComment=Kt;let Fr;(mi=>{mi[mi.BeginningOfLine=0]="BeginningOfLine",mi[mi.SawAsterisk=1]="SawAsterisk",mi[mi.SavingComments=2]="SavingComments",mi[mi.SavingBackticks=3]="SavingBackticks"})(Fr||(Fr={}));let Wi;(mi=>{mi[mi.Property=1]="Property",mi[mi.Parameter=2]="Parameter",mi[mi.CallbackParameter=4]="CallbackParameter"})(Wi||(Wi={}));function Ri(mi=0,Yi){const ds=Pe,Ds=Yi===void 0?ds.length:mi+Yi;if(Yi=Ds-mi,N.assert(mi>=0),N.assert(mi<=Ds),N.assert(Ds<=ds.length),!jH(ds,mi))return;let es,Gf,$_,Tg,sy,ly=[];const Cb=[],cp=rn;rn|=1<<25;const BT=t.scanRange(mi+3,Yi-5,gN);return rn=cp,BT;function gN(){let Cn=1,Gr,Lr=mi-(ds.lastIndexOf(` `,mi)+1)+4;function Fi(Is){Gr||(Gr=Lr),ly.push(Is),Lr+=Is.length}for(Tt();dv(5););dv(4)&&(Cn=0,Lr=0);e:for(;;){switch(J()){case 60:WM(ly),sy||(sy=L()),zM(yN(Lr)),Cn=0,Gr=void 0;break;case 4:ly.push(t.getTokenText()),Cn=0,Lr=0;break;case 42:const Is=t.getTokenText();Cn===1?(Cn=2,Fi(Is)):(N.assert(Cn===0),Cn=1,Lr+=Is.length);break;case 5:N.assert(Cn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const td=t.getTokenText();Gr!==void 0&&Lr+td.length>Gr&&ly.push(td.slice(Gr-Lr)),Lr+=td.length;break;case 1:break e;case 82:Cn=2,Fi(t.getTokenValue());break;case 19:Cn=2;const Fh=t.getTokenFullStart(),Cp=t.getTokenEnd()-1,f_=cc(Cp);if(f_){Tg||OM(ly),Cb.push(nn(m.createJSDocText(ly.join("")),Tg??mi,Fh)),Cb.push(f_),ly=[],Tg=t.getTokenEnd();break}default:Cn=2,Fi(t.getTokenText());break}Cn===2?kt(!1):Tt()}const Mi=ly.join("").trimEnd();Cb.length&&Mi.length&&Cb.push(nn(m.createJSDocText(Mi),Tg??mi,sy)),Cb.length&&es&&N.assertIsDefined(sy,"having parsed tags implies that the end of the comment span should be set");const is=es&&ko(es,Gf,$_);return nn(m.createJSDocComment(Cb.length?ko(Cb,mi,sy):Mi.length?Mi:void 0,is),mi,Ds)}function OM(Cn){for(;Cn.length&&(Cn[0]===` `||Cn[0]==="\r");)Cn.shift()}function WM(Cn){for(;Cn.length;){const Gr=Cn[Cn.length-1].trimEnd();if(Gr==="")Cn.pop();else if(Gr.lengthtd&&(Fi.push(uy.slice(td-Cn)),Is=2),Cn+=uy.length;break;case 19:Is=2;const Pp=t.getTokenFullStart(),EN=t.getTokenEnd()-1,y8=cc(EN);y8?(Mi.push(nn(m.createJSDocText(Fi.join("")),is??Lr,Pp)),Mi.push(y8),Fi=[],is=t.getTokenEnd()):Fh(t.getTokenText());break;case 62:Is===3?Is=2:Is=3,Fh(t.getTokenText());break;case 82:Is!==3&&(Is=2),Fh(t.getTokenValue());break;case 42:if(Is===0){Is=1,Cn+=1;break}default:Is!==3&&(Is=2),Fh(t.getTokenText());break}Is===2||Is===3?Cp=kt(Is===3):Cp=Tt()}OM(Fi);const f_=Fi.join("").trimEnd();if(Mi.length)return f_.length&&Mi.push(nn(m.createJSDocText(f_),is??Lr)),ko(Mi,Lr,t.getTokenEnd());if(f_.length)return f_}function cc(Cn){const Gr=Ii(fx);if(!Gr)return;Tt(),cy();const Lr=oE(),Fi=[];for(;J()!==20&&J()!==4&&J()!==1;)Fi.push(t.getTokenText()),Tt();const Mi=Gr==="link"?m.createJSDocLink:Gr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return nn(Mi(Lr,Fi.join("")),Cn,t.getTokenEnd())}function oE(){if(ad(J())){const Cn=L();let Gr=Rc();for(;ho(25);)Gr=nn(m.createQualifiedName(Gr,J()===81?js(80,!1):Ms()),Cn);for(;J()===81;)Ni(),Tt(),Gr=nn(m.createJSDocMemberName(Gr,Ms()),Cn);return Gr}}function fx(){if(Pb(),J()===19&&Tt()===60&&ad(Tt())){const Cn=t.getTokenValue();if(FM(Cn))return Cn}}function FM(Cn){return Cn==="link"||Cn==="linkcode"||Cn==="linkplain"}function Mb(Cn,Gr,Lr,Fi){return nn(m.createJSDocUnknownTag(Gr,Jp(Cn,L(),Lr,Fi)),Cn)}function zM(Cn){Cn&&(es?es.push(Cn):(es=[Cn],Gf=Cn.pos),$_=Cn.end)}function or(){return Pb(),J()===19?Ke():void 0}function b(){const Cn=dv(23);Cn&&cy();const Gr=dv(62),Lr=bN();return Gr&&La(62),Cn&&(cy(),pa(64)&&qe(),Dn(24)),{name:Lr,isBracketed:Cn}}function P(Cn){switch(Cn.kind){case 151:return!0;case 188:return P(Cn.elementType);default:return Cf(Cn)&&Ve(Cn.typeName)&&Cn.typeName.escapedText==="Object"&&!Cn.typeArguments}}function B(Cn,Gr,Lr,Fi){let Mi=or(),is=!Mi;Pb();const{name:Is,isBracketed:td}=b(),Fh=Pb();is&&!Ci(fx)&&(Mi=or());const Cp=Jp(Cn,L(),Fi,Fh),f_=ce(Mi,Is,Lr,Fi);f_&&(Mi=f_,is=!0);const uy=Lr===1?m.createJSDocPropertyTag(Gr,Is,td,Mi,is,Cp):m.createJSDocParameterTag(Gr,Is,td,Mi,is,Cp);return nn(uy,Cn)}function ce(Cn,Gr,Lr,Fi){if(Cn&&P(Cn.type)){const Mi=L();let is,Is;for(;is=Ii(()=>n9(Lr,Fi,Gr));)is.kind===348||is.kind===355?Is=xn(Is,is):is.kind===352&&Oe(is.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Is){const td=nn(m.createJSDocTypeLiteral(Is,Cn.type.kind===188),Mi);return nn(m.createJSDocTypeExpression(td),Mi)}}}function Qe(Cn,Gr,Lr,Fi){bt(es,ZW)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Gr.escapedText));const Mi=or();return nn(m.createJSDocReturnTag(Gr,Mi,Jp(Cn,L(),Lr,Fi)),Cn)}function Xt(Cn,Gr,Lr,Fi){bt(es,IP)&&q(Gr.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Gr.escapedText));const Mi=Ke(!0),is=Lr!==void 0&&Fi!==void 0?Jp(Cn,L(),Lr,Fi):void 0;return nn(m.createJSDocTypeTag(Gr,Mi,is),Cn)}function vr(Cn,Gr,Lr,Fi){const is=J()===23||Ci(()=>Tt()===60&&ad(Tt())&&FM(t.getTokenValue()))?void 0:xt(),Is=Lr!==void 0&&Fi!==void 0?Jp(Cn,L(),Lr,Fi):void 0;return nn(m.createJSDocSeeTag(Gr,is,Is),Cn)}function ro(Cn,Gr,Lr,Fi){const Mi=or(),is=Jp(Cn,L(),Lr,Fi);return nn(m.createJSDocThrowsTag(Gr,Mi,is),Cn)}function qs(Cn,Gr,Lr,Fi){const Mi=L(),is=p_();let Is=t.getTokenFullStart();const td=Jp(Cn,Is,Lr,Fi);td||(Is=t.getTokenFullStart());const Fh=typeof td!="string"?ko(So([nn(is,Mi,Is)],td),Mi):is.text+td;return nn(m.createJSDocAuthorTag(Gr,Fh),Cn)}function p_(){const Cn=[];let Gr=!1,Lr=t.getToken();for(;Lr!==1&&Lr!==4;){if(Lr===30)Gr=!0;else{if(Lr===60&&!Gr)break;if(Lr===32&&Gr){Cn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Cn.push(t.getTokenText()),Lr=Tt()}return m.createJSDocText(Cn.join(""))}function Lb(Cn,Gr,Lr,Fi){const Mi=TZ();return nn(m.createJSDocImplementsTag(Gr,Mi,Jp(Cn,L(),Lr,Fi)),Cn)}function Vm(Cn,Gr,Lr,Fi){const Mi=TZ();return nn(m.createJSDocAugmentsTag(Gr,Mi,Jp(Cn,L(),Lr,Fi)),Cn)}function aE(Cn,Gr,Lr,Fi){const Mi=Ke(!1),is=Lr!==void 0&&Fi!==void 0?Jp(Cn,L(),Lr,Fi):void 0;return nn(m.createJSDocSatisfiesTag(Gr,Mi,is),Cn)}function TZ(){const Cn=ho(19),Gr=L(),Lr=Xhe();t.setInJSDocType(!0);const Fi=nE();t.setInJSDocType(!1);const Mi=m.createExpressionWithTypeArguments(Lr,Fi),is=nn(Mi,Gr);return Cn&&Dn(20),is}function Xhe(){const Cn=L();let Gr=lE();for(;ho(25);){const Lr=lE();Gr=nn(Z(Gr,Lr),Cn)}return Gr}function sE(Cn,Gr,Lr,Fi,Mi){return nn(Gr(Lr,Jp(Cn,L(),Fi,Mi)),Cn)}function e9(Cn,Gr,Lr,Fi){const Mi=Ke(!0);return cy(),nn(m.createJSDocThisTag(Gr,Mi,Jp(Cn,L(),Lr,Fi)),Cn)}function AZ(Cn,Gr,Lr,Fi){const Mi=Ke(!0);return cy(),nn(m.createJSDocEnumTag(Gr,Mi,Jp(Cn,L(),Lr,Fi)),Cn)}function BM(Cn,Gr,Lr,Fi){let Mi=or();Pb();const is=t9();cy();let Is=Ua(Lr),td;if(!Mi||P(Mi.type)){let Cp,f_,uy,Pp=!1;for(;(Cp=Ii(()=>RZ(Lr)))&&Cp.kind!==352;)if(Pp=!0,Cp.kind===351)if(f_){const EN=pn(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);EN&&wa(EN,wR(Ee,Pe,0,0,f.The_tag_was_first_specified_here));break}else f_=Cp;else uy=xn(uy,Cp);if(Pp){const EN=Mi&&Mi.type.kind===188,y8=m.createJSDocTypeLiteral(uy,EN);Mi=f_&&f_.typeExpression&&!P(f_.typeExpression.type)?f_.typeExpression:nn(y8,Cn),td=Mi.end}}td=td||Is!==void 0?L():(is??Mi??Gr).end,Is||(Is=Jp(Cn,td,Lr,Fi));const Fh=m.createJSDocTypedefTag(Gr,Mi,is,Is);return nn(Fh,Cn,td)}function t9(Cn){const Gr=t.getTokenStart();if(!ad(J()))return;const Lr=lE();if(ho(25)){const Fi=t9(!0),Mi=m.createModuleDeclaration(void 0,Lr,Fi,Cn?8:void 0);return nn(Mi,Gr)}return Cn&&(Lr.flags|=4096),Lr}function IZ(Cn){const Gr=L();let Lr,Fi;for(;Lr=Ii(()=>n9(4,Cn));){if(Lr.kind===352){Oe(Lr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Fi=xn(Fi,Lr)}return ko(Fi||[],Gr)}function xZ(Cn,Gr){const Lr=IZ(Gr),Fi=Ii(()=>{if(dv(60)){const Mi=yN(Gr);if(Mi&&Mi.kind===349)return Mi}});return nn(m.createJSDocSignature(void 0,Lr,Fi),Cn)}function Yhe(Cn,Gr,Lr,Fi){const Mi=t9();cy();let is=Ua(Lr);const Is=xZ(Cn,Lr);is||(is=Jp(Cn,L(),Lr,Fi));const td=is!==void 0?L():Is.end;return nn(m.createJSDocCallbackTag(Gr,Is,Mi,is),Cn,td)}function $he(Cn,Gr,Lr,Fi){cy();let Mi=Ua(Lr);const is=xZ(Cn,Lr);Mi||(Mi=Jp(Cn,L(),Lr,Fi));const Is=Mi!==void 0?L():is.end;return nn(m.createJSDocOverloadTag(Gr,is,Mi),Cn,Is)}function vN(Cn,Gr){for(;!Ve(Cn)||!Ve(Gr);)if(!Ve(Cn)&&!Ve(Gr)&&Cn.right.escapedText===Gr.right.escapedText)Cn=Cn.left,Gr=Gr.left;else return!1;return Cn.escapedText===Gr.escapedText}function RZ(Cn){return n9(1,Cn)}function n9(Cn,Gr,Lr){let Fi=!0,Mi=!1;for(;;)switch(Tt()){case 60:if(Fi){const is=j1(Cn,Gr);return is&&(is.kind===348||is.kind===355)&&Lr&&(Ve(is.name)||!vN(Lr,is.name.left))?!1:is}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 j1(Cn,Gr){N.assert(J()===60);const Lr=t.getTokenFullStart();Tt();const Fi=lE(),Mi=Pb();let is;switch(Fi.escapedText){case"type":return Cn===1&&Xt(Lr,Fi);case"prop":case"property":is=1;break;case"arg":case"argument":case"param":is=6;break;case"template":return wb(Lr,Fi,Gr,Mi);case"this":return e9(Lr,Fi,Gr,Mi);default:return!1}return Cn&is?B(Lr,Fi,Cn,Gr):!1}function dr(){const Cn=L(),Gr=dv(23);Gr&&cy();const Lr=kh(!1,!0),Fi=lE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Mi;if(Gr&&(cy(),Dn(64),Mi=Wa(16777216,Om),Dn(24)),!zl(Fi))return nn(m.createTypeParameterDeclaration(Lr,Fi,void 0,Mi),Cn)}function kb(){const Cn=L(),Gr=[];do{cy();const Lr=dr();Lr!==void 0&&Gr.push(Lr),Pb()}while(dv(28));return ko(Gr,Cn)}function wb(Cn,Gr,Lr,Fi){const Mi=J()===19?Ke():void 0,is=kb();return nn(m.createJSDocTemplateTag(Gr,Mi,is,Jp(Cn,L(),Lr,Fi)),Cn)}function dv(Cn){return J()===Cn?(Tt(),!0):!1}function bN(){let Cn=lE();for(ho(23)&&Dn(24);ho(25);){const Gr=lE();ho(23)&&Dn(24),Cn=ct(Cn,Gr)}return Cn}function lE(Cn){if(!ad(J()))return js(80,!Cn,Cn||f.Identifier_expected);tn++;const Gr=t.getTokenStart(),Lr=t.getTokenEnd(),Fi=J(),Mi=nu(t.getTokenValue()),is=nn(M(Mi,Fi),Gr,Lr);return Tt(),is}}})(Y_=e.JSDocParser||(e.JSDocParser={}))})(C0||(C0={})),(e=>{function t(I,R,M,C){if(C=C||N.shouldAssert(2),m(I,R,M,C),$ne(M))return I;if(I.statements.length===0)return C0.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);const O=I;N.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,C0.fixupParentReferences(O);const U=I.text,K=v(I),Z=p(I,M);m(I,R,Z,C),N.assert(Z.span.start<=M.span.start),N.assert(Kl(Z.span)===Kl(M.span)),N.assert(Kl(sC(Z))===Kl(sC(M)));const V=sC(Z).length-Z.span.length;u(O,Z.span.start,Kl(Z.span),Kl(sC(Z)),V,U,R,C);const se=C0.parseSourceFile(I.fileName,R,I.languageVersion,K,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return se.commentDirectives=r(I.commentDirectives,se.commentDirectives,Z.span.start,Kl(Z.span),V,U,R,C),se.impliedNodeFormat=I.impliedNodeFormat,se}e.updateSourceFile=t;function r(I,R,M,C,O,U,K,Z){if(!I)return R;let V,se=!1;for(const ne of I){const{range:he,type:ve}=ne;if(he.endC){G();const $={range:{pos:he.pos+O,end:he.end+O},type:ve};V=xn(V,$),Z&&N.assert(U.substring(he.pos,he.end)===K.substring($.range.pos,$.range.end))}}return G(),V;function G(){se||(se=!0,V?R&&V.push(...R):V=R)}}function i(I,R,M,C,O,U){R?Z(I):K(I);return;function K(V){let se="";if(U&&o(V)&&(se=C.substring(V.pos,V.end)),V._children&&(V._children=void 0),gh(V,V.pos+M,V.end+M),U&&o(V)&&N.assert(se===O.substring(V.pos,V.end)),Ho(V,K,Z),Fp(V))for(const G of V.jsDoc)K(G);l(V,U)}function Z(V){V._children=void 0,gh(V,V.pos+M,V.end+M);for(const se of V)K(se)}}function o(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function s(I,R,M,C,O){N.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),N.assert(I.pos<=M,"Adjusting an element that was entirely after the change range"),N.assert(I.pos<=I.end);const U=Math.min(I.pos,C),K=I.end>=M?I.end+O:Math.min(I.end,C);N.assert(U<=K),I.parent&&(N.assertGreaterThanOrEqual(U,I.parent.pos),N.assertLessThanOrEqual(K,I.parent.end)),gh(I,U,K)}function l(I,R){if(R){let M=I.pos;const C=O=>{N.assert(O.pos>=M),M=O.end};if(Fp(I))for(const O of I.jsDoc)C(O);Ho(I,C),N.assert(M<=I.end)}}function u(I,R,M,C,O,U,K,Z){V(I);return;function V(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!1,O,U,K,Z);return}const ne=G.end;if(ne>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O),Ho(G,V,se),Fp(G))for(const he of G.jsDoc)V(he);l(G,Z);return}N.assert(neM){i(G,!0,O,U,K,Z);return}const ne=G.end;if(ne>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,O);for(const he of G)V(he);return}N.assert(ne0&&K<=1;K++){const Z=h(I,C);N.assert(Z.pos<=C);const V=Z.pos;C=Math.max(0,V-1)}const O=dc(C,Kl(R.span)),U=R.newLength+(R.span.start-C);return nL(O,U)}function h(I,R){let M=I,C;if(Ho(I,U),C){const K=O(C);K.pos>M.pos&&(M=K)}return M;function O(K){for(;;){const Z=_U(K);if(Z)K=Z;else return K}}function U(K){if(!zl(K))if(K.pos<=R){if(K.pos>=M.pos&&(M=K),RR),!0}}function m(I,R,M,C){const O=I.text;if(M&&(N.assert(O.length-M.span.length+M.newLength===R.length),C||N.shouldAssert(3))){const U=O.substr(0,M.span.start),K=R.substr(0,M.span.start);N.assert(U===K);const Z=O.substring(Kl(M.span),O.length),V=R.substring(Kl(sC(M)),R.length);N.assert(Z===V)}}function v(I){let R=I.statements,M=0;N.assert(M=se.pos&&K=se.pos&&K{I[I.Value=-1]="Value"})(A||(A={}))})(XH||(XH={})),YH=new Map,yAe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,vAe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function dF(e){const t=new Map,r=new Map;return Xe(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function oD(){return rIe||(rIe=dF(dg))}function ise(e){return bAe(e,Hl)}function bAe(e,t){const r=zo(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 pF(e,t,r){return QAe(e,(t??"").trim(),r)}function ose(e,t="",r){if(t=t.trim(),uo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return vI(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Hi(i,o=>vI(e.element,parseInt(o),r));case"string":return Hi(i,o=>vI(e.element,o||"",r));case"boolean":case"object":return N.fail(`List of ${e.element.type} is not yet supported.`);default:return Hi(i,o=>pF(e.element,o,r))}}function EAe(e){return e.name}function ase(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return P0(o,i,t.alternateMode.diagnostic,e);const l=YN(e,t.optionDeclarations,EAe);return l?P0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):P0(o,i,t.unknownOptionDiagnostic,r||e)}function $H(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(h){let m=0;for(;mgu.readFile(I)));if(!Po(m)){l.push(m);return}const v=[];let A=0;for(;;){for(;A=m.length)break;const I=A;if(m.charCodeAt(I)===34){for(A++;A32;)A++;v.push(m.substring(I,A))}}u(v)}}function SAe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=vI(i,!1,s),t++):(l==="true"&&t++,s.push(Hl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Hl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!uo(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Hl(r.optionTypeMismatchDiagnostic,i.name,tq(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=vI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=vI(i,e[t]||"",s),t++;break;case"list":const u=ose(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":N.fail("listOrElement not supported here");break;default:o[i.name]=pF(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function TAe(e,t){return $H(hw,e,t)}function QH(e,t){return sse(oD,e,t)}function sse(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:o}=e();if(r){const s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function AAe(){return oIe||(oIe=dF(bF))}function IAe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=$H(sIe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Hl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function xAe(e,...t){return oa(Hl(e,...t).messageText,Po)}function aw(e,t,r,i,o,s){const l=CP(e,h=>r.readFile(h));if(!Po(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=ow(e,l),p=r.getCurrentDirectory();return u.path=ol(e,p,Mu(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,cw(u,r,go(ai(e),p),t,go(e,p),void 0,s,i,o)}function sw(e,t){const r=CP(e,t);return Po(r)?ZH(e,r):{config:{},error:r}}function ZH(e,t){const r=ow(e,t);return{config:PAe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function lse(e,t){const r=CP(e,t);return Po(r)?ow(e,r):{fileName:e,parseDiagnostics:[r]}}function CP(e,t){let r;try{r=t(e)}catch(i){return Hl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Hl(f.Cannot_read_file_0,e):r}function eq(e){return DE(e,EAe)}function RAe(){return lIe||(lIe=dF(aD))}function DAe(){return cIe||(cIe=eq(dg))}function NAe(){return uIe||(uIe=eq(aD))}function CAe(){return dIe||(dIe=eq(_w))}function nVe(){return Tse===void 0&&(Tse={name:void 0,type:"object",elementOptions:eq([bse,Ese,Sse,gw,{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},dw])}),Tse}function PAe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push($f(e,o,f.The_root_value_of_a_0_file_must_be_an_object,rc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),md(o)){const s=An(o.elements,Oa);if(s)return lw(e,s,t,!0,r)}return{}}return lw(e,o,t,!0,r)}function cse(e,t){var r;return lw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function lw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(h,m){var v;const A=i?{}:void 0;for(const I of h.properties){if(I.kind!==303){r.push($f(e,I,f.Property_assignment_expected));continue}I.questionToken&&r.push($f(e,I.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(I.name)||r.push($f(e,I.name,f.String_literal_with_double_quotes_expected));const R=AL(I.name)?void 0:sR(I.name),M=R&&Vi(R),C=M?(v=m?.elementOptions)==null?void 0:v.get(M):void 0,O=u(I.initializer,C);typeof M<"u"&&(i&&(A[M]=O),o?.onPropertySet(M,O,I,m,C))}return A}function l(h,m){if(!i){h.forEach(v=>u(v,m));return}return nr(h.map(v=>u(v,m)),v=>v!==void 0)}function u(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push($f(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($f(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,tq(m))):r.push($f(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return Ma(h)&&t3(h,e)}}function tq(e){return e.type==="listOrElement"?`${tq(e.element)} or Array`:e.type==="list"?"Array":Po(e.type)?e.type:"string"}function MAe(e,t){if(e){if(uw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return To(t);if(e.type==="listOrElement")return To(t)||MAe(e.element,t);const r=Po(e.type)?e.type:"string";return typeof t===r}return!1}function LAe(e,t,r){var i,o,s;const l=Mu(r.useCaseSensitiveFileNames),u=Ot(nr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?iVe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Dy),R=>H2(go(t,r.getCurrentDirectory()),go(R,r.getCurrentDirectory()),l)),p={configFilePath:go(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=mF(e.options,p),m=e.watchOptions&&oVe(e.watchOptions),v={compilerOptions:{...fF(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&&fF(m),references:Ot(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Le(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:rVe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},A=new Set(h.keys()),I={};for(const R in mc)if(!A.has(R)&&bt(mc[R].dependencies,M=>A.has(M))){const M=mc[R].computeValue(e.options),C=mc[R].computeValue({});M!==C&&(I[R]=mc[R].computeValue(e.options))}return Wx(v.compilerOptions,fF(mF(I,p))),v}function fF(e){return{...zo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function rVe(e){if(Le(e)){if(Le(e)!==1)return e;if(e[0]!==TF)return e}}function iVe(e,t,r,i){if(!t)return Dy;const o=B3(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&qv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&qv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Dy}function kAe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return kAe(e.element);default:return e.type}}function nq(e,t){return Gc(t,(r,i)=>{if(r===e)return i})}function mF(e,t){return wAe(e,oD(),t)}function oVe(e){return wAe(e,RAe())}function wAe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Mu(r.useCaseSensitiveFileNames);for(const s in e)if(xs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){N.assert(u.type!=="listOrElement");const p=kAe(u);p?u.type==="list"?i.set(s,l.map(h=>nq(h,p))):i.set(s,nq(l,p)):r&&u.isFilePath?i.set(s,H2(r.configFilePath,go(l,ai(r.configFilePath)),o)):i.set(s,l)}}return i}function OAe(e,t){const r=WAe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],l=i(2);return sq.forEach(u=>{if(!r.has(u.name))return;const p=r.get(u.name),h=hse(u);p!==h?s.push(`${l}${u.name}: ${p}`):xs(EF,u.name)&&s.push(`${l}${u.name}: ${h}`)}),s.join(t)+t}}function WAe(e){const t=I6(e,EF);return mF(t)}function FAe(e,t,r){const i=WAe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:h}){const m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&u!==void 0&&(!m.includes(u)||i.has(p))}function l(){const u=new Map;u.set(f.Projects,[]),u.set(f.Language_and_Environment,[]),u.set(f.Modules,[]),u.set(f.JavaScript_Support,[]),u.set(f.Emit,[]),u.set(f.Interop_Constraints,[]),u.set(f.Type_Checking,[]),u.set(f.Completeness,[]);for(const I of dg)if(s(I)){let R=u.get(I.category);R||u.set(I.category,R=[]),R.push(I)}let p=0,h=0;const m=[];u.forEach((I,R)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${Wo(R)} */`});for(const M of I){let C;i.has(M.name)?C=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(h+=1)===i.size?"":","}`:C=`// "${M.name}": ${JSON.stringify(hse(M))},`,m.push({value:C,description:`/* ${M.description&&Wo(M.description)||M.name} */`}),p=Math.max(C.length,p)}});const v=o(2),A=[];A.push("{"),A.push(`${v}"compilerOptions": {`),A.push(`${v}${v}/* ${Wo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),A.push("");for(const I of m){const{value:R,description:M=""}=I;A.push(R&&`${v}${v}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){A.push(`${v}},`),A.push(`${v}"files": [`);for(let I=0;Itypeof pe=="object","object"),he=Z(V("files"));if(he){const pe=ne==="no-prop"||To(ne)&&ne.length===0,ie=xs(A,"extends");if(he.length===0&&pe&&!ie)if(t){const ye=l||"tsconfig.json",Me=f.The_files_list_in_config_file_0_is_empty,Ue=NL(t,"files",De=>De.initializer),Ee=P0(t,Ue,Me,ye);m.push(Ee)}else G(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ve=Z(V("include"));const $=V("exclude");let Y=!1,oe=Z($);if($==="no-prop"&&A.compilerOptions){const pe=A.compilerOptions.outDir,ie=A.compilerOptions.declarationDir;(pe||ie)&&(oe=[pe,ie].filter(ye=>!!ye))}he===void 0&&ve===void 0&&(ve=[TF],Y=!0);let fe,Ne;return ve&&(fe=nIe(ve,m,!0,t,"include")),oe&&(Ne=nIe(oe,m,!1,t,"exclude")),{filesSpecs:he,includeSpecs:ve,excludeSpecs:oe,validatedFilesSpec:nr(he,Po),validatedIncludeSpecs:fe,validatedExcludeSpecs:Ne,pathPatterns:void 0,isDefaultIncludeSpec:Y}}function U(ne){const he=MP(M,ne,I,r,p);return jAe(he,PP(A),u)&&m.push(VAe(M,l)),he}function K(ne){let he;const ve=se("references",$=>typeof $=="object","object");if(To(ve))for(const $ of ve)typeof $.path!="string"?G(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(he||(he=[])).push({path:go($.path,ne),originalPath:$.path,prepend:$.prepend,circular:$.circular});return he}function Z(ne){return To(ne)?ne:void 0}function V(ne){return se(ne,Po,"string")}function se(ne,he,ve){if(xs(A,ne)&&!uw(A[ne]))if(To(A[ne])){const $=A[ne];return!t&&!Zn($,he)&&m.push(Hl(f.Compiler_option_0_requires_a_value_of_type_1,ne,ve)),$}else return G(f.Compiler_option_0_requires_a_value_of_type_1,ne,"Array"),"not-array";return"no-prop"}function G(ne,...he){t||m.push(Hl(ne,...he))}}function sVe(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 VAe({includeSpecs:e,excludeSpecs:t},r){return Hl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function jAe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function PP(e){return!xs(e,"files")&&!xs(e,"references")}function _F(e,t,r,i,o){const s=i.length;return jAe(e,o)?i.push(VAe(r,t)):Xs(i,l=>!sVe(l)),s!==i.length}function lVe(e){return!!e.options}function UAe(e,t,r,i,o,s,l,u){var p;i=Lu(i);const h=go(o||"",i);if(s.includes(h))return l.push(Hl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||cse(t,l)};const m=e?cVe(e,r,i,o,l):uVe(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);const A={options:{}};Po(m.extendedConfigPath)?v(A,m.extendedConfigPath):m.extendedConfigPath.forEach(I=>v(A,I)),!m.raw.include&&A.include&&(m.raw.include=A.include),!m.raw.exclude&&A.exclude&&(m.raw.exclude=A.exclude),!m.raw.files&&A.files&&(m.raw.files=A.files),m.raw.compileOnSave===void 0&&A.compileOnSave&&(m.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=zo(A.extendedSourceFiles.keys())),m.options=Wx(A.options,m.options),m.watchOptions=m.watchOptions&&A.watchOptions?Wx(A.watchOptions,m.watchOptions):m.watchOptions||A.watchOptions}return m;function v(A,I){const R=dVe(t,I,r,s,l,u,A);if(R&&lVe(R)){const M=R.raw;let C;const O=U=>{M[U]&&(A[U]=Ot(M[U],K=>pp(K)?K:Qr(C||(C=nC(ai(I),i,Mu(r.useCaseSensitiveFileNames))),K)))};O("include"),O("exclude"),O("files"),M.compileOnSave!==void 0&&(A.compileOnSave=M.compileOnSave),Wx(A.options,R.options),A.watchOptions=A.watchOptions&&R.watchOptions?Wx({},A.watchOptions,R.watchOptions):A.watchOptions||R.watchOptions}}}function cVe(e,t,r,i,o){xs(e,"excludes")&&o.push(Hl(f.Unknown_option_excludes_Did_you_mean_exclude));const s=YAe(e.compilerOptions,r,o,i),l=$Ae(e.typeAcquisition,r,o,i),u=fVe(e.watchOptions,r,o);e.compileOnSave=pVe(e,r,o);const p=e.extends||e.extends===""?HAe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function HAe(e,t,r,i,o,s,l,u){let p;const h=i?BAe(i,r):r;if(Po(e))p=qAe(e,t,h,o,l,u);else if(To(e)){p=[];for(let m=0;mU.name===I)&&(h=xn(h,M.name))))}}function qAe(e,t,r,i,o,s){if(e=Lu(e),pp(e)||uo(e,"./")||uo(e,"../")){let u=go(e,r);if(!t.fileExists(u)&&!Al(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(P0(s,o,f.File_0_not_found,e));return}return u}const l=Lse(e,Qr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(P0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(P0(s,o,f.File_0_not_found,e))}function dVe(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:lh(t);let p,h,m;if(s&&(p=s.get(u))?{extendedResult:h,extendedConfig:m}=p:(h=lse(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=UAe(void 0,h,r,ai(t),rc(t),i,o,s)),s&&s.set(u,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(const v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function pVe(e,t,r){if(!xs(e,dw.name))return!1;const i=$S(dw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function JAe(e,t,r){const i=[];return{options:YAe(e,t,i,r),errors:i}}function KAe(e,t,r){const i=[];return{options:$Ae(e,t,i,r),errors:i}}function XAe(e){return e&&rc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function YAe(e,t,r,i){const o=XAe(i);return use(DAe(),e,t,o,hw,r),i&&(o.configFilePath=Lu(i)),o}function oq(e){return{enable:!!e&&rc(e)==="jsconfig.json",include:[],exclude:[]}}function $Ae(e,t,r,i){const o=oq(i);return use(CAe(),e,t,o,vse,r),o}function fVe(e,t,r){return use(NAe(),e,t,void 0,SF,r)}function use(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=$S(u,t[l],r,s):s.push(ase(l,o))}return i}}function P0(e,t,r,...i){return e&&t?$f(e,t,r,...i):Hl(r,...i)}function $S(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(P0(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(MAe(e,t)){const u=e.type;if(u==="list"&&To(t))return ZAe(e,t,r,i,o,s,l);if(u==="listOrElement")return To(t)?ZAe(e,t,r,i,o,s,l):$S(e.element,t,r,i,o,s,l);if(!Po(e.type))return QAe(e,t,i,s,l);const p=vI(e,t,i,s,l);return uw(p)?p:mVe(e,r,p)}else i.push(P0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,tq(e)))}function mVe(e,t,r){return e.isFilePath&&(r=go(r,t),r===""&&(r=".")),r}function vI(e,t,r,i,o){var s;if(uw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(P0(o,i,...l))}function QAe(e,t,r,i,o){if(uw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(bAe(e,(u,...p)=>P0(o,i,u,...p)))}function ZAe(e,t,r,i,o,s,l){return nr(Ot(t,(u,p)=>$S(e.element,u,r,i,o,s?.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function MP(e,t,r,i,o=et){t=ga(t);const s=Mu(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,A=XC(r,o),I=mk(r,A);if(h)for(const O of h){const U=go(O,t);l.set(s(U),U)}let R;if(m&&m.length>0)for(const O of i.readDirectory(t,da(I),v,m,void 0)){if(Il(O,".json")){if(!R){const Z=m.filter(se=>Al(se,".json")),V=Ot(F3(Z,t,"files"),se=>`^${se}$`);R=V?V.map(se=>qv(se,i.useCaseSensitiveFileNames)):et}if(Br(R,Z=>Z.test(O))!==-1){const Z=s(O);!l.has(Z)&&!p.has(Z)&&p.set(Z,O)}continue}if(gVe(O,l,u,A,s))continue;yVe(O,u,A,s);const U=s(O);!l.has(U)&&!u.has(U)&&u.set(U,O)}const M=zo(l.values()),C=zo(u.values());return M.concat(C,zo(p.values()))}function dse(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Le(l)||!Le(u))return!1;r=ga(r);const p=Mu(i);if(s){for(const h of s)if(p(go(h,r))===e)return!1}return tIe(e,u,i,o,r)}function eIe(e){const t=uo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Al(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function hF(e,t,r,i){return tIe(e,nr(t,o=>!eIe(o)),r,i)}function tIe(e,t,r,i,o){const s=KC(t,Qr(ga(i),o),"exclude"),l=s&&qv(s,r);return l?l.test(e)?!0:!AA(e)&&l.test(Bc(e)):!1}function nIe(e,t,r,i,o){return e.filter(l=>{if(!Po(l))return!1;const u=pse(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const p=j4(i,o,u);return P0(i,p,l,u)}}function pse(e,t){if(N.assert(typeof e=="string"),t&&pIe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(eIe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function _Ve({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=KC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const p=[];for(const h of e){const m=ga(Qr(r,h));if(s&&s.test(m))continue;const v=hVe(m,i);if(v){const{key:A,path:I,flags:R}=v,M=u.get(A),C=M!==void 0?l[M]:void 0;(C===void 0||CTc(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(Il(e,l)&&(l!==".ts"||!Il(e,".d.ts")))return!1;const u=o(E0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Il(e,".js")||Il(e,".jsx")))continue;return!0}}return!1}function yVe(e,t,r,i){const o=Xe(r,s=>Tc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(Il(e,l))return;const u=i(E0(e,l));t.delete(u)}}function mse(e){const t={};for(const r in e)if(xs(e,r)){const i=QH(r);i!==void 0&&(t[r]=_se(e[r],i))}return t}function _se(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!To(e))return _se(e,t.element);case"list":const r=t.element;return To(e)?Hi(e,i=>_se(i,r)):"";default:return Gc(t.type,(i,o)=>{if(i===e)return o})}}function hse(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return hse(e.element);case"object":return{};default:const r=S6(e.type.keys());return r!==void 0?r:N.fail("Expected 'option.type' to have entries.")}}var dw,gse,LP,yse,pw,gF,aD,fw,mw,aq,sq,dg,lq,cq,uq,yF,vF,dq,pq,fq,bF,_w,rIe,iIe,EF,hw,oIe,aIe,sIe,vse,lIe,SF,cIe,uIe,dIe,gw,bse,Ese,Sse,Tse,TF,pIe,fIe,vVe=T({"src/compiler/commandLineParser.ts"(){ra(),dw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},gse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),LP=new Map(Ca(gse.entries(),([e,t])=>[""+t,e])),yse=[["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"]],pw=yse.map(e=>e[0]),gF=new Map(yse),aD=[{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:pse},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:pse},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],fw=[{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}],mw={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},aq={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},sq=[{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},mw,aq,{name:"lib",type:"list",element:{name:"lib",type:gF,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:gse,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}],dg=[...fw,...sq],lq=dg.filter(e=>!!e.affectsSemanticDiagnostics),cq=dg.filter(e=>!!e.affectsEmit),uq=dg.filter(e=>!!e.affectsDeclarationPath),yF=dg.filter(e=>!!e.affectsModuleResolution),vF=dg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),dq=dg.filter(e=>!!e.affectsProgramStructure),pq=dg.filter(e=>xs(e,"transpileOptionValue")),fq=[{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}],bF=[...fw,...fq],_w=[{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}],iIe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:AAe},EF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},hw={alternateMode:iIe,getOptionsNameMap:oD,optionDeclarations:dg,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},aIe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:oD},sIe={alternateMode:aIe,getOptionsNameMap:AAe,optionDeclarations:bF,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},vse={optionDeclarations:_w,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},SF={getOptionsNameMap:RAe,optionDeclarations:aD,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},gw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},bse={name:"compilerOptions",type:"object",elementOptions:DAe(),extraKeyDiagnostics:hw},Ese={name:"watchOptions",type:"object",elementOptions:NAe(),extraKeyDiagnostics:SF},Sse={name:"typeAcquisition",type:"object",elementOptions:CAe(),extraKeyDiagnostics:vse},TF="**/*",pIe=/(^|\/)\*\*\/?$/,fIe=/^[^*?]*(?=\/[^/]*[*?])/}});function bo(e,t,...r){e.trace(yU(t,...r))}function Ug(e,t){return!!e.traceResolution&&t.trace!==void 0}function bI(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+al.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function mq(e){return bI(void 0,e)}function mIe(e){if(e)return N.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function AF(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function bVe(e){const t=[];return e&1&&t.push(...xk),e&2&&t.push(...GR),e&4&&t.push(...Ik),e&8&&t.push(".json"),t}function Ase(e){if(e)return N.assert(U3(e.extension)),{fileName:e.path,packageId:e.packageId}}function _Ie(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Yc(e)){const{resolvedFileName:h,originalPath:m}=yIe(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return hIe(t,r,i,o,s,l.resultFromCache,u,p)}function hIe(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:Ise(s.failedLookupLocations,r),affectingLocations:Ise(s.affectingLocations,i),resolutionDiagnostics:Ise(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=sD(s.failedLookupLocations,r),s.affectingLocations=sD(s.affectingLocations,i),s.resolutionDiagnostics=sD(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:u}}function kP(e){return e.length?e:void 0}function sD(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Ise(e,t){return e?.length?t.length?[...e,...t]:e.slice():kP(t)}function gIe(e,t,r,i){if(!xs(e,t)){i.traceEnabled&&bo(i.host,f.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&bo(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 _q(e,t,r,i){const o=gIe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&bo(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=ga(Qr(r,o));return i.traceEnabled&&bo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function EVe(e,t,r){return _q(e,"typings",t,r)||_q(e,"types",t,r)}function SVe(e,t,r){return _q(e,"tsconfig",t,r)}function TVe(e,t,r){return _q(e,"main",t,r)}function AVe(e,t){const r=gIe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&bo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function IVe(e,t){const r=AVe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)xs(r,l)&&!k2.tryParse(l)&&bo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=IF(r);if(!i){t.traceEnabled&&bo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ue);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&bo(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 IF(e){zse||(zse=new vm(Re));for(const t in e){if(!xs(e,t))continue;const r=k2.tryParse(t);if(r!==void 0&&r.test(zse))return{version:t,paths:e[t]}}}function wP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ai(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return xVe(r)}function xVe(e){let t;return Sm(ga(e),r=>{const i=Qr(r,BIe);(t??(t=[])).push(i)}),t}function RVe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Cg(e,t,!i)===0}function yIe(e,t,r){const i=zVe(e,t,r),o=RVe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function vIe(e,t,r){const i=Al(e,"/node_modules/@types")||Al(e,"/node_modules/@types/")?WIe(t,r):t;return Qr(e,i)}function xse(e,t,r,i,o,s,l){N.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=Ug(r,i);o&&(r=o.commandLine.options);const p=t?ai(t):void 0;let h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Yc(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return u&&(bo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),bo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(h)),h;const m=wP(r,i);u&&(t===void 0?m===void 0?bo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):bo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?bo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):bo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const v=[],A=[];let I=Rse(r);l!==void 0&&(I|=30);const R=fd(r);l===99&&3<=R&&R<=99&&(I|=32);const M=I&8?ib(r,l):[],C=[],O={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:v,affectingLocations:A,packageJsonInfoCache:s,features:I,conditions:M,requestContainingDirectory:p,reportDiagnostic:ne=>void C.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let U=se(),K=!0;U||(U=G(),K=!1);let Z;if(U){const{fileName:ne,packageId:he}=U;let ve=ne,$;r.preserveSymlinks||({resolvedFileName:ve,originalPath:$}=yIe(ne,i,u)),Z={primary:K,resolvedFileName:ve,originalPath:$,packageId:he,isExternalLibraryImport:M0(ne)}}return h={resolvedTypeReferenceDirective:Z,failedLookupLocations:kP(v),affectingLocations:kP(A),resolutionDiagnostics:kP(C)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Yc(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),u&&V(h),h;function V(ne){var he;(he=ne.resolvedTypeReferenceDirective)!=null&&he.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?bo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,Bv(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):bo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):bo(i,f.Type_reference_directive_0_was_not_resolved,e)}function se(){if(m&&m.length)return u&&bo(i,f.Resolving_with_primary_search_path_0,m.join(", ")),qt(m,ne=>{const he=vIe(ne,e,O),ve=$m(ne,i);if(!ve&&u&&bo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){const $=uD(4,he,!ve,O);if($){const Y=vw($.path),oe=Y?d1(Y,!1,O):void 0;return Ase(bI(oe,$))}}return Ase(wse(4,he,!ve,O))});u&&bo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){const ne=t&&ai(t);if(ne!==void 0){let he;if(!r.typeRoots||!Al(t,yD))if(u&&bo(i,f.Looking_up_in_node_modules_folder_initial_location_0,ne),Yc(e)){const{path:ve}=IIe(ne,e);he=bq(4,ve,!1,O,!0)}else{const ve=LIe(4,e,ne,O,void 0,void 0);he=ve&&ve.value}else u&&bo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Ase(he)}else u&&bo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Rse(e){let t=0;switch(fd(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 ib(e,t){const r=fd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),So(i,e.customConditions)}function hq(e,t,r,i,o){const s=bw(o?.getPackageJsonInfoCache(),i,r);return Sm(t,l=>{if(rc(l)!=="node_modules"){const u=Qr(l,"node_modules"),p=Qr(u,e);return d1(p,!1,s)}})}function xF(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=wP(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=ga(s),u=Qr(o,l,"package.json");if(!(t.fileExists(u)&&VC(u,t).typings===null)){const h=rc(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function RF(e){return!!e?.contents}function Dse(e){return!!e&&!e.contents}function Nse(e){var t;if(e===null||typeof e!="object")return""+e;if(To(e))return`[${(t=e.map(i=>Nse(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)xs(e,i)&&(r+=`${i}: ${Nse(e[i])}`);return r+"}"}function gq(e,t){return t.map(r=>Nse(k3(e,r))).join("|")+`|${e.pathsBasePath}`}function yq(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function u(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,A){let I=r.get(v);if(I)return I;const R=m(v);if(I=i.get(R),!I){if(e){const M=m(e);M===R?I=o:i.has(M)||i.set(M,o)}A&&(I??(I=new Map)),I&&i.set(R,I)}return I&&r.set(v,I),I}function h(){const v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let A=t.get(v);return A||t.set(v,A=gq(v,yF)),A}}function DVe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(ol(u,e,t))}function o(u,p){(r||(r=new Map)).set(ol(u,e,t),p)}function s(){r=void 0}function l(){return r}}function bIe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function NVe(e,t,r,i){const o=yq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function u(h,m){const v=ol(h,e,t);return bIe(o,m,v,()=>EI())}function p(h,m,v,A){var I,R;const M=ol(v,e,t);return(R=(I=o.getMapOfCacheRedirects(A))==null?void 0:I.get(M))==null?void 0:R.get(h,m)}}function OP(e,t){return t===void 0?e:`${t}|${e}`}function EI(){const 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)=>{const[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){const l=OP(o,s);return t.set(l,[o,s]),l}}function CVe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function PVe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function MVe(e,t,r,i,o){const s=yq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:u};function l(){s.clear()}function u(v){s.update(v)}function p(v,A,I,R){var M,C;return N.assert(!Yc(v)),(C=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(OP(v,A)))==null?void 0:C.get(I)}function h(v,A,I){return N.assert(!Yc(v)),bIe(s,I,OP(v,A),m)}function m(){const v=new Map;return{get:A,set:I};function A(M){return v.get(ol(M,e,t))}function I(M,C){const O=ol(M,e,t);if(v.has(O))return;v.set(O,C);const U=i(C),K=U&&R(O,U);let Z=O;for(;Z!==K;){const V=ai(Z);if(V===Z||v.has(V))break;v.set(V,C),Z=V}}function R(M,C){const O=ol(ai(C),e,t);let U=0;const K=Math.min(M.length,O.length);for(;Ui,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),u.clear()}function m(v){l.update(v),u.update(v)}}function lD(e,t,r,i,o){const s=EIe(e,t,r,i,CVe,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function DF(e,t,r,i,o){return EIe(e,t,r,i,PVe,o)}function vq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function NF(e,t,r,i,o){return cD(e,t,vq(r),i,o)}function SIe(e,t,r,i){const o=ai(t);return r.getFromDirectoryCache(e,i,o,void 0)}function cD(e,t,r,i,o,s,l){var u,p,h;const m=Ug(r,i);s&&(r=s.commandLine.options),m&&(bo(i,f.Resolving_module_0_from_1,e,t),s&&bo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const v=ai(t);let A=o?.getFromDirectoryCache(e,l,v,s);if(A)m&&bo(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let I=r.moduleResolution;switch(I===void 0?(I=fd(r),m&&bo(i,f.Module_resolution_kind_is_not_specified_using_0,Hx[I])):m&&bo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,Hx[I]),(u=od)==null||u.logStartResolveModule(e),I){case 3:A=OVe(e,t,r,i,o,s,l);break;case 99:A=WVe(e,t,r,i,o,s,l);break;case 2:A=Mse(e,t,r,i,o,s,l?ib(r,l):void 0);break;case 1:A=Wse(e,t,r,i,o,s);break;case 100:A=Pse(e,t,r,i,o,s,l?ib(r,l):void 0);break;default:return N.fail(`Unexpected moduleResolution: ${I}`)}A&&A.resolvedModule&&((p=od)==null||p.logInfoEvent(`Module "${e}" resolved to "${A.resolvedModule.resolvedFileName}"`)),(h=od)==null||h.logStopResolveModule(A&&A.resolvedModule?""+A.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,A),Yc(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,A))}return m&&(A.resolvedModule?A.resolvedModule.packageId?bo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,A.resolvedModule.resolvedFileName,Bv(A.resolvedModule.packageId)):bo(i,f.Module_name_0_was_successfully_resolved_to_1,e,A.resolvedModule.resolvedFileName):bo(i,f.Module_name_0_was_not_resolved,e)),A}function TIe(e,t,r,i,o){const s=LVe(e,t,i,o);return s?s.value:Yc(t)?kVe(e,t,r,i,o):wVe(e,t,i,o)}function LVe(e,t,r,i){var o;const{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!Wp(t)){i.traceEnabled&&(s&&bo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),bo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const p=_3(i.compilerOptions,i.host),h=u?.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=j3(l)):void 0;return Ose(e,t,p,l,h,r,!1,i)}}function kVe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&bo(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=ga(Qr(r,t));let l,u;for(const p of o.compilerOptions.rootDirs){let h=ga(p);Al(h,al)||(h+=al);const m=uo(s,h)&&(u===void 0||u.lengthvoid K.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&qA(U)&&bo(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Z.conditions.map(ne=>`'${ne}'`).join(", "));let V;if(U===2){const ne=l&5,he=l&-6;V=ne&&G(ne,Z)||he&&G(he,Z)||void 0}else V=G(l,Z);let se;if(Z.resolvedPackageDirectory&&!u&&!Yc(t)){const ne=V?.value&&l&5&&!CIe(5,V.value.resolved.extension);if((m=V?.value)!=null&&m.isExternalLibraryImport&&ne&&e&8&&h?.includes("import")){ob(Z,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const he={...Z,features:Z.features&-9,reportDiagnostic:$a},ve=G(l&5,he);(v=ve?.value)!=null&&v.isExternalLibraryImport&&(se=ve.value.resolved.path)}else if((!V?.value||ne)&&U===2){ob(Z,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const he={...Z.compilerOptions,moduleResolution:100},ve={...Z,compilerOptions:he,features:30,conditions:ib(he),reportDiagnostic:$a},$=G(l&5,ve);(A=$?.value)!=null&&A.isExternalLibraryImport&&(se=$.value.resolved.path)}}return _Ie(t,(I=V?.value)==null?void 0:I.resolved,(R=V?.value)==null?void 0:R.isExternalLibraryImport,C,O,K,Z,s,se);function G(ne,he){const $=TIe(ne,t,r,(Y,oe,fe,Ne)=>bq(Y,oe,fe,Ne,!0),he);if($)return af({resolved:$,isExternalLibraryImport:M0($.path)});if(Yc(t)){const{path:Y,parts:oe}=IIe(r,t),fe=bq(ne,Y,!1,he,!0);return fe&&af({resolved:fe,isExternalLibraryImport:Nr(oe,"node_modules")})}else{let Y;if(e&2&&uo(t,"#")&&(Y=jVe(ne,t,r,he,s,p)),!Y&&e&4&&(Y=VVe(ne,t,r,he,s,p)),!Y){if(t.includes(":")){M&&bo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,AF(ne));return}M&&bo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,AF(ne)),Y=LIe(ne,t,r,he,s,p)}return ne&4&&(Y??(Y=zIe(t,he))),Y&&{value:Y.value&&{resolved:Y.value,isExternalLibraryImport:!0}}}}}function IIe(e,t){const r=Qr(e,t),i=zc(r),o=tl(i);return{path:o==="."||o===".."?Bc(ga(r)):ga(r),parts:i}}function zVe(e,t,r){if(!t.realpath)return e;const i=ga(t.realpath(e));return r&&bo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function bq(e,t,r,i,o){if(i.traceEnabled&&bo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,AF(e)),!Py(t)){if(!r){const l=ai(t);$m(l,i.host)||(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=uD(e,t,r,i);if(s){const l=o?vw(s.path):void 0,u=l?d1(l,!1,i):void 0;return bI(u,s)}}if(r||$m(t,i.host)||(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return wse(e,t,r,i,o)}function M0(e){return e.includes(Ih)}function vw(e,t){const r=ga(e),i=r.lastIndexOf(Ih);if(i===-1)return;const o=i+Ih.length;let s=xIe(r,o,t);return r.charCodeAt(o)===64&&(s=xIe(r,s,t)),r.slice(0,s)}function xIe(e,t,r){const i=e.indexOf(al,t+1);return i===-1?r?e.length:t:i}function kse(e,t,r,i){return mq(uD(e,t,r,i))}function uD(e,t,r,i){const o=RIe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=DIe(t,e,"",r,i);if(s)return s}}function RIe(e,t,r,i){if(!rc(t).includes("."))return;let s=Ad(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&bo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),DIe(s,e,l,r,i)}function Eq(e,t,r,i){return e&1&&Tc(t,xk)||e&4&&Tc(t,Ik)?Sq(t,r,i)!==void 0?{path:t,ext:T3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Il(t,".json")?Sq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:RIe(e,t,r,i)}function DIe(e,t,r,i,o){if(!i){const l=ai(e);l&&(i=!$m(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&&!Su(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const p=Sq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function Sq(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return NIe(e,t,r);const o=Bg(e)??"",s=o?hk(e,o):e;return Xe(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&&bo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&bo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function wse(e,t,r,i,o=!0){const s=o?d1(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&CF(s,i);return bI(s,Aq(e,t,r,i,l,u))}function Tq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=Rse(t),p=bw(i?.getPackageJsonInfoCache(),r,t);p.conditions=ib(t),p.requestContainingDirectory=e.packageDirectory;const h=Aq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,CF(e,p));if(s=xn(s,h?.path),u&8&&e.contents.packageJsonContent.exports){const m=RE([ib(t,99),ib(t,1)],Km);for(const v of m){const A={...p,failedLookupLocations:[],conditions:v,host:r},I=BVe(e,e.contents.packageJsonContent.exports,A,l);if(I)for(const R of I)s=Ng(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function BVe(e,t,r,i){let o;if(To(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&PF(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&uo(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,bVe(i),void 0,[Fne(XA(l,"**/*"),".*")]).forEach(h=>{o=Ng(o,{path:h,ext:qx(h),resolvedUsingTsExtension:void 0})})}else{const h=zc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;const m=Qr(e.packageDirectory,l),v=go(m,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),A=Eq(i,v,!1,r);if(A)return o=Ng(o,A,(I,R)=>I.path===R.path),!0}else if(Array.isArray(l)){for(const h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return Xe(Kh(l),h=>{if(h==="default"||Nr(r.conditions,h)||Tw(r.conditions,h))return s(l[h]),!0})}}function bw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Ug(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:$a,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Ew(e,t){const r=zc(e);for(r.pop();r.length>0;){const i=d1(Cv(r),!1,t);if(i)return i;r.pop()}}function CF(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=IVe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function d1(e,t,r){var i,o,s,l,u,p;const{host:h,traceEnabled:m}=r,v=Qr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}const A=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(A!==void 0){if(RF(A))return m&&bo(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),A.packageDirectory===e?A:{packageDirectory:e,contents:A.contents};A.directoryExists&&m&&bo(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}const I=$m(e,h);if(I&&h.fileExists(v)){const R=VC(v,h);m&&bo(h,f.Found_package_json_at_0,v);const M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,M),(u=r.affectingLocations)==null||u.push(v),M}else I&&m&&bo(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:I}),(p=r.failedLookupLocations)==null||p.push(v)}function Aq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=SVe(o,t,i):l=e&4&&EVe(o,t,i)||e&7&&TVe(o,t,i)||void 0);const u=(A,I,R,M)=>{const C=Eq(A,I,R,M);if(C)return mq(C);const O=A===4?5:A,U=M.features,K=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(M.features&=-33);const Z=bq(O,I,R,M,!1);return M.features=U,M.candidateIsFromPackageJsonField=K,Z},p=l?!$m(ai(l),i.host):void 0,h=r||!$m(t,i.host),m=Qr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||bm(t,l))){const A=Em(t,l||m,!1);i.traceEnabled&&bo(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,Re,A);const I=Ose(e,A,t,s.paths,void 0,u,p||h,i);if(I)return mIe(I.value)}const v=l&&mIe(u(e,l,p,i));if(v)return v;if(!(i.features&32))return uD(e,m,h,i)}function CIe(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 Sw(e){let t=e.indexOf(al);return e[0]==="@"&&(t=e.indexOf(al,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function PF(e){return Zn(Kh(e),t=>uo(t,"."))}function GVe(e){return!bt(Kh(e),t=>uo(t,"."))}function VVe(e,t,r,i,o,s){var l,u;const p=go(Qr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Ew(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;const m=zc(t),v=zc(h.contents.packageJsonContent.name);if(!Zn(v,(C,O)=>m[O]===C))return;const A=m.slice(v.length),I=Le(A)?`.${al}${A.join(al)}`:".";if(Xv(i.compilerOptions)&&!M0(r))return Iq(h,e,I,i,o,s);const R=e&5,M=e&-6;return Iq(h,R,I,i,o,s)||Iq(h,M,I,i,o,s)}function Iq(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"&&GVe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:xs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return MIe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(PF(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&bo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0);const l=PIe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&bo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0)}}function jVe(e,t,r,i,o,s){var l,u;if(t==="#"||uo(t,"#/"))return i.traceEnabled&&bo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),af(void 0);const p=go(Qr(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),h=Ew(p,i);if(!h)return i.traceEnabled&&bo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),af(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&bo(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),af(void 0);const m=PIe(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&bo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),af(void 0))}function xq(e,t){const 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 PIe(e,t,r,i,o,s,l,u){const p=MIe(e,t,r,i,o,l,u);if(!Al(o,al)&&!o.includes("*")&&xs(s,o)){const v=s[o];return p(v,"",!1,o)}const h=lS(nr(Kh(s),v=>v.includes("*")||Al(v,"/")),xq);for(const v of h)if(t.features&16&&m(v,o)){const A=s[v],I=v.indexOf("*"),R=o.substring(v.substring(0,I).length,o.length-(v.length-1-I));return p(A,R,!0,v)}else if(Al(v,"*")&&uo(o,v.substring(0,v.length-1))){const A=s[v],I=o.substring(v.length-1);return p(A,I,!0,v)}else if(uo(o,v)){const A=s[v],I=o.substring(v.length);return p(A,I,!1,v)}function m(v,A){if(Al(v,"*"))return!1;const I=v.indexOf("*");return I===-1?!1:uo(A,v.substring(0,I))&&Al(A,v.substring(I+1))}}function MIe(e,t,r,i,o,s,l){return u;function u(p,h,m,v){if(typeof p=="string"){if(!m&&h.length>0&&!Al(p,"/"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);if(!uo(p,"./")){if(l&&!uo(p,"../")&&!uo(p,"/")&&!pp(p)){const V=m?p.replace(/\*/g,h):p+h;ob(t,f.Using_0_subpath_1_with_target_2,"imports",v,V),ob(t,f.Resolving_module_0_from_1,V,s.packageDirectory+"/");const se=yw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return af(se.resolvedModule?{path:se.resolvedModule.resolvedFileName,extension:se.resolvedModule.extension,packageId:se.resolvedModule.packageId,originalPath:se.resolvedModule.originalPath,resolvedUsingTsExtension:se.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0)}const C=(Wp(p)?zc(p).slice(1):zc(p)).slice(1);if(C.includes("..")||C.includes(".")||C.includes("node_modules"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);const O=Qr(s.packageDirectory,p),U=zc(h);if(U.includes("..")||U.includes(".")||U.includes("node_modules"))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);t.traceEnabled&&bo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",v,m?p.replace(/\*/g,h):p+h);const K=A(m?O.replace(/\*/g,h):O+h),Z=R(K,h,Qr(s.packageDirectory,"package.json"),l);return Z||af(bI(s,Eq(e,K,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Le(p))return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);for(const M of p){const C=u(M,h,m,v);if(C)return C}}else{ob(t,f.Entering_conditional_exports);for(const M of Kh(p))if(M==="default"||t.conditions.includes(M)||Tw(t.conditions,M)){ob(t,f.Matched_0_condition_1,l?"imports":"exports",M);const C=p[M],O=u(C,h,m,v);if(O)return ob(t,f.Resolved_under_condition_0,M),ob(t,f.Exiting_conditional_exports),O;ob(t,f.Failed_to_resolve_under_condition_0,M)}else ob(t,f.Saw_non_matching_condition_0,M);ob(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&bo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),af(void 0);return t.traceEnabled&&bo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);function A(M){var C,O;return M===void 0?M:go(M,(O=(C=t.host).getCurrentDirectory)==null?void 0:O.call(C))}function I(M,C){return Bc(Qr(M,C))}function R(M,C,O,U){var K,Z,V,se;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(!t.compilerOptions.configFile||bm(s.packageDirectory,A(t.compilerOptions.configFile.fileName),!Rq(t)))){const ne=Fy({useCaseSensitiveFileNames:()=>Rq(t)}),he=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ve=A(YP(t.compilerOptions,()=>[],((Z=(K=t.host).getCurrentDirectory)==null?void 0:Z.call(K))||"",ne));he.push(ve)}else if(t.requestContainingDirectory){const ve=A(Qr(t.requestContainingDirectory,"index.ts")),$=A(YP(t.compilerOptions,()=>[ve,A(O)],((se=(V=t.host).getCurrentDirectory)==null?void 0:se.call(V))||"",ne));he.push($);let Y=Bc($);for(;Y&&Y.length>1;){const oe=zc(Y);oe.pop();const fe=Cv(oe);he.unshift(fe),Y=Bc(fe)}}he.length>1&&t.reportDiagnostic(Hl(U?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,C===""?".":C,O));for(const ve of he){const $=G(ve);for(const Y of $)if(bm(Y,M,!Rq(t))){const oe=M.slice(Y.length+1),fe=Qr(ve,oe),Ne=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const pe of Ne)if(Il(fe,pe)){const ie=Wie(fe);for(const ye of ie){if(!CIe(e,ye))continue;const Me=U2(fe,ye,pe,!Rq(t));if(t.host.fileExists(Me))return af(bI(s,Eq(e,Me,!1,t)))}}}}}return;function G(ne){var he,ve;const $=t.compilerOptions.configFile?((ve=(he=t.host).getCurrentDirectory)==null?void 0:ve.call(he))||"":ne,Y=[];return t.compilerOptions.declarationDir&&Y.push(A(I($,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Y.push(A(I($,t.compilerOptions.outDir))),Y}}}}function Tw(e,t){if(!e.includes("types")||!uo(t,"types@"))return!1;const r=k2.tryParse(t.substring(6));return r?r.test(Re):!1}function LIe(e,t,r,i,o,s){return kIe(e,t,r,i,!1,o,s)}function UVe(e,t,r){return kIe(4,e,t,r,!0,void 0,void 0)}function kIe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){ob(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,AF(p));const v=m(p);if(v)return v}if(h&&!o)return ob(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,AF(h)),m(h);function m(v){return Sm(Lu(r),A=>{if(rc(A)!=="node_modules"){const I=FIe(s,t,u,A,l,i);return I||af(wIe(v,t,A,i,o,s,l))}})}}function wIe(e,t,r,i,o,s,l){const u=Qr(r,"node_modules"),p=$m(u,i.host);if(!p&&i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const h=OIe(e,t,u,p,i,s,l);if(h)return h}if(e&4){const h=Qr(u,"@types");let m=p;return p&&!$m(h,i.host)&&(i.traceEnabled&&bo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),OIe(4,WIe(t,i),h,m,i,s,l)}}function OIe(e,t,r,i,o,s,l){var u,p;const h=ga(Qr(r,t)),{packageName:m,rest:v}=Sw(t),A=Qr(r,m);let I,R=d1(h,!i,o);if(v!==""&&R&&(!(o.features&8)||!xs(((u=I=d1(A,!i,o))==null?void 0:u.contents.packageJsonContent)??et,"exports"))){const O=uD(e,h,!i,o);if(O)return mq(O);const U=Aq(e,h,!i,o,R.contents.packageJsonContent,CF(R,o));return bI(R,U)}const M=(O,U,K,Z)=>{let V=(v||!(Z.features&32))&&uD(O,U,K,Z)||Aq(O,U,K,Z,R&&R.contents.packageJsonContent,R&&CF(R,Z));return!V&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&Z.features&32&&(V=uD(O,Qr(U,"index.js"),K,Z)),bI(R,V)};if(v!==""&&(R=I??d1(A,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=Iq(R,e,Qr(".",v),o,s,l))==null?void 0:p.value;const C=v!==""&&R?CF(R,o):void 0;if(C){o.traceEnabled&&bo(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,C.version,Re,v);const O=i&&$m(A,o.host),U=Ose(e,v,A,C.paths,void 0,M,!O,o);if(U)return U.value}return M(e,h,!i,o)}function Ose(e,t,r,i,o,s,l,u){o||(o=j3(i));const p=IU(o,t);if(p){const h=Po(p)?void 0:yne(p,t),m=Po(p)?p:gne(p);return u.traceEnabled&&bo(u.host,f.Module_name_0_matched_pattern_1,t,m),{value:Xe(i[m],A=>{const I=h?XA(A,h):A,R=ga(Qr(r,I));u.traceEnabled&&bo(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,A,I);const M=Bg(A);if(M!==void 0){const C=Sq(R,l,u);if(C!==void 0)return mq({path:C,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!$m(ai(R),u.host),u)})}}}function WIe(e,t){const r=dD(e);return t.traceEnabled&&r!==e&&bo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function MF(e){return`@types/${dD(e)}`}function dD(e){if(uo(e,"@")){const t=e.replace(al,Nq);if(t!==e)return t.slice(1)}return e}function WP(e){const t=$N(e,"@types/");return t!==e?Aw(t):e}function Aw(e){return e.includes(Nq)?"@"+e.replace(Nq,al):e}function FIe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&bo(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 Wse(e,t,r,i,o,s){const l=Ug(r,i),u=[],p=[],h=ai(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:R=>void m.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},A=I(5)||I(2|(r.resolveJsonModule?8:0));return _Ie(e,A&&A.value,A?.value&&M0(A.value.path),u,p,m,v,o);function I(R){const M=TIe(R,e,h,kse,v);if(M)return{value:M};if(Yc(e)){const C=ga(Qr(h,e));return af(kse(R,C,!1,v))}else{const C=Sm(h,O=>{const U=FIe(o,e,void 0,O,s,v);if(U)return U;const K=ga(Qr(O,e));return af(kse(R,K,!1,v))});if(C)return C;if(R&5){let O=UVe(e,h,v);return R&4&&(O??(O=zIe(e,v))),O}}}}function zIe(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=vIe(r,e,t),o=$m(r,t.host);!o&&t.traceEnabled&&bo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=uD(4,i,!o,t);if(s){const u=vw(s.path),p=u?d1(u,!1,t):void 0;return af(bI(p,s))}const l=wse(4,i,!o,t);if(l)return af(l)}}function pD(e,t){return!!e.allowImportingTsExtensions||t&&Su(t)}function Fse(e,t,r,i,o,s){const l=Ug(r,i);l&&bo(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);const u=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:A=>void h.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=wIe(4,e,o,m,!1,void 0,void 0);return hIe(v,!0,u,p,h,m.resultFromCache,void 0)}function af(e){return e!==void 0?{value:e}:void 0}function ob(e,t,...r){e.traceEnabled&&bo(e.host,t,...r)}function Rq(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var zse,BIe,Dq,Ih,Nq,HVe=T({"src/compiler/moduleNameResolver.ts"(){ra(),BIe=Qr("node_modules","@types"),Dq=(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))(Dq||{}),Ih="/node_modules/",Nq="__"}});function Hg(e,t){return e.body&&!e.body.parent&&(qa(e.body,e),Jv(e.body,!1)),e.body?Bse(e.body,t):1}function Bse(e,t=new Map){const r=as(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=qVe(e,t);return t.set(r,i),i}function qVe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(WE(e))return 2;break;case 272:case 271:if(!Zr(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const o of r.exportClause.elements){const s=JVe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ho(e,o=>{const s=Bse(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:N.assertNever(s)}}),i}case 267:return Hg(e,t);case 80:if(e.flags&4096)return 0}return 1}function JVe(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(Xo(i)||O_(i)||$i(i)){const o=i.statements;let s;for(const l of o)if(rL(l,r)){l.parent||(qa(l,i),Jv(l,!1));const u=Bse(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function SI(e){return N.attachFlowNodeDebugInfo(e),e}function Gse(e,t){var r,i;il("beforeBind"),(r=od)==null||r.logStartBindFile(""+e.fileName),VIe(e,t),(i=od)==null||i.logStopBindFile(),il("afterBind"),ef("Bind","beforeBind","afterBind")}function KVe(){var e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z,V,se=!1,G=0,ne,he,ve={flags:1},$={flags:1},Y=q();return fe;function oe(F,Te,...st){return $f(jn(F)||e,F,Te,...st)}function fe(F,Te){var st,Jt;e=F,t=Te,r=os(t),V=Ne(e,Te),he=new Set,G=0,ne=lu.getSymbolConstructor(),N.attachFlowNodeDebugInfo(ve),N.attachFlowNodeDebugInfo($),e.locals||((st=sr)==null||st.push(sr.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(Jt=sr)==null||Jt.pop(),e.symbolCount=G,e.classifiableNames=he,uu()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,h=!1,m=void 0,v=void 0,A=void 0,I=void 0,R=void 0,M=void 0,C=void 0,U=void 0,K=!1,se=!1,Z=0}function Ne(F,Te){return pd(Te,"alwaysStrict")&&!F.isDeclarationFile?!0:!!F.externalModuleIndicator}function pe(F,Te){return G++,new ne(F,Te)}function ie(F,Te,st){F.flags|=st,Te.symbol=F,F.declarations=Ng(F.declarations,Te),st&1955&&!F.exports&&(F.exports=ca()),st&6240&&!F.members&&(F.members=ca()),F.constEnumOnlyModule&&F.flags&304&&(F.constEnumOnlyModule=!1),st&111551&&jL(F,Te)}function ye(F){if(F.kind===277)return F.isExportEquals?"export=":"default";const Te=Mo(F);if(Te){if(ku(F)){const st=em(Te);return R_(F)?"__global":`"${st}"`}if(Te.kind===167){const st=Te.expression;if(nf(st))return hl(st.text);if(c3(st))return fa(st.operator)+st.operand.text;N.fail("Only computed properties with literal names have declaration names")}if(Ji(Te)){const st=su(F);if(!st)return;const Jt=st.symbol;return ek(Jt,Te.escapedText)}return t_(Te)?KA(Te):N_(Te)?MC(Te):void 0}switch(F.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(F)===2)return"export=";N.fail("Unknown binary declaration kind");break;case 324:return bR(F)?"__new":"__call";case 169:return N.assert(F.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${N.formatSyntaxKind(F.parent.kind)}, expected JSDocFunctionType`),"arg"+F.parent.parameters.indexOf(F)}}function Me(F){return sd(F)?Rs(F.name):Vi(N.checkDefined(ye(F)))}function Ue(F,Te,st,Jt,rr,oi,$r){N.assert($r||!jv(st));const io=Zr(st,2048)||Ku(st)&&st.name.escapedText==="default",Fa=$r?"__computed":io&&Te?"default":ye(st);let za;if(Fa===void 0)za=pe(0,"__missing");else if(za=F.get(Fa),Jt&2885600&&he.add(Fa),!za)F.set(Fa,za=pe(0,Fa)),oi&&(za.isReplaceableByMethod=!0);else{if(oi&&!za.isReplaceableByMethod)return za;if(za.flags&rr){if(za.isReplaceableByMethod)F.set(Fa,za=pe(0,Fa));else if(!(Jt&3&&za.flags&67108864)){sd(st)&&qa(st.name,st);let Ol=za.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,fu=!0;(za.flags&384||Jt&384)&&(Ol=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,fu=!1);let Dc=!1;Le(za.declarations)&&(io||za.declarations&&za.declarations.length&&st.kind===277&&!st.isExportEquals)&&(Ol=f.A_module_cannot_have_multiple_default_exports,fu=!1,Dc=!0);const xp=[];Nm(st)&&zl(st.type)&&Zr(st,32)&&za.flags&2887656&&xp.push(oe(st,f.Did_you_mean_0,`export type { ${Vi(st.name.escapedText)} }`));const Hd=Mo(st)||st;Xe(za.declarations,(us,km)=>{const wm=Mo(us)||us,Ui=fu?oe(wm,Ol,Me(us)):oe(wm,Ol);e.bindDiagnostics.push(Dc?wa(Ui,oe(Hd,km===0?f.Another_export_default_is_here:f.and_here)):Ui),Dc&&xp.push(oe(wm,f.The_first_export_default_is_here))});const pb=fu?oe(Hd,Ol,Me(st)):oe(Hd,Ol);e.bindDiagnostics.push(wa(pb,...xp)),za=pe(0,Fa)}}}return ie(za,st,Jt),za.parent?N.assert(za.parent===Te,"Existing symbol parent should match new one"):za.parent=Te,za}function Ee(F,Te,st){const Jt=!!(l0(F)&32)||De(F);if(Te&2097152)return F.kind===281||F.kind===271&&Jt?Ue(o.symbol.exports,o.symbol,F,Te,st):(N.assertNode(o,ph),Ue(o.locals,void 0,F,Te,st));if(Zf(F)&&N.assert(lr(F)),!ku(F)&&(Jt||o.flags&128)){if(!ph(o)||!o.locals||Zr(F,2048)&&!ye(F))return Ue(o.symbol.exports,o.symbol,F,Te,st);const rr=Te&111551?1048576:0,oi=Ue(o.locals,void 0,F,rr,st);return oi.exportSymbol=Ue(o.symbol.exports,o.symbol,F,Te,st),F.localSymbol=oi,oi}else return N.assertNode(o,ph),Ue(o.locals,void 0,F,Te,st)}function De(F){if(F.parent&&Xl(F)&&(F=F.parent),!Zf(F))return!1;if(!Jk(F)&&F.fullName)return!0;const Te=Mo(F);return Te?!!(lk(Te.parent)&&ec(Te.parent)||Ju(Te.parent)&&l0(Te.parent)&32):!1}function Pe(F,Te){const st=o,Jt=s,rr=l;if(Te&1?(F.kind!==219&&(s=o),o=l=F,Te&32&&(o.locals=ca(),ir(o))):Te&2&&(l=F,Te&32&&(l.locals=void 0)),Te&4){const oi=m,$r=v,io=A,Fa=I,za=C,Ol=U,fu=K,Dc=Te&16&&!Zr(F,1024)&&!F.asteriskToken&&!!AS(F)||F.kind===175;Dc||(m=SI({flags:2}),Te&144&&(m.node=F)),I=Dc||F.kind===176||lr(F)&&(F.kind===262||F.kind===218)?Pn():void 0,C=void 0,v=void 0,A=void 0,U=void 0,K=!1,je(F),F.flags&=-5633,!(m.flags&1)&&Te&8&&Yf(F.body)&&(F.flags|=512,K&&(F.flags|=1024),F.endFlowNode=m),F.kind===312&&(F.flags|=Z,F.endFlowNode=m),I&&($t(I,m),m=Mn(I),(F.kind===176||F.kind===175||lr(F)&&(F.kind===262||F.kind===218))&&(F.returnFlowNode=m)),Dc||(m=oi),v=$r,A=io,I=Fa,C=za,U=Ol,K=fu}else Te&64?(h=!1,je(F),N.assertNotNode(F,Ve),F.flags=h?F.flags|256:F.flags&-257):je(F);o=st,s=Jt,l=rr}function We(F){At(F,Te=>Te.kind===262?we(Te):void 0),At(F,Te=>Te.kind!==262?we(Te):void 0)}function At(F,Te=we){F!==void 0&&Xe(F,Te)}function Se(F){Ho(F,we,At)}function je(F){const Te=se;if(se=!1,jt(F)){Se(F),Et(F),se=Te;return}switch(F.kind>=243&&F.kind<=259&&!t.allowUnreachableCode&&(F.flowNode=m),F.kind){case 247:Qi(F);break;case 246:Io(F);break;case 248:ma(F);break;case 249:case 250:Wa(F);break;case 245:Sn(F);break;case 253:case 257:kn(F);break;case 252:case 251:ft(F);break;case 258:Ct(F);break;case 255:le(F);break;case 269:Fe(F);break;case 296:pt(F);break;case 244:j(F);break;case 256:Rt(F);break;case 224:yn(F);break;case 225:pn(F);break;case 226:if(By(F)){se=Te,_n(F);return}Y(F);break;case 220:Oe(F);break;case 227:Lt(F);break;case 260:_e(F);break;case 211:case 212:Ni(F);break;case 213:Ai(F);break;case 235:Hn(F);break;case 353:case 345:case 347:ke(F);break;case 312:{We(F.statements),we(F.endOfFileToken);break}case 241:case 268:We(F.statements);break;case 208:J(F);break;case 169:me(F);break;case 210:case 209:case 303:case 230:se=Te;default:Se(F);break}Et(F),se=Te}function at(F){switch(F.kind){case 80:case 81:case 110:case 211:case 212:return yt(F);case 213:return $e(F);case 217:if(eD(F))return!1;case 235:return at(F.expression);case 226:return tn(F);case 224:return F.operator===54&&at(F.operand);case 221:return at(F.expression)}return!1}function Gt(F){return BC(F)||(Wr(F)||dI(F)||Gd(F))&&Gt(F.expression)||mr(F)&&F.operatorToken.kind===28&&Gt(F.right)||Qs(F)&&(nf(F.argumentExpression)||Gl(F.argumentExpression))&&Gt(F.expression)||Lc(F)&&Gt(F.left)}function yt(F){return Gt(F)||qu(F)&&yt(F.expression)}function $e(F){if(F.arguments){for(const Te of F.arguments)if(yt(Te))return!0}return!!(F.expression.kind===211&&yt(F.expression.expression))}function It(F,Te){return JR(F)&&rn(F.expression)&&ls(Te)}function tn(F){switch(F.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(F.left);case 35:case 36:case 37:case 38:return rn(F.left)||rn(F.right)||It(F.right,F.left)||It(F.left,F.right)||_C(F.right)&&at(F.left)||_C(F.left)&&at(F.right);case 104:return rn(F.left);case 103:return at(F.right);case 28:return at(F.right)}return!1}function rn(F){switch(F.kind){case 217:return rn(F.expression);case 226:switch(F.operatorToken.kind){case 64:return rn(F.left);case 28:return rn(F.right)}}return yt(F)}function Pn(){return SI({flags:4,antecedents:void 0})}function Xn(){return SI({flags:8,antecedents:void 0})}function hn(F,Te,st){return SI({flags:1024,target:F,antecedents:Te,antecedent:st})}function Qt(F){F.flags|=F.flags&2048?4096:2048}function $t(F,Te){!(Te.flags&1)&&!Nr(F.antecedents,Te)&&((F.antecedents||(F.antecedents=[])).push(Te),Qt(Te))}function _i(F,Te,st){return Te.flags&1?Te:st?(st.kind===112&&F&64||st.kind===97&&F&32)&&!m4(st)&&!zV(st.parent)?ve:at(st)?(Qt(Te),SI({flags:F,antecedent:Te,node:st})):Te:F&32?Te:ve}function ao(F,Te,st,Jt){return Qt(F),SI({flags:128,antecedent:F,switchStatement:Te,clauseStart:st,clauseEnd:Jt})}function Oi(F,Te,st){Qt(Te);const Jt=SI({flags:F,antecedent:Te,node:st});return C&&$t(C,Jt),Jt}function No(F,Te){return Qt(F),SI({flags:512,antecedent:F,node:Te})}function Mn(F){const Te=F.antecedents;return Te?Te.length===1?Te[0]:F:ve}function Di(F){const Te=F.parent;switch(Te.kind){case 245:case 247:case 246:return Te.expression===F;case 248:case 227:return Te.condition===F}return!1}function Ar(F){for(;;)if(F.kind===217)F=F.expression;else if(F.kind===224&&F.operator===54)F=F.operand;else return sk(F)}function sn(F){return oU(hs(F))}function tt(F){for(;Gd(F.parent)||tb(F.parent)&&F.parent.operator===54;)F=F.parent;return!Di(F)&&!Ar(F.parent)&&!(qu(F.parent)&&F.parent.expression===F)}function Bt(F,Te,st,Jt){const rr=R,oi=M;R=st,M=Jt,F(Te),R=rr,M=oi}function Rn(F,Te,st){Bt(we,F,Te,st),(!F||!sn(F)&&!Ar(F)&&!(qu(F)&&uC(F)))&&($t(Te,_i(32,m,F)),$t(st,_i(64,m,F)))}function li(F,Te,st){const Jt=v,rr=A;v=Te,A=st,we(F),v=Jt,A=rr}function hi(F,Te){let st=U;for(;st&&F.parent.kind===256;)st.continueTarget=Te,st=st.next,F=F.parent;return Te}function Qi(F){const Te=hi(F,Xn()),st=Pn(),Jt=Pn();$t(Te,m),m=Te,Rn(F.expression,st,Jt),m=Mn(st),li(F.statement,Jt,Te),$t(Te,m),m=Mn(Jt)}function Io(F){const Te=Xn(),st=hi(F,Pn()),Jt=Pn();$t(Te,m),m=Te,li(F.statement,Jt,st),$t(st,m),m=Mn(st),Rn(F.expression,Te,Jt),m=Mn(Jt)}function ma(F){const Te=hi(F,Xn()),st=Pn(),Jt=Pn();we(F.initializer),$t(Te,m),m=Te,Rn(F.condition,st,Jt),m=Mn(st),li(F.statement,Jt,Te),we(F.incrementor),$t(Te,m),m=Mn(Jt)}function Wa(F){const Te=hi(F,Xn()),st=Pn();we(F.expression),$t(Te,m),m=Te,F.kind===250&&we(F.awaitModifier),$t(st,m),we(F.initializer),F.initializer.kind!==261&&_t(F.initializer),li(F.statement,st,Te),$t(Te,m),m=Mn(st)}function Sn(F){const Te=Pn(),st=Pn(),Jt=Pn();Rn(F.expression,Te,st),m=Mn(Te),we(F.thenStatement),$t(Jt,m),m=Mn(st),we(F.elseStatement),$t(Jt,m),m=Mn(Jt)}function kn(F){we(F.expression),F.kind===253&&(K=!0,I&&$t(I,m)),m=ve}function He(F){for(let Te=U;Te;Te=Te.next)if(Te.name===F)return Te}function mt(F,Te,st){const Jt=F.kind===252?Te:st;Jt&&($t(Jt,m),m=ve)}function ft(F){if(we(F.label),F.label){const Te=He(F.label.escapedText);Te&&(Te.referenced=!0,mt(F,Te.breakTarget,Te.continueTarget))}else mt(F,v,A)}function Ct(F){const Te=I,st=C,Jt=Pn(),rr=Pn();let oi=Pn();if(F.finallyBlock&&(I=rr),$t(oi,m),C=oi,we(F.tryBlock),$t(Jt,m),F.catchClause&&(m=Mn(oi),oi=Pn(),$t(oi,m),C=oi,we(F.catchClause),$t(Jt,m)),I=Te,C=st,F.finallyBlock){const $r=Pn();$r.antecedents=So(So(Jt.antecedents,oi.antecedents),rr.antecedents),m=$r,we(F.finallyBlock),m.flags&1?m=ve:(I&&rr.antecedents&&$t(I,hn($r,rr.antecedents,m)),C&&oi.antecedents&&$t(C,hn($r,oi.antecedents,m)),m=Jt.antecedents?hn($r,Jt.antecedents,m):ve)}else m=Mn(Jt)}function le(F){const Te=Pn();we(F.expression);const st=v,Jt=O;v=Te,O=m,we(F.caseBlock),$t(Te,m);const rr=Xe(F.caseBlock.clauses,oi=>oi.kind===297);F.possiblyExhaustive=!rr&&!Te.antecedents,rr||$t(Te,ao(O,F,0,0)),v=st,O=Jt,m=Mn(Te)}function Fe(F){const Te=F.clauses,st=F.parent.expression.kind===112||at(F.parent.expression);let Jt=ve;for(let rr=0;rrYl(st)||kl(st))}function Jr(F){F.flags&33554432&&!Ii(F)?F.flags|=128:F.flags&=-129}function xo(F){if(Jr(F),ku(F))if(Zr(F,32)&&Ms(F,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),dj(F))Dn(F);else{let Te;if(F.name.kind===11){const{text:Jt}=F.name;Te=OR(Jt),Te===void 0&&Ms(F.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Jt)}const st=Vr(F,512,110735);e.patternAmbientModules=xn(e.patternAmbientModules,Te&&!Po(Te)?{pattern:Te,symbol:st}:void 0)}else{const Te=Dn(F);if(Te!==0){const{symbol:st}=F;st.constEnumOnlyModule=!(st.flags&304)&&Te===2&&st.constEnumOnlyModule!==!1}}}function Dn(F){const Te=Hg(F),st=Te!==0;return Vr(F,st?512:1024,st?110735:0),Te}function Fs(F){const Te=pe(131072,ye(F));ie(Te,F,131072);const st=pe(2048,"__type");ie(st,F,2048),st.members=ca(),st.members.set(Te.escapedName,Te)}function Ql(F){return Vs(F,4096,"__object")}function Lo(F){return Vs(F,4096,"__jsxAttributes")}function cs(F,Te,st){return Vr(F,Te,st)}function Vs(F,Te,st){const Jt=pe(Te,st);return Te&106508&&(Jt.parent=o.symbol),ie(Jt,F,Te),Jt}function yl(F,Te,st){switch(l.kind){case 267:Ee(F,Te,st);break;case 312:if(zp(o)){Ee(F,Te,st);break}default:N.assertNode(l,ph),l.locals||(l.locals=ca(),ir(l)),Ue(l.locals,void 0,F,Te,st)}}function uu(){if(!p)return;const F=o,Te=u,st=l,Jt=i,rr=m;for(const oi of p){const $r=oi.parent.parent;o=yj($r)||e,l=_h($r)||e,m=SI({flags:2}),i=oi,we(oi.typeExpression);const io=Mo(oi);if((Jk(oi)||!oi.fullName)&&io&&lk(io.parent)){const Fa=ec(io.parent);if(Fa){vl(e.symbol,io.parent,Fa,!!Gn(io,Ol=>Wr(Ol)&&Ol.name.escapedText==="prototype"),!1);const za=o;switch(GL(io.parent)){case 1:case 2:zp(e)?o=e:o=void 0;break;case 4:o=io.parent.expression;break;case 3:o=io.parent.expression.name;break;case 5:o=p1(e,io.parent.expression)?e:Wr(io.parent.expression)?io.parent.expression.name:io.parent.expression;break;case 0:return N.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Ee(oi,524288,788968),o=za}}else Jk(oi)||!oi.fullName||oi.fullName.kind===80?(i=oi.parent,yl(oi,524288,788968)):we(oi.fullName)}o=F,u=Te,l=st,i=Jt,m=rr}function ho(F){if(!e.parseDiagnostics.length&&!(F.flags&33554432)&&!(F.flags&16777216)&&!Nie(F)){const Te=c0(F);if(Te===void 0)return;V&&Te>=119&&Te<=127?e.bindDiagnostics.push(oe(F,pa(F),Rs(F))):Te===135?ac(e)&&q4(F)?e.bindDiagnostics.push(oe(F,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Rs(F))):F.flags&65536&&e.bindDiagnostics.push(oe(F,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Rs(F))):Te===127&&F.flags&16384&&e.bindDiagnostics.push(oe(F,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Rs(F)))}}function pa(F){return su(F)?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 du(F){F.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(F,f.constructor_is_a_reserved_word,Rs(F))))}function As(F){V&&ep(F.left)&&zy(F.operatorToken.kind)&&sc(F,F.left)}function La(F){V&&F.variableDeclaration&&sc(F,F.variableDeclaration.name)}function _l(F){if(V&&F.expression.kind===80){const Te=SS(e,F.expression);e.bindDiagnostics.push(Qc(e,Te.start,Te.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function wf(F){return Ve(F)&&(F.escapedText==="eval"||F.escapedText==="arguments")}function sc(F,Te){if(Te&&Te.kind===80){const st=Te;if(wf(st)){const Jt=SS(e,Te);e.bindDiagnostics.push(Qc(e,Jt.start,Jt.length,Nl(F),Sr(st)))}}}function Nl(F){return su(F)?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 ul(F){V&&sc(F,F.name)}function ko(F){return su(F)?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 nn(F){if(r<2&&l.kind!==312&&l.kind!==267&&!eR(l)){const Te=SS(e,F);e.bindDiagnostics.push(Qc(e,Te.start,Te.length,ko(F)))}}function js(F){V&&sc(F,F.operand)}function nu(F){V&&(F.operator===46||F.operator===47)&&sc(F,F.operand)}function pu(F){V&&Ms(F,f.with_statements_are_not_allowed_in_strict_mode)}function Ap(F){V&&os(t)>=2&&(Mre(F.statement)||Ll(F.statement))&&Ms(F.label,f.A_label_is_not_allowed_here)}function Ms(F,Te,...st){const Jt=hh(e,F.pos);e.bindDiagnostics.push(Qc(e,Jt.start,Jt.length,Te,...st))}function Rc(F,Te,st){de(F,Te,Te,st)}function de(F,Te,st,Jt){ee(F,{pos:m0(Te,e),end:st.end},Jt)}function ee(F,Te,st){const Jt=Qc(e,Te.pos,Te.end-Te.pos,st);F?e.bindDiagnostics.push(Jt):e.bindSuggestionDiagnostics=xn(e.bindSuggestionDiagnostics,{...Jt,category:2})}function we(F){if(!F)return;qa(F,i),sr&&(F.tracingPath=e.path);const Te=V;if(yr(F),F.kind>165){const st=i;i=F;const Jt=Cq(F);Jt===0?je(F):Pe(F,Jt),i=st}else{const st=i;F.kind===1&&(i=F),Et(F),i=st}V=Te}function Et(F){if(Fp(F))if(lr(F))for(const Te of F.jsDoc)we(Te);else for(const Te of F.jsDoc)qa(Te,F),Jv(Te,!1)}function un(F){if(!V)for(const Te of F){if(!Im(Te))return;if(Er(Te)){V=!0;return}}}function Er(F){const Te=wE(e,F.expression);return Te==='"use strict"'||Te==="'use strict'"}function yr(F){switch(F.kind){case 80:if(F.flags&4096){let $r=F.parent;for(;$r&&!Zf($r);)$r=$r.parent;yl($r,524288,788968);break}case 110:return m&&(vt(F)||i.kind===304)&&(F.flowNode=m),ho(F);case 166:m&&$4(F)&&(F.flowNode=m);break;case 236:case 108:F.flowNode=m;break;case 81:return du(F);case 211:case 212:const Te=F;m&&Gt(Te)&&(Te.flowNode=m),Sie(Te)&&Jn(Te),lr(Te)&&e.commonJsModuleIndicator&&ng(Te)&&!LF(l,"module")&&Ue(e.locals,void 0,Te.expression,134217729,111550);break;case 226:switch(Bl(F)){case 1:op(F);break;case 2:Wc(F);break;case 3:na(F.left,F);break;case 6:vo(F);break;case 4:hd(F);break;case 5:const $r=F.left.expression;if(lr(F)&&Ve($r)){const io=LF(l,$r.escapedText);if(J4(io?.valueDeclaration)){hd(F);break}}yc(F);break;case 0:break;default:N.fail("Unknown binary expression special property assignment kind")}return As(F);case 299:return La(F);case 220:return _l(F);case 225:return js(F);case 224:return nu(F);case 254:return pu(F);case 256:return Ap(F);case 197:h=!0;return;case 182:break;case 168:return ct(F);case 169:return Xg(F);case 260:return Bu(F);case 208:return F.flowNode=m,Bu(F);case 172:case 171:return jr(F);case 303:case 304:return Ud(F,4,0);case 306:return Ud(F,8,900095);case 179:case 180:case 181:return Vr(F,131072,0);case 174:case 173:return Ud(F,8192|(F.questionToken?16777216:0),xm(F)?0:103359);case 262:return Ip(F);case 176:return Vr(F,16384,0);case 177:return Ud(F,32768,46015);case 178:return Ud(F,65536,78783);case 184:case 324:case 330:case 185:return Fs(F);case 187:case 329:case 200:return xi(F);case 339:return Tt(F);case 210:return Ql(F);case 218:case 219:return mg(F);case 213:switch(Bl(F)){case 7:return Zl(F);case 8:return qc(F);case 9:return Qo(F);case 0:break;default:return N.fail("Unknown call expression assignment declaration kind")}lr(F)&&U_(F);break;case 231:case 263:return V=!0,Nh(F);case 264:return yl(F,64,788872);case 265:return yl(F,524288,788968);case 266:return Kg(F);case 267:return xo(F);case 292:return Lo(F);case 291:return cs(F,4,0);case 271:case 274:case 276:case 281:return Vr(F,2097152,2097152);case 270:return Hc(F);case 273:return gc(F);case 278:return Us(F);case 277:return Tl(F);case 312:return un(F.statements),Mr();case 241:if(!eR(F.parent))return;case 268:return un(F.statements);case 348:if(F.parent.kind===330)return Xg(F);if(F.parent.kind!==329)break;case 355:const rr=F,oi=rr.isBracketed||rr.typeExpression&&rr.typeExpression.type.kind===323?16777220:4;return Vr(rr,oi,0);case 353:case 345:case 347:return(p||(p=[])).push(F);case 346:return we(F.typeExpression)}}function jr(F){const Te=Wd(F),st=Te?98304:4,Jt=Te?13247:0;return Ud(F,st|(F.questionToken?16777216:0),Jt)}function xi(F){return Vs(F,2048,"__type")}function Mr(){if(Jr(e),ac(e))$o();else if(Qf(e)){$o();const F=e.symbol;Ue(e.symbol.exports,e.symbol,e,4,-1),e.symbol=F}}function $o(){Vs(e,512,`"${Ad(e.fileName)}"`)}function Tl(F){if(!o.symbol||!o.symbol.exports)Vs(F,111551,ye(F));else{const Te=SR(F)?2097152:4,st=Ue(o.symbol.exports,o.symbol,F,Te,-1);F.isExportEquals&&jL(st,F)}}function Hc(F){bt(F.modifiers)&&e.bindDiagnostics.push(oe(F,f.Modifiers_cannot_appear_here));const Te=$i(F.parent)?ac(F.parent)?F.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;Te?e.bindDiagnostics.push(oe(F,Te)):(e.symbol.globalExports=e.symbol.globalExports||ca(),Ue(e.symbol.globalExports,e.symbol,F,2097152,2097152))}function Us(F){!o.symbol||!o.symbol.exports?Vs(F,8388608,ye(F)):F.exportClause?Sh(F.exportClause)&&(qa(F.exportClause,F),Ue(o.symbol.exports,o.symbol,F.exportClause,2097152,2097152)):Ue(o.symbol.exports,o.symbol,F,8388608,0)}function gc(F){F.name&&Vr(F,2097152,2097152)}function Ss(F){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=F,e.externalModuleIndicator||$o()),!0)}function qc(F){if(!Ss(F))return;const Te=Of(F.arguments[0],void 0,(st,Jt)=>(Jt&&ie(Jt,st,67110400),Jt));Te&&Ue(Te.exports,Te,F,1048580,0)}function op(F){if(!Ss(F))return;const Te=Of(F.left.expression,void 0,(st,Jt)=>(Jt&&ie(Jt,st,67110400),Jt));if(Te){const Jt=QL(F.right)&&(IS(F.left.expression)||ng(F.left.expression))?2097152:1048580;qa(F.left,F),Ue(Te.exports,Te,F.left,Jt,0)}}function Wc(F){if(!Ss(F))return;const Te=FL(F.right);if(cU(Te)||o===e&&p1(e,Te))return;if(Oa(Te)&&Zn(Te.properties,rp)){Xe(Te.properties,cm);return}const st=SR(F)?2097152:1049092,Jt=Ue(e.symbol.exports,e.symbol,F,st|67108864,0);jL(Jt,F)}function cm(F){Ue(e.symbol.exports,e.symbol,F,69206016,0)}function hd(F){if(N.assert(lr(F)),mr(F)&&Wr(F.left)&&Ji(F.left.name)||Wr(F)&&Ji(F.name))return;const st=Fd(F,!1,!1);switch(st.kind){case 262:case 218:let Jt=st.symbol;if(mr(st.parent)&&st.parent.operatorToken.kind===64){const $r=st.parent.left;GE($r)&&Hv($r.expression)&&(Jt=Nd($r.expression.expression,s))}Jt&&Jt.valueDeclaration&&(Jt.members=Jt.members||ca(),jv(F)?Ce(F,Jt,Jt.members):Ue(Jt.members,Jt,F,67108868,0),ie(Jt,Jt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const rr=st.parent,oi=aa(st)?rr.symbol.exports:rr.symbol.members;jv(F)?Ce(F,rr.symbol,oi):Ue(oi,rr.symbol,F,67108868,0,!0);break;case 312:if(jv(F))break;st.commonJsModuleIndicator?Ue(st.symbol.exports,st.symbol,F,1048580,0):Vr(F,1,111550);break;case 267:break;default:N.failBadSyntaxKind(st)}}function Ce(F,Te,st){Ue(st,Te,F,4,0,!0,!0),Wt(F,Te)}function Wt(F,Te){Te&&(Te.assignmentDeclarationMembers||(Te.assignmentDeclarationMembers=new Map)).set(as(F),F)}function Jn(F){F.expression.kind===110?hd(F):GE(F)&&F.parent.parent.kind===312&&(Hv(F.expression)?na(F,F.parent):dl(F))}function vo(F){qa(F.left,F),qa(F.right,F),Jc(F.left.expression,F.left,!1,!0)}function Qo(F){const Te=Nd(F.arguments[0].expression);Te&&Te.valueDeclaration&&ie(Te,Te.valueDeclaration,32),Vl(F,Te,!0)}function na(F,Te){const st=F.expression,Jt=st.expression;qa(Jt,st),qa(st,F),qa(F,Te),Jc(Jt,F,!0,!0)}function Zl(F){let Te=Nd(F.arguments[0]);const st=F.parent.parent.kind===312;Te=vl(Te,F.arguments[0],st,!1,!1),Vl(F,Te,!1)}function yc(F){var Te;const st=Nd(F.left.expression,l)||Nd(F.left.expression,o);if(!lr(F)&&!Tie(st))return;const Jt=LR(F.left);if(!(Ve(Jt)&&((Te=LF(o,Jt.escapedText))==null?void 0:Te.flags)&2097152))if(qa(F.left,F),qa(F.right,F),Ve(F.left.expression)&&o===e&&p1(e,F.left.expression))op(F);else if(jv(F)){Vs(F,67108868,"__computed");const rr=vl(st,F.left.expression,ec(F.left),!1,!1);Wt(F,rr)}else dl(oa(F.left,RS))}function dl(F){N.assert(!Ve(F)),qa(F.expression,F),Jc(F.expression,F,!1,!1)}function vl(F,Te,st,Jt,rr){return F?.flags&2097152||(st&&!Jt&&(F=Of(Te,F,(io,Fa,za)=>{if(Fa)return ie(Fa,io,67110400),Fa;{const Ol=za?za.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ca());return Ue(Ol,za,io,67110400,110735)}})),rr&&F&&F.valueDeclaration&&ie(F,F.valueDeclaration,32)),F}function Vl(F,Te,st){if(!Te||!ff(Te))return;const Jt=st?Te.members||(Te.members=ca()):Te.exports||(Te.exports=ca());let rr=0,oi=0;Bs(kA(F))?(rr=8192,oi=103359):sa(F)&&xS(F)&&(bt(F.arguments[2].properties,$r=>{const io=Mo($r);return!!io&&Ve(io)&&Sr(io)==="set"})&&(rr|=65540,oi|=78783),bt(F.arguments[2].properties,$r=>{const io=Mo($r);return!!io&&Ve(io)&&Sr(io)==="get"})&&(rr|=32772,oi|=46015)),rr===0&&(rr=4,oi=0),Ue(Jt,Te,F,rr|67108864,oi&-67108865)}function ec(F){return mr(F.parent)?jd(F.parent).parent.kind===312:F.parent.parent.kind===312}function Jc(F,Te,st,Jt){let rr=Nd(F,l)||Nd(F,o);const oi=ec(Te);rr=vl(rr,Te.expression,oi,st,Jt),Vl(Te,rr,st)}function ff(F){if(F.flags&1072)return!0;const Te=F.valueDeclaration;if(Te&&sa(Te))return!!kA(Te);let st=Te?wi(Te)?Te.initializer:mr(Te)?Te.right:Wr(Te)&&mr(Te.parent)?Te.parent.right:void 0:void 0;if(st=st&&FL(st),st){const Jt=Hv(wi(Te)?Te.name:mr(Te)?Te.left:Te);return!!h0(mr(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,Jt)}return!1}function jd(F){for(;mr(F.parent);)F=F.parent;return F.parent}function Nd(F,Te=o){if(Ve(F))return LF(Te,F.escapedText);{const st=Nd(F.expression);return st&&st.exports&&st.exports.get(Og(F))}}function Of(F,Te,st){if(p1(e,F))return e.symbol;if(Ve(F))return st(F,Nd(F),Te);{const Jt=Of(F.expression,Te,st),rr=BL(F);return Ji(rr)&&N.fail("unexpected PrivateIdentifier"),st(rr,Jt&&Jt.exports&&Jt.exports.get(Og(F)),Jt)}}function U_(F){!e.commonJsModuleIndicator&&Td(F,!1)&&Ss(F)}function Nh(F){if(F.kind===263)yl(F,32,899503);else{const rr=F.name?F.name.escapedText:"__class";Vs(F,32,rr),F.name&&he.add(F.name.escapedText)}const{symbol:Te}=F,st=pe(4194308,"prototype"),Jt=Te.exports.get(st.escapedName);Jt&&(F.name&&qa(F.name,F),e.bindDiagnostics.push(oe(Jt.declarations[0],f.Duplicate_identifier_0,Sl(st)))),Te.exports.set(st.escapedName,st),st.parent=Te}function Kg(F){return WE(F)?yl(F,128,899967):yl(F,256,899327)}function Bu(F){if(V&&sc(F,F.name),!ta(F.name)){const Te=F.kind===260?F:F.parent.parent;lr(F)&&BE(Te)&&!u0(F)&&!(l0(F)&32)?Vr(F,2097152,2097152):lj(F)?yl(F,2,111551):UE(F)?Vr(F,1,111551):Vr(F,1,111550)}}function Xg(F){if(!(F.kind===348&&o.kind!==330)&&(V&&!(F.flags&33554432)&&sc(F,F.name),ta(F.name)?Vs(F,1,"__"+F.parent.parameters.indexOf(F)):Vr(F,1,111551),fp(F,F.parent))){const Te=F.parent.parent;Ue(Te.symbol.members,Te.symbol,F,4|(F.questionToken?16777216:0),0)}}function Ip(F){!e.isDeclarationFile&&!(F.flags&33554432)&&PC(F)&&(Z|=4096),ul(F),V?(nn(F),yl(F,16,110991)):Vr(F,16,110991)}function mg(F){!e.isDeclarationFile&&!(F.flags&33554432)&&PC(F)&&(Z|=4096),m&&(F.flowNode=m),ul(F);const Te=F.name?F.name.escapedText:"__function";return Vs(F,16,Te)}function Ud(F,Te,st){return!e.isDeclarationFile&&!(F.flags&33554432)&&PC(F)&&(Z|=4096),m&&V4(F)&&(F.flowNode=m),jv(F)?Vs(F,Te,"__computed"):Vr(F,Te,st)}function te(F){const Te=Gn(F,st=>st.parent&&cI(st.parent)&&st.parent.extendsType===st);return Te&&Te.parent}function ct(F){if(sm(F.parent)){const Te=a3(F.parent);Te?(N.assertNode(Te,ph),Te.locals??(Te.locals=ca()),Ue(Te.locals,void 0,F,262144,526824)):Vr(F,262144,526824)}else if(F.parent.kind===195){const Te=te(F.parent);Te?(N.assertNode(Te,ph),Te.locals??(Te.locals=ca()),Ue(Te.locals,void 0,F,262144,526824)):Vs(F,262144,ye(F))}else Vr(F,262144,526824)}function zt(F){const Te=Hg(F);return Te===1||Te===2&&ZE(t)}function jt(F){if(!(m.flags&1))return!1;if(m===ve&&(hL(F)&&F.kind!==242||F.kind===263||F.kind===267&&zt(F))&&(m=$,!t.allowUnreachableCode)){const st=voe(t)&&!(F.flags&33554432)&&(!Ll(F)||!!(Ly(F.declarationList)&7)||F.declarationList.declarations.some(Jt=>!!Jt.initializer));XVe(F,(Jt,rr)=>de(st,Jt,rr,f.Unreachable_code_detected))}return!0}}function XVe(e,t){if(qi(e)&&GIe(e)&&Xo(e.parent)){const{statements:r}=e.parent,i=xU(r,e);XB(i,GIe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function GIe(e){return!Ac(e)&&!YVe(e)&&!I0(e)&&!(Ll(e)&&!(Ly(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function YVe(e){switch(e.kind){case 264:case 265:return!0;case 267:return Hg(e)!==1;case 266:return Zr(e,4096);default:return!1}}function p1(e,t){let r=0;const i=M2();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),IS(t)||ng(t))return!0;if(Ve(t)){const o=LF(e,t.escapedText);if(o&&o.valueDeclaration&&wi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),Lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function Cq(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(V4(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 ea(e.parent)||Rl(e.parent)?0:34}return 0}function LF(e,t){var r,i,o,s;const l=(i=(r=ii(e,ph))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if($i(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(x_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var Pq,Mq,VIe,$Ve=T({"src/compiler/binder.ts"(){ra(),dS(),Pq=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Pq||{}),Mq=(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))(Mq||{}),VIe=KVe()}});function Vse(e,t,r,i,o,s,l,u,p,h){return m;function m(v=()=>!0){const A=[],I=[];return{walkType:he=>{try{return R(he),{visitedTypes:vA(A),visitedSymbols:vA(I)}}finally{Vo(A),Vo(I)}},walkSymbol:he=>{try{return ne(he),{visitedTypes:vA(A),visitedSymbols:vA(I)}}finally{Vo(A),Vo(I)}}};function R(he){if(!(!he||A[he.id]||(A[he.id]=he,ne(he.symbol)))){if(he.flags&524288){const $=he,Y=$.objectFlags;Y&4&&M(he),Y&32&&Z(he),Y&3&&se(he),Y&24&&G($)}he.flags&262144&&C(he),he.flags&3145728&&O(he),he.flags&4194304&&U(he),he.flags&8388608&&K(he)}}function M(he){R(he.target),Xe(h(he),R)}function C(he){R(u(he))}function O(he){Xe(he.types,R)}function U(he){R(he.type)}function K(he){R(he.objectType),R(he.indexType),R(he.constraint)}function Z(he){R(he.typeParameter),R(he.constraintType),R(he.templateType),R(he.modifiersType)}function V(he){const ve=t(he);ve&&R(ve.type),Xe(he.typeParameters,R);for(const $ of he.parameters)ne($);R(e(he)),R(r(he))}function se(he){G(he),Xe(he.typeParameters,R),Xe(i(he),R),R(he.thisType)}function G(he){const ve=o(he);for(const $ of ve.indexInfos)R($.keyType),R($.type);for(const $ of ve.callSignatures)V($);for(const $ of ve.constructSignatures)V($);for(const $ of ve.properties)ne($)}function ne(he){if(!he)return!1;const ve=Ta(he);if(I[ve])return!1;if(I[ve]=he,!v(he))return!0;const $=s(he);return R($),he.exports&&he.exports.forEach(ne),Xe(he.declarations,Y=>{if(Y.type&&Y.type.kind===186){const oe=Y.type,fe=l(p(oe.exprName));ne(fe)}}),!1}}}var QVe=T({"src/compiler/symbolWalker.ts"(){ra()}});function Iw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=l();return{relativePreference:o!==void 0?Yc(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const p=u!==i.impliedNodeFormat?l(u):s;if((u??i.impliedNodeFormat)===99)return pD(r,i.fileName)?[3,2]:[2];if(fd(r)===1)return p===2?[2,1]:[1,2];const h=pD(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:N.assertNever(p)}}};function l(u){if(o!==void 0){if(XE(o))return 2;if(Al(o,"/index"))return 1}return Doe(t,u??i.impliedNodeFormat,r,i)}}function ZVe(e,t,r,i,o,s,l={}){const u=jIe(e,t,r,i,o,Iw({},e,t,s),{},l);if(u!==s)return u}function kF(e,t,r,i,o,s={}){return jIe(e,t,r,i,o,Iw({},e,t),{},s)}function eje(e,t,r,i,o,s={}){const l=Lq(t.fileName,i),u=YIe(l,r,i,o,s);return qt(u,p=>Use(p,l,t,i,e,o,!0,s.overrideImportMode))}function jIe(e,t,r,i,o,s,l,u={}){const p=Lq(r,o),h=YIe(p,i,o,l,u);return qt(h,m=>Use(m,p,t,o,e,l,void 0,u.overrideImportMode))||JIe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function tje(e,t,r,i,o={}){return UIe(e,t,r,i,o)[0]}function UIe(e,t,r,i,o={}){var s;const l=C4(e);if(!l)return et;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,u]}function HIe(e,t,r,i,o,s,l={}){return qIe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function qIe(e,t,r,i,o,s,l={},u){let p=!1;const h=ije(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,A,I]=UIe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,A||(A=$Ie(Lq(i.fileName,o),v.originalFileName,o));const R=nje(A,r,i,o,s,l,u);return I?.set(i.path,v.path,s,l,A,R),{moduleSpecifiers:R,computedWithoutCache:p}}function nje(e,t,r,i,o,s={},l){const u=Lq(r.fileName,i),p=Iw(o,t,r),h=Xe(e,M=>Xe(i.getFileIncludeReasons().get(ol(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),C=>{if(C.kind!==3||C.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==ece(r,C.index,t))return;const O=Gw(r,C.index).text;return p.relativePreference!==1||!Wp(O)?O:void 0}));if(h)return[h];const m=bt(e,M=>M.isInNodeModules);let v,A,I,R;for(const M of e){const C=M.isInNodeModules?Use(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=xn(v,C),C&&M.isRedirect)return v;if(!C){const O=JIe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!O)continue;M.isRedirect?I=xn(I,O):TV(O)?M0(O)?R=xn(R,O):A=xn(A,O):(l||!m||M.isInNodeModules)&&(R=xn(R,O))}}return A?.length?A:I?.length?I:v?.length?v:N.checkDefined(R)}function Lq(e,t){e=go(e,t.getCurrentDirectory());const r=Mu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ai(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function JIe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){const{baseUrl:p,paths:h,rootDirs:m}=r;if(u&&!h)return;const{sourceDirectory:v,canonicalSourceDirectory:A,getCanonicalFileName:I}=t,R=s(o),M=m&&sje(m,e,v,I,R,r)||xw(NE(Em(v,e,I)),R,r);if(!p&&!h&&!iW(r)||l===0)return u?void 0:M;const C=go(_3(r,i)||p,i.getCurrentDirectory()),O=txe(e,C,I);if(!O)return u?void 0:M;const U=u?void 0:aje(e,v,r,i,o),K=u||U===void 0?h&&QIe(O,h,R,i,r):void 0;if(u)return K;const Z=U??(K===void 0&&p!==void 0?xw(O,R,r):K);if(!Z)return M;if(l===1&&!Wp(Z))return Z;if(l===3&&!Wp(Z)){const V=r.configFilePath?ol(ai(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),se=ol(e,V,I),G=uo(A,V),ne=uo(se,V);if(G&&!ne||!G&&ne)return Z;const he=jse(i,ai(se)),ve=jse(i,v),$=!NR(i);return rje(he,ve,$)?M:Z}return nxe(Z)||wF(M)e.fileExists(Qr(r,"package.json"))?r:void 0)}function XIe(e,t,r,i,o){var s;const l=Fy(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ol(t,u,l),m=r.redirectTargetsMap.get(h)||et,A=[...p?[p]:et,t,...m].map(O=>go(O,u));let I=!Zn(A,nP);if(!i){const O=Xe(A,U=>!(I&&nP(U))&&o(U,p===U));if(O)return O}const R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=go(t,u);return R&&Sm(ai(M),O=>{const U=R.get(Bc(ol(O,u,l)));if(U)return IV(e,O,l)?!1:Xe(A,K=>{if(!IV(K,O,l))return;const Z=Em(O,K,l);for(const V of U){const se=Pv(V,Z),G=o(se,K===p);if(I=!0,G)return G}})})||(i?Xe(A,O=>I&&nP(O)?void 0:o(O,O===p)):void 0)}function YIe(e,t,r,i,o={}){var s;const l=ol(e.importingSourceFileName,r.getCurrentDirectory(),Fy(r)),u=ol(t,r.getCurrentDirectory(),Fy(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){const m=p.get(l,u,i,o);if(m?.modulePaths)return m.modulePaths}const h=$Ie(e,t,r);return p&&p.setModulePaths(l,u,i,o,h),h}function $Ie(e,t,r){const i=new Map;XIe(e.importingSourceFileName,t,r,!0,(s,l)=>{const u=M0(s);i.set(s,{path:e.getCanonicalFileName(s),isRedirect:l,isInNodeModules:u})});const o=[];for(let s=e.canonicalSourceDirectory;i.size!==0;){const l=Bc(s);let u;i.forEach(({path:h,isRedirect:m,isInNodeModules:v},A)=>{uo(h,l)&&((u||(u=[])).push({path:A,isRedirect:m,isInNodeModules:v}),i.delete(A))}),u&&(u.length>1&&u.sort(KIe),o.push(...u));const p=ai(s);if(p===s)break;s=p}if(i.size){const s=zo(i.entries(),([l,{isRedirect:u,isInNodeModules:p}])=>({path:l,isRedirect:u,isInNodeModules:p}));s.length>1&&s.sort(KIe),o.push(...s)}return o}function ije(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>uj(l)&&(!OE(l)||!Yc(em(l.name))));if(i)return i.name.text;const s=Hi(e.declarations,l=>{var u,p,h,m;if(!Xl(l))return;const v=M(l);if(!((u=v?.parent)!=null&&u.parent&&O_(v.parent)&&ku(v.parent.parent)&&$i(v.parent.parent.parent)))return;const A=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!A)return;const I=t.getSymbolAtLocation(A);if(!I)return;if((I?.flags&2097152?t.getAliasedSymbol(I):I)===l.symbol)return v.parent.parent;function M(C){for(;C.flags&8;)C=C.parent;return C}})[0];if(s)return s.name.text}function QIe(e,t,r,i,o){for(const l in t)for(const u of t[l]){const p=ga(u),h=p.indexOf("*"),m=r.map(v=>({ending:v,value:xw(e,[v],o)}));if(Bg(p)&&m.push({ending:void 0,value:e}),h!==-1){const v=p.substring(0,h),A=p.substring(h+1);for(const{ending:I,value:R}of m)if(R.length>=v.length+A.length&&uo(R,v)&&Al(R,A)&&s({ending:I,value:R})){const M=R.substring(v.length,R.length-A.length);if(!Wp(M))return XA(l,M)}}else if(bt(m,v=>v.ending!==0&&p===v.value)||bt(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:u}){return l!==0||u===xw(e,[l],o,i)}}function OF(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){const h=!NR(t),m=()=>t.getCommonSourceDirectory(),v=p&&cJ(r,e,h,m),A=p&&lJ(r,e,h,m),I=go(Qr(i,s),void 0),R=JA(r)?Ad(r)+qse(r,e):void 0;switch(u){case 0:if(R&&Cg(R,I,h)===0||Cg(r,I,h)===0||v&&Cg(v,I,h)===0||A&&Cg(A,I,h)===0)return{moduleFileToTry:o};break;case 1:if(R&&bm(I,R,h)){const U=Em(I,R,!1);return{moduleFileToTry:go(Qr(Qr(o,s),U),void 0)}}if(bm(I,r,h)){const U=Em(I,r,!1);return{moduleFileToTry:go(Qr(Qr(o,s),U),void 0)}}if(v&&bm(I,v,h)){const U=Em(I,v,!1);return{moduleFileToTry:Qr(o,U)}}if(A&&bm(I,A,h)){const U=Em(I,A,!1);return{moduleFileToTry:Qr(o,U)}}break;case 2:const M=I.indexOf("*"),C=I.slice(0,M),O=I.slice(M+1);if(R&&uo(R,C,h)&&Al(R,O,h)){const U=R.slice(C.length,R.length-O.length);return{moduleFileToTry:XA(o,U)}}if(uo(r,C,h)&&Al(r,O,h)){const U=r.slice(C.length,r.length-O.length);return{moduleFileToTry:XA(o,U)}}if(v&&uo(v,C,h)&&Al(v,O,h)){const U=v.slice(C.length,v.length-O.length);return{moduleFileToTry:XA(o,U)}}if(A&&uo(A,C,h)&&Al(A,O,h)){const U=A.slice(C.length,A.length-O.length);return{moduleFileToTry:XA(o,U)}}break}}else{if(Array.isArray(s))return Xe(s,h=>OF(e,t,r,i,o,h,l,u,p));if(typeof s=="object"&&s!==null){for(const h of Kh(s))if(h==="default"||l.indexOf(h)>=0||Tw(l,h)){const m=s[h],v=OF(e,t,r,i,o,m,l,u,p);if(v)return v}}}}function oje(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&PF(s)?Xe(Kh(s),u=>{const p=go(Qr(o,u),void 0),h=Al(u,"/")?1:u.includes("*")?2:0;return OF(e,t,r,i,p,s[u],l,h,!1)}):OF(e,t,r,i,o,s,l,0,!1)}function aje(e,t,r,i,o){var s,l,u;if(!i.readFile||!iW(r))return;const p=jse(i,t);if(!p)return;const h=Qr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(Dse(m)||!i.fileExists(h))return;const v=m?.contents.packageJsonContent||A3(i.readFile(h)),A=v?.imports;if(!A)return;const I=ib(r,o);return(u=Xe(Kh(A),R=>{if(!uo(R,"#")||R==="#"||uo(R,"#/"))return;const M=Al(R,"/")?1:R.includes("*")?2:0;return OF(r,i,e,p,R,A[R],I,M,!0)}))==null?void 0:u.moduleFileToTry}function sje(e,t,r,i,o,s){const l=ZIe(t,e,i);if(l===void 0)return;const u=ZIe(r,e,i),p=Pi(u,m=>Ot(l,v=>NE(Em(m,v,i)))),h=oG(p,_k);if(h)return xw(h,o,s)}function Use({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,h){if(!s.fileExists||!s.readFile)return;const m=X3(e);if(!m)return;const A=Iw(u,l,o).getAllowedEndingsInPreferredOrder();let I=e,R=!1;if(!p){let Z=m.packageRootIndex,V;for(;;){const{moduleFileToTry:se,packageRootPath:G,blockedByExports:ne,verbatimFromExports:he}=K(Z);if(fd(l)!==1){if(ne)return;if(he)return se}if(G){I=G,R=!0;break}if(V||(V=se),Z=e.indexOf(al,Z+1),Z===-1){I=xw(V,A,l,s);break}}}if(t&&!R)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),C=r(I.substring(0,m.topLevelNodeModulesIndex));if(!(uo(i,C)||M&&uo(r(M),C)))return;const O=I.substring(m.topLevelPackageNameIndex+1),U=WP(O);return fd(l)===1&&U===O?void 0:U;function K(Z){var V,se;const G=e.substring(0,Z),ne=Qr(G,"package.json");let he=e,ve=!1;const $=(se=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:se.getPackageJsonInfo(ne);if(RF($)||$===void 0&&s.fileExists(ne)){const Y=$?.contents.packageJsonContent||A3(s.readFile(ne)),oe=h||o.impliedNodeFormat;if(rW(l)){const pe=G.substring(m.topLevelPackageNameIndex+1),ie=WP(pe),ye=ib(l,oe),Me=Y?.exports?oje(l,s,e,G,ie,Y.exports,ye):void 0;if(Me)return{...Me,verbatimFromExports:!0};if(Y?.exports)return{moduleFileToTry:e,blockedByExports:!0}}const fe=Y?.typesVersions?IF(Y.typesVersions):void 0;if(fe){const pe=e.slice(G.length+1),ie=QIe(pe,fe.paths,A,s,l);ie===void 0?ve=!0:he=Qr(G,ie)}const Ne=Y?.typings||Y?.types||Y?.main||"index.js";if(Po(Ne)&&!(ve&&IU(j3(fe.paths),Ne))){const pe=ol(Ne,G,r),ie=r(he);if(Ad(pe)===Ad(ie))return{packageRootPath:G,moduleFileToTry:he};if(Y?.type!=="module"&&!Tc(ie,Rk)&&uo(ie,pe)&&ai(ie)===i0(pe)&&Ad(rc(ie))==="index")return{packageRootPath:G,moduleFileToTry:he}}}else{const Y=r(he.substring(m.packageRootIndex+1));if(Y==="index.d.ts"||Y==="index.js"||Y==="index.ts"||Y==="index.tsx")return{moduleFileToTry:he,packageRootPath:G}}return{moduleFileToTry:he}}}function lje(e,t){if(!e.fileExists)return;const r=da(XC({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const o=t+i;if(e.fileExists(o))return o}}function ZIe(e,t,r){return Hi(t,i=>{const o=txe(e,i,r);return o!==void 0&&nxe(o)?void 0:o})}function xw(e,t,r,i){if(Tc(e,[".json",".mjs",".cjs"]))return e;const o=Ad(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Tc(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))(Jse||{})}}),f1={};X(f1,{RelativePreference:()=>Jse,countPathComponents:()=>wF,forEachFileNameOfModule:()=>XIe,getModuleSpecifier:()=>kF,getModuleSpecifierPreferences:()=>Iw,getModuleSpecifiers:()=>HIe,getModuleSpecifiersWithCacheInfo:()=>qIe,getNodeModulesPackageName:()=>eje,tryGetJSExtensionForFile:()=>qse,tryGetModuleSpecifiersFromCache:()=>tje,tryGetRealFileNameForNonJsDeclarationFileName:()=>exe,updateModuleSpecifier:()=>ZVe});var Xse=T({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Kse()}});function cje(){this.flags=0}function as(e){return e.id||(e.id=Qse,Qse++),e.id}function Ta(e){return e.id||(e.id=$se,$se++),e.id}function kq(e,t){const r=Hg(e);return r===1||t&&r===2}function Yse(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=lu.getSymbolConstructor(),p=lu.getTypeConstructor(),h=lu.getSignatureConstructor(),m=0,v=0,A=0,I=0,R=0,M=0,C,O,U=!1,K=ca(),Z=[1],V=e.getCompilerOptions(),se=os(V),G=wu(V),ne=!!V.experimentalDecorators,he=uP(V),ve=Eoe(V),$=OS(V),Y=pd(V,"strictNullChecks"),oe=pd(V,"strictFunctionTypes"),fe=pd(V,"strictBindCallApply"),Ne=pd(V,"strictPropertyInitialization"),pe=pd(V,"noImplicitAny"),ie=pd(V,"noImplicitThis"),ye=pd(V,"useUnknownInCatchVariables"),Me=!!V.keyofStringsOnly,Ue=Me?1:0,Ee=V.suppressExcessPropertyErrors?0:8192,De=V.exactOptionalPropertyTypes,Pe=G_t(),We=bvt(),At=X_(),Se=ca(),je=Xa(4,"undefined");je.declarations=[];var at=Xa(1536,"globalThis",8);at.exports=Se,at.declarations=[],Se.set(at.escapedName,at);var Gt=Xa(4,"arguments"),yt=Xa(4,"require"),$e=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",It=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,tn,rn,Pn=0,Xn,hn=0;const Qt={getNodeCount:()=>id(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>id(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>id(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>A,getRelationCacheSizes:()=>({assignable:qd.size,identity:ap.size,subtype:Ch.size,strictSubtype:Wf.size}),isUndefinedSymbol:n=>n===je,isArgumentsSymbol:n=>n===Gt,isUnknownSymbol:n=>n===ft,getMergedSymbol:rs,getDiagnostics:AFe,getGlobalDiagnostics:Oyt,getRecursionIdentity:aee,getUnmatchedProperties:xye,getTypeOfSymbolAtLocation:(n,a)=>{const c=Do(a);return c?Npt(n,c):_t},getTypeOfSymbol:dr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=Do(n,Ao);return c===void 0?N.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(N.assert(fp(c,c.parent)),PM(c,hl(a)))},getDeclaredTypeOfSymbol:el,getPropertiesOfType:gs,getPropertyOfType:(n,a)=>va(n,hl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const d=Do(c);if(!d)return;const _=hl(a),y=Wee(_,d);return y?dve(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>Ke(n,hl(a)),getIndexInfoOfType:(n,a)=>Ig(n,a===0?ke:Tt),getIndexInfosOfType:yd,getIndexInfosOfIndexSymbol:bge,getSignaturesOfType:Yo,getIndexTypeOfType:(n,a)=>uE(n,a===0?ke:Tt),getIndexType:n=>Q_(n),getBaseTypes:Pp,getBaseTypeOfLiteralType:gy,getWidenedType:Xp,getTypeFromTypeNode:n=>{const a=Do(n,ji);return a?bi(a):_t},getParameterType:v_,getParameterIdentifierInfoAtPosition:o_t,getPromisedTypeOfPromise:$8,getAwaitedType:n=>cA(n),getReturnTypeOfSignature:ps,isNullableType:J9,getNullableType:P9,getNonNullableType:yy,getNonOptionalType:uee,getTypeArguments:Js,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=Do(n);return c?Wyt(c,a):[]},getSymbolAtLocation:n=>{const a=Do(n);return a?Hm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Do(n);return a?Hyt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Do(n);return a?qyt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Do(n,Ku);return a?Jyt(a):void 0},getExportSymbolOfSymbol(n){return rs(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Do(n);return a?Tx(a):_t},getTypeOfAssignmentPattern:n=>{const a=Do(n,hC);return a&&fte(a)||_t},getPropertySymbolOfDestructuringAssignment:n=>{const a=Do(n,Ve);return a?Kyt(a):void 0},signatureToString:(n,a,c,d)=>wh(n,Do(a),c,d),typeToString:(n,a,c)=>Un(n,Do(a),c),symbolToString:(n,a,c,d)=>vi(n,Do(a),c,d),typePredicateToString:(n,a,c)=>Oh(n,Do(a),c),writeSignature:(n,a,c,d,_)=>wh(n,Do(a),c,d,_),writeType:(n,a,c,d)=>Un(n,Do(a),c,d),writeSymbol:(n,a,c,d,_)=>vi(n,Do(a),c,d,_),writeTypePredicate:(n,a,c,d)=>Oh(n,Do(a),c,d),getAugmentedPropertiesOfType:pbe,getRootSymbols:MFe,getSymbolOfExpando:qee,getContextualType:(n,a)=>{const c=Do(n,vt);if(c)return a&4?ao(c,()=>Yd(c,a)):Yd(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Do(n,kg);return a?$ye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=Do(n,kE);return c&&Yye(c,a)},getContextualTypeForJsxAttribute:n=>{const a=Do(n,E4);return a&&q4e(a,void 0)},isContextSensitive:Uf,getTypeOfPropertyOfContextualType:vE,getFullyQualifiedName:qp,getResolvedSignature:(n,a,c)=>Oi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:$t,getResolvedSignatureForSignatureHelp:(n,a,c)=>_i(n,()=>Oi(n,a,c,16)),getExpandedParameters:JOe,hasEffectiveRestParameter:Uh,containsArgumentsReference:gge,getConstantValue:n=>{const a=Do(n,WFe);return a?fbe(a):void 0},isValidPropertyAccess:(n,a)=>{const c=Do(n,Tre);return!!c&&mmt(c,hl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const d=Do(n,Wr);return!!d&&S3e(d,a,c)},getSignatureFromDeclaration:n=>{const a=Do(n,ea);return a?fm(a):void 0},isImplementationOfOverload:n=>{const a=Do(n,ea);return a?wFe(a):void 0},getImmediateAliasedSymbol:nve,getAliasedSymbol:Fc,getEmitResolver:ov,getExportsOfModule:LT,getExportsAndPropertiesOfModule:uN,forEachExportAndPropertyOfModule:dN,getSymbolWalker:Vse($lt,jf,ps,Pp,__,dr,jm,Md,Vp,Js),getAmbientModules:cbt,getJsxIntrinsicTagNamesAt:Jft,isOptionalParameter:n=>{const a=Do(n,Ao);return a?S8(a):!1},tryGetMemberInModuleExports:(n,a)=>kT(hl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>pN(hl(n),a),tryFindAmbientModule:n=>MZ(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>MZ(n,!1),getApparentType:Ld,getUnionType:ti,isTypeAssignableTo:Ea,createAnonymousType:Ls,createSignature:Ag,createSymbol:Xa,createIndexInfo:Gh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:Xd,getNumberType:()=>Tt,getNumberLiteralType:g_,getBigIntType:()=>kt,createPromiseType:iB,createArrayType:Vu,getElementTypeOfArrayType:C9,getBooleanType:()=>Ni,getFalseType:n=>n?en:bn,getTrueType:n=>n?Bn:Hn,getVoidType:()=>ir,getUndefinedType:()=>Oe,getNullType:()=>me,getESSymbolType:()=>Ai,getNeverType:()=>Vr,getOptionalType:()=>J,getPromiseType:()=>m9(!1),getPromiseLikeType:()=>k8e(!1),getAsyncIterableType:()=>{const n=VZ(!1);if(n!==ko)return n},isSymbolAccessible:ki,isArrayType:qf,isTupleType:Ba,isArrayLikeType:gv,isEmptyAnonymousObjectType:jh,isTypeInvalidDueToUnionDiscriminant:Mlt,getExactOptionalProperties:odt,getAllPossiblePropertiesOfTypes:Llt,getSuggestedSymbolForNonexistentProperty:mve,getSuggestionForNonexistentProperty:_ve,getSuggestedSymbolForNonexistentJSXAttribute:b3e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>hve(n,hl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>umt(n,hl(a),c),getSuggestedSymbolForNonexistentModule:zee,getSuggestionForNonexistentExport:dmt,getSuggestedSymbolForNonexistentClassMember:v3e,getBaseConstraintOfType:Gu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?HT(n):void 0,resolveName(n,a,c,d){return bl(a,hl(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Vi(q0(n)),getJsxFragmentFactory:n=>{const a=_be(n);return a&&Vi(Vp(a).escapedText)},getAccessibleSymbolChain:Ib,getTypePredicateOfSignature:jf,resolveExternalModuleName:n=>{const a=Do(n,vt);return a&&gd(a,a,!0)},resolveExternalModuleSymbol:Dp,tryGetThisTypeAt:(n,a,c)=>{const d=Do(n);return d&&qye(d,a,c)},getTypeArgumentConstraint:n=>{const a=Do(n,ji);return a&&vht(a)},getSuggestionDiagnostics:(n,a)=>{const c=Do(n,$i)||N.fail("Could not determine parsed source file.");if(QC(c,V,e))return et;let d;try{return i=a,ube(c),N.assert(!!(ei(c).flags&1)),d=qr(d,hT.getDiagnostics(c.fileName)),BWe(TFe(c),(_,y,x)=>{!oR(_)&&!SFe(y,!!(_.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Qt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Lr,isDeclarationVisible:d_,isPropertyAccessible:yve,getTypeOnlyAliasDeclaration:Ff,getMemberOverrideModifierStatus:$gt,isTypeParameterPossiblyReferenced:E9,typeHasCallOrConstructSignatures:mte};function $t(n,a){const c=new Set,d=[];ao(a,()=>Oi(n,d,void 0,0));for(const _ of d)c.add(_);d.length=0,_i(a,()=>Oi(n,d,void 0,0));for(const _ of d)c.add(_);return zo(c)}function _i(n,a){if(n=Gn(n,XV),n){const c=[],d=[];for(;n;){const y=ei(n);if(c.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,$E(n)){const x=Xi(Ir(n)),k=x.type;d.push([x,k]),x.type=void 0}n=Gn(n.parent,XV)}const _=a();for(const[y,x]of c)y.resolvedSignature=x;for(const[y,x]of d)y.type=x;return _}return a()}function ao(n,a){const c=Gn(n,kE);if(c){let _=n;do ei(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}U=!0;const d=_i(n,a);if(U=!1,c){let _=n;do ei(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return d}function Oi(n,a,c,d){const _=Do(n,kE);tn=c;const y=_?ON(_,a,d):void 0;return tn=void 0,y}var No=new Map,Mn=new Map,Di=new Map,Ar=new Map,sn=new Map,tt=new Map,Bt=new Map,Rn=new Map,li=new Map,hi=new Map,Qi=new Map,Io=new Map,ma=new Map,Wa=new Map,Sn=new Map,kn=[],He=new Map,mt=new Set,ft=Xa(4,"unknown"),Ct=Xa(0,"__resolving__"),le=new Map,Fe=new Map,pt=new Set,j=lc(1,"any"),ot=lc(1,"any",262144,"auto"),Rt=lc(1,"any",void 0,"wildcard"),Ye=lc(1,"any",void 0,"blocked string"),_t=lc(1,"error"),Vt=lc(1,"unresolved"),yn=lc(1,"any",65536,"non-inferrable"),pn=lc(1,"intrinsic"),_n=lc(2,"unknown"),q=lc(2,"unknown",void 0,"non-null"),Oe=lc(32768,"undefined"),Lt=Y?Oe:lc(32768,"undefined",65536,"widening"),L=lc(32768,"undefined",void 0,"missing"),_e=De?L:Oe,J=lc(32768,"undefined",void 0,"optional"),me=lc(65536,"null"),Ge=Y?me:lc(65536,"null",65536,"widening"),ke=lc(4,"string"),Tt=lc(8,"number"),kt=lc(64,"bigint"),en=lc(512,"false",void 0,"fresh"),bn=lc(512,"false"),Bn=lc(512,"true",void 0,"fresh"),Hn=lc(512,"true");Bn.regularType=Hn,Bn.freshType=Bn,Hn.regularType=Hn,Hn.freshType=Bn,en.regularType=bn,en.freshType=en,bn.regularType=bn,bn.freshType=en;var Ni=ti([bn,Hn]),Ai=lc(4096,"symbol"),ir=lc(16384,"void"),Vr=lc(131072,"never"),yo=lc(131072,"never",262144,"silent"),Ci=lc(131072,"never",void 0,"implicit"),Ii=lc(131072,"never",void 0,"unreachable"),Jr=lc(67108864,"object"),xo=ti([ke,Tt]),Dn=ti([ke,Tt,Ai]),Fs=Me?ke:Dn,Ql=ti([Tt,kt]),Lo=ti([ke,Tt,Ni,kt,me,Oe]),cs=JT(["",""],[Tt]),Vs=b9(n=>n.flags&262144?Mut(n):n,()=>"(restrictive mapper)"),yl=b9(n=>n.flags&262144?Rt:n,()=>"(permissive mapper)"),uu=lc(131072,"never",void 0,"unique literal"),ho=b9(n=>n.flags&262144?uu:n,()=>"(unique literal mapper)"),pa,du=b9(n=>(pa&&(n===Ap||n===Ms||n===Rc)&&pa(!0),n),()=>"(unmeasurable reporter)"),As=b9(n=>(pa&&(n===Ap||n===Ms||n===Rc)&&pa(!1),n),()=>"(unreliable reporter)"),La=Ls(void 0,K,et,et,et),_l=Ls(void 0,K,et,et,et);_l.objectFlags|=2048;var wf=Xa(2048,"__type");wf.members=ca();var sc=Ls(wf,K,et,et,et),Nl=Ls(void 0,K,et,et,et),ul=Y?ti([Oe,me,Nl]):_n,ko=Ls(void 0,K,et,et,et);ko.instantiations=new Map;var nn=Ls(void 0,K,et,et,et);nn.objectFlags|=262144;var js=Ls(void 0,K,et,et,et),nu=Ls(void 0,K,et,et,et),pu=Ls(void 0,K,et,et,et),Ap=vf(),Ms=vf();Ms.constraint=Ap;var Rc=vf(),de=vf(),ee=vf();ee.constraint=de;var we=p9(1,"<>",0,j),Et=Ag(void 0,void 0,void 0,et,j,void 0,0,0),un=Ag(void 0,void 0,void 0,et,_t,void 0,0,0),Er=Ag(void 0,void 0,void 0,et,j,void 0,0,0),yr=Ag(void 0,void 0,void 0,et,yo,void 0,0,0),jr=Gh(Tt,ke,!0),xi=new Map,Mr={get yieldType(){return N.fail("Not supported")},get returnType(){return N.fail("Not supported")},get nextType(){return N.fail("Not supported")}},$o=bv(j,j,j),Tl=bv(j,j,_n),Hc=bv(Vr,j,Oe),Us={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:pct,getGlobalIterableType:VZ,getGlobalIterableIteratorType:fct,getGlobalGeneratorType:mct,resolveIterationType:(n,a)=>cA(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:_ct,getGlobalIterableType:Mge,getGlobalIterableIteratorType:hct,getGlobalGeneratorType:gct,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},Ss,qc=new Map,op=[],Wc,cm,hd,Ce,Wt,Jn,vo,Qo,na,Zl,yc,dl,vl,Vl,ec,Jc,ff,jd,Nd,Of,U_,Nh,Kg,Bu,Xg,Ip,mg,Ud,te,ct,zt,jt,F,Te,st,Jt,rr,oi,$r,io,Fa,za,Ol,fu,Dc,xp,Hd,pb,us,km,wm,Ui,Yg,rv,Om,I1,x1,mf=new Map,H_=0,_f=0,$g=0,ze=!1,Ze=0,Mt,Ut,vn,Yn=[],gn=[],$n=[],fi=0,cr=[],ri=[],fr=0,Zo=Xd(""),Ka=g_(0),Zu=JZ({negative:!1,base10Value:"0"}),mu=[],Qg=[],V0=[],HI=0,j0=!1,$D=0,QD=10,ZD=[],mT=[],R1=[],qI=[],eN=[],JI=[],KI=[],XI=[],YI=[],_T=[],$I=[],D1=[],N1=[],fb=[],mb=[],_g=[],U0=[],ts=xR(),hT=xR(),tN=kh(),H0,Zg,Ch=new Map,Wf=new Map,qd=new Map,Rp=new Map,ap=new Map,iv=new Map,gT=ca();gT.set(je.escapedName,je);var nN=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Evt(),Qt;function QI(n){return n?Sn.get(n):void 0}function _b(n,a){return n&&Sn.set(n,a),a}function q0(n){if(n){const a=jn(n);if(a)if(mI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const _=To(c)?c[0]:c;if(a.localJsxFragmentFactory=yI(_.arguments.factory,se),nt(a.localJsxFragmentFactory,vc,Zd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Vp(a.localJsxFragmentFactory).escapedText}const d=_be(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=Vp(d).escapedText}else{const c=ZI(a);if(c)return a.localJsxNamespace=c}}return H0||(H0="React",V.jsxFactory?(Zg=yI(V.jsxFactory,se),nt(Zg,vc),Zg&&(H0=Vp(Zg).escapedText)):V.reactNamespace&&(H0=hl(V.reactNamespace))),Zg||(Zg=w.createQualifiedName(w.createIdentifier(Vi(H0)),"createElement")),H0}function ZI(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=To(a)?a[0]:a;if(n.localJsxFactory=yI(c.arguments.factory,se),nt(n.localJsxFactory,vc,Zd),n.localJsxFactory)return n.localJsxNamespace=Vp(n.localJsxFactory).escapedText}}function vc(n){return gh(n,-1,-1),In(n,vc,void 0)}function ov(n,a){return AFe(n,a),We}function ex(n,a,...c){const d=n?kr(n,a,...c):Hl(a,...c),_=ts.lookup(d);return _||(ts.add(d),d)}function a_(n,a,c,...d){const _=qe(a,c,...d);return _.skippedOn=n,_}function yT(n,a,...c){return n?kr(n,a,...c):Hl(a,...c)}function qe(n,a,...c){const d=yT(n,a,...c);return ts.add(d),d}function s_(n,a){n?ts.add(a):hT.add({...a,category:2})}function _u(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;const _=jn(a);s_(n,"message"in c?Qc(_,0,0,c,...d):vj(_,c));return}s_(n,"message"in c?kr(a,c,...d):wg(jn(a),a,c))}function J0(n,a,c,...d){const _=qe(n,c,...d);if(a){const y=kr(n,f.Did_you_forget_to_use_await);wa(_,y)}return _}function tx(n,a){const c=Array.isArray(n)?Xe(n,wV):wV(n);return c&&wa(a,kr(c,f.The_declaration_was_marked_as_deprecated_here)),hT.add(a),a}function hb(n){const a=Cd(n);return a&&Le(n.declarations)>1?a.flags&64?bt(n.declarations,av):Zn(n.declarations,av):!!n.valueDeclaration&&av(n.valueDeclaration)||Le(n.declarations)&&Zn(n.declarations,av)}function av(n){return!!(oS(n)&536870912)}function sv(n,a,c){const d=kr(n,f._0_is_deprecated,c);return tx(a,d)}function CM(n,a,c,d){const _=c?kr(n,f.The_signature_0_of_1_is_deprecated,d,c):kr(n,f._0_is_deprecated,d);return tx(a,_)}function Xa(n,a,c){v++;const d=new u(n|33554432,a);return d.links=new tle,d.links.checkFlags=c||0,d}function l_(n,a){const c=Xa(1,n);return c.links.type=a,c}function vT(n,a){const c=Xa(4,n);return c.links.type=a,c}function bT(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 K0(n,a){a.mergeId||(a.mergeId=Zse,Zse++),ZD[a.mergeId]=n}function ET(n){const a=Xa(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)),K0(a,n),a}function um(n,a,c=!1){if(!(n.flags&bT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const _=jl(n);if(_===ft)return a;n=ET(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&jL(n,a.valueDeclaration),qr(n.declarations,a.declarations),a.members&&(n.members||(n.members=ca()),c_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=ca()),c_(n.exports,a.exports,c)),c||K0(n,a)}else if(n.flags&1024)n!==at&&qe(a.declarations&&Mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,vi(n));else{const _=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),x=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,k=a.declarations&&jn(a.declarations[0]),z=n.declarations&&jn(n.declarations[0]),H=bL(k,V.checkJs),re=bL(z,V.checkJs),be=vi(a);if(k&&z&&Ss&&!_&&k!==z){const ge=Cg(k.path,z.path)===-1?k:z,Je=ge===k?z:k,gt=t0(Ss,`${ge.path}|${Je.path}`,()=>({firstFile:ge,secondFile:Je,conflictingSymbols:new Map})),Dt=t0(gt.conflictingSymbols,be,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));H||d(Dt.firstFileLocations,a),re||d(Dt.secondFileLocations,n)}else H||dm(a,x,be,n),re||dm(n,x,be,a)}return n;function d(_,y){if(y.declarations)for(const x of y.declarations)Tf(_,x)}}function dm(n,a,c,d){Xe(n.declarations,_=>{ey(_,a,c,d.declarations)})}function ey(n,a,c,d){const _=(h0(n,!1)?Nj(n):Mo(n))||n,y=ex(_,a,c);for(const x of d||et){const k=(h0(x,!1)?Nj(x):Mo(x))||x;if(k===_)continue;y.relatedInformation=y.relatedInformation||[];const z=kr(k,f._0_was_also_declared_here,c),H=kr(k,f.and_here);Le(y.relatedInformation)>=5||bt(y.relatedInformation,re=>JC(re,H)===0||JC(re,z)===0)||wa(y,Le(y.relatedInformation)?H:z)}}function nx(n,a){if(!n?.size)return a;if(!a?.size)return n;const c=ca();return c_(c,n),c_(c,a),c}function c_(n,a,c=!1){a.forEach((d,_)=>{const y=n.get(_);n.set(_,y?um(y,d,c):rs(d))})}function rN(n){var a,c,d;const _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){N.assert(_.symbol.declarations.length>1);return}if(R_(_))c_(Se,_.symbol.exports);else{const y=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=iy(n,n,y,!0);if(!x)return;if(x=Dp(x),x.flags&1920)if(bt(cm,k=>x===k.symbol)){const k=um(_.symbol,x,!0);hd||(hd=new Map),hd.set(n.text,k)}else{if((c=x.exports)!=null&&c.get("__export")&&((d=_.symbol.exports)!=null&&d.size)){const k=ege(x,"resolvedExports");for(const[z,H]of zo(_.symbol.exports.entries()))k.has(z)&&!x.exports.has(z)&&um(k.get(z),H)}um(x,_.symbol)}else qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function C1(n,a,c){a.forEach((_,y)=>{const x=n.get(y);x?Xe(x.declarations,d(Vi(y),c)):n.set(y,_)});function d(_,y){return x=>ts.add(kr(x,y,_))}}function Xi(n){if(n.flags&33554432)return n.links;const a=Ta(n);return mT[a]??(mT[a]=new tle)}function ei(n){const a=as(n);return R1[a]||(R1[a]=new cje)}function Ph(n){return n.kind===312&&!zp(n)}function Jd(n,a,c){if(c){const d=rs(n.get(a));if(d&&(N.assert((xl(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Au(d)&c))return d}}function PM(n,a){const c=n.parent,d=n.parent.parent,_=Jd(c.locals,a,111551),y=Jd(Ob(d.symbol),a,111551);return _&&y?[_,y]:N.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function ty(n,a){const c=jn(n),d=jn(a),_=_h(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Ps(V)||MS(a)||n.flags&33554432||x(a,n))return!0;const z=e.getSourceFiles();return z.indexOf(c)<=z.indexOf(d)}if(a.flags&16777216||MS(a)||Lye(a))return!0;if(n.pos<=a.pos&&!(Jo(n)&&PL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const z=v0(a,208);return z?Gn(z,Qa)!==Gn(n,Qa)||n.posZa(z)&&z.parent.parent===n);if(Jo(n))return!k(n,a,!1);if(fp(n,n.parent))return!(ve&&su(n)===su(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ve&&su(n)&&(Jo(n)||fp(n,n.parent))?!k(n,a,!0):!0;return!1;function y(z,H){switch(z.parent.parent.kind){case 243:case 248:case 250:if(M1(H,z,_))return!0;break}const re=z.parent.parent;return tR(re)&&M1(H,re.expression,_)}function x(z,H){return!!Gn(z,re=>{if(re===_)return"quit";if(ea(re))return!0;if(Rl(re))return H.posz.end?!1:Gn(H,ge=>{if(ge===z)return"quit";switch(ge.kind){case 219:return!0;case 172:return re&&(Jo(z)&&ge.parent===z.parent||fp(z,z.parent)&&ge.parent===z.parent.parent)?"quit":!0;case 241:switch(ge.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function MM(n,a,c){const d=os(V),_=a;if(Ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&d>=2){const k=ei(_);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=Xe(_.parameters,y)||!1),!k.declarationRequiresScopeChange}return!1;function y(k){return x(k.name)||!!k.initializer&&x(k.initializer)}function x(k){switch(k.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(k.name);case 172:return fc(k)?!ve:x(k.name);default:return zV(k)||qu(k)?d<7:Qa(k)&&k.dotDotDotToken&&am(k.parent)?d<4:ji(k)?!1:Ho(k,x)||!1}}}function gb(n){return yS(n)&&Lg(n.type)||IP(n)&&Lg(n.typeExpression)}function bl(n,a,c,d,_,y,x=!1,k=!0){return Up(n,a,c,d,_,y,x,k,Jd)}function Up(n,a,c,d,_,y,x,k,z){var H,re,be;const ge=n;let Je,gt,Dt,an,cn,ar=!1;const On=n;let ln,zn=!1;e:for(;n;){if(a==="const"&&gb(n))return;if(_L(n)&>&&n.name===gt&&(gt=n,n=n.parent),ph(n)&&n.locals&&!Ph(n)&&(Je=z(n.locals,a,c))){let er=!0;if(ea(n)&>&>!==n.body?(c&Je.flags&788968&>.kind!==327&&(er=Je.flags&262144?gt===n.type||gt.kind===169||gt.kind===348||gt.kind===349||gt.kind===168:!1),c&Je.flags&3&&(MM(Je,n,gt)?er=!1:Je.flags&1&&(er=gt.kind===169||gt===n.type&&!!Gn(Je.valueDeclaration,Ao)))):n.kind===194&&(er=gt===n.trueType),er)break e;Je=void 0}switch(ar=ar||pm(n,gt),n.kind){case 312:if(!zp(n))break;zn=!0;case 267:const er=((H=Ir(n))==null?void 0:H.exports)||K;if(n.kind===312||Xl(n)&&n.flags&33554432&&!R_(n)){if(Je=er.get("default")){const Ro=PR(Je);if(Ro&&Je.flags&c&&Ro.escapedName===a)break e;Je=void 0}const tr=er.get(a);if(tr&&tr.flags===2097152&&(fl(tr,281)||fl(tr,280)))break}if(a!=="default"&&(Je=z(er,a,c&2623475)))if($i(n)&&n.commonJsModuleIndicator&&!((re=Je.declarations)!=null&&re.some(Zf)))Je=void 0;else break e;break;case 266:if(Je=z(((be=Ir(n))==null?void 0:be.exports)||K,a,c&8)){d&&om(V)&&!(n.flags&33554432)&&jn(n)!==jn(Je.valueDeclaration)&&qe(On,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Vi(a),$e,`${Vi(gf(n).escapedName)}.${Vi(a)}`);break e}break;case 172:if(!aa(n)){const tr=oy(n.parent);tr&&tr.locals&&z(tr.locals,a,c&111551)&&(N.assertNode(n,Jo),an=n)}break;case 263:case 231:case 264:if(Je=z(Ir(n).members||K,a,c&788968)){if(!ny(Je,n)){Je=void 0;break}if(gt&&aa(gt)){d&&qe(On,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Zc(n)&&c&32){const tr=n.name;if(tr&&a===tr.escapedText){Je=n.symbol;break e}}break;case 233:if(gt===n.expression&&n.parent.token===96){const tr=n.parent.parent;if(ui(tr)&&(Je=z(Ir(tr).members,a,c&788968))){d&&qe(On,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(ln=n.parent.parent,(ui(ln)||ln.kind===264)&&(Je=z(Ir(ln).members,a,c&788968))){d&&qe(On,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(os(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Je=Gt;break e}break;case 218:if(c&3&&a==="arguments"){Je=Gt;break e}if(c&16){const tr=n.name;if(tr&&a===tr.escapedText){Je=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&($c(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const qn=ER(n);qn&&(n=qn.parent);break;case 169:gt&&(gt===n.initializer||gt===n.name&&ta(gt))&&(cn||(cn=n));break;case 208:gt&&(gt===n.initializer||gt===n.name&&ta(gt))&&UE(n)&&!cn&&(cn=n);break;case 195:if(c&262144){const tr=n.typeParameter.name;if(tr&&a===tr.escapedText){Je=n.typeParameter.symbol;break e}}break;case 281:gt&>===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}yb(n)&&(Dt=n),gt=n,n=sm(n)?a3(n)||n.parent:(r_(n)||ZW(n))&&g0(n)||n.parent}if(y&&Je&&(!Dt||Je!==Dt.symbol)&&(Je.isReferenced|=c),!Je){if(gt&&(N.assertNode(gt,$i),gt.commonJsModuleIndicator&&a==="exports"&&c>.symbol.flags))return gt.symbol;x||(Je=z(Se,a,c))}if(!Je&&ge&&lr(ge)&&ge.parent&&Td(ge.parent,!1))return yt;function Fn(){return an&&!ve?(qe(On,On&&an.type&&eL(an.type,On.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,Rs(an.name),Wm(_)),!0):!1}if(Je){if(d&&Fn())return}else{d&&r(()=>{if(!On||On.parent.kind!==331&&!P1(On,a,_)&&!Fn()&&!ST(On)&&!rx(On,a,c)&&!lv(On,a)&&!TT(On,a,c)&&!iN(On,a,c)&&!yg(On,a,c)){let er,qn;if(_&&(qn=lmt(_),qn&&qe(On,d,Wm(_),qn)),!qn&&k&&$D{var er;if(On&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const qn=yf(Je);(qn.flags&2||qn.flags&32||qn.flags&384)&&Zs(qn,On)}if(Je&&zn&&(c&111551)===111551&&!(ge.flags&16777216)){const qn=rs(Je);Le(qn.declarations)&&Zn(qn.declarations,tr=>qk(tr)||$i(tr)&&!!tr.symbol.globalExports)&&_u(!V.allowUmdGlobalAccess,On,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(a))}if(Je&&cn&&!ar&&(c&111551)===111551){const qn=rs(NZ(Je)),tr=C_(cn);qn===Ir(cn)?qe(On,f.Parameter_0_cannot_reference_itself,Rs(cn.name)):qn.valueDeclaration&&qn.valueDeclaration.pos>cn.pos&&tr.parent.locals&&z(tr.parent.locals,qn.escapedName,c)===qn&&qe(On,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Rs(cn.name),Rs(On))}if(Je&&On&&c&111551&&Je.flags&2097152&&!(Je.flags&111551)&&!S0(On)){const qn=Ff(Je,111551);if(qn){const tr=qn.kind===281||qn.kind===278||qn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ro=Vi(a);hg(qe(On,tr,Ro),qn,Ro)}}if(V.isolatedModules&&Je&&zn&&(c&111551)===111551){const tr=z(Se,a,c)===Je&&$i(gt)&>.locals&&z(gt.locals,a,-111552);if(tr){const Ro=(er=tr.declarations)==null?void 0:er.find(Eo=>Eo.kind===276||Eo.kind===273||Eo.kind===274||Eo.kind===271);Ro&&!lL(Ro)&&qe(Ro,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(a))}}}),Je}function hg(n,a,c){return a?wa(n,kr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function pm(n,a){return n.kind!==219&&n.kind!==218?aI(n)||(Bs(n)||n.kind===172&&!aa(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Zr(n,1024)?!0:!AS(n)}function yb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Wm(n){return Po(n)?Vi(n):Rs(n)}function ny(n,a){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(sm(c.parent)?DS(c.parent):c.parent)===a)return!(sm(c.parent)&&An(c.parent.parent.tags,Zf))}return!1}function P1(n,a,c){if(!Ve(n)||n.escapedText!==a||IFe(n)||MS(n))return!1;const d=Fd(n,!1,!1);let _=d;for(;_;){if(ui(_.parent)){const y=Ir(_.parent);if(!y)break;const x=dr(y);if(va(x,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Wm(c),vi(y)),!0;if(_===d&&!aa(_)){const k=el(y).thisType;if(va(k,a))return qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Wm(c)),!0}}_=_.parent}return!1}function ST(n){const a=gg(n);return a&&Hs(a,64,!0)?(qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,pc(a)),!0):!1}function gg(n){switch(n.kind){case 80:case 211:return n.parent?gg(n.parent):void 0;case 233:if(Gl(n.expression))return n.expression;default:return}}function rx(n,a,c){const d=1920|(lr(n)?111551:0);if(c===d){const _=jl(bl(n,a,788968&~d,void 0,void 0,!1)),y=n.parent;if(_){if(Id(y)){N.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");const x=y.right.escapedText;if(va(el(_),x))return qe(y,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(x)),!0}return qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function yg(n,a,c){if(c&788584){const d=jl(bl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return qe(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 q_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function lv(n,a){return q_(a)&&n.parent.kind===281?(qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function iN(n,a,c){if(c&111551){if(q_(a)){const y=n.parent.parent;if(y&&y.parent&&of(y)){const x=y.token,k=y.parent.kind;k===264&&x===96?qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):k===263&&x===96?qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):k===263&&x===119&&qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}const d=jl(bl(n,a,788544,void 0,void 0,!1)),_=d&&Au(d);if(d&&_!==void 0&&!(_&111551)){const y=Vi(a);return aN(a)?qe(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,y):oN(n,d)?qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function oN(n,a){const c=Gn(n.parent,d=>Za(d)||yp(d)?!1:bp(d)||"quit");if(c&&c.members.length===1){const d=el(a);return!!(d.flags&1048576)&&sB(d,384,!0)}return!1}function aN(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function TT(n,a,c){if(c&111127){if(jl(bl(n,a,1024,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&jl(bl(n,a,1536,void 0,void 0,!1)))return qe(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function Zs(n,a){var c;if(N.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const d=(c=n.declarations)==null?void 0:c.find(_=>lj(_)||ui(_)||_.kind===266);if(d===void 0)return N.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!ty(d,a)){let _;const y=Rs(Mo(d));n.flags&2?_=qe(a,f.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?_=qe(a,f.Class_0_used_before_its_declaration,y):n.flags&256?_=qe(a,f.Enum_0_used_before_its_declaration,y):(N.assert(!!(n.flags&128)),om(V)&&(_=qe(a,f.Enum_0_used_before_its_declaration,y))),_&&wa(_,kr(d,f._0_is_declared_here,y))}}function M1(n,a,c){return!!a&&!!Gn(n,d=>d===a||(d===c||ea(d)&&(!AS(d)||Vc(d)&3)?"quit":!1))}function AT(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 Fm(n){return n.declarations&&Oo(n.declarations,vb)}function vb(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&&SR(n)||mr(n)&&Bl(n)===2&&SR(n)||ws(n)&&mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&sN(n.parent.right)||n.kind===304||n.kind===303&&sN(n.initializer)||n.kind===260&&BE(n)||n.kind===208&&BE(n.parent.parent)}function sN(n){return QL(n)||Os(n)&&nh(n)}function IT(n,a){const c=Eb(n);if(c){const _=LR(c.expression).arguments[0];return Ve(c.name)?jl(va(f8e(_),c.name.escapedText)):void 0}if(wi(n)||n.moduleReference.kind===283){const _=gd(n,xj(n)||IC(n)),y=Dp(_);return sp(n,_,y,!1),y}const d=ox(n.moduleReference,a);return LM(n,d),d}function LM(n,a){if(sp(n,void 0,a,!1)&&!n.isTypeOnly){const c=Ff(Ir(n)),d=c.kind===281||c.kind===278,_=d?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,y=d?f._0_was_exported_here:f._0_was_imported_here,x=c.kind===278?"*":Vi(c.name.escapedText);wa(qe(n.moduleReference,_),kr(c,y,x))}}function hr(n,a,c,d){const _=n.exports.get("export="),y=_?va(dr(_),a,!0):n.exports.get(a),x=jl(y,d);return sp(c,y,x,!1),x}function ru(n){return kl(n)&&!n.isExportEquals||Zr(n,2048)||Ku(n)||Sh(n)}function to(n){return ls(n)?e.getModeForUsageLocation(jn(n),n):void 0}function hf(n,a){return n===99&&a===1}function cv(n){return to(n)===99&&Al(n.text,".json")}function J_(n,a,c,d){const _=n&&to(d);if(n&&_!==void 0&&100<=G&&G<=199){const y=hf(_,n.impliedNodeFormat);if(_===99||y)return y}if(!$)return!1;if(!n||n.isDeclarationFile){const y=hr(a,"default",void 0,!0);return!(y&&bt(y.declarations,ru)||hr(a,hl("__esModule"),void 0,c))}return ud(n)?typeof n.externalModuleIndicator!="object"&&!hr(a,hl("__esModule"),void 0,c):uv(a)}function ur(n,a){const c=gd(n,n.parent.moduleSpecifier);if(c)return xT(c,n,a)}function xT(n,a,c){var d;let _;bC(n)?_=n:_=hr(n,"default",a,c);const y=(d=n.declarations)==null?void 0:d.find($i),x=X0(a);if(!x)return _;const k=cv(x),z=J_(y,n,c,x);if(!_&&!z&&!k)if(uv(n)&&!$){const H=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",be=n.exports.get("export=").valueDeclaration,ge=qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,vi(n),H);be&&wa(ge,kr(be,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,H))}else Eh(a)?Kc(n,a):RT(n,n,a,DA(a)&&a.propertyName||a.name);else if(z||k){const H=Dp(n,c)||jl(n,c);return sp(a,n,H,!1),H}return sp(a,_,void 0,!1),_}function X0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Th(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 N.assertNever(n)}}function Kc(n,a){var c,d,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))qe(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,vi(n),vi(a.symbol));else{const y=qe(a.name,f.Module_0_has_no_default_export,vi(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){const k=(_=x.declarations)==null?void 0:_.find(z=>{var H,re;return!!(Yl(z)&&z.moduleSpecifier&&((re=(H=gd(z,z.moduleSpecifier))==null?void 0:H.exports)!=null&&re.has("default")))});k&&wa(y,kr(k,f.export_Asterisk_does_not_re_export_a_default))}}}function Mh(n,a){const c=n.parent.parent.moduleSpecifier,d=gd(n,c),_=lp(d,c,a,!1);return sp(n,d,_,!1),_}function zm(n,a){const c=n.parent.moduleSpecifier,d=c&&gd(n,c),_=c&&lp(d,c,a,!1);return sp(n,d,_,!1),_}function L1(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;const c=Xa(n.flags|a.flags,n.escapedName);return N.assert(n.declarations||a.declarations),c.declarations=RE(So(n.declarations,a.declarations),Ny),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 k1(n,a,c,d){var _;if(n.flags&1536){const y=Np(n).get(a.escapedText),x=jl(y,d),k=(_=Xi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return sp(c,y,x,!1,k,a.escapedText),x}}function bb(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return jl(va(bi(c),a))}}function ry(n,a,c=!1){var d;const _=xj(n)||n.moduleSpecifier,y=gd(n,_),x=!Wr(a)&&a.propertyName||a.name;if(!Ve(x))return;const k=x.escapedText==="default"&&$,z=lp(y,_,!1,k);if(z&&x.escapedText){if(bC(y))return y;let H;y&&y.exports&&y.exports.get("export=")?H=va(dr(z),x.escapedText,!0):H=bb(z,x.escapedText),H=jl(H,c);let re=k1(z,x,a,c);if(re===void 0&&x.escapedText==="default"){const ge=(d=y.declarations)==null?void 0:d.find($i);(cv(_)||J_(ge,y,c,_))&&(re=Dp(y,c)||jl(y,c))}const be=re&&H&&re!==H?L1(H,re):re||H;return be||RT(y,z,n,x),be}}function RT(n,a,c,d){var _;const y=qp(n,c),x=Rs(d),k=zee(d,a);if(k!==void 0){const z=vi(k),H=qe(d,f._0_has_no_exported_member_named_1_Did_you_mean_2,y,x,z);k.valueDeclaration&&wa(H,kr(k.valueDeclaration,f._0_is_declared_here,z))}else(_=n.exports)!=null&&_.has("default")?qe(d,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,x):Bm(c,d,x,n,y)}function Bm(n,a,c,d,_){var y,x;const k=(x=(y=ii(d.valueDeclaration,ph))==null?void 0:y.locals)==null?void 0:x.get(a.escapedText),z=d.exports;if(k){const H=z?.get("export=");if(H)u_(H,k)?Y0(n,a,c,_):qe(a,f.Module_0_has_no_exported_member_1,_,c);else{const re=z?An(hge(z),ge=>!!u_(ge,k)):void 0,be=re?qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,vi(re)):qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);k.declarations&&wa(be,...Ot(k.declarations,(ge,Je)=>kr(ge,Je===0?f._0_is_declared_here:f.and_here,c)))}}else qe(a,f.Module_0_has_no_exported_member_1,_,c)}function Y0(n,a,c,d){if(G>=5){const _=yh(V)?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;qe(a,_,c)}else if(lr(n)){const _=yh(V)?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;qe(a,_,c)}else{const _=yh(V)?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;qe(a,_,c,c,d)}}function vg(n,a){if(np(n)&&Sr(n.propertyName||n.name)==="default"){const x=X0(n),k=x&&gd(n,x);if(k)return xT(k,n,a)}const c=Qa(n)?C_(n):n.parent.parent.parent,d=Eb(c),_=ry(c,d||n,a),y=n.propertyName||n.name;return d&&_&&Ve(y)?jl(va(dr(_),y.escapedText),a):(sp(n,void 0,_,!1),_)}function Eb(n){if(wi(n)&&n.initializer&&Wr(n.initializer))return n.initializer}function ix(n,a){if(x_(n.parent)){const c=Dp(n.parent.symbol,a);return sp(n,void 0,c,!1),c}}function $0(n,a,c){if(Sr(n.propertyName||n.name)==="default"){const _=X0(n),y=_&&gd(n,_);if(y)return xT(y,n,!!c)}const d=n.parent.parent.moduleSpecifier?ry(n.parent.parent,n,c):Hs(n.propertyName||n.name,a,!1,c);return sp(n,void 0,d,!1),d}function lN(n,a){const c=kl(n)?n.expression:n.right,d=w1(c,a);return sp(n,void 0,d,!1),d}function w1(n,a){if(Zc(n))return nc(n).symbol;if(!Zd(n)&&!Gl(n))return;const c=Hs(n,901119,!0,a);return c||(nc(n),ei(n).resolvedSymbol)}function DT(n,a){if(mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return w1(n.parent.right,a)}function Hp(n,a=!1){switch(n.kind){case 271:case 260:return IT(n,a);case 273:return ur(n,a);case 274:return Mh(n,a);case 280:return zm(n,a);case 276:case 208:return vg(n,a);case 281:return $0(n,901119,a);case 277:case 226:return lN(n,a);case 270:return ix(n,a);case 304:return Hs(n.name,901119,!0,a);case 303:return w1(n.initializer,a);case 212:case 211:return DT(n,a);default:return N.fail()}}function NT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function jl(n,a){return!a&&NT(n)?Fc(n):n}function Fc(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Xi(n);if(a.aliasTarget)a.aliasTarget===Ct&&(a.aliasTarget=ft);else{a.aliasTarget=Ct;const c=Fm(n);if(!c)return N.fail();const d=Hp(c);a.aliasTarget===Ct?a.aliasTarget=d||ft:qe(c,f.Circular_definition_of_import_alias_0,vi(n))}return a.aliasTarget}function CT(n){if(Xi(n).aliasTarget!==Ct)return Fc(n)}function Au(n,a,c){const d=a&&Ff(n),_=d&&Yl(d),y=d&&(_?gd(d.moduleSpecifier,d.moduleSpecifier,!0):Fc(d.symbol)),x=_&&y?Lh(y):void 0;let k=c?0:n.flags,z;for(;n.flags&2097152;){const H=yf(Fc(n));if(!_&&H===y||x?.get(H.escapedName)===H)break;if(H===ft)return-1;if(H===n||z?.has(H))break;H.flags&2097152&&(z?z.add(H):z=new Set([n,H])),k|=H.flags,n=H}return k}function sp(n,a,c,d,_,y){if(!n||Wr(n))return!1;const x=Ir(n);if(f0(n)){const z=Xi(x);return z.typeOnlyDeclaration=n,!0}if(_){const z=Xi(x);return z.typeOnlyDeclaration=_,x.escapedName!==y&&(z.typeOnlyExportStarName=y),!0}const k=Xi(x);return Q0(k,a,d)||Q0(k,c,d)}function Q0(n,a,c){var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const _=((d=a.exports)==null?void 0:d.get("export="))??a,y=_.declarations&&An(_.declarations,f0);n.typeOnlyDeclaration=y??Xi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Ff(n,a){if(!(n.flags&2097152))return;const c=Xi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const d=c.typeOnlyDeclaration.kind===278?jl(Lh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Fc(c.typeOnlyDeclaration.symbol);return Au(d)&a?c.typeOnlyDeclaration:void 0}}function Sb(n){if(!It)return;const a=Ir(n),c=Fc(a);c&&(c===ft||Au(a,!0)&111551&&!r6(c))&&Tb(a)}function Tb(n){N.assert(It);const a=Xi(n);if(!a.referenced){a.referenced=!0;const c=Fm(n);if(!c)return N.fail();_R(c)&&Au(jl(n))&111551&&nc(c.moduleReference)}}function iu(n){const a=Xi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function ox(n,a){return n.kind===80&&GC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Hs(n,1920,!1,a):(N.assert(n.parent.kind===271),Hs(n,901119,!1,a))}function qp(n,a){return n.parent?qp(n.parent,a)+"."+vi(n):vi(n,a,void 0,36)}function PT(n){for(;Id(n.parent);)n=n.parent;return n}function MT(n){let a=Vp(n),c=bl(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Id(a.parent);){const d=dr(c);if(c=va(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Hs(n,a,c,d,_){if(zl(n))return;const y=1920|(lr(n)?a&111551:0);let x;if(n.kind===80){const k=a===y||$s(n)?f.Cannot_find_namespace_0:a4e(Vp(n)),z=lr(n)&&!$s(n)?cN(n,a):void 0;if(x=rs(bl(_||n,n.escapedText,a,c||z?void 0:k,n,!0,!1)),!x)return rs(z)}else if(n.kind===166||n.kind===211){const k=n.kind===166?n.left:n.expression,z=n.kind===166?n.right:n.name;let H=Hs(k,y,c,!1,_);if(!H||zl(z))return;if(H===ft)return H;if(H.valueDeclaration&&lr(H.valueDeclaration)&&fd(V)!==100&&wi(H.valueDeclaration)&&H.valueDeclaration.initializer&&U3e(H.valueDeclaration.initializer)){const re=H.valueDeclaration.initializer.arguments[0],be=gd(re,re);if(be){const ge=Dp(be);ge&&(H=ge)}}if(x=rs(Jd(Np(H),z.escapedText,a)),!x&&H.flags&2097152&&(x=rs(Jd(Np(Fc(H)),z.escapedText,a))),!x){if(!c){const re=qp(H),be=Rs(z),ge=zee(z,H);if(ge){qe(z,f._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,vi(ge));return}const Je=Id(n)&&PT(n);if(Ce&&a&788968&&Je&&!JR(Je.parent)&&MT(Je)){qe(Je,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,mp(Je));return}if(a&1920&&Id(n.parent)){const Dt=rs(Jd(Np(H),z.escapedText,788968));if(Dt){qe(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,vi(Dt),Vi(n.parent.right.escapedText));return}}qe(z,f.Namespace_0_has_no_exported_member_1,re,be)}return}}else N.assertNever(n,"Unknown entity name kind.");return N.assert((xl(x)&1)===0,"Should never get an instantiated symbol here."),!$s(n)&&Zd(n)&&(x.flags&2097152||n.parent.kind===277)&&sp(Fj(n),x,void 0,!0),x.flags&a||d?x:Fc(x)}function cN(n,a){if(BZ(n.parent)){const c=Z0(n.parent);if(c)return bl(c,n.escapedText,a,void 0,n,!0)}}function Z0(n){if(Gn(n,_=>nR(_)||_.flags&16777216?Zf(_):"quit"))return;const c=DS(n);if(c&&eu(c)&&VL(c.expression)){const _=Ir(c.expression.left);if(_)return O1(_)}if(c&&Os(c)&&VL(c.parent)&&eu(c.parent.parent)){const _=Ir(c.parent.left);if(_)return O1(_)}if(c&&(xm(c)||_c(c))&&mr(c.parent.parent)&&Bl(c.parent.parent)===6){const _=Ir(c.parent.parent.left);if(_)return O1(_)}const d=y0(n);if(d&&ea(d)){const _=Ir(d);return _&&_.valueDeclaration}}function O1(n){const a=n.parent.valueDeclaration;return a?(xC(a)?kA(a):vS(a)?WL(a):void 0)||a:void 0}function kM(n){const a=n.valueDeclaration;if(!a||!lr(a)||n.flags&524288||h0(a,!1))return;const c=wi(a)?WL(a):kA(a);if(c){const d=gf(c);if(d)return Ive(d,n)}}function gd(n,a,c){const _=fd(V)===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 iy(n,a,c?void 0:_)}function iy(n,a,c,d=!1){return ls(a)?K_(n,a.text,c,a,d):void 0}function K_(n,a,c,d,_=!1){var y,x,k,z,H,re,be,ge,Je,gt,Dt;if(uo(a,"@types/")){const tr=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ro=$N(a,"@types/");qe(d,tr,Ro,a)}const an=MZ(a,!0);if(an)return an;const cn=jn(n),ar=ls(n)?n:((y=Xl(n)?n:n.parent&&Xl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:y.name)||((x=Vv(n)?n:void 0)==null?void 0:x.argument.literal)||(wi(n)&&n.initializer&&Td(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((k=Gn(n,Bp))==null?void 0:k.arguments[0])||((z=Gn(n,kc))==null?void 0:z.moduleSpecifier)||((H=Gn(n,_0))==null?void 0:H.moduleReference.expression)||((re=Gn(n,Yl))==null?void 0:re.moduleSpecifier),On=ar&&ls(ar)?e.getModeForUsageLocation(cn,ar):cn.impliedNodeFormat,ln=fd(V),zn=(be=e.getResolvedModule(cn,a,On))==null?void 0:be.resolvedModule,Fn=zn&&kJ(V,zn,cn),er=zn&&(!Fn||Fn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(zn.resolvedFileName);if(er){if(Fn&&qe(d,Fn,a,zn.resolvedFileName),zn.resolvedUsingTsExtension&&Su(a)){const tr=((ge=Gn(n,kc))==null?void 0:ge.importClause)||Gn(n,Ym(tu,Yl));(tr&&!tr.isTypeOnly||Gn(n,Bp))&&qe(d,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,qn(N.checkDefined(T3(a))))}else if(zn.resolvedUsingTsExtension&&!pD(V,cn.fileName)){const tr=((Je=Gn(n,kc))==null?void 0:Je.importClause)||Gn(n,Ym(tu,Yl));if(!(tr?.isTypeOnly||Gn(n,cg))){const Ro=N.checkDefined(T3(a));qe(d,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ro)}}if(er.symbol){if(zn.isExternalLibraryImport&&!YC(zn.extension)&&ax(!1,d,cn,On,zn,a),ln===3||ln===99){const tr=cn.impliedNodeFormat===1&&!Gn(n,Bp)||!!Gn(n,tu),Ro=Gn(n,Eo=>cg(Eo)||Yl(Eo)||kc(Eo));if(tr&&er.impliedNodeFormat===99&&!Voe(Ro))if(Gn(n,tu))qe(d,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 Eo;const Bo=Bg(cn.fileName);if(Bo===".ts"||Bo===".js"||Bo===".tsx"||Bo===".jsx"){const _o=cn.packageJsonScope,Cc=Bo===".ts"?".mts":Bo===".js"?".mjs":void 0;_o&&!_o.contents.packageJsonContent.type?Cc?Eo=jo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Cc,Qr(_o.packageDirectory,"package.json")):Eo=jo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Qr(_o.packageDirectory,"package.json")):Cc?Eo=jo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Cc):Eo=jo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ts.add(wg(jn(d),d,jo(Eo,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 rs(er.symbol)}c&&qe(d,f.File_0_is_not_a_module,er.fileName);return}if(cm){const tr=lG(cm,Ro=>Ro.pattern,a);if(tr){const Ro=hd&&hd.get(a);return rs(Ro||tr.symbol)}}if(zn&&!YC(zn.extension)&&Fn===void 0||Fn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){const tr=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;qe(d,tr,a,zn.resolvedFileName)}else ax(pe&&!!c,d,cn,On,zn,a);return}if(c){if(zn){const tr=e.getProjectReferenceRedirect(zn.resolvedFileName);if(tr){qe(d,f.Output_file_0_has_not_been_built_from_source_file_1,tr,zn.resolvedFileName);return}}if(Fn)qe(d,Fn,a,zn.resolvedFileName);else{const tr=Wp(a)&&!AA(a),Ro=ln===3||ln===99;if(!T0(V)&&Il(a,".json")&&ln!==1&&L3(V))qe(d,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(On===99&&Ro&&tr){const Eo=go(a,ai(cn.path)),Bo=(gt=nN.find(([_o,Cc])=>e.fileExists(Eo+_o)))==null?void 0:gt[1];Bo?qe(d,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Bo):qe(d,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((Dt=e.getResolvedModule(cn,a,On))!=null&&Dt.alternateResult){const Eo=D4(cn,e,a,On,a);_u(!0,d,jo(Eo,c,a))}else qe(d,c,a)}}return;function qn(tr){const Ro=hk(a,tr);if(M3(G)||On===99){const Eo=Su(a)&&pD(V);return Ro+(tr===".mts"||tr===".d.mts"?Eo?".mts":".mjs":tr===".cts"||tr===".d.mts"?Eo?".cts":".cjs":Eo?".ts":".js")}return Ro}}function ax(n,a,c,d,{packageId:_,resolvedFileName:y},x){let k;!Yc(x)&&_&&(k=D4(c,e,x,d,_.name)),_u(n,a,jo(k,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,y))}function Dp(n,a){if(n?.exports){const c=jl(n.exports.get("export="),a),d=sx(rs(c),rs(n));return rs(d)||n}}function sx(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;const c=Xi(n);if(c.cjsExportMerged)return c.cjsExportMerged;const d=n.flags&33554432?n:ET(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=ca()),a.exports.forEach((_,y)=>{y!=="export="&&d.exports.set(y,d.exports.has(y)?um(d.exports.get(y),_):_)}),d===n&&(Xi(d).resolvedExports=void 0,Xi(d).resolvedMembers=void 0),Xi(d).cjsExportMerged=d,c.cjsExportMerged=d}function lp(n,a,c,d){var _;const y=Dp(n,c);if(!c&&y){if(!d&&!(y.flags&1539)&&!fl(y,312)){const k=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,k),y}const x=a.parent;if(kc(x)&&vR(x)||Bp(x)){const k=Bp(x)?x.arguments[0]:x.moduleSpecifier,z=dr(y),H=V3e(z,y,n,k);if(H)return lx(y,H,x);const re=(_=n?.declarations)==null?void 0:_.find($i),be=re&&hf(to(k),re.impliedNodeFormat);if(yh(V)||be){let ge=d9(z,0);if((!ge||!ge.length)&&(ge=d9(z,1)),ge&&ge.length||va(z,"default",!0)||be){const Je=z.flags&3670016?j3e(z,y,n,k):xve(y,y.parent);return lx(y,Je,x)}}}}return y}function lx(n,a,c){const d=Xa(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));const _=__(a);return d.links.type=Ls(d,_.members,et,et,_.indexInfos),d}function uv(n){return n.exports.get("export=")!==void 0}function LT(n){return hge(Lh(n))}function uN(n){const a=LT(n),c=Dp(n);if(c!==n){const d=dr(c);Ab(d)&&qr(a,gs(d))}return a}function dN(n,a){Lh(n).forEach((_,y)=>{z1(y)||a(_,y)});const d=Dp(n);if(d!==n){const _=dr(d);Ab(_)&&Plt(_,(y,x)=>{a(y,x)})}}function kT(n,a){const c=Lh(a);if(c)return c.get(n)}function pN(n,a){const c=kT(n,a);if(c)return c;const d=Dp(a);if(d===a)return;const _=dr(d);return Ab(_)?va(_,n):void 0}function Ab(n){return!(n.flags&402784252||Or(n)&1||qf(n)||Ba(n))}function Np(n){return n.flags&6256?ege(n,"resolvedExports"):n.flags&1536?Lh(n):n.exports||K}function Lh(n){const a=Xi(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:d}=wT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function fN(n,a,c,d){a&&a.forEach((_,y)=>{if(y==="default")return;const x=n.get(y);if(!x)n.set(y,_),c&&d&&c.set(y,{specifierText:pc(d.moduleSpecifier)});else if(c&&d&&x&&jl(x)!==jl(_)){const k=c.get(y);k.exportsWithDuplicate?k.exportsWithDuplicate.push(d):k.exportsWithDuplicate=[d]}})}function wT(n){const a=[];let c;const d=new Set;n=Dp(n);const _=y(n)||K;return c&&d.forEach(x=>c.delete(x)),{exports:_,typeOnlyExportStarMap:c};function y(x,k,z){if(!z&&x?.exports&&x.exports.forEach((be,ge)=>d.add(ge)),!(x&&x.exports&&Tf(a,x)))return;const H=new Map(x.exports),re=x.exports.get("__export");if(re){const be=ca(),ge=new Map;if(re.declarations)for(const Je of re.declarations){const gt=gd(Je,Je.moduleSpecifier),Dt=y(gt,Je,z||Je.isTypeOnly);fN(be,Dt,ge,Je)}ge.forEach(({exportsWithDuplicate:Je},gt)=>{if(!(gt==="export="||!(Je&&Je.length)||H.has(gt)))for(const Dt of Je)ts.add(kr(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ge.get(gt).specifierText,Vi(gt)))}),fN(H,be)}return k?.isTypeOnly&&(c??(c=new Map),H.forEach((be,ge)=>c.set(ge,k))),H}}function rs(n){let a;return n&&n.mergeId&&(a=ZD[n.mergeId])?a:n}function Ir(n){return rs(n.symbol&&NZ(n.symbol))}function gf(n){return x_(n)?Ir(n):void 0}function Cd(n){return rs(n.parent&&NZ(n.parent))}function W1(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&gf(n.valueDeclaration.parent)||n}function mN(n,a){const c=jn(a),d=as(c),_=Xi(n);let y;if(_.extendedContainersByFile&&(y=_.extendedContainersByFile.get(d)))return y;if(c&&c.imports){for(const k of c.imports){if($s(k))continue;const z=gd(a,k,!0);!z||!bg(z,n)||(y=xn(y,z))}if(Le(y))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(d,y),y}if(_.extendedContainers)return _.extendedContainers;const x=e.getSourceFiles();for(const k of x){if(!ac(k))continue;const z=Ir(k);bg(z,n)&&(y=xn(y,z))}return _.extendedContainers=y||et}function eE(n,a,c){const d=Cd(n);if(d&&!(n.flags&262144))return z(d);const _=Hi(n.declarations,re=>{if(!ku(re)&&re.parent){if(ed(re.parent))return Ir(re.parent);if(O_(re.parent)&&re.parent.parent&&Dp(Ir(re.parent.parent))===n)return Ir(re.parent.parent)}if(Zc(re)&&mr(re.parent)&&re.parent.operatorToken.kind===64&&ws(re.parent.left)&&Gl(re.parent.left.expression))return ng(re.parent.left)||IS(re.parent.left.expression)?Ir(jn(re)):(nc(re.parent.left.expression),ei(re.parent.left.expression).resolvedSymbol)});if(!Le(_))return;const y=Hi(_,re=>bg(re,n)?re:void 0);let x=[],k=[];for(const re of y){const[be,...ge]=z(re);x=xn(x,be),k=qr(k,ge)}return So(x,k);function z(re){const be=Hi(re.declarations,H),ge=a&&mN(n,a),Je=F1(re,c);if(a&&re.flags&ay(c)&&Ib(re,a,1920,!1))return xn(So(So([re],be),ge),Je);const gt=!(re.flags&ay(c))&&re.flags&788968&&el(re).flags&524288&&c===111551?G1(a,an=>Gc(an,cn=>{if(cn.flags&ay(c)&&dr(cn)===el(re))return cn})):void 0;let Dt=gt?[gt,...be,re]:[...be,re];return Dt=xn(Dt,Je),Dt=qr(Dt,ge),Dt}function H(re){return d&&OT(re,d)}}function F1(n,a){const c=!!Le(n.declarations)&&Ha(n.declarations);if(a&111551&&c&&c.parent&&wi(c.parent)&&(Oa(c)&&c===c.parent.initializer||bp(c)&&c===c.parent.type))return Ir(c.parent)}function OT(n,a){const c=no(n),d=c&&c.exports&&c.exports.get("export=");return d&&u_(d,a)?c:void 0}function bg(n,a){if(n===Cd(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&u_(c,a))return n;const d=Np(n),_=d.get(a.escapedName);return _&&u_(_,a)?_:Gc(d,y=>{if(u_(y,a))return y})}function u_(n,a){if(rs(jl(rs(n)))===rs(jl(rs(a))))return n}function yf(n){return rs(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Gm(n,a){return!!(n.flags&111551||n.flags&2097152&&Au(n,!a)&111551)}function oy(n){const a=n.members;for(const c of a)if(c.kind===176&&Yf(c.body))return c}function Eg(n){var a;const c=new p(Qt,n);return m++,c.id=m,(a=sr)==null||a.recordType(c),c}function Sg(n,a){const c=Eg(n);return c.symbol=a,c}function cx(n){return new p(Qt,n)}function lc(n,a,c=0,d){_N(a,d);const _=Eg(n);return _.intrinsicName=a,_.debugIntrinsicName=d,_.objectFlags=c|524288|2097152|33554432|16777216,_}function _N(n,a){const c=`${n},${a??""}`;pt.has(c)&&N.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),pt.add(c)}function zf(n,a){const c=Sg(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 kh(){return ti(zo(Wq.keys(),Xd))}function vf(n){return Sg(262144,n)}function z1(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function tE(n){let a;return n.forEach((c,d)=>{ux(c,d)&&(a||(a=[])).push(c)}),a||et}function ux(n,a){return!z1(a)&&Gm(n)}function WT(n){const a=tE(n),c=wZ(n);return c?So(a,[c]):a}function bf(n,a,c,d,_){const y=n;return y.members=a,y.properties=et,y.callSignatures=c,y.constructSignatures=d,y.indexInfos=_,a!==K&&(y.properties=tE(a)),y}function Ls(n,a,c,d,_){return bf(zf(16,n),a,c,d,_)}function B1(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=nr(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;const c=Ls(n.symbol,n.members,n.callSignatures,bt(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function G1(n,a){let c;for(let d=n;d;d=d.parent){if(ph(d)&&d.locals&&!Ph(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!zp(d))break;case 267:const _=Ir(d);if(c=a(_?.exports||K,void 0,!0,d))return c;break;case 263:case 231:case 264:let y;if((Ir(d).members||K).forEach((x,k)=>{x.flags&788968&&(y||(y=ca())).set(k,x)}),y&&(c=a(y,void 0,!1,d)))return c;break}}return a(Se,void 0,!0)}function ay(n){return n===111551?111551:1920}function Ib(n,a,c,d,_=new Map){if(!(n&&!D(n)))return;const y=Xi(n),x=y.accessibleChainCache||(y.accessibleChainCache=new Map),k=G1(a,(cn,ar,On,ln)=>ln),z=`${d?0:1}|${k&&as(k)}|${c}`;if(x.has(z))return x.get(z);const H=Ta(n);let re=_.get(H);re||_.set(H,re=[]);const be=G1(a,ge);return x.set(z,be),be;function ge(cn,ar,On){if(!Tf(re,cn))return;const ln=Dt(cn,ar,On);return re.pop(),ln}function Je(cn,ar){return!nE(cn,a,ar)||!!Ib(cn.parent,a,ay(ar),d,_)}function gt(cn,ar,On){return(n===(ar||cn)||rs(n)===rs(ar||cn))&&!bt(cn.declarations,ed)&&(On||Je(rs(cn),c))}function Dt(cn,ar,On){return gt(cn.get(n.escapedName),void 0,ar)?[n]:Gc(cn,zn=>{if(zn.flags&2097152&&zn.escapedName!=="export="&&zn.escapedName!=="default"&&!(D3(zn)&&a&&ac(jn(a)))&&(!d||bt(zn.declarations,_0))&&(!On||!bt(zn.declarations,vie))&&(ar||!fl(zn,281))){const Fn=Fc(zn),er=an(zn,Fn,ar);if(er)return er}if(zn.escapedName===n.escapedName&&zn.exportSymbol&>(rs(zn.exportSymbol),void 0,ar))return[n]})||(cn===Se?an(at,at,ar):void 0)}function an(cn,ar,On){if(gt(cn,ar,On))return[cn];const ln=Np(ar),zn=ln&&ge(ln,!0);if(zn&&Je(cn,ay(c)))return[cn].concat(zn)}}function nE(n,a,c){let d=!1;return G1(a,_=>{let y=rs(_.get(n.escapedName));if(!y)return!1;if(y===n)return!0;const x=y.flags&2097152&&!fl(y,281);return y=x?Fc(y):y,(x?Au(y):y.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(const 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 gi(n,a,788968,!1,!0).accessibility===0}function ht(n,a){return gi(n,a,111551,!1,!0).accessibility===0}function on(n,a,c){return gi(n,a,c,!1,!1).accessibility===0}function wr(n,a,c,d,_,y){if(!Le(n))return;let x,k=!1;for(const z of n){const H=Ib(z,a,d,!1);if(H){x=z;const ge=Pd(H[0],_);if(ge)return ge}if(y&&bt(z.declarations,ed)){if(_){k=!0;continue}return{accessibility:0}}const re=eE(z,a,d),be=wr(re,a,c,c===z?ay(d):d,_,y);if(be)return be}if(k)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:vi(c,a,d),errorModuleName:x!==c?vi(x,a,1920):void 0}}function ki(n,a,c,d){return gi(n,a,c,d,!0)}function gi(n,a,c,d,_){if(n&&a){const y=wr([n],a,n,c,d,_);if(y)return y;const x=Xe(n.declarations,no);if(x){const k=no(a);if(x!==k)return{accessibility:2,errorSymbolName:vi(n,a,c),errorModuleName:vi(x),errorNode:lr(a)?a:void 0}}return{accessibility:1,errorSymbolName:vi(n,a,c)}}return{accessibility:0}}function no(n){const a=Gn(n,ya);return a&&Ir(a)}function ya(n){return ku(n)||n.kind===312&&zp(n)}function ed(n){return k4(n)||n.kind===312&&zp(n)}function Pd(n,a){let c;if(!Zn(nr(n.declarations,y=>y.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(y){var x,k;if(!d_(y)){const z=AT(y);if(z&&!Zr(z,32)&&d_(z.parent))return _(y,z);if(wi(y)&&Ll(y.parent.parent)&&!Zr(y.parent.parent,32)&&d_(y.parent.parent.parent))return _(y,y.parent.parent);if(w4(y)&&!Zr(y,32)&&d_(y.parent))return _(y,y);if(Qa(y)){if(n.flags&2097152&&lr(y)&&((x=y.parent)!=null&&x.parent)&&wi(y.parent.parent)&&((k=y.parent.parent.parent)!=null&&k.parent)&&Ll(y.parent.parent.parent.parent)&&!Zr(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&d_(y.parent.parent.parent.parent.parent))return _(y,y.parent.parent.parent.parent);if(n.flags&2){const H=Gn(y,Ll);return Zr(H,32)?!0:d_(H.parent)?_(y,H):!1}}return!1}return!0}function _(y,x){return a&&(ei(y).isVisible=!0,c=Ng(c,x)),!0}}function Bf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!eg(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 xb(n,a){const c=Bf(n),d=Vp(n),_=bl(a,d.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&JE(d)&&ki(Ir(Fd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:_&&Pd(_,!0)||{accessibility:1,errorSymbolName:pc(d),errorNode:d}}function vi(n,a,c,d=4,_){let y=70221824;d&2&&(y|=128),d&1&&(y|=512),d&8&&(y|=16384),d&32&&(y|=134217728),d&16&&(y|=1073741824);const x=d&4?At.symbolToNode:At.symbolToEntityName;return _?k(_).getText():yC(k);function k(z){const H=x(n,c,a,y),re=a?.kind===312?pJ():h1(),be=a&&jn(a);return re.writeNode(4,H,be,z),z}}function wh(n,a,c=0,d,_){return _?y(_).getText():yC(y);function y(x){let k;c&262144?k=d===1?185:184:k=d===1?180:179;const z=At.signatureToSignatureDeclaration(n,k,a,FT(c)|70221824|512),H=Lw(),re=a&&jn(a);return H.writeNode(4,z,re,Qj(x)),x}}function Un(n,a,c=1064960,d=ok("")){const _=V.noErrorTruncation||c&1,y=At.typeToTypeNode(n,a,FT(c)|70221824|(_?1:0));if(y===void 0)return N.fail("should always get typenode");const x=n!==Vt?h1():dJ(),k=a&&jn(a);x.writeNode(4,y,k,d);const z=d.getText(),H=_?eW*2:Sk*2;return H&&z&&z.length>=H?z.substr(0,H-3)+"...":z}function dx(n,a){let c=Db(n.symbol)?Un(n,n.symbol.valueDeclaration):Un(n),d=Db(a.symbol)?Un(a,a.symbol.valueDeclaration):Un(a);return c===d&&(c=Rb(n),d=Rb(a)),[c,d]}function Rb(n){return Un(n,void 0,64)}function Db(n){return n&&!!n.valueDeclaration&&vt(n.valueDeclaration)&&!Uf(n.valueDeclaration)}function FT(n=0){return n&848330095}function V1(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Vf(n.symbol)||!!(n.flags&524288)&&!!(Or(n)&16777216))}function X_(){return{typeToTypeNode:(ut,Ae,Ln,Pr)=>a(Ae,Ln,Pr,di=>d(ut,di)),indexInfoToIndexSignatureDeclaration:(ut,Ae,Ln,Pr)=>a(Ae,Ln,Pr,di=>re(ut,di,void 0)),signatureToSignatureDeclaration:(ut,Ae,Ln,Pr,di)=>a(Ln,Pr,di,Si=>be(ut,Ae,Si)),symbolToEntityName:(ut,Ae,Ln,Pr,di)=>a(Ln,Pr,di,Si=>_o(ut,Si,Ae,!1)),symbolToExpression:(ut,Ae,Ln,Pr,di)=>a(Ln,Pr,di,Si=>Cc(ut,Si,Ae)),symbolToTypeParameterDeclarations:(ut,Ae,Ln,Pr)=>a(Ae,Ln,Pr,di=>zn(ut,di)),symbolToParameterDeclaration:(ut,Ae,Ln,Pr)=>a(Ae,Ln,Pr,di=>an(ut,di)),typeParameterToDeclaration:(ut,Ae,Ln,Pr)=>a(Ae,Ln,Pr,di=>gt(ut,di)),symbolTableToDeclarationStatements:(ut,Ae,Ln,Pr,di)=>a(Ae,Ln,Pr,Si=>El(ut,Si,di)),symbolToNode:(ut,Ae,Ln,Pr,di)=>a(Ln,Pr,di,Si=>n(ut,Si,Ae))};function n(ut,Ae,Ln){if(Ae.flags&1073741824){if(ut.valueDeclaration){const di=Mo(ut.valueDeclaration);if(di&&Za(di))return di}const Pr=Xi(ut).nameType;if(Pr&&Pr.flags&9216)return Ae.enclosingDeclaration=Pr.symbol.valueDeclaration,w.createComputedPropertyName(Cc(Pr.symbol,Ae,Ln))}return Cc(ut,Ae,Ln)}function a(ut,Ae,Ln,Pr){N.assert(ut===void 0||(ut.flags&16)===0);const di=Ln?.trackSymbol?Ln.moduleResolverHost:Ae&134217728?dje(e):void 0,Si={enclosingDeclaration:ut,flags:Ae||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Si.tracker=new Fq(Si,Ln,di);const Ti=Pr(Si);return Si.truncating&&Si.flags&1&&Si.tracker.reportTruncationError(),Si.encounteredError?void 0:Ti}function c(ut){return ut.truncating?ut.truncating:ut.truncating=ut.approximateLength>(ut.flags&1?eW:Sk)}function d(ut,Ae){const Ln=Ae.flags,Pr=_(ut,Ae);return Ae.flags=Ln,Pr}function _(ut,Ae){var Ln,Pr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const di=Ae.flags&8388608;if(Ae.flags&=-8388609,!ut){if(!(Ae.flags&262144)){Ae.encounteredError=!0;return}return Ae.approximateLength+=3,w.createKeywordTypeNode(133)}if(Ae.flags&536870912||(ut=h_(ut)),ut.flags&1)return ut.aliasSymbol?w.createTypeReferenceNode(tr(ut.aliasSymbol),z(ut.aliasTypeArguments,Ae)):ut===Vt?pP(w.createKeywordTypeNode(133),3,"unresolved"):(Ae.approximateLength+=3,w.createKeywordTypeNode(ut===pn?141:133));if(ut.flags&2)return w.createKeywordTypeNode(159);if(ut.flags&4)return Ae.approximateLength+=6,w.createKeywordTypeNode(154);if(ut.flags&8)return Ae.approximateLength+=6,w.createKeywordTypeNode(150);if(ut.flags&64)return Ae.approximateLength+=6,w.createKeywordTypeNode(163);if(ut.flags&16&&!ut.aliasSymbol)return Ae.approximateLength+=7,w.createKeywordTypeNode(136);if(ut.flags&1056){if(ut.symbol.flags&8){const Nn=Cd(ut.symbol),ni=Ro(Nn,Ae,788968);if(el(Nn)===ut)return ni;const Zi=Sl(ut.symbol);return tf(Zi,0)?Li(ni,w.createTypeReferenceNode(Zi,void 0)):cg(ni)?(ni.isTypeOf=!0,w.createIndexedAccessTypeNode(ni,w.createLiteralTypeNode(w.createStringLiteral(Zi)))):Cf(ni)?w.createIndexedAccessTypeNode(w.createTypeQueryNode(ni.typeName),w.createLiteralTypeNode(w.createStringLiteral(Zi))):N.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ro(ut.symbol,Ae,788968)}if(ut.flags&128)return Ae.approximateLength+=ut.value.length+2,w.createLiteralTypeNode(pr(w.createStringLiteral(ut.value,!!(Ae.flags&268435456)),16777216));if(ut.flags&256){const Nn=ut.value;return Ae.approximateLength+=(""+Nn).length,w.createLiteralTypeNode(Nn<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Nn)):w.createNumericLiteral(Nn))}if(ut.flags&2048)return Ae.approximateLength+=YE(ut.value).length+1,w.createLiteralTypeNode(w.createBigIntLiteral(ut.value));if(ut.flags&512)return Ae.approximateLength+=ut.intrinsicName.length,w.createLiteralTypeNode(ut.intrinsicName==="true"?w.createTrue():w.createFalse());if(ut.flags&8192){if(!(Ae.flags&1048576)){if(ht(ut.symbol,Ae.enclosingDeclaration))return Ae.approximateLength+=6,Ro(ut.symbol,Ae,111551);Ae.tracker.reportInaccessibleUniqueSymbolError&&Ae.tracker.reportInaccessibleUniqueSymbolError()}return Ae.approximateLength+=13,w.createTypeOperatorNode(158,w.createKeywordTypeNode(155))}if(ut.flags&16384)return Ae.approximateLength+=4,w.createKeywordTypeNode(116);if(ut.flags&32768)return Ae.approximateLength+=9,w.createKeywordTypeNode(157);if(ut.flags&65536)return Ae.approximateLength+=4,w.createLiteralTypeNode(w.createNull());if(ut.flags&131072)return Ae.approximateLength+=5,w.createKeywordTypeNode(146);if(ut.flags&4096)return Ae.approximateLength+=6,w.createKeywordTypeNode(155);if(ut.flags&67108864)return Ae.approximateLength+=6,w.createKeywordTypeNode(151);if(iP(ut))return Ae.flags&4194304&&(!Ae.encounteredError&&!(Ae.flags&32768)&&(Ae.encounteredError=!0),(Pr=(Ln=Ae.tracker).reportInaccessibleThisError)==null||Pr.call(Ln)),Ae.approximateLength+=4,w.createThisTypeNode();if(!di&&ut.aliasSymbol&&(Ae.flags&16384||ae(ut.aliasSymbol,Ae.enclosingDeclaration))){const Nn=z(ut.aliasTypeArguments,Ae);return z1(ut.aliasSymbol.escapedName)&&!(ut.aliasSymbol.flags&32)?w.createTypeReferenceNode(w.createIdentifier(""),Nn):Le(Nn)===1&&ut.aliasSymbol===Qo.symbol?w.createArrayTypeNode(Nn[0]):Ro(ut.aliasSymbol,Ae,788968,Nn)}const Si=Or(ut);if(Si&4)return N.assert(!!(ut.flags&524288)),ut.node?Ht(ut,Wn):Wn(ut);if(ut.flags&262144||Si&3){if(ut.flags&262144&&Nr(Ae.inferTypeParameters,ut)){Ae.approximateLength+=Sl(ut.symbol).length+6;let ni;const Zi=Md(ut);if(Zi){const fo=g8e(ut,!0);fo&&_y(Zi,fo)||(Ae.approximateLength+=9,ni=Zi&&d(Zi,Ae))}return w.createInferTypeNode(Je(ut,Ae,ni))}if(Ae.flags&4&&ut.flags&262144){const ni=Bo(ut,Ae);return Ae.approximateLength+=Sr(ni).length,w.createTypeReferenceNode(w.createIdentifier(Sr(ni)),void 0)}if(ut.symbol)return Ro(ut.symbol,Ae,788968);const Nn=(ut===de||ut===ee)&&O&&O.symbol?(ut===ee?"sub-":"super-")+Sl(O.symbol):"?";return w.createTypeReferenceNode(w.createIdentifier(Nn),void 0)}if(ut.flags&1048576&&ut.origin&&(ut=ut.origin),ut.flags&3145728){const Nn=ut.flags&1048576?hN(ut.types):ut.types;if(Le(Nn)===1)return d(Nn[0],Ae);const ni=z(Nn,Ae,!0);if(ni&&ni.length>0)return ut.flags&1048576?w.createUnionTypeNode(ni):w.createIntersectionTypeNode(ni);!Ae.encounteredError&&!(Ae.flags&262144)&&(Ae.encounteredError=!0);return}if(Si&48)return N.assert(!!(ut.flags&524288)),dn(ut);if(ut.flags&4194304){const Nn=ut.type;Ae.approximateLength+=6;const ni=d(Nn,Ae);return w.createTypeOperatorNode(143,ni)}if(ut.flags&134217728){const Nn=ut.texts,ni=ut.types,Zi=w.createTemplateHead(Nn[0]),fo=w.createNodeArray(Ot(ni,(Sa,bc)=>w.createTemplateLiteralTypeSpan(d(Sa,Ae),(bcTi(Nn));if(ut.flags&33554432){const Nn=d(ut.baseType,Ae),ni=UM(ut)&&Nge("NoInfer",!1);return ni?Ro(ni,Ae,788968,[Nn]):Nn}return N.fail("Should be unreachable.");function Ti(Nn){const ni=d(Nn.checkType,Ae);if(Ae.approximateLength+=15,Ae.flags&4&&Nn.root.isDistributive&&!(Nn.checkType.flags&262144)){const ks=vf(Xa(262144,"T")),Ns=Bo(ks,Ae),Du=w.createTypeReferenceNode(Ns);Ae.approximateLength+=37;const Ks=$T(Nn.root.checkType,ks,Nn.mapper),E_=Ae.inferTypeParameters;Ae.inferTypeParameters=Nn.root.inferTypeParameters;const rt=d(so(Nn.root.extendsType,Ks),Ae);Ae.inferTypeParameters=E_;const St=Ur(so(bi(Nn.root.node.trueType),Ks)),Zt=Ur(so(bi(Nn.root.node.falseType),Ks));return w.createConditionalTypeNode(ni,w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(Du.typeName))),w.createConditionalTypeNode(w.createTypeReferenceNode(w.cloneNode(Ns)),d(Nn.checkType,Ae),w.createConditionalTypeNode(Du,rt,St,Zt),w.createKeywordTypeNode(146)),w.createKeywordTypeNode(146))}const Zi=Ae.inferTypeParameters;Ae.inferTypeParameters=Nn.root.inferTypeParameters;const fo=d(Nn.extendsType,Ae);Ae.inferTypeParameters=Zi;const Sa=Ur(pE(Nn)),bc=Ur(fE(Nn));return w.createConditionalTypeNode(ni,fo,Sa,bc)}function Ur(Nn){var ni,Zi,fo;return Nn.flags&1048576?(ni=Ae.visitedTypes)!=null&&ni.has(vd(Nn))?(Ae.flags&131072||(Ae.encounteredError=!0,(fo=(Zi=Ae.tracker)==null?void 0:Zi.reportCyclicStructureError)==null||fo.call(Zi)),y(Ae)):Ht(Nn,Sa=>d(Sa,Ae)):d(Nn,Ae)}function xr(Nn){return!!C8(Nn)}function lt(Nn){return!!Nn.target&&xr(Nn.target)&&!xr(Nn)}function wt(Nn){var ni;N.assert(!!(Nn.flags&524288));const Zi=Nn.declaration.readonlyToken?w.createToken(Nn.declaration.readonlyToken.kind):void 0,fo=Nn.declaration.questionToken?w.createToken(Nn.declaration.questionToken.kind):void 0;let Sa,bc;const ks=!TN(Nn)&&!(VT(Nn).flags&2)&&Ae.flags&4&&!(Ef(Nn).flags&262144&&((ni=Md(Ef(Nn)))==null?void 0:ni.flags)&4194304);if(TN(Nn)){if(lt(Nn)&&Ae.flags&4){const St=vf(Xa(262144,"T")),Zt=Bo(St,Ae);bc=w.createTypeReferenceNode(Zt)}Sa=w.createTypeOperatorNode(143,bc||d(VT(Nn),Ae))}else if(ks){const St=vf(Xa(262144,"T")),Zt=Bo(St,Ae);bc=w.createTypeReferenceNode(Zt),Sa=bc}else Sa=d(Ef(Nn),Ae);const Ns=Je(m_(Nn),Ae,Sa),Du=Nn.declaration.nameType?d(pv(Nn),Ae):void 0,Ks=d(Jb(dy(Nn),!!(zh(Nn)&4)),Ae),E_=w.createMappedTypeNode(Zi,Ns,Du,fo,Ks,void 0);Ae.approximateLength+=10;const rt=pr(E_,1);if(lt(Nn)&&Ae.flags&4){const St=so(Md(bi(Nn.declaration.typeParameter.constraint.type))||_n,Nn.mapper);return w.createConditionalTypeNode(d(VT(Nn),Ae),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(bc.typeName),St.flags&2?void 0:d(St,Ae))),rt,w.createKeywordTypeNode(146))}else if(ks)return w.createConditionalTypeNode(d(Ef(Nn),Ae),w.createInferTypeNode(w.createTypeParameterDeclaration(void 0,w.cloneNode(bc.typeName),w.createTypeOperatorNode(143,d(VT(Nn),Ae)))),rt,w.createKeywordTypeNode(146));return rt}function dn(Nn){var ni,Zi;const fo=Nn.id,Sa=Nn.symbol;if(Sa){if(!!(Or(Nn)&8388608)){const Ks=Nn.node;if(aI(Ks)&&bi(Ks)===Nn){const E_=Wl(Ae,Ks);if(E_)return E_}return(ni=Ae.visitedTypes)!=null&&ni.has(fo)?y(Ae):Ht(Nn,fn)}const Ns=V1(Nn)?788968:111551;if(nh(Sa.valueDeclaration))return Ro(Sa,Ae,Ns);if(Sa.flags&32&&!AZ(Sa)&&!(Sa.valueDeclaration&&ui(Sa.valueDeclaration)&&Ae.flags&2048&&(!Ic(Sa.valueDeclaration)||ki(Sa,Ae.enclosingDeclaration,Ns,!1).accessibility!==0))||Sa.flags&896||bc())return Ro(Sa,Ae,Ns);if((Zi=Ae.visitedTypes)!=null&&Zi.has(fo)){const Du=Zz(Nn);return Du?Ro(Du,Ae,788968):y(Ae)}else return Ht(Nn,fn)}else return fn(Nn);function bc(){var ks;const Ns=!!(Sa.flags&8192)&&bt(Sa.declarations,Ks=>aa(Ks)),Du=!!(Sa.flags&16)&&(Sa.parent||Xe(Sa.declarations,Ks=>Ks.parent.kind===312||Ks.parent.kind===268));if(Ns||Du)return(!!(Ae.flags&4096)||((ks=Ae.visitedTypes)==null?void 0:ks.has(fo)))&&(!(Ae.flags&8)||ht(Sa,Ae.enclosingDeclaration))}}function Ht(Nn,ni){var Zi,fo,Sa;const bc=Nn.id,ks=Or(Nn)&16&&Nn.symbol&&Nn.symbol.flags&32,Ns=Or(Nn)&4&&Nn.node?"N"+as(Nn.node):Nn.flags&16777216?"N"+as(Nn.root.node):Nn.symbol?(ks?"+":"")+Ta(Nn.symbol):void 0;Ae.visitedTypes||(Ae.visitedTypes=new Set),Ns&&!Ae.symbolDepth&&(Ae.symbolDepth=new Map);const Du=Ae.enclosingDeclaration&&ei(Ae.enclosingDeclaration),Ks=`${vd(Nn)}|${Ae.flags}`;Du&&(Du.serializedTypes||(Du.serializedTypes=new Map));const E_=(Zi=Du?.serializedTypes)==null?void 0:Zi.get(Ks);if(E_)return(fo=E_.trackedSymbols)==null||fo.forEach(([Hr,zi,Fo])=>Ae.tracker.trackSymbol(Hr,zi,Fo)),E_.truncating&&(Ae.truncating=!0),Ae.approximateLength+=E_.addedLength,Tn(E_.node);let rt;if(Ns){if(rt=Ae.symbolDepth.get(Ns)||0,rt>10)return y(Ae);Ae.symbolDepth.set(Ns,rt+1)}Ae.visitedTypes.add(bc);const St=Ae.trackedSymbols;Ae.trackedSymbols=void 0;const Zt=Ae.approximateLength,Kn=ni(Nn),Rr=Ae.approximateLength-Zt;return!Ae.reportedDiagnostic&&!Ae.encounteredError&&((Sa=Du?.serializedTypes)==null||Sa.set(Ks,{node:Kn,truncating:Ae.truncating,addedLength:Rr,trackedSymbols:Ae.trackedSymbols})),Ae.visitedTypes.delete(bc),Ns&&Ae.symbolDepth.set(Ns,rt),Ae.trackedSymbols=St,Kn;function Tn(Hr){return!$s(Hr)&&Do(Hr)===Hr?Hr:dt(w.cloneNode(In(Hr,Tn,void 0,gr)),Hr)}function gr(Hr,zi,Fo,_a,ha){return Hr&&Hr.length===0?dt(w.createNodeArray(void 0,Hr.hasTrailingComma),Hr):Vn(Hr,zi,Fo,_a,ha)}}function fn(Nn){if(Kd(Nn)||Nn.containsError)return wt(Nn);const ni=__(Nn);if(!ni.properties.length&&!ni.indexInfos.length){if(!ni.callSignatures.length&&!ni.constructSignatures.length)return Ae.approximateLength+=2,pr(w.createTypeLiteralNode(void 0),1);if(ni.callSignatures.length===1&&!ni.constructSignatures.length){const ks=ni.callSignatures[0];return be(ks,184,Ae)}if(ni.constructSignatures.length===1&&!ni.callSignatures.length){const ks=ni.constructSignatures[0];return be(ks,185,Ae)}}const Zi=nr(ni.constructSignatures,ks=>!!(ks.flags&4));if(bt(Zi)){const ks=Ot(Zi,qT);return ni.callSignatures.length+(ni.constructSignatures.length-Zi.length)+ni.indexInfos.length+(Ae.flags&2048?au(ni.properties,Du=>!(Du.flags&4194304)):Le(ni.properties))&&ks.push(B1(ni)),d(ba(ks),Ae)}const fo=Ae.flags;Ae.flags|=4194304;const Sa=Go(ni);Ae.flags=fo;const bc=w.createTypeLiteralNode(Sa);return Ae.approximateLength+=2,pr(bc,Ae.flags&1024?0:1),bc}function Wn(Nn){let ni=Js(Nn);if(Nn.target===Qo||Nn.target===na){if(Ae.flags&2){const Sa=d(ni[0],Ae);return w.createTypeReferenceNode(Nn.target===Qo?"Array":"ReadonlyArray",[Sa])}const Zi=d(ni[0],Ae),fo=w.createArrayTypeNode(Zi);return Nn.target===Qo?fo:w.createTypeOperatorNode(148,fo)}else if(Nn.target.objectFlags&8){if(ni=eo(ni,(Zi,fo)=>Jb(Zi,!!(Nn.target.elementFlags[fo]&2))),ni.length>0){const Zi=mv(Nn),fo=z(ni.slice(0,Zi),Ae);if(fo){const{labeledElementDeclarations:Sa}=Nn.target;for(let ks=0;ks0){const Du=(Nn.target.typeParameters||et).length;bc=z(ni.slice(fo,Du),Ae)}const ks=Ae.flags;Ae.flags|=16;const Ns=Ro(Nn.symbol,Ae,788968,bc);return Ae.flags=ks,Sa?Li(Sa,Ns):Ns}}}function Li(Nn,ni){if(cg(Nn)){let Zi=Nn.typeArguments,fo=Nn.qualifier;fo&&(Ve(fo)?Zi!==WS(fo)&&(fo=Uy(w.cloneNode(fo),Zi)):Zi!==WS(fo.right)&&(fo=w.updateQualifiedName(fo,fo.left,Uy(w.cloneNode(fo.right),Zi)))),Zi=ni.typeArguments;const Sa=zr(ni);for(const bc of Sa)fo=fo?w.createQualifiedName(fo,bc):bc;return w.updateImportTypeNode(Nn,Nn.argument,Nn.attributes,fo,Zi,Nn.isTypeOf)}else{let Zi=Nn.typeArguments,fo=Nn.typeName;Ve(fo)?Zi!==WS(fo)&&(fo=Uy(w.cloneNode(fo),Zi)):Zi!==WS(fo.right)&&(fo=w.updateQualifiedName(fo,fo.left,Uy(w.cloneNode(fo.right),Zi))),Zi=ni.typeArguments;const Sa=zr(ni);for(const bc of Sa)fo=w.createQualifiedName(fo,bc);return w.updateTypeReferenceNode(Nn,fo,Zi)}}function zr(Nn){let ni=Nn.typeName;const Zi=[];for(;!Ve(ni);)Zi.unshift(ni.right),ni=ni.left;return Zi.unshift(ni),Zi}function Go(Nn){if(c(Ae))return[w.createPropertySignature(void 0,"...",void 0,void 0)];const ni=[];for(const Sa of Nn.callSignatures)ni.push(be(Sa,179,Ae));for(const Sa of Nn.constructSignatures)Sa.flags&4||ni.push(be(Sa,180,Ae));for(const Sa of Nn.indexInfos)ni.push(re(Sa,Ae,Nn.objectFlags&1024?y(Ae):void 0));const Zi=Nn.properties;if(!Zi)return ni;let fo=0;for(const Sa of Zi){if(fo++,Ae.flags&2048){if(Sa.flags&4194304)continue;Df(Sa)&6&&Ae.tracker.reportPrivateInBaseOfClassExpression&&Ae.tracker.reportPrivateInBaseOfClassExpression(Vi(Sa.escapedName))}if(c(Ae)&&fo+2!(Wn.flags&32768)),0);for(const Wn of fn){const Li=be(Wn,173,Ae,{name:Ur,questionToken:xr});Ln.push(Ht(Li))}if(fn.length||!xr)return}let lt;x(ut,Ae)?lt=y(Ae):(di&&(Ae.reverseMappedStack||(Ae.reverseMappedStack=[]),Ae.reverseMappedStack.push(ut)),lt=Si?Ts(Ae,Si,ut,Ti):w.createKeywordTypeNode(133),di&&Ae.reverseMappedStack.pop());const wt=b_(ut)?[w.createToken(148)]:void 0;wt&&(Ae.approximateLength+=9);const dn=w.createPropertySignature(wt,Ur,xr,lt);Ln.push(Ht(dn));function Ht(fn){var Wn;const Li=(Wn=ut.declarations)==null?void 0:Wn.find(zr=>zr.kind===355);if(Li){const zr=aL(Li.comment);zr&&A0(fn,[{kind:3,text:`* * `+zr.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ut.valueDeclaration&&oc(fn,ut.valueDeclaration);return fn}}function z(ut,Ae,Ln){if(bt(ut)){if(c(Ae))if(Ln){if(ut.length>2)return[d(ut[0],Ae),w.createTypeReferenceNode(`... ${ut.length-2} more ...`,void 0),d(ut[ut.length-1],Ae)]}else return[w.createTypeReferenceNode("...",void 0)];const di=!(Ae.flags&64)?Zp():void 0,Si=[];let Ti=0;for(const Ur of ut){if(Ti++,c(Ae)&&Ti+2{if(!koe(xr,([lt],[wt])=>H(lt,wt)))for(const[lt,wt]of xr)Si[wt]=d(lt,Ae)}),Ae.flags=Ur}return Si}}function H(ut,Ae){return ut===Ae||!!ut.symbol&&ut.symbol===Ae.symbol||!!ut.aliasSymbol&&ut.aliasSymbol===Ae.aliasSymbol}function re(ut,Ae,Ln){const Pr=tie(ut)||"x",di=d(ut.keyType,Ae),Si=w.createParameterDeclaration(void 0,void 0,Pr,void 0,di,void 0);return Ln||(Ln=d(ut.type||j,Ae)),!ut.type&&!(Ae.flags&2097152)&&(Ae.encounteredError=!0),Ae.approximateLength+=Pr.length+4,w.createIndexSignature(ut.isReadonly?[w.createToken(148)]:void 0,[Si],Ln)}function be(ut,Ae,Ln,Pr){var di;const Si=Ln.flags&256;Si&&(Ln.flags&=-257),Ln.approximateLength+=3;let Ti,Ur;Ln.flags&32&&ut.target&&ut.mapper&&ut.target.typeParameters?Ur=ut.target.typeParameters.map(zr=>d(so(zr,ut.mapper),Ln)):Ti=ut.typeParameters&&ut.typeParameters.map(zr=>gt(zr,Ln));const xr=JOe(ut,!0)[0];let lt;if(Ln.enclosingDeclaration&&ut.declaration&&ut.declaration!==Ln.enclosingDeclaration&&!lr(ut.declaration)&&(bt(xr)||bt(ut.typeParameters))){let zr=function(Go,Nn){N.assert(Ln.enclosingDeclaration);let ni;ei(Ln.enclosingDeclaration).fakeScopeForSignatureDeclaration===Go?ni=Ln.enclosingDeclaration:Ln.enclosingDeclaration.parent&&ei(Ln.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===Go&&(ni=Ln.enclosingDeclaration.parent),N.assertOptionalNode(ni,Xo);const Zi=ni?.locals??ca();let fo;if(Nn((ks,Ns)=>{Zi.has(ks)||(fo=xn(fo,ks),Zi.set(ks,Ns))}),!fo)return;const Sa=lt;function bc(){Xe(fo,ks=>Zi.delete(ks)),Sa?.()}if(ni)lt=bc;else{const ks=Ah.createBlock(et);ei(ks).fakeScopeForSignatureDeclaration=Go,ks.locals=Zi;const Ns=Ln.enclosingDeclaration;qa(ks,Ns),Ln.enclosingDeclaration=ks,lt=()=>{Ln.enclosingDeclaration=Ns,bc()}}};zr("params",Go=>{for(const Nn of xr)Go(Nn.escapedName,Nn)}),Ln.flags&4&&zr("typeParams",Go=>{for(const Nn of ut.typeParameters??et){const ni=Bo(Nn,Ln).escapedText;Go(ni,Nn.symbol)}})}const wt=(bt(xr,zr=>zr!==xr[xr.length-1]&&!!(xl(zr)&32768))?ut.parameters:xr).map(zr=>an(zr,Ln,Ae===176,Pr?.privateSymbolVisitor,Pr?.bundledImports)),dn=Ln.flags&33554432?void 0:ge(ut,Ln);dn&&wt.unshift(dn);let Ht;const fn=jf(ut);if(fn){const zr=fn.kind===2||fn.kind===3?w.createToken(131):void 0,Go=fn.kind===1||fn.kind===3?pr(w.createIdentifier(fn.parameterName),16777216):w.createThisTypeNode(),Nn=fn.type&&d(fn.type,Ln);Ht=w.createTypePredicateNode(zr,Go,Nn)}else{const zr=ps(ut);zr&&!(Si&&Nt(zr))?Ht=Ga(Ln,zr,ut,Pr?.privateSymbolVisitor,Pr?.bundledImports):Si||(Ht=w.createKeywordTypeNode(133))}let Wn=Pr?.modifiers;if(Ae===185&&ut.flags&4){const zr=M_(Wn);Wn=w.createModifiersFromModifierFlags(zr|64)}const Li=Ae===179?w.createCallSignature(Ti,wt,Ht):Ae===180?w.createConstructSignature(Ti,wt,Ht):Ae===173?w.createMethodSignature(Wn,Pr?.name??w.createIdentifier(""),Pr?.questionToken,Ti,wt,Ht):Ae===174?w.createMethodDeclaration(Wn,void 0,Pr?.name??w.createIdentifier(""),void 0,Ti,wt,Ht,void 0):Ae===176?w.createConstructorDeclaration(Wn,wt,void 0):Ae===177?w.createGetAccessorDeclaration(Wn,Pr?.name??w.createIdentifier(""),wt,Ht,void 0):Ae===178?w.createSetAccessorDeclaration(Wn,Pr?.name??w.createIdentifier(""),wt,void 0):Ae===181?w.createIndexSignature(Wn,wt,Ht):Ae===324?w.createJSDocFunctionType(wt,Ht):Ae===184?w.createFunctionTypeNode(Ti,wt,Ht??w.createTypeReferenceNode(w.createIdentifier(""))):Ae===185?w.createConstructorTypeNode(Wn,Ti,wt,Ht??w.createTypeReferenceNode(w.createIdentifier(""))):Ae===262?w.createFunctionDeclaration(Wn,void 0,Pr?.name?oa(Pr.name,Ve):w.createIdentifier(""),Ti,wt,Ht,void 0):Ae===218?w.createFunctionExpression(Wn,void 0,Pr?.name?oa(Pr.name,Ve):w.createIdentifier(""),Ti,wt,Ht,w.createBlock([])):Ae===219?w.createArrowFunction(Wn,Ti,wt,Ht,void 0,w.createBlock([])):N.assertNever(Ae);if(Ur&&(Li.typeArguments=w.createNodeArray(Ur)),((di=ut.declaration)==null?void 0:di.kind)===330&&ut.declaration.parent.kind===346){const zr=pc(ut.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Go=>Go.replace(/^\s+/," ")).join(` `);pP(Li,3,zr,!0)}return lt?.(),Li}function ge(ut,Ae){if(ut.thisParameter)return an(ut.thisParameter,Ae);if(ut.declaration&&lr(ut.declaration)){const Ln=u4(ut.declaration);if(Ln&&Ln.typeExpression)return w.createParameterDeclaration(void 0,void 0,"this",void 0,d(bi(Ln.typeExpression),Ae))}}function Je(ut,Ae,Ln){const Pr=Ae.flags;Ae.flags&=-513;const di=w.createModifiersFromModifierFlags(dye(ut)),Si=Bo(ut,Ae),Ti=HT(ut),Ur=Ti&&d(Ti,Ae);return Ae.flags=Pr,w.createTypeParameterDeclaration(di,Si,Ln,Ur)}function gt(ut,Ae,Ln=Md(ut)){const Pr=Ln&&d(Ln,Ae);return Je(ut,Ae,Pr)}function Dt(ut){const Ae=fl(ut,169);if(Ae)return Ae;if(!fh(ut))return fl(ut,348)}function an(ut,Ae,Ln,Pr,di){const Si=Dt(ut);let Ti=dr(ut);Si&&OFe(Si)&&(Ti=qb(Ti));const Ur=Ts(Ae,Ti,ut,Ae.enclosingDeclaration,Pr,di),xr=!(Ae.flags&8192)&&Ln&&Si&&Cm(Si)?Ot(PE(Si),w.cloneNode):void 0,wt=Si&&Qh(Si)||xl(ut)&32768?w.createToken(26):void 0,dn=cn(ut,Si,Ae),fn=Si&&S8(Si)||xl(ut)&16384?w.createToken(58):void 0,Wn=w.createParameterDeclaration(xr,wt,dn,fn,Ur,void 0);return Ae.approximateLength+=Sl(ut).length+3,Wn}function cn(ut,Ae,Ln){return Ae&&Ae.name?Ae.name.kind===80?pr(w.cloneNode(Ae.name),16777216):Ae.name.kind===166?pr(w.cloneNode(Ae.name.right),16777216):Pr(Ae.name):Sl(ut);function Pr(di){return Si(di);function Si(Ti){Ln.tracker.canTrackSymbol&&Za(Ti)&&Zhe(Ti)&&ar(Ti.expression,Ln.enclosingDeclaration,Ln);let Ur=In(Ti,Si,void 0,void 0,Si);return Qa(Ur)&&(Ur=w.updateBindingElement(Ur,Ur.dotDotDotToken,Ur.propertyName,Ur.name,void 0)),$s(Ur)||(Ur=w.cloneNode(Ur)),pr(Ur,16777217)}}}function ar(ut,Ae,Ln){if(!Ln.tracker.canTrackSymbol)return;const Pr=Vp(ut),di=bl(Pr,Pr.escapedText,1160127,void 0,void 0,!0);di&&Ln.tracker.trackSymbol(di,Ae,111551)}function On(ut,Ae,Ln,Pr){return Ae.tracker.trackSymbol(ut,Ae.enclosingDeclaration,Ln),ln(ut,Ae,Ln,Pr)}function ln(ut,Ae,Ln,Pr){let di;return!(ut.flags&262144)&&(Ae.enclosingDeclaration||Ae.flags&64)&&!(Ae.flags&134217728)?(di=N.checkDefined(Ti(ut,Ln,!0)),N.assert(di&&di.length>0)):di=[ut],di;function Ti(Ur,xr,lt){let wt=Ib(Ur,Ae.enclosingDeclaration,xr,!!(Ae.flags&128)),dn;if(!wt||nE(wt[0],Ae.enclosingDeclaration,wt.length===1?xr:ay(xr))){const fn=eE(wt?wt[0]:Ur,Ae.enclosingDeclaration,xr);if(Le(fn)){dn=fn.map(zr=>bt(zr.declarations,ed)?qn(zr,Ae):void 0);const Wn=fn.map((zr,Go)=>Go);Wn.sort(Ht);const Li=Wn.map(zr=>fn[zr]);for(const zr of Li){const Go=Ti(zr,ay(xr),!1);if(Go){if(zr.exports&&zr.exports.get("export=")&&u_(zr.exports.get("export="),Ur)){wt=Go;break}wt=Go.concat(wt||[bg(zr,Ur)||Ur]);break}}}}if(wt)return wt;if(lt||!(Ur.flags&6144))return!lt&&!Pr&&Xe(Ur.declarations,ed)?void 0:[Ur];function Ht(fn,Wn){const Li=dn[fn],zr=dn[Wn];if(Li&&zr){const Go=Wp(zr);return Wp(Li)===Go?wF(Li)-wF(zr):Go?-1:1}return 0}}}function zn(ut,Ae){let Ln;return BN(ut).flags&524384&&(Ln=w.createNodeArray(Ot(Lr(ut),di=>gt(di,Ae)))),Ln}function Fn(ut,Ae,Ln){var Pr;N.assert(ut&&0<=Ae&&AeVb(wt,xr.links.mapper)),Ln)}else Ti=zn(di,Ln)}return Ti}function er(ut){return GS(ut.objectType)?er(ut.objectType):ut}function qn(ut,Ae,Ln){let Pr=fl(ut,312);if(!Pr){const lt=qt(ut.declarations,wt=>OT(wt,ut));lt&&(Pr=fl(lt,312))}if(Pr&&Pr.moduleName!==void 0)return Pr.moduleName;if(!Pr){if(Ae.tracker.trackReferencedAmbientModule){const lt=nr(ut.declarations,ku);if(Le(lt))for(const wt of lt)Ae.tracker.trackReferencedAmbientModule(wt,ut)}if(Oq.test(ut.escapedName))return ut.escapedName.substring(1,ut.escapedName.length-1)}if(!Ae.enclosingDeclaration||!Ae.tracker.moduleResolverHost)return Oq.test(ut.escapedName)?ut.escapedName.substring(1,ut.escapedName.length-1):jn(pj(ut)).fileName;const di=jn(Pl(Ae.enclosingDeclaration)),Si=Ln||di?.impliedNodeFormat,Ti=OP(di.path,Si),Ur=Xi(ut);let xr=Ur.specifierCache&&Ur.specifierCache.get(Ti);if(!xr){const lt=!!Ps(V),{moduleResolverHost:wt}=Ae.tracker,dn=lt?{...V,baseUrl:wt.getCommonSourceDirectory()}:V;xr=Ha(HIe(ut,Qt,dn,di,wt,{importModuleSpecifierPreference:lt?"non-relative":"project-relative",importModuleSpecifierEnding:lt?"minimal":Si===99?"js":void 0},{overrideImportMode:Ln})),Ur.specifierCache??(Ur.specifierCache=new Map),Ur.specifierCache.set(Ti,xr)}return xr}function tr(ut){const Ae=w.createIdentifier(Vi(ut.escapedName));return ut.parent?w.createQualifiedName(tr(ut.parent),Ae):Ae}function Ro(ut,Ae,Ln,Pr){const di=On(ut,Ae,Ln,!(Ae.flags&16384)),Si=Ln===111551;if(bt(di[0].declarations,ed)){const xr=di.length>1?Ur(di,di.length-1,1):void 0,lt=Pr||Fn(di,0,Ae),wt=jn(Pl(Ae.enclosingDeclaration)),dn=C4(di[0]);let Ht,fn;if((fd(V)===3||fd(V)===99)&&dn?.impliedNodeFormat===99&&dn.impliedNodeFormat!==wt?.impliedNodeFormat&&(Ht=qn(di[0],Ae,99),fn=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral("import"))]))),Ht||(Ht=qn(di[0],Ae)),!(Ae.flags&67108864)&&fd(V)!==1&&Ht.includes("/node_modules/")){const Li=Ht;if(fd(V)===3||fd(V)===99){const zr=wt?.impliedNodeFormat===99?1:99;Ht=qn(di[0],Ae,zr),Ht.includes("/node_modules/")?Ht=Li:fn=w.createImportAttributes(w.createNodeArray([w.createImportAttribute(w.createStringLiteral("resolution-mode"),w.createStringLiteral(zr===99?"import":"require"))]))}fn||(Ae.encounteredError=!0,Ae.tracker.reportLikelyUnsafeImportRequiredError&&Ae.tracker.reportLikelyUnsafeImportRequiredError(Li))}const Wn=w.createLiteralTypeNode(w.createStringLiteral(Ht));if(Ae.tracker.trackExternalModuleSymbolOfImportTypeNode&&Ae.tracker.trackExternalModuleSymbolOfImportTypeNode(di[0]),Ae.approximateLength+=Ht.length+10,!xr||Zd(xr)){if(xr){const Li=Ve(xr)?xr:xr.right;Uy(Li,void 0)}return w.createImportTypeNode(Wn,fn,xr,lt,Si)}else{const Li=er(xr),zr=Li.objectType.typeName;return w.createIndexedAccessTypeNode(w.createImportTypeNode(Wn,fn,zr,lt,Si),Li.indexType)}}const Ti=Ur(di,di.length-1,0);if(GS(Ti))return Ti;if(Si)return w.createTypeQueryNode(Ti);{const xr=Ve(Ti)?Ti:Ti.right,lt=WS(xr);return Uy(xr,void 0),w.createTypeReferenceNode(Ti,lt)}function Ur(xr,lt,wt){const dn=lt===xr.length-1?Pr:Fn(xr,lt,Ae),Ht=xr[lt],fn=xr[lt-1];let Wn;if(lt===0)Ae.flags|=16777216,Wn=rE(Ht,Ae),Ae.approximateLength+=(Wn?Wn.length:0)+1,Ae.flags^=16777216;else if(fn&&Np(fn)){const zr=Np(fn);Gc(zr,(Go,Nn)=>{if(u_(Go,Ht)&&!v8(Nn)&&Nn!=="export=")return Wn=Vi(Nn),!0})}if(Wn===void 0){const zr=qt(Ht.declarations,Mo);if(zr&&Za(zr)&&Zd(zr.expression)){const Go=Ur(xr,lt-1,wt);return Zd(Go)?w.createIndexedAccessTypeNode(w.createParenthesizedType(w.createTypeQueryNode(Go)),w.createTypeQueryNode(zr.expression)):Go}Wn=rE(Ht,Ae)}if(Ae.approximateLength+=Wn.length+1,!(Ae.flags&16)&&fn&&Ob(fn)&&Ob(fn).get(Ht.escapedName)&&u_(Ob(fn).get(Ht.escapedName),Ht)){const zr=Ur(xr,lt-1,wt);return GS(zr)?w.createIndexedAccessTypeNode(zr,w.createLiteralTypeNode(w.createStringLiteral(Wn))):w.createIndexedAccessTypeNode(w.createTypeReferenceNode(zr,dn),w.createLiteralTypeNode(w.createStringLiteral(Wn)))}const Li=pr(w.createIdentifier(Wn),16777216);if(dn&&Uy(Li,w.createNodeArray(dn)),Li.symbol=Ht,lt>wt){const zr=Ur(xr,lt-1,wt);return Zd(zr)?w.createQualifiedName(zr,Li):N.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Li}}function Eo(ut,Ae,Ln){const Pr=bl(Ae.enclosingDeclaration,ut,788968,void 0,ut,!1);return Pr&&Pr.flags&262144?Pr!==Ln.symbol:!1}function Bo(ut,Ae){var Ln,Pr;if(Ae.flags&4&&Ae.typeParameterNames){const Si=Ae.typeParameterNames.get(vd(ut));if(Si)return Si}let di=_o(ut.symbol,Ae,788968,!0);if(!(di.kind&80))return w.createIdentifier("(Missing type parameter)");if(Ae.flags&4){const Si=di.escapedText;let Ti=((Ln=Ae.typeParameterNamesByTextNextNameCount)==null?void 0:Ln.get(Si))||0,Ur=Si;for(;(Pr=Ae.typeParameterNamesByText)!=null&&Pr.has(Ur)||Eo(Ur,Ae,ut);)Ti++,Ur=`${Si}_${Ti}`;if(Ur!==Si){const xr=WS(di);di=w.createIdentifier(Ur),Uy(di,xr)}(Ae.typeParameterNamesByTextNextNameCount||(Ae.typeParameterNamesByTextNextNameCount=new Map)).set(Si,Ti),(Ae.typeParameterNames||(Ae.typeParameterNames=new Map)).set(vd(ut),di),(Ae.typeParameterNamesByText||(Ae.typeParameterNamesByText=new Set)).add(Ur)}return di}function _o(ut,Ae,Ln,Pr){const di=On(ut,Ae,Ln);return Pr&&di.length!==1&&!Ae.encounteredError&&!(Ae.flags&65536)&&(Ae.encounteredError=!0),Si(di,di.length-1);function Si(Ti,Ur){const xr=Fn(Ti,Ur,Ae),lt=Ti[Ur];Ur===0&&(Ae.flags|=16777216);const wt=rE(lt,Ae);Ur===0&&(Ae.flags^=16777216);const dn=pr(w.createIdentifier(wt),16777216);return xr&&Uy(dn,w.createNodeArray(xr)),dn.symbol=lt,Ur>0?w.createQualifiedName(Si(Ti,Ur-1),dn):dn}}function Cc(ut,Ae,Ln){const Pr=On(ut,Ae,Ln);return di(Pr,Pr.length-1);function di(Si,Ti){const Ur=Fn(Si,Ti,Ae),xr=Si[Ti];Ti===0&&(Ae.flags|=16777216);let lt=rE(xr,Ae);Ti===0&&(Ae.flags^=16777216);let wt=lt.charCodeAt(0);if(wL(wt)&&bt(xr.declarations,ed))return w.createStringLiteral(qn(xr,Ae));if(Ti===0||PU(lt,se)){const dn=pr(w.createIdentifier(lt),16777216);return Ur&&Uy(dn,w.createNodeArray(Ur)),dn.symbol=xr,Ti>0?w.createPropertyAccessExpression(di(Si,Ti-1),dn):dn}else{wt===91&&(lt=lt.substring(1,lt.length-1),wt=lt.charCodeAt(0));let dn;if(wL(wt)&&!(xr.flags&8)?dn=w.createStringLiteral(tm(lt).replace(/\\./g,Ht=>Ht.substring(1)),wt===39):""+ +lt===lt&&(dn=w.createNumericLiteral(+lt)),!dn){const Ht=pr(w.createIdentifier(lt),16777216);Ur&&Uy(Ht,w.createNodeArray(Ur)),Ht.symbol=xr,dn=Ht}return w.createElementAccessExpression(di(Si,Ti-1),dn)}}}function Jf(ut){const Ae=Mo(ut);return Ae?Za(Ae)?!!(mo(Ae.expression).flags&402653316):Qs(Ae)?!!(mo(Ae.argumentExpression).flags&402653316):Ma(Ae):!1}function dp(ut){const Ae=Mo(ut);return!!(Ae&&Ma(Ae)&&(Ae.singleQuote||!$s(Ae)&&uo(pc(Ae,!1),"'")))}function wn(ut,Ae){const Ln=!!Le(ut.declarations)&&Zn(ut.declarations,Jf),Pr=!!Le(ut.declarations)&&Zn(ut.declarations,dp),di=!!(ut.flags&8192),Si=Qn(ut,Ae,Pr,Ln,di);if(Si)return Si;const Ti=Vi(ut.escapedName);return K3(Ti,os(V),Pr,Ln,di)}function Qn(ut,Ae,Ln,Pr,di){const Si=Xi(ut).nameType;if(Si){if(Si.flags&384){const Ti=""+Si.value;return!tf(Ti,os(V))&&(Pr||!lg(Ti))?w.createStringLiteral(Ti,!!Ln):lg(Ti)&&uo(Ti,"-")?w.createComputedPropertyName(w.createPrefixUnaryExpression(41,w.createNumericLiteral(-Ti))):K3(Ti,os(V),Ln,Pr,di)}if(Si.flags&8192)return w.createComputedPropertyName(Cc(Si.symbol,Ae,111551))}}function oo(ut){const Ae={...ut};return Ae.typeParameterNames&&(Ae.typeParameterNames=new Map(Ae.typeParameterNames)),Ae.typeParameterNamesByText&&(Ae.typeParameterNamesByText=new Set(Ae.typeParameterNamesByText)),Ae.typeParameterSymbolList&&(Ae.typeParameterSymbolList=new Set(Ae.typeParameterSymbolList)),Ae.tracker=new Fq(Ae,Ae.tracker.inner,Ae.tracker.moduleResolverHost),Ae}function br(ut,Ae){return ut.declarations&&An(ut.declarations,Ln=>!!vu(Ln)&&(!Ae||!!Gn(Ln,Pr=>Pr===Ae)))}function Co(ut,Ae){return!(Or(Ae)&4)||!Cf(ut)||Le(ut.typeArguments)>=Bh(Ae.target.typeParameters)}function ss(ut){for(;ei(ut).fakeScopeForSignatureDeclaration;)ut=ut.parent;return ut}function Ts(ut,Ae,Ln,Pr,di,Si){if(!Kt(Ae)&&Pr){const xr=br(Ln,ss(Pr));if(xr&&!Bs(xr)&&!rf(xr)){const lt=vu(xr);if(ju(lt,xr,Ae)&&Co(lt,Ae)){const wt=Wl(ut,lt,di,Si);if(wt)return wt}}}const Ti=ut.flags;Ae.flags&8192&&Ae.symbol===Ln&&(!ut.enclosingDeclaration||bt(Ln.declarations,xr=>jn(xr)===jn(ut.enclosingDeclaration)))&&(ut.flags|=1048576);const Ur=d(Ae,ut);return ut.flags=Ti,Ur}function ju(ut,Ae,Ln){const Pr=bi(ut);return Pr===Ln?!0:Ao(Ae)&&Ae.questionToken?hm(Ln,524288)===Pr:!1}function Ga(ut,Ae,Ln,Pr,di){if(!Kt(Ae)&&ut.enclosingDeclaration){const Si=Ln.declaration&&nm(Ln.declaration),Ti=ss(ut.enclosingDeclaration);if(Gn(Si,Ur=>Ur===Ti)&&Si){const Ur=bi(Si);if((Ur.flags&262144&&Ur.isThisType?so(Ur,Ln.mapper):Ur)===Ae&&Co(Si,Ae)){const lt=Wl(ut,Si,Pr,di);if(lt)return lt}}}return d(Ae,ut)}function kd(ut,Ae,Ln){let Pr=!1;const di=Vp(ut);if(lr(ut)&&(IS(di)||ng(di.parent)||Id(di.parent)&&Cj(di.parent.left)&&IS(di.parent.right)))return Pr=!0,{introducesError:Pr,node:ut};const Si=Bf(ut),Ti=Hs(di,Si,!0,!0);if(Ti&&(ki(Ti,Ae.enclosingDeclaration,Si,!1).accessibility!==0?Pr=!0:(Ae.tracker.trackSymbol(Ti,Ae.enclosingDeclaration,Si),Ln?.(Ti)),Ve(ut))){const Ur=el(Ti),xr=Ti.flags&262144?Bo(Ur,Ae):w.cloneNode(ut);return xr.symbol=Ti,{introducesError:Pr,node:pr(Cr(xr,ut),16777216)}}return{introducesError:Pr,node:ut}}function Wl(ut,Ae,Ln,Pr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let di=!1;const Si=jn(Ae),Ti=nt(Ae,Ur,ji);if(di)return;return Ti===Ae?dt(w.cloneNode(Ae),Ae):Ti;function Ur(xr){if(Pae(xr)||xr.kind===326)return w.createKeywordTypeNode(133);if(Mae(xr))return w.createKeywordTypeNode(159);if(YR(xr))return w.createUnionTypeNode([nt(xr.type,Ur,ji),w.createLiteralTypeNode(w.createNull())]);if(TH(xr))return w.createUnionTypeNode([nt(xr.type,Ur,ji),w.createKeywordTypeNode(157)]);if(YW(xr))return nt(xr.type,Ur);if($W(xr))return w.createArrayTypeNode(nt(xr.type,Ur,ji));if(JS(xr))return w.createTypeLiteralNode(Ot(xr.jsDocPropertyTags,Ht=>{const fn=Ve(Ht.name)?Ht.name:Ht.name.right,Wn=Ke(bi(xr),fn.escapedText),Li=Wn&&Ht.typeExpression&&bi(Ht.typeExpression.type)!==Wn?d(Wn,ut):void 0;return w.createPropertySignature(void 0,fn,Ht.isBracketed||Ht.typeExpression&&TH(Ht.typeExpression.type)?w.createToken(58):void 0,Li||Ht.typeExpression&&nt(Ht.typeExpression.type,Ur,ji)||w.createKeywordTypeNode(133))}));if(Cf(xr)&&Ve(xr.typeName)&&xr.typeName.escapedText==="")return Cr(w.createKeywordTypeNode(133),xr);if((Hy(xr)||Cf(xr))&&Z4(xr))return w.createTypeLiteralNode([w.createIndexSignature(void 0,[w.createParameterDeclaration(void 0,void 0,"x",void 0,nt(xr.typeArguments[0],Ur,ji))],nt(xr.typeArguments[1],Ur,ji))]);if($R(xr))if(bR(xr)){let Ht;return w.createConstructorTypeNode(void 0,Vn(xr.typeParameters,Ur,gl),Hi(xr.parameters,(fn,Wn)=>fn.name&&Ve(fn.name)&&fn.name.escapedText==="new"?(Ht=fn.type,void 0):w.createParameterDeclaration(void 0,lt(fn),wt(fn,Wn),fn.questionToken,nt(fn.type,Ur,ji),void 0)),nt(Ht||xr.type,Ur,ji)||w.createKeywordTypeNode(133))}else return w.createFunctionTypeNode(Vn(xr.typeParameters,Ur,gl),Ot(xr.parameters,(Ht,fn)=>w.createParameterDeclaration(void 0,lt(Ht),wt(Ht,fn),Ht.questionToken,nt(Ht.type,Ur,ji),void 0)),nt(xr.type,Ur,ji)||w.createKeywordTypeNode(133));if(Cf(xr)&&kL(xr)&&(!Co(xr,bi(xr))||x8e(xr)||ft===RN(xr,788968,!0)))return Cr(d(bi(xr),ut),xr);if(Vv(xr)){const Ht=ei(xr).resolvedSymbol;return kL(xr)&&Ht&&(!xr.isTypeOf&&!(Ht.flags&788968)||!(Le(xr.typeArguments)>=Bh(Lr(Ht))))?Cr(d(bi(xr),ut),xr):w.updateImportTypeNode(xr,w.updateLiteralTypeNode(xr.argument,dn(xr,xr.argument.literal)),xr.attributes,xr.qualifier,Vn(xr.typeArguments,Ur,ji),xr.isTypeOf)}if(Zd(xr)||Gl(xr)){const{introducesError:Ht,node:fn}=kd(xr,ut,Ln);if(di=di||Ht,fn!==xr)return fn}return Si&&sI(xr)&&bs(Si,xr.pos).line===bs(Si,xr.end).line&&pr(xr,1),In(xr,Ur,void 0);function lt(Ht){return Ht.dotDotDotToken||(Ht.type&&$W(Ht.type)?w.createToken(26):void 0)}function wt(Ht,fn){return Ht.name&&Ve(Ht.name)&&Ht.name.escapedText==="this"?"this":lt(Ht)?"args":`arg${fn}`}function dn(Ht,fn){if(Pr){if(ut.tracker&&ut.tracker.moduleResolverHost){const Wn=hbe(Ht);if(Wn){const zr={getCanonicalFileName:Mu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ut.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ut.tracker.moduleResolverHost.getCommonSourceDirectory()},Go=p3(zr,Wn);return w.createStringLiteral(Go)}}}else if(ut.tracker&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode){const Wn=iy(fn,fn,void 0);Wn&&ut.tracker.trackExternalModuleSymbolOfImportTypeNode(Wn)}return fn}}}function El(ut,Ae,Ln){var Pr;const di=fs(w.createPropertyDeclaration,174,!0),Si=fs((Pt,Dr,pi,Xr)=>w.createPropertySignature(Pt,Dr,pi,Xr),173,!1),Ti=Ae.enclosingDeclaration;let Ur=[];const xr=new Set,lt=[],wt=Ae;Ae={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Pr=wt.remappedSymbolReferences)==null?void 0:Pr.entries()),tracker:void 0};const dn={...wt.tracker.inner,trackSymbol:(Pt,Dr,pi)=>{var Xr,ci;if((Xr=Ae.remappedSymbolNames)!=null&&Xr.has(Ta(Pt)))return!1;if(ki(Pt,Dr,pi,!1).accessibility===0){const ua=ln(Pt,Ae,pi);if(!(Pt.flags&4)){const qo=ua[0],zs=jn(wt.enclosingDeclaration);bt(qo.declarations,ms=>jn(ms)===zs)&&Ns(qo)}}else if((ci=wt.tracker.inner)!=null&&ci.trackSymbol)return wt.tracker.inner.trackSymbol(Pt,Dr,pi);return!1}};Ae.tracker=new Fq(Ae,dn,wt.tracker.moduleResolverHost),Gc(ut,(Pt,Dr)=>{const pi=Vi(Dr);qm(Pt,pi)});let Ht=!Ln;const fn=ut.get("export=");return fn&&ut.size>1&&fn.flags&2098688&&(ut=ca(),ut.set("export=",fn)),Sa(ut),ni(Ur);function Wn(Pt){return!!Pt&&Pt.kind===80}function Li(Pt){return Ll(Pt)?nr(Ot(Pt.declarationList.declarations,Mo),Wn):nr([Mo(Pt)],Wn)}function zr(Pt){const Dr=An(Pt,kl),pi=Br(Pt,Xl);let Xr=pi!==-1?Pt[pi]:void 0;if(Xr&&Dr&&Dr.isExportEquals&&Ve(Dr.expression)&&Ve(Xr.name)&&Sr(Xr.name)===Sr(Dr.expression)&&Xr.body&&O_(Xr.body)){const ci=nr(Pt,qo=>!!(dd(qo)&32)),ns=Xr.name;let ua=Xr.body;if(Le(ci)&&(Xr=w.updateModuleDeclaration(Xr,Xr.modifiers,Xr.name,ua=w.updateModuleBlock(ua,w.createNodeArray([...Xr.body.statements,w.createExportDeclaration(void 0,!1,w.createNamedExports(Ot(Pi(ci,qo=>Li(qo)),qo=>w.createExportSpecifier(!1,void 0,qo))),void 0)]))),Pt=[...Pt.slice(0,pi),Xr,...Pt.slice(pi+1)]),!An(Pt,qo=>qo!==Xr&&rL(qo,ns))){Ur=[];const qo=!bt(ua.statements,zs=>Zr(zs,32)||kl(zs)||Yl(zs));Xe(ua.statements,zs=>{Ks(zs,qo?32:0)}),Pt=[...nr(Pt,zs=>zs!==Xr&&zs!==Dr),...Ur]}}return Pt}function Go(Pt){const Dr=nr(Pt,Xr=>Yl(Xr)&&!Xr.moduleSpecifier&&!!Xr.exportClause&&Pf(Xr.exportClause));Le(Dr)>1&&(Pt=[...nr(Pt,ci=>!Yl(ci)||!!ci.moduleSpecifier||!ci.exportClause),w.createExportDeclaration(void 0,!1,w.createNamedExports(Pi(Dr,ci=>oa(ci.exportClause,Pf).elements)),void 0)]);const pi=nr(Pt,Xr=>Yl(Xr)&&!!Xr.moduleSpecifier&&!!Xr.exportClause&&Pf(Xr.exportClause));if(Le(pi)>1){const Xr=XN(pi,ci=>Ma(ci.moduleSpecifier)?">"+ci.moduleSpecifier.text:">");if(Xr.length!==pi.length)for(const ci of Xr)ci.length>1&&(Pt=[...nr(Pt,ns=>!ci.includes(ns)),w.createExportDeclaration(void 0,!1,w.createNamedExports(Pi(ci,ns=>oa(ns.exportClause,Pf).elements)),ci[0].moduleSpecifier)])}return Pt}function Nn(Pt){const Dr=Br(Pt,pi=>Yl(pi)&&!pi.moduleSpecifier&&!pi.attributes&&!!pi.exportClause&&Pf(pi.exportClause));if(Dr>=0){const pi=Pt[Dr],Xr=Hi(pi.exportClause.elements,ci=>{if(!ci.propertyName){const ns=N2(Pt),ua=nr(ns,qo=>rL(Pt[qo],ci.name));if(Le(ua)&&Zn(ua,qo=>yk(Pt[qo]))){for(const qo of ua)Pt[qo]=Zi(Pt[qo]);return}}return ci});Le(Xr)?Pt[Dr]=w.updateExportDeclaration(pi,pi.modifiers,pi.isTypeOnly,w.updateNamedExports(pi.exportClause,Xr),pi.moduleSpecifier,pi.attributes):Dv(Pt,Dr)}return Pt}function ni(Pt){return Pt=zr(Pt),Pt=Go(Pt),Pt=Nn(Pt),Ti&&($i(Ti)&&zp(Ti)||Xl(Ti))&&(!bt(Pt,mL)||!Dre(Pt)&&bt(Pt,v4))&&Pt.push(Kk(w)),Pt}function Zi(Pt){const Dr=(dd(Pt)|32)&-129;return w.replaceModifiers(Pt,Dr)}function fo(Pt){const Dr=dd(Pt)&-33;return w.replaceModifiers(Pt,Dr)}function Sa(Pt,Dr,pi){Dr||lt.push(new Map),Pt.forEach(Xr=>{bc(Xr,!1,!!pi)}),Dr||(lt[lt.length-1].forEach(Xr=>{bc(Xr,!0,!!pi)}),lt.pop())}function bc(Pt,Dr,pi){const Xr=rs(Pt);if(xr.has(Ta(Xr)))return;if(xr.add(Ta(Xr)),!Dr||Le(Pt.declarations)&&bt(Pt.declarations,ns=>!!Gn(ns,ua=>ua===Ti))){const ns=Ae;Ae=oo(Ae),ks(Pt,Dr,pi),Ae.reportedDiagnostic&&(wt.reportedDiagnostic=Ae.reportedDiagnostic),Ae.trackedSymbols&&(ns.trackedSymbols?N.assert(Ae.trackedSymbols===ns.trackedSymbols):ns.trackedSymbols=Ae.trackedSymbols),Ae=ns}}function ks(Pt,Dr,pi,Xr=Pt.escapedName){var ci,ns,ua,qo,zs,ms;const Va=Vi(Xr),Nu=Xr==="default";if(Dr&&!(Ae.flags&131072)&&zA(Va)&&!Nu){Ae.encounteredError=!0;return}let Cu=Nu&&!!(Pt.flags&-113||Pt.flags&16&&Le(gs(dr(Pt))))&&!(Pt.flags&2097152),Ed=!Cu&&!Dr&&zA(Va)&&!Nu;(Cu||Ed)&&(Dr=!0);const Jl=(Dr?0:32)|(Nu&&!Cu?2048:0),Pu=Pt.flags&1536&&Pt.flags&7&&Xr!=="export=",$d=Pu&&Cs(dr(Pt),Pt);if((Pt.flags&8208||$d)&&Tn(dr(Pt),Pt,qm(Pt,Va),Jl),Pt.flags&524288&&E_(Pt,Va,Jl),Pt.flags&98311&&Xr!=="export="&&!(Pt.flags&4194304)&&!(Pt.flags&32)&&!(Pt.flags&8192)&&!$d)if(pi)Ra(Pt)&&(Ed=!1,Cu=!1);else{const ou=dr(Pt),kp=qm(Pt,Va);if(ou.symbol&&ou.symbol!==Pt&&ou.symbol.flags&16&&bt(ou.symbol.declarations,$E)&&((ci=ou.symbol.members)!=null&&ci.size||(ns=ou.symbol.exports)!=null&&ns.size))Ae.remappedSymbolReferences||(Ae.remappedSymbolReferences=new Map),Ae.remappedSymbolReferences.set(Ta(ou.symbol),Pt),ks(ou.symbol,Dr,pi,Xr),Ae.remappedSymbolReferences.delete(Ta(ou.symbol));else if(!(Pt.flags&16)&&Cs(ou,Pt))Tn(ou,Pt,kp,Jl);else{const xx=Pt.flags&2?n2(Pt)?2:1:(ua=Pt.parent)!=null&&ua.valueDeclaration&&$i((qo=Pt.parent)==null?void 0:qo.valueDeclaration)?2:void 0,ih=Cu||!(Pt.flags&4)?kp:S_(kp,Pt);let Yb=Pt.declarations&&An(Pt.declarations,o6=>wi(o6));Yb&&Uc(Yb.parent)&&Yb.parent.declarations.length===1&&(Yb=Yb.parent.parent);const $b=(zs=Pt.declarations)==null?void 0:zs.find(Wr);if($b&&mr($b.parent)&&Ve($b.parent.right)&&((ms=ou.symbol)!=null&&ms.valueDeclaration)&&$i(ou.symbol.valueDeclaration)){const o6=kp===$b.parent.right.escapedText?void 0:$b.parent.right;Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,o6,kp)])),0),Ae.tracker.trackSymbol(ou.symbol,Ae.enclosingDeclaration,111551)}else{const o6=dt(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ih,void 0,Ts(Ae,ou,Pt,Ti,Ns,Ln))],xx)),Yb);Ks(o6,ih!==kp?Jl&-33:Jl),ih!==kp&&!Dr&&(Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,ih,kp)])),0),Ed=!1,Cu=!1)}}}if(Pt.flags&384&&Rr(Pt,Va,Jl),Pt.flags&32&&(Pt.flags&4&&Pt.valueDeclaration&&mr(Pt.valueDeclaration.parent)&&Zc(Pt.valueDeclaration.parent.right)?yi(Pt,qm(Pt,Va),Jl):_a(Pt,qm(Pt,Va),Jl)),(Pt.flags&1536&&(!Pu||Zt(Pt))||$d)&&Kn(Pt,Va,Jl),Pt.flags&64&&!(Pt.flags&32)&&rt(Pt,Va,Jl),Pt.flags&2097152&&yi(Pt,qm(Pt,Va),Jl),Pt.flags&4&&Pt.escapedName==="export="&&Ra(Pt),Pt.flags&8388608&&Pt.declarations)for(const ou of Pt.declarations){const kp=gd(ou,ou.moduleSpecifier);kp&&Ks(w.createExportDeclaration(void 0,ou.isTypeOnly,void 0,w.createStringLiteral(qn(kp,Ae))),0)}Cu?Ks(w.createExportAssignment(void 0,!1,w.createIdentifier(qm(Pt,Va))),0):Ed&&Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,qm(Pt,Va),Va)])),0)}function Ns(Pt){if(bt(Pt.declarations,UE))return;N.assertIsDefined(lt[lt.length-1]),S_(Vi(Pt.escapedName),Pt);const Dr=!!(Pt.flags&2097152)&&!bt(Pt.declarations,pi=>!!Gn(pi,Yl)||Sh(pi)||tu(pi)&&!Th(pi.moduleReference));lt[Dr?0:lt.length-1].set(Ta(Pt),Pt)}function Du(Pt){return $i(Pt)&&(zp(Pt)||Qf(Pt))||ku(Pt)&&!R_(Pt)}function Ks(Pt,Dr){if(Cm(Pt)){let pi=0;const Xr=Ae.enclosingDeclaration&&(Zf(Ae.enclosingDeclaration)?jn(Ae.enclosingDeclaration):Ae.enclosingDeclaration);Dr&32&&Xr&&(Du(Xr)||Xl(Xr))&&yk(Pt)&&(pi|=32),Ht&&!(pi&32)&&(!Xr||!(Xr.flags&33554432))&&(I0(Pt)||Ll(Pt)||Ac(Pt)||Ic(Pt)||Xl(Pt))&&(pi|=128),Dr&2048&&(Ic(Pt)||_d(Pt)||Ac(Pt))&&(pi|=2048),pi&&(Pt=w.replaceModifiers(Pt,pi|dd(Pt)))}Ur.push(Pt)}function E_(Pt,Dr,pi){var Xr;const ci=wOe(Pt),ns=Xi(Pt).typeParameters,ua=Ot(ns,Cu=>gt(Cu,Ae)),qo=(Xr=Pt.declarations)==null?void 0:Xr.find(Zf),zs=aL(qo?qo.comment||qo.parent.comment:void 0),ms=Ae.flags;Ae.flags|=8388608;const Va=Ae.enclosingDeclaration;Ae.enclosingDeclaration=qo;const Nu=qo&&qo.typeExpression&&u1(qo.typeExpression)&&Wl(Ae,qo.typeExpression.type,Ns,Ln)||d(ci,Ae);Ks(A0(w.createTypeAliasDeclaration(void 0,qm(Pt,Dr),ua,Nu),zs?[{kind:3,text:`* * `+zs.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),pi),Ae.flags=ms,Ae.enclosingDeclaration=Va}function rt(Pt,Dr,pi){const Xr=Vf(Pt),ci=Lr(Pt),ns=Ot(ci,Ed=>gt(Ed,Ae)),ua=Pp(Xr),qo=Le(ua)?ba(ua):void 0,zs=Pi(gs(Xr),Ed=>Pc(Ed,qo)),ms=Hh(0,Xr,qo,179),Va=Hh(1,Xr,qo,180),Nu=Ey(Xr,qo),Cu=Le(ua)?[w.createHeritageClause(96,Hi(ua,Ed=>dA(Ed,111551)))]:void 0;Ks(w.createInterfaceDeclaration(void 0,qm(Pt,Dr),ns,Cu,[...Nu,...Va,...ms,...zs]),pi)}function St(Pt){let Dr=zo(Np(Pt).values());const pi=rs(Pt);if(pi!==Pt){const Xr=new Set(Dr);for(const ci of Np(pi).values())Au(jl(ci))&111551||Xr.add(ci);Dr=zo(Xr)}return nr(Dr,Xr=>zi(Xr)&&tf(Xr.escapedName,99))}function Zt(Pt){return Zn(St(Pt),Dr=>!(Au(jl(Dr))&111551))}function Kn(Pt,Dr,pi){const Xr=St(Pt),ci=P2(Xr,qo=>qo.parent&&qo.parent===Pt?"real":"merged"),ns=ci.get("real")||et,ua=ci.get("merged")||et;if(Le(ns)){const qo=qm(Pt,Dr);Hr(ns,qo,pi,!!(Pt.flags&67108880))}if(Le(ua)){const qo=jn(Ae.enclosingDeclaration),zs=qm(Pt,Dr),ms=w.createModuleBlock([w.createExportDeclaration(void 0,!1,w.createNamedExports(Hi(nr(ua,Va=>Va.escapedName!=="export="),Va=>{var Nu,Cu;const Ed=Vi(Va.escapedName),Jl=qm(Va,Ed),Pu=Va.declarations&&Fm(Va);if(qo&&(Pu?qo!==jn(Pu):!bt(Va.declarations,kp=>jn(kp)===qo))){(Cu=(Nu=Ae.tracker)==null?void 0:Nu.reportNonlocalAugmentation)==null||Cu.call(Nu,qo,Pt,Va);return}const $d=Pu&&Hp(Pu,!0);Ns($d||Va);const ou=$d?qm($d,Vi($d.escapedName)):Jl;return w.createExportSpecifier(!1,Ed===ou?void 0:ou,Ed)})))]);Ks(w.createModuleDeclaration(void 0,w.createIdentifier(zs),ms,32),0)}}function Rr(Pt,Dr,pi){Ks(w.createEnumDeclaration(w.createModifiersFromModifierFlags(Wve(Pt)?4096:0),qm(Pt,Dr),Ot(nr(gs(dr(Pt)),Xr=>!!(Xr.flags&8)),Xr=>{const ci=Xr.declarations&&Xr.declarations[0]&&c1(Xr.declarations[0])?fbe(Xr.declarations[0]):void 0;return w.createEnumMember(Vi(Xr.escapedName),ci===void 0?void 0:typeof ci=="string"?w.createStringLiteral(ci):w.createNumericLiteral(ci))})),pi)}function Tn(Pt,Dr,pi,Xr){const ci=Yo(Pt,0);for(const ns of ci){const ua=be(ns,262,Ae,{name:w.createIdentifier(pi),privateSymbolVisitor:Ns,bundledImports:Ln});Ks(dt(ua,gr(ns)),Xr)}if(!(Dr.flags&1536&&Dr.exports&&Dr.exports.size)){const ns=nr(gs(Pt),zi);Hr(ns,pi,Xr,!0)}}function gr(Pt){if(Pt.declaration&&Pt.declaration.parent){if(mr(Pt.declaration.parent)&&Bl(Pt.declaration.parent)===5)return Pt.declaration.parent;if(wi(Pt.declaration.parent)&&Pt.declaration.parent.parent)return Pt.declaration.parent.parent}return Pt.declaration}function Hr(Pt,Dr,pi,Xr){if(Le(Pt)){const ns=P2(Pt,Jl=>!Le(Jl.declarations)||bt(Jl.declarations,Pu=>jn(Pu)===jn(Ae.enclosingDeclaration))?"local":"remote").get("local")||et;let ua=Ah.createModuleDeclaration(void 0,w.createIdentifier(Dr),w.createModuleBlock([]),32);qa(ua,Ti),ua.locals=ca(Pt),ua.symbol=Pt[0].parent;const qo=Ur;Ur=[];const zs=Ht;Ht=!1;const ms={...Ae,enclosingDeclaration:ua},Va=Ae;Ae=ms,Sa(ca(ns),Xr,!0),Ae=Va,Ht=zs;const Nu=Ur;Ur=qo;const Cu=Ot(Nu,Jl=>kl(Jl)&&!Jl.isExportEquals&&Ve(Jl.expression)?w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Jl.expression,w.createIdentifier("default"))])):Jl),Ed=Zn(Cu,Jl=>Zr(Jl,32))?Ot(Cu,fo):Cu;ua=w.updateModuleDeclaration(ua,ua.modifiers,ua.name,w.createModuleBlock(Ed)),Ks(ua,pi)}}function zi(Pt){return!!(Pt.flags&2887656)||!(Pt.flags&4194304||Pt.escapedName==="prototype"||Pt.valueDeclaration&&aa(Pt.valueDeclaration)&&ui(Pt.valueDeclaration.parent))}function Fo(Pt){const Dr=Hi(Pt,pi=>{const Xr=Ae.enclosingDeclaration;Ae.enclosingDeclaration=pi;let ci=pi.expression;if(Gl(ci)){if(Ve(ci)&&Sr(ci)==="")return ns(void 0);let ua;if({introducesError:ua,node:ci}=kd(ci,Ae,Ns),ua)return ns(void 0)}return ns(w.createExpressionWithTypeArguments(ci,Ot(pi.typeArguments,ua=>Wl(Ae,ua,Ns,Ln)||d(bi(ua),Ae))));function ns(ua){return Ae.enclosingDeclaration=Xr,ua}});if(Dr.length===Pt.length)return Dr}function _a(Pt,Dr,pi){var Xr,ci;const ns=(Xr=Pt.declarations)==null?void 0:Xr.find(ui),ua=Ae.enclosingDeclaration;Ae.enclosingDeclaration=ns||ua;const qo=Lr(Pt),zs=Ot(qo,oh=>gt(oh,Ae)),ms=Kp(Vf(Pt)),Va=Pp(ms),Nu=ns&&TR(ns),Cu=Nu&&Fo(Nu)||Hi(f_(ms),_2),Ed=dr(Pt),Jl=!!((ci=Ed.symbol)!=null&&ci.valueDeclaration)&&ui(Ed.symbol.valueDeclaration),Pu=Jl?Cp(Ed):j,$d=[...Le(Va)?[w.createHeritageClause(96,Ot(Va,oh=>uA(oh,Pu,Dr)))]:[],...Le(Cu)?[w.createHeritageClause(119,Cu)]:[]],ou=eyt(ms,Va,gs(ms)),kp=nr(ou,oh=>{const h2=oh.valueDeclaration;return!!h2&&!(sd(h2)&&Ji(h2.name))}),ih=bt(ou,oh=>{const h2=oh.valueDeclaration;return!!h2&&sd(h2)&&Ji(h2.name)})?[w.createPropertyDeclaration(void 0,w.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Yb=Pi(kp,oh=>di(oh,!1,Va[0])),$b=Pi(nr(gs(Ed),oh=>!(oh.flags&4194304)&&oh.escapedName!=="prototype"&&!zi(oh)),oh=>di(oh,!0,Pu)),gbt=!Jl&&!!Pt.valueDeclaration&&lr(Pt.valueDeclaration)&&!bt(Yo(Ed,1))?[w.createConstructorDeclaration(w.createModifiersFromModifierFlags(2),[],void 0)]:Hh(1,Ed,Pu,176),ybt=Ey(ms,Va[0]);Ae.enclosingDeclaration=ua,Ks(dt(w.createClassDeclaration(void 0,Dr,zs,$d,[...ybt,...$b,...gbt,...Yb,...ih]),Pt.declarations&&nr(Pt.declarations,oh=>Ic(oh)||Zc(oh))[0]),pi)}function ha(Pt){return qt(Pt,Dr=>{if(np(Dr)||Ku(Dr))return Sr(Dr.propertyName||Dr.name);if(mr(Dr)||kl(Dr)){const pi=kl(Dr)?Dr.expression:Dr.right;if(Wr(pi))return Sr(pi.name)}if(vb(Dr)){const pi=Mo(Dr);if(pi&&Ve(pi))return Sr(pi)}})}function yi(Pt,Dr,pi){var Xr,ci,ns,ua,qo,zs;const ms=Fm(Pt);if(!ms)return N.fail();const Va=rs(Hp(ms,!0));if(!Va)return;let Nu=bC(Va)&&ha(Pt.declarations)||Vi(Va.escapedName);Nu==="export="&&$&&(Nu="default");const Cu=qm(Va,Nu);switch(Ns(Va),ms.kind){case 208:if(((ci=(Xr=ms.parent)==null?void 0:Xr.parent)==null?void 0:ci.kind)===260){const Pu=qn(Va.parent||Va,Ae),{propertyName:$d}=ms;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,$d&&Ve($d)?w.createIdentifier(Sr($d)):void 0,w.createIdentifier(Dr))])),w.createStringLiteral(Pu),void 0),0);break}N.failBadSyntaxKind(((ns=ms.parent)==null?void 0:ns.parent)||ms,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((qo=(ua=ms.parent)==null?void 0:ua.parent)==null?void 0:qo.kind)===226&&wo(Vi(Pt.escapedName),Cu);break;case 260:if(Wr(ms.initializer)){const Pu=ms.initializer,$d=w.createUniqueName(Dr),ou=qn(Va.parent||Va,Ae);Ks(w.createImportEqualsDeclaration(void 0,!1,$d,w.createExternalModuleReference(w.createStringLiteral(ou))),0),Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Dr),w.createQualifiedName($d,Pu.name)),pi);break}case 271:if(Va.escapedName==="export="&&bt(Va.declarations,Pu=>$i(Pu)&&Qf(Pu))){Ra(Pt);break}const Ed=!(Va.flags&512)&&!wi(ms);Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Dr),Ed?_o(Va,Ae,-1,!1):w.createExternalModuleReference(w.createStringLiteral(qn(Va,Ae)))),Ed?pi:0);break;case 270:Ks(w.createNamespaceExportDeclaration(Sr(ms.name)),0);break;case 273:{const Pu=qn(Va.parent||Va,Ae),$d=Ln?w.createStringLiteral(Pu):ms.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,w.createIdentifier(Dr),void 0),$d,ms.parent.attributes),0);break}case 274:{const Pu=qn(Va.parent||Va,Ae),$d=Ln?w.createStringLiteral(Pu):ms.parent.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(w.createIdentifier(Dr))),$d,ms.parent.attributes),0);break}case 280:Ks(w.createExportDeclaration(void 0,!1,w.createNamespaceExport(w.createIdentifier(Dr)),w.createStringLiteral(qn(Va,Ae))),0);break;case 276:{const Pu=qn(Va.parent||Va,Ae),$d=Ln?w.createStringLiteral(Pu):ms.parent.parent.parent.moduleSpecifier;Ks(w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamedImports([w.createImportSpecifier(!1,Dr!==Nu?w.createIdentifier(Nu):void 0,w.createIdentifier(Dr))])),$d,ms.parent.parent.parent.attributes),0);break}case 281:const Jl=ms.parent.parent.moduleSpecifier;Jl&&((zs=ms.propertyName)==null?void 0:zs.escapedText)==="default"&&(Nu="default"),wo(Vi(Pt.escapedName),Jl?Nu:Cu,Jl&&ls(Jl)?w.createStringLiteral(Jl.text):void 0);break;case 277:Ra(Pt);break;case 226:case 211:case 212:Pt.escapedName==="default"||Pt.escapedName==="export="?Ra(Pt):wo(Dr,Cu);break;default:return N.failBadSyntaxKind(ms,"Unhandled alias declaration kind in symbol serializer!")}}function wo(Pt,Dr,pi){Ks(w.createExportDeclaration(void 0,!1,w.createNamedExports([w.createExportSpecifier(!1,Pt!==Dr?Dr:void 0,Pt)]),pi),0)}function Ra(Pt){var Dr;if(Pt.flags&4194304)return!1;const pi=Vi(Pt.escapedName),Xr=pi==="export=",ns=Xr||pi==="default",ua=Pt.declarations&&Fm(Pt),qo=ua&&Hp(ua,!0);if(qo&&Le(qo.declarations)&&bt(qo.declarations,zs=>jn(zs)===jn(Ti))){const zs=ua&&(kl(ua)||mr(ua)?zj(ua):Cie(ua)),ms=zs&&Gl(zs)?myt(zs):void 0,Va=ms&&Hs(ms,-1,!0,!0,Ti);(Va||qo)&&Ns(Va||qo);const Nu=Ae.tracker.disableTrackSymbol;if(Ae.tracker.disableTrackSymbol=!0,ns)Ur.push(w.createExportAssignment(void 0,Xr,Cc(qo,Ae,-1)));else if(ms===zs&&ms)wo(pi,Sr(ms));else if(zs&&Zc(zs))wo(pi,qm(qo,Sl(qo)));else{const Cu=S_(pi,Pt);Ks(w.createImportEqualsDeclaration(void 0,!1,w.createIdentifier(Cu),_o(qo,Ae,-1,!1)),0),wo(pi,Cu)}return Ae.tracker.disableTrackSymbol=Nu,!0}else{const zs=S_(pi,Pt),ms=Xp(dr(rs(Pt)));if(Cs(ms,Pt))Tn(ms,Pt,zs,ns?0:32);else{const Va=((Dr=Ae.enclosingDeclaration)==null?void 0:Dr.kind)===267&&(!(Pt.flags&98304)||Pt.flags&65536)?1:2,Nu=w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(zs,void 0,Ts(Ae,ms,Pt,Ti,Ns,Ln))],Va));Ks(Nu,qo&&qo.flags&4&&qo.escapedName==="export="?128:pi===zs?32:0)}return ns?(Ur.push(w.createExportAssignment(void 0,Xr,w.createIdentifier(zs))),!0):pi!==zs?(wo(pi,zs),!0):!1}}function Cs(Pt,Dr){const pi=jn(Ae.enclosingDeclaration);return Or(Pt)&48&&!Le(yd(Pt))&&!V1(Pt)&&!!(Le(nr(gs(Pt),zi))||Le(Yo(Pt,0)))&&!Le(Yo(Pt,1))&&!br(Dr,Ti)&&!(Pt.symbol&&bt(Pt.symbol.declarations,Xr=>jn(Xr)!==pi))&&!bt(gs(Pt),Xr=>v8(Xr.escapedName))&&!bt(gs(Pt),Xr=>bt(Xr.declarations,ci=>jn(ci)!==pi))&&Zn(gs(Pt),Xr=>tf(Sl(Xr),se)?Xr.flags&98304?kb(Xr)===j1(Xr):!0:!1)}function fs(Pt,Dr,pi){return function(ci,ns,ua){var qo,zs,ms,Va,Nu;const Cu=Df(ci),Ed=!!(Cu&2);if(ns&&ci.flags&2887656)return[];if(ci.flags&4194304||ci.escapedName==="constructor"||ua&&va(ua,ci.escapedName)&&b_(va(ua,ci.escapedName))===b_(ci)&&(ci.flags&16777216)===(va(ua,ci.escapedName).flags&16777216)&&_y(dr(ci),Ke(ua,ci.escapedName)))return[];const Jl=Cu&-1025|(ns?256:0),Pu=wn(ci,Ae),$d=(qo=ci.declarations)==null?void 0:qo.find(Ym(Jo,Ov,wi,yp,mr,Wr));if(ci.flags&98304&&pi){const ou=[];if(ci.flags&65536){const kp=ci.declarations&&Xe(ci.declarations,ih=>{if(ih.kind===178)return ih;if(sa(ih)&&xS(ih))return Xe(ih.arguments[2].properties,Yb=>{const $b=Mo(Yb);if($b&&Ve($b)&&Sr($b)==="set")return Yb})});N.assert(!!kp);const xx=Bs(kp)?fm(kp).parameters[0]:void 0;ou.push(dt(w.createSetAccessorDeclaration(w.createModifiersFromModifierFlags(Jl),Pu,[w.createParameterDeclaration(void 0,void 0,xx?cn(xx,Dt(xx),Ae):"value",void 0,Ed?void 0:Ts(Ae,dr(ci),ci,Ti,Ns,Ln))],void 0),((zs=ci.declarations)==null?void 0:zs.find(wy))||$d))}if(ci.flags&32768){const kp=Cu&2;ou.push(dt(w.createGetAccessorDeclaration(w.createModifiersFromModifierFlags(Jl),Pu,[],kp?void 0:Ts(Ae,dr(ci),ci,Ti,Ns,Ln),void 0),((ms=ci.declarations)==null?void 0:ms.find(Fv))||$d))}return ou}else if(ci.flags&98311)return dt(Pt(w.createModifiersFromModifierFlags((b_(ci)?8:0)|Jl),Pu,ci.flags&16777216?w.createToken(58):void 0,Ed?void 0:Ts(Ae,j1(ci),ci,Ti,Ns,Ln),void 0),((Va=ci.declarations)==null?void 0:Va.find(Ym(Jo,wi)))||$d);if(ci.flags&8208){const ou=dr(ci),kp=Yo(ou,0);if(Jl&2)return dt(Pt(w.createModifiersFromModifierFlags((b_(ci)?8:0)|Jl),Pu,ci.flags&16777216?w.createToken(58):void 0,void 0,void 0),((Nu=ci.declarations)==null?void 0:Nu.find(Bs))||kp[0]&&kp[0].declaration||ci.declarations&&ci.declarations[0]);const xx=[];for(const ih of kp){const Yb=be(ih,Dr,Ae,{name:Pu,questionToken:ci.flags&16777216?w.createToken(58):void 0,modifiers:Jl?w.createModifiersFromModifierFlags(Jl):void 0}),$b=ih.declaration&&VL(ih.declaration.parent)?ih.declaration.parent:ih.declaration;xx.push(dt(Yb,$b))}return xx}return N.fail(`Unhandled class member kind! ${ci.__debugFlags||ci.flags}`)}}function Pc(Pt,Dr){return Si(Pt,!1,Dr)}function Hh(Pt,Dr,pi,Xr){const ci=Yo(Dr,Pt);if(Pt===1){if(!pi&&Zn(ci,qo=>Le(qo.parameters)===0))return[];if(pi){const qo=Yo(pi,1);if(!Le(qo)&&Zn(ci,zs=>Le(zs.parameters)===0))return[];if(qo.length===ci.length){let zs=!1;for(let ms=0;msd(ci,Ae)),Xr=Cc(Pt.target.symbol,Ae,788968)):Pt.symbol&&on(Pt.symbol,Ti,Dr)&&(Xr=Cc(Pt.symbol,Ae,788968)),Xr)return w.createExpressionWithTypeArguments(Xr,pi)}function _2(Pt){const Dr=dA(Pt,788968);if(Dr)return Dr;if(Pt.symbol)return w.createExpressionWithTypeArguments(Cc(Pt.symbol,Ae,788968),void 0)}function S_(Pt,Dr){var pi,Xr;const ci=Dr?Ta(Dr):void 0;if(ci&&Ae.remappedSymbolNames.has(ci))return Ae.remappedSymbolNames.get(ci);Dr&&(Pt=Ix(Dr,Pt));let ns=0;const ua=Pt;for(;(pi=Ae.usedSymbolNames)!=null&&pi.has(Pt);)ns++,Pt=`${ua}_${ns}`;return(Xr=Ae.usedSymbolNames)==null||Xr.add(Pt),ci&&Ae.remappedSymbolNames.set(ci,Pt),Pt}function Ix(Pt,Dr){if(Dr==="default"||Dr==="__class"||Dr==="__function"){const pi=Ae.flags;Ae.flags|=16777216;const Xr=rE(Pt,Ae);Ae.flags=pi,Dr=Xr.length>0&&wL(Xr.charCodeAt(0))?tm(Xr):Xr}return Dr==="default"?Dr="_default":Dr==="export="&&(Dr="_exports"),Dr=tf(Dr,se)&&!zA(Dr)?Dr:"_"+Dr.replace(/[^a-zA-Z0-9]/g,"_"),Dr}function qm(Pt,Dr){const pi=Ta(Pt);return Ae.remappedSymbolNames.has(pi)?Ae.remappedSymbolNames.get(pi):(Dr=Ix(Pt,Dr),Ae.remappedSymbolNames.set(pi,Dr),Dr)}}}function Oh(n,a,c=16384,d){return d?_(d).getText():yC(_);function _(y){const x=w.createTypePredicateNode(n.kind===2||n.kind===3?w.createToken(131):void 0,n.kind===1||n.kind===3?w.createIdentifier(n.parameterName):w.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,FT(c)|70221824|512)),k=h1(),z=a&&jn(a);return k.writeNode(4,x,z,y),y}}function hN(n){const a=[];let c=0;for(let d=0;dMo(x)?x:void 0);const y=_&&Mo(_);if(_&&y){if(sa(_)&&xS(_))return Sl(n);if(Za(y)&&!(xl(n)&4096)){const x=Xi(n).nameType;if(x&&x.flags&384){const k=h8(n,a);if(k!==void 0)return k}}return Rs(y)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return Rs(_.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)"}}const d=h8(n,a);return d!==void 0?d:Sl(n)}function d_(n){if(n){const c=ei(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&&$i(n.parent.parent.parent));case 208:return d_(n.parent.parent);case 260:if(ta(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(OE(n))return!0;const c=Q(n);return!(bte(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Ph(c):d_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(hp(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 d_(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=bl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=$0(n.parent,2998271));let d,_;return c&&(_=new Set,_.add(Ta(c)),y(c.declarations)),d;function y(x){Xe(x,k=>{const z=AT(k)||k;if(a?ei(k).isVisible=!0:(d=d||[],Tf(d,z)),_R(k)){const H=k.moduleReference,re=Vp(H),be=bl(k,re.escapedText,901119,void 0,void 0,!1);be&&_&&Ay(_,Ta(be))&&y(be.declarations)}})}}function Wh(n,a){const c=px(n,a);if(c>=0){const{length:d}=mu;for(let _=c;_=HI;c--){if(g8(mu[c],V0[c]))return-1;if(mu[c]===n&&V0[c]===a)return c}return-1}function g8(n,a){switch(a){case 0:return!!Xi(n).type;case 5:return!!ei(n).resolvedEnumType;case 2:return!!Xi(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!!Xi(n).writeType;case 9:return ei(n).parameterInitializerContainsUndefined!==void 0}return N.assertNever(a)}function Y_(){return mu.pop(),V0.pop(),Qg.pop()}function Q(n){return Gn(C_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function xe(n){const a=el(Cd(n));return a.typeParameters?fv(a,Ot(a.typeParameters,c=>j)):a}function Ke(n,a){const c=va(n,a);return c?dr(c):void 0}function xt(n,a){var c;let d;return Ke(n,a)||(d=(c=_x(n,a))==null?void 0:c.type)&&cp(d,!0,!0)}function Nt(n){return n&&(n.flags&1)!==0}function Kt(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function Fr(n,a){if(a!==0)return BT(n,!1,a);const c=Ir(n);return c&&Xi(c).type||BT(n,!1,a)}function Wi(n,a,c){if(n=uc(n,z=>!(z.flags&98304)),n.flags&131072)return La;if(n.flags&1048576)return pl(n,z=>Wi(z,a,c));let d=ti(Ot(a,_v));const _=[],y=[];for(const z of gs(n)){const H=DN(z,8576);!Ea(H,d)&&!(Df(z)&6)&&qZ(z)?_.push(z):y.push(H)}if(XT(n)||YT(d)){if(y.length&&(d=ti([d,...y])),d.flags&131072)return n;const z=Sct();return z?xN(z,[n,d]):_t}const x=ca();for(const z of _)x.set(z.escapedName,Yge(z,!1));const k=Ls(c,x,et,et,yd(n));return k.objectFlags|=4194304,k}function Ri(n){return!!(n.flags&465829888)&&Cl(Gu(n)||_n,32768)}function mi(n){const a=Um(n,Ri)?pl(n,c=>c.flags&465829888?py(c):c):n;return hm(a,524288)}function Yi(n,a){const c=ds(n);return c?Kb(c,a):a}function ds(n){const a=Ds(n);if(a&&qL(a)&&a.flowNode){const c=es(n);if(c){const d=dt(Ah.createStringLiteral(c),n),_=ep(a)?a:Ah.createParenthesizedExpression(a),y=dt(Ah.createElementAccessExpression(_,d),n);return qa(d,y),qa(y,n),_!==a&&qa(_,y),y.flowNode=a.flowNode,y}}}function Ds(n){const 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 es(n){const a=n.parent;return n.kind===208&&a.kind===206?Gf(n.propertyName||n.name):n.kind===303||n.kind===304?Gf(n.name):""+a.elements.indexOf(n)}function Gf(n){const a=_v(n);return a.flags&384?""+a.value:void 0}function $_(n){const a=n.dotDotDotToken?32:0,c=Fr(n.parent.parent,a);return c&&Tg(n,c,!1)}function Tg(n,a,c){if(Nt(a))return a;const d=n.parent;Y&&n.flags&33554432&&UE(n)?a=yy(a):Y&&d.parent.initializer&&!_m(g4e(d.parent.initializer),65536)&&(a=hm(a,524288));let _;if(d.kind===206)if(n.dotDotDotToken){if(a=h_(a),a.flags&2||!j9(a))return qe(n,f.Rest_types_may_only_be_created_from_object_types),_t;const y=[];for(const x of d.elements)x.dotDotDotToken||y.push(x.propertyName||x.name);_=Wi(a,y,n.symbol)}else{const y=n.propertyName||n.name,x=_v(y),k=Mp(a,x,32,y);_=Yi(n,k)}else{const y=vv(65|(n.dotDotDotToken?0:128),a,Oe,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){const k=pl(a,z=>z.flags&58982400?py(z):z);_=up(k,Ba)?pl(k,z=>qM(z,x)):Vu(y)}else if(gv(a)){const k=g_(x),z=32|(c||r2(n)?16:0),H=Bb(a,k,z,n.name)||_t;_=Yi(n,H)}else _=y}return n.initializer?vu(Yx(n))?Y&&!_m(o2(n,0),16777216)?mi(_):_:$ee(n,ti([mi(_),o2(n,0)],2)):_}function sy(n){const a=d0(n);if(a)return bi(a)}function ly(n){const a=hs(n,!0);return a.kind===106||a.kind===80&&jm(a)===je}function Cb(n){const a=hs(n,!0);return a.kind===209&&a.elements.length===0}function cp(n,a=!1,c=!0){return Y&&c?qb(n,a):n}function BT(n,a,c){if(wi(n)&&n.parent.parent.kind===249){const x=Q_(uve(mo(n.parent.parent.expression,c)));return x.flags&4456448?e6e(x):ke}if(wi(n)&&n.parent.parent.kind===250){const x=n.parent.parent;return _B(x)||j}if(ta(n.parent))return $_(n);const d=Jo(n)&&!P_(n)||yp(n)||kae(n),_=a&&oP(n),y=ro(n);if(cj(n))return y?Nt(y)||y===_n?y:_t:ye?_n:j;if(y)return cp(y,d,_);if((pe||lr(n))&&wi(n)&&!ta(n.name)&&!(bte(n)&32)&&!(n.flags&33554432)){if(!(oS(n)&6)&&(!n.initializer||ly(n.initializer)))return ot;if(n.initializer&&Cb(n.initializer))return Jc}if(Ao(n)){const x=n.parent;if(x.kind===178&&SN(x)){const H=fl(Ir(n.parent),177);if(H){const re=fm(H),be=vbe(x);return be&&n===be?(N.assert(!be.type),dr(re.thisParameter)):ps(re)}}const k=Klt(x,n);if(k)return k;const z=n.symbol.escapedName==="this"?B4e(x):G4e(n);if(z)return cp(z,!1,_)}if(vS(n)&&n.initializer){if(lr(n)&&!Ao(n)){const k=Ua(n,Ir(n),WL(n));if(k)return k}const x=$ee(n,o2(n,c));return cp(x,d,_)}if(Jo(n)&&(pe||lr(n)))if(fc(n)){const x=nr(n.parent.members,Rl),k=x.length?cy(n.symbol,x):dd(n)&128?oee(n.symbol):void 0;return k&&cp(k,!0,_)}else{const x=oy(n.parent),k=x?Pb(n.symbol,x):dd(n)&128?oee(n.symbol):void 0;return k&&cp(k,!0,_)}if(F_(n))return Bn;if(ta(n.name))return P(n.name,!1,!0)}function gN(n){if(n.valueDeclaration&&mr(n.valueDeclaration)){const a=Xi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!WM(n)&&Zn(n.declarations,c=>mr(c)&&Cee(c)&&(c.left.kind!==212||nf(c.left.argumentExpression))&&!cc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function OM(n){const a=n.valueDeclaration;return a&&Jo(a)&&!vu(a)&&!a.initializer&&(pe||lr(a))}function WM(n){if(n.declarations)for(const a of n.declarations){const c=Fd(a,!1,!1);if(c&&(c.kind===176||nh(c)))return c}}function iE(n){const a=jn(n.declarations[0]),c=Vi(n.escapedName),d=n.declarations.every(y=>lr(y)&&ws(y)&&ng(y.expression)),_=d?w.createPropertyAccessExpression(w.createPropertyAccessExpression(w.createIdentifier("module"),w.createIdentifier("exports")),c):w.createPropertyAccessExpression(w.createIdentifier("exports"),c);return d&&qa(_.expression.expression,_.expression),qa(_.expression,_),qa(_,a),_.flowNode=a.endFlowNode,Kb(_,ot,Oe)}function cy(n,a){const c=uo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(const d of a){const _=w.createPropertyAccessExpression(w.createThis(),c);qa(_.expression,_),qa(_,d),_.flowNode=d.returnFlowNode;const y=yN(_,n);if(pe&&(y===ot||y===Jc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,vi(n),Un(y)),!up(y,J9))return n6(y)}}function Pb(n,a){const c=uo(n.escapedName,"__#")?w.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),d=w.createPropertyAccessExpression(w.createThis(),c);qa(d.expression,d),qa(d,a),d.flowNode=a.returnFlowNode;const _=yN(d,n);return pe&&(_===ot||_===Jc)&&qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,vi(n),Un(_)),up(_,J9)?void 0:n6(_)}function yN(n,a){const c=a?.valueDeclaration&&(!OM(a)||dd(a.valueDeclaration)&128)&&oee(a)||Oe;return Kb(n,ot,c)}function Jp(n,a){const c=kA(n.valueDeclaration);if(c){const k=lr(c)?u0(c):void 0;return k&&k.typeExpression?bi(k.typeExpression):n.valueDeclaration&&Ua(n.valueDeclaration,n,c)||$1(nc(c))}let d,_=!1,y=!1;if(gN(n)&&(d=Pb(n,WM(n))),!d){let k;if(n.declarations){let z;for(const H of n.declarations){const re=mr(H)||sa(H)?H:ws(H)?mr(H.parent)?H.parent:H:void 0;if(!re)continue;const be=ws(re)?GL(re):Bl(re);(be===4||mr(re)&&Cee(re,be))&&(FM(re)?_=!0:y=!0),sa(re)||(z=cc(z,re,n,H)),z||(k||(k=[])).push(mr(re)||sa(re)?oE(n,a,re,be):Vr)}d=z}if(!d){if(!Le(k))return _t;let z=_&&n.declarations?Mb(k,n.declarations):void 0;if(y){const re=oee(n);re&&((z||(z=[])).push(re),_=!0)}const H=bt(z,re=>!!(re.flags&-98305))?z:k;d=ti(H)}}const x=Xp(cp(d,!1,y&&!_));return n.valueDeclaration&&lr(n.valueDeclaration)&&uc(x,k=>!!(k.flags&-98305))===Vr?(hE(n.valueDeclaration,j),j):x}function Ua(n,a,c){var d,_;if(!lr(n)||!c||!Oa(c)||c.properties.length)return;const y=ca();for(;mr(n)||Wr(n);){const z=gf(n);(d=z?.exports)!=null&&d.size&&c_(y,z.exports),n=mr(n)?n.parent:n.parent.parent}const x=gf(n);(_=x?.exports)!=null&&_.size&&c_(y,x.exports);const k=Ls(a,y,et,et,et);return k.objectFlags|=4096,k}function cc(n,a,c,d){var _;const y=vu(a.parent);if(y){const x=Xp(bi(y));if(n)!Kt(n)&&!Kt(x)&&!_y(n,x)&&HWe(void 0,n,d,x);else return x}if((_=c.parent)!=null&&_.valueDeclaration){const x=W1(c.parent);if(x.valueDeclaration){const k=vu(x.valueDeclaration);if(k){const z=va(bi(k),c.escapedName);if(z)return kb(z)}}}return n}function oE(n,a,c,d){if(sa(c)){if(a)return dr(a);const x=nc(c.arguments[2]),k=Ke(x,"value");if(k)return k;const z=Ke(x,"get");if(z){const re=sA(z);if(re)return ps(re)}const H=Ke(x,"set");if(H){const re=sA(H);if(re)return Pve(re)}return j}if(fx(c.left,c.right))return j;const _=d===1&&(Wr(c.left)||Qs(c.left))&&(ng(c.left.expression)||Ve(c.left.expression)&&IS(c.left.expression)),y=a?dr(a):_?bd(nc(c.right)):$1(nc(c.right));if(y.flags&524288&&d===2&&n.escapedName==="export="){const x=__(y),k=ca();R4(x.members,k);const z=k.size;a&&!a.exports&&(a.exports=ca()),(a||n).exports.forEach((re,be)=>{var ge;const Je=k.get(be);if(Je&&Je!==re&&!(re.flags&2097152))if(re.flags&111551&&Je.flags&111551){if(re.valueDeclaration&&Je.valueDeclaration&&jn(re.valueDeclaration)!==jn(Je.valueDeclaration)){const Dt=Vi(re.escapedName),an=((ge=ii(Je.valueDeclaration,sd))==null?void 0:ge.name)||Je.valueDeclaration;wa(qe(re.valueDeclaration,f.Duplicate_identifier_0,Dt),kr(an,f._0_was_also_declared_here,Dt)),wa(qe(an,f.Duplicate_identifier_0,Dt),kr(re.valueDeclaration,f._0_was_also_declared_here,Dt))}const gt=Xa(re.flags|Je.flags,be);gt.links.type=ti([dr(re),dr(Je)]),gt.valueDeclaration=Je.valueDeclaration,gt.declarations=So(Je.declarations,re.declarations),k.set(be,gt)}else k.set(be,um(re,Je));else k.set(be,re)});const H=Ls(z!==k.size?void 0:x.symbol,k,x.callSignatures,x.constructSignatures,x.indexInfos);if(z===k.size&&(y.aliasSymbol&&(H.aliasSymbol=y.aliasSymbol,H.aliasTypeArguments=y.aliasTypeArguments),Or(y)&4)){H.aliasSymbol=y.symbol;const re=Js(y);H.aliasTypeArguments=Le(re)?re:void 0}return H.objectFlags|=Or(y)&4096,H.symbol&&H.symbol.flags&32&&y===Vf(H.symbol)&&(H.objectFlags|=16777216),H}return see(y)?(hE(c,ec),ec):y}function fx(n,a){return Wr(n)&&n.expression.kind===110&&NP(a,c=>Iu(n,c))}function FM(n){const a=Fd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!VL(a.parent)}function Mb(n,a){return N.assert(n.length===a.length),n.filter((c,d)=>{const _=a[d],y=mr(_)?_:mr(_.parent)?_.parent:void 0;return y&&FM(y)})}function zM(n,a,c){if(n.initializer){const d=ta(n.name)?P(n.name,!0,!1):_n;return cp($ee(n,o2(n,c?0:1,d)))}return ta(n.name)?P(n.name,a,c):(c&&!vr(n)&&hE(n,j),a?yn:j)}function or(n,a,c){const d=ca();let _,y=131200;Xe(n.elements,k=>{const z=k.propertyName||k.name;if(k.dotDotDotToken){_=Gh(ke,j,!1);return}const H=_v(z);if(!rm(H)){y|=512;return}const re=im(H),be=4|(k.initializer?16777216:0),ge=Xa(be,re);ge.links.type=zM(k,a,c),ge.links.bindingElement=k,d.set(ge.escapedName,ge)});const x=Ls(void 0,d,et,et,_?[_]:et);return x.objectFlags|=y,a&&(x.pattern=n,x.objectFlags|=131072),x}function b(n,a,c){const d=n.elements,_=tl(d),y=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(d.length===0||d.length===1&&y)return se>=2?F8e(j):ec;const x=Ot(d,re=>jc(re)?j:zM(re,a,c)),k=Bi(d,re=>!(re===y||jc(re)||r2(re)),d.length-1)+1,z=Ot(d,(re,be)=>re===y?4:be>=k?2:1);let H=Vh(x,z);return a&&(H=v8e(H),H.pattern=n,H.objectFlags|=131072),H}function P(n,a=!1,c=!1){return n.kind===206?or(n,a,c):b(n,a,c)}function B(n,a){return Xt(BT(n,!0,0),n,a)}function ce(n){const a=ei(n);if(!a.resolvedType){const c=Xa(4096,"__importAttributes"),d=ca();Xe(n.elements,y=>{const x=Xa(4,Q3(y));x.parent=c,x.links.type=_yt(y),x.links.target=x,d.set(x.escapedName,x)});const _=Ls(c,d,et,et,et);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Qe(n){const a=gf(n),c=uct(!1);return c&&a&&a===c}function Xt(n,a,c){return n?(n.flags&4096&&Qe(a.parent)&&(n=$ge(a)),c&&_ee(a,n),n.flags&8192&&(Qa(a)||!a.type)&&n.symbol!==Ir(a)&&(n=Ai),Xp(n)):(n=Ao(a)&&a.dotDotDotToken?ec:j,c&&(vr(a)||hE(a,n)),n)}function vr(n){const a=C_(n),c=a.kind===169?a.parent:a;return uB(c)}function ro(n){const a=vu(n);if(a)return bi(a)}function qs(n){let a=n.valueDeclaration;return a?(Qa(a)&&(a=Yx(a)),Ao(a)?QZ(a.parent):!1):!1}function p_(n,a){const c=Xi(n);if(!c.type){const d=Lb(n,a);return!c.type&&!qs(n)&&!a&&(c.type=d),d}return c.type}function Lb(n,a){if(n.flags&4194304)return xe(n);if(n===yt)return j;if(n.flags&134217728&&n.valueDeclaration){const _=Ir(jn(n.valueDeclaration)),y=Xa(_.flags,"exports");y.declarations=_.declarations?_.declarations.slice():[],y.parent=n,y.links.target=_,_.valueDeclaration&&(y.valueDeclaration=_.valueDeclaration),_.members&&(y.members=new Map(_.members)),_.exports&&(y.exports=new Map(_.exports));const x=ca();return x.set("exports",y),Ls(n,x,et,et,et)}N.assertIsDefined(n.valueDeclaration);const c=n.valueDeclaration;if($i(c)&&Qf(c))return c.statements.length?Xp($1(mo(c.statements[0].expression))):La;if(Ov(c))return sE(n);if(!Wh(n,0))return n.flags&512&&!(n.flags&67108864)?BM(n):Qa(c)&&a===1?_t:vN(n);let d;if(c.kind===277)d=Xt(ro(c)||nc(c.expression),c);else if(mr(c)||lr(c)&&(sa(c)||(Wr(c)||r3(c))&&mr(c.parent)))d=Jp(n);else if(Wr(c)||Qs(c)||Ve(c)||ls(c)||gp(c)||Ic(c)||Ac(c)||ql(c)&&!xm(c)||vh(c)||$i(c)){if(n.flags&9136)return BM(n);d=mr(c.parent)?Jp(n):ro(c)||j}else if(_c(c))d=ro(c)||gWe(c);else if(F_(c))d=ro(c)||Z4e(c);else if(rp(c))d=ro(c)||s2(c.name,0);else if(xm(c))d=ro(c)||yWe(c,0);else if(Ao(c)||Jo(c)||yp(c)||wi(c)||Qa(c)||pC(c))d=B(c,!0);else if(I0(c))d=BM(n);else if(c1(c))d=IZ(n);else return N.fail("Unhandled declaration kind! "+N.formatSyntaxKind(c.kind)+" for "+N.formatSymbol(n));return Y_()?d:n.flags&512&&!(n.flags&67108864)?BM(n):Qa(c)&&a===1?d:vN(n)}function Vm(n){if(n)switch(n.kind){case 177:return nm(n);case 178:return Bie(n);case 172:return N.assert(P_(n)),vu(n)}}function aE(n){const a=Vm(n);return a&&bi(a)}function TZ(n){const a=vbe(n);return a&&a.symbol}function Xhe(n){return dE(fm(n))}function sE(n){const a=Xi(n);if(!a.type){if(!Wh(n,0))return _t;const c=fl(n,177),d=fl(n,178),_=ii(fl(n,172),Wd);let y=c&&lr(c)&&sy(c)||aE(c)||aE(d)||aE(_)||c&&c.body&&Kee(c)||_&&_.initializer&&B(_,!0);y||(d&&!uB(d)?_u(pe,d,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,vi(n)):c&&!uB(c)?_u(pe,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,vi(n)):_&&!uB(_)&&_u(pe,_,f.Member_0_implicitly_has_an_1_type,vi(n),"any"),y=j),Y_()||(Vm(c)?qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,vi(n)):Vm(d)||Vm(_)?qe(d,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,vi(n)):c&&pe&&qe(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,vi(n)),y=j),a.type=y}return a.type}function e9(n){const a=Xi(n);if(!a.writeType){if(!Wh(n,8))return _t;const c=fl(n,178)??ii(fl(n,172),Wd);let d=aE(c);Y_()||(Vm(c)&&qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,vi(n)),d=j),a.writeType=d||sE(n)}return a.writeType}function AZ(n){const a=Cp(Vf(n));return a.flags&8650752?a:a.flags&2097152?An(a.types,c=>!!(c.flags&8650752)):void 0}function BM(n){let a=Xi(n);const c=a;if(!a.type){const d=n.valueDeclaration&&qee(n.valueDeclaration,!1);if(d){const _=Ive(n,d);_&&(n=_,a=_.links)}c.type=a.type=t9(n)}return a.type}function t9(n){const a=n.valueDeclaration;if(n.flags&1536&&bC(n))return j;if(a&&(a.kind===226||ws(a)&&a.parent.kind===226))return Jp(n);if(n.flags&512&&a&&$i(a)&&a.commonJsModuleIndicator){const d=Dp(n);if(d!==n){if(!Wh(n,0))return _t;const _=rs(n.exports.get("export=")),y=Jp(_,_===d?void 0:d);return Y_()?y:vN(n)}}const c=zf(16,n);if(n.flags&32){const d=AZ(n);return d?ba([c,d]):c}else return Y&&n.flags&16777216?qb(c,!0):c}function IZ(n){const a=Xi(n);return a.type||(a.type=FOe(n))}function xZ(n){const a=Xi(n);if(!a.type){if(!Wh(n,0))return _t;const c=Fc(n),d=n.declarations&&Hp(Fm(n),!0),_=qt(d?.declarations,y=>kl(y)?ro(y):void 0);if(a.type=d?.declarations&&dte(d.declarations)&&n.declarations.length?iE(d):dte(n.declarations)?ot:_||(Au(c)&111551?dr(c):_t),!Y_())return vN(d??n),a.type=_t}return a.type}function Yhe(n){const a=Xi(n);return a.type||(a.type=so(dr(a.target),a.mapper))}function $he(n){const a=Xi(n);return a.writeType||(a.writeType=so(j1(a.target),a.mapper))}function vN(n){const a=n.valueDeclaration;if(a){if(vu(a))return qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,vi(n)),_t;pe&&(a.kind!==169||a.initializer)&&qe(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,vi(n))}else if(n.flags&2097152){const c=Fm(n);c&&qe(c,f.Circular_definition_of_import_alias_0,vi(n))}return j}function RZ(n){const a=Xi(n);return a.type||(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ti(a.deferralConstituents):ba(a.deferralConstituents)),a.type}function n9(n){const a=Xi(n);return!a.writeType&&a.deferralWriteConstituents&&(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ti(a.deferralWriteConstituents):ba(a.deferralWriteConstituents)),a.writeType}function j1(n){const a=xl(n);return n.flags&4?a&2?a&65536?n9(n)||RZ(n):n.links.writeType||n.links.type:Jb(dr(n),!!(n.flags&16777216)):n.flags&98304?a&1?$he(n):e9(n):dr(n)}function dr(n,a){const c=xl(n);return c&65536?RZ(n):c&1?Yhe(n):c&262144?Nlt(n):c&8192?jdt(n):n.flags&7?p_(n,a):n.flags&9136?BM(n):n.flags&8?IZ(n):n.flags&98304?sE(n):n.flags&2097152?xZ(n):_t}function kb(n){return Jb(dr(n),!!(n.flags&16777216))}function wb(n,a){return n!==void 0&&a!==void 0&&(Or(n)&4)!==0&&n.target===a}function dv(n){return Or(n)&4?n.target:n}function bN(n,a){return c(n);function c(d){if(Or(d)&7){const _=dv(d);return _===a||bt(Pp(_),c)}else if(d.flags&2097152)return bt(d.types,c);return!1}}function lE(n,a){for(const c of a)n=Ng(n,GT(Ir(c)));return n}function Cn(n,a){for(;;){if(n=n.parent,n&&mr(n)){const c=Bl(n);if(c===6||c===3){const d=Ir(n.left);d&&d.parent&&!Gn(d.parent.valueDeclaration,_=>n===_)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const d=Cn(n,a);if(n.kind===200)return xn(d,GT(Ir(n.typeParameter)));if(n.kind===194)return So(d,d6e(n));const _=lE(d,kv(n)),y=a&&(n.kind===263||n.kind===231||n.kind===264||nh(n))&&Vf(Ir(n)).thisType;return y?xn(_,y):_}case 348:const c=KL(n);c&&(n=c.valueDeclaration);break;case 327:{const d=Cn(n,a);return n.tags?lE(d,Pi(n.tags,_=>sm(_)?_.typeParameters:void 0)):d}}}}function Gr(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;const _=d.initializer;return!!_&&(_.kind===218||_.kind===219)});return N.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Cn(c)}function Lr(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||nh(c)||HL(c))&&(a=lE(a,kv(c)));return a}function Fi(n){return So(Gr(n),Lr(n))}function Mi(n){const a=Yo(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Yu(c)){const d=tB(c.parameters[0]);return Nt(d)||C9(d)===j}}return!1}function is(n){if(Yo(n,1).length>0)return!0;if(n.flags&8650752){const a=Gu(n);return!!a&&Mi(a)}return!1}function Is(n){const a=zg(n.symbol);return a&&D_(a)}function td(n,a,c){const d=Le(a),_=lr(c);return nr(Yo(n,1),y=>(_||d>=Bh(y.typeParameters))&&d<=Le(y.typeParameters))}function Fh(n,a,c){const d=td(n,a,c),_=Ot(a,bi);return eo(d,y=>bt(y.typeParameters)?T8(y,_,lr(c)):y)}function Cp(n){if(!n.resolvedBaseConstructorType){const a=zg(n.symbol),c=a&&D_(a),d=Is(n);if(!d)return n.resolvedBaseConstructorType=Oe;if(!Wh(n,1))return _t;const _=mo(d.expression);if(c&&d!==c&&(N.assert(!c.typeArguments),mo(c.expression)),_.flags&2621440&&__(_),!Y_())return qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,vi(n.symbol)),n.resolvedBaseConstructorType=_t;if(!(_.flags&1)&&_!==Ge&&!is(_)){const y=qe(d.expression,f.Type_0_is_not_a_constructor_function_type,Un(_));if(_.flags&262144){const x=jM(_);let k=_n;if(x){const z=Yo(x,1);z[0]&&(k=ps(z[0]))}_.symbol.declarations&&wa(y,kr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,vi(_.symbol),Un(k)))}return n.resolvedBaseConstructorType=_t}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function f_(n){let a=et;if(n.symbol.declarations)for(const c of n.symbol.declarations){const d=TR(c);if(d)for(const _ of d){const y=bi(_);Kt(y)||(a===et?a=[y]:a.push(y))}}return a}function uy(n,a){qe(n,f.Type_0_recursively_references_itself_as_a_base_type,Un(a,void 0,2))}function Pp(n){if(!n.baseTypesResolved){if(Wh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[EN(n)]:n.symbol.flags&96?(n.symbol.flags&32&&y8(n),n.symbol.flags&64&&ilt(n)):N.fail("type must be class or interface"),!Y_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&uy(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function EN(n){const a=eo(n.typeParameters,(c,d)=>n.elementFlags[d]&8?Mp(c,Tt):c);return Vu(ti(a||et),n.readonly)}function y8(n){n.resolvedBaseTypes=Z3;const a=Ld(Cp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;const c=Is(n);let d;const _=a.symbol?el(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&rlt(_))d=b8e(c,a.symbol);else if(a.flags&1)d=a;else{const x=Fh(a,c.typeArguments,c);if(!x.length)return qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=ps(x[0])}if(Kt(d))return n.resolvedBaseTypes=et;const y=h_(d);if(!r9(y)){const x=dge(void 0,d),k=jo(x,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Un(y));return ts.add(wg(jn(c.expression),c.expression,k)),n.resolvedBaseTypes=et}return n===y||bN(y,n)?(qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Un(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===Z3&&(n.members=void 0),n.resolvedBaseTypes=[y])}function rlt(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,d=Js(n);return a[c].symbol!==d[c].symbol}return!0}function r9(n){if(n.flags&262144){const a=Gu(n);if(a)return r9(a)}return!!(n.flags&67633153&&!Kd(n)||n.flags&2097152&&Zn(n.types,r9))}function ilt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&CC(a))for(const c of CC(a)){const d=h_(bi(c));Kt(d)||(r9(d)?n!==d&&!bN(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):uy(a,n):qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function olt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const c=CC(a);if(c){for(const d of c)if(Gl(d.expression)){const _=Hs(d.expression,788968,!0);if(!_||!(_.flags&64)||Vf(_).thisType)return!1}}}return!0}function Vf(n){let a=Xi(n);const c=a;if(!a.declaredType){const d=n.flags&32?1:2,_=Ive(n,n.valueDeclaration&&Jmt(n.valueDeclaration));_&&(n=_,a=_.links);const y=c.declaredType=a.declaredType=zf(d,n),x=Gr(n),k=Lr(n);(x||k||d===1||!olt(n))&&(y.objectFlags|=4,y.typeParameters=So(x,k),y.outerTypeParameters=x,y.localTypeParameters=k,y.instantiations=new Map,y.instantiations.set(mm(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=vf(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function wOe(n){var a;const c=Xi(n);if(!c.declaredType){if(!Wh(n,2))return _t;const d=N.checkDefined((a=n.declarations)==null?void 0:a.find(HL),"Type alias symbol with no valid declaration found"),_=Zf(d)?d.typeExpression:d.type;let y=_?bi(_):_t;if(Y_()){const x=Lr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(mm(x),y))}else y=_t,d.kind===347?qe(d.typeExpression.type,f.Type_alias_0_circularly_references_itself,vi(n)):qe(sd(d)&&d.name||d,f.Type_alias_0_circularly_references_itself,vi(n));c.declaredType=y}return c.declaredType}function DZ(n){return n.flags&1056&&n.symbol.flags&8?el(Cd(n.symbol)):n}function OOe(n){const a=Xi(n);if(!a.declaredType){const c=[];if(n.declarations){for(const _ of n.declarations)if(_.kind===266){for(const y of _.members)if(SN(y)){const x=Ir(y),k=VN(y),z=vx(k!==void 0?Aut(k,Ta(n),x):WOe(x));Xi(x).declaredType=z,c.push(bd(z))}}}const d=c.length?ti(c,1,n,void 0):WOe(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function WOe(n){const a=Sg(32,n),c=Sg(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function FOe(n){const a=Xi(n);if(!a.declaredType){const c=OOe(Cd(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function GT(n){const a=Xi(n);return a.declaredType||(a.declaredType=vf(n))}function alt(n){const a=Xi(n);return a.declaredType||(a.declaredType=el(Fc(n)))}function el(n){return zOe(n)||_t}function zOe(n){if(n.flags&96)return Vf(n);if(n.flags&524288)return wOe(n);if(n.flags&262144)return GT(n);if(n.flags&384)return OOe(n);if(n.flags&8)return FOe(n);if(n.flags&2097152)return alt(n)}function i9(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 i9(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(i9)}return!1}function slt(n){const a=Qx(n);return!a||i9(a)}function BOe(n){const a=vu(n);return a?i9(a):!zv(n)}function llt(n){const a=nm(n),c=kv(n);return(n.kind===176||!!a&&i9(a))&&n.parameters.every(BOe)&&c.every(slt)}function clt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return BOe(a);case 174:case 173:case 176:case 177:case 178:return llt(a)}}return!1}function GOe(n,a,c){const d=ca();for(const _ of n)d.set(_.escapedName,c&&clt(_)?_:eye(_,a));return d}function VOe(n,a){for(const c of a){if(jOe(c))continue;const d=n.get(c.escapedName);(!d||d.valueDeclaration&&mr(d.valueDeclaration)&&!gN(d)&&!_ie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function jOe(n){return!!n.valueDeclaration&&ld(n.valueDeclaration)&&aa(n.valueDeclaration)}function Qhe(n){if(!n.declaredProperties){const a=n.symbol,c=Ob(a);n.declaredProperties=tE(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=U1(c.get("__call")),n.declaredConstructSignatures=U1(c.get("__new")),n.declaredIndexInfos=h8e(a)}return n}function Zhe(n){if(!Za(n)&&!Qs(n))return!1;const a=Za(n)?n.expression:n.argumentExpression;return Gl(a)&&rm(Za(n)?xg(n):nc(a))}function v8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function o9(n){const a=Mo(n);return!!a&&Zhe(a)}function SN(n){return!jv(n)||o9(n)}function ult(n){return u3(n)&&!Zhe(n)}function dlt(n,a,c){N.assert(!!(xl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Xi(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 UOe(n,a,c,d){N.assert(!!d.symbol,"The member is expected to have a symbol.");const _=ei(d);if(!_.resolvedSymbol){_.resolvedSymbol=d.symbol;const y=mr(d)?d.left:d.name,x=Qs(y)?nc(y.argumentExpression):xg(y);if(rm(x)){const k=im(x),z=d.symbol.flags;let H=c.get(k);H||c.set(k,H=Xa(0,k,4096));const re=a&&a.get(k);if(!(n.flags&32)&&(H.flags&bT(z)||re)){const be=re?So(re.declarations,H.declarations):H.declarations,ge=!(x.flags&8192)&&Vi(k)||Rs(y);Xe(be,Je=>qe(Mo(Je)||Je,f.Property_0_was_also_declared_here,ge)),qe(y||d,f.Duplicate_property_0,ge),H=Xa(0,k,4096)}return H.links.nameType=x,dlt(H,d,z),H.parent?N.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,_.resolvedSymbol=H}}return _.resolvedSymbol}function ege(n,a){const c=Xi(n);if(!c[a]){const d=a==="resolvedExports",_=d?n.flags&1536?wT(n).exports:n.exports:n.members;c[a]=_||K;const y=ca();for(const z of n.declarations||et){const H=sie(z);if(H)for(const re of H)d===fc(re)&&o9(re)&&UOe(n,_,y,re)}const x=W1(n).assignmentDeclarationMembers;if(x){const z=zo(x.values());for(const H of z){const re=Bl(H),be=re===3||mr(H)&&Cee(H,re)||re===9||re===6;d===!be&&o9(H)&&UOe(n,_,y,H)}}let k=nx(_,y);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const z of n.declarations){const H=Xi(z.symbol)[a];if(!k){k=H;continue}H&&H.forEach((re,be)=>{const ge=k.get(be);if(!ge)k.set(be,re);else{if(ge===re)return;k.set(be,um(ge,re))}})}c[a]=k||K}return c[a]}function Ob(n){return n.flags&6256?ege(n,"resolvedMembers"):n.members||K}function NZ(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Xi(n);if(!a.lateSymbol&&bt(n.declarations,o9)){const c=rs(n.parent);bt(n.declarations,fc)?Np(c):Ob(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Kp(n,a,c){if(Or(n)&4){const d=n.target,_=Js(n);return Le(d.typeParameters)===Le(_)?fv(d,So(_,[a||d.thisType])):n}else if(n.flags&2097152){const d=eo(n.types,_=>Kp(_,a,c));return d!==n.types?ba(d):n}return c?Ld(n):n}function HOe(n,a,c,d){let _,y,x,k,z;QB(c,d,0,c.length)?(y=a.symbol?Ob(a.symbol):ca(a.declaredProperties),x=a.declaredCallSignatures,k=a.declaredConstructSignatures,z=a.declaredIndexInfos):(_=Lp(c,d),y=GOe(a.declaredProperties,_,c.length===1),x=YZ(a.declaredCallSignatures,_),k=YZ(a.declaredConstructSignatures,_),z=g6e(a.declaredIndexInfos,_));const H=Pp(a);if(H.length){if(a.symbol&&y===Ob(a.symbol)){const be=ca(a.declaredProperties),ge=vge(a.symbol);ge&&be.set("__index",ge),y=be}bf(n,y,x,k,z);const re=tl(d);for(const be of H){const ge=re?Kp(so(be,_),re):be;VOe(y,gs(ge)),x=So(x,Yo(ge,0)),k=So(k,Yo(ge,1));const Je=ge!==j?yd(ge):[Gh(ke,j,!1)];z=So(z,nr(Je,gt=>!pge(z,gt.keyType)))}}bf(n,y,x,k,z)}function plt(n){HOe(n,Qhe(n),et,et)}function flt(n){const a=Qhe(n.target),c=So(a.typeParameters,[a.thisType]),d=Js(n),_=d.length===c.length?d:So(d,[n]);HOe(n,a,c,_)}function Ag(n,a,c,d,_,y,x,k){const z=new h(Qt,k);return z.declaration=n,z.typeParameters=a,z.parameters=d,z.thisParameter=c,z.resolvedReturnType=_,z.resolvedTypePredicate=y,z.minArgumentCount=x,z.resolvedMinArgumentCount=void 0,z.target=void 0,z.mapper=void 0,z.compositeSignatures=void 0,z.compositeKind=void 0,z}function b8(n){const a=Ag(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 qOe(n,a){const c=b8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function mlt(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=_lt(n,a))}function _lt(n,a){N.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.");const c=b8(n);return c.flags|=a,c}function JOe(n,a){if(Yu(n)){const _=n.parameters.length-1,y=n.parameters[_].escapedName,x=dr(n.parameters[_]);if(Ba(x))return[c(x,_,y)];if(!a&&x.flags&1048576&&Zn(x.types,Ba))return Ot(x.types,k=>c(k,_,y))}return[n.parameters];function c(_,y,x){const k=Js(_),z=d(_,x),H=Ot(k,(re,be)=>{const ge=z&&z[be]?z[be]:i2(n,y+be,_),Je=_.target.elementFlags[be],gt=Je&12?32768:Je&2?16384:0,Dt=Xa(1,ge,gt);return Dt.links.type=Je&4?Vu(re):re,Dt});return So(n.parameters.slice(0,y),H)}function d(_,y){const x=new Map;return Ot(_.target.labeledElementDeclarations,(k,z)=>{const H=Cve(k,z,y),re=x.get(H);return re===void 0?(x.set(H,1),H):(x.set(H,re+1),`${H}_${re}`)})}}function hlt(n){const a=Cp(n),c=Yo(a,1),d=zg(n.symbol),_=!!d&&Zr(d,64);if(c.length===0)return[Ag(void 0,n.localTypeParameters,void 0,et,n,void 0,0,_?4:0)];const y=Is(n),x=lr(y),k=f9(y),z=Le(k),H=[];for(const re of c){const be=Bh(re.typeParameters),ge=Le(re.typeParameters);if(x||z>=be&&z<=ge){const Je=ge?kZ(re,Fb(k,re.typeParameters,be,x)):b8(re);Je.typeParameters=n.localTypeParameters,Je.resolvedReturnType=n,Je.flags=_?Je.flags|4:Je.flags&-5,H.push(Je)}}return H}function CZ(n,a,c,d,_){for(const y of n)if(D9(y,a,c,d,_,c?jut:M8))return y}function glt(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_1&&(c=c===void 0?d:-1);for(const _ of n[d])if(!a||!CZ(a,_,!1,!1,!0)){const y=glt(n,_,d);if(y){let x=_;if(y.length>1){let k=_.thisParameter;const z=Xe(y,H=>H.thisParameter);if(z){const H=ba(Hi(y,re=>re.thisParameter&&dr(re.thisParameter)));k=ZT(z,H)}x=qOe(_,y),x.thisParameter=k}(a||(a=[])).push(x)}}}if(!Le(a)&&c!==-1){const d=n[c!==void 0?c:0];let _=d.slice();for(const y of n)if(y!==d){const x=y[0];if(N.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=x.typeParameters&&bt(_,k=>!!k.typeParameters&&!KOe(x.typeParameters,k.typeParameters))?void 0:Ot(_,k=>blt(k,x)),!_)break}a=_}return a||et}function KOe(n,a){if(Le(n)!==Le(a))return!1;if(!n||!a)return!0;const c=Lp(a,n);for(let d=0;d=_?n:a,x=y===n?a:n,k=y===n?d:_,z=Uh(n)||Uh(a),H=z&&!Uh(y),re=new Array(k+(H?1:0));for(let be=0;be=rh(y)&&be>=rh(x),cn=be>=d?void 0:i2(n,be),ar=be>=_?void 0:i2(a,be),On=cn===ar?cn:cn?ar?void 0:cn:ar,ln=Xa(1|(an&&!Dt?16777216:0),On||`arg${be}`,Dt?32768:an?16384:0);ln.links.type=Dt?Vu(gt):gt,re[be]=ln}if(H){const be=Xa(1,"args",32768);be.links.type=Vu(v_(x,k)),x===a&&(be.links.type=so(be.links.type,c)),re[k]=be}return re}function blt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=Lp(a.typeParameters,n.typeParameters));const _=n.declaration,y=vlt(n,a,d),x=ylt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=Ag(_,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=1048576,z.compositeSignatures=So(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?z.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Y1(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(z.mapper=n.mapper),z}function XOe(n){const a=yd(n[0]);if(a){const c=[];for(const d of a){const _=d.keyType;Zn(n,y=>!!Ig(y,_))&&c.push(Gh(_,ti(Ot(n,y=>uE(y,_))),bt(n,y=>Ig(y,_).isReadonly)))}return c}return et}function Elt(n){const a=tge(Ot(n.types,_=>_===Wt?[un]:Yo(_,0))),c=tge(Ot(n.types,_=>Yo(_,1))),d=XOe(n.types);bf(n,K,a,c,d)}function a9(n,a){return n?a?ba([n,a]):n:a}function YOe(n){const a=au(n,d=>Yo(d,1).length>0),c=Ot(n,Mi);if(a>0&&a===au(c,d=>d)){const d=c.indexOf(!0);c[d]=!1}return c}function Slt(n,a,c,d){const _=[];for(let y=0;yk);for(let k=0;k<_.length;k++){const z=n.types[k];if(!y[k]){let H=Yo(z,1);H.length&&x>0&&(H=Ot(H,re=>{const be=b8(re);return be.resolvedReturnType=Slt(ps(re),_,y,k),be})),c=$Oe(c,H)}a=$Oe(a,Yo(z,0)),d=id(yd(z),(H,re)=>QOe(H,re,!1),d)}bf(n,K,a||et,c||et,d||et)}function $Oe(n,a){for(const c of a)(!n||Zn(n,d=>!D9(d,c,!1,!1,!1,M8)))&&(n=xn(n,c));return n}function QOe(n,a,c){if(n)for(let d=0;d{var z;!(k.flags&418)&&!(k.flags&512&&((z=k.declarations)!=null&&z.length)&&Zn(k.declarations,ku))&&x.set(k.escapedName,k)}),c=x}let _;if(bf(n,c,et,et,et),a.flags&32){const x=Vf(a),k=Cp(x);k.flags&11272192?(c=ca(WT(c)),VOe(c,gs(k))):k===j&&(_=Gh(ke,j,!1))}const y=wZ(c);if(y?d=bge(y):(_&&(d=xn(d,_)),a.flags&384&&(el(a).flags&32||bt(n.properties,x=>!!(dr(x).flags&296)))&&(d=xn(d,jr))),bf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=U1(a)),a.flags&32){const x=Vf(a);let k=a.members?U1(a.members.get("__constructor")):et;a.flags&16&&(k=qr(k.slice(),Hi(n.callSignatures,z=>nh(z.declaration)?Ag(z.declaration,z.typeParameters,z.thisParameter,z.parameters,x,void 0,z.minArgumentCount,z.flags&167):void 0))),k.length||(k=hlt(x)),n.constructSignatures=k}}function Ilt(n,a,c){return so(n,Lp([a.indexType,a.objectType],[g_(0),Vh([c])]))}function xlt(n){const a=Ef(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const d=ba(c.types.filter(_=>_!==n.constraintType));return d!==Vr?d:void 0}function Rlt(n){const a=Ig(n.source,ke),c=zh(n.mappedType),d=!(c&1),_=c&4?0:16777216,y=a?[Gh(ke,gee(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=ca(),k=xlt(n);for(const z of gs(n.source)){if(k){const be=DN(z,8576);if(!Ea(be,k))continue}const H=8192|(d&&b_(z)?8:0),re=Xa(4|z.flags&_,z.escapedName,H);if(re.declarations=z.declarations,re.links.nameType=Xi(z).nameType,re.links.propertyType=dr(z),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const be=n.constraintType.type.objectType,ge=Ilt(n.mappedType,n.constraintType.type,be);re.links.mappedType=ge,re.links.constraintType=Q_(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;x.set(z.escapedName,re)}bf(n,x,et,et,y)}function s9(n){if(n.flags&4194304){const a=Ld(n.type);return Hb(a)?V8e(a):Q_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=s9(a);if(c!==a)return nye(n,$T(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return pl(n,s9,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===sc?n:ba(eo(n.types,s9))}return n}function nge(n){return xl(n)&4096}function rge(n,a,c,d){for(const _ of gs(n))d(DN(_,a));if(n.flags&1)d(ke);else for(const _ of yd(n))(!c||_.keyType.flags&134217732)&&d(_.keyType)}function Dlt(n){const a=ca();let c;bf(n,K,et,et,et);const d=m_(n),_=Ef(n),y=n.target||n,x=pv(y),k=PZ(y)!==2,z=dy(y),H=Ld(VT(n)),re=zh(n),be=Me?128:8576;TN(n)?rge(H,be,Me,ge):rA(s9(_),ge),bf(n,a,et,et,c||et);function ge(gt){const Dt=x?so(x,N8(n.mapper,d,gt)):gt;rA(Dt,an=>Je(gt,an))}function Je(gt,Dt){if(rm(Dt)){const an=im(Dt),cn=a.get(an);if(cn)cn.links.nameType=ti([cn.links.nameType,Dt]),cn.links.keyType=ti([cn.links.keyType,gt]);else{const ar=rm(gt)?va(H,im(gt)):void 0,On=!!(re&4||!(re&8)&&ar&&ar.flags&16777216),ln=!!(re&1||!(re&2)&&ar&&b_(ar)),zn=Y&&!On&&ar&&ar.flags&16777216,Fn=ar?nge(ar):0,er=Xa(4|(On?16777216:0),an,Fn|262144|(ln?8:0)|(zn?524288:0));er.links.mappedType=n,er.links.nameType=Dt,er.links.keyType=gt,ar&&(er.links.syntheticOrigin=ar,er.declarations=k?ar.declarations:void 0),a.set(an,er)}}else if(OZ(Dt)||Dt.flags&33){const an=Dt.flags&5?ke:Dt.flags&40?Tt:Dt,cn=so(z,N8(n.mapper,d,gt)),ar=E8(H,Dt),On=!!(re&1||!(re&2)&&ar?.isReadonly),ln=Gh(an,cn,On);c=QOe(c,ln,!0)}}}function Nlt(n){if(!n.links.type){const a=n.links.mappedType;if(!Wh(n,0))return a.containsError=!0,_t;const c=dy(a.target||a),d=N8(a.mapper,m_(a),n.links.keyType),_=so(c,d);let y=Y&&n.flags&16777216&&!Cl(_,49152)?qb(_,!0):n.links.checkFlags&524288?pee(_):_;Y_()||(qe(C,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,vi(n),Un(a)),y=_t),n.links.type=y}return n.links.type}function m_(n){return n.typeParameter||(n.typeParameter=GT(Ir(n.declaration.typeParameter)))}function Ef(n){return n.constraintType||(n.constraintType=Md(m_(n))||_t)}function pv(n){return n.declaration.nameType?n.nameType||(n.nameType=so(bi(n.declaration.nameType),n.mapper)):void 0}function dy(n){return n.templateType||(n.templateType=n.declaration.type?so(cp(bi(n.declaration.type),!0,!!(zh(n)&4)),n.mapper):_t)}function ZOe(n){return Qx(n.declaration.typeParameter)}function TN(n){const a=ZOe(n);return a.kind===198&&a.operator===143}function VT(n){if(!n.modifiersType)if(TN(n))n.modifiersType=so(bi(ZOe(n).type),n.mapper);else{const a=qge(n.declaration),c=Ef(a),d=c&&c.flags&262144?Md(c):c;n.modifiersType=d&&d.flags&4194304?so(d.type,n.mapper):_n}return n.modifiersType}function zh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function e8e(n){const a=zh(n);return a&8?-1:a&4?1:0}function ige(n){const a=e8e(n),c=VT(n);return a||(Kd(c)?e8e(c):0)}function Clt(n){return!!(Or(n)&32&&zh(n)&4)}function Kd(n){if(Or(n)&32){const a=Ef(n);if(YT(a))return!0;const c=pv(n);if(c&&YT(so(c,X1(m_(n),a))))return!0}return!1}function PZ(n){const a=pv(n);return a?Ea(a,m_(n))?1:2:0}function __(n){return n.members||(n.flags&524288?n.objectFlags&4?flt(n):n.objectFlags&3?plt(n):n.objectFlags&1024?Rlt(n):n.objectFlags&16?Alt(n):n.objectFlags&32?Dlt(n):N.fail("Unhandled object type "+N.formatObjectFlags(n.objectFlags)):n.flags&1048576?Elt(n):n.flags&2097152?Tlt(n):N.fail("Unhandled type "+N.formatTypeFlags(n.flags))),n}function Wb(n){return n.flags&524288?__(n).properties:et}function cE(n,a){if(n.flags&524288){const d=__(n).members.get(a);if(d&&Gm(d))return d}}function l9(n){if(!n.resolvedProperties){const a=ca();for(const c of n.types){for(const d of gs(c))if(!a.has(d.escapedName)){const _=u9(n,d.escapedName,!!(n.flags&2097152));_&&a.set(d.escapedName,_)}if(n.flags&1048576&&yd(c).length===0)break}n.resolvedProperties=tE(a)}return n.resolvedProperties}function gs(n){return n=GM(n),n.flags&3145728?l9(n):Wb(n)}function Plt(n,a){n=GM(n),n.flags&3670016&&__(n).members.forEach((c,d)=>{ux(c,d)&&a(c,d)})}function Mlt(n,a){return a.properties.some(d=>{const _=d.name&&(t_(d.name)?Xd(Ek(d.name)):_v(d.name)),y=_&&rm(_)?im(_):void 0,x=y===void 0?void 0:Ke(n,y);return!!x&&w8(x)&&!Ea(Tx(d),x)})}function Llt(n){const a=ti(n);if(!(a.flags&1048576))return pbe(a);const c=ca();for(const d of n)for(const{escapedName:_}of pbe(d))if(!c.has(_)){const y=s8e(a,_);y&&c.set(_,y)}return zo(c.values())}function jT(n){return n.flags&262144?Md(n):n.flags&8388608?wlt(n):n.flags&16777216?r8e(n):Gu(n)}function Md(n){return c9(n)?jM(n):void 0}function klt(n,a){const c=C8(n);return!!c&&UT(c,a)}function UT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&bt((c=n.symbol)==null?void 0:c.declarations,d=>Zr(d,4096))||n.flags&3145728&&bt(n.types,d=>UT(d,a))||n.flags&8388608&&UT(n.objectType,a+1)||n.flags&16777216&&UT(r8e(n),a+1)||n.flags&33554432&&UT(n.baseType,a)||Or(n)&32&&klt(n,a)||Hb(n)&&Br(q1(n),(d,_)=>!!(n.target.elementFlags[_]&8)&&UT(d,a))>=0))}function wlt(n){return c9(n)?Olt(n):void 0}function oge(n){const a=my(n,!1);return a!==n?a:jT(n)}function Olt(n){if(cge(n))return UZ(n.objectType,n.indexType);const a=oge(n.indexType);if(a&&a!==n.indexType){const d=Bb(n.objectType,a,n.accessFlags);if(d)return d}const c=oge(n.objectType);if(c&&c!==n.objectType)return Bb(c,n.indexType,n.accessFlags)}function age(n){if(!n.resolvedDefaultConstraint){const a=yut(n),c=fE(n);n.resolvedDefaultConstraint=Nt(a)?c:Nt(c)?a:ti([a,c])}return n.resolvedDefaultConstraint}function t8e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=my(n.checkType,!1),c=a===n.checkType?jT(a):a;if(c&&c!==n.checkType){const d=nye(n,$T(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function n8e(n){return t8e(n)||age(n)}function r8e(n){return c9(n)?n8e(n):void 0}function Wlt(n,a){let c,d=!1;for(const _ of n)if(_.flags&465829888){let y=jT(_);for(;y&&y.flags&21233664;)y=jT(y);y&&(c=xn(c,y),a&&(c=xn(c,_)))}else(_.flags&469892092||jh(_))&&(d=!0);if(c&&(a||d)){if(d)for(const _ of n)(_.flags&469892092||jh(_))&&(c=xn(c,_));return I9(ba(c),!1)}}function Gu(n){if(n.flags&464781312||Hb(n)){const a=sge(n);return a!==js&&a!==nu?a:void 0}return n.flags&4194304?Fs:void 0}function py(n){return Gu(n)||n}function c9(n){return sge(n)!==nu}function sge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(y){if(!y.immediateBaseConstraint){if(!Wh(y,4))return nu;let x;const k=aee(y);if((a.length<10||a.length<50&&!Nr(a,k))&&(a.push(k),x=_(my(y,!1)),a.pop()),!Y_()){if(y.flags&262144){const z=Ege(y);if(z){const H=qe(z,f.Type_parameter_0_has_a_circular_constraint,Un(y));C&&!VE(z,C)&&!VE(C,z)&&wa(H,kr(C,f.Circularity_originates_in_type_at_this_location))}}x=nu}y.immediateBaseConstraint=x||js}return y.immediateBaseConstraint}function d(y){const x=c(y);return x!==js&&x!==nu?x:void 0}function _(y){if(y.flags&262144){const x=jM(y);return y.isThisType||!x?x:d(x)}if(y.flags&3145728){const x=y.types,k=[];let z=!1;for(const H of x){const re=d(H);re?(re!==H&&(z=!0),k.push(re)):z=!0}return z?y.flags&1048576&&k.length===x.length?ti(k):y.flags&2097152&&k.length?ba(k):void 0:y}if(y.flags&4194304)return Fs;if(y.flags&134217728){const x=y.types,k=Hi(x,d);return k.length===x.length?JT(y.texts,k):ke}if(y.flags&268435456){const x=d(y.type);return x&&x!==y.type?gx(y.symbol,x):ke}if(y.flags&8388608){if(cge(y))return d(UZ(y.objectType,y.indexType));const x=d(y.objectType),k=d(y.indexType),z=x&&k&&Bb(x,k,y.accessFlags);return z&&d(z)}if(y.flags&16777216){const x=n8e(y);return x&&d(x)}if(y.flags&33554432)return d(xge(y));if(Hb(y)){const x=Ot(q1(y),(k,z)=>{const H=k.flags&262144&&y.target.elementFlags[z]&8&&d(k)||k;return H!==k&&up(H,re=>_E(re)&&!Hb(re))?H:k});return Vh(x,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function Flt(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Kp(n,a,!0))}function lge(n){if(n.default)n.default===pu&&(n.default=nu);else if(n.target){const a=lge(n.target);n.default=a?so(a,n.mapper):js}else{n.default=pu;const a=n.symbol&&Xe(n.symbol.declarations,d=>gl(d)&&d.default),c=a?bi(a):js;n.default===pu&&(n.default=c)}return n.default}function HT(n){const a=lge(n);return a!==js&&a!==nu?a:void 0}function zlt(n){return lge(n)!==nu}function i8e(n){return!!(n.symbol&&Xe(n.symbol.declarations,a=>gl(a)&&a.default))}function o8e(n){return n.resolvedApparentType||(n.resolvedApparentType=Blt(n))}function Blt(n){const a=n.target??n,c=C8(a);if(c&&!a.declaration.nameType){const d=VT(n),_=Kd(d)?o8e(d):Gu(d);if(_&&up(_,y=>_E(y)||a8e(y)))return so(a,$T(c,_,n.mapper))}return n}function a8e(n){return!!(n.flags&2097152)&&Zn(n.types,_E)}function cge(n){let a;return!!(n.flags&8388608&&Or(a=n.objectType)&32&&!Kd(a)&&YT(n.indexType)&&!(zh(a)&8)&&!a.declaration.nameType)}function Ld(n){const a=n.flags&465829888?Gu(n)||_n:n,c=Or(a);return c&32?o8e(a):c&4&&a!==n?Kp(a,n):a.flags&2097152?Flt(a,n):a.flags&402653316?Zl:a.flags&296?yc:a.flags&2112?Tct():a.flags&528?dl:a.flags&12288?L8e():a.flags&67108864?La:a.flags&4194304?Fs:a.flags&2&&!Y?La:a}function GM(n){return h_(Ld(h_(n)))}function s8e(n,a,c){var d,_,y;let x,k,z;const H=n.flags&1048576;let re,be=4,ge=H?0:8,Je=!1;for(const er of n.types){const qn=Ld(er);if(!(Kt(qn)||qn.flags&131072)){const tr=va(qn,a,c),Ro=tr?Df(tr):0;if(tr){if(tr.flags&106500&&(re??(re=H?0:16777216),H?re|=tr.flags&16777216:re&=tr.flags),!x)x=tr;else if(tr!==x)if((BN(tr)||tr)===(BN(x)||x)&&pye(x,tr,(Bo,_o)=>Bo===_o?-1:0)===-1)Je=!!x.parent&&!!Le(Lr(x.parent));else{k||(k=new Map,k.set(Ta(x),x));const Bo=Ta(tr);k.has(Bo)||k.set(Bo,tr)}H&&b_(tr)?ge|=8:!H&&!b_(tr)&&(ge&=-9),ge|=(Ro&6?0:256)|(Ro&4?512:0)|(Ro&2?1024:0)|(Ro&256?2048:0),lve(tr)||(be=2)}else if(H){const Eo=!v8(a)&&_x(qn,a);Eo?(ge|=32|(Eo.isReadonly?8:0),z=xn(z,Ba(qn)?cee(qn)||Oe:Eo.type)):yE(qn)&&!(Or(qn)&2097152)?(ge|=32,z=xn(z,Oe)):ge|=16}}}if(!x||H&&(k||ge&48)&&ge&1536&&!(k&&Glt(k.values())))return;if(!k&&!(ge&16)&&!z)if(Je){const er=(d=ii(x,fh))==null?void 0:d.links,qn=ZT(x,er?.type);return qn.parent=(y=(_=x.valueDeclaration)==null?void 0:_.symbol)==null?void 0:y.parent,qn.links.containingType=n,qn.links.mapper=er?.mapper,qn.links.writeType=j1(x),qn}else return x;const gt=k?zo(k.values()):[x];let Dt,an,cn;const ar=[];let On,ln,zn=!1;for(const er of gt){ln?er.valueDeclaration&&er.valueDeclaration!==ln&&(zn=!0):ln=er.valueDeclaration,Dt=qr(Dt,er.declarations);const qn=dr(er);an||(an=qn,cn=Xi(er).nameType);const tr=j1(er);(On||tr!==qn)&&(On=xn(On||ar.slice(),tr)),qn!==an&&(ge|=64),(w8(qn)||KT(qn))&&(ge|=128),qn.flags&131072&&qn!==uu&&(ge|=131072),ar.push(qn)}qr(ar,z);const Fn=Xa(4|(re??0),a,be|ge);return Fn.links.containingType=n,!zn&&ln&&(Fn.valueDeclaration=ln,ln.symbol.parent&&(Fn.parent=ln.symbol.parent)),Fn.declarations=Dt,Fn.links.nameType=cn,ar.length>2?(Fn.links.checkFlags|=65536,Fn.links.deferralParent=n,Fn.links.deferralConstituents=ar,Fn.links.deferralWriteConstituents=On):(Fn.links.type=H?ti(ar):ba(ar),On&&(Fn.links.writeType=H?ti(On):ba(On))),Fn}function l8e(n,a,c){var d,_,y;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return x||(x=s8e(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ca()):n.propertyCache||(n.propertyCache=ca())).set(a,x),c&&!(xl(x)&48)&&!((y=n.propertyCache)!=null&&y.get(a))&&(n.propertyCache||(n.propertyCache=ca())).set(a,x))),x}function Glt(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{Nr(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function u9(n,a,c){const d=l8e(n,a,c);return d&&!(xl(d)&16)?d:void 0}function h_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Vlt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(bt(l9(n),jlt)?33554432:0)),n.objectFlags&33554432?Vr:n):n}function Vlt(n){const a=eo(n.types,h_);if(a===n.types)return n;const c=ti(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function jlt(n){return c8e(n)||u8e(n)}function c8e(n){return!(n.flags&16777216)&&(xl(n)&131264)===192&&!!(dr(n).flags&131072)}function u8e(n){return!n.valueDeclaration&&!!(xl(n)&1024)}function uge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&bt(n.types,uge)||n.flags&2097152&&Ult(n))}function Ult(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=so(n,ho));return h_(a)!==a}function dge(n,a){if(a.flags&2097152&&Or(a)&33554432){const c=An(l9(a),c8e);if(c)return jo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Un(a,void 0,536870912),vi(c));const d=An(l9(a),u8e);if(d)return jo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Un(a,void 0,536870912),vi(d))}return n}function va(n,a,c,d){var _,y;if(n=GM(n),n.flags&524288){const x=__(n),k=x.members.get(a);if(k&&!d&&((_=n.symbol)==null?void 0:_.flags)&512&&((y=Xi(n.symbol).typeOnlyExportStarMap)!=null&&y.has(a)))return;if(k&&Gm(k,d))return k;if(c)return;const z=x===nn?Wt:x.callSignatures.length?Jn:x.constructSignatures.length?vo:void 0;if(z){const H=cE(z,a);if(H)return H}return cE(Ce,a)}if(n.flags&2097152){const x=u9(n,a,!0);return x||(c?void 0:u9(n,a,c))}if(n.flags&1048576)return u9(n,a,c)}function d9(n,a){if(n.flags&3670016){const c=__(n);return a===0?c.callSignatures:c.constructSignatures}return et}function Yo(n,a){const c=d9(GM(n),a);if(a===0&&!Le(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(up(n,_=>{var y;return!!((y=_.symbol)!=null&&y.parent)&&Hlt(_.symbol.parent)&&(d?d===_.symbol.escapedName:(d=_.symbol.escapedName,!0))})){const _=pl(n,x=>Vb((d8e(x.symbol.parent)?na:Qo).typeParameters[0],x.mapper)),y=Vu(_,Um(n,x=>d8e(x.symbol.parent)));return n.arrayFallbackSignatures=Yo(Ke(y,d),a)}n.arrayFallbackSignatures=c}return c}function Hlt(n){return!n||!Qo.symbol||!na.symbol?!1:!!u_(n,Qo.symbol)||!!u_(n,na.symbol)}function d8e(n){return!n||!na.symbol?!1:!!u_(n,na.symbol)}function pge(n,a){return An(n,c=>c.keyType===a)}function fge(n,a){let c,d,_;for(const y of n)y.keyType===ke?c=y:mx(a,y.keyType)&&(d?(_||(_=[d])).push(y):d=y);return _?Gh(_n,ba(Ot(_,y=>y.type)),id(_,(y,x)=>y&&x.isReadonly,!0)):d||(c&&mx(a,ke)?c:void 0)}function mx(n,a){return Ea(n,a)||a===ke&&Ea(n,Tt)||a===Tt&&(n===cs||!!(n.flags&128)&&lg(n.value))}function mge(n){return n.flags&3670016?__(n).indexInfos:et}function yd(n){return mge(GM(n))}function Ig(n,a){return pge(yd(n),a)}function uE(n,a){var c;return(c=Ig(n,a))==null?void 0:c.type}function _ge(n,a){return yd(n).filter(c=>mx(a,c.keyType))}function E8(n,a){return fge(yd(n),a)}function _x(n,a){return E8(n,v8(a)?Ai:Xd(Vi(a)))}function p8e(n){var a;let c;for(const d of kv(n))c=Ng(c,GT(d.symbol));return c?.length?c:Ac(n)?(a=VM(n))==null?void 0:a.typeParameters:void 0}function hge(n){const a=[];return n.forEach((c,d)=>{z1(d)||a.push(c)}),a}function MZ(n,a){if(Yc(n))return;const c=Jd(Se,'"'+n+'"',512);return c&&a?rs(c):c}function S8(n){if(OA(n)||vk(n)||bk(n))return!0;if(n.initializer){const c=fm(n.parent),d=n.parent.parameters.indexOf(n);return N.assert(d>=0),d>=rh(c,3)}const a=AS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Uee(a).length:!1}function qlt(n){return Jo(n)&&!P_(n)&&n.questionToken}function p9(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function Bh(n){let a=0;if(n)for(let c=0;c=c&&y<=_){const x=n?n.slice():[];for(let z=y;z<_;z++)x[z]=_t;const k=Pye(d);for(let z=y;z<_;z++){let H=HT(a[z]);d&&H&&(_y(H,_n)||_y(H,La))&&(H=j),x[z]=H?so(H,Lp(a,x)):k}return x.length=a.length,x}return n&&n.slice()}function fm(n){const a=ei(n);if(!a.resolvedSignature){const c=[];let d=0,_=0,y,x=lr(n)?u4(n):void 0,k=!1;const z=AS(n),H=bR(n);!z&&lr(n)&&Rie(n)&&!are(n)&&!d0(n)&&(d|=32);for(let gt=H?1:0;gtz.arguments.length&&!cn||bk(Dt)||(_=c.length)}if((n.kind===177||n.kind===178)&&SN(n)&&(!k||!y)){const gt=n.kind===177?178:177,Dt=fl(Ir(n),gt);Dt&&(y=TZ(Dt))}x&&x.typeExpression&&(y=ZT(Xa(1,"this"),bi(x.typeExpression)));const be=R0(n)?y0(n):n,ge=be&&Ml(be)?Vf(rs(be.parent.symbol)):void 0,Je=ge?ge.localTypeParameters:p8e(n);(ej(n)||lr(n)&&Jlt(n,c))&&(d|=1),(UR(n)&&Zr(n,64)||Ml(n)&&Zr(n.parent,64))&&(d|=4),a.resolvedSignature=Ag(n,Je,y,c,void 0,void 0,_,d)}return a.resolvedSignature}function Jlt(n,a){if(R0(n)||!gge(n))return!1;const c=tl(n.parameters),d=c?$x(c):p0(n).filter(r_),_=qt(d,x=>x.typeExpression&&$W(x.typeExpression.type)?x.typeExpression.type:void 0),y=Xa(3,"args",32768);return _?y.links.type=Vu(bi(_.type)):(y.links.checkFlags|=65536,y.links.deferralParent=Vr,y.links.deferralConstituents=[ec],y.links.deferralWriteConstituents=[ec]),_&&a.pop(),a.push(y),!0}function VM(n){if(!(lr(n)&&Bs(n)))return;const a=u0(n);return a?.typeExpression&&sA(bi(a.typeExpression))}function Klt(n,a){const c=VM(n);if(!c)return;const d=n.parameters.indexOf(a);return a.dotDotDotToken?nB(c,d):v_(c,d)}function Xlt(n){const a=VM(n);return a&&ps(a)}function gge(n){const a=ei(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Gt.escapedName&&i6(d)===Gt;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!Hj(d)&&!eg(d)&&!!Ho(d,c)}}}function U1(n){if(!n||!n.declarations)return et;const a=[];for(let c=0;c0&&d.body){const _=n.declarations[c-1];if(d.parent===_.parent&&d.kind===_.kind&&d.pos===_.end)continue}if(lr(d)&&d.jsDoc){const _=wj(d);if(Le(_)){for(const y of _){const x=y.typeExpression;x.type===void 0&&!Ml(d)&&hE(x,j),a.push(fm(x))}continue}}a.push(!$E(d)&&!xm(d)&&VM(d)||fm(d))}}return a}function f8e(n){const a=gd(n,n);if(a){const c=Dp(a);if(c)return dr(c)}return j}function dE(n){if(n.thisParameter)return dr(n.thisParameter)}function jf(n){if(!n.resolvedTypePredicate){if(n.target){const a=jf(n.target);n.resolvedTypePredicate=a?Lut(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=Kct(n.compositeSignatures,n.compositeKind)||we;else{const a=n.declaration&&nm(n.declaration);let c;if(!a){const d=VM(n.declaration);d&&n!==d&&(c=jf(d))}n.resolvedTypePredicate=a&&Gk(a)?Ylt(a,n):c||we}N.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function Ylt(n,a){const c=n.parameterName,d=n.type&&bi(n.type);return c.kind===197?p9(n.assertsModifier?2:0,void 0,void 0,d):p9(n.assertsModifier?3:1,c.escapedText,Br(a.parameters,_=>_.escapedName===c.escapedText),d)}function m8e(n,a,c){return a!==2097152?ti(n,c):ba(n)}function ps(n){if(!n.resolvedReturnType){if(!Wh(n,3))return _t;let a=n.target?so(ps(n.target),n.mapper):n.compositeSignatures?so(m8e(Ot(n.compositeSignatures,ps),n.compositeKind,2),n.mapper):AN(n.declaration)||(zl(n.declaration.body)?j:Kee(n.declaration));if(n.flags&8?a=K6e(a):n.flags&16&&(a=qb(a)),!Y_()){if(n.declaration){const c=nm(n.declaration);if(c)qe(c,f.Return_type_annotation_circularly_references_itself);else if(pe){const d=n.declaration,_=Mo(d);_?qe(_,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,Rs(_)):qe(d,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=j}n.resolvedReturnType=a}return n.resolvedReturnType}function AN(n){if(n.kind===176)return Vf(rs(n.parent.symbol));const a=nm(n);if(R0(n)){const c=ER(n);if(c&&Ml(c.parent)&&!a)return Vf(rs(c.parent.parent.symbol))}if(bR(n))return bi(n.parameters[0].type);if(a)return bi(a);if(n.kind===177&&SN(n)){const c=lr(n)&&sy(n);if(c)return c;const d=fl(Ir(n),178),_=aE(d);if(_)return _}return Xlt(n)}function LZ(n){return n.compositeSignatures&&bt(n.compositeSignatures,LZ)||!n.resolvedReturnType&&px(n,3)>=0}function $lt(n){return _8e(n)||j}function _8e(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]),c=Ba(a)?cee(a):a;return c&&uE(c,Tt)}}function T8(n,a,c,d){const _=yge(n,Fb(a,n.typeParameters,Bh(n.typeParameters),c));if(d){const y=R3e(ps(_));if(y){const x=b8(y);x.typeParameters=d;const k=b8(_);return k.resolvedReturnType=qT(x),k}}return _}function yge(n,a){const c=n.instantiations||(n.instantiations=new Map),d=mm(a);let _=c.get(d);return _||c.set(d,_=kZ(n,a)),_}function kZ(n,a){return PN(n,Qlt(n,a),!0)}function Qlt(n,a){return Lp(n.typeParameters,a)}function A8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Zlt(n)):n}function Zlt(n){return PN(n,y6e(n.typeParameters),!0)}function ect(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=tct(n)):n}function tct(n){return T8(n,Ot(n.typeParameters,a=>a.target&&!Md(a.target)?a.target:a),lr(n.declaration))}function nct(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=y6e(a),d=Lp(a,Ot(a,y=>Md(y)||_n));let _=Ot(a,y=>so(y,d)||_n);for(let y=0;y{OZ(_)&&!pge(a,_)&&a.push(Gh(_,c.type?bi(c.type):j,hp(c,8),c))})}return a}return et}function OZ(n){return!!(n.flags&4108)||KT(n)||!!(n.flags&2097152)&&!NN(n)&&bt(n.types,OZ)}function Ege(n){return Hi(nr(n.symbol&&n.symbol.declarations,gl),Qx)[0]}function g8e(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(const _ of n.symbol.declarations)if(_.parent.kind===195){const[y=_.parent,x]=Die(_.parent.parent);if(x.kind===183&&!a){const k=x,z=Hve(k);if(z){const H=k.typeArguments.indexOf(y);if(H()=>ght(k,z,gt))),ge=so(re,be);ge!==n&&(d=xn(d,ge))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=xn(d,Vu(_n));else if(x.kind===204)d=xn(d,ke);else if(x.kind===168&&x.parent.kind===200)d=xn(d,Fs);else if(x.kind===200&&x.type&&hs(x.type)===_.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const k=x.parent.checkType,z=bi(k.type);d=xn(d,so(z,X1(GT(Ir(k.typeParameter)),k.typeParameter.constraint?bi(k.typeParameter.constraint):Fs)))}}}return d&&ba(d)}function jM(n){if(!n.constraint)if(n.target){const a=Md(n.target);n.constraint=a?so(a,n.mapper):js}else{const a=Ege(n);if(!a)n.constraint=g8e(n)||js;else{let c=bi(a);c.flags&1&&!Kt(c)&&(c=a.parent.parent.kind===200?Fs:_n),n.constraint=c}}return n.constraint===js?void 0:n.constraint}function y8e(n){const a=fl(n.symbol,168),c=sm(a.parent)?a3(a.parent):a.parent;return c&&gf(c)}function mm(n){let a="";if(n){const c=n.length;let d=0;for(;d1&&(a+=":"+y),d+=y}}return a}function hx(n,a){return n?`@${Ta(n)}`+(a?`:${mm(a)}`:""):""}function WZ(n,a){let c=0;for(const d of n)(a===void 0||!(d.flags&a))&&(c|=Or(d));return c&458752}function IN(n,a){return bt(a)&&n===ko?_n:fv(n,a)}function fv(n,a){const c=mm(a);let d=n.instantiations.get(c);return d||(d=zf(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?WZ(a):0,d.target=n,d.resolvedTypeArguments=a),d}function v8e(n){const a=Sg(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Sge(n,a,c,d,_){if(!d){d=yx(a);const x=CN(d);_=c?hv(x,c):x}const y=zf(4,n.symbol);return y.target=n,y.node=a,y.mapper=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function Js(n){var a,c;if(!n.resolvedTypeArguments){if(!Wh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>_t))||et;const d=n.node,_=d?d.kind===183?So(n.target.outerTypeParameters,Zee(d,n.target.localTypeParameters)):d.kind===188?[bi(d.elementType)]:Ot(d.elements,bi):et;Y_()?n.resolvedTypeArguments=n.mapper?hv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>_t))||et,qe(n.node||C,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&vi(n.target.symbol)))}return n.resolvedTypeArguments}function mv(n){return Le(n.target.typeParameters)}function b8e(n,a){const c=el(rs(a)),d=c.localTypeParameters;if(d){const _=Le(n.typeArguments),y=Bh(d),x=lr(n);if(!(!pe&&x)&&(_d.length)){const H=x&&Hy(n)&&!hI(n.parent),re=y===d.length?H?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:H?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,be=Un(c,void 0,2);if(qe(n,re,be,y,d.length),!x)return _t}if(n.kind===183&&B8e(n,Le(n.typeArguments)!==d.length))return Sge(c,n,void 0);const z=So(c.outerTypeParameters,Fb(f9(n),d,y,x));return fv(c,z)}return H1(n,a)?c:_t}function xN(n,a,c,d){const _=el(n);if(_===pn){const H=GF.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?Tge(a[0]):gx(n,a[0])}const y=Xi(n),x=y.typeParameters,k=mm(a)+hx(c,d);let z=y.instantiations.get(k);return z||y.instantiations.set(k,z=E6e(_,Lp(x,Fb(a,x,Bh(x),lr(n.valueDeclaration))),c,d)),z}function rct(n,a){if(xl(a)&1048576){const _=f9(n),y=hx(a,_);let x=Fe.get(y);return x||(x=lc(1,"error",void 0,`alias ${y}`),x.aliasSymbol=a,x.aliasTypeArguments=_,Fe.set(y,x)),x}const c=el(a),d=Xi(a).typeParameters;if(d){const _=Le(n.typeArguments),y=Bh(d);if(_d.length)return qe(n,y===d.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,vi(a),y,d.length),_t;const x=yx(n);let k=x&&(E8e(a)||!E8e(x))?x:void 0,z;if(k)z=CN(k);else if(I4(n)){const H=RN(n,2097152,!0);if(H&&H!==ft){const re=Fc(H);re&&re.flags&524288&&(k=re,z=f9(n)||(d?[]:void 0))}}return xN(a,f9(n),k,z)}return H1(n,a)?c:_t}function E8e(n){var a;const c=(a=n.declarations)==null?void 0:a.find(HL);return!!(c&&Gp(c))}function ict(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(Gl(a))return a}}function S8e(n){return n.parent?`${S8e(n.parent)}.${n.escapedName}`:n.escapedName}function FZ(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const d=n.kind===166?FZ(n.left):n.kind===211?FZ(n.expression):void 0,_=d?`${S8e(d)}.${c}`:c;let y=le.get(_);return y||(le.set(_,y=Xa(524288,c,1048576)),y.parent=d,y.links.declaredType=Vt),y}return ft}function RN(n,a,c){const d=ict(n);if(!d)return ft;const _=Hs(d,a,c);return _&&_!==ft?_:c?ft:FZ(d)}function zZ(n,a){if(a===ft)return _t;if(a=kM(a)||a,a.flags&96)return b8e(n,a);if(a.flags&524288)return rct(n,a);const c=zOe(a);if(c)return H1(n,a)?bd(c):_t;if(a.flags&111551&&BZ(n)){const d=oct(n,a);return d||(RN(n,788968),dr(a))}return _t}function oct(n,a){const c=ei(n);if(!c.resolvedJSDocType){const d=dr(a);let _=d;if(a.valueDeclaration){const y=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&y&&(_=zZ(n,d.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function Tge(n){return Age(n)?T8e(n,_n):n}function Age(n){return!!(n.flags&3145728&&bt(n.types,Age)||n.flags&33554432&&!UM(n)&&Age(n.baseType)||n.flags&524288&&!jh(n)||n.flags&432275456&&!KT(n))}function UM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function Ige(n,a){return a.flags&3||a===n||n.flags&1?n:T8e(n,a)}function T8e(n,a){const c=`${vd(n)}>${vd(a)}`,d=Io.get(c);if(d)return d;const _=Eg(33554432);return _.baseType=n,_.constraint=a,Io.set(c,_),_}function xge(n){return UM(n)?n.baseType:ba([n.constraint,n.baseType])}function A8e(n){return n.kind===189&&n.elements.length===1}function I8e(n,a,c){return A8e(a)&&A8e(c)?I8e(n,a.elements[0],c.elements[0]):Gb(bi(a))===Gb(n)?bi(c):void 0}function act(n,a){let c,d=!0;for(;a&&!qi(a)&&a.kind!==327;){const _=a.parent;if(_.kind===169&&(d=!d),(d||n.flags&8650752)&&_.kind===194&&a===_.trueType){const y=I8e(n,_.checkType,_.extendsType);y&&(c=xn(c,y))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){const y=bi(_);if(m_(y)===Gb(n)){const x=C8(y);if(x){const k=Md(x);k&&up(k,_E)&&(c=xn(c,ti([Tt,cs])))}}}a=_}return c?Ige(n,ba(c)):n}function BZ(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function H1(n,a){return n.typeArguments?(qe(n,f.Type_0_is_not_generic,a?vi(a):n.typeName?Rs(n.typeName):WF),!1):!0}function x8e(n){if(Ve(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return H1(n),ke;case"Number":return H1(n),Tt;case"Boolean":return H1(n),Ni;case"Void":return H1(n),ir;case"Undefined":return H1(n),Oe;case"Null":return H1(n),me;case"Function":case"function":return H1(n),Wt;case"array":return(!a||!a.length)&&!pe?ec:void 0;case"promise":return(!a||!a.length)&&!pe?iB(j):void 0;case"Object":if(a&&a.length===2){if(Z4(n)){const c=bi(a[0]),d=bi(a[1]),_=c===ke||c===Tt?[Gh(c,d,!1)]:et;return Ls(void 0,K,et,et,_)}return j}return H1(n),pe?void 0:j}}}function sct(n){const a=bi(n.type);return Y?P9(a,65536):a}function Rge(n){const a=ei(n);if(!a.resolvedType){if(Lg(n)&&yS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=nc(n.parent.expression);let c,d;const _=788968;BZ(n)&&(d=x8e(n),d||(c=RN(n,_,!0),c===ft?c=RN(n,_|111551):RN(n,_),d=zZ(n,c))),d||(c=RN(n,_),d=zZ(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function f9(n){return Ot(n.typeArguments,bi)}function R8e(n){const a=ei(n);if(!a.resolvedType){const c=J3e(n);a.resolvedType=bd(Xp(c))}return a.resolvedType}function D8e(n,a){function c(_){const y=_.declarations;if(y)for(const x of y)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?ko:La;const d=el(n);return d.flags&524288?Le(d.typeParameters)!==a?(qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,Sl(n),a),a?ko:La):d:(qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,Sl(n)),a?ko:La)}function Dge(n,a){return HM(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Nge(n,a){return HM(n,788968,a?f.Cannot_find_global_type_0:void 0)}function GZ(n,a,c){const d=HM(n,788968,c?f.Cannot_find_global_type_0:void 0);if(d&&(el(d),Le(Xi(d).typeParameters)!==a)){const _=d.declarations&&An(d.declarations,Nm);qe(_,f.Global_type_0_must_have_1_type_parameter_s,Sl(d),a);return}return d}function HM(n,a,c){return bl(void 0,n,a,c,n,!1,!1,!1)}function tc(n,a,c){const d=Nge(n,c);return d||c?D8e(d,a):void 0}function lct(){return Nh||(Nh=tc("TypedPropertyDescriptor",1,!0)||ko)}function cct(){return rr||(rr=tc("TemplateStringsArray",0,!0)||La)}function N8e(){return oi||(oi=tc("ImportMeta",0,!0)||La)}function C8e(){if(!$r){const n=Xa(0,"ImportMetaExpression"),a=N8e(),c=Xa(4,"meta",8);c.parent=n,c.links.type=a;const d=ca([c]);n.members=d,$r=Ls(n,d,et,et,et)}return $r}function P8e(n){return io||(io=tc("ImportCallOptions",0,n))||La}function Cge(n){return Fa||(Fa=tc("ImportAttributes",0,n))||La}function M8e(n){return Nd||(Nd=Dge("Symbol",n))}function uct(n){return Of||(Of=Nge("SymbolConstructor",n))}function L8e(){return U_||(U_=tc("Symbol",0,!1))||La}function m9(n){return Kg||(Kg=tc("Promise",1,n))||ko}function k8e(n){return Bu||(Bu=tc("PromiseLike",1,n))||ko}function Pge(n){return Xg||(Xg=Dge("Promise",n))}function dct(n){return Ip||(Ip=tc("PromiseConstructorLike",0,n))||La}function VZ(n){return F||(F=tc("AsyncIterable",1,n))||ko}function pct(n){return Te||(Te=tc("AsyncIterator",3,n))||ko}function fct(n){return st||(st=tc("AsyncIterableIterator",1,n))||ko}function mct(n){return Jt||(Jt=tc("AsyncGenerator",3,n))||ko}function Mge(n){return mg||(mg=tc("Iterable",1,n))||ko}function _ct(n){return Ud||(Ud=tc("Iterator",3,n))||ko}function hct(n){return te||(te=tc("IterableIterator",1,n))||ko}function gct(n){return ct||(ct=tc("Generator",3,n))||ko}function yct(n){return zt||(zt=tc("IteratorYieldResult",1,n))||ko}function vct(n){return jt||(jt=tc("IteratorReturnResult",1,n))||ko}function w8e(n){return za||(za=tc("Disposable",0,n))||La}function bct(n){return Ol||(Ol=tc("AsyncDisposable",0,n))||La}function O8e(n,a=0){const c=HM(n,788968,void 0);return c&&D8e(c,a)}function Ect(){return fu||(fu=GZ("Extract",2,!0)||ft),fu===ft?void 0:fu}function Sct(){return Dc||(Dc=GZ("Omit",2,!0)||ft),Dc===ft?void 0:Dc}function Lge(n){return xp||(xp=GZ("Awaited",1,n)||(n?ft:void 0)),xp===ft?void 0:xp}function Tct(){return Hd||(Hd=tc("BigInt",0,!1))||La}function Act(n){return km??(km=tc("ClassDecoratorContext",1,n))??ko}function Ict(n){return wm??(wm=tc("ClassMethodDecoratorContext",2,n))??ko}function xct(n){return Ui??(Ui=tc("ClassGetterDecoratorContext",2,n))??ko}function Rct(n){return Yg??(Yg=tc("ClassSetterDecoratorContext",2,n))??ko}function Dct(n){return rv??(rv=tc("ClassAccessorDecoratorContext",2,n))??ko}function Nct(n){return Om??(Om=tc("ClassAccessorDecoratorTarget",2,n))??ko}function Cct(n){return I1??(I1=tc("ClassAccessorDecoratorResult",2,n))??ko}function Pct(n){return x1??(x1=tc("ClassFieldDecoratorContext",2,n))??ko}function Mct(){return pb||(pb=Dge("NaN",!1))}function Lct(){return us||(us=GZ("Record",2,!0)||ft),us===ft?void 0:us}function I8(n,a){return n!==ko?fv(n,a):La}function W8e(n){return I8(lct(),[n])}function F8e(n){return I8(Mge(!0),[n])}function Vu(n,a){return I8(a?na:Qo,[n])}function kge(n){switch(n.kind){case 190:return 2;case 191:return z8e(n);case 202:return n.questionToken?2:n.dotDotDotToken?z8e(n):1;default:return 1}}function z8e(n){return v9(n.type)?4:8}function kct(n){const a=Wct(n.parent);if(v9(n))return a?na:Qo;const d=Ot(n.elements,kge);return wge(d,a,Ot(n.elements,wct))}function wct(n){return HR(n)||Ao(n)?n:void 0}function B8e(n,a){return!!yx(n)||G8e(n)&&(n.kind===188?zb(n.elementType):n.kind===189?bt(n.elements,zb):a||bt(n.typeArguments,zb))}function G8e(n){const 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 G8e(a);case 265:return!0}return!1}function zb(n){switch(n.kind){case 183:return BZ(n)||!!(RN(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&zb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return zb(n.type);case 191:return n.type.kind!==188||zb(n.type.elementType);case 192:case 193:return bt(n.types,zb);case 199:return zb(n.objectType)||zb(n.indexType);case 194:return zb(n.checkType)||zb(n.extendsType)||zb(n.trueType)||zb(n.falseType)}return!1}function Oct(n){const a=ei(n);if(!a.resolvedType){const c=kct(n);if(c===ko)a.resolvedType=La;else if(!(n.kind===189&&bt(n.elements,d=>!!(kge(d)&8)))&&B8e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:Sge(c,n,void 0);else{const d=n.kind===188?[bi(n.elementType)]:Ot(n.elements,bi);a.resolvedType=Oge(c,d)}}return a.resolvedType}function Wct(n){return BS(n)&&n.operator===148}function Vh(n,a,c=!1,d=[]){const _=wge(a||Ot(n,y=>1),c,d);return _===ko?La:n.length?Oge(_,n):_}function wge(n,a,c){if(n.length===1&&n[0]&4)return a?na:Qo;const d=Ot(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(bt(c,y=>!!y)?","+Ot(c,y=>y?as(y):"_").join(","):"");let _=No.get(d);return _||No.set(d,_=Fct(n,a,c)),_}function Fct(n,a,c){const d=n.length,_=au(n,be=>!!(be&9));let y;const x=[];let k=0;if(d){y=new Array(d);for(let be=0;be!!(n.elementFlags[an]&8&&Dt.flags&1179648));if(gt>=0)return h9(Ot(a,(Dt,an)=>n.elementFlags[an]&8?Dt:_n))?pl(a[gt],Dt=>Wge(n,tG(a,gt,Dt))):_t}const x=[],k=[],z=[];let H=-1,re=-1,be=-1;for(let gt=0;gt=1e4)return qe(C,eg(C)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;Xe(cn,(ar,On)=>{var ln;return Je(ar,Dt.target.elementFlags[On],(ln=Dt.target.labeledElementDeclarations)==null?void 0:ln[On])})}else Je(gv(Dt)&&uE(Dt,Tt)||_t,4,(_=n.labeledElementDeclarations)==null?void 0:_[gt]);else Je(Dt,an,(y=n.labeledElementDeclarations)==null?void 0:y[gt])}for(let gt=0;gt=0&&rek[re+Dt]&8?Mp(gt,Tt):gt)),x.splice(re+1,be-re),k.splice(re+1,be-re),z.splice(re+1,be-re));const ge=wge(k,n.readonly,z);return ge===ko?La:k.length?fv(ge,x):ge;function Je(gt,Dt,an){Dt&1&&(H=k.length),Dt&4&&re<0&&(re=k.length),Dt&6&&(be=k.length),x.push(Dt&2?cp(gt,!0):gt),k.push(Dt),z.push(an)}}function qM(n,a,c=0){const d=n.target,_=mv(n)-c;return a>d.fixedLength?Adt(n)||Vh(et):Vh(Js(n).slice(a,_),d.elementFlags.slice(a,_),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,_))}function V8e(n){return ti(xn(sne(n.target.fixedLength,a=>Xd(""+a)),Q_(n.target.readonly?na:Qo)))}function zct(n,a){const c=Br(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function x8(n,a){return n.elementFlags.length-Bi(n.elementFlags,c=>!(c&a))-1}function Fge(n){return n.fixedLength+x8(n,3)}function q1(n){const a=Js(n),c=mv(n);return a.length===c?a:a.slice(0,c)}function Bct(n){return cp(bi(n.type),!0)}function vd(n){return n.id}function fy(n,a){return xy(n,a,vd,rl)>=0}function _9(n,a){const c=xy(n,a,vd,rl);return c<0?(n.splice(~c,0,a),!0):!1}function Gct(n,a,c){const d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&Or(c)&67108864&&(a|=536870912),c===Rt&&(a|=8388608),!Y&&d&98304)Or(c)&65536||(a|=4194304);else{const _=n.length,y=_&&c.id>n[_-1].id?~_:xy(n,c,vd,rl);y<0&&n.splice(~y,0,c)}return a}function j8e(n,a,c){let d;for(const _ of c)_!==d&&(a=_.flags&1048576?j8e(n,a|(Jct(_)?1048576:0),_.types):Gct(n,a,_),d=_);return a}function Vct(n,a){var c;if(n.length<2)return n;const d=mm(n),_=ma.get(d);if(_)return _;const y=a&&bt(n,H=>!!(H.flags&524288)&&!Kd(H)&&aye(__(H))),x=n.length;let k=x,z=0;for(;k>0;){k--;const H=n[k];if(y||H.flags&469499904){if(H.flags&262144&&py(H).flags&1048576){Z_(H,ti(Ot(n,ge=>ge===H?Vr:ge)),Wf)&&Dv(n,k);continue}const re=H.flags&61603840?An(gs(H),ge=>y_(dr(ge))):void 0,be=re&&bd(dr(re));for(const ge of n)if(H!==ge){if(z===1e5&&z/(x-k)*x>1e6){(c=sr)==null||c.instant(sr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(gt=>gt.id)}),qe(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(z++,re&&ge.flags&61603840){const Je=Ke(ge,re.escapedName);if(Je&&y_(Je)&&bd(Je)!==be)continue}if(Z_(H,ge,Wf)&&(!(Or(dv(H))&1)||!(Or(dv(ge))&1)||mE(H,ge))){Dv(n,k);break}}}}return ma.set(d,n),n}function jct(n,a,c){let d=n.length;for(;d>0;){d--;const _=n[d],y=_.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||c&&y&32768&&a&16384||K1(_)&&fy(n,_.regularType))&&Dv(n,d)}}function Uct(n){const a=nr(n,KT);if(a.length){let c=n.length;for(;c>0;){c--;const d=n[c];d.flags&128&&bt(a,_=>Hct(d,_))&&Dv(n,c)}}}function Hct(n,a){return a.flags&134217728?vee(n,a):yee(n,a)}function qct(n){const a=[];for(const c of n)if(c.flags&2097152&&Or(c)&67108864){const d=c.types[0].flags&8650752?0:1;Tf(a,c.types[d])}for(const c of a){const d=[];for(const y of n)if(y.flags&2097152&&Or(y)&67108864){const x=y.types[0].flags&8650752?0:1;y.types[x]===c&&_9(d,y.types[1-x])}const _=Gu(c);if(up(_,y=>fy(d,y))){let y=n.length;for(;y>0;){y--;const x=n[y];if(x.flags&2097152&&Or(x)&67108864){const k=x.types[0].flags&8650752?0:1;x.types[k]===c&&fy(d,x.types[1-k])&&Dv(n,y)}}_9(n,c)}}}function Jct(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function U8e(n,a){for(const c of a)if(c.flags&1048576){const d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?Tf(n,c):d&&d.flags&1048576&&U8e(n,d.types)}}function zge(n,a){const c=cx(n);return c.types=a,c}function ti(n,a=1,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){const y=a===0?"N":a===2?"S":"L",x=n[0].id=2&&y[0]===Oe&&y[1]===L&&Dv(y,1),(x&402664352||x&16384&&x&32768)&&jct(y,x,!!(a&2)),x&128&&x&402653184&&Uct(y),x&536870912&&qct(y),a===2&&(y=Vct(y,!!(x&524288)),!y))return _t;if(y.length===0)return x&65536?x&4194304?me:Ge:x&32768?x&4194304?Oe:Lt:Vr}if(!_&&x&1048576){const z=[];U8e(z,n);const H=[];for(const be of y)bt(z,ge=>fy(ge.types,be))||H.push(be);if(!c&&z.length===1&&H.length===0)return z[0];if(id(z,(be,ge)=>be+ge.types.length,0)+H.length===y.length){for(const be of z)_9(H,be);_=zge(1048576,H)}}const k=(x&36323331?0:32768)|(x&2097152?16777216:0);return Gge(y,k,c,d,_)}function Kct(n,a){let c;const d=[];for(const y of n){const x=jf(y);if(x){if(x.kind!==0&&x.kind!==1||c&&!Bge(c,x))return;c=x,d.push(x.type)}else{const k=a!==2097152?ps(y):void 0;if(k!==en&&k!==bn)return}}if(!c)return;const _=m8e(d,a);return p9(c.kind,c.parameterName,c.parameterIndex,_)}function Bge(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Gge(n,a,c,d,_){if(n.length===0)return Vr;if(n.length===1)return n[0];const x=(_?_.flags&1048576?`|${mm(_.types)}`:_.flags&2097152?`&${mm(_.types)}`:`#${_.type.id}|${mm(n)}`:mm(n))+hx(c,d);let k=Mn.get(x);return k||(k=Eg(1048576),k.objectFlags=a|WZ(n,98304),k.types=n,k.origin=_,k.aliasSymbol=c,k.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),Mn.set(x,k)),k}function Xct(n){const a=ei(n);if(!a.resolvedType){const c=yx(n);a.resolvedType=ti(Ot(n.types,bi),1,c,CN(c))}return a.resolvedType}function Yct(n,a,c){const d=c.flags;return d&2097152?q8e(n,a,c.types):(jh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===Rt&&(a|=8388608):(Y||!(d&98304))&&(c===L&&(a|=262144,c=Oe),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function q8e(n,a,c){for(const d of c)a=Yct(n,a,bd(d));return a}function $ct(n,a){let c=n.length;for(;c>0;){c--;const d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||jh(d)&&a&470302716)&&Dv(n,c)}}function Qct(n,a){for(const c of n)if(!fy(c.types,a)){const d=a.flags&128?ke:a.flags&288?Tt:a.flags&2048?kt:a.flags&8192?Ai:void 0;if(!d||!fy(c.types,d))return!1}return!0}function Zct(n){let a=n.length;const c=nr(n,d=>!!(d.flags&128));for(;a>0;){a--;const d=n[a];if(d.flags&402653184){for(const _ of c)if(jb(_,d)){Dv(n,a);break}else if(KT(d))return!0}}return!1}function J8e(n,a){for(let c=0;c!(d.flags&a))}function eut(n){let a;const c=Br(n,x=>!!(Or(x)&32768));if(c<0)return!1;let d=c+1;for(;d!!(gt.flags&469893116)||jh(gt))){if(S9(Je,ge))return be;if(!(Je.flags&1048576&&Um(Je,gt=>S9(gt,ge)))&&!S9(ge,Je))return Vr;k=67108864}}}const z=mm(x)+hx(a,c);let H=Ar.get(z);if(!H){if(y&1048576)if(eut(x))H=ba(x,a,c);else if(Zn(x,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){const re=bt(x,W8)?L:Oe;J8e(x,32768),H=ti([ba(x),re],1,a,c)}else if(Zn(x,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))J8e(x,65536),H=ti([ba(x),me],1,a,c);else if(x.length>=4){const re=Math.floor(x.length/2);H=ba([ba(x.slice(0,re)),ba(x.slice(re))],a,c)}else{if(!h9(x))return _t;const re=nut(x),be=bt(re,ge=>!!(ge.flags&2097152))&&Vge(re)>Vge(x)?zge(2097152,x):void 0;H=ti(re,1,a,c,be)}else H=tut(x,k,a,c);Ar.set(z,H)}return H}function K8e(n){return id(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function h9(n){var a;const c=K8e(n);return c>=1e5?((a=sr)==null||a.instant(sr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),qe(C,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function nut(n){const a=K8e(n),c=[];for(let d=0;d=0;k--)if(n[k].flags&1048576){const z=n[k].types,H=z.length;_[k]=z[y%H],y=Math.floor(y/H)}const x=ba(_);x.flags&131072||c.push(x)}return c}function X8e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?X8e(n.origin):Vge(n.types)}function Vge(n){return id(n,(a,c)=>a+X8e(c),0)}function rut(n){const a=ei(n);if(!a.resolvedType){const c=yx(n),d=Ot(n.types,bi),_=d.length===2?d.indexOf(sc):-1,y=_>=0?d[1-_]:_n,x=!!(y.flags&76||y.flags&134217728&&KT(y));a.resolvedType=ba(d,c,CN(c),x)}return a.resolvedType}function Y8e(n,a){const c=Eg(4194304);return c.type=n,c.indexFlags=a,c}function iut(n){const a=cx(4194304);return a.type=n,a}function $8e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=Y8e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=Y8e(n,0))}function Q8e(n,a){const c=m_(n),d=Ef(n),_=pv(n.target||n);if(!_&&!(a&2))return d;const y=[];if(YT(d)){if(TN(n))return $8e(n,a);rA(d,k)}else if(TN(n)){const z=Ld(VT(n));rge(z,8576,!!(a&1),k)}else rA(s9(d),k);const x=a&2?uc(ti(y),z=>!(z.flags&5)):ti(y);if(x.flags&1048576&&d.flags&1048576&&mm(x.types)===mm(d.types))return d;return x;function k(z){const H=_?so(_,N8(n.mapper,c,z)):z;y.push(H===ke?xo:H)}}function out(n){const a=m_(n);return c(pv(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Zn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function _v(n){if(Ji(n))return Vr;if(gp(n))return bd(mo(n));if(Za(n))return bd(xg(n));const a=NS(n);return a!==void 0?Xd(Vi(a)):vt(n)?bd(mo(n)):Vr}function DN(n,a,c){if(c||!(Df(n)&6)){let d=Xi(NZ(n)).nameType;if(!d){const _=Mo(n.valueDeclaration);d=n.escapedName==="default"?Xd("default"):_&&_v(_)||(tk(n)?void 0:Xd(Sl(n)))}if(d&&d.flags&a)return d}return Vr}function Z8e(n,a){return!!(n.flags&a||n.flags&2097152&&bt(n.types,c=>Z8e(c,a)))}function aut(n,a,c){const d=c&&(Or(n)&7||n.aliasSymbol)?iut(n):void 0,_=Ot(gs(n),x=>DN(x,a)),y=Ot(yd(n),x=>x!==jr&&Z8e(x.keyType,a)?x.keyType===ke&&a&8?xo:x.keyType:Vr);return ti(So(_,y),1,void 0,void 0,d)}function jge(n,a=0){return!!(n.flags&58982400||Hb(n)||Kd(n)&&(!out(n)||PZ(n)===2)||n.flags&1048576&&!(a&4)&&uge(n)||n.flags&2097152&&Cl(n,465829888)&&bt(n.types,jh))}function Q_(n,a=Ue){return n=h_(n),UM(n)?Tge(Q_(n.baseType,a)):jge(n,a)?$8e(n,a):n.flags&1048576?ba(Ot(n.types,c=>Q_(c,a))):n.flags&2097152?ti(Ot(n.types,c=>Q_(c,a))):Or(n)&32?Q8e(n,a):n===Rt?Rt:n.flags&2?Vr:n.flags&131073?Fs:aut(n,(a&2?128:402653316)|(a&1?0:12584),a===Ue)}function e6e(n){if(Me)return n;const a=Ect();return a?xN(a,[n,ke]):ke}function sut(n){const a=e6e(Q_(n));return a.flags&131072?ke:a}function lut(n){const a=ei(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=Q_(bi(n.type));break;case 158:a.resolvedType=n.type.kind===155?$ge(XL(n.parent)):_t;break;case 148:a.resolvedType=bi(n.type);break;default:N.assertNever(n.operator)}return a.resolvedType}function cut(n){const a=ei(n);return a.resolvedType||(a.resolvedType=JT([n.head.text,...Ot(n.templateSpans,c=>c.literal.text)],Ot(n.templateSpans,c=>bi(c.type)))),a.resolvedType}function JT(n,a){const c=Br(a,H=>!!(H.flags&1179648));if(c>=0)return h9(a)?pl(a[c],H=>JT(n,tG(a,c,H))):_t;if(Nr(a,Rt))return Rt;const d=[],_=[];let y=n[0];if(!z(n,a))return ke;if(d.length===0)return Xd(y);if(_.push(y),Zn(_,H=>H==="")){if(Zn(d,H=>!!(H.flags&4)))return ke;if(d.length===1&&KT(d[0]))return d[0]}const x=`${mm(d)}|${Ot(_,H=>H.length).join(",")}|${_.join("")}`;let k=hi.get(x);return k||hi.set(x,k=dut(_,d)),k;function z(H,re){for(let be=0;begx(n,c)):a.flags&128?Xd(t6e(n,a.value)):a.flags&134217728?JT(...put(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||YT(a)?n6e(n,a):g9(a)?n6e(n,JT(["",""],[a])):a}function t6e(n,a){switch(GF.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 put(n,a,c){switch(GF.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>gx(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>gx(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[gx(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]===""?[gx(n,c[0]),...c.slice(1)]:c]}return[a,c]}function n6e(n,a){const c=`${Ta(n)},${vd(a)}`;let d=Qi.get(c);return d||Qi.set(c,d=fut(n,a)),d}function fut(n,a){const c=Sg(268435456,n);return c.type=a,c}function mut(n,a,c,d,_){const y=Eg(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=c,y.aliasSymbol=d,y.aliasTypeArguments=_,y}function R8(n){if(pe)return!1;if(Or(n)&4096)return!0;if(n.flags&1048576)return Zn(n.types,R8);if(n.flags&2097152)return bt(n.types,R8);if(n.flags&465829888){const a=sge(n);return a!==n&&R8(a)}return!1}function jZ(n,a){return rm(n)?im(n):a&&ic(a)?NS(a):void 0}function Uge(n,a){if(a.flags&8208){const c=Gn(n.parent,d=>!ws(d))||n.parent;return kE(c)?I_(c)&&Ve(n)&&d4e(c,n):Zn(a.declarations,d=>!ea(d)||av(d))}return!0}function r6e(n,a,c,d,_,y){const x=_&&_.kind===212?_:void 0,k=_&&Ji(_)?void 0:jZ(c,_);if(k!==void 0){if(y&256)return vE(a,k)||j;const H=va(a,k);if(H){if(y&64&&_&&H.declarations&&hb(H)&&Uge(_,H)){const be=x?.argumentExpression??(GS(_)?_.indexType:_);sv(be,H.declarations,k)}if(x){if(X9(H,x,E3e(x.expression,a.symbol)),uWe(x,H,FA(x))){qe(x.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,vi(H));return}if(y&8&&(ei(_).resolvedSymbol=H),m3e(x,H))return ot}const re=y&4?j1(H):dr(H);return x&&FA(x)!==1?Kb(x,re):_&&GS(_)&&W8(re)?ti([re,Oe]):re}if(up(a,Ba)&&lg(k)){const re=+k;if(_&&up(a,be=>!be.target.hasRestElement)&&!(y&16)){const be=Hge(_);if(Ba(a)){if(re<0)return qe(be,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Oe;qe(be,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Un(a),mv(a),Vi(k))}else qe(be,f.Property_0_does_not_exist_on_type_1,Vi(k),Un(a))}if(re>=0)return z(Ig(a,Tt)),H6e(a,re,y&1?L:void 0)}}if(!(c.flags&98304)&&xu(c,402665900)){if(a.flags&131073)return a;const H=E8(a,c)||Ig(a,ke);if(H){if(y&2&&H.keyType!==Tt){x&&(y&4?qe(x,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Un(n)):qe(x,f.Type_0_cannot_be_used_to_index_type_1,Un(c),Un(n)));return}if(_&&H.keyType===ke&&!xu(c,12)){const re=Hge(_);return qe(re,f.Type_0_cannot_be_used_as_an_index_type,Un(c)),y&1?ti([H.type,L]):H.type}return z(H),y&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Cd(c.symbol)===a.symbol)?ti([H.type,L]):H.type}if(c.flags&131072)return Vr;if(R8(a))return j;if(x&&!Yee(a)){if(yE(a)){if(pe&&c.flags&384)return ts.add(kr(x,f.Property_0_does_not_exist_on_type_1,c.value,Un(a))),Oe;if(c.flags&12){const re=Ot(a.properties,be=>dr(be));return ti(xn(re,Oe))}}if(a.symbol===at&&k!==void 0&&at.exports.has(k)&&at.exports.get(k).flags&418)qe(x,f.Property_0_does_not_exist_on_type_1,Vi(k),Un(a));else if(pe&&!V.suppressImplicitAnyIndexErrors&&!(y&128))if(k!==void 0&&y3e(k,a)){const re=Un(a);qe(x,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,re,re+"["+pc(x.argumentExpression)+"]")}else if(uE(a,Tt))qe(x.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(k!==void 0&&(re=_ve(k,a)))re!==void 0&&qe(x.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,k,Un(a),re);else{const be=pmt(a,x,c);if(be!==void 0)qe(x,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Un(a),be);else{let ge;if(c.flags&1024)ge=jo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Un(c)+"]",Un(a));else if(c.flags&8192){const Je=qp(c.symbol,x);ge=jo(void 0,f.Property_0_does_not_exist_on_type_1,"["+Je+"]",Un(a))}else c.flags&128||c.flags&256?ge=jo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Un(a)):c.flags&12&&(ge=jo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Un(c),Un(a)));ge=jo(ge,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Un(d),Un(a)),ts.add(wg(jn(x),x,ge))}}}return}}if(R8(a))return j;if(_){const H=Hge(_);c.flags&384?qe(H,f.Property_0_does_not_exist_on_type_1,""+c.value,Un(a)):c.flags&12?qe(H,f.Type_0_has_no_matching_index_signature_for_type_1,Un(a),Un(c)):qe(H,f.Type_0_cannot_be_used_as_an_index_type,Un(c))}if(Nt(c))return c;return;function z(H){H&&H.isReadonly&&x&&(rg(x)||Wj(x))&&qe(x,f.Index_signature_in_type_0_only_permits_reading,Un(a))}}function Hge(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function g9(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||g9(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||KT(n)}function KT(n){return!!(n.flags&134217728)&&Zn(n.types,g9)||!!(n.flags&268435456)&&g9(n.type)}function i6e(n){return!!(n.flags&402653184)&&!KT(n)}function NN(n){return!!D8(n)}function XT(n){return!!(D8(n)&4194304)}function YT(n){return!!(D8(n)&8388608)}function D8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|id(n.types,(a,c)=>a|D8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|D8(n.baseType)|D8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Kd(n)||Hb(n)?4194304:0)|(n.flags&63176704||i6e(n)?8388608:0)}function my(n,a){return n.flags&8388608?hut(n,a):n.flags&16777216?gut(n,a):n}function o6e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!jge(n)){const d=Ot(n.types,_=>my(Mp(_,a),c));return n.flags&2097152||c?ba(d):ti(d)}}function _ut(n,a,c){if(a.flags&1048576){const d=Ot(a.types,_=>my(Mp(n,_),c));return c?ba(d):ti(d)}}function hut(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===nu?n:n[c];n[c]=nu;const d=my(n.objectType,a),_=my(n.indexType,a),y=_ut(d,_,a);if(y)return n[c]=y;if(!(_.flags&465829888)){const x=o6e(d,_,a);if(x)return n[c]=x}if(Hb(d)&&_.flags&296){const x=$M(d,_.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Kd(d)&&PZ(d)!==2?n[c]=pl(UZ(d,n.indexType),x=>my(x,a)):n[c]=n}function gut(n,a){const c=n.checkType,d=n.extendsType,_=pE(n),y=fE(n);if(y.flags&131072&&Gb(_)===Gb(c)){if(c.flags&1||Ea(QT(c),QT(d)))return my(_,a);if(a6e(c,d))return Vr}else if(_.flags&131072&&Gb(y)===Gb(c)){if(!(c.flags&1)&&Ea(QT(c),QT(d)))return Vr;if(c.flags&1||a6e(c,d))return my(y,a)}return n}function a6e(n,a){return!!(ti([a9(n,a),Vr]).flags&131072)}function UZ(n,a){const c=Lp([m_(n)],[a]),d=Y1(n.mapper,c);return so(dy(n.target||n),d)}function Mp(n,a,c=0,d,_,y){return Bb(n,a,c,d,_,y)||(d?_t:_n)}function s6e(n,a){return up(n,c=>{if(c.flags&384){const d=im(c);if(lg(d)){const _=+d;return _>=0&&_0&&!bt(n.elements,a=>UW(a)||HW(a)||HR(a)&&!!(a.questionToken||a.dotDotDotToken))}function u6e(n,a){return NN(n)||a&&Ba(n)&&bt(q1(n),NN)}function Jge(n,a,c,d,_){let y,x,k=0;for(;;){if(k===1e3)return qe(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;const H=so(Gb(n.checkType),a),re=so(n.extendsType,a);if(H===_t||re===_t)return _t;if(H===Rt||re===Rt)return Rt;const be=YL(n.node.checkType),ge=YL(n.node.extendsType),Je=c6e(be)&&c6e(ge)&&Le(be.elements)===Le(ge.elements),gt=u6e(H,Je);let Dt;if(n.inferTypeParameters){const cn=z8(n.inferTypeParameters,void 0,0);a&&(cn.nonFixingMapper=Y1(cn.nonFixingMapper,a)),gt||vy(cn.inferences,H,re,1536),Dt=a?Y1(cn.mapper,a):cn.mapper}const an=Dt?so(n.extendsType,Dt):re;if(!gt&&!u6e(an,Je)){if(!(an.flags&3)&&(H.flags&1||!Ea(P8(H),P8(an)))){(H.flags&1||c&&!(an.flags&131072)&&Um(P8(an),ar=>Ea(ar,P8(H))))&&(x||(x=[])).push(so(bi(n.node.trueType),Dt||a));const cn=bi(n.node.falseType);if(cn.flags&16777216){const ar=cn.root;if(ar.node.parent===n.node&&(!ar.isDistributive||ar.checkType===n.checkType)){n=ar;continue}if(z(cn,a))continue}y=so(cn,a);break}if(an.flags&3||Ea(QT(H),QT(an))){const cn=bi(n.node.trueType),ar=Dt||a;if(z(cn,ar))continue;y=so(cn,ar);break}}y=Eg(16777216),y.root=n,y.checkType=so(n.checkType,a),y.extendsType=so(n.extendsType,a),y.mapper=a,y.combinedMapper=Dt,y.aliasSymbol=d||n.aliasSymbol,y.aliasTypeArguments=d?_:hv(n.aliasTypeArguments,a);break}return x?ti(xn(x,y)):y;function z(H,re){if(H.flags&16777216&&re){const be=H.root;if(be.outerTypeParameters){const ge=Y1(H.mapper,re),Je=Ot(be.outerTypeParameters,an=>Vb(an,ge)),gt=Lp(be.outerTypeParameters,Je),Dt=be.isDistributive?Vb(be.checkType,gt):void 0;if(!Dt||Dt===be.checkType||!(Dt.flags&1179648))return n=be,a=gt,d=void 0,_=void 0,be.aliasSymbol&&k++,!0}}return!1}}function pE(n){return n.resolvedTrueType||(n.resolvedTrueType=so(bi(n.root.node.trueType),n.mapper))}function fE(n){return n.resolvedFalseType||(n.resolvedFalseType=so(bi(n.root.node.falseType),n.mapper))}function yut(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?so(bi(n.root.node.trueType),n.combinedMapper):pE(n))}function d6e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=xn(a,el(c)))}),a}function vut(n){return n.isDistributive&&(E9(n.checkType,n.node.trueType)||E9(n.checkType,n.node.falseType))}function but(n){const a=ei(n);if(!a.resolvedType){const c=bi(n.checkType),d=yx(n),_=CN(d),y=Cn(n,!0),x=_?y:nr(y,z=>E9(z,n)),k={node:n,checkType:c,extendsType:bi(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:d6e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:_};a.resolvedType=Jge(k,void 0,!1),x&&(k.instantiations=new Map,k.instantiations.set(mm(x),a.resolvedType))}return a.resolvedType}function Eut(n){const a=ei(n);return a.resolvedType||(a.resolvedType=GT(Ir(n.typeParameter))),a.resolvedType}function p6e(n){return Ve(n)?[n]:xn(p6e(n.left),n.right)}function Sut(n){var a;const c=ei(n);if(!c.resolvedType){if(!Vv(n))return qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ft,c.resolvedType=_t;const d=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=gd(n,n.argument.literal);if(!_)return c.resolvedSymbol=ft,c.resolvedType=_t;const y=!!((a=_.exports)!=null&&a.get("export=")),x=Dp(_,!1);if(zl(n.qualifier))if(x.flags&d)c.resolvedType=f6e(n,c,x,d);else{const k=d===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;qe(n,k,n.argument.literal.text),c.resolvedSymbol=ft,c.resolvedType=_t}else{const k=p6e(n.qualifier);let z=x,H;for(;H=k.shift();){const re=k.length?1920:d,be=rs(jl(z)),ge=n.isTypeOf||lr(n)&&y?va(dr(be),H.escapedText,!1,!0):void 0,gt=(n.isTypeOf?void 0:Jd(Np(be),H.escapedText,re))??ge;if(!gt)return qe(H,f.Namespace_0_has_no_exported_member_1,qp(z),Rs(H)),c.resolvedType=_t;ei(H).resolvedSymbol=gt,ei(H.parent).resolvedSymbol=gt,z=gt}c.resolvedType=f6e(n,c,z,d)}}return c.resolvedType}function f6e(n,a,c,d){const _=jl(c);return a.resolvedSymbol=_,d===111551?K3e(dr(c),n):zZ(n,_)}function m6e(n){const a=ei(n);if(!a.resolvedType){const c=yx(n);if(Ob(n.symbol).size===0&&!c)a.resolvedType=sc;else{let d=zf(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=CN(c),JS(n)&&n.isArrayType&&(d=Vu(d)),a.resolvedType=d}}return a.resolvedType}function yx(n){let a=n.parent;for(;zS(a)||u1(a)||BS(a)&&a.operator===148;)a=a.parent;return HL(a)?Ir(a):void 0}function CN(n){return n?Lr(n):void 0}function HZ(n){return!!(n.flags&524288)&&!Kd(n)}function Kge(n){return hy(n)||!!(n.flags&474058748)}function Xge(n,a){if(!(n.flags&1048576))return n;if(Zn(n.types,Kge))return An(n.types,hy)||La;const c=An(n.types,y=>!Kge(y));if(!c||An(n.types,y=>y!==c&&!Kge(y)))return n;return _(c);function _(y){const x=ca();for(const z of gs(y))if(!(Df(z)&6)){if(qZ(z)){const H=z.flags&65536&&!(z.flags&32768),be=Xa(16777220,z.escapedName,nge(z)|(a?8:0));be.links.type=H?Oe:cp(dr(z),!0),be.declarations=z.declarations,be.links.nameType=Xi(z).nameType,be.links.syntheticOrigin=z,x.set(z.escapedName,be)}}const k=Ls(y.symbol,x,et,et,yd(y));return k.objectFlags|=131200,k}}function J1(n,a,c,d,_){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return _n;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=Xge(n,_),n.flags&1048576)return h9([n,a])?pl(n,H=>J1(H,a,c,d,_)):_t;if(a=Xge(a,_),a.flags&1048576)return h9([n,a])?pl(a,H=>J1(n,H,c,d,_)):_t;if(a.flags&473960444)return n;if(XT(n)||XT(a)){if(hy(n))return a;if(n.flags&2097152){const H=n.types,re=H[H.length-1];if(HZ(re)&&HZ(a))return ba(So(H.slice(0,H.length-1),[J1(re,a,c,d,_)]))}return ba([n,a])}const y=ca(),x=new Set,k=n===La?yd(a):XOe([n,a]);for(const H of gs(a))Df(H)&6?x.add(H.escapedName):qZ(H)&&y.set(H.escapedName,Yge(H,_));for(const H of gs(n))if(!(x.has(H.escapedName)||!qZ(H)))if(y.has(H.escapedName)){const re=y.get(H.escapedName),be=dr(re);if(re.flags&16777216){const ge=So(H.declarations,re.declarations),Je=4|H.flags&16777216,gt=Xa(Je,H.escapedName),Dt=dr(H),an=pee(Dt),cn=pee(be);gt.links.type=an===cn?Dt:ti([Dt,cn],2),gt.links.leftSpread=H,gt.links.rightSpread=re,gt.declarations=ge,gt.links.nameType=Xi(H).nameType,y.set(H.escapedName,gt)}}else y.set(H.escapedName,Yge(H,_));const z=Ls(c,y,et,et,eo(k,H=>Tut(H,_)));return z.objectFlags|=2228352|d,z}function qZ(n){var a;return!bt(n.declarations,ld)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ui(c.parent))))}function Yge(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===b_(n))return n;const d=4|n.flags&16777216,_=Xa(d,n.escapedName,nge(n)|(a?8:0));return _.links.type=c?Oe:dr(n),_.declarations=n.declarations,_.links.nameType=Xi(n).nameType,_.links.syntheticOrigin=n,_}function Tut(n,a){return n.isReadonly!==a?Gh(n.keyType,n.type,a,n.declaration):n}function y9(n,a,c,d){const _=Sg(n,c);return _.value=a,_.regularType=d||_,_}function vx(n){if(n.flags&2976){if(!n.freshType){const a=y9(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function bd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=pl(n,bd)):n}function K1(n){return!!(n.flags&2976)&&n.freshType===n}function Xd(n){let a;return sn.get(n)||(sn.set(n,a=y9(128,n)),a)}function g_(n){let a;return tt.get(n)||(tt.set(n,a=y9(256,n)),a)}function JZ(n){let a;const c=YE(n);return Bt.get(c)||(Bt.set(c,a=y9(2048,n)),a)}function Aut(n,a,c){let d;const _=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return Rn.get(_)||(Rn.set(_,d=y9(y,n,c)),d)}function Iut(n){if(n.literal.kind===106)return me;const a=ei(n);return a.resolvedType||(a.resolvedType=bd(mo(n.literal))),a.resolvedType}function xut(n){const a=Sg(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function $ge(n){if(lr(n)&&u1(n)){const a=DS(n);a&&(n=WA(a)||a)}if(uie(n)){const a=G4(n)?gf(n.left):gf(n);if(a){const c=Xi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=xut(a))}}return Ai}function Rut(n){const a=Fd(n,!1,!1),c=a&&a.parent;if(c&&(ui(c)||c.kind===264)&&!aa(a)&&(!Ml(a)||VE(n,a.body)))return Vf(Ir(c)).thisType;if(c&&Oa(c)&&mr(c.parent)&&Bl(c.parent)===6)return Vf(gf(c.parent.left).parent).thisType;const d=n.flags&16777216?g0(n):void 0;return d&&Os(d)&&mr(d.parent)&&Bl(d.parent)===3?Vf(gf(d.parent.left).parent).thisType:nh(a)&&VE(n,a.body)?Vf(Ir(a)).thisType:(qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function KZ(n){const a=ei(n);return a.resolvedType||(a.resolvedType=Rut(n)),a.resolvedType}function _6e(n){return bi(v9(n.type)||n.type)}function v9(n){switch(n.kind){case 196:return v9(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return v9(n.type);break;case 188:return n.elementType}}function Dut(n){const a=ei(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?_6e(n):cp(bi(n.type),!0,!!n.questionToken))}function bi(n){return act(h6e(n),n)}function h6e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return _n;case 154:return ke;case 150:return Tt;case 163:return kt;case 136:return Ni;case 155:return Ai;case 116:return ir;case 157:return Oe;case 106:return me;case 146:return Vr;case 151:return n.flags&524288&&!pe?j:Jr;case 141:return pn;case 197:case 110:return KZ(n);case 201:return Iut(n);case 183:return Rge(n);case 182:return n.assertsModifier?ir:Ni;case 233:return Rge(n);case 186:return R8e(n);case 188:case 189:return Oct(n);case 190:return Bct(n);case 192:return Xct(n);case 193:return rut(n);case 321:return sct(n);case 323:return cp(bi(n.type));case 202:return Dut(n);case 196:case 322:case 316:return bi(n.type);case 191:return _6e(n);case 325:return Cyt(n);case 184:case 185:case 187:case 329:case 324:case 330:return m6e(n);case 198:return lut(n);case 199:return l6e(n);case 200:return qge(n);case 194:return but(n);case 195:return Eut(n);case 203:return cut(n);case 205:return Sut(n);case 80:case 166:case 211:const a=Hm(n);return a?el(a):_t;default:return _t}}function XZ(n,a,c){if(n&&n.length)for(let d=0;dd.typeParameter),Ot(c,()=>_n))}function Y1(n,a){return n?$Z(4,n,a):a}function Put(n,a){return n?$Z(5,n,a):a}function $T(n,a,c){return c?$Z(5,X1(n,a),c):X1(n,a)}function N8(n,a,c){return n?$Z(5,n,X1(a,c)):X1(a,c)}function Mut(n){return!n.constraint&&!Ege(n)||n.constraint===js?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=vf(n.symbol),n.restrictiveInstantiation.constraint=js,n.restrictiveInstantiation)}function Zge(n){const a=vf(n.symbol);return a.target=n,a}function Lut(n,a){return p9(n.kind,n.parameterName,n.parameterIndex,so(n.type,a))}function PN(n,a,c){let d;if(n.typeParameters&&!c){d=Ot(n.typeParameters,Zge),a=Y1(Lp(n.typeParameters,d),a);for(const y of d)y.mapper=a}const _=Ag(n.declaration,d,n.thisParameter&&eye(n.thisParameter,a),XZ(n.parameters,a,eye),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function eye(n,a){const c=Xi(n);if(c.type&&!gE(c.type)&&(!(n.flags&65536)||c.writeType&&!gE(c.writeType)))return n;xl(n)&1&&(n=c.target,a=Y1(c.mapper,a));const d=Xa(n.flags,n.escapedName,1|xl(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function kut(n,a,c,d){const _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=ei(_),x=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n;let k=y.outerTypeParameters;if(!k){let z=Cn(_,!0);if(nh(_)){const re=p8e(_);z=qr(z,re)}k=z||et;const H=n.objectFlags&8388612?[_]:n.symbol.declarations;k=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?nr(k,re=>bt(H,be=>E9(re,be))):k,y.outerTypeParameters=k}if(k.length){const z=Y1(n.mapper,a),H=Ot(k,gt=>Vb(gt,z)),re=c||n.aliasSymbol,be=c?d:hv(n.aliasTypeArguments,a),ge=mm(H)+hx(re,be);x.instantiations||(x.instantiations=new Map,x.instantiations.set(mm(k)+hx(x.aliasSymbol,x.aliasTypeArguments),x));let Je=x.instantiations.get(ge);if(!Je){const gt=Lp(k,H);Je=x.objectFlags&4?Sge(n.target,n.node,gt,re,be):x.objectFlags&32?Out(x,gt,re,be):tye(x,gt,re,be),x.instantiations.set(ge,Je);const Dt=Or(Je);if(Je.flags&3899393&&!(Dt&524288)){const an=bt(H,gE);Or(Je)&524288||(Dt&52?Je.objectFlags|=524288|(an?1048576:0):Je.objectFlags|=an?0:524288)}}return Je}return n}function wut(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 E9(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const d=n.symbol.declarations[0].parent;for(let _=a;_!==d;_=_.parent)if(!_||_.kind===241||_.kind===194&&Ho(_.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&eg(d)&&wut(d)&&h6e(d)===n;case 186:const _=d.exprName,y=Vp(_);if(!JE(y)){const x=jm(y),k=n.symbol.declarations[0],z=k.kind===168?k.parent:n.isThisType?k:void 0;if(x.declarations&&z)return bt(x.declarations,H=>VE(H,z))||bt(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||bt(d.typeParameters,c)||bt(d.parameters,c)||!!d.type&&c(d.type)}return!!Ho(d,c)}}function C8(n){const a=Ef(n);if(a.flags&4194304){const c=Gb(a.type);if(c.flags&262144)return c}}function Out(n,a,c,d){const _=C8(n);if(_){const x=so(_,a);if(_!==x)return E4e(h_(x),y,c,d)}return so(Ef(n),a)===Rt?Rt:tye(n,a,c,d);function y(x){if(x.flags&61603843&&x!==Rt&&!Kt(x)){if(!n.declaration.nameType){let k;if(qf(x)||x.flags&1&&px(_,4)<0&&(k=Md(_))&&up(k,_E))return Fut(x,n,$T(_,x,a));if(Ba(x))return Wut(x,n,_,a);if(a8e(x))return ba(Ot(x.types,y))}return tye(n,$T(_,x,a))}return x}}function v6e(n,a){return a&1?!0:a&2?!1:n}function Wut(n,a,c,d){const _=n.target.elementFlags,y=n.target.fixedLength,x=y?$T(c,n,d):d,k=Ot(q1(n),(be,ge)=>{const Je=_[ge];return gebe&1?2:be):z&8?Ot(_,be=>be&2?1:be):_,re=v6e(n.target.readonly,zh(a));return Nr(k,_t)?_t:Vh(k,H,re,n.target.labeledElementDeclarations)}function Fut(n,a,c){const d=b6e(a,Tt,!0,c);return Kt(d)?_t:Vu(d,v6e(XM(n),zh(a)))}function b6e(n,a,c,d){const _=N8(d,m_(n),a),y=so(dy(n.target||n),_),x=zh(n);return Y&&x&4&&!Cl(y,49152)?qb(y,!0):Y&&x&8&&c?hm(y,524288):y}function tye(n,a,c,d){N.assert(n.symbol,"anonymous type must have symbol to be instantiated");const _=zf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;const y=m_(n),x=Zge(y);_.typeParameter=x,a=Y1(X1(y,x),a),x.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?d:hv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?WZ(_.aliasTypeArguments):0,_}function nye(n,a,c,d,_){const y=n.root;if(y.outerTypeParameters){const x=Ot(y.outerTypeParameters,H=>Vb(H,a)),k=(c?"C":"")+mm(x)+hx(d,_);let z=y.instantiations.get(k);if(!z){const H=Lp(y.outerTypeParameters,x),re=y.checkType,be=y.isDistributive?h_(Vb(re,H)):void 0;z=be&&re!==be&&be.flags&1179648?E4e(be,ge=>Jge(y,$T(re,ge,H),c),d,_):Jge(y,H,c,d,_),y.instantiations.set(k,z)}return z}return n}function so(n,a){return n&&a?E6e(n,a,void 0,void 0):n}function E6e(n,a,c,d){var _;if(!gE(n))return n;if(R===100||I>=5e6)return(_=sr)==null||_.instant(sr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:I}),qe(C,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;A++,I++,R++;const y=zut(n,a,c,d);return R--,y}function zut(n,a,c,d){const _=n.flags;if(_&262144)return Vb(n,a);if(_&524288){const y=n.objectFlags;if(y&52){if(y&4&&!n.node){const x=n.resolvedTypeArguments,k=hv(x,a);return k!==x?Oge(n.target,k):n}return y&1024?But(n,a):kut(n,a,c,d)}return n}if(_&3145728){const y=n.flags&1048576?n.origin:void 0,x=y&&y.flags&3145728?y.types:n.types,k=hv(x,a);if(k===x&&c===n.aliasSymbol)return n;const z=c||n.aliasSymbol,H=c?d:hv(n.aliasTypeArguments,a);return _&2097152||y&&y.flags&2097152?ba(k,z,H):ti(k,1,z,H)}if(_&4194304)return Q_(so(n.type,a));if(_&134217728)return JT(n.texts,hv(n.types,a));if(_&268435456)return gx(n.symbol,so(n.type,a));if(_&8388608){const y=c||n.aliasSymbol,x=c?d:hv(n.aliasTypeArguments,a);return Mp(so(n.objectType,a),so(n.indexType,a),n.accessFlags,void 0,y,x)}if(_&16777216)return nye(n,Y1(n.mapper,a),!1,c,d);if(_&33554432){const y=so(n.baseType,a);if(UM(n))return Tge(y);const x=so(n.constraint,a);return y.flags&8650752&&NN(x)?Ige(y,x):x.flags&3||Ea(QT(y),QT(x))?y:y.flags&8650752?Ige(y,x):ba([x,y])}return n}function But(n,a){const c=so(n.mappedType,a);if(!(Or(c)&32))return n;const d=so(n.constraintType,a);if(!(d.flags&4194304))return n;const _=Z6e(so(n.source,a),c,d);return _||n}function P8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=so(n,yl))}function QT(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=so(n,Vs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Gut(n,a){return Gh(n.keyType,so(n.type,a),n.isReadonly,n.declaration)}function Uf(n){switch(N.assert(n.kind!==174||xm(n)),n.kind){case 218:case 219:case 174:case 262:return S6e(n);case 210:return bt(n.properties,Uf);case 209:return bt(n.elements,Uf);case 227:return Uf(n.whenTrue)||Uf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Uf(n.left)||Uf(n.right));case 303:return Uf(n.initializer);case 217:return Uf(n.expression);case 292:return bt(n.properties,Uf)||W_(n.parent)&&bt(n.parent.parent.children,Uf);case 291:{const{initializer:a}=n;return!!a&&Uf(a)}case 294:{const{expression:a}=n;return!!a&&Uf(a)}}return!1}function S6e(n){return J3(n)||Vut(n)}function Vut(n){return n.typeParameters||nm(n)||!n.body?!1:n.body.kind!==241?Uf(n.body):!!FE(n.body,a=>!!a.expression&&Uf(a.expression))}function QZ(n){return($E(n)||xm(n))&&S6e(n)}function T6e(n){if(n.flags&524288){const a=__(n);if(a.constructSignatures.length||a.callSignatures.length){const c=zf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return ba(Ot(n.types,T6e));return n}function _y(n,a){return Z_(n,a,ap)}function M8(n,a){return Z_(n,a,ap)?-1:0}function rye(n,a){return Z_(n,a,qd)?-1:0}function jut(n,a){return Z_(n,a,Ch)?-1:0}function jb(n,a){return Z_(n,a,Ch)}function S9(n,a){return Z_(n,a,Wf)}function Ea(n,a){return Z_(n,a,qd)}function mE(n,a){return n.flags&1048576?Zn(n.types,c=>mE(c,a)):a.flags&1048576?bt(a.types,c=>mE(n,c)):n.flags&2097152?bt(n.types,c=>mE(c,a)):n.flags&58982400?mE(Gu(n)||_n,a):jh(a)?!!(n.flags&67633152):a===Ce?!!(n.flags&67633152)&&!jh(n):a===Wt?!!(n.flags&524288)&&Oye(n):bN(n,dv(a))||qf(a)&&!XM(a)&&mE(n,na)}function ZZ(n,a){return Z_(n,a,Rp)}function T9(n,a){return ZZ(n,a)||ZZ(a,n)}function nd(n,a,c,d,_,y){return Hf(n,a,qd,c,d,_,y)}function Ub(n,a,c,d,_,y){return iye(n,a,qd,c,d,_,y,void 0)}function iye(n,a,c,d,_,y,x,k){return Z_(n,a,c)?!0:!d||!L8(_,n,a,c,y,x,k)?Hf(n,a,c,d,y,x,k):!1}function A6e(n){return!!(n.flags&16777216||n.flags&2097152&&bt(n.types,A6e))}function L8(n,a,c,d,_,y,x){if(!n||A6e(c))return!1;if(!Hf(a,c,d,void 0)&&Uut(n,a,c,d,_,y,x))return!0;switch(n.kind){case 234:if(!gb(n))break;case 294:case 217:return L8(n.expression,a,c,d,_,y,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return L8(n.right,a,c,d,_,y,x)}break;case 210:return Qut(n,a,c,d,y,x);case 209:return Yut(n,a,c,d,y,x);case 292:return Xut(n,a,c,d,y,x);case 219:return Hut(n,a,c,d,y,x)}return!1}function Uut(n,a,c,d,_,y,x){const k=Yo(a,0),z=Yo(a,1);for(const H of[z,k])if(bt(H,re=>{const be=ps(re);return!(be.flags&131073)&&Hf(be,c,d,void 0)})){const re=x||{};nd(a,c,n,_,y,re);const be=re.errors[re.errors.length-1];return wa(be,kr(n,H===z?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function Hut(n,a,c,d,_,y){if(Xo(n.body)||bt(n.parameters,A4))return!1;const x=sA(a);if(!x)return!1;const k=Yo(c,0);if(!Le(k))return!1;const z=n.body,H=ps(x),re=ti(Ot(k,ps));if(!Hf(H,re,d,void 0)){const be=z&&L8(z,H,re,d,void 0,_,y);if(be)return be;const ge=y||{};if(Hf(H,re,d,z,void 0,_,ge),ge.errors)return c.symbol&&Le(c.symbol.declarations)&&wa(ge.errors[ge.errors.length-1],kr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),(Vc(n)&2)===0&&!Ke(H,"then")&&Hf(iB(H),re,d,void 0)&&wa(ge.errors[ge.errors.length-1],kr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function I6e(n,a,c){const d=Bb(a,c);if(d)return d;if(a.flags&1048576){const _=L6e(n,a);if(_)return Bb(_,c)}}function x6e(n,a){V9(n,a,!1);const c=s2(n,1);return j8(),c}function A9(n,a,c,d,_,y){let x=!1;for(const k of n){const{errorNode:z,innerExpression:H,nameType:re,errorMessage:be}=k;let ge=I6e(a,c,re);if(!ge||ge.flags&8388608)continue;let Je=Bb(a,re);if(!Je)continue;const gt=jZ(re,void 0);if(!Hf(Je,ge,d,void 0)){const Dt=H&&L8(H,Je,ge,d,void 0,_,y);if(x=!0,!Dt){const an=y||{},cn=H?x6e(H,Je):Je;if(De&&tee(cn,ge)){const ar=kr(z,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Un(cn),Un(ge));ts.add(ar),an.errors=[ar]}else{const ar=!!(gt&&(va(c,gt)||ft).flags&16777216),On=!!(gt&&(va(a,gt)||ft).flags&16777216);ge=Jb(ge,ar),Je=Jb(Je,ar&&On),Hf(cn,ge,d,z,be,_,an)&&cn!==Je&&Hf(Je,ge,d,z,be,_,an)}if(an.errors){const ar=an.errors[an.errors.length-1],On=rm(re)?im(re):void 0,ln=On!==void 0?va(c,On):void 0;let zn=!1;if(!ln){const Fn=E8(c,re);Fn&&Fn.declaration&&!jn(Fn.declaration).hasNoDefaultLib&&(zn=!0,wa(ar,kr(Fn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!zn&&(ln&&Le(ln.declarations)||c.symbol&&Le(c.symbol.declarations))){const Fn=ln&&Le(ln.declarations)?ln.declarations[0]:c.symbol.declarations[0];jn(Fn).hasNoDefaultLib||wa(ar,kr(Fn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,On&&!(re.flags&8192)?Vi(On):Un(re),Un(c)))}}}}}return x}function qut(n,a,c,d,_,y){const x=uc(c,lee),k=uc(c,re=>!lee(re)),z=k!==Vr?ebe(13,0,k,void 0):void 0;let H=!1;for(let re=n.next();!re.done;re=n.next()){const{errorNode:be,innerExpression:ge,nameType:Je,errorMessage:gt}=re.value;let Dt=z;const an=x!==Vr?I6e(a,x,Je):void 0;if(an&&!(an.flags&8388608)&&(Dt=z?ti([z,an]):an),!Dt)continue;let cn=Bb(a,Je);if(!cn)continue;const ar=jZ(Je,void 0);if(!Hf(cn,Dt,d,void 0)){const On=ge&&L8(ge,cn,Dt,d,void 0,_,y);if(H=!0,!On){const ln=y||{},zn=ge?x6e(ge,cn):cn;if(De&&tee(zn,Dt)){const Fn=kr(be,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Un(zn),Un(Dt));ts.add(Fn),ln.errors=[Fn]}else{const Fn=!!(ar&&(va(x,ar)||ft).flags&16777216),er=!!(ar&&(va(a,ar)||ft).flags&16777216);Dt=Jb(Dt,Fn),cn=Jb(cn,Fn&&er),Hf(zn,Dt,d,be,gt,_,ln)&&zn!==cn&&Hf(cn,Dt,d,be,gt,_,ln)}}}}return H}function*Jut(n){if(Le(n.properties))for(const a of n.properties)_I(a)||rve(Ek(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Xd(Ek(a.name))})}function*Kut(n,a){if(!Le(n.children))return;let c=0;for(let d=0;d1;let an,cn;if(Mge(!1)!==ko){const On=F8e(j);an=uc(Je,ln=>Ea(ln,On)),cn=uc(Je,ln=>!Ea(ln,On))}else an=uc(Je,lee),cn=uc(Je,On=>!lee(On));if(Dt){if(an!==Vr){const On=Vh(kee(H,0)),ln=Kut(H,z);x=qut(ln,On,an,d,_,y)||x}else if(!Z_(Mp(a,ge),Je,d)){x=!0;const On=qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,Un(Je));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(On)}}else if(cn!==Vr){const On=gt[0],ln=R6e(On,ge,z);ln&&(x=A9((function*(){yield ln})(),a,c,d,_,y)||x)}else if(!Z_(Mp(a,ge),Je,d)){x=!0;const On=qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,Un(Je));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(On)}}return x;function z(){if(!k){const H=pc(n.parent.tagName),re=U9(oA(n)),be=re===void 0?"children":Vi(re),ge=Mp(c,Xd(be)),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;k={...Je,key:"!!ALREADY FORMATTED!!",message:yU(Je,H,be,Un(ge))}}return k}}function*D6e(n,a){const c=Le(n.elements);if(c)for(let d=0;dz:rh(n)>z))return d&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,rh(n),z),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=ect(a),n=D3e(n,a,void 0,x));const re=Yp(n),be=J8(n),ge=J8(a);(be||ge)&&so(be||ge,k);const Je=a.declaration?a.declaration.kind:0,gt=!(c&3)&&oe&&Je!==174&&Je!==173&&Je!==176;let Dt=-1;const an=dE(n);if(an&&an!==ir){const On=dE(a);if(On){const ln=!gt&&x(an,On,!1)||x(On,an,d);if(!ln)return d&&_(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=ln}}const cn=be||ge?Math.min(re,z):Math.max(re,z),ar=be||ge?cn-1:-1;for(let On=0;On=rh(n)&&On=3&&a[0].flags&32768&&a[1].flags&65536&&bt(a,jh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function JM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function C6e(n){return n.flags&524288&&!Kd(n)&&gs(n).length===0&&yd(n).length===1&&!!Ig(n,ke)||n.flags&3145728&&Zn(n.types,C6e)||!1}function sye(n,a,c){const d=n.flags&8?Cd(n):n,_=a.flags&8?Cd(a):a;if(d===_)return!0;if(d.escapedName!==_.escapedName||!(d.flags&256)||!(_.flags&256))return!1;const y=Ta(d)+","+Ta(_),x=iv.get(y);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const k=dr(_);for(const z of gs(dr(d)))if(z.flags&8){const H=va(k,z.escapedName);if(!H||!(H.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,Sl(z),Un(el(_),void 0,64)),iv.set(y,6)):iv.set(y,2),!1;const re=VN(fl(z,306)),be=VN(fl(H,306));if(re!==be){const ge=typeof re=="string",Je=typeof be=="string";if(re!==void 0&&be!==void 0){if(!c)iv.set(y,2);else{const gt=ge?`"${ig(re)}"`:re,Dt=Je?`"${ig(be)}"`:be;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Sl(_),Sl(H),Dt,gt),iv.set(y,6)}return!1}if(ge||Je){if(!c)iv.set(y,2);else{const gt=re??be;N.assert(typeof gt=="string");const Dt=`"${ig(gt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Sl(_),Sl(H),Dt),iv.set(y,6)}return!1}}}return iv.set(y,1),!0}function k8(n,a,c,d){const _=n.flags,y=a.flags;return y&1||_&131072||n===Rt||y&2&&!(c===Wf&&_&1)?!0:y&131072?!1:!!(_&402653316&&y&4||_&128&&_&1024&&y&128&&!(y&1024)&&n.value===a.value||_&296&&y&8||_&256&&_&1024&&y&256&&!(y&1024)&&n.value===a.value||_&2112&&y&64||_&528&&y&16||_&12288&&y&4096||_&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&sye(n.symbol,a.symbol,d)||_&1024&&y&1024&&(_&1048576&&y&1048576&&sye(n.symbol,a.symbol,d)||_&2944&&y&2944&&n.value===a.value&&sye(n.symbol,a.symbol,d))||_&32768&&(!Y&&!(y&3145728)||y&49152)||_&65536&&(!Y&&!(y&3145728)||y&65536)||_&524288&&y&67108864&&!(c===Wf&&jh(n)&&!(Or(n)&8192))||(c===qd||c===Rp)&&(_&1||_&8&&(y&32||y&256&&y&1024)||_&256&&!(_&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||ndt(a)))}function Z_(n,a,c){if(K1(n)&&(n=n.regularType),K1(a)&&(a=a.regularType),n===a)return!0;if(c!==ap){if(c===Rp&&!(a.flags&131072)&&k8(a,n,c)||k8(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){const d=c.get(iee(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?Hf(n,a,c,void 0):!1}function P6e(n,a){return Or(n)&2048&&rve(a.escapedName)}function I9(n,a){for(;;){const c=K1(n)?n.regularType:Hb(n)?idt(n,a):Or(n)&4?n.node?fv(n.target,Js(n)):mye(n)||n:n.flags&3145728?rdt(n,a):n.flags&33554432?a?n.baseType:xge(n):n.flags&25165824?my(n,a):n;if(c===n)return c;n=c}}function rdt(n,a){const c=h_(n);if(c!==n)return c;if(n.flags&2097152&&bt(n.types,jh)){const d=eo(n.types,_=>I9(_,a));if(d!==n.types)return ba(d)}return n}function idt(n,a){const c=q1(n),d=eo(c,_=>_.flags&25165824?my(_,a):_);return c!==d?Wge(n.target,d):n}function Hf(n,a,c,d,_,y,x){var k;let z,H,re,be,ge,Je,gt=0,Dt=0,an=0,cn=0,ar=!1,On=0,ln=0,zn,Fn,er=16e6-c.size>>3;N.assert(c!==ap||!d,"no error reporting in identity checking");const qn=br(n,a,3,!!d,_);if(Fn&&Bo(),ar){const rt=iee(n,a,0,c,!1);c.set(rt,6),(k=sr)==null||k.instant(sr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:an});const St=er<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,Zt=qe(d||C,St,Un(n),Un(a));x&&(x.errors||(x.errors=[])).push(Zt)}else if(z){if(y){const Zt=y();Zt&&(yoe(Zt,z),z=Zt)}let rt;if(_&&d&&!qn&&n.symbol){const Zt=Xi(n.symbol);if(Zt.originatingImport&&!Bp(Zt.originatingImport)&&Hf(dr(Zt.target),a,c,void 0)){const Rr=kr(Zt.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);rt=xn(rt,Rr)}}const St=wg(jn(d),d,z,rt);H&&wa(St,...H),x&&(x.errors||(x.errors=[])).push(St),(!x||!x.skipLogging)&&ts.add(St)}return d&&x&&x.skipLogging&&qn===0&&N.assert(!!x.errors,"missed opportunity to interact with error."),qn!==0;function tr(rt){z=rt.errorInfo,zn=rt.lastSkippedInfo,Fn=rt.incompatibleStack,On=rt.overrideNextErrorInfo,ln=rt.skipParentCounter,H=rt.relatedInfo}function Ro(){return{errorInfo:z,lastSkippedInfo:zn,incompatibleStack:Fn?.slice(),overrideNextErrorInfo:On,skipParentCounter:ln,relatedInfo:H?.slice()}}function Eo(rt,...St){On++,zn=void 0,(Fn||(Fn=[])).push([rt,...St])}function Bo(){const rt=Fn||[];Fn=void 0;const St=zn;if(zn=void 0,rt.length===1){_o(...rt[0]),St&&dp(void 0,...St);return}let Zt="";const Kn=[];for(;rt.length;){const[Rr,...Tn]=rt.pop();switch(Rr.code){case f.Types_of_property_0_are_incompatible.code:{Zt.indexOf("new ")===0&&(Zt=`(${Zt})`);const gr=""+Tn[0];Zt.length===0?Zt=`${gr}`:tf(gr,os(V))?Zt=`${Zt}.${gr}`:gr[0]==="["&&gr[gr.length-1]==="]"?Zt=`${Zt}${gr}`:Zt=`${Zt}[${gr}]`;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(Zt.length===0){let gr=Rr;Rr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?gr=f.Call_signature_return_types_0_and_1_are_incompatible:Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(gr=f.Construct_signature_return_types_0_and_1_are_incompatible),Kn.unshift([gr,Tn[0],Tn[1]])}else{const gr=Rr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Hr=Rr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Rr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Zt=`${gr}${Zt}(${Hr})`}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,Tn[0],Tn[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,Tn[0],Tn[1],Tn[2]]);break}default:return N.fail(`Unhandled Diagnostic: ${Rr.code}`)}}Zt?_o(Zt[Zt.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,Zt):Kn.shift();for(const[Rr,...Tn]of Kn){const gr=Rr.elidedInCompatabilityPyramid;Rr.elidedInCompatabilityPyramid=!1,_o(Rr,...Tn),Rr.elidedInCompatabilityPyramid=gr}St&&dp(void 0,...St)}function _o(rt,...St){N.assert(!!d),Fn&&Bo(),!rt.elidedInCompatabilityPyramid&&(ln===0?z=jo(z,rt,...St):ln--)}function Cc(rt,...St){_o(rt,...St),ln++}function Jf(rt){N.assert(!!z),H?H.push(rt):H=[rt]}function dp(rt,St,Zt){Fn&&Bo();const[Kn,Rr]=dx(St,Zt);let Tn=St,gr=Kn;if(w8(St)&&!lye(Zt)&&(Tn=gy(St),N.assert(!Ea(Tn,Zt),"generalized source shouldn't be assignable"),gr=Rb(Tn)),(Zt.flags&8388608&&!(St.flags&8388608)?Zt.objectType.flags:Zt.flags)&262144&&Zt!==de&&Zt!==ee){const zi=Gu(Zt);let Fo;zi&&(Ea(Tn,zi)||(Fo=Ea(St,zi)))?_o(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Fo?Kn:gr,Rr,Un(zi)):(z=void 0,_o(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Rr,gr))}if(rt)rt===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&De&&M6e(St,Zt).length&&(rt=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===Rp)rt=f.Type_0_is_not_comparable_to_type_1;else if(Kn===Rr)rt=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(De&&M6e(St,Zt).length)rt=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(St.flags&128&&Zt.flags&1048576){const zi=fmt(St,Zt);if(zi){_o(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,gr,Rr,Un(zi));return}}rt=f.Type_0_is_not_assignable_to_type_1}_o(rt,gr,Rr)}function wn(rt,St){const Zt=Db(rt.symbol)?Un(rt,rt.symbol.valueDeclaration):Un(rt),Kn=Db(St.symbol)?Un(St,St.symbol.valueDeclaration):Un(St);(Zl===rt&&ke===St||yc===rt&&Tt===St||dl===rt&&Ni===St||L8e()===rt&&Ai===St)&&_o(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Kn,Zt)}function Qn(rt,St,Zt){return Ba(rt)?rt.target.readonly&&N9(St)?(Zt&&_o(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Un(rt),Un(St)),!1):_E(St):XM(rt)&&N9(St)?(Zt&&_o(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Un(rt),Un(St)),!1):Ba(St)?qf(rt):!0}function oo(rt,St,Zt){return br(rt,St,3,Zt)}function br(rt,St,Zt=3,Kn=!1,Rr,Tn=0){if(rt===St)return-1;if(rt.flags&524288&&St.flags&402784252)return c===Rp&&!(St.flags&131072)&&k8(St,rt,c)||k8(rt,St,c,Kn?_o:void 0)?-1:(Kn&&Co(rt,St,rt,St,Rr),0);const gr=I9(rt,!1);let Hr=I9(St,!0);if(gr===Hr)return-1;if(c===ap)return gr.flags!==Hr.flags?0:gr.flags&67358815?-1:(ss(gr,Hr),Si(gr,Hr,!1,0,Zt));if(gr.flags&262144&&jT(gr)===Hr)return-1;if(gr.flags&470302716&&Hr.flags&1048576){const zi=Hr.types,Fo=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(Fo&&!(Fo.flags&98304)&&(Hr=I9(Fo,!0),gr===Hr))return-1}if(c===Rp&&!(Hr.flags&131072)&&k8(Hr,gr,c)||k8(gr,Hr,c,Kn?_o:void 0))return-1;if(gr.flags&469499904||Hr.flags&469499904){if(!(Tn&2)&&yE(gr)&&Or(gr)&8192&&ju(gr,Hr,Kn))return Kn&&dp(Rr,gr,St.aliasSymbol?St:Hr),0;const Fo=(c!==Rp||y_(gr))&&!(Tn&2)&&gr.flags&405405692&&gr!==Ce&&Hr.flags&2621440&&k6e(Hr)&&(gs(gr).length>0||mte(gr)),_a=!!(Or(gr)&2048);if(Fo&&!adt(gr,Hr,_a)){if(Kn){const wo=Un(rt.aliasSymbol?rt:gr),Ra=Un(St.aliasSymbol?St:Hr),Cs=Yo(gr,0),fs=Yo(gr,1);Cs.length>0&&br(ps(Cs[0]),Hr,1,!1)||fs.length>0&&br(ps(fs[0]),Hr,1,!1)?_o(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,wo,Ra):_o(f.Type_0_has_no_properties_in_common_with_type_1,wo,Ra)}return 0}ss(gr,Hr);const yi=gr.flags&1048576&&gr.types.length<4&&!(Hr.flags&1048576)||Hr.flags&1048576&&Hr.types.length<4&&!(gr.flags&469499904)?kd(gr,Hr,Kn,Tn):Si(gr,Hr,Kn,Tn,Zt);if(yi)return yi}return Kn&&Co(rt,St,gr,Hr,Rr),0}function Co(rt,St,Zt,Kn,Rr){var Tn,gr;const Hr=!!mye(rt),zi=!!mye(St);Zt=rt.aliasSymbol||Hr?rt:Zt,Kn=St.aliasSymbol||zi?St:Kn;let Fo=On>0;if(Fo&&On--,Zt.flags&524288&&Kn.flags&524288){const _a=z;Qn(Zt,Kn,!0),z!==_a&&(Fo=!!z)}if(Zt.flags&524288&&Kn.flags&402784252)wn(Zt,Kn);else if(Zt.symbol&&Zt.flags&524288&&Ce===Zt)_o(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Or(Zt)&2048&&Kn.flags&2097152){const _a=Kn.types,ha=eS(sf.IntrinsicAttributes,d),yi=eS(sf.IntrinsicClassAttributes,d);if(!Kt(ha)&&!Kt(yi)&&(Nr(_a,ha)||Nr(_a,yi)))return}else z=dge(z,St);if(!Rr&&Fo){zn=[Zt,Kn];return}if(dp(Rr,Zt,Kn),Zt.flags&262144&&((gr=(Tn=Zt.symbol)==null?void 0:Tn.declarations)!=null&&gr[0])&&!jT(Zt)){const _a=Zge(Zt);if(_a.constraint=so(Kn,X1(Zt,_a)),c9(_a)){const ha=Un(Kn,Zt.symbol.declarations[0]);Jf(kr(Zt.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,ha))}}}function ss(rt,St){if(sr&&rt.flags&3145728&&St.flags&3145728){const Zt=rt,Kn=St;if(Zt.objectFlags&Kn.objectFlags&32768)return;const Rr=Zt.types.length,Tn=Kn.types.length;Rr*Tn>1e6&&sr.instant(sr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:rt.id,sourceSize:Rr,targetId:St.id,targetSize:Tn,pos:d?.pos,end:d?.end})}}function Ts(rt,St){return ti(id(rt,(Kn,Rr)=>{var Tn;Rr=Ld(Rr);const gr=Rr.flags&3145728?u9(Rr,St):cE(Rr,St),Hr=gr&&dr(gr)||((Tn=_x(Rr,St))==null?void 0:Tn.type)||Oe;return xn(Kn,Hr)},void 0)||et)}function ju(rt,St,Zt){var Kn;if(!q9(St)||!pe&&Or(St)&4096)return!1;const Rr=!!(Or(rt)&2048);if((c===qd||c===Rp)&&(e2(Ce,St)||!Rr&&hy(St)))return!1;let Tn=St,gr;St.flags&1048576&&(Tn=$Fe(rt,St,br)||hbt(St),gr=Tn.flags&1048576?Tn.types:[Tn]);for(const Hr of gs(rt))if(Ga(Hr,rt.symbol)&&!P6e(rt,Hr)){if(!ave(Tn,Hr.escapedName,Rr)){if(Zt){const zi=uc(Tn,q9);if(!d)return N.fail();if(s1(d)||cd(d)||cd(d.parent)){Hr.valueDeclaration&&F_(Hr.valueDeclaration)&&jn(d)===jn(Hr.valueDeclaration.name)&&(d=Hr.valueDeclaration.name);const Fo=vi(Hr),_a=b3e(Fo,zi),ha=_a?vi(_a):void 0;ha?_o(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Fo,Un(zi),ha):_o(f.Property_0_does_not_exist_on_type_1,Fo,Un(zi))}else{const Fo=((Kn=rt.symbol)==null?void 0:Kn.declarations)&&Xc(rt.symbol.declarations);let _a;if(Hr.valueDeclaration&&Gn(Hr.valueDeclaration,ha=>ha===Fo)&&jn(Fo)===jn(d)){const ha=Hr.valueDeclaration;N.assertNode(ha,kg);const yi=ha.name;d=yi,Ve(yi)&&(_a=_ve(yi,zi))}_a!==void 0?Cc(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,vi(Hr),Un(zi),_a):Cc(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,vi(Hr),Un(zi))}}return!0}if(gr&&!br(dr(Hr),Ts(gr,Hr.escapedName),3,Zt))return Zt&&Eo(f.Types_of_property_0_are_incompatible,vi(Hr)),!0}return!1}function Ga(rt,St){return rt.valueDeclaration&&St.valueDeclaration&&rt.valueDeclaration.parent===St.valueDeclaration}function kd(rt,St,Zt,Kn){if(rt.flags&1048576){if(St.flags&1048576){const Rr=rt.origin;if(Rr&&Rr.flags&2097152&&St.aliasSymbol&&Nr(Rr.types,St))return-1;const Tn=St.origin;if(Tn&&Tn.flags&1048576&&rt.aliasSymbol&&Nr(Tn.types,rt))return-1}return c===Rp?Ae(rt,St,Zt&&!(rt.flags&402784252),Kn):Pr(rt,St,Zt&&!(rt.flags&402784252),Kn)}if(St.flags&1048576)return El(F8(rt),St,Zt&&!(rt.flags&402784252)&&!(St.flags&402784252),Kn);if(St.flags&2097152)return ut(rt,St,Zt,2);if(c===Rp&&St.flags&402784252){const Rr=eo(rt.types,Tn=>Tn.flags&465829888?Gu(Tn)||_n:Tn);if(Rr!==rt.types){if(rt=ba(Rr),rt.flags&131072)return 0;if(!(rt.flags&2097152))return br(rt,St,1,!1)||br(St,rt,1,!1)}}return Ae(rt,St,!1,1)}function Wl(rt,St){let Zt=-1;const Kn=rt.types;for(const Rr of Kn){const Tn=El(Rr,St,!1,0);if(!Tn)return 0;Zt&=Tn}return Zt}function El(rt,St,Zt,Kn){const Rr=St.types;if(St.flags&1048576){if(fy(Rr,rt))return-1;if(c!==Rp&&Or(St)&32768&&!(rt.flags&1024)&&(rt.flags&2688||(c===Ch||c===Wf)&&rt.flags&256)){const gr=rt===rt.regularType?rt.freshType:rt.regularType,Hr=rt.flags&128?ke:rt.flags&256?Tt:rt.flags&2048?kt:void 0;return Hr&&fy(Rr,Hr)||gr&&fy(Rr,gr)?-1:0}const Tn=c4e(St,rt);if(Tn){const gr=br(rt,Tn,2,!1,void 0,Kn);if(gr)return gr}}for(const Tn of Rr){const gr=br(rt,Tn,2,!1,void 0,Kn);if(gr)return gr}if(Zt){const Tn=L6e(rt,St,br);Tn&&br(rt,Tn,2,!0,void 0,Kn)}return 0}function ut(rt,St,Zt,Kn){let Rr=-1;const Tn=St.types;for(const gr of Tn){const Hr=br(rt,gr,2,Zt,void 0,Kn);if(!Hr)return 0;Rr&=Hr}return Rr}function Ae(rt,St,Zt,Kn){const Rr=rt.types;if(rt.flags&1048576&&fy(Rr,St))return-1;const Tn=Rr.length;for(let gr=0;gr=gr.types.length&&Tn.length%gr.types.length===0){const _a=br(zi,gr.types[Hr%gr.types.length],3,!1,void 0,Kn);if(_a){Rr&=_a;continue}}const Fo=br(zi,St,1,Zt,void 0,Kn);if(!Fo)return 0;Rr&=Fo}return Rr}function di(rt=et,St=et,Zt=et,Kn,Rr){if(rt.length!==St.length&&c===ap)return 0;const Tn=rt.length<=St.length?rt.length:St.length;let gr=-1;for(let Hr=0;Hr(wo|=fs?16:8,yi(fs)));let Ra;return cn===3?((Tn=sr)==null||Tn.instant(sr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:rt.id,sourceIdStack:ge.map(fs=>fs.id),targetId:St.id,targetIdStack:Je.map(fs=>fs.id),depth:Dt,targetDepth:an}),Ra=3):((gr=sr)==null||gr.push(sr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:rt.id,targetId:St.id}),Ra=Ti(rt,St,Zt,Kn),(Hr=sr)==null||Hr.pop()),pa&&(pa=yi),Rr&1&&Dt--,Rr&2&&an--,cn=ha,Ra?(Ra===-1||Dt===0&&an===0)&&Cs(Ra===-1||Ra===3):(c.set(zi,(Zt?4:0)|2|wo),er--,Cs(!1)),Ra;function Cs(fs){for(let Pc=_a;PcHr!==rt)&&(Tn=br(gr,St,1,!1,void 0,Kn))}Tn&&!(Kn&2)&&St.flags&2097152&&!XT(St)&&rt.flags&2621440?(Tn&=Li(rt,St,Zt,void 0,!1,0),Tn&&yE(rt)&&Or(rt)&8192&&(Tn&=Ns(rt,St,!1,Zt,0))):Tn&&HZ(St)&&!_E(St)&&rt.flags&2097152&&Ld(rt).flags&3670016&&!bt(rt.types,gr=>gr===St||!!(Or(gr)&262144))&&(Tn&=Li(rt,St,Zt,void 0,!0,Kn))}return Tn&&tr(Rr),Tn}function Ur(rt,St){const Zt=Ld(VT(St)),Kn=[];return rge(Zt,8576,!1,Rr=>void Kn.push(so(rt,N8(St.mapper,m_(St),Rr)))),ti(Kn)}function xr(rt,St,Zt,Kn,Rr){let Tn,gr,Hr=!1,zi=rt.flags;const Fo=St.flags;if(c===ap){if(zi&3145728){let yi=Wl(rt,St);return yi&&(yi&=Wl(St,rt)),yi}if(zi&4194304)return br(rt.type,St.type,3,!1);if(zi&8388608&&(Tn=br(rt.objectType,St.objectType,3,!1))&&(Tn&=br(rt.indexType,St.indexType,3,!1))||zi&16777216&&rt.root.isDistributive===St.root.isDistributive&&(Tn=br(rt.checkType,St.checkType,3,!1))&&(Tn&=br(rt.extendsType,St.extendsType,3,!1))&&(Tn&=br(pE(rt),pE(St),3,!1))&&(Tn&=br(fE(rt),fE(St),3,!1))||zi&33554432&&(Tn=br(rt.baseType,St.baseType,3,!1))&&(Tn&=br(rt.constraint,St.constraint,3,!1)))return Tn;if(!(zi&524288))return 0}else if(zi&3145728||Fo&3145728){if(Tn=kd(rt,St,Zt,Kn))return Tn;if(!(zi&465829888||zi&524288&&Fo&1048576||zi&2097152&&Fo&467402752))return 0}if(zi&17301504&&rt.aliasSymbol&&rt.aliasTypeArguments&&rt.aliasSymbol===St.aliasSymbol&&!(nee(rt)||nee(St))){const yi=w6e(rt.aliasSymbol);if(yi===et)return 1;const wo=Xi(rt.aliasSymbol).typeParameters,Ra=Bh(wo),Cs=Fb(rt.aliasTypeArguments,wo,Ra,lr(rt.aliasSymbol.valueDeclaration)),fs=Fb(St.aliasTypeArguments,wo,Ra,lr(rt.aliasSymbol.valueDeclaration)),Pc=ha(Cs,fs,yi,Kn);if(Pc!==void 0)return Pc}if(U6e(rt)&&!rt.target.readonly&&(Tn=br(Js(rt)[0],St,1))||U6e(St)&&(St.target.readonly||N9(Gu(rt)||rt))&&(Tn=br(rt,Js(St)[0],2)))return Tn;if(Fo&262144){if(Or(rt)&32&&!rt.declaration.nameType&&br(Q_(St),Ef(rt),3)&&!(zh(rt)&4)){const yi=dy(rt),wo=Mp(St,m_(rt));if(Tn=br(yi,wo,3,Zt))return Tn}if(c===Rp&&zi&262144){let yi=Md(rt);if(yi)for(;yi&&Um(yi,wo=>!!(wo.flags&262144));){if(Tn=br(yi,St,1,!1))return Tn;yi=Md(yi)}return 0}}else if(Fo&4194304){const yi=St.type;if(zi&4194304&&(Tn=br(yi,rt.type,3,!1)))return Tn;if(Ba(yi)){if(Tn=br(rt,V8e(yi),2,Zt))return Tn}else{const wo=oge(yi);if(wo){if(br(rt,Q_(wo,St.indexFlags|4),2,Zt)===-1)return-1}else if(Kd(yi)){const Ra=pv(yi),Cs=Ef(yi);let fs;if(Ra&&TN(yi)){const Pc=Ur(Ra,yi);fs=ti([Pc,Ra])}else fs=Ra||Cs;if(br(rt,fs,2,Zt)===-1)return-1}}}else if(Fo&8388608){if(zi&8388608){if((Tn=br(rt.objectType,St.objectType,3,Zt))&&(Tn&=br(rt.indexType,St.indexType,3,Zt)),Tn)return Tn;Zt&&(gr=z)}if(c===qd||c===Rp){const yi=St.objectType,wo=St.indexType,Ra=Gu(yi)||yi,Cs=Gu(wo)||wo;if(!XT(Ra)&&!YT(Cs)){const fs=4|(Ra!==yi?2:0),Pc=Bb(Ra,Cs,fs);if(Pc){if(Zt&&gr&&tr(Rr),Tn=br(rt,Pc,2,Zt,void 0,Kn))return Tn;Zt&&gr&&z&&(z=_a([gr])<=_a([z])?gr:z)}}}Zt&&(gr=void 0)}else if(Kd(St)&&c!==ap){const yi=!!St.declaration.nameType,wo=dy(St),Ra=zh(St);if(!(Ra&8)){if(!yi&&wo.flags&8388608&&wo.objectType===rt&&wo.indexType===m_(St))return-1;if(!Kd(rt)){const Cs=yi?pv(St):Ef(St),fs=Q_(rt,2),Pc=Ra&4,Hh=Pc?a9(Cs,fs):void 0;if(Pc?!(Hh.flags&131072):br(Cs,fs,3)){const Ey=dy(St),uA=m_(St),dA=t2(Ey,-98305);if(!yi&&dA.flags&8388608&&dA.indexType===uA){if(Tn=br(rt,dA.objectType,2,Zt))return Tn}else{const _2=yi?Hh||Cs:Hh?ba([Hh,uA]):uA,S_=Mp(rt,_2);if(Tn=br(S_,Ey,3,Zt))return Tn}}gr=z,tr(Rr)}}}else if(Fo&16777216){if(KM(St,Je,an,10))return 3;const yi=St;if(!yi.root.inferTypeParameters&&!vut(yi.root)&&!(rt.flags&16777216&&rt.root===yi.root)){const wo=!Ea(P8(yi.checkType),P8(yi.extendsType)),Ra=!wo&&Ea(QT(yi.checkType),QT(yi.extendsType));if((Tn=wo?-1:br(rt,pE(yi),2,!1,void 0,Kn))&&(Tn&=Ra?-1:br(rt,fE(yi),2,!1,void 0,Kn),Tn))return Tn}}else if(Fo&134217728){if(zi&134217728){if(c===Rp)return qdt(rt,St)?0:-1;so(rt,du)}if(vee(rt,St))return-1}else if(St.flags&268435456&&!(rt.flags&268435456)&&yee(rt,St))return-1;if(zi&8650752){if(!(zi&8388608&&Fo&8388608)){const yi=jT(rt)||_n;if(Tn=br(yi,St,1,!1,void 0,Kn))return Tn;if(Tn=br(Kp(yi,rt),St,1,Zt&&yi!==_n&&!(Fo&zi&262144),void 0,Kn))return Tn;if(cge(rt)){const wo=jT(rt.indexType);if(wo&&(Tn=br(Mp(rt.objectType,wo),St,1,Zt)))return Tn}}}else if(zi&4194304){const yi=jge(rt.type,rt.indexFlags)&&Or(rt.type)&32;if(Tn=br(Fs,St,1,Zt&&!yi))return Tn;if(yi){const wo=rt.type,Ra=pv(wo),Cs=Ra&&TN(wo)?Ur(Ra,wo):Ra||Ef(wo);if(Tn=br(Cs,St,1,Zt))return Tn}}else if(zi&134217728&&!(Fo&524288)){if(!(Fo&134217728)){const yi=Gu(rt);if(yi&&yi!==rt&&(Tn=br(yi,St,1,Zt)))return Tn}}else if(zi&268435456)if(Fo&268435456){if(rt.symbol!==St.symbol)return 0;if(Tn=br(rt.type,St.type,3,Zt))return Tn}else{const yi=Gu(rt);if(yi&&(Tn=br(yi,St,1,Zt)))return Tn}else if(zi&16777216){if(KM(rt,ge,Dt,10))return 3;if(Fo&16777216){const Ra=rt.root.inferTypeParameters;let Cs=rt.extendsType,fs;if(Ra){const Pc=z8(Ra,void 0,0,oo);vy(Pc.inferences,St.extendsType,Cs,1536),Cs=so(Cs,Pc.mapper),fs=Pc.mapper}if(_y(Cs,St.extendsType)&&(br(rt.checkType,St.checkType,3)||br(St.checkType,rt.checkType,3))&&((Tn=br(so(pE(rt),fs),pE(St),3,Zt))&&(Tn&=br(fE(rt),fE(St),3,Zt)),Tn))return Tn}const yi=age(rt);if(yi&&(Tn=br(yi,St,1,Zt)))return Tn;const wo=!(Fo&16777216)&&c9(rt)?t8e(rt):void 0;if(wo&&(tr(Rr),Tn=br(wo,St,1,Zt)))return Tn}else{if(c!==Ch&&c!==Wf&&Clt(St)&&hy(rt))return-1;if(Kd(St))return Kd(rt)&&(Tn=lt(rt,St,Zt))?Tn:0;const yi=!!(zi&402784252);if(c!==ap)rt=Ld(rt),zi=rt.flags;else if(Kd(rt))return 0;if(Or(rt)&4&&Or(St)&4&&rt.target===St.target&&!Ba(rt)&&!(nee(rt)||nee(St))){if(see(rt))return-1;const wo=uye(rt.target);if(wo===et)return 1;const Ra=ha(Js(rt),Js(St),wo,Kn);if(Ra!==void 0)return Ra}else{if(XM(St)?up(rt,_E):qf(St)&&up(rt,wo=>Ba(wo)&&!wo.target.readonly))return c!==ap?br(uE(rt,Tt)||j,uE(St,Tt)||j,3,Zt):0;if(Hb(rt)&&Ba(St)&&!Hb(St)){const wo=py(rt);if(wo!==rt)return br(wo,St,1,Zt)}else if((c===Ch||c===Wf)&&hy(St)&&Or(St)&8192&&!hy(rt))return 0}if(zi&2621440&&Fo&524288){const wo=Zt&&z===Rr.errorInfo&&!yi;if(Tn=Li(rt,St,wo,void 0,!1,Kn),Tn&&(Tn&=Go(rt,St,0,wo,Kn),Tn&&(Tn&=Go(rt,St,1,wo,Kn),Tn&&(Tn&=Ns(rt,St,yi,wo,Kn)))),Hr&&Tn)z=gr||z||Rr.errorInfo;else if(Tn)return Tn}if(zi&2621440&&Fo&1048576){const wo=t2(St,36175872);if(wo.flags&1048576){const Ra=wt(rt,wo);if(Ra)return Ra}}}return 0;function _a(yi){return yi?id(yi,(wo,Ra)=>wo+1+_a(Ra.next),0):0}function ha(yi,wo,Ra,Cs){if(Tn=di(yi,wo,Ra,Zt,Cs))return Tn;if(bt(Ra,Pc=>!!(Pc&24))){gr=void 0,tr(Rr);return}const fs=wo&&sdt(wo,Ra);if(Hr=!fs,Ra!==et&&!fs){if(Hr&&!(Zt&&bt(Ra,Pc=>(Pc&7)===0)))return 0;gr=z,tr(Rr)}}}function lt(rt,St,Zt){if(c===Rp||(c===ap?zh(rt)===zh(St):ige(rt)<=ige(St))){let Rr;const Tn=Ef(St),gr=so(Ef(rt),ige(rt)<0?As:du);if(Rr=br(Tn,gr,3,Zt)){const Hr=Lp([m_(rt)],[m_(St)]);if(so(pv(rt),Hr)===so(pv(St),Hr))return Rr&br(so(dy(rt),Hr),dy(St),3,Zt)}}return 0}function wt(rt,St){var Zt;const Kn=gs(rt),Rr=l4e(Kn,St);if(!Rr)return 0;let Tn=1;for(const ha of Rr)if(Tn*=bpt(kb(ha)),Tn>25)return(Zt=sr)==null||Zt.instant(sr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:rt.id,targetId:St.id,numCombinations:Tn}),0;const gr=new Array(Rr.length),Hr=new Set;for(let ha=0;haha[Ra],!1,0,Y||c===Rp))continue e}Tf(Fo,wo,Ny),yi=!0}if(!yi)return 0}let _a=-1;for(const ha of Fo)if(_a&=Li(rt,ha,!1,Hr,!1,0),_a&&(_a&=Go(rt,ha,0,!1,0),_a&&(_a&=Go(rt,ha,1,!1,0),_a&&!(Ba(rt)&&Ba(ha))&&(_a&=Ns(rt,ha,!1,!1,0)))),!_a)return _a;return _a}function dn(rt,St){if(!St||rt.length===0)return rt;let Zt;for(let Kn=0;Kn5?_o(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Un(rt),Un(St),Ot(Tn.slice(0,4),gr=>vi(gr)).join(", "),Tn.length-4):_o(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Un(rt),Un(St),Ot(Tn,gr=>vi(gr)).join(", ")),Rr&&z&&On++)}function Li(rt,St,Zt,Kn,Rr,Tn){if(c===ap)return zr(rt,St,Kn);let gr=-1;if(Ba(St)){if(_E(rt)){if(!St.target.readonly&&(XM(rt)||Ba(rt)&&rt.target.readonly))return 0;const ha=mv(rt),yi=mv(St),wo=Ba(rt)?rt.target.combinedFlags&4:4,Ra=St.target.combinedFlags&4,Cs=Ba(rt)?rt.target.minLength:0,fs=St.target.minLength;if(!wo&&ha=Ey?yi-1-Math.min(qm,uA):S_,Dr=St.target.elementFlags[Pt];if(Dr&8&&!(Ix&8))return Zt&&_o(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Pt),0;if(Ix&8&&!(Dr&12))return Zt&&_o(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,S_,Pt),0;if(Dr&1&&!(Ix&1))return Zt&&_o(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Pt),0;if(_2&&((Ix&12||Dr&12)&&(_2=!1),_2&&Kn?.has(""+S_)))continue;const pi=Jb(Pc[S_],!!(Ix&Dr&2)),Xr=Hh[Pt],ci=Ix&8&&Dr&4?Vu(Xr):Jb(Xr,!!(Dr&2)),ns=br(pi,ci,3,Zt,void 0,Tn);if(!ns)return Zt&&(yi>1||ha>1)&&(dA&&S_>=Ey&&qm>=uA&&Ey!==ha-uA-1?Eo(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ey,ha-uA-1,Pt):Eo(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,S_,Pt)),0;gr&=ns}return gr}if(St.target.combinedFlags&12)return 0}const Hr=(c===Ch||c===Wf)&&!yE(rt)&&!see(rt)&&!Ba(rt),zi=Rye(rt,St,Hr,!1);if(zi)return Zt&&Nn(rt,St)&&Wn(rt,St,zi,Hr),0;if(yE(St)){for(const ha of dn(gs(rt),Kn))if(!cE(St,ha.escapedName)&&!(dr(ha).flags&32768))return Zt&&_o(f.Property_0_does_not_exist_on_type_1,vi(ha),Un(St)),0}const Fo=gs(St),_a=Ba(rt)&&Ba(St);for(const ha of dn(Fo,Kn)){const yi=ha.escapedName;if(!(ha.flags&4194304)&&(!_a||lg(yi)||yi==="length")&&(!Rr||ha.flags&16777216)){const wo=va(rt,yi);if(wo&&wo!==ha){const Ra=fn(rt,St,wo,ha,kb,Zt,Tn,c===Rp);if(!Ra)return 0;gr&=Ra}}}return gr}function zr(rt,St,Zt){if(!(rt.flags&524288&&St.flags&524288))return 0;const Kn=dn(Wb(rt),Zt),Rr=dn(Wb(St),Zt);if(Kn.length!==Rr.length)return 0;let Tn=-1;for(const gr of Kn){const Hr=cE(St,gr.escapedName);if(!Hr)return 0;const zi=pye(gr,Hr,br);if(!zi)return 0;Tn&=zi}return Tn}function Go(rt,St,Zt,Kn,Rr){var Tn,gr;if(c===ap)return Sa(rt,St,Zt);if(St===nn||rt===nn)return-1;const Hr=rt.symbol&&nh(rt.symbol.valueDeclaration),zi=St.symbol&&nh(St.symbol.valueDeclaration),Fo=Yo(rt,Hr&&Zt===1?0:Zt),_a=Yo(St,zi&&Zt===1?0:Zt);if(Zt===1&&Fo.length&&_a.length){const Cs=!!(Fo[0].flags&4),fs=!!(_a[0].flags&4);if(Cs&&!fs)return Kn&&_o(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!E_(Fo[0],_a[0],Kn))return 0}let ha=-1;const yi=Zt===1?Zi:ni,wo=Or(rt),Ra=Or(St);if(wo&64&&Ra&64&&rt.symbol===St.symbol||wo&4&&Ra&4&&rt.target===St.target){N.assertEqual(Fo.length,_a.length);for(let Cs=0;Cs<_a.length;Cs++){const fs=fo(Fo[Cs],_a[Cs],!0,Kn,Rr,yi(Fo[Cs],_a[Cs]));if(!fs)return 0;ha&=fs}}else if(Fo.length===1&&_a.length===1){const Cs=c===Rp||!!V.noStrictGenericChecks,fs=Ha(Fo),Pc=Ha(_a);if(ha=fo(fs,Pc,Cs,Kn,Rr,yi(fs,Pc)),!ha&&Kn&&Zt===1&&wo&Ra&&(((Tn=Pc.declaration)==null?void 0:Tn.kind)===176||((gr=fs.declaration)==null?void 0:gr.kind)===176)){const Hh=Ey=>wh(Ey,void 0,262144,Zt);return _o(f.Type_0_is_not_assignable_to_type_1,Hh(fs),Hh(Pc)),_o(f.Types_of_construct_signatures_are_incompatible),ha}}else e:for(const Cs of _a){const fs=Ro();let Pc=Kn;for(const Hh of Fo){const Ey=fo(Hh,Cs,!0,Pc,Rr,yi(Hh,Cs));if(Ey){ha&=Ey,tr(fs);continue e}Pc=!1}return Pc&&_o(f.Type_0_provides_no_match_for_the_signature_1,Un(rt),wh(Cs,void 0,void 0,Zt)),0}return ha}function Nn(rt,St){const Zt=d9(rt,0),Kn=d9(rt,1),Rr=Wb(rt);return(Zt.length||Kn.length)&&!Rr.length?!!(Yo(St,0).length&&Zt.length||Yo(St,1).length&&Kn.length):!0}function ni(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,Kn)=>Eo(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Un(Zt),Un(Kn)):(Zt,Kn)=>Eo(f.Call_signature_return_types_0_and_1_are_incompatible,Un(Zt),Un(Kn))}function Zi(rt,St){return rt.parameters.length===0&&St.parameters.length===0?(Zt,Kn)=>Eo(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Un(Zt),Un(Kn)):(Zt,Kn)=>Eo(f.Construct_signature_return_types_0_and_1_are_incompatible,Un(Zt),Un(Kn))}function fo(rt,St,Zt,Kn,Rr,Tn){const gr=c===Ch?16:c===Wf?24:0;return oye(Zt?A8(rt):rt,Zt?A8(St):St,gr,Kn,_o,Tn,Hr,du);function Hr(zi,Fo,_a){return br(zi,Fo,3,_a,void 0,Rr)}}function Sa(rt,St,Zt){const Kn=Yo(rt,Zt),Rr=Yo(St,Zt);if(Kn.length!==Rr.length)return 0;let Tn=-1;for(let gr=0;grzi.keyType===ke);let Hr=-1;for(const zi of Tn){const Fo=c!==Wf&&!Zt&&gr&&zi.type.flags&1?-1:Kd(rt)&&gr?br(dy(rt),zi.type,3,Kn):Du(rt,zi,Kn,Rr);if(!Fo)return 0;Hr&=Fo}return Hr}function Du(rt,St,Zt,Kn){const Rr=E8(rt,St.keyType);return Rr?ks(Rr,St,Zt,Kn):!(Kn&1)&&(c!==Wf||Or(rt)&8192)&&fee(rt)?bc(rt,St,Zt,Kn):(Zt&&_o(f.Index_signature_for_type_0_is_missing_in_type_1,Un(St.keyType),Un(rt)),0)}function Ks(rt,St){const Zt=yd(rt),Kn=yd(St);if(Zt.length!==Kn.length)return 0;for(const Rr of Kn){const Tn=Ig(rt,Rr.keyType);if(!(Tn&&br(Tn.type,Rr.type,3)&&Tn.isReadonly===Rr.isReadonly))return 0}return-1}function E_(rt,St,Zt){if(!rt.declaration||!St.declaration)return!0;const Kn=GA(rt.declaration,6),Rr=GA(St.declaration,6);return Rr===2||Rr===4&&Kn!==2||Rr!==4&&!Kn?!0:(Zt&&_o(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,zT(Kn),zT(Rr)),!1)}}function lye(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Xe(n.types,lye);if(n.flags&465829888){const a=jT(n);if(a&&a!==n)return lye(a)}return y_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function M6e(n,a){return Ba(n)&&Ba(a)?et:gs(a).filter(c=>tee(Ke(n,c.escapedName),dr(c)))}function tee(n,a){return!!n&&!!a&&Cl(n,32768)&&!!W8(a)}function odt(n){return gs(n).filter(a=>W8(dr(a)))}function L6e(n,a,c=rye){return $Fe(n,a,c)||pbt(n,a)||fbt(n,a)||mbt(n,a)||_bt(n,a)}function cye(n,a,c){const d=n.types,_=d.map(x=>x.flags&402784252?0:-1);for(const[x,k]of a){let z=!1;for(let H=0;H_[k]),0):n;return y.flags&131072?n:y}function k6e(n){if(n.flags&524288){const a=__(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Zn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Zn(n.types,k6e):!1}function adt(n,a,c){for(const d of gs(n))if(ave(a,d.escapedName,c))return!0;return!1}function uye(n){return n===Qo||n===na||n.objectFlags&8?Z:O6e(n.symbol,n.typeParameters)}function w6e(n){return O6e(n,Xi(n).typeParameters)}function O6e(n,a=et){var c,d;const _=Xi(n);if(!_.variances){(c=sr)==null||c.push(sr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:vd(el(n))});const y=j0;j0||(j0=!0,HI=mu.length),_.variances=et;const x=[];for(const k of a){const z=dye(k);let H=z&16384?z&8192?0:1:z&8192?2:void 0;if(H===void 0){let re=!1,be=!1;const ge=pa;pa=Dt=>Dt?be=!0:re=!0;const Je=x9(n,k,Ap),gt=x9(n,k,Ms);H=(Ea(gt,Je)?1:0)|(Ea(Je,gt)?2:0),H===3&&Ea(x9(n,k,Rc),Je)&&(H=4),pa=ge,(re||be)&&(re&&(H|=8),be&&(H|=16))}x.push(H)}y||(j0=!1,HI=0),_.variances=x,(d=sr)==null||d.pop({variances:x.map(N.formatVariance)})}return _.variances}function x9(n,a,c){const d=X1(a,c),_=el(n);if(Kt(_))return _;const y=n.flags&524288?xN(n,hv(Xi(n).typeParameters,d)):fv(_,hv(_.typeParameters,d));return mt.add(vd(y)),y}function nee(n){return mt.has(vd(n))}function dye(n){var a;return id((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|dd(d),0)&28672}function sdt(n,a){for(let c=0;c!!(a.flags&262144)||ree(a))}function udt(n,a,c,d){const _=[];let y="";const x=z(n,0),k=z(a,0);return`${y}${x},${k}${c}`;function z(H,re=0){let be=""+H.target.id;for(const ge of Js(H)){if(ge.flags&262144){if(d||ldt(ge)){let Je=_.indexOf(ge);Je<0&&(Je=_.length,_.push(ge)),be+="="+Je;continue}y="*"}else if(re<4&&ree(ge)){be+="<"+z(ge,re+1)+">";continue}be+="-"+ge.id}return be}}function iee(n,a,c,d,_){if(d===ap&&n.id>a.id){const x=n;n=a,a=x}const y=c?":"+c:"";return ree(n)&&ree(a)?udt(n,a,y,_):`${n.id},${a.id}${y}`}function R9(n,a){if(xl(n)&6){for(const c of n.links.containingType.types){const d=va(c,n.escapedName),_=d&&R9(d,a);if(_)return _}return}return a(n)}function bx(n){return n.parent&&n.parent.flags&32?el(Cd(n)):void 0}function oee(n){const a=bx(n),c=a&&Pp(a)[0];return c&&Ke(c,n.escapedName)}function ddt(n,a){return R9(n,c=>{const d=bx(c);return d?bN(d,a):!1})}function pdt(n,a){return!R9(a,c=>Df(c)&4?!ddt(n,bx(c)):!1)}function W6e(n,a,c){return R9(a,d=>Df(d,c)&4?!bN(n,bx(d)):!1)?void 0:n}function KM(n,a,c,d=3){if(c>=d){if((Or(n)&96)===96&&(n=F6e(n)),n.flags&2097152)return bt(n.types,k=>KM(k,a,c,d));const _=aee(n);let y=0,x=0;for(let k=0;k=x&&(y++,y>=d))return!0;x=z.id}}}return!1}function F6e(n){let a;for(;(Or(n)&96)===96&&(a=VT(n))&&(a.symbol||a.flags&2097152&&bt(a.types,c=>!!c.symbol));)n=a;return n}function z6e(n,a){return(Or(n)&96)===96&&(n=F6e(n)),n.flags&2097152?bt(n.types,c=>z6e(c,a)):aee(n)===a}function aee(n){if(n.flags&524288&&!Nye(n)){if(Or(n)&4&&n.node)return n.node;if(n.symbol&&!(Or(n)&16&&n.symbol.flags&32))return n.symbol;if(Ba(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 fdt(n,a){return pye(n,a,M8)!==0}function pye(n,a,c){if(n===a)return-1;const d=Df(n)&6,_=Df(a)&6;if(d!==_)return 0;if(d){if(BN(n)!==BN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return b_(n)!==b_(a)?0:c(dr(n),dr(a))}function mdt(n,a,c){const d=Yp(n),_=Yp(a),y=rh(n),x=rh(a),k=Uh(n),z=Uh(a);return!!(d===_&&y===x&&k===z||c&&y<=x)}function D9(n,a,c,d,_,y){if(n===a)return-1;if(!mdt(n,a,c)||Le(n.typeParameters)!==Le(a.typeParameters))return 0;if(a.typeParameters){const z=Lp(n.typeParameters,a.typeParameters);for(let H=0;Ha|(c.flags&1048576?B6e(c.types):c.flags),0)}function gdt(n){if(n.length===1)return n[0];const a=Y?eo(n,d=>uc(d,_=>!(_.flags&98304))):n,c=hdt(a)?ti(a):id(a,(d,_)=>jb(d,_)?_:d);return a===n?c:P9(c,B6e(n)&98304)}function ydt(n){return id(n,(a,c)=>jb(c,a)?c:a)}function qf(n){return!!(Or(n)&4)&&(n.target===Qo||n.target===na)}function XM(n){return!!(Or(n)&4)&&n.target===na}function _E(n){return qf(n)||Ba(n)}function N9(n){return qf(n)&&!XM(n)||Ba(n)&&!n.target.readonly}function C9(n){return qf(n)?Js(n)[0]:void 0}function gv(n){return qf(n)||!(n.flags&98304)&&Ea(n,ff)}function fye(n){return N9(n)||!(n.flags&98305)&&Ea(n,ec)}function mye(n){if(!(Or(n)&4)||!(Or(n.target)&3))return;if(Or(n)&33554432)return Or(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(Or(a)&1){const _=Is(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}const c=Pp(a);if(c.length!==1||Ob(n.symbol).size)return;let d=Le(a.typeParameters)?so(c[0],Lp(a.typeParameters,Js(n).slice(0,a.typeParameters.length))):c[0];return Le(Js(n))>Le(a.typeParameters)&&(d=Kp(d,Ya(Js(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function G6e(n){return Y?n===Ci:n===Lt}function see(n){const a=C9(n);return!!a&&G6e(a)}function YM(n){let a;return Ba(n)||!!va(n,"0")||gv(n)&&!!(a=Ke(n,"length"))&&up(a,c=>!!(c.flags&256))}function lee(n){return gv(n)||YM(n)}function vdt(n,a){const c=Ke(n,""+a);if(c)return c;if(up(n,Ba))return H6e(n,a,V.noUncheckedIndexedAccess?Oe:void 0)}function bdt(n){return!(n.flags&240544)}function y_(n){return!!(n.flags&109472)}function V6e(n){const a=py(n);return a.flags&2097152?bt(a.types,y_):y_(a)}function Edt(n){return n.flags&2097152&&An(n.types,y_)||n}function w8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Zn(n.types,y_):y_(n)}function gy(n){return n.flags&1056?DZ(n):n.flags&402653312?ke:n.flags&256?Tt:n.flags&2048?kt:n.flags&512?Ni:n.flags&1048576?Sdt(n):n}function Sdt(n){const a=`B${vd(n)}`;return QI(a)??_b(a,pl(n,gy))}function _ye(n){return n.flags&402653312?ke:n.flags&288?Tt:n.flags&2048?kt:n.flags&512?Ni:n.flags&1048576?pl(n,_ye):n}function $1(n){return n.flags&1056&&K1(n)?DZ(n):n.flags&128&&K1(n)?ke:n.flags&256&&K1(n)?Tt:n.flags&2048&&K1(n)?kt:n.flags&512&&K1(n)?Ni:n.flags&1048576?pl(n,$1):n}function j6e(n){return n.flags&8192?Ai:n.flags&1048576?pl(n,j6e):n}function hye(n,a){return Qee(n,a)||(n=j6e($1(n))),bd(n)}function Tdt(n,a,c){if(n&&y_(n)){const d=a?c?$8(a):a:void 0;n=hye(n,d)}return n}function gye(n,a,c,d){if(n&&y_(n)){const _=a?nS(c,a,d):void 0;n=hye(n,_)}return n}function Ba(n){return!!(Or(n)&4&&n.target.objectFlags&8)}function Hb(n){return Ba(n)&&!!(n.target.combinedFlags&8)}function U6e(n){return Hb(n)&&n.target.elementFlags.length===1}function cee(n){return $M(n,n.target.fixedLength)}function H6e(n,a,c){return pl(n,d=>{const _=d,y=cee(_);return y?c&&a>=Fge(_.target)?ti([y,c]):y:Oe})}function Adt(n){const a=cee(n);return a&&Vu(a)}function $M(n,a,c=0,d=!1,_=!1){const y=mv(n)-c;if(a(c&12)===(a.target.elementFlags[d]&12))}function q6e({value:n}){return n.base10Value==="0"}function J6e(n){return uc(n,a=>_m(a,4194304))}function xdt(n){return pl(n,Rdt)}function Rdt(n){return n.flags&4?Zo:n.flags&8?Ka:n.flags&64?Zu:n===bn||n===en||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&q6e(n)?n:Vr}function P9(n,a){const c=a&~n.flags&98304;return c===0?n:ti(c===32768?[n,Oe]:c===65536?[n,me]:[n,Oe,me])}function qb(n,a=!1){N.assert(Y);const c=a?_e:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:ti([n,c])}function Ddt(n){return jd||(jd=HM("NonNullable",524288,void 0)||ft),jd!==ft?xN(jd,[n]):ba([n,La])}function yy(n){return Y?nA(n,2097152):n}function K6e(n){return Y?ti([n,J]):n}function uee(n){return Y?See(n,J):n}function dee(n,a,c){return c?uC(a)?qb(n):K6e(n):n}function O8(n,a){return m4(a)?yy(n):qu(a)?uee(n):n}function Jb(n,a){return De&&a?See(n,L):n}function W8(n){return n===L||!!(n.flags&1048576)&&n.types[0]===L}function pee(n){return De?See(n,L):hm(n,524288)}function Ndt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function fee(n){const a=Or(n);return n.flags&2097152?Zn(n.types,fee):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!mte(n))||!!(a&4194304)||!!(a&1024&&fee(n.source))}function ZT(n,a){const c=Xa(n.flags,n.escapedName,xl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const d=Xi(n).nameType;return d&&(c.links.nameType=d),c}function Cdt(n,a){const c=ca();for(const d of Wb(n)){const _=dr(d),y=a(_);c.set(d.escapedName,y===_?d:ZT(d,y))}return c}function F8(n){if(!(yE(n)&&Or(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,d=Cdt(n,F8),_=Ls(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function X6e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function Y6e(n){if(!n.siblings){const a=[];for(const c of Y6e(n.parent))if(yE(c)){const d=cE(c,n.propertyName);d&&rA(dr(d),_=>{a.push(_)})}n.siblings=a}return n.siblings}function Pdt(n){if(!n.resolvedProperties){const a=new Map;for(const c of Y6e(n))if(yE(c)&&!(Or(c)&2097152))for(const d of gs(c))a.set(d.escapedName,d);n.resolvedProperties=zo(a.values())}return n.resolvedProperties}function Mdt(n,a){if(!(n.flags&4))return n;const c=dr(n),d=a&&X6e(a,n.escapedName,void 0),_=yye(c,d);return _===c?n:ZT(n,_)}function Ldt(n){const a=He.get(n.escapedName);if(a)return a;const c=ZT(n,_e);return c.flags|=16777216,He.set(n.escapedName,c),c}function kdt(n,a){const c=ca();for(const _ of Wb(n))c.set(_.escapedName,Mdt(_,a));if(a)for(const _ of Pdt(a))c.has(_.escapedName)||c.set(_.escapedName,Ldt(_));const d=Ls(n.symbol,c,et,et,eo(yd(n),_=>Gh(_.keyType,Xp(_.type),_.isReadonly)));return d.objectFlags|=Or(n)&266240,d}function Xp(n){return yye(n,void 0)}function yye(n,a){if(Or(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(yE(n))c=kdt(n,a);else if(n.flags&1048576){const d=a||X6e(void 0,void 0,n.types),_=eo(n.types,y=>y.flags&98304?y:yye(y,d));c=ti(_,bt(_,hy)?2:1)}else n.flags&2097152?c=ba(eo(n.types,Xp)):_E(n)&&(c=fv(n.target,eo(Js(n),Xp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function mee(n){let a=!1;if(Or(n)&65536){if(n.flags&1048576)if(bt(n.types,hy))a=!0;else for(const c of n.types)mee(c)&&(a=!0);if(_E(n))for(const c of Js(n))mee(c)&&(a=!0);if(yE(n))for(const c of Wb(n)){const d=dr(c);Or(d)&65536&&(mee(d)||qe(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,vi(c),Un(Xp(d))),a=!0)}}return a}function hE(n,a,c){const d=Un(Xp(a));if(lr(n)&&!gk(jn(n),V))return;let _;switch(n.kind){case 226:case 172:case 171:_=pe?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:const y=n;if(Ve(y.name)){const x=c0(y.name);if((oI(y.parent)||vh(y.parent)||bh(y.parent))&&y.parent.parameters.includes(y)&&(bl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||x&&hU(x))){const k="arg"+y.parent.parameters.indexOf(y),z=Rs(y.name)+(y.dotDotDotToken?"[]":"");_u(pe,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,z);return}}_=n.dotDotDotToken?pe?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:pe?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,!pe)return;break;case 324:qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:pe&&QR(n.parent)&&qe(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(pe&&!n.name){c===3?qe(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}_=pe?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:pe&&qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=pe?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}_u(pe,n,_,Rs(Mo(n)),d)}function _ee(n,a,c){r(()=>{pe&&Or(a)&65536&&(!c||!eve(n))&&(mee(a)||hE(n,a,c))})}function vye(n,a,c){const d=Yp(n),_=Yp(a),y=q8(n),x=q8(a),k=x?_-1:_,z=y?k:Math.min(d,k),H=dE(n);if(H){const re=dE(a);re&&c(H,re)}for(let re=0;rea.typeParameter),Ot(n.inferences,(a,c)=>()=>(a.isFixed||(Fdt(n),hee(n.inferences),a.isFixed=!0),Cye(n,c))))}function Wdt(n){return Qge(Ot(n.inferences,a=>a.typeParameter),Ot(n.inferences,(a,c)=>()=>Cye(n,c)))}function hee(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function Sye(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function Fdt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const d=a.kind===174?H4e(a,2):Yd(a,2);d&&vy(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function Tye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function $6e(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 zdt(n){const a=nr(n.inferences,FN);return a.length?Eye(Ot(a,$6e),n.signature,n.flags,n.compareTypes):void 0}function Aye(n){return n&&n.mapper}function gE(n){const a=Or(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!Q6e(n)&&(a&4&&(n.node||bt(Js(n),gE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!Q6e(n)&&bt(n.types,gE));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function Q6e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=fl(n.aliasSymbol,265);return!!(a&&Gn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function B8(n,a,c=0){return!!(n===a||n.flags&3145728&&bt(n.types,d=>B8(d,a,c))||c<3&&n.flags&16777216&&(B8(pE(n),a,c+1)||B8(fE(n),a,c+1)))}function Bdt(n,a){const c=jf(n);return c?!!c.type&&B8(c.type,a):B8(ps(n),a)}function Gdt(n){const a=ca();rA(n,d=>{if(!(d.flags&128))return;const _=hl(d.value),y=Xa(4,_);y.links.type=j,d.symbol&&(y.declarations=d.symbol.declarations,y.valueDeclaration=d.symbol.valueDeclaration),a.set(_,y)});const c=n.flags&4?[Gh(ke,La,!1)]:et;return Ls(void 0,a,et,et,c)}function Z6e(n,a,c){const d=n.id+","+a.id+","+c.id;if(qc.has(d))return qc.get(d);const _=n.id+","+(a.target||a).id;if(Nr(op,_))return;op.push(_);const y=Vdt(n,a,c);return op.pop(),qc.set(d,y),y}function Iye(n){return!(Or(n)&262144)||yE(n)&&bt(gs(n),a=>Iye(dr(a)))||Ba(n)&&bt(q1(n),Iye)}function Vdt(n,a,c){if(!(Ig(n,ke)||gs(n).length!==0&&Iye(n)))return;if(qf(n))return Vu(gee(Js(n)[0],a,c),XM(n));if(Ba(n)){const _=Ot(q1(n),x=>gee(x,a,c)),y=zh(a)&4?eo(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return Vh(_,y,n.target.readonly,n.target.labeledElementDeclarations)}const d=zf(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function jdt(n){const a=Xi(n);return a.type||(a.type=gee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function gee(n,a,c){const d=Mp(c.type,m_(a)),_=dy(a),y=Tye(d);return vy([y],n,_),e4e(y)||_n}function*xye(n,a,c,d){const _=gs(a);for(const y of _)if(!jOe(y)&&(c||!(y.flags&16777216||xl(y)&48))){const x=va(n,y.escapedName);if(!x)yield y;else if(d){const k=dr(y);if(k.flags&109472){const z=dr(x);z.flags&1||bd(z)===bd(k)||(yield y)}}}}function Rye(n,a,c,d){return S6(xye(n,a,c,d))}function Udt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthgx(y,_),n)===n&&yee(n,a)}return!1}function r4e(n,a){if(a.flags&2097152)return Zn(a.types,c=>c===sc||r4e(n,c));if(a.flags&4||Ea(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&n4e(c,!1)||a.flags&64&&q3(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&yee(Xd(c),a)||a.flags&134217728&&vee(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&Ea(n.types[0],a)}return!1}function i4e(n,a){return n.flags&128?o4e([n.value],et,a):n.flags&134217728?Na(n.texts,a.texts)?Ot(n.types,Kdt):o4e(n.texts,n.types,a):void 0}function vee(n,a){const c=i4e(n,a);return!!c&&Zn(c,(d,_)=>r4e(d,a.types[_]))}function Kdt(n){return n.flags&402653317?n:JT(["",""],[n])}function o4e(n,a,c){const d=n.length-1,_=n[0],y=n[d],x=c.texts,k=x.length-1,z=x[0],H=x[k];if(d===0&&_.length0){let ar=ge,On=Je;for(;On=gt(ar).indexOf(cn,On),!(On>=0);){if(ar++,ar===n.length)return;On=0}Dt(ar,On),Je+=cn.length}else if(Je!Nr(br,ss)):wn,Co?nr(Qn,ss=>!Nr(Co,ss)):Qn]}function ar(wn,Qn,oo){const br=wn.length!!zn(Co));if(!br||Qn&&br!==Qn)return;Qn=br}return Qn}function er(wn,Qn,oo){let br=0;if(oo&1048576){let Co;const ss=wn.flags&1048576?wn.types:[wn],Ts=new Array(ss.length);let ju=!1;for(const Ga of Qn)if(zn(Ga))Co=Ga,br++;else for(let kd=0;kdTs[Wl]?void 0:kd);if(Ga.length){ge(ti(Ga),Co);return}}}else for(const Co of Qn)zn(Co)?br++:ge(wn,Co);if(oo&2097152?br===1:br>0)for(const Co of Qn)zn(Co)&&Je(wn,Co,1)}function qn(wn,Qn,oo){if(oo.flags&1048576||oo.flags&2097152){let br=!1;for(const Co of oo.types)br=qn(wn,Qn,Co)||br;return br}if(oo.flags&4194304){const br=zn(oo.type);if(br&&!br.isFixed&&!t4e(wn)){const Co=Z6e(wn,Qn,oo);Co&&Je(Co,br.typeParameter,Or(wn)&262144?16:8)}return!0}if(oo.flags&262144){Je(Q_(wn,wn.pattern?2:0),oo,32);const br=jT(oo);if(br&&qn(wn,Qn,br))return!0;const Co=Ot(gs(wn),dr),ss=Ot(yd(wn),Ts=>Ts!==jr?Ts.type:Vr);return ge(ti(So(Co,ss)),dy(Qn)),!0}return!1}function tr(wn,Qn){if(wn.flags&16777216)ge(wn.checkType,Qn.checkType),ge(wn.extendsType,Qn.extendsType),ge(pE(wn),pE(Qn)),ge(fE(wn),fE(Qn));else{const oo=[pE(Qn),fE(Qn)];Dt(wn,oo,Qn.flags,_?64:0)}}function Ro(wn,Qn){const oo=i4e(wn,Qn),br=Qn.types;if(oo||Zn(Qn.texts,Co=>Co.length===0))for(let Co=0;CoEl|ut.flags,0);if(!(Wl&4)){const El=ss.value;Wl&296&&!n4e(El,!0)&&(Wl&=-297),Wl&2112&&!q3(El,!0)&&(Wl&=-2113);const ut=id(kd,(Ae,Ln)=>Ln.flags&Wl?Ae.flags&4?Ae:Ln.flags&4?ss:Ae.flags&134217728?Ae:Ln.flags&134217728&&vee(ss,Ln)?ss:Ae.flags&268435456?Ae:Ln.flags&268435456&&El===t6e(Ln.symbol,El)?ss:Ae.flags&128?Ae:Ln.flags&128&&Ln.value===El?Ln:Ae.flags&8?Ae:Ln.flags&8?g_(+El):Ae.flags&32?Ae:Ln.flags&32?g_(+El):Ae.flags&256?Ae:Ln.flags&256&&Ln.value===+El?Ln:Ae.flags&64?Ae:Ln.flags&64?Jdt(El):Ae.flags&2048?Ae:Ln.flags&2048&&YE(Ln.value)===El?Ln:Ae.flags&16?Ae:Ln.flags&16?El==="true"?Bn:El==="false"?en:Ni:Ae.flags&512?Ae:Ln.flags&512&&Ln.intrinsicName===El?Ln:Ae.flags&32768?Ae:Ln.flags&32768&&Ln.intrinsicName===El?Ln:Ae.flags&65536?Ae:Ln.flags&65536&&Ln.intrinsicName===El?Ln:Ae:Ae,Vr);if(!(ut.flags&131072)){ge(ut,Ts);continue}}}}ge(ss,Ts)}}function Eo(wn,Qn){ge(Ef(wn),Ef(Qn)),ge(dy(wn),dy(Qn));const oo=pv(wn),br=pv(Qn);oo&&br&&ge(oo,br)}function Bo(wn,Qn){var oo,br;if(Or(wn)&4&&Or(Qn)&4&&(wn.target===Qn.target||qf(wn)&&qf(Qn))){ar(Js(wn),Js(Qn),uye(wn.target));return}if(Kd(wn)&&Kd(Qn)&&Eo(wn,Qn),Or(Qn)&32&&!Qn.declaration.nameType){const Co=Ef(Qn);if(qn(wn,Qn,Co))return}if(!Hdt(wn,Qn)){if(_E(wn)){if(Ba(Qn)){const Co=mv(wn),ss=mv(Qn),Ts=Js(Qn),ju=Qn.target.elementFlags;if(Ba(wn)&&Idt(wn,Qn)){for(let Wl=0;Wl0){const ss=Yo(Qn,oo),Ts=ss.length;for(let ju=0;ju1){const a=nr(n,Nye);if(a.length){const c=ti(a,2);return So(nr(n,d=>!Nye(d)),[c])}}return n}function Zdt(n){return n.priority&416?ba(n.contraCandidates):ydt(n.contraCandidates)}function ept(n,a){const c=Qdt(n.candidates),d=$dt(n.typeParameter)||UT(n.typeParameter),_=!d&&n.topLevel&&(n.isFixed||!Bdt(a,n.typeParameter)),y=d?eo(c,bd):_?eo(c,$1):c,x=n.priority&416?ti(y,2):gdt(y);return Xp(x)}function Cye(n,a){const c=n.inferences[a];if(!c.inferredType){let d,_;if(n.signature){const x=c.candidates?ept(c,n.signature):void 0,k=c.contraCandidates?Zdt(c):void 0;if(x||k){const z=x&&(!k||!(x.flags&131072)&&bt(c.contraCandidates,H=>jb(x,H))&&Zn(n.inferences,H=>H!==c&&Md(H.typeParameter)!==c.typeParameter||Zn(H.candidates,re=>jb(re,x))));d=z?x:k,_=z?k:x}else if(n.flags&1)d=yo;else{const z=HT(c.typeParameter);z&&(d=so(z,Put(Cut(n,a),n.nonFixingMapper)))}}else d=e4e(c);c.inferredType=d||Pye(!!(n.flags&2));const y=Md(c.typeParameter);if(y){const x=so(y,n.nonFixingMapper);(!d||!n.compareTypes(d,Kp(x,d)))&&(c.inferredType=_&&n.compareTypes(_,Kp(x,_))?_:x)}}return c.inferredType}function Pye(n){return n?j:_n}function Mye(n){const a=[];for(let c=0;c_d(a)||Nm(a)||bp(a)))}function bee(n,a,c,d){switch(n.kind){case 80:if(!BA(n)){const x=jm(n);return x!==ft?`${d?as(d):"-1"}|${vd(a)}|${vd(c)}|${Ta(x)}`:void 0}case 110:return`0|${d?as(d):"-1"}|${vd(a)}|${vd(c)}`;case 235:case 217:return bee(n.expression,a,c,d);case 166:const _=bee(n.left,a,c,d);return _&&_+"."+n.right.escapedText;case 211:case 212:const y=eA(n);if(y!==void 0){const x=bee(n.expression,a,c,d);return x&&x+"."+y}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${as(n)}#${vd(a)}`}}function Iu(n,a){switch(a.kind){case 217:case 235:return Iu(n,a.expression);case 226:return Lc(a)&&Iu(n,a.left)||mr(a)&&a.operatorToken.kind===28&&Iu(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 BA(n)?a.kind===110:a.kind===80&&jm(n)===jm(a)||(wi(a)||Qa(a))&&yf(jm(n))===Ir(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Iu(n.expression,a);case 211:case 212:const c=eA(n),d=ws(a)?eA(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Iu(n.expression,a.expression);case 166:return ws(a)&&n.right.escapedText===eA(a)&&Iu(n.left,a.expression);case 226:return mr(n)&&n.operatorToken.kind===28&&Iu(n.right,a)}return!1}function eA(n){if(Wr(n))return n.name.escapedText;if(Qs(n))return tpt(n);if(Qa(n)){const a=es(n);return a?hl(a):void 0}if(Ao(n))return""+n.parent.parameters.indexOf(n)}function kye(n){return n.flags&8192?n.escapedName:n.flags&384?hl(""+n.value):void 0}function tpt(n){return nf(n.argumentExpression)?hl(n.argumentExpression.text):Gl(n.argumentExpression)?npt(n.argumentExpression):void 0}function npt(n){const a=Hs(n,111551,!0);if(!a||!(n2(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const d=ro(c);if(d){const _=kye(d);if(_!==void 0)return _}if(vS(c)&&ty(c,n)){const _=OL(c);if(_){const y=ta(c.parent)?$_(c):Ru(_);return y&&kye(y)}if(c1(c))return sR(c.name)}}function s4e(n,a){for(;ws(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function tA(n,a){for(;qu(n);)if(n=n.expression,Iu(n,a))return!0;return!1}function QM(n,a){if(n&&n.flags&1048576){const c=l8e(n,a);if(c&&xl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!NN(dr(c))),!!c.links.isDiscriminantProperty}return!1}function l4e(n,a){let c;for(const d of n)if(QM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function rpt(n,a){const c=new Map;let d=0;for(const _ of n)if(_.flags&61603840){const y=Ke(_,a);if(y){if(!w8(y))return;let x=!1;rA(y,k=>{const z=vd(bd(k)),H=c.get(z);H?H!==_n&&(c.set(z,_n),x=!0):c.set(z,_)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function M9(n){const a=n.types;if(!(a.length<10||Or(n)&32768||au(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=Xe(a,_=>_.flags&59506688?Xe(gs(_),y=>y_(dr(y))?y.escapedName:void 0):void 0),d=c&&rpt(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function L9(n,a){var c;const d=(c=n.constituentMap)==null?void 0:c.get(vd(bd(a)));return d!==_n?d:void 0}function c4e(n,a){const c=M9(n),d=c&&Ke(a,c);return d&&L9(n,d)}function ipt(n,a){const c=M9(n),d=c&&An(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===c&&G9(y.initializer)),_=d&&cB(d.initializer);return _&&L9(n,_)}function u4e(n,a){return Iu(n,a)||s4e(n,a)}function d4e(n,a){if(n.arguments){for(const c of n.arguments)if(u4e(a,c)||tA(c,a))return!0}return!!(n.expression.kind===211&&u4e(a,n.expression.expression))}function wye(n){return(!n.id||n.id<0)&&(n.id=ele,ele++),n.id}function opt(n,a){if(!(n.flags&1048576))return Ea(n,a);for(const c of n.types)if(Ea(c,a))return!0;return!1}function apt(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${vd(n)},${vd(a)}`;return QI(c)??_b(c,spt(n,a))}function spt(n,a){const c=uc(n,_=>opt(a,_)),d=a.flags&512&&K1(a)?pl(c,vx):c;return Ea(a,d)?d:n}function Oye(n){const a=__(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&jb(n,Wt))}function ZM(n,a){return Wye(n,a)&a}function _m(n,a){return ZM(n,a)!==0}function Wye(n,a){n.flags&467927040&&(n=Gu(n)||_n);const c=n.flags;if(c&268435460)return Y?16317953:16776705;if(c&134217856){const d=c&128&&n.value==="";return Y?d?12123649:7929345:d?12582401:16776705}if(c&40)return Y?16317698:16776450;if(c&256){const d=n.value===0;return Y?d?12123394:7929090:d?12582146:16776450}if(c&64)return Y?16317188:16775940;if(c&2048){const d=q6e(n);return Y?d?12122884:7928580:d?12581636:16775940}return c&16?Y?16316168:16774920:c&528?Y?n===en||n===bn?12121864:7927560:n===en||n===bn?12580616:16774920:c&524288?(a&(Y?83427327:83886079))===0?0:Or(n)&16&&hy(n)?Y?83427327:83886079:Oye(n)?Y?7880640:16728e3:Y?7888800:16736160:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?Y?7925520:16772880:c&67108864?Y?7888800:16736160:c&131072?0:c&1048576?id(n.types,(d,_)=>d|Wye(_,a),0):c&2097152?lpt(n,a):83886079}function lpt(n,a){const c=Cl(n,402784252);let d=0,_=134217727;for(const y of n.types)if(!(c&&y.flags&524288)){const x=Wye(y,a);d|=x,_&=x}return d&8256|_&134209471}function hm(n,a){return uc(n,c=>_m(c,a))}function nA(n,a){const c=p4e(hm(Y&&n.flags&2?ul:n,a));if(Y)switch(a){case 524288:return pl(c,d=>_m(d,65536)?ba([d,_m(d,131072)&&!Cl(c,65536)?ti([La,me]):La]):d);case 1048576:return pl(c,d=>_m(d,131072)?ba([d,_m(d,65536)&&!Cl(c,32768)?ti([La,Oe]):La]):d);case 2097152:case 4194304:return pl(c,d=>_m(d,262144)?Ddt(d):d)}return c}function p4e(n){return n===ul?_n:n}function Fye(n,a){return a?ti([mi(n),Ru(a)]):n}function f4e(n,a){var c;const d=_v(a);if(!rm(d))return _t;const _=im(d);return Ke(n,_)||G8((c=_x(n,_))==null?void 0:c.type)||_t}function m4e(n,a){return up(n,YM)&&vdt(n,a)||G8(vv(65,n,Oe,void 0))||_t}function G8(n){return n&&(V.noUncheckedIndexedAccess?ti([n,L]):n)}function _4e(n){return Vu(vv(65,n,Oe,void 0)||_t)}function cpt(n){return n.parent.kind===209&&zye(n.parent)||n.parent.kind===303&&zye(n.parent.parent)?Fye(k9(n),n.right):Ru(n.right)}function zye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function upt(n,a){return m4e(k9(n),n.elements.indexOf(a))}function dpt(n){return _4e(k9(n.parent))}function h4e(n){return f4e(k9(n.parent),n.name)}function ppt(n){return Fye(h4e(n),n.objectAssignmentInitializer)}function k9(n){const{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return _B(a)||_t;case 226:return cpt(a);case 220:return Oe;case 209:return upt(a,n);case 230:return dpt(a);case 303:return h4e(a);case 304:return ppt(a)}return _t}function fpt(n){const a=n.parent,c=y4e(a.parent),d=a.kind===206?f4e(c,n.propertyName||n.name):n.dotDotDotToken?_4e(c):m4e(c,a.elements.indexOf(n));return Fye(d,n.initializer)}function g4e(n){return ei(n).resolvedType||Ru(n)}function mpt(n){return n.initializer?g4e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&_B(n.parent.parent)||_t}function y4e(n){return n.kind===260?mpt(n):fpt(n)}function _pt(n){return n.kind===260&&n.initializer&&Cb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Cb(n.parent.right)}function Q1(n){switch(n.kind){case 217:return Q1(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return Q1(n.left);case 28:return Q1(n.right)}}return n}function v4e(n){const{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?v4e(a):n}function hpt(n){return n.kind===296?bd(Ru(n.expression)):Vr}function Eee(n){const a=ei(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(hpt(c))}return a.switchTypes}function b4e(n){if(bt(n.caseBlock.clauses,c=>c.kind===296&&!ls(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const d=c.kind===296?c.expression.text:void 0;a.push(d&&!Nr(a,d)?d:void 0)}return a}function gpt(n,a){return n.flags&1048576?!Xe(n.types,c=>!Nr(a,c)):Nr(a,n)}function e2(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&ypt(n,a))}function ypt(n,a){if(n.flags&1048576){for(const c of n.types)if(!fy(a.types,c))return!1;return!0}return n.flags&1056&&DZ(n)===a?!0:fy(a.types,n)}function rA(n,a){return n.flags&1048576?Xe(n.types,a):a(n)}function Um(n,a){return n.flags&1048576?bt(n.types,a):a(n)}function up(n,a){return n.flags&1048576?Zn(n.types,a):a(n)}function vpt(n,a){return n.flags&3145728?Zn(n.types,a):a(n)}function uc(n,a){if(n.flags&1048576){const c=n.types,d=nr(c,a);if(d===c)return n;const _=n.origin;let y;if(_&&_.flags&1048576){const x=_.types,k=nr(x,z=>!!(z.flags&1048576)||a(z));if(x.length-k.length===c.length-d.length){if(k.length===1)return k[0];y=zge(1048576,k)}}return Gge(d,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:Vr}function See(n,a){return uc(n,c=>c!==a)}function bpt(n){return n.flags&1048576?n.types.length:1}function pl(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const d=n.origin,_=d&&d.flags&1048576?d.types:n.types;let y,x=!1;for(const k of _){const z=k.flags&1048576?pl(k,a,c):a(k);x||(x=k!==z),z&&(y?y.push(z):y=[z])}return x?y&&ti(y,c?0:1):n}function E4e(n,a,c,d){return n.flags&1048576&&c?ti(Ot(n.types,a),1,c,d):pl(n,a)}function t2(n,a){return uc(n,c=>(c.flags&a)!==0)}function S4e(n,a){return Cl(n,134217804)&&Cl(a,402655616)?pl(n,c=>c.flags&4?t2(a,402653316):KT(c)&&!Cl(a,402653188)?t2(a,128):c.flags&8?t2(a,264):c.flags&64?t2(a,2112):c):n}function MN(n){return n.flags===0}function iA(n){return n.flags===0?n.type:n}function LN(n,a){return a?{flags:0,type:n.flags&131072?yo:n}:n}function Ept(n){const a=zf(256);return a.elementType=n,a}function Bye(n){return kn[n.id]||(kn[n.id]=Ept(n))}function T4e(n,a){const c=F8(gy(cB(a)));return e2(c,n.elementType)?n:Bye(ti([n.elementType,c]))}function Spt(n){return n.flags&131072?Jc:Vu(n.flags&1048576?ti(n.types,2):n)}function Tpt(n){return n.finalArrayType||(n.finalArrayType=Spt(n.elementType))}function w9(n){return Or(n)&256?Tpt(n):n}function Apt(n){return Or(n)&256?n.elementType:Vr}function Ipt(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Or(c)&256))return!1;a=!0}return a}function A4e(n){const a=v4e(n),c=a.parent,d=Wr(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ve(c.name)&&Uj(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!rg(c.parent)&&xu(Ru(c.argumentExpression),296);return d||_}function xpt(n){return(wi(n)||Jo(n)||yp(n)||Ao(n))&&!!(vu(n)||lr(n)&&zv(n)&&n.initializer&&$E(n.initializer)&&nm(n.initializer))}function Tee(n,a){if(n=jl(n),n.flags&8752)return dr(n);if(n.flags&7){if(xl(n)&262144){const d=n.links.syntheticOrigin;if(d&&Tee(d))return dr(n)}const c=n.valueDeclaration;if(c){if(xpt(c))return dr(n);if(wi(c)&&c.parent.parent.kind===250){const d=c.parent.parent,_=O9(d.expression,void 0);if(_){const y=d.awaitModifier?15:13;return vv(y,_,Oe,void 0)}}a&&wa(a,kr(c,f._0_needs_an_explicit_type_annotation,vi(n)))}}}function O9(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=yf(jm(n));return Tee(c,a);case 110:return Jpt(n);case 108:return Jye(n);case 211:{const d=O9(n.expression,a);if(d){const _=n.name;let y;if(Ji(_)){if(!d.symbol)return;y=va(d,ek(d.symbol,_.escapedText))}else y=va(d,_.escapedText);return y&&Tee(y,a)}return}case 217:return O9(n.expression,a)}}function W9(n){const a=ei(n);let c=a.effectsSignature;if(c===void 0){let d;if(mr(n)){const x=kN(n.right);d=Fve(x)}else n.parent.kind===244?d=O9(n.expression,void 0):n.expression.kind!==108&&(qu(n)?d=eh(O8(mo(n.expression),n.expression),n.expression):d=kN(n.expression));const _=Yo(d&&Ld(d)||_n,0),y=_.length===1&&!_[0].typeParameters?_[0]:bt(_,I4e)?ON(n):void 0;c=a.effectsSignature=y&&I4e(y)?y:un}return c===un?void 0:c}function I4e(n){return!!(jf(n)||n.declaration&&(AN(n.declaration)||_n).flags&131072)}function Rpt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=hs(a.expression);return ws(c)?hs(c.expression):void 0}function Dpt(n){const a=Gn(n,qV),c=jn(n),d=hh(c,a.statements.pos);ts.add(Qc(c,d.start,d.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function F9(n){const a=Aee(n,!1);return Mt=n,Ut=a,a}function z9(n){const a=hs(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(z9(a.left)||z9(a.right))||a.operatorToken.kind===57&&z9(a.left)&&z9(a.right))}function Aee(n,a){for(;;){if(n===Mt)return Ut;const c=n.flags;if(c&4096){if(!a){const d=wye(n),_=_T[d];return _!==void 0?_:_T[d]=Aee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const d=W9(n.node);if(d){const _=jf(d);if(_&&_.kind===3&&!_.type){const y=n.node.arguments[_.parameterIndex];if(y&&z9(y))return!1}if(ps(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return bt(n.antecedents,d=>Aee(d,!1));if(c&8){const d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&aWe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Mt=void 0;const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const y=Aee(n.antecedent,!1);return d.antecedents=_,y}else return!(c&1)}}}function Iee(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const d=wye(n),_=$I[d];return _!==void 0?_:$I[d]=Iee(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 Zn(n.antecedents,d=>Iee(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const d=n.target,_=d.antecedents;d.antecedents=n.antecedents;const y=Iee(n.antecedent,!1);return d.antecedents=_,y}else return!!(c&1)}}}function x4e(n){switch(n.kind){case 110:return!0;case 80:if(!BA(n)){const c=jm(n);return n2(c)||Ree(c)&&!R4e(c)}break;case 211:case 212:return x4e(n.expression)&&b_(ei(n).resolvedSymbol||ft);case 206:case 207:const a=C_(n.parent);return Ao(a)||Foe(a)?!Gye(a):wi(a)&&EB(a)}return!1}function Kb(n,a,c=a,d,_=(y=>(y=ii(n,qL))==null?void 0:y.flowNode)()){let y,x=!1,k=0;if(ze)return _t;if(!_)return a;Ze++;const z=$g,H=iA(ge(_));$g=z;const re=Or(H)&256&&A4e(n)?Jc:w9(H);if(re===Ii||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&hm(re,2097152).flags&131072)return a;return re===q?_n:re;function be(){return x?y:(x=!0,y=bee(n,a,c,d))}function ge(lt){var wt;if(k===2e3)return(wt=sr)==null||wt.instant(sr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:lt.id}),ze=!0,Dpt(n),_t;k++;let dn;for(;;){const Ht=lt.flags;if(Ht&4096){for(let Wn=z;Wn<$g;Wn++)if(XI[Wn]===lt)return k--,YI[Wn];dn=lt}let fn;if(Ht&16){if(fn=gt(lt),!fn){lt=lt.antecedent;continue}}else if(Ht&512){if(fn=an(lt),!fn){lt=lt.antecedent;continue}}else if(Ht&96)fn=ar(lt);else if(Ht&128)fn=On(lt);else if(Ht&12){if(lt.antecedents.length===1){lt=lt.antecedents[0];continue}fn=Ht&4?ln(lt):zn(lt)}else if(Ht&256){if(fn=cn(lt),!fn){lt=lt.antecedent;continue}}else if(Ht&1024){const Wn=lt.target,Li=Wn.antecedents;Wn.antecedents=lt.antecedents,fn=ge(lt.antecedent),Wn.antecedents=Li}else if(Ht&2){const Wn=lt.node;if(Wn&&Wn!==d&&n.kind!==211&&n.kind!==212&&!(n.kind===110&&Wn.kind!==219)){lt=Wn.flowNode;continue}fn=c}else fn=n6(a);return dn&&(XI[$g]=dn,YI[$g]=fn,$g++),k--,fn}}function Je(lt){const wt=lt.node;return Vye(wt.kind===260||wt.kind===208?y4e(wt):k9(wt),n)}function gt(lt){const wt=lt.node;if(Iu(n,wt)){if(!F9(lt))return Ii;if(FA(wt)===2){const Ht=ge(lt.antecedent);return LN(gy(iA(Ht)),MN(Ht))}if(a===ot||a===Jc){if(_pt(wt))return Bye(Vr);const Ht=$1(Je(lt));return Ea(Ht,a)?Ht:ec}const dn=Oj(wt)?gy(a):a;return dn.flags&1048576?apt(dn,Je(lt)):dn}if(s4e(n,wt)){if(!F9(lt))return Ii;if(wi(wt)&&(lr(wt)||EB(wt))){const dn=WL(wt);if(dn&&(dn.kind===218||dn.kind===219))return ge(lt.antecedent)}return a}if(wi(wt)&&wt.parent.parent.kind===249&&(Iu(n,wt.parent.parent.expression)||tA(wt.parent.parent.expression,n)))return uve(w9(iA(ge(lt.antecedent))))}function Dt(lt,wt){const dn=hs(wt,!0);if(dn.kind===97)return Ii;if(dn.kind===226){if(dn.operatorToken.kind===56)return Dt(Dt(lt,dn.left),dn.right);if(dn.operatorToken.kind===57)return ti([Dt(lt,dn.left),Dt(lt,dn.right)])}return Ur(lt,dn,!0)}function an(lt){const wt=W9(lt.node);if(wt){const dn=jf(wt);if(dn&&(dn.kind===2||dn.kind===3)){const Ht=ge(lt.antecedent),fn=w9(iA(Ht)),Wn=dn.type?Ti(fn,dn,lt.node,!0):dn.kind===3&&dn.parameterIndex>=0&&dn.parameterIndex!(Wn.flags&163840)):wt.kind===221&&tA(wt.expression,n)&&(Ht=ss(Ht,lt.switchStatement,lt.clauseStart,lt.clauseEnd,Wn=>!(Wn.flags&131072||Wn.flags&128&&Wn.value==="undefined"))));const fn=qn(wt,Ht);fn&&(Ht=Eo(Ht,fn,lt.switchStatement,lt.clauseStart,lt.clauseEnd))}return LN(Ht,MN(dn))}function ln(lt){const wt=[];let dn=!1,Ht=!1,fn;for(const Wn of lt.antecedents){if(!fn&&Wn.flags&128&&Wn.clauseStart===Wn.clauseEnd){fn=Wn;continue}const Li=ge(Wn),zr=iA(Li);if(zr===a&&a===c)return zr;Tf(wt,zr),e2(zr,c)||(dn=!0),MN(Li)&&(Ht=!0)}if(fn){const Wn=ge(fn),Li=iA(Wn);if(!(Li.flags&131072)&&!Nr(wt,Li)&&!aWe(fn.switchStatement)){if(Li===a&&a===c)return Li;wt.push(Li),e2(Li,c)||(dn=!0),MN(Wn)&&(Ht=!0)}}return LN(Fn(wt,dn?2:1),Ht)}function zn(lt){const wt=wye(lt),dn=qI[wt]||(qI[wt]=new Map),Ht=be();if(!Ht)return a;const fn=dn.get(Ht);if(fn)return fn;for(let Nn=H_;Nn<_f;Nn++)if(eN[Nn]===lt&&JI[Nn]===Ht&&KI[Nn].length)return LN(Fn(KI[Nn],1),!0);const Wn=[];let Li=!1,zr;for(const Nn of lt.antecedents){let ni;if(!zr)ni=zr=ge(Nn);else{eN[_f]=lt,JI[_f]=Ht,KI[_f]=Wn,_f++;const fo=vn;vn=void 0,ni=ge(Nn),vn=fo,_f--;const Sa=dn.get(Ht);if(Sa)return Sa}const Zi=iA(ni);if(Tf(Wn,Zi),e2(Zi,c)||(Li=!0),Zi===a)break}const Go=Fn(Wn,Li?2:1);return MN(zr)?LN(Go,!0):(dn.set(Ht,Go),Go)}function Fn(lt,wt){if(Ipt(lt))return Bye(ti(Ot(lt,Apt)));const dn=p4e(ti(eo(lt,w9),wt));return dn!==a&&dn.flags&a.flags&1048576&&Na(dn.types,a.types)?a:dn}function er(lt){if(ta(n)||$E(n)||xm(n)){if(Ve(lt)){const dn=jm(lt).valueDeclaration;if(dn&&(Qa(dn)||Ao(dn))&&n===dn.parent&&!dn.initializer&&!dn.dotDotDotToken)return dn}}else if(ws(lt)){if(Iu(n,lt.expression))return lt}else if(Ve(lt)){const wt=jm(lt);if(n2(wt)){const dn=wt.valueDeclaration;if(wi(dn)&&!dn.type&&dn.initializer&&ws(dn.initializer)&&Iu(n,dn.initializer.expression))return dn.initializer;if(Qa(dn)&&!dn.initializer){const Ht=dn.parent.parent;if(wi(Ht)&&!Ht.type&&Ht.initializer&&(Ve(Ht.initializer)||ws(Ht.initializer))&&Iu(n,Ht.initializer))return dn}}}}function qn(lt,wt){if(a.flags&1048576||wt.flags&1048576){const dn=er(lt);if(dn){const Ht=eA(dn);if(Ht){const fn=a.flags&1048576&&e2(wt,a)?a:wt;if(QM(fn,Ht))return dn}}}}function tr(lt,wt,dn){const Ht=eA(wt);if(Ht===void 0)return lt;const fn=qu(wt),Wn=Y&&(fn||Boe(wt))&&Cl(lt,98304);let Li=Ke(Wn?hm(lt,2097152):lt,Ht);if(!Li)return lt;Li=Wn&&fn?qb(Li):Li;const zr=dn(Li);return uc(lt,Go=>{const Nn=xt(Go,Ht)||_n;return!(Nn.flags&131072)&&!(zr.flags&131072)&&T9(zr,Nn)})}function Ro(lt,wt,dn,Ht,fn){if((dn===37||dn===38)&<.flags&1048576){const Wn=M9(lt);if(Wn&&Wn===eA(wt)){const Li=L9(lt,Ru(Ht));if(Li)return dn===(fn?37:38)?Li:y_(Ke(Li,Wn)||_n)?See(lt,Li):lt}}return tr(lt,wt,Wn=>oo(Wn,dn,Ht,fn))}function Eo(lt,wt,dn,Ht,fn){if(HtL9(lt,zr)||_n));if(Li!==_n)return Li}return tr(lt,wt,Wn=>Ts(Wn,dn,Ht,fn))}function Bo(lt,wt,dn){if(Iu(n,wt))return nA(lt,dn?4194304:8388608);Y&&dn&&tA(wt,n)&&(lt=nA(lt,2097152));const Ht=qn(wt,lt);return Ht?tr(lt,Ht,fn=>hm(fn,dn?4194304:8388608)):lt}function _o(lt,wt,dn){const Ht=va(lt,wt);return Ht?!!(Ht.flags&16777216||xl(Ht)&48)||dn:!!_x(lt,wt)||!dn}function Cc(lt,wt,dn){const Ht=im(wt);if(Um(lt,Wn=>_o(Wn,Ht,!0)))return uc(lt,Wn=>_o(Wn,Ht,dn));if(dn){const Wn=Lct();if(Wn)return ba([lt,xN(Wn,[wt,_n])])}return lt}function Jf(lt,wt,dn,Ht,fn){return fn=fn!==(dn.kind===112)!=(Ht!==38&&Ht!==36),Ur(lt,wt,fn)}function dp(lt,wt,dn){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Bo(Ur(lt,wt.right,dn),wt.left,dn);case 35:case 36:case 37:case 38:const Ht=wt.operatorToken.kind,fn=Q1(wt.left),Wn=Q1(wt.right);if(fn.kind===221&&ls(Wn))return br(lt,fn,Ht,Wn,dn);if(Wn.kind===221&&ls(fn))return br(lt,Wn,Ht,fn,dn);if(Iu(n,fn))return oo(lt,Ht,Wn,dn);if(Iu(n,Wn))return oo(lt,Ht,fn,dn);Y&&(tA(fn,n)?lt=Qn(lt,Ht,Wn,dn):tA(Wn,n)&&(lt=Qn(lt,Ht,fn,dn)));const Li=qn(fn,lt);if(Li)return Ro(lt,Li,Ht,Wn,dn);const zr=qn(Wn,lt);if(zr)return Ro(lt,zr,Ht,fn,dn);if(El(fn))return ut(lt,Ht,Wn,dn);if(El(Wn))return ut(lt,Ht,fn,dn);if(_C(Wn)&&!ws(fn))return Jf(lt,fn,Wn,Ht,dn);if(_C(fn)&&!ws(Wn))return Jf(lt,Wn,fn,Ht,dn);break;case 104:return Ae(lt,wt,dn);case 103:if(Ji(wt.left))return wn(lt,wt,dn);const Go=Q1(wt.right);if(W8(lt)&&ws(n)&&Iu(n.expression,Go)){const Nn=Ru(wt.left);if(rm(Nn)&&eA(n)===im(Nn))return hm(lt,dn?524288:65536)}if(Iu(n,Go)){const Nn=Ru(wt.left);if(rm(Nn))return Cc(lt,Nn,dn)}break;case 28:return Ur(lt,wt.right,dn);case 56:return dn?Ur(Ur(lt,wt.left,!0),wt.right,!0):ti([Ur(lt,wt.left,!1),Ur(lt,wt.right,!1)]);case 57:return dn?ti([Ur(lt,wt.left,!0),Ur(lt,wt.right,!0)]):Ur(Ur(lt,wt.left,!1),wt.right,!1)}return lt}function wn(lt,wt,dn){const Ht=Q1(wt.right);if(!Iu(n,Ht))return lt;N.assertNode(wt.left,Ji);const fn=Fee(wt.left);if(fn===void 0)return lt;const Wn=fn.parent,Li=fc(N.checkDefined(fn.valueDeclaration,"should always have a declaration"))?dr(Wn):el(Wn);return Pr(lt,Li,dn,!0)}function Qn(lt,wt,dn,Ht){const fn=wt===35||wt===37,Wn=wt===35||wt===36?98304:32768,Li=Ru(dn);return fn!==Ht&&up(Li,Go=>!!(Go.flags&Wn))||fn===Ht&&up(Li,Go=>!(Go.flags&(3|Wn)))?nA(lt,2097152):lt}function oo(lt,wt,dn,Ht){if(lt.flags&1)return lt;(wt===36||wt===38)&&(Ht=!Ht);const fn=Ru(dn),Wn=wt===35||wt===36;if(fn.flags&98304){if(!Y)return lt;const Li=Wn?Ht?262144:2097152:fn.flags&65536?Ht?131072:1048576:Ht?65536:524288;return nA(lt,Li)}if(Ht){if(!Wn&&(lt.flags&2||Um(lt,jh))){if(fn.flags&469893116||jh(fn))return fn;if(fn.flags&524288)return Jr}const Li=uc(lt,zr=>T9(zr,fn)||Wn&&Ndt(zr,fn));return S4e(Li,fn)}return y_(fn)?uc(lt,Li=>!(V6e(Li)&&T9(Li,fn))):lt}function br(lt,wt,dn,Ht,fn){(dn===36||dn===38)&&(fn=!fn);const Wn=Q1(wt.expression);if(!Iu(n,Wn)){Y&&tA(Wn,n)&&fn===(Ht.text!=="undefined")&&(lt=nA(lt,2097152));const Li=qn(Wn,lt);return Li?tr(lt,Li,zr=>Co(zr,Ht,fn)):lt}return Co(lt,Ht,fn)}function Co(lt,wt,dn){return dn?ju(lt,wt.text):nA(lt,Wq.get(wt.text)||32768)}function ss(lt,wt,dn,Ht,fn){return dn!==Ht&&Zn(Eee(wt).slice(dn,Ht),fn)?hm(lt,2097152):lt}function Ts(lt,wt,dn,Ht){const fn=Eee(wt);if(!fn.length)return lt;const Wn=fn.slice(dn,Ht),Li=dn===Ht||Nr(Wn,Vr);if(lt.flags&2&&!Li){let ni;for(let Zi=0;ZiT9(zr,ni)),zr);if(!Li)return Go;const Nn=uc(lt,ni=>!(V6e(ni)&&Nr(fn,bd(Edt(ni)))));return Go.flags&131072?Nn:ti([Go,Nn])}function ju(lt,wt){switch(wt){case"string":return Ga(lt,ke,1);case"number":return Ga(lt,Tt,2);case"bigint":return Ga(lt,kt,4);case"boolean":return Ga(lt,Ni,8);case"symbol":return Ga(lt,Ai,16);case"object":return lt.flags&1?lt:ti([Ga(lt,Jr,32),Ga(lt,me,131072)]);case"function":return lt.flags&1?lt:Ga(lt,Wt,64);case"undefined":return Ga(lt,Oe,65536)}return Ga(lt,Jr,128)}function Ga(lt,wt,dn){return pl(lt,Ht=>Z_(Ht,wt,Wf)?_m(Ht,dn)?Ht:Vr:jb(wt,Ht)?wt:_m(Ht,dn)?ba([Ht,wt]):Vr)}function kd(lt,wt,dn,Ht){const fn=b4e(wt);if(!fn)return lt;const Wn=Br(wt.caseBlock.clauses,Go=>Go.kind===297);if(dn===Ht||Wn>=dn&&WnZM(Nn,Go)===Go)}const zr=fn.slice(dn,Ht);return ti(Ot(zr,Go=>Go?ju(lt,Go):Vr))}function Wl(lt,wt,dn,Ht){const fn=Br(wt.caseBlock.clauses,zr=>zr.kind===297),Wn=dn===Ht||fn>=dn&&fnzr.kind===296?Ur(lt,zr.expression,!0):Vr))}function El(lt){return(Wr(lt)&&Sr(lt.name)==="constructor"||Qs(lt)&&ls(lt.argumentExpression)&<.argumentExpression.text==="constructor")&&Iu(n,lt.expression)}function ut(lt,wt,dn,Ht){if(Ht?wt!==35&&wt!==37:wt!==36&&wt!==38)return lt;const fn=Ru(dn);if(!mbe(fn)&&!is(fn))return lt;const Wn=va(fn,"prototype");if(!Wn)return lt;const Li=dr(Wn),zr=Nt(Li)?void 0:Li;if(!zr||zr===Ce||zr===Wt)return lt;if(Nt(lt))return zr;return uc(lt,Nn=>Go(Nn,zr));function Go(Nn,ni){return Nn.flags&524288&&Or(Nn)&1||ni.flags&524288&&Or(ni)&1?Nn.symbol===ni.symbol:jb(Nn,ni)}}function Ae(lt,wt,dn){const Ht=Q1(wt.left);if(!Iu(n,Ht))return dn&&Y&&tA(Ht,n)?nA(lt,2097152):lt;const fn=wt.right,Wn=Ru(fn);if(!mE(Wn,Ce))return lt;const Li=W9(wt),zr=Li&&jf(Li);if(zr&&zr.kind===1&&zr.parameterIndex===0)return Pr(lt,zr.type,dn,!0);if(!mE(Wn,Wt))return lt;const Go=pl(Wn,Ln);return Nt(lt)&&(Go===Ce||Go===Wt)||!dn&&!(Go.flags&524288&&!jh(Go))?lt:Pr(lt,Go,dn,!0)}function Ln(lt){const wt=Ke(lt,"prototype");if(wt&&!Nt(wt))return wt;const dn=Yo(lt,1);return dn.length?ti(Ot(dn,Ht=>ps(A8(Ht)))):La}function Pr(lt,wt,dn,Ht){const fn=lt.flags&1048576?`N${vd(lt)},${vd(wt)},${(dn?1:0)|(Ht?2:0)}`:void 0;return QI(fn)??_b(fn,di(lt,wt,dn,Ht))}function di(lt,wt,dn,Ht){if(!dn){if(lt===wt)return Vr;if(Ht)return uc(lt,Go=>!mE(Go,wt));const zr=Pr(lt,wt,!0,!1);return uc(lt,Go=>!e2(Go,zr))}if(lt.flags&3||lt===wt)return wt;const fn=Ht?mE:jb,Wn=lt.flags&1048576?M9(lt):void 0,Li=pl(wt,zr=>{const Go=Wn&&Ke(zr,Wn),Nn=Go&&L9(lt,Go),ni=pl(Nn||lt,Ht?Zi=>mE(Zi,zr)?Zi:mE(zr,Zi)?zr:Vr:Zi=>S9(Zi,zr)?Zi:S9(zr,Zi)?zr:jb(Zi,zr)?Zi:jb(zr,Zi)?zr:Vr);return ni.flags&131072?pl(lt,Zi=>Cl(Zi,465829888)&&fn(zr,Gu(Zi)||_n)?ba([Zi,zr]):Vr):ni});return Li.flags&131072?jb(wt,lt)?wt:Ea(lt,wt)?lt:Ea(wt,lt)?wt:ba([lt,wt]):Li}function Si(lt,wt,dn){if(d4e(wt,n)){const Ht=dn||!mS(wt)?W9(wt):void 0,fn=Ht&&jf(Ht);if(fn&&(fn.kind===0||fn.kind===1))return Ti(lt,fn,wt,dn)}if(W8(lt)&&ws(n)&&Wr(wt.expression)){const Ht=wt.expression;if(Iu(n.expression,Q1(Ht.expression))&&Ve(Ht.name)&&Ht.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const fn=wt.arguments[0];if(ls(fn)&&eA(n)===hl(fn.text))return hm(lt,dn?524288:65536)}}return lt}function Ti(lt,wt,dn,Ht){if(wt.type&&!(Nt(lt)&&(wt.type===Ce||wt.type===Wt))){const fn=Rpt(wt,dn);if(fn){if(Iu(n,fn))return Pr(lt,wt.type,Ht,!1);Y&&tA(fn,n)&&(Ht&&!_m(wt.type,65536)||!Ht&&up(wt.type,J9))&&(lt=nA(lt,2097152));const Wn=qn(fn,lt);if(Wn)return tr(lt,Wn,Li=>Pr(Li,wt.type,Ht,!1))}}return lt}function Ur(lt,wt,dn){if(m4(wt)||mr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return xr(lt,wt,dn);switch(wt.kind){case 80:if(!Iu(n,wt)&&M<5){const Ht=jm(wt);if(n2(Ht)){const fn=Ht.valueDeclaration;if(fn&&wi(fn)&&!fn.type&&fn.initializer&&x4e(n)){M++;const Wn=Ur(lt,fn.initializer,dn);return M--,Wn}}}case 110:case 108:case 211:case 212:return Bo(lt,wt,dn);case 213:return Si(lt,wt,dn);case 217:case 235:return Ur(lt,wt.expression,dn);case 226:return dp(lt,wt,dn);case 224:if(wt.operator===54)return Ur(lt,wt.operand,!dn);break}return lt}function xr(lt,wt,dn){if(Iu(n,wt))return nA(lt,dn?2097152:262144);const Ht=qn(wt,lt);return Ht?tr(lt,Ht,fn=>hm(fn,dn?2097152:262144)):lt}}function Npt(n,a){if(n=yf(n),(a.kind===80||a.kind===81)&&(GC(a)&&(a=a.parent),tg(a)&&(!rg(a)||jA(a)))){const c=uee(jA(a)&&a.kind===211?Oee(a,void 0,!0):Ru(a));if(yf(ei(a).resolvedSymbol)===n)return c}return Wg(a)&&wy(a.parent)&&Vm(a.parent)?e9(a.parent.symbol):lU(a)&&jA(a.parent)?j1(n):kb(n)}function V8(n){return Gn(n.parent,a=>ea(a)&&!AS(a)||a.kind===268||a.kind===312||a.kind===172)}function R4e(n){return!D4e(n,void 0)}function D4e(n,a){const c=Gn(n.valueDeclaration,xee);if(!c)return!1;const d=ei(c);return d.flags&131072||(d.flags|=131072,Cpt(c)||C4e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&N4e(a.name))}function Cpt(n){return!!Gn(n.parent,a=>xee(a)&&!!(ei(a).flags&131072))}function xee(n){return Bs(n)||$i(n)}function C4e(n){switch(n.kind){case 80:if(rg(n)){const c=jm(n);if(Ree(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){const d=Gn(n,xee),_=Gn(c.valueDeclaration,xee);c.lastAssignmentPos=d===_?Ppt(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const c=Hs(n.propertyName||n.name,111551,!0,!0);c&&Ree(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ji(n)||Ho(n,C4e)}function Ppt(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 n2(n){return n.flags&3&&(sve(n)&6)!==0}function Ree(n){const a=n.valueDeclaration&&C_(n.valueDeclaration);return!!a&&(Ao(a)||wi(a)&&(l1(a.parent)||Mpt(a)))}function Mpt(n){return!!(n.parent.flags&1)&&!(l0(n)&32||n.parent.parent.kind===243&&Ph(n.parent.parent.parent))}function Lpt(n){const a=ei(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Wh(n,9))return vN(n.symbol),!0;const c=!!_m(o2(n,0),16777216);if(!Y_())return vN(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function kpt(n,a){return Y&&a.kind===169&&a.initializer&&_m(n,16777216)&&!Lpt(a)?hm(n,524288):n}function wpt(n,a){const c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(Um(n,M4e)&&YT(Ru(c.argumentExpression)))}function P4e(n){return n.flags&2097152?bt(n.types,P4e):!!(n.flags&465829888&&py(n).flags&1146880)}function M4e(n){return n.flags&2097152?bt(n.types,M4e):!!(n.flags&465829888&&!Cl(py(n),98304))}function Opt(n,a){const c=(Ve(n)||Wr(n)||Qs(n))&&!((W_(n.parent)||HS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Yd(n,8):Yd(n,void 0));return c&&!NN(c)}function Vye(n,a,c){return!(c&&c&2)&&Um(n,P4e)&&(wpt(n,a)||Opt(a,c))?pl(n,py):n}function L4e(n){return!!Gn(n,a=>{const c=a.parent;return c===void 0?"quit":kl(c)?c.expression===a&&Gl(a):Ku(c)?c.name===a||c.propertyName===a:!1})}function Dee(n,a){if(It&&NT(n,111551)&&!MS(a)){const c=Fc(n);Au(n,!0)&1160127&&(om(V)||ZE(V)&&L4e(a)||!r6(yf(c))?Tb(n):iu(n))}}function Wpt(n,a,c){var d;const _=dr(n,c),y=n.valueDeclaration;if(y){if(Qa(y)&&!y.initializer&&!y.dotDotDotToken&&y.parent.elements.length>=2){const x=y.parent.parent,k=C_(x);if(k.kind===260&&oS(k)&6||k.kind===169){const z=ei(x);if(!(z.flags&4194304)){z.flags|=4194304;const H=Fr(x,0),re=H&&pl(H,py);if(z.flags&=-4194305,re&&re.flags&1048576&&!(k.kind===169&&Gye(k))){const be=y.parent,ge=Kb(be,re,re,void 0,a.flowNode);return ge.flags&131072?Vr:Tg(y,ge,!0)}}}}if(Ao(y)&&!y.type&&!y.initializer&&!y.dotDotDotToken){const x=y.parent;if(x.parameters.length>=2&&QZ(x)){const k=U8(x);if(k&&k.parameters.length===1&&Yu(k)){const z=GM(so(dr(k.parameters[0]),(d=Z1(x))==null?void 0:d.nonFixingMapper));if(z.flags&1048576&&up(z,Ba)&&!bt(x.parameters,Gye)){const H=Kb(x,z,z,void 0,a.flowNode),re=x.parameters.indexOf(y)-(HE(x)?1:0);return Mp(H,g_(re))}}}}}return _}function Fpt(n,a){if(BA(n))return B9(n);const c=jm(n);if(c===ft)return _t;if(c===Gt){if(h3e(n))return qe(n,f.arguments_cannot_be_referenced_in_property_initializers),_t;let ln=Gp(n);if(ln)for(se<2&&(ln.kind===219?qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Zr(ln,1024)&&qe(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)),ei(ln).flags|=512;ln&&Gs(ln);)ln=Gp(ln),ln&&(ei(ln).flags|=512);return dr(c)}Bpt(n)&&Dee(c,n);const d=yf(c),_=lbe(d,n);hb(_)&&Uge(n,_)&&_.declarations&&sv(n,_.declarations,n.escapedText);let y=d.valueDeclaration;if(y&&d.flags&32&&ui(y)&&y.name!==n){let ln=Fd(n,!1,!1);for(;ln.kind!==312&&ln.parent!==y;)ln=Fd(ln,!1,!1);ln.kind!==312&&(ei(y).flags|=262144,ei(ln).flags|=262144,ei(n).flags|=536870912)}jpt(n,c);let x=Wpt(d,n,a);const k=FA(n);if(k){if(!(d.flags&3)&&!(lr(n)&&d.flags&512)){const ln=d.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return qe(n,ln,vi(c)),_t}if(b_(d))return d.flags&3?qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,vi(c)):qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,vi(c)),_t}const z=d.flags&2097152;if(d.flags&3){if(k===1)return Oj(n)?gy(x):x}else if(z)y=Fm(c);else return x;if(!y)return x;x=Vye(x,n,a);const H=C_(y).kind===169,re=V8(y);let be=V8(n);const ge=be!==re,Je=n.parent&&n.parent.parent&&qy(n.parent)&&zye(n.parent.parent),gt=c.flags&134217728,Dt=x===ot||x===Jc,an=Dt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||V4(be))&&(n2(d)&&x!==Jc||Ree(d)&&D4e(d,n));)be=V8(be);const cn=H||z||ge||Je||gt||zpt(n,y)||x!==ot&&x!==Jc&&(!Y||(x.flags&16387)!==0||MS(n)||Lye(n)||n.parent.kind===281)||n.parent.kind===235||y.kind===260&&y.exclamationToken||y.flags&33554432,ar=an?Oe:cn?H?kpt(x,y):x:Dt?Oe:qb(x),On=an?yy(Kb(n,x,ar,be)):Kb(n,x,ar,be);if(!A4e(n)&&(x===ot||x===Jc)){if(On===ot||On===Jc)return pe&&(qe(Mo(y),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,vi(c),Un(On)),qe(n,f.Variable_0_implicitly_has_an_1_type,vi(c),Un(On))),n6(On)}else if(!cn&&!JM(x)&&JM(On))return qe(n,f.Variable_0_is_used_before_being_assigned,vi(c)),x;return k?gy(On):On}function zpt(n,a){if(Qa(a)){const c=Gn(n,Qa);return c&&C_(c)===C_(a)}}function Bpt(n){var a;const c=n.parent;if(c){if(Wr(c)&&c.expression===n||Ku(c)&&c.isTypeOnly)return!1;const d=(a=c.parent)==null?void 0:a.parent;if(d&&Yl(d)&&d.isTypeOnly)return!1}return!0}function Gpt(n,a){return!!Gn(n,c=>c===a?"quit":ea(c)||c.parent&&Jo(c.parent)&&!fc(c.parent)&&c.parent.initializer===c)}function Vpt(n,a){return Gn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function jye(n){return Gn(n,a=>!a||Hj(a)?"quit":Wv(a,!1))}function jpt(n,a){if(se>=2||(a.flags&34)===0||!a.valueDeclaration||$i(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const c=_h(a.valueDeclaration),d=Gpt(n,c),_=jye(c);if(_){if(d){let y=!0;if(jS(c)){const x=v0(a.valueDeclaration,261);if(x&&x.parent===c){const k=Vpt(n.parent,c);if(k){const z=ei(k);z.flags|=8192;const H=z.capturedBlockScopeBindings||(z.capturedBlockScopeBindings=[]);Tf(H,a),k===c.initializer&&(y=!1)}}}y&&(ei(_).flags|=4096)}if(jS(c)){const y=v0(a.valueDeclaration,261);y&&y.parent===c&&Hpt(n,c)&&(ei(a.valueDeclaration).flags|=65536)}ei(a.valueDeclaration).flags|=32768}d&&(ei(a.valueDeclaration).flags|=16384)}function Upt(n,a){const c=ei(n);return!!c&&Nr(c.capturedBlockScopeBindings,Ir(a))}function Hpt(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(rg(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){const _=c.parent;d=_.operator===46||_.operator===47}return d?!!Gn(c,_=>_===a?"quit":_===a.statement):!1}function Uye(n,a){if(ei(n).flags|=2,a.kind===172||a.kind===176){const c=a.parent;ei(c).flags|=4}else ei(a).flags|=4}function k4e(n){return TS(n)?n:ea(n)?void 0:Ho(n,k4e)}function Hye(n){const a=Ir(n),c=el(a);return Cp(c)===Ge}function w4e(n,a,c){const d=a.parent;jE(d)&&!Hye(d)&&qL(n)&&n.flowNode&&!Iee(n.flowNode,!1)&&qe(n,c)}function qpt(n,a){Jo(a)&&fc(a)&&ne&&a.initializer&&eL(a.initializer,n.pos)&&If(a.parent)&&qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function B9(n){const a=MS(n);let c=Fd(n,!0,!0),d=!1,_=!1;for(c.kind===176&&w4e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=Fd(c,!1,!_),d=!0),c.kind===167){c=Fd(c,!d,!1),_=!0;continue}break}if(qpt(n,c),_)qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:qe(n,f.this_cannot_be_referenced_in_current_location);break;case 176:O4e(n,c)&&qe(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&se<2&&Uye(n,c);const y=qye(n,!0,c);if(ie){const x=dr(at);if(y===x&&d)qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){const k=qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!$i(c)){const z=qye(c);z&&z!==x&&wa(k,kr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||j}function qye(n,a=!0,c=Fd(n,!1,!1)){const d=lr(n);if(ea(c)&&(!Xye(n)||HE(c))){let _=Xhe(c)||d&&Xpt(c);if(!_){const y=Kpt(c);if(d&&y){const x=mo(y).symbol;x&&x.members&&x.flags&16&&(_=el(x).thisType)}else nh(c)&&(_=el(rs(c.symbol)).thisType);_||(_=B4e(c))}if(_)return Kb(n,_)}if(ui(c.parent)){const _=Ir(c.parent),y=aa(c)?dr(_):el(_).thisType;return Kb(n,y)}if($i(c))if(c.commonJsModuleIndicator){const _=Ir(c);return _&&dr(_)}else{if(c.externalModuleIndicator)return Oe;if(a)return dr(at)}}function Jpt(n){const a=Fd(n,!1,!1);if(ea(a)){const c=fm(a);if(c.thisParameter)return Tee(c.thisParameter)}if(ui(a.parent)){const c=Ir(a.parent);return aa(a)?dr(c):el(c).thisType}}function Kpt(n){if(n.kind===218&&mr(n.parent)&&Bl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&mr(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&&mr(n.parent.parent.parent)&&Bl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&_c(n.parent)&&Ve(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Oa(n.parent.parent)&&sa(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(ql(n)&&Ve(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Oa(n.parent)&&sa(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&Bl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Xpt(n){const a=u4(n);if(a&&a.typeExpression)return bi(a.typeExpression);const c=VM(n);if(c)return dE(c)}function O4e(n,a){return!!Gn(n,c=>Bs(c)?"quit":c.kind===169&&c.parent===a)}function Jye(n){const a=n.parent.kind===213&&n.parent.expression===n,c=CL(n,!0);let d=c,_=!1,y=!1;if(!a){for(;d&&d.kind===219;)Zr(d,1024)&&(y=!0),d=CL(d,!0),_=se<2;d&&Zr(d,1024)&&(y=!0)}let x=0;if(!d||!re(d)){const be=Gn(n,ge=>ge===d?"quit":ge.kind===167);return be&&be.kind===167?qe(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?qe(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(ui(d.parent)||d.parent.kind===210)?qe(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):qe(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_t}if(!a&&c.kind===176&&w4e(n,d,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),aa(d)||a?(x=32,!a&&se>=2&&se<=8&&(Jo(d)||Rl(d))&&eie(n.parent,be=>{(!$i(be)||zp(be))&&(ei(be).flags|=2097152)})):x=16,ei(n).flags|=x,d.kind===174&&y&&(zd(n.parent)&&rg(n.parent)?ei(d).flags|=256:ei(d).flags|=128),_&&Uye(n.parent,d),d.parent.kind===210)return se<2?(qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):j;const k=d.parent;if(!jE(k))return qe(n,f.super_can_only_be_referenced_in_a_derived_class),_t;if(Hye(k))return a?_t:Ge;const z=el(Ir(k)),H=z&&Pp(z)[0];if(!H)return _t;if(d.kind===176&&O4e(n,d))return qe(n,f.super_cannot_be_referenced_in_constructor_arguments),_t;return x===32?Cp(z):Kp(H,z.thisType);function re(be){return a?be.kind===176:ui(be.parent)||be.parent.kind===210?aa(be)?be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===175:be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===171||be.kind===176:!1}}function W4e(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 F4e(n){return Or(n)&4&&n.target===Vl?Js(n)[0]:void 0}function Ypt(n){return pl(n,a=>a.flags&2097152?Xe(a.types,F4e):F4e(a))}function z4e(n,a){let c=n,d=a;for(;d;){const _=Ypt(d);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,d=bE(c,void 0)}}function B4e(n){if(n.kind===219)return;if(QZ(n)){const c=U8(n);if(c){const d=c.thisParameter;if(d)return dr(d)}}const a=lr(n);if(ie||a){const c=W4e(n);if(c){const _=bE(c,void 0),y=z4e(c,_);return y?so(y,Aye(Z1(c))):Xp(_?yy(_):nc(c))}const d=Wy(n.parent);if(Lc(d)){const _=d.left;if(ws(_)){const{expression:y}=_;if(a&&Ve(y)){const x=jn(d);if(x.commonJsModuleIndicator&&jm(y)===x.symbol)return}return Xp(nc(y))}}}}function G4e(n){const a=n.parent;if(!QZ(a))return;const c=AS(a);if(c&&c.arguments){const _=Uee(c),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return Eve(_,y,_.length,j,void 0,0);const x=ei(c),k=x.resolvedSignature;x.resolvedSignature=Et;const z=y<_.length?$1(mo(_[y])):n.initializer?void 0:Lt;return x.resolvedSignature=k,z}const d=U8(a);if(d){const _=a.parameters.indexOf(n)-(HE(a)?1:0);return n.dotDotDotToken&&tl(a.parameters)===n?nB(d,_):tS(d,_)}}function Kye(n,a){const c=vu(n)||(lr(n)?Y3(n):void 0);if(c)return bi(c);switch(n.kind){case 169:return G4e(n);case 208:return $pt(n,a);case 172:if(aa(n))return Qpt(n,a)}}function $pt(n,a){const c=n.parent.parent,d=n.propertyName||n.name,_=Kye(c,a)||c.kind!==208&&c.initializer&&o2(c,n.dotDotDotToken?32:0);if(!_||ta(d)||AL(d))return;if(c.name.kind===207){const x=aR(n.parent.elements,n);return x<0?void 0:Qye(_,x)}const y=_v(d);if(rm(y)){const x=im(y);return Ke(_,x)}}function Qpt(n,a){const c=vt(n.parent)&&Yd(n.parent,a);if(c)return vE(c,Ir(n).escapedName)}function Zpt(n,a){const c=n.parent;if(zv(c)&&n===c.initializer){const d=Kye(c,a);if(d)return d;if(!(a&8)&&ta(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function eft(n,a){const c=Gp(n);if(c){let d=Nee(c,a);if(d){const _=Vc(c);if(_&1){const y=(_&2)!==0;d.flags&1048576&&(d=uc(d,k=>!!nS(1,k,y)));const x=nS(1,d,(_&2)!==0);if(!x)return;d=x}if(_&2){const y=pl(d,yv);return y&&ti([y,nWe(y)])}return d}}}function tft(n,a){const c=Yd(n,a);if(c){const d=yv(c);return d&&ti([d,nWe(d)])}}function nft(n,a){const c=Gp(n);if(c){const d=Vc(c);let _=Nee(c,a);if(_){const y=(d&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=uc(_,x=>!!nS(1,x,y))),n.asteriskToken?_:nS(0,_,y)}}}function Xye(n){let a=!1;for(;n.parent&&!ea(n.parent);){if(Ao(n.parent)&&(a||n.parent.initializer===n))return!0;Qa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function V4e(n,a){const c=!!(Vc(a)&2),d=Nee(a,void 0);if(d)return nS(n,d,c)||void 0}function Nee(n,a){const c=AN(n);if(c)return c;const d=eve(n);if(d&&!LZ(d)){const y=ps(d),x=Vc(n);return x&1?uc(y,k=>!!(k.flags&58998787)||Vve(k,x,void 0)):x&2?uc(y,k=>!!(k.flags&58998787)||!!l2(k)):y}const _=AS(n);if(_)return Yd(_,a)}function j4e(n,a){const d=Uee(n).indexOf(a);return d===-1?void 0:Yye(n,d)}function Yye(n,a){if(Bp(n))return a===0?ke:a===1?P8e(!1):j;const c=ei(n).resolvedSignature===Er?Er:ON(n);if(cd(n)&&a===0)return Lee(c,n);const d=c.parameters.length-1;return Yu(c)&&a>=d?Mp(dr(c.parameters[d]),g_(a-d),256):v_(c,a)}function rft(n){const a=kve(n);return a?qT(a):void 0}function ift(n,a){if(n.parent.kind===215)return j4e(n.parent,a)}function oft(n,a){const c=n.parent,{left:d,operatorToken:_,right:y}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===y?sft(c):void 0;case 57:case 61:const x=Yd(c,a);return n===y&&(x&&x.pattern||!x&&!Eie(c))?Ru(d):x;case 56:case 28:return n===y?Yd(c,a):void 0;default:return}}function aft(n){if(x_(n)&&n.symbol)return n.symbol;if(Ve(n))return jm(n);if(Wr(n)){const c=Ru(n.expression);return Ji(n.name)?a(c,n.name):va(c,n.name.escapedText)}if(Qs(n)){const c=nc(n.argumentExpression);if(!rm(c))return;const d=Ru(n.expression);return va(d,im(c))}return;function a(c,d){const _=Wee(d.escapedText,d);return _&&dve(c,_)}}function sft(n){var a,c;const d=Bl(n);switch(d){case 0:case 4:const _=aft(n.left),y=_&&_.valueDeclaration;if(y&&(Jo(y)||yp(y))){const z=vu(y);return z&&so(bi(z),Xi(_).mapper)||(Jo(y)?y.initializer&&Ru(n.left):void 0)}return d===0?Ru(n.left):U4e(n);case 5:if(Cee(n,d))return U4e(n);if(!x_(n.left)||!n.left.symbol)return Ru(n.left);{const z=n.left.symbol.valueDeclaration;if(!z)return;const H=oa(n.left,ws),re=vu(z);if(re)return bi(re);if(Ve(H.expression)){const be=H.expression,ge=bl(be,be.escapedText,111551,void 0,be.escapedText,!0);if(ge){const Je=ge.valueDeclaration&&vu(ge.valueDeclaration);if(Je){const gt=Og(H);if(gt!==void 0)return vE(bi(Je),gt)}return}}return lr(z)||z===n.left?void 0:Ru(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=x_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);const k=x&&vu(x);return k?bi(k):void 0;case 7:case 8:case 9:return N.fail("Does not apply");default:return N.assertNever(d)}}function Cee(n,a=Bl(n)){if(a===4)return!0;if(!lr(n)||a!==5||!Ve(n.left.expression))return!1;const c=n.left.expression.escapedText,d=bl(n.left,c,111551,void 0,void 0,!0,!0);return J4(d?.valueDeclaration)}function U4e(n){if(!n.symbol)return Ru(n.left);if(n.symbol.valueDeclaration){const _=vu(n.symbol.valueDeclaration);if(_){const y=bi(_);if(y)return y}}const a=oa(n.left,ws);if(!xm(Fd(a.expression,!1,!1)))return;const c=B9(a.expression),d=Og(a);return d!==void 0&&vE(c,d)||void 0}function lft(n){return!!(xl(n)&262144&&!n.links.type&&px(n,0)>=0)}function vE(n,a,c){return pl(n,d=>{var _;if(Kd(d)&&!d.declaration.nameType){const y=Ef(d),x=Gu(y)||y,k=c||Xd(Vi(a));if(Ea(k,x))return UZ(d,k)}else if(d.flags&3670016){const y=va(d,a);if(y)return lft(y)?void 0:Jb(dr(y),!!(y&&y.flags&16777216));if(Ba(d)&&lg(a)&&+a>=0){const x=$M(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(_=fge(mge(d),c||Xd(Vi(a))))==null?void 0:_.type}},!0)}function H4e(n,a){if(N.assert(xm(n)),!(n.flags&67108864))return $ye(n,a)}function $ye(n,a){const c=n.parent,d=_c(n)&&Kye(n,a);if(d)return d;const _=bE(c,a);if(_){if(SN(n)){const y=Ir(n);return vE(_,y.escapedName,Xi(y).nameType)}if(jv(n)){const y=Mo(n);if(y&&Za(y)){const x=mo(y.expression),k=rm(x)&&vE(_,im(x));if(k)return k}}if(n.name){const y=_v(n.name);return pl(_,x=>{var k;return(k=fge(mge(x),y))==null?void 0:k.type},!0)}}}function cft(n){let a,c;for(let d=0;d{if(Ba(y)){if((d===void 0||a_)?c-a:0,k=x>0&&y.target.hasRestElement?x8(y.target,3):0;return x>0&&x<=k?Js(y)[mv(y)-x]:$M(y,d===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,d),c===void 0||_===void 0?k:Math.min(k,c-_),!1,!0)}return(!d||agv(z)?Mp(z,g_(x)):z,!0))}function pft(n,a){const c=n.parent;return E4(c)?Yd(n,a):ug(c)?dft(c,n,a):void 0}function q4e(n,a){if(F_(n)){const c=bE(n.parent,a);return!c||Nt(c)?void 0:vE(c,aP(n.name))}else return Yd(n.parent,a)}function G9(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 G9(n.expression);case 294:return!n.expression||G9(n.expression)}return!1}function fft(n,a){return ipt(a,n)||cye(a,So(Ot(nr(n.properties,c=>c.symbol?c.kind===303?G9(c.initializer)&&QM(a,c.symbol.escapedName):c.kind===304?QM(a,c.symbol.escapedName):!1:!1),c=>[()=>cB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Ot(nr(gs(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n?.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&QM(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),Ea)}function mft(n,a){const c=U9(oA(n));return cye(a,So(Ot(nr(n.properties,d=>!!d.symbol&&d.kind===291&&QM(a,d.symbol.escapedName)&&(!d.initializer||G9(d.initializer))),d=>[d.initializer?()=>cB(d.initializer):()=>Bn,d.symbol.escapedName]),Ot(nr(gs(a),d=>{var _;if(!(d.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;const y=n.parent.parent;return d.escapedName===c&&ug(y)&&IR(y.children).length?!1:!n.symbol.members.has(d.escapedName)&&QM(a,d.escapedName)}),d=>[()=>Oe,d.escapedName])),Ea)}function bE(n,a){const c=xm(n)?H4e(n,a):Yd(n,a),d=Pee(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){const _=pl(d,y=>Or(y)&32?y:Ld(y),!0);return _.flags&1048576&&Oa(n)?fft(n,_):_.flags&1048576&&s1(n)?mft(n,_):_}}function Pee(n,a,c){if(n&&Cl(n,465829888)){const d=Z1(a);if(d&&c&1&&bt(d.inferences,$_t))return Mee(n,d.nonFixingMapper);if(d?.returnMapper){const _=Mee(n,d.returnMapper);return _.flags&1048576&&fy(_.types,bn)&&fy(_.types,Hn)?uc(_,y=>y!==bn&&y!==Hn):_}}return n}function Mee(n,a){return n.flags&465829888?so(n,a):n.flags&1048576?ti(Ot(n.types,c=>Mee(c,a)),0):n.flags&2097152?ba(Ot(n.types,c=>Mee(c,a))):n}function Yd(n,a){var c;if(n.flags&67108864)return;const d=K4e(n,!a);if(d>=0)return gn[d];const{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Zpt(n,a);case 219:case 253:return eft(n,a);case 229:return nft(_,a);case 223:return tft(_,a);case 213:case 214:return j4e(_,n);case 170:return rft(_);case 216:case 234:return Lg(_.type)?Yd(_,a):bi(_.type);case 226:return oft(n,a);case 303:case 304:return $ye(_,a);case 305:return Yd(_.parent,a);case 209:{const y=_,x=bE(y,a),k=aR(y.elements,n),z=(c=ei(y)).spreadIndices??(c.spreadIndices=cft(y.elements));return Qye(x,k,y.elements.length,z.first,z.last)}case 227:return uft(n,a);case 239:return N.assert(_.parent.kind===228),ift(_.parent,n);case 217:{if(lr(_)){if(MU(_))return bi(LU(_));const y=u0(_);if(y&&!Lg(y.typeExpression.type))return bi(y.typeExpression.type)}return Yd(_,a)}case 235:return Yd(_,a);case 238:return bi(_.type);case 277:return ro(_);case 294:return pft(_,a);case 291:case 293:return q4e(_,a);case 286:case 285:return yft(_,a);case 301:return gft(_)}}function J4e(n){V9(n,Yd(n,void 0),!0)}function V9(n,a,c){Yn[fi]=n,gn[fi]=a,$n[fi]=c,fi++}function j8(){fi--}function K4e(n,a){for(let c=fi-1;c>=0;c--)if(n===Yn[c]&&(a||!$n[c]))return c;return-1}function _ft(n,a){cr[fr]=n,ri[fr]=a,fr++}function hft(){fr--}function Z1(n){for(let a=fr-1;a>=0;a--)if(VE(n,cr[a]))return ri[a]}function gft(n){return vE(Cge(!1),Q3(n))}function yft(n,a){if(W_(n)&&a!==4){const c=K4e(n.parent,!a);if(c>=0)return gn[c]}return Yye(n,0)}function Lee(n,a){return P3e(a)!==0?vft(n,a):Sft(n,a)}function vft(n,a){let c=Mve(n,_n);c=X4e(a,oA(a),c);const d=eS(sf.IntrinsicAttributes,a);return Kt(d)||(c=a9(d,c)),c}function bft(n,a){if(n.compositeSignatures){const d=[];for(const _ of n.compositeSignatures){const y=ps(_);if(Nt(y))return y;const x=Ke(y,a);if(!x)return;d.push(x)}return ba(d)}const c=ps(n);return Nt(c)?c:Ke(c,a)}function Eft(n){if(Ex(n.tagName)){const c=i3e(n),d=Hee(n,c);return qT(d)}const a=nc(n.tagName);if(a.flags&128){const c=r3e(a,n);if(!c)return _t;const d=Hee(n,c);return qT(d)}return a}function X4e(n,a,c){const d=Vft(a);if(d){const _=Eft(n),y=s3e(d,lr(n),_,c);if(y)return y}return c}function Sft(n,a){const c=oA(a),d=Uft(c);let _=d===void 0?Mve(n,_n):d===""?ps(n):bft(n,d);if(!_)return d&&Le(a.attributes.properties)&&qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(d)),_n;if(_=X4e(a,c,_),Nt(_))return _;{let y=_;const x=eS(sf.IntrinsicClassAttributes,a);if(!Kt(x)){const z=Lr(x.symbol),H=ps(n);let re;if(z){const be=Fb([H],z,Bh(z),lr(a));re=so(x,Lp(z,be))}else re=x;y=a9(re,y)}const k=eS(sf.IntrinsicAttributes,a);return Kt(k)||(y=a9(k,y)),y}}function Tft(n){return pd(V,"noImplicitAny")?id(n,(a,c)=>a===c||!a?a:KOe(a.typeParameters,c.typeParameters)?xft(a,c):void 0):void 0}function Aft(n,a,c){if(!n||!a)return n||a;const d=ti([dr(n),so(dr(a),c)]);return ZT(n,d)}function Ift(n,a,c){const d=Yp(n),_=Yp(a),y=d>=_?n:a,x=y===n?a:n,k=y===n?d:_,z=Uh(n)||Uh(a),H=z&&!Uh(y),re=new Array(k+(H?1:0));for(let be=0;be=rh(y)&&be>=rh(x),cn=be>=d?void 0:i2(n,be),ar=be>=_?void 0:i2(a,be),On=cn===ar?cn:cn?ar?void 0:cn:ar,ln=Xa(1|(an&&!Dt?16777216:0),On||`arg${be}`);ln.links.type=Dt?Vu(gt):gt,re[be]=ln}if(H){const be=Xa(1,"args");be.links.type=Vu(v_(x,k)),x===a&&(be.links.type=so(be.links.type,c)),re[k]=be}return re}function xft(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=Lp(a.typeParameters,n.typeParameters));const _=n.declaration,y=Ift(n,a,d),x=Aft(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=Ag(_,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=2097152,z.compositeSignatures=So(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(z.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Y1(n.mapper,d):d),z}function Zye(n,a){const c=Yo(n,0),d=nr(c,_=>!Rft(_,a));return d.length===1?d[0]:Tft(d)}function Rft(n,a){let c=0;for(;cYM(ge)||Kd(ge)&&!ge.nameType&&!!C8(ge.target||ge));let be=!1;for(let ge=0;ge<_;ge++){const Je=d[ge];if(Je.kind===230){se<2&&Nc(Je,V.downlevelIteration?1536:1024);const gt=mo(Je.expression,a,c);if(gv(gt))y.push(gt),x.push(8);else if(k){const Dt=uE(gt,Tt)||Zve(65,gt,Oe,void 0,!1)||_n;y.push(Dt),x.push(4)}else y.push(vv(33,gt,Oe,Je.expression)),x.push(4)}else if(De&&Je.kind===232)be=!0,y.push(_e),x.push(2);else{const gt=s2(Je,a,c);if(y.push(cp(gt,!0,be)),x.push(be?2:1),re&&a&&a&2&&!(a&4)&&Uf(Je)){const Dt=Z1(n);N.assert(Dt),Sye(Dt,Je,gt)}}}return j8(),k?Vh(y,x):$4e(c||z||re?Vh(y,x,z&&!(H&&Um(H,fye))):Vu(y.length?ti(eo(y,(ge,Je)=>x[Je]&8?Bb(ge,Tt)||j:ge),2):Y?Ci:Lt,z))}function $4e(n){if(!(Or(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=v8e(n),a.objectFlags|=147456),a}function Pft(n){switch(n.kind){case 167:return Mft(n);case 80:return lg(n.escapedText);case 9:case 11:return lg(n.text);default:return!1}}function Mft(n){return xu(xg(n),296)}function xg(n){const a=ei(n.expression);if(!a.resolvedType){if((bp(n.parent.parent)||ui(n.parent.parent)||_d(n.parent.parent))&&mr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=_t;if(a.resolvedType=mo(n.expression),Jo(n.parent)&&!fc(n.parent)&&Zc(n.parent.parent)){const c=_h(n.parent.parent),d=jye(c);d&&(ei(d).flags|=4096,ei(n).flags|=32768,ei(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!xu(a.resolvedType,402665900)&&!Ea(a.resolvedType,Dn))&&qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function Lft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return lg(n.escapedName)||c&&sd(c)&&Pft(c.name)}function Q4e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return tk(n)||c&&sd(c)&&Za(c.name)&&xu(xg(c.name),4096)}function tve(n,a,c,d){const _=[];for(let x=a;x0&&(k=J1(k,zn(),n.symbol,Dt,re),x=[],y=ca(),cn=!1,ar=!1,On=!1);const tr=h_(mo(Fn.expression,a&2));if(j9(tr)){const Ro=Xge(tr,re);if(_&&e3e(Ro,_,Fn),ln=x.length,Kt(k))continue;k=J1(k,Ro,n.symbol,Dt,re)}else qe(Fn,f.Spread_types_may_only_be_created_from_object_types),k=_t;continue}else N.assert(Fn.kind===177||Fn.kind===178),Sx(Fn);qn&&!(qn.flags&8576)?Ea(qn,Dn)&&(Ea(qn,Tt)?ar=!0:Ea(qn,Ai)?On=!0:cn=!0,d&&(an=!0)):y.set(er.escapedName,er),x.push(er)}if(j8(),H){const Fn=Gn(z.pattern.parent,qn=>qn.kind===260||qn.kind===226||qn.kind===169);if(Gn(n,qn=>qn===Fn||qn.kind===305).kind!==305)for(const qn of gs(z))!y.get(qn.escapedName)&&!va(k,qn.escapedName)&&(qn.flags&16777216||qe(qn.valueDeclaration||((c=ii(qn,fh))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(qn.escapedName,qn),x.push(qn))}if(Kt(k))return _t;if(k!==La)return x.length>0&&(k=J1(k,zn(),n.symbol,Dt,re),x=[],y=ca(),cn=!1,ar=!1),pl(k,Fn=>Fn===La?zn():Fn);return zn();function zn(){const Fn=[];cn&&Fn.push(tve(n,ln,x,ke)),ar&&Fn.push(tve(n,ln,x,Tt)),On&&Fn.push(tve(n,ln,x,Ai));const er=Ls(n.symbol,y,et,et,Fn);return er.objectFlags|=Dt|128|131072,gt&&(er.objectFlags|=4096),an&&(er.objectFlags|=512),d&&(er.pattern=n),er}}function j9(n){const a=J6e(pl(n,py));return!!(a.flags&126615553||a.flags&3145728&&Zn(a.types,j9))}function wft(n){ove(n)}function Oft(n,a){return Sx(n),H9(n)||j}function Wft(n){ove(n.openingElement),Ex(n.closingElement.tagName)?wee(n.closingElement):mo(n.closingElement.tagName),kee(n)}function Fft(n,a){return Sx(n),H9(n)||j}function zft(n){ove(n.openingFragment);const a=jn(n);return w3(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&qe(n,V.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),kee(n),H9(n)||j}function rve(n){return n.includes("-")}function Ex(n){return Ve(n)&&RR(n.escapedText)||t_(n)}function Z4e(n,a){return n.initializer?s2(n.initializer,a):Bn}function Bft(n,a=0){const c=n.attributes,d=Yd(c,0),_=Y?ca():void 0;let y=ca(),x=_l,k=!1,z,H=!1,re=2048;const be=U9(oA(n));for(const gt of c.properties){const Dt=gt.symbol;if(F_(gt)){const an=Z4e(gt,a);re|=Or(an)&458752;const cn=Xa(4|Dt.flags,Dt.escapedName);if(cn.declarations=Dt.declarations,cn.parent=Dt.parent,Dt.valueDeclaration&&(cn.valueDeclaration=Dt.valueDeclaration),cn.links.type=an,cn.links.target=Dt,y.set(cn.escapedName,cn),_?.set(cn.escapedName,cn),aP(gt.name)===be&&(H=!0),d){const ar=va(d,Dt.escapedName);ar&&ar.declarations&&hb(ar)&&Ve(gt.name)&&sv(gt.name,ar.declarations,gt.name.escapedText)}if(d&&a&2&&!(a&4)&&Uf(gt)){const ar=Z1(c);N.assert(ar);const On=gt.initializer.expression;Sye(ar,On,an)}}else{N.assert(gt.kind===293),y.size>0&&(x=J1(x,Je(),c.symbol,re,!1),y=ca());const an=h_(mo(gt.expression,a&2));Nt(an)&&(k=!0),j9(an)?(x=J1(x,an,c.symbol,re,!1),_&&e3e(an,_,gt)):(qe(gt.expression,f.Spread_types_may_only_be_created_from_object_types),z=z?ba([z,an]):an)}}k||y.size>0&&(x=J1(x,Je(),c.symbol,re,!1));const ge=n.parent.kind===284?n.parent:void 0;if(ge&&ge.openingElement===n&&IR(ge.children).length>0){const gt=kee(ge,a);if(!k&&be&&be!==""){H&&qe(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(be));const Dt=bE(n.attributes,void 0),an=Dt&&vE(Dt,be),cn=Xa(4,be);cn.links.type=gt.length===1?gt[0]:an&&Um(an,YM)?Vh(gt):Vu(ti(gt)),cn.valueDeclaration=w.createPropertySignature(void 0,Vi(be),void 0,void 0),qa(cn.valueDeclaration,c),cn.valueDeclaration.symbol=cn;const ar=ca();ar.set(be,cn),x=J1(x,Ls(c.symbol,ar,et,et,et),c.symbol,re,!1)}}if(k)return j;if(z&&x!==_l)return ba([z,x]);return z||(x===_l?Je():x);function Je(){re|=Ee;const gt=Ls(c.symbol,y,et,et,et);return gt.objectFlags|=re|128|131072,gt}}function kee(n,a){const c=[];for(const d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(s2(d,a))}return c}function e3e(n,a,c){for(const d of gs(n))if(!(d.flags&16777216)){const _=a.get(d.escapedName);if(_){const y=qe(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(_.escapedName));wa(y,kr(c,f.This_spread_always_overwrites_this_property))}}}function Gft(n,a){return Bft(n.parent,a)}function eS(n,a){const c=oA(a),d=c&&Np(c),_=d&&Jd(d,n,788968);return _?el(_):_t}function wee(n){const a=ei(n);if(!a.resolvedSymbol){const c=eS(sf.IntrinsicElements,n);if(Kt(c))return pe&&qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(sf.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Ve(n.tagName)&&!t_(n.tagName))return N.fail();const d=t_(n.tagName)?KA(n.tagName):n.tagName.escapedText,_=va(c,d);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;const y=DFe(c,Xd(Vi(d)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):xt(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(qe(n,f.Property_0_does_not_exist_on_type_1,kU(n.tagName),"JSX."+sf.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function ive(n){const a=n&&jn(n),c=a&&ei(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const d=W3(O3(V,a),V);if(!d)return;const y=fd(V)===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,x=V.importHelpers?1:0,k=a?.imports[x];k&&N.assert($s(k)&&k.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const z=K_(k||n,d,y,n),H=z&&z!==ft?rs(jl(z)):void 0;return c&&(c.jsxImplicitImportContainer=H||!1),H}function oA(n){const a=n&&ei(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=ive(n);if(!d||d===ft){const _=q0(n);d=bl(n,_,1920,void 0,_,!1)}if(d){const _=jl(Jd(Np(jl(d)),sf.JSX,1920));if(_&&_!==ft)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}const c=jl(HM(sf.JSX,1920,void 0));if(c!==ft)return c}function t3e(n,a){const c=a&&Jd(a.exports,n,788968),d=c&&el(c),_=d&&gs(d);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function Vft(n){return n&&Jd(n.exports,sf.LibraryManagedAttributes,788968)}function jft(n){return n&&Jd(n.exports,sf.ElementType,788968)}function Uft(n){return t3e(sf.ElementAttributesPropertyNameContainer,n)}function U9(n){return t3e(sf.ElementChildrenAttributeNameContainer,n)}function n3e(n,a){if(n.flags&4)return[Et];if(n.flags&128){const _=r3e(n,a);return _?[Hee(a,_)]:(qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+sf.IntrinsicElements),et)}const c=Ld(n);let d=Yo(c,1);return d.length===0&&(d=Yo(c,0)),d.length===0&&c.flags&1048576&&(d=tge(Ot(c.types,_=>n3e(_,a)))),d}function r3e(n,a){const c=eS(sf.IntrinsicElements,a);if(!Kt(c)){const d=n.value,_=va(c,hl(d));if(_)return dr(_);const y=uE(c,ke);return y||void 0}return j}function Hft(n,a,c){if(n===1){const _=a3e(c);_&&Hf(a,_,qd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){const _=o3e(c);_&&Hf(a,_,qd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{const _=a3e(c),y=o3e(c);if(!_||!y)return;const x=ti([_,y]);Hf(a,x,qd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){const _=pc(c.tagName);return jo(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function i3e(n){var a;N.assert(Ex(n.tagName));const c=ei(n);if(!c.resolvedJsxElementAttributesType){const d=wee(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=dr(d)||_t;if(c.jsxFlags&2){const _=t_(n.tagName)?KA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=_x(eS(sf.IntrinsicElements,n),_))==null?void 0:a.type)||_t}else return c.resolvedJsxElementAttributesType=_t}return c.resolvedJsxElementAttributesType}function o3e(n){const a=eS(sf.ElementClass,n);if(!Kt(a))return a}function H9(n){return eS(sf.Element,n)}function a3e(n){const a=H9(n);if(a)return ti([a,me])}function qft(n){const a=oA(n);if(!a)return;const c=jft(a);if(!c)return;const d=s3e(c,lr(n));if(!(!d||Kt(d)))return d}function s3e(n,a,...c){const d=el(n);if(n.flags&524288){const _=Xi(n).typeParameters;if(Le(_)>=c.length){const y=Fb(c,_,c.length,a);return Le(y)===0?d:xN(n,y)}}if(Le(d.typeParameters)>=c.length){const _=Fb(c,d.typeParameters,c.length,a);return fv(d,_)}}function Jft(n){const a=eS(sf.IntrinsicElements,n);return a?gs(a):et}function Kft(n){(V.jsx||0)===0&&qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),H9(n)===void 0&&pe&&qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function ove(n){const a=cd(n);if(a&&Gvt(n),Kft(n),!ive(n)){const c=ts&&V.jsx===2?f.Cannot_find_name_0:void 0,d=q0(n),_=a?n.tagName:n;let y;if(mI(n)&&d==="null"||(y=bl(_,d,111551,c,d,!0)),y&&(y.isReferenced=-1,It&&y.flags&2097152&&!Ff(y)&&Tb(y)),mI(n)){const x=jn(n),k=ZI(x);k&&bl(_,k,111551,c,k,!0)}}if(a){const c=n,d=ON(c);Jee(d,n);const _=qft(c);if(_!==void 0){const y=c.tagName,x=Ex(y)?Xd(kU(y)):mo(y);Hf(x,_,qd,y,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const k=pc(y);return jo(void 0,f._0_cannot_be_used_as_a_JSX_component,k)})}else Hft(P3e(c),ps(d),c)}}function ave(n,a,c){if(n.flags&524288){if(cE(n,a)||_x(n,a)||v8(a)&&Ig(n,ke)||c&&rve(a))return!0}else if(n.flags&3145728&&q9(n)){for(const d of n.types)if(ave(d,a,c))return!0}return!1}function q9(n){return!!(n.flags&524288&&!(Or(n)&512)||n.flags&67108864||n.flags&1048576&&bt(n.types,q9)||n.flags&2097152&&Zn(n.types,q9))}function Xft(n,a){if(jvt(n),n.expression){const c=mo(n.expression,a);return n.dotDotDotToken&&c!==j&&!qf(c)&&qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return _t}function sve(n){return n.valueDeclaration?oS(n.valueDeclaration):0}function lve(n){if(n.flags&8192||xl(n)&4)return!0;if(lr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&mr(a)&&Bl(a)===3}}function cve(n,a,c,d,_,y=!0){const x=y?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return l3e(n,a,c,d,_,x)}function l3e(n,a,c,d,_,y){var x;const k=Df(_,c);if(a){if(se<2&&c3e(_))return y&&qe(y,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(k&64)return y&&qe(y,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,vi(_),Un(bx(_))),!1;if(!(k&256)&&((x=_.declarations)!=null&&x.some(bre)))return y&&qe(y,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,vi(_)),!1}if(k&64&&c3e(_)&&(PL(n)||yie(n)||am(n.parent)&&J4(n.parent.parent))){const H=zg(Cd(_));if(H&&Byt(n))return y&&qe(y,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,vi(_),em(H.name)),!1}if(!(k&6))return!0;if(k&2){const H=zg(Cd(_));return dbe(n,H)?!0:(y&&qe(y,f.Property_0_is_private_and_only_accessible_within_class_1,vi(_),Un(bx(_))),!1)}if(a)return!0;let z=xFe(n,H=>{const re=el(Ir(H));return W6e(re,_,c)});return!z&&(z=Yft(n),z=z&&W6e(z,_,c),k&256||!z)?(y&&qe(y,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,vi(_),Un(bx(_)||d)),!1):k&256?!0:(d.flags&262144&&(d=d.isThisType?Md(d):Gu(d)),!d||!bN(d,z)?(y&&qe(y,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,vi(_),Un(z),Un(d)),!1):!0)}function Yft(n){const a=$ft(n);let c=a?.type&&bi(a.type);if(c&&c.flags&262144&&(c=Md(c)),c&&Or(c)&7)return dv(c)}function $ft(n){const a=Fd(n,!1,!1);return a&&ea(a)?HE(a):void 0}function c3e(n){return!!R9(n,a=>!(a.flags&8192))}function kN(n){return eh(mo(n),n)}function J9(n){return _m(n,50331648)}function uve(n){return J9(n)?yy(n):n}function Qft(n,a){const c=Gl(n)?mp(n):void 0;if(n.kind===106){qe(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Ve(n)&&c==="undefined"){qe(n,f.The_value_0_cannot_be_used_here,"undefined");return}qe(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else qe(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Zft(n,a){qe(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 u3e(n,a,c){if(Y&&n.flags&2){if(Gl(a)){const _=mp(a);if(_.length<100)return qe(a,f._0_is_of_type_unknown,_),_t}return qe(a,f.Object_is_of_type_unknown),_t}const d=ZM(n,50331648);if(d&50331648){c(a,d);const _=yy(n);return _.flags&229376?_t:_}return n}function eh(n,a){return u3e(n,a,Qft)}function d3e(n,a){const c=eh(n,a);if(c.flags&16384){if(Gl(a)){const d=mp(a);if(Ve(a)&&d==="undefined")return qe(a,f.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return qe(a,f._0_is_possibly_undefined,d),c}qe(a,f.Object_is_possibly_undefined)}return c}function Oee(n,a,c){return n.flags&64?emt(n,a):pve(n,n.expression,kN(n.expression),n.name,a,c)}function emt(n,a){const c=mo(n.expression),d=O8(c,n.expression);return dee(pve(n,n.expression,eh(d,n.expression),n.name,a),n,d!==c)}function p3e(n,a){const c=$4(n)&&JE(n.left)?eh(B9(n.left),n.left):kN(n.left);return pve(n,n.left,c,n.right,a)}function f3e(n){for(;n.parent.kind===217;)n=n.parent;return I_(n.parent)&&n.parent.expression===n}function Wee(n,a){for(let c=H4(a);c;c=su(c)){const{symbol:d}=c,_=ek(d,n),y=d.members&&d.members.get(_)||d.exports&&d.exports.get(_);if(y)return y}}function tmt(n){if(!su(n))return En(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!XW(n.parent)){if(!tg(n))return En(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);const a=mr(n.parent)&&n.parent.operatorToken.kind===103;if(!Fee(n)&&!a)return En(n,f.Cannot_find_name_0,Sr(n))}return!1}function nmt(n){tmt(n);const a=Fee(n);return a&&X9(a,void 0,!1),j}function Fee(n){if(!tg(n))return;const a=ei(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=Wee(n.escapedText,n)),a.resolvedSymbol}function dve(n,a){return va(n,a.escapedName)}function rmt(n,a,c){let d;const _=gs(n);_&&Xe(_,x=>{const k=x.valueDeclaration;if(k&&sd(k)&&Ji(k.name)&&k.name.escapedText===a.escapedText)return d=x,!0});const y=Wm(a);if(d){const x=N.checkDefined(d.valueDeclaration),k=N.checkDefined(su(x));if(c?.valueDeclaration){const z=c.valueDeclaration,H=su(z);if(N.assert(!!H),Gn(H,re=>k===re)){const re=qe(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,y,Un(n));return wa(re,kr(z,f.The_shadowing_declaration_of_0_is_defined_here,y),kr(x,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,Wm(k.name||WF)),!0}return!1}function m3e(n,a){return(gN(a)||PL(n)&&OM(a))&&Fd(n,!0,!1)===WM(a)}function pve(n,a,c,d,_,y){const x=ei(a).resolvedSymbol,k=FA(n),z=Ld(k!==0||f3e(n)?Xp(c):c),H=Nt(z)||z===yo;let re;if(Ji(d)){se<99&&(k!==0&&Nc(n,1048576),k!==1&&Nc(n,524288));const ge=Wee(d.escapedText,d);if(k&&ge&&ge.valueDeclaration&&ql(ge.valueDeclaration)&&En(d,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Sr(d)),H){if(ge)return Kt(z)?_t:z;if(H4(d)===void 0)return En(d,f.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(re=ge&&dve(c,ge),re===void 0){if(rmt(c,d,ge))return _t;const Je=H4(d);Je&&bL(jn(Je),V.checkJs)&&En(d,f.Private_field_0_must_be_declared_in_an_enclosing_class,Sr(d))}else re.flags&65536&&!(re.flags&32768)&&k!==1&&qe(n,f.Private_accessor_was_defined_without_a_getter)}else{if(H)return Ve(a)&&x&&Dee(x,n),Kt(z)?_t:z;re=va(z,d.escapedText,Yee(z),n.kind===166)}Ve(a)&&x&&(om(V)||!(re&&(r6(re)||re.flags&8&&n.parent.kind===306))||ZE(V)&&L4e(n))&&Dee(x,n);let be;if(re){const ge=lbe(re,d);if(hb(ge)&&Uge(n,ge)&&ge.declarations&&sv(d,ge.declarations,d.escapedText),imt(re,n,d),X9(re,n,E3e(a,x)),ei(n).resolvedSymbol=re,cve(n,a.kind===108,jA(n),z,re),uWe(n,re,k))return qe(d,f.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(d)),_t;be=m3e(n,re)?ot:y||R3(n)?j1(re):dr(re)}else{const ge=!Ji(d)&&(k===0||!XT(c)||iP(c))?_x(z,d.escapedText):void 0;if(!(ge&&ge.type)){const Je=fve(n,c.symbol,!0);return!Je&&R8(c)?j:c.symbol===at?(at.exports.has(d.escapedText)&&at.exports.get(d.escapedText).flags&418?qe(d,f.Property_0_does_not_exist_on_type_1,Vi(d.escapedText),Un(c)):pe&&qe(d,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Un(c)),j):(d.escapedText&&!ST(n)&&g3e(d,iP(c)?z:c,Je),_t)}ge.isReadonly&&(rg(n)||Wj(n))&&qe(n,f.Index_signature_in_type_0_only_permits_reading,Un(z)),be=V.noUncheckedIndexedAccess&&!rg(n)?ti([ge.type,L]):ge.type,V.noPropertyAccessFromIndexSignature&&Wr(n)&&qe(d,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Vi(d.escapedText)),ge.declaration&&av(ge.declaration)&&sv(d,[ge.declaration],d.escapedText)}return _3e(n,re,be,d,_)}function fve(n,a,c){var d;const _=jn(n);if(_&&V.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){const y=Xe(a?.declarations,jn),x=!a?.valueDeclaration||!ui(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||Oy(!1,a.valueDeclaration);return!(_!==y&&y&&Ph(y))&&!(c&&a&&a.flags&32&&x)&&!(n&&c&&Wr(n)&&n.expression.kind===110&&x)}return!1}function _3e(n,a,c,d,_){const y=FA(n);if(y===1)return Jb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!dte(a.declarations))return c;if(c===ot)return yN(n,a);c=Vye(c,n,_);let x=!1;if(Y&&Ne&&ws(n)&&n.expression.kind===110){const z=a&&a.valueDeclaration;if(z&&fFe(z)&&!aa(z)){const H=V8(n);H.kind===176&&H.parent===z.parent&&!(z.flags&33554432)&&(x=!0)}}else Y&&a&&a.valueDeclaration&&Wr(a.valueDeclaration)&&GL(a.valueDeclaration)&&V8(n)===V8(a.valueDeclaration)&&(x=!0);const k=Kb(n,c,x?qb(c):c);return x&&!JM(c)&&JM(k)?(qe(d,f.Property_0_is_used_before_being_assigned,vi(a)),c):y?gy(k):k}function imt(n,a,c){const{valueDeclaration:d}=n;if(!d||jn(a).isDeclarationFile)return;let _;const y=Sr(c);h3e(a)&&!qlt(d)&&!(ws(a)&&ws(a.expression))&&!ty(d,c)&&!(ql(d)&&bte(d)&256)&&(he||!omt(n))?_=qe(c,f.Property_0_is_used_before_its_initialization,y):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!ty(d,c)&&(_=qe(c,f.Class_0_used_before_its_declaration,y)),_&&wa(_,kr(d,f._0_is_declared_here,y))}function h3e(n){return!!Gn(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 Xo(a.parent)&&Rl(a.parent.parent)?!0:"quit";default:return tg(a)?!1:"quit"}})}function omt(n){if(!(n.parent.flags&32))return!1;let a=dr(n.parent);for(;;){if(a=a.symbol&&amt(a),!a)return!1;const c=va(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function amt(n){const a=Pp(n);if(a.length!==0)return ba(a)}function g3e(n,a,c){let d,_;if(!Ji(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!va(x,n.escapedText)&&!_x(x,n.escapedText)){d=jo(d,f.Property_0_does_not_exist_on_type_1,Rs(n),Un(x));break}}if(y3e(n.escapedText,a)){const x=Rs(n),k=Un(a);d=jo(d,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,k,k+"."+x)}else{const x=$8(a);if(x&&va(x,n.escapedText))d=jo(d,f.Property_0_does_not_exist_on_type_1,Rs(n),Un(a)),_=kr(n,f.Did_you_forget_to_use_await);else{const k=Rs(n),z=Un(a),H=cmt(k,a);if(H!==void 0)d=jo(d,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,k,z,H);else{const re=mve(n,a);if(re!==void 0){const be=Sl(re),ge=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;d=jo(d,ge,k,z,be),_=re.valueDeclaration&&kr(re.valueDeclaration,f._0_is_declared_here,be)}else{const be=smt(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;d=jo(dge(d,a),be,k,z)}}}}const y=wg(jn(n),n,d);_&&wa(y,_),s_(!c||d.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function smt(n){return V.lib&&!V.lib.includes("dom")&&vpt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Vi(a.symbol.escapedName)))&&hy(n)}function y3e(n,a){const c=a.symbol&&va(dr(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&aa(c.valueDeclaration)}function lmt(n){const a=Wm(n),d=tW().get(a);return d&&ZB(d.keys())}function cmt(n,a){const c=Ld(a).symbol;if(!c)return;const d=Sl(c),y=tW().get(d);if(y){for(const[x,k]of y)if(Nr(k,n))return x}}function v3e(n,a){return K9(n,gs(a),106500)}function mve(n,a){let c=gs(a);if(typeof n!="string"){const d=n.parent;Wr(d)&&(c=nr(c,_=>S3e(d,a,_))),n=Sr(n)}return K9(n,c,111551)}function b3e(n,a){const c=Po(n)?n:Sr(n),d=gs(a);return(c==="for"?An(d,y=>Sl(y)==="htmlFor"):c==="class"?An(d,y=>Sl(y)==="className"):void 0)??K9(c,d,111551)}function _ve(n,a){const c=mve(n,a);return c&&Sl(c)}function hve(n,a,c){return N.assert(a!==void 0,"outername should always be defined"),Up(n,a,c,void 0,a,!1,!1,!0,(_,y,x)=>{N.assertEqual(a,y,"name should equal outerName");const k=Jd(_,y,x);if(k)return k;let z;return _===Se?z=Hi(["string","number","boolean","object","bigint","symbol"],re=>_.has(re.charAt(0).toUpperCase()+re.slice(1))?Xa(524288,re):void 0).concat(zo(_.values())):z=zo(_.values()),K9(Vi(y),z,x)})}function umt(n,a,c){const d=hve(n,a,c);return d&&Sl(d)}function zee(n,a){return a.exports&&K9(Sr(n),LT(a),2623475)}function dmt(n,a){const c=zee(n,a);return c&&Sl(c)}function pmt(n,a,c){function d(x){const k=cE(n,x);if(k){const z=sA(dr(k));return!!z&&rh(z)>=1&&Ea(c,v_(z,0))}return!1}const _=rg(a)?"set":"get";if(!d(_))return;let y=ck(a.expression);return y===void 0?y=_:y+="."+_,y}function fmt(n,a){const c=a.types.filter(d=>!!(d.flags&128));return YN(n.value,c,d=>d.value)}function K9(n,a,c){return YN(n,a,d);function d(_){const y=Sl(_);if(!uo(y,'"')){if(_.flags&c)return y;if(_.flags&2097152){const x=CT(_);if(x&&x.flags&c)return y}}}}function X9(n,a,c){const d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;const _=hp(d,2),y=n.valueDeclaration&&sd(n.valueDeclaration)&&Ji(n.valueDeclaration.name);if(!(!_&&!y)&&!(a&&R3(a)&&!(n.flags&65536))){if(c){const x=Gn(a,Bs);if(x&&x.symbol===n)return}(xl(n)&1?Xi(n).target:n).isReferenced=-1}}function E3e(n,a){return n.kind===110||!!a&&Gl(n)&&a===jm(Vp(n))}function mmt(n,a){switch(n.kind){case 211:return gve(n,n.expression.kind===108,a,Xp(mo(n.expression)));case 166:return gve(n,!1,a,Xp(mo(n.left)));case 205:return gve(n,!1,a,bi(n))}}function S3e(n,a,c){return yve(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function gve(n,a,c,d){if(Nt(d))return!0;const _=va(d,c);return!!_&&yve(n,a,!1,d,_)}function yve(n,a,c,d,_){if(Nt(d))return!0;if(_.valueDeclaration&&ld(_.valueDeclaration)){const y=su(_.valueDeclaration);return!qu(n)&&!!Gn(n,x=>x===y)}return l3e(n,a,c,d,_)}function _mt(n){const a=n.initializer;if(a.kind===261){const c=a.declarations[0];if(c&&!ta(c.name))return Ir(c)}else if(a.kind===80)return jm(a)}function hmt(n){return yd(n).length===1&&!!Ig(n,Tt)}function gmt(n){const a=hs(n);if(a.kind===80){const c=jm(a);if(c.flags&3){let d=n,_=n.parent;for(;_;){if(_.kind===249&&d===_.statement&&_mt(_)===c&&hmt(Ru(_.expression)))return!0;d=_,_=_.parent}}}return!1}function ymt(n,a){return n.flags&64?vmt(n,a):T3e(n,kN(n.expression),a)}function vmt(n,a){const c=mo(n.expression),d=O8(c,n.expression);return dee(T3e(n,eh(d,n.expression),a),n,d!==c)}function T3e(n,a,c){const d=FA(n)!==0||f3e(n)?Xp(a):a,_=n.argumentExpression,y=mo(_);if(Kt(d)||d===yo)return d;if(Yee(d)&&!ls(_))return qe(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;const x=gmt(_)?Tt:y,k=rg(n)?4|(XT(d)&&!iP(d)?2:0):32,z=Bb(d,x,k,n)||_t;return PWe(_3e(n,ei(n).resolvedSymbol,z,_,c),n)}function A3e(n){return I_(n)||r1(n)||cd(n)}function aA(n){return A3e(n)&&Xe(n.typeArguments,Da),n.kind===215?mo(n.template):cd(n)?mo(n.attributes):mr(n)?mo(n.left):I_(n)&&Xe(n.arguments,a=>{mo(a)}),Et}function th(n){return aA(n),un}function bmt(n,a,c){let d,_,y=0,x,k=-1,z;N.assert(!a.length);for(const H of n){const re=H.declaration&&Ir(H.declaration),be=H.declaration&&H.declaration.parent;!_||re===_?d&&be===d?x=x+1:(d=be,x=y):(x=y=a.length,d=be),_=re,wq(H)?(k++,z=k,y++):z=x,a.splice(z,0,c?mlt(H,c):H)}}function Bee(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Gee(n){return Br(n,Bee)}function I3e(n){return!!(n.flags&16384)}function Emt(n){return!!(n.flags&49155)}function Vee(n,a,c,d=!1){let _,y=!1,x=Yp(c),k=rh(c);if(n.kind===215)if(_=a.length,n.template.kind===228){const z=Ya(n.template.templateSpans);y=zl(z.literal)||!!z.literal.isUnterminated}else{const z=n.template;N.assert(z.kind===15),y=!!z.isUnterminated}else if(n.kind===170)_=L3e(n,c);else if(n.kind===226)_=1;else if(cd(n)){if(y=n.attributes.end===n.end,y)return!0;_=k===0?a.length:1,x=a.length===0?x:1,k=Math.min(k,1)}else if(n.arguments){_=d?a.length+1:a.length,y=n.arguments.end===n.end;const z=Gee(a);if(z>=0)return z>=rh(c)&&(Uh(c)||zx)return!1;if(y||_>=k)return!0;for(let z=_;z=d&&a.length<=c}function x3e(n,a){let c;return!!(n.target&&(c=tS(n.target,a))&&NN(c))}function sA(n){return H8(n,0,!1)}function R3e(n){return H8(n,0,!1)||H8(n,1,!1)}function H8(n,a,c){if(n.flags&524288){const d=__(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function D3e(n,a,c,d){const _=z8(n.typeParameters,n,0,d),y=q8(a),x=c&&(y&&y.flags&262144?c.nonFixingMapper:c.mapper),k=x?PN(a,x):a;return vye(k,n,(z,H)=>{vy(_.inferences,z,H)}),c||bye(a,n,(z,H)=>{vy(_.inferences,z,H,128)}),T8(n,Mye(_),lr(a.declaration))}function Smt(n,a,c,d){const _=Lee(a,n),y=WN(n.attributes,_,d,c);return vy(d.inferences,y,_),Mye(d)}function N3e(n){if(!n)return ir;const a=mo(n);return Zie(n)?a:cC(n.parent)?yy(a):qu(n.parent)?uee(a):a}function bve(n,a,c,d,_){if(cd(n))return Smt(n,a,d,_);if(n.kind!==170&&n.kind!==226){const z=Zn(a.typeParameters,re=>!!HT(re)),H=Yd(n,z?8:0);if(H){const re=ps(a);if(gE(re)){const be=Z1(n);if(!(!z&&Yd(n,8)!==H)){const Dt=Aye(wdt(be,1)),an=so(H,Dt),cn=sA(an),ar=cn&&cn.typeParameters?qT(yge(cn,cn.typeParameters)):an;vy(_.inferences,ar,re,128)}const Je=z8(a.typeParameters,a,_.flags),gt=so(H,be&&be.returnMapper);vy(Je.inferences,gt,re),_.returnMapper=bt(Je.inferences,FN)?Aye(zdt(Je)):void 0}}}const y=J8(a),x=y?Math.min(Yp(a)-1,c.length):c.length;if(y&&y.flags&262144){const z=An(_.inferences,H=>H.typeParameter===y);z&&(z.impliedArity=Br(c,Bee,x)<0?c.length-x:void 0)}const k=dE(a);if(k&&gE(k)){const z=M3e(n);vy(_.inferences,N3e(z),k)}for(let z=0;z=c-1){const re=n[c-1];if(Bee(re)){const be=re.kind===237?re.type:WN(re.expression,d,_,y);return gv(be)?C3e(be):Vu(vv(33,be,Oe,re.kind===230?re.expression:re),x)}}const k=[],z=[],H=[];for(let re=a;rejo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,be=d||f.Type_0_does_not_satisfy_the_constraint_1;k||(k=Lp(y,x));const ge=x[z];if(!nd(ge,Kp(so(H,k),ge),c?a[z]:void 0,be,re))return}}return x}function P3e(n){if(Ex(n.tagName))return 2;const a=Ld(mo(n.tagName));return Le(Yo(a,1))?0:Le(Yo(a,0))?1:2}function Tmt(n,a,c,d,_,y,x){const k=Lee(a,n),z=WN(n.attributes,k,void 0,d),H=d&4?F8(z):z;return re()&&iye(H,k,c,_?n.tagName:void 0,n.attributes,void 0,y,x);function re(){var be;if(ive(n))return!0;const ge=(W_(n)||HS(n))&&!(Ex(n.tagName)||t_(n.tagName))?mo(n.tagName):void 0;if(!ge)return!0;const Je=Yo(ge,0);if(!Le(Je))return!0;const gt=FFe(n);if(!gt)return!0;const Dt=Hs(gt,111551,!0,!1,n);if(!Dt)return!0;const an=dr(Dt),cn=Yo(an,0);if(!Le(cn))return!0;let ar=!1,On=0;for(const zn of cn){const Fn=v_(zn,0),er=Yo(Fn,0);if(Le(er))for(const qn of er){if(ar=!0,Uh(qn))return!0;const tr=Yp(qn);tr>On&&(On=tr)}}if(!ar)return!0;let ln=1/0;for(const zn of Je){const Fn=rh(zn);Fn{_.push(y.expression)}),_}if(n.kind===170)return Amt(n);if(n.kind===226)return[n.left];if(cd(n))return n.attributes.properties.length>0||W_(n)&&n.parent.children.length>0?[n.attributes]:et;const a=n.arguments||et,c=Gee(a);if(c>=0){const d=a.slice(0,c);for(let _=c;_{var H;const re=x.target.elementFlags[z],be=$9(y,re&4?Vu(k):k,!!(re&12),(H=x.target.labeledElementDeclarations)==null?void 0:H[z]);d.push(be)}):d.push(y)}return d}return a}function Amt(n){const a=n.expression,c=kve(n);if(c){const d=[];for(const _ of c.parameters){const y=dr(_);d.push($9(a,y))}return d}return N.fail()}function L3e(n,a){return V.experimentalDecorators?Imt(n,a):2}function Imt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return P_(n.parent)?3:2;case 174:case 177:case 178:return se===0||a.parameters.length<=2?2:3;case 169:return 3;default:return N.fail()}}function k3e(n){const a=jn(n),{start:c,length:d}=SS(a,Wr(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function Q9(n,a,...c){if(sa(n)){const{sourceFile:d,start:_,length:y}=k3e(n);return"message"in a?Qc(d,_,y,a,...c):vj(d,a)}else return"message"in a?kr(n,a,...c):wg(jn(n),n,a)}function xmt(n){return I_(n)?Wr(n.expression)?n.expression.name:n.expression:r1(n)?Wr(n.tag)?n.tag.name:n.tag:cd(n)?n.tagName:n}function Rmt(n){if(!sa(n)||!Ve(n.expression))return!1;const a=bl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!Ao(c)||!$E(c.parent)||!n1(c.parent.parent)||!Ve(c.parent.parent.expression))return!1;const d=Pge(!1);return d?Hm(c.parent.parent.expression,!0)===d:!1}function w3e(n,a,c,d){var _;const y=Gee(c);if(y>-1)return kr(c[y],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,z=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,re;for(const Dt of a){const an=rh(Dt),cn=Yp(Dt);anz&&(z=an),c.length_?x=Math.min(x,z):H<_&&(y=Math.max(y,H))}if(y!==-1/0&&x!==1/0){if(d){let k=jo(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x);return k=jo(k,d),IL(jn(n),c,k)}return lR(jn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,y,x)}if(d){let k=jo(void 0,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_);return k=jo(k,d),IL(jn(n),c,k)}return lR(jn(n),c,f.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,_)}function wN(n,a,c,d,_,y){const x=n.kind===215,k=n.kind===170,z=cd(n),H=n.kind===226,re=!U&&!c;let be;!k&&!H&&!TS(n)&&(be=n.typeArguments,(x||z||n.expression.kind!==108)&&Xe(be,Da));const ge=c||[];bmt(a,ge,_),N.assert(ge.length,"Revert #54442 and add a testcase with whatever triggered this");const Je=Uee(n),gt=ge.length===1&&!ge[0].typeParameters;let Dt=!k&&!gt&&bt(Je,Uf)?4:0,an,cn,ar,On;const ln=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ge.length>1&&(On=Fn(ge,Ch,gt,ln)),On||(On=Fn(ge,qd,gt,ln)),On)return On;if(On=Nmt(n,ge,Je,!!c,d),ei(n).resolvedSignature=On,re)if(!y&&H&&(y=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),an)if(an.length===1||an.length>3){const er=an[an.length-1];let qn;an.length>3&&(qn=jo(qn,f.The_last_overload_gave_the_following_error),qn=jo(qn,f.No_overload_matches_this_call)),y&&(qn=jo(qn,y));const tr=Y9(n,Je,er,qd,0,!0,()=>qn);if(tr)for(const Ro of tr)er.declaration&&an.length>3&&wa(Ro,kr(er.declaration,f.The_last_overload_is_declared_here)),zn(er,Ro),ts.add(Ro);else N.fail("No error for last overload signature")}else{const er=[];let qn=0,tr=Number.MAX_VALUE,Ro=0,Eo=0;for(const dp of an){const Qn=Y9(n,Je,dp,qd,0,!0,()=>jo(void 0,f.Overload_0_of_1_2_gave_the_following_error,Eo+1,ge.length,wh(dp)));Qn?(Qn.length<=tr&&(tr=Qn.length,Ro=Eo),qn=Math.max(qn,Qn.length),er.push(Qn)):N.fail("No error for 3 or fewer overload signatures"),Eo++}const Bo=qn>1?er[Ro]:da(er);N.assert(Bo.length>0,"No errors reported for 3 or fewer overload signatures");let _o=jo(Ot(Bo,rie),f.No_overload_matches_this_call);y&&(_o=jo(_o,y));const Cc=[...Pi(Bo,dp=>dp.relatedInformation)];let Jf;if(Zn(Bo,dp=>dp.start===Bo[0].start&&dp.length===Bo[0].length&&dp.file===Bo[0].file)){const{file:dp,start:wn,length:Qn}=Bo[0];Jf={file:dp,start:wn,length:Qn,code:_o.code,category:_o.category,messageText:_o,relatedInformation:Cc}}else Jf=wg(jn(n),xmt(n),_o,Cc);zn(an[0],Jf),ts.add(Jf)}else if(cn)ts.add(w3e(n,[cn],Je,y));else if(ar)Sve(ar,n.typeArguments,!0,y);else{const er=nr(a,qn=>vve(qn,be));er.length===0?ts.add(Dmt(n,a,be,y)):ts.add(w3e(n,er,Je,y))}return On;function zn(er,qn){var tr,Ro;const Eo=an,Bo=cn,_o=ar,Cc=((Ro=(tr=er.declaration)==null?void 0:tr.symbol)==null?void 0:Ro.declarations)||et,dp=Cc.length>1?An(Cc,wn=>Bs(wn)&&Yf(wn.body)):void 0;if(dp){const wn=fm(dp),Qn=!wn.typeParameters;Fn([wn],qd,Qn)&&wa(qn,kr(dp,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}an=Eo,cn=Bo,ar=_o}function Fn(er,qn,tr,Ro=!1){if(an=void 0,cn=void 0,ar=void 0,tr){const Eo=er[0];if(bt(be)||!Vee(n,Je,Eo,Ro))return;if(Y9(n,Je,Eo,qn,0,!1,void 0)){an=[Eo];return}return Eo}for(let Eo=0;Eo0),Sx(n),d||a.length===1||a.some(y=>!!y.typeParameters)?Mmt(n,a,c,_):Cmt(a)}function Cmt(n){const a=Hi(n,z=>z.thisParameter);let c;a.length&&(c=O3e(a,a.map(tB)));const{min:d,max:_}=Poe(n,Pmt),y=[];for(let z=0;z<_;z++){const H=Hi(n,re=>Yu(re)?ztS(re,z))))}const x=Hi(n,z=>Yu(z)?Ya(z.parameters):void 0);let k=128;if(x.length!==0){const z=Vu(ti(Hi(n,_8e),2));y.push(W3e(x,z)),k|=1}return n.some(wq)&&(k|=2),Ag(n[0].declaration,void 0,c,y,ba(n.map(ps)),void 0,d,k)}function Pmt(n){const a=n.parameters.length;return Yu(n)?a-1:a}function O3e(n,a){return W3e(n,ti(a,2))}function W3e(n,a){return ZT(Ha(n),a)}function Mmt(n,a,c,d){const _=wmt(a,tn===void 0?c.length:tn),y=a[_],{typeParameters:x}=y;if(!x)return y;const k=A3e(n)?n.typeArguments:void 0,z=k?kZ(y,Lmt(k,x,lr(n))):kmt(n,x,y,c,d);return a[_]=z,z}function Lmt(n,a,c){const d=n.map(Tx);for(;d.length>a.length;)d.pop();for(;d.length=a)return _;x>d&&(d=x,c=_)}return c}function Omt(n,a,c){if(n.expression.kind===108){const z=Jye(n.expression);if(Nt(z)){for(const H of n.arguments)mo(H);return Et}if(!Kt(z)){const H=D_(su(n));if(H){const re=Fh(z,H.typeArguments,H);return wN(n,re,a,c,0)}}return aA(n)}let d,_=mo(n.expression);if(mS(n)){const z=O8(_,n.expression);d=z===_?0:uC(n)?16:8,_=z}else d=0;if(_=u3e(_,n.expression,Zft),_===yo)return yr;const y=Ld(_);if(Kt(y))return th(n);const x=Yo(y,0),k=Yo(y,1).length;if(Z9(_,y,x.length,k))return!Kt(_)&&n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),aA(n);if(!x.length){if(k)qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Un(_));else{let z;if(n.arguments.length===1){const H=jn(n).text;Hu(H.charCodeAt(ka(H,n.expression.end,!0)-1))&&(z=kr(n.expression,f.Are_you_missing_a_semicolon))}Ave(n.expression,y,0,z)}return th(n)}return c&8&&!n.typeArguments&&x.some(Wmt)?(bWe(n,c),Er):x.some(z=>lr(z.declaration)&&!!kV(z.declaration))?(qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Un(_)),th(n)):wN(n,x,a,c,d)}function Wmt(n){return!!(n.typeParameters&&mbe(ps(n)))}function Z9(n,a,c,d){return Nt(n)||Nt(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(h_(a).flags&131072)&&Ea(n,Wt)}function Fmt(n,a,c){if(n.arguments&&se<1){const x=Gee(n.arguments);x>=0&&qe(n.arguments[x],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=kN(n.expression);if(d===yo)return yr;if(d=Ld(d),Kt(d))return th(n);if(Nt(d))return n.typeArguments&&qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),aA(n);const _=Yo(d,1);if(_.length){if(!zmt(n,_[0]))return th(n);if(F3e(_,k=>!!(k.flags&4)))return qe(n,f.Cannot_create_an_instance_of_an_abstract_class),th(n);const x=d.symbol&&zg(d.symbol);return x&&Zr(x,64)?(qe(n,f.Cannot_create_an_instance_of_an_abstract_class),th(n)):wN(n,_,a,c,0)}const y=Yo(d,0);if(y.length){const x=wN(n,y,a,c,0);return pe||(x.declaration&&!nh(x.declaration)&&ps(x)!==ir&&qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),dE(x)===ir&&qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return Ave(n.expression,d,1),th(n)}function F3e(n,a){return To(n)?bt(n,c=>F3e(c,a)):n.compositeKind===1048576?bt(n.compositeSignatures,a):a(n)}function Tve(n,a){const c=Pp(a);if(!Le(c))return!1;const d=c[0];if(d.flags&2097152){const _=d.types,y=YOe(_);let x=0;for(const k of d.types){if(!y[x]&&Or(k)&3&&(k.symbol===n||Tve(n,k)))return!0;x++}return!1}return d.symbol===n?!0:Tve(n,d)}function zmt(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,d=GA(c,6);if(!d||c.kind!==176)return!0;const _=zg(c.parent.symbol),y=el(c.parent.symbol);if(!dbe(n,_)){const x=su(n);if(x&&d&4){const k=Tx(x);if(Tve(c.parent.symbol,k))return!0}return d&2&&qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Un(y)),d&4&&qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Un(y)),!1}return!0}function z3e(n,a,c){let d;const _=c===0,y=cA(a),x=y&&Yo(y,c).length>0;if(a.flags&1048576){const z=a.types;let H=!1;for(const re of z)if(Yo(re,c).length!==0){if(H=!0,d)break}else if(d||(d=jo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Un(re)),d=jo(d,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Un(a))),H)break;H||(d=jo(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Un(a))),d||(d=jo(d,_?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,Un(a)))}else d=jo(d,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Un(a));let k=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(sa(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:z}=ei(n);z&&z.flags&32768&&(k=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:jo(d,k),relatedMessage:x?f.Did_you_forget_to_use_await:void 0}}function Ave(n,a,c,d){const{messageChain:_,relatedMessage:y}=z3e(n,a,c),x=wg(jn(n),n,_);if(y&&wa(x,kr(n,y)),sa(n.parent)){const{start:k,length:z}=k3e(n.parent);x.start=k,x.length=z}ts.add(x),B3e(a,c,d?wa(x,d):x)}function B3e(n,a,c){if(!n.symbol)return;const d=Xi(n.symbol).originatingImport;if(d&&!Bp(d)){const _=Yo(dr(Xi(n.symbol).target),a);if(!_||!_.length)return;wa(c,kr(d,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 Bmt(n,a,c){const d=mo(n.tag),_=Ld(d);if(Kt(_))return th(n);const y=Yo(_,0),x=Yo(_,1).length;if(Z9(d,_,y.length,x))return aA(n);if(!y.length){if(md(n.parent)){const k=kr(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 ts.add(k),th(n)}return Ave(n.tag,_,0),th(n)}return wN(n,y,a,c,0)}function Gmt(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 N.fail()}}function Vmt(n,a,c){const d=mo(n.expression),_=Ld(d);if(Kt(_))return th(n);const y=Yo(_,0),x=Yo(_,1).length;if(Z9(d,_,y.length,x))return aA(n);if(Hmt(n,y)&&!Gd(n.expression)){const z=pc(n.expression,!1);return qe(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,z),th(n)}const k=Gmt(n);if(!y.length){const z=z3e(n.expression,_,0),H=jo(z.messageChain,k),re=wg(jn(n.expression),n.expression,H);return z.relatedMessage&&wa(re,kr(n.expression,z.relatedMessage)),ts.add(re),B3e(_,0,re),th(n)}return wN(n,y,a,c,0,k)}function Hee(n,a){const c=oA(n),d=c&&Np(c),_=d&&Jd(d,sf.Element,788968),y=_&&At.symbolToEntityName(_,788968,n),x=w.createFunctionTypeNode(void 0,[w.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],y?w.createTypeReferenceNode(y,void 0):w.createKeywordTypeNode(133)),k=Xa(1,"props");return k.links.type=a,Ag(x,void 0,void 0,[k],_?el(_):_t,void 0,1,0)}function jmt(n,a,c){if(Ex(n.tagName)){const x=i3e(n),k=Hee(n,x);return Ub(WN(n.attributes,Lee(k,n),void 0,0),x,n.tagName,n.attributes),Le(n.typeArguments)&&(Xe(n.typeArguments,Da),ts.add(lR(jn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Le(n.typeArguments)))),k}const d=mo(n.tagName),_=Ld(d);if(Kt(_))return th(n);const y=n3e(d,n);return Z9(d,_,y.length,0)?aA(n):y.length===0?(qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,pc(n.tagName)),th(n)):wN(n,y,a,c,0)}function Umt(n,a,c){const d=mo(n.right);if(!Nt(d)){const _=Fve(d);if(_){const y=Ld(_);if(Kt(y))return th(n);const x=Yo(y,0),k=Yo(y,1);if(Z9(_,y,x.length,k.length))return aA(n);if(x.length)return wN(n,x,a,c,0)}else if(!(mte(d)||jb(d,Wt)))return qe(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),th(n)}return Et}function Hmt(n,a){return a.length&&Zn(a,c=>c.minArgumentCount===0&&!Yu(c)&&c.parameters.length1?nc(n.arguments[1]):void 0;for(let y=2;y{const x=Xp(_);ZZ(y,x)||N6e(_,y,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 e_t(n){const a=mo(n.expression),c=O8(a,n.expression);return dee(yy(c),n,c!==a)}function t_t(n){return n.flags&64?e_t(n):yy(mo(n.expression))}function J3e(n){if(GFe(n),Xe(n.typeArguments,Da),n.kind===233){const c=Wy(n.parent);c.kind===226&&c.operatorToken.kind===104&&VE(n,c.right)&&qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?mo(n.expression):JE(n.exprName)?B9(n.exprName):mo(n.exprName);return K3e(a,n)}function K3e(n,a){const c=a.typeArguments;if(n===yo||Kt(n)||!bt(c))return n;let d=!1,_;const y=k(n),x=d?_:n;return x&&ts.add(lR(jn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Un(x))),y;function k(H){let re=!1,be=!1;const ge=Je(H);return d||(d=be),re&&!be&&(_??(_=H)),ge;function Je(gt){if(gt.flags&524288){const Dt=__(gt),an=z(Dt.callSignatures),cn=z(Dt.constructSignatures);if(re||(re=Dt.callSignatures.length!==0||Dt.constructSignatures.length!==0),be||(be=an.length!==0||cn.length!==0),an!==Dt.callSignatures||cn!==Dt.constructSignatures){const ar=Ls(Xa(0,"__instantiationExpression"),Dt.members,an,cn,Dt.indexInfos);return ar.objectFlags|=8388608,ar.node=a,ar}}else if(gt.flags&58982400){const Dt=Gu(gt);if(Dt){const an=Je(Dt);if(an!==Dt)return an}}else{if(gt.flags&1048576)return pl(gt,k);if(gt.flags&2097152)return ba(eo(gt.types,Je))}return gt}}function z(H){const re=nr(H,be=>!!be.typeParameters&&vve(be,c));return eo(re,be=>{const ge=Sve(be,c,!0);return ge?T8(be,ge,lr(be.declaration)):be})}}function n_t(n){return Da(n.type),Dve(n.expression,n.type)}function Dve(n,a,c){const d=mo(n,c),_=bi(a);if(Kt(_))return _;const y=Gn(a.parent,x=>x.kind===238||x.kind===357);return Ub(d,_,y,n,f.Type_0_does_not_satisfy_the_expected_type_1),d}function r_t(n){return Zvt(n),n.keywordToken===105?Nve(n):n.keywordToken===102?i_t(n):N.assertNever(n.keywordToken)}function X3e(n){switch(n.keywordToken){case 102:return C8e();case 105:const a=Nve(n);return Kt(a)?_t:E_t(a);default:N.assertNever(n.keywordToken)}}function Nve(n){const a=gie(n);if(a)if(a.kind===176){const c=Ir(a.parent);return dr(c)}else{const c=Ir(a);return dr(c)}else return qe(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_t}function i_t(n){G===100||G===199?jn(n).impliedNodeFormat!==99&&qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&qe(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=jn(n);return N.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?N8e():_t}function tB(n){const a=n.valueDeclaration;return cp(dr(n),!1,!!a&&(zv(a)||oP(a)))}function Cve(n,a,c="arg"){return n?(N.assert(Ve(n.name)),n.name.escapedText):`${c}_${a}`}function i2(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);if(a=d-1)return a===d-1?y:Vu(Mp(y,Tt));const x=[],k=[],z=[];for(let H=a;H!(z&1)),k=x<0?y.target.fixedLength:x;k>0&&(_=n.parameters.length-1+k)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(d)return _;for(let y=_-1;y>=0;y--){const x=v_(n,y);if(uc(x,I3e).flags&131072)break;_=y}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function Uh(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);return!Ba(a)||a.target.hasRestElement}return!1}function q8(n){if(Yu(n)){const a=dr(n.parameters[n.parameters.length-1]);if(!Ba(a))return Nt(a)?ec:a;if(a.target.hasRestElement)return qM(a,a.target.fixedLength)}}function J8(n){const a=q8(n);return a&&!qf(a)&&!Nt(a)?a:void 0}function Pve(n){return Mve(n,Vr)}function Mve(n,a){return n.parameters.length>0?v_(n,0):a}function Z3e(n,a,c){const d=n.parameters.length-(Yu(n)?1:0);for(let _=0;_=0);const y=Ml(d.parent)?dr(Ir(d.parent.parent)):CFe(d.parent),x=Ml(d.parent)?Oe:PFe(d.parent),k=g_(_),z=l_("target",y),H=l_("propertyKey",x),re=l_("parameterIndex",k);c.decoratorSignature=Z8(void 0,void 0,[z,H,re],ir);break}case 174:case 177:case 178:case 172:{const d=a;if(!ui(d.parent))break;const _=CFe(d),y=l_("target",_),x=PFe(d),k=l_("propertyKey",x),z=Jo(d)?ir:W8e(Tx(d));if(se!==0&&(!Jo(a)||P_(a))){const re=W8e(Tx(d)),be=l_("descriptor",re);c.decoratorSignature=Z8(void 0,void 0,[y,k,be],ti([z,ir]))}else c.decoratorSignature=Z8(void 0,void 0,[y,k],ti([z,ir]));break}}return c.decoratorSignature===Et?void 0:c.decoratorSignature}function kve(n){return ne?b_t(n):v_t(n)}function iB(n){const a=m9(!0);return a!==ko?(n=yv(c2(n))||_n,fv(a,[n])):_n}function nWe(n){const a=k8e(!0);return a!==ko?(n=yv(c2(n))||_n,fv(a,[n])):_n}function oB(n,a){const c=iB(a);return c===_n?(qe(n,Bp(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),_t):(Pge(!0)||qe(n,Bp(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 E_t(n){const a=Xa(0,"NewTargetExpression"),c=Xa(4,"target",8);c.parent=a,c.links.type=n;const d=ca([c]);return a.members=d,Ls(a,d,et,et,et)}function Kee(n,a){if(!n.body)return _t;const c=Vc(n),d=(c&2)!==0,_=(c&1)!==0;let y,x,k,z=ir;if(n.body.kind!==241)y=nc(n.body,a&&a&-9),d&&(y=c2(Q8(y,!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(_){const H=lWe(n,a);H?H.length>0&&(y=ti(H,2)):z=Vr;const{yieldTypes:re,nextTypes:be}=S_t(n,a);x=bt(re)?ti(re,2):void 0,k=bt(be)?ba(be):void 0}else{const H=lWe(n,a);if(!H)return c&2?oB(n,Vr):Vr;if(H.length===0){const re=Nee(n,void 0),be=re&&(hB(re,c)||ir).flags&32768?Oe:ir;return c&2?oB(n,be):be}y=ti(H,2)}if(y||x||k){if(x&&_ee(n,x,3),y&&_ee(n,y,1),k&&_ee(n,k,2),y&&y_(y)||x&&y_(x)||k&&y_(k)){const H=eve(n),re=H?H===fm(n)?_?void 0:y:Pee(ps(H),n,void 0):void 0;_?(x=gye(x,re,0,d),y=gye(y,re,1,d),k=gye(k,re,2,d)):y=Tdt(y,re,d)}x&&(x=Xp(x)),y&&(y=Xp(y)),k&&(k=Xp(k))}return _?rWe(x||Vr,y||z,k||V4e(2,n)||_n,d):d?iB(y||z):y||z}function rWe(n,a,c,d){const _=d?Us:gc,y=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||_n,a=_.resolveIterationType(a,void 0)||_n,c=_.resolveIterationType(c,void 0)||_n,y===ko){const x=_.getGlobalIterableIteratorType(!1),k=x!==ko?XWe(x,_):void 0,z=k?k.returnType:j,H=k?k.nextType:Oe;return Ea(a,z)&&Ea(H,c)?x!==ko?I8(x,[n]):(_.getGlobalIterableIteratorType(!0),La):(_.getGlobalGeneratorType(!0),La)}return I8(y,[n,a,c])}function S_t(n,a){const c=[],d=[],_=(Vc(n)&2)!==0;return aie(n.body,y=>{const x=y.expression?mo(y.expression,a):Lt;Tf(c,iWe(y,x,j,_));let k;if(y.asteriskToken){const z=ste(x,_?19:17,y.expression);k=z&&z.nextType}else k=Yd(y,void 0);k&&Tf(d,k)}),{yieldTypes:c,nextTypes:d}}function iWe(n,a,c,d){const _=n.expression||n,y=n.asteriskToken?vv(d?19:17,a,c,_):a;return d?cA(y,_,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):y}function oWe(n,a,c){let d=0;for(let _=0;_=a?c[_]:void 0;d|=y!==void 0?Wq.get(y)||32768:0}return d}function aWe(n){const a=ei(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=T_t(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function T_t(n){if(n.expression.kind===221){const d=b4e(n);if(!d)return!1;const _=py(nc(n.expression.expression)),y=oWe(0,0,d);return _.flags&3?(556800&y)===556800:!Um(_,x=>ZM(x,y)===y)}const a=nc(n.expression);if(!w8(a))return!1;const c=Eee(n);return!c.length||bt(c,bdt)?!1:gpt(pl(a,bd),c)}function sWe(n){return n.endFlowNode&&F9(n.endFlowNode)}function lWe(n,a){const c=Vc(n),d=[];let _=sWe(n),y=!1;if(FE(n.body,x=>{let k=x.expression;if(k){if(k=hs(k,!0),c&2&&k.kind===223&&(k=hs(k.expression,!0)),k.kind===213&&k.expression.kind===80&&nc(k.expression).symbol===n.symbol){y=!0;return}let z=nc(k,a&&a&-9);c&2&&(z=c2(Q8(z,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),z.flags&131072&&(y=!0),Tf(d,z)}else _=!0}),!(d.length===0&&!_&&(y||A_t(n))))return Y&&d.length&&_&&!(nh(n)&&d.some(x=>x.symbol===n.symbol))&&Tf(d,Oe),d}function A_t(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function wve(n,a){r(c);return;function c(){const d=Vc(n),_=a&&hB(a,d);if(_&&(Cl(_,16384)||_.flags&32769)||n.kind===173||zl(n.body)||n.body.kind!==241||!sWe(n))return;const y=n.flags&1024,x=nm(n)||n;if(_&&_.flags&131072)qe(x,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!y)qe(x,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&Y&&!Ea(Oe,_))qe(x,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!_){if(!y)return;const k=ps(fm(n));if(rFe(n,k))return}qe(x,f.Not_all_code_paths_return_a_value)}}}function cWe(n,a){if(N.assert(n.kind!==174||xm(n)),Sx(n),Os(n)&&u2(n,n.name),a&&a&4&&Uf(n)){if(!nm(n)&&!J3(n)){const d=U8(n);if(d&&gE(ps(d))){const _=ei(n);if(_.contextFreeType)return _.contextFreeType;const y=Kee(n,a),x=Ag(void 0,void 0,void 0,et,y,void 0,0,64),k=Ls(n.symbol,K,[x],et,et);return k.objectFlags|=262144,_.contextFreeType=k}}return nn}return!yte(n)&&n.kind===218&&gbe(n),I_t(n,a),dr(Ir(n))}function I_t(n,a){const c=ei(n);if(!(c.flags&64)){const d=U8(n);if(!(c.flags&64)){c.flags|=64;const _=Xc(Yo(dr(Ir(n)),0));if(!_)return;if(Uf(n))if(d){const y=Z1(n);let x;if(a&&a&2){Z3e(_,d,y);const k=q8(d);k&&k.flags&262144&&(x=PN(d,y.nonFixingMapper))}x||(x=y?PN(d,y.mapper):d),s_t(_,x)}else l_t(_);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){const y=Z1(n);a&&a&2&&Z3e(_,d,y)}if(d&&!AN(n)&&!_.resolvedReturnType){const y=Kee(n,a);_.resolvedReturnType||(_.resolvedReturnType=y)}X8(n)}}}function x_t(n){N.assert(n.kind!==174||xm(n));const a=Vc(n),c=AN(n);if(wve(n,c),n.body)if(nm(n)||ps(fm(n)),n.body.kind===241)Da(n.body);else{const d=mo(n.body),_=c&&hB(c,a);if(_){const y=jee(n.body);if((a&3)===2){const x=Q8(d,!1,y,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Ub(x,_,y,y)}else Ub(d,_,y,y)}}}function Xee(n,a,c,d=!1){if(!Ea(a,Ql)){const _=d&&l2(a);return J0(n,!!_&&Ea(_,Ql),c),!1}return!0}function R_t(n){if(!sa(n)||!xS(n))return!1;const a=nc(n.arguments[2]);if(Ke(a,"value")){const _=va(a,"writable"),y=_&&dr(_);if(!y||y===en||y===bn)return!0;if(_&&_.valueDeclaration&&_c(_.valueDeclaration)){const x=_.valueDeclaration.initializer,k=mo(x);if(k===en||k===bn)return!0}return!1}return!va(a,"set")}function b_(n){return!!(xl(n)&8||n.flags&4&&Df(n)&8||n.flags&3&&sve(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||bt(n.declarations,R_t))}function uWe(n,a,c){var d,_;if(c===0)return!1;if(b_(a)){if(a.flags&4&&ws(n)&&n.expression.kind===110){const y=Gp(n);if(!(y&&(y.kind===176||nh(y))))return!0;if(a.valueDeclaration){const x=mr(a.valueDeclaration),k=y.parent===a.valueDeclaration.parent,z=y===a.valueDeclaration.parent,H=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===y.parent,re=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===y;return!(k||z||H||re)}}return!0}if(ws(n)){const y=hs(n.expression);if(y.kind===80){const x=ei(y).resolvedSymbol;if(x.flags&2097152){const k=Fm(x);return!!k&&k.kind===274}}}return!1}function K8(n,a,c){const d=$l(n,7);return d.kind!==80&&!ws(d)?(qe(n,a),!1):d.flags&64?(qe(n,c),!1):!0}function D_t(n){mo(n.expression);const a=hs(n.expression);if(!ws(a))return qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),Ni;Wr(a)&&Ji(a.name)&&qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=ei(a),d=yf(c.resolvedSymbol);return d&&(b_(d)?qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):N_t(a,d)),Ni}function N_t(n,a){const c=dr(a);Y&&!(c.flags&131075)&&!(De?a.flags&16777216:_m(c,16777216))&&qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function C_t(n){return mo(n.expression),tN}function P_t(n){return Sx(n),Lt}function dWe(n){let a=!1;const c=U4(n);if(c&&Rl(c)){const d=eb(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;qe(n,d),a=!0}else if(!(n.flags&65536))if(q4(n)){const d=jn(n);if(!rS(d)){let _;if(!LA(d,V)){_??(_=hh(d,n.pos));const y=eb(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,x=Qc(d,_.start,_.length,y);ts.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){_??(_=hh(d,n.pos)),ts.add(Qc(d,_.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(se>=4)break;default:_??(_=hh(d,n.pos));const y=eb(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;ts.add(Qc(d,_.start,_.length,y)),a=!0;break}}}else{const d=jn(n);if(!rS(d)){const _=hh(d,n.pos),y=eb(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,x=Qc(d,_.start,_.length,y);if(c&&c.kind!==176&&(Vc(c)&2)===0){const k=kr(c,f.Did_you_mean_to_mark_this_function_as_async);wa(x,k)}ts.add(x),a=!0}}return eb(n)&&Xye(n)&&(qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function M_t(n){r(()=>dWe(n));const a=mo(n.expression),c=Q8(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&&!Kt(c)&&!(a.flags&3)&&s_(!1,kr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function L_t(n){const a=mo(n.operand);if(a===yo)return yo;switch(n.operand.kind){case 9:switch(n.operator){case 41:return vx(g_(-n.operand.text));case 40:return vx(g_(+n.operand.text))}break;case 10:if(n.operator===41)return vx(JZ({negative:!0,base10Value:ZC(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return eh(a,n.operand),aB(a,12288)&&qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,fa(n.operator)),n.operator===40?(aB(a,2112)&&qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,fa(n.operator),Un(gy(a))),Tt):Ove(a);case 54:Qve(a,n.operand);const c=ZM(a,12582912);return c===4194304?en:c===8388608?Bn:Ni;case 46:case 47:return Xee(n.operand,eh(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K8(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),Ove(a)}return _t}function k_t(n){const a=mo(n.operand);return a===yo?yo:(Xee(n.operand,eh(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K8(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),Ove(a))}function Ove(n){return Cl(n,2112)?xu(n,3)||Cl(n,296)?Ql:kt:Tt}function aB(n,a){if(Cl(n,a))return!0;const c=py(n);return!!c&&Cl(c,a)}function Cl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const d of c)if(Cl(d,a))return!0}return!1}function xu(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&Ea(n,Tt)||!!(a&2112)&&Ea(n,kt)||!!(a&402653316)&&Ea(n,ke)||!!(a&528)&&Ea(n,Ni)||!!(a&16384)&&Ea(n,ir)||!!(a&131072)&&Ea(n,Vr)||!!(a&65536)&&Ea(n,me)||!!(a&32768)&&Ea(n,Oe)||!!(a&4096)&&Ea(n,Ai)||!!(a&67108864)&&Ea(n,Jr)}function sB(n,a,c){return n.flags&1048576?Zn(n.types,d=>sB(d,a,c)):xu(n,a,c)}function Yee(n){return!!(Or(n)&16)&&!!n.symbol&&Wve(n.symbol)}function Wve(n){return(n.flags&128)!==0}function Fve(n){const a=$We("hasInstance"),c=cE(n,a);if(c){const d=dr(c);if(d&&Yo(d,0).length!==0)return d}}function w_t(n,a,c,d,_){if(c===yo||d===yo)return yo;!Nt(c)&&sB(c,402784252)&&qe(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),N.assert(S3(n.parent));const y=ON(n.parent,void 0,_);if(y===Er)return yo;const x=ps(y);return nd(x,Ni,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),Ni}function O_t(n){return Um(n,a=>a===Nl||!!(a.flags&2097152)&&jh(py(a)))}function W_t(n,a,c,d){if(c===yo||d===yo)return yo;if(Ji(n)){if(se<99&&Nc(n,2097152),!ei(n).resolvedSymbol&&su(n)){const _=fve(n,d.symbol,!0);g3e(n,d,_)}}else nd(eh(c,n),Dn,n);return nd(eh(d,a),Jr,a)&&O_t(d)&&qe(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Un(d)),Ni}function F_t(n,a,c){const d=n.properties;if(Y&&d.length===0)return eh(a,n);for(let _=0;_qM(H,c)):Vu(d);return lA(k,z,_)}}}}function lA(n,a,c,d){let _;if(n.kind===304){const y=n;y.objectAssignmentInitializer&&(Y&&!_m(mo(y.objectAssignmentInitializer),16777216)&&(a=hm(a,524288)),j_t(y.name,y.equalsToken,y.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Pe(_,c),_=_.left,Y&&(a=hm(a,524288))),_.kind===210?F_t(_,a,d):_.kind===209?z_t(_,a,c):B_t(_,a,c)}function B_t(n,a,c){const d=mo(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,y=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 K8(n,_,y)&&Ub(a,d,n,n),Zx(n)&&Nc(n.parent,1048576),a}function lB(n){switch(n=hs(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 lB(n.whenTrue)&&lB(n.whenFalse);case 226:return zy(n.operatorToken.kind)?!1:lB(n.left)&&lB(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 zve(n,a){return(a.flags&98304)!==0||ZZ(n,a)}function G_t(){const n=lF(a,c,d,_,y,x);return(ge,Je)=>{const gt=n(ge,Je);return N.assertIsDefined(gt),gt};function a(ge,Je,gt){return Je?(Je.stackIndex++,Je.skip=!1,H(Je,void 0),be(Je,void 0)):Je={checkMode:gt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},lr(ge)&&kA(ge)?(Je.skip=!0,be(Je,mo(ge.right,gt)),Je):(V_t(ge),ge.operatorToken.kind===64&&(ge.left.kind===210||ge.left.kind===209)&&(Je.skip=!0,be(Je,lA(ge.left,mo(ge.right,gt),gt,ge.right.kind===110))),Je)}function c(ge,Je,gt){if(!Je.skip)return k(Je,ge)}function d(ge,Je,gt){if(!Je.skip){const Dt=re(Je);N.assertIsDefined(Dt),H(Je,Dt),be(Je,void 0);const an=ge.kind;if(ak(an)){let cn=gt.parent;for(;cn.kind===217||sk(cn);)cn=cn.parent;(an===56||VS(cn))&&$ve(gt.left,Dt,VS(cn)?cn.thenStatement:void 0),Qve(Dt,gt.left)}}}function _(ge,Je,gt){if(!Je.skip)return k(Je,ge)}function y(ge,Je){let gt;if(Je.skip)gt=re(Je);else{const Dt=z(Je);N.assertIsDefined(Dt);const an=re(Je);N.assertIsDefined(an),gt=mWe(ge.left,ge.operatorToken,ge.right,Dt,an,Je.checkMode,ge)}return Je.skip=!1,H(Je,void 0),be(Je,void 0),Je.stackIndex--,gt}function x(ge,Je,gt){return be(ge,Je),ge}function k(ge,Je){if(mr(Je))return Je;be(ge,mo(Je,ge.checkMode))}function z(ge){return ge.typeStack[ge.stackIndex]}function H(ge,Je){ge.typeStack[ge.stackIndex]=Je}function re(ge){return ge.typeStack[ge.stackIndex+1]}function be(ge,Je){ge.typeStack[ge.stackIndex+1]=Je}}function V_t(n){const{left:a,operatorToken:c,right:d}=n;c.kind===61&&(mr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&En(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,fa(a.operatorToken.kind),fa(c.kind)),mr(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&En(d,f._0_and_1_operations_cannot_be_mixed_without_parentheses,fa(d.operatorToken.kind),fa(c.kind)))}function j_t(n,a,c,d,_){const y=a.kind;if(y===64&&(n.kind===210||n.kind===209))return lA(n,mo(c,d),d,c.kind===110);let x;ak(y)?x=d2(n,d):x=mo(n,d);const k=mo(c,d);return mWe(n,a,c,x,k,d,_)}function mWe(n,a,c,d,_,y,x){const k=a.kind;switch(k){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(d===yo||_===yo)return yo;d=eh(d,n),_=eh(_,c);let ln;if(d.flags&528&&_.flags&528&&(ln=ge(a.kind))!==void 0)return qe(x||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,fa(a.kind),fa(ln)),Tt;{const er=Xee(n,d,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),qn=Xee(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let tr;if(xu(d,3)&&xu(_,3)||!(Cl(d,2112)||Cl(_,2112)))tr=Tt;else if(z(d,_)){switch(k){case 50:case 73:an();break;case 43:case 68:se<3&&qe(x,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}tr=kt}else an(z),tr=_t;return er&&qn&&Je(tr),tr}case 40:case 65:if(d===yo||_===yo)return yo;!xu(d,402653316)&&!xu(_,402653316)&&(d=eh(d,n),_=eh(_,c));let zn;return xu(d,296,!0)&&xu(_,296,!0)?zn=Tt:xu(d,2112,!0)&&xu(_,2112,!0)?zn=kt:xu(d,402653316,!0)||xu(_,402653316,!0)?zn=ke:(Nt(d)||Nt(_))&&(zn=Kt(d)||Kt(_)?_t:j),zn&&!be(k)?zn:zn?(k===65&&Je(zn),zn):(an((qn,tr)=>xu(qn,402655727)&&xu(tr,402655727)),j);case 30:case 32:case 33:case 34:return be(k)&&(d=_ye(eh(d,n)),_=_ye(eh(_,c)),Dt((er,qn)=>{if(Nt(er)||Nt(qn))return!0;const tr=Ea(er,Ql),Ro=Ea(qn,Ql);return tr&&Ro||!tr&&!Ro&&T9(er,qn)})),Ni;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((jV(n)||jV(c))&&(!lr(n)||k===37||k===38)){const er=k===35||k===37;qe(x,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,er?"false":"true")}ar(x,k,n,c),Dt((er,qn)=>zve(er,qn)||zve(qn,er))}return Ni;case 104:return w_t(n,c,d,_,y);case 103:return W_t(n,c,d,_);case 56:case 77:{const er=_m(d,4194304)?ti([xdt(Y?d:gy(_)),_]):d;return k===77&&Je(_),er}case 57:case 76:{const er=_m(d,8388608)?ti([yy(J6e(d)),_],2):d;return k===76&&Je(_),er}case 61:case 78:{const er=_m(d,262144)?ti([yy(d),_],2):d;return k===78&&Je(_),er}case 64:const Fn=mr(n.parent)?Bl(n.parent):0;return H(Fn,_),gt(Fn)?((!(_.flags&524288)||Fn!==2&&Fn!==6&&!hy(_)&&!Oye(_)&&!(Or(_)&1))&&Je(_),d):(Je(_),_);case 28:if(!V.allowUnreachableCode&&lB(n)&&!re(n.parent)){const er=jn(n),qn=er.text,tr=ka(qn,n.pos);er.parseDiagnostics.some(Eo=>Eo.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:PV(Eo,tr))||qe(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return N.fail()}function z(ln,zn){return xu(ln,2112)&&xu(zn,2112)}function H(ln,zn){if(ln===2)for(const Fn of Wb(zn)){const er=dr(Fn);if(er.symbol&&er.symbol.flags&32){const qn=Fn.escapedName,tr=bl(Fn.valueDeclaration,qn,788968,void 0,qn,!1);tr?.declarations&&tr.declarations.some(KS)&&(dm(tr,f.Duplicate_identifier_0,Vi(qn),Fn),dm(Fn,f.Duplicate_identifier_0,Vi(qn),tr))}}}function re(ln){return ln.parent.kind===217&&gp(ln.left)&&ln.left.text==="0"&&(sa(ln.parent.parent)&&ln.parent.parent.expression===ln.parent||ln.parent.parent.kind===215)&&(ws(ln.right)||Ve(ln.right)&&ln.right.escapedText==="eval")}function be(ln){const zn=aB(d,12288)?n:aB(_,12288)?c:void 0;return zn?(qe(zn,f.The_0_operator_cannot_be_applied_to_type_symbol,fa(ln)),!1):!0}function ge(ln){switch(ln){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Je(ln){zy(k)&&r(zn);function zn(){let Fn=d;if(zP(a.kind)&&n.kind===211&&(Fn=Oee(n,void 0,!0)),K8(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 er;if(De&&Wr(n)&&Cl(ln,32768)){const qn=Ke(Ru(n.expression),n.name.escapedText);tee(ln,qn)&&(er=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Ub(ln,Fn,n,c,er)}}}function gt(ln){var zn;switch(ln){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Fn=gf(n),er=kA(c);return!!er&&Oa(er)&&!!((zn=Fn?.exports)!=null&&zn.size);default:return!1}}function Dt(ln){return ln(d,_)?!1:(an(ln),!0)}function an(ln){let zn=!1;const Fn=x||a;if(ln){const Eo=yv(d),Bo=yv(_);zn=!(Eo===d&&Bo===_)&&!!(Eo&&Bo)&&ln(Eo,Bo)}let er=d,qn=_;!zn&&ln&&([er,qn]=U_t(d,_,ln));const[tr,Ro]=dx(er,qn);cn(Fn,zn,tr,Ro)||J0(Fn,zn,f.Operator_0_cannot_be_applied_to_types_1_and_2,fa(a.kind),tr,Ro)}function cn(ln,zn,Fn,er){switch(a.kind){case 37:case 35:case 38:case 36:return J0(ln,zn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Fn,er);default:return}}function ar(ln,zn,Fn,er){const qn=On(hs(Fn)),tr=On(hs(er));if(qn||tr){const Ro=qe(ln,f.This_condition_will_always_return_0,fa(zn===37||zn===35?97:112));if(qn&&tr)return;const Eo=zn===38||zn===36?fa(54):"",Bo=qn?er:Fn,_o=hs(Bo);wa(Ro,kr(Bo,f.Did_you_mean_0,`${Eo}Number.isNaN(${Gl(_o)?mp(_o):"..."})`))}}function On(ln){if(Ve(ln)&&ln.escapedText==="NaN"){const zn=Mct();return!!zn&&zn===jm(ln)}return!1}}function U_t(n,a,c){let d=n,_=a;const y=gy(n),x=gy(a);return c(y,x)||(d=y,_=x),[d,_]}function H_t(n){r(ge);const a=Gp(n);if(!a)return j;const c=Vc(a);if(!(c&1))return j;const d=(c&2)!==0;n.asteriskToken&&(d&&se<99&&Nc(n,26624),!d&&se<2&&V.downlevelIteration&&Nc(n,256));let _=AN(a);_&&_.flags&1048576&&(_=uc(_,Je=>Vve(Je,c,void 0)));const y=_&&nFe(_,d),x=y&&y.yieldType||j,k=y&&y.nextType||j,z=d?cA(k)||j:k,H=n.expression?mo(n.expression):Lt,re=iWe(n,H,z,d);if(_&&re&&Ub(re,x,n.expression||n,n.expression),n.asteriskToken)return ebe(d?19:17,1,H,n.expression)||j;if(_)return nS(2,_,d)||j;let be=V4e(2,a);return be||(be=j,r(()=>{if(pe&&!Ooe(n)){const Je=Yd(n,void 0);(!Je||Nt(Je))&&qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),be;function ge(){n.flags&16384||hu(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),Xye(n)&&qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function q_t(n,a){const c=d2(n.condition,a);$ve(n.condition,c,n.whenTrue);const d=mo(n.whenTrue,a),_=mo(n.whenFalse,a);return ti([d,_],2)}function _We(n){const a=n.parent;return Gd(a)&&_We(a)||Qs(a)&&a.argumentExpression===n}function J_t(n){const a=[n.head.text],c=[];for(const _ of n.templateSpans){const y=mo(_.expression);aB(y,12288)&&qe(_.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(Ea(y,Lo)?y:ke)}if(a2(n)||_We(n)||Um(Yd(n,void 0)||_n,K_t))return JT(a,c);const d=n.parent.kind!==215&&gFe(n);return d?vx(Xd(d)):ke}function K_t(n){return!!(n.flags&134217856||n.flags&58982400&&Cl(Gu(n)||_n,402653316))}function X_t(n){return s1(n)&&!HS(n.parent)?n.parent.parent:n}function WN(n,a,c,d){const _=X_t(n);V9(_,a,!1),_ft(_,c);const y=mo(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=Cl(y,2944)&&Qee(y,Pee(a,n,void 0))?bd(y):y;return hft(),j8(),x}function nc(n,a){if(a)return mo(n,a);const c=ei(n);if(!c.resolvedType){const d=H_,_=vn;H_=_f,vn=void 0,c.resolvedType=mo(n,a),vn=_,H_=d}return c.resolvedType}function hWe(n){return n=hs(n,!0),n.kind===216||n.kind===234||eD(n)}function o2(n,a,c){const d=OL(n);if(lr(n)){const y=Y3(n);if(y)return Dve(d,y,a)}const _=Gve(d)||(c?WN(d,c,void 0,a||0):nc(d,a));return Ao(n)&&n.name.kind===207&&Ba(_)&&!_.target.hasRestElement&&mv(_)Qee(n,d))}if(a.flags&58982400){const c=Gu(a)||_n;return Cl(c,4)&&Cl(n,128)||Cl(c,8)&&Cl(n,256)||Cl(c,64)&&Cl(n,2048)||Cl(c,4096)&&Cl(n,8192)||Qee(n,c)}return!!(a.flags&406847616&&Cl(n,128)||a.flags&256&&Cl(n,256)||a.flags&2048&&Cl(n,2048)||a.flags&512&&Cl(n,512)||a.flags&8192&&Cl(n,8192))}return!1}function a2(n){const a=n.parent;return yS(a)&&Lg(a.type)||eD(a)&&Lg(iF(a))||Rve(n)&&UT(Yd(n,0))||(Gd(a)||md(a)||e_(a))&&a2(a)||(_c(a)||rp(a)||vP(a))&&a2(a.parent)}function s2(n,a,c){const d=mo(n,a,c);return a2(n)||cie(n)?bd(d):hWe(n)?d:hye(d,Pee(Yd(n,void 0),n,void 0))}function gWe(n,a){return n.name.kind===167&&xg(n.name),s2(n.initializer,a)}function yWe(n,a){UFe(n),n.name.kind===167&&xg(n.name);const c=cWe(n,a);return vWe(n,c,a)}function vWe(n,a,c){if(c&&c&10){const d=H8(a,0,!0),_=H8(a,1,!0),y=d||_;if(y&&y.typeParameters){const x=bE(n,2);if(x){const k=H8(yy(x),d?0:1,!1);if(k&&!k.typeParameters){if(c&8)return bWe(n,c),nn;const z=Z1(n),H=z.signature&&ps(z.signature),re=H&&R3e(H);if(re&&!re.typeParameters&&!Zn(z.inferences,FN)){const be=eht(z,y.typeParameters),ge=yge(y,be),Je=Ot(z.inferences,gt=>Tye(gt.typeParameter));if(vye(ge,k,(gt,Dt)=>{vy(Je,gt,Dt,0,!0)}),bt(Je,FN)&&(bye(ge,k,(gt,Dt)=>{vy(Je,gt,Dt)}),!Q_t(z.inferences,Je)))return Z_t(z.inferences,Je),z.inferredTypeParameters=So(z.inferredTypeParameters,be),qT(ge)}return qT(D3e(y,k,z))}}}}return a}function bWe(n,a){if(a&2){const c=Z1(n);c.flags|=4}}function FN(n){return!!(n.candidates||n.contraCandidates)}function $_t(n){return!!(n.candidates||n.contraCandidates||i8e(n.typeParameter))}function Q_t(n,a){for(let c=0;cc.symbol.escapedName===a)}function tht(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const d=a.slice(0,c);for(let _=1;;_++){const y=d+_;if(!Bve(n,y))return y}}function EWe(n){const a=sA(n);if(a&&!a.typeParameters)return ps(a)}function nht(n){const a=mo(n.expression),c=O8(a,n.expression),d=EWe(a);return d&&dee(d,n,c!==a)}function Ru(n){const a=Gve(n);if(a)return a;if(n.flags&268435456&&vn){const _=vn[as(n)];if(_)return _}const c=Ze,d=mo(n,64);if(Ze!==c){const _=vn||(vn=[]);_[as(n)]=d,woe(n,n.flags|268435456)}return d}function Gve(n){let a=hs(n,!0);if(eD(a)){const c=iF(a);if(!Lg(c))return bi(c)}if(a=hs(n),eb(a)){const c=Gve(a.expression);return c?cA(c):void 0}if(sa(a)&&a.expression.kind!==108&&!Td(a,!0)&&!G3e(a))return mS(a)?nht(a):EWe(kN(a.expression));if(yS(a)&&!Lg(a.type))return bi(a.type);if(LE(n)||_C(n))return mo(n)}function cB(n){const a=ei(n);if(a.contextFreeType)return a.contextFreeType;V9(n,j,!1);const c=a.contextFreeType=mo(n,4);return j8(),c}function mo(n,a,c){var d,_;(d=sr)==null||d.push(sr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const y=C;C=n,I=0;const x=oht(n,a,c),k=vWe(n,x,a);return Yee(k)&&rht(n,k),C=y,(_=sr)==null||_.pop(),k}function rht(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&pte(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||qe(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),om(V)&&(N.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!S0(n)&&qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,$e))}function iht(n,a){if(Fp(n)){if(MU(n))return Dve(n.expression,LU(n),a);if(eD(n))return H3e(n,a)}return mo(n.expression,a)}function oht(n,a,c){const d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return Fpt(n,a);case 81:return nmt(n);case 110:return B9(n);case 108:return Jye(n);case 106:return Ge;case 15:case 11:return Dye(n)?Ye:vx(Xd(n.text));case 9:return Ebe(n),vx(g_(+n.text));case 10:return sbt(n),vx(JZ({negative:!1,base10Value:ZC(n.text)}));case 112:return Bn;case 97:return en;case 228:return J_t(n);case 14:return vl;case 209:return Y4e(n,a,c);case 210:return kft(n,a);case 211:return Oee(n,a);case 166:return p3e(n,a);case 212:return ymt(n,a);case 213:if(n.expression.kind===102)return Ymt(n);case 214:return Xmt(n,a);case 215:return $mt(n);case 217:return iht(n,a);case 231:return qgt(n);case 218:case 219:return cWe(n,a);case 221:return C_t(n);case 216:case 234:return Qmt(n,a);case 235:return t_t(n);case 233:return J3e(n);case 238:return n_t(n);case 236:return r_t(n);case 220:return D_t(n);case 222:return P_t(n);case 223:return M_t(n);case 224:return L_t(n);case 225:return k_t(n);case 226:return Pe(n,a);case 227:return q_t(n,a);case 230:return Dft(n,a);case 232:return Lt;case 229:return H_t(n);case 237:return Nft(n);case 294:return Xft(n,a);case 284:return Fft(n);case 285:return Oft(n);case 288:return zft(n);case 292:return Gft(n,a);case 286:N.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function SWe(n){Dg(n),n.expression&&hu(n.expression,f.Type_expected),Da(n.constraint),Da(n.default);const a=GT(Ir(n));Gu(a),zlt(a)||qe(n.default,f.Type_parameter_0_has_a_circular_default,Un(a));const c=Md(a),d=HT(a);c&&d&&nd(d,Kp(so(c,X1(a,d)),d),n.default,f.Type_0_does_not_satisfy_the_constraint_1),Sx(n),r(()=>p2(n.name,f.Type_parameter_name_cannot_be_0))}function aht(n){var a,c;if(_d(n.parent)||ui(n.parent)||Nm(n.parent)){const d=GT(Ir(n)),_=dye(d)&24576;if(_){const y=Ir(n.parent);if(Nm(n.parent)&&!(Or(el(y))&52))qe(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=sr)==null||a.push(sr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:vd(el(y)),id:vd(d)});const x=x9(y,d,_===16384?ee:de),k=x9(y,d,_===16384?de:ee),z=d;O=d,nd(x,k,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=z,(c=sr)==null||c.pop()}}}}function TWe(n){Dg(n),mB(n);const a=Gp(n);Zr(n,31)&&(a.kind===176&&Yf(a.body)||qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ve(n.name)&&n.name.escapedText==="constructor"&&qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&oP(n)&&ta(n.name)&&a.body&&qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Ve(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&qe(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ta(n.name)&&!Ea(h_(dr(n.symbol)),ff)&&qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function sht(n){const a=lht(n);if(!a){qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=fm(a),d=jf(c);if(!d)return;Da(n.type);const{parameterName:_}=n;if(d.kind===0||d.kind===2)KZ(_);else if(d.parameterIndex>=0){if(Yu(c)&&d.parameterIndex===c.parameters.length-1)qe(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){const y=()=>jo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);nd(d.type,dr(c.parameters[d.parameterIndex]),n.type,void 0,y)}}else if(_){let y=!1;for(const{name:x}of a.parameters)if(ta(x)&&AWe(x,_,d.parameterName)){y=!0;break}y||qe(n.parameterName,f.Cannot_find_parameter_0,d.parameterName)}}function lht(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function AWe(n,a,c){for(const d of n.elements){if(jc(d))continue;const _=d.name;if(_.kind===80&&_.escapedText===c)return qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&AWe(_,a,c))return!0}}function X8(n){n.kind===181?wvt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&yte(n);const a=Vc(n);a&4||((a&3)===3&&se<99&&Nc(n,6144),(a&3)===2&&se<4&&Nc(n,64),(a&3)!==0&&se<2&&Nc(n,128)),gB(kv(n)),jgt(n),Xe(n.parameters,TWe),n.type&&Da(n.type),r(c);function c(){agt(n);let d=nm(n),_=d;if(lr(n)){const y=u0(n);if(y&&y.typeExpression&&Cf(y.typeExpression.type)){const x=sA(bi(y.typeExpression));x&&x.declaration&&(d=nm(x.declaration),_=y.typeExpression.type)}}if(pe&&!d)switch(n.kind){case 180:qe(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:qe(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&_){const y=Vc(n);if((y&5)===1){const x=bi(d);x===ir?qe(_,f.A_generator_cannot_have_a_void_type_annotation):Vve(x,y,_)}else(y&3)===2&&zht(n,d,_)}n.kind!==181&&n.kind!==324&&Xb(n)}}function Vve(n,a,c){const d=nS(0,n,(a&2)!==0)||j,_=nS(1,n,(a&2)!==0)||d,y=nS(2,n,(a&2)!==0)||_n,x=rWe(d,_,y,!!(a&2));return nd(x,n,c)}function cht(n){const a=new Map,c=new Map,d=new Map;for(const y of n.members)if(y.kind===176)for(const x of y.parameters)fp(x,y)&&!ta(x.name)&&_(a,x.name,x.name.escapedText,3);else{const x=aa(y),k=y.name;if(!k)continue;const z=Ji(k),H=z&&x?16:0,re=z?d:x?c:a,be=k&&Sbe(k);if(be)switch(y.kind){case 177:_(re,k,be,1|H);break;case 178:_(re,k,be,2|H);break;case 172:_(re,k,be,3|H);break;case 174:_(re,k,be,8|H);break}}function _(y,x,k,z){const H=y.get(k);if(H)if((H&16)!==(z&16))qe(x,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,pc(x));else{const re=!!(H&8),be=!!(z&8);re||be?re!==be&&qe(x,f.Duplicate_identifier_0,pc(x)):H&z&-17?qe(x,f.Duplicate_identifier_0,pc(x)):y.set(k,H|z)}else y.set(k,z)}}function uht(n){for(const a of n.members){const c=a.name;if(aa(a)&&c){const _=Sbe(c);switch(_){case"name":case"length":case"caller":case"arguments":if(he)break;case"prototype":const y=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=rE(Ir(n));qe(c,y,_,x);break}}}}function IWe(n){const a=new Map;for(const c of n.members)if(c.kind===171){let d;const _=c.name;switch(_.kind){case 11:case 9:d=_.text;break;case 80:d=Sr(_);break;default:continue}a.get(d)?(qe(Mo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,d),qe(c.name,f.Duplicate_identifier_0,d)):a.set(d,!0)}}function jve(n){if(n.kind===264){const c=Ir(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const a=vge(Ir(n));if(a?.declarations){const c=new Map;for(const d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&rA(bi(d.parameters[0].type),_=>{const y=c.get(vd(_));y?y.declarations.push(d):c.set(vd(_),{type:_,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(const _ of d.declarations)qe(_,f.Duplicate_index_signature_for_type_0,Un(d.type))})}}function xWe(n){!Dg(n)&&!rbt(n)&&vte(n.name),mB(n),Uve(n),Zr(n,64)&&n.kind===172&&n.initializer&&qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Rs(n.name))}function dht(n){return Ji(n.name)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),xWe(n)}function pht(n){UFe(n)||vte(n.name),ql(n)&&n.asteriskToken&&Ve(n.name)&&Sr(n.name)==="constructor"&&qe(n.name,f.Class_constructor_may_not_be_a_generator),zWe(n),Zr(n,64)&&n.kind===174&&n.body&&qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Rs(n.name)),Ji(n.name)&&!su(n)&&qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),Uve(n)}function Uve(n){if(Ji(n.name)&&se<99){for(let a=_h(n);a;a=_h(a))ei(a).flags|=1048576;if(Zc(n.parent)){const a=jye(n.parent);a&&(ei(n.name).flags|=32768,ei(a).flags|=4096)}}}function fht(n){Dg(n),Ho(n,Da)}function mht(n){X8(n),tbt(n)||nbt(n),Da(n.body);const a=Ir(n),c=fl(a,n.kind);if(n===c&&tte(a),zl(n.body))return;r(_);return;function d(y){return ld(y)?!0:y.kind===172&&!aa(y)&&!!y.initializer}function _(){const y=n.parent;if(jE(y)){Uye(n.parent,y);const x=Hye(y),k=k4e(n.body);if(k){if(x&&qe(k,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ve&&(bt(n.parent.members,d)||bt(n.parameters,H=>Zr(H,31))))if(!_ht(k,n.body))qe(k,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 H;for(const re of n.body.statements){if(eu(re)&&TS($l(re.expression))){H=re;break}if(RWe(re))break}H===void 0&&qe(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 x||qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function _ht(n,a){const c=Wy(n.parent);return eu(c)&&c.parent===a}function RWe(n){return n.kind===108||n.kind===110?!0:hie(n)?!1:!!Ho(n,RWe)}function DWe(n){Ve(n.name)&&Sr(n.name)==="constructor"&&ui(n.parent)&&qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Da(n.body),Uve(n);function a(){if(!yte(n)&&!Uvt(n)&&vte(n.name),dB(n),X8(n),n.kind===177&&!(n.flags&33554432)&&Yf(n.body)&&n.flags&512&&(n.flags&1024||qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&xg(n.name),SN(n)){const d=Ir(n),_=fl(d,177),y=fl(d,178);if(_&&y&&!(GN(_)&1)){ei(_).flags|=1;const x=dd(_),k=dd(y);(x&64)!==(k&64)&&(qe(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),qe(y.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(k&6)||x&2&&!(k&2))&&(qe(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),qe(y.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=sE(Ir(n));n.kind===177&&wve(n,c)}}function hht(n){dB(n)}function ght(n,a,c){return n.typeArguments&&c{const d=Hve(n);d&&NWe(n,d)});const c=ei(n).resolvedSymbol;c&&bt(c.declarations,d=>zR(d)&&!!(d.flags&536870912))&&sv(eB(n),c.declarations,c.escapedName)}}function vht(n){const a=ii(n.parent,I4);if(!a)return;const c=Hve(a);if(!c)return;const d=Md(c[a.typeArguments.indexOf(n)]);return d&&so(d,Lp(c,Zee(a,c)))}function bht(n){R8e(n)}function Eht(n){Xe(n.members,Da),r(a);function a(){const c=m6e(n);lte(c,c.symbol),jve(n),IWe(n)}}function Sht(n){Da(n.elementType)}function Tht(n){let a=!1,c=!1;for(const d of n.elements){let _=kge(d);if(_&8){const y=bi(d.type);if(!gv(y)){qe(d,f.A_rest_element_type_must_be_an_array_type);break}(qf(y)||Ba(y)&&y.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){En(d,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){En(d,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){En(d,f.A_required_element_cannot_follow_an_optional_element);break}}Xe(n.elements,Da),bi(n)}function Aht(n){Xe(n.types,Da),bi(n)}function PWe(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,d=n.indexType,_=Kd(c)&&PZ(c)===2?Q8e(c,0):Q_(c,0),y=!!Ig(c,Tt);if(up(d,x=>Ea(x,_)||y&&mx(x,Tt)))return a.kind===212&&rg(a)&&Or(c)&32&&zh(c)&1&&qe(a,f.Index_signature_in_type_0_only_permits_reading,Un(c)),n;if(XT(c)){const x=jZ(d,a);if(x){const k=rA(Ld(c),z=>va(z,x));if(k&&Df(k)&6)return qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(x)),_t}}return qe(a,f.Type_0_cannot_be_used_to_index_type_1,Un(d),Un(c)),_t}function Iht(n){Da(n.objectType),Da(n.indexType),PWe(l6e(n),n)}function xht(n){Rht(n),Da(n.typeParameter),Da(n.nameType),Da(n.type),n.type||hE(n,j);const a=qge(n),c=pv(a);if(c)nd(c,Fs,n.nameType);else{const d=Ef(a);nd(d,Fs,Qx(n.typeParameter))}}function Rht(n){var a;if((a=n.members)!=null&&a.length)return En(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Dht(n){KZ(n)}function Nht(n){qvt(n),Da(n.type)}function Cht(n){Ho(n,Da)}function Pht(n){Gn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||En(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Da(n.typeParameter);const a=Ir(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Xi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const d=GT(a),_=Fre(a,168);if(!aFe(_,[d],y=>[y])){const y=vi(a);for(const x of _)qe(x.name,f.All_declarations_of_0_must_have_identical_constraints,y)}}}Xb(n)}function Mht(n){for(const a of n.templateSpans){Da(a.type);const c=bi(a.type);nd(c,Lo,a.type)}bi(n)}function Lht(n){Da(n.argument),n.attributes&&_D(n.attributes,En),CWe(n)}function kht(n){n.dotDotDotToken&&n.questionToken&&En(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&En(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&&En(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Da(n.type),bi(n)}function uB(n){return(hp(n,2)||ld(n))&&!!(n.flags&33554432)}function ete(n,a){let c=bte(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const d=yj(n);d&&d.flags&128&&!(c&128)&&!(O_(n.parent)&&Xl(n.parent.parent)&&R_(n.parent.parent))&&(c|=32),c|=128}return c&a}function tte(n){r(()=>wht(n))}function wht(n){function a(ln,zn){return zn!==void 0&&zn.parent===ln[0].parent?zn:ln[0]}function c(ln,zn,Fn,er,qn){if((er^qn)!==0){const Ro=ete(a(ln,zn),Fn);Xe(ln,Eo=>{const Bo=ete(Eo,Fn)^Ro;Bo&32?qe(Mo(Eo),f.Overload_signatures_must_all_be_exported_or_non_exported):Bo&128?qe(Mo(Eo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Bo&6?qe(Mo(Eo)||Eo,f.Overload_signatures_must_all_be_public_private_or_protected):Bo&64&&qe(Mo(Eo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(ln,zn,Fn,er){if(Fn!==er){const qn=OA(a(ln,zn));Xe(ln,tr=>{OA(tr)!==qn&&qe(Mo(tr),f.Overload_signatures_must_all_be_optional_or_required)})}}const _=230;let y=0,x=_,k=!1,z=!0,H=!1,re,be,ge;const Je=n.declarations,gt=(n.flags&16384)!==0;function Dt(ln){if(ln.name&&zl(ln.name))return;let zn=!1;const Fn=Ho(ln.parent,qn=>{if(zn)return qn;zn=qn===ln});if(Fn&&Fn.pos===ln.end&&Fn.kind===ln.kind){const qn=Fn.name||Fn,tr=Fn.name;if(ln.name&&tr&&(Ji(ln.name)&&Ji(tr)&&ln.name.escapedText===tr.escapedText||Za(ln.name)&&Za(tr)&&_y(xg(ln.name),xg(tr))||N_(ln.name)&&N_(tr)&&MC(ln.name)===MC(tr))){if((ln.kind===174||ln.kind===173)&&aa(ln)!==aa(Fn)){const Eo=aa(ln)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;qe(qn,Eo)}return}if(Yf(Fn.body)){qe(qn,f.Function_implementation_name_must_be_0,Rs(ln.name));return}}const er=ln.name||ln;gt?qe(er,f.Constructor_implementation_is_missing):Zr(ln,64)?qe(er,f.All_declarations_of_an_abstract_method_must_be_consecutive):qe(er,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let an=!1,cn=!1,ar=!1;const On=[];if(Je)for(const ln of Je){const zn=ln,Fn=zn.flags&33554432,er=zn.parent&&(zn.parent.kind===264||zn.parent.kind===187)||Fn;if(er&&(ge=void 0),(zn.kind===263||zn.kind===231)&&!Fn&&(ar=!0),zn.kind===262||zn.kind===174||zn.kind===173||zn.kind===176){On.push(zn);const qn=ete(zn,_);y|=qn,x&=qn,k=k||OA(zn),z=z&&OA(zn);const tr=Yf(zn.body);tr&&re?gt?cn=!0:an=!0:ge?.parent===zn.parent&&ge.end!==zn.pos&&Dt(ge),tr?re||(re=zn):H=!0,ge=zn,er||(be=zn)}lr(ln)&&ea(ln)&&ln.jsDoc&&(H=Le(wj(ln))>0)}if(cn&&Xe(On,ln=>{qe(ln,f.Multiple_constructor_implementations_are_not_allowed)}),an&&Xe(On,ln=>{qe(Mo(ln)||ln,f.Duplicate_function_implementation)}),ar&&!gt&&n.flags&16&&Je){const ln=nr(Je,zn=>zn.kind===263).map(zn=>kr(zn,f.Consider_adding_a_declare_modifier_to_this_class));Xe(Je,zn=>{const Fn=zn.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:zn.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Fn&&wa(qe(Mo(zn)||zn,Fn,Sl(n)),...ln)})}if(be&&!be.body&&!Zr(be,64)&&!be.questionToken&&Dt(be),H&&(Je&&(c(Je,re,_,y,x),d(Je,re,k,z)),re)){const ln=U1(n),zn=fm(re);for(const Fn of ln)if(!tdt(zn,Fn)){const er=Fn.declaration&&R0(Fn.declaration)?Fn.declaration.parent.tagName:Fn.declaration;wa(qe(er,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),kr(re,f.The_implementation_signature_is_declared_here));break}}}function Y8(n){r(()=>Oht(n))}function Oht(n){let a=n.localSymbol;if(!a&&(a=Ir(n),!a.exportSymbol)||fl(a,n.kind)!==n)return;let c=0,d=0,_=0;for(const H of a.declarations){const re=z(H),be=ete(H,2080);be&32?be&2048?_|=re:c|=re:d|=re}const y=c|d,x=c&d,k=_&y;if(x||k)for(const H of a.declarations){const re=z(H),be=Mo(H);re&k?qe(be,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Rs(be)):re&x&&qe(be,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Rs(be))}function z(H){let re=H;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return ku(re)||Hg(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const be=re,ge=kl(be)?be.expression:be.right;if(!Gl(ge))return 1;re=ge;case 271:case 274:case 273:let Je=0;const gt=Fc(Ir(re));return Xe(gt.declarations,Dt=>{Je|=z(Dt)}),Je;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return N.failBadSyntaxKind(re)}}}function l2(n,a,c,...d){const _=$8(n,a);return _&&cA(_,a,c,...d)}function $8(n,a,c){if(Nt(n))return;const d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(wb(n,m9(!1)))return d.promisedTypeOfPromise=Js(n)[0];if(sB(py(n),402915324))return;const _=Ke(n,"then");if(Nt(_))return;const y=_?Yo(_,0):et;if(y.length===0){a&&qe(a,f.A_promise_must_have_a_then_method);return}let x,k;for(const re of y){const be=dE(re);be&&be!==ir&&!Z_(n,be,Ch)?x=be:k=xn(k,re)}if(!k){N.assertIsDefined(x),c&&(c.value=x),a&&qe(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Un(n),Un(x));return}const z=hm(ti(Ot(k,Pve)),2097152);if(Nt(z))return;const H=Yo(z,0);if(H.length===0){a&&qe(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ti(Ot(H,Pve),2)}function Q8(n,a,c,d,..._){return(a?cA(n,c,d,..._):yv(n,c,d,..._))||_t}function MWe(n){if(sB(py(n),402915324))return!1;const a=Ke(n,"then");return!!a&&Yo(hm(a,2097152),0).length>0}function nte(n){var a;if(n.flags&16777216){const c=Lge(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function c2(n){return n.flags&1048576?pl(n,c2):nte(n)?n.aliasTypeArguments[0]:n}function LWe(n){if(Nt(n)||nte(n))return!1;if(XT(n)){const a=Gu(n);if(a?a.flags&3||hy(a)||Um(a,MWe):Cl(n,8650752))return!0}return!1}function Wht(n){const a=Lge(!0);if(a)return xN(a,[c2(n)])}function Fht(n){if(LWe(n)){const a=Wht(n);if(a)return a}return N.assert(nte(n)||$8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function cA(n,a,c,...d){const _=yv(n,a,c,...d);return _&&Fht(_)}function yv(n,a,c,...d){if(Nt(n)||nte(n))return n;const _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(U0.lastIndexOf(n.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const k=a?H=>yv(H,a,c,...d):yv;U0.push(n.id);const z=pl(n,k);return U0.pop(),_.awaitedTypeOfType=z}if(LWe(n))return _.awaitedTypeOfType=n;const y={value:void 0},x=$8(n,void 0,y);if(x){if(n.id===x.id||U0.lastIndexOf(x.id)>=0){a&&qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}U0.push(n.id);const k=yv(x,a,c,...d);return U0.pop(),k?_.awaitedTypeOfType=k:void 0}if(MWe(n)){if(a){N.assertIsDefined(c);let k;y.value&&(k=jo(k,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Un(n),Un(y.value))),k=jo(k,c,...d),ts.add(wg(jn(a),a,k))}return}return _.awaitedTypeOfType=n}function zht(n,a,c){const d=bi(a);if(se>=2){if(Kt(d))return;const y=m9(!0);if(y!==ko&&!wb(d,y)){_(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,Un(yv(d)||ir));return}}else{if(Ght(a),Kt(d))return;const y=ML(a);if(y===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,Un(d));return}const x=Hs(y,111551,!0),k=x?dr(x):_t;if(Kt(k)){y.kind===80&&y.escapedText==="Promise"&&dv(d)===m9(!1)?qe(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,mp(y));return}const z=dct(!0);if(z===La){_(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,mp(y));return}const H=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(!nd(k,z,c,H,()=>a===c?void 0:jo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const be=y&&Vp(y),ge=Jd(n.locals,be.escapedText,111551);if(ge){qe(ge.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Sr(be),mp(y));return}}Q8(d,!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 _(y,x,k,z){if(x===k)qe(k,y,z);else{const H=qe(k,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);wa(H,kr(x,y,z))}}}function Bht(n){const a=ON(n);Jee(a,n);const c=ps(a);if(c.flags&1)return;const d=kve(n);if(!d?.resolvedReturnType)return;let _;const y=d.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(!ne){_=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 N.failBadSyntaxKind(n.parent)}nd(c,y,n.expression,_)}function Z8(n,a,c,d,_,y=c.length,x=0){const k=w.createFunctionTypeNode(void 0,et,w.createKeywordTypeNode(133));return Ag(k,n,a,c,d,_,y,x)}function Jve(n,a,c,d,_,y,x){const k=Z8(n,a,c,d,_,y,x);return qT(k)}function kWe(n){return Jve(void 0,void 0,et,n)}function wWe(n){const a=l_("value",n);return Jve(void 0,void 0,[a],ir)}function Ght(n){OWe(n&&ML(n),!1)}function OWe(n,a){if(!n)return;const c=Vp(n),d=(n.kind===80?788968:1920)|2097152,_=bl(c,c.escapedText,d,void 0,void 0,!0);if(_&&_.flags&2097152){if(It&&Gm(_)&&!r6(Fc(_))&&!Ff(_))Tb(_);else if(a&&om(V)&&wu(V)>=5&&!Gm(_)&&!bt(_.declarations,f0)){const y=qe(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),x=An(_.declarations||et,vb);x&&wa(y,kr(x,f._0_was_imported_here,Sr(c)))}}}function zN(n){const a=Kve(n);a&&Zd(a)&&OWe(a,!0)}function Kve(n){if(n)switch(n.kind){case 193:case 192:return WWe(n.types);case 194:return WWe([n.trueType,n.falseType]);case 196:case 202:return Kve(n.type);case 183:return n.typeName}}function WWe(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!Y&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const d=Kve(c);if(!d)return;if(a){if(!Ve(a)||!Ve(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function rte(n){const a=vu(n);return Qh(n)?Sj(a):a}function dB(n){if(!YS(n)||!If(n)||!n.modifiers||!X4(ne,n,n.parent,n.parent.parent))return;const a=An(n.modifiers,Eu);if(a){if(ne?(Nc(a,8),n.kind===169&&Nc(a,32)):se<99&&(Nc(a,8),Ic(n)?n.name?sFe(n)&&Nc(a,8388608):Nc(a,8388608):Zc(n)||(Ji(n.name)&&(ql(n)||Ov(n)||Wd(n))&&Nc(a,8388608),Za(n.name)&&Nc(a,16777216))),V.emitDecoratorMetadata)switch(Nc(a,16),n.kind){case 263:const c=og(n);if(c)for(const x of c.parameters)zN(rte(x));break;case 177:case 178:const d=n.kind===177?178:177,_=fl(Ir(n),d);zN(Vm(n)||_&&Vm(_));break;case 174:for(const x of n.parameters)zN(rte(x));zN(nm(n));break;case 172:zN(vu(n));break;case 169:zN(rte(n));const y=n.parent;for(const x of y.parameters)zN(rte(x));zN(nm(y));break}for(const c of n.modifiers)Eu(c)&&Bht(c)}}function Vht(n){r(a);function a(){zWe(n),gbe(n),u2(n,n.name)}}function jht(n){n.typeExpression||qe(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&p2(n.name,f.Type_alias_name_cannot_be_0),Da(n.typeExpression),gB(kv(n))}function Uht(n){Da(n.constraint);for(const a of n.typeParameters)Da(a)}function Hht(n){Da(n.typeExpression)}function qht(n){Da(n.typeExpression);const a=y0(n);if(a){const c=d4(a,tF);if(Le(c)>1)for(let d=1;d0),c.length>1&&qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const d=FWe(n.class.expression),_=jE(a);if(_){const y=FWe(_.expression);y&&d.escapedText!==y.escapedText&&qe(d,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Sr(n.tagName),Sr(d),Sr(y))}}function egt(n){const a=DS(n);a&&ld(a)&&qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function FWe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function zWe(n){var a;dB(n),X8(n);const c=Vc(n);if(n.name&&n.name.kind===167&&xg(n.name),SN(n)){const y=Ir(n),x=n.localSymbol||y,k=(a=x.declarations)==null?void 0:a.find(z=>z.kind===n.kind&&!(z.flags&524288));n===k&&tte(x),y.parent&&tte(y)}const d=n.kind===173?void 0:n.body;if(Da(d),wve(n,AN(n)),r(_),lr(n)){const y=u0(n);y&&y.typeExpression&&!Zye(bi(y.typeExpression),n)&&qe(y.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){nm(n)||(zl(d)&&!uB(n)&&hE(n,j),c&1&&Yf(d)&&ps(fm(n)))}}function Xb(n){r(a);function a(){const c=jn(n);let d=mf.get(c.path);d||(d=[],mf.set(c.path,d)),d.push(n)}}function BWe(n,a){for(const c of n)switch(c.kind){case 263:case 231:tgt(c,a),Xve(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:jWe(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&jWe(c,a),Xve(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Xve(c,a);break;case 195:ngt(c,a);break;default:N.assertNever(c,"Node should not have been registered for unused identifiers check")}}function GWe(n,a,c){const d=Mo(n)||n,_=zR(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,kr(d,_,a))}function e6(n){return Ve(n)&&Sr(n).charCodeAt(0)===95}function tgt(n,a){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const d=Ir(c);!d.isReferenced&&(hp(c,2)||sd(c)&&Ji(c.name))&&!(c.flags&33554432)&&a(c,0,kr(c.name,f._0_is_declared_but_its_value_is_never_read,vi(d)));break;case 176:for(const _ of c.parameters)!_.symbol.isReferenced&&Zr(_,2)&&a(_,0,kr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,Sl(_.symbol)));break;case 181:case 240:case 175:break;default:N.fail("Unexpected class member")}}function ngt(n,a){const{typeParameter:c}=n;Yve(c)&&a(n,1,kr(n,f._0_is_declared_but_its_value_is_never_read,Sr(c.name)))}function Xve(n,a){const c=Ir(n).declarations;if(!c||Ya(c)!==n)return;const d=kv(n),_=new Set;for(const y of d){if(!Yve(y))continue;const x=Sr(y.name),{parent:k}=y;if(k.kind!==195&&k.typeParameters.every(Yve)){if(Ay(_,k)){const z=jn(k),H=sm(k)?RU(k):DU(z,k.typeParameters),be=k.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,x]:[f.All_type_parameters_are_unused];a(y,1,Qc(z,H.pos,H.end-H.pos,...be))}}else a(y,1,kr(y,f._0_is_declared_but_its_value_is_never_read,x))}}function Yve(n){return!(rs(n.symbol).isReferenced&262144)&&!e6(n.name)}function pB(n,a,c,d){const _=String(d(a)),y=n.get(_);y?y[1].push(c):n.set(_,[a,[c]])}function VWe(n){return ii(C_(n),Ao)}function rgt(n){return Qa(n)?am(n.parent)?!!(n.propertyName&&e6(n.name)):e6(n.name):ku(n)||(wi(n)&&tR(n.parent.parent)||UWe(n))&&e6(n.name)}function jWe(n,a){const c=new Map,d=new Map,_=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(const x of y.declarations)if(!rgt(x))if(UWe(x))pB(c,ogt(x),x,as);else if(Qa(x)&&am(x.parent)){const k=Ya(x.parent.elements);(x===k||!Ya(x.parent.elements).dotDotDotToken)&&pB(d,x.parent,x,as)}else if(wi(x)){const k=oS(x)&7,z=Mo(x);(k!==4&&k!==6||!z||!e6(z))&&pB(_,x.parent,x,as)}else{const k=y.valueDeclaration&&VWe(y.valueDeclaration),z=y.valueDeclaration&&Mo(y.valueDeclaration);k&&z?!fp(k,k.parent)&&!qE(k)&&!e6(z)&&(Qa(x)&&t1(x.parent)?pB(d,x.parent,x,as):a(k,1,kr(z,f._0_is_declared_but_its_value_is_never_read,Sl(y)))):GWe(x,Sl(y),a)}}}),c.forEach(([y,x])=>{const k=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===x.length)a(k,0,x.length===1?kr(k,f._0_is_declared_but_its_value_is_never_read,Sr(Ha(x).name)):kr(k,f.All_imports_in_import_declaration_are_unused));else for(const H of x)GWe(H,Sr(H.name),a)}),d.forEach(([y,x])=>{const k=VWe(y.parent)?1:0;if(y.elements.length===x.length)x.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?pB(_,y.parent.parent,y.parent,as):a(y,k,x.length===1?kr(y,f._0_is_declared_but_its_value_is_never_read,fB(Ha(x).name)):kr(y,f.All_destructured_elements_are_unused));else for(const z of x)a(z,k,kr(z,f._0_is_declared_but_its_value_is_never_read,fB(z.name)))}),_.forEach(([y,x])=>{if(y.declarations.length===x.length)a(y,0,x.length===1?kr(Ha(x).name,f._0_is_declared_but_its_value_is_never_read,fB(Ha(x).name)):kr(y.parent.kind===243?y.parent:y,f.All_variables_are_unused));else for(const k of x)a(k,0,kr(k,f._0_is_declared_but_its_value_is_never_read,fB(k.name)))})}function igt(){var n;for(const a of _g)if(!((n=Ir(a))!=null&&n.isReferenced)){const c=Yx(a);N.assert(UE(c),"Only parameter declaration should be checked here");const d=kr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Rs(a.name),Rs(a.propertyName));c.type||wa(d,Qc(jn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Rs(a.propertyName))),ts.add(d)}}function fB(n){switch(n.kind){case 80:return Sr(n);case 207:case 206:return fB(oa(Ha(n.elements),Qa).name);default:return N.assertNever(n)}}function UWe(n){return n.kind===273||n.kind===276||n.kind===274}function ogt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function ite(n){if(n.kind===241&&by(n),qV(n)){const a=ze;Xe(n.statements,Da),ze=a}else Xe(n.statements,Da);n.locals&&Xb(n)}function agt(n){se>=2||!ej(n)||n.flags&33554432||zl(n.body)||Xe(n.parameters,a=>{a.name&&!ta(a.name)&&a.name.escapedText===Gt.escapedName&&a_("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function t6(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||(Eh(n)||tu(n)||np(n))&&f0(n))return!1;const d=C_(n);return!(Ao(d)&&zl(d.parent.body))}function sgt(n){Gn(n,a=>GN(a)&4?(n.kind!==80?qe(Mo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):qe(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function lgt(n){Gn(n,a=>GN(a)&8?(n.kind!==80?qe(Mo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):qe(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function cgt(n,a){if(G>=5&&!(G>=100&&jn(n).impliedNodeFormat===1)||!a||!t6(n,a,"require")&&!t6(n,a,"exports")||Xl(n)&&Hg(n)!==1)return;const c=Q(n);c.kind===312&&zp(c)&&a_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Rs(a),Rs(a))}function ugt(n,a){if(!a||se>=4||!t6(n,a,"Promise")||Xl(n)&&Hg(n)!==1)return;const c=Q(n);c.kind===312&&zp(c)&&c.flags&4096&&a_("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Rs(a),Rs(a))}function dgt(n,a){se<=8&&(t6(n,a,"WeakMap")||t6(n,a,"WeakSet"))&&fb.push(n)}function pgt(n){const a=_h(n);GN(a)&1048576&&(N.assert(sd(n)&&Ve(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),a_("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function fgt(n,a){a&&se>=2&&se<=8&&t6(n,a,"Reflect")&&mb.push(n)}function mgt(n){let a=!1;if(Zc(n)){for(const c of n.members)if(GN(c)&2097152){a=!0;break}}else if(Os(n))GN(n)&2097152&&(a=!0);else{const c=_h(n);c&&GN(c)&2097152&&(a=!0)}a&&(N.assert(sd(n)&&Ve(n.name),"The target of a Reflect collision check should be an identifier"),a_("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Rs(n.name),"Reflect"))}function u2(n,a){a&&(cgt(n,a),ugt(n,a),dgt(n,a),fgt(n,a),ui(n)?(p2(a,f.Class_name_cannot_be_0),n.flags&33554432||Vgt(a)):I0(n)&&p2(a,f.Enum_name_cannot_be_0))}function _gt(n){if((oS(n)&7)!==0||UE(n))return;const a=Ir(n);if(a.flags&1){if(!Ve(n.name))return N.fail();const c=bl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&sve(c)&7){const d=v0(c.valueDeclaration,261),_=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(_&&(_.kind===241&&ea(_.parent)||_.kind===268||_.kind===267||_.kind===312))){const x=vi(c);qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function n6(n){return n===ot?j:n===Jc?ec:n}function mB(n){var a;if(dB(n),Qa(n)||Da(n.type),!n.name)return;if(n.name.kind===167&&(xg(n.name),vS(n)&&n.initializer&&nc(n.initializer)),Qa(n)){if(n.propertyName&&Ve(n.name)&&UE(n)&&zl(Gp(n).body)){_g.push(n);return}am(n.parent)&&n.dotDotDotToken&&se<5&&Nc(n,4),n.propertyName&&n.propertyName.kind===167&&xg(n.propertyName);const _=n.parent.parent,y=n.dotDotDotToken?32:0,x=Fr(_,y),k=n.propertyName||n.name;if(x&&!ta(k)){const z=_v(k);if(rm(z)){const H=im(z),re=va(x,H);re&&(X9(re,void 0,!1),cve(n,!!_.initializer&&_.initializer.kind===108,!1,x,re))}}}if(ta(n.name)&&(n.name.kind===207&&se<2&&V.downlevelIteration&&Nc(n,512),Xe(n.name.elements,Da)),n.initializer&&UE(n)&&zl(Gp(n).body)){qe(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ta(n.name)){if(Lye(n))return;const _=vS(n)&&n.initializer&&n.parent.parent.kind!==249,y=!bt(n.name.elements,C6(jc));if(_||y){const x=B(n);if(_){const k=nc(n.initializer);Y&&y?d3e(k,n):Ub(k,B(n),n,n.initializer)}y&&(t1(n.name)?vv(65,x,Oe,n):Y&&d3e(x,n))}return}const c=Ir(n);if(c.flags&2097152&&(BE(n)||bie(n))){cte(n);return}const d=n6(dr(c));if(n===c.valueDeclaration){const _=vS(n)&&OL(n);if(_&&!(lr(n)&&Oa(_)&&(_.properties.length===0||Hv(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const x=nc(_);Ub(x,d,n,_,void 0);const k=oS(n)&7;if(k===6){const z=bct(!0),H=w8e(!0);if(z!==La&&H!==La){const re=ti([z,H,me,Oe]);nd(x,re,_,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(k===4){const z=w8e(!0);if(z!==La){const H=ti([z,me,Oe]);nd(x,H,_,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&&bt(c.declarations,y=>y!==n&&dR(y)&&!qWe(y,n))&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Rs(n.name))}else{const _=n6(B(n));!Kt(d)&&!Kt(_)&&!_y(d,_)&&!(c.flags&67108864)&&HWe(c.valueDeclaration,d,n,_),vS(n)&&n.initializer&&Ub(nc(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!qWe(n,c.valueDeclaration)&&qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Rs(n.name))}n.kind!==172&&n.kind!==171&&(Y8(n),(n.kind===260||n.kind===208)&&_gt(n),u2(n,n.name))}function HWe(n,a,c,d){const _=Mo(c),y=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,x=Rs(_),k=qe(_,y,x,Un(a),Un(d));n&&wa(k,kr(n,f._0_was_also_declared_here,x))}function qWe(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(OA(n)!==OA(a))return!1;const c=1358;return GA(n,c)===GA(a,c)}function hgt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),$vt(n),mB(n),(c=sr)==null||c.pop()}function ggt(n){return Kvt(n),mB(n)}function ote(n){const a=Ly(n)&7;(a===4||a===6)&&Nc(n,33554432),Xe(n.declarations,Da)}function ygt(n){!Dg(n)&&!bbe(n.declarationList)&&Qvt(n),ote(n.declarationList)}function vgt(n){by(n),mo(n.expression)}function bgt(n){by(n);const a=d2(n.expression);$ve(n.expression,a,n.thenStatement),Da(n.thenStatement),n.thenStatement.kind===242&&qe(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),Da(n.elseStatement)}function $ve(n,a,c){if(!Y)return;d(n,c);function d(y,x){for(y=hs(y),_(y,x);mr(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=hs(y.left),_(y,x)}function _(y,x){const k=sk(y)?hs(y.right):y;if(ng(k))return;if(sk(k)){d(k,x);return}const z=k===y?a:d2(k),H=Wr(k)&&hWe(k.expression);if(!_m(z,4194304)||H)return;const re=Yo(z,0),be=!!l2(z);if(re.length===0&&!be)return;const ge=Ve(k)?k:Wr(k)?k.name:void 0,Je=ge&&Hm(ge);if(!Je&&!be)return;Je&&mr(y.parent)&&Sgt(y.parent,Je)||Je&&x&&Egt(y,x,ge,Je)||(be?J0(k,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,Rb(z)):qe(k,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Egt(n,a,c,d){return!!Ho(a,function _(y){if(Ve(y)){const x=Hm(y);if(x&&x===d){if(Ve(n)||Ve(c)&&mr(c.parent))return!0;let k=c.parent,z=y.parent;for(;k&&z;){if(Ve(k)&&Ve(z)||k.kind===110&&z.kind===110)return Hm(k)===Hm(z);if(Wr(k)&&Wr(z)){if(Hm(k.name)!==Hm(z.name))return!1;z=z.expression,k=k.expression}else if(sa(k)&&sa(z))z=z.expression,k=k.expression;else return!1}}}return Ho(y,_)})}function Sgt(n,a){for(;mr(n)&&n.operatorToken.kind===56;){if(Ho(n.right,function d(_){if(Ve(_)){const y=Hm(_);if(y&&y===a)return!0}return Ho(_,d)}))return!0;n=n.parent}return!1}function Tgt(n){by(n),Da(n.statement),d2(n.expression)}function Agt(n){by(n),d2(n.expression),Da(n.statement)}function Qve(n,a){return n.flags&16384&&qe(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function d2(n,a){return Qve(mo(n,a),n)}function Igt(n){by(n)||n.initializer&&n.initializer.kind===261&&bbe(n.initializer),n.initializer&&(n.initializer.kind===261?ote(n.initializer):mo(n.initializer)),n.condition&&d2(n.condition),n.incrementor&&mo(n.incrementor),Da(n.statement),n.locals&&Xb(n)}function xgt(n){jFe(n);const a=U4(n);if(n.awaitModifier?a&&Rl(a)?En(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(Vc(a)&6)===2&&se<99&&Nc(n,16384):V.downlevelIteration&&se<2&&Nc(n,256),n.initializer.kind===261)ote(n.initializer);else{const c=n.initializer,d=_B(n);if(c.kind===209||c.kind===210)lA(c,d||_t);else{const _=mo(c);K8(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),d&&Ub(d,_,c,n.expression)}}Da(n.statement),n.locals&&Xb(n)}function Rgt(n){jFe(n);const a=uve(mo(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&ta(c.name)&&qe(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),ote(n.initializer)}else{const c=n.initializer,d=mo(c);c.kind===209||c.kind===210?qe(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Ea(sut(a),d)?K8(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):qe(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Vr||!xu(a,126091264))&&qe(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,Un(a)),Da(n.statement),n.locals&&Xb(n)}function _B(n){const a=n.awaitModifier?15:13;return vv(a,kN(n.expression),Oe,n.expression)}function vv(n,a,c,d){return Nt(a)?a:Zve(n,a,c,d,!0)||j}function Zve(n,a,c,d,_){const y=(n&2)!==0;if(a===Vr){ibe(d,a,y);return}const x=se>=2,k=!x&&V.downlevelIteration,z=V.noUncheckedIndexedAccess&&!!(n&128);if(x||k||y){const gt=ste(a,n,x?d:void 0);if(_&>){const Dt=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;Dt&&nd(c,gt.nextType,d,Dt)}if(gt||x)return z?G8(gt&>.yieldType):gt&>.yieldType}let H=a,re=!1,be=!1;if(n&4){if(H.flags&1048576){const gt=a.types,Dt=nr(gt,an=>!(an.flags&402653316));Dt!==gt&&(H=ti(Dt,2))}else H.flags&402653316&&(H=Vr);if(be=H!==a,be&&(se<1&&d&&(qe(d,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),H.flags&131072))return z?G8(ke):ke}if(!gv(H)){if(d&&!re){const gt=!!(n&4)&&!be,[Dt,an]=Je(gt,k);J0(d,an&&!!l2(H),Dt,Un(H))}return be?z?G8(ke):ke:void 0}const ge=uE(H,Tt);if(be&&ge)return ge.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ti(z?[ge,ke,Oe]:[ge,ke],2);return n&128?G8(ge):ge;function Je(gt,Dt){var an;return Dt?gt?[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]:ebe(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]:Dgt((an=a.symbol)==null?void 0:an.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:gt?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Dgt(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 ebe(n,a,c,d){if(Nt(c))return;const _=ste(c,n,d);return _&&_[oxe(a)]}function bv(n=Vr,a=Vr,c=_n){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const d=mm([n,a,c]);let _=xi.get(d);return _||(_={yieldType:n,returnType:a,nextType:c},xi.set(d,_)),_}return{yieldType:n,returnType:a,nextType:c}}function JWe(n){let a,c,d;for(const _ of n)if(!(_===void 0||_===Mr)){if(_===$o)return $o;a=xn(a,_.yieldType),c=xn(c,_.returnType),d=xn(d,_.nextType)}return a||c||d?bv(a&&ti(a),c&&ti(c),d&&ba(d)):Mr}function ate(n,a){return n[a]}function Rg(n,a,c){return n[a]=c}function ste(n,a,c){var d,_;if(Nt(n))return $o;if(!(n.flags&1048576)){const H=c?{errors:void 0}:void 0,re=KWe(n,a,c,H);if(re===Mr){if(c){const be=ibe(c,n,!!(a&2));H?.errors&&wa(be,...H.errors)}return}else if((d=H?.errors)!=null&&d.length)for(const be of H.errors)ts.add(be);return re}const y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=ate(n,y);if(x)return x===Mr?void 0:x;let k;for(const H of n.types){const re=c?{errors:void 0}:void 0,be=KWe(H,a,c,re);if(be===Mr){if(c){const ge=ibe(c,n,!!(a&2));re?.errors&&wa(ge,...re.errors)}Rg(n,y,Mr);return}else if((_=re?.errors)!=null&&_.length)for(const ge of re.errors)ts.add(ge);k=xn(k,be)}const z=k?JWe(k):Mr;return Rg(n,y,z),z===Mr?void 0:z}function tbe(n,a){if(n===Mr)return Mr;if(n===$o)return $o;const{yieldType:c,returnType:d,nextType:_}=n;return a&&Lge(!0),bv(cA(c,a)||j,cA(d,a)||j,_)}function KWe(n,a,c,d){if(Nt(n))return $o;let _=!1;if(a&2){const y=nbe(n,Us)||YWe(n,Us);if(y)if(y===Mr&&c)_=!0;else return a&8?tbe(y,c):y}if(a&1){let y=nbe(n,gc)||YWe(n,gc);if(y)if(y===Mr&&c)_=!0;else if(a&2){if(y!==Mr)return y=tbe(y,c),_?y:Rg(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){const y=rbe(n,Us,c,d,_);if(y!==Mr)return y}if(a&1){let y=rbe(n,gc,c,d,_);if(y!==Mr)return a&2?(y=tbe(y,c),_?y:Rg(n,"iterationTypesOfAsyncIterable",y)):y}return Mr}function nbe(n,a){return ate(n,a.iterableCacheKey)}function XWe(n,a){const c=nbe(n,a)||rbe(n,a,void 0,void 0,!1);return c===Mr?Hc:c}function YWe(n,a){let c;if(wb(n,c=a.getGlobalIterableType(!1))||wb(n,c=a.getGlobalIterableIteratorType(!1))){const[d]=Js(n),{returnType:_,nextType:y}=XWe(c,a);return Rg(n,a.iterableCacheKey,bv(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}if(wb(n,a.getGlobalGeneratorType(!1))){const[d,_,y]=Js(n);return Rg(n,a.iterableCacheKey,bv(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(_,void 0)||_,y))}}function $We(n){const a=M8e(!1),c=a&&Ke(dr(a),hl(n));return c&&rm(c)?im(c):`__@${n}`}function rbe(n,a,c,d,_){const y=va(n,$We(a.iteratorSymbolName)),x=y&&!(y.flags&16777216)?dr(y):void 0;if(Nt(x))return _?$o:Rg(n,a.iterableCacheKey,$o);const k=x?Yo(x,0):void 0;if(!bt(k))return _?Mr:Rg(n,a.iterableCacheKey,Mr);const z=ba(Ot(k,ps)),H=QWe(z,a,c,d,_)??Mr;return _?H:Rg(n,a.iterableCacheKey,H)}function ibe(n,a,c){const d=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,_=!!l2(a)||!c&&Hk(n.parent)&&n.parent.expression===n&&VZ(!1)!==ko&&Ea(a,VZ(!1));return J0(n,_,d,Un(a))}function Ngt(n,a,c,d){return QWe(n,a,c,d,!1)}function QWe(n,a,c,d,_){if(Nt(n))return $o;let y=ZWe(n,a)||Cgt(n,a);return y===Mr&&c&&(y=void 0,_=!0),y??(y=tFe(n,a,c,d,_)),y===Mr?void 0:y}function ZWe(n,a){return ate(n,a.iteratorCacheKey)}function Cgt(n,a){const c=a.getGlobalIterableIteratorType(!1);if(wb(n,c)){const[d]=Js(n),_=ZWe(c,a)||tFe(c,a,void 0,void 0,!1),{returnType:y,nextType:x}=_===Mr?Hc:_;return Rg(n,a.iteratorCacheKey,bv(d,y,x))}if(wb(n,a.getGlobalIteratorType(!1))||wb(n,a.getGlobalGeneratorType(!1))){const[d,_,y]=Js(n);return Rg(n,a.iteratorCacheKey,bv(d,_,y))}}function eFe(n,a){const c=Ke(n,"done")||en;return Ea(a===0?en:Bn,c)}function Pgt(n){return eFe(n,0)}function Mgt(n){return eFe(n,1)}function Lgt(n){if(Nt(n))return $o;const a=ate(n,"iterationTypesOfIteratorResult");if(a)return a;if(wb(n,yct(!1))){const x=Js(n)[0];return Rg(n,"iterationTypesOfIteratorResult",bv(x,void 0,void 0))}if(wb(n,vct(!1))){const x=Js(n)[0];return Rg(n,"iterationTypesOfIteratorResult",bv(void 0,x,void 0))}const c=uc(n,Pgt),d=c!==Vr?Ke(c,"value"):void 0,_=uc(n,Mgt),y=_!==Vr?Ke(_,"value"):void 0;return!d&&!y?Rg(n,"iterationTypesOfIteratorResult",Mr):Rg(n,"iterationTypesOfIteratorResult",bv(d,y||ir,void 0))}function obe(n,a,c,d,_){var y,x,k,z;const H=va(n,c);if(!H&&c!=="next")return;const re=H&&!(c==="next"&&H.flags&16777216)?c==="next"?dr(H):hm(dr(H),2097152):void 0;if(Nt(re))return c==="next"?$o:Tl;const be=re?Yo(re,0):et;if(be.length===0){if(d){const ln=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(kr(d,ln,c))):qe(d,ln,c)}return c==="next"?Mr:void 0}if(re?.symbol&&be.length===1){const ln=a.getGlobalGeneratorType(!1),zn=a.getGlobalIteratorType(!1),Fn=((x=(y=ln.symbol)==null?void 0:y.members)==null?void 0:x.get(c))===re.symbol,er=!Fn&&((z=(k=zn.symbol)==null?void 0:k.members)==null?void 0:z.get(c))===re.symbol;if(Fn||er){const qn=Fn?ln:zn,{mapper:tr}=re;return bv(Vb(qn.typeParameters[0],tr),Vb(qn.typeParameters[1],tr),c==="next"?Vb(qn.typeParameters[2],tr):void 0)}}let ge,Je;for(const ln of be)c!=="throw"&&bt(ln.parameters)&&(ge=xn(ge,v_(ln,0))),Je=xn(Je,ps(ln));let gt,Dt;if(c!=="throw"){const ln=ge?ti(ge):_n;if(c==="next")Dt=ln;else if(c==="return"){const zn=a.resolveIterationType(ln,d)||j;gt=xn(gt,zn)}}let an;const cn=Je?ba(Je):Vr,ar=a.resolveIterationType(cn,d)||j,On=Lgt(ar);return On===Mr?(d&&(_?(_.errors??(_.errors=[]),_.errors.push(kr(d,a.mustHaveAValueDiagnostic,c))):qe(d,a.mustHaveAValueDiagnostic,c)),an=j,gt=xn(gt,j)):(an=On.yieldType,gt=xn(gt,On.returnType)),bv(an,ti(gt),Dt)}function tFe(n,a,c,d,_){const y=JWe([obe(n,a,"next",c,d),obe(n,a,"return",c,d),obe(n,a,"throw",c,d)]);return _?y:Rg(n,a.iteratorCacheKey,y)}function nS(n,a,c){if(Nt(a))return;const d=nFe(a,c);return d&&d[oxe(n)]}function nFe(n,a){if(Nt(n))return $o;const c=a?2:1,d=a?Us:gc;return ste(n,c,void 0)||Ngt(n,d,void 0,void 0)}function kgt(n){by(n)||Jvt(n)}function hB(n,a){const c=!!(a&1),d=!!(a&2);if(c){const _=nS(1,n,d);return _?d?yv(c2(_)):_:_t}return d?yv(n)||_t:n}function rFe(n,a){const c=hB(a,Vc(n));return!!(c&&(Cl(c,16384)||c.flags&32769))}function wgt(n){if(by(n))return;const a=U4(n);if(a&&Rl(a)){hu(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){hu(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=fm(a),d=ps(c),_=Vc(a);if(Y||n.expression||d.flags&131072){const y=n.expression?nc(n.expression):Oe;if(a.kind===178)n.expression&&qe(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Ub(y,d,n,n.expression)&&qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(AN(a)){const x=hB(d,_)??d,k=_&2?Q8(y,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y;x&&Ub(k,x,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!rFe(a,d)&&qe(n,f.Not_all_code_paths_return_a_value)}function Ogt(n){by(n)||n.flags&65536&&hu(n,f.with_statements_are_not_allowed_in_an_async_function_block),mo(n.expression);const a=jn(n);if(!rS(a)){const c=hh(a,n.pos).start,d=n.statement.pos;iS(a,c,d-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Wgt(n){by(n);let a,c=!1;const d=mo(n.expression);Xe(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(En(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(y(_)),Xe(_.statements,Da),V.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&F9(_.fallthroughFlowNode)&&qe(_,f.Fallthrough_case_in_switch);function y(x){return()=>{const k=mo(x.expression);zve(d,k)||N6e(k,d,x.expression,void 0)}}}),n.caseBlock.locals&&Xb(n.caseBlock)}function Fgt(n){by(n)||Gn(n.parent,a=>ea(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(En(n.label,f.Duplicate_label_0,pc(n.label)),!0):!1),Da(n.statement)}function zgt(n){by(n)||Ve(n.expression)&&!n.expression.escapedText&&lbt(n,f.Line_break_not_permitted_here),n.expression&&mo(n.expression)}function Bgt(n){by(n),ite(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;mB(c);const d=vu(c);if(d){const _=bi(d);_&&!(_.flags&3)&&hu(d,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)hu(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const _=a.block.locals;_&&mh(a.locals,y=>{const x=_.get(y);x?.valueDeclaration&&(x.flags&2)!==0&&En(x.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(y))})}}ite(a.block)}n.finallyBlock&&ite(n.finallyBlock)}function lte(n,a,c){const d=yd(n);if(d.length===0)return;for(const y of Wb(n))c&&y.flags&4194304||iFe(n,y,DN(y,8576,!0),kb(y));const _=a.valueDeclaration;if(_&&ui(_)){for(const y of _.members)if(!aa(y)&&!SN(y)){const x=Ir(y);iFe(n,x,Ru(y.name.expression),kb(x))}}if(d.length>1)for(const y of d)Ggt(n,y)}function iFe(n,a,c,d){const _=a.valueDeclaration,y=Mo(_);if(y&&Ji(y))return;const x=_ge(n,c),k=Or(n)&2?fl(n.symbol,264):void 0,z=_&&_.kind===226||y&&y.kind===167?_:void 0,H=Cd(a)===n.symbol?_:void 0;for(const re of x){const be=re.declaration&&Cd(Ir(re.declaration))===n.symbol?re.declaration:void 0,ge=H||be||(k&&!bt(Pp(n),Je=>!!cE(Je,a.escapedName)&&!!uE(Je,re.keyType))?k:void 0);if(ge&&!Ea(d,re.type)){const Je=yT(ge,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,vi(a),Un(d),Un(re.keyType),Un(re.type));z&&ge!==z&&wa(Je,kr(z,f._0_is_declared_here,vi(a))),ts.add(Je)}}}function Ggt(n,a){const c=a.declaration,d=_ge(n,a.keyType),_=Or(n)&2?fl(n.symbol,264):void 0,y=c&&Cd(Ir(c))===n.symbol?c:void 0;for(const x of d){if(x===a)continue;const k=x.declaration&&Cd(Ir(x.declaration))===n.symbol?x.declaration:void 0,z=y||k||(_&&!bt(Pp(n),H=>!!Ig(H,a.keyType)&&!!uE(H,x.keyType))?_:void 0);z&&!Ea(a.type,x.type)&&qe(z,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Un(a.keyType),Un(a.type),Un(x.keyType),Un(x.type))}}function p2(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":qe(n,a,n.escapedText)}}function Vgt(n){se>=1&&n.escapedText==="Object"&&(G<5||jn(n).impliedNodeFormat===1)&&qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,ZN[G])}function jgt(n){const a=nr(p0(n),r_);if(!Le(a))return;const c=lr(n),d=new Set,_=new Set;if(Xe(n.parameters,({name:x},k)=>{Ve(x)&&d.add(x.escapedText),ta(x)&&_.add(k)}),gge(n)){const x=a.length-1,k=a[x];c&&k&&Ve(k.name)&&k.typeExpression&&k.typeExpression.type&&!d.has(k.name.escapedText)&&!_.has(x)&&!qf(bi(k.typeExpression.type))&&qe(k.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,Sr(k.name))}else Xe(a,({name:x,isNameFirst:k},z)=>{_.has(z)||Ve(x)&&d.has(x.escapedText)||(Id(x)?c&&qe(x,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,mp(x),mp(x.left)):k||_u(c,x,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Sr(x)))})}function gB(n){let a=!1;if(n)for(let d=0;d{d.default?(a=!0,Ugt(d.default,n,_)):a&&qe(d,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<_;y++)n[y].symbol===d.symbol&&qe(d.name,f.Duplicate_identifier_0,Rs(d.name))}}}function Ugt(n,a,c){d(n);function d(_){if(_.kind===183){const y=Rge(_);if(y.flags&262144)for(let x=c;xd)return!1;for(let z=0;zfc(c)&&ld(c))&&En(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Zr(n,2048)&&hu(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),lFe(n),Xe(n.members,Da),Xb(n)}function lFe(n){Mvt(n),dB(n),u2(n,n.name),gB(kv(n)),Y8(n);const a=Ir(n),c=el(a),d=Kp(c),_=dr(a);oFe(a),tte(a),cht(n),!!(n.flags&33554432)||uht(n);const x=D_(n);if(x){Xe(x.typeArguments,Da),se<2&&Nc(x.parent,1);const H=jE(n);H&&H!==x&&mo(H.expression);const re=Pp(c);re.length&&r(()=>{const be=re[0],ge=Cp(c),Je=Ld(ge);if(Ygt(Je,x),Da(x.expression),bt(x.typeArguments)){Xe(x.typeArguments,Da);for(const Dt of td(Je,x.typeArguments,x))if(!NWe(x,Dt.typeParameters))break}const gt=Kp(be,c.thisType);if(nd(d,gt,void 0)?nd(_,T6e(Je),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):dFe(n,d,gt,f.Class_0_incorrectly_extends_base_class_1),ge.flags&8650752&&(Mi(_)?Yo(ge,1).some(an=>an.flags&4)&&!Zr(n,64)&&qe(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):qe(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)&&!(ge.flags&8650752)){const Dt=Fh(Je,x.typeArguments,x);Xe(Dt,an=>!nh(an.declaration)&&!_y(ps(an),be))&&qe(x.expression,f.Base_constructors_must_all_have_the_same_return_type)}Zgt(c,be)})}Xgt(n,c,d,_);const k=TR(n);if(k)for(const H of k)(!Gl(H.expression)||qu(H.expression))&&qe(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),qve(H),r(z(H));r(()=>{lte(c,a),lte(_,a,!0),jve(n),nyt(n)});function z(H){return()=>{const re=h_(bi(H));if(!Kt(re))if(r9(re)){const be=re.symbol&&re.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,ge=Kp(re,c.thisType);nd(d,ge,void 0)||dFe(n,d,ge,be)}else qe(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Xgt(n,a,c,d){const y=D_(n)&&Pp(a),x=y?.length?Kp(Ha(y),a.thisType):void 0,k=Cp(a);for(const z of n.members)rU(z)||(Ml(z)&&Xe(z.parameters,H=>{fp(H,z)&&cFe(n,d,k,x,a,c,H,!0)}),cFe(n,d,k,x,a,c,z,!1))}function cFe(n,a,c,d,_,y,x,k,z=!0){const H=x.name&&Hm(x.name)||Hm(x);return H?uFe(n,a,c,d,_,y,b3(x),KE(x),aa(x),k,Sl(H),z?x:void 0):0}function uFe(n,a,c,d,_,y,x,k,z,H,re,be){const ge=lr(n),Je=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){const gt=hl(re),Dt=z?a:y,an=z?c:d,cn=va(Dt,gt),ar=va(an,gt),On=Un(d);if(cn&&!ar&&x){if(be){const ln=v3e(re,an);ln?qe(be,ge?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,On,vi(ln)):qe(be,ge?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,On)}return 2}else if(cn&&ar?.declarations&&V.noImplicitOverride&&!Je){const ln=bt(ar.declarations,KE);if(x)return 0;if(ln){if(k&&ln)return be&&qe(be,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,On),1}else{if(be){const zn=H?ge?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:ge?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;qe(be,zn,On)}return 1}}}else if(x){if(be){const gt=Un(_);qe(be,ge?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,gt)}return 2}return 0}function dFe(n,a,c,d){let _=!1;for(const y of n.members){if(aa(y))continue;const x=y.name&&Hm(y.name)||Hm(y);if(x){const k=va(a,x.escapedName),z=va(c,x.escapedName);if(k&&z){const H=()=>jo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,vi(x),Un(a),Un(c));nd(dr(k),dr(z),y.name||y,void 0,H)||(_=!0)}}}_||nd(a,c,n.name||n,d)}function Ygt(n,a){const c=Yo(n,1);if(c.length){const d=c[0].declaration;if(d&&hp(d,2)){const _=zg(n.symbol);dbe(a,_)||qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,qp(n.symbol))}}}function $gt(n,a,c){if(!a.name)return 0;const d=Ir(n),_=el(d),y=Kp(_),x=dr(d),z=D_(n)&&Pp(_),H=z?.length?Kp(Ha(z),_.thisType):void 0,re=Cp(_),be=a.parent?b3(a):Zr(a,16);return uFe(n,x,re,H,_,y,be,KE(a),aa(a),!1,Sl(c))}function BN(n){return xl(n)&1?n.links.target:n}function Qgt(n){return nr(n.declarations,a=>a.kind===263||a.kind===264)}function Zgt(n,a){var c,d,_,y;const x=gs(a);let k;e:for(const z of x){const H=BN(z);if(H.flags&4194304)continue;const re=cE(n,H.escapedName);if(!re)continue;const be=BN(re),ge=Df(H);if(N.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===H){const Je=zg(n.symbol);if(ge&64&&(!Je||!Zr(Je,64))){for(const gt of Pp(n)){if(gt===a)continue;const Dt=cE(gt,H.escapedName),an=Dt&&BN(Dt);if(an&&an!==H)continue e}k||(k=qe(Je,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Un(n),Un(a))),Je.kind===231?wa(k,kr(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Je,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,vi(z),Un(a))):wa(k,kr(z.valueDeclaration??(z.declarations&&Ha(z.declarations))??Je,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Un(n),vi(z),Un(a)))}}else{const Je=Df(be);if(ge&2||Je&2)continue;let gt;const Dt=H.flags&98308,an=be.flags&98308;if(Dt&&an){if((xl(H)&6?(c=H.declarations)!=null&&c.some(On=>pFe(On,ge)):(d=H.declarations)!=null&&d.every(On=>pFe(On,ge)))||xl(H)&262144||be.valueDeclaration&&mr(be.valueDeclaration))continue;const cn=Dt!==4&&an===4;if(cn||Dt===4&&an!==4){const On=cn?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;qe(Mo(be.valueDeclaration)||be.valueDeclaration,On,vi(H),Un(a),Un(n))}else if(he){const On=(_=be.declarations)==null?void 0:_.find(ln=>ln.kind===172&&!ln.initializer);if(On&&!(be.flags&33554432)&&!(ge&64)&&!(Je&64)&&!((y=be.declarations)!=null&&y.some(ln=>!!(ln.flags&33554432)))){const ln=oy(zg(n.symbol)),zn=On.name;if(On.exclamationToken||!ln||!Ve(zn)||!Y||!mFe(zn,n,ln)){const Fn=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;qe(Mo(be.valueDeclaration)||be.valueDeclaration,Fn,vi(H),Un(a))}}}continue}else if(lve(H)){if(lve(be)||be.flags&4)continue;N.assert(!!(be.flags&98304)),gt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else H.flags&98304?gt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:gt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;qe(Mo(be.valueDeclaration)||be.valueDeclaration,gt,Un(a),vi(H),Un(n))}}}function pFe(n,a){return a&64&&(!Jo(n)||!n.initializer)||_d(n.parent)}function eyt(n,a,c){if(!Le(a))return c;const d=new Map;Xe(c,_=>{d.set(_.escapedName,_)});for(const _ of a){const y=gs(Kp(_,n.thisType));for(const x of y){const k=d.get(x.escapedName);k&&x.parent===k.parent&&d.delete(x.escapedName)}}return zo(d.values())}function tyt(n,a){const c=Pp(n);if(c.length<2)return!0;const d=new Map;Xe(Qhe(n).declaredProperties,y=>{d.set(y.escapedName,{prop:y,containingType:n})});let _=!0;for(const y of c){const x=gs(Kp(y,n.thisType));for(const k of x){const z=d.get(k.escapedName);if(!z)d.set(k.escapedName,{prop:k,containingType:y});else if(z.containingType!==n&&!fdt(z.prop,k)){_=!1;const re=Un(z.containingType),be=Un(y);let ge=jo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,vi(k),re,be);ge=jo(ge,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Un(n),re,be),ts.add(wg(jn(a),a,ge))}}}return _}function nyt(n){if(!Y||!Ne||n.flags&33554432)return;const a=oy(n);for(const c of n.members)if(!(dd(c)&128)&&!aa(c)&&fFe(c)){const d=c.name;if(Ve(d)||Ji(d)||Za(d)){const _=dr(Ir(c));_.flags&3||JM(_)||(!a||!mFe(d,_,a))&&qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Rs(d))}}}function fFe(n){return n.kind===172&&!KE(n)&&!n.exclamationToken&&!n.initializer}function ryt(n,a,c,d,_){for(const y of c)if(y.pos>=d&&y.pos<=_){const x=w.createPropertyAccessExpression(w.createThis(),n);qa(x.expression,x),qa(x,y),x.flowNode=y.returnFlowNode;const k=Kb(x,a,qb(a));if(!JM(k))return!0}return!1}function mFe(n,a,c){const d=Za(n)?w.createElementAccessExpression(w.createThis(),n.expression):w.createPropertyAccessExpression(w.createThis(),n);qa(d.expression,d),qa(d,c),d.flowNode=c.returnFlowNode;const _=Kb(d,a,qb(a));return!JM(_)}function iyt(n){Dg(n)||zvt(n),gB(n.typeParameters),r(()=>{p2(n.name,f.Interface_name_cannot_be_0),Y8(n);const a=Ir(n);oFe(a);const c=fl(a,264);if(n===c){const d=el(a),_=Kp(d);if(tyt(d,n.name)){for(const y of Pp(d))nd(_,Kp(y,d.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);lte(d,a)}}IWe(n)}),Xe(CC(n),a=>{(!Gl(a.expression)||qu(a.expression))&&qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),qve(a)}),Xe(n.members,Da),r(()=>{jve(n),Xb(n)})}function oyt(n){Dg(n),p2(n.name,f.Type_alias_name_cannot_be_0),Y8(n),gB(n.typeParameters),n.type.kind===141?(!GF.has(n.name.escapedText)||Le(n.typeParameters)!==1)&&qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Da(n.type),Xb(n))}function _Fe(n){const a=ei(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const d of n.members){const _=ayt(d,c);ei(d).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function ayt(n,a){if(AL(n.name))qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{const c=sR(n.name);lg(c)&&!rP(c)&&qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return syt(n);if(!(n.parent.flags&33554432&&!WE(n.parent))){if(a!==void 0)return a;qe(n.name,f.Enum_member_must_have_initializer)}}function syt(n){const a=WE(n.parent),c=n.initializer,d=f2(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&qe(c,isNaN(d)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?qe(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?qe(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):nd(mo(c),Tt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function f2(n,a){switch(n.kind){case 224:const c=f2(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:const d=f2(n.left,a),_=f2(n.right,a);if(typeof d=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return d|_;case 51:return d&_;case 49:return d>>_;case 50:return d>>>_;case 48:return d<<_;case 53:return d^_;case 42:return d*_;case 44:return d/_;case 40:return d+_;case 41:return d-_;case 45:return d%_;case 43:return d**_}else if((typeof d=="string"||typeof d=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+d+_;break;case 11:case 15:return n.text;case 228:return gFe(n,a);case 9:return Ebe(n),+n.text;case 217:return f2(n.expression,a);case 80:{const x=n;if(rP(x.escapedText)&&Hs(x,111551,!0)===HM(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(Gl(n)){const x=Hs(n,111551,!0);if(x){if(x.flags&8)return a?hFe(n,x,a):VN(x.valueDeclaration);if(n2(x)){const k=x.valueDeclaration;if(k&&wi(k)&&!k.type&&k.initializer&&(!a||k!==a&&ty(k,a)))return f2(k.initializer,k)}}}break;case 212:const y=n.expression;if(Gl(y)&&ls(n.argumentExpression)){const x=Hs(y,111551,!0);if(x&&x.flags&384){const k=hl(n.argumentExpression.text),z=x.exports.get(k);if(z)return a?hFe(n,z,a):VN(z.valueDeclaration)}}break}}function hFe(n,a,c){const d=a.valueDeclaration;if(!d||d===c){qe(n,f.Property_0_is_used_before_being_assigned,vi(a));return}return ty(d,c)?VN(d):(qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function gFe(n,a){let c=n.head.text;for(const d of n.templateSpans){const _=f2(d.expression,a);if(_===void 0)return;c+=_,c+=d.literal.text}return c}function lyt(n){r(()=>cyt(n))}function cyt(n){Dg(n),u2(n,n.name),Y8(n),n.members.forEach(uyt),_Fe(n);const a=Ir(n),c=fl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const _=WE(n);Xe(a.declarations,y=>{I0(y)&&WE(y)!==_&&qe(Mo(y),f.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Xe(a.declarations,_=>{if(_.kind!==266)return!1;const y=_;if(!y.members.length)return!1;const x=y.members[0];x.initializer||(d?qe(x.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function uyt(n){Ji(n.name)&&qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&mo(n.initializer)}function dyt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===263||c.kind===262&&Yf(c.body))&&!(c.flags&33554432))return c}}function pyt(n,a){const c=_h(n),d=_h(a);return Ph(c)?Ph(d):Ph(d)?!1:c===d}function fyt(n){n.body&&(Da(n.body),R_(n)||Xb(n)),r(a);function a(){var c,d;const _=R_(n),y=n.flags&33554432;_&&!y&&qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=ku(n),k=x?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(yB(n,k))return;Dg(n)||!y&&n.name.kind===11&&En(n.name,f.Only_ambient_modules_can_use_quoted_names),Ve(n.name)&&u2(n,n.name),Y8(n);const z=Ir(n);if(z.flags&512&&!y&&kq(n,ZE(V))){if(om(V)&&!jn(n).externalModuleIndicator&&qe(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,$e),((c=z.declarations)==null?void 0:c.length)>1){const H=dyt(z);H&&(jn(n)!==jn(H)?qe(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.posre.kind===95);H&&qe(H,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(OE(n)){if((_||Ir(n).flags&33554432)&&n.body)for(const re of n.body.statements)abe(re,_)}else Ph(n.parent)?_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Yc(em(n.name))&&qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):qe(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function abe(n,a){switch(n.kind){case 243:for(const d of n.declarationList.declarations)abe(d,a);break;case 277:case 278:hu(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:hu(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(ta(c)){for(const d of c.elements)abe(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function myt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(ng(n.expression)&&!Ji(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function sbe(n){const a=yR(n);if(!a||zl(a))return!1;if(!Ma(a))return qe(a,f.String_literal_expected),!1;const c=n.parent.kind===268&&ku(n.parent.parent);if(n.parent.kind!==312&&!c)return qe(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Yc(a.text)&&!Nb(n))return qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!tu(n)&&n.attributes){const d=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions;let _=!1;for(const y of n.attributes.elements)Ma(y.value)||(_=!0,qe(y.value,d));return!_}return!0}function cte(n){var a,c,d,_;let y=Ir(n);const x=Fc(y);if(x!==ft){if(y=rs(y.exportSymbol||y),lr(n)&&!(x.flags&111551)&&!f0(n)){const H=DA(n)?n.propertyName||n.name:sd(n)?n.name:n;if(N.assert(n.kind!==280),n.kind===281){const re=qe(H,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(c=(a=jn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(be===x){const ge=(d=be.declarations)==null?void 0:d.find(nR);ge&&wa(re,kr(ge,f._0_is_automatically_exported_here,Vi(be.escapedName)))}}else{N.assert(n.kind!==260);const re=Gn(n,Ym(kc,tu)),be=(re&&((_=gR(re))==null?void 0:_.text))??"...",ge=Vi(Ve(H)?H.escapedText:y.escapedName);qe(H,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ge,`import("${be}").${ge}`)}return}const k=Au(x),z=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(k&z){const H=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;qe(n,H,vi(y))}else n.kind!==281&&V.isolatedModules&&!Gn(n,f0)&&y.flags&1160127&&qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,vi(y),$e);if(om(V)&&!f0(n)&&!(n.flags&33554432)){const H=Ff(y),re=!(k&111551);if(re||H)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){N.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const be=V.verbatimModuleSyntax&&_R(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?V.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:V.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,ge=Sr(n.kind===276&&n.propertyName||n.name);hg(qe(n,be,ge),re?void 0:H,ge)}re&&n.kind===271&&hp(n,32)&&qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,$e);break}case 281:if(V.verbatimModuleSyntax||jn(H)!==jn(n)){const be=Sr(n.propertyName||n.name),ge=re?qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,$e):qe(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,be,$e);hg(ge,re?void 0:H,be);break}}V.verbatimModuleSyntax&&n.kind!==271&&!lr(n)&&(G===1||jn(n).impliedNodeFormat===1)&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(np(n)){const H=lbe(y,n);hb(H)&&H.declarations&&sv(n,H.declarations,H.escapedName)}}}function lbe(n,a){if(!(n.flags&2097152)||hb(n)||!Fm(n))return n;const c=Fc(n);if(c===ft)return c;for(;n.flags&2097152;){const d=nve(n);if(d){if(d===c)break;if(d.declarations&&Le(d.declarations))if(hb(d)){sv(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function ute(n){u2(n,n.name),cte(n),n.kind===276&&Sr(n.propertyName||n.name)==="default"&&yh(V)&&G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&Nc(n,131072)}function yFe(n){var a;const c=n.attributes;if(c){const d=Cge(!0);d!==La&&nd(ce(c),P9(d,32768),c);const _=TJ(n),y=_D(c,_?En:void 0),x=n.attributes.token===118;if(_&&y)return;if((G===199&&n.moduleSpecifier&&to(n.moduleSpecifier))!==99&&G!==99&&G!==200){const z=x?G===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:G===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 En(c,z)}if(kc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return En(c,x?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(y)return En(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function _yt(n){return bd(nc(n.value))}function hyt(n){if(!yB(n,lr(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(!Dg(n)&&v3(n)&&hu(n,f.An_import_declaration_cannot_have_modifiers),sbe(n)){const a=n.importClause;a&&!ubt(a)&&(a.name&&ute(a),a.namedBindings&&(a.namedBindings.kind===274?(ute(a.namedBindings),G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&yh(V)&&Nc(n,65536)):gd(n,n.moduleSpecifier)&&Xe(a.namedBindings.elements,ute)))}yFe(n)}}function gyt(n){if(!yB(n,lr(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)&&(Dg(n),_R(n)||sbe(n)))if(ute(n),Zr(n,32)&&Sb(n),n.moduleReference.kind!==283){const a=Fc(Ir(n));if(a!==ft){const c=Au(a);if(c&111551){const d=Vp(n.moduleReference);Hs(d,112575).flags&1920||qe(d,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Rs(d))}c&788968&&p2(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&En(n,f.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&jn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&En(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 yyt(n){if(!yB(n,lr(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(!Dg(n)&&qie(n)&&hu(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Pf(n.exportClause)&&Le(n.exportClause.elements)&&se===0&&Nc(n,4194304),vyt(n),!n.moduleSpecifier||sbe(n))if(n.exportClause&&!Sh(n.exportClause)){Xe(n.exportClause.elements,Iyt);const a=n.parent.kind===268&&ku(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=gd(n,n.moduleSpecifier);a&&uv(a)?qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,vi(a)):n.exportClause&&cte(n.exportClause),G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&(n.exportClause?yh(V)&&Nc(n,65536):Nc(n,32768))}yFe(n)}}function vyt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?YFe(n.exportClause):!1}function yB(n,a){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||hu(n,a),!c}function byt(n){return o3(n,a=>!!Ir(a).isReferenced)}function Eyt(n){return o3(n,a=>!!Xi(Ir(a)).constEnumReferenced)}function Syt(n){return kc(n)&&n.importClause&&!n.importClause.isTypeOnly&&byt(n.importClause)&&!hte(n.importClause,!0)&&!Eyt(n.importClause)}function Tyt(n){return tu(n)&&Th(n.moduleReference)&&!n.isTypeOnly&&Ir(n).isReferenced&&!hte(n,!1)&&!Xi(Ir(n)).constEnumReferenced}function Ayt(n){if(It)for(const a of n.statements)(Syt(a)||Tyt(a))&&qe(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Iyt(n){if(cte(n),Nf(V)&&wM(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)yh(V)&&G!==4&&(G<5||jn(n).impliedNodeFormat===1)&&Sr(n.propertyName||n.name)==="default"&&Nc(n,131072);else{const a=n.propertyName||n.name,c=bl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===je||c===at||c.declarations&&Ph(Q(c.declarations[0]))))qe(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Sr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&Sb(n);const d=c&&(c.flags&2097152?Fc(c):c);(!d||Au(d)&111551)&&nc(n.propertyName||n.name)}}}function xyt(n){const 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(yB(n,a))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!ku(c)){n.isExportEquals?qe(n,f.An_export_assignment_cannot_be_used_in_a_namespace):qe(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Dg(n)&&v3(n)&&hu(n,f.An_export_assignment_cannot_have_modifiers);const d=vu(n);d&&nd(nc(n.expression),bi(d),n.expression);const _=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||jn(n).impliedNodeFormat===1);if(n.expression.kind===80){const y=n.expression,x=yf(Hs(y,-1,!0,!0,n));if(x){const k=Ff(x,111551);if(Dee(x,y),Au(x)&111551?(nc(y),!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&k&&qe(y,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,Sr(y))):!_&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&qe(y,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,Sr(y)),!_&&!(n.flags&33554432)&&om(V)&&!(x.flags&111551)){const z=Au(x,!1,!0);x.flags&2097152&&z&788968&&!(z&111551)&&(!k||jn(k)!==jn(n))?qe(y,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,Sr(y),$e):k&&jn(k)!==jn(n)&&hg(qe(y,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,Sr(y),$e),k,Sr(y))}}else nc(y);Nf(V)&&wM(y,!0)}else nc(n.expression);_&&qe(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),vFe(c),n.flags&33554432&&!Gl(n.expression)&&En(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&jn(n).impliedNodeFormat===99||!(n.flags&33554432)&&jn(n).impliedNodeFormat!==1)?En(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&En(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Ryt(n){return Gc(n.exports,(a,c)=>c!=="export=")}function vFe(n){const a=Ir(n),c=Xi(a);if(!c.exportsChecked){const d=a.exports.get("export=");if(d&&Ryt(a)){const y=Fm(d)||d.valueDeclaration;y&&!Nb(y)&&!lr(y)&&qe(y,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const _=Lh(a);_&&_.forEach(({declarations:y,flags:x},k)=>{if(k==="__export"||x&1920)return;const z=au(y,N6(axe,C6(_d)));if(!(x&524288&&z<=2)&&z>1&&!dte(y))for(const H of y)rxe(H)&&ts.add(kr(H,f.Cannot_redeclare_exported_variable_0,Vi(k)))}),c.exportsChecked=!0}}function dte(n){return n&&n.length>1&&n.every(a=>lr(a)&&ws(a)&&(IS(a.expression)||ng(a.expression)))}function Da(n){if(n){const a=C;C=n,I=0,Dyt(n),C=a}}function Dyt(n){JL(n)&&Xe(n.jsDoc,({comment:c,tags:d})=>{bFe(c),Xe(d,_=>{bFe(_.comment),lr(n)&&Da(_)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&qL(n)&&n.flowNode&&!F9(n.flowNode)&&_u(V.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return SWe(n);case 169:return TWe(n);case 172:return xWe(n);case 171:return dht(n);case 185:case 184:case 179:case 180:case 181:return X8(n);case 174:case 173:return pht(n);case 175:return fht(n);case 176:return mht(n);case 177:case 178:return DWe(n);case 183:return qve(n);case 182:return sht(n);case 186:return bht(n);case 187:return Eht(n);case 188:return Sht(n);case 189:return Tht(n);case 192:case 193:return Aht(n);case 196:case 190:case 191:return Da(n.type);case 197:return Dht(n);case 198:return Nht(n);case 194:return Cht(n);case 195:return Pht(n);case 203:return Mht(n);case 205:return Lht(n);case 202:return kht(n);case 335:return Zht(n);case 336:return Qht(n);case 353:case 345:case 347:return jht(n);case 352:return Uht(n);case 351:return Hht(n);case 331:case 332:case 333:return Jht(n);case 348:return Kht(n);case 355:return Xht(n);case 324:Yht(n);case 322:case 321:case 319:case 320:case 329:EFe(n),Ho(n,Da);return;case 325:Nyt(n);return;case 316:return Da(n.type);case 340:case 342:case 341:return egt(n);case 357:return qht(n);case 350:return $ht(n);case 199:return Iht(n);case 200:return xht(n);case 262:return Vht(n);case 241:case 268:return ite(n);case 243:return ygt(n);case 244:return vgt(n);case 245:return bgt(n);case 246:return Tgt(n);case 247:return Agt(n);case 248:return Igt(n);case 249:return Rgt(n);case 250:return xgt(n);case 251:case 252:return kgt(n);case 253:return wgt(n);case 254:return Ogt(n);case 255:return Wgt(n);case 256:return Fgt(n);case 257:return zgt(n);case 258:return Bgt(n);case 260:return hgt(n);case 208:return ggt(n);case 263:return Kgt(n);case 264:return iyt(n);case 265:return oyt(n);case 266:return lyt(n);case 267:return fyt(n);case 272:return hyt(n);case 271:return gyt(n);case 278:return yyt(n);case 277:return xyt(n);case 242:case 259:by(n);return;case 282:return hht(n)}}function bFe(n){To(n)&&Xe(n,a=>{MA(a)&&Da(a)})}function EFe(n){if(!lr(n))if(YW(n)||YR(n)){const a=fa(YW(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,d=n.type,_=bi(d);En(n,c,a,Un(YR(n)&&!(_===Vr||_===ir)?ti(xn([_,Oe],n.postfix?void 0:me)):_))}else En(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Nyt(n){EFe(n),Da(n.type);const{parent:a}=n;if(Ao(a)&&$R(a.parent)){Ya(a.parent.parameters)!==a&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}u1(a)||qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!r_(c)){qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const d=KL(c);if(!d)return;const _=g0(c);(!_||Ya(_.parameters).symbol!==d)&&qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Cyt(n){const a=bi(n.type),{parent:c}=n,d=n.parent.parent;if(u1(n.parent)&&r_(d)){const _=g0(d),y=AH(d.parent.parent);if(_||y){const x=tl(y?d.parent.parent.typeExpression.parameters:_.parameters),k=KL(d);if(!x||k&&x.symbol===k&&Qh(x))return Vu(a)}}return Ao(c)&&$R(c.parent)?Vu(a):cp(a)}function Sx(n){const a=jn(n),c=ei(a);c.flags&1?N.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function Pyt(n){const a=ei(n);a.deferredNodes&&a.deferredNodes.forEach(Myt),a.deferredNodes=void 0}function Myt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const d=C;switch(C=n,I=0,n.kind){case 213:case 214:case 215:case 170:case 286:aA(n);break;case 218:case 219:case 174:case 173:x_t(n);break;case 177:case 178:DWe(n);break;case 231:Jgt(n);break;case 168:aht(n);break;case 285:wft(n);break;case 284:Wft(n);break;case 216:case 234:case 217:Zmt(n);break;case 222:mo(n.expression);break;case 226:S3(n)&&aA(n);break}C=d,(c=sr)==null||c.pop()}function Lyt(n){var a,c;(a=sr)==null||a.push(sr.Phase.Check,"checkSourceFile",{path:n.path},!0),il("beforeCheck"),kyt(n),il("afterCheck"),ef("Check","beforeCheck","afterCheck"),(c=sr)==null||c.pop()}function SFe(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return N.assertNever(n)}}function TFe(n){return mf.get(n.path)||et}function kyt(n){const a=ei(n);if(!(a.flags&1)){if(QC(n,V,e))return;abt(n),Vo(D1),Vo(N1),Vo(fb),Vo(mb),Vo(_g),Xe(n.statements,Da),Da(n.endOfFileToken),Pyt(n),zp(n)&&Xb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&BWe(TFe(n),(c,d,_)=>{!oR(c)&&SFe(d,!!(c.flags&33554432))&&ts.add(_)}),n.isDeclarationFile||igt()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&ac(n)&&Ayt(n),zp(n)&&vFe(n),D1.length&&(Xe(D1,sgt),Vo(D1)),N1.length&&(Xe(N1,lgt),Vo(N1)),fb.length&&(Xe(fb,pgt),Vo(fb)),mb.length&&(Xe(mb,mgt),Vo(mb)),a.flags|=1}}function AFe(n,a){try{return i=a,wyt(n)}finally{i=void 0}}function cbe(){for(const n of t)n();t=[]}function ube(n){cbe();const a=r;r=c=>c(),Lyt(n),r=a}function wyt(n){if(n){cbe();const a=ts.getGlobalDiagnostics(),c=a.length;ube(n);const d=ts.getDiagnostics(n.fileName),_=ts.getGlobalDiagnostics();if(_!==a){const y=one(a,_,JC);return So(y,d)}else if(c===0&&_.length>0)return So(_,d);return d}return Xe(e.getSourceFiles(),ube),ts.getDiagnostics()}function Oyt(){return cbe(),ts.getGlobalDiagnostics()}function Wyt(n,a){if(n.flags&67108864)return[];const c=ca();let d=!1;return _(),c.delete("this"),hge(c);function _(){for(;n;){switch(ph(n)&&n.locals&&!Ph(n)&&x(n.locals,a),n.kind){case 312:if(!ac(n))break;case 267:k(Ir(n).exports,a&2623475);break;case 266:x(Ir(n).exports,a&8);break;case 231:n.name&&y(n.symbol,a);case 263:case 264:d||x(Ob(Ir(n)),a&788968);break;case 218:n.name&&y(n.symbol,a);break}die(n)&&y(Gt,a),d=aa(n),n=n.parent}x(Se,a)}function y(z,H){if(MR(z)&H){const re=z.escapedName;c.has(re)||c.set(re,z)}}function x(z,H){H&&z.forEach(re=>{y(re,H)})}function k(z,H){H&&z.forEach(re=>{!fl(re,281)&&!fl(re,280)&&re.escapedName!=="default"&&y(re,H)})}}function Fyt(n){return n.kind===80&&zR(n.parent)&&Mo(n.parent)===n}function IFe(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function zyt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function xFe(n,a){let c,d=su(n);for(;d&&!(c=a(d));)d=su(d);return c}function Byt(n){return!!Gn(n,a=>Ml(a)&&Yf(a.body)||Jo(a)?!0:ui(a)||Bs(a)?"quit":!1)}function dbe(n,a){return!!xFe(n,c=>c===a)}function Gyt(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 pte(n){return Gyt(n)!==void 0}function Vyt(n){switch(Bl(n.parent.parent)){case 1:case 3:return gf(n.parent);case 5:if(Wr(n.parent)&&LR(n.parent)===n)return;case 4:case 2:return Ir(n.parent.parent)}}function jyt(n){let a=n.parent;for(;Id(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function Uyt(n){if(n.expression.kind===110){const a=Fd(n,!1,!1);if(ea(a)){const c=W4e(a);if(c){const d=bE(c,void 0),_=z4e(c,d);return _&&!Nt(_)}}}}function RFe(n){if(Wg(n))return gf(n.parent);if(lr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ji(n)&&!x0(n)&&!Uyt(n.parent)){const a=Vyt(n);if(a)return a}if(n.parent.kind===277&&Gl(n)){const a=Hs(n,2998271,!0);if(a&&a!==ft)return a}else if(Zd(n)&&pte(n)){const a=v0(n,271);return N.assert(a!==void 0),ox(n,!0)}if(Zd(n)){const a=jyt(n);if(a){bi(a);const c=ei(n).resolvedSymbol;return c===ft?void 0:c}}for(;Qie(n);)n=n.parent;if(zyt(n)){let a=0;n.parent.kind===233?(a=eg(n)?788968:111551,E3(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Gl(n)?Hs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return KL(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){N.assert(!lr(n));const a=Aie(n.parent);return a&&a.symbol}if(tg(n)){if(zl(n))return;const a=Gn(n,Ym(MA,AP,x0)),c=a?901119:111551;if(n.kind===80){if(mR(n)&&Ex(n)){const _=wee(n.parent);return _===ft?void 0:_}const d=Hs(n,c,!0,!0,g0(n));if(!d&&a){const _=Gn(n,Ym(ui,_d));if(_)return vB(n,!0,Ir(_))}if(d&&a){const _=DS(n);if(_&&c1(_)&&_===d.valueDeclaration)return Hs(n,c,!0,!0,jn(_))||d}return d}else{if(Ji(n))return Fee(n);if(n.kind===211||n.kind===166){const d=ei(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(Oee(n,0),d.resolvedSymbol||(d.resolvedSymbol=DFe(nc(n.expression),_v(n.name)))):p3e(n,0),!d.resolvedSymbol&&a&&Id(n)?vB(n):d.resolvedSymbol)}else if(x0(n))return vB(n)}}else if(IFe(n)){const a=n.parent.kind===183?788968:1920,c=Hs(n,a,!1,!0);return c&&c!==ft?c:FZ(n)}if(n.parent.kind===182)return Hs(n,1)}function DFe(n,a){const c=_ge(n,a);if(c.length&&n.members){const d=wZ(__(n).members);if(c===yd(n))return d;if(d){const _=Xi(d),y=Hi(c,k=>k.declaration),x=Ot(y,as).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(x))return _.filteredIndexSymbolCache.get(x);{const k=Xa(131072,"__index");return k.declarations=Hi(c,z=>z.declaration),k.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Hm(k.declarations[0].parent),_.filteredIndexSymbolCache.set(x,k),k}}}}function vB(n,a,c){if(Zd(n)){let x=Hs(n,901119,a,!0,g0(n));if(!x&&Ve(n)&&c&&(x=rs(Jd(Np(c),n.escapedText,901119))),x)return x}const d=Ve(n)?c:vB(n.left,a,c),_=Ve(n)?n.escapedText:n.right.escapedText;if(d){const y=d.flags&111551&&va(dr(d),"prototype"),x=y?dr(y):el(d);return va(x,_)}}function Hm(n,a){if($i(n))return ac(n)?rs(n.symbol):void 0;const{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(ixe(n)){const _=Ir(c);return DA(n.parent)&&n.parent.propertyName===n?nve(_):_}else if($L(n))return Ir(c.parent);if(n.kind===80){if(pte(n))return RFe(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){const _=Tx(d),y=va(_,n.escapedText);if(y)return y}else if(gP(c)&&c.name===n)return c.keywordToken===105&&Sr(n)==="target"?Nve(c).symbol:c.keywordToken===102&&Sr(n)==="meta"?C8e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!BA(n))return RFe(n);case 110:const _=Fd(n,!1,!1);if(ea(_)){const k=fm(_);if(k.thisParameter)return k.thisParameter}if(Y4(n))return mo(n).symbol;case 197:return KZ(n).symbol;case 108:return mo(n).symbol;case 137:const y=n.parent;return y&&y.kind===176?y.parent.symbol:void 0;case 11:case 15:if(_0(n.parent.parent)&&IC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||lr(n)&&Td(n.parent,!1)||Bp(n.parent)||Zv(n.parent)&&Vv(n.parent.parent)&&n.parent.parent.argument===n.parent)return gd(n,n,a);if(sa(c)&&xS(c)&&c.arguments[1]===n)return Ir(c);case 9:const x=Qs(c)?c.argumentExpression===n?Ru(c.expression):void 0:Zv(c)&&GS(d)?bi(d.objectType):void 0;return x&&va(x,hl(n.text));case 90:case 100:case 39:case 86:return gf(n.parent);case 205:return Vv(n)?Hm(n.argument.literal,a):void 0;case 95:return kl(n.parent)?N.checkDefined(n.parent.symbol):void 0;case 102:case 105:return gP(n.parent)?X3e(n.parent).symbol:void 0;case 104:if(mr(n.parent)){const k=Ru(n.parent.right),z=Fve(k);return z?.symbol??k.symbol}return;case 236:return mo(n).symbol;case 295:if(mR(n)&&Ex(n)){const k=wee(n.parent);return k===ft?void 0:k}default:return}}}function Hyt(n){if(Ve(n)&&Wr(n.parent)&&n.parent.name===n){const a=_v(n),c=Ru(n.parent.expression),d=c.flags&1048576?c.types:[c];return Pi(d,_=>nr(yd(_),y=>mx(a,y.keyType)))}}function qyt(n){if(n&&n.kind===304)return Hs(n.name,2208703)}function Jyt(n){return Ku(n)?n.parent.parent.moduleSpecifier?ry(n.parent.parent,n):Hs(n.propertyName||n.name,2998271):Hs(n,2998271)}function Tx(n){if($i(n)&&!ac(n)||n.flags&67108864)return _t;const a=sU(n),c=a&&Vf(Ir(a.class));if(eg(n)){const d=bi(n);return c?Kp(d,c.thisType):d}if(tg(n))return NFe(n);if(c&&!a.isImplements){const d=Xc(Pp(c));return d?Kp(d,c.thisType):_t}if(zR(n)){const d=Ir(n);return el(d)}if(Fyt(n)){const d=Hm(n);return d?el(d):_t}if(Qa(n))return BT(n,!0,0)||_t;if(Ju(n)){const d=Ir(n);return d?dr(d):_t}if(ixe(n)){const d=Hm(n);return d?dr(d):_t}if(ta(n))return BT(n.parent,!0,0)||_t;if(pte(n)){const d=Hm(n);if(d){const _=el(d);return Kt(_)?dr(d):_}}return gP(n.parent)&&n.parent.keywordToken===n.kind?X3e(n.parent):pI(n)?Cge(!1):_t}function fte(n){if(N.assert(n.kind===210||n.kind===209),n.parent.kind===250){const _=_B(n.parent);return lA(n,_||_t)}if(n.parent.kind===226){const _=Ru(n.parent.right);return lA(n,_||_t)}if(n.parent.kind===303){const _=oa(n.parent.parent,Oa),y=fte(_)||_t,x=aR(_.properties,n.parent);return pWe(_,y,x)}const a=oa(n.parent,md),c=fte(a)||_t,d=vv(65,c,Oe,n.parent)||_t;return fWe(a,c,a.elements.indexOf(n),d)}function Kyt(n){const a=fte(oa(n.parent.parent,hC));return a&&va(a,n.escapedText)}function NFe(n){return GC(n)&&(n=n.parent),bd(Ru(n))}function CFe(n){const a=gf(n.parent);return aa(n)?dr(a):el(a)}function PFe(n){const a=n.name;switch(a.kind){case 80:return Xd(Sr(a));case 9:case 11:return Xd(a.text);case 167:const c=xg(a);return xu(c,12288)?c:ke;default:return N.fail("Unsupported property name.")}}function pbe(n){n=Ld(n);const a=ca(gs(n)),c=Yo(n,0).length?Jn:Yo(n,1).length?vo:void 0;return c&&Xe(gs(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),tE(a)}function mte(n){return Yo(n,0).length!==0||Yo(n,1).length!==0}function MFe(n){const a=Xyt(n);return a?Pi(a,MFe):[n]}function Xyt(n){if(xl(n)&6)return Hi(Xi(n).containingType.types,a=>va(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:SA(Yyt(n))}}function Yyt(n){let a,c=n;for(;c=Xi(c).target;)a=c;return a}function $yt(n){if(sl(n))return!1;const a=Do(n,Ve);if(!a)return!1;const c=a.parent;return c?!((Wr(c)||_c(c))&&c.name===a)&&i6(a)===Gt:!1}function Qyt(n){let a=gd(n.parent,n);if(!a||bC(a))return!0;const c=uv(a);a=Dp(a);const d=Xi(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):Gc(Lh(a),_)),d.exportsSomeValue;function _(y){return y=jl(y),y&&!!(Au(y)&111551)}}function Zyt(n){return _L(n.parent)&&n===n.parent.name}function evt(n,a){var c;const d=Do(n,Ve);if(d){let _=i6(d,Zyt(d));if(_){if(_.flags&1048576){const x=rs(_.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;_=x}const y=Cd(_);if(y){if(y.flags&512&&((c=y.valueDeclaration)==null?void 0:c.kind)===312){const x=y.valueDeclaration,k=jn(d);return x!==k?void 0:x}return Gn(d.parent,x=>_L(x)&&Ir(x)===y)}}}}function tvt(n){const a=lae(n);if(a)return a;const c=Do(n,Ve);if(c){const d=mvt(c);if(NT(d,111551)&&!Ff(d,111551))return Fm(d)}}function nvt(n){return n.valueDeclaration&&Qa(n.valueDeclaration)&&Yx(n.valueDeclaration).parent.kind===299}function LFe(n){if(n.flags&418&&n.valueDeclaration&&!$i(n.valueDeclaration)){const a=Xi(n);if(a.isDeclarationWithCollidingName===void 0){const c=_h(n.valueDeclaration);if(Ure(c)||nvt(n)){const d=ei(n.valueDeclaration);if(bl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){const _=d.flags&32768,y=Wv(c,!1),x=c.kind===241&&Wv(c.parent,!1);a.isDeclarationWithCollidingName=!$re(c)&&(!_||!y&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function rvt(n){if(!sl(n)){const a=Do(n,Ve);if(a){const c=i6(a);if(c&&LFe(c))return c.valueDeclaration}}}function ivt(n){const a=Do(n,Ju);if(a){const c=Ir(a);if(c)return LFe(c)}return!1}function kFe(n){switch(N.assert(It),n.kind){case 271:return _te(Ir(n));case 273:case 274:case 276:case 281:const a=Ir(n);return!!a&&_te(a,!0);case 278:const c=n.exportClause;return!!c&&(Sh(c)||bt(c.elements,kFe));case 277:return n.expression&&n.expression.kind===80?_te(Ir(n),!0):!0}return!1}function ovt(n){const a=Do(n,tu);return a===void 0||a.parent.kind!==312||!_R(a)?!1:_te(Ir(a))&&a.moduleReference&&!zl(a.moduleReference)}function _te(n,a){if(!n)return!1;const c=yf(Fc(n));return c===ft?!a||!Ff(n):!!(Au(n,a,!0)&111551)&&(ZE(V)||!r6(c))}function r6(n){return Wve(n)||!!n.constEnumOnlyModule}function hte(n,a){if(N.assert(It),vb(n)){const c=Ir(n),d=c&&Xi(c);if(d?.referenced)return!0;const _=Xi(c).aliasTarget;if(_&&dd(n)&32&&Au(_)&111551&&(ZE(V)||!r6(_)))return!0}return a?!!Ho(n,c=>hte(c,a)):!1}function wFe(n){if(Yf(n.body)){if(Fv(n)||wy(n))return!1;const a=Ir(n),c=U1(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function OFe(n){return!!Y&&!S8(n)&&!r_(n)&&!!n.initializer&&!Zr(n,31)}function avt(n){return Y&&S8(n)&&!n.initializer&&Zr(n,31)}function svt(n){const a=Do(n,Ac);if(!a)return!1;const c=Ir(a);return!c||!(c.flags&16)?!1:!!Gc(Np(c),d=>d.flags&111551&&$3(d.valueDeclaration))}function lvt(n){const a=Do(n,Ac);if(!a)return et;const c=Ir(a);return c&&gs(dr(c))||et}function GN(n){var a;const c=n.id||0;return c<0||c>=R1.length?0:((a=R1[c])==null?void 0:a.flags)||0}function VN(n){return _Fe(n.parent),ei(n).enumMemberValue}function WFe(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function fbe(n){if(n.kind===306)return VN(n);const a=ei(n).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(WE(c.parent))return VN(c)}}function mbe(n){return!!(n.flags&524288)&&Yo(n,0).length>0}function cvt(n,a){var c;const d=Do(n,Zd);if(!d||a&&(a=Do(a),!a))return 0;let _=!1;if(Id(d)){const re=Hs(Vp(d),111551,!0,!0,a);_=!!((c=re?.declarations)!=null&&c.every(f0))}const y=Hs(d,111551,!0,!0,a),x=y&&y.flags&2097152?Fc(y):y;_||(_=!!(y&&Ff(y,111551)));const k=Hs(d,788968,!0,!0,a),z=k&&k.flags&2097152?Fc(k):k;if(y||_||(_=!!(k&&Ff(k,788968))),x&&x===z){const re=Pge(!1);if(re&&x===re)return 9;const be=dr(x);if(be&&is(be))return _?10:1}if(!z)return _?11:0;const H=el(z);return Kt(H)?_?11:0:H.flags&3?11:xu(H,245760)?2:xu(H,528)?6:xu(H,296)?3:xu(H,2112)?4:xu(H,402653316)?5:Ba(H)?7:xu(H,12288)?8:mbe(H)?10:qf(H)?7:11}function uvt(n,a,c,d,_){const y=Do(n,lie);if(!y)return w.createToken(133);const x=Ir(y);let k=x&&!(x.flags&133120)?$1(dr(x)):_t;return k.flags&8192&&k.symbol===x&&(c|=1048576),_&&(k=qb(k)),At.typeToTypeNode(k,a,c|1024,d)}function dvt(n,a,c,d){const _=Do(n,ea);if(!_)return w.createToken(133);const y=fm(_);return At.typeToTypeNode(ps(y),a,c|1024,d)}function pvt(n,a,c,d){const _=Do(n,vt);if(!_)return w.createToken(133);const y=Xp(NFe(_));return At.typeToTypeNode(y,a,c|1024,d)}function fvt(n){return Se.has(hl(n))}function i6(n,a){const c=ei(n).resolvedSymbol;if(c)return c;let d=n;if(a){const _=n.parent;Ju(_)&&n===_.name&&(d=Q(_))}return bl(d,n.escapedText,3257279,void 0,void 0,!0)}function mvt(n){const a=ei(n).resolvedSymbol;return a&&a!==ft?a:bl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function _vt(n){if(!sl(n)){const a=Do(n,Ve);if(a){const c=i6(a);if(c)return yf(c).valueDeclaration}}}function hvt(n){if(!sl(n)){const a=Do(n,Ve);if(a){const c=i6(a);if(c)return nr(yf(c).declarations,d=>{switch(d.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 gvt(n){return W4(n)||wi(n)&&EB(n)?K1(dr(Ir(n))):!1}function yvt(n,a,c){const d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===Bn?w.createTrue():n===en&&w.createFalse();if(d)return d;const _=n.value;return typeof _=="object"?w.createBigIntLiteral(_):typeof _=="string"?w.createStringLiteral(_):_<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-_)):w.createNumericLiteral(_)}function vvt(n,a){const c=dr(Ir(n));return yvt(c,n,a)}function FFe(n){return n?(q0(n),jn(n).localJsxFactory||Zg):Zg}function _be(n){if(n){const a=jn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),d=To(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=yI(d.arguments.factory,se),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return yI(V.jsxFragmentFactory,se)}function bvt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:z},H,re)=>{if(!z?.resolvedFileName)return;const be=e.getSourceFile(z.resolvedFileName);be&&k(be,H,re)})),{getReferencedExportContainer:evt,getReferencedImportDeclaration:tvt,getReferencedDeclarationWithCollidingName:rvt,isDeclarationWithCollidingName:ivt,isValueAliasDeclaration:z=>{const H=Do(z);return H&&It?kFe(H):!0},hasGlobalName:fvt,isReferencedAliasDeclaration:(z,H)=>{const re=Do(z);return re&&It?hte(re,H):!0},getNodeCheckFlags:z=>{const H=Do(z);return H?GN(H):0},isTopLevelValueImportEqualsWithEntityName:ovt,isDeclarationVisible:d_,isImplementationOfOverload:wFe,isRequiredInitializedParameter:OFe,isOptionalUninitializedParameterProperty:avt,isExpandoFunctionDeclaration:svt,getPropertiesOfContainerFunction:lvt,createTypeOfDeclaration:uvt,createReturnTypeOfSignatureDeclaration:dvt,createTypeOfExpression:pvt,createLiteralConstValue:vvt,isSymbolAccessible:ki,isEntityNameVisible:xb,getConstantValue:z=>{const H=Do(z,WFe);return H?fbe(H):void 0},collectLinkedAliases:wM,getReferencedValueDeclaration:_vt,getReferencedValueDeclarations:hvt,getTypeReferenceSerializationKind:cvt,isOptionalParameter:S8,moduleExportsSomeValue:Qyt,isArgumentsLocalBinding:$yt,getExternalModuleFileFromDeclaration:z=>{const H=Do(z,Zre);return H&&hbe(H)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:gvt,isLateBound:z=>{const H=Do(z,Ju),re=H&&Ir(H);return!!(re&&xl(re)&4096)},getJsxFactoryEntity:FFe,getJsxFragmentFactoryEntity:_be,getAllAccessorDeclarations(z){z=Do(z,p4);const H=z.kind===178?177:178,re=fl(Ir(z),H),be=re&&re.posiy(z,z,void 0),isBindingCapturedByNode:(z,H)=>{const re=Do(z),be=Do(H);return!!re&&!!be&&(wi(be)||Qa(be))&&Upt(re,be)},getDeclarationStatementsForSourceFile:(z,H,re,be)=>{const ge=Do(z);N.assert(ge&&ge.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Je=Ir(z);return Je?Je.exports?At.symbolTableToDeclarationStatements(Je.exports,z,H,re,be):[]:z.locals?At.symbolTableToDeclarationStatements(z.locals,z,H,re,be):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:z=>{const H=Do(z),re=H&&ls(H)?H.text:void 0;return re!==void 0?MZ(re,!0):void 0}};function c(z){const H=jn(z);if(!H.symbol)return!1;const re=hbe(z);if(!re||re===H)return!1;const be=Lh(H.symbol);for(const ge of zo(be.values()))if(ge.mergeId){const Je=rs(ge);if(Je.declarations){for(const gt of Je.declarations)if(jn(gt)===re)return!0}}return!1}function d(z){return z.parent&&z.parent.kind===233&&z.parent.parent&&z.parent.parent.kind===298}function _(z){if(!a)return;let H;z.parent.kind===167?H=1160127:(H=790504,(z.kind===80&&MS(z)||z.kind===211&&!d(z))&&(H=1160127));const re=Hs(z,H,!0);return re&&re!==ft?y(re,H):void 0}function y(z,H){if(!a||!x(z))return;let re;for(const be of z.declarations)if(be.symbol&&be.symbol.flags&H){const ge=jn(be),Je=a.get(ge.path);if(Je)(re||(re=[])).push(Je);else return}return re}function x(z){if(!z.declarations)return!1;let H=z;for(;;){const re=Cd(H);if(re)H=re;else break}if(H.valueDeclaration&&H.valueDeclaration.kind===312&&H.flags&512)return!1;for(const re of z.declarations){const be=jn(re);if(a.has(be.path))return!0}return!1}function k(z,H,re){if(!a.has(z.path)){a.set(z.path,[H,re]);for(const{fileName:be}of z.referencedFiles){const ge=c7(be,z.fileName),Je=e.getSourceFile(ge);Je&&k(Je,H,re||z.impliedNodeFormat)}}}}function hbe(n){const a=n.kind===267?ii(n.name,Ma):yR(n),c=iy(a,a,void 0);if(c)return fl(c,312)}function Evt(){for(const a of e.getSourceFiles())Gse(a,V);Ss=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!zp(a)){const c=a.locals.get("globalThis");if(c?.declarations)for(const d of c.declarations)ts.add(kr(d,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));c_(Se,a.locals)}a.jsGlobalAugmentations&&c_(Se,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(cm=So(cm,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,_)=>{Se.has(_)||Se.set(_,d)})}if(n)for(const a of n)for(const c of a)R_(c.parent)&&rN(c);if(C1(Se,gT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),Xi(je).type=Lt,Xi(Gt).type=tc("IArguments",0,!0),Xi(ft).type=_t,Xi(at).type=zf(16,at),Qo=tc("Array",1,!0),Ce=tc("Object",0,!0),Wt=tc("Function",0,!0),Jn=fe&&tc("CallableFunction",0,!0)||Wt,vo=fe&&tc("NewableFunction",0,!0)||Wt,Zl=tc("String",0,!0),yc=tc("Number",0,!0),dl=tc("Boolean",0,!0),vl=tc("RegExp",0,!0),ec=Vu(j),Jc=Vu(ot),Jc===La&&(Jc=Ls(void 0,K,et,et,et)),na=O8e("ReadonlyArray",1)||Qo,ff=na?I8(na,[j]):ec,Vl=O8e("ThisType",1),n)for(const a of n)for(const c of a)R_(c.parent)||rN(c);Ss.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:_,firstFileLocations:y,secondFileLocations:x},k)=>{const z=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of y)ey(H,z,k,x);for(const H of x)ey(H,z,k,y)});else{const _=zo(d.keys()).join(", ");ts.add(wa(kr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),kr(c,f.Conflicts_are_in_this_file))),ts.add(wa(kr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),kr(a,f.Conflicts_are_in_this_file)))}}),Ss=void 0}function Nc(n,a){if((s&a)!==a&&V.importHelpers){const c=jn(n);if(LA(c,V)&&!(n.flags&33554432)){const d=Tvt(c,n);if(d!==ft){const _=a&~s;for(let y=1;y<=33554432;y<<=1)if(_&y)for(const x of Svt(y)){if(o.has(x))continue;o.add(x);const k=jl(Jd(Lh(d),hl(x),111551));k?y&524288?bt(U1(k),z=>Yp(z)>3)||qe(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,Kv,x,4):y&1048576?bt(U1(k),z=>Yp(z)>4)||qe(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,Kv,x,5):y&1024&&(bt(U1(k),z=>Yp(z)>2)||qe(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,Kv,x,3)):qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Kv,x)}}s|=a}}}function Svt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__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 N.fail("Unrecognized helper")}}function Tvt(n,a){return l||(l=K_(n,Kv,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),l}function Dg(n){var a;const c=xvt(n)||Avt(n);if(c!==void 0)return c;if(Ao(n)&&qE(n))return hu(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const d=Ll(n)?n.declarationList.flags&7:0;let _,y,x,k,z,H=0,re=!1,be=!1;for(const ge of n.modifiers)if(Eu(ge)){if(X4(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){const Je=LS(n.parent.members,n);if(If(Je.firstAccessor)&&n===Je.secondAccessor)return hu(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Yf(n.body)?hu(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):hu(n,f.Decorators_are_not_valid_here);if(H&-34849)return En(ge,f.Decorators_are_not_valid_here);if(be&&H&98303){N.assertIsDefined(z);const Je=jn(ge);return rS(Je)?!1:(wa(qe(ge,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),kr(z,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(re=!0):be=!0,z??(z=ge)}else{if(ge.kind!==148){if(n.kind===171||n.kind===173)return En(ge,f._0_modifier_cannot_appear_on_a_type_member,fa(ge.kind));if(n.kind===181&&(ge.kind!==126||!ui(n.parent)))return En(ge,f._0_modifier_cannot_appear_on_an_index_signature,fa(ge.kind))}if(ge.kind!==103&&ge.kind!==147&&ge.kind!==87&&n.kind===168)return En(ge,f._0_modifier_cannot_appear_on_a_type_parameter,fa(ge.kind));switch(ge.kind){case 87:{if(n.kind!==266&&n.kind!==168)return En(n,f.A_class_member_cannot_have_the_0_keyword,fa(87));const Dt=sm(n.parent)&&y0(n.parent)||n.parent;if(n.kind===168&&!(Bs(Dt)||ui(Dt)||bh(Dt)||UR(Dt)||oI(Dt)||Bk(Dt)||vh(Dt)))return En(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,fa(ge.kind));break}case 164:if(H&16)return En(ge,f._0_modifier_already_seen,"override");if(H&128)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return En(ge,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,k=ge;break;case 125:case 124:case 123:const Je=zT(VA(ge.kind));if(H&7)return En(ge,f.Accessibility_modifier_already_seen);if(H&16)return En(ge,f._0_modifier_must_precede_1_modifier,Je,"override");if(H&256)return En(ge,f._0_modifier_must_precede_1_modifier,Je,"static");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,Je,"accessor");if(H&8)return En(ge,f._0_modifier_must_precede_1_modifier,Je,"readonly");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,Je,"async");if(n.parent.kind===268||n.parent.kind===312)return En(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,Je);if(H&64)return ge.kind===123?En(ge,f._0_modifier_cannot_be_used_with_1_modifier,Je,"abstract"):En(ge,f._0_modifier_must_precede_1_modifier,Je,"abstract");if(ld(n))return En(ge,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=VA(ge.kind);break;case 126:if(H&256)return En(ge,f._0_modifier_already_seen,"static");if(H&8)return En(ge,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return En(ge,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return En(ge,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,_=ge;break;case 129:if(H&512)return En(ge,f._0_modifier_already_seen,"accessor");if(H&8)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return En(ge,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return En(ge,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return En(ge,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||jn(n).impliedNodeFormat===1))return En(ge,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return En(ge,f._0_modifier_already_seen,"export");if(H&128)return En(ge,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return En(ge,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return En(ge,f._0_modifier_must_precede_1_modifier,"export","async");if(ui(n.parent))return En(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return En(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return En(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:const gt=n.parent.kind===312?n.parent:n.parent.parent;if(gt.kind===267&&!ku(gt))return En(ge,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return En(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return En(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(re)return En(z,f.Decorators_are_not_valid_here)}else return En(ge,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return En(ge,f._0_modifier_already_seen,"declare");if(H&1024)return En(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return En(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ui(n.parent)&&!Jo(n))return En(ge,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return En(ge,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return En(ge,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return En(ge,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ld(n))return En(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,y=ge;break;case 128:if(H&64)return En(ge,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 En(ge,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Zr(n.parent,64))){const Dt=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return En(ge,Dt)}if(H&256)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&x)return En(x,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return En(ge,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return En(ge,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(sd(n)&&n.name.kind===81)return En(ge,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return En(ge,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return En(ge,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return En(ge,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return En(ge,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,x=ge;break;case 103:case 147:{const Dt=ge.kind===103?8192:16384,an=ge.kind===103?"in":"out",cn=sm(n.parent)&&(y0(n.parent)||An((a=ER(n.parent))==null?void 0:a.tags,KS))||n.parent;if(n.kind!==168||cn&&!(_d(cn)||ui(cn)||Nm(cn)||KS(cn)))return En(ge,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,an);if(H&Dt)return En(ge,f._0_modifier_already_seen,an);if(Dt&8192&&H&16384)return En(ge,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===176?H&256?En(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?En(k,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?En(x,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&H&128?En(y,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&H&31&&ta(n.name)?En(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&H&31&&n.dotDotDotToken?En(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?Dvt(n,x):!1}function Avt(n){if(!n.modifiers)return!1;const a=Ivt(n);return a&&hu(a,f.Modifiers_cannot_appear_here)}function gte(n,a){const c=An(n.modifiers,Ia);return c&&c.kind!==a?c:void 0}function Ivt(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 An(n.modifiers,Ia);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return gte(n,134);case 263:case 185:return gte(n,128);case 231:case 264:case 265:return An(n.modifiers,Ia);case 243:return n.declarationList.flags&4?gte(n,135):An(n.modifiers,Ia);case 266:return gte(n,87);default:N.assertNever(n)}}}function xvt(n){const a=Rvt(n);return a&&hu(a,f.Decorators_are_not_valid_here)}function Rvt(n){return zH(n)?An(n.modifiers,Eu):void 0}function Dvt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return En(a,f._0_modifier_cannot_be_used_here,"async")}function Ax(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?iS(n[0],n.end-1,1,a):!1}function zFe(n,a){if(n&&n.length===0){const c=n.pos-1,d=ka(a.text,n.end)+1;return iS(a,c,d-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Nvt(n){let a=!1;const c=n.length;for(let d=0;d!!a.initializer||ta(a.name)||Qh(a))}function Pvt(n){if(se>=3){const a=n.body&&Xo(n.body)&&wH(n.body.statements);if(a){const c=Cvt(n.parameters);if(Le(c)){Xe(c,_=>{wa(qe(_,f.This_parameter_is_not_allowed_with_use_strict_directive),kr(a,f.use_strict_directive_used_here))});const d=c.map((_,y)=>y===0?kr(_,f.Non_simple_parameter_declared_here):kr(_,f.and_here));return wa(qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function yte(n){const a=jn(n);return Dg(n)||zFe(n.typeParameters,a)||Nvt(n.parameters)||Lvt(n,a)||Bs(n)&&Pvt(n)}function Mvt(n){const a=jn(n);return Fvt(n)||zFe(n.typeParameters,a)}function Lvt(n,a){if(!Gs(n))return!1;n.typeParameters&&!(Le(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Tc(a.fileName,[".mts",".cts"])&&En(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,d=bs(a,c.pos).line,_=bs(a,c.end).line;return d!==_&&En(c,f.Line_terminator_not_permitted_before_arrow)}function kvt(n){const a=n.parameters[0];if(n.parameters.length!==1)return En(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(Ax(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return En(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(v3(a))return En(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return En(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return En(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return En(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);const c=bi(a.type);return Um(c,d=>!!(d.flags&8576))||NN(c)?En(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):up(c,OZ)?n.type?!1:En(n,f.An_index_signature_must_have_a_type_annotation):En(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function wvt(n){return Dg(n)||kvt(n)}function Ovt(n,a){if(a&&a.length===0){const c=jn(n),d=a.pos-1,_=ka(c.text,a.end)+1;return iS(c,d,_-d,f.Type_argument_list_cannot_be_empty)}return!1}function bB(n,a){return Ax(a)||Ovt(n,a)}function Wvt(n){return n.questionDotToken||n.flags&64?En(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function BFe(n){const a=n.types;if(Ax(a))return!0;if(a&&a.length===0){const c=fa(n.token);return iS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return bt(a,GFe)}function GFe(n){return Hy(n)&&hP(n.expression)&&n.typeArguments?En(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):bB(n,n.typeArguments)}function Fvt(n){let a=!1,c=!1;if(!Dg(n)&&n.heritageClauses)for(const d of n.heritageClauses){if(d.token===96){if(a)return hu(d,f.extends_clause_already_seen);if(c)return hu(d,f.extends_clause_must_precede_implements_clause);if(d.types.length>1)return hu(d.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(N.assert(d.token===119),c)return hu(d,f.implements_clause_already_seen);c=!0}BFe(d)}}function zvt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return hu(c,f.extends_clause_already_seen);a=!0}else return N.assert(c.token===119),hu(c,f.Interface_declaration_cannot_have_implements_clause);BFe(c)}return!1}function vte(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?En(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function gbe(n){if(n.asteriskToken){if(N.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return En(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return En(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function ybe(n,a){return!!n&&En(n,a)}function VFe(n,a){return!!n&&En(n,a)}function Bvt(n,a){const c=new Map;for(const d of n.properties){if(d.kind===305){if(a){const x=hs(d.expression);if(md(x)||Oa(x))return En(d.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const _=d.name;if(_.kind===167&&vte(_),d.kind===304&&!a&&d.objectAssignmentInitializer&&En(d.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&&En(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Cm(d)&&d.modifiers)for(const x of d.modifiers)Ia(x)&&(x.kind!==134||d.kind!==174)&&En(x,f._0_modifier_cannot_be_used_here,pc(x));else if(Hae(d)&&d.modifiers)for(const x of d.modifiers)Ia(x)&&En(x,f._0_modifier_cannot_be_used_here,pc(x));let y;switch(d.kind){case 304:case 303:VFe(d.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),ybe(d.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&Ebe(_),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:N.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){const x=Sbe(_);if(x===void 0)continue;const k=c.get(x);if(!k)c.set(x,y);else if(y&8&&k&8)En(_,f.Duplicate_identifier_0,pc(_));else if(y&4&&k&4)En(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,pc(_));else if(y&3&&k&3)if(k!==3&&y!==k)c.set(x,y|k);else return En(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return En(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Gvt(n){Vvt(n.tagName),bB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:d,initializer:_}=c,y=aP(d);if(!a.get(y))a.set(y,!0);else return En(d,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return En(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Vvt(n){if(Wr(n)&&t_(n.expression))return En(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(t_(n)&&w3(V)&&!RR(n.namespace.escapedText))return En(n,f.React_components_cannot_include_JSX_namespace_names)}function jvt(n){if(n.expression&&xP(n.expression))return En(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function jFe(n){if(by(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=jn(n);if(q4(n)){if(!rS(a))switch(LA(a,V)||ts.add(kr(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)),G){case 100:case 199:if(a.impliedNodeFormat===1){ts.add(kr(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(se>=4)break;default:ts.add(kr(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(!rS(a)){const c=kr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=Gp(n);if(d&&d.kind!==176){N.assert((Vc(d)&2)===0,"Enclosing function should never be an async function.");const _=kr(d,f.Did_you_mean_to_mark_this_function_as_async);wa(c,_)}return ts.add(c),!0}return!1}if(Hk(n)&&!(n.flags&65536)&&Ve(n.initializer)&&n.initializer.escapedText==="async")return En(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!bbe(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const _=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 hu(a.declarations[1],_)}const d=c[0];if(d.initializer){const _=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 En(d.name,_)}if(d.type){const _=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 En(d,_)}}}return!1}function Uvt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(se<1)return En(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(se<2&&Ji(n.name))return En(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Zr(n,64))return iS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(Zr(n,64))return En(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return En(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return En(n.name,f.An_accessor_cannot_have_type_parameters);if(!Hvt(n))return En(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 En(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);const a=N.checkDefined(WC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return En(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return En(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return En(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Hvt(n){return vbe(n)||n.parameters.length===(n.kind===177?0:1)}function vbe(n){if(n.parameters.length===(n.kind===177?1:2))return HE(n)}function qvt(n){if(n.operator===158){if(n.type.kind!==155)return En(n.type,f._0_expected,fa(155));let a=XL(n.parent);if(lr(a)&&u1(a)){const c=DS(a);c&&(a=WA(c)||c)}switch(a.kind){case 260:const c=a;if(c.name.kind!==80)return En(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!SC(c))return En(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return En(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!aa(a)||!FC(a))return En(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(!Zr(a,8))return En(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return En(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return hu(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,fa(155))}function m2(n,a){if(ult(n))return En(n,a)}function UFe(n){if(yte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ha(n.modifiers).kind===134))return hu(n,f.Modifiers_cannot_appear_here);if(ybe(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(VFe(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return iS(n,n.end-1,1,f._0_expected,"{")}if(gbe(n))return!0}if(ui(n.parent)){if(se<2&&Ji(n.name))return En(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return m2(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 m2(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 m2(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 m2(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 Jvt(n){let a=n;for(;a;){if(eR(a))return En(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&&!Wv(a.statement,!0)?En(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(Wv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const 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 En(n,c)}else{const 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 En(n,c)}}function Kvt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Ya(a))return En(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Ax(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return En(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return iS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function HFe(n){return nf(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function Xvt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Yvt(n){if((Wr(n)||Qs(n)&&HFe(n.argumentExpression))&&Gl(n.expression))return!!(nc(n).flags&1056)}function qFe(n){const a=n.initializer;if(a){const c=!(HFe(a)||Yvt(a)||a.kind===112||a.kind===97||Xvt(a));if((W4(n)||wi(n)&&EB(n))&&!n.type){if(c)return En(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return En(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function $vt(n){const a=oS(n),c=a&7;if(ta(n.name))switch(c){case 6:return En(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return En(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)qFe(n);else if(!n.initializer){if(ta(n.name)&&!ta(n.parent))return En(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return En(n,f._0_declarations_must_be_initialized,"await using");case 4:return En(n,f._0_declarations_must_be_initialized,"using");case 2:return En(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const d=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 En(n.exclamationToken,d)}return(G<5||jn(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&Zr(n.parent.parent,32)&&JFe(n.name),!!c&&KFe(n.name)}function JFe(n){if(n.kind===80){if(Sr(n)==="__esModule")return ebt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!jc(c))return JFe(c.name)}return!1}function KFe(n){if(n.kind===80){if(n.escapedText==="let")return En(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)jc(c)||KFe(c.name)}return!1}function bbe(n){const a=n.declarations;if(Ax(n.declarations))return!0;if(!n.declarations.length)return iS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&XW(n.parent)?En(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?dWe(n):!1}function XFe(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return XFe(n.parent)}return!0}function Qvt(n){if(!XFe(n.parent)){const a=oS(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":N.fail("Unknown BlockScope flag");return En(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Zvt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return En(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),fa(n.keywordToken),"target");break;case 102:if(a!=="meta")return En(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),fa(n.keywordToken),"meta");break}}function rS(n){return n.parseDiagnostics.length>0}function hu(n,a,...c){const d=jn(n);if(!rS(d)){const _=hh(d,n.pos);return ts.add(Qc(d,_.start,_.length,a,...c)),!0}return!1}function iS(n,a,c,d,..._){const y=jn(n);return rS(y)?!1:(ts.add(Qc(y,a,c,d,..._)),!0)}function ebt(n,a,c,...d){const _=jn(a);return rS(_)?!1:(a_(n,a,c,...d),!0)}function En(n,a,...c){const d=jn(n);return rS(d)?!1:(ts.add(kr(n,a,...c)),!0)}function tbt(n){const a=lr(n)?y3(n):void 0,c=n.typeParameters||a&&Xc(a);if(c){const d=c.pos===c.end?c.pos:ka(jn(n).text,c.pos);return iS(n,d,c.end-d,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function nbt(n){const a=n.type||nm(n);if(a)return En(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function rbt(n){if(Za(n.name)&&mr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return En(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(ui(n.parent)){if(Ma(n.name)&&n.name.text==="constructor")return En(n.name,f.Classes_may_not_have_a_field_named_constructor);if(m2(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(se<2&&Ji(n.name))return En(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(se<2&&Wd(n))return En(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Wd(n)&&ybe(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(m2(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(N.assertNode(n,yp),n.initializer)return En(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(bp(n.parent)){if(m2(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(N.assertNode(n,yp),n.initializer)return En(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&qFe(n),Jo(n)&&n.exclamationToken&&(!ui(n.parent)||!n.type||n.initializer||n.flags&33554432||aa(n)||KE(n))){const 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 En(n.exclamationToken,a)}}function ibt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Zr(n,2208)?!1:hu(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function obt(n){for(const a of n.statements)if((Ju(a)||a.kind===243)&&ibt(a))return!0;return!1}function abt(n){return!!(n.flags&33554432)&&obt(n)}function by(n){if(n.flags&33554432){if(!ei(n).hasReportedStatementInAmbientContext&&(ea(n.parent)||Ov(n.parent)))return ei(n).hasReportedStatementInAmbientContext=hu(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=ei(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=hu(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Ebe(n){const a=pc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||s_(!1,kr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function sbt(n){return!!(!(Zv(n.parent)||tb(n.parent)&&Zv(n.parent.parent))&&se<7&&En(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function lbt(n,a,...c){const d=jn(n);if(!rS(d)){const _=hh(d,n.pos);return ts.add(Qc(d,Kl(_),0,a,...c)),!0}return!1}function cbt(){return Wc||(Wc=[],Se.forEach((n,a)=>{Oq.test(a)&&Wc.push(n)})),Wc}function ubt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?En(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?YFe(n.namedBindings):!1}function YFe(n){return!!Xe(n.elements,a=>{if(a.isTypeOnly)return hu(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 dbt(n){if(V.verbatimModuleSyntax&&G===1)return En(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return En(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 En(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(G!==99&&G!==199&&G!==100&&(Ax(a),a.length>1)){const d=a[1];return En(d,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 En(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=An(a,e_);return c?En(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function pbt(n,a){const c=Or(n);if(c&20&&a.flags&1048576)return An(a.types,d=>{if(d.flags&524288){const _=c&Or(d);if(_&4)return n.target===d.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function fbt(n,a){if(Or(n)&128&&Um(a,gv))return An(a.types,c=>!gv(c))}function mbt(n,a){let c=0;if(Yo(n,c).length>0||(c=1,Yo(n,c).length>0))return An(a.types,_=>Yo(_,c).length>0)}function _bt(n,a){let c;if(!(n.flags&406978556)){let d=0;for(const _ of a.types)if(!(_.flags&406978556)){const y=ba([Q_(n),Q_(_)]);if(y.flags&4194304)return _;if(y_(y)||y.flags&1048576){const x=y.flags&1048576?au(y.types,y_):1;x>=d&&(c=_,d=x)}}}return c}function hbt(n){if(Cl(n,67108864)){const a=uc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function $Fe(n,a,c){if(a.flags&1048576&&n.flags&2621440){const d=c4e(a,n);if(d)return d;const _=gs(n);if(_){const y=l4e(_,a);if(y){const x=cye(a,Ot(y,k=>[()=>dr(k),k.escapedName]),c);if(x!==a)return x}}}}function Sbe(n){const a=NS(n);return a||(Za(n)?kye(Ru(n.expression)):void 0)}function bte(n){return Xn===n||(Xn=n,hn=l0(n)),hn}function oS(n){return rn===n||(rn=n,Pn=Ly(n)),Pn}function EB(n){const a=oS(n)&7;return a===2||a===4||a===6}}function uje(e){return!Ov(e)}function rxe(e){return e.kind!==262&&e.kind!==174||!!e.body}function ixe(e){switch(e.parent.kind){case 276:case 281:return Ve(e);default:return Wg(e)}}function oxe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Yu(e){return!!(e.flags&1)}function wq(e){return!!(e.flags&2)}function dje(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ia(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ia(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 Oq,WF,$se,Qse,Zse,ele,FF,Wq,zF,BF,axe,GF,tle,sf,Fq,pje=T({"src/compiler/checker.ts"(){ra(),Xse(),dS(),Oq=/^".+"$/,WF="(anonymous)",$se=1,Qse=1,Zse=1,ele=1,FF=(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))(FF||{}),Wq=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),zF=(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))(zF||{}),BF=(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))(BF||{}),axe=N6(rxe,uje),GF=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),tle=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(sf||(sf={})),Fq=class ZFe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof ZFe;)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 nt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return To(o)?s=(i||gje)(o):s=o,N.assertNode(s,r),s}function Vn(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||os-i)&&(o=s-i),sxe(e,t,r,i,o)}function sxe(e,t,r,i,o){let s;const l=e.length;(i>0||o=2&&(o=fje(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function fje(e,t){let r;for(let i=0;i{const l=iu,addSource:Ne,setSourceContent:pe,addName:ie,addMapping:Ue,appendSourceMap:Ee,toJSON:Se,toString:()=>JSON.stringify(Se())};function Ne(at){s();const Gt=IA(i,at,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let yt=h.get(Gt);return yt===void 0&&(yt=p.length,p.push(Gt),u.push(at),h.set(Gt,yt)),l(),yt}function pe(at,Gt){if(s(),Gt!==null){for(m||(m=[]);m.lengthGt||he===Gt&&ve>yt)}function Ue(at,Gt,yt,$e,It,tn){N.assert(at>=se,"generatedLine cannot backtrack"),N.assert(Gt>=0,"generatedCharacter cannot be negative"),N.assert(yt===void 0||yt>=0,"sourceIndex cannot be negative"),N.assert($e===void 0||$e>=0,"sourceLine cannot be negative"),N.assert(It===void 0||It>=0,"sourceCharacter cannot be negative"),s(),(ye(at,Gt)||Me(yt,$e,It))&&(We(),se=at,G=Gt,oe=!1,fe=!1,Y=!0),yt!==void 0&&$e!==void 0&&It!==void 0&&(ne=yt,he=$e,ve=It,oe=!0,tn!==void 0&&($=tn,fe=!0)),l()}function Ee(at,Gt,yt,$e,It,tn){N.assert(at>=se,"generatedLine cannot backtrack"),N.assert(Gt>=0,"generatedCharacter cannot be negative"),s();const rn=[];let Pn;const Xn=Vq(yt.mappings);for(const hn of Xn){if(tn&&(hn.generatedLine>tn.line||hn.generatedLine===tn.line&&hn.generatedCharacter>tn.character))break;if(It&&(hn.generatedLine=1024&&At()}function We(){if(!(!Y||!De())){if(s(),M0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function Se(){return We(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:v,mappings:R,sourcesContent:m}}function je(at){at<0?at=(-at<<1)+1:at=at<<1;do{let Gt=at&31;at=at>>5,at>0&&(Gt=Gt|32),Pe(bje(Gt))}while(at>0)}}function Bq(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function rle(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=jF.exec(r);if(i)return i[1].trimEnd();if(!r.match(UF))break}}function vje(e){return typeof e=="string"||e===null}function ile(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&To(e.sources)&&Zn(e.sources,Po)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||To(e.sourcesContent)&&Zn(e.sourcesContent,vje))&&(e.names===void 0||e.names===null||To(e.names)&&Zn(e.names,Po))}function Gq(e){try{const t=JSON.parse(e);if(ile(t))return t}catch{}}function Vq(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=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 A("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Z=Eje(e.charCodeAt(r));if(Z===-1)return A("Invalid character in VLQ"),-1;O=(Z&32)!==0,K=K|(Z&31)<>1:(K=K>>1,K=-K),K}}function cxe(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 ole(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function bje(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:N.fail(`${e}: not a base64 value`)}function Eje(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 uxe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function dxe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Sje(e,t){return N.assert(e.sourceIndex===t.sourceIndex),rl(e.sourcePosition,t.sourcePosition)}function Tje(e,t){return rl(e.generatedPosition,t.generatedPosition)}function Aje(e){return e.sourcePosition}function Ije(e){return e.generatedPosition}function ale(e,t,r){const i=ai(r),o=t.sourceRoot?go(t.sourceRoot,i):i,s=go(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(U=>go(U,o)),p=new Map(u.map((U,K)=>[e.getCanonicalFileName(U),K]));let h,m,v;return{getSourcePosition:O,getGeneratedPosition:C};function A(U){const K=l!==void 0?K2(l,U.generatedLine,U.generatedCharacter,!0):-1;let Z,V;if(ole(U)){const se=e.getSourceFileLike(u[U.sourceIndex]);Z=t.sources[U.sourceIndex],V=se!==void 0?K2(se,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:K,source:Z,sourceIndex:U.sourceIndex,sourcePosition:V,nameIndex:U.nameIndex}}function I(){if(h===void 0){const U=Vq(t.mappings),K=zo(U,A);U.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${U.error}`),h=et):h=K}return h}function R(U){if(v===void 0){const K=[];for(const Z of I()){if(!uxe(Z))continue;let V=K[Z.sourceIndex];V||(K[Z.sourceIndex]=V=[]),V.push(Z)}v=K.map(Z=>JN(Z,Sje,dxe))}return v[U]}function M(){if(m===void 0){const U=[];for(const K of I())U.push(K);m=JN(U,Tje,dxe)}return m}function C(U){const K=p.get(e.getCanonicalFileName(U.fileName));if(K===void 0)return U;const Z=R(K);if(!bt(Z))return U;let V=yA(Z,U.pos,Aje,rl);V<0&&(V=~V);const se=Z[V];return se===void 0||se.sourceIndex!==K?U:{fileName:s,pos:se.generatedPosition}}function O(U){const K=M();if(!bt(K))return U;let Z=yA(K,U.pos,Ije,rl);Z<0&&(Z=~Z);const V=K[Z];return V===void 0||!uxe(V)?U:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var jq,jF,UF,HF,xje=T({"src/compiler/sourcemap.ts"(){ra(),dS(),jq=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,jF=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,UF=/^\s*(\/\/[@#] .*)?$/,HF={getSourcePosition:nl,getGeneratedPosition:nl}}});function Wu(e){return e=Pl(e),e?as(e):0}function Rje(e){return!e||!Vg(e)?!1:bt(e.elements,pxe)}function pxe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Pm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Ot(o.sourceFiles,t),o.prepends)}}function sle(e){return!!vR(e)}function qF(e){if(vR(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!Vg(t))return!1;let r=0;for(const i of t.elements)pxe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&wA(e)}function Uq(e){return!qF(e)&&(wA(e)||!!e.importClause&&Vg(e.importClause.namedBindings)&&Rje(e.importClause.namedBindings))}function Hq(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new Xq,l=[],u=new Map;let p,h=!1,m,v=!1,A=!1,I=!1;for(const C of t.statements)switch(C.kind){case 272:o.push(C),!A&&qF(C)&&(A=!0),!I&&Uq(C)&&(I=!0);break;case 271:C.moduleReference.kind===283&&o.push(C);break;case 278:if(C.moduleSpecifier)if(!C.exportClause)o.push(C),v=!0;else if(o.push(C),Pf(C.exportClause))M(C);else{const O=C.exportClause.name;u.get(Sr(O))||(FP(l,Wu(C),O),u.set(Sr(O),!0),p=xn(p,O)),A=!0}else M(C);break;case 277:C.isExportEquals&&!m&&(m=C);break;case 243:if(Zr(C,32))for(const O of C.declarationList.declarations)p=fxe(O,u,p,l);break;case 262:if(Zr(C,32))if(Zr(C,2048))h||(FP(l,Wu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;u.get(Sr(O))||(FP(l,Wu(C),O),u.set(Sr(O),!0),p=xn(p,O))}break;case 263:if(Zr(C,32))if(Zr(C,2048))h||(FP(l,Wu(C),e.factory.getDeclarationName(C)),h=!0);else{const O=C.name;O&&!u.get(Sr(O))&&(FP(l,Wu(C),O),u.set(Sr(O),!0),p=xn(p,O))}break}const R=OH(e.factory,e.getEmitHelperFactory(),t,i,v,A,I);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:v,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(C){for(const O of oa(C.exportClause,Pf).elements)if(!u.get(Sr(O.name))){const U=O.propertyName||O.name;C.moduleSpecifier||s.add(U,O);const K=r.getReferencedImportDeclaration(U)||r.getReferencedValueDeclaration(U);K&&FP(l,Wu(K),O.name),u.set(Sr(O.name),!0),p=xn(p,O.name)}}}function fxe(e,t,r,i){if(ta(e.name))for(const o of e.name.elements)jc(o)||(r=fxe(o,t,r,i));else if(!sl(e.name)){const o=Sr(e.name);t.get(o)||(t.set(o,!0),r=xn(r,e.name),jg(e.name)&&FP(i,Wu(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 m1(e){return ls(e)||e.kind===9||Bd(e.kind)||Ve(e)}function xh(e){return!Ve(e)&&m1(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 JF(e){if(!eu(e))return;const t=hs(e.expression);return TS(t)?t:void 0}function mxe(e,t,r){for(let i=t;iNje(i,t,r))}function Dje(e){return Cje(e)||Rl(e)}function XF(e){return nr(e.members,Dje)}function Nje(e,t,r){return Jo(e)&&(!!e.initializer||!t)&&fc(e)===r}function Cje(e){return Jo(e)&&fc(e)}function Dw(e){return e.kind===172&&e.initializer!==void 0}function lle(e){return!aa(e)&&(CA(e)||Wd(e))&&Ji(e.name)}function cle(e){let t;if(e){const r=e.parameters,i=r.length>0&&qE(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lKq(r.privateEnv,t))}function fle(e){return!e.initializer&&Ve(e.name)}function Nw(e){return Zn(e,fle)}var TI,Xq,Lje=T({"src/compiler/transformers/utilities.ts"(){ra(),TI=class jN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(jN.toKey(t))}get(t){return this._map.get(jN.toKey(t))}set(t,r){return this._map.set(jN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(jN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(_S(t)||sl(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=tw(t),o=$h(i)&&i!==t?jN.toKey(i):`(generated@${as(i)})`;return D0(!1,r.prefix,o,r.suffix,jN.toKey)}else{const i=`(auto@${r.id})`;return D0(!1,r.prefix,i,r.suffix,jN.toKey)}}return Ji(t)?Sr(t).slice(1):Sr(t)}},Xq=class extends TI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(EA(r,t),r.length||this.delete(e))}}}});function ZS(e,t,r,i,o,s){let l=e,u;if(By(e))for(u=e.right;eoe(e.left)||cU(e.left);)if(By(u))l=e=u,u=e.right;else return N.checkDefined(nt(u,t,vt));let p;const h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:v,createArrayBindingOrAssignmentPattern:A=>Gje(r.factory,A),createObjectBindingOrAssignmentPattern:A=>jje(r.factory,A),createArrayBindingOrAssignmentElement:Hje,visitor:t};if(u&&(u=nt(u,t,vt),N.assert(u),Ve(u)&&mle(e,u.escapedText)||_le(e)?u=AI(h,u,!1,l):o?u=AI(h,u,!0,l):$s(e)&&(l=u)),GP(h,e,u,l,By(e)),u&&o){if(!bt(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(A){p=xn(p,A)}function v(A,I,R,M){N.assertNode(A,s?Ve:vt);const C=s?s(A,I,R):dt(r.factory.createAssignment(N.checkDefined(nt(A,t,vt)),I),R);C.original=M,m(C)}}function mle(e,t){const r=rb(e);return dL(r)?kje(r,t):Ve(r)?r.escapedText===t:!1}function kje(e,t){const r=nD(e);for(const i of r)if(mle(i,t))return!0;return!1}function _le(e){const t=sF(e);if(t&&Za(t)&&!LE(t.expression))return!0;const r=rb(e);return!!r&&dL(r)&&wje(r)}function wje(e){return!!Xe(nD(e),_le)}function _1(e,t,r,i,o,s=!1,l){let u;const p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:v,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:I=>Bje(r.factory,I),createObjectBindingOrAssignmentPattern:I=>Vje(r.factory,I),createArrayBindingOrAssignmentElement:I=>Uje(r.factory,I),visitor:t};if(wi(e)){let I=Zk(e);I&&(Ve(I)&&mle(e,I.escapedText)||_le(e))&&(I=AI(m,N.checkDefined(nt(I,m.visitor,vt)),!1,I),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(GP(m,e,o,e,l),u){const I=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,A(I,R,void 0,void 0)}else{r.hoistVariableDeclaration(I);const R=Ya(p);R.pendingExpressions=xn(R.pendingExpressions,r.factory.createAssignment(I,R.value)),qr(R.pendingExpressions,u),R.value=I}}for(const{pendingExpressions:I,name:R,value:M,location:C,original:O}of p){const U=r.factory.createVariableDeclaration(R,void 0,void 0,I?r.factory.inlineExpressions(xn(I,M)):M);U.original=O,dt(U,C),h.push(U)}return h;function v(I){u=xn(u,I)}function A(I,R,M,C){N.assertNode(I,hS),u&&(R=r.factory.inlineExpressions(xn(u,R)),u=void 0),p.push({pendingExpressions:u,name:I,value:R,location:M,original:C})}}function GP(e,t,r,i,o){const s=rb(t);if(!o){const l=nt(Zk(t),e.visitor,vt);l?r?(r=Fje(e,r,l,i),!xh(l)&&dL(s)&&(r=AI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}JV(s)?Oje(e,t,s,r,i):KV(s)?Wje(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function Oje(e,t,r,i,o){const s=nD(r),l=s.length;if(l!==1){const h=!uL(t)||l!==0;i=AI(e,i,h,o)}let u,p;for(let h=0;h=1&&!(m.transformFlags&98304)&&!(rb(m).transformFlags&98304)&&!Za(v))u=xn(u,nt(m,e.visitor,Sre));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const A=zje(e,i,v);Za(v)&&(p=xn(p,A.argumentExpression)),GP(e,m,A,m)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function Wje(e,t,r,i,o){const s=nD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=AI(e,dt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&aF(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Zn(s,jc)){const h=!uL(t)||l!==0;i=AI(e,i,h,o)}let u,p;for(let h=0;h=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!hxe(m)){e.hasTransformedPriorElement=!0;const v=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(v),p=xn(p,[v,m]),u=xn(u,e.createArrayBindingOrAssignmentElement(v))}else u=xn(u,m);else{if(jc(m))continue;if(aF(m)){if(h===l-1){const v=e.context.factory.createArraySliceCall(i,h);GP(e,m,v,m)}}else{const v=e.context.factory.createElementAccessExpression(i,h);GP(e,m,v,m)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(const[h,m]of p)GP(e,m,h,m)}function hxe(e){const t=rb(e);if(!t||jc(t))return!0;const r=sF(e);if(r&&!N_(r))return!1;const i=Zk(e);return i&&!xh(i)?!1:dL(t)?Zn(nD(t),hxe):Ve(t)}function Fje(e,t,r,i){return t=AI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function zje(e,t,r){const{factory:i}=e.context;if(Za(r)){const o=AI(e,N.checkDefined(nt(r.expression,e.visitor,vt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(nf(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Sr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function AI(e,t,r,i){if(Ve(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(dt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function Bje(e,t){return N.assertEachNode(t,y4),e.createArrayBindingPattern(t)}function Gje(e,t){return N.assertEachNode(t,fL),e.createArrayLiteralExpression(Ot(t,e.converters.convertToArrayAssignmentElement))}function Vje(e,t){return N.assertEachNode(t,Qa),e.createObjectBindingPattern(t)}function jje(e,t){return N.assertEachNode(t,pL),e.createObjectLiteralExpression(Ot(t,e.converters.convertToObjectAssignmentElement))}function Uje(e,t){return e.createBindingElement(void 0,void 0,t)}function Hje(e){return e}var Yq,qje=T({"src/compiler/transformers/destructuring.ts"(){ra(),Yq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Yq||{})}});function hle(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Ou(l).classThis=t,l}function VP(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return eu(r)&&Lc(r.expression,!0)&&Ve(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function $q(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&bt(e.members,VP)}function gle(e,t,r,i){if($q(t))return t;const o=hle(e,r,i);t.name&&Pa(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);dt(s,t.members);const l=Ic(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 Ou(l).classThis=r,l}var Jje=T({"src/compiler/transformers/classThis.ts"(){ra()}});function jP(e,t,r){const i=Pl($l(r));return(Ic(i)||Ac(i))&&!i.name&&Zr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function gxe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(N_(t)||Ji(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(N_(t.expression)&&!Ve(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function yle(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return Ou(u).assignedName=t,u}function II(e){var t;if(!Rl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return eu(r)&&fP(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function $F(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&bt(e.members,II)}function Qq(e){return!!e.name||$F(e)}function QF(e,t,r,i){if($F(t))return t;const{factory:o}=e,s=yle(e,r,i);t.name&&Pa(s.body.statements[0],t.name);const l=Br(t.members,VP)+1,u=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...u,s,...p]);return dt(h,t.members),t=Ic(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),Ou(t).assignedName=r,t}function fD(e,t,r,i){if(i&&Ma(r)&&Ij(r))return t;const{factory:o}=e,s=$l(t),l=Zc(s)?oa(QF(e,s,r),Zc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function Kje(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=gxe(e,t.name,i),u=fD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function Xje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.objectAssignmentInitializer),l=fD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function Yje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.initializer),l=fD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function $je(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.initializer),l=fD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function Qje(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.name,t.initializer),l=fD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function Zje(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=gxe(e,t.name,i),u=fD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function eUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):jP(o,t.left,t.right),l=fD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function tUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=fD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Ep(e,t,r,i){switch(t.kind){case 303:return Kje(e,t,r,i);case 304:return Xje(e,t,r,i);case 260:return Yje(e,t,r,i);case 169:return $je(e,t,r,i);case 208:return Qje(e,t,r,i);case 172:return Zje(e,t,r,i);case 226:return eUe(e,t,r,i);case 277:return tUe(e,t,r,i)}}var nUe=T({"src/compiler/transformers/namedEvaluation.ts"(){ra()}});function Zq(e,t,r,i,o,s){const l=nt(t.tag,r,vt);N.assert(l);const u=[void 0],p=[],h=[],m=t.template;if(s===0&&!Yj(m))return In(t,r,e);const{factory:v}=e;if(tI(m))p.push(vle(v,m)),h.push(ble(v,m,i));else{p.push(vle(v,m.head)),h.push(ble(v,m.head,i));for(const I of m.templateSpans)p.push(vle(v,I.literal)),h.push(ble(v,I.literal,i)),u.push(N.checkDefined(nt(I.expression,r,vt)))}const A=e.getEmitHelperFactory().createTemplateObjectHelper(v.createArrayLiteralExpression(p),v.createArrayLiteralExpression(h));if(ac(i)){const I=v.createUniqueName("templateObject");o(I),u[0]=v.createLogicalOr(I,v.createAssignment(I,A))}else u[0]=A;return v.createCallExpression(l,void 0,u)}function vle(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function ble(e,t,r){let i=t.rawText;if(i===void 0){N.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=wE(r,t);const o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` `),dt(e.createStringLiteral(i),t)}var eJ,rUe=T({"src/compiler/transformers/taggedTemplate.ts"(){ra(),eJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(eJ||{})}});function Ele(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),h=os(p),m=wu(p),v=!!p.experimentalDecorators,A=p.emitDecoratorMetadata?Tle(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=sc,e.onSubstituteNode=Nl,e.enableSubstitution(211),e.enableSubstitution(212);let M,C,O,U,K,Z,V,se;return G;function G(ee){return ee.kind===313?ne(ee):he(ee)}function ne(ee){return t.createBundle(ee.sourceFiles.map(he),Hi(ee.prepends,we=>we.kind===315?eH(we,"js"):we))}function he(ee){if(ee.isDeclarationFile)return ee;M=ee;const we=ve(ee,at);return Gg(we,e.readEmitHelpers()),M=void 0,we}function ve(ee,we){const Et=U,un=K,Er=Z;$(ee);const yr=we(ee);return U!==Et&&(K=un),U=Et,Z=Er,yr}function $(ee){switch(ee.kind){case 312:case 269:case 268:case 241:U=ee,K=void 0;break;case 263:case 262:if(Zr(ee,128))break;ee.name?J(ee):N.assert(ee.kind===263||Zr(ee,2048));break}}function Y(ee){return ve(ee,oe)}function oe(ee){return ee.transformFlags&1?je(ee):ee}function fe(ee){return ve(ee,Ne)}function Ne(ee){switch(ee.kind){case 272:case 271:case 277:case 278:return ie(ee);default:return oe(ee)}}function pe(ee){const we=Do(ee);if(we===ee||kl(ee))return!1;if(!we||we.kind!==ee.kind)return!0;switch(ee.kind){case 272:if(N.assertNode(we,kc),ee.importClause!==we.importClause||ee.attributes!==we.attributes)return!0;break;case 271:if(N.assertNode(we,tu),ee.name!==we.name||ee.isTypeOnly!==we.isTypeOnly||ee.moduleReference!==we.moduleReference&&(Zd(ee.moduleReference)||Zd(we.moduleReference)))return!0;break;case 278:if(N.assertNode(we,Yl),ee.exportClause!==we.exportClause||ee.attributes!==we.attributes)return!0;break}return!1}function ie(ee){if(pe(ee))return ee.transformFlags&1?In(ee,Y,e):ee;switch(ee.kind){case 272:return bn(ee);case 271:return xo(ee);case 277:return Ai(ee);case 278:return ir(ee);default:N.fail("Unhandled ellided statement")}}function ye(ee){return ve(ee,Me)}function Me(ee){if(!(ee.kind===278||ee.kind===272||ee.kind===273||ee.kind===271&&ee.moduleReference.kind===283))return ee.transformFlags&1||Zr(ee,32)?je(ee):ee}function Ue(ee){return we=>ve(we,Et=>Ee(Et,ee))}function Ee(ee,we){switch(ee.kind){case 176:return Rn(ee);case 172:return Bt(ee,we);case 177:return Wa(ee,we);case 178:return Sn(ee,we);case 174:return Io(ee,we);case 175:return In(ee,Y,e);case 240:return ee;case 181:return;default:return N.failBadSyntaxKind(ee)}}function De(ee){return we=>ve(we,Et=>Pe(Et,ee))}function Pe(ee,we){switch(ee.kind){case 303:case 304:case 305:return Y(ee);case 177:return Wa(ee,we);case 178:return Sn(ee,we);case 174:return Io(ee,we);default:return N.failBadSyntaxKind(ee)}}function We(ee){return Eu(ee)?void 0:Y(ee)}function At(ee){return Ia(ee)?void 0:Y(ee)}function Se(ee){if(!Eu(ee)&&!(VA(ee.kind)&28895)&&!(C&&ee.kind===95))return ee}function je(ee){if(qi(ee)&&Zr(ee,128))return t.createNotEmittedStatement(ee);switch(ee.kind){case 95:case 90:return C?void 0:ee;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(ee);case 270:return;case 264:return t.createNotEmittedStatement(ee);case 263:return tn(ee);case 231:return rn(ee);case 298:return Ar(ee);case 233:return sn(ee);case 210:return Gt(ee);case 176:case 172:case 174:case 177:case 178:case 175:return N.fail("Class and object literal elements must be visited with their respective visitors");case 262:return kn(ee);case 218:return He(ee);case 219:return mt(ee);case 169:return ft(ee);case 217:return pt(ee);case 216:case 234:return j(ee);case 238:return Rt(ee);case 213:return Ye(ee);case 214:return _t(ee);case 215:return Vt(ee);case 235:return ot(ee);case 266:return q(ee);case 243:return Ct(ee);case 260:return Fe(ee);case 267:return Tt(ee);case 271:return xo(ee);case 285:return yn(ee);case 286:return pn(ee);default:return In(ee,Y,e)}}function at(ee){const we=pd(p,"alwaysStrict")&&!(ac(ee)&&m>=5)&&!Qf(ee);return t.updateSourceFile(ee,zq(ee.statements,fe,e,0,we))}function Gt(ee){return t.updateObjectLiteralExpression(ee,Vn(ee.properties,De(ee),kg))}function yt(ee){let we=0;bt(qq(ee,!0,!0))&&(we|=1);const Et=D_(ee);return Et&&$l(Et.expression).kind!==106&&(we|=64),Oy(v,ee)&&(we|=2),AC(v,ee)&&(we|=4),Dn(ee)?we|=8:Lo(ee)?we|=32:Ql(ee)&&(we|=16),we}function $e(ee){return!!(ee.transformFlags&8192)}function It(ee){return If(ee)||bt(ee.typeParameters)||bt(ee.heritageClauses,$e)||bt(ee.members,$e)}function tn(ee){const we=yt(ee),Et=h<=1&&!!(we&7);if(!It(ee)&&!Oy(v,ee)&&!Dn(ee))return t.updateClassDeclaration(ee,Vn(ee.modifiers,Se,Ia),ee.name,void 0,Vn(ee.heritageClauses,Y,of),Vn(ee.members,Ue(ee),$c));Et&&e.startLexicalEnvironment();const un=Et||we&8;let Er=un?Vn(ee.modifiers,At,ll):Vn(ee.modifiers,Y,ll);we&2&&(Er=Xn(Er,ee));const jr=un&&!ee.name||we&4||we&1?ee.name??t.getGeneratedNameForNode(ee):ee.name,xi=t.updateClassDeclaration(ee,Er,jr,void 0,Vn(ee.heritageClauses,Y,of),Pn(ee));let Mr=ja(ee);we&1&&(Mr|=64),pr(xi,Mr);let $o;if(Et){const Tl=[xi],Hc=dU(ka(M.text,ee.members.end),20),Us=t.getInternalName(ee),gc=t.createPartiallyEmittedExpression(Us);WR(gc,Hc.end),pr(gc,3072);const Ss=t.createReturnStatement(gc);eP(Ss,Hc.pos),pr(Ss,3840),Tl.push(Ss),Zh(Tl,e.endLexicalEnvironment());const qc=t.createImmediatelyInvokedArrowFunction(Tl);Mk(qc,1);const op=t.createVariableDeclaration(t.getLocalName(ee,!1,!1),void 0,void 0,qc);Cr(op,ee);const Wc=t.createVariableStatement(void 0,t.createVariableDeclarationList([op],1));Cr(Wc,ee),oc(Wc,ee),Pa(Wc,Fg(ee)),Xu(Wc),$o=Wc}else $o=xi;if(un){if(we&8)return[$o,cs(ee)];if(we&32)return[$o,t.createExportDefault(t.getLocalName(ee,!1,!0))];if(we&16)return[$o,t.createExternalModuleExport(t.getDeclarationName(ee,!1,!0))]}return $o}function rn(ee){let we=Vn(ee.modifiers,At,ll);return Oy(v,ee)&&(we=Xn(we,ee)),t.updateClassExpression(ee,we,ee.name,void 0,Vn(ee.heritageClauses,Y,of),Pn(ee))}function Pn(ee){const we=Vn(ee.members,Ue(ee),$c);let Et;const un=og(ee),Er=un&&nr(un.parameters,yr=>fp(yr,un));if(Er)for(const yr of Er){const jr=t.createPropertyDeclaration(void 0,yr.name,void 0,void 0,void 0);Cr(jr,yr),Et=xn(Et,jr)}return Et?(Et=qr(Et,we),dt(t.createNodeArray(Et),ee.members)):we}function Xn(ee,we){const Et=Qt(we,we);if(bt(Et)){const un=[];qr(un,M6(ee,ew)),qr(un,nr(ee,Eu)),qr(un,Et),qr(un,nr(bne(ee,ew),Ia)),ee=dt(t.createNodeArray(un),ee)}return ee}function hn(ee,we,Et){if(ui(Et)&&Aj(v,we,Et)){const un=Qt(we,Et);if(bt(un)){const Er=[];qr(Er,nr(ee,Eu)),qr(Er,un),qr(Er,nr(ee,Ia)),ee=dt(t.createNodeArray(Er),ee)}}return ee}function Qt(ee,we){if(v)return yxe?_i(ee,we):$t(ee,we)}function $t(ee,we){if(A){let Et;if(ao(ee)){const un=r().createMetadataHelper("design:type",A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee));Et=xn(Et,t.createDecorator(un))}if(No(ee)){const un=r().createMetadataHelper("design:paramtypes",A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},ee,we));Et=xn(Et,t.createDecorator(un))}if(Oi(ee)){const un=r().createMetadataHelper("design:returntype",A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee));Et=xn(Et,t.createDecorator(un))}return Et}}function _i(ee,we){if(A){let Et;if(ao(ee)){const un=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee)));Et=xn(Et,un)}if(No(ee)){const un=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},ee,we)));Et=xn(Et,un)}if(Oi(ee)){const un=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},ee)));Et=xn(Et,un)}if(Et){const un=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Et,!0));return[t.createDecorator(un)]}}}function ao(ee){const we=ee.kind;return we===174||we===177||we===178||we===172}function Oi(ee){return ee.kind===174}function No(ee){switch(ee.kind){case 263:case 231:return og(ee)!==void 0;case 174:case 177:case 178:return!0}return!1}function Mn(ee,we){const Et=ee.name;return Ji(Et)?t.createIdentifier(""):Za(Et)?Et.expression:Ve(Et)?t.createStringLiteral(Sr(Et)):t.cloneNode(Et)}function Di(ee){const we=ee.name;if(Za(we)&&(!fc(ee)&&Z||If(ee)&&v)){const Et=nt(we.expression,Y,vt);N.assert(Et);const un=Tm(Et);if(!xh(un)){const Er=t.getGeneratedNameForNode(we);return l(Er),t.updateComputedPropertyName(we,t.createAssignment(Er,Et))}}return N.checkDefined(nt(we,Y,ic))}function Ar(ee){if(ee.token!==119)return In(ee,Y,e)}function sn(ee){return t.updateExpressionWithTypeArguments(ee,N.checkDefined(nt(ee.expression,Y,ep)),void 0)}function tt(ee){return!zl(ee.body)}function Bt(ee,we){const Et=ee.flags&33554432||Zr(ee,64);if(Et&&!(v&&If(ee)))return;let un=ui(we)?Et?Vn(ee.modifiers,At,ll):Vn(ee.modifiers,Y,ll):Vn(ee.modifiers,We,ll);return un=hn(un,ee,we),Et?t.updatePropertyDeclaration(ee,So(un,t.createModifiersFromModifierFlags(128)),N.checkDefined(nt(ee.name,Y,ic)),void 0,void 0,void 0):t.updatePropertyDeclaration(ee,un,Di(ee),void 0,void 0,nt(ee.initializer,Y,vt))}function Rn(ee){if(tt(ee))return t.updateConstructorDeclaration(ee,void 0,Dl(ee.parameters,Y,e),hi(ee.body,ee))}function li(ee,we,Et,un,Er,yr){const jr=un[Er],xi=we[jr];if(qr(ee,Vn(we,Y,qi,Et,jr-Et)),US(xi)){const Mr=[];li(Mr,xi.tryBlock.statements,0,un,Er+1,yr);const $o=t.createNodeArray(Mr);dt($o,xi.tryBlock.statements),ee.push(t.updateTryStatement(xi,t.updateBlock(xi.tryBlock,Mr),nt(xi.catchClause,Y,l1),nt(xi.finallyBlock,Y,Xo)))}else qr(ee,Vn(we,Y,qi,jr,1)),qr(ee,yr);qr(ee,Vn(we,Y,qi,jr+1))}function hi(ee,we){const Et=we&&nr(we.parameters,Mr=>fp(Mr,we));if(!bt(Et))return lf(ee,Y,e);let un=[];o();const Er=t.copyPrologue(ee.statements,un,!1,Y),yr=KF(ee.statements,Er),jr=Hi(Et,Qi);yr.length?li(un,ee.statements,Er,yr,0,jr):(qr(un,jr),qr(un,Vn(ee.statements,Y,qi,Er))),un=t.mergeLexicalEnvironment(un,s());const xi=t.createBlock(dt(t.createNodeArray(un),ee.statements),!0);return dt(xi,ee),Cr(xi,ee),xi}function Qi(ee){const we=ee.name;if(!Ve(we))return;const Et=qa(dt(t.cloneNode(we),we),we.parent);pr(Et,3168);const un=qa(dt(t.cloneNode(we),we),we.parent);return pr(un,3072),Xu(Pk(dt(Cr(t.createExpressionStatement(t.createAssignment(dt(t.createPropertyAccessExpression(t.createThis(),Et),ee.name),un)),ee),b0(ee,-1))))}function Io(ee,we){if(!(ee.transformFlags&1))return ee;if(!tt(ee))return;let Et=ui(we)?Vn(ee.modifiers,Y,ll):Vn(ee.modifiers,We,ll);return Et=hn(Et,ee,we),t.updateMethodDeclaration(ee,Et,ee.asteriskToken,Di(ee),void 0,void 0,Dl(ee.parameters,Y,e),void 0,lf(ee.body,Y,e))}function ma(ee){return!(zl(ee.body)&&Zr(ee,64))}function Wa(ee,we){if(!(ee.transformFlags&1))return ee;if(!ma(ee))return;let Et=ui(we)?Vn(ee.modifiers,Y,ll):Vn(ee.modifiers,We,ll);return Et=hn(Et,ee,we),t.updateGetAccessorDeclaration(ee,Et,Di(ee),Dl(ee.parameters,Y,e),void 0,lf(ee.body,Y,e)||t.createBlock([]))}function Sn(ee,we){if(!(ee.transformFlags&1))return ee;if(!ma(ee))return;let Et=ui(we)?Vn(ee.modifiers,Y,ll):Vn(ee.modifiers,We,ll);return Et=hn(Et,ee,we),t.updateSetAccessorDeclaration(ee,Et,Di(ee),Dl(ee.parameters,Y,e),lf(ee.body,Y,e)||t.createBlock([]))}function kn(ee){if(!tt(ee))return t.createNotEmittedStatement(ee);const we=t.updateFunctionDeclaration(ee,Vn(ee.modifiers,Se,Ia),ee.asteriskToken,ee.name,void 0,Dl(ee.parameters,Y,e),void 0,lf(ee.body,Y,e)||t.createBlock([]));if(Dn(ee)){const Et=[we];return Vs(Et,ee),Et}return we}function He(ee){return tt(ee)?t.updateFunctionExpression(ee,Vn(ee.modifiers,Se,Ia),ee.asteriskToken,ee.name,void 0,Dl(ee.parameters,Y,e),void 0,lf(ee.body,Y,e)||t.createBlock([])):t.createOmittedExpression()}function mt(ee){return t.updateArrowFunction(ee,Vn(ee.modifiers,Se,Ia),void 0,Dl(ee.parameters,Y,e),void 0,ee.equalsGreaterThanToken,lf(ee.body,Y,e))}function ft(ee){if(qE(ee))return;const we=t.updateParameterDeclaration(ee,Vn(ee.modifiers,Et=>Eu(Et)?Y(Et):void 0,ll),ee.dotDotDotToken,N.checkDefined(nt(ee.name,Y,hS)),void 0,void 0,nt(ee.initializer,Y,vt));return we!==ee&&(oc(we,ee),dt(we,L_(ee)),Pa(we,L_(ee)),pr(we.name,64)),we}function Ct(ee){if(Dn(ee)){const we=UC(ee.declarationList);return we.length===0?void 0:dt(t.createExpressionStatement(t.inlineExpressions(Ot(we,le))),ee)}else return In(ee,Y,e)}function le(ee){const we=ee.name;return ta(we)?ZS(ee,Y,e,0,!1,uu):dt(t.createAssignment(ho(we),N.checkDefined(nt(ee.initializer,Y,vt))),ee)}function Fe(ee){const we=t.updateVariableDeclaration(ee,N.checkDefined(nt(ee.name,Y,hS)),void 0,void 0,nt(ee.initializer,Y,vt));return ee.type&&oae(we.name,ee.type),we}function pt(ee){const we=$l(ee.expression,-7);if(yS(we)){const Et=nt(ee.expression,Y,vt);return N.assert(Et),t.createPartiallyEmittedExpression(Et,ee)}return In(ee,Y,e)}function j(ee){const we=nt(ee.expression,Y,vt);return N.assert(we),t.createPartiallyEmittedExpression(we,ee)}function ot(ee){const we=nt(ee.expression,Y,ep);return N.assert(we),t.createPartiallyEmittedExpression(we,ee)}function Rt(ee){const we=nt(ee.expression,Y,vt);return N.assert(we),t.createPartiallyEmittedExpression(we,ee)}function Ye(ee){return t.updateCallExpression(ee,N.checkDefined(nt(ee.expression,Y,vt)),void 0,Vn(ee.arguments,Y,vt))}function _t(ee){return t.updateNewExpression(ee,N.checkDefined(nt(ee.expression,Y,vt)),void 0,Vn(ee.arguments,Y,vt))}function Vt(ee){return t.updateTaggedTemplateExpression(ee,N.checkDefined(nt(ee.tag,Y,vt)),void 0,N.checkDefined(nt(ee.template,Y,PA)))}function yn(ee){return t.updateJsxSelfClosingElement(ee,N.checkDefined(nt(ee.tagName,Y,gC)),void 0,N.checkDefined(nt(ee.attributes,Y,s1)))}function pn(ee){return t.updateJsxOpeningElement(ee,N.checkDefined(nt(ee.tagName,Y,gC)),void 0,N.checkDefined(nt(ee.attributes,Y,s1)))}function _n(ee){return!WE(ee)||ZE(p)}function q(ee){if(!_n(ee))return t.createNotEmittedStatement(ee);const we=[];let Et=4;const un=ke(we,ee);un&&(m!==4||U!==M)&&(Et|=1024);const Er=pa(ee),yr=du(ee),jr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0);let xi=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Dn(ee)){const $o=t.getLocalName(ee,!1,!0);xi=t.createAssignment($o,xi)}const Mr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Er)],void 0,Oe(ee,yr)),void 0,[xi]));return Cr(Mr,ee),un&&(A0(Mr,void 0),$A(Mr,void 0)),dt(Mr,ee),k_(Mr,Et),we.push(Mr),we}function Oe(ee,we){const Et=O;O=we;const un=[];i();const Er=Ot(ee.members,Lt);return Zh(un,s()),qr(un,Er),O=Et,t.createBlock(dt(t.createNodeArray(un),ee.members),!0)}function Lt(ee){const we=Mn(ee),Et=L(ee),un=t.createAssignment(t.createElementAccessExpression(O,we),Et),Er=Et.kind===11?un:t.createAssignment(t.createElementAccessExpression(O,un),we);return dt(t.createExpressionStatement(dt(Er,ee)),ee)}function L(ee){const we=u.getConstantValue(ee);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(As(),ee.initializer?N.checkDefined(nt(ee.initializer,Y,vt)):t.createVoidZero())}function _e(ee){const we=Do(ee,Xl);return we?kq(we,ZE(p)):!0}function J(ee){K||(K=new Map);const we=Ge(ee);K.has(we)||K.set(we,ee)}function me(ee){if(K){const we=Ge(ee);return K.get(we)===ee}return!0}function Ge(ee){return N.assertNode(ee.name,Ve),ee.name.escapedText}function ke(ee,we){const Et=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),un=U.kind===312?0:1,Er=t.createVariableStatement(Vn(we.modifiers,Se,Ia),t.createVariableDeclarationList([Et],un));return Cr(Et,we),A0(Et,void 0),$A(Et,void 0),Cr(Er,we),J(we),me(we)?(we.kind===266?Pa(Er.declarationList,we):Pa(Er,we),oc(Er,we),k_(Er,2048),ee.push(Er),!0):!1}function Tt(ee){if(!_e(ee))return t.createNotEmittedStatement(ee);N.assertNode(ee.name,Ve,"A TypeScript namespace should have an Identifier name."),La();const we=[];let Et=4;const un=ke(we,ee);un&&(m!==4||U!==M)&&(Et|=1024);const Er=pa(ee),yr=du(ee),jr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0):t.getDeclarationName(ee,!1,!0);let xi=t.createLogicalOr(jr,t.createAssignment(jr,t.createObjectLiteralExpression()));if(Dn(ee)){const $o=t.getLocalName(ee,!1,!0);xi=t.createAssignment($o,xi)}const Mr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Er)],void 0,kt(ee,yr)),void 0,[xi]));return Cr(Mr,ee),un&&(A0(Mr,void 0),$A(Mr,void 0)),dt(Mr,ee),k_(Mr,Et),we.push(Mr),we}function kt(ee,we){const Et=O,un=C,Er=K;O=we,C=ee,K=void 0;const yr=[];i();let jr,xi;if(ee.body)if(ee.body.kind===268)ve(ee.body,$o=>qr(yr,Vn($o.statements,ye,qi))),jr=ee.body.statements,xi=ee.body;else{const $o=Tt(ee.body);$o&&(To($o)?qr(yr,$o):yr.push($o));const Tl=en(ee).body;jr=b0(Tl.statements,-1)}Zh(yr,s()),O=Et,C=un,K=Er;const Mr=t.createBlock(dt(t.createNodeArray(yr),jr),!0);return dt(Mr,xi),(!ee.body||ee.body.kind!==268)&&pr(Mr,ja(Mr)|3072),Mr}function en(ee){if(ee.body.kind===267)return en(ee.body)||ee.body}function bn(ee){if(!ee.importClause)return ee;if(ee.importClause.isTypeOnly)return;const we=nt(ee.importClause,Bn,Eh);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(ee,void 0,we,ee.moduleSpecifier,ee.attributes):void 0}function Bn(ee){N.assert(!ee.isTypeOnly);const we=de(ee)?ee.name:void 0,Et=nt(ee.namedBindings,Hn,QV);return we||Et?t.updateImportClause(ee,!1,we,Et):void 0}function Hn(ee){if(ee.kind===274)return de(ee)?ee:void 0;{const we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=Vn(ee.elements,Ni,np);return we||bt(Et)?t.updateNamedImports(ee,Et):void 0}}function Ni(ee){return!ee.isTypeOnly&&de(ee)?ee:void 0}function Ai(ee){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee)?In(ee,Y,e):void 0}function ir(ee){if(ee.isTypeOnly)return;if(!ee.exportClause||Sh(ee.exportClause))return ee;const we=p.verbatimModuleSyntax||!!ee.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),Et=nt(ee.exportClause,un=>Ci(un,we),BV);return Et?t.updateExportDeclaration(ee,void 0,ee.isTypeOnly,Et,ee.moduleSpecifier,ee.attributes):void 0}function Vr(ee,we){const Et=Vn(ee.elements,Ii,Ku);return we||bt(Et)?t.updateNamedExports(ee,Et):void 0}function yo(ee){return t.updateNamespaceExport(ee,N.checkDefined(nt(ee.name,Y,Ve)))}function Ci(ee,we){return Sh(ee)?yo(ee):Vr(ee,we)}function Ii(ee){return!ee.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(ee))?ee:void 0}function Jr(ee){return de(ee)||!ac(M)&&u.isTopLevelValueImportEqualsWithEntityName(ee)}function xo(ee){if(ee.isTypeOnly)return;if(_0(ee)){const Et=de(ee);return!Et&&p.importsNotUsedAsValues===1?Cr(dt(t.createImportDeclaration(void 0,void 0,ee.moduleReference.expression,void 0),ee),ee):Et?In(ee,Y,e):void 0}if(!Jr(ee))return;const we=Xk(t,ee.moduleReference);return pr(we,7168),Ql(ee)||!Dn(ee)?Cr(dt(t.createVariableStatement(Vn(ee.modifiers,Se,Ia),t.createVariableDeclarationList([Cr(t.createVariableDeclaration(ee.name,void 0,void 0,we),ee)])),ee),ee):Cr(yl(ee.name,we,ee),ee)}function Dn(ee){return C!==void 0&&Zr(ee,32)}function Fs(ee){return C===void 0&&Zr(ee,32)}function Ql(ee){return Fs(ee)&&!Zr(ee,2048)}function Lo(ee){return Fs(ee)&&Zr(ee,2048)}function cs(ee){const we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,ee,!1,!0),t.getLocalName(ee));Pa(we,xf(ee.name?ee.name.pos:ee.pos,ee.end));const Et=t.createExpressionStatement(we);return Pa(Et,xf(-1,ee.end)),Et}function Vs(ee,we){ee.push(cs(we))}function yl(ee,we,Et){return dt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,ee,!1,!0),we)),Et)}function uu(ee,we,Et){return dt(t.createAssignment(ho(ee),we),Et)}function ho(ee){return t.getNamespaceMemberName(O,ee,!1,!0)}function pa(ee){const we=t.getGeneratedNameForNode(ee);return Pa(we,ee.name),we}function du(ee){return t.getGeneratedNameForNode(ee)}function As(){(V&8)===0&&(V|=8,e.enableSubstitution(80))}function La(){(V&2)===0&&(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function _l(ee){return Pl(ee).kind===267}function wf(ee){return Pl(ee).kind===266}function sc(ee,we,Et){const un=se,Er=M;$i(we)&&(M=we),V&2&&_l(we)&&(se|=2),V&8&&wf(we)&&(se|=8),I(ee,we,Et),se=un,M=Er}function Nl(ee,we){return we=R(ee,we),ee===1?ko(we):rp(we)?ul(we):we}function ul(ee){if(V&2){const we=ee.name,Et=js(we);if(Et){if(ee.objectAssignmentInitializer){const un=t.createAssignment(Et,ee.objectAssignmentInitializer);return dt(t.createPropertyAssignment(we,un),ee)}return dt(t.createPropertyAssignment(we,Et),ee)}}return ee}function ko(ee){switch(ee.kind){case 80:return nn(ee);case 211:return nu(ee);case 212:return pu(ee)}return ee}function nn(ee){return js(ee)||ee}function js(ee){if(V&se&&!sl(ee)&&!jg(ee)){const we=u.getReferencedExportContainer(ee,!1);if(we&&we.kind!==312&&(se&2&&we.kind===267||se&8&&we.kind===266))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),ee),ee)}}function nu(ee){return Ms(ee)}function pu(ee){return Ms(ee)}function Ap(ee){return ee.replace(/\*\//g,"*_/")}function Ms(ee){const we=Rc(ee);if(we!==void 0){rae(ee,we);const Et=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){const un=Pl(ee,ws);uW(Et,3,` ${Ap(pc(un))} `)}return Et}return ee}function Rc(ee){if(!om(p))return Wr(ee)||Qs(ee)?u.getConstantValue(ee):void 0}function de(ee){return p.verbatimModuleSyntax||lr(ee)||(p.preserveValueImports?u.isValueAliasDeclaration(ee):u.isReferencedAliasDeclaration(ee))}}var yxe,iUe=T({"src/compiler/transformers/ts.ts"(){ra(),yxe=!1}});function Sle(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=os(h),v=uP(h),A=!!h.experimentalDecorators,I=!v,R=v&&m<9,M=I||R,C=m<9,O=m<99?-1:v?0:3,U=m<9,K=U&&m>=2,Z=M||C||O===-1,V=e.onSubstituteNode;e.onSubstituteNode=nu;const se=e.onEmitNode;e.onEmitNode=js;let G=!1,ne,he,ve,$,Y;const oe=new Map,fe=new Set;let Ne,pe,ie=!1,ye=!1;return Pm(e,Me);function Me(de){if(de.isDeclarationFile||(Y=void 0,G=!!(Am(de)&32),!Z&&!G))return de;const ee=In(de,Ee,e);return Gg(ee,e.readEmitHelpers()),ee}function Ue(de){switch(de.kind){case 129:return Bt()?void 0:de;default:return ii(de,Ia)}}function Ee(de){if(!(de.transformFlags&16777216)&&!(de.transformFlags&134234112))return de;switch(de.kind){case 129:return N.fail("Use `modifierVisitor` instead.");case 263:return pn(de);case 231:return q(de);case 175:case 172:return N.fail("Use `classElementVisitor` instead.");case 303:return $e(de);case 243:return It(de);case 260:return tn(de);case 169:return rn(de);case 208:return Pn(de);case 277:return Xn(de);case 81:return Gt(de);case 211:return ma(de);case 212:return Wa(de);case 224:case 225:return Sn(de,!1);case 226:return pt(de,!1);case 217:return ot(de,!1);case 213:return ft(de);case 244:return He(de);case 215:return Ct(de);case 248:return kn(de);case 110:return L(de);case 262:case 218:return Oi(void 0,De,de);case 176:case 174:case 177:case 178:return Oi(de,De,de);default:return De(de)}}function De(de){return In(de,Ee,e)}function Pe(de){switch(de.kind){case 224:case 225:return Sn(de,!0);case 226:return pt(de,!0);case 361:return j(de);case 217:return ot(de,!0);default:return Ee(de)}}function We(de){switch(de.kind){case 298:return In(de,We,e);case 233:return Vt(de);default:return Ee(de)}}function At(de){switch(de.kind){case 210:case 209:return nn(de);default:return Ee(de)}}function Se(de){switch(de.kind){case 176:return Oi(de,$t,de);case 177:case 178:case 174:return Oi(de,ao,de);case 172:return Oi(de,Rn,de);case 175:return Oi(de,Lt,de);case 167:return Qt(de);case 240:return de;default:return ll(de)?Ue(de):Ee(de)}}function je(de){switch(de.kind){case 167:return Qt(de);default:return Ee(de)}}function at(de){switch(de.kind){case 172:return tt(de);case 177:case 178:return Se(de);default:N.assertMissingNode(de,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Gt(de){return!C||qi(de.parent)?de:Cr(t.createIdentifier(""),de)}function yt(de){const ee=pa(de.left);if(ee){const we=nt(de.right,Ee,vt);return Cr(r().createClassPrivateFieldInHelper(ee.brandCheckIdentifier,we),de)}return In(de,Ee,e)}function $e(de){return _p(de,Fe)&&(de=Ep(e,de)),In(de,Ee,e)}function It(de){const ee=$;$=[];const we=In(de,Ee,e),Et=bt($)?[we,...$]:we;return $=ee,Et}function tn(de){return _p(de,Fe)&&(de=Ep(e,de)),In(de,Ee,e)}function rn(de){return _p(de,Fe)&&(de=Ep(e,de)),In(de,Ee,e)}function Pn(de){return _p(de,Fe)&&(de=Ep(e,de)),In(de,Ee,e)}function Xn(de){return _p(de,Fe)&&(de=Ep(e,de,!0,de.isExportEquals?"":"default")),In(de,Ee,e)}function hn(de){return bt(ve)&&(Gd(de)?(ve.push(de.expression),de=t.updateParenthesizedExpression(de,t.inlineExpressions(ve))):(ve.push(de),de=t.inlineExpressions(ve)),ve=void 0),de}function Qt(de){const ee=nt(de.expression,Ee,vt);return t.updateComputedPropertyName(de,hn(ee))}function $t(de){return Ne?me(de,Ne):De(de)}function _i(de){return!!(C||fc(de)&&Am(de)&32)}function ao(de){if(N.assert(!If(de)),!ld(de)||!_i(de))return In(de,Se,e);const ee=pa(de.name);if(N.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;const we=No(de);we&&xo().push(t.createAssignment(we,t.createFunctionExpression(nr(de.modifiers,Et=>Ia(Et)&&!iI(Et)&&!yae(Et)),de.asteriskToken,we,void 0,Dl(de.parameters,Ee,e),void 0,lf(de.body,Ee,e))))}function Oi(de,ee,we){if(de!==pe){const Et=pe;pe=de;const un=ee(we);return pe=Et,un}return ee(we)}function No(de){N.assert(Ji(de.name));const ee=pa(de.name);if(N.assert(ee,"Undeclared private name for property declaration."),ee.kind==="m")return ee.methodName;if(ee.kind==="a"){if(Fv(de))return ee.getterName;if(wy(de))return ee.setterName}}function Mn(){const de=Ii(),ee=de.classThis??de.classConstructor??Ne?.name;return N.checkDefined(ee)}function Di(de){const ee=w_(de),we=jy(de),Et=de.name;let un=Et,Er=Et;if(Za(Et)&&!xh(Et.expression)){const Hc=cF(Et);if(Hc)un=t.updateComputedPropertyName(Et,nt(Et.expression,Ee,vt)),Er=t.updateComputedPropertyName(Et,Hc.left);else{const Us=t.createTempVariable(i);Pa(Us,Et.expression);const gc=nt(Et.expression,Ee,vt),Ss=t.createAssignment(Us,gc);Pa(Ss,Et.expression),un=t.updateComputedPropertyName(Et,Ss),Er=t.updateComputedPropertyName(Et,Us)}}const yr=Vn(de.modifiers,Ue,Ia),jr=GH(t,de,yr,de.initializer);Cr(jr,de),pr(jr,3072),Pa(jr,we);const xi=aa(de)?Mn():t.createThis(),Mr=Zae(t,de,yr,un,xi);Cr(Mr,de),oc(Mr,ee),Pa(Mr,we);const $o=t.createModifiersFromModifierFlags(M_(yr)),Tl=ese(t,de,$o,Er,xi);return Cr(Tl,de),pr(Tl,3072),Pa(Tl,we),Rw([jr,Mr,Tl],at,$c)}function Ar(de){if(_i(de)){const ee=pa(de.name);if(N.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return de;if(ee.isStatic&&!C){const we=kt(de,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return I&&!aa(de)&&Y?.data&&Y.data.facts&16?t.updatePropertyDeclaration(de,Vn(de.modifiers,Ee,ll),de.name,void 0,void 0,void 0):(_p(de,Fe)&&(de=Ep(e,de)),t.updatePropertyDeclaration(de,Vn(de.modifiers,Ue,Ia),nt(de.name,je,ic),void 0,void 0,nt(de.initializer,Ee,vt)))}function sn(de){if(M&&!Wd(de)){const ee=Vr(de.name,!!de.initializer||v);if(ee&&xo().push(...tse(ee)),aa(de)&&!C){const we=kt(de,t.createThis());if(we){const Et=t.createClassStaticBlockDeclaration(t.createBlock([we]));return Cr(Et,de),oc(Et,de),oc(we,{pos:-1,end:-1}),A0(we,void 0),$A(we,void 0),Et}}return}return t.updatePropertyDeclaration(de,Vn(de.modifiers,Ue,Ia),nt(de.name,je,ic),void 0,void 0,nt(de.initializer,Ee,vt))}function tt(de){return N.assert(!If(de),"Decorators should already have been transformed and elided."),ld(de)?Ar(de):sn(de)}function Bt(){return O===-1||O===3&&!!Y?.data&&!!(Y.data.facts&16)}function Rn(de){return Wd(de)&&(Bt()||fc(de)&&Am(de)&32)?Di(de):tt(de)}function li(){return!!pe&&fc(pe)&&Ov(pe)&&Wd(Pl(pe))}function hi(de){if(li()){const ee=$l(de);ee.kind===110&&fe.add(ee)}}function Qi(de,ee){return ee=nt(ee,Ee,vt),hi(ee),Io(de,ee)}function Io(de,ee){switch(oc(ee,b0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.getterName);case"m":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.methodName);case"f":return r().createClassPrivateFieldGetHelper(ee,de.brandCheckIdentifier,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(de,"Unknown private element type")}}function ma(de){if(Ji(de.name)){const ee=pa(de.name);if(ee)return dt(Cr(Qi(ee,de.expression),de),de)}if(K&&pe&&zd(de)&&Ve(de.name)&&UP(pe)&&Y?.data){const{classConstructor:ee,superClassReference:we,facts:Et}=Y.data;if(Et&1)return ir(de);if(ee&&we){const un=t.createReflectGetCall(we,t.createStringLiteralFromNode(de.name),ee);return Cr(un,de.expression),dt(un,de.expression),un}}return In(de,Ee,e)}function Wa(de){if(K&&pe&&zd(de)&&UP(pe)&&Y?.data){const{classConstructor:ee,superClassReference:we,facts:Et}=Y.data;if(Et&1)return ir(de);if(ee&&we){const un=t.createReflectGetCall(we,nt(de.argumentExpression,Ee,vt),ee);return Cr(un,de.expression),dt(un,de.expression),un}}return In(de,Ee,e)}function Sn(de,ee){if(de.operator===46||de.operator===47){const we=hs(de.operand);if(Zx(we)){let Et;if(Et=pa(we.name)){const un=nt(we.expression,Ee,vt);hi(un);const{readExpression:Er,initializeExpression:yr}=mt(un);let jr=Qi(Et,Er);const xi=tb(de)||ee?void 0:t.createTempVariable(i);return jr=nF(t,de,jr,i,xi),jr=Rt(Et,yr||Er,jr,64),Cr(jr,de),dt(jr,de),xi&&(jr=t.createComma(jr,xi),dt(jr,de)),jr}}else if(K&&pe&&zd(we)&&UP(pe)&&Y?.data){const{classConstructor:Et,superClassReference:un,facts:Er}=Y.data;if(Er&1){const yr=ir(we);return tb(de)?t.updatePrefixUnaryExpression(de,yr):t.updatePostfixUnaryExpression(de,yr)}if(Et&&un){let yr,jr;if(Wr(we)?Ve(we.name)&&(jr=yr=t.createStringLiteralFromNode(we.name)):xh(we.argumentExpression)?jr=yr=we.argumentExpression:(jr=t.createTempVariable(i),yr=t.createAssignment(jr,nt(we.argumentExpression,Ee,vt))),yr&&jr){let xi=t.createReflectGetCall(un,jr,Et);dt(xi,we);const Mr=ee?void 0:t.createTempVariable(i);return xi=nF(t,de,xi,i,Mr),xi=t.createReflectSetCall(un,yr,xi,Et),Cr(xi,de),dt(xi,de),Mr&&(xi=t.createComma(xi,Mr),dt(xi,de)),xi}}}}return In(de,Ee,e)}function kn(de){return t.updateForStatement(de,nt(de.initializer,Pe,Af),nt(de.condition,Ee,vt),nt(de.incrementor,Pe,vt),xd(de.statement,Ee,e))}function He(de){return t.updateExpressionStatement(de,nt(de.expression,Pe,vt))}function mt(de){const ee=$s(de)?de:t.cloneNode(de);if(de.kind===110&&fe.has(de)&&fe.add(ee),xh(de))return{readExpression:ee,initializeExpression:void 0};const we=t.createTempVariable(i),Et=t.createAssignment(we,ee);return{readExpression:we,initializeExpression:Et}}function ft(de){var ee;if(Zx(de.expression)&&pa(de.expression.name)){const{thisArg:we,target:Et}=t.createCallBinding(de.expression,i,m);return mS(de)?t.updateCallChain(de,t.createPropertyAccessChain(nt(Et,Ee,vt),de.questionDotToken,"call"),void 0,void 0,[nt(we,Ee,vt),...Vn(de.arguments,Ee,vt)]):t.updateCallExpression(de,t.createPropertyAccessExpression(nt(Et,Ee,vt),"call"),void 0,[nt(we,Ee,vt),...Vn(de.arguments,Ee,vt)])}if(K&&pe&&zd(de.expression)&&UP(pe)&&((ee=Y?.data)!=null&&ee.classConstructor)){const we=t.createFunctionCallCall(nt(de.expression,Ee,vt),Y.data.classConstructor,Vn(de.arguments,Ee,vt));return Cr(we,de),dt(we,de),we}return In(de,Ee,e)}function Ct(de){var ee;if(Zx(de.tag)&&pa(de.tag.name)){const{thisArg:we,target:Et}=t.createCallBinding(de.tag,i,m);return t.updateTaggedTemplateExpression(de,t.createCallExpression(t.createPropertyAccessExpression(nt(Et,Ee,vt),"bind"),void 0,[nt(we,Ee,vt)]),void 0,nt(de.template,Ee,PA))}if(K&&pe&&zd(de.tag)&&UP(pe)&&((ee=Y?.data)!=null&&ee.classConstructor)){const we=t.createFunctionBindCall(nt(de.tag,Ee,vt),Y.data.classConstructor,[]);return Cr(we,de),dt(we,de),t.updateTaggedTemplateExpression(de,we,void 0,nt(de.template,Ee,PA))}return In(de,Ee,e)}function le(de){if(Y&&oe.set(Pl(de),Y),C){if(VP(de)){const Et=nt(de.body.statements[0].expression,Ee,vt);return Lc(Et,!0)&&Et.left===Et.right?void 0:Et}if(II(de))return nt(de.body.statements[0].expression,Ee,vt);s();let ee=Oi(de,Et=>Vn(Et,Ee,qi),de.body.statements);ee=t.mergeLexicalEnvironment(ee,o());const we=t.createImmediatelyInvokedArrowFunction(ee);return Cr(hs(we.expression),de),k_(hs(we.expression),4),Cr(we,de),dt(we,de),we}}function Fe(de){if(Zc(de)&&!de.name){const ee=XF(de);return bt(ee,II)?!1:(C||!!Am(de))&&bt(ee,Et=>Rl(Et)||ld(Et)||M&&Dw(Et))}return!1}function pt(de,ee){if(By(de)){const we=ve;ve=void 0,de=t.updateBinaryExpression(de,nt(de.left,At,vt),de.operatorToken,nt(de.right,Ee,vt));const Et=bt(ve)?t.inlineExpressions(C2([...ve,de])):de;return ve=we,Et}if(Lc(de)){_p(de,Fe)&&(de=Ep(e,de),N.assertNode(de,Lc));const we=$l(de.left,9);if(Zx(we)){const Et=pa(we.name);if(Et)return dt(Cr(Rt(Et,we.expression,de.right,de.operatorToken.kind),de),de)}else if(K&&pe&&zd(de.left)&&UP(pe)&&Y?.data){const{classConstructor:Et,superClassReference:un,facts:Er}=Y.data;if(Er&1)return t.updateBinaryExpression(de,ir(de.left),de.operatorToken,nt(de.right,Ee,vt));if(Et&&un){let yr=Qs(de.left)?nt(de.left.argumentExpression,Ee,vt):Ve(de.left.name)?t.createStringLiteralFromNode(de.left.name):void 0;if(yr){let jr=nt(de.right,Ee,vt);if(zP(de.operatorToken.kind)){let Mr=yr;xh(yr)||(Mr=t.createTempVariable(i),yr=t.createAssignment(Mr,yr));const $o=t.createReflectGetCall(un,Mr,Et);Cr($o,de.left),dt($o,de.left),jr=t.createBinaryExpression($o,BP(de.operatorToken.kind),jr),dt(jr,de)}const xi=ee?void 0:t.createTempVariable(i);return xi&&(jr=t.createAssignment(xi,jr),dt(xi,de)),jr=t.createReflectSetCall(un,yr,jr,Et),Cr(jr,de),dt(jr,de),xi&&(jr=t.createComma(jr,xi),dt(jr,de)),jr}}}}return cUe(de)?yt(de):In(de,Ee,e)}function j(de,ee){const we=VF(de.elements,Pe);return t.updateCommaListExpression(de,we)}function ot(de,ee){const we=ee?Pe:Ee,Et=nt(de.expression,we,vt);return t.updateParenthesizedExpression(de,Et)}function Rt(de,ee,we,Et){if(ee=nt(ee,Ee,vt),we=nt(we,Ee,vt),hi(ee),zP(Et)){const{readExpression:un,initializeExpression:Er}=mt(ee);ee=Er||un,we=t.createBinaryExpression(Io(de,un),BP(Et),we)}switch(oc(ee,b0(ee,-1)),de.kind){case"a":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.setterName);case"m":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ee,de.brandCheckIdentifier,we,de.kind,de.isStatic?de.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(de,"Unknown private element type")}}function Ye(de){return nr(de.members,lle)}function _t(de){var ee;let we=0;const Et=Pl(de);Ic(Et)&&Oy(A,Et)&&(we|=1),C&&($q(de)||$F(de))&&(we|=2);let un=!1,Er=!1,yr=!1,jr=!1;for(const Mr of de.members)aa(Mr)?((Mr.name&&(Ji(Mr.name)||Wd(Mr))&&C||Wd(Mr)&&O===-1&&!de.name&&!((ee=de.emitNode)!=null&&ee.classThis))&&(we|=2),(Jo(Mr)||Rl(Mr))&&(U&&Mr.transformFlags&16384&&(we|=8,we&1||(we|=2)),K&&Mr.transformFlags&134217728&&(we&1||(we|=6)))):KE(Pl(Mr))||(Wd(Mr)?(jr=!0,yr||(yr=ld(Mr))):ld(Mr)?(yr=!0,p.getNodeCheckFlags(Mr)&262144&&(we|=2)):Jo(Mr)&&(un=!0,Er||(Er=!!Mr.initializer)));return(R&&un||I&&Er||C&&yr||C&&jr&&O===-1)&&(we|=16),we}function Vt(de){var ee;if((((ee=Y?.data)==null?void 0:ee.facts)||0)&4){const Et=t.createTempVariable(i,!0);return Ii().superClassReference=Et,t.updateExpressionWithTypeArguments(de,t.createAssignment(Et,nt(de.expression,Ee,vt)),void 0)}return In(de,Ee,e)}function yn(de,ee){var we;const Et=Ne,un=ve,Er=Y;Ne=de,ve=void 0,yo();const yr=Am(de)&32;if(C||yr){const Mr=Mo(de);if(Mr&&Ve(Mr))Jr().data.className=Mr;else if((we=de.emitNode)!=null&&we.assignedName&&Ma(de.emitNode.assignedName)){if(de.emitNode.assignedName.textSourceNode&&Ve(de.emitNode.assignedName.textSourceNode))Jr().data.className=de.emitNode.assignedName.textSourceNode;else if(tf(de.emitNode.assignedName.text,m)){const $o=t.createIdentifier(de.emitNode.assignedName.text);Jr().data.className=$o}}}if(C){const Mr=Ye(de);bt(Mr)&&(Jr().data.weakSetName=uu("instances",Mr[0].name))}const jr=_t(de);jr&&(Ii().facts=jr),jr&8&&Ni();const xi=ee(de,jr);return Ci(),N.assert(Y===Er),Ne=Et,ve=un,xi}function pn(de){return yn(de,_n)}function _n(de,ee){var we,Et;let un;if(ee&2)if(C&&((we=de.emitNode)!=null&&we.classThis))Ii().classConstructor=de.emitNode.classThis,un=t.createAssignment(de.emitNode.classThis,t.getInternalName(de));else{const Ss=t.createTempVariable(i,!0);Ii().classConstructor=t.cloneNode(Ss),un=t.createAssignment(Ss,t.getInternalName(de))}(Et=de.emitNode)!=null&&Et.classThis&&(Ii().classThis=de.emitNode.classThis);const Er=p.getNodeCheckFlags(de)&262144,yr=Zr(de,32),jr=Zr(de,2048);let xi=Vn(de.modifiers,Ue,Ia);const Mr=Vn(de.heritageClauses,We,of),{members:$o,prologue:Tl}=_e(de),Hc=[];if(un&&xo().unshift(un),bt(ve)&&Hc.push(t.createExpressionStatement(t.inlineExpressions(ve))),I||C||Am(de)&32){const Ss=XF(de);bt(Ss)&&Tt(Hc,Ss,t.getInternalName(de))}Hc.length>0&&yr&&jr&&(xi=Vn(xi,Ss=>ew(Ss)?void 0:Ss,Ia),Hc.push(t.createExportAssignment(void 0,!1,t.getLocalName(de,!1,!0))));const Us=Ii().classConstructor;Er&&Us&&(Hn(),he[Wu(de)]=Us);const gc=t.updateClassDeclaration(de,xi,de.name,void 0,Mr,$o);return Hc.unshift(gc),Tl&&Hc.unshift(t.createExpressionStatement(Tl)),Hc}function q(de){return yn(de,Oe)}function Oe(de,ee){var we,Et,un;const Er=!!(ee&1),yr=XF(de),jr=p.getNodeCheckFlags(de),xi=jr&262144;let Mr;function $o(){var Wc;if(C&&((Wc=de.emitNode)!=null&&Wc.classThis))return Ii().classConstructor=de.emitNode.classThis;const cm=jr&32768,hd=t.createTempVariable(cm?u:i,!0);return Ii().classConstructor=t.cloneNode(hd),hd}(we=de.emitNode)!=null&&we.classThis&&(Ii().classThis=de.emitNode.classThis),ee&2&&(Mr??(Mr=$o()));const Tl=Vn(de.modifiers,Ue,Ia),Hc=Vn(de.heritageClauses,We,of),{members:Us,prologue:gc}=_e(de),Ss=t.updateClassExpression(de,Tl,de.name,void 0,Hc,Us),qc=[];if(gc&&qc.push(gc),(C||Am(de)&32)&&bt(yr,Wc=>Rl(Wc)||ld(Wc)||M&&Dw(Wc))||bt(ve))if(Er)N.assertIsDefined($,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),bt(ve)&&qr($,Ot(ve,t.createExpressionStatement)),bt(yr)&&Tt($,yr,((Et=de.emitNode)==null?void 0:Et.classThis)??t.getInternalName(de)),Mr?qc.push(t.createAssignment(Mr,Ss)):C&&((un=de.emitNode)!=null&&un.classThis)?qc.push(t.createAssignment(de.emitNode.classThis,Ss)):qc.push(Ss);else{if(Mr??(Mr=$o()),xi){Hn();const Wc=t.cloneNode(Mr);Wc.emitNode.autoGenerate.flags&=-9,he[Wu(de)]=Wc}qc.push(t.createAssignment(Mr,Ss)),qr(qc,ve),qr(qc,en(yr,Mr)),qc.push(t.cloneNode(Mr))}else qc.push(Ss);return qc.length>1&&(k_(Ss,131072),qc.forEach(Xu)),t.inlineExpressions(qc)}function Lt(de){if(!C)return In(de,Ee,e)}function L(de){if(U&&pe&&Rl(pe)&&Y?.data){const{classThis:ee,classConstructor:we}=Y.data;return ee??we??de}return de}function _e(de){const ee=!!(Am(de)&32);if(C||G){for(const yr of de.members)if(ld(yr))if(_i(yr))yl(yr,yr.name,Dn);else{const jr=Jr();QS(jr,yr.name,{kind:"untransformed"})}if(C&&bt(Ye(de))&&J(),Bt()){for(const yr of de.members)if(Wd(yr)){const jr=t.getGeneratedPrivateNameForNode(yr.name,void 0,"_accessor_storage");if(C||ee&&fc(yr))yl(yr,jr,Fs);else{const xi=Jr();QS(xi,jr,{kind:"untransformed"})}}}}let we=Vn(de.members,Se,$c),Et;bt(we,Ml)||(Et=me(void 0,de));let un,Er;if(!C&&bt(ve)){let yr=t.createExpressionStatement(t.inlineExpressions(ve));if(yr.transformFlags&134234112){const xi=t.createTempVariable(i),Mr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([yr]));un=t.createAssignment(xi,Mr),yr=t.createExpressionStatement(t.createCallExpression(xi,void 0,[]))}const jr=t.createBlock([yr]);Er=t.createClassStaticBlockDeclaration(jr),ve=void 0}if(Et||Er){let yr;const jr=An(we,VP),xi=An(we,II);yr=xn(yr,jr),yr=xn(yr,xi),yr=xn(yr,Et),yr=xn(yr,Er);const Mr=jr||xi?nr(we,$o=>$o!==jr&&$o!==xi):we;yr=qr(yr,Mr),we=dt(t.createNodeArray(yr),de.members)}return{members:we,prologue:un}}function J(){const{weakSetName:de}=Jr().data;N.assert(de,"weakSetName should be set in private identifier environment"),xo().push(t.createAssignment(de,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function me(de,ee){if(de=nt(de,Ee,Ml),!Y?.data||!(Y.data.facts&16))return de;const we=D_(ee),Et=!!(we&&$l(we.expression).kind!==106),un=Dl(de?de.parameters:void 0,Ee,e),Er=ke(ee,de,Et);return Er?de?(N.assert(un),t.updateConstructorDeclaration(de,void 0,un,Er)):Xu(Cr(dt(t.createConstructorDeclaration(void 0,un??[],Er),de||ee),de)):de}function Ge(de,ee,we,Et,un,Er,yr){const jr=Et[un],xi=ee[jr];if(qr(de,Vn(ee,Ee,qi,we,jr-we)),we=jr+1,US(xi)){const Mr=[];Ge(Mr,xi.tryBlock.statements,0,Et,un+1,Er,yr);const $o=t.createNodeArray(Mr);dt($o,xi.tryBlock.statements),de.push(t.updateTryStatement(xi,t.updateBlock(xi.tryBlock,Mr),nt(xi.catchClause,Ee,l1),nt(xi.finallyBlock,Ee,Xo)))}else{for(qr(de,Vn(ee,Ee,qi,jr,1));we!!Us.initializer||Ji(Us.name)||P_(Us)));const Er=Ye(de),yr=bt(un)||bt(Er);if(!ee&&!yr)return lf(void 0,Ee,e);l();const jr=!ee&&we;let xi=0,Mr=[];const $o=[],Tl=t.createThis();if(Ai($o,Er,Tl),ee){const Us=nr(Et,Ss=>fp(Pl(Ss),ee)),gc=nr(un,Ss=>!fp(Pl(Ss),ee));Tt($o,Us,Tl),Tt($o,gc,Tl)}else Tt($o,un,Tl);if(ee?.body){xi=t.copyPrologue(ee.body.statements,Mr,!1,Ee);const Us=KF(ee.body.statements,xi);if(Us.length)Ge(Mr,ee.body.statements,xi,Us,0,$o,ee);else{for(;xi=Mr.length?ee.body.multiLine??Mr.length>0:Mr.length>0;return dt(t.createBlock(dt(t.createNodeArray(Mr),ee?ee.body.statements:de.members),Hc),ee?ee.body:void 0)}function Tt(de,ee,we){for(const Et of ee){if(aa(Et)&&!C)continue;const un=kt(Et,we);un&&de.push(un)}}function kt(de,ee){const we=Rl(de)?Oi(de,le,de):bn(de,ee);if(!we)return;const Et=t.createExpressionStatement(we);Cr(Et,de),k_(Et,ja(de)&3072),oc(Et,de);const un=Pl(de);return Ao(un)?(Pa(Et,un),Pk(Et)):Pa(Et,L_(de)),A0(we,void 0),$A(we,void 0),P_(un)&&k_(Et,3072),Et}function en(de,ee){const we=[];for(const Et of de){const un=Rl(Et)?Oi(Et,le,Et):Oi(Et,()=>bn(Et,ee),void 0);un&&(Xu(un),Cr(un,Et),k_(un,ja(Et)&3072),Pa(un,L_(Et)),oc(un,Et),we.push(un))}return we}function bn(de,ee){var we;const Et=pe,un=Bn(de,ee);return un&&fc(de)&&((we=Y?.data)!=null&&we.facts)&&(Cr(un,de),k_(un,4),Pa(un,jy(de.name)),oe.set(Pl(de),Y)),pe=Et,un}function Bn(de,ee){const we=!v;_p(de,Fe)&&(de=Ep(e,de));const Et=P_(de)?t.getGeneratedPrivateNameForNode(de.name):Za(de.name)&&!xh(de.name.expression)?t.updateComputedPropertyName(de.name,t.getGeneratedNameForNode(de.name)):de.name;if(fc(de)&&(pe=de),Ji(Et)&&_i(de)){const yr=pa(Et);if(yr)return yr.kind==="f"?yr.isStatic?oUe(t,yr.variableName,nt(de.initializer,Ee,vt)):aUe(t,ee,nt(de.initializer,Ee,vt),yr.brandCheckIdentifier):void 0;N.fail("Undeclared private name for property declaration.")}if((Ji(Et)||fc(de))&&!de.initializer)return;const un=Pl(de);if(Zr(un,64))return;let Er=nt(de.initializer,Ee,vt);if(fp(un,un.parent)&&Ve(Et)){const yr=t.cloneNode(Et);Er?(Gd(Er)&&Yk(Er.expression)&&fP(Er.expression.left,"___runInitializers")&&uI(Er.expression.right)&&gp(Er.expression.right.expression)&&(Er=Er.expression.left),Er=t.inlineExpressions([Er,yr])):Er=yr,pr(Et,3168),Pa(yr,un.name),pr(yr,3072)}else Er??(Er=t.createVoidZero());if(we||Ji(Et)){const yr=XS(t,ee,Et,Et);return k_(yr,1024),t.createAssignment(yr,Er)}else{const yr=Za(Et)?Et.expression:Ve(Et)?t.createStringLiteral(Vi(Et.escapedText)):Et,jr=t.createPropertyDescriptor({value:Er,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ee,yr,jr)}}function Hn(){(ne&1)===0&&(ne|=1,e.enableSubstitution(80),he=[])}function Ni(){(ne&2)===0&&(ne|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Ai(de,ee,we){if(!C||!bt(ee))return;const{weakSetName:Et}=Jr().data;N.assert(Et,"weakSetName should be set in private identifier environment"),de.push(t.createExpressionStatement(sUe(t,we,Et)))}function ir(de){return Wr(de)?t.updatePropertyAccessExpression(de,t.createVoidZero(),de.name):t.updateElementAccessExpression(de,t.createVoidZero(),nt(de.argumentExpression,Ee,vt))}function Vr(de,ee){if(Za(de)){const we=cF(de),Et=nt(de.expression,Ee,vt),un=Tm(Et),Er=xh(un);if(!(!!we||Lc(un)&&sl(un.left))&&!Er&&ee){const jr=t.getGeneratedNameForNode(de);return p.getNodeCheckFlags(de)&32768?u(jr):i(jr),t.createAssignment(jr,Et)}return Er||Ve(un)?void 0:Et}}function yo(){Y={previous:Y,data:void 0}}function Ci(){Y=Y?.previous}function Ii(){return N.assert(Y),Y.data??(Y.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Jr(){return N.assert(Y),Y.privateEnv??(Y.privateEnv=dle({className:void 0,weakSetName:void 0}))}function xo(){return ve??(ve=[])}function Dn(de,ee,we,Et,un,Er,yr){Wd(de)?Vs(de,ee,we,Et,un,Er):Jo(de)?Fs(de,ee,we,Et,un,Er):ql(de)?Ql(de,ee,we,Et,un,Er):rf(de)?Lo(de,ee,we,Et,un,Er,yr):vp(de)&&cs(de,ee,we,Et,un,Er,yr)}function Fs(de,ee,we,Et,un,Er,yr){if(un){const jr=N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"),xi=ho(ee);QS(Et,ee,{kind:"f",isStatic:!0,brandCheckIdentifier:jr,variableName:xi,isValid:Er})}else{const jr=ho(ee);QS(Et,ee,{kind:"f",isStatic:!1,brandCheckIdentifier:jr,isValid:Er}),xo().push(t.createAssignment(jr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Ql(de,ee,we,Et,un,Er,yr){const jr=ho(ee),xi=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");QS(Et,ee,{kind:"m",methodName:jr,brandCheckIdentifier:xi,isStatic:un,isValid:Er})}function Lo(de,ee,we,Et,un,Er,yr){const jr=ho(ee,"_get"),xi=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");yr?.kind==="a"&&yr.isStatic===un&&!yr.getterName?yr.getterName=jr:QS(Et,ee,{kind:"a",getterName:jr,setterName:void 0,brandCheckIdentifier:xi,isStatic:un,isValid:Er})}function cs(de,ee,we,Et,un,Er,yr){const jr=ho(ee,"_set"),xi=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");yr?.kind==="a"&&yr.isStatic===un&&!yr.setterName?yr.setterName=jr:QS(Et,ee,{kind:"a",getterName:void 0,setterName:jr,brandCheckIdentifier:xi,isStatic:un,isValid:Er})}function Vs(de,ee,we,Et,un,Er,yr){const jr=ho(ee,"_get"),xi=ho(ee,"_set"),Mr=un?N.checkDefined(we.classThis??we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(Et.data.weakSetName,"weakSetName should be set in private identifier environment");QS(Et,ee,{kind:"a",getterName:jr,setterName:xi,brandCheckIdentifier:Mr,isStatic:un,isValid:Er})}function yl(de,ee,we){const Et=Ii(),un=Jr(),Er=Kq(un,ee),yr=fc(de),jr=!lUe(ee)&&Er===void 0;we(de,ee,Et,un,yr,jr,Er)}function uu(de,ee,we){const{className:Et}=Jr().data,un=Et?{prefix:"_",node:Et,suffix:"_"}:"_",Er=typeof de=="object"?t.getGeneratedNameForNode(de,24,un,we):typeof de=="string"?t.createUniqueName(de,16,un,we):t.createTempVariable(void 0,!0,un,we);return p.getNodeCheckFlags(ee)&32768?u(Er):i(Er),Er}function ho(de,ee){const we=EC(de);return uu(we?.substring(1)??de,de,ee)}function pa(de){const ee=ple(Y,de);return ee?.kind==="untransformed"?void 0:ee}function du(de){const ee=t.getGeneratedNameForNode(de),we=pa(de.name);if(!we)return In(de,Ee,e);let Et=de.expression;return(PL(de)||zd(de)||!m1(de.expression))&&(Et=t.createTempVariable(i,!0),xo().push(t.createBinaryExpression(Et,64,nt(de.expression,Ee,vt)))),t.createAssignmentTargetWrapper(ee,Rt(we,Et,ee,64))}function As(de){if(Oa(de)||md(de))return nn(de);if(Zx(de))return du(de);if(K&&pe&&zd(de)&&UP(pe)&&Y?.data){const{classConstructor:ee,superClassReference:we,facts:Et}=Y.data;if(Et&1)return ir(de);if(ee&&we){const un=Qs(de)?nt(de.argumentExpression,Ee,vt):Ve(de.name)?t.createStringLiteralFromNode(de.name):void 0;if(un){const Er=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Er,t.createReflectSetCall(we,un,Er,ee))}}}return In(de,Ee,e)}function La(de){if(_p(de,Fe)&&(de=Ep(e,de)),Lc(de,!0)){const ee=As(de.left),we=nt(de.right,Ee,vt);return t.updateBinaryExpression(de,ee,de.operatorToken,we)}return As(de)}function _l(de){if(ep(de.expression)){const ee=As(de.expression);return t.updateSpreadElement(de,ee)}return In(de,Ee,e)}function wf(de){if(fL(de)){if(e_(de))return _l(de);if(!jc(de))return La(de)}return In(de,Ee,e)}function sc(de){const ee=nt(de.name,Ee,ic);if(Lc(de.initializer,!0)){const we=La(de.initializer);return t.updatePropertyAssignment(de,ee,we)}if(ep(de.initializer)){const we=As(de.initializer);return t.updatePropertyAssignment(de,ee,we)}return In(de,Ee,e)}function Nl(de){return _p(de,Fe)&&(de=Ep(e,de)),In(de,Ee,e)}function ul(de){if(ep(de.expression)){const ee=As(de.expression);return t.updateSpreadAssignment(de,ee)}return In(de,Ee,e)}function ko(de){return N.assertNode(de,pL),qy(de)?ul(de):rp(de)?Nl(de):_c(de)?sc(de):In(de,Ee,e)}function nn(de){return md(de)?t.updateArrayLiteralExpression(de,Vn(de.elements,wf,vt)):t.updateObjectLiteralExpression(de,Vn(de.properties,ko,kg))}function js(de,ee,we){const Et=Pl(ee),un=oe.get(Et);if(un){const Er=Y,yr=ye;Y=un,ye=ie,ie=!Rl(Et)||!(Am(Et)&32),se(de,ee,we),ie=ye,ye=yr,Y=Er;return}switch(ee.kind){case 218:if(Gs(Et)||ja(ee)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Er=Y,yr=ye;Y=void 0,ye=ie,ie=!1,se(de,ee,we),ie=ye,ye=yr,Y=Er;return}case 167:{const Er=Y,yr=ie;Y=Y?.previous,ie=ye,se(de,ee,we),ie=yr,Y=Er;return}}se(de,ee,we)}function nu(de,ee){return ee=V(de,ee),de===1?pu(ee):ee}function pu(de){switch(de.kind){case 80:return Ms(de);case 110:return Ap(de)}return de}function Ap(de){if(ne&2&&Y?.data&&!fe.has(de)){const{facts:ee,classConstructor:we,classThis:Et}=Y.data,un=ie?Et??we:we;if(un)return dt(Cr(t.cloneNode(un),de),de);if(ee&1&&A)return t.createParenthesizedExpression(t.createVoidZero())}return de}function Ms(de){return Rc(de)||de}function Rc(de){if(ne&1&&p.getNodeCheckFlags(de)&536870912){const ee=p.getReferencedValueDeclaration(de);if(ee){const we=he[ee.id];if(we){const Et=t.cloneNode(we);return Pa(Et,de),oc(Et,de),Et}}}}}function oUe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function aUe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function sUe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function lUe(e){return!_S(e)&&e.escapedText==="#constructor"}function cUe(e){return Ji(e.left)&&e.operatorToken.kind===103}function uUe(e){return Jo(e)&&fc(e)}function UP(e){return Rl(e)||uUe(e)}var dUe=T({"src/compiler/transformers/classFields.ts"(){ra()}});function Tle(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=os(o),l=pd(o,"strictNullChecks");let u,p;return{serializeTypeNode:(ve,$)=>h(ve,M,$),serializeTypeOfNode:(ve,$)=>h(ve,v,$),serializeParameterTypesOfNode:(ve,$,Y)=>h(ve,A,$,Y),serializeReturnTypeOfNode:(ve,$)=>h(ve,R,$)};function h(ve,$,Y,oe){const fe=u,Ne=p;u=ve.currentLexicalScope,p=ve.currentNameScope;const pe=oe===void 0?$(Y):$(Y,oe);return u=fe,p=Ne,pe}function m(ve){const $=i.getAllAccessorDeclarations(ve);return $.setAccessor&&Fie($.setAccessor)||$.getAccessor&&nm($.getAccessor)}function v(ve){switch(ve.kind){case 172:case 169:return M(ve.type);case 178:case 177:return M(m(ve));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function A(ve,$){const Y=ui(ve)?og(ve):ea(ve)&&Yf(ve.body)?ve:void 0,oe=[];if(Y){const fe=I(Y,$),Ne=fe.length;for(let pe=0;pefe.parent&&cI(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");const Y=V(ve.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,Y),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return se(ve.typeName);case 2:return t.createVoidZero();case 4:return he("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 he("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return N.assertNever($)}}function Z(ve,$){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ve),t.createStringLiteral("undefined")),$)}function V(ve){if(ve.kind===80){const oe=se(ve);return Z(oe,oe)}if(ve.left.kind===80)return Z(se(ve.left),se(ve));const $=V(ve.left),Y=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd($.left,t.createStrictInequality(t.createAssignment(Y,$.right),t.createVoidZero())),t.createPropertyAccessExpression(Y,ve.right))}function se(ve){switch(ve.kind){case 80:const $=qa(dt(Ah.cloneNode(ve),ve),ve.parent);return $.original=void 0,qa($,Do(u)),$;case 166:return G(ve)}}function G(ve){return t.createPropertyAccessExpression(se(ve.left),ve.right)}function ne(ve){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ve),"function"),void 0,t.createIdentifier(ve),void 0,t.createIdentifier("Object"))}function he(ve,$){return s<$?ne(ve):t.createIdentifier(ve)}}var pUe=T({"src/compiler/transformers/typeSerializer.ts"(){ra()}});function Ale(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=os(s),u=e.onSubstituteNode;e.onSubstituteNode=je;let p;return Pm(e,h);function h($e){const It=In($e,v,e);return Gg(It,e.readEmitHelpers()),It}function m($e){return Eu($e)?void 0:$e}function v($e){if(!($e.transformFlags&33554432))return $e;switch($e.kind){case 170:return;case 263:return A($e);case 231:return K($e);case 176:return Z($e);case 174:return se($e);case 178:return ne($e);case 177:return G($e);case 172:return he($e);case 169:return ve($e);default:return In($e,v,e)}}function A($e){if(!(Oy(!0,$e)||AC(!0,$e)))return In($e,v,e);const It=Oy(!0,$e)?U($e,$e.name):O($e,$e.name);return sh(It)}function I($e){return!!($e.transformFlags&536870912)}function R($e){return bt($e,I)}function M($e){for(const It of $e.members){if(!YS(It))continue;const tn=YF(It,$e,!0);if(bt(tn?.decorators,I)||bt(tn?.parameters,R))return!0}return!1}function C($e,It){let tn=[];return oe(tn,$e,!1),oe(tn,$e,!0),M($e)&&(It=dt(t.createNodeArray([...It,t.createClassStaticBlockDeclaration(t.createBlock(tn,!0))]),It),tn=void 0),{decorationStatements:tn,members:It}}function O($e,It){const tn=Vn($e.modifiers,m,Ia),rn=Vn($e.heritageClauses,v,of);let Pn=Vn($e.members,v,$c),Xn=[];({members:Pn,decorationStatements:Xn}=C($e,Pn));const hn=t.updateClassDeclaration($e,tn,It,void 0,rn,Pn);return qr([hn],Xn)}function U($e,It){const tn=Zr($e,32),rn=Zr($e,2048),Pn=Vn($e.modifiers,Bt=>ew(Bt)||Eu(Bt)?void 0:Bt,ll),Xn=L_($e),hn=We($e),Qt=l<2?t.getInternalName($e,!1,!0):t.getLocalName($e,!1,!0),$t=Vn($e.heritageClauses,v,of);let _i=Vn($e.members,v,$c),ao=[];({members:_i,decorationStatements:ao}=C($e,_i));const Oi=l>=9&&!!hn&&bt(_i,Bt=>Jo(Bt)&&Zr(Bt,256)||Rl(Bt));Oi&&(_i=dt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(hn,t.createThis()))])),..._i]),_i));const No=t.createClassExpression(Pn,It&&sl(It)?void 0:It,void 0,$t,_i);Cr(No,$e),dt(No,Xn);const Mn=hn&&!Oi?t.createAssignment(hn,No):No,Di=t.createVariableDeclaration(Qt,void 0,void 0,Mn);Cr(Di,$e);const Ar=t.createVariableDeclarationList([Di],1),sn=t.createVariableStatement(void 0,Ar);Cr(sn,$e),dt(sn,Xn),oc(sn,$e);const tt=[sn];if(qr(tt,ao),ye(tt,$e),tn)if(rn){const Bt=t.createExportDefault(Qt);tt.push(Bt)}else{const Bt=t.createExternalModuleExport(t.getDeclarationName($e));tt.push(Bt)}return tt}function K($e){return t.updateClassExpression($e,Vn($e.modifiers,m,Ia),$e.name,void 0,Vn($e.heritageClauses,v,of),Vn($e.members,v,$c))}function Z($e){return t.updateConstructorDeclaration($e,Vn($e.modifiers,m,Ia),Vn($e.parameters,v,Ao),nt($e.body,v,Xo))}function V($e,It){return $e!==It&&(oc($e,It),Pa($e,L_(It))),$e}function se($e){return V(t.updateMethodDeclaration($e,Vn($e.modifiers,m,Ia),$e.asteriskToken,N.checkDefined(nt($e.name,v,ic)),void 0,void 0,Vn($e.parameters,v,Ao),void 0,nt($e.body,v,Xo)),$e)}function G($e){return V(t.updateGetAccessorDeclaration($e,Vn($e.modifiers,m,Ia),N.checkDefined(nt($e.name,v,ic)),Vn($e.parameters,v,Ao),void 0,nt($e.body,v,Xo)),$e)}function ne($e){return V(t.updateSetAccessorDeclaration($e,Vn($e.modifiers,m,Ia),N.checkDefined(nt($e.name,v,ic)),Vn($e.parameters,v,Ao),nt($e.body,v,Xo)),$e)}function he($e){if(!($e.flags&33554432||Zr($e,128)))return V(t.updatePropertyDeclaration($e,Vn($e.modifiers,m,Ia),N.checkDefined(nt($e.name,v,ic)),void 0,void 0,nt($e.initializer,v,vt)),$e)}function ve($e){const It=t.updateParameterDeclaration($e,Qae(t,$e.modifiers),$e.dotDotDotToken,N.checkDefined(nt($e.name,v,hS)),void 0,void 0,nt($e.initializer,v,vt));return It!==$e&&(oc(It,$e),dt(It,L_($e)),Pa(It,L_($e)),pr(It.name,64)),It}function $($e){return fP($e.expression,"___metadata")}function Y($e){if(!$e)return;const{false:It,true:tn}=A6($e.decorators,$),rn=[];return qr(rn,Ot(It,Ue)),qr(rn,Pi($e.parameters,Ee)),qr(rn,Ot(tn,Ue)),rn}function oe($e,It,tn){qr($e,Ot(pe(It,tn),rn=>t.createExpressionStatement(rn)))}function fe($e,It,tn){return LL(!0,$e,tn)&&It===aa($e)}function Ne($e,It){return nr($e.members,tn=>fe(tn,It,$e))}function pe($e,It){const tn=Ne($e,It);let rn;for(const Pn of tn)rn=xn(rn,ie($e,Pn));return rn}function ie($e,It){const tn=YF(It,$e,!0),rn=Y(tn);if(!rn)return;const Pn=Se($e,It),Xn=De(It,!Zr(It,128)),hn=l>0?Jo(It)&&!P_(It)?t.createVoidZero():t.createNull():void 0,Qt=r().createDecorateHelper(rn,Pn,Xn,hn);return pr(Qt,3072),Pa(Qt,L_(It)),Qt}function ye($e,It){const tn=Me(It);tn&&$e.push(Cr(t.createExpressionStatement(tn),It))}function Me($e){const It=Jq($e),tn=Y(It);if(!tn)return;const rn=p&&p[Wu($e)],Pn=l<2?t.getInternalName($e,!1,!0):t.getDeclarationName($e,!1,!0),Xn=r().createDecorateHelper(tn,Pn),hn=t.createAssignment(Pn,rn?t.createAssignment(rn,Xn):Xn);return pr(hn,3072),Pa(hn,L_($e)),hn}function Ue($e){return N.checkDefined(nt($e.expression,v,vt))}function Ee($e,It){let tn;if($e){tn=[];for(const rn of $e){const Pn=r().createParamHelper(Ue(rn),It);dt(Pn,rn.expression),pr(Pn,3072),tn.push(Pn)}}return tn}function De($e,It){const tn=$e.name;return Ji(tn)?t.createIdentifier(""):Za(tn)?It&&!xh(tn.expression)?t.getGeneratedNameForNode(tn):tn.expression:Ve(tn)?t.createStringLiteral(Sr(tn)):t.cloneNode(tn)}function Pe(){p||(e.enableSubstitution(80),p=[])}function We($e){if(o.getNodeCheckFlags($e)&262144){Pe();const It=t.createUniqueName($e.name&&!sl($e.name)?Sr($e.name):"default");return p[Wu($e)]=It,i(It),It}}function At($e){return t.createPropertyAccessExpression(t.getDeclarationName($e),"prototype")}function Se($e,It){return aa(It)?t.getDeclarationName($e):At($e)}function je($e,It){return It=u($e,It),$e===1?at(It):It}function at($e){switch($e.kind){case 80:return Gt($e)}return $e}function Gt($e){return yt($e)??$e}function yt($e){if(p&&o.getNodeCheckFlags($e)&536870912){const It=o.getReferencedValueDeclaration($e);if(It){const tn=p[It.id];if(tn){const rn=t.cloneNode(tn);return Pa(rn,$e),oc(rn,$e),rn}}}}}var fUe=T({"src/compiler/transformers/legacyDecorators.ts"(){ra()}});function Ile(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=os(e.getCompilerOptions());let u,p,h,m,v,A;return Pm(e,I);function I(L){u=void 0,A=!1;const _e=In(L,ne,e);return Gg(_e,e.readEmitHelpers()),A&&(YA(_e,32),A=!1),_e}function R(){switch(p=void 0,h=void 0,m=void 0,u?.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,h=u.classThis,m=u.classSuper;break;case"name":const L=u.next.next.next;L?.kind==="class-element"&&(p=L.next.classInfo,h=L.classThis,m=L.classSuper);break}}function M(L){u={kind:"class",next:u,classInfo:L,savedPendingExpressions:v},v=void 0,R()}function C(){N.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),v=u.savedPendingExpressions,u=u.next,R()}function O(L){var _e,J;N.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},(Rl(L)||Jo(L)&&fc(L))&&(u.classThis=(_e=u.next.classInfo)==null?void 0:_e.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function U(){var L;N.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),N.assert(((L=u.next)==null?void 0:L.kind)==="class","Incorrect value for top.next.kind.",()=>{var _e;return`Expected top.next.kind to be 'class' but got '${(_e=u.next)==null?void 0:_e.kind}' instead.`}),u=u.next,R()}function K(){N.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},R()}function Z(){N.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,R()}function V(){u?.kind==="other"?(N.assert(!v),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:v},v=void 0,R())}function se(){N.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(N.assert(!v),u.depth--):(v=u.savedPendingExpressions,u=u.next,R())}function G(L){return!!(L.transformFlags&33554432)||!!h&&!!(L.transformFlags&16384)||!!h&&!!m&&!!(L.transformFlags&134217728)}function ne(L){if(!G(L))return L;switch(L.kind){case 170:return N.fail("Use `modifierVisitor` instead.");case 263:return Me(L);case 231:return Ue(L);case 176:case 172:case 175:return N.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Xn(L);case 226:return ao(L,!1);case 303:return sn(L);case 260:return tt(L);case 208:return Bt(L);case 277:return He(L);case 110:return $e(L);case 248:return $t(L);case 244:return _i(L);case 361:return No(L,!1);case 217:return mt(L,!1);case 360:return ft(L);case 213:return It(L);case 215:return tn(L);case 224:case 225:return Oi(L,!1);case 211:return rn(L);case 212:return Pn(L);case 167:return Ar(L);case 174:case 178:case 177:case 218:case 262:{V();const _e=In(L,he,e);return se(),_e}default:return In(L,he,e)}}function he(L){switch(L.kind){case 170:return;default:return ne(L)}}function ve(L){switch(L.kind){case 170:return;default:return L}}function $(L){switch(L.kind){case 176:return Pe(L);case 174:return Se(L);case 177:return je(L);case 178:return at(L);case 172:return yt(L);case 175:return Gt(L);default:return ne(L)}}function Y(L){switch(L.kind){case 224:case 225:return Oi(L,!0);case 226:return ao(L,!0);case 361:return No(L,!0);case 217:return mt(L,!0);default:return ne(L)}}function oe(L){let _e=L.name&&Ve(L.name)&&!sl(L.name)?Sr(L.name):L.name&&Ji(L.name)&&!sl(L.name)?Sr(L.name).slice(1):L.name&&Ma(L.name)&&tf(L.name.text,99)?L.name.text:ui(L)?"class":"member";return Fv(L)&&(_e=`get_${_e}`),wy(L)&&(_e=`set_${_e}`),L.name&&Ji(L.name)&&(_e=`private_${_e}`),aa(L)&&(_e=`static_${_e}`),"_"+_e}function fe(L,_e){return t.createUniqueName(`${oe(L)}_${_e}`,24)}function Ne(L,_e){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(L,void 0,void 0,_e)],1))}function pe(L){const _e=t.createUniqueName("_metadata",48);let J,me,Ge=!1,ke=!1,Tt=!1,kt,en,bn;if(fR(!1,L)){const Bn=bt(L.members,Hn=>(ld(Hn)||Wd(Hn))&&fc(Hn));kt=t.createUniqueName("_classThis",Bn?24:48)}for(const Bn of L.members){if(CA(Bn)&&LL(!1,Bn,L))if(fc(Bn)){if(!me){me=t.createUniqueName("_staticExtraInitializers",48);const Hn=r().createRunInitializersHelper(kt??t.createThis(),me);Pa(Hn,L.name??Fg(L)),en??(en=[]),en.push(Hn)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);const Hn=r().createRunInitializersHelper(t.createThis(),J);Pa(Hn,L.name??Fg(L)),bn??(bn=[]),bn.push(Hn)}J??(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Rl(Bn)?II(Bn)||(Ge=!0):Jo(Bn)&&(fc(Bn)?Ge||(Ge=!!Bn.initializer||If(Bn)):ke||(ke=!mj(Bn))),(ld(Bn)||Wd(Bn))&&fc(Bn)&&(Tt=!0),me&&J&&Ge&&ke&&Tt)break}return{class:L,classThis:kt,metadataReference:_e,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:me,hasStaticInitializers:Ge,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Tt,pendingStaticInitializers:en,pendingInstanceInitializers:bn}}function ie(L){i(),!Qq(L)&&Oy(!1,L)&&(L=QF(e,L,t.createStringLiteral("")));const _e=t.getLocalName(L,!1,!1,!0),J=pe(L),me=[];let Ge,ke,Tt,kt,en=!1;const bn=pt(Jq(L));bn&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),N.assertIsDefined(J.classThis),me.push(Ne(J.classDecoratorsName,t.createArrayLiteralExpression(bn)),Ne(J.classDescriptorName),Ne(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ne(J.classThis)),J.hasStaticPrivateClassElements&&(en=!0,A=!0));const Bn=ZL(L.heritageClauses,96),Hn=Bn&&Xc(Bn.types),Ni=Hn&&nt(Hn.expression,ne,vt);if(Ni){J.classSuper=t.createUniqueName("_classSuper",48);const Jr=$l(Ni),xo=Zc(Jr)&&!Jr.name||Os(Jr)&&!Jr.name||Gs(Jr)?t.createComma(t.createNumericLiteral(0),Ni):Ni;me.push(Ne(J.classSuper,xo));const Dn=t.updateExpressionWithTypeArguments(Hn,J.classSuper,void 0),Fs=t.updateHeritageClause(Bn,[Dn]);kt=t.createNodeArray([Fs])}const Ai=J.classThis??t.createThis();M(J),Ge=xn(Ge,q(J.metadataReference,J.classSuper));let ir=L.members;if(ir=Vn(ir,Jr=>Ml(Jr)?Jr:$(Jr),$c),ir=Vn(ir,Jr=>Ml(Jr)?$(Jr):Jr,$c),v){let Jr;for(let xo of v){xo=nt(xo,function Fs(Ql){if(!(Ql.transformFlags&16384))return Ql;switch(Ql.kind){case 110:return Jr||(Jr=t.createUniqueName("_outerThis",16),me.unshift(Ne(Jr,t.createThis()))),Jr;default:return In(Ql,Fs,e)}},vt);const Dn=t.createExpressionStatement(xo);Ge=xn(Ge,Dn)}v=void 0}if(C(),bt(J.pendingInstanceInitializers)&&!og(L)){const Jr=Ee(L,J);if(Jr){const xo=D_(L),Dn=!!(xo&&$l(xo.expression).kind!==106),Fs=[];if(Dn){const Lo=t.createSpreadElement(t.createIdentifier("arguments")),cs=t.createCallExpression(t.createSuper(),void 0,[Lo]);Fs.push(t.createExpressionStatement(cs))}qr(Fs,Jr);const Ql=t.createBlock(Fs,!0);Tt=t.createConstructorDeclaration(void 0,[],Ql)}}if(J.staticMethodExtraInitializersName&&me.push(Ne(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&me.push(Ne(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&Gc(J.memberInfos,(Jr,xo)=>{aa(xo)&&(me.push(Ne(Jr.memberDecoratorsName)),Jr.memberInitializersName&&me.push(Ne(Jr.memberInitializersName,t.createArrayLiteralExpression())),Jr.memberExtraInitializersName&&me.push(Ne(Jr.memberExtraInitializersName,t.createArrayLiteralExpression())),Jr.memberDescriptorName&&me.push(Ne(Jr.memberDescriptorName)))}),J.memberInfos&&Gc(J.memberInfos,(Jr,xo)=>{aa(xo)||(me.push(Ne(Jr.memberDecoratorsName)),Jr.memberInitializersName&&me.push(Ne(Jr.memberInitializersName,t.createArrayLiteralExpression())),Jr.memberExtraInitializersName&&me.push(Ne(Jr.memberExtraInitializersName,t.createArrayLiteralExpression())),Jr.memberDescriptorName&&me.push(Ne(Jr.memberDescriptorName)))}),Ge=qr(Ge,J.staticNonFieldDecorationStatements),Ge=qr(Ge,J.nonStaticNonFieldDecorationStatements),Ge=qr(Ge,J.staticFieldDecorationStatements),Ge=qr(Ge,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){Ge??(Ge=[]);const Jr=t.createPropertyAssignment("value",Ai),xo=t.createObjectLiteralExpression([Jr]),Dn=t.createAssignment(J.classDescriptorName,xo),Fs=t.createPropertyAccessExpression(Ai,"name"),Ql=r().createESDecorateHelper(t.createNull(),Dn,J.classDecoratorsName,{kind:"class",name:Fs,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),Lo=t.createExpressionStatement(Ql);Pa(Lo,Fg(L)),Ge.push(Lo);const cs=t.createPropertyAccessExpression(J.classDescriptorName,"value"),Vs=t.createAssignment(J.classThis,cs),yl=t.createAssignment(_e,Vs);Ge.push(t.createExpressionStatement(yl))}if(Ge.push(Oe(Ai,J.metadataReference)),bt(J.pendingStaticInitializers)){for(const Jr of J.pendingStaticInitializers){const xo=t.createExpressionStatement(Jr);Pa(xo,jy(Jr)),ke=xn(ke,xo)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){const Jr=r().createRunInitializersHelper(Ai,J.classExtraInitializersName),xo=t.createExpressionStatement(Jr);Pa(xo,L.name??Fg(L)),ke=xn(ke,xo)}Ge&&ke&&!J.hasStaticInitializers&&(qr(Ge,ke),ke=void 0);const Vr=Ge&&t.createClassStaticBlockDeclaration(t.createBlock(Ge,!0));Vr&&en&&Mk(Vr,32);const yo=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(Vr||Tt||yo){const Jr=[],xo=ir.findIndex(II);Vr?(qr(Jr,ir,0,xo+1),Jr.push(Vr),qr(Jr,ir,xo+1)):qr(Jr,ir),Tt&&Jr.push(Tt),yo&&Jr.push(yo),ir=dt(t.createNodeArray(Jr),ir)}const Ci=o();let Ii;if(bn){Ii=t.createClassExpression(void 0,void 0,void 0,kt,ir),J.classThis&&(Ii=gle(t,Ii,J.classThis));const Jr=t.createVariableDeclaration(_e,void 0,void 0,Ii),xo=t.createVariableDeclarationList([Jr]),Dn=J.classThis?t.createAssignment(_e,J.classThis):_e;me.push(t.createVariableStatement(void 0,xo),t.createReturnStatement(Dn))}else Ii=t.createClassExpression(void 0,L.name,void 0,kt,ir),me.push(t.createReturnStatement(Ii));if(en){YA(Ii,32);for(const Jr of Ii.members)(ld(Jr)||Wd(Jr))&&fc(Jr)&&YA(Jr,32)}return Cr(Ii,L),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(me,Ci))}function ye(L){return Oy(!1,L)||AC(!1,L)}function Me(L){if(ye(L)){const _e=[],J=Pl(L,ui)??L,me=J.name?t.createStringLiteralFromNode(J.name):t.createStringLiteral("default"),Ge=Zr(L,32),ke=Zr(L,2048);if(L.name||(L=QF(e,L,me)),Ge&&ke){const Tt=ie(L);if(L.name){const kt=t.createVariableDeclaration(t.getLocalName(L),void 0,void 0,Tt);Cr(kt,L);const en=t.createVariableDeclarationList([kt],1),bn=t.createVariableStatement(void 0,en);_e.push(bn);const Bn=t.createExportDefault(t.getDeclarationName(L));Cr(Bn,L),oc(Bn,w_(L)),Pa(Bn,Fg(L)),_e.push(Bn)}else{const kt=t.createExportDefault(Tt);Cr(kt,L),oc(kt,w_(L)),Pa(kt,Fg(L)),_e.push(kt)}}else{N.assertIsDefined(L.name,"A class declaration that is not a default export must have a name.");const Tt=ie(L),kt=Ge?Ai=>rI(Ai)?void 0:ve(Ai):ve,en=Vn(L.modifiers,kt,Ia),bn=t.getLocalName(L,!1,!0),Bn=t.createVariableDeclaration(bn,void 0,void 0,Tt);Cr(Bn,L);const Hn=t.createVariableDeclarationList([Bn],1),Ni=t.createVariableStatement(en,Hn);if(Cr(Ni,L),oc(Ni,w_(L)),_e.push(Ni),Ge){const Ai=t.createExternalModuleExport(bn);Cr(Ai,L),_e.push(Ai)}}return sh(_e)}else{const _e=Vn(L.modifiers,ve,Ia),J=Vn(L.heritageClauses,ne,of);M(void 0);const me=Vn(L.members,$,$c);return C(),t.updateClassDeclaration(L,_e,L.name,void 0,J,me)}}function Ue(L){if(ye(L)){const _e=ie(L);return Cr(_e,L),_e}else{const _e=Vn(L.modifiers,ve,Ia),J=Vn(L.heritageClauses,ne,of);M(void 0);const me=Vn(L.members,$,$c);return C(),t.updateClassExpression(L,_e,L.name,void 0,J,me)}}function Ee(L,_e){if(bt(_e.pendingInstanceInitializers)){const J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(_e.pendingInstanceInitializers))),_e.pendingInstanceInitializers=void 0,J}}function De(L,_e,J,me,Ge,ke){const Tt=me[Ge],kt=_e[Tt];if(qr(L,Vn(_e,ne,qi,J,Tt-J)),US(kt)){const en=[];De(en,kt.tryBlock.statements,0,me,Ge+1,ke);const bn=t.createNodeArray(en);dt(bn,kt.tryBlock.statements),L.push(t.updateTryStatement(kt,t.updateBlock(kt.tryBlock,en),nt(kt.catchClause,ne,l1),nt(kt.finallyBlock,ne,Xo)))}else qr(L,Vn(_e,ne,qi,Tt,1)),qr(L,ke);qr(L,Vn(_e,ne,qi,Tt+1))}function Pe(L){O(L);const _e=Vn(L.modifiers,ve,Ia),J=Vn(L.parameters,ne,Ao);let me;if(L.body&&p){const Ge=Ee(p.class,p);if(Ge){const ke=[],Tt=t.copyPrologue(L.body.statements,ke,!1,ne),kt=KF(L.body.statements,Tt);kt.length>0?De(ke,L.body.statements,Tt,kt,0,Ge):(qr(ke,Ge),qr(ke,Vn(L.body.statements,ne,qi))),me=t.createBlock(ke,!0),Cr(me,L.body),dt(me,L.body)}}return me??(me=nt(L.body,ne,Xo)),U(),t.updateConstructorDeclaration(L,_e,J,me)}function We(L,_e){return L!==_e&&(oc(L,_e),Pa(L,Fg(_e))),L}function At(L,_e,J){let me,Ge,ke,Tt,kt,en;if(!_e){const Hn=Vn(L.modifiers,ve,Ia);return K(),Ge=Di(L.name),Z(),{modifiers:Hn,referencedName:me,name:Ge,initializersName:ke,descriptorName:en,thisArg:kt}}const bn=pt(YF(L,_e.class,!1)),Bn=Vn(L.modifiers,ve,Ia);if(bn){const Hn=fe(L,"decorators"),Ni=t.createArrayLiteralExpression(bn),Ai=t.createAssignment(Hn,Ni),ir={memberDecoratorsName:Hn};_e.memberInfos??(_e.memberInfos=new Map),_e.memberInfos.set(L,ir),v??(v=[]),v.push(Ai);const Vr=CA(L)||Wd(L)?aa(L)?_e.staticNonFieldDecorationStatements??(_e.staticNonFieldDecorationStatements=[]):_e.nonStaticNonFieldDecorationStatements??(_e.nonStaticNonFieldDecorationStatements=[]):Jo(L)&&!Wd(L)?aa(L)?_e.staticFieldDecorationStatements??(_e.staticFieldDecorationStatements=[]):_e.nonStaticFieldDecorationStatements??(_e.nonStaticFieldDecorationStatements=[]):N.fail(),yo=rf(L)?"getter":vp(L)?"setter":ql(L)?"method":Wd(L)?"accessor":Jo(L)?"field":N.fail();let Ci;if(Ve(L.name)||Ji(L.name))Ci={computed:!1,name:L.name};else if(N_(L.name))Ci={computed:!0,name:t.createStringLiteralFromNode(L.name)};else{const Jr=L.name.expression;N_(Jr)&&!Ve(Jr)?Ci={computed:!0,name:t.createStringLiteralFromNode(Jr)}:(K(),{referencedName:me,name:Ge}=Mn(L.name),Ci={computed:!0,name:me},Z())}const Ii={kind:yo,name:Ci,static:aa(L),private:Ji(L.name),access:{get:Jo(L)||rf(L)||ql(L),set:Jo(L)||vp(L)},metadata:_e.metadataReference};if(CA(L)){const Jr=aa(L)?_e.staticMethodExtraInitializersName:_e.instanceMethodExtraInitializersName;N.assertIsDefined(Jr);let xo;ld(L)&&J&&(xo=J(L,Vn(Bn,Ql=>ii(Ql,mP),Ia)),ir.memberDescriptorName=en=fe(L,"descriptor"),xo=t.createAssignment(en,xo));const Dn=r().createESDecorateHelper(t.createThis(),xo??t.createNull(),Hn,Ii,t.createNull(),Jr),Fs=t.createExpressionStatement(Dn);Pa(Fs,Fg(L)),Vr.push(Fs)}else if(Jo(L)){ke=ir.memberInitializersName??(ir.memberInitializersName=fe(L,"initializers")),Tt=ir.memberExtraInitializersName??(ir.memberExtraInitializersName=fe(L,"extraInitializers")),aa(L)&&(kt=_e.classThis);let Jr;ld(L)&&P_(L)&&J&&(Jr=J(L,void 0),ir.memberDescriptorName=en=fe(L,"descriptor"),Jr=t.createAssignment(en,Jr));const xo=r().createESDecorateHelper(Wd(L)?t.createThis():t.createNull(),Jr??t.createNull(),Hn,Ii,ke,Tt),Dn=t.createExpressionStatement(xo);Pa(Dn,Fg(L)),Vr.push(Dn)}}return Ge===void 0&&(K(),Ge=Di(L.name),Z()),!bt(Bn)&&(ql(L)||Jo(L))&&pr(Ge,1024),{modifiers:Bn,referencedName:me,name:Ge,initializersName:ke,extraInitializersName:Tt,descriptorName:en,thisArg:kt}}function Se(L){O(L);const{modifiers:_e,name:J,descriptorName:me}=At(L,p,Rt);if(me)return U(),We(yn(_e,J,me),L);{const Ge=Vn(L.parameters,ne,Ao),ke=nt(L.body,ne,Xo);return U(),We(t.updateMethodDeclaration(L,_e,L.asteriskToken,J,void 0,void 0,Ge,void 0,ke),L)}}function je(L){O(L);const{modifiers:_e,name:J,descriptorName:me}=At(L,p,Ye);if(me)return U(),We(pn(_e,J,me),L);{const Ge=Vn(L.parameters,ne,Ao),ke=nt(L.body,ne,Xo);return U(),We(t.updateGetAccessorDeclaration(L,_e,J,Ge,void 0,ke),L)}}function at(L){O(L);const{modifiers:_e,name:J,descriptorName:me}=At(L,p,_t);if(me)return U(),We(_n(_e,J,me),L);{const Ge=Vn(L.parameters,ne,Ao),ke=nt(L.body,ne,Xo);return U(),We(t.updateSetAccessorDeclaration(L,_e,J,Ge,ke),L)}}function Gt(L){O(L);let _e;if(II(L))_e=In(L,ne,e);else if(VP(L)){const J=h;h=void 0,_e=In(L,ne,e),h=J}else if(L=In(L,ne,e),_e=L,p&&(p.hasStaticInitializers=!0,bt(p.pendingStaticInitializers))){const J=[];for(const ke of p.pendingStaticInitializers){const Tt=t.createExpressionStatement(ke);Pa(Tt,jy(ke)),J.push(Tt)}const me=t.createBlock(J,!0);_e=[t.createClassStaticBlockDeclaration(me),_e],p.pendingStaticInitializers=void 0}return U(),_e}function yt(L){_p(L,hn)&&(L=Ep(e,L,Qt(L.initializer))),O(L),N.assert(!mj(L),"Not yet implemented.");const{modifiers:_e,name:J,initializersName:me,extraInitializersName:Ge,descriptorName:ke,thisArg:Tt}=At(L,p,P_(L)?Vt:void 0);i();let kt=nt(L.initializer,ne,vt);me&&(kt=r().createRunInitializersHelper(Tt??t.createThis(),me,kt??t.createVoidZero())),aa(L)&&p&&kt&&(p.hasStaticInitializers=!0);const en=o();if(bt(en)&&(kt=t.createImmediatelyInvokedArrowFunction([...en,t.createReturnStatement(kt)])),p&&(aa(L)?(kt=Fe(p,!0,kt),Ge&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Ge)))):(kt=Fe(p,!1,kt),Ge&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Ge))))),U(),P_(L)&&ke){const bn=w_(L),Bn=jy(L),Hn=L.name;let Ni=Hn,Ai=Hn;if(Za(Hn)&&!xh(Hn.expression)){const Ii=cF(Hn);if(Ii)Ni=t.updateComputedPropertyName(Hn,nt(Hn.expression,ne,vt)),Ai=t.updateComputedPropertyName(Hn,Ii.left);else{const Jr=t.createTempVariable(s);Pa(Jr,Hn.expression);const xo=nt(Hn.expression,ne,vt),Dn=t.createAssignment(Jr,xo);Pa(Dn,Hn.expression),Ni=t.updateComputedPropertyName(Hn,Dn),Ai=t.updateComputedPropertyName(Hn,Jr)}}const ir=Vn(_e,Ii=>Ii.kind!==129?Ii:void 0,Ia),Vr=GH(t,L,ir,kt);Cr(Vr,L),pr(Vr,3072),Pa(Vr,Bn),Pa(Vr.name,L.name);const yo=pn(ir,Ni,ke);Cr(yo,L),oc(yo,bn),Pa(yo,Bn);const Ci=_n(ir,Ai,ke);return Cr(Ci,L),pr(Ci,3072),Pa(Ci,Bn),[Vr,yo,Ci]}return We(t.updatePropertyDeclaration(L,_e,J,void 0,void 0,kt),L)}function $e(L){return h??L}function It(L){if(zd(L.expression)&&h){const _e=nt(L.expression,ne,vt),J=Vn(L.arguments,ne,vt),me=t.createFunctionCallCall(_e,h,J);return Cr(me,L),dt(me,L),me}return In(L,ne,e)}function tn(L){if(zd(L.tag)&&h){const _e=nt(L.tag,ne,vt),J=t.createFunctionBindCall(_e,h,[]);Cr(J,L),dt(J,L);const me=nt(L.template,ne,PA);return t.updateTaggedTemplateExpression(L,J,void 0,me)}return In(L,ne,e)}function rn(L){if(zd(L)&&Ve(L.name)&&h&&m){const _e=t.createStringLiteralFromNode(L.name),J=t.createReflectGetCall(m,_e,h);return Cr(J,L.expression),dt(J,L.expression),J}return In(L,ne,e)}function Pn(L){if(zd(L)&&h&&m){const _e=nt(L.argumentExpression,ne,vt),J=t.createReflectGetCall(m,_e,h);return Cr(J,L.expression),dt(J,L.expression),J}return In(L,ne,e)}function Xn(L){_p(L,hn)&&(L=Ep(e,L,Qt(L.initializer)));const _e=t.updateParameterDeclaration(L,void 0,L.dotDotDotToken,nt(L.name,ne,hS),void 0,void 0,nt(L.initializer,ne,vt));return _e!==L&&(oc(_e,L),dt(_e,L_(L)),Pa(_e,L_(L)),pr(_e.name,64)),_e}function hn(L){return Zc(L)&&!L.name&&ye(L)}function Qt(L){const _e=$l(L);return Zc(_e)&&!_e.name&&!Oy(!1,_e)}function $t(L){return t.updateForStatement(L,nt(L.initializer,Y,Af),nt(L.condition,ne,vt),nt(L.incrementor,Y,vt),xd(L.statement,ne,e))}function _i(L){return In(L,Y,e)}function ao(L,_e){if(By(L)){const J=kn(L.left),me=nt(L.right,ne,vt);return t.updateBinaryExpression(L,J,L.operatorToken,me)}if(Lc(L)){if(_p(L,hn))return L=Ep(e,L,Qt(L.right)),In(L,ne,e);if(zd(L.left)&&h&&m){let J=Qs(L.left)?nt(L.left.argumentExpression,ne,vt):Ve(L.left.name)?t.createStringLiteralFromNode(L.left.name):void 0;if(J){let me=nt(L.right,ne,vt);if(zP(L.operatorToken.kind)){let ke=J;xh(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));const Tt=t.createReflectGetCall(m,ke,h);Cr(Tt,L.left),dt(Tt,L.left),me=t.createBinaryExpression(Tt,BP(L.operatorToken.kind),me),dt(me,L)}const Ge=_e?void 0:t.createTempVariable(s);return Ge&&(me=t.createAssignment(Ge,me),dt(Ge,L)),me=t.createReflectSetCall(m,J,me,h),Cr(me,L),dt(me,L),Ge&&(me=t.createComma(me,Ge),dt(me,L)),me}}}if(L.operatorToken.kind===28){const J=nt(L.left,Y,vt),me=nt(L.right,_e?Y:ne,vt);return t.updateBinaryExpression(L,J,L.operatorToken,me)}return In(L,ne,e)}function Oi(L,_e){if(L.operator===46||L.operator===47){const J=hs(L.operand);if(zd(J)&&h&&m){let me=Qs(J)?nt(J.argumentExpression,ne,vt):Ve(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(me){let Ge=me;xh(me)||(Ge=t.createTempVariable(s),me=t.createAssignment(Ge,me));let ke=t.createReflectGetCall(m,Ge,h);Cr(ke,L),dt(ke,L);const Tt=_e?void 0:t.createTempVariable(s);return ke=nF(t,L,ke,s,Tt),ke=t.createReflectSetCall(m,me,ke,h),Cr(ke,L),dt(ke,L),Tt&&(ke=t.createComma(ke,Tt),dt(ke,L)),ke}}}return In(L,ne,e)}function No(L,_e){const J=_e?VF(L.elements,Y):VF(L.elements,ne,Y);return t.updateCommaListExpression(L,J)}function Mn(L){if(N_(L)||Ji(L)){const ke=t.createStringLiteralFromNode(L),Tt=nt(L,ne,ic);return{referencedName:ke,name:Tt}}if(N_(L.expression)&&!Ve(L.expression)){const ke=t.createStringLiteralFromNode(L.expression),Tt=nt(L,ne,ic);return{referencedName:ke,name:Tt}}const _e=t.getGeneratedNameForNode(L);s(_e);const J=r().createPropKeyHelper(nt(L.expression,ne,vt)),me=t.createAssignment(_e,J),Ge=t.updateComputedPropertyName(L,le(me));return{referencedName:_e,name:Ge}}function Di(L){return Za(L)?Ar(L):nt(L,ne,ic)}function Ar(L){let _e=nt(L.expression,ne,vt);return xh(_e)||(_e=le(_e)),t.updateComputedPropertyName(L,_e)}function sn(L){return _p(L,hn)&&(L=Ep(e,L,Qt(L.initializer))),In(L,ne,e)}function tt(L){return _p(L,hn)&&(L=Ep(e,L,Qt(L.initializer))),In(L,ne,e)}function Bt(L){return _p(L,hn)&&(L=Ep(e,L,Qt(L.initializer))),In(L,ne,e)}function Rn(L){if(Oa(L)||md(L))return kn(L);if(zd(L)&&h&&m){const _e=Qs(L)?nt(L.argumentExpression,ne,vt):Ve(L.name)?t.createStringLiteralFromNode(L.name):void 0;if(_e){const J=t.createTempVariable(void 0),me=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(m,_e,J,h));return Cr(me,L),dt(me,L),me}}return In(L,ne,e)}function li(L){if(Lc(L,!0)){_p(L,hn)&&(L=Ep(e,L,Qt(L.right)));const _e=Rn(L.left),J=nt(L.right,ne,vt);return t.updateBinaryExpression(L,_e,L.operatorToken,J)}else return Rn(L)}function hi(L){if(ep(L.expression)){const _e=Rn(L.expression);return t.updateSpreadElement(L,_e)}return In(L,ne,e)}function Qi(L){return N.assertNode(L,fL),e_(L)?hi(L):jc(L)?In(L,ne,e):li(L)}function Io(L){const _e=nt(L.name,ne,ic);if(Lc(L.initializer,!0)){const J=li(L.initializer);return t.updatePropertyAssignment(L,_e,J)}if(ep(L.initializer)){const J=Rn(L.initializer);return t.updatePropertyAssignment(L,_e,J)}return In(L,ne,e)}function ma(L){return _p(L,hn)&&(L=Ep(e,L,Qt(L.objectAssignmentInitializer))),In(L,ne,e)}function Wa(L){if(ep(L.expression)){const _e=Rn(L.expression);return t.updateSpreadAssignment(L,_e)}return In(L,ne,e)}function Sn(L){return N.assertNode(L,pL),qy(L)?Wa(L):rp(L)?ma(L):_c(L)?Io(L):In(L,ne,e)}function kn(L){if(md(L)){const _e=Vn(L.elements,Qi,vt);return t.updateArrayLiteralExpression(L,_e)}else{const _e=Vn(L.properties,Sn,kg);return t.updateObjectLiteralExpression(L,_e)}}function He(L){return _p(L,hn)&&(L=Ep(e,L,Qt(L.expression))),In(L,ne,e)}function mt(L,_e){const J=_e?Y:ne,me=nt(L.expression,J,vt);return t.updateParenthesizedExpression(L,me)}function ft(L,_e){const J=ne,me=nt(L.expression,J,vt);return t.updatePartiallyEmittedExpression(L,me)}function Ct(L,_e){return bt(L)&&(_e?Gd(_e)?(L.push(_e.expression),_e=t.updateParenthesizedExpression(_e,t.inlineExpressions(L))):(L.push(_e),_e=t.inlineExpressions(L)):_e=t.inlineExpressions(L)),_e}function le(L){const _e=Ct(v,L);return N.assertIsDefined(_e),_e!==L&&(v=void 0),_e}function Fe(L,_e,J){const me=Ct(_e?L.pendingStaticInitializers:L.pendingInstanceInitializers,J);return me!==J&&(_e?L.pendingStaticInitializers=void 0:L.pendingInstanceInitializers=void 0),me}function pt(L){if(!L)return;const _e=[];return qr(_e,Ot(L.decorators,j)),_e}function j(L){const _e=nt(L.expression,ne,vt);pr(_e,3072);const J=$l(_e);if(ws(J)){const{target:me,thisArg:Ge}=t.createCallBinding(_e,s,l,!0);return t.restoreOuterExpressions(_e,t.createFunctionBindCall(me,Ge,[]))}return _e}function ot(L,_e,J,me,Ge,ke,Tt){const kt=t.createFunctionExpression(J,me,void 0,void 0,ke,void 0,Tt??t.createBlock([]));Cr(kt,L),Pa(kt,Fg(L)),pr(kt,3072);const en=Ge==="get"||Ge==="set"?Ge:void 0,bn=t.createStringLiteralFromNode(_e,void 0),Bn=r().createSetFunctionNameHelper(kt,bn,en),Hn=t.createPropertyAssignment(t.createIdentifier(Ge),Bn);return Cr(Hn,L),Pa(Hn,Fg(L)),pr(Hn,3072),Hn}function Rt(L,_e){return t.createObjectLiteralExpression([ot(L,L.name,_e,L.asteriskToken,"value",Vn(L.parameters,ne,Ao),nt(L.body,ne,Xo))])}function Ye(L,_e){return t.createObjectLiteralExpression([ot(L,L.name,_e,void 0,"get",[],nt(L.body,ne,Xo))])}function _t(L,_e){return t.createObjectLiteralExpression([ot(L,L.name,_e,void 0,"set",Vn(L.parameters,ne,Ao),nt(L.body,ne,Xo))])}function Vt(L,_e){return t.createObjectLiteralExpression([ot(L,L.name,_e,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)))])),ot(L,L.name,_e,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)),t.createIdentifier("value")))]))])}function yn(L,_e,J){return L=Vn(L,me=>iI(me)?me:void 0,Ia),t.createGetAccessorDeclaration(L,_e,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function pn(L,_e,J){return L=Vn(L,me=>iI(me)?me:void 0,Ia),t.createGetAccessorDeclaration(L,_e,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function _n(L,_e,J){return L=Vn(L,me=>iI(me)?me:void 0,Ia),t.createSetAccessorDeclaration(L,_e,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(L,_e){const J=t.createVariableDeclaration(L,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,[_e?Lt(_e):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function Oe(L,_e){const J=t.createObjectDefinePropertyCall(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:_e},!0));return pr(t.createIfStatement(_e,t.createExpressionStatement(J)),1)}function Lt(L){return t.createBinaryExpression(t.createElementAccessExpression(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var mUe=T({"src/compiler/transformers/esDecorators.ts"(){ra()}});function xle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=os(u);let h,m=0,v,A,I,R;const M=[];let C=0;const O=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=_i,e.onSubstituteNode=ao,Pm(e,K);function K(tt){if(tt.isDeclarationFile)return tt;Z(1,!1),Z(2,!fj(tt,u));const Bt=In(tt,$,e);return Gg(Bt,e.readEmitHelpers()),Bt}function Z(tt,Bt){C=Bt?C|tt:C&~tt}function V(tt){return(C&tt)!==0}function se(){return!V(1)}function G(){return V(2)}function ne(tt,Bt,Rn){const li=tt&~C;if(li){Z(li,!0);const hi=Bt(Rn);return Z(li,!1),hi}return Bt(Rn)}function he(tt){return In(tt,$,e)}function ve(tt){switch(tt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return tt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(tt))return R;break}return In(tt,ve,e)}function $(tt){if((tt.transformFlags&256)===0)return R?ve(tt):tt;switch(tt.kind){case 134:return;case 223:return ye(tt);case 174:return ne(3,Ue,tt);case 262:return ne(3,Pe,tt);case 218:return ne(3,We,tt);case 219:return ne(1,At,tt);case 211:return A&&Wr(tt)&&tt.expression.kind===108&&A.add(tt.name.escapedText),In(tt,$,e);case 212:return A&&tt.expression.kind===108&&(I=!0),In(tt,$,e);case 177:return ne(3,Ee,tt);case 178:return ne(3,De,tt);case 176:return ne(3,Me,tt);case 263:case 231:return ne(3,he,tt);default:return In(tt,$,e)}}function Y(tt){if(xie(tt))switch(tt.kind){case 243:return fe(tt);case 248:return ie(tt);case 249:return Ne(tt);case 250:return pe(tt);case 299:return oe(tt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return In(tt,Y,e);default:return N.assertNever(tt,"Unhandled node.")}return $(tt)}function oe(tt){const Bt=new Set;Se(tt.variableDeclaration,Bt);let Rn;if(Bt.forEach((li,hi)=>{v.has(hi)&&(Rn||(Rn=new Set(v)),Rn.delete(hi))}),Rn){const li=v;v=Rn;const hi=In(tt,Y,e);return v=li,hi}else return In(tt,Y,e)}function fe(tt){if(je(tt.declarationList)){const Bt=at(tt.declarationList,!1);return Bt?t.createExpressionStatement(Bt):void 0}return In(tt,$,e)}function Ne(tt){return t.updateForInStatement(tt,je(tt.initializer)?at(tt.initializer,!0):N.checkDefined(nt(tt.initializer,$,Af)),N.checkDefined(nt(tt.expression,$,vt)),xd(tt.statement,Y,e))}function pe(tt){return t.updateForOfStatement(tt,nt(tt.awaitModifier,$,_H),je(tt.initializer)?at(tt.initializer,!0):N.checkDefined(nt(tt.initializer,$,Af)),N.checkDefined(nt(tt.expression,$,vt)),xd(tt.statement,Y,e))}function ie(tt){const Bt=tt.initializer;return t.updateForStatement(tt,je(Bt)?at(Bt,!1):nt(tt.initializer,$,Af),nt(tt.condition,$,vt),nt(tt.incrementor,$,vt),xd(tt.statement,Y,e))}function ye(tt){return se()?In(tt,$,e):Cr(dt(t.createYieldExpression(void 0,nt(tt.expression,$,vt)),tt),tt)}function Me(tt){const Bt=R;R=void 0;const Rn=t.updateConstructorDeclaration(tt,Vn(tt.modifiers,$,Ia),Dl(tt.parameters,$,e),tn(tt));return R=Bt,Rn}function Ue(tt){let Bt;const Rn=Vc(tt),li=R;R=void 0;const hi=t.updateMethodDeclaration(tt,Vn(tt.modifiers,$,ll),tt.asteriskToken,tt.name,void 0,void 0,Bt=Rn&2?Pn(tt):Dl(tt.parameters,$,e),void 0,Rn&2?Xn(tt,Bt):tn(tt));return R=li,hi}function Ee(tt){const Bt=R;R=void 0;const Rn=t.updateGetAccessorDeclaration(tt,Vn(tt.modifiers,$,ll),tt.name,Dl(tt.parameters,$,e),void 0,tn(tt));return R=Bt,Rn}function De(tt){const Bt=R;R=void 0;const Rn=t.updateSetAccessorDeclaration(tt,Vn(tt.modifiers,$,ll),tt.name,Dl(tt.parameters,$,e),tn(tt));return R=Bt,Rn}function Pe(tt){let Bt;const Rn=R;R=void 0;const li=Vc(tt),hi=t.updateFunctionDeclaration(tt,Vn(tt.modifiers,$,ll),tt.asteriskToken,tt.name,void 0,Bt=li&2?Pn(tt):Dl(tt.parameters,$,e),void 0,li&2?Xn(tt,Bt):lf(tt.body,$,e));return R=Rn,hi}function We(tt){let Bt;const Rn=R;R=void 0;const li=Vc(tt),hi=t.updateFunctionExpression(tt,Vn(tt.modifiers,$,Ia),tt.asteriskToken,tt.name,void 0,Bt=li&2?Pn(tt):Dl(tt.parameters,$,e),void 0,li&2?Xn(tt,Bt):lf(tt.body,$,e));return R=Rn,hi}function At(tt){let Bt;const Rn=Vc(tt);return t.updateArrowFunction(tt,Vn(tt.modifiers,$,Ia),void 0,Bt=Rn&2?Pn(tt):Dl(tt.parameters,$,e),void 0,tt.equalsGreaterThanToken,Rn&2?Xn(tt,Bt):lf(tt.body,$,e))}function Se({name:tt},Bt){if(Ve(tt))Bt.add(tt.escapedText);else for(const Rn of tt.elements)jc(Rn)||Se(Rn,Bt)}function je(tt){return!!tt&&Uc(tt)&&!(tt.flags&7)&&tt.declarations.some(It)}function at(tt,Bt){Gt(tt);const Rn=UC(tt);return Rn.length===0?Bt?nt(t.converters.convertToAssignmentElementTarget(tt.declarations[0].name),$,vt):void 0:t.inlineExpressions(Ot(Rn,$e))}function Gt(tt){Xe(tt.declarations,yt)}function yt({name:tt}){if(Ve(tt))s(tt);else for(const Bt of tt.elements)jc(Bt)||yt(Bt)}function $e(tt){const Bt=Pa(t.createAssignment(t.converters.convertToAssignmentElementTarget(tt.name),tt.initializer),tt);return N.checkDefined(nt(Bt,$,vt))}function It({name:tt}){if(Ve(tt))return v.has(tt.escapedText);for(const Bt of tt.elements)if(!jc(Bt)&&It(Bt))return!0;return!1}function tn(tt){N.assertIsDefined(tt.body);const Bt=A,Rn=I;A=new Set,I=!1;let li=lf(tt.body,$,e);const hi=Pl(tt,Bs);if(p>=2&&l.getNodeCheckFlags(tt)&384&&(Vc(hi)&3)!==3){if($t(),A.size){const Io=ZF(t,l,tt,A);M[as(Io)]=!0;const ma=li.statements.slice();Zh(ma,[Io]),li=t.updateBlock(li,ma)}I&&(l.getNodeCheckFlags(tt)&256?QA(li,Wk):l.getNodeCheckFlags(tt)&128&&QA(li,Ok))}return A=Bt,I=Rn,li}function rn(){N.assert(R);const tt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),Bt=t.createVariableStatement(void 0,[tt]);return Xu(Bt),k_(Bt,2097152),Bt}function Pn(tt){if(Nw(tt.parameters))return Dl(tt.parameters,$,e);const Bt=[];for(const li of tt.parameters){if(li.initializer||li.dotDotDotToken){if(tt.kind===219){const Qi=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Bt.push(Qi)}break}const hi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(li.name,8));Bt.push(hi)}const Rn=t.createNodeArray(Bt);return dt(Rn,tt.parameters),Rn}function Xn(tt,Bt){const Rn=Nw(tt.parameters)?void 0:Dl(tt.parameters,$,e);i();const hi=Pl(tt,ea).type,Qi=p<2?Qt(hi):void 0,Io=tt.kind===219,ma=R,Sn=(l.getNodeCheckFlags(tt)&512)!==0&&!R;Sn&&(R=t.createUniqueName("arguments"));let kn;if(Rn)if(Io){const pt=[];N.assert(Bt.length<=tt.parameters.length);for(let j=0;j=2&&l.getNodeCheckFlags(tt)&384;if(j&&($t(),A.size)){const Rt=ZF(t,l,tt,A);M[as(Rt)]=!0,Zh(pt,[Rt])}Sn&&Zh(pt,[rn()]);const ot=t.createBlock(pt,!0);dt(ot,tt.body),j&&I&&(l.getNodeCheckFlags(tt)&256?QA(ot,Wk):l.getNodeCheckFlags(tt)&128&&QA(ot,Ok)),Fe=ot}return v=He,Io||(A=mt,I=ft,R=ma),Fe}function hn(tt,Bt){return Xo(tt)?t.updateBlock(tt,Vn(tt.statements,Y,qi,Bt)):t.converters.convertToFunctionBlock(N.checkDefined(nt(tt,Y,b4)))}function Qt(tt){const Bt=tt&&ML(tt);if(Bt&&Zd(Bt)){const Rn=l.getTypeReferenceSerializationKind(Bt);if(Rn===1||Rn===0)return Bt}}function $t(){(h&1)===0&&(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 _i(tt,Bt,Rn){if(h&1&&Ar(Bt)){const li=l.getNodeCheckFlags(Bt)&384;if(li!==m){const hi=m;m=li,O(tt,Bt,Rn),m=hi;return}}else if(h&&M[as(Bt)]){const li=m;m=0,O(tt,Bt,Rn),m=li;return}O(tt,Bt,Rn)}function ao(tt,Bt){return Bt=U(tt,Bt),tt===1&&m?Oi(Bt):Bt}function Oi(tt){switch(tt.kind){case 211:return No(tt);case 212:return Mn(tt);case 213:return Di(tt)}return tt}function No(tt){return tt.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),tt.name),tt):tt}function Mn(tt){return tt.expression.kind===108?sn(tt.argumentExpression,tt):tt}function Di(tt){const Bt=tt.expression;if(zd(Bt)){const Rn=Wr(Bt)?No(Bt):Mn(Bt);return t.createCallExpression(t.createPropertyAccessExpression(Rn,"call"),void 0,[t.createThis(),...tt.arguments])}return tt}function Ar(tt){const Bt=tt.kind;return Bt===263||Bt===176||Bt===174||Bt===177||Bt===178}function sn(tt,Bt){return m&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),"value"),Bt):dt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[tt]),Bt)}}function ZF(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{const p=Vi(u),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,pr(e.createPropertyAccessExpression(pr(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(pr(e.createPropertyAccessExpression(pr(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 _Ue=T({"src/compiler/transformers/es2017.ts"(){ra()}});function Rle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=os(u),h=e.onEmitNode;e.onEmitNode=ma;const m=e.onSubstituteNode;e.onSubstituteNode=Wa;let v=!1,A,I,R,M=0,C=0,O,U,K,Z;const V=[];return Pm(e,ve);function se(le,Fe){return C!==(C&~le|Fe)}function G(le,Fe){const pt=C;return C=(C&~le|Fe)&3,pt}function ne(le){C=le}function he(le){U=xn(U,t.createVariableDeclaration(le))}function ve(le){if(le.isDeclarationFile)return le;O=le;const Fe=At(le);return Gg(Fe,e.readEmitHelpers()),O=void 0,U=void 0,Fe}function $(le){return pe(le,!1)}function Y(le){return pe(le,!0)}function oe(le){if(le.kind!==134)return le}function fe(le,Fe,pt,j){if(se(pt,j)){const ot=G(pt,j),Rt=le(Fe);return ne(ot),Rt}return le(Fe)}function Ne(le){return In(le,$,e)}function pe(le,Fe){if((le.transformFlags&128)===0)return le;switch(le.kind){case 223:return ie(le);case 229:return ye(le);case 253:return Me(le);case 256:return Ue(le);case 210:return De(le);case 226:return je(le,Fe);case 361:return at(le,Fe);case 299:return Gt(le);case 243:return yt(le);case 260:return $e(le);case 246:case 247:case 249:return fe(Ne,le,0,2);case 250:return Pn(le,void 0);case 248:return fe(tn,le,0,2);case 222:return rn(le);case 176:return fe(No,le,2,1);case 174:return fe(Ar,le,2,1);case 177:return fe(Mn,le,2,1);case 178:return fe(Di,le,2,1);case 262:return fe(sn,le,2,1);case 218:return fe(Bt,le,2,1);case 219:return fe(tt,le,2,0);case 169:return ao(le);case 244:return Pe(le);case 217:return We(le,Fe);case 215:return Se(le);case 211:return K&&Wr(le)&&le.expression.kind===108&&K.add(le.name.escapedText),In(le,$,e);case 212:return K&&le.expression.kind===108&&(Z=!0),In(le,$,e);case 263:case 231:return fe(Ne,le,2,1);default:return In(le,$,e)}}function ie(le){return I&2&&I&1?Cr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(nt(le.expression,$,vt))),le),le):In(le,$,e)}function ye(le){if(I&2&&I&1){if(le.asteriskToken){const Fe=nt(N.checkDefined(le.expression),$,vt);return Cr(dt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,dt(r().createAsyncDelegatorHelper(dt(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),le),le)}return Cr(dt(t.createYieldExpression(void 0,Qt(le.expression?nt(le.expression,$,vt):t.createVoidZero())),le),le)}return In(le,$,e)}function Me(le){return I&2&&I&1?t.updateReturnStatement(le,Qt(le.expression?nt(le.expression,$,vt):t.createVoidZero())):In(le,$,e)}function Ue(le){if(I&2){const Fe=Tj(le);return Fe.kind===250&&Fe.awaitModifier?Pn(Fe,le):t.restoreEnclosingLabel(nt(Fe,$,qi,t.liftToBlock),le)}return In(le,$,e)}function Ee(le){let Fe;const pt=[];for(const j of le)if(j.kind===305){Fe&&(pt.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const ot=j.expression;pt.push(nt(ot,$,vt))}else Fe=xn(Fe,j.kind===303?t.createPropertyAssignment(j.name,nt(j.initializer,$,vt)):nt(j,$,kg));return Fe&&pt.push(t.createObjectLiteralExpression(Fe)),pt}function De(le){if(le.transformFlags&65536){const Fe=Ee(le.properties);Fe.length&&Fe[0].kind!==210&&Fe.unshift(t.createObjectLiteralExpression());let pt=Fe[0];if(Fe.length>1){for(let j=1;j=2&&l.getNodeCheckFlags(le)&384;if(_t){Io();const yn=ZF(t,l,le,K);V[as(yn)]=!0,Zh(ot,[yn])}ot.push(Ye);const Vt=t.updateBlock(le.body,ot);return _t&&Z&&(l.getNodeCheckFlags(le)&256?QA(Vt,Wk):l.getNodeCheckFlags(le)&128&&QA(Vt,Ok)),K=pt,Z=j,Vt}function hi(le){i();let Fe=0;const pt=[],j=nt(le.body,$,b4)??t.createBlock([]);Xo(j)&&(Fe=t.copyPrologue(j.statements,pt,!1,$)),qr(pt,Qi(void 0,le));const ot=o();if(Fe>0||bt(pt)||bt(ot)){const Rt=t.converters.convertToFunctionBlock(j,!0);return Zh(pt,ot),qr(pt,Rt.statements.slice(Fe)),t.updateBlock(Rt,dt(t.createNodeArray(pt),Rt.statements))}return j}function Qi(le,Fe){let pt=!1;for(const j of Fe.parameters)if(pt){if(ta(j.name)){if(j.name.elements.length>0){const ot=_1(j,$,e,0,t.getGeneratedNameForNode(j));if(bt(ot)){const Rt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,Rt);pr(Ye,2097152),le=xn(le,Ye)}}else if(j.initializer){const ot=t.getGeneratedNameForNode(j),Rt=nt(j.initializer,$,vt),Ye=t.createAssignment(ot,Rt),_t=t.createExpressionStatement(Ye);pr(_t,2097152),le=xn(le,_t)}}else if(j.initializer){const ot=t.cloneNode(j.name);dt(ot,j.name),pr(ot,96);const Rt=nt(j.initializer,$,vt);k_(Rt,3168);const Ye=t.createAssignment(ot,Rt);dt(Ye,j),pr(Ye,3072);const _t=t.createBlock([t.createExpressionStatement(Ye)]);dt(_t,j),pr(_t,3905);const Vt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),yn=t.createIfStatement(Vt,_t);Xu(yn),dt(yn,j),pr(yn,2101056),le=xn(le,yn)}}else if(j.transformFlags&65536){pt=!0;const ot=_1(j,$,e,1,t.getGeneratedNameForNode(j),!1,!0);if(bt(ot)){const Rt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,Rt);pr(Ye,2097152),le=xn(le,Ye)}}return le}function Io(){(A&1)===0&&(A|=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 ma(le,Fe,pt){if(A&1&&ft(Fe)){const j=l.getNodeCheckFlags(Fe)&384;if(j!==M){const ot=M;M=j,h(le,Fe,pt),M=ot;return}}else if(A&&V[as(Fe)]){const j=M;M=0,h(le,Fe,pt),M=j;return}h(le,Fe,pt)}function Wa(le,Fe){return Fe=m(le,Fe),le===1&&M?Sn(Fe):Fe}function Sn(le){switch(le.kind){case 211:return kn(le);case 212:return He(le);case 213:return mt(le)}return le}function kn(le){return le.expression.kind===108?dt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function He(le){return le.expression.kind===108?Ct(le.argumentExpression,le):le}function mt(le){const Fe=le.expression;if(zd(Fe)){const pt=Wr(Fe)?kn(Fe):He(Fe);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){const Fe=le.kind;return Fe===263||Fe===176||Fe===174||Fe===177||Fe===178}function Ct(le,Fe){return M&256?dt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),Fe):dt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),Fe)}}var hUe=T({"src/compiler/transformers/es2018.ts"(){ra()}});function Dle(e){const t=e.factory;return Pm(e,r);function r(s){return s.isDeclarationFile?s:In(s,i,e)}function i(s){if((s.transformFlags&64)===0)return s;switch(s.kind){case 299:return o(s);default:return In(s,i,e)}}function o(s){return s.variableDeclaration?In(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),nt(s.block,i,Xo))}}var gUe=T({"src/compiler/transformers/es2019.ts"(){ra()}});function Nle(e){const{factory:t,hoistVariableDeclaration:r}=e;return Pm(e,i);function i(R){return R.isDeclarationFile?R:In(R,o,e)}function o(R){if((R.transformFlags&32)===0)return R;switch(R.kind){case 213:{const M=p(R,!1);return N.assertNotNode(M,fI),M}case 211:case 212:if(qu(R)){const M=m(R,!1,!1);return N.assertNotNode(M,fI),M}return In(R,o,e);case 226:return R.operatorToken.kind===61?A(R):In(R,o,e);case 220:return I(R);default:return In(R,o,e)}}function s(R){N.assertNotNode(R,_4);const M=[R];for(;!R.questionDotToken&&!r1(R);)R=oa(Tm(R.expression),qu),N.assertNotNode(R,_4),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,C){const O=h(R.expression,M,C);return fI(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,O.expression),O.thisArg):t.updateParenthesizedExpression(R,O)}function u(R,M,C){if(qu(R))return m(R,M,C);let O=nt(R.expression,o,vt);N.assertNotNode(O,fI);let U;return M&&(m1(O)?U=O:(U=t.createTempVariable(r),O=t.createAssignment(U,O))),O=R.kind===211?t.updatePropertyAccessExpression(R,O,nt(R.name,o,Ve)):t.updateElementAccessExpression(R,O,nt(R.argumentExpression,o,vt)),U?t.createSyntheticReferenceExpression(O,U):O}function p(R,M){if(qu(R))return m(R,M,!1);if(Gd(R.expression)&&qu(hs(R.expression))){const C=l(R.expression,!0,!1),O=Vn(R.arguments,o,vt);return fI(C)?dt(t.createFunctionCallCall(C.expression,C.thisArg,O),R):t.updateCallExpression(R,C,void 0,O)}return In(R,o,e)}function h(R,M,C){switch(R.kind){case 217:return l(R,M,C);case 211:case 212:return u(R,M,C);case 213:return p(R,M);default:return nt(R,o,vt)}}function m(R,M,C){const{expression:O,chain:U}=s(R),K=h(Tm(O),mS(U[0]),!1);let Z=fI(K)?K.thisArg:void 0,V=fI(K)?K.expression:K,se=t.restoreOuterExpressions(O,V,8);m1(V)||(V=t.createTempVariable(r),se=t.createAssignment(V,se));let G=V,ne;for(let ve=0;vepe&&qr(ie,Vn(fe.statements,v,qi,pe,ye-pe));break}ye++}N.assert(yeC(ie,pe))))],pe,Ne===2)}return In(fe,v,e)}function U(fe,Ne,pe,ie,ye){const Me=[];for(let De=Ne;Det&&(t=i)}return t}function EUe(e){let t=0;for(const r of e){const i=tJ(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var SUe=T({"src/compiler/transformers/esnext.ts"(){ra()}});function wle(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return Pm(e,v);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const Se=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Se,s.filenameDeclaration.name}function u(Se){return i.jsx===5?"jsxDEV":Se?"jsxs":"jsx"}function p(Se){const je=u(Se);return m(je)}function h(){return m("Fragment")}function m(Se){var je,at;const Gt=Se==="createElement"?s.importSpecifier:W3(s.importSpecifier,i),yt=(at=(je=s.utilizedImplicitRuntimeImports)==null?void 0:je.get(Gt))==null?void 0:at.get(Se);if(yt)return yt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let $e=s.utilizedImplicitRuntimeImports.get(Gt);$e||($e=new Map,s.utilizedImplicitRuntimeImports.set(Gt,$e));const It=t.createUniqueName(`_${Se}`,112),tn=t.createImportSpecifier(!1,t.createIdentifier(Se),It);return sae(It,tn),$e.set(Se,tn),It}function v(Se){if(Se.isDeclarationFile)return Se;o=Se,s={},s.importSpecifier=O3(i,Se);let je=In(Se,A,e);Gg(je,e.readEmitHelpers());let at=je.statements;if(s.filenameDeclaration&&(at=bS(at.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Gt,yt]of zo(s.utilizedImplicitRuntimeImports.entries()))if(ac(Se)){const $e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(zo(yt.values()))),t.createStringLiteral(Gt),void 0);Jv($e,!1),at=bS(at.slice(),$e)}else if(zp(Se)){const $e=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(zo(yt.values(),It=>t.createBindingElement(void 0,It.propertyName,It.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Gt)]))],2));Jv($e,!1),at=bS(at.slice(),$e)}}return at!==je.statements&&(je=t.updateSourceFile(je,at)),s=void 0,je}function A(Se){return Se.transformFlags&2?I(Se):Se}function I(Se){switch(Se.kind){case 284:return U(Se,!1);case 285:return K(Se,!1);case 288:return Z(Se,!1);case 294:return At(Se);default:return In(Se,A,e)}}function R(Se){switch(Se.kind){case 12:return ye(Se);case 294:return At(Se);case 284:return U(Se,!0);case 285:return K(Se,!0);case 288:return Z(Se,!0);default:return N.failBadSyntaxKind(Se)}}function M(Se){return Se.properties.some(je=>_c(je)&&(Ve(je.name)&&Sr(je.name)==="__proto__"||Ma(je.name)&&je.name.text==="__proto__"))}function C(Se){let je=!1;for(const at of Se.attributes.properties)if(_I(at)&&(!Oa(at.expression)||at.expression.properties.some(qy)))je=!0;else if(je&&F_(at)&&Ve(at.name)&&at.name.escapedText==="key")return!0;return!1}function O(Se){return s.importSpecifier===void 0||C(Se)}function U(Se,je){return(O(Se.openingElement)?he:G)(Se.openingElement,Se.children,je,Se)}function K(Se,je){return(O(Se)?he:G)(Se,void 0,je,Se)}function Z(Se,je){return(s.importSpecifier===void 0?$:ve)(Se.openingFragment,Se.children,je,Se)}function V(Se){const je=se(Se);return je&&t.createObjectLiteralExpression([je])}function se(Se){const je=IR(Se);if(Le(je)===1&&!je[0].dotDotDotToken){const Gt=R(je[0]);return Gt&&t.createPropertyAssignment("children",Gt)}const at=Hi(Se,R);return Le(at)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(at)):void 0}function G(Se,je,at,Gt){const yt=Pe(Se),$e=je&&je.length?se(je):void 0,It=An(Se.attributes.properties,Pn=>!!Pn.name&&Ve(Pn.name)&&Pn.name.escapedText==="key"),tn=It?nr(Se.attributes.properties,Pn=>Pn!==It):Se.attributes.properties,rn=Le(tn)?oe(tn,$e):t.createObjectLiteralExpression($e?[$e]:et);return ne(yt,rn,It,je||et,at,Gt)}function ne(Se,je,at,Gt,yt,$e){var It;const tn=IR(Gt),rn=Le(tn)>1||!!((It=tn[0])!=null&&It.dotDotDotToken),Pn=[Se,je];if(at&&Pn.push(ie(at.initializer)),i.jsx===5){const hn=Pl(o);if(hn&&$i(hn)){at===void 0&&Pn.push(t.createVoidZero()),Pn.push(rn?t.createTrue():t.createFalse());const Qt=bs(hn,$e.pos);Pn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Qt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Qt.character+1))])),Pn.push(t.createThis())}}const Xn=dt(t.createCallExpression(p(rn),void 0,Pn),$e);return yt&&Xu(Xn),Xn}function he(Se,je,at,Gt){const yt=Pe(Se),$e=Se.attributes.properties,It=Le($e)?oe($e):t.createNull(),tn=s.importSpecifier===void 0?PH(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Se):m("createElement"),rn=Wae(t,tn,yt,It,Hi(je,R),Gt);return at&&Xu(rn),rn}function ve(Se,je,at,Gt){let yt;if(je&&je.length){const $e=V(je);$e&&(yt=$e)}return ne(h(),yt||t.createObjectLiteralExpression([]),void 0,je,at,Gt)}function $(Se,je,at,Gt){const yt=Fae(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Hi(je,R),Se,Gt);return at&&Xu(yt),yt}function Y(Se){return Oa(Se.expression)&&!M(Se.expression)?eo(Se.expression.properties,je=>N.checkDefined(nt(je,A,kg))):t.createSpreadAssignment(N.checkDefined(nt(Se.expression,A,vt)))}function oe(Se,je){const at=os(i);return at&&at>=5?t.createObjectLiteralExpression(fe(Se,je)):Ne(Se,je)}function fe(Se,je){const at=da(KB(Se,_I,(Gt,yt)=>da(Ot(Gt,$e=>yt?Y($e):pe($e)))));return je&&at.push(je),at}function Ne(Se,je){const at=[];let Gt=[];for(const $e of Se){if(_I($e)){if(Oa($e.expression)&&!M($e.expression)){for(const It of $e.expression.properties){if(qy(It)){yt(),at.push(N.checkDefined(nt(It.expression,A,vt)));continue}Gt.push(N.checkDefined(nt(It,A)))}continue}yt(),at.push(N.checkDefined(nt($e.expression,A,vt)));continue}Gt.push(pe($e))}return je&&Gt.push(je),yt(),at.length&&!Oa(at[0])&&at.unshift(t.createObjectLiteralExpression()),ah(at)||r().createAssignHelper(at);function yt(){Gt.length&&(at.push(t.createObjectLiteralExpression(Gt)),Gt=[])}}function pe(Se){const je=We(Se),at=ie(Se.initializer);return t.createPropertyAssignment(je,at)}function ie(Se){if(Se===void 0)return t.createTrue();if(Se.kind===11){const je=Se.singleQuote!==void 0?Se.singleQuote:!t3(Se,o),at=t.createStringLiteral(De(Se.text)||Se.text,je);return dt(at,Se)}return Se.kind===294?Se.expression===void 0?t.createTrue():N.checkDefined(nt(Se.expression,A,vt)):ug(Se)?U(Se,!1):HS(Se)?K(Se,!1):a1(Se)?Z(Se,!1):N.failBadSyntaxKind(Se)}function ye(Se){const je=Me(Se.text);return je===void 0?void 0:t.createStringLiteral(je)}function Me(Se){let je,at=0,Gt=-1;for(let yt=0;yt{if($e)return Kx(parseInt($e,10));if(It)return Kx(parseInt(It,16));{const rn=bxe.get(tn);return rn?Kx(rn):je}})}function De(Se){const je=Ee(Se);return je===Se?void 0:je}function Pe(Se){if(Se.kind===284)return Pe(Se.openingElement);{const je=Se.tagName;return Ve(je)&&RR(je.escapedText)?t.createStringLiteral(Sr(je)):t_(je)?t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name)):Xk(t,je)}}function We(Se){const je=Se.name;if(Ve(je)){const at=Sr(je);return/^[A-Za-z_]\w*$/.test(at)?je:t.createStringLiteral(at)}return t.createStringLiteral(Sr(je.namespace)+":"+Sr(je.name))}function At(Se){const je=nt(Se.expression,A,vt);return Se.dotDotDotToken?t.createSpreadElement(je):je}}var bxe,TUe=T({"src/compiler/transformers/jsx.ts"(){ra(),bxe=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 Ole(e){const{factory:t,hoistVariableDeclaration:r}=e;return Pm(e,i);function i(p){return p.isDeclarationFile?p:In(p,o,e)}function o(p){if((p.transformFlags&512)===0)return p;switch(p.kind){case 226:return s(p);default:return In(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return In(p,o,e)}}function l(p){let h,m;const v=nt(p.left,o,vt),A=nt(p.right,o,vt);if(Qs(v)){const I=t.createTempVariable(r),R=t.createTempVariable(r);h=dt(t.createElementAccessExpression(dt(t.createAssignment(I,v.expression),v.expression),dt(t.createAssignment(R,v.argumentExpression),v.argumentExpression)),v),m=dt(t.createElementAccessExpression(I,R),v)}else if(Wr(v)){const I=t.createTempVariable(r);h=dt(t.createPropertyAccessExpression(dt(t.createAssignment(I,v.expression),v.expression),v.name),v),m=dt(t.createPropertyAccessExpression(I,v.name),v)}else h=v,m=v;return dt(t.createAssignment(h,dt(t.createGlobalMethodCall("Math","pow",[m,A]),p)),p)}function u(p){const h=nt(p.left,o,vt),m=nt(p.right,o,vt);return dt(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var AUe=T({"src/compiler/transformers/es2016.ts"(){ra()}});function Exe(e,t){return{kind:e,expression:t}}function Wle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=ff,e.onSubstituteNode=Of;let v,A,I,R;function M(te){R=xn(R,t.createVariableDeclaration(te))}let C,O;return Pm(e,U);function U(te){if(te.isDeclarationFile)return te;v=te,A=te.text;const ct=oe(te);return Gg(ct,e.readEmitHelpers()),v=void 0,A=void 0,R=void 0,I=0,ct}function K(te,ct){const zt=I;return I=(I&~te|ct)&32767,zt}function Z(te,ct,zt){I=(I&~ct|zt)&-32768|te}function V(te){return(I&8192)!==0&&te.kind===253&&!te.expression}function se(te){return te.transformFlags&4194304&&(Dm(te)||VS(te)||Aae(te)||bP(te)||EP(te)||XR(te)||TP(te)||US(te)||l1(te)||i1(te)||Wv(te,!1)||Xo(te))}function G(te){return(te.transformFlags&1024)!==0||C!==void 0||I&8192&&se(te)||Wv(te,!1)&&ho(te)||(Am(te)&1)!==0}function ne(te){return G(te)?Y(te,!1):te}function he(te){return G(te)?Y(te,!0):te}function ve(te){if(G(te)){const ct=Pl(te);if(Jo(ct)&&fc(ct)){const zt=K(32670,16449),jt=Y(te,!1);return Z(zt,229376,0),jt}return Y(te,!1)}return te}function $(te){return te.kind===108?ec(te,!0):ne(te)}function Y(te,ct){switch(te.kind){case 126:return;case 263:return Pe(te);case 231:return We(te);case 169:return Wa(te);case 262:return pn(te);case 219:return Vt(te);case 218:return yn(te);case 260:return bn(te);case 80:return Ee(te);case 261:return ke(te);case 255:return fe(te);case 269:return Ne(te);case 241:return Oe(te);case 252:case 251:return De(te);case 256:return Ni(te);case 246:case 247:return Vr(te,void 0);case 248:return yo(te,void 0);case 249:return Ii(te,void 0);case 250:return Jr(te,void 0);case 244:return Lt(te);case 210:return Lo(te);case 299:return xi(te);case 304:return Hc(te);case 167:return Us(te);case 209:return Ss(te);case 213:return qc(te);case 214:return cm(te);case 217:return L(te,ct);case 226:return _e(te,ct);case 361:return J(te,ct);case 15:case 16:case 17:case 18:return na(te);case 11:return Zl(te);case 9:return yc(te);case 215:return dl(te);case 228:return vl(te);case 229:return gc(te);case 230:return Qo(te);case 108:return ec(te,!1);case 110:return Me(te);case 236:return Jc(te);case 174:return $o(te);case 177:case 178:return Tl(te);case 243:return Ge(te);case 253:return ye(te);case 222:return Ue(te);default:return In(te,ne,e)}}function oe(te){const ct=K(8064,64),zt=[],jt=[];i();const F=t.copyPrologue(te.statements,zt,!1,ne);return qr(jt,Vn(te.statements,ne,qi,F)),R&&jt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(zt,s()),le(zt,te),Z(ct,0,0),t.updateSourceFile(te,dt(t.createNodeArray(So(zt,jt)),te.statements))}function fe(te){if(C!==void 0){const ct=C.allowedNonLabeledJumps;C.allowedNonLabeledJumps|=2;const zt=In(te,ne,e);return C.allowedNonLabeledJumps=ct,zt}return In(te,ne,e)}function Ne(te){const ct=K(7104,0),zt=In(te,ne,e);return Z(ct,0,0),zt}function pe(te){return Cr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ye(te){return C?(C.nonLocalJumps|=8,V(te)&&(te=pe(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?N.checkDefined(nt(te.expression,ne,vt)):t.createVoidZero())]))):V(te)?pe(te):In(te,ne,e)}function Me(te){return I|=65536,I&2&&!(I&16384)&&(I|=131072),C?I&2?(C.containsLexicalThis=!0,te):C.thisName||(C.thisName=t.createUniqueName("this")):te}function Ue(te){return In(te,he,e)}function Ee(te){return C&&p.isArgumentsLocalBinding(te)?C.argumentsName||(C.argumentsName=t.createUniqueName("arguments")):te.flags&256?Cr(dt(t.createIdentifier(Vi(te.escapedText)),te),te):te}function De(te){if(C){const ct=te.kind===252?2:4;if(!(te.label&&C.labels&&C.labels.get(Sr(te.label))||!te.label&&C.allowedNonLabeledJumps&ct)){let jt;const F=te.label;F?te.kind===252?(jt=`break-${F.escapedText}`,ee(C,!0,Sr(F),jt)):(jt=`continue-${F.escapedText}`,ee(C,!1,Sr(F),jt)):te.kind===252?(C.nonLocalJumps|=2,jt="break"):(C.nonLocalJumps|=4,jt="continue");let Te=t.createStringLiteral(jt);if(C.loopOutParameters.length){const st=C.loopOutParameters;let Jt;for(let rr=0;rrVe(ct.name)&&!ct.initializer)}function It(te){if(TS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const ct=te;return Za(ct.name)?!!Ho(ct.name,It):!1}}return!!Ho(te,It)}function tn(te,ct,zt,jt){const F=!!zt&&$l(zt.expression).kind!==106;if(!te)return yt(ct,F);const Te=[],st=[];o();const Jt=t.copyStandardPrologue(te.body.statements,Te,0);(jt||It(te.body))&&(I|=8192),qr(st,Vn(te.body.statements,ne,qi,Jt));const rr=F||I&8192;kn(Te,te),Ct(Te,te,jt),pt(Te,te),rr?Fe(Te,te,Io()):le(Te,te),t.mergeLexicalEnvironment(Te,s()),rr&&!Qi(te.body)&&st.push(t.createReturnStatement(ie()));const oi=t.createBlock(dt(t.createNodeArray([...Te,...st]),te.body.statements),!0);return dt(oi,te.body),hi(oi,te.body,jt)}function rn(te){return sl(te)&&Sr(te)==="_this"}function Pn(te){return sl(te)&&Sr(te)==="_super"}function Xn(te){return Ll(te)&&te.declarationList.declarations.length===1&&hn(te.declarationList.declarations[0])}function hn(te){return wi(te)&&rn(te.name)&&!!te.initializer}function Qt(te){return Lc(te,!0)&&rn(te.left)}function $t(te){return sa(te)&&Wr(te.expression)&&Pn(te.expression.expression)&&Ve(te.expression.name)&&(Sr(te.expression.name)==="call"||Sr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function _i(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&$t(te.left)}function ao(te){return mr(te)&&te.operatorToken.kind===56&&mr(te.left)&&te.left.operatorToken.kind===38&&Pn(te.left.left)&&te.left.right.kind===106&&$t(te.right)&&Sr(te.right.expression.name)==="apply"}function Oi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&ao(te.left)}function No(te){return Qt(te)&&_i(te.right)}function Mn(te){return Qt(te)&&Oi(te.right)}function Di(te){return $t(te)||_i(te)||No(te)||ao(te)||Oi(te)||Mn(te)}function Ar(te){for(let ct=0;ct0;jt--){const F=te.statements[jt];if(Dm(F)&&F.expression&&rn(F.expression)){const Te=te.statements[jt-1];let st;if(eu(Te)&&No($l(Te.expression)))st=Te.expression;else if(zt&&Xn(Te)){const oi=Te.declarationList.declarations[0];Di($l(oi.initializer))&&(st=t.createAssignment(ie(),oi.initializer))}if(!st)break;const Jt=t.createReturnStatement(st);Cr(Jt,Te),dt(Jt,Te);const rr=t.createNodeArray([...te.statements.slice(0,jt-1),Jt,...te.statements.slice(jt+1)]);return dt(rr,te.statements),t.updateBlock(te,rr)}}return te}function tt(te){if(Xn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(Qt(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return Za(ct.name)?t.replacePropertyName(ct,In(ct.name,tt,void 0)):te}}return In(te,tt,void 0)}function Bt(te,ct){if(ct.transformFlags&16384||I&65536||I&131072)return te;for(const zt of ct.statements)if(zt.transformFlags&134217728&&!JF(zt))return te;return t.updateBlock(te,Vn(te.statements,tt,qi))}function Rn(te){if($t(te)&&te.arguments.length===2&&Ve(te.arguments[1])&&Sr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Vl(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return Za(ct.name)?t.replacePropertyName(ct,In(ct.name,Rn,void 0)):te}}return In(te,Rn,void 0)}function li(te){return t.updateBlock(te,Vn(te.statements,Rn,qi))}function hi(te,ct,zt){const jt=te;return te=Ar(te),te=sn(te,ct),te!==jt&&(te=Bt(te,ct)),zt&&(te=li(te)),te}function Qi(te){if(te.kind===253)return!0;if(te.kind===245){const ct=te;if(ct.elseStatement)return Qi(ct.thenStatement)&&Qi(ct.elseStatement)}else if(te.kind===241){const ct=tl(te.statements);if(ct&&Qi(ct))return!0}return!1}function Io(){return pr(t.createThis(),8)}function ma(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Vl(),t.createNull()),t.createFunctionApplyCall(Vl(),Io(),t.createIdentifier("arguments"))),Io())}function Wa(te){if(!te.dotDotDotToken)return ta(te.name)?Cr(dt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Cr(dt(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function Sn(te){return te.initializer!==void 0||ta(te.name)}function kn(te,ct){if(!bt(ct.parameters,Sn))return!1;let zt=!1;for(const jt of ct.parameters){const{name:F,initializer:Te,dotDotDotToken:st}=jt;st||(ta(F)?zt=He(te,jt,F,Te)||zt:Te&&(mt(te,jt,F,Te),zt=!0))}return zt}function He(te,ct,zt,jt){return zt.elements.length>0?(bS(te,pr(t.createVariableStatement(void 0,t.createVariableDeclarationList(_1(ct,ne,e,0,t.getGeneratedNameForNode(ct)))),2097152)),!0):jt?(bS(te,pr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ct),N.checkDefined(nt(jt,ne,vt)))),2097152)),!0):!1}function mt(te,ct,zt,jt){jt=N.checkDefined(nt(jt,ne,vt));const F=t.createIfStatement(t.createTypeCheck(t.cloneNode(zt),"undefined"),pr(dt(t.createBlock([t.createExpressionStatement(pr(dt(t.createAssignment(pr(qa(dt(t.cloneNode(zt),zt),zt.parent),96),pr(jt,96|ja(jt)|3072)),ct),3072))]),ct),3905));Xu(F),dt(F,ct),pr(F,2101056),bS(te,F)}function ft(te,ct){return!!(te&&te.dotDotDotToken&&!ct)}function Ct(te,ct,zt){const jt=[],F=tl(ct.parameters);if(!ft(F,zt))return!1;const Te=F.name.kind===80?qa(dt(t.cloneNode(F.name),F.name),F.name.parent):t.createTempVariable(void 0);pr(Te,96);const st=F.name.kind===80?t.cloneNode(F.name):Te,Jt=ct.parameters.length-1,rr=t.createLoopVariable();jt.push(pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Te,void 0,void 0,t.createArrayLiteralExpression([]))])),F),2097152));const oi=t.createForStatement(dt(t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,t.createNumericLiteral(Jt))]),F),dt(t.createLessThan(rr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),F),dt(t.createPostfixIncrement(rr),F),t.createBlock([Xu(dt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,Jt===0?rr:t.createSubtract(rr,t.createNumericLiteral(Jt))),t.createElementAccessExpression(t.createIdentifier("arguments"),rr))),F))]));return pr(oi,2097152),Xu(oi),jt.push(oi),F.name.kind!==80&&jt.push(pr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList(_1(F,ne,e,0,st))),F),2097152)),oj(te,jt),!0}function le(te,ct){return I&131072&&ct.kind!==219?(Fe(te,ct,t.createThis()),!0):!1}function Fe(te,ct,zt){Nd();const jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,zt)]));pr(jt,2100224),Pa(jt,ct),bS(te,jt)}function pt(te,ct){if(I&32768){let zt;switch(ct.kind){case 219:return te;case 174:case 177:case 178:zt=t.createVoidZero();break;case 176:zt=t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor");break;case 262:case 218:zt=t.createConditionalExpression(t.createLogicalAnd(pr(t.createThis(),8),t.createBinaryExpression(pr(t.createThis(),8),104,t.getLocalName(ct))),void 0,t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return N.failBadSyntaxKind(ct)}const jt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,zt)]));pr(jt,2100224),bS(te,jt)}return te}function j(te,ct){for(const zt of ct.members)switch(zt.kind){case 240:te.push(ot(zt));break;case 174:te.push(Rt(mg(ct,zt),zt,ct));break;case 177:case 178:const jt=LS(ct.members,zt);zt===jt.firstAccessor&&te.push(Ye(mg(ct,zt),jt,ct));break;case 176:case 175:break;default:N.failBadSyntaxKind(zt,v&&v.fileName);break}}function ot(te){return dt(t.createEmptyStatement(),te)}function Rt(te,ct,zt){const jt=w_(ct),F=jy(ct),Te=_n(ct,ct,void 0,zt),st=nt(ct.name,ne,ic);N.assert(st);let Jt;if(!Ji(st)&&uP(e.getCompilerOptions())){const oi=Za(st)?st.expression:Ve(st)?t.createStringLiteral(Vi(st.escapedText)):st;Jt=t.createObjectDefinePropertyCall(te,oi,t.createPropertyDescriptor({value:Te,enumerable:!1,writable:!0,configurable:!0}))}else{const oi=XS(t,te,st,ct.name);Jt=t.createAssignment(oi,Te)}pr(Te,3072),Pa(Te,F);const rr=dt(t.createExpressionStatement(Jt),ct);return Cr(rr,ct),oc(rr,jt),pr(rr,96),rr}function Ye(te,ct,zt){const jt=t.createExpressionStatement(_t(te,ct,zt,!1));return pr(jt,3072),Pa(jt,jy(ct.firstAccessor)),jt}function _t(te,{firstAccessor:ct,getAccessor:zt,setAccessor:jt},F,Te){const st=qa(dt(t.cloneNode(te),te),te.parent);pr(st,3136),Pa(st,ct.name);const Jt=nt(ct.name,ne,ic);if(N.assert(Jt),Ji(Jt))return N.failBadSyntaxKind(Jt,"Encountered unhandled private identifier while transforming ES2015.");const rr=LH(t,Jt);pr(rr,3104),Pa(rr,ct.name);const oi=[];if(zt){const io=_n(zt,void 0,void 0,F);Pa(io,jy(zt)),pr(io,1024);const Fa=t.createPropertyAssignment("get",io);oc(Fa,w_(zt)),oi.push(Fa)}if(jt){const io=_n(jt,void 0,void 0,F);Pa(io,jy(jt)),pr(io,1024);const Fa=t.createPropertyAssignment("set",io);oc(Fa,w_(jt)),oi.push(Fa)}oi.push(t.createPropertyAssignment("enumerable",zt||jt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const $r=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,rr,t.createObjectLiteralExpression(oi,!0)]);return Te&&Xu($r),$r}function Vt(te){te.transformFlags&16384&&!(I&16384)&&(I|=131072);const ct=C;C=void 0;const zt=K(15232,66),jt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Dl(te.parameters,ne,e),void 0,q(te));return dt(jt,te),Cr(jt,te),pr(jt,16),Z(zt,0,0),C=ct,jt}function yn(te){const ct=ja(te)&524288?K(32662,69):K(32670,65),zt=C;C=void 0;const jt=Dl(te.parameters,ne,e),F=q(te),Te=I&32768?t.getLocalName(te):te.name;return Z(ct,229376,0),C=zt,t.updateFunctionExpression(te,void 0,te.asteriskToken,Te,void 0,jt,void 0,F)}function pn(te){const ct=C;C=void 0;const zt=K(32670,65),jt=Dl(te.parameters,ne,e),F=q(te),Te=I&32768?t.getLocalName(te):te.name;return Z(zt,229376,0),C=ct,t.updateFunctionDeclaration(te,Vn(te.modifiers,ne,Ia),te.asteriskToken,Te,void 0,jt,void 0,F)}function _n(te,ct,zt,jt){const F=C;C=void 0;const Te=jt&&ui(jt)&&!aa(te)?K(32670,73):K(32670,65),st=Dl(te.parameters,ne,e),Jt=q(te);return I&32768&&!zt&&(te.kind===262||te.kind===218)&&(zt=t.getGeneratedNameForNode(te)),Z(Te,229376,0),C=F,Cr(dt(t.createFunctionExpression(void 0,te.asteriskToken,zt,void 0,st,void 0,Jt),ct),te)}function q(te){let ct=!1,zt=!1,jt,F;const Te=[],st=[],Jt=te.body;let rr;if(o(),Xo(Jt)&&(rr=t.copyStandardPrologue(Jt.statements,Te,0,!1),rr=t.copyCustomPrologue(Jt.statements,st,rr,ne,z4),rr=t.copyCustomPrologue(Jt.statements,st,rr,ne,B4)),ct=kn(st,te)||ct,ct=Ct(st,te,!1)||ct,Xo(Jt))rr=t.copyCustomPrologue(Jt.statements,st,rr,ne),jt=Jt.statements,qr(st,Vn(Jt.statements,ne,qi,rr)),!ct&&Jt.multiLine&&(ct=!0);else{N.assert(te.kind===219),jt=I3(Jt,-1);const $r=te.equalsGreaterThanToken;!$s($r)&&!$s(Jt)&&(uk($r,Jt,v)?zt=!0:ct=!0);const io=nt(Jt,ne,vt),Fa=t.createReturnStatement(io);dt(Fa,Jt),tae(Fa,Jt),pr(Fa,2880),st.push(Fa),F=Jt}if(t.mergeLexicalEnvironment(Te,s()),pt(Te,te),le(Te,te),bt(Te)&&(ct=!0),st.unshift(...Te),Xo(Jt)&&Km(st,Jt.statements))return Jt;const oi=t.createBlock(dt(t.createNodeArray(st),jt),ct);return dt(oi,te.body),!ct&&zt&&pr(oi,1),F&&eae(oi,20,F),Cr(oi,te.body),oi}function Oe(te,ct){const zt=I&256?K(7104,512):K(6976,128),jt=In(te,ne,e);return Z(zt,0,0),jt}function Lt(te){return In(te,he,e)}function L(te,ct){return In(te,ct?he:ne,e)}function _e(te,ct){return By(te)?ZS(te,ne,e,0,!ct):te.operatorToken.kind===28?t.updateBinaryExpression(te,N.checkDefined(nt(te.left,he,vt)),te.operatorToken,N.checkDefined(nt(te.right,ct?he:ne,vt))):In(te,ne,e)}function J(te,ct){if(ct)return In(te,he,e);let zt;for(let F=0;Frr.name)),Jt=jt?t.createYieldExpression(t.createToken(42),pr(st,8388608)):st;if(Te)F.push(t.createExpressionStatement(Jt)),Ms(ct.loopOutParameters,1,0,F);else{const rr=t.createUniqueName("state"),oi=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(rr,void 0,void 0,Jt)]));if(F.push(oi),Ms(ct.loopOutParameters,1,0,F),ct.nonLocalJumps&8){let $r;zt?(zt.nonLocalJumps|=8,$r=t.createReturnStatement(rr)):$r=t.createReturnStatement(t.createPropertyAccessExpression(rr,"value")),F.push(t.createIfStatement(t.createTypeCheck(rr,"object"),$r))}if(ct.nonLocalJumps&2&&F.push(t.createIfStatement(t.createStrictEquality(rr,t.createStringLiteral("break")),t.createBreakStatement())),ct.labeledNonLocalBreaks||ct.labeledNonLocalContinues){const $r=[];we(ct.labeledNonLocalBreaks,!0,rr,zt,$r),we(ct.labeledNonLocalContinues,!1,rr,zt,$r),F.push(t.createSwitchStatement(rr,t.createCaseBlock($r)))}}return F}function ee(te,ct,zt,jt){ct?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(zt,jt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(zt,jt))}function we(te,ct,zt,jt,F){te&&te.forEach((Te,st)=>{const Jt=[];if(!jt||jt.labels&&jt.labels.get(st)){const rr=t.createIdentifier(st);Jt.push(ct?t.createBreakStatement(rr):t.createContinueStatement(rr))}else ee(jt,ct,st,Te),Jt.push(t.createReturnStatement(zt));F.push(t.createCaseClause(t.createStringLiteral(Te),Jt))})}function Et(te,ct,zt,jt,F){const Te=ct.name;if(ta(Te))for(const st of Te.elements)jc(st)||Et(te,st,zt,jt,F);else{zt.push(t.createParameterDeclaration(void 0,void 0,Te));const st=p.getNodeCheckFlags(ct);if(st&65536||F){const Jt=t.createUniqueName("out_"+Sr(Te));let rr=0;st&65536&&(rr|=1),jS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,ct)&&(rr|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,ct)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,ct))&&(rr|=1)),jt.push({flags:rr,originalName:Te,outParamName:Jt})}}}function un(te,ct,zt,jt){const F=ct.properties,Te=F.length;for(let st=jt;stLl(Hd)&&!!Ha(Hd.declarationList.declarations).initializer,jt=C;C=void 0;const F=Vn(ct.statements,ve,qi);C=jt;const Te=nr(F,zt),st=nr(F,Hd=>!zt(Hd)),rr=oa(Ha(Te),Ll).declarationList.declarations[0],oi=$l(rr.initializer);let $r=ii(oi,Lc);!$r&&mr(oi)&&oi.operatorToken.kind===28&&($r=ii(oi.left,Lc));const io=oa($r?$l($r.right):oi,sa),Fa=oa($l(io.expression),Os),za=Fa.body.statements;let Ol=0,fu=-1;const Dc=[];if($r){const Hd=ii(za[Ol],eu);Hd&&(Dc.push(Hd),Ol++),Dc.push(za[Ol]),Ol++,Dc.push(t.createExpressionStatement(t.createAssignment($r.left,oa(rr.name,Ve))))}for(;!Dm(Cy(za,fu));)fu--;qr(Dc,za,Ol,fu),fu<-1&&qr(Dc,za,fu+1);const xp=ii(Cy(za,fu),Dm);for(const Hd of st)Dm(Hd)&&xp?.expression&&!Ve(xp.expression)?Dc.push(xp):Dc.push(Hd);return qr(Dc,Te,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(rr.initializer,t.restoreOuterExpressions($r&&$r.right,t.updateCallExpression(io,t.restoreOuterExpressions(io.expression,t.updateFunctionExpression(Fa,void 0,void 0,void 0,void 0,Fa.parameters,void 0,t.updateBlock(Fa.body,Dc))),void 0,io.arguments))))}function Wc(te,ct){if(te.transformFlags&32768||te.expression.kind===108||zd($l(te.expression))){const{target:zt,thisArg:jt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&pr(jt,8);let F;if(te.transformFlags&32768?F=t.createFunctionApplyCall(N.checkDefined(nt(zt,$,vt)),te.expression.kind===108?jt:N.checkDefined(nt(jt,ne,vt)),hd(te.arguments,!0,!1,!1)):F=dt(t.createFunctionCallCall(N.checkDefined(nt(zt,$,vt)),te.expression.kind===108?jt:N.checkDefined(nt(jt,ne,vt)),Vn(te.arguments,ne,vt)),te),te.expression.kind===108){const Te=t.createLogicalOr(F,Io());F=t.createAssignment(ie(),Te)}return Cr(F,te)}return TS(te)&&(I|=131072),In(te,ne,e)}function cm(te){if(bt(te.arguments,e_)){const{target:ct,thisArg:zt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(N.checkDefined(nt(ct,ne,vt)),zt,hd(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return In(te,ne,e)}function hd(te,ct,zt,jt){const F=te.length,Te=da(KB(te,Ce,(oi,$r,io,Fa)=>$r(oi,zt,jt&&Fa===F)));if(Te.length===1){const oi=Te[0];if(ct&&!u.downlevelIteration||CU(oi.expression)||fP(oi.expression,"___spreadArray"))return oi.expression}const st=r(),Jt=Te[0].kind!==0;let rr=Jt?t.createArrayLiteralExpression():Te[0].expression;for(let oi=Jt?0:1;oi0&&jt.push(t.createStringLiteral(zt.literal.text)),ct=t.createCallExpression(t.createPropertyAccessExpression(ct,"concat"),void 0,jt)}return dt(ct,te)}function Vl(){return t.createUniqueName("_super",48)}function ec(te,ct){const zt=I&8&&!ct?t.createPropertyAccessExpression(Cr(Vl(),te),"prototype"):Vl();return Cr(zt,te),oc(zt,te),Pa(zt,te),zt}function Jc(te){return te.keywordToken===105&&te.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):te}function ff(te,ct,zt){if(O&1&&ea(ct)){const jt=K(32670,ja(ct)&16?81:65);m(te,ct,zt),Z(jt,0,0);return}m(te,ct,zt)}function jd(){(O&2)===0&&(O|=2,e.enableSubstitution(80))}function Nd(){(O&1)===0&&(O|=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 Of(te,ct){return ct=h(te,ct),te===1?Kg(ct):Ve(ct)?U_(ct):ct}function U_(te){if(O&2&&!kH(te)){const ct=Do(te,Ve);if(ct&&Nh(ct))return dt(t.getGeneratedNameForNode(ct),te)}return te}function Nh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function Kg(te){switch(te.kind){case 80:return Bu(te);case 110:return Ip(te)}return te}function Bu(te){if(O&2&&!kH(te)){const ct=p.getReferencedDeclarationWithCollidingName(te);if(ct&&!(ui(ct)&&Xg(ct,te)))return dt(t.getGeneratedNameForNode(Mo(ct)),te)}return te}function Xg(te,ct){let zt=Do(ct);if(!zt||zt===te||zt.end<=te.pos||zt.pos>=te.end)return!1;const jt=_h(te);for(;zt;){if(zt===jt||zt===te)return!1;if($c(zt)&&zt.parent===te)return!0;zt=zt.parent}return!1}function Ip(te){return O&1&&I&16?dt(ie(),te):te}function mg(te,ct){return aa(ct)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Ud(te,ct){if(!te||!ct||bt(te.parameters))return!1;const zt=Xc(te.body.statements);if(!zt||!$s(zt)||zt.kind!==244)return!1;const jt=zt.expression;if(!$s(jt)||jt.kind!==213)return!1;const F=jt.expression;if(!$s(F)||F.kind!==108)return!1;const Te=ah(jt.arguments);if(!Te||!$s(Te)||Te.kind!==230)return!1;const st=Te.expression;return Ve(st)&&st.escapedText==="arguments"}}var IUe=T({"src/compiler/transformers/es2015.ts"(){ra()}});function Fle(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),Pm(e,l);function l(A){return A}function u(A,I,R){switch(I.kind){case 286:case 287:case 285:const M=I.tagName;o[Wu(M)]=!0;break}i(A,I,R)}function p(A,I){return I.id&&o&&o[I.id]?s(A,I):(I=s(A,I),Wr(I)?h(I):_c(I)?m(I):I)}function h(A){if(Ji(A.name))return A;const I=v(A.name);return I?dt(t.createElementAccessExpression(A.expression,I),A):A}function m(A){const I=Ve(A.name)&&v(A.name);return I?t.updatePropertyAssignment(A,I,A.initializer):A}function v(A){const I=c0(A);if(I!==void 0&&I>=83&&I<=118)return dt(t.createStringLiteralFromNode(A),A)}}var xUe=T({"src/compiler/transformers/es5.ts"(){ra()}});function RUe(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 zle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=os(u),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=Lt;let v,A,I,R,M,C,O,U,K,Z,V=1,se,G,ne,he,ve=0,$=0,Y,oe,fe,Ne,pe,ie,ye,Me;return Pm(e,Ue);function Ue(Ce){if(Ce.isDeclarationFile||(Ce.transformFlags&2048)===0)return Ce;const Wt=In(Ce,Ee,e);return Gg(Wt,e.readEmitHelpers()),Wt}function Ee(Ce){const Wt=Ce.transformFlags;return R?De(Ce):I?Pe(Ce):Bs(Ce)&&Ce.asteriskToken?At(Ce):Wt&2048?In(Ce,Ee,e):Ce}function De(Ce){switch(Ce.kind){case 246:return ma(Ce);case 247:return Sn(Ce);case 255:return _t(Ce);case 256:return yn(Ce);default:return Pe(Ce)}}function Pe(Ce){switch(Ce.kind){case 262:return Se(Ce);case 218:return je(Ce);case 177:case 178:return at(Ce);case 243:return yt(Ce);case 248:return He(Ce);case 249:return ft(Ce);case 252:return pt(Ce);case 251:return le(Ce);case 253:return ot(Ce);default:return Ce.transformFlags&1048576?We(Ce):Ce.transformFlags&4196352?In(Ce,Ee,e):Ce}}function We(Ce){switch(Ce.kind){case 226:return $e(Ce);case 361:return Pn(Ce);case 227:return hn(Ce);case 229:return Qt(Ce);case 209:return $t(Ce);case 210:return ao(Ce);case 212:return Oi(Ce);case 213:return No(Ce);case 214:return Mn(Ce);default:return In(Ce,Ee,e)}}function At(Ce){switch(Ce.kind){case 262:return Se(Ce);case 218:return je(Ce);default:return N.failBadSyntaxKind(Ce)}}function Se(Ce){if(Ce.asteriskToken)Ce=Cr(dt(t.createFunctionDeclaration(Ce.modifiers,void 0,Ce.name,void 0,Dl(Ce.parameters,Ee,e),void 0,Gt(Ce.body)),Ce),Ce);else{const Wt=I,Jn=R;I=!1,R=!1,Ce=In(Ce,Ee,e),I=Wt,R=Jn}if(I){s(Ce);return}else return Ce}function je(Ce){if(Ce.asteriskToken)Ce=Cr(dt(t.createFunctionExpression(void 0,void 0,Ce.name,void 0,Dl(Ce.parameters,Ee,e),void 0,Gt(Ce.body)),Ce),Ce);else{const Wt=I,Jn=R;I=!1,R=!1,Ce=In(Ce,Ee,e),I=Wt,R=Jn}return Ce}function at(Ce){const Wt=I,Jn=R;return I=!1,R=!1,Ce=In(Ce,Ee,e),I=Wt,R=Jn,Ce}function Gt(Ce){const Wt=[],Jn=I,vo=R,Qo=M,na=C,Zl=O,yc=U,dl=K,vl=Z,Vl=V,ec=se,Jc=G,ff=ne,jd=he;I=!0,R=!1,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Z=void 0,V=1,se=void 0,G=void 0,ne=void 0,he=t.createTempVariable(void 0),i();const Nd=t.copyPrologue(Ce.statements,Wt,!1,Ee);Di(Ce.statements,Nd);const Of=ee();return Zh(Wt,o()),Wt.push(t.createReturnStatement(Of)),I=Jn,R=vo,M=Qo,C=na,O=Zl,U=yc,K=dl,Z=vl,V=Vl,se=ec,G=Jc,ne=ff,he=jd,dt(t.createBlock(Wt,Ce.multiLine),Ce)}function yt(Ce){if(Ce.transformFlags&1048576){li(Ce.declarationList);return}else{if(ja(Ce)&2097152)return Ce;for(const Jn of Ce.declarationList.declarations)l(Jn.name);const Wt=UC(Ce.declarationList);return Wt.length===0?void 0:Pa(t.createExpressionStatement(t.inlineExpressions(Ot(Wt,hi))),Ce)}}function $e(Ce){const Wt=qj(Ce);switch(Wt){case 0:return tn(Ce);case 1:return It(Ce);default:return N.assertNever(Wt)}}function It(Ce){const{left:Wt,right:Jn}=Ce;if(q(Jn)){let vo;switch(Wt.kind){case 211:vo=t.updatePropertyAccessExpression(Wt,J(N.checkDefined(nt(Wt.expression,Ee,ep))),Wt.name);break;case 212:vo=t.updateElementAccessExpression(Wt,J(N.checkDefined(nt(Wt.expression,Ee,ep))),J(N.checkDefined(nt(Wt.argumentExpression,Ee,vt))));break;default:vo=N.checkDefined(nt(Wt,Ee,vt));break}const Qo=Ce.operatorToken.kind;return zP(Qo)?dt(t.createAssignment(vo,dt(t.createBinaryExpression(J(vo),BP(Qo),N.checkDefined(nt(Jn,Ee,vt))),Ce)),Ce):t.updateBinaryExpression(Ce,vo,Ce.operatorToken,N.checkDefined(nt(Jn,Ee,vt)))}return In(Ce,Ee,e)}function tn(Ce){return q(Ce.right)?$ie(Ce.operatorToken.kind)?Xn(Ce):Ce.operatorToken.kind===28?rn(Ce):t.updateBinaryExpression(Ce,J(N.checkDefined(nt(Ce.left,Ee,vt))),Ce.operatorToken,N.checkDefined(nt(Ce.right,Ee,vt))):In(Ce,Ee,e)}function rn(Ce){let Wt=[];return Jn(Ce.left),Jn(Ce.right),t.inlineExpressions(Wt);function Jn(vo){mr(vo)&&vo.operatorToken.kind===28?(Jn(vo.left),Jn(vo.right)):(q(vo)&&Wt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Wt))]),Wt=[]),Wt.push(N.checkDefined(nt(vo,Ee,vt))))}}function Pn(Ce){let Wt=[];for(const Jn of Ce.elements)mr(Jn)&&Jn.operatorToken.kind===28?Wt.push(rn(Jn)):(q(Jn)&&Wt.length>0&&(de(1,[t.createExpressionStatement(t.inlineExpressions(Wt))]),Wt=[]),Wt.push(N.checkDefined(nt(Jn,Ee,vt))));return t.inlineExpressions(Wt)}function Xn(Ce){const Wt=Ge(),Jn=me();return ul(Jn,N.checkDefined(nt(Ce.left,Ee,vt)),Ce.left),Ce.operatorToken.kind===56?js(Wt,Jn,Ce.left):nn(Wt,Jn,Ce.left),ul(Jn,N.checkDefined(nt(Ce.right,Ee,vt)),Ce.right),ke(Wt),Jn}function hn(Ce){if(q(Ce.whenTrue)||q(Ce.whenFalse)){const Wt=Ge(),Jn=Ge(),vo=me();return js(Wt,N.checkDefined(nt(Ce.condition,Ee,vt)),Ce.condition),ul(vo,N.checkDefined(nt(Ce.whenTrue,Ee,vt)),Ce.whenTrue),ko(Jn),ke(Wt),ul(vo,N.checkDefined(nt(Ce.whenFalse,Ee,vt)),Ce.whenFalse),ke(Jn),vo}return In(Ce,Ee,e)}function Qt(Ce){const Wt=Ge(),Jn=nt(Ce.expression,Ee,vt);if(Ce.asteriskToken){const vo=(ja(Ce.expression)&8388608)===0?dt(r().createValuesHelper(Jn),Ce):Jn;nu(vo,Ce)}else pu(Jn,Ce);return ke(Wt),wf(Ce)}function $t(Ce){return _i(Ce.elements,void 0,void 0,Ce.multiLine)}function _i(Ce,Wt,Jn,vo){const Qo=Oe(Ce);let na;if(Qo>0){na=me();const dl=Vn(Ce,Ee,vt,0,Qo);ul(na,t.createArrayLiteralExpression(Wt?[Wt,...dl]:dl)),Wt=void 0}const Zl=id(Ce,yc,[],Qo);return na?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(Zl,vo)]):dt(t.createArrayLiteralExpression(Wt?[Wt,...Zl]:Zl,vo),Jn);function yc(dl,vl){if(q(vl)&&dl.length>0){const Vl=na!==void 0;na||(na=me()),ul(na,Vl?t.createArrayConcatCall(na,[t.createArrayLiteralExpression(dl,vo)]):t.createArrayLiteralExpression(Wt?[Wt,...dl]:dl,vo)),Wt=void 0,dl=[]}return dl.push(N.checkDefined(nt(vl,Ee,vt))),dl}}function ao(Ce){const Wt=Ce.properties,Jn=Ce.multiLine,vo=Oe(Wt),Qo=me();ul(Qo,t.createObjectLiteralExpression(Vn(Wt,Ee,kg,0,vo),Jn));const na=id(Wt,Zl,[],vo);return na.push(Jn?Xu(qa(dt(t.cloneNode(Qo),Qo),Qo.parent)):Qo),t.inlineExpressions(na);function Zl(yc,dl){q(dl)&&yc.length>0&&(Nl(t.createExpressionStatement(t.inlineExpressions(yc))),yc=[]);const vl=zae(t,Ce,dl,Qo),Vl=nt(vl,Ee,vt);return Vl&&(Jn&&Xu(Vl),yc.push(Vl)),yc}}function Oi(Ce){return q(Ce.argumentExpression)?t.updateElementAccessExpression(Ce,J(N.checkDefined(nt(Ce.expression,Ee,ep))),N.checkDefined(nt(Ce.argumentExpression,Ee,vt))):In(Ce,Ee,e)}function No(Ce){if(!Bp(Ce)&&Xe(Ce.arguments,q)){const{target:Wt,thisArg:Jn}=t.createCallBinding(Ce.expression,l,p,!0);return Cr(dt(t.createFunctionApplyCall(J(N.checkDefined(nt(Wt,Ee,ep))),Jn,_i(Ce.arguments)),Ce),Ce)}return In(Ce,Ee,e)}function Mn(Ce){if(Xe(Ce.arguments,q)){const{target:Wt,thisArg:Jn}=t.createCallBinding(t.createPropertyAccessExpression(Ce.expression,"bind"),l);return Cr(dt(t.createNewExpression(t.createFunctionApplyCall(J(N.checkDefined(nt(Wt,Ee,vt))),Jn,_i(Ce.arguments,t.createVoidZero())),void 0,[]),Ce),Ce)}return In(Ce,Ee,e)}function Di(Ce,Wt=0){const Jn=Ce.length;for(let vo=Wt;vo0)break;Qo.push(hi(Zl))}Qo.length&&(Nl(t.createExpressionStatement(t.inlineExpressions(Qo))),vo+=Qo.length,Qo=[])}}function hi(Ce){return Pa(t.createAssignment(Pa(t.cloneNode(Ce.name),Ce.name),N.checkDefined(nt(Ce.initializer,Ee,vt))),Ce)}function Qi(Ce){if(q(Ce))if(q(Ce.thenStatement)||q(Ce.elseStatement)){const Wt=Ge(),Jn=Ce.elseStatement?Ge():void 0;js(Ce.elseStatement?Jn:Wt,N.checkDefined(nt(Ce.expression,Ee,vt)),Ce.expression),Ar(Ce.thenStatement),Ce.elseStatement&&(ko(Wt),ke(Jn),Ar(Ce.elseStatement)),ke(Wt)}else Nl(nt(Ce,Ee,qi));else Nl(nt(Ce,Ee,qi))}function Io(Ce){if(q(Ce)){const Wt=Ge(),Jn=Ge();Ci(Wt),ke(Jn),Ar(Ce.statement),ke(Wt),nn(Jn,N.checkDefined(nt(Ce.expression,Ee,vt))),Ii()}else Nl(nt(Ce,Ee,qi))}function ma(Ce){return R?(yo(),Ce=In(Ce,Ee,e),Ii(),Ce):In(Ce,Ee,e)}function Wa(Ce){if(q(Ce)){const Wt=Ge(),Jn=Ci(Wt);ke(Wt),js(Jn,N.checkDefined(nt(Ce.expression,Ee,vt))),Ar(Ce.statement),ko(Wt),Ii()}else Nl(nt(Ce,Ee,qi))}function Sn(Ce){return R?(yo(),Ce=In(Ce,Ee,e),Ii(),Ce):In(Ce,Ee,e)}function kn(Ce){if(q(Ce)){const Wt=Ge(),Jn=Ge(),vo=Ci(Jn);if(Ce.initializer){const Qo=Ce.initializer;Uc(Qo)?li(Qo):Nl(dt(t.createExpressionStatement(N.checkDefined(nt(Qo,Ee,vt))),Qo))}ke(Wt),Ce.condition&&js(vo,N.checkDefined(nt(Ce.condition,Ee,vt))),Ar(Ce.statement),ke(Jn),Ce.incrementor&&Nl(dt(t.createExpressionStatement(N.checkDefined(nt(Ce.incrementor,Ee,vt))),Ce.incrementor)),ko(Wt),Ii()}else Nl(nt(Ce,Ee,qi))}function He(Ce){R&&yo();const Wt=Ce.initializer;if(Wt&&Uc(Wt)){for(const vo of Wt.declarations)l(vo.name);const Jn=UC(Wt);Ce=t.updateForStatement(Ce,Jn.length>0?t.inlineExpressions(Ot(Jn,hi)):void 0,nt(Ce.condition,Ee,vt),nt(Ce.incrementor,Ee,vt),xd(Ce.statement,Ee,e))}else Ce=In(Ce,Ee,e);return R&&Ii(),Ce}function mt(Ce){if(q(Ce)){const Wt=me(),Jn=me(),vo=me(),Qo=t.createLoopVariable(),na=Ce.initializer;l(Qo),ul(Wt,N.checkDefined(nt(Ce.expression,Ee,vt))),ul(Jn,t.createArrayLiteralExpression()),Nl(t.createForInStatement(vo,Wt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Jn,"push"),void 0,[vo])))),ul(Qo,t.createNumericLiteral(0));const Zl=Ge(),yc=Ge(),dl=Ci(yc);ke(Zl),js(dl,t.createLessThan(Qo,t.createPropertyAccessExpression(Jn,"length"))),ul(vo,t.createElementAccessExpression(Jn,Qo)),js(yc,t.createBinaryExpression(vo,103,Wt));let vl;if(Uc(na)){for(const Vl of na.declarations)l(Vl.name);vl=t.cloneNode(na.declarations[0].name)}else vl=N.checkDefined(nt(na,Ee,vt)),N.assert(ep(vl));ul(vl,vo),Ar(Ce.statement),ke(yc),Nl(t.createExpressionStatement(t.createPostfixIncrement(Qo))),ko(Zl),Ii()}else Nl(nt(Ce,Ee,qi))}function ft(Ce){R&&yo();const Wt=Ce.initializer;if(Uc(Wt)){for(const Jn of Wt.declarations)l(Jn.name);Ce=t.updateForInStatement(Ce,Wt.declarations[0].name,N.checkDefined(nt(Ce.expression,Ee,vt)),N.checkDefined(nt(Ce.statement,Ee,qi,t.liftToBlock)))}else Ce=In(Ce,Ee,e);return R&&Ii(),Ce}function Ct(Ce){const Wt=pa(Ce.label?Sr(Ce.label):void 0);Wt>0?ko(Wt,Ce):Nl(Ce)}function le(Ce){if(R){const Wt=pa(Ce.label&&Sr(Ce.label));if(Wt>0)return La(Wt,Ce)}return In(Ce,Ee,e)}function Fe(Ce){const Wt=ho(Ce.label?Sr(Ce.label):void 0);Wt>0?ko(Wt,Ce):Nl(Ce)}function pt(Ce){if(R){const Wt=ho(Ce.label&&Sr(Ce.label));if(Wt>0)return La(Wt,Ce)}return In(Ce,Ee,e)}function j(Ce){Ap(nt(Ce.expression,Ee,vt),Ce)}function ot(Ce){return _l(nt(Ce.expression,Ee,vt),Ce)}function Rt(Ce){q(Ce)?(Bn(J(N.checkDefined(nt(Ce.expression,Ee,vt)))),Ar(Ce.statement),Hn()):Nl(nt(Ce,Ee,qi))}function Ye(Ce){if(q(Ce.caseBlock)){const Wt=Ce.caseBlock,Jn=Wt.clauses.length,vo=xo(),Qo=J(N.checkDefined(nt(Ce.expression,Ee,vt))),na=[];let Zl=-1;for(let vl=0;vl0)break;dl.push(t.createCaseClause(N.checkDefined(nt(ec.expression,Ee,vt)),[La(na[Vl],ec.expression)]))}else vl++}dl.length&&(Nl(t.createSwitchStatement(Qo,t.createCaseBlock(dl))),yc+=dl.length,dl=[]),vl>0&&(yc+=vl,vl=0)}Zl>=0?ko(na[Zl]):ko(vo);for(let vl=0;vl=0;Jn--){const vo=U[Jn];if(Vs(vo)){if(vo.labelText===Ce)return!0}else break}return!1}function ho(Ce){if(U)if(Ce)for(let Wt=U.length-1;Wt>=0;Wt--){const Jn=U[Wt];if(Vs(Jn)&&Jn.labelText===Ce)return Jn.breakLabel;if(cs(Jn)&&uu(Ce,Wt-1))return Jn.breakLabel}else for(let Wt=U.length-1;Wt>=0;Wt--){const Jn=U[Wt];if(cs(Jn))return Jn.breakLabel}return 0}function pa(Ce){if(U)if(Ce)for(let Wt=U.length-1;Wt>=0;Wt--){const Jn=U[Wt];if(yl(Jn)&&uu(Ce,Wt-1))return Jn.continueLabel}else for(let Wt=U.length-1;Wt>=0;Wt--){const Jn=U[Wt];if(yl(Jn))return Jn.continueLabel}return 0}function du(Ce){if(Ce!==void 0&&Ce>0){Z===void 0&&(Z=[]);const Wt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Z[Ce]===void 0?Z[Ce]=[Wt]:Z[Ce].push(Wt),Wt}return t.createOmittedExpression()}function As(Ce){const Wt=t.createNumericLiteral(Ce);return uW(Wt,3,RUe(Ce)),Wt}function La(Ce,Wt){return N.assertLessThan(0,Ce,"Invalid label"),dt(t.createReturnStatement(t.createArrayLiteralExpression([As(3),du(Ce)])),Wt)}function _l(Ce,Wt){return dt(t.createReturnStatement(t.createArrayLiteralExpression(Ce?[As(2),Ce]:[As(2)])),Wt)}function wf(Ce){return dt(t.createCallExpression(t.createPropertyAccessExpression(he,"sent"),void 0,[]),Ce)}function sc(){de(0)}function Nl(Ce){Ce?de(1,[Ce]):sc()}function ul(Ce,Wt,Jn){de(2,[Ce,Wt],Jn)}function ko(Ce,Wt){de(3,[Ce],Wt)}function nn(Ce,Wt,Jn){de(4,[Ce,Wt],Jn)}function js(Ce,Wt,Jn){de(5,[Ce,Wt],Jn)}function nu(Ce,Wt){de(7,[Ce],Wt)}function pu(Ce,Wt){de(6,[Ce],Wt)}function Ap(Ce,Wt){de(8,[Ce],Wt)}function Ms(Ce,Wt){de(9,[Ce],Wt)}function Rc(){de(10)}function de(Ce,Wt,Jn){se===void 0&&(se=[],G=[],ne=[]),K===void 0&&ke(Ge());const vo=se.length;se[vo]=Ce,G[vo]=Wt,ne[vo]=Jn}function ee(){ve=0,$=0,Y=void 0,oe=!1,fe=!1,Ne=void 0,pe=void 0,ie=void 0,ye=void 0,Me=void 0;const Ce=we();return r().createGeneratorHelper(pr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,he)],void 0,t.createBlock(Ce,Ce.length>0)),1048576))}function we(){if(se){for(let Ce=0;Ce=0;Wt--){const Jn=Me[Wt];pe=[t.createWithStatement(Jn.expression,t.createBlock(pe))]}if(ye){const{startLabel:Wt,catchLabel:Jn,finallyLabel:vo,endLabel:Qo}=ye;pe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(he,"trys"),"push"),void 0,[t.createArrayLiteralExpression([du(Wt),du(Jn),du(vo),du(Qo)])]))),ye=void 0}Ce&&pe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(he,"label"),t.createNumericLiteral($+1))))}Ne.push(t.createCaseClause(t.createNumericLiteral($),pe||[])),pe=void 0}function jr(Ce){if(K)for(let Wt=0;Wtr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(ke))),Ge),r.createVoidZero())));xn(Oe,nt(C.externalHelpersImportDeclaration,Y,qi)),qr(Oe,Vn(q.statements,Y,qi,L)),$(Oe,!1),Zh(Oe,s());const _e=r.updateSourceFile(q,dt(r.createNodeArray(Oe),q.statements));return Gg(_e,e.readEmitHelpers()),_e}function se(q){const Oe=r.createIdentifier("define"),Lt=Qk(r,q,h,u),L=Qf(q)&&q,{aliasedModuleNames:_e,unaliasedModuleNames:J,importAliasNames:me}=ne(q,!0),Ge=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Oe,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(L?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),..._e,...J]),L?L.statements.length?L.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"),...me],void 0,ve(q))]))]),q.statements));return Gg(Ge,e.readEmitHelpers()),Ge}function G(q){const{aliasedModuleNames:Oe,unaliasedModuleNames:Lt,importAliasNames:L}=ne(q,!1),_e=Qk(r,q,h,u),J=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,dt(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")]))]),pr(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,[..._e?[_e]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Oe,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),me=r.updateSourceFile(q,dt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(J,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"),...L],void 0,ve(q))]))]),q.statements));return Gg(me,e.readEmitHelpers()),me}function ne(q,Oe){const Lt=[],L=[],_e=[];for(const J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),_e.push(r.createParameterDeclaration(void 0,void 0,J.name))):L.push(r.createStringLiteral(J.path));for(const J of C.externalImports){const me=gI(r,J,M,h,p,u),Ge=tD(r,J,M);me&&(Oe&&Ge?(pr(Ge,8),Lt.push(me),_e.push(r.createParameterDeclaration(void 0,void 0,Ge))):L.push(me))}return{aliasedModuleNames:Lt,unaliasedModuleNames:L,importAliasNames:_e}}function he(q){if(tu(q)||Yl(q)||!gI(r,q,M,h,p,u))return;const Oe=tD(r,q,M),Lt=No(q,Oe);if(Lt!==Oe)return r.createExpressionStatement(r.createAssignment(Oe,Lt))}function ve(q){o();const Oe=[],Lt=r.copyPrologue(q.statements,Oe,!u.noImplicitUseStrict,Y);Z()&&xn(Oe,Ct()),Le(C.exportedNames)&&xn(Oe,r.createExpressionStatement(id(C.exportedNames,(_e,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Sr(J))),_e),r.createVoidZero()))),xn(Oe,nt(C.externalHelpersImportDeclaration,Y,qi)),v===2&&qr(Oe,Hi(C.externalImports,he)),qr(Oe,Vn(q.statements,Y,qi,Lt)),$(Oe,!0),Zh(Oe,s());const L=r.createBlock(Oe,!0);return U&&QA(L,Sxe),L}function $(q,Oe){if(C.exportEquals){const Lt=nt(C.exportEquals.expression,Ne,vt);if(Lt)if(Oe){const L=r.createReturnStatement(Lt);dt(L,C.exportEquals),pr(L,3840),q.push(L)}else{const L=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));dt(L,C.exportEquals),pr(L,3072),q.push(L)}}}function Y(q){switch(q.kind){case 272:return Mn(q);case 271:return Ar(q);case 278:return sn(q);case 277:return tt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return li(q);case 262:return Bt(q);case 263:return Rn(q);case 248:return Me(q,!0);case 249:return Ue(q);case 250:return Ee(q);case 246:return De(q);case 247:return Pe(q);case 256:return We(q);case 254:return At(q);case 245:return Se(q);case 255:return je(q);case 269:return at(q);case 296:return Gt(q);case 297:return yt(q);case 258:return $e(q);case 299:return It(q);case 241:return tn(q);default:return Ne(q)}}function fe(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Me(q,!1);case 244:return rn(q);case 217:return Pn(q,Oe);case 360:return Xn(q,Oe);case 213:if(Bp(q)&&M.impliedNodeFormat===void 0)return Qt(q);break;case 226:if(By(q))return ye(q,Oe);break;case 224:case 225:return hn(q,Oe)}return In(q,Ne,e)}function Ne(q){return fe(q,!1)}function pe(q){return fe(q,!0)}function ie(q){if(Oa(q))for(const Oe of q.properties)switch(Oe.kind){case 303:if(ie(Oe.initializer))return!0;break;case 304:if(ie(Oe.name))return!0;break;case 305:if(ie(Oe.expression))return!0;break;case 174:case 177:case 178:return!1;default:N.assertNever(Oe,"Unhandled object member kind")}else if(md(q)){for(const Oe of q.elements)if(e_(Oe)){if(ie(Oe.expression))return!0}else if(ie(Oe))return!0}else if(Ve(q))return Le(_n(q))>(rF(q)?1:0);return!1}function ye(q,Oe){return ie(q.left)?ZS(q,Ne,e,0,!Oe,hi):In(q,Ne,e)}function Me(q,Oe){if(Oe&&q.initializer&&Uc(q.initializer)&&!(q.initializer.flags&7)){const Lt=Sn(void 0,q.initializer,!1);if(Lt){const L=[],_e=nt(q.initializer,pe,Uc),J=r.createVariableStatement(void 0,_e);L.push(J),qr(L,Lt);const me=nt(q.condition,Ne,vt),Ge=nt(q.incrementor,pe,vt),ke=xd(q.statement,Oe?oe:Ne,e);return L.push(r.updateForStatement(q,void 0,me,Ge,ke)),L}}return r.updateForStatement(q,nt(q.initializer,pe,Af),nt(q.condition,Ne,vt),nt(q.incrementor,pe,vt),xd(q.statement,Oe?oe:Ne,e))}function Ue(q){if(Uc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Sn(void 0,q.initializer,!0);if(bt(Oe)){const Lt=nt(q.initializer,pe,Af),L=nt(q.expression,Ne,vt),_e=xd(q.statement,oe,e),J=Xo(_e)?r.updateBlock(_e,[...Oe,..._e.statements]):r.createBlock([...Oe,_e],!0);return r.updateForInStatement(q,Lt,L,J)}}return r.updateForInStatement(q,nt(q.initializer,pe,Af),nt(q.expression,Ne,vt),xd(q.statement,oe,e))}function Ee(q){if(Uc(q.initializer)&&!(q.initializer.flags&7)){const Oe=Sn(void 0,q.initializer,!0),Lt=nt(q.initializer,pe,Af),L=nt(q.expression,Ne,vt);let _e=xd(q.statement,oe,e);return bt(Oe)&&(_e=Xo(_e)?r.updateBlock(_e,[...Oe,..._e.statements]):r.createBlock([...Oe,_e],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,L,_e)}return r.updateForOfStatement(q,q.awaitModifier,nt(q.initializer,pe,Af),nt(q.expression,Ne,vt),xd(q.statement,oe,e))}function De(q){return r.updateDoStatement(q,xd(q.statement,oe,e),nt(q.expression,Ne,vt))}function Pe(q){return r.updateWhileStatement(q,nt(q.expression,Ne,vt),xd(q.statement,oe,e))}function We(q){return r.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,oe,qi,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,nt(q.expression,Ne,vt),N.checkDefined(nt(q.statement,oe,qi,r.liftToBlock)))}function Se(q){return r.updateIfStatement(q,nt(q.expression,Ne,vt),N.checkDefined(nt(q.thenStatement,oe,qi,r.liftToBlock)),nt(q.elseStatement,oe,qi,r.liftToBlock))}function je(q){return r.updateSwitchStatement(q,nt(q.expression,Ne,vt),N.checkDefined(nt(q.caseBlock,oe,EP)))}function at(q){return r.updateCaseBlock(q,Vn(q.clauses,oe,S4))}function Gt(q){return r.updateCaseClause(q,nt(q.expression,Ne,vt),Vn(q.statements,oe,qi))}function yt(q){return In(q,oe,e)}function $e(q){return In(q,oe,e)}function It(q){return r.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,oe,Xo)))}function tn(q){return q=In(q,oe,e),q}function rn(q){return r.updateExpressionStatement(q,nt(q.expression,pe,vt))}function Pn(q,Oe){return r.updateParenthesizedExpression(q,nt(q.expression,Oe?pe:Ne,vt))}function Xn(q,Oe){return r.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?pe:Ne,vt))}function hn(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!sl(q.operand)&&!jg(q.operand)&&!fU(q.operand)){const Lt=_n(q.operand);if(Lt){let L,_e=nt(q.operand,Ne,vt);tb(q)?_e=r.updatePrefixUnaryExpression(q,_e):(_e=r.updatePostfixUnaryExpression(q,_e),Oe||(L=r.createTempVariable(l),_e=r.createAssignment(L,_e),dt(_e,q)),_e=r.createComma(_e,r.cloneNode(q.operand)),dt(_e,q));for(const J of Lt)O[as(_e)]=!0,_e=Fe(J,_e),dt(_e,q);return L&&(O[as(_e)]=!0,_e=r.createComma(_e,L),dt(_e,q)),_e}}return In(q,Ne,e)}function Qt(q){if(v===0&&m>=7)return In(q,Ne,e);const Oe=gI(r,q,M,h,p,u),Lt=nt(Xc(q.arguments),Ne,vt),L=Oe&&(!Lt||!Ma(Lt)||Lt.text!==Oe.text)?Oe:Lt,_e=!!(q.transformFlags&16384);switch(u.module){case 2:return _i(L,_e);case 3:return $t(L??r.createVoidZero(),_e);case 1:default:return ao(L)}}function $t(q,Oe){if(U=!0,m1(q)){const Lt=sl(q)?q:Ma(q)?r.createStringLiteralFromNode(q):pr(dt(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ao(q),void 0,_i(Lt,Oe))}else{const Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,ao(Lt,!0),void 0,_i(Lt,Oe)))}}function _i(q,Oe){const Lt=r.createUniqueName("resolve"),L=r.createUniqueName("reject"),_e=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,L)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,L]))]);let me;m>=2?me=r.createArrowFunction(void 0,void 0,_e,void 0,void 0,J):(me=r.createFunctionExpression(void 0,void 0,void 0,void 0,_e,void 0,J),Oe&&pr(me,16));const Ge=r.createNewExpression(r.createIdentifier("Promise"),void 0,[me]);return yh(u)?r.createCallExpression(r.createPropertyAccessExpression(Ge,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ge}function ao(q,Oe){const Lt=q&&!xh(q)&&!Oe,L=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]);let _e=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);yh(u)&&(_e=i().createImportStarHelper(_e));const J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let me;return m>=2?me=r.createArrowFunction(void 0,void 0,J,void 0,void 0,_e):me=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(_e)])),r.createCallExpression(r.createPropertyAccessExpression(L,"then"),void 0,[me])}function Oi(q,Oe){return!yh(u)||Am(q)&2?Oe:sle(q)?i().createImportStarHelper(Oe):Oe}function No(q,Oe){return!yh(u)||Am(q)&2?Oe:qF(q)?i().createImportStarHelper(Oe):Uq(q)?i().createImportDefaultHelper(Oe):Oe}function Mn(q){let Oe;const Lt=vR(q);if(v!==2)if(q.importClause){const L=[];Lt&&!wA(q)?L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,No(q,Di(q)))):(L.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,No(q,Di(q)))),Lt&&wA(q)&&L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Oe=xn(Oe,Cr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList(L,m>=2?2:0)),q),q))}else return Cr(dt(r.createExpressionStatement(Di(q)),q),q);else Lt&&wA(q)&&(Oe=xn(Oe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Cr(dt(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],m>=2?2:0))));return Oe=Io(Oe,q),sh(Oe)}function Di(q){const Oe=gI(r,q,M,h,p,u),Lt=[];return Oe&&Lt.push(Oe),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function Ar(q){N.assert(_0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return v!==2?Zr(q,32)?Oe=xn(Oe,Cr(dt(r.createExpressionStatement(Fe(q.name,Di(q))),q),q)):Oe=xn(Oe,Cr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,Di(q))],m>=2?2:0)),q),q)):Zr(q,32)&&(Oe=xn(Oe,Cr(dt(r.createExpressionStatement(Fe(r.getExportName(q),r.getLocalName(q))),q),q))),Oe=ma(Oe,q),sh(Oe)}function sn(q){if(!q.moduleSpecifier)return;const Oe=r.getGeneratedNameForNode(q);if(q.exportClause&&Pf(q.exportClause)){const Lt=[];v!==2&&Lt.push(Cr(dt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Oe,void 0,void 0,Di(q))])),q),q));for(const L of q.exportClause.elements)if(m===0)Lt.push(Cr(dt(r.createExpressionStatement(i().createCreateBindingHelper(Oe,r.createStringLiteralFromNode(L.propertyName||L.name),L.propertyName?r.createStringLiteralFromNode(L.name):void 0)),L),L));else{const _e=!!yh(u)&&!(Am(q)&2)&&Sr(L.propertyName||L.name)==="default",J=r.createPropertyAccessExpression(_e?i().createImportDefaultHelper(Oe):Oe,L.propertyName||L.name);Lt.push(Cr(dt(r.createExpressionStatement(Fe(r.getExportName(L),J,void 0,!0)),L),L))}return sh(Lt)}else if(q.exportClause){const Lt=[];return Lt.push(Cr(dt(r.createExpressionStatement(Fe(r.cloneNode(q.exportClause.name),Oi(q,v!==2?Di(q):L4(q)?Oe:r.createIdentifier(Sr(q.exportClause.name))))),q),q)),sh(Lt)}else return Cr(dt(r.createExpressionStatement(i().createExportStarHelper(v!==2?Di(q):Oe)),q),q)}function tt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),nt(q.expression,Ne,vt),q,!0)}function Bt(q){let Oe;return Zr(q,32)?Oe=xn(Oe,Cr(dt(r.createFunctionDeclaration(Vn(q.modifiers,pt,Ia),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,Vn(q.parameters,Ne,Ao),void 0,In(q.body,Ne,e)),q),q)):Oe=xn(Oe,In(q,Ne,e)),Oe=He(Oe,q),sh(Oe)}function Rn(q){let Oe;return Zr(q,32)?Oe=xn(Oe,Cr(dt(r.createClassDeclaration(Vn(q.modifiers,pt,ll),r.getDeclarationName(q,!0,!0),void 0,Vn(q.heritageClauses,Ne,of),Vn(q.members,Ne,$c)),q),q)):Oe=xn(Oe,In(q,Ne,e)),Oe=He(Oe,q),sh(Oe)}function li(q){let Oe,Lt,L;if(Zr(q,32)){let _e,J=!1;for(const me of q.declarationList.declarations)if(Ve(me.name)&&jg(me.name))if(_e||(_e=Vn(q.modifiers,pt,Ia)),me.initializer){const Ge=r.updateVariableDeclaration(me,me.name,void 0,void 0,Fe(me.name,nt(me.initializer,Ne,vt)));Lt=xn(Lt,Ge)}else Lt=xn(Lt,me);else if(me.initializer)if(!ta(me.name)&&(Gs(me.initializer)||Os(me.initializer)||Zc(me.initializer))){const Ge=r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),me.name),me.name),r.createIdentifier(em(me.name))),ke=r.createVariableDeclaration(me.name,me.exclamationToken,me.type,nt(me.initializer,Ne,vt));Lt=xn(Lt,ke),L=xn(L,Ge),J=!0}else L=xn(L,Qi(me));if(Lt&&(Oe=xn(Oe,r.updateVariableStatement(q,_e,r.updateVariableDeclarationList(q.declarationList,Lt)))),L){const me=Cr(dt(r.createExpressionStatement(r.inlineExpressions(L)),q),q);J&&Pk(me),Oe=xn(Oe,me)}}else Oe=xn(Oe,In(q,Ne,e));return Oe=Wa(Oe,q),sh(Oe)}function hi(q,Oe,Lt){const L=_n(q);if(L){let _e=rF(q)?Oe:r.createAssignment(q,Oe);for(const J of L)pr(_e,8),_e=Fe(J,_e,Lt);return _e}return r.createAssignment(q,Oe)}function Qi(q){return ta(q.name)?ZS(nt(q,Ne,dk),Ne,e,0,!1,hi):r.createAssignment(dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?nt(q.initializer,Ne,vt):r.createVoidZero())}function Io(q,Oe){if(C.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;const L=new TI;Lt.name&&(q=mt(q,L,Lt));const _e=Lt.namedBindings;if(_e)switch(_e.kind){case 274:q=mt(q,L,_e);break;case 275:for(const J of _e.elements)q=mt(q,L,J,!0);break}return q}function ma(q,Oe){return C.exportEquals?q:mt(q,new TI,Oe)}function Wa(q,Oe){return Sn(q,Oe.declarationList,!1)}function Sn(q,Oe,Lt){if(C.exportEquals)return q;for(const L of Oe.declarations)q=kn(q,L,Lt);return q}function kn(q,Oe,Lt){if(C.exportEquals)return q;if(ta(Oe.name))for(const L of Oe.name.elements)jc(L)||(q=kn(q,L,Lt));else!sl(Oe.name)&&(!wi(Oe)||Oe.initializer||Lt)&&(q=mt(q,new TI,Oe));return q}function He(q,Oe){if(C.exportEquals)return q;const Lt=new TI;if(Zr(Oe,32)){const L=Zr(Oe,2048)?r.createIdentifier("default"):r.getDeclarationName(Oe);q=ft(q,Lt,L,r.getLocalName(Oe),Oe)}return Oe.name&&(q=mt(q,Lt,Oe)),q}function mt(q,Oe,Lt,L){const _e=r.getDeclarationName(Lt),J=C.exportSpecifiers.get(_e);if(J)for(const me of J)q=ft(q,Oe,me.name,_e,me.name,void 0,L);return q}function ft(q,Oe,Lt,L,_e,J,me){return Oe.has(Lt)||(Oe.set(Lt,!0),q=xn(q,le(Lt,L,_e,J,me))),q}function Ct(){let q;return m===0?q=r.createExpressionStatement(Fe(r.createIdentifier("__esModule"),r.createTrue())):q=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())])])),pr(q,2097152),q}function le(q,Oe,Lt,L,_e){const J=dt(r.createExpressionStatement(Fe(q,Oe,void 0,_e)),Lt);return Xu(J),L||pr(J,3072),J}function Fe(q,Oe,Lt,L){return dt(L&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),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(Oe)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),Oe),Lt)}function pt(q){switch(q.kind){case 95:case 90:return}return q}function j(q,Oe,Lt){Oe.kind===312?(M=Oe,C=R[Wu(M)],I(q,Oe,Lt),M=void 0,C=void 0):I(q,Oe,Lt)}function ot(q,Oe){return Oe=A(q,Oe),Oe.id&&O[Oe.id]?Oe:q===1?Ye(Oe):rp(Oe)?Rt(Oe):Oe}function Rt(q){const Oe=q.name,Lt=yn(Oe);if(Lt!==Oe){if(q.objectAssignmentInitializer){const L=r.createAssignment(Lt,q.objectAssignmentInitializer);return dt(r.createPropertyAssignment(Oe,L),q)}return dt(r.createPropertyAssignment(Oe,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return yn(q);case 213:return _t(q);case 215:return Vt(q);case 226:return pn(q)}return q}function _t(q){if(Ve(q.expression)){const Oe=yn(q.expression);if(O[as(Oe)]=!0,!Ve(Oe)&&!(ja(q.expression)&8192))return YA(r.updateCallExpression(q,Oe,void 0,q.arguments),16)}return q}function Vt(q){if(Ve(q.tag)){const Oe=yn(q.tag);if(O[as(Oe)]=!0,!Ve(Oe)&&!(ja(q.tag)&8192))return YA(r.updateTaggedTemplateExpression(q,Oe,void 0,q.template),16)}return q}function yn(q){var Oe,Lt;if(ja(q)&8192){const L=$k(M);return L?r.createPropertyAccessExpression(L,q):q}else if(!(sl(q)&&!(q.emitNode.autoGenerate.flags&64))&&!jg(q)){const L=p.getReferencedExportContainer(q,rF(q));if(L&&L.kind===312)return dt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);const _e=p.getReferencedImportDeclaration(q);if(_e){if(Eh(_e))return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(_e.parent),r.createIdentifier("default")),q);if(np(_e)){const J=_e.propertyName||_e.name;return dt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(Oe=_e.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||_e),r.cloneNode(J)),q)}}}return q}function pn(q){if(zy(q.operatorToken.kind)&&Ve(q.left)&&(!sl(q.left)||cL(q.left))&&!jg(q.left)){const Oe=_n(q.left);if(Oe){let Lt=q;for(const L of Oe)O[as(Lt)]=!0,Lt=Fe(L,Lt,q);return Lt}}return q}function _n(q){if(sl(q)){if(cL(q)){const Oe=C?.exportSpecifiers.get(q);if(Oe){const Lt=[];for(const L of Oe)Lt.push(L.name);return Lt}}}else{const Oe=p.getReferencedImportDeclaration(q);if(Oe)return C?.exportedBindings[Wu(Oe)];const Lt=new Set,L=p.getReferencedValueDeclarations(q);if(L){for(const _e of L){const J=C?.exportedBindings[Wu(_e)];if(J)for(const me of J)Lt.add(me)}if(Lt.size)return zo(Lt)}}}}var Sxe,NUe=T({"src/compiler/transformers/module/module.ts"(){ra(),Sxe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Ble(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const m=[],v=[],A=[],I=[];let R,M,C,O,U,K,Z;return Pm(e,V);function V(q){if(q.isDeclarationFile||!(LA(q,s)||q.transformFlags&8388608))return q;const Oe=Wu(q);R=q,K=q,M=m[Oe]=Hq(e,q),C=t.createUniqueName("exports"),v[Oe]=C,O=I[Oe]=t.createUniqueName("context");const Lt=se(M.externalImports),L=G(q,Lt),_e=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C),t.createParameterDeclaration(void 0,void 0,O)],void 0,L),J=Qk(t,q,u,s),me=t.createArrayLiteralExpression(Ot(Lt,ke=>ke.name)),Ge=pr(t.updateSourceFile(q,dt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,me,_e]:[me,_e]))]),q.statements)),2048);return Ps(s)||iae(Ge,L,ke=>!ke.scoped),Z&&(A[Oe]=Z,Z=void 0),R=void 0,M=void 0,C=void 0,O=void 0,U=void 0,K=void 0,Ge}function se(q){const Oe=new Map,Lt=[];for(const L of q){const _e=gI(t,L,R,u,l,s);if(_e){const J=_e.text,me=Oe.get(J);me!==void 0?Lt[me].externalImports.push(L):(Oe.set(J,Lt.length),Lt.push({name:_e,externalImports:[L]}))}}return Lt}function G(q,Oe){const Lt=[];r();const L=pd(s,"alwaysStrict")||!s.noImplicitUseStrict&&ac(R),_e=t.copyPrologue(q.statements,Lt,L,$);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),nt(M.externalHelpersImportDeclaration,$,qi);const J=Vn(q.statements,$,qi,_e);qr(Lt,U),Zh(Lt,i());const me=ne(Lt),Ge=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ve(me,Oe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ge,void 0,void 0,void 0,[],void 0,t.createBlock(J,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function ne(q){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let _e=!1;for(const J of M.externalImports)if(J.kind===278&&J.exportClause){_e=!0;break}if(!_e){const J=he(void 0);return q.push(J),J.name}}const Oe=[];if(M.exportedNames)for(const _e of M.exportedNames)_e.escapedText!=="default"&&Oe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(_e),t.createTrue()));const Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(Oe,!0))])));const L=he(Lt);return q.push(L),L.name}function he(q){const Oe=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),L=t.createIdentifier("n"),_e=t.createIdentifier("exports");let J=t.createStrictInequality(L,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[L])))),t.createFunctionDeclaration(void 0,void 0,Oe,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(_e,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(L)]),Lt,t.createBlock([pr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(_e,L),t.createElementAccessExpression(Lt,L)))),1)])),t.createExpressionStatement(t.createCallExpression(C,void 0,[_e]))],!0))}function ve(q,Oe){const Lt=[];for(const L of Oe){const _e=Xe(L.externalImports,Ge=>tD(t,Ge,R)),J=_e?t.getGeneratedNameForNode(_e):t.createUniqueName(""),me=[];for(const Ge of L.externalImports){const ke=tD(t,Ge,R);switch(Ge.kind){case 272:if(!Ge.importClause)break;case 271:N.assert(ke!==void 0),me.push(t.createExpressionStatement(t.createAssignment(ke,J))),Zr(Ge,32)&&me.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Sr(ke)),J])));break;case 278:if(N.assert(ke!==void 0),Ge.exportClause)if(Pf(Ge.exportClause)){const Tt=[];for(const kt of Ge.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(Sr(kt.name)),t.createElementAccessExpression(J,t.createStringLiteral(Sr(kt.propertyName||kt.name)))));me.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else me.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Sr(Ge.exportClause.name)),J])));else me.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[J])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,J)],void 0,t.createBlock(me,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function $(q){switch(q.kind){case 272:return Y(q);case 271:return fe(q);case 278:return oe(q);case 277:return Ne(q);default:return rn(q)}}function Y(q){let Oe;return q.importClause&&o(tD(t,q,R)),sh(At(Oe,q))}function oe(q){N.assertIsDefined(q)}function fe(q){N.assert(_0(q),"import= for internal module references should be handled in an earlier transformer.");let Oe;return o(tD(t,q,R)),sh(Se(Oe,q))}function Ne(q){if(q.isExportEquals)return;const Oe=nt(q.expression,Qi,vt);return It(t.createIdentifier("default"),Oe,!0)}function pe(q){Zr(q,32)?U=xn(U,t.updateFunctionDeclaration(q,Vn(q.modifiers,Ct,ll),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,Vn(q.parameters,Qi,Ao),void 0,nt(q.body,Qi,Xo))):U=xn(U,In(q,Qi,e)),U=Gt(U,q)}function ie(q){let Oe;const Lt=t.getLocalName(q);return o(Lt),Oe=xn(Oe,dt(t.createExpressionStatement(t.createAssignment(Lt,dt(t.createClassExpression(Vn(q.modifiers,Ct,ll),q.name,void 0,Vn(q.heritageClauses,Qi,of),Vn(q.members,Qi,$c)),q))),q)),Oe=Gt(Oe,q),sh(Oe)}function ye(q){if(!Ue(q.declarationList))return nt(q,Qi,qi);let Oe;if(RL(q.declarationList)||xL(q.declarationList)){const Lt=Vn(q.modifiers,Ct,ll),L=[];for(const J of q.declarationList.declarations)L.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Ee(J,!1)));const _e=t.updateVariableDeclarationList(q.declarationList,L);Oe=xn(Oe,t.updateVariableStatement(q,Lt,_e))}else{let Lt;const L=Zr(q,32);for(const _e of q.declarationList.declarations)_e.initializer?Lt=xn(Lt,Ee(_e,L)):Me(_e);Lt&&(Oe=xn(Oe,dt(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return Oe=je(Oe,q,!1),sh(Oe)}function Me(q){if(ta(q.name))for(const Oe of q.name.elements)jc(Oe)||Me(Oe);else o(t.cloneNode(q.name))}function Ue(q){return(ja(q)&4194304)===0&&(K.kind===312||(Pl(q).flags&7)===0)}function Ee(q,Oe){const Lt=Oe?De:Pe;return ta(q.name)?ZS(q,Qi,e,0,!1,Lt):q.initializer?Lt(q.name,nt(q.initializer,Qi,vt)):q.name}function De(q,Oe,Lt){return We(q,Oe,Lt,!0)}function Pe(q,Oe,Lt){return We(q,Oe,Lt,!1)}function We(q,Oe,Lt,L){return o(t.cloneNode(q)),L?tn(q,pn(dt(t.createAssignment(q,Oe),Lt))):pn(dt(t.createAssignment(q,Oe),Lt))}function At(q,Oe){if(M.exportEquals)return q;const Lt=Oe.importClause;if(!Lt)return q;Lt.name&&(q=yt(q,Lt));const L=Lt.namedBindings;if(L)switch(L.kind){case 274:q=yt(q,L);break;case 275:for(const _e of L.elements)q=yt(q,_e);break}return q}function Se(q,Oe){return M.exportEquals?q:yt(q,Oe)}function je(q,Oe,Lt){if(M.exportEquals)return q;for(const L of Oe.declarationList.declarations)(L.initializer||Lt)&&(q=at(q,L));return q}function at(q,Oe,Lt){if(M.exportEquals)return q;if(ta(Oe.name))for(const L of Oe.name.elements)jc(L)||(q=at(q,L));else sl(Oe.name)||(q=yt(q,Oe,void 0));return q}function Gt(q,Oe){if(M.exportEquals)return q;let Lt;if(Zr(Oe,32)){const L=Zr(Oe,2048)?t.createStringLiteral("default"):Oe.name;q=$e(q,L,t.getLocalName(Oe)),Lt=em(L)}return Oe.name&&(q=yt(q,Oe,Lt)),q}function yt(q,Oe,Lt){if(M.exportEquals)return q;const L=t.getDeclarationName(Oe),_e=M.exportSpecifiers.get(L);if(_e)for(const J of _e)J.name.escapedText!==Lt&&(q=$e(q,J.name,L));return q}function $e(q,Oe,Lt,L){return q=xn(q,It(Oe,Lt,L)),q}function It(q,Oe,Lt){const L=t.createExpressionStatement(tn(q,Oe));return Xu(L),Lt||pr(L,3072),L}function tn(q,Oe){const Lt=Ve(q)?t.createStringLiteralFromNode(q):q;return pr(Oe,ja(Oe)|3072),oc(t.createCallExpression(C,void 0,[Lt,Oe]),Oe)}function rn(q){switch(q.kind){case 243:return ye(q);case 262:return pe(q);case 263:return ie(q);case 248:return Pn(q,!0);case 249:return Xn(q);case 250:return hn(q);case 246:return _i(q);case 247:return ao(q);case 256:return Oi(q);case 254:return No(q);case 245:return Mn(q);case 255:return Di(q);case 269:return Ar(q);case 296:return sn(q);case 297:return tt(q);case 258:return Bt(q);case 299:return Rn(q);case 241:return li(q);default:return Qi(q)}}function Pn(q,Oe){const Lt=K;return K=q,q=t.updateForStatement(q,nt(q.initializer,Oe?$t:Io,Af),nt(q.condition,Qi,vt),nt(q.incrementor,Io,vt),xd(q.statement,Oe?rn:Qi,e)),K=Lt,q}function Xn(q){const Oe=K;return K=q,q=t.updateForInStatement(q,$t(q.initializer),nt(q.expression,Qi,vt),xd(q.statement,rn,e)),K=Oe,q}function hn(q){const Oe=K;return K=q,q=t.updateForOfStatement(q,q.awaitModifier,$t(q.initializer),nt(q.expression,Qi,vt),xd(q.statement,rn,e)),K=Oe,q}function Qt(q){return Uc(q)&&Ue(q)}function $t(q){if(Qt(q)){let Oe;for(const Lt of q.declarations)Oe=xn(Oe,Ee(Lt,!1)),Lt.initializer||Me(Lt);return Oe?t.inlineExpressions(Oe):t.createOmittedExpression()}else return nt(q,Io,Af)}function _i(q){return t.updateDoStatement(q,xd(q.statement,rn,e),nt(q.expression,Qi,vt))}function ao(q){return t.updateWhileStatement(q,nt(q.expression,Qi,vt),xd(q.statement,rn,e))}function Oi(q){return t.updateLabeledStatement(q,q.label,N.checkDefined(nt(q.statement,rn,qi,t.liftToBlock)))}function No(q){return t.updateWithStatement(q,nt(q.expression,Qi,vt),N.checkDefined(nt(q.statement,rn,qi,t.liftToBlock)))}function Mn(q){return t.updateIfStatement(q,nt(q.expression,Qi,vt),N.checkDefined(nt(q.thenStatement,rn,qi,t.liftToBlock)),nt(q.elseStatement,rn,qi,t.liftToBlock))}function Di(q){return t.updateSwitchStatement(q,nt(q.expression,Qi,vt),N.checkDefined(nt(q.caseBlock,rn,EP)))}function Ar(q){const Oe=K;return K=q,q=t.updateCaseBlock(q,Vn(q.clauses,rn,S4)),K=Oe,q}function sn(q){return t.updateCaseClause(q,nt(q.expression,Qi,vt),Vn(q.statements,rn,qi))}function tt(q){return In(q,rn,e)}function Bt(q){return In(q,rn,e)}function Rn(q){const Oe=K;return K=q,q=t.updateCatchClause(q,q.variableDeclaration,N.checkDefined(nt(q.block,rn,Xo))),K=Oe,q}function li(q){const Oe=K;return K=q,q=In(q,rn,e),K=Oe,q}function hi(q,Oe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Pn(q,!1);case 244:return ma(q);case 217:return Wa(q,Oe);case 360:return Sn(q,Oe);case 226:if(By(q))return He(q,Oe);break;case 213:if(Bp(q))return kn(q);break;case 224:case 225:return ft(q,Oe)}return In(q,Qi,e)}function Qi(q){return hi(q,!1)}function Io(q){return hi(q,!0)}function ma(q){return t.updateExpressionStatement(q,nt(q.expression,Io,vt))}function Wa(q,Oe){return t.updateParenthesizedExpression(q,nt(q.expression,Oe?Io:Qi,vt))}function Sn(q,Oe){return t.updatePartiallyEmittedExpression(q,nt(q.expression,Oe?Io:Qi,vt))}function kn(q){const Oe=gI(t,q,R,u,l,s),Lt=nt(Xc(q.arguments),Qi,vt),L=Oe&&(!Lt||!Ma(Lt)||Lt.text!==Oe.text)?Oe:Lt;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,L?[L]:[])}function He(q,Oe){return mt(q.left)?ZS(q,Qi,e,0,!Oe):In(q,Qi,e)}function mt(q){if(Lc(q,!0))return mt(q.left);if(e_(q))return mt(q.expression);if(Oa(q))return bt(q.properties,mt);if(md(q))return bt(q.elements,mt);if(rp(q))return mt(q.name);if(_c(q))return mt(q.initializer);if(Ve(q)){const Oe=l.getReferencedExportContainer(q);return Oe!==void 0&&Oe.kind===312}else return!1}function ft(q,Oe){if((q.operator===46||q.operator===47)&&Ve(q.operand)&&!sl(q.operand)&&!jg(q.operand)&&!fU(q.operand)){const Lt=Vt(q.operand);if(Lt){let L,_e=nt(q.operand,Qi,vt);tb(q)?_e=t.updatePrefixUnaryExpression(q,_e):(_e=t.updatePostfixUnaryExpression(q,_e),Oe||(L=t.createTempVariable(o),_e=t.createAssignment(L,_e),dt(_e,q)),_e=t.createComma(_e,t.cloneNode(q.operand)),dt(_e,q));for(const J of Lt)_e=tn(J,pn(_e));return L&&(_e=t.createComma(_e,L),dt(_e,q)),_e}}return In(q,Qi,e)}function Ct(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Oe,Lt){if(Oe.kind===312){const L=Wu(Oe);R=Oe,M=m[L],C=v[L],Z=A[L],O=I[L],Z&&delete A[L],h(q,Oe,Lt),R=void 0,M=void 0,C=void 0,O=void 0,Z=void 0}else h(q,Oe,Lt)}function Fe(q,Oe){return Oe=p(q,Oe),_n(Oe)?Oe:q===1?ot(Oe):q===4?pt(Oe):Oe}function pt(q){switch(q.kind){case 304:return j(q)}return q}function j(q){var Oe,Lt;const L=q.name;if(!sl(L)&&!jg(L)){const _e=l.getReferencedImportDeclaration(L);if(_e){if(Eh(_e))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(_e.parent),t.createIdentifier("default"))),q);if(np(_e))return dt(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=_e.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||_e),t.cloneNode(_e.propertyName||_e.name))),q)}}return q}function ot(q){switch(q.kind){case 80:return Rt(q);case 226:return Ye(q);case 236:return _t(q)}return q}function Rt(q){var Oe,Lt;if(ja(q)&8192){const L=$k(R);return L?t.createPropertyAccessExpression(L,q):q}if(!sl(q)&&!jg(q)){const L=l.getReferencedImportDeclaration(q);if(L){if(Eh(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(L.parent),t.createIdentifier("default")),q);if(np(L))return dt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(Oe=L.parent)==null?void 0:Oe.parent)==null?void 0:Lt.parent)||L),t.cloneNode(L.propertyName||L.name)),q)}}return q}function Ye(q){if(zy(q.operatorToken.kind)&&Ve(q.left)&&(!sl(q.left)||cL(q.left))&&!jg(q.left)){const Oe=Vt(q.left);if(Oe){let Lt=q;for(const L of Oe)Lt=tn(L,pn(Lt));return Lt}}return q}function _t(q){return uR(q)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):q}function Vt(q){let Oe;const Lt=yn(q);if(Lt){const L=l.getReferencedExportContainer(q,!1);L&&L.kind===312&&(Oe=xn(Oe,t.getDeclarationName(Lt))),Oe=qr(Oe,M?.exportedBindings[Wu(Lt)])}else if(sl(q)&&cL(q)){const L=M?.exportSpecifiers.get(q);if(L){const _e=[];for(const J of L)_e.push(J.name);return _e}}return Oe}function yn(q){if(!sl(q)){const Oe=l.getReferencedImportDeclaration(q);if(Oe)return Oe;const Lt=l.getReferencedValueDeclaration(q);if(Lt&&M?.exportedBindings[Wu(Lt)])return Lt;const L=l.getReferencedValueDeclarations(q);if(L){for(const _e of L)if(_e!==Lt&&M?.exportedBindings[Wu(_e)])return _e}return Lt}}function pn(q){return Z===void 0&&(Z=[]),Z[as(q)]=!0,q}function _n(q){return Z&&q.id&&Z[q.id]}}var CUe=T({"src/compiler/transformers/module/system.ts"(){ra()}});function rJ(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=os(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=Z,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,v;return Pm(e,A);function A(G){if(G.isDeclarationFile)return G;if(ac(G)||om(s)){m=G,v=void 0;let ne=I(G);return m=void 0,v&&(ne=t.updateSourceFile(ne,dt(t.createNodeArray(oj(ne.statements.slice(),v)),ne.statements))),!ac(G)||wu(s)===200||bt(ne.statements,mL)?ne:t.updateSourceFile(ne,dt(t.createNodeArray([...ne.statements,Kk(t)]),ne.statements))}return G}function I(G){const ne=OH(t,r(),G,s);if(ne){const he=[],ve=t.copyPrologue(G.statements,he);return xn(he,ne),qr(he,Vn(G.statements,R,qi,ve)),t.updateSourceFile(G,dt(t.createNodeArray(he),G.statements))}else return In(G,R,e)}function R(G){switch(G.kind){case 271:return wu(s)>=100?C(G):void 0;case 277:return U(G);case 278:return K(G)}return G}function M(G){const ne=gI(t,G,N.checkDefined(m),i,o,s),he=[];if(ne&&he.push(ne),wu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,he);if(!v){const $=t.createUniqueName("_createRequire",48),Y=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),$)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),fe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode($),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));v=[Y,fe]}const ve=v[1].declarationList.declarations[0].name;return N.assertNode(ve,Ve),t.createCallExpression(t.cloneNode(ve),void 0,he)}function C(G){N.assert(_0(G),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=xn(ne,Cr(dt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),ne=O(ne,G),sh(ne)}function O(G,ne){return Zr(ne,32)&&(G=xn(G,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Sr(ne.name))])))),G}function U(G){return G.isExportEquals?wu(s)===200?Cr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function K(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!Sh(G.exportClause)||!G.moduleSpecifier)return G;const ne=G.exportClause.name,he=t.getGeneratedNameForNode(ne),ve=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(he)),G.moduleSpecifier,G.attributes);Cr(ve,G.exportClause);const $=L4(G)?t.createExportDefault(he):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,he,ne)]));return Cr($,G),[ve,$]}function Z(G,ne,he){$i(ne)?((ac(ne)||om(s))&&s.importHelpers&&(h=new Map),u(G,ne,he),h=void 0):u(G,ne,he)}function V(G,ne){return ne=p(G,ne),h&&Ve(ne)&&ja(ne)&8192?se(ne):ne}function se(G){const ne=Sr(G);let he=h.get(ne);return he||h.set(ne,he=t.createUniqueName(ne,48)),he}}var PUe=T({"src/compiler/transformers/module/esnextAnd2015.ts"(){ra()}});function Gle(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=rJ(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=nJ(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=v,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return R;function m(C,O){return $i(O)?(h=O,t(C,O)):h?h.impliedNodeFormat===99?o(C,O):u(C,O):t(C,O)}function v(C,O,U){return $i(O)&&(h=O),h?h.impliedNodeFormat===99?s(C,O,U):p(C,O,U):r(C,O,U)}function A(C){return C.impliedNodeFormat===99?i:l}function I(C){if(C.isDeclarationFile)return C;h=C;const O=A(C)(C);return h=void 0,N.assert($i(O)),O}function R(C){return C.kind===312?I(C):M(C)}function M(C){return e.factory.createBundle(Ot(C.sourceFiles,I),C.prepends)}}var MUe=T({"src/compiler/transformers/module/node.ts"(){ra()}});function e7(e){return wi(e)||Jo(e)||yp(e)||Qa(e)||wy(e)||Fv(e)||Bk(e)||oI(e)||ql(e)||vh(e)||Ac(e)||Ao(e)||gl(e)||Hy(e)||tu(e)||Nm(e)||Ml(e)||e1(e)||Wr(e)||Qs(e)||mr(e)||Zf(e)}function Vle(e){if(wy(e)||Fv(e))return t;return vh(e)||ql(e)?i:Jy(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return aa(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){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return aa(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(wi(e)||Jo(e)||yp(e)||Wr(e)||Qs(e)||mr(e)||Qa(e)||Ml(e))return r;return wy(e)||Fv(e)?i:Bk(e)||oI(e)||ql(e)||vh(e)||Ac(e)||e1(e)?o:Ao(e)?fp(e,e.parent)&&Zr(e.parent,2)?r:s:gl(e)?u:Hy(e)?p:tu(e)?h:Nm(e)||Zf(e)?m:N.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${N.formatSyntaxKind(e.kind)}`);function t(v){if(e.kind===260||e.kind===208)return v.errorModuleName?v.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&&Zr(e.parent,2))return aa(e)?v.errorModuleName?v.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?v.errorModuleName?v.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:v.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(v){const A=t(v);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function i(v){let A;return e.kind===178?aa(e)?A=v.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:A=v.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:aa(e)?A=v.errorModuleName?v.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:A=v.errorModuleName?v.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:A,errorNode:e.name,typeName:e.name}}function o(v){let A;switch(e.kind){case 180:A=v.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:A=v.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:A=v.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:aa(e)?A=v.errorModuleName?v.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?A=v.errorModuleName?v.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:A=v.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:A=v.errorModuleName?v.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 N.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:A,errorNode:e.name||e}}function s(v){const A=l(v);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function l(v){switch(e.parent.kind){case 176:return v.errorModuleName?v.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 v.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 v.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 v.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 aa(e.parent)?v.errorModuleName?v.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?v.errorModuleName?v.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:v.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 v.errorModuleName?v.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 v.errorModuleName?v.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 N.fail(`Unknown parent for parameter: ${N.formatSyntaxKind(e.parent.kind)}`)}}function u(){let v;switch(e.parent.kind){case 263:v=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:v=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:v=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:v=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:v=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:aa(e.parent)?v=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?v=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:v=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:v=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:v=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return N.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:v,errorNode:e,typeName:e.name}}function p(){let v;return Ic(e.parent.parent)?v=of(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:v=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:v,errorNode:e,typeName:Mo(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(v){return{diagnosticMessage:v.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:Zf(e)?N.checkDefined(e.typeExpression):e.type,typeName:Zf(e)?Mo(e):e.name}}}var LUe=T({"src/compiler/transformers/declarations/diagnostics.ts"(){ra()}});function jle(e,t,r){const i=e.getCompilerOptions();return Pw(t,e,w,i,r?[r]:nr(e.getSourceFiles(),Rj),[iJ],!1).diagnostics}function iJ(e){const t=()=>N.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,h,m,v,A,I;const{factory:R}=e,M=e.getEmitHost(),C={trackSymbol:pe,reportInaccessibleThisError:Ee,reportInaccessibleUniqueSymbolError:Me,reportCyclicStructureError:Ue,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:De,reportTruncationError:Pe,moduleResolverHost:M,trackReferencedAmbientModule:Y,trackExternalModuleSymbolOfImportTypeNode:Ne,reportNonlocalAugmentation:We,reportNonSerializableProperty:At};let O,U,K,Z,V,se;const G=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:he,stripInternal:ve}=ne;return je;function $(j){if(j){h=h||new Set;for(const ot of j)h.add(ot)}}function Y(j,ot){const Rt=G.getTypeReferenceDirectivesForSymbol(ot,-1);if(Le(Rt))return $(Rt);const Ye=jn(j);Z.set(Wu(Ye),Ye)}function oe(j){const ot=gR(j),Rt=ot&&G.tryFindAmbientModule(ot);if(Rt?.declarations)for(const Ye of Rt.declarations)ku(Ye)&&jn(Ye)!==K&&Y(Ye,Rt)}function fe(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!m)m=j.aliasesToMakeVisible;else for(const ot of j.aliasesToMakeVisible)Tf(m,ot)}else{const ot=r(j);if(ot)return ot.typeName?e.addDiagnostic(kr(j.errorNode||ot.errorNode,ot.diagnosticMessage,pc(ot.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(kr(j.errorNode||ot.errorNode,ot.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ne(j){o||(I||(I=[])).push(j)}function pe(j,ot,Rt){if(j.flags&262144)return!1;const Ye=fe(G.isSymbolAccessible(j,ot,Rt,!0));return $(G.getTypeReferenceDirectivesForSymbol(j,Rt)),Ye}function ie(j){(O||U)&&e.addDiagnostic(kr(O||U,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ye(){return O?Rs(O):U&&Mo(U)?Rs(Mo(U)):U&&kl(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Me(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"unique symbol"))}function Ue(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ye()))}function Ee(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"this"))}function De(j){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ye(),j))}function Pe(){(O||U)&&e.addDiagnostic(kr(O||U,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function We(j,ot,Rt){var Ye;const _t=(Ye=ot.declarations)==null?void 0:Ye.find(yn=>jn(yn)===j),Vt=nr(Rt.declarations,yn=>jn(yn)!==j);if(_t&&Vt)for(const yn of Vt)e.addDiagnostic(wa(kr(yn,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),kr(_t,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(O||U)&&e.addDiagnostic(kr(O||U,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function Se(j,ot){const Rt=r;r=_t=>_t.errorNode&&e7(_t.errorNode)?Jy(_t.errorNode)(_t):{diagnosticMessage:_t.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:_t.errorNode||j};const Ye=G.getDeclarationStatementsForSourceFile(j,eT,C,ot);return r=Rt,Ye}function je(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,Z=new Map,V=new Map;let Oe=!1;const Lt=R.createBundle(Ot(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(Oe=Oe||J.hasNoDefaultLib,K=J,p=J,m=void 0,A=!1,v=new Map,r=t,l=!1,u=!1,at(J,Z),Gt(J,V),zp(J)||Qf(J)){s=!1,i=!1;const Ge=ud(J)?R.createNodeArray(Se(J,!0)):Vn(J.statements,li,qi);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(p3(e.getEmitHost(),J)),R.createModuleBlock(dt(R.createNodeArray(tt(Ge)),J.statements)))],!0,[],[],!1,[])}i=!0;const me=ud(J)?R.createNodeArray(Se(J)):Vn(J.statements,li,qi);return R.updateSourceFile(J,tt(me),!0,[],[],!1,[])}),Hi(j.prepends,J=>{if(J.kind===315){const me=eH(J,"dts",ve);return Oe=Oe||!!me.hasNoDefaultLib,at(me,Z),$(Ot(me.typeReferenceDirectives,Ge=>[Ge.fileName,Ge.resolutionMode])),Gt(me,V),me}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=pn(),Lt.syntheticLibReferences=yn(),Lt.hasNoDefaultLib=Oe;const L=ai(Lu(KP(j,M,!0).declarationFilePath)),_e=q(Lt.syntheticFileReferences,L);return Z.forEach(_e),Lt}i=!0,l=!1,u=!1,p=j,K=j,r=t,o=!1,s=!1,A=!1,m=void 0,v=new Map,h=void 0,Z=at(K,new Map),V=Gt(K,new Map);const ot=[],Rt=ai(Lu(KP(j,M,!0).declarationFilePath)),Ye=q(ot,Rt);let _t;if(ud(K))_t=R.createNodeArray(Se(j)),Z.forEach(Ye),se=nr(_t,ES);else{const Oe=Vn(j.statements,li,qi);_t=dt(R.createNodeArray(tt(Oe)),j.statements),Z.forEach(Ye),se=nr(_t,ES),ac(j)&&(!s||l&&!u)&&(_t=dt(R.createNodeArray([..._t,Kk(R)]),_t))}const Vt=R.updateSourceFile(j,_t,!0,ot,pn(),j.hasNoDefaultLib,yn());return Vt.exportedModulesFromDeclarationEmit=I,Vt;function yn(){return zo(V.keys(),Oe=>({fileName:Oe,pos:-1,end:-1}))}function pn(){return h?Hi(zo(h.keys()),_n):[]}function _n([Oe,Lt]){if(se){for(const L of se)if(tu(L)&&Th(L.moduleReference)){const _e=L.moduleReference.expression;if(ls(_e)&&_e.text===Oe)return}else if(kc(L)&&Ma(L.moduleSpecifier)&&L.moduleSpecifier.text===Oe)return}return{fileName:Oe,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(Oe,Lt){return L=>{if(I?.includes(L.symbol))return;let _e;if(L.isDeclarationFile)_e=L.fileName;else{if(o&&Nr(j.sourceFiles,L))return;const J=KP(L,M,!0);_e=J.declarationFilePath||J.jsFilePath||L.fileName}if(_e){const J=kF(ne,K,go(Lt,M.getCurrentDirectory()),go(_e,M.getCurrentDirectory()),M);if(!Wp(J)){$([[J,void 0]]);return}let me=IA(Lt,_e,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(uo(me,"./")&&AA(me)&&(me=me.substring(2)),uo(me,"node_modules/")||M0(me))return;Oe.push({pos:-1,end:-1,fileName:me})}}}}function at(j,ot){return he||!qS(j)&&ud(j)||Xe(j.referencedFiles,Rt=>{const Ye=M.getSourceFileFromReference(j,Rt);Ye&&ot.set(Wu(Ye),Ye)}),ot}function Gt(j,ot){return Xe(j.libReferenceDirectives,Rt=>{M.getLibFileFromReference(Rt)&&ot.set(lh(Rt.fileName),!0)}),ot}function yt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,Vn(j.elements,ot,y4)):R.updateObjectBindingPattern(j,Vn(j.elements,ot,Qa));function ot(Rt){return Rt.kind===232?Rt:(Rt.propertyName&&Za(Rt.propertyName)&&Gl(Rt.propertyName.expression)&&Oi(Rt.propertyName.expression,p),R.updateBindingElement(Rt,Rt.dotDotDotToken,Rt.propertyName,yt(Rt.name),It(Rt)?Rt.initializer:void 0))}}function $e(j,ot,Rt){let Ye;A||(Ye=r,r=Jy(j));const _t=R.updateParameterDeclaration(j,wUe(R,j,ot),j.dotDotDotToken,yt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,rn(j,Rt||j.type,!0),tn(j));return A||(r=Ye),_t}function It(j){return OUe(j)&&G.isLiteralConstDeclaration(Do(j))}function tn(j){if(It(j))return G.createLiteralConstValue(Do(j),C)}function rn(j,ot,Rt){if(!Rt&&hp(j,2)||It(j))return;const Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(ot&&!Ye)return nt(ot,Bt,ji);if(!Do(j))return ot?nt(ot,Bt,ji):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);O=j.name;let _t;if(A||(_t=r,r=Jy(j)),j.kind===260||j.kind===208)return Vt(G.createTypeOfDeclaration(j,p,eT,C));if(j.kind===169||j.kind===172||j.kind===171)return yp(j)||!j.initializer?Vt(G.createTypeOfDeclaration(j,p,eT,C,Ye)):Vt(G.createTypeOfDeclaration(j,p,eT,C,Ye)||G.createTypeOfExpression(j.initializer,p,eT,C));return Vt(G.createReturnTypeOfSignatureDeclaration(j,p,eT,C));function Vt(yn){return O=void 0,A||(r=_t),yn||R.createKeywordTypeNode(133)}}function Pn(j){switch(j=Do(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!hn(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Xn(j){var ot;if(j.body)return!0;const Rt=(ot=j.symbol.declarations)==null?void 0:ot.filter(Ye=>Ac(Ye)&&!Ye.body);return!Rt||Rt.indexOf(j)===Rt.length-1}function hn(j){return jc(j)?!1:ta(j.name)?bt(j.name.elements,hn):G.isDeclarationVisible(j)}function Qt(j,ot,Rt){if(hp(j,2))return R.createNodeArray();const Ye=Ot(ot,_t=>$e(_t,Rt));return Ye?R.createNodeArray(Ye,ot.hasTrailingComma):R.createNodeArray()}function $t(j,ot){let Rt;if(!ot){const Ye=HE(j);Ye&&(Rt=[$e(Ye)])}if(vp(j)){let Ye;if(!ot){const _t=WC(j);if(_t){const Vt=Fe(j,G.getAllAccessorDeclarations(j));Ye=$e(_t,void 0,Vt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),Rt=xn(Rt,Ye)}return R.createNodeArray(Rt||et)}function _i(j,ot){return hp(j,2)?void 0:Vn(ot,Bt,gl)}function ao(j){return $i(j)||Nm(j)||Xl(j)||Ic(j)||_d(j)||ea(j)||e1(j)||qR(j)}function Oi(j,ot){const Rt=G.isEntityNameVisible(j,ot);fe(Rt),$(G.getTypeReferenceDirectivesForEntityName(j))}function No(j,ot){return Fp(j)&&Fp(ot)&&(j.jsDoc=ot.jsDoc),oc(j,w_(ot))}function Mn(j,ot){if(ot){if(s=s||j.kind!==267&&j.kind!==205,ls(ot))if(o){const Rt=kie(e.getEmitHost(),G,j);if(Rt)return R.createStringLiteral(Rt)}else{const Rt=G.getSymbolOfExternalModuleSpecifier(ot);Rt&&(I||(I=[])).push(Rt)}return ot}}function Di(j){if(G.isDeclarationVisible(j))if(j.moduleReference.kind===283){const ot=IC(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,Mn(j,ot)))}else{const ot=r;return r=Jy(j),Oi(j.moduleReference,p),r=ot,j}}function Ar(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,Mn(j,j.moduleSpecifier),sn(j.attributes));const ot=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return ot&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,void 0),Mn(j,j.moduleSpecifier),sn(j.attributes));if(j.importClause.namedBindings.kind===274){const Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return ot||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Ye),Mn(j,j.moduleSpecifier),sn(j.attributes)):void 0}const Rt=Hi(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(Rt&&Rt.length||ot)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Rt&&Rt.length?R.updateNamedImports(j.importClause.namedBindings,Rt):void 0),Mn(j,j.moduleSpecifier),sn(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,Mn(j,j.moduleSpecifier),sn(j.attributes))}function sn(j){const ot=_D(j);return j&&ot!==void 0?j:void 0}function tt(j){for(;Le(m);){const Rt=m.shift();if(!w4(Rt))return N.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${N.formatSyntaxKind(Rt.kind)}`);const Ye=i;i=Rt.parent&&$i(Rt.parent)&&!(ac(Rt.parent)&&o);const _t=Io(Rt);i=Ye,v.set(Wu(Rt),_t)}return Vn(j,ot,qi);function ot(Rt){if(w4(Rt)){const Ye=Wu(Rt);if(v.has(Ye)){const _t=v.get(Ye);return v.delete(Ye),_t&&((To(_t)?bt(_t,v4):v4(_t))&&(l=!0),$i(Rt.parent)&&(To(_t)?bt(_t,mL):mL(_t))&&(s=!0)),_t}}return Rt}}function Bt(j){if(He(j)||Ju(j)&&(Pn(j)||jv(j)&&!G.isLateBound(Do(j)))||ea(j)&&G.isImplementationOfOverload(j)||Tae(j))return;let ot;ao(j)&&(ot=p,p=j);const Rt=r,Ye=e7(j),_t=A;let Vt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((ql(j)||vh(j))&&hp(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:yn(R.createPropertyDeclaration(Ct(j),j.name,void 0,void 0,void 0));if(Ye&&!A&&(r=Jy(j)),aI(j)&&Oi(j.exprName,p),Vt&&(A=!0),FUe(j))switch(j.kind){case 233:{(Zd(j.expression)||Gl(j.expression))&&Oi(j.expression,p);const pn=In(j,Bt,e);return yn(R.updateExpressionWithTypeArguments(pn,pn.expression,pn.typeArguments))}case 183:{Oi(j.typeName,p);const pn=In(j,Bt,e);return yn(R.updateTypeReferenceNode(pn,pn.typeName,pn.typeArguments))}case 180:return yn(R.updateConstructSignature(j,_i(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 176:{const pn=R.createConstructorDeclaration(Ct(j),Qt(j,j.parameters,0),void 0);return yn(pn)}case 174:{if(Ji(j.name))return yn(void 0);const pn=R.createMethodDeclaration(Ct(j),void 0,j.name,j.questionToken,_i(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0);return yn(pn)}case 177:{if(Ji(j.name))return yn(void 0);const pn=Fe(j,G.getAllAccessorDeclarations(j));return yn(R.updateGetAccessorDeclaration(j,Ct(j),j.name,$t(j,hp(j,2)),rn(j,pn),void 0))}case 178:return Ji(j.name)?yn(void 0):yn(R.updateSetAccessorDeclaration(j,Ct(j),j.name,$t(j,hp(j,2)),void 0));case 172:return Ji(j.name)?yn(void 0):yn(R.updatePropertyDeclaration(j,Ct(j),j.name,j.questionToken,rn(j,j.type),tn(j)));case 171:return Ji(j.name)?yn(void 0):yn(R.updatePropertySignature(j,Ct(j),j.name,j.questionToken,rn(j,j.type)));case 173:return Ji(j.name)?yn(void 0):yn(R.updateMethodSignature(j,Ct(j),j.name,j.questionToken,_i(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 179:return yn(R.updateCallSignature(j,_i(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type)));case 181:return yn(R.updateIndexSignature(j,Ct(j),Qt(j,j.parameters),nt(j.type,Bt,ji)||R.createKeywordTypeNode(133)));case 260:return ta(j.name)?Wa(j.name):(Vt=!0,A=!0,yn(R.updateVariableDeclaration(j,j.name,void 0,rn(j,j.type),tn(j))));case 168:return Rn(j)&&(j.default||j.constraint)?yn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):yn(In(j,Bt,e));case 194:{const pn=nt(j.checkType,Bt,ji),_n=nt(j.extendsType,Bt,ji),q=p;p=j.trueType;const Oe=nt(j.trueType,Bt,ji);p=q;const Lt=nt(j.falseType,Bt,ji);return N.assert(pn),N.assert(_n),N.assert(Oe),N.assert(Lt),yn(R.updateConditionalTypeNode(j,pn,_n,Oe,Lt))}case 184:return yn(R.updateFunctionTypeNode(j,Vn(j.typeParameters,Bt,gl),Qt(j,j.parameters),N.checkDefined(nt(j.type,Bt,ji))));case 185:return yn(R.updateConstructorTypeNode(j,Ct(j),Vn(j.typeParameters,Bt,gl),Qt(j,j.parameters),N.checkDefined(nt(j.type,Bt,ji))));case 205:return Vv(j)?(oe(j),yn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,Mn(j,j.argument.literal)),j.attributes,j.qualifier,Vn(j.typeArguments,Bt,ji),j.isTypeOf))):yn(j);default:N.assertNever(j,`Attempted to process unhandled node kind: ${N.formatSyntaxKind(j.kind)}`)}return sI(j)&&bs(K,j.pos).line===bs(K,j.end).line&&pr(j,1),yn(In(j,Bt,e));function yn(pn){return pn&&Ye&&jv(j)&&kn(j),ao(j)&&(p=ot),Ye&&!A&&(r=Rt),Vt&&(A=_t),pn===j?pn:pn&&Cr(No(pn,j),j)}}function Rn(j){return j.parent.kind===174&&hp(j.parent,2)}function li(j){if(!WUe(j)||He(j))return;switch(j.kind){case 278:return $i(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,Mn(j,j.moduleSpecifier),sn(j.attributes));case 277:{if($i(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{const Rt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),U=j;const Ye=R.createVariableDeclaration(Rt,void 0,G.createTypeOfExpression(j.expression,j,eT,C),void 0);U=void 0;const _t=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return No(_t,j),Pk(j),[_t,R.updateExportAssignment(j,j.modifiers,Rt)]}}}const ot=Io(j);return v.set(Wu(j),ot),j}function hi(j){if(tu(j)||hp(j,2048)||!Cm(j))return j;const ot=R.createModifiersFromModifierFlags(dd(j)&131039);return R.replaceModifiers(j,ot)}function Qi(j,ot,Rt,Ye){const _t=R.updateModuleDeclaration(j,ot,Rt,Ye);if(ku(_t)||_t.flags&32)return _t;const Vt=R.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return Cr(Vt,_t),dt(Vt,_t),Vt}function Io(j){if(m)for(;Bx(m,j););if(He(j))return;switch(j.kind){case 271:{const yn=Di(j);return yn&&oe(j),yn}case 272:{const yn=Ar(j);return yn&&oe(j),yn}}if(Ju(j)&&Pn(j)||ea(j)&&G.isImplementationOfOverload(j))return;let ot;ao(j)&&(ot=p,p=j);const Rt=e7(j),Ye=r;Rt&&(r=Jy(j));const _t=i;switch(j.kind){case 265:{i=!1;const yn=Vt(R.updateTypeAliasDeclaration(j,Ct(j),j.name,Vn(j.typeParameters,Bt,gl),N.checkDefined(nt(j.type,Bt,ji))));return i=_t,yn}case 264:return Vt(R.updateInterfaceDeclaration(j,Ct(j),j.name,_i(j,j.typeParameters),pt(j.heritageClauses),Vn(j.members,Bt,gS)));case 262:{const yn=Vt(R.updateFunctionDeclaration(j,Ct(j),void 0,j.name,_i(j,j.typeParameters),Qt(j,j.parameters),rn(j,j.type),void 0));if(yn&&G.isExpandoFunctionDeclaration(j)&&Xn(j)){const pn=G.getPropertiesOfContainerFunction(j),_n=Ah.createModuleDeclaration(void 0,yn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);qa(_n,p),_n.locals=ca(pn),_n.symbol=pn[0].parent;const q=[];let Oe=Hi(pn,Ge=>{if(!$3(Ge.valueDeclaration))return;const ke=Vi(Ge.escapedName);if(!tf(ke,99))return;r=Jy(Ge.valueDeclaration);const Tt=G.createTypeOfDeclaration(Ge.valueDeclaration,_n,eT,C);r=Ye;const kt=zA(ke),en=kt?R.getGeneratedNameForNode(Ge.valueDeclaration):R.createIdentifier(ke);kt&&q.push([en,ke]);const bn=R.createVariableDeclaration(en,void 0,Tt,void 0);return R.createVariableStatement(kt?void 0:[R.createToken(95)],R.createVariableDeclarationList([bn]))});q.length?Oe.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Ot(q,([Ge,ke])=>R.createExportSpecifier(!1,Ge,ke))))):Oe=Hi(Oe,Ge=>R.replaceModifiers(Ge,0));const Lt=R.createModuleDeclaration(Ct(j),j.name,R.createModuleBlock(Oe),32);if(!hp(yn,2048))return[yn,Lt];const L=R.createModifiersFromModifierFlags(dd(yn)&-2081|128),_e=R.updateFunctionDeclaration(yn,L,void 0,yn.name,yn.typeParameters,yn.parameters,yn.type,void 0),J=R.updateModuleDeclaration(Lt,L,Lt.name,Lt.body),me=R.createExportAssignment(void 0,!1,Lt.name);return $i(j.parent)&&(s=!0),u=!0,[_e,J,me]}else return yn}case 267:{i=!1;const yn=j.body;if(yn&&yn.kind===268){const pn=l,_n=u;u=!1,l=!1;const q=Vn(yn.statements,li,qi);let Oe=tt(q);j.flags&33554432&&(l=!1),!R_(j)&&!ft(Oe)&&!u&&(l?Oe=R.createNodeArray([...Oe,Kk(R)]):Oe=Vn(Oe,hi,qi));const Lt=R.updateModuleBlock(yn,Oe);i=_t,l=pn,u=_n;const L=Ct(j);return Vt(Qi(j,L,OE(j)?Mn(j,j.name):j.name,Lt))}else{i=_t;const pn=Ct(j);i=!1,nt(yn,li);const _n=Wu(yn),q=v.get(_n);return v.delete(_n),Vt(Qi(j,pn,j.name,q))}}case 263:{O=j.name,U=j;const yn=R.createNodeArray(Ct(j)),pn=_i(j,j.typeParameters),_n=og(j);let q;if(_n){const me=r;q=C2(Pi(_n.parameters,Ge=>{if(!Zr(Ge,31)||He(Ge))return;if(r=Jy(Ge),Ge.name.kind===80)return No(R.createPropertyDeclaration(Ct(Ge),Ge.name,Ge.questionToken,rn(Ge,Ge.type),tn(Ge)),Ge);return ke(Ge.name);function ke(Tt){let kt;for(const en of Tt.elements)jc(en)||(ta(en.name)&&(kt=So(kt,ke(en.name))),kt=kt||[],kt.push(R.createPropertyDeclaration(Ct(Ge),en.name,void 0,rn(en,void 0),void 0)));return kt}})),r=me}const Lt=bt(j.members,me=>!!me.name&&Ji(me.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,L=So(So(Lt,q),Vn(j.members,Bt,$c)),_e=R.createNodeArray(L),J=D_(j);if(J&&!Gl(J.expression)&&J.expression.kind!==106){const me=j.name?Vi(j.name.escapedText):"default",Ge=R.createUniqueName(`${me}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});const ke=R.createVariableDeclaration(Ge,void 0,G.createTypeOfExpression(J.expression,j,eT,C),void 0),Tt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),kt=R.createNodeArray(Ot(j.heritageClauses,en=>{if(en.token===96){const bn=r;r=Jy(en.types[0]);const Bn=R.updateHeritageClause(en,Ot(en.types,Hn=>R.updateExpressionWithTypeArguments(Hn,Ge,Vn(Hn.typeArguments,Bt,ji))));return r=bn,Bn}return R.updateHeritageClause(en,Vn(R.createNodeArray(nr(en.types,bn=>Gl(bn.expression)||bn.expression.kind===106)),Bt,Hy))}));return[Tt,Vt(R.updateClassDeclaration(j,yn,j.name,pn,kt,_e))]}else{const me=pt(j.heritageClauses);return Vt(R.updateClassDeclaration(j,yn,j.name,pn,me,_e))}}case 243:return Vt(ma(j));case 266:return Vt(R.updateEnumDeclaration(j,R.createNodeArray(Ct(j)),j.name,R.createNodeArray(Hi(j.members,yn=>{if(He(yn))return;const pn=G.getConstantValue(yn),_n=pn===void 0?void 0:typeof pn=="string"?R.createStringLiteral(pn):pn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-pn)):R.createNumericLiteral(pn);return No(R.updateEnumMember(yn,yn.name,_n),yn)}))))}return N.assertNever(j,`Unhandled top-level node in declaration emit: ${N.formatSyntaxKind(j.kind)}`);function Vt(yn){return ao(j)&&(p=ot),Rt&&(r=Ye),j.kind===267&&(i=_t),yn===j?yn:(U=void 0,O=void 0,yn&&Cr(No(yn,j),j))}}function ma(j){if(!Xe(j.declarationList.declarations,hn))return;const ot=Vn(j.declarationList.declarations,Bt,wi);if(!Le(ot))return;const Rt=R.createNodeArray(Ct(j));let Ye;return RL(j.declarationList)||xL(j.declarationList)?(Ye=R.createVariableDeclarationList(ot,2),Cr(Ye,j.declarationList),dt(Ye,j.declarationList),oc(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,ot),R.updateVariableStatement(j,Rt,Ye)}function Wa(j){return da(Hi(j.elements,ot=>Sn(ot)))}function Sn(j){if(j.kind!==232&&j.name)return hn(j)?ta(j.name)?Wa(j.name):R.createVariableDeclaration(j.name,void 0,rn(j,void 0),void 0):void 0}function kn(j){let ot;A||(ot=r,r=Vle(j)),O=j.name,N.assert(G.isLateBound(Do(j)));const Ye=j.name.expression;Oi(Ye,p),A||(r=ot),O=void 0}function He(j){return!!ve&&!!j&&tj(j,K)}function mt(j){return kl(j)||Yl(j)}function ft(j){return bt(j,mt)}function Ct(j){const ot=dd(j),Rt=le(j);return ot===Rt?Rw(j.modifiers,Ye=>ii(Ye,Ia),Ia):R.createModifiersFromModifierFlags(Rt)}function le(j){let ot=130030,Rt=i&&!kUe(j)?128:0;const Ye=j.parent.kind===312;return(!Ye||o&&Ye&&ac(j.parent))&&(ot^=128,Rt=0),Txe(j,ot,Rt)}function Fe(j,ot){let Rt=Ule(j);return!Rt&&j!==ot.firstAccessor&&(Rt=Ule(ot.firstAccessor),r=Jy(ot.firstAccessor)),!Rt&&ot.secondAccessor&&j!==ot.secondAccessor&&(Rt=Ule(ot.secondAccessor),r=Jy(ot.secondAccessor)),Rt}function pt(j){return R.createNodeArray(nr(Ot(j,ot=>R.updateHeritageClause(ot,Vn(R.createNodeArray(nr(ot.types,Rt=>Gl(Rt.expression)||ot.token===96&&Rt.expression.kind===106)),Bt,Hy))),ot=>ot.types&&!!ot.types.length))}}function kUe(e){return e.kind===264}function wUe(e,t,r,i){return e.createModifiersFromModifierFlags(Txe(t,r,i))}function Txe(e,t=131070,r=0){let i=dd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Ule(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function OUe(e){switch(e.kind){case 172:case 171:return!hp(e,2);case 169:case 260:return!0}return!1}function WUe(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 FUe(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 eT,zUe=T({"src/compiler/transformers/declarations.ts"(){ra(),Xse(),eT=531469}});function BUe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return rJ;case 4:return Ble;case 100:case 199:return Gle;default:return nJ}}function oJ(e,t,r){return{scriptTransformers:GUe(e,t,r),declarationTransformers:VUe(t)}}function GUe(e,t,r){if(r)return et;const i=os(e),o=wu(e),s=uP(e),l=[];return qr(l,t&&Ot(t.before,Ixe)),l.push(Ele),e.experimentalDecorators&&l.push(Ale),w3(e)&&l.push(wle),i<99&&l.push(Ple),!e.experimentalDecorators&&(i<99||!s)&&l.push(Ile),l.push(Sle),i<8&&l.push(Cle),i<7&&l.push(Nle),i<6&&l.push(Dle),i<5&&l.push(Rle),i<4&&l.push(xle),i<3&&l.push(Ole),i<2&&(l.push(Wle),l.push(zle)),l.push(BUe(o)),i<1&&l.push(Fle),qr(l,t&&Ot(t.after,Ixe)),l}function VUe(e){const t=[];return t.push(iJ),qr(t,e&&Ot(e.afterDeclarations,UUe)),t}function jUe(e){return t=>SH(t)?e.transformBundle(t):e.transformSourceFile(t)}function Axe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):jUe(i)}}function Ixe(e){return Axe(e,Pm)}function UUe(e){return Axe(e,(t,r)=>r)}function HP(e,t){return t}function Cw(e,t,r){r(e,t)}function Pw(e,t,r,i,o,s,l){var u,p;const h=new Array(363);let m,v,A,I=0,R=[],M=[],C=[],O=[],U=0,K=!1,Z=[],V=0,se,G,ne=HP,he=Cw,ve=0;const $=[],Y={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Sd(()=>cae(Y)),startLexicalEnvironment:Se,suspendLexicalEnvironment:je,resumeLexicalEnvironment:at,endLexicalEnvironment:Gt,setLexicalEnvironmentFlags:yt,getLexicalEnvironmentFlags:$e,hoistVariableDeclaration:Pe,hoistFunctionDeclaration:We,addInitializationStatement:At,startBlockScope:It,endBlockScope:tn,addBlockScopedVariable:rn,requestEmitHelper:Pn,readEmitHelpers:Xn,enableSubstitution:ie,enableEmitNotification:Ue,isSubstitutionEnabled:ye,isEmitNotificationEnabled:Ee,get onSubstituteNode(){return ne},set onSubstituteNode(Qt){N.assert(ve<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),ne=Qt},get onEmitNode(){return he},set onEmitNode(Qt){N.assert(ve<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(Qt!==void 0,"Value must not be 'undefined'"),he=Qt},addDiagnostic(Qt){$.push(Qt)}};for(const Qt of o)iH(jn(Do(Qt)));il("beforeTransform");const oe=s.map(Qt=>Qt(Y)),fe=Qt=>{for(const $t of oe)Qt=$t(Qt);return Qt};ve=1;const Ne=[];for(const Qt of o)(u=sr)==null||u.push(sr.Phase.Emit,"transformNodes",Qt.kind===312?{path:Qt.path}:{kind:Qt.kind,pos:Qt.pos,end:Qt.end}),Ne.push((l?fe:pe)(Qt)),(p=sr)==null||p.pop();return ve=2,il("afterTransform"),ef("transformTime","beforeTransform","afterTransform"),{transformed:Ne,substituteNode:Me,emitNodeWithNotification:De,isEmitNotificationEnabled:Ee,dispose:hn,diagnostics:$};function pe(Qt){return Qt&&(!$i(Qt)||!Qt.isDeclarationFile)?fe(Qt):Qt}function ie(Qt){N.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=1}function ye(Qt){return(h[Qt.kind]&1)!==0&&(ja(Qt)&8)===0}function Me(Qt,$t){return N.assert(ve<3,"Cannot substitute a node after the result is disposed."),$t&&ye($t)&&ne(Qt,$t)||$t}function Ue(Qt){N.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),h[Qt]|=2}function Ee(Qt){return(h[Qt.kind]&2)!==0||(ja(Qt)&4)!==0}function De(Qt,$t,_i){N.assert(ve<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),$t&&(Ee($t)?he(Qt,$t,_i):_i(Qt,$t))}function Pe(Qt){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed.");const $t=pr(r.createVariableDeclaration(Qt),128);m?m.push($t):m=[$t],I&1&&(I|=2)}function We(Qt){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),pr(Qt,2097152),v?v.push(Qt):v=[Qt]}function At(Qt){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),pr(Qt,2097152),A?A.push(Qt):A=[Qt]}function Se(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended."),R[U]=m,M[U]=v,C[U]=A,O[U]=I,U++,m=void 0,v=void 0,A=void 0,I=0}function je(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is already suspended."),K=!0}function at(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(K,"Lexical environment is not suspended."),K=!1}function Gt(){N.assert(ve>0,"Cannot modify the lexical environment during initialization."),N.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!K,"Lexical environment is suspended.");let Qt;if(m||v||A){if(v&&(Qt=[...v]),m){const $t=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));pr($t,2097152),Qt?Qt.push($t):Qt=[$t]}A&&(Qt?Qt=[...Qt,...A]:Qt=[...A])}return U--,m=R[U],v=M[U],A=C[U],I=O[U],U===0&&(R=[],M=[],C=[],O=[]),Qt}function yt(Qt,$t){I=$t?I|Qt:I&~Qt}function $e(){return I}function It(){N.assert(ve>0,"Cannot start a block scope during initialization."),N.assert(ve<2,"Cannot start a block scope after transformation has completed."),Z[V]=se,V++,se=void 0}function tn(){N.assert(ve>0,"Cannot end a block scope during initialization."),N.assert(ve<2,"Cannot end a block scope after transformation has completed.");const Qt=bt(se)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(se.map($t=>r.createVariableDeclaration($t)),1))]:void 0;return V--,se=Z[V],V===0&&(Z=[]),Qt}function rn(Qt){N.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(se||(se=[])).push(Qt)}function Pn(Qt){if(N.assert(ve>0,"Cannot modify the transformation context during initialization."),N.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),N.assert(!Qt.scoped,"Cannot request a scoped emit helper."),Qt.dependencies)for(const $t of Qt.dependencies)Pn($t);G=xn(G,Qt)}function Xn(){N.assert(ve>0,"Cannot modify the transformation context during initialization."),N.assert(ve<2,"Cannot modify the transformation context after transformation has completed.");const Qt=G;return G=void 0,Qt}function hn(){if(ve<3){for(const Qt of o)iH(jn(Do(Qt)));m=void 0,R=void 0,v=void 0,M=void 0,ne=void 0,he=void 0,G=void 0,ve=3}}}var aJ,qP,HUe=T({"src/compiler/transformer.ts"(){ra(),dS(),aJ={scriptTransformers:et,declarationTransformers:et},qP={factory:w,getCompilerOptions:()=>({}),getEmitResolver:Ko,getEmitHost:Ko,getEmitHelperFactory:Ko,startLexicalEnvironment:$a,resumeLexicalEnvironment:$a,suspendLexicalEnvironment:$a,endLexicalEnvironment:n0,setLexicalEnvironmentFlags:$a,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:$a,hoistFunctionDeclaration:$a,addInitializationStatement:$a,startBlockScope:$a,endBlockScope:n0,addBlockScopedVariable:$a,requestEmitHelper:$a,readEmitHelpers:Ko,enableSubstitution:$a,enableEmitNotification:$a,isSubstitutionEnabled:Ko,isEmitNotificationEnabled:Ko,onSubstituteNode:HP,onEmitNode:Cw,addDiagnostic:$a}}});function Hle(e){return Il(e,".tsbuildinfo")}function sJ(e,t,r,i=!1,o,s){const l=To(r)?r:eU(e,r,i),u=e.getCompilerOptions();if(Ps(u)){const p=e.getPrependNodes();if(l.length||p.length){const h=w.createBundle(l,p),m=t(KP(h,e,i),h);if(m)return m}}else{if(!o)for(const p of l){const h=t(KP(p,e,i),p);if(h)return h}if(s){const p=Ky(u);if(p)return t({buildInfoPath:p},void 0)}}}function Ky(e){const t=e.configFilePath;if(!cP(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Ps(e);let i;if(r)i=Ad(r);else{if(!t)return;const o=Ad(t);i=e.outDir?e.rootDir?Pv(e.outDir,Em(e.rootDir,o,!0)):Qr(e.outDir,rc(o)):o}return i+".tsbuildinfo"}function JP(e,t){const r=Ps(e),i=e.emitDeclarationOnly?void 0:r,o=i&&xxe(i,e),s=t||Nf(e)?Ad(r)+".d.ts":void 0,l=s&&Ak(e)?s+".map":void 0,u=Ky(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function KP(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return JP(i,r);{const o=wie(e.fileName,t,t7(e.fileName,i)),s=Qf(e),l=s&&Cg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||Qf(e)?void 0:xxe(u,i),h=r||Nf(i)&&!s?Oie(e.fileName,t):void 0,m=h&&Ak(i)?h+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function xxe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function t7(e,t){return Il(e,".json")?".json":t.jsx===1&&Tc(e,[".jsx",".tsx"])?".jsx":Tc(e,[".mts",".mjs"])?".mjs":Tc(e,[".cts",".cjs"])?".cjs":".js"}function Rxe(e,t,r,i){return r?Pv(r,Em(i(),e,t)):e}function XP(e,t,r,i=()=>mD(t,r)){return lJ(e,t.options,r,i)}function lJ(e,t,r,i){return E0(Rxe(e,r,t.declarationDir||t.outDir,i),m3(e))}function Dxe(e,t,r,i=()=>mD(t,r)){if(t.options.emitDeclarationOnly)return;const o=Il(e,".json"),s=cJ(e,t.options,r,i);return!o||Cg(e,s,N.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function cJ(e,t,r,i){return E0(Rxe(e,r,t.outDir,i),t7(e,t))}function Nxe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function Cxe(e,t){const{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 Pxe(e,t,r,i,o){if(Su(t))return;const s=Dxe(t,e,r,o);if(i(s),!Il(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Nf(e.options))){const 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=go(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=ai(Lu(e.configFilePath)),o?.(s)):s=$le(t(),r,i),s&&s[s.length-1]!==al&&(s+=al),s}function mD({options:e,fileNames:t},r){return YP(e,()=>nr(t,i=>!(e.noEmitForJsFiles&&Tc(i,GR))&&!Su(i)),ai(Lu(N.checkDefined(e.configFilePath))),Mu(!r))}function n7(e,t){const{addOutput:r,getOutputs:i}=Nxe();if(Ps(e.options))Cxe(e,r);else{const o=Sd(()=>mD(e,t));for(const s of e.fileNames)Pxe(e,s,t,r,o);r(Ky(e.options))}return i()}function Mxe(e,t,r){t=ga(t),N.assert(Nr(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=Nxe();return Ps(e.options)?Cxe(e,i):Pxe(e,t,r,i),o()}function uJ(e,t){if(Ps(e.options)){const{jsFilePath:o,declarationFilePath:s}=JP(e.options,!1);return N.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Sd(()=>mD(e,t));for(const o of e.fileNames){if(Su(o))continue;const s=Dxe(o,e,t,r);if(s)return s;if(!Il(o,".json")&&Nf(e.options))return XP(o,e,t,r)}const i=Ky(e.options);return i||N.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function r7(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||Ak(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,v=xR(),A=Gy(p),I=ok(A),{enter:R,exit:M}=gG("printTime","beforePrint","afterPrint"),C,O=!1;return R(),sJ(t,U,eU(t,r,u),u,l,!r),M(),{emitSkipped:O,diagnostics:v.getDiagnostics(),emittedFiles:m,sourceMaps:h};function U({jsFilePath:Y,sourceMapFilePath:oe,declarationFilePath:fe,declarationMapPath:Ne,buildInfoPath:pe},ie){var ye,Me,Ue,Ee,De,Pe;let We;pe&&ie&&SH(ie)&&(We=ai(go(pe,t.getCurrentDirectory())),C={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(Se=>At(go(Se.fileName,t.getCurrentDirectory())))}),(ye=sr)==null||ye.push(sr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Y}),Z(ie,Y,oe,At),(Me=sr)==null||Me.pop(),(Ue=sr)==null||Ue.push(sr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:fe}),V(ie,fe,Ne,At),(Ee=sr)==null||Ee.pop(),(De=sr)==null||De.push(sr.Phase.Emit,"emitBuildInfo",{buildInfoPath:pe}),K(C,pe),(Pe=sr)==null||Pe.pop();function At(Se){return NE(Em(We,Se,t.getCanonicalFileName))}}function K(Y,oe){if(!oe||r||O)return;if(t.isEmitBlocked(oe)){O=!0;return}const fe=t.getBuildInfo(Y)||Mw(void 0,Y);wC(t,v,oe,qle(fe),!1,void 0,{buildInfo:fe}),m?.push(oe)}function Z(Y,oe,fe,Ne){if(!Y||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){O=!0;return}const pe=Pw(e,t,w,p,[Y],i,!1),ie={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:!!C,relativeToBuildInfo:Ne},ye=L0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:pe.emitNodeWithNotification,isEmitNotificationEnabled:pe.isEmitNotificationEnabled,substituteNode:pe.substituteNode});N.assert(pe.transformed.length===1,"Should only see one output from the transform"),G(oe,fe,pe,ye,p),pe.dispose(),C&&(C.js=ye.bundleFileInfo),m&&(m.push(oe),fe&&m.push(fe))}function V(Y,oe,fe,Ne){if(!Y||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(O=!0);return}const pe=$i(Y)?[Y]:Y.sourceFiles,ie=u?pe:nr(pe,Rj),ye=Ps(p)?[w.createBundle(ie,$i(Y)?void 0:Y.prepends)]:ie;s&&!Nf(p)&&ie.forEach(se);const Me=Pw(e,t,w,p,ye,o,!1);if(Le(Me.diagnostics))for(const Ee of Me.diagnostics)v.add(Ee);const Ue=!!Me.diagnostics&&!!Me.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(O=O||Ue,!Ue||u){N.assert(Me.transformed.length===1,"Should only see one output from the decl transform");const Ee={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!C,recordInternalSection:!!C,relativeToBuildInfo:Ne},De=L0(Ee,{hasGlobalName:e.hasGlobalName,onEmitNode:Me.emitNodeWithNotification,isEmitNotificationEnabled:Me.isEmitNotificationEnabled,substituteNode:Me.substituteNode});G(oe,fe,Me,De,{sourceMap:Ee.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(oe),fe&&m.push(fe)),C&&(C.dts=De.bundleFileInfo)}Me.dispose()}function se(Y){if(kl(Y)){Y.expression.kind===80&&e.collectLinkedAliases(Y.expression,!0);return}else if(Ku(Y)){e.collectLinkedAliases(Y.propertyName||Y.name,!0);return}Ho(Y,se)}function G(Y,oe,fe,Ne,pe){const ie=fe.transformed[0],ye=ie.kind===313?ie:void 0,Me=ie.kind===312?ie:void 0,Ue=ye?ye.sourceFiles:[Me];let Ee;ne(pe,ie)&&(Ee=nle(t,rc(Lu(Y)),he(pe),ve(pe,Y,Me),pe)),ye?Ne.writeBundle(ye,I,Ee):Ne.writeFile(Me,I,Ee);let De;if(Ee){h&&h.push({inputSourceFileNames:Ee.getSources(),sourceMap:Ee.toJSON()});const We=$(pe,Ee,Y,oe,Me);if(We&&(I.isAtStartOfLine()||I.rawWrite(A),De=I.getTextPos(),I.writeComment(`//# sourceMappingURL=${We}`)),oe){const At=Ee.toString();wC(t,v,oe,At,!1,Ue),Ne.bundleFileInfo&&(Ne.bundleFileInfo.mapHash=nT(At,t))}}else I.writeLine();const Pe=I.getText();wC(t,v,Y,Pe,!!p.emitBOM,Ue,{sourceMapUrlPos:De,diagnostics:fe.diagnostics}),Ne.bundleFileInfo&&(Ne.bundleFileInfo.hash=nT(Pe,t)),I.clear()}function ne(Y,oe){return(Y.sourceMap||Y.inlineSourceMap)&&(oe.kind!==312||!Il(oe.fileName,".json"))}function he(Y){const oe=Lu(Y.sourceRoot||"");return oe&&Bc(oe)}function ve(Y,oe,fe){if(Y.sourceRoot)return t.getCommonSourceDirectory();if(Y.mapRoot){let Ne=Lu(Y.mapRoot);return fe&&(Ne=ai(h3(fe.fileName,t,Ne))),dh(Ne)===0&&(Ne=Qr(t.getCommonSourceDirectory(),Ne)),Ne}return ai(ga(oe))}function $(Y,oe,fe,Ne,pe){if(Y.inlineSourceMap){const ye=oe.toString();return`data:application/json;base64,${noe(gu,ye)}`}const ie=rc(Lu(N.checkDefined(Ne)));if(Y.mapRoot){let ye=Lu(Y.mapRoot);return pe&&(ye=ai(h3(pe.fileName,t,ye))),dh(ye)===0?(ye=Qr(t.getCommonSourceDirectory(),ye),encodeURI(IA(ai(ga(fe)),Qr(ye,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Qr(ye,ie))}return encodeURI(ie)}}function Mw(e,t){return{bundle:t,program:e,version:Re}}function qle(e){return JSON.stringify(e)}function i7(e,t){return uU(e,t)}function qUe(e,t,r){var i;const o=N.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&DE(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{const p=s?.get(u),h=p?.directives.map(A=>{const I=dt(w.createStringLiteral(A.expression.text),A.expression),R=dt(w.createExpressionStatement(I),A);return qa(I,R),R}),m=w.createToken(1),v=w.createSourceFile(h??[],m,0);return v.fileName=Em(r.getCurrentDirectory(),go(l,t),!r.useCaseSensitiveFileNames()),v.text=p?.text??"",tP(v,0,p?.text.length??0),FR(v.statements,v),tP(m,v.end,0),qa(m,v),v})}function Jle(e,t,r,i){var o,s;(o=sr)==null||o.push(sr.Phase.Emit,"emitUsingBuildInfo",{},!0),il("beforeEmit");const l=JUe(e,t,r,i);return il("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(s=sr)==null||s.pop(),l}function JUe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=JP(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||u&&!h.bundle.dts)return o;const m=t.readFile(N.checkDefined(s));if(!m||nT(m,t)!==h.bundle.js.hash)return s;const v=l&&t.readFile(l);if(l&&!v||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&nT(v,t)!==h.bundle.js.mapHash)return l;const A=u&&t.readFile(u);if(u&&!A||u&&nT(A,t)!==h.bundle.dts.hash)return u;const I=p&&t.readFile(p);if(p&&!I||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&nT(I,t)!==h.bundle.dts.mapHash)return p;const R=ai(go(o,t.getCurrentDirectory())),M=nH(s,m,l,v,u,A,p,I,o,h,!0),C=[],O=LJ(e.projectReferences,r,se=>t.readFile(se),t),U=qUe(h.bundle,R,t);let K,Z;const V={getPrependNodes:Sd(()=>[...O,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>go(h.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:n0,getSourceFileByPath:n0,getSourceFiles:()=>U,getLibFileFromReference:Ko,isSourceFileFromExternalLibrary:Xm,getResolvedProjectReferenceToRedirect:n0,getProjectReferenceRedirect:n0,isSourceOfProjectReferenceRedirect:Xm,writeFile:(se,G,ne,he,ve,$)=>{switch(se){case s:if(m===G)return;break;case l:if(v===G)return;break;case o:break;case u:if(A===G)return;K=G,Z=$;break;case p:if(I===G)return;break;default:N.fail(`Unexpected path: ${se}`)}C.push({name:se,text:G,writeByteOrderMark:ne,data:$})},isEmitBlocked:Xm,readFile:se=>t.readFile(se),fileExists:se=>t.fileExists(se),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:se=>{const G=h.program;G&&K!==void 0&&e.options.composite&&(G.outSignature=nT(K,t,Z));const{js:ne,dts:he,sourceFiles:ve}=h.bundle;return se.js.sources=ne.sources,he&&(se.dts.sources=he.sources),se.sourceFiles=ve,Mw(G,se)},getSourceFileFromReference:n0,redirectTargetsMap:Zp(),getFileIncludeReasons:Ko,createHash:ia(t,t.createHash)};return r7(o7,V,void 0,oJ(e.options,i)),C}function L0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Cw,isEmitNotificationEnabled:o,substituteNode:s=HP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:v}=t,A=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=Gy(e),M=wu(e),C=new Map,O,U,K,Z,V,se,G,ne,he,ve,$,Y,oe,fe,Ne,pe=e.preserveSourceNewlines,ie,ye,Me,Ue=IT,Ee,De=e.writeBundleFileInfo?{sections:[]}:void 0,Pe=De?N.checkDefined(e.relativeToBuildInfo):void 0,We=e.recordInternalSection,At=0,Se="text",je=!0,at,Gt,yt=-1,$e,It=-1,tn=-1,rn=-1,Pn=-1,Xn,hn,Qt=!1,$t=!!e.removeComments,_i,ao,{enter:Oi,exit:No}=d1e(A,"commentTime","beforeComment","afterComment"),Mn=w.parenthesizer,Di={select:D=>D===0?Mn.parenthesizeLeadingTypeArgument:void 0},Ar=Xg();return ot(),{printNode:sn,printList:tt,printFile:Rn,printBundle:Bt,writeNode:hi,writeList:Qi,writeFile:ft,writeBundle:He,bundleFileInfo:De};function sn(D,ae,ht){switch(D){case 0:N.assert($i(ae),"Expected a SourceFile node.");break;case 2:N.assert(Ve(ae),"Expected an Identifier node.");break;case 1:N.assert(vt(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return Rn(ae);case 313:return Bt(ae);case 314:return li(ae)}return hi(D,ae,ht,Ct()),le()}function tt(D,ae,ht){return Qi(D,ae,ht,Ct()),le()}function Bt(D){return He(D,Ct(),void 0),le()}function Rn(D){return ft(D,Ct(),void 0),le()}function li(D){return mt(D,Ct()),le()}function hi(D,ae,ht,on){const wr=ye;j(on,void 0),Fe(D,ae,ht),ot(),ye=wr}function Qi(D,ae,ht,on){const wr=ye;j(on,void 0),ht&&pt(ht),Zs(void 0,ae,D),ot(),ye=wr}function Io(){return ye.getTextPosWithWriteLine?ye.getTextPosWithWriteLine():ye.getTextPos()}function ma(D,ae,ht){const on=tl(De.sections);on&&on.kind===ht?on.end=ae:De.sections.push({pos:D,end:ae,kind:ht})}function Wa(D){if(We&&De&&O&&(Ju(D)||Ll(D))&&tj(D,O)&&Se!=="internal"){const ae=Se;return kn(ye.getTextPos()),At=Io(),Se="internal",ae}}function Sn(D){D&&(kn(ye.getTextPos()),At=Io(),Se=D)}function kn(D){return AtN.assert(doe(ya))),De.sections.push({pos:ki,end:ye.getTextPos(),kind:"prepend",data:Pe(wr.fileName),texts:no}))}}At=Io();for(const wr of D.sourceFiles)Fe(0,wr,wr);if(De&&D.sourceFiles.length){const wr=ye.getTextPos();if(kn(wr)){const ki=MM(D);ki&&(De.sources||(De.sources={}),De.sources.prologues=ki);const gi=kt(D);gi&&(De.sources||(De.sources={}),De.sources.helpers=gi)}}ot(),ye=on}function mt(D,ae){const ht=ye;j(ae,void 0),Fe(4,D,void 0),ot(),ye=ht}function ft(D,ae,ht){Ee=!0;const on=ye;j(ae,ht),gb(D),ty(D),Fe(0,D,D),ot(),ye=on}function Ct(){return Me||(Me=ok(R))}function le(){const D=Me.getText();return Me.clear(),D}function Fe(D,ae,ht){ht&&pt(ht),q(D,ae,void 0)}function pt(D){O=D,Xn=void 0,hn=void 0,D&&ay(D)}function j(D,ae){D&&e.omitTrailingSemicolon&&(D=Qj(D)),ye=D,at=ae,je=!ye||!at}function ot(){U=[],K=[],Z=[],V=new Set,se=[],G=new Map,ne=[],he=0,ve=[],$=0,Y=[],oe=void 0,fe=[],Ne=void 0,O=void 0,Xn=void 0,hn=void 0,j(void 0,void 0)}function Rt(){return Xn||(Xn=Pg(N.checkDefined(O)))}function Ye(D,ae){if(D===void 0)return;const ht=Wa(D);q(4,D,ae),Sn(ht)}function _t(D){D!==void 0&&q(2,D,void 0)}function Vt(D,ae){D!==void 0&&q(1,D,ae)}function yn(D){q(Ma(D)?6:4,D)}function pn(D){pe&&Am(D)&4&&(pe=!1)}function _n(D){pe=D}function q(D,ae,ht){ao=ht,L(0,D,ae)(D,ae),ao=void 0}function Oe(D){return!$t&&!$i(D)}function Lt(D){return!je&&!$i(D)&&!Q4(D)&&!qS(D)&&!Dae(D)}function L(D,ae,ht){switch(D){case 0:if(i!==Cw&&(!o||o(ht)))return J;case 1:if(s!==HP&&(_i=s(ae,ht)||ht)!==ht)return ao&&(_i=ao(_i)),Tt;case 2:if(Oe(ht))return dN;case 3:if(Lt(ht))return tE;case 4:return me;default:return N.assertNever(D)}}function _e(D,ae,ht){return L(D+1,ae,ht)}function J(D,ae){const ht=_e(0,D,ae);i(D,ae,ht)}function me(D,ae){if(l?.(ae),pe){const ht=pe;pn(ae),Ge(D,ae),_n(ht)}else Ge(D,ae);u?.(ae),ao=void 0}function Ge(D,ae,ht=!0){if(ht){const on=oH(ae);if(on)return yo(D,ae,on)}if(D===0)return nx(oa(ae,$i));if(D===2)return Jr(oa(ae,Ve));if(D===6)return Hn(oa(ae,Ma),!0);if(D===3)return ke(oa(ae,gl));if(D===7)return XI(oa(ae,pI));if(D===5)return N.assertNode(ae,vH),io(!0);if(D===4){switch(ae.kind){case 16:case 17:case 18:return Hn(ae,!1);case 80:return Jr(ae);case 81:return xo(ae);case 166:return Dn(ae);case 167:return Ql(ae);case 168:return Lo(ae);case 169:return cs(ae);case 170:return Vs(ae);case 171:return yl(ae);case 172:return uu(ae);case 173:return ho(ae);case 174:return pa(ae);case 175:return du(ae);case 176:return As(ae);case 177:case 178:return La(ae);case 179:return _l(ae);case 180:return wf(ae);case 181:return sc(ae);case 182:return ko(ae);case 183:return nn(ae);case 184:return js(ae);case 185:return Rc(ae);case 186:return de(ae);case 187:return ee(ae);case 188:return we(ae);case 189:return un(ae);case 190:return yr(ae);case 192:return jr(ae);case 193:return xi(ae);case 194:return Mr(ae);case 195:return $o(ae);case 196:return Tl(ae);case 233:return zt(ae);case 197:return Hc();case 198:return Us(ae);case 199:return gc(ae);case 200:return Ss(ae);case 201:return qc(ae);case 202:return Er(ae);case 203:return op(ae);case 204:return Nl(ae);case 205:return Wc(ae);case 206:return cm(ae);case 207:return hd(ae);case 208:return Ce(ae);case 239:return Jt(ae);case 240:return ul();case 241:return rr(ae);case 243:return $r(ae);case 242:return io(!1);case 244:return Fa(ae);case 245:return za(ae);case 246:return fu(ae);case 247:return Dc(ae);case 248:return xp(ae);case 249:return Hd(ae);case 250:return pb(ae);case 251:return km(ae);case 252:return wm(ae);case 253:return x1(ae);case 254:return mf(ae);case 255:return H_(ae);case 256:return _f(ae);case 257:return $g(ae);case 258:return ze(ae);case 259:return Ze(ae);case 260:return Mt(ae);case 261:return Ut(ae);case 262:return vn(ae);case 263:return Zo(ae);case 264:return Zu(ae);case 265:return mu(ae);case 266:return Qg(ae);case 267:return V0(ae);case 268:return HI(ae);case 269:return j0(ae);case 270:return $I(ae);case 271:return $D(ae);case 272:return ZD(ae);case 273:return mT(ae);case 274:return R1(ae);case 280:return D1(ae);case 275:return qI(ae);case 276:return eN(ae);case 277:return JI(ae);case 278:return KI(ae);case 279:return N1(ae);case 281:return fb(ae);case 300:return YI(ae);case 301:return _T(ae);case 282:return;case 283:return U0(ae);case 12:return Zg(ae);case 286:case 289:return H0(ae);case 287:case 290:return Ch(ae);case 291:return qd(ae);case 292:return Wf(ae);case 293:return Rp(ae);case 294:return nN(ae);case 295:return QI(ae);case 296:return q0(ae);case 297:return ZI(ae);case 298:return ov(ae);case 299:return ex(ae);case 303:return a_(ae);case 304:return yT(ae);case 305:return qe(ae);case 306:return s_(ae);case 307:return Ai(ae);case 314:case 308:return Ni(ae);case 309:case 310:return ir(ae);case 311:return Vr(ae);case 312:return nx(ae);case 313:return N.fail("Bundles should be printed using printBundle");case 315:return N.fail("InputFiles should not be printed");case 316:return ey(ae);case 317:return hb(ae);case 319:return hr("*");case 320:return hr("?");case 321:return pu(ae);case 322:return Ap(ae);case 323:return Ms(ae);case 324:return nu(ae);case 191:case 325:return Et(ae);case 326:return;case 327:return _u(ae);case 329:return bT(ae);case 330:return K0(ae);case 334:case 339:case 344:return vT(ae);case 335:case 336:return av(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Xa(ae);case 346:return l_(ae);case 348:case 355:return ET(ae);case 347:case 349:case 350:case 351:case 356:case 357:return J0(ae);case 352:return sv(ae);case 353:return CM(ae);case 354:return tx(ae);case 359:return}if(vt(ae)&&(D=1,s!==HP)){const on=s(D,ae)||ae;on!==ae&&(ae=on,ao&&(ae=ao(ae)))}}if(D===1)switch(ae.kind){case 9:case 10:return Bn(ae);case 11:case 14:case 15:return Hn(ae,!1);case 80:return Jr(ae);case 81:return xo(ae);case 209:return Wt(ae);case 210:return Jn(ae);case 211:return vo(ae);case 212:return na(ae);case 213:return Zl(ae);case 214:return yc(ae);case 215:return dl(ae);case 216:return vl(ae);case 217:return Vl(ae);case 218:return ec(ae);case 219:return Jc(ae);case 220:return jd(ae);case 221:return Nd(ae);case 222:return Of(ae);case 223:return U_(ae);case 224:return Nh(ae);case 225:return Bu(ae);case 226:return Ar(ae);case 227:return Ip(ae);case 228:return mg(ae);case 229:return Ud(ae);case 230:return te(ae);case 231:return ct(ae);case 232:return;case 234:return jt(ae);case 235:return F(ae);case 233:return zt(ae);case 238:return Te(ae);case 236:return st(ae);case 237:return N.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return ts(ae);case 285:return hT(ae);case 288:return tN(ae);case 358:return N.fail("SyntaxList should not be printed");case 359:return;case 360:return ei(ae);case 361:return Ph(ae);case 362:return N.fail("SyntheticReferenceExpression should not be printed")}if(Bd(ae.kind))return k1(ae,to);if(VV(ae.kind))return k1(ae,hr);N.fail(`Unhandled SyntaxKind: ${N.formatSyntaxKind(ae.kind)}.`)}function ke(D){Ye(D.name),ur(),to("in"),ur(),Ye(D.constraint)}function Tt(D,ae){const ht=_e(1,D,ae);N.assertIsDefined(_i),ae=_i,_i=void 0,ht(D,ae)}function kt(D){let ae;if(M===0||e.noEmitHelpers)return;const ht=new Map;for(const on of D.sourceFiles){const wr=$k(on)!==void 0,ki=bn(on);if(ki)for(const gi of ki)!gi.scoped&&!wr&&!ht.get(gi.name)&&(ht.set(gi.name,!0),(ae||(ae=[])).push(gi.name))}return ae}function en(D){let ae=!1;const ht=D.kind===313?D:void 0;if(ht&&M===0)return;const on=ht?ht.prepends.length:0,wr=ht?ht.sourceFiles.length+on:1;for(let ki=0;ki"),ur(),Ye(D.type),sp(D)}function nu(D){to("function"),lv(D,D.parameters),hr(":"),Ye(D.type)}function pu(D){hr("?"),Ye(D.type)}function Ap(D){hr("!"),Ye(D.type)}function Ms(D){Ye(D.type),hr("=")}function Rc(D){Au(D),hg(D,D.modifiers),to("new"),ur(),q_(D,D.typeParameters),lv(D,D.parameters),ur(),hr("=>"),ur(),Ye(D.type),sp(D)}function de(D){to("typeof"),ur(),Ye(D.exprName),yg(D,D.typeArguments)}function ee(D){Ff(0,void 0),hr("{");const ae=ja(D)&1?768:32897;Zs(D,D.members,ae|524288),hr("}"),Sb()}function we(D){Ye(D.elementType,Mn.parenthesizeNonArrayTypeOfPostfixType),hr("["),hr("]")}function Et(D){hr("..."),Ye(D.type)}function un(D){Ui(23,D.pos,hr,D);const ae=ja(D)&1?528:657;Zs(D,D.elements,ae|524288,Mn.parenthesizeElementTypeOfTupleType),Ui(24,D.elements.end,hr,D)}function Er(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Ui(59,D.name.end,hr,D),ur(),Ye(D.type)}function yr(D){Ye(D.type,Mn.parenthesizeTypeOfOptionalType),hr("?")}function jr(D){Zs(D,D.types,516,Mn.parenthesizeConstituentTypeOfUnionType)}function xi(D){Zs(D,D.types,520,Mn.parenthesizeConstituentTypeOfIntersectionType)}function Mr(D){Ye(D.checkType,Mn.parenthesizeCheckTypeOfConditionalType),ur(),to("extends"),ur(),Ye(D.extendsType,Mn.parenthesizeExtendsTypeOfConditionalType),ur(),hr("?"),ur(),Ye(D.trueType),ur(),hr(":"),ur(),Ye(D.falseType)}function $o(D){to("infer"),ur(),Ye(D.typeParameter)}function Tl(D){hr("("),Ye(D.type),hr(")")}function Hc(){to("this")}function Us(D){bb(D.operator,to),ur();const ae=D.operator===148?Mn.parenthesizeOperandOfReadonlyTypeOperator:Mn.parenthesizeOperandOfTypeOperator;Ye(D.type,ae)}function gc(D){Ye(D.objectType,Mn.parenthesizeNonArrayTypeOfPostfixType),hr("["),Ye(D.indexType),hr("]")}function Ss(D){const ae=ja(D);hr("{"),ae&1?ur():(Kc(),Mh()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&to("readonly"),ur()),hr("["),q(3,D.typeParameter),D.nameType&&(ur(),to("as"),ur(),Ye(D.nameType)),hr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&hr("?")),hr(":"),ur(),Ye(D.type),ru(),ae&1?ur():(Kc(),zm()),Zs(D,D.members,2),hr("}")}function qc(D){Vt(D.literal)}function op(D){Ye(D.head),Zs(D,D.templateSpans,262144)}function Wc(D){D.isTypeOf&&(to("typeof"),ur()),to("import"),hr("("),Ye(D.argument),D.attributes&&(hr(","),ur(),q(7,D.attributes)),hr(")"),D.qualifier&&(hr("."),Ye(D.qualifier)),yg(D,D.typeArguments)}function cm(D){hr("{"),Zs(D,D.elements,525136),hr("}")}function hd(D){hr("["),Zs(D,D.elements,524880),hr("]")}function Ce(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),hr(":"),ur()),Ye(D.name),yb(D.initializer,D.name.end,D,Mn.parenthesizeExpressionForDisallowedComma)}function Wt(D){const ae=D.elements,ht=D.multiLine?65536:0;M1(D,ae,8914|ht,Mn.parenthesizeExpressionForDisallowedComma)}function Jn(D){Ff(0,void 0),Xe(D.properties,ox);const ae=ja(D)&131072;ae&&Mh();const ht=D.multiLine?65536:0,on=O&&O.languageVersion>=1&&!Qf(O)?64:0;Zs(D,D.properties,526226|on|ht),ae&&zm(),Sb()}function vo(D){Vt(D.expression,Mn.parenthesizeLeftSideOfAccess);const ae=D.questionDotToken||gh(w.createToken(25),D.expression.end,D.name.pos),ht=Hp(D,D.expression,ae),on=Hp(D,ae,D.name);Bm(ht,!1),ae.kind!==29&&Qo(D.expression)&&!ye.hasTrailingComment()&&!ye.hasTrailingWhitespace()&&hr("."),D.questionDotToken?Ye(ae):Ui(ae.kind,D.expression.end,hr,D),Bm(on,!1),Ye(D.name),Y0(ht,on)}function Qo(D){if(D=Tm(D),gp(D)){const ae=CT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!ae.includes(fa(25))&&!ae.includes("E")&&!ae.includes("e")}else if(ws(D)){const ae=nae(D);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}function na(D){Vt(D.expression,Mn.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Ui(23,D.expression.end,hr,D),Vt(D.argumentExpression),Ui(24,D.argumentExpression.end,hr,D)}function Zl(D){const ae=Am(D)&16;ae&&(hr("("),vb("0"),hr(","),ur()),Vt(D.expression,Mn.parenthesizeLeftSideOfAccess),ae&&hr(")"),Ye(D.questionDotToken),yg(D,D.typeArguments),M1(D,D.arguments,2576,Mn.parenthesizeExpressionForDisallowedComma)}function yc(D){Ui(105,D.pos,to,D),ur(),Vt(D.expression,Mn.parenthesizeExpressionOfNew),yg(D,D.typeArguments),M1(D,D.arguments,18960,Mn.parenthesizeExpressionForDisallowedComma)}function dl(D){const ae=Am(D)&16;ae&&(hr("("),vb("0"),hr(","),ur()),Vt(D.tag,Mn.parenthesizeLeftSideOfAccess),ae&&hr(")"),yg(D,D.typeArguments),ur(),Vt(D.template)}function vl(D){hr("<"),Ye(D.type),hr(">"),Vt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Vl(D){const ae=Ui(21,D.pos,hr,D),ht=lN(D.expression,D);Vt(D.expression,void 0),w1(D.expression,D),Y0(ht),Ui(22,D.expression?D.expression.end:ae,hr,D)}function ec(D){qp(D.name),Yn(D)}function Jc(D){hg(D,D.modifiers),gn(D,ff)}function ff(D){q_(D,D.typeParameters),oN(D,D.parameters),pm(D.type),ur(),Ye(D.equalsGreaterThanToken)}function jd(D){Ui(91,D.pos,to,D),ur(),Vt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Nd(D){Ui(114,D.pos,to,D),ur(),Vt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Of(D){Ui(116,D.pos,to,D),ur(),Vt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function U_(D){Ui(135,D.pos,to,D),ur(),Vt(D.expression,Mn.parenthesizeOperandOfPrefixUnary)}function Nh(D){bb(D.operator,hf),Kg(D)&&ur(),Vt(D.operand,Mn.parenthesizeOperandOfPrefixUnary)}function Kg(D){const ae=D.operand;return ae.kind===224&&(D.operator===40&&(ae.operator===40||ae.operator===46)||D.operator===41&&(ae.operator===41||ae.operator===47))}function Bu(D){Vt(D.operand,Mn.parenthesizeOperandOfPostfixUnary),bb(D.operator,hf)}function Xg(){return lF(D,ae,ht,on,wr,void 0);function D(gi,no){if(no){no.stackIndex++,no.preserveSourceNewlinesStack[no.stackIndex]=pe,no.containerPosStack[no.stackIndex]=tn,no.containerEndStack[no.stackIndex]=rn,no.declarationListContainerEndStack[no.stackIndex]=Pn;const ya=no.shouldEmitCommentsStack[no.stackIndex]=Oe(gi),ed=no.shouldEmitSourceMapsStack[no.stackIndex]=Lt(gi);l?.(gi),ya&&kT(gi),ed&&ux(gi),pn(gi)}else no={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return no}function ae(gi,no,ya){return ki(gi,ya,"left")}function ht(gi,no,ya){const ed=gi.kind!==28,Pd=Hp(ya,ya.left,gi),Bf=Hp(ya,gi,ya.right);Bm(Pd,ed),bg(gi.pos),k1(gi,gi.kind===103?to:hf),Gm(gi.end,!0),Bm(Bf,!0)}function on(gi,no,ya){return ki(gi,ya,"right")}function wr(gi,no){const ya=Hp(gi,gi.left,gi.operatorToken),ed=Hp(gi,gi.operatorToken,gi.right);if(Y0(ya,ed),no.stackIndex>0){const Pd=no.preserveSourceNewlinesStack[no.stackIndex],Bf=no.containerPosStack[no.stackIndex],xb=no.containerEndStack[no.stackIndex],vi=no.declarationListContainerEndStack[no.stackIndex],wh=no.shouldEmitCommentsStack[no.stackIndex],Un=no.shouldEmitSourceMapsStack[no.stackIndex];_n(Pd),Un&&WT(gi),wh&&pN(gi,Bf,xb,vi),u?.(gi),no.stackIndex--}}function ki(gi,no,ya){const ed=ya==="left"?Mn.getParenthesizeLeftSideOfBinaryForOperator(no.operatorToken.kind):Mn.getParenthesizeRightSideOfBinaryForOperator(no.operatorToken.kind);let Pd=L(0,1,gi);if(Pd===Tt&&(N.assertIsDefined(_i),gi=ed(oa(_i,vt)),Pd=_e(1,1,gi),_i=void 0),(Pd===dN||Pd===tE||Pd===me)&&mr(gi))return gi;ao=ed,Pd(1,gi)}}function Ip(D){const ae=Hp(D,D.condition,D.questionToken),ht=Hp(D,D.questionToken,D.whenTrue),on=Hp(D,D.whenTrue,D.colonToken),wr=Hp(D,D.colonToken,D.whenFalse);Vt(D.condition,Mn.parenthesizeConditionOfConditionalExpression),Bm(ae,!0),Ye(D.questionToken),Bm(ht,!0),Vt(D.whenTrue,Mn.parenthesizeBranchOfConditionalExpression),Y0(ae,ht),Bm(on,!0),Ye(D.colonToken),Bm(wr,!0),Vt(D.whenFalse,Mn.parenthesizeBranchOfConditionalExpression),Y0(on,wr)}function mg(D){Ye(D.head),Zs(D,D.templateSpans,262144)}function Ud(D){Ui(127,D.pos,to,D),Ye(D.asteriskToken),P1(D.expression&&Om(D.expression),I1)}function te(D){Ui(26,D.pos,hr,D),Vt(D.expression,Mn.parenthesizeExpressionForDisallowedComma)}function ct(D){qp(D.name),Ka(D)}function zt(D){Vt(D.expression,Mn.parenthesizeLeftSideOfAccess),yg(D,D.typeArguments)}function jt(D){Vt(D.expression,void 0),D.type&&(ur(),to("as"),ur(),Ye(D.type))}function F(D){Vt(D.expression,Mn.parenthesizeLeftSideOfAccess),hf("!")}function Te(D){Vt(D.expression,void 0),D.type&&(ur(),to("satisfies"),ur(),Ye(D.type))}function st(D){L1(D.keywordToken,D.pos,hr),hr("."),Ye(D.name)}function Jt(D){Vt(D.expression),Ye(D.literal)}function rr(D){oi(D,!D.multiLine&&NT(D))}function oi(D,ae){Ui(19,D.pos,hr,D);const ht=ae||ja(D)&1?768:129;Zs(D,D.statements,ht),Ui(20,D.statements.end,hr,D,!!(ht&1))}function $r(D){Up(D,D.modifiers,!1),Ye(D.declarationList),ru()}function io(D){D?hr(";"):ru()}function Fa(D){Vt(D.expression,Mn.parenthesizeExpressionOfExpressionStatement),(!O||!Qf(O)||$s(D.expression))&&ru()}function za(D){const ae=Ui(101,D.pos,to,D);ur(),Ui(21,ae,hr,D),Vt(D.expression),Ui(22,D.expression.end,hr,D),gg(D,D.thenStatement),D.elseStatement&&(ry(D,D.thenStatement,D.elseStatement),Ui(93,D.thenStatement.end,to,D),D.elseStatement.kind===245?(ur(),Ye(D.elseStatement)):gg(D,D.elseStatement))}function Ol(D,ae){const ht=Ui(117,ae,to,D);ur(),Ui(21,ht,hr,D),Vt(D.expression),Ui(22,D.expression.end,hr,D)}function fu(D){Ui(92,D.pos,to,D),gg(D,D.statement),Xo(D.statement)&&!pe?ur():ry(D,D.statement,D.expression),Ol(D,D.statement.end),ru()}function Dc(D){Ol(D,D.pos),gg(D,D.statement)}function xp(D){const ae=Ui(99,D.pos,to,D);ur();let ht=Ui(21,ae,hr,D);us(D.initializer),ht=Ui(27,D.initializer?D.initializer.end:ht,hr,D),P1(D.condition),ht=Ui(27,D.condition?D.condition.end:ht,hr,D),P1(D.incrementor),Ui(22,D.incrementor?D.incrementor.end:ht,hr,D),gg(D,D.statement)}function Hd(D){const ae=Ui(99,D.pos,to,D);ur(),Ui(21,ae,hr,D),us(D.initializer),ur(),Ui(103,D.initializer.end,to,D),ur(),Vt(D.expression),Ui(22,D.expression.end,hr,D),gg(D,D.statement)}function pb(D){const ae=Ui(99,D.pos,to,D);ur(),ST(D.awaitModifier),Ui(21,ae,hr,D),us(D.initializer),ur(),Ui(165,D.initializer.end,to,D),ur(),Vt(D.expression),Ui(22,D.expression.end,hr,D),gg(D,D.statement)}function us(D){D!==void 0&&(D.kind===261?Ye(D):Vt(D))}function km(D){Ui(88,D.pos,to,D),ny(D.label),ru()}function wm(D){Ui(83,D.pos,to,D),ny(D.label),ru()}function Ui(D,ae,ht,on,wr){const ki=Do(on),gi=ki&&ki.kind===on.kind,no=ae;if(gi&&O&&(ae=ka(O.text,ae)),gi&&on.pos!==no){const ya=wr&&O&&!Rf(no,ae,O);ya&&Mh(),bg(no),ya&&zm()}if(!I&&(D===19||D===20)?ae=L1(D,ae,ht,on):ae=bb(D,ht,ae),gi&&on.end!==ae){const ya=on.kind===294;Gm(ae,!ya,ya)}return ae}function Yg(D){return D.kind===2||!!D.hasTrailingNewLine}function rv(D){if(!O)return!1;const ae=Xh(O.text,D.pos);if(ae){const ht=Do(D);if(ht&&Gd(ht.parent))return!0}return bt(ae,Yg)||bt(VR(D),Yg)?!0:KW(D)?D.pos!==D.expression.pos&&bt(o0(O.text,D.expression.pos),Yg)?!0:rv(D.expression):!1}function Om(D){if(!$t&&KW(D)&&rv(D)){const ae=Do(D);if(ae&&Gd(ae)){const ht=w.createParenthesizedExpression(D.expression);return Cr(ht,D),dt(ht,ae),ht}return w.createParenthesizedExpression(D)}return D}function I1(D){return Om(Mn.parenthesizeExpressionForDisallowedComma(D))}function x1(D){Ui(107,D.pos,to,D),P1(D.expression&&Om(D.expression),Om),ru()}function mf(D){const ae=Ui(118,D.pos,to,D);ur(),Ui(21,ae,hr,D),Vt(D.expression),Ui(22,D.expression.end,hr,D),gg(D,D.statement)}function H_(D){const ae=Ui(109,D.pos,to,D);ur(),Ui(21,ae,hr,D),Vt(D.expression),Ui(22,D.expression.end,hr,D),ur(),Ye(D.caseBlock)}function _f(D){Ye(D.label),Ui(59,D.label.end,hr,D),ur(),Ye(D.statement)}function $g(D){Ui(111,D.pos,to,D),P1(Om(D.expression),Om),ru()}function ze(D){Ui(113,D.pos,to,D),ur(),Ye(D.tryBlock),D.catchClause&&(ry(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(ry(D,D.catchClause||D.tryBlock,D.finallyBlock),Ui(98,(D.catchClause||D.tryBlock).end,to,D),ur(),Ye(D.finallyBlock))}function Ze(D){L1(89,D.pos,to),ru()}function Mt(D){var ae,ht,on;Ye(D.name),Ye(D.exclamationToken),pm(D.type),yb(D.initializer,((ae=D.type)==null?void 0:ae.end)??((on=(ht=D.name.emitNode)==null?void 0:ht.typeNode)==null?void 0:on.end)??D.name.end,D,Mn.parenthesizeExpressionForDisallowedComma)}function Ut(D){if(xL(D))to("await"),ur(),to("using");else{const ae=F4(D)?"let":cR(D)?"const":RL(D)?"using":"var";to(ae)}ur(),Zs(D,D.declarations,528)}function vn(D){Yn(D)}function Yn(D){Up(D,D.modifiers,!1),to("function"),Ye(D.asteriskToken),ur(),_t(D.name),gn(D,$n)}function gn(D,ae){const ht=D.body;if(ht)if(Xo(ht)){const on=ja(D)&131072;on&&Mh(),Au(D),Xe(D.parameters,iu),iu(D.body),ae(D),cr(ht),sp(D),on&&zm()}else ae(D),ur(),Vt(ht,Mn.parenthesizeConciseBodyOfArrowFunction);else ae(D),ru()}function $n(D){q_(D,D.typeParameters),lv(D,D.parameters),pm(D.type)}function fi(D){if(ja(D)&1)return!0;if(D.multiLine||!$s(D)&&O&&!kS(D,O)||vg(D,Xc(D.statements),2)||ix(D,tl(D.statements),2,D.statements))return!1;let ae;for(const ht of D.statements){if(Eb(ae,ht,2)>0)return!1;ae=ht}return!0}function cr(D){l?.(D),ur(),hr("{"),Mh();const ae=fi(D)?ri:fr;Ir(D,D.statements,ae),zm(),L1(20,D.statements.end,hr,D),u?.(D)}function ri(D){fr(D,!0)}function fr(D,ae){const ht=Jd(D.statements),on=ye.getTextPos();en(D),ht===0&&on===ye.getTextPos()&&ae?(zm(),Zs(D,D.statements,768),Mh()):Zs(D,D.statements,1,void 0,ht)}function Zo(D){Ka(D)}function Ka(D){Ff(0,void 0),Xe(D.members,ox),Up(D,D.modifiers,!0),Ui(86,L_(D).pos,to,D),D.name&&(ur(),_t(D.name));const ae=ja(D)&131072;ae&&Mh(),q_(D,D.typeParameters),Zs(D,D.heritageClauses,0),ur(),hr("{"),Zs(D,D.members,129),hr("}"),ae&&zm(),Sb()}function Zu(D){Ff(0,void 0),Up(D,D.modifiers,!1),to("interface"),ur(),Ye(D.name),q_(D,D.typeParameters),Zs(D,D.heritageClauses,512),ur(),hr("{"),Zs(D,D.members,129),hr("}"),Sb()}function mu(D){Up(D,D.modifiers,!1),to("type"),ur(),Ye(D.name),q_(D,D.typeParameters),ur(),hr("="),ur(),Ye(D.type),ru()}function Qg(D){Up(D,D.modifiers,!1),to("enum"),ur(),Ye(D.name),ur(),hr("{"),Zs(D,D.members,145),hr("}")}function V0(D){Up(D,D.modifiers,!1),~D.flags&2048&&(to(D.flags&32?"namespace":"module"),ur()),Ye(D.name);let ae=D.body;if(!ae)return ru();for(;ae&&Xl(ae);)hr("."),Ye(ae.name),ae=ae.body;ur(),Ye(ae)}function HI(D){Au(D),Xe(D.statements,iu),oi(D,NT(D)),sp(D)}function j0(D){Ui(19,D.pos,hr,D),Zs(D,D.clauses,129),Ui(20,D.clauses.end,hr,D,!0)}function $D(D){Up(D,D.modifiers,!1),Ui(102,D.modifiers?D.modifiers.end:D.pos,to,D),ur(),D.isTypeOnly&&(Ui(156,D.pos,to,D),ur()),Ye(D.name),ur(),Ui(64,D.name.end,hr,D),ur(),QD(D.moduleReference),ru()}function QD(D){D.kind===80?Vt(D):Ye(D)}function ZD(D){Up(D,D.modifiers,!1),Ui(102,D.modifiers?D.modifiers.end:D.pos,to,D),ur(),D.importClause&&(Ye(D.importClause),ur(),Ui(161,D.importClause.end,to,D),ur()),Vt(D.moduleSpecifier),D.attributes&&ny(D.attributes),ru()}function mT(D){D.isTypeOnly&&(Ui(156,D.pos,to,D),ur()),Ye(D.name),D.name&&D.namedBindings&&(Ui(28,D.name.end,hr,D),ur()),Ye(D.namedBindings)}function R1(D){const ae=Ui(42,D.pos,hr,D);ur(),Ui(130,ae,to,D),ur(),Ye(D.name)}function qI(D){mb(D)}function eN(D){_g(D)}function JI(D){const ae=Ui(95,D.pos,to,D);ur(),D.isExportEquals?Ui(64,ae,hf,D):Ui(90,ae,to,D),ur(),Vt(D.expression,D.isExportEquals?Mn.getParenthesizeRightSideOfBinaryForOperator(64):Mn.parenthesizeExpressionOfExportDefault),ru()}function KI(D){Up(D,D.modifiers,!1);let ae=Ui(95,D.pos,to,D);if(ur(),D.isTypeOnly&&(ae=Ui(156,ae,to,D),ur()),D.exportClause?Ye(D.exportClause):ae=Ui(42,ae,hr,D),D.moduleSpecifier){ur();const ht=D.exportClause?D.exportClause.end:ae;Ui(161,ht,to,D),ur(),Vt(D.moduleSpecifier)}D.attributes&&ny(D.attributes),ru()}function XI(D){hr("{"),ur(),to(D.token===132?"assert":"with"),hr(":"),ur();const ae=D.elements;Zs(D,ae,526226),ur(),hr("}")}function YI(D){Ui(D.token,D.pos,to,D),ur();const ae=D.elements;Zs(D,ae,526226)}function _T(D){Ye(D.name),hr(":"),ur();const ae=D.value;if((ja(ae)&1024)===0){const ht=w_(ae);Gm(ht.pos)}Ye(ae)}function $I(D){let ae=Ui(95,D.pos,to,D);ur(),ae=Ui(130,ae,to,D),ur(),ae=Ui(145,ae,to,D),ur(),Ye(D.name),ru()}function D1(D){const ae=Ui(42,D.pos,hr,D);ur(),Ui(130,ae,to,D),ur(),Ye(D.name)}function N1(D){mb(D)}function fb(D){_g(D)}function mb(D){hr("{"),Zs(D,D.elements,525136),hr("}")}function _g(D){D.isTypeOnly&&(to("type"),ur()),D.propertyName&&(Ye(D.propertyName),ur(),Ui(130,D.propertyName.end,to,D),ur()),Ye(D.name)}function U0(D){to("require"),hr("("),Vt(D.expression),hr(")")}function ts(D){Ye(D.openingElement),Zs(D,D.children,262144),Ye(D.closingElement)}function hT(D){hr("<"),_b(D.tagName),yg(D,D.typeArguments),ur(),Ye(D.attributes),hr("/>")}function tN(D){Ye(D.openingFragment),Zs(D,D.children,262144),Ye(D.closingFragment)}function H0(D){if(hr("<"),W_(D)){const ae=lN(D.tagName,D);_b(D.tagName),yg(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&ur(),Ye(D.attributes),w1(D.attributes,D),Y0(ae)}hr(">")}function Zg(D){ye.writeLiteral(D.text)}function Ch(D){hr("")}function Wf(D){Zs(D,D.properties,262656)}function qd(D){Ye(D.name),Wm("=",hr,D.initializer,yn)}function Rp(D){hr("{..."),Vt(D.expression),hr("}")}function ap(D){let ae=!1;return $2(O?.text||"",D+1,()=>ae=!0),ae}function iv(D){let ae=!1;return Y2(O?.text||"",D+1,()=>ae=!0),ae}function gT(D){return ap(D)||iv(D)}function nN(D){var ae;if(D.expression||!$t&&!$s(D)&&gT(D.pos)){const ht=O&&!$s(D)&&bs(O,D.pos).line!==bs(O,D.end).line;ht&&ye.increaseIndent();const on=Ui(19,D.pos,hr,D);Ye(D.dotDotDotToken),Vt(D.expression),Ui(20,((ae=D.expression)==null?void 0:ae.end)||on,hr,D),ht&&ye.decreaseIndent()}}function QI(D){_t(D.namespace),hr(":"),_t(D.name)}function _b(D){D.kind===80?Vt(D):Ye(D)}function q0(D){Ui(84,D.pos,to,D),ur(),Vt(D.expression,Mn.parenthesizeExpressionForDisallowedComma),vc(D,D.statements,D.expression.end)}function ZI(D){const ae=Ui(90,D.pos,to,D);vc(D,D.statements,ae)}function vc(D,ae,ht){const on=ae.length===1&&(!O||$s(D)||$s(ae[0])||x3(D,ae[0],O));let wr=163969;on?(L1(59,ht,hr,D),ur(),wr&=-130):Ui(59,ht,hr,D),Zs(D,ae,wr)}function ov(D){ur(),bb(D.token,to),ur(),Zs(D,D.types,528)}function ex(D){const ae=Ui(85,D.pos,to,D);ur(),D.variableDeclaration&&(Ui(21,ae,hr,D),Ye(D.variableDeclaration),Ui(22,D.variableDeclaration.end,hr,D),ur()),Ye(D.block)}function a_(D){Ye(D.name),hr(":"),ur();const ae=D.initializer;if((ja(ae)&1024)===0){const ht=w_(ae);Gm(ht.pos)}Vt(ae,Mn.parenthesizeExpressionForDisallowedComma)}function yT(D){Ye(D.name),D.objectAssignmentInitializer&&(ur(),hr("="),ur(),Vt(D.objectAssignmentInitializer,Mn.parenthesizeExpressionForDisallowedComma))}function qe(D){D.expression&&(Ui(26,D.pos,hr,D),Vt(D.expression,Mn.parenthesizeExpressionForDisallowedComma))}function s_(D){Ye(D.name),yb(D.initializer,D.name.end,D,Mn.parenthesizeExpressionForDisallowedComma)}function _u(D){if(Ue("/**"),D.comment){const ae=aL(D.comment);if(ae){const ht=ae.split(/\r\n?|\n/g);for(const on of ht)Kc(),ur(),hr("*"),ur(),Ue(on)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(ur(),Ye(D.tags[0])):Zs(D,D.tags,33)),ur(),Ue("*/")}function J0(D){um(D.tagName),ey(D.typeExpression),dm(D.comment)}function tx(D){um(D.tagName),Ye(D.name),dm(D.comment)}function hb(D){ur(),hr("{"),Ye(D.name),hr("}")}function av(D){um(D.tagName),ur(),hr("{"),Ye(D.class),hr("}"),dm(D.comment)}function sv(D){um(D.tagName),ey(D.constraint),ur(),Zs(D,D.typeParameters,528),dm(D.comment)}function CM(D){um(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?ey(D.typeExpression):(ur(),hr("{"),Ue("Object"),D.typeExpression.isArrayType&&(hr("["),hr("]")),hr("}"))),D.fullName&&(ur(),Ye(D.fullName)),dm(D.comment),D.typeExpression&&D.typeExpression.kind===329&&bT(D.typeExpression)}function Xa(D){um(D.tagName),D.name&&(ur(),Ye(D.name)),dm(D.comment),K0(D.typeExpression)}function l_(D){dm(D.comment),K0(D.typeExpression)}function vT(D){um(D.tagName),dm(D.comment)}function bT(D){Zs(D,w.createNodeArray(D.jsDocPropertyTags),33)}function K0(D){D.typeParameters&&Zs(D,w.createNodeArray(D.typeParameters),33),D.parameters&&Zs(D,w.createNodeArray(D.parameters),33),D.type&&(Kc(),ur(),hr("*"),ur(),Ye(D.type))}function ET(D){um(D.tagName),ey(D.typeExpression),ur(),D.isBracketed&&hr("["),Ye(D.name),D.isBracketed&&hr("]"),dm(D.comment)}function um(D){hr("@"),Ye(D)}function dm(D){const ae=aL(D);ae&&(ur(),Ue(ae))}function ey(D){D&&(ur(),hr("{"),Ye(D.type),hr("}"))}function nx(D){Kc();const ae=D.statements;if(ae.length===0||!Im(ae[0])||$s(ae[0])){Ir(D,ae,Xi);return}Xi(D)}function c_(D){C1(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(const ae of D.prepends)if(qS(ae)&&ae.syntheticReferences)for(const ht of ae.syntheticReferences)Ye(ht),Kc()}function rN(D){D.isDeclarationFile&&C1(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function C1(D,ae,ht,on){if(D){const wr=ye.getTextPos();J_('/// '),De&&De.sections.push({pos:wr,end:ye.getTextPos(),kind:"no-default-lib"}),Kc()}if(O&&O.moduleName&&(J_(`/// `),Kc()),O&&O.amdDependencies)for(const wr of O.amdDependencies)wr.name?J_(`/// `):J_(`/// `),Kc();for(const wr of ae){const ki=ye.getTextPos();J_(`/// `),De&&De.sections.push({pos:ki,end:ye.getTextPos(),kind:"reference",data:wr.fileName}),Kc()}for(const wr of ht){const ki=ye.getTextPos(),gi=wr.resolutionMode&&wr.resolutionMode!==O?.impliedNodeFormat?`resolution-mode="${wr.resolutionMode===99?"import":"require"}"`:"";J_(`/// `),De&&De.sections.push({pos:ki,end:ye.getTextPos(),kind:wr.resolutionMode?wr.resolutionMode===99?"type-import":"type-require":"type",data:wr.fileName}),Kc()}for(const wr of on){const ki=ye.getTextPos();J_(`/// `),De&&De.sections.push({pos:ki,end:ye.getTextPos(),kind:"lib",data:wr.fileName}),Kc()}}function Xi(D){const ae=D.statements;Au(D),Xe(D.statements,iu),en(D);const ht=Br(ae,on=>!Im(on));rN(D),Zs(D,ae,1,void 0,ht===-1?ae.length:ht),sp(D)}function ei(D){const ae=ja(D);!(ae&1024)&&D.pos!==D.expression.pos&&Gm(D.expression.pos),Vt(D.expression),!(ae&2048)&&D.end!==D.expression.end&&bg(D.expression.end)}function Ph(D){M1(D,D.elements,528,void 0)}function Jd(D,ae,ht,on){let wr=!!ae;for(let ki=0;ki=ht.length||gi===0;if(ya&&on&32768){p?.(ht),h?.(ht);return}on&15360&&(hr(XUe(on)),ya&&ht&&Gm(ht.pos,!0)),p?.(ht),ya?on&1&&!(pe&&(!ae||O&&kS(ae,O)))?Kc():on&256&&!(on&524288)&&ur():Fm(D,ae,ht,on,wr,ki,gi,ht.hasTrailingComma,ht),h?.(ht),on&15360&&(ya&&ht&&bg(ht.end),hr(YUe(on)))}function Fm(D,ae,ht,on,wr,ki,gi,no,ya){const ed=(on&262144)===0;let Pd=ed;const Bf=vg(ae,ht[ki],on);Bf?(Kc(Bf),Pd=!1):on&256&&ur(),on&128&&Mh();const xb=eHe(D,wr);let vi,wh,Un=!1;for(let V1=0;V10){if((on&131)===0&&(Mh(),Un=!0),Pd&&on&60&&!Zm(X_.pos)){const hN=w_(X_);Gm(hN.pos,!!(on&512),!0)}Kc(Oh),Pd=!1}else vi&&on&512&&ur()}if(wh=Wa(X_),Pd){const Oh=w_(X_);Gm(Oh.pos)}else Pd=ed;ie=X_.pos,xb(X_,D,wr,V1),Un&&(zm(),Un=!1),vi=X_}const dx=vi?ja(vi):0,Rb=$t||!!(dx&2048),Db=no&&on&64&&on&16;Db&&(vi&&!Rb?Ui(28,vi.end,hr,vi):hr(",")),vi&&(ae?ae.end:-1)!==vi.end&&on&60&&!Rb&&bg(Db&&ya?.end?ya.end:vi.end),on&128&&zm(),Sn(wh);const FT=ix(ae,ht[ki+gi-1],on,ya);FT?Kc(FT):on&2097408&&ur()}function vb(D){ye.writeLiteral(D)}function sN(D){ye.writeStringLiteral(D)}function IT(D){ye.write(D)}function LM(D,ae){ye.writeSymbol(D,ae)}function hr(D){ye.writePunctuation(D)}function ru(){ye.writeTrailingSemicolon(";")}function to(D){ye.writeKeyword(D)}function hf(D){ye.writeOperator(D)}function cv(D){ye.writeParameter(D)}function J_(D){ye.writeComment(D)}function ur(){ye.writeSpace(" ")}function xT(D){ye.writeProperty(D)}function X0(D){ye.nonEscapingWrite?ye.nonEscapingWrite(D):ye.write(D)}function Kc(D=1){for(let ae=0;ae0)}function Mh(){ye.increaseIndent()}function zm(){ye.decreaseIndent()}function L1(D,ae,ht,on){return je?bb(D,ht,ae):G1(on,D,ht,ae,bb)}function k1(D,ae){m&&m(D),ae(fa(D.kind)),v&&v(D)}function bb(D,ae,ht){const on=fa(D);return ae(on),ht<0?ht:ht+on.length}function ry(D,ae,ht){if(ja(D)&1)ur();else if(pe){const on=Hp(D,ae,ht);on?Kc(on):ur()}else Kc()}function RT(D){const ae=D.split(/\r\n?|\n/g),ht=Ore(ae);for(const on of ae){const wr=ht?on.slice(ht):on;wr.length&&(Kc(),Ue(wr))}}function Bm(D,ae){D?(Mh(),Kc(D)):ae&&ur()}function Y0(D,ae){D&&zm(),ae&&zm()}function vg(D,ae,ht){if(ht&2||pe){if(ht&65536)return 1;if(ae===void 0)return!D||O&&kS(D,O)?0:1;if(ae.pos===ie||ae.kind===12)return 0;if(O&&D&&!Zm(D.pos)&&!$s(ae)&&(!ae.parent||Pl(ae.parent)===Pl(D)))return pe?$0(on=>soe(ae.pos,D.pos,O,on)):x3(D,ae,O)?0:1;if(DT(ae,ht))return 1}return ht&1?1:0}function Eb(D,ae,ht){if(ht&2||pe){if(D===void 0||ae===void 0||ae.kind===12)return 0;if(O&&!$s(D)&&!$s(ae))return pe&&Cd(D,ae)?$0(on=>pU(D,ae,O,on)):!pe&&gf(D,ae)?uk(D,ae,O)?0:1:ht&65536?1:0;if(DT(D,ht)||DT(ae,ht))return 1}else if(dP(ae))return 1;return ht&1?1:0}function ix(D,ae,ht,on){if(ht&2||pe){if(ht&65536)return 1;if(ae===void 0)return!D||O&&kS(D,O)?0:1;if(O&&D&&!Zm(D.pos)&&!$s(ae)&&(!ae.parent||ae.parent===D)){if(pe){const wr=on&&!Zm(on.end)?on.end:ae.end;return $0(ki=>loe(wr,D.end,O,ki))}return ioe(D,ae,O)?0:1}if(DT(ae,ht))return 1}return ht&1&&!(ht&131072)?1:0}function $0(D){N.assert(!!pe);const ae=D(!0);return ae===0?D(!1):ae}function lN(D,ae){const ht=pe&&vg(ae,D,0);return ht&&Bm(ht,!1),!!ht}function w1(D,ae){const ht=pe&&ix(ae,D,0,void 0);ht&&Kc(ht)}function DT(D,ae){if($s(D)){const ht=dP(D);return ht===void 0?(ae&65536)!==0:ht}return(ae&65536)!==0}function Hp(D,ae,ht){return ja(D)&262144?0:(D=jl(D),ae=jl(ae),ht=jl(ht),dP(ht)?1:O&&!$s(D)&&!$s(ae)&&!$s(ht)?pe?$0(on=>pU(ae,ht,O,on)):uk(ae,ht,O)?0:1:0)}function NT(D){return D.statements.length===0&&(!O||uk(D,D,O))}function jl(D){for(;D.kind===217&&$s(D);)D=D.expression;return D}function Fc(D,ae){if(sl(D)||_S(D))return PT(D);if(Ma(D)&&D.textSourceNode)return Fc(D.textSourceNode,ae);const ht=O,on=!!ht&&!!D.parent&&!$s(D);if($h(D)){if(!on||jn(D)!==Pl(ht))return Sr(D)}else if(t_(D)){if(!on||jn(D)!==Pl(ht))return sP(D)}else if(N.assertNode(D,LE),!on)return D.text;return wE(ht,D,ae)}function CT(D,ae,ht){if(D.kind===11&&D.textSourceNode){const wr=D.textSourceNode;if(Ve(wr)||Ji(wr)||gp(wr)||t_(wr)){const ki=gp(wr)?wr.text:Fc(wr);return ht?`"${$j(ki)}"`:ae||ja(D)&16777216?`"${ig(ki)}"`:`"${ik(ki)}"`}else return CT(wr,ae,ht)}const on=(ae?1:0)|(ht?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Jre(D,O,on)}function Au(D){D&&ja(D)&1048576||(ve.push($),$=0,se.push(G),G=void 0,Y.push(oe))}function sp(D){D&&ja(D)&1048576||($=ve.pop(),G=se.pop(),oe=Y.pop())}function Q0(D){(!oe||oe===tl(Y))&&(oe=new Set),oe.add(D)}function Ff(D,ae){ne.push(he),he=D,fe.push(oe),Ne=ae}function Sb(){he=ne.pop(),Ne=fe.pop()}function Tb(D){(!Ne||Ne===tl(fe))&&(Ne=new Set),Ne.add(D)}function iu(D){if(D)switch(D.kind){case 241:Xe(D.statements,iu);break;case 256:case 254:case 246:case 247:iu(D.statement);break;case 245:iu(D.thenStatement),iu(D.elseStatement);break;case 248:case 250:case 249:iu(D.initializer),iu(D.statement);break;case 255:iu(D.caseBlock);break;case 269:Xe(D.clauses,iu);break;case 296:case 297:Xe(D.statements,iu);break;case 258:iu(D.tryBlock),iu(D.catchClause),iu(D.finallyBlock);break;case 299:iu(D.variableDeclaration),iu(D.block);break;case 243:iu(D.declarationList);break;case 261:Xe(D.declarations,iu);break;case 260:case 169:case 208:case 263:qp(D.name);break;case 262:qp(D.name),ja(D)&1048576&&(Xe(D.parameters,iu),iu(D.body));break;case 206:case 207:Xe(D.elements,iu);break;case 272:iu(D.importClause);break;case 273:qp(D.name),iu(D.namedBindings);break;case 274:qp(D.name);break;case 280:qp(D.name);break;case 275:Xe(D.elements,iu);break;case 276:qp(D.propertyName||D.name);break}}function ox(D){if(D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:qp(D.name);break}}function qp(D){D&&(sl(D)||_S(D)?PT(D):ta(D)&&iu(D))}function PT(D){const ae=D.emitNode.autoGenerate;if((ae.flags&7)===4)return MT(tw(D),Ji(D),ae.flags,ae.prefix,ae.suffix);{const ht=ae.id;return Z[ht]||(Z[ht]=uN(D))}}function MT(D,ae,ht,on,wr){const ki=as(D),gi=ae?K:U;return gi[ki]||(gi[ki]=LT(D,ae,ht??0,rD(on,PT),rD(wr)))}function Hs(D,ae){return Z0(D)&&!cN(D,ae)&&!V.has(D)}function cN(D,ae){return ae?!!Ne?.has(D):!!oe?.has(D)}function Z0(D,ae){return O?P4(O,D,r):!0}function O1(D,ae){for(let ht=ae;ht&&VE(ht,ae);ht=ht.nextContainer)if(ph(ht)&&ht.locals){const on=ht.locals.get(hl(D));if(on&&on.flags&3257279)return!1}return!0}function kM(D){switch(D){case"":return $;case"#":return he;default:return G?.get(D)??0}}function gd(D,ae){switch(D){case"":$=ae;break;case"#":he=ae;break;default:G??(G=new Map),G.set(D,ae);break}}function iy(D,ae,ht,on,wr){on.length>0&&on.charCodeAt(0)===35&&(on=on.slice(1));const ki=D0(ht,on,"",wr);let gi=kM(ki);if(D&&!(gi&D)){const ya=D0(ht,on,D===268435456?"_i":"_n",wr);if(Hs(ya,ht))return gi|=D,ht?Tb(ya):ae&&Q0(ya),gd(ki,gi),ya}for(;;){const no=gi&268435455;if(gi++,no!==8&&no!==13){const ya=no<26?"_"+String.fromCharCode(97+no):"_"+(no-26),ed=D0(ht,on,ya,wr);if(Hs(ed,ht))return ht?Tb(ed):ae&&Q0(ed),gd(ki,gi),ed}}}function K_(D,ae=Hs,ht,on,wr,ki,gi){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),ki.length>0&&ki.charCodeAt(0)===35&&(ki=ki.slice(1)),ht){const ya=D0(wr,ki,D,gi);if(ae(ya,wr))return wr?Tb(ya):on?Q0(ya):V.add(ya),ya}D.charCodeAt(D.length-1)!==95&&(D+="_");let no=1;for(;;){const ya=D0(wr,ki,D+no,gi);if(ae(ya,wr))return wr?Tb(ya):on?Q0(ya):V.add(ya),ya;no++}}function ax(D){return K_(D,Z0,!0,!1,!1,"","")}function Dp(D){const ae=Fc(D.name);return O1(ae,ii(D,ph))?ae:K_(ae,Hs,!1,!1,!1,"","")}function sx(D){const ae=yR(D),ht=Ma(ae)?Xre(ae.text):"module";return K_(ht,Hs,!1,!1,!1,"","")}function lp(){return K_("default",Hs,!1,!1,!1,"","")}function lx(){return K_("class",Hs,!1,!1,!1,"","")}function uv(D,ae,ht,on){return Ve(D.name)?MT(D.name,ae):iy(0,!1,ae,ht,on)}function LT(D,ae,ht,on,wr){switch(D.kind){case 80:case 81:return K_(Fc(D),Hs,!!(ht&16),!!(ht&8),ae,on,wr);case 267:case 266:return N.assert(!on&&!wr&&!ae),Dp(D);case 272:case 278:return N.assert(!on&&!wr&&!ae),sx(D);case 262:case 263:{N.assert(!on&&!wr&&!ae);const ki=D.name;return ki&&!sl(ki)?LT(ki,!1,ht,on,wr):lp()}case 277:return N.assert(!on&&!wr&&!ae),lp();case 231:return N.assert(!on&&!wr&&!ae),lx();case 174:case 177:case 178:return uv(D,ae,on,wr);case 167:return iy(0,!0,ae,on,wr);default:return iy(0,!1,ae,on,wr)}}function uN(D){const ae=D.emitNode.autoGenerate,ht=rD(ae.prefix,PT),on=rD(ae.suffix);switch(ae.flags&7){case 1:return iy(0,!!(ae.flags&8),Ji(D),ht,on);case 2:return N.assertNode(D,Ve),iy(268435456,!!(ae.flags&8),!1,ht,on);case 3:return K_(Sr(D),ae.flags&32?Z0:Hs,!!(ae.flags&16),!!(ae.flags&8),Ji(D),ht,on)}return N.fail(`Unsupported GeneratedIdentifierKind: ${N.formatEnum(ae.flags&7,z6,!0)}.`)}function dN(D,ae){const ht=_e(2,D,ae),on=tn,wr=rn,ki=Pn;kT(ae),ht(D,ae),pN(ae,on,wr,ki)}function kT(D){const ae=ja(D),ht=w_(D);Ab(D,ae,ht.pos,ht.end),ae&4096&&($t=!0)}function pN(D,ae,ht,on){const wr=ja(D),ki=w_(D);wr&4096&&($t=!1),Np(D,wr,ki.pos,ki.end,ae,ht,on);const gi=aae(D);gi&&Np(D,wr,gi.pos,gi.end,ae,ht,on)}function Ab(D,ae,ht,on){Oi(),Qt=!1;const wr=ht<0||(ae&1024)!==0||D.kind===12,ki=on<0||(ae&2048)!==0||D.kind===12;(ht>0||on>0)&&ht!==on&&(wr||W1(ht,D.kind!==359),(!wr||ht>=0&&(ae&1024)!==0)&&(tn=ht),(!ki||on>=0&&(ae&2048)!==0)&&(rn=on,D.kind===261&&(Pn=on))),Xe(VR(D),Lh),No()}function Np(D,ae,ht,on,wr,ki,gi){Oi();const no=on<0||(ae&2048)!==0||D.kind===12;Xe(Lk(D),fN),(ht>0||on>0)&&ht!==on&&(tn=wr,rn=ki,Pn=gi,!no&&D.kind!==359&&u_(on)),No()}function Lh(D){(D.hasLeadingNewline||D.kind===2)&&ye.writeLine(),wT(D),D.hasTrailingNewLine||D.kind===2?ye.writeLine():ye.writeSpace(" ")}function fN(D){ye.isAtStartOfLine()||ye.writeSpace(" "),wT(D),D.hasTrailingNewLine&&ye.writeLine()}function wT(D){const ae=rs(D),ht=D.kind===3?xA(ae):void 0;CR(ae,ht,ye,0,ae.length,R)}function rs(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Ir(D,ae,ht){Oi();const{pos:on,end:wr}=ae,ki=ja(D),gi=on<0||(ki&1024)!==0,no=$t||wr<0||(ki&2048)!==0;gi||zf(ae),No(),ki&4096&&!$t?($t=!0,ht(D),$t=!1):ht(D),Oi(),no||(W1(ae.end,!0),Qt&&!ye.isAtStartOfLine()&&ye.writeLine()),No()}function gf(D,ae){return D=Pl(D),D.parent&&D.parent===Pl(ae).parent}function Cd(D,ae){if(ae.pos-1&&on.indexOf(ae)===wr+1}function W1(D,ae){Qt=!1,ae?D===0&&O?.isDeclarationFile?Sg(D,eE):Sg(D,OT):D===0&&Sg(D,mN)}function mN(D,ae,ht,on,wr){vf(D,ae)&&OT(D,ae,ht,on,wr)}function eE(D,ae,ht,on,wr){vf(D,ae)||OT(D,ae,ht,on,wr)}function F1(D,ae){return e.onlyPrintJsDocStyle?jH(D,ae)||M4(D,ae):!0}function OT(D,ae,ht,on,wr){!O||!F1(O.text,D)||(Qt||(jie(Rt(),ye,wr,D),Qt=!0),Ls(D),CR(O.text,Rt(),ye,D,ae,R),Ls(ae),on?ye.writeLine():ht===3&&ye.writeSpace(" "))}function bg(D){$t||D===-1||W1(D,!0)}function u_(D){cx(D,yf)}function yf(D,ae,ht,on){!O||!F1(O.text,D)||(ye.isAtStartOfLine()||ye.writeSpace(" "),Ls(D),CR(O.text,Rt(),ye,D,ae,R),Ls(ae),on&&ye.writeLine())}function Gm(D,ae,ht){$t||(Oi(),cx(D,ae?yf:ht?oy:Eg),No())}function oy(D,ae,ht){O&&(Ls(D),CR(O.text,Rt(),ye,D,ae,R),Ls(ae),ht===2&&ye.writeLine())}function Eg(D,ae,ht,on){O&&(Ls(D),CR(O.text,Rt(),ye,D,ae,R),Ls(ae),on?ye.writeLine():ye.writeSpace(" "))}function Sg(D,ae){O&&(tn===-1||D!==tn)&&(lc(D)?_N(ae):Y2(O.text,D,ae,D))}function cx(D,ae){O&&(rn===-1||D!==rn&&D!==Pn)&&$2(O.text,D,ae)}function lc(D){return hn!==void 0&&Ya(hn).nodePos===D}function _N(D){if(!O)return;const ae=Ya(hn).detachedCommentEndPos;hn.length-1?hn.pop():hn=void 0,Y2(O.text,ae,D,ae)}function zf(D){const ae=O&&Hie(O.text,Rt(),ye,kh,D,R,$t);ae&&(hn?hn.push(ae):hn=[ae])}function kh(D,ae,ht,on,wr,ki){!O||!F1(O.text,on)||(Ls(on),CR(D,ae,ht,on,wr,ki),Ls(wr))}function vf(D,ae){return!!O&&aj(O.text,D,ae)}function z1(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=Gq(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function tE(D,ae){const ht=_e(3,D,ae);ux(ae),ht(D,ae),WT(ae)}function ux(D){const ae=ja(D),ht=jy(D);if(GV(D)){N.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");const on=z1(D.parent);on&&at&&at.appendSourceMap(ye.getLine(),ye.getColumn(),on,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{const on=ht.source||Gt;D.kind!==359&&(ae&32)===0&&ht.pos>=0&&B1(ht.source||Gt,bf(on,ht.pos)),ae&128&&(je=!0)}}function WT(D){const ae=ja(D),ht=jy(D);GV(D)||(ae&128&&(je=!1),D.kind!==359&&(ae&64)===0&&ht.end>=0&&B1(ht.source||Gt,ht.end))}function bf(D,ae){return D.skipTrivia?D.skipTrivia(ae):ka(D.text,ae)}function Ls(D){if(je||Zm(D)||nE(Gt))return;const{line:ae,character:ht}=bs(Gt,D);at.addMapping(ye.getLine(),ye.getColumn(),yt,ae,ht,void 0)}function B1(D,ae){if(D!==Gt){const ht=Gt,on=yt;ay(D),Ls(ae),Ib(ht,on)}else Ls(ae)}function G1(D,ae,ht,on,wr){if(je||D&&Q4(D))return wr(ae,ht,on);const ki=D&&D.emitNode,gi=ki&&ki.flags||0,no=ki&&ki.tokenSourceMapRanges&&ki.tokenSourceMapRanges[ae],ya=no&&no.source||Gt;return on=bf(ya,no?no.pos:on),(gi&256)===0&&on>=0&&B1(ya,on),on=wr(ae,ht,on),no&&(on=no.end),(gi&512)===0&&on>=0&&B1(ya,on),on}function ay(D){if(!je){if(Gt=D,D===$e){yt=It;return}nE(D)||(yt=at.addSource(D.fileName),e.inlineSources&&at.setSourceContent(yt,D.text),$e=D,It=yt)}}function Ib(D,ae){Gt=D,yt=ae}function nE(D){return Il(D.fileName,".json")}}function KUe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function XUe(e){return Kle[e&15360][0]}function YUe(e){return Kle[e&15360][1]}function $Ue(e,t,r,i){t(e)}function QUe(e,t,r,i){t(e,r.select(i))}function ZUe(e,t,r,i){t(e,r)}function eHe(e,t){return e.length===1?$Ue:typeof t=="object"?QUe:ZUe}var Kle,o7,dJ,h1,pJ,Lw,tHe=T({"src/compiler/emitter.ts"(){ra(),ra(),dS(),Kle=KUe(),o7={hasGlobalName:Ko,getReferencedExportContainer:Ko,getReferencedImportDeclaration:Ko,getReferencedDeclarationWithCollidingName:Ko,isDeclarationWithCollidingName:Ko,isValueAliasDeclaration:Ko,isReferencedAliasDeclaration:Ko,isTopLevelValueImportEqualsWithEntityName:Ko,getNodeCheckFlags:Ko,isDeclarationVisible:Ko,isLateBound:e=>!1,collectLinkedAliases:Ko,isImplementationOfOverload:Ko,isRequiredInitializedParameter:Ko,isOptionalUninitializedParameterProperty:Ko,isExpandoFunctionDeclaration:Ko,getPropertiesOfContainerFunction:Ko,createTypeOfDeclaration:Ko,createReturnTypeOfSignatureDeclaration:Ko,createTypeOfExpression:Ko,createLiteralConstValue:Ko,isSymbolAccessible:Ko,isEntityNameVisible:Ko,getConstantValue:Ko,getReferencedValueDeclaration:Ko,getReferencedValueDeclarations:Ko,getTypeReferenceSerializationKind:Ko,isOptionalParameter:Ko,moduleExportsSomeValue:Ko,isArgumentsLocalBinding:Ko,getExternalModuleFileFromDeclaration:Ko,getTypeReferenceDirectivesForEntityName:Ko,getTypeReferenceDirectivesForSymbol:Ko,isLiteralConstDeclaration:Ko,getJsxFactoryEntity:Ko,getJsxFragmentFactoryEntity:Ko,getAllAccessorDeclarations:Ko,getSymbolOfExternalModuleSpecifier:Ko,isBindingCapturedByNode:Ko,getDeclarationStatementsForSourceFile:Ko,isImportRequiredByAugmentation:Ko,tryFindAmbientModule:Ko},dJ=Sd(()=>L0({})),h1=Sd(()=>L0({removeComments:!0})),pJ=Sd(()=>L0({removeComments:!0,neverAsciiEscape:!0})),Lw=Sd(()=>L0({removeComments:!0,omitTrailingSemicolon:!0}))}});function a7(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Mu(r);return{useCaseSensitiveFileNames:r,fileExists:I,readFile:(G,ne)=>e.readFile(G,ne),directoryExists:e.directoryExists&&R,getDirectories:C,readDirectory:O,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&A,addOrDeleteFileOrDirectory:K,addOrDeleteFile:Z,clearCache:se,realpath:e.realpath&&U};function s(G){return ol(G,t,o)}function l(G){return i.get(Bc(G))}function u(G){const ne=l(ai(G));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(o).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(o).sort()),ne)}function p(G){return rc(ga(G))}function h(G,ne){var he;if(!e.realpath||Bc(s(e.realpath(G)))===ne){const ve={files:Ot(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(Bc(ne),ve),ve}if((he=e.directoryExists)!=null&&he.call(e,G))return i.set(ne,!1),!1}function m(G,ne){ne=Bc(ne);const he=l(ne);if(he)return he;try{return h(G,ne)}catch{N.assert(!i.has(Bc(ne)));return}}function v(G,ne){return xy(G,ne,nl,Uu)>=0}function A(G,ne,he){const ve=s(G),$=u(ve);return $&&V($,p(G),!0),e.writeFile(G,ne,he)}function I(G){const ne=s(G),he=u(ne);return he&&v(he.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){const ne=s(G);return i.has(Bc(ne))||e.directoryExists(G)}function M(G){const ne=s(G),he=u(ne);if(he){const ve=p(G),$=o(ve),Y=he.sortedAndCanonicalizedDirectories;xv(Y,$,Uu)&&he.directories.push(ve)}e.createDirectory(G)}function C(G){const ne=s(G),he=m(G,ne);return he?he.directories.slice():e.getDirectories(G)}function O(G,ne,he,ve,$){const Y=s(G),oe=m(G,Y);let fe;if(oe!==void 0)return AU(G,ne,he,ve,r,t,$,Ne,U);return e.readDirectory(G,ne,he,ve,$);function Ne(ie){const ye=s(ie);if(ye===Y)return oe||pe(ie,ye);const Me=m(ie,ye);return Me!==void 0?Me||pe(ie,ye):aW}function pe(ie,ye){if(fe&&ye===Y)return fe;const Me={files:Ot(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ye===Y&&(fe=Me),Me}}function U(G){return e.realpath?e.realpath(G):G}function K(G,ne){if(l(ne)!==void 0){se();return}const ve=u(ne);if(!ve)return;if(!e.directoryExists){se();return}const $=p(G),Y={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return Y.directoryExists||v(ve.sortedAndCanonicalizedDirectories,o($))?se():V(ve,$,Y.fileExists),Y}function Z(G,ne,he){if(he===1)return;const ve=u(ne);ve&&V(ve,p(G),he===0)}function V(G,ne,he){const ve=G.sortedAndCanonicalizedFiles,$=o(ne);if(he)xv(ve,$,Uu)&&G.files.push(ne);else{const Y=xy(ve,$,nl,Uu);if(Y>=0){ve.splice(Y,1);const oe=G.files.findIndex(fe=>o(fe)===$);G.files.splice(oe,1)}}}function se(){i.clear()}}function s7(e,t,r,i,o){var s;const l=DE(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{const h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{const m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function fJ(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function l7(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&l7(e,o,r)})}function mJ(e,t,r){qC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Qm})}function kw(e,t,r){t?qC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Mf,onExistingValue:o}):tp(e,Mf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function ww({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:v}){const A=b7(r);if(!A)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=A,r===e)return!1;if(AA(r)&&!(Noe(t,o,l)||O()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(dse(t,o.configFile.configFileSpecs,go(ai(i),u),p,u))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ps(o)||o.outDir)return!1;if(Su(r)){if(o.declarationDir)return!1}else if(!Tc(r,GR))return!1;const I=Ad(r),R=To(s)?void 0:nHe(s)?s.getProgramOrUndefined():s,M=!R&&!To(s)?s:void 0;if(C(I+".ts")||C(I+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function C(U){return R?!!R.getSourceFileByPath(U):M?M.getState().fileInfos.has(U):!!An(s,K=>m(K)===U)}function O(){if(!v)return!1;switch(v(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Xv(o);case 6:return T0(o);case 0:return!1}}}function nHe(e){return!!e.getState}function Xle(e,t){return e?e.isEmittedFile(t):!1}function _J(e,t,r,i){Lne(t===2?r:$a);const o={watchFile:(M,C,O,U)=>e.watchFile(M,C,O,U),watchDirectory:(M,C,O,U)=>e.watchDirectory(M,C,(O&1)!==0,U)},s=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,l=t===2?{watchFile:v,watchDirectory:A}:s||o,u=t===2?m:SD;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(C,O,U,K,Z,V)=>{var se;return hF(C,M==="watchFile"?K?.excludeFiles:K?.excludeDirectories,h(),((se=e.getCurrentDirectory)==null?void 0:se.call(e))||"")?u(C,U,K,Z,V):l[M].call(void 0,C,O,U,K,Z,V)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(M,C,O,U,K){return r(`ExcludeWatcher:: Added:: ${R(M,C,O,U,K,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,C,O,U,K,i)}`)}}function v(M,C,O,U,K,Z){r(`FileWatcher:: Added:: ${R(M,O,U,K,Z,i)}`);const V=s.watchFile(M,C,O,U,K,Z);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,O,U,K,Z,i)}`),V.close()}}}function A(M,C,O,U,K,Z){const V=`DirectoryWatcher:: Added:: ${R(M,O,U,K,Z,i)}`;r(V);const se=Ys(),G=s.watchDirectory(M,C,O,U,K,Z),ne=Ys()-se;return r(`Elapsed:: ${ne}ms ${V}`),{close:()=>{const he=`DirectoryWatcher:: Close:: ${R(M,O,U,K,Z,i)}`;r(he);const ve=Ys();G.close();const $=Ys()-ve;r(`Elapsed:: ${$}ms ${he}`)}}}function I(M){return(C,O,U,K,Z,V)=>o[M].call(void 0,C,(...se)=>{const G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${se[0]} ${se[1]!==void 0?se[1]:""}:: ${R(C,U,K,Z,V,i)}`;r(G);const ne=Ys();O.call(void 0,...se);const he=Ys()-ne;r(`Elapsed:: ${he}ms ${G}`)},U,K,Z,V)}function R(M,C,O,U,K,Z){return`WatchInfo: ${M} ${C} ${JSON.stringify(O)} ${Z?Z(U,K):K===void 0?U:`${U} ${K}`}`}}function Ow(e){const t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Mf(e){e.watcher.close()}var hJ,gJ,rHe=T({"src/compiler/watchUtilities.ts"(){ra(),hJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(hJ||{}),gJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(gJ||{})}});function Yle(e,t,r="tsconfig.json"){return Sm(e,i=>{const o=Qr(i,r);return t(o)?o:void 0})}function c7(e,t){const r=ai(t),i=pp(e)?e:Qr(r,e);return ga(i)}function $le(e,t,r){let i;return Xe(e,s=>{const l=j2(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let p=0;p{let l;try{il("beforeIORead"),l=e(i,t().charset),il("afterIORead"),ef("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?iw(i,l,o,r):void 0}}function vJ(e,t,r){return(i,o,s,l)=>{try{il("beforeIOWrite"),tU(i,o,s,e,t,r),il("afterIOWrite"),ef("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function bJ(e,t,r=gu){const i=new Map,o=Mu(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return ai(ga(r.getExecutingFilePath()))}const u=Gy(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:yJ(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>Qr(l(),Z2(m)),writeFile:vJ((m,v,A)=>r.writeFile(m,v,A),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Sd(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+u),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,v,A,I,R)=>r.readDirectory(m,v,A,I,R),createDirectory:m=>r.createDirectory(m),createHash:ia(r,r.createHash)};return h}function Ww(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,h=new Map,m=new Map,v=new Map,A=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:I(C,M)},I=(M,C)=>{const O=i.call(e,C);return p.set(M,O!==void 0?O:!1),O};e.readFile=M=>{const C=t(M),O=p.get(C);return O!==void 0?O!==!1?O:void 0:!Il(M,".json")&&!Hle(M)?i.call(e,M):I(C,M)};const R=r?(M,C,O,U)=>{const K=t(M),Z=typeof C=="object"?C.impliedNodeFormat:void 0,V=v.get(Z),se=V?.get(K);if(se)return se;const G=r(M,C,O,U);return G&&(Su(M)||Il(M,".json"))&&v.set(Z,(V||new Map).set(K,G)),G}:void 0;return e.fileExists=M=>{const C=t(M),O=h.get(C);if(O!==void 0)return O;const U=o.call(e,M);return h.set(C,!!U),U},u&&(e.writeFile=(M,C,...O)=>{const U=t(M);h.delete(U);const K=p.get(U);K!==void 0&&K!==C?(p.delete(U),v.forEach(Z=>Z.delete(U))):R&&v.forEach(Z=>{const V=Z.get(U);V&&V.text!==C&&Z.delete(U)}),u.call(e,M,C,...O)}),s&&(e.directoryExists=M=>{const C=t(M),O=m.get(C);if(O!==void 0)return O;const U=s.call(e,M);return m.set(C,!!U),U},l&&(e.createDirectory=M=>{const C=t(M);m.delete(C),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:A}}function Lxe(e,t,r){let i;return i=qr(i,e.getConfigFileParsingDiagnostics()),i=qr(i,e.getOptionsDiagnostics(r)),i=qr(i,e.getSyntacticDiagnostics(t,r)),i=qr(i,e.getGlobalDiagnostics(r)),i=qr(i,e.getSemanticDiagnostics(t,r)),Nf(e.getCompilerOptions())&&(i=qr(i,e.getDeclarationDiagnostics(t,r))),Xx(i||et)}function kxe(e,t){let r="";for(const i of e)r+=EJ(i,t);return r}function EJ(e,t){const r=`${pS(e)} TS${e.code}: ${z_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=bs(e.file,e.start),s=e.file.fileName;return`${nC(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function wxe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return N.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function g1(e,t){return t+e+nce}function Oxe(e,t,r,i,o,s){const{line:l,character:u}=bs(e,t),{line:p,character:h}=bs(e,t+r),m=bs(e,e.text.length).line,v=p-l>=4;let A=(p+1+"").length;v&&(A=Math.max(rce.length,A));let I="";for(let R=l;R<=p;R++){I+=s.getNewLine(),v&&l+1r.getCanonicalFileName(p)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function Zle(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=SJ(o,s,t),r+=" - "}if(r+=g1(pS(i),wxe(i.category)),r+=g1(` TS${i.code}: `,"\x1B[90m"),r+=z_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=Oxe(i.file,i.start,i.length,"",wxe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=zxe+SJ(o,s,t),r+=Oxe(o,s,l,ice,"\x1B[96m",t)),r+=t.getNewLine(),r+=ice+z_(u,t.getNewLine())}r+=t.getNewLine()}return r}function z_(e,t,r=0){if(Po(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;ocD(s,e,r,i,o,t,l)}}function RJ(e){return Po(e)?e:lh(e.fileName)}function u7(e,t,r,i,o){return{nameAndMode:Bxe,resolve:(s,l)=>xse(s,e,r,i,t,o,l)}}function zw(e,t,r,i,o,s,l,u){if(e.length===0)return et;const p=[],h=new Map,m=u(t,r,i,s,l);for(const v of e){const A=m.nameAndMode.getName(v),I=m.nameAndMode.getMode(v,o,r?.commandLine.options||i),R=OP(A,I);let M=h.get(R);M||h.set(R,M=m.resolve(A,I)),p.push(M)}return p}function DJ(e,t){return d7(void 0,e,(r,i)=>r&&t(r,i))}function d7(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){const h=i(l,p);if(h)return h}return Xe(u,(h,m)=>{if(h&&o?.has(h.sourceFile.path))return;const v=r(h,p,m);return v||!h?v:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function p7(e,t,r){const i=e.configFilePath?ai(e.configFilePath):t;return Qr(i,`__lib_node_modules_lookup_${r}__.ts`)}function NJ(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function Wxe(e){const t=lh(e.fileName),r=gF.get(t);return{libName:t,libFileName:r}}function k0(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function hD(e){return e.pos!==void 0}function $P(e,t){var r,i,o,s;const l=N.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t;let h,m,v,A;switch(u){case 3:const I=Gw(l,p);if(v=(i=(r=e.getResolvedModule(l,I.text,e.getModeForUsageLocation(l,I)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,I.pos===-1)return{file:l,packageId:v,text:I.text};h=ka(l.text,I.pos),m=I.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:A}=l.typeReferenceDirectives[p]),v=(s=(o=e.getResolvedTypeReferenceDirective(l,lh(l.typeReferenceDirectives[p].fileName),A||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 N.assertNever(u)}return{file:l,pos:h,end:m,packageId:v}}function CJ(e,t,r,i,o,s,l,u,p,h){if(!e||u?.()||!Km(e.getRootFileNames(),t))return!1;let m;if(!Km(e.getProjectReferences(),h,M)||e.getSourceFiles().some(I))return!1;const v=e.getMissingFilePaths();if(v&&Gc(v,o))return!1;const A=e.getCompilerOptions();if(!mU(A,r)||e.resolvedLibReferences&&Gc(e.resolvedLibReferences,(O,U)=>l(U)))return!1;if(A.configFile&&r.configFile)return A.configFile.text===r.configFile.text;return!0;function I(O){return!R(O)||s(O.path)}function R(O){return O.version===i(O.resolvedPath,O.fileName)}function M(O,U,K){return rj(O,U)&&C(e.getResolvedProjectReferences()[K],O)}function C(O,U){if(O){if(Nr(m,O))return!0;const Z=gD(U),V=p(Z);return!V||O.commandLine.options.configFile!==V.options.configFile||!Km(O.commandLine.fileNames,V.fileNames)?!1:((m||(m=[])).push(O),!Xe(O.references,(se,G)=>!C(se,O.commandLine.projectReferences[G])))}const K=gD(U);return!p(K)}}function tT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Bw(e,t,r,i){const o=PJ(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function PJ(e,t,r,i){switch(fd(i)){case 3:case 99:return Tc(e,[".d.mts",".mts",".mjs"])?99:Tc(e,[".d.cts",".cts",".cjs"])?1:Tc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=bw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;const u=Ew(e,s);return{impliedNodeFormat:u?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function iHe(e,t){return e?iR(e.getCompilerOptions(),t,vF):!1}function oHe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function f7(e,t,r,i,o){var s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z;const V=To(e)?oHe(e,t,r,i,o):e,{rootNames:se,options:G,configFileParsingDiagnostics:ne,projectReferences:he,typeScriptVersion:ve}=V;let{oldProgram:$}=V;const Y=Sd(()=>km("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let oe,fe,Ne,pe,ie,ye,Me;const Ue=new Map;let Ee=Zp();const De={},Pe={};let We=EI(),At,Se,je,at,Gt,yt,$e,It,tn,rn;const Pn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0;let Xn=0;const hn=new Map,Qt=new Map;(s=sr)==null||s.push(sr.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),il("beforeProgram");const $t=V.host||Qle(G),_i=_7($t);let ao=G.noLib;const Oi=Sd(()=>$t.getDefaultLibFileName(G)),No=$t.getDefaultLibLocation?$t.getDefaultLibLocation():ai(Oi()),Mn=xR(),Di=$t.getCurrentDirectory(),Ar=XC(G),sn=mk(G,Ar),tt=new Map;let Bt,Rn,li;const hi=$t.hasInvalidatedResolutions||Xm;$t.resolveModuleNameLiterals?(li=$t.resolveModuleNameLiterals.bind($t),Rn=(l=$t.getModuleResolutionCache)==null?void 0:l.call($t)):$t.resolveModuleNames?(li=(ze,Ze,Mt,Ut,vn,Yn)=>$t.resolveModuleNames(ze.map(tce),Ze,Yn?.map(tce),Mt,Ut,vn).map(gn=>gn?gn.extension!==void 0?{resolvedModule:gn}:{resolvedModule:{...gn,extension:$C(gn.resolvedFileName)}}:oce),Rn=(u=$t.getModuleResolutionCache)==null?void 0:u.call($t)):(Rn=lD(Di,te,G),li=(ze,Ze,Mt,Ut,vn)=>zw(ze,Ze,Mt,Ut,vn,$t,Rn,xJ));let Qi;if($t.resolveTypeReferenceDirectiveReferences)Qi=$t.resolveTypeReferenceDirectiveReferences.bind($t);else if($t.resolveTypeReferenceDirectives)Qi=(ze,Ze,Mt,Ut,vn)=>$t.resolveTypeReferenceDirectives(ze.map(RJ),Ze,Mt,Ut,vn?.impliedNodeFormat).map(Yn=>({resolvedTypeReferenceDirective:Yn}));else{const ze=DF(Di,te,void 0,Rn?.getPackageJsonInfoCache(),Rn?.optionsToRedirectsKey);Qi=(Ze,Mt,Ut,vn,Yn)=>zw(Ze,Mt,Ut,vn,Yn,$t,ze,u7)}const Io=$t.hasInvalidatedLibResolutions||Xm;let ma;if($t.resolveLibrary)ma=$t.resolveLibrary.bind($t);else{const ze=lD(Di,te,G,Rn?.getPackageJsonInfoCache());ma=(Ze,Mt,Ut)=>NF(Ze,Mt,Ut,$t,ze)}const Wa=new Map;let Sn=new Map,kn=Zp(),He=!1;const mt=new Map;let ft=new Map;const Ct=$t.useCaseSensitiveFileNames()?new Map:void 0;let le,Fe,pt,j;const ot=!!((p=$t.useSourceOfProjectReferenceRedirect)!=null&&p.call($t))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Rt,fileExists:Ye,directoryExists:_t}=aHe({compilerHost:$t,getSymlinkCache:H_,useSourceOfProjectReferenceRedirect:ot,toPath:ir,getResolvedProjectReferences:Lo,getSourceOfProjectReferenceRedirect:Nd,forEachResolvedProjectReference:jd}),Vt=$t.readFile.bind($t);(h=sr)==null||h.push(sr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!$});const yn=iHe($,G);(m=sr)==null||m.pop();let pn;if((v=sr)==null||v.push(sr.Phase.Program,"tryReuseStructureFromOldProgram",{}),pn=xo(),(A=sr)==null||A.pop(),pn!==2){if(oe=[],fe=[],he&&(le||(le=he.map(jt)),se.length&&le?.forEach((ze,Ze)=>{if(!ze)return;const Mt=Ps(ze.commandLine.options);if(ot){if(Mt||wu(ze.commandLine.options)===0)for(const Ut of ze.commandLine.fileNames)Wt(Ut,{kind:1,index:Ze})}else if(Mt)Wt(E0(Mt,".d.ts"),{kind:2,index:Ze});else if(wu(ze.commandLine.options)===0){const Ut=Sd(()=>mD(ze.commandLine,!$t.useCaseSensitiveFileNames()));for(const vn of ze.commandLine.fileNames)!Su(vn)&&!Il(vn,".json")&&Wt(XP(vn,ze.commandLine,!$t.useCaseSensitiveFileNames(),Ut),{kind:2,index:Ze})}})),(I=sr)==null||I.push(sr.Phase.Program,"processRootFiles",{count:se.length}),Xe(se,(ze,Ze)=>Us(ze,!1,!1,{kind:0,index:Ze})),(R=sr)==null||R.pop(),Se??(Se=se.length?xF(G,$t):et),je=EI(),Se.length){(M=sr)==null||M.push(sr.Phase.Program,"processTypeReferences",{count:Se.length});const ze=G.configFilePath?ai(G.configFilePath):Di,Ze=Qr(ze,yD),Mt=Ii(Se,Ze);for(let Ut=0;Ut{Us(Ip(Ze),!0,!1,{kind:6,index:Mt})})}Ne=Iy(oe,Ni).concat(fe),oe=void 0,fe=void 0}if($&&$t.onReleaseOldSourceFile){const ze=$.getSourceFiles();for(const Ze of ze){const Mt=_l(Ze.resolvedPath);(yn||!Mt||Mt.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&Mt.resolvedPath!==Ze.path)&&$t.onReleaseOldSourceFile(Ze,$.getCompilerOptions(),!!_l(Ze.path))}$t.getParsedCommandLine||$.forEachResolvedProjectReference(Ze=>{U_(Ze.sourceFile.path)||$t.onReleaseOldSourceFile(Ze.sourceFile,$.getCompilerOptions(),!1)})}$&&$t.onReleaseParsedCommandLine&&d7($.getProjectReferences(),$.getResolvedProjectReferences(),(ze,Ze,Mt)=>{const Ut=Ze?.commandLine.projectReferences[Mt]||$.getProjectReferences()[Mt],vn=gD(Ut);Fe?.has(ir(vn))||$t.onReleaseParsedCommandLine(vn,ze,$.getCompilerOptions())}),$=void 0,Gt=void 0,$e=void 0,tn=void 0;const _n={getRootFileNames:()=>se,getSourceFile:La,getSourceFileByPath:_l,getSourceFiles:()=>Ne,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>Rn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:sc,getOptionsDiagnostics:Mr,getGlobalDiagnostics:Tl,getSemanticDiagnostics:Nl,getCachedSemanticDiagnostics:ul,getSuggestionDiagnostics:we,getDeclarationDiagnostics:js,getBindAndCheckDiagnostics:ko,getProgramDiagnostics:nn,getTypeChecker:ho,getClassifiableNames:yo,getCommonSourceDirectory:Vr,emit:pa,getCurrentDirectory:()=>Di,getNodeCount:()=>ho().getNodeCount(),getIdentifierCount:()=>ho().getIdentifierCount(),getSymbolCount:()=>ho().getSymbolCount(),getTypeCount:()=>ho().getTypeCount(),getInstantiationCount:()=>ho().getInstantiationCount(),getRelationCacheSizes:()=>ho().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>We,getAutomaticTypeDirectiveNames:()=>Se,getAutomaticTypeDirectiveResolutions:()=>je,isSourceFileFromExternalLibrary:yl,isSourceFileDefaultLibrary:uu,getModeForUsageLocation:_f,getModeForResolutionAtIndex:$g,getSourceFileFromReference:cm,getLibFileFromReference:Wc,sourceFileToPackageName:Sn,redirectTargetsMap:kn,usesUriStyleNodeCoreModules:He,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:It,resolvedLibReferences:at,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:L,forEachResolvedTypeReferenceDirective:_e,getCurrentPackagesMap:()=>rn,typesPackageExists:Ge,packageBundlesTypes:ke,isEmittedFile:x1,getConfigFileParsingDiagnostics:Hc,getProjectReferences:cs,getResolvedProjectReferences:Lo,getProjectReferenceRedirect:Vl,getResolvedProjectReferenceToRedirect:ff,getResolvedProjectReferenceByPath:U_,forEachResolvedProjectReference:jd,isSourceOfProjectReferenceRedirect:Of,emitBuildInfo:Ql,fileExists:Ye,readFile:Vt,directoryExists:_t,getSymlinkCache:H_,realpath:(K=$t.realpath)==null?void 0:K.bind($t),useCaseSensitiveFileNames:()=>$t.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Ee,structureIsReused:pn,writeFile:Fs};return Rt(),At?.forEach(ze=>{switch(ze.kind){case 1:return Mn.add(oi(ze.file&&_l(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:const{file:Ze,pos:Mt,end:Ut}=$P(_n,ze.reason);return Mn.add(Qc(Ze,N.checkDefined(Mt),N.checkDefined(Ut)-Mt,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(vn=>Mn.add(vn));default:N.assertNever(ze)}}),F(),il("afterProgram"),ef("Program","beforeProgram","afterProgram"),(Z=sr)==null||Z.pop(),_n;function q(ze,Ze,Mt){var Ut;return(Ut=yt?.get(ze.path))==null?void 0:Ut.get(Ze,Mt)}function Oe(ze){const Ze=jn(ze);return N.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,ze.text,_f(Ze,ze))}function Lt(ze,Ze,Mt){var Ut;return(Ut=It?.get(ze.path))==null?void 0:Ut.get(Ze,Mt)}function L(ze,Ze){J(yt,ze,Ze)}function _e(ze,Ze){J(It,ze,Ze)}function J(ze,Ze,Mt){var Ut;Mt?(Ut=ze?.get(Mt.path))==null||Ut.forEach((vn,Yn,gn)=>Ze(vn,Yn,gn,Mt.path)):ze?.forEach((vn,Yn)=>vn.forEach((gn,$n,fi)=>Ze(gn,$n,fi,Yn)))}function me(){return rn||(rn=new Map,L(({resolvedModule:ze})=>{ze?.packageId&&rn.set(ze.packageId.name,ze.extension===".d.ts"||!!rn.get(ze.packageId.name))}),rn)}function Ge(ze){return me().has(MF(ze))}function ke(ze){return!!me().get(ze)}function Tt(ze){var Ze;(Ze=ze.resolutionDiagnostics)!=null&&Ze.length&&(At??(At=[])).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function kt(ze,Ze,Mt,Ut){if($t.resolveModuleNameLiterals||!$t.resolveModuleNames)return Tt(Mt);if(!Rn||Yc(Ze))return;const vn=go(ze.originalFileName,Di),Yn=ai(vn),gn=Bn(ze),$n=Rn.getFromNonRelativeNameCache(Ze,Ut,Yn,gn);$n&&Tt($n)}function en(ze,Ze,Mt){var Ut,vn;if(!ze.length)return et;const Yn=go(Ze.originalFileName,Di),gn=Bn(Ze);(Ut=sr)==null||Ut.push(sr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Yn}),il("beforeResolveModule");const $n=li(ze,Yn,gn,G,Ze,Mt);return il("afterResolveModule"),ef("ResolveModule","beforeResolveModule","afterResolveModule"),(vn=sr)==null||vn.pop(),$n}function bn(ze,Ze,Mt){var Ut,vn;if(!ze.length)return[];const Yn=Po(Ze)?void 0:Ze,gn=Po(Ze)?Ze:go(Ze.originalFileName,Di),$n=Yn&&Bn(Yn);(Ut=sr)==null||Ut.push(sr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:gn}),il("beforeResolveTypeReference");const fi=Qi(ze,gn,$n,G,Yn,Mt);return il("afterResolveTypeReference"),ef("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(vn=sr)==null||vn.pop(),fi}function Bn(ze){const Ze=ff(ze.originalFileName);if(Ze||!Su(ze.originalFileName))return Ze;const Mt=Hn(ze.path);if(Mt)return Mt;if(!$t.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Ih))return;const Ut=ir($t.realpath(ze.originalFileName));return Ut===ze.path?void 0:Hn(Ut)}function Hn(ze){const Ze=Nd(ze);if(Po(Ze))return ff(Ze);if(Ze)return jd(Mt=>{const Ut=Ps(Mt.commandLine.options);if(Ut)return ir(Ut)===ze?Mt:void 0})}function Ni(ze,Ze){return rl(Ai(ze),Ai(Ze))}function Ai(ze){if(bm(No,ze.fileName,!1)){const Ze=rc(ze.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;const Mt=zx($N(Ze,"lib."),".d.ts"),Ut=pw.indexOf(Mt);if(Ut!==-1)return Ut+1}return pw.length+2}function ir(ze){return ol(ze,Di,te)}function Vr(){if(ie===void 0){const ze=nr(Ne,Ze=>CS(Ze,_n));ie=YP(G,()=>Hi(ze,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),Di,te,Ze=>zt(ze,Ze))}return ie}function yo(){var ze;if(!Me){ho(),Me=new Set;for(const Ze of Ne)(ze=Ze.classifiableNames)==null||ze.forEach(Mt=>Me.add(Mt))}return Me}function Ci(ze,Ze){if(pn===0&&!Ze.ambientModuleNames.length)return en(ze,Ze,void 0);let Mt,Ut,vn;const Yn=oce,gn=$&&$.getSourceFile(Ze.fileName);for(let ri=0;ri{const Ut=(Ze?Ze.commandLine.projectReferences:he)[Mt],vn=jt(Ut);return ze?!vn||vn.sourceFile!==ze.sourceFile||!Km(ze.commandLine.fileNames,vn.commandLine.fileNames):vn!==void 0},(ze,Ze)=>{const Mt=Ze?U_(Ze.sourceFile.path).commandLine.projectReferences:he;return!Km(ze,Mt,rj)})}function xo(){var ze;if(!$)return 0;const Ze=$.getCompilerOptions();if(x4(Ze,G))return 0;const Mt=$.getRootFileNames();if(!Km(Mt,se)||!Jr())return 0;he&&(le=he.map(jt));const Ut=[],vn=[];if(pn=2,Gc($.getMissingFilePaths(),cr=>$t.fileExists(cr)))return 0;const Yn=$.getSourceFiles();let gn;(cr=>{cr[cr.Exists=0]="Exists",cr[cr.Modified=1]="Modified"})(gn||(gn={}));const $n=new Map;for(const cr of Yn){const ri=na(cr.fileName,Rn,$t,G);let fr=$t.getSourceFileByPath?$t.getSourceFileByPath(cr.fileName,cr.resolvedPath,ri,void 0,yn):$t.getSourceFile(cr.fileName,ri,void 0,yn);if(!fr)return 0;fr.packageJsonLocations=(ze=ri.packageJsonLocations)!=null&&ze.length?ri.packageJsonLocations:void 0,fr.packageJsonScope=ri.packageJsonScope,N.assert(!fr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Zo;if(cr.redirectInfo){if(fr!==cr.redirectInfo.unredirected)return 0;Zo=!1,fr=cr}else if($.redirectTargetsMap.has(cr.path)){if(fr!==cr)return 0;Zo=!1}else Zo=fr!==cr;fr.path=cr.path,fr.originalFileName=cr.originalFileName,fr.resolvedPath=cr.resolvedPath,fr.fileName=cr.fileName;const Ka=$.sourceFileToPackageName.get(cr.path);if(Ka!==void 0){const Zu=$n.get(Ka),mu=Zo?1:0;if(Zu!==void 0&&mu===1||Zu===1)return 0;$n.set(Ka,mu)}if(Zo)cr.impliedNodeFormat!==fr.impliedNodeFormat?pn=1:Km(cr.libReferenceDirectives,fr.libReferenceDirectives,gc)?cr.hasNoDefaultLib!==fr.hasNoDefaultLib?pn=1:Km(cr.referencedFiles,fr.referencedFiles,gc)?(op(fr),Km(cr.imports,fr.imports,Ss)&&Km(cr.moduleAugmentations,fr.moduleAugmentations,Ss)?(cr.flags&12582912)!==(fr.flags&12582912)?pn=1:Km(cr.typeReferenceDirectives,fr.typeReferenceDirectives,gc)||(pn=1):pn=1):pn=1:pn=1,vn.push(fr);else if(hi(cr.path))pn=1,vn.push(fr);else for(const Zu of cr.ambientModuleNames)Ue.set(Zu,cr.fileName);Ut.push(fr)}if(pn!==2)return pn;for(const cr of vn){const ri=Fxe(cr),fr=Ci(ri,cr);($e??($e=new Map)).set(cr.path,fr),ij(ri,fr,Qg=>$.getResolvedModule(cr,Qg.text,_f(cr,Qg)),Vre)&&(pn=1);const Ka=cr.typeReferenceDirectives,Zu=Ii(Ka,cr);(tn??(tn=new Map)).set(cr.path,Zu),ij(Ka,Zu,Qg=>$.getResolvedTypeReferenceDirective(cr,RJ(Qg),Fw(Qg,cr.impliedNodeFormat)),jre)&&(pn=1)}if(pn!==2)return pn;if(Bre(Ze,G)||$.resolvedLibReferences&&Gc($.resolvedLibReferences,(cr,ri)=>mg(ri).actual!==cr.actual))return 1;if($t.hasChangedAutomaticTypeDirectiveNames){if($t.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Se=xF(G,$t),!Km($.getAutomaticTypeDirectiveNames(),Se))return 1;ft=$.getMissingFilePaths(),N.assert(Ut.length===$.getSourceFiles().length);for(const cr of Ut)mt.set(cr.path,cr);return $.getFilesByNameMap().forEach((cr,ri)=>{if(!cr){mt.set(ri,cr);return}if(cr.path===ri){$.isSourceFileFromExternalLibrary(cr)&&Qt.set(cr.path,!0);return}mt.set(ri,mt.get(cr.path))}),Ne=Ut,Ee=$.getFileIncludeReasons(),At=$.getFileProcessingDiagnostics(),We=$.getResolvedTypeReferenceDirectives(),Se=$.getAutomaticTypeDirectiveNames(),je=$.getAutomaticTypeDirectiveResolutions(),Sn=$.sourceFileToPackageName,kn=$.redirectTargetsMap,He=$.usesUriStyleNodeCoreModules,yt=$.resolvedModules,It=$.resolvedTypeReferenceDirectiveNames,at=$.resolvedLibReferences,rn=$.getCurrentPackagesMap(),2}function Dn(ze){return{getPrependNodes:Vs,getCanonicalFileName:te,getCommonSourceDirectory:_n.getCommonSourceDirectory,getCompilerOptions:_n.getCompilerOptions,getCurrentDirectory:()=>Di,getSourceFile:_n.getSourceFile,getSourceFileByPath:_n.getSourceFileByPath,getSourceFiles:_n.getSourceFiles,getLibFileFromReference:_n.getLibFileFromReference,isSourceFileFromExternalLibrary:yl,getResolvedProjectReferenceToRedirect:ff,getProjectReferenceRedirect:Vl,isSourceOfProjectReferenceRedirect:Of,getSymlinkCache:H_,writeFile:ze||Fs,isEmitBlocked:du,readFile:Ze=>$t.readFile(Ze),fileExists:Ze=>{const Mt=ir(Ze);return _l(Mt)?!0:ft.has(Mt)?!1:$t.fileExists(Ze)},useCaseSensitiveFileNames:()=>$t.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var Mt;return(Mt=_n.getBuildInfo)==null?void 0:Mt.call(_n,Ze)},getSourceFileFromReference:(Ze,Mt)=>_n.getSourceFileFromReference(Ze,Mt),redirectTargetsMap:kn,getFileIncludeReasons:_n.getFileIncludeReasons,createHash:ia($t,$t.createHash)}}function Fs(ze,Ze,Mt,Ut,vn,Yn){$t.writeFile(ze,Ze,Mt,Ut,vn,Yn)}function Ql(ze){var Ze,Mt;N.assert(!Ps(G)),(Ze=sr)==null||Ze.push(sr.Phase.Emit,"emitBuildInfo",{},!0),il("beforeEmit");const Ut=r7(o7,Dn(ze),void 0,aJ,!1,!0);return il("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(Mt=sr)==null||Mt.pop(),Ut}function Lo(){return le}function cs(){return he}function Vs(){return LJ(he,(ze,Ze)=>{var Mt;return(Mt=le[Ze])==null?void 0:Mt.commandLine},ze=>{const Ze=ir(ze),Mt=_l(Ze);return Mt?Mt.text:mt.has(Ze)?void 0:$t.readFile(Ze)},$t)}function yl(ze){return!!Qt.get(ze.path)}function uu(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;const Ze=$t.useCaseSensitiveFileNames()?cS:r0;return G.lib?bt(G.lib,Mt=>Ze(ze.fileName,at.get(Mt).actual)):Ze(ze.fileName,Oi())}function ho(){return ye||(ye=Yse(_n))}function pa(ze,Ze,Mt,Ut,vn,Yn){var gn,$n;(gn=sr)==null||gn.push(sr.Phase.Emit,"emit",{path:ze?.path},!0);const fi=pu(()=>As(_n,ze,Ze,Mt,Ut,vn,Yn));return($n=sr)==null||$n.pop(),fi}function du(ze){return tt.has(ir(ze))}function As(ze,Ze,Mt,Ut,vn,Yn,gn){if(!gn){const cr=MJ(ze,Ze,Mt,Ut);if(cr)return cr}const $n=ho().getEmitResolver(Ps(G)?void 0:Ze,Ut);il("beforeEmit");const fi=r7($n,Dn(Mt),Ze,oJ(G,Yn,vn),vn,!1,gn);return il("afterEmit"),ef("Emit","beforeEmit","afterEmit"),fi}function La(ze){return _l(ir(ze))}function _l(ze){return mt.get(ze)||void 0}function wf(ze,Ze,Mt){return Xx(ze?Ze(ze,Mt):Pi(_n.getSourceFiles(),Ut=>(Mt&&Mt.throwIfCancellationRequested(),Ze(Ut,Mt))))}function sc(ze,Ze){return wf(ze,nu,Ze)}function Nl(ze,Ze){return wf(ze,Ap,Ze)}function ul(ze){var Ze;return ze?(Ze=De.perFile)==null?void 0:Ze.get(ze.path):De.allDiagnostics}function ko(ze,Ze){return Ms(ze,Ze)}function nn(ze){var Ze;if(QC(ze,G,_n))return et;const Mt=Mn.getDiagnostics(ze.fileName);return(Ze=ze.commentDirectives)!=null&&Ze.length?ee(ze,ze.commentDirectives,Mt).diagnostics:Mt}function js(ze,Ze){const Mt=_n.getCompilerOptions();return!ze||Ps(Mt)?Er(ze,Ze):wf(ze,xi,Ze)}function nu(ze){return ud(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=un(ze)),So(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function pu(ze){try{return ze()}catch(Ze){throw Ze instanceof Ux&&(ye=void 0),Ze}}function Ap(ze,Ze){return So(m7(Ms(ze,Ze),G),nn(ze))}function Ms(ze,Ze){return jr(ze,Ze,De,Rc)}function Rc(ze,Ze){return pu(()=>{if(QC(ze,G,_n))return et;const Mt=ho();N.assert(!!ze.bindDiagnostics);const vn=(ze.scriptKind===1||ze.scriptKind===2)&&gk(ze,G),Yn=bL(ze,G.checkJs),$n=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||Yn||vn||ze.scriptKind===7);let fi=$n?ze.bindDiagnostics:et,cr=$n?Mt.getDiagnostics(ze,Ze):et;return Yn&&(fi=nr(fi,ri=>g7.has(ri.code)),cr=nr(cr,ri=>g7.has(ri.code))),de(ze,$n&&!Yn,fi,cr,vn?ze.jsDocDiagnostics:void 0)})}function de(ze,Ze,...Mt){var Ut;const vn=da(Mt);if(!Ze||!((Ut=ze.commentDirectives)!=null&&Ut.length))return vn;const{diagnostics:Yn,directives:gn}=ee(ze,ze.commentDirectives,vn);for(const $n of gn.getUnusedExpectations())Yn.push(iie(ze,$n.range,f.Unused_ts_expect_error_directive));return Yn}function ee(ze,Ze,Mt){const Ut=qre(ze,Ze);return{diagnostics:Mt.filter(Yn=>Et(Yn,Ut)===-1),directives:Ut}}function we(ze,Ze){return pu(()=>ho().getSuggestionDiagnostics(ze,Ze))}function Et(ze,Ze){const{file:Mt,start:Ut}=ze;if(!Mt)return-1;const vn=Pg(Mt);let Yn=Jx(vn,Ut).line-1;for(;Yn>=0;){if(Ze.markUsed(Yn))return Yn;const gn=Mt.text.slice(vn[Yn],vn[Yn+1]).trim();if(gn!==""&&!/^(\s*)\/\/(.*)$/.test(gn))return-1;Yn--}return-1}function un(ze){return pu(()=>{const Ze=[];return Mt(ze,ze),NP(ze,Mt,Ut),Ze;function Mt($n,fi){switch(fi.kind){case 169:case 172:case 174:if(fi.questionToken===$n)return Ze.push(gn($n,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(fi.type===$n)return Ze.push(gn($n,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch($n.kind){case 273:if($n.isTypeOnly)return Ze.push(gn(fi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if($n.isTypeOnly)return Ze.push(gn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if($n.isTypeOnly)return Ze.push(gn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,np($n)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(gn($n,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if($n.isExportEquals)return Ze.push(gn($n,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if($n.token===119)return Ze.push(gn($n,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ri=fa(120);return N.assertIsDefined(ri),Ze.push(gn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,ri)),"skip";case 267:const fr=$n.flags&32?fa(145):fa(144);return N.assertIsDefined(fr),Ze.push(gn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,fr)),"skip";case 265:return Ze.push(gn($n,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return $n.body?void 0:(Ze.push(gn($n,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const Zo=N.checkDefined(fa(94));return Ze.push(gn($n,f._0_declarations_can_only_be_used_in_TypeScript_files,Zo)),"skip";case 235:return Ze.push(gn($n,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(gn($n.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(gn($n.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:N.fail()}}function Ut($n,fi){if(zH(fi)){const cr=An(fi.modifiers,Eu);cr&&Ze.push(gn(cr,f.Decorators_are_not_valid_here))}else if(YS(fi)&&fi.modifiers){const cr=Br(fi.modifiers,Eu);if(cr>=0){if(Ao(fi)&&!G.experimentalDecorators)Ze.push(gn(fi.modifiers[cr],f.Decorators_are_not_valid_here));else if(Ic(fi)){const ri=Br(fi.modifiers,rI);if(ri>=0){const fr=Br(fi.modifiers,jW);if(cr>ri&&fr>=0&&cr=0&&cr=0&&Ze.push(wa(gn(fi.modifiers[Zo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),gn(fi.modifiers[cr],f.Decorator_used_before_export_here)))}}}}}switch(fi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if($n===fi.typeParameters)return Ze.push(Yn($n,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if($n===fi.modifiers)return vn(fi.modifiers,fi.kind===243),"skip";break;case 172:if($n===fi.modifiers){for(const cr of $n)Ia(cr)&&cr.kind!==126&&cr.kind!==129&&Ze.push(gn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,fa(cr.kind)));return"skip"}break;case 169:if($n===fi.modifiers&&bt($n,Ia))return Ze.push(Yn($n,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($n===fi.typeArguments)return Ze.push(Yn($n,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function vn($n,fi){for(const cr of $n)switch(cr.kind){case 87:if(fi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(gn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,fa(cr.kind)));break;case 126:case 95:case 90:case 129:}}function Yn($n,fi,...cr){const ri=$n.pos;return Qc(ze,ri,$n.end-ri,fi,...cr)}function gn($n,fi,...cr){return $f(ze,$n,fi,...cr)}})}function Er(ze,Ze){return jr(ze,Ze,Pe,yr)}function yr(ze,Ze){return pu(()=>{const Mt=ho().getEmitResolver(ze,Ze);return jle(Dn($a),Mt,ze)||et})}function jr(ze,Ze,Mt,Ut){var vn;const Yn=ze?(vn=Mt.perFile)==null?void 0:vn.get(ze.path):Mt.allDiagnostics;if(Yn)return Yn;const gn=Ut(ze,Ze);return ze?(Mt.perFile||(Mt.perFile=new Map)).set(ze.path,gn):Mt.allDiagnostics=gn,gn}function xi(ze,Ze){return ze.isDeclarationFile?[]:Er(ze,Ze)}function Mr(){return Xx(So(Mn.getGlobalDiagnostics(),$o()))}function $o(){if(!G.configFile)return et;let ze=Mn.getDiagnostics(G.configFile.fileName);return jd(Ze=>{ze=So(ze,Mn.getDiagnostics(Ze.sourceFile.fileName))}),ze}function Tl(){return se.length?Xx(ho().getGlobalDiagnostics().slice()):et}function Hc(){return ne||et}function Us(ze,Ze,Mt,Ut){Ce(ga(ze),Ze,Mt,void 0,Ut)}function gc(ze,Ze){return ze.fileName===Ze.fileName}function Ss(ze,Ze){return ze.kind===80?Ze.kind===80&&ze.escapedText===Ze.escapedText:Ze.kind===11&&ze.text===Ze.text}function qc(ze,Ze){const Mt=w.createStringLiteral(ze),Ut=w.createImportDeclaration(void 0,void 0,Mt,void 0);return YA(Ut,2),qa(Mt,Ut),qa(Ut,Ze),Mt.flags&=-17,Ut.flags&=-17,Mt}function op(ze){if(ze.imports)return;const Ze=ud(ze),Mt=ac(ze);let Ut,vn,Yn;if((om(G)||Mt)&&!ze.isDeclarationFile){G.importHelpers&&(Ut=[qc(Kv,ze)]);const cr=W3(O3(G,ze),G);cr&&(Ut||(Ut=[])).push(qc(cr,ze))}for(const cr of ze.statements)gn(cr,!1);(ze.flags&4194304||Ze)&&$n(ze),ze.imports=Ut||et,ze.moduleAugmentations=vn||et,ze.ambientModuleNames=Yn||et;return;function gn(cr,ri){if(TL(cr)){const fr=yR(cr);fr&&Ma(fr)&&fr.text&&(!ri||!Yc(fr.text))&&(Jv(cr,!1),Ut=xn(Ut,fr),!He&&Xn===0&&!ze.isDeclarationFile&&(He=uo(fr.text,"node:")))}else if(Xl(cr)&&ku(cr)&&(ri||Zr(cr,128)||ze.isDeclarationFile)){cr.name.parent=cr;const fr=em(cr.name);if(Mt||ri&&!Yc(fr))(vn||(vn=[])).push(cr.name);else if(!ri){ze.isDeclarationFile&&(Yn||(Yn=[])).push(fr);const Zo=cr.body;if(Zo)for(const Ka of Zo.statements)gn(Ka,!0)}}}function $n(cr){const ri=/import|require/g;for(;ri.exec(cr.text)!==null;){const fr=fi(cr,ri.lastIndex);Ze&&Td(fr,!0)||Bp(fr)&&fr.arguments.length>=1&&ls(fr.arguments[0])?(Jv(fr,!1),Ut=xn(Ut,fr.arguments[0])):Vv(fr)&&(Jv(fr,!1),Ut=xn(Ut,fr.argument.literal))}}function fi(cr,ri){let fr=cr;const Zo=Ka=>{if(Ka.pos<=ri&&(riIl(vn,gn))){Mt&&(XE(vn)?Mt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):Mt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+da(Ar).join("', '")+"'"));return}const Yn=Ze(ze);if(Mt)if(Yn)k0(Ut)&&vn===$t.getCanonicalFileName(_l(Ut.file).fileName)&&Mt(f.A_file_cannot_have_a_reference_to_itself);else{const gn=Vl(ze);gn?Mt(f.Output_file_0_has_not_been_built_from_source_file_1,gn,ze):Mt(f.File_0_not_found,ze)}return Yn}else{const vn=G.allowNonTsExtensions&&Ze(ze);if(vn)return vn;if(Mt&&G.allowNonTsExtensions){Mt(f.File_0_not_found,ze);return}const Yn=Xe(Ar[0],gn=>Ze(ze+gn));return Mt&&!Yn&&Mt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+da(Ar).join("', '")+"'"),Yn}}function Ce(ze,Ze,Mt,Ut,vn){hd(ze,Yn=>Qo(Yn,Ze,Mt,vn,Ut),(Yn,...gn)=>$r(void 0,vn,Yn,gn),vn)}function Wt(ze,Ze){return Ce(ze,!1,!1,void 0,Ze)}function Jn(ze,Ze,Mt){!k0(Mt)&&bt(Ee.get(Ze.path),k0)?$r(Ze,Mt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,ze]):$r(Ze,Mt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Ze.fileName])}function vo(ze,Ze,Mt,Ut,vn,Yn,gn){var $n;const fi=Ah.createRedirectedSourceFile({redirectTarget:ze,unredirected:Ze});return fi.fileName=Mt,fi.path=Ut,fi.resolvedPath=vn,fi.originalFileName=Yn,fi.packageJsonLocations=($n=gn.packageJsonLocations)!=null&&$n.length?gn.packageJsonLocations:void 0,fi.packageJsonScope=gn.packageJsonScope,Qt.set(Ut,Xn>0),fi}function Qo(ze,Ze,Mt,Ut,vn){var Yn,gn;(Yn=sr)==null||Yn.push(sr.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Ze||void 0,fileIncludeKind:B6[Ut.kind]});const $n=Zl(ze,Ze,Mt,Ut,vn);return(gn=sr)==null||gn.pop(),$n}function na(ze,Ze,Mt,Ut){const vn=PJ(go(ze,Di),Ze?.getPackageJsonInfoCache(),Mt,Ut),Yn=os(Ut),gn=fk(Ut);return typeof vn=="object"?{...vn,languageVersion:Yn,setExternalModuleIndicator:gn,jsDocParsingMode:Mt.jsDocParsingMode}:{languageVersion:Yn,impliedNodeFormat:vn,setExternalModuleIndicator:gn,jsDocParsingMode:Mt.jsDocParsingMode}}function Zl(ze,Ze,Mt,Ut,vn){var Yn;const gn=ir(ze);if(ot){let fr=Nd(gn);if(!fr&&$t.realpath&&G.preserveSymlinks&&Su(ze)&&ze.includes(Ih)){const Zo=ir($t.realpath(ze));Zo!==gn&&(fr=Nd(Zo))}if(fr){const Zo=Po(fr)?Qo(fr,Ze,Mt,Ut,vn):void 0;return Zo&&dl(Zo,gn,ze,void 0),Zo}}const $n=ze;if(mt.has(gn)){const fr=mt.get(gn);if(yc(fr||void 0,Ut),fr&&G.forceConsistentCasingInFileNames!==!1){const Zo=fr.fileName;ir(Zo)!==ir(ze)&&(ze=Vl(ze)||ze);const Zu=AV(Zo,Di),mu=AV(ze,Di);Zu!==mu&&Jn(ze,fr,Ut)}return fr&&Qt.get(fr.path)&&Xn===0?(Qt.set(fr.path,!1),G.noResolve||(Nh(fr,Ze),Kg(fr)),G.noLib||Ud(fr),hn.set(fr.path,!1),ct(fr)):fr&&hn.get(fr.path)&&Xn$r(void 0,Ut,f.Cannot_read_file_0_Colon_1,[ze,fr]),yn);if(vn){const fr=Bv(vn),Zo=Wa.get(fr);if(Zo){const Ka=vo(Zo,ri,ze,gn,ir(ze),$n,cr);return kn.add(Zo.path,ze),dl(Ka,gn,ze,fi),yc(Ka,Ut),Sn.set(gn,N4(vn)),fe.push(Ka),Ka}else ri&&(Wa.set(fr,ri),Sn.set(gn,N4(vn)))}if(dl(ri,gn,ze,fi),ri){if(Qt.set(gn,Xn>0),ri.fileName=ze,ri.path=gn,ri.resolvedPath=ir(ze),ri.originalFileName=$n,ri.packageJsonLocations=(Yn=cr.packageJsonLocations)!=null&&Yn.length?cr.packageJsonLocations:void 0,ri.packageJsonScope=cr.packageJsonScope,yc(ri,Ut),$t.useCaseSensitiveFileNames()){const fr=lh(gn),Zo=Ct.get(fr);Zo?Jn(ze,Zo,Ut):Ct.set(fr,ri)}ao=ao||ri.hasNoDefaultLib&&!Mt,G.noResolve||(Nh(ri,Ze),Kg(ri)),G.noLib||Ud(ri),ct(ri),Ze?oe.push(ri):fe.push(ri)}return ri}function yc(ze,Ze){ze&&Ee.add(ze.path,Ze)}function dl(ze,Ze,Mt,Ut){Ut?(vl(Mt,Ut,ze),vl(Mt,Ze,ze||!1)):vl(Mt,Ze,ze)}function vl(ze,Ze,Mt){mt.set(Ze,Mt),Mt!==void 0?ft.delete(Ze):ft.set(Ze,ze)}function Vl(ze){const Ze=ec(ze);return Ze&&Jc(Ze,ze)}function ec(ze){if(!(!le||!le.length||Su(ze)||Il(ze,".json")))return ff(ze)}function Jc(ze,Ze){const Mt=Ps(ze.commandLine.options);return Mt?E0(Mt,".d.ts"):XP(Ze,ze.commandLine,!$t.useCaseSensitiveFileNames())}function ff(ze){pt===void 0&&(pt=new Map,jd(Mt=>{ir(G.configFilePath)!==Mt.sourceFile.path&&Mt.commandLine.fileNames.forEach(Ut=>pt.set(ir(Ut),Mt.sourceFile.path))}));const Ze=pt.get(ir(ze));return Ze&&U_(Ze)}function jd(ze){return DJ(le,ze)}function Nd(ze){if(Su(ze))return j===void 0&&(j=new Map,jd(Ze=>{const Mt=Ps(Ze.commandLine.options);if(Mt){const Ut=E0(Mt,".d.ts");j.set(ir(Ut),!0)}else{const Ut=Sd(()=>mD(Ze.commandLine,!$t.useCaseSensitiveFileNames()));Xe(Ze.commandLine.fileNames,vn=>{if(!Su(vn)&&!Il(vn,".json")){const Yn=XP(vn,Ze.commandLine,!$t.useCaseSensitiveFileNames(),Ut);j.set(ir(Yn),vn)}})}})),j.get(ze)}function Of(ze){return ot&&!!ff(ze)}function U_(ze){if(Fe)return Fe.get(ze)||void 0}function Nh(ze,Ze){Xe(ze.referencedFiles,(Mt,Ut)=>{Ce(c7(Mt.fileName,ze.fileName),Ze,!1,void 0,{kind:4,file:ze.path,index:Ut})})}function Kg(ze){const Ze=ze.typeReferenceDirectives;if(!Ze.length)return;const Mt=tn?.get(ze.path)||Ii(Ze,ze),Ut=EI();(It??(It=new Map)).set(ze.path,Ut);for(let vn=0;vn{const{libName:Ut,libFileName:vn}=Wxe(Ze);if(vn)Us(Ip(vn),!0,!0,{kind:7,file:ze.path,index:Mt});else{const Yn=zx($N(Ut,"lib."),".d.ts"),gn=YN(Yn,pw,nl),$n=gn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,fi=gn?[Ut,gn]:[Ut];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:Mt},diagnostic:$n,args:fi})}})}function te(ze){return $t.getCanonicalFileName(ze)}function ct(ze){var Ze;if(op(ze),ze.imports.length||ze.moduleAugmentations.length){const Mt=Fxe(ze),Ut=$e?.get(ze.path)||Ci(Mt,ze);N.assert(Ut.length===Mt.length);const vn=((Ze=Bn(ze))==null?void 0:Ze.commandLine.options)||G,Yn=EI();(yt??(yt=new Map)).set(ze.path,Yn);for(let gn=0;gnPn,mu=Ka&&!kJ(vn,$n,ze)&&!vn.noResolve&&gnac(gn)&&!gn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Ze<2&&G.isolatedModules&&us(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&us(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Mt&&Ze<2&&G.module===0){const gn=SS(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Mn.add(Qc(Mt,gn.start,gn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))us(f.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&Mt){const gn=SS(Mt,typeof Mt.externalModuleIndicator=="boolean"?Mt:Mt.externalModuleIndicator);Mn.add(Qc(Mt,gn.start,gn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(T0(G)&&(fd(G)===1?us(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):L3(G)||us(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){const gn=Vr();G.outDir&&gn===""&&Ne.some($n=>dh($n.fileName)>1)&&us(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Ze===0&&us(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!Xv(G)&&Mn.add(Hl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(Nf(G)||us(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&us(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&us(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&us(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",LP.get(""+G.jsx)),yI(G.jsxFactory,Ze)||km("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!tf(G.reactNamespace,Ze)&&km("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||us(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",LP.get(""+G.jsx)),yI(G.jsxFragmentFactory,Ze)||km("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",LP.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&us(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",LP.get(""+G.jsx)),G.preserveValueImports&&wu(G)<5&&us(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const Ut=wu(G);G.verbatimModuleSyntax&&((Ut===2||Ut===3||Ut===4)&&us(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&Om("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&Om("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&km("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const vn=fd(G);if(G.resolvePackageJsonExports&&!qA(vn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!qA(vn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!qA(vn)&&us(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),vn===100&&!M3(Ut)&&Ut!==200&&km("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),ZN[Ut]&&100<=Ut&&Ut<=199&&!(3<=vn&&vn<=99)){const gn=ZN[Ut];km("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,gn,gn)}else if(Hx[vn]&&3<=vn&&vn<=99&&!(100<=Ut&&Ut<=199)){const gn=Hx[vn];km("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,gn,gn)}if(!G.noEmit&&!G.suppressOutputPathCheck){const gn=Dn(),$n=new Set;sJ(gn,fi=>{G.emitDeclarationOnly||Yn(fi.jsFilePath,$n),Yn(fi.declarationFilePath,$n)})}function Yn(gn,$n){if(gn){const fi=ir(gn);if(mt.has(fi)){let ri;G.configFilePath||(ri=jo(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ri=jo(ri,f.Cannot_write_file_0_because_it_would_overwrite_input_file,gn),I1(gn,C3(ri))}const cr=$t.useCaseSensitiveFileNames()?fi:lh(fi);$n.has(cr)?I1(gn,Hl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,gn)):$n.add(cr)}}}function Te(){const ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new vm(ze);Y()}return vm.zero}function st(ze,Ze,Mt,Ut){const vn=new vm(ze),Yn=new vm(Ze),gn=new vm(ve||ue),$n=Te(),fi=Yn.compareTo(gn)!==1,cr=!fi&&$n.compareTo(vn)===-1;(fi||cr)&&Ut((ri,fr,Zo)=>{fi?fr===void 0?Mt(ri,fr,Zo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ri):Mt(ri,fr,Zo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ri,fr):fr===void 0?Mt(ri,fr,Zo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ri,Ze,ze):Mt(ri,fr,Zo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ri,fr,Ze,ze)})}function Jt(){function ze(Ze,Mt,Ut,vn,...Yn){if(Ut){const gn=jo(void 0,f.Use_0_instead,Ut),$n=jo(gn,vn,...Yn);Ui(!Mt,Ze,void 0,$n)}else Ui(!Mt,Ze,void 0,vn,...Yn)}st("5.0","5.5",ze,Ze=>{G.target===0&&Ze("target","ES3"),G.noImplicitUseStrict&&Ze("noImplicitUseStrict"),G.keyofStringsOnly&&Ze("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Ze("noStrictGenericChecks"),G.charset&&Ze("charset"),G.out&&Ze("out",void 0,"outFile"),G.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function rr(ze,Ze,Mt){function Ut(vn,Yn,gn,$n,...fi){wm(Ze,Mt,$n,...fi)}st("5.0","5.5",Ut,vn=>{ze.prepend&&vn("prepend")})}function oi(ze,Ze,Mt,Ut){var vn;let Yn,gn,$n=k0(Ze)?Ze:void 0;ze&&((vn=Ee.get(ze.path))==null||vn.forEach(Zo)),Ze&&Zo(Ze),$n&&Yn?.length===1&&(Yn=void 0);const fi=$n&&$P(_n,$n),cr=Yn&&jo(Yn,f.The_file_is_in_the_program_because_Colon),ri=ze&&$J(ze),fr=jo(ri?cr?[cr,...ri]:ri:cr,Mt,...Ut||et);return fi&&hD(fi)?O4(fi.file,fi.pos,fi.end-fi.pos,fr,gn):C3(fr,gn);function Zo(Ka){(Yn||(Yn=[])).push(eK(_n,Ka)),!$n&&k0(Ka)?$n=Ka:$n!==Ka&&(gn=xn(gn,Fa(Ka))),Ka===Ze&&(Ze=void 0)}}function $r(ze,Ze,Mt,Ut){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Ze,diagnostic:Mt,args:Ut})}function io(ze,Ze,Mt){Mn.add(oi(ze,void 0,Ze,Mt))}function Fa(ze){if(k0(ze)){const Ut=$P(_n,ze);let vn;switch(ze.kind){case 3:vn=f.File_is_included_via_import_here;break;case 4:vn=f.File_is_included_via_reference_here;break;case 5:vn=f.File_is_included_via_type_library_reference_here;break;case 7:vn=f.File_is_included_via_library_reference_here;break;default:N.assertNever(ze)}return hD(Ut)?Qc(Ut.file,Ut.pos,Ut.end-Ut.pos,vn):void 0}if(!G.configFile)return;let Ze,Mt;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;const Ut=go(se[ze.index],Di),vn=QJ(_n,Ut);if(vn){Ze=j4(G.configFile,"files",vn),Mt=f.File_is_matched_by_files_list_specified_here;break}const Yn=ZJ(_n,Ut);if(!Yn||!Po(Yn))return;Ze=j4(G.configFile,"include",Yn),Mt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const gn=N.checkDefined(le?.[ze.index]),$n=d7(he,le,(Zo,Ka,Zu)=>Zo===gn?{sourceFile:Ka?.sourceFile||G.configFile,index:Zu}:void 0);if(!$n)return;const{sourceFile:fi,index:cr}=$n,ri=NL(fi,"references",Zo=>md(Zo.initializer)?Zo.initializer:void 0);return ri&&ri.elements.length>cr?$f(fi,ri.elements[cr],ze.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(!G.types)return;Ze=pb("types",ze.typeReference),Mt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Ze=pb("lib",G.lib[ze.index]),Mt=f.File_is_library_specified_here;break}const fr=Gc(mw.type,(Zo,Ka)=>Zo===os(G)?Ka:void 0);Ze=fr?Hd("target",fr):void 0,Mt=f.File_is_default_library_for_target_specified_here;break;default:N.assertNever(ze)}return Ze&&$f(G.configFile,Ze,Mt)}function za(){const ze=G.suppressOutputPathCheck?void 0:Ky(G);d7(he,le,(Ze,Mt,Ut)=>{const vn=(Mt?Mt.commandLine.projectReferences:he)[Ut],Yn=Mt&&Mt.sourceFile;if(rr(vn,Yn,Ut),!Ze){wm(Yn,Ut,f.File_0_not_found,vn.path);return}const gn=Ze.commandLine.options;if((!gn.composite||gn.noEmit)&&(Mt?Mt.commandLine.fileNames:se).length&&(gn.composite||wm(Yn,Ut,f.Referenced_project_0_must_have_setting_composite_Colon_true,vn.path),gn.noEmit&&wm(Yn,Ut,f.Referenced_project_0_may_not_disable_emit,vn.path)),vn.prepend){const $n=Ps(gn);$n?$t.fileExists($n)||wm(Yn,Ut,f.Output_file_0_from_project_1_does_not_exist,$n,vn.path):wm(Yn,Ut,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,vn.path)}!Mt&&ze&&ze===Ky(gn)&&(wm(Yn,Ut,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,vn.path),tt.set(ir(ze),!0))})}function Ol(ze,Ze,Mt,...Ut){let vn=!0;xp(Yn=>{Oa(Yn.initializer)&&pR(Yn.initializer,ze,gn=>{const $n=gn.initializer;md($n)&&$n.elements.length>Ze&&(Mn.add($f(G.configFile,$n.elements[Ze],Mt,...Ut)),vn=!1)})}),vn&&Mn.add(Hl(Mt,...Ut))}function fu(ze,Ze,Mt,...Ut){let vn=!0;xp(Yn=>{Oa(Yn.initializer)&&rv(Yn.initializer,ze,Ze,void 0,Mt,...Ut)&&(vn=!1)}),vn&&Mn.add(Hl(Mt,...Ut))}function Dc(ze,Ze){return pR(Yg(),ze,Ze)}function xp(ze){return Dc("paths",ze)}function Hd(ze,Ze){return Dc(ze,Mt=>Ma(Mt.initializer)&&Mt.initializer.text===Ze?Mt.initializer:void 0)}function pb(ze,Ze){const Mt=Yg();return Mt&&fie(Mt,ze,Ze)}function us(ze,Ze,Mt,Ut){Ui(!0,Ze,Mt,ze,Ze,Mt,Ut)}function km(ze,Ze,...Mt){Ui(!1,ze,void 0,Ze,...Mt)}function wm(ze,Ze,Mt,...Ut){const vn=NL(ze||G.configFile,"references",Yn=>md(Yn.initializer)?Yn.initializer:void 0);vn&&vn.elements.length>Ze?Mn.add($f(ze||G.configFile,vn.elements[Ze],Mt,...Ut)):Mn.add(Hl(Mt,...Ut))}function Ui(ze,Ze,Mt,Ut,...vn){const Yn=Yg();(!Yn||!rv(Yn,ze,Ze,Mt,Ut,...vn))&&("messageText"in Ut?Mn.add(C3(Ut)):Mn.add(Hl(Ut,...vn)))}function Yg(){return Bt===void 0&&(Bt=pR(TC(G.configFile),"compilerOptions",ze=>Oa(ze.initializer)?ze.initializer:void 0)||!1),Bt||void 0}function rv(ze,Ze,Mt,Ut,vn,...Yn){let gn=!1;return pR(ze,Mt,$n=>{"messageText"in vn?Mn.add(wg(G.configFile,Ze?$n.name:$n.initializer,vn)):Mn.add($f(G.configFile,Ze?$n.name:$n.initializer,vn,...Yn)),gn=!0},Ut),gn}function Om(ze,Ze){const Mt=Yg();Mt?rv(Mt,!0,ze,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze):us(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Ze)}function I1(ze,Ze){tt.set(ir(ze),!0),Mn.add(Ze)}function x1(ze){if(G.noEmit)return!1;const Ze=ir(ze);if(_l(Ze))return!1;const Mt=Ps(G);if(Mt)return mf(Ze,Mt)||mf(Ze,Ad(Mt)+".d.ts");if(G.declarationDir&&bm(G.declarationDir,Ze,Di,!$t.useCaseSensitiveFileNames()))return!0;if(G.outDir)return bm(G.outDir,Ze,Di,!$t.useCaseSensitiveFileNames());if(Tc(Ze,GR)||Su(Ze)){const Ut=Ad(Ze);return!!_l(Ut+".ts")||!!_l(Ut+".tsx")}return!1}function mf(ze,Ze){return Cg(ze,Ze,Di,!$t.useCaseSensitiveFileNames())===0}function H_(){return $t.getSymlinkCache?$t.getSymlinkCache():(pe||(pe=EU(Di,te)),Ne&&!pe.hasProcessedResolutions()&&pe.setSymlinksFromResolutions(L,_e,je),pe)}function _f(ze,Ze){var Mt;const Ut=((Mt=Bn(ze))==null?void 0:Mt.commandLine.options)||G;return IJ(ze,Ze,Ut)}function $g(ze,Ze){return _f(ze,Gw(ze,Ze))}}function aHe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:$a,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(v(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const M=Ps(R.commandLine.options);if(M)t.add(ai(e.toPath(M)));else{const C=R.commandLine.options.declarationDir||R.commandLine.options.outDir;C&&t.add(e.toPath(C))}})),A(I,!1)):!1),o&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?o.call(e.compilerHost,I):[]),s&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||s.call(e.compilerHost,I)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(I){return r.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!Su(I)?!1:A(I,!0)}function h(I){const R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?Po(R)?r.call(e.compilerHost,R):!0:void 0}function m(I){const R=e.toPath(I),M=`${R}${al}`;return mh(t,C=>R===C||uo(C,M)||uo(R,`${C}/`))}function v(I){var R;if(!e.getResolvedProjectReferences()||nP(I)||!s||!I.includes(Ih))return;const M=e.getSymlinkCache(),C=Bc(e.toPath(I));if((R=M.getSymlinkedDirectories())!=null&&R.has(C))return;const O=ga(s.call(e.compilerHost,I));let U;if(O===I||(U=Bc(e.toPath(O)))===C){M.setSymlinkedDirectory(C,!1);return}M.setSymlinkedDirectory(I,{real:Bc(O),realPath:U})}function A(I,R){var M;const C=R?V=>h(V):V=>m(V),O=C(I);if(O!==void 0)return O;const U=e.getSymlinkCache(),K=U.getSymlinkedDirectories();if(!K)return!1;const Z=e.toPath(I);return Z.includes(Ih)?R&&((M=U.getSymlinkedFiles())!=null&&M.has(Z))?!0:mn(K.entries(),([V,se])=>{if(!se||!uo(Z,V))return;const G=C(Z.replace(V,se.realPath));if(R&&G){const ne=go(I,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(Z,`${se.real}${ne.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function MJ(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ps(o)?y7: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&&Nf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Ps(o)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function m7(e,t){return nr(e,r=>!r.skippedOn||!t[r.skippedOn])}function _7(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return N.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:ia(t,t.directoryExists),getDirectories:ia(t,t.getDirectories),realpath:ia(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||n0,trace:e.trace?r=>e.trace(r):void 0}}function LJ(e,t,r,i){if(!e)return et;let o;for(let s=0;si);for(const i of t)i.kind===11&&r.push(i);return r}function Gw({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))(wJ||{}),OJ="\x1B[7m",WJ=" ",nce="\x1B[0m",rce="...",zxe=" ",ice=" ",oce={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},h7={getName:tce,getMode:(e,t,r)=>AJ(t,e,r)},Bxe={getName:RJ,getMode:(e,t)=>Fw(e,t?.impliedNodeFormat)},yD="__inferred type names__.ts",g7=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]),y7={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),lHe=T({"src/compiler/builderStatePublic.ts"(){}});function ace(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function h(m,v,A){l.push({name:m,writeByteOrderMark:A,text:v})}}var Mm,cHe=T({"src/compiler/builderState.ts"(){ra(),(e=>{function t(){function $(Y,oe,fe){const Ne={getKeys:pe=>oe.get(pe),getValues:pe=>Y.get(pe),keys:()=>Y.keys(),deleteKey:pe=>{(fe||(fe=new Set)).add(pe);const ie=Y.get(pe);return ie?(ie.forEach(ye=>i(oe,ye,pe)),Y.delete(pe),!0):!1},set:(pe,ie)=>{fe?.delete(pe);const ye=Y.get(pe);return Y.set(pe,ie),ye?.forEach(Me=>{ie.has(Me)||i(oe,Me,pe)}),ie.forEach(Me=>{ye?.has(Me)||r(oe,Me,pe)}),Ne}};return Ne}return $(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r($,Y,oe){let fe=$.get(Y);fe||(fe=new Set,$.set(Y,fe)),fe.add(oe)}function i($,Y,oe){const fe=$.get(Y);return fe?.delete(oe)?(fe.size||$.delete(Y),!0):!1}function o($){return Hi($.declarations,Y=>{var oe;return(oe=jn(Y))==null?void 0:oe.resolvedPath})}function s($,Y){const oe=$.getSymbolAtLocation(Y);return oe&&o(oe)}function l($,Y,oe,fe){return ol($.getProjectReferenceRedirect(Y)||Y,oe,fe)}function u($,Y,oe){let fe;if(Y.imports&&Y.imports.length>0){const ye=$.getTypeChecker();for(const Me of Y.imports){const Ue=s(ye,Me);Ue?.forEach(ie)}}const Ne=ai(Y.resolvedPath);if(Y.referencedFiles&&Y.referencedFiles.length>0)for(const ye of Y.referencedFiles){const Me=l($,ye.fileName,Ne,oe);ie(Me)}if($.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ye})=>{if(!ye)return;const Me=ye.resolvedFileName,Ue=l($,Me,Ne,oe);ie(Ue)},Y),Y.moduleAugmentations.length){const ye=$.getTypeChecker();for(const Me of Y.moduleAugmentations){if(!Ma(Me))continue;const Ue=ye.getSymbolAtLocation(Me);Ue&&pe(Ue)}}for(const ye of $.getTypeChecker().getAmbientModules())ye.declarations&&ye.declarations.length>1&&pe(ye);return fe;function pe(ye){if(ye.declarations)for(const Me of ye.declarations){const Ue=jn(Me);Ue&&Ue!==Y&&ie(Ue.resolvedPath)}}function ie(ye){(fe||(fe=new Set)).add(ye)}}function p($,Y){return Y&&!Y.referencedMap==!$}e.canReuseOldState=p;function h($,Y,oe){var fe,Ne,pe;const ie=new Map,ye=$.getCompilerOptions(),Me=Ps(ye),Ue=ye.module!==0&&!Me?t():void 0,Ee=Ue?t():void 0,De=p(Ue,Y);$.getTypeChecker();for(const Pe of $.getSourceFiles()){const We=N.checkDefined(Pe.version,"Program intended to be used with Builder should have source files with versions set"),At=De?(fe=Y.oldSignatures)==null?void 0:fe.get(Pe.resolvedPath):void 0,Se=At===void 0?De?(Ne=Y.fileInfos.get(Pe.resolvedPath))==null?void 0:Ne.signature:void 0:At||void 0;if(Ue){const je=u($,Pe,$.getCanonicalFileName);if(je&&Ue.set(Pe.resolvedPath,je),De){const at=(pe=Y.oldExportedModulesMap)==null?void 0:pe.get(Pe.resolvedPath),Gt=at===void 0?Y.exportedModulesMap.getValues(Pe.resolvedPath):at||void 0;Gt&&Ee.set(Pe.resolvedPath,Gt)}}ie.set(Pe.resolvedPath,{version:We,signature:Se,affectsGlobalScope:Me?void 0:G(Pe)||void 0,impliedFormat:Pe.impliedNodeFormat})}return{fileInfos:ie,referencedMap:Ue,exportedModulesMap:Ee,useFileVersionAsSignature:!oe&&!De}}e.create=h;function m($){$.allFilesExcludingDefaultLibraryFile=void 0,$.allFileNames=void 0}e.releaseCache=m;function v($,Y,oe,fe,Ne){var pe,ie;const ye=A($,Y,oe,fe,Ne);return(pe=$.oldSignatures)==null||pe.clear(),(ie=$.oldExportedModulesMap)==null||ie.clear(),ye}e.getFilesAffectedBy=v;function A($,Y,oe,fe,Ne){const pe=Y.getSourceFileByPath(oe);return pe?M($,Y,pe,fe,Ne)?($.referencedMap?ve:he)($,Y,pe,fe,Ne):[pe]:et}e.getFilesAffectedByWithOldState=A;function I($,Y,oe){$.fileInfos.get(oe).signature=Y,($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=I;function R($,Y,oe,fe,Ne){$.emit(Y,(pe,ie,ye,Me,Ue,Ee)=>{N.assert(Su(pe),`File extension for signature expected to be dts: Got:: ${pe}`),Ne(zJ($,Y,ie,fe,Ee),Ue)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M($,Y,oe,fe,Ne,pe=$.useFileVersionAsSignature){var ie;if((ie=$.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;const ye=$.fileInfos.get(oe.resolvedPath),Me=ye.signature;let Ue;if(!oe.isDeclarationFile&&!pe&&R(Y,oe,fe,Ne,(Ee,De)=>{Ue=Ee,Ue!==Me&&C($,oe,De[0].exportedModulesFromDeclarationEmit)}),Ue===void 0&&(Ue=oe.version,$.exportedModulesMap&&Ue!==Me)){($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(oe.resolvedPath,$.exportedModulesMap.getValues(oe.resolvedPath)||!1);const Ee=$.referencedMap?$.referencedMap.getValues(oe.resolvedPath):void 0;Ee?$.exportedModulesMap.set(oe.resolvedPath,Ee):$.exportedModulesMap.deleteKey(oe.resolvedPath)}return($.oldSignatures||($.oldSignatures=new Map)).set(oe.resolvedPath,Me||!1),($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ye.signature=Ue,Ue!==Me}e.updateShapeSignature=M;function C($,Y,oe){if(!$.exportedModulesMap)return;($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(Y.resolvedPath,$.exportedModulesMap.getValues(Y.resolvedPath)||!1);const fe=O(oe);fe?$.exportedModulesMap.set(Y.resolvedPath,fe):$.exportedModulesMap.deleteKey(Y.resolvedPath)}e.updateExportedModules=C;function O($){let Y;return $?.forEach(oe=>o(oe).forEach(fe=>(Y??(Y=new Set)).add(fe))),Y}e.getExportedModules=O;function U($,Y,oe){const fe=Y.getCompilerOptions();if(Ps(fe)||!$.referencedMap||G(oe))return K($,Y);const Ne=new Set,pe=[oe.resolvedPath];for(;pe.length;){const ie=pe.pop();if(!Ne.has(ie)){Ne.add(ie);const ye=$.referencedMap.getValues(ie);if(ye)for(const Me of ye.keys())pe.push(Me)}}return zo(Iv(Ne.keys(),ie=>{var ye;return((ye=Y.getSourceFileByPath(ie))==null?void 0:ye.fileName)??ie}))}e.getAllDependencies=U;function K($,Y){if(!$.allFileNames){const oe=Y.getSourceFiles();$.allFileNames=oe===et?et:oe.map(fe=>fe.fileName)}return $.allFileNames}function Z($,Y){const oe=$.referencedMap.getKeys(Y);return oe?zo(oe.keys()):[]}e.getReferencedByPaths=Z;function V($){for(const Y of $.statements)if(!k4(Y))return!1;return!0}function se($){return bt($.moduleAugmentations,Y=>R_(Y.parent))}function G($){return se($)||!zp($)&&!Qf($)&&!V($)}function ne($,Y,oe){if($.allFilesExcludingDefaultLibraryFile)return $.allFilesExcludingDefaultLibraryFile;let fe;oe&&Ne(oe);for(const pe of Y.getSourceFiles())pe!==oe&&Ne(pe);return $.allFilesExcludingDefaultLibraryFile=fe||et,$.allFilesExcludingDefaultLibraryFile;function Ne(pe){Y.isSourceFileDefaultLibrary(pe)||(fe||(fe=[])).push(pe)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function he($,Y,oe){const fe=Y.getCompilerOptions();return fe&&Ps(fe)?[oe]:ne($,Y,oe)}function ve($,Y,oe,fe,Ne){if(G(oe))return ne($,Y,oe);const pe=Y.getCompilerOptions();if(pe&&(om(pe)||Ps(pe)))return[oe];const ie=new Map;ie.set(oe.resolvedPath,oe);const ye=Z($,oe.resolvedPath);for(;ye.length>0;){const Me=ye.pop();if(!ie.has(Me)){const Ue=Y.getSourceFileByPath(Me);ie.set(Me,Ue),Ue&&M($,Y,Ue,fe,Ne)&&ye.push(...Z($,Ue.resolvedPath))}}return zo(Iv(ie.values(),Me=>Me))}})(Mm||(Mm={}))}});function ab(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Nf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function vD(e,t){const r=t&&(Ry(t)?t:ab(t)),i=Ry(e)?e:ab(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function uHe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!mh(e,r=>!t.has(r))}function dHe(e,t){var r,i;const o=Mm.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=Ps(s);l?s.composite&&t?.outSignature&&l===Ps(t?.compilerOptions)&&(o.outSignature=t.outSignature&&Vxe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;const u=Mm.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,h=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Soe(s,p),m=s.composite&&t?.emitSignatures&&!l&&!Aoe(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const v=o.referencedMap,A=u?t.referencedMap:void 0,I=h&&!s.skipLibCheck==!p.skipLibCheck,R=I&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,C)=>{var O;let U,K;if(!u||!(U=t.fileInfos.get(C))||U.version!==M.version||U.impliedFormat!==M.impliedFormat||!uHe(K=v&&v.getValues(C),A&&A.getValues(C))||K&&mh(K,Z=>!o.fileInfos.has(Z)&&t.fileInfos.has(Z)))Gxe(o,C);else{const Z=e.getSourceFileByPath(C),V=(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(C);if(V&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(C,t.hasReusableDiagnostic?Hxe(V,e):jxe(V,e)),h){if(Z.isDeclarationFile&&!I||Z.hasNoDefaultLib&&!R)return;const se=t.semanticDiagnosticsPerFile.get(C);se&&(o.semanticDiagnosticsPerFile.set(C,t.hasReusableDiagnostic?Hxe(se,e):jxe(se,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(C))}}if(m){const Z=t.emitSignatures.get(C);Z&&(o.emitSignatures??(o.emitSignatures=new Map)).set(C,Vxe(s,t.compilerOptions,Z))}}),u&&Gc(t.fileInfos,(M,C)=>o.fileInfos.has(C)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Mm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>Gxe(o,M.resolvedPath));else if(p){const M=Toe(s,p)?ab(s):vD(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(C=>{o.changedFilesSet.has(C.resolvedPath)||pce(o,C.resolvedPath,M)}),N.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),bt(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=ab(s))),o}function Gxe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function Vxe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Po(r)?[r]:r[0]}function jxe(e,t){return e.length?eo(e,r=>{if(Po(r.messageText))return r;const i=sce(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 sce(e,t,r,i){const o=i(e);if(o)return{...D4(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:Uxe(e.next,t,r,i)};const s=Uxe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function Uxe(e,t,r,i){return eo(e,o=>sce(o,t,r,i))}function Hxe(e,t){if(!e.length)return et;let r;return e.map(o=>{const s=qxe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>qxe(u,t,i)):[]:void 0,s});function i(o){return r??(r=ai(go(Ky(t.getCompilerOptions()),t.getCurrentDirectory()))),ol(o,r,t.getCanonicalFileName)}}function qxe(e,t,r){const{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:Po(e.messageText)?e.messageText:sce(e.messageText,o,t,s=>s.info)}}function pHe(e){Mm.releaseCache(e),e.program=void 0}function fHe(e){const t=Ps(e.compilerOptions);return N.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 mHe(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 Jxe(e,t){N.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function Kxe(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const h=e.seenAffectedFiles;let m=e.affectedFilesIndex;for(;m{const s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function hHe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Gc(e.affectedFilesPendingEmit,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!CS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}const u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath);let p=vD(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function gHe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Gc(e.emitDiagnosticsPerFile,(r,i)=>{var o;const s=e.program.getSourceFileByPath(i);if(!s||!CS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function Xxe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=N.checkDefined(e.program),r=t.getCompilerOptions();Xe(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!QC(i,r,t)&&lce(e,i.resolvedPath))}}function yHe(e,t,r,i){if(lce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){Xxe(e),Mm.updateShapeSignature(e,N.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||vHe(e,t,r,i)}function FJ(e,t,r,i){if(lce(e,t),!e.changedFilesSet.has(t)){const o=N.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Mm.updateShapeSignature(e,o,s,r,i,!0),Nf(e.compilerOptions)&&pce(e,t,e.compilerOptions.declarationMap?24:8))}}function lce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function Yxe(e,t){const r=N.checkDefined(e.oldSignatures).get(t)||void 0;return N.checkDefined(e.fileInfos.get(t)).signature!==r}function cce(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Mm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>FJ(e,s.resolvedPath,r,i)),Xxe(e),!0):!1}function vHe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!Yxe(e,t.resolvedPath))return;if(om(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=Mm.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const p=u.pop();if(!l.has(p)){if(l.set(p,!0),cce(e,p,r,i))return;if(FJ(e,p,r,i),Yxe(e,p)){const h=N.checkDefined(e.program).getSourceFileByPath(p);u.push(...Mm.getReferencedByPaths(e,h.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(cce(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&mh(u,p=>$xe(e,p,s,r,i))})}function $xe(e,t,r,i,o){var s,l;if(Ay(r,t)){if(cce(e,t,i,o))return!0;FJ(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>$xe(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&FJ(e,u,i,o))}}function uce(e,t,r){return So(bHe(e,t,r),N.checkDefined(e.program).getProgramDiagnostics(t))}function bHe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return m7(s,e.compilerOptions)}const o=N.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),m7(o,e.compilerOptions)}function dce(e){return!!Ps(e.options||{})}function EHe(e,t){var r,i,o;const s=N.checkDefined(e.program).getCurrentDirectory(),l=ai(go(Ky(e.compilerOptions),s)),u=e.latestChangedDtsFile?se(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(Ps(e.compilerOptions)){const ye=zo(e.fileInfos.entries(),([We,At])=>{const Se=ne(We);return ve(We,Se),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Me={fileNames:p,fileInfos:ye,root:m,options:$(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===ab(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ue,dts:Ee,commonSourceDirectory:De,sourceFiles:Pe}=t;return e.bundle=t={commonSourceDirectory:De,sourceFiles:Pe,js:Ue||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Ee||(Nf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},Mw(Me,t)}let v,A,I;const R=zo(e.fileInfos.entries(),([ye,Me])=>{var Ue,Ee;const De=ne(ye);ve(ye,De),N.assert(p[De-1]===G(ye));const Pe=(Ue=e.oldSignatures)==null?void 0:Ue.get(ye),We=Pe!==void 0?Pe||void 0:Me.signature;if(e.compilerOptions.composite){const At=e.program.getSourceFileByPath(ye);if(!Qf(At)&&CS(At,e.program)){const Se=(Ee=e.emitSignatures)==null?void 0:Ee.get(ye);Se!==We&&(I||(I=[])).push(Se===void 0?De:[De,!Po(Se)&&Se[0]===We?et:Se])}}return Me.version===We?Me.affectsGlobalScope||Me.impliedFormat?{version:Me.version,signature:void 0,affectsGlobalScope:Me.affectsGlobalScope,impliedFormat:Me.impliedFormat}:Me.version:We!==void 0?Pe===void 0?Me:{version:Me.version,signature:We,affectsGlobalScope:Me.affectsGlobalScope,impliedFormat:Me.impliedFormat}:{version:Me.version,signature:!1,affectsGlobalScope:Me.affectsGlobalScope,impliedFormat:Me.impliedFormat}});let M;e.referencedMap&&(M=zo(e.referencedMap.keys()).sort(Uu).map(ye=>[ne(ye),he(e.referencedMap.getValues(ye))]));let C;e.exportedModulesMap&&(C=Hi(zo(e.exportedModulesMap.keys()).sort(Uu),ye=>{var Me;const Ue=(Me=e.oldExportedModulesMap)==null?void 0:Me.get(ye);if(Ue===void 0)return[ne(ye),he(e.exportedModulesMap.getValues(ye))];if(Ue)return[ne(ye),he(Ue)]}));const O=oe(e.semanticDiagnosticsPerFile);let U;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ye=ab(e.compilerOptions),Me=new Set;for(const Ue of zo(e.affectedFilesPendingEmit.keys()).sort(Uu))if(Ay(Me,Ue)){const Ee=e.program.getSourceFileByPath(Ue);if(!Ee||!CS(Ee,e.program))continue;const De=ne(Ue),Pe=e.affectedFilesPendingEmit.get(Ue);(U||(U=[])).push(Pe===ye?De:Pe===8?[De]:[De,Pe])}}let K;if(e.changedFilesSet.size)for(const ye of zo(e.changedFilesSet.keys()).sort(Uu))(K||(K=[])).push(ne(ye));const Z=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:m,options:$(e.compilerOptions),fileIdsList:v,referencedMap:M,exportedModulesMap:C,semanticDiagnosticsPerFile:O,emitDiagnosticsPerFile:Z,affectedFilesPendingEmit:U,changeFileSet:K,emitSignatures:I,latestChangedDtsFile:u};return Mw(V,t);function se(ye){return G(go(ye,s))}function G(ye){return NE(Em(l,ye,e.program.getCanonicalFileName))}function ne(ye){let Me=h.get(ye);return Me===void 0&&(p.push(G(ye)),h.set(ye,Me=p.length)),Me}function he(ye){const Me=zo(ye.keys(),ne).sort(rl),Ue=Me.join();let Ee=A?.get(Ue);return Ee===void 0&&((v||(v=[])).push(Me),(A||(A=new Map)).set(Ue,Ee=v.length)),Ee}function ve(ye,Me){const Ue=e.program.getSourceFile(ye);if(!e.program.getFileIncludeReasons().get(Ue.path).some(We=>We.kind===0))return;if(!m.length)return m.push(Me);const Ee=m[m.length-1],De=To(Ee);if(De&&Ee[1]===Me-1)return Ee[1]=Me;if(De||m.length===1||Ee!==Me-1)return m.push(Me);const Pe=m[m.length-2];return!Ry(Pe)||Pe!==Ee-1?m.push(Me):(m[m.length-2]=[Pe,Me],m.length=m.length-1)}function $(ye){let Me;const{optionsNameMap:Ue}=oD();for(const Ee of Kh(ye).sort(Uu)){const De=Ue.get(Ee.toLowerCase());De?.affectsBuildInfo&&((Me||(Me={}))[Ee]=Y(De,ye[Ee]))}return Me}function Y(ye,Me){if(ye){if(N.assert(ye.type!=="listOrElement"),ye.type==="list"){const Ue=Me;if(ye.element.isFilePath&&Ue.length)return Ue.map(se)}else if(ye.isFilePath)return se(Me)}return Me}function oe(ye){let Me;if(ye)for(const Ue of zo(ye.keys()).sort(Uu)){const Ee=ye.get(Ue);(Me||(Me=[])).push(Ee.length?[ne(Ue),fe(Ee)]:ne(Ue))}return Me}function fe(ye){return N.assert(!!ye.length),ye.map(Me=>{const Ue=Ne(Me);Ue.reportsUnnecessary=Me.reportsUnnecessary,Ue.reportDeprecated=Me.reportsDeprecated,Ue.source=Me.source,Ue.skippedOn=Me.skippedOn;const{relatedInformation:Ee}=Me;return Ue.relatedInformation=Ee?Ee.length?Ee.map(De=>Ne(De)):[]:void 0,Ue})}function Ne(ye){const{file:Me}=ye;return{...ye,file:Me?G(Me.resolvedPath):void 0,messageText:Po(ye.messageText)?ye.messageText:pe(ye.messageText)}}function pe(ye){if(ye.repopulateInfo)return{info:ye.repopulateInfo(),next:ie(ye.next)};const Me=ie(ye.next);return Me===ye.next?ye:{...ye,next:Me}}function ie(ye){return ye&&(Xe(ye,(Me,Ue)=>{const Ee=pe(Me);if(Me===Ee)return;const De=Ue>0?ye.slice(0,Ue-1):[];De.push(Ee);for(let Pe=Ue+1;Pe`${p(h)}${F2[h.category]}${h.code}: ${u(h.messageText)}`).join(` `)),(i.createHash??eC)(r);function u(h){return Po(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(u).join(` `):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=ai(t.resolvedPath)),`${NE(Em(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function nT(e,t,r){return(t.createHash??eC)(Qxe(e,r))}function BJ(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;const l=dHe(t,s);t.getBuildInfo=M=>EHe(l,M),t=void 0,i=void 0,s=void 0;const u=()=>l,p=VJ(u,o);return p.getState=u,p.saveEmitState=()=>fHe(l),p.restoreEmitState=M=>mHe(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Mm.getAllDependencies(l,N.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=A,p.releaseProgram=()=>pHe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=I,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Ko(),p;function h(M,C){if(l.buildInfoEmitPending){const O=N.checkDefined(l.program).emitBuildInfo(M||ia(r,r.writeFile),C);return l.buildInfoEmitPending=!1,O}return y7}function m(M,C,O,U){var K,Z,V;let se=Kxe(l,C,r);const G=ab(l.compilerOptions);let ne=O?G&24:G;if(!se)if(Ps(l.compilerOptions)){if(!l.programEmitPending||(ne=l.programEmitPending,O&&(ne=ne&24),!ne))return;se=l.program}else{const $=hHe(l,O);if(!$){const Y=gHe(l);if(Y)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.affectedFile.resolvedPath,Y.seenKind|24),{result:{emitSkipped:!0,diagnostics:Y.diagnostics},affected:Y.affectedFile};if(!l.buildInfoEmitPending)return;const oe=l.program,fe=oe.emitBuildInfo(M||ia(r,r.writeFile),C);return l.buildInfoEmitPending=!1,{result:fe,affected:oe}}({affectedFile:se,emitKind:ne}=$)}let he;ne&7&&(he=0),ne&24&&(he=he===void 0?1:void 0),se===l.program&&(l.programEmitPending=l.changedFilesSet.size?vD(G,ne):l.programEmitPending?vD(l.programEmitPending,ne):void 0);const ve=l.program.emit(se===l.program?void 0:se,v(M,U),C,he,U);if(se!==l.program){const $=se;l.seenAffectedFiles.add($.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const Y=((K=l.seenEmittedFiles)==null?void 0:K.get($.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set($.resolvedPath,ne|Y);const oe=((Z=l.affectedFilesPendingEmit)==null?void 0:Z.get($.resolvedPath))||G,fe=vD(oe,ne|Y);fe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set($.resolvedPath,fe):(V=l.affectedFilesPendingEmit)==null||V.delete($.resolvedPath),ve.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set($.resolvedPath,ve.diagnostics)}else l.changedFilesSet.clear();return{result:ve,affected:se}}function v(M,C){return Nf(l.compilerOptions)?(O,U,K,Z,V,se)=>{var G,ne,he,ve;if(Su(O))if(Ps(l.compilerOptions)){if(l.compilerOptions.composite){const Y=$(l.outSignature,void 0);if(!Y)return;l.outSignature=Y}}else{N.assert(V?.length===1);let Y;if(!C){const oe=V[0],fe=l.fileInfos.get(oe.resolvedPath);if(fe.signature===oe.version){const Ne=zJ(l.program,oe,U,r,se);(G=se?.diagnostics)!=null&&G.length||(Y=Ne),Ne!==oe.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(oe.resolvedPath),l.exportedModulesMap&&Mm.updateExportedModules(l,oe,oe.exportedModulesFromDeclarationEmit),l.affectedFiles?(((ne=l.oldSignatures)==null?void 0:ne.get(oe.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(oe.resolvedPath,fe.signature||!1),fe.signature=Ne):(fe.signature=Ne,(he=l.oldExportedModulesMap)==null||he.clear()))}}if(l.compilerOptions.composite){const oe=V[0].resolvedPath;if(Y=$((ve=l.emitSignatures)==null?void 0:ve.get(oe),Y),!Y)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(oe,Y)}}M?M(O,U,K,Z,V,se):r.writeFile?r.writeFile(O,U,K,Z,V,se):l.program.writeFile(O,U,K,Z,V,se);function $(Y,oe){const fe=!Y||Po(Y)?Y:Y[0];if(oe??(oe=nT(U,r,se)),oe===fe){if(Y===fe)return;se?se.differsOnlyInMap=!0:se={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=O;return oe}}:M||ia(r,r.writeFile)}function A(M,C,O,U,K){e===1&&Jxe(l,M);const Z=MJ(p,M,C,O);if(Z)return Z;if(!M)if(e===1){let V=[],se=!1,G,ne=[],he;for(;he=m(C,O,U,K);)se=se||he.result.emitSkipped,G=qr(G,he.result.diagnostics),ne=qr(ne,he.result.emittedFiles),V=qr(V,he.result.sourceMaps);return{emitSkipped:se,diagnostics:G||et,emittedFiles:ne,sourceMaps:V}}else _He(l,U);return N.checkDefined(l.program).emit(M,v(C,K),O,U,K)}function I(M,C){for(;;){const O=Kxe(l,M,r);let U;if(O)if(O!==l.program){const K=O;if((!C||!C(K))&&(U=uce(l,K,M)),l.seenAffectedFiles.add(K.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=ab(l.compilerOptions);else return;return{result:U,affected:O}}}function R(M,C){Jxe(l,M);const O=N.checkDefined(l.program).getCompilerOptions();if(Ps(O))return N.assert(!l.semanticDiagnosticsPerFile),N.checkDefined(l.program).getSemanticDiagnostics(M,C);if(M)return uce(l,M,C);for(;I(C););let U;for(const K of N.checkDefined(l.program).getSourceFiles())U=qr(U,uce(l,K,C));return U||et}}function pce(e,t,r){var i,o;const 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 fce(e){return Po(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Po(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function mce(e,t){return Ry(e)?t:e[1]||8}function _ce(e,t){return e||ab(t||{})}function hce(e,t,r){var i,o,s,l;const u=e.program,p=ai(go(t,r.getCurrentDirectory())),h=Mu(r.useCaseSensitiveFileNames());let m;const v=(i=u.fileNames)==null?void 0:i.map(R);let A;const I=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(dce(u)){const Z=new Map;u.fileInfos.forEach((V,se)=>{const G=C(se+1);Z.set(G,Po(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),m={fileInfos:Z,compilerOptions:u.options?rq(u.options,M):{},latestChangedDtsFile:I,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:_ce(u.pendingEmit,u.options),bundle:e.bundle}}else{A=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(C)));const Z=new Map,V=(s=u.options)!=null&&s.composite&&!Ps(u.options)?new Map:void 0;u.fileInfos.forEach((G,ne)=>{const he=C(ne+1),ve=fce(G);Z.set(he,ve),V&&ve.signature&&V.set(he,ve.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Ry(G))V.delete(C(G));else{const ne=C(G[0]);V.set(ne,!Po(G[1])&&!G[1].length?[V.get(ne)]:G[1])}});const se=u.affectedFilesPendingEmit?ab(u.options||{}):void 0;m={fileInfos:Z,compilerOptions:u.options?rq(u.options,M):{},referencedMap:U(u.referencedMap),exportedModulesMap:U(u.exportedModulesMap),semanticDiagnosticsPerFile:K(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:K(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&DE(u.affectedFilesPendingEmit,G=>C(Ry(G)?G:G[0]),G=>mce(G,se)),changedFilesSet:new Set(Ot(u.changeFileSet,C)),latestChangedDtsFile:I,emitSignatures:V?.size?V:void 0}}return{getState:()=>m,saveEmitState:$a,restoreEmitState:$a,getProgram:Ko,getProgramOrUndefined:n0,releaseProgram:$a,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ko,getSourceFiles:Ko,getOptionsDiagnostics:Ko,getGlobalDiagnostics:Ko,getConfigFileParsingDiagnostics:Ko,getSyntacticDiagnostics:Ko,getDeclarationDiagnostics:Ko,getSemanticDiagnostics:Ko,emit:Ko,getAllDependencies:Ko,getCurrentDirectory:Ko,emitNextAffectedFile:Ko,getSemanticDiagnosticsOfNextAffectedFile:Ko,emitBuildInfo:Ko,close:$a,hasChangedEmitSignature:Xm};function R(Z){return ol(Z,p,h)}function M(Z){return go(Z,p)}function C(Z){return v[Z-1]}function O(Z){return A[Z-1]}function U(Z){if(!Z)return;const V=Mm.createManyToManyPathMap();return Z.forEach(([se,G])=>V.set(C(se),O(G))),V}function K(Z){return Z&&DE(Z,V=>C(Ry(V)?V:V[0]),V=>Ry(V)?et:V[1])}}function GJ(e,t,r){const i=ai(go(t,r.getCurrentDirectory())),o=Mu(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=[];return e.fileInfos.forEach((p,h)=>{const m=ol(e.fileNames[h],i,o),v=Po(p)?p:p.version;if(s.set(m,v),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,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ko,getCurrentDirectory:()=>r().getCurrentDirectory(),close:$a};function r(){return N.checkDefined(e().program)}}var jJ,UJ,SHe=T({"src/compiler/builder.ts"(){ra(),jJ=(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))(jJ||{}),UJ=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(UJ||{})}});function Zxe(e,t,r,i,o,s){return BJ(0,v7(e,t,r,i,o,s))}function HJ(e,t,r,i,o,s){return BJ(1,v7(e,t,r,i,o,s))}function eRe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=v7(e,t,r,i,o,s);return VJ(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var THe=T({"src/compiler/builderPublic.ts"(){ra()}});function b7(e){return Al(e,"/node_modules/.staging")?zx(e,"/.staging"):bt(V2,t=>e.includes(t))?void 0:e}function gce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==al&&!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 E7(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=gce(e,t);return t>r+1}function yce(e){return nRe(ai(e))}function tRe(e,t){if(t.lengtho.length+1?bce(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:rRe(u,l,l.length-1,p,h,o)}function rRe(e,t,r,i,o,s){if(o!==-1)return bce(e,t,o+1);let l=!0,u=r;for(let p=0;pAHe(i,o,s,e,r,t,l)}}function AHe(e,t,r,i,o,s,l){const u=S7(e),p=cD(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;const h=e.getGlobalCache();if(h!==void 0&&!Yc(r)&&!(p.resolvedModule&&U3(p.resolvedModule.extension))){const{resolvedModule:m,failedLookupLocations:v,affectingLocations:A,resolutionDiagnostics:I}=Fse(N.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=sD(p.failedLookupLocations,v),p.affectingLocations=sD(p.affectingLocations,A),p.resolutionDiagnostics=sD(p.resolutionDiagnostics,I),p}return p}function JJ(e,t,r){let i,o,s;const l=Zp(),u=new Set,p=new Set,h=new Map,m=new Map;let v=!1,A,I,R,M,C,O=!1;const U=Sd(()=>e.getCurrentDirectory()),K=e.getCachedDirectoryStructureHost(),Z=new Map,V=lD(U(),e.getCanonicalFileName,e.getCompilationSettings()),se=new Map,G=DF(U(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),ne=new Map,he=lD(U(),e.getCanonicalFileName,vq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ve=new Map,$=new Map,Y=Sce(t,U),oe=e.toPath(Y),fe=zc(oe),Ne=new Map;return{rootDirForResolution:t,resolvedModuleNames:Z,resolvedTypeReferenceDirectives:se,resolvedLibraries:ne,resolvedFileToResolution:h,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ve,fileWatchesOfAffectingLocations:$,watchFailedLookupLocationsOfExternalModuleResolutions:Pn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:Ue,finishRecordingFilesWithChangedResolutions:Ee,startCachingPerDirectoryResolution:We,finishCachingPerDirectoryResolution:Se,resolveModuleNameLiterals:$e,resolveTypeReferenceDirectiveReferences:yt,resolveLibrary:It,resolveSingleModuleNameWithoutWatching:tn,removeResolutionsFromProjectReferenceRedirects:tt,removeResolutionsOfFile:Bt,hasChangedAutomaticTypeDirectiveNames:()=>v,invalidateResolutionOfFile:li,invalidateResolutionsOfFailedLookupLocations:ma,setFilesWithInvalidatedNonRelativeUnresolvedImports:hi,createHasInvalidatedResolutions:Pe,isFileWithInvalidatedNonRelativeUnresolvedImports:De,updateTypeRootsWatch:ft,closeTypeRootsWatch:He,clear:ye,onChangesAffectModuleResolution:Me};function pe(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ye(){tp(ve,Mf),tp($,Mf),l.clear(),He(),Z.clear(),se.clear(),h.clear(),u.clear(),p.clear(),R=void 0,M=void 0,C=void 0,I=void 0,A=void 0,O=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),he.clear(),m.clear(),ne.clear(),v=!1}function Me(){O=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function Ue(){i=[]}function Ee(){const le=i;return i=void 0,le}function De(le){if(!s)return!1;const Fe=s.get(le);return!!Fe&&!!Fe.length}function Pe(le,Fe){ma();const pt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||O||!!pt?.has(j)||De(j),hasInvalidatedLibResolutions:j=>{var ot;return Fe(j)||!!((ot=ne?.get(j))!=null&&ot.isInvalidated)}}}function We(){V.isReadonly=void 0,G.isReadonly=void 0,he.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),he.clearAllExceptPackageJsonInfoCache(),l.forEach(ao),l.clear()}function At(le){ne.forEach((Fe,pt)=>{var j;(j=le?.resolvedLibReferences)!=null&&j.has(pt)||(Mn(Fe,e.toPath(p7(e.getCompilationSettings(),U(),pt)),pe),ne.delete(pt))})}function Se(le,Fe){s=void 0,O=!1,l.forEach(ao),l.clear(),le!==Fe&&(At(le),le?.getSourceFiles().forEach(pt=>{var j;const ot=zp(pt)?((j=pt.packageJsonLocations)==null?void 0:j.length)??0:0,Rt=m.get(pt.path)??et;for(let Ye=Rt.length;Yeot)for(let Ye=ot;Ye{le?.getSourceFileByPath(j)||(pt.forEach(ot=>$.get(ot).files--),m.delete(j))})),ve.forEach(je),$.forEach(at),v=!1,V.isReadonly=!0,G.isReadonly=!0,he.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function je(le,Fe){le.refCount===0&&(ve.delete(Fe),le.watcher.close())}function at(le,Fe){var pt;le.files===0&&le.resolutions===0&&!((pt=le.symlinks)!=null&&pt.size)&&($.delete(Fe),le.watcher.close())}function Gt({entries:le,containingFile:Fe,containingSourceFile:pt,redirectedReference:j,options:ot,perFileCache:Rt,reusedNames:Ye,loader:_t,getResolutionWithResolvedFileName:Vt,deferWatchingNonRelativeResolution:yn,shouldRetryResolution:pn,logChanges:_n}){const q=e.toPath(Fe),Oe=Rt.get(q)||Rt.set(q,EI()).get(q),Lt=[],L=_n&&De(q),_e=e.getCurrentProgram(),J=_e&&_e.getResolvedProjectReferenceToRedirect(Fe),me=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,Ge=EI();for(const Tt of le){const kt=_t.nameAndMode.getName(Tt),en=_t.nameAndMode.getMode(Tt,pt,j?.commandLine.options||ot);let bn=Oe.get(kt,en);if(!Ge.has(kt,en)&&(O||me||!bn||bn.isInvalidated||L&&!Yc(kt)&&pn(bn))){const Bn=bn;bn=_t.resolve(kt,en),e.onDiscoveredSymlink&&IHe(bn)&&e.onDiscoveredSymlink(),Oe.set(kt,en,bn),bn!==Bn&&(Pn(kt,bn,q,Vt,yn),Bn&&Mn(Bn,q,Vt)),_n&&i&&!ke(Bn,bn)&&(i.push(q),_n=!1)}else{const Bn=S7(e);if(Ug(ot,Bn)&&!Ge.has(kt,en)){const Hn=Vt(bn);bo(Bn,Rt===Z?Hn?.resolvedFileName?Hn.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:Hn?.resolvedFileName?Hn.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,kt,Fe,Hn?.resolvedFileName,Hn?.packageId&&Bv(Hn.packageId))}}N.assert(bn!==void 0&&!bn.isInvalidated),Ge.set(kt,en,!0),Lt.push(bn)}return Ye?.forEach(Tt=>Ge.set(_t.nameAndMode.getName(Tt),_t.nameAndMode.getMode(Tt,pt,j?.commandLine.options||ot),!0)),Oe.size()!==Ge.size()&&Oe.forEach((Tt,kt,en)=>{Ge.has(kt,en)||(Mn(Tt,q,Vt),Oe.delete(kt,en))}),Lt;function ke(Tt,kt){if(Tt===kt)return!0;if(!Tt||!kt)return!1;const en=Vt(Tt),bn=Vt(kt);return en===bn?!0:!en||!bn?!1:en.resolvedFileName===bn.resolvedFileName}}function yt(le,Fe,pt,j,ot,Rt){return Gt({entries:le,containingFile:Fe,containingSourceFile:ot,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:se,loader:u7(Fe,pt,j,S7(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function $e(le,Fe,pt,j,ot,Rt){return Gt({entries:le,containingFile:Fe,containingSourceFile:ot,redirectedReference:pt,options:j,reusedNames:Rt,perFileCache:Z,loader:Tce(Fe,pt,j,e,V),getResolutionWithResolvedFileName:pe,shouldRetryResolution:Ye=>!Ye.resolvedModule||!YC(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function It(le,Fe,pt,j){const ot=S7(e);let Rt=ne?.get(j);if(!Rt||Rt.isInvalidated){const Ye=Rt;Rt=NF(le,Fe,pt,ot,he);const _t=e.toPath(Fe);Pn(le,Rt,_t,pe,!1),ne.set(j,Rt),Ye&&Mn(Ye,_t,pe)}else if(Ug(pt,ot)){const Ye=pe(Rt);bo(ot,Ye?.resolvedFileName?Ye.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,le,Fe,Ye?.resolvedFileName,Ye?.packageId&&Bv(Ye.packageId))}return Rt}function tn(le,Fe){var pt,j;const ot=e.toPath(Fe),Rt=Z.get(ot),Ye=Rt?.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;const _t=(pt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:pt.call(e,V),Vt=S7(e),yn=cD(le,Fe,e.getCompilationSettings(),Vt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,Fe,yn,_t),yn}function rn(le){return Al(le,"/node_modules/@types")}function Pn(le,Fe,pt,j,ot){var Rt;if(Fe.refCount)Fe.refCount++,N.assertIsDefined(Fe.files);else{Fe.refCount=1,N.assert(!((Rt=Fe.files)!=null&&Rt.size)),!ot||Yc(le)?hn(Fe):l.add(le,Fe);const Ye=j(Fe);if(Ye&&Ye.resolvedFileName){const _t=e.toPath(Ye.resolvedFileName);let Vt=h.get(_t);Vt||h.set(_t,Vt=new Set),Vt.add(Fe)}}(Fe.files??(Fe.files=new Set)).add(pt)}function Xn(le,Fe){const pt=e.toPath(le),j=qJ(le,pt,Y,oe,fe,U);if(j){const{dir:ot,dirPath:Rt,nonRecursive:Ye}=j;Rt===oe?(N.assert(Ye),Fe=!0):Oi(ot,Rt,Ye)}return Fe}function hn(le){N.assert(!!le.refCount);const{failedLookupLocations:Fe,affectingLocations:pt,alternateResult:j}=le;if(!Fe?.length&&!pt?.length&&!j)return;(Fe?.length||j)&&u.add(le);let ot=!1;if(Fe)for(const Rt of Fe)ot=Xn(Rt,ot);j&&(ot=Xn(j,ot)),ot&&Oi(Y,oe,!0),Qt(le,!Fe?.length&&!j)}function Qt(le,Fe){N.assert(!!le.refCount);const{affectingLocations:pt}=le;if(pt?.length){Fe&&p.add(le);for(const j of pt)$t(j,!0)}}function $t(le,Fe){const pt=$.get(le);if(pt){Fe?pt.resolutions++:pt.files++;return}let j=le,ot=!1,Rt;e.realpath&&(j=e.realpath(le),le!==j&&(ot=!0,Rt=$.get(j)));const Ye=Fe?1:0,_t=Fe?0:1;if(!ot||!Rt){const Vt={watcher:vce(e.toPath(j))?e.watchAffectingFileLocation(j,(yn,pn)=>{K?.addOrDeleteFile(yn,e.toPath(j),pn),_i(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):ED,resolutions:ot?0:Ye,files:ot?0:_t,symlinks:void 0};$.set(j,Vt),ot&&(Rt=Vt)}if(ot){N.assert(!!Rt);const Vt={watcher:{close:()=>{var yn;const pn=$.get(j);(yn=pn?.symlinks)!=null&&yn.delete(le)&&!pn.symlinks.size&&!pn.resolutions&&!pn.files&&($.delete(j),pn.watcher.close())}},resolutions:Ye,files:_t,symlinks:void 0};$.set(le,Vt),(Rt.symlinks??(Rt.symlinks=new Set)).add(le)}}function _i(le,Fe){var pt;const j=$.get(le);j?.resolutions&&(I??(I=new Set)).add(le),j?.files&&(A??(A=new Set)).add(le),(pt=j?.symlinks)==null||pt.forEach(ot=>_i(ot,Fe)),Fe?.delete(e.toPath(le))}function ao(le,Fe){const pt=e.getCurrentProgram();!pt||!pt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Fe)?le.forEach(hn):le.forEach(j=>Qt(j,!0))}function Oi(le,Fe,pt){const j=ve.get(Fe);j?(N.assert(!!pt==!!j.nonRecursive),j.refCount++):ve.set(Fe,{watcher:Ar(le,Fe,pt),refCount:1,nonRecursive:pt})}function No(le,Fe,pt){const j=e.toPath(le),ot=qJ(le,j,Y,oe,fe,U);if(ot){const{dirPath:Rt}=ot;Rt===oe?Fe=!0:Di(Rt,pt)}return Fe}function Mn(le,Fe,pt,j){if(N.checkDefined(le.files).delete(Fe),le.refCount--,le.refCount)return;const ot=pt(le);if(ot&&ot.resolvedFileName){const Vt=e.toPath(ot.resolvedFileName),yn=h.get(Vt);yn?.delete(le)&&!yn.size&&h.delete(Vt)}const{failedLookupLocations:Rt,affectingLocations:Ye,alternateResult:_t}=le;if(u.delete(le)){let Vt=!1;if(Rt)for(const yn of Rt)Vt=No(yn,Vt,j);_t&&(Vt=No(_t,Vt,j)),Vt&&Di(oe,j)}else Ye?.length&&p.delete(le);if(Ye)for(const Vt of Ye){const yn=$.get(Vt);yn.resolutions--,j&&at(yn,Vt)}}function Di(le,Fe){const pt=ve.get(le);pt.refCount--,Fe&&je(pt,le)}function Ar(le,Fe,pt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{const ot=e.toPath(j);K&&K.addOrDeleteFileOrDirectory(j,ot),Qi(ot,Fe===ot)},pt?0:1)}function sn(le,Fe,pt,j){const ot=le.get(Fe);ot&&(ot.forEach(Rt=>Mn(Rt,Fe,pt,j)),le.delete(Fe))}function tt(le){if(!Il(le,".json"))return;const Fe=e.getCurrentProgram();if(!Fe)return;const pt=Fe.getResolvedProjectReferenceByPath(le);pt&&pt.commandLine.fileNames.forEach(j=>Bt(e.toPath(j)))}function Bt(le,Fe){sn(Z,le,pe,Fe),sn(se,le,ie,Fe)}function Rn(le,Fe){if(!le)return!1;let pt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!Fe(j))){j.isInvalidated=pt=!0;for(const ot of N.checkDefined(j.files))(o??(o=new Set)).add(ot),v=v||Al(ot,yD)}}),pt}function li(le){Bt(le);const Fe=v;Rn(h.get(le),Dy)&&v&&!Fe&&e.onChangedAutomaticTypeDirectiveNames()}function hi(le){N.assert(s===le||s===void 0),s=le}function Qi(le,Fe){if(Fe)(C||(C=new Set)).add(le);else{const pt=b7(le);if(!pt||(le=pt,e.fileIsOpen(le)))return!1;const j=ai(le);if(rn(le)||e4(le)||rn(j)||e4(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(Xle(e.getCurrentProgram(),le)||Il(le,".map"))return!1;(R||(R=new Set)).add(le);const ot=vw(le,!0);ot&&(M||(M=new Set)).add(ot)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Io(){const le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||C)&&le.forEach((Fe,pt)=>Sn(pt)?le.delete(pt):void 0)}function ma(){var le;if(O)return A=void 0,Io(),(R||M||C||I)&&Rn(ne,Wa),R=void 0,M=void 0,C=void 0,I=void 0,!0;let Fe=!1;return A&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(pt=>{bt(pt.packageJsonLocations,j=>A.has(j))&&((o??(o=new Set)).add(pt.path),Fe=!0)}),A=void 0),!R&&!M&&!C&&!I||(Fe=Rn(u,Wa)||Fe,Io(),R=void 0,M=void 0,C=void 0,Fe=Rn(p,kn)||Fe,I=void 0),Fe}function Wa(le){var Fe;return kn(le)?!0:!R&&!M&&!C?!1:((Fe=le.failedLookupLocations)==null?void 0:Fe.some(pt=>Sn(e.toPath(pt))))||!!le.alternateResult&&Sn(e.toPath(le.alternateResult))}function Sn(le){return R?.has(le)||mn(M?.keys()||[],Fe=>uo(le,Fe)?!0:void 0)||mn(C?.keys()||[],Fe=>le.length>Fe.length&&uo(le,Fe)&&(SV(Fe)||le[Fe.length]===al)?!0:void 0)}function kn(le){var Fe;return!!I&&((Fe=le.affectingLocations)==null?void 0:Fe.some(pt=>I.has(pt)))}function He(){tp(Ne,Qm)}function mt(le){return Ct(le)?e.watchTypeRootsDirectory(le,Fe=>{const pt=e.toPath(Fe);K&&K.addOrDeleteFileOrDirectory(Fe,pt),v=!0,e.onChangedAutomaticTypeDirectiveNames();const j=Ece(le,e.toPath(le),oe,fe,U,ot=>ve.has(ot));j&&Qi(pt,j===pt)},1):ED}function ft(){const le=e.getCompilationSettings();if(le.types){He();return}const Fe=wP(le,{getCurrentDirectory:U});Fe?qC(Ne,new Set(Fe),{createNewValue:mt,onDeleteValue:Qm}):He()}function Ct(le){return e.getCompilationSettings().typeRoots?!0:yce(e.toPath(le))}}function IHe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var xHe=T({"src/compiler/resolutionCache.ts"(){ra()}});function Vw(e,t){const r=e===gu&&Cce?Cce:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Mu(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(EJ(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(Zle(i,r)+r.getNewLine()),i[0]=void 0}}function oRe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Nr(D7,t.code)?(e.clearScreen(),!0):!1}function RHe(e,t){return Nr(D7,e.code)?t+t:t}function jw(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Ace(e,t){return t?(r,i,o)=>{oRe(e,r,o);let s=`[${g1(jw(e),"\x1B[90m")}] `;s+=`${z_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";oRe(e,r,o)||(s+=i),s+=`${jw(e)} - `,s+=`${z_(r.messageText,e.newLine)}${RHe(r,i)}`,e.write(s)}}function aRe(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=p=>cRe(o,s,p);const u=aw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function T7(e){return au(e,t=>t.category===1)}function A7(e){return nr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=An(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=bs(i.file,i.start);return{fileName:r,line:o+1}}})}function KJ(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function sRe(e,t){const r=g1(":"+e.line,"\x1B[90m");return tC(e.fileName)&&tC(t)?Em(t,e.fileName,!1)+r:e.fileName+r}function Ice(e,t,r,i){if(e===0)return"";const o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,v,A)=>A.indexOf(m)===v),l=o[0]&&sRe(o[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:u=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];const p=Hl(...u),h=s.length>1?DHe(o,i):"";return`${r}${z_(p.messageText,r)}${r}${r}${h}`}function DHe(e,t){const r=e.filter((v,A,I)=>A===I.findIndex(R=>R?.fileName===v?.fileName));if(r.length===0)return"";const i=v=>Math.log(v)*Math.LOG10E+1,o=r.map(v=>[v,au(e,A=>A.fileName===v.fileName)]),s=o.reduce((v,A)=>Math.max(v,A[1]||0),0),l=f.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),h=Math.max(i(s)-u,0);let m="";return m+=" ".repeat(h)+l+` `,o.forEach(v=>{const[A,I]=v,R=Math.log(I)*Math.LOG10E+1|0,M=R{t(i.fileName)})}function YJ(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>nC(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${bD(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${eK(e,u,s).messageText}`)),(i=$J(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function $J(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(jo(void 0,f.File_is_output_of_project_reference_source_0,bD(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(jo(void 0,f.File_redirects_to_file_0,bD(e.redirectInfo.redirectTarget,t))),zp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(jo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,bD(Ya(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(jo(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,bD(Ya(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(jo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function QJ(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ai(go(i.fileName,e.getCurrentDirectory()));return An(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(go(l,s))===o)}function ZJ(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=Il(t,".json"),l=ai(go(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return An((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Al(p,".json"))return!1;const h=Ioe(p,l,"files");return!!h&&qv(`(${h})$`,u).test(t)})}function eK(e,t,r){var i,o;const s=e.getCompilerOptions();if(k0(t)){const l=$P(e,t),u=hD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let p;switch(N.assert(hD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:hD(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===Kv?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:N.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:N.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:N.assertNever(t)}return jo(void 0,p,u,bD(l.file,r),l.packageId&&Bv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return jo(void 0,f.Root_file_specified_for_compilation);const l=go(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(QJ(e,l))return jo(void 0,f.Part_of_files_list_in_tsconfig_json);const p=ZJ(e,l);return Po(p)?jo(void 0,f.Matched_by_include_pattern_0_in_1,p,bD(s.configFile,r)):jo(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:const h=t.kind===2,m=N.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return jo(void 0,Ps(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,bD(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const v=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Bv(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,Bv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return jo(void 0,...v)}case 6:{if(t.index!==void 0)return jo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);const v=Gc(mw.type,(I,R)=>I===os(s)?R:void 0),A=v?[f.Default_library_for_target_0,v]:[f.Default_library];return jo(void 0,...A)}default:N.assertNever(t)}}function bD(e,t){const r=Po(e)?e:e.fileName;return t?t(r):r}function I7(e,t,r,i,o,s,l,u){const p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;qr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(qr(h,e.getOptionsDiagnostics(s)),p||(qr(h,e.getGlobalDiagnostics(s)),h.length===m&&qr(h,e.getSemanticDiagnostics(void 0,s))));const v=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:A,diagnostics:I}=v;qr(h,I);const R=Xx(h);if(R.forEach(t),r){const M=e.getCurrentDirectory();Xe(A,C=>{const O=go(C,M);r(`TSFILE: ${O}`)}),XJ(e,r)}return i&&i(T7(R),A7(R)),{emitResult:v,diagnostics:R}}function Rce(e,t,r,i,o,s,l,u){const{emitResult:p,diagnostics:h}=I7(e,t,r,i,o,s,l,u);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function tK(e=gu,t){return{onWatchStatusChange:t||Ace(e),watchFile:ia(e,e.watchFile)||SD,watchDirectory:ia(e,e.watchDirectory)||SD,setTimeout:ia(e,e.setTimeout)||$a,clearTimeout:ia(e,e.clearTimeout)||$a}}function nK(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):$a,o=_J(e,r,i);return o.writeLog=i,o}function rK(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:yJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ia(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:vJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Mu(i),getNewLine:()=>Gy(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ia(e,e.trace),directoryExists:ia(r,r.directoryExists),getDirectories:ia(r,r.getDirectories),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(e,e.getEnvironmentVariable)||(()=>""),createHash:ia(e,e.createHash),readDirectory:ia(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function x7(e,t){if(t.match(jq)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Hu(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(jF)){t=t.substring(0,i);break}else if(!l.match(UF))break;r=i}}return(e.createHash||eC)(t)}function R7(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=x7(e,i.text)),i}}function iK(e,t){const r=Sd(()=>ai(ga(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Sd(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Qr(r(),Z2(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,u)=>e.readDirectory(i,o,s,l,u),realpath:ia(e,e.realpath),getEnvironmentVariable:ia(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:ia(e,e.createHash),createProgram:t||HJ,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ia(e,e.now)}}function lRe(e=gu,t,r,i){const o=l=>e.write(l+e.newLine),s=iK(e,t);return rG(s,tK(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),p=Gy(u);I7(l,r,o,h=>s.onWatchStatusChange(Hl(KJ(h),h),p,u,h))},s}function cRe(e,t,r){t(r),e.exit(1)}function Dce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=l||Vw(o),h=lRe(o,s,p,u);return h.onUnRecoverableConfigFileDiagnostic=m=>cRe(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function Nce({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=lRe(o,s,l||Vw(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function uRe(e){const t=e.system||gu,r=e.host||(e.host=oK(e.options,t)),i=Pce(e),o=Rce(i,e.reportDiagnostic||Vw(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(Ice(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var Cce,D7,ED,SD,wc,NHe=T({"src/compiler/watch.ts"(){ra(),Cce=gu?{getCurrentDirectory:()=>gu.getCurrentDirectory(),getNewLine:()=>gu.newLine,getCanonicalFileName:Mu(gu.useCaseSensitiveFileNames)}:void 0,D7=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],ED={close:$a},SD=()=>ED,wc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function N7(e,t){const r=Ky(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const o=t.readFile(r);if(!o)return;i=i7(r,o)}if(!(!i||i.version!==Re||!i.program))return hce(i,r,t)}function oK(e,t=gu){const r=bJ(e,void 0,t);return r.createHash=ia(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,R7(r),Ww(r,i=>ol(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Pce({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||oK(t),s=s||HJ;const l=N7(t,o);return s(e,t,o,l,r,i)}function dRe(e,t,r,i,o,s,l,u){return To(e)?Nce({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Dce({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function pRe(e){let t,r,i,o,s,l,u,p,h=e.extendedConfigCache,m=!1;const v=new Map;let A,I=!1;const R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:C,optionsToExtend:O={},watchOptionsToExtend:U,extraFileExtensions:K,createProgram:Z}=e;let{rootFiles:V,options:se,watchOptions:G,projectReferences:ne}=e,he,ve,$=!1,Y=!1;const oe=C===void 0?void 0:a7(e,M,R),fe=oe||e,Ne=_7(e,fe);let pe=Pn();C&&e.configFileParsingResult&&(Wa(e.configFileParsingResult),pe=Pn()),Mn(f.Starting_compilation_in_watch_mode),C&&!e.configFileParsingResult&&(pe=Gy(O),N.assert(!V),ma(),pe=Pn()),N.assert(se),N.assert(V);const{watchFile:ie,watchDirectory:ye,writeLog:Me}=nK(e,se),Ue=Mu(R);Me(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Ee;C&&(Ee=ie(C,Rn,2e3,G,wc.ConfigFile));const De=rK(e,()=>se,fe);R7(De);const Pe=De.getSourceFile;De.getSourceFile=(Ye,..._t)=>_i(Ye,Xn(Ye),..._t),De.getSourceFileByPath=_i,De.getNewLine=()=>pe,De.fileExists=$t,De.onReleaseOldSourceFile=No,De.onReleaseParsedCommandLine=He,De.toPath=Xn,De.getCompilationSettings=()=>se,De.useSourceOfProjectReferenceRedirect=ia(e,e.useSourceOfProjectReferenceRedirect),De.watchDirectoryOfFailedLookupLocation=(Ye,_t,Vt)=>ye(Ye,_t,Vt,G,wc.FailedLookupLocations),De.watchAffectingFileLocation=(Ye,_t)=>ie(Ye,_t,2e3,G,wc.AffectingFileLocation),De.watchTypeRootsDirectory=(Ye,_t,Vt)=>ye(Ye,_t,Vt,G,wc.TypeRoots),De.getCachedDirectoryStructureHost=()=>oe,De.scheduleInvalidateResolutionsOfFailedLookupLocations=sn,De.onInvalidatedResolution=Bt,De.onChangedAutomaticTypeDirectiveNames=Bt,De.fileIsOpen=Xm,De.getCurrentProgram=$e,De.writeLog=Me,De.getParsedCommandLine=Sn;const We=JJ(De,C?ai(go(C,M)):M,!1);De.resolveModuleNameLiterals=ia(e,e.resolveModuleNameLiterals),De.resolveModuleNames=ia(e,e.resolveModuleNames),!De.resolveModuleNameLiterals&&!De.resolveModuleNames&&(De.resolveModuleNameLiterals=We.resolveModuleNameLiterals.bind(We)),De.resolveTypeReferenceDirectiveReferences=ia(e,e.resolveTypeReferenceDirectiveReferences),De.resolveTypeReferenceDirectives=ia(e,e.resolveTypeReferenceDirectives),!De.resolveTypeReferenceDirectiveReferences&&!De.resolveTypeReferenceDirectives&&(De.resolveTypeReferenceDirectiveReferences=We.resolveTypeReferenceDirectiveReferences.bind(We)),De.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):We.resolveLibrary.bind(We),De.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ia(e,e.getModuleResolutionCache):()=>We.getModuleResolutionCache();const Se=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ia(e,e.hasInvalidatedResolutions)||Dy:Xm,je=e.resolveLibrary?ia(e,e.hasInvalidatedLibResolutions)||Dy:Xm;return t=N7(se,De),It(),pt(),C&&ot(Xn(C),se,G,wc.ExtendedConfigFile),C?{getCurrentProgram:yt,getProgram:hi,close:at,getResolutionCache:Gt}:{getCurrentProgram:yt,getProgram:hi,updateRootFileNames:rn,close:at,getResolutionCache:Gt};function at(){Ar(),We.clear(),tp(v,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Ee&&(Ee.close(),Ee=void 0),h?.clear(),h=void 0,p&&(tp(p,Mf),p=void 0),o&&(tp(o,Mf),o=void 0),i&&(tp(i,Qm),i=void 0),u&&(tp(u,Ye=>{var _t;(_t=Ye.watcher)==null||_t.close(),Ye.watcher=void 0,Ye.watchedDirectories&&tp(Ye.watchedDirectories,Mf),Ye.watchedDirectories=void 0}),u=void 0)}function Gt(){return We}function yt(){return t}function $e(){return t&&t.getProgramOrUndefined()}function It(){Me("Synchronizing program"),N.assert(se),N.assert(V),Ar();const Ye=yt();I&&(pe=Pn(),Ye&&x4(Ye.getCompilerOptions(),se)&&We.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Vt}=We.createHasInvalidatedResolutions(Se,je),{originalReadFile:yn,originalFileExists:pn,originalDirectoryExists:_n,originalCreateDirectory:q,originalWriteFile:Oe,readFileWithCache:Lt}=Ww(De,Xn);return CJ($e(),V,se,L=>Oi(L,Lt),L=>De.fileExists(L),_t,Vt,Di,Sn,ne)?Y&&(m&&Mn(f.File_change_detected_Starting_incremental_compilation),t=Z(void 0,void 0,De,t,ve,ne),Y=!1):(m&&Mn(f.File_change_detected_Starting_incremental_compilation),tn(_t,Vt)),m=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),De.readFile=yn,De.fileExists=pn,De.directoryExists=_n,De.createDirectory=q,De.writeFile=Oe,t}function tn(Ye,_t){Me("CreatingProgramWith::"),Me(` roots: ${JSON.stringify(V)}`),Me(` options: ${JSON.stringify(se)}`),ne&&Me(` projectReferences: ${JSON.stringify(ne)}`);const Vt=I||!$e();I=!1,Y=!1,We.startCachingPerDirectoryResolution(),De.hasInvalidatedResolutions=Ye,De.hasInvalidatedLibResolutions=_t,De.hasChangedAutomaticTypeDirectiveNames=Di;const yn=$e();if(t=Z(V,se,De,t,ve,ne),We.finishCachingPerDirectoryResolution(t.getProgram(),yn),mJ(t.getProgram(),i||(i=new Map),le),Vt&&We.updateTypeRootsWatch(),A){for(const pn of A)i.has(pn)||v.delete(pn);A=void 0}}function rn(Ye){N.assert(!C,"Cannot update root file names with config file watch mode"),V=Ye,Bt()}function Pn(){return Gy(se||O)}function Xn(Ye){return ol(Ye,M,Ue)}function hn(Ye){return typeof Ye=="boolean"}function Qt(Ye){return typeof Ye.version=="boolean"}function $t(Ye){const _t=Xn(Ye);return hn(v.get(_t))?!1:fe.fileExists(Ye)}function _i(Ye,_t,Vt,yn,pn){const _n=v.get(_t);if(hn(_n))return;const q=typeof Vt=="object"?Vt.impliedNodeFormat:void 0;if(_n===void 0||pn||Qt(_n)||_n.sourceFile.impliedNodeFormat!==q){const Oe=Pe(Ye,Vt,yn);if(_n)Oe?(_n.sourceFile=Oe,_n.version=Oe.version,_n.fileWatcher||(_n.fileWatcher=mt(_t,Ye,ft,250,G,wc.SourceFile))):(_n.fileWatcher&&_n.fileWatcher.close(),v.set(_t,!1));else if(Oe){const Lt=mt(_t,Ye,ft,250,G,wc.SourceFile);v.set(_t,{sourceFile:Oe,version:Oe.version,fileWatcher:Lt})}else v.set(_t,!1);return Oe}return _n.sourceFile}function ao(Ye){const _t=v.get(Ye);_t!==void 0&&(hn(_t)?v.set(Ye,{version:!1}):_t.version=!1)}function Oi(Ye,_t){const Vt=v.get(Ye);if(!Vt)return;if(Vt.version)return Vt.version;const yn=_t(Ye);return yn!==void 0?x7(De,yn):void 0}function No(Ye,_t,Vt){const yn=v.get(Ye.resolvedPath);yn!==void 0&&(hn(yn)?(A||(A=[])).push(Ye.path):yn.sourceFile===Ye&&(yn.fileWatcher&&yn.fileWatcher.close(),v.delete(Ye.resolvedPath),Vt||We.removeResolutionsOfFile(Ye.path)))}function Mn(Ye){e.onWatchStatusChange&&e.onWatchStatusChange(Hl(Ye),pe,se||O)}function Di(){return We.hasChangedAutomaticTypeDirectiveNames()}function Ar(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function sn(){if(!e.setTimeout||!e.clearTimeout)return We.invalidateResolutionsOfFailedLookupLocations();const Ye=Ar();Me(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(tt,250,"timerToInvalidateFailedLookupResolutions")}function tt(){l=void 0,We.invalidateResolutionsOfFailedLookupLocations()&&Bt()}function Bt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Me("Scheduling update"),s=e.setTimeout(li,250,"timerToUpdateProgram"))}function Rn(){N.assert(!!C),r=2,Bt()}function li(){s=void 0,m=!0,hi()}function hi(){var Ye,_t,Vt,yn;switch(r){case 1:(Ye=od)==null||Ye.logStartUpdateProgram("PartialConfigReload"),Qi();break;case 2:(_t=od)==null||_t.logStartUpdateProgram("FullConfigReload"),Io();break;default:(Vt=od)==null||Vt.logStartUpdateProgram("SynchronizeProgram"),It();break}return(yn=od)==null||yn.logStopUpdateProgram("Done"),yt()}function Qi(){Me("Reloading new file names and options"),N.assert(se),N.assert(C),r=0,V=MP(se.configFile.configFileSpecs,go(ai(C),M),se,Ne,K),_F(V,go(C,M),se.configFile.configFileSpecs,ve,$)&&(Y=!0),It()}function Io(){N.assert(C),Me(`Reloading config file: ${C}`),r=0,oe&&oe.clearCache(),ma(),I=!0,It(),pt(),ot(Xn(C),se,G,wc.ExtendedConfigFile)}function ma(){N.assert(C),Wa(aw(C,O,Ne,h||(h=new Map),U,K))}function Wa(Ye){V=Ye.fileNames,se=Ye.options,G=Ye.watchOptions,ne=Ye.projectReferences,he=Ye.wildcardDirectories,ve=tT(Ye).slice(),$=PP(Ye.raw),Y=!0}function Sn(Ye){const _t=Xn(Ye);let Vt=u?.get(_t);if(Vt){if(!Vt.updateLevel)return Vt.parsedCommandLine;if(Vt.parsedCommandLine&&Vt.updateLevel===1&&!e.getParsedCommandLine){Me("Reloading new file names and options"),N.assert(se);const pn=MP(Vt.parsedCommandLine.options.configFile.configFileSpecs,go(ai(Ye),M),se,Ne);return Vt.parsedCommandLine={...Vt.parsedCommandLine,fileNames:pn},Vt.updateLevel=void 0,Vt.parsedCommandLine}}Me(`Loading config file: ${Ye}`);const yn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):kn(Ye);return Vt?(Vt.parsedCommandLine=yn,Vt.updateLevel=void 0):(u||(u=new Map)).set(_t,Vt={parsedCommandLine:yn}),Rt(Ye,_t,Vt),yn}function kn(Ye){const _t=Ne.onUnRecoverableConfigFileDiagnostic;Ne.onUnRecoverableConfigFileDiagnostic=$a;const Vt=aw(Ye,void 0,Ne,h||(h=new Map),U);return Ne.onUnRecoverableConfigFileDiagnostic=_t,Vt}function He(Ye){var _t;const Vt=Xn(Ye),yn=u?.get(Vt);yn&&(u.delete(Vt),yn.watchedDirectories&&tp(yn.watchedDirectories,Mf),(_t=yn.watcher)==null||_t.close(),fJ(Vt,p))}function mt(Ye,_t,Vt,yn,pn,_n){return ie(_t,(q,Oe)=>Vt(q,Oe,Ye),yn,pn,_n)}function ft(Ye,_t,Vt){Ct(Ye,Vt,_t),_t===2&&v.has(Vt)&&We.invalidateResolutionOfFile(Vt),ao(Vt),Bt()}function Ct(Ye,_t,Vt){oe&&oe.addOrDeleteFile(Ye,_t,Vt)}function le(Ye,_t){return u?.has(Ye)?ED:mt(Ye,_t,Fe,500,G,wc.MissingFile)}function Fe(Ye,_t,Vt){Ct(Ye,Vt,_t),_t===0&&i.has(Vt)&&(i.get(Vt).close(),i.delete(Vt),ao(Vt),Bt())}function pt(){kw(o||(o=new Map),he,j)}function j(Ye,_t){return ye(Ye,Vt=>{N.assert(C),N.assert(se);const yn=Xn(Vt);oe&&oe.addOrDeleteFileOrDirectory(Vt,yn),ao(yn),!ww({watchedDirPath:Xn(Ye),fileOrDirectory:Vt,fileOrDirectoryPath:yn,configFileName:C,extraFileExtensions:K,options:se,program:yt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Me,toPath:Xn})&&r!==2&&(r=1,Bt())},_t,G,wc.WildcardDirectory)}function ot(Ye,_t,Vt,yn){s7(Ye,_t,p||(p=new Map),(pn,_n)=>ie(pn,(q,Oe)=>{var Lt;Ct(pn,_n,Oe),h&&l7(h,_n,Xn);const L=(Lt=p.get(_n))==null?void 0:Lt.projects;L?.size&&L.forEach(_e=>{if(C&&Xn(C)===_e)r=2;else{const J=u?.get(_e);J&&(J.updateLevel=2),We.removeResolutionsFromProjectReferenceRedirects(_e)}Bt()})},2e3,Vt,yn),Xn)}function Rt(Ye,_t,Vt){var yn,pn,_n,q;Vt.watcher||(Vt.watcher=ie(Ye,(Oe,Lt)=>{Ct(Ye,_t,Lt);const L=u?.get(_t);L&&(L.updateLevel=2),We.removeResolutionsFromProjectReferenceRedirects(_t),Bt()},2e3,((yn=Vt.parsedCommandLine)==null?void 0:yn.watchOptions)||G,wc.ConfigFileOfReferencedProject)),kw(Vt.watchedDirectories||(Vt.watchedDirectories=new Map),(pn=Vt.parsedCommandLine)==null?void 0:pn.wildcardDirectories,(Oe,Lt)=>{var L;return ye(Oe,_e=>{const J=Xn(_e);oe&&oe.addOrDeleteFileOrDirectory(_e,J),ao(J);const me=u?.get(_t);me?.parsedCommandLine&&(ww({watchedDirPath:Xn(Oe),fileOrDirectory:_e,fileOrDirectoryPath:J,configFileName:Ye,options:me.parsedCommandLine.options,program:me.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Me,toPath:Xn})||me.updateLevel!==2&&(me.updateLevel=1,Bt()))},Lt,((L=Vt.parsedCommandLine)==null?void 0:L.watchOptions)||G,wc.WildcardDirectoryOfReferencedProject)}),ot(_t,(_n=Vt.parsedCommandLine)==null?void 0:_n.options,((q=Vt.parsedCommandLine)==null?void 0:q.watchOptions)||G,wc.ExtendedConfigOfReferencedProject)}}var CHe=T({"src/compiler/watchPublic.ts"(){ra()}});function aK(e){return Il(e,".json")?e:Qr(e,"tsconfig.json")}var sK,PHe=T({"src/compiler/tsbuild.ts"(){ra(),sK=(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))(sK||{})}});function MHe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function Mce(e,t){return MHe(e,t,()=>new Map)}function Uw(e){return e.now?e.now():new Date}function xI(e){return!!e&&!!e.buildOrder}function C7(e){return xI(e)?e.buildOrder:e}function Lce(e,t){return r=>{let i=t?`[${g1(jw(e),"\x1B[90m")}] `:`${jw(e)} - `;i+=`${z_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function fRe(e,t,r,i){const o=iK(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):n0,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):$a,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):$a,o.reportDiagnostic=r||Vw(e),o.reportSolutionBuilderStatus=i||Lce(e),o.now=ia(e,e.now),o}function mRe(e=gu,t,r,i,o){const s=fRe(e,t,r,i);return s.reportErrorSummary=o,s}function _Re(e=gu,t,r,i,o){const s=fRe(e,t,r,i),l=tK(e,o);return rG(s,l),s}function LHe(e){const t={};return fw.forEach(r=>{xs(e,r.name)&&(t[r.name]=e[r.name])}),t}function hRe(e,t,r){return BRe(!1,e,t,r)}function gRe(e,t,r,i){return BRe(!0,e,t,r,i)}function kHe(e,t,r,i,o){const s=t,l=t,u=LHe(i),p=rK(s,()=>M.projectCompilerOptions);R7(p),p.getParsedCommandLine=C=>RI(M,C,B_(M,C)),p.resolveModuleNameLiterals=ia(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=ia(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=ia(s,s.resolveLibrary),p.resolveModuleNames=ia(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=ia(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=ia(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=lD(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(C,O,U,K,Z)=>zw(C,O,U,K,Z,s,h,xJ),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=DF(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(C,O,U,K,Z)=>zw(C,O,U,K,Z,s,m,u7));let v;p.resolveLibrary||(v=lD(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(C,O,U)=>NF(C,O,U,s,v)),p.getBuildInfo=(C,O)=>PRe(M,C,B_(M,O),void 0);const{watchFile:A,watchDirectory:I,writeLog:R}=nK(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:_7(s),write:ia(s,s.trace),options:i,baseCompilerOptions:u,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:v,buildOrder:void 0,readFileWithCache:C=>s.readFile(C),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:A,watchDirectory:I,writeLog:R};return M}function Lf(e,t){return ol(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function B_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Lf(e,t);return r.set(t,o),o}function yRe(e){return!!e.options}function wHe(e,t){const r=e.configFileCache.get(t);return r&&yRe(r)?r:void 0}function RI(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return yRe(o)?o:void 0;il("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:h,host:m}=e;let v;return m.getParsedCommandLine?(v=m.getParsedCommandLine(t),v||(s=Hl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=A=>s=A,v=aw(t,u,l,h,p),l.onUnRecoverableConfigFileDiagnostic=$a),i.set(r,v||s),il("SolutionBuilder::afterConfigFileParsing"),ef("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),v}function QP(e,t){return aK(Pv(e.compilerHost.getCurrentDirectory(),t))}function vRe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,h){const m=B_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(Hl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r `)));return}r.set(m,!0),o.push(p);const v=RI(e,p,m);if(v&&v.projectReferences)for(const A of v.projectReferences){const I=QP(e,A.path);u(I,h||A.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function P7(e){return e.buildOrder||OHe(e)}function OHe(e){const t=vRe(e,e.rootNames.map(o=>QP(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(C7(t).map(o=>B_(e,o))),i={onDeleteValue:$a};return ag(e.configFileCache,r,i),ag(e.projectStatus,r,i),ag(e.builderPrograms,r,i),ag(e.diagnostics,r,i),ag(e.projectPendingBuild,r,i),ag(e.projectErrorsReported,r,i),ag(e.buildInfoCache,r,i),ag(e.outputTimeStamps,r,i),ag(e.lastCachedPackageJsonLookups,r,i),e.watch&&(ag(e.allWatchedConfigFiles,r,{onDeleteValue:Qm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),ag(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Mf)}),ag(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Qm)}),ag(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Qm)})),e.buildOrder=t}function bRe(e,t,r){const i=t&&QP(e,t),o=P7(e);if(xI(o))return o;if(i){const l=B_(e,i);if(Br(o,p=>B_(e,p)===l)===-1)return}const s=i?vRe(e,[i]):o;return N.assert(!xI(s)),N.assert(!r||i!==void 0),N.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function ERe(e){e.cache&&kce(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:v}=Ww(r,A=>Lf(e,A),(...A)=>o.call(t,...A));e.readFileWithCache=v,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function kce(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),u?.clear(),e.cache=void 0}function SRe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function TRe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(B_(e,i),0)),t&&t.throwIfCancellationRequested()}function IRe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function WHe(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:()=>{LRe(e,i,r),s=!1},done:()=>(s&&LRe(e,i,r),il("SolutionBuilder::Timestamps only updates"),IRe(e,r))}}function xRe(e,t,r,i,o,s,l){let u=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:()=>A(nl),getProgram:()=>A(G=>G.getProgramOrUndefined()),getSourceFile:G=>A(ne=>ne.getSourceFile(G)),getSourceFiles:()=>I(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>I(ne=>ne.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>I(ne=>ne.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>I(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,ne)=>I(he=>he.getSyntacticDiagnostics(G,ne)),getAllDependencies:G=>I(ne=>ne.getAllDependencies(G)),getSemanticDiagnostics:(G,ne)=>I(he=>he.getSemanticDiagnostics(G,ne)),getSemanticDiagnosticsOfNextAffectedFile:(G,ne)=>A(he=>he.getSemanticDiagnosticsOfNextAffectedFile&&he.getSemanticDiagnosticsOfNextAffectedFile(G,ne)),emit:(G,ne,he,ve,$)=>{if(G||ve)return A(Y=>{var oe,fe;return Y.emit(G,ne,he,ve,$||((fe=(oe=t.host).getCustomTransformers)==null?void 0:fe.call(oe,r)))});if(se(2,he),u===5)return K(ne,he);if(u===3)return U(ne,he,$)},done:v}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,ne)=>u!==4?m:V(G,ne),done:v};function v(G,ne,he){return se(8,G,ne,he),il(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),IRe(t,i)}function A(G){return se(0),p&&G(p)}function I(G){return A(G)||et}function R(){var G,ne,he;if(N.assert(p===void 0),t.options.dry){Rd(t,f.A_non_dry_build_would_build_project_0,r),h=1,u=7;return}if(t.options.verbose&&Rd(t,f.Building_project_0,r),s.fileNames.length===0){ZP(t,i,tT(s)),h=0,u=7;return}const{host:ve,compilerHost:$}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(ne=t.typeReferenceDirectiveResolutionCache)==null||ne.update(s.options),p=ve.createProgram(s.fileNames,s.options,$,zHe(t,i,s),tT(s),s.projectReferences),t.watch){const Y=(he=t.moduleResolutionCache)==null?void 0:he.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,Y&&new Set(zo(Y.values(),oe=>t.host.realpath&&(RF(oe)||oe.directoryExists)?t.host.realpath(Qr(oe.packageDirectory,"package.json")):Qr(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,ne,he){G.length?{buildResult:h,step:u}=Wce(t,i,p,s,G,ne,he):u++}function C(G){N.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function O(G){M(N.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function U(G,ne,he){var ve,$,Y;N.assertIsDefined(p),N.assert(u===3);const oe=p.saveEmitState();let fe;const Ne=je=>(fe||(fe=[])).push(je),pe=[],{emitResult:ie}=I7(p,Ne,void 0,void 0,(je,at,Gt,yt,$e,It)=>pe.push({name:je,text:at,writeByteOrderMark:Gt,data:It}),ne,!1,he||(($=(ve=t.host).getCustomTransformers)==null?void 0:$.call(ve,r)));if(fe)return p.restoreEmitState(oe),{buildResult:h,step:u}=Wce(t,i,p,s,fe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ye,compilerHost:Me}=t,Ue=(Y=p.hasChangedEmitSignature)!=null&&Y.call(p)?0:2,Ee=xR(),De=new Map,Pe=p.getCompilerOptions(),We=cP(Pe);let At,Se;return pe.forEach(({name:je,text:at,writeByteOrderMark:Gt,data:yt})=>{const $e=Lf(t,je);De.set(Lf(t,je),je),yt?.buildInfo&&zce(t,yt.buildInfo,i,Pe,Ue);const It=yt?.differsOnlyInMap?TA(t.host,je):void 0;wC(G?{writeFile:G}:Me,Ee,je,at,Gt),yt?.differsOnlyInMap?t.host.setModifiedTime(je,It):!We&&t.watch&&(At||(At=Fce(t,i))).set($e,Se||(Se=Uw(t.host)))}),Z(Ee,De,pe.length?pe[0].name:uJ(s,!ye.useCaseSensitiveFileNames()),Ue),ie}function K(G,ne){N.assertIsDefined(p),N.assert(u===5);const he=p.emitBuildInfo((ve,$,Y,oe,fe,Ne)=>{Ne?.buildInfo&&zce(t,Ne.buildInfo,i,p.getCompilerOptions(),2),G?G(ve,$,Y,oe,fe,Ne):t.compilerHost.writeFile(ve,$,Y,oe,fe,Ne)},ne);return he.diagnostics.length&&(L7(t,he.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...he.diagnostics]),h=64&h),he.emittedFiles&&t.write&&he.emittedFiles.forEach(ve=>NRe(t,s,ve)),Oce(t,p,s),u=7,he}function Z(G,ne,he,ve){const $=G.getDiagnostics();return $.length?({buildResult:h,step:u}=Wce(t,i,p,s,$,64,"Emit"),$):(t.write&&ne.forEach(Y=>NRe(t,s,Y)),MRe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:he}),Oce(t,p,s),u=7,h=ve,$)}function V(G,ne){var he,ve,$,Y;if(N.assert(e===1),t.options.dry){Rd(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,u=7;return}t.options.verbose&&Rd(t,f.Updating_output_of_project_0,r);const{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ve=(he=t.host).beforeEmitBundle)==null||ve.call(he,s);const fe=Jle(s,oe,Ue=>{const Ee=QP(t,Ue.path);return RI(t,Ee,B_(t,Ee))},ne||((Y=($=t.host).getCustomTransformers)==null?void 0:Y.call($,r)));if(Po(fe))return Rd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,cu(t,fe)),u=6,m=xRe(0,t,r,i,o,s,l);N.assert(!!fe.length);const Ne=xR(),pe=new Map;let ie=2;const ye=t.buildInfoCache.get(i).buildInfo||void 0;return fe.forEach(({name:Ue,text:Ee,writeByteOrderMark:De,data:Pe})=>{var We,At;pe.set(Lf(t,Ue),Ue),Pe?.buildInfo&&(((We=Pe.buildInfo.program)==null?void 0:We.outSignature)!==((At=ye?.program)==null?void 0:At.outSignature)&&(ie&=-3),zce(t,Pe.buildInfo,i,s.options,ie)),wC(G?{writeFile:G}:oe,Ne,Ue,Ee,De)}),{emitSkipped:!1,diagnostics:Z(Ne,pe,fe[0].name,ie)}}function se(G,ne,he,ve){for(;u<=G&&u<8;){const $=u;switch(u){case 0:R();break;case 1:C(ne);break;case 2:O(ne);break;case 3:U(he,ne,ve);break;case 5:K(he,ne);break;case 4:V(he,ve);break;case 6:N.checkDefined(m).done(ne,he,ve),u=8;break;case 7:jHe(t,r,i,o,s,l,N.checkDefined(h)),u++;break}N.assert(u>$)}}}function FHe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!tT(r).length||!cP(r.options)}function RRe(e,t,r){if(!e.projectPendingBuild.size||xI(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s{const I=N.checkDefined(e.filesWatched.get(u));N.assert(lK(I)),I.modifiedTime=A,I.callbacks.forEach(R=>R(m,v,A))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{const h=N.checkDefined(e.filesWatched.get(u));N.assert(lK(h)),h.callbacks.length===1?(e.filesWatched.delete(u),Mf(h)):EA(h.callbacks,r)}}}function Fce(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function zce(e,t,r,i,o){const s=Ky(i),l=Bce(e,s,r),u=Uw(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Lf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function Bce(e,t,r){const i=Lf(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function PRe(e,t,r,i){const o=Lf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?i7(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Op}),u}function Gce(e,t,r,i){const o=CRe(e,t);if(rC&&(M=$,C=Y),I&&U.add(Lf(e,$))}if(I){R||(R=GJ(I,h,p));for(const $ of R.roots)if(!U.has($))return{type:10,buildInfoFile:h,inputFile:$}}if(!h){const $=n7(t,!p.useCaseSensitiveFileNames()),Y=Fce(e,r);for(const oe of $){const fe=Lf(e,oe);let Ne=Y?.get(fe);if(Ne||(Ne=TA(e.host,oe),Y?.set(fe,Ne)),Ne===Op)return{type:4,missingOutputFileName:oe};if(NeGce(e,$,v,m));if(ne)return ne;const he=e.lastCachedPackageJsonLookups.get(r),ve=he&&mh(he,$=>Gce(e,$,v,m));return ve||(V&&Z?{type:3,outOfDateOutputFileName:m,newerProjectName:se}:{type:Z?2:O?15:1,newestInputFileTime:C,newestInputFileName:M,oldestOutputFileName:m})}function GHe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Vce(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;il("SolutionBuilder::beforeUpToDateCheck");const o=BHe(e,t,r);return il("SolutionBuilder::afterUpToDateCheck"),ef("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function MRe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=Ky(t.options);if(l){o?.has(Lf(e,l))||(e.options.verbose&&Rd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Uw(e.host)),Bce(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:u}=e,p=n7(t,!u.useCaseSensitiveFileNames()),h=Fce(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let v=!!e.options.verbose;for(const A of p){const I=Lf(e,A);o?.has(I)||(v&&(v=!1,Rd(e,i,t.options.configFilePath)),u.setModifiedTime(A,s||(s=Uw(e.host))),h&&(h.set(I,s),m.add(I)))}}h?.forEach((v,A)=>{!o?.has(A)&&!m.has(A)&&h.delete(A)})}function VHe(e,t,r){if(!t.composite)return;const i=N.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(go(i.buildInfo.program.latestChangedDtsFile,ai(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function LRe(e,t,r){if(e.options.dry)return Rd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);MRe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:uJ(t,!e.host.useCaseSensitiveFileNames())})}function jHe(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(B_(e,h)))?p?2:1:0}function wRe(e,t,r){il("SolutionBuilder::beforeClean");const i=HHe(e,t,r);return il("SolutionBuilder::afterClean"),ef("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function HHe(e,t,r){const i=bRe(e,t,r);if(!i)return 3;if(xI(i))return L7(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const p=B_(e,u),h=RI(e,u,p);if(h===void 0){GRe(e,p);continue}const m=n7(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;const v=new Set(h.fileNames.map(A=>Lf(e,A)));for(const A of m)v.has(Lf(e,A))||s.fileExists(A)&&(l?l.push(A):(s.deleteFile(A),jce(e,p,0)))}return l&&Rd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r * ${u}`).join("")),0}function jce(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,SRe(e,t),TRe(e,t,r),ERe(e)}function M7(e,t,r){e.reportFileChangeDetected=!0,jce(e,t,r),ORe(e,250,!0)}function ORe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(qHe,t,"timerToBuildInvalidatedProject",e,r))}function qHe(e,t,r){il("SolutionBuilder::beforeBuild");const i=JHe(t,r);il("SolutionBuilder::afterBuild"),ef("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&VRe(t,i)}function JHe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),qce(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=P7(e),o=wce(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=RRe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){ORe(e,100,!1);return}DRe(e,s,i).done(),s.kind!==2&&r++}return kce(e),i}function WRe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,cK(e,t,()=>M7(e,r,2),2e3,i?.watchOptions,wc.ConfigFile,t))}function FRe(e,t,r){s7(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>cK(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>M7(e,l,2))},2e3,r?.watchOptions,wc.ExtendedConfigFile),i=>Lf(e,i))}function zRe(e,t,r,i){e.watch&&kw(Mce(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;ww({watchedDirPath:Lf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Lf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=wHe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Lf(e,p)})||M7(e,r,1)},s,i?.watchOptions,wc.WildcardDirectory,t))}function Uce(e,t,r,i){e.watch&&qC(Mce(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>cK(e,o,()=>M7(e,r,0),250,i?.watchOptions,wc.SourceFile,t),onDeleteValue:Qm})}function Hce(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||qC(Mce(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>cK(e,o,()=>M7(e,r,0),2e3,i?.watchOptions,wc.PackageJson,t),onDeleteValue:Qm})}function KHe(e,t){if(e.watchAllProjectsPending){il("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of C7(t)){const i=B_(e,r),o=RI(e,r,i);WRe(e,r,i,o),FRe(e,i,o),o&&(zRe(e,r,i,o),Uce(e,r,i,o),Hce(e,r,i,o))}il("SolutionBuilder::afterWatcherCreation"),ef("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function XHe(e){tp(e.allWatchedConfigFiles,Qm),tp(e.allWatchedExtendedConfigFiles,Mf),tp(e.allWatchedWildcardDirectories,t=>tp(t,Mf)),tp(e.allWatchedInputFiles,t=>tp(t,Qm)),tp(e.allWatchedPackageJsonFiles,t=>tp(t,Qm))}function BRe(e,t,r,i,o){const s=kHe(e,t,r,i,o);return{build:(l,u,p,h)=>kRe(s,l,u,p,h),clean:l=>wRe(s,l),buildReferences:(l,u,p,h)=>kRe(s,l,u,p,h,!0),cleanReferences:l=>wRe(s,l,!0),getNextInvalidatedProject:l=>(ARe(s,l),wce(s,P7(s),!1)),getBuildOrder:()=>P7(s),getUpToDateStatusOfProject:l=>{const u=QP(s,l),p=B_(s,u);return Vce(s,RI(s,u,p),p)},invalidateProject:(l,u)=>jce(s,l,u||0),close:()=>XHe(s)}}function cu(e,t){return nC(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Rd(e,t,...r){e.host.reportSolutionBuilderStatus(Hl(t,...r))}function qce(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Hl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function L7({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function ZP(e,t,r){L7(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function GRe(e,t){ZP(e,t,[e.configFileCache.get(t)])}function VRe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];xI(t)?(jRe(e,t.buildOrder),L7(e,t.circularDiagnostics),r&&(o+=T7(t.circularDiagnostics)),r&&(s=[...s,...A7(t.circularDiagnostics)])):(t.forEach(l=>{const u=B_(e,l);e.projectErrorsReported.has(u)||L7(e,i.get(u)||et)}),r&&i.forEach(l=>o+=T7(l)),r&&i.forEach(l=>[...s,...A7(l)])),e.watch?qce(e,KJ(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function jRe(e,t){e.options.verbose&&Rd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+cu(e,r)).join(""))}function YHe(e,t,r){switch(r.type){case 6:return Rd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cu(e,t),cu(e,r.outOfDateOutputFileName),cu(e,r.newerInputFileName));case 7:return Rd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cu(e,t),cu(e,r.outOfDateOutputFileName),cu(e,r.newerProjectName));case 4:return Rd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cu(e,t),cu(e,r.missingOutputFileName));case 5:return Rd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,cu(e,t),cu(e,r.fileName));case 8:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,cu(e,t),cu(e,r.buildInfoFile));case 9:return Rd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,cu(e,t),cu(e,r.buildInfoFile));case 10:return Rd(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,cu(e,t),cu(e,r.buildInfoFile),cu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Rd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,cu(e,t),cu(e,r.newestInputFileName||""),cu(e,r.oldestOutputFileName||""));break;case 3:return Rd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cu(e,t),cu(e,r.newerProjectName));case 2:return Rd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cu(e,t));case 15:return Rd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,cu(e,t));case 11:return Rd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cu(e,t),cu(e,r.upstreamProjectName));case 12:return Rd(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,cu(e,t),cu(e,r.upstreamProjectName));case 0:return Rd(e,f.Failed_to_parse_file_0_Colon_1,cu(e,t),r.reason);case 14:return Rd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cu(e,t),r.version,Re);case 17:return Rd(e,f.Project_0_is_being_forcibly_rebuilt,cu(e,t))}}function uK(e,t,r){e.options.verbose&&YHe(e,t,r)}var URe,HRe,dK,$He=T({"src/compiler/tsbuildPublic.ts"(){ra(),dS(),URe=new Date(-864e13),HRe=new Date(864e13),dK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(dK||{})}}),ra=T({"src/compiler/_namespaces/ts.ts"(){it(),l9e(),c9e(),v9e(),S9e(),T9e(),k9e(),p1e(),j9e(),K9e(),X9e(),eBe(),aBe(),iGe(),oGe(),aGe(),sGe(),mGe(),_Ge(),hGe(),gGe(),UGe(),HGe(),tVe(),vVe(),HVe(),$Ve(),QVe(),pje(),yje(),xje(),Lje(),qje(),Jje(),nUe(),rUe(),iUe(),dUe(),pUe(),fUe(),mUe(),_Ue(),hUe(),gUe(),yUe(),vUe(),SUe(),TUe(),AUe(),IUe(),xUe(),DUe(),NUe(),CUe(),PUe(),MUe(),LUe(),zUe(),HUe(),tHe(),rHe(),sHe(),lHe(),cHe(),SHe(),THe(),xHe(),NHe(),CHe(),PHe(),$He(),Xse(),dS()}});function qRe(e){return gu.args.includes(e)}function JRe(e){const t=gu.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"})(fK||(fK={})),Jce=` `}}),ZHe=T({"src/jsTyping/types.ts"(){}}),W7=T({"src/jsTyping/_namespaces/ts.server.ts"(){QHe(),ZHe()}});function XRe(e,t){return new vm(T6(t,`ts${ue}`)||T6(t,"latest")).compareTo(e.version)<=0}function YRe(e){return Qce.has(e)?"node":e}function eqe(e,t){const r=sw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function tqe(e,t){var r;const i=sw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function nqe(e,t,r,i,o,s,l,u,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const m=new Map;r=Hi(r,Z=>{const V=ga(Z);if(XE(V))return V});const v=[];l.include&&O(l.include,"Explicitly included types");const A=l.exclude||[];if(!h.types){const Z=new Set(r.map(ai));Z.add(i),Z.forEach(V=>{U(V,"bower.json","bower_components",v),U(V,"package.json","node_modules",v)})}if(l.disableFilenameBasedTypeAcquisition||K(r),u){const Z=RE(u.map(YRe),cS,Uu);O(Z,"Inferred typings from unresolved imports")}for(const Z of A)m.delete(Z)&&t&&t(`Typing for ${Z} is in exclude list, will be ignored.`);s.forEach((Z,V)=>{const se=p.get(V);m.get(V)===!1&&se!==void 0&&XRe(Z,se)&&m.set(V,Z.typingLocation)});const I=[],R=[];m.forEach((Z,V)=>{Z?R.push(Z):I.push(V)});const M={cachedTypingPaths:R,newTypingNames:I,filesToWatch:v};return t&&t(`Finished typings discovery:${w0(M)}`),M;function C(Z){m.has(Z)||m.set(Z,!1)}function O(Z,V){t&&t(`${V}: ${JSON.stringify(Z)}`),Xe(Z,C)}function U(Z,V,se,G){const ne=Qr(Z,V);let he,ve;e.fileExists(ne)&&(G.push(ne),he=sw(ne,fe=>e.readFile(fe)).config,ve=Pi([he.dependencies,he.devDependencies,he.optionalDependencies,he.peerDependencies],Kh),O(ve,`Typing names in '${ne}' dependencies`));const $=Qr(Z,se);if(G.push($),!e.directoryExists($))return;const Y=[],oe=ve?ve.map(fe=>Qr($,fe,V)):e.readDirectory($,[".json"],void 0,void 0,3).filter(fe=>{if(rc(fe)!==V)return!1;const Ne=zc(ga(fe)),pe=Ne[Ne.length-3][0]==="@";return pe&&lh(Ne[Ne.length-4])===se||!pe&&lh(Ne[Ne.length-3])===se});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(oe)}`);for(const fe of oe){const Ne=ga(fe),ie=sw(Ne,Me=>e.readFile(Me)).config;if(!ie.name)continue;const ye=ie.types||ie.typings;if(ye){const Me=go(ye,ai(Ne));e.fileExists(Me)?(t&&t(` Package '${ie.name}' provides its own types.`),m.set(ie.name,Me)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else Y.push(ie.name)}O(Y," Found package names")}function K(Z){const V=Hi(Z,G=>{if(!XE(G))return;const ne=Ad(lh(rc(G))),he=aG(ne);return o.get(he)});V.length&&O(V,"Inferred typings from file names"),bt(Z,G=>Il(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),C("react"))}}function rqe(e){return Kce(e,!0)}function Kce(e,t){if(!e)return 1;if(e.length>eue)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=Kce(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=Kce(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function iqe(e,t){return typeof e=="object"?$Re(t,e.result,e.name,e.isScopeName):$Re(t,e,t,!1)}function $Re(e,t,r,i){const 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 ${eue} 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 N.fail();default:N.assertNever(t)}}var Xce,Yce,$ce,Qce,Zce,eue,oqe=T({"src/jsTyping/jsTyping.ts"(){Kw(),W7(),Xce=["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"],Yce=Xce.map(e=>`node:${e}`),$ce=[...Xce,...Yce],Qce=new Set($ce),Zce=(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))(Zce||{}),eue=214}}),G_={};X(G_,{NameValidationResult:()=>Zce,discoverTypings:()=>nqe,isTypingUpToDate:()=>XRe,loadSafeList:()=>eqe,loadTypesMap:()=>tqe,nodeCoreModuleList:()=>$ce,nodeCoreModules:()=>Qce,nonRelativeModuleNameForTypingCache:()=>YRe,prefixedNodeCoreModuleList:()=>Yce,renderPackageNameValidationFailure:()=>iqe,validatePackageName:()=>rqe});var aqe=T({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){oqe()}}),Kw=T({"src/jsTyping/_namespaces/ts.ts"(){ra(),aqe(),W7()}});function F7(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 z7,mK,_K,hK,kf,gK,yK,vK,bK,EK,SK,TK,tue,Xw,AK,IK,xK,RK,DK,NK,CK,PK,MK,sqe=T({"src/services/types.ts"(){(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})(z7||(z7={})),mK=(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))(mK||{}),_K=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(_K||{}),hK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(hK||{}),kf={},gK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(gK||{}),yK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(yK||{}),vK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(vK||{}),bK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(bK||{}),EK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(EK||{}),SK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(SK||{}),TK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(TK||{}),tue=F7(` `),Xw=(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))(Xw||{}),AK=(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))(AK||{}),IK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(IK||{}),xK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(xK||{}),RK=(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))(RK||{}),DK=(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))(DK||{}),NK=(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))(NK||{}),CK=(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))(CK||{}),PK=(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))(PK||{}),MK=(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))(MK||{})}});function Yw(e){switch(e.kind){case 260:return lr(e)&&OV(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 ku(e)||Hg(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 rT(e){e=HK(e);const t=e.parent;return e.kind===312?1:kl(t)||Ku(t)||Th(t)||np(t)||Eh(t)||tu(t)&&e===t.name?7:B7(e)?lqe(e):Wg(e)?Yw(t):Zd(e)&&Gn(e,Ym(AP,MA,x0))?7:pqe(e)?2:cqe(e)?4:gl(t)?(N.assert(sm(t.parent)),2):Zv(t)?3:1}function lqe(e){const t=e.kind===166?e:Id(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function B7(e){for(;e.parent.kind===166;)e=e.parent;return _R(e.parent)&&e.parent.moduleReference===e}function cqe(e){return uqe(e)||dqe(e)}function uqe(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 dqe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function pqe(e){switch(GC(e)&&(e=e.parent),e.kind){case 110:return!tg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return eg(e.parent)}return!1}function LK(e,t=!1,r=!1){return $w(e,sa,wK,t,r)}function nM(e,t=!1,r=!1){return $w(e,n1,wK,t,r)}function kK(e,t=!1,r=!1){return $w(e,I_,wK,t,r)}function nue(e,t=!1,r=!1){return $w(e,r1,fqe,t,r)}function rue(e,t=!1,r=!1){return $w(e,Eu,wK,t,r)}function iue(e,t=!1,r=!1){return $w(e,cd,mqe,t,r)}function wK(e){return e.expression}function fqe(e){return e.tag}function mqe(e){return e.tagName}function $w(e,t,r,i,o){let s=i?oue(e):G7(e);return o&&(s=$l(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function G7(e){return TD(e)?e.parent:e}function oue(e){return TD(e)||zK(e)?e.parent:e}function V7(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Qw(e,t){return Wr(e.expression)?e.expression.name.text===t:!1}function Zw(e){var t;return Ve(e)&&((t=ii(e.parent,dC))==null?void 0:t.label)===e}function OK(e){var t;return Ve(e)&&((t=ii(e.parent,i1))==null?void 0:t.label)===e}function WK(e){return OK(e)||Zw(e)}function FK(e){var t;return((t=ii(e.parent,rR))==null?void 0:t.tagName)===e}function aue(e){var t;return((t=ii(e.parent,Id))==null?void 0:t.right)===e}function TD(e){var t;return((t=ii(e.parent,Wr))==null?void 0:t.name)===e}function zK(e){var t;return((t=ii(e.parent,Qs))==null?void 0:t.argumentExpression)===e}function BK(e){var t;return((t=ii(e.parent,Xl))==null?void 0:t.name)===e}function GK(e){var t;return Ve(e)&&((t=ii(e.parent,ea))==null?void 0:t.name)===e}function j7(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Mo(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 sue(e){return _0(e.parent.parent)&&IC(e.parent.parent)===e}function iT(e){for(Zf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function y1(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(C_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return ea(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 Zr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=Bl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=y1(o);return l===""?"const":l;case 3:return Os(o)?"method":"property";case 4:return"property";case 5:return Os(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Eh(e.parent)?"alias":"";case 277:const s=y1(e.expression);return s===""?"const":s;default:return""}function t(r){return cR(r)?"const":F4(r)?"let":"var"}}function AD(e){switch(e.kind){case 110:return!0;case 80:return nU(e)&&e.parent.kind===169;default:return!1}}function lm(e,t){const r=Pg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function cf(e,t){return VK(e.pos,e.end,t)}function lue(e,t){return tO(e,t.pos)&&tO(e,t.end)}function eO(e,t){return e.pos<=t&&t<=e.end}function tO(e,t){return e.pos=r.end}function nO(e,t,r){return e.pos<=t&&e.end>=r}function rM(e,t,r){return H7(e.pos,e.end,t,r)}function U7(e,t,r,i){return H7(e.getStart(t),e.end,r,i)}function H7(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function q7(e){const t=An(e.parent.getChildren(),r=>ZR(r)&&cf(r,e));return N.assert(!t||Nr(t.getChildren(),e)),t}function QRe(e){return e.kind===90}function _qe(e){return e.kind===86}function hqe(e){return e.kind===100}function gqe(e){if(sd(e))return e.name;if(Ic(e)){const t=e.modifiers&&An(e.modifiers,QRe);if(t)return t}if(Zc(e)){const t=An(e.getChildren(),_qe);if(t)return t}}function yqe(e){if(sd(e))return e.name;if(Ac(e)){const t=An(e.modifiers,QRe);if(t)return t}if(Os(e)){const t=An(e.getChildren(),hqe);if(t)return t}}function vqe(e){let t;return Gn(e,r=>(ji(r)&&(t=r),!Id(r.parent)&&!ji(r.parent)&&!gS(r.parent))),t}function J7(e,t){if(e.flags&16777216)return;const r=p5(e,t);if(r)return r;const i=vqe(e);return i&&t.getTypeAtLocation(i)}function bqe(e,t){if(!t)switch(e.kind){case 263:case 231:return gqe(e);case 262:case 218:return yqe(e);case 176:return e}if(sd(e))return e.name}function ZRe(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(Vg(e.importClause.namedBindings)){const r=ah(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(nb(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function eDe(e,t){if(e.exportClause){if(Pf(e.exportClause))return ah(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Sh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Eqe(e){if(e.types.length===1)return e.types[0].expression}function tDe(e,t){const{parent:r}=e;if(Ia(e)&&(t||e.kind!==90)?Cm(r)&&Nr(r.modifiers,e):e.kind===86?Ic(r)||Zc(e):e.kind===100?Ac(r)||Os(e):e.kind===120?_d(r):e.kind===94?I0(r):e.kind===156?Nm(r):e.kind===145||e.kind===144?Xl(r):e.kind===102?tu(r):e.kind===139?rf(r):e.kind===153&&vp(r)){const i=bqe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Uc(r)&&r.declarations.length===1){const i=r.declarations[0];if(Ve(i.name))return i.name}if(e.kind===156){if(Eh(r)&&r.isTypeOnly){const i=ZRe(r.parent,t);if(i)return i}if(Yl(r)&&r.isTypeOnly){const i=eDe(r,t);if(i)return i}}if(e.kind===130){if(np(r)&&r.propertyName||Ku(r)&&r.propertyName||nb(r)||Sh(r))return r.name;if(Yl(r)&&r.exportClause&&Sh(r.exportClause))return r.exportClause.name}if(e.kind===102&&kc(r)){const i=ZRe(r,t);if(i)return i}if(e.kind===95){if(Yl(r)){const i=eDe(r,t);if(i)return i}if(kl(r))return $l(r.expression)}if(e.kind===149&&Th(r))return r.expression;if(e.kind===161&&(kc(r)||Yl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&of(r)&&r.token===e.kind){const i=Eqe(r);if(i)return i}if(e.kind===96){if(gl(r)&&r.constraint&&Cf(r.constraint))return r.constraint.typeName;if(cI(r)&&Cf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&FS(r))return r.typeParameter.name;if(e.kind===103&&gl(r)&&qR(r.parent))return r.name;if(e.kind===143&&BS(r)&&r.operator===143&&Cf(r.type))return r.type.typeName;if(e.kind===148&&BS(r)&&r.operator===148&&Vk(r.type)&&Cf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&n1(r)||e.kind===116&&uI(r)||e.kind===114&&JR(r)||e.kind===135&&eb(r)||e.kind===127&&JW(r)||e.kind===91&&Sae(r))&&r.expression)return $l(r.expression);if((e.kind===103||e.kind===104)&&mr(r)&&r.operatorToken===e)return $l(r.right);if(e.kind===130&&Uk(r)&&Cf(r.type))return r.type.typeName;if(e.kind===103&&XW(r)||e.kind===165&&Hk(r))return $l(r.expression)}return e}function HK(e){return tDe(e,!1)}function K7(e){return tDe(e,!0)}function Vd(e,t){return ID(e,t,r=>N_(r)||Bd(r.kind)||Ji(r))}function ID(e,t,r){return nDe(e,t,!1,r,!1)}function po(e,t){return nDe(e,t,!0,void 0,!1)}function nDe(e,t,r,i,o){let s=e,l;e:for(;;){const p=s.getChildren(e),h=yA(p,t,(m,v)=>v,(m,v)=>{const A=p[m].getEnd();if(At?1:u(p[m],I,A)?p[m-1]&&u(p[m-1])?1:0:i&&I===t&&p[m-1]&&p[m-1].getEnd()===t&&u(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function u(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)&&gue(s,r)?i(s):void 0)}}function xc(e,t,r,i){const o=s(r||t);return N.assert(!(o&&Y7(o))),o;function s(l){if(rDe(l)&&l.kind!==1)return l;const u=l.getChildren(t),p=yA(u,e,(m,v)=>v,(m,v)=>e=u[m-1].end?0:1:-1);if(p>=0&&u[p]){const m=u[p];if(e=e||!gue(m,t)||Y7(m)){const I=pue(u,p,t,l.kind);return I?!i&&T4(I)&&I.getChildren(t).length?s(I):due(I,t):void 0}else return s(m)}N.assert(r!==void 0||l.kind===312||l.kind===1||T4(l));const h=pue(u,u.length,t,l.kind);return h&&due(h,t)}}function rDe(e){return RA(e)&&!Y7(e)}function due(e,t){if(rDe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=pue(r,r.length,t,e.kind);return i&&due(i,t)}function pue(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(Y7(s))o===0&&(i===12||i===285)&&N.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(gue(e[o],r))return e[o]}}function DI(e,t,r=xc(t,e)){if(r&&UV(r)){const i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function mue(e,t){const r=po(e,t);return!!(eI(r)||r.kind===19&&SP(r.parent)&&ug(r.parent.parent)||r.kind===30&&cd(r.parent)&&ug(r.parent.parent))}function $7(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(po(e,t))}function Q7(e,t,r){const i=fa(e.kind),o=fa(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 KK(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=xc(r.getFullStart(),t),r&&r.kind===29&&(r=xc(r.getFullStart(),t)),!r||!Ve(r))return;if(!i)return Wg(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=Q7(r,19,t),!r)return;break;case 22:if(r=Q7(r,21,t),!r)return;break;case 24:if(r=Q7(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=xc(r.getFullStart(),t)}}function Xy(e,t,r){return Oc.getRangeOfEnclosingComment(e,t,void 0,r)}function hue(e,t){const r=po(e,t);return!!Gn(r,n_)}function gue(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function iM(e,t=0){const r=[],i=Ju(e)?MV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Rl(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 yue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ea(e)||e.kind===263||e.kind===264)return e.typeParameters}function Z7(e){return e===2||e===3}function XK(e){return!!(e===11||e===14||wv(e))}function iDe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function vue(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(iDe(r,t[0],t[1])||iDe(r,t[1],t[0]))}function oO(e,t,r){return wv(e.kind)&&e.getStart(r){const r=as(t);return!e[r]&&(e[r]=!0)}}function xD(e){return e.getText(0,e.getLength())}function lO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Tue(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function rX(e){return!!e.module||os(e)>=2||!!e.noEmit}function oT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ia(t,t.readFile),useCaseSensitiveFileNames:ia(t,t.useCaseSensitiveFileNames),getSymlinkCache:ia(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ia(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ia(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ia(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function iX(e,t){return{...oT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function r5(e){return e===2||e>=3&&e<=99||e===100}function Aue(e,t,r,i){return e||t&&t.length?$y(e,t,r,i):void 0}function $y(e,t,r,i,o){return w.createImportDeclaration(void 0,e||t?w.createImportClause(!!o,e,t&&t.length?w.createNamedImports(t):void 0):void 0,typeof r=="string"?CI(r,i):r,void 0)}function CI(e,t){return w.createStringLiteral(e,t===0)}function oX(e,t){return t3(e,t)?1:0}function uf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&An(e.imports,i=>Ma(i)&&!$s(i.parent));return r?oX(r,e):1}}function aX(e){switch(e){case 0:return"'";case 1:return'"';default:return N.assertNever(e)}}function i5(e){const t=o5(e);return t===void 0?void 0:Vi(t)}function o5(e){return e.escapedName!=="default"?e.escapedName:qt(e.declarations,t=>{const r=Mo(t);return r&&r.kind===80?r.escapedText:void 0})}function a5(e){return ls(e)&&(Th(e.parent)||kc(e.parent)||Td(e.parent,!1)&&e.parent.arguments[0]===e||Bp(e.parent)&&e.parent.arguments[0]===e)}function uO(e){return Qa(e)&&am(e.parent)&&Ve(e.name)&&!e.propertyName}function s5(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function dO(e,t,r){if(e)for(;e.parent;){if($i(e.parent)||!Sqe(r,e.parent,t))return e;e=e.parent}}function Sqe(e,t,r){return PV(e,t.getStart(r))&&t.getEnd()<=Kl(e)}function RD(e,t){return Cm(e)?An(e.modifiers,r=>r.kind===t):void 0}function aM(e,t,r,i,o){const l=(To(r)?r[0]:r).kind===243?Dj:ES,u=nr(t.statements,l);let p=To(r)?Lm.detectImportDeclarationSorting(r,o):3;const h=Lm.getOrganizeImportsComparer(o,p===2),m=To(r)?Iy(r,(v,A)=>Lm.compareImportsOrRequireStatements(v,A,h)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,m,i);else if(u&&(p=Lm.detectImportDeclarationSorting(u,o))){const v=Lm.getOrganizeImportsComparer(o,p===2);for(const A of m){const I=Lm.getImportDeclarationInsertionIndex(u,A,v);if(I===0){const R=u[0]===t.statements[0]?{leadingTriviaOption:_r.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],A,!1,R)}else{const R=u[I-1];e.insertNodeAfter(t,R,A)}}}else{const v=tl(u);v?e.insertNodesAfter(t,v,m):e.insertNodesAtTopOfFile(t,m,i)}}function sX(e,t){return N.assert(e.isTypeOnly),oa(e.getChildAt(0,t),tX)}function DD(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function lX(e,t,r){return(r?cS:r0)(e.fileName,t.fileName)&&DD(e.textSpan,t.textSpan)}function cX(e){return(t,r)=>lX(t,r,e)}function uX(e,t){if(e){for(let r=0;rAo(r)?!0:Qa(r)||am(r)||t1(r)?!1:"quit")}function Tqe(){const e=Sk*10;let t,r,i,o;m();const s=v=>u(v,17);return{displayParts:()=>{const v=t.length&&t[t.length-1].text;return o>e&&v&&v!=="..."&&(Mg(v.charCodeAt(v.length-1))||t.push(ip(" ",16)),t.push(ip("...",15))),t},writeKeyword:v=>u(v,5),writeOperator:v=>u(v,12),writePunctuation:v=>u(v,15),writeTrailingSemicolon:v=>u(v,15),writeSpace:v=>u(v,16),writeStringLiteral:v=>u(v,8),writeParameter:v=>u(v,13),writeProperty:v=>u(v,14),writeLiteral:v=>u(v,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ko,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){const v=d3(i);v&&(o+=v.length,t.push(ip(v,16))),r=!1}}function u(v,A){o>e||(l(),o+=v.length,t.push(ip(v,A)))}function p(v,A){o>e||(l(),o+=v.length,t.push(xue(v,A)))}function h(){o>e||(o+=1,t.push(ND()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function xue(e,t){return ip(e,r(t));function r(i){const o=i.flags;return o&3?pX(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 ip(e,t){return{text:e,kind:Xw[t]}}function wl(){return ip(" ",16)}function Sp(e){return ip(fa(e),5)}function $u(e){return ip(fa(e),15)}function lM(e){return ip(fa(e),12)}function Rue(e){return ip(e,13)}function Due(e){return ip(e,14)}function fX(e){const t=CE(e);return t===void 0?df(e):Sp(t)}function df(e){return ip(e,17)}function Nue(e){return ip(e,0)}function Cue(e){return ip(e,18)}function c5(e){return ip(e,24)}function Pue(e,t){return{text:e,kind:Xw[23],target:{fileName:jn(t).fileName,textSpan:Dd(t)}}}function mX(e){return ip(e,22)}function Mue(e,t){var r;const i=Nae(e)?"link":Cae(e)?"linkcode":"linkplain",o=[mX(`{@${i} `)];if(!e.name)e.text&&o.push(c5(e.text));else{const s=t?.getSymbolAtLocation(e.name),l=s&&t?gX(s,t):void 0,u=Iqe(e.text),p=pc(e.name)+e.text.slice(0,u),h=Aqe(e.text.slice(u)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(Pue(p,m)),h&&o.push(c5(h));else{const v=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(c5(p+v+h))}}return o.push(mX("}")),o}function Aqe(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))||mDe}function ND(){return ip(` `,6)}function lb(e){try{return e(kX),kX.displayParts()}finally{kX.clear()}}function pO(e,t,r,i=0){return lb(o=>{e.writeType(t,r,i|1024|16384,o)})}function cM(e,t,r,i,o=0){return lb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function _X(e,t,r,i=0){return i|=25632,lb(o=>{e.writeSignature(t,r,i,void 0,o)})}function aDe(e,t){const r=t.getSourceFile();return lb(i=>{Lw().writeNode(4,e,r,i)})}function Lue(e){return!!e.parent&&DA(e.parent)&&e.parent.propertyName===e}function hX(e,t){return G3(e,t.getScriptKind&&t.getScriptKind(e))}function gX(e,t){let r=e;for(;xqe(r)||fh(r)&&r.links.target;)fh(r)&&r.links.target?r=r.links.target:r=bu(r,t);return r}function xqe(e){return(e.flags&2097152)!==0}function kue(e,t){return Ta(bu(e,t))}function wue(e,t){for(;Mg(e.charCodeAt(t));)t+=1;return t}function u5(e,t){for(;t>-1&&A_(e.charCodeAt(t));)t-=1;return t+1}function cl(e,t=!0){const r=e&&sDe(e);return r&&!t&&Tp(r),r}function fO(e,t,r){let i=r(e);return i?Cr(i,e):i=sDe(e,r),i&&!t&&Tp(i),i}function sDe(e,t){const r=t?s=>fO(s,!0,t):cl,o=In(e,r,void 0,t?s=>s&&yX(s,!0,t):s=>s&&b1(s),r);if(o===e){const s=Ma(e)?Cr(w.createStringLiteralFromNode(e),e):gp(e)?Cr(w.createNumericLiteral(e.text,e.numericLiteralFlags),e):w.cloneNode(e);return dt(s,e)}return o.parent=void 0,o}function b1(e,t=!0){if(e){const r=w.createNodeArray(e.map(i=>cl(i,t)),e.hasTrailingComma);return dt(r,e),r}return e}function yX(e,t,r){return w.createNodeArray(e.map(i=>fO(i,t,r)),e.hasTrailingComma)}function Tp(e){vX(e),Oue(e)}function vX(e){Wue(e,1024,Dqe)}function Oue(e){Wue(e,2048,_U)}function aT(e,t){const r=e.getSourceFile(),i=r.text;Rqe(e,i)?CD(e,t,r):_O(e,t,r),uM(e,t,r)}function Rqe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;ot)}function sT(e,t){let r=e;for(let i=1;!P4(t,r);i++)r=`${e}_${i}`;return r}function mO(e,t,r,i){let o=0,s=-1;for(const{fileName:l,textChanges:u}of e){N.assert(l===t);for(const p of u){const{span:h,newText:m}=p,v=Nqe(m,ig(r));if(v!==-1&&(s=h.start+o+v,!i))return s;o+=m.length-h.length}}return N.assert(i),N.assert(s>=0),s}function CD(e,t,r,i,o){Y2(r.text,e.pos,Fue(t,r,i,o,pP))}function uM(e,t,r,i,o){$2(r.text,e.end,Fue(t,r,i,o,uW))}function _O(e,t,r,i,o){$2(r.text,e.pos,Fue(t,r,i,o,pP))}function Fue(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function Nqe(e,t){if(uo(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 d5(e){return mr(e)&&e.operatorToken.kind===28||Oa(e)||(Uk(e)||yH(e))&&Oa(e.expression)}function p5(e,t,r){const i=Wy(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:o,operatorToken:s,right:l}=i;return f5(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return EX(i,t);default:return t.getContextualType(e,r)}}function dM(e,t,r){const i=uf(e,t),o=JSON.stringify(r);return i===0?`'${tm(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function f5(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function zue(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function bX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function EX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function pM(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=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:iX(r,i)});return s?u:void 0}function Bue(e){return e===179||e===180||e===181||e===171||e===173}function lDe(e){return e===262||e===176||e===174||e===177||e===178}function cDe(e){return e===267}function m5(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 Cqe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Bue(e.kind)){if(r&&r.kind===28)return!1}else if(cDe(e.kind)){const u=Ya(e.getChildren(t));if(u&&O_(u))return!1}else if(lDe(e.kind)){const u=Ya(e.getChildren(t));if(u&&zE(u))return!1}else if(!m5(e.kind))return!1;if(e.kind===246)return!0;const i=Gn(e,u=>!u.parent),o=v1(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function _5(e,t,r){const i=Gn(t,o=>o.end!==e?"quit":wX(o.kind));return!!i&&Cqe(i,r)}function hO(e){let t=0,r=0;const i=5;return Ho(e,function o(s){if(m5(s.kind)){const l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Bue(s.kind)){const l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){const u=bs(e,l.getStart(e)).line,p=bs(e,hh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Ho(s,o)}),t===0&&r<=1?!0:t/r>1/i}function h5(e,t){return v5(e,e.getDirectories,t)||[]}function SX(e,t,r,i,o){return v5(e,e.readDirectory,t,r,i,o)||et}function gO(e,t){return v5(e,e.fileExists,t)}function g5(e,t){return y5(()=>$m(t,e))||!1}function y5(e){try{return e()}catch{return}}function v5(e,t,...r){return y5(()=>t&&t.apply(e,r))}function TX(e,t,r){const i=[];return Sm(e,o=>{if(o===r)return!0;const s=Qr(o,"package.json");gO(t,s)&&i.push(s)}),i}function Gue(e,t){let r;return Sm(e,i=>{if(i==="node_modules"||(r=Yle(i,o=>gO(t,o),"package.json"),r))return!0}),r}function Vue(e,t){if(!t.fileExists)return[];const r=[];return Sm(ai(e),i=>{const o=Qr(i,"package.json");if(t.fileExists(o)){const s=AX(o,t);s&&r.push(s)}}),r}function AX(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=A3(i),s={};if(o)for(const p of r){const h=o[p];if(!h)continue;const m=new Map;for(const v in h)m.set(v,h[v]);s[p]=m}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,h){return!!u(p,h)}};function u(p,h=15){for(const[m,v]of l)if(v&&h&m){const A=v.get(p);if(A!==void 0)return A}}}function fM(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Vue(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function u(R){const M=I(R);for(const C of i)if(C.has(M)||C.has(MF(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const Z=s.get(R);if(Z!==void 0)return Z}const C=tm(R.getName());if(v(C))return s.set(R,!0),!0;const O=R.valueDeclaration.getSourceFile(),U=A(O.fileName,M);if(typeof U>"u")return s.set(R,!0),!0;const K=u(U)||u(C);return s.set(R,K),K}function h(R,M){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(R);if(U!==void 0)return U}const C=A(R.fileName,M);if(!C)return l.set(R,!0),!0;const O=u(C);return l.set(R,O),O}function m(R){return!i.length||v(R)||Wp(R)||pp(R)?!0:u(R)}function v(R){return!!(ud(e)&&G_.nodeCoreModules.has(R)&&(o===void 0&&(o=b5(e)),o))}function A(R,M){if(!R.includes("node_modules"))return;const C=f1.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(C&&!Wp(C)&&!pp(C))return I(C)}function I(R){const M=zc(WP(R)).slice(1);return uo(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function b5(e){return bt(e.imports,({text:t})=>G_.nodeCoreModules.has(t))}function yO(e){return Nr(zc(e),"node_modules")}function IX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function jue(e,t){const r=Dd(e),i=yA(t,r,nl,x6);if(i>=0){const o=t[i];return N.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),oa(o,IX)}}function Uue(e,t){var r;let i=yA(t,e.start,l=>l.start,rl);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Kl(e);for(;;){const l=ii(t[i],IX);if(!l||l.start>s)break;Jne(e,l)&&o.push(l),i++}return o}function PI({startPosition:e,endPosition:t}){return dc(e,t===void 0?e:t)}function xX(e,t){const r=po(e,t.start);return Gn(r,o=>o.getStart(e)Kl(t)?"quit":vt(o)&&DD(t,Dd(o,e)))}function RX(e,t,r=nl){return e?To(e)?r(Ot(e,t)):t(e,0):void 0}function DX(e){return To(e)?Ha(e):e}function Hue(e,t){if(uDe(e)){const r=dDe(e);if(r)return r;const i=Fu.moduleSymbolToValidIdentifier(que(e),t,!1),o=Fu.moduleSymbolToValidIdentifier(que(e),t,!0);return i===o?i:[i,o]}return e.name}function E5(e,t,r){return uDe(e)?dDe(e)||Fu.moduleSymbolToValidIdentifier(que(e),t,!!r):e.name}function uDe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function dDe(e){return qt(e.declarations,t=>{var r,i,o;return kl(t)?(r=ii($l(t.expression),Ve))==null?void 0:r.text:Ku(t)&&t.symbol.flags===2097152?(i=ii(t.propertyName,Ve))==null?void 0:i.text:(o=ii(Mo(t),Ve))==null?void 0:o.text})}function que(e){var t;return N.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${N.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=N.formatSyntaxKind(r.kind),o=lr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${N.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Jue(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;oXl(r)&&R_(r))}function S5(e){return!!(MV(e)&65536)}function T5(e,t){return qt(e.imports,i=>{if(G_.nodeCoreModules.has(i.text))return uo(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function vO(e){return e===` `?1:0}function lT(e){return To(e)?sg(Wo(e[0]),e.slice(1)):Wo(e)}function A5({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!hO(t);return{...e,semicolons:i?"remove":"ignore"}}function CX(e){return e===2||e===3}function PD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function I5(e,t){const r=new Set,i=new Set,o=new Set;for(const u of t)if(!TP(u)){const p=hs(u.expression);if(LE(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:const h=Moe(Al(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(YE(h));break}else{const h=e.getSymbolAtLocation(u.expression);if(h&&h.valueDeclaration&&c1(h.valueDeclaration)){const m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(YE(u))}}}function PX(e,t,r,i){var o;const s=typeof e=="string"?e:e.fileName;if(!XE(s))return!1;const l=t.getCompilerOptions(),u=wu(l),p=typeof e=="string"?Bw(ol(e,r.getCurrentDirectory(),Fy(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&M3(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Qu,MX,fDe,x5,LX,kX,mDe,R5,wX,Pqe=T({"src/services/utilities.ts"(){si(),Qu=My(99,!0),MX=(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))(MX||{}),fDe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(LX||{}),kX=Tqe(),mDe=` `,R5="anonymous function",wX=Ym(Bue,lDe,cDe,m5)}});function OX(e){let t=1;const r=Zp(),i=new Map,o=new Map;let s;const l={isUsableByFile:I=>I===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(I,R,M,C,O,U,K,Z)=>{I!==s&&(l.clear(),s=I);let V;if(O){const pe=X3(O.fileName);if(pe){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ye,packageRootIndex:Me}=pe;if(V=Aw(WP(O.fileName.substring(ye+1,Me))),uo(I,O.path.substring(0,ie))){const Ue=o.get(V),Ee=O.fileName.substring(0,ye+1);if(Ue){const De=Ue.indexOf(Ih);ie>De&&o.set(V,Ee)}else o.set(V,Ee)}}}const G=U===1&&PR(R)||R,ne=U===0||sO(G)?Vi(M):Hue(G,void 0),he=typeof ne=="string"?ne:ne[0],ve=typeof ne=="string"?void 0:ne[1],$=tm(C.name),Y=t++,oe=bu(R,Z),fe=R.flags&33554432?void 0:R,Ne=C.flags&33554432?void 0:C;(!fe||!Ne)&&i.set(Y,[R,C]),r.add(p(he,R,Yc($)?void 0:$,Z),{id:Y,symbolTableKey:M,symbolName:he,capitalizedSymbolName:ve,moduleName:$,moduleFile:O,moduleFileName:O?.fileName,packageName:V,exportKind:U,targetFlags:oe.flags,isFromPackageJson:K,symbol:fe,moduleSymbol:Ne})},get:(I,R)=>{if(I!==s)return;const M=r.get(R);return M?.map(u)},search:(I,R,M,C)=>{if(I===s)return Gc(r,(O,U)=>{const{symbolName:K,ambientModuleName:Z}=h(U),V=R&&O[0].capitalizedSymbolName||K;if(M(V,O[0].targetFlags)){const G=O.map(u).filter((ne,he)=>A(ne,O[he].packageName));if(G.length){const ne=C(G,V,!!Z,U);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,M)=>m(I)&&m(R)?!1:s&&s!==R.path||M&&b5(I)!==b5(R)||!Km(I.moduleAugmentations,R.moduleAugmentations)||!v(I,R)?(l.clear(),!0):(s=R.path,!1)};return N.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(I){if(I.symbol&&I.moduleSymbol)return I;const{id:R,exportKind:M,targetFlags:C,isFromPackageJson:O,moduleFileName:U}=I,[K,Z]=i.get(R)||et;if(K&&Z)return{symbol:K,moduleSymbol:Z,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O};const V=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),se=I.moduleSymbol||Z||N.checkDefined(I.moduleFile?V.getMergedSymbol(I.moduleFile.symbol):V.tryFindAmbientModule(I.moduleName)),G=I.symbol||K||N.checkDefined(M===2?V.resolveExternalModuleSymbol(se):V.tryGetMemberInModuleExportsAndProperties(Vi(I.symbolTableKey),se),`Could not find symbol '${I.symbolName}' by key '${I.symbolTableKey}' in module ${se.name}`);return i.set(R,[G,se]),{symbol:G,moduleSymbol:se,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:O}}function p(I,R,M,C){const O=M||"";return`${I.length} ${Ta(bu(R,C))} ${I} ${O}`}function h(I){const R=I.indexOf(" "),M=I.indexOf(" ",R+1),C=parseInt(I.substring(0,R),10),O=I.substring(M+1),U=O.substring(0,C),K=O.substring(C+1);return{symbolName:U,ambientModuleName:K===""?void 0:K}}function m(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function v(I,R){if(!Km(I.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,C=-1;for(const O of R.ambientModuleNames){const U=K=>uj(K)&&K.name.text===O;if(M=Br(I.statements,U,M+1),C=Br(R.statements,U,C+1),I.statements[M]!==R.statements[C])return!1}return!0}function A(I,R){if(!R||!I.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&uo(I.moduleFileName,M))return!0;const C=o.get(R);return!C||uo(I.moduleFileName,C)}}function WX(e,t,r,i,o,s,l){var u;if(t===r)return!1;const p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;const h=Fy(s),m=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),v=!!f1.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,A=>{const I=e.getSourceFile(A);return(I===r||!I)&&Mqe(t.fileName,A,h,m)});if(o){const A=v&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!A),A}return v}function Mqe(e,t,r,i){const o=Sm(t,l=>rc(l)==="node_modules"?l:void 0),s=o&&ai(r(o));return s===void 0||uo(r(e),s)||!!i&&uo(r(i),s)}function FX(e,t,r,i,o){var s,l;const u=NR(t),p=r.autoImportFileExcludePatterns&&Hi(r.autoImportFileExcludePatterns,m=>{const v=z3(m,"","exclude");return v?qv(v,u):void 0});_De(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,v)=>o(m,v,e,!1));const h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){const m=Ys(),v=e.getTypeChecker();_De(h.getTypeChecker(),h.getSourceFiles(),p,t,(A,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!v.resolveName(A.name,void 0,1536,!1))&&o(A,I,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ys()-m}`)}}function _De(e,t,r,i,o){var s,l;const u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(v=>v.test(h)))return!0;if(u?.size&&M0(h)){let v=ai(h);return Sm(ai(m),A=>{const I=u.get(Bc(A));if(I)return I.some(R=>r.some(M=>M.test(h.replace(v,R))));v=ai(v)})??!1}return!1});for(const h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(const h of t)zp(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function bO(e,t,r,i,o){var s,l,u,p,h;const m=Ys();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const v=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||OX({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(v.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),v;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const A=r.getCompilerOptions();let I=0;try{FX(r,t,i,!0,(R,M,C,O)=>{++I%100===0&&o?.throwIfCancellationRequested();const U=new Map,K=C.getTypeChecker(),Z=D5(R,K,A);Z&&hDe(Z.symbol,K)&&v.add(e.path,Z.symbol,Z.exportKind===1?"default":"export=",R,M,Z.exportKind,O,K),K.forEachExportAndPropertyOfModule(R,(V,se)=>{V!==Z?.symbol&&hDe(V,K)&&Rm(U,se)&&v.add(e.path,V,se,R,M,0,O,K)})})}catch(R){throw v.clear(),R}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Ys()-m} ms`),v}function D5(e,t,r){const i=Lqe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,l=N5(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function hDe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!tk(e)&&!Pie(e)}function Lqe(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function N5(e,t,r){const i=PR(e);if(i)return{resolvedSymbol:i,name:i.name};const o=kqe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return N5(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:E5(e,r.target)}}function kqe(e){return e.declarations&&qt(e.declarations,t=>{var r;if(kl(t))return(r=ii($l(t.expression),Ve))==null?void 0:r.text;if(Ku(t))return N.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var zX,BX,wqe=T({"src/services/exportInfoMap.ts"(){si(),zX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(zX||{}),BX=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(BX||{})}});function gDe(){const e=My(99,!1);function t(i,o,s){return Fqe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const p=[],{prefix:h,pushTemplate:m}=Gqe(o);i=h+i;const v=h.length;m&&p.push(16),e.setText(i);let A=0;const I=[];let R=0;do{l=e.scan(),AR(l)||(M(),u=l);const C=e.getTokenEnd();if(Wqe(e.getTokenStart(),C,v,Uqe(l),I),C>=i.length){const O=Oqe(e,l,tl(p));O!==void 0&&(A=O)}}while(l!==1);function M(){switch(l){case 44:case 69:!EDe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>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){const C=tl(p);C===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():N.assertEqual(l,17,"Should have been a template middle.")):(N.assertEqual(C,19,"Should have been an open brace"),p.pop())}break;default:if(!Bd(l))break;(u===25||Bd(u)&&Bd(l)&&!Bqe(u,l))&&(l=80)}}return{endOfLineState:A,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function Oqe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return(s&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(wv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return N.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function Wqe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);const s=t-e;s>0&&o.push(e-r,s,i)}function Fqe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l=0){const m=u-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:zqe(h)}),o=u+p}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function zqe(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 Bqe(e,t){if(!YK(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function Gqe(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 N.assertNever(e)}}function Vqe(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 jqe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function Uqe(e){if(Bd(e))return 3;if(Vqe(e)||jqe(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 wv(e)?6:2}}function Xue(e,t,r,i,o){return bDe(GX(e,t,r,i,o))}function yDe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function GX(e,t,r,i,o){const s=[];return r.forEachChild(function u(p){if(!(!p||!s4(o,p.pos,p.getFullWidth()))){if(yDe(t,p.kind),Ve(p)&&!zl(p)&&i.has(p.escapedText)){const h=e.getSymbolAtLocation(p),m=h&&vDe(h,rT(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,h){const m=p-u;N.assert(m>0,`Classification had non-positive length of ${m}`),s.push(u),s.push(m),s.push(h)}}function vDe(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&Hqe(e)?14:void 0:i&2097152?vDe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function Hqe(e){return bt(e.declarations,t=>Xl(t)&&Hg(t)===1)}function qqe(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 bDe(e){N.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,he=t.text.substr(V,se),ve=G.exec(he);if(!ve||!ve[3]||!(ve[3]in z2))return!1;let $=V;v($,ve[1].length),$+=ve[1].length,p($,ve[2].length,10),$+=ve[2].length,p($,ve[3].length,21),$+=ve[3].length;const Y=ve[4];let oe=$;for(;;){const Ne=ne.exec(Y);if(!Ne)break;const pe=$+Ne.index+Ne[1].length;pe>oe&&(v(oe,pe-oe),oe=pe),p(oe,Ne[2].length,22),oe+=Ne[2].length,Ne[3].length&&(v(oe,Ne[3].length),oe+=Ne[3].length),p(oe,Ne[4].length,5),oe+=Ne[4].length,Ne[5].length&&(v(oe,Ne[5].length),oe+=Ne[5].length),p(oe,Ne[6].length,24),oe+=Ne[6].length}$+=ve[4].length,$>oe&&v(oe,$-oe),ve[5]&&(p($,ve[5].length,10),$+=ve[5].length);const fe=V+se;return $=0),ne>0){const he=se||K(V.kind,V);he&&p(G,ne,he)}return!0}function U(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function K(V,se){if(Bd(V))return 3;if((V===30||V===32)&&se&&yue(se.parent))return 10;if(Bj(V)){if(se){const G=se.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return se&&se.parent.kind===291?24:6;if(V===14)return 6;if(wv(V))return 6;if(V===12)return 23;if(V===80){if(se){switch(se.parent.kind){case 263:return se.parent.name===se?11:void 0;case 168:return se.parent.name===se?15:void 0;case 264:return se.parent.name===se?13:void 0;case 266:return se.parent.name===se?12:void 0;case 267:return se.parent.name===se?14:void 0;case 169:return se.parent.name===se?JE(se)?3:17:void 0}if(Lg(se.parent))return 3}return 2}}}function Z(V){if(V&&tL(i,o,V.pos,V.getFullWidth())){yDe(e,V.kind);for(const se of V.getChildren(t))O(se)||Z(se)}}}var EDe,SDe=T({"src/services/classifier.ts"(){si(),EDe=cne([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),C5,Jqe=T({"src/services/documentHighlights.ts"(){si(),(e=>{function t($,Y,oe,fe,Ne){const pe=Vd(oe,fe);if(pe.parent&&(W_(pe.parent)&&pe.parent.tagName===pe||o1(pe.parent))){const{openingElement:ie,closingElement:ye}=pe.parent.parent,Me=[ie,ye].map(({tagName:Ue})=>r(Ue,oe));return[{fileName:oe.fileName,highlightSpans:Me}]}return i(fe,pe,$,Y,Ne)||o(pe,oe)}e.getDocumentHighlights=t;function r($,Y){return{fileName:Y.fileName,textSpan:Dd($,Y),kind:"none"}}function i($,Y,oe,fe,Ne){const pe=new Set(Ne.map(Ue=>Ue.fileName)),ie=Ws.getReferenceEntriesForNode($,Y,oe,Ne,fe,void 0,pe);if(!ie)return;const ye=P2(ie.map(Ws.toHighlightSpan),Ue=>Ue.fileName,Ue=>Ue.span),Me=Mu(oe.useCaseSensitiveFileNames());return zo(Iv(ye.entries(),([Ue,Ee])=>{if(!pe.has(Ue)){if(!oe.redirectTargetsMap.has(ol(Ue,oe.getCurrentDirectory(),Me)))return;const De=oe.getSourceFile(Ue);Ue=An(Ne,We=>!!We.redirectInfo&&We.redirectInfo.redirectTarget===De).fileName,N.assert(pe.has(Ue))}return{fileName:Ue,highlightSpans:Ee}}))}function o($,Y){const oe=s($,Y);return oe&&[{fileName:Y.fileName,highlightSpans:oe}]}function s($,Y){switch($.kind){case 101:case 93:return VS($.parent)?ne($.parent,Y):void 0;case 107:return fe($.parent,Dm,Z);case 111:return fe($.parent,bH,K);case 113:case 85:case 98:const pe=$.kind===85?$.parent.parent:$.parent;return fe(pe,US,U);case 109:return fe($.parent,bP,O);case 84:case 90:return TP($.parent)||XR($.parent)?fe($.parent.parent.parent,bP,O):void 0;case 83:case 88:return fe($.parent,dC,C);case 99:case 117:case 92:return fe($.parent,ie=>Wv(ie,!0),M);case 137:return oe(Ml,[137]);case 139:case 153:return oe(Ov,[139,153]);case 135:return fe($.parent,eb,V);case 134:return Ne(V($));case 127:return Ne(se($));case 103:case 147:return;default:return ky($.kind)&&(Ju($.parent)||Ll($.parent))?Ne(A($.kind,$.parent)):void 0}function oe(pe,ie){return fe($.parent,pe,ye=>{var Me;return Hi((Me=ii(ye,x_))==null?void 0:Me.symbol.declarations,Ue=>pe(Ue)?An(Ue.getChildren(Y),Ee=>Nr(ie,Ee.kind)):void 0)})}function fe(pe,ie,ye){return ie(pe)?Ne(ye(pe,Y)):void 0}function Ne(pe){return pe&&pe.map(ie=>r(ie,Y))}}function l($){return bH($)?[$]:US($)?So($.catchClause?l($.catchClause):$.tryBlock&&l($.tryBlock),$.finallyBlock&&l($.finallyBlock)):ea($)?void 0:h($,l)}function u($){let Y=$;for(;Y.parent;){const oe=Y.parent;if(zE(oe)||oe.kind===312)return oe;if(US(oe)&&oe.tryBlock===Y&&oe.catchClause)return Y;Y=oe}}function p($){return dC($)?[$]:ea($)?void 0:h($,p)}function h($,Y){const oe=[];return $.forEachChild(fe=>{const Ne=Y(fe);Ne!==void 0&&oe.push(...bA(Ne))}),oe}function m($,Y){const oe=v(Y);return!!oe&&oe===$}function v($){return Gn($,Y=>{switch(Y.kind){case 255:if($.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!$.label||ve(Y,$.label.escapedText);default:return ea(Y)&&"quit"}})}function A($,Y){return Hi(I(Y,VA($)),oe=>RD(oe,$))}function I($,Y){const oe=$.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return Y&64&&Ic($)?[...$.members,$]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...ui(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:const fe=oe.members;if(Y&15){const Ne=An(oe.members,Ml);if(Ne)return[...fe,...Ne.parameters]}else if(Y&64)return[...fe,oe];return fe;case 210:return;default:N.assertNever(oe,"Invalid container kind.")}}function R($,Y,...oe){return Y&&Nr(oe,Y.kind)?($.push(Y),!0):!1}function M($){const Y=[];if(R(Y,$.getFirstToken(),99,117,92)&&$.kind===246){const oe=$.getChildren();for(let fe=oe.length-1;fe>=0&&!R(Y,oe[fe],117);fe--);}return Xe(p($.statement),oe=>{m($,oe)&&R(Y,oe.getFirstToken(),83,88)}),Y}function C($){const Y=v($);if(Y)switch(Y.kind){case 248:case 249:case 250:case 246:case 247:return M(Y);case 255:return O(Y)}}function O($){const Y=[];return R(Y,$.getFirstToken(),109),Xe($.caseBlock.clauses,oe=>{R(Y,oe.getFirstToken(),84,90),Xe(p(oe),fe=>{m($,fe)&&R(Y,fe.getFirstToken(),83)})}),Y}function U($,Y){const oe=[];if(R(oe,$.getFirstToken(),113),$.catchClause&&R(oe,$.catchClause.getFirstToken(),85),$.finallyBlock){const fe=ys($,98,Y);R(oe,fe,98)}return oe}function K($,Y){const oe=u($);if(!oe)return;const fe=[];return Xe(l(oe),Ne=>{fe.push(ys(Ne,111,Y))}),zE(oe)&&FE(oe,Ne=>{fe.push(ys(Ne,107,Y))}),fe}function Z($,Y){const oe=Gp($);if(!oe)return;const fe=[];return FE(oa(oe.body,Xo),Ne=>{fe.push(ys(Ne,107,Y))}),Xe(l(oe.body),Ne=>{fe.push(ys(Ne,111,Y))}),fe}function V($){const Y=Gp($);if(!Y)return;const oe=[];return Y.modifiers&&Y.modifiers.forEach(fe=>{R(oe,fe,134)}),Ho(Y,fe=>{G(fe,Ne=>{eb(Ne)&&R(oe,Ne.getFirstToken(),135)})}),oe}function se($){const Y=Gp($);if(!Y)return;const oe=[];return Ho(Y,fe=>{G(fe,Ne=>{JW(Ne)&&R(oe,Ne.getFirstToken(),127)})}),oe}function G($,Y){Y($),!ea($)&&!ui($)&&!_d($)&&!Xl($)&&!Nm($)&&!ji($)&&Ho($,oe=>G(oe,Y))}function ne($,Y){const oe=he($,Y),fe=[];for(let Ne=0;Ne=pe.end;Me--)if(!A_(Y.text.charCodeAt(Me))){ye=!1;break}if(ye){fe.push({fileName:Y.fileName,textSpan:dc(pe.getStart(),ie.end),kind:"reference"}),Ne++;continue}}fe.push(r(oe[Ne],Y))}return fe}function he($,Y){const oe=[];for(;VS($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){const fe=$.getChildren(Y);R(oe,fe[0],101);for(let Ne=fe.length-1;Ne>=0&&!R(oe,fe[Ne],93);Ne--);if(!$.elseStatement||!VS($.elseStatement))break;$=$.elseStatement}return oe}function ve($,Y){return!!Gn($.parent,oe=>i1(oe)?oe.label.escapedText===Y:"quit")}})(C5||(C5={}))}});function EO(e){return!!e.sourceFile}function $ue(e,t,r){return jX(e,t,r)}function jX(e,t="",r,i){const o=new Map,s=Mu(!!e);function l(){const C=zo(o.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{const U=o.get(O),K=[];return U.forEach((Z,V)=>{EO(Z)?K.push({name:V,scriptKind:Z.sourceFile.scriptKind,refCount:Z.languageServiceRefCount}):Z.forEach((se,G)=>K.push({name:V,scriptKind:G,refCount:se.languageServiceRefCount}))}),K.sort((Z,V)=>V.refCount-Z.refCount),{bucket:O,sourceFiles:K}});return JSON.stringify(C,void 0,2)}function u(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function p(C,O,U,K,Z,V){const se=ol(C,t,s),G=UX(u(O));return h(C,se,O,G,U,K,Z,V)}function h(C,O,U,K,Z,V,se,G){return I(C,O,U,K,Z,V,!0,se,G)}function m(C,O,U,K,Z,V){const se=ol(C,t,s),G=UX(u(O));return v(C,se,O,G,U,K,Z,V)}function v(C,O,U,K,Z,V,se,G){return I(C,O,u(U),K,Z,V,!1,se,G)}function A(C,O){const U=EO(C)?C:C.get(N.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return N.assert(O===void 0||!U||U.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${U?.sourceFile.scriptKind}, !entry: ${!U}`),U}function I(C,O,U,K,Z,V,se,G,ne){var he,ve,$,Y;G=G3(C,G);const oe=u(U),fe=U===oe?void 0:U,Ne=G===6?100:os(oe),pe=typeof ne=="object"?ne:{languageVersion:Ne,impliedNodeFormat:fe&&Bw(O,(Y=($=(ve=(he=fe.getCompilerHost)==null?void 0:he.call(fe))==null?void 0:ve.getModuleResolutionCache)==null?void 0:$.call(ve))==null?void 0:Y.getPackageJsonInfoCache(),fe,oe),setExternalModuleIndicator:fk(oe),jsDocParsingMode:r};pe.languageVersion=Ne,N.assertEqual(r,pe.jsDocParsingMode);const ie=o.size,ye=Que(K,pe.impliedNodeFormat),Me=t0(o,ye,()=>new Map);if(sr){o.size>ie&&sr.instant(sr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ye});const Pe=!Su(O)&&Gc(o,(We,At)=>At!==ye&&We.has(O)&&At);Pe&&sr.instant(sr.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:Pe,key2:ye})}const Ue=Me.get(O);let Ee=Ue&&A(Ue,G);if(!Ee&&i){const Pe=i.getDocument(ye,O);Pe&&(N.assert(se),Ee={sourceFile:Pe,languageServiceRefCount:0},De())}if(Ee)Ee.sourceFile.version!==V&&(Ee.sourceFile=MY(Ee.sourceFile,Z,V,Z.getChangeRange(Ee.sourceFile.scriptSnapshot)),i&&i.setDocument(ye,O,Ee.sourceFile)),se&&Ee.languageServiceRefCount++;else{const Pe=tz(C,Z,pe,V,!1,G);i&&i.setDocument(ye,O,Pe),Ee={sourceFile:Pe,languageServiceRefCount:1},De()}return N.assert(Ee.languageServiceRefCount!==0),Ee.sourceFile;function De(){if(!Ue)Me.set(O,Ee);else if(EO(Ue)){const Pe=new Map;Pe.set(Ue.sourceFile.scriptKind,Ue),Pe.set(G,Ee),Me.set(O,Pe)}else Ue.set(G,Ee)}}function R(C,O,U,K){const Z=ol(C,t,s),V=UX(O);return M(Z,V,U,K)}function M(C,O,U,K){const Z=N.checkDefined(o.get(Que(O,K))),V=Z.get(C),se=A(V,U);se.languageServiceRefCount--,N.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(EO(V)?Z.delete(C):(V.delete(U),V.size===1&&Z.set(C,mn(V.values(),nl))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:v,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:UX,getDocumentRegistryBucketKeyWithMode:Que,reportStats:l,getBuckets:()=>o}}function UX(e){return gq(e,vF)}function Que(e,t){return t?`${e}|${t}`:e}var Kqe=T({"src/services/documentRegistry.ts"(){si()}});function Zue(e,t,r,i,o,s,l){const u=NR(i),p=Mu(u),h=HX(t,r,p,l),m=HX(r,t,p,l);return _r.ChangeTracker.with({host:i,formatContext:o,preferences:s},v=>{Yqe(e,v,h,t,r,i.getCurrentDirectory(),u),$qe(e,v,h,m,i,p)})}function HX(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:Xqe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;const u=SU(l,o,r);return u===void 0?void 0:t+"/"+u}}function Xqe(e,t,r,i){const o=H2(e,t,i);return ede(ai(r),o)}function Yqe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const p=ai(u.fileName),h=TC(u);if(!h)return;tde(h,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(m(I)||R!=="include"||!md(I.initializer))return;const C=Hi(I.initializer.elements,U=>Ma(U)?U.text:void 0);if(C.length===0)return;const O=B3(p,[],C,l,s);qv(N.checkDefined(O.includeFilePattern),l).test(i)&&!qv(N.checkDefined(O.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ya(I.initializer.elements),w.createStringLiteral(A(o)));return}case"compilerOptions":tde(I.initializer,(M,C)=>{const O=QH(C);N.assert(O?.type!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?m(M):C==="paths"&&tde(M.initializer,U=>{if(md(U.initializer))for(const K of U.initializer.elements)v(K)})});return}});function m(I){const R=md(I.initializer)?I.initializer.elements:[I.initializer];let M=!1;for(const C of R)M=v(C)||M;return M}function v(I){if(!Ma(I))return!1;const R=ede(p,I.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,ADe(I,u),A(M)),!0):!1}function A(I){return Em(p,I,!l)}}function $qe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const p=r(u.fileName),h=p??u.fileName,m=ai(h),v=i(u.fileName),A=v||u.fileName,I=ai(A),R=p!==void 0||v!==void 0;eJe(u,t,M=>{if(!Wp(M))return;const C=ede(I,M),O=r(C);return O===void 0?void 0:NE(Em(m,O,s))},M=>{const C=e.getTypeChecker().getSymbolAtLocation(M);if(C?.declarations&&C.declarations.some(U=>ku(U)))return;const O=v!==void 0?TDe(M,cD(M.text,A,e.getCompilerOptions(),o),r,l):Zqe(C,M,u,e,o,r);return O!==void 0&&(O.updated||R&&Wp(M.text))?f1.updateModuleSpecifier(e.getCompilerOptions(),u,h,O.newFileName,oT(e,o),M.text):void 0})}}function Qqe(e,t){return ga(Qr(e,t))}function ede(e,t){return NE(Qqe(e,t))}function Zqe(e,t,r,i,o,s){if(e){const l=An(e.declarations,$i).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return TDe(t,u,s,i.getSourceFiles())}}function TDe(e,t,r,i){if(!t)return;if(t.resolvedModule){const p=u(t.resolvedModule.resolvedFileName);if(p)return p}const o=Xe(t.failedLookupLocations,s)||Wp(e.text)&&Xe(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){const h=r(p);return h&&An(i,m=>m.fileName===h)?l(p):void 0}function l(p){return Al(p,"/package.json")?void 0:u(p)}function u(p){const h=r(p);return h&&{newFileName:h,updated:!0}}}function eJe(e,t,r,i){for(const o of e.referencedFiles||et){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,ADe(o,e),s)}}function ADe(e,t){return xf(e.getStart(t)+1,e.end-1)}function tde(e,t){if(Oa(e))for(const r of e.properties)_c(r)&&Ma(r.name)&&t(r,r.name.text)}var tJe=T({"src/services/getEditsForFileRename.ts"(){si()}});function mM(e,t){return{kind:e,isCaseSensitive:t}}function nde(e){const t=new Map,r=e.trim().split(".").map(i=>oJe(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)=>nJe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>rde(i,Ya(r),t),patternContainsDots:r.length>1}}function nJe(e,t,r,i){if(!rde(t,Ya(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=RDe(s,rde(e[u],r[l],i));return s}function IDe(e,t){let r=t.get(e);return r||t.set(e,r=cde(e)),r}function xDe(e,t,r){const i=aJe(e,t.textLowerCase);if(i===0)return mM(t.text.length===e.length?0:1,uo(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=IDe(e,r);for(const s of o)if(ide(e,s,t.text,!0))return mM(2,ide(e,s,t.text,!1));if(t.text.length0)return mM(2,!0);if(t.characterSpans.length>0){const o=IDe(e,r),s=DDe(e,o,t,!1)?!0:DDe(e,o,t,!0)?!1:void 0;if(s!==void 0)return mM(3,s)}}}function rde(e,t,r){if(qX(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=xDe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=RDe(o,xDe(e,s,r));return o}function RDe(e,t){return oG([e,t],rJe)}function rJe(e,t){return e===void 0?1:t===void 0?-1:rl(e.kind,t.kind)||Rv(!e.isCaseSensitive,!t.isCaseSensitive)}function ide(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&MDe(0,o.length,s=>iJe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function iJe(e,t,r){return r?ode(e)===ode(t):e===t}function DDe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],p=!1;for(;l=65&&e<=90)return!0;if(e<127||!n4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function NDe(e){if(e>=97&&e<=122)return!0;if(e<127||!n4(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function aJe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(qX(t,(o,s)=>ode(e.charCodeAt(s+i))===o))return i;return-1}function ode(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function ade(e){return e>=48&&e<=57}function sJe(e){return MD(e)||NDe(e)||ade(e)||e===95||e===36}function lJe(e){const t=[];let r=0,i=0;for(let o=0;o0&&(t.push(sde(e.substr(r,i))),i=0)}return i>0&&t.push(sde(e.substr(r,i))),t}function sde(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:lde(e)}}function lde(e){return CDe(e,!1)}function cde(e){return CDe(e,!0)}function CDe(e,t){const r=[];let i=0;for(let o=1;oude(i)&&i!==95,t,r)}function cJe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}var P5,dJe=T({"src/services/patternMatcher.ts"(){si(),P5=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(P5||{})}});function LDe(e,t=!0,r=!1){const i={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,l,u,p=0,h=!1;function m(){return l=u,u=Qu.scan(),u===19?p++:u===20&&p--,u}function v(){const V=Qu.getTokenValue(),se=Qu.getTokenStart();return{fileName:V,pos:se,end:se+V.length}}function A(){s||(s=[]),s.push({ref:v(),depth:p})}function I(){o.push(v()),R()}function R(){p===0&&(h=!0)}function M(){let V=Qu.getToken();return V===138?(V=m(),V===144&&(V=m(),V===11&&A()),!0):!1}function C(){if(l===25)return!1;let V=Qu.getToken();if(V===102){if(V=m(),V===21){if(V=m(),V===11||V===15)return I(),!0}else{if(V===11)return I(),!0;if(V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G!==161&&(G===42||G===19||G===80||Bd(G))})&&(V=m()),V===80||Bd(V))if(V=m(),V===161){if(V=m(),V===11)return I(),!0}else if(V===64){if(U(!0))return!0}else if(V===28)V=m();else return!0;if(V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else V===42&&(V=m(),V===130&&(V=m(),(V===80||Bd(V))&&(V=m(),V===161&&(V=m(),V===11&&I()))))}return!0}return!1}function O(){let V=Qu.getToken();if(V===95){if(R(),V=m(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===42||G===19})&&(V=m()),V===19){for(V=m();V!==20&&V!==1;)V=m();V===20&&(V=m(),V===161&&(V=m(),V===11&&I()))}else if(V===42)V=m(),V===161&&(V=m(),V===11&&I());else if(V===102&&(V=m(),V===156&&Qu.lookAhead(()=>{const G=Qu.scan();return G===80||Bd(G)})&&(V=m()),(V===80||Bd(V))&&(V=m(),V===64&&U(!0))))return!0;return!0}return!1}function U(V,se=!1){let G=V?m():Qu.getToken();return G===149?(G=m(),G===21&&(G=m(),(G===11||se&&G===15)&&I()),!0):!1}function K(){let V=Qu.getToken();if(V===80&&Qu.getTokenValue()==="define"){if(V=m(),V!==21)return!0;if(V=m(),V===11||V===15)if(V=m(),V===28)V=m();else return!0;if(V!==23)return!0;for(V=m();V!==24&&V!==1;)(V===11||V===15)&&I(),V=m();return!0}return!1}function Z(){for(Qu.setText(e),m();Qu.getToken()!==1;){if(Qu.getToken()===16){const V=[Qu.getToken()];e:for(;Le(V);){const se=Qu.scan();switch(se){case 1:break e;case 102:C();break;case 16:V.push(se);break;case 19:Le(V)&&V.push(se);break;case 20:Le(V)&&(tl(V)===16?Qu.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}m()}M()||C()||O()||r&&(U(!1,!0)||K())||m()}Qu.setText(void 0)}if(t&&Z(),qH(i,e),JH(i,$a),h){if(s)for(const V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(const se of s)se.depth===0?(V||(V=[]),V.push(se.ref.fileName)):o.push(se.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var pJe=T({"src/services/preProcess.ts"(){si()}});function dde(e){const t=Mu(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:A,clearCache:I};function s(R){return ol(R,r,t)}function l(R,M){const C=s(R),O=o.get(C);if(O)return O;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(R,M);else if(e.readFile){const K=v(R);U=K&&JX({getSourceFileLike:v,getCanonicalFileName:t,log:Z=>e.log(Z)},R,Bq(K.text,Pg(K)),Z=>!e.fileExists||e.fileExists(Z)?e.readFile(Z):void 0)}return o.set(C,U||HF),U||HF}function u(R){if(!Su(R.fileName)||!h(R.fileName))return;const C=l(R.fileName).getSourcePosition(R);return!C||C===R?void 0:u(C)||C}function p(R){if(Su(R.fileName))return;const M=h(R.fileName);if(!M)return;const C=e.getProgram();if(C.isSourceOfProjectReferenceRedirect(M.fileName))return;const O=C.getCompilerOptions(),U=Ps(O),K=U?Ad(U)+".d.ts":f3(R.fileName,C.getCompilerOptions(),r,C.getCommonSourceDirectory(),t);if(K===void 0)return;const Z=l(K,R.fileName).getGeneratedPosition(R);return Z===R?void 0:Z}function h(R){const M=e.getProgram();if(!M)return;const C=s(R),O=M.getSourceFileByPath(C);return O&&O.resolvedPath===C?O:void 0}function m(R){const M=s(R),C=i.get(M);if(C!==void 0)return C||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}const O=e.readFile(R),U=O?fJe(O):!1;return i.set(M,U),U||void 0}function v(R){return e.getSourceFileLike?e.getSourceFileLike(R):h(R)||m(R)}function A(R,M){return v(R).getLineAndCharacterOfPosition(M)}function I(){i.clear(),o.clear()}}function JX(e,t,r,i){let o=rle(r);if(o){const u=wDe.exec(o);if(u){if(u[1]){const p=u[1];return kDe(e,roe(gu,p),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&go(o,ai(t));for(const u of s){const p=go(u,ai(t)),h=i(p,l);if(Po(h))return kDe(e,h,p);if(h!==void 0)return h||void 0}}function kDe(e,t,r){const i=Gq(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Po)))return ale(e,i,r)}function fJe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Jx(Pg(this),r)}}}var wDe,mJe=T({"src/services/sourcemaps.ts"(){si(),wDe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function KX(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Tc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Tue(t)||rX(t.getCompilerOptions()))&&_Je(e)&&o.push(kr(vJe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=ud(e);if(QX.clear(),p(e),OS(t.getCompilerOptions()))for(const h of e.imports){const m=RC(h),v=hJe(m);if(!v)continue;const A=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,I=A&&t.getSourceFile(A.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&kl(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&o.push(kr(v,f.Import_may_be_converted_to_a_default_import))}return qr(o,e.bindSuggestionDiagnostics),qr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(u)EJe(h,s)&&o.push(kr(wi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Ll(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){const v=h.declarationList.declarations[0].initializer;v&&Td(v,!0)&&o.push(kr(v,f.require_call_may_be_converted_to_an_import))}const m=Fu.getJSDocTypedefNodes(h);for(const v of m)o.push(kr(v,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));Fu.parameterShouldGetTypeFromJSDoc(h)&&o.push(kr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}$X(h)&&gJe(h,s,o),h.forEachChild(p)}}function _Je(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Td(ODe(r.initializer),!0));case 244:{const{expression:r}=t;if(!mr(r))return Td(r,!0);const i=Bl(r);return i===1||i===2}default:return!1}})}function ODe(e){return Wr(e)?ODe(e.expression):e}function hJe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Ma(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function gJe(e,t,r){yJe(e,t)&&!QX.has(BDe(e))&&r.push(kr(!e.name&&wi(e.parent)&&Ve(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function yJe(e,t){return!PC(e)&&e.body&&Xo(e.body)&&bJe(e.body,t)&&XX(e,t)}function XX(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function vJe(e){return mr(e)?e.left:e}function bJe(e,t){return!!FE(e,r=>M5(r,t))}function M5(e,t){return Dm(e)&&!!e.expression&&YX(e.expression,t)}function YX(e,t){if(!WDe(e)||!FDe(e)||!e.arguments.every(i=>zDe(i,t)))return!1;let r=e.expression.expression;for(;WDe(r)||Wr(r);)if(sa(r)){if(!FDe(r)||!r.arguments.every(i=>zDe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function WDe(e){return sa(e)&&(Qw(e,"then")||Qw(e,"catch")||Qw(e,"finally"))}function FDe(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Ve(i)&&i.text==="undefined")}function zDe(e,t){switch(e.kind){case 262:case 218:if(Vc(e)&1)return!1;case 219:QX.set(BDe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||bt(bu(i,t).declarations,o=>ea(o)||zv(o)&&!!o.initializer&&ea(o.initializer)):!1}default:return!1}}function BDe(e){return`${e.pos.toString()}:${e.end.toString()}`}function EJe(e,t){var r,i,o,s;if(Os(e)){if(wi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Ac(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function $X(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var QX,SJe=T({"src/services/suggestionDiagnostics.ts"(){si(),QX=new Map}});function pde(e,t){const r=[],i=t.compilerOptions?ZX(t.compilerOptions,r):{},o=ez();for(const A in o)xs(o,A)&&i[A]===void 0&&(i[A]=o[A]);for(const A of pq)i.verbatimModuleSyntax&&VDe.has(A.name)||(i[A.name]=A.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=Gy(i),l={getSourceFile:A=>A===ga(u)?p:void 0,writeFile:(A,I)=>{Il(A,".map")?(N.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",A),m=I):(N.assertEqual(h,void 0,"Unexpected multiple outputs, file:",A),h=I)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:A=>A,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:A=>A===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=iw(u,e,{languageVersion:os(i),impliedNodeFormat:Bw(ol(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:fk(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m;const v=f7([u],i,l);return t.reportDiagnostics&&(qr(r,v.getSyntacticDiagnostics(p)),qr(r,v.getOptionsDiagnostics())),v.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?N.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function GDe(e,t,r,i,o){const s=pde(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return qr(i,s.diagnostics),s.outputText}function ZX(e,t){fde=fde||nr(dg,r=>typeof r.type=="object"&&!Gc(r.type,i=>typeof i!="number")),e=$K(e);for(const r of fde){if(!xs(e,r.name))continue;const i=e[r.name];Po(i)?e[r.name]=pF(r,i,t):Gc(r.type,o=>o===i)||t.push(ise(r))}return e}var VDe,fde,TJe=T({"src/services/transpile.ts"(){si(),VDe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function jDe(e,t,r,i,o,s,l){const u=nde(i);if(!u)return et;const p=[],h=e.length===1?e[0]:void 0;for(const m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(UDe(m,!!l,h)||m.getNamedDeclarations().forEach((v,A)=>{AJe(u,A,v,t,m.fileName,!!l,h,p)}));return p.sort(DJe),(o===void 0?p:p.slice(0,o)).map(NJe)}function UDe(e,t,r){return e!==r&&t&&(yO(e.path)||e.hasNoDefaultLib)}function AJe(e,t,r,i,o,s,l,u){const p=e.getMatchForLastSegmentOfPattern(t);if(p){for(const h of r)if(IJe(h,i,s,l))if(e.patternContainsDots){const m=e.getFullMatch(RJe(h),t);m&&u.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function IJe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>UDe(u.getSourceFile(),r,i)));default:return!0}}function xJe(e,t){const r=Mo(e);return!!r&&(HDe(r,t)||r.kind===167&&mde(r.expression,t))}function mde(e,t){return HDe(e,t)||Wr(e)&&(t.push(e.name.text),!0)&&mde(e.expression,t)}function HDe(e,t){return N_(e)&&(t.push(em(e)),!0)}function RJe(e){const t=[],r=Mo(e);if(r&&r.kind===167&&!mde(r.expression,t))return et;t.shift();let i=iT(e);for(;i;){if(!xJe(i,t))return et;i=iT(i)}return t.reverse()}function DJe(e,t){return rl(e.matchKind,t.matchKind)||L2(e.name,t.name)}function NJe(e){const t=e.declaration,r=iT(t),i=r&&Mo(r);return{name:e.name,kind:y1(t),kindModifiers:iM(t),matchKind:P5[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Dd(t),containerName:i?i.text:"",containerKind:i?y1(r):""}}var CJe=T({"src/services/navigateTo.ts"(){si()}}),_de={};X(_de,{getNavigateToItems:()=>jDe});var qDe=T({"src/services/_namespaces/ts.NavigateTo.ts"(){CJe()}});function JDe(e,t){rY=t,SO=e;try{return Ot(wJe($De(e)),OJe)}finally{XDe()}}function KDe(e,t){rY=t,SO=e;try{return aNe($De(e))}finally{XDe()}}function XDe(){SO=void 0,rY=void 0,TO=[],Zy=void 0,iY=[]}function L5(e){return _M(e.getText(SO))}function eY(e){return e.node.kind}function YDe(e,t){e.children?e.children.push(t):e.children=[t]}function $De(e){N.assert(!TO.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Zy=t;for(const r of e.statements)MI(r);return O0(),N.assert(!Zy&&!TO.length),t}function E1(e,t){YDe(Zy,hde(e,t))}function hde(e,t){return{node:e,name:t||(Ju(e)||vt(e)?Mo(e):void 0),additionalNodes:void 0,parent:Zy,children:void 0,indent:Zy.indent+1}}function QDe(e){LD||(LD=new Map),LD.set(e,!0)}function ZDe(e){for(let t=0;t0;i--){const o=r[i];S1(e,o)}return[r.length-1,r[0]]}function S1(e,t){const r=hde(e,t);YDe(Zy,r),TO.push(Zy),Ade.push(LD),LD=void 0,Zy=r}function O0(){Zy.children&&(tY(Zy.children,Zy),vde(Zy.children)),Zy=TO.pop(),LD=Ade.pop()}function W0(e,t,r){S1(e,r),MI(t),O0()}function tNe(e){e.initializer&&FJe(e.initializer)?(S1(e),Ho(e.initializer,MI),O0()):W0(e,e.initializer)}function gde(e){const t=Mo(e);if(t===void 0)return!1;if(Za(t)){const r=t.expression;return Gl(r)||gp(r)||nf(r)}return!!t}function MI(e){if(rY.throwIfCancellationRequested(),!(!e||RA(e)))switch(e.kind){case 176:const t=e;W0(t,t.body);for(const l of t.parameters)fp(l,t)&&E1(l);break;case 174:case 177:case 178:case 173:gde(e)&&W0(e,e.body);break;case 172:gde(e)&&tNe(e);break;case 171:gde(e)&&E1(e);break;case 273:const r=e;r.name&&E1(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)E1(i);else for(const l of i.elements)E1(l);break;case 304:W0(e,e.name);break;case 305:const{expression:o}=e;Ve(o)?E1(e,o):E1(e);break;case 208:case 303:case 260:{const l=e;ta(l.name)?MI(l.name):tNe(l);break}case 262:const s=e.name;s&&Ve(s)&&QDe(s.text),W0(e,e.body);break;case 219:case 218:W0(e,e.body);break;case 266:S1(e);for(const l of e.members)WJe(l)||E1(l);O0();break;case 263:case 231:case 264:S1(e);for(const l of e.members)MI(l);O0();break;case 267:W0(e,lNe(e).body);break;case 277:{const l=e.expression,u=Oa(l)||sa(l)?l:Gs(l)||Os(l)?l.body:void 0;u?(S1(e),MI(u),O0()):E1(e);break}case 281:case 271:case 181:case 179:case 180:case 265:E1(e);break;case 213:case 226:{const l=Bl(e);switch(l){case 1:case 2:W0(e,e.right);return;case 6:case 3:{const u=e,p=u.left,h=l===3?p.expression:p;let m=0,v;Ve(h.expression)?(QDe(h.expression.text),v=h.expression):[m,v]=eNe(u,h.expression),l===6?Oa(u.right)&&u.right.properties.length>0&&(S1(u,v),Ho(u.right,MI),O0()):Os(u.right)||Gs(u.right)?W0(e,u.right,v):(S1(u,v),W0(e,u.right,p.name),O0()),ZDe(m);return}case 7:case 9:{const u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,h=u.arguments[1],[m,v]=eNe(e,p);S1(e,v),S1(e,dt(w.createIdentifier(h.text),h)),MI(e.arguments[2]),O0(),O0(),ZDe(m);return}case 5:{const u=e,p=u.left,h=p.expression;if(Ve(h)&&Og(p)!=="prototype"&&LD&&LD.has(h.text)){Os(u.right)||Gs(u.right)?W0(e,u.right,h):GE(p)&&(S1(u,h),W0(u.left,u.right,BL(p)),O0());return}break}case 4:case 0:case 8:break;default:N.assertNever(l)}}default:Fp(e)&&Xe(e.jsDoc,l=>{Xe(l.tags,u=>{Zf(u)&&E1(u)})}),Ho(e,MI)}}function tY(e,t){const r=new Map;Xs(e,(i,o)=>{const s=i.name||Mo(i.node),l=s&&L5(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const p of u)if(nNe(p,i,o,t))return!1;return u.push(i),!0}else{const p=u;return nNe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function PJe(e,t,r,i){function o(u){return Os(u)||Ac(u)||wi(u)}const s=mr(t.node)||sa(t.node)?Bl(t.node):0,l=mr(e.node)||sa(e.node)?Bl(e.node):0;if(hM[s]&&hM[l]||o(e.node)&&hM[s]||o(t.node)&&hM[l]||Ic(e.node)&&yde(e.node)&&hM[s]||Ic(t.node)&&hM[l]||Ic(e.node)&&yde(e.node)&&o(t.node)||Ic(t.node)&&o(e.node)&&yde(e.node)){let u=e.additionalNodes&&tl(e.additionalNodes)||e.node;if(!Ic(e.node)&&!Ic(t.node)||o(e.node)||o(t.node)){const h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){const m=dt(w.createConstructorDeclaration(void 0,[],void 0),h),v=hde(m);v.indent=e.indent+1,v.children=e.node===h?e.children:t.children,e.children=e.node===h?So([v],t.children||[t]):So(e.children||[{...e}],[v])}else(e.children||t.children)&&(e.children=So(e.children||[{...e}],t.children||[t]),e.children&&(tY(e.children,e),vde(e.children)));u=e.node=dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=So(e.children,t.children),e.children&&tY(e.children,e);const p=t.node;return i.children[r-1].node.end===u.end?dt(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(dt(w.createClassDeclaration(void 0,e.name||w.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function nNe(e,t,r,i){return PJe(e,t,r,i)?!0:MJe(e.node,t.node,i)?(LJe(e,t),!0):!1}function MJe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(rNe(e,r)&&rNe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return aa(e)===aa(t);case 267:return iNe(e,t)&&Sde(e)===Sde(t);default:return!0}}function yde(e){return!!(e.flags&16)}function rNe(e,t){const r=O_(e.parent)?e.parent.parent:e.parent;return r===t.node||Nr(t.additionalNodes,r)}function iNe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||iNe(e.body,t.body))}function LJe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=So(e.children,t.children),e.children&&(tY(e.children,e),vde(e.children))}function vde(e){e.sort(kJe)}function kJe(e,t){return L2(oNe(e.node),oNe(t.node))||rl(eY(e),eY(t))}function oNe(e){if(e.kind===267)return sNe(e);const t=Mo(e);if(t&&ic(t)){const r=NS(t);return r&&Vi(r)}switch(e.kind){case 218:case 219:case 231:return uNe(e);default:return}}function bde(e,t){if(e.kind===267)return _M(sNe(e));if(t){const r=Ve(t)?t.text:Qs(t)?`[${L5(t.argumentExpression)}]`:L5(t);if(r.length>0)return _M(r)}switch(e.kind){case 312:const r=e;return ac(r)?`"${ig(rc(Ad(ga(r.fileName))))}"`:"";case 277:return kl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Uv(e)&2048?"default":uNe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function wJe(e){const t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(const s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(eY(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(eY(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function aNe(e){return{text:bde(e.node,e.name),kind:y1(e.node),kindModifiers:cNe(e.node),spans:Ede(e),nameSpan:e.name&&Tde(e.name),childItems:Ot(e.children,aNe)}}function OJe(e){return{text:bde(e.node,e.name),kind:y1(e.node),kindModifiers:cNe(e.node),spans:Ede(e),childItems:Ot(e.children,t)||iY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:bde(r.node,r.name),kind:y1(r.node),kindModifiers:iM(r.node),spans:Ede(r),childItems:iY,indent:0,bolded:!1,grayed:!1}}}function Ede(e){const t=[Tde(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Tde(r));return t}function sNe(e){return ku(e)?pc(e.name):Sde(e)}function Sde(e){const t=[em(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(em(e.name));return t.join(".")}function lNe(e){return e.body&&Xl(e.body)?lNe(e.body):e}function WJe(e){return!e.name||e.name.kind===167}function Tde(e){return e.kind===312?sb(e):Dd(e,SO)}function cNe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),iM(e)}function uNe(e){const{parent:t}=e;if(e.name&&vL(e.name)>0)return _M(Rs(e.name));if(wi(t))return _M(Rs(t.name));if(mr(t)&&t.operatorToken.kind===64)return L5(t.left).replace(pNe,"");if(_c(t))return L5(t.name);if(Uv(e)&2048)return"default";if(ui(e))return"";if(sa(t)){let r=dNe(t.expression);if(r!==void 0){if(r=_M(r),r.length>nY)return`${r} callback`;const i=_M(Hi(t.arguments,o=>ls(o)||PA(o)?o.getText(SO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function dNe(e){if(Ve(e))return e.text;if(Wr(e)){const t=dNe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function FJe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function _M(e){return e=e.length>nY?e.substring(0,nY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var pNe,nY,rY,SO,TO,Zy,Ade,LD,iY,hM,zJe=T({"src/services/navigationBar.ts"(){si(),pNe=/\s+/g,nY=150,TO=[],Ade=[],iY=[],hM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),Ide={};X(Ide,{getNavigationBarItems:()=>JDe,getNavigationTree:()=>KDe});var fNe=T({"src/services/_namespaces/ts.NavigationBar.ts"(){zJe()}});function pg(e,t){oY.set(e,t)}function BJe(e,t){return zo(Qp(oY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>F0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function GJe(e,t,r,i){const o=oY.get(t);return o&&o.getEditsForAction(e,r,i)}var oY,mNe=T({"src/services/refactorProvider.ts"(){si(),Rh(),oY=new Map}});function _Ne(e,t=!0){const{file:r,program:i}=e,o=PI(e),s=po(r,o.start),l=s.parent&&Uv(s.parent)&32&&t?s.parent:dO(s,r,o);if(!l||!$i(l.parent)&&!(O_(l.parent)&&ku(l.parent.parent)))return{error:Wo(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),p=JJe(l.parent,u),h=Uv(l)||(kl(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:Wo(f.This_file_already_has_a_default_export)};const v=A=>Ve(A)&&u.getSymbolAtLocation(A)?void 0:{error:Wo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const A=l;return A.name?v(A.name)||{exportNode:A,exportName:A.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{const A=l;if(!(A.declarationList.flags&2)||A.declarationList.declarations.length!==1)return;const I=Ha(A.declarationList.declarations);return I.initializer?(N.assert(!m,"Can't have a default flag here"),v(I.name)||{exportNode:A,exportName:I.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{const A=l;return A.isExportEquals?void 0:v(A.expression)||{exportNode:A,exportName:A.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function VJe(e,t,r,i,o){jJe(e,r,i,t.getTypeChecker()),UJe(t,r,i,o)}function jJe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(kl(r)&&!r.isExportEquals){const l=r.expression,u=hNe(l.text,l.text);o.replaceNode(e,r,w.createExportDeclaration(void 0,!1,w.createNamedExports([u])))}else o.delete(e,N.checkDefined(RD(r,90),"Should find a default keyword in modifier list"));else{const l=N.checkDefined(RD(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,w.createToken(90));break;case 243:const u=Ha(r.declarationList.declarations);if(!Ws.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,w.createExportDefault(N.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,w.createExportDefault(w.createIdentifier(i.text)));break;default:N.fail(`Unexpected exportNode kind ${r.kind}`)}}}function UJe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=N.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Ws.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;const h=p.getSourceFile();t?HJe(h,p,o,r.text):qJe(h,p,o)})}function HJe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,w.createIdentifier(i));break;case 276:case 281:{const l=o;r.replaceNode(e,l,xde(i,l.name.text));break}case 273:{const l=o;N.assert(l.name===t,"Import clause name should match provided ref");const u=xde(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,w.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});const h=Ma(l.parent.moduleSpecifier)?oX(l.parent.moduleSpecifier,e):1,m=$y(void 0,[xde(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:const s=o;r.replaceNode(e,o,w.createImportTypeNode(s.argument,s.attributes,w.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:N.failBadSyntaxKind(o)}}function qJe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,w.createIdentifier("default"));break;case 276:{const o=w.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,hNe("default",i.name.text));break}default:N.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function xde(e,t){return w.createImportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function hNe(e,t){return w.createExportSpecifier(!1,e===t?void 0:w.createIdentifier(e),w.createIdentifier(t))}function JJe(e,t){if($i(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&OE(r.valueDeclaration)?t.getMergedSymbol(r):r}var aY,k5,w5,KJe=T({"src/services/refactors/convertExport.ts"(){si(),Rh(),aY="Convert export",k5={name:"Convert default export to named export",description:Wo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},w5={name:"Convert named export to default export",description:Wo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},pg(aY,{kinds:[k5.kind,w5.kind],getAvailableActions:function(t){const r=_Ne(t,t.triggerReason==="invoked");if(!r)return et;if(!qg(r)){const i=r.wasDefault?k5:w5;return[{name:aY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:aY,description:Wo(f.Convert_default_export_to_named_export),actions:[{...k5,notApplicableReason:r.error},{...w5,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){N.assert(r===k5.name||r===w5.name,"Unexpected action name");const i=_Ne(t);return N.assert(i&&!qg(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>VJe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function gNe(e,t=!0){const{file:r}=e,i=PI(e),o=po(r,i.start),s=t?Gn(o,kc):dO(o,r,i);if(!s||!kc(s))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=v1(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:yNe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:Wo(f.Could_not_find_namespace_import_or_named_imports)}:{error:Wo(f.Could_not_find_import_clause)}}function yNe(e,t){return OS(e.getCompilerOptions())&&QJe(t.parent.moduleSpecifier,e.getTypeChecker())}function XJe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?YJe(e,o,r,i.import,OS(t.getCompilerOptions())):bNe(e,t,r,i.import,i.convertTo===1)}function YJe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Ws.Core.eachSymbolReferenceInFile(i.name,t,e,v=>{if(!Are(v.parent))s=!0;else{const A=vNe(v.parent).text;t.resolveName(A,v,-1,!0)&&u.set(A,!0),N.assert($Je(v.parent)===v,"Parent expression should match id"),l.push(v.parent)}});const p=new Map;for(const v of l){const A=vNe(v).text;let I=p.get(A);I===void 0&&p.set(A,I=u.has(A)?sT(A,e):A),r.replaceNode(e,v,w.createIdentifier(I))}const h=[];p.forEach((v,A)=>{h.push(w.createImportSpecifier(!1,v===A?void 0:w.createIdentifier(A),w.createIdentifier(v)))});const m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,Rde(m,void 0,h)):r.replaceNode(e,m,Rde(m,s?w.createIdentifier(i.name.text):void 0,h))}function vNe(e){return Wr(e)?e.name:e.right}function $Je(e){return Wr(e)?e.expression:e.left}function bNe(e,t,r,i,o=yNe(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{const M=s.getSymbolAtLocation(R.name);M&&p.add(M)});const h=u&&Ma(u)?Fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function m(R){return!!Ws.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{const C=s.resolveName(h,M,-1,!0);return C?p.has(C)?Ku(M.parent):!0:!1})}const A=i.elements.some(m)?sT(h,e):h,I=new Set;for(const R of i.elements){const M=(R.propertyName||R.name).text;Ws.Core.eachSymbolReferenceInFile(R.name,s,e,C=>{const O=w.createPropertyAccessExpression(w.createIdentifier(A),M);rp(C.parent)?r.replaceNode(e,C.parent,w.createPropertyAssignment(C.text,O)):Ku(C.parent)?I.add(R):r.replaceNode(e,C,O)})}if(r.replaceNode(e,i,o?w.createIdentifier(A):w.createNamespaceImport(w.createIdentifier(A))),I.size){const R=zo(I.values(),M=>w.createImportSpecifier(M.isTypeOnly,M.propertyName&&w.createIdentifier(M.propertyName.text),w.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,Rde(l,void 0,R))}}function QJe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function Rde(e,t,r){return w.createImportDeclaration(void 0,w.createImportClause(!1,t,r&&r.length?w.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var sY,O5,ZJe=T({"src/services/refactors/convertImport.ts"(){si(),Rh(),sY="Convert import",O5={0:{name:"Convert namespace import to named imports",description:Wo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Wo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Wo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},pg(sY,{kinds:vA(O5).map(e=>e.kind),getAvailableActions:function(t){const r=gNe(t,t.triggerReason==="invoked");if(!r)return et;if(!qg(r)){const i=O5[r.convertTo];return[{name:sY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?vA(O5).map(i=>({name:sY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){N.assert(bt(vA(O5),s=>s.name===r),"Unexpected action name");const i=gNe(t);return N.assert(i&&!qg(i),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(t,s=>XJe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function ENe(e,t=!0){const{file:r,startPosition:i}=e,o=ud(r),s=e5(PI(e)),l=s.pos===s.end&&t,u=eKe(r,i,s,l);if(!u||!ji(u))return{error:Wo(f.Selection_is_not_a_valid_type_node)};const p=e.program.getTypeChecker(),h=oKe(u,o);if(h===void 0)return{error:Wo(f.No_type_could_be_extracted_from_this_type_node)};const m=aKe(u,h);if(!ji(m))return{error:Wo(f.Selection_is_not_a_valid_type_node)};const v=[];(Qv(m.parent)||lI(m.parent))&&s.end>u.end&&qr(v,m.parent.types.filter(M=>U7(M,r,s.pos,s.end)));const A=v.length>1?v:m,I=tKe(p,A,h,r);if(!I)return{error:Wo(f.No_type_could_be_extracted_from_this_type_node)};const R=lY(p,A);return{isJS:o,selection:A,enclosingNode:h,typeParameters:I,typeElements:R}}function eKe(e,t,r,i){const o=[()=>po(e,t),()=>ID(e,t,()=>!0)];for(const s of o){const l=s(),u=U7(l,e,r.pos,r.end),p=Gn(l,h=>h.parent&&ji(h)&&!T1(r,h.parent,e)&&(i||u));if(p)return p}}function lY(e,t){if(t){if(To(t)){const r=[];for(const i of t){const o=lY(e,i);if(!o)return;qr(r,o)}return r}if(lI(t)){const r=[],i=new Map;for(const o of t.types){const s=lY(e,o);if(!s||!s.every(l=>l.name&&Rm(i,cO(l.name))))return;qr(r,s)}return r}else{if(zS(t))return lY(e,t.type);if(bp(t))return t.members}}}function T1(e,t,r){return nO(e,ka(r.text,t.pos),t.end)}function tKe(e,t,r,i){const o=[],s=bA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(const p of s)if(u(p))return;return o;function u(p){if(Cf(p)){if(Ve(p.typeName)){const h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(const v of m?.declarations||et)if(gl(v)&&v.getSourceFile()===i){if(v.name.escapedText===h.escapedText&&T1(v,l,i))return!0;if(T1(r,v,i)&&!T1(l,v,i)){Tf(o,v);break}}}}else if(FS(p)){const h=Gn(p,m=>cI(m)&&T1(m.extendsType,p,i));if(!h||!T1(l,h,i))return!0}else if(Gk(p)||jk(p)){const h=Gn(p.parent,ea);if(h&&h.type&&T1(h.type,p,i)&&!T1(l,h,i))return!0}else if(aI(p)){if(Ve(p.exprName)){const h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&T1(r,h.valueDeclaration,i)&&!T1(l,h.valueDeclaration,i))return!0}else if(JE(p.exprName.left)&&!T1(l,p.parent,i))return!0}return i&&sI(p)&&bs(i,p.pos).line===bs(i,p.end).line&&pr(p,1),Ho(p,u)}}function nKe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=Dde(i),h=w.createTypeAliasDeclaration(void 0,r,s.map(m=>w.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,sH(h),!0),e.replaceNodeRange(t,l,u,w.createTypeReferenceNode(r,s.map(m=>w.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function rKe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=w.createInterfaceDeclaration(void 0,r,l,void 0,u);dt(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,sH(p),!0);const{firstTypeNode:h,lastTypeNode:m}=Dde(i);e.replaceNodeRange(t,h,m,w.createTypeReferenceNode(r,l.map(v=>w.createTypeReferenceNode(v.name,void 0))),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.ExcludeWhitespace})}function iKe(e,t,r,i,o){var s;bA(o.selection).forEach(R=>{pr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=Dde(o),v=w.createJSDocTypedefTag(w.createIdentifier("typedef"),w.createJSDocTypeExpression(m),w.createIdentifier(i)),A=[];Xe(u,R=>{const M=Qx(R),C=w.createTypeParameterDeclaration(void 0,R.name),O=w.createJSDocTemplateTag(w.createIdentifier("template"),M&&oa(M,u1),[C]);A.push(O)});const I=w.createJSDocComment(void 0,w.createNodeArray(So(A,[v])));if(n_(l)){const R=l.getStart(r),M=Qy(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),I,{suffix:M+M+r.text.slice(u5(r.text,R-1),R)})}else e.insertNodeBefore(r,l,I,!0);e.replaceNodeRange(r,p,h,w.createTypeReferenceNode(i,u.map(R=>w.createTypeReferenceNode(R.name,void 0))))}function Dde(e){return To(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Qv(e.selection[0].parent)?w.createUnionTypeNode(e.selection):w.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function oKe(e,t){return Gn(e,qi)||(t?Gn(e,n_):void 0)}function aKe(e,t){return Gn(e,r=>r===t?"quit":!!(Qv(r.parent)||lI(r.parent)))??e}var cY,W5,F5,z5,sKe=T({"src/services/refactors/extractType.ts"(){si(),Rh(),cY="Extract type",W5={name:"Extract to type alias",description:Wo(f.Extract_to_type_alias),kind:"refactor.extract.type"},F5={name:"Extract to interface",description:Wo(f.Extract_to_interface),kind:"refactor.extract.interface"},z5={name:"Extract to typedef",description:Wo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},pg(cY,{kinds:[W5.kind,F5.kind,z5.kind],getAvailableActions:function(t){const r=ENe(t,t.triggerReason==="invoked");return r?qg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:cY,description:Wo(f.Extract_type),actions:[{...z5,notApplicableReason:r.error},{...W5,notApplicableReason:r.error},{...F5,notApplicableReason:r.error}]}]:et:[{name:cY,description:Wo(f.Extract_type),actions:r.isJS?[z5]:xn([W5],r.typeElements&&F5)}]:et},getEditsForAction:function(t,r){const{file:i}=t,o=ENe(t);N.assert(o&&!qg(o),"Expected to find a range to extract");const s=sT("NewType",i),l=_r.ChangeTracker.with(t,h=>{switch(r){case W5.name:return N.assert(!o.isJS,"Invalid actionName/JS combo"),nKe(h,i,s,o);case z5.name:return N.assert(o.isJS,"Invalid actionName/JS combo"),iKe(h,t,i,s,o);case F5.name:return N.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),rKe(h,i,s,o);default:N.fail("Unexpected action name")}}),u=i.fileName,p=mO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function qg(e){return e.error!==void 0}function F0(e,t){return t?e.substr(0,t.length)===t:!0}var lKe=T({"src/services/refactors/helpers.ts"(){}});function SNe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=Vd(e,t),p=u.parent;if(Ve(u)){if(dk(p)&&SC(p)&&Ve(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:Wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(TNe(p))return;const h=ANe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(u.text,u,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h?.declarations)==null?void 0:s.length)!==1)return{error:Wo(f.Variables_with_multiple_declarations_cannot_be_inlined)};const m=h.declarations[0];if(!dk(m)||!SC(m)||!Ve(m.name)||TNe(m))return;const v=ANe(m,l,e);return v&&{references:v,declaration:m,replacement:m.initializer}}return{error:Wo(f.Could_not_find_variable_to_inline)}}}function TNe(e){const t=oa(e.parent.parent,Ll);return bt(t.modifiers,rI)}function ANe(e,t,r){const i=[],o=Ws.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ws.isWriteAccessForReference(s)&&!rp(s.parent)||Ku(s.parent)||kl(s.parent)||aI(s.parent)||eL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function cKe(e,t){t=cl(t);const{parent:r}=e;return vt(r)&&(kC(t){for(const v of l)m.replaceNode(r,v,cKe(v,p));m.delete(r,u)})}}})}});function dKe(e,t,r,i,o,s){const l=t.getTypeChecker(),u=V5(e,r.all,l),p=zde(e,t,o,r);i.createNewFile(e,p,pKe(e,u,i,r,t,o,p,s)),Nde(t,i,e.fileName,p,Fy(o))}function pKe(e,t,r,i,o,s,l,u){const p=o.getTypeChecker(),h=M6(e.statements,Im);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return B5(e,i.ranges,r),[...h,...i.all];const m=!PX(l,o,s,!!e.commonJsModuleIndicator),v=uf(e,u),A=Lde(e,t.oldFileImportsFromTargetFile,l,o,s,m,v);A&&aM(r,e,A,!0,u),Cde(e,i.all,r,t.unusedImportsFromOldFile,p),B5(e,i.ranges,r),Pde(r,o,s,e,t.movedSymbols,l,v);const I=fKe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,v),R=kde(e,i.all,t.oldFileImportsFromTargetFile,m);return I.length&&R.length?[...h,...I,4,...R]:[...h,...I,...R]}function fKe(e,t,r,i,o,s,l,u,p){const h=[];for(const I of e.statements)RO(I,R=>{xn(h,DO(R,xO(R),M=>t.has(o.getSymbolAtLocation(M))))});let m;const v=[],A=NI();return r.forEach(I=>{if(I.declarations)for(const R of I.declarations){if(!j5(R))continue;const M=Wde(R);if(!M)continue;const C=mY(R);A(C)&&Fde(e,C,M,i,u),Zr(R,2048)?m=M:v.push(M.text)}}),xn(h,G5(e,m,v,rc(e.fileName),s,l,u,p)),h}var IO,pY,fY,mKe=T({"src/services/refactors/moveToNewFile.ts"(){si(),Rh(),IO="Move to a new file",pY=Wo(f.Move_to_a_new_file),fY={name:IO,description:pY,kind:"refactor.move.newFile"},pg(IO,{kinds:[fY.kind],getAvailableActions:function(t){const r=NO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:IO,description:pY,actions:[fY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:IO,description:pY,actions:[{...fY,notApplicableReason:Wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){N.assert(r===IO,"Wrong refactor invoked");const i=N.checkDefined(NO(t));return{edits:_r.ChangeTracker.with(t,s=>dKe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function INe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function _Ke(e,t,r,i,o,s,l,u){const p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,xNe(t,r,V5(t,o.all,p),s,o,i,l,u)),Nde(i,s,t.fileName,r,Fy(l));else{const h=N.checkDefined(i.getSourceFile(r)),m=Fu.createImportAdder(h,e.program,e.preferences,e.host);xNe(t,h,V5(t,o.all,p,kKe(h,o.all,p)),s,o,i,l,u,m)}}function xNe(e,t,r,i,o,s,l,u,p){const h=s.getTypeChecker(),m=M6(e.statements,Im);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return B5(e,o.ranges,i),[...m,...o.all];const v=typeof t=="string"?t:t.fileName,A=!PX(v,s,l,!!e.commonJsModuleIndicator),I=uf(e,u),R=Lde(e,r.oldFileImportsFromTargetFile,v,s,l,A,I);R&&aM(i,e,R,!0,u),Cde(e,o.all,i,r.unusedImportsFromOldFile,h),B5(e,o.ranges,i),Pde(i,s,l,e,r.movedSymbols,v,I);const M=hKe(e,v,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,A,I,p),C=kde(e,o.all,r.oldFileImportsFromTargetFile,A);return typeof t!="string"&&(t.statements.length>0?LKe(i,s,C,t,o):i.insertNodesAtEndOfFile(t,C,!1),M.length>0&&aM(i,t,M,!0,u)),p&&p.writeFixes(i,I),M.length&&C.length?[...m,...M,4,...C]:[...m,...M,...C]}function hKe(e,t,r,i,o,s,l,u,p,h,m){const v=[];if(m)r.forEach((C,O)=>{try{m.addImportFromExportedSymbol(bu(O,s),C)}catch{for(const U of e.statements)RO(U,K=>{xn(v,DO(K,w.createStringLiteral(xO(K).text),Z=>r.has(s.getSymbolAtLocation(Z))))})}});else{const C=l.getSourceFile(t);for(const O of e.statements)RO(O,U=>{var K;const Z=xO(U),V=l.getCompilerOptions(),se=l.getResolvedModuleFromModuleSpecifier(Z),G=(K=se?.resolvedModule)==null?void 0:K.resolvedFileName;if(G&&C){const ne=kF(V,C,C.fileName,G,oT(l,u));xn(v,DO(U,CI(ne,h),he=>r.has(s.getSymbolAtLocation(he))))}else xn(v,DO(U,w.createStringLiteral(xO(U).text),ne=>r.has(s.getSymbolAtLocation(ne))))})}const A=l.getSourceFile(t);let I;const R=[],M=NI();return i.forEach(C=>{if(C.declarations)for(const O of C.declarations){if(!j5(O))continue;const U=Wde(O);if(!U)continue;const K=mY(O);M(K)&&Fde(e,K,U,o,p),m&&s.isUnknownSymbol(C)?m.addImportFromExportedSymbol(bu(C,s)):Zr(O,2048)?I=U:R.push(U.text)}}),A?xn(v,G5(A,I,R,e.fileName,l,u,p,h)):xn(v,G5(e,I,R,e.fileName,l,u,p,h))}function Nde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ga(Qr(r,"..",i)),u=H2(s.fileName,l,o),p=s.statements[0]&&ii(s.statements[0].expression,Oa),h=p&&An(p.properties,m=>_c(m)&&Ma(m.name)&&m.name.text==="files");h&&md(h.initializer)&&t.insertNodeInListAfter(s,Ya(h.initializer.elements),w.createStringLiteral(u),h.initializer.elements)}function B5(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function Cde(e,t,r,i,o){for(const s of e.statements)Nr(t,s)||RO(s,l=>wde(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function Pde(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const p of t.getSourceFiles())if(p!==i)for(const h of p.statements)RO(h,m=>{if(u.getSymbolAtLocation(xO(m))!==i.symbol)return;const v=C=>{const O=Qa(C.parent)?s5(u,C.parent):bu(u.getSymbolAtLocation(C),u);return!!O&&o.has(O)};wde(p,m,e,v);const A=Pv(ai(i.path),s),I=kF(t.getCompilerOptions(),p,p.fileName,A,oT(t,r)),R=DO(m,CI(I,l),v);R&&e.insertNodeAfter(p,h,R);const M=gKe(m);M&&yKe(e,p,u,o,I,M,m,l)})}function gKe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ii(e.name,Ve);default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function yKe(e,t,r,i,o,s,l,u){const p=Fu.moduleSpecifierToValidIdentifier(o,99);let h=!1;const m=[];if(Ws.Core.eachSymbolReferenceInFile(s,r,t,v=>{Wr(v.parent)&&(h=h||!!r.resolveName(p,v,-1,!0),i.has(r.getSymbolAtLocation(v.parent.name))&&m.push(v))}),m.length){const v=h?sT(p,t):p;for(const A of m)e.replaceNode(t,A,w.createIdentifier(v));e.insertNodeAfter(t,l,vKe(l,p,o,u))}}function vKe(e,t,r,i){const o=w.createIdentifier(t),s=CI(r,i);switch(e.kind){case 272:return w.createImportDeclaration(void 0,w.createImportClause(!1,void 0,w.createNamespaceImport(o)),s,void 0);case 271:return w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(s));case 260:return w.createVariableDeclaration(o,void 0,void 0,Mde(s));default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Mde(e){return w.createCallExpression(w.createIdentifier("require"),void 0,[e])}function xO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function RO(e,t){if(kc(e))Ma(e.moduleSpecifier)&&t(e);else if(tu(e))Th(e.moduleReference)&&ls(e.moduleReference.expression)&&t(e);else if(Ll(e))for(const r of e.declarationList.declarations)r.initializer&&Td(r.initializer,!0)&&t(r)}function Lde(e,t,r,i,o,s,l){let u;const p=[];return t.forEach(h=>{h.escapedName==="default"?u=w.createIdentifier(i5(h)):p.push(h.name)}),G5(e,u,p,r,i,o,s,l)}function G5(e,t,r,i,o,s,l,u){const p=Pv(ai(e.path),i),h=kF(o.getCompilerOptions(),e,e.fileName,p,oT(o,s));if(l){const m=r.map(v=>w.createImportSpecifier(!1,void 0,w.createIdentifier(v)));return Aue(t,m,h,u)}else{N.assert(!t,"No default import should exist");const m=r.map(v=>w.createBindingElement(void 0,void 0,v));return m.length?RNe(w.createObjectBindingPattern(m),void 0,Mde(CI(h,u))):void 0}}function RNe(e,t,r,i=2){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(e,void 0,t,r)],i))}function kde(e,t,r,i){return Pi(t,o=>{if(NNe(o)&&!DNe(e,o,i)&&Vde(o,s=>{var l;return r.has(N.checkDefined((l=ii(s,x_))==null?void 0:l.symbol))})){const s=SKe(cl(o),i);if(s)return s}return cl(o)})}function DNe(e,t,r,i){var o;return r?!eu(t)&&Zr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Ode(t).some(s=>e.symbol.exports.has(hl(s)))}function wde(e,t,r,i){switch(t.kind){case 272:bKe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:EKe(e,t,r,i);break;default:N.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function bKe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,w.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(const p of s.elements)i(p.name)&&r.delete(e,p)}}function EKe(e,t,r,i){const{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Td(t.initializer,!0)?r.delete(e,Uc(t.parent)&&Le(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Ve(s.name)&&i(s.name)))r.delete(e,Uc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)Ve(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function NNe(e){return N.assert($i(e.parent),"Node parent should be a SourceFile"),kNe(e)||Ll(e)}function SKe(e,t){return t?[TKe(e)]:AKe(e)}function TKe(e){const t=Cm(e)?So([w.createModifier(95)],PE(e)):void 0;switch(e.kind){case 262:return w.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=YS(e)?Lv(e):void 0;return w.updateClassDeclaration(e,So(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return w.updateVariableStatement(e,t,e.declarationList);case 267:return w.updateModuleDeclaration(e,t,e.name,e.body);case 266:return w.updateEnumDeclaration(e,t,e.name,e.members);case 265:return w.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return w.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return w.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return N.fail();default:return N.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function AKe(e){return[e,...Ode(e).map(CNe)]}function CNe(e){return w.createExpressionStatement(w.createBinaryExpression(w.createPropertyAccessExpression(w.createIdentifier("exports"),w.createIdentifier(e)),64,w.createIdentifier(e)))}function Ode(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Hi(e.declarationList.declarations,t=>Ve(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return N.fail("Can't export an ExpressionStatement");default:return N.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function DO(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&IKe(i.namedBindings,r);return o||s?w.createImportDeclaration(void 0,w.createImportClause(i.isTypeOnly,o,s),cl(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=xKe(e.name,r);return i?RNe(i,e.type,Mde(t),e.parent.flags):void 0}default:return N.assertNever(e,`Unexpected import kind ${e.kind}`)}}function IKe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?w.createNamedImports(r):void 0}}function xKe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!Ve(i.name)||t(i.name));return r.length?w.createObjectBindingPattern(r):void 0}}}function Wde(e){return eu(e)?ii(e.expression.left.name,Ve):ii(e.name,Ve)}function mY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return mY(oa(e.parent.parent,t=>wi(t)||Qa(t)));default:return e}}function Fde(e,t,r,i,o){if(!DNe(e,t,o,r))if(o)eu(t)||i.insertExportModifier(e,t);else{const s=Ode(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(CNe))}}function zde(e,t,r,i){const o=t.getTypeChecker();if(i){const s=V5(e,i.all,o),l=ai(e.fileName),u=$C(e.fileName);return Qr(l,CKe(PKe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function RKe(e){const{file:t}=e,r=e5(PI(e)),{statements:i}=t;let o=Br(i,h=>h.end>r.pos);if(o===-1)return;const s=i[o],l=wNe(t,s);l&&(o=l.start);let u=Br(i,h=>h.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const p=wNe(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function NO(e){const t=RKe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return XB(o,DKe,(l,u)=>{for(let p=l;p!!(t.transformFlags&2))}function DKe(e){return!NKe(e)&&!Im(e)}function NKe(e){switch(e.kind){case 272:return!0;case 271:return!Zr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Td(t.initializer,!0));default:return!1}}function V5(e,t,r,i=new Set){const o=new Set,s=new Map,l=new Set,u=m(Bde(t));u&&s.set(u,!1);for(const v of t)Vde(v,A=>{o.add(N.checkDefined(eu(A)?r.getSymbolAtLocation(A.expression.left):A.symbol,"Need a symbol here"))});const p=new Set;for(const v of t)Gde(v,r,(A,I)=>{if(A.declarations){if(i.has(bu(A,r))){p.add(A);return}for(const R of A.declarations)if(PNe(R)){const M=s.get(A);s.set(A,(M===void 0||M)&&I)}else j5(R)&&MKe(R)===e&&!o.has(A)&&l.add(A)}});for(const v of s.keys())p.add(v);const h=new Set;for(const v of e.statements)Nr(t,v)||(u&&v.transformFlags&2&&p.delete(u),Gde(v,r,A=>{o.has(A)&&h.add(A),p.delete(A)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(v){if(v===void 0)return;const A=r.getJsxNamespace(v),I=r.resolveName(A,v,1920,!0);return I&&bt(I.declarations,PNe)?I:void 0}}function CKe(e,t,r,i){let o=e;for(let s=1;;s++){const l=Qr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function PKe(e,t){return mh(e,i5)||mh(t,i5)||"newFile"}function Gde(e,t,r){e.forEachChild(function i(o){if(Ve(o)&&!Wg(o)){const s=t.getSymbolAtLocation(o);s&&r(s,S0(o))}else o.forEachChild(i)})}function Vde(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 qt(e.declarationList.declarations,r=>LNe(r.name,t));case 244:{const{expression:r}=e;return mr(r)&&Bl(r)===1?t(e):void 0}}}function PNe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return MNe(e);case 208:return wi(e.parent.parent)&&MNe(e.parent.parent);default:return!1}}function MNe(e){return $i(e.parent.parent.parent)&&!!e.initializer&&Td(e.initializer,!0)}function j5(e){return kNe(e)&&$i(e.parent)||wi(e)&&$i(e.parent.parent.parent)}function MKe(e){return wi(e)?e.parent.parent.parent:e.parent}function LNe(e,t){switch(e.kind){case 80:return t(oa(e.parent,r=>wi(r)||Qa(r)));case 207:case 206:return qt(e.elements,r=>jc(r)?void 0:LNe(r.name,t));default:return N.assertNever(e,`Unexpected name kind ${e.kind}`)}}function kNe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function LKe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const h=t.getTypeChecker(),m=new Map;for(const v of o.all)NNe(v)&&Zr(v,32)&&Vde(v,A=>{var I;const R=x_(A)?(I=u.get(A.symbol.escapedName))==null?void 0:I.declarations:void 0,M=qt(R,C=>Yl(C)?C:Ku(C)?ii(C.parent.parent,Yl):void 0);M&&M.moduleSpecifier&&m.set(M,(m.get(M)||new Set).add(A))});for(const[v,A]of zo(m))if(v.exportClause&&Pf(v.exportClause)&&Le(v.exportClause.elements)){const I=v.exportClause.elements,R=nr(I,M=>An(bu(M.symbol,h).declarations,C=>j5(C)&&A.has(C))===void 0);if(Le(R)===0){e.deleteNode(i,v),l.add(v);continue}Le(R)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 wNe(e,t){if(Bs(t)){const r=t.symbol.declarations;if(r===void 0||Le(r)<=1||!Nr(r,t))return;const i=r[0],o=r[Le(r)-1],s=Hi(r,p=>jn(p)===e&&qi(p)?p:void 0),l=Br(e.statements,p=>p.end>=o.end),u=Br(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function kKe(e,t,r){const i=new Set;for(const o of e.imports){const s=RC(o);if(kc(s)&&s.importClause&&s.importClause.namedBindings&&Vg(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}if(e3(s.parent)&&am(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(bu(u,r))}}for(const o of t)Gde(o,r,s=>{const l=bu(s,r);l.valueDeclaration&&jn(l.valueDeclaration)===e&&i.add(l)});return i}var U5,_Y,hY,wKe=T({"src/services/refactors/moveToFile.ts"(){Kse(),si(),mNe(),U5="Move to file",_Y=Wo(f.Move_to_file),hY={name:"Move to file",description:_Y,kind:"refactor.move.file"},pg(U5,{kinds:[hY.kind],getAvailableActions:function(t,r){const i=NO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:U5,description:_Y,actions:[hY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:U5,description:_Y,actions:[{...hY,notApplicableReason:Wo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){N.assert(r===U5,"Wrong refactor invoked");const o=N.checkDefined(NO(t)),{host:s,program:l}=t;N.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return XE(u)||JA(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?INe(Wo(f.Cannot_move_statements_to_the_selected_file)):{edits:_r.ChangeTracker.with(t,h=>_Ke(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:INe(Wo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function OKe(e){const{file:t,startPosition:r,program:i}=e;return WNe(t,r,i)?[{name:gY,description:jde,actions:[Ude]}]:et}function WKe(e){const{file:t,startPosition:r,program:i}=e,o=WNe(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 173:{u=w.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{u=w.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{u=w.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{u=w.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{u=w.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{u=w.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return N.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,A=>{A.replaceNodeRange(t,o[0],o[o.length-1],u)})};function h(A){const I=A[A.length-1];return Bs(I)&&I.body&&(A=A.slice(0,A.length-1)),w.createNodeArray([w.createParameterDeclaration(void 0,w.createToken(26),"args",void 0,w.createUnionTypeNode(Ot(A,m)))])}function m(A){const I=Ot(A.parameters,v);return pr(w.createTupleTypeNode(I),bt(I,R=>!!Le(VR(R)))?0:1)}function v(A){N.assert(Ve(A.name));const I=dt(w.createNamedTupleMember(A.dotDotDotToken,A.name,A.questionToken,A.type||w.createKeywordTypeNode(133)),A),R=A.symbol&&A.symbol.getDocumentationComment(s);if(R){const M=OO(R);M.length&&A0(I,[{text:`* ${M.split(` `).map(C=>` * ${C}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function ONe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function WNe(e,t,r){const i=po(e,t),o=Gn(i,ONe);if(!o||Bs(o)&&o.body&&eO(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Le(u)<=1||!Zn(u,A=>jn(A)===e)||!ONe(u[0]))return;const p=u[0].kind;if(!Zn(u,A=>A.kind===p))return;const h=u;if(bt(h,A=>!!A.typeParameters||bt(A.parameters,I=>!!I.modifiers||!Ve(I.name))))return;const m=Hi(h,A=>s.getSignatureFromDeclaration(A));if(Le(m)!==Le(u))return;const v=s.getReturnTypeOfSignature(m[0]);if(Zn(m,A=>s.getReturnTypeOfSignature(A)===v))return h}var gY,jde,Ude,FKe=T({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){si(),Rh(),gY="Convert overload list to single signature",jde=Wo(f.Convert_overload_list_to_single_signature),Ude={name:gY,description:jde,kind:"refactor.rewrite.function.overloadList"},pg(gY,{kinds:[Ude.kind],getEditsForAction:WKe,getAvailableActions:OKe})}});function zKe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=FNe(t,r,i==="invoked");return o?qg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:yY,description:Hde,actions:[{...H5,notApplicableReason:o.error},{...CO,notApplicableReason:o.error}]}]:et:[{name:yY,description:Hde,actions:[o.addBraces?H5:CO]}]:et}function BKe(e,t){const{file:r,startPosition:i}=e,o=FNe(r,i);N.assert(o&&!qg(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let p;if(t===H5.name){const m=w.createReturnStatement(s);p=w.createBlock([m],!0),CD(s,m,r,3,!0)}else if(t===CO.name&&l){const m=s||w.createVoidZero();p=d5(m)?w.createParenthesizedExpression(m):m,_O(l,p,r,3,!1),CD(l,p,r,3,!1),uM(l,p,r,3,!1)}else N.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,m=>{m.replaceNode(r,u.body,p)})}}function FNe(e,t,r=!0,i){const o=po(e,t),s=Gp(o);if(!s)return{error:Wo(f.Could_not_find_a_containing_arrow_function)};if(!Gs(s))return{error:Wo(f.Containing_function_is_not_an_arrow_function)};if(!(!cf(s,o)||cf(s.body,o)&&!r)){if(F0(H5.kind,i)&&vt(s.body))return{func:s,addBraces:!0,expression:s.body};if(F0(CO.kind,i)&&Xo(s.body)&&s.body.statements.length===1){const l=Ha(s.body.statements);if(Dm(l)){const u=l.expression&&Oa(kR(l.expression,!1))?w.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var yY,Hde,H5,CO,GKe=T({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){si(),Rh(),yY="Add or remove braces in an arrow function",Hde=Wo(f.Add_or_remove_braces_in_an_arrow_function),H5={name:"Add braces to arrow function",description:Wo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},CO={name:"Remove braces from arrow function",description:Wo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},pg(yY,{kinds:[CO.kind],getEditsForAction:BKe,getAvailableActions:zKe})}}),VKe={},jKe=T({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){FKe(),GKe()}});function UKe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=BNe(t,r,i);if(!s)return et;const{selectedVariableDeclaration:l,func:u}=s,p=[],h=[];if(F0(MO.kind,o)){const m=l||Gs(u)&&wi(u.parent)?void 0:Wo(f.Could_not_convert_to_named_function);m?h.push({...MO,notApplicableReason:m}):p.push(MO)}if(F0(PO.kind,o)){const m=!l&&Gs(u)?void 0:Wo(f.Could_not_convert_to_anonymous_function);m?h.push({...PO,notApplicableReason:m}):p.push(PO)}if(F0(LO.kind,o)){const m=Os(u)?void 0:Wo(f.Could_not_convert_to_arrow_function);m?h.push({...LO,notApplicableReason:m}):p.push(LO)}return[{name:qde,description:jNe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function HKe(e,t){const{file:r,startPosition:i,program:o}=e,s=BNe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case PO.name:u.push(...XKe(e,l));break;case MO.name:const p=KKe(l);if(!p)return;u.push(...YKe(e,l,p));break;case LO.name:if(!Os(l))return;u.push(...$Ke(e,l));break;default:return N.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function zNe(e){let t=!1;return e.forEachChild(function r(i){if(AD(i)){t=!0;return}!ui(i)&&!Ac(i)&&!Os(i)&&Ho(i,r)}),t}function BNe(e,t,r){const i=po(e,t),o=r.getTypeChecker(),s=JKe(e,o,i.parent);if(s&&!zNe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=Gp(i);if(l&&(Os(l)||Gs(l))&&!cf(l.body,i)&&!zNe(l.body)&&!o.containsArgumentsReference(l))return Os(l)&&VNe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function qKe(e){return wi(e)||Uc(e)&&e.declarations.length===1}function JKe(e,t,r){if(!qKe(r))return;const o=(wi(r)?r:Ha(r.declarations)).initializer;if(o&&(Gs(o)||Os(o)&&!VNe(e,t,o)))return o}function GNe(e){if(vt(e)){const t=w.createReturnStatement(e),r=e.getSourceFile();return dt(t,e),Tp(t),_O(e,t,r,void 0,!0),w.createBlock([t],!0)}else return e}function KKe(e){const t=e.parent;if(!wi(t)||!SC(t))return;const r=t.parent,i=r.parent;if(!(!Uc(r)||!Ll(i)||!Ve(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function XKe(e,t){const{file:r}=e,i=GNe(t.body),o=w.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return _r.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function YKe(e,t,r){const{file:i}=e,o=GNe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;vX(u);const h=l0(s)&32|dd(t),m=w.createModifiersFromModifierFlags(h),v=w.createFunctionDeclaration(Le(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?_r.ChangeTracker.with(e,A=>A.replaceNode(i,u,v)):_r.ChangeTracker.with(e,A=>{A.delete(i,s),A.insertNodeAfter(i,u,v)})}function $Ke(e,t){const{file:r}=e,o=t.body.statements[0];let s;QKe(t.body,o)?(s=o.expression,Tp(s),aT(o,s)):s=t.body;const l=w.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,w.createToken(39),s);return _r.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function QKe(e,t){return e.statements.length===1&&Dm(t)&&!!t.expression}function VNe(e,t,r){return!!r.name&&Ws.Core.isSymbolReferencedInFile(r.name,t,e)}var qde,jNe,PO,MO,LO,ZKe=T({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){si(),Rh(),qde="Convert arrow function or function expression",jNe=Wo(f.Convert_arrow_function_or_function_expression),PO={name:"Convert to anonymous function",description:Wo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},MO={name:"Convert to named function",description:Wo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},LO={name:"Convert to arrow function",description:Wo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},pg(qde,{kinds:[PO.kind,MO.kind,LO.kind],getEditsForAction:HKe,getAvailableActions:UKe})}}),eXe={},tXe=T({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){ZKe()}});function nXe(e){const{file:t,startPosition:r}=e;return ud(t)||!qNe(t,r,e.program.getTypeChecker())?et:[{name:J5,description:Yde,actions:[$de]}]}function rXe(e,t){N.assert(t===J5,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=qNe(r,i,o.getTypeChecker());if(!u||!s)return;const p=oXe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,m=>iXe(r,o,l,m,u,p))}:{edits:[]}}function iXe(e,t,r,i,o,s){const l=s.signature,u=Ot(YNe(o,t,r),m=>cl(m));if(l){const m=Ot(YNe(l,t,r),v=>cl(v));h(l,m)}h(o,u);const p=JN(s.functionCalls,(m,v)=>rl(m.pos,v.pos));for(const m of p)if(m.arguments&&m.arguments.length){const v=cl(_Xe(o,m.arguments),!0);i.replaceNodeRange(jn(m),Ha(m.arguments),Ya(m.arguments),v,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}function h(m,v){i.replaceNodeRangeWithNodes(e,Ha(m.parameters),Ya(m.parameters),v,{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include})}}function oXe(e,t,r){const i=gXe(e),o=Ml(e)?hXe(e):[],s=RE([...i,...o],Ny),l=t.getTypeChecker(),u=Pi(s,v=>Ws.getReferenceEntriesForNode(-1,v,t,t.getSourceFiles(),r)),p=h(u);return Zn(p.declarations,v=>Nr(s,v))||(p.valid=!1),p;function h(v){const A={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:A,valid:!0},R=Ot(i,m),M=Ot(o,m),C=Ml(e),O=Ot(i,U=>Jde(U,l));for(const U of v){if(U.kind===Ws.EntryKind.Span){I.valid=!1;continue}if(Nr(O,m(U.node))){if(cXe(U.node.parent)){I.signature=U.node.parent;continue}const Z=HNe(U);if(Z){I.functionCalls.push(Z);continue}}const K=Jde(U.node,l);if(K&&Nr(O,K)){const Z=Kde(U);if(Z){I.declarations.push(Z);continue}}if(Nr(R,m(U.node))||nM(U.node)){if(UNe(U))continue;const V=Kde(U);if(V){I.declarations.push(V);continue}const se=HNe(U);if(se){I.functionCalls.push(se);continue}}if(C&&Nr(M,m(U.node))){if(UNe(U))continue;const V=Kde(U);if(V){I.declarations.push(V);continue}const se=aXe(U);if(se){A.accessExpressions.push(se);continue}if(Ic(e.parent)){const G=sXe(U);if(G){A.typeUsages.push(G);continue}}}I.valid=!1}return I}function m(v){const A=l.getSymbolAtLocation(v);return A&&gX(A,l)}}function Jde(e,t){const r=WO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(xl(o)&6))return o}}function UNe(e){const t=e.node;if(np(t.parent)||Eh(t.parent)||tu(t.parent)||nb(t.parent)||Ku(t.parent)||kl(t.parent))return t}function Kde(e){if(Ju(e.node.parent))return e.node}function HNe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=ii(r,I_);if(i&&i.expression===t)return i;break;case 211:const o=ii(r,Wr);if(o&&o.parent&&o.name===t){const l=ii(o.parent,I_);if(l&&l.expression===o)return l}break;case 212:const s=ii(r,Qs);if(s&&s.parent&&s.argumentExpression===t){const l=ii(s.parent,I_);if(l&&l.expression===s)return l}break}}}function aXe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=ii(r,Wr);if(i&&i.expression===t)return i;break;case 212:const o=ii(r,Qs);if(o&&o.expression===t)return o;break}}}function sXe(e){const t=e.node;if(rT(t)===2||E3(t.parent))return t}function qNe(e,t,r){const i=ID(e,t),o=mie(i);if(!lXe(i)&&o&&uXe(o,r)&&cf(o,i)&&!(o.body&&cf(o.body,i)))return o}function lXe(e){const t=Gn(e,nR);if(t){const r=Gn(t,i=>!nR(i));return!!r&&Bs(r)}return!1}function cXe(e){return vh(e)&&(_d(e.parent)||bp(e.parent))}function uXe(e,t){var r;if(!dXe(e.parameters,t))return!1;switch(e.kind){case 262:return JNe(e)&&q5(e,t);case 174:if(Oa(e.parent)){const i=Jde(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&q5(e,t)}return q5(e,t);case 176:return Ic(e.parent)?JNe(e.parent)&&q5(e,t):KNe(e.parent.parent)&&q5(e,t);case 218:case 219:return KNe(e.parent)}return!1}function q5(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function JNe(e){return e.name?!0:!!RD(e,90)}function dXe(e,t){return fXe(e)>=$Ne&&Zn(e,r=>pXe(r,t))}function pXe(e,t){if(Qh(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ve(e.name)}function KNe(e){return wi(e)&&cR(e)&&Ve(e.name)&&!e.type}function Xde(e){return e.length>0&&AD(e[0].name)}function fXe(e){return Xde(e)?e.length-1:e.length}function XNe(e){return Xde(e)&&(e=w.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function mXe(e,t){return Ve(t)&&em(t)===e?w.createShorthandPropertyAssignment(e):w.createPropertyAssignment(e,t)}function _Xe(e,t){const r=XNe(e.parameters),i=Qh(Ya(r)),o=i?t.slice(0,r.length-1):t,s=Ot(o,(u,p)=>{const h=vY(r[p]),m=mXe(h,u);return Tp(m.name),_c(m)&&Tp(m.initializer),aT(u,m),m});if(i&&t.length>=r.length){const u=t.slice(r.length-1),p=w.createPropertyAssignment(vY(Ya(r)),w.createArrayLiteralExpression(u));s.push(p)}return w.createObjectLiteralExpression(s,!1)}function YNe(e,t,r){const i=t.getTypeChecker(),o=XNe(e.parameters),s=Ot(o,m),l=w.createObjectBindingPattern(s),u=v(o);let p;Zn(o,R)&&(p=w.createObjectLiteralExpression());const h=w.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(Xde(e.parameters)){const M=e.parameters[0],C=w.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Tp(C.name),aT(M.name,C.name),M.type&&(Tp(C.type),aT(M.type,C.type)),w.createNodeArray([C,h])}return w.createNodeArray([h]);function m(M){const C=w.createBindingElement(void 0,void 0,vY(M),Qh(M)&&R(M)?w.createArrayLiteralExpression():M.initializer);return Tp(C),M.initializer&&C.initializer&&aT(M.initializer,C.initializer),C}function v(M){const C=Ot(M,A);return k_(w.createTypeLiteralNode(C),1)}function A(M){let C=M.type;!C&&(M.initializer||Qh(M))&&(C=I(M));const O=w.createPropertySignature(void 0,vY(M),R(M)?w.createToken(58):M.questionToken,C);return Tp(O),aT(M.name,O.name),M.type&&O.type&&aT(M.type,O.type),O}function I(M){const C=i.getTypeAtLocation(M);return pM(C,M,t,r)}function R(M){if(Qh(M)){const C=i.getTypeAtLocation(M);return!i.isTupleType(C)}return i.isOptionalParameter(M)}}function vY(e){return em(e.name)}function hXe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[N.checkDefined(RD(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function gXe(e){switch(e.kind){case 262:return e.name?[e.name]:[N.checkDefined(RD(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=N.checkDefined(ys(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 N.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var J5,$Ne,Yde,$de,yXe=T({"src/services/refactors/convertParamsToDestructuredObject.ts"(){si(),Rh(),J5="Convert parameters to destructured object",$Ne=1,Yde=Wo(f.Convert_parameters_to_destructured_object),$de={name:J5,description:Yde,kind:"refactor.rewrite.parameters.toDestructured"},pg(J5,{kinds:[$de.kind],getEditsForAction:rXe,getAvailableActions:nXe})}}),vXe={},bXe=T({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){yXe()}});function EXe(e){const{file:t,startPosition:r}=e,i=QNe(t,r),o=Qde(i),s=Ma(o),l={name:bY,description:EY,actions:[]};return s&&e.triggerReason!=="invoked"?et:tg(o)&&(s||mr(o)&&Zde(o).isValidConcatenation)?(l.actions.push(SY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...SY,notApplicableReason:Wo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function QNe(e,t){const r=po(e,t),i=Qde(r);return!Zde(i).isValidConcatenation&&Gd(i.parent)&&mr(i.parent.parent)?i.parent.parent:r}function SXe(e,t){const{file:r,startPosition:i}=e,o=QNe(r,i);switch(t){case EY:return{edits:TXe(e,o)};default:return N.fail("invalid action")}}function TXe(e,t){const r=Qde(t),i=e.file,o=xXe(Zde(r),i),s=o0(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return _r.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return _r.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function AXe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Qde(e){return Gn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(mr(r.parent)&&AXe(r.parent));default:return"quit"}})||e}function Zde(e){const t=l=>{if(!mr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Ma(l)||tI(l)};const{nodes:u,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||Ma(l.right)||qW(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const v=l.operatorToken.kind===40,A=m&&v;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:A}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function IXe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function ZNe(e){const t=nI(e)||pH(e)?-2:-1;return pc(e).slice(1,t)}function eCe(e,t){const r=[];let i="",o="";for(;e{tCe(K);const V=Z===A.templateSpans.length-1,se=K.literal.text+(V?R:""),G=ZNe(K.literal)+(V?M:"");return w.createTemplateSpan(K.expression,O&&V?w.createTemplateTail(se,G):w.createTemplateMiddle(se,G))});h.push(...U)}else{const U=O?w.createTemplateTail(R,M):w.createTemplateMiddle(R,M);o(C,U),h.push(w.createTemplateSpan(A,U))}}return w.createTemplateExpression(m,h)}function tCe(e){const t=e.getSourceFile();uM(e,e.expression,t,3,!1),_O(e.expression,e.expression,t,3,!1)}function RXe(e){return Gd(e)&&(tCe(e),e=e.expression),e}var bY,EY,SY,nCe,rCe,DXe=T({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){si(),Rh(),bY="Convert to template string",EY=Wo(f.Convert_to_template_string),SY={name:bY,description:EY,kind:"refactor.rewrite.string"},pg(bY,{kinds:[SY.kind],getEditsForAction:SXe,getAvailableActions:EXe}),nCe=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){const s=i.shift();uM(e[s],o,t,3,!1),r(s,o)}}}}),NXe={},CXe=T({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){DXe()}});function PXe(e){const t=iCe(e,e.triggerReason==="invoked");return t?qg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:K5,description:IY,actions:[{...xY,notApplicableReason:t.error}]}]:et:[{name:K5,description:IY,actions:[xY]}]:et}function MXe(e,t){const r=iCe(e);return N.assert(r&&!qg(r),"Expected applicable refactor info"),{edits:_r.ChangeTracker.with(e,o=>BXe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function TY(e){return mr(e)||KR(e)}function LXe(e){return eu(e)||Dm(e)||Ll(e)}function AY(e){return TY(e)||LXe(e)}function iCe(e,t=!0){const{file:r,program:i}=e,o=PI(e),s=o.length===0;if(s&&!t)return;const l=po(r,o.start),u=X7(r,o.start+o.length),p=dc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),h=s?FXe(l):WXe(l,p),m=h&&AY(h)?zXe(h):void 0;if(!m)return{error:Wo(f.Could_not_find_convertible_access_expression)};const v=i.getTypeChecker();return KR(m)?kXe(m,v):wXe(m)}function kXe(e,t){const r=e.condition,i=tpe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Wo(f.Could_not_find_convertible_access_expression)};if((Wr(r)||Ve(r))&&epe(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(mr(r)){const o=oCe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Wo(f.Could_not_find_matching_access_expressions)}}}function wXe(e){if(e.operatorToken.kind!==56)return{error:Wo(f.Can_only_convert_logical_AND_access_chains)};const t=tpe(e.right);if(!t)return{error:Wo(f.Could_not_find_convertible_access_expression)};const r=oCe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Wo(f.Could_not_find_matching_access_expressions)}}function oCe(e,t){const r=[];for(;mr(t)&&t.operatorToken.kind===56;){const o=epe(hs(e),hs(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=epe(e,t);return i&&r.push(i),r.length>0?r:void 0}function epe(e,t){if(!(!Ve(t)&&!Wr(t)&&!Qs(t)))return OXe(e,t)?t:void 0}function OXe(e,t){for(;(sa(e)||Wr(e)||Qs(e))&&kO(e)!==kO(t);)e=e.expression;for(;Wr(e)&&Wr(t)||Qs(e)&&Qs(t);){if(kO(e)!==kO(t))return!1;e=e.expression,t=t.expression}return Ve(e)&&Ve(t)&&e.getText()===t.getText()}function kO(e){if(Ve(e)||nf(e))return e.getText();if(Wr(e))return kO(e.name);if(Qs(e))return kO(e.argumentExpression)}function WXe(e,t){for(;e.parent;){if(AY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function FXe(e){for(;e.parent;){if(AY(e)&&!AY(e.parent))return e;e=e.parent}}function zXe(e){if(TY(e))return e;if(Ll(e)){const t=WA(e),r=t?.initializer;return r&&TY(r)?r:void 0}return e.expression&&TY(e.expression)?e.expression:void 0}function tpe(e){if(e=hs(e),mr(e))return tpe(e.left);if((Wr(e)||Qs(e)||sa(e))&&!qu(e))return e}function aCe(e,t,r){if(Wr(t)||Qs(t)||sa(t)){const i=aCe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),sa(t))return s?w.createCallChain(i,w.createToken(29),t.typeArguments,t.arguments):w.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Wr(t))return s?w.createPropertyAccessChain(i,w.createToken(29),t.name):w.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Qs(t))return s?w.createElementAccessChain(i,w.createToken(29),t.argumentExpression):w.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function BXe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],h=aCe(t,s,l);h&&(Wr(h)||Qs(h)||sa(h))&&(mr(u)?r.replaceNodeRange(e,p,s,h):KR(u)&&r.replaceNode(e,u,w.createBinaryExpression(h,w.createToken(61),u.whenFalse)))}var K5,IY,xY,GXe=T({"src/services/refactors/convertToOptionalChainExpression.ts"(){si(),Rh(),K5="Convert to optional chain expression",IY=Wo(f.Convert_to_optional_chain_expression),xY={name:K5,description:IY,kind:"refactor.rewrite.expression.optionalChain"},pg(K5,{kinds:[xY.kind],getEditsForAction:MXe,getAvailableActions:PXe})}}),VXe={},jXe=T({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){GXe()}});function sCe(e){const t=e.kind,r=npe(e.file,PI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;const R=[];return F0(OD.kind,t)&&R.push({name:kD,description:OD.description,actions:[{...OD,notApplicableReason:I(r.errors)}]}),F0(wD.kind,t)&&R.push({name:kD,description:wD.description,actions:[{...wD,notApplicableReason:I(r.errors)}]}),R}const o=XXe(i,e);if(o===void 0)return et;const s=[],l=new Map;let u;const p=[],h=new Map;let m,v=0;for(const{functionExtraction:R,constantExtraction:M}of o){if(F0(OD.kind,t)){const C=R.description;R.errors.length===0?l.has(C)||(l.set(C,!0),s.push({description:C,name:`function_scope_${v}`,kind:OD.kind})):u||(u={description:C,name:`function_scope_${v}`,notApplicableReason:I(R.errors),kind:OD.kind})}if(F0(wD.kind,t)){const C=M.description;M.errors.length===0?h.has(C)||(h.set(C,!0),p.push({description:C,name:`constant_scope_${v}`,kind:wD.kind})):m||(m={description:C,name:`constant_scope_${v}`,notApplicableReason:I(M.errors),kind:wD.kind})}v++}const A=[];return s.length?A.push({name:kD,description:Wo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&A.push({name:kD,description:Wo(f.Extract_function),actions:[u]}),p.length?A.push({name:kD,description:Wo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&A.push({name:kD,description:Wo(f.Extract_constant),actions:[m]}),A.length?A:et;function I(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function lCe(e,t){const i=npe(e.file,PI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return N.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),JXe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return N.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),KXe(i,e,l)}N.fail("Unrecognized action name")}function npe(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Qc(e,t.start,i,Tu.cannotExtractEmpty)]};const o=i===0&&r,s=uue(e,t.start),l=X7(e,Kl(t)),u=s&&l&&r?UXe(s,l,e):t,p=o?_Ye(s):dO(s,e,u),h=o?p:dO(l,e,u);let m=0,v;if(!p||!h)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Qc(e,t.start,i,Tu.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};if(p!==h){if(!uCe(p.parent))return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};const U=[];for(const K of p.parent.statements){if(K===p||U.length){const Z=O(K);if(Z)return{errors:Z};U.push(K)}if(K===h)break}return U.length?{targetRange:{range:U,facts:m,thisNode:v}}:{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]}}if(Dm(p)&&!p.expression)return{errors:[Qc(e,t.start,i,Tu.cannotExtractRange)]};const A=R(p),I=M(A)||O(A);if(I)return{errors:I};return{targetRange:{range:HXe(A),facts:m,thisNode:v}};function R(U){if(Dm(U)){if(U.expression)return U.expression}else if(Ll(U)||Uc(U)){const K=Ll(U)?U.declarationList.declarations:U.declarations;let Z=0,V;for(const se of K)se.initializer&&(Z++,V=se.initializer);if(Z===1)return V}else if(wi(U)&&U.initializer)return U.initializer;return U}function M(U){if(Ve(eu(U)?U.expression:U))return[kr(U,Tu.cannotExtractIdentifier)]}function C(U,K){let Z=U;for(;Z!==K;){if(Z.kind===172){aa(Z)&&(m|=32);break}else if(Z.kind===169){Gp(Z).kind===176&&(m|=32);break}else Z.kind===174&&aa(Z)&&(m|=32);Z=Z.parent}}function O(U){let K;if((he=>{he[he.None=0]="None",he[he.Break=1]="Break",he[he.Continue=2]="Continue",he[he.Return=4]="Return"})(K||(K={})),N.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),N.assert(!Zm(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!qi(U)&&!(tg(U)&&cCe(U))&&!spe(U))return[kr(U,Tu.statementOrExpressionExpected)];if(U.flags&33554432)return[kr(U,Tu.cannotExtractAmbientBlock)];const Z=su(U);Z&&C(U,Z);let V,se=4,G;if(ne(U),m&8){const he=Fd(U,!1,!1);(he.kind===262||he.kind===174&&he.parent.kind===210||he.kind===218)&&(m|=16)}return V;function ne(he){if(V)return!0;if(Ju(he)){const $=he.kind===260?he.parent.parent:he;if(Zr($,32))return(V||(V=[])).push(kr(he,Tu.cannotExtractExportedEntity)),!0}switch(he.kind){case 272:return(V||(V=[])).push(kr(he,Tu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(kr(he,Tu.cannotExtractExportedEntity)),!0;case 108:if(he.parent.kind===213){const $=su(he);if($===void 0||$.pos=t.start+t.length)return(V||(V=[])).push(kr(he,Tu.cannotExtractSuper)),!0}else m|=8,v=he;break;case 219:Ho(he,function $(Y){if(AD(Y))m|=8,v=he;else{if(ui(Y)||ea(Y)&&!Gs(Y))return!1;Ho(Y,$)}});case 263:case 262:$i(he.parent)&&he.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(kr(he,Tu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ve=se;switch(he.kind){case 245:se&=-5;break;case 258:se=0;break;case 241:he.parent&&he.parent.kind===258&&he.parent.finallyBlock===he&&(se=4);break;case 297:case 296:se|=1;break;default:Wv(he,!1)&&(se|=3);break}switch(he.kind){case 197:case 110:m|=8,v=he;break;case 256:{const $=he.label;(G||(G=[])).push($.escapedText),Ho(he,ne),G.pop();break}case 252:case 251:{const $=he.label;$?Nr(G,$.escapedText)||(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):se&(he.kind===252?1:2)||(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:se&4?m|=1:(V||(V=[])).push(kr(he,Tu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ho(he,ne);break}se=ve}}}function UXe(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function HXe(e){if(qi(e))return[e];if(tg(e))return eu(e.parent)?[e.parent]:e;if(spe(e))return e}function rpe(e){return Gs(e)?$V(e.body):Bs(e)||$i(e)||O_(e)||ui(e)}function qXe(e){let t=ev(e.range)?Ha(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=su(t);if(i){const o=Gn(t,Bs);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Gn(t,i=>Bs(i)).parent),rpe(t)&&(r.push(t),t.kind===312))return r}function JXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=ipe(e,t);return N.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),tYe(o,i[r],s[r],u,e,t)}function KXe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=ipe(e,t);N.assert(!l[r].length,"The extraction went missing? How?"),N.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const p=vt(o)?o:o.statements[0].expression;return nYe(p,i[r],s[r],e.facts,t)}function XXe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=ipe(e,t);return r.map((l,u)=>{const p=YXe(l),h=$Xe(l),m=Bs(l)?QXe(l):ui(l)?ZXe(l):eYe(l);let v,A;return m===1?(v=sg(Wo(f.Extract_to_0_in_1_scope),[p,"global"]),A=sg(Wo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(v=sg(Wo(f.Extract_to_0_in_1_scope),[p,"module"]),A=sg(Wo(f.Extract_to_0_in_1_scope),[h,"module"])):(v=sg(Wo(f.Extract_to_0_in_1),[p,m]),A=sg(Wo(f.Extract_to_0_in_1),[h,m])),u===0&&!ui(l)&&(A=sg(Wo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:v,errors:i[u]},constantExtraction:{description:A,errors:o[u]}}})}function ipe(e,t){const{file:r}=t,i=qXe(e),o=fYe(e,r),s=mYe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function YXe(e){return Bs(e)?"inner function":ui(e)?"method":"function"}function $Xe(e){return ui(e)?"readonly field":"constant"}function QXe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:R5;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:N.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function ZXe(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 eYe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function tYe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const p=u.program.getTypeChecker(),h=os(u.program.getCompilerOptions()),m=Fu.createImportAdder(u.file,u.program,u.preferences,u.host),v=t.getSourceFile(),A=sT(ui(t)?"newMethod":"newFunction",v),I=lr(t),R=w.createIdentifier(A);let M;const C=[],O=[];let U;r.forEach((De,Pe)=>{let We;if(!I){let Se=p.getTypeOfSymbolAtLocation(De.symbol,De.node);Se=p.getBaseTypeOfLiteralType(Se),We=Fu.typeToAutoImportableTypeNode(p,m,Se,t,h,1)}const At=w.createParameterDeclaration(void 0,void 0,Pe,void 0,We);C.push(At),De.usage===2&&(U||(U=[])).push(De),O.push(w.createIdentifier(Pe))});const Z=zo(i.values(),De=>({type:De,declaration:iYe(De,u.startPosition)})).sort(oYe),V=Z.length===0?void 0:Hi(Z,({declaration:De})=>De),se=V!==void 0?V.map(De=>w.createTypeReferenceNode(De.name,void 0)):void 0;if(vt(e)&&!I){const De=p.getContextualType(e);M=p.typeToTypeNode(De,t,1)}const{body:G,returnValueProperty:ne}=sYe(e,s,U,o,!!(l.facts&1));Tp(G);let he;const ve=!!(l.facts&16);if(ui(t)){const De=I?[]:[w.createModifier(123)];l.facts&32&&De.push(w.createModifier(126)),l.facts&4&&De.push(w.createModifier(134)),he=w.createMethodDeclaration(De.length?De:void 0,l.facts&2?w.createToken(42):void 0,R,void 0,V,C,M,G)}else ve&&C.unshift(w.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),he=w.createFunctionDeclaration(l.facts&4?[w.createToken(134)]:void 0,l.facts&2?w.createToken(42):void 0,R,V,C,M,G);const $=_r.ChangeTracker.fromContext(u),Y=(ev(l.range)?Ya(l.range):l.range).end,oe=uYe(Y,t);oe?$.insertNodeBefore(u.file,oe,he,!0):$.insertNodeAtEndOfScope(u.file,t,he),m.writeFixes($);const fe=[],Ne=aYe(t,l,A);ve&&O.unshift(w.createIdentifier("this"));let pe=w.createCallExpression(ve?w.createPropertyAccessExpression(Ne,"call"):Ne,se,O);if(l.facts&2&&(pe=w.createYieldExpression(w.createToken(42),pe)),l.facts&4&&(pe=w.createAwaitExpression(pe)),ape(e)&&(pe=w.createJsxExpression(void 0,pe)),s.length&&!U)if(N.assert(!ne,"Expected no returnValueProperty"),N.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const De=s[0];fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(cl(De.name),void 0,cl(De.type),pe)],De.parent.flags)))}else{const De=[],Pe=[];let We=s[0].parent.flags,At=!1;for(const je of s){De.push(w.createBindingElement(void 0,void 0,cl(je.name)));const at=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(je)),t,1);Pe.push(w.createPropertySignature(void 0,je.symbol.name,void 0,at)),At=At||je.type!==void 0,We=We&je.parent.flags}const Se=At?w.createTypeLiteralNode(Pe):void 0;Se&&pr(Se,1),fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(w.createObjectBindingPattern(De),void 0,Se,pe)],We)))}else if(s.length||U){if(s.length)for(const Pe of s){let We=Pe.parent.flags;We&2&&(We=We&-3|1),fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(Pe.symbol.name,void 0,Ee(Pe.type))],We)))}ne&&fe.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(ne,void 0,Ee(M))],1)));const De=ope(s,U);ne&&De.unshift(w.createShorthandPropertyAssignment(ne)),De.length===1?(N.assert(!ne,"Shouldn't have returnValueProperty here"),fe.push(w.createExpressionStatement(w.createAssignment(De[0].name,pe))),l.facts&1&&fe.push(w.createReturnStatement())):(fe.push(w.createExpressionStatement(w.createAssignment(w.createObjectLiteralExpression(De),pe))),ne&&fe.push(w.createReturnStatement(w.createIdentifier(ne))))}else l.facts&1?fe.push(w.createReturnStatement(pe)):ev(l.range)?fe.push(w.createExpressionStatement(pe)):fe.push(pe);ev(l.range)?$.replaceNodeRangeWithNodes(u.file,Ha(l.range),Ya(l.range),fe):$.replaceNodeWithNodes(u.file,l.range,fe);const ie=$.getChanges(),Me=(ev(l.range)?Ha(l.range):l.range).getSourceFile().fileName,Ue=mO(ie,Me,A,!1);return{renameFilename:Me,renameLocation:Ue,edits:ie};function Ee(De){if(De===void 0)return;const Pe=cl(De);let We=Pe;for(;zS(We);)We=We.type;return Qv(We)&&An(We.types,At=>At.kind===157)?Pe:w.createUnionTypeNode([Pe,w.createKeywordTypeNode(157)])}}function nYe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Wr(e)&&!ui(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ji(e.name)&&!c0(e.name)?e.name.text:sT(ui(t)?"newProperty":"newLocal",l),p=lr(t);let h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=lYe(hs(e),r);({variableType:h,initializer:m}=M(h,m)),Tp(m);const v=_r.ChangeTracker.fromContext(o);if(ui(t)){N.assert(!p,"Cannot extract to a JS class");const C=[];C.push(w.createModifier(123)),i&32&&C.push(w.createModifier(126)),C.push(w.createModifier(148));const O=w.createPropertyDeclaration(C,u,void 0,h,m);let U=w.createPropertyAccessExpression(i&32?w.createIdentifier(t.name.getText()):w.createThis(),w.createIdentifier(u));ape(e)&&(U=w.createJsxExpression(void 0,U));const K=e.pos,Z=dYe(K,t);v.insertNodeBefore(o.file,Z,O,!0),v.replaceNode(o.file,e,U)}else{const C=w.createVariableDeclaration(u,void 0,h,m),O=rYe(e,t);if(O){v.insertNodeBefore(o.file,O,C);const U=w.createIdentifier(u);v.replaceNode(o.file,e,U)}else if(e.parent.kind===244&&t===Gn(e,rpe)){const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2));v.replaceNode(o.file,e.parent,U)}else{const U=w.createVariableStatement(void 0,w.createVariableDeclarationList([C],2)),K=pYe(e,t);if(K.pos===0?v.insertNodeAtTopOfFile(o.file,U,!1):v.insertNodeBefore(o.file,K,U,!1),e.parent.kind===244)v.delete(o.file,e.parent);else{let Z=w.createIdentifier(u);ape(e)&&(Z=w.createJsxExpression(void 0,Z)),v.replaceNode(o.file,e,Z)}}}const A=v.getChanges(),I=e.getSourceFile().fileName,R=mO(A,I,u,!0);return{renameFilename:I,renameLocation:R,edits:A};function M(C,O){if(C===void 0)return{variableType:C,initializer:O};if(!Os(O)&&!Gs(O)||O.typeParameters)return{variableType:C,initializer:O};const U=s.getTypeAtLocation(e),K=ah(s.getSignaturesOfType(U,0));if(!K)return{variableType:C,initializer:O};if(K.getTypeParameters())return{variableType:C,initializer:O};const Z=[];let V=!1;for(const se of O.parameters)if(se.type)Z.push(se);else{const G=s.getTypeAtLocation(se);G===s.getAnyType()&&(V=!0),Z.push(w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,se.questionToken,se.type||s.typeToTypeNode(G,t,1),se.initializer))}if(V)return{variableType:C,initializer:O};if(C=void 0,Gs(O))O=w.updateArrowFunction(O,Cm(e)?PE(e):void 0,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(K&&K.thisParameter){const se=Xc(Z);if(!se||Ve(se.name)&&se.name.escapedText!=="this"){const G=s.getTypeOfSymbolAtLocation(K.thisParameter,e);Z.splice(0,0,w.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}O=w.updateFunctionExpression(O,Cm(e)?PE(e):void 0,O.asteriskToken,O.name,O.typeParameters,Z,O.type||s.typeToTypeNode(K.getReturnType(),t,1),O.body)}return{variableType:C,initializer:O}}}function rYe(e,t){let r;for(;e!==void 0&&e!==t;){if(wi(e)&&e.initializer===r&&Uc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function iYe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos0;if(Xo(e)&&!s&&i.size===0)return{body:w.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const p=w.createNodeArray(Xo(e)?e.statements.slice(0):[qi(e)?e:w.createReturnStatement(hs(e))]);if(s||i.size){const m=Vn(p,h,qi).slice();if(s&&!o&&qi(e)){const v=ope(t,r);v.length===1?m.push(w.createReturnStatement(v[0].name)):m.push(w.createReturnStatement(w.createObjectLiteralExpression(v)))}return{body:w.createBlock(m,!0),returnValueProperty:l}}else return{body:w.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!u&&Dm(m)&&s){const v=ope(t,r);return m.expression&&(l||(l="__return"),v.unshift(w.createPropertyAssignment(l,nt(m.expression,h,vt)))),v.length===1?w.createReturnStatement(v[0].name):w.createReturnStatement(w.createObjectLiteralExpression(v))}else{const v=u;u=u||Bs(m)||ui(m);const A=i.get(as(m).toString()),I=A?cl(A):In(m,h,void 0);return u=v,I}}}function lYe(e,t){return t.size?r(e):e;function r(i){const o=t.get(as(i).toString());return o?cl(o):In(i,r,void 0)}}function cYe(e){if(Bs(e)){const t=e.body;if(Xo(t))return t.statements}else{if(O_(e)||$i(e))return e.statements;if(ui(e))return e.members}return et}function uYe(e,t){return An(cYe(t),r=>r.pos>=e&&Bs(r)&&!Ml(r))}function dYe(e,t){const r=t.members;N.assert(r.length>0,"Found no members");let i,o=!0;for(const 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?N.fail():i}function pYe(e,t){N.assert(!ui(t));let r;for(let i=e;i!==t;i=i.parent)rpe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(uCe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&XR(i)?(N.assert(bP(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):N.checkDefined(o,"prevStatement failed to get set")}N.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function ope(e,t){const r=Ot(e,o=>w.createShorthandPropertyAssignment(o.symbol.name)),i=Ot(t,o=>w.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function ev(e){return To(e)}function fYe(e,t){return ev(e.range)?{pos:Ha(e.range).getStart(t),end:Ya(e.range).getEnd()}:e.range}function mYe(e,t,r,i,o,s){const l=new Map,u=[],p=[],h=[],m=[],v=[],A=new Map,I=[];let R;const M=ev(e.range)?e.range.length===1&&eu(e.range[0])?e.range[0].expression:void 0:e.range;let C;if(M===void 0){const oe=e.range,fe=Ha(oe).getStart(),Ne=Ya(oe).end;C=Qc(i,fe,Ne-fe,Tu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(C=kr(M,Tu.uselessConstantType));for(const oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);const fe=[];C&&fe.push(C),ui(oe)&&lr(oe)&&fe.push(kr(oe,Tu.cannotExtractToJSClass)),Gs(oe)&&!Xo(oe.body)&&fe.push(kr(oe,Tu.cannotExtractToExpressionArrowFunction)),m.push(fe)}const O=new Map,U=ev(e.range)?w.createBlock(e.range):e.range,K=ev(e.range)?Ha(e.range):e.range,Z=V(K);if(G(U),Z&&!ev(e.range)&&!F_(e.range)){const oe=o.getContextualType(e.range);se(oe)}if(l.size>0){const oe=new Map;let fe=0;for(let Ne=K;Ne!==void 0&&fe{u[fe].typeParameterUsages.set(ie,pe)}),fe++),hj(Ne))for(const pe of kv(Ne)){const ie=o.getTypeAtLocation(pe);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}N.assert(fe===t.length,"Should have iterated all scopes")}if(v.length){const oe=_j(t[0],t[0].parent)?t[0]:_h(t[0]);Ho(oe,ve)}for(let oe=0;oe0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){const ie=ev(e.range)?e.range[0]:e.range;m[oe].push(kr(ie,Tu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ui(t[oe])&&h[oe].push(kr(e.thisNode,Tu.cannotExtractFunctionsContainingThisToMethod));let Ne=!1,pe;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ne=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&hp(ie.symbol.valueDeclaration,8)&&(pe=ie.symbol.valueDeclaration))}),N.assert(ev(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ne&&!ev(e.range)){const ie=kr(e.range,Tu.cannotWriteInExpression);h[oe].push(ie),m[oe].push(ie)}else if(pe&&oe>0){const ie=kr(pe,Tu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[oe].push(ie),m[oe].push(ie)}else if(R){const ie=kr(R,Tu.cannotExtractExportedEntity);h[oe].push(ie),m[oe].push(ie)}}return{target:U,usagesPerScope:u,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:I};function V(oe){return!!Gn(oe,fe=>hj(fe)&&kv(fe).length!==0)}function se(oe){const fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ne}=fe.walkType(oe);for(const pe of Ne)pe.isTypeParameter()&&l.set(pe.id.toString(),pe)}function G(oe,fe=1){if(Z){const Ne=o.getTypeAtLocation(oe);se(Ne)}if(Ju(oe)&&oe.symbol&&v.push(oe),Lc(oe))G(oe.left,2),G(oe.right);else if(Ire(oe))G(oe.operand,2);else if(Wr(oe)||Qs(oe))Ho(oe,G);else if(Ve(oe)){if(!oe.parent||Id(oe.parent)&&oe!==oe.parent.left||Wr(oe.parent)&&oe!==oe.parent.expression)return;ne(oe,fe,eg(oe))}else Ho(oe,G)}function ne(oe,fe,Ne){const pe=he(oe,fe,Ne);if(pe)for(let ie=0;ie=fe)return ie;if(O.set(ie,fe),ye){for(const Ee of u)Ee.usages.get(oe.text)&&Ee.usages.set(oe.text,{usage:fe,symbol:pe,node:oe});return ie}const Me=pe.getDeclarations(),Ue=Me&&An(Me,Ee=>Ee.getSourceFile()===i);if(Ue&&!nO(r,Ue.getStart(),Ue.end)){if(e.facts&2&&fe===2){const Ee=kr(oe,Tu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const De of h)De.push(Ee);for(const De of m)De.push(Ee)}for(let Ee=0;Eepe.symbol===fe);if(Ne)if(wi(Ne)){const pe=Ne.symbol.id.toString();A.has(pe)||(I.push(Ne),A.set(pe,!0))}else R=R||Ne}Ho(oe,ve)}function $(oe){return oe.parent&&rp(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function Y(oe,fe,Ne){if(!oe)return;const pe=oe.getDeclarations();if(pe&&pe.some(ye=>ye.parent===fe))return w.createIdentifier(oe.name);const ie=Y(oe.parent,fe,Ne);if(ie!==void 0)return Ne?w.createQualifiedName(ie,w.createIdentifier(oe.name)):w.createPropertyAccessExpression(ie,oe.name)}}function _Ye(e){return Gn(e,t=>t.parent&&cCe(t)&&!mr(t.parent))}function cCe(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function uCe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function ape(e){return spe(e)||(ug(e)||HS(e)||a1(e))&&(ug(e.parent)||a1(e.parent))}function spe(e){return Ma(e)&&e.parent&&F_(e.parent)}var kD,wD,OD,Tu,lpe,hYe=T({"src/services/refactors/extractSymbol.ts"(){si(),Rh(),kD="Extract Symbol",wD={name:"Extract Constant",description:Wo(f.Extract_constant),kind:"refactor.extract.constant"},OD={name:"Extract Function",description:Wo(f.Extract_function),kind:"refactor.extract.function"},pg(kD,{kinds:[wD.kind,OD.kind],getEditsForAction:lCe,getAvailableActions:sCe}),(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")})(Tu||(Tu={})),lpe=(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))(lpe||{})}}),dCe={};X(dCe,{Messages:()=>Tu,RangeFacts:()=>lpe,getRangeToExtract:()=>npe,getRefactorActionsToExtractSymbol:()=>sCe,getRefactorEditsToExtractSymbol:()=>lCe});var gYe=T({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){hYe()}}),X5,RY,DY,yYe=T({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){si(),Rh(),X5="Generate 'get' and 'set' accessors",RY=Wo(f.Generate_get_and_set_accessors),DY={name:X5,description:RY,kind:"refactor.rewrite.property.generateAccessors"},pg(X5,{kinds:[DY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);N.assert(i&&!qg(i),"Expected applicable refactor info");const o=Fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ve(l)?0:-1)+mO(o,s,l.text,Ao(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;const t=Fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?qg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:X5,description:RY,actions:[{...DY,notApplicableReason:t.error}]}]:et:[{name:X5,description:RY,actions:[DY]}]:et}})}}),vYe={},bYe=T({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){yYe()}});function EYe(e){const t=pCe(e);if(t&&!qg(t))return{renameFilename:void 0,renameLocation:void 0,edits:_r.ChangeTracker.with(e,i=>TYe(e.file,i,t.declaration,t.returnTypeNode))}}function SYe(e){const t=pCe(e);return t?qg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Y5,description:NY,actions:[{...$5,notApplicableReason:t.error}]}]:et:[{name:Y5,description:NY,actions:[$5]}]:et}function TYe(e,t,r,i){const o=ys(r,22,e),s=Gs(r)&&o===void 0,l=s?Ha(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,w.createToken(21)),t.insertNodeAfter(e,l,w.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function pCe(e){if(lr(e.file)||!F0($5.kind,e.kind))return;const t=Vd(e.file,e.startPosition),r=Gn(t,l=>Xo(l)||l.parent&&Gs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":AYe(l));if(!r||!r.body||r.type)return{error:Wo(f.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=IYe(i,r);if(!o)return{error:Wo(f.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function AYe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function IYe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Hi(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var Y5,NY,$5,xYe=T({"src/services/refactors/inferFunctionReturnType.ts"(){si(),Rh(),Y5="Infer function return type",NY=Wo(f.Infer_function_return_type),$5={name:Y5,description:NY,kind:"refactor.rewrite.function.returnType"},pg(Y5,{kinds:[$5.kind],getEditsForAction:EYe,getAvailableActions:SYe})}}),RYe={},DYe=T({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){xYe()}}),LI={};X(LI,{addExportToChanges:()=>Fde,addExports:()=>kde,addNewFileToTsconfig:()=>Nde,addOrRemoveBracesToArrowFunction:()=>VKe,containsJsx:()=>Bde,convertArrowFunctionOrFunctionExpression:()=>eXe,convertParamsToDestructuredObject:()=>vXe,convertStringOrTemplateLiteral:()=>NXe,convertToOptionalChainExpression:()=>VXe,createNewFileName:()=>zde,createOldFileImportsFromTargetFile:()=>Lde,deleteMovedStatements:()=>B5,deleteUnusedImports:()=>wde,deleteUnusedOldImports:()=>Cde,doChangeNamedToNamespaceOrDefault:()=>bNe,extractSymbol:()=>dCe,filterImport:()=>DO,forEachImportInStatement:()=>RO,generateGetAccessorAndSetAccessor:()=>vYe,getApplicableRefactors:()=>BJe,getEditsForRefactor:()=>GJe,getStatementsToMove:()=>NO,getTopLevelDeclarationStatement:()=>mY,getUsageInfo:()=>V5,inferFunctionReturnType:()=>RYe,isRefactorErrorInfo:()=>qg,isTopLevelDeclaration:()=>j5,makeImportOrRequire:()=>G5,moduleSpecifierFromImport:()=>xO,nameOfTopLevelDeclaration:()=>Wde,refactorKindBeginsWith:()=>F0,registerRefactor:()=>pg,updateImportsInOtherFiles:()=>Pde});var Rh=T({"src/services/_namespaces/ts.refactor.ts"(){mNe(),KJe(),ZJe(),sKe(),lKe(),uKe(),mKe(),wKe(),jKe(),tXe(),bXe(),CXe(),jXe(),gYe(),bYe(),DYe()}});function fCe(e,t,r,i){const o=cpe(e,t,r,i);N.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function CYe(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!s4(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;const h=l;if((ug(p)||HS(p))&&(l=!0),SP(p)&&(l=!1),Ve(p)&&!l&&!kYe(p)&&!rP(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let v=PYe(m,rT(p));if(v!==void 0){let A=0;p.parent&&(Qa(p.parent)||fpe.get(p.parent.kind)===v)&&p.parent.name===p&&(A=1),v===6&&_Ce(p)&&(v=9),v=MYe(s,p,v);const I=m.valueDeclaration;if(I){const R=l0(I),M=Ly(I);R&256&&(A|=2),R&1024&&(A|=4),v!==0&&v!==2&&(R&8||M&2||m.getFlags()&8)&&(A|=8),(v===7||v===10)&&LYe(I,t)&&(A|=32),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(A|=16)}else m.declarations&&m.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(A|=16);i(p,v,A)}}}Ho(p,u),l=h}u(t)}function PYe(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Qa(i)&&(i=mCe(i)),i&&fpe.get(i.kind)}function MYe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const 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)||wYe(t))return r===9?11:10}}return r}function LYe(e,t){return Qa(e)&&(e=mCe(e)),wi(e)?(!$i(e.parent.parent.parent)||l1(e.parent))&&e.getSourceFile()===t:Ac(e)?!$i(e.parent)&&e.getSourceFile()===t:!1}function mCe(e){for(;;)if(Qa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function kYe(e){const t=e.parent;return t&&(Eh(t)||np(t)||nb(t))}function wYe(e){for(;_Ce(e);)e=e.parent;return sa(e.parent)&&e.parent.expression===e}function _Ce(e){return Id(e.parent)&&e.parent.right===e||Wr(e.parent)&&e.parent.name===e}var upe,dpe,ppe,fpe,hCe=T({"src/services/classifier2020.ts"(){si(),upe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(upe||{}),dpe=(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))(dpe||{}),ppe=(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))(ppe||{}),fpe=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 gCe(e,t,r,i){const o=sL(e)?new kY(e,t,r):e===80?new OY(80,t,r):e===81?new WY(81,t,r):new gpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function OYe(e,t){if(!sL(e.kind))return et;const r=[];if(T4(e))return e.forEachChild(l=>{r.push(l)}),r;Qu.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{Q5(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{Q5(r,i,l.pos,e),r.push(WYe(l,e)),i=l.end};return Xe(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),Q5(r,i,e.end,e),Qu.setText(void 0),r}function Q5(e,t,r,i){for(Qu.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function CY(e,t){if(!e)return et;let r=B0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(yCe))){const i=new Set;for(const o of e){const s=vCe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function Z5(e,t){if(!e)return et;let r=B0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(yCe))){const i=new Set;for(const o of e){const s=vCe(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(ND(),r))}}return r}function vCe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;const s=fc(t);return qt(NC(o),l=>{const u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function FYe(){return{getNodeConstructor:()=>kY,getTokenConstructor:()=>gpe,getIdentifierConstructor:()=>OY,getPrivateIdentifierConstructor:()=>WY,getSourceFileConstructor:()=>ICe,getSymbolConstructor:()=>SCe,getTypeConstructor:()=>TCe,getSignatureConstructor:()=>ACe,getSourceMapSourceConstructor:()=>xCe}}function wO(e){let t=!0;for(const i in e)if(xs(e,i)&&!bCe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(xs(e,i)){const o=bCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function bCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function OO(e){return e?Ot(e,t=>t.text).join(""):""}function ez(){return{target:1,jsx:1}}function PY(){return Fu.getSupportedErrorCodes()}function ECe(e,t,r){e.version=r,e.scriptSnapshot=t}function tz(e,t,r,i,o,s){const l=iw(e,xD(t),r,o,s);return ECe(l,t,i),l}function MY(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Kl(i.span)!==e.text.length?e.text.substr(Kl(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{const m=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+m+p:u?u+m:m+p}const h=UH(e,l,i,o);return ECe(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return tz(e.fileName,t,s,r,!0,e.scriptKind)}function mpe(e,t=$ue(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;const s=new RCe(e);let l,u,p=0;const h=e.getCancellationToken?new NCe(e.getCancellationToken()):DCe,m=e.getCurrentDirectory();goe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function v(L){e.log&&e.log(L)}const A=NR(e),I=Mu(A),R=dde({useCaseSensitiveFileNames:()=>A,getCurrentDirectory:()=>m,getProgram:U,fileExists:ia(e,e.fileExists),readFile:ia(e,e.readFile),getDocumentPositionMapper:ia(e,e.getDocumentPositionMapper),getSourceFileLike:ia(e,e.getSourceFileLike),log:v});function M(L){const _e=l.getSourceFile(L);if(!_e){const J=new Error(`Could not find source file: '${L}'.`);throw J.ProgramFiles=l.getSourceFiles().map(me=>me.fileName),J}return _e}function C(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():O()}function O(){var L,_e,J;if(N.assert(o!==2),e.getProjectVersion){const Lo=e.getProjectVersion();if(Lo){if(u===Lo&&!((L=e.hasChangedAutomaticTypeDirectiveNames)!=null&&L.call(e)))return;u=Lo}}const me=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==me&&(v("TypeRoots version has changed; provide new program"),l=void 0,p=me);const Ge=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||ez(),Tt=e.hasInvalidatedResolutions||Xm,kt=ia(e,e.hasInvalidatedLibResolutions)||Xm,en=ia(e,e.hasChangedAutomaticTypeDirectiveNames),bn=(_e=e.getProjectReferences)==null?void 0:_e.call(e);let Bn,Hn={getSourceFile:Fs,getSourceFileByPath:Ql,getCancellationToken:()=>h,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>A,getNewLine:()=>Gy(ke),getDefaultLibFileName:Lo=>e.getDefaultLibFileName(Lo),writeFile:$a,getCurrentDirectory:()=>m,fileExists:Lo=>e.fileExists(Lo),readFile:Lo=>e.readFile&&e.readFile(Lo),getSymlinkCache:ia(e,e.getSymlinkCache),realpath:ia(e,e.realpath),directoryExists:Lo=>$m(Lo,e),getDirectories:Lo=>e.getDirectories?e.getDirectories(Lo):[],readDirectory:(Lo,cs,Vs,yl,uu)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Lo,cs,Vs,yl,uu)),onReleaseOldSourceFile:Dn,onReleaseParsedCommandLine:xo,hasInvalidatedResolutions:Tt,hasInvalidatedLibResolutions:kt,hasChangedAutomaticTypeDirectiveNames:en,trace:ia(e,e.trace),resolveModuleNames:ia(e,e.resolveModuleNames),getModuleResolutionCache:ia(e,e.getModuleResolutionCache),createHash:ia(e,e.createHash),resolveTypeReferenceDirectives:ia(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ia(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ia(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ia(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ia(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Ii,jsDocParsingMode:e.jsDocParsingMode};const Ni=Hn.getSourceFile,{getSourceFileWithCache:Ai}=Ww(Hn,Lo=>ol(Lo,m,I),(...Lo)=>Ni.call(Hn,...Lo));Hn.getSourceFile=Ai,(J=e.setCompilerHost)==null||J.call(e,Hn);const ir={useCaseSensitiveFileNames:A,fileExists:Lo=>Hn.fileExists(Lo),readFile:Lo=>Hn.readFile(Lo),directoryExists:Lo=>Hn.directoryExists(Lo),getDirectories:Lo=>Hn.getDirectories(Lo),realpath:Hn.realpath,readDirectory:(...Lo)=>Hn.readDirectory(...Lo),trace:Hn.trace,getCurrentDirectory:Hn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:$a},Vr=t.getKeyForCompilationSettings(ke);let yo=new Set;if(CJ(l,Ge,ke,(Lo,cs)=>e.getScriptVersion(cs),Lo=>Hn.fileExists(Lo),Tt,kt,en,Ii,bn)){Hn=void 0,Bn=void 0,yo=void 0;return}l=f7({rootNames:Ge,options:ke,host:Hn,oldProgram:l,projectReferences:bn}),Hn=void 0,Bn=void 0,yo=void 0,R.clearCache(),l.getTypeChecker();return;function Ii(Lo){const cs=ol(Lo,m,I),Vs=Bn?.get(cs);if(Vs!==void 0)return Vs||void 0;const yl=e.getParsedCommandLine?e.getParsedCommandLine(Lo):Jr(Lo);return(Bn||(Bn=new Map)).set(cs,yl||!1),yl}function Jr(Lo){const cs=Fs(Lo,100);if(cs)return cs.path=ol(Lo,m,I),cs.resolvedPath=cs.path,cs.originalFileName=cs.fileName,cw(cs,ir,go(ai(Lo),m),void 0,go(Lo,m))}function xo(Lo,cs,Vs){var yl;e.getParsedCommandLine?(yl=e.onReleaseParsedCommandLine)==null||yl.call(e,Lo,cs,Vs):cs&&Dn(cs.sourceFile,Vs)}function Dn(Lo,cs){const Vs=t.getKeyForCompilationSettings(cs);t.releaseDocumentWithKey(Lo.resolvedPath,Vs,Lo.scriptKind,Lo.impliedNodeFormat)}function Fs(Lo,cs,Vs,yl){return Ql(Lo,ol(Lo,m,I),cs,Vs,yl)}function Ql(Lo,cs,Vs,yl,uu){N.assert(Hn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const ho=e.getScriptSnapshot(Lo);if(!ho)return;const pa=hX(Lo,e),du=e.getScriptVersion(Lo);if(!uu){const As=l&&l.getSourceFileByPath(cs);if(As){if(pa===As.scriptKind||yo.has(As.resolvedPath))return t.updateDocumentWithKey(Lo,cs,e,Vr,ho,du,pa,Vs);t.releaseDocumentWithKey(As.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),As.scriptKind,As.impliedNodeFormat),yo.add(As.resolvedPath)}}return t.acquireDocumentWithKey(Lo,cs,e,Vr,ho,du,pa,Vs)}}function U(){if(o===2){N.assert(l===void 0);return}return C(),l}function K(){var L;return(L=e.getPackageJsonAutoImportProvider)==null?void 0:L.call(e)}function Z(L,_e){const J=l.getTypeChecker(),me=Ge();if(!me)return!1;for(const Tt of L)for(const kt of Tt.references){const en=ke(kt);if(N.assertIsDefined(en),_e.has(kt)||Ws.isDeclarationOfSymbol(en,me)){_e.add(kt),kt.isDefinition=!0;const bn=l5(kt,R,ia(e,e.fileExists));bn&&_e.add(bn)}else kt.isDefinition=!1}return!0;function Ge(){for(const Tt of L)for(const kt of Tt.references){if(_e.has(kt)){const bn=ke(kt);return N.assertIsDefined(bn),J.getSymbolAtLocation(bn)}const en=l5(kt,R,ia(e,e.fileExists));if(en&&_e.has(en)){const bn=ke(en);if(bn)return J.getSymbolAtLocation(bn)}}}function ke(Tt){const kt=l.getSourceFile(Tt.fileName);if(!kt)return;const en=Vd(kt,Tt.textSpan.start);return Ws.Core.getAdjustedNode(en,{use:Ws.FindReferencesUse.References})}}function V(){if(l){const L=t.getKeyForCompilationSettings(l.getCompilerOptions());Xe(l.getSourceFiles(),_e=>t.releaseDocumentWithKey(_e.resolvedPath,L,_e.scriptKind,_e.impliedNodeFormat)),l=void 0}}function se(){V(),e=void 0}function G(L){return C(),l.getSyntacticDiagnostics(M(L),h).slice()}function ne(L){C();const _e=M(L),J=l.getSemanticDiagnostics(_e,h);if(!Nf(l.getCompilerOptions()))return J.slice();const me=l.getDeclarationDiagnostics(_e,h);return[...J,...me]}function he(L){return C(),KX(M(L),l,h)}function ve(){return C(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function $(L,_e,J=kf,me){const Ge={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return C(),zI.getCompletionsAtPosition(e,l,v,M(L),_e,Ge,J.triggerCharacter,J.triggerKind,h,me&&Oc.getFormatContext(me,e),J.includeSymbol)}function Y(L,_e,J,me,Ge,ke=kf,Tt){return C(),zI.getCompletionEntryDetails(l,v,M(L),_e,{name:J,source:Ge,data:Tt},e,me&&Oc.getFormatContext(me,e),ke,h)}function oe(L,_e,J,me,Ge=kf){return C(),zI.getCompletionEntrySymbol(l,v,M(L),_e,{name:J,source:me},e,Ge)}function fe(L,_e){C();const J=M(L),me=Vd(J,_e);if(me===J)return;const Ge=l.getTypeChecker(),ke=Ne(me),Tt=VYe(ke,Ge);if(!Tt||Ge.isUnknownSymbol(Tt)){const Hn=pe(J,ke,_e)?Ge.getTypeAtLocation(ke):void 0;return Hn&&{kind:"",kindModifiers:"",textSpan:Dd(ke,J),displayParts:Ge.runWithCancellationToken(h,Ni=>pO(Ni,Hn,iT(ke))),documentation:Hn.symbol?Hn.symbol.getDocumentationComment(Ge):void 0,tags:Hn.symbol?Hn.symbol.getJsDocTags(Ge):void 0}}const{symbolKind:kt,displayParts:en,documentation:bn,tags:Bn}=Ge.runWithCancellationToken(h,Hn=>tv.getSymbolDisplayPartsDocumentationAndSymbolKind(Hn,Tt,J,iT(ke),ke));return{kind:kt,kindModifiers:tv.getSymbolModifiers(Ge,Tt),textSpan:Dd(ke,J),displayParts:en,documentation:bn,tags:Bn}}function Ne(L){return n1(L.parent)&&L.pos===L.parent.pos?L.parent.expression:HR(L.parent)&&L.pos===L.parent.pos||uR(L.parent)&&L.parent.name===L||t_(L.parent)?L.parent:L}function pe(L,_e,J){switch(_e.kind){case 80:return!WK(_e)&&!FK(_e)&&!Lg(_e.parent);case 211:case 166:return!Xy(L,J);case 110:case 197:case 108:case 202:return!0;case 236:return uR(_e);default:return!1}}function ie(L,_e,J,me){return C(),jD.getDefinitionAtPosition(l,M(L),_e,J,me)}function ye(L,_e){return C(),jD.getDefinitionAndBoundSpan(l,M(L),_e)}function Me(L,_e){return C(),jD.getTypeDefinitionAtPosition(l.getTypeChecker(),M(L),_e)}function Ue(L,_e){return C(),Ws.getImplementationsAtPosition(l,h,l.getSourceFiles(),M(L),_e)}function Ee(L,_e,J){const me=ga(L);N.assert(J.some(Tt=>ga(Tt)===me)),C();const Ge=Hi(J,Tt=>l.getSourceFile(Tt)),ke=M(L);return C5.getDocumentHighlights(l,h,ke,_e,Ge)}function De(L,_e,J,me,Ge){C();const ke=M(L),Tt=K7(Vd(ke,_e));if(Dz.nodeIsEligibleForRename(Tt))if(Ve(Tt)&&(W_(Tt.parent)||o1(Tt.parent))&&RR(Tt.escapedText)){const{openingElement:kt,closingElement:en}=Tt.parent.parent;return[kt,en].map(bn=>{const Bn=Dd(bn.tagName,ke);return{fileName:ke.fileName,textSpan:Bn,...Ws.toContextSpan(Bn,ke,bn.parent)}})}else{const kt=uf(ke,Ge??kf),en=typeof Ge=="boolean"?Ge:Ge?.providePrefixAndSuffixTextForRename;return We(Tt,_e,{findInStrings:J,findInComments:me,providePrefixAndSuffixTextForRename:en,use:Ws.FindReferencesUse.Rename},(bn,Bn,Hn)=>Ws.toRenameLocation(bn,Bn,Hn,en||!1,kt))}}function Pe(L,_e){return C(),We(Vd(M(L),_e),_e,{use:Ws.FindReferencesUse.References},Ws.toReferenceEntry)}function We(L,_e,J,me){C();const Ge=J&&J.use===Ws.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Ws.findReferenceOrRenameEntries(l,h,Ge,L,_e,J,me)}function At(L,_e){return C(),Ws.findReferencedSymbols(l,h,l.getSourceFiles(),M(L),_e)}function Se(L){return C(),Ws.Core.getReferencesForFileName(L,l,l.getSourceFiles()).map(Ws.toReferenceEntry)}function je(L,_e,J,me=!1,Ge=!1){C();const ke=J?[M(J)]:l.getSourceFiles();return jDe(ke,l.getTypeChecker(),h,L,_e,me,Ge)}function at(L,_e,J){C();const me=M(L),Ge=e.getCustomTransformers&&e.getCustomTransformers();return ace(l,me,!!_e,h,Ge,J)}function Gt(L,_e,{triggerReason:J}=kf){C();const me=M(L);return QO.getSignatureHelpItems(l,me,_e,J,h)}function yt(L){return s.getCurrentSourceFile(L)}function $e(L,_e,J){const me=s.getCurrentSourceFile(L),Ge=Vd(me,_e);if(Ge===me)return;switch(Ge.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 ke=Ge;for(;;)if(TD(ke)||aue(ke))ke=ke.parent;else if(BK(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return dc(ke.getStart(),Ge.getEnd())}function It(L,_e){const J=s.getCurrentSourceFile(L);return zY.spanInSourceFileAtLocation(J,_e)}function tn(L){return JDe(s.getCurrentSourceFile(L),h)}function rn(L){return KDe(s.getCurrentSourceFile(L),h)}function Pn(L,_e,J){return C(),(J||"original")==="2020"?fCe(l,h,M(L),_e):Xue(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),_e)}function Xn(L,_e,J){return C(),(J||"original")==="original"?GX(l.getTypeChecker(),h,M(L),l.getClassifiableNames(),_e):cpe(l,h,M(L),_e)}function hn(L,_e){return Yue(h,s.getCurrentSourceFile(L),_e)}function Qt(L,_e){return VX(h,s.getCurrentSourceFile(L),_e)}function $t(L){const _e=s.getCurrentSourceFile(L);return wQ.collectElements(_e,h)}const _i=new Map(Object.entries({19:20,21:22,23:24,32:30}));_i.forEach((L,_e)=>_i.set(L.toString(),Number(_e)));function ao(L,_e){const J=s.getCurrentSourceFile(L),me=ID(J,_e),Ge=me.getStart(J)===_e?_i.get(me.kind.toString()):void 0,ke=Ge&&ys(me.parent,Ge,J);return ke?[Dd(me,J),Dd(ke,J)].sort((Tt,kt)=>Tt.start-kt.start):et}function Oi(L,_e,J){let me=Ys();const Ge=wO(J),ke=s.getCurrentSourceFile(L);v("getIndentationAtPosition: getCurrentSourceFile: "+(Ys()-me)),me=Ys();const Tt=Oc.SmartIndenter.getIndentation(_e,ke,Ge);return v("getIndentationAtPosition: computeIndentation : "+(Ys()-me)),Tt}function No(L,_e,J,me){const Ge=s.getCurrentSourceFile(L);return Oc.formatSelection(_e,J,Ge,Oc.getFormatContext(wO(me),e))}function Mn(L,_e){return Oc.formatDocument(s.getCurrentSourceFile(L),Oc.getFormatContext(wO(_e),e))}function Di(L,_e,J,me){const Ge=s.getCurrentSourceFile(L),ke=Oc.getFormatContext(wO(me),e);if(!Xy(Ge,_e))switch(J){case"{":return Oc.formatOnOpeningCurly(_e,Ge,ke);case"}":return Oc.formatOnClosingCurly(_e,Ge,ke);case";":return Oc.formatOnSemicolon(_e,Ge,ke);case` `:return Oc.formatOnEnter(_e,Ge,ke)}return[]}function Ar(L,_e,J,me,Ge,ke=kf){C();const Tt=M(L),kt=dc(_e,J),en=Oc.getFormatContext(Ge,e);return Pi(RE(me,Ny,rl),bn=>(h.throwIfCancellationRequested(),Fu.getFixes({errorCode:bn,sourceFile:Tt,span:kt,program:l,host:e,cancellationToken:h,formatContext:en,preferences:ke})))}function sn(L,_e,J,me=kf){C(),N.assert(L.type==="file");const Ge=M(L.fileName),ke=Oc.getFormatContext(J,e);return Fu.getAllFixes({fixId:_e,sourceFile:Ge,program:l,host:e,cancellationToken:h,formatContext:ke,preferences:me})}function tt(L,_e,J=kf){C(),N.assert(L.type==="file");const me=M(L.fileName),Ge=Oc.getFormatContext(_e,e),ke=L.mode??(L.skipDestructiveCodeActions?"SortAndCombine":"All");return Lm.organizeImports(me,Ge,e,l,J,ke)}function Bt(L,_e,J,me=kf){return Zue(U(),L,_e,e,Oc.getFormatContext(J,e),me,R)}function Rn(L,_e){const J=typeof L=="string"?_e:L;return To(J)?Promise.all(J.map(me=>li(me))):li(J)}function li(L){const _e=J=>ol(J,m,I);return N.assertEqual(L.type,"install package"),e.installPackage?e.installPackage({fileName:_e(L.file),packageName:L.packageName}):Promise.reject("Host does not implement `installPackage`")}function hi(L,_e,J,me){const Ge=me?Oc.getFormatContext(me,e).options:void 0;return B0.getDocCommentTemplateAtPosition(Qy(e,Ge),s.getCurrentSourceFile(L),_e,J)}function Qi(L,_e,J){if(J===60)return!1;const me=s.getCurrentSourceFile(L);if(DI(me,_e))return!1;if(fue(me,_e))return J===123;if(qK(me,_e))return!1;switch(J){case 39:case 34:case 96:return!Xy(me,_e)}return!0}function Io(L,_e){const J=s.getCurrentSourceFile(L),me=xc(_e,J);if(!me)return;const Ge=me.kind===32&&W_(me.parent)?me.parent.parent:eI(me)&&ug(me.parent)?me.parent:void 0;if(Ge&&ft(Ge))return{newText:``};const ke=me.kind===32&&mI(me.parent)?me.parent.parent:eI(me)&&a1(me.parent)?me.parent:void 0;if(ke&&Ct(ke))return{newText:""}}function ma(L,_e){const J=s.getCurrentSourceFile(L),me=xc(_e,J);if(!me||me.parent.kind===312)return;const Ge="[a-zA-Z0-9:\\-\\._$]*";if(a1(me.parent.parent)){const ke=me.parent.parent.openingFragment,Tt=me.parent.parent.closingFragment;if(oR(ke)||oR(Tt))return;const kt=ke.getStart(J)+1,en=Tt.getStart(J)+2;return _e!==kt&&_e!==en?void 0:{ranges:[{start:kt,length:0},{start:en,length:0}],wordPattern:Ge}}else{const ke=Gn(me.parent,Ai=>!!(W_(Ai)||o1(Ai)));if(!ke)return;N.assert(W_(ke)||o1(ke),"tag should be opening or closing element");const Tt=ke.parent.openingElement,kt=ke.parent.closingElement,en=Tt.tagName.getStart(J),bn=Tt.tagName.end,Bn=kt.tagName.getStart(J),Hn=kt.tagName.end;return en===Tt.getStart(J)||Bn===kt.getStart(J)||bn===Tt.getEnd()||Hn===kt.getEnd()||!(en<=_e&&_e<=bn||Bn<=_e&&_e<=Hn)||Tt.tagName.getText(J)!==kt.tagName.getText(J)?void 0:{ranges:[{start:en,length:bn-en},{start:Bn,length:Hn-Bn}],wordPattern:Ge}}}function Wa(L,_e){return{lineStarts:L.getLineStarts(),firstLine:L.getLineAndCharacterOfPosition(_e.pos).line,lastLine:L.getLineAndCharacterOfPosition(_e.end).line}}function Sn(L,_e,J){const me=s.getCurrentSourceFile(L),Ge=[],{lineStarts:ke,firstLine:Tt,lastLine:kt}=Wa(me,_e);let en=J||!1,bn=Number.MAX_VALUE;const Bn=new Map,Hn=new RegExp(/\S/),Ni=$7(me,ke[Tt]),Ai=Ni?"{/*":"//";for(let ir=Tt;ir<=kt;ir++){const Vr=me.text.substring(ke[ir],me.getLineEndOfPosition(ke[ir])),yo=Hn.exec(Vr);yo&&(bn=Math.min(bn,yo.index),Bn.set(ir.toString(),yo.index),Vr.substr(yo.index,Ai.length)!==Ai&&(en=J===void 0||J))}for(let ir=Tt;ir<=kt;ir++){if(Tt!==kt&&ke[ir]===_e.end)continue;const Vr=Bn.get(ir.toString());Vr!==void 0&&(Ni?Ge.push(...kn(L,{pos:ke[ir]+bn,end:me.getLineEndOfPosition(ke[ir])},en,Ni)):en?Ge.push({newText:Ai,span:{length:0,start:ke[ir]+bn}}):me.text.substr(ke[ir]+Vr,Ai.length)===Ai&&Ge.push({newText:"",span:{length:Ai.length,start:ke[ir]+Vr}}))}return Ge}function kn(L,_e,J,me){var Ge;const ke=s.getCurrentSourceFile(L),Tt=[],{text:kt}=ke;let en=!1,bn=J||!1;const Bn=[];let{pos:Hn}=_e;const Ni=me!==void 0?me:$7(ke,Hn),Ai=Ni?"{/*":"/*",ir=Ni?"*/}":"*/",Vr=Ni?"\\{\\/\\*":"\\/\\*",yo=Ni?"\\*\\/\\}":"\\*\\/";for(;Hn<=_e.end;){const Ci=kt.substr(Hn,Ai.length)===Ai?Ai.length:0,Ii=Xy(ke,Hn+Ci);if(Ii)Ni&&(Ii.pos--,Ii.end++),Bn.push(Ii.pos),Ii.kind===3&&Bn.push(Ii.end),en=!0,Hn=Ii.end+1;else{const Jr=kt.substring(Hn,_e.end).search(`(${Vr})|(${yo})`);bn=J!==void 0?J:bn||!Iue(kt,Hn,Jr===-1?_e.end:Hn+Jr),Hn=Jr===-1?_e.end+1:Hn+Jr+ir.length}}if(bn||!en){((Ge=Xy(ke,_e.pos))==null?void 0:Ge.kind)!==2&&xv(Bn,_e.pos,rl),xv(Bn,_e.end,rl);const Ci=Bn[0];kt.substr(Ci,Ai.length)!==Ai&&Tt.push({newText:Ai,span:{length:0,start:Ci}});for(let Ii=1;Ii0?Ci-ir.length:0,Jr=kt.substr(Ii,ir.length)===ir?ir.length:0;Tt.push({newText:"",span:{length:Ai.length,start:Ci-Jr}})}return Tt}function He(L,_e){const J=s.getCurrentSourceFile(L),{firstLine:me,lastLine:Ge}=Wa(J,_e);return me===Ge&&_e.pos!==_e.end?kn(L,_e,!0):Sn(L,_e,!0)}function mt(L,_e){const J=s.getCurrentSourceFile(L),me=[],{pos:Ge}=_e;let{end:ke}=_e;Ge===ke&&(ke+=$7(J,Ge)?2:1);for(let Tt=Ge;Tt<=ke;Tt++){const kt=Xy(J,Tt);if(kt){switch(kt.kind){case 2:me.push(...Sn(L,{end:kt.end,pos:kt.pos+1},!1));break;case 3:me.push(...kn(L,{end:kt.end,pos:kt.pos+1},!1))}Tt=kt.end+1}}return me}function ft({openingElement:L,closingElement:_e,parent:J}){return!N0(L.tagName,_e.tagName)||ug(J)&&N0(L.tagName,J.openingElement.tagName)&&ft(J)}function Ct({closingFragment:L,parent:_e}){return!!(L.flags&262144)||a1(_e)&&Ct(_e)}function le(L,_e,J){const me=s.getCurrentSourceFile(L),Ge=Oc.getRangeOfEnclosingComment(me,_e);return Ge&&(!J||Ge.kind===3)?sb(Ge):void 0}function Fe(L,_e){C();const J=M(L);h.throwIfCancellationRequested();const me=J.text,Ge=[];if(_e.length>0&&!en(J.fileName)){const bn=Tt();let Bn;for(;Bn=bn.exec(me);){h.throwIfCancellationRequested();const Hn=3;N.assert(Bn.length===_e.length+Hn);const Ni=Bn[1],Ai=Bn.index+Ni.length;if(!Xy(J,Ai))continue;let ir;for(let yo=0;yo<_e.length;yo++)Bn[yo+Hn]&&(ir=_e[yo]);if(ir===void 0)return N.fail();if(kt(me.charCodeAt(Ai+ir.text.length)))continue;const Vr=Bn[2];Ge.push({descriptor:ir,message:Vr,position:Ai})}}return Ge;function ke(bn){return bn.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tt(){const bn=/(?:\/\/+\s*)/.source,Bn=/(?:\/\*+\s*)/.source,Ni="("+/(?:^(?:\s|\*)*)/.source+"|"+bn+"|"+Bn+")",Ai="(?:"+Ot(_e,Ii=>"("+ke(Ii.text)+")").join("|")+")",ir=/(?:$|\*\/)/.source,Vr=/(?:.*?)/.source,yo="("+Ai+Vr+")",Ci=Ni+yo+ir;return new RegExp(Ci,"gim")}function kt(bn){return bn>=97&&bn<=122||bn>=65&&bn<=90||bn>=48&&bn<=57}function en(bn){return bn.includes("/node_modules/")}}function pt(L,_e,J){return C(),Dz.getRenameInfo(l,M(L),_e,J||{})}function j(L,_e,J,me,Ge,ke){const[Tt,kt]=typeof _e=="number"?[_e,void 0]:[_e.pos,_e.end];return{file:L,startPosition:Tt,endPosition:kt,program:U(),host:e,formatContext:Oc.getFormatContext(me,e),cancellationToken:h,preferences:J,triggerReason:Ge,kind:ke}}function ot(L,_e,J){return{file:L,program:U(),host:e,span:_e,preferences:J,cancellationToken:h}}function Rt(L,_e){return FQ.getSmartSelectionRange(_e,s.getCurrentSourceFile(L))}function Ye(L,_e,J=kf,me,Ge,ke){C();const Tt=M(L);return LI.getApplicableRefactors(j(Tt,_e,J,kf,me,Ge),ke)}function _t(L,_e,J=kf){C();const me=M(L),Ge=N.checkDefined(l.getSourceFiles()),ke=$C(L),Tt=NO(j(me,_e,J,kf)),kt=Bde(Tt?.all),en=Hi(Ge,bn=>{const Bn=$C(bn.fileName);return!l?.isSourceFileFromExternalLibrary(me)&&!(me===M(bn.fileName)||ke===".ts"&&Bn===".d.ts"||ke===".d.ts"&&uo(rc(bn.fileName),"lib.")&&Bn===".d.ts")&&(ke===Bn||(ke===".tsx"&&Bn===".ts"||ke===".jsx"&&Bn===".js")&&!kt)?bn.fileName:void 0});return{newFileName:zde(me,l,e,Tt),files:en}}function Vt(L,_e,J,me,Ge,ke=kf,Tt){C();const kt=M(L);return LI.getEditsForRefactor(j(kt,J,ke,_e),me,Ge,Tt)}function yn(L,_e){return _e===0?{line:0,character:0}:R.toLineColumnOffset(L,_e)}function pn(L,_e){C();const J=kI.resolveCallHierarchyDeclaration(l,Vd(M(L),_e));return J&&RX(J,me=>kI.createCallHierarchyItem(l,me))}function _n(L,_e){C();const J=M(L),me=DX(kI.resolveCallHierarchyDeclaration(l,_e===0?J:Vd(J,_e)));return me?kI.getIncomingCalls(l,me,h):[]}function q(L,_e){C();const J=M(L),me=DX(kI.resolveCallHierarchyDeclaration(l,_e===0?J:Vd(J,_e)));return me?kI.getOutgoingCalls(l,me):[]}function Oe(L,_e,J=kf){C();const me=M(L);return PQ.provideInlayHints(ot(me,_e,J))}const Lt={dispose:se,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:ne,getSuggestionDiagnostics:he,getCompilerOptionsDiagnostics:ve,getSyntacticClassifications:hn,getSemanticClassifications:Pn,getEncodedSyntacticClassifications:Qt,getEncodedSemanticClassifications:Xn,getCompletionsAtPosition:$,getCompletionEntryDetails:Y,getCompletionEntrySymbol:oe,getSignatureHelpItems:Gt,getQuickInfoAtPosition:fe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ye,getImplementationAtPosition:Ue,getTypeDefinitionAtPosition:Me,getReferencesAtPosition:Pe,findReferences:At,getFileReferences:Se,getDocumentHighlights:Ee,getNameOrDottedNameSpan:$e,getBreakpointStatementAtPosition:It,getNavigateToItems:je,getRenameInfo:pt,getSmartSelectionRange:Rt,findRenameLocations:De,getNavigationBarItems:tn,getNavigationTree:rn,getOutliningSpans:$t,getTodoComments:Fe,getBraceMatchingAtPosition:ao,getIndentationAtPosition:Oi,getFormattingEditsForRange:No,getFormattingEditsForDocument:Mn,getFormattingEditsAfterKeystroke:Di,getDocCommentTemplateAtPosition:hi,isValidBraceCompletionAtPosition:Qi,getJsxClosingTagAtPosition:Io,getLinkedEditingRangeAtPosition:ma,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Ar,getCombinedCodeFix:sn,applyCodeActionCommand:Rn,organizeImports:tt,getEditsForFileRename:Bt,getEmitOutput:at,getNonBoundSourceFile:yt,getProgram:U,getCurrentProgram:()=>l,getAutoImportProvider:K,updateIsDefinitionOfReferencedSymbols:Z,getApplicableRefactors:Ye,getEditsForRefactor:Vt,getMoveToRefactoringFileSuggestions:_t,toLineColumnOffset:yn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:pn,provideCallHierarchyIncomingCalls:_n,provideCallHierarchyOutgoingCalls:q,toggleLineComment:Sn,toggleMultilineComment:kn,commentSelection:He,uncommentSelection:mt,provideInlayHints:Oe,getSupportedCodeFixes:PY};switch(o){case 0:break;case 1:ype.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:CCe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(o)}return Lt}function LY(e){return e.nameTable||zYe(e),e.nameTable}function zYe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ve(i)&&!FK(i)&&i.escapedText||nf(i)&&BYe(i)){const o=MC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ji(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Ho(i,r),Fp(i))for(const o of i.jsDoc)Ho(o,r)})}function BYe(e){return Wg(e)||e.parent.kind===283||jYe(e)||$L(e)}function WO(e){const t=GYe(e);return t&&(Oa(t.parent)||s1(t.parent))?t:void 0}function GYe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return ZV(e.parent.parent)?e.parent.parent:void 0;case 80:return ZV(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function VYe(e,t){const r=WO(e);if(r){const i=t.getContextualType(r.parent),o=i&&nz(r,t,i,!1);if(o&&o.length===1)return Ha(o)}return t.getSymbolAtLocation(e)}function nz(e,t,r,i){const o=cO(e.name);if(!o)return et;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:et}const s=Oa(e.parent)||s1(e.parent)?nr(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Hi(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Hi(r.types,u=>u.getProperty(o)):RE(l,Ny)}function jYe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function _pe(e){if(gu)return Qr(ai(ga(gu.getExecutingFilePath())),Z2(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var hpe,kY,wY,SCe,gpe,OY,WY,TCe,ACe,ICe,xCe,RCe,DCe,NCe,FY,ype,CCe,UYe=T({"src/services/services.ts"(){si(),qDe(),fNe(),Rh(),SDe(),hCe(),hpe="0.8",kY=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){N.assert(!Zm(this.pos)&&!Zm(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return jn(this)}getStart(e,t){return this.assertHasRealPosition(),m0(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=OYe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=An(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=tl(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Ho(this,e,t)}},wY=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 jn(this)}getStart(e,t){return m0(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||et}getFirstToken(){}getLastToken(){}forEachChild(){}},SCe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Sl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&fh(this)&&this.links.target&&fh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Z5([t],e)}else this.documentationComment=Z5(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Fv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Z5(nr(this.declarations,Fv),t)),Le(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(wy(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Z5(nr(this.declarations,wy),t)),Le(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=CY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Fv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=CY(nr(this.declarations,Fv),t)),Le(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(wy(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=CY(nr(this.declarations,wy),t)),Le(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},gpe=class extends wY{constructor(e,t,r){super(t,r),this.kind=e}},OY=class extends wY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return Sr(this)}},OY.prototype.kind=80,WY=class extends wY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return Sr(this)}},WY.prototype.kind=81,TCe=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!!(Or(this)&3)}isClass(){return!!(Or(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Or(this)&4)return this.checker.getTypeArguments(this)}},ACe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&iP(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Z5(SA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=CY(SA(this.declaration),this.checker))}},ICe=class extends kY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return UH(this,e,t)}getLineAndCharacterOfPosition(e){return bs(this,e)}getLineStarts(){return Pg(this)}getPositionOfLineAndCharacter(e,t,r){return r4(Pg(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===` `&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Zp();return this.forEachChild(o),e;function t(s){const 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){const l=l4(s);return l&&(Za(l)&&Wr(l.expression)?l.expression.name.text:ic(l)?cO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:const l=s,u=i(l);if(u){const m=r(u),v=tl(m);v&&l.parent===v.parent&&l.symbol===v.symbol?l.body&&!v.body&&(m[m.length-1]=l):m.push(l)}Ho(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),Ho(s,o);break;case 169:if(!Zr(s,31))break;case 260:case 208:{const m=s;if(ta(m.name)){Ho(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:const p=s;p.exportClause&&(Pf(p.exportClause)?Xe(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:const h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):Xe(h.namedBindings.elements,o)));break;case 226:Bl(s)!==0&&t(s);default:Ho(s,o)}}}},xCe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return bs(this,e)}},RCe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;const h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");const m=hX(e,this.host),v=this.host.getScriptVersion(e);let A;if(this.currentFileName!==e){const I={languageVersion:99,impliedNodeFormat:Bw(ol(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Fy(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:fk(this.host.getCompilationSettings()),jsDocParsingMode:0};A=tz(e,h,I,v,!0,m)}else if(this.currentFileVersion!==v){const I=h.getChangeRange(this.currentFileScriptSnapshot);A=MY(this.currentSourceFile,h,v,I)}return A&&(this.currentFileVersion=v,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=A),this.currentSourceFile}},DCe={isCancellationRequested:Xm,throwIfCancellationRequested:$a},NCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=sr)==null||e.instant(sr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Ux}},FY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Ys();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=sr)==null||e.instant(sr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Ux}},ype=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],CCe=[...ype,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],_oe(FYe())}});function PCe(e,t,r){const i=[];r=ZX(r,i);const o=To(e)?e:[e],s=Pw(void 0,void 0,w,r,o,t,!0);return s.diagnostics=So(s.diagnostics,i),s}var HYe=T({"src/services/transform.ts"(){si()}});function qYe(e,t){if(e.isDeclarationFile)return;let r=po(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const v=xc(r.pos,e);if(!v||e.getLineAndCharacterOfPosition(v.getEnd()).line!==i)return;r=v}if(r.flags&33554432)return;return m(r);function o(v,A){const I=YS(v)?Oo(v.modifiers,Eu):void 0,R=I?ka(e.text,I.end):v.getStart(e);return dc(R,(A||v).getEnd())}function s(v,A){return o(v,v1(A,A.parent,e))}function l(v,A){return v&&i===e.getLineAndCharacterOfPosition(v.getStart(e)).line?m(v):m(A)}function u(v,A,I){if(v){const R=v.indexOf(A);if(R>=0){let M=R,C=R+1;for(;M>0&&I(v[M-1]);)M--;for(;C0)return m(ye.declarations[0])}else return m(ie.initializer)}function V(ie){if(ie.initializer)return Z(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function se(ie){const ye=Xe(ie.elements,Me=>Me.kind!==232?Me:void 0);return ye?m(ye):ie.parent.kind===208?o(ie.parent):A(ie.parent)}function G(ie){N.assert(ie.kind!==207&&ie.kind!==206);const ye=ie.kind===209?ie.elements:ie.properties,Me=Xe(ye,Ue=>Ue.kind!==232?Ue:void 0);return Me?m(Me):o(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:const ye=ie.parent;return l(xc(ie.pos,e,ie.parent),ye.members.length?ye.members[0]:ye.getLastToken(e));case 263:const Me=ie.parent;return l(xc(ie.pos,e,ie.parent),Me.members.length?Me.members[0]:Me.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return m(ie.parent)}function he(ie){switch(ie.parent.kind){case 268:if(Hg(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(zE(ie.parent))return o(ie);case 299:return m(tl(ie.parent.statements));case 269:const ye=ie.parent,Me=tl(ye.clauses);return Me?m(tl(Me.statements)):void 0;case 206:const Ue=ie.parent;return m(tl(Ue.elements)||Ue);default:if(Yy(ie.parent)){const Ee=ie.parent;return o(tl(Ee.properties)||Ee)}return m(ie.parent)}}function ve(ie){switch(ie.parent.kind){case 207:const ye=ie.parent;return o(tl(ye.elements)||ye);default:if(Yy(ie.parent)){const Me=ie.parent;return o(tl(Me.elements)||Me)}return m(ie.parent)}}function $(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?h(ie):m(ie.parent)}function Y(ie){switch(ie.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(ie);default:return m(ie.parent)}}function oe(ie){return ea(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):m(ie.parent)}function fe(ie){return ie.parent.kind===216?h(ie):m(ie.parent)}function Ne(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):m(ie.parent)}function pe(ie){return ie.parent.kind===250?h(ie):m(ie.parent)}}}var JYe=T({"src/services/breakpoints.ts"(){si()}}),zY={};X(zY,{spanInSourceFileAtLocation:()=>qYe});var KYe=T({"src/services/_namespaces/ts.BreakpointResolver.ts"(){JYe()}});function XYe(e){return(Os(e)||Zc(e))&&sd(e)}function MCe(e){return Jo(e)||wi(e)}function FO(e){return(Os(e)||Gs(e)||Zc(e))&&MCe(e.parent)&&e===e.parent.initializer&&Ve(e.parent.name)&&(!!(Ly(e.parent)&2)||Jo(e.parent))}function LCe(e){return $i(e)||Xl(e)||Ac(e)||Os(e)||Ic(e)||Zc(e)||Rl(e)||ql(e)||vh(e)||rf(e)||vp(e)}function WD(e){return $i(e)||Xl(e)&&Ve(e.name)||Ac(e)||Ic(e)||Rl(e)||ql(e)||vh(e)||rf(e)||vp(e)||XYe(e)||FO(e)}function kCe(e){return $i(e)?e:sd(e)?e.name:FO(e)?e.parent.name:N.checkDefined(e.modifiers&&An(e.modifiers,wCe))}function wCe(e){return e.kind===90}function OCe(e,t){const r=kCe(t);return r&&e.getSymbolAtLocation(r)}function YYe(e,t){if($i(t))return{text:t.fileName,pos:0,end:0};if((Ac(t)||Ic(t))&&!sd(t)){const o=t.modifiers&&An(t.modifiers,wCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Rl(t)){const o=t.getSourceFile(),s=ka(o.text,L_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent);return{text:`${p?`${u.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}const r=FO(t)?t.parent.name:N.checkDefined(Mo(t),"Expected call hierarchy item to have a name");let i=Ve(r)?Sr(r):nf(r)?r.text:Za(r)&&nf(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=Lw();i=yC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function $Ye(e){var t,r,i,o;if(FO(e))return Jo(e.parent)&&ui(e.parent.parent)?Zc(e.parent.parent)?(t=c4(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():O_(e.parent.parent.parent.parent)&&Ve(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=c4(e.parent))==null?void 0:i.getText():(o=Mo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(O_(e.parent)&&Ve(e.parent.parent.name))return e.parent.parent.name.getText()}}function WCe(e,t){if(t.body)return t;if(Ml(t))return og(t.parent);if(Ac(t)||ql(t)){const r=OCe(e,t);return r&&r.valueDeclaration&&Bs(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function FCe(e,t){const r=OCe(e,t);let i;if(r&&r.declarations){const o=N2(r.declarations),s=Ot(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>Uu(s[p].file,s[h].file)||s[p].pos-s[h].pos);const l=Ot(o,p=>r.declarations[p]);let u;for(const p of l)WD(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=xn(i,p)),u=p)}return i}function BY(e,t){return Rl(t)?t:Bs(t)?WCe(e,t)??FCe(e,t)??t:FCe(e,t)??t}function zCe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(WD(t))return BY(r,t);if(LCe(t)){const o=Gn(t,WD);return o&&BY(r,o)}if(Wg(t)){if(WD(t.parent))return BY(r,t.parent);if(LCe(t.parent)){const o=Gn(t.parent,WD);return o&&BY(r,o)}return MCe(t.parent)&&t.parent.initializer&&FO(t.parent.initializer)?t.parent.initializer:void 0}if(Ml(t))return WD(t.parent)?t.parent:void 0;if(t.kind===126&&Rl(t.parent)){t=t.parent;continue}if(wi(t)&&t.initializer&&FO(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 vpe(e,t){const r=t.getSourceFile(),i=YYe(e,t),o=$Ye(t),s=y1(t),l=iM(t),u=dc(ka(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=dc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function QYe(e){return e!==void 0}function ZYe(e){if(e.kind===Ws.EntryKind.Node){const{node:t}=e;if(kK(t,!0,!0)||nue(t,!0,!0)||rue(t,!0,!0)||iue(t,!0,!0)||TD(t)||zK(t)){const r=t.getSourceFile();return{declaration:Gn(t,WD)||r,range:eX(t,r)}}}}function BCe(e){return as(e.declaration)}function e$e(e,t){return{from:e,fromSpans:t}}function t$e(e,t){return e$e(vpe(e,t[0].declaration),Ot(t,r=>sb(r.range)))}function n$e(e,t,r){if($i(t)||Xl(t)||Rl(t))return[];const i=kCe(t),o=nr(Ws.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ws.FindReferencesUse.References},ZYe),QYe);return o?XN(o,BCe,s=>t$e(e,s)):[]}function r$e(e,t){function r(o){const s=r1(o)?o.tag:cd(o)?o.tagName:ws(o)||Rl(o)?o:o.expression,l=zCe(e,s);if(l){const u=eX(s,o.getSourceFile());if(To(l))for(const p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(WD(o)){if(ui(o))for(const s of o.members)s.name&&Za(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),Xe(o.arguments,i);return;case 214:r(o),i(o.expression),Xe(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),Ho(o,i);break;case 238:i(o.expression);return}eg(o)||Ho(o,i)}}return i}function i$e(e,t){Xe(e.statements,t)}function o$e(e,t){!Zr(e,128)&&e.body&&O_(e.body)&&Xe(e.body.statements,t)}function a$e(e,t,r){const i=WCe(e,t);i&&(Xe(i.parameters,r),r(i.body))}function s$e(e,t){t(e.body)}function l$e(e,t){Xe(e.modifiers,t);const r=jE(e);r&&t(r.expression);for(const i of e.members)Cm(i)&&Xe(i.modifiers,t),Jo(i)?t(i.initializer):Ml(i)&&i.body?(Xe(i.parameters,t),t(i.body)):Rl(i)&&t(i)}function c$e(e,t){const r=[],i=r$e(e,r);switch(t.kind){case 312:i$e(t,i);break;case 267:o$e(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:a$e(e.getTypeChecker(),t,i);break;case 263:case 231:l$e(t,i);break;case 175:s$e(t,i);break;default:N.assertNever(t)}return r}function u$e(e,t){return{to:e,fromSpans:t}}function d$e(e,t){return u$e(vpe(e,t[0].declaration),Ot(t,r=>sb(r.range)))}function p$e(e,t){return t.flags&33554432||vh(t)?[]:XN(c$e(e,t),BCe,r=>d$e(e,r))}var f$e=T({"src/services/callHierarchy.ts"(){si()}}),kI={};X(kI,{createCallHierarchyItem:()=>vpe,getIncomingCalls:()=>n$e,getOutgoingCalls:()=>p$e,resolveCallHierarchyDeclaration:()=>zCe});var m$e=T({"src/services/_namespaces/ts.CallHierarchy.ts"(){f$e()}}),GCe={};X(GCe,{TokenEncodingConsts:()=>upe,TokenModifier:()=>ppe,TokenType:()=>dpe,getEncodedSemanticClassifications:()=>cpe,getSemanticClassifications:()=>fCe});var _$e=T({"src/services/_namespaces/ts.classifier.v2020.ts"(){hCe()}}),bpe={};X(bpe,{v2020:()=>GCe});var h$e=T({"src/services/_namespaces/ts.classifier.ts"(){_$e()}});function o_(e,t,r){return Spe(e,lT(r),t,void 0,void 0)}function la(e,t,r,i,o,s){return Spe(e,lT(r),t,i,lT(o),s)}function Epe(e,t,r,i,o,s){return Spe(e,lT(r),t,i,o&&lT(o),s)}function Spe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Aa(e){for(const t of e.errorCodes)Tpe=void 0,GY.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)N.assert(!VY.has(t)),VY.set(t,e)}function g$e(){return Tpe??(Tpe=zo(GY.keys()))}function y$e(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Nr(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function v$e(e){const t=jCe(e),r=GY.get(String(e.errorCode));return Pi(r,i=>Ot(i.getCodeActions(e),y$e(i,t)))}function b$e(e){return VY.get(oa(e.fixId,Po)).getAllCodeActions(e)}function FD(e,t){return{changes:e,commands:t}}function VCe(e,t){return{fileName:e,textChanges:t}}function Es(e,t,r){const i=[],o=_r.ChangeTracker.with(e,s=>zD(e,t,l=>r(s,l,i)));return FD(o,i.length===0?void 0:i)}function zD(e,t,r){for(const i of jCe(e))Nr(t,i.code)&&r(i)}function jCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...KX(t,e,r)]}var GY,VY,Tpe,E$e=T({"src/services/codeFixProvider.ts"(){si(),GY=Zp(),VY=new Map}});function UCe(e,t,r){const i=Uk(r)?w.createAsExpression(r.expression,w.createKeywordTypeNode(159)):w.createTypeAssertion(w.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function HCe(e,t){if(!lr(e))return Gn(po(e,t),r=>Uk(r)||Eae(r))}var jY,Ape,S$e=T({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){si(),xa(),jY="addConvertToUnknownForNonOverlappingTypes",Ape=[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],Aa({errorCodes:Ape,getCodeActions:function(t){const r=HCe(t.sourceFile,t.span.start);if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>UCe(o,t.sourceFile,r));return[la(jY,i,f.Add_unknown_conversion_for_non_overlapping_types,jY,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[jY],getAllCodeActions:e=>Es(e,Ape,(t,r)=>{const i=HCe(r.file,r.start);i&&UCe(t,r.file,i)})})}}),T$e=T({"src/services/codefixes/addEmptyExportDeclaration.ts"(){si(),xa(),Aa({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){const{sourceFile:r}=t,i=_r.ChangeTracker.with(t,o=>{const s=w.createExportDeclaration(void 0,!1,w.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[o_("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function qCe(e,t,r,i){const o=r(s=>A$e(s,e.sourceFile,t,i));return la(UY,o,f.Add_async_modifier_to_containing_function,UY,f.Add_all_missing_async_modifiers)}function A$e(e,t,r,i){if(i&&i.has(as(r)))return;i?.add(as(r));const o=w.replaceModifiers(cl(r,!0),w.createNodeArray(w.createModifiersFromModifierFlags(Uv(r)|1024)));e.replaceNode(t,r,o)}function JCe(e,t){if(!t)return;const r=po(e,t.start);return Gn(r,o=>o.getStart(e)Kl(t)?"quit":(Gs(o)||ql(o)||Os(o)||Ac(o))&&DD(t,Dd(o,e)))}function I$e(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Ry(r)&&Ry(i)&&DD({start:r,length:i},e)&&s===t&&!!o&&bt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var UY,Ipe,x$e=T({"src/services/codefixes/addMissingAsync.ts"(){si(),xa(),UY="addMissingAsync",Ipe=[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],Aa({fixIds:[UY],errorCodes:Ipe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=An(s.getTypeChecker().getDiagnostics(r,o),I$e(l,i)),p=u&&u.relatedInformation&&An(u.relatedInformation,v=>v.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=JCe(r,p);return h?[qCe(t,h,v=>_r.ChangeTracker.with(t,v))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Es(e,Ipe,(i,o)=>{const s=o.relatedInformation&&An(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=JCe(t,s);return l?qCe(e,l,p=>(p(i),[]),r):void 0})}})}});function KCe(e,t,r,i,o){const s=xX(e,r);return s&&R$e(e,t,r,i,o)&&$Ce(s)?s:void 0}function XCe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:p}=e,h=D$e(t,l,p,u,i);if(h){const m=o(v=>{Xe(h.initializers,({expression:A})=>xpe(v,r,l,i,A,s)),s&&h.needsSecondPassForFixAll&&xpe(v,r,l,i,t,s)});return o_("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function YCe(e,t,r,i,o,s){const l=o(u=>xpe(u,r,e.sourceFile,i,t,s));return la(HY,l,f.Add_await,HY,f.Fix_all_expressions_possibly_missing_await)}function R$e(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return bt(l,({start:u,length:p,relatedInformation:h,code:m})=>Ry(u)&&Ry(p)&&DD({start:u,length:p},r)&&m===t&&!!h&&bt(h,v=>v.code===f.Did_you_forget_to_use_await.code))}function D$e(e,t,r,i,o){const s=N$e(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const p of s.identifiers){const h=o.getSymbolAtLocation(p);if(!h)continue;const m=ii(h.valueDeclaration,wi),v=m&&ii(m.name,Ve),A=v0(m,243);if(!m||!A||m.type||!m.initializer||A.getSourceFile()!==t||Zr(A,32)||!v||!$Ce(m.initializer)){l=!1;continue}const I=i.getSemanticDiagnostics(t,r);if(Ws.Core.eachSymbolReferenceInFile(v,o,t,M=>p!==M&&!C$e(M,I,t,o))){l=!1;continue}(u||(u=[])).push({expression:m.initializer,declarationSymbol:h})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function N$e(e,t){if(Wr(e.parent)&&Ve(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ve(e))return{identifiers:[e],isCompleteFix:!0};if(mr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Ve(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function C$e(e,t,r,i){const o=Wr(e.parent)?e.parent.name:mr(e.parent)?e.parent:e,s=An(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Nr(qY,s.code)||i.getTypeAtLocation(o).flags&1}function $Ce(e){return e.flags&65536||!!Gn(e,t=>t.parent&&Gs(t.parent)&&t.parent.body===t||Xo(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function xpe(e,t,r,i,o,s){if(Hk(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const p=o.parent;e.replaceNode(r,p,w.updateForOfStatement(p,w.createToken(135),p.initializer,p.expression,p.statement));return}}if(mr(o))for(const l of[o.left,o.right]){if(s&&Ve(l)){const h=i.getSymbolAtLocation(l);if(h&&s.has(Ta(h)))continue}const u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?w.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===Rpe&&Wr(o.parent)){if(s&&Ve(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,w.createParenthesizedExpression(w.createAwaitExpression(o.parent.expression))),QCe(e,o.parent.expression,r)}else if(Nr(Dpe,t)&&I_(o.parent)){if(s&&Ve(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,w.createParenthesizedExpression(w.createAwaitExpression(o))),QCe(e,o,r)}else{if(s&&wi(o.parent)&&Ve(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Ay(s,Ta(l)))return}e.replaceNode(r,o,w.createAwaitExpression(o))}}function QCe(e,t,r){const i=xc(t.pos,r);i&&_5(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var HY,Rpe,Dpe,qY,P$e=T({"src/services/codefixes/addMissingAwait.ts"(){si(),xa(),HY="addMissingAwait",Rpe=f.Property_0_does_not_exist_on_type_1.code,Dpe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],qY=[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,Rpe,...Dpe],Aa({fixIds:[HY],errorCodes:qY,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=KCe(r,i,o,s,l);if(!u)return;const p=t.program.getTypeChecker(),h=m=>_r.ChangeTracker.with(t,m);return C2([XCe(t,u,i,p,h),YCe(t,u,i,p,h)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Es(e,qY,(l,u)=>{const p=KCe(t,u.code,u,i,r);if(!p)return;const h=m=>(m(l),[]);return XCe(e,p,u.code,o,h,s)||YCe(e,p,u.code,o,h,s)})}})}});function ZCe(e,t,r,i,o){const s=po(t,r),l=Gn(s,h=>tR(h.parent)?h.parent.initializer===h:M$e(h)?!1:"quit");if(l)return JY(e,l,t,o);const u=s.parent;if(mr(u)&&u.operatorToken.kind===64&&eu(u.parent))return JY(e,s,t,o);if(md(u)){const h=i.getTypeChecker();return Zn(u.elements,m=>L$e(m,h))?JY(e,u,t,o):void 0}const p=Gn(s,h=>eu(h.parent)?!0:k$e(h)?!1:"quit");if(p){const h=i.getTypeChecker();return ePe(p,h)?JY(e,p,t,o):void 0}}function JY(e,t,r,i){(!i||Ay(i,t))&&e.insertModifierBefore(r,87,t)}function M$e(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function L$e(e,t){const r=Ve(e)?e:Lc(e,!0)&&Ve(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function k$e(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function ePe(e,t){return mr(e)?e.operatorToken.kind===28?Zn([e.left,e.right],r=>ePe(r,t)):e.operatorToken.kind===64&&Ve(e.left)&&!t.getSymbolAtLocation(e.left):!1}var KY,Npe,w$e=T({"src/services/codefixes/addMissingConst.ts"(){si(),xa(),KY="addMissingConst",Npe=[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],Aa({errorCodes:Npe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>ZCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[la(KY,r,f.Add_const_to_unresolved_variable,KY,f.Add_const_to_all_unresolved_variables)]},fixIds:[KY],getAllCodeActions:e=>{const t=new Set;return Es(e,Npe,(r,i)=>ZCe(r,i.file,i.start,e.program,t))}})}});function tPe(e,t,r,i){const o=po(t,r);if(!Ve(o))return;const s=o.parent;s.kind===172&&(!i||Ay(i,s))&&e.insertModifierBefore(t,138,s)}var XY,Cpe,O$e=T({"src/services/codefixes/addMissingDeclareProperty.ts"(){si(),xa(),XY="addMissingDeclareProperty",Cpe=[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],Aa({errorCodes:Cpe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>tPe(i,t.sourceFile,t.span.start));if(r.length>0)return[la(XY,r,f.Prefix_with_declare,XY,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[XY],getAllCodeActions:e=>{const t=new Set;return Es(e,Cpe,(r,i)=>tPe(r,i.file,i.start,t))}})}});function nPe(e,t,r){const i=po(t,r),o=Gn(i,Eu);N.assert(!!o,"Expected position to be owned by a decorator.");const s=w.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var YY,Ppe,W$e=T({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){si(),xa(),YY="addMissingInvocationForDecorator",Ppe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Aa({errorCodes:Ppe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>nPe(i,t.sourceFile,t.span.start));return[la(YY,r,f.Call_decorator_expression,YY,f.Add_to_all_uncalled_decorators)]},fixIds:[YY],getAllCodeActions:e=>Es(e,Ppe,(t,r)=>nPe(t,r.file,r.start))})}});function rPe(e,t,r){const i=po(t,r),o=i.parent;if(!Ao(o))return N.fail("Tried to add a parameter name to a non-parameter: "+N.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);N.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),N.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=w.createTypeReferenceNode(o.name,void 0),p=iPe(t,o);for(;p;)u=w.createArrayTypeNode(u),l=p.getEnd(),p=iPe(t,p);const h=w.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Vk(u)?w.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,xf(o.getStart(t),l),h)}function iPe(e,t){const r=v1(t.name,t.parent,e);if(r&&r.kind===23&&t1(r.parent)&&Ao(r.parent.parent))return r.parent.parent}var $Y,Mpe,F$e=T({"src/services/codefixes/addNameToNamelessParameter.ts"(){si(),xa(),$Y="addNameToNamelessParameter",Mpe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Aa({errorCodes:Mpe,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>rPe(i,t.sourceFile,t.span.start));return[la($Y,r,f.Add_parameter_name,$Y,f.Add_names_to_all_parameters_without_names)]},fixIds:[$Y],getAllCodeActions:e=>Es(e,Mpe,(t,r)=>rPe(t,r.file,r.start))})}});function z$e(e,t,r){var i,o;const s=oPe(xX(e,t),r);if(!s)return et;const{source:l,target:u}=s,p=B$e(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>jn(h).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function B$e(e,t,r){return Wr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function oPe(e,t){var r;if(e){if(mr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(wi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(sa(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!NA(i.valueDeclaration.kind)||!vt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(Ve(s))return{source:e,target:s}}else if(_c(e.parent)&&Ve(e.parent.name)||rp(e.parent)){const i=oPe(e.parent.parent,t);if(!i)return;const 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 G$e(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(yp(i)||Jo(i))&&i.type){const o=w.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],w.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Lpe,aPe,V$e=T({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){si(),xa(),Lpe="addOptionalPropertyUndefined",aPe=[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],Aa({errorCodes:aPe,getCodeActions(e){const t=e.program.getTypeChecker(),r=z$e(e.sourceFile,e.span,t);if(!r.length)return;const i=_r.ChangeTracker.with(e,o=>G$e(o,r));return[o_(Lpe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[Lpe]})}});function sPe(e,t){const r=po(e,t);return ii(Ao(r.parent)?r.parent.parent:r.parent,lPe)}function lPe(e){return j$e(e)&&cPe(e)}function cPe(e){return Bs(e)?e.parameters.some(cPe)||!e.type&&!!iL(e):!e.type&&!!d0(e)}function uPe(e,t,r){if(Bs(r)&&(iL(r)||r.parameters.some(i=>!!d0(i)))){if(!r.typeParameters){const o=y3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Gs(r)&&!ys(r,21,t);i&&e.insertNodeBefore(t,Ha(r.parameters),w.createToken(21));for(const o of r.parameters)if(!o.type){const s=d0(o);s&&e.tryInsertTypeAnnotation(t,o,nt(s,A1,ji))}if(i&&e.insertNodeAfter(t,Ya(r.parameters),w.createToken(22)),!r.type){const o=iL(r);o&&e.tryInsertTypeAnnotation(t,r,nt(o,A1,ji))}}else{const i=N.checkDefined(d0(r),"A JSDocType for this declaration should exist");N.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,nt(i,A1,ji))}}function j$e(e){return Bs(e)||e.kind===260||e.kind===171||e.kind===172}function A1(e){switch(e.kind){case 319:case 320:return w.createTypeReferenceNode("any",et);case 323:return H$e(e);case 322:return A1(e.type);case 321:return q$e(e);case 325:return J$e(e);case 324:return K$e(e);case 183:return Y$e(e);case 329:return U$e(e);default:const t=In(e,A1,void 0);return pr(t,1),t}}function U$e(e){const t=w.createTypeLiteralNode(Ot(e.jsDocPropertyTags,r=>w.createPropertySignature(void 0,Ve(r.name)?r.name:r.name.right,vk(r)?w.createToken(58):void 0,r.typeExpression&&nt(r.typeExpression.type,A1,ji)||w.createKeywordTypeNode(133))));return pr(t,1),t}function H$e(e){return w.createUnionTypeNode([nt(e.type,A1,ji),w.createTypeReferenceNode("undefined",et)])}function q$e(e){return w.createUnionTypeNode([nt(e.type,A1,ji),w.createTypeReferenceNode("null",et)])}function J$e(e){return w.createArrayTypeNode(nt(e.type,A1,ji))}function K$e(e){return w.createFunctionTypeNode(et,e.parameters.map(X$e),e.type??w.createKeywordTypeNode(133))}function X$e(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?w.createToken(26):e.dotDotDotToken;return w.createParameterDeclaration(e.modifiers,o,i,e.questionToken,nt(e.type,A1,ji),e.initializer)}function Y$e(e){let t=e.typeName,r=e.typeArguments;if(Ve(e.typeName)){if(Z4(e))return $$e(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=w.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=w.createNodeArray([w.createTypeReferenceNode("any",et)]):r=Vn(e.typeArguments,A1,ji)}return w.createTypeReferenceNode(t,r)}function $$e(e){const t=w.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,w.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=w.createTypeLiteralNode([w.createIndexSignature(void 0,[t],e.typeArguments[1])]);return pr(r,1),r}var QY,kpe,Q$e=T({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){si(),xa(),QY="annotateWithTypeFromJSDoc",kpe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],Aa({errorCodes:kpe,getCodeActions(e){const t=sPe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>uPe(i,e.sourceFile,t));return[la(QY,r,f.Annotate_with_type_from_JSDoc,QY,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[QY],getAllCodeActions:e=>Es(e,kpe,(t,r)=>{const i=sPe(r.file,r.start);i&&uPe(t,r.file,i)})})}});function dPe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(po(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(Ac(u)||Os(u))e.replaceNode(t,u,m(u));else if(wi(u)){const v=h(u);if(!v)return;const A=u.parent.parent;Uc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,A,v)):e.replaceNode(t,A,v)}function p(v){const A=[];return v.exports&&v.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const C=M.declarations[0];if(M.declarations.length===1&&Wr(C)&&mr(C.parent)&&C.parent.operatorToken.kind===64&&Oa(C.parent.right)){const O=C.parent.right;R(O.symbol,void 0,A)}}else R(M,[w.createToken(126)],A)}),v.members&&v.members.forEach((M,C)=>{var O,U,K,Z;if(C==="constructor"&&M.valueDeclaration){const V=(Z=(K=(U=(O=v.exports)==null?void 0:O.get("prototype"))==null?void 0:U.declarations)==null?void 0:K[0])==null?void 0:Z.parent;V&&mr(V)&&Oa(V.right)&&bt(V.right.properties,e$)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,A)}),A;function I(M,C){return ws(M)?Wr(M)&&e$(M)?!0:ea(C):Zn(M.properties,O=>!!(ql(O)||p4(O)||_c(O)&&Os(O.initializer)&&O.name||e$(O)))}function R(M,C,O){if(!(M.flags&8192)&&!(M.flags&4096))return;const U=M.valueDeclaration,K=U.parent,Z=K.right;if(!I(U,Z)||bt(O,he=>{const ve=Mo(he);return!!(ve&&Ve(ve)&&Sr(ve)===Sl(M))}))return;const V=K.parent&&K.parent.kind===244?K.parent:K;if(e.delete(t,V),!Z){O.push(w.createPropertyDeclaration(C,M.name,void 0,void 0,void 0));return}if(ws(U)&&(Os(Z)||Gs(Z))){const he=uf(t,o),ve=Z$e(U,s,he);ve&&se(O,Z,ve);return}else if(Oa(Z)){Xe(Z.properties,he=>{(ql(he)||p4(he))&&O.push(he),_c(he)&&Os(he.initializer)&&se(O,he.initializer,he.name),e$(he)});return}else{if(ud(t)||!Wr(U))return;const he=w.createPropertyDeclaration(C,U.name,void 0,void 0,Z);CD(K.parent,he,t),O.push(he);return}function se(he,ve,$){return Os(ve)?G(he,ve,$):ne(he,ve,$)}function G(he,ve,$){const Y=So(C,ZY(ve,134)),oe=w.createMethodDeclaration(Y,void 0,$,void 0,void 0,ve.parameters,void 0,ve.body);CD(K,oe,t),he.push(oe)}function ne(he,ve,$){const Y=ve.body;let oe;Y.kind===241?oe=Y:oe=w.createBlock([w.createReturnStatement(Y)]);const fe=So(C,ZY(ve,134)),Ne=w.createMethodDeclaration(fe,void 0,$,void 0,void 0,ve.parameters,void 0,oe);CD(K,Ne,t),he.push(Ne)}}}function h(v){const A=v.initializer;if(!A||!Os(A)||!Ve(v.name))return;const I=p(v.symbol);A.body&&I.unshift(w.createConstructorDeclaration(void 0,A.parameters,A.body));const R=ZY(v.parent.parent,95);return w.createClassDeclaration(R,v.name,void 0,void 0,I)}function m(v){const A=p(l);v.body&&A.unshift(w.createConstructorDeclaration(void 0,v.parameters,v.body));const I=ZY(v,95);return w.createClassDeclaration(I,v.name,void 0,void 0,A)}}function ZY(e,t){return Cm(e)?nr(e.modifiers,r=>r.kind===t):void 0}function e$(e){return e.name?!!(Ve(e.name)&&e.name.text==="constructor"):!1}function Z$e(e,t,r){if(Wr(e))return e.name;const i=e.argumentExpression;if(gp(i))return i;if(ls(i))return tf(i.text,os(t))?w.createIdentifier(i.text):tI(i)?w.createStringLiteral(i.text,r===0):i}var t$,wpe,eQe=T({"src/services/codefixes/convertFunctionToEs6Class.ts"(){si(),xa(),t$="convertFunctionToEs6Class",wpe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],Aa({errorCodes:wpe,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>dPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[la(t$,t,f.Convert_function_to_an_ES2015_class,t$,f.Convert_all_constructor_functions_to_classes)]},fixIds:[t$],getAllCodeActions:e=>Es(e,wpe,(t,r)=>dPe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function pPe(e,t,r,i){const o=po(t,r);let s;if(Ve(o)&&wi(o.parent)&&o.parent.initializer&&Bs(o.parent.initializer)?s=o.parent.initializer:s=ii(Gp(po(t,r)),$X),!s)return;const l=new Map,u=lr(s),p=nQe(s,i),h=rQe(s,i,l);if(!XX(h,i))return;const m=h.body&&Xo(h.body)?tQe(h.body,i):et,v={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!m.length)return;const A=ka(t.text,L_(s).pos);e.insertModifierAt(t,A,134,{suffix:" "});for(const I of m)if(Ho(I,function R(M){if(sa(M)){const C=BD(M,M,v,!1);if(wI())return!0;e.replaceNodeWithNodes(t,I,C)}else if(!ea(M)&&(Ho(M,R),wI()))return!0}),wI())return}function tQe(e,t){const r=[];return FE(e,i=>{M5(i,t)&&r.push(i)}),r}function nQe(e,t){if(!e.body)return new Set;const r=new Set;return Ho(e.body,function i(o){zO(o,t,"then")?(r.add(as(o)),Xe(o.arguments,i)):zO(o,t,"catch")||zO(o,t,"finally")?(r.add(as(o)),Ho(o,i)):mPe(o,t)?r.add(as(o)):Ho(o,i)}),r}function zO(e,t,r){if(!sa(e))return!1;const o=Qw(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function fPe(e,t){return(Or(e)&4)!==0&&e.target===t}function n$(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(fPe(i,r.getPromiseType())||fPe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Cy(e.arguments,0))return Cy(e.typeArguments,0);if(t===Cy(e.arguments,1))return Cy(e.typeArguments,1)}else return Cy(e.typeArguments,0)}function mPe(e,t){return vt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function rQe(e,t,r){const i=new Map,o=Zp();return Ho(e,function s(l){if(!Ve(l)){Ho(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const p=t.getTypeAtLocation(l),h=bPe(p,t),m=Ta(u).toString();if(h&&!Ao(l.parent)&&!Bs(l.parent)&&!r.has(m)){const v=Xc(h.parameters),A=v?.valueDeclaration&&Ao(v.valueDeclaration)&&ii(v.valueDeclaration.name,Ve)||w.createUniqueName("result",16),I=_Pe(A,o);r.set(m,I),o.add(A.text,u)}else if(l.parent&&(Ao(l.parent)||wi(l.parent)||Qa(l.parent))){const v=l.text,A=o.get(v);if(A&&A.some(I=>I!==u)){const I=_Pe(l,o);i.set(m,I.identifier),r.set(m,I),o.add(v,u)}else{const I=cl(l);r.set(m,gM(I)),o.add(v,u)}}}}),fO(e,!0,s=>{if(Qa(s)&&Ve(s.name)&&am(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ta(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return w.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ve(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return w.createIdentifier(u.text)}})}function _Pe(e,t){const r=(t.get(e.text)||et).length,i=r===0?e:w.createIdentifier(e.text+"_"+r);return gM(i)}function wI(){return!iz}function z0(){return iz=!1,et}function BD(e,t,r,i,o){if(zO(t,r.checker,"then"))return aQe(t,Cy(t.arguments,0),Cy(t.arguments,1),r,i,o);if(zO(t,r.checker,"catch"))return yPe(t,Cy(t.arguments,0),r,i,o);if(zO(t,r.checker,"finally"))return oQe(t,Cy(t.arguments,0),r,i,o);if(Wr(t))return BD(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(N.assertNode(Pl(t).parent,Wr),sQe(e,t,r,i,o)):z0()}function r$({checker:e},t){if(t.kind===106)return!0;if(Ve(t)&&!sl(t)&&Sr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function iQe(e){const t=w.createUniqueName(e.identifier.text,16);return gM(t)}function hPe(e,t,r){let i;return r&&!GO(e,t)&&(BO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=iQe(r);t.synthNamesMap.set(s,l)}})):i=gM(w.createUniqueName("result",16),r.types),zpe(i)),i}function gPe(e,t,r,i,o){const s=[];let l;if(i&&!GO(e,t)){l=cl(zpe(i));const u=i.types,p=t.checker.getUnionType(u,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[w.createVariableDeclaration(l,void 0,h)],v=w.createVariableStatement(void 0,w.createVariableDeclarationList(m,1));s.push(v)}return s.push(r),o&&l&&uQe(o)&&s.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(cl(APe(o)),void 0,void 0,l)],2))),s}function oQe(e,t,r,i,o){if(!t||r$(r,t))return BD(e,e.expression.expression,r,i,o);const s=hPe(e,r,o),l=BD(e,e.expression.expression,r,!0,s);if(wI())return z0();const u=Wpe(t,i,void 0,void 0,e,r);if(wI())return z0();const p=w.createBlock(l),h=w.createBlock(u),m=w.createTryStatement(p,void 0,h);return gPe(e,r,m,s,o)}function yPe(e,t,r,i,o){if(!t||r$(r,t))return BD(e,e.expression.expression,r,i,o);const s=SPe(t,r),l=hPe(e,r,o),u=BD(e,e.expression.expression,r,!0,l);if(wI())return z0();const p=Wpe(t,i,l,s,e,r);if(wI())return z0();const h=w.createBlock(u),m=w.createCatchClause(s&&cl(rz(s)),w.createBlock(p)),v=w.createTryStatement(h,m,void 0);return gPe(e,r,v,l,o)}function aQe(e,t,r,i,o,s){if(!t||r$(i,t))return yPe(e,r,i,o,s);if(r&&!r$(i,r))return z0();const l=SPe(t,i),u=BD(e.expression.expression,e.expression.expression,i,!0,l);if(wI())return z0();const p=Wpe(t,o,s,l,e,i);return wI()?z0():So(u,p)}function sQe(e,t,r,i,o){if(GO(e,r)){let s=cl(t);return i&&(s=w.createAwaitExpression(s)),[w.createReturnStatement(s)]}return i$(o,w.createAwaitExpression(t),void 0)}function i$(e,t,r){return!e||TPe(e)?[w.createExpressionStatement(t)]:BO(e)&&e.hasBeenDeclared?[w.createExpressionStatement(w.createAssignment(cl(Fpe(e)),t))]:[w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(cl(rz(e)),void 0,r,t)],2))]}function Ope(e,t){if(t&&e){const r=w.createUniqueName("result",16);return[...i$(gM(r),e,t),w.createReturnStatement(r)]}return[w.createReturnStatement(e)]}function Wpe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=w.createCallExpression(cl(e),void 0,BO(i)?[Fpe(i)]:[]);if(GO(o,s))return Ope(u,n$(o,e,s.checker));const p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return z0();const m=h[0].getReturnType(),v=i$(r,w.createAwaitExpression(u),n$(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),v;case 218:case 219:{const A=e.body,I=(l=bPe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Xo(A)){let R=[],M=!1;for(const C of A.statements)if(Dm(C))if(M=!0,M5(C,s.checker))R=R.concat(EPe(s,C,t,r));else{const O=I&&C.expression?vPe(s.checker,I,C.expression):C.expression;R.push(...Ope(O,n$(o,e,s.checker)))}else{if(t&&FE(C,Dy))return z0();R.push(C)}return GO(o,s)?R.map(C=>cl(C)):lQe(R,r,s,M)}else{const R=YX(A,s.checker)?EPe(s,w.createReturnStatement(A),t,r):et;if(R.length>0)return R;if(I){const M=vPe(s.checker,I,A);if(GO(o,s))return Ope(M,n$(o,e,s.checker));{const C=i$(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(I)||I),C}}else return z0()}}default:return z0()}return et}function vPe(e,t,r){const i=cl(r);return e.getPromisedTypeOfPromise(t)?w.createAwaitExpression(i):i}function bPe(e,t){const r=t.getSignaturesOfType(e,0);return tl(r)}function lQe(e,t,r,i){const o=[];for(const s of e)if(Dm(s)){if(s.expression){const l=mPe(s.expression,r.checker)?w.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(w.createExpressionStatement(l)):BO(t)&&t.hasBeenDeclared?o.push(w.createExpressionStatement(w.createAssignment(Fpe(t),l))):o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(rz(t),void 0,void 0,l)],2)))}}else o.push(cl(s));return!i&&t!==void 0&&o.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(rz(t),void 0,void 0,w.createIdentifier("undefined"))],2))),o}function EPe(e,t,r,i){let o=[];return Ho(t,function s(l){if(sa(l)){const u=BD(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else ea(l)||Ho(l,s)}),o}function SPe(e,t){const r=[];let i;if(Bs(e)){if(e.parameters.length>0){const p=e.parameters[0].name;i=o(p)}}else Ve(e)?i=s(e):Wr(e)&&Ve(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Ve(p))return s(p);const h=Pi(p.elements,m=>jc(m)?[]:[o(m.name)]);return cQe(p,h)}function s(p){const h=u(p),m=l(h);return m&&t.synthNamesMap.get(Ta(m).toString())||gM(p,r)}function l(p){var h;return((h=ii(p,x_))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function TPe(e){return e?BO(e)?!e.identifier.text:Zn(e.elements,TPe):!0}function gM(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function cQe(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Fpe(e){return e.hasBeenReferenced=!0,e.identifier}function rz(e){return BO(e)?zpe(e):APe(e)}function APe(e){for(const t of e.elements)rz(t);return e.bindingPattern}function zpe(e){return e.hasBeenDeclared=!0,e.identifier}function BO(e){return e.kind===0}function uQe(e){return e.kind===1}function GO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(as(e.original))}var o$,Bpe,iz,dQe=T({"src/services/codefixes/convertToAsyncFunction.ts"(){si(),xa(),o$="convertToAsyncFunction",Bpe=[f.This_may_be_converted_to_an_async_function.code],iz=!0,Aa({errorCodes:Bpe,getCodeActions(e){iz=!0;const t=_r.ChangeTracker.with(e,r=>pPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return iz?[la(o$,t,f.Convert_to_async_function,o$,f.Convert_all_to_async_functions)]:[]},fixIds:[o$],getAllCodeActions:e=>Es(e,Bpe,(t,r)=>pPe(t,r.file,r.start,e.program.getTypeChecker()))})}});function pQe(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const p=RC(l);switch(p.kind){case 271:i.replaceNode(e,p,$y(p.name,void 0,l,o));break;case 213:Td(p,!1)&&i.replaceNode(e,p,w.createPropertyAccessExpression(cl(p),"default"));break}}}function fQe(e,t,r,i,o){const s={original:xQe(e),additional:new Set},l=mQe(e,t,s);_Qe(e,l,r);let u=!1,p;for(const h of nr(e.statements,Ll)){const m=xPe(e,h,r,t,s,i,o);m&&R4(m,p??(p=new Map))}for(const h of nr(e.statements,m=>!Ll(m))){const m=hQe(e,h,t,r,s,i,l,p,o);u=u||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),u}function mQe(e,t,r){const i=new Map;return IPe(e,o=>{const{text:s}=o.name;!i.has(s)&&(Vj(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,a$(`_${s}`,r))}),i}function _Qe(e,t,r){IPe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,w.createIdentifier(t.get(s)||s))})}function IPe(e,t){e.forEachChild(function r(i){if(Wr(i)&&p1(e,i.expression)&&Ve(i.name)){const{parent:o}=i;t(i,mr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function hQe(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return xPe(e,t,i,r,o,s,p),!1;case 244:{const{expression:h}=t;switch(h.kind){case 213:return Td(h,!0)&&i.replaceNode(e,t,$y(void 0,void 0,h.arguments[0],p)),!1;case 226:{const{operatorToken:m}=h;return m.kind===64&&yQe(e,r,h,i,l,u)}}}default:return!1}}function xPe(e,t,r,i,o,s,l){const{declarationList:u}=t;let p=!1;const h=Ot(u.declarations,m=>{const{name:v,initializer:A}=m;if(A){if(p1(e,A))return p=!0,yM([]);if(Td(A,!0))return p=!0,AQe(v,A.arguments[0],i,o,s,l);if(Wr(A)&&Td(A.expression,!0))return p=!0,gQe(v,A.name.text,A.expression.arguments[0],o,l)}return yM([w.createVariableStatement(void 0,w.createVariableDeclarationList([m],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,Pi(h,v=>v.newImports));let m;return Xe(h,v=>{v.useSitesToUnqualify&&R4(v.useSitesToUnqualify,m??(m=new Map))}),m}}function gQe(e,t,r,i,o){switch(e.kind){case 206:case 207:{const s=a$(t,i);return yM([CPe(s,t,r,o),s$(void 0,e,w.createIdentifier(s))])}case 80:return yM([CPe(e.text,t,r,o)]);default:return N.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function yQe(e,t,r,i,o,s){const{left:l,right:u}=r;if(!Wr(l))return!1;if(p1(e,l))if(p1(e,u))i.delete(e,r.parent);else{const p=Oa(u)?vQe(u,s):Td(u,!0)?EQe(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,xf(l.getStart(e),u.pos),"export default"),!0)}else p1(e,l.expression)&&bQe(e,r,i,o);return!1}function vQe(e,t){const r=xE(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ve(i.name)?TQe(i.name.text,i.initializer,t):void 0;case 174:return Ve(i.name)?NPe(i.name.text,[w.createToken(95)],i,t):void 0;default:N.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function bQe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[s$(void 0,s,t.right),jpe([w.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else SQe(t,e,r)}function EQe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:L6;return o.has("export=")?[[Gpe(r)],!0]:o.has("default")?o.size>1?[[RPe(r),Gpe(r)],!0]:[[Gpe(r)],!0]:[[RPe(r)],!1]}function RPe(e){return jpe(void 0,e)}function Gpe(e){return jpe([w.createExportSpecifier(!1,void 0,"default")],e)}function SQe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Os(t)||Gs(t)||Zc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},w.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=ys(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,ys(e,25,i),[w.createToken(95),w.createToken(87)],{joiner:" ",suffix:" "})}function TQe(e,t,r){const i=[w.createToken(95)];switch(t.kind){case 218:{const{name:s}=t;if(s&&s.text!==e)return o()}case 219:return NPe(e,i,t,r);case 231:return DQe(e,i,t,r);default:return o()}function o(){return s$(i,w.createIdentifier(e),Vpe(t,r))}}function Vpe(e,t){if(!t||!bt(zo(t.keys()),i=>cf(e,i)))return e;return To(e)?yX(e,!0,r):fO(e,!0,r);function r(i){if(i.kind===211){const o=t.get(i);return t.delete(i),o}}}function AQe(e,t,r,i,o,s){switch(e.kind){case 206:{const l=xE(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ve(u.propertyName)||!Ve(u.name)?void 0:PPe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return yM([$y(void 0,l,t,s)])}case 207:{const l=a$(nfe(t.text,o),i);return yM([$y(w.createIdentifier(l),void 0,t,s),s$(void 0,cl(e),w.createIdentifier(l))])}case 80:return IQe(e,t,r,i,s);default:return N.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function IQe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,p;for(const m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;const{parent:v}=m;if(Wr(v)){const{name:{text:A}}=v;if(A==="default"){u=!0;const I=m.getText();(p??(p=new Map)).set(v,w.createIdentifier(I))}else{N.assert(v.expression===m,"Didn't expect expression === use");let I=l.get(A);I===void 0&&(I=a$(A,i),l.set(A,I)),(p??(p=new Map)).set(v,w.createIdentifier(I))}}else u=!0}const h=l.size===0?void 0:zo(Ca(l.entries(),([m,v])=>w.createImportSpecifier(!1,m===v?void 0:w.createIdentifier(m),w.createIdentifier(v))));return h||(u=!0),yM([$y(u?cl(e):void 0,h,t,o)],p)}function a$(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function xQe(e){const t=Zp();return DPe(e,r=>t.add(r.text,r)),t}function DPe(e,t){Ve(e)&&RQe(e)&&t(e),e.forEachChild(r=>DPe(r,t))}function RQe(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function NPe(e,t,r,i){return w.createFunctionDeclaration(So(t,b1(r.modifiers)),cl(r.asteriskToken),e,b1(r.typeParameters),b1(r.parameters),cl(r.type),w.converters.convertToFunctionBlock(Vpe(r.body,i)))}function DQe(e,t,r,i){return w.createClassDeclaration(So(t,b1(r.modifiers)),e,b1(r.typeParameters),b1(r.heritageClauses),Vpe(r.members,i))}function CPe(e,t,r,i){return t==="default"?$y(w.createIdentifier(e),void 0,r,i):$y(void 0,[PPe(t,e)],r,i)}function PPe(e,t){return w.createImportSpecifier(!1,e!==void 0&&e!==t?w.createIdentifier(e):void 0,w.createIdentifier(t))}function s$(e,t,r){return w.createVariableStatement(e,w.createVariableDeclarationList([w.createVariableDeclaration(t,void 0,void 0,r)],2))}function jpe(e,t){return w.createExportDeclaration(void 0,!1,e&&w.createNamedExports(e),t===void 0?void 0:w.createStringLiteral(t))}function yM(e,t){return{newImports:e,useSitesToUnqualify:t}}var NQe=T({"src/services/codefixes/convertToEsModule.ts"(){si(),xa(),Aa({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=_r.ChangeTracker.with(e,s=>{if(fQe(t,r.getTypeChecker(),s,os(r.getCompilerOptions()),uf(t,i)))for(const u of r.getSourceFiles())pQe(u,t,r,s,uf(u,i))});return[o_("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function MPe(e,t){const r=Gn(po(e,t),Id);return N.assert(!!r,"Expected position to be owned by a qualified name."),Ve(r.left)?r:void 0}function LPe(e,t,r){const i=r.right.text,o=w.createIndexedAccessTypeNode(w.createTypeReferenceNode(r.left,void 0),w.createLiteralTypeNode(w.createStringLiteral(i)));e.replaceNode(t,r,o)}var l$,Upe,CQe=T({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){si(),xa(),l$="correctQualifiedNameToIndexedAccessType",Upe=[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],Aa({errorCodes:Upe,getCodeActions(e){const t=MPe(e.sourceFile,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,o=>LPe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[la(l$,r,[f.Rewrite_as_the_indexed_access_type_0,i],l$,f.Rewrite_all_as_indexed_access_types)]},fixIds:[l$],getAllCodeActions:e=>Es(e,Upe,(t,r)=>{const i=MPe(r.file,r.start);i&&LPe(t,r.file,i)})})}});function kPe(e,t){return ii(po(t,e.start).parent,Ku)}function wPe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=PQe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=w.updateExportDeclaration(o,o.modifiers,!1,w.updateNamedExports(i,nr(i.elements,p=>!Nr(s,p))),o.moduleSpecifier,void 0),u=w.createExportDeclaration(void 0,!0,w.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function PQe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=Uue(Dd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return nr(r.elements,o=>{var s;return o===e||((s=jue(o,i))==null?void 0:s.code)===c$[0]})}var c$,u$,MQe=T({"src/services/codefixes/convertToTypeOnlyExport.ts"(){si(),xa(),c$=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],u$="convertToTypeOnlyExport",Aa({errorCodes:c$,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>wPe(i,kPe(t.span,t.sourceFile),t));if(r.length)return[la(u$,r,f.Convert_to_type_only_export,u$,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[u$],getAllCodeActions:function(t){const r=new Map;return Es(t,c$,(i,o)=>{const s=kPe(o,t.sourceFile);s&&Rm(r,as(s.parent.parent))&&wPe(i,s,t)})}})}});function OPe(e,t){const{parent:r}=po(e,t);return np(r)||kc(r)&&r.importClause?r:void 0}function WPe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Ws.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!S0(u)))return!1;return!0}function oz(e,t,r){var i;if(np(r))e.replaceNode(t,r,w.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[w.createImportDeclaration(b1(r.modifiers,!0),w.createImportClause(!0,cl(o.name,!0),void 0),cl(r.moduleSpecifier,!0),cl(r.attributes,!0)),w.createImportDeclaration(b1(r.modifiers,!0),w.createImportClause(!0,void 0,cl(o.namedBindings,!0)),cl(r.moduleSpecifier,!0),cl(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===275?w.updateNamedImports(o.namedBindings,eo(o.namedBindings.elements,u=>w.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=w.updateImportDeclaration(r,r.modifiers,w.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var Hpe,az,LQe=T({"src/services/codefixes/convertToTypeOnlyImport.ts"(){si(),xa(),Hpe=[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],az="convertToTypeOnlyImport",Aa({errorCodes:Hpe,getCodeActions:function(t){var r;const i=OPe(t.sourceFile,t.span.start);if(i){const o=_r.ChangeTracker.with(t,u=>oz(u,t.sourceFile,i)),s=i.kind===276&&WPe(i,t.sourceFile,t.program)?_r.ChangeTracker.with(t,u=>oz(u,t.sourceFile,i.parent.parent.parent)):void 0,l=la(az,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,az,f.Fix_all_with_type_only_imports);return bt(s)?[o_(az,s,f.Use_import_type),l]:[l]}},fixIds:[az],getAllCodeActions:function(t){const r=new Set;return Es(t,Hpe,(i,o)=>{const s=OPe(o.file,o.start);s?.kind===272&&!r.has(s)?(oz(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&WPe(s,o.file,t.program)?(oz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&oz(i,o.file,s)})}})}});function FPe(e,t,r,i,o=!1){if(!KS(t))return;const s=wQe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:p}=kQe(t);let h=l.getStart(),m="";!u&&l.comment&&(h=zPe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),u&&(o&&KS(u)?(h=t.getStart(),m=""):(h=zPe(l,u.getStart(),t.getStart()),m=`${i} */${i}`));let v=l.getEnd(),A="";p&&(o&&KS(p)?(v=p.getStart(),A=`${i}${i}`):(v=p.getStart(),A=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:v},s,{prefix:m,suffix:A})}function kQe(e){const 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 wQe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return OQe(i,r);if(r.kind===316)return WQe(i,r)}}function OQe(e,t){const r=BPe(t);if(bt(r))return w.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function WQe(e,t){const r=cl(t.type);if(r)return w.createTypeAliasDeclaration(void 0,w.createIdentifier(e),void 0,r)}function BPe(e){const t=e.jsDocPropertyTags;return bt(t)?Hi(t,i=>{var o;const s=FQe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let p;if(l&&JS(l)){const h=BPe(l);p=w.createTypeLiteralNode(h)}else l&&(p=cl(l));if(p&&s){const h=u?w.createToken(58):void 0;return w.createPropertySignature(void 0,s,h,p)}}):void 0}function FQe(e){return e.name.kind===80?e.name.text:e.name.right.text}function zQe(e){return Fp(e)?Pi(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>KS(i))}):[]}var d$,qpe,BQe=T({"src/services/codefixes/convertTypedefToType.ts"(){si(),xa(),d$="convertTypedefToType",qpe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Aa({fixIds:[d$],errorCodes:qpe,getCodeActions(e){const t=Qy(e.host,e.formatContext.options),r=po(e.sourceFile,e.span.start);if(!r)return;const i=_r.ChangeTracker.with(e,o=>FPe(o,r,e.sourceFile,t));if(i.length>0)return[la(d$,i,f.Convert_typedef_to_TypeScript_type,d$,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Es(e,qpe,(t,r)=>{const i=Qy(e.host,e.formatContext.options),o=po(r.file,r.start);o&&FPe(t,o,r.file,i,!0)})})}});function GPe(e,t){const r=po(e,t);if(Ve(r)){const i=oa(r.parent.parent,yp),o=r.getText(e);return{container:oa(i.parent,bp),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function VPe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,w.createMappedTypeNode(void 0,w.createTypeParameterDeclaration(void 0,s,w.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var p$,Jpe,GQe=T({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){si(),xa(),p$="convertLiteralTypeToMappedType",Jpe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Aa({errorCodes:Jpe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=GPe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=_r.ChangeTracker.with(t,p=>VPe(p,r,o));return[la(p$,u,[f.Convert_0_to_1_in_0,l,s],p$,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[p$],getAllCodeActions:e=>Es(e,Jpe,(t,r)=>{const i=GPe(r.file,r.start);i&&VPe(t,r.file,i)})})}});function jPe(e,t){return N.checkDefined(su(po(e,t)),"There should be a containing class")}function UPe(e){return!e.valueDeclaration||!(dd(e.valueDeclaration)&2)}function HPe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=VQe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(N6(UPe,C=>!u.has(C.escapedName))),v=l.getTypeAtLocation(i),A=An(i.members,C=>Ml(C));v.getNumberIndexType()||R(p,1),v.getStringIndexType()||R(p,0);const I=OI(r,e.program,s,e.host);tme(i,m,r,e,s,I,C=>M(r,i,C)),I.writeFixes(o);function R(C,O){const U=l.getIndexInfoOfType(C,O);U&&M(r,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,GD(e)))}function M(C,O,U){A?o.insertNodeAfter(C,A,U):o.insertMemberAtStart(C,O,U)}}function VQe(e,t){const r=D_(e);if(!r)return ca();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return ca(o.filter(UPe))}var Kpe,f$,jQe=T({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){si(),xa(),Kpe=[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],f$="fixClassIncorrectlyImplementsInterface",Aa({errorCodes:Kpe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=jPe(t,r.start);return Hi(TR(i),o=>{const s=_r.ChangeTracker.with(e,l=>HPe(e,o,t,i,l,e.preferences));return s.length===0?void 0:la(f$,s,[f.Implement_interface_0,o.getText(t)],f$,f.Implement_all_unimplemented_interfaces)})},fixIds:[f$],getAllCodeActions(e){const t=new Map;return Es(e,Kpe,(r,i)=>{const o=jPe(i.file,i.start);if(Rm(t,as(o)))for(const s of TR(o))HPe(e,s,i.file,o,r,e.preferences)})}})}});function OI(e,t,r,i,o){return qPe(e,t,!1,r,i,o)}function qPe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:v,addImportFromExportedSymbol:A,writeFixes:R,hasFixes:M};function v(C,O){const U=QPe(O,C.code,C.start,r);!U||!U.length||I(Ha(U))}function A(C,O){const U=N.checkDefined(C.parent),K=E5(C,os(l)),Z=t.getTypeChecker(),V=Z.getMergedSymbol(bu(C,Z)),se=XPe(e,V,K,U,!1,t,o,i,s),G=_$(e,t),ne=JPe(e,N.checkDefined(se),t,void 0,!!O,G,o,i);ne&&I({fix:ne,symbolName:K})}function I(C){var O,U;const{fix:K,symbolName:Z}=C;switch(K.kind){case 0:u.push(K);break;case 1:p.push(K);break;case 2:{const{importClauseOrBindingPattern:ne,importKind:he,addAsTypeOnly:ve}=K,$=String(as(ne));let Y=h.get($);if(Y||h.set($,Y={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),he===0){const oe=Y?.namedImports.get(Z);Y.namedImports.set(Z,V(oe,ve))}else N.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add to Existing) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((O=Y.defaultImport)==null?void 0:O.addAsTypeOnly,ve)};break}case 3:{const{moduleSpecifier:ne,importKind:he,useRequire:ve,addAsTypeOnly:$}=K,Y=se(ne,he,ve,$);switch(N.assert(Y.useRequire===ve,"(Add new) Tried to add an `import` and a `require` for the same module"),he){case 1:N.assert(Y.defaultImport===void 0||Y.defaultImport.name===Z,"(Add new) Default import should be missing or match symbolName"),Y.defaultImport={name:Z,addAsTypeOnly:V((U=Y.defaultImport)==null?void 0:U.addAsTypeOnly,$)};break;case 0:const oe=(Y.namedImports||(Y.namedImports=new Map)).get(Z);Y.namedImports.set(Z,V(oe,$));break;case 3:case 2:N.assert(Y.namespaceLikeImport===void 0||Y.namespaceLikeImport.name===Z,"Namespacelike import shoudl be missing or match symbolName"),Y.namespaceLikeImport={importKind:he,name:Z,addAsTypeOnly:$};break}break}case 4:break;default:N.assertNever(K,`fix wasn't never - got kind ${K.kind}`)}function V(ne,he){return Math.max(ne??0,he)}function se(ne,he,ve,$){const Y=G(ne,!0),oe=G(ne,!1),fe=m.get(Y),Ne=m.get(oe),pe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ve};return he===1&&$===2?fe||(m.set(Y,pe),pe):$===1&&(fe||Ne)?fe||Ne:Ne||(m.set(oe,pe),pe)}function G(ne,he){return`${he?1:0}|${ne}`}}function R(C,O){let U;e.imports.length===0&&O!==void 0?U=O:U=uf(e,i);for(const Z of u)Zpe(C,e,Z);for(const Z of p)oMe(C,e,Z,U);h.forEach(({importClauseOrBindingPattern:Z,defaultImport:V,namedImports:se})=>{iMe(C,e,Z,V,zo(se.entries(),([G,ne])=>({addAsTypeOnly:ne,name:G})),i)});let K;m.forEach(({useRequire:Z,defaultImport:V,namedImports:se,namespaceLikeImport:G},ne)=>{const he=ne.slice(2),$=(Z?lMe:sMe)(he,U,V,se&&zo(se.entries(),([Y,oe])=>({addAsTypeOnly:oe,name:Y})),G,l,i);K=Ox(K,$)}),K&&aM(C,e,K,!0,i)}function M(){return u.length>0||p.length>0||h.size>0||m.size>0}}function UQe(e,t,r,i){const o=fM(e,i,r),s=YPe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,h,m){const{fixes:v,computedWithoutCacheCount:A}=m$(u,p,h,!1,t,e,r,i,s,m),I=ZPe(v,e,t,o,r);return I&&{...I,computedWithoutCacheCount:A}}}function HQe(e,t,r,i,o,s,l,u,p,h,m,v){let A;r?(A=bO(i,l,u,m,v).get(i.path,r),N.assertIsDefined(A,"Some exportInfo should match the specified exportMapKey")):(A=TV(tm(t.name))?[JQe(e,o,t,u,l)]:XPe(i,e,o,t,s,u,l,m,v),N.assertIsDefined(A,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=_$(i,u),R=S0(po(i,h)),M=N.checkDefined(JPe(i,A,u,h,R,I,l,m));return{moduleSpecifier:M.moduleSpecifier,codeAction:KPe(Qpe({host:l,formatContext:p,preferences:m},i,o,M,!1,u,m))}}function qQe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=eG($pe(e,r.getTypeChecker(),t,l)),p=nMe(e,t,u,r),h=u!==t.text;return p&&KPe(Qpe({host:i,formatContext:o,preferences:s},e,u,p,h,r,s))}function JPe(e,t,r,i,o,s,l,u){const p=fM(e,u,l);return ZPe(m$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function KPe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function XPe(e,t,r,i,o,s,l,u,p){const h=$Pe(s,l);return bO(e,l,s,u,p).search(e.path,o,m=>m===r,m=>{if(bu(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(v=>v.moduleSymbol===i||v.symbol.parent===i))return m})}function JQe(e,t,r,i,o){var s,l;const u=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;const h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return N.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(v,A){const I=D5(r,v,u);if(I&&bu(I.symbol,v)===e)return{symbol:I.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:I.exportKind,targetFlags:bu(e,v).flags,isFromPackageJson:A};const R=v.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&bu(R,v)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:bu(e,v).flags,isFromPackageJson:A}}}function m$(e,t,r,i,o,s,l,u,p=YPe(o.getTypeChecker(),s,o.getCompilerOptions()),h){const m=o.getTypeChecker(),v=Pi(e,p.getImportsForExportInfo),A=t!==void 0&&KQe(v,t),I=YQe(v,r,m,o.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...A?[A]:et,I]};const{fixes:R,computedWithoutCacheCount:M=0}=QQe(e,v,o,s,t,r,i,l,u,h);return{computedWithoutCacheCount:M,fixes:[...A?[A]:et,...R]}}function KQe(e,t){return qt(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=XQe(r),l=s&&((o=gR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function XQe(e){var t,r,i;switch(e.kind){case 260:return(t=ii(e.name,Ve))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ii((r=e.importClause)==null?void 0:r.namedBindings,nb))==null?void 0:i.name.text;default:return N.assertNever(e)}}function Xpe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||vU(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function YQe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const p=lL(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:h}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:m}=l;if(!m||!ls(l.moduleSpecifier))return;const{name:v,namedBindings:A}=m;if(m.isTypeOnly&&!(u===0&&A))return;const I=Xpe(t,!1,p,h,r,i);if(!(u===1&&(v||I===2&&A))&&!(u===0&&A?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:I}}}function YPe(e,t,r){let i;for(const o of t.imports){const s=RC(o);if(e3(s.parent)){const l=e.resolveExternalModuleName(o);l&&(i||(i=Zp())).add(Ta(l),s.parent)}else if(s.kind===272||s.kind===271){const l=e.getSymbolAtLocation(o);l&&(i||(i=Zp())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&ud(t))return et;const p=i?.get(Ta(o));if(!p)return et;const h=Ype(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:u,targetFlags:l}))}}}function _$(e,t){if(!ud(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return wu(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!ud(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function $Pe(e,t){return ch(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function $Qe(e,t,r,i,o,s,l,u,p){const h=ud(t),m=e.getCompilerOptions(),v=oT(e,l),A=$Pe(e,l),I=fd(m),R=r5(I),M=p?U=>({moduleSpecifiers:f1.tryGetModuleSpecifiersFromCache(U,t,v,u),computedWithoutCache:!1}):(U,K)=>f1.getModuleSpecifiersWithCacheInfo(U,K,m,t,v,u,void 0,!0);let C=0;const O=Pi(s,(U,K)=>{const Z=A(U.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:se}=M(U.moduleSymbol,Z),G=!!(U.targetFlags&111551),ne=Xpe(i,!0,U.symbol,U.targetFlags,Z,m);return C+=V?1:0,Hi(se,he=>{var ve;if(R&&M0(he))return;if(!G&&h&&r!==void 0)return{kind:1,moduleSpecifier:he,usagePosition:r,exportInfo:U,isReExport:K>0};const $=Ype(t,U.exportKind,m);let Y;if(r!==void 0&&$===3&&U.exportKind===0){const oe=Z.resolveExternalModuleSymbol(U.moduleSymbol);let fe;oe!==U.moduleSymbol&&(fe=(ve=N5(oe,Z,m))==null?void 0:ve.name),fe||(fe=tfe(U.moduleSymbol,os(m),!1)),Y={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifier:he,importKind:$,useRequire:o,addAsTypeOnly:ne,exportInfo:U,isReExport:K>0,qualification:Y}})});return{computedWithoutCacheCount:C,fixes:O}}function QQe(e,t,r,i,o,s,l,u,p,h){const m=qt(t,v=>ZQe(v,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:$Qe(r,i,o,s,l,e,u,p,h)}function ZQe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;const h=(p=gR(e))==null?void 0:p.text;if(h){const m=s?4:Xpe(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function QPe(e,t,r,i){const o=po(e.sourceFile,r);let s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=rZe(e,o);else if(Ve(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=eG($pe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=nMe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=aZe(e,o,i);else return;const l=fM(e.sourceFile,e.preferences,e.host);return s&&eZe(s,e.sourceFile,e.program,l,e.host)}function eZe(e,t,r,i,o){const s=l=>ol(l,o.getCurrentDirectory(),Fy(o));return lS(e,(l,u)=>Rv(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||rl(l.fix.kind,u.fix.kind)||eMe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function ZPe(e,t,r,i,o){if(bt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>eMe(l,s,t,r,i.allowsImportingSpecifier,u=>ol(u,o.getCurrentDirectory(),Fy(o)))===-1?l:s)}function eMe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Rv(o(t.moduleSpecifier),o(e.moduleSpecifier))||nZe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Rv(tMe(e,r,i.getCompilerOptions(),s),tMe(t,r,i.getCompilerOptions(),s))||_k(e.moduleSpecifier,t.moduleSpecifier):0}function tMe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&tZe(e.exportInfo.moduleFileName)){const s=i(ai(e.exportInfo.moduleFileName));return uo(t.path,s)}return!1}function tZe(e){return rc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function nZe(e,t,r,i){return uo(e,"node:")&&!uo(t,"node:")?T5(r,i)?-1:1:uo(t,"node:")&&!uo(e,"node:")?T5(r,i)?1:-1:0}function rZe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=iZe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],m=_$(e,t);return m$(h,void 0,!1,m,t,e,r,i).fixes.map(A=>{var I;return{fix:A,symbolName:p,errorIdentifierText:(I=ii(o,Ve))==null?void 0:I.text}})}function iZe(e,t){const r=Ve(e)?t.getSymbolAtLocation(e):void 0;if(D3(r))return r;const{parent:i}=e;if(cd(i)&&i.tagName===e||mI(i)){const o=t.resolveName(t.getJsxNamespace(i),cd(i)?e:i,111551,!1);if(D3(o))return o}}function Ype(e,t,r,i){if(r.verbatimModuleSyntax&&(wu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return cZe(e,r,!!i);case 3:return oZe(e,r,!!i);default:return N.assertNever(t)}}function oZe(e,t,r){if(OS(t))return 1;const i=wu(t);switch(i){case 2:case 1:case 3:return lr(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 N.assertNever(i,`Unexpected moduleKind ${i}`)}}function aZe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),p=t.getCompilerOptions();return Pi($pe(e,u,s,p),h=>{if(h==="default")return;const m=S0(s),v=_$(e,t),A=lZe(h,mR(s),rT(s),r,e,t,l,i,o);return zo(Qp(A.values(),I=>m$(I,s.getStart(e),m,v,t,e,i,o).fixes),I=>({fix:I,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function nMe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||jn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function $pe(e,t,r,i){const o=r.parent;if((cd(o)||o1(o))&&o.tagName===r&&CX(i.jsx)){const s=t.getJsxNamespace(e);if(sZe(s,r,t))return!RR(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function sZe(e,t,r){if(RR(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||bt(i.declarations,f0)&&!(i.flags&111551)}function lZe(e,t,r,i,o,s,l,u,p){var h;const m=Zp(),v=fM(o,p,u),A=(h=u.getModuleSpecifierCache)==null?void 0:h.call(u),I=ch(M=>oT(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,C,O,U,K,Z){const V=I(Z);if(C&&WX(K,o,C,p,v,V,A)||!C&&v.allowsImportingAmbientModule(M,V)){const se=K.getTypeChecker();m.add(kue(O,se).toString(),{symbol:O,moduleSymbol:M,moduleFileName:C?.fileName,exportKind:U,targetFlags:bu(O,se).flags,isFromPackageJson:Z})}}return FX(s,u,p,l,(M,C,O,U)=>{const K=O.getTypeChecker();i.throwIfCancellationRequested();const Z=O.getCompilerOptions(),V=D5(M,K,Z);V&&(V.name===e||tfe(M,os(Z),t)===e)&&uMe(V.resolvedSymbol,r)&&R(M,C,V.symbol,V.exportKind,O,U);const se=K.tryGetMemberInModuleExportsAndProperties(e,M);se&&uMe(se,r)&&R(M,C,se,0,O,U)}),m}function cZe(e,t,r){const i=OS(t),o=lr(e);if(!o&&wu(t)>=5)return i?1:2;if(o)return ac(e)||r?i?1:2:3;for(const s of e.statements)if(tu(s)&&!zl(s.moduleReference))return 3;return i?1:3}function Qpe(e,t,r,i,o,s,l){let u;const p=_r.ChangeTracker.with(e,h=>{u=uZe(h,t,r,i,o,s,l)});return la(rfe,p,u,ife,f.Add_all_missing_imports)}function uZe(e,t,r,i,o,s,l){const u=uf(t,l);switch(i.kind){case 0:return Zpe(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return oMe(e,t,i,u),[f.Change_0_to_1,r,aMe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:v}=i;iMe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:et,l);const A=tm(v);return o?[f.Import_0_from_1,r,A]:[f.Update_import_from_0,A]}case 3:{const{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:v,qualification:A}=i,I=v?lMe:sMe,R=p===1?{name:r,addAsTypeOnly:m}:void 0,M=p===0?[{name:r,addAsTypeOnly:m}]:void 0,C=p===2||p===3?{importKind:p,name:A?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return aM(e,t,I(h,u,R,M,C,s.getCompilerOptions(),l),!0,l),A&&Zpe(e,t,A),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{const{typeOnlyAliasDeclaration:p}=i,h=dZe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,rMe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,rMe(h)]}default:return N.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function rMe(e){var t,r;return e.kind===271?((r=ii((t=ii(e.moduleReference,Th))==null?void 0:t.expression,ls))==null?void 0:r.text)||e.moduleReference.getText():oa(e.parent.moduleSpecifier,Ma).text}function dZe(e,t,r,i,o){const s=r.getCompilerOptions(),l=vU(s);switch(t.kind){case 276:if(t.isTypeOnly){const p=Lm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){const h=w.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Lm.getOrganizeImportsComparer(o,p===2),v=Lm.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(v!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,v),t}return e.deleteRange(i,{pos:m0(t.getFirstToken()),end:m0(t.propertyName??t.name)}),t}else return N.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:N.failBadSyntaxKind(t)}function u(p){var h;if(e.delete(i,sX(p,i)),!s.allowImportingTsExtensions){const m=gR(p.parent),v=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(v?.resolvedUsingTsExtension){const A=U2(m.text,t7(m.text,s));e.replaceNode(i,m,w.createStringLiteral(A))}}if(l){const m=ii(p.namedBindings,Vg);if(m&&m.elements.length>1){Lm.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(const v of m.elements)v!==t&&!v.isTypeOnly&&e.insertModifierBefore(i,156,v)}}}}function iMe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(const m of o)h(r,m.name,void 0);return}const u=r.isTypeOnly&&bt([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=ii(r.namedBindings,Vg))==null?void 0:l.elements);if(i&&(N.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),w.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){const R=Lm.detectImportSpecifierSorting(p,s);R!==3&&(m=R===2)}m===void 0&&(m=Lm.detectSorting(t,s)===2);const v=Lm.getOrganizeImportsComparer(s,m),A=Iy(o.map(R=>w.createImportSpecifier((!r.isTypeOnly||u)&&h$(R,s),void 0,w.createIdentifier(R.name))),(R,M)=>Lm.compareImportOrExportSpecifiers(R,M,v)),I=p?.length&&Lm.detectImportSpecifierSorting(p,s);if(I&&!(m&&I===1))for(const R of A){const M=u&&!R.isTypeOnly?0:Lm.getImportSpecifierInsertionIndex(p,R,v,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p?.length)for(const R of A)e.insertNodeInListAfter(t,Ya(p),R,p);else if(A.length){const R=w.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,N.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,sX(r,t)),p))for(const m of p)e.insertModifierBefore(t,156,m);function h(m,v,A){const I=w.createBindingElement(void 0,A,v);m.elements.length?e.insertNodeInListAfter(t,Ya(m.elements),I):e.replaceNode(t,m,w.createObjectBindingPattern([I]))}}function Zpe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function oMe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,aMe(r,o))}function aMe(e,t){const r=aX(t);return`import(${r}${e}${r}).`}function efe({addAsTypeOnly:e}){return e===2}function h$(e,t){return efe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function sMe(e,t,r,i,o,s,l){const u=CI(e,t);let p;if(r!==void 0||i?.length){const h=(!r||efe(r))&&Zn(i,efe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!bt(i,m=>m.addAsTypeOnly===4);p=Ox(p,$y(r&&w.createIdentifier(r.name),i?.map(m=>w.createImportSpecifier(!h&&h$(m,l),void 0,w.createIdentifier(m.name))),e,t,h))}if(o){const h=o.importKind===3?w.createImportEqualsDeclaration(void 0,h$(o,l),w.createIdentifier(o.name),w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(h$(o,l),void 0,w.createNamespaceImport(w.createIdentifier(o.name))),u,void 0);p=Ox(p,h)}return N.checkDefined(p)}function lMe(e,t,r,i,o){const s=CI(e,t);let l;if(r||i?.length){const u=i?.map(({name:h})=>w.createBindingElement(void 0,void 0,h))||[];r&&u.unshift(w.createBindingElement(void 0,"default",r.name));const p=cMe(w.createObjectBindingPattern(u),s);l=Ox(l,p)}if(o){const u=cMe(o.name,s);l=Ox(l,u)}return N.checkDefined(l)}function cMe(e,t){return w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(typeof e=="string"?w.createIdentifier(e):e,void 0,void 0,w.createCallExpression(w.createIdentifier("require"),void 0,[t]))],2))}function uMe({declarations:e},t){return bt(e,r=>!!(Yw(r)&t))}function tfe(e,t,r){return nfe(Ad(tm(e.name)),t,r)}function nfe(e,t,r){const i=rc(zx(e,"/index"));let o="",s=!0;const l=i.charCodeAt(0);Yh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;uQpe(e,i,p,u,p!==h,s,r))},fixIds:[ife],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=qPe(t,r,!0,i,o,s);return zD(e,ofe,u=>l.addImportFromDiagnostic(u,e)),FD(_r.ChangeTracker.with(e,l.writeFixes))}})}});function dMe(e,t,r){const i=An(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=An(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=lme(o.file,yu(o.start,o.length));if(s!==void 0&&(Ve(s)&&gl(s.parent)&&(s=s.parent),gl(s))){if(qR(s.parent))return;const l=po(t,r.start),u=e.getTypeChecker();return{constraint:mZe(u,l)||fZe(o.messageText),declaration:s,token:l}}}function pMe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(Po(u))e.insertText(o,l.name.end,` extends ${u}`);else{const h=os(t.getCompilerOptions()),m=GD({program:t,host:i}),v=OI(o,t,r,i),A=eQ(p,v,u,void 0,h,void 0,m);A&&(e.replaceNode(o,l,w.updateTypeParameterDeclaration(l,void 0,l.name,A,l.default)),v.writeFixes(e))}}function fZe(e){const[,t]=z_(e,` `,0).match(/`extends (.*)`/)||[];return t}function mZe(e,t){return ji(t.parent)?e.getTypeArgumentConstraint(t.parent):(vt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var g$,afe,_Ze=T({"src/services/codefixes/fixAddMissingConstraint.ts"(){si(),xa(),g$="addMissingConstraint",afe=[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],Aa({errorCodes:afe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=dMe(i,t,r);if(l===void 0)return;const u=_r.ChangeTracker.with(e,p=>pMe(p,i,o,s,t,l));return[la(g$,u,f.Add_extends_constraint,g$,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[g$],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return FD(_r.ChangeTracker.with(e,s=>{zD(e,afe,l=>{const u=dMe(t,l.file,yu(l.start,l.length));if(u&&Rm(o,as(u.declaration)))return pMe(s,t,r,i,l.file,u)})}))}})}});function fMe(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 hZe(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 gZe(e,t.sourceFile,i);default:N.fail("Unexpected error code: "+r)}}function hZe(e,t,r){const i=_Me(t,r);if(ud(t)){e.addJSDocTags(t,i,[w.createJSDocOverrideTag(w.createIdentifier("override"))]);return}const o=i.modifiers||et,s=An(o,iI),l=An(o,hae),u=An(o,v=>YK(v.kind)),p=Oo(o,Eu),h=l?l.end:s?s.end:u?u.end:p?ka(t.text,p.end):i.getStart(t),m=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function gZe(e,t,r){const i=_Me(t,r);if(ud(t)){e.filterJSDocTags(t,i,C6(QW));return}const o=An(i.modifiers,gae);N.assertIsDefined(o),e.deleteModifier(t,o)}function mMe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return fp(e,e.parent);default:return!1}}function _Me(e,t){const r=po(e,t),i=Gn(r,o=>ui(o)?"quit":mMe(o));return N.assert(i&&mMe(i)),i}var sfe,vM,VO,lfe,cfe,yZe=T({"src/services/codefixes/fixOverrideModifier.ts"(){si(),xa(),sfe="fixOverrideModifier",vM="fixAddOverrideModifier",VO="fixRemoveOverrideModifier",lfe=[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],cfe={[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:VO,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:VO,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:VO,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:VO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},Aa({errorCodes:lfe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=cfe[r];if(!o)return et;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=_r.ChangeTracker.with(t,h=>fMe(h,t,r,i.start));return[Epe(sfe,p,s,l,u)]},fixIds:[sfe,vM,VO],getAllCodeActions:e=>Es(e,lfe,(t,r)=>{const{code:i,start:o}=r,s=cfe[i];!s||s.fixId!==e.fixId||fMe(t,e,i,o)})})}});function hMe(e,t,r,i){const o=uf(t,i),s=w.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,f4(r)?w.createElementAccessChain(r.expression,r.questionDotToken,s):w.createElementAccessExpression(r.expression,s))}function gMe(e,t){return oa(po(e,t).parent,Wr)}var y$,ufe,vZe=T({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){si(),xa(),y$="fixNoPropertyAccessFromIndexSignature",ufe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Aa({errorCodes:ufe,fixIds:[y$],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=gMe(t,r.start),s=_r.ChangeTracker.with(e,l=>hMe(l,e.sourceFile,o,i));return[la(y$,s,[f.Use_element_access_for_0,o.name.text],y$,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Es(e,ufe,(t,r)=>hMe(t,r.file,gMe(r.file,r.start),e.preferences))})}});function yMe(e,t,r,i){const o=po(t,r);if(!AD(o))return;const s=Fd(o,!1,!1);if(!(!Ac(s)&&!Os(s))&&!$i(Fd(s,!1,!1))){const l=N.checkDefined(ys(s,100,t)),{name:u}=s,p=N.checkDefined(s.body);return Os(s)?u&&Ws.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:R5]):(e.replaceNode(t,l,w.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var v$,dfe,bZe=T({"src/services/codefixes/fixImplicitThis.ts"(){si(),xa(),v$="fixImplicitThis",dfe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Aa({errorCodes:dfe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=_r.ChangeTracker.with(t,u=>{s=yMe(u,r,o.start,i.getTypeChecker())});return s?[la(v$,l,s,v$,f.Fix_all_implicit_this_errors)]:et},fixIds:[v$],getAllCodeActions:e=>Es(e,dfe,(t,r)=>{yMe(t,r.file,r.start,e.program.getTypeChecker())})})}});function vMe(e,t,r){var i,o;const s=po(e,t);if(Ve(s)){const l=Gn(s,kc);if(l===void 0)return;const u=Ma(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;const h=r.getSourceFile(p.resolvedFileName);if(h===void 0||PD(r,h))return;const m=h.symbol,v=(o=ii(m.valueDeclaration,ph))==null?void 0:o.locals;if(v===void 0)return;const A=v.get(s.escapedText);if(A===void 0)return;const I=SZe(A);return I===void 0?void 0:{exportName:{node:s,isTypeOnly:zR(I)},node:I,moduleSourceFile:h,moduleSpecifier:u.text}}}function EZe(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=b$(o,r.isTypeOnly);s?bMe(e,t,o,s,[r]):yk(i)?e.insertExportModifier(o,i):EMe(e,t,o,[r])}function pfe(e,t,r,i,o){Le(i)&&(o?bMe(e,t,r,o,i):EMe(e,t,r,i))}function b$(e,t){const r=i=>Yl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Oo(e.statements,r)}function bMe(e,t,r,i,o){const s=i.exportClause&&Pf(i.exportClause)?i.exportClause.elements:w.createNodeArray([]),l=!i.isTypeOnly&&!!(om(t.getCompilerOptions())||An(s,u=>u.isTypeOnly));e.replaceNode(r,i,w.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,w.createNamedExports(w.createNodeArray([...s,...SMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function EMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,w.createExportDeclaration(void 0,!1,w.createNamedExports(SMe(i,om(t.getCompilerOptions()))),void 0,void 0))}function SMe(e,t){return w.createNodeArray(Ot(e,r=>w.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function SZe(e){if(e.valueDeclaration===void 0)return Xc(e.declarations);const t=e.valueDeclaration,r=wi(t)?ii(t.parent.parent,Ll):void 0;return r&&Le(r.declarationList.declarations)===1?r:t}var E$,ffe,TZe=T({"src/services/codefixes/fixImportNonExportedMember.ts"(){si(),xa(),E$="fixImportNonExportedMember",ffe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],Aa({errorCodes:ffe,fixIds:[E$],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=vMe(t,r.start,i);if(o===void 0)return;const s=_r.ChangeTracker.with(e,l=>EZe(l,i,o));return[la(E$,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],E$,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return FD(_r.ChangeTracker.with(e,r=>{const i=new Map;zD(e,ffe,o=>{const s=vMe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:p}=s;if(b$(p,l.isTypeOnly)===void 0&&yk(u))r.insertExportModifier(p,u);else{const h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{const l=b$(s,!0);l&&l.isTypeOnly?(pfe(r,t,s,o.typeOnlyExports,l),pfe(r,t,s,o.exports,b$(s,!1))):pfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function AZe(e,t){const r=po(e,t);return Gn(r,i=>i.kind===202)}function IZe(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;const l=w.updateNamedTupleMember(r,r.dotDotDotToken||(s?w.createToken(26):void 0),r.name,r.questionToken||(o?w.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var S$,TMe,xZe=T({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){si(),xa(),S$="fixIncorrectNamedTupleSyntax",TMe=[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],Aa({errorCodes:TMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=AZe(r,i.start),s=_r.ChangeTracker.with(t,l=>IZe(l,r,o));return[la(S$,s,f.Move_labeled_tuple_element_modifiers_to_labels,S$,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[S$]})}});function AMe(e,t,r,i){const o=po(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)&&!F_(s))return;const l=r.program.getTypeChecker();let u;if(Wr(s)&&s.name===o){N.assert($h(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(mr(s)&&s.operatorToken.kind===103&&s.left===o&&Ji(o)){const p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Id(s)&&s.right===o){const p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(np(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for spelling (import)");const p=Gn(o,kc),h=DZe(r,p);h&&h.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(F_(s)&&s.name===o){N.assertNode(o,Ve,"Expected an identifier for JSX attribute");const p=Gn(o,cd),h=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(b3(s)&&$c(s)&&s.name===o){const p=Gn(o,ui),h=p?D_(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(u=l.getSuggestedSymbolForNonexistentClassMember(pc(o),m))}else{const p=rT(o),h=pc(o);N.assert(h!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,h,RZe(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function IMe(e,t,r,i,o){const s=Sl(i);if(!tf(s,o)&&Wr(r.parent)){const l=i.valueDeclaration;l&&sd(l)&&Ji(l.name)?e.replaceNode(t,r,w.createIdentifier(s)):e.replaceNode(t,r.parent,w.createElementAccessExpression(r.parent.expression,w.createStringLiteral(s)))}else e.replaceNode(t,r,w.createIdentifier(s))}function RZe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function DZe(e,t){var r;if(!t||!ls(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var mfe,_fe,NZe=T({"src/services/codefixes/fixSpelling.ts"(){si(),xa(),mfe="fixSpelling",_fe=[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],Aa({errorCodes:_fe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=AMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=os(e.host.getCompilationSettings()),u=_r.ChangeTracker.with(e,p=>IMe(p,t,o,s,l));return[la("spelling",u,[f.Change_spelling_to_0,Sl(s)],mfe,f.Fix_all_detected_spelling_errors)]},fixIds:[mfe],getAllCodeActions:e=>Es(e,_fe,(t,r)=>{const i=AMe(r.file,r.start,e,r.code),o=os(e.host.getCompilationSettings());i&&IMe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function xMe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=ca([i]);return e.createAnonymousType(void 0,o,[],[],[])}function hfe(e,t,r,i){if(!t.body||!Xo(t.body)||Le(t.body.statements)!==1)return;const o=Ha(t.body.statements);if(eu(o)&&gfe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(i1(o)&&eu(o.statement)){const s=w.createObjectLiteralExpression([w.createPropertyAssignment(o.label,o.statement.expression)]),l=xMe(e,o.label,o.statement.expression);if(gfe(e,t,l,r,i))return Gs(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(Xo(o)&&Le(o.statements)===1){const s=Ha(o.statements);if(i1(s)&&eu(s.statement)){const l=w.createObjectLiteralExpression([w.createPropertyAssignment(s.label,s.statement.expression)]),u=xMe(e,s.label,s.statement.expression);if(gfe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function gfe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){Zr(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,ca(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function RMe(e,t,r,i){const o=po(t,r);if(!o.parent)return;const s=Gn(o.parent,Bs);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||!cf(s.type,o)?void 0:hfe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!sa(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?hfe(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!Wg(o)||!dR(o.parent)&&!F_(o.parent))return;const p=CZe(o.parent);return!p||!Bs(p)||!p.body?void 0:hfe(e,p,e.getTypeAtLocation(o.parent),!0)}}function CZe(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 DMe(e,t,r,i){Tp(r);const o=hO(t);e.replaceNode(t,i,w.createReturnStatement(r),{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function NMe(e,t,r,i,o,s){const l=d5(i)?w.createParenthesizedExpression(i):i;Tp(o),aT(o,l),e.replaceNode(t,r.body,l)}function CMe(e,t,r,i){e.replaceNode(t,r.body,w.createParenthesizedExpression(i))}function PZe(e,t,r){const i=_r.ChangeTracker.with(e,o=>DMe(o,e.sourceFile,t,r));return la(T$,i,f.Add_a_return_statement,A$,f.Add_all_missing_return_statement)}function MZe(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>NMe(s,e.sourceFile,t,r,i));return la(T$,o,f.Remove_braces_from_arrow_function_body,I$,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function LZe(e,t,r){const i=_r.ChangeTracker.with(e,o=>CMe(o,e.sourceFile,t,r));return la(T$,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,x$,f.Wrap_all_object_literal_with_parentheses)}var T$,A$,I$,x$,yfe,kZe=T({"src/services/codefixes/returnValueCorrect.ts"(){si(),xa(),T$="returnValueCorrect",A$="fixAddReturnStatement",I$="fixRemoveBracesFromArrowFunctionBody",x$="fixWrapTheBlockWithParen",yfe=[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],Aa({errorCodes:yfe,fixIds:[A$,I$,x$],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=RMe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?xn([PZe(t,l.expression,l.statement)],Gs(l.declaration)?MZe(t,l.declaration,l.expression,l.commentSource):void 0):[LZe(t,l.declaration,l.expression)]},getAllCodeActions:e=>Es(e,yfe,(t,r)=>{const i=RMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case A$:DMe(t,r.file,i.expression,i.statement);break;case I$:if(!Gs(i.declaration))return;NMe(t,r.file,i.declaration,i.expression,i.commentSource);break;case x$:if(!Gs(i.declaration))return;CMe(t,r.file,i.declaration,i.expression);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function PMe(e,t,r,i,o){var s;const l=po(e,t),u=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&Oa(u)&&sa(u.parent)))return;const I=Br(u.parent.arguments,O=>O===u);if(I<0)return;const R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[I]))return;const M=R.parameters[I].valueDeclaration;if(!(M&&Ao(M)&&Ve(M.name)))return;const C=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,I),!1,!1));return Le(C)?{kind:3,token:M.name,identifier:M.name.text,properties:C,parentDeclaration:u}:void 0}if(l.kind===19&&Oa(u)){const I=i.getContextualType(u)||i.getTypeAtLocation(u),R=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u),I,!1,!1));return Le(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!$h(l))return;if(Ve(l)&&zv(u)&&u.initializer&&Oa(u.initializer)){const I=i.getContextualType(l)||i.getTypeAtLocation(l),R=zo(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),I,!1,!1));return Le(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ve(l)&&cd(l.parent)){const I=os(o.getCompilerOptions()),R=GZe(i,I,l.parent);return Le(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ve(l)){const I=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(I&&Or(I)&16){const R=Xc(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:VMe(l)}}if(sa(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:VMe(l)}}if(!Wr(u))return;const p=nX(i.getTypeAtLocation(u.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Ve(l)&&sa(u.parent)){const I=An(h.declarations,Xl),R=I?.getSourceFile();if(I&&R&&!PD(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};const M=An(h.declarations,$i);if(e.commonJsModuleIndicator)return;if(M&&!PD(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}const m=An(h.declarations,ui);if(!m&&Ji(l))return;const v=m||An(h.declarations,I=>_d(I)||bp(I));if(v&&!PD(o,v.getSourceFile())){const I=!bp(v)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(I&&(Ji(l)||_d(v)))return;const R=v.getSourceFile(),M=bp(v)?0:(I?256:0)|(NX(l.text)?2:0),C=ud(R),O=ii(u.parent,sa);return{kind:0,token:l,call:O,modifierFlags:M,parentDeclaration:v,declSourceFile:R,isJSFile:C}}const A=An(h.declarations,I0);if(A&&!(p.flags&1056)&&!Ji(l)&&!PD(o,A.getSourceFile()))return{kind:1,token:l,parentDeclaration:A}}function wZe(e,t){return t.isJSFile?SA(OZe(e,t)):WZe(e,t)}function OZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(_d(t)||bp(t))return;const s=_r.ChangeTracker.with(e,u=>MMe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:Ji(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return la(cb,s,[l,o.text],cb,f.Add_all_missing_members)}function MMe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===231)return;const l=r.name.getText(),u=LMe(w.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Ji(i)){const l=w.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=OMe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=og(r);if(!l)return;const u=LMe(w.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function LMe(e,t){return w.createExpressionStatement(w.createAssignment(w.createPropertyAccessExpression(e,t),WI()))}function WZe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=kMe(e.program.getTypeChecker(),t,o),p=m=>_r.ChangeTracker.with(e,v=>wMe(v,r,t,s,u,m)),h=[la(cb,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],cb,f.Add_all_missing_members)];return l||Ji(o)||(i&2&&h.unshift(o_(cb,p(2),[f.Declare_private_property_0,s])),h.push(FZe(e,r,t,o.text,u))),h}function kMe(e,t,r){let i;if(r.parent.parent.kind===226){const 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{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||w.createKeywordTypeNode(133)}function wMe(e,t,r,i,o,s){const l=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,u=ui(r)?w.createPropertyDeclaration(l,i,void 0,o,void 0):w.createPropertySignature(void 0,i,void 0,o),p=OMe(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function OMe(e){let t;for(const r of e.members){if(!Jo(r))break;t=r}return t}function FZe(e,t,r,i,o){const s=w.createKeywordTypeNode(154),l=w.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=w.createIndexSignature(void 0,[l],o),p=_r.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,u));return o_(cb,p,[f.Add_index_signature_for_property_0,i])}function zZe(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,p=m=>_r.ChangeTracker.with(e,v=>WMe(e,v,l,s,m,r,i)),h=[la(cb,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],cb,f.Add_all_missing_members)];return o&2&&h.unshift(o_(cb,p(2),[f.Declare_private_method_0,u])),h}function WMe(e,t,r,i,o,s,l){const u=OI(l,e.program,e.preferences,e.host),p=ui(s)?174:173,h=nme(p,e,u,r,i,o,s),m=VZe(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),u.writeFixes(t)}function FMe(e,t,{token:r,parentDeclaration:i}){const o=bt(i.members,p=>{const h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=w.createEnumMember(r,o?w.createStringLiteral(r.text):void 0),u=tl(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function zMe(e,t,r){const i=uf(t.sourceFile,t.preferences),o=OI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?nme(262,t,o,r.call,Sr(r.token),r.modifierFlags,r.parentDeclaration):Z$(262,t,i,r.signature,_z(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&N.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Dm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function BMe(e,t,r){const i=OI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=bt(l.properties,_I),p=Ot(r.attributes,v=>{const A=R$(t,s,i,o,s.getTypeOfSymbol(v),r.parentDeclaration),I=w.createIdentifier(v.name),R=w.createJsxAttribute(I,w.createJsxExpression(void 0,A));return qa(I,R),R}),h=w.createJsxAttributes(u?[...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 GMe(e,t,r){const i=OI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=os(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Ot(r.properties,h=>{const m=R$(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return w.createPropertyAssignment(jZe(h,s,o,l),m)}),p={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,w.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function R$(e,t,r,i,o,s){if(o.flags&3)return WI();if(o.flags&134217732)return w.createStringLiteral("",i===0);if(o.flags&8)return w.createNumericLiteral(0);if(o.flags&64)return w.createBigIntLiteral("0n");if(o.flags&16)return w.createFalse();if(o.flags&1056){const l=o.symbol.exports?S6(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?w.createNumericLiteral(0):w.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return w.createNumericLiteral(o.value);if(o.flags&2048)return w.createBigIntLiteral(o.value);if(o.flags&128)return w.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?w.createFalse():w.createTrue();if(o.flags&65536)return w.createNull();if(o.flags&1048576)return qt(o.types,u=>R$(e,t,r,i,u,s))??WI();if(t.isArrayLikeType(o))return w.createArrayLiteralExpression();if(BZe(o)){const l=Ot(t.getPropertiesOfType(o),u=>{const p=R$(e,t,r,i,t.getTypeOfSymbol(u),s);return w.createPropertyAssignment(u.name,p)});return w.createObjectLiteralExpression(l,!0)}if(Or(o)&16){if(An(o.symbol.declarations||et,Ym(bh,vh,ql))===void 0)return WI();const u=t.getSignaturesOfType(o,0);return u===void 0?WI():Z$(218,e,i,u[0],_z(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??WI()}if(Or(o)&1){const l=zg(o.symbol);if(l===void 0||KE(l))return WI();const u=og(l);return u&&Le(u.parameters)?WI():w.createNewExpression(w.createIdentifier(o.symbol.name),void 0,void 0)}return WI()}function WI(){return w.createIdentifier("undefined")}function BZe(e){return e.flags&524288&&(Or(e)&128||e.symbol&&ii(ah(e.symbol.declarations),bp))}function GZe(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return et;const o=i.getProperties();if(!Le(o))return et;const s=new Set;for(const l of r.attributes.properties)if(F_(l)&&s.add(aP(l.name)),_I(l)){const u=e.getTypeAtLocation(l.expression);for(const p of u.getProperties())s.add(p.escapedName)}return nr(o,l=>tf(l.name,t,1)&&!(l.flags&16777216||xl(l)&48||s.has(l.escapedName)))}function VZe(e,t){if(bp(e))return;const r=Gn(t,i=>ql(i)||Ml(i));return r&&r.parent===e?r:void 0}function jZe(e,t,r,i){if(fh(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Za(o))return o}return K3(e.name,t,r===0,!1,!1)}function VMe(e){if(Gn(e,SP)){const t=Gn(e.parent,Dm);if(t)return t}return jn(e)}var cb,sz,lz,cz,vfe,UZe=T({"src/services/codefixes/fixAddMissingMember.ts"(){si(),xa(),cb="fixMissingMember",sz="fixMissingProperties",lz="fixMissingAttributes",cz="fixMissingFunctionDeclaration",vfe=[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],Aa({errorCodes:vfe,getCodeActions(e){const t=e.program.getTypeChecker(),r=PMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=_r.ChangeTracker.with(e,o=>GMe(o,e,r));return[la(sz,i,f.Add_missing_properties,sz,f.Add_all_missing_properties)]}if(r.kind===4){const i=_r.ChangeTracker.with(e,o=>BMe(o,e,r));return[la(lz,i,f.Add_missing_attributes,lz,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=_r.ChangeTracker.with(e,o=>zMe(o,e,r));return[la(cz,i,[f.Add_missing_function_declaration_0,r.token.text],cz,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=_r.ChangeTracker.with(e,o=>FMe(o,e.program.getTypeChecker(),r));return[la(cb,i,[f.Add_missing_enum_member_0,r.token.text],cb,f.Add_all_missing_members)]}return So(zZe(e,r),wZe(e,r))}},fixIds:[cb,cz,sz,lz],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return FD(_r.ChangeTracker.with(e,l=>{zD(e,vfe,u=>{const p=PMe(u.file,u.start,u.code,i,e.program);if(!(!p||!Rm(o,as(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===cz&&(p.kind===2||p.kind===5))zMe(l,e,p);else if(r===sz&&p.kind===3)GMe(l,e,p);else if(r===lz&&p.kind===4)BMe(l,e,p);else if(p.kind===1&&FMe(l,i,p),p.kind===0){const{parentDeclaration:h,token:m}=p,v=t0(s,h,()=>[]);v.some(A=>A.token.text===m.text)||v.push(p)}}}),s.forEach((u,p)=>{const h=bp(p)?void 0:ume(p,i);for(const m of u){if(h?.some(O=>{const U=s.get(O);return!!U&&U.some(({token:K})=>K.text===m.token.text)}))continue;const{parentDeclaration:v,declSourceFile:A,modifierFlags:I,token:R,call:M,isJSFile:C}=m;if(M&&!Ji(R))WMe(e,l,M,R,I&256,v,A);else if(C&&!_d(v)&&!bp(v))MMe(l,A,v,R,!!(I&256));else{const O=kMe(i,v,R);wMe(l,A,v,R.text,O,I&256)}}})}))}})}});function jMe(e,t,r){const i=oa(HZe(t,r),sa),o=w.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function HZe(e,t){let r=po(e,t.start);const i=Kl(t);for(;r.endjMe(o,t,r));return[la(D$,i,f.Add_missing_new_operator_to_call,D$,f.Add_missing_new_operator_to_all_calls)]},fixIds:[D$],getAllCodeActions:e=>Es(e,bfe,(t,r)=>jMe(t,e.sourceFile,r))})}});function UMe(e,t,r){const i=po(e,r),o=Gn(i,sa);if(o===void 0||Le(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=nr(l.symbol.declarations,HMe);if(u===void 0)return;const p=tl(u);if(p===void 0||p.body===void 0||PD(t,p.getSourceFile()))return;const h=JZe(p);if(h===void 0)return;const m=[],v=[],A=Le(p.parameters),I=Le(o.arguments);if(A>I)return;const R=[p,...XZe(p,u)];for(let M=0,C=0,O=0;M{Le(o.parameters)?e.replaceNodeRangeWithNodes(t,Ha(o.parameters),Ya(o.parameters),qMe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:_r.LeadingTriviaOption.IncludeAll,trailingTriviaOption:_r.TrailingTriviaOption.Include}):Xe(qMe(o,i),(s,l)=>{Le(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function HMe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function qMe(e,t){const r=Ot(e.parameters,i=>w.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:o}of t){const s=i>0?r[i-1]:void 0;r.splice(i,0,w.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?w.createToken(58):o.questionToken,o.type,o.initializer))}return r}function XZe(e,t){const r=[];for(const i of t)if(YZe(i)){if(Le(i.parameters)===Le(e.parameters)){r.push(i);continue}if(Le(i.parameters)>Le(e.parameters))return[]}return r}function YZe(e){return HMe(e)&&e.body===void 0}function JMe(e,t,r){return w.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function $Ze(e,t){return Le(e)&&bt(e,r=>tN$(u,e.sourceFile,i,o)),[Le(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],uz,f.Add_all_missing_parameters)),Le(s)&&xn(l,la(dz,_r.ChangeTracker.with(e,u=>N$(u,e.sourceFile,i,s)),[Le(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],dz,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Es(e,Efe,(t,r)=>{const i=UMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===uz&&N$(t,e.sourceFile,o,s),e.fixId===dz&&N$(t,e.sourceFile,o,l)}})})}});function KMe(e,t){return{type:"install package",file:e,packageName:t}}function XMe(e,t){const r=ii(po(e,t),Ma);if(!r)return;const i=r.text,{packageName:o}=Sw(i);return Yc(o)?void 0:o}function YMe(e,t,r){var i;return r===Sfe?G_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?MF(e):void 0}var $Me,C$,Sfe,Tfe,ZZe=T({"src/services/codefixes/fixCannotFindModule.ts"(){si(),xa(),$Me="fixCannotFindModule",C$="installTypesPackage",Sfe=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Tfe=[Sfe,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Aa({errorCodes:Tfe,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=XMe(i,o);if(s===void 0)return;const l=YMe(s,r,t.errorCode);return l===void 0?[]:[la($Me,[],[f.Install_0,l],C$,f.Install_all_missing_types_packages,KMe(i.fileName,l))]},fixIds:[C$],getAllCodeActions:e=>Es(e,Tfe,(t,r,i)=>{const o=XMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case C$:{const s=YMe(o,e.host,r.code);s&&i.push(KMe(r.file.fileName,s));break}default:N.fail(`Bad fixId: ${e.fixId}`)}})})}});function QMe(e,t){const r=po(e,t);return oa(r.parent,ui)}function ZMe(e,t,r,i,o){const s=D_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(eet),h=OI(t,r.program,o,r.host);tme(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function eet(e){const t=Uv(Ha(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Afe,P$,tet=T({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){si(),xa(),Afe=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],P$="fixClassDoesntImplementInheritedAbstractMember",Aa({errorCodes:Afe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=_r.ChangeTracker.with(t,s=>ZMe(QMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[la(P$,o,f.Implement_inherited_abstract_class,P$,f.Implement_all_inherited_abstract_classes)]},fixIds:[P$],getAllCodeActions:function(t){const r=new Map;return Es(t,Afe,(i,o)=>{const s=QMe(o.file,o.start);Rm(r,as(s))&&ZMe(s,t.sourceFile,t,i,t.preferences)})}})}});function e2e(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function t2e(e,t){const r=po(e,t);if(r.kind!==110)return;const i=Gp(r),o=n2e(i.body);return o&&!o.expression.arguments.some(s=>Wr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function n2e(e){return eu(e)&&TS(e.expression)?e:ea(e)?void 0:Ho(e,n2e)}var M$,Ife,net=T({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){si(),xa(),M$="classSuperMustPrecedeThisAccess",Ife=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Aa({errorCodes:Ife,getCodeActions(e){const{sourceFile:t,span:r}=e,i=t2e(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=_r.ChangeTracker.with(e,u=>e2e(u,t,o,s));return[la(M$,l,f.Make_super_call_the_first_statement_in_the_constructor,M$,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[M$],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Es(e,Ife,(i,o)=>{const s=t2e(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Rm(r,as(l.parent))&&e2e(i,t,l,u)})}})}});function r2e(e,t){const r=po(e,t);return N.assert(Ml(r.parent),"token should be at the constructor declaration"),r.parent}function i2e(e,t,r){const i=w.createExpressionStatement(w.createCallExpression(w.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var L$,xfe,ret=T({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){si(),xa(),L$="constructorForDerivedNeedSuperCall",xfe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],Aa({errorCodes:xfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=r2e(t,r.start),o=_r.ChangeTracker.with(e,s=>i2e(s,t,i));return[la(L$,o,f.Add_missing_super_call,L$,f.Add_all_missing_super_calls)]},fixIds:[L$],getAllCodeActions:e=>Es(e,xfe,(t,r)=>i2e(t,e.sourceFile,r2e(r.file,r.start)))})}});function o2e(e,t){ame(e,t,"jsx",w.createStringLiteral("react"))}var Rfe,Dfe,iet=T({"src/services/codefixes/fixEnableJsxFlag.ts"(){si(),xa(),Rfe="fixEnableJsxFlag",Dfe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Aa({errorCodes:Dfe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=_r.ChangeTracker.with(t,o=>o2e(o,r));return[o_(Rfe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Rfe],getAllCodeActions:e=>Es(e,Dfe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&o2e(t,r)})})}});function a2e(e,t,r){const i=An(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=An(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;const s=lme(o.file,yu(o.start,o.length));if(s!==void 0&&vt(s)&&mr(s.parent))return{suggestion:oet(o.messageText),expression:s.parent,arg:s}}function s2e(e,t,r,i){const o=w.createCallExpression(w.createPropertyAccessExpression(w.createIdentifier("Number"),w.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?w.createPrefixUnaryExpression(54,o):o)}function oet(e){const[,t]=z_(e,` `,0).match(/'(.*)'/)||[];return t}var k$,Nfe,aet=T({"src/services/codefixes/fixNaNEquality.ts"(){si(),xa(),k$="fixNaNEquality",Nfe=[f.This_condition_will_always_return_0.code],Aa({errorCodes:Nfe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=a2e(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,p=_r.ChangeTracker.with(e,h=>s2e(h,t,u,l));return[la(k$,p,[f.Use_0,s],k$,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[k$],getAllCodeActions:e=>Es(e,Nfe,(t,r)=>{const i=a2e(e.program,r.file,yu(r.start,r.length));i&&s2e(t,r.file,i.arg,i.expression)})})}}),set=T({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){si(),xa(),Aa({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){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=wu(r);if(s>=5&&s<99){const h=_r.ChangeTracker.with(t,m=>{ame(m,i,"module",w.createStringLiteral("esnext"))});o.push(o_("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=os(r);if(u<4||u>99){const h=_r.ChangeTracker.with(t,m=>{if(!TC(i))return;const A=[["target",w.createStringLiteral("es2017")]];s===1&&A.push(["module",w.createStringLiteral("commonjs")]),ome(m,i,A)});o.push(o_("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function l2e(e,t,r){e.replaceNode(t,r,w.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function c2e(e,t){return oa(po(e,t).parent,rp)}var w$,Cfe,cet=T({"src/services/codefixes/fixPropertyAssignment.ts"(){si(),xa(),w$="fixPropertyAssignment",Cfe=[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],Aa({errorCodes:Cfe,fixIds:[w$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=c2e(t,r.start),o=_r.ChangeTracker.with(e,s=>l2e(s,e.sourceFile,i));return[la(w$,o,[f.Change_0_to_1,"=",":"],w$,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Es(e,Cfe,(t,r)=>l2e(t,r.file,c2e(r.file,r.start)))})}});function u2e(e,t){const r=po(e,t),i=su(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function d2e(e,t,r,i){if(e.replaceNode(t,r,w.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},w.createToken(28));const l=t.text;let u=o.end;for(;ud2e(l,t,i,o));return[la(O$,s,f.Change_extends_to_implements,O$,f.Change_all_extended_interfaces_to_implements)]},fixIds:[O$],getAllCodeActions:e=>Es(e,Pfe,(t,r)=>{const i=u2e(r.file,r.start);i&&d2e(t,r.file,i.extendsToken,i.heritageClauses)})})}});function p2e(e,t,r){const i=po(e,t);if(Ve(i)||Ji(i))return{node:i,className:r===Mfe?su(i).name.text:void 0}}function f2e(e,t,{node:r,className:i}){Tp(r),e.replaceNode(t,r,w.createPropertyAccessExpression(i?w.createIdentifier(i):w.createThis(),r))}var W$,Mfe,Lfe,det=T({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){si(),xa(),W$="forgottenThisPropertyAccess",Mfe=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Lfe=[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,Mfe],Aa({errorCodes:Lfe,getCodeActions(e){const{sourceFile:t}=e,r=p2e(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>f2e(o,t,r));return[la(W$,i,[f.Add_0_to_unresolved_variable,r.className||"this"],W$,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[W$],getAllCodeActions:e=>Es(e,Lfe,(t,r)=>{const i=p2e(r.file,r.start,r.code);i&&f2e(t,e.sourceFile,i)})})}});function pet(e){return xs(Ofe,e)}function kfe(e,t,r,i,o){const s=r.getText()[i];if(!pet(s))return;const l=o?Ofe[s]:`{${dM(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var F$,pz,wfe,Ofe,fet=T({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){si(),xa(),F$="fixInvalidJsxCharacters_expression",pz="fixInvalidJsxCharacters_htmlEntity",wfe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],Aa({errorCodes:wfe,fixIds:[F$,pz],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=_r.ChangeTracker.with(e,l=>kfe(l,r,t,i.start,!1)),s=_r.ChangeTracker.with(e,l=>kfe(l,r,t,i.start,!0));return[la(F$,o,f.Wrap_invalid_character_in_an_expression_container,F$,f.Wrap_all_invalid_characters_in_an_expression_container),la(pz,s,f.Convert_invalid_character_to_its_html_entity_code,pz,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Es(e,wfe,(t,r)=>kfe(t,e.preferences,r.file,r.start,e.fixId===pz))}}),Ofe={">":">","}":"}"}}});function met(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=_r.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return la(fz,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],fz,f.Delete_all_unused_param_tags)}function _et(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Le(i.parameters))return;const s=e.sourceFile,l=p0(i),u=new Set;for(const v of l)r_(v)&&Ve(v.name)&&u.add(v.name.escapedText);const p=qt(i.parameters,v=>Ve(v.name)&&!u.has(v.name.escapedText)?v.name.getText(s):void 0);if(p===void 0)return;const h=w.updateJSDocParameterTag(o,o.tagName,w.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=_r.ChangeTracker.with(e,v=>v.replaceJSDocComment(s,r,Ot(l,A=>A===o?h:A)));return o_(Wfe,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function m2e(e,t){const r=po(e,t);if(r.parent&&r_(r.parent)&&Ve(r.parent.name)){const i=r.parent,o=DS(i),s=g0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var fz,Wfe,Ffe,het=T({"src/services/codefixes/fixUnmatchedParameter.ts"(){si(),xa(),fz="deleteUnmatchedParameter",Wfe="renameUnmatchedParameter",Ffe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Aa({fixIds:[fz,Wfe],errorCodes:Ffe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=m2e(r,i.start);if(s)return xn(o,met(t,s)),xn(o,_et(t,s)),o},getAllCodeActions:function(t){const r=new Map;return FD(_r.ChangeTracker.with(t,i=>{zD(t,Ffe,({file:o,start:s})=>{const l=m2e(o,s);l&&r.set(l.signature,xn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===fz){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function get(e,t,r){const i=ii(po(e,r),Ve);if(!i||i.parent.kind!==183)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return An(s?.declarations||et,Ym(Eh,np,tu))}function yet(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();o3(o,u=>{if(bu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function vet(e,t,r,i){LI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var z$,_2e,bet=T({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){si(),xa(),z$="fixUnreferenceableDecoratorMetadata",_2e=[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],Aa({errorCodes:_2e,getCodeActions:e=>{const t=get(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,s=>t.kind===276&&vet(s,e.sourceFile,t,e.program)),i=_r.ChangeTracker.with(e,s=>yet(s,e.sourceFile,t,e.program));let o;return r.length&&(o=xn(o,o_(z$,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=xn(o,o_(z$,i,f.Use_import_type))),o},fixIds:[z$]})}});function h2e(e,t,r){e.replaceNode(t,r.parent,w.createKeywordTypeNode(159))}function jO(e,t){return la(UO,e,t,V$,f.Delete_all_unused_declarations)}function g2e(e,t,r){e.delete(t,N.checkDefined(oa(r.parent,gj).typeParameters,"The type parameter to delete should exist"))}function zfe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function y2e(e){return e.kind===102?ii(e.parent,kc):void 0}function v2e(e,t){return Uc(t.parent)&&Ha(t.parent.getChildren(e))===t}function b2e(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function Eet(e,t,r){Xe(r.elements,i=>e.delete(t,i))}function Tet(e,t,r,{parent:i}){if(wi(i)&&i.initializer&&kE(i.initializer))if(Uc(i.parent)&&Le(i.parent.declarations)>1){const 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(u5(r.text,s-1),s),suffix:hO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function E2e(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=oa(i.parent,FS).typeParameter.name),Ve(i)&&Aet(i)&&(e.replaceNode(r,i,w.createIdentifier(`_${i.text}`)),Ao(i.parent)&&$x(i.parent).forEach(o=>{Ve(o.name)&&e.replaceNode(r,o.name,w.createIdentifier(`_${o.name.text}`))})))}function Aet(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 B$(e,t,r,i,o,s,l,u){Iet(t,r,e,i,o,s,l,u),Ve(t)&&Ws.Core.eachSymbolReferenceInFile(t,i,e,p=>{Wr(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&Net(p)&&r.delete(e,p.parent.parent)})}function Iet(e,t,r,i,o,s,l,u){const{parent:p}=e;if(Ao(p))xet(t,r,p,i,o,s,l,u);else if(!(u&&Ve(e)&&Ws.Core.isSymbolReferencedInFile(e,i,r))){const h=Eh(p)?e:Za(p)?p.parent:p;N.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function xet(e,t,r,i,o,s,l,u=!1){if(Ret(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ve(r.name)||Ws.Core.isSymbolReferencedInFile(r.name,i,t)))for(const p of r.modifiers)Ia(p)&&e.deleteModifier(t,p);else!r.initializer&&S2e(r,i,o)&&e.delete(t,r)}function S2e(e,t,r){const i=e.parent.parameters.indexOf(e);return!Ws.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function Ret(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const p=u.parameters.indexOf(r),h=ql(u)?u.name:u,m=Ws.Core.getReferencedSymbolsForNode(u.pos,h,o,i,s);if(m){for(const v of m)for(const A of v.references)if(A.kind===Ws.EntryKind.Node){const I=_P(A.node)&&sa(A.node.parent)&&A.node.parent.arguments.length>p,R=Wr(A.node.parent)&&_P(A.node.parent.expression)&&sa(A.node.parent.parent)&&A.node.parent.parent.arguments.length>p,M=(ql(A.node.parent)||vh(A.node.parent))&&A.node.parent!==r.parent&&A.node.parent.parameters.length>p;if(I||R||M)return!1}}return!0;case 262:return u.name&&Det(e,t,u.name)?T2e(u,r,l):!0;case 218:case 219:return T2e(u,r,l);case 178:return!1;case 177:return!0;default:return N.failBadSyntaxKind(u)}}function Det(e,t,r){return!!Ws.Core.eachSymbolReferenceInFile(r,e,t,i=>Ve(i)&&sa(i.parent)&&i.parent.arguments.includes(i))}function T2e(e,t,r){const i=e.parameters,o=i.indexOf(t);return N.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Ve(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Net(e){return(mr(e.parent)&&e.parent.left===e||(gH(e.parent)||tb(e.parent))&&e.parent.operand===e)&&eu(e.parent.parent)}var UO,G$,V$,mz,j$,Bfe,Cet=T({"src/services/codefixes/fixUnusedIdentifier.ts"(){si(),xa(),UO="unusedIdentifier",G$="unusedIdentifier_prefix",V$="unusedIdentifier_delete",mz="unusedIdentifier_deleteImports",j$="unusedIdentifier_infer",Bfe=[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],Aa({errorCodes:Bfe,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=po(r,e.span.start);if(sm(u))return[jO(_r.ChangeTracker.with(e,v=>v.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const v=_r.ChangeTracker.with(e,A=>g2e(A,r,u));return[jO(v,f.Remove_type_parameters)]}const p=y2e(u);if(p){const v=_r.ChangeTracker.with(e,A=>A.delete(r,p));return[la(UO,v,[f.Remove_import_from_0,uoe(p)],mz,f.Delete_all_unused_imports)]}else if(zfe(u)){const v=_r.ChangeTracker.with(e,A=>B$(r,u,A,s,l,i,o,!1));if(v.length)return[la(UO,v,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],mz,f.Delete_all_unused_imports)]}if(am(u.parent)||t1(u.parent)){if(Ao(u.parent.parent)){const v=u.parent.elements,A=[v.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Ot(v,I=>I.getText(r)).join(", ")];return[jO(_r.ChangeTracker.with(e,I=>Eet(I,r,u.parent)),A)]}return[jO(_r.ChangeTracker.with(e,v=>Tet(e,v,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(v2e(r,u))return[jO(_r.ChangeTracker.with(e,v=>b2e(v,r,u.parent)),f.Remove_variable_statement)];const h=[];if(u.kind===140){const v=_r.ChangeTracker.with(e,I=>h2e(I,r,u)),A=oa(u.parent,FS).typeParameter.name.text;h.push(la(UO,v,[f.Replace_infer_0_with_unknown,A],j$,f.Replace_all_unused_infer_with_unknown))}else{const v=_r.ChangeTracker.with(e,A=>B$(r,u,A,s,l,i,o,!1));if(v.length){const A=Za(u.parent)?u.parent:u;h.push(jO(v,[f.Remove_unused_declaration_for_Colon_0,A.getText(r)]))}}const m=_r.ChangeTracker.with(e,v=>E2e(v,t,r,u));return m.length&&h.push(la(UO,m,[f.Prefix_0_with_an_underscore,u.getText(r)],G$,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[G$,V$,mz,j$],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Es(e,Bfe,(l,u)=>{const p=po(t,u.start);switch(e.fixId){case G$:E2e(l,u.code,t,p);break;case mz:{const h=y2e(p);h?l.delete(t,h):zfe(p)&&B$(t,p,l,o,s,r,i,!0);break}case V$:{if(p.kind===140||zfe(p))break;if(sm(p))l.delete(t,p);else if(p.kind===30)g2e(l,t,p);else if(am(p.parent)){if(p.parent.parent.initializer)break;(!Ao(p.parent.parent)||S2e(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(t1(p.parent.parent)&&p.parent.parent.parent.initializer)break;v2e(t,p)?b2e(l,t,p.parent):B$(t,p,l,o,s,r,i,!0)}break}case j$:p.kind===140&&h2e(l,t,p);break;default:N.fail(JSON.stringify(e.fixId))}})}})}});function A2e(e,t,r,i,o){const s=po(t,r),l=Gn(s,qi);if(l.getStart(t)!==s.getStart(t)){const p=JSON.stringify({statementKind:N.formatSyntaxKind(l.kind),tokenKind:N.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});N.fail("Token and statement should start at the same point. "+p)}const u=(Xo(l.parent)?l.parent:l).parent;if(!Xo(l.parent)||l===Ha(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Xo(l.parent))break;e.replaceNode(t,l,w.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Xo(l.parent)){const p=r+i,h=N.checkDefined(Pet(xU(l.parent.statements,l),m=>m.posA2e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[la(U$,r,f.Remove_unreachable_code,U$,f.Remove_all_unreachable_code)]},fixIds:[U$],getAllCodeActions:e=>Es(e,Gfe,(t,r)=>A2e(t,r.file,r.start,r.length,r.code))})}});function I2e(e,t,r){const i=po(t,r),o=oa(i.parent,i1),s=i.getStart(t),l=o.statement.getStart(t),u=Rf(s,l,t)?l:ka(t.text,ys(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var H$,Vfe,Let=T({"src/services/codefixes/fixUnusedLabel.ts"(){si(),xa(),H$="fixUnusedLabel",Vfe=[f.Unused_label.code],Aa({errorCodes:Vfe,getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>I2e(r,e.sourceFile,e.span.start));return[la(H$,t,f.Remove_unused_label,H$,f.Remove_all_unused_labels)]},fixIds:[H$],getAllCodeActions:e=>Es(e,Vfe,(t,r)=>I2e(t,r.file,r.start))})}});function x2e(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function R2e(e,t,r){const i=Gn(po(e,t),ket),o=i&&i.type;return o&&{typeNode:o,type:wet(r,o)}}function ket(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 wet(e,t){if(YR(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(xn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var jfe,q$,Ufe,Oet=T({"src/services/codefixes/fixJSDocTypes.ts"(){si(),xa(),jfe="fixJSDocTypes_plain",q$="fixJSDocTypes_nullable",Ufe=[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],Aa({errorCodes:Ufe,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=R2e(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,jfe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,q$,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(h,m,v){const A=_r.ChangeTracker.with(e,I=>x2e(I,t,o,h,r));return la("jdocTypes",A,[f.Change_0_to_1,l,r.typeToString(h)],m,v)}},fixIds:[jfe,q$],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Es(e,Ufe,(s,l)=>{const u=R2e(l.file,l.start,o);if(!u)return;const{typeNode:p,type:h}=u,m=p.kind===321&&t===q$?o.getNullableType(h,32768):h;x2e(s,i,p,m,o)})}})}});function D2e(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function N2e(e,t){const r=po(e,t);if(Wr(r.parent)){let i=r.parent;for(;Wr(i.parent);)i=i.parent;return i.name}if(Ve(r))return r}var J$,Hfe,Wet=T({"src/services/codefixes/fixMissingCallParentheses.ts"(){si(),xa(),J$="fixMissingCallParentheses",Hfe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Aa({errorCodes:Hfe,fixIds:[J$],getCodeActions(e){const{sourceFile:t,span:r}=e,i=N2e(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>D2e(s,e.sourceFile,i));return[la(J$,o,f.Add_missing_call_parentheses,J$,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Es(e,Hfe,(t,r)=>{const i=N2e(r.file,r.start);i&&D2e(t,r.file,i)})})}});function Fet(e){if(e.type)return e.type;if(wi(e.parent)&&e.parent.type&&bh(e.parent.type))return e.parent.type.type}function C2e(e,t){const r=po(e,t),i=Gp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=ys(i,100,e);break;case 219:const s=i.typeParameters?30:21;o=ys(i,s,e)||Ha(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:Fet(i)}}function P2e(e,t,{insertBefore:r,returnType:i}){if(i){const o=ML(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,w.createTypeReferenceNode("Promise",w.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var K$,qfe,zet=T({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){si(),xa(),K$="fixAwaitInSyncFunction",qfe=[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],Aa({errorCodes:qfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=C2e(t,r.start);if(!i)return;const o=_r.ChangeTracker.with(e,s=>P2e(s,t,i));return[la(K$,o,f.Add_async_modifier_to_containing_function,K$,f.Add_all_missing_async_modifiers)]},fixIds:[K$],getAllCodeActions:function(t){const r=new Map;return Es(t,qfe,(i,o)=>{const s=C2e(o.file,o.start);!s||!Rm(r,as(s.insertBefore))||P2e(i,t.sourceFile,s)})}})}});function M2e(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){const u=o.program.getTypeChecker(),p=po(e,t).parent;N.assert(Ov(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");const h=p.parent;N.assert(ui(h),"erroneous accessors should only be inside classes");const m=ah(ume(h,u));if(!m)return[];const v=Vi(sR(p.name)),A=u.getPropertyOfType(u.getTypeAtLocation(m),v);if(!A||!A.valueDeclaration)return[];s=A.valueDeclaration.pos,l=A.valueDeclaration.end,e=jn(A.valueDeclaration)}else N.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return J2e(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Jfe,X$,Bet=T({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){si(),xa(),Jfe=[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],X$="fixPropertyOverrideAccessor",Aa({errorCodes:Jfe,getCodeActions(e){const t=M2e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[la(X$,t,f.Generate_get_and_set_accessors,X$,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[X$],getAllCodeActions:e=>Es(e,Jfe,(t,r)=>{const i=M2e(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function Get(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 vp(Gp(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 Vet(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 L2e(e,t,r,i,o,s,l,u,p){if(!mC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:h}=r,m=OI(t,o,p,u);switch(i=Vet(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(wi(h)&&l(h)||Jo(h)||yp(h))return k2e(e,m,t,h,o,u,s),m.writeFixes(e),h;if(Wr(h)){const I=HO(h.name,o,s),R=pM(I,h,o,u);if(R){const M=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,oa(h.parent.parent,eu),[M])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{const I=o.getTypeChecker().getSymbolAtLocation(r);return I&&I.valueDeclaration&&wi(I.valueDeclaration)&&l(I.valueDeclaration)?(k2e(e,m,jn(I.valueDeclaration),I.valueDeclaration,o,u,s),m.writeFixes(e),I.valueDeclaration):void 0}}const v=Gp(r);if(v===void 0)return;let A;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(vp(v)){w2e(e,m,t,v,o,u,s),A=v;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(v)){const I=oa(h,Ao);jet(e,m,t,I,v,o,u,s),A=I}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:rf(v)&&Ve(v.name)&&(Y$(e,m,t,v,HO(v.name,o,s),o,u),A=v);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vp(v)&&(w2e(e,m,t,v,o,u,s),A=v);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:_r.isThisTypeAnnotatable(v)&&l(v)&&(Uet(e,t,v,o,u,s),A=v);break;default:return N.fail(String(i))}return m.writeFixes(e),A}function k2e(e,t,r,i,o,s,l){Ve(i.name)&&Y$(e,t,r,i,HO(i.name,o,l),o,s)}function jet(e,t,r,i,o,s,l,u){if(!Ve(i.name))return;const p=Jet(o,r,s,u);if(N.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),lr(o))O2e(e,r,p,s,l);else{const h=Gs(o)&&!ys(o,21,r);h&&e.insertNodeBefore(r,Ha(o.parameters),w.createToken(21));for(const{declaration:m,type:v}of p)m&&!m.type&&!m.initializer&&Y$(e,t,r,m,v,s,l);h&&e.insertNodeAfter(r,Ya(o.parameters),w.createToken(22))}}function Uet(e,t,r,i,o,s){const l=W2e(r,t,i,s);if(!l||!l.length)return;const u=Xfe(i,l,s).thisParameter(),p=pM(u,r,i,o);p&&(lr(r)?Het(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function Het(e,t,r,i){e.addJSDocTags(t,r,[w.createJSDocThisTag(void 0,w.createJSDocTypeExpression(i))])}function w2e(e,t,r,i,o,s,l){const u=Xc(i.parameters);if(u&&Ve(i.name)&&Ve(u.name)){let p=HO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=HO(u.name,o,l)),lr(i)?O2e(e,r,[{declaration:u,type:p}],o,s):Y$(e,t,r,u,p,o,s)}}function Y$(e,t,r,i,o,s,l){const u=pM(o,i,s,l);if(u)if(lr(r)&&i.kind!==171){const p=wi(i)?ii(i.parent.parent,Ll):i;if(!p)return;const h=w.createJSDocTypeExpression(u),m=rf(i)?w.createJSDocReturnTag(void 0,h,void 0):w.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else qet(u,i,r,e,t,os(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function qet(e,t,r,i,o,s){const l=FI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Xe(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function O2e(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=Hi(r,u=>{const p=u.declaration;if(p.initializer||d0(p)||!Ve(p.name))return;const h=u.type&&pM(u.type,p,i,o);if(h){const m=w.cloneNode(p.name);return pr(m,7168),{name:w.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:h}}});if(l.length)if(Gs(s)||Os(s)){const u=Gs(s)&&!ys(s,21,t);u&&e.insertNodeBefore(t,Ha(s.parameters),w.createToken(21)),Xe(l,({typeNode:p,param:h})=>{const m=w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(p)),v=w.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),v,{suffix:" "})}),u&&e.insertNodeAfter(t,Ya(s.parameters),w.createToken(22))}else{const u=Ot(l,({name:p,typeNode:h,isOptional:m})=>w.createJSDocParameterTag(void 0,p,!!m,w.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,u)}}function Kfe(e,t,r){return Hi(Ws.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ws.EntryKind.Span?ii(i.node,Ve):void 0)}function HO(e,t,r){const i=Kfe(e,t,r);return Xfe(t,i,r).single()}function Jet(e,t,r,i){const o=W2e(e,t,r,i);return o&&Xfe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ve(s.name)?HO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function W2e(e,t,r,i){let o;switch(e.kind){case 176:o=ys(e,137,t);break;case 219:case 218:const s=e.parent;o=(wi(s)||Jo(s))&&Ve(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Kfe(o,r,i)}function Xfe(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:De=>i.createArrayType(De),Promise:De=>i.createPromiseType(De)},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 u(De){const Pe=new Map;for(const At of De)At.properties&&At.properties.forEach((Se,je)=>{Pe.has(je)||Pe.set(je,[]),Pe.get(je).push(Se)});const We=new Map;return Pe.forEach((At,Se)=>{We.set(Se,u(At))}),{isNumber:De.some(At=>At.isNumber),isString:De.some(At=>At.isString),isNumberOrString:De.some(At=>At.isNumberOrString),candidateTypes:Pi(De,At=>At.candidateTypes),properties:We,calls:Pi(De,At=>At.calls),constructs:Pi(De,At=>At.constructs),numberIndex:Xe(De,At=>At.numberIndex),stringIndex:Xe(De,At=>At.stringIndex),candidateThisTypes:Pi(De,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return he(v(t))}function h(De){if(t.length===0||!De.parameters)return;const Pe=l();for(const At of t)r.throwIfCancellationRequested(),A(At,Pe);const We=[...Pe.constructs||[],...Pe.calls||[]];return De.parameters.map((At,Se)=>{const je=[],at=Qh(At);let Gt=!1;for(const $e of We)if($e.argumentTypes.length<=Se)Gt=lr(De),je.push(i.getUndefinedType());else if(at)for(let It=Se;It<$e.argumentTypes.length;It++)je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[It]));else je.push(i.getBaseTypeOfLiteralType($e.argumentTypes[Se]));if(Ve(At.name)){const $e=v(Kfe(At.name,e,r));je.push(...at?Hi($e,i.getElementTypeOfArrayType):$e)}const yt=he(je);return{type:at?i.createArrayType(yt):yt,isOptional:Gt&&!at,declaration:At}})}function m(){const De=l();for(const Pe of t)r.throwIfCancellationRequested(),A(Pe,De);return he(De.candidateThisTypes||et)}function v(De){const Pe=l();for(const We of De)r.throwIfCancellationRequested(),A(We,Pe);return $(Pe)}function A(De,Pe){for(;GC(De);)De=De.parent;switch(De.parent.kind){case 244:R(De,Pe);break;case 225:Pe.isNumber=!0;break;case 224:M(De.parent,Pe);break;case 226:C(De,De.parent,Pe);break;case 296:case 297:O(De.parent,Pe);break;case 213:case 214:De.parent.expression===De?U(De.parent,Pe):I(De,Pe);break;case 211:K(De.parent,Pe);break;case 212:Z(De.parent,De,Pe);break;case 303:case 304:V(De.parent,Pe);break;case 172:se(De.parent,Pe);break;case 260:{const{name:We,initializer:At}=De.parent;if(De===We){At&&Ue(Pe,i.getTypeAtLocation(At));break}}default:return I(De,Pe)}}function I(De,Pe){tg(De)&&Ue(Pe,i.getContextualType(De))}function R(De,Pe){Ue(Pe,sa(De)?i.getVoidType():i.getAnyType())}function M(De,Pe){switch(De.operator){case 46:case 47:case 41:case 55:Pe.isNumber=!0;break;case 40:Pe.isNumberOrString=!0;break}}function C(De,Pe,We){switch(Pe.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const At=i.getTypeAtLocation(Pe.left===De?Pe.right:Pe.left);At.flags&1056?Ue(We,At):We.isNumber=!0;break;case 65:case 40:const Se=i.getTypeAtLocation(Pe.left===De?Pe.right:Pe.left);Se.flags&1056?Ue(We,Se):Se.flags&296?We.isNumber=!0:Se.flags&402653316?We.isString=!0:Se.flags&1||(We.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:Ue(We,i.getTypeAtLocation(Pe.left===De?Pe.right:Pe.left));break;case 103:De===Pe.left&&(We.isString=!0);break;case 57:case 61:De===Pe.left&&(De.parent.parent.kind===260||Lc(De.parent.parent,!0))&&Ue(We,i.getTypeAtLocation(Pe.right));break}}function O(De,Pe){Ue(Pe,i.getTypeAtLocation(De.parent.parent.expression))}function U(De,Pe){const We={argumentTypes:[],return_:l()};if(De.arguments)for(const At of De.arguments)We.argumentTypes.push(i.getTypeAtLocation(At));A(De,We.return_),De.kind===213?(Pe.calls||(Pe.calls=[])).push(We):(Pe.constructs||(Pe.constructs=[])).push(We)}function K(De,Pe){const We=hl(De.name.text);Pe.properties||(Pe.properties=new Map);const At=Pe.properties.get(We)||l();A(De,At),Pe.properties.set(We,At)}function Z(De,Pe,We){if(Pe===De.argumentExpression){We.isNumberOrString=!0;return}else{const At=i.getTypeAtLocation(De.argumentExpression),Se=l();A(De,Se),At.flags&296?We.numberIndex=Se:We.stringIndex=Se}}function V(De,Pe){const We=wi(De.parent.parent)?De.parent.parent:De.parent;Ee(Pe,i.getTypeAtLocation(We))}function se(De,Pe){Ee(Pe,i.getTypeAtLocation(De.parent))}function G(De,Pe){const We=[];for(const At of De)for(const{high:Se,low:je}of Pe)Se(At)&&(N.assert(!je(At),"Priority can't have both low and high"),We.push(je));return De.filter(At=>We.every(Se=>!Se(At)))}function ne(De){return he($(De))}function he(De){if(!De.length)return i.getAnyType();const Pe=i.getUnionType([i.getStringType(),i.getNumberType()]);let At=G(De,[{high:je=>je===i.getStringType()||je===i.getNumberType(),low:je=>je===Pe},{high:je=>!(je.flags&16385),low:je=>!!(je.flags&16385)},{high:je=>!(je.flags&114689)&&!(Or(je)&16),low:je=>!!(Or(je)&16)}]);const Se=At.filter(je=>Or(je)&16);return Se.length&&(At=At.filter(je=>!(Or(je)&16)),At.push(ve(Se))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ve(De){if(De.length===1)return De[0];const Pe=[],We=[],At=[],Se=[];let je=!1,at=!1;const Gt=Zp();for(const It of De){for(const Pn of i.getPropertiesOfType(It))Gt.add(Pn.escapedName,Pn.valueDeclaration?i.getTypeOfSymbolAtLocation(Pn,Pn.valueDeclaration):i.getAnyType());Pe.push(...i.getSignaturesOfType(It,0)),We.push(...i.getSignaturesOfType(It,1));const tn=i.getIndexInfoOfType(It,0);tn&&(At.push(tn.type),je=je||tn.isReadonly);const rn=i.getIndexInfoOfType(It,1);rn&&(Se.push(rn.type),at=at||rn.isReadonly)}const yt=ine(Gt,(It,tn)=>{const rn=tn.lengthi.getBaseTypeOfLiteralType(Gt)),at=(At=De.calls)!=null&&At.length?Y(De):void 0;return at&&je?Se.push(i.getUnionType([at,...je],2)):(at&&Se.push(at),Le(je)&&Se.push(...je)),Se.push(...oe(De)),Se}function Y(De){const Pe=new Map;De.properties&&De.properties.forEach((je,at)=>{const Gt=i.createSymbol(4,at);Gt.links.type=ne(je),Pe.set(at,Gt)});const We=De.calls?[Me(De.calls)]:[],At=De.constructs?[Me(De.constructs)]:[],Se=De.stringIndex?[i.createIndexInfo(i.getStringType(),ne(De.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Pe,We,At,Se)}function oe(De){if(!De.properties||!De.properties.size)return[];const Pe=s.filter(We=>fe(We,De));return 0Ne(We,De)):[]}function fe(De,Pe){return Pe.properties?!Gc(Pe.properties,(We,At)=>{const Se=i.getTypeOfPropertyOfType(De,At);return Se?We.calls?!i.getSignaturesOfType(Se,0).length||!i.isTypeAssignableTo(Se,ye(We.calls)):!i.isTypeAssignableTo(Se,ne(We)):!0}):!1}function Ne(De,Pe){if(!(Or(De)&4)||!Pe.properties)return De;const We=De.target,At=ah(We.typeParameters);if(!At)return De;const Se=[];return Pe.properties.forEach((je,at)=>{const Gt=i.getTypeOfPropertyOfType(We,at);N.assert(!!Gt,"generic should have all the properties of its reference."),Se.push(...pe(Gt,ne(je),At))}),o[De.symbol.escapedName](he(Se))}function pe(De,Pe,We){if(De===We)return[Pe];if(De.flags&3145728)return Pi(De.types,je=>pe(je,Pe,We));if(Or(De)&4&&Or(Pe)&4){const je=i.getTypeArguments(De),at=i.getTypeArguments(Pe),Gt=[];if(je&&at)for(let yt=0;ytSe.argumentTypes.length));for(let Se=0;Seat.argumentTypes[Se]||i.getUndefinedType())),De.some(at=>at.argumentTypes[Se]===void 0)&&(je.flags|=16777216),Pe.push(je)}const At=ne(u(De.map(Se=>Se.return_)));return i.createSignature(void 0,void 0,void 0,Pe,At,void 0,We,0)}function Ue(De,Pe){Pe&&!(Pe.flags&1)&&!(Pe.flags&131072)&&(De.candidateTypes||(De.candidateTypes=[])).push(Pe)}function Ee(De,Pe){Pe&&!(Pe.flags&1)&&!(Pe.flags&131072)&&(De.candidateThisTypes||(De.candidateThisTypes=[])).push(Pe)}}var $$,Yfe,Ket=T({"src/services/codefixes/inferFromUsage.ts"(){si(),xa(),$$="inferFromUsage",Yfe=[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],Aa({errorCodes:Yfe,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=po(t,i);let h;const m=_r.ChangeTracker.with(e,A=>{h=L2e(A,t,p,o,r,s,Dy,l,u)}),v=h&&Mo(h);return!v||m.length===0?void 0:[la($$,m,[Get(o,p),pc(v)],$$,f.Infer_all_types_from_usage)]},fixIds:[$$],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=NI();return Es(e,Yfe,(u,p)=>{L2e(u,t,po(p.file,p.start),p.code,r,i,l,o,s)})}})}});function F2e(e,t,r){if(lr(e))return;const i=po(e,r),o=Gn(i,Bs),s=o?.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function z2e(e,t,r,i){e.replaceNode(t,r,w.createTypeReferenceNode("Promise",[i]))}var Q$,$fe,Xet=T({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){si(),xa(),Q$="fixReturnTypeInAsyncFunction",$fe=[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],Aa({errorCodes:$fe,fixIds:[Q$],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=F2e(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:p,promisedTypeNode:h,promisedType:m}=l,v=_r.ChangeTracker.with(t,A=>z2e(A,r,u,h));return[la(Q$,v,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],Q$,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Es(e,$fe,(t,r)=>{const i=F2e(r.file,e.program.getTypeChecker(),r.start);i&&z2e(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function B2e(e,t,r,i){const{line:o}=bs(t,r);(!i||Ay(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Qfe,Zfe,eme,Yet=T({"src/services/codefixes/disableJsDiagnostics.ts"(){si(),xa(),Qfe="disableJsDiagnostics",Zfe="disableJsDiagnostics",eme=Hi(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0}),Aa({errorCodes:eme,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!lr(r)||!gk(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":Qy(s,l.options),p=[o_(Qfe,[VCe(r.fileName,[aO(r.checkJsDirective?dc(r.checkJsDirective.pos,r.checkJsDirective.end):yu(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return _r.isValidLocationToAddComment(r,o.start)&&p.unshift(la(Qfe,_r.ChangeTracker.with(t,h=>B2e(h,r,o.start)),f.Ignore_this_error_message,Zfe,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[Zfe],getAllCodeActions:e=>{const t=new Set;return Es(e,eme,(r,i)=>{_r.isValidLocationToAddComment(i.file,i.start)&&B2e(r,i.file,i.start,t)})}})}});function tme(e,t,r,i,o,s,l){const u=e.symbol.members;for(const p of t)u.has(p.escapedName)||G2e(p,e,r,i,o,s,l,void 0)}function GD(e){return{trackSymbol:()=>!1,moduleResolverHost:iX(e.program,e.host)}}function G2e(e,t,r,i,o,s,l,u,p=3,h=!1){const m=e.getDeclarations(),v=Xc(m),A=i.program.getTypeChecker(),I=os(i.program.getCompilerOptions()),R=v?.kind??171,M=oe(e,v),C=v?dd(v):0;let O=C&256;O|=C&1?1:C&4?4:0,v&&Wd(v)&&(O|=512);const U=ne(),K=A.getWidenedType(A.getTypeOfSymbolAtLocation(e,t)),Z=!!(e.flags&16777216),V=!!(t.flags&33554432)||h,se=uf(r,o);switch(R){case 171:case 172:const fe=se===0?268435456:void 0;let Ne=A.typeToTypeNode(K,t,fe,GD(i));if(s){const ie=FI(Ne,I);ie&&(Ne=ie.typeNode,VD(s,ie.symbols))}l(w.createPropertyDeclaration(U,v?ve(M):e.getName(),Z&&p&2?w.createToken(58):void 0,Ne,void 0));break;case 177:case 178:{N.assertIsDefined(m);let ie=A.typeToTypeNode(K,t,void 0,GD(i));const ye=LS(m,v),Me=ye.secondAccessor?[ye.firstAccessor,ye.secondAccessor]:[ye.firstAccessor];if(s){const Ue=FI(ie,I);Ue&&(ie=Ue.typeNode,VD(s,Ue.symbols))}for(const Ue of Me)if(rf(Ue))l(w.createGetAccessorDeclaration(U,ve(M),et,Y(ie),$(u,se,V)));else{N.assertNode(Ue,vp,"The counterpart to a getter should be a setter");const Ee=WC(Ue),De=Ee&&Ve(Ee.name)?Sr(Ee.name):void 0;l(w.createSetAccessorDeclaration(U,ve(M),rme(1,[De],[Y(ie)],1,!1),$(u,se,V)))}break}case 173:case 174:N.assertIsDefined(m);const pe=K.isUnion()?Pi(K.types,ie=>ie.getCallSignatures()):K.getCallSignatures();if(!bt(pe))break;if(m.length===1){N.assert(pe.length===1,"One declaration implies one signature");const ie=pe[0];G(se,ie,U,ve(M),$(u,se,V));break}for(const ie of pe)G(se,ie,U,ve(M));if(!V)if(m.length>pe.length){const ie=A.getSignatureFromDeclaration(m[m.length-1]);G(se,ie,U,ve(M),$(u,se))}else N.assert(m.length===pe.length,"Declarations and signatures should match count"),l(Zet(A,i,t,pe,ve(M),Z&&!!(p&1),U,se,u));break}function G(fe,Ne,pe,ie,ye){const Me=Z$(174,i,fe,Ne,ye,ie,pe,Z&&!!(p&1),t,s);Me&&l(Me)}function ne(){let fe;return O&&(fe=Ox(fe,w.createModifiersFromModifierFlags(O))),he()&&(fe=xn(fe,w.createToken(164))),fe&&w.createNodeArray(fe)}function he(){return!!(i.program.getCompilerOptions().noImplicitOverride&&v&&KE(v))}function ve(fe){return Ve(fe)&&fe.escapedText==="constructor"?w.createComputedPropertyName(w.createStringLiteral(Sr(fe),se===0)):cl(fe,!1)}function $(fe,Ne,pe){return pe?void 0:cl(fe,!1)||ime(Ne)}function Y(fe){return cl(fe,!1)}function oe(fe,Ne){if(xl(fe)&262144){const pe=fe.links.nameType;if(pe&&rm(pe))return w.createIdentifier(Vi(im(pe)))}return cl(Mo(Ne),!1)}}function Z$(e,t,r,i,o,s,l,u,p,h){const m=t.program,v=m.getTypeChecker(),A=os(m.getCompilerOptions()),I=lr(p),R=524545|(r===0?268435456:0),M=v.signatureToSignatureDeclaration(i,e,p,R,GD(t));if(!M)return;let C=I?void 0:M.typeParameters,O=M.parameters,U=I?void 0:M.type;if(h){if(C){const se=eo(C,G=>{let ne=G.constraint,he=G.default;if(ne){const ve=FI(ne,A);ve&&(ne=ve.typeNode,VD(h,ve.symbols))}if(he){const ve=FI(he,A);ve&&(he=ve.typeNode,VD(h,ve.symbols))}return w.updateTypeParameterDeclaration(G,G.modifiers,G.name,ne,he)});C!==se&&(C=dt(w.createNodeArray(se,C.hasTrailingComma),C))}const V=eo(O,se=>{let G=I?void 0:se.type;if(G){const ne=FI(G,A);ne&&(G=ne.typeNode,VD(h,ne.symbols))}return w.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,I?void 0:se.questionToken,G,se.initializer)});if(O!==V&&(O=dt(w.createNodeArray(V,O.hasTrailingComma),O)),U){const se=FI(U,A);se&&(U=se.typeNode,VD(h,se.symbols))}}const K=u?w.createToken(58):void 0,Z=M.asteriskToken;if(Os(M))return w.updateFunctionExpression(M,l,M.asteriskToken,ii(s,Ve),C,O,U,o??M.body);if(Gs(M))return w.updateArrowFunction(M,l,C,O,U,M.equalsGreaterThanToken,o??M.body);if(ql(M))return w.updateMethodDeclaration(M,l,Z,s??w.createIdentifier(""),K,C,O,U,o);if(Ac(M))return w.updateFunctionDeclaration(M,l,M.asteriskToken,ii(s,Ve),C,O,U,o??M.body)}function nme(e,t,r,i,o,s,l){const u=uf(t.sourceFile,t.preferences),p=os(t.program.getCompilerOptions()),h=GD(t),m=t.program.getTypeChecker(),v=lr(l),{typeArguments:A,arguments:I,parent:R}=i,M=v?void 0:m.getContextualType(i),C=Ot(I,he=>Ve(he)?he.text:Wr(he)&&Ve(he.name)?he.name.text:void 0),O=v?[]:Ot(I,he=>m.getTypeAtLocation(he)),{argumentTypeNodes:U,argumentTypeParameters:K}=U2e(m,r,O,l,p,1,h),Z=s?w.createNodeArray(w.createModifiersFromModifierFlags(s)):void 0,V=JW(R)?w.createToken(42):void 0,se=v?void 0:$et(m,K,A),G=rme(I.length,C,U,void 0,v),ne=v||M===void 0?void 0:m.typeToTypeNode(M,l,void 0,h);switch(e){case 174:return w.createMethodDeclaration(Z,V,o,void 0,se,G,ne,ime(u));case 173:return w.createMethodSignature(Z,o,void 0,se,G,ne===void 0?w.createKeywordTypeNode(159):ne);case 262:return N.assert(typeof o=="string"||Ve(o),"Unexpected name"),w.createFunctionDeclaration(Z,V,o,se,G,ne,_z(f.Function_not_implemented.message,u));default:N.fail("Unexpected kind")}}function $et(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(p=>{var h;return e.getTypeAtLocation(u)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let u=0;i.size{var l;return w.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function V2e(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function eQ(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&cg(u)){const p=FI(u,o);p&&(VD(t,p.symbols),u=p.typeNode)}return cl(u)}function j2e(e){return e.isUnionOrIntersection()?e.types.some(j2e):e.flags&262144}function U2e(e,t,r,i,o,s,l){const u=[],p=new Map;for(let h=0;h=i?w.createToken(58):void 0,o?void 0:r?.[u]||w.createKeywordTypeNode(159),void 0);s.push(m)}return s}function Zet(e,t,r,i,o,s,l,u,p){let h=i[0],m=i[0].minArgumentCount,v=!1;for(const M of i)m=Math.min(M.minArgumentCount,m),Yu(M)&&(v=!0),M.parameters.length>=h.parameters.length&&(!Yu(M)||Yu(h))&&(h=M);const A=h.parameters.length-(Yu(h)?1:0),I=h.parameters.map(M=>M.name),R=rme(A,I,void 0,m,!1);if(v){const M=w.createParameterDeclaration(void 0,w.createToken(26),I[A]||"rest",A>=m?w.createToken(58):void 0,w.createArrayTypeNode(w.createKeywordTypeNode(159)),void 0);R.push(M)}return ttt(l,o,s,void 0,R,ett(i,e,t,r),u,p)}function ett(e,t,r,i){if(Le(e)){const o=t.getUnionType(Ot(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,GD(r))}}function ttt(e,t,r,i,o,s,l,u){return w.createMethodDeclaration(e,void 0,t,r?w.createToken(58):void 0,i,o,s,u||ime(l))}function ime(e){return _z(f.Method_not_implemented.message,e)}function _z(e,t){return w.createBlock([w.createThrowStatement(w.createNewExpression(w.createIdentifier("Error"),void 0,[w.createStringLiteral(e,t===0)]))],!0)}function ome(e,t,r){const i=TC(t);if(!i)return;const o=sme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,tQ("compilerOptions",w.createObjectLiteralExpression(r.map(([l,u])=>tQ(l,u)),!0)));return}const s=o.initializer;if(Oa(s))for(const[l,u]of r){const p=sme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,tQ(l,u)):e.replaceNode(t,p.initializer,u)}}function ame(e,t,r,i){ome(e,t,[[r,i]])}function tQ(e,t){return w.createPropertyAssignment(w.createStringLiteral(e),t)}function sme(e,t){return An(e.properties,r=>_c(r)&&!!r.name&&Ma(r.name)&&r.name.text===t)}function FI(e,t){let r;const i=nt(e,o,ji);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(Vv(s)&&s.qualifier){const l=Vp(s.qualifier),u=E5(l.symbol,t),p=u!==l.text?q2e(s.qualifier,w.createIdentifier(u)):s.qualifier;r=xn(r,l.symbol);const h=Vn(s.typeArguments,o,ji);return w.createTypeReferenceNode(p,h)}return In(s,o,void 0)}}function q2e(e,t){return e.kind===80?t:w.createQualifiedName(q2e(e.left,t),e.right)}function VD(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function lme(e,t){const r=Kl(t);let i=po(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(cme||{})}});function J2e(e,t,r,i,o,s){const l=Y2e(e,t,r,i);if(!l||LI.isRefactorErrorInfo(l))return;const u=_r.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:v,originalName:A,type:I,container:R,declaration:M}=l;Tp(m),Tp(v),Tp(M),Tp(R);let C,O;if(ui(R)){const K=dd(M);if(ud(e)){const Z=w.createModifiersFromModifierFlags(K);C=Z,O=Z}else C=w.createModifiersFromModifierFlags(ott(K)),O=w.createModifiersFromModifierFlags(att(K));YS(M)&&(O=So(Lv(M),O))}dtt(u,e,M,I,m,O);const U=stt(m,v,I,C,p,R);if(Tp(U),$2e(u,e,U,M,R),h){const K=og(R);K&&ptt(u,e,K,m.text,A)}else{const K=ltt(m,v,I,C,p,R);Tp(K),$2e(u,e,K,M,R)}return u.getChanges()}function rtt(e){return Ve(e)||Ma(e)}function itt(e){return fp(e,e.parent)||Jo(e)||_c(e)}function K2e(e,t){return Ve(t)?w.createIdentifier(e):w.createStringLiteral(e)}function X2e(e,t,r){const i=t?r.name:w.createThis();return Ve(e)?w.createPropertyAccessExpression(i,e):w.createElementAccessExpression(i,w.createStringLiteralFromNode(e))}function ott(e){return e&=-9,e&=-3,e&4||(e|=1),e}function att(e){return e&=-2,e&=-5,e|=2,e}function Y2e(e,t,r,i,o=!0){const s=po(e,r),l=r===i&&o,u=Gn(s.parent,itt),p=271;if(!u||!(U7(u.name,e,r,i)||l))return{error:Wo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!rtt(u.name))return{error:Wo(f.Name_is_not_valid)};if((dd(u)&98303|p)!==p)return{error:Wo(f.Can_only_convert_property_with_modifier)};const h=u.name.text,m=NX(h),v=K2e(m?h:sT(`_${h}`,e),u.name),A=K2e(m?sT(h.substring(1),e):h,u.name);return{isStatic:fc(u),isReadonly:FC(u),type:ftt(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:v,accessorName:A,renameAccessor:m}}function stt(e,t,r,i,o,s){return w.createGetAccessorDeclaration(i,t,[],r,w.createBlock([w.createReturnStatement(X2e(e,o,s))],!0))}function ltt(e,t,r,i,o,s){return w.createSetAccessorDeclaration(i,t,[w.createParameterDeclaration(void 0,void 0,w.createIdentifier("value"),void 0,r)],w.createBlock([w.createExpressionStatement(w.createAssignment(X2e(e,o,s),w.createIdentifier("value")))],!0))}function ctt(e,t,r,i,o,s){const l=w.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function utt(e,t,r,i){let o=w.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=w.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function dtt(e,t,r,i,o,s){Jo(r)?ctt(e,t,r,i,o,s):_c(r)?utt(e,t,r,o):e.replaceNode(t,r,w.updateParameterDeclaration(r,s,r.dotDotDotToken,oa(o,Ve),r.questionToken,r.type,r.initializer))}function $2e(e,t,r,i,o){fp(i,i.parent)?e.insertMemberAtStart(t,o,r):_c(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function ptt(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Qs(l)&&l.expression.kind===110&&Ma(l.argumentExpression)&&l.argumentExpression.text===o&&jA(l)&&e.replaceNode(t,l.argumentExpression,w.createStringLiteral(i)),Wr(l)&&l.expression.kind===110&&l.name.text===o&&jA(l)&&e.replaceNode(t,l.name,w.createIdentifier(i)),!ea(l)&&!ui(l)&&l.forEachChild(s)})}function ftt(e,t){const r=zie(e);if(Jo(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=Qv(r)?r.types:[r];return w.createUnionTypeNode([...s,w.createKeywordTypeNode(157)])}}return r}function ume(e,t){const r=[];for(;e;){const i=jE(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&An(s.declarations,ui);if(!l)break;r.push(l),e=l}return r}var mtt=T({"src/services/codefixes/generateAccessors.ts"(){si()}});function _tt(e,t){const r=jn(t),i=vR(t),o=e.program.getCompilerOptions(),s=[];return s.push(Q2e(e,r,t,$y(i.name,void 0,t.moduleSpecifier,uf(r,e.preferences)))),wu(o)===1&&s.push(Q2e(e,r,t,w.createImportEqualsDeclaration(void 0,!1,i.name,w.createExternalModuleReference(t.moduleSpecifier)))),s}function Q2e(e,t,r,i){const o=_r.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return o_(dme,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function htt(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Gn(po(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return Z2e(e,o)}function gtt(e){const t=e.sourceFile,r=Gn(po(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?Z2e(e,r):[]}function Z2e(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&fh(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(Bp(o)||qr(i,_tt(e,o)),vt(t)&&!(sd(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=_r.ChangeTracker.with(e,u=>u.replaceNode(s,t,w.createPropertyAccessExpression(t,"default"),{}));i.push(o_(dme,l,f.Use_synthetic_default_member))}return i}var dme,ytt=T({"src/services/codefixes/fixInvalidImportSyntax.ts"(){si(),xa(),dme="invalidImportSyntax",Aa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:htt}),Aa({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:gtt})}});function eLe(e,t){const r=po(e,t);if(Ve(r)&&Jo(r.parent)){const i=vu(r.parent);if(i)return{type:i,prop:r.parent,isJs:lr(r.parent)}}}function vtt(e,t){if(t.isJs)return;const r=_r.ChangeTracker.with(e,i=>tLe(i,e.sourceFile,t.prop));return la(nQ,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],rQ,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function tLe(e,t,r){Tp(r);const i=w.updatePropertyDeclaration(r,r.modifiers,r.name,w.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function btt(e,t){const r=_r.ChangeTracker.with(e,i=>nLe(i,e.sourceFile,t));return la(nQ,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],iQ,f.Add_undefined_type_to_all_uninitialized_properties)}function nLe(e,t,r){const i=w.createKeywordTypeNode(157),o=Qv(r.type)?r.type.types.concat(i):[r.type,i],s=w.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[w.createJSDocTypeTag(void 0,w.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Ett(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=iLe(r,t.prop);if(!i)return;const o=_r.ChangeTracker.with(e,s=>rLe(s,e.sourceFile,t.prop,i));return la(nQ,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],oQ,f.Add_initializers_to_all_uninitialized_properties)}function rLe(e,t,r,i){Tp(r);const o=w.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function iLe(e,t){return oLe(e,e.getTypeFromTypeNode(t.type))}function oLe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?w.createFalse():w.createTrue();if(t.isStringLiteral())return w.createStringLiteral(t.value);if(t.isNumberLiteral())return w.createNumericLiteral(t.value);if(t.flags&2048)return w.createBigIntLiteral(t.value);if(t.isUnion())return qt(t.types,r=>oLe(e,r));if(t.isClass()){const r=zg(t.symbol);if(!r||Zr(r,64))return;const i=og(r);return i&&i.parameters.length?void 0:w.createNewExpression(w.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return w.createArrayLiteralExpression()}var nQ,rQ,iQ,oQ,pme,Stt=T({"src/services/codefixes/fixStrictClassInitialization.ts"(){si(),xa(),nQ="strictClassInitialization",rQ="addMissingPropertyDefiniteAssignmentAssertions",iQ="addMissingPropertyUndefinedType",oQ="addMissingPropertyInitializer",pme=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Aa({errorCodes:pme,getCodeActions:function(t){const r=eLe(t.sourceFile,t.span.start);if(!r)return;const i=[];return xn(i,btt(t,r)),xn(i,vtt(t,r)),xn(i,Ett(t,r)),i},fixIds:[rQ,iQ,oQ],getAllCodeActions:e=>Es(e,pme,(t,r)=>{const i=eLe(r.file,r.start);if(i)switch(e.fixId){case rQ:tLe(t,r.file,i.prop);break;case iQ:nLe(t,r.file,i);break;case oQ:const o=e.program.getTypeChecker(),s=iLe(o,i.prop);if(!s)return;rLe(t,r.file,i.prop,s);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function aLe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?w.createImportEqualsDeclaration(void 0,!1,o,w.createExternalModuleReference(u)):w.createImportDeclaration(void 0,w.createImportClause(!1,o,s),u,void 0))}function sLe(e,t,r){const{parent:i}=po(e,r);Td(i,!0)||N.failBadSyntaxKind(i);const o=oa(i.parent,wi),s=ii(o.name,Ve),l=am(o.name)?Ttt(o.name):void 0;if(s||l)return{allowSyntheticDefaults:OS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:oa(o.parent.parent,Ll),required:Ha(i.arguments)}}function Ttt(e){const t=[];for(const r of e.elements){if(!Ve(r.name)||r.initializer)return;t.push(w.createImportSpecifier(!1,ii(r.propertyName,Ve),r.name))}if(t.length)return w.createNamedImports(t)}var aQ,fme,Att=T({"src/services/codefixes/requireInTs.ts"(){si(),xa(),aQ="requireInTs",fme=[f.require_call_may_be_converted_to_an_import.code],Aa({errorCodes:fme,getCodeActions(e){const t=sLe(e.sourceFile,e.program,e.span.start);if(!t)return;const r=_r.ChangeTracker.with(e,i=>aLe(i,e.sourceFile,t));return[la(aQ,r,f.Convert_require_to_import,aQ,f.Convert_all_require_to_import)]},fixIds:[aQ],getAllCodeActions:e=>Es(e,fme,(t,r)=>{const i=sLe(r.file,e.program,r.start);i&&aLe(t,e.sourceFile,i)})})}});function lLe(e,t){const r=po(e,t);if(!Ve(r))return;const{parent:i}=r;if(tu(i)&&Th(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(nb(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function cLe(e,t,r,i){e.replaceNode(t,r.importNode,$y(r.name,void 0,r.moduleSpecifier,uf(t,i)))}var sQ,mme,Itt=T({"src/services/codefixes/useDefaultImport.ts"(){si(),xa(),sQ="useDefaultImport",mme=[f.Import_may_be_converted_to_a_default_import.code],Aa({errorCodes:mme,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=lLe(t,r);if(!i)return;const o=_r.ChangeTracker.with(e,s=>cLe(s,t,i,e.preferences));return[la(sQ,o,f.Convert_to_default_import,sQ,f.Convert_all_to_default_imports)]},fixIds:[sQ],getAllCodeActions:e=>Es(e,mme,(t,r)=>{const i=lLe(r.file,r.start);i&&cLe(t,r.file,i,e.preferences)})})}});function uLe(e,t,r){const i=ii(po(t,r.start),gp);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,w.createBigIntLiteral(o))}var lQ,_me,xtt=T({"src/services/codefixes/useBigintLiteral.ts"(){si(),xa(),lQ="useBigintLiteral",_me=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Aa({errorCodes:_me,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>uLe(i,t.sourceFile,t.span));if(r.length>0)return[la(lQ,r,f.Convert_to_a_bigint_numeric_literal,lQ,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[lQ],getAllCodeActions:e=>Es(e,_me,(t,r)=>uLe(t,r.file,r))})}});function dLe(e,t){const r=po(e,t);return N.assert(r.kind===102,"This token should be an ImportKeyword"),N.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function pLe(e,t,r){const i=w.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var fLe,cQ,hme,Rtt=T({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){si(),xa(),fLe="fixAddModuleReferTypeMissingTypeof",cQ=fLe,hme=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Aa({errorCodes:hme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=dLe(r,i.start),s=_r.ChangeTracker.with(t,l=>pLe(l,r,o));return[la(cQ,s,f.Add_missing_typeof,cQ,f.Add_missing_typeof)]},fixIds:[cQ],getAllCodeActions:e=>Es(e,hme,(t,r)=>pLe(t,e.sourceFile,dLe(r.file,r.start)))})}});function mLe(e,t){let o=po(e,t).parent.parent;if(!(!mr(o)&&(o=o.parent,!mr(o)))&&zl(o.operatorToken))return o}function _Le(e,t,r){const i=Dtt(r);i&&e.replaceNode(t,r,w.createJsxFragment(w.createJsxOpeningFragment(),i,w.createJsxJsxClosingFragment()))}function Dtt(e){const t=[];let r=e;for(;;)if(mr(r)&&zl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),gL(r.right))return t.push(r.right),t;if(mr(r.right)){r=r.right;continue}else return}else return}var uQ,gme,Ntt=T({"src/services/codefixes/wrapJsxInFragment.ts"(){si(),xa(),uQ="wrapJsxInFragment",gme=[f.JSX_expressions_must_have_one_parent_element.code],Aa({errorCodes:gme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=mLe(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,l=>_Le(l,r,o));return[la(uQ,s,f.Wrap_in_JSX_fragment,uQ,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[uQ],getAllCodeActions:e=>Es(e,gme,(t,r)=>{const i=mLe(e.sourceFile,r.start);i&&_Le(t,e.sourceFile,i)})})}});function hLe(e,t){const r=po(e,t),i=ii(r.parent.parent,e1);if(!i)return;const o=_d(i.parent)?i.parent:ii(i.parent.parent,Nm);if(o)return{indexSignature:i,container:o}}function Ctt(e,t){return w.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function gLe(e,t,{indexSignature:r,container:i}){const s=(_d(i)?i.members:i.type.members).filter(m=>!e1(m)),l=Ha(r.parameters),u=w.createTypeParameterDeclaration(void 0,oa(l.name,Ve),l.type),p=w.createMappedTypeNode(FC(r)?w.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),h=w.createIntersectionTypeNode([...NC(i),p,...s.length?[w.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,Ctt(i,h))}var dQ,yme,Ptt=T({"src/services/codefixes/convertToMappedObjectType.ts"(){si(),xa(),dQ="fixConvertToMappedObjectType",yme=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Aa({errorCodes:yme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=hLe(r,i.start);if(!o)return;const s=_r.ChangeTracker.with(t,u=>gLe(u,r,o)),l=Sr(o.container.name);return[la(dQ,s,[f.Convert_0_to_mapped_object_type,l],dQ,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[dQ],getAllCodeActions:e=>Es(e,yme,(t,r)=>{const i=hLe(r.file,r.start);i&&gLe(t,r.file,i)})})}}),vme,yLe,Mtt=T({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){si(),xa(),vme="removeAccidentalCallParentheses",yLe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Aa({errorCodes:yLe,getCodeActions(e){const t=Gn(po(e.sourceFile,e.span.start),sa);if(!t)return;const r=_r.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[o_(vme,r,f.Remove_parentheses)]},fixIds:[vme]})}});function vLe(e,t,r){const i=ii(po(t,r.start),u=>u.kind===135),o=i&&ii(i.parent,eb);if(!o)return;let s=o;if(Gd(o.parent)){const u=kR(o.expression,!1);if(Ve(u)){const p=xc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var pQ,bme,Ltt=T({"src/services/codefixes/removeUnnecessaryAwait.ts"(){si(),xa(),pQ="removeUnnecessaryAwait",bme=[f.await_has_no_effect_on_the_type_of_this_expression.code],Aa({errorCodes:bme,getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>vLe(i,t.sourceFile,t.span));if(r.length>0)return[la(pQ,r,f.Remove_unnecessary_await,pQ,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[pQ],getAllCodeActions:e=>Es(e,bme,(t,r)=>vLe(t,r.file,r))})}});function bLe(e,t){return Gn(po(e,t.start),kc)}function ELe(e,t,r){if(!t)return;const i=N.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,w.updateImportDeclaration(t,t.modifiers,w.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,w.createImportDeclaration(void 0,w.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Eme,fQ,ktt=T({"src/services/codefixes/splitTypeOnlyImport.ts"(){si(),xa(),Eme=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],fQ="splitTypeOnlyImport",Aa({errorCodes:Eme,fixIds:[fQ],getCodeActions:function(t){const r=_r.ChangeTracker.with(t,i=>ELe(i,bLe(t.sourceFile,t.span),t));if(r.length)return[la(fQ,r,f.Split_into_two_separate_import_declarations,fQ,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Es(e,Eme,(t,r)=>{ELe(t,bLe(e.sourceFile,r),e)})})}});function SLe(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(po(e,t));if(s===void 0)return;const l=ii((i=s?.valueDeclaration)==null?void 0:i.parent,Uc);if(l===void 0)return;const u=ys(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function TLe(e,t,r){e.replaceNode(t,r,w.createToken(121))}var mQ,Sme,wtt=T({"src/services/codefixes/convertConstToLet.ts"(){si(),xa(),mQ="fixConvertConstToLet",Sme=[f.Cannot_assign_to_0_because_it_is_a_constant.code],Aa({errorCodes:Sme,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=SLe(r,i.start,o);if(s===void 0)return;const l=_r.ChangeTracker.with(t,u=>TLe(u,r,s.token));return[Epe(mQ,l,f.Convert_const_to_let,mQ,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return FD(_r.ChangeTracker.with(e,i=>{zD(e,Sme,o=>{const s=SLe(o.file,o.start,t);if(s&&Rm(r,Ta(s.symbol)))return TLe(i,o.file,s.token)})}))},fixIds:[mQ]})}});function ALe(e,t,r){const i=po(e,t);return i.kind===27&&i.parent&&(Oa(i.parent)||md(i.parent))?{node:i}:void 0}function ILe(e,t,{node:r}){const i=w.createToken(28);e.replaceNode(t,r,i)}var _Q,xLe,Tme,Ott=T({"src/services/codefixes/fixExpectedComma.ts"(){si(),xa(),_Q="fixExpectedComma",xLe=f._0_expected.code,Tme=[xLe],Aa({errorCodes:Tme,getCodeActions(e){const{sourceFile:t}=e,r=ALe(t,e.span.start,e.errorCode);if(!r)return;const i=_r.ChangeTracker.with(e,o=>ILe(o,t,r));return[la(_Q,i,[f.Change_0_to_1,";",","],_Q,[f.Change_0_to_1,";",","])]},fixIds:[_Q],getAllCodeActions:e=>Es(e,Tme,(t,r)=>{const i=ALe(r.file,r.start,r.code);i&&ILe(t,e.sourceFile,i)})})}});function RLe(e,t,r,i,o){const s=po(t,r.start);if(!Ve(s)||!sa(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u?.valueDeclaration;if(!p||!Ao(p)||!n1(p.parent.parent)||o?.has(p))return;o?.add(p);const h=Wtt(p.parent.parent);if(bt(h)){const m=h[0],v=!Qv(m)&&!zS(m)&&zS(w.createUnionTypeNode([m,w.createKeywordTypeNode(116)]).types[0]);v&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,v?") | void":" | void")}else{const m=l.getResolvedSignature(s.parent),v=m?.parameters[0],A=v&&l.getTypeOfSymbolAtLocation(v,p.parent.parent);lr(p)?(!A||A.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,ka(t.text,p.parent.parent.pos),"/** @type {Promise} */(")):(!A||A.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"")}}function Wtt(e){var t;if(lr(e)){if(Gd(e.parent)){const r=(t=u0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Cf(r)&&Ve(r.typeName)&&Sr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var DLe,Ame,Ime,Ftt=T({"src/services/codefixes/fixAddVoidToPromise.ts"(){si(),xa(),DLe="addVoidToPromise",Ame="addVoidToPromise",Ime=[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],Aa({errorCodes:Ime,fixIds:[Ame],getCodeActions(e){const t=_r.ChangeTracker.with(e,r=>RLe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[la(DLe,t,f.Add_void_to_Promise_resolved_without_a_value,Ame,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Es(e,Ime,(t,r)=>RLe(t,r.file,r,e.program,new Set))}})}}),Fu={};X(Fu,{PreserveOptionalFlags:()=>cme,addNewNodeForMemberSymbol:()=>G2e,codeFixAll:()=>Es,createCodeFixAction:()=>la,createCodeFixActionMaybeFixAll:()=>Epe,createCodeFixActionWithoutFixAll:()=>o_,createCombinedCodeActions:()=>FD,createFileTextChanges:()=>VCe,createImportAdder:()=>OI,createImportSpecifierResolver:()=>UQe,createJsonPropertyAssignment:()=>tQ,createMissingMemberNodes:()=>tme,createSignatureDeclarationFromCallExpression:()=>nme,createSignatureDeclarationFromSignature:()=>Z$,createStubbedBody:()=>_z,eachDiagnostic:()=>zD,findAncestorMatchingSpan:()=>lme,findJsonProperty:()=>sme,generateAccessorFromProperty:()=>J2e,getAccessorConvertiblePropertyAtPosition:()=>Y2e,getAllFixes:()=>b$e,getAllSupers:()=>ume,getArgumentTypesAndTypeParameters:()=>U2e,getFixes:()=>v$e,getImportCompletionAction:()=>HQe,getImportKind:()=>Ype,getJSDocTypedefNodes:()=>zQe,getNoopSymbolTrackerWithResolver:()=>GD,getPromoteTypeOnlyCompletionAction:()=>qQe,getSupportedErrorCodes:()=>g$e,importFixName:()=>rfe,importSymbols:()=>VD,moduleSpecifierToValidIdentifier:()=>nfe,moduleSymbolToValidIdentifier:()=>tfe,parameterShouldGetTypeFromJSDoc:()=>lPe,registerCodeFix:()=>Aa,setJsonCompilerOptionValue:()=>ame,setJsonCompilerOptionValues:()=>ome,tryGetAutoImportableReferenceFromTypeNode:()=>FI,typeToAutoImportableTypeNode:()=>eQ});var xa=T({"src/services/_namespaces/ts.codefix.ts"(){E$e(),S$e(),T$e(),x$e(),P$e(),w$e(),O$e(),W$e(),F$e(),V$e(),Q$e(),eQe(),dQe(),NQe(),CQe(),MQe(),LQe(),BQe(),GQe(),jQe(),pZe(),_Ze(),yZe(),vZe(),bZe(),TZe(),xZe(),NZe(),kZe(),UZe(),qZe(),QZe(),ZZe(),tet(),net(),ret(),iet(),aet(),set(),cet(),uet(),det(),fet(),het(),bet(),Cet(),Met(),Let(),Oet(),Wet(),zet(),Bet(),Ket(),Xet(),Yet(),ntt(),mtt(),ytt(),Stt(),Att(),Itt(),xtt(),Rtt(),Ntt(),Ptt(),Mtt(),Ltt(),ktt(),wtt(),Ott(),Ftt()}});function ztt(e){return!!(e.kind&1)}function Btt(e){return!!(e.kind&2)}function hz(e){return!!(e&&e.kind&4)}function bM(e){return!!(e&&e.kind===32)}function Gtt(e){return hz(e)||bM(e)||xme(e)}function Vtt(e){return(hz(e)||bM(e))&&!!e.isFromPackageJson}function jtt(e){return!!(e.kind&8)}function Utt(e){return!!(e.kind&16)}function NLe(e){return!!(e&&e.kind&64)}function CLe(e){return!!(e&&e.kind&128)}function Htt(e){return!!(e&&e.kind&256)}function xme(e){return!!(e&&e.kind&512)}function PLe(e,t,r,i,o,s,l,u,p){var h,m,v;const A=Ys(),I=l||qA(fd(i.getCompilerOptions()));let R=!1,M=0,C=0,O=0,U=0;const K=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>C>0,resolvedBeyondLimit:()=>C>IQ}),Z=U?` (${(O/U*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${C} module specifiers, plus ${M} ambient and ${O} from cache${Z}`),(m=t.log)==null||m.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(v=t.log)==null||v.call(t,`${e}: ${Ys()-A}`),K;function V(se,G){if(G){const $=r.getModuleSpecifierForBestExportInfo(se,o,u);return $&&M++,$||"failed"}const ne=I||s.allowIncompleteCompletions&&C{const R=Hi(p.entries,M=>{var C;if(!M.hasAction||!M.source||!M.data||MLe(M.data))return M;if(!rke(M.name,m))return;const{origin:O}=N.checkDefined(ULe(M.name,M.data,i,o)),U=v.get(t.path,M.data.exportMapKey),K=U&&I.tryResolve(U,!Yc(tm(O.moduleSymbol.name)));if(K==="skipped")return M;if(!K||K==="failed"){(C=o.log)==null||C.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const Z={...O,kind:32,moduleSpecifier:K.moduleSpecifier};return M.data=BLe(Z),M.source=Nme(Z),M.sourceDisplay=[df(Z.moduleSpecifier)],M});return I.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=A,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=OLe(h),p}function Rme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function LLe(e,t,r,i,o,s){const l=po(e,t);if(!rR(l)&&!n_(l))return[];const u=n_(l)?l:l.parent;if(!n_(u))return[];const p=u.parent;if(!ea(p))return[];const h=ud(e),m=o.includeCompletionsWithSnippetText||void 0,v=au(u.tags,A=>r_(A)&&A.getEnd()<=t);return Hi(p.parameters,A=>{if(!$x(A).length){if(Ve(A.name)){const I={tabstop:1},R=A.name.text;let M=qO(R,A.initializer,A.dotDotDotToken,h,!1,!1,r,i,o),C=m?qO(R,A.initializer,A.dotDotDotToken,h,!1,!0,r,i,o,I):void 0;return s&&(M=M.slice(1),C&&(C=C.slice(1))),{name:M,kind:"parameter",sortText:zu.LocationPriority,insertText:m?C:void 0,isSnippet:m}}else if(A.parent.parameters.indexOf(A)===v){const I=`param${v}`,R=kLe(I,A.name,A.initializer,A.dotDotDotToken,h,!1,r,i,o),M=m?kLe(I,A.name,A.initializer,A.dotDotDotToken,h,!0,r,i,o):void 0;let C=R.join(Gy(i)+"* "),O=M?.join(Gy(i)+"* ");return s&&(C=C.slice(1),O&&(O=O.slice(1))),{name:C,kind:"parameter",sortText:zu.LocationPriority,insertText:m?O:void 0,isSnippet:m}}}})}function kLe(e,t,r,i,o,s,l,u,p){if(!o)return[qO(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(v,A,I,R,M){if(am(A)&&!R){const O={tabstop:M.tabstop},U=qO(v,I,R,o,!0,s,l,u,p,O);let K=[];for(const Z of A.elements){const V=m(v,Z,O);if(V)K.push(...V);else{K=void 0;break}}if(K)return M.tabstop=O.tabstop,[U,...K]}return[qO(v,I,R,o,!1,s,l,u,p,M)]}function m(v,A,I){if(!A.propertyName&&Ve(A.name)||Ve(A.name)){const R=A.propertyName?EC(A.propertyName):A.name.text;if(!R)return;const M=`${v}.${R}`;return[qO(M,A.initializer,A.dotDotDotToken,o,!1,s,l,u,p,I)]}else if(A.propertyName){const R=EC(A.propertyName);return R&&h(`${v}.${R}`,A.name,A.initializer,A.dotDotDotToken,I)}}}function qO(e,t,r,i,o,s,l,u,p,h){if(s&&N.assertIsDefined(h),t&&(e=Ktt(e,t)),s&&(e=QE(e)),i){let m="*";if(o)N.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){const I=l.getTypeAtLocation(t.parent);if(!(I.flags&16385)){const R=t.getSourceFile(),C=uf(R,p)===0?268435456:0,O=l.typeToTypeNode(I,Gn(t,ea),C);if(O){const U=s?yQ({removeComments:!0,module:u.module,target:u.target}):L0({removeComments:!0,module:u.module,target:u.target});pr(O,1),m=U.printNode(4,O,R)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}const v=!o&&r?"...":"",A=s?`\${${h.tabstop++}}`:"";return`@param {${v}${m}} ${e} ${A}`}else{const m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function Ktt(e,t){const r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function Xtt(e){return{name:fa(e),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords}}function Ytt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function wLe(e,t,r){return{kind:4,keywordCompletions:HLe(e,t),isNewIdentifierLocation:r}}function $tt(e){switch(e){case 156:return 8;default:N.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function OLe(e){return e?.kind===80?Dd(e):void 0}function Qtt(e,t,r,i,o,s,l,u,p,h){const{symbols:m,contextToken:v,completionKind:A,isInSnippetScope:I,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:C,keywordFilters:O,symbolToOriginInfoMap:U,recommendedCompletion:K,isJsxInitializer:Z,isTypeOnlyLocation:V,isJsxIdentifierExpected:se,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:ne,importStatementCompletion:he,insideJsDocTagTypeExpression:ve,symbolToSortTextMap:$,hasUnresolvedAutoImports:Y}=s;let oe=s.literals;const fe=r.getTypeChecker();if(pk(e.scriptKind)===1){const Ue=ent(M,e);if(Ue)return Ue}const Ne=Gn(v,XR);if(Ne&&(vae(v)||VE(v,Ne.expression))){const Ue=I5(fe,Ne.parent.clauses);oe=oe.filter(Ee=>!Ue.hasValue(Ee)),m.forEach((Ee,De)=>{if(Ee.valueDeclaration&&c1(Ee.valueDeclaration)){const Pe=fe.getConstantValue(Ee.valueDeclaration);Pe!==void 0&&Ue.hasValue(Pe)&&(U[De]={kind:256})}})}const pe=YB(),ie=WLe(e,i);if(ie&&!R&&(!m||m.length===0)&&O===0)return;const ye=Cme(m,pe,void 0,v,M,p,e,t,r,os(i),o,A,l,i,u,V,C,se,Z,he,K,U,$,se,G,h);if(O!==0)for(const Ue of HLe(O,!ve&&ud(e)))(V&&oM(CE(Ue.name))||!V&&wnt(Ue.name)||!ye.has(Ue.name))&&(ye.add(Ue.name),xv(pe,Ue,gz,!0));for(const Ue of Snt(v,p))ye.has(Ue.name)||(ye.add(Ue.name),xv(pe,Ue,gz,!0));for(const Ue of oe){const Ee=nnt(e,l,Ue);ye.add(Ee.name),xv(pe,Ee,gz,!0)}ie||tnt(e,M.pos,ye,os(i),pe);let Me;if(l.includeCompletionsWithInsertText&&v&&!G&&!ne&&(Me=Gn(v,EP))){const Ue=FLe(Me,e,l,i,t,r,u);Ue&&pe.push(Ue.entry)}return{flags:s.flags,isGlobalCompletion:I,isIncomplete:l.allowIncompleteCompletions&&Y?!0:void 0,isMemberCompletion:Ztt(A),isNewIdentifierLocation:R,optionalReplacementSpan:OLe(M),entries:pe}}function WLe(e,t){return!ud(e)||!!gk(e,t)}function FLe(e,t,r,i,o,s,l){const u=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&Zn(h.types,m=>m.isLiteral())){const m=I5(p,u),v=os(i),A=uf(t,r),I=Fu.createImportAdder(t,s,r,o),R=[];for(const V of h.types)if(V.flags&1024){N.assert(V.symbol,"An enum member type should have a symbol"),N.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const se=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(se!==void 0){if(m.hasValue(se))continue;m.addValue(se)}const G=Fu.typeToAutoImportableTypeNode(p,I,V,e,v);if(!G)return;const ne=hQ(G,v,A);if(!ne)return;R.push(ne)}else if(!m.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?w.createPrefixUnaryExpression(41,w.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):w.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?w.createPrefixUnaryExpression(41,w.createNumericLiteral(-V.value)):w.createNumericLiteral(V.value));break;case"string":R.push(w.createStringLiteral(V.value,A===0));break}if(R.length===0)return;const M=Ot(R,V=>w.createCaseClause(V,[])),C=Qy(o,l?.options),O=yQ({removeComments:!0,module:i.module,target:i.target,newLine:vO(C)}),U=l?V=>O.printAndFormatNode(4,V,t,l):V=>O.printNode(4,V,t),K=Ot(M,(V,se)=>r.includeCompletionsWithSnippetText?`${U(V)}$${se+1}`:`${U(V)}`).join(C);return{entry:{name:`${O.printNode(4,M[0],t)} ...`,kind:"",sortText:zu.GlobalsOrKeywords,insertText:K,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function hQ(e,t,r){switch(e.kind){case 183:const i=e.typeName;return gQ(i,t,r);case 199:const o=hQ(e.objectType,t,r),s=hQ(e.indexType,t,r);return o&&s&&w.createElementAccessExpression(o,s);case 201:const l=e.literal;switch(l.kind){case 11:return w.createStringLiteral(l.text,r===0);case 9:return w.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=hQ(e.type,t,r);return u&&(Ve(u)?u:w.createParenthesizedExpression(u));case 186:return gQ(e.exprName,t,r);case 205:N.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function gQ(e,t,r){if(Ve(e))return e;const i=Vi(e.right.escapedText);return PU(i,t)?w.createPropertyAccessExpression(gQ(e.left,t,r),i):w.createElementAccessExpression(gQ(e.left,t,r),w.createStringLiteral(i,r===0))}function Ztt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function ent(e,t){const r=Gn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!ys(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Dd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:zu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function tnt(e,t,r,i,o){LY(e).forEach((s,l)=>{if(s===t)return;const u=Vi(l);!r.has(u)&&tf(u,i)&&(r.add(u),xv(o,{name:u,kind:"warning",kindModifiers:"",sortText:zu.JavascriptIdentifiers,isFromUncheckedFile:!0},gz))})}function Dme(e,t,r){return typeof r=="object"?YE(r)+"n":Po(r)?dM(e,t,r):JSON.stringify(r)}function nnt(e,t,r){return{name:Dme(e,t,r),kind:"string",kindModifiers:"",sortText:zu.LocationPriority}}function rnt(e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z,V,se,G){var ne,he;let ve,$,Y=QK(r),oe,fe,Ne=Nme(v),pe,ie,ye;const Me=p.getTypeChecker(),Ue=v&&Utt(v),Ee=v&&Btt(v)||m;if(v&&ztt(v))ve=m?`this${Ue?"?.":""}[${GLe(l,U,h)}]`:`this${Ue?"?.":"."}${h}`;else if((Ee||Ue)&&I){ve=Ee?m?`[${GLe(l,U,h)}]`:`[${h}]`:h,(Ue||I.questionDotToken)&&(ve=`?.${ve}`);const Pe=ys(I,25,l)||ys(I,29,l);if(!Pe)return;const We=uo(h,I.name.text)?I.name.end:Pe.end;Y=dc(Pe.getStart(l),We)}if(R&&(ve===void 0&&(ve=h),ve=`{${ve}}`,typeof R!="boolean"&&(Y=Dd(R,l))),v&&jtt(v)&&I){ve===void 0&&(ve=h);const Pe=xc(I.pos,l);let We="";Pe&&_5(Pe.end,Pe.parent,l)&&(We=";"),We+=`(await ${I.expression.getText()})`,ve=m?`${We}${ve}`:`${We}${Ue?"?.":"."}${ve}`;const Se=ii(I.parent,eb)?I.parent:I.expression;Y=dc(Se.getStart(l),I.end)}if(bM(v)&&(pe=[df(v.moduleSpecifier)],M&&({insertText:ve,replacementSpan:Y}=unt(h,M,v,C,l,O,U),fe=U.includeCompletionsWithSnippetText?!0:void 0)),v?.kind===64&&(ie=!0),K===0&&i&&((ne=xc(i.pos,l,i))==null?void 0:ne.kind)!==28&&(ql(i.parent.parent)||rf(i.parent.parent)||vp(i.parent.parent)||qy(i.parent)||((he=Gn(i.parent,_c))==null?void 0:he.getLastToken(l))===i||rp(i.parent)&&bs(l,i.getEnd()).line!==bs(l,s).line)&&(Ne="ObjectLiteralMemberWithComma/",ie=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&K===3&&int(e,o,l)){let Pe;const We=zLe(u,p,O,U,h,e,o,s,i,Z);if(We)({insertText:ve,filterText:$,isSnippet:fe,importAdder:Pe}=We),Pe?.hasFixes()&&(ie=!0,Ne="ClassMemberSnippet/");else return}if(v&&CLe(v)&&({insertText:ve,isSnippet:fe,labelDetails:ye}=v,U.useLabelDetailsInCompletionEntries||(h=h+ye.detail,ye=void 0),Ne="ObjectLiteralMethodSnippet/",t=zu.SortBelow(t)),V&&!se&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(F_(o.parent)&&o.parent.initializer)){let Pe=U.jsxAttributeCompletionStyle==="braces";const We=Me.getTypeOfSymbolAtLocation(e,o);U.jsxAttributeCompletionStyle==="auto"&&!(We.flags&528)&&!(We.flags&1048576&&An(We.types,At=>!!(At.flags&528)))&&(We.flags&402653316||We.flags&1048576&&Zn(We.types,At=>!!(At.flags&402686084||vue(At)))?(ve=`${QE(h)}=${dM(l,U,"$1")}`,fe=!0):Pe=!0),Pe&&(ve=`${QE(h)}={$1}`,fe=!0)}if(ve!==void 0&&!U.includeCompletionsWithInsertText)return;(hz(v)||bM(v))&&(oe=BLe(v),ie=!M);const De=Gn(o,N3);if(De?.kind===275){const Pe=CE(h);De&&Pe&&(Pe===135||Gj(Pe))&&(ve=`${h} as ${h}_`)}return{name:h,kind:tv.getSymbolKind(Me,e,o),kindModifiers:tv.getSymbolModifiers(Me,e),sortText:t,source:Ne,hasAction:ie?!0:void 0,isRecommended:dnt(e,A,Me)||void 0,insertText:ve,filterText:$,replacementSpan:Y,sourceDisplay:pe,labelDetails:ye,isSnippet:fe,isPackageJsonImport:Vtt(v)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function int(e,t,r){return lr(t)?!1:!!(e.flags&106500)&&(ui(t)||t.parent&&t.parent.parent&&$c(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ui(t.parent.parent)||t.parent&&ZR(t)&&ui(t.parent))}function zLe(e,t,r,i,o,s,l,u,p,h){const m=Gn(l,ui);if(!m)return;let v,A=o;const I=o,R=t.getTypeChecker(),M=l.getSourceFile(),C=yQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:vO(Qy(e,h?.options))}),O=Fu.createImportAdder(M,t,i,e);let U;if(i.includeCompletionsWithSnippetText){v=!0;const he=w.createEmptyStatement();U=w.createBlock([he],!0),aH(he,{kind:0,order:0})}else U=w.createBlock([],!0);let K=0;const{modifiers:Z,range:V,decorators:se}=ont(p,M,u),G=Z&64&&m.modifierFlagsCache&64;let ne=[];if(Fu.addNewNodeForMemberSymbol(s,m,M,{program:t,host:e},i,O,he=>{let ve=0;G&&(ve|=64),$c(he)&&R.getMemberOverrideModifierStatus(m,he,s)===1&&(ve|=16),ne.length||(K=he.modifierFlagsCache|ve),he=w.replaceModifiers(he,K),ne.push(he)},U,Fu.PreserveOptionalFlags.Property,!!G),ne.length){const he=s.flags&8192;let ve=K|16|1;he?ve|=1024:ve|=136;const $=Z&ve;if(Z&~ve)return;if(K&4&&$&1&&(K&=-5),$!==0&&!($&1)&&(K&=-2),K|=$,ne=ne.map(oe=>w.replaceModifiers(oe,K)),se?.length){const oe=ne[ne.length-1];YS(oe)&&(ne[ne.length-1]=w.replaceDecoratorsAndModifiers(oe,se.concat(PE(oe)||[])))}const Y=131073;h?A=C.printAndFormatSnippetList(Y,w.createNodeArray(ne),M,h):A=C.printSnippetList(Y,w.createNodeArray(ne),M)}return{insertText:A,filterText:I,isSnippet:v,importAdder:O,eraseRange:V}}function ont(e,t,r){if(!e||bs(t,r).line>bs(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(Jo(e.parent)&&e.parent.modifiers&&(i|=M_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Eu)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=ant(e)){const u=VA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function ant(e){if(Ia(e))return e.kind;if(Ve(e)){const t=c0(e);if(t&&ky(t))return t}}function snt(e,t,r,i,o,s,l,u){const p=l.includeCompletionsWithSnippetText||void 0;let h=t;const m=r.getSourceFile(),v=lnt(e,r,m,i,o,l);if(!v)return;const A=yQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:vO(Qy(o,u?.options))});u?h=A.printAndFormatSnippetList(80,w.createNodeArray([v],!0),m,u):h=A.printSnippetList(80,w.createNodeArray([v],!0),m);const I=L0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=w.createMethodSignature(void 0,"",v.questionToken,v.typeParameters,v.parameters,v.type),M={detail:I.printNode(4,R,m)};return{isSnippet:p,insertText:h,labelDetails:M}}function lnt(e,t,r,i,o,s){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),p=l[0],h=cl(Mo(p),!1),m=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),A=33554432|(uf(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let I=m.flags&1048576&&m.types.length<10?u.getUnionType(m.types,2):m;if(I.flags&1048576){const U=nr(I.types,K=>u.getSignaturesOfType(K,0).length>0);if(U.length===1)I=U[0];else return}if(u.getSignaturesOfType(I,0).length!==1)return;const M=u.typeToTypeNode(I,t,A,Fu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!bh(M))return;let C;if(s.includeCompletionsWithSnippetText){const U=w.createEmptyStatement();C=w.createBlock([U],!0),aH(U,{kind:0,order:0})}else C=w.createBlock([],!0);const O=M.parameters.map(U=>w.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return w.createMethodDeclaration(void 0,void 0,h,void 0,void 0,O,void 0,C)}default:return}}function yQ(e){let t;const r=_r.createWriter(Gy(e)),i=L0(e,r),o={...r,write:A=>s(A,()=>r.write(A)),nonEscapingWrite:r.write,writeLiteral:A=>s(A,()=>r.writeLiteral(A)),writeStringLiteral:A=>s(A,()=>r.writeStringLiteral(A)),writeSymbol:(A,I)=>s(A,()=>r.writeSymbol(A,I)),writeParameter:A=>s(A,()=>r.writeParameter(A)),writeComment:A=>s(A,()=>r.writeComment(A)),writeProperty:A=>s(A,()=>r.writeProperty(A))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:v};function s(A,I){const R=QE(A);if(R!==A){const M=r.getTextPos();I();const C=r.getTextPos();t=xn(t||(t=[]),{newText:R,span:{start:M,length:C-M}})}else I()}function l(A,I,R){const M=u(A,I,R);return t?_r.applyChanges(M,t):M}function u(A,I,R){return t=void 0,o.clear(),i.writeList(A,I,R,o),o.getText()}function p(A,I,R,M){const C={text:u(A,I,R),getLineAndCharacterOfPosition(Z){return bs(this,Z)}},O=A5(M,R),U=Pi(I,Z=>{const V=_r.assignPositionsToNode(Z);return Oc.formatNodeGivenIndentation(V,C,R.languageVariant,0,0,{...M,options:O})}),K=t?Iy(So(U,t),(Z,V)=>x6(Z.span,V.span)):U;return _r.applyChanges(C.text,K)}function h(A,I,R){const M=m(A,I,R);return t?_r.applyChanges(M,t):M}function m(A,I,R){return t=void 0,o.clear(),i.writeNode(A,I,R,o),o.getText()}function v(A,I,R,M){const C={text:m(A,I,R),getLineAndCharacterOfPosition(V){return bs(this,V)}},O=A5(M,R),U=_r.assignPositionsToNode(I),K=Oc.formatNodeGivenIndentation(U,C,R.languageVariant,0,0,{...M,options:O}),Z=t?Iy(So(K,t),(V,se)=>x6(V.span,se.span)):K;return _r.applyChanges(C.text,Z)}}function BLe(e){const t=e.fileName?void 0:tm(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:tm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function cnt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return MLe(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 unt(e,t,r,i,o,s,l){const u=t.replacementSpan,p=QE(dM(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",v=Fu.getImportKind(o,h,s,!0),A=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?` ${fa(156)} `:" ",R=A?`${fa(156)} `:"",M=i?";":"";switch(v){case 3:return{replacementSpan:u,insertText:`import${I}${QE(e)}${m} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${I}${QE(e)}${m} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${I}* as ${QE(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${I}{ ${R}${QE(e)}${m} } from ${p}${M}`}}}function GLe(e,t,r){return/^\d+$/.test(r)?r:dM(e,t,r)}function dnt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Nme(e){if(hz(e))return tm(e.moduleSymbol.name);if(bM(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Cme(e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M,C,O,U,K,Z,V,se,G,ne,he=!1){const ve=Ys(),$=Mnt(i,o),Y=hO(l),oe=p.getTypeChecker(),fe=new Map;for(let ie=0;ieje.getSourceFile()===o.getSourceFile()));fe.set(Ee,Se),xv(t,At,gz,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ys()-ve)),{has:ie=>fe.has(ie),add:ie=>fe.set(ie,!0)};function Ne(ie,ye){var Me;let Ue=ie.flags;if(!$i(o)){if(kl(o.parent))return!0;if(ii($,wi)&&ie.valueDeclaration===$)return!1;const Ee=ie.valueDeclaration??((Me=ie.declarations)==null?void 0:Me[0]);if($&&Ee&&(gl($)&&gl(Ee)||Ao($)&&Ao(Ee))){const Pe=Ee.pos,We=Ao($)?$.parent.parameters:FS($.parent)?void 0:$.parent.typeParameters;if(Pe>=$.pos&&We&&PeDme(r,l,K)===o.name);return U!==void 0?{type:"literal",literal:U}:qt(h,(K,Z)=>{const V=I[Z],se=bQ(K,os(u),V,A,p.isJsxIdentifierExpected);return se&&se.name===o.name&&(o.source==="ClassMemberSnippet/"&&K.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&K.flags&8196||Nme(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:K,location:v,origin:V,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function mnt(e,t,r,i,o,s,l,u,p){const h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:v,source:A,data:I}=o,{previousToken:R,contextToken:M}=vQ(i,r);if(DI(r,i,R))return RQ.getStringLiteralCompletionDetails(v,r,i,R,e,s,p,u);const C=VLe(e,t,r,i,o,s,u);switch(C.type){case"request":{const{request:O}=C;switch(O.kind){case 1:return B0.getJSDocTagNameCompletionDetails(v);case 2:return B0.getJSDocTagCompletionDetails(v);case 3:return B0.getJSDocParameterNameCompletionDetails(v);case 4:return bt(O.keywordCompletions,U=>U.name===v)?Pme(v,"keyword",5):void 0;default:return N.assertNever(O)}}case"symbol":{const{symbol:O,location:U,contextToken:K,origin:Z,previousToken:V}=C,{codeActions:se,sourceDisplay:G}=_nt(v,U,K,Z,O,e,s,m,r,i,V,l,u,I,A,p),ne=xme(Z)?Z.symbolName:O.name;return Mme(O,ne,h,r,U,p,se,G)}case"literal":{const{literal:O}=C;return Pme(Dme(r,u,O),"string",typeof O=="string"?8:7)}case"cases":{const O=FLe(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(O?.importAdder.hasFixes()){const{entry:U,importAdder:K}=O,Z=_r.ChangeTracker.with({host:s,formatContext:l,preferences:u},K.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Z,description:lT([f.Includes_imports_of_types_referenced_by_0,v])}]}}return{name:v,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Bme().some(O=>O.name===v)?Pme(v,"keyword",5):void 0;default:N.assertNever(C)}}function Pme(e,t,r){return yz(e,"",t,[ip(e,r)])}function Mme(e,t,r,i,o,s,l,u){const{displayParts:p,documentation:h,symbolKind:m,tags:v}=r.runWithCancellationToken(s,A=>tv.getSymbolDisplayPartsDocumentationAndSymbolKind(A,e,i,o,o,7));return yz(t,tv.getSymbolModifiers(r,e),m,p,h,v,l,u)}function yz(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function _nt(e,t,r,i,o,s,l,u,p,h,m,v,A,I,R,M){if(I?.moduleSpecifier&&m&&QLe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[df(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:se,eraseRange:G}=zLe(l,s,u,A,e,o,t,h,r,v);if(se||G)return{sourceDisplay:void 0,codeActions:[{changes:_r.ChangeTracker.with({host:l,formatContext:v,preferences:A},he=>{se&&se.writeFixes(he),G&&he.deleteRange(p,G)}),description:lT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(NLe(i)){const se=Fu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,v,A);return N.assertIsDefined(se,"Expected to have a code action for promoting type-only alias"),{codeActions:[se],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const se=_r.ChangeTracker.with({host:l,formatContext:v,preferences:A},G=>G.insertText(p,r.end,","));if(se)return{sourceDisplay:void 0,codeActions:[{changes:se,description:lT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(hz(i)||bM(i)))return{codeActions:void 0,sourceDisplay:void 0};const C=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:O}=i,U=C.getMergedSymbol(bu(o.exportSymbol||o,C)),K=r?.kind===30&&cd(r.parent),{moduleSpecifier:Z,codeAction:V}=Fu.getImportCompletionAction(U,O,I?.exportMapKey,p,e,K,l,s,v,m&&Ve(m)?m.getStart(p):h,A,M);return N.assert(!I?.moduleSpecifier||Z===I.moduleSpecifier),{sourceDisplay:[df(Z)],codeActions:[V]}}function hnt(e,t,r,i,o,s,l){const u=VLe(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function gnt(e,t,r){return qt(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!coe(o)?Lme(o,e,r):void 0})}function ynt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return p5(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:const s=ii(o,XR);return s?EX(s,i):void 0;case 19:return SP(o)&&!ug(o.parent)&&!a1(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=QO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):f5(e.kind)&&mr(o)&&f5(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Lme(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ha(i):e.parent&&(vnt(e.parent)?e:Lme(e.parent,t,r))}function vnt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function jLe(e,t,r,i,o,s,l,u,p,h){const m=e.getTypeChecker(),v=WLe(r,i);let A=Ys(),I=po(r,o);t("getCompletionData: Get current token: "+(Ys()-A)),A=Ys();const R=Xy(r,o,I);t("getCompletionData: Is inside comment: "+(Ys()-A));let M=!1,C=!1;if(R){if(hue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const Ge=lm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Ge,o)))return{kind:2}}}const me=Tnt(I,o);if(me){if(me.tagName.pos<=o&&o<=me.tagName.end)return{kind:1};const Ge=tn(me);if(Ge&&(I=po(r,o),(!I||!Wg(I)&&(I.parent.kind!==355||I.parent.name!==I))&&(M=J(Ge))),!M&&r_(me)&&(zl(me.name)||me.name.pos<=o&&o<=me.name.end))return{kind:3,tag:me}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}A=Ys();const O=!M&&ud(r),U=vQ(o,r),K=U.previousToken;let Z=U.contextToken;t("getCompletionData: Get previous token: "+(Ys()-A));let V=I,se,G=!1,ne=!1,he=!1,ve=!1,$=!1,Y=!1,oe,fe=Vd(r,o),Ne=0,pe=!1,ie=0;if(Z){const me=QLe(Z,r);if(me.keywordCompletion){if(me.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Xtt(me.keywordCompletion)],isNewIdentifierLocation:me.isNewIdentifierLocation};Ne=$tt(me.keywordCompletion)}if(me.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=me,pe=me.isNewIdentifierLocation),!me.replacementSpan&&Qi(Z))return t("Returning an empty list because completion was requested in an invalid position."),Ne?wLe(Ne,O,ma()):void 0;let Ge=Z.parent;if(Z.kind===25||Z.kind===29)switch(G=Z.kind===25,ne=Z.kind===29,Ge.kind){case 211:se=Ge,V=se.expression;const ke=LR(se);if(zl(ke)||(sa(V)||ea(V))&&V.end===Z.pos&&V.getChildCount(r)&&Ya(V.getChildren(r)).kind!==22)return;break;case 166:V=Ge.left;break;case 267:V=Ge.name;break;case 205:V=Ge;break;case 236:V=Ge.getFirstToken(r),N.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(Ge&&Ge.kind===211&&(Z=Ge,Ge=Ge.parent),I.parent===fe)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(fe=I);break;case 44:I.parent.kind===285&&(fe=I);break}switch(Ge.kind){case 287:Z.kind===44&&(ve=!0,fe=Z);break;case 226:if(!$Le(Ge))break;case 285:case 284:case 286:Y=!0,Z.kind===30&&(he=!0,fe=Z);break;case 294:case 293:(K.kind===20||K.kind===80&&K.parent.kind===291)&&(Y=!0);break;case 291:if(Ge.initializer===K&&K.endoT(me?u.getPackageJsonAutoImportProvider():e,u));if(G||ne)rn();else if(he)Ee=m.getJsxIntrinsicTagNamesAt(fe),N.assertEachIsDefined(Ee,"getJsxIntrinsicTagNames() should all be defined"),Qt(),Me=1,Ne=0;else if(ve){const me=Z.parent.parent.openingElement.tagName,Ge=m.getSymbolAtLocation(me);Ge&&(Ee=[Ge]),Me=1,Ne=0}else if(!Qt())return Ne?wLe(Ne,O,pe):void 0;t("getCompletionData: Semantic work: "+(Ys()-ye));const at=K&&ynt(K,o,r,m),yt=!ii(K,ls)&&!Y?Hi(at&&(at.isUnion()?at.types:[at]),me=>me.isLiteral()&&!(me.flags&1024)?me.value:void 0):[],$e=K&&at&&gnt(K,at,m);return{kind:0,symbols:Ee,completionKind:Me,isInSnippetScope:C,propertyAccessToConvert:se,isNewIdentifierLocation:pe,location:fe,keywordFilters:Ne,literals:yt,symbolToOriginInfoMap:Pe,recommendedCompletion:$e,previousToken:K,contextToken:Z,isJsxInitializer:$,insideJsDocTagTypeExpression:M,symbolToSortTextMap:We,isTypeOnlyLocation:Se,isJsxIdentifierExpected:Y,isRightOfOpenTag:he,isRightOfDotOrQuestionDot:G||ne,importStatementCompletion:oe,hasUnresolvedAutoImports:Ue,flags:ie};function It(me){switch(me.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!me.constraint;default:return!1}}function tn(me){if(It(me)){const Ge=sm(me)?me.constraint:me.typeExpression;return Ge&&Ge.kind===316?Ge:void 0}if(hI(me)||eF(me))return me.class}function rn(){Me=2;const me=Vv(V),Ge=me&&!V.isTypeOf||eg(V.parent)||iO(Z,r,m),ke=B7(V);if(Zd(V)||me||Wr(V)){const Tt=Xl(V.parent);Tt&&(pe=!0);let kt=m.getSymbolAtLocation(V);if(kt&&(kt=bu(kt,m),kt.flags&1920)){const en=m.getExportsOfModule(kt);N.assertEachIsDefined(en,"getExportsOfModule() should all be defined");const bn=Ni=>m.isValidPropertyAccess(me?V:V.parent,Ni.name),Bn=Ni=>wme(Ni,m),Hn=Tt?Ni=>{var Ai;return!!(Ni.flags&1920)&&!((Ai=Ni.declarations)!=null&&Ai.every(ir=>ir.parent===V.parent))}:ke?(Ni=>Bn(Ni)||bn(Ni)):Ge||M?Bn:bn;for(const Ni of en)Hn(Ni)&&Ee.push(Ni);if(!Ge&&!M&&kt.declarations&&kt.declarations.some(Ni=>Ni.kind!==312&&Ni.kind!==267&&Ni.kind!==266)){let Ni=m.getTypeOfSymbolAtLocation(kt,V).getNonOptionalType(),Ai=!1;if(Ni.isNullableType()){const ir=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(ir||ne)&&(Ni=Ni.getNonNullableType(),ir&&(Ai=!0))}Pn(Ni,!!(V.flags&65536),Ai)}return}}if(!Ge||MS(V)){m.tryGetThisTypeAt(V,!1);let Tt=m.getTypeAtLocation(V).getNonOptionalType();if(Ge)Pn(Tt.getNonNullableType(),!1,!1);else{let kt=!1;if(Tt.isNullableType()){const en=G&&!ne&&s.includeAutomaticOptionalChainCompletions!==!1;(en||ne)&&(Tt=Tt.getNonNullableType(),en&&(kt=!0))}Pn(Tt,!!(V.flags&65536),kt)}}}function Pn(me,Ge,ke){pe=!!me.getStringIndexType(),ne&&bt(me.getCallSignatures())&&(pe=!0);const Tt=V.kind===205?V:V.parent;if(v)for(const kt of me.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,me,kt)&&Xn(kt,!1,ke);else Ee.push(...nr(TQ(me,m),kt=>m.isValidPropertyAccessForCompletions(Tt,me,kt)));if(Ge&&s.includeCompletionsWithInsertText){const kt=m.getPromisedTypeOfPromise(me);if(kt)for(const en of kt.getApparentProperties())m.isValidPropertyAccessForCompletions(Tt,kt,en)&&Xn(en,!0,ke)}}function Xn(me,Ge,ke){var Tt;const kt=qt(me.declarations,Hn=>ii(Mo(Hn),Za));if(kt){const Hn=hn(kt.expression),Ni=Hn&&m.getSymbolAtLocation(Hn),Ai=Ni&&Lme(Ni,Z,m),ir=Ai&&Ta(Ai);if(ir&&Rm(At,ir)){const Vr=Ee.length;Ee.push(Ai);const yo=Ai.parent;if(!yo||!sO(yo)||m.tryGetMemberInModuleExportsAndProperties(Ai.name,yo)!==Ai)Pe[Vr]={kind:Bn(2)};else{const Ci=Yc(tm(yo.name))?(Tt=C4(yo))==null?void 0:Tt.fileName:void 0,{moduleSpecifier:Ii}=(De||(De=Fu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Ci,isFromPackageJson:!1,moduleSymbol:yo,symbol:Ai,targetFlags:bu(Ai,m).flags}],o,S0(fe))||{};if(Ii){const Jr={kind:Bn(6),moduleSymbol:yo,isDefaultExport:!1,symbolName:Ai.name,exportName:Ai.name,fileName:Ci,moduleSpecifier:Ii};Pe[Vr]=Jr}}}else if(s.includeCompletionsWithInsertText){if(ir&&At.has(ir))return;bn(me),en(me),Ee.push(me)}}else bn(me),en(me),Ee.push(me);function en(Hn){Nnt(Hn)&&(We[Ta(Hn)]=zu.LocalDeclarationPriority)}function bn(Hn){s.includeCompletionsWithInsertText&&(Ge&&Rm(At,Ta(Hn))?Pe[Ee.length]={kind:Bn(8)}:ke&&(Pe[Ee.length]={kind:16}))}function Bn(Hn){return ke?Hn|16:Hn}}function hn(me){return Ve(me)?me:Wr(me)?hn(me.expression):void 0}function Qt(){return(Sn()||kn()||ao()||He()||mt()||ft()||$t()||Ct()||_i()||(Oi(),1))===1}function $t(){return Fe(Z)?(Me=5,pe=!0,Ne=4,1):0}function _i(){const me=j(Z),Ge=me&&m.getContextualType(me.attributes);if(!Ge)return 0;const ke=me&&m.getContextualType(me.attributes,4);return Ee=So(Ee,_e(SQ(Ge,ke,me.attributes,m),me.attributes.properties)),q(),Me=3,pe=!1,1}function ao(){return oe?(pe=!0,tt(),1):0}function Oi(){Ne=pt(Z)?5:1,Me=1,pe=ma(),K!==Z&&N.assert(!!K,"Expected 'contextToken' to be defined when different from 'previousToken'.");const me=K!==Z?K.getStart():o,Ge=hi(Z,me,r)||r;C=Mn(Ge);const ke=(Se?0:111551)|788968|1920|2097152,Tt=K&&!S0(K);Ee=So(Ee,m.getSymbolsInScope(Ge,ke)),N.assertEachIsDefined(Ee,"getSymbolsInScope() should all be defined");for(let kt=0;ktbn.getSourceFile()===r)&&(We[Ta(en)]=zu.GlobalsOrKeywords),Tt&&!(en.flags&111551)){const bn=en.declarations&&An(en.declarations,lL);if(bn){const Bn={kind:64,declaration:bn};Pe[kt]=Bn}}}if(s.includeCompletionsWithInsertText&&Ge.kind!==312){const kt=m.tryGetThisTypeAt(Ge,!1,ui(Ge.parent)?Ge:void 0);if(kt&&!Dnt(kt,r,m))for(const en of TQ(kt,m))Pe[Ee.length]={kind:1},Ee.push(en),We[Ta(en)]=zu.SuggestedClassMembers}tt(),Se&&(Ne=Z&&yS(Z.parent)?6:7)}function No(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||rX(e.getCompilerOptions())?!0:Sue(e):!1}function Mn(me){switch(me.kind){case 312:case 228:case 294:case 241:return!0;default:return qi(me)}}function Di(){return M||!!oe&&f0(fe.parent)||!Ar(Z)&&(iO(Z,r,m)||eg(fe)||sn(Z))}function Ar(me){return me&&(me.kind===114&&(me.parent.kind===186||JR(me.parent))||me.kind===131&&me.parent.kind===182)}function sn(me){if(me){const Ge=me.parent.kind;switch(me.kind){case 59:return Ge===172||Ge===171||Ge===169||Ge===260||NA(Ge);case 64:return Ge===265||Ge===168;case 130:return Ge===234;case 30:return Ge===183||Ge===216;case 96:return Ge===168;case 152:return Ge===238}}return!1}function tt(){var me,Ge;if(!No()||(N.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;const Tt=K===Z&&oe?"":K&&Ve(K)?K.text.toLowerCase():"",kt=(me=u.getModuleSpecifierCache)==null?void 0:me.call(u),en=bO(r,u,e,s,h),bn=(Ge=u.getPackageJsonAutoImportProvider)==null?void 0:Ge.call(u),Bn=l?void 0:fM(r,s,u);PLe("collectAutoImports",u,De||(De=Fu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,S0(fe),Ni=>{en.search(r.path,he,(Ai,ir)=>{if(!tf(Ai,os(u.getCompilationSettings()))||!l&&zA(Ai)||!Se&&!oe&&!(ir&111551)||Se&&!(ir&790504))return!1;const Vr=Ai.charCodeAt(0);return he&&(Vr<65||Vr>90)?!1:l?!0:rke(Ai,Tt)},(Ai,ir,Vr,yo)=>{if(l&&!bt(Ai,Fs=>l.source===tm(Fs.moduleSymbol.name))||(Ai=nr(Ai,Hn),!Ai.length))return;const Ci=Ni.tryResolve(Ai,Vr)||{};if(Ci==="failed")return;let Ii=Ai[0],Jr;Ci!=="skipped"&&({exportInfo:Ii=Ai[0],moduleSpecifier:Jr}=Ci);const xo=Ii.exportKind===1,Dn=xo&&PR(Ii.symbol)||Ii.symbol;Bt(Dn,{kind:Jr?32:4,moduleSpecifier:Jr,symbolName:ir,exportMapKey:yo,exportName:Ii.exportKind===2?"export=":Ii.symbol.name,fileName:Ii.moduleFileName,isDefaultExport:xo,moduleSymbol:Ii.moduleSymbol,isFromPackageJson:Ii.isFromPackageJson})}),Ue=Ni.skippedAny(),ie|=Ni.resolvedAny()?8:0,ie|=Ni.resolvedBeyondLimit()?16:0});function Hn(Ni){const Ai=ii(Ni.moduleSymbol.valueDeclaration,$i);if(!Ai){const ir=tm(Ni.moduleSymbol.name);return G_.nodeCoreModules.has(ir)&&uo(ir,"node:")!==T5(r,e)?!1:Bn?Bn.allowsImportingAmbientModule(Ni.moduleSymbol,je(Ni.isFromPackageJson)):!0}return WX(Ni.isFromPackageJson?bn:e,r,Ai,s,Bn,je(Ni.isFromPackageJson),kt)}}function Bt(me,Ge){const ke=Ta(me);We[ke]!==zu.GlobalsOrKeywords&&(Pe[Ee.length]=Ge,We[ke]=oe?zu.LocationPriority:zu.AutoImportSuggestions,Ee.push(me))}function Rn(me,Ge){lr(fe)||me.forEach(ke=>{if(!li(ke))return;const Tt=bQ(ke,os(i),void 0,0,!1);if(!Tt)return;const{name:kt}=Tt,en=snt(ke,kt,Ge,e,u,i,s,p);if(!en)return;const bn={kind:128,...en};ie|=32,Pe[Ee.length]=bn,Ee.push(ke)})}function li(me){return!!(me.flags&8196)}function hi(me,Ge,ke){let Tt=me;for(;Tt&&!jK(Tt,Ge,ke);)Tt=Tt.parent;return Tt}function Qi(me){const Ge=Ys(),ke=Wa(me)||Rt(me)||Vt(me)||Io(me)||zW(me);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ys()-Ge)),ke}function Io(me){if(me.kind===12)return!0;if(me.kind===32&&me.parent){if(fe===me.parent&&(fe.kind===286||fe.kind===285))return!1;if(me.parent.kind===286)return fe.parent.kind!==286;if(me.parent.kind===287||me.parent.kind===285)return!!me.parent.parent&&me.parent.parent.kind===284}return!1}function ma(){if(Z){const me=Z.parent.kind,Ge=EQ(Z);switch(Ge){case 28:return me===213||me===176||me===214||me===209||me===226||me===184||me===210;case 21:return me===213||me===176||me===214||me===217||me===196;case 23:return me===209||me===181||me===167;case 144:case 145:case 102:return!0;case 25:return me===267;case 19:return me===263||me===210;case 64:return me===260||me===226;case 16:return me===228;case 17:return me===239;case 134:return me===174||me===304;case 42:return me===174}if(vz(Ge))return!0}return!1}function Wa(me){return(dH(me)||UV(me))&&(tO(me,o)||o===me.end&&(!!me.isUnterminated||dH(me)))}function Sn(){const me=xnt(Z);if(!me)return 0;const ke=(lI(me.parent)?me.parent:void 0)||me,Tt=YLe(ke,m);if(!Tt)return 0;const kt=m.getTypeFromTypeNode(ke),en=TQ(Tt,m),bn=TQ(kt,m),Bn=new Set;return bn.forEach(Hn=>Bn.add(Hn.escapedName)),Ee=So(Ee,nr(en,Hn=>!Bn.has(Hn.escapedName))),Me=0,pe=!0,1}function kn(){const me=Ee.length,Ge=bnt(Z,o,r);if(!Ge)return 0;Me=0;let ke,Tt;if(Ge.kind===210){const kt=Cnt(Ge,m);if(kt===void 0)return Ge.flags&67108864?2:0;const en=m.getContextualType(Ge,4),bn=(en||kt).getStringIndexType(),Bn=(en||kt).getNumberIndexType();if(pe=!!bn||!!Bn,ke=SQ(kt,en,Ge,m),Tt=Ge.properties,ke.length===0&&!Bn)return 0}else{N.assert(Ge.kind===206),pe=!1;const kt=C_(Ge.parent);if(!dR(kt))return N.fail("Root declaration is not variable-like.");let en=zv(kt)||!!vu(kt)||kt.parent.parent.kind===250;if(!en&&kt.kind===169&&(vt(kt.parent)?en=!!m.getContextualType(kt.parent):(kt.parent.kind===174||kt.parent.kind===178)&&(en=vt(kt.parent.parent)&&!!m.getContextualType(kt.parent.parent))),en){const bn=m.getTypeAtLocation(Ge);if(!bn)return 2;ke=m.getPropertiesOfType(bn).filter(Bn=>m.isPropertyAccessible(Ge,!1,!1,bn,Bn)),Tt=Ge.elements}}if(ke&&ke.length>0){const kt=pn(ke,N.checkDefined(Tt));Ee=So(Ee,kt),q(),Ge.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(me),Rn(kt,Ge))}return 1}function He(){if(!Z)return 0;const me=Z.kind===19||Z.kind===28?ii(Z.parent,N3):n5(Z)?ii(Z.parent.parent,N3):void 0;if(!me)return 0;n5(Z)||(Ne=8);const{moduleSpecifier:Ge}=me.kind===275?me.parent.parent:me.parent;if(!Ge)return pe=!0,me.kind===275?2:0;const ke=m.getSymbolAtLocation(Ge);if(!ke)return pe=!0,2;Me=3,pe=!1;const Tt=m.getExportsAndPropertiesOfModule(ke),kt=new Set(me.elements.filter(bn=>!J(bn)).map(bn=>(bn.propertyName||bn.name).escapedText)),en=Tt.filter(bn=>bn.escapedName!=="default"&&!kt.has(bn.escapedName));return Ee=So(Ee,en),en.length||(Ne=0),1}function mt(){if(Z===void 0)return 0;const me=Z.kind===19||Z.kind===28?ii(Z.parent,pI):Z.kind===59?ii(Z.parent.parent,pI):void 0;if(me===void 0)return 0;const Ge=new Set(me.elements.map(Q3));return Ee=nr(m.getTypeAtLocation(me).getApparentProperties(),ke=>!Ge.has(ke.escapedName)),1}function ft(){var me;const Ge=Z&&(Z.kind===19||Z.kind===28)?ii(Z.parent,Pf):void 0;if(!Ge)return 0;const ke=Gn(Ge,Ym($i,Xl));return Me=5,pe=!1,(me=ke.locals)==null||me.forEach((Tt,kt)=>{var en,bn;Ee.push(Tt),(bn=(en=ke.symbol)==null?void 0:en.exports)!=null&&bn.has(kt)&&(We[Ta(Tt)]=zu.OptionalMember)}),1}function Ct(){const me=Int(r,Z,fe,o);if(!me)return 0;if(Me=3,pe=!0,Ne=Z.kind===42?0:ui(me)?2:3,!ui(me))return 1;const Ge=Z.kind===27?Z.parent.parent:Z.parent;let ke=$c(Ge)?dd(Ge):0;if(Z.kind===80&&!J(Z))switch(Z.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Rl(Ge)&&(ke|=256),!(ke&2)){const Tt=ui(me)&&ke&16?SA(D_(me)):NC(me),kt=Pi(Tt,en=>{const bn=m.getTypeAtLocation(en);return ke&256?bn?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(bn.symbol,me)):bn&&m.getPropertiesOfType(bn)});Ee=So(Ee,L(kt,me.members,ke)),Xe(Ee,(en,bn)=>{const Bn=en?.valueDeclaration;if(Bn&&$c(Bn)&&Bn.name&&Za(Bn.name)){const Hn={kind:512,symbolName:m.symbolToString(en)};Pe[bn]=Hn}})}return 1}function le(me){return!!me.parent&&Ao(me.parent)&&Ml(me.parent.parent)&&(mC(me.kind)||Wg(me))}function Fe(me){if(me){const Ge=me.parent;switch(me.kind){case 21:case 28:return Ml(me.parent)?me.parent:void 0;default:if(le(me))return Ge.parent}}}function pt(me){if(me){let Ge;const ke=Gn(me.parent,Tt=>ui(Tt)?"quit":Bs(Tt)&&Ge===Tt.body?!0:(Ge=Tt,!1));return ke&&ke}}function j(me){if(me){const Ge=me.parent;switch(me.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ge&&(Ge.kind===285||Ge.kind===286)){if(me.kind===32){const ke=xc(me.pos,r,void 0);if(!Ge.typeArguments||ke&&ke.kind===44)break}return Ge}else if(Ge.kind===291)return Ge.parent.parent;break;case 11:if(Ge&&(Ge.kind===291||Ge.kind===293))return Ge.parent.parent;break;case 20:if(Ge&&Ge.kind===294&&Ge.parent&&Ge.parent.kind===291)return Ge.parent.parent.parent;if(Ge&&Ge.kind===293)return Ge.parent.parent;break}}}function ot(me,Ge){return r.getLineEndOfPosition(me.getEnd())=me.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||_t(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||NA(ke);case 126:return ke===172&&!ui(Ge.parent);case 26:return ke===169||!!Ge.parent&&Ge.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Ml(Ge.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!AQ(me);case 80:{if(ke===276&&me===Ge.name&&me.text==="type"||Gn(me.parent,wi)&&ot(me,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 ke!==276;case 42:return ea(me.parent)&&!ql(me.parent)}if(vz(EQ(me))&&AQ(me)||le(me)&&(!Ve(me)||mC(EQ(me))||J(me)))return!1;switch(EQ(me)){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(me.parent)}if(Gn(me.parent,ui)&&me===K&&Ye(me,o))return!1;const kt=v0(me.parent,172);if(kt&&me!==K&&ui(K.parent.parent)&&o<=K.end){if(Ye(me,K.end))return!1;if(me.kind!==64&&(Dw(kt)||A4(kt)))return!0}return Wg(me)&&!rp(me.parent)&&!F_(me.parent)&&!((ui(me.parent)||_d(me.parent)||gl(me.parent))&&(me!==K||o>K.end))}function Ye(me,Ge){return me.kind!==64&&(me.kind===27||!Rf(me.end,Ge,r))}function _t(me){return NA(me)&&me!==176}function Vt(me){if(me.kind===9){const Ge=me.getFullText();return Ge.charAt(Ge.length-1)==="."}return!1}function yn(me){return me.parent.kind===261&&!iO(me,r,m)}function pn(me,Ge){if(Ge.length===0)return me;const ke=new Set,Tt=new Set;for(const en of Ge){if(en.kind!==303&&en.kind!==304&&en.kind!==208&&en.kind!==174&&en.kind!==177&&en.kind!==178&&en.kind!==305||J(en))continue;let bn;if(qy(en))_n(en,ke);else if(Qa(en)&&en.propertyName)en.propertyName.kind===80&&(bn=en.propertyName.escapedText);else{const Bn=Mo(en);bn=Bn&&N_(Bn)?MC(Bn):void 0}bn!==void 0&&Tt.add(bn)}const kt=me.filter(en=>!Tt.has(en.escapedName));return Oe(ke,kt),kt}function _n(me,Ge){const ke=me.expression,Tt=m.getSymbolAtLocation(ke),kt=Tt&&m.getTypeOfSymbolAtLocation(Tt,ke),en=kt&&kt.properties;en&&en.forEach(bn=>{Ge.add(bn.name)})}function q(){Ee.forEach(me=>{if(me.flags&16777216){const Ge=Ta(me);We[Ge]=We[Ge]??zu.OptionalMember}})}function Oe(me,Ge){if(me.size!==0)for(const ke of Ge)me.has(ke.name)&&(We[Ta(ke)]=zu.MemberDeclaredBySpreadAssignment)}function Lt(me){for(let Ge=me;Ge!Tt.has(kt.escapedName)&&!!kt.declarations&&!(Df(kt)&2)&&!(kt.valueDeclaration&&ld(kt.valueDeclaration)))}function _e(me,Ge){const ke=new Set,Tt=new Set;for(const en of Ge)J(en)||(en.kind===291?ke.add(aP(en.name)):_I(en)&&_n(en,Tt));const kt=me.filter(en=>!ke.has(en.escapedName));return Oe(Tt,kt),kt}function J(me){return me.getStart(r)<=o&&o<=me.getEnd()}}function bnt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(Oa(o)||am(o))return o;break;case 42:return ql(o)?ii(o.parent,Oa):void 0;case 134:return ii(o.parent,Oa);case 80:if(e.text==="async"&&rp(e.parent))return e.parent.parent;{if(Oa(e.parent.parent)&&(qy(e.parent)||rp(e.parent)&&bs(r,e.getEnd()).line!==bs(r,t).line))return e.parent.parent;const l=Gn(o,_c);if(l?.getLastToken(r)===e&&Oa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(ql(o.parent)||rf(o.parent)||vp(o.parent))&&Oa(o.parent.parent))return o.parent.parent;if(qy(o)&&Oa(o.parent))return o.parent;const s=Gn(o,_c);if(e.kind!==59&&s?.getLastToken(r)===e&&Oa(s.parent))return s.parent}}}function vQ(e,t){const r=xc(e,t);return r&&e<=r.end&&($h(r)||Bd(r.kind))?{contextToken:xc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function ULe(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(N.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&PR(u)||u,{symbol:u,origin:cnt(t,e,l)}):void 0}function bQ(e,t,r,i,o){if(Htt(r))return;const s=Gtt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&wL(s.charCodeAt(0))||tk(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(tf(s,t,o?1:0)||e.valueDeclaration&&ld(e.valueDeclaration))return l;switch(i){case 3:return xme(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:N.assertNever(i)}}function HLe(e,t){if(!t)return qLe(e);const r=e+8+1;return bz[r]||(bz[r]=qLe(e).filter(i=>!Ent(CE(i.name))))}function qLe(e){return bz[e]||(bz[e]=Bme().filter(t=>{const r=CE(t.name);switch(e){case 0:return!1;case 1:return KLe(r)||r===138||r===144||r===156||r===145||r===128||oM(r)&&r!==157;case 5:return KLe(r);case 2:return vz(r);case 3:return JLe(r);case 4:return mC(r);case 6:return oM(r)||r===87;case 7:return oM(r);case 8:return r===156;default:return N.assertNever(e)}}))}function Ent(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 JLe(e){return e===148}function vz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return HV(e)}}function KLe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!l3(e)&&!vz(e)}function EQ(e){return Ve(e)?c0(e)??0:e.kind}function Snt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(kc(o)||Yl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:fa(132),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords})}return r}function Tnt(e,t){return Gn(e,r=>rR(r)&&eO(r,t)?!0:n_(r)?"quit":!1)}function SQ(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=Ant(s,r,i);return s.isClass()&&XLe(l)?[]:o?nr(l,u):l;function u(p){return Le(p.declarations)?bt(p.declarations,h=>h.parent!==r):!0}}function Ant(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(nr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&XLe(i.getApparentProperties())))):e.getApparentProperties()}function XLe(e){return bt(e,t=>!!(Df(t)&6))}function TQ(e,t){return e.isUnion()?N.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):N.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Int(e,t,r,i){switch(r.kind){case 358:return ii(r.parent,UA);case 1:const o=ii(tl(oa(r.parent,$i).statements),UA);if(o&&!ys(o,20,e))return o;break;case 81:if(ii(r.parent,Jo))return Gn(r,ui);break;case 80:{if(c0(r)||Jo(r.parent)&&r.parent.initializer===r)return;if(AQ(r))return Gn(r,UA)}}if(t){if(r.kind===137||Ve(t)&&Jo(t.parent)&&ui(r))return Gn(t,ui);switch(t.kind){case 64:return;case 27:case 20:return AQ(r)&&r.parent.name===r?r.parent.parent:ii(r,UA);case 19:case 28:return ii(t.parent,UA);default:if(UA(r)){if(bs(e,t.getEnd()).line!==bs(e,i).line)return r;const o=ui(t.parent.parent)?vz:JLe;return o(t.kind)||t.kind===42||Ve(t)&&o(c0(t)??0)?t.parent.parent:void 0}return}}}function xnt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(bp(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&bp(t.parent))return t.parent;break}}function YLe(e,t){if(!e)return;if(ji(e)&&I4(e.parent))return t.getTypeArgumentConstraint(e);const r=YLe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function AQ(e){return e.parent&&g4(e.parent)&&UA(e.parent.parent)}function Rnt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&zue(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ji(r)&&!!su(r);case"<":return!!r&&r.kind===30&&(!mr(r.parent)||$Le(r.parent));case"/":return!!r&&(ls(r)?!!UL(r):r.kind===44&&o1(r.parent));case" ":return!!r&&hP(r)&&r.parent.kind===312;default:return N.assertNever(t)}}function $Le({left:e}){return zl(e)}function Dnt(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;const s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function Nnt(e){return!!(e.valueDeclaration&&dd(e.valueDeclaration)&256&&ui(e.valueDeclaration.parent))}function Cnt(e,t){const r=t.getContextualType(e);if(r)return r;const i=Wy(e.parent);if(mr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(vt(i))return t.getContextualType(i)}function QLe(e,t){var r,i,o;let s,l=!1;const u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ii(u,kc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ii(u,tu))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&eke(u,e),replacementSpan:Pnt(u)};function p(){const h=e.parent;if(tu(h)){const m=h.getLastToken(t);if(Ve(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,kme(h.moduleReference)?h:void 0}if(eke(h,e)&&tke(h.parent))return h;if(Vg(h)||nb(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),tke(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(Yl(h)&&e.kind===42||Pf(h)&&e.kind===20){l=!0,s=161;return}if(hP(e)&&$i(h))return s=156,e;if(hP(e)&&kc(h))return s=156,kme(h.moduleSpecifier)?h:void 0}}function Pnt(e){var t;if(!e)return;const r=Gn(e,Ym(kc,tu))??e,i=r.getSourceFile();if(kS(r,i))return Dd(r,i);N.assert(r.kind!==102&&r.kind!==276);const o=r.kind===272?ZLe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(kS(s,i))return sb(s)}function ZLe(e){var t;return An((t=ii(e,Vg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&zA(r.name.text)&&((i=xc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function eke(e,t){return np(e)&&(e.isTypeOnly||t===e.name&&n5(t))}function tke(e){if(!kme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Vg(e)){const t=ZLe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function kme(e){var t;return zl(e)?!0:!((t=ii(Th(e)?e.expression:e,ls))!=null&&t.text)}function Mnt(e,t){if(!e)return;const r=Gn(e,o=>zE(o)||nke(o)||ta(o)?"quit":(Ao(o)||gl(o))&&!e1(o.parent)),i=Gn(t,o=>zE(o)||nke(o)||ta(o)?"quit":wi(o));return r||i}function nke(e){return e.parent&&Gs(e.parent)&&(e.parent.body===e||e.kind===39)}function wme(e,t,r=new Map){return i(e)||i(bu(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Rm(r,Ta(o))&&t.getExportsOfModule(o).some(s=>wme(s,t,r))}}function Lnt(e,t){const r=bu(e,t).declarations;return!!Le(r)&&Zn(r,S5)}function rke(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const 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))(Wme||{}),Fme=(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))(Fme||{}),zme=(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))(zme||{}),bz=[],Bme=Sd(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:fa(t),kind:"keyword",kindModifiers:"",sortText:zu.GlobalsOrKeywords});return e})}});function Gme(){const e=new Map;function t(r){const i=e.get(r.name);(!i||qme[i.kind]({name:ig(I.value,v),kindModifiers:"",kind:"string",sortText:zu.LocationPriority,replacementSpan:QK(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:A}}default:return N.assertNever(e)}}function znt(e,t,r,i,o,s,l,u){if(!i||!ls(i))return;const p=ake(t,i,r,o,s,u);return p&&Bnt(e,i,p,t,o.getTypeChecker(),l)}function Bnt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=An(r.paths,u=>u.name===e);return l&&yz(e,oke(l.extension),l.kind,[df(e)])}case 1:{const l=An(r.symbols,u=>u.name===e);return l&&Mme(l,l.name,o,i,t,s)}case 2:return An(r.types,l=>l.value===e)?yz(e,"","string",[df(e)]):void 0;default:return N.assertNever(r)}}function ike(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:oke(u),sortText:zu.LocationPriority,replacementSpan:l}))}}function oke(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 N.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return N.assertNever(e)}}function ake(e,t,r,i,o,s){const l=i.getTypeChecker(),u=Vme(t.parent);switch(u.kind){case 201:{const I=Vme(u.parent);return I.kind===205?{kind:0,paths:cke(e,t,i,o,s)}:p(I)}case 303:return Oa(u.parent)&&u.name===t?jnt(l,u.parent):h()||h(0);case 212:{const{expression:I,argumentExpression:R}=u;return t===hs(R)?ske(l.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!rrt(t)&&!Bp(u)){const I=QO.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return I&&Vnt(I.invocation,t,I,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:cke(e,t,i,o,s)};case 296:const m=I5(l,u.parent.clauses),v=h();return v?{kind:2,types:v.types.filter(I=>!m.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{const I=Gn(u,R=>R.parent===m);return I?{kind:2,types:xQ(l.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:const{indexType:v,objectType:A}=m;return eO(v,r)?ske(l.getTypeFromTypeNode(A)):void 0;case 192:{const I=p(Vme(m.parent));if(!I)return;const R=Gnt(m,u);return I.kind===1?{kind:1,symbols:I.symbols.filter(M=>!Nr(R,M.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(M=>!Nr(R,M.value)),isNewIdentifier:!1}}default:return}}function h(m=4){const v=xQ(p5(t,l,m));if(v.length)return{kind:2,types:v,isNewIdentifier:!1}}}function Vme(e){switch(e.kind){case 196:return XL(e);case 217:return Wy(e);default:return e}}function Gnt(e,t){return Hi(e.types,r=>r!==t&&Zv(r)&&Ma(r.literal)?r.literal.text:void 0)}function Vnt(e,t,r,i){let o=!1;const s=new Map,l=cd(e)?N.checkDefined(Gn(t.parent,F_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=Pi(u,h=>{if(!Yu(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(cd(e)){const v=i.getTypeOfPropertyOfType(m,Ek(l.name));v&&(m=v)}return o=o||!!(m.flags&4),xQ(m,s)});return Le(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function ske(e){return e&&{kind:1,symbols:nr(e.getApparentProperties(),t=>!(t.valueDeclaration&&ld(t.valueDeclaration))),hasIndexSignature:bX(e)}}function jnt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:SQ(r,i,t,e),hasIndexSignature:bX(r)}}function xQ(e,t=new Map){return e?(e=nX(e),e.isUnion()?Pi(e.types,r=>xQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Rm(t,e.value)?[e]:et):et}function EM(e,t,r){return{name:e,kind:t,extension:r}}function jme(e){return EM(e,"directory",void 0)}function lke(e,t,r){const i=trt(e,t),o=e.length===0?void 0:yu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(al)||s.includes(q2)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function cke(e,t,r,i,o){return lke(t.text,t.getStart(e)+1,Unt(e,t,r,i,o))}function Unt(e,t,r,i,o){const s=Lu(t.text),l=ls(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=ai(u),h=r.getCompilerOptions(),m=r.getTypeChecker(),v=Ume(h,1,e,m,o,l);return nrt(s)||!h.baseUrl&&!h.paths&&(pp(s)||Wne(s))?Hnt(s,p,h,i,u,v):Xnt(s,p,l,h,i,v,m)}function Ume(e,t,r,i,o,s){return{extensionsToSearch:da(qnt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function Hnt(e,t,r,i,o,s){return r.rootDirs?Knt(r.rootDirs,e,t,s,r,i,o):zo(JO(e,t,s,i,!0,o).values())}function qnt(e,t){const r=t?Hi(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...XC(e),r],o=fd(e);return r5(o)?mk(e,i):i}function Jnt(e,t,r,i){e=e.map(s=>Bc(ga(pp(s)?s:Qr(t,s))));const o=qt(e,s=>bm(s,r,t,i)?r.substr(s.length):void 0);return RE([...e.map(s=>Qr(s,o)),r].map(s=>i0(s)),cS,Uu)}function Knt(e,t,r,i,o,s,l){const u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=Jnt(e,u,r,p);return RE(Pi(h,m=>zo(JO(t,m,i,s,!0,l).values())),(m,v)=>m.name===v.name&&m.kind===v.kind&&m.extension===v.extension)}function JO(e,t,r,i,o,s,l=Gme()){var u;e===void 0&&(e=""),e=Lu(e),Py(e)||(e=ai(e)),e===""&&(e="."+al),e=Bc(e);const p=Pv(t,e),h=Py(p)?p:ai(p);if(!o){const I=Gue(h,i);if(I){const M=VC(I,i).typesVersions;if(typeof M=="object"){const C=(u=IF(M))==null?void 0:u.paths;if(C){const O=ai(I),U=p.slice(Bc(O).length);if(dke(l,U,O,r,i,C))return l}}}}const m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!g5(i,h))return l;const v=SX(i,h,r.extensionsToSearch,void 0,["./*"]);if(v)for(let I of v){if(I=ga(I),s&&Cg(I,s,t,m)===0)continue;const{name:R,extension:M}=uke(rc(I),i.getCompilationSettings(),r,!1);l.add(EM(R,"script",M))}const A=h5(i,h);if(A)for(const I of A){const R=rc(ga(I));R!=="@types"&&l.add(jme(R))}return l}function uke(e,t,r,i){const o=f1.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Bg(o)};if(r.referenceKind===0)return{name:e,extension:Bg(e)};let s=Iw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Tc(e,xk))return{name:e,extension:Bg(e)};const u=f1.tryGetJSExtensionForFile(e,t);return u?{name:E0(e,u),extension:u}:{name:e,extension:Bg(e)}}if(!i&&(s[0]===0||s[0]===1)&&Tc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Ad(e),extension:Bg(e)};const l=f1.tryGetJSExtensionForFile(e,t);return l?{name:E0(e,l),extension:l}:{name:e,extension:Bg(e)}}function dke(e,t,r,i,o,s){const l=p=>s[p],u=(p,h)=>{const m=OR(p),v=OR(h),A=typeof m=="object"?m.prefix.length:p.length,I=typeof v=="object"?v.prefix.length:h.length;return rl(I,A)};return pke(e,!1,t,r,i,o,Kh(s),l,u)}function pke(e,t,r,i,o,s,l,u,p){let h=[],m;for(const v of l){if(v===".")continue;const A=v.replace(/^\.\//,""),I=u(v);if(I){const R=OR(A);if(!R)continue;const M=typeof R=="object"&&D6(R,r);M&&(m===void 0||p(v,m)===-1)&&(m=v,h=h.filter(O=>!O.matchedPattern)),(typeof R=="string"||m===void 0||p(v,m)!==1)&&h.push({matchedPattern:M,results:Ynt(A,I,r,i,o,t&&M,s).map(({name:O,kind:U,extension:K})=>EM(O,U,K))})}}return h.forEach(v=>v.results.forEach(A=>e.add(A))),m!==void 0}function Xnt(e,t,r,i,o,s,l){const{baseUrl:u,paths:p}=i,h=Gme(),m=fd(i);if(u){const A=ga(Qr(o.getCurrentDirectory(),u));JO(e,A,s,o,!1,void 0,h)}if(p){const A=_3(i,o);dke(h,e,A,s,o,p)}const v=mke(e);for(const A of Qnt(e,v,l))h.add(EM(A,"external module name",void 0));if(gke(o,i,t,v,s,h),r5(m)){let A=!1;if(v===void 0)for(const I of ert(o,t)){const R=EM(I,"external module name",void 0);h.has(R.name)||(A=!0,h.add(R))}if(!A){let I=R=>{const M=Qr(R,"node_modules");g5(o,M)&&JO(e,M,s,o,!1,void 0,h)};if(v&&rW(i)){const R=I;I=M=>{const C=zc(e);C.shift();let O=C.shift();if(!O)return R(M);if(uo(O,"@")){const Z=C.shift();if(!Z)return R(M);O=Qr(O,Z)}const U=Qr(M,"node_modules",O),K=Qr(U,"package.json");if(gO(o,K)){const V=VC(K,o).exports;if(V){if(typeof V!="object"||V===null)return;const se=Kh(V),G=C.join("/")+(C.length&&Py(e)?"/":""),ne=ib(i,r);pke(h,!0,G,U,s,o,se,he=>SA(fke(V[he],ne)),xq);return}}return R(M)}}Sm(t,I)}}return zo(h.values())}function fke(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!To(e)){for(const r in e)if(r==="default"||t.includes(r)||Tw(t,r)){const i=e[r];return fke(i,t)}}}function mke(e){return Hme(e)?Py(e)?e:ai(e):void 0}function Ynt(e,t,r,i,o,s,l){if(!Al(e,"*"))return e.includes("*")?et:h(e,"script");const u=e.slice(0,e.length-1),p=cG(r,u);if(p===void 0)return e[e.length-2]==="/"?h(u,"directory"):Pi(t,v=>{var A;return(A=_ke("",i,v,o,s,l))==null?void 0:A.map(({name:I,...R})=>({name:u+I,...R}))});return Pi(t,m=>_ke(p,i,m,o,s,l));function h(m,v){return uo(m,r)?[{name:i0(m),kind:v,extension:void 0}]:et}}function _ke(e,t,r,i,o,s){if(!s.readDirectory)return;const l=OR(r);if(l===void 0||Po(l))return;const u=Pv(l.prefix),p=Py(l.prefix)?u:ai(u),h=Py(l.prefix)?"":rc(u),m=Hme(e),v=m?Py(e)?e:ai(e):void 0,A=m?Qr(p,h+v):p,I=ga(l.suffix),R=I&&m3("_"+I),M=R?[E0(I,R),I]:[I],C=ga(Qr(t,A)),O=m?C:Bc(C)+h,U=I?M.map(se=>"**/*"+se):["./*"],K=Hi(SX(s,C,i.extensionsToSearch,void 0,U),se=>{const G=V(se);if(G){if(Hme(G))return jme(zc(hke(G))[1]);const{name:ne,extension:he}=uke(G,s.getCompilationSettings(),i,o);return EM(ne,"script",he)}}),Z=I?et:Hi(h5(s,C),se=>se==="node_modules"?void 0:jme(se));return[...K,...Z];function V(se){return qt(M,G=>{const ne=$nt(ga(se),O,G);return ne===void 0?void 0:hke(ne)})}}function $nt(e,t,r){return uo(e,t)&&Al(e,r)?e.slice(t.length,e.length-r.length):void 0}function hke(e){return e[0]===al?e.slice(1):e}function Qnt(e,t,r){const o=r.getAmbientModules().map(s=>tm(s.name)).filter(s=>uo(s,e)&&!s.includes("*"));if(t!==void 0){const s=Bc(t);return o.map(l=>$N(l,s))}return o}function Znt(e,t,r,i){const o=po(e,t),s=Xh(e.text,o.pos),l=s&&An(s,R=>t>=R.pos&&t<=R.end);if(!l)return;const u=e.text.slice(l.pos,t),p=yke.exec(u);if(!p)return;const[,h,m,v]=p,A=ai(e.path),I=m==="path"?JO(v,A,Ume(r,0,e),i,!0,e.path):m==="types"?gke(i,r,A,mke(v),Ume(r,1,e)):N.fail();return lke(v,l.pos+h.length,zo(I.values()))}function gke(e,t,r,i,o,s=Gme()){const l=new Map,u=y5(()=>wP(t,e))||et;for(const h of u)p(h);for(const h of TX(r,e)){const m=Qr(ai(h),"node_modules/@types");p(m)}return s;function p(h){if(g5(e,h))for(const m of h5(e,h)){const v=Aw(m);if(!(t.types&&!Nr(t.types,v)))if(i===void 0)l.has(v)||(s.add(EM(v,"external module name",void 0)),l.set(v,!0));else{const A=Qr(h,m),I=SU(i,v,Fy(e));I!==void 0&&JO(I,A,o,e,!1,void 0,s)}}}}function ert(e,t){if(!e.readFile||!e.fileExists)return et;const r=[];for(const i of TX(t,e)){const o=VC(i,e);for(const s of vke){const l=o[s];if(l)for(const u in l)xs(l,u)&&!uo(u,"@types/")&&r.push(u)}}return r}function trt(e,t){const r=Math.max(e.lastIndexOf(al),e.lastIndexOf(q2)),i=r!==-1?r+1:0,o=e.length-i;return o===0||tf(e.substr(i,o),99)?void 0:yu(t+i,o)}function nrt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function Hme(e){return e.includes(al)}function rrt(e){return sa(e.parent)&&Xc(e.parent.arguments)===e&&Ve(e.parent.expression)&&e.parent.expression.escapedText==="require"}var qme,yke,vke,irt=T({"src/services/stringCompletions.ts"(){Kse(),si(),Jme(),qme={directory:0,script:1,"external module name":2},yke=/^(\/\/\/\s*znt,getStringLiteralCompletions:()=>Wnt});var ort=T({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){irt()}}),zI={};X(zI,{CompletionKind:()=>zme,CompletionSource:()=>Wme,SortText:()=>zu,StringCompletions:()=>RQ,SymbolOriginInfoKind:()=>Fme,createCompletionDetails:()=>yz,createCompletionDetailsForSymbol:()=>Mme,getCompletionEntriesFromSymbols:()=>Cme,getCompletionEntryDetails:()=>mnt,getCompletionEntrySymbol:()=>hnt,getCompletionsAtPosition:()=>qtt,getPropertiesForObjectExpression:()=>SQ,moduleSpecifierResolutionCacheAttemptLimit:()=>Ome,moduleSpecifierResolutionLimit:()=>IQ});var Jme=T({"src/services/_namespaces/ts.Completions.ts"(){Ont(),ort()}});function Kme(e,t,r,i){const o=crt(e,r,i);return(s,l,u)=>{const{directImports:p,indirectUsers:h}=art(e,t,o,l,r,i);return{indirectUsers:h,...srt(p,s,l.exportKind,r,u)}}}function art(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=NI(),p=NI(),h=[],m=!!i.globalExports,v=m?void 0:[];return I(i),{directImports:h,indirectUsers:A()};function A(){if(m)return e;if(i.declarations)for(const K of i.declarations)OE(K)&&t.has(K.getSourceFile().fileName)&&O(K);return v.map(jn)}function I(K){const Z=U(K);if(Z){for(const V of Z)if(u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(Bp(V)){R(V);break}if(!m){const G=V.parent;if(o===2&&G.kind===260){const{name:ne}=G;if(ne.kind===80){h.push(ne);break}}}break;case 80:break;case 271:C(V,V.name,Zr(V,32),!1);break;case 272:h.push(V);const se=V.importClause&&V.importClause.namedBindings;se&&se.kind===274?C(V,se.name,!1,!0):!m&&wA(V)&&O(Ez(V));break;case 278:V.exportClause?V.exportClause.kind===280?O(Ez(V),!0):h.push(V):I(mrt(V,s));break;case 205:!m&&V.isTypeOf&&!V.qualifier&&M(V)&&O(V.getSourceFile(),!0),h.push(V);break;default:N.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(K){const Z=Gn(K,DQ)||K.getSourceFile();O(Z,!!M(K,!0))}function M(K,Z=!1){return Gn(K,V=>Z&&DQ(V)?"quit":Cm(V)&&bt(V.modifiers,rI))}function C(K,Z,V,se){if(o===2)se||h.push(K);else if(!m){const G=Ez(K);N.assert(G.kind===312||G.kind===267),V||lrt(G,Z,s)?O(G,!0):O(G)}}function O(K,Z=!1){if(N.assert(!m),!p(K)||(v.push(K),!Z))return;const se=s.getMergedSymbol(K.symbol);if(!se)return;N.assert(!!(se.flags&1536));const G=U(se);if(G)for(const ne of G)cg(ne)||O(Ez(ne),!0)}function U(K){return r.get(Ta(K).toString())}}function srt(e,t,r,i,o){const s=[],l=[];function u(A,I){s.push([A,I])}if(e)for(const A of e)p(A);return{importSearches:s,singleReferences:l};function p(A){if(A.kind===271){Yme(A)&&h(A.name);return}if(A.kind===80){h(A);return}if(A.kind===205){if(A.qualifier){const M=Vp(A.qualifier);M.escapedText===Sl(t)&&l.push(M)}else r===2&&l.push(A.argument.literal);return}if(A.moduleSpecifier.kind!==11)return;if(A.kind===278){A.exportClause&&Pf(A.exportClause)&&m(A.exportClause);return}const{name:I,namedBindings:R}=A.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:h(R.name);break;case 275:(r===0||r===1)&&m(R);break;default:N.assertNever(R)}if(I&&(r===1||r===2)&&(!o||I.escapedText===o5(t))){const M=i.getSymbolAtLocation(I);u(I,M)}}function h(A){r===2&&(!o||v(A.escapedText))&&u(A,i.getSymbolAtLocation(A))}function m(A){if(A)for(const I of A.elements){const{name:R,propertyName:M}=I;if(v((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const C=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);u(R,C)}}}function v(A){return A===t.escapedName||r!==0&&A==="default"}}function lrt(e,t,r){const i=r.getSymbolAtLocation(t);return!!Eke(e,o=>{if(!Yl(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Pf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function bke(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if(u?.kind===312){for(const p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(const p of l.typeReferenceDirectives){const h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}Ske(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push($s(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function crt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),Ske(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const p=Ta(u).toString();let h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function Eke(e,t){return Xe(e.kind===312?e.statements:e.body.statements,r=>t(r)||DQ(r)&&Xe(r.body&&r.body.statements,t))}function Ske(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(RC(r),r);else Eke(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&Ma(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;Yme(i)&&t(i,i.moduleReference.expression);break}}})}function Tke(e,t,r,i){return i?o():o()||s();function o(){var p;const{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(I=>I===h)&&mr(m)?A(m,!1):void 0:l(t.exportSymbol,u(h));{const I=drt(h,e);if(I&&Zr(I,32))return tu(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(I.name)}:l(t,u(I));if(Sh(h))return l(t,0);if(kl(h))return v(h);if(kl(m))return v(m);if(mr(h))return A(h,!0);if(mr(m))return A(m,!0);if(KS(h)||AH(h))return l(t,0)}function v(I){if(!I.symbol.parent)return;const R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function A(I,R){let M;switch(Bl(I)){case 1:M=0;break;case 2:M=2;break;default:return}const C=R?r.getSymbolAtLocation(gU(oa(I.left,ws))):t;return C&&l(C,M)}}function s(){if(!prt(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=frt(h,r),h.escapedName==="export="&&(h=urt(h,r),h===void 0)))return;const m=o5(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){const m=Xme(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function u(p){return Zr(p,2048)?1:0}}function urt(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=N.checkDefined(e.valueDeclaration);if(kl(o))return(r=ii(o.expression,x_))==null?void 0:r.symbol;if(mr(o))return(i=ii(o.right,x_))==null?void 0:i.symbol;if($i(o))return o.symbol}function drt(e,t){const r=wi(e)?e:Qa(e)?Yx(e):void 0;return r?e.name!==t||l1(r.parent)?void 0:Ll(r.parent.parent)?r.parent.parent:void 0:e}function prt(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Yme(t);case 276:return!t.propertyName;case 273:case 274:return N.assert(t.name===e),!0;case 208:return lr(e)&&BE(t.parent.parent);default:return!1}}function Xme(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return sO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function frt(e,t){if(e.declarations)for(const r of e.declarations){if(Ku(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Wr(r)&&ng(r.expression)&&!Ji(r.name))return t.getSymbolAtLocation(r);if(rp(r)&&mr(r.parent.parent)&&Bl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function mrt(e,t){return t.getMergedSymbol(Ez(e).symbol)}function Ez(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(N.assert(t.kind===268),oa(t.parent,DQ))}function DQ(e){return e.kind===267&&e.name.kind===11}function Yme(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var $me,Qme,_rt=T({"src/services/importTracker.ts"(){si(),$me=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))($me||{}),Qme=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Qme||{})}});function fg(e,t=1){return{kind:t,node:e.name||e,context:hrt(e)}}function Zme(e){return e&&e.kind===void 0}function hrt(e){if(Ju(e))return cT(e);if(e.parent){if(!Ju(e.parent)&&!kl(e.parent)){if(lr(e)){const r=mr(e.parent)?e.parent:ws(e.parent)&&mr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&Bl(r)!==0)return cT(r)}if(W_(e.parent)||o1(e.parent))return e.parent.parent;if(HS(e.parent)||i1(e.parent)||dC(e.parent))return e.parent;if(ls(e)){const r=UL(e);if(r){const i=Gn(r,o=>Ju(o)||qi(o)||rR(o));return Ju(i)?cT(i):i}}const t=Gn(e,Za);return t?cT(t.parent):void 0}if(e.parent.name===e||Ml(e.parent)||kl(e.parent)||(DA(e.parent)||Qa(e.parent))&&e.parent.propertyName===e||e.kind===90&&Zr(e.parent,2080))return cT(e.parent)}}function cT(e){if(e)switch(e.kind){case 260:return!Uc(e.parent)||e.parent.declarations.length!==1?e:Ll(e.parent.parent)?e.parent.parent:tR(e.parent.parent)?cT(e.parent.parent):e.parent;case 208:return cT(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 eu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Yy(e.parent)?cT(Gn(e.parent,t=>mr(t)||tR(t))):e;case 255:return{start:An(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function e_e(e,t,r){if(!r)return;const i=Zme(r)?Tz(r.start,t,r.end):Tz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function grt(e,t,r,i,o){const s=Vd(i,o),l={use:1},u=BI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=BI.getAdjustedNode(s,l),m=yrt(h)?p.getSymbolAtLocation(h):void 0;return!u||!u.length?void 0:Hi(u,({definition:v,references:A})=>v&&{definition:p.runWithCancellationToken(t,I=>Ert(v,I,s)),references:A.map(I=>Trt(I,m))})}function yrt(e){return e.kind===90||!!DC(e)||$L(e)||e.kind===137&&Ml(e.parent)}function vrt(e,t,r,i,o){const s=Vd(i,o);let l;const u=Ake(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){const h=M2(u),m=new Map;for(;!h.isEmpty();){const v=h.dequeue();if(!Rm(m,as(v.node)))continue;l=xn(l,v);const A=Ake(e,t,r,v.node,v.node.pos);A&&h.enqueue(...A)}}const p=e.getTypeChecker();return Ot(l,h=>Irt(h,p))}function Ake(e,t,r,i,o){if(i.kind===312)return;const s=e.getTypeChecker();if(i.parent.kind===304){const l=[];return BI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(fg(u))),l}else if(i.kind===108||zd(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[fg(l.valueDeclaration)]}else return Ike(o,i,e,r,t,{implementations:!0,use:1})}function brt(e,t,r,i,o,s,l){return Ot(xke(BI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function Ike(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return xke(BI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function xke(e){return e&&Pi(e,t=>t.references)}function Ert(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:m}=e,{displayParts:v,kind:A}=Rke(m,t,r),I=v.map(C=>C.text).join(""),R=m.declarations&&Xc(m.declarations),M=R?Mo(R)||R:r;return{...Sz(M),name:I,kind:A,displayParts:v,context:cT(R)}}case 1:{const{node:m}=e;return{...Sz(m),name:m.text,kind:"label",displayParts:[ip(m.text,17)]}}case 2:{const{node:m}=e,v=fa(m.kind);return{...Sz(m),name:v,kind:"keyword",displayParts:[{text:v,kind:"keyword"}]}}case 3:{const{node:m}=e,v=t.getSymbolAtLocation(m),A=v&&tv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,v,m.getSourceFile(),iT(m),m).displayParts||[df("this")];return{...Sz(m),name:"this",kind:"var",displayParts:A}}case 4:{const{node:m}=e;return{...Sz(m),name:m.text,kind:"var",displayParts:[ip(pc(m),8)]}}case 5:return{textSpan:sb(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[ip(`"${e.reference.fileName}"`,8)]};default:return N.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...e_e(s,o,h)}}function Sz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Tz(Za(e)?e.expression:e,t)}}function Rke(e,t,r){const i=BI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Xc(e.declarations)||r,{displayParts:s,symbolKind:l}=tv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Srt(e,t,r,i,o){return{...NQ(e),...i&&Art(e,t,r,o)}}function Trt(e,t){const r=Dke(e);return t?{...r,isDefinition:e.kind!==0&&Nke(e.node,t)}:r}function Dke(e){const t=NQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:n_e(i),isInString:r===2?!0:void 0}}function NQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=Tz(e.node,t);return{textSpan:r,fileName:t.fileName,...e_e(r,t,e.context)}}}function Art(e,t,r,i){if(e.kind!==0&&Ve(t)){const{node:o,kind:s}=e,l=o.parent,u=t.text,p=rp(l);if(p||uO(l)&&l.name===o&&l.dotDotDotToken===void 0){const h={prefixText:u+": "},m={suffixText:": "+u};if(s===3)return h;if(s===4)return m;if(p){const v=l.parent;return Oa(v)&&mr(v.parent)&&ng(v.parent.left)?h:m}else return h}else if(np(l)&&!l.propertyName){const h=Ku(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Nr(h.declarations,l)?{prefixText:u+" as "}:kf}else if(Ku(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&gp(e.node)&&ws(e.node.parent)){const o=aX(i);return{prefixText:o,suffixText:o}}return kf}function Irt(e,t){const r=NQ(e);if(e.kind!==0){const{node:i}=e;return{...r,...xrt(i,t)}}else return{...r,kind:"",displayParts:[]}}function xrt(e,t){const r=t.getSymbolAtLocation(Ju(e)&&e.name?e.name:e);return r?Rke(r,t,e):e.kind===210?{kind:"interface",displayParts:[$u(21),df("object literal"),$u(22)]}:e.kind===231?{kind:"local class",displayParts:[$u(21),df("anonymous local class"),$u(22)]}:{kind:y1(e),displayParts:[]}}function Rrt(e){const t=NQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=n_e(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 Tz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ls(e)&&o-i>2&&(N.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),dc(i,o)}function t_e(e){return e.kind===0?e.textSpan:Tz(e.node,e.node.getSourceFile())}function n_e(e){const t=DC(e);return!!t&&Drt(t)||e.kind===90||jA(e)}function Nke(e,t){var r;if(!t)return!1;const i=DC(e)||(e.kind===90?e.parent:$L(e)||e.kind===137&&Ml(e.parent)?e.parent.parent:void 0),o=i&&mr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Drt(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!Yy(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||l1(e.parent);case 173:case 171:case 355:case 348:return!1;default:return N.failBadSyntaxKind(e)}}var r_e,i_e,o_e,BI,Nrt=T({"src/services/findAllReferences.ts"(){si(),a_e(),r_e=(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))(r_e||{}),i_e=(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))(i_e||{}),o_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(o_e||{}),(e=>{function t(He,mt,ft,Ct,le,Fe={},pt=new Set(Ct.map(j=>j.fileName))){var j,ot;if(mt=r(mt,Fe),$i(mt)){const _n=jD.getReferenceAtPosition(mt,He,ft);if(!_n?.file)return;const q=ft.getTypeChecker().getMergedSymbol(_n.file.symbol);if(q)return h(ft,q,!1,Ct,pt);const Oe=ft.getFileIncludeReasons();return Oe?[{definition:{type:5,reference:_n.reference,file:mt},references:o(_n.file,Oe,ft)||et}]:void 0}if(!Fe.implementations){const _n=v(mt,Ct,le);if(_n)return _n}const Rt=ft.getTypeChecker(),Ye=Rt.getSymbolAtLocation(Ml(mt)&&mt.parent.name||mt);if(!Ye){if(!Fe.implementations&&ls(mt)){if(a5(mt)){const _n=ft.getFileIncludeReasons(),q=(ot=(j=ft.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:ot.resolvedFileName,Oe=q?ft.getSourceFile(q):void 0;if(Oe)return[{definition:{type:4,node:mt},references:o(Oe,_n,ft)||et}]}return Di(mt,Ct,Rt,le)}return}if(Ye.escapedName==="export=")return h(ft,Ye.parent,!1,Ct,pt);const _t=l(Ye,ft,Ct,le,Fe,pt);if(_t&&!(Ye.flags&33554432))return _t;const Vt=s(mt,Ye,Rt),yn=Vt&&l(Vt,ft,Ct,le,Fe,pt),pn=A(Ye,mt,Ct,pt,Rt,le,Fe);return u(ft,_t,pn,yn)}e.getReferencedSymbolsForNode=t;function r(He,mt){return mt.use===1?He=HK(He):mt.use===2&&(He=K7(He)),He}e.getAdjustedNode=r;function i(He,mt,ft,Ct=new Set(ft.map(le=>le.fileName))){var le,Fe;const pt=(le=mt.getSourceFile(He))==null?void 0:le.symbol;if(pt)return((Fe=h(mt,pt,!1,ft,Ct)[0])==null?void 0:Fe.references)||et;const j=mt.getFileIncludeReasons(),ot=mt.getSourceFile(He);return ot&&j&&o(ot,j,mt)||et}e.getReferencesForFileName=i;function o(He,mt,ft){let Ct;const le=mt.get(He.path)||et;for(const Fe of le)if(k0(Fe)){const pt=ft.getSourceFileByPath(Fe.file),j=$P(ft,Fe);hD(j)&&(Ct=xn(Ct,{kind:0,fileName:pt.fileName,textSpan:sb(j)}))}return Ct}function s(He,mt,ft){if(He.parent&&qk(He.parent)){const Ct=ft.getAliasedSymbol(mt),le=ft.getMergedSymbol(Ct);if(Ct!==le)return le}}function l(He,mt,ft,Ct,le,Fe){const pt=He.flags&1536&&He.declarations&&An(He.declarations,$i);if(!pt)return;const j=He.exports.get("export="),ot=h(mt,He,!!j,ft,Fe);if(!j||!Fe.has(pt.fileName))return ot;const Rt=mt.getTypeChecker();return He=bu(j,Rt),u(mt,ot,A(He,void 0,ft,Fe,Rt,Ct,le))}function u(He,...mt){let ft;for(const Ct of mt)if(!(!Ct||!Ct.length)){if(!ft){ft=Ct;continue}for(const le of Ct){if(!le.definition||le.definition.type!==0){ft.push(le);continue}const Fe=le.definition.symbol,pt=Br(ft,ot=>!!ot.definition&&ot.definition.type===0&&ot.definition.symbol===Fe);if(pt===-1){ft.push(le);continue}const j=ft[pt];ft[pt]={definition:j.definition,references:j.references.concat(le.references).sort((ot,Rt)=>{const Ye=p(He,ot),_t=p(He,Rt);if(Ye!==_t)return rl(Ye,_t);const Vt=t_e(ot),yn=t_e(Rt);return Vt.start!==yn.start?rl(Vt.start,yn.start):rl(Vt.length,yn.length)})}}}return ft}function p(He,mt){const ft=mt.kind===0?He.getSourceFile(mt.fileName):mt.node.getSourceFile();return He.getSourceFiles().indexOf(ft)}function h(He,mt,ft,Ct,le){N.assert(!!mt.valueDeclaration);const Fe=Hi(bke(He,Ct,mt),j=>{if(j.kind==="import"){const ot=j.literal.parent;if(Zv(ot)){const Rt=oa(ot.parent,cg);if(ft&&!Rt.qualifier)return}return fg(j.literal)}else if(j.kind==="implicit"){const ot=j.literal.text!==Kv&&NP(j.referencingFile,Rt=>Rt.transformFlags&2?ug(Rt)||HS(Rt)||a1(Rt)?Rt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return fg(ot)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:sb(j.ref)}});if(mt.declarations)for(const j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&Fe.push(fg(j.name));break;default:N.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const pt=mt.exports.get("export=");if(pt?.declarations)for(const j of pt.declarations){const ot=j.getSourceFile();if(le.has(ot.fileName)){const Rt=mr(j)&&Wr(j.left)?j.left.expression:kl(j)?N.checkDefined(ys(j,95,ot)):Mo(j)||j;Fe.push(fg(Rt))}}return Fe.length?[{definition:{type:0,symbol:mt},references:Fe}]:et}function m(He){return He.kind===148&&BS(He.parent)&&He.parent.operator===148}function v(He,mt,ft){if(oM(He.kind))return He.kind===116&&uI(He.parent)||He.kind===148&&!m(He)?void 0:Me(mt,He.kind,ft,He.kind===148?m:void 0);if(uR(He.parent)&&He.parent.name===He)return ye(mt,ft);if(iI(He)&&Rl(He.parent))return[{definition:{type:2,node:He},references:[fg(He)]}];if(Zw(He)){const Ct=V7(He.parent,He.text);return Ct&&pe(Ct.parent,Ct)}else if(OK(He))return pe(He.parent,He);if(AD(He))return Mn(He,mt,ft);if(He.kind===108)return Oi(He)}function A(He,mt,ft,Ct,le,Fe,pt){const j=mt&&M(He,mt,le,!kn(pt))||He,ot=mt?hi(mt,j):7,Rt=[],Ye=new U(ft,Ct,mt?R(mt):0,le,Fe,ot,pt,Rt),_t=!kn(pt)||!j.declarations?void 0:An(j.declarations,Ku);if(_t)At(_t.name,j,_t,Ye.createSearch(mt,He,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)yt(mt,j,Ye),K(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{const Vt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?sn(j,mt,le,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[j]});I(j,Ye,Vt)}return Rt}function I(He,mt,ft){const Ct=he(He);if(Ct)Ee(Ct,Ct.getSourceFile(),ft,mt,!($i(Ct)&&!Nr(mt.sourceFiles,Ct)));else for(const le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,ft,mt)}function R(He){switch(He.kind){case 176:case 137:return 1;case 80:if(ui(He.parent))return N.assert(He.parent.name===He),2;default:return 0}}function M(He,mt,ft,Ct){const{parent:le}=mt;return Ku(le)&&Ct?Se(mt,He,le,ft):qt(He.declarations,Fe=>{if(!Fe.parent){if(He.flags&33554432)return;N.fail(`Unexpected symbol at ${N.formatSyntaxKind(mt.kind)}: ${N.formatSymbol(He)}`)}return bp(Fe.parent)&&Qv(Fe.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(Fe.parent.parent),He.name):void 0})}let C;(He=>{He[He.None=0]="None",He[He.Constructor=1]="Constructor",He[He.Class=2]="Class"})(C||(C={}));function O(He){if(!(He.flags&33555968))return;const mt=He.declarations&&An(He.declarations,ft=>!$i(ft)&&!Xl(ft));return mt&&mt.symbol}class U{constructor(mt,ft,Ct,le,Fe,pt,j,ot){this.sourceFiles=mt,this.sourceFilesSet=ft,this.specialSearchKind=Ct,this.checker=le,this.cancellationToken=Fe,this.searchMeaning=pt,this.options=j,this.result=ot,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=NI(),this.markSeenReExportRHS=NI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,ft){return this.importTracker||(this.importTracker=Kme(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,ft,this.options.use===2)}createSearch(mt,ft,Ct,le={}){const{text:Fe=tm(Sl(PR(ft)||O(ft)||ft)),allSearchSymbols:pt=[ft]}=le,j=hl(Fe),ot=this.options.implementations&&mt?Sn(mt,ft,this.checker):void 0;return{symbol:ft,comingFrom:Ct,text:Fe,escapedText:j,parents:ot,allSearchSymbols:pt,includes:Rt=>Nr(pt,Rt)}}referenceAdder(mt){const ft=Ta(mt);let Ct=this.symbolIdToReferences[ft];return Ct||(Ct=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:mt},references:Ct})),(le,Fe)=>Ct.push(fg(le,Fe))}addStringOrCommentReference(mt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:ft}]})}markSearchedSymbols(mt,ft){const Ct=as(mt),le=this.sourceFileToSeenSymbols[Ct]||(this.sourceFileToSeenSymbols[Ct]=new Set);let Fe=!1;for(const pt of ft)Fe=Ay(le,Ta(pt))||Fe;return Fe}}function K(He,mt,ft,Ct){const{importSearches:le,singleReferences:Fe,indirectUsers:pt}=Ct.getImportSearches(mt,ft);if(Fe.length){const j=Ct.referenceAdder(mt);for(const ot of Fe)V(ot,Ct)&&j(ot)}for(const[j,ot]of le)Ue(j.getSourceFile(),Ct.createSearch(j,ot,1),Ct);if(pt.length){let j;switch(ft.exportKind){case 0:j=Ct.createSearch(He,mt,1);break;case 1:j=Ct.options.use===2?void 0:Ct.createSearch(He,mt,1,{text:"default"});break}if(j)for(const ot of pt)G(ot,j,Ct)}}function Z(He,mt,ft,Ct,le,Fe,pt,j){const ot=Kme(He,new Set(He.map(Vt=>Vt.fileName)),mt,ft),{importSearches:Rt,indirectUsers:Ye,singleReferences:_t}=ot(Ct,{exportKind:pt?1:0,exportingModuleSymbol:le},!1);for(const[Vt]of Rt)j(Vt);for(const Vt of _t)Ve(Vt)&&cg(Vt.parent)&&j(Vt);for(const Vt of Ye)for(const yn of fe(Vt,pt?"default":Fe)){const pn=mt.getSymbolAtLocation(yn),_n=bt(pn?.declarations,q=>!!ii(q,kl));Ve(yn)&&!DA(yn.parent)&&(pn===Ct||_n)&&j(yn)}}e.eachExportReference=Z;function V(He,mt){return De(He,mt)?mt.options.use!==2?!0:Ve(He)?!(DA(He.parent)&&He.escapedText==="default"):!1:!1}function se(He,mt){if(He.declarations)for(const ft of He.declarations){const Ct=ft.getSourceFile();Ue(Ct,mt.createSearch(ft,He,0),mt,mt.includesSourceFile(Ct))}}function G(He,mt,ft){LY(He).get(mt.escapedText)!==void 0&&Ue(He,mt,ft)}function ne(He,mt){return Yy(He.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(He):void 0}function he(He){const{declarations:mt,flags:ft,parent:Ct,valueDeclaration:le}=He;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(ft&8196){const j=An(mt,ot=>hp(ot,2)||ld(ot));return j?v0(j,263):void 0}if(mt.some(uO))return;const Fe=Ct&&!(He.flags&262144);if(Fe&&!(sO(Ct)&&!Ct.globalExports))return;let pt;for(const j of mt){const ot=iT(j);if(pt&&pt!==ot||!ot||ot.kind===312&&!zp(ot))return;if(pt=ot,Os(pt)){let Rt;for(;Rt=kj(pt);)pt=Rt}}return Fe?pt.getSourceFile():pt}function ve(He,mt,ft,Ct=ft){return $(He,mt,ft,()=>!0,Ct)||!1}e.isSymbolReferencedInFile=ve;function $(He,mt,ft,Ct,le=ft){const Fe=fp(He.parent,He.parent.parent)?Ha(mt.getSymbolsOfParameterPropertyDeclaration(He.parent,He.text)):mt.getSymbolAtLocation(He);if(Fe)for(const pt of fe(ft,Fe.name,le)){if(!Ve(pt)||pt===He||pt.escapedText!==He.escapedText)continue;const j=mt.getSymbolAtLocation(pt);if(j===Fe||mt.getShorthandAssignmentValueSymbol(pt.parent)===Fe||Ku(pt.parent)&&Se(pt,j,pt.parent,mt)===Fe){const ot=Ct(pt);if(ot)return ot}}}e.eachSymbolReferenceInFile=$;function Y(He,mt){return nr(fe(mt,He),le=>!!DC(le)).reduce((le,Fe)=>{const pt=Ct(Fe);return!bt(le.declarationNames)||pt===le.depth?(le.declarationNames.push(Fe),le.depth=pt):ptYe===le)&&Ct(pt,ot))return!0}return!1}e.someSignatureUsage=oe;function fe(He,mt,ft=He){return Hi(Ne(He,mt,ft),Ct=>{const le=Vd(He,Ct);return le===He?void 0:le})}function Ne(He,mt,ft=He){const Ct=[];if(!mt||!mt.length)return Ct;const le=He.text,Fe=le.length,pt=mt.length;let j=le.indexOf(mt,ft.pos);for(;j>=0&&!(j>ft.end);){const ot=j+pt;(j===0||!a0(le.charCodeAt(j-1),99))&&(ot===Fe||!a0(le.charCodeAt(ot),99))&&Ct.push(j),j=le.indexOf(mt,j+pt+1)}return Ct}function pe(He,mt){const ft=He.getSourceFile(),Ct=mt.text,le=Hi(fe(ft,Ct,He),Fe=>Fe===mt||Zw(Fe)&&V7(Fe,Ct)===mt?fg(Fe):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(He,mt){switch(He.kind){case 81:if(x0(He.parent))return!0;case 80:return He.text.length===mt.length;case 15:case 11:{const ft=He;return(j7(ft)||BK(He)||sue(He)||sa(He.parent)&&xS(He.parent)&&He.parent.arguments[1]===He)&&ft.text.length===mt.length}case 9:return j7(He)&&He.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ye(He,mt){const ft=Pi(He,Ct=>(mt.throwIfCancellationRequested(),Hi(fe(Ct,"meta",Ct),le=>{const Fe=le.parent;if(uR(Fe))return fg(Fe)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Me(He,mt,ft,Ct){const le=Pi(He,Fe=>(ft.throwIfCancellationRequested(),Hi(fe(Fe,fa(mt),Fe),pt=>{if(pt.kind===mt&&(!Ct||Ct(pt)))return fg(pt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Ue(He,mt,ft,Ct=!0){return ft.cancellationToken.throwIfCancellationRequested(),Ee(He,He,mt,ft,Ct)}function Ee(He,mt,ft,Ct,le){if(Ct.markSearchedSymbols(mt,ft.allSearchSymbols))for(const Fe of Ne(mt,ft.text,He))Pe(mt,Fe,ft,Ct,le)}function De(He,mt){return!!(rT(He)&mt.searchMeaning)}function Pe(He,mt,ft,Ct,le){const Fe=Vd(He,mt);if(!ie(Fe,ft.text)){!Ct.options.implementations&&(Ct.options.findInStrings&&DI(He,mt)||Ct.options.findInComments&&Eue(He,mt))&&Ct.addStringOrCommentReference(He.fileName,yu(mt,ft.text.length));return}if(!De(Fe,Ct))return;let pt=Ct.checker.getSymbolAtLocation(Fe);if(!pt)return;const j=Fe.parent;if(np(j)&&j.propertyName===Fe)return;if(Ku(j)){N.assert(Fe.kind===80),At(Fe,pt,j,ft,Ct,le);return}if(pC(j)&&j.isNameFirst&&j.typeExpression&&JS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&Le(j.typeExpression.type.jsDocPropertyTags)){We(j.typeExpression.type.jsDocPropertyTags,Fe,ft,Ct);return}const ot=li(ft,pt,Fe,Ct);if(!ot){Gt(pt,ft,Ct);return}switch(Ct.specialSearchKind){case 0:le&&yt(Fe,ot,Ct);break;case 1:$e(Fe,He,ft,Ct);break;case 2:It(Fe,ft,Ct);break;default:N.assertNever(Ct.specialSearchKind)}lr(Fe)&&Qa(Fe.parent)&&BE(Fe.parent.parent.parent)&&(pt=Fe.parent.symbol,!pt)||at(Fe,pt,ft,Ct)}function We(He,mt,ft,Ct){const le=Ct.referenceAdder(ft.symbol);yt(mt,ft.symbol,Ct),Xe(He,Fe=>{Id(Fe.name)&&le(Fe.name.left)})}function At(He,mt,ft,Ct,le,Fe,pt){N.assert(!pt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:j,propertyName:ot,name:Rt}=ft,Ye=j.parent,_t=Se(He,mt,ft,le.checker);if(!pt&&!Ct.includes(_t))return;if(ot?He===ot?(Ye.moduleSpecifier||Vt(),Fe&&le.options.use!==2&&le.markSeenReExportRHS(Rt)&&yt(Rt,N.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(He)&&Vt():le.options.use===2&&Rt.escapedText==="default"||Vt(),!kn(le.options)||pt){const pn=He.escapedText==="default"||ft.name.escapedText==="default"?1:0,_n=N.checkDefined(ft.symbol),q=Xme(_n,pn,le.checker);q&&K(He,_n,q,le)}if(Ct.comingFrom!==1&&Ye.moduleSpecifier&&!ot&&!kn(le.options)){const yn=le.checker.getExportSpecifierLocalTargetSymbol(ft);yn&&se(yn,le)}function Vt(){Fe&&yt(He,_t,le)}}function Se(He,mt,ft,Ct){return je(He,ft)&&Ct.getExportSpecifierLocalTargetSymbol(ft)||mt}function je(He,mt){const{parent:ft,propertyName:Ct,name:le}=mt;return N.assert(Ct===He||le===He),Ct?Ct===He:!ft.parent.moduleSpecifier}function at(He,mt,ft,Ct){const le=Tke(He,mt,Ct.checker,ft.comingFrom===1);if(!le)return;const{symbol:Fe}=le;le.kind===0?kn(Ct.options)||se(Fe,Ct):K(He,Fe,le.exportInfo,Ct)}function Gt({flags:He,valueDeclaration:mt},ft,Ct){const le=Ct.checker.getShorthandAssignmentValueSymbol(mt),Fe=mt&&Mo(mt);!(He&33554432)&&Fe&&ft.includes(le)&&yt(Fe,le,Ct)}function yt(He,mt,ft){const{kind:Ct,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(ft.options.use===2&&He.kind===90)return;const Fe=ft.referenceAdder(le);ft.options.implementations?Qt(He,Fe,ft):Fe(He,Ct)}function $e(He,mt,ft,Ct){nM(He)&&yt(He,ft.symbol,Ct);const le=()=>Ct.referenceAdder(ft.symbol);if(ui(He.parent))N.assert(He.kind===90||He.parent.name===He),tn(ft.symbol,mt,le());else{const Fe=Wa(He);Fe&&(Pn(Fe,le()),hn(Fe,Ct))}}function It(He,mt,ft){yt(He,mt.symbol,ft);const Ct=He.parent;if(ft.options.use===2||!ui(Ct))return;N.assert(Ct.name===He);const le=ft.referenceAdder(mt.symbol);for(const Fe of Ct.members)CA(Fe)&&aa(Fe)&&Fe.body&&Fe.body.forEachChild(function pt(j){j.kind===110?le(j):!ea(j)&&!ui(j)&&j.forEachChild(pt)})}function tn(He,mt,ft){const Ct=rn(He);if(Ct&&Ct.declarations)for(const le of Ct.declarations){const Fe=ys(le,137,mt);N.assert(le.kind===176&&!!Fe),ft(Fe)}He.exports&&He.exports.forEach(le=>{const Fe=le.valueDeclaration;if(Fe&&Fe.kind===174){const pt=Fe.body;pt&&ma(pt,110,j=>{nM(j)&&ft(j)})}})}function rn(He){return He.members&&He.members.get("__constructor")}function Pn(He,mt){const ft=rn(He.symbol);if(ft&&ft.declarations)for(const Ct of ft.declarations){N.assert(Ct.kind===176);const le=Ct.body;le&&ma(le,108,Fe=>{LK(Fe)&&mt(Fe)})}}function Xn(He){return!!rn(He.symbol)}function hn(He,mt){if(Xn(He))return;const ft=He.symbol,Ct=mt.createSearch(void 0,ft,void 0);I(ft,mt,Ct)}function Qt(He,mt,ft){if(Wg(He)&&Qi(He.parent)){mt(He);return}if(He.kind!==80)return;He.parent.kind===304&&Io(He,ft.checker,mt);const Ct=$t(He);if(Ct){mt(Ct);return}const le=Gn(He,j=>!Id(j.parent)&&!ji(j.parent)&&!gS(j.parent)),Fe=le.parent;if(A4(Fe)&&Fe.type===le&&ft.markSeenContainingTypeReference(Fe))if(zv(Fe))pt(Fe.initializer);else if(ea(Fe)&&Fe.body){const j=Fe.body;j.kind===241?FE(j,ot=>{ot.expression&&pt(ot.expression)}):pt(j)}else yS(Fe)&&pt(Fe.expression);function pt(j){_i(j)&&mt(j)}}function $t(He){return Ve(He)||Wr(He)?$t(He.parent):Hy(He)?ii(He.parent.parent,Ym(ui,_d)):void 0}function _i(He){switch(He.kind){case 217:return _i(He.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function ao(He,mt,ft,Ct){if(He===mt)return!0;const le=Ta(He)+","+Ta(mt),Fe=ft.get(le);if(Fe!==void 0)return Fe;ft.set(le,!1);const pt=!!He.declarations&&He.declarations.some(j=>NC(j).some(ot=>{const Rt=Ct.getTypeAtLocation(ot);return!!Rt&&!!Rt.symbol&&ao(Rt.symbol,mt,ft,Ct)}));return ft.set(le,pt),pt}function Oi(He){let mt=CL(He,!1);if(!mt)return;let ft=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ft&=Uv(mt),mt=mt.parent;break;default:return}const Ct=mt.getSourceFile(),le=Hi(fe(Ct,"super",mt),Fe=>{if(Fe.kind!==108)return;const pt=CL(Fe,!1);return pt&&aa(pt)===!!ft&&pt.parent.symbol===mt.symbol?fg(Fe):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function No(He){return He.kind===80&&He.parent.kind===169&&He.parent.name===He}function Mn(He,mt,ft){let Ct=Fd(He,!1,!1),le=256;switch(Ct.kind){case 174:case 173:if(xm(Ct)){le&=Uv(Ct),Ct=Ct.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Uv(Ct),Ct=Ct.parent;break;case 312:if(ac(Ct)||No(He))return;case 262:case 218:break;default:return}const Fe=Pi(Ct.kind===312?mt:[Ct.getSourceFile()],j=>(ft.throwIfCancellationRequested(),fe(j,"this",$i(Ct)?j:Ct).filter(ot=>{if(!AD(ot))return!1;const Rt=Fd(ot,!1,!1);if(!x_(Rt))return!1;switch(Ct.kind){case 218:case 262:return Ct.symbol===Rt.symbol;case 174:case 173:return xm(Ct)&&Ct.symbol===Rt.symbol;case 231:case 263:case 210:return Rt.parent&&x_(Rt.parent)&&Ct.symbol===Rt.parent.symbol&&aa(Rt)===!!le;case 312:return Rt.kind===312&&!ac(Rt)&&!No(ot)}}))).map(j=>fg(j));return[{definition:{type:3,node:qt(Fe,j=>Ao(j.node.parent)?j.node:void 0)||He},references:Fe}]}function Di(He,mt,ft,Ct){const le=J7(He,ft),Fe=Pi(mt,pt=>(Ct.throwIfCancellationRequested(),Hi(fe(pt,He.text),j=>{if(ls(j)&&j.text===He.text)if(le){const ot=J7(j,ft);if(le!==ft.getStringType()&&(le===ot||Ar(j,ft)))return fg(j,2)}else return tI(j)&&!kS(j,pt)?void 0:fg(j,2)})));return[{definition:{type:4,node:He},references:Fe}]}function Ar(He,mt){if(yp(He.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(He.parent.parent),He.text)}function sn(He,mt,ft,Ct,le,Fe){const pt=[];return tt(He,mt,ft,Ct,!(Ct&&le),(j,ot,Rt)=>{Rt&&Rn(He)!==Rn(Rt)&&(Rt=void 0),pt.push(Rt||ot||j)},()=>!Fe),pt}function tt(He,mt,ft,Ct,le,Fe,pt){const j=WO(mt);if(j){const pn=ft.getShorthandAssignmentValueSymbol(mt.parent);if(pn&&Ct)return Fe(pn,void 0,void 0,3);const _n=ft.getContextualType(j.parent),q=_n&&qt(nz(j,ft,_n,!0),_e=>Vt(_e,4));if(q)return q;const Oe=ne(mt,ft),Lt=Oe&&Fe(Oe,void 0,void 0,4);if(Lt)return Lt;const L=pn&&Fe(pn,void 0,void 0,3);if(L)return L}const ot=s(mt,He,ft);if(ot){const pn=Fe(ot,void 0,void 0,1);if(pn)return pn}const Rt=Vt(He);if(Rt)return Rt;if(He.valueDeclaration&&fp(He.valueDeclaration,He.valueDeclaration.parent)){const pn=ft.getSymbolsOfParameterPropertyDeclaration(oa(He.valueDeclaration,Ao),He.name);return N.assert(pn.length===2&&!!(pn[0].flags&1)&&!!(pn[1].flags&4)),Vt(He.flags&1?pn[1]:pn[0])}const Ye=fl(He,281);if(!Ct||Ye&&!Ye.propertyName){const pn=Ye&&ft.getExportSpecifierLocalTargetSymbol(Ye);if(pn){const _n=Fe(pn,void 0,void 0,1);if(_n)return _n}}if(!Ct){let pn;return le?pn=uO(mt.parent)?s5(ft,mt.parent):void 0:pn=yn(He,ft),pn&&Vt(pn,4)}if(N.assert(Ct),le){const pn=yn(He,ft);return pn&&Vt(pn,4)}function Vt(pn,_n){return qt(ft.getRootSymbols(pn),q=>Fe(pn,q,void 0,_n)||(q.parent&&q.parent.flags&96&&pt(q)?Bt(q.parent,q.name,ft,Oe=>Fe(pn,q,Oe,_n)):void 0))}function yn(pn,_n){const q=fl(pn,208);if(q&&uO(q))return s5(_n,q)}}function Bt(He,mt,ft,Ct){const le=new Map;return Fe(He);function Fe(pt){if(!(!(pt.flags&96)||!Rm(le,Ta(pt))))return qt(pt.declarations,j=>qt(NC(j),ot=>{const Rt=ft.getTypeAtLocation(ot),Ye=Rt&&Rt.symbol&&ft.getPropertyOfType(Rt,mt);return Rt&&Ye&&(qt(ft.getRootSymbols(Ye),Ct)||Fe(Rt.symbol))}))}}function Rn(He){return He.valueDeclaration?!!(dd(He.valueDeclaration)&256):!1}function li(He,mt,ft,Ct){const{checker:le}=Ct;return tt(mt,ft,le,!1,Ct.options.use!==2||!!Ct.options.providePrefixAndSuffixTextForRename,(Fe,pt,j,ot)=>(j&&Rn(mt)!==Rn(j)&&(j=void 0),He.includes(j||pt||Fe)?{symbol:pt&&!(xl(Fe)&6)?pt:Fe,kind:ot}:void 0),Fe=>!(He.parents&&!He.parents.some(pt=>ao(Fe.parent,pt,Ct.inheritsFromCache,le))))}function hi(He,mt){let ft=rT(He);const{declarations:Ct}=mt;if(Ct){let le;do{le=ft;for(const Fe of Ct){const pt=Yw(Fe);pt&ft&&(ft|=pt)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=hi;function Qi(He){return He.flags&33554432?!(_d(He)||Nm(He)):dR(He)?zv(He):Bs(He)?!!He.body:ui(He)||_L(He)}function Io(He,mt,ft){const Ct=mt.getSymbolAtLocation(He),le=mt.getShorthandAssignmentValueSymbol(Ct.valueDeclaration);if(le)for(const Fe of le.getDeclarations())Yw(Fe)&1&&ft(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Io;function ma(He,mt,ft){Ho(He,Ct=>{Ct.kind===mt&&ft(Ct),ma(Ct,mt,ft)})}function Wa(He){return aU(G7(He).parent)}function Sn(He,mt,ft){const Ct=TD(He)?He.parent:void 0,le=Ct&&ft.getTypeAtLocation(Ct.expression),Fe=Hi(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return Fe.length===0?void 0:Fe}function kn(He){return He.use===2&&He.providePrefixAndSuffixTextForRename}})(BI||(BI={}))}}),Ws={};X(Ws,{Core:()=>BI,DefinitionKind:()=>r_e,EntryKind:()=>i_e,ExportKind:()=>$me,FindReferencesUse:()=>o_e,ImportExport:()=>Qme,createImportTracker:()=>Kme,findModuleReferences:()=>bke,findReferenceOrRenameEntries:()=>brt,findReferencedSymbols:()=>grt,getContextNode:()=>cT,getExportInfo:()=>Xme,getImplementationsAtPosition:()=>vrt,getImportOrExportSymbol:()=>Tke,getReferenceEntriesForNode:()=>Ike,getTextSpanOfEntry:()=>t_e,isContextWithStartAndEndNode:()=>Zme,isDeclarationOfSymbol:()=>Nke,isWriteAccessForReference:()=>n_e,nodeEntry:()=>fg,toContextSpan:()=>e_e,toHighlightSpan:()=>Rrt,toReferenceEntry:()=>Dke,toRenameLocation:()=>Srt});var a_e=T({"src/services/_namespaces/ts.FindAllReferences.ts"(){_rt(),Nrt()}});function Cke(e,t,r,i,o){var s;const l=Mke(t,r,e),u=l&&[Grt(l.reference.fileName,l.fileName,l.unverified)]||et;if(l?.file)return u;const p=Vd(t,r);if(p===t)return;const{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Ve(p)&&QW(h)&&h.tagName===p)return Prt(m,p)||et;if(Zw(p)){const C=V7(p.parent,p.text);return C?[s_e(m,C,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const C=Gn(p.parent,U=>Rl(U)?"quit":Bs(U));return C?[Az(m,C)]:void 0;case 90:if(!TP(p.parent))break;case 84:const O=Gn(p.parent,bP);if(O)return[Brt(O,t)];break}if(p.kind===135){const C=Gn(p,U=>Bs(U));return C&&bt(C.modifiers,U=>U.kind===134)?[Az(m,C)]:void 0}if(p.kind===127){const C=Gn(p,U=>Bs(U));return C&&C.asteriskToken?[Az(m,C)]:void 0}if(iI(p)&&Rl(p.parent)){const C=p.parent.parent,{symbol:O,failedAliasResolution:U}=CQ(C,m,o),K=nr(C.members,Rl),Z=O?m.symbolToString(O,C):"",V=p.getSourceFile();return Ot(K,se=>{let{pos:G}=L_(se);return G=ka(V.text,G),s_e(m,se,"constructor","static {}",Z,!1,U,{start:G,length:6})})}let{symbol:v,failedAliasResolution:A}=CQ(p,m,o),I=p;if(i&&A){const C=Xe([p,...v?.declarations||et],U=>Gn(U,Qre)),O=C&&gR(C);O&&({symbol:v,failedAliasResolution:A}=CQ(O,m,o),I=O)}if(!v&&a5(I)){const C=(s=e.getResolvedModuleFromModuleSpecifier(I))==null?void 0:s.resolvedModule;if(C)return[{name:I.text,fileName:C.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:yu(0,0),failedAliasResolution:A,isAmbient:Su(C.resolvedFileName),unverified:I!==p}]}if(!v)return So(u,Wrt(p,m));if(i&&Zn(v.declarations,C=>C.getSourceFile().fileName===t.fileName))return;const R=jrt(m,p);if(R&&!(cd(p.parent)&&Urt(R))){const C=Az(m,R,A);if(m.getRootSymbols(v).some(O=>Crt(O,R)))return[C];{const O=SM(m,v,p,A,R)||et;return p.kind===108?[C,...O]:[...O,C]}}if(p.parent.kind===304){const C=m.getShorthandAssignmentValueSymbol(v.valueDeclaration),O=C?.declarations?C.declarations.map(U=>XO(U,m,C,p,!1,A)):et;return So(O,Pke(m,p))}if(ic(p)&&Qa(h)&&am(h.parent)&&p===(h.propertyName||h.name)){const C=cO(p),O=m.getTypeAtLocation(h.parent);return C===void 0?et:Pi(O.isUnion()?O.types:[O],U=>{const K=U.getProperty(C);return K&&SM(m,K,p)})}const M=Pke(m,p);return So(u,M.length?M:SM(m,v,p,A))}function Crt(e,t){var r;return e===t.symbol||e===t.symbol.parent||Lc(t.parent)||!kE(t.parent)&&e===((r=ii(t.parent,x_))==null?void 0:r.symbol)}function Pke(e,t){const r=WO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Pi(nz(r,e,i,!1),o=>SM(e,o,t))}return et}function Prt(e,t){const r=Gn(t,$c);if(!(r&&r.name))return;const i=Gn(r,ui);if(!i)return;const o=D_(i);if(!o)return;const s=hs(o.expression),l=Zc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Vi(sR(r.name)),p=fc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(p)return SM(e,p,t)}function Mke(e,t,r){var i,o;const s=TM(e.referencedFiles,t);if(s){const p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}const l=TM(e.typeReferenceDirectives,t);if(l){const 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}}const u=TM(e.libReferenceDirectives,t);if(u){const p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const p=ID(e,t);let h;if(a5(p)&&Yc(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){const m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,v=m||Pv(ai(e.fileName),p.text);return{file:r.getSourceFile(v),fileName:v,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function Mrt(e,t){const r=t.symbol.name;if(!c_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function Lke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!c_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Lrt(e,t,r,i){var o,s;if(Or(t)&4&&Mrt(e,t))return KO(e.getTypeArguments(t)[0],e,r,i);if(Lke(e,t)&&t.aliasTypeArguments)return KO(t.aliasTypeArguments[0],e,r,i);if(Or(t)&32&&t.target&&Lke(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Nm(l)&&Cf(l.type)&&l.type.typeArguments)return KO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function krt(e,t,r){const i=Vd(t,r);if(i===t)return;if(uR(i.parent)&&i.parent.name===i)return KO(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=CQ(i,e,!1);if(!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=wrt(o,l,e),p=u&&KO(u,e,i,s),[h,m]=p&&p.length!==0?[u,p]:[l,KO(l,e,i,s)];return m.length?[...Lrt(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?SM(e,bu(o,e),i,s):void 0}function KO(e,t,r,i){return Pi(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&SM(t,o.symbol,r,i))}function wrt(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&wi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ha(i))}}function Ort(e,t,r){const i=Cke(e,t,r);if(!i||i.length===0)return;const o=TM(t.referencedFiles,r)||TM(t.typeReferenceDirectives,r)||TM(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:sb(o)};const s=Vd(t,r),l=yu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Wrt(e,t){return Hi(t.getIndexInfosAtLocation(e),r=>r.declaration&&Az(t,r.declaration))}function CQ(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i?.declarations&&i.flags&2097152&&!r&&Frt(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function Frt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function zrt(e){if(!xC(e))return!1;const t=Gn(e,r=>Lc(r)?!0:xC(r)?!1:"quit");return!!t&&Bl(t)===5}function SM(e,t,r,i,o){const s=nr(t.declarations,v=>v!==o),l=nr(s,v=>!zrt(v)),u=bt(l)?l:s;return p()||h()||Ot(u,v=>XO(v,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(nM(r)||r.kind===137)){const v=An(s,ui)||N.fail("Expected declaration to have at least one class-like declaration");return m(v.members,!0)}}function h(){return kK(r)||GK(r)?m(s,!1):void 0}function m(v,A){if(!v)return;const I=v.filter(A?Ml:ea),R=I.filter(M=>!!M.body);return I.length?R.length!==0?R.map(M=>XO(M,e,t,r)):[XO(Ya(I),e,t,r,!1,i)]:void 0}}function XO(e,t,r,i,o,s){const l=t.symbolToString(r),u=tv.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return s_e(t,e,u,l,p,o,s)}function s_e(e,t,r,i,o,s,l,u){const p=t.getSourceFile();if(!u){const h=Mo(t)||t;u=Dd(h,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Ws.toContextSpan(u,p,Ws.getContextNode(t)),isLocal:!l_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function Brt(e,t){const r=Ws.getContextNode(e),i=Dd(Zme(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 l_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(zv(t.parent)&&t.parent.initializer===t)return l_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(hp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return l_e(e,t.parent);default:return!1}}function Az(e,t,r){return XO(t,e,t.symbol,t,!1,r)}function TM(e,t){return An(e,r=>eL(r,t))}function Grt(e,t,r){return{fileName:t,textSpan:dc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Vrt(e){const t=Gn(e,i=>!TD(i)),r=t?.parent;return r&&kE(r)&&K4(r)===t?r:void 0}function jrt(e,t){const r=Vrt(t),i=r&&e.getResolvedSignature(r);return ii(i&&i.declaration,o=>ea(o)&&!bh(o))}function Urt(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var c_e,Hrt=T({"src/services/goToDefinition.ts"(){si(),a_e(),c_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),jD={};X(jD,{createDefinitionInfo:()=>XO,findReferenceInPosition:()=>TM,getDefinitionAndBoundSpan:()=>Ort,getDefinitionAtPosition:()=>Cke,getReferenceAtPosition:()=>Mke,getTypeDefinitionAtPosition:()=>krt});var qrt=T({"src/services/_namespaces/ts.GoToDefinition.ts"(){Hrt()}});function Jrt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Krt(e){return e.includeInlayParameterNameHints==="literals"}function kke(e){return e.interactiveInlayHints===!0}function Xrt(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=uf(t,s),h=r.getTypeChecker(),m=[];return v(t),m;function v(pe){if(!(!pe||pe.getFullWidth()===0)){switch(pe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(s4(i,pe.pos,pe.getFullWidth())&&!(ji(pe)&&!Hy(pe)))return s.includeInlayVariableTypeHints&&wi(pe)||s.includeInlayPropertyDeclarationTypeHints&&Jo(pe)?U(pe):s.includeInlayEnumMemberValueHints&&c1(pe)?C(pe):Jrt(s)&&(sa(pe)||n1(pe))?K(pe):(s.includeInlayFunctionParameterTypeHints&&Bs(pe)&&J3(pe)&&he(pe),s.includeInlayFunctionLikeReturnTypeHints&&A(pe)&&G(pe)),Ho(pe,v)}}function A(pe){return Gs(pe)||Os(pe)||Ac(pe)||ql(pe)||rf(pe)}function I(pe,ie,ye,Me){let Ue=`${Me?"...":""}${pe}`,Ee;kke(s)?(Ee=[Ne(Ue,ie),{text:":"}],Ue=""):Ue+=":",m.push({text:Ue,position:ye,kind:"Parameter",whitespaceAfter:!0,displayParts:Ee})}function R(pe,ie){m.push({text:typeof pe=="string"?`: ${pe}`:"",displayParts:typeof pe=="string"?void 0:[{text:": "},...pe],position:ie,kind:"Type",whitespaceBefore:!0})}function M(pe,ie){m.push({text:`= ${pe}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function C(pe){if(pe.initializer)return;const ie=h.getConstantValue(pe);ie!==void 0&&M(ie.toString(),pe.end)}function O(pe){return pe.symbol&&pe.symbol.flags&1536}function U(pe){if(!pe.initializer||ta(pe.name)||wi(pe)&&!fe(pe)||vu(pe))return;const ye=h.getTypeAtLocation(pe);if(O(ye))return;const Me=Y(ye);if(Me){const Ue=typeof Me=="string"?Me:Me.map(De=>De.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&r0(pe.name.getText(),Ue))return;R(Me,pe.name.end)}}function K(pe){const ie=pe.arguments;if(!ie||!ie.length)return;const ye=[],Me=h.getResolvedSignatureForSignatureHelp(pe,ye);if(!Me||!ye.length)return;let Ue=0;for(const Ee of ie){const De=hs(Ee);if(Krt(s)&&!se(De)){Ue++;continue}let Pe=0;if(e_(De)){const At=h.getTypeAtLocation(De.expression);if(h.isTupleType(At)){const{elementFlags:Se,fixedLength:je}=At.target;if(je===0)continue;const at=Br(Se,yt=>!(yt&1));(at<0?je:at)>0&&(Pe=at<0?je:at)}}const We=h.getParameterIdentifierInfoAtPosition(Me,Ue);if(Ue=Ue+(Pe||1),We){const{parameter:At,parameterName:Se,isRestParameter:je}=We;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!Z(De,Se))&&!je)continue;const Gt=Vi(Se);if(V(De,Gt))continue;I(Gt,At,Ee.getStart(),je)}}}function Z(pe,ie){return Ve(pe)?pe.text===ie:Wr(pe)?pe.name.text===ie:!1}function V(pe,ie){if(!tf(ie,u.target,pk(t.scriptKind)))return!1;const ye=Xh(l,pe.pos);if(!ye?.length)return!1;const Me=wke(ie);return bt(ye,Ue=>Me.test(l.substring(Ue.pos,Ue.end)))}function se(pe){switch(pe.kind){case 224:{const ie=pe.operand;return LE(ie)||Ve(ie)&&rP(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=pe.escapedText;return oe(ie)||rP(ie)}}return LE(pe)}function G(pe){if(Gs(pe)&&!ys(pe,21,t)||nm(pe)||!pe.body)return;const ye=h.getSignatureFromDeclaration(pe);if(!ye)return;const Me=h.getReturnTypeOfSignature(ye);if(O(Me))return;const Ue=Y(Me);Ue&&R(Ue,ne(pe))}function ne(pe){const ie=ys(pe,22,t);return ie?ie.end:pe.parameters.end}function he(pe){const ie=h.getSignatureFromDeclaration(pe);if(ie)for(let ye=0;ye{const Ue=h.typeToTypeNode(pe,void 0,71286784);N.assertIsDefined(Ue,"should always get typenode"),ye.writeNode(4,Ue,t,Me)})}function Y(pe){if(!kke(s))return $(pe);const ye=h.typeToTypeNode(pe,void 0,71286784);N.assertIsDefined(ye,"should always get typenode");const Me=[];return Ue(ye),Me;function Ue(We){var At,Se;if(!We)return;const je=fa(We.kind);if(je){Me.push({text:je});return}if(LE(We)){Me.push({text:Pe(We)});return}switch(We.kind){case 80:N.assertNode(We,Ve);const at=Sr(We),Gt=We.symbol&&We.symbol.declarations&&We.symbol.declarations.length&&Mo(We.symbol.declarations[0]);Gt?Me.push(Ne(at,Gt)):Me.push({text:at});break;case 166:N.assertNode(We,Id),Ue(We.left),Me.push({text:"."}),Ue(We.right);break;case 182:N.assertNode(We,Gk),We.assertsModifier&&Me.push({text:"asserts "}),Ue(We.parameterName),We.type&&(Me.push({text:" is "}),Ue(We.type));break;case 183:N.assertNode(We,Cf),Ue(We.typeName),We.typeArguments&&(Me.push({text:"<"}),De(We.typeArguments,", "),Me.push({text:">"}));break;case 168:N.assertNode(We,gl),We.modifiers&&De(We.modifiers," "),Ue(We.name),We.constraint&&(Me.push({text:" extends "}),Ue(We.constraint)),We.default&&(Me.push({text:" = "}),Ue(We.default));break;case 169:N.assertNode(We,Ao),We.modifiers&&De(We.modifiers," "),We.dotDotDotToken&&Me.push({text:"..."}),Ue(We.name),We.questionToken&&Me.push({text:"?"}),We.type&&(Me.push({text:": "}),Ue(We.type));break;case 185:N.assertNode(We,UR),Me.push({text:"new "}),Ee(We),Me.push({text:" => "}),Ue(We.type);break;case 186:N.assertNode(We,aI),Me.push({text:"typeof "}),Ue(We.exprName),We.typeArguments&&(Me.push({text:"<"}),De(We.typeArguments,", "),Me.push({text:">"}));break;case 187:N.assertNode(We,bp),Me.push({text:"{"}),We.members.length&&(Me.push({text:" "}),De(We.members,"; "),Me.push({text:" "})),Me.push({text:"}"});break;case 188:N.assertNode(We,Vk),Ue(We.elementType),Me.push({text:"[]"});break;case 189:N.assertNode(We,sI),Me.push({text:"["}),De(We.elements,", "),Me.push({text:"]"});break;case 202:N.assertNode(We,HR),We.dotDotDotToken&&Me.push({text:"..."}),Ue(We.name),We.questionToken&&Me.push({text:"?"}),Me.push({text:": "}),Ue(We.type);break;case 190:N.assertNode(We,UW),Ue(We.type),Me.push({text:"?"});break;case 191:N.assertNode(We,HW),Me.push({text:"..."}),Ue(We.type);break;case 192:N.assertNode(We,Qv),De(We.types," | ");break;case 193:N.assertNode(We,lI),De(We.types," & ");break;case 194:N.assertNode(We,cI),Ue(We.checkType),Me.push({text:" extends "}),Ue(We.extendsType),Me.push({text:" ? "}),Ue(We.trueType),Me.push({text:" : "}),Ue(We.falseType);break;case 195:N.assertNode(We,FS),Me.push({text:"infer "}),Ue(We.typeParameter);break;case 196:N.assertNode(We,zS),Me.push({text:"("}),Ue(We.type),Me.push({text:")"});break;case 198:N.assertNode(We,BS),Me.push({text:`${fa(We.operator)} `}),Ue(We.type);break;case 199:N.assertNode(We,GS),Ue(We.objectType),Me.push({text:"["}),Ue(We.indexType),Me.push({text:"]"});break;case 200:N.assertNode(We,qR),Me.push({text:"{ "}),We.readonlyToken&&(We.readonlyToken.kind===40?Me.push({text:"+"}):We.readonlyToken.kind===41&&Me.push({text:"-"}),Me.push({text:"readonly "})),Me.push({text:"["}),Ue(We.typeParameter),We.nameType&&(Me.push({text:" as "}),Ue(We.nameType)),Me.push({text:"]"}),We.questionToken&&(We.questionToken.kind===40?Me.push({text:"+"}):We.questionToken.kind===41&&Me.push({text:"-"}),Me.push({text:"?"})),Me.push({text:": "}),We.type&&Ue(We.type),Me.push({text:"; }"});break;case 201:N.assertNode(We,Zv),Ue(We.literal);break;case 184:N.assertNode(We,bh),Ee(We),Me.push({text:" => "}),Ue(We.type);break;case 205:N.assertNode(We,cg),We.isTypeOf&&Me.push({text:"typeof "}),Me.push({text:"import("}),Ue(We.argument),We.assertions&&(Me.push({text:", { assert: "}),De(We.assertions.assertClause.elements,", "),Me.push({text:" }"})),Me.push({text:")"}),We.qualifier&&(Me.push({text:"."}),Ue(We.qualifier)),We.typeArguments&&(Me.push({text:"<"}),De(We.typeArguments,", "),Me.push({text:">"}));break;case 171:N.assertNode(We,yp),(At=We.modifiers)!=null&&At.length&&(De(We.modifiers," "),Me.push({text:" "})),Ue(We.name),We.questionToken&&Me.push({text:"?"}),We.type&&(Me.push({text:": "}),Ue(We.type));break;case 181:N.assertNode(We,e1),Me.push({text:"["}),De(We.parameters,", "),Me.push({text:"]"}),We.type&&(Me.push({text:": "}),Ue(We.type));break;case 173:N.assertNode(We,vh),(Se=We.modifiers)!=null&&Se.length&&(De(We.modifiers," "),Me.push({text:" "})),Ue(We.name),We.questionToken&&Me.push({text:"?"}),Ee(We),We.type&&(Me.push({text:": "}),Ue(We.type));break;case 179:N.assertNode(We,oI),Ee(We),We.type&&(Me.push({text:": "}),Ue(We.type));break;case 207:N.assertNode(We,t1),Me.push({text:"["}),De(We.elements,", "),Me.push({text:"]"});break;case 206:N.assertNode(We,am),Me.push({text:"{"}),We.elements.length&&(Me.push({text:" "}),De(We.elements,", "),Me.push({text:" "})),Me.push({text:"}"});break;case 208:N.assertNode(We,Qa),Ue(We.name);break;case 224:N.assertNode(We,tb),Me.push({text:fa(We.operator)}),Ue(We.operand);break;case 203:N.assertNode(We,bae),Ue(We.head),We.templateSpans.forEach(Ue);break;case 16:N.assertNode(We,nI),Me.push({text:Pe(We)});break;case 204:N.assertNode(We,hH),Ue(We.type),Ue(We.literal);break;case 17:N.assertNode(We,pH),Me.push({text:Pe(We)});break;case 18:N.assertNode(We,BW),Me.push({text:Pe(We)});break;case 197:N.assertNode(We,jk),Me.push({text:"this"});break;default:N.failBadSyntaxKind(We)}}function Ee(We){We.typeParameters&&(Me.push({text:"<"}),De(We.typeParameters,", "),Me.push({text:">"})),Me.push({text:"("}),De(We.parameters,", "),Me.push({text:")"})}function De(We,At){We.forEach((Se,je)=>{je>0&&Me.push({text:At}),Ue(Se)})}function Pe(We){switch(We.kind){case 11:return p===0?`'${ig(We.text,39)}'`:`"${ig(We.text,34)}"`;case 16:case 17:case 18:{const At=We.rawText??Xj(ig(We.text,96));switch(We.kind){case 16:return"`"+At+"${";case 17:return"}"+At+"${";case 18:return"}"+At+"`"}}}return We.text}}function oe(pe){return pe==="undefined"}function fe(pe){if((UE(pe)||wi(pe)&&cR(pe))&&pe.initializer){const ie=hs(pe.initializer);return!(se(ie)||n1(ie)||Oa(ie)||yS(ie))}return!0}function Ne(pe,ie){const ye=ie.getSourceFile();return{text:pe,span:Dd(ie,ye),file:ye.fileName}}}var wke,Yrt=T({"src/services/inlayHints.ts"(){si(),wke=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),PQ={};X(PQ,{provideInlayHints:()=>Xrt});var $rt=T({"src/services/_namespaces/ts.InlayHints.ts"(){Yrt()}});function Qrt(e,t){const r=[];return uX(e,i=>{for(const o of eit(i)){const s=n_(o)&&o.tags&&An(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||n_(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?UD(o.comment,t):[];s&&s.comment&&(l=l.concat(UD(s.comment,t))),Nr(r,l,Zrt)||r.push(l)}}),da(co(r,[ND()]))}function Zrt(e,t){return Na(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function eit(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(QR(e.parent))return[e.parent.parent];default:return Lj(e)}}function tit(e,t){const r=[];return uX(e,i=>{const o=p0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(const s of o)r.push({name:s.tagName.text,text:Fke(s,t)}),r.push(...Oke(Wke(s),t))}),r}function Oke(e,t){return Pi(e,r=>So([{name:r.tagName.text,text:Fke(r,t)}],Oke(Wke(r),t)))}function Wke(e){return pC(e)&&e.isNameFirst&&e.typeExpression&&JS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function UD(e,t){return typeof e=="string"?[df(e)]:Pi(e,r=>r.kind===328?[df(r.text)]:Mue(r,t))}function Fke(e,t){const{comment:r,kind:i}=e,o=nit(i);switch(i){case 356:const u=e.typeExpression;return u?s(u):r===void 0?void 0:UD(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:const p=e,h=[];if(p.constraint&&h.push(df(p.constraint.getText())),Le(p.typeParameters)){Le(h)&&h.push(wl());const v=p.typeParameters[p.typeParameters.length-1];Xe(p.typeParameters,A=>{h.push(o(A.getText())),v!==A&&h.push($u(28),wl())})}return r&&h.push(wl(),...UD(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:m}=e;return m?s(m):r===void 0?void 0:UD(r,t);default:return r===void 0?void 0:UD(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[df(u),...UD(r,t)]:[o(u),wl(),...UD(r,t)]:[df(u)]}}function nit(e){switch(e){case 348:return Rue;case 355:return Due;case 352:return Cue;case 353:case 345:return Nue;default:return df}}function rit(){return Bke||(Bke=Ot(d_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:zI.SortText.LocationPriority})))}function iit(){return Gke||(Gke=Ot(d_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:zI.SortText.LocationPriority})))}function zke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function oit(e){if(!Ve(e.name))return et;const t=e.name.text,r=e.parent,i=r.parent;return ea(i)?Hi(i.parameters,o=>{if(!Ve(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&r_(l)&&Ve(l.name)&&l.name.escapedText===s)||t!==void 0&&!uo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:zI.SortText.LocationPriority}}):[]}function ait(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function sit(e,t,r,i){const o=po(t,r),s=Gn(o,n_);if(s&&(s.comment!==void 0||Le(s.tags)))return;const l=o.getStart(t);if(!s&&l0;if(M&&!U){const K=C+e+I+" * ",Z=l===r?e+I:"";return{newText:K+e+M+I+O+Z,caretOffset:K.length}}return{newText:C+O,caretOffset:3}}function lit(e,t){const{text:r}=e,i=lm(t,e);let o=i;for(;o<=t&&A_(r.charCodeAt(o));o++);return r.slice(i,o)}function cit(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function uit(e,t){return`${e} * @returns${t}`}function dit(e,t){return Gre(e,r=>u_e(r,t))}function u_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Iz(r,t)};case 303:return u_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const o=e;return o.type&&bh(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Iz(o.type,t)}:{commentOwner:e}}case 243:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?pit(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Iz(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return u_e(e.expression,t);case 226:{const o=e;return Bl(o)===0?"quit":ea(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Iz(o.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Os(i)||Gs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Iz(i,t)}}}function Iz(e,t){return!!t?.generateReturnInDocTemplate&&(bh(e)||Gs(e)&&vt(e.body)||Bs(e)&&e.body&&Xo(e.body)&&!!FE(e.body,r=>r))}function pit(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return An(e.members,Ml)}}var d_e,Bke,Gke,Vke,fit=T({"src/services/jsDoc.ts"(){si(),d_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"],Vke=zke}}),B0={};X(B0,{getDocCommentTemplateAtPosition:()=>sit,getJSDocParameterNameCompletionDetails:()=>ait,getJSDocParameterNameCompletions:()=>oit,getJSDocTagCompletionDetails:()=>zke,getJSDocTagCompletions:()=>iit,getJSDocTagNameCompletionDetails:()=>Vke,getJSDocTagNameCompletions:()=>rit,getJsDocCommentsFromDeclarations:()=>Qrt,getJsDocTagsFromDeclarations:()=>tit});var mit=T({"src/services/_namespaces/ts.JsDoc.ts"(){fit()}});function _it(e,t,r,i,o,s){const l=_r.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,h=s==="RemoveUnused"||s==="All",m=MQ(e,e.statements.filter(kc)),v=Mit(o,u?()=>Hke(m,o)===2:void 0),A=R=>(h&&(R=git(R,e,i)),p&&(R=jke(R,v,e,o)),u&&(R=Iy(R,(M,C)=>h_e(M,C,v))),R);m.forEach(R=>I(R,A)),s!=="RemoveUnused"&&Lit(e).forEach(R=>I(R,M=>p_e(M,v,o)));for(const R of e.statements.filter(ku)){if(!R.body)continue;if(MQ(e,R.body.statements.filter(kc)).forEach(C=>I(C,A)),s!=="RemoveUnused"){const C=R.body.statements.filter(Yl);I(C,O=>p_e(O,v,o))}}return l.getChanges();function I(R,M){if(Le(R)===0)return;pr(R[0],1024);const C=p?XN(R,K=>xz(K.moduleSpecifier)):[R],O=u?Iy(C,(K,Z)=>m_e(K[0].moduleSpecifier,Z[0].moduleSpecifier,v)):C,U=Pi(O,K=>xz(K[0].moduleSpecifier)||K[0].moduleSpecifier===void 0?M(K):K);if(U.length===0)l.deleteNodes(e,R,{leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include},!0);else{const K={leadingTriviaOption:_r.LeadingTriviaOption.Exclude,trailingTriviaOption:_r.TrailingTriviaOption.Include,suffix:Qy(r,t.options)};l.replaceNodeWithNodes(e,R[0],U,K);const Z=l.nodeHasTrailingComment(e,R[0],K);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:_r.TrailingTriviaOption.Include},Z)}}}function MQ(e,t){const r=My(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&hit(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function hit(e,t,r){const 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 git(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(const m of e){const{importClause:v,moduleSpecifier:A}=m;if(!v){p.push(m);continue}let{name:I,namedBindings:R}=v;if(I&&!h(I)&&(I=void 0),R)if(nb(R))h(R.name)||(R=void 0);else{const M=R.elements.filter(C=>h(C.name));M.lengthMa(i)&&i.text===r)}function xz(e){return e!==void 0&&ls(e)?e.text:void 0}function vit(e,t,r,i){const o=LQ(t);return jke(e,o,r,i)}function jke(e,t,r,i){if(e.length===0)return e;const o=A6(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(const p of lS(l.attributes.elements,(h,m)=>Uu(h.name.text,m.name.text)))u+=p.name.text+":",u+=ls(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=bit(u);p&&s.push(p);for(const v of[m,h]){const A=v===h,{defaultImports:I,namespaceImports:R,namedImports:M}=v;if(!A&&I.length===1&&R.length===1&&M.length===0){const ne=I[0];s.push(YO(ne,ne.importClause.name,R[0].importClause.namedBindings));continue}const C=Iy(R,(ne,he)=>t(ne.importClause.namedBindings.name.text,he.importClause.namedBindings.name.text));for(const ne of C)s.push(YO(ne,void 0,ne.importClause.namedBindings));const O=Xc(I),U=Xc(M),K=O??U;if(!K)continue;let Z;const V=[];if(I.length===1)Z=I[0].importClause.name;else for(const ne of I)V.push(w.createImportSpecifier(!1,w.createIdentifier("default"),ne.importClause.name));V.push(...Dit(M));const se=w.createNodeArray(Uke(V,t,i),U?.importClause.namedBindings.elements.hasTrailingComma),G=se.length===0?Z?void 0:w.createNamedImports(et):U?w.updateNamedImports(U.importClause.namedBindings,se):w.createNamedImports(se);r&&G&&U?.importClause.namedBindings&&!kS(U.importClause.namedBindings,r)&&pr(G,2),A&&Z&&G?(s.push(YO(K,Z,void 0)),s.push(YO(U??K,void 0,G))):s.push(YO(K,Z,G))}}return s}function bit(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(nb(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Eit(e,t,r){const i=LQ(t);return p_e(e,i,r)}function p_e(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(const p of[o,s]){if(p.length===0)continue;const h=[];h.push(...Pi(p,A=>A.exportClause&&Pf(A.exportClause)?A.exportClause.elements:et));const m=Uke(h,t,r),v=p[0];l.push(w.updateExportDeclaration(v,v.modifiers,v.isTypeOnly,v.exportClause&&(Pf(v.exportClause)?w.updateNamedExports(v.exportClause,m):w.updateNamespaceExport(v.exportClause,v.exportClause.name)),v.moduleSpecifier,v.attributes))}return l;function u(p){let h;const m=[],v=[];for(const A of p)A.exportClause===void 0?h=h||A:A.isTypeOnly?v.push(A):m.push(A);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:v}}}function YO(e,t,r){return w.updateImportDeclaration(e,e.modifiers,w.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function Uke(e,t,r){return Iy(e,(i,o)=>f_e(i,o,t,r))}function f_e(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return Rv(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Rv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Sit(e,t,r){const i=LQ(!!r);return m_e(e,t,i)}function m_e(e,t,r){const i=e===void 0?void 0:xz(e),o=t===void 0?void 0:xz(t);return Rv(i===void 0,o===void 0)||Rv(Yc(i),Yc(o))||r(i,o)}function __e(e){var t;switch(e.kind){case 271:return(t=ii(e.moduleReference,Th))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Tit(e,t){return Hke(MQ(e,e.statements.filter(kc)),t)}function Hke(e,t){const r=HD(t,!1),i=HD(t,!0);let o=3,s=!1;for(const l of e){if(l.length>1){const p=KN(l,h=>{var m;return((m=ii(h.moduleSpecifier,Ma))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}const u=An(l,p=>{var h,m;return((m=ii((h=p.importClause)==null?void 0:h.namedBindings,Vg))==null?void 0:m.elements.length)>1});if(u){const p=g_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function Ait(e,t){const r=HD(t,!1),i=HD(t,!0);return KN(e,o=>xz(__e(o))||"",r,i)}function Iit(e,t,r){const i=xy(e,t,nl,(o,s)=>h_e(o,s,r));return i<0?~i:i}function xit(e,t,r,i){const o=xy(e,t,nl,(s,l)=>f_e(s,l,r,i));return o<0?~o:o}function h_e(e,t,r){return m_e(__e(e),__e(t),r)||Rit(e,t)}function Rit(e,t){return rl(qke(e),qke(t))}function qke(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 Dit(e){return Pi(e,t=>Ot(Nit(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?w.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Nit(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Vg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function LQ(e){return e?pne:Uu}function Cit(e,t){const r=Pit(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 Pit(e){let t=e.organizeImportsLocale;t==="auto"&&(t=fne()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function HD(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?Cit(t,e):LQ(t)}function Mit(e,t){const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return HD(e,r)}function Lit(e){const t=[],r=e.statements,i=Le(r);let o=0,s=0;for(;oMQ(e,l))}var Jke,g_e,kit=T({"src/services/organizeImports.ts"(){si(),Jke=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)}},g_e=dne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!E6(e,(o,s)=>Rv(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!E6(e,(o,s)=>Fx(!0)(o.name.text,s.name.text)))return 0;break;default:if(!E6(e,(o,s)=>Rv(o.isTypeOnly,s.isTypeOnly)))return 0;break}const r=HD(t,!1),i=HD(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:o,regular:s}=A6(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?KN(o,p=>p.name.text,r,i):void 0,u=s?.length?KN(s,p=>p.name.text??"",r,i):void 0;return l===void 0?u??0:u===void 0?l:l===0||u===0?0:u&l}return KN(e,o=>o.name.text,r,i)},new Jke)}}),Lm={};X(Lm,{coalesceExports:()=>Eit,coalesceImports:()=>vit,compareImportOrExportSpecifiers:()=>f_e,compareImportsOrRequireStatements:()=>h_e,compareModuleSpecifiers:()=>Sit,detectImportDeclarationSorting:()=>Ait,detectImportSpecifierSorting:()=>g_e,detectSorting:()=>Tit,getImportDeclarationInsertionIndex:()=>Iit,getImportSpecifierInsertionIndex:()=>xit,getOrganizeImportsComparer:()=>HD,organizeImports:()=>_it});var wit=T({"src/services/_namespaces/ts.OrganizeImports.ts"(){kit()}});function Oit(e,t){const r=[];return Wit(e,t,r),Fit(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function Wit(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],l=s.length;for(;o1&&i.push(Rz(s,l,"comment"))}}function Xke(e,t,r,i){eI(e)||y_e(e.pos,t,r,i)}function Rz(e,t,r){return GI(dc(e,t),r)}function zit(e,t){switch(e.kind){case 241:if(ea(e.parent))return Bit(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:const I=e.parent;if(I.tryBlock===e)return m(e.parent);if(I.finallyBlock===e){const R=ys(I,98,t);if(R)return m(R)}default:return GI(Dd(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,!sI(e.parent),23);case 296:case 297:return v(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 u(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Qa(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return A(e);case 275:case 279:case 300:return r(e)}function r(I){if(!I.elements.length)return;const R=ys(I,19,t),M=ys(I,20,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return kQ(R,M,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;const R=ys(I,21,t),M=ys(I,22,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return kQ(R,M,I,t,!1,!0)}function o(I){if(Xo(I.body)||Gd(I.body)||Rf(I.body.getFullStart(),I.body.getEnd(),t))return;const R=dc(I.body.getFullStart(),I.body.getEnd());return GI(R,"code",Dd(I))}function s(I){const R=dc(I.openingElement.getStart(t),I.closingElement.getEnd()),M=I.openingElement.tagName.getText(t),C="<"+M+">...";return GI(R,"code",R,!1,C)}function l(I){const R=dc(I.openingFragment.getStart(t),I.closingFragment.getEnd());return GI(R,"code",R,!1,"<>...")}function u(I){if(I.properties.length!==0)return Rz(I.getStart(t),I.getEnd(),"code")}function p(I){if(!(I.kind===15&&I.text.length===0))return Rz(I.getStart(t),I.getEnd(),"code")}function h(I,R=19){return m(I,!1,!md(I.parent)&&!sa(I.parent),R)}function m(I,R=!1,M=!0,C=19,O=C===19?20:24){const U=ys(e,C,t),K=ys(e,O,t);return U&&K&&kQ(U,K,I,t,R,M)}function v(I){return I.length?GI(sb(I),"code"):void 0}function A(I){if(Rf(I.getStart(),I.getEnd(),t))return;const R=dc(I.getStart(),I.getEnd());return GI(R,"code",Dd(I))}}function Bit(e,t,r){const i=Git(e,t,r),o=ys(t,20,r);return i&&o&&kQ(i,o,e,r,e.kind!==219)}function kQ(e,t,r,i,o=!1,s=!0){const l=dc(s?e.getFullStart():e.getStart(i),t.getEnd());return GI(l,"code",Dd(r,i),o)}function GI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Git(e,t,r){if(aoe(e.parameters,r)){const i=ys(e,21,r);if(i)return i}return ys(t,19,r)}var Yke,Vit=T({"src/services/outliningElementsCollector.ts"(){si(),Yke=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),wQ={};X(wQ,{collectElements:()=>Oit});var jit=T({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Vit()}});function Uit(e,t,r,i){const o=K7(Vd(t,r));if(Qke(o)){const s=Hit(o,e.getTypeChecker(),t,e,i);if(s)return s}return OQ(f.You_cannot_rename_this_element)}function Hit(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ls(e)){const A=J7(e,t);if(A&&(A.flags&128||A.flags&1048576&&Zn(A.types,I=>!!(I.flags&128))))return v_e(e.text,e.text,"string","",e,r)}else if(WK(e)){const A=pc(e);return v_e(A,A,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(A=>qit(i,A)))return OQ(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ve(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ls(e)&&UL(e))return o.allowRenameOfImportPath?Kit(e,r,s):void 0;const u=Jit(r,s,t,o);if(u)return OQ(u);const p=tv.getSymbolKind(t,s,e),h=Lue(e)||nf(e)&&e.parent.kind===167?tm(em(e)):void 0,m=h||t.symbolToString(s),v=h||t.getFullyQualifiedName(s);return v_e(m,v,p,tv.getSymbolModifiers(t,s),e,r)}function qit(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Il(r.fileName,".d.ts")}function Jit(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&An(t.declarations,u=>np(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=$ke(e.path);if(s===void 0)return bt(o,l=>yO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=$ke(l.getSourceFile().path);if(u){const p=Math.min(s.length,u.length);for(let h=0;h<=p;h++)if(Uu(s[h],u[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function $ke(e){const t=zc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Kit(e,t,r){if(!Yc(e.text))return OQ(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&An(r.declarations,$i);if(!i)return;const o=Al(e.text,"/index")||Al(e.text,"/index.js")?void 0:hne(Ad(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=yu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function v_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Xit(o,s)}}function OQ(e){return{canRename:!1,localizedErrorMessage:Wo(e)}}function Xit(e,t){let r=e.getStart(t),i=e.getWidth(t);return ls(e)&&(r+=1,i-=2),yu(r,i)}function Qke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return j7(e);default:return!1}}var Yit=T({"src/services/rename.ts"(){si()}}),Dz={};X(Dz,{getRenameInfo:()=>Uit,nodeIsEligibleForRename:()=>Qke});var $it=T({"src/services/_namespaces/ts.Rename.ts"(){Yit()}});function Qit(e,t,r,i,o){const s=e.getTypeChecker(),l=X7(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(DI(t,r,l)||Xy(t,r)))return;const p=!!i&&i.kind==="invoked",h=_ot(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();const m=Zit(h,s,t,l,u);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,v=>m.kind===0?awe(m.candidates,m.resolvedSignature,h,t,v):got(m.symbol,h,t,v)):ud(t)?tot(h,e,o):void 0}function Zit({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!eot(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!Zke(o,i,Ve(l)?l.parent:l))return;const u=JK(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ha(u)};const p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return N.assertNever(e)}}function eot(e,t,r){if(!I_(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Nr(i,e);case 28:{const o=q7(e);return!!o&&Nr(i,o)}case 30:return Zke(e,r,t.expression);default:return!1}}function tot(e,t,r){if(e.invocation.kind===2)return;const i=iwe(e.invocation),o=Wr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:qt(t.getSourceFiles(),l=>qt(l.getNamedDeclarations().get(o),u=>{const p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>awe(h,h[0],e,l,m,!0))}))}function Zke(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=xc(i,t,o,!0);if(s)return cf(r,s);o=o.parent}return N.fail("Could not find preceding token")}function not(e,t,r,i){const o=twe(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 ewe(e,t,r,i){const o=rot(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=dot(i,s);l!==0&&N.assertLessThan(l,u);const p=fot(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function rot(e,t,r){if(e.kind===30||e.kind===21)return{list:hot(e.parent,e,t),argumentIndex:0};{const i=q7(e);return i&&{list:i,argumentIndex:uot(r,i,e)}}}function twe(e,t,r,i){const{parent:o}=e;if(I_(o)){const s=o,l=ewe(e,t,r,i);if(!l)return;const{list:u,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(tI(e)&&r1(o))return oO(e,t,r)?E_e(o,0,r):void 0;if(nI(e)&&o.parent.kind===215){const s=o,l=s.parent;N.assert(s.kind===228);const u=oO(e,t,r)?0:1;return E_e(l,u,r)}else if(vP(o)&&r1(o.parent.parent)){const s=o,l=o.parent.parent;if(BW(e)&&!oO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),p=pot(u,e,t,r);return E_e(l,p,r)}else if(cd(o)){const s=o.attributes.pos,l=ka(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:yu(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=KK(e,r);if(s){const{called:l,nTypeArguments:u}=s,p={kind:1,called:l},h=dc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:u,argumentCount:u+1}}return}}}function iot(e,t,r,i){return oot(e,t,r,i)||twe(e,t,r,i)}function nwe(e){return mr(e.parent)?nwe(e.parent):e}function b_e(e){return mr(e.left)?b_e(e.left)+1:2}function oot(e,t,r,i){const o=aot(e);if(o===void 0)return;const s=sot(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),v=m.symbol;if(v===void 0)return;const A=tl(m.getCallSignatures());return A===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:A,node:e,symbol:lot(v)},argumentsSpan:h,argumentIndex:u,argumentCount:p}}function aot(e){switch(e.kind){case 21:case 28:return e;default:return Gn(e.parent,t=>Ao(t)?!0:Qa(t)||am(t)||t1(t)?!1:"quit")}}function sot(e,t,r,i){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const s=ewe(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,h=ql(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{const m=nwe(o),v=i.getContextualType(m),A=e.kind===21?0:b_e(o)-1,I=b_e(m);return v&&{contextualType:v,argumentIndex:A,argumentCount:I,argumentsSpan:Dd(o)}}default:return}}function lot(e){return e.name==="__type"&&qt(e.declarations,t=>{var r;return bh(t)?(r=ii(t.parent,x_))==null?void 0:r.symbol:void 0})||e}function cot(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=Br(i,l=>!(l&1));return s<0?o:s}return 0}function uot(e,t,r){return rwe(e,t,r)}function dot(e,t){return rwe(e,t,void 0)}function rwe(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(e_(l)){o+=cot(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ya(i).kind===28?o+1:o}function pot(e,t,r,i){return N.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),gre(t)?oO(t,r,i)?0:e+2:e+1}function E_e(e,t,r){const i=tI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&N.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:mot(e,r),argumentIndex:t,argumentCount:i}}function fot(e,t){const r=e.getFullStart(),i=ka(t.text,e.getEnd(),!1);return yu(r,i-r)}function mot(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===228&&Ya(r.templateSpans).literal.getFullWidth()===0&&(o=ka(t.text,o,!1)),yu(i,o-i)}function _ot(e,t,r,i,o){for(let s=e;!$i(s)&&(o||!Xo(s));s=s.parent){N.assert(cf(s.parent,s),"Not a subspan",()=>`Child: ${N.formatSyntaxKind(s.kind)}, parent: ${N.formatSyntaxKind(s.parent.kind)}`);const l=iot(s,t,r,i);if(l)return l}}function hot(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return N.assert(o>=0&&i.length>o+1),i[o+1]}function iwe(e){return e.kind===0?K4(e.node):e.called}function owe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function awe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,h){var m;const v=owe(s),A=s.kind===2?s.symbol:p.getSymbolAtLocation(iwe(s))||h&&((m=t.declaration)==null?void 0:m.symbol),I=A?cM(p,A,h?u:void 0,void 0):et,R=Ot(e,K=>vot(K,I,r,p,v,u));l!==0&&N.assertLessThan(l,i);let M=0,C=0;for(let K=0;K1)){let V=0;for(const se of Z){if(se.isVariadic||se.parameters.length>=i){M=C+V;break}V++}}C+=Z.length}N.assert(M!==-1);const O={items:Sc(R,nl),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},U=O.items[M];if(U.isVariadic){const K=Br(U.parameters,Z=>!!Z.isRest);-1swe(v,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,$u(30)],suffixDisplayParts:[$u(32)],separatorDisplayParts:S_e,parameters:u,documentation:p,tags:h}}function vot(e,t,r,i,o,s){const l=(r?Eot:Sot)(e,i,o,s);return Ot(l,({isVariadic:u,parameters:p,prefix:h,suffix:m})=>{const v=[...t,...h],A=[...m,...bot(e,o,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:v,suffixDisplayParts:A,separatorDisplayParts:S_e,parameters:p,documentation:I,tags:R}})}function bot(e,t,r){return lb(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Eot(e,t,r,i){const o=(e.target||e).typeParameters,s=h1(),l=(o||et).map(p=>swe(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,$O)]:[];return t.getExpandedParameters(e).map(p=>{const h=w.createNodeArray([...u,...Ot(p,v=>t.symbolToParameterDeclaration(v,r,$O))]),m=lb(v=>{s.writeList(2576,h,i,v)});return{isVariadic:!1,parameters:l,prefix:[$u(30)],suffix:[$u(32),...m]}})}function Sot(e,t,r,i){const o=h1(),s=lb(p=>{if(e.typeParameters&&e.typeParameters.length){const h=w.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,$O)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=ii(p[p.length-1],fh))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(h=>Tot(h,t,r,i,o)),prefix:[...s,$u(21)],suffix:[$u(22)]}))}function Tot(e,t,r,i,o){const s=lb(p=>{const h=t.symbolToParameterDeclaration(e,r,$O);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=fh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function swe(e,t,r,i,o){const s=lb(l=>{const u=t.typeParameterToDeclaration(e,r,$O);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var $O,S_e,Aot=T({"src/services/signatureHelp.ts"(){si(),$O=70246400,S_e=[$u(28),wl()]}}),QO={};X(QO,{getArgumentInfoForCompletions:()=>not,getSignatureHelpItems:()=>Qit});var Iot=T({"src/services/_namespaces/ts.SignatureHelp.ts"(){Aot()}});function xot(e,t){var r,i;let o={textSpan:dc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const p=Dot(s);if(!p.length)break;for(let h=0;he)break e;const I=ah(o0(t.text,v.end));if(I&&I.kind===2&&u(I.pos,I.end),Rot(t,e,v)){if($V(v)&&Bs(s)&&!Rf(v.getStart(t),v.getEnd(),t)&&l(v.getStart(t),v.getEnd()),Xo(v)||vP(v)||nI(v)||BW(v)||m&&nI(m)||Uc(v)&&Ll(s)||ZR(v)&&Uc(s)||wi(v)&&ZR(s)&&p.length===1||u1(v)||R0(v)||JS(v)){s=v;break}if(vP(s)&&A&&h4(A)){const O=v.getFullStart()-2,U=A.getStart()+1;l(O,U)}const R=ZR(v)&&Not(m)&&Cot(A)&&!Rf(m.getStart(),A.getStart(),t);let M=R?m.getEnd():v.getStart();const C=R?A.getStart():Pot(t,v);if(Fp(v)&&((r=v.jsDoc)!=null&&r.length)&&l(Ha(v.jsDoc).getStart(),C),ZR(v)){const O=v.getChildren()[0];O&&Fp(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==v.pos&&(M=Math.min(M,Ha(O.jsDoc).getStart()))}l(M,C),(Ma(v)||PA(v))&&l(M+1,C-1),s=v;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){const m=dc(p,h);(!o||!DD(m,o.textSpan)&&Xne(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function u(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function Rot(e,t,r){return N.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=ZO(s,({kind:u})=>u===23||u===168||u===24);return[r,e8(WQ(l,({kind:u})=>u===59)),o]}if(yp(e)){const r=ZO(e.getChildren(),l=>l===e.name||Nr(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=WQ(o,({kind:l})=>l===59);return i?[i,e8(s)]:s}if(Ao(e)){const r=ZO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=ZO(r,o=>o===r[0]||o===e.questionToken);return WQ(i,({kind:o})=>o===64)}return Qa(e)?WQ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function ZO(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(e8(i)),i=void 0),r.push(o));return i&&r.push(e8(i)),r}function WQ(e,t,r=!0){if(e.length<2)return e;const i=Br(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Ya(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),h=C2([o.length?e8(o):void 0,s,p.length?e8(p):void 0]);return u?h.concat(l):h}function e8(e){return N.assertGreaterThanOrEqual(e.length,1),gh(Ah.createSyntaxList(e),e[0].pos,Ya(e).end)}function Not(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function Cot(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function Pot(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 lwe,Mot=T({"src/services/smartSelection.ts"(){si(),lwe=Ym(kc,tu)}}),FQ={};X(FQ,{getSmartSelectionRange:()=>xot});var Lot=T({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Mot()}});function cwe(e,t,r){const i=uwe(e,t,r);if(i!=="")return i;const o=MR(t);return o&32?fl(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 uwe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Ha(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&&vt(r)||BA(r))return"parameter";const o=MR(t);if(o&3)return pX(t)?"parameter":t.valueDeclaration&&cR(t.valueDeclaration)?"const":t.valueDeclaration&&RL(t.valueDeclaration)?"using":t.valueDeclaration&&xL(t.valueDeclaration)?"await using":Xe(t.declarations,F4)?"let":fwe(t)?"local var":"var";if(o&16)return fwe(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){const s=Xe(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function dwe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Le(r)&&S5(t)&&bt(r,s=>!S5(s))?65536:0,o=iM(t,i);if(o)return o.split(",")}return[]}function kot(e,t){if(!t)return"";const r=new Set(dwe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Xe(dwe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?zo(r.values()).join(","):""}function pwe(e,t,r,i,o,s,l,u){var p;const h=[];let m=[],v=[];const A=MR(t);let I=l&1?uwe(e,t,o):"",R=!1;const M=o.kind===110&&Y4(o)||BA(o);let C,O,U=!1;if(o.kind===110&&!M)return{displayParts:[Sp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||A&32||A&2097152){if(I==="getter"||I==="setter"){const fe=An(t.declarations,Ne=>Ne.name===o);if(fe)switch(fe.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:N.assertNever(fe)}else I="property"}let Y;if(s??(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){const fe=o.parent.name;(fe===o||fe&&fe.getFullWidth()===0)&&(o=o.parent)}let oe;if(I_(o)?oe=o:(LK(o)||nM(o)||o.parent&&(cd(o.parent)||r1(o.parent))&&ea(t.valueDeclaration))&&(oe=o.parent),oe){Y=e.getResolvedSignature(oe);const fe=oe.kind===214||sa(oe)&&oe.expression.kind===108,Ne=fe?s.getConstructSignatures():s.getCallSignatures();if(Y&&!Nr(Ne,Y.target)&&!Nr(Ne,Y)&&(Y=Ne.length?Ne[0]:void 0),Y){switch(fe&&A&32?(I="constructor",ne(s.symbol,I)):A&2097152?(I="alias",he(I),h.push(wl()),fe&&(Y.flags&4&&(h.push(Sp(128)),h.push(wl())),h.push(Sp(105)),h.push(wl())),G(t)):ne(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push($u(59)),h.push(wl()),!(Or(s)&16)&&s.symbol&&(qr(h,cM(e,s.symbol,i,void 0,5)),h.push(ND())),fe&&(Y.flags&4&&(h.push(Sp(128)),h.push(wl())),h.push(Sp(105)),h.push(wl())),ve(Y,Ne,262144);break;default:ve(Y,Ne)}R=!0,U=Ne.length>1}}else if(GK(o)&&!(A&98304)||o.kind===137&&o.parent.kind===176){const fe=o.parent;if(t.declarations&&An(t.declarations,pe=>pe===(o.kind===137?fe.parent:fe))){const pe=fe.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(fe)?Y=pe[0]:Y=e.getSignatureFromDeclaration(fe),fe.kind===176?(I="constructor",ne(s.symbol,I)):ne(fe.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,I),Y&&ve(Y,pe),R=!0,U=pe.length>1}}}if(A&32&&!R&&!M&&(V(),fl(t,231)?he("local class"):h.push(Sp(86)),h.push(wl()),G(t),$(t,r)),A&64&&l&2&&(Z(),h.push(Sp(120)),h.push(wl()),G(t),$(t,r)),A&524288&&l&2&&(Z(),h.push(Sp(156)),h.push(wl()),G(t),$(t,r),h.push(wl()),h.push(lM(64)),h.push(wl()),qr(h,pO(e,o.parent&&Lg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),A&384&&(Z(),bt(t.declarations,Y=>I0(Y)&&WE(Y))&&(h.push(Sp(87)),h.push(wl())),h.push(Sp(94)),h.push(wl()),G(t)),A&1536&&!M){Z();const Y=fl(t,267),oe=Y&&Y.name&&Y.name.kind===80;h.push(Sp(oe?145:144)),h.push(wl()),G(t)}if(A&262144&&l&2)if(Z(),h.push($u(21)),h.push(df("type parameter")),h.push($u(22)),h.push(wl()),G(t),t.parent)se(),G(t.parent,i),$(t.parent,i);else{const Y=fl(t,168);if(Y===void 0)return N.fail();const oe=Y.parent;if(oe)if(ea(oe)){se();const fe=e.getSignatureFromDeclaration(oe);oe.kind===180?(h.push(Sp(105)),h.push(wl())):oe.kind!==179&&oe.name&&G(oe.symbol),qr(h,_X(e,fe,r,32))}else Nm(oe)&&(se(),h.push(Sp(156)),h.push(wl()),G(oe.symbol),$(oe.symbol,r))}if(A&8){I="enum member",ne(t,"enum member");const Y=(p=t.declarations)==null?void 0:p[0];if(Y?.kind===306){const oe=e.getConstantValue(Y);oe!==void 0&&(h.push(wl()),h.push(lM(64)),h.push(wl()),h.push(ip(Kre(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(Z(),!R||m.length===0&&v.length===0){const Y=e.getAliasedSymbol(t);if(Y!==t&&Y.declarations&&Y.declarations.length>0){const oe=Y.declarations[0],fe=Mo(oe);if(fe&&!R){const Ne=k4(oe)&&Zr(oe,128),pe=t.name!=="default"&&!Ne,ie=pwe(e,Y,jn(oe),oe,fe,s,l,pe?t:Y);h.push(...ie.displayParts),h.push(ND()),C=ie.documentation,O=ie.tags}else C=Y.getContextualDocumentationComment(oe,e),O=Y.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(Sp(95)),h.push(wl()),h.push(Sp(145));break;case 277:h.push(Sp(95)),h.push(wl()),h.push(Sp(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(Sp(95));break;default:h.push(Sp(102))}h.push(wl()),G(t),Xe(t.declarations,Y=>{if(Y.kind===271){const oe=Y;if(_0(oe))h.push(wl()),h.push(lM(64)),h.push(wl()),h.push(Sp(149)),h.push($u(21)),h.push(ip(pc(IC(oe)),8)),h.push($u(22));else{const fe=e.getSymbolAtLocation(oe.moduleReference);fe&&(h.push(wl()),h.push(lM(64)),h.push(wl()),G(fe,i))}return!0}})}if(!R)if(I!==""){if(s){if(M?(Z(),h.push(Sp(110))):ne(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||A&3||I==="local var"||I==="index"||I==="using"||I==="await using"||M){if(h.push($u(59)),h.push(wl()),s.symbol&&s.symbol.flags&262144&&I!=="index"){const Y=lb(oe=>{const fe=e.typeParameterToDeclaration(s,i,T_e);K().writeNode(4,fe,jn(Do(i)),oe)});qr(h,Y)}else qr(h,pO(e,s,i));if(fh(t)&&t.links.target&&fh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Y=t.links.target.links.tupleLabelDeclaration;N.assertNode(Y.name,Ve),h.push(wl()),h.push($u(21)),h.push(df(Sr(Y.name))),h.push($u(22))}}else if(A&16||A&8192||A&16384||A&131072||A&98304||I==="method"){const Y=s.getNonNullableType().getCallSignatures();Y.length&&(ve(Y[0],Y),U=Y.length>1)}}}else I=cwe(e,t,o);if(m.length===0&&!U&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&A&4&&t.parent&&t.declarations&&Xe(t.parent.declarations,Y=>Y.kind===312))for(const Y of t.declarations){if(!Y.parent||Y.parent.kind!==226)continue;const oe=e.getSymbolAtLocation(Y.parent.right);if(oe&&(m=oe.getDocumentationComment(e),v=oe.getJsDocTags(e),m.length>0))break}if(m.length===0&&Ve(o)&&t.valueDeclaration&&Qa(t.valueDeclaration)){const Y=t.valueDeclaration,oe=Y.parent,fe=Y.propertyName||Y.name;if(Ve(fe)&&am(oe)){const Ne=em(fe),pe=e.getTypeAtLocation(oe);m=qt(pe.isUnion()?pe.types:[pe],ie=>{const ye=ie.getProperty(Ne);return ye?ye.getDocumentationComment(e):void 0})||et}}return v.length===0&&!U&&(v=t.getContextualJsDocTags(i,e)),m.length===0&&C&&(m=C),v.length===0&&O&&(v=O),{displayParts:h,documentation:m,symbolKind:I,tags:v.length===0?void 0:v};function K(){return h1()}function Z(){h.length&&h.push(ND()),V()}function V(){u&&(he("alias"),h.push(wl()))}function se(){h.push(wl()),h.push(Sp(103)),h.push(wl())}function G(Y,oe){let fe;u&&Y===t&&(Y=u),I==="index"&&(fe=e.getIndexInfosOfIndexSymbol(Y));let Ne=[];Y.flags&131072&&fe?(Y.parent&&(Ne=cM(e,Y.parent)),Ne.push($u(23)),fe.forEach((pe,ie)=>{Ne.push(...pO(e,pe.keyType)),ie!==fe.length-1&&(Ne.push(wl()),Ne.push($u(52)),Ne.push(wl()))}),Ne.push($u(24))):Ne=cM(e,Y,oe||r,void 0,7),qr(h,Ne),t.flags&16777216&&h.push($u(58))}function ne(Y,oe){Z(),oe&&(he(oe),Y&&!bt(Y.declarations,fe=>Gs(fe)||(Os(fe)||Zc(fe))&&!fe.name)&&(h.push(wl()),G(Y)))}function he(Y){switch(Y){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(fX(Y));return;default:h.push($u(21)),h.push(fX(Y)),h.push($u(22));return}}function ve(Y,oe,fe=0){qr(h,_X(e,Y,i,fe|32)),oe.length>1&&(h.push(wl()),h.push($u(21)),h.push(lM(40)),h.push(ip((oe.length-1).toString(),7)),h.push(wl()),h.push(df(oe.length===2?"overload":"overloads")),h.push($u(22))),m=Y.getDocumentationComment(e),v=Y.getJsDocTags(),oe.length>1&&m.length===0&&v.length===0&&(m=oe[0].getDocumentationComment(e),v=oe[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function $(Y,oe){const fe=lb(Ne=>{const pe=e.symbolToTypeParameterDeclarations(Y,oe,T_e);K().writeList(53776,pe,jn(Do(oe)),Ne)});qr(h,fe)}}function wot(e,t,r,i,o,s=rT(o),l){return pwe(e,t,r,i,o,void 0,s,l)}function fwe(e){return e.parent?!1:Xe(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!zE(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var T_e,Oot=T({"src/services/symbolDisplay.ts"(){si(),T_e=70246400}}),tv={};X(tv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>wot,getSymbolKind:()=>cwe,getSymbolModifiers:()=>kot});var Wot=T({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Oot()}});function mwe(e){const t=e.__pos;return N.assert(typeof t=="number"),t}function A_e(e,t){N.assert(typeof t=="number"),e.__pos=t}function _we(e){const t=e.__end;return N.assert(typeof t=="number"),t}function I_e(e,t){N.assert(typeof t=="number"),e.__end=t}function hwe(e,t){return ka(e,t,!1,!0)}function Fot(e,t){let r=t;for(;r0?1:0;let A=Gv(OC(e,h)+v,e);return A=hwe(e.text,A),Gv(OC(e,A),e)}function x_e(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=o0(e.text,i);if(s){const l=OC(e,t.end);for(const u of s){if(u.kind===2||OC(e,u.pos)>l)break;if(OC(e,u.end)>l)return ka(e.text,u.end,!0,!0)}}}}function qD(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const p=So(o0(e.text,o),Xh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}const l=x_e(e,t,r);if(l)return l;const u=ka(e.text,o,!0);return u!==o&&(s===2||Hu(e.text.charCodeAt(u-1)))?u:o}function zQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function zot(e){return Os(e)||Ac(e)}function Bot(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Got(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return Ve(r.name)&&Ve(i.name)&&r.name.escapedText===i.name.escapedText?w.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return w.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return w.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function R_e(e,t){return ka(e.text,uT(e,t,{leadingTriviaOption:1}),!1,!0)}function Vot(e,t,r,i){const o=R_e(e,i);if(r===void 0||Rf(qD(e,t,{}),o,e))return o;const s=xc(i.getStart(e),e);if(zQ(t,s)){const l=xc(t.getStart(e),e);if(zQ(r,l)){const u=ka(e.text,s.getEnd(),!0,!0);if(Rf(l.getStart(e),s.getStart(e),e))return Hu(e.text.charCodeAt(u-1))?u-1:u;if(Hu(e.text.charCodeAt(u)))return u}}return o}function jot(e,t){const r=ys(e,19,t),i=ys(e,20,t);return[r?.end,i?.end]}function BQ(e){return Oa(e)?e.properties:e.members}function D_e(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Kl(i))}`}return e}function Uot(e){return ka(e,0)===e.length}function GQ(e){const t=In(e,GQ,bwe,Hot,GQ),r=$s(t)?t:Object.create(t);return gh(r,mwe(e),_we(e)),r}function Hot(e,t,r,i,o){const s=Vn(e,t,r,i,o);if(!s)return s;N.assert(e);const l=s===e?w.createNodeArray(s.slice(0)):s;return gh(l,mwe(e),_we(e)),l}function gwe(e){let t=0;const r=ok(e),i=ie=>{ie&&A_e(ie,t)},o=ie=>{ie&&I_e(ie,t)},s=ie=>{ie&&A_e(ie,t)},l=ie=>{ie&&I_e(ie,t)},u=ie=>{ie&&A_e(ie,t)},p=ie=>{ie&&I_e(ie,t)};function h(ie,ye){if(ye||!Uot(ie)){t=r.getTextPos();let Me=0;for(;Mg(ie.charCodeAt(ie.length-Me-1));)Me++;t-=Me}}function m(ie){r.write(ie),h(ie,!1)}function v(ie){r.writeComment(ie)}function A(ie){r.writeKeyword(ie),h(ie,!1)}function I(ie){r.writeOperator(ie),h(ie,!1)}function R(ie){r.writePunctuation(ie),h(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),h(ie,!1)}function C(ie){r.writeParameter(ie),h(ie,!1)}function O(ie){r.writeProperty(ie),h(ie,!1)}function U(ie){r.writeSpace(ie),h(ie,!1)}function K(ie){r.writeStringLiteral(ie),h(ie,!1)}function Z(ie,ye){r.writeSymbol(ie,ye),h(ie,!1)}function V(ie){r.writeLine(ie)}function se(){r.increaseIndent()}function G(){r.decreaseIndent()}function ne(){return r.getText()}function he(ie){r.rawWrite(ie),h(ie,!1)}function ve(ie){r.writeLiteral(ie),h(ie,!0)}function $(){return r.getTextPos()}function Y(){return r.getLine()}function oe(){return r.getColumn()}function fe(){return r.getIndent()}function Ne(){return r.isAtStartOfLine()}function pe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:m,writeComment:v,writeKeyword:A,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:C,writeProperty:O,writeSpace:U,writeStringLiteral:K,writeSymbol:Z,writeLine:V,increaseIndent:se,decreaseIndent:G,getText:ne,rawWrite:he,writeLiteral:ve,getTextPos:$,getLine:Y,getColumn:oe,getIndent:fe,isAtStartOfLine:Ne,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:pe}}function qot(e){let t;for(const h of e.statements)if(Im(h))t=h;else break;let r=0;const i=e.text;if(t)return r=t.end,p(),r;const o=o4(i);o!==void 0&&(r=o.length,p());const s=Xh(i,r);if(!s)return r;let l,u;for(const h of s){if(h.kind===3){if(M4(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(aj(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const m=e.getLineAndCharacterOfPosition(h.pos).line,v=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=v+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const m=e.getLineAndCharacterOfPosition(h.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(N_e||{}),C_e=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(C_e||{}),AM={leadingTriviaOption:0,trailingTriviaOption:0},vwe=class Tbe{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Tbe(Qy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Tbe.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){N.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:e5(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,t8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=uT(t,s,i,o),u=qD(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!x_e(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:ka(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=uT(t,r,o),l=qD(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=uT(t,r,o),l=i===void 0?t.text.length:uT(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,t8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=AM){this.replaceRange(t,t8(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,t8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,t8(t,r,r,AM),i)}replaceNodeRangeWithNodes(t,r,i,o,s=AM){this.replaceRangeWithNodes(t,t8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=AM){return!!x_e(t,r,i)}nextCommaToken(t,r){const i=v1(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,xf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,xf(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){const o=qot(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Hu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};To(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const 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=Zp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Xc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,uT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,uT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Ha(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,w.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=Gv(r,t),l=wue(t.text,s),u=ywe(t,l),p=ID(t,u?l:i),h=t.text.slice(s,l),m=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:lm(u.getStart(t),t),end:qD(t,u,{})});const s=u5(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Pi(r.jsDoc,s=>Po(s.comment)?w.createJSDocText(s.comment):s.comment),o=ah(r.jsDoc);return o&&Rf(o.pos,o.end,t)&&Le(i)===0?void 0:w.createNodeArray(co(i,w.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Bot(r),w.createJSDocComment(this.createJSDocText(t,r),w.createNodeArray(i)))}addJSDocTags(t,r,i){const o=Sc(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{const h=Got(u,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,nr(Sc(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,xf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(ea(r)){if(o=ys(r,22,t),!o){if(!Gs(r))return!1;o=Ha(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){const o=ys(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(ys(r,21,t)||Ha(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return qi(t)||$c(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:wi(t)?{suffix:", "}:Ao(t)?Ao(r)?{suffix:", "}:{}:Ma(t)&&kc(t.parent)||Vg(t)?{suffix:", "}:np(t)?{suffix:","+(i?this.newLineCharacter:" ")}:N.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Xc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=An(r.body.statements,s=>eu(s)&&TS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=tl(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,w.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=uT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Hu(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){const o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,BQ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of BQ(r)){if(x3(o,s,t))return;const l=s.getStart(t),u=Oc.SmartIndenter.findFirstNonWhitespaceColumn(lm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){const i=r.getStart(t);return Oc.SmartIndenter.findFirstNonWhitespaceColumn(lm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=BQ(r).length===0,l=Rm(this.classesWithNodesInsertedAtStart,as(r),{node:r,sourceFile:t}),u=Oa(r)&&(!Qf(t)||!s),p=Oa(r)&&Qf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":_d(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const 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){const o=this.insertNodeAfterWorker(t,r,Ha(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Jot(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,xf(r.end),w.createToken(27)),qD(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&qi(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 N.assert(qi(t)||g4(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(N.assert(!r.name),r.kind===219){const o=ys(r,39,t),s=ys(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[w.createToken(100),w.createIdentifier(i)],{joiner:" "}),Jg(this,t,o)):(this.insertText(t,Ha(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,w.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[w.createToken(19),w.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[w.createToken(27),w.createToken(20)],{joiner:" "}))}else{const o=ys(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,w.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Rf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Oc.SmartIndenter.getContainingList(r,t)){if(!o){N.fail("node is not a list element");return}const s=aR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=po(t,r.end);if(u&&zQ(r,u)){const p=o[s+1],h=hwe(t.text,p.getFullStart()),m=`${fa(u.kind)}${t.text.substring(u.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{const u=r.getStart(t),p=lm(u,t);let h,m=!1;if(o.length===1)h=28;else{const v=xc(r.pos,t);h=zQ(r,v)?v.kind:28,m=lm(o[s-1].getStart(t),t)!==p}if((Fot(t.text,r.end)||!Rf(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,xf(l),w.createToken(h));const v=Oc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options);let A=ka(t.text,l,!0,!1);for(;A!==l&&Hu(t.text.charCodeAt(A-1));)A--;this.replaceRange(t,xf(A),i,{indentation:v,prefix:this.newLineCharacter})}else this.replaceRange(t,xf(l),i,{prefix:`${fa(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,RU(r),w.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=jot(t,r);if(i!==void 0&&o!==void 0){const s=BQ(t).length===0,l=Rf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,xf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&lue(o.node,i))||(To(i)?this.deleteRange(r,DU(r,i)):P_e.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Oc.SmartIndenter.getContainingList(r,i);if(r!==Ya(o))return;const s=Bi(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:R_e(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=VQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(VQ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,h,m){return Hi(XN(u,v=>v.sourceFile.path),v=>{const A=v[0].sourceFile,I=Iy(v,(M,C)=>M.range.pos-C.range.pos||M.range.end-C.range.end);for(let M=0;M`${JSON.stringify(I[M].range)} and ${JSON.stringify(I[M+1].range)}`);const R=Hi(I,M=>{const C=sb(M.range),O=M.kind===1?jn(Pl(M.node))??M.sourceFile:M.kind===2?jn(Pl(M.nodes[0]))??M.sourceFile:M.sourceFile,U=o(M,O,A,p,h,m);if(!(C.length===U.length&&Jue(O.text,U,C.start)))return aO(C,U)});return R.length>0?{fileName:A.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,h,m){const v=i(V3(u),p,h,m);return{fileName:u,textChanges:[aO(yu(0,0),v)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,h,m){const v=Pi(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,h).text)).join(h),A=iw("any file name",v,{languageVersion:99,jsDocParsingMode:1},!0,u),I=Oc.formatDocument(A,m);return D_e(v,I)+h}e.newFileChangesWorker=i;function o(u,p,h,m,v,A){var I;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:M}}=u,C=K=>s(K,p,h,M,R,m,v,A),O=u.kind===2?u.nodes.map(K=>zx(C(K),m)).join(((I=u.options)==null?void 0:I.joiner)||m):C(u.node),U=R.indentation!==void 0||lm(M,p)===M?O:O.replace(/^\s+/,"");return(R.prefix||"")+U+(!R.suffix||Al(U,R.suffix)?"":R.suffix)}function s(u,p,h,m,{indentation:v,prefix:A,delta:I},R,M,C){const{node:O,text:U}=l(u,p,R);C&&C(O,U);const K=A5(M,p),Z=v!==void 0?v:Oc.SmartIndenter.getIndentation(m,h,K,A===R||lm(m,p)===m);I===void 0&&(I=Oc.SmartIndenter.shouldIndentChildNode(K,u)&&K.indentSize||0);const V={text:U,getLineAndCharacterOfPosition(G){return bs(this,G)}},se=Oc.formatNodeGivenIndentation(O,V,p.languageVariant,Z,I,{...M,options:K});return D_e(U,se)}function l(u,p,h){const m=gwe(h),v=vO(h);return L0({newLine:v,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,u,p,m),{text:m.getText(),node:GQ(u)}}e.getNonformattedText=l})(VQ||(VQ={})),bwe={...qP,factory:Dk(qP.factory.flags|1,qP.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{const I=p.parent;Gs(I)&&I.parameters.length===1&&!ys(I,21,u)?s.replaceNodeWithText(u,p,"()"):n8(s,l,u,p);break}case 272:case 271:const h=u.imports.length&&p===Ha(u.imports).parent||p===An(u.statements,ES);Jg(s,u,p,{leadingTriviaOption:h?0:Fp(p)?2:3});break;case 208:const m=p.parent;m.kind===207&&p!==Ya(m.elements)?Jg(s,u,p):n8(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:n8(s,l,u,p);break;case 276:const A=p.parent;A.elements.length===1?i(s,u,A):n8(s,l,u,p);break;case 274:i(s,u,p);break;case 27:Jg(s,u,p,{trailingTriviaOption:0});break;case 100:Jg(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:Jg(s,u,p,{leadingTriviaOption:Fp(p)?2:3});break;default:p.parent?Eh(p.parent)&&p.parent.name===p?r(s,u,p.parent):sa(p.parent)&&Nr(p.parent.arguments,p)?n8(s,l,u,p):Jg(s,u,p):Jg(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Jg(s,l,u.parent);else{const p=u.name.getStart(l),h=po(l,u.name.end);if(h&&h.kind===28){const m=ka(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else Jg(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const p=N.checkDefined(po(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{const p=v0(u,272);Jg(s,l,p)}}function o(s,l,u,p){const{parent:h}=p;if(h.kind===299){s.deleteNodeRange(u,ys(h,21,u),ys(h,22,u));return}if(h.declarations.length!==1){n8(s,l,u,p);return}const m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(u,p,w.createObjectLiteralExpression());break;case 248:Jg(s,u,h);break;case 243:Jg(s,u,m,{leadingTriviaOption:Fp(m)?2:3});break;default:N.assertNever(m)}}})(P_e||(P_e={}))}}),_r={};X(_r,{ChangeTracker:()=>vwe,LeadingTriviaOption:()=>N_e,TrailingTriviaOption:()=>C_e,applyChanges:()=>D_e,assignPositionsToNode:()=>GQ,createWriter:()=>gwe,deleteNode:()=>Jg,isThisTypeAnnotatable:()=>zot,isValidLocationToAddComment:()=>ywe});var Xot=T({"src/services/_namespaces/ts.textChanges.ts"(){Kot()}}),M_e,L_e,Yot=T({"src/services/formatting/formattingContext.ts"(){si(),M_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))(M_e||{}),L_e=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=N.checkDefined(e),this.currentTokenParent=N.checkDefined(t),this.nextTokenSpan=N.checkDefined(r),this.nextTokenParent=N.checkDefined(i),this.contextNode=N.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){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=ys(e,19,this.sourceFile),r=ys(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function k_e(e,t,r,i,o){const s=t===1?Swe:Ewe;s.setText(e),s.resetTokenState(r);let l=!0,u,p,h,m,v;const A=o({advance:I,readTokenInfo:V,readEOFTokenRange:G,isOnToken:ne,isOnEOF:he,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:$,skipToStartOf:Y,getTokenFullStart:()=>v?.token.pos??s.getTokenStart(),getStartPos:()=>v?.token.pos??s.getTokenStart()});return v=void 0,s.setText(void 0),A;function I(){v=void 0,s.getTokenFullStart()!==r?l=!!p&&Ya(p).kind===4:s.scan(),u=void 0,p=void 0;let fe=s.getTokenFullStart();for(;fe(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))(w_e||{}),O_e=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(O_e||{})}});function Twe(){const e=[];for(let se=0;se<=165;se++)se!==1&&e.push(se);function t(...se){return{tokens:e.filter(G=>!se.some(ne=>ne===G)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=IM([...e,3]),o=IM([...e,1]),s=Iwe(83,165),l=Iwe(30,79),u=[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],v=[80,22,24,105],A=[80,21,110,105],I=[80,22,24,105],R=[2,3],M=[80,...x5],C=i,O=IM([80,32,3,86,95,102]),U=IM([22,3,92,113,98,93,85]),K=[Yr("IgnoreBeforeComment",r,R,Nz,1),Yr("IgnoreAfterLineComment",2,r,Nz,1),Yr("NotSpaceBeforeColon",r,59,[Ki,Cz,Dwe],16),Yr("SpaceAfterColon",59,r,[Ki,Cz,_at],4),Yr("NoSpaceBeforeQuestionMark",r,58,[Ki,Cz,Dwe],16),Yr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ki,nat],4),Yr("NoSpaceAfterQuestionMark",58,r,[Ki,tat],16),Yr("NoSpaceBeforeDot",r,[25,29],[Ki,Dat],16),Yr("NoSpaceAfterDot",[25,29],r,[Ki],16),Yr("NoSpaceBetweenImportParenInImportType",102,21,[Ki,fat],16),Yr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ki,Cz],16),Yr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ki],16),Yr("NoSpaceAfterUnaryPredecrementOperator",47,A,[Ki],16),Yr("NoSpaceBeforeUnaryPostincrementOperator",v,46,[Ki,Uwe],16),Yr("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[Ki,Uwe],16),Yr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ki,ub],4),Yr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ki,ub],4),Yr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ki,ub],4),Yr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ki,ub],4),Yr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ki,ub],4),Yr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ki,ub],4),Yr("NoSpaceAfterCloseBrace",20,[28,27],[Ki],16),Yr("NewLineBeforeCloseBraceInBlockContext",i,20,[Cwe],8),Yr("SpaceAfterCloseBrace",20,t(22),[Ki,oat],4),Yr("SpaceBetweenCloseBraceAndElse",20,93,[Ki],4),Yr("SpaceBetweenCloseBraceAndWhile",20,117,[Ki],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ki,Owe],16),Yr("SpaceAfterConditionalClosingParen",22,23,[Pz],4),Yr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Lwe],16),Yr("SpaceAfterStarInGeneratorDeclaration",42,80,[Lwe],4),Yr("SpaceAfterFunctionInFuncDecl",100,r,[dT],4),Yr("NewLineAfterOpenBraceInBlockContext",19,r,[Cwe],8),Yr("SpaceAfterGetSetInMember",[139,153],80,[dT],4),Yr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ki,jwe],16),Yr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ki,jwe],4),Yr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ki],16),Yr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ki],4),Yr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ki,yat],4),Yr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ki,lat,cat],16),Yr("SpaceBeforeBinaryKeywordOperator",r,u,[Ki,ub],4),Yr("SpaceAfterBinaryKeywordOperator",u,r,[Ki,ub],4),Yr("SpaceAfterVoidOperator",116,r,[Ki,Tat],4),Yr("SpaceBetweenAsyncAndOpenParen",134,21,[pat,Ki],4),Yr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ki],4),Yr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ki],16),Yr("SpaceBeforeJsxAttribute",r,80,[mat,Ki],4),Yr("SpaceBeforeSlashInJsxOpeningElement",r,44,[Bwe,Ki],4),Yr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Bwe,Ki],16),Yr("NoSpaceBeforeEqualInJsxAttribute",r,64,[Fwe,Ki],16),Yr("NoSpaceAfterEqualInJsxAttribute",64,r,[Fwe,Ki],16),Yr("NoSpaceBeforeJsxNamespaceColon",80,59,[zwe],16),Yr("NoSpaceAfterJsxNamespaceColon",59,80,[zwe],16),Yr("NoSpaceAfterModuleImport",[144,149],21,[Ki],16),Yr("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,[Ki],4),Yr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ki],4),Yr("SpaceAfterModuleName",11,19,[vat],4),Yr("SpaceBeforeArrow",r,39,[Ki],4),Yr("SpaceAfterArrow",39,r,[Ki],4),Yr("NoSpaceAfterEllipsis",26,80,[Ki],16),Yr("NoSpaceAfterOptionalParameters",58,[22,28],[Ki,Cz],16),Yr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ki,bat],16),Yr("NoSpaceBeforeOpenAngularBracket",M,30,[Ki,Mz],16),Yr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ki,Mz],16),Yr("NoSpaceAfterOpenAngularBracket",30,r,[Ki,Mz],16),Yr("NoSpaceBeforeCloseAngularBracket",r,32,[Ki,Mz],16),Yr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ki,Mz,iat,Sat],16),Yr("SpaceBeforeAt",[22,80],60,[Ki],4),Yr("NoSpaceAfterAt",60,r,[Ki],16),Yr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[gat],4),Yr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ki,Aat],16),Yr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ki,Eat],16),Yr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ki],4)],Z=[Yr("SpaceAfterConstructor",137,21,[pf("insertSpaceAfterConstructor"),Ki],4),Yr("NoSpaceAfterConstructor",137,21,[V_("insertSpaceAfterConstructor"),Ki],16),Yr("SpaceAfterComma",28,r,[pf("insertSpaceAfterCommaDelimiter"),Ki,j_e,uat,dat],4),Yr("NoSpaceAfterComma",28,r,[V_("insertSpaceAfterCommaDelimiter"),Ki,j_e],16),Yr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[pf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),dT],4),Yr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[V_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),dT],16),Yr("SpaceAfterKeywordInControl",s,21,[pf("insertSpaceAfterKeywordsInControlFlowStatements"),Pz],4),Yr("NoSpaceAfterKeywordInControl",s,21,[V_("insertSpaceAfterKeywordsInControlFlowStatements"),Pz],16),Yr("SpaceAfterOpenParen",21,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],4),Yr("SpaceBeforeCloseParen",r,22,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],4),Yr("SpaceBetweenOpenParens",21,21,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],4),Yr("NoSpaceBetweenParens",21,22,[Ki],16),Yr("NoSpaceAfterOpenParen",21,r,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],16),Yr("NoSpaceBeforeCloseParen",r,22,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ki],16),Yr("SpaceAfterOpenBracket",23,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],4),Yr("SpaceBeforeCloseBracket",r,24,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],4),Yr("NoSpaceBetweenBrackets",23,24,[Ki],16),Yr("NoSpaceAfterOpenBracket",23,r,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],16),Yr("NoSpaceBeforeCloseBracket",r,24,[V_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ki],16),Yr("SpaceAfterOpenBrace",19,r,[Rwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Nwe],4),Yr("SpaceBeforeCloseBrace",r,20,[Rwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Nwe],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ki,Owe],16),Yr("NoSpaceAfterOpenBrace",19,r,[W_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ki],16),Yr("NoSpaceBeforeCloseBrace",r,20,[W_e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ki],16),Yr("SpaceBetweenEmptyBraceBrackets",19,20,[pf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Yr("NoSpaceBetweenEmptyBraceBrackets",19,20,[W_e("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ki],16),Yr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Wwe],4,1),Yr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ki],4),Yr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[V_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Wwe],16,1),Yr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[V_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ki],16),Yr("SpaceAfterOpenBraceInJsxExpression",19,r,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,UQ],4),Yr("SpaceBeforeCloseBraceInJsxExpression",r,20,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,UQ],4),Yr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[V_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,UQ],16),Yr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[V_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ki,UQ],16),Yr("SpaceAfterSemicolonInFor",27,r,[pf("insertSpaceAfterSemicolonInForStatements"),Ki,z_e],4),Yr("NoSpaceAfterSemicolonInFor",27,r,[V_("insertSpaceAfterSemicolonInForStatements"),Ki,z_e],16),Yr("SpaceBeforeBinaryOperator",r,l,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],4),Yr("SpaceAfterBinaryOperator",l,r,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],4),Yr("NoSpaceBeforeBinaryOperator",r,l,[V_("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],16),Yr("NoSpaceAfterBinaryOperator",l,r,[V_("insertSpaceBeforeAndAfterBinaryOperators"),Ki,ub],16),Yr("SpaceBeforeOpenParenInFuncDecl",r,21,[pf("insertSpaceBeforeFunctionParenthesis"),Ki,dT],4),Yr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[V_("insertSpaceBeforeFunctionParenthesis"),Ki,dT],16),Yr("NewLineBeforeOpenBraceInControl",U,19,[pf("placeOpenBraceOnNewLineForControlBlocks"),Pz,V_e],8,1),Yr("NewLineBeforeOpenBraceInFunction",C,19,[pf("placeOpenBraceOnNewLineForFunctions"),dT,V_e],8,1),Yr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[pf("placeOpenBraceOnNewLineForFunctions"),kwe,V_e],8,1),Yr("SpaceAfterTypeAssertion",32,r,[pf("insertSpaceAfterTypeAssertion"),Ki,H_e],4),Yr("NoSpaceAfterTypeAssertion",32,r,[V_("insertSpaceAfterTypeAssertion"),Ki,H_e],16),Yr("SpaceBeforeTypeAnnotation",r,[58,59],[pf("insertSpaceBeforeTypeAnnotation"),Ki,B_e],4),Yr("NoSpaceBeforeTypeAnnotation",r,[58,59],[V_("insertSpaceBeforeTypeAnnotation"),Ki,B_e],16),Yr("NoOptionalSemicolon",27,o,[xwe("semicolons","remove"),xat],32),Yr("OptionalSemicolon",r,o,[xwe("semicolons","insert"),Rat],64)],V=[Yr("NoSpaceBeforeSemicolon",r,27,[Ki],16),Yr("SpaceBeforeOpenBraceInControl",U,19,[F_e("placeOpenBraceOnNewLineForControlBlocks"),Pz,U_e,G_e],4,1),Yr("SpaceBeforeOpenBraceInFunction",C,19,[F_e("placeOpenBraceOnNewLineForFunctions"),dT,jQ,U_e,G_e],4,1),Yr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[F_e("placeOpenBraceOnNewLineForFunctions"),kwe,U_e,G_e],4,1),Yr("NoSpaceBeforeComma",r,28,[Ki],16),Yr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ki],16),Yr("NoSpaceAfterCloseBracket",24,r,[Ki,hat],16),Yr("SpaceAfterSemicolon",27,r,[Ki],4),Yr("SpaceBetweenForAndAwaitKeyword",99,135,[Ki],4),Yr("SpaceBetweenStatements",[22,92,93,84],r,[Ki,j_e,Zot],4),Yr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ki],4)];return[...K,...Z,...V]}function Yr(e,t,r,i,o,s=0){return{leftTokenRange:Awe(t),rightTokenRange:Awe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function IM(e){return{tokens:e,isSpecific:!0}}function Awe(e){return typeof e=="number"?IM([e]):To(e)?IM(e):e}function Iwe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Nr(r,o)||i.push(o);return IM(i)}function xwe(e,t){return r=>r.options&&r.options[e]===t}function pf(e){return t=>t.options&&xs(t.options,e)&&!!t.options[e]}function W_e(e){return t=>t.options&&xs(t.options,e)&&!t.options[e]}function V_(e){return t=>!t.options||!xs(t.options,e)||!t.options[e]}function F_e(e){return t=>!t.options||!xs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Rwe(e){return t=>!t.options||!xs(t.options,e)||!!t.options[e]}function z_e(e){return e.contextNode.kind===248}function Zot(e){return!z_e(e)}function ub(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 Cz(e){return!ub(e)}function Dwe(e){return!B_e(e)}function B_e(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||NA(t)}function eat(e){return Jo(e.contextNode)&&e.contextNode.questionToken}function tat(e){return!eat(e)}function nat(e){return e.contextNode.kind===227||e.contextNode.kind===194}function G_e(e){return e.TokensAreOnSameLine()||jQ(e)}function Nwe(e){return e.contextNode.kind===206||e.contextNode.kind===200||rat(e)}function V_e(e){return jQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Cwe(e){return Pwe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function rat(e){return Pwe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Pwe(e){return Mwe(e.contextNode)}function jQ(e){return Mwe(e.nextTokenParent)}function Mwe(e){if(wwe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function dT(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 iat(e){return!dT(e)}function Lwe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function kwe(e){return wwe(e.contextNode)}function wwe(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 oat(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function Pz(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 Owe(e){return e.contextNode.kind===210}function aat(e){return e.contextNode.kind===213}function sat(e){return e.contextNode.kind===214}function lat(e){return aat(e)||sat(e)}function cat(e){return e.currentTokenSpan.kind!==28}function uat(e){return e.nextTokenSpan.kind!==24}function dat(e){return e.nextTokenSpan.kind!==22}function pat(e){return e.contextNode.kind===219}function fat(e){return e.contextNode.kind===205}function Ki(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function Wwe(e){return e.contextNode.kind!==12}function j_e(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function UQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function mat(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function Fwe(e){return e.contextNode.kind===291}function _at(e){return e.nextTokenParent.kind!==295}function zwe(e){return e.nextTokenParent.kind===295}function Bwe(e){return e.contextNode.kind===285}function hat(e){return!dT(e)&&!jQ(e)}function gat(e){return e.TokensAreOnSameLine()&&If(e.contextNode)&&Gwe(e.currentTokenParent)&&!Gwe(e.nextTokenParent)}function Gwe(e){for(;e&&vt(e);)e=e.parent;return e&&e.kind===170}function yat(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function U_e(e){return e.formattingRequestKind!==2}function vat(e){return e.contextNode.kind===267}function bat(e){return e.contextNode.kind===187}function Eat(e){return e.contextNode.kind===180}function Vwe(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 Mz(e){return Vwe(e.currentTokenSpan,e.currentTokenParent)||Vwe(e.nextTokenSpan,e.nextTokenParent)}function H_e(e){return e.contextNode.kind===216}function Sat(e){return!H_e(e)}function Tat(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function jwe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function Aat(e){return e.contextNode.kind===235}function Uwe(e){return!Iat(e)}function Iat(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function xat(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(AR(t)){const s=e.nextTokenParent===e.currentTokenParent?v1(e.currentTokenParent,Gn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const 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?!yp(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 Rat(e){return _5(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Dat(e){return!Wr(e.contextNode)||!gp(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Nat=T({"src/services/formatting/rules.ts"(){si(),o8()}});function Cat(e,t){return{options:e,getRules:Pat(),host:t}}function Pat(){return q_e===void 0&&(q_e=Lat(Twe())),q_e}function Mat(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function Lat(e){const t=kat(e);return r=>{const i=t[Hwe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~Mat(s);l.action&u&&Zn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function kat(e){const t=new Array(HQ*HQ),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=Hwe(s,l);let p=t[u];p===void 0&&(p=t[u]=[]),wat(p,i.rule,o,r,u)}}return t}function Hwe(e,t){return N.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*HQ+t}function wat(e,t,r,i,o){const s=t.action&3?r?0:xM.StopRulesAny:t.context!==Nz?r?xM.ContextRulesSpecific:xM.ContextRulesAny:r?xM.NoContextRulesSpecific:xM.NoContextRulesAny,l=i[o]||0;e.splice(Oat(l,s),0,t),i[o]=Wat(l,s)}function Oat(e,t){let r=0;for(let i=0;i<=t;i+=JD)r+=e&Lz,e>>=JD;return r}function Wat(e,t){const r=(e>>t&Lz)+1;return N.assert((r&Lz)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Lz<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=JD*1]="StopRulesAny",e[e.ContextRulesSpecific=JD*2]="ContextRulesSpecific",e[e.ContextRulesAny=JD*3]="ContextRulesAny",e[e.NoContextRulesSpecific=JD*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=JD*5]="NoContextRulesAny",e))(xM||{})}});function qQ(e,t,r){const i={pos:e,end:t,kind:r};return N.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>N.formatSyntaxKind(r)}),i}function zat(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=EL(i,t);for(;A_(t.text.charCodeAt(o));)o--;Hu(t.text.charCodeAt(o))&&o--;const s={pos:Gv(i-1,t),end:o+1};return kz(s,t,r,2)}function Bat(e,t,r){const i=J_e(e,27,t);return qwe(K_e(i),t,r,3)}function Gat(e,t,r){const i=J_e(e,19,t);if(!i)return[];const o=i.parent,s=K_e(o),l={pos:lm(s.getStart(t),t),end:e};return kz(l,t,r,4)}function Vat(e,t,r){const i=J_e(e,20,t);return qwe(K_e(i),t,r,5)}function jat(e,t){const r={pos:0,end:e.text.length};return kz(r,e,t,0)}function Uat(e,t,r,i){const o={pos:lm(e,r),end:t};return kz(o,r,i,1)}function J_e(e,t,r){const i=xc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function K_e(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Hat(t.parent,t);)t=t.parent;return t}function Hat(e,t){switch(e.kind){case 263:case 264:return cf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&cf(r.statements,t);case 312:case 241:case 268:return cf(e.statements,t);case 299:return cf(e.block.statements,t)}return!1}function qat(e,t){return r(t);function r(i){const o=Ho(i,s=>VK(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function Jat(e,t){if(!e.length)return o;const 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;const l=r[i];if(s.end<=l.start)return!1;if(H7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Kat(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=xc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Xat(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(j_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Yat(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return k_e(t.text,r,l.pos,l.end,u=>Jwe(l,e,i,o,u,s,1,p=>!1,t))}function qwe(e,t,r,i){if(!e)return[];const o={pos:lm(e.getStart(t),t),end:e.end};return kz(o,t,r,i)}function kz(e,t,r,i){const o=qat(e,t);return k_e(t.text,t.languageVariant,Kat(o,e,t),e.end,s=>Jwe(e,o,j_.getIndentationForNode(o,e,t,r.options),Xat(o,r.options,t),s,r,i,Jat(t.parseDiagnostics,e),t))}function Jwe(e,t,r,i,o,{options:s,getRules:l,host:u},p,h,m){var v;const A=new L_e(m,p,s);let I,R,M,C,O,U=-1;const K=[];if(o.advance(),o.isOnToken()){const Se=m.getLineAndCharacterOfPosition(t.getStart(m)).line;let je=Se;If(t)&&(je=m.getLineAndCharacterOfPosition(sj(t,m)).line),he(t,t,Se,je,r,i)}const Z=o.getCurrentLeadingTrivia();if(Z){const Se=j_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;ve(Z,Se,!0,je=>{Y(je,m.getLineAndCharacterOfPosition(je.pos),t,t,void 0),fe(je.pos,Se,!1)}),s.trimTrailingWhitespace!==!1&&Ue(Z)}if(R&&o.getTokenFullStart()>=e.end){const Se=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Se&&Se.pos===I){const je=((v=xc(Se.end,m,t))==null?void 0:v.parent)||M;oe(Se,m.getLineAndCharacterOfPosition(Se.pos).line,je,R,C,M,je,void 0)}}return K;function V(Se,je,at,Gt,yt){if(rM(Gt,Se,je)||nO(Gt,Se,je)){if(yt!==-1)return yt}else{const $e=m.getLineAndCharacterOfPosition(Se).line,It=lm(Se,m),tn=j_.findFirstNonWhitespaceColumn(It,Se,m,s);if($e!==at||Se===tn){const rn=j_.getBaseIndentation(s);return rn>tn?rn:tn}}return-1}function se(Se,je,at,Gt,yt,$e){const It=j_.shouldIndentChildNode(s,Se)?s.indentSize:0;return $e===je?{indentation:je===O?U:yt.getIndentation(),delta:Math.min(s.indentSize,yt.getDelta(Se)+It)}:at===-1?Se.kind===21&&je===O?{indentation:U,delta:yt.getDelta(Se)}:j_.childStartsOnTheSameLineWithElseInIfStatement(Gt,Se,je,m)||j_.childIsUnindentedBranchOfConditionalExpression(Gt,Se,je,m)||j_.argumentStartsOnSameLineAsPreviousArgument(Gt,Se,je,m)?{indentation:yt.getIndentation(),delta:It}:{indentation:yt.getIndentation()+yt.getDelta(Se),delta:It}:{indentation:at,delta:It}}function G(Se){if(Cm(Se)){const je=An(Se.modifiers,Ia,Br(Se.modifiers,Eu));if(je)return je.kind}switch(Se.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(Se.asteriskToken)return 42;case 172:case 169:const je=Mo(Se);if(je)return je.kind}}function ne(Se,je,at,Gt){return{getIndentationForComment:(It,tn,rn)=>{switch(It){case 20:case 24:case 22:return at+$e(rn)}return tn!==-1?tn:at},getIndentationForToken:(It,tn,rn,Pn)=>!Pn&&yt(It,tn,rn)?at+$e(rn):at,getIndentation:()=>at,getDelta:$e,recomputeIndentation:(It,tn)=>{j_.shouldIndentChildNode(s,tn,Se,m)&&(at+=It?s.indentSize:-s.indentSize,Gt=j_.shouldIndentChildNode(s,Se)?s.indentSize:0)}};function yt(It,tn,rn){switch(tn){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(rn.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(rn.kind!==200)return!1;break}return je!==It&&!(If(Se)&&tn===G(Se))}function $e(It){return j_.nodeWillIndentChild(s,Se,It,m,!0)?Gt:0}}function he(Se,je,at,Gt,yt,$e){if(!rM(e,Se.getStart(m),Se.getEnd()))return;const It=ne(Se,at,yt,$e);let tn=je;for(Ho(Se,hn=>{rn(hn,-1,Se,It,at,Gt,!1)},hn=>{Pn(hn,Se,at,It)});o.isOnToken()&&o.getTokenFullStart()Math.min(Se.end,e.end))break;Xn(hn,Se,It,Se)}function rn(hn,Qt,$t,_i,ao,Oi,No,Mn){if(N.assert(!$s(hn)),zl(hn)||Hre($t,hn))return Qt;const Di=hn.getStart(m),Ar=m.getLineAndCharacterOfPosition(Di).line;let sn=Ar;If(hn)&&(sn=m.getLineAndCharacterOfPosition(sj(hn,m)).line);let tt=-1;if(No&&cf(e,$t)&&(tt=V(Di,hn.end,ao,e,Qt),tt!==-1&&(Qt=tt)),!rM(e,hn.pos,hn.end))return hn.ende.end)return Qt;if(li.token.end>Di){li.token.pos>Di&&o.skipToStartOf(hn);break}Xn(li,Se,_i,Se)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return Qt;if(RA(hn)){const li=o.readTokenInfo(hn);if(hn.kind!==12)return N.assert(li.token.end===hn.end,"Token end is child end"),Xn(li,Se,_i,hn),Qt}const Bt=hn.kind===170?Ar:Oi,Rn=se(hn,Ar,tt,Se,_i,Bt);return he(hn,tn,Ar,sn,Rn.indentation,Rn.delta),tn=Se,Mn&&$t.kind===209&&Qt===-1&&(Qt=Rn.indentation),Qt}function Pn(hn,Qt,$t,_i){N.assert(ME(hn)),N.assert(!$s(hn));const ao=$at(Qt,hn);let Oi=_i,No=$t;if(!rM(e,hn.pos,hn.end)){hn.endhn.pos)break;if(Ar.token.kind===ao){No=m.getLineAndCharacterOfPosition(Ar.token.pos).line,Xn(Ar,Qt,_i,Qt);let sn;if(U!==-1)sn=U;else{const tt=lm(Ar.token.pos,m);sn=j_.findFirstNonWhitespaceColumn(tt,Ar.token.pos,m,s)}Oi=ne(Qt,$t,sn,s.indentSize)}else Xn(Ar,Qt,_i,Qt)}let Mn=-1;for(let Ar=0;Arfe(Rn.pos,Bt,!1))}sn!==-1&&tt&&(fe(hn.token.pos,sn,Mn===1),O=Ar.line,U=sn)}o.advance(),tn=Qt}}function ve(Se,je,at,Gt){for(const yt of Se){const $e=cf(e,yt);switch(yt.kind){case 3:$e&&ie(yt,je,!at),at=!1;break;case 2:at&&$e&&Gt(yt),at=!1;break;case 4:at=!0;break}}return at}function $(Se,je,at,Gt){for(const yt of Se)if(Z7(yt.kind)&&cf(e,yt)){const $e=m.getLineAndCharacterOfPosition(yt.pos);Y(yt,$e,je,at,Gt)}}function Y(Se,je,at,Gt,yt){const $e=h(Se);let It=0;if(!$e)if(R)It=oe(Se,je.line,at,R,C,M,Gt,yt);else{const tn=m.getLineAndCharacterOfPosition(e.pos);ye(tn.line,je.line)}return R=Se,I=Se.end,M=at,C=je.line,It}function oe(Se,je,at,Gt,yt,$e,It,tn){A.updateContext(Gt,$e,Se,at,It);const rn=l(A);let Pn=A.options.trimTrailingWhitespace!==!1,Xn=0;return rn?Ft(rn,hn=>{if(Xn=At(hn,Gt,yt,Se,je),tn)switch(Xn){case 2:at.getStart(m)===Se.pos&&tn.recomputeIndentation(!1,It);break;case 1:at.getStart(m)===Se.pos&&tn.recomputeIndentation(!0,It);break;default:N.assert(Xn===0)}Pn=Pn&&!(hn.action&16)&&hn.flags!==1}):Pn=Pn&&Se.kind!==1,je!==yt&&Pn&&ye(yt,je,Gt),Xn}function fe(Se,je,at){const Gt=X_e(je,s);if(at)Pe(Se,0,Gt);else{const yt=m.getLineAndCharacterOfPosition(Se),$e=Gv(yt.line,m);(je!==Ne($e,yt.character)||pe(Gt,$e))&&Pe($e,yt.character,Gt)}}function Ne(Se,je){let at=0;for(let Gt=0;Gt0){const Oi=X_e(ao,s);Pe($t,_i.character,Oi)}else De($t,_i.character)}}function ye(Se,je,at){for(let Gt=Se;Gt$e)continue;const It=Me(yt,$e);It!==-1&&(N.assert(It===yt||!A_(m.text.charCodeAt(It-1))),De(It,$e+1-It))}}function Me(Se,je){let at=je;for(;at>=Se&&A_(m.text.charCodeAt(at));)at--;return at!==je?at+1:-1}function Ue(Se){let je=R?R.end:e.pos;for(const at of Se)Z7(at.kind)&&(jetO(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function $at(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 Qat(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function X_e(e,t){if((!JQ||JQ.tabSize!==t.tabSize||JQ.indentSize!==t.indentSize)&&(JQ={tabSize:t.tabSize,indentSize:t.indentSize},r8=i8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return i8||(i8=[]),i8[o]===void 0?(i=lO(" ",t.indentSize*o),i8[o]=i):i=i8[o],s?i+lO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return r8||(r8=[]),r8[i]===void 0?r8[i]=s=lO(" ",i):s=r8[i],o?s+lO(" ",o):s}}var JQ,r8,i8,Zat=T({"src/services/formatting/formatting.ts"(){si(),o8()}}),j_,est=T({"src/services/formatting/smartIndenter.ts"(){si(),o8(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ye,Me,Ue=!1){if(ie>ye.text.length)return u(Me);if(Me.indentStyle===0)return 0;const Ee=xc(ie,ye,void 0,!0),De=Kwe(ye,ie,Ee||null);if(De&&De.kind===3)return i(ye,ie,Me,De);if(!Ee)return u(Me);if(XK(Ee.kind)&&Ee.getStart(ye)<=ie&&ie=0),Ee<=De)return Y(Gv(De,ie),ye,ie,Me);const Pe=Gv(Ee,ie),{column:We,character:At}=$(Pe,ye,ie,Me);return We===0?We:ie.text.charCodeAt(Pe+At)===42?We-1:We}function o(ie,ye,Me){let Ue=ye;for(;Ue>0;){const De=ie.text.charCodeAt(Ue);if(!Mg(De))break;Ue--}const Ee=lm(Ue,ie);return Y(Ee,Ue,ie,Me)}function s(ie,ye,Me,Ue,Ee,De){let Pe,We=Me;for(;We;){if(jK(We,ye,ie)&&Ne(De,We,Pe,ie,!0)){const Se=R(We,ie),je=I(Me,We,Ue,ie),at=je!==0?Ee&&je===2?De.indentSize:0:Ue!==Se.line?De.indentSize:0;return p(We,Se,void 0,at,ie,!0,De)}const At=ne(We,ie,De,!0);if(At!==-1)return At;Pe=We,We=We.parent}return u(De)}function l(ie,ye,Me,Ue){const Ee=Me.getLineAndCharacterOfPosition(ie.getStart(Me));return p(ie,Ee,ye,0,Me,!1,Ue)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ye,Me,Ue,Ee,De,Pe){var We;let At=ie.parent;for(;At;){let Se=!0;if(Me){const yt=ie.getStart(Ee);Se=ytMe.end}const je=h(At,ie,Ee),at=je.line===ye.line||C(At,ie,ye.line,Ee);if(Se){const yt=(We=K(ie,Ee))==null?void 0:We[0],$e=!!yt&&R(yt,Ee).line>je.line;let It=ne(ie,Ee,Pe,$e);if(It!==-1||(It=v(ie,At,ye,at,Ee,Pe),It!==-1))return It+Ue}Ne(Pe,At,ie,Ee,De)&&!at&&(Ue+=Pe.indentSize);const Gt=M(At,ie,ye.line,Ee);ie=At,At=ie.parent,ye=Gt?Ee.getLineAndCharacterOfPosition(ie.getStart(Ee)):je}return Ue+u(Pe)}function h(ie,ye,Me){const Ue=K(ye,Me),Ee=Ue?Ue.pos:ie.getStart(Me);return Me.getLineAndCharacterOfPosition(Ee)}function m(ie,ye,Me){const Ue=cue(ie);return Ue&&Ue.listItemIndex>0?he(Ue.list.getChildren(),Ue.listItemIndex-1,ye,Me):-1}function v(ie,ye,Me,Ue,Ee,De){return(Ju(ie)||hL(ie))&&(ye.kind===312||!Ue)?ve(Me,Ee,De):-1}let A;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(A||(A={}));function I(ie,ye,Me,Ue){const Ee=v1(ie,ye,Ue);if(!Ee)return 0;if(Ee.kind===19)return 1;if(Ee.kind===20){const De=R(Ee,Ue).line;return Me===De?2:0}return 0}function R(ie,ye){return ye.getLineAndCharacterOfPosition(ie.getStart(ye))}function M(ie,ye,Me,Ue){if(!(sa(ie)&&Nr(ie.arguments,ye)))return!1;const Ee=ie.expression.getEnd();return bs(Ue,Ee).line===Me}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function C(ie,ye,Me,Ue){if(ie.kind===245&&ie.elseStatement===ye){const Ee=ys(ie,93,Ue);return N.assert(Ee!==void 0),R(Ee,Ue).line===Me}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=C;function O(ie,ye,Me,Ue){if(KR(ie)&&(ye===ie.whenTrue||ye===ie.whenFalse)){const Ee=bs(Ue,ie.condition.end).line;if(ye===ie.whenTrue)return Me===Ee;{const De=R(ie.whenTrue,Ue).line,Pe=bs(Ue,ie.whenTrue.end).line;return Ee===De&&Pe===Me}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function U(ie,ye,Me,Ue){if(I_(ie)){if(!ie.arguments)return!1;const Ee=An(ie.arguments,At=>At.pos===ye.pos);if(!Ee)return!1;const De=ie.arguments.indexOf(Ee);if(De===0)return!1;const Pe=ie.arguments[De-1],We=bs(Ue,Pe.getEnd()).line;if(Me===We)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function K(ie,ye){return ie.parent&&V(ie.getStart(ye),ie.getEnd(),ie.parent,ye)}e.getContainingList=K;function Z(ie,ye,Me){return ye&&V(ie,ie,ye,Me)}function V(ie,ye,Me,Ue){switch(Me.kind){case 183:return Ee(Me.typeArguments);case 210:return Ee(Me.properties);case 209:return Ee(Me.elements);case 187:return Ee(Me.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ee(Me.typeParameters)||Ee(Me.parameters);case 177:return Ee(Me.parameters);case 263:case 231:case 264:case 265:case 352:return Ee(Me.typeParameters);case 214:case 213:return Ee(Me.typeArguments)||Ee(Me.arguments);case 261:return Ee(Me.declarations);case 275:case 279:return Ee(Me.elements);case 206:case 207:return Ee(Me.elements)}function Ee(De){return De&&nO(se(Me,De,Ue),ie,ye)?De:void 0}}function se(ie,ye,Me){const Ue=ie.getChildren(Me);for(let Ee=1;Ee=0&&ye=0;Pe--){if(ie[Pe].kind===28)continue;if(Me.getLineAndCharacterOfPosition(ie[Pe].end).line!==De.line)return ve(De,Me,Ue);De=R(ie[Pe],Me)}return-1}function ve(ie,ye,Me){const Ue=ye.getPositionOfLineAndCharacter(ie.line,0);return Y(Ue,Ue+ie.character,ye,Me)}function $(ie,ye,Me,Ue){let Ee=0,De=0;for(let Pe=ie;PeL_e,FormattingRequestKind:()=>M_e,RuleAction:()=>w_e,RuleFlags:()=>O_e,SmartIndenter:()=>j_,anyContext:()=>Nz,createTextRangeWithKind:()=>qQ,formatDocument:()=>jat,formatNodeGivenIndentation:()=>Yat,formatOnClosingCurly:()=>Vat,formatOnEnter:()=>zat,formatOnOpeningCurly:()=>Gat,formatOnSemicolon:()=>Bat,formatSelection:()=>Uat,getAllRules:()=>Twe,getFormatContext:()=>Cat,getFormattingScanner:()=>k_e,getIndentationString:()=>X_e,getRangeOfEnclosingComment:()=>Kwe});var o8=T({"src/services/_namespaces/ts.formatting.ts"(){Yot(),$ot(),Qot(),Nat(),Fat(),Zat(),est()}}),si=T({"src/services/_namespaces/ts.ts"(){ra(),Kw(),sqe(),Pqe(),wqe(),SDe(),Jqe(),Kqe(),tJe(),dJe(),pJe(),mJe(),SJe(),TJe(),UYe(),HYe(),KYe(),m$e(),h$e(),xa(),Jme(),a_e(),qrt(),$rt(),mit(),qDe(),fNe(),wit(),jit(),Rh(),$it(),Iot(),Lot(),Wot(),Xot(),o8()}});function tst(){return $we??($we=new vm(Re))}function Xwe(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?` ${sg(o,[e])}`:"",s}function nst(e,t,r,i){const o=Xwe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function rst(e,t,r,i){let o=!1;return()=>{Ywe&&!o&&(N.log.warn(Xwe(e,!1,t,r,i)),o=!0)}}function ist(e,t={}){const r=typeof t.typeScriptVersion=="string"?new vm(t.typeScriptVersion):t.typeScriptVersion??tst(),i=typeof t.errorAfter=="string"?new vm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new vm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new vm(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?nst(e,i,s,t.message):u?rst(e,i,s,t.message):$a}function ost(e,t){return function(){return e(),t.apply(this,arguments)}}function Y_e(e,t){const r=ist(t?.name??N.getFunctionName(e),t);return ost(r,e)}var Ywe,$we,Qwe=T({"src/deprecatedCompat/deprecate.ts"(){XQ(),Ywe=!0}});function KQ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&xs(t,`${u}`)&&(t[u]=Y_e(t[u],{...i[u],name:e}))}const o=ast(t,r);return s;function s(...l){const u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function ast(e,t){return r=>{for(let i=0;xs(e,`${i}`)&&xs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function Zwe(e){return{overload:t=>({bind:r=>({finish:()=>KQ(e,t,r),deprecate:i=>({finish:()=>KQ(e,t,r,i)})})})}}var sst=T({"src/deprecatedCompat/deprecations.ts"(){XQ(),Qwe()}}),lst=T({"src/deprecatedCompat/5.0/identifierProperties.ts"(){XQ(),Qwe(),moe(e=>{const t=e.getIdentifierConstructor();xs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Y_e(function(){return c0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),xs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Y_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."})})})}}),XQ=T({"src/deprecatedCompat/_namespaces/ts.ts"(){ra(),sst(),lst()}}),cst=T({"src/typingsInstallerCore/_namespaces/ts.ts"(){ra(),Kw(),Q_e()}});function eOe(e,t,r,i){try{const o=cD(t,Qr(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 ust(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=tOe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function tOe(e,t,r,i){const o=r.length-i;let 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 nOe(e){return`@types/${e}@ts${ue}`}var rOe,iOe,dst=T({"src/typingsInstallerCore/typingsInstaller.ts"(){cst(),Q_e(),rOe={isEnabled:()=>!1,writeLine:$a},iOe=class{constructor(e,t,r,i,o,s=rOe){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":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:k7,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:N.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${w0(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();const t=G_.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){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=Sm(ai(t),u=>{if(this.installTypingHost.fileExists(Qr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Jw,projectName:i,id:s,success:u,message:p};this.sendResponse(h)});else{const u={kind:Jw,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=G_.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=G_.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}const t=Qr(e,"package.json"),r=Qr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const 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}':${w0(i)}`),this.log.writeLine(`Loaded content of '${r}':${w0(o)}`)),i.devDependencies&&o.dependencies)for(const s in i.devDependencies){if(!xs(o.dependencies,s))continue;const l=rc(s);if(!l)continue;const u=eOe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);const h=T6(o.dependencies,s),m=h&&h.version;if(!m)continue;const v={typingLocation:u,version:new vm(m)};this.packageNameToTypingLocation.set(l,v)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Hi(e,t=>{const r=dD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=G_.validatePackageName(t);if(i!==G_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(G_.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)&&G_.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){const t=Qr(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)}`);const 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);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:w7,eventId:s,typingsInstallerVersion:Re,projectName:e.projectName});const l=o.map(nOe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(const h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const p=[];for(const h of o){const m=eOe(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}const v=this.typesRegistry.get(h),A=new vm(v[`ts${ue}`]||v[this.latestDistTag]),I={typingLocation:m,version:A};this.packageNameToTypingLocation.set(h,I),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{const p={kind:O7,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Re};this.sendResponse(p)}})}ensureDirectoryExists(e,t){const r=ai(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||mh(i,o=>!r.has(o))||mh(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:Hw}}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()})}}}}}),$_e={};X($_e,{TypingsInstaller:()=>iOe,getNpmCommandForInstallation:()=>tOe,installNpmPackages:()=>ust,typingsName:()=>nOe});var pst=T({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){dst()}}),Q_e=T({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){W7(),pst()}}),fst=T({"src/server/types.ts"(){}});function Z_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 ml(e){return ga(e)}function a8(e,t,r){const i=pp(e)?e:go(e,t);return r(i)}function oOe(e){return e}function aOe(){const 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 ehe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function the(e){return`/dev/null/inferredProject${e}*`}function nhe(e){return`/dev/null/autoImportProviderProject${e}*`}function rhe(e){return`/dev/null/auxiliaryProject${e}*`}function ihe(){return[]}var YQ,hc,$Q,nv,mst=T({"src/server/utilitiesPublic.ts"(){db(),YQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(YQ||{}),hc=ihe(),$Q=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))($Q||{}),(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})(nv||(nv={}))}});function QQ(e){const t=rc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function sOe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=xy(e,t,nl,r);i>=0&&e.splice(i,1)}var ZQ,eZ,_st=T({"src/server/utilities.ts"(){db(),fT(),ZQ=class e7e{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(e7e.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){const 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=od)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=od)==null||s.logStopScheduledOperation()}},eZ=class t7e{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(t7e.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=od)==null||r.logStartScheduledOperation("GC collect");const o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){const l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=od)==null||i.logStopScheduledOperation()}}}}),tZ,ohe,ahe,she,lhe,che,uhe,dhe,phe,fhe,mhe,_he,hhe,ghe,yhe=T({"src/server/protocol.ts"(){tZ=(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))(tZ||{}),ohe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(ohe||{}),ahe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(ahe||{}),she=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(she||{}),lhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(lhe||{}),che=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(che||{}),uhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(uhe||{}),dhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(dhe||{}),phe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(phe||{}),fhe=(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))(fhe||{}),mhe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(mhe||{}),_he=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(_he||{}),hhe=(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))(hhe||{}),ghe=(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))(ghe||{})}}),vhe={};X(vhe,{ClassificationType:()=>ghe,CommandTypes:()=>tZ,CompletionTriggerKind:()=>che,IndentStyle:()=>uhe,JsxEmit:()=>phe,ModuleKind:()=>fhe,ModuleResolutionKind:()=>mhe,NewLineKind:()=>_he,OrganizeImportsMode:()=>ohe,PollingWatchKind:()=>lhe,ScriptTarget:()=>hhe,SemicolonPreference:()=>dhe,WatchDirectoryKind:()=>she,WatchFileKind:()=>ahe});var hst=T({"src/server/_namespaces/ts.server.protocol.ts"(){yhe()}});function s8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&rc(e)[0]==="^"||e.includes(":^")&&!e.includes(al)}function lOe(e){return!e||c8(e)?nv.ThrowNoProject():e}function gst(e){N.assert(typeof e=="number",`Expected position ${e} to be a number.`),N.assert(e>=0,"Expected position to be non-negative.")}function yst(e){N.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),N.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),N.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),N.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var nZ,rZ,vst=T({"src/server/scriptInfo.ts"(){db(),fT(),nZ=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 N.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=xD(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{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=z7.fromString(N.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const 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){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!JA(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>zz)return N.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=Qz.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=Qz.fromString(N.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(N.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return N.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=xA(N.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return Bq(this.text,t)}},rZ=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=s8(t),this.textStorage=new nZ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||V3(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)){N.assert(!!this.containingProjects.length);const 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){const 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 Nr(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:Bx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){G0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!KD(e)&&e.addMissingFileRoot(t.fileName)}Vo(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return nv.ThrowNoProject();case 1:return lOe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return bt(this.containingProjects,c8)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){gst(e);const t=this.textStorage.positionToLineOffset(e);return yst(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Po(this.sourceMapFilePath)&&(Mf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function cOe(e,t){if(e===t||(e||hc).length===0&&(t||hc).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function bst(e,t){return e.enable!==t.enable||!cOe(e.include,t.include)||!cOe(e.exclude,t.exclude)}function Est(e,t){return Xv(e)!==Xv(t)}function Sst(e,t){return e===t?!1:!Km(e,t)}var wz,iZ,Tst=T({"src/server/typingsCache.ts"(){db(),fT(),wz={isKnownTypesPackageName:Xm,installPackage:Ko,enqueueInstallTypingsRequest:$a,attach:$a,onProjectClosed:$a,globalTypingsCacheLocation:void 0},iZ=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){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const o=this.perProjectCache.get(e.getProjectName());(r||!o||bst(i,o.typeAcquisition)||Est(e.getCompilationSettings(),o.compilerOptions)||Sst(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){const s=lS(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 l8(e,t=!1){const 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(const i of e){const 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:Su(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 Ast(e){const t=l8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function bhe(e){const t=l8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Ehe(e){const t=l8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function She(e){return!e.some(t=>Il(t,".ts")&&!Su(t)||Il(t,".tsx"))}function The(e){return e.generatedFilePath!==void 0}function Ist(e,t){var r,i;const o=e.getSourceFiles();(r=sr)==null||r.push(sr.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>tm(u.getName())),l=JN(Pi(o,u=>xst(e,u,s,t)));return(i=sr)==null||i.pop(),l}function xst(e,t,r,i){return t0(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!YC(s.extension))&&!Yc(l)&&!r.some(u=>u===l)&&(o=xn(o,Sw(l).packageName))},t),o||hc})}function KD(e){return e.projectKind===0}function G0(e){return e.projectKind===1}function oZ(e){return e.projectKind===2}function c8(e){return e.projectKind===3||e.projectKind===4}var RM,pT,aZ,sZ,lZ,cZ,uZ,Oz,Rst=T({"src/server/project.ts"(){db(),db(),fT(),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||{}),pT=class n7e{constructor(t,r,i,o,s,l,u,p,h,m,v){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,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=Xm,this.dirty=!1,this.typingFiles=hc,this.moduleSpecifierCache=whe(this),this.createHash=ia(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=G_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(v),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new FY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||Xv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=ez(),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:N.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const A=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):A.trace&&(this.trace=I=>A.trace(I)),this.realpath=ia(A,A.realpath),this.resolutionCache=JJ(this,this.currentDirectory,!0),this.languageService=mpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),c8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return jp(this),Ehe(this)}isJsOnlyProject(){return jp(this),Ast(this)}static resolveModule(t,r,i,o){return n7e.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){N.assertIsDefined(i.require);let s,l;for(const u of r){const p=Lu(i.resolvePath(Qr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);const h=i.require(p,t.name);if(!h.error){l=h.module;break}const 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){N.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const p=Qr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(v){h={module:void 0,error:v}}if(!h.error){l=h.module;break}const 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=EU(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 et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),qr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=ai(ga(this.projectService.getExecutingFilePath()));return Qr(t,Z2(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){const 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 ol(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),wc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),wc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),wc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return nr(this.projectErrors,t=>!t.file)||hc}getAllProjectErrors(){return this.projectErrors||hc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&jp(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?(jp(this),this.builderState=Mm.create(this.program,this.builderState,!0),Hi(Mm.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};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=go(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&Nf(this.compilerOptions)){const l=s.filter(u=>Su(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):eC(l[0].text);Mm.updateSignatureOfFile(this.builderState,p,u.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(const 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&&(N.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 lS(Pi(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){const 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(),Xe(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const 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&&(tp(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){const 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?Ot(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return N.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){const s=_pe(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const 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){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const 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){N.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){const 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(){jp(this)}updateGraph(){var t,r,i,o,s;(t=sr)==null||t.push(sr.Phase.Session,"updateGraph",{name:this.projectName,kind:RM[this.projectKind]}),(r=od)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||hc;for(const m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=Ist(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=od)==null||o.logStopUpdateGraph(),(s=sr)==null||s.pop(),!l}updateTypingFiles(t){P6(t,this.typingFiles,Fx(!this.useCaseSensitiveFileNames()),$a,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&tp(this.typingWatchers,Qm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:qw})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),wc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Il(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Cg(u,Qr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),wc.TypingInstallerLocationDirectory,this))};for(const o of t){const s=rc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(bm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(al,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(bm(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){const r=xF(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();N.assert(i===this.program),N.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=Ys(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Xm,Xm);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=sr)==null||t.push(sr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=sr)==null||r.pop(),N.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const m of i.getSourceFiles()){const v=this.program.getSourceFileByPath(m.resolvedPath);(!v||m.resolvedPath===m.path&&v.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(mJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,v)=>this.addMissingFileWatcher(m,v)),this.generatedFilesMap){const m=Ps(this.compilerOptions);The(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Ad(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((v,A)=>{const I=this.program.getSourceFileByPath(A);(!I||I.resolvedPath!==A||!this.isValidGeneratedFileWatcher(f3(I.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),v))&&(Mf(v),this.generatedFilesMap.delete(A))})}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&&mh(this.changedFilesForExportMapCache,m=>{const v=i.getSourceFileByPath(m),A=this.program.getSourceFileByPath(m);return!v||!A?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(v,A,!!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());const p=this.externalFiles||hc;this.externalFiles=this.getExternalFiles(),P6(this.externalFiles,p,Fx(!this.useCaseSensitiveFileNames()),m=>{const v=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);v?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));const h=Ys()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${G6[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(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){const o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(G0(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return ED}const o=this.projectService.watchFactory.watchFile(go(r,this.currentDirectory),(s,l)=>{G0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),wc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Ps(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(The(this.generatedFilesMap)){N.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),wc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(The(this.generatedFilesMap)?Mf(this.generatedFilesMap):tp(this.generatedFilesMap,Mf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?nv.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 `;const o=this.program.getSourceFiles();let s=` Files (${o.length}) `;if(t){for(const l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} `;r&&(s+=` `,YJ(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;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),x4(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;const s=r?p=>zo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>zo(p.keys());this.isInitialLoadPending()||jp(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:KD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};const p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:ml(M),isSourceOfProjectReferenceRedirect:!1})))||hc,m=DE(this.getFileNamesWithRedirectInfo(!!r).concat(h),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),v=new Map,A=new Map,I=u?zo(u.keys()):[],R=[];return Gc(m,(M,C)=>{p.has(C)?r&&M!==p.get(C)&&R.push({fileName:C,isSourceOfProjectReferenceRedirect:M}):v.set(C,M)}),Gc(p,(M,C)=>{m.has(C)||A.set(C,M)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(v),removed:s(A),updated:r?I.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):I,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(v=>({fileName:ml(v),isSourceOfProjectReferenceRedirect:!1})))||hc,m=p.concat(h);return this.lastReportedFileNames=DE(m,v=>v.fileName,v=>v.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(v=>v.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Bx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Qr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const 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}const i=this.getGlobalPluginSearchPaths();for(const 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}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:POe}),s=o.create(i);for(const 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(Qr(this.currentDirectory,yD),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=OX(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||yO(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(jp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=sr)==null||t.push(sr.Phase.Session,"getPackageJsonAutoImportProvider");const s=Ys();if(this.autoImportProviderHost=cZ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return jp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ys()-s),(r=sr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=sr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Gc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(ml(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return N.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new sZ(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:et,lib:et,noLib:!0}}},aZ=class extends pT{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;const t=$K(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){N.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()&&Zn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Xe(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:bhe(this),include:et,exclude:et}}},sZ=class extends pT{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(){}},lZ=class Abe extends pT{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=ia(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ia(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;const u=r.getCurrentProgram();if(!u)return et;const p=Ys();let h,m;const v=Qr(r.currentDirectory,yD),A=r.getPackageJsonsForAutoImport(Qr(r.currentDirectory,v));for(const C of A)(s=C.dependencies)==null||s.forEach((O,U)=>R(U)),(l=C.peerDependencies)==null||l.forEach((O,U)=>R(U));let I=0;if(h){const C=r.getSymlinkCache();for(const O of zo(h.keys())){if(t===2&&I>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;const U=hq(O,r.currentDirectory,o,i,u.getModuleResolutionCache());if(U){const Z=M(U,u,C);if(Z){m=So(m,Z),I+=Z.length?1:0;continue}}if(!Xe([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Z=>{if(Z){const V=hq(`@types/${O}`,Z,o,i,u.getModuleResolutionCache());if(V){const se=M(V,u,C);return m=So(m,se),I+=se?.length?1:0,!0}}})&&U&&o.allowJs&&o.maxNodeModuleJsDepth){const Z=M(U,u,C,!0);m=So(m,Z),I+=Z?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${I} dependencies in ${Ys()-p} ms`),m||et;function R(C){uo(C,"@types/")||(h||(h=new Set)).add(C)}function M(C,O,U,K){var Z;const V=Tq(C,o,i,O.getModuleResolutionCache(),K);if(V){const se=(Z=i.realpath)==null?void 0:Z.call(i,C.packageDirectory),G=se?r.toPath(se):void 0,ne=G&&G!==r.toPath(C.packageDirectory);return ne&&U.setSymlinkedDirectory(C.packageDirectory,{real:Bc(se),realPath:Bc(G)}),Hi(V,he=>{const ve=ne?he.replace(C.packageDirectory,se):he;if(!O.getSourceFile(ve)&&!(ne&&O.getSourceFile(he)))return ve})}}}static create(t,r,i,o){if(t===0)return;const s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Abe(r,l,o,s)}isEmpty(){return!bt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Abe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const 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||et}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()}},lZ.maxDependencies=10,lZ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},cZ=lZ,uZ=class extends pT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,ai(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Dy,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=ga(e),r=this.projectService.toCanonicalFileName(t);let 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(ga(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=Xm;const 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();const i=N.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){N.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const 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;const 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}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=ai(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return nr(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 YD(this,e.path,t=>VI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const 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)=>{const o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!YD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return wP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){_F(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Oz=class extends pT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,ai(l||Lu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function uOe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{N.assert(typeof o=="number")}),t.set(r.name,i)}return t}function XD(e){return Po(e.indentStyle)&&(e.indentStyle=yOe.get(e.indentStyle.toLowerCase()),N.assert(e.indentStyle!==void 0)),e}function Wz(e){return hOe.forEach((t,r)=>{const i=e[r];Po(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function u8(e,t){let r,i;return aD.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=gOe.get(o.name);(r||(r={}))[o.name]=l?Po(s)?l.get(s.toLowerCase()):s:$S(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Ahe(e){let t;return _w.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function dZ(e){return Po(e)?pZ(e):e}function pZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Ihe(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function dOe(e,t){for(const r of t)if(r.getProjectName()===e)return r}function fZ(e){return!!e.containingProjects}function pOe(e){return!!e.configFileInfo}function YD(e,t,r,i,o){var s;const l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u;const p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){const m=ml(p.sourceFile.fileName),v=e.projectService.findConfiguredProjectByProjectName(m);if(v){const A=r(v);if(A)return A}else if(i!==0){u=new Map;const A=xhe(l,e.getCompilerOptions(),(I,R)=>p===I?h(I,R):void 0,i,e.projectService,u);if(A)return A;u.clear()}}return xhe(l,e.getCompilerOptions(),(m,v)=>p!==m?h(m,v):void 0,i,e.projectService,u);function h(m,v){const A=ml(m.sourceFile.fileName),I=e.projectService.findConfiguredProjectByProjectName(A)||(v===0?void 0:v===1?e.projectService.createConfiguredProject(A):v===2?e.projectService.createAndLoadConfiguredProject(A,o):N.assertNever(v));return I&&r(I)}}function xhe(e,t,r,i,o,s){const l=t.disableReferencedProjectLoad?0:i;return Xe(e,u=>{if(!u)return;const p=ml(u.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s?.get(h);if(m!==void 0&&m>=l)return;const v=r(u,l);return v||((s||(s=new Map)).set(h,l),u.references&&xhe(u.references,u.commandLine.options,r,l,o,s))})}function fOe(e,t){return e.potentialProjectReferences&&mh(e.potentialProjectReferences,t)}function Dst(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?fOe(e,i):Xe(e.getProjectReferences(),r)}function Rhe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function mOe(e,t){return Dst(e,r=>Rhe(e,t,r.sourceFile.path),r=>Rhe(e,t,e.toPath(gD(r))),r=>Rhe(e,t,r))}function Nst(e,t){return`${Po(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function _Oe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function VI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function jp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Dhe(e){G0(e)&&(e.projectOptions=!0)}function Nhe(e){let t=1;return()=>e(t++)}function Che(){return{idToCallbacks:new Map,pathToId:new Map}}function Cst(e,t){if(!t||!e.eventHandler||!e.session)return;const r=Che(),i=Che(),o=Che();let s=1;return e.session.addProtocolHandler("watchChange",I=>(h(I.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(I,R){return p(r,I,R,M=>({eventName:qz,data:{id:M,path:I}}))}function u(I,R,M){return p(M?o:i,I,R,C=>({eventName:Jz,data:{id:C,path:I,recursive:!!M,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:I,idToCallbacks:R},M,C,O){const U=e.toPath(M);let K=I.get(U);K||I.set(U,K=s++);let Z=R.get(K);return Z||(R.set(K,Z=new Set),e.eventHandler(O(K))),Z.add(C),{close(){const V=R.get(K);V?.delete(C)&&(V.size||(R.delete(K),I.delete(U),e.eventHandler({eventName:Kz,data:{id:K}})))}}}function h(I){To(I)?I.forEach(m):m(I)}function m({id:I,created:R,deleted:M,updated:C}){v(I,R,0),v(I,M,2),v(I,C,1)}function v(I,R,M){R?.length&&(A(r,I,R,(C,O)=>C(O,M)),A(i,I,R,(C,O)=>C(O)),A(o,I,R,(C,O)=>C(O)))}function A(I,R,M,C){var O;(O=I.idToCallbacks.get(R))==null||O.forEach(U=>{M.forEach(K=>C(U,Lu(K)))})}}function Pst(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Phe(e){return e.kind!==void 0}function Mhe(e){e.print(!1,!1,!1)}var Fz,zz,d8,Bz,Gz,Vz,jz,Uz,Hz,mZ,qz,Jz,Kz,Lhe,hOe,gOe,yOe,_Z,Xz,Yz,hZ,gZ,khe,yZ,Mst=T({"src/server/editorServices.ts"(){db(),fT(),yhe(),Fz=20*1024*1024,zz=4*1024*1024,d8="projectsUpdatedInBackground",Bz="projectLoadingStart",Gz="projectLoadingFinish",Vz="largeFileReferenced",jz="configFileDiag",Uz="projectLanguageServiceState",Hz="projectInfo",mZ="openFileInfo",qz="createFileWatcher",Jz="createDirectoryWatcher",Kz="closeFileWatcher",Lhe="*ensureProjectForOpenFiles*",hOe=uOe(dg),gOe=uOe(aD),yOe=new Map(Object.entries({none:0,block:1,smart:2})),_Z={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,"$"]]}},Xz={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=qx(e);i&&bt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>bt(t,r=>r.isMixedContent&&Il(e,r.extension))},Yz={getFileName:e=>e.fileName,getScriptKind:e=>dZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},hZ={close:$a},gZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(gZ||{}),khe=class Ibe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Nhe(the),this.newAutoImportProviderProjectName=Nhe(nhe),this.newAuxiliaryProjectName=Nhe(rhe),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=_Z,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=$a,this.verifyDocumentRegistry=$a,this.verifyProgram=$a,this.onProjectCreation=$a;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||wz,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?Qr(ai(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Zp()),this.currentDirectory=ml(this.host.getCurrentDirectory()),this.toCanonicalFileName=Mu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Bc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ZQ(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 iZ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:F7(this.host.newLine),preferences:kf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=jX(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):$a;this.packageJsonCache=Ohe(this),this.watchFactory=this.serverMode!==0?{watchFile:SD,watchDirectory:SD}:_J(Cst(this,t.canUseWatchEvents)||this.host,i,o,Nst),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ol(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return go(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=N.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const 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;const i={eventName:Uz,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)xs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=_Z,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case Hw:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case qw: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(Lhe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),c8(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&jp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:d8,data:{openFiles:zo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:Vz,data:{file:t,fileSize:r,maxFileSize:zz}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:Bz,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:Gz,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(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){N.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=Wz(t),o=u8(t,r),s=Ahe(t);i.allowNonTsExtensions=!0;const 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(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o?.watchOptions),u.setProjectErrors(o?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return ehe(t)?dOe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(ml(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){const r=Po(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();const r=Po(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Po(t)?t:t.fileName),nv.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=jp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const 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(Po(t.sourceMapFilePath)){const 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){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{const p=this.toPath(u),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(rc(p)==="package.json"&&!yO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(u))){const v=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${v}`),this.packageJsonCache.addOrUpdate(v,p),this.watchPackageJsonFile(v,p,l)}const m=this.findConfiguredProjectByProjectName(i);ww({watchedDirPath:this.toPath(t),fileOrDirectory:u,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:v=>this.logger.info(v),toPath:v=>this.toPath(v),getScriptKind:m?v=>m.getScriptKind(v):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((v,A)=>{if(!v)return;const I=this.getConfiguredProjectByCanonicalConfigFilePath(A);if(!I)return;const R=m===I?1:0;if(!(I.pendingUpdateLevel!==void 0&&I.pendingUpdateLevel>R))if(this.openFiles.has(p))if(N.checkDefined(this.getScriptInfoForPath(p)).isAttached(I)){const C=Math.max(R,I.openFileWatchTriggered.get(p)||0);I.openFileWatchTriggered.set(p,C)}else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I);else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),wc.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;const o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;const 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?nl:Dy,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),N.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>N.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(zo(Iv(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:EA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:EA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){N.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ai(pp(t.fileName)?t.fileName:go(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Bx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();N.assert(s.length===1||!!o.projectRootPath),s.length===1&&Xe(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)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(const l of t.containingProjects){if(G0(l)){t.hasMixedContent&&t.registerFileUpdate();const u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevelthis.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),wc.ConfigFile,i));const u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&Gc(t.openFilesImpactedByConfigFile,nl)}releaseParsedConfig(t,r){var i,o,s;const 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,fJ(t,this.sharedExtendedConfigFileWatchers),N.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?E7(zc(ai(t)))||(l.watcher.close(),l.watcher=hZ):(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){N.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;const l=this.configFileExistenceInfoCache.get(r);if(l){const u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(N.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){N.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=E7(zc(ai(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,wc.ConfigFileForInferredRoot):hZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(N.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;N.assert(!fZ(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(N.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ai(t.fileName);const l=()=>bm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let p=!pOe(t);do{if(p){const m=a8(s,this.currentDirectory,this.toCanonicalFileName),v=Qr(s,"tsconfig.json");let A=r(Qr(m,"tsconfig.json"),v);if(A)return v;const I=Qr(s,"jsconfig.json");if(A=r(Qr(m,"jsconfig.json"),I),A)return I;if(e4(m))break}const h=ai(s);if(h===s)break;s=h,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&VI(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!pOe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${ai(t.fileName)}`);const 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.`),fZ(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Mhe),this.configuredProjects.forEach(Mhe),this.inferredProjects.forEach(Mhe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const 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){const r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return dOe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=Fz;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const p=o.getFileName(u);if(!JA(p)&&(l+=this.host.getFileSize(p),l>Fz||l>s)){const h=i.map(m=>o.getFileName(m)).filter(m=>!JA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,v)=>v.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){const l=Wz(i),u=u8(i,ai(Lu(t))),p=new Oz(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,Yz),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return p.setProjectErrors(u?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,Yz,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Dhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Dhe(t);return}const r=G0(t)?t.projectOptions:void 0;Dhe(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:l8(t.getScriptInfos(),!0),compilerOptions:mse(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 Oz?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Re};this.eventHandler({eventName:Hz,data:i});function o(){return G0(t)&&QQ(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.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=sr)==null||r.instant(sr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:a7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const s=new uZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=ga(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;N.assert(!!u.fileNames);const p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=PP(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,Xz);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((v,A)=>this.stopWatchingWildCards(A,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);const m=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,Xz,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=sr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||a7(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=CP(t,R=>this.host.readFile(R)),m=ow(t,Po(h)?h:""),v=m.parseDiagnostics;Po(h)||v.push(h);const A=cw(m,p,ai(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&v.push(...A.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:A.fileNames,options:A.options,watchOptions:A.watchOptions,projectReferences:A.projectReferences},void 0," ")}`);const I=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=A,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:A,cachedDirectoryStructureHost:p,projects:new Map},!I&&!H3(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),s7(r,A.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var C;l7(this.extendedConfigCache,M,U=>this.toPath(U));let O=!1;(C=this.sharedExtendedConfigFileWatchers.get(M))==null||C.projects.forEach(U=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(U,`Change in extended config file ${R} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,wc.ExtendedConfigFile,t),R=>this.toPath(R)),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,kw(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;tp(i.watchedDirectories,Mf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Gc(i.config.projects,nl)&&(i.config.watchedDirectories&&(tp(i.config.watchedDirectories,Mf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const o=t.getRootFilesMap(),s=new Map;for(const l of r){const u=i.getFileName(l),p=ml(u),h=s8(p);let m;if(!h&&!t.fileExists(u)){m=a8(p,this.currentDirectory,this.toCanonicalFileName);const v=o.get(m);v?(v.info&&(t.removeFile(v.info,!1,!0),v.info=void 0),v.fileName=p):o.set(m,{fileName:p})}else{const v=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),I=N.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,v,A,t.directoryStructureHost));m=I.path;const R=o.get(m);!R||R.info!==I?(t.addRoot(I,p),I.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(I)):R.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),Xz),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;N.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=MP(i,ai(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,Xz)}reloadConfiguredProject(t,r,i,o){const s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();const 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;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:jz,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)o.projectRootPath&&bm(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){N.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let 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;const u=new aZ(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return u.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(ml(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(ml(t))}getScriptInfoOrConfig(t){const r=ml(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=zo(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){const o=t.getRealpathIfDifferent();o&&Xe(this.realpathToScriptInfos.get(o),i),Xe(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Gc(r,(l,u)=>u===o.path?!1:Nr(l,s))||r.add(o.path,s):(r=Zp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(N.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!uo(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,wc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;const u=b7(this.toPath(s));if(!u)return;const p=rc(u);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===u)this.refreshScriptInfosInDirectory(r);else{const h=this.getScriptInfoForPath(u);h?_Oe(h)&&this.refreshScriptInfo(h):AA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,wc.NodeModules);const 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;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return N.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){const 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)||Op).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=yV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+al,this.filenameToScriptInfo.forEach(r=>{_Oe(r)&&uo(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(pp(t)||s8(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);const 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,u){N.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const p=a8(t,r,this.toCanonicalFileName);let h=this.getScriptInfoForPath(p);if(!h){const m=s8(t);if(N.assert(pp(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),N.assert(!pp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),N.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:zo(this.openFilesWithNonRootedDiskPath.keys())})} Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(u||this.host).fileExists(t))return;h=new rZ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!pp(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!pp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(a8(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Po(o.sourceMapFilePath)){const 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,u=(m,v)=>{const A=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!A){l=v;return}s=A;const I=A.getSnapshot();return A.documentPositionMapper!==void 0?A.documentPositionMapper:xD(I)};const p=t.projectName,h=JX({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=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:go(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){const 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,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!Po(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,wc.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&Po(i.sourceMapFilePath)&&s!==i){const 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 N.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(ml(t.file));i&&(i.setOptions(XD(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,...XD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{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=u8(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(Lhe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Dy,"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){const l=new Map,u=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;const m=this.getScriptInfoForPath(h);N.assert(m.isScriptOpen());const v=this.getConfigFileNameForFile(m);if(v){const A=this.findConfiguredProjectByProjectName(v)||this.createConfiguredProject(v);l.has(A.canonicalConfigFilePath)||(l.set(A.canonicalConfigFilePath,!0),i?(A.pendingUpdateLevel=2,A.pendingUpdateReason=s,r&&this.clearSemanticCache(A),this.delayUpdateProjectGraph(A)):(this.reloadConfiguredProject(A,s,!1,r),VI(A,m)||YD(A,m.path,R=>(u(R),VI(R,m)),1)&&YD(A,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){N.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&KD(r)&&r.isRoot(t)&&Xe(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)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(jp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(ml(t),r,i,!1,o?ml(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:ml(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);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: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}jp(h);const m=I=>{const R=this.getScriptInfo(s);return R&&VI(I,R)};if(h.isSolution()||!m(h)){if(h=YD(h,s,I=>(jp(I),m(I)?I:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}A(h);const v=this.getScriptInfo(s);if(!v||!v.containingProjects.length)return;return v.containingProjects.forEach(I=>{G0(I)&&A(I)}),o;function A(I){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return An(this.externalProjects,r=>(jp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const 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,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?jp(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,VI(o,t)||YD(o,t.path,p=>{if(jp(p),To(s)?s.push(p):s=[o,p],VI(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||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(jp),t.isOrphan()&&(To(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),N.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),N.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;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const 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||v6(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of zo(this.configuredProjects.values()))fOe(i,o=>t.has(o))&&jp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Ay(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(const l of s){if(!l)continue;const u=DJ(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!u)continue;const p=ml(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);jp(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){const r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{const h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(To(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&mOe(l,u=>o(u)&&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),mOe(l,s))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(Po(r.sourceMapFilePath)){const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!mh(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Po(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const 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()||!Rm(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:mZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(ml(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=An(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const 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(const u of t){const p=this.getOrCreateOpenScriptInfo(ml(u.fileName),u.content,dZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?ml(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(const u of r){const p=this.getScriptInfo(u.fileName);N.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(const u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=Pi(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Le(i)&&this.printProjects()}applyChangesToFile(t,r){for(const 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){const i=ml(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){const r=DE(this.externalProjects,i=>i.getProjectName(),i=>!0);mh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);mh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=_Z}applySafeList(t){const r=t.typeAcquisition;N.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(v=>Lu(v.fileName));for(const v of Object.keys(this.safelist)){const A=this.safelist[v];for(const I of l)if(A.match.test(I)){if(this.logger.info(`Excluding files based on rule ${v} matching file '${I}'`),A.types)for(const R of A.types)o.includes(R)||o.push(R);if(A.exclude)for(const R of A.exclude){const M=I.replace(A.match,(...C)=>R.map(O=>typeof O=="number"?Po(C[O])?Ibe.escapeFilenameForRegex(C[O]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${v} - not enough groups`),"\\*"):O).join(""));s.includes(M)||s.push(M)}else{const R=Ibe.escapeFilenameForRegex(I);s.includes(R)||s.push(R)}}}const u=s.map(v=>new RegExp(v,"i"));let p,h;for(let v=0;vA.test(l[v])))m(v);else{if(i.enable){const A=rc(lh(l[v]));if(Il(A,"js")){const I=Ad(A),R=aG(I),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[v]}' because it matched ${R} from the legacy safelist`),m(v),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[v])?m(v):p?.push(r[v])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(v){h||(N.assert(!p),p=r.slice(0,v),h=[]),h.push(l[v])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let s,l=[];for(const u of t.rootFiles){const p=ml(u.fileName);if(QQ(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(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=She(l.map(m=>m.fileName)));const p=this.applySafeListWorker(t,l,u),h=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=h;const m=Wz(t.options),v=u8(t.options,i.getCurrentDirectory()),A=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,Yz);A?i.disableLanguageService(A):i.enableLanguageService(),i.setProjectErrors(v?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,Yz,m,u,t.options.compileOnSave,v?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,u,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(const 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||Sw(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){const o=pT.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,pT.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Xe(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;const t=zo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){N.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Ot(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const 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){const o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:const h=Qr(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);const m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return Sm(ai(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return Sm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Qr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){N.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,u)=>{switch(u){case 0:return N.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,wc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=Pst())}},khe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,yZ=khe}});function whe(e){let t,r,i;const o={get(p,h,m,v){if(!(!r||i!==l(p,m,v)))return r.get(h)},set(p,h,m,v,A,I){if(s(p,m,v).set(h,u(A,I,!1)),I){for(const R of A)if(R.isInNodeModules){const M=R.path.substring(0,R.path.indexOf(Ih)+Ih.length-1),C=e.toPath(M);t?.has(C)||(t||(t=new Map)).set(C,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,h,m,v,A){const I=s(p,m,v),R=I.get(h);R?R.modulePaths=A:I.set(h,u(A,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,v,A){const I=s(p,m,v),R=I.get(h);R?R.isBlockedByPackageJsonDependencies=A:I.set(h,u(void 0,void 0,A))},clear(){t?.forEach(Qm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return N.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){const v=l(p,h,m);return r&&i!==v&&o.clear(),i=v,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function u(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var Lst=T({"src/server/moduleSpecifierCache.ts"(){db()}});function Ohe(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ai(l),!0)},getInDirectory:l=>t.get(e.toPath(Qr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{Sm(l,u=>{const p=e.toPath(u);if(s(p)!==3)return!0;const h=Qr(u,"package.json");gO(e,h)?i(h,Qr(p,"package.json")):r.set(p,!0)})}};function i(l,u){const p=N.checkDefined(AX(l,e.host));t.set(u,p),r.delete(ai(u))}function o(l){t.delete(l),r.delete(ai(l))}function s(l){return t.has(Qr(l,"package.json"))?-1:r.has(l)?0:3}}var kst=T({"src/server/packageJsonCache.ts"(){db()}});function wst(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function vOe(e,t){if((KD(e)||oZ(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Ost(e){return Nf(e)||!!e.emitDecoratorMetadata}function bOe(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:z_(r.messageText,` `),code:r.code,category:pS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Ot(r.relatedInformation,vZ)}}function vZ(e){return e.file?{span:{start:p8(bs(e.file,e.start)),end:p8(bs(e.file,e.start+e.length)),file:e.file.fileName},message:z_(e.messageText,` `),category:pS(e),code:e.code}:{message:z_(e.messageText,` `),category:pS(e),code:e.code}}function p8(e){return{line:e.line+1,offset:e.character+1}}function f8(e,t){const r=e.file&&p8(bs(e.file,e.start)),i=e.file&&p8(bs(e.file,e.start+e.length)),o=z_(e.messageText,` `),{code:s,source:l}=e,u=pS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Ot(e.relatedInformation,vZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function Wst(e,t){return e.every(r=>Kl(r.span)i(s,e));return!To(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...Pi(s,p=>i(p,u)))}),RE(o,Ny)}function bZ(e){return iG(({textSpan:t})=>t.start+100003*t.length,cX(e))}function zst(e,t,r,i,o,s,l){const u=EOe(e,t,r,!0,(m,v)=>m.getLanguageService().findRenameLocations(v.fileName,v.pos,i,o,s),(m,v)=>v(DM(m)));if(To(u))return u;const p=[],h=bZ(l);return u.forEach((m,v)=>{for(const A of m)!h.has(A)&&!EZ(DM(A),v)&&(p.push(A),h.add(A))}),p}function Bst(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Xc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function Gst(e,t,r,i,o){var s,l;const u=EOe(e,t,r,!1,(v,A)=>(o.info(`Finding references to ${A.fileName} position ${A.pos} in project ${v.getProjectName()}`),v.getLanguageService().findReferences(A.fileName,A.pos)),(v,A)=>{A(DM(v.definition));for(const I of v.references)A(DM(I))});if(To(u))return u;const p=u.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(v=>{for(const A of v)for(const I of A.references)delete I.isDefinition});else{const v=bZ(i);for(const I of p)for(const R of I.references)if(R.isDefinition){v.add(R);break}const A=new Set;for(;;){let I=!1;if(u.forEach((R,M)=>{if(A.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,v)&&(A.add(M),I=!0)}),!I)break}u.forEach((I,R)=>{if(!A.has(R))for(const M of I)for(const C of M.references)C.isDefinition=!1})}const h=[],m=bZ(i);return u.forEach((v,A)=>{for(const I of v){const R=EZ(DM(I.definition),A),M=R===void 0?I.definition:{...I.definition,textSpan:yu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:Ust(I.definition,A)};let C=An(h,O=>lX(O.definition,M,i));C||(C={definition:M,references:[]},h.push(C));for(const O of I.references)!m.has(O)&&!EZ(DM(O),A)&&(m.add(O),C.references.push(O))}}),h.filter(v=>v.references.length!==0)}function zhe(e,t,r){for(const i of To(e)?e:e.projects)r(i,t);!To(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function EOe(e,t,r,i,o,s){const l=new Map,u=M2();u.enqueue({project:t,location:r}),zhe(e,r.fileName,(M,C)=>{const O={fileName:C,pos:r.pos};u.enqueue({project:M,location:O})});const p=t.projectService,h=t.getCancellationToken(),m=Bst(t,r,i),v=Sd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),A=Sd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),I=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(h.isCancellationRequested())break e;const{project:M,location:C}=u.dequeue();if(l.has(M)||SOe(M,C)||(jp(M),!M.containsFile(ml(C.fileName))))continue;const O=R(M,C);l.set(M,O??hc),I.add(jst(M))}m&&(p.loadAncestorProjectTree(I),p.forEachEnabledProject(M=>{if(h.isCancellationRequested()||l.has(M))return;const C=Vst(m,M,v,A);C&&u.enqueue({project:M,location:C})}))}if(l.size===1)return ZB(l.values());return l;function R(M,C){const O=o(M,C);if(O){for(const U of O)s(U,K=>{const Z=p.getOriginalLocationEnsuringConfiguredProject(M,K);if(!Z)return;const V=p.getScriptInfo(Z.fileName);for(const G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:Z});const se=p.getSymlinkedProjects(V);se&&se.forEach((G,ne)=>{for(const he of G)!he.isOrphan()&&!l.has(he)&&u.enqueue({project:he,location:{fileName:ne,pos:Z.pos}})})});return O}}}function Vst(e,t,r,i){if(t.containsFile(ml(e.fileName))&&!SOe(t,e))return e;const o=r();if(o&&t.containsFile(ml(o.fileName)))return o;const s=i();return s&&t.containsFile(ml(s.fileName))?s:void 0}function SOe(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function jst(e){return G0(e)?e.canonicalConfigFilePath:e.getProjectName()}function DM({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function EZ(e,t){return sM(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function TOe(e,t){return l5(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ust(e,t){return dX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Dh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Kl(e))}}function Bhe(e,t,r){const i=Dh(e,r),o=t&&Dh(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Hst(e,t){return{start:AOe(t,e.span.start),end:AOe(t,Kl(e.span)),newText:e.newText}}function AOe(e,t){return Phe(e)?Jst(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function qst(e,t){const 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 Jst(e){return{line:e.line+1,offset:e.character+1}}function Kst(e){N.assert(e.textChanges.length===1);const t=Ha(e.textChanges);return N.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 Ghe(e,t,r,i){const o=Xst(e,t,i),{line:s,character:l}=Jx(xA(o),r);return{line:s+1,offset:l+1}}function Xst(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function IOe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=N.checkDefined(e.getScriptInfo(t)),p=Bhe(r,i,u),h=l?void 0:Yst(u,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function Yst(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Kl(r)).replace(/\r|\n/g,"")}function $st(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 Vhe,jhe,xOe,Uhe,ROe,Hhe,Qst=T({"src/server/session.ts"(){db(),fT(),yhe(),Vhe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},jhe=tZ,xOe=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){const r=this.requestId;N.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){const i=this.requestId;N.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 u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=sr)==null||t.instant(sr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=sr)==null||r.push(sr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=sr)==null||i.pop())}catch(p){(o=sr)==null||o.popAll(),u=!0,p instanceof Ux?(s=sr)==null||s.instant(sr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=sr)==null||l.instant(sr.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(u||!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}},Uhe=["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"],ROe=[...Uhe,"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"],Hhe=class Ete{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const s={version:Re};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=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);const u=Ot(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(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&Ca(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&Ca(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:Iv($B(l.textChanges),u=>{const p=N.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(u.start.line,u.start.offset),m=p.lineOffsetToPosition(u.end.line,u.end.offset);return h>=0?{span:{start:h,length:m-h},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&Ca(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:$B(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(ml(s.arguments.file),s.arguments.fileContent,pZ(s.arguments.scriptKindName),s.arguments.projectRootPath?ml(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=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{const 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||wz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const 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 xOe(i);const 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 yZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new eZ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Uhe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:ROe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:N.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 Bz:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case Gz:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case Vz:case qz:case Jz:case Kz:this.event(t.data,t.eventName);break;case jz:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Ot(t.data.diagnostics,r=>f8(r,!0))},t.eventName);break;case Uz:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case Hz:{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{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const p=xD(u.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;const l=u=>{o+=` Project '${u.projectName}' (${RM[u.projectKind]}) ${s} `,o+=u.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: ${w0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;const i=Whe(t,this.logger,this.byteLength,this.host.newLine);(r=od)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Fhe(r,t))}doOutput(t,r,i,o,s){const l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(To(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:p,...h}=t;l.body=h,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else N.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const s=vOe(r,t)?hc:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=sr)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=sr)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=sr)==null||i.push(sr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=sr)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>bOe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){N.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const p=()=>{u++,r.length>u&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[u];if(Po(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}const{fileName:v,project:A}=m;if(jp(A),!!A.containsFile(v,o)&&(this.syntacticCheck(v,A),this.changeSeq===s)){if(A.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(v,A),this.changeSeq===s){if(this.getPreferences(v).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(v,A),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",zo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{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){const r=this.getProject(t.projectFileName),i=ml(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=nr(So(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Ot(l,u=>f8(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:z_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:pS(r),code:r.code,source:r.source,startLocation:r.file&&p8(bs(r.file,r.start)),endLocation:r.file&&p8(bs(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Ot(r.relatedInformation,vZ)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(nr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:z_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:pS(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:Ot(i.relatedInformation,vZ)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&vOe(s,l))return hc;const u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(h=>bOe(l,s,h))}getDefinition(t,r){const{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(Ete.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=TOe(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){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=N.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:hc,textSpan:void 0};const p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:h}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Dh(h,l)}:{definitions:p.map(Ete.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||hc,o).slice();if(this.projectService.serverMode===0&&(!bt(u,I=>ml(I.fileName)!==i&&!I.isAmbient)||bt(u,I=>!!I.failedAliasResolution))){const I=iG(O=>O.textSpan.start,cX(this.host.useCaseSensitiveFileNames));u?.forEach(O=>I.add(O));const R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),C=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(O=>ml(O.fileName)!==i);if(bt(C))for(const O of C){if(O.unverified){const U=v(O,o.getLanguageService().getProgram(),M.getProgram());if(bt(U)){for(const K of U)I.add(K);continue}}I.add(O)}else{const O=u.filter(U=>ml(U.fileName)!==i&&U.isAmbient);for(const U of bt(O)?O:m()){const K=h(U.fileName,i,R);if(!K)continue;const Z=this.projectService.getOrCreateScriptInfoNotOpenedByClient(K,R.currentDirectory,R.directoryStructureHost);if(!Z)continue;R.containsScriptInfo(Z)||(R.addRoot(Z),R.updateGraph());const V=M.getProgram(),se=N.checkDefined(V.getSourceFile(K));for(const G of A(U.name,se,V))I.add(G)}}u=zo(I.values())}return u=u.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(u,o);function h(I,R,M){var C,O,U;const K=X3(I);if(K&&I.lastIndexOf(Ih)===K.topLevelNodeModulesIndex){const Z=I.substring(0,K.packageRootIndex),V=(C=o.getModuleResolutionCache())==null?void 0:C.getPackageJsonInfoCache(),se=o.getCompilationSettings(),G=Ew(go(Z+"/package.json",o.getCurrentDirectory()),bw(V,o,se));if(!G)return;const ne=Tq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),he=I.substring(K.topLevelPackageNameIndex+1,K.packageRootIndex),ve=WP(Aw(he)),$=o.toPath(I);if(ne&&bt(ne,Y=>o.toPath(Y)===$))return(O=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ve,R).resolvedModule)==null?void 0:O.resolvedFileName;{const Y=I.substring(K.packageRootIndex+1),oe=`${ve}/${Ad(Y)}`;return(U=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:U.resolvedFileName}}}function m(){const I=o.getLanguageService(),R=I.getProgram(),M=Vd(R.getSourceFile(i),s);return(ls(M)||Ve(M))&&ws(M.parent)&&poe(M,C=>{var O;if(C===M)return;const U=(O=I.getDefinitionAtPosition(i,C.getStart(),!0,!1))==null?void 0:O.filter(K=>ml(K.fileName)!==i&&K.isAmbient).map(K=>({fileName:K.fileName,name:em(M)}));if(bt(U))return U})||hc}function v(I,R,M){var C;const O=M.getSourceFile(I.fileName);if(!O)return;const U=Vd(R.getSourceFile(i),s),K=R.getTypeChecker().getSymbolAtLocation(U),Z=K&&fl(K,276);if(!Z)return;const V=((C=Z.propertyName)==null?void 0:C.text)||Z.name.text;return A(V,O,M)}function A(I,R,M){const C=Ws.Core.getTopMostDeclarationNamesInFile(I,R);return Hi(C,O=>{const U=M.getTypeChecker().getSymbolAtLocation(O),K=DC(O);if(U&&K)return jD.createDefinitionInfo(K,M.getTypeChecker(),U,K,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>f8(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?(N.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){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Kl(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){const 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){const{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=>{const o=TOe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{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:u,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(u,p,h,o)):l.map(Ete.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?hc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{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){const{configFile:r}=this.getConfigFileAndProject(t);return r?hc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{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){const{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 qst(s,l)}getDocumentHighlights(t,r){const{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:u,highlightSpans:p})=>{const h=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:m,kind:v,contextSpan:A})=>({...Bhe(m,A,h),kind:v}))}}):l:hc}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p?.map(({text:h,span:m,file:v})=>{if(m){N.assertIsDefined(v,"Target file should be defined together with its span.");const A=this.projectService.getScriptInfo(v);return{text:h,span:{start:A.positionToLineOffset(m.start),end:A.positionToLineOffset(m.start+m.length),file:v}}}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){const{project:s}=this.getFileAndProjectWorker(t,r);return jp(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){const{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){const l=this.getProject(t.projectFileName);l&&(o=[l])}else{const 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),nv.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=nr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),nv.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return nv.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=ml(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),N.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];const h=zst(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Dh(h,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});const v=N.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...Bhe(o,s,v),...h})}return zo(r.values())}getReferences(t,r){const i=ml(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=Gst(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),v=m?OO(m.displayParts):"",A=m&&m.textSpan,I=A?h.positionToLineOffset(A.start).offset:0,R=A?h.getSnapshot().getText(A.start,Kl(A)):"";return{refs:Pi(l,C=>C.references.map(O=>IOe(this.projectService,O,u))),symbolName:R,symbolStartOffset:I,symbolDisplayString:v}}getFileReferences(t,r){const i=this.getProjects(t),o=t.file,s=this.getPreferences(ml(o)),l=[],u=bZ(this.host.useCaseSensitiveFileNames);return zhe(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;const m=h.getLanguageService().getFileReferences(o);if(m)for(const v of m)u.has(v)||(l.push(v),u.add(v))}),r?{refs:l.map(h=>IOe(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){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=ml(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Dh(u.textSpan,l),hintSpan:Dh(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{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){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?XD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const p=OO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Kl(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):OO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){const{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),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?XD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?XD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?XD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` `&&(!u||u.length===0||Wst(u,s))){const{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){const m=i.getIndentationAtPosition(r,s,l);let v=0,A,I;for(A=0,I=p.length;A({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Kl(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...Ihe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const p=t.prefix||"",h=Hi(u.entries,v=>{if(u.isMemberCompletion||uo(v.name.toLowerCase(),p.toLowerCase())){const{name:A,kind:I,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:U,hasAction:K,source:Z,sourceDisplay:V,labelDetails:se,isSnippet:G,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ve,data:$}=v,Y=U?Dh(U,s):void 0;return{name:A,kind:I,kindModifiers:R,sortText:M,insertText:C,filterText:O,replacementSpan:Y,isSnippet:G,hasAction:K||void 0,source:Z,sourceDisplay:V,labelDetails:se,isRecommended:ne,isPackageJsonImport:he,isImportStatementCompletion:ve,data:$}}});return r==="completions"?(u.metadata&&(h.metadata=u.metadata),h):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Dh(u.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=Hi(t.entryNames,m=>{const{name:v,source:A,data:I}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,v,u,A,this.getPreferences(i),I?oa(I,$st):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:Ot(m.codeActions,v=>this.mapCodeAction(v)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?Fst(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||Su(s.fileName)&&!Ost(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Ps(l)}}):hc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||nv.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,h)=>this.host.writeFile(u,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>f8(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const h=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){const r=ml(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){const r=this.projectService.getScriptInfo(t.file);N.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,b6({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){const i=ml(t.file),o=t.tmpfile===void 0?void 0:ml(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ga(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Ot(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Dh(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{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=>Dh(i,r)),nameSpan:t.nameSpan&&Dh(t.nameSpan,r),childItems:Ot(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{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){const i=this.getFullNavigateToItems(t);return r?Pi(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(Kl(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})):Pi(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){N.assertIsDefined(t.file);const{file:A,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,o,A)}]}const l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(A=>h(A));else{const A=this.getProjects(t);zhe(A,void 0,I=>h(I))}return u;function h(A){const I=A.getLanguageService().getNavigateToItems(i,o,void 0,A.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=nr(I,M=>m(M)&&!EZ(DM(M),A));R.length&&u.push({project:A,navigateToItems:R})}function m(A){const I=A.name;if(!p.has(I))return p.set(I,[A]),!0;const R=p.get(I);for(const M of R)if(v(M,A))return!1;return R.push(A),!0}function v(A,I){return A===I?!0:!A||!I?!1:A.containerKind===I.containerKind&&A.containerName===I.containerName&&A.fileName===I.fileName&&A.isCaseSensitive===I.isCaseSensitive&&A.kind===I.kind&&A.kindModifiers===I.kindModifiers&&A.matchKind===I.matchKind&&A.name===I.name&&A.textSpan.start===I.textSpan.start&&A.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return PY();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||nv.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),N.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){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{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){const{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){const{renameFilename:u,renameLocation:p,edits:h}=l;let m;if(u!==void 0&&p!==void 0){const v=o.getScriptInfoForNormalizedPath(ml(u));m=Ghe(xD(v.getSnapshot()),u,p,h)}return{renameLocation:m,renameFilename:u,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{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){N.assert(t.scope.type==="file");const{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){const i=ml(t.oldFilePath),o=ml(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{const m=h.getLanguageService().getEditsForFileRename(i,o,s,l),v=[];for(const A of m)u.has(A.fileName)||(p.push(A),v.push(A.fileName));for(const A of v)u.add(A)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){const m=o.getLanguageService(),v=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(I=>tL(l,u-l,I.start,I.length)&&I.code),A=t.errorCodes.find(I=>!v.includes(I));throw A!==void 0&&(h.message=`BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${v.join(", ")}); could have caused this error: ${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){N.assert(t.type==="file");const{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){const r=t.command;for(const i of bA(r)){const{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){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),N.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Hst(i,r))}:Kst(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){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Dh(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;const u=[],p=[],h=[],m=[],v=ml(i),A=this.projectService.ensureDefaultProjectForFile(v);for(const M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Su(M)?m.push(M):h.push(M);const R=[...u,...p,...h,...m].map(M=>({fileName:M,project:A}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=N.checkDefined(this.projectService.getScriptInfo(o));return Ot(i,u=>{const p=this.getPosition(u,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(h=>this.convertTextChangeToCodeEdit(h,p))}return u}mapSelectionRange(t,r){const i={textSpan:Dh(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=ml(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),nv.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Dh(t.span,r),selectionSpan:Dh(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Dh(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Dh(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&RX(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{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){const{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){const r=this.host.useCaseSensitiveFileNames?t:lh(t);return ga(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){N.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){N.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){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${w0(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,u,p,h,m,v,A;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${eM(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=sr)==null||r.instant(sr.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=od)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=sr)==null||o.push(sr.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);const{response:C,responseRequired:O}=this.executeCommand(R);if((s=sr)==null||s.pop(),this.logger.hasLevel(2)){const U=wst(this.hrtime(I)).toFixed(4);O?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${U}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${U}`)}(l=od)==null||l.logStopCommand(""+R.command,"Success"),(u=sr)==null||u.instant(sr.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!C}),C?this.doOutput(C,R.command,R.seq,!0):O&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(C){if((p=sr)==null||p.popAll(),C instanceof Ux){(h=od)==null||h.logStopCommand(""+(R&&R.command),"Canceled: "+C),(m=sr)==null||m.instant(sr.Phase.Session,"commandCanceled",{seq:R?.seq,command:R?.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(C,this.toStringMessage(t),M),(v=od)==null||v.logStopCommand(""+(R&&R.command),"Error: "+C),(A=sr)==null||A.instant(sr.Phase.Session,"commandError",{seq:R?.seq,command:R?.command,message:C.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+C.message+` `+C.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()}}}}),jI,SZ,DOe,NOe,$z,Qz,qhe,NM,UI,m8,Zst=T({"src/server/scriptVersionCache.ts"(){db(),fT(),jI=4,SZ=(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))(SZ||{}),DOe=class{constructor(){this.goSubtree=!0,this.lineIndex=new NM,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new UI,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;const i=NM.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);const l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let v=1;v=0;){const v=this.startPath[h];u=v.insertAt(p,u),h--,p=v}let m=u.length;for(;m>0;){const v=new UI;v.add(this.lineIndex.root),u=v.insertAt(this.lineIndex.root,u),m=u.length,this.lineIndex.root=v}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].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){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new m8(""):new UI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(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=u(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)}},NOe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return nL(yu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},$z=class pA{constructor(){this.changes=[],this.versions=new Array(pA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%pA.maxVersions}currentVersionToIndex(){return this.currentVersion%pA.maxVersions}edit(t,r,i){this.changes.push(new NOe(t,r,i)),(this.changes.length>pA.changeNumberThreshold||r>pA.changeLengthThreshold||i&&i.length>pA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new qhe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=pA.maxVersions&&(this.minVersion=this.currentVersion-pA.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){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return yu(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Qne(i)}else return;else return yL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new pA,i=new qhe(0,r,new NM);r.versions[r.currentVersion]=i;const o=NM.linesFromText(t);return i.index.load(o.lines),r}},$z.changeNumberThreshold=8,$z.changeLengthThreshold=256,$z.maxVersions=8,Qz=$z,qhe=class r7e{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 r7e&&this.cache===t.cache)return this.version<=t.version?yL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},NM=class xbe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{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){const r=this.getLineCount();if(t<=r){const{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){const 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());const o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return N.assert(r===0),i!==void 0?(this.load(xbe.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new DOe;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(u);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());N.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},UI=class Rbe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const 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 u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=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()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=N.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const 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;const i=this.children.length;t++;const o=t;if(t=0;A--)p[A].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){const o=Z_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${w0(o)}`),this.activeRequestCount0?this.activeRequestCount--:N.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const 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}}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:${w0(t)}`),this.installer.send(t)},i7e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Jhe.requestDelayMillis=100,Khe=Jhe}}),COe={};X(COe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>tM,Arguments:()=>fK,AutoImportProviderProject:()=>cZ,AuxiliaryProject:()=>sZ,CharRangeSection:()=>SZ,CloseFileWatcherEvent:()=>Kz,CommandNames:()=>jhe,ConfigFileDiagEvent:()=>jz,ConfiguredProject:()=>uZ,CreateDirectoryWatcherEvent:()=>Jz,CreateFileWatcherEvent:()=>qz,Errors:()=>nv,EventBeginInstallTypes:()=>w7,EventEndInstallTypes:()=>O7,EventInitializationFailed:()=>pK,EventTypesRegistry:()=>k7,ExternalProject:()=>Oz,GcTimer:()=>eZ,InferredProject:()=>aZ,LargeFileReferencedEvent:()=>Vz,LineIndex:()=>NM,LineLeaf:()=>m8,LineNode:()=>UI,LogLevel:()=>YQ,Msg:()=>$Q,OpenFileInfoTelemetryEvent:()=>mZ,Project:()=>pT,ProjectInfoTelemetryEvent:()=>Hz,ProjectKind:()=>RM,ProjectLanguageServiceStateEvent:()=>Uz,ProjectLoadingFinishEvent:()=>Gz,ProjectLoadingStartEvent:()=>Bz,ProjectReferenceProjectLoadKind:()=>gZ,ProjectService:()=>yZ,ProjectsUpdatedInBackgroundEvent:()=>d8,ScriptInfo:()=>rZ,ScriptVersionCache:()=>Qz,Session:()=>Hhe,TextStorage:()=>nZ,ThrottledOperations:()=>ZQ,TypingsCache:()=>iZ,TypingsInstallerAdapter:()=>Khe,allFilesAreJsOrDts:()=>Ehe,allRootFilesAreJsOrDts:()=>bhe,asNormalizedPath:()=>oOe,convertCompilerOptions:()=>Wz,convertFormatOptions:()=>XD,convertScriptKindName:()=>pZ,convertTypeAcquisition:()=>Ahe,convertUserPreferences:()=>Ihe,convertWatchOptions:()=>u8,countEachFileTypes:()=>l8,createInstallTypingsRequest:()=>Z_e,createModuleSpecifierCache:()=>whe,createNormalizedPathMap:()=>aOe,createPackageJsonCache:()=>Ohe,createSortedArray:()=>ihe,emptyArray:()=>hc,findArgument:()=>JRe,forEachResolvedProjectReferenceProject:()=>YD,formatDiagnosticToProtocol:()=>f8,formatMessage:()=>Whe,getBaseConfigFileName:()=>QQ,getLocationInNewDocument:()=>Ghe,hasArgument:()=>qRe,hasNoTypeScriptSource:()=>She,indent:()=>eM,isBackgroundProject:()=>c8,isConfigFile:()=>Phe,isConfiguredProject:()=>G0,isDynamicFileName:()=>s8,isExternalProject:()=>oZ,isInferredProject:()=>KD,isInferredProjectName:()=>ehe,makeAutoImportProviderProjectName:()=>nhe,makeAuxiliaryProjectName:()=>rhe,makeInferredProjectName:()=>the,maxFileSize:()=>zz,maxProgramSizeForNonTsFiles:()=>Fz,normalizedPathToPath:()=>a8,nowString:()=>KRe,nullCancellationToken:()=>Vhe,nullTypingsInstaller:()=>wz,projectContainsInfoDirectly:()=>VI,protocol:()=>vhe,removeSorted:()=>sOe,stringifyIndented:()=>w0,toEvent:()=>Fhe,toNormalizedPath:()=>ml,tryConvertScriptKindName:()=>dZ,typingsInstaller:()=>$_e,updateProjectIfDirty:()=>jp});var fT=T({"src/server/_namespaces/ts.server.ts"(){W7(),Q_e(),fst(),mst(),_st(),hst(),vst(),Tst(),Rst(),Mst(),Lst(),kst(),Qst(),Zst(),elt()}}),POe={};X(POe,{ANONYMOUS:()=>R5,AccessFlags:()=>GG,AssertionLevel:()=>pG,AssignmentDeclarationKind:()=>YG,AssignmentKind:()=>FU,Associativity:()=>BU,BreakpointResolver:()=>zY,BuilderFileEmit:()=>jJ,BuilderProgramKind:()=>UJ,BuilderState:()=>Mm,BundleFileSectionKind:()=>mV,CallHierarchy:()=>kI,CharacterCodes:()=>sV,CheckFlags:()=>OG,CheckMode:()=>zF,ClassificationType:()=>MK,ClassificationTypeNames:()=>PK,CommentDirectiveType:()=>EG,Comparison:()=>Be,CompletionInfoFlags:()=>AK,CompletionTriggerKind:()=>vK,Completions:()=>zI,ContainerFlags:()=>Mq,ContextFlags:()=>RG,Debug:()=>N,DiagnosticCategory:()=>F2,Diagnostics:()=>f,DocumentHighlights:()=>C5,ElementFlags:()=>BG,EmitFlags:()=>X6,EmitHint:()=>dV,EmitOnly:()=>TG,EndOfLineState:()=>RK,EnumKind:()=>wG,ExitStatus:()=>AG,ExportKind:()=>BX,Extension:()=>lV,ExternalEmitHelpers:()=>uV,FileIncludeKind:()=>B6,FilePreprocessingDiagnosticsKind:()=>SG,FileSystemEntryKind:()=>bV,FileWatcherEventKind:()=>vV,FindAllReferences:()=>Ws,FlattenLevel:()=>Yq,FlowFlags:()=>W2,ForegroundColorEscapeSequences:()=>wJ,FunctionFlags:()=>zU,GeneratedIdentifierFlags:()=>z6,GetLiteralTextFlags:()=>wU,GoToDefinition:()=>jD,HighlightSpanKind:()=>EK,IdentifierNameMap:()=>TI,IdentifierNameMultiMap:()=>Xq,ImportKind:()=>zX,ImportsNotUsedAsValues:()=>nV,IndentStyle:()=>SK,IndexFlags:()=>VG,IndexKind:()=>HG,InferenceFlags:()=>KG,InferencePriority:()=>JG,InlayHintKind:()=>bK,InlayHints:()=>PQ,InternalEmitFlags:()=>cV,InternalSymbolName:()=>WG,InvalidatedProjectKind:()=>dK,JSDocParsingMode:()=>gV,JsDoc:()=>B0,JsTyping:()=>G_,JsxEmit:()=>tV,JsxFlags:()=>vG,JsxReferenceKind:()=>jG,LanguageServiceMode:()=>hK,LanguageVariant:()=>oV,LexicalEnvironmentFlags:()=>fV,ListFormat:()=>_V,LogLevel:()=>mG,MemberOverrideStatus:()=>IG,ModifierFlags:()=>W6,ModuleDetectionKind:()=>$G,ModuleInstanceState:()=>Pq,ModuleKind:()=>ZN,ModuleResolutionKind:()=>Hx,ModuleSpecifierEnding:()=>XU,NavigateTo:()=>_de,NavigationBar:()=>Ide,NewLineKind:()=>rV,NodeBuilderFlags:()=>DG,NodeCheckFlags:()=>FG,NodeFactoryFlags:()=>rH,NodeFlags:()=>O6,NodeResolutionFeatures:()=>Dq,ObjectFlags:()=>U6,OperationCanceledException:()=>Ux,OperatorPrecedence:()=>GU,OrganizeImports:()=>Lm,OrganizeImportsMode:()=>yK,OuterExpressionKinds:()=>pV,OutliningElementsCollector:()=>wQ,OutliningSpanKind:()=>IK,OutputFileType:()=>xK,PackageJsonAutoImportPreference:()=>_K,PackageJsonDependencyGroup:()=>mK,PatternMatchKind:()=>P5,PollingInterval:()=>Y6,PollingWatchKind:()=>eV,PragmaKindFlags:()=>hV,PrivateIdentifierKind:()=>uH,ProcessLevel:()=>eJ,ProgramUpdateLevel:()=>hJ,QuotePreference:()=>LX,RelationComparisonResult:()=>F6,Rename:()=>Dz,ScriptElementKind:()=>NK,ScriptElementKindModifier:()=>CK,ScriptKind:()=>q6,ScriptSnapshot:()=>z7,ScriptTarget:()=>iV,SemanticClassificationFormat:()=>gK,SemanticMeaning:()=>MX,SemicolonPreference:()=>TK,SignatureCheckMode:()=>BF,SignatureFlags:()=>H6,SignatureHelp:()=>QO,SignatureKind:()=>UG,SmartSelectionRange:()=>FQ,SnippetKind:()=>K6,SortKind:()=>dG,StructureIsReused:()=>G6,SymbolAccessibility:()=>PG,SymbolDisplay:()=>tv,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>V6,SymbolFormatFlags:()=>CG,SyntaxKind:()=>w6,SyntheticSymbolKind:()=>MG,Ternary:()=>XG,ThrottledCancellationToken:()=>FY,TokenClass:()=>DK,TokenFlags:()=>bG,TransformFlags:()=>J6,TypeFacts:()=>FF,TypeFlags:()=>j6,TypeFormatFlags:()=>NG,TypeMapKind:()=>qG,TypePredicateKind:()=>LG,TypeReferenceSerializationKind:()=>kG,UnionReduction:()=>xG,UpToDateStatusType:()=>sK,VarianceFlags:()=>zG,Version:()=>vm,VersionRange:()=>k2,WatchDirectoryFlags:()=>aV,WatchDirectoryKind:()=>ZG,WatchFileKind:()=>QG,WatchLogLevel:()=>gJ,WatchType:()=>wc,accessPrivateIdentifier:()=>ple,addDisposableResourceHelper:()=>WW,addEmitFlags:()=>k_,addEmitHelper:()=>QA,addEmitHelpers:()=>Gg,addInternalEmitFlags:()=>YA,addNodeFactoryPatcher:()=>_Te,addObjectAllocatorPatcher:()=>moe,addRange:()=>qr,addRelatedInfo:()=>wa,addSyntheticLeadingComment:()=>pP,addSyntheticTrailingComment:()=>uW,addToSeen:()=>Rm,advancedAsyncSuperHelper:()=>Wk,affectsDeclarationPathOptionDeclarations:()=>uq,affectsEmitOptionDeclarations:()=>cq,allKeysStartWithDot:()=>PF,altDirectorySeparator:()=>q2,and:()=>N6,append:()=>xn,appendIfUnique:()=>Ng,arrayFrom:()=>zo,arrayIsEqualTo:()=>Km,arrayIsHomogeneous:()=>koe,arrayIsSorted:()=>E6,arrayOf:()=>sne,arrayReverseIterator:()=>$B,arrayToMap:()=>DE,arrayToMultiMap:()=>P2,arrayToNumericMap:()=>cne,arraysEqual:()=>Na,assertType:()=>XEe,assign:()=>Wx,assignHelper:()=>gW,asyncDelegator:()=>vW,asyncGeneratorHelper:()=>yW,asyncSuperHelper:()=>Ok,asyncValues:()=>bW,attachFileToDiagnostics:()=>HA,awaitHelper:()=>ZA,awaiterHelper:()=>SW,base64decode:()=>roe,base64encode:()=>noe,binarySearch:()=>xy,binarySearchKey:()=>yA,bindSourceFile:()=>Gse,breakIntoCharacterSpans:()=>lde,breakIntoWordSpans:()=>cde,buildLinkParts:()=>Mue,buildOpts:()=>bF,buildOverload:()=>Zwe,bundlerModuleNameResolver:()=>Pse,canBeConvertedToAsync:()=>$X,canHaveDecorators:()=>YS,canHaveExportModifier:()=>yk,canHaveFlowNode:()=>qL,canHaveIllegalDecorators:()=>zH,canHaveIllegalModifiers:()=>Hae,canHaveIllegalType:()=>UTe,canHaveIllegalTypeParameters:()=>Uae,canHaveJSDoc:()=>JL,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>x_,canJsonReportNoInputFiles:()=>PP,canProduceDiagnostics:()=>e7,canUsePropertyAccess:()=>PU,canWatchAffectingLocation:()=>vce,canWatchAtTypes:()=>yce,canWatchDirectoryOrFile:()=>E7,cartesianProduct:()=>vne,cast:()=>oa,chainBundle:()=>Pm,chainDiagnosticMessages:()=>jo,changeAnyExtension:()=>U2,changeCompilerHostLikeToUseCache:()=>Ww,changeExtension:()=>E0,changeFullExtension:()=>Fne,changesAffectModuleResolution:()=>x4,changesAffectingProgramStructure:()=>Bre,childIsDecorated:()=>AC,classElementOrClassElementParameterIsDecorated:()=>Aj,classHasClassThisAssignment:()=>$q,classHasDeclaredOrExplicitlyAssignedName:()=>Qq,classHasExplicitlyAssignedName:()=>$F,classOrConstructorParameterIsDecorated:()=>Oy,classPrivateFieldGetHelper:()=>kW,classPrivateFieldInHelper:()=>OW,classPrivateFieldSetHelper:()=>wW,classicNameResolver:()=>Wse,classifier:()=>bpe,cleanExtendedConfigCache:()=>l7,clear:()=>Vo,clearMap:()=>tp,clearSharedExtendedConfigFileWatcher:()=>fJ,climbPastPropertyAccess:()=>G7,climbPastPropertyOrElementAccess:()=>oue,clone:()=>nG,cloneCompilerOptions:()=>$K,closeFileWatcher:()=>Qm,closeFileWatcherOf:()=>Mf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Qne,collectExternalModuleInfo:()=>Hq,combine:()=>Ox,combinePaths:()=>Qr,commentPragmas:()=>z2,commonOptionsWithBuild:()=>fw,commonPackageFolders:()=>UU,compact:()=>C2,compareBooleans:()=>Rv,compareDataObjects:()=>mU,compareDiagnostics:()=>JC,compareDiagnosticsSkipRelatedInformation:()=>P3,compareEmitHelpers:()=>uae,compareNumberOfDirectorySeparators:()=>_k,comparePaths:()=>Cg,comparePathsCaseInsensitive:()=>S1e,comparePathsCaseSensitive:()=>E1e,comparePatternKeys:()=>xq,compareProperties:()=>_ne,compareStringsCaseInsensitive:()=>R6,compareStringsCaseInsensitiveEslintCompatible:()=>pne,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>L2,compareTextSpans:()=>x6,compareValues:()=>rl,compileOnSaveCommandLineOption:()=>dw,compilerOptionsAffectDeclarationPath:()=>Aoe,compilerOptionsAffectEmit:()=>Toe,compilerOptionsAffectSemanticDiagnostics:()=>Soe,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>rX,compose:()=>JEe,computeCommonSourceDirectoryOfFilenames:()=>$le,computeLineAndCharacterOfPosition:()=>Jx,computeLineOfPosition:()=>rC,computeLineStarts:()=>xA,computePositionOfLineAndCharacter:()=>r4,computeSignature:()=>nT,computeSignatureWithDiagnostics:()=>zJ,computeSuggestionDiagnostics:()=>KX,computedOptions:()=>mc,concatenate:()=>So,concatenateDiagnosticMessageChains:()=>yoe,consumesNodeCoreModules:()=>b5,contains:()=>Nr,containsIgnoredPath:()=>nP,containsObjectRestOrSpread:()=>nw,containsParseError:()=>oR,containsPath:()=>bm,convertCompilerOptionsForTelemetry:()=>mse,convertCompilerOptionsFromJson:()=>JAe,convertJsonOption:()=>$S,convertToBase64:()=>toe,convertToJson:()=>lw,convertToObject:()=>cse,convertToOptionsWithAbsolutePaths:()=>rq,convertToRelativePath:()=>nC,convertToTSConfig:()=>LAe,convertTypeAcquisitionFromJson:()=>KAe,copyComments:()=>aT,copyEntries:()=>R4,copyLeadingComments:()=>CD,copyProperties:()=>rG,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>uM,couldStartTrivia:()=>Vne,countWhere:()=>au,createAbstractBuilder:()=>eRe,createAccessorPropertyBackingField:()=>GH,createAccessorPropertyGetRedirector:()=>Zae,createAccessorPropertySetRedirector:()=>ese,createBaseNodeFactory:()=>Koe,createBinaryExpressionTrampoline:()=>lF,createBindingHelper:()=>jR,createBuildInfo:()=>Mw,createBuilderProgram:()=>BJ,createBuilderProgramUsingProgramBuildInfo:()=>hce,createBuilderStatusReporter:()=>Lce,createCacheWithRedirects:()=>yq,createCacheableExportInfoMap:()=>OX,createCachedDirectoryStructureHost:()=>a7,createClassNamedEvaluationHelperBlock:()=>yle,createClassThisAssignmentBlock:()=>hle,createClassifier:()=>gDe,createCommentDirectivesMap:()=>qre,createCompilerDiagnostic:()=>Hl,createCompilerDiagnosticForInvalidCustomType:()=>ise,createCompilerDiagnosticFromMessageChain:()=>C3,createCompilerHost:()=>Qle,createCompilerHostFromProgramHost:()=>rK,createCompilerHostWorker:()=>bJ,createDetachedDiagnostic:()=>wR,createDiagnosticCollection:()=>xR,createDiagnosticForFileFromMessageChain:()=>vj,createDiagnosticForNode:()=>kr,createDiagnosticForNodeArray:()=>lR,createDiagnosticForNodeArrayFromMessageChain:()=>IL,createDiagnosticForNodeFromMessageChain:()=>wg,createDiagnosticForNodeInSourceFile:()=>$f,createDiagnosticForRange:()=>iie,createDiagnosticMessageChainFromDiagnostic:()=>rie,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>ale,createDocumentRegistry:()=>$ue,createDocumentRegistryInternal:()=>jX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>HJ,createEmitHelperFactory:()=>cae,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Wae,createExpressionForJsxFragment:()=>Fae,createExpressionForObjectLiteralElementLike:()=>zae,createExpressionForPropertyName:()=>LH,createExpressionFromEntityName:()=>Xk,createExternalHelpersImportDeclarationIfNeeded:()=>OH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>O4,createForOfBindingStatement:()=>MH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>yJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Vle,createGetSymbolWalker:()=>Vse,createIncrementalCompilerHost:()=>oK,createIncrementalProgram:()=>Pce,createInputFiles:()=>gTe,createInputFilesWithFilePaths:()=>tH,createInputFilesWithFileTexts:()=>nH,createJsxFactoryExpression:()=>PH,createLanguageService:()=>mpe,createLanguageServiceSourceFile:()=>tz,createMemberAccessForPropertyName:()=>XS,createModeAwareCache:()=>EI,createModeAwareCacheKey:()=>OP,createModuleNotFoundChain:()=>D4,createModuleResolutionCache:()=>lD,createModuleResolutionLoader:()=>xJ,createModuleResolutionLoaderUsingGlobalCache:()=>Tce,createModuleSpecifierResolutionHost:()=>oT,createMultiMap:()=>Zp,createNodeConverters:()=>Yoe,createNodeFactory:()=>Dk,createOptionNameMap:()=>dF,createOverload:()=>KQ,createPackageJsonImportFilter:()=>fM,createPackageJsonInfo:()=>AX,createParenthesizerRules:()=>Xoe,createPatternMatcher:()=>nde,createPrependNodes:()=>LJ,createPrinter:()=>L0,createPrinterWithDefaults:()=>dJ,createPrinterWithRemoveComments:()=>h1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>pJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>f7,createProgramHost:()=>iK,createPropertyNameNodeForIdentifierOrLiteral:()=>K3,createQueue:()=>M2,createRange:()=>xf,createRedirectedBuilderProgram:()=>VJ,createResolutionCache:()=>JJ,createRuntimeTypeSerializer:()=>Tle,createScanner:()=>My,createSemanticDiagnosticsBuilderProgram:()=>Zxe,createSet:()=>iG,createSolutionBuilder:()=>hRe,createSolutionBuilderHost:()=>mRe,createSolutionBuilderWithWatch:()=>gRe,createSolutionBuilderWithWatchHost:()=>_Re,createSortedArray:()=>YB,createSourceFile:()=>iw,createSourceMapGenerator:()=>nle,createSourceMapSource:()=>yTe,createSuperAccessVariableStatement:()=>ZF,createSymbolTable:()=>ca,createSymlinkCache:()=>EU,createSystemWatchFunctions:()=>kne,createTextChange:()=>aO,createTextChangeFromStartLength:()=>t5,createTextChangeRange:()=>nL,createTextRangeFromNode:()=>eX,createTextRangeFromSpan:()=>e5,createTextSpan:()=>yu,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>sb,createTextSpanFromStringLiteralLikeContent:()=>ZK,createTextWriter:()=>ok,createTokenRange:()=>dU,createTypeChecker:()=>Yse,createTypeReferenceDirectiveResolutionCache:()=>DF,createTypeReferenceResolutionLoader:()=>u7,createUnparsedSourceFile:()=>eH,createWatchCompilerHost:()=>dRe,createWatchCompilerHostOfConfigFile:()=>Dce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Nce,createWatchFactory:()=>nK,createWatchHost:()=>tK,createWatchProgram:()=>pRe,createWatchStatusReporter:()=>Ace,createWriteFileMeasuringIO:()=>vJ,declarationNameToString:()=>Rs,decodeMappings:()=>Vq,decodedTextSpanIntersectsWith:()=>tL,decorateHelper:()=>pW,deduplicate:()=>RE,defaultIncludeSpec:()=>TF,defaultInitCompilerOptions:()=>EF,defaultMaximumTruncationLength:()=>Sk,detectSortCaseSensitivity:()=>KN,diagnosticCategoryName:()=>pS,diagnosticToString:()=>lT,directoryProbablyExists:()=>$m,directorySeparator:()=>al,displayPart:()=>ip,displayPartsToString:()=>OO,disposeEmitNodes:()=>iH,disposeResourcesHelper:()=>FW,documentSpansEqual:()=>lX,dumpTracingLegend:()=>Pne,elementAt:()=>Cy,elideNodes:()=>Qae,emitComments:()=>Uie,emitDetachedComments:()=>Hie,emitFiles:()=>r7,emitFilesAndReportErrors:()=>I7,emitFilesAndReportErrorsAndGetExitStatus:()=>Rce,emitModuleKindIsNonNodeESM:()=>M3,emitNewLineBeforeLeadingCommentOfPosition:()=>jie,emitNewLineBeforeLeadingComments:()=>Gie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Vie,emitSkippedWithNoDiagnostics:()=>y7,emitUsingBuildInfo:()=>Jle,emptyArray:()=>et,emptyFileSystemEntries:()=>aW,emptyMap:()=>L6,emptyOptions:()=>kf,emptySet:()=>Ene,endsWith:()=>Al,ensurePathIsNonModuleName:()=>NE,ensureScriptKind:()=>G3,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>mp,enumerateInsertsAndDeletes:()=>P6,equalOwnProperties:()=>lne,equateStringsCaseInsensitive:()=>r0,equateStringsCaseSensitive:()=>cS,equateValues:()=>Ny,esDecorateHelper:()=>_W,escapeJsxAttributeString:()=>$j,escapeLeadingUnderscores:()=>hl,escapeNonAsciiString:()=>ik,escapeSnippetText:()=>QE,escapeString:()=>ig,escapeTemplateSubstitution:()=>Xj,every:()=>Zn,expandPreOrPostfixIncrementOrDecrementExpression:()=>nF,explainFiles:()=>YJ,explainIfFileIsRedirectAndImpliedFormat:()=>$J,exportAssignmentIsAlias:()=>SR,exportStarHelper:()=>LW,expressionResultIsUnused:()=>Ooe,extend:()=>I6,extendsHelper:()=>TW,extensionFromPath:()=>$C,extensionIsTS:()=>U3,extensionsNotSupportingExtensionlessResolution:()=>Rk,externalHelpersModuleNameText:()=>Kv,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Tc,fileIncludeReasonToDiagnostics:()=>eK,fileShouldUseJavaScriptRequire:()=>PX,filter:()=>nr,filterMutate:()=>Xs,filterSemanticDiagnostics:()=>m7,find:()=>An,findAncestor:()=>Gn,findBestPatternMatch:()=>lG,findChildOfKind:()=>ys,findComputedPropertyNameCacheAssignment:()=>cF,findConfigFile:()=>Yle,findContainingList:()=>q7,findDiagnosticForNode:()=>jue,findFirstNonJsxWhitespaceToken:()=>uue,findIndex:()=>Br,findLast:()=>Oo,findLastIndex:()=>Bi,findListItemInfo:()=>cue,findMap:()=>Uo,findModifier:()=>RD,findNextToken:()=>v1,findPackageJson:()=>Gue,findPackageJsons:()=>TX,findPrecedingMatchingToken:()=>Q7,findPrecedingToken:()=>xc,findSuperStatementIndexPath:()=>KF,findTokenOnLeftOfPosition:()=>X7,findUseStrictPrologue:()=>wH,first:()=>Ha,firstDefined:()=>qt,firstDefinedIterator:()=>mn,firstIterator:()=>ZB,firstOrOnly:()=>DX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>S6,fixupCompilerOptions:()=>ZX,flatMap:()=>Pi,flatMapIterator:()=>Qp,flatMapToMutable:()=>Sc,flatten:()=>da,flattenCommaList:()=>tse,flattenDestructuringAssignment:()=>ZS,flattenDestructuringBinding:()=>_1,flattenDiagnosticMessageText:()=>z_,forEach:()=>Xe,forEachAncestor:()=>Gre,forEachAncestorDirectory:()=>Sm,forEachChild:()=>Ho,forEachChildRecursively:()=>NP,forEachEmittedFile:()=>sJ,forEachEnclosingBlockScopeContainer:()=>eie,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>FX,forEachImportClauseDeclaration:()=>o3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>Y2,forEachNameInAccessChainWalkingLeft:()=>poe,forEachPropertyAssignment:()=>pR,forEachResolvedProjectReference:()=>DJ,forEachReturnStatement:()=>FE,forEachRight:()=>Ft,forEachTrailingCommentRange:()=>$2,forEachTsConfigPropArray:()=>NL,forEachUnique:()=>uX,forEachYieldExpression:()=>aie,forSomeAncestorDirectory:()=>BSe,formatColorAndReset:()=>g1,formatDiagnostic:()=>EJ,formatDiagnostics:()=>kxe,formatDiagnosticsWithColorAndContext:()=>Zle,formatGeneratedName:()=>D0,formatGeneratedNamePart:()=>rD,formatLocation:()=>SJ,formatMessage:()=>yU,formatStringFromArgs:()=>sg,formatting:()=>Oc,fullTripleSlashAMDReferencePathRegEx:()=>WU,fullTripleSlashReferencePathRegEx:()=>OU,generateDjb2Hash:()=>eC,generateTSConfig:()=>FAe,generatorHelper:()=>CW,getAdjustedReferenceLocation:()=>HK,getAdjustedRenameLocation:()=>K7,getAliasDeclarationFromName:()=>Fj,getAllAccessorDeclarations:()=>LS,getAllDecoratorsOfClass:()=>Jq,getAllDecoratorsOfClassElement:()=>YF,getAllJSDocTags:()=>d4,getAllJSDocTagsOfKind:()=>$1e,getAllKeys:()=>HEe,getAllProjectOutputs:()=>n7,getAllSuperTypeNodes:()=>NC,getAllUnscopedEmitHelpers:()=>cH,getAllowJSCompilerOption:()=>Xv,getAllowSyntheticDefaultImports:()=>OS,getAncestor:()=>v0,getAnyExtensionFromPath:()=>qx,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>kA,getAssignedName:()=>c4,getAssignedNameOfIdentifier:()=>jP,getAssignmentDeclarationKind:()=>Bl,getAssignmentDeclarationPropertyAccessKind:()=>GL,getAssignmentTargetKind:()=>FA,getAutomaticTypeDirectiveNames:()=>xF,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>rk,getBuildInfo:()=>i7,getBuildInfoFileVersionMap:()=>GJ,getBuildInfoText:()=>qle,getBuildOrderFromAnyBuildOrder:()=>C7,getBuilderCreationParameters:()=>v7,getBuilderFileEmit:()=>ab,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>jE,getClassLikeDeclarationOfSymbol:()=>zg,getCombinedLocalAndExportSymbolFlags:()=>MR,getCombinedModifierFlags:()=>l0,getCombinedNodeFlags:()=>Ly,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>MV,getCommentRange:()=>w_,getCommonSourceDirectory:()=>YP,getCommonSourceDirectoryOfConfig:()=>mD,getCompilerOptionValue:()=>k3,getCompilerOptionsDiffValue:()=>OAe,getConditions:()=>ib,getConfigFileParsingDiagnostics:()=>tT,getConstantValue:()=>nae,getContainerFlags:()=>Cq,getContainerNode:()=>iT,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>H4,getContainingClassStaticBlock:()=>_ie,getContainingFunction:()=>Gp,getContainingFunctionDeclaration:()=>mie,getContainingFunctionOrClassStaticBlock:()=>U4,getContainingNodeArray:()=>Woe,getContainingObjectLiteralElement:()=>WO,getContextualTypeFromParent:()=>p5,getContextualTypeFromParentOrAncestorTypeNode:()=>J7,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>jle,getDeclarationEmitExtensionForPath:()=>m3,getDeclarationEmitOutputFilePath:()=>Oie,getDeclarationEmitOutputFilePathWorker:()=>f3,getDeclarationFileExtension:()=>HH,getDeclarationFromName:()=>DC,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>fl,getDeclarationsOfKind:()=>Fre,getDeclaredExpandoInitializer:()=>WL,getDecorators:()=>Lv,getDefaultCompilerOptions:()=>ez,getDefaultExportInfoWorker:()=>N5,getDefaultFormatCodeSettings:()=>F7,getDefaultLibFileName:()=>Z2,getDefaultLibFilePath:()=>_pe,getDefaultLikeExportInfo:()=>D5,getDiagnosticText:()=>xAe,getDiagnosticsWithinSpan:()=>Uue,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>qJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Ece,getDocumentPositionMapper:()=>JX,getDocumentSpansEqualityComparer:()=>cX,getESModuleInterop:()=>yh,getEditsForFileRename:()=>Zue,getEffectiveBaseTypeNode:()=>D_,getEffectiveConstraintOfTypeParameter:()=>Qx,getEffectiveContainerForJSDocTemplateTag:()=>a3,getEffectiveImplementsTypeNodes:()=>TR,getEffectiveInitializer:()=>OL,getEffectiveJSDocHost:()=>y0,getEffectiveModifierFlags:()=>dd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Xie,getEffectiveModifierFlagsNoCache:()=>Yie,getEffectiveReturnTypeNode:()=>nm,getEffectiveSetAccessorTypeAnnotationNode:()=>Bie,getEffectiveTypeAnnotationNode:()=>vu,getEffectiveTypeParameterDeclarations:()=>kv,getEffectiveTypeRoots:()=>wP,getElementOrPropertyAccessArgumentExpressionOrName:()=>i3,getElementOrPropertyAccessName:()=>Og,getElementsOfBindingOrAssignmentPattern:()=>nD,getEmitDeclarations:()=>Nf,getEmitFlags:()=>ja,getEmitHelpers:()=>dW,getEmitModuleDetectionKind:()=>VU,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>fd,getEmitScriptTarget:()=>os,getEmitStandardClassFields:()=>Eoe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>yj,getEncodedSemanticClassifications:()=>GX,getEncodedSyntacticClassifications:()=>VX,getEndLinePosition:()=>EL,getEntityNameFromTypeNode:()=>ML,getEntrypointsFromPackageJsonInfo:()=>Tq,getErrorCountForSummary:()=>T7,getErrorSpanForNode:()=>SS,getErrorSummaryText:()=>Ice,getEscapedTextOfIdentifierOrLiteral:()=>MC,getEscapedTextOfJsxAttributeName:()=>aP,getEscapedTextOfJsxNamespacedName:()=>KA,getExpandoInitializer:()=>h0,getExportAssignmentExpression:()=>zj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>sle,getExpressionAssociativity:()=>qj,getExpressionPrecedence:()=>kC,getExternalHelpersModuleName:()=>$k,getExternalModuleImportEqualsDeclarationExpression:()=>IC,getExternalModuleName:()=>yR,getExternalModuleNameFromDeclaration:()=>kie,getExternalModuleNameFromPath:()=>Zj,getExternalModuleNameLiteral:()=>gI,getExternalModuleRequireArgument:()=>xj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>ace,getFileMatcherPatterns:()=>B3,getFileNamesFromConfigSpecs:()=>MP,getFileWatcherEventKind:()=>yV,getFilesInErrorForSummary:()=>A7,getFirstConstructorWithBody:()=>og,getFirstIdentifier:()=>Vp,getFirstNonSpaceCharacterPosition:()=>wue,getFirstProjectOutput:()=>uJ,getFixableErrorSpanExpression:()=>xX,getFormatCodeSettingsForWriting:()=>A5,getFullWidth:()=>vL,getFunctionFlags:()=>Vc,getHeritageClause:()=>ZL,getHostSignatureFromJSDoc:()=>g0,getIdentifierAutoGenerate:()=>TTe,getIdentifierGeneratedImportReference:()=>lae,getIdentifierTypeArguments:()=>WS,getImmediatelyInvokedFunctionExpression:()=>AS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>PJ,getImportNeedsImportDefaultHelper:()=>Uq,getImportNeedsImportStarHelper:()=>qF,getIndentSize:()=>DR,getIndentString:()=>d3,getInferredLibraryNameResolveFrom:()=>p7,getInitializedVariables:()=>UC,getInitializerOfBinaryExpression:()=>Pj,getInitializerOfBindingOrAssignmentElement:()=>Zk,getInterfaceBaseTypeNodes:()=>CC,getInternalEmitFlags:()=>Am,getInvokedExpression:()=>K4,getIsolatedModules:()=>om,getJSDocAugmentsTag:()=>sre,getJSDocClassTag:()=>kV,getJSDocCommentRanges:()=>Ej,getJSDocCommentsAndTags:()=>Lj,getJSDocDeprecatedTag:()=>wV,getJSDocDeprecatedTagNoCache:()=>mre,getJSDocEnumTag:()=>OV,getJSDocHost:()=>DS,getJSDocImplementsTags:()=>lre,getJSDocOverloadTags:()=>wj,getJSDocOverrideTagNoCache:()=>fre,getJSDocParameterTags:()=>$x,getJSDocParameterTagsNoCache:()=>rre,getJSDocPrivateTag:()=>q1e,getJSDocPrivateTagNoCache:()=>ure,getJSDocProtectedTag:()=>J1e,getJSDocProtectedTagNoCache:()=>dre,getJSDocPublicTag:()=>H1e,getJSDocPublicTagNoCache:()=>cre,getJSDocReadonlyTag:()=>K1e,getJSDocReadonlyTagNoCache:()=>pre,getJSDocReturnTag:()=>_re,getJSDocReturnType:()=>iL,getJSDocRoot:()=>ER,getJSDocSatisfiesExpressionType:()=>LU,getJSDocSatisfiesTag:()=>WV,getJSDocTags:()=>p0,getJSDocTagsNoCache:()=>Y1e,getJSDocTemplateTag:()=>X1e,getJSDocThisTag:()=>u4,getJSDocType:()=>d0,getJSDocTypeAliasName:()=>FH,getJSDocTypeAssertionType:()=>iF,getJSDocTypeParameterDeclarations:()=>y3,getJSDocTypeParameterTags:()=>ire,getJSDocTypeParameterTagsNoCache:()=>ore,getJSDocTypeTag:()=>u0,getJSXImplicitImportBase:()=>O3,getJSXRuntimeImport:()=>W3,getJSXTransformEnabled:()=>w3,getKeyForCompilerOptions:()=>gq,getLanguageVariant:()=>pk,getLastChild:()=>_U,getLeadingCommentRanges:()=>Xh,getLeadingCommentRangesOfNode:()=>bj,getLeftmostAccessExpression:()=>LR,getLeftmostExpression:()=>kR,getLibraryNameFromLibFileName:()=>NJ,getLineAndCharacterOfPosition:()=>bs,getLineInfo:()=>Bq,getLineOfLocalPosition:()=>OC,getLineOfLocalPositionFromLineMap:()=>PS,getLineStartPositionForPosition:()=>lm,getLineStarts:()=>Pg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>loe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>soe,getLinesBetweenPositions:()=>iC,getLinesBetweenRangeEndAndRangeStart:()=>pU,getLinesBetweenRangeEndPositions:()=>FSe,getLiteralText:()=>Jre,getLocalNameForExternalImport:()=>tD,getLocalSymbolForExportDefault:()=>PR,getLocaleSpecificMessage:()=>Wo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>dX,getMappedDocumentSpan:()=>l5,getMappedLocation:()=>sM,getMatchedFileSpec:()=>QJ,getMatchedIncludeSpec:()=>ZJ,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>rT,getMembersOfDeclaration:()=>sie,getModeForFileReference:()=>Fw,getModeForResolutionAtIndex:()=>ece,getModeForUsageLocation:()=>AJ,getModifiedTime:()=>TA,getModifiers:()=>PE,getModuleInstanceState:()=>Hg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>Doe,getModuleSpecifierResolverHost:()=>iX,getNameForExportedSymbol:()=>E5,getNameFromImportAttribute:()=>Q3,getNameFromIndexInfo:()=>tie,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>gU,getNameOfCompilerOptionValue:()=>nq,getNameOfDeclaration:()=>Mo,getNameOfExpando:()=>Nj,getNameOfJSDocTypedef:()=>nre,getNameOrArgument:()=>BL,getNameTable:()=>LY,getNamesForExportedSymbol:()=>Hue,getNamespaceDeclarationNode:()=>vR,getNewLineCharacter:()=>Gy,getNewLineKind:()=>vO,getNewLineOrDefaultFromHost:()=>Qy,getNewTargetContainer:()=>gie,getNextJSDocCommentLocation:()=>kj,getNodeForGeneratedName:()=>tw,getNodeId:()=>as,getNodeKind:()=>y1,getNodeModifiers:()=>iM,getNodeModulePathParts:()=>X3,getNonAssignedNameOfDeclaration:()=>l4,getNonAssignmentOperatorForCompoundAssignment:()=>BP,getNonAugmentationDeclaration:()=>pj,getNonDecoratorTokenPosOfNode:()=>sj,getNormalizedAbsolutePath:()=>go,getNormalizedAbsolutePathWithoutRoot:()=>AV,getNormalizedPathComponents:()=>j2,getObjectFlags:()=>Or,getOperator:()=>Kj,getOperatorAssociativity:()=>Jj,getOperatorPrecedence:()=>nk,getOptionFromName:()=>QH,getOptionsForLibraryResolution:()=>vq,getOptionsNameMap:()=>oD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>jae,getOrUpdate:()=>t0,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>DSe,getOutputDeclarationFileName:()=>XP,getOutputDeclarationFileNameWorker:()=>lJ,getOutputExtension:()=>t7,getOutputFileNames:()=>Mxe,getOutputJSFileNameWorker:()=>cJ,getOutputPathsFor:()=>KP,getOutputPathsForBundle:()=>JP,getOwnEmitOutputFilePath:()=>wie,getOwnKeys:()=>Kh,getOwnValues:()=>vA,getPackageJsonInfo:()=>d1,getPackageJsonTypesVersionsPaths:()=>IF,getPackageJsonsVisibleToFile:()=>Vue,getPackageNameFromTypesPackageName:()=>WP,getPackageScopeForPath:()=>Ew,getParameterSymbolFromJSDoc:()=>KL,getParameterTypeNode:()=>XSe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>aw,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>xV,getPathFromPathComponents:()=>Cv,getPathUpdater:()=>HX,getPathsBasePath:()=>_3,getPatternFromSpec:()=>Ioe,getPendingEmitKind:()=>vD,getPositionOfLineAndCharacter:()=>K2,getPossibleGenericSignatures:()=>JK,getPossibleOriginalInputExtensionForExtension:()=>Wie,getPossibleTypeArgumentsInfo:()=>KK,getPreEmitDiagnostics:()=>Lxe,getPrecedingNonSpaceCharacterPosition:()=>u5,getPrivateIdentifier:()=>Kq,getProperties:()=>qq,getProperty:()=>T6,getPropertyArrayElementValue:()=>fie,getPropertyAssignmentAliasLikeExpression:()=>Cie,getPropertyNameForPropertyNameNode:()=>NS,getPropertyNameForUniqueESSymbol:()=>xSe,getPropertyNameFromType:()=>im,getPropertyNameOfBindingOrAssignmentElement:()=>WH,getPropertySymbolFromBindingElement:()=>s5,getPropertySymbolsFromContextualType:()=>nz,getQuoteFromPreference:()=>aX,getQuotePreference:()=>uf,getRangesWhere:()=>XB,getRefactorContextSpan:()=>PI,getReferencedFileLocation:()=>$P,getRegexFromPattern:()=>qv,getRegularExpressionForWildcard:()=>KC,getRegularExpressionsForWildcards:()=>F3,getRelativePathFromDirectory:()=>Em,getRelativePathFromFile:()=>H2,getRelativePathToDirectoryOrUrl:()=>IA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>QK,getResolutionDiagnostic:()=>kJ,getResolutionModeOverride:()=>_D,getResolveJsonModule:()=>T0,getResolvePackageJsonExports:()=>rW,getResolvePackageJsonImports:()=>iW,getResolvedExternalModuleName:()=>p3,getRestIndicatorOfBindingOrAssignmentElement:()=>aF,getRestParameterElementType:()=>Sj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>C_,getRootDirectoryOfResolutionCache:()=>Sce,getRootLength:()=>dh,getRootPathSplitLength:()=>iRe,getScriptKind:()=>hX,getScriptKindFromFileName:()=>V3,getScriptTargetFeatures:()=>tW,getSelectedEffectiveModifierFlags:()=>GA,getSelectedSyntacticModifierFlags:()=>Jie,getSemanticClassifications:()=>Xue,getSemanticJsxChildren:()=>IR,getSetAccessorTypeAnnotationNode:()=>Fie,getSetAccessorValueParameter:()=>WC,getSetExternalModuleIndicator:()=>fk,getShebang:()=>o4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Mj,getSingleVariableOfVariableStatement:()=>WA,getSnapshotText:()=>xD,getSnippetElement:()=>oH,getSourceFileOfModule:()=>C4,getSourceFileOfNode:()=>jn,getSourceFilePathInNewDir:()=>h3,getSourceFilePathInNewDirWorker:()=>g3,getSourceFileVersionAsHashFromText:()=>x7,getSourceFilesToEmit:()=>eU,getSourceMapRange:()=>jy,getSourceMapper:()=>dde,getSourceTextOfNodeFromSourceFile:()=>wE,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>YN,getStartPositionOfLine:()=>Gv,getStartPositionOfRange:()=>jC,getStartsOnNewLine:()=>dP,getStaticPropertiesAndClassStaticBlock:()=>XF,getStrictOptionValue:()=>pd,getStringComparer:()=>Fx,getSubPatternFromSpec:()=>z3,getSuperCallFromStatement:()=>JF,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>PY,getSupportedExtensions:()=>XC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>mk,getSwitchedType:()=>EX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>ek,getSymbolTarget:()=>gX,getSyntacticClassifications:()=>Yue,getSyntacticModifierFlags:()=>Uv,getSyntacticModifierFlagsNoCache:()=>iU,getSynthesizedDeepClone:()=>cl,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>b1,getSynthesizedDeepClonesWithReplacements:()=>yX,getSyntheticLeadingComments:()=>VR,getSyntheticTrailingComments:()=>Lk,getTargetLabel:()=>V7,getTargetOfBindingOrAssignmentElement:()=>rb,getTemporaryModuleResolutionState:()=>bw,getTextOfConstantValue:()=>Kre,getTextOfIdentifierOrLiteral:()=>em,getTextOfJSDocComment:()=>aL,getTextOfJsxAttributeName:()=>Ek,getTextOfJsxNamespacedName:()=>sP,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>vC,getTextOfPropertyName:()=>sR,getThisContainer:()=>Fd,getThisParameter:()=>HE,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>m0,getTokenSourceMapRange:()=>ETe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>ID,getTrailingCommentRanges:()=>o0,getTrailingSemicolonDeferringWriter:()=>Qj,getTransformFlagsSubtreeExclusions:()=>$oe,getTransformers:()=>oJ,getTsBuildInfoEmitOutputFilePath:()=>Ky,getTsConfigObjectLiteralExpression:()=>TC,getTsConfigPropArrayElementValue:()=>j4,getTypeAnnotationNode:()=>zie,getTypeArgumentOrTypeParameterList:()=>yue,getTypeKeywordOfTypeOnlyImport:()=>sX,getTypeNode:()=>aae,getTypeNodeIfAccessible:()=>pM,getTypeParameterFromJsDoc:()=>Aie,getTypeParameterOwner:()=>B1e,getTypesPackageName:()=>MF,getUILocale:()=>fne,getUniqueName:()=>sT,getUniqueSymbolId:()=>kue,getUseDefineForClassFields:()=>uP,getWatchErrorSummaryDiagnosticMessage:()=>KJ,getWatchFactory:()=>_J,group:()=>XN,groupBy:()=>A6,guessIndentation:()=>Ore,handleNoEmitOptions:()=>MJ,hasAbstractModifier:()=>KE,hasAccessorModifier:()=>P_,hasAmbientModifier:()=>rU,hasChangesInResolutions:()=>ij,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>J3,hasDecorators:()=>If,hasDocComment:()=>hue,hasDynamicName:()=>jv,hasEffectiveModifier:()=>hp,hasEffectiveModifiers:()=>v3,hasEffectiveReadonlyModifier:()=>FC,hasExtension:()=>AA,hasIndexSignature:()=>bX,hasInitializer:()=>zv,hasInvalidEscape:()=>Yj,hasJSDocNodes:()=>Fp,hasJSDocParameterTags:()=>are,hasJSFileExtension:()=>XE,hasJsonModuleEmitEnabled:()=>L3,hasOnlyExpressionInitializer:()=>vS,hasOverrideModifier:()=>b3,hasPossibleExternalModuleReference:()=>Zre,hasProperty:()=>xs,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>OA,hasRecordedExternalHelpers:()=>Vae,hasResolutionModeOverride:()=>Voe,hasRestParameter:()=>ej,hasScopeMarker:()=>Dre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>Zr,hasSyntacticModifiers:()=>qie,hasTSFileExtension:()=>JA,hasTabstop:()=>zoe,hasTrailingDirectorySeparator:()=>Py,hasType:()=>A4,hasTypeArguments:()=>ESe,hasZeroOrOneAsteriskCharacter:()=>bU,helperString:()=>lH,hostGetCanonicalFileName:()=>Fy,hostUsesCaseSensitiveFileNames:()=>NR,idText:()=>Sr,identifierIsThisKeyword:()=>nU,identifierToKeywordKind:()=>c0,identity:()=>nl,identitySourceMapConsumer:()=>HF,ignoreSourceNewlines:()=>sH,ignoredPaths:()=>V2,importDefaultHelper:()=>MW,importFromModuleSpecifier:()=>RC,importNameElisionDisabled:()=>vU,importStarHelper:()=>wk,indexOfAnyCharCode:()=>Ec,indexOfNode:()=>aR,indicesOf:()=>N2,inferredTypesContainingFile:()=>yD,injectClassNamedEvaluationHelperBlockIfMissing:()=>QF,injectClassThisAssignmentIfMissing:()=>gle,insertImports:()=>aM,insertLeadingStatement:()=>BTe,insertSorted:()=>xv,insertStatementAfterCustomPrologue:()=>bS,insertStatementAfterStandardPrologue:()=>dSe,insertStatementsAfterCustomPrologue:()=>oj,insertStatementsAfterStandardPrologue:()=>Zh,intersperse:()=>co,intrinsicTagNameToString:()=>kU,introducesArgumentsExoticObject:()=>die,inverseJsxOptionMap:()=>LP,isAbstractConstructorSymbol:()=>coe,isAbstractModifier:()=>hae,isAccessExpression:()=>ws,isAccessibilityModifier:()=>YK,isAccessor:()=>Ov,isAccessorModifier:()=>yae,isAliasSymbolDeclaration:()=>TSe,isAliasableExpression:()=>QL,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>mj,isAnonymousFunctionDefinition:()=>LC,isAnyDirectorySeparator:()=>EV,isAnyImportOrBareOrAccessedRequire:()=>Qre,isAnyImportOrReExport:()=>TL,isAnyImportSyntax:()=>ES,isAnySupportedFileExtension:()=>KSe,isApplicableVersionedTypesKey:()=>Tw,isArgumentExpressionOfElementAccess:()=>zK,isArray:()=>To,isArrayBindingElement:()=>y4,isArrayBindingOrAssignmentElement:()=>fL,isArrayBindingOrAssignmentPattern:()=>KV,isArrayBindingPattern:()=>t1,isArrayLiteralExpression:()=>md,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Yy,isArrayTypeNode:()=>Vk,isArrowFunction:()=>Gs,isAsExpression:()=>Uk,isAssertClause:()=>Iae,isAssertEntry:()=>MTe,isAssertionExpression:()=>yS,isAssertsKeyword:()=>mae,isAssignmentDeclaration:()=>xC,isAssignmentExpression:()=>Lc,isAssignmentOperator:()=>zy,isAssignmentPattern:()=>hC,isAssignmentTarget:()=>rg,isAsteriskToken:()=>Fk,isAsyncFunction:()=>PC,isAsyncModifier:()=>mP,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>eb,isAwaitKeyword:()=>_H,isBigIntLiteral:()=>zW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>$ae,isBindableObjectDefinePropertyCall:()=>xS,isBindableStaticAccessExpression:()=>GE,isBindableStaticElementAccessExpression:()=>r3,isBindableStaticNameExpression:()=>RS,isBindingElement:()=>Qa,isBindingElementOfBareOrAccessedRequire:()=>bie,isBindingName:()=>hS,isBindingOrAssignmentElement:()=>Sre,isBindingOrAssignmentPattern:()=>dL,isBindingPattern:()=>ta,isBlock:()=>Xo,isBlockOrCatchScoped:()=>lj,isBlockScope:()=>_j,isBlockScopedContainerTopLevel:()=>$re,isBooleanLiteral:()=>_C,isBreakOrContinueStatement:()=>dC,isBreakStatement:()=>NTe,isBuildInfoFile:()=>Hle,isBuilderProgram:()=>xce,isBundle:()=>SH,isBundleFileTextLike:()=>doe,isCallChain:()=>mS,isCallExpression:()=>sa,isCallExpressionTarget:()=>LK,isCallLikeExpression:()=>kE,isCallLikeOrFunctionLikeExpression:()=>XV,isCallOrNewExpression:()=>I_,isCallOrNewExpressionTarget:()=>kK,isCallSignatureDeclaration:()=>oI,isCallToHelper:()=>fP,isCaseBlock:()=>EP,isCaseClause:()=>XR,isCaseKeyword:()=>vae,isCaseOrDefaultClause:()=>S4,isCatchClause:()=>l1,isCatchClauseVariableDeclaration:()=>Foe,isCatchClauseVariableDeclarationOrBindingElement:()=>cj,isCheckJsEnabledForFile:()=>gk,isChildOfNodeWithKind:()=>fSe,isCircularBuildOrder:()=>xI,isClassDeclaration:()=>Ic,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>bre,isClassLike:()=>ui,isClassMemberModifier:()=>HV,isClassNamedEvaluationHelperBlock:()=>II,isClassOrTypeElement:()=>g4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>VP,isCollapsedRange:()=>WSe,isColonToken:()=>pae,isCommaExpression:()=>Yk,isCommaListExpression:()=>yP,isCommaSequence:()=>xP,isCommaToken:()=>dae,isComment:()=>Z7,isCommonJsExportPropertyAssignment:()=>G4,isCommonJsExportedExpression:()=>cie,isCompoundAssignment:()=>zP,isComputedNonLiteralName:()=>AL,isComputedPropertyName:()=>Za,isConciseBody:()=>b4,isConditionalExpression:()=>KR,isConditionalTypeNode:()=>cI,isConstTypeReference:()=>Lg,isConstructSignatureDeclaration:()=>Bk,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>UR,isContextualKeyword:()=>l3,isContinueStatement:()=>DTe,isCustomPrologue:()=>DL,isDebuggerStatement:()=>CTe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>uL,isDeclarationFileName:()=>Su,isDeclarationName:()=>Wg,isDeclarationNameOfEnumOrNamespace:()=>fU,isDeclarationReadonly:()=>W4,isDeclarationStatement:()=>Mre,isDeclarationWithTypeParameterChildren:()=>gj,isDeclarationWithTypeParameters:()=>hj,isDecorator:()=>Eu,isDecoratorTarget:()=>rue,isDefaultClause:()=>TP,isDefaultImport:()=>wA,isDefaultModifier:()=>jW,isDefaultedExpandoInitializer:()=>Eie,isDeleteExpression:()=>Sae,isDeleteTarget:()=>Wj,isDeprecatedDeclaration:()=>S5,isDestructuringAssignment:()=>By,isDiagnosticWithLocation:()=>IX,isDiskPathRoot:()=>SV,isDoStatement:()=>xTe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>GW,isDottedName:()=>BC,isDynamicName:()=>u3,isESSymbolIdentifier:()=>RSe,isEffectiveExternalModule:()=>LA,isEffectiveModuleDeclaration:()=>Yre,isEffectiveStrictModeSourceFile:()=>fj,isElementAccessChain:()=>FV,isElementAccessExpression:()=>Qs,isEmittedFileOfProgram:()=>Xle,isEmptyArrayLiteral:()=>eoe,isEmptyBindingElement:()=>ere,isEmptyBindingPattern:()=>Zne,isEmptyObjectLiteral:()=>cU,isEmptyStatement:()=>vH,isEmptyStringLiteral:()=>Ij,isEntityName:()=>Zd,isEntityNameExpression:()=>Gl,isEnumConst:()=>WE,isEnumDeclaration:()=>I0,isEnumMember:()=>c1,isEqualityOperatorKind:()=>f5,isEqualsGreaterThanToken:()=>fae,isExclamationToken:()=>zk,isExcludedFile:()=>dse,isExclusivelyTypeOnlyImportOrExport:()=>TJ,isExpandoPropertyDeclaration:()=>$3,isExportAssignment:()=>kl,isExportDeclaration:()=>Yl,isExportModifier:()=>rI,isExportName:()=>rF,isExportNamespaceAsDefaultDeclaration:()=>L4,isExportOrDefaultModifier:()=>ew,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>IS,isExportsOrModuleExportsOrAlias:()=>p1,isExpression:()=>vt,isExpressionNode:()=>tg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>sue,isExpressionOfOptionalChainRoot:()=>m4,isExpressionStatement:()=>eu,isExpressionWithTypeArguments:()=>Hy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>E3,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>OE,isExternalModuleImportEqualsDeclaration:()=>_0,isExternalModuleIndicator:()=>mL,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>zp,isFileLevelReservedGeneratedIdentifier:()=>cL,isFileLevelUniqueName:()=>P4,isFileProbablyExternalModule:()=>rw,isFirstDeclarationOfSymbolParameter:()=>pX,isFixablePromiseHandler:()=>YX,isForInOrOfStatement:()=>tR,isForInStatement:()=>XW,isForInitializer:()=>Af,isForOfStatement:()=>Hk,isForStatement:()=>jS,isFunctionBlock:()=>zE,isFunctionBody:()=>$V,isFunctionDeclaration:()=>Ac,isFunctionExpression:()=>Os,isFunctionExpressionOrArrowFunction:()=>$E,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>Bs,isFunctionLikeKind:()=>NA,isFunctionLikeOrClassStaticBlockDeclaration:()=>eR,isFunctionOrConstructorTypeNode:()=>Ere,isFunctionOrModuleBlock:()=>qV,isFunctionSymbol:()=>Tie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>ASe,isGeneratedIdentifier:()=>sl,isGeneratedPrivateIdentifier:()=>_S,isGetAccessor:()=>Fv,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>p4,isGlobalDeclaration:()=>pDe,isGlobalScopeAugmentation:()=>R_,isGrammarError:()=>Hre,isHeritageClause:()=>of,isHoistedFunction:()=>z4,isHoistedVariableStatement:()=>B4,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Vj,isIdentifierName:()=>Nie,isIdentifierOrThisTypeNode:()=>Jae,isIdentifierPart:()=>a0,isIdentifierStart:()=>Yh,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>pie,isIdentifierTypeReference:()=>Loe,isIfStatement:()=>VS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>TU,isImportAttribute:()=>xae,isImportAttributeName:()=>vre,isImportAttributes:()=>pI,isImportCall:()=>Bp,isImportClause:()=>Eh,isImportDeclaration:()=>kc,isImportEqualsDeclaration:()=>tu,isImportKeyword:()=>hP,isImportMeta:()=>uR,isImportOrExportSpecifier:()=>DA,isImportOrExportSpecifierName:()=>Lue,isImportSpecifier:()=>np,isImportTypeAssertionContainer:()=>PTe,isImportTypeNode:()=>cg,isImportableFile:()=>WX,isInComment:()=>Xy,isInCompoundLikeAssignment:()=>Oj,isInExpressionContext:()=>Y4,isInJSDoc:()=>kL,isInJSFile:()=>lr,isInJSXText:()=>mue,isInJsonFile:()=>Q4,isInNonReferenceComment:()=>Eue,isInReferenceComment:()=>bue,isInRightSideOfInternalImportEqualsDeclaration:()=>B7,isInString:()=>DI,isInTemplateString:()=>qK,isInTopLevelContext:()=>q4,isInTypeQuery:()=>MS,isIncrementalCompilation:()=>cP,isIndexSignatureDeclaration:()=>e1,isIndexedAccessTypeNode:()=>GS,isInferTypeNode:()=>FS,isInfinityOrNaNString:()=>rP,isInitializedProperty:()=>Dw,isInitializedVariable:()=>dk,isInsideJsxElement:()=>$7,isInsideJsxElementOrAttribute:()=>fue,isInsideNodeModules:()=>yO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>S3,isInstantiatedModule:()=>kq,isInterfaceDeclaration:()=>_d,isInternalDeclaration:()=>tj,isInternalModuleImportEqualsDeclaration:()=>_R,isInternalName:()=>kH,isIntersectionTypeNode:()=>lI,isIntrinsicJsxName:()=>RR,isIterationStatement:()=>Wv,isJSDoc:()=>n_,isJSDocAllType:()=>Pae,isJSDocAugmentsTag:()=>hI,isJSDocAuthorTag:()=>OTe,isJSDocCallbackTag:()=>AH,isJSDocClassTag:()=>Lae,isJSDocCommentContainingNode:()=>T4,isJSDocConstructSignature:()=>bR,isJSDocDeprecatedTag:()=>NH,isJSDocEnumTag:()=>Jk,isJSDocFunctionType:()=>$R,isJSDocImplementsTag:()=>eF,isJSDocIndexSignature:()=>Z4,isJSDocLikeText:()=>jH,isJSDocLink:()=>Nae,isJSDocLinkCode:()=>Cae,isJSDocLinkLike:()=>MA,isJSDocLinkPlain:()=>kTe,isJSDocMemberName:()=>x0,isJSDocNameReference:()=>AP,isJSDocNamepathType:()=>wTe,isJSDocNamespaceBody:()=>oSe,isJSDocNode:()=>nR,isJSDocNonNullableType:()=>YW,isJSDocNullableType:()=>YR,isJSDocOptionalParameter:()=>bk,isJSDocOptionalType:()=>TH,isJSDocOverloadTag:()=>QR,isJSDocOverrideTag:()=>QW,isJSDocParameterTag:()=>r_,isJSDocPrivateTag:()=>xH,isJSDocPropertyLikeTag:()=>pC,isJSDocPropertyTag:()=>kae,isJSDocProtectedTag:()=>RH,isJSDocPublicTag:()=>IH,isJSDocReadonlyTag:()=>DH,isJSDocReturnTag:()=>ZW,isJSDocSatisfiesExpression:()=>MU,isJSDocSatisfiesTag:()=>tF,isJSDocSeeTag:()=>WTe,isJSDocSignature:()=>R0,isJSDocTag:()=>rR,isJSDocTemplateTag:()=>sm,isJSDocThisTag:()=>CH,isJSDocThrowsTag:()=>zTe,isJSDocTypeAlias:()=>Zf,isJSDocTypeAssertion:()=>eD,isJSDocTypeExpression:()=>u1,isJSDocTypeLiteral:()=>JS,isJSDocTypeTag:()=>IP,isJSDocTypedefTag:()=>KS,isJSDocUnknownTag:()=>FTe,isJSDocUnknownType:()=>Mae,isJSDocVariadicType:()=>$W,isJSXTagName:()=>mR,isJsonEqual:()=>H3,isJsonSourceFile:()=>Qf,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>E4,isJsxAttributeName:()=>Goe,isJsxAttributes:()=>s1,isJsxChild:()=>gL,isJsxClosingElement:()=>o1,isJsxClosingFragment:()=>Rae,isJsxElement:()=>ug,isJsxExpression:()=>SP,isJsxFragment:()=>a1,isJsxNamespacedName:()=>t_,isJsxOpeningElement:()=>W_,isJsxOpeningFragment:()=>mI,isJsxOpeningLikeElement:()=>cd,isJsxOpeningLikeElementTagName:()=>iue,isJsxSelfClosingElement:()=>HS,isJsxSpreadAttribute:()=>_I,isJsxTagNameExpression:()=>gC,isJsxText:()=>eI,isJumpStatementTarget:()=>Zw,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>s3,isKnownSymbol:()=>tk,isLabelName:()=>WK,isLabelOfLabeledStatement:()=>OK,isLabeledStatement:()=>i1,isLateVisibilityPaintedStatement:()=>w4,isLeftHandSideExpression:()=>ep,isLeftHandSideOfAssignment:()=>OSe,isLet:()=>F4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>$L,isLiteralExpression:()=>LE,isLiteralExpressionOfObject:()=>jV,isLiteralImportTypeNode:()=>Vv,isLiteralKind:()=>fC,isLiteralLikeAccess:()=>n3,isLiteralLikeElementAccess:()=>zL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>j7,isLiteralTypeLikeExpression:()=>HTe,isLiteralTypeLiteral:()=>xre,isLiteralTypeNode:()=>Zv,isLocalName:()=>jg,isLogicalOperator:()=>$ie,isLogicalOrCoalescingAssignmentExpression:()=>oU,isLogicalOrCoalescingAssignmentOperator:()=>zC,isLogicalOrCoalescingBinaryExpression:()=>sk,isLogicalOrCoalescingBinaryOperator:()=>ak,isMappedTypeNode:()=>qR,isMemberName:()=>$h,isMetaProperty:()=>gP,isMethodDeclaration:()=>ql,isMethodOrAccessor:()=>CA,isMethodSignature:()=>vh,isMinusToken:()=>mH,isMissingDeclaration:()=>LTe,isMissingPackageJsonInfo:()=>Dse,isModifier:()=>Ia,isModifierKind:()=>ky,isModifierLike:()=>ll,isModuleAugmentationExternal:()=>dj,isModuleBlock:()=>O_,isModuleBody:()=>Nre,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>ng,isModuleIdentifier:()=>Cj,isModuleName:()=>Yae,isModuleOrEnumDeclaration:()=>_L,isModuleReference:()=>kre,isModuleSpecifierLike:()=>a5,isModuleWithStringLiteralName:()=>k4,isNameOfFunctionDeclaration:()=>GK,isNameOfModuleDeclaration:()=>BK,isNamedClassElement:()=>eSe,isNamedDeclaration:()=>sd,isNamedEvaluation:()=>_p,isNamedEvaluationSource:()=>jj,isNamedExportBindings:()=>BV,isNamedExports:()=>Pf,isNamedImportBindings:()=>QV,isNamedImports:()=>Vg,isNamedImportsOrExports:()=>N3,isNamedTupleMember:()=>HR,isNamespaceBody:()=>iSe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>qk,isNamespaceImport:()=>nb,isNamespaceReexportDeclaration:()=>vie,isNewExpression:()=>n1,isNewExpressionTarget:()=>nM,isNoSubstitutionTemplateLiteral:()=>tI,isNode:()=>Q1e,isNodeArray:()=>ME,isNodeArrayMultiLine:()=>aoe,isNodeDescendantOf:()=>VE,isNodeKind:()=>sL,isNodeLikeSystem:()=>uG,isNodeModulesDirectory:()=>e4,isNodeWithPossibleHoistedDeclaration:()=>xie,isNonContextualKeyword:()=>Gj,isNonExportDefaultModifier:()=>JTe,isNonGlobalAmbientModule:()=>uj,isNonGlobalDeclaration:()=>Kue,isNonNullAccess:()=>Boe,isNonNullChain:()=>_4,isNonNullExpression:()=>dI,isNonStaticMethodOrAccessorWithPrivateName:()=>lle,isNotEmittedOrPartiallyEmittedNode:()=>rSe,isNotEmittedStatement:()=>EH,isNullishCoalesce:()=>zV,isNumber:()=>Ry,isNumericLiteral:()=>gp,isNumericLiteralName:()=>lg,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>pL,isObjectBindingOrAssignmentPattern:()=>JV,isObjectBindingPattern:()=>am,isObjectLiteralElement:()=>ZV,isObjectLiteralElementLike:()=>kg,isObjectLiteralExpression:()=>Oa,isObjectLiteralMethod:()=>xm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>V4,isObjectTypeDeclaration:()=>UA,isOctalDigit:()=>i4,isOmittedExpression:()=>jc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>cC,isOptionalDeclaration:()=>oP,isOptionalJSDocPropertyLikeTag:()=>vk,isOptionalTypeNode:()=>UW,isOuterExpression:()=>oF,isOutermostOptionalChain:()=>uC,isOverrideModifier:()=>gae,isPackageJsonInfo:()=>RF,isPackedArrayLiteral:()=>CU,isParameter:()=>Ao,isParameterDeclaration:()=>UE,isParameterPropertyDeclaration:()=>fp,isParameterPropertyModifier:()=>mC,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>zS,isParseTreeNode:()=>lC,isPartOfTypeNode:()=>eg,isPartOfTypeQuery:()=>$4,isPartiallyEmittedExpression:()=>KW,isPatternMatch:()=>D6,isPinnedComment:()=>M4,isPlainJsFile:()=>bL,isPlusToken:()=>fH,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>gH,isPrefixUnaryExpression:()=>tb,isPrivateIdentifier:()=>Ji,isPrivateIdentifierClassElementDeclaration:()=>ld,isPrivateIdentifierPropertyAccessExpression:()=>Zx,isPrivateIdentifierSymbol:()=>Pie,isProgramBundleEmitBuildInfo:()=>dce,isProgramUptoDate:()=>CJ,isPrologueDirective:()=>Im,isPropertyAccessChain:()=>f4,isPropertyAccessEntityNameExpression:()=>lk,isPropertyAccessExpression:()=>Wr,isPropertyAccessOrQualifiedName:()=>Are,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Tre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>Jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>N_,isPropertySignature:()=>yp,isProtoSetter:()=>Mie,isPrototypeAccess:()=>Hv,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>Bj,isPushOrUnshiftIdentifier:()=>Uj,isQualifiedName:()=>Id,isQuestionDotToken:()=>VW,isQuestionOrExclamationToken:()=>qae,isQuestionOrPlusOrMinusToken:()=>Xae,isQuestionToken:()=>$v,isRawSourceMap:()=>ile,isReadonlyKeyword:()=>_ae,isReadonlyKeywordOrPlusOrMinusToken:()=>Kae,isRecognizedTripleSlashComment:()=>aj,isReferenceFileLocation:()=>hD,isReferencedFile:()=>k0,isRegularExpressionLiteral:()=>dH,isRequireCall:()=>Td,isRequireVariableStatement:()=>Dj,isRestParameter:()=>Qh,isRestTypeNode:()=>HW,isReturnStatement:()=>Dm,isReturnStatementWithFixablePromiseHandler:()=>M5,isRightSideOfAccessExpression:()=>lU,isRightSideOfInstanceofExpression:()=>Zie,isRightSideOfPropertyAccess:()=>TD,isRightSideOfQualifiedName:()=>aue,isRightSideOfQualifiedNameOrPropertyAccess:()=>GC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Qie,isRootedDiskPath:()=>pp,isSameEntityName:()=>hR,isSatisfiesExpression:()=>yH,isScopeMarker:()=>Rre,isSemicolonClassElement:()=>Tae,isSetAccessor:()=>wy,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>RV,isShiftOperatorOrHigher:()=>BH,isShorthandAmbientModuleSymbol:()=>bC,isShorthandPropertyAssignment:()=>rp,isSignedNumericLiteral:()=>c3,isSimpleCopiableExpression:()=>m1,isSimpleInlineableExpression:()=>xh,isSimpleParameter:()=>fle,isSimpleParameterList:()=>Nw,isSingleOrDoubleQuote:()=>wL,isSourceFile:()=>$i,isSourceFileFromLibrary:()=>PD,isSourceFileJS:()=>ud,isSourceFileNotJS:()=>hSe,isSourceFileNotJson:()=>Rj,isSourceMapping:()=>ole,isSpecialPropertyDeclaration:()=>Sie,isSpreadAssignment:()=>qy,isSpreadElement:()=>e_,isStatement:()=>qi,isStatementButNotDeclaration:()=>hL,isStatementOrBlock:()=>Lre,isStatementWithLocals:()=>Ure,isStatic:()=>aa,isStaticModifier:()=>iI,isString:()=>Po,isStringAKeyword:()=>ISe,isStringANonContextualKeyword:()=>zA,isStringAndEmptyAnonymousObjectIntersection:()=>vue,isStringDoubleQuoted:()=>t3,isStringLiteral:()=>Ma,isStringLiteralLike:()=>ls,isStringLiteralOrJsxExpression:()=>wre,isStringLiteralOrTemplate:()=>zue,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>XK,isStringTextContainingNode:()=>UV,isSuperCall:()=>TS,isSuperKeyword:()=>_P,isSuperOrSuperProperty:()=>_Se,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>Noe,isSwitchStatement:()=>bP,isSyntaxList:()=>ZR,isSyntheticExpression:()=>ITe,isSyntheticReference:()=>fI,isTagName:()=>FK,isTaggedTemplateExpression:()=>r1,isTaggedTemplateTag:()=>nue,isTemplateExpression:()=>qW,isTemplateHead:()=>nI,isTemplateLiteral:()=>PA,isTemplateLiteralKind:()=>wv,isTemplateLiteralToken:()=>gre,isTemplateLiteralTypeNode:()=>bae,isTemplateLiteralTypeSpan:()=>hH,isTemplateMiddle:()=>pH,isTemplateMiddleOrTemplateTail:()=>h4,isTemplateSpan:()=>vP,isTemplateTail:()=>BW,isTextWhiteSpaceLike:()=>Iue,isThis:()=>AD,isThisContainerOrFunctionBlock:()=>hie,isThisIdentifier:()=>JE,isThisInTypeQuery:()=>BA,isThisInitializedDeclaration:()=>J4,isThisInitializedObjectBindingExpression:()=>yie,isThisProperty:()=>PL,isThisTypeNode:()=>jk,isThisTypeParameter:()=>iP,isThisTypePredicate:()=>mSe,isThrowStatement:()=>bH,isToken:()=>RA,isTokenKind:()=>VV,isTraceEnabled:()=>Ug,isTransientSymbol:()=>fh,isTrivia:()=>AR,isTryStatement:()=>US,isTupleTypeNode:()=>sI,isTypeAlias:()=>HL,isTypeAliasDeclaration:()=>Nm,isTypeAssertionExpression:()=>Eae,isTypeDeclaration:()=>zR,isTypeElement:()=>gS,isTypeKeyword:()=>oM,isTypeKeywordToken:()=>tX,isTypeKeywordTokenOrIdentifier:()=>n5,isTypeLiteralNode:()=>bp,isTypeNode:()=>ji,isTypeNodeKind:()=>hU,isTypeOfExpression:()=>JR,isTypeOnlyExportDeclaration:()=>yre,isTypeOnlyImportDeclaration:()=>lL,isTypeOnlyImportOrExportDeclaration:()=>f0,isTypeOperatorNode:()=>BS,isTypeParameterDeclaration:()=>gl,isTypePredicateNode:()=>Gk,isTypeQueryNode:()=>aI,isTypeReferenceNode:()=>Cf,isTypeReferenceType:()=>I4,isTypeUsableAsPropertyName:()=>rm,isUMDExportSymbol:()=>D3,isUnaryExpression:()=>YV,isUnaryExpressionWithWrite:()=>Ire,isUnicodeIdentifierStart:()=>n4,isUnionTypeNode:()=>Qv,isUnparsedNode:()=>GV,isUnparsedPrepend:()=>Dae,isUnparsedSource:()=>qS,isUnparsedTextLike:()=>hre,isUrl:()=>Wne,isValidBigIntString:()=>q3,isValidESSymbolDeclaration:()=>uie,isValidTypeOnlyAliasUseSite:()=>S0,isValueSignatureDeclaration:()=>Rie,isVarAwaitUsing:()=>xL,isVarConst:()=>cR,isVarUsing:()=>RL,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>SC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>BE,isVariableDeclarationInitializedToRequire:()=>e3,isVariableDeclarationList:()=>Uc,isVariableLike:()=>dR,isVariableLikeOrAccessor:()=>lie,isVariableStatement:()=>Ll,isVoidExpression:()=>uI,isWatchSet:()=>zSe,isWhileStatement:()=>RTe,isWhiteSpaceLike:()=>Mg,isWhiteSpaceSingleLine:()=>A_,isWithStatement:()=>Aae,isWriteAccess:()=>jA,isWriteOnlyAccess:()=>R3,isYieldExpression:()=>JW,jsxModeNeedsExplicitImport:()=>CX,keywordPart:()=>Sp,last:()=>Ya,lastOrUndefined:()=>tl,length:()=>Le,libMap:()=>gF,libs:()=>pw,lineBreakPart:()=>ND,linkNamePart:()=>Pue,linkPart:()=>mX,linkTextPart:()=>c5,listFiles:()=>XJ,loadModuleFromGlobalCache:()=>Fse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>Xre,makeImport:()=>$y,makeImportIfNecessary:()=>Aue,makeStringLiteral:()=>CI,mangleScopedPackageName:()=>dD,map:()=>Ot,mapAllOrFail:()=>xE,mapDefined:()=>Hi,mapDefinedEntries:()=>v6,mapDefinedIterator:()=>Iv,mapEntries:()=>ine,mapIterator:()=>Ca,mapOneOrMany:()=>RX,mapToDisplayParts:()=>lb,matchFiles:()=>AU,matchPatternOrExact:()=>IU,matchedText:()=>yne,matchesExclude:()=>hF,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>goe,memoize:()=>Sd,memoizeCached:()=>dne,memoizeOne:()=>ch,memoizeWeak:()=>qEe,metadataHelper:()=>fW,min:()=>oG,minAndMax:()=>Poe,missingFileModifiedTime:()=>Op,modifierToFlag:()=>VA,modifiersToFlags:()=>M_,moduleOptionDeclaration:()=>aq,moduleResolutionIsEqualTo:()=>Vre,moduleResolutionNameAndModeGetter:()=>h7,moduleResolutionOptionDeclarations:()=>yF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>qA,moduleResolutionUsesNodeModules:()=>r5,moduleSpecifiers:()=>f1,moveEmitHelpers:()=>iae,moveRangeEnd:()=>I3,moveRangePastDecorators:()=>Fg,moveRangePastModifiers:()=>L_,moveRangePos:()=>b0,moveSyntheticComments:()=>tae,mutateMap:()=>qC,mutateMapSkippingNewValues:()=>ag,needsParentheses:()=>d5,needsScopeMarker:()=>v4,newCaseClauseTracker:()=>I5,newPrivateEnvironment:()=>dle,noEmitNotification:()=>Cw,noEmitSubstitution:()=>HP,noTransformers:()=>aJ,noTruncationMaximumTruncationLength:()=>eW,nodeCanBeDecorated:()=>X4,nodeHasName:()=>rL,nodeIsDecorated:()=>fR,nodeIsMissing:()=>zl,nodeIsPresent:()=>Yf,nodeIsSynthesized:()=>$s,nodeModuleNameResolver:()=>Mse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Lse,nodeOrChildIsDecorated:()=>LL,nodeOverlapsWithStartEnd:()=>U7,nodePosToString:()=>sSe,nodeSeenTracker:()=>NI,nodeStartsNewLexicalEnvironment:()=>Hj,nodeToDisplayParts:()=>aDe,noop:()=>$a,noopFileWatcher:()=>ED,normalizePath:()=>ga,normalizeSlashes:()=>Lu,not:()=>C6,notImplemented:()=>Ko,notImplementedResolver:()=>o7,nullNodeConverters:()=>QU,nullParenthesizerRules:()=>$U,nullTransformationContext:()=>qP,objectAllocator:()=>lu,operatorPart:()=>lM,optionDeclarations:()=>dg,optionMapToObject:()=>fF,optionsAffectingProgramStructure:()=>dq,optionsForBuild:()=>fq,optionsForWatch:()=>aD,optionsHaveChanges:()=>iR,optionsHaveModuleResolutionChanges:()=>zre,or:()=>Ym,orderedRemoveItem:()=>Bx,orderedRemoveItemAt:()=>Dv,outFile:()=>Ps,packageIdToPackageName:()=>N4,packageIdToString:()=>Bv,paramHelper:()=>mW,parameterIsThisKeyword:()=>qE,parameterNamePart:()=>Rue,parseBaseNodeFactory:()=>KH,parseBigInt:()=>Moe,parseBuildCommand:()=>IAe,parseCommandLine:()=>TAe,parseCommandLineWorker:()=>$H,parseConfigFileTextToJson:()=>ZH,parseConfigFileWithSystem:()=>aRe,parseConfigHostFromCompilerHostLike:()=>_7,parseCustomTypeOption:()=>pF,parseIsolatedEntityName:()=>yI,parseIsolatedJSDocComment:()=>rse,parseJSDocTypeExpressionForTests:()=>uAe,parseJsonConfigFileContent:()=>zAe,parseJsonSourceFileConfigFileContent:()=>cw,parseJsonText:()=>ow,parseListTypeOption:()=>ose,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>vw,parsePackageName:()=>Sw,parsePseudoBigInt:()=>ZC,parseValidBigInt:()=>NU,patchWriteFileEnsuringDirectory:()=>wne,pathContainsNodeModules:()=>M0,pathIsAbsolute:()=>tC,pathIsBareSpecifier:()=>TV,pathIsRelative:()=>Wp,patternText:()=>gne,perfLogger:()=>od,performIncrementalCompilation:()=>uRe,performance:()=>Nne,plainJSErrors:()=>g7,positionBelongsToNode:()=>jK,positionIsASICandidate:()=>_5,positionIsSynthesized:()=>Zm,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>LDe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>qH,processPragmasIntoFields:()=>JH,processTaggedTemplateExpression:()=>Zq,programContainsEsModules:()=>Tue,programContainsModules:()=>Sue,projectReferenceIsEqualTo:()=>rj,propKeyHelper:()=>RW,propertyNamePart:()=>Due,pseudoBigIntToString:()=>YE,punctuationPart:()=>$u,pushIfUnique:()=>Tf,quote:()=>dM,quotePreferenceFromString:()=>oX,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>lue,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>uk,rangeEndPositionsAreOnSameLine:()=>ioe,rangeEquals:()=>QB,rangeIsOnSingleLine:()=>kS,rangeOfNode:()=>RU,rangeOfTypeParameters:()=>DU,rangeOverlapsWithStartEnd:()=>rM,rangeStartIsOnSameLineAsRangeEnd:()=>ooe,rangeStartPositionsAreOnSameLine:()=>x3,readBuilderProgram:()=>N7,readConfigFile:()=>sw,readHelper:()=>IW,readJson:()=>VC,readJsonConfigFile:()=>lse,readJsonOrUndefined:()=>uU,reduceEachLeadingCommentRange:()=>jne,reduceEachTrailingCommentRange:()=>Une,reduceLeft:()=>id,reduceLeftIterator:()=>Kr,reducePathComponents:()=>fS,refactor:()=>LI,regExpEscape:()=>qSe,relativeComplement:()=>one,removeAllComments:()=>Pk,removeEmitHelper:()=>STe,removeExtension:()=>hk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>b7,removeMinAndVersionNumbers:()=>aG,removeOptionality:()=>_ue,removePrefix:()=>$N,removeSuffix:()=>zx,removeTrailingDirectorySeparator:()=>i0,repeatString:()=>lO,replaceElement:()=>tG,replaceFirstStar:()=>XA,resolutionExtensionIsTSOrJson:()=>YC,resolveConfigFileProjectName:()=>aK,resolveJSModule:()=>Cse,resolveLibrary:()=>NF,resolveModuleName:()=>cD,resolveModuleNameFromCache:()=>SIe,resolvePackageNameToPackageJson:()=>hq,resolvePath:()=>Pv,resolveProjectReferencePath:()=>gD,resolveTripleslashReference:()=>c7,resolveTypeReferenceDirective:()=>xse,resolvingEmptyArray:()=>Z3,restHelper:()=>EW,returnFalse:()=>Xm,returnNoopFileWatcher:()=>SD,returnTrue:()=>Dy,returnUndefined:()=>n0,returnsPromise:()=>XX,runInitializersHelper:()=>hW,sameFlatMap:()=>ym,sameMap:()=>eo,sameMapping:()=>cxe,scanShebangTrivia:()=>DV,scanTokenAtPosition:()=>oie,scanner:()=>Qu,screenStartingMessageCodes:()=>D7,semanticDiagnosticsOptionDeclarations:()=>lq,serializeCompilerOptions:()=>mF,server:()=>COe,servicesVersion:()=>hpe,setCommentRange:()=>oc,setConfigFileInOptions:()=>iq,setConstantValue:()=>rae,setEachParent:()=>FR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>DW,setGetSourceFileAsHashVersioned:()=>R7,setIdentifierAutoGenerate:()=>kk,setIdentifierGeneratedImportReference:()=>sae,setIdentifierTypeArguments:()=>Uy,setInternalEmitFlags:()=>Mk,setLocalizedDiagnosticMessages:()=>hoe,setModuleDefaultHelper:()=>PW,setNodeFlags:()=>woe,setObjectAllocator:()=>_oe,setOriginalNode:()=>Cr,setParent:()=>qa,setParentRecursive:()=>Jv,setPrivateIdentifier:()=>QS,setSnippetElement:()=>aH,setSourceMapRange:()=>Pa,setStackTraceLimit:()=>f1e,setStartsOnNewLine:()=>cW,setSyntheticLeadingComments:()=>A0,setSyntheticTrailingComments:()=>$A,setSys:()=>y1e,setSysLog:()=>Lne,setTextRange:()=>dt,setTextRangeEnd:()=>WR,setTextRangePos:()=>eP,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>tP,setTokenSourceMapRange:()=>eae,setTypeNode:()=>oae,setUILocale:()=>mne,setValueDeclaration:()=>jL,shouldAllowImportingTsExtension:()=>pD,shouldPreserveConstEnums:()=>ZE,shouldUseUriStyleNodeCoreModules:()=>T5,showModuleSpecifier:()=>uoe,signatureHasLiteralTypes:()=>wq,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>_X,single:()=>eG,singleElementArray:()=>SA,singleIterator:()=>b6,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>VTe,skipConstraint:()=>nX,skipOuterExpressions:()=>$l,skipParentheses:()=>hs,skipPartiallyEmittedExpressions:()=>Tm,skipTrivia:()=>ka,skipTypeChecking:()=>QC,skipTypeParentheses:()=>YL,skipWhile:()=>bne,sliceAfter:()=>xU,some:()=>bt,sort:()=>lS,sortAndDeduplicate:()=>JN,sortAndDeduplicateDiagnostics:()=>Xx,sourceFileAffectingCompilerOptions:()=>vF,sourceFileMayBeEmitted:()=>CS,sourceMapCommentRegExp:()=>jF,sourceMapCommentRegExpDontCareLineStart:()=>jq,spacePart:()=>wl,spanMap:()=>KB,spreadArrayHelper:()=>xW,stableSort:()=>Iy,startEndContainsRange:()=>VK,startEndOverlapsWithStartEnd:()=>H7,startOnNewLine:()=>Xu,startTracing:()=>Cne,startsWith:()=>uo,startsWithDirectory:()=>IV,startsWithUnderscore:()=>NX,startsWithUseStrict:()=>Bae,stringContainsAt:()=>Jue,stringToToken:()=>CE,stripQuotes:()=>tm,supportedDeclarationExtensions:()=>Ik,supportedJSExtensions:()=>KU,supportedJSExtensionsFlat:()=>GR,supportedLocaleDirectories:()=>nj,supportedTSExtensions:()=>BR,supportedTSExtensionsFlat:()=>JU,supportedTSImplementationExtensions:()=>xk,suppressLeadingAndTrailingTrivia:()=>Tp,suppressLeadingTrivia:()=>vX,suppressTrailingTrivia:()=>Oue,symbolEscapedNameNoDefault:()=>o5,symbolName:()=>Sl,symbolNameNoDefault:()=>i5,symbolPart:()=>xue,symbolToDisplayParts:()=>cM,syntaxMayBeASICandidate:()=>wX,syntaxRequiresTrailingSemicolonOrASI:()=>m5,sys:()=>gu,sysLog:()=>B2,tagNamesAreEquivalent:()=>N0,takeWhile:()=>M6,targetOptionDeclaration:()=>mw,templateObjectHelper:()=>AW,testFormatSettings:()=>tue,textChangeRangeIsUnchanged:()=>$ne,textChangeRangeNewSpan:()=>sC,textChanges:()=>_r,textOrKeywordPart:()=>fX,textPart:()=>df,textRangeContainsPositionInclusive:()=>eL,textSpanContainsPosition:()=>PV,textSpanContainsTextSpan:()=>Jne,textSpanEnd:()=>Kl,textSpanIntersection:()=>Yne,textSpanIntersectsWith:()=>s4,textSpanIntersectsWithPosition:()=>Xne,textSpanIntersectsWithTextSpan:()=>z1e,textSpanIsEmpty:()=>qne,textSpanOverlap:()=>Kne,textSpanOverlapsWith:()=>F1e,textSpansEqual:()=>DD,textToKeywordObj:()=>Q2,timestamp:()=>Ys,toArray:()=>bA,toBuilderFileEmit:()=>mce,toBuilderStateFileInfoForMultiEmit:()=>fce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>lh,toLowerCase:()=>une,toPath:()=>ol,toProgramEmitPending:()=>_ce,tokenIsIdentifierOrKeyword:()=>ad,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Gne,tokenToString:()=>fa,trace:()=>bo,tracing:()=>sr,tracingEnabled:()=>O2,transform:()=>PCe,transformClassFields:()=>Sle,transformDeclarations:()=>iJ,transformECMAScriptModule:()=>rJ,transformES2015:()=>Wle,transformES2016:()=>Ole,transformES2017:()=>xle,transformES2018:()=>Rle,transformES2019:()=>Dle,transformES2020:()=>Nle,transformES2021:()=>Cle,transformES5:()=>Fle,transformESDecorators:()=>Ile,transformESNext:()=>Ple,transformGenerators:()=>zle,transformJsx:()=>wle,transformLegacyDecorators:()=>Ale,transformModule:()=>nJ,transformNamedEvaluation:()=>Ep,transformNodeModule:()=>Gle,transformNodes:()=>Pw,transformSystemModule:()=>Ble,transformTypeScript:()=>Ele,transpile:()=>GDe,transpileModule:()=>pde,transpileOptionValueCompilerOptions:()=>pq,tryAddToSet:()=>Ay,tryAndIgnoreErrors:()=>y5,tryCast:()=>ii,tryDirectoryExists:()=>g5,tryExtractTSExtension:()=>T3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>aU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>sU,tryGetDirectories:()=>h5,tryGetExtensionFromPath:()=>Bg,tryGetImportFromModuleSpecifier:()=>UL,tryGetJSDocSatisfiesTypeNode:()=>Y3,tryGetModuleNameFromFile:()=>Qk,tryGetModuleSpecifierFromDeclaration:()=>gR,tryGetNativePerformanceHooks:()=>xne,tryGetPropertyAccessOrIdentifierToString:()=>ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>sF,tryGetSourceMappingURL:()=>rle,tryGetTextOfPropertyName:()=>EC,tryIOAndConsumeErrors:()=>v5,tryParseJson:()=>A3,tryParsePattern:()=>OR,tryParsePatterns:()=>j3,tryParseRawSourceMap:()=>Gq,tryReadDirectory:()=>SX,tryReadFile:()=>CP,tryRemoveDirectoryPrefix:()=>SU,tryRemoveExtension:()=>Coe,tryRemovePrefix:()=>cG,tryRemoveSuffix:()=>hne,typeAcquisitionDeclarations:()=>_w,typeAliasNamePart:()=>Nue,typeDirectiveIsEqualTo:()=>jre,typeKeywords:()=>x5,typeParameterNamePart:()=>Cue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>G2,unchangedTextChangeRange:()=>yL,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Aw,unorderedRemoveItem:()=>EA,unorderedRemoveItemAt:()=>sG,unreachableCodeIsError:()=>voe,unusedLabelIsError:()=>boe,unwrapInnermostStatementOfLabel:()=>Tj,updateErrorForNoInputFiles:()=>_F,updateLanguageServiceSourceFile:()=>MY,updateMissingFilePathsWatch:()=>mJ,updateResolutionField:()=>sD,updateSharedExtendedConfigFileWatcher:()=>s7,updateSourceFile:()=>UH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>Roe,usingSingleLineStringWriter:()=>yC,utf16EncodeAsString:()=>Kx,validateLocaleAndSetLanguage:()=>G1e,valuesHelper:()=>NW,version:()=>Re,versionMajorMinor:()=>ue,visitArray:()=>Rw,visitCommaListElements:()=>VF,visitEachChild:()=>In,visitFunctionBody:()=>lf,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>zq,visitNode:()=>nt,visitNodes:()=>Vn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Yx,walkUpLexicalEnvironments:()=>ule,walkUpOuterExpressions:()=>Gae,walkUpParenthesizedExpressions:()=>Wy,walkUpParenthesizedTypes:()=>XL,walkUpParenthesizedTypesAndGetParentAndChild:()=>Die,whitespaceOrMapCommentRegExp:()=>UF,writeCommentRange:()=>CR,writeFile:()=>wC,writeFileEnsuringDirectories:()=>tU,zipWith:()=>Ei});var db=T({"src/server/_namespaces/ts.ts"(){ra(),Kw(),si(),XQ(),fT()}}),MOe={};X(MOe,{ActionInvalidate:()=>qw,ActionPackageInstalled:()=>Jw,ActionSet:()=>Hw,ActionWatchTypingLocations:()=>tM,Arguments:()=>fK,AutoImportProviderProject:()=>cZ,AuxiliaryProject:()=>sZ,CharRangeSection:()=>SZ,CloseFileWatcherEvent:()=>Kz,CommandNames:()=>jhe,ConfigFileDiagEvent:()=>jz,ConfiguredProject:()=>uZ,CreateDirectoryWatcherEvent:()=>Jz,CreateFileWatcherEvent:()=>qz,Errors:()=>nv,EventBeginInstallTypes:()=>w7,EventEndInstallTypes:()=>O7,EventInitializationFailed:()=>pK,EventTypesRegistry:()=>k7,ExternalProject:()=>Oz,GcTimer:()=>eZ,InferredProject:()=>aZ,LargeFileReferencedEvent:()=>Vz,LineIndex:()=>NM,LineLeaf:()=>m8,LineNode:()=>UI,LogLevel:()=>YQ,Msg:()=>$Q,OpenFileInfoTelemetryEvent:()=>mZ,Project:()=>pT,ProjectInfoTelemetryEvent:()=>Hz,ProjectKind:()=>RM,ProjectLanguageServiceStateEvent:()=>Uz,ProjectLoadingFinishEvent:()=>Gz,ProjectLoadingStartEvent:()=>Bz,ProjectReferenceProjectLoadKind:()=>gZ,ProjectService:()=>yZ,ProjectsUpdatedInBackgroundEvent:()=>d8,ScriptInfo:()=>rZ,ScriptVersionCache:()=>Qz,Session:()=>Hhe,TextStorage:()=>nZ,ThrottledOperations:()=>ZQ,TypingsCache:()=>iZ,TypingsInstallerAdapter:()=>Khe,allFilesAreJsOrDts:()=>Ehe,allRootFilesAreJsOrDts:()=>bhe,asNormalizedPath:()=>oOe,convertCompilerOptions:()=>Wz,convertFormatOptions:()=>XD,convertScriptKindName:()=>pZ,convertTypeAcquisition:()=>Ahe,convertUserPreferences:()=>Ihe,convertWatchOptions:()=>u8,countEachFileTypes:()=>l8,createInstallTypingsRequest:()=>Z_e,createModuleSpecifierCache:()=>whe,createNormalizedPathMap:()=>aOe,createPackageJsonCache:()=>Ohe,createSortedArray:()=>ihe,emptyArray:()=>hc,findArgument:()=>JRe,forEachResolvedProjectReferenceProject:()=>YD,formatDiagnosticToProtocol:()=>f8,formatMessage:()=>Whe,getBaseConfigFileName:()=>QQ,getLocationInNewDocument:()=>Ghe,hasArgument:()=>qRe,hasNoTypeScriptSource:()=>She,indent:()=>eM,isBackgroundProject:()=>c8,isConfigFile:()=>Phe,isConfiguredProject:()=>G0,isDynamicFileName:()=>s8,isExternalProject:()=>oZ,isInferredProject:()=>KD,isInferredProjectName:()=>ehe,makeAutoImportProviderProjectName:()=>nhe,makeAuxiliaryProjectName:()=>rhe,makeInferredProjectName:()=>the,maxFileSize:()=>zz,maxProgramSizeForNonTsFiles:()=>Fz,normalizedPathToPath:()=>a8,nowString:()=>KRe,nullCancellationToken:()=>Vhe,nullTypingsInstaller:()=>wz,projectContainsInfoDirectly:()=>VI,protocol:()=>vhe,removeSorted:()=>sOe,stringifyIndented:()=>w0,toEvent:()=>Fhe,toNormalizedPath:()=>ml,tryConvertScriptKindName:()=>dZ,typingsInstaller:()=>$_e,updateProjectIfDirty:()=>jp});var tlt=T({"src/typescript/_namespaces/ts.server.ts"(){W7(),fT()}}),LOe={};X(LOe,{ANONYMOUS:()=>R5,AccessFlags:()=>GG,AssertionLevel:()=>pG,AssignmentDeclarationKind:()=>YG,AssignmentKind:()=>FU,Associativity:()=>BU,BreakpointResolver:()=>zY,BuilderFileEmit:()=>jJ,BuilderProgramKind:()=>UJ,BuilderState:()=>Mm,BundleFileSectionKind:()=>mV,CallHierarchy:()=>kI,CharacterCodes:()=>sV,CheckFlags:()=>OG,CheckMode:()=>zF,ClassificationType:()=>MK,ClassificationTypeNames:()=>PK,CommentDirectiveType:()=>EG,Comparison:()=>Be,CompletionInfoFlags:()=>AK,CompletionTriggerKind:()=>vK,Completions:()=>zI,ContainerFlags:()=>Mq,ContextFlags:()=>RG,Debug:()=>N,DiagnosticCategory:()=>F2,Diagnostics:()=>f,DocumentHighlights:()=>C5,ElementFlags:()=>BG,EmitFlags:()=>X6,EmitHint:()=>dV,EmitOnly:()=>TG,EndOfLineState:()=>RK,EnumKind:()=>wG,ExitStatus:()=>AG,ExportKind:()=>BX,Extension:()=>lV,ExternalEmitHelpers:()=>uV,FileIncludeKind:()=>B6,FilePreprocessingDiagnosticsKind:()=>SG,FileSystemEntryKind:()=>bV,FileWatcherEventKind:()=>vV,FindAllReferences:()=>Ws,FlattenLevel:()=>Yq,FlowFlags:()=>W2,ForegroundColorEscapeSequences:()=>wJ,FunctionFlags:()=>zU,GeneratedIdentifierFlags:()=>z6,GetLiteralTextFlags:()=>wU,GoToDefinition:()=>jD,HighlightSpanKind:()=>EK,IdentifierNameMap:()=>TI,IdentifierNameMultiMap:()=>Xq,ImportKind:()=>zX,ImportsNotUsedAsValues:()=>nV,IndentStyle:()=>SK,IndexFlags:()=>VG,IndexKind:()=>HG,InferenceFlags:()=>KG,InferencePriority:()=>JG,InlayHintKind:()=>bK,InlayHints:()=>PQ,InternalEmitFlags:()=>cV,InternalSymbolName:()=>WG,InvalidatedProjectKind:()=>dK,JSDocParsingMode:()=>gV,JsDoc:()=>B0,JsTyping:()=>G_,JsxEmit:()=>tV,JsxFlags:()=>vG,JsxReferenceKind:()=>jG,LanguageServiceMode:()=>hK,LanguageVariant:()=>oV,LexicalEnvironmentFlags:()=>fV,ListFormat:()=>_V,LogLevel:()=>mG,MemberOverrideStatus:()=>IG,ModifierFlags:()=>W6,ModuleDetectionKind:()=>$G,ModuleInstanceState:()=>Pq,ModuleKind:()=>ZN,ModuleResolutionKind:()=>Hx,ModuleSpecifierEnding:()=>XU,NavigateTo:()=>_de,NavigationBar:()=>Ide,NewLineKind:()=>rV,NodeBuilderFlags:()=>DG,NodeCheckFlags:()=>FG,NodeFactoryFlags:()=>rH,NodeFlags:()=>O6,NodeResolutionFeatures:()=>Dq,ObjectFlags:()=>U6,OperationCanceledException:()=>Ux,OperatorPrecedence:()=>GU,OrganizeImports:()=>Lm,OrganizeImportsMode:()=>yK,OuterExpressionKinds:()=>pV,OutliningElementsCollector:()=>wQ,OutliningSpanKind:()=>IK,OutputFileType:()=>xK,PackageJsonAutoImportPreference:()=>_K,PackageJsonDependencyGroup:()=>mK,PatternMatchKind:()=>P5,PollingInterval:()=>Y6,PollingWatchKind:()=>eV,PragmaKindFlags:()=>hV,PrivateIdentifierKind:()=>uH,ProcessLevel:()=>eJ,ProgramUpdateLevel:()=>hJ,QuotePreference:()=>LX,RelationComparisonResult:()=>F6,Rename:()=>Dz,ScriptElementKind:()=>NK,ScriptElementKindModifier:()=>CK,ScriptKind:()=>q6,ScriptSnapshot:()=>z7,ScriptTarget:()=>iV,SemanticClassificationFormat:()=>gK,SemanticMeaning:()=>MX,SemicolonPreference:()=>TK,SignatureCheckMode:()=>BF,SignatureFlags:()=>H6,SignatureHelp:()=>QO,SignatureKind:()=>UG,SmartSelectionRange:()=>FQ,SnippetKind:()=>K6,SortKind:()=>dG,StructureIsReused:()=>G6,SymbolAccessibility:()=>PG,SymbolDisplay:()=>tv,SymbolDisplayPartKind:()=>Xw,SymbolFlags:()=>V6,SymbolFormatFlags:()=>CG,SyntaxKind:()=>w6,SyntheticSymbolKind:()=>MG,Ternary:()=>XG,ThrottledCancellationToken:()=>FY,TokenClass:()=>DK,TokenFlags:()=>bG,TransformFlags:()=>J6,TypeFacts:()=>FF,TypeFlags:()=>j6,TypeFormatFlags:()=>NG,TypeMapKind:()=>qG,TypePredicateKind:()=>LG,TypeReferenceSerializationKind:()=>kG,UnionReduction:()=>xG,UpToDateStatusType:()=>sK,VarianceFlags:()=>zG,Version:()=>vm,VersionRange:()=>k2,WatchDirectoryFlags:()=>aV,WatchDirectoryKind:()=>ZG,WatchFileKind:()=>QG,WatchLogLevel:()=>gJ,WatchType:()=>wc,accessPrivateIdentifier:()=>ple,addDisposableResourceHelper:()=>WW,addEmitFlags:()=>k_,addEmitHelper:()=>QA,addEmitHelpers:()=>Gg,addInternalEmitFlags:()=>YA,addNodeFactoryPatcher:()=>_Te,addObjectAllocatorPatcher:()=>moe,addRange:()=>qr,addRelatedInfo:()=>wa,addSyntheticLeadingComment:()=>pP,addSyntheticTrailingComment:()=>uW,addToSeen:()=>Rm,advancedAsyncSuperHelper:()=>Wk,affectsDeclarationPathOptionDeclarations:()=>uq,affectsEmitOptionDeclarations:()=>cq,allKeysStartWithDot:()=>PF,altDirectorySeparator:()=>q2,and:()=>N6,append:()=>xn,appendIfUnique:()=>Ng,arrayFrom:()=>zo,arrayIsEqualTo:()=>Km,arrayIsHomogeneous:()=>koe,arrayIsSorted:()=>E6,arrayOf:()=>sne,arrayReverseIterator:()=>$B,arrayToMap:()=>DE,arrayToMultiMap:()=>P2,arrayToNumericMap:()=>cne,arraysEqual:()=>Na,assertType:()=>XEe,assign:()=>Wx,assignHelper:()=>gW,asyncDelegator:()=>vW,asyncGeneratorHelper:()=>yW,asyncSuperHelper:()=>Ok,asyncValues:()=>bW,attachFileToDiagnostics:()=>HA,awaitHelper:()=>ZA,awaiterHelper:()=>SW,base64decode:()=>roe,base64encode:()=>noe,binarySearch:()=>xy,binarySearchKey:()=>yA,bindSourceFile:()=>Gse,breakIntoCharacterSpans:()=>lde,breakIntoWordSpans:()=>cde,buildLinkParts:()=>Mue,buildOpts:()=>bF,buildOverload:()=>Zwe,bundlerModuleNameResolver:()=>Pse,canBeConvertedToAsync:()=>$X,canHaveDecorators:()=>YS,canHaveExportModifier:()=>yk,canHaveFlowNode:()=>qL,canHaveIllegalDecorators:()=>zH,canHaveIllegalModifiers:()=>Hae,canHaveIllegalType:()=>UTe,canHaveIllegalTypeParameters:()=>Uae,canHaveJSDoc:()=>JL,canHaveLocals:()=>ph,canHaveModifiers:()=>Cm,canHaveSymbol:()=>x_,canJsonReportNoInputFiles:()=>PP,canProduceDiagnostics:()=>e7,canUsePropertyAccess:()=>PU,canWatchAffectingLocation:()=>vce,canWatchAtTypes:()=>yce,canWatchDirectoryOrFile:()=>E7,cartesianProduct:()=>vne,cast:()=>oa,chainBundle:()=>Pm,chainDiagnosticMessages:()=>jo,changeAnyExtension:()=>U2,changeCompilerHostLikeToUseCache:()=>Ww,changeExtension:()=>E0,changeFullExtension:()=>Fne,changesAffectModuleResolution:()=>x4,changesAffectingProgramStructure:()=>Bre,childIsDecorated:()=>AC,classElementOrClassElementParameterIsDecorated:()=>Aj,classHasClassThisAssignment:()=>$q,classHasDeclaredOrExplicitlyAssignedName:()=>Qq,classHasExplicitlyAssignedName:()=>$F,classOrConstructorParameterIsDecorated:()=>Oy,classPrivateFieldGetHelper:()=>kW,classPrivateFieldInHelper:()=>OW,classPrivateFieldSetHelper:()=>wW,classicNameResolver:()=>Wse,classifier:()=>bpe,cleanExtendedConfigCache:()=>l7,clear:()=>Vo,clearMap:()=>tp,clearSharedExtendedConfigFileWatcher:()=>fJ,climbPastPropertyAccess:()=>G7,climbPastPropertyOrElementAccess:()=>oue,clone:()=>nG,cloneCompilerOptions:()=>$K,closeFileWatcher:()=>Qm,closeFileWatcherOf:()=>Mf,codefix:()=>Fu,collapseTextChangeRangesAcrossMultipleVersions:()=>Qne,collectExternalModuleInfo:()=>Hq,combine:()=>Ox,combinePaths:()=>Qr,commentPragmas:()=>z2,commonOptionsWithBuild:()=>fw,commonPackageFolders:()=>UU,compact:()=>C2,compareBooleans:()=>Rv,compareDataObjects:()=>mU,compareDiagnostics:()=>JC,compareDiagnosticsSkipRelatedInformation:()=>P3,compareEmitHelpers:()=>uae,compareNumberOfDirectorySeparators:()=>_k,comparePaths:()=>Cg,comparePathsCaseInsensitive:()=>S1e,comparePathsCaseSensitive:()=>E1e,comparePatternKeys:()=>xq,compareProperties:()=>_ne,compareStringsCaseInsensitive:()=>R6,compareStringsCaseInsensitiveEslintCompatible:()=>pne,compareStringsCaseSensitive:()=>Uu,compareStringsCaseSensitiveUI:()=>L2,compareTextSpans:()=>x6,compareValues:()=>rl,compileOnSaveCommandLineOption:()=>dw,compilerOptionsAffectDeclarationPath:()=>Aoe,compilerOptionsAffectEmit:()=>Toe,compilerOptionsAffectSemanticDiagnostics:()=>Soe,compilerOptionsDidYouMeanDiagnostics:()=>hw,compilerOptionsIndicateEsModules:()=>rX,compose:()=>JEe,computeCommonSourceDirectoryOfFilenames:()=>$le,computeLineAndCharacterOfPosition:()=>Jx,computeLineOfPosition:()=>rC,computeLineStarts:()=>xA,computePositionOfLineAndCharacter:()=>r4,computeSignature:()=>nT,computeSignatureWithDiagnostics:()=>zJ,computeSuggestionDiagnostics:()=>KX,computedOptions:()=>mc,concatenate:()=>So,concatenateDiagnosticMessageChains:()=>yoe,consumesNodeCoreModules:()=>b5,contains:()=>Nr,containsIgnoredPath:()=>nP,containsObjectRestOrSpread:()=>nw,containsParseError:()=>oR,containsPath:()=>bm,convertCompilerOptionsForTelemetry:()=>mse,convertCompilerOptionsFromJson:()=>JAe,convertJsonOption:()=>$S,convertToBase64:()=>toe,convertToJson:()=>lw,convertToObject:()=>cse,convertToOptionsWithAbsolutePaths:()=>rq,convertToRelativePath:()=>nC,convertToTSConfig:()=>LAe,convertTypeAcquisitionFromJson:()=>KAe,copyComments:()=>aT,copyEntries:()=>R4,copyLeadingComments:()=>CD,copyProperties:()=>rG,copyTrailingAsLeadingComments:()=>_O,copyTrailingComments:()=>uM,couldStartTrivia:()=>Vne,countWhere:()=>au,createAbstractBuilder:()=>eRe,createAccessorPropertyBackingField:()=>GH,createAccessorPropertyGetRedirector:()=>Zae,createAccessorPropertySetRedirector:()=>ese,createBaseNodeFactory:()=>Koe,createBinaryExpressionTrampoline:()=>lF,createBindingHelper:()=>jR,createBuildInfo:()=>Mw,createBuilderProgram:()=>BJ,createBuilderProgramUsingProgramBuildInfo:()=>hce,createBuilderStatusReporter:()=>Lce,createCacheWithRedirects:()=>yq,createCacheableExportInfoMap:()=>OX,createCachedDirectoryStructureHost:()=>a7,createClassNamedEvaluationHelperBlock:()=>yle,createClassThisAssignmentBlock:()=>hle,createClassifier:()=>gDe,createCommentDirectivesMap:()=>qre,createCompilerDiagnostic:()=>Hl,createCompilerDiagnosticForInvalidCustomType:()=>ise,createCompilerDiagnosticFromMessageChain:()=>C3,createCompilerHost:()=>Qle,createCompilerHostFromProgramHost:()=>rK,createCompilerHostWorker:()=>bJ,createDetachedDiagnostic:()=>wR,createDiagnosticCollection:()=>xR,createDiagnosticForFileFromMessageChain:()=>vj,createDiagnosticForNode:()=>kr,createDiagnosticForNodeArray:()=>lR,createDiagnosticForNodeArrayFromMessageChain:()=>IL,createDiagnosticForNodeFromMessageChain:()=>wg,createDiagnosticForNodeInSourceFile:()=>$f,createDiagnosticForRange:()=>iie,createDiagnosticMessageChainFromDiagnostic:()=>rie,createDiagnosticReporter:()=>Vw,createDocumentPositionMapper:()=>ale,createDocumentRegistry:()=>$ue,createDocumentRegistryInternal:()=>jX,createEmitAndSemanticDiagnosticsBuilderProgram:()=>HJ,createEmitHelperFactory:()=>cae,createEmptyExports:()=>Kk,createExpressionForJsxElement:()=>Wae,createExpressionForJsxFragment:()=>Fae,createExpressionForObjectLiteralElementLike:()=>zae,createExpressionForPropertyName:()=>LH,createExpressionFromEntityName:()=>Xk,createExternalHelpersImportDeclarationIfNeeded:()=>OH,createFileDiagnostic:()=>Qc,createFileDiagnosticFromMessageChain:()=>O4,createForOfBindingStatement:()=>MH,createGetCanonicalFileName:()=>Mu,createGetSourceFile:()=>yJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Jy,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Vle,createGetSymbolWalker:()=>Vse,createIncrementalCompilerHost:()=>oK,createIncrementalProgram:()=>Pce,createInputFiles:()=>gTe,createInputFilesWithFilePaths:()=>tH,createInputFilesWithFileTexts:()=>nH,createJsxFactoryExpression:()=>PH,createLanguageService:()=>mpe,createLanguageServiceSourceFile:()=>tz,createMemberAccessForPropertyName:()=>XS,createModeAwareCache:()=>EI,createModeAwareCacheKey:()=>OP,createModuleNotFoundChain:()=>D4,createModuleResolutionCache:()=>lD,createModuleResolutionLoader:()=>xJ,createModuleResolutionLoaderUsingGlobalCache:()=>Tce,createModuleSpecifierResolutionHost:()=>oT,createMultiMap:()=>Zp,createNodeConverters:()=>Yoe,createNodeFactory:()=>Dk,createOptionNameMap:()=>dF,createOverload:()=>KQ,createPackageJsonImportFilter:()=>fM,createPackageJsonInfo:()=>AX,createParenthesizerRules:()=>Xoe,createPatternMatcher:()=>nde,createPrependNodes:()=>LJ,createPrinter:()=>L0,createPrinterWithDefaults:()=>dJ,createPrinterWithRemoveComments:()=>h1,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>pJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>Lw,createProgram:()=>f7,createProgramHost:()=>iK,createPropertyNameNodeForIdentifierOrLiteral:()=>K3,createQueue:()=>M2,createRange:()=>xf,createRedirectedBuilderProgram:()=>VJ,createResolutionCache:()=>JJ,createRuntimeTypeSerializer:()=>Tle,createScanner:()=>My,createSemanticDiagnosticsBuilderProgram:()=>Zxe,createSet:()=>iG,createSolutionBuilder:()=>hRe,createSolutionBuilderHost:()=>mRe,createSolutionBuilderWithWatch:()=>gRe,createSolutionBuilderWithWatchHost:()=>_Re,createSortedArray:()=>YB,createSourceFile:()=>iw,createSourceMapGenerator:()=>nle,createSourceMapSource:()=>yTe,createSuperAccessVariableStatement:()=>ZF,createSymbolTable:()=>ca,createSymlinkCache:()=>EU,createSystemWatchFunctions:()=>kne,createTextChange:()=>aO,createTextChangeFromStartLength:()=>t5,createTextChangeRange:()=>nL,createTextRangeFromNode:()=>eX,createTextRangeFromSpan:()=>e5,createTextSpan:()=>yu,createTextSpanFromBounds:()=>dc,createTextSpanFromNode:()=>Dd,createTextSpanFromRange:()=>sb,createTextSpanFromStringLiteralLikeContent:()=>ZK,createTextWriter:()=>ok,createTokenRange:()=>dU,createTypeChecker:()=>Yse,createTypeReferenceDirectiveResolutionCache:()=>DF,createTypeReferenceResolutionLoader:()=>u7,createUnparsedSourceFile:()=>eH,createWatchCompilerHost:()=>dRe,createWatchCompilerHostOfConfigFile:()=>Dce,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Nce,createWatchFactory:()=>nK,createWatchHost:()=>tK,createWatchProgram:()=>pRe,createWatchStatusReporter:()=>Ace,createWriteFileMeasuringIO:()=>vJ,declarationNameToString:()=>Rs,decodeMappings:()=>Vq,decodedTextSpanIntersectsWith:()=>tL,decorateHelper:()=>pW,deduplicate:()=>RE,defaultIncludeSpec:()=>TF,defaultInitCompilerOptions:()=>EF,defaultMaximumTruncationLength:()=>Sk,detectSortCaseSensitivity:()=>KN,diagnosticCategoryName:()=>pS,diagnosticToString:()=>lT,directoryProbablyExists:()=>$m,directorySeparator:()=>al,displayPart:()=>ip,displayPartsToString:()=>OO,disposeEmitNodes:()=>iH,disposeResourcesHelper:()=>FW,documentSpansEqual:()=>lX,dumpTracingLegend:()=>Pne,elementAt:()=>Cy,elideNodes:()=>Qae,emitComments:()=>Uie,emitDetachedComments:()=>Hie,emitFiles:()=>r7,emitFilesAndReportErrors:()=>I7,emitFilesAndReportErrorsAndGetExitStatus:()=>Rce,emitModuleKindIsNonNodeESM:()=>M3,emitNewLineBeforeLeadingCommentOfPosition:()=>jie,emitNewLineBeforeLeadingComments:()=>Gie,emitNewLineBeforeLeadingCommentsOfPosition:()=>Vie,emitSkippedWithNoDiagnostics:()=>y7,emitUsingBuildInfo:()=>Jle,emptyArray:()=>et,emptyFileSystemEntries:()=>aW,emptyMap:()=>L6,emptyOptions:()=>kf,emptySet:()=>Ene,endsWith:()=>Al,ensurePathIsNonModuleName:()=>NE,ensureScriptKind:()=>G3,ensureTrailingDirectorySeparator:()=>Bc,entityNameToString:()=>mp,enumerateInsertsAndDeletes:()=>P6,equalOwnProperties:()=>lne,equateStringsCaseInsensitive:()=>r0,equateStringsCaseSensitive:()=>cS,equateValues:()=>Ny,esDecorateHelper:()=>_W,escapeJsxAttributeString:()=>$j,escapeLeadingUnderscores:()=>hl,escapeNonAsciiString:()=>ik,escapeSnippetText:()=>QE,escapeString:()=>ig,escapeTemplateSubstitution:()=>Xj,every:()=>Zn,expandPreOrPostfixIncrementOrDecrementExpression:()=>nF,explainFiles:()=>YJ,explainIfFileIsRedirectAndImpliedFormat:()=>$J,exportAssignmentIsAlias:()=>SR,exportStarHelper:()=>LW,expressionResultIsUnused:()=>Ooe,extend:()=>I6,extendsHelper:()=>TW,extensionFromPath:()=>$C,extensionIsTS:()=>U3,extensionsNotSupportingExtensionlessResolution:()=>Rk,externalHelpersModuleNameText:()=>Kv,factory:()=>w,fileExtensionIs:()=>Il,fileExtensionIsOneOf:()=>Tc,fileIncludeReasonToDiagnostics:()=>eK,fileShouldUseJavaScriptRequire:()=>PX,filter:()=>nr,filterMutate:()=>Xs,filterSemanticDiagnostics:()=>m7,find:()=>An,findAncestor:()=>Gn,findBestPatternMatch:()=>lG,findChildOfKind:()=>ys,findComputedPropertyNameCacheAssignment:()=>cF,findConfigFile:()=>Yle,findContainingList:()=>q7,findDiagnosticForNode:()=>jue,findFirstNonJsxWhitespaceToken:()=>uue,findIndex:()=>Br,findLast:()=>Oo,findLastIndex:()=>Bi,findListItemInfo:()=>cue,findMap:()=>Uo,findModifier:()=>RD,findNextToken:()=>v1,findPackageJson:()=>Gue,findPackageJsons:()=>TX,findPrecedingMatchingToken:()=>Q7,findPrecedingToken:()=>xc,findSuperStatementIndexPath:()=>KF,findTokenOnLeftOfPosition:()=>X7,findUseStrictPrologue:()=>wH,first:()=>Ha,firstDefined:()=>qt,firstDefinedIterator:()=>mn,firstIterator:()=>ZB,firstOrOnly:()=>DX,firstOrUndefined:()=>Xc,firstOrUndefinedIterator:()=>S6,fixupCompilerOptions:()=>ZX,flatMap:()=>Pi,flatMapIterator:()=>Qp,flatMapToMutable:()=>Sc,flatten:()=>da,flattenCommaList:()=>tse,flattenDestructuringAssignment:()=>ZS,flattenDestructuringBinding:()=>_1,flattenDiagnosticMessageText:()=>z_,forEach:()=>Xe,forEachAncestor:()=>Gre,forEachAncestorDirectory:()=>Sm,forEachChild:()=>Ho,forEachChildRecursively:()=>NP,forEachEmittedFile:()=>sJ,forEachEnclosingBlockScopeContainer:()=>eie,forEachEntry:()=>Gc,forEachExternalModuleToImportFrom:()=>FX,forEachImportClauseDeclaration:()=>o3,forEachKey:()=>mh,forEachLeadingCommentRange:()=>Y2,forEachNameInAccessChainWalkingLeft:()=>poe,forEachPropertyAssignment:()=>pR,forEachResolvedProjectReference:()=>DJ,forEachReturnStatement:()=>FE,forEachRight:()=>Ft,forEachTrailingCommentRange:()=>$2,forEachTsConfigPropArray:()=>NL,forEachUnique:()=>uX,forEachYieldExpression:()=>aie,forSomeAncestorDirectory:()=>BSe,formatColorAndReset:()=>g1,formatDiagnostic:()=>EJ,formatDiagnostics:()=>kxe,formatDiagnosticsWithColorAndContext:()=>Zle,formatGeneratedName:()=>D0,formatGeneratedNamePart:()=>rD,formatLocation:()=>SJ,formatMessage:()=>yU,formatStringFromArgs:()=>sg,formatting:()=>Oc,fullTripleSlashAMDReferencePathRegEx:()=>WU,fullTripleSlashReferencePathRegEx:()=>OU,generateDjb2Hash:()=>eC,generateTSConfig:()=>FAe,generatorHelper:()=>CW,getAdjustedReferenceLocation:()=>HK,getAdjustedRenameLocation:()=>K7,getAliasDeclarationFromName:()=>Fj,getAllAccessorDeclarations:()=>LS,getAllDecoratorsOfClass:()=>Jq,getAllDecoratorsOfClassElement:()=>YF,getAllJSDocTags:()=>d4,getAllJSDocTagsOfKind:()=>$1e,getAllKeys:()=>HEe,getAllProjectOutputs:()=>n7,getAllSuperTypeNodes:()=>NC,getAllUnscopedEmitHelpers:()=>cH,getAllowJSCompilerOption:()=>Xv,getAllowSyntheticDefaultImports:()=>OS,getAncestor:()=>v0,getAnyExtensionFromPath:()=>qx,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>kA,getAssignedName:()=>c4,getAssignedNameOfIdentifier:()=>jP,getAssignmentDeclarationKind:()=>Bl,getAssignmentDeclarationPropertyAccessKind:()=>GL,getAssignmentTargetKind:()=>FA,getAutomaticTypeDirectiveNames:()=>xF,getBaseFileName:()=>rc,getBinaryOperatorPrecedence:()=>rk,getBuildInfo:()=>i7,getBuildInfoFileVersionMap:()=>GJ,getBuildInfoText:()=>qle,getBuildOrderFromAnyBuildOrder:()=>C7,getBuilderCreationParameters:()=>v7,getBuilderFileEmit:()=>ab,getCheckFlags:()=>xl,getClassExtendsHeritageElement:()=>jE,getClassLikeDeclarationOfSymbol:()=>zg,getCombinedLocalAndExportSymbolFlags:()=>MR,getCombinedModifierFlags:()=>l0,getCombinedNodeFlags:()=>Ly,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>MV,getCommentRange:()=>w_,getCommonSourceDirectory:()=>YP,getCommonSourceDirectoryOfConfig:()=>mD,getCompilerOptionValue:()=>k3,getCompilerOptionsDiffValue:()=>OAe,getConditions:()=>ib,getConfigFileParsingDiagnostics:()=>tT,getConstantValue:()=>nae,getContainerFlags:()=>Cq,getContainerNode:()=>iT,getContainingClass:()=>su,getContainingClassExcludingClassDecorators:()=>H4,getContainingClassStaticBlock:()=>_ie,getContainingFunction:()=>Gp,getContainingFunctionDeclaration:()=>mie,getContainingFunctionOrClassStaticBlock:()=>U4,getContainingNodeArray:()=>Woe,getContainingObjectLiteralElement:()=>WO,getContextualTypeFromParent:()=>p5,getContextualTypeFromParentOrAncestorTypeNode:()=>J7,getCurrentTime:()=>Uw,getDeclarationDiagnostics:()=>jle,getDeclarationEmitExtensionForPath:()=>m3,getDeclarationEmitOutputFilePath:()=>Oie,getDeclarationEmitOutputFilePathWorker:()=>f3,getDeclarationFileExtension:()=>HH,getDeclarationFromName:()=>DC,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>fl,getDeclarationsOfKind:()=>Fre,getDeclaredExpandoInitializer:()=>WL,getDecorators:()=>Lv,getDefaultCompilerOptions:()=>ez,getDefaultExportInfoWorker:()=>N5,getDefaultFormatCodeSettings:()=>F7,getDefaultLibFileName:()=>Z2,getDefaultLibFilePath:()=>_pe,getDefaultLikeExportInfo:()=>D5,getDiagnosticText:()=>xAe,getDiagnosticsWithinSpan:()=>Uue,getDirectoryPath:()=>ai,getDirectoryToWatchFailedLookupLocation:()=>qJ,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Ece,getDocumentPositionMapper:()=>JX,getDocumentSpansEqualityComparer:()=>cX,getESModuleInterop:()=>yh,getEditsForFileRename:()=>Zue,getEffectiveBaseTypeNode:()=>D_,getEffectiveConstraintOfTypeParameter:()=>Qx,getEffectiveContainerForJSDocTemplateTag:()=>a3,getEffectiveImplementsTypeNodes:()=>TR,getEffectiveInitializer:()=>OL,getEffectiveJSDocHost:()=>y0,getEffectiveModifierFlags:()=>dd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Xie,getEffectiveModifierFlagsNoCache:()=>Yie,getEffectiveReturnTypeNode:()=>nm,getEffectiveSetAccessorTypeAnnotationNode:()=>Bie,getEffectiveTypeAnnotationNode:()=>vu,getEffectiveTypeParameterDeclarations:()=>kv,getEffectiveTypeRoots:()=>wP,getElementOrPropertyAccessArgumentExpressionOrName:()=>i3,getElementOrPropertyAccessName:()=>Og,getElementsOfBindingOrAssignmentPattern:()=>nD,getEmitDeclarations:()=>Nf,getEmitFlags:()=>ja,getEmitHelpers:()=>dW,getEmitModuleDetectionKind:()=>VU,getEmitModuleKind:()=>wu,getEmitModuleResolutionKind:()=>fd,getEmitScriptTarget:()=>os,getEmitStandardClassFields:()=>Eoe,getEnclosingBlockScopeContainer:()=>_h,getEnclosingContainer:()=>yj,getEncodedSemanticClassifications:()=>GX,getEncodedSyntacticClassifications:()=>VX,getEndLinePosition:()=>EL,getEntityNameFromTypeNode:()=>ML,getEntrypointsFromPackageJsonInfo:()=>Tq,getErrorCountForSummary:()=>T7,getErrorSpanForNode:()=>SS,getErrorSummaryText:()=>Ice,getEscapedTextOfIdentifierOrLiteral:()=>MC,getEscapedTextOfJsxAttributeName:()=>aP,getEscapedTextOfJsxNamespacedName:()=>KA,getExpandoInitializer:()=>h0,getExportAssignmentExpression:()=>zj,getExportInfoMap:()=>bO,getExportNeedsImportStarHelper:()=>sle,getExpressionAssociativity:()=>qj,getExpressionPrecedence:()=>kC,getExternalHelpersModuleName:()=>$k,getExternalModuleImportEqualsDeclarationExpression:()=>IC,getExternalModuleName:()=>yR,getExternalModuleNameFromDeclaration:()=>kie,getExternalModuleNameFromPath:()=>Zj,getExternalModuleNameLiteral:()=>gI,getExternalModuleRequireArgument:()=>xj,getFallbackOptions:()=>Ow,getFileEmitOutput:()=>ace,getFileMatcherPatterns:()=>B3,getFileNamesFromConfigSpecs:()=>MP,getFileWatcherEventKind:()=>yV,getFilesInErrorForSummary:()=>A7,getFirstConstructorWithBody:()=>og,getFirstIdentifier:()=>Vp,getFirstNonSpaceCharacterPosition:()=>wue,getFirstProjectOutput:()=>uJ,getFixableErrorSpanExpression:()=>xX,getFormatCodeSettingsForWriting:()=>A5,getFullWidth:()=>vL,getFunctionFlags:()=>Vc,getHeritageClause:()=>ZL,getHostSignatureFromJSDoc:()=>g0,getIdentifierAutoGenerate:()=>TTe,getIdentifierGeneratedImportReference:()=>lae,getIdentifierTypeArguments:()=>WS,getImmediatelyInvokedFunctionExpression:()=>AS,getImpliedNodeFormatForFile:()=>Bw,getImpliedNodeFormatForFileWorker:()=>PJ,getImportNeedsImportDefaultHelper:()=>Uq,getImportNeedsImportStarHelper:()=>qF,getIndentSize:()=>DR,getIndentString:()=>d3,getInferredLibraryNameResolveFrom:()=>p7,getInitializedVariables:()=>UC,getInitializerOfBinaryExpression:()=>Pj,getInitializerOfBindingOrAssignmentElement:()=>Zk,getInterfaceBaseTypeNodes:()=>CC,getInternalEmitFlags:()=>Am,getInvokedExpression:()=>K4,getIsolatedModules:()=>om,getJSDocAugmentsTag:()=>sre,getJSDocClassTag:()=>kV,getJSDocCommentRanges:()=>Ej,getJSDocCommentsAndTags:()=>Lj,getJSDocDeprecatedTag:()=>wV,getJSDocDeprecatedTagNoCache:()=>mre,getJSDocEnumTag:()=>OV,getJSDocHost:()=>DS,getJSDocImplementsTags:()=>lre,getJSDocOverloadTags:()=>wj,getJSDocOverrideTagNoCache:()=>fre,getJSDocParameterTags:()=>$x,getJSDocParameterTagsNoCache:()=>rre,getJSDocPrivateTag:()=>q1e,getJSDocPrivateTagNoCache:()=>ure,getJSDocProtectedTag:()=>J1e,getJSDocProtectedTagNoCache:()=>dre,getJSDocPublicTag:()=>H1e,getJSDocPublicTagNoCache:()=>cre,getJSDocReadonlyTag:()=>K1e,getJSDocReadonlyTagNoCache:()=>pre,getJSDocReturnTag:()=>_re,getJSDocReturnType:()=>iL,getJSDocRoot:()=>ER,getJSDocSatisfiesExpressionType:()=>LU,getJSDocSatisfiesTag:()=>WV,getJSDocTags:()=>p0,getJSDocTagsNoCache:()=>Y1e,getJSDocTemplateTag:()=>X1e,getJSDocThisTag:()=>u4,getJSDocType:()=>d0,getJSDocTypeAliasName:()=>FH,getJSDocTypeAssertionType:()=>iF,getJSDocTypeParameterDeclarations:()=>y3,getJSDocTypeParameterTags:()=>ire,getJSDocTypeParameterTagsNoCache:()=>ore,getJSDocTypeTag:()=>u0,getJSXImplicitImportBase:()=>O3,getJSXRuntimeImport:()=>W3,getJSXTransformEnabled:()=>w3,getKeyForCompilerOptions:()=>gq,getLanguageVariant:()=>pk,getLastChild:()=>_U,getLeadingCommentRanges:()=>Xh,getLeadingCommentRangesOfNode:()=>bj,getLeftmostAccessExpression:()=>LR,getLeftmostExpression:()=>kR,getLibraryNameFromLibFileName:()=>NJ,getLineAndCharacterOfPosition:()=>bs,getLineInfo:()=>Bq,getLineOfLocalPosition:()=>OC,getLineOfLocalPositionFromLineMap:()=>PS,getLineStartPositionForPosition:()=>lm,getLineStarts:()=>Pg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>loe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>soe,getLinesBetweenPositions:()=>iC,getLinesBetweenRangeEndAndRangeStart:()=>pU,getLinesBetweenRangeEndPositions:()=>FSe,getLiteralText:()=>Jre,getLocalNameForExternalImport:()=>tD,getLocalSymbolForExportDefault:()=>PR,getLocaleSpecificMessage:()=>Wo,getLocaleTimeString:()=>jw,getMappedContextSpan:()=>dX,getMappedDocumentSpan:()=>l5,getMappedLocation:()=>sM,getMatchedFileSpec:()=>QJ,getMatchedIncludeSpec:()=>ZJ,getMeaningFromDeclaration:()=>Yw,getMeaningFromLocation:()=>rT,getMembersOfDeclaration:()=>sie,getModeForFileReference:()=>Fw,getModeForResolutionAtIndex:()=>ece,getModeForUsageLocation:()=>AJ,getModifiedTime:()=>TA,getModifiers:()=>PE,getModuleInstanceState:()=>Hg,getModuleNameStringLiteralAt:()=>Gw,getModuleSpecifierEndingPreference:()=>Doe,getModuleSpecifierResolverHost:()=>iX,getNameForExportedSymbol:()=>E5,getNameFromImportAttribute:()=>Q3,getNameFromIndexInfo:()=>tie,getNameFromPropertyName:()=>cO,getNameOfAccessExpression:()=>gU,getNameOfCompilerOptionValue:()=>nq,getNameOfDeclaration:()=>Mo,getNameOfExpando:()=>Nj,getNameOfJSDocTypedef:()=>nre,getNameOrArgument:()=>BL,getNameTable:()=>LY,getNamesForExportedSymbol:()=>Hue,getNamespaceDeclarationNode:()=>vR,getNewLineCharacter:()=>Gy,getNewLineKind:()=>vO,getNewLineOrDefaultFromHost:()=>Qy,getNewTargetContainer:()=>gie,getNextJSDocCommentLocation:()=>kj,getNodeForGeneratedName:()=>tw,getNodeId:()=>as,getNodeKind:()=>y1,getNodeModifiers:()=>iM,getNodeModulePathParts:()=>X3,getNonAssignedNameOfDeclaration:()=>l4,getNonAssignmentOperatorForCompoundAssignment:()=>BP,getNonAugmentationDeclaration:()=>pj,getNonDecoratorTokenPosOfNode:()=>sj,getNormalizedAbsolutePath:()=>go,getNormalizedAbsolutePathWithoutRoot:()=>AV,getNormalizedPathComponents:()=>j2,getObjectFlags:()=>Or,getOperator:()=>Kj,getOperatorAssociativity:()=>Jj,getOperatorPrecedence:()=>nk,getOptionFromName:()=>QH,getOptionsForLibraryResolution:()=>vq,getOptionsNameMap:()=>oD,getOrCreateEmitNode:()=>Ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>jae,getOrUpdate:()=>t0,getOriginalNode:()=>Pl,getOriginalNodeId:()=>Wu,getOriginalSourceFile:()=>DSe,getOutputDeclarationFileName:()=>XP,getOutputDeclarationFileNameWorker:()=>lJ,getOutputExtension:()=>t7,getOutputFileNames:()=>Mxe,getOutputJSFileNameWorker:()=>cJ,getOutputPathsFor:()=>KP,getOutputPathsForBundle:()=>JP,getOwnEmitOutputFilePath:()=>wie,getOwnKeys:()=>Kh,getOwnValues:()=>vA,getPackageJsonInfo:()=>d1,getPackageJsonTypesVersionsPaths:()=>IF,getPackageJsonsVisibleToFile:()=>Vue,getPackageNameFromTypesPackageName:()=>WP,getPackageScopeForPath:()=>Ew,getParameterSymbolFromJSDoc:()=>KL,getParameterTypeNode:()=>XSe,getParentNodeInSpan:()=>dO,getParseTreeNode:()=>Do,getParsedCommandLineOfConfigFile:()=>aw,getPathComponents:()=>zc,getPathComponentsRelativeTo:()=>xV,getPathFromPathComponents:()=>Cv,getPathUpdater:()=>HX,getPathsBasePath:()=>_3,getPatternFromSpec:()=>Ioe,getPendingEmitKind:()=>vD,getPositionOfLineAndCharacter:()=>K2,getPossibleGenericSignatures:()=>JK,getPossibleOriginalInputExtensionForExtension:()=>Wie,getPossibleTypeArgumentsInfo:()=>KK,getPreEmitDiagnostics:()=>Lxe,getPrecedingNonSpaceCharacterPosition:()=>u5,getPrivateIdentifier:()=>Kq,getProperties:()=>qq,getProperty:()=>T6,getPropertyArrayElementValue:()=>fie,getPropertyAssignmentAliasLikeExpression:()=>Cie,getPropertyNameForPropertyNameNode:()=>NS,getPropertyNameForUniqueESSymbol:()=>xSe,getPropertyNameFromType:()=>im,getPropertyNameOfBindingOrAssignmentElement:()=>WH,getPropertySymbolFromBindingElement:()=>s5,getPropertySymbolsFromContextualType:()=>nz,getQuoteFromPreference:()=>aX,getQuotePreference:()=>uf,getRangesWhere:()=>XB,getRefactorContextSpan:()=>PI,getReferencedFileLocation:()=>$P,getRegexFromPattern:()=>qv,getRegularExpressionForWildcard:()=>KC,getRegularExpressionsForWildcards:()=>F3,getRelativePathFromDirectory:()=>Em,getRelativePathFromFile:()=>H2,getRelativePathToDirectoryOrUrl:()=>IA,getRenameLocation:()=>mO,getReplacementSpanForContextToken:()=>QK,getResolutionDiagnostic:()=>kJ,getResolutionModeOverride:()=>_D,getResolveJsonModule:()=>T0,getResolvePackageJsonExports:()=>rW,getResolvePackageJsonImports:()=>iW,getResolvedExternalModuleName:()=>p3,getRestIndicatorOfBindingOrAssignmentElement:()=>aF,getRestParameterElementType:()=>Sj,getRightMostAssignedExpression:()=>FL,getRootDeclaration:()=>C_,getRootDirectoryOfResolutionCache:()=>Sce,getRootLength:()=>dh,getRootPathSplitLength:()=>iRe,getScriptKind:()=>hX,getScriptKindFromFileName:()=>V3,getScriptTargetFeatures:()=>tW,getSelectedEffectiveModifierFlags:()=>GA,getSelectedSyntacticModifierFlags:()=>Jie,getSemanticClassifications:()=>Xue,getSemanticJsxChildren:()=>IR,getSetAccessorTypeAnnotationNode:()=>Fie,getSetAccessorValueParameter:()=>WC,getSetExternalModuleIndicator:()=>fk,getShebang:()=>o4,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Mj,getSingleVariableOfVariableStatement:()=>WA,getSnapshotText:()=>xD,getSnippetElement:()=>oH,getSourceFileOfModule:()=>C4,getSourceFileOfNode:()=>jn,getSourceFilePathInNewDir:()=>h3,getSourceFilePathInNewDirWorker:()=>g3,getSourceFileVersionAsHashFromText:()=>x7,getSourceFilesToEmit:()=>eU,getSourceMapRange:()=>jy,getSourceMapper:()=>dde,getSourceTextOfNodeFromSourceFile:()=>wE,getSpanOfTokenAtPosition:()=>hh,getSpellingSuggestion:()=>YN,getStartPositionOfLine:()=>Gv,getStartPositionOfRange:()=>jC,getStartsOnNewLine:()=>dP,getStaticPropertiesAndClassStaticBlock:()=>XF,getStrictOptionValue:()=>pd,getStringComparer:()=>Fx,getSubPatternFromSpec:()=>z3,getSuperCallFromStatement:()=>JF,getSuperContainer:()=>CL,getSupportedCodeFixes:()=>PY,getSupportedExtensions:()=>XC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>mk,getSwitchedType:()=>EX,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>ek,getSymbolTarget:()=>gX,getSyntacticClassifications:()=>Yue,getSyntacticModifierFlags:()=>Uv,getSyntacticModifierFlagsNoCache:()=>iU,getSynthesizedDeepClone:()=>cl,getSynthesizedDeepCloneWithReplacements:()=>fO,getSynthesizedDeepClones:()=>b1,getSynthesizedDeepClonesWithReplacements:()=>yX,getSyntheticLeadingComments:()=>VR,getSyntheticTrailingComments:()=>Lk,getTargetLabel:()=>V7,getTargetOfBindingOrAssignmentElement:()=>rb,getTemporaryModuleResolutionState:()=>bw,getTextOfConstantValue:()=>Kre,getTextOfIdentifierOrLiteral:()=>em,getTextOfJSDocComment:()=>aL,getTextOfJsxAttributeName:()=>Ek,getTextOfJsxNamespacedName:()=>sP,getTextOfNode:()=>pc,getTextOfNodeFromSourceText:()=>vC,getTextOfPropertyName:()=>sR,getThisContainer:()=>Fd,getThisParameter:()=>HE,getTokenAtPosition:()=>po,getTokenPosOfNode:()=>m0,getTokenSourceMapRange:()=>ETe,getTouchingPropertyName:()=>Vd,getTouchingToken:()=>ID,getTrailingCommentRanges:()=>o0,getTrailingSemicolonDeferringWriter:()=>Qj,getTransformFlagsSubtreeExclusions:()=>$oe,getTransformers:()=>oJ,getTsBuildInfoEmitOutputFilePath:()=>Ky,getTsConfigObjectLiteralExpression:()=>TC,getTsConfigPropArrayElementValue:()=>j4,getTypeAnnotationNode:()=>zie,getTypeArgumentOrTypeParameterList:()=>yue,getTypeKeywordOfTypeOnlyImport:()=>sX,getTypeNode:()=>aae,getTypeNodeIfAccessible:()=>pM,getTypeParameterFromJsDoc:()=>Aie,getTypeParameterOwner:()=>B1e,getTypesPackageName:()=>MF,getUILocale:()=>fne,getUniqueName:()=>sT,getUniqueSymbolId:()=>kue,getUseDefineForClassFields:()=>uP,getWatchErrorSummaryDiagnosticMessage:()=>KJ,getWatchFactory:()=>_J,group:()=>XN,groupBy:()=>A6,guessIndentation:()=>Ore,handleNoEmitOptions:()=>MJ,hasAbstractModifier:()=>KE,hasAccessorModifier:()=>P_,hasAmbientModifier:()=>rU,hasChangesInResolutions:()=>ij,hasChildOfKind:()=>rO,hasContextSensitiveParameters:()=>J3,hasDecorators:()=>If,hasDocComment:()=>hue,hasDynamicName:()=>jv,hasEffectiveModifier:()=>hp,hasEffectiveModifiers:()=>v3,hasEffectiveReadonlyModifier:()=>FC,hasExtension:()=>AA,hasIndexSignature:()=>bX,hasInitializer:()=>zv,hasInvalidEscape:()=>Yj,hasJSDocNodes:()=>Fp,hasJSDocParameterTags:()=>are,hasJSFileExtension:()=>XE,hasJsonModuleEmitEnabled:()=>L3,hasOnlyExpressionInitializer:()=>vS,hasOverrideModifier:()=>b3,hasPossibleExternalModuleReference:()=>Zre,hasProperty:()=>xs,hasPropertyAccessExpressionWithName:()=>Qw,hasQuestionToken:()=>OA,hasRecordedExternalHelpers:()=>Vae,hasResolutionModeOverride:()=>Voe,hasRestParameter:()=>ej,hasScopeMarker:()=>Dre,hasStaticModifier:()=>fc,hasSyntacticModifier:()=>Zr,hasSyntacticModifiers:()=>qie,hasTSFileExtension:()=>JA,hasTabstop:()=>zoe,hasTrailingDirectorySeparator:()=>Py,hasType:()=>A4,hasTypeArguments:()=>ESe,hasZeroOrOneAsteriskCharacter:()=>bU,helperString:()=>lH,hostGetCanonicalFileName:()=>Fy,hostUsesCaseSensitiveFileNames:()=>NR,idText:()=>Sr,identifierIsThisKeyword:()=>nU,identifierToKeywordKind:()=>c0,identity:()=>nl,identitySourceMapConsumer:()=>HF,ignoreSourceNewlines:()=>sH,ignoredPaths:()=>V2,importDefaultHelper:()=>MW,importFromModuleSpecifier:()=>RC,importNameElisionDisabled:()=>vU,importStarHelper:()=>wk,indexOfAnyCharCode:()=>Ec,indexOfNode:()=>aR,indicesOf:()=>N2,inferredTypesContainingFile:()=>yD,injectClassNamedEvaluationHelperBlockIfMissing:()=>QF,injectClassThisAssignmentIfMissing:()=>gle,insertImports:()=>aM,insertLeadingStatement:()=>BTe,insertSorted:()=>xv,insertStatementAfterCustomPrologue:()=>bS,insertStatementAfterStandardPrologue:()=>dSe,insertStatementsAfterCustomPrologue:()=>oj,insertStatementsAfterStandardPrologue:()=>Zh,intersperse:()=>co,intrinsicTagNameToString:()=>kU,introducesArgumentsExoticObject:()=>die,inverseJsxOptionMap:()=>LP,isAbstractConstructorSymbol:()=>coe,isAbstractModifier:()=>hae,isAccessExpression:()=>ws,isAccessibilityModifier:()=>YK,isAccessor:()=>Ov,isAccessorModifier:()=>yae,isAliasSymbolDeclaration:()=>TSe,isAliasableExpression:()=>QL,isAmbientModule:()=>ku,isAmbientPropertyDeclaration:()=>mj,isAnonymousFunctionDefinition:()=>LC,isAnyDirectorySeparator:()=>EV,isAnyImportOrBareOrAccessedRequire:()=>Qre,isAnyImportOrReExport:()=>TL,isAnyImportSyntax:()=>ES,isAnySupportedFileExtension:()=>KSe,isApplicableVersionedTypesKey:()=>Tw,isArgumentExpressionOfElementAccess:()=>zK,isArray:()=>To,isArrayBindingElement:()=>y4,isArrayBindingOrAssignmentElement:()=>fL,isArrayBindingOrAssignmentPattern:()=>KV,isArrayBindingPattern:()=>t1,isArrayLiteralExpression:()=>md,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Yy,isArrayTypeNode:()=>Vk,isArrowFunction:()=>Gs,isAsExpression:()=>Uk,isAssertClause:()=>Iae,isAssertEntry:()=>MTe,isAssertionExpression:()=>yS,isAssertsKeyword:()=>mae,isAssignmentDeclaration:()=>xC,isAssignmentExpression:()=>Lc,isAssignmentOperator:()=>zy,isAssignmentPattern:()=>hC,isAssignmentTarget:()=>rg,isAsteriskToken:()=>Fk,isAsyncFunction:()=>PC,isAsyncModifier:()=>mP,isAutoAccessorPropertyDeclaration:()=>Wd,isAwaitExpression:()=>eb,isAwaitKeyword:()=>_H,isBigIntLiteral:()=>zW,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>$ae,isBindableObjectDefinePropertyCall:()=>xS,isBindableStaticAccessExpression:()=>GE,isBindableStaticElementAccessExpression:()=>r3,isBindableStaticNameExpression:()=>RS,isBindingElement:()=>Qa,isBindingElementOfBareOrAccessedRequire:()=>bie,isBindingName:()=>hS,isBindingOrAssignmentElement:()=>Sre,isBindingOrAssignmentPattern:()=>dL,isBindingPattern:()=>ta,isBlock:()=>Xo,isBlockOrCatchScoped:()=>lj,isBlockScope:()=>_j,isBlockScopedContainerTopLevel:()=>$re,isBooleanLiteral:()=>_C,isBreakOrContinueStatement:()=>dC,isBreakStatement:()=>NTe,isBuildInfoFile:()=>Hle,isBuilderProgram:()=>xce,isBundle:()=>SH,isBundleFileTextLike:()=>doe,isCallChain:()=>mS,isCallExpression:()=>sa,isCallExpressionTarget:()=>LK,isCallLikeExpression:()=>kE,isCallLikeOrFunctionLikeExpression:()=>XV,isCallOrNewExpression:()=>I_,isCallOrNewExpressionTarget:()=>kK,isCallSignatureDeclaration:()=>oI,isCallToHelper:()=>fP,isCaseBlock:()=>EP,isCaseClause:()=>XR,isCaseKeyword:()=>vae,isCaseOrDefaultClause:()=>S4,isCatchClause:()=>l1,isCatchClauseVariableDeclaration:()=>Foe,isCatchClauseVariableDeclarationOrBindingElement:()=>cj,isCheckJsEnabledForFile:()=>gk,isChildOfNodeWithKind:()=>fSe,isCircularBuildOrder:()=>xI,isClassDeclaration:()=>Ic,isClassElement:()=>$c,isClassExpression:()=>Zc,isClassInstanceProperty:()=>bre,isClassLike:()=>ui,isClassMemberModifier:()=>HV,isClassNamedEvaluationHelperBlock:()=>II,isClassOrTypeElement:()=>g4,isClassStaticBlockDeclaration:()=>Rl,isClassThisAssignmentBlock:()=>VP,isCollapsedRange:()=>WSe,isColonToken:()=>pae,isCommaExpression:()=>Yk,isCommaListExpression:()=>yP,isCommaSequence:()=>xP,isCommaToken:()=>dae,isComment:()=>Z7,isCommonJsExportPropertyAssignment:()=>G4,isCommonJsExportedExpression:()=>cie,isCompoundAssignment:()=>zP,isComputedNonLiteralName:()=>AL,isComputedPropertyName:()=>Za,isConciseBody:()=>b4,isConditionalExpression:()=>KR,isConditionalTypeNode:()=>cI,isConstTypeReference:()=>Lg,isConstructSignatureDeclaration:()=>Bk,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>UR,isContextualKeyword:()=>l3,isContinueStatement:()=>DTe,isCustomPrologue:()=>DL,isDebuggerStatement:()=>CTe,isDeclaration:()=>Ju,isDeclarationBindingElement:()=>uL,isDeclarationFileName:()=>Su,isDeclarationName:()=>Wg,isDeclarationNameOfEnumOrNamespace:()=>fU,isDeclarationReadonly:()=>W4,isDeclarationStatement:()=>Mre,isDeclarationWithTypeParameterChildren:()=>gj,isDeclarationWithTypeParameters:()=>hj,isDecorator:()=>Eu,isDecoratorTarget:()=>rue,isDefaultClause:()=>TP,isDefaultImport:()=>wA,isDefaultModifier:()=>jW,isDefaultedExpandoInitializer:()=>Eie,isDeleteExpression:()=>Sae,isDeleteTarget:()=>Wj,isDeprecatedDeclaration:()=>S5,isDestructuringAssignment:()=>By,isDiagnosticWithLocation:()=>IX,isDiskPathRoot:()=>SV,isDoStatement:()=>xTe,isDocumentRegistryEntry:()=>EO,isDotDotDotToken:()=>GW,isDottedName:()=>BC,isDynamicName:()=>u3,isESSymbolIdentifier:()=>RSe,isEffectiveExternalModule:()=>LA,isEffectiveModuleDeclaration:()=>Yre,isEffectiveStrictModeSourceFile:()=>fj,isElementAccessChain:()=>FV,isElementAccessExpression:()=>Qs,isEmittedFileOfProgram:()=>Xle,isEmptyArrayLiteral:()=>eoe,isEmptyBindingElement:()=>ere,isEmptyBindingPattern:()=>Zne,isEmptyObjectLiteral:()=>cU,isEmptyStatement:()=>vH,isEmptyStringLiteral:()=>Ij,isEntityName:()=>Zd,isEntityNameExpression:()=>Gl,isEnumConst:()=>WE,isEnumDeclaration:()=>I0,isEnumMember:()=>c1,isEqualityOperatorKind:()=>f5,isEqualsGreaterThanToken:()=>fae,isExclamationToken:()=>zk,isExcludedFile:()=>dse,isExclusivelyTypeOnlyImportOrExport:()=>TJ,isExpandoPropertyDeclaration:()=>$3,isExportAssignment:()=>kl,isExportDeclaration:()=>Yl,isExportModifier:()=>rI,isExportName:()=>rF,isExportNamespaceAsDefaultDeclaration:()=>L4,isExportOrDefaultModifier:()=>ew,isExportSpecifier:()=>Ku,isExportsIdentifier:()=>IS,isExportsOrModuleExportsOrAlias:()=>p1,isExpression:()=>vt,isExpressionNode:()=>tg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>sue,isExpressionOfOptionalChainRoot:()=>m4,isExpressionStatement:()=>eu,isExpressionWithTypeArguments:()=>Hy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>E3,isExternalModule:()=>ac,isExternalModuleAugmentation:()=>OE,isExternalModuleImportEqualsDeclaration:()=>_0,isExternalModuleIndicator:()=>mL,isExternalModuleNameRelative:()=>Yc,isExternalModuleReference:()=>Th,isExternalModuleSymbol:()=>sO,isExternalOrCommonJsModule:()=>zp,isFileLevelReservedGeneratedIdentifier:()=>cL,isFileLevelUniqueName:()=>P4,isFileProbablyExternalModule:()=>rw,isFirstDeclarationOfSymbolParameter:()=>pX,isFixablePromiseHandler:()=>YX,isForInOrOfStatement:()=>tR,isForInStatement:()=>XW,isForInitializer:()=>Af,isForOfStatement:()=>Hk,isForStatement:()=>jS,isFunctionBlock:()=>zE,isFunctionBody:()=>$V,isFunctionDeclaration:()=>Ac,isFunctionExpression:()=>Os,isFunctionExpressionOrArrowFunction:()=>$E,isFunctionLike:()=>ea,isFunctionLikeDeclaration:()=>Bs,isFunctionLikeKind:()=>NA,isFunctionLikeOrClassStaticBlockDeclaration:()=>eR,isFunctionOrConstructorTypeNode:()=>Ere,isFunctionOrModuleBlock:()=>qV,isFunctionSymbol:()=>Tie,isFunctionTypeNode:()=>bh,isFutureReservedKeyword:()=>ASe,isGeneratedIdentifier:()=>sl,isGeneratedPrivateIdentifier:()=>_S,isGetAccessor:()=>Fv,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>p4,isGlobalDeclaration:()=>pDe,isGlobalScopeAugmentation:()=>R_,isGrammarError:()=>Hre,isHeritageClause:()=>of,isHoistedFunction:()=>z4,isHoistedVariableStatement:()=>B4,isIdentifier:()=>Ve,isIdentifierANonContextualKeyword:()=>Vj,isIdentifierName:()=>Nie,isIdentifierOrThisTypeNode:()=>Jae,isIdentifierPart:()=>a0,isIdentifierStart:()=>Yh,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>pie,isIdentifierTypeReference:()=>Loe,isIfStatement:()=>VS,isIgnoredFileFromWildCardWatching:()=>ww,isImplicitGlob:()=>TU,isImportAttribute:()=>xae,isImportAttributeName:()=>vre,isImportAttributes:()=>pI,isImportCall:()=>Bp,isImportClause:()=>Eh,isImportDeclaration:()=>kc,isImportEqualsDeclaration:()=>tu,isImportKeyword:()=>hP,isImportMeta:()=>uR,isImportOrExportSpecifier:()=>DA,isImportOrExportSpecifierName:()=>Lue,isImportSpecifier:()=>np,isImportTypeAssertionContainer:()=>PTe,isImportTypeNode:()=>cg,isImportableFile:()=>WX,isInComment:()=>Xy,isInCompoundLikeAssignment:()=>Oj,isInExpressionContext:()=>Y4,isInJSDoc:()=>kL,isInJSFile:()=>lr,isInJSXText:()=>mue,isInJsonFile:()=>Q4,isInNonReferenceComment:()=>Eue,isInReferenceComment:()=>bue,isInRightSideOfInternalImportEqualsDeclaration:()=>B7,isInString:()=>DI,isInTemplateString:()=>qK,isInTopLevelContext:()=>q4,isInTypeQuery:()=>MS,isIncrementalCompilation:()=>cP,isIndexSignatureDeclaration:()=>e1,isIndexedAccessTypeNode:()=>GS,isInferTypeNode:()=>FS,isInfinityOrNaNString:()=>rP,isInitializedProperty:()=>Dw,isInitializedVariable:()=>dk,isInsideJsxElement:()=>$7,isInsideJsxElementOrAttribute:()=>fue,isInsideNodeModules:()=>yO,isInsideTemplateLiteral:()=>oO,isInstanceOfExpression:()=>S3,isInstantiatedModule:()=>kq,isInterfaceDeclaration:()=>_d,isInternalDeclaration:()=>tj,isInternalModuleImportEqualsDeclaration:()=>_R,isInternalName:()=>kH,isIntersectionTypeNode:()=>lI,isIntrinsicJsxName:()=>RR,isIterationStatement:()=>Wv,isJSDoc:()=>n_,isJSDocAllType:()=>Pae,isJSDocAugmentsTag:()=>hI,isJSDocAuthorTag:()=>OTe,isJSDocCallbackTag:()=>AH,isJSDocClassTag:()=>Lae,isJSDocCommentContainingNode:()=>T4,isJSDocConstructSignature:()=>bR,isJSDocDeprecatedTag:()=>NH,isJSDocEnumTag:()=>Jk,isJSDocFunctionType:()=>$R,isJSDocImplementsTag:()=>eF,isJSDocIndexSignature:()=>Z4,isJSDocLikeText:()=>jH,isJSDocLink:()=>Nae,isJSDocLinkCode:()=>Cae,isJSDocLinkLike:()=>MA,isJSDocLinkPlain:()=>kTe,isJSDocMemberName:()=>x0,isJSDocNameReference:()=>AP,isJSDocNamepathType:()=>wTe,isJSDocNamespaceBody:()=>oSe,isJSDocNode:()=>nR,isJSDocNonNullableType:()=>YW,isJSDocNullableType:()=>YR,isJSDocOptionalParameter:()=>bk,isJSDocOptionalType:()=>TH,isJSDocOverloadTag:()=>QR,isJSDocOverrideTag:()=>QW,isJSDocParameterTag:()=>r_,isJSDocPrivateTag:()=>xH,isJSDocPropertyLikeTag:()=>pC,isJSDocPropertyTag:()=>kae,isJSDocProtectedTag:()=>RH,isJSDocPublicTag:()=>IH,isJSDocReadonlyTag:()=>DH,isJSDocReturnTag:()=>ZW,isJSDocSatisfiesExpression:()=>MU,isJSDocSatisfiesTag:()=>tF,isJSDocSeeTag:()=>WTe,isJSDocSignature:()=>R0,isJSDocTag:()=>rR,isJSDocTemplateTag:()=>sm,isJSDocThisTag:()=>CH,isJSDocThrowsTag:()=>zTe,isJSDocTypeAlias:()=>Zf,isJSDocTypeAssertion:()=>eD,isJSDocTypeExpression:()=>u1,isJSDocTypeLiteral:()=>JS,isJSDocTypeTag:()=>IP,isJSDocTypedefTag:()=>KS,isJSDocUnknownTag:()=>FTe,isJSDocUnknownType:()=>Mae,isJSDocVariadicType:()=>$W,isJSXTagName:()=>mR,isJsonEqual:()=>H3,isJsonSourceFile:()=>Qf,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>E4,isJsxAttributeName:()=>Goe,isJsxAttributes:()=>s1,isJsxChild:()=>gL,isJsxClosingElement:()=>o1,isJsxClosingFragment:()=>Rae,isJsxElement:()=>ug,isJsxExpression:()=>SP,isJsxFragment:()=>a1,isJsxNamespacedName:()=>t_,isJsxOpeningElement:()=>W_,isJsxOpeningFragment:()=>mI,isJsxOpeningLikeElement:()=>cd,isJsxOpeningLikeElementTagName:()=>iue,isJsxSelfClosingElement:()=>HS,isJsxSpreadAttribute:()=>_I,isJsxTagNameExpression:()=>gC,isJsxText:()=>eI,isJumpStatementTarget:()=>Zw,isKeyword:()=>Bd,isKeywordOrPunctuation:()=>s3,isKnownSymbol:()=>tk,isLabelName:()=>WK,isLabelOfLabeledStatement:()=>OK,isLabeledStatement:()=>i1,isLateVisibilityPaintedStatement:()=>w4,isLeftHandSideExpression:()=>ep,isLeftHandSideOfAssignment:()=>OSe,isLet:()=>F4,isLineBreak:()=>Hu,isLiteralComputedPropertyDeclarationName:()=>$L,isLiteralExpression:()=>LE,isLiteralExpressionOfObject:()=>jV,isLiteralImportTypeNode:()=>Vv,isLiteralKind:()=>fC,isLiteralLikeAccess:()=>n3,isLiteralLikeElementAccess:()=>zL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>j7,isLiteralTypeLikeExpression:()=>HTe,isLiteralTypeLiteral:()=>xre,isLiteralTypeNode:()=>Zv,isLocalName:()=>jg,isLogicalOperator:()=>$ie,isLogicalOrCoalescingAssignmentExpression:()=>oU,isLogicalOrCoalescingAssignmentOperator:()=>zC,isLogicalOrCoalescingBinaryExpression:()=>sk,isLogicalOrCoalescingBinaryOperator:()=>ak,isMappedTypeNode:()=>qR,isMemberName:()=>$h,isMetaProperty:()=>gP,isMethodDeclaration:()=>ql,isMethodOrAccessor:()=>CA,isMethodSignature:()=>vh,isMinusToken:()=>mH,isMissingDeclaration:()=>LTe,isMissingPackageJsonInfo:()=>Dse,isModifier:()=>Ia,isModifierKind:()=>ky,isModifierLike:()=>ll,isModuleAugmentationExternal:()=>dj,isModuleBlock:()=>O_,isModuleBody:()=>Nre,isModuleDeclaration:()=>Xl,isModuleExportsAccessExpression:()=>ng,isModuleIdentifier:()=>Cj,isModuleName:()=>Yae,isModuleOrEnumDeclaration:()=>_L,isModuleReference:()=>kre,isModuleSpecifierLike:()=>a5,isModuleWithStringLiteralName:()=>k4,isNameOfFunctionDeclaration:()=>GK,isNameOfModuleDeclaration:()=>BK,isNamedClassElement:()=>eSe,isNamedDeclaration:()=>sd,isNamedEvaluation:()=>_p,isNamedEvaluationSource:()=>jj,isNamedExportBindings:()=>BV,isNamedExports:()=>Pf,isNamedImportBindings:()=>QV,isNamedImports:()=>Vg,isNamedImportsOrExports:()=>N3,isNamedTupleMember:()=>HR,isNamespaceBody:()=>iSe,isNamespaceExport:()=>Sh,isNamespaceExportDeclaration:()=>qk,isNamespaceImport:()=>nb,isNamespaceReexportDeclaration:()=>vie,isNewExpression:()=>n1,isNewExpressionTarget:()=>nM,isNoSubstitutionTemplateLiteral:()=>tI,isNode:()=>Q1e,isNodeArray:()=>ME,isNodeArrayMultiLine:()=>aoe,isNodeDescendantOf:()=>VE,isNodeKind:()=>sL,isNodeLikeSystem:()=>uG,isNodeModulesDirectory:()=>e4,isNodeWithPossibleHoistedDeclaration:()=>xie,isNonContextualKeyword:()=>Gj,isNonExportDefaultModifier:()=>JTe,isNonGlobalAmbientModule:()=>uj,isNonGlobalDeclaration:()=>Kue,isNonNullAccess:()=>Boe,isNonNullChain:()=>_4,isNonNullExpression:()=>dI,isNonStaticMethodOrAccessorWithPrivateName:()=>lle,isNotEmittedOrPartiallyEmittedNode:()=>rSe,isNotEmittedStatement:()=>EH,isNullishCoalesce:()=>zV,isNumber:()=>Ry,isNumericLiteral:()=>gp,isNumericLiteralName:()=>lg,isObjectBindingElementWithoutPropertyName:()=>uO,isObjectBindingOrAssignmentElement:()=>pL,isObjectBindingOrAssignmentPattern:()=>JV,isObjectBindingPattern:()=>am,isObjectLiteralElement:()=>ZV,isObjectLiteralElementLike:()=>kg,isObjectLiteralExpression:()=>Oa,isObjectLiteralMethod:()=>xm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>V4,isObjectTypeDeclaration:()=>UA,isOctalDigit:()=>i4,isOmittedExpression:()=>jc,isOptionalChain:()=>qu,isOptionalChainRoot:()=>cC,isOptionalDeclaration:()=>oP,isOptionalJSDocPropertyLikeTag:()=>vk,isOptionalTypeNode:()=>UW,isOuterExpression:()=>oF,isOutermostOptionalChain:()=>uC,isOverrideModifier:()=>gae,isPackageJsonInfo:()=>RF,isPackedArrayLiteral:()=>CU,isParameter:()=>Ao,isParameterDeclaration:()=>UE,isParameterPropertyDeclaration:()=>fp,isParameterPropertyModifier:()=>mC,isParenthesizedExpression:()=>Gd,isParenthesizedTypeNode:()=>zS,isParseTreeNode:()=>lC,isPartOfTypeNode:()=>eg,isPartOfTypeQuery:()=>$4,isPartiallyEmittedExpression:()=>KW,isPatternMatch:()=>D6,isPinnedComment:()=>M4,isPlainJsFile:()=>bL,isPlusToken:()=>fH,isPossiblyTypeArgumentPosition:()=>iO,isPostfixUnaryExpression:()=>gH,isPrefixUnaryExpression:()=>tb,isPrivateIdentifier:()=>Ji,isPrivateIdentifierClassElementDeclaration:()=>ld,isPrivateIdentifierPropertyAccessExpression:()=>Zx,isPrivateIdentifierSymbol:()=>Pie,isProgramBundleEmitBuildInfo:()=>dce,isProgramUptoDate:()=>CJ,isPrologueDirective:()=>Im,isPropertyAccessChain:()=>f4,isPropertyAccessEntityNameExpression:()=>lk,isPropertyAccessExpression:()=>Wr,isPropertyAccessOrQualifiedName:()=>Are,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Tre,isPropertyAssignment:()=>_c,isPropertyDeclaration:()=>Jo,isPropertyName:()=>ic,isPropertyNameLiteral:()=>N_,isPropertySignature:()=>yp,isProtoSetter:()=>Mie,isPrototypeAccess:()=>Hv,isPrototypePropertyAssignment:()=>VL,isPunctuation:()=>Bj,isPushOrUnshiftIdentifier:()=>Uj,isQualifiedName:()=>Id,isQuestionDotToken:()=>VW,isQuestionOrExclamationToken:()=>qae,isQuestionOrPlusOrMinusToken:()=>Xae,isQuestionToken:()=>$v,isRawSourceMap:()=>ile,isReadonlyKeyword:()=>_ae,isReadonlyKeywordOrPlusOrMinusToken:()=>Kae,isRecognizedTripleSlashComment:()=>aj,isReferenceFileLocation:()=>hD,isReferencedFile:()=>k0,isRegularExpressionLiteral:()=>dH,isRequireCall:()=>Td,isRequireVariableStatement:()=>Dj,isRestParameter:()=>Qh,isRestTypeNode:()=>HW,isReturnStatement:()=>Dm,isReturnStatementWithFixablePromiseHandler:()=>M5,isRightSideOfAccessExpression:()=>lU,isRightSideOfInstanceofExpression:()=>Zie,isRightSideOfPropertyAccess:()=>TD,isRightSideOfQualifiedName:()=>aue,isRightSideOfQualifiedNameOrPropertyAccess:()=>GC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Qie,isRootedDiskPath:()=>pp,isSameEntityName:()=>hR,isSatisfiesExpression:()=>yH,isScopeMarker:()=>Rre,isSemicolonClassElement:()=>Tae,isSetAccessor:()=>wy,isSetAccessorDeclaration:()=>vp,isShebangTrivia:()=>RV,isShiftOperatorOrHigher:()=>BH,isShorthandAmbientModuleSymbol:()=>bC,isShorthandPropertyAssignment:()=>rp,isSignedNumericLiteral:()=>c3,isSimpleCopiableExpression:()=>m1,isSimpleInlineableExpression:()=>xh,isSimpleParameter:()=>fle,isSimpleParameterList:()=>Nw,isSingleOrDoubleQuote:()=>wL,isSourceFile:()=>$i,isSourceFileFromLibrary:()=>PD,isSourceFileJS:()=>ud,isSourceFileNotJS:()=>hSe,isSourceFileNotJson:()=>Rj,isSourceMapping:()=>ole,isSpecialPropertyDeclaration:()=>Sie,isSpreadAssignment:()=>qy,isSpreadElement:()=>e_,isStatement:()=>qi,isStatementButNotDeclaration:()=>hL,isStatementOrBlock:()=>Lre,isStatementWithLocals:()=>Ure,isStatic:()=>aa,isStaticModifier:()=>iI,isString:()=>Po,isStringAKeyword:()=>ISe,isStringANonContextualKeyword:()=>zA,isStringAndEmptyAnonymousObjectIntersection:()=>vue,isStringDoubleQuoted:()=>t3,isStringLiteral:()=>Ma,isStringLiteralLike:()=>ls,isStringLiteralOrJsxExpression:()=>wre,isStringLiteralOrTemplate:()=>zue,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>XK,isStringTextContainingNode:()=>UV,isSuperCall:()=>TS,isSuperKeyword:()=>_P,isSuperOrSuperProperty:()=>_Se,isSuperProperty:()=>zd,isSupportedSourceFileName:()=>Noe,isSwitchStatement:()=>bP,isSyntaxList:()=>ZR,isSyntheticExpression:()=>ITe,isSyntheticReference:()=>fI,isTagName:()=>FK,isTaggedTemplateExpression:()=>r1,isTaggedTemplateTag:()=>nue,isTemplateExpression:()=>qW,isTemplateHead:()=>nI,isTemplateLiteral:()=>PA,isTemplateLiteralKind:()=>wv,isTemplateLiteralToken:()=>gre,isTemplateLiteralTypeNode:()=>bae,isTemplateLiteralTypeSpan:()=>hH,isTemplateMiddle:()=>pH,isTemplateMiddleOrTemplateTail:()=>h4,isTemplateSpan:()=>vP,isTemplateTail:()=>BW,isTextWhiteSpaceLike:()=>Iue,isThis:()=>AD,isThisContainerOrFunctionBlock:()=>hie,isThisIdentifier:()=>JE,isThisInTypeQuery:()=>BA,isThisInitializedDeclaration:()=>J4,isThisInitializedObjectBindingExpression:()=>yie,isThisProperty:()=>PL,isThisTypeNode:()=>jk,isThisTypeParameter:()=>iP,isThisTypePredicate:()=>mSe,isThrowStatement:()=>bH,isToken:()=>RA,isTokenKind:()=>VV,isTraceEnabled:()=>Ug,isTransientSymbol:()=>fh,isTrivia:()=>AR,isTryStatement:()=>US,isTupleTypeNode:()=>sI,isTypeAlias:()=>HL,isTypeAliasDeclaration:()=>Nm,isTypeAssertionExpression:()=>Eae,isTypeDeclaration:()=>zR,isTypeElement:()=>gS,isTypeKeyword:()=>oM,isTypeKeywordToken:()=>tX,isTypeKeywordTokenOrIdentifier:()=>n5,isTypeLiteralNode:()=>bp,isTypeNode:()=>ji,isTypeNodeKind:()=>hU,isTypeOfExpression:()=>JR,isTypeOnlyExportDeclaration:()=>yre,isTypeOnlyImportDeclaration:()=>lL,isTypeOnlyImportOrExportDeclaration:()=>f0,isTypeOperatorNode:()=>BS,isTypeParameterDeclaration:()=>gl,isTypePredicateNode:()=>Gk,isTypeQueryNode:()=>aI,isTypeReferenceNode:()=>Cf,isTypeReferenceType:()=>I4,isTypeUsableAsPropertyName:()=>rm,isUMDExportSymbol:()=>D3,isUnaryExpression:()=>YV,isUnaryExpressionWithWrite:()=>Ire,isUnicodeIdentifierStart:()=>n4,isUnionTypeNode:()=>Qv,isUnparsedNode:()=>GV,isUnparsedPrepend:()=>Dae,isUnparsedSource:()=>qS,isUnparsedTextLike:()=>hre,isUrl:()=>Wne,isValidBigIntString:()=>q3,isValidESSymbolDeclaration:()=>uie,isValidTypeOnlyAliasUseSite:()=>S0,isValueSignatureDeclaration:()=>Rie,isVarAwaitUsing:()=>xL,isVarConst:()=>cR,isVarUsing:()=>RL,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>SC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>BE,isVariableDeclarationInitializedToRequire:()=>e3,isVariableDeclarationList:()=>Uc,isVariableLike:()=>dR,isVariableLikeOrAccessor:()=>lie,isVariableStatement:()=>Ll,isVoidExpression:()=>uI,isWatchSet:()=>zSe,isWhileStatement:()=>RTe,isWhiteSpaceLike:()=>Mg,isWhiteSpaceSingleLine:()=>A_,isWithStatement:()=>Aae,isWriteAccess:()=>jA,isWriteOnlyAccess:()=>R3,isYieldExpression:()=>JW,jsxModeNeedsExplicitImport:()=>CX,keywordPart:()=>Sp,last:()=>Ya,lastOrUndefined:()=>tl,length:()=>Le,libMap:()=>gF,libs:()=>pw,lineBreakPart:()=>ND,linkNamePart:()=>Pue,linkPart:()=>mX,linkTextPart:()=>c5,listFiles:()=>XJ,loadModuleFromGlobalCache:()=>Fse,loadWithModeAwareCache:()=>zw,makeIdentifierFromModuleName:()=>Xre,makeImport:()=>$y,makeImportIfNecessary:()=>Aue,makeStringLiteral:()=>CI,mangleScopedPackageName:()=>dD,map:()=>Ot,mapAllOrFail:()=>xE,mapDefined:()=>Hi,mapDefinedEntries:()=>v6,mapDefinedIterator:()=>Iv,mapEntries:()=>ine,mapIterator:()=>Ca,mapOneOrMany:()=>RX,mapToDisplayParts:()=>lb,matchFiles:()=>AU,matchPatternOrExact:()=>IU,matchedText:()=>yne,matchesExclude:()=>hF,maybeBind:()=>ia,maybeSetLocalizedDiagnosticMessages:()=>goe,memoize:()=>Sd,memoizeCached:()=>dne,memoizeOne:()=>ch,memoizeWeak:()=>qEe,metadataHelper:()=>fW,min:()=>oG,minAndMax:()=>Poe,missingFileModifiedTime:()=>Op,modifierToFlag:()=>VA,modifiersToFlags:()=>M_,moduleOptionDeclaration:()=>aq,moduleResolutionIsEqualTo:()=>Vre,moduleResolutionNameAndModeGetter:()=>h7,moduleResolutionOptionDeclarations:()=>yF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>qA,moduleResolutionUsesNodeModules:()=>r5,moduleSpecifiers:()=>f1,moveEmitHelpers:()=>iae,moveRangeEnd:()=>I3,moveRangePastDecorators:()=>Fg,moveRangePastModifiers:()=>L_,moveRangePos:()=>b0,moveSyntheticComments:()=>tae,mutateMap:()=>qC,mutateMapSkippingNewValues:()=>ag,needsParentheses:()=>d5,needsScopeMarker:()=>v4,newCaseClauseTracker:()=>I5,newPrivateEnvironment:()=>dle,noEmitNotification:()=>Cw,noEmitSubstitution:()=>HP,noTransformers:()=>aJ,noTruncationMaximumTruncationLength:()=>eW,nodeCanBeDecorated:()=>X4,nodeHasName:()=>rL,nodeIsDecorated:()=>fR,nodeIsMissing:()=>zl,nodeIsPresent:()=>Yf,nodeIsSynthesized:()=>$s,nodeModuleNameResolver:()=>Mse,nodeModulesPathPart:()=>Ih,nodeNextJsonConfigResolver:()=>Lse,nodeOrChildIsDecorated:()=>LL,nodeOverlapsWithStartEnd:()=>U7,nodePosToString:()=>sSe,nodeSeenTracker:()=>NI,nodeStartsNewLexicalEnvironment:()=>Hj,nodeToDisplayParts:()=>aDe,noop:()=>$a,noopFileWatcher:()=>ED,normalizePath:()=>ga,normalizeSlashes:()=>Lu,not:()=>C6,notImplemented:()=>Ko,notImplementedResolver:()=>o7,nullNodeConverters:()=>QU,nullParenthesizerRules:()=>$U,nullTransformationContext:()=>qP,objectAllocator:()=>lu,operatorPart:()=>lM,optionDeclarations:()=>dg,optionMapToObject:()=>fF,optionsAffectingProgramStructure:()=>dq,optionsForBuild:()=>fq,optionsForWatch:()=>aD,optionsHaveChanges:()=>iR,optionsHaveModuleResolutionChanges:()=>zre,or:()=>Ym,orderedRemoveItem:()=>Bx,orderedRemoveItemAt:()=>Dv,outFile:()=>Ps,packageIdToPackageName:()=>N4,packageIdToString:()=>Bv,paramHelper:()=>mW,parameterIsThisKeyword:()=>qE,parameterNamePart:()=>Rue,parseBaseNodeFactory:()=>KH,parseBigInt:()=>Moe,parseBuildCommand:()=>IAe,parseCommandLine:()=>TAe,parseCommandLineWorker:()=>$H,parseConfigFileTextToJson:()=>ZH,parseConfigFileWithSystem:()=>aRe,parseConfigHostFromCompilerHostLike:()=>_7,parseCustomTypeOption:()=>pF,parseIsolatedEntityName:()=>yI,parseIsolatedJSDocComment:()=>rse,parseJSDocTypeExpressionForTests:()=>uAe,parseJsonConfigFileContent:()=>zAe,parseJsonSourceFileConfigFileContent:()=>cw,parseJsonText:()=>ow,parseListTypeOption:()=>ose,parseNodeFactory:()=>Ah,parseNodeModuleFromPath:()=>vw,parsePackageName:()=>Sw,parsePseudoBigInt:()=>ZC,parseValidBigInt:()=>NU,patchWriteFileEnsuringDirectory:()=>wne,pathContainsNodeModules:()=>M0,pathIsAbsolute:()=>tC,pathIsBareSpecifier:()=>TV,pathIsRelative:()=>Wp,patternText:()=>gne,perfLogger:()=>od,performIncrementalCompilation:()=>uRe,performance:()=>Nne,plainJSErrors:()=>g7,positionBelongsToNode:()=>jK,positionIsASICandidate:()=>_5,positionIsSynthesized:()=>Zm,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>LDe,probablyUsesSemicolons:()=>hO,processCommentPragmas:()=>qH,processPragmasIntoFields:()=>JH,processTaggedTemplateExpression:()=>Zq,programContainsEsModules:()=>Tue,programContainsModules:()=>Sue,projectReferenceIsEqualTo:()=>rj,propKeyHelper:()=>RW,propertyNamePart:()=>Due,pseudoBigIntToString:()=>YE,punctuationPart:()=>$u,pushIfUnique:()=>Tf,quote:()=>dM,quotePreferenceFromString:()=>oX,rangeContainsPosition:()=>eO,rangeContainsPositionExclusive:()=>tO,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>lue,rangeContainsStartEnd:()=>nO,rangeEndIsOnSameLineAsRangeStart:()=>uk,rangeEndPositionsAreOnSameLine:()=>ioe,rangeEquals:()=>QB,rangeIsOnSingleLine:()=>kS,rangeOfNode:()=>RU,rangeOfTypeParameters:()=>DU,rangeOverlapsWithStartEnd:()=>rM,rangeStartIsOnSameLineAsRangeEnd:()=>ooe,rangeStartPositionsAreOnSameLine:()=>x3,readBuilderProgram:()=>N7,readConfigFile:()=>sw,readHelper:()=>IW,readJson:()=>VC,readJsonConfigFile:()=>lse,readJsonOrUndefined:()=>uU,reduceEachLeadingCommentRange:()=>jne,reduceEachTrailingCommentRange:()=>Une,reduceLeft:()=>id,reduceLeftIterator:()=>Kr,reducePathComponents:()=>fS,refactor:()=>LI,regExpEscape:()=>qSe,relativeComplement:()=>one,removeAllComments:()=>Pk,removeEmitHelper:()=>STe,removeExtension:()=>hk,removeFileExtension:()=>Ad,removeIgnoredPath:()=>b7,removeMinAndVersionNumbers:()=>aG,removeOptionality:()=>_ue,removePrefix:()=>$N,removeSuffix:()=>zx,removeTrailingDirectorySeparator:()=>i0,repeatString:()=>lO,replaceElement:()=>tG,replaceFirstStar:()=>XA,resolutionExtensionIsTSOrJson:()=>YC,resolveConfigFileProjectName:()=>aK,resolveJSModule:()=>Cse,resolveLibrary:()=>NF,resolveModuleName:()=>cD,resolveModuleNameFromCache:()=>SIe,resolvePackageNameToPackageJson:()=>hq,resolvePath:()=>Pv,resolveProjectReferencePath:()=>gD,resolveTripleslashReference:()=>c7,resolveTypeReferenceDirective:()=>xse,resolvingEmptyArray:()=>Z3,restHelper:()=>EW,returnFalse:()=>Xm,returnNoopFileWatcher:()=>SD,returnTrue:()=>Dy,returnUndefined:()=>n0,returnsPromise:()=>XX,runInitializersHelper:()=>hW,sameFlatMap:()=>ym,sameMap:()=>eo,sameMapping:()=>cxe,scanShebangTrivia:()=>DV,scanTokenAtPosition:()=>oie,scanner:()=>Qu,screenStartingMessageCodes:()=>D7,semanticDiagnosticsOptionDeclarations:()=>lq,serializeCompilerOptions:()=>mF,server:()=>MOe,servicesVersion:()=>hpe,setCommentRange:()=>oc,setConfigFileInOptions:()=>iq,setConstantValue:()=>rae,setEachParent:()=>FR,setEmitFlags:()=>pr,setFunctionNameHelper:()=>DW,setGetSourceFileAsHashVersioned:()=>R7,setIdentifierAutoGenerate:()=>kk,setIdentifierGeneratedImportReference:()=>sae,setIdentifierTypeArguments:()=>Uy,setInternalEmitFlags:()=>Mk,setLocalizedDiagnosticMessages:()=>hoe,setModuleDefaultHelper:()=>PW,setNodeFlags:()=>woe,setObjectAllocator:()=>_oe,setOriginalNode:()=>Cr,setParent:()=>qa,setParentRecursive:()=>Jv,setPrivateIdentifier:()=>QS,setSnippetElement:()=>aH,setSourceMapRange:()=>Pa,setStackTraceLimit:()=>f1e,setStartsOnNewLine:()=>cW,setSyntheticLeadingComments:()=>A0,setSyntheticTrailingComments:()=>$A,setSys:()=>y1e,setSysLog:()=>Lne,setTextRange:()=>dt,setTextRangeEnd:()=>WR,setTextRangePos:()=>eP,setTextRangePosEnd:()=>gh,setTextRangePosWidth:()=>tP,setTokenSourceMapRange:()=>eae,setTypeNode:()=>oae,setUILocale:()=>mne,setValueDeclaration:()=>jL,shouldAllowImportingTsExtension:()=>pD,shouldPreserveConstEnums:()=>ZE,shouldUseUriStyleNodeCoreModules:()=>T5,showModuleSpecifier:()=>uoe,signatureHasLiteralTypes:()=>wq,signatureHasRestParameter:()=>Yu,signatureToDisplayParts:()=>_X,single:()=>eG,singleElementArray:()=>SA,singleIterator:()=>b6,singleOrMany:()=>sh,singleOrUndefined:()=>ah,skipAlias:()=>bu,skipAssertions:()=>VTe,skipConstraint:()=>nX,skipOuterExpressions:()=>$l,skipParentheses:()=>hs,skipPartiallyEmittedExpressions:()=>Tm,skipTrivia:()=>ka,skipTypeChecking:()=>QC,skipTypeParentheses:()=>YL,skipWhile:()=>bne,sliceAfter:()=>xU,some:()=>bt,sort:()=>lS,sortAndDeduplicate:()=>JN,sortAndDeduplicateDiagnostics:()=>Xx,sourceFileAffectingCompilerOptions:()=>vF,sourceFileMayBeEmitted:()=>CS,sourceMapCommentRegExp:()=>jF,sourceMapCommentRegExpDontCareLineStart:()=>jq,spacePart:()=>wl,spanMap:()=>KB,spreadArrayHelper:()=>xW,stableSort:()=>Iy,startEndContainsRange:()=>VK,startEndOverlapsWithStartEnd:()=>H7,startOnNewLine:()=>Xu,startTracing:()=>Cne,startsWith:()=>uo,startsWithDirectory:()=>IV,startsWithUnderscore:()=>NX,startsWithUseStrict:()=>Bae,stringContainsAt:()=>Jue,stringToToken:()=>CE,stripQuotes:()=>tm,supportedDeclarationExtensions:()=>Ik,supportedJSExtensions:()=>KU,supportedJSExtensionsFlat:()=>GR,supportedLocaleDirectories:()=>nj,supportedTSExtensions:()=>BR,supportedTSExtensionsFlat:()=>JU,supportedTSImplementationExtensions:()=>xk,suppressLeadingAndTrailingTrivia:()=>Tp,suppressLeadingTrivia:()=>vX,suppressTrailingTrivia:()=>Oue,symbolEscapedNameNoDefault:()=>o5,symbolName:()=>Sl,symbolNameNoDefault:()=>i5,symbolPart:()=>xue,symbolToDisplayParts:()=>cM,syntaxMayBeASICandidate:()=>wX,syntaxRequiresTrailingSemicolonOrASI:()=>m5,sys:()=>gu,sysLog:()=>B2,tagNamesAreEquivalent:()=>N0,takeWhile:()=>M6,targetOptionDeclaration:()=>mw,templateObjectHelper:()=>AW,testFormatSettings:()=>tue,textChangeRangeIsUnchanged:()=>$ne,textChangeRangeNewSpan:()=>sC,textChanges:()=>_r,textOrKeywordPart:()=>fX,textPart:()=>df,textRangeContainsPositionInclusive:()=>eL,textSpanContainsPosition:()=>PV,textSpanContainsTextSpan:()=>Jne,textSpanEnd:()=>Kl,textSpanIntersection:()=>Yne,textSpanIntersectsWith:()=>s4,textSpanIntersectsWithPosition:()=>Xne,textSpanIntersectsWithTextSpan:()=>z1e,textSpanIsEmpty:()=>qne,textSpanOverlap:()=>Kne,textSpanOverlapsWith:()=>F1e,textSpansEqual:()=>DD,textToKeywordObj:()=>Q2,timestamp:()=>Ys,toArray:()=>bA,toBuilderFileEmit:()=>mce,toBuilderStateFileInfoForMultiEmit:()=>fce,toEditorSettings:()=>wO,toFileNameLowerCase:()=>lh,toLowerCase:()=>une,toPath:()=>ol,toProgramEmitPending:()=>_ce,tokenIsIdentifierOrKeyword:()=>ad,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Gne,tokenToString:()=>fa,trace:()=>bo,tracing:()=>sr,tracingEnabled:()=>O2,transform:()=>PCe,transformClassFields:()=>Sle,transformDeclarations:()=>iJ,transformECMAScriptModule:()=>rJ,transformES2015:()=>Wle,transformES2016:()=>Ole,transformES2017:()=>xle,transformES2018:()=>Rle,transformES2019:()=>Dle,transformES2020:()=>Nle,transformES2021:()=>Cle,transformES5:()=>Fle,transformESDecorators:()=>Ile,transformESNext:()=>Ple,transformGenerators:()=>zle,transformJsx:()=>wle,transformLegacyDecorators:()=>Ale,transformModule:()=>nJ,transformNamedEvaluation:()=>Ep,transformNodeModule:()=>Gle,transformNodes:()=>Pw,transformSystemModule:()=>Ble,transformTypeScript:()=>Ele,transpile:()=>GDe,transpileModule:()=>pde,transpileOptionValueCompilerOptions:()=>pq,tryAddToSet:()=>Ay,tryAndIgnoreErrors:()=>y5,tryCast:()=>ii,tryDirectoryExists:()=>g5,tryExtractTSExtension:()=>T3,tryFileExists:()=>gO,tryGetClassExtendingExpressionWithTypeArguments:()=>aU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>sU,tryGetDirectories:()=>h5,tryGetExtensionFromPath:()=>Bg,tryGetImportFromModuleSpecifier:()=>UL,tryGetJSDocSatisfiesTypeNode:()=>Y3,tryGetModuleNameFromFile:()=>Qk,tryGetModuleSpecifierFromDeclaration:()=>gR,tryGetNativePerformanceHooks:()=>xne,tryGetPropertyAccessOrIdentifierToString:()=>ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>sF,tryGetSourceMappingURL:()=>rle,tryGetTextOfPropertyName:()=>EC,tryIOAndConsumeErrors:()=>v5,tryParseJson:()=>A3,tryParsePattern:()=>OR,tryParsePatterns:()=>j3,tryParseRawSourceMap:()=>Gq,tryReadDirectory:()=>SX,tryReadFile:()=>CP,tryRemoveDirectoryPrefix:()=>SU,tryRemoveExtension:()=>Coe,tryRemovePrefix:()=>cG,tryRemoveSuffix:()=>hne,typeAcquisitionDeclarations:()=>_w,typeAliasNamePart:()=>Nue,typeDirectiveIsEqualTo:()=>jre,typeKeywords:()=>x5,typeParameterNamePart:()=>Cue,typeToDisplayParts:()=>pO,unchangedPollThresholds:()=>G2,unchangedTextChangeRange:()=>yL,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Aw,unorderedRemoveItem:()=>EA,unorderedRemoveItemAt:()=>sG,unreachableCodeIsError:()=>voe,unusedLabelIsError:()=>boe,unwrapInnermostStatementOfLabel:()=>Tj,updateErrorForNoInputFiles:()=>_F,updateLanguageServiceSourceFile:()=>MY,updateMissingFilePathsWatch:()=>mJ,updateResolutionField:()=>sD,updateSharedExtendedConfigFileWatcher:()=>s7,updateSourceFile:()=>UH,updateWatchingWildcardDirectories:()=>kw,usesExtensionsOnImports:()=>Roe,usingSingleLineStringWriter:()=>yC,utf16EncodeAsString:()=>Kx,validateLocaleAndSetLanguage:()=>G1e,valuesHelper:()=>NW,version:()=>Re,versionMajorMinor:()=>ue,visitArray:()=>Rw,visitCommaListElements:()=>VF,visitEachChild:()=>In,visitFunctionBody:()=>lf,visitIterationBody:()=>xd,visitLexicalEnvironment:()=>zq,visitNode:()=>nt,visitNodes:()=>Vn,visitParameterList:()=>Dl,walkUpBindingElementsAndPatterns:()=>Yx,walkUpLexicalEnvironments:()=>ule,walkUpOuterExpressions:()=>Gae,walkUpParenthesizedExpressions:()=>Wy,walkUpParenthesizedTypes:()=>XL,walkUpParenthesizedTypesAndGetParentAndChild:()=>Die,whitespaceOrMapCommentRegExp:()=>UF,writeCommentRange:()=>CR,writeFile:()=>wC,writeFileEnsuringDirectories:()=>tU,zipWith:()=>Ei});var kOe=T({"src/typescript/_namespaces/ts.ts"(){ra(),Kw(),si(),db(),tlt()}}),nlt=W({"src/typescript/typescript.ts"(e,t){kOe(),kOe(),typeof console<"u"&&(N.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=LOe}});return nlt()})();typeof JB<"u"&&JB.exports&&(JB.exports=IE);var qze=IE.createClassifier,GEe=IE.createLanguageService,Jze=IE.displayPartsToString,Kze=IE.EndOfLineState,Xze=IE.flattenDiagnosticMessageText,Yze=IE.IndentStyle,qN=IE.ScriptKind,$ze=IE.ScriptTarget,Qze=IE.TokenClass,VEe=IE,lo={};lo["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. ***************************************************************************** */ /// /// /// /// /// `,lo["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; } `,lo["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; `,lo["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; } `,lo["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 a 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’t 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 a 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 HTML attribute 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 § 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